diff --git a/functions/kirki/CHANGELOG.md b/functions/kirki/CHANGELOG.md
deleted file mode 100644
index b391358..0000000
--- a/functions/kirki/CHANGELOG.md
+++ /dev/null
@@ -1,1487 +0,0 @@
-### 4.0.24 - March 22, 2022 ###
-#### control-react-colorful package
-Bugfixes:
-- Fix issue where uppercase color was failed to be saved
-- Fix the layout issue of the swatches (removing `justify-content: space-between;`)
-- Fix the swatches layout issue when it contains a lot of colors.
-- Allow clearing picker's color by clearing the input field value.
-
-#### compatibility package
-Bugfixes:
-- Fix notice error: Undefined index of 'transport' as reported in #2476
-- Fix code that called URL class without it's namespace
-- **control-repeater**: `"alpha" => true` choice didn't work as reported in issue #2469
-- **module-css**: `KIRKI_NO_OUTPUT` didn't work in the front area
-
-#### module-webfonts package
-Finetuning:
-- Stop preconnecting to https://fonts.gstatic.com/ . It was related to issue #2478.
-
-#### module-postMessage package
-Bugfix:
-- Fix multicolor output issue on customizer preview where the CSS property was appended with its assigned choice.
-
-### 4.0.23 - March 22, 2022 ###
-Bugfixes:
-- **control-repeater**: `"alpha" => true` choice didn't work as reported in issue #2469
-- **module-css**: `KIRKI_NO_OUTPUT` didn't work in the front area
-
-New Filter:
-- New `kirki_inline_styles_id` filter to filter the ID of the inline style tag. The default id is `kirki-inline-styles` (**module-css**)
-
-New Constant:
-- New `KIRKI_NO_GUTENBERG_OUTPUT` constant. Since we get rid of Kirki config usage in Kirki 4, then new constant is necessary. Define `KIRKI_NO_GUTENBERG_OUTPUT` constant to `true` to disable Gutenberg support (**module-editor-styles**).
-
-### 4.0.22 - February 17, 2022 ###
-Bugfix:
-- **module-css** & **module-postmessage**: Fix bug where CSS output didn't work when `'option_type' => 'option'` and `'option_name'` is provided. This fixed issue #2466 and issue #2465
-
-### 4.0.21 - February 9, 2022 ###
-Bugfixes:
-- **control-react-colorful**: Fix warning as reported in [WordPress support forum](https://wordpress.org/support/topic/newest-version-upgrade-4-0-19-cause-a-lot-of-troubles/)
-- **control-base**: Fix the RTL issue as reported in [WordPress support forum](https://wordpress.org/support/topic/version-4-update-broke-rtl-view/)
-- **module-css**: Fix issue #2448 where it didn't check for callable as the value type of `active_callback` and missing validation for callable & string. This might also fix some css output issue.
-- **module-css**: Fix issue #2449 where there was notice caused by accessing non-existing property
-- **module-css**: Remove `:root` selector when inside gutenberg post editing. This fixes issue #2461
-- **module-postmessage**: Handle the wrong formatted "output" argument. Suggested in issue #2462
-- **control-react-select**: Fix issue where `'multiple' => false` didn't work (as reported in #2458) and selection limit didn't work
-- **control-react-colorful**: Fix issue where `palettes` choice didn't work as mentioned in issue #2455
-- **control-react-colorful**: Fix issue where suffix wasn't implemented as reported in [WordPress support forum](https://wordpress.org/support/topic/the-suffix-argument-doesnt-work-in-color-field-outputs/)
-- **field-multicolor**: Fix issue where `palettes` didn't work in multicolor as mentioned in issue #2455
-- **field-multicolor**: Fix issue where the CSS output class wasn't executed due to the missing of `parent_type` choice in the Generic field. This fixes issue #2460
-- **field-typography**: Fix bug where defining an array of google font names inside google's choice didn't work as reported in issue #2459
-
-### 4.0.20 - February 8, 2022 ###
-Bugfix:
-- Patch for warning reported in [WordPress support](https://wordpress.org/support/topic/newest-version-upgrade-4-0-19-cause-a-lot-of-troubles/)
-
-### 4.0.19 - February 7, 2022 ###
-Improvement:
-- `module-tooltips`: Adjust tooltip positioning to handle the dynamic content height and to respect the control's section height.
-
-Bugfix:
-- `control-palette` (not `control-color-palette`): it was missing
-- `control-react-colorful`: CSS output on instant preview (postMessage) didn't work when `property` is not set in the `output` argument's item.
-
-### 4.0.18 - January 25, 2022 ###
-Bugfix:
-- `module-tooltips`: Tooltip was displayed repeatedly inside repeater field
-
-### 4.0.17 - January 25, 2022 ###
-Bugfixes:
-- `control-checkbox`: There was notice messages where `$args['default']` can be undefined
-- `control-generic`: On number control, it was possible break the min & max by manually inputting the number
-
-### 4.0.16 - January 24, 2022 ###
-* Fix issue where switch control didn't handle the default value correctly.
-
-### 4.0.15 - January 18, 2022 ###
-* Fix issue where _html entities_ are not rendered in some control's label and description.
-
-### 4.0.14 - January 14, 2022 ###
-* Fix issue where the description in some controls can't contain HTML.
-
-### 4.0.13 - January 12, 2022 ###
-* Fix CSS output bug when Kirki fields are registered through `kirki_fields` (or `kirki/fields`) filter hook.
-
-### 4.0.12 - January 11, 2022 ###
-* Fix SVG upload on image control.
-
-### 4.0.11 - January 10, 2022 ###
-* Include section icons module (was missing)
-
-### 4.0.10 - January 10, 2022 ###
-* Fix issue where CSS output didn't respect active_callback's default value.
-
-### 4.0.9 - January 05, 2022 ###
-* Fix CSS output issue when a theme register their Kirki controls inside `init` hook.
-
-### 4.0.8 - January 05, 2022 ###
-* Fix CSS output issue where it doesn't respect `active_callback`
-
-### 4.0.7 - January 04, 2022 ###
-* Fix issue when using `option_type` as `option` without specifying the `option_name`
-
-### 4.0.6 - January 03, 2022 ###
-* Fix `active_callback` issue when using nested condition
-
-### 4.0.5 - Dezember 31, 2021 ###
-* Fix `toggleClass` usage when using `js_vars`
-
-### 4.0.4 - Dezember 31, 2021 ###
-* Allow string (numeric) as the choices value in slider control
-* Fix the compatibility issue when using Kirki::get_option to get the value of fields registered using new API.
-
-### 4.0.3 - Dezember 30, 2021 ###
-
-* Fixed: Fatal error caused by wrong folder name
-
-### 4.0 - Dezember 29, 2021 ###
-
-* Kirki 4.0 Release
-
-## 3.1.9 - July 19, 2021
-
-* Fixed: Styling issue in Switch control.
-
-## 3.1.8 - July 1, 2021
-
-* Updated Google-Fonts lists.
-* Tested up to WordPress 5.8 RC 1.
-* Fixed: Deprecated warning when editing post/page.
-* Fixed: Styling issue in Radio Buttonset control.
-
-## 3.1.7 - June 21, 2021
-
-* Updated Google-Fonts lists.
-* Tested up to WordPress 5.8 Beta 1.
-* Fixed: PHP 8 warnings.
-* Fixed: Missing Kirki styles in WordPress 5.8.
-* Fixed: https://wordpress.org/support/topic/plugin-title-conflict/ in https://github.com/kirki-framework/kirki/commit/0fb25dca4d1c4460ec45dc194d5210f854b1b737
-
-## 3.1.6 - December 07, 2020
-
-* Tested up to WordPress 5.6.
-* Tweak: Updated Google fonts.
-* Fixed: Color picker styling issue in Chrome.
-
-## 3.1.5 - August 10, 2020
-
-* Tested up to WordPress 5.5.
-* Tweak: Updated Google fonts.
-* Fixed: Added wp-i18n dependency to alpha color picker script.
-* Fixed: Color picker styles.
-* Fixed: Color picker styles in background control.
-* Fixed: Color picker styles in multicolor control.
-
-## 3.1.4 - July 11, 2020
-
-* Tweak: Updated Google-Fonts lists.
-* Tweak: Tooltip styling.
-* Fixed: Error in the WordPress customizer with WordPress 5.5.
-
-## 3.1.3 - May 19, 2020
-
-* Tweak: Updated Google-Fonts lists.
-* Tweak: Slightly tweaked some of the default control styles.
-
-## 3.1.2 - 2020-04-20
-
-### Fixed
-* Added back `font-display:swap` to Google Fonts.
-
-### Changed
-* Updated Google-Fonts lists.
-
-## 3.1.1 - 2020-04-05
-
-### Changed
-* Updated Google-Fonts lists.
-
-### Fixed
-* False-positive error in Envato theme-check.
-
-## 3.1.0 - 2020-03-01
-
-### Changed
-* Completely refactored the google-fonts downloader. Fonts now get stored in `wp-content/fonts/{font-family}/{file}`.
-* Updated Google-Fonts lists.
-
-### Removed
-* Removed the `branding` module.
-* Removed the `styling` module.
-* Removed the `telemetry` module.
-* Removed the `Kirki_Fonts_Helper` class.
-
-## 3.0.45 - 2019-09-01
-
-### Fixed
-* Compatibility with the latest Gutenberg plugin versions.
-* Styles for normal font-weights in typography controls (`regular` to `400` conversion).
-
-### Changed
-* Updated Google-Fonts lists.
-
-### Removed
-* Backup fonts are no longer needed since google-fonts are no longer loaded from the google CDN.
-
-### Deprecated
-* `kirki_fonts_backup_fonts` filter.
-* `Kirki_Fonts::get_backup_fonts()` method.
-
-## 3.0.44
-
-Jun.25 2019, dev time: 30m
-
-* Fix: Google fonts getting constantly downloaded when `WP_DEBUG` was set to `true`
-
-## 3.0.43
-
-Jun.16 2019, dev time: 30m
-
-* Fix: Google Fonts URL references in multisites.
-* New: It is now possible to reset Kirki google-font caches by visiting {site-url}/?action=kirki-reset-cache
-
-## 3.0.42
-
-Jun.16 2019, dev time: 2h
-
-* Deprecated: `fontawesome` field was deprecated. If a theme uses this field users will be prompted to install the official Font Awesome plugin from the w.org repository.
-* Fix: Transient for Google Fonts now has a lifetime of 1 day instead of 1 week.
-* Fix: Updated Google Fonts list.
-
-## 3.0.41
-
-Jun.8 2019, dev time: 30m
-
-* Fix: http/https issue for locally-hosted googlefonts
-* Fix: Updated Google-fonts list.
-
-## 3.0.40
-
-Jun.1 2019, dev time: 30m
-
-* Fix: Updated URL for fontawesome to avoid tracking.
-* Fix: Updated Google-fonts list.
-
-## 3.0.39
-
-Mar.31 2019, dev time: 30m
-
-* Fix: Updated the styles for colorpickers to make them responsive.
-* Fix: Google-fonts processing for some font-weights. [#2106](https://github.com/aristath/kirki/pull/2106) props @dedalx
-* Fix: SCSS support for the `code` control. [#2112](https://github.com/aristath/kirki/pull/2112) props @reiterbene
-* Fix: Locally downloadding google-fonts. [#2118](https://github.com/aristath/kirki/pull/2118) props @plazorax
-* Update: Updated the Google Fonts list.
-
-## 3.0.38
-
-Mar. 1, 2019, dev time: 20m.
-
-* Fix: Editor styles.
-* Update: Updated the Google Fonts list.
-
-## 3.0.37
-
-Feb. 26, 2019, dev time: 1h.
-
-* Fix: CSS conflict in posts quickedit table
-* Fix: Load webfonts in the dashboard.
-* Fix: Add back the `kirki_auto_postmessage` filter.
-* Update: Updated the Google Fonts list.
-
-## 3.0.36
-
-Feb. 17, 2019, dev time > 100h
-
-This updates represents a big performance improvement both for the frontend and the customizer.
-In the frontend the google-fonts are now loaded more efficiently and the `font-display` property was added to `@font-face` CSS from the google API responses.
-In the customizer the `postMessage` module was completely rewritten.
-
-* Fix: `active_callback` argument for `dropdown-pages` control. [#2055](https://github.com/aristath/kirki/issues/2055)
-* Fix: `color ` control issues when inside a repeater. [#2059](https://github.com/aristath/kirki/issues/2059)
-* Fix: Updated Google Fonts
-* Fix: No longer enqueueing an empty stylesheet in order to add styles inline.
-* Fix: Gutenberg implementation improvements.
-* New: Google Fonts are now embedded inside the dynamic-css instead of using the webfont-loader script when not in the customizer.
-* New: Google Fonts are now always used locally when possible, the google-CDN is only used as a fallback.
-* New: Performance improvement by using `font-display:swap` for google-fonts.
-* New: Added `kirki_googlefonts_font_display` filter.
-* New: Added a new `link` section-type.
-* New: Completely refactored the `postMessage` module. The new implementation is JS-based instead of PHP and is a lot more performant.
-* New: Added telemetry module. See [kirki.org/docs/modules/telemetry](https://kirki.org/docs/modules/telemetry.html) for details.
-* New: Improved CSS loading method. Styles are now added inline.
-* New: Introduced a `kirki_output_inline_styles` filter - can be used by themes that want to enqueue a dynamic stylesheet with a URL `example.com/?action=kirki-styles` instead of the inline method.
-* Deprecated: Removed the "host locally" option from typography controls. This is now the default behaviour and significantly improves performance. Option is no longer necessary.
-* Deprecated: Removed the `Kirki_CSS_To_File` class.
-* Reprecated: Removed the `Kirki_Modules_Webfonts_Local` class.
-* Deprecated: Removed the `Kirki_Fonts_Google_Local` class.
-
-## 3.0.35.3
-
-Dec. 26, 2018, dev time: 1h
-
-* Fix: Update CSS-Vars when the preview pane refreshes.
-* Fix: Tweaked the CSS Values JS-validation function.
-* Fix: Update Google Fonts.
-
-## 3.0.35.2
-
-Dec. 8, 2018, dev time: 20m
-
-* Fix: Correctly output css-vars on the top pf admin pages for use in Gutenberg styles.
-* Fix: Update Google Fonts.
-
-## 3.0.35.1
-
-Dec. 6, 2018, dev time: 5m
-
-* Fix: PHP 5.2 conflict.
-
-## 3.0.35
-
-Dec. 6, 2018, dev time: 15h
-
-* New: Add Gutenberg support [#2009](https://github.com/aristath/kirki/issues/2009) props @timelsass
-* Fix: Add additional check for variants in the typography control - fixes JS issue if no variants were found.
-* Fix: Reviews all sanitization, validation & escaping calls and adjusted them where necessary. This is one step closer to full WPTRT compliance. Props @poena for bringing this to my attention.
-* Fix: Improved implementation for the `sortable` control.
-* Fix: `kirki_modules` filter was not working. [#2023](https://github.com/aristath/kirki/issues/2023)
-* Fix: Issue with google-fonts loading when in the customizer and the typography field uses `postMessage`. [#1988](https://github.com/aristath/kirki/issues/1988)
-* Fix: Changed the priority for css-vars.
-* Fix: Dependencies for the code control. [#2020](https://github.com/aristath/kirki/issues/2020)
-* Fix: PHP 5.2 error `T_PAAMAYIM_NEKUDOTAYIM` [#2032](https://github.com/aristath/kirki/issues/2032)
-* Fix: Code cleanup in the repeater control, props @joyously [ticket](https://wordpress.org/support/topic/repeater-setting-value-function/)
-* Tweak: Removed deprecated code & code cleanups.
-
-## 3.0.34
-
-Sept. 14 2018, dev time: 21h.
-
-* Fix: Error when `typography` fields don't have a font-family. [#1916](https://github.com/aristath/kirki/issues/1916), [#1797](https://github.com/aristath/kirki/issues/1797), [#1935](https://github.com/aristath/kirki/issues/1935). props @mintbird
-* Fix: Allow using "Default Browser Font-Family" in default value (`typography` fields) [#1907](https://github.com/aristath/kirki/pull/1907). props @mintbird
-* Fix: Envato theme-check error [#1914](https://github.com/aristath/kirki/issues/1914), [#1926](https://github.com/aristath/kirki/pull/1926). props @timelsass
-* Fix: HTTPS webfont load error [#1925](https://github.com/aristath/kirki/issues/1925)
-* Fix: Undefined index PHP notice for background-color. [95ca010](https://github.com/aristath/kirki/pull/1930/commits/95ca010588878363a7d2042f09428bae260cb602)
-* Fix: Minor Fixes for css-variables added in v3.0.28.
-* New: Allow unitless values in dimension controls.
-* New: (Refactor) Migrated `image` controls to new structure in preparation of v3.1
-* Update: Updated Google-fonts.
-
-## 3.0.33
-
-May 17 2018
-
-* Fix: Google-Fonts folder permissions improperly set in v3.0.28.
-* Fix: Select issues in repeater controls [#1892](https://github.com/aristath/kirki/issues/1892), [#1888](https://github.com/aristath/kirki/issues/1888) props @asilcetin.
-* Fix: Updated Google Fonts to include latest font-family additions.
-
-## 3.0.32
-
-May 16 2018
-
-* Fix: Reverted some google-fonts changes. Fixes loading issues on some environments.
-* New: Added option per-typography-control to allow users to host Google Fonts on their own servers (GDPR compliance).
-
-## 3.0.31
-
-May 16 2018
-
-* Fix: Added fallback to google-CDN if locally-hosted google-fonts can't be found.
-* Fix: Updated google-fonts list.
-
-## 3.0.30
-
-May 15 2018
-
-* Fix: Fixed caching for locally-downloaded google-fonts (GDPR compliance helper).
-
-## 3.0.29
-
-May 15 2018
-
-* Fix: PHP error in some PHP versions because of the "do" method-name.
-
-## 3.0.28
-
-May 15 2018, dev time: 12 hours.
-
-* Fix: Repeater control JS issue if saved value is malformatted [#1879](https://github.com/aristath/kirki/issues/1879) - props @asilcetin.
-* Fix: Preset control bug [#1882](https://github.com/aristath/kirki/issues/1882).
-* Fix: JS error if an SVG is uploaded to an image control [#1883](https://github.com/aristath/kirki/issues/1883) Props @seantjohnson-dev
-* New: GDPR-Compliance: Google-Fonts are now downloaded server-side bypassing the google-CDN which collects user's IP addresses and personal data without their consent.
-* New: Added support for css-variables.
-
-## 3.0.27
-
-April 30 2018, dev time: 1 hour.
-
-* Fix: multiselect in repeaters. Props @asilcetin [#1876](https://github.com/aristath/kirki/issues/1876).
-* Fix: CSS output on numeric values. [issue link](https://wordpress.org/support/topic/all-css-output-from-kirki-stop-working-on-version-3-0-26/).
-
-## 3.0.
-
-April 27 2018, dev time: 43 hours.
-
-* Fix: Color Palette: material colors 'light-blue' doesn't work [#1783](https://github.com/aristath/kirki/issues/1783).
-* Fix: Google Fonts switch error [#1791](https://github.com/aristath/kirki/issues/1791).
-* Fix: FontAwesome JS is being loaded even if you don't need it on front end [#1786](https://github.com/aristath/kirki/issues/1786).
-* Fix: Color Palette: Active color before section title [#1782](https://github.com/aristath/kirki/issues/1782).
-* Fix: Removed version from the webfont script.
-* Fix: Validation error for dimension fields.
-* Fix: `button_label` argument for repeater fields (props @felipeelia).
-* Fix: Allow html on radio-buttonset choices [#1818](https://github.com/aristath/kirki/issues/1818).
-* Fix: `Kirki_Helper::compare_values` vs. `field-dependencies.js` boolean issue (props @CaptJiggly) [#1825](https://github.com/aristath/kirki/issues/1825).
-* Fix: `active_callback` not working for checkboxes [#1809](https://github.com/aristath/kirki/issues/1809).
-* Fix: Nested `active_callback` args not working properly (AND|OR relations) [#1809](https://github.com/aristath/kirki/issues/1809).
-* Fix: Updated google-fonts.
-* Fix: Display typography with no default values [#1797](https://github.com/aristath/kirki/issues/1797).
-* Fix: Define "normal" as a valid css-value for sanitizations [#1814](https://github.com/aristath/kirki/issues/1814).
-* Fix: `background` controls now output `background-color` as simply `background` if no `background-image` is defined in the value [#1808](https://github.com/aristath/kirki/issues/1808).
-* Fix: @media-queries fix due to minimized CSS. [#1787](https://github.com/aristath/kirki/issues/1787).
-* Fix: `Kirki_Helper::compare_values` contains/in PHP warning if value doesn't exist in array [#1828](https://github.com/aristath/kirki/issues/1828).
-* Fix: Invalid Value in the Dimension control [#1844](https://github.com/aristath/kirki/issues/1844).
-* Fix: Add `fr` to the array of valid units used in validations [
-86adedb](https://github.com/aristath/kirki/pull/1784/commits/86adedb8cd4c06c7e6538c3087233a6840dee562)
-* Fix: Updated webfonts.
-* New: Migrated `number` control to new structure.
-
-## 3.0.25
-
-January 23 2018, dev time: 1 hour.
-
-Please note that the typography controls since v3.0.23 no longer require subsets. This is not a bug or omission, subsets are simply no longer necessary because there's an implementation now that loads them properly without requiring the user to define it.
-
-* Fix: partial reversion of webfontloader improvements in order to resolve an issue with incorect font-weights loading.
-
-## 3.0.24
-
-January 23 2018, dev time: 10 minutes.
-
-* Fix: Added back the `get_google_font_subsets()` method. Although it was always meant just to be used internally apparently a couple of themes out there use it and its removal caused a fatal error.
-
-## 3.0.23
-
-January 22 2018, dev time: 23 hours.
-
-* Fix: clear button on color controls [#1720](https://github.com/aristath/kirki/issues/1720)
-* Fix: PHP mode in code controls.
-* Fix: `active_callback` not working for upload fields [#1732](https://github.com/aristath/kirki/issues/1732)
-* Fix: accessibility issue on radio-buttonset controls [#1722](https://github.com/aristath/kirki/issues/1722)
-* Fix: `active_callback` not working for cropped-image controls [#1752](https://github.com/aristath/kirki/issues/1752)
-* Fix: added support for `button_labels` in image fields [#1173](https://github.com/aristath/kirki/issues/1173)
-* Fix: Support for adding inline CSS to an already defined stylesheet.
-* Fix: Sanitization in section & panel descriptions and priorities [#1759](https://github.com/aristath/kirki/issues/1759)
-* Fix: `active_callback` support when using serialized options [#1745](https://github.com/aristath/kirki/issues/1745)
-* Fix: Remove timepicker from date control [#1750](https://github.com/aristath/kirki/issues/1750)
-* Fix: WebfontLoader improvements.
-* Fix: Now using a datepicker for the `date` control [#1767](https://github.com/aristath/kirki/issues/1767)
-* New: Added "inherit" in the typography control's font-family option [w.org ticket](https://wordpress.org/support/topic/inherit-and-typography-control/)
-* New: Added googlefonts resource hints. Props @aryaprakasa.
-* New: Now loading fontawesome from a CDN. smaller footprint for the plugin and async loading will improve performance for everyone [#1763](https://github.com/aristath/kirki/issues/1763)
-* Tweak: Removed legacy code.
-* Tweak: Code cleanups.
-* Deprecated: Typography controls no longer require the "subset" dropdown.
-
-## 3.0.22
-
-December 20 2017, dev time: 3.5 hours.
-
-* Fix: Files cleanup. Removed webfonts.php and now use the json file.
-* Fix: WordPress Coding Standards fixes.
-* New: Converted all filter names to use `_` instead of `/` (WPCS). Fallback methods included.
-* New: Removed inline methods for webfonts and now use [typekit/webfontloader](https://github.com/typekit/webfontloader).
-* New: Update GoogleFonts list.
-
-## 3.0.21
-
-December 18 2017, dev time: 3 hours
-
-* Fix: Allow HTML in labels and descriptions [#1705](https://github.com/aristath/kirki/issues/1705)
-* Fix: Code controls minor refactor (now extends the `WP_Customize_Code_Editor_Control` class)
-* Fix: Checkbox values sanitization inside repeater controls [#1715](https://github.com/aristath/kirki/issues/1715)
-* Fix: JS error in dimension controls when not using a CSS unit [#1711](https://github.com/aristath/kirki/pull/1711) props @FrankM1
-* Fix: AJAX issue on a host with weird config.
-* New: Add `placeholder` argument in `select` controls [#1593](https://github.com/aristath/kirki/issues/1593)
-
-## 3.0.20
-
-December 13 2017, dev time: 1.5 hours
-
-* Fix: Use `repeat` instead of `repeat-all` in background controls [#1701](https://github.com/aristath/kirki/issues/1701)
-* Fix: Use `set_url_scheme()` when outputing images [#1697](https://github.com/aristath/kirki/issues/1697)
-* Fix: `textarea` control is broken with HTML content [#1694](https://github.com/aristath/kirki/issues/1694) props @tutv95
-* Fix: Typo in `radio` controls [#1699](https://github.com/aristath/kirki/issues/1699)
-* Fix: variants selection for standard font-families.
-
-## 3.0.19
-
-December 8 2017, dev time: 20 minutes.
-
-* Fix: WebfontLoader using `i` instead of `400i`.
-* Fix: Sometimes `font-weight` and `font-style` don't get applied.
-
-## 3.0.18
-
-December 6 2017, dev time: 1 hour.
-
-* Fix: Standards fonts sometimes not showing in typography control [#1689](https://github.com/aristath/kirki/issues/1689)
-* Fix: missing .min.css file
-
-## 3.0.17
-
-December 5 2017, dev time: 46 hours
-
-* Fix: In some cases options were not saved when using `option` instead of the default `theme_mod` [#1665](https://github.com/aristath/kirki/issues/1665)
-* Fix: `link` control-type (alias of `url`) was not working [#1660](https://github.com/aristath/kirki/issues/1660)
-* Fix: Allow using tabs & linebreaks when defining elements in the `output` argument [#1659](https://github.com/aristath/kirki/issues/1659)
-* Fix: PHP Warning when using `code` controls without a `label` defined [#1658](https://github.com/aristath/kirki/issues/1658)
-* Fix: Buttons inside `number` controls were not increasing/decreasing the values [#1648](https://github.com/aristath/kirki/issues/1648)
-* Fix: JS error - only on Safari - for Select controls [#1662](https://github.com/aristath/kirki/issues/1662)
-* Fix: Unable to deselect all options from multiselect controls [#1670](https://github.com/aristath/kirki/issues/1670)
-* Fix: `multicolor` controls missing the `alpha` channel [#1657](https://github.com/aristath/kirki/issues/1657)
-* Fix: Unable to manually edit value in `multicolor` controls [#1666](https://github.com/aristath/kirki/issues/1666)
-* New: Transitioned to a JS-based webfont loader method to load google-fonts instead of using a link.
-* New: Moved `select` controls to new JS implementation.
-* New: Moved `text` and `textarea` controls (`generic` controls) to new JS implementation.
-* New: Added `text-transform` to `typography` fields [#1642](https://github.com/aristath/kirki/issues/1642)
-* New: Refactored typography controls loading for better efficiency and performance
-* New: Removed PHP implementation for field dependencies, now using a pure JS solution.
-* New: Added support for "outer" sections [#1683](https://github.com/aristath/kirki/issues/1683)
-* New: Added new `Kirki::remove_control()`, `Kirki::remove_section()` and `Kirki::remove_panel()` methods.
-* New: Added 2 new filters: `kirki/{$config_id}/webfonts/skip_hidden` and `kirki/{$config_id}/css/skip_hidden` [#1678](https://github.com/aristath/kirki/issues/1678)
-* Tweak: Validation & Sanitization for `dimension` and `dimensions` controls.
-* Tweak: Refactored `multicolor` controls a bit.
-
-## 3.0.16
-
-November 19 2017, dev time: 8 hours
-
-* Fix: `typography` controls not working when they are the only fields used [#1627](https://github.com/aristath/kirki/issues/1627)
-* Fix: `slider` controls were not updating the numeric value visually in their textfield when the control was not using `postMessage` [#1633](https://github.com/aristath/kirki/issues/1627)
-* Fix: Deprecated call to non-existing `Kirki_Styles_Frontend`, props @FrankM1 [#1644](https://github.com/aristath/kirki/issues/1644)
-* Fix: Updated the customizer-styling module for compatibility with WP 4.9 [#1639](https://github.com/aristath/kirki/issues/1639)
-* Fix: `code` controls were not using the corect `priority` [#1622](https://github.com/aristath/kirki/issues/1622)
-* Fix: Multiple reports of errors in the console.
-* New: Refactored the `number` controls [#1631](https://github.com/aristath/kirki/issues/1627)
-* New: Refactored the `color` controls. [#1646](https://github.com/aristath/kirki/issues/1646)
-
-## 3.0.15
-
-November 12 2017, dev time: 5 minutes.
-
-* Fix: PHP Warning in the `Kirki_Modules_Webfonts_Link` class [#1626](https://github.com/aristath/kirki/issues/1626)
-
-## 3.0.14
-
-November 11 2017, dev time: 4 hours.
-
-* Fix: Duplicate subsets output in the Google Fonts URLs [#1618](https://github.com/aristath/kirki/issues/1618)
-* Fix: Theme Check Warnings [#1613](https://github.com/aristath/kirki/issues/1613)
-* Fix: Add Kirki version number when enqueueing scripts & styles (cache-busting) [#1623](https://github.com/aristath/kirki/issues/1623)
-* Fix: JS conflict and PHP warning in typography fields when they are not properly defined [#1621](https://github.com/aristath/kirki/issues/1621)
-
-## 3.0.13
-
-November 9 2017, dev time: 3 hours.
-
-* Fix: textdomain typo in a string.
-* Fix: radio-image styling.
-* Fix: JS error (underscore's `_.isUndefined` for some reason doesn't always work as expected).
-* Tweak: Added reset back to sliders.
-* Tweak: CSS improvements.
-
-## 3.0.12
-
-November 7 2017, dev time: 42 hours.
-
-This update significantly reduces the plugin size by removing 3rd-party libraries (particularly CodeMirror) and uses the new controls and scripts that become available in WordPress 4.9.
-It also changes the file structure and paves the way for a 3.1 rewrite which will be a significant improvement, making Kirki a mostly JS-based app fully integrated in WordPress's JS API and moving away from the PHP API.
-
-* Fix: WordPress 4.9 compatibility for colorpickers.
-* Fix: WordPress 4.9 compatibility for typography controls.
-* Fix: WordPress 4.9 compatibility for multicolor contols.
-* Fix: WordPress 4.9 compatibility for background contols.
-* Fix: Refactored `editor` controls to make them compatible with WP 4.9
-* Fix: Remove CodeMirror and use the code control from WordPress Core. Code controls will be displayed as textareas in WP older than 4.9.
-* Fix: Use new `DateTimeControl` if in WP 4.9+ for date control.
-* Fix: Text field styling.
-* Fix: Switch controls labels.
-* Fix: 'choices' arguments were not getting passed-on due to `is_customize_preview` checks in latest WP Versions.
-* Fix: Overriding Kirki translations from a theme when Kirki is embedded.
-* New: Replaced `select2` with `selectWoo`.
-* New: Added a `Kirki_Control_Base` class and abstracted controls.
-* New: Better file structure.
-* New: Compiled JS & CSS files.
-* New: Added ability to manually enter numeric values in slider controls.
-* Tweak: Improved styling of color-palette controls.
-* Tweak: Radio-Image controls now display images inline (using flexbox).
-* Tweak: Removed the reset switch from slider controls & improved their styling.
-* Tweak: Improved typography controls styling for text-align.
-* Removed: Reset module.
-
-## 3.0.11
-
-October 12 2017, dev time: 3 hours.
-
-* Fix: Typography controls were not properly saving some sub-values [#1521](https://github.com/aristath/kirki/issues/1521), [#1560](https://github.com/aristath/kirki/issues/1560)
-* Fix: Undefined index in the code control [#1567](https://github.com/aristath/kirki/issues/1567)
-* Fix: CSS Output for multicolor fields [#1564](https://github.com/aristath/kirki/issues/1564)
-* Fix: JS instantiation of controls in expanded sections [#1559](https://github.com/aristath/kirki/issues/1559)
-* Fix: LTR for code controls [#1558](https://github.com/aristath/kirki/issues/1558)
-* Fix: Remove Reset in default sections [#1580](https://github.com/aristath/kirki/issues/1580)
-* Fix: Uncaught TypeError: data.value[choiceKey].replace is not a function [#1578](https://github.com/aristath/kirki/issues/1578)
-* Fix: Other code cleanup.
-* Fix: Updated google-fonts.
-
-## 3.0.10
-
-September 21 2017, dev time: 74 hours.
-
-* Fix: Allow HTML tags in tooltips [#1536](https://github.com/aristath/kirki/issues/1536)
-* Fix: Default System Font Stack for Sans Serif Fonts in Typography Fields [#1530](https://github.com/aristath/kirki/issues/1530)
-* Fix: HTML entities in repeater text field being encoded on each save? [#1523](https://github.com/aristath/kirki/issues/1523)
-* Fix: Some resetting issues [#1474](https://github.com/aristath/kirki/issues/1474)
-* Fix: Allow saving image fields as arrays (url,id,width,height) [#1529](https://github.com/aristath/kirki/issues/1529)
-* Fix: Allow saving image fields as ID [#1498](https://github.com/aristath/kirki/issues/1498)
-* Fix: Inline docs improvements.
-* Fix: `$subsets` not defined in the `Kirki_Modules_Webfonts_Link` class.
-* Fix: Coding improvements in the `Kirki_Field` class.
-* Fix: Performance Improvements in the autoloader [see commit](https://github.com/aristath/kirki/pull/1454/commits/dd518f7dc35cacf4f2ed571b033519b353aa2545)
-* Fix: Undefined index notice in the `Kirki_Output` class.
-* Fix: Sanitization for `checkbox`, `switch` and `toggle` controls.
-* Fix: `select2` CSS fix for `z-index` [#1459](https://github.com/aristath/kirki/issues/1459)
-* Fix: Remove button in image controls when there's no image [#1469](https://github.com/aristath/kirki/issues/1469)
-* Fix: Background control styling issue when no other color control exists [#1472](https://github.com/aristath/kirki/issues/1472)
-* Fix: Checkbox and Toggle don't respect "value_pattern" [#1467](https://github.com/aristath/kirki/issues/1467)
-* Fix: Array to string conversion when clicking reset button [#1477](https://github.com/aristath/kirki/issues/1477)
-* Fix: Input Field Validation Issue [#1486](https://github.com/aristath/kirki/issues/1486)
-* Fix: Typography: output property not working [#1484](https://github.com/aristath/kirki/issues/1484)
-* Fix: postMessage does not work properly when using `prefix` [#1479](https://github.com/aristath/kirki/issues/1479)
-* Fix: Use `wp_json_encode` instead of `json_encode`.
-* Fix: Use `rawurlencode` instead of `urlencode`.
-* New: Added warnings for deprecated functions/methods.
-* New: `code` control now loads dynamically (performance improvement).
-* New: `color-palette` control now loads dynamically (performance improvement).
-* New: `color` control now loads dynamically (performance improvement).
-* New: `dashicons` control now loads dynamically (performance improvement).
-* New: `date` control now loads dynamically (performance improvement).
-* New: `dimension` control now loads dynamically (performance improvement).
-* New: `dimensions` control now loads dynamically (performance improvement).
-* New: `editor` control now loads dynamically (performance improvement).
-* New: `fontawesome` control now loads dynamically (performance improvement).
-* New: `generic` control now loads dynamically (performance improvement).
-* New: `multicheck` control now loads dynamically (performance improvement).
-* New: `number` control now loads dynamically (performance improvement).
-* New: `palette` control now loads dynamically (performance improvement).
-* New: `preset` control now loads dynamically (performance improvement).
-* New: `radio-buttonset` control now loads dynamically (performance improvement).
-* New: `radio-image` control now loads dynamically (performance improvement).
-* New: `radio` control now loads dynamically (performance improvement).
-* New: `select` control now loads dynamically (performance improvement).
-* New: `slider` control now loads dynamically (performance improvement).
-* New: `switch` control now loads dynamically (performance improvement).
-* New: `toggle` control now loads dynamically (performance improvement).
-
-## 3.0.9
-
-July 8 2017, dev time: 7 hours.
-
-* Fix: Add alpha option to multicolor control. Props @danielortiz [#1321](https://github.com/aristath/kirki/issues/1321), [#1449](https://github.com/aristath/kirki/pull/1449)
-* Fix: Googlefonts output when `default` argument contains `font-weight` instead of `variant` [#1443](https://github.com/aristath/kirki/issues/1443)
-* Fix: Removed the `Kirki_Custom_Build` class.
-* Fix: Plugin does not exist error when Kirki is embedded in a theme [#1448](https://github.com/aristath/kirki/issues/1448)
-* Fix: Code simplifications and optimizations.
-
-## 3.0.8
-
-June 27 2017, dev time: 4 hours.
-
-* Fix: Typography controls without a variant defined were adding font-weight in the customizer [#1436](https://github.com/aristath/kirki/issues/1436)
-* Fix: Set default webfonts loading method to `link` [#1438](https://github.com/aristath/kirki/issues/1438)
-* Fix: Bug that prevents custom args from being passed to custom controls [#1425](https://github.com/aristath/kirki/issues/1425). Props @danielortiz
-* Fix: `exclude` argument in `output` when combined with `choice` [#1416](https://github.com/aristath/kirki/issues/1416)
-* Fix: `active_callback` operators for greater/smaller etc [#1427](https://github.com/aristath/kirki/issues/1427)
-
-## 3.0.7
-
-June 26 2017, dev time: 1 hour.
-
-* Fix: GoogleFonts links were not getting properly created [#1430](https://github.com/aristath/kirki/issues/1430)
-* Fix: Incorrect logic when `Kirki::add_field()` only has 1 argument defined [#1429](https://github.com/aristath/kirki/issues/1429)
-
-## 3.0.6
-
-June 25, 2017, dev time: 5 minutes.
-
-* Fix: Typo, PHP 5.2 compatibility.
-
-## 3.0.5
-
-June 25, 2017, dev time: 5 hours.
-
-* Fix: Conflict with the MaxStore Pro theme [#1405](https://github.com/aristath/kirki/issues/1405)
-* Fix: CSS Output for Typography controls [#1423](https://github.com/aristath/kirki/issues/1423)
-* Fix: PHP Warning in Repeater control. [#1417](https://github.com/aristath/kirki/issues/1417)
-* Fix: CSS conflict with the Shortcake plugin [#1418](https://github.com/aristath/kirki/issues/1418)
-* Fix: `Kirki_Fonts_Google::$force_load_all_variants` was not working in version 3.0
-* Fix: PHP Warning in typography control when the value was corrupted [#1426](https://github.com/aristath/kirki/issues/1426)
-* Fix: Notice about incorrect `wp_add_inline_style` when googlefont URL was throwing error [#1410](https://github.com/aristath/kirki/issues/1410)
-* Fix: Unable to delete the plugin when it's also embedded in the active theme and plugin version is deactivated [#1421](https://github.com/aristath/kirki/issues/1421)
-* Fix: PHP 5.2 compatibility.
-
-## 3.0.4
-
-June 23, 2017, dev time: 2 hours.
-
-* Fix: Added extra checks to avoid PHP Warning in the `Kirki_Fonts_Google` class [#1402](https://github.com/aristath/kirki/issues/1402).
-* Fix: `fontawesome` control was throwing a warning in the theme-check plugin.
-* Fix: Added the "Default" button back in image controls [#1401](https://github.com/aristath/kirki/issues/1401)
-* Fix: Number controls sanitization memory issue [#1404](https://github.com/aristath/kirki/issues/1404)
-* Fix: Typography controls font-weight output [#1370](https://github.com/aristath/kirki/issues/1370)
-* Fix: The `icon` argument was not working for Panels.
-
-## 3.0.3
-
-June 22, 2017, dev time: 10 minutes/
-
-* Fix: Error when color is not properly formatted.
-
-## 3.0.2
-
-June 22, 2017, dev time: 15 minutes.
-
-* Fix: CSS bugfixes in the `editor` control.
-* Fix: Improvements when embedding Kirki in a theme.
-
-## 3.0.1
-
-June 22, 2017, dev time: 5 minutes.
-
-* Fix: Undefined index PHP Notice.
-
-## 3.0.0
-
-June 22, 2017, dev time: 243 hours.
-
-This is a major release. Many things have been refactored and optimized. Please keep a backup before updating.
-
-* Fix: Refactored the reset module. [#1334](https://github.com/aristath/kirki/pull/1334)
-* Fix: Refactored the postMessage module [#1333](https://github.com/aristath/kirki/issues/1333)
-* Fix: PHP mode on CodeMirror. [#1003](https://github.com/aristath/kirki/issues/1003)
-* Fix: Dynamic repeater labels now use the label instead of value when picking up label from select field. [#1230](https://github.com/aristath/kirki/issues/1230)
-* Fix: Sanitization for number fields. [#1240](https://github.com/aristath/kirki/issues/1240)
-* Fix: Checkboxes sanitization. [#1195](https://github.com/aristath/kirki/issues/1195)
-* Fix: Link functionality in editor field. [#968](https://github.com/aristath/kirki/issues/968), [#1159](https://github.com/aristath/kirki/issues/1159)
-* Fix: Issues in Field Type editor [#1260](https://github.com/aristath/kirki/issues/1260)
-* Fix: Problems with sortable control [#1253](https://github.com/aristath/kirki/issues/1253), [#1197](https://github.com/aristath/kirki/issues/1197), [#1198](https://github.com/aristath/kirki/issues/1198)
-* Fix: inaccessibility of options panel [#1194](https://github.com/aristath/kirki/issues/1194)
-* Fix: Fields "checkbox", "toggle" and "switch" don't save as boolean in PHP, instead integer 0/1 [#1195](https://github.com/aristath/kirki/issues/1195)
-* Fix: Tooltip not working for switch [#1225](https://github.com/aristath/kirki/issues/1225)
-* Fix: Tooltip height fix in [#1228](https://github.com/aristath/kirki/issues/1228)
-* Fix: Tooltip not closing when clicking outside of icon [#1226](https://github.com/aristath/kirki/issues/1226)
-* Fix: Issue with visual representation of color picker (alpha iris) [#1218](https://github.com/aristath/kirki/issues/1218)
-* Fix: Reset is "undefined" [#1210](https://github.com/aristath/kirki/issues/1210)
-* Fix: Controls that save arrays cause PHP Notices [#1199](https://github.com/aristath/kirki/issues/1199)
-* Fix: Disabled the "loading" module by default. Use the `kirki/modules` filter to enable.
-* Fix: Refactored saving user-meta (`'option_type' => 'user_meta'`). [#1325](https://github.com/aristath/kirki/issues/1325)
-* Fix: Code fields reset [#1122](https://github.com/aristath/kirki/issues/1122)
-* Fix: Typography fields reset [#1193](https://github.com/aristath/kirki/issues/1193), [#1219](https://github.com/aristath/kirki/issues/1219)
-* Fix: Multicolor fields reset [#916](https://github.com/aristath/kirki/issues/916)
-* Fix: Custom fonts not displayed as active in the font list after saving [#1110](https://github.com/aristath/kirki/issues/916)
-* Fix: Support for `media_query` when using `'transport' => 'auto'`. [#1184](https://github.com/aristath/kirki/issues/1184), [#1127](https://github.com/aristath/kirki/issues/1127)
-* Fix: Typography field bug when switching Google Fonts with different weights [#1180](https://github.com/aristath/kirki/issues/1180)
-* Fix: Font Variant outputs invalid property value (typography field) [#1058](https://github.com/aristath/kirki/issues/1058)
-* Fix: Updated webfonts. [#1303](https://github.com/aristath/kirki/issues/1303)
-* Fix: required argument not work with postMessage type. [#1031](https://github.com/aristath/kirki/issues/1031)
-* Fix: Notice: Undefined index, repeater field. [#1291](https://github.com/aristath/kirki/issues/1291)
-* Fix: 403 errors for CSS and JS files on localhost. [#1309](https://github.com/aristath/kirki/issues/1309)
-* Fix: Customizer doesn't load if ACF PRO is active. [#1302](https://github.com/aristath/kirki/issues/1302)
-* Fix: Enqueued google font even if not in use. [#1297](https://github.com/aristath/kirki/issues/1297)
-* Fix: Default dimension value does not process well percent units [#1254](https://github.com/aristath/kirki/issues/1254), [#497](https://github.com/aristath/kirki/issues/497)
-* Fix: Editor field issue with RTL languages [#340](https://github.com/aristath/kirki/issues/340)
-* Fix: Windows Server Issues [#1318](https://github.com/aristath/kirki/issues/1318)
-* New: Added code to automatically handle translations when Kirki is embedded in a theme [#1381](https://github.com/aristath/kirki/issues/1381)
-* New: Automating postMessage for composite fields. [#694](https://github.com/aristath/kirki/issues/694)
-* New: OR logic in field dependencies. [#839](https://github.com/aristath/kirki/issues/839)
-* New: Radio-image labels. [#1090](https://github.com/aristath/kirki/issues/1090), [#1220](https://github.com/aristath/kirki/issues/1220)
-* New: Typography fields support for `prefix`, `suffix`, `value_pattern` in `output` argument. [#1183](https://github.com/aristath/kirki/issues/1183)
-* New: Multi-selects in repeater fields. [#780](https://github.com/aristath/kirki/issues/780), [#1261](https://github.com/aristath/kirki/issues/1261)
-* New: Typography fields now support live-updating using `'transport' => 'auto'`. [#1184](https://github.com/aristath/kirki/issues/1184), [#528](https://github.com/aristath/kirki/issues/528), [#1186](https://github.com/aristath/kirki/issues/1186)
-* New: Typography fields now support filtering the available fonts. [#1202](https://github.com/aristath/kirki/issues/1202)
-* New: Typography fields now support loading multiple variants. [#992](https://github.com/aristath/kirki/issues/992), [#1082](https://github.com/aristath/kirki/issues/1082), [#1114](https://github.com/aristath/kirki/issues/1114)
-* New: Select fields now support optgroups. [#1120](https://github.com/aristath/kirki/issues/1120)
-* New: Added new background control-type. [#741](https://github.com/aristath/kirki/issues/741), [#1283](https://github.com/aristath/kirki/pull/1283), [#952](https://github.com/aristath/kirki/pull/952)
-* New: Replaced selectize with select2. [#1177](https://github.com/aristath/kirki/issues/1177)
-* New: Notifications for number fields when value is invalid depending on min/max/step values.
-* New: Rebuilt typography control using select2. [cafb89b ](https://github.com/aristath/kirki/commit/e27fa1ff19ab52b34467bfb306b5870d858f409f)
-* New: Allow modifying values instead of replacing them when using `js_vars` with `function` set to `html` by using the `value_pattern` parameter and the `$` placeholder. [#1137](https://github.com/aristath/kirki/pull/1137)
-* New: Updated CodeMirror. [fff6df0](https://github.com/aristath/kirki/commit/34fdaa562fdd33fa595db927ee597265a753b3b4)
-* New: Added word-spacing to the typography control. [#1163](https://github.com/aristath/kirki/issues/1163)
-* New: Refactored file structure to make fields self-contained entities, easier to decouple & debug.
-* New: Introducing "modules".
-* New: Refactored the tooltips feature (now a module).
-* New: Selective refreshes are now a module.
-* New: postMessage is now a module.
-* New: Refactored section & panel icons (now a module).
-* New: Customizer-Styling is now a module.
-* New: Customizer-Branding is now a module.
-* New: CSS-Output is now a module.
-* New: Abstracted the "spacing" control and created a new "dimensions" control from it.
-* New: Allow saving site-options(`'option_type' => 'site_option'`) [#1326](https://github.com/aristath/kirki/issues/1326)
-* New: Added 2 new methods for enqueueing google fonts. See the [`kirki/googlefonts_load_method`](https://github.com/aristath/kirki/blob/9e3e4a6928339bdcd0f7520d305c145a80a06c8a/modules/webfonts/class-kirki-modules-webfonts.php#L100) filter.
-* New: Googlefonts now by default added inline in the stylesheet to avoid an extra call to the GoogleFonts API. (SEO & performance improvement).
-
-## 2.3.8
-
-May 28, 2017, dev time: 15 minutes.
-
-This is a maintenance release that prepares for 3.0.0 coming soon.
-
-* Fix: Updating webfonts.
-* New: Added ability to use upgrade notices. Needed for v3.0 in a few days.
-
-## 2.3.7
-
-October 22, 2016, dev time: 12 hours.
-
-* Fix: `spacing` controls were not updating after save
-* New: Now using the WP Notifications API in the customizer for spacing & dimension controls (requires WP 4.6).
-* Fix: Allow overriding `option_type` with `theme_mod` when global config uses `option` by using the `option_type` argument in the fields.
-* Fix: Disabled the custom kirki-preview loader. This will have to be built more modular in future versions.
-* Fix: Refactored panel & section icons.
-* Fix: postMessage now works better with slider controls.
-* Fix: Reset button not working unless tooltips are loaded.
-* Fix: Properly sanitize `link` and `url` fields.
-* Fix: Automate sanitization for `repeater` fields.
-
-## 2.3.6
-
-August 28, 2016, dev time: 3 hours.
-
-* Fix: CSS prefixes order fixes ([#1042](https://github.com/aristath/kirki/pull/1042)).
-* Fix: `suffix` output argument support in Multicolor control ([#1042](https://github.com/aristath/kirki/pull/1042)).
-* Fix: `Kirki::get_variables()` method should be static ([#1050](https://github.com/aristath/kirki/pull/1050)).
-* Fix: Add line wrapping to CodeMirror ([#1079](https://github.com/aristath/kirki/pull/1079)).
-* Fix: `container_inclusive` is disregarded on the selective refresh class ([#1089](https://github.com/aristath/kirki/issues/1089)).
-* Fix: Support `input_attrs` parameter for controls ([#1074](https://github.com/aristath/kirki/issues/1074)).
-* Fix: Outdated Google-Fonts list ([#1091](https://github.com/aristath/kirki/issues/1091)).
-
-## 2.3.5
-
-July 2, 2016. dev time: 6 hours.
-
-* FIX: Missing button labels in `repeater` fields.
-* FIX: Missing button label in `code` fields ([#1017](https://github.com/aristath/kirki/issues/1017)).
-* FIX: Better implementation when embedding Kirki in a theme ([#1025](https://github.com/aristath/kirki/issues/1025)).
-* FIX: Updated google-fonts ([#1041](https://github.com/aristath/kirki/issues/1041)).
-* NEW: Allow simpler format for `variables` argument ([#1020](https://github.com/aristath/kirki/issues/1020)).
-
-## 2.3.4
-
-June 1, 2016, dev time: 30 minutes.
-
-* FIX: Repeater JS issues due to error in translation strings.
-
-## 2.3.3
-
-May 31, 2016, dev time: 17 hours.
-
-* FIX: Editor field covering the content ([#955](https://github.com/aristath/kirki/issues/955)).
-* FIX: Smoother transition for editor switching.
-* FIX: Code field JS error when using "php" mode ([#958](https://github.com/aristath/kirki/issues/958)).
-* FIX: `postMessage` for typography fields ([#528](https://github.com/aristath/kirki/issues/528)).
-* FIX: translation strings ([#960](https://github.com/aristath/kirki/issues/960)).
-* FIX: `postMessage` for `background-image` properties ([#963](https://github.com/aristath/kirki/issues/963)).
-* FIX: Reset Typography Control without font-family default value ([#951](https://github.com/aristath/kirki/issues/951)).
-* FIX: Typography field: font-style missing in CSS output if variant is regular/400 ([#977](https://github.com/aristath/kirki/issues/977)).
-* FIX: Placing two editor controls in the customizer leads to odd behavior ([#140](https://github.com/aristath/kirki/issues/140)).
-* FIX: Typography field: letter-spacing missing in CSS output if its value is 0 ([#978](https://github.com/aristath/kirki/issues/978)).
-* FIX: Allow using HTML in section descriptions ([#976](https://github.com/aristath/kirki/issues/976)).
-* FIX: Bug preventing partial refreshes from working properly ([#991](https://github.com/aristath/kirki/issues/991)).
-* FIX: Better internationalization handling.
-* FIX: Output errors on typography settings ([#975](https://github.com/aristath/kirki/issues/975)).
-* NEW: Added a new `attr` argument to `js_vars` ([#957](https://github.com/aristath/kirki/issues/957)).
-* NEW: Implemented both `AND` and `OR` conditionals in `active_callback` arrays ([#839](https://github.com/aristath/kirki/issues/839)).
-* NEW: Allow defining an array of dashicons to use.
-* NEW: Added a `link` control type.
-
-## 2.3.2
-
-May 2, 2016, dev time: 52 hours.
-
-* NEW: Completely refactored `editor` controls.
-* NEW: Completely re-styled `code` controls.
-* NEW: Added a new `kirki/{$config_id}/styles` filter ([#908](https://github.com/aristath/kirki/issues/908)).
-* NEW: Added a `customize-control-kirki` class to all Kirki controls.
-* FIX: Field type number : Cannot read property 'min' of undefined ([#911](https://github.com/aristath/kirki/issues/911)).
-* FIX: All controls are now prefixed ([#918](https://github.com/aristath/kirki/issues/918))
-* FIX: `alpha` argument in color-alpha controls ([#932](https://github.com/aristath/kirki/issues/932)).
-* FIX: Name attribute in repeaters (props @guillaumemolter).
-* FIX: Missing label for checkbox controls inside repeaters (props @guillaumemolter).
-* FIX: Placing 2 editor controls in the customizer leads to odd behaviour ([#140](https://github.com/aristath/kirki/issues/140)).
-* FIX: `active_callback` conbined with the old `required` argument. ([#906](https://github.com/aristath/kirki/issues/906)).
-* FIX: Double prefix and suffix in `js_vars` ([#943](https://github.com/aristath/kirki/issues/943)).
-* FIX: Typography control returns both 'subset' and 'subsets' indexes with the same value ([#948](https://github.com/aristath/kirki/issues/948)).
-* FIX: Use `strict` JS mode in all controls.
-
-## 2.3.1
-
-April 19, 2016, dev time: 30 hours.
-
-* FIX: Spacing control JS dependencies.
-* FIX: Output property ignored in multicolor field.
-* FIX: Image sub-controls in repeaters were causing a JS error.
-* FIX: Text Domain Compliance with Themecheck.
-* FIX: PostMessage scripts when using more than 1 elements for the output.
-* FIX: Default values for swithes, toggles & checkboxes.
-* FIX: Conflict with WP Core's `dropdown-pages` control.
-* FIX: Auto-transport not working when using serialized options instead of theme_mods.
-* FIX: `value_pattern` was not working properly when used in `js_vars`.
-* FIX: Repeater control bugfixes (props @guillaumemolter).
-* FIX: multi-selects saving single value.
-* NEW: Added support for `upload` controls in repeaters (props @guillaumemolter).
-* NEW: Adding mime_type parameter for image, cropped_image, upload controls in repeaters (props @guillaumemolter).
-* NEW: Added color-picker support in repeater fields (props @guillaumemolter).
-
-## 2.3.0
-
-April 10, 2016, dev time: 21 hours.
-
-Kirki is now 100% WordPress Coding Standards compliant.
-
-* FIX: Escaping google-font URLs when possible.
-* FIX: Only enqueue the tooltips script if needed.
-* FIX: WordPress Coding Standards.
-* FIX: undefined sub-controls were still being saved in typography fields
-* FIX: Javascript Console Errors: "wp.customize" object undefined when Kirki fields were added in `customize_register`
-* FIX: markup in editor fields - props @manuelmoreale.
-* FIX: multiple styles in head when using js_vars
-* FIX: Sanitization for rem units
-* FIX: CSS output for multicolor controls
-* NEW: Repeater labels are now dynamic - props @guillaumemolter.
-* NEW: The entire header on repeaters is now draggable - props @guillaumemolter.
-* TWEAK: More efficient JS code for the typography control
-
-## 2.2.10
-
-* FIX: Issue with URLs when using Kirki embedded in a theme and not installed as a plugin.
-
-## 2.2.9
-
-* FIX: Repeater controls were not working on 2.2.8 due to a typo - props @guillaumemolter
-* NEW: Repeater fields now allow more control types (email/tel/url/hidden) - props @guillaumemolter
-
-## 2.2.8
-
-April 6, 2016, dev time: 5 hours.
-
-* FIX: Enqueued assets missing when useg WP_DEBUG & WP_DEBUG_SCRIPT
-* FIX: Checkboxes were not properly displaying their values
-* FIX: Javascript errors when `number` controls were used without `min`, `max` or `step`.
-* FIX: Multiselect controls issue with the `sanitize_callback` used.
-* NEW: Make attributes in `cropped_image` sub-controls inside repeaters dynamic (props @guillaumemolter).
-
-## 2.2.7
-
-April 5, 2016, dev time: 23 hours.
-
-* FIX: Properly parsing `postMessage` scripts when `transport` is set to `auto`.
-* FIX: Background image was outputing CSS even if it was empty.
-* FIX: Default value for checkboxes.
-* FIX: Issue with plugin URLs in the customizer, when the plugin was embedded in a theme.
-* FIX: Descriptions were now shown in `sortable` fields.
-* FIX: Reset not working for textarea fields.
-* FIX: In some cases only the first element in `output` arguments was being processed.
-* FIX: edge-case bugfix for select controls when data saved if the db was somehow mis-formatted.
-* FIX: Repeater controls now use image IDs instead of image URLs. Props @guillaumemolter
-* NEW: Added `text-align` ability in `typography` fields.
-* NEW: Added `text-transform` ability in `typography` fields.
-* NEW: Introduce `value_pattern` argument for `output` & `js_vars`.
-* NEW: Started refactoring the `Kirki_Field` class. Now each field can have its own sub-class extending the main Kirki_Field object.
-* NEW: `multicolor` control.
-* NEW: Added `cropped_image` support in `repeater`. Props @guillaumemolter
-* TWEAK: Renamed `Kirki_Customizer_Scripts_Loading` to `Kirki_Scripts_Loading`.
-* TWEAK: Renamed `Kirki_Customizer_Scripts_Tooltips` to `Kirki_Scripts_Tooltips`.
-* TWEAK: Renamed `Kirki_Customizer_Scripts_Icons` to `Kirki_Scripts_Icons`.
-* TWEAK: More inline comments, docs & coding-standards improvements.
-* DEPRECATED: Removed the `Kirki_Colourlovers` class.
-
-## 2.2.6
-
-March 26, 2016, dev time: 10 hours
-
-* FIX: Invalid variants for google fonts were getting enqueued due to a mischeck.
-* FIX: Repeater rows are now minimized by default.
-* FIX: Styling for the `dropdown-pages` control.
-* FIX: `switch` controls now properly resize based on the label used in the `choices` argument.
-* FIX: It is now possible to use `calc()` in CSS value controls.
-* FIX: Styles were being applied to the customizer even if they were not defined in the `kirki/config` filter.
-* FIX: Removed unnecessary class inheritances & other code cleanups.
-* NEW: Allow resetting options per-section.
-* NEW: Added new `color-palette` control.
-* NEW: Added `'transport' => 'auto'` to auto-calculate postMessage scripts from the `output` argument when possible.
-* NEW: Added Material design palettes in the `Kirki_Helper` class.
-* NEW: Allow changing the "Add Row" text on repeater fields.
-* NEW: Allow setting a limit for repeater rows.
-
-## 2.2.5
-
-March 23, 2016, dev time: 7 hours
-
-* FIX: Google fonts now loaded via a PHP array instead of a JSON file.
-* FIX: CSS issue due to escaped quotes on standard fonts.
-* FIX: Issue when using `units` on `js_vars` combined with the `style` method.
-* FIX: Missing textdomain on a string.
-* NEW: Refactored postMessage scripts.
-* NEW: Allow passing options to iris using the `choices` argument on color controls.
-* NEW: Allow disabling the custom loader using the `disable_loader` argument in the `kirki/config` filter.
-
-## 2.2.4
-
-March 20, 2016, dev time: 6 hours
-
-* FIX: Removed unnecessary CSS echoed by the `typography` control
-* FIX: Color Calculation class improvements
-* FIX: CSS improvement for `toggle` controls
-* NEW: Added `dashicons` field
-* NEW: Added the ability to limit the number of rows in `repeater` controls (props @fovoc)
-
-## 2.2.3
-
-March 19, 2016
-
-* FIX: Selecting a color inside typography controls was throwing a JS error (typo)
-* FIX: CSS alignment for descriptions in toggle controls
-* FIX: Default value for letter-spacing setting in typography controls (props @andreg)
-
-## 2.2.2.1
-
-March 18, 2016, dev time: 5 minutes
-
-* FIX: Backwards-compatibility bugfix
-
-## 2.2.2
-
-March 17, 2016, dev time: 10 minutes
-
-* FIX: PHP notice for non-standard controls when the `element` defined in an `output` argument is of type `array`.
-
-## 2.2.1
-
-March 17, 2016, dev time: 3 hours
-
-* FIX: Alpha channel was always enabled for color controls
-* FIX: PHP Notices in the class-kirki-output-control-typography.php file
-* FIX: PHP Fatal error on PHP 5.2
-* FIX: PHP Notice in the class-kirki-field.php file
-* FIX: PHP Fatal error when using background-position in the output argument
-* TWEAK: Removed unused languages from CodeMirror to reduce the plugin's size
-
-## 2.2.0
-
-March 16, 2016, dev time: 120 hours
-
-* FIX: Improved & simplified the `number` control.
-* FIX: Improved & simplified the `spacing` control.
-* FIX: Minor bugfix on the `select` control.
-* FIX: WP Coding standards improvements.
-* FIX: Bugfix for radio controls.
-* FIX: Fixed repeater remove image not triggering save button to activate, and added a placeholder when the image is removed. (props @sayedwp)
-* FIX: Fixed bug when using negative numbers as min value in the `number` field
-* FIX: Typo in the textdomain for some strings (some strings were using "Kirki" instead of "kirki").
-* FIX: Complete refactor & rewrite of the google-fonts implementation.
-* FIX: IE11 bug on radio-image controls.
-* FIX: Radio-image bug when used with serialized options.
-* NEW: Complete refactor & rewrite of typography control.
-* NEW: Refactored the CSS output methods.
-* NEW: Added new mothods for detecting dependencies.
-* NEW: Added font-subsets in typography controls.
-* NEW: Google fonts now only show valid variants & subsets in typography controls.
-* NEW: Implemented partial refreshes for WP 4.5 using a "partial_refresh" argument (formatted as an array).
-* NEW: Better autoloader & improved file structure.
-* NEW: Deprecated the `Kirki_Field_Sanitize` class in favor of a more simplified & robust implementation.
-* NEW: Completely refactored the `Kirki_Field` class, we're migrating to a more OOP model.
-* NEW: Added a new `kirki-generic` control.
-* NEW: Deprecated the custom text control and used the new `kirki-generic` control instead.
-* NEW: Deprecated the custom textarea control and used the new `kirki-generic` control instead.
-* NEW: Renamed the `help` argument to `tooltip`. `help` will continue to work as an alias.
-* NEW: Merged the `color` & color-alpha` controls. We now use the `color-alpha` control for all colors, and just modify the `data-alpha` property it has.
-* NEW: Started an OOP rewrite of many classes
-* NEW: Started rewriting the PHPUNIT tests & tweaked them so they can now run on localhosts (like VVV) and not just on travis-ci.
-* NEW: Included the ariColor library for color calculations (https://aristath.github.io/ariColor/)
-* TWEAK: Other code refactoring for improved performance
-* TWEAK: Updated `grunt` packages.
-
-## 2.1.0.1
-
-February 17, 2016, dev time: 5 minutes
-
-* FIX: PHP Notices (undefined index)
-
-## 2.1.0
-
-February 17, 2016, dev time: 4 hours
-
-* FIX: Image field issues inside the Repeater field (props @sayedwp)
-* NEW: Allow disabling output per-config
-* NEW: Introduce 'postMessage' => 'auto' option in config (will auto-create `js_vars` using the `output` argument)
-* NEW: New color control using a js-based template
-* TWEAK: Branding script rewrite
-* TWEAK: Color controls styling
-* TWEAK: Coding improvements & cleanups
-
-## 2.0.9
-
-February 13, 2016, dev time: 1 hour.
-
-* FIX: Google fonts bug (use double quotes when font name contains a space character)
-* FIX: Checkbox control bug (checkboxes were always displayed as checked, regardless of their actual value)
-* NEW: Intruducing KIRKI_NO_OUTPUT constant that disables CSS output completely when set to true.
-
-## 2.0.8
-
-February 10, 2016, dev time: 2 hours
-
-* FIX: Only load Kirki styles when in the customizer
-* FIX: Performance issue with Google Fonts
-* NEW: Added radio-image controls to repeaters
-* TWEAK: Better color handling in the Kirki_Color class
-
-## 2.0.7
-
-January 19, 2016, dev time: 1 hour
-
-* FIX: Narrow the scope of "multicheck" modification checker (props @chetzof)
-* FIX: PHP warnings due to invalid callback method
-* FIX: postMessage bug introduced in 2.0.6 (2 lines commented-out)
-
-## 2.0.6
-
-January 18, 2016, dev time: 7 hours
-
-* FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
-* FIX: Correctly check current value of checkbox control. (props @andrezrv)
-* FIX: Bug in the sortable field (props @daviedR)
-* FIX: Fixed some bugs that occured when using serialized options instead of theme_mods
-* NEW: Added an image sub-field to repeater fields (props @sayedwp)
-* NEW: Added a JS callback to js_vars (props @pingram3541)
-* TWEAK: Settings sanitization
-* TWEAK: Removed demo theme from the plugin. This is now provided separately on https://github.com/aristath/kirki-demo
-
-## 2.0.5
-
-December 23, 2015, dev time: 2.5 hours
-
-* FIX: Disabled the ajax-loading method for stylesheets. All styles are now added inline. Will be re-examined for a future release.
-* FIX: Number controls were not properly triggering changes
-* FIX: Styling for number controls
-* FIX: In some cases the dynamic CSS was added before the main stylesheet. We now add them using a priority of 999 to ensure they are enqueued afterwards.
-
-## 2.0.4
-
-December 19, 2015, dev time: 3 hours
-
-* NEW: Added units support to the Typography field
-* NEW: Default methods of enqueuing styles in now inline.
-* NEW: Added 'inline_css' argument to config. set to false to add styles using AJAX.
-* FIX: HTML mode for CodeMirror now functional
-* FIX: PHP Notices when the config filter is used wrong
-* FIX: Monor bugfix for text inputs
-* FIX: Indentation & coding standards
-* FIX: failing PHPUNIT test.
-* TWEAK: Remove passing click event object
-
-## 2.0.3
-
-December 6, 2015, dev time: 45 minutes
-
-* Bugfix for updates
-
-## 2.0.2
-
-December 6, 2015, dev time: 30 minutes
-
-* FIX: Fatal error on update (not on new installations)
-* FIX: Typo
-
-## 2.0.1
-
-December 6, 2015, dev time: 10 minutes
-
-* FIX: Some configurations were failing with the new autoloader. Reverted to a simpler file structure.
-
-## 2.0
-
-December 6, 2015, dev time > 140 hours
-
-* NEW: Added support for `sanitize_callback` arguments on each item in the CSS `output`.
-* NEW: Added the ability to define an array as element in the `output`.
-* NEW: Auto-prefixing CSS output for cross-browser compatibilities.
-* NEW: Allow using arrays in settings.
-* NEW: Dimension Field.
-* NEW: Repeater Field.
-* NEW: Code Field using the ACE editor.
-* NEW: Typography Control.
-* NEW: Preset Field.
-* NEW: Demo theme.
-* NEW: Spacing Control.
-* REMOVED: Redux Framework compatibility.
-* FIX: Minor bugfixes to the Kirki_Color class.
-* FIX: kirki_get_option now uses Kirki::get_option().
-* FIX: Various bugfixes.
-* TWEAK: Converted the `checkbox` control to use the JS templating system.
-* TWEAK: Converted the `custom` control to use the JS templating system.
-* TWEAK: Converted the `multicheck` control to use the JS templating system.
-* TWEAK: Converted the `number` control to use the JS templating system.
-* TWEAK: Converted the `palette` control to use the JS templating system.
-* TWEAK: Converted the `radio-buttonset` control to use the JS templating system.
-* TWEAK: Converted the `radio-image` control to use the JS templating system.
-* TWEAK: Converted the `radio` control to use the JS templating system.
-* TWEAK: Converted the `select` control to use the JS templating system.
-* TWEAK: Converted the `slider` control to use the JS templating system.
-* TWEAK: Converted the `switch` control to use the JS templating system.
-* TWEAK: Converted the `textarea` control to use the JS templating system.
-* TWEAK: Converted the `toggle` control to use the JS templating system.
-* TWEAK: `radio-buttonset` controls are now CSS-only.
-* TWEAK: `radio-image` controls are now CSS-only.
-* TWEAK: `select` controls nopw use [selectize](http://brianreavis.github.io/selectize.js/) instead of [Select2](https://select2.github.io/).
-* TWEAK: Deprecated `select2` and `select2-multiple` controls. We now have a global `select` control. Previous implementations gracefully fallback to the current one.
-* TWEAK: `switch` controls are now CSS-only.
-* TWEAK: `toggle` controls are now CSS-only.
-* TWEAK: Sliders now use an HTML5 "range" input instead of jQuery-UI.
-* TWEAK: Better coding standards.
-* TWEAK: Descriptions styling.
-* TWEAK: Improved controls styling.
-* TWEAK: Compiled CSS & JS for improved performance.
-* TWEAK: Added prefix to the sanitized output array.
-* TWEAK: Updated google-fonts.
-* TWEAK: Grunt integration.
-* TWEAK: Some Code refactoring.
-
-## 1.0.2
-
-July 17, 2014, dev time: 5 minutes
-
-* NEW: Added 'disable_output' and 'disable_google_fonts' arguments to the configuration.
-
-## 1.0.1
-
-July 17, 2014, dev time: 1 hour
-
-* FIX: Issues when using serialized options instead of theme_mods or individual options.
-* FIX: Issues with the `output` argument on fields.
-* FIX: Other minor bugfixes
-
-## 1.0.0
-
-July 11, 2014, dev time: 177 hours
-
-* NEW: Added PHPUnit tests
-* NEW: Use wp_add_inline_style to add customizer styles
-* NEW: Rebuilt the background fields calculation
-* NEW: Now using Formstone for switches & toggles
-* NEW: Added a new API. See https://github.com/aristath/kirki/wiki for documentation.
-* NEW: Minimum PHP requirement is now PHP 5.2
-* NEW: Added a Select2 field type.
-* NEW: Introducing the Kirki::get_option() method to get values.
-* NEW: added 'media_query' argument to output.
-* NEW: Added ability to get variables for CSS preprocessors from the customizer values. See https://github.com/aristath/kirki/wiki/variables for documentation
-* NEW: now supporting 'units' to all outputs to support '!important'
-* NEW: Ability to create panels & sections using the new API.
-* NEW: added a get_posts method to the Kirki class.
-* NEW: Implement width argument in the styling options. See https://github.com/aristath/kirki/wiki/Styling-the-Customizer
-* NEW: add 'kirki/control_types' filter
-* FIX: Properly saving values in the db when using serialized options
-* FIX: Check if classes & functions exist before adding them (allows for better compatibility when embedded in a theme)
-* FIX: PHP Warnings & Notices
-* FIX: Other minor bugfixes
-* FIX: Now using consistently `option_type` instead of `options_type` everywhere
-* FIX: `Kirki::get_option()` method now works for all fields, including background fields.
-* FIX: avoid errors when Color is undefined in background fields
-* FIX: Use WP_Filesystem to get the google fonts array from a json file
-* FIX: Radio-Button styling
-* FIX: PHP Notices
-* FIX: Typos
-* FIX: Properly sanitizing rgba colors
-* FIX: Properly sanitize numbers
-* FIX: Make sure all variables are escaped on output
-* TWEAK: Simplify the Colourlovers integration.
-* TWEAK: Improve sanitization
-* TWEAK: Improve the Kirki_Styles_Customizer class
-* TWEAK: Code cleanups
-* TWEAK: Added more inline docs (lots of them)
-* TWEAK: Use active_callback for required arguments instead of custom JS
-* TWEAK: Updated translation files
-* TWEAK: Better color manipulation in the Kirki_Color class
-* TWEAK: Move secondary classes instantiation to the Kirki() function.
-* TWEAK: set a $kirki global
-* TWEAK: deprecate getOrThrow method in the Kirki_Config class.
-* TWEAK: Move sanitisation functions to a Kirki_Sanitize class.
-* TWEAK: Rename Kirki_Framework to Kirki_Toolkit.
-* TWEAK: Move variables to the new API
-* TWEAK: simplify Kirki_Controls class
-* TWEAK: move the kirki/fields & kirki/controls filters to the new API
-* REMOVED: remove the 'stylesheet_id' from the configuration.
-
-## 0.8.4
-
-April 6, 2014, dev time: 0.5 hours
-
-* FIX: Color sanitization was distorting 0 characters in the color hex.
-* FIX: Properly sanitizing ColorAlpha controls
-* FIX: Sanitizing more properties in the Fields class
-* FIX: removing remnant double-sanitization calls from the controls classes
-
-## 0.8.3
-
-April 5, 2014, dev time: 28 hours
-
-* NEW: Introduce a Field class
-* NEW: Introduce a Builder class
-* TWEAK: Code Cleanups
-* NEW: Added ability to use 'option' as the setting type
-* Fix : Bugs in the color calculation class
-* TWEAK: Everything gets sanitized in the "Field" class
-* FIX: Bugs in sortable field
-* FIX: Editor control had no description
-* NEW: Added a color-alpha control. To use it just set an rgba color as the default value.
-* TWEAK: SCSS & CSS improvements
-* FIX: Various PHP notices and warnings when no fields are defined
-* TWEAK: More efficient color sanitization method
-* TWEAK: Improved number control presentation
-* TWEAK: Improved the way background fields are handled
-* TWEAK: Checkboxes styling
-* NEW: Allow using rgba values for background colors
-* FIX: CSS fix - :focus color for active section
-* NEW: Add a static 'prepare' method to the ScriptRegistry class
-* FIX: Issues with the URL when Kirki is embedded in a theme
-
-## 0.8.2
-
-March 30, 2015, dev time: 5 minutes
-
-* FIX: Autoloader could not properly include files due to strtolower()
-
-## 0.8.1
-
-March 30, 2015, dev time: 30 minutes
-
-* FIX: Translation strings now overridable using the config filter.
-
-## 0.8.0
-
-March 30, 2015, dev time: 32 hours
-
-* Improvement: OOP redesign (props @vpratfr)
-* NEW: Added Palette control
-* NEW: Added Editor control (WYSIWYG - uses TinyMCE)
-* NEW: Added Custom control (free html)
-* NEW: Added a Kirki_Colourlovers class to use palettes from the colourlovers API
-* NEW: Added a composer file (props @vpratfr)
-* FIX: Wrong settings IDs
-* FIX: Color calculation on RGBA functions were off
-* TWEAK: Restructuring the plugin (props @vpratfr)
-* NEW: added a functional kirki_get_option() function
-* TWEAK: Simplified configuration options.
-* NEW: Turn Kirki into a singleton and a facade (props @vpratfr)
-* TWEAK: Completely re-written the customizer styles
-* NEW: Using SASS for customizer styles
-* TWEAK: Deprecating the group_title control in favor of the new custom control
-* TWEAK: Changed the CSS for checkboxes
-
-## 0.7.1
-
-March 15, 2015, dev time: 2 hours
-
-* REMOVED: Remove the `kirki_get_option` function that was introduced in 0.7 as it's not working properly yet.
-* FIX: Undefined index notice when a default value for the control was not defined
-* TWEAK: `logo_image` now injects an `img` element instead of a `div` with custom background
-* NEW: Added `description` argument in the kirki configuration (replaces the theme description)
-
-## 0.7
-
-March 14, 2015, dev time: 10 hours
-
-* FIX: Array to string conversion that happened conditionally when used with googlefonts. (props @groucho75)
-* FIX: Background opacity affects background-position of bg image
-* FIX: font-weight not being applied on google fonts
-* NEW: Added `kirki_get_option( $setting );` function that also gets default values
-* TWEAK: Singleton for main plugin class
-* FIX: Prevent empty help tooltips
-* NEW: Added `toggle` control
-* NEW: Added `switch` control
-* FIX: Color controls were not being reset to default:
-* TWEAK: Tooltips now loaded via jQuery
-* TWEAK: Renamed `setting` to settings for consistency with WordPress core
-* TWEAK: Renamed `description` to `help` and `subtitle` to `description for consistency with WordPress core
-* TWEAK: Backwards-compatibility improvements
-* NEW: Allow hiding background control elements by not including default values for them
-* TWEAK: Performance improvements
-* TWEAK: Using WordPress core controls instead of custom ones when those are available
-* TWEAK: Separate logic for multiple-type controls that were using the "mode" argument. This has been deprecated in favor of completely separate control types.
-
-## 0.6.2
-
-March 2, 2015, dev time: 3 hours
-
-* FIX: Frontend styles were not properly enqueued (props @dmgawel)
-* NEW: Allow multiple output styles per control defined as an array of arrays.
-* FIX: Background control styles
-* FIX: Serialise default values for the sortable control. Now you can define default values as an array.
-* FIX: Required script
-* FIX: \'_opacity\' was added to a lot of controls by mistake. Removed it and wrote a migration script.
-
-## 0.6.1
-
-February 25, 2015, dev time: 1 hours
-
-* FIX: Sortables controls had a JS conflict
-* FIX: Switches & Toggles were not properly working
-
-## 0.6.0
-
-February 25, 2015, dev time: 9 hours
-
-* FIX: Tooltips now properly working
-* NEW: Added checkbox switches
-* NEW: Added checkbox toggles
-* FIX: Generated CSS is not properly combined & minified
-* FIX: Re-structuring files hierarchy
-* FIX: Simplify the way controls are loaded
-* NEW: Only load control classes when they are needed
-* NEW: Introducing Kirki_Customize_Control class
-* FIX: CSS tweaks
-* NEW: Sortable control (creating one is identical to a select control, but with `\'type\' => \'sortable\'`)
-* FIX: Double output CSS (props @agusmu)
-* NEW: Google fonts now parsed from a json file.
-
-## 0.5.1
-
-January 22, 2015
-
-* FIX: Transport defaults to refresh instead of postMessage
-* FIX: undefined index notice.
-
-## 0.5
-
-January 21, 2015
-
-* NEW: Automatic output of styles for generic controls.
-* NEW: Automatic output of styles + scripts for fonts (including googlefonts )
-* NEW: The \'output\' argument on background controls is now an array for consistency with other controls. Older syntax is still compatible though. :)
-* NEW: Add the ability to auto-generate styles for colors.
-* FIX: Add a blank stylesheet if we need one and no stylesheet_id has been defined in the config options.
-* FIX: CSS-only tooltips. Fixes issue with tooltips now showing up on WP >## 4
-* FIX: Code cleanups
-* NEW: Added support for WordPress\'s transport arguments
-* FIX: All controls now have a sanitization callback. Users can override the default sanitizations by adding their own \'sanitize_callback\' argument.
-* FIX: OOP rewrite
-* FIX: Strip protocol from Google API link
-* FIX: Loading order for some files
-* FIX: Removed deprecated less_var argument
-
-## 0.4
-
-October 25, 2014
-
-* FIX: bugfix for selector
-* NEW: Change the Kirki theme based on which admin theme is selected.
-* FIX: Tranlsation domain issue
-* NEW: Added a \"group_title\" control
-* FIX: Updated the required script
-* FIX: Updating CSS
-* Other minor improvements and bugfixes
-
-## 0.3
-
-May 26, 2014
-
-* NEW: added background field
-* NEW: added \'output\' argument to directly output the CSS
-
-## 0.2
-
-May 9, 2014
-
-* Initial version
diff --git a/functions/kirki/LICENSE b/functions/kirki/LICENSE
index 141f91f..de14462 100644
--- a/functions/kirki/LICENSE
+++ b/functions/kirki/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2019 Ari Stathopoulos (@aristath)
+Copyright (c) 2023 Themeum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/functions/kirki/README.md b/functions/kirki/README.md
deleted file mode 100644
index 33e354e..0000000
--- a/functions/kirki/README.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# Kirki Customizer Framework #
-**Contributors:** [davidvongries](https://profiles.wordpress.org/davidvongries), [aristath](https://profiles.wordpress.org/aristath), [dannycooper](https://profiles.wordpress.org/dannycooper), [wplemon](https://profiles.wordpress.org/wplemon), [igmoweb](https://profiles.wordpress.org/igmoweb)
-**Tags:** customizer, options framework, theme, mods, toolkit, gutenberg
-**Requires at least:** 5.2
-**Tested up to:** 6
-**Stable tag:** 4.0.24
-**License:** MIT
-**License URI:** https://opensource.org/licenses/MIT
-
-The ultimate customizer framework for WordPress theme developers.
-
-## Description ##
-
-[](https://travis-ci.org/aristath/kirki) [](https://codeclimate.com/github/aristath/kirki) [](https://opensource.org/licenses/MIT) [](https://www.codacy.com/app/aristath/kirki?utm_source=github.com&utm_medium=referral&utm_content=aristath/kirki&utm_campaign=Badge_Grade) [](https://scrutinizer-ci.com/g/aristath/kirki/?branch=develop)
-
-[Kirki](https://kirki.org/?utm_source=repo&utm_medium=description&utm_campaign=kirki) allows theme developers to build themes quicker & more easily.
-
-With over **30 custom controls** ranging from simple sliders to complex typography controls with Google-Fonts integration and features like automatic CSS & `postMessage` script generation, Kirki makes theme development a breeze.
-
-### Features ###
-* Increased Performance
-* Simplified API
-* Automatic CSS Generation
-* Automatic postMessage Generation
-* Partial Refresh
-* Conditional Logic
-* GDPR Compliance
-* Improved Page Speed
-* & more!
-
-### Controls ###
-
-* [Background Customizer Control](https://kirki.org/docs/controls/background)
-* [Code Customizer Control](https://kirki.org/docs/controls/code)
-* [Checkbox Customizer Control](https://kirki.org/docs/controls/checkbox)
-* [Color Customizer Control](https://kirki.org/docs/controls/color)
-* [Color Palette Customizer Control](https://kirki.org/docs/controls/color-palette)
-* [Custom Customizer Control](https://kirki.org/docs/controls/custom)
-* [Dashicons Customizer Control](https://kirki.org/docs/controls/dashicons)
-* [Date Customizer Control](https://kirki.org/docs/controls/date)
-* [Dimension Customizer Control](https://kirki.org/docs/controls/dimension)
-* [Dimensions Customizer Control](https://kirki.org/docs/controls/dimensions)
-* [Dropdown Pages Customizer Control](https://kirki.org/docs/controls/dropdown-pages)
-* [Editor Customizer Control](https://kirki.org/docs/controls/editor)
-* [Generic Customizer Control](https://kirki.org/docs/controls/generic)
-* [Image Customizer Control](https://kirki.org/docs/controls/image)
-* [Link Customizer Control](https://kirki.org/docs/controls/link)
-* [Multiple Checkbox Customizer Control](https://kirki.org/docs/controls/multicheck)
-* [Multicolor Customizer Control](https://kirki.org/docs/controls/multicolor)
-* [Number Customizer Control](https://kirki.org/docs/controls/number)
-* [Radio Customizer Control](https://kirki.org/docs/controls/radio)
-* [Radio Buttonset Customizer Control](https://kirki.org/docs/controls/radio-buttonset)
-* [Radio Image Customizer Control](https://kirki.org/docs/controls/radio-image)
-* [Repeater Customizer Control](https://kirki.org/docs/controls/repeater)
-* [Select Customizer Control](https://kirki.org/docs/controls/select)
-* [Slider Customizer Control](https://kirki.org/docs/controls/slider)
-* [Sortable Customizer Control](https://kirki.org/docs/controls/sortable)
-* [Switch Customizer Control](https://kirki.org/docs/controls/switch)
-* [Text Customizer Control](https://kirki.org/docs/controls/text)
-* [Textarea Customizer Control](https://kirki.org/docs/controls/textarea)
-* [Toggle Customizer Control](https://kirki.org/docs/controls/toggle)
-* [Typography Customizer Control](https://kirki.org/docs/controls/typography)
-* [Upload Customizer Control](https://kirki.org/docs/controls/upload)
-
-### Theme Example ###
-
-[Page Builder Framework](https://wp-pagebuilderframework.com?utm_source=kirki&utm_medium=repo&utm_campaign=wpbf)'s customizer settings are a prime example of what can be achieved with Kirki.
-
-Conditional Logic, Partial Refresh, postMessage and a variety of controls - It has all of it.
-
-### Documentation ###
-
-You can find detailed documentation on how to use Kirki on [kirki.org](https://kirki.org/?utm_source=repo&utm_medium=description&utm_campaign=kirki)
-
-### Kirki PRO ###
-
-Kirki PRO is currently in development. You can [sign up for the waiting list](https://kirki.org/pricing/?utm_source=repo&utm_medium=description&utm_campaign=kirki) here to be notified about updates.
-
-### Disclaimer ###
-
-Theme developers should be familiar with the Customizer API before starting to build a theme using Kirki. An excellent handbook for the WordPress Customizer can be found on the [developer.wordpress.org](https://developer.wordpress.org/themes/customize-api/) website.
-
-## Installation ##
-
-Simply install as a normal WordPress plugin and activate.
-
-If you want to integrate Kirki in your theme or plugin, please read the instructions on [our documentation site](https://kirki.org/docs/integration).
-
-## Changelog ##
-
-[See the previous changelogs here](https://github.com/kirki-framework/kirki/blob/master/CHANGELOG.md).
diff --git a/functions/kirki/assets/images/featured-plugin-banner.jpg b/functions/kirki/assets/images/featured-plugin-banner.jpg
new file mode 100644
index 0000000..74f00e5
Binary files /dev/null and b/functions/kirki/assets/images/featured-plugin-banner.jpg differ
diff --git a/functions/kirki/assets/images/kirki-logo-rounded.png b/functions/kirki/assets/images/kirki-logo-rounded.png
new file mode 100644
index 0000000..d0cee8d
Binary files /dev/null and b/functions/kirki/assets/images/kirki-logo-rounded.png differ
diff --git a/functions/kirki/assets/images/kirki-logo-square-white.png b/functions/kirki/assets/images/kirki-logo-square-white.png
new file mode 100644
index 0000000..5c1ef68
Binary files /dev/null and b/functions/kirki/assets/images/kirki-logo-square-white.png differ
diff --git a/functions/kirki/assets/images/kirki-logo-square.png b/functions/kirki/assets/images/kirki-logo-square.png
new file mode 100644
index 0000000..ed595ca
Binary files /dev/null and b/functions/kirki/assets/images/kirki-logo-square.png differ
diff --git a/functions/kirki/composer.json b/functions/kirki/composer.json
new file mode 100644
index 0000000..68eda9b
--- /dev/null
+++ b/functions/kirki/composer.json
@@ -0,0 +1,107 @@
+{
+ "name": "kirki-framework/kirki",
+ "type": "library",
+ "version": "4.2.0",
+ "keywords": [
+ "WordPress",
+ "Customizer"
+ ],
+ "description": "Extending the WordPress customizer",
+ "homepage": "https://kirki.org",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Kirki Framework",
+ "email": "connect@mapsteps.com"
+ }
+ ],
+ "config": {
+ "vendor-dir": "kirki-composer",
+ "allow-plugins": {
+ "dealerdirect/phpcodesniffer-composer-installer": true,
+ "composer/installers": true
+ }
+ },
+ "include-path": [
+ ".",
+ "core"
+ ],
+ "autoload": {
+ "psr-4": {
+ "Kirki\\Compatibility\\": [
+ "kirki-packages/compatibility/src"
+ ],
+ "Kirki\\Data\\": [
+ "kirki-packages/data-option/src"
+ ],
+ "Kirki\\Field\\": [
+ "kirki-packages/field/src/Field",
+ "kirki-packages/field-background/src",
+ "kirki-packages/field-dimensions/src",
+ "kirki-packages/field-fontawesome/src",
+ "kirki-packages/field-multicolor/src/Field",
+ "kirki-packages/field-multicolor/src",
+ "kirki-packages/field-typography/src/Field",
+ "kirki-packages/field-typography/src"
+ ],
+ "Kirki\\Module\\": [
+ "kirki-packages/module-css/src",
+ "kirki-packages/module-editor-styles/src",
+ "kirki-packages/module-field-dependencies/src",
+ "kirki-packages/module-postmessage/src",
+ "kirki-packages/module-preset/src",
+ "kirki-packages/module-section-icons/src",
+ "kirki-packages/module-selective-refresh/src",
+ "kirki-packages/module-tooltips/src",
+ "kirki-packages/module-webfonts/src"
+ ],
+ "Kirki\\Util\\": [
+ "kirki-packages/util/src"
+ ],
+ "Kirki\\Settings\\": [
+ "kirki-packages/settings/src"
+ ],
+ "Kirki\\": [
+ "kirki-packages/control-base/src",
+ "kirki-packages/control-checkbox/src",
+ "kirki-packages/control-code/src",
+ "kirki-packages/control-color/src",
+ "kirki-packages/control-color-palette/src",
+ "kirki-packages/control-cropped-image/src",
+ "kirki-packages/control-custom/src",
+ "kirki-packages/control-dashicons/src",
+ "kirki-packages/control-date/src",
+ "kirki-packages/control-dimension/src",
+ "kirki-packages/control-editor/src",
+ "kirki-packages/control-generic/src",
+ "kirki-packages/control-image/src",
+ "kirki-packages/control-multicheck/src",
+ "kirki-packages/control-palette/src",
+ "kirki-packages/control-radio/src",
+ "kirki-packages/control-react-colorful/src",
+ "kirki-packages/control-react-select/src",
+ "kirki-packages/control-repeater/src",
+ "kirki-packages/control-select/src",
+ "kirki-packages/control-slider/src",
+ "kirki-packages/control-sortable/src",
+ "kirki-packages/control-upload/src",
+ "kirki-packages/field/src",
+ "kirki-packages/googlefonts/src",
+ "kirki-packages/l10n/src",
+ "kirki-packages/module-panels/src",
+ "kirki-packages/module-sections/src",
+ "kirki-packages/url-getter/src"
+ ]
+ }
+ },
+ "require": {
+ "php": ">=7.0"
+ },
+ "require-dev": {
+ "composer/installers": "*",
+ "dealerdirect/phpcodesniffer-composer-installer": "*",
+ "wp-coding-standards/wpcs": "*",
+ "phpcompatibility/phpcompatibility-wp": "*",
+ "wptrt/wpthemereview": "dev-develop"
+ }
+}
diff --git a/functions/kirki/composer.lock b/functions/kirki/composer.lock
new file mode 100644
index 0000000..3aba745
--- /dev/null
+++ b/functions/kirki/composer.lock
@@ -0,0 +1,605 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "1cdc638108e6a3cc36d943f05ad417c4",
+ "packages": [],
+ "packages-dev": [
+ {
+ "name": "composer/installers",
+ "version": "v2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/installers.git",
+ "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/installers/zipball/c29dc4b93137acb82734f672c37e029dfbd95b35",
+ "reference": "c29dc4b93137acb82734f672c37e029dfbd95b35",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^1.0 || ^2.0",
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "composer/composer": "1.6.* || ^2.0",
+ "composer/semver": "^1 || ^3",
+ "phpstan/phpstan": "^0.12.55",
+ "phpstan/phpstan-phpunit": "^0.12.16",
+ "symfony/phpunit-bridge": "^5.3",
+ "symfony/process": "^5"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "Composer\\Installers\\Plugin",
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ },
+ "plugin-modifies-install-path": true
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Installers\\": "src/Composer/Installers"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Kyle Robinson Young",
+ "email": "kyle@dontkry.com",
+ "homepage": "https://github.com/shama"
+ }
+ ],
+ "description": "A multi-framework Composer library installer",
+ "homepage": "https://composer.github.io/installers/",
+ "keywords": [
+ "Dolibarr",
+ "Eliasis",
+ "Hurad",
+ "ImageCMS",
+ "Kanboard",
+ "Lan Management System",
+ "MODX Evo",
+ "MantisBT",
+ "Mautic",
+ "Maya",
+ "OXID",
+ "Plentymarkets",
+ "Porto",
+ "RadPHP",
+ "SMF",
+ "Starbug",
+ "Thelia",
+ "Whmcs",
+ "WolfCMS",
+ "agl",
+ "annotatecms",
+ "attogram",
+ "bitrix",
+ "cakephp",
+ "chef",
+ "cockpit",
+ "codeigniter",
+ "concrete5",
+ "croogo",
+ "dokuwiki",
+ "drupal",
+ "eZ Platform",
+ "elgg",
+ "expressionengine",
+ "fuelphp",
+ "grav",
+ "installer",
+ "itop",
+ "known",
+ "kohana",
+ "laravel",
+ "lavalite",
+ "lithium",
+ "magento",
+ "majima",
+ "mako",
+ "matomo",
+ "mediawiki",
+ "miaoxing",
+ "modulework",
+ "modx",
+ "moodle",
+ "osclass",
+ "pantheon",
+ "phpbb",
+ "piwik",
+ "ppi",
+ "processwire",
+ "puppet",
+ "pxcms",
+ "reindex",
+ "roundcube",
+ "shopware",
+ "silverstripe",
+ "sydes",
+ "sylius",
+ "tastyigniter",
+ "wordpress",
+ "yawik",
+ "zend",
+ "zikula"
+ ],
+ "support": {
+ "issues": "https://github.com/composer/installers/issues",
+ "source": "https://github.com/composer/installers/tree/v2.2.0"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-08-20T06:45:11+00:00"
+ },
+ {
+ "name": "dealerdirect/phpcodesniffer-composer-installer",
+ "version": "v1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/composer-installer.git",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^1.0 || ^2.0",
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
+ },
+ "require-dev": {
+ "composer/composer": "*",
+ "ext-json": "*",
+ "ext-zip": "*",
+ "php-parallel-lint/php-parallel-lint": "^1.3.1",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "yoast/phpunit-polyfills": "^1.0"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
+ },
+ "autoload": {
+ "psr-4": {
+ "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Franck Nijhof",
+ "email": "franck.nijhof@dealerdirect.com",
+ "homepage": "http://www.frenck.nl",
+ "role": "Developer / IT Manager"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
+ "homepage": "http://www.dealerdirect.com",
+ "keywords": [
+ "PHPCodeSniffer",
+ "PHP_CodeSniffer",
+ "code quality",
+ "codesniffer",
+ "composer",
+ "installer",
+ "phpcbf",
+ "phpcs",
+ "plugin",
+ "qa",
+ "quality",
+ "standard",
+ "standards",
+ "style guide",
+ "stylecheck",
+ "tests"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/composer-installer/issues",
+ "source": "https://github.com/PHPCSStandards/composer-installer"
+ },
+ "time": "2023-01-05T11:28:13+00:00"
+ },
+ {
+ "name": "phpcompatibility/php-compatibility",
+ "version": "9.3.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
+ "reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
+ "reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3",
+ "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
+ },
+ "conflict": {
+ "squizlabs/php_codesniffer": "2.6.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Wim Godden",
+ "homepage": "https://github.com/wimg",
+ "role": "lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
+ }
+ ],
+ "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
+ "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
+ "keywords": [
+ "compatibility",
+ "phpcs",
+ "standards"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibility"
+ },
+ "time": "2019-12-27T09:44:58+00:00"
+ },
+ {
+ "name": "phpcompatibility/phpcompatibility-paragonie",
+ "version": "1.3.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
+ "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/bba5a9dfec7fcfbd679cfaf611d86b4d3759da26",
+ "reference": "bba5a9dfec7fcfbd679cfaf611d86b4d3759da26",
+ "shasum": ""
+ },
+ "require": {
+ "phpcompatibility/php-compatibility": "^9.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
+ "paragonie/random_compat": "dev-master",
+ "paragonie/sodium_compat": "dev-master"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Wim Godden",
+ "role": "lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "lead"
+ }
+ ],
+ "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.",
+ "homepage": "http://phpcompatibility.com/",
+ "keywords": [
+ "compatibility",
+ "paragonie",
+ "phpcs",
+ "polyfill",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie"
+ },
+ "time": "2022-10-25T01:46:02+00:00"
+ },
+ {
+ "name": "phpcompatibility/phpcompatibility-wp",
+ "version": "2.1.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
+ "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5",
+ "reference": "b6c1e3ee1c35de6c41a511d5eb9bd03e447480a5",
+ "shasum": ""
+ },
+ "require": {
+ "phpcompatibility/php-compatibility": "^9.0",
+ "phpcompatibility/phpcompatibility-paragonie": "^1.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Wim Godden",
+ "role": "lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "lead"
+ }
+ ],
+ "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.",
+ "homepage": "http://phpcompatibility.com/",
+ "keywords": [
+ "compatibility",
+ "phpcs",
+ "standards",
+ "static analysis",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP"
+ },
+ "time": "2022-10-24T09:00:36+00:00"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "3.7.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
+ "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
+ "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "bin": [
+ "bin/phpcs",
+ "bin/phpcbf"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Greg Sherwood",
+ "role": "lead"
+ }
+ ],
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "keywords": [
+ "phpcs",
+ "standards"
+ ],
+ "support": {
+ "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
+ "source": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
+ },
+ "time": "2022-06-18T07:21:10+00:00"
+ },
+ {
+ "name": "wp-coding-standards/wpcs",
+ "version": "2.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
+ "reference": "7da1894633f168fe244afc6de00d141f27517b62"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62",
+ "reference": "7da1894633f168fe244afc6de00d141f27517b62",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^3.3.1"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "phpcsstandards/phpcsdevtools": "^1.0",
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
+ "source": "https://github.com/WordPress/WordPress-Coding-Standards",
+ "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
+ },
+ "time": "2020-05-13T23:57:56+00:00"
+ },
+ {
+ "name": "wptrt/wpthemereview",
+ "version": "dev-develop",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/WPTT/WPThemeReview.git",
+ "reference": "15684d0852fe90d807c2ae7746dea1302b74b4bd"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/WPTT/WPThemeReview/zipball/15684d0852fe90d807c2ae7746dea1302b74b4bd",
+ "reference": "15684d0852fe90d807c2ae7746dea1302b74b4bd",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "phpcompatibility/phpcompatibility-wp": "^2.0",
+ "squizlabs/php_codesniffer": "^3.3.1",
+ "wp-coding-standards/wpcs": "^2.2.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
+ "php-parallel-lint/php-console-highlighter": "^0.5",
+ "php-parallel-lint/php-parallel-lint": "^1.0",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "phpcsstandards/phpcsdevtools": "^1.0",
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0",
+ "roave/security-advisories": "dev-master"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
+ },
+ "default-branch": true,
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Theme Review Team",
+ "homepage": "https://make.wordpress.org/themes/handbook/",
+ "role": "Strategy and rule setting"
+ },
+ {
+ "name": "Ulrich Pogson",
+ "homepage": "https://github.com/grappler",
+ "role": "Lead developer"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "Lead developer"
+ },
+ {
+ "name": "Denis Žoljom",
+ "homepage": "https://github.com/dingo-d",
+ "role": "Plugin integration lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/WPTRT/WPThemeReview/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org",
+ "homepage": "https://make.wordpress.org/themes/handbook/review/",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "themes",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/WPTRT/WPThemeReview/issues",
+ "source": "https://github.com/WPTRT/WPThemeReview"
+ },
+ "time": "2021-06-22T06:10:49+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": {
+ "wptrt/wpthemereview": 20
+ },
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=7.0"
+ },
+ "platform-dev": [],
+ "plugin-api-version": "2.3.0"
+}
diff --git a/functions/kirki/example.php b/functions/kirki/example.php
deleted file mode 100644
index d26867b..0000000
--- a/functions/kirki/example.php
+++ /dev/null
@@ -1,1329 +0,0 @@
- 'theme_mod',
- 'capability' => 'manage_options',
- ]
-);
-
-/**
- * Add a panel.
- *
- * @link https://kirki.org/docs/getting-started/panels.html
- */
-new \Kirki\Panel(
- 'kirki_demo_panel',
- [
- 'priority' => 10,
- 'title' => esc_html__( 'Kirki Demo Panel', 'kirki' ),
- 'description' => esc_html__( 'Contains sections for all kirki controls.', 'kirki' ),
- ]
-);
-
-/**
- * Add Sections.
- *
- * We'll be doing things a bit differently here, just to demonstrate an example.
- * We're going to define 1 section per control-type just to keep things clean and separate.
- *
- * @link https://kirki.org/docs/getting-started/sections.html
- */
-$sections = [
- 'background' => [ esc_html__( 'Background', 'kirki' ), '' ],
- 'code' => [ esc_html__( 'Code', 'kirki' ), '' ],
- 'checkbox' => [ esc_html__( 'Checkbox', 'kirki' ), '' ],
- 'color' => [ esc_html__( 'Color', 'kirki' ), '' ],
- 'color_advanced' => [ esc_html__( 'Color — Advanced', 'kirki' ), '' ],
- 'color_palette' => [ esc_html__( 'Color Palette', 'kirki' ), '' ],
- 'custom' => [ esc_html__( 'Custom', 'kirki' ), '' ],
- 'dashicons' => [ esc_html__( 'Dashicons', 'kirki' ), '' ],
- 'date' => [ esc_html__( 'Date', 'kirki' ), '' ],
- 'dimension' => [ esc_html__( 'Dimension', 'kirki' ), '' ],
- 'dimensions' => [ esc_html__( 'Dimensions', 'kirki' ), '' ],
- 'dropdown-pages' => [ esc_html__( 'Dropdown Pages', 'kirki' ), '' ],
- 'editor' => [ esc_html__( 'Editor', 'kirki' ), '' ],
- 'fontawesome' => [ esc_html__( 'Font-Awesome', 'kirki' ), '' ],
- 'generic' => [ esc_html__( 'Generic', 'kirki' ), '' ],
- 'image' => [ esc_html__( 'Image', 'kirki' ), '' ],
- 'multicheck' => [ esc_html__( 'Multicheck', 'kirki' ), '' ],
- 'multicolor' => [ esc_html__( 'Multicolor', 'kirki' ), '' ],
- 'number' => [ esc_html__( 'Number', 'kirki' ), '' ],
- 'palette' => [ esc_html__( 'Palette', 'kirki' ), '' ],
- 'preset' => [ esc_html__( 'Preset', 'kirki' ), '' ],
- 'radio' => [ esc_html__( 'Radio', 'kirki' ), esc_html__( 'A plain Radio control.', 'kirki' ) ],
- 'radio-buttonset' => [ esc_html__( 'Radio Buttonset', 'kirki' ), esc_html__( 'Radio-Buttonset controls are essentially radio controls with some fancy styling to make them look cooler.', 'kirki' ) ],
- 'radio-image' => [ esc_html__( 'Radio Image', 'kirki' ), esc_html__( 'Radio-Image controls are essentially radio controls with some fancy styles to use images', 'kirki' ) ],
- 'repeater' => [ esc_html__( 'Repeater', 'kirki' ), '' ],
- 'select' => [ esc_html__( 'Select', 'kirki' ), '' ],
- 'slider' => [ esc_html__( 'Slider', 'kirki' ), '' ],
- 'sortable' => [ esc_html__( 'Sortable', 'kirki' ), '' ],
- 'switch' => [ esc_html__( 'Switch', 'kirki' ), '', 'outer' ],
- 'toggle' => [ esc_html__( 'Toggle', 'kirki' ), '', 'outer' ],
- 'typography' => [ esc_html__( 'Typography', 'kirki' ), '' ],
- 'upload' => [ esc_html__( 'Upload', 'kirki' ), '' ],
-];
-
-foreach ( $sections as $section_id => $section ) {
- $section_args = [
- 'title' => $section[0],
- 'description' => $section[1],
- 'panel' => 'kirki_demo_panel',
- ];
- if ( isset( $section[2] ) ) {
- $section_args['type'] = $section[2];
- }
- new \Kirki\Section( str_replace( '-', '_', $section_id ) . '_section', $section_args );
-}
-
-new \Kirki\Section(
- 'pro_test',
- [
- 'title' => esc_html__( 'Test Link Section', 'kirki' ),
- 'type' => 'link',
- 'button_text' => esc_html__( 'Pro', 'kirki' ),
- 'button_url' => 'https://kirki.org',
- ]
-);
-
-/**
- * Background Control.
- *
- * @todo Triggers change on load.
- */
-new \Kirki\Field\Background(
- [
- 'settings' => 'kirki_demo_background',
- 'label' => esc_html__( 'Background Control', 'kirki' ),
- 'description' => esc_html__( 'Background conrols are pretty complex! (but useful if properly used)', 'kirki' ),
- 'section' => 'background_section',
- 'default' => [
- 'background-color' => 'rgba(20,20,20,.8)',
- 'background-image' => '',
- 'background-repeat' => 'repeat',
- 'background-position' => 'center center',
- 'background-size' => 'cover',
- 'background-attachment' => 'scroll',
- ],
- ]
-);
-
-/**
- * Code control.
- *
- * @link https://kirki.org/docs/controls/code.html
- */
-new \Kirki\Field\Code(
- [
- 'settings' => 'kirki_demo_code_css',
- 'label' => esc_html__( 'Code Control — CSS', 'kirki' ),
- 'description' => esc_html__( 'Sample of code control in CSS format', 'kirki' ),
- 'section' => 'code_section',
- 'default' => '',
- 'choices' => [
- 'language' => 'css',
- ],
- ]
-);
-
-/**
- * Checkbox control.
- *
- * @link https://kirki.org/docs/controls/checkbox.html
- */
-new \Kirki\Field\Checkbox(
- [
- 'settings' => 'kirki_demo_checkbox',
- 'label' => esc_html__( 'Checkbox Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of checkbox control', 'kirki' ),
- 'section' => 'checkbox_section',
- 'default' => true,
- ]
-);
-
-/**
- * Color Controls.
- *
- * @link https://kirki.org/docs/controls/color.html
- */
-Kirki::add_field(
- 'kirki_demo_config',
- [
- 'type' => 'color',
- 'settings' => 'kirki_demo_color_alpha_old',
- 'label' => 'Using Kirki::add_field
— With alpha',
- 'description' => esc_html__( 'This is a color control registered using `Kirki::add_field` with "alpha" => true (the old Kirki API).', 'kirki' ),
- 'section' => 'color_section',
- 'transport' => 'postMessage',
- 'default' => '#ff0055',
- 'choices' => [
- 'alpha' => true,
- ],
- ]
-);
-
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_hex',
- 'label' => __( 'Hex only', 'kirki' ),
- 'description' => esc_html__( 'This is a color control without alpha channel.', 'kirki' ),
- 'section' => 'color_section',
- 'transport' => 'postMessage',
- 'default' => '#0008DC',
- ]
-);
-
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_alpha',
- 'label' => __( 'With alpha channel', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with alpha channel.', 'kirki' ),
- 'section' => 'color_section',
- 'transport' => 'postMessage',
- 'choices' => [
- 'alpha' => true,
- ],
- ]
-);
-
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_hue',
- 'label' => __( 'Hue only.', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with "mode" => "hue" (hue mode).', 'kirki' ),
- 'section' => 'color_section',
- 'transport' => 'postMessage',
- 'default' => 160,
- 'mode' => 'hue',
- ]
-);
-
-/**
- * Color Control (Advanced)
- */
-
-/**
- * Color control with form_component value is HexColorPicker.
- *
- * The saved value will always be a string, for instance:
- * "#ff0000"
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_hex',
- 'label' => __( 'v4 — form_component — HexColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is HexColorPicker.', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => '#ffff00',
- 'choices' => [
- 'form_component' => 'HexColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is RgbColorPicker.
- *
- * The saved value will be an rgba array.
- * The format is following the `react-colorful` and `colord` formatting, for instance:
- * [
- * 'r' => 255,
- * 'g' => 255,
- * 'b' => 45,
- * 'a' => 0.5
- * ]
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_rgb',
- 'label' => __( 'v4 — form_component — RgbColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is RgbColorPicker. The saved value will be an array.', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => '#ffff00',
- 'choices' => [
- 'form_component' => 'RgbColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is RgbStringColorPicker.
- *
- * The saved value will be an rgb string.
- * The format is following the `react-colorful` and `colord` formatting, for instance:
- * "rgba(255, 255, 45)"
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_rgb_string',
- 'label' => __( 'v4 — form_component — RgbStringColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is RgbStringColorPicker. The saved value will be a string.', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => '#ffff00',
- 'choices' => [
- 'form_component' => 'RgbStringColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is RgbaColorPicker.
- *
- * The saved value will be an rgba array.
- * The format is following the `react-colorful` and `colord` formatting, for instance:
- * [
- * 'r' => 255,
- * 'g' => 255,
- * 'b' => 45,
- * 'a' => 0.5
- * ]
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_rgba',
- 'label' => __( 'v4 — form_component — RgbaColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is RgbaColorPicker. The saved value will be an array.', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => '#ffff00',
- 'choices' => [
- 'form_component' => 'RgbaColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is RgbaStringColorPicker.
- *
- * The saved value will be an rgba string.
- * The format is following the `react-colorful` and `colord` formatting, for instance:
- * "rgba(255, 255, 45, 0.5)"
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_rgba_string',
- 'label' => __( 'v4 — form_component — RgbaStringColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is RgbaStringColorPicker. The saved value will be a string.', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => '#ffff00',
- 'choices' => [
- 'form_component' => 'RgbaStringColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is HslColorPicker.
- *
- * The saved value will be an hsl array.
- * The format is following the `react-colorful` and `colord` formatting (int, without the percent sign), for instance:
- * [
- * 'h' => 180,
- * 's' => 40, // Is int, without the percent sign.
- * 'l' => 50, // Is int, without the percent sign.
- * ]
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_hsl',
- 'label' => __( 'v4 — form_component — HslColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is HslColorPicker. The saved value will be an array', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => 'hsl(206, 23%, 25%)',
- 'choices' => [
- 'form_component' => 'HslColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is HslStringColorPicker.
- *
- * The saved value will be an hsl string.
- * The format is following the `react-colorful` and `colord` formatting, for instance:
- * "hsl(180, 40%, 50%)"
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_hsl_string',
- 'label' => __( 'v4 — form_component — HslStringColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is HslStringColorPicker. The saved value will be a string', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => 'hsl(206, 23%, 25%)',
- 'choices' => [
- 'form_component' => 'HslStringColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is HslaColorPicker.
- *
- * The saved value will be an hsla array.
- * The format is following the `react-colorful` and `colord` formatting (int, without the percent sign), for instance:
- * [
- * 'h' => 180,
- * 's' => 40, // Is int, without the percent sign.
- * 'l' => 50, // Is int, without the percent sign.
- * 'a' => 0.5
- * ]
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_hsla',
- 'label' => __( 'v4 — form_component — HslaColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is HslaColorPicker. The saved value will be an array', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => 'hsla(206, 23%, 25%, 0.7)',
- 'choices' => [
- 'form_component' => 'HslaColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Color control with form_component value is HslaStringColorPicker.
- *
- * The saved value will be an hsla string.
- * The format is following the `react-colorful` and `colord` formatting, for instance:
- * "hsla(180, 40%, 50%, 0.5)"
- */
-new \Kirki\Field\Color(
- [
- 'settings' => 'kirki_demo_color_form_component_hsla_string',
- 'label' => __( 'v4 — form_component — HslaStringColorPicker', 'kirki' ),
- 'description' => esc_html__( 'This is a color control with form_component value is HslaStringColorPicker. The saved value will be a string', 'kirki' ),
- 'section' => 'color_advanced_section',
- 'default' => 'hsla(206, 23%, 25%, 0.7)',
- 'choices' => [
- 'form_component' => 'HslaStringColorPicker',
- ],
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * DateTime Control.
- */
-new \Kirki\Field\Date(
- [
- 'settings' => 'kirki_demo_date',
- 'label' => esc_html__( 'Date Control', 'kirki' ),
- 'description' => esc_html__( 'This is a date control.', 'kirki' ),
- 'section' => 'date_section',
- 'default' => '',
- ]
-);
-
-new \Kirki\Field\Date(
- [
- 'settings' => 'kirki_demo_date_2',
- 'label' => esc_html__( 'Date Control 2', 'kirki' ),
- 'description' => esc_html__( 'This is a date control.', 'kirki' ),
- 'section' => 'date_section',
- 'default' => '',
- ]
-);
-
-/**
- * Editor Controls
- */
-new \Kirki\Field\Editor(
- [
- 'settings' => 'kirki_demo_editor_1',
- 'label' => esc_html__( 'First Editor Control', 'kirki' ),
- 'description' => esc_html__( 'This is an editor control.', 'kirki' ),
- 'section' => 'editor_section',
- 'default' => '',
- ]
-);
-
-new \Kirki\Field\Editor(
- [
- 'settings' => 'kirki_demo_editor_2',
- 'label' => esc_html__( 'Second Editor Control', 'kirki' ),
- 'description' => esc_html__( 'This is a 2nd editor control just to check that we do not have issues with multiple instances.', 'kirki' ),
- 'section' => 'editor_section',
- 'default' => esc_html__( 'Default Text', 'kirki' ),
- ]
-);
-
-/**
- * Color-Palette Controls.
- *
- * @link https://kirki.org/docs/controls/color-palette.html
- */
-new \Kirki\Field\Color_Palette(
- [
- 'settings' => 'kirki_demo_color_palette_simple',
- 'label' => esc_html__( 'Simple Colors Set', 'kirki' ),
- 'description' => esc_html__( 'With default size (28). The `size` here is inner size (without border)', 'kirki' ),
- 'section' => 'color_palette_section',
- 'default' => '#888888',
- 'transport' => 'postMessage',
- 'choices' => [
- 'colors' => [ '#000000', '#222222', '#444444', '#666666', '#888888', '#aaaaaa', '#cccccc', '#eeeeee', '#ffffff' ],
- 'style' => 'round',
- ],
- ]
-);
-
-new \Kirki\Field\Color_Palette(
- [
- 'settings' => 'kirki_demo_color_palette_material_all',
- 'label' => esc_html__( 'Material Design Colors — All', 'kirki' ),
- 'description' => esc_html__( 'Showing all material design colors using `round` shape and size is 17', 'kirki' ),
- 'section' => 'color_palette_section',
- 'default' => '#D1C4E9',
- 'transport' => 'postMessage',
- 'choices' => [
- 'colors' => Helper::get_material_design_colors( 'all' ),
- 'shape' => 'round',
- 'size' => 17,
- ],
- ]
-);
-
-new \Kirki\Field\Color_Palette(
- [
- 'settings' => 'kirki_demo_color_palette_material_primary',
- 'label' => esc_html__( 'Material Design Colors — Primary', 'kirki' ),
- 'description' => esc_html__( 'Showing primary material design colors', 'kirki' ),
- 'section' => 'color_palette_section',
- 'choices' => [
- 'colors' => Helper::get_material_design_colors( 'primary' ),
- 'size' => 25,
- ],
- ]
-);
-
-new \Kirki\Field\Color_Palette(
- [
- 'settings' => 'kirki_demo_color_palette_material_red',
- 'label' => esc_html__( 'Material Design Colors — Red', 'kirki' ),
- 'description' => esc_html__( 'Showing red material design colors', 'kirki' ),
- 'section' => 'color_palette_section',
- 'choices' => [
- 'colors' => Helper::get_material_design_colors( 'red' ),
- 'size' => 16,
- ],
- ]
-);
-
-new \Kirki\Field\Color_Palette(
- [
- 'settings' => 'kirki_demo_color_palette_a100',
- 'label' => esc_html__( 'Material Design Colors — A100', 'kirki' ),
- 'description' => esc_html__( 'Showing "A100" variant of material design colors', 'kirki' ),
- 'section' => 'color_palette_section',
- 'default' => '#FF80AB',
- 'choices' => [
- 'colors' => Helper::get_material_design_colors( 'A100' ),
- 'size' => 60,
- 'style' => 'round',
- ],
- ]
-);
-
-Kirki::add_field(
- 'kirki_demo_config',
- [
- 'type' => 'color-palette',
- 'settings' => 'kirki_demo_color_palette_old',
- 'label' => 'The Old Way',
- 'description' => 'Using `Kirki::add_field` in round shape',
- 'section' => 'color_palette_section',
- 'transport' => 'postMessage',
- 'choices' => [
- 'colors' => [ '#000000', '#222222', '#444444', '#666666', '#888888', '#aaaaaa', '#cccccc', '#eeeeee', '#ffffff' ],
- 'style' => 'round',
- ],
- ]
-);
-
-add_action(
- 'customize_register',
- function( $wp_customize ) {
- /**
- * The custom control class
- */
- class Kirki_Demo_Custom_Control extends Kirki\Control\Base {
- public $type = 'kirki-demo-custom-control';
-
- public function render_content() {
-
- $saved_value = $this->value();
- ?>
-
- label ); ?>
- description ); ?>
-
-
-
- 'kirki-demo-custom-control',
- 'settings' => 'kirki_demo_custom_control_old_way',
- 'label' => esc_html__( 'Custom Control', 'kirki' ),
- 'description' => 'A custom control demo, registered by extending `Kirki\\Control\\Base` class.',
- 'section' => 'custom_section',
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Dashicons control.
- *
- * @link https://kirki.org/docs/controls/dashicons.html
- */
-new \Kirki\Field\Dashicons(
- [
- 'settings' => 'kirki_demo_dashicons_setting_0',
- 'label' => esc_html__( 'Dashicons Control', 'kirki' ),
- 'description' => esc_html__( 'Using a custom array of dashicons', 'kirki' ),
- 'section' => 'dashicons_section',
- 'default' => 'menu',
- 'choices' => [
- 'menu',
- 'admin-site',
- 'dashboard',
- 'admin-post',
- 'admin-media',
- 'admin-links',
- 'admin-page',
- ],
- ]
-);
-
-new \Kirki\Field\Dashicons(
- [
- 'settings' => 'kirki_demo_dashicons_setting_1',
- 'label' => esc_html__( 'All Dashicons', 'kirki' ),
- 'description' => esc_html__( 'Showing all dashicons', 'kirki' ),
- 'section' => 'dashicons_section',
- 'default' => 'menu',
- ]
-);
-
-/**
- * Dimension Control.
- */
-new \Kirki\Field\Dimension(
- [
- 'settings' => 'kirki_demo_dimension_0',
- 'label' => esc_html__( 'Dimension Control', 'kirki' ),
- 'description' => esc_html__( 'A simple dimension control.', 'kirki' ),
- 'section' => 'dimension_section',
- 'default' => '10px',
- 'choices' => [
- 'accept_unitless' => true,
- ],
- ]
-);
-
-/**
- * Dimensions Control.
- */
-new \Kirki\Field\Dimensions(
- [
- 'settings' => 'kirki_demo_dimensions_0',
- 'label' => esc_html__( 'Dimensions Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of dimensions control with 2 fields.', 'kirki' ),
- 'section' => 'dimensions_section',
- 'default' => [
- 'width' => '100px',
- 'height' => '100px',
- ],
- ]
-);
-
-new \Kirki\Field\Dimensions(
- [
- 'settings' => 'kirki_demo_dimensions_1',
- 'label' => esc_html__( 'Dimension Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of dimensions control with 4 fields.', 'kirki' ),
- 'section' => 'dimensions_section',
- 'default' => [
- 'padding-top' => '1em',
- 'padding-bottom' => '10rem',
- 'padding-left' => '1vh',
- 'padding-right' => '10px',
- ],
- ]
-);
-
-new \Kirki\Field\Dimensions(
- [
- 'settings' => 'kirki_demo_padding',
- 'label' => esc_html__( 'Padding Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of padding controls with 3 fields.', 'kirki' ),
- 'section' => 'dimensions_section',
- 'default' => [
- 'top' => '1em',
- 'bottom' => '10rem',
- 'horizontal' => '1vh',
- ],
- ]
-);
-
-new \Kirki\Field\Dimensions(
- [
- 'settings' => 'kirki_demo_spacing',
- 'label' => esc_html__( 'Spacing Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of spacing controls with 4 fields.', 'kirki' ),
- 'section' => 'dimensions_section',
- 'default' => [
- 'top' => '1em',
- 'bottom' => '10rem',
- 'left' => '1vh',
- 'right' => '10px',
- ],
- ]
-);
-
-/**
- * Dropdown-pages Control.
- */
-new \Kirki\Field\Dropdown_Pages(
- [
- 'settings' => 'kirki_demo_dropdown_pages',
- 'label' => esc_html__( 'Dropdown Pages Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of dropdown pages control.', 'kirki' ),
- 'section' => 'dropdown_pages_section',
- 'default' => [
- 'width' => '100px',
- 'height' => '100px',
- ],
- ]
-);
-
-/**
- * Generic Controls.
- */
-new \Kirki\Field\Text(
- [
- 'settings' => 'kirki_demo_generic_text',
- 'label' => esc_html__( 'Generic Control — Text Field', 'kirki' ),
- 'description' => esc_html__( 'The demo of this control has partial refresh with transport is postMessage', 'kirki' ),
- 'section' => 'generic_section',
- 'transport' => 'postMessage',
- 'default' => '',
- 'partial_refresh' => [
- 'generic_text_refresh' => [
- 'selector' => '.kirki-partial-refresh-demo',
- 'render_callback' => function() {
- $value = get_theme_mod( 'kirki_demo_generic_text' );
- return $value ? 'value of Generic URL Field control is: ' . $value : '';
- },
- ],
- ],
- ]
-);
-
-new \Kirki\Field\URL(
- [
- 'settings' => 'kirki_demo_generic_url',
- 'label' => esc_html__( 'Generic Control — URL Field', 'kirki' ),
- 'description' => esc_html__( 'The demo of this control has partial refresh without transport is defined', 'kirki' ),
- 'section' => 'generic_section',
- 'default' => '',
- 'partial_refresh' => [
- 'generic_text_refresh2' => [
- 'selector' => '.kirki-partial-refresh-demo2',
- 'render_callback' => function() {
- $value = get_theme_mod( 'kirki_demo_generic_url' );
- return $value ? 'value of Generic URL Field control is: ' . $value : '';
- },
- ],
- ],
- ]
-);
-
-new \Kirki\Field\Textarea(
- [
- 'settings' => 'kirki_demo_generic_textarea',
- 'label' => esc_html__( 'Generic Control — Textarea Field', 'kirki' ),
- 'description' => esc_html__( 'Description', 'kirki' ),
- 'section' => 'generic_section',
- 'default' => '',
- ]
-);
-
-new \Kirki\Field\Generic(
- [
- 'settings' => 'kirki_demo_generic_custom',
- 'label' => esc_html__( 'Generic Control — Custom Input.', 'kirki' ),
- 'description' => esc_html__( 'The "generic" control allows you to add any input type you want. In this case we use type="password" and define custom styles.', 'kirki' ),
- 'section' => 'generic_section',
- 'default' => '',
- 'choices' => [
- 'element' => 'input',
- 'type' => 'password',
- 'style' => 'background-color:black;color:red;',
- 'data-foo' => 'bar',
- ],
- ]
-);
-
-/**
- * Image Control.
- */
-new \Kirki\Field\Image(
- [
- 'settings' => 'kirki_demo_image_url',
- 'label' => esc_html__( 'Image Control (URL)', 'kirki' ),
- 'description' => esc_html__( 'The saved value will be the URL.', 'kirki' ),
- 'section' => 'image_section',
- 'default' => '',
- ]
-);
-
-new \Kirki\Field\Image(
- [
- 'settings' => 'kirki_demo_image_id',
- 'label' => esc_html__( 'Image Control (ID)', 'kirki' ),
- 'description' => esc_html__( 'The saved value will an ID.', 'kirki' ),
- 'section' => 'image_section',
- 'default' => '',
- 'choices' => [
- 'save_as' => 'id',
- ],
- ]
-);
-
-new \Kirki\Field\Image(
- [
- 'settings' => 'kirki_demo_image_array',
- 'label' => esc_html__( 'Image Control (array)', 'kirki' ),
- 'description' => esc_html__( 'The saved value will an array.', 'kirki' ),
- 'section' => 'image_section',
- 'default' => '',
- 'choices' => [
- 'save_as' => 'array',
- ],
- ]
-);
-
-/**
- * Upload control.
- */
-new \Kirki\Field\Upload(
- [
- 'settings' => 'kirki_demo_upload_url',
- 'label' => esc_html__( 'Upload Control (URL)', 'kirki' ),
- 'description' => esc_html__( 'The saved value will the URL.', 'kirki' ),
- 'section' => 'upload_section',
- 'default' => '',
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Multicheck Control.
- */
-new \Kirki\Field\Multicheck(
- [
- 'settings' => 'kirki_demo_multicheck',
- 'label' => esc_html__( 'Multickeck Control', 'kirki' ),
- 'section' => 'multicheck_section',
- 'default' => [ 'option-1', 'option-3', 'option-4' ],
- 'priority' => 10,
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'kirki' ),
- 'option-2' => esc_html__( 'Option 2', 'kirki' ),
- 'option-3' => esc_html__( 'Option 3', 'kirki' ),
- 'option-4' => esc_html__( 'Option 4', 'kirki' ),
- 'option-5' => esc_html__( 'Option 5', 'kirki' ),
- ],
- ]
-);
-
-/**
- * Multicolor Control.
- */
-new \Kirki\Field\Multicolor(
- [
- 'settings' => 'kirki_demo_multicolor',
- 'label' => esc_html__( 'Multicolor Control', 'kirki' ),
- 'section' => 'multicolor_section',
- 'priority' => 10,
- 'transport' => 'postMessage',
- 'choices' => [
- 'link' => esc_html__( 'Link Color', 'kirki' ),
- 'hover' => esc_html__( 'And this is hover color with long label so you know how it is displayed.', 'kirki' ),
- 'active' => esc_html__( 'Active Color', 'kirki' ),
- 'another1' => esc_html__( 'Another color 1', 'kirki' ),
- 'another2' => esc_html__( 'Another color 2', 'kirki' ),
- 'another3' => esc_html__( 'Another color 3', 'kirki' ),
- 'another4' => esc_html__( 'Another color 4', 'kirki' ),
- 'another5' => esc_html__( 'Another color 5', 'kirki' ),
- 'another6' => esc_html__( 'Another color 6', 'kirki' ),
- 'another7' => esc_html__( 'Another color 7', 'kirki' ),
- 'another8' => esc_html__( 'Another color 8', 'kirki' ),
- 'another9' => esc_html__( 'Another color 9', 'kirki' ),
- 'another10' => esc_html__( 'Another color 10', 'kirki' ),
- 'another11' => esc_html__( 'Another color 11', 'kirki' ),
- 'another12' => esc_html__( 'Another color 12', 'kirki' ),
- 'another13' => esc_html__( 'Another color 13', 'kirki' ),
- 'another14' => esc_html__( 'Another color 14', 'kirki' ),
- 'another15' => esc_html__( 'Another color 15', 'kirki' ),
- ],
- 'alpha' => true,
- 'default' => [
- 'link' => '#0088cc',
- 'hover' => '#00aaff',
- 'active' => '#00ffff',
- ],
- ]
-);
-
-/**
- * Number Control.
- */
-new \Kirki\Field\Number(
- [
- 'settings' => 'kirki_demo_number',
- 'label' => esc_html__( 'Number Control', 'kirki' ),
- 'section' => 'number_section',
- 'priority' => 10,
- 'choices' => [
- 'min' => -5,
- 'max' => 5,
- 'step' => 1,
- ],
- ]
-);
-
-/**
- * Palette Control.
- */
-new \Kirki\Field\Palette(
- array(
- 'settings' => 'kirki_demo_palette',
- 'label' => esc_html__( 'Control Palette', 'kirki' ),
- 'section' => 'palette_section',
- 'default' => 'blue',
- 'choices' => array(
- 'a200' => Kirki_Helper::get_material_design_colors( 'A200' ),
- 'blue' => Kirki_Helper::get_material_design_colors( 'blue' ),
- 'green' => array( '#E8F5E9', '#C8E6C9', '#A5D6A7', '#81C784', '#66BB6A', '#4CAF50', '#43A047', '#388E3C', '#2E7D32', '#1B5E20', '#B9F6CA', '#69F0AE', '#00E676', '#00C853' ),
- 'bnw' => array( '#000000', '#ffffff' ),
- ),
- )
-);
-
-/**
- * Radio Control.
- */
-new \Kirki\Field\Radio(
- [
- 'settings' => 'kirki_demo_radio',
- 'label' => esc_html__( 'Radio Control', 'kirki' ),
- 'description' => esc_html__( 'The description here.', 'kirki' ),
- 'section' => 'radio_section',
- 'default' => 'option-3',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'kirki' ),
- 'option-2' => esc_html__( 'Option 2', 'kirki' ),
- 'option-3' => esc_html__( 'Option 3', 'kirki' ),
- 'option-4' => esc_html__( 'Option 4', 'kirki' ),
- 'option-5' => esc_html__( 'Option 5', 'kirki' ),
- ],
- ]
-);
-
-/**
- * Radio-Buttonset Control.
- */
-new \Kirki\Field\Radio_Buttonset(
- [
- 'settings' => 'kirki_demo_radio_buttonset',
- 'label' => esc_html__( 'Radio-Buttonset Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of radio-buttonset control.', 'kirki' ),
- 'section' => 'radio_buttonset_section',
- 'default' => 'option-2',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'kirki' ),
- 'option-2' => esc_html__( 'Option 2', 'kirki' ),
- 'option-3' => esc_html__( 'Option 3', 'kirki' ),
- ],
- ]
-);
-
-/**
- * Radio-Image Control.
- */
-new \Kirki\Field\Radio_Image(
- [
- 'settings' => 'kirki_demo_radio_image',
- 'label' => esc_html__( 'Radio-Image Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of radio image control.', 'kirki' ),
- 'section' => 'radio_image_section',
- 'default' => 'travel',
- 'choices' => [
- 'moto' => 'https://jawordpressorg.github.io/wapuu/wapuu-archive/wapuu-moto.png',
- 'cossack' => 'https://raw.githubusercontent.com/templatemonster/cossack-wapuula/master/cossack-wapuula.png',
- 'travel' => 'https://jawordpressorg.github.io/wapuu/wapuu-archive/wapuu-travel.png',
- ],
- ]
-);
-
-/**
- * Repeater Control.
- */
-new \Kirki\Field\Repeater(
- [
- 'settings' => 'kirki_demo_repeater',
- 'label' => esc_html__( 'Repeater Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of repeater control.', 'kirki' ),
- 'section' => 'repeater_section',
- 'default' => [
- [
- 'link_text' => esc_html__( 'Kirki Site', 'kirki' ),
- 'link_url' => 'https://kirki.org/',
- 'link_target' => '_self',
- 'checkbox' => false,
- ],
- [
- 'link_text' => esc_html__( 'Kirki Repository', 'kirki' ),
- 'link_url' => 'https://github.com/aristath/kirki',
- 'link_target' => '_self',
- 'checkbox' => false,
- ],
- ],
- 'fields' => [
- 'link_text' => [
- 'type' => 'text',
- 'label' => esc_html__( 'Link Text', 'kirki' ),
- 'description' => esc_html__( 'This will be the label for your link', 'kirki' ),
- 'default' => '',
- ],
- 'link_url' => [
- 'type' => 'text',
- 'label' => esc_html__( 'Link URL', 'kirki' ),
- 'description' => esc_html__( 'This will be the link URL', 'kirki' ),
- 'default' => '',
- ],
- 'link_target' => [
- 'type' => 'select',
- 'label' => esc_html__( 'Link Target', 'kirki' ),
- 'description' => esc_html__( 'This will be the link target', 'kirki' ),
- 'default' => '_self',
- 'choices' => [
- '_blank' => esc_html__( 'New Window', 'kirki' ),
- '_self' => esc_html__( 'Same Frame', 'kirki' ),
- ],
- ],
- 'checkbox' => [
- 'type' => 'checkbox',
- 'label' => esc_html__( 'Checkbox', 'kirki' ),
- 'default' => false,
- ],
- ],
- ]
-);
-
-/**
- * Select Control.
- */
-new \Kirki\Field\Select(
- [
- 'settings' => 'kirki_demo_select',
- 'label' => esc_html__( 'Select Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of single mode select control.', 'kirki' ),
- 'section' => 'select_section',
- 'default' => 'option-3',
- 'placeholder' => esc_html__( 'Select an option', 'kirki' ),
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'kirki' ),
- 'option-2' => esc_html__( 'Option 2', 'kirki' ),
- 'option-3' => esc_html__( 'Option 3', 'kirki' ),
- 'option-4' => esc_html__( 'Option 4', 'kirki' ),
- 'option-5' => esc_html__( 'Option 5', 'kirki' ),
- ],
- ]
-);
-
-new \Kirki\Field\Select(
- [
- 'settings' => 'kirki_demo_select_multiple',
- 'label' => esc_html__( 'Select Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of multiple mode select control.', 'kirki' ),
- 'section' => 'select_section',
- 'default' => 'option-3',
- 'multiple' => 3,
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'kirki' ),
- 'option-2' => esc_html__( 'Option 2', 'kirki' ),
- 'option-3' => esc_html__( 'Option 3', 'kirki' ),
- 'option-4' => esc_html__( 'Option 4', 'kirki' ),
- 'option-5' => esc_html__( 'Option 5', 'kirki' ),
- ],
- ]
-);
-
-/**
- * Slider Control.
- */
-new \Kirki\Field\Slider(
- [
- 'settings' => 'kirki_demo_slider',
- 'label' => esc_html__( 'Slider Control', 'kirki' ),
- 'description' => esc_html__( 'Sample of slider control.', 'kirki' ),
- 'section' => 'slider_section',
- 'default' => '10',
- 'transport' => 'postMessage',
- 'tooltip' => esc_html__( 'This is the tooltip', 'kirki' ),
- 'choices' => [
- 'min' => 0,
- 'max' => 100,
- 'step' => 1,
- ],
- ]
-);
-
-Kirki::add_field(
- 'kirki_demo_config',
- [
- 'type' => 'slider',
- 'settings' => 'kirki_demo_slider_old',
- 'label' => esc_html__( 'Slider Control — Using Old Way', 'kirki' ),
- 'description' => 'Added using `Kirki::add_field` (the old Kirki API)',
- 'section' => 'slider_section',
- 'transport' => 'postMessage',
- 'choices' => [
- 'min' => 0,
- 'max' => 100,
- 'step' => 0.5,
- ],
- ]
-);
-
-/**
- * Sortable control.
- */
-new \Kirki\Field\Sortable(
- [
- 'settings' => 'kirki_demo_sortable',
- 'label' => __( 'This is a sortable control.', 'kirki' ),
- 'section' => 'sortable_section',
- 'default' => [ 'option3', 'option1', 'option4' ],
- 'choices' => [
- 'option1' => esc_html__( 'Option 1', 'kirki' ),
- 'option2' => esc_html__( 'Option 2', 'kirki' ),
- 'option3' => esc_html__( 'Option 3', 'kirki' ),
- 'option4' => esc_html__( 'Option 4', 'kirki' ),
- 'option5' => esc_html__( 'Option 5', 'kirki' ),
- 'option6' => esc_html__( 'Option 6', 'kirki' ),
- ],
- ]
-);
-
-/**
- * Switch control.
- */
-new \Kirki\Field\Checkbox_Switch(
- [
- 'settings' => 'kirki_demo_switch',
- 'label' => esc_html__( 'Switch Field', 'kirki' ),
- 'description' => esc_html__( 'Simple switch control', 'kirki' ),
- 'section' => 'switch_section',
- 'transport' => 'postMessage',
- 'default' => true,
- ]
-);
-
-new \Kirki\Field\Checkbox_Switch(
- [
- 'settings' => 'kirki_demo_switch_custom_label',
- 'label' => esc_html__( 'Switch Field — With custom labels', 'kirki' ),
- 'description' => esc_html__( 'Switch control using custom labels', 'kirki' ),
- 'section' => 'switch_section',
- 'default' => true,
- 'choices' => [
- 'on' => esc_html__( 'Enabled', 'kirki' ),
- 'off' => esc_html__( 'Disabled', 'kirki' ),
- ],
- 'active_callback' => [
- [
- 'setting' => 'kirki_demo_switch',
- 'operator' => '==',
- 'value' => true,
- ],
- ],
- ]
-);
-
-/**
- * Toggle control.
- */
-Kirki::add_field(
- 'kirki_demo_config',
- [
- 'type' => 'toggle',
- 'settings' => 'kirki_demo_toggle_setting',
- 'label' => esc_html__( 'Toggle Field', 'kirki' ),
- 'description' => esc_html__( 'Toggle is just utilizing switch control but aligned horizontally & without the text', 'kirki' ),
- 'section' => 'toggle_section',
- 'default' => '1',
- 'priority' => 10,
- 'transport' => 'postMessage',
- ]
-);
-
-/**
- * Typography Control.
- */
-new \Kirki\Field\Typography(
- [
- 'settings' => 'kirki_demo_kirki_typography_setting',
- 'label' => esc_html__( 'Typography Control', 'kirki' ),
- 'description' => esc_html__( 'The full set of options.', 'kirki' ),
- 'section' => 'typography_section',
- 'priority' => 10,
- 'transport' => 'postMessage',
- 'default' => [
- 'font-family' => 'Roboto',
- 'variant' => 'regular',
- 'font-style' => 'normal',
- 'color' => '#333333',
- 'font-size' => '14px',
- 'line-height' => '1.5',
- 'letter-spacing' => '0',
- 'text-transform' => 'none',
- 'text-decoration' => 'none',
- 'text-align' => 'left',
- 'margin-top' => '0',
- 'margin-bottom' => '0',
- ],
- 'output' => [
- [
- 'element' => 'body, p',
- ],
- ],
- 'choices' => [
- 'fonts' => [
- 'google' => [ 'popularity', 60 ],
- 'families' => [
- 'custom' => [
- 'text' => 'My Custom Fonts (demo only)',
- 'children' => [
- [
- 'id' => 'helvetica-neue',
- 'text' => 'Helvetica Neue',
- ],
- [
- 'id' => 'linotype-authentic',
- 'text' => 'Linotype Authentic',
- ],
- ],
- ],
- ],
- 'variants' => [
- 'helvetica-neue' => [ 'regular', '900' ],
- 'linotype-authentic' => [ 'regular', '100', '300' ],
- ],
- ],
- ],
- ]
-);
-
-new \Kirki\Field\Typography(
- [
- 'settings' => 'kirki_demo_typography_setting_1',
- 'label' => esc_html__( 'Typography Control', 'kirki' ),
- 'description' => esc_html__( 'Just the font-family and font-weight.', 'kirki' ),
- 'section' => 'typography_section',
- 'priority' => 10,
- 'transport' => 'auto',
- 'default' => [
- 'font-family' => 'Roboto',
- ],
- 'output' => [
- [
- 'element' => [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ],
- ],
- ],
- ]
-);
-
-/**
- * Example function that creates a control containing the available sidebars as choices.
- *
- * @return void
- */
-function kirki_sidebars_select_example() {
- $sidebars = [];
- if ( isset( $GLOBALS['wp_registered_sidebars'] ) ) {
- $sidebars = $GLOBALS['wp_registered_sidebars'];
- }
- $sidebars_choices = [];
- foreach ( $sidebars as $sidebar ) {
- $sidebars_choices[ $sidebar['id'] ] = $sidebar['name'];
- }
- if ( ! class_exists( 'Kirki' ) ) {
- return;
- }
- new \Kirki\Field\Select(
- [
- 'settings' => 'kirki_demo_sidebars_select',
- 'label' => esc_html__( 'Sidebars Select', 'kirki' ),
- 'description' => esc_html__( 'An example of how to implement sidebars selection.', 'kirki' ),
- 'section' => 'select_section',
- 'default' => 'primary',
- 'choices' => $sidebars_choices,
- 'priority' => 30,
- ]
- );
-}
-add_action( 'init', 'kirki_sidebars_select_example', 999 );
diff --git a/functions/kirki/packages/autoload.php b/functions/kirki/kirki-composer/autoload.php
similarity index 85%
rename from functions/kirki/packages/autoload.php
rename to functions/kirki/kirki-composer/autoload.php
index 2fdd036..b02a72f 100644
--- a/functions/kirki/packages/autoload.php
+++ b/functions/kirki/kirki-composer/autoload.php
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
-return ComposerAutoloaderInitc56aa391ac498061f8d648878e0e6144::getLoader();
+return ComposerAutoloaderInit734b74506bf23405b8270b65bdba2dd6::getLoader();
diff --git a/functions/kirki/packages/composer/ClassLoader.php b/functions/kirki/kirki-composer/composer/ClassLoader.php
similarity index 100%
rename from functions/kirki/packages/composer/ClassLoader.php
rename to functions/kirki/kirki-composer/composer/ClassLoader.php
diff --git a/functions/kirki/packages/composer/InstalledVersions.php b/functions/kirki/kirki-composer/composer/InstalledVersions.php
similarity index 82%
rename from functions/kirki/packages/composer/InstalledVersions.php
rename to functions/kirki/kirki-composer/composer/InstalledVersions.php
index 41bc143..c6b54af 100644
--- a/functions/kirki/packages/composer/InstalledVersions.php
+++ b/functions/kirki/kirki-composer/composer/InstalledVersions.php
@@ -28,7 +28,7 @@ class InstalledVersions
{
/**
* @var mixed[]|null
- * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array}|array{}|null
+ * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null
*/
private static $installed;
@@ -39,7 +39,7 @@ class InstalledVersions
/**
* @var array[]
- * @psalm-var array}>
+ * @psalm-var array}>
*/
private static $installedByVendor = array();
@@ -243,7 +243,7 @@ class InstalledVersions
/**
* @return array
- * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
+ * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
*/
public static function getRootPackage()
{
@@ -257,7 +257,7 @@ class InstalledVersions
*
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
* @return array[]
- * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array}
+ * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}
*/
public static function getRawData()
{
@@ -280,7 +280,7 @@ class InstalledVersions
* Returns the raw data of all installed.php which are currently loaded for custom implementations
*
* @return array[]
- * @psalm-return list}>
+ * @psalm-return list}>
*/
public static function getAllRawData()
{
@@ -303,7 +303,7 @@ class InstalledVersions
* @param array[] $data A vendor/composer/installed.php data set
* @return void
*
- * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array} $data
+ * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data
*/
public static function reload($data)
{
@@ -313,7 +313,7 @@ class InstalledVersions
/**
* @return array[]
- * @psalm-return list}>
+ * @psalm-return list}>
*/
private static function getInstalled()
{
diff --git a/functions/kirki/packages/composer/LICENSE b/functions/kirki/kirki-composer/composer/LICENSE
similarity index 100%
rename from functions/kirki/packages/composer/LICENSE
rename to functions/kirki/kirki-composer/composer/LICENSE
diff --git a/functions/kirki/packages/composer/autoload_classmap.php b/functions/kirki/kirki-composer/composer/autoload_classmap.php
similarity index 100%
rename from functions/kirki/packages/composer/autoload_classmap.php
rename to functions/kirki/kirki-composer/composer/autoload_classmap.php
diff --git a/functions/kirki/packages/composer/autoload_namespaces.php b/functions/kirki/kirki-composer/composer/autoload_namespaces.php
similarity index 100%
rename from functions/kirki/packages/composer/autoload_namespaces.php
rename to functions/kirki/kirki-composer/composer/autoload_namespaces.php
diff --git a/functions/kirki/kirki-composer/composer/autoload_psr4.php b/functions/kirki/kirki-composer/composer/autoload_psr4.php
new file mode 100644
index 0000000..a794707
--- /dev/null
+++ b/functions/kirki/kirki-composer/composer/autoload_psr4.php
@@ -0,0 +1,16 @@
+ array($baseDir . '/kirki-packages/util/src'),
+ 'Kirki\\Settings\\' => array($baseDir . '/kirki-packages/settings/src'),
+ 'Kirki\\Module\\' => array($baseDir . '/kirki-packages/module-css/src', $baseDir . '/kirki-packages/module-editor-styles/src', $baseDir . '/kirki-packages/module-field-dependencies/src', $baseDir . '/kirki-packages/module-postmessage/src', $baseDir . '/kirki-packages/module-preset/src', $baseDir . '/kirki-packages/module-section-icons/src', $baseDir . '/kirki-packages/module-selective-refresh/src', $baseDir . '/kirki-packages/module-tooltips/src', $baseDir . '/kirki-packages/module-webfonts/src'),
+ 'Kirki\\Field\\' => array($baseDir . '/kirki-packages/field/src/Field', $baseDir . '/kirki-packages/field-background/src', $baseDir . '/kirki-packages/field-dimensions/src', $baseDir . '/kirki-packages/field-fontawesome/src', $baseDir . '/kirki-packages/field-multicolor/src/Field', $baseDir . '/kirki-packages/field-multicolor/src', $baseDir . '/kirki-packages/field-typography/src/Field', $baseDir . '/kirki-packages/field-typography/src'),
+ 'Kirki\\Data\\' => array($baseDir . '/kirki-packages/data-option/src'),
+ 'Kirki\\Compatibility\\' => array($baseDir . '/kirki-packages/compatibility/src'),
+ 'Kirki\\' => array($baseDir . '/kirki-packages/control-base/src', $baseDir . '/kirki-packages/control-checkbox/src', $baseDir . '/kirki-packages/control-code/src', $baseDir . '/kirki-packages/control-color/src', $baseDir . '/kirki-packages/control-color-palette/src', $baseDir . '/kirki-packages/control-cropped-image/src', $baseDir . '/kirki-packages/control-custom/src', $baseDir . '/kirki-packages/control-dashicons/src', $baseDir . '/kirki-packages/control-date/src', $baseDir . '/kirki-packages/control-dimension/src', $baseDir . '/kirki-packages/control-editor/src', $baseDir . '/kirki-packages/control-generic/src', $baseDir . '/kirki-packages/control-image/src', $baseDir . '/kirki-packages/control-multicheck/src', $baseDir . '/kirki-packages/control-palette/src', $baseDir . '/kirki-packages/control-radio/src', $baseDir . '/kirki-packages/control-react-colorful/src', $baseDir . '/kirki-packages/control-react-select/src', $baseDir . '/kirki-packages/control-repeater/src', $baseDir . '/kirki-packages/control-select/src', $baseDir . '/kirki-packages/control-slider/src', $baseDir . '/kirki-packages/control-sortable/src', $baseDir . '/kirki-packages/control-upload/src', $baseDir . '/kirki-packages/field/src', $baseDir . '/kirki-packages/googlefonts/src', $baseDir . '/kirki-packages/l10n/src', $baseDir . '/kirki-packages/module-panels/src', $baseDir . '/kirki-packages/module-sections/src', $baseDir . '/kirki-packages/url-getter/src'),
+);
diff --git a/functions/kirki/packages/composer/autoload_real.php b/functions/kirki/kirki-composer/composer/autoload_real.php
similarity index 67%
rename from functions/kirki/packages/composer/autoload_real.php
rename to functions/kirki/kirki-composer/composer/autoload_real.php
index 400add2..242734e 100644
--- a/functions/kirki/packages/composer/autoload_real.php
+++ b/functions/kirki/kirki-composer/composer/autoload_real.php
@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
-class ComposerAutoloaderInitc56aa391ac498061f8d648878e0e6144
+class ComposerAutoloaderInit734b74506bf23405b8270b65bdba2dd6
{
private static $loader;
@@ -24,16 +24,16 @@ class ComposerAutoloaderInitc56aa391ac498061f8d648878e0e6144
require __DIR__ . '/platform_check.php';
- spl_autoload_register(array('ComposerAutoloaderInitc56aa391ac498061f8d648878e0e6144', 'loadClassLoader'), true, true);
+ spl_autoload_register(array('ComposerAutoloaderInit734b74506bf23405b8270b65bdba2dd6', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
- spl_autoload_unregister(array('ComposerAutoloaderInitc56aa391ac498061f8d648878e0e6144', 'loadClassLoader'));
+ spl_autoload_unregister(array('ComposerAutoloaderInit734b74506bf23405b8270b65bdba2dd6', 'loadClassLoader'));
$includePaths = require __DIR__ . '/include_paths.php';
$includePaths[] = get_include_path();
set_include_path(implode(PATH_SEPARATOR, $includePaths));
require __DIR__ . '/autoload_static.php';
- call_user_func(\Composer\Autoload\ComposerStaticInitc56aa391ac498061f8d648878e0e6144::getInitializer($loader));
+ call_user_func(\Composer\Autoload\ComposerStaticInit734b74506bf23405b8270b65bdba2dd6::getInitializer($loader));
$loader->register(true);
diff --git a/functions/kirki/kirki-composer/composer/autoload_static.php b/functions/kirki/kirki-composer/composer/autoload_static.php
new file mode 100644
index 0000000..8476e65
--- /dev/null
+++ b/functions/kirki/kirki-composer/composer/autoload_static.php
@@ -0,0 +1,109 @@
+
+ array (
+ 'Kirki\\Util\\' => 11,
+ 'Kirki\\Settings\\' => 15,
+ 'Kirki\\Module\\' => 13,
+ 'Kirki\\Field\\' => 12,
+ 'Kirki\\Data\\' => 11,
+ 'Kirki\\Compatibility\\' => 20,
+ 'Kirki\\' => 6,
+ ),
+ );
+
+ public static $prefixDirsPsr4 = array (
+ 'Kirki\\Util\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/util/src',
+ ),
+ 'Kirki\\Settings\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/settings/src',
+ ),
+ 'Kirki\\Module\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/module-css/src',
+ 1 => __DIR__ . '/../..' . '/kirki-packages/module-editor-styles/src',
+ 2 => __DIR__ . '/../..' . '/kirki-packages/module-field-dependencies/src',
+ 3 => __DIR__ . '/../..' . '/kirki-packages/module-postmessage/src',
+ 4 => __DIR__ . '/../..' . '/kirki-packages/module-preset/src',
+ 5 => __DIR__ . '/../..' . '/kirki-packages/module-section-icons/src',
+ 6 => __DIR__ . '/../..' . '/kirki-packages/module-selective-refresh/src',
+ 7 => __DIR__ . '/../..' . '/kirki-packages/module-tooltips/src',
+ 8 => __DIR__ . '/../..' . '/kirki-packages/module-webfonts/src',
+ ),
+ 'Kirki\\Field\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/field/src/Field',
+ 1 => __DIR__ . '/../..' . '/kirki-packages/field-background/src',
+ 2 => __DIR__ . '/../..' . '/kirki-packages/field-dimensions/src',
+ 3 => __DIR__ . '/../..' . '/kirki-packages/field-fontawesome/src',
+ 4 => __DIR__ . '/../..' . '/kirki-packages/field-multicolor/src/Field',
+ 5 => __DIR__ . '/../..' . '/kirki-packages/field-multicolor/src',
+ 6 => __DIR__ . '/../..' . '/kirki-packages/field-typography/src/Field',
+ 7 => __DIR__ . '/../..' . '/kirki-packages/field-typography/src',
+ ),
+ 'Kirki\\Data\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/data-option/src',
+ ),
+ 'Kirki\\Compatibility\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/compatibility/src',
+ ),
+ 'Kirki\\' =>
+ array (
+ 0 => __DIR__ . '/../..' . '/kirki-packages/control-base/src',
+ 1 => __DIR__ . '/../..' . '/kirki-packages/control-checkbox/src',
+ 2 => __DIR__ . '/../..' . '/kirki-packages/control-code/src',
+ 3 => __DIR__ . '/../..' . '/kirki-packages/control-color/src',
+ 4 => __DIR__ . '/../..' . '/kirki-packages/control-color-palette/src',
+ 5 => __DIR__ . '/../..' . '/kirki-packages/control-cropped-image/src',
+ 6 => __DIR__ . '/../..' . '/kirki-packages/control-custom/src',
+ 7 => __DIR__ . '/../..' . '/kirki-packages/control-dashicons/src',
+ 8 => __DIR__ . '/../..' . '/kirki-packages/control-date/src',
+ 9 => __DIR__ . '/../..' . '/kirki-packages/control-dimension/src',
+ 10 => __DIR__ . '/../..' . '/kirki-packages/control-editor/src',
+ 11 => __DIR__ . '/../..' . '/kirki-packages/control-generic/src',
+ 12 => __DIR__ . '/../..' . '/kirki-packages/control-image/src',
+ 13 => __DIR__ . '/../..' . '/kirki-packages/control-multicheck/src',
+ 14 => __DIR__ . '/../..' . '/kirki-packages/control-palette/src',
+ 15 => __DIR__ . '/../..' . '/kirki-packages/control-radio/src',
+ 16 => __DIR__ . '/../..' . '/kirki-packages/control-react-colorful/src',
+ 17 => __DIR__ . '/../..' . '/kirki-packages/control-react-select/src',
+ 18 => __DIR__ . '/../..' . '/kirki-packages/control-repeater/src',
+ 19 => __DIR__ . '/../..' . '/kirki-packages/control-select/src',
+ 20 => __DIR__ . '/../..' . '/kirki-packages/control-slider/src',
+ 21 => __DIR__ . '/../..' . '/kirki-packages/control-sortable/src',
+ 22 => __DIR__ . '/../..' . '/kirki-packages/control-upload/src',
+ 23 => __DIR__ . '/../..' . '/kirki-packages/field/src',
+ 24 => __DIR__ . '/../..' . '/kirki-packages/googlefonts/src',
+ 25 => __DIR__ . '/../..' . '/kirki-packages/l10n/src',
+ 26 => __DIR__ . '/../..' . '/kirki-packages/module-panels/src',
+ 27 => __DIR__ . '/../..' . '/kirki-packages/module-sections/src',
+ 28 => __DIR__ . '/../..' . '/kirki-packages/url-getter/src',
+ ),
+ );
+
+ public static $classMap = array (
+ 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
+ );
+
+ public static function getInitializer(ClassLoader $loader)
+ {
+ return \Closure::bind(function () use ($loader) {
+ $loader->prefixLengthsPsr4 = ComposerStaticInit734b74506bf23405b8270b65bdba2dd6::$prefixLengthsPsr4;
+ $loader->prefixDirsPsr4 = ComposerStaticInit734b74506bf23405b8270b65bdba2dd6::$prefixDirsPsr4;
+ $loader->classMap = ComposerStaticInit734b74506bf23405b8270b65bdba2dd6::$classMap;
+
+ }, null, ClassLoader::class);
+ }
+}
diff --git a/functions/kirki/packages/composer/include_paths.php b/functions/kirki/kirki-composer/composer/include_paths.php
similarity index 100%
rename from functions/kirki/packages/composer/include_paths.php
rename to functions/kirki/kirki-composer/composer/include_paths.php
diff --git a/functions/kirki/kirki-composer/composer/installed.json b/functions/kirki/kirki-composer/composer/installed.json
new file mode 100644
index 0000000..f20a6c4
--- /dev/null
+++ b/functions/kirki/kirki-composer/composer/installed.json
@@ -0,0 +1,5 @@
+{
+ "packages": [],
+ "dev": false,
+ "dev-package-names": []
+}
diff --git a/functions/kirki/kirki-composer/composer/installed.php b/functions/kirki/kirki-composer/composer/installed.php
new file mode 100644
index 0000000..d231748
--- /dev/null
+++ b/functions/kirki/kirki-composer/composer/installed.php
@@ -0,0 +1,23 @@
+ array(
+ 'name' => 'kirki-framework/kirki',
+ 'pretty_version' => '4.2.0',
+ 'version' => '4.2.0.0',
+ 'reference' => NULL,
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../../',
+ 'aliases' => array(),
+ 'dev' => false,
+ ),
+ 'versions' => array(
+ 'kirki-framework/kirki' => array(
+ 'pretty_version' => '4.2.0',
+ 'version' => '4.2.0.0',
+ 'reference' => NULL,
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../../',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
+ ),
+);
diff --git a/functions/kirki/packages/composer/platform_check.php b/functions/kirki/kirki-composer/composer/platform_check.php
similarity index 100%
rename from functions/kirki/packages/composer/platform_check.php
rename to functions/kirki/kirki-composer/composer/platform_check.php
diff --git a/functions/kirki/packages/kirki-framework/compatibility/LICENSE b/functions/kirki/kirki-packages/compatibility/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/LICENSE
rename to functions/kirki/kirki-packages/compatibility/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Aliases.php b/functions/kirki/kirki-packages/compatibility/src/Aliases.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Aliases.php
rename to functions/kirki/kirki-packages/compatibility/src/Aliases.php
index e92fcab..6cd1886 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Aliases.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Aliases.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 0.1
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Config.php b/functions/kirki/kirki-packages/compatibility/src/Config.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Config.php
rename to functions/kirki/kirki-packages/compatibility/src/Config.php
index 20db79e..8352386 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Config.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Config.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Compatibility
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Control.php b/functions/kirki/kirki-packages/compatibility/src/Control.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Control.php
rename to functions/kirki/kirki-packages/compatibility/src/Control.php
index 1d0e5ca..44c89b5 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Control.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Control.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Deprecated.php b/functions/kirki/kirki-packages/compatibility/src/Deprecated.php
similarity index 88%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Deprecated.php
rename to functions/kirki/kirki-packages/compatibility/src/Deprecated.php
index 2b3a374..50f93f3 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Deprecated.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Deprecated.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Field.php b/functions/kirki/kirki-packages/compatibility/src/Field.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Field.php
rename to functions/kirki/kirki-packages/compatibility/src/Field.php
index 16119eb..d18ee44 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Field.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Field.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
@@ -26,7 +26,13 @@ class Field {
* @access protected
* @var array
*/
- protected $args = [];
+ public $label;
+ public $row_label;
+ public $button_label;
+ public $description;
+ public $help;
+
+ protected $args = array();
/**
* The ID of the kirki_config we're using.
@@ -61,7 +67,7 @@ class Field {
* @access protected
* @var array
*/
- protected $input_attrs = [];
+ protected $input_attrs = array();
/**
* Preset choices.
@@ -69,7 +75,7 @@ class Field {
* @access protected
* @var array
*/
- protected $preset = [];
+ protected $preset = array();
/**
* CSS Variables.
@@ -77,7 +83,7 @@ class Field {
* @access protected
* @var array
*/
- protected $css_vars = [];
+ protected $css_vars = array();
/**
* Use "theme_mod" or "option".
@@ -119,7 +125,7 @@ class Field {
* @access protected
* @var array
*/
- protected $choices = [];
+ protected $choices = array();
/**
* Assign this field to a section.
@@ -163,7 +169,7 @@ class Field {
* @access protected
* @var array
*/
- protected $output = [];
+ protected $output = array();
/**
* Use to automatically generate postMessage scripts.
@@ -174,7 +180,7 @@ class Field {
* @access protected
* @var array
*/
- protected $js_vars = [];
+ protected $js_vars = array();
/**
* If you want to use a CSS compiler, then use this to set the variable names.
@@ -183,7 +189,7 @@ class Field {
* @access protected
* @var array
*/
- protected $variables = [];
+ protected $variables = array();
/**
* Text that will be used in a tooltip to provide extra info for this field.
@@ -224,7 +230,7 @@ class Field {
* @access protected
* @var array
*/
- protected $required = [];
+ protected $required = array();
/**
* Partial Refreshes array.
@@ -232,7 +238,7 @@ class Field {
* @access protected
* @var array
*/
- protected $partial_refresh = [];
+ protected $partial_refresh = array();
/**
* The class constructor.
@@ -245,7 +251,7 @@ class Field {
* Configs are handled by the Kirki\Compatibility\Config class.
* @param array $args The arguments of the field.
*/
- public function __construct( $config_id = 'global', $args = [] ) {
+ public function __construct( $config_id = 'global', $args = array() ) {
/**
* In case the user only provides 1 argument,
@@ -277,13 +283,13 @@ class Field {
$defaults = get_class_vars( __CLASS__ );
// Get the config arguments, and merge them with the defaults.
- $config_defaults = ( isset( Kirki::$config['global'] ) ) ? Kirki::$config['global'] : [];
+ $config_defaults = ( isset( Kirki::$config['global'] ) ) ? Kirki::$config['global'] : array();
if ( 'global' !== $this->kirki_config && isset( Kirki::$config[ $this->kirki_config ] ) ) {
$config_defaults = Kirki::$config[ $this->kirki_config ];
}
- $config_defaults = ( is_array( $config_defaults ) ) ? $config_defaults : [];
+ $config_defaults = ( is_array( $config_defaults ) ) ? $config_defaults : array();
foreach ( $config_defaults as $key => $value ) {
if ( isset( $defaults[ $key ] ) && ! empty( $value ) && $value !== $defaults[ $key ] ) {
@@ -323,7 +329,7 @@ class Field {
// Sanitize the properties, skipping the ones that have already run above.
foreach ( array_keys( $properties ) as $property ) {
- if ( in_array( $property, [ 'option_name', 'option_type', 'settings' ], true ) ) {
+ if ( in_array( $property, array( 'option_name', 'option_type', 'settings' ), true ) ) {
continue;
}
if ( method_exists( $this, 'set_' . $property ) ) {
@@ -380,7 +386,7 @@ class Field {
*/
protected function set_partial_refresh() {
if ( ! is_array( $this->partial_refresh ) ) {
- $this->partial_refresh = [];
+ $this->partial_refresh = array();
}
foreach ( $this->partial_refresh as $id => $args ) {
if ( ! is_array( $args ) || ! isset( $args['selector'] ) || ! isset( $args['render_callback'] ) || ! is_callable( $args['render_callback'] ) ) {
@@ -408,11 +414,11 @@ class Field {
// This is just to allow us to process everything the same way and avoid code duplication.
// if settings is not an array then it will not be set as an array in the end.
if ( ! is_array( $this->settings ) ) {
- $this->settings = [
+ $this->settings = array(
'kirki_placeholder_setting' => $this->settings,
- ];
+ );
}
- $settings = [];
+ $settings = array();
foreach ( $this->settings as $setting_key => $setting_value ) {
$settings[ $setting_key ] = $setting_value;
@@ -487,7 +493,7 @@ class Field {
*/
protected function set_choices() {
if ( ! is_array( $this->choices ) ) {
- $this->choices = [];
+ $this->choices = array();
}
}
@@ -512,18 +518,18 @@ class Field {
if ( ! is_array( $this->output ) ) {
/* translators: The field ID where the error occurs. */
_doing_it_wrong( __METHOD__, sprintf( esc_html__( '"output" invalid format in field %s. The "output" argument should be defined as an array of arrays.', 'kirki' ), esc_html( $this->settings ) ), '3.0.10' );
- $this->output = [
- [
+ $this->output = array(
+ array(
'element' => $this->output,
- ],
- ];
+ ),
+ );
}
// Convert to array of arrays if needed.
if ( isset( $this->output['element'] ) ) {
/* translators: The field ID where the error occurs. */
_doing_it_wrong( __METHOD__, sprintf( esc_html__( '"output" invalid format in field %s. The "output" argument should be defined as an array of arrays.', 'kirki' ), esc_html( $this->settings ) ), '3.0.10' );
- $this->output = [ $this->output ];
+ $this->output = array( $this->output );
}
foreach ( $this->output as $key => $output ) {
@@ -548,7 +554,7 @@ class Field {
}
// Fix for https://github.com/aristath/kirki/issues/1659#issuecomment-346229751.
- $this->output[ $key ]['element'] = str_replace( [ "\t", "\n", "\r", "\0", "\x0B" ], ' ', $this->output[ $key ]['element'] );
+ $this->output[ $key ]['element'] = str_replace( array( "\t", "\n", "\r", "\0", "\x0B" ), ' ', $this->output[ $key ]['element'] );
$this->output[ $key ]['element'] = trim( preg_replace( '/\s+/', ' ', $this->output[ $key ]['element'] ) );
}
}
@@ -560,7 +566,7 @@ class Field {
*/
protected function set_js_vars() {
if ( ! is_array( $this->js_vars ) ) {
- $this->js_vars = [];
+ $this->js_vars = array();
}
// Check if transport is set to auto.
@@ -573,7 +579,7 @@ class Field {
// Serves as a fallback in case we failt to auto-calculate js_vars.
$this->transport = 'refresh';
- $js_vars = [];
+ $js_vars = array();
// Try to auto-generate js_vars.
// First we need to check if js_vars are empty, and that output is not empty.
@@ -618,7 +624,7 @@ class Field {
protected function set_variables() {
if ( ! is_array( $this->variables ) ) {
$variable = ( is_string( $this->variables ) && ! empty( $this->variables ) ) ? $this->variables : false;
- $this->variables = [];
+ $this->variables = array();
if ( $variable && empty( $this->variables ) ) {
$this->variables[0]['name'] = $variable;
}
@@ -643,7 +649,7 @@ class Field {
*/
protected function set_required() {
if ( ! is_array( $this->required ) ) {
- $this->required = [];
+ $this->required = array();
}
}
@@ -663,10 +669,10 @@ class Field {
*/
protected function set_css_vars() {
if ( is_string( $this->css_vars ) ) {
- $this->css_vars = [ $this->css_vars ];
+ $this->css_vars = array( $this->css_vars );
}
if ( isset( $this->css_vars[0] ) && is_string( $this->css_vars[0] ) ) {
- $this->css_vars = [ $this->css_vars ];
+ $this->css_vars = array( $this->css_vars );
}
foreach ( $this->css_vars as $key => $val ) {
if ( ! isset( $val[1] ) ) {
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Framework.php b/functions/kirki/kirki-packages/compatibility/src/Framework.php
similarity index 88%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Framework.php
rename to functions/kirki/kirki-packages/compatibility/src/Framework.php
index a85c048..23a3243 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Framework.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Framework.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* Singleton class
*/
final class Framework {
-
+ public $modules;
/**
* Holds the one, true instance of this object.
*
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Init.php b/functions/kirki/kirki-packages/compatibility/src/Init.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Init.php
rename to functions/kirki/kirki-packages/compatibility/src/Init.php
index 8fbddb5..dd064f9 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Init.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Init.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Kirki.php b/functions/kirki/kirki-packages/compatibility/src/Kirki.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Kirki.php
rename to functions/kirki/kirki-packages/compatibility/src/Kirki.php
index d62fc82..7692c28 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Kirki.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Kirki.php
@@ -6,8 +6,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
@@ -172,7 +172,7 @@ class Kirki extends Init {
*/
public static function remove_section( $id = '' ) {
- $section = new \Kirki\Section( $id, $args );
+ $section = new \Kirki\Section( $id );
$section->remove();
}
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Modules.php b/functions/kirki/kirki-packages/compatibility/src/Modules.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Modules.php
rename to functions/kirki/kirki-packages/compatibility/src/Modules.php
index c80866a..45d4f9f 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Modules.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Modules.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Modules
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.0
*/
@@ -17,6 +17,7 @@ namespace Kirki\Compatibility;
*/
class Modules {
+
/**
* An array of available modules.
*
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Sanitize_Values.php b/functions/kirki/kirki-packages/compatibility/src/Sanitize_Values.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Sanitize_Values.php
rename to functions/kirki/kirki-packages/compatibility/src/Sanitize_Values.php
index 4809a2c..1fc4a63 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Sanitize_Values.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Sanitize_Values.php
@@ -5,8 +5,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Scripts.php b/functions/kirki/kirki-packages/compatibility/src/Scripts.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Scripts.php
rename to functions/kirki/kirki-packages/compatibility/src/Scripts.php
index b3c5675..d15eda8 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Scripts.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Scripts.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 0.1
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Settings.php b/functions/kirki/kirki-packages/compatibility/src/Settings.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Settings.php
rename to functions/kirki/kirki-packages/compatibility/src/Settings.php
index 8499e2d..fd9fb87 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Settings.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Settings.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/Values.php b/functions/kirki/kirki-packages/compatibility/src/Values.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/compatibility/src/Values.php
rename to functions/kirki/kirki-packages/compatibility/src/Values.php
index 3741659..a884e44 100644
--- a/functions/kirki/packages/kirki-framework/compatibility/src/Values.php
+++ b/functions/kirki/kirki-packages/compatibility/src/Values.php
@@ -8,8 +8,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2020, David Vongries
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/deprecated/classes.php b/functions/kirki/kirki-packages/compatibility/src/deprecated/classes.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/src/deprecated/classes.php
rename to functions/kirki/kirki-packages/compatibility/src/deprecated/classes.php
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/deprecated/filters.php b/functions/kirki/kirki-packages/compatibility/src/deprecated/filters.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/src/deprecated/filters.php
rename to functions/kirki/kirki-packages/compatibility/src/deprecated/filters.php
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/deprecated/functions.php b/functions/kirki/kirki-packages/compatibility/src/deprecated/functions.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/src/deprecated/functions.php
rename to functions/kirki/kirki-packages/compatibility/src/deprecated/functions.php
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/scripts/hooks.js b/functions/kirki/kirki-packages/compatibility/src/scripts/hooks.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/src/scripts/hooks.js
rename to functions/kirki/kirki-packages/compatibility/src/scripts/hooks.js
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/scripts/i18n.js b/functions/kirki/kirki-packages/compatibility/src/scripts/i18n.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/src/scripts/i18n.js
rename to functions/kirki/kirki-packages/compatibility/src/scripts/i18n.js
diff --git a/functions/kirki/packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js b/functions/kirki/kirki-packages/compatibility/src/scripts/wp-polyfill.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/compatibility/src/scripts/wp-polyfill.js
rename to functions/kirki/kirki-packages/compatibility/src/scripts/wp-polyfill.js
diff --git a/functions/kirki/packages/kirki-framework/control-base/LICENSE b/functions/kirki/kirki-packages/control-base/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-base/LICENSE
rename to functions/kirki/kirki-packages/control-base/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-base/dist/control.css b/functions/kirki/kirki-packages/control-base/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-base/dist/control.css
rename to functions/kirki/kirki-packages/control-base/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-base/dist/control.css.map b/functions/kirki/kirki-packages/control-base/dist/control.css.map
new file mode 100644
index 0000000..7d1c6f6
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-base/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AACE,qCACE,+BAEE,aAAA,CADA,kBCCJ,CCDA,0BACE,iBDMF,CALF,CCGA,qDACE,gBDKF,CCFA,yBACE,WDKF,CCFA,kCACE,eDKF,CCFA,YACE,UDKF,CCFA,WACE,SDKF,CCFA,WACE,SDKF,CCFA,WACE,SDKF,CCFA,WACE,cDKF,CCFA,WACE,SDKF,CCFA,WACE,SDKF,CCFA,WACE,SDKF,CCFA,WACE,SDKF,CCFA,WACE,SDKF,CCFA,UACE,QDKF,CCFA,4DAEE,eDKF,CCFA,iCACE,iBDKF,CCFA,8BACE,eDKF,CCFA,sCAEE,QAAA,CADA,eDMF,CCFA,oDAEE,qBDKF,CCFA,0CACE,UDKF,CCFA,kBAEE,UAAA,CADA,UAAA,CAEA,gBAAA,CACA,iBDKF,CCHE,oCACE,cAAA,CACA,iBDKJ,CCFE,sEAEE,gBAAA,CACA,eDGJ,CCCI,wCAKE,UAAA,CAJA,UAAA,CACA,aAAA,CAEA,QAAA,CADA,UDGN,CCIA,yBACE,iBDDF,CCGE,qGAEE,aDDJ,CCIE,6CACE,iBDFJ,CCII,sDACE,aAAA,CACA,UDFN","sources":["src/rtl.scss","%3Cinput%20css%20N7IR_2%3E","src/control.scss"],"sourcesContent":[".rtl {\n @media screen and (min-width: 1667px) {\n .wp-full-overlay.expanded {\n margin-right: 300px;\n margin-left: 0;\n }\n }\n}\n","@media screen and (min-width: 1667px) {\n .rtl .wp-full-overlay.expanded {\n margin-right: 300px;\n margin-left: 0;\n }\n}\n\n@media screen and (min-width: 1667px) {\n .wp-full-overlay.expanded {\n margin-left: 300px;\n }\n}\n#customize-theme-controls .customize-pane-child.open {\n overflow: visible;\n}\n\n.wp-full-overlay-sidebar {\n width: 300px;\n}\n\n.expanded .wp-full-overlay-footer {\n max-width: 299px;\n}\n\n.kirki-w100 {\n width: 100%;\n}\n\n.kirki-w50 {\n width: 50%;\n}\n\n.kirki-w45 {\n width: 45%;\n}\n\n.kirki-w40 {\n width: 40%;\n}\n\n.kirki-w33 {\n width: 33.3333%;\n}\n\n.kirki-w30 {\n width: 30%;\n}\n\n.kirki-w25 {\n width: 25%;\n}\n\n.kirki-w20 {\n width: 20%;\n}\n\n.kirki-w15 {\n width: 15%;\n}\n\n.kirki-w10 {\n width: 10%;\n}\n\n.kirki-w5 {\n width: 5%;\n}\n\n.control-section-kirki-default,\n.control-section-kirki-outer {\n min-height: 100%;\n}\n\n.customize-control-has-small-gap {\n margin-bottom: 9px;\n}\n\n.customize-control-is-gapless {\n margin-bottom: 0;\n}\n\n.customize-control-kirki-hidden-field {\n margin-bottom: 0;\n height: 0;\n}\n\n.customize-control-kirki,\n.customize-control-kirki * {\n box-sizing: border-box;\n}\n\n.customize-control-kirki.kirki-group-item {\n clear: none;\n}\n\n.kirki-group-item {\n float: left;\n clear: none;\n padding-left: 3px;\n padding-right: 3px;\n}\n.kirki-group-item.kirki-group-start {\n padding-left: 0;\n padding-right: 3px;\n}\n.kirki-group-item.kirki-group-break, .kirki-group-item.kirki-group-end {\n padding-left: 3px;\n padding-right: 0;\n}\n.kirki-group-item.kirki-group-end::after {\n content: \"\";\n display: block;\n width: 100%;\n height: 0;\n clear: both;\n}\n\n.customize-control-kirki {\n position: relative;\n}\n.customize-control-kirki .kirki-control-label,\n.customize-control-kirki label.customize-control-title {\n display: block;\n}\n.customize-control-kirki .kirki-control-form {\n position: relative;\n}\n.customize-control-kirki .kirki-control-form textarea {\n display: block;\n width: 100%;\n}\n/*# sourceMappingURL=control.css.map */\n","@import \"rtl.scss\";\n\n@media screen and (min-width: 1667px) {\n .wp-full-overlay.expanded {\n margin-left: 300px;\n }\n}\n\n#customize-theme-controls .customize-pane-child.open {\n overflow: visible;\n}\n\n.wp-full-overlay-sidebar {\n width: 300px;\n}\n\n.expanded .wp-full-overlay-footer {\n max-width: 299px;\n}\n\n.kirki-w100 {\n width: 100%;\n}\n\n.kirki-w50 {\n width: 50%;\n}\n\n.kirki-w45 {\n width: 45%;\n}\n\n.kirki-w40 {\n width: 40%;\n}\n\n.kirki-w33 {\n width: 33.3333%;\n}\n\n.kirki-w30 {\n width: 30%;\n}\n\n.kirki-w25 {\n width: 25%;\n}\n\n.kirki-w20 {\n width: 20%;\n}\n\n.kirki-w15 {\n width: 15%;\n}\n\n.kirki-w10 {\n width: 10%;\n}\n\n.kirki-w5 {\n width: 5%;\n}\n\n.control-section-kirki-default,\n.control-section-kirki-outer {\n min-height: 100%;\n}\n\n.customize-control-has-small-gap {\n margin-bottom: 9px;\n}\n\n.customize-control-is-gapless {\n margin-bottom: 0;\n}\n\n.customize-control-kirki-hidden-field {\n margin-bottom: 0;\n height: 0;\n}\n\n.customize-control-kirki,\n.customize-control-kirki * {\n box-sizing: border-box;\n}\n\n.customize-control-kirki.kirki-group-item {\n clear: none; // Override WordPress.\n}\n\n.kirki-group-item {\n float: left;\n clear: none;\n padding-left: 3px;\n padding-right: 3px;\n\n &.kirki-group-start {\n padding-left: 0;\n padding-right: 3px;\n }\n\n &.kirki-group-break,\n &.kirki-group-end {\n padding-left: 3px;\n padding-right: 0;\n }\n\n &.kirki-group-end {\n &::after {\n content: \"\";\n display: block;\n width: 100%;\n height: 0;\n clear: both;\n }\n }\n}\n\n.customize-control-kirki {\n position: relative;\n\n .kirki-control-label,\n label.customize-control-title {\n display: block;\n }\n\n .kirki-control-form {\n position: relative;\n\n textarea {\n display: block;\n width: 100%;\n }\n }\n}\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-base/dist/control.js b/functions/kirki/kirki-packages/control-base/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-base/dist/control.js
rename to functions/kirki/kirki-packages/control-base/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-base/dist/control.js.map b/functions/kirki/kirki-packages/control-base/dist/control.js.map
new file mode 100644
index 0000000..2b63b1a
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-base/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"gBA4OWA,EA1NTC,GAAGC,UAAUC,oBAAsBF,GAAGC,UAAUE,QAAQC,OAAO,CAC7DC,WAAY,SAAUC,EAAIC,GACxB,IASIC,EATAC,EAAUC,KACVC,EAAOJ,GAAW,GAUtB,GARAI,EAAKC,OAASD,EAAKC,QAAU,GAExBD,EAAKC,OAAOC,OACfF,EAAKC,OAAOC,KAAO,iBAKjBF,EAAKG,QAAS,CAChB,IAAIC,EAASJ,EAAKG,QAAQ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js"],"sourcesContent":["/**\n * The majority of the code in this file\n * is derived from the wp-customize-posts plugin\n * and the work of @westonruter to whom I am very grateful.\n *\n * @see https://github.com/xwp/wp-customize-posts\n */\n\n(function () {\n \"use strict\";\n\n /**\n * A dynamic color-alpha control.\n *\n * @class\n * @augments wp.customize.Control\n * @augments wp.customize.Class\n */\n wp.customize.kirkiDynamicControl = wp.customize.Control.extend({\n initialize: function (id, options) {\n let control = this;\n let args = options || {};\n\n args.params = args.params || {};\n\n if (!args.params.type) {\n args.params.type = \"kirki-generic\";\n }\n\n let className;\n\n if (args.content) {\n let splits = args.content.split('class=\"');\n splits = splits[1].split('\"');\n className = splits[0];\n } else {\n className = \"customize-control customize-control-\" + args.params.type;\n }\n\n if (!args.params.wrapper_attrs && args.params.wrapper_atts) {\n args.params.wrapper_attrs = args.params.wrapper_atts;\n }\n\n // Hijack the container to add wrapper_attrs.\n args.params.content = jQuery(\" \");\n args.params.content.attr(\n \"id\",\n \"customize-control-\" + id.replace(/]/g, \"\").replace(/\\[/g, \"-\")\n );\n args.params.content.attr(\"class\", className);\n\n _.each(args.params.wrapper_attrs, function (val, key) {\n if (\"class\" === key) {\n val = val.replace(\"{default_class}\", className);\n }\n\n args.params.content.attr(key, val);\n });\n\n control.propertyElements = [];\n wp.customize.Control.prototype.initialize.call(control, id, args);\n wp.hooks.doAction(\"kirki.dynamicControl.init.after\", id, control, args);\n },\n\n /**\n * Add bidirectional data binding links between inputs and the setting(s).\n *\n * This is copied from wp.customize.Control.prototype.initialize(). It\n * should be changed in Core to be applied once the control is embedded.\n *\n * @private\n * @returns {void}\n */\n _setUpSettingRootLinks: function () {\n var control = this,\n nodes = control.container.find(\"[data-customize-setting-link]\");\n\n nodes.each(function () {\n var node = jQuery(this);\n\n wp.customize(node.data(\"customizeSettingLink\"), function (setting) {\n var element = new wp.customize.Element(node);\n control.elements.push(element);\n element.sync(setting);\n element.set(setting());\n });\n });\n },\n\n /**\n * Add bidirectional data binding links between inputs and the setting properties.\n *\n * @private\n * @returns {void}\n */\n _setUpSettingPropertyLinks: function () {\n var control = this,\n nodes;\n\n if (!control.setting) {\n return;\n }\n\n nodes = control.container.find(\"[data-customize-setting-property-link]\");\n\n nodes.each(function () {\n var node = jQuery(this),\n element,\n propertyName = node.data(\"customizeSettingPropertyLink\");\n\n element = new wp.customize.Element(node);\n control.propertyElements.push(element);\n element.set(control.setting()[propertyName]);\n\n element.bind(function (newPropertyValue) {\n var newSetting = control.setting();\n if (newPropertyValue === newSetting[propertyName]) {\n return;\n }\n newSetting = _.clone(newSetting);\n newSetting[propertyName] = newPropertyValue;\n control.setting.set(newSetting);\n });\n control.setting.bind(function (newValue) {\n if (newValue[propertyName] !== element.get()) {\n element.set(newValue[propertyName]);\n }\n });\n });\n },\n\n /**\n * @inheritdoc\n */\n ready: function () {\n var control = this;\n\n control._setUpSettingRootLinks();\n control._setUpSettingPropertyLinks();\n\n wp.customize.Control.prototype.ready.call(control);\n\n control.deferred.embedded.done(function () {\n control.initKirkiControl();\n wp.hooks.doAction(\n \"kirki.dynamicControl.ready.deferred.embedded.done\",\n control\n );\n });\n wp.hooks.doAction(\"kirki.dynamicControl.ready.after\", control);\n },\n\n /**\n * Embed the control in the document.\n *\n * Override the embed() method to do nothing,\n * so that the control isn't embedded on load,\n * unless the containing section is already expanded.\n *\n * @returns {void}\n */\n embed: function () {\n var control = this,\n sectionId = control.section();\n\n if (!sectionId) {\n return;\n }\n\n wp.customize.section(sectionId, function (section) {\n if (\n \"kirki-expanded\" === section.params.type ||\n section.expanded() ||\n wp.customize.settings.autofocus.control === control.id\n ) {\n control.actuallyEmbed();\n } else {\n section.expanded.bind(function (expanded) {\n if (expanded) {\n control.actuallyEmbed();\n }\n });\n }\n });\n wp.hooks.doAction(\"kirki.dynamicControl.embed.after\", control);\n },\n\n /**\n * Deferred embedding of control when actually\n *\n * This function is called in Section.onChangeExpanded() so the control\n * will only get embedded when the Section is first expanded.\n *\n * @returns {void}\n */\n actuallyEmbed: function () {\n var control = this;\n if (\"resolved\" === control.deferred.embedded.state()) {\n return;\n }\n control.renderContent();\n control.deferred.embedded.resolve(); // This triggers control.ready().\n wp.hooks.doAction(\"kirki.dynamicControl.actuallyEmbed.after\", control);\n },\n\n /**\n * This is not working with autofocus.\n *\n * @param {object} [args] Args.\n * @returns {void}\n */\n focus: function (args) {\n var control = this;\n control.actuallyEmbed();\n wp.customize.Control.prototype.focus.call(control, args);\n wp.hooks.doAction(\"kirki.dynamicControl.focus.after\", control);\n },\n\n /**\n * Additional actions that run on ready.\n *\n * @param {object} control - The control object. If undefined fallsback to the this.\n * @returns {void}\n */\n initKirkiControl: function (control) {\n control = control || this;\n wp.hooks.doAction(\"kirki.dynamicControl.initKirkiControl\", this);\n\n // Save the value\n control.container.on(\"change keyup paste click\", \"input\", function () {\n control.setting.set(jQuery(this).val());\n });\n },\n });\n})();\n\n(function (api) {\n /**\n * Set the value and trigger all bound callbacks.\n *\n * @since 1.0\n * @param {object} to - New value.\n * @returns {Object} - this\n */\n api.Value.prototype.set = function (to) {\n var from = this._value,\n parentSetting,\n newVal;\n\n to = this._setter.apply(this, arguments);\n to = this.validate(to);\n\n // Bail if the sanitized value is null or unchanged.\n if (null === to || _.isEqual(from, to)) {\n return this;\n }\n\n /**\n * Start Kirki mod.\n */\n if (\n this.id &&\n api.control(this.id) &&\n api.control(this.id).params &&\n api.control(this.id).params.parent_setting\n ) {\n parentSetting = api.control(this.id).params.parent_setting;\n newVal = {};\n newVal[this.id.replace(parentSetting + \"[\", \"\").replace(\"]\", \"\")] = to;\n api\n .control(parentSetting)\n .setting.set(\n jQuery.extend({}, api.control(parentSetting).setting._value, newVal)\n );\n }\n\n /**\n * End Kirki mod.\n */\n\n this._value = to;\n this._dirty = true;\n\n this.callbacks.fireWith(this, [to, from]);\n\n return this;\n };\n\n /**\n * Get the value.\n *\n * @returns {mixed} - Returns the value.\n */\n api.Value.prototype.get = function () {\n // Start Kirki mod.\n var parentSetting;\n if (\n this.id &&\n api.control(this.id) &&\n api.control(this.id).params &&\n api.control(this.id).params.parent_setting\n ) {\n parentSetting = api.control(this.id).params.parent_setting;\n return api.control(parentSetting).setting.get()[\n this.id.replace(parentSetting + \"[\", \"\").replace(\"]\", \"\")\n ];\n }\n // End Kirki mod.\n\n return this._value;\n };\n})(wp.customize);\n"],"names":["api","wp","customize","kirkiDynamicControl","Control","extend","initialize","id","options","className","control","this","args","params","type","content","splits","split","wrapper_attrs","wrapper_atts","jQuery","attr","replace","_","each","val","key","propertyElements","prototype","call","hooks","doAction","_setUpSettingRootLinks","container","find","node","data","setting","element","Element","elements","push","sync","set","_setUpSettingPropertyLinks","propertyName","bind","newPropertyValue","newSetting","clone","newValue","get","ready","deferred","embedded","done","initKirkiControl","embed","sectionId","section","expanded","settings","autofocus","actuallyEmbed","state","renderContent","resolve","focus","on","Value","to","parentSetting","newVal","from","_value","_setter","apply","arguments","validate","isEqual","parent_setting","_dirty","callbacks","fireWith"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-base/src/Control/Base.php b/functions/kirki/kirki-packages/control-base/src/Control/Base.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/control-base/src/Control/Base.php
rename to functions/kirki/kirki-packages/control-base/src/Control/Base.php
index d77c674..2bb2c0e 100644
--- a/functions/kirki/packages/kirki-framework/control-base/src/Control/Base.php
+++ b/functions/kirki/kirki-packages/control-base/src/Control/Base.php
@@ -5,7 +5,7 @@
* Extend this in other controls.
*
* @package kirki-framework/control-base
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-base/src/control.js b/functions/kirki/kirki-packages/control-base/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-base/src/control.js
rename to functions/kirki/kirki-packages/control-base/src/control.js
diff --git a/functions/kirki/kirki-packages/control-base/src/control.scss b/functions/kirki/kirki-packages/control-base/src/control.scss
new file mode 100644
index 0000000..8466b8d
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-base/src/control.scss
@@ -0,0 +1,136 @@
+@import "rtl.scss";
+
+@media screen and (min-width: 1667px) {
+ .wp-full-overlay.expanded {
+ margin-left: 300px;
+ }
+}
+
+#customize-theme-controls .customize-pane-child.open {
+ overflow: visible;
+}
+
+.wp-full-overlay-sidebar {
+ width: 300px;
+}
+
+.expanded .wp-full-overlay-footer {
+ max-width: 299px;
+}
+
+.kirki-w100 {
+ width: 100%;
+}
+
+.kirki-w50 {
+ width: 50%;
+}
+
+.kirki-w45 {
+ width: 45%;
+}
+
+.kirki-w40 {
+ width: 40%;
+}
+
+.kirki-w33 {
+ width: 33.3333%;
+}
+
+.kirki-w30 {
+ width: 30%;
+}
+
+.kirki-w25 {
+ width: 25%;
+}
+
+.kirki-w20 {
+ width: 20%;
+}
+
+.kirki-w15 {
+ width: 15%;
+}
+
+.kirki-w10 {
+ width: 10%;
+}
+
+.kirki-w5 {
+ width: 5%;
+}
+
+.control-section-kirki-default,
+.control-section-kirki-outer {
+ min-height: 100%;
+}
+
+.customize-control-has-small-gap {
+ margin-bottom: 9px;
+}
+
+.customize-control-is-gapless {
+ margin-bottom: 0;
+}
+
+.customize-control-kirki-hidden-field {
+ margin-bottom: 0;
+ height: 0;
+}
+
+.customize-control-kirki,
+.customize-control-kirki * {
+ box-sizing: border-box;
+}
+
+.customize-control-kirki.kirki-group-item {
+ clear: none; // Override WordPress.
+}
+
+.kirki-group-item {
+ float: left;
+ clear: none;
+ padding-left: 3px;
+ padding-right: 3px;
+
+ &.kirki-group-start {
+ padding-left: 0;
+ padding-right: 3px;
+ }
+
+ &.kirki-group-break,
+ &.kirki-group-end {
+ padding-left: 3px;
+ padding-right: 0;
+ }
+
+ &.kirki-group-end {
+ &::after {
+ content: "";
+ display: block;
+ width: 100%;
+ height: 0;
+ clear: both;
+ }
+ }
+}
+
+.customize-control-kirki {
+ position: relative;
+
+ .kirki-control-label,
+ label.customize-control-title {
+ display: block;
+ }
+
+ .kirki-control-form {
+ position: relative;
+
+ textarea {
+ display: block;
+ width: 100%;
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-base/src/dynamic-control.js b/functions/kirki/kirki-packages/control-base/src/dynamic-control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-base/src/dynamic-control.js
rename to functions/kirki/kirki-packages/control-base/src/dynamic-control.js
diff --git a/functions/kirki/kirki-packages/control-base/src/rtl.scss b/functions/kirki/kirki-packages/control-base/src/rtl.scss
new file mode 100644
index 0000000..cf37c85
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-base/src/rtl.scss
@@ -0,0 +1,8 @@
+.rtl {
+ @media screen and (min-width: 1667px) {
+ .wp-full-overlay.expanded {
+ margin-right: 300px;
+ margin-left: 0;
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-code/LICENSE b/functions/kirki/kirki-packages/control-checkbox/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-code/LICENSE
rename to functions/kirki/kirki-packages/control-checkbox/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/dist/control.css b/functions/kirki/kirki-packages/control-checkbox/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-checkbox/dist/control.css
rename to functions/kirki/kirki-packages/control-checkbox/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-checkbox/dist/control.css.map b/functions/kirki/kirki-packages/control-checkbox/dist/control.css.map
new file mode 100644
index 0000000..0c30b8c
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-checkbox/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAGE,8CAEE,sBAAA,CADA,YAAA,CAEA,6BCFJ,CDII,mEACE,SCFN,CDKI,kEACE,gBAAA,CACA,SCHN,CDMI,yEACE,UCJN,CDMM,gFACE,OCJR,CDOM,+EACE,UCLR,CDaI,yEACE,wBAAA,CACA,eCVN,CDgBM,+JACE,MCXR,CDeI,mHAGE,WAAA,CACA,gBAAA,CAFA,iBCXN,CDgBI,yDAEE,aEpDU,CFmDV,YCbN,CDiBI,0DAEE,aEjDmB,CFgDnB,oBCdN,CDoBA,2BAGE,cAAA,CADA,oBAAA,CADA,iBCfF,CDmBE,mEAEE,qBAAA,CACA,UAAA,CAEA,QAAA,CACA,SAAA,CAFA,iBAAA,CAGA,OAAA,CACA,+BAAA,CACA,0EClBJ,CDsBE,kCAIE,wBE1EsB,CF2EtB,wBAAA,CACA,iBAAA,CAJA,WAAA,CADA,UChBJ,CDwBE,iCAGE,qBEhFgB,CFmFhB,+BAAA,CAFA,iBAAA,CAFA,WAAA,CADA,UClBJ,CD2BA,2BACE,SCxBF,CDgCM,oEACE,wBE7GQ,CF8GR,kCC9BR,CDiCM,yEACE,oBC/BR,CDkCM,0EACE,YChCR","sources":["src/control.scss","%3Cinput%20css%20kvIa1f%3E","src/scss/_vars.scss"],"sourcesContent":["@import \"scss/vars\";\n\n.customize-control-kirki-toggle {\n .kirki-toggle {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n\n .kirki-control-label {\n width: 80%;\n }\n\n .kirki-control-form {\n text-align: right;\n width: 20%;\n }\n\n .kirki-toggle-switch-label {\n width: 100%;\n\n &:before {\n right: 0;\n }\n\n &:after {\n right: 18px;\n }\n }\n }\n}\n\n.customize-control-kirki-switch {\n .kirki-switch {\n .kirki-toggle-switch-label {\n padding: 10px 0 12px 44px;\n text-align: left;\n\n &:before {\n left: 0;\n }\n\n &:after {\n left: 0;\n }\n }\n\n .toggle-on,\n .toggle-off {\n position: relative;\n bottom: -2px;\n padding-left: 5px;\n }\n\n .toggle-on {\n display: none;\n color: $color-wp-blue;\n }\n\n .toggle-off {\n display: inline-block;\n color: $color-dark-silver-gray;\n }\n }\n}\n\n.kirki-toggle-switch-label {\n position: relative;\n display: inline-block;\n cursor: pointer;\n\n &:before,\n &:after {\n box-sizing: border-box;\n content: \"\";\n position: absolute;\n margin: 0;\n outline: 0;\n top: 50%;\n transform: translate3d(0, -50%, 0);\n transition: all 350ms cubic-bezier(0, 0.95, 0.38, 0.98),\n background-color 150ms ease;\n }\n\n &:before {\n width: 37px;\n height: 14px;\n // background-color: $color-silver-gray;\n background-color: $color-light-silver-gray;\n border: 1px solid $color-light-silver-gray;\n border-radius: 8px;\n }\n\n &:after {\n width: 22px;\n height: 22px;\n background-color: $color-medium-gray;\n border-radius: 50%;\n // box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);\n border: 1px solid rgba(0, 0, 0, 0.1);\n }\n}\n\n.kirki-toggle-switch-input {\n opacity: 0;\n\n &:checked {\n + .kirki-toggle-switch-label {\n &::before {\n // background-color: desaturate(lighten($color-wp-blue, 40%), 40%);\n }\n\n &::after {\n background-color: $color-wp-blue;\n transform: translate3d(100%, -50%, 0);\n }\n\n .toggle-on {\n display: inline-block;\n }\n\n .toggle-off {\n display: none;\n }\n }\n }\n}\n",".customize-control-kirki-toggle .kirki-toggle {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n}\n.customize-control-kirki-toggle .kirki-toggle .kirki-control-label {\n width: 80%;\n}\n.customize-control-kirki-toggle .kirki-toggle .kirki-control-form {\n text-align: right;\n width: 20%;\n}\n.customize-control-kirki-toggle .kirki-toggle .kirki-toggle-switch-label {\n width: 100%;\n}\n.customize-control-kirki-toggle .kirki-toggle .kirki-toggle-switch-label:before {\n right: 0;\n}\n.customize-control-kirki-toggle .kirki-toggle .kirki-toggle-switch-label:after {\n right: 18px;\n}\n\n.customize-control-kirki-switch .kirki-switch .kirki-toggle-switch-label {\n padding: 10px 0 12px 44px;\n text-align: left;\n}\n.customize-control-kirki-switch .kirki-switch .kirki-toggle-switch-label:before {\n left: 0;\n}\n.customize-control-kirki-switch .kirki-switch .kirki-toggle-switch-label:after {\n left: 0;\n}\n.customize-control-kirki-switch .kirki-switch .toggle-on,\n.customize-control-kirki-switch .kirki-switch .toggle-off {\n position: relative;\n bottom: -2px;\n padding-left: 5px;\n}\n.customize-control-kirki-switch .kirki-switch .toggle-on {\n display: none;\n color: #0073aa;\n}\n.customize-control-kirki-switch .kirki-switch .toggle-off {\n display: inline-block;\n color: #82878c;\n}\n\n.kirki-toggle-switch-label {\n position: relative;\n display: inline-block;\n cursor: pointer;\n}\n.kirki-toggle-switch-label:before, .kirki-toggle-switch-label:after {\n box-sizing: border-box;\n content: \"\";\n position: absolute;\n margin: 0;\n outline: 0;\n top: 50%;\n transform: translate3d(0, -50%, 0);\n transition: all 350ms cubic-bezier(0, 0.95, 0.38, 0.98), background-color 150ms ease;\n}\n.kirki-toggle-switch-label:before {\n width: 37px;\n height: 14px;\n background-color: #b4b9be;\n border: 1px solid #b4b9be;\n border-radius: 8px;\n}\n.kirki-toggle-switch-label:after {\n width: 22px;\n height: 22px;\n background-color: #999;\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.1);\n}\n\n.kirki-toggle-switch-input {\n opacity: 0;\n}\n.kirki-toggle-switch-input:checked + .kirki-toggle-switch-label::after {\n background-color: #0073aa;\n transform: translate3d(100%, -50%, 0);\n}\n.kirki-toggle-switch-input:checked + .kirki-toggle-switch-label .toggle-on {\n display: inline-block;\n}\n.kirki-toggle-switch-input:checked + .kirki-toggle-switch-label .toggle-off {\n display: none;\n}\n/*# sourceMappingURL=control.css.map */\n","// See https://make.wordpress.org/design/handbook/design-guide/foundations/colors/\n// Colors copied from https://codepen.io/hugobaeta/pen/RNOzoV\n\n$color-wp-blue: #0073aa;\n$color-medium-blue: #00a0d2;\n$color-light-blue: #00b9eb;\n\n$color-ultra-dark-gray: #191e23;\n$color-dark-gray: #23282d;\n$color-base-gray: #32373c;\n$color-dark-medium-gray: lighten($color-base-gray,15%);\n$color-dark-silver-gray: #82878c;\n$color-silver-gray: #a0a5aa;\n$color-light-silver-gray: #b4b9be;\n// $color-medium-gray: mix($color-base-gray,$color-dark-silver-gray,20%);\n$color-medium-gray: #999;\n\n$color-gray-900: $color-ultra-dark-gray;\n$color-gray-800: $color-dark-gray;\n$color-gray-700: $color-base-gray;\n$color-gray-600: lighten($color-base-gray,6%);\n$color-gray-500: lighten($color-base-gray,15%);\n$color-gray-400: lighten($color-base-gray,20%);\n$color-gray-300: lighten($color-base-gray,25%);\n$color-gray-200: lighten($color-base-gray,32%);\n$color-gray-100: lighten($color-base-gray,38%);\n\n$color--gray-light-900: lighten($color-base-gray,45%);\n$color--gray-light-800: lighten($color-base-gray,52%);\n$color--gray-light-700: lighten($color-base-gray,60%);\n$color--gray-light-600: lighten($color-base-gray,64%);\n$color--gray-light-500: lighten($color-base-gray,68%);\n$color--gray-light-400: lighten($color-base-gray,70%);\n$color--gray-light-300: lighten($color-base-gray,72%);\n$color--gray-light-200: lighten($color-base-gray,74%);\n$color--gray-light-100: lighten($color-base-gray,77%);\n\n$color-accent-red: #dc3232;\n$color-accent-fire-orange: #d54e21;\n$color-accent-orange: #f56e28;\n$color-accent-yellow: #ffb900;\n$color-accent-green: #46b450; //old #64b450;\n$color-accent-blue: $color-medium-blue;\n$color-accent-purple: #826eb4;\n\n\n//Tints and Tones and Shades - Oh My!\n\n$color-accent-red-shade30: shade($color-accent-red,30%);\n$color-accent-red-shade20: shade($color-accent-red,20%);\n$color-accent-red-shade10: shade($color-accent-red,10%);\n$color-accent-red-tint20: tint($color-accent-red,20%);\n$color-accent-red-tint40: tint($color-accent-red,40%);\n$color-accent-red-tint60: tint($color-accent-red,60%);\n$color-accent-red-tint90: tint($color-accent-red,90%);\n\n$color-accent-fire-orange-shade10: shade($color-accent-fire-orange,10%);\n$color-accent-fire-orange-shade5: shade($color-accent-fire-orange,5%);\n$color-accent-orange-tint20: tint($color-accent-orange,20%);\n$color-accent-orange-tint40: tint($color-accent-orange,40%);\n$color-accent-orange-tint60: tint($color-accent-orange,60%);\n$color-accent-orange-tint90: tint($color-accent-orange,90%);\n\n$color-accent-yellow-tonefire40: mix($color-accent-fire-orange,$color-accent-yellow,40%);\n$color-accent-yellow-tonefire20: mix($color-accent-fire-orange,$color-accent-yellow,20%);\n$color-accent-yellow-tint20: tint($color-accent-yellow,20%);\n$color-accent-yellow-tint40: tint($color-accent-yellow,40%);\n$color-accent-yellow-tint60: tint($color-accent-yellow,60%);\n$color-accent-yellow-tint90: tint($color-accent-yellow,90%);\n\n$color-accent-green-toneblue5shade25: shade(mix($color-wp-blue, $color-accent-green,5%),25%);\n$color-accent-green-toneblue5shade15: shade(mix($color-wp-blue, $color-accent-green,5%),15%);\n$color-accent-green-tint20: tint($color-accent-green,20%);\n$color-accent-green-tint40: tint($color-accent-green,40%);\n$color-accent-green-tint60: tint($color-accent-green,60%);\n$color-accent-green-tint70: tint($color-accent-green,70%);\n$color-accent-green-tint90: tint($color-accent-green,90%);\n\n$color-accent-wp-blue-shade10: shade($color-wp-blue,10%);\n$color-accent-blue-toneblue80: mix($color-wp-blue,$color-accent-blue,80%);\n$color-accent-blue-toneblue60: mix($color-wp-blue,$color-accent-blue,60%);\n$color-accent-blue-toneblue40: mix($color-wp-blue,$color-accent-blue,40%);\n$color-accent-blue-tint20: tint($color-accent-blue,20%);\n$color-accent-blue-tint40: tint($color-accent-blue,40%);\n$color-accent-blue-tint60: tint($color-accent-blue,60%);\n$color-accent-blue-tint75: tint($color-accent-blue,75%);\n$color-accent-blue-tint90: tint($color-accent-blue,90%);\n\n$color-accent-purple-shade40: shade($color-accent-purple,40%);\n$color-accent-purple-shade20: shade($color-accent-purple,20%);\n$color-accent-purple-tint20: tint($color-accent-purple,20%);\n$color-accent-purple-tint40: tint($color-accent-purple,40%);\n$color-accent-purple-tint60: tint($color-accent-purple,60%);\n$color-accent-purple-tint90: tint($color-accent-purple,90%);\n\n//Text Colors\n$textcolor-dark: rgba($color-base-gray,.8);\n$textcolor-dark-mid: rgba($color-base-gray,.5);\n$textcolor-light: rgba(#fff,.8);\n$textcolor-light-mid: rgba(#fff,.5);\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/dist/control.js b/functions/kirki/kirki-packages/control-checkbox/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-checkbox/dist/control.js
rename to functions/kirki/kirki-packages/control-checkbox/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-checkbox/dist/control.js.map b/functions/kirki/kirki-packages/control-checkbox/dist/control.js.map
new file mode 100644
index 0000000..82b4f1a
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-checkbox/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"YAEA,IAAIA,EAAsB,CAEzBC,iBAAkB,SAAUC,IAC3BA,EAAUA,GAAWC,MACbC,UAAUC,GAAI,SAAU,SAAS,WACxCH,EAAQI,QAAQC,IAAKC,OAAQL,MAAOM,GAAI,kBAK3CC,GAAGC,UAAUC,mBAAmB,kBAAoBF,GAAGC,UAAUE,oBAAoBC,OAAQd,GAC7FU,GAAGC,UAAUC,mBAAmB,gBAAoBF,GAAGC,UAAUE,oBAAoBC,OAAQd,GAC7FU,GAAGC,UAAUC,mBAAmB,gBAAoBF,GAAGC,UAAUE,oBAAoBC,OAAQd","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nvar kirkiCheckboxScript = {\n\n\tinitKirkiControl: function( control ) {\n\t\tcontrol = control || this;\n\t\tcontrol.container.on( 'change', 'input', function() {\n\t\t\tcontrol.setting.set( jQuery( this ).is( ':checked' ) );\n\t\t} );\n\t}\n};\n\nwp.customize.controlConstructor['kirki-checkbox'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );\nwp.customize.controlConstructor['kirki-switch'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );\nwp.customize.controlConstructor['kirki-toggle'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );\n"],"names":["$1abc80d3e2df1201$var$kirkiCheckboxScript","initKirkiControl","control","this","container","on","setting","set","jQuery","is","wp","customize","controlConstructor","kirkiDynamicControl","extend"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox.php b/functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox.php
rename to functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox.php
index 8c8aebe..cfb7653 100644
--- a/functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox.php
+++ b/functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox.php
@@ -6,7 +6,7 @@
* Custom controls contains all background-related options.
*
* @package kirki-framework/control-checkbox
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox_Switch.php b/functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox_Switch.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox_Switch.php
rename to functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox_Switch.php
index 68c711c..c83883a 100644
--- a/functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox_Switch.php
+++ b/functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox_Switch.php
@@ -3,7 +3,7 @@
* Customizer Control: switch.
*
* @package kirki-framework/checkbox
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox_Toggle.php b/functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox_Toggle.php
similarity index 88%
rename from functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox_Toggle.php
rename to functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox_Toggle.php
index 224caa3..cd1b2b6 100644
--- a/functions/kirki/packages/kirki-framework/control-checkbox/src/Control/Checkbox_Toggle.php
+++ b/functions/kirki/kirki-packages/control-checkbox/src/Control/Checkbox_Toggle.php
@@ -3,7 +3,7 @@
* Customizer Control: toggle.
*
* @package kirki-framework/checkbox
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox.php b/functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox.php
rename to functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox.php
index 0efdad8..8c06810 100644
--- a/functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox.php
+++ b/functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/checkbox
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox_Switch.php b/functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox_Switch.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox_Switch.php
rename to functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox_Switch.php
index 092f7a2..615bb74 100644
--- a/functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox_Switch.php
+++ b/functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox_Switch.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/checkbox
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox_Toggle.php b/functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox_Toggle.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-checkbox/src/Field/Checkbox_Toggle.php
rename to functions/kirki/kirki-packages/control-checkbox/src/Field/Checkbox_Toggle.php
diff --git a/functions/kirki/kirki-packages/control-checkbox/src/control.js b/functions/kirki/kirki-packages/control-checkbox/src/control.js
new file mode 100644
index 0000000..53a20a1
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-checkbox/src/control.js
@@ -0,0 +1,15 @@
+import "./control.scss";
+
+var kirkiCheckboxScript = {
+
+ initKirkiControl: function( control ) {
+ control = control || this;
+ control.container.on( 'change', 'input', function() {
+ control.setting.set( jQuery( this ).is( ':checked' ) );
+ } );
+ }
+};
+
+wp.customize.controlConstructor['kirki-checkbox'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );
+wp.customize.controlConstructor['kirki-switch'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );
+wp.customize.controlConstructor['kirki-toggle'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );
diff --git a/functions/kirki/kirki-packages/control-checkbox/src/control.scss b/functions/kirki/kirki-packages/control-checkbox/src/control.scss
new file mode 100644
index 0000000..3f58c61
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-checkbox/src/control.scss
@@ -0,0 +1,126 @@
+@import "scss/vars";
+
+.customize-control-kirki-toggle {
+ .kirki-toggle {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+
+ .kirki-control-label {
+ width: 80%;
+ }
+
+ .kirki-control-form {
+ text-align: right;
+ width: 20%;
+ }
+
+ .kirki-toggle-switch-label {
+ width: 100%;
+
+ &::before {
+ right: 0;
+ }
+
+ &::after {
+ right: 18px;
+ }
+ }
+ }
+}
+
+.customize-control-kirki-switch {
+ .kirki-switch {
+ .kirki-toggle-switch-label {
+ padding: 10px 0 12px 44px;
+ text-align: left;
+
+ &::before {
+ left: 0;
+ }
+
+ &::after {
+ left: 0;
+ }
+ }
+
+ .toggle-on,
+ .toggle-off {
+ position: relative;
+ bottom: -2px;
+ padding-left: 5px;
+ }
+
+ .toggle-on {
+ display: none;
+ color: $color-wp-blue;
+ }
+
+ .toggle-off {
+ display: inline-block;
+ color: $color-dark-silver-gray;
+ }
+ }
+}
+
+.kirki-toggle-switch-label {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+
+ &::before,
+ &::after {
+ box-sizing: border-box;
+ content: "";
+ position: absolute;
+ margin: 0;
+ outline: 0;
+ top: 50%;
+ transform: translate3d(0, -50%, 0);
+ transition: all 350ms cubic-bezier(0, 0.95, 0.38, 0.98),
+ background-color 150ms ease;
+ }
+
+ &::before {
+ width: 37px;
+ height: 14px;
+ // background-color: $color-silver-gray;
+ background-color: $color-light-silver-gray;
+ border: 1px solid $color-light-silver-gray;
+ border-radius: 8px;
+ }
+
+ &::after {
+ width: 22px;
+ height: 22px;
+ background-color: $color-medium-gray;
+ border-radius: 50%;
+ // box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
+ border: 1px solid rgba(0, 0, 0, 0.1);
+ }
+}
+
+.kirki-toggle-switch-input {
+ opacity: 0;
+
+ &:checked {
+ + .kirki-toggle-switch-label {
+ &::before {
+ // background-color: desaturate(lighten($color-wp-blue, 40%), 40%);
+ }
+
+ &::after {
+ background-color: $color-wp-blue;
+ transform: translate3d(100%, -50%, 0);
+ }
+
+ .toggle-on {
+ display: inline-block;
+ }
+
+ .toggle-off {
+ display: none;
+ }
+ }
+ }
+}
diff --git a/functions/kirki/kirki-packages/control-checkbox/src/scss/_vars.scss b/functions/kirki/kirki-packages/control-checkbox/src/scss/_vars.scss
new file mode 100644
index 0000000..1593530
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-checkbox/src/scss/_vars.scss
@@ -0,0 +1,100 @@
+// See https://make.wordpress.org/design/handbook/design-guide/foundations/colors/
+// Colors copied from https://codepen.io/hugobaeta/pen/RNOzoV
+
+$color-wp-blue: #0073aa;
+$color-medium-blue: #00a0d2;
+$color-light-blue: #00b9eb;
+
+$color-ultra-dark-gray: #191e23;
+$color-dark-gray: #23282d;
+$color-base-gray: #32373c;
+$color-dark-medium-gray: lighten($color-base-gray,15%);
+$color-dark-silver-gray: #82878c;
+$color-silver-gray: #a0a5aa;
+$color-light-silver-gray: #b4b9be;
+// $color-medium-gray: mix($color-base-gray,$color-dark-silver-gray,20%);
+$color-medium-gray: #999;
+
+$color-gray-900: $color-ultra-dark-gray;
+$color-gray-800: $color-dark-gray;
+$color-gray-700: $color-base-gray;
+$color-gray-600: lighten($color-base-gray,6%);
+$color-gray-500: lighten($color-base-gray,15%);
+$color-gray-400: lighten($color-base-gray,20%);
+$color-gray-300: lighten($color-base-gray,25%);
+$color-gray-200: lighten($color-base-gray,32%);
+$color-gray-100: lighten($color-base-gray,38%);
+
+$color--gray-light-900: lighten($color-base-gray,45%);
+$color--gray-light-800: lighten($color-base-gray,52%);
+$color--gray-light-700: lighten($color-base-gray,60%);
+$color--gray-light-600: lighten($color-base-gray,64%);
+$color--gray-light-500: lighten($color-base-gray,68%);
+$color--gray-light-400: lighten($color-base-gray,70%);
+$color--gray-light-300: lighten($color-base-gray,72%);
+$color--gray-light-200: lighten($color-base-gray,74%);
+$color--gray-light-100: lighten($color-base-gray,77%);
+
+$color-accent-red: #dc3232;
+$color-accent-fire-orange: #d54e21;
+$color-accent-orange: #f56e28;
+$color-accent-yellow: #ffb900;
+$color-accent-green: #46b450; //old #64b450;
+$color-accent-blue: $color-medium-blue;
+$color-accent-purple: #826eb4;
+
+
+//Tints and Tones and Shades - Oh My!
+
+$color-accent-red-shade30: shade($color-accent-red,30%);
+$color-accent-red-shade20: shade($color-accent-red,20%);
+$color-accent-red-shade10: shade($color-accent-red,10%);
+$color-accent-red-tint20: tint($color-accent-red,20%);
+$color-accent-red-tint40: tint($color-accent-red,40%);
+$color-accent-red-tint60: tint($color-accent-red,60%);
+$color-accent-red-tint90: tint($color-accent-red,90%);
+
+$color-accent-fire-orange-shade10: shade($color-accent-fire-orange,10%);
+$color-accent-fire-orange-shade5: shade($color-accent-fire-orange,5%);
+$color-accent-orange-tint20: tint($color-accent-orange,20%);
+$color-accent-orange-tint40: tint($color-accent-orange,40%);
+$color-accent-orange-tint60: tint($color-accent-orange,60%);
+$color-accent-orange-tint90: tint($color-accent-orange,90%);
+
+$color-accent-yellow-tonefire40: mix($color-accent-fire-orange,$color-accent-yellow,40%);
+$color-accent-yellow-tonefire20: mix($color-accent-fire-orange,$color-accent-yellow,20%);
+$color-accent-yellow-tint20: tint($color-accent-yellow,20%);
+$color-accent-yellow-tint40: tint($color-accent-yellow,40%);
+$color-accent-yellow-tint60: tint($color-accent-yellow,60%);
+$color-accent-yellow-tint90: tint($color-accent-yellow,90%);
+
+$color-accent-green-toneblue5shade25: shade(mix($color-wp-blue, $color-accent-green,5%),25%);
+$color-accent-green-toneblue5shade15: shade(mix($color-wp-blue, $color-accent-green,5%),15%);
+$color-accent-green-tint20: tint($color-accent-green,20%);
+$color-accent-green-tint40: tint($color-accent-green,40%);
+$color-accent-green-tint60: tint($color-accent-green,60%);
+$color-accent-green-tint70: tint($color-accent-green,70%);
+$color-accent-green-tint90: tint($color-accent-green,90%);
+
+$color-accent-wp-blue-shade10: shade($color-wp-blue,10%);
+$color-accent-blue-toneblue80: mix($color-wp-blue,$color-accent-blue,80%);
+$color-accent-blue-toneblue60: mix($color-wp-blue,$color-accent-blue,60%);
+$color-accent-blue-toneblue40: mix($color-wp-blue,$color-accent-blue,40%);
+$color-accent-blue-tint20: tint($color-accent-blue,20%);
+$color-accent-blue-tint40: tint($color-accent-blue,40%);
+$color-accent-blue-tint60: tint($color-accent-blue,60%);
+$color-accent-blue-tint75: tint($color-accent-blue,75%);
+$color-accent-blue-tint90: tint($color-accent-blue,90%);
+
+$color-accent-purple-shade40: shade($color-accent-purple,40%);
+$color-accent-purple-shade20: shade($color-accent-purple,20%);
+$color-accent-purple-tint20: tint($color-accent-purple,20%);
+$color-accent-purple-tint40: tint($color-accent-purple,40%);
+$color-accent-purple-tint60: tint($color-accent-purple,60%);
+$color-accent-purple-tint90: tint($color-accent-purple,90%);
+
+//Text Colors
+$textcolor-dark: rgba($color-base-gray,.8);
+$textcolor-dark-mid: rgba($color-base-gray,.5);
+$textcolor-light: rgba(#fff,.8);
+$textcolor-light-mid: rgba(#fff,.5);
diff --git a/functions/kirki/packages/kirki-framework/control-color/LICENSE b/functions/kirki/kirki-packages/control-code/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color/LICENSE
rename to functions/kirki/kirki-packages/control-code/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-code/src/Control/Code.php b/functions/kirki/kirki-packages/control-code/src/Control/Code.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-code/src/Control/Code.php
rename to functions/kirki/kirki-packages/control-code/src/Control/Code.php
diff --git a/functions/kirki/packages/kirki-framework/control-code/src/Field/Code.php b/functions/kirki/kirki-packages/control-code/src/Field/Code.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-code/src/Field/Code.php
rename to functions/kirki/kirki-packages/control-code/src/Field/Code.php
index e064370..61e8ea0 100644
--- a/functions/kirki/packages/kirki-framework/control-code/src/Field/Code.php
+++ b/functions/kirki/kirki-packages/control-code/src/Field/Code.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-code
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/dist/control.css b/functions/kirki/kirki-packages/control-color-palette/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/dist/control.css
rename to functions/kirki/kirki-packages/control-color-palette/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-color-palette/dist/control.css.map b/functions/kirki/kirki-packages/control-color-palette/dist/control.css.map
new file mode 100644
index 0000000..728f52f
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-color-palette/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AACA,gFAEE,qBCAF,CDIE,4DAEE,aAAA,CADA,iBCAJ,CDIE,2DAEE,iBAAA,CADA,iBCDJ,CDKM,sFACE,SCHR,CDQE,4DAEE,kBAAA,CASA,4BAAA,CACA,iBAAA,CACA,cAAA,CAHA,aAAA,CAKA,cAAA,CAdA,YAAA,CAQA,WAAA,CANA,sBAAA,CAWA,SAAA,CAPA,SAAA,CADA,iBAAA,CAFA,OAAA,CACA,KAAA,CAWA,kBAAA,CARA,UAAA,CASA,SCNJ,CDSI,kEACE,SCPN,CDWE,oEACE,SAAA,CACA,wBCTJ,CDYE,8DACE,cAAA,CAEA,WAAA,CACA,uBAAA,CACA,wBAAA,CAHA,UCPJ,CDaE,qDAEE,kBAAA,CADA,YAAA,CAEA,cAAA,CAIA,eAAA,CAFA,QAAA,CACA,SAAA,CAFA,UCRJ,CDeQ,yFACE,iBCbV,CDmBE,oDAEE,aAAA,CACA,oBAAA,CACA,SAAA,CAHA,iBCdJ,CDmBI,+DACE,eCjBN,CDoBI,wDAEE,kBAAA,CAMA,wBAAA,CADA,iBAAA,CAGA,cAAA,CATA,YAAA,CAKA,WAAA,CAHA,sBAAA,CACA,iBAAA,CAKA,kBAAA,CAEA,wBAAA,CANA,UCZN,CDoBM,8DACE,oBClBR,CDuBM,oEACE,oBAAA,CACA,gBCrBR","sources":["src/control.scss","%3Cinput%20css%20jyGyju%3E"],"sourcesContent":["// Color palette control.\r\n.customize-control-kirki-color-palette,\r\n.customize-control-kirki-color-palette * {\r\n box-sizing: border-box;\r\n}\r\n\r\n.customize-control-kirki-color-palette {\r\n .kirki-control-label {\r\n position: relative;\r\n display: block;\r\n }\r\n\r\n .kirki-control-form {\r\n position: relative;\r\n margin-bottom: 6px;\r\n\r\n &:hover {\r\n .kirki-control-reset {\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n\r\n .kirki-control-reset {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n right: 0;\r\n top: 0;\r\n position: absolute;\r\n padding: 0;\r\n width: 20px;\r\n height: 20px;\r\n color: #50575e;\r\n background-color: transparent;\r\n border-radius: 50%;\r\n border-width: 0;\r\n opacity: 0;\r\n cursor: pointer;\r\n transition: all 0.3s;\r\n z-index: 3;\r\n\r\n // a11y: support tab focus.\r\n &:focus {\r\n opacity: 1;\r\n }\r\n }\r\n\r\n .kirki-control-reset:hover i {\r\n color: #f00;\r\n transform: rotate(-45deg);\r\n }\r\n\r\n .kirki-control-reset i {\r\n font-size: 12px;\r\n width: auto;\r\n height: auto;\r\n transform: rotate(45deg);\r\n transition: transform 0.3s;\r\n }\r\n\r\n .kirki-colors {\r\n display: flex;\r\n align-items: center;\r\n flex-wrap: wrap;\r\n width: 100%;\r\n margin: 0;\r\n padding: 0;\r\n list-style: none;\r\n\r\n &.kirki-round-colors {\r\n .kirki-color {\r\n div {\r\n border-radius: 50%;\r\n }\r\n }\r\n }\r\n }\r\n\r\n .kirki-color {\r\n position: relative;\r\n display: block;\r\n margin: 0 11px 11px 0;\r\n padding: 0;\r\n\r\n &:last-child {\r\n padding-right: 0;\r\n }\r\n\r\n > div {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n border-radius: 4px;\r\n border: 1px solid #dedede;\r\n transform: scale(1);\r\n cursor: pointer;\r\n transition: transform 0.2s;\r\n\r\n &:hover {\r\n transform: scale(1.2);\r\n }\r\n }\r\n\r\n &.is-selected {\r\n > div {\r\n border-color: #2271b1;\r\n border-width: 4px;\r\n }\r\n }\r\n }\r\n}\r\n",".customize-control-kirki-color-palette,\n.customize-control-kirki-color-palette * {\n box-sizing: border-box;\n}\n\n.customize-control-kirki-color-palette .kirki-control-label {\n position: relative;\n display: block;\n}\n.customize-control-kirki-color-palette .kirki-control-form {\n position: relative;\n margin-bottom: 6px;\n}\n.customize-control-kirki-color-palette .kirki-control-form:hover .kirki-control-reset {\n opacity: 1;\n}\n.customize-control-kirki-color-palette .kirki-control-reset {\n display: flex;\n align-items: center;\n justify-content: center;\n right: 0;\n top: 0;\n position: absolute;\n padding: 0;\n width: 20px;\n height: 20px;\n color: #50575e;\n background-color: transparent;\n border-radius: 50%;\n border-width: 0;\n opacity: 0;\n cursor: pointer;\n transition: all 0.3s;\n z-index: 3;\n}\n.customize-control-kirki-color-palette .kirki-control-reset:focus {\n opacity: 1;\n}\n.customize-control-kirki-color-palette .kirki-control-reset:hover i {\n color: #f00;\n transform: rotate(-45deg);\n}\n.customize-control-kirki-color-palette .kirki-control-reset i {\n font-size: 12px;\n width: auto;\n height: auto;\n transform: rotate(45deg);\n transition: transform 0.3s;\n}\n.customize-control-kirki-color-palette .kirki-colors {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n width: 100%;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.customize-control-kirki-color-palette .kirki-colors.kirki-round-colors .kirki-color div {\n border-radius: 50%;\n}\n.customize-control-kirki-color-palette .kirki-color {\n position: relative;\n display: block;\n margin: 0 11px 11px 0;\n padding: 0;\n}\n.customize-control-kirki-color-palette .kirki-color:last-child {\n padding-right: 0;\n}\n.customize-control-kirki-color-palette .kirki-color > div {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 4px;\n border: 1px solid #dedede;\n transform: scale(1);\n cursor: pointer;\n transition: transform 0.2s;\n}\n.customize-control-kirki-color-palette .kirki-color > div:hover {\n transform: scale(1.2);\n}\n.customize-control-kirki-color-palette .kirki-color.is-selected > div {\n border-color: #2271b1;\n border-width: 4px;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/dist/control.js b/functions/kirki/kirki-packages/control-color-palette/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/dist/control.js
rename to functions/kirki/kirki-packages/control-color-palette/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-color-palette/dist/control.js.map b/functions/kirki/kirki-packages/control-color-palette/dist/control.js.map
new file mode 100644
index 0000000..cb600f9
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-color-palette/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"eAAAA,EAAeC,UC6EfC,EA3E+BC,IAC7B,MAAAC,QAAQA,EAAFC,kBAAWA,EAAXC,QAA8BA,GAAYH,GAEzCI,EAAcC,GAAmBC,EAAAA,SAASN,EAAMO,OAEvDN,EAAQO,qBAAwBC,IAC9BJ,EAAgBI,IAGlB,MAAMC,EAAgBC,IACpBT,EAAkBU,IAAID,EAAEE,OAAOC,QAW3BC,EAAOZ,EAAQY,KAAO,EAE5B,OACEjB,MADFkB,cAAA,MAAA,CACOC,UAAU,qBAAqBC,SAAS,KAC3CpB,MADFkB,cAAA,QAAA,CACSC,UAAU,uBACfnB,MADFkB,cAAA,OAAA,CACQC,UAAU,2BAA2BjB,EAAMmB,OACjDrB,MADAkB,cAAA,OAAA,CAEEC,UAAU,4CACVG,wBAAyB,CAAEC,OAAQrB,EAAMsB,gBAI7CxB,MANEkB,cAAA,MAAA,CAOAC,UAAU,4CACVM,IAAKvB,EAAMwB,2BAGb1B,MALAkB,cAAA,SAAA,CAMES,KAAK,SACLR,UAAU,sBACVS,QA5BW,KACX,KAAO1B,EAAM2B,cAAW,IAAuB3B,EAAM2B,QACvDzB,EAAkBU,IAAIZ,EAAM2B,SAE5BzB,EAAkBU,IAAIZ,EAAMO,SA0B1BT,MALFkB,cAAA,IAAA,CAKKC,UAAU,sCAGfnB,MAHEkB,cAAA,KAAA,CAGEC,UAAW,sBAAwBd,EAAQyB,MAAQ,WACpDzB,EAAQ0B,OAAOC,KAAf,CAAoBC,EAAOC,KAC1B,MAAMC,EACJF,IAAU3B,EAAe,0BAA4B,cAEvD,OACEN,MADFkB,cAAA,KAAA,CAEIkB,IAAKF,EAAMG,WACXlB,UAAWgB,EACXG,MAAO,CACLC,MAAOtB,EAAO,KACduB,OAAQvB,EAAO,OAGjBjB,MARFkB,cAAA,MAAA,CASIF,MAAOiB,EACPK,MAAO,CACLG,gBAAiBR,GAEnBL,QAAShB,iOC5BvB8B,GAAAC,UAAAC,QAAAC,OAAA,CAxB2DC,WAAA,SAAAC,EAAAC,GAgD7D,MAAA7C,EAAA8C,KAEE9C,EAAMA,yBAANA,EAAAuB,yBAAAwB,KAAA/C,GAEAgD,GAAAA,UAASC,QACRC,UAAAP,WAAAQ,KAAAnD,EAAC4C,EAAAC,GArDyDN,GAAAC,UAAAxC,QAAA+C,KAAA,WAqD1D,SACK/C,EAFNgD,GAGEhD,IAFDoD,IAGCpD,EAAAqD,UACArD,EAAAsD,UAAAC,SACAhB,GAAOvC,UAAQ6C,QAAOvC,OAAtB,UAAAkD,QAwCJjC,yBAAA,SAAAkC,GAEkBX,KAGRY,cAACC,UAAuB3D,OAAQsD,GAHxBR,KAMTN,cAAUC,gkBCpHnBF,GAAGC,UAAUoB,mBAAmB,uBAAyBC","sources":["React.js","src/KirkiColorPaletteForm.js","src/KirkiColorPaletteControl.js","src/control.js"],"sourcesContent":["module.exports=React;","import { useState } from \"react\";\n\nconst KirkiColorPaletteForm = (props) => {\n const { control, customizerSetting, choices } = props;\n\n const [selectedItem, setSelectedItem] = useState(props.value);\n\n control.updateComponentState = (val) => {\n setSelectedItem(val);\n };\n\n const handleSelect = (e) => {\n customizerSetting.set(e.target.title);\n };\n\n const handleReset = () => {\n if (\"\" !== props.default && \"undefined\" !== typeof props.default) {\n customizerSetting.set(props.default);\n } else {\n customizerSetting.set(props.value);\n }\n };\n\n const size = choices.size + 2; // 2 here is 1px border on each side.\n\n return (\n \n
\n {props.label} \n \n \n\n
\n\n
\n \n \n\n
\n {choices.colors.map((color, index) => {\n const itemClassName =\n color === selectedItem ? \"kirki-color is-selected\" : \"kirki-color\";\n\n return (\n \n
\n \n );\n })}\n \n
\n );\n};\n\nexport default KirkiColorPaletteForm;\n","import KirkiColorPaletteForm from './KirkiColorPaletteForm';\r\n\r\n/**\r\n * KirkiColorPaletteControl.\r\n *\r\n * Global objects brought:\r\n * - wp\r\n * - jQuery\r\n * - React\r\n * - ReactDOM\r\n *\r\n * @class\r\n * @augments wp.customize.Control\r\n * @augments wp.customize.Class\r\n */\r\nconst KirkiColorPaletteControl = wp.customize.Control.extend({\r\n\r\n\t/**\r\n\t * Initialize.\r\n\t *\r\n\t * @param {string} id - Control ID.\r\n\t * @param {object} params - Control params.\r\n\t */\r\n\tinitialize: function (id, params) {\r\n\t\tconst control = this;\r\n\r\n\t\t// Bind functions to this control context for passing as React props.\r\n\t\tcontrol.setNotificationContainer = control.setNotificationContainer.bind(control);\r\n\r\n\t\twp.customize.Control.prototype.initialize.call(control, id, params);\r\n\r\n\t\t// The following should be eliminated with .\r\n\t\tfunction onRemoved(removedControl) {\r\n\t\t\tif (control === removedControl) {\r\n\t\t\t\tcontrol.destroy();\r\n\t\t\t\tcontrol.container.remove();\r\n\t\t\t\twp.customize.control.unbind('removed', onRemoved);\r\n\t\t\t}\r\n\t\t}\r\n\t\twp.customize.control.bind('removed', onRemoved);\r\n\t},\r\n\r\n\t/**\r\n\t * Set notification container and render.\r\n\t *\r\n\t * This is called when the React component is mounted.\r\n\t *\r\n\t * @param {Element} element - Notification container.\r\n\t * @returns {void}\r\n\t */\r\n\tsetNotificationContainer: function setNotificationContainer(element) {\r\n\t\tconst control = this;\r\n\r\n\t\tcontrol.notifications.container = jQuery(element);\r\n\t\tcontrol.notifications.render();\r\n\t},\r\n\r\n\t/**\r\n\t * Render the control into the DOM.\r\n\t *\r\n\t * This is called from the Control#embed() method in the parent class.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\trenderContent: function renderContent() {\r\n\t\tconst control = this;\r\n\r\n\t\tReactDOM.render(\r\n\t\t\t ,\r\n\t\t\tcontrol.container[0]\r\n\t\t);\r\n\r\n\t\tif (false !== control.params.choices.allowCollapse) {\r\n\t\t\tcontrol.container.addClass('allowCollapse');\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * After control has been first rendered, start re-rendering when setting changes.\r\n\t *\r\n\t * React is able to be used here instead of the wp.customize.Element abstraction.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tready: function ready() {\r\n\t\tconst control = this;\r\n\r\n\t\t/**\r\n\t\t * Update component value's state when customizer setting's value is changed.\r\n\t\t */\r\n\t\tcontrol.setting.bind((val) => {\r\n\t\t\tcontrol.updateComponentState(val);\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * This method will be overriden by the rendered component.\r\n\t */\r\n\tupdateComponentState: (val) => { },\r\n\r\n\t/**\r\n\t * Handle removal/de-registration of the control.\r\n\t *\r\n\t * This is essentially the inverse of the Control#embed() method.\r\n\t *\r\n\t * @link https://core.trac.wordpress.org/ticket/31334\r\n\t * @returns {void}\r\n\t */\r\n\tdestroy: function destroy() {\r\n\t\tconst control = this;\r\n\r\n\t\t// Garbage collection: undo mounting that was done in the embed/renderContent method.\r\n\t\tReactDOM.unmountComponentAtNode(control.container[0]);\r\n\r\n\t\t// Call destroy method in parent if it exists (as of #31334).\r\n\t\tif (wp.customize.Control.prototype.destroy) {\r\n\t\t\twp.customize.Control.prototype.destroy.call(control);\r\n\t\t}\r\n\t}\r\n});\r\n\r\nexport default KirkiColorPaletteControl;\r\n","import \"./control.scss\";\r\nimport KirkiColorPaletteControl from './KirkiColorPaletteControl';\r\n\r\n\r\n// Register control type with Customizer.\r\nwp.customize.controlConstructor['kirki-color-palette'] = KirkiColorPaletteControl;\r\n"],"names":["module","React","$1a969aa9e5f28e8b$export$2e2bcd8739ae039","props","control","customizerSetting","choices","selectedItem","setSelectedItem","useState","value","updateComponentState","val","handleSelect","e","set","target","title","size","createElement","className","tabIndex","label","dangerouslySetInnerHTML","__html","description","ref","setNotificationContainer","type","onClick","default","shape","colors","map","color","index","itemClassName","key","toString","style","width","height","backgroundColor","wp","customize","Control","extend","initialize","id","params","this","bind","ReactDOM","render","prototype","call","removedControl","destroy","container","remove","onRemoved","element","notifications","unmountComponentAtNode","controlConstructor","KirkiColorPaletteControl"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/src/Control/Color_Palette.php b/functions/kirki/kirki-packages/control-color-palette/src/Control/Color_Palette.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/src/Control/Color_Palette.php
rename to functions/kirki/kirki-packages/control-color-palette/src/Control/Color_Palette.php
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/src/Field/Color_Palette.php b/functions/kirki/kirki-packages/control-color-palette/src/Field/Color_Palette.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/src/Field/Color_Palette.php
rename to functions/kirki/kirki-packages/control-color-palette/src/Field/Color_Palette.php
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/src/KirkiColorPaletteControl.js b/functions/kirki/kirki-packages/control-color-palette/src/KirkiColorPaletteControl.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/src/KirkiColorPaletteControl.js
rename to functions/kirki/kirki-packages/control-color-palette/src/KirkiColorPaletteControl.js
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/src/KirkiColorPaletteForm.js b/functions/kirki/kirki-packages/control-color-palette/src/KirkiColorPaletteForm.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/src/KirkiColorPaletteForm.js
rename to functions/kirki/kirki-packages/control-color-palette/src/KirkiColorPaletteForm.js
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/src/control.js b/functions/kirki/kirki-packages/control-color-palette/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-color-palette/src/control.js
rename to functions/kirki/kirki-packages/control-color-palette/src/control.js
diff --git a/functions/kirki/kirki-packages/control-color-palette/src/control.scss b/functions/kirki/kirki-packages/control-color-palette/src/control.scss
new file mode 100644
index 0000000..46e724d
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-color-palette/src/control.scss
@@ -0,0 +1,115 @@
+// Color palette control.
+.customize-control-kirki-color-palette,
+.customize-control-kirki-color-palette * {
+ box-sizing: border-box;
+}
+
+.customize-control-kirki-color-palette {
+ .kirki-control-label {
+ position: relative;
+ display: block;
+ }
+
+ .kirki-control-form {
+ position: relative;
+ margin-bottom: 6px;
+
+ &:hover {
+ .kirki-control-reset {
+ opacity: 1;
+ }
+ }
+ }
+
+ .kirki-control-reset {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ right: 0;
+ top: 0;
+ position: absolute;
+ padding: 0;
+ width: 20px;
+ height: 20px;
+ color: #50575e;
+ background-color: transparent;
+ border-radius: 50%;
+ border-width: 0;
+ opacity: 0;
+ cursor: pointer;
+ transition: all 0.3s;
+ z-index: 3;
+
+ // a11y: support tab focus.
+ &:focus {
+ opacity: 1;
+ }
+ }
+
+ .kirki-control-reset:hover i {
+ color: #f00;
+ transform: rotate(-45deg);
+ }
+
+ .kirki-control-reset i {
+ font-size: 12px;
+ width: auto;
+ height: auto;
+ transform: rotate(45deg);
+ transition: transform 0.3s;
+ }
+
+ .kirki-colors {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+
+ &.kirki-round-colors {
+ .kirki-color {
+ div {
+ border-radius: 50%;
+ }
+ }
+ }
+ }
+
+ .kirki-color {
+ position: relative;
+ display: block;
+ margin: 0 11px 11px 0;
+ padding: 0;
+
+ &:last-child {
+ padding-right: 0;
+ }
+
+ > div {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ border-radius: 4px;
+ border: 1px solid #dedede;
+ transform: scale(1);
+ cursor: pointer;
+ transition: transform 0.2s;
+
+ &:hover {
+ transform: scale(1.2);
+ }
+ }
+
+ &.is-selected {
+ > div {
+ border-color: #2271b1;
+ border-width: 4px;
+ }
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-cropped-image/LICENSE b/functions/kirki/kirki-packages/control-color/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-cropped-image/LICENSE
rename to functions/kirki/kirki-packages/control-color/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-color/src/Field/Color.php b/functions/kirki/kirki-packages/control-color/src/Field/Color.php
similarity index 87%
rename from functions/kirki/packages/kirki-framework/control-color/src/Field/Color.php
rename to functions/kirki/kirki-packages/control-color/src/Field/Color.php
index 4c3eba9..a7564c7 100644
--- a/functions/kirki/packages/kirki-framework/control-color/src/Field/Color.php
+++ b/functions/kirki/kirki-packages/control-color/src/Field/Color.php
@@ -6,7 +6,7 @@
* callbacks and any usother properties we may need.
*
* @package kirki-framework/control-color
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-custom/LICENSE b/functions/kirki/kirki-packages/control-cropped-image/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-custom/LICENSE
rename to functions/kirki/kirki-packages/control-cropped-image/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-cropped-image/src/Cropped_Image.php b/functions/kirki/kirki-packages/control-cropped-image/src/Cropped_Image.php
similarity index 87%
rename from functions/kirki/packages/kirki-framework/control-cropped-image/src/Cropped_Image.php
rename to functions/kirki/kirki-packages/control-cropped-image/src/Cropped_Image.php
index 592bbe9..f9f5756 100644
--- a/functions/kirki/packages/kirki-framework/control-cropped-image/src/Cropped_Image.php
+++ b/functions/kirki/kirki-packages/control-cropped-image/src/Cropped_Image.php
@@ -3,7 +3,7 @@
* Customizer Control: cropped-image.
*
* @package kirki-framework/control-cropped-image
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/LICENSE b/functions/kirki/kirki-packages/control-custom/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dashicons/LICENSE
rename to functions/kirki/kirki-packages/control-custom/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-custom/src/Control/Custom.php b/functions/kirki/kirki-packages/control-custom/src/Control/Custom.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-custom/src/Control/Custom.php
rename to functions/kirki/kirki-packages/control-custom/src/Control/Custom.php
index 77f8418..1ecb296 100644
--- a/functions/kirki/packages/kirki-framework/control-custom/src/Control/Custom.php
+++ b/functions/kirki/kirki-packages/control-custom/src/Control/Custom.php
@@ -6,7 +6,7 @@
* Custom controls accept raw HTML/JS.
*
* @package kirki-framework/control-custom
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-custom/src/Field/Custom.php b/functions/kirki/kirki-packages/control-custom/src/Field/Custom.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-custom/src/Field/Custom.php
rename to functions/kirki/kirki-packages/control-custom/src/Field/Custom.php
index 1003610..5670e68 100644
--- a/functions/kirki/packages/kirki-framework/control-custom/src/Field/Custom.php
+++ b/functions/kirki/kirki-packages/control-custom/src/Field/Custom.php
@@ -3,7 +3,7 @@
* Override field methods when used with the Kirki API.
*
* @package kirki-framework/control-custom
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-date/LICENSE b/functions/kirki/kirki-packages/control-dashicons/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-date/LICENSE
rename to functions/kirki/kirki-packages/control-dashicons/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/dist/control.css b/functions/kirki/kirki-packages/control-dashicons/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dashicons/dist/control.css
rename to functions/kirki/kirki-packages/control-dashicons/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-dashicons/dist/control.css.map b/functions/kirki/kirki-packages/control-dashicons/dist/control.css.map
new file mode 100644
index 0000000..6acbcf8
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-dashicons/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAAA,mCACE,iBCCF,CDCE,yCAEE,oBAAA,CADA,iBCEJ,CDEE,kDACE,gBAAA,CACA,iBCAJ,CDEI,qDACE,eAAA,CACA,aCAN,CDGI,6DAKE,4BAAA,CAHA,cAAA,CAEA,WAAA,CAHA,WAAA,CAEA,UCCN,CDII,wDACE,YCFN,CDMU,iFACE,wBAAA,CACA,UCJZ","sources":["src/control.scss","%3Cinput%20css%20xiOUbS%3E"],"sourcesContent":[".customize-control-kirki-dashicons {\r\n position: relative;\r\n\r\n label {\r\n position: relative;\r\n display: inline-block;\r\n }\r\n\r\n .icons-wrapper {\r\n max-height: 300px;\r\n overflow-y: scroll;\r\n\r\n h4 {\r\n font-weight: 300;\r\n margin: 0.7em 0;\r\n }\r\n\r\n .dashicons {\r\n padding: 3px;\r\n font-size: 25px;\r\n width: 25px;\r\n height: 25px;\r\n border: 1px solid transparent;\r\n }\r\n\r\n input {\r\n display: none;\r\n\r\n &:checked {\r\n + label {\r\n .dashicons {\r\n border: 1px solid #3498DB;\r\n color: #000;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",".customize-control-kirki-dashicons {\n position: relative;\n}\n.customize-control-kirki-dashicons label {\n position: relative;\n display: inline-block;\n}\n.customize-control-kirki-dashicons .icons-wrapper {\n max-height: 300px;\n overflow-y: scroll;\n}\n.customize-control-kirki-dashicons .icons-wrapper h4 {\n font-weight: 300;\n margin: 0.7em 0;\n}\n.customize-control-kirki-dashicons .icons-wrapper .dashicons {\n padding: 3px;\n font-size: 25px;\n width: 25px;\n height: 25px;\n border: 1px solid transparent;\n}\n.customize-control-kirki-dashicons .icons-wrapper input {\n display: none;\n}\n.customize-control-kirki-dashicons .icons-wrapper input:checked + label .dashicons {\n border: 1px solid #3498DB;\n color: #000;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/dist/control.js b/functions/kirki/kirki-packages/control-dashicons/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dashicons/dist/control.js
rename to functions/kirki/kirki-packages/control-dashicons/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-dashicons/dist/control.js.map b/functions/kirki/kirki-packages/control-dashicons/dist/control.js.map
new file mode 100644
index 0000000..c696dbd
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-dashicons/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAEAA,GAAGC,UAAUC,mBAAkB,mBAAsBF,GAAGC,UAAUE,oBAAoBC,OAAM","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-dashicons'] = wp.customize.kirkiDynamicControl.extend( {} );\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/src/Control/Dashicons.php b/functions/kirki/kirki-packages/control-dashicons/src/Control/Dashicons.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-dashicons/src/Control/Dashicons.php
rename to functions/kirki/kirki-packages/control-dashicons/src/Control/Dashicons.php
index 6392350..d68eaf1 100644
--- a/functions/kirki/packages/kirki-framework/control-dashicons/src/Control/Dashicons.php
+++ b/functions/kirki/kirki-packages/control-dashicons/src/Control/Dashicons.php
@@ -3,7 +3,7 @@
* Customizer Control: dashicons.
*
* @package kirki-framework/control-dashicons
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/src/Field/Dashicons.php b/functions/kirki/kirki-packages/control-dashicons/src/Field/Dashicons.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-dashicons/src/Field/Dashicons.php
rename to functions/kirki/kirki-packages/control-dashicons/src/Field/Dashicons.php
index 936e33e..0ceff59 100644
--- a/functions/kirki/packages/kirki-framework/control-dashicons/src/Field/Dashicons.php
+++ b/functions/kirki/kirki-packages/control-dashicons/src/Field/Dashicons.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-dashicons
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/src/Util/Dashicons.php b/functions/kirki/kirki-packages/control-dashicons/src/Util/Dashicons.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-dashicons/src/Util/Dashicons.php
rename to functions/kirki/kirki-packages/control-dashicons/src/Util/Dashicons.php
index da2585b..ad4f058 100644
--- a/functions/kirki/packages/kirki-framework/control-dashicons/src/Util/Dashicons.php
+++ b/functions/kirki/kirki-packages/control-dashicons/src/Util/Dashicons.php
@@ -4,8 +4,8 @@
*
* @package kirki-framework/control-dashicons
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-dashicons/src/control.js b/functions/kirki/kirki-packages/control-dashicons/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dashicons/src/control.js
rename to functions/kirki/kirki-packages/control-dashicons/src/control.js
diff --git a/functions/kirki/kirki-packages/control-dashicons/src/control.scss b/functions/kirki/kirki-packages/control-dashicons/src/control.scss
new file mode 100644
index 0000000..e5c4b60
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-dashicons/src/control.scss
@@ -0,0 +1,39 @@
+.customize-control-kirki-dashicons {
+ position: relative;
+
+ label {
+ position: relative;
+ display: inline-block;
+ }
+
+ .icons-wrapper {
+ max-height: 300px;
+ overflow-y: scroll;
+
+ h4 {
+ font-weight: 300;
+ margin: 0.7em 0;
+ }
+
+ .dashicons {
+ padding: 3px;
+ font-size: 25px;
+ width: 25px;
+ height: 25px;
+ border: 1px solid transparent;
+ }
+
+ input {
+ display: none;
+
+ &:checked {
+ + label {
+ .dashicons {
+ border: 1px solid #3498DB;
+ color: #000;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-dimension/LICENSE b/functions/kirki/kirki-packages/control-date/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dimension/LICENSE
rename to functions/kirki/kirki-packages/control-date/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-date/dist/control.css b/functions/kirki/kirki-packages/control-date/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-date/dist/control.css
rename to functions/kirki/kirki-packages/control-date/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-date/dist/control.css.map b/functions/kirki/kirki-packages/control-date/dist/control.css.map
new file mode 100644
index 0000000..7ab58ad
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-date/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAGA,wBAEE,qBAAA,CACA,qBAAA,CAEA,iBAAA,CADA,wCAAA,CAGA,eAAA,CAEA,eAAA,CADA,eAAA,CAPA,mBAAA,CAKA,wBCCF,CDIE,8CAEE,qBAhBe,CAef,YCDJ,CDII,oIAGE,kBAAA,CAKA,iBAAA,CACA,cAAA,CAPA,YAAA,CAKA,WAAA,CAHA,sBAAA,CAMA,eAAA,CALA,iBAAA,CAMA,kBAAA,CALA,UCGN,CDIM,kbAEE,wBAhCY,CA+BZ,UCER,CDEM,kSAEE,qBCCR,CDEM,sJACE,YCCR,CDGI,kEACE,SCDN,CDGM,yEACE,eCDR,CDKI,kEACE,UCHN,CDKM,wEACE,eCHR,CDOI,mEAGE,kBAAA,CAFA,YAAA,CAKA,cAAA,CADA,WAAA,CADA,sBAAA,CAGA,iBAAA,CALA,UCAN,CDSE,gDACE,wBAAA,CACA,mBAAA,CACA,UCPJ,CDSI,sDACE,qBAAA,CACA,gBAAA,CACA,iBCPN,CDSM,yDAKE,cAAA,CADA,eAAA,CAFA,kBAAA,CADA,eAAA,CAEA,iBCLR,CDWI,sDACE,WCTN,CDWM,yDACE,WAAA,CACA,iBCTR,CDYM,wDAEE,UAAA,CADA,oBCTR,CDcQ,6FACE,qBCZV,CDkBU,mYAGE,wBCfZ,CDoBM,wEAEE,kBAAA,CAIA,iBAAA,CALA,mBAAA,CAIA,WAAA,CAFA,sBAAA,CACA,UChBR,CDoBQ,6JAEE,qBCnBV,CD4BM,qJAJI,wBAvIU,CAsIV,UCfV,CDwBQ,wOAGE,wBCxBV","sources":["src/control.scss","%3Cinput%20css%204ZQXu4%3E"],"sourcesContent":["$date-hover-color: #eee;\n$date-active-color: #2271b1;\n\n.kirki-datepicker-popup {\n padding-bottom: 10px;\n background-color: #fff;\n border: 1px solid #ddd;\n box-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;\n border-radius: 6px;\n z-index: 500001 !important;\n margin-top: 15px;\n overflow: hidden;\n max-width: 275px;\n\n .ui-datepicker-header {\n padding: 10px;\n background-color: $date-hover-color;\n\n .ui-datepicker-next,\n .ui-datepicker-prev {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n cursor: pointer;\n overflow: hidden;\n transition: all .2s;\n\n &:hover, &:active, &:focus {\n color: #fff;\n background-color: $date-active-color;\n }\n\n &:after,\n &:before {\n font-family: dashicons;\n }\n\n .ui-icon {\n display: none;\n }\n }\n\n .ui-datepicker-prev {\n left: 10px;\n\n &:before {\n content: \"\\f341\";\n }\n }\n\n .ui-datepicker-next {\n right: 10px;\n\n &:after {\n content: \"\\f345\";\n }\n }\n\n .ui-datepicker-title {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n height: 30px;\n font-size: 16px;\n text-align: center;\n }\n }\n\n .ui-datepicker-calendar {\n border-collapse: collapse;\n padding-bottom: 20px;\n width: 100%;\n\n thead {\n background-color: #ddd;\n padding-left: 5px;\n padding-right: 5px;\n\n th {\n padding-top: 5px;\n padding-bottom: 5px;\n text-align: center;\n font-weight: 600;\n font-size: 13px;\n }\n }\n\n tbody {\n padding: 5px;\n\n td {\n padding: 2px;\n text-align: center;\n }\n\n a {\n text-decoration: none;\n color: #333;\n }\n\n .ui-datepicker-today {\n .ui-state-default {\n background-color: $date-hover-color;\n }\n\n .ui-state-active {\n background-color: $date-active-color;\n\n &:hover,\n &:active,\n &:focus {\n background-color: $date-active-color;\n }\n }\n }\n\n .ui-state-default {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n\n &:hover,\n &:active {\n background-color: $date-hover-color;\n }\n\n &:focus {\n color: #fff;\n background-color: $date-active-color;\n }\n }\n\n .ui-state-active {\n background-color: $date-active-color;\n color: #fff;\n\n &:hover,\n &:active,\n &:focus {\n background-color: $date-active-color;\n }\n }\n }\n }\n}\n",".kirki-datepicker-popup {\n padding-bottom: 10px;\n background-color: #fff;\n border: 1px solid #ddd;\n box-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;\n border-radius: 6px;\n z-index: 500001 !important;\n margin-top: 15px;\n overflow: hidden;\n max-width: 275px;\n}\n.kirki-datepicker-popup .ui-datepicker-header {\n padding: 10px;\n background-color: #eee;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n cursor: pointer;\n overflow: hidden;\n transition: all 0.2s;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next:hover, .kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next:active, .kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next:focus,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev:hover,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev:active,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev:focus {\n color: #fff;\n background-color: #2271b1;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next:after, .kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next:before,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev:after,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev:before {\n font-family: dashicons;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next .ui-icon,\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev .ui-icon {\n display: none;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev {\n left: 10px;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-prev:before {\n content: \"\\f341\";\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next {\n right: 10px;\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-next:after {\n content: \"\\f345\";\n}\n.kirki-datepicker-popup .ui-datepicker-header .ui-datepicker-title {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n height: 30px;\n font-size: 16px;\n text-align: center;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar {\n border-collapse: collapse;\n padding-bottom: 20px;\n width: 100%;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar thead {\n background-color: #ddd;\n padding-left: 5px;\n padding-right: 5px;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar thead th {\n padding-top: 5px;\n padding-bottom: 5px;\n text-align: center;\n font-weight: 600;\n font-size: 13px;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody {\n padding: 5px;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody td {\n padding: 2px;\n text-align: center;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody a {\n text-decoration: none;\n color: #333;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-datepicker-today .ui-state-default {\n background-color: #eee;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-datepicker-today .ui-state-active {\n background-color: #2271b1;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-datepicker-today .ui-state-active:hover, .kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-datepicker-today .ui-state-active:active, .kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-datepicker-today .ui-state-active:focus {\n background-color: #2271b1;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-default {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-default:hover, .kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-default:active {\n background-color: #eee;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-default:focus {\n color: #fff;\n background-color: #2271b1;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-active {\n background-color: #2271b1;\n color: #fff;\n}\n.kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-active:hover, .kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-active:active, .kirki-datepicker-popup .ui-datepicker-calendar tbody .ui-state-active:focus {\n background-color: #2271b1;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-date/dist/control.js b/functions/kirki/kirki-packages/control-date/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-date/dist/control.js
rename to functions/kirki/kirki-packages/control-date/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-date/dist/control.js.map b/functions/kirki/kirki-packages/control-date/dist/control.js.map
new file mode 100644
index 0000000..70950a8
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-date/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAEAA,GAAGC,UAAUC,mBAAkB,cAAiBF,GAAGC,UAAUE,oBAAoBC,OAAM,CAEtFC,YAAW,SAAGC,GACEC,SAASC,cAAa,2BAC5BC,UAAS,mCAAwCH,EAAMI,YAAYC,WAAQ,QAGrFC,iBAAgB,SAAYC,GAC3B,IAAIC,EAGJA,GADAD,EAAUA,GAAOE,MACED,SAAQ,oBAE3B,IAAIE,EAAWT,SAASC,cAAa,2BAEhCQ,KACJA,EAAWT,SAASU,cAAa,UACxBC,GAAE,yBACXX,SAASY,KAAKC,YAAYJ,IAI3BK,OAAOP,GAAUQ,WAAU,CAC1BC,WAAU,WACVC,SAAU,IACVC,WAAU,SAAYnB,EAAOoB,GAC5BA,EAAKC,MAAM,GAAGC,UAAUC,IAAG,0BAC3BhB,EAAQR,YAAYC,WAKjBwB,UAAUC,GAAE,qBAAqB,oBAAoB,WACzDlB,EAAQmB,QAAQC,IAAIZ,OAAMN,MAAOmB","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-date'] = wp.customize.kirkiDynamicControl.extend({\n\n\thandleWidth: (input) => {\n\t\tvar styleTag = document.querySelector('#kirki-style-datepicker');\n\t\tstyleTag.innerHTML = '.kirki-datepicker-popup {width: ' + input.clientWidth.toString() + 'px;}';\n\t},\n\n\tinitKirkiControl: function (control) {\n\t\tvar selector;\n\n\t\tcontrol = control || this;\n\t\tselector = control.selector + ' input.datepicker';\n\n\t\tvar styleTag = document.querySelector('#kirki-style-datepicker');\n\n\t\tif (!styleTag) {\n\t\t\tstyleTag = document.createElement('style');\n\t\t\tstyleTag.id = 'kirki-style-datepicker';\n\t\t\tdocument.head.appendChild(styleTag);\n\t\t}\n\n\t\t// Init the datepicker.\n\t\tjQuery(selector).datepicker({\n\t\t\tdateFormat: 'yy-mm-dd',\n\t\t\tduration: 200,\n\t\t\tbeforeShow: function (input, inst) {\n\t\t\t\tinst.dpDiv[0].classList.add('kirki-datepicker-popup');\n\t\t\t\tcontrol.handleWidth(input);\n\t\t\t}\n\t\t});\n\n\t\t// Save the changes\n\t\tthis.container.on('change keyup paste', 'input.datepicker', function () {\n\t\t\tcontrol.setting.set(jQuery(this).val());\n\t\t});\n\t}\n});\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","handleWidth","input","document","querySelector","innerHTML","clientWidth","toString","initKirkiControl","control","selector","this","styleTag","createElement","id","head","appendChild","jQuery","datepicker","dateFormat","duration","beforeShow","inst","dpDiv","classList","add","container","on","setting","set","val"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-date/src/Control/Date.php b/functions/kirki/kirki-packages/control-date/src/Control/Date.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-date/src/Control/Date.php
rename to functions/kirki/kirki-packages/control-date/src/Control/Date.php
index 7540393..1feea3d 100644
--- a/functions/kirki/packages/kirki-framework/control-date/src/Control/Date.php
+++ b/functions/kirki/kirki-packages/control-date/src/Control/Date.php
@@ -3,7 +3,7 @@
* Customizer Control: kirki-date.
*
* @package kirki-framework/control-date
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-date/src/Field/Date.php b/functions/kirki/kirki-packages/control-date/src/Field/Date.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-date/src/Field/Date.php
rename to functions/kirki/kirki-packages/control-date/src/Field/Date.php
index 20d55c8..ed7d6e6 100644
--- a/functions/kirki/packages/kirki-framework/control-date/src/Field/Date.php
+++ b/functions/kirki/kirki-packages/control-date/src/Field/Date.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-date
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-date/src/control.js b/functions/kirki/kirki-packages/control-date/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-date/src/control.js
rename to functions/kirki/kirki-packages/control-date/src/control.js
diff --git a/functions/kirki/kirki-packages/control-date/src/control.scss b/functions/kirki/kirki-packages/control-date/src/control.scss
new file mode 100644
index 0000000..594f303
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-date/src/control.scss
@@ -0,0 +1,153 @@
+$date-hover-color: #eee;
+$date-active-color: #2271b1;
+
+.kirki-datepicker-popup {
+ padding-bottom: 10px;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ box-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;
+ border-radius: 6px;
+ z-index: 500001 !important;
+ margin-top: 15px;
+ overflow: hidden;
+ max-width: 275px;
+
+ .ui-datepicker-header {
+ padding: 10px;
+ background-color: $date-hover-color;
+
+ .ui-datepicker-next,
+ .ui-datepicker-prev {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ width: 30px;
+ height: 30px;
+ border-radius: 50%;
+ cursor: pointer;
+ overflow: hidden;
+ transition: all .2s;
+
+ &:hover, &:active, &:focus {
+ color: #fff;
+ background-color: $date-active-color;
+ }
+
+ &:after,
+ &:before {
+ font-family: dashicons;
+ }
+
+ .ui-icon {
+ display: none;
+ }
+ }
+
+ .ui-datepicker-prev {
+ left: 10px;
+
+ &:before {
+ content: "\f341";
+ }
+ }
+
+ .ui-datepicker-next {
+ right: 10px;
+
+ &:after {
+ content: "\f345";
+ }
+ }
+
+ .ui-datepicker-title {
+ display: flex;
+ width: 100%;
+ align-items: center;
+ justify-content: center;
+ height: 30px;
+ font-size: 16px;
+ text-align: center;
+ }
+ }
+
+ .ui-datepicker-calendar {
+ border-collapse: collapse;
+ padding-bottom: 20px;
+ width: 100%;
+
+ thead {
+ background-color: #ddd;
+ padding-left: 5px;
+ padding-right: 5px;
+
+ th {
+ padding-top: 5px;
+ padding-bottom: 5px;
+ text-align: center;
+ font-weight: 600;
+ font-size: 13px;
+ }
+ }
+
+ tbody {
+ padding: 5px;
+
+ td {
+ padding: 2px;
+ text-align: center;
+ }
+
+ a {
+ text-decoration: none;
+ color: #333;
+ }
+
+ .ui-datepicker-today {
+ .ui-state-default {
+ background-color: $date-hover-color;
+ }
+
+ .ui-state-active {
+ background-color: $date-active-color;
+
+ &:hover,
+ &:active,
+ &:focus {
+ background-color: $date-active-color;
+ }
+ }
+ }
+
+ .ui-state-default {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 30px;
+ height: 30px;
+ border-radius: 50%;
+
+ &:hover,
+ &:active {
+ background-color: $date-hover-color;
+ }
+
+ &:focus {
+ color: #fff;
+ background-color: $date-active-color;
+ }
+ }
+
+ .ui-state-active {
+ background-color: $date-active-color;
+ color: #fff;
+
+ &:hover,
+ &:active,
+ &:focus {
+ background-color: $date-active-color;
+ }
+ }
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-editor/LICENSE b/functions/kirki/kirki-packages/control-dimension/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-editor/LICENSE
rename to functions/kirki/kirki-packages/control-dimension/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-dimension/dist/control.css b/functions/kirki/kirki-packages/control-dimension/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dimension/dist/control.css
rename to functions/kirki/kirki-packages/control-dimension/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-dimension/dist/control.css.map b/functions/kirki/kirki-packages/control-dimension/dist/control.css.map
new file mode 100644
index 0000000..f749b44
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-dimension/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAEI,0EAIE,UAAA,CADA,cAAA,CAEA,eAAA,CAJA,cAAA,CACA,iBCEN,CDII,0EACE,wBCFN,CDIM,gFACE,qBCFR","sources":["src/control.scss","%3Cinput%20css%20bqm70f%3E"],"sourcesContent":[".customize-control-kirki-dimension {\r\n .has-label-bottom {\r\n .kirki-control-label {\r\n margin-top: 3px;\r\n text-align: center;\r\n font-size: 11px;\r\n color: #333;\r\n font-weight: 500;\r\n }\r\n\r\n .kirki-control-input {\r\n background-color: #f7f7f7;\r\n\r\n &:focus {\r\n background-color: #fff;\r\n }\r\n }\r\n }\r\n}\r\n",".customize-control-kirki-dimension .has-label-bottom .kirki-control-label {\n margin-top: 3px;\n text-align: center;\n font-size: 11px;\n color: #333;\n font-weight: 500;\n}\n.customize-control-kirki-dimension .has-label-bottom .kirki-control-input {\n background-color: #f7f7f7;\n}\n.customize-control-kirki-dimension .has-label-bottom .kirki-control-input:focus {\n background-color: #fff;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-dimension/dist/control.js b/functions/kirki/kirki-packages/control-dimension/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dimension/dist/control.js
rename to functions/kirki/kirki-packages/control-dimension/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-dimension/dist/control.js.map b/functions/kirki/kirki-packages/control-dimension/dist/control.js.map
new file mode 100644
index 0000000..5939859
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-dimension/d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ionkirkiL10n */\r\nwp.customize.controlConstructor['kirki-dimension'] = wp.customize.kirkiDynamicControl.extend( {\r\n\r\n\tinitKirkiControl: function( control ) {\r\n\t\tvar value;\r\n\t\tcontrol = control || this;\r\n\r\n\t\t// Notifications.\r\n\t\tcontrol.kirkiNotifications();\r\n\r\n\t\t// Save the value\r\n\t\tcontrol.container.on( 'change keyup paste', 'input', function() {\r\n\t\t\tvalue = jQuery( this ).val();\r\n\t\t\tcontrol.setting.set( value );\r\n\t\t} );\r\n\t},\r\n\r\n\t/**\r\n\t * Handles notifications.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tkirkiNotifications: function() {\r\n\r\n\t\tvar control = this,\r\n\t\t\tacceptUnitless = ( 'undefined' !== typeof control.params.choices && 'undefined' !== typeof control.params.choices.accept_unitless && true === control.params.choices.accept_unitless );\r\n\r\n\t\twp.customize( control.id, function( setting ) {\r\n\t\t\tsetting.bind( function( value ) {\r\n\t\t\t\tvar code = 'long_title';\r\n\r\n\t\t\t\tif ( false === control.validateCssValue( value ) && ( ! acceptUnitless || isNaN( value ) ) ) {\r\n\t\t\t\t\tsetting.notifications.add( code, new wp.customize.Notification( code, {\r\n\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t\tmessage: dimensionkirkiL10n['invalid-value']\r\n\t\t\t\t\t} ) );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetting.notifications.remove( code );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t} );\r\n\t},\r\n\r\n\tvalidateCssValue: function( value ) {\r\n\r\n\t\tvar control = this,\r\n\t\t\tvalidUnits = [ 'fr', 'rem', 'em', 'ex', '%', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'vh', 'vw', 'vmin', 'vmax' ],\r\n\t\t\tnumericValue,\r\n\t\t\tunit,\r\n\t\t\tmultiples,\r\n\t\t\tmultiplesValid = true;\r\n\r\n\t\t// Whitelist values.\r\n\t\tif ( ! value || '' === value || 0 === value || '0' === value || 'auto' === value || 'inherit' === value || 'initial' === value ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Skip checking if calc().\r\n\t\tif ( 0 <= value.indexOf( 'calc(' ) && 0 <= value.indexOf( ')' ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Get the numeric value.\r\n\t\tnumericValue = parseFloat( value );\r\n\r\n\t\t// Get the unit\r\n\t\tunit = value.replace( numericValue, '' );\r\n\r\n\t\t// Allow unitless.\r\n\t\tif ( ! unit ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Check for multiple values.\r\n\t\tmultiples = value.split( ' ' );\r\n\t\tif ( 2 <= multiples.length ) {\r\n\t\t\tmultiples.forEach( function( item ) {\r\n\t\t\t\tif ( item && ! control.validateCssValue( item ) ) {\r\n\t\t\t\t\tmultiplesValid = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn multiplesValid;\r\n\t\t}\r\n\r\n\t\t// Check the validity of the numeric value and units.\r\n\t\treturn ( ! isNaN( numericValue ) && -1 !== validUnits.indexOf( unit ) );\r\n\t}\r\n} );\r\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","value","this","kirkiNotifications","container","on","jQuery","val","setting","set","acceptUnitless","params","choices","accept_unitless","id","bind","code","validateCssValue","isNaN","notifications","remove","add","Notification","type","message","dimensionkirkiL10n","numericValue","unit","multiples","multiplesValid","indexOf","parseFloat","replace","split","length","forEach","item"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-dimension/src/Control/Dimension.php b/functions/kirki/kirki-packages/control-dimension/src/Control/Dimension.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-dimension/src/Control/Dimension.php
rename to functions/kirki/kirki-packages/control-dimension/src/Control/Dimension.php
index 2e1a214..602721a 100644
--- a/functions/kirki/packages/kirki-framework/control-dimension/src/Control/Dimension.php
+++ b/functions/kirki/kirki-packages/control-dimension/src/Control/Dimension.php
@@ -3,7 +3,7 @@
* Customizer Control: dimension
*
* @package kirki-framework/control-dimension
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-dimension/src/Field/Dimension.php b/functions/kirki/kirki-packages/control-dimension/src/Field/Dimension.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-dimension/src/Field/Dimension.php
rename to functions/kirki/kirki-packages/control-dimension/src/Field/Dimension.php
index bb5cdc8..8171cf8 100644
--- a/functions/kirki/packages/kirki-framework/control-dimension/src/Field/Dimension.php
+++ b/functions/kirki/kirki-packages/control-dimension/src/Field/Dimension.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package Kirki
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-dimension/src/control.js b/functions/kirki/kirki-packages/control-dimension/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-dimension/src/control.js
rename to functions/kirki/kirki-packages/control-dimension/src/control.js
diff --git a/functions/kirki/kirki-packages/control-dimension/src/control.scss b/functions/kirki/kirki-packages/control-dimension/src/control.scss
new file mode 100644
index 0000000..a7dc20b
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-dimension/src/control.scss
@@ -0,0 +1,19 @@
+.customize-control-kirki-dimension {
+ .has-label-bottom {
+ .kirki-control-label {
+ margin-top: 3px;
+ text-align: center;
+ font-size: 11px;
+ color: #333;
+ font-weight: 500;
+ }
+
+ .kirki-control-input {
+ background-color: #f7f7f7;
+
+ &:focus {
+ background-color: #fff;
+ }
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-generic/LICENSE b/functions/kirki/kirki-packages/control-editor/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-generic/LICENSE
rename to functions/kirki/kirki-packages/control-editor/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-editor/dist/control.css b/functions/kirki/kirki-packages/control-editor/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-editor/dist/control.css
rename to functions/kirki/kirki-packages/control-editor/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-editor/dist/control.css.map b/functions/kirki/kirki-packages/control-editor/dist/control.css.map
new file mode 100644
index 0000000..b2d2d47
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-editor/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AACE,yCACE,UCAJ","sources":["src/control.scss","%3Cinput%20css%20nydtJI%3E"],"sourcesContent":[".customize-control-kirki-editor {\n textarea {\n width: 100%;\n }\n}\n",".customize-control-kirki-editor textarea {\n width: 100%;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-editor/dist/control.js b/functions/kirki/kirki-packages/control-editor/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-editor/dist/control.js
rename to functions/kirki/kirki-packages/control-editor/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-editor/dist/control.js.map b/functions/kirki/kirki-packages/control-editor/dist/control.js.map
new file mode 100644
index 0000000..05d84ef
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-editor/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAGAA,GAAGC,UAAUC,mBAAkB,gBAAqBF,GAAGC,UAAUE,oBAAoBC,OAAM,CAC1FC,iBAAgB,SAAYC,GAC3B,IAAIC,EAASC,EAAQC,EAAIC,EAEzBH,GADAD,EAAUA,GAAOK,MACCC,UAAUC,KAAI,YAChCJ,EAAE,gBAA0BH,EAAQG,GAAGK,QAAO,IAAK,IAAOA,QAAO,IAAK,IAEtEJ,EAAa,CACZK,QAAO,CACNC,SAAS,GAEVC,WAAW,EACXC,cAAc,GAIVlB,GAAGQ,QAAUR,GAAGQ,OAAOW,YAC3BnB,GAAGQ,OAAOW,WAAYV,EAAIW,OAAOhB,OAAM,GAAMM,EAAeJ,EAAQe,OAAOC,WAG5Ed,EAASe,QAAQC,IAAKf,KAGrBD,EAAOiB,SAASC,KAAG,SAAYC,GAC9B,IAAIC,EAEJD,EAAGE,OACHD,EAAUpB,EAAOsB,aACjBvB,EAAQwB,IAAKH,GAAUI,QAAO,UAC9BhC,GAAGC,UAAUgC,SAAU3B,EAAQG,IAAKyB,IAAKN","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\n/* global tinyMCE */\nwp.customize.controlConstructor[ 'kirki-editor' ] = wp.customize.kirkiDynamicControl.extend( {\n\tinitKirkiControl: function( control ) {\n\t\tvar element, editor, id, defaultParams;\n\t\tcontrol = control || this;\n\t\telement = control.container.find( 'textarea' );\n\t\tid = 'kirki-editor-' + control.id.replace( '[', '' ).replace( ']', '' );\n\n\t\tdefaultParams = {\n\t\t\ttinymce: {\n\t\t\t\twpautop: true\n\t\t\t},\n\t\t\tquicktags: true,\n\t\t\tmediaButtons: true\n\t\t};\n\n\t\t// Overwrite the default paramaters if choices is defined.\n\t\tif ( wp.editor && wp.editor.initialize ) {\n\t\t\twp.editor.initialize( id, jQuery.extend( {}, defaultParams, control.params.choices ) );\n\t\t}\n\n\t\teditor = tinyMCE.get( id );\n\n\t\tif ( editor ) {\n\t\t\teditor.onChange.add( function( ed ) {\n\t\t\t\tvar content;\n\n\t\t\t\ted.save();\n\t\t\t\tcontent = editor.getContent();\n\t\t\t\telement.val( content ).trigger( 'change' );\n\t\t\t\twp.customize.instance( control.id ).set( content );\n\t\t\t} );\n\t\t}\n\t}\n} );\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","element","editor","id","defaultParams","this","container","find","replace","tinymce","wpautop","quicktags","mediaButtons","initialize","jQuery","params","choices","tinyMCE","get","onChange","add","ed","content","save","getContent","val","trigger","instance","set"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-editor/src/Control/Editor.php b/functions/kirki/kirki-packages/control-editor/src/Control/Editor.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-editor/src/Control/Editor.php
rename to functions/kirki/kirki-packages/control-editor/src/Control/Editor.php
index b437d05..a121e0b 100644
--- a/functions/kirki/packages/kirki-framework/control-editor/src/Control/Editor.php
+++ b/functions/kirki/kirki-packages/control-editor/src/Control/Editor.php
@@ -5,7 +5,7 @@
* Creates a TinyMCE textarea.
*
* @package kirki-framework/control-editor
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-editor/src/Field/Editor.php b/functions/kirki/kirki-packages/control-editor/src/Field/Editor.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-editor/src/Field/Editor.php
rename to functions/kirki/kirki-packages/control-editor/src/Field/Editor.php
index cfe179a..bd56b01 100644
--- a/functions/kirki/packages/kirki-framework/control-editor/src/Field/Editor.php
+++ b/functions/kirki/kirki-packages/control-editor/src/Field/Editor.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-editor
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-editor/src/control.js b/functions/kirki/kirki-packages/control-editor/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-editor/src/control.js
rename to functions/kirki/kirki-packages/control-editor/src/control.js
diff --git a/functions/kirki/kirki-packages/control-editor/src/control.scss b/functions/kirki/kirki-packages/control-editor/src/control.scss
new file mode 100644
index 0000000..5029dd8
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-editor/src/control.scss
@@ -0,0 +1,5 @@
+.customize-control-kirki-editor {
+ textarea {
+ width: 100%;
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-image/LICENSE b/functions/kirki/kirki-packages/control-generic/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-image/LICENSE
rename to functions/kirki/kirki-packages/control-generic/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-generic/dist/control.js b/functions/kirki/kirki-packages/control-generic/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-generic/dist/control.js
rename to functions/kirki/kirki-packages/control-generic/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-generic/dist/control.js.map b/functions/kirki/kirki-packages/control-generic/dist/control.js.map
new file mode 100644
index 0000000..026b422
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-generic/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAAAA,GAAGC,UAAUC,mBAAmB,iBAC9BF,GAAGC,UAAUE,oBAAoBC,OAAO,CACtCC,iBAAkB,SAAUC,GAE1B,IAAMC,GADND,EAAUA,GAAWE,MACED,OAEvBD,EAAQG,UAAUC,KAAK,mBAAmBC,GAAG,gBAAgB,WAC3D,IAAMC,EAAQC,OAAOL,MAAMM,MAGzB,kBAAoBP,EAAOQ,MAC3BR,EAAOS,SACP,WAAaT,EAAOS,QAAQD,OAE5BR,EAAOS,QAAQC,IAAMC,WAAWX,EAAOS,QAAQC,KAC/CV,EAAOS,QAAQG,IAAMD,WAAWX,EAAOS,QAAQG,KAE3CP,EAAQL,EAAOS,QAAQC,IACzBL,EAAQL,EAAOS,QAAQC,IACdL,EAAQL,EAAOS,QAAQG,MAChCP,EAAQL,EAAOS,QAAQG,MAI3Bb,EAAQc,QAAQC,IAAIT","sources":["packages/kirki-framework/control-generic/src/control.js"],"sourcesContent":["wp.customize.controlConstructor[\"kirki-generic\"] =\n wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function (control) {\n control = control || this;\n const params = control.params;\n\n control.container.find(\"input, textarea\").on(\"change input\", function () {\n const value = jQuery(this).val();\n\n if (\n \"kirki-generic\" === params.type &&\n params.choices &&\n \"number\" === params.choices.type\n ) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n\n if (value < params.choices.min) {\n value = params.choices.min;\n } else if (value > params.choices.max) {\n value = params.choices.max;\n }\n }\n\n control.setting.set(value);\n });\n },\n });\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","params","this","container","find","on","value","jQuery","val","type","choices","min","parseFloat","max","setting","set"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/Control/Generic.php b/functions/kirki/kirki-packages/control-generic/src/Control/Generic.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-generic/src/Control/Generic.php
rename to functions/kirki/kirki-packages/control-generic/src/Control/Generic.php
index 492bd20..779cb03 100644
--- a/functions/kirki/packages/kirki-framework/control-generic/src/Control/Generic.php
+++ b/functions/kirki/kirki-packages/control-generic/src/Control/Generic.php
@@ -3,7 +3,7 @@
* Customizer Control: kirki-generic.
*
* @package kirki-framework/control-generic
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Generic.php b/functions/kirki/kirki-packages/control-generic/src/Field/Generic.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-generic/src/Field/Generic.php
rename to functions/kirki/kirki-packages/control-generic/src/Field/Generic.php
index 9e3be65..c01471e 100644
--- a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Generic.php
+++ b/functions/kirki/kirki-packages/control-generic/src/Field/Generic.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-generic
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Number.php b/functions/kirki/kirki-packages/control-generic/src/Field/Number.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-generic/src/Field/Number.php
rename to functions/kirki/kirki-packages/control-generic/src/Field/Number.php
index b16d4fa..39bf7f8 100644
--- a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Number.php
+++ b/functions/kirki/kirki-packages/control-generic/src/Field/Number.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-generic
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Text.php b/functions/kirki/kirki-packages/control-generic/src/Field/Text.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-generic/src/Field/Text.php
rename to functions/kirki/kirki-packages/control-generic/src/Field/Text.php
index ab047bd..93f79df 100644
--- a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Text.php
+++ b/functions/kirki/kirki-packages/control-generic/src/Field/Text.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-generic
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Textarea.php b/functions/kirki/kirki-packages/control-generic/src/Field/Textarea.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/control-generic/src/Field/Textarea.php
rename to functions/kirki/kirki-packages/control-generic/src/Field/Textarea.php
index 0982c7f..5796fea 100644
--- a/functions/kirki/packages/kirki-framework/control-generic/src/Field/Textarea.php
+++ b/functions/kirki/kirki-packages/control-generic/src/Field/Textarea.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-generic
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/Field/URL.php b/functions/kirki/kirki-packages/control-generic/src/Field/URL.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/control-generic/src/Field/URL.php
rename to functions/kirki/kirki-packages/control-generic/src/Field/URL.php
index 249ce58..edc3345 100644
--- a/functions/kirki/packages/kirki-framework/control-generic/src/Field/URL.php
+++ b/functions/kirki/kirki-packages/control-generic/src/Field/URL.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-generic
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-generic/src/control.js b/functions/kirki/kirki-packages/control-generic/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-generic/src/control.js
rename to functions/kirki/kirki-packages/control-generic/src/control.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/util.js b/functions/kirki/kirki-packages/control-generic/src/control.scss
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/util.js
rename to functions/kirki/kirki-packages/control-generic/src/control.scss
diff --git a/functions/kirki/packages/kirki-framework/control-multicheck/LICENSE b/functions/kirki/kirki-packages/control-image/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-multicheck/LICENSE
rename to functions/kirki/kirki-packages/control-image/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-image/dist/control.js b/functions/kirki/kirki-packages/control-image/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-image/dist/control.js
rename to functions/kirki/kirki-packages/control-image/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-image/dist/control.js.map b/functions/kirki/kirki-packages/control-image/d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AcC,SAAU,eAAgBC,KAAMjC,GAAGwD,KAAKC,GAAI,oBAAqB,UAEnF9C,EAAa0C,SACjB1C,EAAauB,OACRwB,OAAQ9C,GAAgB+C,SAAU,WACtC/C,EAAc0C,WAKjBhD,EAAQe,UAAUe,GAAI,QAAS,yBAAyB,SAAUC,GACjEA,EAAEkB,iBAEFjD,EAAQQ,QAAQmC,IAAK3C,EAAQY,OAAOiB,SAEpC1B,EAAgBH,EAAQe,UAAUC,KAAM,4BACxCX,EAAgBL,EAAQe,UAAUC,KAAM,+BACxCV,EAAgBN,EAAQe,UAAUC,KAAM,yBAEnCb,EAAQ4C,QACZ5C,EAAQsB,cAAcC,SAAU,6BAA8BC,KAAM,aAAe3B,EAAQY,OAAOiB,QAAU,eAExGxB,EAAa0C,SACjB1C,EAAa2C,OACb1C,EAAcsB","sources":["src/control.js"],"sourcesContent":["wp.customize.controlConstructor['kirki-image'] = wp.customize.kirkiDynamicControl.extend( {\n\n\tinitKirkiControl: function( control ) {\n\t\tvar value, saveAs, preview, previewImage, removeButton, defaultButton;\n\t\tcontrol = control || this;\n\t\tvalue = control.setting._value;\n\t\tsaveAs = ( ! _.isUndefined( control.params.choices ) && ! _.isUndefined( control.params.choices.save_as ) ) ? control.params.choices.save_as : 'url';\n\t\tpreview = control.container.find( '.placeholder, .thumbnail' );\n\t\tpreviewImage = ( 'array' === saveAs ) ? value.url : value;\n\t\tremoveButton = control.container.find( '.image-upload-remove-button' );\n\t\tdefaultButton = control.container.find( '.image-default-button' );\n\n\t\t// Make sure value is properly formatted.\n\t\tvalue = ( 'array' === saveAs && _.isString( value ) ) ? { url: value } : value;\n\n\t\t// Tweaks for save_as = id.\n\t\tif ( ( 'id' === saveAs || 'ID' === saveAs ) && '' !== value ) {\n\t\t\twp.media.attachment( value ).fetch().then( function() {\n\t\t\t\tsetTimeout( function() {\n\t\t\t\t\tvar url = wp.media.attachment( value ).get( 'url' );\n\t\t\t\t\tpreview.removeClass().addClass( 'thumbnail thumbnail-image' ).html( ' ' );\n\t\t\t\t}, 700 );\n\t\t\t} );\n\t\t}\n\n\t\t// If value is not empty, hide the \"default\" button.\n\t\tif ( ( 'url' === saveAs && '' !== value ) || ( 'array' === saveAs && ! _.isUndefined( value.url ) && '' !== value.url ) ) {\n\t\t\tcontrol.container.find( 'image-default-button' ).hide();\n\t\t}\n\n\t\t// If value is empty, hide the \"remove\" button.\n\t\tif ( ( 'url' === saveAs && '' === value ) || ( 'array' === saveAs && ( _.isUndefined( value.url ) || '' === value.url ) ) ) {\n\t\t\tremoveButton.hide();\n\t\t}\n\n\t\t// If value is default, hide the default button.\n\t\tif ( value === control.params.default ) {\n\t\t\tcontrol.container.find( 'image-default-button' ).hide();\n\t\t}\n\n\t\tif ( '' !== previewImage ) {\n\t\t\tpreview.removeClass().addClass( 'thumbnail thumbnail-image' ).html( ' ' );\n\t\t}\n\n\t\tcontrol.container.on( 'click', '.image-upload-button', function( e ) {\n\t\t\tvar image = wp.media( { multiple: false } ).open().on( 'select', function() {\n\n\t\t\t\t// This will return the selected image from the Media Uploader, the result is an object.\n\t\t\t\tvar uploadedImage = image.state().get( 'selection' ).first(),\n\t\t\t\t\tjsonImg = uploadedImage.toJSON();\n\n\t\t\t\tpreviewImage = jsonImg.url;\n\n\t\t\t\tif ( ! _.isUndefined( jsonImg.sizes ) ) {\n\t\t\t\t\tpreviewImage = jsonImg.sizes.full.url;\n\t\t\t\t\tif ( ! _.isUndefined( jsonImg.sizes.medium ) ) {\n\t\t\t\t\t\tpreviewImage = jsonImg.sizes.medium.url;\n\t\t\t\t\t} else if ( ! _.isUndefined( jsonImg.sizes.thumbnail ) ) {\n\t\t\t\t\t\tpreviewImage = jsonImg.sizes.thumbnail.url;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( 'array' === saveAs ) {\n\t\t\t\t\tcontrol.setting.set( {\n\t\t\t\t\t\tid: jsonImg.id,\n\t\t\t\t\t\turl: !_.isUndefined(jsonImg.sizes)\n\t\t\t\t\t\t\t? jsonImg.sizes.full.url\n\t\t\t\t\t\t\t: jsonImg.url,\n\t\t\t\t\t\twidth: jsonImg.width,\n\t\t\t\t\t\theight: jsonImg.height,\n\t\t\t\t\t} );\n\t\t\t\t} else if ( 'id' === saveAs ) {\n\t\t\t\t\tcontrol.setting.set( jsonImg.id );\n\t\t\t\t} else {\n\t\t\t\t\tcontrol.setting.set( ( ! _.isUndefined( jsonImg.sizes ) ) ? jsonImg.sizes.full.url : jsonImg.url );\n\t\t\t\t}\n\n\t\t\t\tif ( preview.length ) {\n\t\t\t\t\tpreview.removeClass().addClass( 'thumbnail thumbnail-image' ).html( ' ' );\n\t\t\t\t}\n\t\t\t\tif ( removeButton.length ) {\n\t\t\t\t\tremoveButton.show();\n\t\t\t\t\tdefaultButton.hide();\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\te.preventDefault();\n\t\t} );\n\n\t\tcontrol.container.on( 'click', '.image-upload-remove-button', function( e ) {\n\t\t\te.preventDefault();\n\n\t\t\tcontrol.setting.set( '' );\n\n\t\t\tpreview = control.container.find( '.placeholder, .thumbnail' );\n\t\t\tremoveButton = control.container.find( '.image-upload-remove-button' );\n\t\t\tdefaultButton = control.container.find( '.image-default-button' );\n\n\t\t\tif ( preview.length ) {\n\t\t\t\tpreview.removeClass().addClass( 'placeholder' ).html( wp.i18n.__( 'No image selected', 'kirki' ) );\n\t\t\t}\n\t\t\tif ( removeButton.length ) {\n\t\t\t\tremoveButton.hide();\n\t\t\t\tif ( jQuery( defaultButton ).hasClass( 'button' ) ) {\n\t\t\t\t\tdefaultButton.show();\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\n\t\tcontrol.container.on( 'click', '.image-default-button', function( e ) {\n\t\t\te.preventDefault();\n\n\t\t\tcontrol.setting.set( control.params.default );\n\n\t\t\tpreview = control.container.find( '.placeholder, .thumbnail' );\n\t\t\tremoveButton = control.container.find( '.image-upload-remove-button' );\n\t\t\tdefaultButton = control.container.find( '.image-default-button' );\n\n\t\t\tif ( preview.length ) {\n\t\t\t\tpreview.removeClass().addClass( 'thumbnail thumbnail-image' ).html( ' ' );\n\t\t\t}\n\t\t\tif ( removeButton.length ) {\n\t\t\t\tremoveButton.show();\n\t\t\t\tdefaultButton.hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","value","saveAs","preview","previewImage","removeButton","defaultButton","this","setting","_value","_","isUndefined","params","choices","save_as","container","find","url","isString","media","attachment","fetch","then","setTimeout","get","removeClass","addClass","html","hide","default","on","e","image","multiple","open","jsonImg","state","first","toJSON","sizes","full","medium","thumbnail","set","id","width","height","length","show","preventDefault","i18n","__","jQuery","hasClass"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-image/src/Control/Image.php b/functions/kirki/kirki-packages/control-image/src/Control/Image.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-image/src/Control/Image.php
rename to functions/kirki/kirki-packages/control-image/src/Control/Image.php
index 2504e86..c8c607e 100644
--- a/functions/kirki/packages/kirki-framework/control-image/src/Control/Image.php
+++ b/functions/kirki/kirki-packages/control-image/src/Control/Image.php
@@ -3,7 +3,7 @@
* Customizer Control: image.
*
* @package kirki-framework/control-image
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-image/src/Field/CSS/Image.php b/functions/kirki/kirki-packages/control-image/src/Field/CSS/Image.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-image/src/Field/CSS/Image.php
rename to functions/kirki/kirki-packages/control-image/src/Field/CSS/Image.php
index 0f129cd..a8c4ed5 100644
--- a/functions/kirki/packages/kirki-framework/control-image/src/Field/CSS/Image.php
+++ b/functions/kirki/kirki-packages/control-image/src/Field/CSS/Image.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.10
*/
diff --git a/functions/kirki/packages/kirki-framework/control-image/src/Field/Image.php b/functions/kirki/kirki-packages/control-image/src/Field/Image.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-image/src/Field/Image.php
rename to functions/kirki/kirki-packages/control-image/src/Field/Image.php
index 112c320..c12ec0f 100644
--- a/functions/kirki/packages/kirki-framework/control-image/src/Field/Image.php
+++ b/functions/kirki/kirki-packages/control-image/src/Field/Image.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-image
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-image/src/control.js b/functions/kirki/kirki-packages/control-image/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-image/src/control.js
rename to functions/kirki/kirki-packages/control-image/src/control.js
diff --git a/functions/kirki/packages/kirki-framework/control-palette/LICENSE b/functions/kirki/kirki-packages/control-multicheck/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-palette/LICENSE
rename to functions/kirki/kirki-packages/control-multicheck/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-multicheck/dist/control.css b/functions/kirki/kirki-packages/control-multicheck/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-multicheck/dist/control.css
rename to functions/kirki/kirki-packages/control-multicheck/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-multicheck/dist/control.css.map b/functions/kirki/kirki-packages/control-multicheck/dist/control.css.map
new file mode 100644
index 0000000..2c392d0
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-multicheck/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"","sources":[],"sourcesContent":[],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-multicheck/dist/control.js b/functions/kirki/kirki-packages/control-multicheck/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-multicheck/dist/control.js
rename to functions/kirki/kirki-packages/control-multicheck/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-multicheck/dist/control.js.map b/functions/kirki/kirki-packages/control-multicheck/dist/control.js.map
new file mode 100644
index 0000000..e1c334b
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-multicheck/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAEAA,GAAGC,UAAUC,mBAAkB,oBAAuBF,GAAGC,UAAUE,oBAAoBC,OAAM,CAE5FC,iBAAgB,SAAYC,IAC3BA,EAAUA,GAAOC,MAGTC,UAAUC,GAAE,SAAU,SAAS,WACtC,IAAIC,EAAK,GACRC,EAAI,EAGLC,OAAOC,KAAMP,EAAQQ,OAAOC,SAAO,SAAYC,GACzCV,EAAQE,UAAUS,KAAI,gBAAoBD,EAAG,MAAUE,GAAE,aAC7DZ,EAAQE,UAAUS,KAAI,gBAAoBD,EAAG,MAAUG,SAASC,SAAQ,WACxEV,EAAOC,GAAMK,EACbL,KAEAL,EAAQE,UAAUS,KAAI,gBAAoBD,EAAG,MAAUG,SAASE,YAAW,cAK7Ef,EAAQgB,QAAQC,IAAKb","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-multicheck'] = wp.customize.kirkiDynamicControl.extend( {\n\n\tinitKirkiControl: function( control ) {\n\t\tcontrol = control || this;\n\n\t\t// Save the value\n\t\tcontrol.container.on( 'change', 'input', function() {\n\t\t\tvar value = [],\n\t\t\t\ti = 0;\n\n\t\t\t// Build the value as an object using the sub-values from individual checkboxes.\n\t\t\tjQuery.each( control.params.choices, function( key ) {\n\t\t\t\tif ( control.container.find( 'input[value=\"' + key + '\"]' ).is( ':checked' ) ) {\n\t\t\t\t\tcontrol.container.find( 'input[value=\"' + key + '\"]' ).parent().addClass( 'checked' );\n\t\t\t\t\tvalue[ i ] = key;\n\t\t\t\t\ti++;\n\t\t\t\t} else {\n\t\t\t\t\tcontrol.container.find( 'input[value=\"' + key + '\"]' ).parent().removeClass( 'checked' );\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// Update the value in the customizer.\n\t\t\tcontrol.setting.set( value );\n\t\t} );\n\t}\n} );\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","this","container","on","value","i","jQuery","each","params","choices","key","find","is","parent","addClass","removeClass","setting","set"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-multicheck/src/Control/Multicheck.php b/functions/kirki/kirki-packages/control-multicheck/src/Control/Multicheck.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-multicheck/src/Control/Multicheck.php
rename to functions/kirki/kirki-packages/control-multicheck/src/Control/Multicheck.php
index a2d832e..852fd73 100644
--- a/functions/kirki/packages/kirki-framework/control-multicheck/src/Control/Multicheck.php
+++ b/functions/kirki/kirki-packages/control-multicheck/src/Control/Multicheck.php
@@ -6,7 +6,7 @@
* Props @ Justin Tadlock: http://justintadlock.com/archives/2015/05/26/multiple-checkbox-customizer-control
*
* @package kirki-framework/control-multicheck
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-multicheck/src/Field/Multicheck.php b/functions/kirki/kirki-packages/control-multicheck/src/Field/Multicheck.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-multicheck/src/Field/Multicheck.php
rename to functions/kirki/kirki-packages/control-multicheck/src/Field/Multicheck.php
index cbd5e8c..e8dcb31 100644
--- a/functions/kirki/packages/kirki-framework/control-multicheck/src/Field/Multicheck.php
+++ b/functions/kirki/kirki-packages/control-multicheck/src/Field/Multicheck.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-multicheck
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-multicheck/src/control.js b/functions/kirki/kirki-packages/control-multicheck/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-multicheck/src/control.js
rename to functions/kirki/kirki-packages/control-multicheck/src/control.js
diff --git a/functions/kirki/kirki-packages/control-multicheck/src/control.scss b/functions/kirki/kirki-packages/control-multicheck/src/control.scss
new file mode 100644
index 0000000..e69de29
diff --git a/functions/kirki/packages/kirki-framework/control-radio/LICENSE b/functions/kirki/kirki-packages/control-palette/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-radio/LICENSE
rename to functions/kirki/kirki-packages/control-palette/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-palette/dist/control.css b/functions/kirki/kirki-packages/control-palette/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-palette/dist/control.css
rename to functions/kirki/kirki-packages/control-palette/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-palette/dist/control.css.map b/functions/kirki/kirki-packages/control-palette/dist/control.css.map
new file mode 100644
index 0000000..786b63f
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-palette/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAAA,iCACE,iBCCF,CDCE,mDACE,YCCJ,CDEM,iEACE,+BCAR,CDKE,uCACE,eAAA,CAGA,mCAAA,CADA,gCAAA,CAGA,YAAA,CADA,iBAAA,CAHA,SCCJ,CDKI,4CAYE,sCAAA,CADA,mCAAA,CANA,iBAAA,CAHA,WAAA,CACA,WAAA,CACA,gBAAA,CAHA,cAAA,CAKA,sCAAA,CACA,mCAAA,CACA,kCAAA,CACA,iCAAA,CACA,8BCDN,CDKM,wDACE,oCCHR,CDMM,uDACE,qCCJR,CDOM,kDAME,UAAA,CAJA,WAAA,CAEA,cAAA,CACA,gBAAA,CAFA,cAAA,CAFA,YCAR","sources":["packages/kirki-framework/control-palette/src/control.scss","%3Cinput%20css%20BymBeB%3E"],"sourcesContent":[".customize-control-kirki-palette {\r\n position: relative;\r\n\r\n input[type=\"radio\"] {\r\n display: none;\r\n\r\n &:checked {\r\n + label {\r\n border: 3px solid rgba(0,0,0,.4);\r\n }\r\n }\r\n }\r\n\r\n label {\r\n background: none;\r\n padding: 0;\r\n border-top: 3px solid transparent;\r\n border-bottom: 3px solid transparent;\r\n margin-bottom: 5px;\r\n display: flex;\r\n\r\n span {\r\n padding: 10px 0;\r\n flex-grow: 1;\r\n font-size: 0;\r\n line-height: 10px;\r\n color: rgba(0,0,0,0);\r\n -webkit-transition: all 200ms ease-in-out;\r\n -moz-transition: all 200ms ease-in-out;\r\n -ms-transition: all 200ms ease-in-out;\r\n -o-transition: all 200ms ease-in-out;\r\n transition: all 200ms ease-in-out;\r\n border-top: 1px solid rgba(0,0,0,.1);\r\n border-bottom: 1px solid rgba(0,0,0,.1);\r\n\r\n &:first-child {\r\n border-left: 1px solid rgba(0,0,0,.1);\r\n }\r\n\r\n &:last-child {\r\n border-right: 1px solid rgba(0,0,0,.1);\r\n }\r\n\r\n &:hover {\r\n padding: 10px;\r\n flex-grow: 3;\r\n min-width: 60px;\r\n font-size: 10px;\r\n line-height: 10px;\r\n color: #000;\r\n }\r\n }\r\n }\r\n}\r\n",".customize-control-kirki-palette {\n position: relative;\n}\n.customize-control-kirki-palette input[type=radio] {\n display: none;\n}\n.customize-control-kirki-palette input[type=radio]:checked + label {\n border: 3px solid rgba(0, 0, 0, 0.4);\n}\n.customize-control-kirki-palette label {\n background: none;\n padding: 0;\n border-top: 3px solid transparent;\n border-bottom: 3px solid transparent;\n margin-bottom: 5px;\n display: flex;\n}\n.customize-control-kirki-palette label span {\n padding: 10px 0;\n flex-grow: 1;\n font-size: 0;\n line-height: 10px;\n color: rgba(0, 0, 0, 0);\n -webkit-transition: all 200ms ease-in-out;\n -moz-transition: all 200ms ease-in-out;\n -ms-transition: all 200ms ease-in-out;\n -o-transition: all 200ms ease-in-out;\n transition: all 200ms ease-in-out;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n.customize-control-kirki-palette label span:first-child {\n border-left: 1px solid rgba(0, 0, 0, 0.1);\n}\n.customize-control-kirki-palette label span:last-child {\n border-right: 1px solid rgba(0, 0, 0, 0.1);\n}\n.customize-control-kirki-palette label span:hover {\n padding: 10px;\n flex-grow: 3;\n min-width: 60px;\n font-size: 10px;\n line-height: 10px;\n color: #000;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-palette/dist/control.js b/functions/kirki/kirki-packages/control-palette/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-palette/dist/control.js
rename to functions/kirki/kirki-packages/control-palette/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-palette/dist/control.js.map b/functions/kirki/kirki-packages/control-palette/dist/control.js.map
new file mode 100644
index 0000000..d4520fa
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-palette/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAEAA,GAAGC,UAAUC,mBAAmB,iBAAmBF,GAAGC,UAAUE,oBAAoBC,OAAQ","sources":["packages/kirki-framework/control-palette/src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-palette'] = wp.customize.kirkiDynamicControl.extend( {} );\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-palette/src/Control/Palette.php b/functions/kirki/kirki-packages/control-palette/src/Control/Palette.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-palette/src/Control/Palette.php
rename to functions/kirki/kirki-packages/control-palette/src/Control/Palette.php
index c2c2b6f..f1758df 100644
--- a/functions/kirki/packages/kirki-framework/control-palette/src/Control/Palette.php
+++ b/functions/kirki/kirki-packages/control-palette/src/Control/Palette.php
@@ -3,7 +3,7 @@
* Customizer Control: palette.
*
* @package kirki-framework/control-palette
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-palette/src/Field/Palette.php b/functions/kirki/kirki-packages/control-palette/src/Field/Palette.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/control-palette/src/Field/Palette.php
rename to functions/kirki/kirki-packages/control-palette/src/Field/Palette.php
index 1d5a0e0..04e046e 100644
--- a/functions/kirki/packages/kirki-framework/control-palette/src/Field/Palette.php
+++ b/functions/kirki/kirki-packages/control-palette/src/Field/Palette.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-palette
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-palette/src/control.js b/functions/kirki/kirki-packages/control-palette/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-palette/src/control.js
rename to functions/kirki/kirki-packages/control-palette/src/control.js
diff --git a/functions/kirki/kirki-packages/control-palette/src/control.scss b/functions/kirki/kirki-packages/control-palette/src/control.scss
new file mode 100644
index 0000000..c79f0a1
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-palette/src/control.scss
@@ -0,0 +1,54 @@
+.customize-control-kirki-palette {
+ position: relative;
+
+ input[type="radio"] {
+ display: none;
+
+ &:checked {
+ + label {
+ border: 3px solid rgba(0,0,0,.4);
+ }
+ }
+ }
+
+ label {
+ background: none;
+ padding: 0;
+ border-top: 3px solid transparent;
+ border-bottom: 3px solid transparent;
+ margin-bottom: 5px;
+ display: flex;
+
+ span {
+ padding: 10px 0;
+ flex-grow: 1;
+ font-size: 0;
+ line-height: 10px;
+ color: rgba(0,0,0,0);
+ -webkit-transition: all 200ms ease-in-out;
+ -moz-transition: all 200ms ease-in-out;
+ -ms-transition: all 200ms ease-in-out;
+ -o-transition: all 200ms ease-in-out;
+ transition: all 200ms ease-in-out;
+ border-top: 1px solid rgba(0,0,0,.1);
+ border-bottom: 1px solid rgba(0,0,0,.1);
+
+ &:first-child {
+ border-left: 1px solid rgba(0,0,0,.1);
+ }
+
+ &:last-child {
+ border-right: 1px solid rgba(0,0,0,.1);
+ }
+
+ &:hover {
+ padding: 10px;
+ flex-grow: 3;
+ min-width: 60px;
+ font-size: 10px;
+ line-height: 10px;
+ color: #000;
+ }
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/LICENSE b/functions/kirki/kirki-packages/control-radio/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-repeater/LICENSE
rename to functions/kirki/kirki-packages/control-radio/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-radio/dist/control.css b/functions/kirki/kirki-packages/control-radio/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-radio/dist/control.css
rename to functions/kirki/kirki-packages/control-radio/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-radio/dist/control.css.map b/functions/kirki/kirki-packages/control-radio/dist/control.css.map
new file mode 100644
index 0000000..f8b1302
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-radio/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AACE,qCACE,iBAAA,CACA,iBCAJ,CDGE,yDAEE,qBAAA,CADA,aAAA,CAEA,cAAA,CACA,iBCDJ,CCRE,oDACE,YAAA,CACA,cDWJ,CCTI,kEACE,yBAAA,CACA,yBAAA,CACA,aAAA,CAIA,WAAA,CAHA,QAAA,CAEA,gBAAA,CADA,iBDaN,CCNQ,wFACE,wBAAA,CACA,wBDQV,CCFE,mEACE,oBAAA,CACA,4BDIJ,CE9BE,4CACE,YAAA,CACA,cFiCJ,CE9BE,2CAEE,oBAAA,CADA,iBFiCJ,CE7BE,wDAOE,6BAAA,CANA,YAAA,CAOA,eAAA,CAFA,WAAA,CAFA,MAAA,CAFA,iBAAA,CACA,KAAA,CAEA,UFkCJ,CE5BE,+DAEE,WAAA,CAEA,YAAA,CADA,iBAAA,CAEA,qBAAA,CAJA,UFkCJ,CE3BE,8DACE,aF6BJ,CE1BE,2CACE,YF4BJ,CEzBE,+CACE,4BF2BJ,CExBE,6DAGE,wBAAA,CAFA,8CAAA,CACA,sCF2BJ,CEvBE,kEAGE,QAAA,CAIA,WAAA,CAHA,MAAA,CAHA,iBAAA,CAIA,OAAA,CAHA,KAAA,CAIA,UF0BJ","sources":["src/scss/_radio.scss","%3Cinput%20css%20w1CpKN%3E","src/scss/_radio-buttonset.scss","src/scss/_radio-image.scss"],"sourcesContent":[".customize-control-kirki-radio {\n label {\n display: list-item;\n margin-bottom: 7px;\n }\n\n label .option-description {\n display: block;\n color: rgba(0, 0, 0, 0.35);\n font-size: 0.9em;\n padding-left: 25px;\n }\n}\n",".customize-control-kirki-radio label {\n display: list-item;\n margin-bottom: 7px;\n}\n.customize-control-kirki-radio label .option-description {\n display: block;\n color: rgba(0, 0, 0, 0.35);\n font-size: 0.9em;\n padding-left: 25px;\n}\n\n.customize-control-kirki-radio-buttonset .buttonset {\n display: flex;\n flex-wrap: wrap;\n}\n.customize-control-kirki-radio-buttonset .buttonset .switch-label {\n background: rgba(0, 0, 0, 0.1);\n border: 1px rgba(0, 0, 0, 0.1);\n color: #555d66;\n margin: 0;\n text-align: center;\n padding: 0.5em 1em;\n flex-grow: 1;\n}\n.customize-control-kirki-radio-buttonset .buttonset .switch-input:checked + .switch-label {\n background-color: #00a0d2;\n color: rgba(255, 255, 255, 0.8);\n}\n.customize-control-kirki-radio-buttonset .screen-reader-text:focus {\n clip-path: inset(50%);\n -webkit-clip-path: inset(50%);\n}\n\n.customize-control-kirki-radio-image > .image {\n display: flex;\n flex-wrap: wrap;\n}\n.customize-control-kirki-radio-image label {\n position: relative;\n display: inline-block;\n}\n.customize-control-kirki-radio-image label .image-label {\n display: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(255, 255, 255, 0.7);\n font-weight: 700;\n}\n.customize-control-kirki-radio-image label .image-label .inner {\n width: 100%;\n height: 100%;\n text-align: center;\n padding: 0.5em;\n vertical-align: middle;\n}\n.customize-control-kirki-radio-image label:hover .image-label {\n display: block;\n}\n.customize-control-kirki-radio-image input {\n display: none;\n}\n.customize-control-kirki-radio-image input img {\n border: 1px solid transparent;\n}\n.customize-control-kirki-radio-image input:checked + label img {\n -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n border: 1px solid #3498db;\n}\n.customize-control-kirki-radio-image input + label .image-clickable {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n}\n/*# sourceMappingURL=control.css.map */\n",".customize-control-kirki-radio-buttonset {\n .buttonset {\n display: flex;\n flex-wrap: wrap;\n\n .switch-label {\n background: rgba(0,0,0,.1);\n border: 1px rgba(0,0,0,.1);\n color: #555d66;\n margin: 0;\n text-align: center;\n padding: 0.5em 1em;\n flex-grow: 1;\n }\n\n .switch-input {\n &:checked {\n + .switch-label {\n background-color: #00a0d2;\n color: rgba(255, 255, 255, 0.8);\n }\n }\n }\n }\n\n .screen-reader-text:focus {\n clip-path: inset(50%);\n -webkit-clip-path: inset(50%);\n }\n}\n",".customize-control-kirki-radio-image {\n > .image {\n display: flex;\n flex-wrap: wrap;\n }\n\n label {\n position: relative;\n display: inline-block;\n }\n\n label .image-label {\n display: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(255, 255, 255, 0.7);\n font-weight: 700;\n }\n\n label .image-label .inner {\n width: 100%;\n height: 100%;\n text-align: center;\n padding: 0.5em;\n vertical-align: middle;\n }\n\n label:hover .image-label {\n display: block;\n }\n\n input {\n display: none;\n }\n\n input img {\n border: 1px solid transparent;\n }\n\n input:checked + label img {\n -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n border: 1px solid #3498db;\n }\n\n input + label .image-clickable {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n }\n}\n\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-radio/dist/control.js b/functions/kirki/kirki-packages/control-radio/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-radio/dist/control.js
rename to functions/kirki/kirki-packages/control-radio/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-radio/dist/control.js.map b/functions/kirki/kirki-packages/control-radio/dist/control.js.map
new file mode 100644
index 0000000..4bbf17c
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-radio/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAEAA,GAAGC,UAAUC,mBAAkB,eAA4BF,GAAGC,UAAUE,oBAAoBC,OAAM,IAClGJ,GAAGC,UAAUC,mBAAkB,yBAA4BF,GAAGC,UAAUE,oBAAoBC,OAAM,IAClGJ,GAAGC,UAAUC,mBAAkB,qBAA4BF,GAAGC,UAAUE,oBAAoBC,OAAM","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-radio'] = wp.customize.kirkiDynamicControl.extend( {} );\nwp.customize.controlConstructor['kirki-radio-buttonset'] = wp.customize.kirkiDynamicControl.extend( {} );\nwp.customize.controlConstructor['kirki-radio-image'] = wp.customize.kirkiDynamicControl.extend( {} );\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio.php b/functions/kirki/kirki-packages/control-radio/src/Control/Radio.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio.php
rename to functions/kirki/kirki-packages/control-radio/src/Control/Radio.php
index 7faeaf1..fc96730 100644
--- a/functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio.php
+++ b/functions/kirki/kirki-packages/control-radio/src/Control/Radio.php
@@ -3,7 +3,7 @@
* Customizer Control: kirki-radio.
*
* @package kirki-framework/control-radio
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio_Buttonset.php b/functions/kirki/kirki-packages/control-radio/src/Control/Radio_Buttonset.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio_Buttonset.php
rename to functions/kirki/kirki-packages/control-radio/src/Control/Radio_Buttonset.php
index 7417a3d..8e65304 100644
--- a/functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio_Buttonset.php
+++ b/functions/kirki/kirki-packages/control-radio/src/Control/Radio_Buttonset.php
@@ -3,7 +3,7 @@
* Customizer Control: radio-buttonset.
*
* @package kirki-framework/control-radio
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio_Image.php b/functions/kirki/kirki-packages/control-radio/src/Control/Radio_Image.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio_Image.php
rename to functions/kirki/kirki-packages/control-radio/src/Control/Radio_Image.php
index 9290736..3838033 100644
--- a/functions/kirki/packages/kirki-framework/control-radio/src/Control/Radio_Image.php
+++ b/functions/kirki/kirki-packages/control-radio/src/Control/Radio_Image.php
@@ -3,7 +3,7 @@
* Customizer Control: radio-image.
*
* @package kirki-framework/control-radio
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio.php b/functions/kirki/kirki-packages/control-radio/src/Field/Radio.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio.php
rename to functions/kirki/kirki-packages/control-radio/src/Field/Radio.php
index 018ca4e..ecf0fb7 100644
--- a/functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio.php
+++ b/functions/kirki/kirki-packages/control-radio/src/Field/Radio.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-radio
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio_Buttonset.php b/functions/kirki/kirki-packages/control-radio/src/Field/Radio_Buttonset.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio_Buttonset.php
rename to functions/kirki/kirki-packages/control-radio/src/Field/Radio_Buttonset.php
index a0bcdde..5309a14 100644
--- a/functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio_Buttonset.php
+++ b/functions/kirki/kirki-packages/control-radio/src/Field/Radio_Buttonset.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-radio
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio_Image.php b/functions/kirki/kirki-packages/control-radio/src/Field/Radio_Image.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio_Image.php
rename to functions/kirki/kirki-packages/control-radio/src/Field/Radio_Image.php
index 47f477f..e3eaf11 100644
--- a/functions/kirki/packages/kirki-framework/control-radio/src/Field/Radio_Image.php
+++ b/functions/kirki/kirki-packages/control-radio/src/Field/Radio_Image.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-radio
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-radio/src/control.js b/functions/kirki/kirki-packages/control-radio/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-radio/src/control.js
rename to functions/kirki/kirki-packages/control-radio/src/control.js
diff --git a/functions/kirki/kirki-packages/control-radio/src/control.scss b/functions/kirki/kirki-packages/control-radio/src/control.scss
new file mode 100644
index 0000000..4917a93
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-radio/src/control.scss
@@ -0,0 +1,3 @@
+@import "./scss/radio";
+@import "./scss/radio-buttonset";
+@import "./scss/radio-image";
diff --git a/functions/kirki/kirki-packages/control-radio/src/scss/_radio-buttonset.scss b/functions/kirki/kirki-packages/control-radio/src/scss/_radio-buttonset.scss
new file mode 100644
index 0000000..42386f5
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-radio/src/scss/_radio-buttonset.scss
@@ -0,0 +1,30 @@
+.customize-control-kirki-radio-buttonset {
+ .buttonset {
+ display: flex;
+ flex-wrap: wrap;
+
+ .switch-label {
+ background: rgba(0,0,0,.1);
+ border: 1px rgba(0,0,0,.1);
+ color: #555d66;
+ margin: 0;
+ text-align: center;
+ padding: 0.5em 1em;
+ flex-grow: 1;
+ }
+
+ .switch-input {
+ &:checked {
+ + .switch-label {
+ background-color: #00a0d2;
+ color: rgba(255, 255, 255, 0.8);
+ }
+ }
+ }
+ }
+
+ .screen-reader-text:focus {
+ clip-path: inset(50%);
+ -webkit-clip-path: inset(50%);
+ }
+}
diff --git a/functions/kirki/kirki-packages/control-radio/src/scss/_radio-image.scss b/functions/kirki/kirki-packages/control-radio/src/scss/_radio-image.scss
new file mode 100644
index 0000000..33ccb16
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-radio/src/scss/_radio-image.scss
@@ -0,0 +1,59 @@
+.customize-control-kirki-radio-image {
+ > .image {
+ display: flex;
+ flex-wrap: wrap;
+ }
+
+ label {
+ position: relative;
+ display: inline-block;
+ }
+
+ label .image-label {
+ display: none;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: rgba(255, 255, 255, 0.7);
+ font-weight: 700;
+ }
+
+ label .image-label .inner {
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ padding: 0.5em;
+ vertical-align: middle;
+ }
+
+ label:hover .image-label {
+ display: block;
+ }
+
+ input {
+ display: none;
+ }
+
+ input img {
+ border: 1px solid transparent;
+ }
+
+ input:checked + label img {
+ -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
+ box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
+ border: 1px solid #3498db;
+ }
+
+ input + label .image-clickable {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ width: 100%;
+ height: 100%;
+ }
+}
+
diff --git a/functions/kirki/kirki-packages/control-radio/src/scss/_radio.scss b/functions/kirki/kirki-packages/control-radio/src/scss/_radio.scss
new file mode 100644
index 0000000..6df3cdc
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-radio/src/scss/_radio.scss
@@ -0,0 +1,13 @@
+.customize-control-kirki-radio {
+ label {
+ display: list-item;
+ margin-bottom: 7px;
+ }
+
+ label .option-description {
+ display: block;
+ color: rgba(0, 0, 0, 0.35);
+ font-size: 0.9em;
+ padding-left: 25px;
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/data-option/LICENSE b/functions/kirki/kirki-packages/control-react-colorful/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/data-option/LICENSE
rename to functions/kirki/kirki-packages/control-react-colorful/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/dist/control.css b/functions/kirki/kirki-packages/control-react-colorful/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/dist/control.css
rename to functions/kirki/kirki-packages/control-react-colorful/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-react-colorful/dist/control.css.map b/functions/kirki/kirki-packages/control-react-colorful/dist/control.css.map
new file mode 100644
index 0000000..a517c41
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"ACEC,oGAKA,oFAIA,gGAKA,qHAMA,kHAOC,kFAIA,+FAIA,sGAIA,+FAMD,mOAaA,iMAWC,yIASD,sSAiBC,mJAQD,qFAKA,8FAIA,gGAIA,wFAKA,mFAIA,gIAOA,yOAcA,kMAOA,gPAeA,oMAQA,mIAQA,yMAaA,wGAKA,sJAQA,wIAQA,0PAeA,kJAKA,yJAKA,mRAeC,gNAUA,sGAMA,8HAMD,wJAMC,kIAOA,wHAIA","sources":["control.css","src/control.scss"],"sourcesContent":[".customize-control-kirki-react-colorful .kirki-control-form {\n box-sizing: border-box;\n position: relative;\n}\n\n.customize-control-kirki-react-colorful .kirki-control-form * {\n box-sizing: border-box;\n}\n\n.customize-control-kirki-react-colorful .kirki-control-cols {\n align-items: flex-start;\n display: flex;\n}\n\n.customize-control-kirki-react-colorful .kirki-control-left-col {\n width: 90%;\n width: calc(100% - 35px);\n padding-right: 30px;\n}\n\n.customize-control-kirki-react-colorful .kirki-control-right-col {\n width: 35px;\n justify-content: flex-end;\n display: flex;\n}\n\n.customize-control-kirki-react-colorful .use-hue-mode .react-colorful {\n height: auto;\n}\n\n.customize-control-kirki-react-colorful .use-hue-mode .react-colorful__saturation {\n display: none;\n}\n\n.customize-control-kirki-react-colorful .use-hue-mode .react-colorful__last-control {\n border-radius: 4px;\n}\n\n.customize-control-kirki-react-colorful .use-hue-mode input.kirki-color-input {\n padding-left: 8px;\n}\n\n.customize-control-kirki-react-colorful .kirki-trigger-circle-wrapper {\n width: 33px;\n height: 33px;\n border: 1px solid #ccc;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n padding: 3px;\n display: flex;\n position: relative;\n top: -3px;\n}\n\n.customize-control-kirki-react-colorful .kirki-trigger-circle {\n width: 25px;\n height: 25px;\n cursor: pointer;\n background-size: 10px;\n border: none;\n border-radius: 50%;\n padding: 0;\n display: block;\n position: relative;\n}\n\n.customize-control-kirki-react-colorful .kirki-trigger-circle .kirki-color-preview {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.customize-control-kirki-react-colorful .colorPickerContainer {\n width: 100%;\n z-index: 9999;\n opacity: 0;\n visibility: hidden;\n background-color: #fff;\n border-radius: 6px;\n margin-top: 5px;\n padding: 15px;\n transition: opacity .2s, visibility .2s;\n position: absolute;\n top: 35px;\n right: 0;\n box-shadow: 0 12px 15px rgba(0, 0, 0, .09);\n}\n\n.customize-control-kirki-react-colorful .colorPickerContainer.is-open {\n opacity: 1;\n visibility: visible;\n transition: opacity .2s 10ms, visibility .2s 10ms;\n}\n\n.customize-control-kirki-react-colorful .react-colorful {\n width: 100%;\n border-radius: 4px;\n}\n\n.customize-control-kirki-react-colorful .react-colorful__saturation {\n border-radius: 4px 4px 0 0;\n}\n\n.customize-control-kirki-react-colorful .react-colorful__last-control {\n border-radius: 0 0 4px 4px;\n}\n\n.customize-control-kirki-react-colorful .react-colorful__pointer {\n width: 20px;\n height: 20px;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-input-wrapper {\n margin-top: 15px;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-input-control {\n width: 100%;\n align-items: center;\n display: flex;\n position: relative;\n}\n\n.customize-control-kirki-react-colorful input.kirki-color-input {\n width: 100%;\n height: 30px;\n color: #333;\n z-index: 1;\n border: 1px solid #ccc;\n border-radius: 4px;\n padding-left: 32px;\n padding-right: 8px;\n line-height: 30px;\n display: block;\n position: relative;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-input:focus, .customize-control-kirki-react-colorful .kirki-color-input:active {\n border-color: #2271b1;\n outline: none;\n box-shadow: 0 0 0 1px #2271b1;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-preview-wrapper {\n width: 22px;\n height: 22px;\n z-index: 2;\n background-repeat: repeat;\n background-size: 8px;\n border: 2px solid #fff;\n border-radius: 50%;\n position: absolute;\n left: 6px;\n box-shadow: 0 0 0 1px #ddd;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-preview, .customize-control-kirki-react-colorful .kirki-control-reset {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0);\n padding: 0;\n position: absolute;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-preview {\n width: 100%;\n height: 100%;\n border-width: 0;\n border-radius: 50%;\n display: block;\n}\n\n.customize-control-kirki-react-colorful .kirki-control-reset {\n width: 17px;\n height: 17px;\n z-index: 3;\n border-width: 0;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n display: flex;\n top: 4px;\n right: 35px;\n}\n\n.customize-control-kirki-react-colorful .kirki-control-reset:hover i {\n color: red;\n transform: rotate(-45deg);\n}\n\n.customize-control-kirki-react-colorful .kirki-control-reset i {\n width: auto;\n height: auto;\n font-size: 12px;\n transition: transform .2s;\n transform: rotate(45deg);\n}\n\n.customize-control-kirki-react-colorful .kirki-color-swatches {\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n margin-bottom: 12px;\n display: flex;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-swatch {\n width: 25px;\n height: 25px;\n cursor: pointer;\n border: 2px solid #fff;\n border-radius: 50%;\n padding: 0;\n transition: transform .2s;\n display: block;\n position: relative;\n transform: scale(1);\n box-shadow: 0 0 0 1px #ddd;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-swatch:active, .customize-control-kirki-react-colorful .kirki-color-swatch:focus {\n outline: none;\n}\n\n.customize-control-kirki-react-colorful .kirki-color-swatch:hover, .customize-control-kirki-react-colorful .kirki-color-swatch:focus {\n transform: scale(1.1);\n}\n\n.customize-control-kirki-react-colorful .kirki-label-tooltip {\n width: auto;\n width: max-content;\n max-width: 100px;\n color: #fff;\n opacity: 0;\n visibility: hidden;\n background-color: rgba(0, 0, 0, .7);\n border-radius: 4px;\n padding: 7px 10px 3px;\n transition: all .2s;\n position: absolute;\n bottom: 45px;\n left: -8px;\n}\n\n.customize-control-kirki-react-colorful .kirki-label-tooltip:before {\n content: \"\";\n border: 7px solid rgba(0, 0, 0, 0);\n border-top: 8px solid rgba(0, 0, 0, .7);\n border-bottom-width: 0;\n position: absolute;\n bottom: -8px;\n left: 19px;\n}\n\n.customize-control-kirki-react-colorful .kirki-label-tooltip .customize-control-title {\n line-height: 1.2;\n}\n\n.customize-control-kirki-react-colorful .kirki-trigger-circle-wrapper:hover ~ .kirki-label-tooltip {\n opacity: 1;\n visibility: visible;\n}\n\n.customize-control-kirki-react-colorful[data-kirki-parent-control-type=\"kirki-multicolor\"] {\n width: 35px;\n margin-bottom: 20px;\n margin-right: 8px;\n padding-right: 0;\n}\n\n.customize-control-kirki-react-colorful[data-kirki-parent-control-type=\"kirki-multicolor\"] .kirki-control-reset {\n top: -19px;\n right: 8px;\n}\n\n.customize-control-kirki-react-colorful[data-kirki-parent-control-type=\"kirki-typography\"] .colorPickerContainer {\n top: 55px;\n}\n\n.customize-control-kirki-react-colorful[data-kirki-parent-control-type=\"kirki-typography\"] .kirki-control-reset {\n top: 30px;\n left: 35px;\n right: auto;\n}\n\n/*# sourceMappingURL=control.css.map */\n","// React colorful control.\n.customize-control-kirki-react-colorful {\n\t.kirki-control-form {\n\t\tposition: relative;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.kirki-control-form * {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.kirki-control-cols {\n\t\tdisplay: flex;\n\t\talign-items: flex-start;\n\t}\n\n\t.kirki-control-left-col {\n\t\tpadding-right: 30px;\n\t\twidth: 90%;\n\t\twidth: calc(100% - 35px);\n\t}\n\n\t.kirki-control-right-col {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-end;\n\t\twidth: 35px;\n\t}\n\n\t.use-hue-mode {\n\t\t.react-colorful {\n\t\t\theight: auto;\n\t\t}\n\n\t\t.react-colorful__saturation {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t.react-colorful__last-control {\n\t\t\tborder-radius: 4px;\n\t\t}\n\n\t\tinput.kirki-color-input {\n\t\t\tpadding-left: 8px;\n\t\t\tpadding-left: 8px;\n\t\t}\n\t}\n\n\t.kirki-trigger-circle-wrapper {\n\t\tposition: relative;\n\t\ttop: -3px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tpadding: 3px;\n\t\twidth: 33px;\n\t\theight: 33px;\n\t\tborder-radius: 50%;\n\t\tborder: 1px solid #ccc;\n\t}\n\n\t.kirki-trigger-circle {\n\t\tposition: relative;\n\t\tpadding: 0;\n\t\tdisplay: block;\n\t\twidth: 25px;\n\t\theight: 25px;\n\t\tbackground-size: 10px;\n\t\tborder: none;\n\t\tborder-radius: 50%;\n\t\tcursor: pointer;\n\n\t\t.kirki-color-preview {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n\n\t.colorPickerContainer {\n\t\tposition: absolute;\n\t\ttop: 35px;\n\t\tright: 0;\n\t\tmargin-top: 5px;\n\t\twidth: 100%;\n\t\tpadding: 15px;\n\t\tbackground-color: #fff;\n\t\tborder-radius: 6px;\n\t\tbox-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;\n\t\tz-index: 9999;\n\n\t\topacity: 0;\n\t\tvisibility: hidden;\n\t\ttransition: all 0.2s;\n\t\ttransition-property: opacity, visibility; // Yes, only opacity and visibility please.\n\n\t\t&.is-open {\n\t\t\topacity: 1;\n\t\t\tvisibility: visible;\n\t\t\ttransition: all 0.2s ease 10ms; // When we open the picker popup, the top offset is changed, so we need to wait a bit.\n\t\t\ttransition-property: opacity, visibility; // Yes, only opacity and visibility please.\n\t\t}\n\t}\n\n\t.react-colorful {\n\t\twidth: 100%;\n\t\tborder-radius: 4px;\n\t}\n\n\t.react-colorful__saturation {\n\t\tborder-radius: 4px 4px 0 0;\n\t}\n\n\t.react-colorful__last-control {\n\t\tborder-radius: 0 0 4px 4px;\n\t}\n\n\t.react-colorful__pointer {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t}\n\n\t.kirki-color-input-wrapper {\n\t\tmargin-top: 15px;\n\t}\n\n\t.kirki-color-input-control {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t}\n\n\tinput.kirki-color-input {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\tpadding-left: 32px;\n\t\tpadding-right: 8px;\n\t\twidth: 100%;\n\t\theight: 30px;\n\t\tline-height: 30px;\n\t\tcolor: #333;\n\t\tborder: 1px solid #ccc;\n\t\tborder-radius: 4px;\n\t\tz-index: 1;\n\t}\n\n\t.kirki-color-input:focus,\n\t.kirki-color-input:active {\n\t\tbox-shadow: 0 0 0 1px #2271b1;\n\t\toutline: none;\n\t\tborder-color: #2271b1;\n\t}\n\n\t.kirki-color-preview-wrapper {\n\t\tposition: absolute;\n\t\tleft: 6px;\n\t\twidth: 22px;\n\t\theight: 22px;\n\t\tbackground-repeat: repeat;\n\t\tbackground-size: 8px;\n\t\tborder-radius: 50%;\n\t\tborder: 1px solid #ddd;\n\t\tborder: 2px solid #fff;\n\t\t-webkit-box-shadow: 0px 0px 0px 1px #ddd;\n\t\tbox-shadow: 0px 0px 0px 1px #ddd;\n\t\tz-index: 2;\n\t}\n\n\t.kirki-color-preview,\n\t.kirki-control-reset {\n\t\tposition: absolute;\n\t\tpadding: 0;\n\t\tbackground-color: transparent;\n\t\tcursor: pointer;\n\t}\n\n\t.kirki-color-preview {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tborder-width: 0;\n\t}\n\n\t.kirki-control-reset {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\ttop: 4px;\n\t\tright: 35px;\n\t\twidth: 17px;\n\t\theight: 17px;\n\t\tborder-radius: 50%;\n\t\tborder-width: 0;\n\t\tz-index: 3;\n\t}\n\n\t.kirki-control-reset:hover i {\n\t\tcolor: #f00;\n\t\ttransform: rotate(-45deg);\n\t}\n\n\t.kirki-control-reset i {\n\t\tfont-size: 12px;\n\t\twidth: auto;\n\t\theight: auto;\n\t\ttransform: rotate(45deg);\n\t\ttransition: transform 0.2s;\n\t}\n\n\t.kirki-color-swatches {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 4px;\n\t\talign-items: center;\n\t\tmargin-bottom: 12px;\n\t}\n\n\t.kirki-color-swatch {\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tpadding: 0;\n\t\twidth: 25px;\n\t\theight: 25px;\n\t\tborder-radius: 50%;\n\t\tborder: 2px solid #fff;\n\t\tcursor: pointer;\n\t\ttransform: scale(1, 1);\n\t\ttransition: transform 0.2s;\n\t\t-webkit-box-shadow: 0px 0px 0px 1px #ddd;\n\t\tbox-shadow: 0px 0px 0px 1px #ddd;\n\t}\n\n\t.kirki-color-swatch:active,\n\t.kirki-color-swatch:focus {\n\t\toutline: none;\n\t}\n\n\t.kirki-color-swatch:hover,\n\t.kirki-color-swatch:focus {\n\t\ttransform: scale(1.1, 1.1);\n\t}\n\n\t.kirki-label-tooltip {\n\t\tposition: absolute;\n\t\tbottom: 45px;\n\t\tleft: -8px;\n\t\tpadding: 7px 10px 3px; // The 4px of bottom side is handled by label / description's margin-bottom.\n\t\twidth: auto; // just for fallback for max-content.\n\t\twidth: max-content;\n\t\tmax-width: 100px;\n\t\tcolor: #fff;\n\t\tbackground-color: rgba(0, 0, 0, 0.7);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\tvisibility: hidden;\n\t\ttransition: all 0.2s;\n\n\t\t&::before {\n\t\t\tcontent: \"\";\n\t\t\tposition: absolute;\n\t\t\tbottom: -8px;\n\t\t\tleft: 19px;\n\t\t\tborder-width: 8px 7px 0 7px;\n\t\t\tborder-style: solid;\n\t\t\tborder-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;\n\t\t}\n\n\t\t.customize-control-title {\n\t\t\tline-height: 1.2;\n\t\t}\n\t}\n\n\t.kirki-trigger-circle-wrapper {\n\t\t&:hover ~ .kirki-label-tooltip {\n\t\t\topacity: 1;\n\t\t\tvisibility: visible;\n\t\t}\n\t}\n\n\t&[data-kirki-parent-control-type=\"kirki-multicolor\"] {\n\t\tmargin-right: 8px;\n\t\tmargin-bottom: 20px;\n\t\tpadding-right: 0;\n\t\twidth: 35px;\n\n\t\t.kirki-control-reset {\n\t\t\ttop: -19px;\n\t\t\tright: 8px;\n\t\t}\n\t}\n\n\t&[data-kirki-parent-control-type=\"kirki-typography\"] {\n\t\t.colorPickerContainer {\n\t\t\ttop: 55px;\n\t\t}\n\n\t\t.kirki-control-reset {\n\t\t\ttop: 30px;\n\t\t\tright: auto;\n\t\t\tleft: 35px;\n\t\t}\n\t}\n}\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/dist/control.js b/functions/kirki/kirki-packages/control-react-colorful/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/dist/control.js
rename to functions/kirki/kirki-packages/control-react-colorful/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-react-colorful/dist/control.js.map b/functions/kirki/kirki-packages/control-react-colorful/dist/control.js.map
new file mode 100644
index 0000000..3d7a135
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"ukBAAA,IAAAA,EAAAC,EAAA,sBAIIC,EAA4CC,IAAYA,EA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/lB,KAGwB7Q,UAAU,IAG9C20B,GAAGgB,UAAUC,QAAQ/4B,UAAUq5B,SAClCvB,GAAGgB,UAAUC,QAAQ/4B,UAAUq5B,QAAQn5B,KAPxB8T,SCnIlB8jB,GAAGgB,UAAUkB,mBAAmB,wBAA0BC","sources":["node_modules/lodash/isBuffer.js","node_modules/lodash/_root.js","node_modules/lodash/_freeGlobal.js","node_modules/lodash/stubFalse.js","node_modules/lodash/_nodeUtil.js","node_modules/lodash/_cloneBuffer.js","node_modules/@swc/helpers/src/_array_like_to_array.js","node_modules/@swc/helpers/src/_sliced_to_array.js","node_modules/@swc/helpers/src/_array_with_holes.js","node_modules/@swc/helpers/src/_iterable_to_array.js","node_modules/@swc/helpers/src/_unsupported_iterable_to_array.js","node_modules/@swc/helpers/src/_non_iterable_rest.js","node_modules/@swc/helpers/src/_type_of.js","ReactDOM.js","node_modules/react-colorful/src/hooks/useEventCallback.ts","React.js","node_modules/react-colorful/src/utils/clamp.ts","node_modules/react-colorful/src/components/common/Interactive.tsx","node_modules/react-colorful/src/utils/format.ts","node_modules/react-colorful/src/components/common/Pointer.tsx","node_modules/react-colorful/src/utils/round.ts","node_modules/react-colorful/src/utils/convert.ts","node_modules/react-colorful/src/components/common/Hue.tsx","node_modules/react-colorful/src/components/common/Saturation.tsx","node_modules/react-colorful/src/utils/compare.ts","node_modules/react-colorful/src/hooks/useColorManipulation.ts","node_modules/react-colorful/src/utils/nonce.ts","node_modules/react-colorful/src/hooks/useIsomorphicLayoutEffect.ts","node_modules/react-colorful/src/hooks/useStyleSheet.ts","node_modules/react-colorful/src/components/common/ColorPicker.tsx","node_modules/react-colorful/src/components/HexColorPicker.tsx","node_modules/react-colorful/src/components/common/Alpha.tsx","node_modules/react-colorful/src/components/common/AlphaColorPicker.tsx","node_modules/react-colorful/src/components/HslaColorPicker.tsx","node_modules/react-colorful/src/components/HslaStringColorPicker.tsx","node_modules/react-colorful/src/components/HslColorPicker.tsx","node_modules/react-colorful/src/components/HslStringColorPicker.tsx","node_modules/react-colorful/src/components/HsvaColorPicker.tsx","node_modules/react-colorful/src/components/HsvaStringColorPicker.tsx","node_modules/react-colorful/src/components/HsvColorPicker.tsx","node_modules/react-colorful/src/components/HsvStringColorPicker.tsx","node_modules/react-colorful/src/components/RgbaColorPicker.tsx","node_modules/react-colorful/src/components/RgbaStringColorPicker.tsx","node_modules/react-colorful/src/components/RgbColorPicker.tsx","node_modules/react-colorful/src/components/RgbStringColorPicker.tsx","node_modules/reactcss/lib/index.js","node_modules/reactcss/lib/flattenNames.js","node_modules/lodash/_Symbol.js","node_modules/lodash/_getRawTag.js","node_modules/lodash/_objectToString.js","node_modules/lodash/_baseGetTag.js","node_modules/lodash/isArray.js","node_modules/lodash/isObjectLike.js","node_modules/lodash/isString.js","node_modules/lodash/_baseFor.js","node_modules/lodash/_createBaseFor.js","node_modules/lodash/_baseTimes.js","node_modules/lodash/_baseIsArguments.js","node_modules/lodash/isArguments.js","node_modules/lodash/_isIndex.js","node_modules/lodash/isLength.js","node_modules/lodash/_baseIsTypedArray.js","node_modules/lodash/_baseUnary.js","node_modules/lodash/isTypedArray.js","node_modules/lodash/_arrayLikeKeys.js","node_modules/lodash/_isPrototype.js","node_modules/lodash/_nativeKeys.js","node_modules/lodash/_overArg.js","node_modules/lodash/_baseKeys.js","node_modules/lodash/isObject.js","node_modules/lodash/isFunction.js","node_modules/lodash/isArrayLike.js","node_modules/lodash/keys.js","node_modules/lodash/_baseForOwn.js","node_modules/lodash/identity.js","node_modules/lodash/_castFunction.js","node_modules/lodash/forOwn.js","node_modules/lodash/_getPrototype.js","node_modules/lodash/isPlainObject.js","node_modules/lodash/_arrayMap.js","node_modules/lodash/_listCacheClear.js","node_modules/lodash/eq.js","node_modules/lodash/_assocIndexOf.js","node_modules/lodash/_listCacheDelete.js","node_modules/lodash/_listCacheGet.js","node_modules/lodash/_listCacheHas.js","node_modules/lodash/_ListCache.js","node_modules/lodash/_listCacheSet.js","node_modules/lodash/_stackClear.js","node_modules/lodash/_stackDelete.js","node_modules/lodash/_stackGet.js","node_modules/lodash/_stackHas.js","node_modules/lodash/_isMasked.js","node_modules/lodash/_coreJsData.js","node_modules/lodash/_toSource.js","node_modules/lodash/_baseIsNative.js","node_modules/lodash/_getValue.js","node_modules/lodash/_getNative.js","node_modules/lodash/_Map.js","node_modules/lodash/_nativeCreate.js","node_modules/lodash/_hashClear.js","node_modules/lodash/_hashDelete.js","node_modules/lodash/_hashGet.js","node_modules/lodash/_hashHas.js","node_modules/lodash/_Hash.js","node_modules/lodash/_hashSet.js","node_modules/lodash/_mapCacheClear.js","node_modules/lodash/_isKeyable.js","node_modules/lodash/_getMapData.js","node_modules/lodash/_mapCacheDelete.js","node_modules/lodash/_mapCacheGet.js","node_modules/lodash/_mapCacheHas.js","node_modules/lodash/_MapCache.js","node_modules/lodash/_mapCacheSet.js","node_modules/lodash/_Stack.js","node_modules/lodash/_stackSet.js","node_modules/lodash/_setCacheAdd.js","node_modules/lodash/_SetCache.js","node_modules/lodash/_setCacheHas.js","node_modules/lodash/_arraySome.js","node_modules/lodash/_cacheHas.js","node_modules/lodash/_equalArrays.js","node_modules/lodash/_Uint8Array.js","node_modules/lodash/_mapToArray.js","node_modules/lodash/_setToArray.js","node_modules/lodash/_equalByTag.js","node_modules/lodash/_arrayPush.js","node_modules/lodash/_baseGetAllKeys.js","node_modules/lodash/_arrayFilter.js","node_modules/lodash/stubArray.js","node_modules/lodash/_getSymbols.js","node_modules/lodash/_getAllKeys.js","node_modules/lodash/_equalObjects.js","node_modules/lodash/_DataView.js","node_modules/lodash/_Promise.js","node_modules/lodash/_Set.js","node_modules/lodash/_WeakMap.js","node_modules/lodash/_getTag.js","node_modules/lodash/_baseIsEqualDeep.js","node_modules/lodash/_baseIsEqual.js","node_modules/lodash/_baseIsMatch.js","node_modules/lodash/_isStrictComparable.js","node_modules/lodash/_getMatchData.js","node_modules/lodash/_matchesStrictComparable.js","node_modules/lodash/_baseMatches.js","node_modules/lodash/isSymbol.js","node_modules/lodash/_isKey.js","node_modules/lodash/memoize.js","node_modules/lodash/_stringToPath.js","node_modules/lodash/_memoizeCapped.js","node_modules/lodash/_baseToString.js","node_modules/lodash/toString.js","node_modules/lodash/_castPath.js","node_modules/lodash/_toKey.js","node_modules/lodash/_baseGet.js","node_modules/lodash/get.js","node_modules/lodash/_baseHasIn.js","node_modules/lodash/_hasPath.js","node_modules/lodash/hasIn.js","node_modules/lodash/_baseMatchesProperty.js","node_modules/lodash/_baseProperty.js","node_modules/lodash/_basePropertyDeep.js","node_modules/lodash/property.js","node_modules/lodash/_baseIteratee.js","node_modules/lodash/_baseEach.js","node_modules/lodash/_createBaseEach.js","node_modules/lodash/_baseMap.js","node_modules/lodash/map.js","node_modules/reactcss/lib/mergeClasses.js","node_modules/lodash/_arrayEach.js","node_modules/lodash/_defineProperty.js","node_modules/lodash/_baseAssignValue.js","node_modules/lodash/_assignValue.js","node_modules/lodash/_copyObject.js","node_modules/lodash/_baseAssign.js","node_modules/lodash/_nativeKeysIn.js","node_modules/lodash/_baseKeysIn.js","node_modules/lodash/keysIn.js","node_modules/lodash/_baseAssignIn.js","node_modules/lodash/_copyArray.js","node_modules/lodash/_copySymbols.js","node_modules/lodash/_getSymbolsIn.js","node_modules/lodash/_copySymbolsIn.js","node_modules/lodash/_getAllKeysIn.js","node_modules/lodash/_initCloneArray.js","node_modules/lodash/_cloneArrayBuffer.js","node_modules/lodash/_cloneDataView.js","node_modules/lodash/_cloneRegExp.js","node_modules/lodash/_cloneSymbol.js","node_modules/lodash/_cloneTypedArray.js","node_modules/lodash/_initCloneByTag.js","node_modules/lodash/_baseCreate.js","node_modules/lodash/_initCloneObject.js","node_modules/lodash/_baseIsMap.js","node_modules/lodash/isMap.js","node_modules/lodash/_baseIsSet.js","node_modules/lodash/isSet.js","node_modules/lodash/_baseClone.js","node_modules/lodash/cloneDeep.js","node_modules/reactcss/lib/autoprefix.js","node_modules/reactcss/lib/components/hover.js","node_modules/reactcss/lib/components/active.js","node_modules/reactcss/lib/loop.js","src/js/components/KirkiReactColorfulInput.js","src/js/components/KirkiReactColorfulSwatches.js","node_modules/colord/index.mjs","src/js/utils/convertColorForPicker.js","src/js/utils/convertColorForCustomizer.js","src/js/utils/convertColorForInput.js","src/js/hooks/useClickOutside.js","src/js/hooks/useFocusOutside.js","src/js/hooks/useWindowResize.js","src/js/components/KirkiReactColorfulCircle.js","src/KirkiReactColorfulForm.js","src/KirkiReactColorfulControl.js","src/control.js"],"sourcesContent":["var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\n","import arrayWithHoles from './_array_with_holes';\nimport iterableToArrayLimit from './_iterable_to_array';\nimport nonIterableRest from './_non_iterable_rest';\nimport unsupportedIterableToArray from './_unsupported_iterable_to_array';\n\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n","import _arrayLikeToArray from './_array_like_to_array';\n\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n return _arrayLikeToArray(o, minLen);\n}\n","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n","export default function _typeof(obj) {\n \"@swc/helpers - typeof\";\n return obj && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\n","module.exports=ReactDOM;","import { useRef } from \"react\";\n\n// Saves incoming handler to the ref in order to avoid \"useCallback hell\"\nexport function useEventCallback(handler?: (value: T) => void): (value: T) => void {\n const callbackRef = useRef(handler);\n const fn = useRef((value: T) => {\n callbackRef.current && callbackRef.current(value);\n });\n callbackRef.current = handler;\n\n return fn.current;\n}\n","module.exports=React;","// Clamps a value between an upper and lower bound.\n// We use ternary operators because it makes the minified code\n// 2 times shorter then `Math.min(Math.max(a,b),c)`\nexport const clamp = (number: number, min = 0, max = 1): number => {\n return number > max ? max : number < min ? min : number;\n};\n","import React, { useRef, useMemo, useEffect } from \"react\";\n\nimport { useEventCallback } from \"../../hooks/useEventCallback\";\nimport { clamp } from \"../../utils/clamp\";\n\nexport interface Interaction {\n left: number;\n top: number;\n}\n\n// Check if an event was triggered by touch\nconst isTouch = (event: MouseEvent | TouchEvent): event is TouchEvent => \"touches\" in event;\n\n// Finds a proper touch point by its identifier\nconst getTouchPoint = (touches: TouchList, touchId: null | number): Touch => {\n for (let i = 0; i < touches.length; i++) {\n if (touches[i].identifier === touchId) return touches[i];\n }\n return touches[0];\n};\n\n// Finds the proper window object to fix iframe embedding issues\nconst getParentWindow = (node?: HTMLDivElement | null): Window => {\n return (node && node.ownerDocument.defaultView) || self;\n};\n\n// Returns a relative position of the pointer inside the node's bounding box\nconst getRelativePosition = (\n node: HTMLDivElement,\n event: MouseEvent | TouchEvent,\n touchId: null | number\n): Interaction => {\n const rect = node.getBoundingClientRect();\n\n // Get user's pointer position from `touches` array if it's a `TouchEvent`\n const pointer = isTouch(event) ? getTouchPoint(event.touches, touchId) : (event as MouseEvent);\n\n return {\n left: clamp((pointer.pageX - (rect.left + getParentWindow(node).pageXOffset)) / rect.width),\n top: clamp((pointer.pageY - (rect.top + getParentWindow(node).pageYOffset)) / rect.height),\n };\n};\n\n// Browsers introduced an intervention, making touch events passive by default.\n// This workaround removes `preventDefault` call from the touch handlers.\n// https://github.com/facebook/react/issues/19651\nconst preventDefaultMove = (event: MouseEvent | TouchEvent): void => {\n !isTouch(event) && event.preventDefault();\n};\n\n// Prevent mobile browsers from handling mouse events (conflicting with touch ones).\n// If we detected a touch interaction before, we prefer reacting to touch events only.\nconst isInvalid = (event: MouseEvent | TouchEvent, hasTouch: boolean): boolean => {\n return hasTouch && !isTouch(event);\n};\n\ninterface Props {\n onMove: (interaction: Interaction) => void;\n onKey: (offset: Interaction) => void;\n children: React.ReactNode;\n}\n\nconst InteractiveBase = ({ onMove, onKey, ...rest }: Props) => {\n const container = useRef(null);\n const onMoveCallback = useEventCallback(onMove);\n const onKeyCallback = useEventCallback(onKey);\n const touchId = useRef(null);\n const hasTouch = useRef(false);\n\n const [handleMoveStart, handleKeyDown, toggleDocumentEvents] = useMemo(() => {\n const handleMoveStart = ({ nativeEvent }: React.MouseEvent | React.TouchEvent) => {\n const el = container.current;\n if (!el) return;\n\n // Prevent text selection\n preventDefaultMove(nativeEvent);\n\n if (isInvalid(nativeEvent, hasTouch.current) || !el) return;\n\n if (isTouch(nativeEvent)) {\n hasTouch.current = true;\n const changedTouches = nativeEvent.changedTouches || [];\n if (changedTouches.length) touchId.current = changedTouches[0].identifier;\n }\n\n el.focus();\n onMoveCallback(getRelativePosition(el, nativeEvent, touchId.current));\n toggleDocumentEvents(true);\n };\n\n const handleMove = (event: MouseEvent | TouchEvent) => {\n // Prevent text selection\n preventDefaultMove(event);\n\n // If user moves the pointer outside of the window or iframe bounds and release it there,\n // `mouseup`/`touchend` won't be fired. In order to stop the picker from following the cursor\n // after the user has moved the mouse/finger back to the document, we check `event.buttons`\n // and `event.touches`. It allows us to detect that the user is just moving his pointer\n // without pressing it down\n const isDown = isTouch(event) ? event.touches.length > 0 : event.buttons > 0;\n\n if (isDown && container.current) {\n onMoveCallback(getRelativePosition(container.current, event, touchId.current));\n } else {\n toggleDocumentEvents(false);\n }\n };\n\n const handleMoveEnd = () => toggleDocumentEvents(false);\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n const keyCode = event.which || event.keyCode;\n\n // Ignore all keys except arrow ones\n if (keyCode < 37 || keyCode > 40) return;\n // Do not scroll page by arrow keys when document is focused on the element\n event.preventDefault();\n // Send relative offset to the parent component.\n // We use codes (37←, 38↑, 39→, 40↓) instead of keys ('ArrowRight', 'ArrowDown', etc)\n // to reduce the size of the library\n onKeyCallback({\n left: keyCode === 39 ? 0.05 : keyCode === 37 ? -0.05 : 0,\n top: keyCode === 40 ? 0.05 : keyCode === 38 ? -0.05 : 0,\n });\n };\n\n function toggleDocumentEvents(state?: boolean) {\n const touch = hasTouch.current;\n const el = container.current;\n const parentWindow = getParentWindow(el);\n\n // Add or remove additional pointer event listeners\n const toggleEvent = state ? parentWindow.addEventListener : parentWindow.removeEventListener;\n toggleEvent(touch ? \"touchmove\" : \"mousemove\", handleMove);\n toggleEvent(touch ? \"touchend\" : \"mouseup\", handleMoveEnd);\n }\n\n return [handleMoveStart, handleKeyDown, toggleDocumentEvents];\n }, [onKeyCallback, onMoveCallback]);\n\n // Remove window event listeners before unmounting\n useEffect(() => toggleDocumentEvents, [toggleDocumentEvents]);\n\n return (\n
\n );\n};\n\nexport const Interactive = React.memo(InteractiveBase);\n","export const formatClassName = (names: unknown[]): string => names.filter(Boolean).join(\" \");\n","import React from \"react\";\nimport { formatClassName } from \"../../utils/format\";\n\ninterface Props {\n className?: string;\n top?: number;\n left: number;\n color: string;\n}\n\nexport const Pointer = ({ className, color, left, top = 0.5 }: Props): JSX.Element => {\n const nodeClassName = formatClassName([\"react-colorful__pointer\", className]);\n\n const style = {\n top: `${top * 100}%`,\n left: `${left * 100}%`,\n };\n\n return (\n \n );\n};\n","export const round = (number: number, digits = 0, base = Math.pow(10, digits)): number => {\n return Math.round(base * number) / base;\n};\n","import { round } from \"./round\";\nimport { RgbaColor, RgbColor, HslaColor, HslColor, HsvaColor, HsvColor } from \"../types\";\n\n/**\n * Valid CSS units.\n * https://developer.mozilla.org/en-US/docs/Web/CSS/angle\n */\nconst angleUnits: Record = {\n grad: 360 / 400,\n turn: 360,\n rad: 360 / (Math.PI * 2),\n};\n\nexport const hexToHsva = (hex: string): HsvaColor => rgbaToHsva(hexToRgba(hex));\n\nexport const hexToRgba = (hex: string): RgbaColor => {\n if (hex[0] === \"#\") hex = hex.substr(1);\n\n if (hex.length < 6) {\n return {\n r: parseInt(hex[0] + hex[0], 16),\n g: parseInt(hex[1] + hex[1], 16),\n b: parseInt(hex[2] + hex[2], 16),\n a: 1,\n };\n }\n\n return {\n r: parseInt(hex.substr(0, 2), 16),\n g: parseInt(hex.substr(2, 2), 16),\n b: parseInt(hex.substr(4, 2), 16),\n a: 1,\n };\n};\n\nexport const parseHue = (value: string, unit = \"deg\"): number => {\n return Number(value) * (angleUnits[unit] || 1);\n};\n\nexport const hslaStringToHsva = (hslString: string): HsvaColor => {\n const matcher = /hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i;\n const match = matcher.exec(hslString);\n\n if (!match) return { h: 0, s: 0, v: 0, a: 1 };\n\n return hslaToHsva({\n h: parseHue(match[1], match[2]),\n s: Number(match[3]),\n l: Number(match[4]),\n a: match[5] === undefined ? 1 : Number(match[5]) / (match[6] ? 100 : 1),\n });\n};\n\nexport const hslStringToHsva = hslaStringToHsva;\n\nexport const hslaToHsva = ({ h, s, l, a }: HslaColor): HsvaColor => {\n s *= (l < 50 ? l : 100 - l) / 100;\n\n return {\n h: h,\n s: s > 0 ? ((2 * s) / (l + s)) * 100 : 0,\n v: l + s,\n a,\n };\n};\n\nexport const hsvaToHex = (hsva: HsvaColor): string => rgbaToHex(hsvaToRgba(hsva));\n\nexport const hsvaToHsla = ({ h, s, v, a }: HsvaColor): HslaColor => {\n const hh = ((200 - s) * v) / 100;\n\n return {\n h: round(h),\n s: round(hh > 0 && hh < 200 ? ((s * v) / 100 / (hh <= 100 ? hh : 200 - hh)) * 100 : 0),\n l: round(hh / 2),\n a: round(a, 2),\n };\n};\n\nexport const hsvaToHslString = (hsva: HsvaColor): string => {\n const { h, s, l } = hsvaToHsla(hsva);\n return `hsl(${h}, ${s}%, ${l}%)`;\n};\n\nexport const hsvaToHsvString = (hsva: HsvaColor): string => {\n const { h, s, v } = roundHsva(hsva);\n return `hsv(${h}, ${s}%, ${v}%)`;\n};\n\nexport const hsvaToHsvaString = (hsva: HsvaColor): string => {\n const { h, s, v, a } = roundHsva(hsva);\n return `hsva(${h}, ${s}%, ${v}%, ${a})`;\n};\n\nexport const hsvaToHslaString = (hsva: HsvaColor): string => {\n const { h, s, l, a } = hsvaToHsla(hsva);\n return `hsla(${h}, ${s}%, ${l}%, ${a})`;\n};\n\nexport const hsvaToRgba = ({ h, s, v, a }: HsvaColor): RgbaColor => {\n h = (h / 360) * 6;\n s = s / 100;\n v = v / 100;\n\n const hh = Math.floor(h),\n b = v * (1 - s),\n c = v * (1 - (h - hh) * s),\n d = v * (1 - (1 - h + hh) * s),\n module = hh % 6;\n\n return {\n r: round([v, c, b, b, d, v][module] * 255),\n g: round([d, v, v, c, b, b][module] * 255),\n b: round([b, b, d, v, v, c][module] * 255),\n a: round(a, 2),\n };\n};\n\nexport const hsvaToRgbString = (hsva: HsvaColor): string => {\n const { r, g, b } = hsvaToRgba(hsva);\n return `rgb(${r}, ${g}, ${b})`;\n};\n\nexport const hsvaToRgbaString = (hsva: HsvaColor): string => {\n const { r, g, b, a } = hsvaToRgba(hsva);\n return `rgba(${r}, ${g}, ${b}, ${a})`;\n};\n\nexport const hsvaStringToHsva = (hsvString: string): HsvaColor => {\n const matcher = /hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i;\n const match = matcher.exec(hsvString);\n\n if (!match) return { h: 0, s: 0, v: 0, a: 1 };\n\n return roundHsva({\n h: parseHue(match[1], match[2]),\n s: Number(match[3]),\n v: Number(match[4]),\n a: match[5] === undefined ? 1 : Number(match[5]) / (match[6] ? 100 : 1),\n });\n};\n\nexport const hsvStringToHsva = hsvaStringToHsva;\n\nexport const rgbaStringToHsva = (rgbaString: string): HsvaColor => {\n const matcher = /rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i;\n const match = matcher.exec(rgbaString);\n\n if (!match) return { h: 0, s: 0, v: 0, a: 1 };\n\n return rgbaToHsva({\n r: Number(match[1]) / (match[2] ? 100 / 255 : 1),\n g: Number(match[3]) / (match[4] ? 100 / 255 : 1),\n b: Number(match[5]) / (match[6] ? 100 / 255 : 1),\n a: match[7] === undefined ? 1 : Number(match[7]) / (match[8] ? 100 : 1),\n });\n};\n\nexport const rgbStringToHsva = rgbaStringToHsva;\n\nconst format = (number: number) => {\n const hex = number.toString(16);\n return hex.length < 2 ? \"0\" + hex : hex;\n};\n\nexport const rgbaToHex = ({ r, g, b }: RgbaColor): string => {\n return \"#\" + format(r) + format(g) + format(b);\n};\n\nexport const rgbaToHsva = ({ r, g, b, a }: RgbaColor): HsvaColor => {\n const max = Math.max(r, g, b);\n const delta = max - Math.min(r, g, b);\n\n // prettier-ignore\n const hh = delta\n ? max === r\n ? (g - b) / delta\n : max === g\n ? 2 + (b - r) / delta\n : 4 + (r - g) / delta\n : 0;\n\n return {\n h: round(60 * (hh < 0 ? hh + 6 : hh)),\n s: round(max ? (delta / max) * 100 : 0),\n v: round((max / 255) * 100),\n a,\n };\n};\n\nexport const roundHsva = (hsva: HsvaColor): HsvaColor => ({\n h: round(hsva.h),\n s: round(hsva.s),\n v: round(hsva.v),\n a: round(hsva.a, 2),\n});\n\nexport const rgbaToRgb = ({ r, g, b }: RgbaColor): RgbColor => ({ r, g, b });\n\nexport const hslaToHsl = ({ h, s, l }: HslaColor): HslColor => ({ h, s, l });\n\nexport const hsvaToHsv = (hsva: HsvaColor): HsvColor => {\n const { h, s, v } = roundHsva(hsva);\n return { h, s, v };\n};\n","import React from \"react\";\n\nimport { Interactive, Interaction } from \"./Interactive\";\nimport { Pointer } from \"./Pointer\";\n\nimport { hsvaToHslString } from \"../../utils/convert\";\nimport { formatClassName } from \"../../utils/format\";\nimport { clamp } from \"../../utils/clamp\";\nimport { round } from \"../../utils/round\";\n\ninterface Props {\n className?: string;\n hue: number;\n onChange: (newHue: { h: number }) => void;\n}\n\nconst HueBase = ({ className, hue, onChange }: Props) => {\n const handleMove = (interaction: Interaction) => {\n onChange({ h: 360 * interaction.left });\n };\n\n const handleKey = (offset: Interaction) => {\n // Hue measured in degrees of the color circle ranging from 0 to 360\n onChange({\n h: clamp(hue + offset.left * 360, 0, 360),\n });\n };\n\n const nodeClassName = formatClassName([\"react-colorful__hue\", className]);\n\n return (\n \n );\n};\n\nexport const Hue = React.memo(HueBase);\n","import React from \"react\";\nimport { Interactive, Interaction } from \"./Interactive\";\nimport { Pointer } from \"./Pointer\";\nimport { HsvaColor } from \"../../types\";\nimport { hsvaToHslString } from \"../../utils/convert\";\nimport { clamp } from \"../../utils/clamp\";\nimport { round } from \"../../utils/round\";\n\ninterface Props {\n hsva: HsvaColor;\n onChange: (newColor: { s: number; v: number }) => void;\n}\n\nconst SaturationBase = ({ hsva, onChange }: Props) => {\n const handleMove = (interaction: Interaction) => {\n onChange({\n s: interaction.left * 100,\n v: 100 - interaction.top * 100,\n });\n };\n\n const handleKey = (offset: Interaction) => {\n // Saturation and brightness always fit into [0, 100] range\n onChange({\n s: clamp(hsva.s + offset.left * 100, 0, 100),\n v: clamp(hsva.v - offset.top * 100, 0, 100),\n });\n };\n\n const containerStyle = {\n backgroundColor: hsvaToHslString({ h: hsva.h, s: 100, v: 100, a: 1 }),\n };\n\n return (\n \n );\n};\n\nexport const Saturation = React.memo(SaturationBase);\n","import { hexToRgba } from \"./convert\";\nimport { ObjectColor } from \"../types\";\n\nexport const equalColorObjects = (first: ObjectColor, second: ObjectColor): boolean => {\n if (first === second) return true;\n\n for (const prop in first) {\n // The following allows for a type-safe calling of this function (first & second have to be HSL, HSV, or RGB)\n // with type-unsafe iterating over object keys. TS does not allow this without an index (`[key: string]: number`)\n // on an object to define how iteration is normally done. To ensure extra keys are not allowed on our types,\n // we must cast our object to unknown (as RGB demands `r` be a key, while `Record` does not care if\n // there is or not), and then as a type TS can iterate over.\n if (\n ((first as unknown) as Record)[prop] !==\n ((second as unknown) as Record)[prop]\n )\n return false;\n }\n\n return true;\n};\n\nexport const equalColorString = (first: string, second: string): boolean => {\n return first.replace(/\\s/g, \"\") === second.replace(/\\s/g, \"\");\n};\n\nexport const equalHex = (first: string, second: string): boolean => {\n if (first.toLowerCase() === second.toLowerCase()) return true;\n\n // To compare colors like `#FFF` and `ffffff` we convert them into RGB objects\n return equalColorObjects(hexToRgba(first), hexToRgba(second));\n};\n","import { useState, useEffect, useCallback, useRef } from \"react\";\nimport { ColorModel, AnyColor, HsvaColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { useEventCallback } from \"./useEventCallback\";\n\nexport function useColorManipulation(\n colorModel: ColorModel,\n color: T,\n onChange?: (color: T) => void\n): [HsvaColor, (color: Partial) => void] {\n // Save onChange callback in the ref for avoiding \"useCallback hell\"\n const onChangeCallback = useEventCallback(onChange);\n\n // No matter which color model is used (HEX, RGB(A) or HSL(A)),\n // all internal calculations are based on HSVA model\n const [hsva, updateHsva] = useState(() => colorModel.toHsva(color));\n\n // By using this ref we're able to prevent extra updates\n // and the effects recursion during the color conversion\n const cache = useRef({ color, hsva });\n\n // Update local HSVA-value if `color` property value is changed,\n // but only if that's not the same color that we just sent to the parent\n useEffect(() => {\n if (!colorModel.equal(color, cache.current.color)) {\n const newHsva = colorModel.toHsva(color);\n cache.current = { hsva: newHsva, color };\n updateHsva(newHsva);\n }\n }, [color, colorModel]);\n\n // Trigger `onChange` callback only if an updated color is different from cached one;\n // save the new color to the ref to prevent unnecessary updates\n useEffect(() => {\n let newColor;\n if (\n !equalColorObjects(hsva, cache.current.hsva) &&\n !colorModel.equal((newColor = colorModel.fromHsva(hsva)), cache.current.color)\n ) {\n cache.current = { hsva, color: newColor };\n onChangeCallback(newColor);\n }\n }, [hsva, colorModel, onChangeCallback]);\n\n // Merge the current HSVA color object with updated params.\n // For example, when a child component sends `h` or `s` only\n const handleChange = useCallback((params: Partial) => {\n updateHsva((current) => Object.assign({}, current, params));\n }, []);\n\n return [hsva, handleChange];\n}\n","declare const __webpack_nonce__: string | undefined;\nlet nonce: string | undefined;\n\n/**\n * Returns a nonce hash included by Webpack or the one defined manually by developer.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce\n * https://webpack.js.org/guides/csp/\n */\nexport const getNonce = (): string | undefined => {\n if (nonce) return nonce;\n if (typeof __webpack_nonce__ !== \"undefined\") return __webpack_nonce__;\n return undefined;\n};\n\n/**\n * Signs the style tag with a base64-encoded string (nonce) to conforms to Content Security Policies.\n * This function has to be invoked before any picker is rendered if you aren't using Webpack for CSP.\n */\nexport const setNonce = (hash: string): void => {\n nonce = hash;\n};\n","import { useLayoutEffect, useEffect } from \"react\";\n\n// React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\nexport const useIsomorphicLayoutEffect =\n typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n","import { RefObject } from \"react\";\n\nimport { useIsomorphicLayoutEffect } from \"./useIsomorphicLayoutEffect\";\nimport { getNonce } from \"../utils/nonce\";\n\n// Bundler is configured to load this as a processed minified CSS-string\nimport styles from \"../css/styles.css\";\n\nconst styleElementMap: Map = new Map();\n\n/**\n * Injects CSS code into the document's \n */\nexport const useStyleSheet = (nodeRef: RefObject): void => {\n useIsomorphicLayoutEffect(() => {\n const parentDocument = nodeRef.current ? nodeRef.current.ownerDocument : document;\n\n if (typeof parentDocument !== \"undefined\" && !styleElementMap.has(parentDocument)) {\n const styleElement = parentDocument.createElement(\"style\");\n styleElement.innerHTML = styles;\n styleElementMap.set(parentDocument, styleElement);\n\n // Conform to CSP rules by setting `nonce` attribute to the inline styles\n const nonce = getNonce();\n if (nonce) styleElement.setAttribute(\"nonce\", nonce);\n\n parentDocument.head.appendChild(styleElement);\n }\n }, []);\n};\n","import React, { useRef } from \"react\";\n\nimport { Hue } from \"./Hue\";\nimport { Saturation } from \"./Saturation\";\n\nimport { ColorModel, ColorPickerBaseProps, AnyColor } from \"../../types\";\nimport { useColorManipulation } from \"../../hooks/useColorManipulation\";\nimport { useStyleSheet } from \"../../hooks/useStyleSheet\";\nimport { formatClassName } from \"../../utils/format\";\n\ninterface Props extends Partial> {\n colorModel: ColorModel;\n}\n\nexport const ColorPicker = ({\n className,\n colorModel,\n color = colorModel.defaultColor,\n onChange,\n ...rest\n}: Props): JSX.Element => {\n const nodeRef = useRef(null);\n useStyleSheet(nodeRef);\n\n const [hsva, updateHsva] = useColorManipulation(colorModel, color, onChange);\n\n const nodeClassName = formatClassName([\"react-colorful\", className]);\n\n return (\n \n \n \n
\n );\n};\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalHex } from \"../utils/compare\";\nimport { hexToHsva, hsvaToHex } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"000\",\n toHsva: hexToHsva,\n fromHsva: hsvaToHex,\n equal: equalHex,\n};\n\nexport const HexColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { Interactive, Interaction } from \"./Interactive\";\nimport { Pointer } from \"./Pointer\";\n\nimport { hsvaToHslaString } from \"../../utils/convert\";\nimport { formatClassName } from \"../../utils/format\";\nimport { clamp } from \"../../utils/clamp\";\nimport { round } from \"../../utils/round\";\nimport { HsvaColor } from \"../../types\";\n\ninterface Props {\n className?: string;\n hsva: HsvaColor;\n onChange: (newAlpha: { a: number }) => void;\n}\n\nexport const Alpha = ({ className, hsva, onChange }: Props): JSX.Element => {\n const handleMove = (interaction: Interaction) => {\n onChange({ a: interaction.left });\n };\n\n const handleKey = (offset: Interaction) => {\n // Alpha always fit into [0, 1] range\n onChange({ a: clamp(hsva.a + offset.left) });\n };\n\n // We use `Object.assign` instead of the spread operator\n // to prevent adding the polyfill (about 150 bytes gzipped)\n const colorFrom = hsvaToHslaString(Object.assign({}, hsva, { a: 0 }));\n const colorTo = hsvaToHslaString(Object.assign({}, hsva, { a: 1 }));\n\n const gradientStyle = {\n backgroundImage: `linear-gradient(90deg, ${colorFrom}, ${colorTo})`,\n };\n\n const nodeClassName = formatClassName([\"react-colorful__alpha\", className]);\n\n return (\n \n );\n};\n","import React, { useRef } from \"react\";\n\nimport { Hue } from \"./Hue\";\nimport { Saturation } from \"./Saturation\";\nimport { Alpha } from \"./Alpha\";\n\nimport { ColorModel, ColorPickerBaseProps, AnyColor } from \"../../types\";\nimport { useColorManipulation } from \"../../hooks/useColorManipulation\";\nimport { useStyleSheet } from \"../../hooks/useStyleSheet\";\nimport { formatClassName } from \"../../utils/format\";\n\ninterface Props extends Partial> {\n colorModel: ColorModel;\n}\n\nexport const AlphaColorPicker = ({\n className,\n colorModel,\n color = colorModel.defaultColor,\n onChange,\n ...rest\n}: Props): JSX.Element => {\n const nodeRef = useRef(null);\n useStyleSheet(nodeRef);\n\n const [hsva, updateHsva] = useColorManipulation(colorModel, color, onChange);\n\n const nodeClassName = formatClassName([\"react-colorful\", className]);\n\n return (\n \n );\n};\n","import React from \"react\";\n\nimport { AlphaColorPicker } from \"./common/AlphaColorPicker\";\nimport { ColorModel, ColorPickerBaseProps, HslaColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { hslaToHsva, hsvaToHsla } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: { h: 0, s: 0, l: 0, a: 1 },\n toHsva: hslaToHsva,\n fromHsva: hsvaToHsla,\n equal: equalColorObjects,\n};\n\nexport const HslaColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { AlphaColorPicker } from \"./common/AlphaColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalColorString } from \"../utils/compare\";\nimport { hslaStringToHsva, hsvaToHslaString } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"hsla(0, 0%, 0%, 1)\",\n toHsva: hslaStringToHsva,\n fromHsva: hsvaToHslaString,\n equal: equalColorString,\n};\n\nexport const HslaStringColorPicker = (\n props: Partial>\n): JSX.Element => ;\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps, HslColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { hslaToHsva, hsvaToHsla, hslaToHsl } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: { h: 0, s: 0, l: 0 },\n toHsva: ({ h, s, l }) => hslaToHsva({ h, s, l, a: 1 }),\n fromHsva: (hsva) => hslaToHsl(hsvaToHsla(hsva)),\n equal: equalColorObjects,\n};\n\nexport const HslColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalColorString } from \"../utils/compare\";\nimport { hslStringToHsva, hsvaToHslString } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"hsl(0, 0%, 0%)\",\n toHsva: hslStringToHsva,\n fromHsva: hsvaToHslString,\n equal: equalColorString,\n};\n\nexport const HslStringColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { AlphaColorPicker } from \"./common/AlphaColorPicker\";\nimport { ColorModel, ColorPickerBaseProps, HsvaColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { roundHsva } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: { h: 0, s: 0, v: 0, a: 1 },\n toHsva: (hsva) => hsva,\n fromHsva: roundHsva,\n equal: equalColorObjects,\n};\n\nexport const HsvaColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { AlphaColorPicker } from \"./common/AlphaColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalColorString } from \"../utils/compare\";\nimport { hsvaStringToHsva, hsvaToHsvaString } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"hsva(0, 0%, 0%, 1)\",\n toHsva: hsvaStringToHsva,\n fromHsva: hsvaToHsvaString,\n equal: equalColorString,\n};\n\nexport const HsvaStringColorPicker = (\n props: Partial>\n): JSX.Element => ;\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps, HsvColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { hsvaToHsv } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: { h: 0, s: 0, v: 0 },\n toHsva: ({ h, s, v }) => ({ h, s, v, a: 1 }),\n fromHsva: hsvaToHsv,\n equal: equalColorObjects,\n};\n\nexport const HsvColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalColorString } from \"../utils/compare\";\nimport { hsvStringToHsva, hsvaToHsvString } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"hsv(0, 0%, 0%)\",\n toHsva: hsvStringToHsva,\n fromHsva: hsvaToHsvString,\n equal: equalColorString,\n};\n\nexport const HsvStringColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { AlphaColorPicker } from \"./common/AlphaColorPicker\";\nimport { ColorModel, ColorPickerBaseProps, RgbaColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { rgbaToHsva, hsvaToRgba } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: { r: 0, g: 0, b: 0, a: 1 },\n toHsva: rgbaToHsva,\n fromHsva: hsvaToRgba,\n equal: equalColorObjects,\n};\n\nexport const RgbaColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { AlphaColorPicker } from \"./common/AlphaColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalColorString } from \"../utils/compare\";\nimport { rgbaStringToHsva, hsvaToRgbaString } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"rgba(0, 0, 0, 1)\",\n toHsva: rgbaStringToHsva,\n fromHsva: hsvaToRgbaString,\n equal: equalColorString,\n};\n\nexport const RgbaStringColorPicker = (\n props: Partial>\n): JSX.Element => ;\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps, RgbColor } from \"../types\";\nimport { equalColorObjects } from \"../utils/compare\";\nimport { rgbaToHsva, hsvaToRgba, rgbaToRgb } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: { r: 0, g: 0, b: 0 },\n toHsva: ({ r, g, b }) => rgbaToHsva({ r, g, b, a: 1 }),\n fromHsva: (hsva) => rgbaToRgb(hsvaToRgba(hsva)),\n equal: equalColorObjects,\n};\n\nexport const RgbColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","import React from \"react\";\n\nimport { ColorPicker } from \"./common/ColorPicker\";\nimport { ColorModel, ColorPickerBaseProps } from \"../types\";\nimport { equalColorString } from \"../utils/compare\";\nimport { rgbStringToHsva, hsvaToRgbString } from \"../utils/convert\";\n\nconst colorModel: ColorModel = {\n defaultColor: \"rgb(0, 0, 0)\",\n toHsva: rgbStringToHsva,\n fromHsva: hsvaToRgbString,\n equal: equalColorString,\n};\n\nexport const RgbStringColorPicker = (props: Partial>): JSX.Element => (\n \n);\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;\n\nvar _flattenNames = require('./flattenNames');\n\nvar _flattenNames2 = _interopRequireDefault(_flattenNames);\n\nvar _mergeClasses = require('./mergeClasses');\n\nvar _mergeClasses2 = _interopRequireDefault(_mergeClasses);\n\nvar _autoprefix = require('./autoprefix');\n\nvar _autoprefix2 = _interopRequireDefault(_autoprefix);\n\nvar _hover2 = require('./components/hover');\n\nvar _hover3 = _interopRequireDefault(_hover2);\n\nvar _active = require('./components/active');\n\nvar _active2 = _interopRequireDefault(_active);\n\nvar _loop2 = require('./loop');\n\nvar _loop3 = _interopRequireDefault(_loop2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.hover = _hover3.default;\nexports.handleHover = _hover3.default;\nexports.handleActive = _active2.default;\nexports.loop = _loop3.default;\nvar ReactCSS = exports.ReactCSS = function ReactCSS(classes) {\n for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n activations[_key - 1] = arguments[_key];\n }\n\n var activeNames = (0, _flattenNames2.default)(activations);\n var merged = (0, _mergeClasses2.default)(classes, activeNames);\n return (0, _autoprefix2.default)(merged);\n};\n\nexports.default = ReactCSS;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.flattenNames = undefined;\n\nvar _isString2 = require('lodash/isString');\n\nvar _isString3 = _interopRequireDefault(_isString2);\n\nvar _forOwn2 = require('lodash/forOwn');\n\nvar _forOwn3 = _interopRequireDefault(_forOwn2);\n\nvar _isPlainObject2 = require('lodash/isPlainObject');\n\nvar _isPlainObject3 = _interopRequireDefault(_isPlainObject2);\n\nvar _map2 = require('lodash/map');\n\nvar _map3 = _interopRequireDefault(_map2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar flattenNames = exports.flattenNames = function flattenNames() {\n var things = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n var names = [];\n\n (0, _map3.default)(things, function (thing) {\n if (Array.isArray(thing)) {\n flattenNames(thing).map(function (name) {\n return names.push(name);\n });\n } else if ((0, _isPlainObject3.default)(thing)) {\n (0, _forOwn3.default)(thing, function (value, key) {\n value === true && names.push(key);\n names.push(key + '-' + value);\n });\n } else if ((0, _isString3.default)(thing)) {\n names.push(thing);\n }\n });\n\n return names;\n};\n\nexports.default = flattenNames;","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var baseForOwn = require('./_baseForOwn'),\n castFunction = require('./_castFunction');\n\n/**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forOwn(object, iteratee) {\n return object && baseForOwn(object, castFunction(iteratee));\n}\n\nmodule.exports = forOwn;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mergeClasses = undefined;\n\nvar _forOwn2 = require('lodash/forOwn');\n\nvar _forOwn3 = _interopRequireDefault(_forOwn2);\n\nvar _cloneDeep2 = require('lodash/cloneDeep');\n\nvar _cloneDeep3 = _interopRequireDefault(_cloneDeep2);\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar mergeClasses = exports.mergeClasses = function mergeClasses(classes) {\n var activeNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};\n activeNames.map(function (name) {\n var toMerge = classes[name];\n if (toMerge) {\n (0, _forOwn3.default)(toMerge, function (value, key) {\n if (!styles[key]) {\n styles[key] = {};\n }\n\n styles[key] = _extends({}, styles[key], toMerge[key]);\n });\n }\n\n return name;\n });\n return styles;\n};\n\nexports.default = mergeClasses;","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.autoprefix = undefined;\n\nvar _forOwn2 = require('lodash/forOwn');\n\nvar _forOwn3 = _interopRequireDefault(_forOwn2);\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar transforms = {\n borderRadius: function borderRadius(value) {\n return {\n msBorderRadius: value,\n MozBorderRadius: value,\n OBorderRadius: value,\n WebkitBorderRadius: value,\n borderRadius: value\n };\n },\n boxShadow: function boxShadow(value) {\n return {\n msBoxShadow: value,\n MozBoxShadow: value,\n OBoxShadow: value,\n WebkitBoxShadow: value,\n boxShadow: value\n };\n },\n userSelect: function userSelect(value) {\n return {\n WebkitTouchCallout: value,\n KhtmlUserSelect: value,\n MozUserSelect: value,\n msUserSelect: value,\n WebkitUserSelect: value,\n userSelect: value\n };\n },\n\n flex: function flex(value) {\n return {\n WebkitBoxFlex: value,\n MozBoxFlex: value,\n WebkitFlex: value,\n msFlex: value,\n flex: value\n };\n },\n flexBasis: function flexBasis(value) {\n return {\n WebkitFlexBasis: value,\n flexBasis: value\n };\n },\n justifyContent: function justifyContent(value) {\n return {\n WebkitJustifyContent: value,\n justifyContent: value\n };\n },\n\n transition: function transition(value) {\n return {\n msTransition: value,\n MozTransition: value,\n OTransition: value,\n WebkitTransition: value,\n transition: value\n };\n },\n\n transform: function transform(value) {\n return {\n msTransform: value,\n MozTransform: value,\n OTransform: value,\n WebkitTransform: value,\n transform: value\n };\n },\n absolute: function absolute(value) {\n var direction = value && value.split(' ');\n return {\n position: 'absolute',\n top: direction && direction[0],\n right: direction && direction[1],\n bottom: direction && direction[2],\n left: direction && direction[3]\n };\n },\n extend: function extend(name, otherElementStyles) {\n var otherStyle = otherElementStyles[name];\n if (otherStyle) {\n return otherStyle;\n }\n return {\n 'extend': name\n };\n }\n};\n\nvar autoprefix = exports.autoprefix = function autoprefix(elements) {\n var prefixed = {};\n (0, _forOwn3.default)(elements, function (styles, element) {\n var expanded = {};\n (0, _forOwn3.default)(styles, function (value, key) {\n var transform = transforms[key];\n if (transform) {\n expanded = _extends({}, expanded, transform(value));\n } else {\n expanded[key] = value;\n }\n });\n prefixed[element] = expanded;\n });\n return prefixed;\n};\n\nexports.default = autoprefix;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hover = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar hover = exports.hover = function hover(Component) {\n var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';\n\n return function (_React$Component) {\n _inherits(Hover, _React$Component);\n\n function Hover() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Hover);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.handleMouseOver = function () {\n return _this.setState({ hover: true });\n }, _this.handleMouseOut = function () {\n return _this.setState({ hover: false });\n }, _this.render = function () {\n return _react2.default.createElement(\n Span,\n { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut },\n _react2.default.createElement(Component, _extends({}, _this.props, _this.state))\n );\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n return Hover;\n }(_react2.default.Component);\n};\n\nexports.default = hover;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.active = undefined;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar active = exports.active = function active(Component) {\n var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';\n\n return function (_React$Component) {\n _inherits(Active, _React$Component);\n\n function Active() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Active);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply(_ref, [this].concat(args))), _this), _this.state = { active: false }, _this.handleMouseDown = function () {\n return _this.setState({ active: true });\n }, _this.handleMouseUp = function () {\n return _this.setState({ active: false });\n }, _this.render = function () {\n return _react2.default.createElement(\n Span,\n { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp },\n _react2.default.createElement(Component, _extends({}, _this.props, _this.state))\n );\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n return Active;\n }(_react2.default.Component);\n};\n\nexports.default = active;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar loopable = function loopable(i, length) {\n var props = {};\n var setProp = function setProp(name) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n props[name] = value;\n };\n\n i === 0 && setProp('first-child');\n i === length - 1 && setProp('last-child');\n (i === 0 || i % 2 === 0) && setProp('even');\n Math.abs(i % 2) === 1 && setProp('odd');\n setProp('nth-child', i);\n\n return props;\n};\n\nexports.default = loopable;","import { useState, useEffect, useCallback } from \"react\";\nimport reactCSS from \"reactcss\";\n\nconst KirkiReactColorfulInput = (props) => {\n\tconst { onChange, color = \"\" } = props;\n\tconst [value, setValue] = useState(() => color);\n\n\tconst handleChange = useCallback(\n\t\t(e) => {\n\t\t\tlet val = e.target.value;\n\n\t\t\tif (2 === val.length) {\n\t\t\t\tif (!val.includes(\"#\") && !val.includes(\"rg\") && !val.includes(\"hs\")) {\n\t\t\t\t\tval = \"#\" + val;\n\t\t\t\t}\n\t\t\t} else if (3 === val.length || 6 === val.length) {\n\t\t\t\tif (!val.includes(\"#\") && !val.includes(\"rg\") && !val.includes(\"hs\")) {\n\t\t\t\t\tval = \"#\" + val;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tval = val.toLowerCase();\n\n\t\t\t// Thank you: https://regexr.com/39cgj\n\t\t\tconst pattern = new RegExp(\n\t\t\t\t/(?:#|0x)(?:[a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})\\b|(?:rgb|hsl)a?\\([^\\)]*\\)/\n\t\t\t);\n\n\t\t\tif (\"\" === val || pattern.test(val)) {\n\t\t\t\tonChange(val); // Run onChange handler passed by `KirkiReactColorfulForm` component.\n\t\t\t}\n\n\t\t\tsetValue(val);\n\t\t},\n\t\t[onChange]\n\t);\n\n\t// Update the local state when `color` property value is changed.\n\tuseEffect(() => {\n\t\t// We don't need to convert the color since it's already handled in parent component.\n\t\tsetValue(color);\n\t}, [color]);\n\n\tconst pickersWithAlpha = [\n\t\t\"RgbaColorPicker\",\n\t\t\"RgbaStringColorPicker\",\n\t\t\"HslaColorPicker\",\n\t\t\"HslaStringColorPicker\",\n\t\t\"HsvaColorPicker\",\n\t\t\"HsvaStringColorPicker\",\n\t];\n\n\tconst styles = reactCSS({\n\t\tdefault: {\n\t\t\tcolorPreviewWrapper: {\n\t\t\t\tbackgroundImage: pickersWithAlpha.includes(props.pickerComponent)\n\t\t\t\t\t? 'url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==\")'\n\t\t\t\t\t: \"none\",\n\t\t\t},\n\t\t\tcolorPreview: {\n\t\t\t\tbackgroundColor: value,\n\t\t\t},\n\t\t},\n\t});\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t{!props.useHueMode && (\n\t\t\t\t\t
\n\t\t\t\t\t\t \n\t\t\t\t\t
\n\t\t\t\t)}\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default KirkiReactColorfulInput;\n","const KirkiReactColorfulSwatches = ({ colors, onClick }) => {\n\treturn (\n\t\t\n\t\t\t{colors.map((clr, index) => {\n\t\t\t\tconst color = clr && clr.color ? clr.color : clr;\n\n\t\t\t\treturn (\n\t\t\t\t\t onClick(color)}\n\t\t\t\t\t> \n\t\t\t\t);\n\t\t\t})}\n\t\t
\n\t);\n};\n\nexport default KirkiReactColorfulSwatches;\n","var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return\"string\"==typeof r?r.length>0:\"number\"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?\"0\"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\\(\\s*([+-]?\\d*\\.?\\d+)(deg|rad|grad|turn)?\\s*,\\s*([+-]?\\d*\\.?\\d+)%\\s*,\\s*([+-]?\\d*\\.?\\d+)%\\s*(?:,\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*)?\\)$/i,p=/^hsla?\\(\\s*([+-]?\\d*\\.?\\d+)(deg|rad|grad|turn)?\\s+([+-]?\\d*\\.?\\d+)%\\s+([+-]?\\d*\\.?\\d+)%\\s*(?:\\/\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*)?\\)$/i,v=/^rgba?\\(\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*,\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*,\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*(?:,\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*)?\\)$/i,m=/^rgba?\\(\\s*([+-]?\\d*\\.?\\d+)(%)?\\s+([+-]?\\d*\\.?\\d+)(%)?\\s+([+-]?\\d*\\.?\\d+)(%)?\\s*(?:\\/\\s*([+-]?\\d*\\.?\\d+)(%)?\\s*)?\\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},\"hex\"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},\"rgb\"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u=\"deg\"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},\"hsl\"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},\"rgb\"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},\"hsl\"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},\"hsv\"]]},N=function(r,t){for(var n=0;n=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):\"\",\"#\"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?\"rgba(\"+t+\", \"+n+\", \"+e+\", \"+u+\")\":\"rgb(\"+t+\", \"+n+\", \"+e+\")\";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?\"hsla(\"+t+\", \"+n+\"%, \"+e+\"%, \"+u+\")\":\"hsl(\"+t+\", \"+n+\"%, \"+e+\"%)\";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return\"number\"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return\"number\"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};export{j as Colord,w as colord,k as extend,I as getFormat,E as random};\n","import { colord } from \"colord\";\n\n/**\n * Convert the value for the color picker.\n *\n * @param {string|Object} value The value to be converted.\n * @param {string} pickerComponent The picker component name.\n *\n * @returns {string|Object} The converted value.\n */\nconst convertColorForPicker = (value, pickerComponent) => {\n\tlet convertedValue;\n\n\tswitch (pickerComponent) {\n\t\tcase \"HexColorPicker\":\n\t\t\tconvertedValue = colord(value).toHex();\n\t\t\tbreak;\n\n\t\tcase \"RgbColorPicker\":\n\t\t\tconvertedValue = colord(value).toRgb();\n\t\t\tdelete convertedValue.a;\n\t\t\tbreak;\n\n\t\tcase \"RgbStringColorPicker\":\n\t\t\tconvertedValue = colord(value).toRgbString();\n\t\t\tbreak;\n\n\t\tcase \"RgbaColorPicker\":\n\t\t\tconvertedValue = colord(value).toRgb();\n\t\t\tbreak;\n\n\t\tcase \"RgbaStringColorPicker\":\n\t\t\tconvertedValue = colord(value).toRgbString();\n\n\t\t\t// Force to set the alpha channel value.\n\t\t\tif (convertedValue.includes(\"rgb\") && !convertedValue.includes(\"rgba\")) {\n\t\t\t\tconvertedValue = convertedValue.replace(\"rgb\", \"rgba\");\n\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase \"HslColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsl();\n\t\t\tdelete convertedValue.a;\n\t\t\tbreak;\n\n\t\tcase \"HslStringColorPicker\":\n\t\t\tconvertedValue = colord(value).toHslString();\n\t\t\tbreak;\n\n\t\tcase \"HslaColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsl();\n\t\t\tbreak;\n\n\t\tcase \"HslaStringColorPicker\":\n\t\t\tconvertedValue = colord(value).toHslString();\n\n\t\t\t// Force to set the alpha channel value.\n\t\t\tif (convertedValue.includes(\"hsl\") && !convertedValue.includes(\"hsla\")) {\n\t\t\t\tconvertedValue = convertedValue.replace(\"hsl\", \"hsla\");\n\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase \"HsvColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsv();\n\t\t\tdelete convertedValue.a;\n\t\t\tbreak;\n\n\t\tcase \"HsvStringColorPicker\":\n\t\t\tconst hsv = colord(value).toHsv();\n\t\t\tconvertedValue = \"hsv(\" + hsv.h + \", \" + hsv.s + \"%, \" + hsv.v + \"%)\";\n\n\t\t\tbreak;\n\n\t\tcase \"HsvaColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsv();\n\t\t\tbreak;\n\n\t\tcase \"HsvaStringColorPicker\":\n\t\t\t// colord library doesn't provide .toHsvString() method yet.\n\t\t\tconst hsva = colord(value).toHsv();\n\t\t\tconvertedValue =\n\t\t\t\t\"hsva(\" +\n\t\t\t\thsva.h +\n\t\t\t\t\", \" +\n\t\t\t\thsva.s +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.v +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.a +\n\t\t\t\t\")\";\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tconvertedValue = colord(value).toHex();\n\t\t\tbreak;\n\t}\n\n\treturn convertedValue;\n};\n\nexport default convertColorForPicker;\n","import { colord } from \"colord\";\n\n/**\n * Convert the value for the customizer.\n *\n * @param {string|Object} value The value to be converted.\n * @param {string} pickerComponent The picker component name.\n *\n * @returns {string} The converted value.\n */\nconst convertColorForCustomizer = (value, pickerComponent, formComponent) => {\n\tlet rgba;\n\tlet hsv;\n\tlet hsva;\n\tlet convertedValue;\n\n\tswitch (pickerComponent) {\n\t\t/**\n\t\t * The HexColorPicker is used by these condition:\n\t\t * 1. When formComponent is defined with HexColorPicker as the value.\n\t\t * 2. When formComponent is not defined but the \"alpha\" choice is not set or set to false (the old way).\n\t\t */\n\t\tcase \"HexColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"#\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toHex();\n\t\t\tbreak;\n\n\t\tcase \"RgbColorPicker\":\n\t\t\tconvertedValue = colord(value).toRgb();\n\t\t\tdelete convertedValue.a;\n\t\t\tbreak;\n\n\t\tcase \"RgbStringColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"rgb(\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toRgbString();\n\t\t\tbreak;\n\n\t\tcase \"RgbaColorPicker\":\n\t\t\trgba = colord(value).toRgb();\n\t\t\tconvertedValue = rgba;\n\t\t\tbreak;\n\n\t\t/**\n\t\t * The RgbaStringColorPicker is used by these condition:\n\t\t * 1. When formComponent is defined with RgbaColorPicker as the value.\n\t\t * 2. When formComponent is not defined but the \"alpha\" choice is set to true.\n\t\t */\n\t\tcase \"RgbaStringColorPicker\":\n\t\t\trgba = colord(value).toRgb();\n\n\t\t\tif (rgba.a < 1) {\n\t\t\t\tconvertedValue =\n\t\t\t\t\t\"string\" === typeof value && value.includes(\"rgba\")\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: colord(value).toRgbString();\n\t\t\t} else {\n\t\t\t\t// When it uses the 2nd condition above, then the expected value is \"hex\".\n\t\t\t\tif (!formComponent) {\n\t\t\t\t\tconvertedValue =\n\t\t\t\t\t\t\"string\" === typeof value && value.includes(\"#\")\n\t\t\t\t\t\t\t? value\n\t\t\t\t\t\t\t: colord(value).toHex();\n\t\t\t\t} else {\n\t\t\t\t\tconvertedValue = colord(value).toRgbString();\n\n\t\t\t\t\t// Force to set the alpha channel value.\n\t\t\t\t\tif (\n\t\t\t\t\t\tconvertedValue.includes(\"rgb\") &&\n\t\t\t\t\t\t!convertedValue.includes(\"rgba\")\n\t\t\t\t\t) {\n\t\t\t\t\t\tconvertedValue = convertedValue.replace(\"rgb\", \"rgba\");\n\t\t\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase \"HslColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsl();\n\t\t\tdelete convertedValue.a;\n\t\t\tbreak;\n\n\t\tcase \"HslStringColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"hsl(\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toHslString();\n\t\t\tbreak;\n\n\t\tcase \"HslaColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsl();\n\t\t\tbreak;\n\n\t\tcase \"HslaStringColorPicker\":\n\t\t\tconvertedValue = colord(value).toHslString();\n\n\t\t\t// Force to set the alpha channel value.\n\t\t\tif (convertedValue.includes(\"hsl\") && !convertedValue.includes(\"hsla\")) {\n\t\t\t\tconvertedValue = convertedValue.replace(\"hsl\", \"hsla\");\n\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase \"HsvColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsv();\n\t\t\tdelete convertedValue.a;\n\t\t\tbreak;\n\n\t\t/**\n\t\t * The colord library doesn't provide .toHsvString() method yet.\n\t\t * This manual value-building will apply to \"HsvStringColorPicker\" and \"HsvaStringColorPicker\" stuff below.\n\t\t */\n\t\tcase \"HsvStringColorPicker\":\n\t\t\thsv = colord(value).toHsv();\n\t\t\tconvertedValue = \"hsv(\" + hsv.h + \", \" + hsv.s + \"%, \" + hsv.v + \"%)\";\n\t\t\tbreak;\n\n\t\tcase \"HsvaColorPicker\":\n\t\t\tconvertedValue = colord(value).toHsv();\n\t\t\tbreak;\n\n\t\tcase \"HsvaStringColorPicker\":\n\t\t\thsva = colord(value).toHsv();\n\t\t\tconvertedValue =\n\t\t\t\t\"hsva(\" +\n\t\t\t\thsva.h +\n\t\t\t\t\", \" +\n\t\t\t\thsva.s +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.v +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.a +\n\t\t\t\t\")\";\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"#\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toHex();\n\t\t\tbreak;\n\t}\n\n\treturn convertedValue;\n};\n\nexport default convertColorForCustomizer;\n","import { colord } from \"colord\";\n\n/**\n * Convert the value for the color input.\n *\n * @param {string|Object} value The value to be converted.\n * @param {string} pickerComponent The picker component name.\n *\n * @returns {string} The converted value.\n */\nconst convertColorForInput = (value, pickerComponent, formComponent) => {\n\tlet rgba;\n\tlet hsv;\n\tlet hsva;\n\tlet convertedValue;\n\n\tswitch (pickerComponent) {\n\t\t/**\n\t\t * The HexColorPicker is used by these condition:\n\t\t * 1. When formComponent is defined with HexColorPicker as the value.\n\t\t * 2. When formComponent is not defined but the \"alpha\" choice is not set or set to false (the old way).\n\t\t */\n\t\tcase \"HexColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"#\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toHex();\n\t\t\tbreak;\n\n\t\tcase \"RgbColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"rgb(\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toRgbString();\n\t\t\tbreak;\n\n\t\tcase \"RgbStringColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"rgba\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toRgbString();\n\t\t\tbreak;\n\n\t\tcase \"RgbaColorPicker\":\n\t\t\trgba = colord(value).toRgb();\n\n\t\t\tif (rgba.a < 1) {\n\t\t\t\tconvertedValue =\n\t\t\t\t\t\"string\" === typeof value && value.includes(\"rgba\")\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: colord(value).toRgbString();\n\t\t\t} else {\n\t\t\t\tconvertedValue = colord(value).toRgbString();\n\n\t\t\t\t// Force to set the alpha value.\n\t\t\t\tif (\n\t\t\t\t\tconvertedValue.includes(\"rgb\") &&\n\t\t\t\t\t!convertedValue.includes(\"rgba\")\n\t\t\t\t) {\n\t\t\t\t\tconvertedValue = convertedValue.replace(\"rgb\", \"rgba\");\n\t\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\t/**\n\t\t * The RgbaStringColorPicker is used by these condition:\n\t\t * 1. When formComponent is defined with RgbaColorPicker as the value.\n\t\t * 2. When formComponent is not defined but the \"alpha\" choice is set to true.\n\t\t */\n\t\tcase \"RgbaStringColorPicker\":\n\t\t\trgba = colord(value).toRgb();\n\n\t\t\t// When it uses the 2nd condition above, then the expected value is \"hex\".\n\t\t\tif (rgba.a == 1 && !formComponent) {\n\t\t\t\tconvertedValue =\n\t\t\t\t\t\"string\" === typeof value && value.includes(\"#\")\n\t\t\t\t\t\t? value\n\t\t\t\t\t\t: colord(value).toHex();\n\t\t\t} else {\n\t\t\t\tconvertedValue = colord(value).toRgbString();\n\n\t\t\t\t// Force to set the alpha value.\n\t\t\t\tif (\n\t\t\t\t\tconvertedValue.includes(\"rgb\") &&\n\t\t\t\t\t!convertedValue.includes(\"rgba\")\n\t\t\t\t) {\n\t\t\t\t\tconvertedValue = convertedValue.replace(\"rgb\", \"rgba\");\n\t\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase \"HslColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"hsl(\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toHslString();\n\t\t\tbreak;\n\n\t\tcase \"HslStringColorPicker\":\n\t\t\tconvertedValue =\n\t\t\t\t\"string\" === typeof value && value.includes(\"hsl(\")\n\t\t\t\t\t? value\n\t\t\t\t\t: colord(value).toHslString();\n\t\t\tbreak;\n\n\t\tcase \"HslaColorPicker\":\n\t\t\tconvertedValue = colord(value).toHslString();\n\n\t\t\t// Force to set the alpha value.\n\t\t\tif (convertedValue.includes(\"hsl\") && !convertedValue.includes(\"hsla\")) {\n\t\t\t\tconvertedValue = convertedValue.replace(\"hsl\", \"hsla\");\n\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase \"HslaStringColorPicker\":\n\t\t\tconvertedValue = colord(value).toHslString();\n\n\t\t\t// Force to set the alpha value.\n\t\t\tif (convertedValue.includes(\"hsl\") && !convertedValue.includes(\"hsla\")) {\n\t\t\t\tconvertedValue = convertedValue.replace(\"hsl\", \"hsla\");\n\t\t\t\tconvertedValue = convertedValue.replace(\")\", \", 1)\");\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\t/**\n\t\t * The colord library doesn't provide .toHsvString() method yet.\n\t\t * This manual value-building will apply to \"hsv\" and \"hsva\" stuff below.\n\t\t */\n\t\tcase \"HsvColorPicker\":\n\t\t\thsv = colord(value).toHsv();\n\t\t\tconvertedValue = \"hsv(\" + hsv.h + \", \" + hsv.s + \"%, \" + hsv.v + \"%)\";\n\t\t\tbreak;\n\n\t\tcase \"HsvStringColorPicker\":\n\t\t\thsv = colord(value).toHsv();\n\t\t\tconvertedValue = \"hsv(\" + hsv.h + \", \" + hsv.s + \"%, \" + hsv.v + \"%)\";\n\t\t\tbreak;\n\n\t\tcase \"HsvaColorPicker\":\n\t\t\thsva = colord(value).toHsv();\n\t\t\tconvertedValue =\n\t\t\t\t\"hsva(\" +\n\t\t\t\thsva.h +\n\t\t\t\t\", \" +\n\t\t\t\thsva.s +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.v +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.a +\n\t\t\t\t\")\";\n\t\t\tbreak;\n\n\t\tcase \"HsvaStringColorPicker\":\n\t\t\thsva = colord(value).toHsv();\n\t\t\tconvertedValue =\n\t\t\t\t\"hsva(\" +\n\t\t\t\thsva.h +\n\t\t\t\t\", \" +\n\t\t\t\thsva.s +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.v +\n\t\t\t\t\"%, \" +\n\t\t\t\thsva.a +\n\t\t\t\t\")\";\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tconvertedValue = colord(value).toHex();\n\t\t\tbreak;\n\t}\n\n\treturn convertedValue;\n};\n\nexport default convertColorForInput;\n","import { useEffect } from \"react\";\n\n/**\n * Code was taken and then modified from https://codesandbox.io/s/opmco?file=/src/useClickOutside.js:0-1192\n * It was improved version of https://usehooks.com/useOnClickOutside/\n */\nconst useClickOutside = (pickerRef, resetRef, handler) => {\n\tuseEffect(() => {\n\t\tlet startedWhenMounted = false;\n\t\tlet startedInside = false;\n\n\t\tconst listener = (event) => {\n\t\t\t// Do nothing if `mousedown` or `touchstart` started either inside resetRef or pickerRef element\n\t\t\tif (!startedWhenMounted || startedInside) return;\n\n\t\t\t// Do nothing if clicking resetRef's element or descendent elements\n\t\t\tif (!resetRef.current || resetRef.current.contains(event.target)) return;\n\n\t\t\t// Do nothing if clicking pickerRef's element or descendent elements\n\t\t\tif (!pickerRef.current || pickerRef.current.contains(event.target))\n\t\t\t\treturn;\n\n\t\t\thandler();\n\t\t};\n\n\t\tconst validateEventStart = (event) => {\n\t\t\tstartedWhenMounted = resetRef.current && pickerRef.current;\n\t\t\tstartedInside =\n\t\t\t\t(resetRef.current && resetRef.current.contains(event.target)) ||\n\t\t\t\t(pickerRef.current && pickerRef.current.contains(event.target));\n\t\t};\n\n\t\tdocument.addEventListener(\"mousedown\", validateEventStart);\n\t\tdocument.addEventListener(\"touchstart\", validateEventStart);\n\t\tdocument.addEventListener(\"click\", listener);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"mousedown\", validateEventStart);\n\t\t\tdocument.removeEventListener(\"touchstart\", validateEventStart);\n\t\t\tdocument.removeEventListener(\"click\", listener);\n\t\t};\n\t}, [resetRef, pickerRef, handler]);\n};\n\nexport default useClickOutside;\n","import { useEffect } from \"react\";\n\nconst useFocusOutside = (ref, handler) => {\n\tuseEffect(() => {\n\t\tconst listener = (e) => {\n\t\t\t// Do nothing if the component hasn't been mounted.\n\t\t\tif (!ref.current) return;\n\n\t\t\t// Do nothing if the focused element is inside the ref or the ref it self.\n\t\t\tif (ref.current.contains(e.target)) return;\n\n\t\t\thandler();\n\t\t};\n\n\t\tdocument.addEventListener(\"focus\", listener, true);\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"focus\", listener, true);\n\t\t};\n\t}, [ref, handler]);\n};\n\nexport default useFocusOutside;\n","import { useEffect } from \"react\";\n\nconst useWindowResize = (handler) => {\n\tuseEffect(() => {\n\t\tconst listener = (e) => {\n\t\t\thandler();\n\t\t};\n\n\t\twindow.addEventListener(\"resize\", listener, true);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener(\"resize\", listener, true);\n\t\t};\n\t}, [handler]);\n};\n\nexport default useWindowResize;\n","import { useState, useEffect } from \"react\";\nimport reactCSS from \"reactcss\";\n\nconst KirkiReactColorfulCircle = (props) => {\n\tconst { color = \"\" } = props;\n\tconst [value, setValue] = useState(() => color);\n\n\t// Update the local state when `color` property value is changed.\n\tuseEffect(() => {\n\t\t// We don't need to convert the color since it's using the customizer value.\n\t\tsetValue(color);\n\t}, [color]);\n\n\tconst pickersWithAlpha = [\n\t\t\"RgbaColorPicker\",\n\t\t\"RgbaStringColorPicker\",\n\t\t\"HslaColorPicker\",\n\t\t\"HslaStringColorPicker\",\n\t\t\"HsvaColorPicker\",\n\t\t\"HsvaStringColorPicker\",\n\t];\n\n\tconst styles = reactCSS({\n\t\tdefault: {\n\t\t\ttriggerButton: {\n\t\t\t\tbackgroundImage:\n\t\t\t\t\t'url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==\")',\n\t\t\t},\n\t\t\tcolorPreview: {\n\t\t\t\tbackgroundColor: value ? value : \"transparent\",\n\t\t\t},\n\t\t},\n\t});\n\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t \n\t\t
\n\t);\n};\n\nexport default KirkiReactColorfulCircle;\n","import { useState, useRef } from \"react\";\nimport {\n\tHexColorPicker,\n\tRgbColorPicker,\n\tRgbaColorPicker,\n\tRgbStringColorPicker,\n\tRgbaStringColorPicker,\n\tHslColorPicker,\n\tHslaColorPicker,\n\tHslStringColorPicker,\n\tHslaStringColorPicker,\n\tHsvColorPicker,\n\tHsvaColorPicker,\n\tHsvStringColorPicker,\n\tHsvaStringColorPicker,\n} from \"react-colorful\";\nimport KirkiReactColorfulInput from \"./js/components/KirkiReactColorfulInput\";\nimport KirkiReactColorfulSwatches from \"./js/components/KirkiReactColorfulSwatches\";\nimport convertColorForPicker from \"./js/utils/convertColorForPicker\";\nimport convertColorForCustomizer from \"./js/utils/convertColorForCustomizer\";\nimport convertColorForInput from \"./js/utils/convertColorForInput\";\nimport useClickOutside from \"./js/hooks/useClickOutside\";\nimport useFocusOutside from \"./js/hooks/useFocusOutside\";\nimport useWindowResize from \"./js/hooks/useWindowResize\";\nimport KirkiReactColorfulCircle from \"./js/components/KirkiReactColorfulCircle\";\nimport { colord } from \"colord\";\n\n/**\n * The form component of Kirki React Colorful.\n *\n * Globals:\n * _, wp, React, ReactDOM\n *\n * @param {Object} props The props for the component.\n * @returns The component element.\n */\nconst KirkiReactColorfulForm = (props) => {\n\tconst { control, customizerSetting, useHueMode, pickerComponent, choices } =\n\t\tprops;\n\n\tconst parseEmptyValue = () => (useHueMode ? 0 : \"#000000\");\n\n\tconst parseHueModeValue = (hueValue) => {\n\t\thueValue = hueValue || parseEmptyValue();\n\t\thueValue = hueValue < 0 ? 0 : hueValue;\n\n\t\treturn hueValue > 360 ? 360 : hueValue;\n\t};\n\n\tconst parseInputValue = (value) => {\n\t\tif (\"\" === value) return \"\";\n\n\t\treturn useHueMode\n\t\t\t? parseHueModeValue(value)\n\t\t\t: convertColorForInput(\n\t\t\t\t\tvalue,\n\t\t\t\t\tpickerComponent,\n\t\t\t\t\tchoices.formComponent\n\t\t\t ).replace(\";\", \"\");\n\t};\n\n\tconst parseCustomizerValue = (value) => {\n\t\tif (\"\" === value) return \"\";\n\n\t\treturn convertColorForCustomizer(\n\t\t\tvalue,\n\t\t\tpickerComponent,\n\t\t\tchoices.formComponent\n\t\t);\n\t};\n\n\tconst parsePickerValue = (value) => {\n\t\tvalue = value || parseEmptyValue();\n\n\t\t// Hard coded saturation and lightness when using hue mode.\n\t\treturn useHueMode\n\t\t\t? { h: value, s: 100, l: 50 }\n\t\t\t: convertColorForPicker(value, pickerComponent);\n\t};\n\n\tconst [inputValue, setInputValue] = useState(() => {\n\t\treturn parseInputValue(props.value);\n\t});\n\n\tconst [pickerValue, setPickerValue] = useState(() => {\n\t\treturn parsePickerValue(props.value);\n\t});\n\n\tlet currentInputValue = inputValue;\n\tlet currentPickerValue = pickerValue;\n\n\t// This function will be called when this control's customizer value is changed.\n\tcontrol.updateComponentState = (value) => {\n\t\tconst valueForInput = parseInputValue(value);\n\t\tlet changeInputValue = false;\n\n\t\tif (typeof valueForInput === \"string\" || useHueMode) {\n\t\t\tchangeInputValue = valueForInput !== inputValue;\n\t\t} else {\n\t\t\tchangeInputValue =\n\t\t\t\tJSON.stringify(valueForInput) !== JSON.stringify(currentInputValue);\n\t\t}\n\n\t\tif (changeInputValue) setInputValue(valueForInput);\n\n\t\tconst valueForPicker = parsePickerValue(value);\n\t\tlet changePickerValue = false;\n\n\t\tif (typeof valueForPicker === \"string\" || useHueMode) {\n\t\t\tchangePickerValue = valueForPicker !== pickerValue;\n\t\t} else {\n\t\t\tchangePickerValue =\n\t\t\t\tJSON.stringify(valueForPicker) !== JSON.stringify(currentPickerValue);\n\t\t}\n\n\t\tif (changePickerValue) setPickerValue(valueForPicker);\n\t};\n\n\tconst saveToCustomizer = (value) => {\n\t\tif (useHueMode) {\n\t\t\t/**\n\t\t\t * When using hue mode, the pickerComponent is HslColorPicker.\n\t\t\t * If there is value.h, then value is set from the picker.\n\t\t\t * Otherwise, value is set from the input or the customizer.\n\t\t\t */\n\t\t\tvalue = value.h || 0 === value.h ? value.h : value;\n\t\t\tvalue = parseHueModeValue(value);\n\t\t} else {\n\t\t\tvalue = parseCustomizerValue(value);\n\t\t}\n\n\t\tcustomizerSetting.set(value);\n\t};\n\n\tconst initialColor =\n\t\t\"\" !== props.default && \"undefined\" !== typeof props.default\n\t\t\t? props.default\n\t\t\t: props.value;\n\n\t/**\n\t * Function to run on picker change.\n\t *\n\t * @param {string|Object} color The value returned by the picker. It can be a string or a color object.\n\t */\n\tconst handlePickerChange = (color) => {\n\t\tif (props.onChange) props.onChange(color);\n\t\tcurrentPickerValue = color;\n\t\tsaveToCustomizer(color);\n\t};\n\n\tconst handleInputChange = (value) => {\n\t\tcurrentInputValue = value;\n\t\tsaveToCustomizer(value);\n\t};\n\n\tconst handleReset = () => {\n\t\tif (!initialColor) {\n\t\t\tcurrentInputValue = \"\";\n\t\t\tcurrentPickerValue = \"\";\n\t\t}\n\n\t\tsaveToCustomizer(initialColor);\n\t};\n\n\tconst handleSwatchesClick = (swatchColor) => {\n\t\tsaveToCustomizer(swatchColor);\n\t};\n\n\tconst handleWindowResize = () => {\n\t\tsetPickerContainerStyle(getPickerContainerStyle());\n\t};\n\n\tlet controlLabel = (\n\t\t \n\t);\n\n\tlet controlDescription = (\n\t\t \n\t);\n\n\tcontrolLabel = (\n\t\t\n\t\t\t{props.label ? controlLabel : \"\"}\n\t\t\t{props.description ? controlDescription : \"\"}\n\t\t \n\t);\n\n\tcontrolLabel = props.label || props.description ? controlLabel : \"\";\n\n\tconst formRef = useRef(null); // Reference to the form div.\n\tconst pickerRef = useRef(null); // Reference to the picker popup.\n\tconst resetRef = useRef(null); // Reference to the picker popup.\n\n\tconst [isPickerOpen, setIsPickerOpen] = useState(false);\n\n\tconst usePositionFixed = \"default\" !== choices.labelStyle ? true : false;\n\n\tconst [pickerContainerStyle, setPickerContainerStyle] = useState({});\n\n\tconst getPickerContainerStyle = () => {\n\t\tlet pickerContainerStyle = {};\n\n\t\tif (!usePositionFixed) return pickerContainerStyle;\n\n\t\tlet padding = window.getComputedStyle(\n\t\t\tcontrol.container[0].parentNode\n\t\t).paddingLeft;\n\t\tpadding = parseInt(padding, 10) * 2;\n\n\t\tpickerContainerStyle.width =\n\t\t\tcontrol.container[0].parentNode.getBoundingClientRect().width - padding;\n\n\t\tconst controlLeftOffset = (control.container[0].offsetLeft - 9) * -1;\n\n\t\tpickerContainerStyle.left = controlLeftOffset + \"px\";\n\n\t\treturn pickerContainerStyle;\n\t};\n\n\tconst convertInputValueTo6Digits = () => {\n\t\tif (4 === inputValue.length && inputValue.includes(\"#\")) {\n\t\t\tsetInputValue(colord(inputValue).toHex());\n\t\t}\n\t};\n\n\tconst togglePicker = () => {\n\t\tif (isPickerOpen) {\n\t\t\tclosePicker();\n\t\t} else {\n\t\t\topenPicker();\n\t\t}\n\t};\n\n\tconst openPicker = () => {\n\t\tif (isPickerOpen) return;\n\n\t\tsetPickerContainerStyle(getPickerContainerStyle());\n\t\tconvertInputValueTo6Digits();\n\t\tsetIsPickerOpen(true);\n\t};\n\n\tconst closePicker = () => {\n\t\tif (!isPickerOpen) return;\n\n\t\tsetIsPickerOpen(false);\n\t\tsetTimeout(convertInputValueTo6Digits, 200);\n\t};\n\n\tlet KirkiPickerComponent;\n\n\t// We can't just render `pickerComponent` directly, we need these lines so that the compiler will import them.\n\tswitch (pickerComponent) {\n\t\tcase \"HexColorPicker\":\n\t\t\tKirkiPickerComponent = HexColorPicker;\n\t\t\tbreak;\n\t\tcase \"RgbColorPicker\":\n\t\t\tKirkiPickerComponent = RgbColorPicker;\n\t\t\tbreak;\n\t\tcase \"RgbStringColorPicker\":\n\t\t\tKirkiPickerComponent = RgbStringColorPicker;\n\t\t\tbreak;\n\t\tcase \"RgbaColorPicker\":\n\t\t\tKirkiPickerComponent = RgbaColorPicker;\n\t\t\tbreak;\n\t\tcase \"RgbaStringColorPicker\":\n\t\t\tKirkiPickerComponent = RgbaStringColorPicker;\n\t\t\tbreak;\n\t\t// We treat HueColorPicker (hue mode) as HslColorPicker.\n\t\tcase \"HueColorPicker\":\n\t\t\tKirkiPickerComponent = HslColorPicker;\n\t\t\tbreak;\n\t\tcase \"HslColorPicker\":\n\t\t\tKirkiPickerComponent = HslColorPicker;\n\t\t\tbreak;\n\t\tcase \"HslStringColorPicker\":\n\t\t\tKirkiPickerComponent = HslStringColorPicker;\n\t\t\tbreak;\n\t\tcase \"HslaColorPicker\":\n\t\t\tKirkiPickerComponent = HslaColorPicker;\n\t\t\tbreak;\n\t\tcase \"HslaStringColorPicker\":\n\t\t\tKirkiPickerComponent = HslaStringColorPicker;\n\t\t\tbreak;\n\t\tcase \"HsvColorPicker\":\n\t\t\tKirkiPickerComponent = HsvColorPicker;\n\t\t\tbreak;\n\t\tcase \"HsvStringColorPicker\":\n\t\t\tKirkiPickerComponent = HsvStringColorPicker;\n\t\t\tbreak;\n\t\tcase \"HsvaColorPicker\":\n\t\t\tKirkiPickerComponent = HsvaColorPicker;\n\t\t\tbreak;\n\t\tcase \"HsvaStringColorPicker\":\n\t\t\tKirkiPickerComponent = HsvaStringColorPicker;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tKirkiPickerComponent = HexColorPicker;\n\t\t\tbreak;\n\t}\n\n\tuseWindowResize(handleWindowResize);\n\n\t// Handle outside focus to close the picker popup.\n\tuseFocusOutside(formRef, closePicker);\n\n\t// Handle outside click to close the picker popup.\n\tuseClickOutside(pickerRef, resetRef, closePicker);\n\n\tif (jQuery.wp && jQuery.wp.wpColorPicker) {\n\t\tconst wpColorPickerSwatches =\n\t\t\tjQuery.wp.wpColorPicker.prototype.options.palettes;\n\n\t\t// If 3rd parties applied custom colors to wpColorPicker swatches, let's use them.\n\t\tif (Array.isArray(wpColorPickerSwatches)) {\n\t\t\tif (wpColorPickerSwatches.length < 8) {\n\t\t\t\tfor (let i = wpColorPickerSwatches.length; i <= 8; i++) {\n\t\t\t\t\twpColorPickerSwatches.push(choices.swatches[i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tchoices.swatches = wpColorPickerSwatches;\n\t\t}\n\t}\n\n\tconst controlHeader = (\n\t\t<>\n\t\t\t{controlLabel}\n\t\t\t
\n\t\t>\n\t);\n\n\tlet formClassName = useHueMode\n\t\t? \"kirki-control-form use-hue-mode\"\n\t\t: \"kirki-control-form\";\n\n\tformClassName += \" has-\" + choices.labelStyle + \"-label-style\";\n\n\tlet pickerContainerClassName = isPickerOpen\n\t\t? pickerComponent + \" colorPickerContainer is-open\"\n\t\t: pickerComponent + \" colorPickerContainer\";\n\n\tconst pickerTrigger = (\n\t\t<>\n\t\t\t\n\t\t\t\t \n\t\t\t \n\n\t\t\t \n\t\t>\n\t);\n\n\tlet pickerHeader;\n\n\tswitch (choices.labelStyle) {\n\t\tcase \"tooltip\":\n\t\t\tpickerHeader = (\n\t\t\t\t<>\n\t\t\t\t\t{pickerTrigger}\n\t\t\t\t\t{!isPickerOpen && (\n\t\t\t\t\t\t{controlHeader}
\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t);\n\t\t\tbreak;\n\n\t\tcase \"top\":\n\t\t\tpickerHeader = (\n\t\t\t\t<>\n\t\t\t\t\t{controlHeader}\n\t\t\t\t\t{pickerTrigger}\n\t\t\t\t>\n\t\t\t);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tpickerHeader = (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\t\t
{controlHeader}
\n\t\t\t\t\t\t
{pickerTrigger}
\n\t\t\t\t\t
\n\t\t\t\t>\n\t\t\t);\n\t\t\tbreak;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{pickerHeader}\n\t\t\t\t
\n\t\t\t\t\t{!useHueMode && (\n\t\t\t\t\t\t \n\t\t\t\t\t)}\n\n\t\t\t\t\t \n\n\t\t\t\t\t \n\t\t\t\t
\n\t\t\t
\n\t\t>\n\t);\n};\n\nexport default KirkiReactColorfulForm;\n","import ReactDOM from \"react-dom\";\nimport KirkiReactColorfulForm from \"./KirkiReactColorfulForm\";\n\n/**\n * KirkiReactColorfulControl.\n *\n * @class\n * @augments wp.customize.Control\n * @augments wp.customize.Class\n */\nconst KirkiReactColorfulControl = wp.customize.Control.extend({\n\t/**\n\t * Initialize.\n\t *\n\t * @param {string} id - Control ID.\n\t * @param {object} params - Control params.\n\t */\n\tinitialize: function (id, params) {\n\t\tconst control = this;\n\n\t\t// Bind functions to this control context for passing as React props.\n\t\tcontrol.setNotificationContainer =\n\t\t\tcontrol.setNotificationContainer.bind(control);\n\n\t\twp.customize.Control.prototype.initialize.call(control, id, params);\n\n\t\t// The following should be eliminated with .\n\t\tfunction onRemoved(removedControl) {\n\t\t\tif (control === removedControl) {\n\t\t\t\tcontrol.destroy();\n\t\t\t\tcontrol.container.remove();\n\t\t\t\twp.customize.control.unbind(\"removed\", onRemoved);\n\t\t\t}\n\t\t}\n\t\twp.customize.control.bind(\"removed\", onRemoved);\n\t},\n\n\t/**\n\t * Set notification container and render.\n\t *\n\t * This is called when the React component is mounted.\n\t *\n\t * @param {Element} element - Notification container.\n\t * @returns {void}\n\t */\n\tsetNotificationContainer: function setNotificationContainer(element) {\n\t\tconst control = this;\n\t\tcontrol.notifications.container = jQuery(element);\n\t\tcontrol.notifications.render();\n\t},\n\n\t/**\n\t * Render the control into the DOM.\n\t *\n\t * This is called from the Control#embed() method in the parent class.\n\t *\n\t * @returns {void}\n\t */\n\trenderContent: function renderContent() {\n\t\tconst control = this;\n\t\tconst useHueMode = \"hue\" === control.params.mode;\n\t\tconst choices = control.params.choices;\n\n\t\tlet pickerComponent;\n\n\t\tif (choices.formComponent) {\n\t\t\tpickerComponent = choices.formComponent;\n\t\t} else {\n\t\t\tpickerComponent = choices.alpha\n\t\t\t\t? \"RgbaStringColorPicker\"\n\t\t\t\t: \"HexColorPicker\";\n\t\t}\n\n\t\tpickerComponent = useHueMode ? \"HueColorPicker\" : pickerComponent;\n\n\t\tconst form = (\n\t\t\t \n\t\t);\n\n\t\tReactDOM.render(form, control.container[0]);\n\t},\n\n\t/**\n\t * After control has been first rendered, start re-rendering when setting changes.\n\t *\n\t * React is able to be used here instead of the wp.customize.Element abstraction.\n\t *\n\t * @returns {void}\n\t */\n\tready: function ready() {\n\t\tconst control = this;\n\n\t\t/**\n\t\t * Update component state when customizer setting changes.\n\t\t *\n\t\t * There was an issue (which was fixed):\n\t\t *\n\t\t * Let's say we have other color picker (\"x\" color picker) and this current color picker (\"y\" color picker).\n\t\t * Let's say there's a script that bind to that \"x\" color picker to make change to this \"y\" color picker.\n\t\t *\n\t\t * When \"x\" color picker is changed fast (by dragging the color, for example),\n\t\t * then the re-render of this \"y\" color picker will be messy.\n\t\t * There was something like \"function-call race\" between component re-render and function call inside the component.\n\t\t *\n\t\t * When that happens, the \"x\" color picker becomes unresponsive and un-usable.\n\t\t *\n\t\t * How we fixed that:\n\t\t * - Provide a updateComponentState property to this file.\n\t\t * - Inside the component, assign the updateComponentState with a function to update some states.\n\t\t * - Then inside the binding below, call updateComponentState instead of re-rendering the component.\n\t\t *\n\t\t * The result: Even though the \"x\" color picker becomes very slow, it's still usable and responsive enough.\n\t\t */\n\t\tcontrol.setting.bind((val) => {\n\t\t\tcontrol.updateComponentState(val);\n\t\t});\n\t},\n\n\tupdateComponentState: () => {},\n\n\t/**\n\t * Handle removal/de-registration of the control.\n\t *\n\t * This is essentially the inverse of the Control#embed() method.\n\t *\n\t * @link https://core.trac.wordpress.org/ticket/31334\n\t * @returns {void}\n\t */\n\tdestroy: function destroy() {\n\t\tconst control = this;\n\n\t\t// Garbage collection: undo mounting that was done in the embed/renderContent method.\n\t\tReactDOM.unmountComponentAtNode(control.container[0]);\n\n\t\t// Call destroy method in parent if it exists (as of #31334).\n\t\tif (wp.customize.Control.prototype.destroy) {\n\t\t\twp.customize.Control.prototype.destroy.call(control);\n\t\t}\n\t},\n});\n\nexport default KirkiReactColorfulControl;\n","/* global wp */\n\nimport \"./control.scss\";\nimport KirkiReactColorfulControl from './KirkiReactColorfulControl';\n\n// Register control type with Customizer.\nwp.customize.controlConstructor['kirki-react-colorful'] = KirkiReactColorfulControl;\n"],"names":["$8ThvE","parcelRequire","freeExports","exports","nodeType","freeModule","module","Buffer","undefined","isBuffer","$jjS2x","$lyxRX","$67910ad3df1b1086$var$freeSelf","self","Object","$67910ad3df1b1086$var$root","Function","$fb170ba8a9c2191f$var$freeGlobal","$parcel$global","freeProcess","process","nodeUtil","types","require","binding","e","allocUnsafe","buffer","isDeep","slice","length","result","constructor","copy","$a735c72dc00321c4$export$2e2bcd8739ae039","arr","len","i","arr2","Array","$d8de0eb6e0dd5f0d$export$2e2bcd8739ae039","isArray","$6e00726c30bb8aa8$export$2e2bcd8739ae039","iter","Symbol","iterator","from","$8664303016091545$export$2e2bcd8739ae039","o","minLen","n","prototype","toString","call","name","test","$09f7b49357d6407d$export$2e2bcd8739ae039","TypeError","$9e1e3aff84b72d71$export$2e2bcd8739ae039","$ee4fec65ef715af7$export$2e2bcd8739ae039","obj","ReactDOM","useEventCallback","handler","callbackRef","useRef","fn","value","current","React","clamp","number","min","max","isTouch","event","getParentWindow","node","ownerDocument","defaultView","getRelativePosition","touchId","rect","getBoundingClientRect","pointer","touches","identifier","left","pageX","pageXOffset","width","top","pageY","pageYOffset","height","preventDefaultMove","preventDefault","Interactive","memo","onMove","onKey","rest","container","onMoveCallback","onKeyCallback","hasTouch","x","useMemo","handleMove","buttons","toggleDocumentEvents","handleMoveEnd","state","touch","parentWindow","toggleEvent","addEventListener","removeEventListener","e3","nativeEvent","el","changedTouches","focus","keyCode","which","handleMoveStart","handleKeyDown","useEffect","onTouchStart","onMouseDown","className","ref","onKeyDown","tabIndex","role","formatClassName","names","filter","Boolean","join","Pointer","r","color","nodeClassName","style","backgroundColor","round","digits","base","Math","pow","angleUnits","grad","turn","rad","PI","hexToRgba","hex","substr","parseInt","g","b","a","parseHue","unit","Number","hslaStringToHsva","hslString","match","exec","hslaToHsva","h","s","l","v","hslStringToHsva","hsvaToHsla","hh","hsvaToHslString","hsva","hsvaToHslaString","hsvaToRgba","floor","c","d","hsvaStringToHsva","hsvString","roundHsva","hsvStringToHsva","rgbaStringToHsva","rgbaString","rgbaToHsva","rgbStringToHsva","format","delta","Hue","hue","onChange","interaction","offset","aria-label","aria-valuetext","Saturation","containerStyle","equalColorObjects","first","second","prop","equalColorString","replace","useColorManipulation","colorModel","onChangeCallback","useState","toHsva","updateHsva","cache","equal","newHsva","newColor","fromHsva","handleChange","useCallback","params","assign","nonce","useIsomorphicLayoutEffect","window","useLayoutEffect","styleElementMap","Map","useStyleSheet","nodeRef","parentDocument","document","has","styleElement","createElement","innerHTML","set","__webpack_nonce__","setAttribute","head","appendChild","ColorPicker","t","defaultColor","toLowerCase","HexColorPicker","props","Alpha","gradientStyle","backgroundImage","AlphaColorPicker","HslaColorPicker","HslaStringColorPicker","HslColorPicker","HslStringColorPicker","HsvaColorPicker","HsvaStringColorPicker","HsvColorPicker","HsvStringColorPicker","RgbaColorPicker","RgbaStringColorPicker","RgbColorPicker","RgbStringColorPicker","defineProperty","$e812653e67a6d710$exports","ReactCSS","loop","handleActive","handleHover","hover","$f318b0aeed5cca99$exports","flattenNames","$a090581360ce8173$exports","$f2cc4cee927d37c7$var$objectProto","$f2cc4cee927d37c7$var$hasOwnProperty","hasOwnProperty","$f2cc4cee927d37c7$var$nativeObjectToString","$f2cc4cee927d37c7$var$symToStringTag","toStringTag","$f2cc4cee927d37c7$exports","isOwn","tag","unmasked","$934b51efa189f09c$var$nativeObjectToString","$934b51efa189f09c$exports","$852d1f971b259156$var$symToStringTag","$852d1f971b259156$exports","$8cb3ae215df00a00$var$isArray","$8cb3ae215df00a00$exports","$5475ba594a8bdf91$exports","$f318b0aeed5cca99$var$_isString3","$f318b0aeed5cca99$var$_interopRequireDefault","$964779a63aa00972$var$baseFor","fromRight","object","iteratee","keysFunc","index","iterable","key","$5167005b932b675c$exports","$964779a63aa00972$exports","$29cd5707c05bf6b8$exports","$673e072344569ebe$exports","$c09020d853f4dd56$var$objectProto","$c09020d853f4dd56$var$hasOwnProperty","$c09020d853f4dd56$var$propertyIsEnumerable","propertyIsEnumerable","$c09020d853f4dd56$var$isArguments","arguments","$c09020d853f4dd56$exports","$1a5c8861aefb5e25$var$reIsUint","$1a5c8861aefb5e25$exports","type","$9ad3d04370aa37c9$exports","$404e7686b4834cf1$var$typedArrayTags","$404e7686b4834cf1$exports","$a37b20fb7156577b$exports","func","$32e7db2a0777bb6d$var$nodeIsTypedArray","$7vc1R","isTypedArray","$32e7db2a0777bb6d$var$isTypedArray","$32e7db2a0777bb6d$exports","$1a01a48c6e6e7ac2$var$hasOwnProperty","$1a01a48c6e6e7ac2$exports","inherited","isArr","isArg","isBuff","$7HKs8","isType","skipIndexes","String","push","$9fb63971f28e98ce$var$objectProto","$9fb63971f28e98ce$exports","Ctor","$d1eeca103b9aa761$var$nativeKeys","$10bd1c09b9f64069$exports","transform","arg","keys","$d1eeca103b9aa761$exports","$eb634362e8bab00b$var$hasOwnProperty","$eb634362e8bab00b$exports","$db5dfd0661742a1a$exports","$63bef038e059393f$exports","$887f7dd95a2dee62$exports","$b104760b34d6b7b1$exports","$c40d9c5aec6b4ec6$exports","$836ffceb73715ab3$exports","$a83757e5168931b6$exports","$f318b0aeed5cca99$var$_forOwn3","$29f32b5d9ce7155d$exports","$7a9433312306cf5b$var$getPrototype","getPrototypeOf","$7a9433312306cf5b$exports","$58f2645d8a82ddb4$var$funcProto","$58f2645d8a82ddb4$var$objectProto","$58f2645d8a82ddb4$var$funcToString","$58f2645d8a82ddb4$var$hasOwnProperty","$58f2645d8a82ddb4$var$objectCtorString","$f318b0aeed5cca99$var$_isPlainObject3","proto","$c0d7b47ee8b12bf1$exports","array","$ed640afc4605eeaf$exports","this","__data__","size","$6f80be9883321bbe$exports","other","$a5c18ae4f7c751db$exports","$8dacab0aad959c1a$var$splice","splice","$8dacab0aad959c1a$exports","data","pop","$822f7d857aa2dcb8$exports","$5edb34374c74a495$exports","$9655ef897f0bbdba$var$ListCache","entries","clear","entry","$315b693937a70245$exports","get","$9655ef897f0bbdba$exports","$f4765b9de3cd25a2$exports","$4e48da7de9bc0080$exports","$21c09588dffa6b32$exports","$2739006159eb7a0c$exports","uid","$69576d09d95c0935$var$coreJsData","$989d09d10c86a3af$var$maskSrcKey","$69576d09d95c0935$exports","IE_PROTO","$989d09d10c86a3af$exports","$3d1b4ae41857d3b0$var$funcToString","$3d1b4ae41857d3b0$exports","e1","$105e649bd3deec51$var$reIsHostCtor","$105e649bd3deec51$var$funcProto","$105e649bd3deec51$var$objectProto","$105e649bd3deec51$var$funcToString","$105e649bd3deec51$var$hasOwnProperty","$105e649bd3deec51$var$reIsNative","RegExp","$105e649bd3deec51$exports","$5c63d0177b86ffa5$exports","$97e6c72a80d118d2$exports","$1b8f1205e4056240$var$Map","$1b8f1205e4056240$exports","$1a89124de4ced368$var$nativeCreate","$1a89124de4ced368$exports","$8fe1870119bc2ce4$exports","$7b046508d0c4b2bb$exports","$570123ba6240e679$var$hasOwnProperty","$570123ba6240e679$exports","$75e6b0027cb55f48$var$hasOwnProperty","$75e6b0027cb55f48$exports","$1e733182a9700f13$var$Hash","$315cb19b5f7dc6c3$exports","$1e733182a9700f13$exports","$b06f33fda863a736$exports","hash","map","string","$3bd39081531a18a3$exports","$ee96f1b7eaa44ac5$exports","$5f4eea80c864f4a3$exports","$54d2d6191fb8ab24$exports","$e8338a2a89515313$exports","$f6389c21d76f2f82$var$MapCache","$26a7fc4b70d5469b$exports","$f6389c21d76f2f82$exports","$8bfbce7e35b86105$var$Stack","$0ab5431b23eb293c$exports","pairs","$0ab5431b23eb293c$var$LARGE_ARRAY_SIZE","$8bfbce7e35b86105$exports","$868090bb248ca2fc$exports","$32da07863e46acec$var$SetCache","values","add","$ba2e6a93841338dc$exports","$32da07863e46acec$exports","$71c492a50c15e5ea$exports","predicate","$c0081f1c22a5c7b6$exports","$d78075cec53d5845$exports","bitmask","customizer","equalFunc","stack","isPartial","arrLength","othLength","arrStacked","othStacked","seen","arrValue","othValue1","compared","othValue","othIndex","$ddf8457b0c355418$var$Uint8Array","Uint8Array","$ddf8457b0c355418$exports","$65965bd4fe27ade2$exports","forEach","$eee7f5e5109334c4$exports","$a632bfd5cacb9484$var$symbolProto","$a632bfd5cacb9484$var$symbolValueOf","valueOf","$a632bfd5cacb9484$exports","byteLength","byteOffset","message","convert","stacked","$3fc9dba05ba16d53$exports","$9d3e3231281d182b$exports","symbolsFunc","$68bbccdd4a21a80e$exports","resIndex","$11b31dfc90d4eeeb$exports","$0eabf8f27c57cf11$var$propertyIsEnumerable","$0eabf8f27c57cf11$var$nativeGetSymbols","getOwnPropertySymbols","$0eabf8f27c57cf11$exports","symbol","$860bb4b6843d7563$exports","$b4663e3cbde1ff22$var$hasOwnProperty","$b4663e3cbde1ff22$exports","objProps","objLength","objStacked","skipCtor","objValue","objCtor","othCtor","$17dcac0166b81916$exports","$94f6808d7ce0e1fd$exports","$1a2f39184944fa46$exports","$7138f8441ce5e43e$exports","$e16b2168665de4fd$var$mapTag","$e16b2168665de4fd$var$promiseTag","$e16b2168665de4fd$var$setTag","$e16b2168665de4fd$var$weakMapTag","$e16b2168665de4fd$var$dataViewTag","$e16b2168665de4fd$var$dataViewCtorString","$e16b2168665de4fd$var$mapCtorString","$e16b2168665de4fd$var$promiseCtorString","$e16b2168665de4fd$var$setCtorString","$e16b2168665de4fd$var$weakMapCtorString","$e16b2168665de4fd$var$getTag","ArrayBuffer","resolve","ctorString","$e16b2168665de4fd$exports","$bfbd466526f8d698$var$argsTag","$bfbd466526f8d698$var$arrayTag","$bfbd466526f8d698$var$objectTag","$bfbd466526f8d698$var$hasOwnProperty","$bfbd466526f8d698$exports","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","$6219f680e6e19178$exports","$6219f680e6e19178$var$baseIsEqual","$85df9b6b26a2a3d6$exports","source","matchData","noCustomizer","srcValue","$85df9b6b26a2a3d6$var$COMPARE_PARTIAL_FLAG","$fdfd165136cf00fc$exports","$9d7de89299ad2e3c$exports","$84046984492b1213$exports","$1a6ab9420533a54c$exports","$b7350b23d035986b$exports","$ebf30b1c72800438$var$reIsDeepProp","$ebf30b1c72800438$var$reIsPlainProp","$ebf30b1c72800438$exports","$af3456543921feb4$var$memoize","resolver","memoized","args","apply","Cache","$af3456543921feb4$exports","$2171f479fe1b9e27$var$rePropName","$2171f479fe1b9e27$var$reEscapeChar","$2171f479fe1b9e27$var$stringToPath","$b8ba2ed78ec192fa$exports","charCodeAt","quote","subString","$2171f479fe1b9e27$exports","$c59f41c766f8804e$var$symbolProto","$c59f41c766f8804e$var$symbolToString","$c59f41c766f8804e$exports","$c59f41c766f8804e$var$baseToString","$22f1dff9b3c6ff0c$exports","$026916563a5fc8ad$exports","$e56d6cac75d4b6e0$exports","$01f8d472cea3b7ad$exports","path","$37f57525b6598a05$exports","defaultValue","$c33ef5d4bef3db8d$exports","$f29e6f17be0e64f1$exports","hasFunc","$ef091009ae184c05$exports","$f70cedfd69c2edab$exports","$f70cedfd69c2edab$var$COMPARE_PARTIAL_FLAG","$805c81fb4b9151f2$exports","$93a5b3a3d4a8ecc6$exports","$3931b06dee0ed94b$exports","$52849359d0c345c9$exports","$eb9d77a605684a7d$var$baseEach","eachFunc","collection","$c808fa36ed14e2e9$exports","$eb9d77a605684a7d$exports","$20f6957cb6a19f51$exports","collection1","$f318b0aeed5cca99$var$_map3","__esModule","default","$f318b0aeed5cca99$var$flattenNames","things","thing","$e812653e67a6d710$var$_flattenNames2","$e812653e67a6d710$var$_interopRequireDefault","$d39edcb6084a59a9$exports","mergeClasses","$d39edcb6084a59a9$var$_forOwn3","$d39edcb6084a59a9$var$_interopRequireDefault","$e883f280c82ab4ba$exports","$f6dfd7dc5e5ac807$var$defineProperty","$f6dfd7dc5e5ac807$exports","$48f1054f3ca5da26$exports","configurable","enumerable","writable","$6a410827939ce210$var$hasOwnProperty","$6a410827939ce210$exports","$31c6b882f05692c6$exports","isNew","newValue","$2ce1a18ea44c4deb$exports","$292ee6609f4e7a59$exports","$a4e56b5838b2897c$var$hasOwnProperty","$a4e56b5838b2897c$exports","isProto","$9db77247add89d2e$exports","$2f9edf92839feaff$exports","$cf08566b5f17aa4f$exports","$f8d658d15a2edcd4$exports","$d5293e6fa7b2b339$var$nativeGetSymbols","$d5293e6fa7b2b339$exports","$928edd92858e1662$exports","$ddc827b5ca2f5f3f$exports","$7d0a900e76da2d15$var$hasOwnProperty","$7d0a900e76da2d15$exports","input","$7ab071444f25f0fd$exports","arrayBuffer","$ae5e74912e4ee32e$exports","dataView","$bb1b70f977046c2d$var$reFlags","$bb1b70f977046c2d$exports","regexp","lastIndex","$2974eb792905b227$var$symbolProto","$2974eb792905b227$var$symbolValueOf","$2974eb792905b227$exports","$265d56dce3afa249$exports","typedArray","$b5e8347885b983a5$exports","$e9b96b6ee5614800$var$objectCreate","create","$e9b96b6ee5614800$var$baseCreate","$e9b96b6ee5614800$exports","$cdfd1eab1ed286bf$exports","$334fb66d416be2f0$exports","$eaa21bf4e287fd7f$var$nodeIsMap","isMap","$eaa21bf4e287fd7f$var$isMap","$eaa21bf4e287fd7f$exports","$01afc3bfd7071a26$exports","$10f055afd4d7cf22$var$nodeIsSet","isSet","$10f055afd4d7cf22$var$isSet","$10f055afd4d7cf22$exports","$8d55860d9ee8b98c$var$argsTag","$8d55860d9ee8b98c$var$funcTag","$8d55860d9ee8b98c$var$objectTag","$8d55860d9ee8b98c$var$cloneableTags","$8d55860d9ee8b98c$exports","$8d55860d9ee8b98c$var$baseClone","key1","isFlat","isFull","isFunc","$4vs1M","subValue","$d39edcb6084a59a9$var$_cloneDeep3","$bd24f08a3e765b6f$var$CLONE_DEEP_FLAG","$d39edcb6084a59a9$var$_extends","target","$d39edcb6084a59a9$var$mergeClasses","classes","activeNames","styles","toMerge","$e812653e67a6d710$var$_mergeClasses2","$bc1af4bbd8db85dd$exports","autoprefix","$bc1af4bbd8db85dd$var$_forOwn3","$bc1af4bbd8db85dd$var$_extends","$bc1af4bbd8db85dd$var$transforms","borderRadius","msBorderRadius","MozBorderRadius","OBorderRadius","WebkitBorderRadius","boxShadow","msBoxShadow","MozBoxShadow","OBoxShadow","WebkitBoxShadow","userSelect","WebkitTouchCallout","KhtmlUserSelect","MozUserSelect","msUserSelect","WebkitUserSelect","flex","WebkitBoxFlex","MozBoxFlex","WebkitFlex","msFlex","flexBasis","WebkitFlexBasis","justifyContent","WebkitJustifyContent","transition","msTransition","MozTransition","OTransition","WebkitTransition","msTransform","MozTransform","OTransform","WebkitTransform","absolute","direction","split","position","right","bottom","extend","otherElementStyles","otherStyle","$bc1af4bbd8db85dd$var$autoprefix","elements","prefixed","element","expanded","$e812653e67a6d710$var$_autoprefix2","$5b17b1ddd0131a26$exports","$5b17b1ddd0131a26$var$_extends","$5b17b1ddd0131a26$var$_react2","$5b17b1ddd0131a26$var$_interopRequireDefault","$5b55226219c5badd$exports","$5b17b1ddd0131a26$var$_classCallCheck","instance","Constructor","$5b17b1ddd0131a26$var$_possibleConstructorReturn","ReferenceError","$5b17b1ddd0131a26$var$_inherits","subClass","superClass","setPrototypeOf","__proto__","$5b17b1ddd0131a26$var$hover","Component","Span","_React$Component","Hover","_ref","_temp","_this","_len","_key","concat","handleMouseOver","setState","handleMouseOut","render","onMouseOver","onMouseOut","$e812653e67a6d710$var$_hover3","$57d875dd202e8322$exports","active","$57d875dd202e8322$var$_extends","$57d875dd202e8322$var$_react2","$57d875dd202e8322$var$_interopRequireDefault","$57d875dd202e8322$var$_classCallCheck","$57d875dd202e8322$var$_possibleConstructorReturn","$57d875dd202e8322$var$_inherits","$57d875dd202e8322$var$active","Active","handleMouseDown","handleMouseUp","onMouseUp","$e812653e67a6d710$var$_active2","$8f2c5b5ba3983d7d$exports","setProp","abs","$e812653e67a6d710$var$_loop3","$e812653e67a6d710$var$ReactCSS","activations","merged","$d52980caa599fe1f$export$2e2bcd8739ae039","_color","setValue","val","includes","pattern","reactCSS","colorPreviewWrapper","pickerComponent","colorPreview","useHueMode","spellCheck","$35ca578fd17d5d2a$export$2e2bcd8739ae039","param","colors","onClick","clr","$eb935346a8ccb34a$var$r","$eb935346a8ccb34a$var$t","$eb935346a8ccb34a$var$n","_n","$eb935346a8ccb34a$var$e","$eb935346a8ccb34a$var$u","isFinite","$eb935346a8ccb34a$var$a","$eb935346a8ccb34a$var$o","$eb935346a8ccb34a$var$i","$eb935346a8ccb34a$var$s","$eb935346a8ccb34a$var$h","u","$eb935346a8ccb34a$var$b","$eb935346a8ccb34a$var$g","$eb935346a8ccb34a$var$d","$eb935346a8ccb34a$var$f","$eb935346a8ccb34a$var$c","$eb935346a8ccb34a$var$l","$eb935346a8ccb34a$var$p","$eb935346a8ccb34a$var$v","$eb935346a8ccb34a$var$m","$eb935346a8ccb34a$var$y","r1","$eb935346a8ccb34a$var$N","$eb935346a8ccb34a$var$x","trim","$eb935346a8ccb34a$var$M","$eb935346a8ccb34a$var$H","$eb935346a8ccb34a$var$$","$eb935346a8ccb34a$export$4d30ed660ff08d0","r2","parsed","rgba","isValid","brightness","isDark","isLight","toHex","_$r","toRgb","toRgbString","toHsl","toHslString","toHsv","invert","$eb935346a8ccb34a$export$c8efe09109f9cb9e","saturate","desaturate","grayscale","lighten","darken","rotate","alpha","isEqual","$fdb67c921c041723$export$2e2bcd8739ae039","convertedValue","colord","hsv","$acc8e8e80a8c8e3d$export$2e2bcd8739ae039","formComponent","$8d8ec509b2dabd6c$export$2e2bcd8739ae039","$35e90aadd1ba6435$export$2e2bcd8739ae039","pickerRef","resetRef","startedWhenMounted","startedInside","listener","contains","validateEventStart","$11301fd5eebc4d6e$export$2e2bcd8739ae039","$4154559db83dad58$export$2e2bcd8739ae039","$9fb400e4497293f5$export$2e2bcd8739ae039","triggerButton","togglePickerHandler","$8f45dead40d2ca40$export$2e2bcd8739ae039","control","customizerSetting","choices","parseEmptyValue","parseHueModeValue","hueValue","parseInputValue","convertColorForInput","parsePickerValue","convertColorForPicker","inputValue","setInputValue","pickerValue","setPickerValue","currentInputValue","currentPickerValue","updateComponentState","valueForInput","JSON","stringify","valueForPicker","saveToCustomizer","convertColorForCustomizer","parseCustomizerValue","initialColor","controlLabel","dangerouslySetInnerHTML","__html","label","controlDescription","description","KirkiPickerComponent","formRef","isPickerOpen","setIsPickerOpen","usePositionFixed","labelStyle","pickerContainerStyle","setPickerContainerStyle","getPickerContainerStyle","padding","getComputedStyle","parentNode","paddingLeft","controlLeftOffset","offsetLeft","convertInputValueTo6Digits","openPicker","closePicker","setTimeout","useWindowResize","useFocusOutside","useClickOutside","jQuery","wp","wpColorPicker","wpColorPickerSwatches","options","palettes","swatches","controlHeader","Fragment","setNotificationContainer","formClassName","pickerHeader","pickerContainerClassName","pickerTrigger","display","swatchColor","$ffbc67b60e0ee796$export$2e2bcd8739ae039","customize","Control","initialize","id","bind","onRemoved","removedControl","destroy","remove","unbind","notifications","renderContent","mode","form","$ffbc67b60e0ee796$var$_extends","setting","ready","unmountComponentAtNode","controlConstructor","KirkiReactColorfulControl"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/dist/preview.js b/functions/kirki/kirki-packages/control-react-colorful/dist/preview.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/dist/preview.js
rename to functions/kirki/kirki-packages/control-react-colorful/dist/preview.js
diff --git a/functions/kirki/kirki-packages/control-react-colorful/dist/preview.js.map b/functions/kirki/kirki-packages/control-react-colorful/dist/preview.js.map
new file mode 100644
index 0000000..1b0a15c
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/dist/preview.js.map
@@ -0,0 +1 @@
+{"mappings":"YAAC,IAUMA,EAAAA,EAAaC,SAAAA,GAGlB,MAAI,iBAAoBA,GAGpB,iBAAoBA,IAGfC,MAAMD,KAASC,MAAMC,WAAWF,KA4E1CG,GAAGC,MAAMC,UAAU,+BAAgC,SAjB9B,SAACC,EAAQC,EAAOC,EAAQC,GAE5C,GAAI,yBAA2BA,EAAa,OAAOH,EACnD,GAAI,iBAAoBC,GAAS,iBAAoBA,EAAO,OAAOD,EAEnE,IAAMI,EAASF,EAAOE,OAASF,EAAOE,OAAS,GACzCC,EAASH,EAAOG,OAASH,EAAOG,OAAS,GAM/C,OAJAL,GAAUE,EAAOI,QAAU,IACxBJ,EAAOK,SAAW,KAAOH,EA1DAH,SAAAA,GAmC5B,OAjCAO,cAAe,EAEXP,EAAMQ,GAAKR,EAAMS,GAAKT,EAAMU,GAC/BC,eAAY,IAAuBX,EAAMY,EAAI,OAAS,MACtDL,aAAe,SAAWI,WAAmBJ,aAE7CM,KAAOb,EAAMQ,EACbM,KAAOd,EAAMS,EACbM,KAAOf,EAAMU,EACbM,KAAO,SAAWL,UAAYX,EAAMY,EAAI,IAC9BZ,EAAMiB,GAAKjB,EAAMkB,KAC3BL,KAAOb,EAAMiB,EAETjB,EAAMmB,GACTR,eAAY,IAAuBX,EAAMY,EAAI,OAAS,MACtDE,KAAOtB,EAAUQ,EAAMmB,GAAKnB,EAAMmB,EAAI,IAAMnB,EAAMmB,GACxCnB,EAAMoB,IAChBT,eAAY,IAAuBX,EAAMY,EAAI,OAAS,MACtDE,KAAOtB,EAAUQ,EAAMoB,GAAKpB,EAAMoB,EAAI,IAAMpB,EAAMoB,GAGnDb,aAAe,SAAWI,WAAa,SAAWA,WAAmBJ,aAErEQ,KAAOvB,EAAUQ,GAASA,EAAMkB,EAAI,IAAMlB,EAAMkB,EAChDF,KAAOT,aAAeP,EAAMY,EAAI,GAG7BL,aACHc,eAAiBV,UAAY,IAAME,KAAO,KAAOC,KAAO,KAAOC,KAAO,KAAOC,KAAO,IAEpFK,eAAiBV,UAAY,IAAME,KAAO,KAAOC,KAAO,KAAOC,KAAO,IAGhEM,eAuB8BC,CAAoBtB,GAASI,EAAS,SAGpEL","sources":["src/preview.js"],"sourcesContent":["(() => {\n\t/**\n\t * Check if the provided value is a numeric.\n\t *\n\t * Thanks to Dan (https://stackoverflow.com/users/17121/dan) for his answer on StackOverflow:\n\t * @see https://stackoverflow.com/questions/175739/built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number#answer-175787\n\t *\n\t * @param {string|number} str The provided value.\n\t * @return bool\n\t */\n\tconst isNumeric = (str) => {\n\n\t\t// Number is a numeric.\n\t\tif ('number' === typeof str) return true;\n\n\t\t// We only process strings.\n\t\tif ('string' !== typeof str) return false;\n\n\t\t// Use type coercion to parse the entirety of the string (`parseFloat` alone does not do this) and ensure strings of whitespace fail.\n\t\treturn (!isNaN(str) && !isNaN(parseFloat(str)));\n\n\t};\n\n\t/**\n\t * Generate value from color object.\n\t *\n\t * @param {Object} value The value.\n\t * @return string\n\t */\n\tconst generateStringValue = (value) => {\n\n\t\talphaEnabled = false;\n\n\t\tif (value.r || value.g || value.b) {\n\t\t\tcolorMode = \"undefined\" !== typeof value.a ? 'rgba' : 'rgb';\n\t\t\talphaEnabled = 'rgba' === colorMode ? true : alphaEnabled;\n\n\t\t\tpos1 = value.r;\n\t\t\tpos2 = value.g;\n\t\t\tpos3 = value.b;\n\t\t\tpos4 = 'rgba' === colorMode ? value.a : 1;\n\t\t} else if (value.h || value.s) {\n\t\t\tpos1 = value.h;\n\n\t\t\tif (value.l) {\n\t\t\t\tcolorMode = \"undefined\" !== typeof value.a ? 'hsla' : 'hsl';\n\t\t\t\tpos2 = isNumeric(value.l) ? value.l + '%' : value.l;\n\t\t\t} else if (value.v) {\n\t\t\t\tcolorMode = \"undefined\" !== typeof value.a ? 'hvla' : 'hvl';\n\t\t\t\tpos2 = isNumeric(value.v) ? value.v + '%' : value.v;\n\t\t\t}\n\n\t\t\talphaEnabled = 'hsla' === colorMode || 'hsva' === colorMode ? true : alphaEnabled;\n\n\t\t\tpos3 = isNumeric(value) ? value.s + '%' : value.s;\n\t\t\tpos4 = alphaEnabled ? value.a : 1;\n\t\t}\n\n\t\tif (alphaEnabled) {\n\t\t\tformattedValue = colorMode + '(' + pos1 + ', ' + pos2 + ', ' + pos3 + ', ' + pos4 + ')';\n\t\t} else {\n\t\t\tformattedValue = colorMode + '(' + pos1 + ', ' + pos2 + ', ' + pos3 + ')';\n\t\t}\n\n\t\treturn formattedValue;\n\n\t};\n\n\t/**\n\t * Function to hook into `kirkiPostMessageStylesOutput` filter.\n\t *\n\t * @param {string} styles The styles to be filtered.\n\t * @param {string|Object|int} value The control's value.\n\t * @param {Object} output The control's output argument.\n\t * @param {string} controlType The control type.\n\t *\n\t * @return {string} The filtered styles.\n\t */\n\tconst stylesOutput = (styles, value, output, controlType) => {\n\n\t\tif ('kirki-react-colorful' !== controlType) return styles;\n\t\tif ('string' === typeof value || 'number' === typeof value) return styles;\n\n\t\tconst prefix = output.prefix ? output.prefix : '';\n\t\tconst suffix = output.suffix ? output.suffix : \"\";\n\n\t\tstyles += output.element + '{'\n\t\t\t+ output.property + ': ' + prefix + generateStringValue(value) + suffix + ';\\\n\t\t}';\n\n\t\treturn styles;\n\n\t};\n\n\t// Hook the function to the `kirkiPostMessageStylesOutput` filter.\n\twp.hooks.addFilter('kirkiPostMessageStylesOutput', 'kirki', stylesOutput);\n})();\n"],"names":["isNumeric","str","isNaN","parseFloat","wp","hooks","addFilter","styles","value","output","controlType","prefix","suffix","element","property","alphaEnabled","r","g","b","colorMode","a","pos1","pos2","pos3","pos4","h","s","l","v","formattedValue","generateStringValue"],"version":3,"file":"preview.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/Control/ReactColorful.php b/functions/kirki/kirki-packages/control-react-colorful/src/Control/ReactColorful.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/Control/ReactColorful.php
rename to functions/kirki/kirki-packages/control-react-colorful/src/Control/ReactColorful.php
index c308354..e0466e1 100644
--- a/functions/kirki/packages/kirki-framework/control-react-colorful/src/Control/ReactColorful.php
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/Control/ReactColorful.php
@@ -3,7 +3,7 @@
* Customizer Control: kirki-react-colorful.
*
* @package kirki-framework/control-react-colorful
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/Field/CSS/ReactColorful.php b/functions/kirki/kirki-packages/control-react-colorful/src/Field/CSS/ReactColorful.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/Field/CSS/ReactColorful.php
rename to functions/kirki/kirki-packages/control-react-colorful/src/Field/CSS/ReactColorful.php
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/Field/ReactColorful.php b/functions/kirki/kirki-packages/control-react-colorful/src/Field/ReactColorful.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/Field/ReactColorful.php
rename to functions/kirki/kirki-packages/control-react-colorful/src/Field/ReactColorful.php
index f01ce0e..2bf6adf 100644
--- a/functions/kirki/packages/kirki-framework/control-react-colorful/src/Field/ReactColorful.php
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/Field/ReactColorful.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/react-colorful
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/kirki-packages/control-react-colorful/src/KirkiReactColorfulControl.js b/functions/kirki/kirki-packages/control-react-colorful/src/KirkiReactColorfulControl.js
new file mode 100644
index 0000000..6eff4dd
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/KirkiReactColorfulControl.js
@@ -0,0 +1,150 @@
+import ReactDOM from "react-dom";
+import KirkiReactColorfulForm from "./KirkiReactColorfulForm";
+
+/**
+ * KirkiReactColorfulControl.
+ *
+ * @class
+ * @augments wp.customize.Control
+ * @augments wp.customize.Class
+ */
+const KirkiReactColorfulControl = wp.customize.Control.extend({
+ /**
+ * Initialize.
+ *
+ * @param {string} id - Control ID.
+ * @param {object} params - Control params.
+ */
+ initialize: function (id, params) {
+ const control = this;
+
+ // Bind functions to this control context for passing as React props.
+ control.setNotificationContainer =
+ control.setNotificationContainer.bind(control);
+
+ wp.customize.Control.prototype.initialize.call(control, id, params);
+
+ // The following should be eliminated with .
+ function onRemoved(removedControl) {
+ if (control === removedControl) {
+ control.destroy();
+ control.container.remove();
+ wp.customize.control.unbind("removed", onRemoved);
+ }
+ }
+ wp.customize.control.bind("removed", onRemoved);
+ },
+
+ /**
+ * Set notification container and render.
+ *
+ * This is called when the React component is mounted.
+ *
+ * @param {Element} element - Notification container.
+ * @returns {void}
+ */
+ setNotificationContainer: function setNotificationContainer(element) {
+ const control = this;
+ control.notifications.container = jQuery(element);
+ control.notifications.render();
+ },
+
+ /**
+ * Render the control into the DOM.
+ *
+ * This is called from the Control#embed() method in the parent class.
+ *
+ * @returns {void}
+ */
+ renderContent: function renderContent() {
+ const control = this;
+ const useHueMode = "hue" === control.params.mode;
+ const choices = control.params.choices;
+
+ let pickerComponent;
+
+ if (choices.formComponent) {
+ pickerComponent = choices.formComponent;
+ } else {
+ pickerComponent = choices.alpha
+ ? "RgbaStringColorPicker"
+ : "HexColorPicker";
+ }
+
+ pickerComponent = useHueMode ? "HueColorPicker" : pickerComponent;
+
+ const form = (
+
+ );
+
+ ReactDOM.render(form, control.container[0]);
+ },
+
+ /**
+ * After control has been first rendered, start re-rendering when setting changes.
+ *
+ * React is able to be used here instead of the wp.customize.Element abstraction.
+ *
+ * @returns {void}
+ */
+ ready: function ready() {
+ const control = this;
+
+ /**
+ * Update component state when customizer setting changes.
+ *
+ * There was an issue (which was fixed):
+ *
+ * Let's say we have other color picker ("x" color picker) and this current color picker ("y" color picker).
+ * Let's say there's a script that bind to that "x" color picker to make change to this "y" color picker.
+ *
+ * When "x" color picker is changed fast (by dragging the color, for example),
+ * then the re-render of this "y" color picker will be messy.
+ * There was something like "function-call race" between component re-render and function call inside the component.
+ *
+ * When that happens, the "x" color picker becomes unresponsive and un-usable.
+ *
+ * How we fixed that:
+ * - Provide a updateComponentState property to this file.
+ * - Inside the component, assign the updateComponentState with a function to update some states.
+ * - Then inside the binding below, call updateComponentState instead of re-rendering the component.
+ *
+ * The result: Even though the "x" color picker becomes very slow, it's still usable and responsive enough.
+ */
+ control.setting.bind((val) => {
+ control.updateComponentState(val);
+ });
+ },
+
+ updateComponentState: () => {},
+
+ /**
+ * Handle removal/de-registration of the control.
+ *
+ * This is essentially the inverse of the Control#embed() method.
+ *
+ * @link https://core.trac.wordpress.org/ticket/31334
+ * @returns {void}
+ */
+ destroy: function destroy() {
+ const control = this;
+
+ // Garbage collection: undo mounting that was done in the embed/renderContent method.
+ ReactDOM.unmountComponentAtNode(control.container[0]);
+
+ // Call destroy method in parent if it exists (as of #31334).
+ if (wp.customize.Control.prototype.destroy) {
+ wp.customize.Control.prototype.destroy.call(control);
+ }
+ },
+});
+
+export default KirkiReactColorfulControl;
diff --git a/functions/kirki/kirki-packages/control-react-colorful/src/KirkiReactColorfulForm.js b/functions/kirki/kirki-packages/control-react-colorful/src/KirkiReactColorfulForm.js
new file mode 100644
index 0000000..738609a
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/KirkiReactColorfulForm.js
@@ -0,0 +1,445 @@
+import { useState, useRef } from "react";
+import {
+ HexColorPicker,
+ RgbColorPicker,
+ RgbaColorPicker,
+ RgbStringColorPicker,
+ RgbaStringColorPicker,
+ HslColorPicker,
+ HslaColorPicker,
+ HslStringColorPicker,
+ HslaStringColorPicker,
+ HsvColorPicker,
+ HsvaColorPicker,
+ HsvStringColorPicker,
+ HsvaStringColorPicker,
+} from "react-colorful";
+import KirkiReactColorfulInput from "./js/components/KirkiReactColorfulInput";
+import KirkiReactColorfulSwatches from "./js/components/KirkiReactColorfulSwatches";
+import convertColorForPicker from "./js/utils/convertColorForPicker";
+import convertColorForCustomizer from "./js/utils/convertColorForCustomizer";
+import convertColorForInput from "./js/utils/convertColorForInput";
+import useClickOutside from "./js/hooks/useClickOutside";
+import useFocusOutside from "./js/hooks/useFocusOutside";
+import useWindowResize from "./js/hooks/useWindowResize";
+import KirkiReactColorfulCircle from "./js/components/KirkiReactColorfulCircle";
+import { colord } from "colord";
+
+/**
+ * The form component of Kirki React Colorful.
+ *
+ * Globals:
+ * _, wp, React, ReactDOM
+ *
+ * @param {Object} props The props for the component.
+ * @returns The component element.
+ */
+const KirkiReactColorfulForm = (props) => {
+ const { control, customizerSetting, useHueMode, pickerComponent, choices } =
+ props;
+
+ const parseEmptyValue = () => (useHueMode ? 0 : "#000000");
+
+ const parseHueModeValue = (hueValue) => {
+ hueValue = hueValue || parseEmptyValue();
+ hueValue = hueValue < 0 ? 0 : hueValue;
+
+ return hueValue > 360 ? 360 : hueValue;
+ };
+
+ const parseInputValue = (value) => {
+ if ("" === value) return "";
+
+ return useHueMode
+ ? parseHueModeValue(value)
+ : convertColorForInput(
+ value,
+ pickerComponent,
+ choices.formComponent
+ ).replace(";", "");
+ };
+
+ const parseCustomizerValue = (value) => {
+ if ("" === value) return "";
+
+ return convertColorForCustomizer(
+ value,
+ pickerComponent,
+ choices.formComponent
+ );
+ };
+
+ const parsePickerValue = (value) => {
+ value = value || parseEmptyValue();
+
+ // Hard coded saturation and lightness when using hue mode.
+ return useHueMode
+ ? { h: value, s: 100, l: 50 }
+ : convertColorForPicker(value, pickerComponent);
+ };
+
+ const [inputValue, setInputValue] = useState(() => {
+ return parseInputValue(props.value);
+ });
+
+ const [pickerValue, setPickerValue] = useState(() => {
+ return parsePickerValue(props.value);
+ });
+
+ let currentInputValue = inputValue;
+ let currentPickerValue = pickerValue;
+
+ // This function will be called when this control's customizer value is changed.
+ control.updateComponentState = (value) => {
+ const valueForInput = parseInputValue(value);
+ let changeInputValue = false;
+
+ if (typeof valueForInput === "string" || useHueMode) {
+ changeInputValue = valueForInput !== inputValue;
+ } else {
+ changeInputValue =
+ JSON.stringify(valueForInput) !== JSON.stringify(currentInputValue);
+ }
+
+ if (changeInputValue) setInputValue(valueForInput);
+
+ const valueForPicker = parsePickerValue(value);
+ let changePickerValue = false;
+
+ if (typeof valueForPicker === "string" || useHueMode) {
+ changePickerValue = valueForPicker !== pickerValue;
+ } else {
+ changePickerValue =
+ JSON.stringify(valueForPicker) !== JSON.stringify(currentPickerValue);
+ }
+
+ if (changePickerValue) setPickerValue(valueForPicker);
+ };
+
+ const saveToCustomizer = (value) => {
+ if (useHueMode) {
+ /**
+ * When using hue mode, the pickerComponent is HslColorPicker.
+ * If there is value.h, then value is set from the picker.
+ * Otherwise, value is set from the input or the customizer.
+ */
+ value = value.h || 0 === value.h ? value.h : value;
+ value = parseHueModeValue(value);
+ } else {
+ value = parseCustomizerValue(value);
+ }
+
+ customizerSetting.set(value);
+ };
+
+ const initialColor =
+ "" !== props.default && "undefined" !== typeof props.default
+ ? props.default
+ : props.value;
+
+ /**
+ * Function to run on picker change.
+ *
+ * @param {string|Object} color The value returned by the picker. It can be a string or a color object.
+ */
+ const handlePickerChange = (color) => {
+ if (props.onChange) props.onChange(color);
+ currentPickerValue = color;
+ saveToCustomizer(color);
+ };
+
+ const handleInputChange = (value) => {
+ currentInputValue = value;
+ saveToCustomizer(value);
+ };
+
+ const handleReset = () => {
+ if (!initialColor) {
+ currentInputValue = "";
+ currentPickerValue = "";
+ }
+
+ saveToCustomizer(initialColor);
+ };
+
+ const handleSwatchesClick = (swatchColor) => {
+ saveToCustomizer(swatchColor);
+ };
+
+ const handleWindowResize = () => {
+ setPickerContainerStyle(getPickerContainerStyle());
+ };
+
+ let controlLabel = (
+
+ );
+
+ let controlDescription = (
+
+ );
+
+ controlLabel = (
+
+ {props.label ? controlLabel : ""}
+ {props.description ? controlDescription : ""}
+
+ );
+
+ controlLabel = props.label || props.description ? controlLabel : "";
+
+ const formRef = useRef(null); // Reference to the form div.
+ const pickerRef = useRef(null); // Reference to the picker popup.
+ const resetRef = useRef(null); // Reference to the picker popup.
+
+ const [isPickerOpen, setIsPickerOpen] = useState(false);
+
+ const usePositionFixed = "default" !== choices.labelStyle ? true : false;
+
+ const [pickerContainerStyle, setPickerContainerStyle] = useState({});
+
+ const getPickerContainerStyle = () => {
+ let pickerContainerStyle = {};
+
+ if (!usePositionFixed) return pickerContainerStyle;
+
+ let padding = window.getComputedStyle(
+ control.container[0].parentNode
+ ).paddingLeft;
+ padding = parseInt(padding, 10) * 2;
+
+ pickerContainerStyle.width =
+ control.container[0].parentNode.getBoundingClientRect().width - padding;
+
+ const controlLeftOffset = (control.container[0].offsetLeft - 9) * -1;
+
+ pickerContainerStyle.left = controlLeftOffset + "px";
+
+ return pickerContainerStyle;
+ };
+
+ const convertInputValueTo6Digits = () => {
+ if (4 === inputValue.length && inputValue.includes("#")) {
+ setInputValue(colord(inputValue).toHex());
+ }
+ };
+
+ const togglePicker = () => {
+ if (isPickerOpen) {
+ closePicker();
+ } else {
+ openPicker();
+ }
+ };
+
+ const openPicker = () => {
+ if (isPickerOpen) return;
+
+ setPickerContainerStyle(getPickerContainerStyle());
+ convertInputValueTo6Digits();
+ setIsPickerOpen(true);
+ };
+
+ const closePicker = () => {
+ if (!isPickerOpen) return;
+
+ setIsPickerOpen(false);
+ setTimeout(convertInputValueTo6Digits, 200);
+ };
+
+ let KirkiPickerComponent;
+
+ // We can't just render `pickerComponent` directly, we need these lines so that the compiler will import them.
+ switch (pickerComponent) {
+ case "HexColorPicker":
+ KirkiPickerComponent = HexColorPicker;
+ break;
+ case "RgbColorPicker":
+ KirkiPickerComponent = RgbColorPicker;
+ break;
+ case "RgbStringColorPicker":
+ KirkiPickerComponent = RgbStringColorPicker;
+ break;
+ case "RgbaColorPicker":
+ KirkiPickerComponent = RgbaColorPicker;
+ break;
+ case "RgbaStringColorPicker":
+ KirkiPickerComponent = RgbaStringColorPicker;
+ break;
+ // We treat HueColorPicker (hue mode) as HslColorPicker.
+ case "HueColorPicker":
+ KirkiPickerComponent = HslColorPicker;
+ break;
+ case "HslColorPicker":
+ KirkiPickerComponent = HslColorPicker;
+ break;
+ case "HslStringColorPicker":
+ KirkiPickerComponent = HslStringColorPicker;
+ break;
+ case "HslaColorPicker":
+ KirkiPickerComponent = HslaColorPicker;
+ break;
+ case "HslaStringColorPicker":
+ KirkiPickerComponent = HslaStringColorPicker;
+ break;
+ case "HsvColorPicker":
+ KirkiPickerComponent = HsvColorPicker;
+ break;
+ case "HsvStringColorPicker":
+ KirkiPickerComponent = HsvStringColorPicker;
+ break;
+ case "HsvaColorPicker":
+ KirkiPickerComponent = HsvaColorPicker;
+ break;
+ case "HsvaStringColorPicker":
+ KirkiPickerComponent = HsvaStringColorPicker;
+ break;
+ default:
+ KirkiPickerComponent = HexColorPicker;
+ break;
+ }
+
+ useWindowResize(handleWindowResize);
+
+ // Handle outside focus to close the picker popup.
+ useFocusOutside(formRef, closePicker);
+
+ // Handle outside click to close the picker popup.
+ useClickOutside(pickerRef, resetRef, closePicker);
+
+ if (jQuery.wp && jQuery.wp.wpColorPicker) {
+ const wpColorPickerSwatches =
+ jQuery.wp.wpColorPicker.prototype.options.palettes;
+
+ // If 3rd parties applied custom colors to wpColorPicker swatches, let's use them.
+ if (Array.isArray(wpColorPickerSwatches)) {
+ if (wpColorPickerSwatches.length < 8) {
+ for (let i = wpColorPickerSwatches.length; i <= 8; i++) {
+ wpColorPickerSwatches.push(choices.swatches[i]);
+ }
+ }
+
+ choices.swatches = wpColorPickerSwatches;
+ }
+ }
+
+ const controlHeader = (
+ <>
+ {controlLabel}
+
+ >
+ );
+
+ let formClassName = useHueMode
+ ? "kirki-control-form use-hue-mode"
+ : "kirki-control-form";
+
+ formClassName += " has-" + choices.labelStyle + "-label-style";
+
+ let pickerContainerClassName = isPickerOpen
+ ? pickerComponent + " colorPickerContainer is-open"
+ : pickerComponent + " colorPickerContainer";
+
+ const pickerTrigger = (
+ <>
+
+
+
+
+
+ >
+ );
+
+ let pickerHeader;
+
+ switch (choices.labelStyle) {
+ case "tooltip":
+ pickerHeader = (
+ <>
+ {pickerTrigger}
+ {!isPickerOpen && (
+ {controlHeader}
+ )}
+ >
+ );
+ break;
+
+ case "top":
+ pickerHeader = (
+ <>
+ {controlHeader}
+ {pickerTrigger}
+ >
+ );
+ break;
+
+ default:
+ pickerHeader = (
+ <>
+
+
{controlHeader}
+
{pickerTrigger}
+
+ >
+ );
+ break;
+ }
+
+ return (
+ <>
+
+ {pickerHeader}
+
+ {!useHueMode && (
+
+ )}
+
+
+
+
+
+
+ >
+ );
+};
+
+export default KirkiReactColorfulForm;
diff --git a/functions/kirki/kirki-packages/control-react-colorful/src/control.js b/functions/kirki/kirki-packages/control-react-colorful/src/control.js
new file mode 100644
index 0000000..a6f5dc0
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/control.js
@@ -0,0 +1,7 @@
+/* global wp */
+
+import "./control.scss";
+import KirkiReactColorfulControl from './KirkiReactColorfulControl';
+
+// Register control type with Customizer.
+wp.customize.controlConstructor['kirki-react-colorful'] = KirkiReactColorfulControl;
diff --git a/functions/kirki/kirki-packages/control-react-colorful/src/control.scss b/functions/kirki/kirki-packages/control-react-colorful/src/control.scss
new file mode 100644
index 0000000..60a7fe2
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/control.scss
@@ -0,0 +1,306 @@
+// React colorful control.
+.customize-control-kirki-react-colorful {
+ .kirki-control-form {
+ position: relative;
+ box-sizing: border-box;
+ }
+
+ .kirki-control-form * {
+ box-sizing: border-box;
+ }
+
+ .kirki-control-cols {
+ display: flex;
+ align-items: flex-start;
+ }
+
+ .kirki-control-left-col {
+ padding-right: 30px;
+ width: 90%;
+ width: calc(100% - 35px);
+ }
+
+ .kirki-control-right-col {
+ display: flex;
+ justify-content: flex-end;
+ width: 35px;
+ }
+
+ .use-hue-mode {
+ .react-colorful {
+ height: auto;
+ }
+
+ .react-colorful__saturation {
+ display: none;
+ }
+
+ .react-colorful__last-control {
+ border-radius: 4px;
+ }
+
+ input.kirki-color-input {
+ padding-left: 8px;
+ padding-left: 8px;
+ }
+ }
+
+ .kirki-trigger-circle-wrapper {
+ position: relative;
+ top: -3px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3px;
+ width: 33px;
+ height: 33px;
+ border-radius: 50%;
+ border: 1px solid #ccc;
+ }
+
+ .kirki-trigger-circle {
+ position: relative;
+ padding: 0;
+ display: block;
+ width: 25px;
+ height: 25px;
+ background-size: 10px;
+ border: none;
+ border-radius: 50%;
+ cursor: pointer;
+
+ .kirki-color-preview {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ }
+ }
+
+ .colorPickerContainer {
+ position: absolute;
+ top: 35px;
+ right: 0;
+ margin-top: 5px;
+ width: 100%;
+ padding: 15px;
+ background-color: #fff;
+ border-radius: 6px;
+ box-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;
+ z-index: 9999;
+
+ opacity: 0;
+ visibility: hidden;
+ transition: all 0.2s;
+ transition-property: opacity, visibility; // Yes, only opacity and visibility please.
+
+ &.is-open {
+ opacity: 1;
+ visibility: visible;
+ transition: all 0.2s ease 10ms; // When we open the picker popup, the top offset is changed, so we need to wait a bit.
+ transition-property: opacity, visibility; // Yes, only opacity and visibility please.
+ }
+ }
+
+ .react-colorful {
+ width: 100%;
+ border-radius: 4px;
+ }
+
+ .react-colorful__saturation {
+ border-radius: 4px 4px 0 0;
+ }
+
+ .react-colorful__last-control {
+ border-radius: 0 0 4px 4px;
+ }
+
+ .react-colorful__pointer {
+ width: 20px;
+ height: 20px;
+ }
+
+ .kirki-color-input-wrapper {
+ margin-top: 15px;
+ }
+
+ .kirki-color-input-control {
+ position: relative;
+ display: flex;
+ align-items: center;
+ width: 100%;
+ }
+
+ input.kirki-color-input {
+ display: block;
+ position: relative;
+ padding-left: 32px;
+ padding-right: 8px;
+ width: 100%;
+ height: 30px;
+ line-height: 30px;
+ color: #333;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ z-index: 1;
+ }
+
+ .kirki-color-input:focus,
+ .kirki-color-input:active {
+ box-shadow: 0 0 0 1px #2271b1;
+ outline: none;
+ border-color: #2271b1;
+ }
+
+ .kirki-color-preview-wrapper {
+ position: absolute;
+ left: 6px;
+ width: 22px;
+ height: 22px;
+ background-repeat: repeat;
+ background-size: 8px;
+ border-radius: 50%;
+ border: 1px solid #ddd;
+ border: 2px solid #fff;
+ -webkit-box-shadow: 0px 0px 0px 1px #ddd;
+ box-shadow: 0px 0px 0px 1px #ddd;
+ z-index: 2;
+ }
+
+ .kirki-color-preview,
+ .kirki-control-reset {
+ position: absolute;
+ padding: 0;
+ background-color: transparent;
+ cursor: pointer;
+ }
+
+ .kirki-color-preview {
+ display: block;
+ width: 100%;
+ height: 100%;
+ border-radius: 50%;
+ border-width: 0;
+ }
+
+ .kirki-control-reset {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ top: 4px;
+ right: 35px;
+ width: 17px;
+ height: 17px;
+ border-radius: 50%;
+ border-width: 0;
+ z-index: 3;
+ }
+
+ .kirki-control-reset:hover i {
+ color: #f00;
+ transform: rotate(-45deg);
+ }
+
+ .kirki-control-reset i {
+ font-size: 12px;
+ width: auto;
+ height: auto;
+ transform: rotate(45deg);
+ transition: transform 0.2s;
+ }
+
+ .kirki-color-swatches {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ align-items: center;
+ margin-bottom: 12px;
+ }
+
+ .kirki-color-swatch {
+ position: relative;
+ display: block;
+ padding: 0;
+ width: 25px;
+ height: 25px;
+ border-radius: 50%;
+ border: 2px solid #fff;
+ cursor: pointer;
+ transform: scale(1, 1);
+ transition: transform 0.2s;
+ -webkit-box-shadow: 0px 0px 0px 1px #ddd;
+ box-shadow: 0px 0px 0px 1px #ddd;
+ }
+
+ .kirki-color-swatch:active,
+ .kirki-color-swatch:focus {
+ outline: none;
+ }
+
+ .kirki-color-swatch:hover,
+ .kirki-color-swatch:focus {
+ transform: scale(1.1, 1.1);
+ }
+
+ .kirki-label-tooltip {
+ position: absolute;
+ bottom: 45px;
+ left: -8px;
+ padding: 7px 10px 3px; // The 4px of bottom side is handled by label / description's margin-bottom.
+ width: auto; // just for fallback for max-content.
+ width: max-content;
+ max-width: 100px;
+ color: #fff;
+ background-color: rgba(0, 0, 0, 0.7);
+ border-radius: 4px;
+ opacity: 0;
+ visibility: hidden;
+ transition: all 0.2s;
+
+ &::before {
+ content: "";
+ position: absolute;
+ bottom: -8px;
+ left: 19px;
+ border-width: 8px 7px 0 7px;
+ border-style: solid;
+ border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
+ }
+
+ .customize-control-title {
+ line-height: 1.2;
+ }
+ }
+
+ .kirki-trigger-circle-wrapper {
+ &:hover ~ .kirki-label-tooltip {
+ opacity: 1;
+ visibility: visible;
+ }
+ }
+
+ &[data-kirki-parent-control-type="kirki-multicolor"] {
+ margin-right: 8px;
+ margin-bottom: 20px;
+ padding-right: 0;
+ width: 35px;
+
+ .kirki-control-reset {
+ top: -19px;
+ right: 8px;
+ }
+ }
+
+ &[data-kirki-parent-control-type="kirki-typography"] {
+ .colorPickerContainer {
+ top: 55px;
+ }
+
+ .kirki-control-reset {
+ top: 30px;
+ right: auto;
+ left: 35px;
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/components/KirkiReactColorfulCircle.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/components/KirkiReactColorfulCircle.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/components/KirkiReactColorfulCircle.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/components/KirkiReactColorfulCircle.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/components/KirkiReactColorfulInput.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/components/KirkiReactColorfulInput.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/components/KirkiReactColorfulInput.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/components/KirkiReactColorfulInput.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/components/KirkiReactColorfulSwatches.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/components/KirkiReactColorfulSwatches.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/components/KirkiReactColorfulSwatches.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/components/KirkiReactColorfulSwatches.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/hooks/useClickOutside.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/hooks/useClickOutside.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/hooks/useClickOutside.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/hooks/useClickOutside.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/hooks/useFocusOutside.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/hooks/useFocusOutside.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/hooks/useFocusOutside.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/hooks/useFocusOutside.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/hooks/useWindowResize.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/hooks/useWindowResize.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/hooks/useWindowResize.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/hooks/useWindowResize.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/convertColorForCustomizer.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/utils/convertColorForCustomizer.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/convertColorForCustomizer.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/utils/convertColorForCustomizer.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/convertColorForInput.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/utils/convertColorForInput.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/convertColorForInput.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/utils/convertColorForInput.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/convertColorForPicker.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/utils/convertColorForPicker.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-colorful/src/js/utils/convertColorForPicker.js
rename to functions/kirki/kirki-packages/control-react-colorful/src/js/utils/convertColorForPicker.js
diff --git a/functions/kirki/kirki-packages/control-react-colorful/src/js/utils/util.js b/functions/kirki/kirki-packages/control-react-colorful/src/js/utils/util.js
new file mode 100644
index 0000000..e69de29
diff --git a/functions/kirki/kirki-packages/control-react-colorful/src/preview.js b/functions/kirki/kirki-packages/control-react-colorful/src/preview.js
new file mode 100644
index 0000000..e7d0d77
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-colorful/src/preview.js
@@ -0,0 +1,100 @@
+(() => {
+ /**
+ * Check if the provided value is a numeric.
+ *
+ * Thanks to Dan (https://stackoverflow.com/users/17121/dan) for his answer on StackOverflow:
+ * @see https://stackoverflow.com/questions/175739/built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number#answer-175787
+ *
+ * @param {string|number} str The provided value.
+ * @return bool
+ */
+ const isNumeric = (str) => {
+ // Number is a numeric.
+ if ("number" === typeof str) return true;
+
+ // We only process strings.
+ if ("string" !== typeof str) return false;
+
+ // Use type coercion to parse the entirety of the string (`parseFloat` alone does not do this) and ensure strings of whitespace fail.
+ return !isNaN(str) && !isNaN(parseFloat(str));
+ };
+
+ /**
+ * Generate value from color object.
+ *
+ * @param {Object} value The value.
+ * @return string
+ */
+ const generateStringValue = (value) => {
+ alphaEnabled = false;
+
+ if (value.r || value.g || value.b) {
+ colorMode = "undefined" !== typeof value.a ? "rgba" : "rgb";
+ alphaEnabled = "rgba" === colorMode ? true : alphaEnabled;
+
+ pos1 = value.r;
+ pos2 = value.g;
+ pos3 = value.b;
+ pos4 = "rgba" === colorMode ? value.a : 1;
+ } else if (value.h || value.s) {
+ pos1 = value.h;
+
+ if (value.l) {
+ colorMode = "undefined" !== typeof value.a ? "hsla" : "hsl";
+ pos2 = isNumeric(value.l) ? value.l + "%" : value.l;
+ } else if (value.v) {
+ colorMode = "undefined" !== typeof value.a ? "hvla" : "hvl";
+ pos2 = isNumeric(value.v) ? value.v + "%" : value.v;
+ }
+
+ alphaEnabled =
+ "hsla" === colorMode || "hsva" === colorMode ? true : alphaEnabled;
+
+ pos3 = isNumeric(value) ? value.s + "%" : value.s;
+ pos4 = alphaEnabled ? value.a : 1;
+ }
+
+ if (alphaEnabled) {
+ formattedValue =
+ colorMode + "(" + pos1 + ", " + pos2 + ", " + pos3 + ", " + pos4 + ")";
+ } else {
+ formattedValue = colorMode + "(" + pos1 + ", " + pos2 + ", " + pos3 + ")";
+ }
+
+ return formattedValue;
+ };
+
+ /**
+ * Function to hook into `kirkiPostMessageStylesOutput` filter.
+ *
+ * @param {string} styles The styles to be filtered.
+ * @param {string|Object|int} value The control's value.
+ * @param {Object} output The control's output argument.
+ * @param {string} controlType The control type.
+ *
+ * @return {string} The filtered styles.
+ */
+ const stylesOutput = (styles, value, output, controlType) => {
+ if ("kirki-react-colorful" !== controlType) return styles;
+ if ("string" === typeof value || "number" === typeof value) return styles;
+
+ const prefix = output.prefix ? output.prefix : "";
+ const suffix = output.suffix ? output.suffix : "";
+
+ styles +=
+ output.element +
+ "{" +
+ output.property +
+ ": " +
+ prefix +
+ generateStringValue(value) +
+ suffix +
+ ";\
+ }";
+
+ return styles;
+ };
+
+ // Hook the function to the `kirkiPostMessageStylesOutput` filter.
+ wp.hooks.addFilter("kirkiPostMessageStylesOutput", "kirki", stylesOutput);
+})();
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/LICENSE b/functions/kirki/kirki-packages/control-react-select/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-sortable/LICENSE
rename to functions/kirki/kirki-packages/control-react-select/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-react-select/dist/control.css b/functions/kirki/kirki-packages/control-react-select/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-select/dist/control.css
rename to functions/kirki/kirki-packages/control-react-select/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-react-select/dist/control.css.map b/functions/kirki/kirki-packages/control-react-select/dist/control.css.map
new file mode 100644
index 0000000..f1bd87b
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-select/dist/control.css.map
@@ -0,0 +1 @@
+{"version":3,"file":"./control.css","mappings":"AACE,8DACE,gBAKF,sHACE,cACA,iBAIJ,6BACE,gBACA,mBACA,gBAIA,gEACE,gBACA,YAEA,sEACE,gBACA,YAKN,kCACE,aACA,mBACA,WAGF,iCACE,mBACA,kBACA,YAOF,2BACE,+BACA,mBACA,kBACA,SAEA,iCACE,iCACA,YAIJ,gCACE,uBAGF,+BACE,mBACA,YAGF,gEACE,U","sources":["webpack://kirki-control-react-select/./src/control.scss"],"sourcesContent":[".customize-control-kirki-react-select {\n input[autocomplete=\"off\"] {\n box-shadow: none;\n }\n}\n\n.kirki-react-select__value-container {\n > div:not(.kirki-react-select__single-value):not(.kirki-react-select__multi-value) {\n padding-top: 0;\n padding-bottom: 0;\n }\n}\n\n.kirki-react-select__control {\n padding-top: 2px;\n padding-bottom: 2px;\n min-height: 26px;\n}\n\n.kirki-react-select__value-container {\n .kirki-react-select__input {\n min-height: 24px;\n height: 24px;\n\n input {\n min-height: 24px;\n height: 24px;\n }\n }\n}\n\n.kirki-react-select__single-value {\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.kirki-react-select__multi-value {\n align-items: center;\n position: relative;\n height: 20px;\n\n .kirki-react-select__input-container {\n //\n }\n}\n\n.kirki-react-select__input {\n display: inline-flex !important;\n align-items: center;\n position: relative;\n left: 2px;\n\n input {\n box-sizing: border-box !important;\n height: 30px;\n }\n}\n\n.kirki-react-select__indicators {\n height: 24px !important;\n}\n\n.kirki-react-select__indicator {\n align-items: center;\n height: 24px;\n}\n\n.customize-control-kirki-react-select .kirki-react-select__menu {\n z-index: 3;\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-react-select/dist/control.js b/functions/kirki/kirki-packages/control-react-select/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-select/dist/control.js
rename to functions/kirki/kirki-packages/control-react-select/dist/control.js
diff --git a/functions/kirki/packages/kirki-framework/control-react-select/dist/control.js.LICENSE.txt b/functions/kirki/kirki-packages/control-react-select/dist/control.js.LICENSE.txt
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-react-select/dist/control.js.LICENSE.txt
rename to functions/kirki/kirki-packages/control-react-select/dist/control.js.LICENSE.txt
diff --git a/functions/kirki/kirki-packages/control-react-select/dist/control.js.map b/functions/kirki/kirki-packages/control-react-select/dist/control.js.map
new file mode 100644
index 0000000..ab26746
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-select/dist/control.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"control.js","mappings":";oDAEA,IAAI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KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,YACR,CACDD,KAAM,IACNC,QAAS,oBACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,+CACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,cACR,CACDD,KAAM,IACNC,QAAS,UACR,CACDD,KAAM,IACNC,QAAS,qBACR,CACDD,KAAM,IACNC,QAAS,qBACR,CACDD,KAAM,IACNC,QAAS,mBACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,sCACR,CACDD,KAAM,IACNC,QAAS,YACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,cACR,CACDD,KAAM,IACNC,QAAS,SACR,CACDD,KAAM,IACNC,QAAS,mBACR,CACDD,KAAM,IACNC,QAAS,kBACR,CACDD,KAAM,IACNC,QAAS,uCACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,OACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,KACNC,QAAS,MACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,aACR,CACDD,KAAM,IACNC,QAAS,iBACR,CACDD,KAAM,IACNC,QAAS,kBACR,CACDD,KAAM,KACNC,QAAS,MACR,CACDD,KAAM,IACNC,QAAS,mCACR,CACDD,KAAM,IACNC,QAAS,UACR,CACDD,KAAM,IACNC,QAAS,mBACR,CACDD,KAAM,IACNC,QAAS,mBACR,CACDD,KAAM,KACNC,QAAS,KACR,CACDD,KAAM,IACNC,QAAS,wBACR,CACDD,KAAM,IACNC,QAAS,UACR,CACDD,KAAM,IACNC,QAAS,kBACR,CACDD,KAAM,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E,QAAQxD,SAPnCmnC,EAAO/iC,KAAKZ,EAAQrE,YAiBxB,GAJIqE,EAAQrE,GAAGgH,QAAUA,GACvBghC,EAAO/iC,KAAKZ,EAAQrE,IAGlBqE,EAAQrE,GAAGqE,QACb,IAAKxD,EAAI,EAAGA,EAAIwD,EAAQrE,GAAGqE,QAAQtG,OAAQ8C,IACrCwD,EAAQrE,GAAGqE,QAAQxD,GAAGmG,QAAUA,GAClCghC,EAAO/iC,KAAKZ,EAAQrE,GAAGqE,QAAQxD,IAOzC,OAAOmnC,EAEP,IAAKhoC,EAAI,EAAGA,EAAIqE,EAAQtG,OAAQiC,IAAK,CACnC,GAAIqE,EAAQrE,GAAGgH,QAAUA,EACvB,OAAO3C,EAAQrE,GAGjB,GAAIqE,EAAQrE,GAAGqE,QACb,IAAKxD,EAAI,EAAGA,EAAIwD,EAAQrE,GAAGqE,QAAQtG,OAAQ8C,IACzC,GAAIwD,EAAQrE,GAAGqE,QAAQxD,GAAGmG,QAAUA,EAClC,OAAO3C,EAAQrE,GAAGqE,QAAQxD,OASxC,UC9QAolC,GAAGC,UAAU+B,mBAAmB,sBAAwB5B","sources":["webpack://kirki-control-react-select/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://kirki-control-react-select/./node_modules/react-is/cjs/react-is.production.min.js","webpack://kirki-control-react-select/./node_modules/react-is/index.js","webpack://kirki-control-react-select/webpack/bootstrap","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://kirki-control-react-select/external var \"React\"","webpack://kirki-control-react-select/./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Utility.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Tokenizer.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Enum.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Serializer.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Prefixer.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Parser.js","webpack://kirki-control-react-select/./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","webpack://kirki-control-react-select/./node_modules/stylis/src/Middleware.js","webpack://kirki-control-react-select/./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@emotion/hash/dist/hash.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@emotion/unitless/dist/unitless.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@emotion/react/dist/emotion-element-699e6908.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@emotion/react/dist/emotion-react.browser.esm.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://kirki-control-react-select/external var \"ReactDOM\"","webpack://kirki-control-react-select/./node_modules/react-select/dist/index-c7a4d7ce.esm.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://kirki-control-react-select/./node_modules/react-select/dist/useStateManager-783b07d5.esm.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://kirki-control-react-select/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://kirki-control-react-select/./node_modules/memoize-one/dist/memoize-one.esm.js","webpack://kirki-control-react-select/./node_modules/react-select/dist/Select-126cf1dd.esm.js","webpack://kirki-control-react-select/./node_modules/react-select/dist/react-select.esm.js","webpack://kirki-control-react-select/./src/KirkiSelectForm.js","webpack://kirki-control-react-select/./src/KirkiSelectControl.js","webpack://kirki-control-react-select/./src/control.js"],"sourcesContent":["'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","var __WEBPACK_NAMESPACE_OBJECT__ = React;","/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n// $FlowFixMe\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n // $FlowFixMe\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n // $FlowFixMe\n return document.styleSheets[i];\n }\n }\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (process.env.NODE_ENV !== 'production') {\n var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;\n\n if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {\n // this would only cause problem in speedy mode\n // but we don't want enabling speedy to affect the observable behavior\n // so we report this error at all times\n console.error(\"You're attempting to insert the following rule:\\n\" + rule + '\\n\\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');\n }\n this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;\n }\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(rule)) {\n console.error(\"There was a problem inserting the following rule: \\\"\" + rule + \"\\\"\", e);\n }\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n // $FlowFixMe\n this.tags.forEach(function (tag) {\n return tag.parentNode && tag.parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n\n if (process.env.NODE_ENV !== 'production') {\n this._alreadyInsertedOrderInsensitiveRule = false;\n }\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3)\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\n","import {IMPORT, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {MS, MOZ, WEBKIT} from './Enum.js'\nimport {hash, charat, strlen, indexof, replace} from './Utility.js'\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {string}\n */\nexport function prefix (value, length) {\n\tswitch (hash(value, length)) {\n\t\t// color-adjust\n\t\tcase 5103:\n\t\t\treturn WEBKIT + 'print-' + value + value\n\t\t// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\t\tcase 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:\n\t\t// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\t\tcase 5572: case 6356: case 5844: case 3191: case 6645: case 3005:\n\t\t// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\t\tcase 6391: case 5879: case 5623: case 6135: case 4599: case 4855:\n\t\t// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\t\tcase 4215: case 6389: case 5109: case 5365: case 5621: case 3829:\n\t\t\treturn WEBKIT + value + value\n\t\t// appearance, user-select, transform, hyphens, text-size-adjust\n\t\tcase 5349: case 4246: case 4810: case 6968: case 2756:\n\t\t\treturn WEBKIT + value + MOZ + value + MS + value + value\n\t\t// flex, flex-direction\n\t\tcase 6828: case 4268:\n\t\t\treturn WEBKIT + value + MS + value + value\n\t\t// order\n\t\tcase 6165:\n\t\t\treturn WEBKIT + value + MS + 'flex-' + value + value\n\t\t// align-items\n\t\tcase 5187:\n\t\t\treturn WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value\n\t\t// align-self\n\t\tcase 5443:\n\t\t\treturn WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value\n\t\t// align-content\n\t\tcase 4675:\n\t\t\treturn WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value\n\t\t// flex-shrink\n\t\tcase 5548:\n\t\t\treturn WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value\n\t\t// flex-basis\n\t\tcase 5292:\n\t\t\treturn WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value\n\t\t// flex-grow\n\t\tcase 6060:\n\t\t\treturn WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value\n\t\t// transition\n\t\tcase 4554:\n\t\t\treturn WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value\n\t\t// cursor\n\t\tcase 6187:\n\t\t\treturn replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value\n\t\t// background, background-image\n\t\tcase 5495: case 3959:\n\t\t\treturn replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1')\n\t\t// justify-content\n\t\tcase 4968:\n\t\t\treturn replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value\n\t\t// (margin|padding)-inline-(start|end)\n\t\tcase 4095: case 3583: case 4068: case 2532:\n\t\t\treturn replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value\n\t\t// (min|max)?(width|height|inline-size|block-size)\n\t\tcase 8116: case 7059: case 5753: case 5535:\n\t\tcase 5445: case 5701: case 4933: case 4677:\n\t\tcase 5533: case 5789: case 5021: case 4765:\n\t\t\t// stretch, max-content, min-content, fill-available\n\t\t\tif (strlen(value) - 1 - length > 6)\n\t\t\t\tswitch (charat(value, length + 1)) {\n\t\t\t\t\t// (m)ax-content, (m)in-content\n\t\t\t\t\tcase 109:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (charat(value, length + 4) !== 45)\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t// (f)ill-available, (f)it-content\n\t\t\t\t\tcase 102:\n\t\t\t\t\t\treturn replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value\n\t\t\t\t\t// (s)tretch\n\t\t\t\t\tcase 115:\n\t\t\t\t\t\treturn ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value\n\t\t\t\t}\n\t\t\tbreak\n\t\t// position: sticky\n\t\tcase 4949:\n\t\t\t// (s)ticky?\n\t\t\tif (charat(value, length + 1) !== 115)\n\t\t\t\tbreak\n\t\t// display: (flex|inline-flex)\n\t\tcase 6444:\n\t\t\tswitch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n\t\t\t\t// stic(k)y\n\t\t\t\tcase 107:\n\t\t\t\t\treturn replace(value, ':', ':' + WEBKIT) + value\n\t\t\t\t// (inline-)?fl(e)x\n\t\t\t\tcase 101:\n\t\t\t\t\treturn replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value\n\t\t\t}\n\t\t\tbreak\n\t\t// writing-mode\n\t\tcase 5936:\n\t\t\tswitch (charat(value, length + 11)) {\n\t\t\t\t// vertical-l(r)\n\t\t\t\tcase 114:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value\n\t\t\t\t// vertical-r(l)\n\t\t\t\tcase 108:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value\n\t\t\t\t// horizontal(-)tb\n\t\t\t\tcase 45:\n\t\t\t\t\treturn WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value\n\t\t\t}\n\n\t\t\treturn WEBKIT + value + MS + value + value\n\t}\n\n\treturn value\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && characters.charCodeAt(length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset:\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule) {\n\t\t\t\t\t\t\t\t\t// d m s\n\t\t\t\t\t\t\t\t\tcase 100: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n","import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, stringify, COMMENT, rulesheet, middleware, prefixer, serialize, compile } from 'stylis';\nimport '@emotion/weak-memoize';\nimport '@emotion/memoize';\n\nvar last = function last(arr) {\n return arr.length ? arr[arr.length - 1] : null;\n}; // based on https://github.com/thysultan/stylis.js/blob/e6843c373ebcbbfade25ebcc23f540ed8508da0a/src/Tokenizer.js#L239-L244\n\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value,\n parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\nvar ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';\n\nvar isIgnoringComment = function isIgnoringComment(element) {\n return !!element && element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;\n};\n\nvar createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {\n return function (element, index, children) {\n if (element.type !== 'rule') return;\n var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);\n\n if (unsafePseudoClasses && cache.compat !== true) {\n var prevElement = index > 0 ? children[index - 1] : null;\n\n if (prevElement && isIgnoringComment(last(prevElement.children))) {\n return;\n }\n\n unsafePseudoClasses.forEach(function (unsafePseudoClass) {\n console.error(\"The pseudo class \\\"\" + unsafePseudoClass + \"\\\" is potentially unsafe when doing server-side rendering. Try changing it to \\\"\" + unsafePseudoClass.split('-child')[0] + \"-of-type\\\".\");\n });\n }\n };\n};\n\nvar isImportRule = function isImportRule(element) {\n return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;\n};\n\nvar isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {\n for (var i = index - 1; i >= 0; i--) {\n if (!isImportRule(children[i])) {\n return true;\n }\n }\n\n return false;\n}; // use this to remove incorrect elements from further processing\n// so they don't get handed to the `sheet` (or anything else)\n// as that could potentially lead to additional logs which in turn could be overhelming to the user\n\n\nvar nullifyElement = function nullifyElement(element) {\n element.type = '';\n element.value = '';\n element[\"return\"] = '';\n element.children = '';\n element.props = '';\n};\n\nvar incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {\n if (!isImportRule(element)) {\n return;\n }\n\n if (element.parent) {\n console.error(\"`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.\");\n nullifyElement(element);\n } else if (isPrependedWithRegularRules(index, children)) {\n console.error(\"`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.\");\n nullifyElement(element);\n }\n};\n\nvar defaultStylisPlugins = [prefixer];\n\nvar createCache = function createCache(options) {\n var key = options.key;\n\n if (process.env.NODE_ENV !== 'production' && !key) {\n throw new Error(\"You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\\n\" + \"If multiple caches share the same key they might \\\"fight\\\" for each other's style elements.\");\n }\n\n if ( key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe\n if (/[^a-z-]/.test(key)) {\n throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n }\n }\n\n var inserted = {}; // $FlowFixMe\n\n var container;\n var nodesToHydrate = [];\n\n {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n var attrib = node.getAttribute(\"data-emotion\").split(' '); // $FlowFixMe\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n\n var omnipresentPlugins = [compat, removeLabel];\n\n if (process.env.NODE_ENV !== 'production') {\n omnipresentPlugins.push(createUnsafeSelectorsAlarm({\n get compat() {\n return cache.compat;\n }\n\n }), incorrectImportAlarm);\n }\n\n {\n var currentSheet;\n var finalizingPlugins = [stringify, process.env.NODE_ENV !== 'production' ? function (element) {\n if (!element.root) {\n if (element[\"return\"]) {\n currentSheet.insert(element[\"return\"]);\n } else if (element.value && element.type !== COMMENT) {\n // insert empty rule in non-production environments\n // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet\n currentSheet.insert(element.value + \"{}\");\n }\n }\n } : rulesheet(function (rule) {\n currentSheet.insert(rule);\n })];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n currentSheet = sheet;\n\n if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {\n currentSheet = {\n insert: function insert(rule) {\n sheet.insert(rule + serialized.map);\n }\n };\n }\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport default createCache;\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length)\n\t\t\t\t\tbreak\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","var isBrowser = \"object\" !== 'undefined';\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className] + \";\");\n } else {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false ) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n\n if (cache.inserted[serialized.name] === undefined) {\n var current = serialized;\n\n do {\n var maybeStyles = cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n current = current.next;\n } while (current !== undefined);\n }\n};\n\nexport { getRegisteredStyles, insertStyles };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport default murmur2;\n","var unitlessKeys = {\n animationIterationCount: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport default unitlessKeys;\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar ILLEGAL_ESCAPE_SEQUENCE_ERROR = \"You have illegal escape sequence in your template literal, most likely inside content's property value.\\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \\\"content: '\\\\00d7';\\\" should become \\\"content: '\\\\\\\\00d7';\\\".\\nYou can read more about this here:\\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences\";\nvar UNDEFINED_AS_OBJECT_KEY_ERROR = \"You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\";\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nif (process.env.NODE_ENV !== 'production') {\n var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/;\n var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];\n var oldProcessStyleValue = processStyleValue;\n var msPattern = /^-ms-/;\n var hyphenPattern = /-(.)/g;\n var hyphenatedCache = {};\n\n processStyleValue = function processStyleValue(key, value) {\n if (key === 'content') {\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n throw new Error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n }\n }\n\n var processed = oldProcessStyleValue(key, value);\n\n if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {\n hyphenatedCache[key] = true;\n console.error(\"Using kebab-case for css properties in objects is not supported. Did you mean \" + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {\n return _char.toUpperCase();\n }) + \"?\");\n }\n\n return processed;\n };\n}\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n if (interpolation.__emotion_styles !== undefined) {\n if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {\n throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');\n }\n\n return interpolation;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n if (interpolation.anim === 1) {\n cursor = {\n name: interpolation.name,\n styles: interpolation.styles,\n next: cursor\n };\n return interpolation.name;\n }\n\n if (interpolation.styles !== undefined) {\n var next = interpolation.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = interpolation.styles + \";\";\n\n if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {\n styles += interpolation.map;\n }\n\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Functions that are interpolated in css calls will be stringified.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n }\n\n break;\n }\n\n case 'string':\n if (process.env.NODE_ENV !== 'production') {\n var matched = [];\n var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {\n var fakeVarName = \"animation\" + matched.length;\n matched.push(\"const \" + fakeVarName + \" = keyframes`\" + p2.replace(/^@keyframes animation-\\w+/, '') + \"`\");\n return \"${\" + fakeVarName + \"}\";\n });\n\n if (matched.length) {\n console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\n' + 'Instead of doing this:\\n\\n' + [].concat(matched, [\"`\" + replaced + \"`\"]).join('\\n') + '\\n\\nYou should wrap it with `css` like this:\\n\\n' + (\"css`\" + replaced + \"`\"));\n }\n }\n\n break;\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n if (registered == null) {\n return interpolation;\n }\n\n var cached = registered[interpolation];\n return cached !== undefined ? cached : interpolation;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var _key in obj) {\n var value = obj[_key];\n\n if (typeof value !== 'object') {\n if (registered != null && registered[value] !== undefined) {\n string += _key + \"{\" + registered[value] + \"}\";\n } else if (isProcessableValue(value)) {\n string += processStyleName(_key) + \":\" + processStyleValue(_key, value) + \";\";\n }\n } else {\n if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(_key) + \":\" + processStyleValue(_key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (_key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(_key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {\n console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);\n }\n\n string += _key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;\\n{]+)\\s*(;|$)/g;\nvar sourceMapPattern;\n\nif (process.env.NODE_ENV !== 'production') {\n sourceMapPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\n} // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\n\nvar cursor;\nvar serializeStyles = function serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += strings[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {\n console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);\n }\n\n styles += strings[i];\n }\n }\n\n var sourceMap;\n\n if (process.env.NODE_ENV !== 'production') {\n styles = styles.replace(sourceMapPattern, function (match) {\n sourceMap = match;\n return '';\n });\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + // $FlowFixMe we know it's not null\n match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n if (process.env.NODE_ENV !== 'production') {\n // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)\n return {\n name: name,\n styles: styles,\n map: sourceMap,\n next: cursor,\n toString: function toString() {\n return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\";\n }\n };\n }\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n};\n\nexport { serializeStyles };\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n","import { createContext, useContext, forwardRef, createElement, Fragment } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport { getRegisteredStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\nvar EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nif (process.env.NODE_ENV !== 'production') {\n EmotionCacheContext.displayName = 'EmotionCacheContext';\n}\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n // $FlowFixMe\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nvar ThemeContext = /* #__PURE__ */createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n ThemeContext.displayName = 'EmotionThemeContext';\n}\n\nvar useTheme = function useTheme() {\n return useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n if (process.env.NODE_ENV !== 'production' && (mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) {\n throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!');\n }\n\n return mergedTheme;\n }\n\n if (process.env.NODE_ENV !== 'production' && (theme == null || typeof theme !== 'object' || Array.isArray(theme))) {\n throw new Error('[ThemeProvider] Please make your theme prop a plain object');\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n\n var render = function render(props, ref) {\n var theme = useContext(ThemeContext);\n return /*#__PURE__*/createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n }; // $FlowFixMe\n\n\n var WithTheme = /*#__PURE__*/forwardRef(render);\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {\n // V8\n var match = /^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(line);\n\n if (match) {\n // The match may be something like 'Object.createEmotionProps'\n var parts = match[1].split('.');\n return parts[parts.length - 1];\n } // Safari / Firefox\n\n\n match = /^([A-Za-z0-9$.]+)@/.exec(line);\n if (match) return match[1];\n return undefined;\n};\n\nvar internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS\n// identifiers, thus we only need to replace what is a valid character for JS,\n// but not for CSS.\n\nvar sanitizeIdentifier = function sanitizeIdentifier(identifier) {\n return identifier.replace(/\\$/g, '-');\n};\n\nvar getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {\n if (!stackTrace) return undefined;\n var lines = stackTrace.split('\\n');\n\n for (var i = 0; i < lines.length; i++) {\n var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just \"Error\"\n\n if (!functionName) continue; // If we reach one of these, we have gone too far and should quit\n\n if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an\n // uppercase letter\n\n if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);\n }\n\n return undefined;\n};\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration\n props.css.indexOf(':') !== -1) {\n throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`\" + props.css + \"`\");\n }\n\n var newProps = {};\n\n for (var key in props) {\n if (hasOwnProperty.call(props, key)) {\n newProps[key] = props[key];\n }\n }\n\n newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when\n // the label hasn't already been computed\n\n if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {\n var label = getLabelFromStackTrace(new Error().stack);\n if (label) newProps[labelPropName] = label;\n }\n\n return newProps;\n};\n\nvar Noop = function Noop() {\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var type = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, useContext(ThemeContext));\n\n if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {\n var labelFromStack = props[labelPropName];\n\n if (labelFromStack) {\n serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);\n }\n }\n\n var rules = insertStyles(cache, serialized, typeof type === 'string');\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var key in props) {\n if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {\n newProps[key] = props[key];\n }\n }\n\n newProps.ref = ref;\n newProps.className = className;\n var ele = /*#__PURE__*/createElement(type, newProps);\n var possiblyStyleElement = /*#__PURE__*/createElement(Noop, null);\n\n\n return /*#__PURE__*/createElement(Fragment, null, possiblyStyleElement, ele);\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Emotion.displayName = 'EmotionCssPropInternal';\n}\n\nexport { CacheProvider as C, Emotion as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwnProperty as h, useTheme as u, withEmotionCache as w };\n","import { createElement, useContext, useRef, useLayoutEffect, Fragment } from 'react';\nimport '@emotion/cache';\nimport { h as hasOwnProperty, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext } from './emotion-element-699e6908.browser.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-699e6908.browser.esm.js';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport 'hoist-non-react-statics';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport { insertStyles, getRegisteredStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { StyleSheet } from '@emotion/sheet';\n\nvar pkg = {\n\tname: \"@emotion/react\",\n\tversion: \"11.7.1\",\n\tmain: \"dist/emotion-react.cjs.js\",\n\tmodule: \"dist/emotion-react.esm.js\",\n\tbrowser: {\n\t\t\"./dist/emotion-react.cjs.js\": \"./dist/emotion-react.browser.cjs.js\",\n\t\t\"./dist/emotion-react.esm.js\": \"./dist/emotion-react.browser.esm.js\"\n\t},\n\ttypes: \"types/index.d.ts\",\n\tfiles: [\n\t\t\"src\",\n\t\t\"dist\",\n\t\t\"jsx-runtime\",\n\t\t\"jsx-dev-runtime\",\n\t\t\"_isolated-hnrs\",\n\t\t\"types/*.d.ts\",\n\t\t\"macro.js\",\n\t\t\"macro.d.ts\",\n\t\t\"macro.js.flow\"\n\t],\n\tsideEffects: false,\n\tauthor: \"mitchellhamilton \",\n\tlicense: \"MIT\",\n\tscripts: {\n\t\t\"test:typescript\": \"dtslint types\"\n\t},\n\tdependencies: {\n\t\t\"@babel/runtime\": \"^7.13.10\",\n\t\t\"@emotion/cache\": \"^11.7.1\",\n\t\t\"@emotion/serialize\": \"^1.0.2\",\n\t\t\"@emotion/sheet\": \"^1.1.0\",\n\t\t\"@emotion/utils\": \"^1.0.0\",\n\t\t\"@emotion/weak-memoize\": \"^0.2.5\",\n\t\t\"hoist-non-react-statics\": \"^3.3.1\"\n\t},\n\tpeerDependencies: {\n\t\t\"@babel/core\": \"^7.0.0\",\n\t\treact: \">=16.8.0\"\n\t},\n\tpeerDependenciesMeta: {\n\t\t\"@babel/core\": {\n\t\t\toptional: true\n\t\t},\n\t\t\"@types/react\": {\n\t\t\toptional: true\n\t\t}\n\t},\n\tdevDependencies: {\n\t\t\"@babel/core\": \"^7.13.10\",\n\t\t\"@emotion/css\": \"11.7.1\",\n\t\t\"@emotion/css-prettifier\": \"1.0.1\",\n\t\t\"@emotion/server\": \"11.4.0\",\n\t\t\"@emotion/styled\": \"11.6.0\",\n\t\t\"@types/react\": \"^16.9.11\",\n\t\tdtslint: \"^0.3.0\",\n\t\t\"html-tag-names\": \"^1.1.2\",\n\t\treact: \"16.14.0\",\n\t\t\"svg-tag-names\": \"^1.1.1\"\n\t},\n\trepository: \"https://github.com/emotion-js/emotion/tree/main/packages/react\",\n\tpublishConfig: {\n\t\taccess: \"public\"\n\t},\n\t\"umd:main\": \"dist/emotion-react.umd.min.js\",\n\tpreconstruct: {\n\t\tentrypoints: [\n\t\t\t\"./index.js\",\n\t\t\t\"./jsx-runtime.js\",\n\t\t\t\"./jsx-dev-runtime.js\",\n\t\t\t\"./_isolated-hnrs.js\"\n\t\t],\n\t\tumdName: \"emotionReact\"\n\t}\n};\n\nvar jsx = function jsx(type, props) {\n var args = arguments;\n\n if (props == null || !hasOwnProperty.call(props, 'css')) {\n // $FlowFixMe\n return createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n } // $FlowFixMe\n\n\n return createElement.apply(null, createElementArgArray);\n};\n\nvar warnedAboutCssPropForGlobal = false; // maintain place over rerenders.\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is\n // probably using the custom createElement which\n // means it will be turned into a className prop\n // $FlowFixMe I don't really want to add it to the type since it shouldn't be used\n props.className || props.css)) {\n console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\");\n warnedAboutCssPropForGlobal = true;\n }\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, useContext(ThemeContext));\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = useRef();\n useLayoutEffect(function () {\n var key = cache.key + \"-global\";\n var sheet = new StyleSheet({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false; // $FlowFixMe\n\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useLayoutEffect(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Global.displayName = 'EmotionGlobal';\n}\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nvar keyframes = function keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name; // $FlowFixMe\n\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n};\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n if (process.env.NODE_ENV !== 'production' && arg.styles !== undefined && arg.name !== undefined) {\n console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from component.');\n }\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Noop = function Noop() {\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n\n var css = function css() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n\n {\n insertStyles(cache, serialized, false);\n }\n\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && process.env.NODE_ENV !== 'production') {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n var possiblyStyleElement = /*#__PURE__*/createElement(Noop, null);\n\n\n return /*#__PURE__*/createElement(Fragment, null, possiblyStyleElement, ele);\n});\n\nif (process.env.NODE_ENV !== 'production') {\n ClassNames.displayName = 'EmotionClassNames';\n}\n\nif (process.env.NODE_ENV !== 'production') {\n var isBrowser = \"object\" !== 'undefined'; // #1727 for some reason Jest evaluates modules twice if some consuming module gets mocked with jest.mock\n\n var isJest = typeof jest !== 'undefined';\n\n if (isBrowser && !isJest) {\n // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later\n var globalContext = // $FlowIgnore\n typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef\n : isBrowser ? window : global;\n var globalKey = \"__EMOTION_REACT_\" + pkg.version.split('.')[0] + \"__\";\n\n if (globalContext[globalKey]) {\n console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');\n }\n\n globalContext[globalKey] = true;\n }\n}\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","var __WEBPACK_NAMESPACE_OBJECT__ = ReactDOM;","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { jsx, keyframes, css as css$2, ClassNames } from '@emotion/react';\nimport _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport _typeof from '@babel/runtime/helpers/esm/typeof';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nimport _defineProperty$1 from '@babel/runtime/helpers/esm/defineProperty';\nimport { Component, createContext } from 'react';\nimport { createPortal } from 'react-dom';\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nvar _excluded$3 = [\"className\", \"clearValue\", \"cx\", \"getStyles\", \"getValue\", \"hasValue\", \"isMulti\", \"isRtl\", \"options\", \"selectOption\", \"selectProps\", \"setValue\", \"theme\"];\n// ==============================\n// NO OP\n// ==============================\nvar noop = function noop() {};\n// Class Name Prefixer\n// ==============================\n\n/**\n String representation of component state for styling with class names.\n\n Expects an array of strings OR a string/object pair:\n - className(['comp', 'comp-arg', 'comp-arg-2'])\n @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'\n - className('comp', { some: true, state: false })\n @returns 'react-select__comp react-select__comp--some'\n*/\n\nfunction applyPrefixToName(prefix, name) {\n if (!name) {\n return prefix;\n } else if (name[0] === '-') {\n return prefix + name;\n } else {\n return prefix + '__' + name;\n }\n}\n\nfunction classNames(prefix, state, className) {\n var arr = [className];\n\n if (state && prefix) {\n for (var key in state) {\n if (state.hasOwnProperty(key) && state[key]) {\n arr.push(\"\".concat(applyPrefixToName(prefix, key)));\n }\n }\n }\n\n return arr.filter(function (i) {\n return i;\n }).map(function (i) {\n return String(i).trim();\n }).join(' ');\n} // ==============================\n// Clean Value\n// ==============================\n\nvar cleanValue = function cleanValue(value) {\n if (isArray(value)) return value.filter(Boolean);\n if (_typeof(value) === 'object' && value !== null) return [value];\n return [];\n}; // ==============================\n// Clean Common Props\n// ==============================\n\nvar cleanCommonProps = function cleanCommonProps(props) {\n //className\n props.className;\n props.clearValue;\n props.cx;\n props.getStyles;\n props.getValue;\n props.hasValue;\n props.isMulti;\n props.isRtl;\n props.options;\n props.selectOption;\n props.selectProps;\n props.setValue;\n props.theme;\n var innerProps = _objectWithoutProperties(props, _excluded$3);\n\n return _objectSpread2({}, innerProps);\n}; // ==============================\n// Handle Input Change\n// ==============================\n\nfunction handleInputChange(inputValue, actionMeta, onInputChange) {\n if (onInputChange) {\n var _newValue = onInputChange(inputValue, actionMeta);\n\n if (typeof _newValue === 'string') return _newValue;\n }\n\n return inputValue;\n} // ==============================\n// Scroll Helpers\n// ==============================\n\nfunction isDocumentElement(el) {\n return [document.documentElement, document.body, window].indexOf(el) > -1;\n} // Normalized Scroll Top\n// ------------------------------\n\nfunction getScrollTop(el) {\n if (isDocumentElement(el)) {\n return window.pageYOffset;\n }\n\n return el.scrollTop;\n}\nfunction scrollTo(el, top) {\n // with a scroll distance, we perform scroll on the element\n if (isDocumentElement(el)) {\n window.scrollTo(0, top);\n return;\n }\n\n el.scrollTop = top;\n} // Get Scroll Parent\n// ------------------------------\n\nfunction getScrollParent(element) {\n var style = getComputedStyle(element);\n var excludeStaticParent = style.position === 'absolute';\n var overflowRx = /(auto|scroll)/;\n if (style.position === 'fixed') return document.documentElement;\n\n for (var parent = element; parent = parent.parentElement;) {\n style = getComputedStyle(parent);\n\n if (excludeStaticParent && style.position === 'static') {\n continue;\n }\n\n if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {\n return parent;\n }\n }\n\n return document.documentElement;\n} // Animated Scroll To\n// ------------------------------\n\n/**\n @param t: time (elapsed)\n @param b: initial value\n @param c: amount of change\n @param d: duration\n*/\n\nfunction easeOutCubic(t, b, c, d) {\n return c * ((t = t / d - 1) * t * t + 1) + b;\n}\n\nfunction animatedScrollTo(element, to) {\n var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;\n var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;\n var start = getScrollTop(element);\n var change = to - start;\n var increment = 10;\n var currentTime = 0;\n\n function animateScroll() {\n currentTime += increment;\n var val = easeOutCubic(currentTime, start, change, duration);\n scrollTo(element, val);\n\n if (currentTime < duration) {\n window.requestAnimationFrame(animateScroll);\n } else {\n callback(element);\n }\n }\n\n animateScroll();\n} // Scroll Into View\n// ------------------------------\n\nfunction scrollIntoView(menuEl, focusedEl) {\n var menuRect = menuEl.getBoundingClientRect();\n var focusedRect = focusedEl.getBoundingClientRect();\n var overScroll = focusedEl.offsetHeight / 3;\n\n if (focusedRect.bottom + overScroll > menuRect.bottom) {\n scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));\n } else if (focusedRect.top - overScroll < menuRect.top) {\n scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));\n }\n} // ==============================\n// Get bounding client object\n// ==============================\n// cannot get keys using array notation with DOMRect\n\nfunction getBoundingClientObj(element) {\n var rect = element.getBoundingClientRect();\n return {\n bottom: rect.bottom,\n height: rect.height,\n left: rect.left,\n right: rect.right,\n top: rect.top,\n width: rect.width\n };\n}\n// Touch Capability Detector\n// ==============================\n\nfunction isTouchCapable() {\n try {\n document.createEvent('TouchEvent');\n return true;\n } catch (e) {\n return false;\n }\n} // ==============================\n// Mobile Device Detector\n// ==============================\n\nfunction isMobileDevice() {\n try {\n return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n } catch (e) {\n return false;\n }\n} // ==============================\n// Passive Event Detector\n// ==============================\n// https://github.com/rafgraph/detect-it/blob/main/src/index.ts#L19-L36\n\nvar passiveOptionAccessed = false;\nvar options = {\n get passive() {\n return passiveOptionAccessed = true;\n }\n\n}; // check for SSR\n\nvar w = typeof window !== 'undefined' ? window : {};\n\nif (w.addEventListener && w.removeEventListener) {\n w.addEventListener('p', noop, options);\n w.removeEventListener('p', noop, false);\n}\n\nvar supportsPassiveEvents = passiveOptionAccessed;\nfunction notNullish(item) {\n return item != null;\n}\nfunction isArray(arg) {\n return Array.isArray(arg);\n}\nfunction valueTernary(isMulti, multiValue, singleValue) {\n return isMulti ? multiValue : singleValue;\n}\nfunction singleValueAsValue(singleValue) {\n return singleValue;\n}\nfunction multiValueAsValue(multiValue) {\n return multiValue;\n}\n\nfunction getMenuPlacement(_ref) {\n var maxHeight = _ref.maxHeight,\n menuEl = _ref.menuEl,\n minHeight = _ref.minHeight,\n placement = _ref.placement,\n shouldScroll = _ref.shouldScroll,\n isFixedPosition = _ref.isFixedPosition,\n theme = _ref.theme;\n var spacing = theme.spacing;\n var scrollParent = getScrollParent(menuEl);\n var defaultState = {\n placement: 'bottom',\n maxHeight: maxHeight\n }; // something went wrong, return default state\n\n if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when\n // the menu is rendered\n\n var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),\n scrollHeight = _scrollParent$getBoun.height;\n\n var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),\n menuBottom = _menuEl$getBoundingCl.bottom,\n menuHeight = _menuEl$getBoundingCl.height,\n menuTop = _menuEl$getBoundingCl.top;\n\n var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),\n containerTop = _menuEl$offsetParent$.top;\n\n var viewHeight = window.innerHeight;\n var scrollTop = getScrollTop(scrollParent);\n var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);\n var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);\n var viewSpaceAbove = containerTop - marginTop;\n var viewSpaceBelow = viewHeight - menuTop;\n var scrollSpaceAbove = viewSpaceAbove + scrollTop;\n var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;\n var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;\n var scrollUp = scrollTop + menuTop - marginTop;\n var scrollDuration = 160;\n\n switch (placement) {\n case 'auto':\n case 'bottom':\n // 1: the menu will fit, do nothing\n if (viewSpaceBelow >= menuHeight) {\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n } // 2: the menu will fit, if scrolled\n\n\n if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollDown, scrollDuration);\n }\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n } // 3: the menu will fit, if constrained\n\n\n if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollDown, scrollDuration);\n } // we want to provide as much of the menu as possible to the user,\n // so give them whatever is available below rather than the minHeight.\n\n\n var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;\n return {\n placement: 'bottom',\n maxHeight: constrainedHeight\n };\n } // 4. Forked beviour when there isn't enough space below\n // AUTO: flip the menu, render above\n\n\n if (placement === 'auto' || isFixedPosition) {\n // may need to be constrained after flipping\n var _constrainedHeight = maxHeight;\n var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;\n\n if (spaceAbove >= minHeight) {\n _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);\n }\n\n return {\n placement: 'top',\n maxHeight: _constrainedHeight\n };\n } // BOTTOM: allow browser to increase scrollable area and immediately set scroll\n\n\n if (placement === 'bottom') {\n if (shouldScroll) {\n scrollTo(scrollParent, scrollDown);\n }\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n }\n\n break;\n\n case 'top':\n // 1: the menu will fit, do nothing\n if (viewSpaceAbove >= menuHeight) {\n return {\n placement: 'top',\n maxHeight: maxHeight\n };\n } // 2: the menu will fit, if scrolled\n\n\n if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollUp, scrollDuration);\n }\n\n return {\n placement: 'top',\n maxHeight: maxHeight\n };\n } // 3: the menu will fit, if constrained\n\n\n if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {\n var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,\n // so give them whatever is available below rather than the minHeight.\n\n if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {\n _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;\n }\n\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollUp, scrollDuration);\n }\n\n return {\n placement: 'top',\n maxHeight: _constrainedHeight2\n };\n } // 4. not enough space, the browser WILL NOT increase scrollable area when\n // absolutely positioned element rendered above the viewport (only below).\n // Flip the menu, render below\n\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n\n default:\n throw new Error(\"Invalid placement provided \\\"\".concat(placement, \"\\\".\"));\n }\n\n return defaultState;\n} // Menu Component\n// ------------------------------\n\nfunction alignToControl(placement) {\n var placementToCSSProp = {\n bottom: 'top',\n top: 'bottom'\n };\n return placement ? placementToCSSProp[placement] : 'bottom';\n}\n\nvar coercePlacement = function coercePlacement(p) {\n return p === 'auto' ? 'bottom' : p;\n};\n\nvar menuCSS = function menuCSS(_ref2) {\n var _ref3;\n\n var placement = _ref2.placement,\n _ref2$theme = _ref2.theme,\n borderRadius = _ref2$theme.borderRadius,\n spacing = _ref2$theme.spacing,\n colors = _ref2$theme.colors;\n return _ref3 = {\n label: 'menu'\n }, _defineProperty$1(_ref3, alignToControl(placement), '100%'), _defineProperty$1(_ref3, \"backgroundColor\", colors.neutral0), _defineProperty$1(_ref3, \"borderRadius\", borderRadius), _defineProperty$1(_ref3, \"boxShadow\", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty$1(_ref3, \"marginBottom\", spacing.menuGutter), _defineProperty$1(_ref3, \"marginTop\", spacing.menuGutter), _defineProperty$1(_ref3, \"position\", 'absolute'), _defineProperty$1(_ref3, \"width\", '100%'), _defineProperty$1(_ref3, \"zIndex\", 1), _ref3;\n};\nvar PortalPlacementContext = /*#__PURE__*/createContext({\n getPortalPlacement: null\n}); // NOTE: internal only\n\nvar MenuPlacer = /*#__PURE__*/function (_Component) {\n _inherits(MenuPlacer, _Component);\n\n var _super = _createSuper(MenuPlacer);\n\n function MenuPlacer() {\n var _this;\n\n _classCallCheck(this, MenuPlacer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n _this.state = {\n maxHeight: _this.props.maxMenuHeight,\n placement: null\n };\n _this.context = void 0;\n\n _this.getPlacement = function (ref) {\n var _this$props = _this.props,\n minMenuHeight = _this$props.minMenuHeight,\n maxMenuHeight = _this$props.maxMenuHeight,\n menuPlacement = _this$props.menuPlacement,\n menuPosition = _this$props.menuPosition,\n menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,\n theme = _this$props.theme;\n if (!ref) return; // DO NOT scroll if position is fixed\n\n var isFixedPosition = menuPosition === 'fixed';\n var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;\n var state = getMenuPlacement({\n maxHeight: maxMenuHeight,\n menuEl: ref,\n minHeight: minMenuHeight,\n placement: menuPlacement,\n shouldScroll: shouldScroll,\n isFixedPosition: isFixedPosition,\n theme: theme\n });\n var getPortalPlacement = _this.context.getPortalPlacement;\n if (getPortalPlacement) getPortalPlacement(state);\n\n _this.setState(state);\n };\n\n _this.getUpdatedProps = function () {\n var menuPlacement = _this.props.menuPlacement;\n var placement = _this.state.placement || coercePlacement(menuPlacement);\n return _objectSpread2(_objectSpread2({}, _this.props), {}, {\n placement: placement,\n maxHeight: _this.state.maxHeight\n });\n };\n\n return _this;\n }\n\n _createClass(MenuPlacer, [{\n key: \"render\",\n value: function render() {\n var children = this.props.children;\n return children({\n ref: this.getPlacement,\n placerProps: this.getUpdatedProps()\n });\n }\n }]);\n\n return MenuPlacer;\n}(Component);\nMenuPlacer.contextType = PortalPlacementContext;\n\nvar Menu = function Menu(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerRef = props.innerRef,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('menu', props),\n className: cx({\n menu: true\n }, className),\n ref: innerRef\n }, innerProps), children);\n};\n// Menu List\n// ==============================\n\nvar menuListCSS = function menuListCSS(_ref4) {\n var maxHeight = _ref4.maxHeight,\n baseUnit = _ref4.theme.spacing.baseUnit;\n return {\n maxHeight: maxHeight,\n overflowY: 'auto',\n paddingBottom: baseUnit,\n paddingTop: baseUnit,\n position: 'relative',\n // required for offset[Height, Top] > keyboard scroll\n WebkitOverflowScrolling: 'touch'\n };\n};\nvar MenuList = function MenuList(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n innerRef = props.innerRef,\n isMulti = props.isMulti;\n return jsx(\"div\", _extends({\n css: getStyles('menuList', props),\n className: cx({\n 'menu-list': true,\n 'menu-list--is-multi': isMulti\n }, className),\n ref: innerRef\n }, innerProps), children);\n}; // ==============================\n// Menu Notices\n// ==============================\n\nvar noticeCSS = function noticeCSS(_ref5) {\n var _ref5$theme = _ref5.theme,\n baseUnit = _ref5$theme.spacing.baseUnit,\n colors = _ref5$theme.colors;\n return {\n color: colors.neutral40,\n padding: \"\".concat(baseUnit * 2, \"px \").concat(baseUnit * 3, \"px\"),\n textAlign: 'center'\n };\n};\n\nvar noOptionsMessageCSS = noticeCSS;\nvar loadingMessageCSS = noticeCSS;\nvar NoOptionsMessage = function NoOptionsMessage(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('noOptionsMessage', props),\n className: cx({\n 'menu-notice': true,\n 'menu-notice--no-options': true\n }, className)\n }, innerProps), children);\n};\nNoOptionsMessage.defaultProps = {\n children: 'No options'\n};\nvar LoadingMessage = function LoadingMessage(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('loadingMessage', props),\n className: cx({\n 'menu-notice': true,\n 'menu-notice--loading': true\n }, className)\n }, innerProps), children);\n};\nLoadingMessage.defaultProps = {\n children: 'Loading...'\n}; // ==============================\n// Menu Portal\n// ==============================\n\nvar menuPortalCSS = function menuPortalCSS(_ref6) {\n var rect = _ref6.rect,\n offset = _ref6.offset,\n position = _ref6.position;\n return {\n left: rect.left,\n position: position,\n top: offset,\n width: rect.width,\n zIndex: 1\n };\n};\nvar MenuPortal = /*#__PURE__*/function (_Component2) {\n _inherits(MenuPortal, _Component2);\n\n var _super2 = _createSuper(MenuPortal);\n\n function MenuPortal() {\n var _this2;\n\n _classCallCheck(this, MenuPortal);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _super2.call.apply(_super2, [this].concat(args));\n _this2.state = {\n placement: null\n };\n\n _this2.getPortalPlacement = function (_ref7) {\n var placement = _ref7.placement;\n var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed\n\n if (placement !== initialPlacement) {\n _this2.setState({\n placement: placement\n });\n }\n };\n\n return _this2;\n }\n\n _createClass(MenuPortal, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n appendTo = _this$props2.appendTo,\n children = _this$props2.children,\n className = _this$props2.className,\n controlElement = _this$props2.controlElement,\n cx = _this$props2.cx,\n innerProps = _this$props2.innerProps,\n menuPlacement = _this$props2.menuPlacement,\n position = _this$props2.menuPosition,\n getStyles = _this$props2.getStyles;\n var isFixed = position === 'fixed'; // bail early if required elements aren't present\n\n if (!appendTo && !isFixed || !controlElement) {\n return null;\n }\n\n var placement = this.state.placement || coercePlacement(menuPlacement);\n var rect = getBoundingClientObj(controlElement);\n var scrollDistance = isFixed ? 0 : window.pageYOffset;\n var offset = rect[placement] + scrollDistance;\n var state = {\n offset: offset,\n position: position,\n rect: rect\n }; // same wrapper element whether fixed or portalled\n\n var menuWrapper = jsx(\"div\", _extends({\n css: getStyles('menuPortal', state),\n className: cx({\n 'menu-portal': true\n }, className)\n }, innerProps), children);\n return jsx(PortalPlacementContext.Provider, {\n value: {\n getPortalPlacement: this.getPortalPlacement\n }\n }, appendTo ? /*#__PURE__*/createPortal(menuWrapper, appendTo) : menuWrapper);\n }\n }]);\n\n return MenuPortal;\n}(Component);\n\nvar containerCSS = function containerCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n isRtl = _ref.isRtl;\n return {\n label: 'container',\n direction: isRtl ? 'rtl' : undefined,\n pointerEvents: isDisabled ? 'none' : undefined,\n // cancel mouse events when disabled\n position: 'relative'\n };\n};\nvar SelectContainer = function SelectContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isDisabled = props.isDisabled,\n isRtl = props.isRtl;\n return jsx(\"div\", _extends({\n css: getStyles('container', props),\n className: cx({\n '--is-disabled': isDisabled,\n '--is-rtl': isRtl\n }, className)\n }, innerProps), children);\n}; // ==============================\n// Value Container\n// ==============================\n\nvar valueContainerCSS = function valueContainerCSS(_ref2) {\n var spacing = _ref2.theme.spacing,\n isMulti = _ref2.isMulti,\n hasValue = _ref2.hasValue,\n controlShouldRenderValue = _ref2.selectProps.controlShouldRenderValue;\n return {\n alignItems: 'center',\n display: isMulti && hasValue && controlShouldRenderValue ? 'flex' : 'grid',\n flex: 1,\n flexWrap: 'wrap',\n padding: \"\".concat(spacing.baseUnit / 2, \"px \").concat(spacing.baseUnit * 2, \"px\"),\n WebkitOverflowScrolling: 'touch',\n position: 'relative',\n overflow: 'hidden'\n };\n};\nvar ValueContainer = function ValueContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n innerProps = props.innerProps,\n isMulti = props.isMulti,\n getStyles = props.getStyles,\n hasValue = props.hasValue;\n return jsx(\"div\", _extends({\n css: getStyles('valueContainer', props),\n className: cx({\n 'value-container': true,\n 'value-container--is-multi': isMulti,\n 'value-container--has-value': hasValue\n }, className)\n }, innerProps), children);\n}; // ==============================\n// Indicator Container\n// ==============================\n\nvar indicatorsContainerCSS = function indicatorsContainerCSS() {\n return {\n alignItems: 'center',\n alignSelf: 'stretch',\n display: 'flex',\n flexShrink: 0\n };\n};\nvar IndicatorsContainer = function IndicatorsContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n innerProps = props.innerProps,\n getStyles = props.getStyles;\n return jsx(\"div\", _extends({\n css: getStyles('indicatorsContainer', props),\n className: cx({\n indicators: true\n }, className)\n }, innerProps), children);\n};\n\nvar _templateObject;\n\nvar _excluded$2 = [\"size\"];\n\nfunction _EMOTION_STRINGIFIED_CSS_ERROR__() { return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\"; }\n\nvar _ref2 = process.env.NODE_ENV === \"production\" ? {\n name: \"8mmkcg\",\n styles: \"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0\"\n} : {\n name: \"tj5bde-Svg\",\n styles: \"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;\",\n map: \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcg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Byb3BzOiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcywgaXNSdGwgfSA9IHByb3BzO1xuXG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2xvYWRpbmdJbmRpY2F0b3InLCBwcm9wcyl9XG4gICAgICBjbGFzc05hbWU9e2N4KFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGNsYXNzTmFtZVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5Mb2FkaW5nSW5kaWNhdG9yLmRlZmF1bHRQcm9wcyA9IHsgc2l6ZTogNCB9O1xuIl19 */\",\n toString: _EMOTION_STRINGIFIED_CSS_ERROR__\n};\n\n// ==============================\n// Dropdown & Clear Icons\n// ==============================\nvar Svg = function Svg(_ref) {\n var size = _ref.size,\n props = _objectWithoutProperties(_ref, _excluded$2);\n\n return jsx(\"svg\", _extends({\n height: size,\n width: size,\n viewBox: \"0 0 20 20\",\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n css: _ref2\n }, props));\n};\n\nvar CrossIcon = function CrossIcon(props) {\n return jsx(Svg, _extends({\n size: 20\n }, props), jsx(\"path\", {\n d: \"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"\n }));\n};\nvar DownChevron = function DownChevron(props) {\n return jsx(Svg, _extends({\n size: 20\n }, props), jsx(\"path\", {\n d: \"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"\n }));\n}; // ==============================\n// Dropdown & Clear Buttons\n// ==============================\n\nvar baseCSS = function baseCSS(_ref3) {\n var isFocused = _ref3.isFocused,\n _ref3$theme = _ref3.theme,\n baseUnit = _ref3$theme.spacing.baseUnit,\n colors = _ref3$theme.colors;\n return {\n label: 'indicatorContainer',\n color: isFocused ? colors.neutral60 : colors.neutral20,\n display: 'flex',\n padding: baseUnit * 2,\n transition: 'color 150ms',\n ':hover': {\n color: isFocused ? colors.neutral80 : colors.neutral40\n }\n };\n};\n\nvar dropdownIndicatorCSS = baseCSS;\nvar DropdownIndicator = function DropdownIndicator(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('dropdownIndicator', props),\n className: cx({\n indicator: true,\n 'dropdown-indicator': true\n }, className)\n }, innerProps), children || jsx(DownChevron, null));\n};\nvar clearIndicatorCSS = baseCSS;\nvar ClearIndicator = function ClearIndicator(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('clearIndicator', props),\n className: cx({\n indicator: true,\n 'clear-indicator': true\n }, className)\n }, innerProps), children || jsx(CrossIcon, null));\n}; // ==============================\n// Separator\n// ==============================\n\nvar indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) {\n var isDisabled = _ref4.isDisabled,\n _ref4$theme = _ref4.theme,\n baseUnit = _ref4$theme.spacing.baseUnit,\n colors = _ref4$theme.colors;\n return {\n label: 'indicatorSeparator',\n alignSelf: 'stretch',\n backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,\n marginBottom: baseUnit * 2,\n marginTop: baseUnit * 2,\n width: 1\n };\n};\nvar IndicatorSeparator = function IndicatorSeparator(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return jsx(\"span\", _extends({}, innerProps, {\n css: getStyles('indicatorSeparator', props),\n className: cx({\n 'indicator-separator': true\n }, className)\n }));\n}; // ==============================\n// Loading\n// ==============================\n\nvar loadingDotAnimations = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n 0%, 80%, 100% { opacity: 0; }\\n 40% { opacity: 1; }\\n\"])));\nvar loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {\n var isFocused = _ref5.isFocused,\n size = _ref5.size,\n _ref5$theme = _ref5.theme,\n colors = _ref5$theme.colors,\n baseUnit = _ref5$theme.spacing.baseUnit;\n return {\n label: 'loadingIndicator',\n color: isFocused ? colors.neutral60 : colors.neutral20,\n display: 'flex',\n padding: baseUnit * 2,\n transition: 'color 150ms',\n alignSelf: 'center',\n fontSize: size,\n lineHeight: 1,\n marginRight: size,\n textAlign: 'center',\n verticalAlign: 'middle'\n };\n};\n\nvar LoadingDot = function LoadingDot(_ref6) {\n var delay = _ref6.delay,\n offset = _ref6.offset;\n return jsx(\"span\", {\n css: /*#__PURE__*/css$2({\n animation: \"\".concat(loadingDotAnimations, \" 1s ease-in-out \").concat(delay, \"ms infinite;\"),\n backgroundColor: 'currentColor',\n borderRadius: '1em',\n display: 'inline-block',\n marginLeft: offset ? '1em' : undefined,\n height: '1em',\n verticalAlign: 'top',\n width: '1em'\n }, process.env.NODE_ENV === \"production\" ? \"\" : \";label:LoadingDot;\", process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFQSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3B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7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICAgIGNsYXNzTmFtZVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5Mb2FkaW5nSW5kaWNhdG9yLmRlZmF1bHRQcm9wcyA9IHsgc2l6ZTogNCB9O1xuIl19 */\")\n });\n};\n\nvar LoadingIndicator = function LoadingIndicator(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isRtl = props.isRtl;\n return jsx(\"div\", _extends({\n css: getStyles('loadingIndicator', props),\n className: cx({\n indicator: true,\n 'loading-indicator': true\n }, className)\n }, innerProps), jsx(LoadingDot, {\n delay: 0,\n offset: isRtl\n }), jsx(LoadingDot, {\n delay: 160,\n offset: true\n }), jsx(LoadingDot, {\n delay: 320,\n offset: !isRtl\n }));\n};\nLoadingIndicator.defaultProps = {\n size: 4\n};\n\nvar css$1 = function css(_ref) {\n var isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n _ref$theme = _ref.theme,\n colors = _ref$theme.colors,\n borderRadius = _ref$theme.borderRadius,\n spacing = _ref$theme.spacing;\n return {\n label: 'control',\n alignItems: 'center',\n backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,\n borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,\n borderRadius: borderRadius,\n borderStyle: 'solid',\n borderWidth: 1,\n boxShadow: isFocused ? \"0 0 0 1px \".concat(colors.primary) : undefined,\n cursor: 'default',\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n minHeight: spacing.controlHeight,\n outline: '0 !important',\n position: 'relative',\n transition: 'all 100ms',\n '&:hover': {\n borderColor: isFocused ? colors.primary : colors.neutral30\n }\n };\n};\n\nvar Control = function Control(props) {\n var children = props.children,\n cx = props.cx,\n getStyles = props.getStyles,\n className = props.className,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n innerRef = props.innerRef,\n innerProps = props.innerProps,\n menuIsOpen = props.menuIsOpen;\n return jsx(\"div\", _extends({\n ref: innerRef,\n css: getStyles('control', props),\n className: cx({\n control: true,\n 'control--is-disabled': isDisabled,\n 'control--is-focused': isFocused,\n 'control--menu-is-open': menuIsOpen\n }, className)\n }, innerProps), children);\n};\n\nvar _excluded$1 = [\"data\"];\nvar groupCSS = function groupCSS(_ref) {\n var spacing = _ref.theme.spacing;\n return {\n paddingBottom: spacing.baseUnit * 2,\n paddingTop: spacing.baseUnit * 2\n };\n};\n\nvar Group = function Group(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n Heading = props.Heading,\n headingProps = props.headingProps,\n innerProps = props.innerProps,\n label = props.label,\n theme = props.theme,\n selectProps = props.selectProps;\n return jsx(\"div\", _extends({\n css: getStyles('group', props),\n className: cx({\n group: true\n }, className)\n }, innerProps), jsx(Heading, _extends({}, headingProps, {\n selectProps: selectProps,\n theme: theme,\n getStyles: getStyles,\n cx: cx\n }), label), jsx(\"div\", null, children));\n};\n\nvar groupHeadingCSS = function groupHeadingCSS(_ref2) {\n var spacing = _ref2.theme.spacing;\n return {\n label: 'group',\n color: '#999',\n cursor: 'default',\n display: 'block',\n fontSize: '75%',\n fontWeight: 500,\n marginBottom: '0.25em',\n paddingLeft: spacing.baseUnit * 3,\n paddingRight: spacing.baseUnit * 3,\n textTransform: 'uppercase'\n };\n};\nvar GroupHeading = function GroupHeading(props) {\n var getStyles = props.getStyles,\n cx = props.cx,\n className = props.className;\n\n var _cleanCommonProps = cleanCommonProps(props);\n _cleanCommonProps.data;\n var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);\n\n return jsx(\"div\", _extends({\n css: getStyles('groupHeading', props),\n className: cx({\n 'group-heading': true\n }, className)\n }, innerProps));\n};\n\nvar _excluded = [\"innerRef\", \"isDisabled\", \"isHidden\", \"inputClassName\"];\nvar inputCSS = function inputCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n value = _ref.value,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return _objectSpread2({\n margin: spacing.baseUnit / 2,\n paddingBottom: spacing.baseUnit / 2,\n paddingTop: spacing.baseUnit / 2,\n visibility: isDisabled ? 'hidden' : 'visible',\n color: colors.neutral80,\n // force css to recompute when value change due to @emotion bug.\n // We can remove it whenever the bug is fixed.\n transform: value ? 'translateZ(0)' : ''\n }, containerStyle);\n};\nvar spacingStyle = {\n gridArea: '1 / 2',\n font: 'inherit',\n minWidth: '2px',\n border: 0,\n margin: 0,\n outline: 0,\n padding: 0\n};\nvar containerStyle = {\n flex: '1 1 auto',\n display: 'inline-grid',\n gridArea: '1 / 1 / 2 / 3',\n gridTemplateColumns: '0 min-content',\n '&:after': _objectSpread2({\n content: 'attr(data-value) \" \"',\n visibility: 'hidden',\n whiteSpace: 'pre'\n }, spacingStyle)\n};\n\nvar inputStyle = function inputStyle(isHidden) {\n return _objectSpread2({\n label: 'input',\n color: 'inherit',\n background: 0,\n opacity: isHidden ? 0 : 1,\n width: '100%'\n }, spacingStyle);\n};\n\nvar Input = function Input(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n value = props.value;\n\n var _cleanCommonProps = cleanCommonProps(props),\n innerRef = _cleanCommonProps.innerRef,\n isDisabled = _cleanCommonProps.isDisabled,\n isHidden = _cleanCommonProps.isHidden,\n inputClassName = _cleanCommonProps.inputClassName,\n innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded);\n\n return jsx(\"div\", {\n className: cx({\n 'input-container': true\n }, className),\n css: getStyles('input', props),\n \"data-value\": value || ''\n }, jsx(\"input\", _extends({\n className: cx({\n input: true\n }, inputClassName),\n ref: innerRef,\n style: inputStyle(isHidden),\n disabled: isDisabled\n }, innerProps)));\n};\n\nvar multiValueCSS = function multiValueCSS(_ref) {\n var _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n borderRadius = _ref$theme.borderRadius,\n colors = _ref$theme.colors;\n return {\n label: 'multiValue',\n backgroundColor: colors.neutral10,\n borderRadius: borderRadius / 2,\n display: 'flex',\n margin: spacing.baseUnit / 2,\n minWidth: 0 // resolves flex/text-overflow bug\n\n };\n};\nvar multiValueLabelCSS = function multiValueLabelCSS(_ref2) {\n var _ref2$theme = _ref2.theme,\n borderRadius = _ref2$theme.borderRadius,\n colors = _ref2$theme.colors,\n cropWithEllipsis = _ref2.cropWithEllipsis;\n return {\n borderRadius: borderRadius / 2,\n color: colors.neutral80,\n fontSize: '85%',\n overflow: 'hidden',\n padding: 3,\n paddingLeft: 6,\n textOverflow: cropWithEllipsis || cropWithEllipsis === undefined ? 'ellipsis' : undefined,\n whiteSpace: 'nowrap'\n };\n};\nvar multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {\n var _ref3$theme = _ref3.theme,\n spacing = _ref3$theme.spacing,\n borderRadius = _ref3$theme.borderRadius,\n colors = _ref3$theme.colors,\n isFocused = _ref3.isFocused;\n return {\n alignItems: 'center',\n borderRadius: borderRadius / 2,\n backgroundColor: isFocused ? colors.dangerLight : undefined,\n display: 'flex',\n paddingLeft: spacing.baseUnit,\n paddingRight: spacing.baseUnit,\n ':hover': {\n backgroundColor: colors.dangerLight,\n color: colors.danger\n }\n };\n};\nvar MultiValueGeneric = function MultiValueGeneric(_ref4) {\n var children = _ref4.children,\n innerProps = _ref4.innerProps;\n return jsx(\"div\", innerProps, children);\n};\nvar MultiValueContainer = MultiValueGeneric;\nvar MultiValueLabel = MultiValueGeneric;\nfunction MultiValueRemove(_ref5) {\n var children = _ref5.children,\n innerProps = _ref5.innerProps;\n return jsx(\"div\", _extends({\n role: \"button\"\n }, innerProps), children || jsx(CrossIcon, {\n size: 14\n }));\n}\n\nvar MultiValue = function MultiValue(props) {\n var children = props.children,\n className = props.className,\n components = props.components,\n cx = props.cx,\n data = props.data,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isDisabled = props.isDisabled,\n removeProps = props.removeProps,\n selectProps = props.selectProps;\n var Container = components.Container,\n Label = components.Label,\n Remove = components.Remove;\n return jsx(ClassNames, null, function (_ref6) {\n var css = _ref6.css,\n emotionCx = _ref6.cx;\n return jsx(Container, {\n data: data,\n innerProps: _objectSpread2({\n className: emotionCx(css(getStyles('multiValue', props)), cx({\n 'multi-value': true,\n 'multi-value--is-disabled': isDisabled\n }, className))\n }, innerProps),\n selectProps: selectProps\n }, jsx(Label, {\n data: data,\n innerProps: {\n className: emotionCx(css(getStyles('multiValueLabel', props)), cx({\n 'multi-value__label': true\n }, className))\n },\n selectProps: selectProps\n }, children), jsx(Remove, {\n data: data,\n innerProps: _objectSpread2({\n className: emotionCx(css(getStyles('multiValueRemove', props)), cx({\n 'multi-value__remove': true\n }, className)),\n 'aria-label': \"Remove \".concat(children || 'option')\n }, removeProps),\n selectProps: selectProps\n }));\n });\n};\n\nvar optionCSS = function optionCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n isSelected = _ref.isSelected,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'option',\n backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',\n color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',\n cursor: 'default',\n display: 'block',\n fontSize: 'inherit',\n padding: \"\".concat(spacing.baseUnit * 2, \"px \").concat(spacing.baseUnit * 3, \"px\"),\n width: '100%',\n userSelect: 'none',\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n // provide some affordance on touch devices\n ':active': {\n backgroundColor: !isDisabled ? isSelected ? colors.primary : colors.primary50 : undefined\n }\n };\n};\n\nvar Option = function Option(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n isSelected = props.isSelected,\n innerRef = props.innerRef,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('option', props),\n className: cx({\n option: true,\n 'option--is-disabled': isDisabled,\n 'option--is-focused': isFocused,\n 'option--is-selected': isSelected\n }, className),\n ref: innerRef,\n \"aria-disabled\": isDisabled\n }, innerProps), children);\n};\n\nvar placeholderCSS = function placeholderCSS(_ref) {\n var _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'placeholder',\n color: colors.neutral50,\n gridArea: '1 / 1 / 2 / 3',\n marginLeft: spacing.baseUnit / 2,\n marginRight: spacing.baseUnit / 2\n };\n};\n\nvar Placeholder = function Placeholder(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('placeholder', props),\n className: cx({\n placeholder: true\n }, className)\n }, innerProps), children);\n};\n\nvar css = function css(_ref) {\n var isDisabled = _ref.isDisabled,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'singleValue',\n color: isDisabled ? colors.neutral40 : colors.neutral80,\n gridArea: '1 / 1 / 2 / 3',\n marginLeft: spacing.baseUnit / 2,\n marginRight: spacing.baseUnit / 2,\n maxWidth: '100%',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n };\n};\n\nvar SingleValue = function SingleValue(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isDisabled = props.isDisabled,\n innerProps = props.innerProps;\n return jsx(\"div\", _extends({\n css: getStyles('singleValue', props),\n className: cx({\n 'single-value': true,\n 'single-value--is-disabled': isDisabled\n }, className)\n }, innerProps), children);\n};\n\nvar components = {\n ClearIndicator: ClearIndicator,\n Control: Control,\n DropdownIndicator: DropdownIndicator,\n DownChevron: DownChevron,\n CrossIcon: CrossIcon,\n Group: Group,\n GroupHeading: GroupHeading,\n IndicatorsContainer: IndicatorsContainer,\n IndicatorSeparator: IndicatorSeparator,\n Input: Input,\n LoadingIndicator: LoadingIndicator,\n Menu: Menu,\n MenuList: MenuList,\n MenuPortal: MenuPortal,\n LoadingMessage: LoadingMessage,\n NoOptionsMessage: NoOptionsMessage,\n MultiValue: MultiValue,\n MultiValueContainer: MultiValueContainer,\n MultiValueLabel: MultiValueLabel,\n MultiValueRemove: MultiValueRemove,\n Option: Option,\n Placeholder: Placeholder,\n SelectContainer: SelectContainer,\n SingleValue: SingleValue,\n ValueContainer: ValueContainer\n};\nvar defaultComponents = function defaultComponents(props) {\n return _objectSpread2(_objectSpread2({}, components), props.components);\n};\n\nexport { isMobileDevice as A, multiValueAsValue as B, singleValueAsValue as C, valueTernary as D, classNames as E, defaultComponents as F, notNullish as G, isDocumentElement as H, cleanValue as I, scrollIntoView as J, noop as K, handleInputChange as L, MenuPlacer as M, _createSuper as _, _objectSpread2 as a, clearIndicatorCSS as b, components as c, containerCSS as d, css$1 as e, dropdownIndicatorCSS as f, groupCSS as g, groupHeadingCSS as h, indicatorsContainerCSS as i, indicatorSeparatorCSS as j, inputCSS as k, loadingIndicatorCSS as l, loadingMessageCSS as m, menuCSS as n, menuListCSS as o, menuPortalCSS as p, multiValueCSS as q, multiValueLabelCSS as r, supportsPassiveEvents as s, multiValueRemoveCSS as t, noOptionsMessageCSS as u, optionCSS as v, placeholderCSS as w, css as x, valueContainerCSS as y, isTouchCapable as z };\n","export default function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import { a as _objectSpread2 } from './index-c7a4d7ce.esm.js';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport { useState, useCallback } from 'react';\n\nvar _excluded = [\"defaultInputValue\", \"defaultMenuIsOpen\", \"defaultValue\", \"inputValue\", \"menuIsOpen\", \"onChange\", \"onInputChange\", \"onMenuClose\", \"onMenuOpen\", \"value\"];\nfunction useStateManager(_ref) {\n var _ref$defaultInputValu = _ref.defaultInputValue,\n defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,\n _ref$defaultMenuIsOpe = _ref.defaultMenuIsOpen,\n defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe,\n _ref$defaultValue = _ref.defaultValue,\n defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue,\n propsInputValue = _ref.inputValue,\n propsMenuIsOpen = _ref.menuIsOpen,\n propsOnChange = _ref.onChange,\n propsOnInputChange = _ref.onInputChange,\n propsOnMenuClose = _ref.onMenuClose,\n propsOnMenuOpen = _ref.onMenuOpen,\n propsValue = _ref.value,\n restSelectProps = _objectWithoutProperties(_ref, _excluded);\n\n var _useState = useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),\n _useState2 = _slicedToArray(_useState, 2),\n stateInputValue = _useState2[0],\n setStateInputValue = _useState2[1];\n\n var _useState3 = useState(propsMenuIsOpen !== undefined ? propsMenuIsOpen : defaultMenuIsOpen),\n _useState4 = _slicedToArray(_useState3, 2),\n stateMenuIsOpen = _useState4[0],\n setStateMenuIsOpen = _useState4[1];\n\n var _useState5 = useState(propsValue !== undefined ? propsValue : defaultValue),\n _useState6 = _slicedToArray(_useState5, 2),\n stateValue = _useState6[0],\n setStateValue = _useState6[1];\n\n var onChange = useCallback(function (value, actionMeta) {\n if (typeof propsOnChange === 'function') {\n propsOnChange(value, actionMeta);\n }\n\n setStateValue(value);\n }, [propsOnChange]);\n var onInputChange = useCallback(function (value, actionMeta) {\n var newValue;\n\n if (typeof propsOnInputChange === 'function') {\n newValue = propsOnInputChange(value, actionMeta);\n }\n\n setStateInputValue(newValue !== undefined ? newValue : value);\n }, [propsOnInputChange]);\n var onMenuOpen = useCallback(function () {\n if (typeof propsOnMenuOpen === 'function') {\n propsOnMenuOpen();\n }\n\n setStateMenuIsOpen(true);\n }, [propsOnMenuOpen]);\n var onMenuClose = useCallback(function () {\n if (typeof propsOnMenuClose === 'function') {\n propsOnMenuClose();\n }\n\n setStateMenuIsOpen(false);\n }, [propsOnMenuClose]);\n var inputValue = propsInputValue !== undefined ? propsInputValue : stateInputValue;\n var menuIsOpen = propsMenuIsOpen !== undefined ? propsMenuIsOpen : stateMenuIsOpen;\n var value = propsValue !== undefined ? propsValue : stateValue;\n return _objectSpread2(_objectSpread2({}, restSelectProps), {}, {\n inputValue: inputValue,\n menuIsOpen: menuIsOpen,\n onChange: onChange,\n onInputChange: onInputChange,\n onMenuClose: onMenuClose,\n onMenuOpen: onMenuOpen,\n value: value\n });\n}\n\nexport { useStateManager as u };\n","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","var safeIsNaN = Number.isNaN ||\n function ponyfill(value) {\n return typeof value === 'number' && value !== value;\n };\nfunction isEqual(first, second) {\n if (first === second) {\n return true;\n }\n if (safeIsNaN(first) && safeIsNaN(second)) {\n return true;\n }\n return false;\n}\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n for (var i = 0; i < newInputs.length; i++) {\n if (!isEqual(newInputs[i], lastInputs[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) { isEqual = areInputsEqual; }\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n function memoized() {\n var newArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n return memoized;\n}\n\nexport default memoizeOne;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { a as _objectSpread2, s as supportsPassiveEvents, b as clearIndicatorCSS, d as containerCSS, e as css$1, f as dropdownIndicatorCSS, g as groupCSS, h as groupHeadingCSS, i as indicatorsContainerCSS, j as indicatorSeparatorCSS, k as inputCSS, l as loadingIndicatorCSS, m as loadingMessageCSS, n as menuCSS, o as menuListCSS, p as menuPortalCSS, q as multiValueCSS, r as multiValueLabelCSS, t as multiValueRemoveCSS, u as noOptionsMessageCSS, v as optionCSS, w as placeholderCSS, x as css$2, y as valueContainerCSS, z as isTouchCapable, A as isMobileDevice, _ as _createSuper, B as multiValueAsValue, C as singleValueAsValue, D as valueTernary, E as classNames, F as defaultComponents, G as notNullish, H as isDocumentElement, I as cleanValue, J as scrollIntoView, K as noop, M as MenuPlacer } from './index-c7a4d7ce.esm.js';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\nimport * as React from 'react';\nimport { useMemo, Fragment, useRef, useCallback, useEffect, Component } from 'react';\nimport { jsx, css } from '@emotion/react';\nimport memoizeOne from 'memoize-one';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\n\nfunction _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\"; }\n\nvar _ref = process.env.NODE_ENV === \"production\" ? {\n name: \"7pg0cj-a11yText\",\n styles: \"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap\"\n} : {\n name: \"1f43avz-a11yText-A11yText\",\n styles: \"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;\",\n map: \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */\",\n toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1\n};\n\nvar A11yText = function A11yText(props) {\n return jsx(\"span\", _extends({\n css: _ref\n }, props));\n};\n\nvar defaultAriaLiveMessages = {\n guidance: function guidance(props) {\n var isSearchable = props.isSearchable,\n isMulti = props.isMulti,\n isDisabled = props.isDisabled,\n tabSelectsValue = props.tabSelectsValue,\n context = props.context;\n\n switch (context) {\n case 'menu':\n return \"Use Up and Down to choose options\".concat(isDisabled ? '' : ', press Enter to select the currently focused option', \", press Escape to exit the menu\").concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', \".\");\n\n case 'input':\n return \"\".concat(props['aria-label'] || 'Select', \" is focused \").concat(isSearchable ? ',type to refine list' : '', \", press Down to open the menu, \").concat(isMulti ? ' press left to focus selected values' : '');\n\n case 'value':\n return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';\n\n default:\n return '';\n }\n },\n onChange: function onChange(props) {\n var action = props.action,\n _props$label = props.label,\n label = _props$label === void 0 ? '' : _props$label,\n labels = props.labels,\n isDisabled = props.isDisabled;\n\n switch (action) {\n case 'deselect-option':\n case 'pop-value':\n case 'remove-value':\n return \"option \".concat(label, \", deselected.\");\n\n case 'clear':\n return 'All selected options have been cleared.';\n\n case 'initial-input-focus':\n return \"option\".concat(labels.length > 1 ? 's' : '', \" \").concat(labels.join(','), \", selected.\");\n\n case 'select-option':\n return isDisabled ? \"option \".concat(label, \" is disabled. Select another option.\") : \"option \".concat(label, \", selected.\");\n\n default:\n return '';\n }\n },\n onFocus: function onFocus(props) {\n var context = props.context,\n focused = props.focused,\n options = props.options,\n _props$label2 = props.label,\n label = _props$label2 === void 0 ? '' : _props$label2,\n selectValue = props.selectValue,\n isDisabled = props.isDisabled,\n isSelected = props.isSelected;\n\n var getArrayIndex = function getArrayIndex(arr, item) {\n return arr && arr.length ? \"\".concat(arr.indexOf(item) + 1, \" of \").concat(arr.length) : '';\n };\n\n if (context === 'value' && selectValue) {\n return \"value \".concat(label, \" focused, \").concat(getArrayIndex(selectValue, focused), \".\");\n }\n\n if (context === 'menu') {\n var disabled = isDisabled ? ' disabled' : '';\n var status = \"\".concat(isSelected ? 'selected' : 'focused').concat(disabled);\n return \"option \".concat(label, \" \").concat(status, \", \").concat(getArrayIndex(options, focused), \".\");\n }\n\n return '';\n },\n onFilter: function onFilter(props) {\n var inputValue = props.inputValue,\n resultsMessage = props.resultsMessage;\n return \"\".concat(resultsMessage).concat(inputValue ? ' for search term ' + inputValue : '', \".\");\n }\n};\n\nvar LiveRegion = function LiveRegion(props) {\n var ariaSelection = props.ariaSelection,\n focusedOption = props.focusedOption,\n focusedValue = props.focusedValue,\n focusableOptions = props.focusableOptions,\n isFocused = props.isFocused,\n selectValue = props.selectValue,\n selectProps = props.selectProps,\n id = props.id;\n var ariaLiveMessages = selectProps.ariaLiveMessages,\n getOptionLabel = selectProps.getOptionLabel,\n inputValue = selectProps.inputValue,\n isMulti = selectProps.isMulti,\n isOptionDisabled = selectProps.isOptionDisabled,\n isSearchable = selectProps.isSearchable,\n menuIsOpen = selectProps.menuIsOpen,\n options = selectProps.options,\n screenReaderStatus = selectProps.screenReaderStatus,\n tabSelectsValue = selectProps.tabSelectsValue;\n var ariaLabel = selectProps['aria-label'];\n var ariaLive = selectProps['aria-live']; // Update aria live message configuration when prop changes\n\n var messages = useMemo(function () {\n return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});\n }, [ariaLiveMessages]); // Update aria live selected option when prop changes\n\n var ariaSelected = useMemo(function () {\n var message = '';\n\n if (ariaSelection && messages.onChange) {\n var option = ariaSelection.option,\n selectedOptions = ariaSelection.options,\n removedValue = ariaSelection.removedValue,\n removedValues = ariaSelection.removedValues,\n value = ariaSelection.value; // select-option when !isMulti does not return option so we assume selected option is value\n\n var asOption = function asOption(val) {\n return !Array.isArray(val) ? val : null;\n }; // If there is just one item from the action then get its label\n\n\n var selected = removedValue || option || asOption(value);\n var label = selected ? getOptionLabel(selected) : ''; // If there are multiple items from the action then return an array of labels\n\n var multiSelected = selectedOptions || removedValues || undefined;\n var labels = multiSelected ? multiSelected.map(getOptionLabel) : [];\n\n var onChangeProps = _objectSpread2({\n // multiSelected items are usually items that have already been selected\n // or set by the user as a default value so we assume they are not disabled\n isDisabled: selected && isOptionDisabled(selected, selectValue),\n label: label,\n labels: labels\n }, ariaSelection);\n\n message = messages.onChange(onChangeProps);\n }\n\n return message;\n }, [ariaSelection, messages, isOptionDisabled, selectValue, getOptionLabel]);\n var ariaFocused = useMemo(function () {\n var focusMsg = '';\n var focused = focusedOption || focusedValue;\n var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));\n\n if (focused && messages.onFocus) {\n var onFocusProps = {\n focused: focused,\n label: getOptionLabel(focused),\n isDisabled: isOptionDisabled(focused, selectValue),\n isSelected: isSelected,\n options: options,\n context: focused === focusedOption ? 'menu' : 'value',\n selectValue: selectValue\n };\n focusMsg = messages.onFocus(onFocusProps);\n }\n\n return focusMsg;\n }, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, options, selectValue]);\n var ariaResults = useMemo(function () {\n var resultsMsg = '';\n\n if (menuIsOpen && options.length && messages.onFilter) {\n var resultsMessage = screenReaderStatus({\n count: focusableOptions.length\n });\n resultsMsg = messages.onFilter({\n inputValue: inputValue,\n resultsMessage: resultsMessage\n });\n }\n\n return resultsMsg;\n }, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus]);\n var ariaGuidance = useMemo(function () {\n var guidanceMsg = '';\n\n if (messages.guidance) {\n var context = focusedValue ? 'value' : menuIsOpen ? 'menu' : 'input';\n guidanceMsg = messages.guidance({\n 'aria-label': ariaLabel,\n context: context,\n isDisabled: focusedOption && isOptionDisabled(focusedOption, selectValue),\n isMulti: isMulti,\n isSearchable: isSearchable,\n tabSelectsValue: tabSelectsValue\n });\n }\n\n return guidanceMsg;\n }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]);\n var ariaContext = \"\".concat(ariaFocused, \" \").concat(ariaResults, \" \").concat(ariaGuidance);\n var ScreenReaderText = jsx(Fragment, null, jsx(\"span\", {\n id: \"aria-selection\"\n }, ariaSelected), jsx(\"span\", {\n id: \"aria-context\"\n }, ariaContext));\n var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';\n return jsx(Fragment, null, jsx(A11yText, {\n id: id\n }, isInitialFocus && ScreenReaderText), jsx(A11yText, {\n \"aria-live\": ariaLive,\n \"aria-atomic\": \"false\",\n \"aria-relevant\": \"additions text\"\n }, isFocused && !isInitialFocus && ScreenReaderText));\n};\n\nvar diacritics = [{\n base: 'A',\n letters: \"A\\u24B6\\uFF21\\xC0\\xC1\\xC2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\xC3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\xC4\\u01DE\\u1EA2\\xC5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F\"\n}, {\n base: 'AA',\n letters: \"\\uA732\"\n}, {\n base: 'AE',\n letters: \"\\xC6\\u01FC\\u01E2\"\n}, {\n base: 'AO',\n letters: \"\\uA734\"\n}, {\n base: 'AU',\n letters: \"\\uA736\"\n}, {\n base: 'AV',\n letters: \"\\uA738\\uA73A\"\n}, {\n base: 'AY',\n letters: \"\\uA73C\"\n}, {\n base: 'B',\n letters: \"B\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181\"\n}, {\n base: 'C',\n letters: \"C\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\xC7\\u1E08\\u0187\\u023B\\uA73E\"\n}, {\n base: 'D',\n letters: \"D\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779\"\n}, {\n base: 'DZ',\n letters: \"\\u01F1\\u01C4\"\n}, {\n base: 'Dz',\n letters: \"\\u01F2\\u01C5\"\n}, {\n base: 'E',\n letters: \"E\\u24BA\\uFF25\\xC8\\xC9\\xCA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\xCB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E\"\n}, {\n base: 'F',\n letters: \"F\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B\"\n}, {\n base: 'G',\n letters: \"G\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E\"\n}, {\n base: 'H',\n letters: \"H\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D\"\n}, {\n base: 'I',\n letters: \"I\\u24BE\\uFF29\\xCC\\xCD\\xCE\\u0128\\u012A\\u012C\\u0130\\xCF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197\"\n}, {\n base: 'J',\n letters: \"J\\u24BF\\uFF2A\\u0134\\u0248\"\n}, {\n base: 'K',\n letters: \"K\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2\"\n}, {\n base: 'L',\n letters: \"L\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780\"\n}, {\n base: 'LJ',\n letters: \"\\u01C7\"\n}, {\n base: 'Lj',\n letters: \"\\u01C8\"\n}, {\n base: 'M',\n letters: \"M\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C\"\n}, {\n base: 'N',\n letters: \"N\\u24C3\\uFF2E\\u01F8\\u0143\\xD1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4\"\n}, {\n base: 'NJ',\n letters: \"\\u01CA\"\n}, {\n base: 'Nj',\n letters: \"\\u01CB\"\n}, {\n base: 'O',\n letters: \"O\\u24C4\\uFF2F\\xD2\\xD3\\xD4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\xD5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\xD6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\xD8\\u01FE\\u0186\\u019F\\uA74A\\uA74C\"\n}, {\n base: 'OI',\n letters: \"\\u01A2\"\n}, {\n base: 'OO',\n letters: \"\\uA74E\"\n}, {\n base: 'OU',\n letters: \"\\u0222\"\n}, {\n base: 'P',\n letters: \"P\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754\"\n}, {\n base: 'Q',\n letters: \"Q\\u24C6\\uFF31\\uA756\\uA758\\u024A\"\n}, {\n base: 'R',\n letters: \"R\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782\"\n}, {\n base: 'S',\n letters: \"S\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784\"\n}, {\n base: 'T',\n letters: \"T\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786\"\n}, {\n base: 'TZ',\n letters: \"\\uA728\"\n}, {\n base: 'U',\n letters: \"U\\u24CA\\uFF35\\xD9\\xDA\\xDB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\xDC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244\"\n}, {\n base: 'V',\n letters: \"V\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245\"\n}, {\n base: 'VY',\n letters: \"\\uA760\"\n}, {\n base: 'W',\n letters: \"W\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72\"\n}, {\n base: 'X',\n letters: \"X\\u24CD\\uFF38\\u1E8A\\u1E8C\"\n}, {\n base: 'Y',\n letters: \"Y\\u24CE\\uFF39\\u1EF2\\xDD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE\"\n}, {\n base: 'Z',\n letters: \"Z\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762\"\n}, {\n base: 'a',\n letters: \"a\\u24D0\\uFF41\\u1E9A\\xE0\\xE1\\xE2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\xE3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\xE4\\u01DF\\u1EA3\\xE5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250\"\n}, {\n base: 'aa',\n letters: \"\\uA733\"\n}, {\n base: 'ae',\n letters: \"\\xE6\\u01FD\\u01E3\"\n}, {\n base: 'ao',\n letters: \"\\uA735\"\n}, {\n base: 'au',\n letters: \"\\uA737\"\n}, {\n base: 'av',\n letters: \"\\uA739\\uA73B\"\n}, {\n base: 'ay',\n letters: \"\\uA73D\"\n}, {\n base: 'b',\n letters: \"b\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253\"\n}, {\n base: 'c',\n letters: \"c\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\xE7\\u1E09\\u0188\\u023C\\uA73F\\u2184\"\n}, {\n base: 'd',\n letters: \"d\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A\"\n}, {\n base: 'dz',\n letters: \"\\u01F3\\u01C6\"\n}, {\n base: 'e',\n letters: \"e\\u24D4\\uFF45\\xE8\\xE9\\xEA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\xEB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD\"\n}, {\n base: 'f',\n letters: \"f\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C\"\n}, {\n base: 'g',\n letters: \"g\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F\"\n}, {\n base: 'h',\n letters: \"h\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265\"\n}, {\n base: 'hv',\n letters: \"\\u0195\"\n}, {\n base: 'i',\n letters: \"i\\u24D8\\uFF49\\xEC\\xED\\xEE\\u0129\\u012B\\u012D\\xEF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131\"\n}, {\n base: 'j',\n letters: \"j\\u24D9\\uFF4A\\u0135\\u01F0\\u0249\"\n}, {\n base: 'k',\n letters: \"k\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3\"\n}, {\n base: 'l',\n letters: \"l\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747\"\n}, {\n base: 'lj',\n letters: \"\\u01C9\"\n}, {\n base: 'm',\n letters: \"m\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F\"\n}, {\n base: 'n',\n letters: \"n\\u24DD\\uFF4E\\u01F9\\u0144\\xF1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5\"\n}, {\n base: 'nj',\n letters: \"\\u01CC\"\n}, {\n base: 'o',\n letters: \"o\\u24DE\\uFF4F\\xF2\\xF3\\xF4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\xF5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\xF6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\xF8\\u01FF\\u0254\\uA74B\\uA74D\\u0275\"\n}, {\n base: 'oi',\n letters: \"\\u01A3\"\n}, {\n base: 'ou',\n letters: \"\\u0223\"\n}, {\n base: 'oo',\n letters: \"\\uA74F\"\n}, {\n base: 'p',\n letters: \"p\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755\"\n}, {\n base: 'q',\n letters: \"q\\u24E0\\uFF51\\u024B\\uA757\\uA759\"\n}, {\n base: 'r',\n letters: \"r\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783\"\n}, {\n base: 's',\n letters: \"s\\u24E2\\uFF53\\xDF\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B\"\n}, {\n base: 't',\n letters: \"t\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787\"\n}, {\n base: 'tz',\n letters: \"\\uA729\"\n}, {\n base: 'u',\n letters: \"u\\u24E4\\uFF55\\xF9\\xFA\\xFB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\xFC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289\"\n}, {\n base: 'v',\n letters: \"v\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C\"\n}, {\n base: 'vy',\n letters: \"\\uA761\"\n}, {\n base: 'w',\n letters: \"w\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73\"\n}, {\n base: 'x',\n letters: \"x\\u24E7\\uFF58\\u1E8B\\u1E8D\"\n}, {\n base: 'y',\n letters: \"y\\u24E8\\uFF59\\u1EF3\\xFD\\u0177\\u1EF9\\u0233\\u1E8F\\xFF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF\"\n}, {\n base: 'z',\n letters: \"z\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763\"\n}];\nvar anyDiacritic = new RegExp('[' + diacritics.map(function (d) {\n return d.letters;\n}).join('') + ']', 'g');\nvar diacriticToBase = {};\n\nfor (var i = 0; i < diacritics.length; i++) {\n var diacritic = diacritics[i];\n\n for (var j = 0; j < diacritic.letters.length; j++) {\n diacriticToBase[diacritic.letters[j]] = diacritic.base;\n }\n}\n\nvar stripDiacritics = function stripDiacritics(str) {\n return str.replace(anyDiacritic, function (match) {\n return diacriticToBase[match];\n });\n};\n\nvar memoizedStripDiacriticsForInput = memoizeOne(stripDiacritics);\n\nvar trimString = function trimString(str) {\n return str.replace(/^\\s+|\\s+$/g, '');\n};\n\nvar defaultStringify = function defaultStringify(option) {\n return \"\".concat(option.label, \" \").concat(option.value);\n};\n\nvar createFilter = function createFilter(config) {\n return function (option, rawInput) {\n // eslint-disable-next-line no-underscore-dangle\n if (option.data.__isNew__) return true;\n\n var _ignoreCase$ignoreAcc = _objectSpread2({\n ignoreCase: true,\n ignoreAccents: true,\n stringify: defaultStringify,\n trim: true,\n matchFrom: 'any'\n }, config),\n ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,\n ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,\n stringify = _ignoreCase$ignoreAcc.stringify,\n trim = _ignoreCase$ignoreAcc.trim,\n matchFrom = _ignoreCase$ignoreAcc.matchFrom;\n\n var input = trim ? trimString(rawInput) : rawInput;\n var candidate = trim ? trimString(stringify(option)) : stringify(option);\n\n if (ignoreCase) {\n input = input.toLowerCase();\n candidate = candidate.toLowerCase();\n }\n\n if (ignoreAccents) {\n input = memoizedStripDiacriticsForInput(input);\n candidate = stripDiacritics(candidate);\n }\n\n return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;\n };\n};\n\nvar _excluded = [\"innerRef\"];\nfunction DummyInput(_ref) {\n var innerRef = _ref.innerRef,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return jsx(\"input\", _extends({\n ref: innerRef\n }, props, {\n css: /*#__PURE__*/css({\n label: 'dummyInput',\n // get rid of any default styles\n background: 0,\n border: 0,\n // important! this hides the flashing cursor\n caretColor: 'transparent',\n fontSize: 'inherit',\n gridArea: '1 / 1 / 2 / 3',\n outline: 0,\n padding: 0,\n // important! without `width` browsers won't allow focus\n width: 1,\n // remove cursor on desktop\n color: 'transparent',\n // remove cursor on mobile whilst maintaining \"scroll into view\" behaviour\n left: -100,\n opacity: 0,\n position: 'relative',\n transform: 'scale(.01)'\n }, process.env.NODE_ENV === \"production\" ? \"\" : \";label:DummyInput;\", process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNNIiwiZmlsZSI6IkR1bW15SW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4ucHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */\")\n }));\n}\n\nvar cancelScroll = function cancelScroll(event) {\n event.preventDefault();\n event.stopPropagation();\n};\n\nfunction useScrollCapture(_ref) {\n var isEnabled = _ref.isEnabled,\n onBottomArrive = _ref.onBottomArrive,\n onBottomLeave = _ref.onBottomLeave,\n onTopArrive = _ref.onTopArrive,\n onTopLeave = _ref.onTopLeave;\n var isBottom = useRef(false);\n var isTop = useRef(false);\n var touchStart = useRef(0);\n var scrollTarget = useRef(null);\n var handleEventDelta = useCallback(function (event, delta) {\n if (scrollTarget.current === null) return;\n var _scrollTarget$current = scrollTarget.current,\n scrollTop = _scrollTarget$current.scrollTop,\n scrollHeight = _scrollTarget$current.scrollHeight,\n clientHeight = _scrollTarget$current.clientHeight;\n var target = scrollTarget.current;\n var isDeltaPositive = delta > 0;\n var availableScroll = scrollHeight - clientHeight - scrollTop;\n var shouldCancelScroll = false; // reset bottom/top flags\n\n if (availableScroll > delta && isBottom.current) {\n if (onBottomLeave) onBottomLeave(event);\n isBottom.current = false;\n }\n\n if (isDeltaPositive && isTop.current) {\n if (onTopLeave) onTopLeave(event);\n isTop.current = false;\n } // bottom limit\n\n\n if (isDeltaPositive && delta > availableScroll) {\n if (onBottomArrive && !isBottom.current) {\n onBottomArrive(event);\n }\n\n target.scrollTop = scrollHeight;\n shouldCancelScroll = true;\n isBottom.current = true; // top limit\n } else if (!isDeltaPositive && -delta > scrollTop) {\n if (onTopArrive && !isTop.current) {\n onTopArrive(event);\n }\n\n target.scrollTop = 0;\n shouldCancelScroll = true;\n isTop.current = true;\n } // cancel scroll\n\n\n if (shouldCancelScroll) {\n cancelScroll(event);\n }\n }, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]);\n var onWheel = useCallback(function (event) {\n handleEventDelta(event, event.deltaY);\n }, [handleEventDelta]);\n var onTouchStart = useCallback(function (event) {\n // set touch start so we can calculate touchmove delta\n touchStart.current = event.changedTouches[0].clientY;\n }, []);\n var onTouchMove = useCallback(function (event) {\n var deltaY = touchStart.current - event.changedTouches[0].clientY;\n handleEventDelta(event, deltaY);\n }, [handleEventDelta]);\n var startListening = useCallback(function (el) {\n // bail early if no element is available to attach to\n if (!el) return;\n var notPassive = supportsPassiveEvents ? {\n passive: false\n } : false;\n el.addEventListener('wheel', onWheel, notPassive);\n el.addEventListener('touchstart', onTouchStart, notPassive);\n el.addEventListener('touchmove', onTouchMove, notPassive);\n }, [onTouchMove, onTouchStart, onWheel]);\n var stopListening = useCallback(function (el) {\n // bail early if no element is available to detach from\n if (!el) return;\n el.removeEventListener('wheel', onWheel, false);\n el.removeEventListener('touchstart', onTouchStart, false);\n el.removeEventListener('touchmove', onTouchMove, false);\n }, [onTouchMove, onTouchStart, onWheel]);\n useEffect(function () {\n if (!isEnabled) return;\n var element = scrollTarget.current;\n startListening(element);\n return function () {\n stopListening(element);\n };\n }, [isEnabled, startListening, stopListening]);\n return function (element) {\n scrollTarget.current = element;\n };\n}\n\nvar STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];\nvar LOCK_STYLES = {\n boxSizing: 'border-box',\n // account for possible declaration `width: 100%;` on body\n overflow: 'hidden',\n position: 'relative',\n height: '100%'\n};\n\nfunction preventTouchMove(e) {\n e.preventDefault();\n}\n\nfunction allowTouchMove(e) {\n e.stopPropagation();\n}\n\nfunction preventInertiaScroll() {\n var top = this.scrollTop;\n var totalScroll = this.scrollHeight;\n var currentScroll = top + this.offsetHeight;\n\n if (top === 0) {\n this.scrollTop = 1;\n } else if (currentScroll === totalScroll) {\n this.scrollTop = top - 1;\n }\n} // `ontouchstart` check works on most browsers\n// `maxTouchPoints` works on IE10/11 and Surface\n\n\nfunction isTouchDevice() {\n return 'ontouchstart' in window || navigator.maxTouchPoints;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nvar activeScrollLocks = 0;\nvar listenerOptions = {\n capture: false,\n passive: false\n};\nfunction useScrollLock(_ref) {\n var isEnabled = _ref.isEnabled,\n _ref$accountForScroll = _ref.accountForScrollbars,\n accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;\n var originalStyles = useRef({});\n var scrollTarget = useRef(null);\n var addScrollLock = useCallback(function (touchScrollTarget) {\n if (!canUseDOM) return;\n var target = document.body;\n var targetStyle = target && target.style;\n\n if (accountForScrollbars) {\n // store any styles already applied to the body\n STYLE_KEYS.forEach(function (key) {\n var val = targetStyle && targetStyle[key];\n originalStyles.current[key] = val;\n });\n } // apply the lock styles and padding if this is the first scroll lock\n\n\n if (accountForScrollbars && activeScrollLocks < 1) {\n var currentPadding = parseInt(originalStyles.current.paddingRight, 10) || 0;\n var clientWidth = document.body ? document.body.clientWidth : 0;\n var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;\n Object.keys(LOCK_STYLES).forEach(function (key) {\n var val = LOCK_STYLES[key];\n\n if (targetStyle) {\n targetStyle[key] = val;\n }\n });\n\n if (targetStyle) {\n targetStyle.paddingRight = \"\".concat(adjustedPadding, \"px\");\n }\n } // account for touch devices\n\n\n if (target && isTouchDevice()) {\n // Mobile Safari ignores { overflow: hidden } declaration on the body.\n target.addEventListener('touchmove', preventTouchMove, listenerOptions); // Allow scroll on provided target\n\n if (touchScrollTarget) {\n touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, listenerOptions);\n touchScrollTarget.addEventListener('touchmove', allowTouchMove, listenerOptions);\n }\n } // increment active scroll locks\n\n\n activeScrollLocks += 1;\n }, [accountForScrollbars]);\n var removeScrollLock = useCallback(function (touchScrollTarget) {\n if (!canUseDOM) return;\n var target = document.body;\n var targetStyle = target && target.style; // safely decrement active scroll locks\n\n activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any\n\n if (accountForScrollbars && activeScrollLocks < 1) {\n STYLE_KEYS.forEach(function (key) {\n var val = originalStyles.current[key];\n\n if (targetStyle) {\n targetStyle[key] = val;\n }\n });\n } // remove touch listeners\n\n\n if (target && isTouchDevice()) {\n target.removeEventListener('touchmove', preventTouchMove, listenerOptions);\n\n if (touchScrollTarget) {\n touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, listenerOptions);\n touchScrollTarget.removeEventListener('touchmove', allowTouchMove, listenerOptions);\n }\n }\n }, [accountForScrollbars]);\n useEffect(function () {\n if (!isEnabled) return;\n var element = scrollTarget.current;\n addScrollLock(element);\n return function () {\n removeScrollLock(element);\n };\n }, [isEnabled, addScrollLock, removeScrollLock]);\n return function (element) {\n scrollTarget.current = element;\n };\n}\n\nfunction _EMOTION_STRINGIFIED_CSS_ERROR__() { return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\"; }\n\nvar blurSelectInput = function blurSelectInput() {\n return document.activeElement && document.activeElement.blur();\n};\n\nvar _ref2 = process.env.NODE_ENV === \"production\" ? {\n name: \"1kfdb0e\",\n styles: \"position:fixed;left:0;bottom:0;right:0;top:0\"\n} : {\n name: \"bp8cua-ScrollManager\",\n styles: \"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;\",\n map: \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbG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VG9wQXJyaXZlLFxuICAgIG9uVG9wTGVhdmUsXG4gIH0pO1xuICBjb25zdCBzZXRTY3JvbGxMb2NrVGFyZ2V0ID0gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmOiBSZWZDYWxsYmFjazxIVE1MRWxlbWVudD4gPSAoZWxlbWVudCkgPT4ge1xuICAgIHNldFNjcm9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */\",\n toString: _EMOTION_STRINGIFIED_CSS_ERROR__\n};\n\nfunction ScrollManager(_ref) {\n var children = _ref.children,\n lockEnabled = _ref.lockEnabled,\n _ref$captureEnabled = _ref.captureEnabled,\n captureEnabled = _ref$captureEnabled === void 0 ? true : _ref$captureEnabled,\n onBottomArrive = _ref.onBottomArrive,\n onBottomLeave = _ref.onBottomLeave,\n onTopArrive = _ref.onTopArrive,\n onTopLeave = _ref.onTopLeave;\n var setScrollCaptureTarget = useScrollCapture({\n isEnabled: captureEnabled,\n onBottomArrive: onBottomArrive,\n onBottomLeave: onBottomLeave,\n onTopArrive: onTopArrive,\n onTopLeave: onTopLeave\n });\n var setScrollLockTarget = useScrollLock({\n isEnabled: lockEnabled\n });\n\n var targetRef = function targetRef(element) {\n setScrollCaptureTarget(element);\n setScrollLockTarget(element);\n };\n\n return jsx(Fragment, null, lockEnabled && jsx(\"div\", {\n onClick: blurSelectInput,\n css: _ref2\n }), children(targetRef));\n}\n\nvar formatGroupLabel = function formatGroupLabel(group) {\n return group.label;\n};\nvar getOptionLabel$1 = function getOptionLabel(option) {\n return option.label;\n};\nvar getOptionValue$1 = function getOptionValue(option) {\n return option.value;\n};\nvar isOptionDisabled = function isOptionDisabled(option) {\n return !!option.isDisabled;\n};\n\nvar defaultStyles = {\n clearIndicator: clearIndicatorCSS,\n container: containerCSS,\n control: css$1,\n dropdownIndicator: dropdownIndicatorCSS,\n group: groupCSS,\n groupHeading: groupHeadingCSS,\n indicatorsContainer: indicatorsContainerCSS,\n indicatorSeparator: indicatorSeparatorCSS,\n input: inputCSS,\n loadingIndicator: loadingIndicatorCSS,\n loadingMessage: loadingMessageCSS,\n menu: menuCSS,\n menuList: menuListCSS,\n menuPortal: menuPortalCSS,\n multiValue: multiValueCSS,\n multiValueLabel: multiValueLabelCSS,\n multiValueRemove: multiValueRemoveCSS,\n noOptionsMessage: noOptionsMessageCSS,\n option: optionCSS,\n placeholder: placeholderCSS,\n singleValue: css$2,\n valueContainer: valueContainerCSS\n}; // Merge Utility\n// Allows consumers to extend a base Select with additional styles\n\nfunction mergeStyles(source) {\n var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n // initialize with source styles\n var styles = _objectSpread2({}, source); // massage in target styles\n\n\n Object.keys(target).forEach(function (keyAsString) {\n var key = keyAsString;\n\n if (source[key]) {\n styles[key] = function (rsCss, props) {\n return target[key](source[key](rsCss, props), props);\n };\n } else {\n styles[key] = target[key];\n }\n });\n return styles;\n}\n\nvar colors = {\n primary: '#2684FF',\n primary75: '#4C9AFF',\n primary50: '#B2D4FF',\n primary25: '#DEEBFF',\n danger: '#DE350B',\n dangerLight: '#FFBDAD',\n neutral0: 'hsl(0, 0%, 100%)',\n neutral5: 'hsl(0, 0%, 95%)',\n neutral10: 'hsl(0, 0%, 90%)',\n neutral20: 'hsl(0, 0%, 80%)',\n neutral30: 'hsl(0, 0%, 70%)',\n neutral40: 'hsl(0, 0%, 60%)',\n neutral50: 'hsl(0, 0%, 50%)',\n neutral60: 'hsl(0, 0%, 40%)',\n neutral70: 'hsl(0, 0%, 30%)',\n neutral80: 'hsl(0, 0%, 20%)',\n neutral90: 'hsl(0, 0%, 10%)'\n};\nvar borderRadius = 4; // Used to calculate consistent margin/padding on elements\n\nvar baseUnit = 4; // The minimum height of the control\n\nvar controlHeight = 38; // The amount of space between the control and menu */\n\nvar menuGutter = baseUnit * 2;\nvar spacing = {\n baseUnit: baseUnit,\n controlHeight: controlHeight,\n menuGutter: menuGutter\n};\nvar defaultTheme = {\n borderRadius: borderRadius,\n colors: colors,\n spacing: spacing\n};\n\nvar defaultProps = {\n 'aria-live': 'polite',\n backspaceRemovesValue: true,\n blurInputOnSelect: isTouchCapable(),\n captureMenuScroll: !isTouchCapable(),\n closeMenuOnSelect: true,\n closeMenuOnScroll: false,\n components: {},\n controlShouldRenderValue: true,\n escapeClearsValue: false,\n filterOption: createFilter(),\n formatGroupLabel: formatGroupLabel,\n getOptionLabel: getOptionLabel$1,\n getOptionValue: getOptionValue$1,\n isDisabled: false,\n isLoading: false,\n isMulti: false,\n isRtl: false,\n isSearchable: true,\n isOptionDisabled: isOptionDisabled,\n loadingMessage: function loadingMessage() {\n return 'Loading...';\n },\n maxMenuHeight: 300,\n minMenuHeight: 140,\n menuIsOpen: false,\n menuPlacement: 'bottom',\n menuPosition: 'absolute',\n menuShouldBlockScroll: false,\n menuShouldScrollIntoView: !isMobileDevice(),\n noOptionsMessage: function noOptionsMessage() {\n return 'No options';\n },\n openMenuOnFocus: false,\n openMenuOnClick: true,\n options: [],\n pageSize: 5,\n placeholder: 'Select...',\n screenReaderStatus: function screenReaderStatus(_ref) {\n var count = _ref.count;\n return \"\".concat(count, \" result\").concat(count !== 1 ? 's' : '', \" available\");\n },\n styles: {},\n tabIndex: 0,\n tabSelectsValue: true\n};\n\nfunction toCategorizedOption(props, option, selectValue, index) {\n var isDisabled = _isOptionDisabled(props, option, selectValue);\n\n var isSelected = _isOptionSelected(props, option, selectValue);\n\n var label = getOptionLabel(props, option);\n var value = getOptionValue(props, option);\n return {\n type: 'option',\n data: option,\n isDisabled: isDisabled,\n isSelected: isSelected,\n label: label,\n value: value,\n index: index\n };\n}\n\nfunction buildCategorizedOptions(props, selectValue) {\n return props.options.map(function (groupOrOption, groupOrOptionIndex) {\n if ('options' in groupOrOption) {\n var categorizedOptions = groupOrOption.options.map(function (option, optionIndex) {\n return toCategorizedOption(props, option, selectValue, optionIndex);\n }).filter(function (categorizedOption) {\n return isFocusable(props, categorizedOption);\n });\n return categorizedOptions.length > 0 ? {\n type: 'group',\n data: groupOrOption,\n options: categorizedOptions,\n index: groupOrOptionIndex\n } : undefined;\n }\n\n var categorizedOption = toCategorizedOption(props, groupOrOption, selectValue, groupOrOptionIndex);\n return isFocusable(props, categorizedOption) ? categorizedOption : undefined;\n }).filter(notNullish);\n}\n\nfunction buildFocusableOptionsFromCategorizedOptions(categorizedOptions) {\n return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) {\n if (categorizedOption.type === 'group') {\n optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function (option) {\n return option.data;\n })));\n } else {\n optionsAccumulator.push(categorizedOption.data);\n }\n\n return optionsAccumulator;\n }, []);\n}\n\nfunction buildFocusableOptions(props, selectValue) {\n return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue));\n}\n\nfunction isFocusable(props, categorizedOption) {\n var _props$inputValue = props.inputValue,\n inputValue = _props$inputValue === void 0 ? '' : _props$inputValue;\n var data = categorizedOption.data,\n isSelected = categorizedOption.isSelected,\n label = categorizedOption.label,\n value = categorizedOption.value;\n return (!shouldHideSelectedOptions(props) || !isSelected) && _filterOption(props, {\n label: label,\n value: value,\n data: data\n }, inputValue);\n}\n\nfunction getNextFocusedValue(state, nextSelectValue) {\n var focusedValue = state.focusedValue,\n lastSelectValue = state.selectValue;\n var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);\n\n if (lastFocusedIndex > -1) {\n var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);\n\n if (nextFocusedIndex > -1) {\n // the focused value is still in the selectValue, return it\n return focusedValue;\n } else if (lastFocusedIndex < nextSelectValue.length) {\n // the focusedValue is not present in the next selectValue array by\n // reference, so return the new value at the same index\n return nextSelectValue[lastFocusedIndex];\n }\n }\n\n return null;\n}\n\nfunction getNextFocusedOption(state, options) {\n var lastFocusedOption = state.focusedOption;\n return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];\n}\n\nvar getOptionLabel = function getOptionLabel(props, data) {\n return props.getOptionLabel(data);\n};\n\nvar getOptionValue = function getOptionValue(props, data) {\n return props.getOptionValue(data);\n};\n\nfunction _isOptionDisabled(props, option, selectValue) {\n return typeof props.isOptionDisabled === 'function' ? props.isOptionDisabled(option, selectValue) : false;\n}\n\nfunction _isOptionSelected(props, option, selectValue) {\n if (selectValue.indexOf(option) > -1) return true;\n\n if (typeof props.isOptionSelected === 'function') {\n return props.isOptionSelected(option, selectValue);\n }\n\n var candidate = getOptionValue(props, option);\n return selectValue.some(function (i) {\n return getOptionValue(props, i) === candidate;\n });\n}\n\nfunction _filterOption(props, option, inputValue) {\n return props.filterOption ? props.filterOption(option, inputValue) : true;\n}\n\nvar shouldHideSelectedOptions = function shouldHideSelectedOptions(props) {\n var hideSelectedOptions = props.hideSelectedOptions,\n isMulti = props.isMulti;\n if (hideSelectedOptions === undefined) return isMulti;\n return hideSelectedOptions;\n};\n\nvar instanceId = 1;\n\nvar Select = /*#__PURE__*/function (_Component) {\n _inherits(Select, _Component);\n\n var _super = _createSuper(Select);\n\n // Misc. Instance Properties\n // ------------------------------\n // TODO\n // Refs\n // ------------------------------\n // Lifecycle\n // ------------------------------\n function Select(_props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _super.call(this, _props);\n _this.state = {\n ariaSelection: null,\n focusedOption: null,\n focusedValue: null,\n inputIsHidden: false,\n isFocused: false,\n selectValue: [],\n clearFocusValueOnUpdate: false,\n prevWasFocused: false,\n inputIsHiddenAfterUpdate: undefined,\n prevProps: undefined\n };\n _this.blockOptionHover = false;\n _this.isComposing = false;\n _this.commonProps = void 0;\n _this.initialTouchX = 0;\n _this.initialTouchY = 0;\n _this.instancePrefix = '';\n _this.openAfterFocus = false;\n _this.scrollToFocusedOptionOnUpdate = false;\n _this.userIsDragging = void 0;\n _this.controlRef = null;\n\n _this.getControlRef = function (ref) {\n _this.controlRef = ref;\n };\n\n _this.focusedOptionRef = null;\n\n _this.getFocusedOptionRef = function (ref) {\n _this.focusedOptionRef = ref;\n };\n\n _this.menuListRef = null;\n\n _this.getMenuListRef = function (ref) {\n _this.menuListRef = ref;\n };\n\n _this.inputRef = null;\n\n _this.getInputRef = function (ref) {\n _this.inputRef = ref;\n };\n\n _this.focus = _this.focusInput;\n _this.blur = _this.blurInput;\n\n _this.onChange = function (newValue, actionMeta) {\n var _this$props = _this.props,\n onChange = _this$props.onChange,\n name = _this$props.name;\n actionMeta.name = name;\n\n _this.ariaOnChange(newValue, actionMeta);\n\n onChange(newValue, actionMeta);\n };\n\n _this.setValue = function (newValue, action, option) {\n var _this$props2 = _this.props,\n closeMenuOnSelect = _this$props2.closeMenuOnSelect,\n isMulti = _this$props2.isMulti,\n inputValue = _this$props2.inputValue;\n\n _this.onInputChange('', {\n action: 'set-value',\n prevInputValue: inputValue\n });\n\n if (closeMenuOnSelect) {\n _this.setState({\n inputIsHiddenAfterUpdate: !isMulti\n });\n\n _this.onMenuClose();\n } // when the select value should change, we should reset focusedValue\n\n\n _this.setState({\n clearFocusValueOnUpdate: true\n });\n\n _this.onChange(newValue, {\n action: action,\n option: option\n });\n };\n\n _this.selectOption = function (newValue) {\n var _this$props3 = _this.props,\n blurInputOnSelect = _this$props3.blurInputOnSelect,\n isMulti = _this$props3.isMulti,\n name = _this$props3.name;\n var selectValue = _this.state.selectValue;\n\n var deselected = isMulti && _this.isOptionSelected(newValue, selectValue);\n\n var isDisabled = _this.isOptionDisabled(newValue, selectValue);\n\n if (deselected) {\n var candidate = _this.getOptionValue(newValue);\n\n _this.setValue(multiValueAsValue(selectValue.filter(function (i) {\n return _this.getOptionValue(i) !== candidate;\n })), 'deselect-option', newValue);\n } else if (!isDisabled) {\n // Select option if option is not disabled\n if (isMulti) {\n _this.setValue(multiValueAsValue([].concat(_toConsumableArray(selectValue), [newValue])), 'select-option', newValue);\n } else {\n _this.setValue(singleValueAsValue(newValue), 'select-option');\n }\n } else {\n _this.ariaOnChange(singleValueAsValue(newValue), {\n action: 'select-option',\n option: newValue,\n name: name\n });\n\n return;\n }\n\n if (blurInputOnSelect) {\n _this.blurInput();\n }\n };\n\n _this.removeValue = function (removedValue) {\n var isMulti = _this.props.isMulti;\n var selectValue = _this.state.selectValue;\n\n var candidate = _this.getOptionValue(removedValue);\n\n var newValueArray = selectValue.filter(function (i) {\n return _this.getOptionValue(i) !== candidate;\n });\n var newValue = valueTernary(isMulti, newValueArray, newValueArray[0] || null);\n\n _this.onChange(newValue, {\n action: 'remove-value',\n removedValue: removedValue\n });\n\n _this.focusInput();\n };\n\n _this.clearValue = function () {\n var selectValue = _this.state.selectValue;\n\n _this.onChange(valueTernary(_this.props.isMulti, [], null), {\n action: 'clear',\n removedValues: selectValue\n });\n };\n\n _this.popValue = function () {\n var isMulti = _this.props.isMulti;\n var selectValue = _this.state.selectValue;\n var lastSelectedValue = selectValue[selectValue.length - 1];\n var newValueArray = selectValue.slice(0, selectValue.length - 1);\n var newValue = valueTernary(isMulti, newValueArray, newValueArray[0] || null);\n\n _this.onChange(newValue, {\n action: 'pop-value',\n removedValue: lastSelectedValue\n });\n };\n\n _this.getValue = function () {\n return _this.state.selectValue;\n };\n\n _this.cx = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return classNames.apply(void 0, [_this.props.classNamePrefix].concat(args));\n };\n\n _this.getOptionLabel = function (data) {\n return getOptionLabel(_this.props, data);\n };\n\n _this.getOptionValue = function (data) {\n return getOptionValue(_this.props, data);\n };\n\n _this.getStyles = function (key, props) {\n var base = defaultStyles[key](props);\n base.boxSizing = 'border-box';\n var custom = _this.props.styles[key];\n return custom ? custom(base, props) : base;\n };\n\n _this.getElementId = function (element) {\n return \"\".concat(_this.instancePrefix, \"-\").concat(element);\n };\n\n _this.getComponents = function () {\n return defaultComponents(_this.props);\n };\n\n _this.buildCategorizedOptions = function () {\n return buildCategorizedOptions(_this.props, _this.state.selectValue);\n };\n\n _this.getCategorizedOptions = function () {\n return _this.props.menuIsOpen ? _this.buildCategorizedOptions() : [];\n };\n\n _this.buildFocusableOptions = function () {\n return buildFocusableOptionsFromCategorizedOptions(_this.buildCategorizedOptions());\n };\n\n _this.getFocusableOptions = function () {\n return _this.props.menuIsOpen ? _this.buildFocusableOptions() : [];\n };\n\n _this.ariaOnChange = function (value, actionMeta) {\n _this.setState({\n ariaSelection: _objectSpread2({\n value: value\n }, actionMeta)\n });\n };\n\n _this.onMenuMouseDown = function (event) {\n if (event.button !== 0) {\n return;\n }\n\n event.stopPropagation();\n event.preventDefault();\n\n _this.focusInput();\n };\n\n _this.onMenuMouseMove = function (event) {\n _this.blockOptionHover = false;\n };\n\n _this.onControlMouseDown = function (event) {\n var openMenuOnClick = _this.props.openMenuOnClick;\n\n if (!_this.state.isFocused) {\n if (openMenuOnClick) {\n _this.openAfterFocus = true;\n }\n\n _this.focusInput();\n } else if (!_this.props.menuIsOpen) {\n if (openMenuOnClick) {\n _this.openMenu('first');\n }\n } else {\n if (event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {\n _this.onMenuClose();\n }\n }\n\n if (event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {\n event.preventDefault();\n }\n };\n\n _this.onDropdownIndicatorMouseDown = function (event) {\n // ignore mouse events that weren't triggered by the primary button\n if (event && event.type === 'mousedown' && event.button !== 0) {\n return;\n }\n\n if (_this.props.isDisabled) return;\n var _this$props4 = _this.props,\n isMulti = _this$props4.isMulti,\n menuIsOpen = _this$props4.menuIsOpen;\n\n _this.focusInput();\n\n if (menuIsOpen) {\n _this.setState({\n inputIsHiddenAfterUpdate: !isMulti\n });\n\n _this.onMenuClose();\n } else {\n _this.openMenu('first');\n }\n\n event.preventDefault();\n event.stopPropagation();\n };\n\n _this.onClearIndicatorMouseDown = function (event) {\n // ignore mouse events that weren't triggered by the primary button\n if (event && event.type === 'mousedown' && event.button !== 0) {\n return;\n }\n\n _this.clearValue();\n\n event.preventDefault();\n event.stopPropagation();\n _this.openAfterFocus = false;\n\n if (event.type === 'touchend') {\n _this.focusInput();\n } else {\n setTimeout(function () {\n return _this.focusInput();\n });\n }\n };\n\n _this.onScroll = function (event) {\n if (typeof _this.props.closeMenuOnScroll === 'boolean') {\n if (event.target instanceof HTMLElement && isDocumentElement(event.target)) {\n _this.props.onMenuClose();\n }\n } else if (typeof _this.props.closeMenuOnScroll === 'function') {\n if (_this.props.closeMenuOnScroll(event)) {\n _this.props.onMenuClose();\n }\n }\n };\n\n _this.onCompositionStart = function () {\n _this.isComposing = true;\n };\n\n _this.onCompositionEnd = function () {\n _this.isComposing = false;\n };\n\n _this.onTouchStart = function (_ref2) {\n var touches = _ref2.touches;\n var touch = touches && touches.item(0);\n\n if (!touch) {\n return;\n }\n\n _this.initialTouchX = touch.clientX;\n _this.initialTouchY = touch.clientY;\n _this.userIsDragging = false;\n };\n\n _this.onTouchMove = function (_ref3) {\n var touches = _ref3.touches;\n var touch = touches && touches.item(0);\n\n if (!touch) {\n return;\n }\n\n var deltaX = Math.abs(touch.clientX - _this.initialTouchX);\n var deltaY = Math.abs(touch.clientY - _this.initialTouchY);\n var moveThreshold = 5;\n _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;\n };\n\n _this.onTouchEnd = function (event) {\n if (_this.userIsDragging) return; // close the menu if the user taps outside\n // we're checking on event.target here instead of event.currentTarget, because we want to assert information\n // on events on child elements, not the document (which we've attached this handler to).\n\n if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {\n _this.blurInput();\n } // reset move vars\n\n\n _this.initialTouchX = 0;\n _this.initialTouchY = 0;\n };\n\n _this.onControlTouchEnd = function (event) {\n if (_this.userIsDragging) return;\n\n _this.onControlMouseDown(event);\n };\n\n _this.onClearIndicatorTouchEnd = function (event) {\n if (_this.userIsDragging) return;\n\n _this.onClearIndicatorMouseDown(event);\n };\n\n _this.onDropdownIndicatorTouchEnd = function (event) {\n if (_this.userIsDragging) return;\n\n _this.onDropdownIndicatorMouseDown(event);\n };\n\n _this.handleInputChange = function (event) {\n var prevInputValue = _this.props.inputValue;\n var inputValue = event.currentTarget.value;\n\n _this.setState({\n inputIsHiddenAfterUpdate: false\n });\n\n _this.onInputChange(inputValue, {\n action: 'input-change',\n prevInputValue: prevInputValue\n });\n\n if (!_this.props.menuIsOpen) {\n _this.onMenuOpen();\n }\n };\n\n _this.onInputFocus = function (event) {\n if (_this.props.onFocus) {\n _this.props.onFocus(event);\n }\n\n _this.setState({\n inputIsHiddenAfterUpdate: false,\n isFocused: true\n });\n\n if (_this.openAfterFocus || _this.props.openMenuOnFocus) {\n _this.openMenu('first');\n }\n\n _this.openAfterFocus = false;\n };\n\n _this.onInputBlur = function (event) {\n var prevInputValue = _this.props.inputValue;\n\n if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {\n _this.inputRef.focus();\n\n return;\n }\n\n if (_this.props.onBlur) {\n _this.props.onBlur(event);\n }\n\n _this.onInputChange('', {\n action: 'input-blur',\n prevInputValue: prevInputValue\n });\n\n _this.onMenuClose();\n\n _this.setState({\n focusedValue: null,\n isFocused: false\n });\n };\n\n _this.onOptionHover = function (focusedOption) {\n if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {\n return;\n }\n\n _this.setState({\n focusedOption: focusedOption\n });\n };\n\n _this.shouldHideSelectedOptions = function () {\n return shouldHideSelectedOptions(_this.props);\n };\n\n _this.onKeyDown = function (event) {\n var _this$props5 = _this.props,\n isMulti = _this$props5.isMulti,\n backspaceRemovesValue = _this$props5.backspaceRemovesValue,\n escapeClearsValue = _this$props5.escapeClearsValue,\n inputValue = _this$props5.inputValue,\n isClearable = _this$props5.isClearable,\n isDisabled = _this$props5.isDisabled,\n menuIsOpen = _this$props5.menuIsOpen,\n onKeyDown = _this$props5.onKeyDown,\n tabSelectsValue = _this$props5.tabSelectsValue,\n openMenuOnFocus = _this$props5.openMenuOnFocus;\n var _this$state = _this.state,\n focusedOption = _this$state.focusedOption,\n focusedValue = _this$state.focusedValue,\n selectValue = _this$state.selectValue;\n if (isDisabled) return;\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n\n if (event.defaultPrevented) {\n return;\n }\n } // Block option hover events when the user has just pressed a key\n\n\n _this.blockOptionHover = true;\n\n switch (event.key) {\n case 'ArrowLeft':\n if (!isMulti || inputValue) return;\n\n _this.focusValue('previous');\n\n break;\n\n case 'ArrowRight':\n if (!isMulti || inputValue) return;\n\n _this.focusValue('next');\n\n break;\n\n case 'Delete':\n case 'Backspace':\n if (inputValue) return;\n\n if (focusedValue) {\n _this.removeValue(focusedValue);\n } else {\n if (!backspaceRemovesValue) return;\n\n if (isMulti) {\n _this.popValue();\n } else if (isClearable) {\n _this.clearValue();\n }\n }\n\n break;\n\n case 'Tab':\n if (_this.isComposing) return;\n\n if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused\n // option is already selected; it breaks the flow of navigation\n openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {\n return;\n }\n\n _this.selectOption(focusedOption);\n\n break;\n\n case 'Enter':\n if (event.keyCode === 229) {\n // ignore the keydown event from an Input Method Editor(IME)\n // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode\n break;\n }\n\n if (menuIsOpen) {\n if (!focusedOption) return;\n if (_this.isComposing) return;\n\n _this.selectOption(focusedOption);\n\n break;\n }\n\n return;\n\n case 'Escape':\n if (menuIsOpen) {\n _this.setState({\n inputIsHiddenAfterUpdate: false\n });\n\n _this.onInputChange('', {\n action: 'menu-close',\n prevInputValue: inputValue\n });\n\n _this.onMenuClose();\n } else if (isClearable && escapeClearsValue) {\n _this.clearValue();\n }\n\n break;\n\n case ' ':\n // space\n if (inputValue) {\n return;\n }\n\n if (!menuIsOpen) {\n _this.openMenu('first');\n\n break;\n }\n\n if (!focusedOption) return;\n\n _this.selectOption(focusedOption);\n\n break;\n\n case 'ArrowUp':\n if (menuIsOpen) {\n _this.focusOption('up');\n } else {\n _this.openMenu('last');\n }\n\n break;\n\n case 'ArrowDown':\n if (menuIsOpen) {\n _this.focusOption('down');\n } else {\n _this.openMenu('first');\n }\n\n break;\n\n case 'PageUp':\n if (!menuIsOpen) return;\n\n _this.focusOption('pageup');\n\n break;\n\n case 'PageDown':\n if (!menuIsOpen) return;\n\n _this.focusOption('pagedown');\n\n break;\n\n case 'Home':\n if (!menuIsOpen) return;\n\n _this.focusOption('first');\n\n break;\n\n case 'End':\n if (!menuIsOpen) return;\n\n _this.focusOption('last');\n\n break;\n\n default:\n return;\n }\n\n event.preventDefault();\n };\n\n _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);\n _this.state.selectValue = cleanValue(_props.value);\n return _this;\n }\n\n _createClass(Select, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.startListeningComposition();\n this.startListeningToTouch();\n\n if (this.props.closeMenuOnScroll && document && document.addEventListener) {\n // Listen to all scroll events, and filter them out inside of 'onScroll'\n document.addEventListener('scroll', this.onScroll, true);\n }\n\n if (this.props.autoFocus) {\n this.focusInput();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this$props6 = this.props,\n isDisabled = _this$props6.isDisabled,\n menuIsOpen = _this$props6.menuIsOpen;\n var isFocused = this.state.isFocused;\n\n if ( // ensure focus is restored correctly when the control becomes enabled\n isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens\n isFocused && menuIsOpen && !prevProps.menuIsOpen) {\n this.focusInput();\n }\n\n if (isFocused && isDisabled && !prevProps.isDisabled) {\n // ensure select state gets blurred in case Select is programatically disabled while focused\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n isFocused: false\n }, this.onMenuClose);\n } // scroll the focused option into view if necessary\n\n\n if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {\n scrollIntoView(this.menuListRef, this.focusedOptionRef);\n this.scrollToFocusedOptionOnUpdate = false;\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.stopListeningComposition();\n this.stopListeningToTouch();\n document.removeEventListener('scroll', this.onScroll, true);\n } // ==============================\n // Consumer Handlers\n // ==============================\n\n }, {\n key: \"onMenuOpen\",\n value: function onMenuOpen() {\n this.props.onMenuOpen();\n }\n }, {\n key: \"onMenuClose\",\n value: function onMenuClose() {\n this.onInputChange('', {\n action: 'menu-close',\n prevInputValue: this.props.inputValue\n });\n this.props.onMenuClose();\n }\n }, {\n key: \"onInputChange\",\n value: function onInputChange(newValue, actionMeta) {\n this.props.onInputChange(newValue, actionMeta);\n } // ==============================\n // Methods\n // ==============================\n\n }, {\n key: \"focusInput\",\n value: function focusInput() {\n if (!this.inputRef) return;\n this.inputRef.focus();\n }\n }, {\n key: \"blurInput\",\n value: function blurInput() {\n if (!this.inputRef) return;\n this.inputRef.blur();\n } // aliased for consumers\n\n }, {\n key: \"openMenu\",\n value: function openMenu(focusOption) {\n var _this2 = this;\n\n var _this$state2 = this.state,\n selectValue = _this$state2.selectValue,\n isFocused = _this$state2.isFocused;\n var focusableOptions = this.buildFocusableOptions();\n var openAtIndex = focusOption === 'first' ? 0 : focusableOptions.length - 1;\n\n if (!this.props.isMulti) {\n var selectedIndex = focusableOptions.indexOf(selectValue[0]);\n\n if (selectedIndex > -1) {\n openAtIndex = selectedIndex;\n }\n } // only scroll if the menu isn't already open\n\n\n this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);\n this.setState({\n inputIsHiddenAfterUpdate: false,\n focusedValue: null,\n focusedOption: focusableOptions[openAtIndex]\n }, function () {\n return _this2.onMenuOpen();\n });\n }\n }, {\n key: \"focusValue\",\n value: function focusValue(direction) {\n var _this$state3 = this.state,\n selectValue = _this$state3.selectValue,\n focusedValue = _this$state3.focusedValue; // Only multiselects support value focusing\n\n if (!this.props.isMulti) return;\n this.setState({\n focusedOption: null\n });\n var focusedIndex = selectValue.indexOf(focusedValue);\n\n if (!focusedValue) {\n focusedIndex = -1;\n }\n\n var lastIndex = selectValue.length - 1;\n var nextFocus = -1;\n if (!selectValue.length) return;\n\n switch (direction) {\n case 'previous':\n if (focusedIndex === 0) {\n // don't cycle from the start to the end\n nextFocus = 0;\n } else if (focusedIndex === -1) {\n // if nothing is focused, focus the last value first\n nextFocus = lastIndex;\n } else {\n nextFocus = focusedIndex - 1;\n }\n\n break;\n\n case 'next':\n if (focusedIndex > -1 && focusedIndex < lastIndex) {\n nextFocus = focusedIndex + 1;\n }\n\n break;\n }\n\n this.setState({\n inputIsHidden: nextFocus !== -1,\n focusedValue: selectValue[nextFocus]\n });\n }\n }, {\n key: \"focusOption\",\n value: function focusOption() {\n var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';\n var pageSize = this.props.pageSize;\n var focusedOption = this.state.focusedOption;\n var options = this.getFocusableOptions();\n if (!options.length) return;\n var nextFocus = 0; // handles 'first'\n\n var focusedIndex = options.indexOf(focusedOption);\n\n if (!focusedOption) {\n focusedIndex = -1;\n }\n\n if (direction === 'up') {\n nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;\n } else if (direction === 'down') {\n nextFocus = (focusedIndex + 1) % options.length;\n } else if (direction === 'pageup') {\n nextFocus = focusedIndex - pageSize;\n if (nextFocus < 0) nextFocus = 0;\n } else if (direction === 'pagedown') {\n nextFocus = focusedIndex + pageSize;\n if (nextFocus > options.length - 1) nextFocus = options.length - 1;\n } else if (direction === 'last') {\n nextFocus = options.length - 1;\n }\n\n this.scrollToFocusedOptionOnUpdate = true;\n this.setState({\n focusedOption: options[nextFocus],\n focusedValue: null\n });\n }\n }, {\n key: \"getTheme\",\n value: // ==============================\n // Getters\n // ==============================\n function getTheme() {\n // Use the default theme if there are no customizations.\n if (!this.props.theme) {\n return defaultTheme;\n } // If the theme prop is a function, assume the function\n // knows how to merge the passed-in default theme with\n // its own modifications.\n\n\n if (typeof this.props.theme === 'function') {\n return this.props.theme(defaultTheme);\n } // Otherwise, if a plain theme object was passed in,\n // overlay it with the default theme.\n\n\n return _objectSpread2(_objectSpread2({}, defaultTheme), this.props.theme);\n }\n }, {\n key: \"getCommonProps\",\n value: function getCommonProps() {\n var clearValue = this.clearValue,\n cx = this.cx,\n getStyles = this.getStyles,\n getValue = this.getValue,\n selectOption = this.selectOption,\n setValue = this.setValue,\n props = this.props;\n var isMulti = props.isMulti,\n isRtl = props.isRtl,\n options = props.options;\n var hasValue = this.hasValue();\n return {\n clearValue: clearValue,\n cx: cx,\n getStyles: getStyles,\n getValue: getValue,\n hasValue: hasValue,\n isMulti: isMulti,\n isRtl: isRtl,\n options: options,\n selectOption: selectOption,\n selectProps: props,\n setValue: setValue,\n theme: this.getTheme()\n };\n }\n }, {\n key: \"hasValue\",\n value: function hasValue() {\n var selectValue = this.state.selectValue;\n return selectValue.length > 0;\n }\n }, {\n key: \"hasOptions\",\n value: function hasOptions() {\n return !!this.getFocusableOptions().length;\n }\n }, {\n key: \"isClearable\",\n value: function isClearable() {\n var _this$props7 = this.props,\n isClearable = _this$props7.isClearable,\n isMulti = _this$props7.isMulti; // single select, by default, IS NOT clearable\n // multi select, by default, IS clearable\n\n if (isClearable === undefined) return isMulti;\n return isClearable;\n }\n }, {\n key: \"isOptionDisabled\",\n value: function isOptionDisabled(option, selectValue) {\n return _isOptionDisabled(this.props, option, selectValue);\n }\n }, {\n key: \"isOptionSelected\",\n value: function isOptionSelected(option, selectValue) {\n return _isOptionSelected(this.props, option, selectValue);\n }\n }, {\n key: \"filterOption\",\n value: function filterOption(option, inputValue) {\n return _filterOption(this.props, option, inputValue);\n }\n }, {\n key: \"formatOptionLabel\",\n value: function formatOptionLabel(data, context) {\n if (typeof this.props.formatOptionLabel === 'function') {\n var _inputValue = this.props.inputValue;\n var _selectValue = this.state.selectValue;\n return this.props.formatOptionLabel(data, {\n context: context,\n inputValue: _inputValue,\n selectValue: _selectValue\n });\n } else {\n return this.getOptionLabel(data);\n }\n }\n }, {\n key: \"formatGroupLabel\",\n value: function formatGroupLabel(data) {\n return this.props.formatGroupLabel(data);\n } // ==============================\n // Mouse Handlers\n // ==============================\n\n }, {\n key: \"startListeningComposition\",\n value: // ==============================\n // Composition Handlers\n // ==============================\n function startListeningComposition() {\n if (document && document.addEventListener) {\n document.addEventListener('compositionstart', this.onCompositionStart, false);\n document.addEventListener('compositionend', this.onCompositionEnd, false);\n }\n }\n }, {\n key: \"stopListeningComposition\",\n value: function stopListeningComposition() {\n if (document && document.removeEventListener) {\n document.removeEventListener('compositionstart', this.onCompositionStart);\n document.removeEventListener('compositionend', this.onCompositionEnd);\n }\n }\n }, {\n key: \"startListeningToTouch\",\n value: // ==============================\n // Touch Handlers\n // ==============================\n function startListeningToTouch() {\n if (document && document.addEventListener) {\n document.addEventListener('touchstart', this.onTouchStart, false);\n document.addEventListener('touchmove', this.onTouchMove, false);\n document.addEventListener('touchend', this.onTouchEnd, false);\n }\n }\n }, {\n key: \"stopListeningToTouch\",\n value: function stopListeningToTouch() {\n if (document && document.removeEventListener) {\n document.removeEventListener('touchstart', this.onTouchStart);\n document.removeEventListener('touchmove', this.onTouchMove);\n document.removeEventListener('touchend', this.onTouchEnd);\n }\n }\n }, {\n key: \"renderInput\",\n value: // ==============================\n // Renderers\n // ==============================\n function renderInput() {\n var _this$props8 = this.props,\n isDisabled = _this$props8.isDisabled,\n isSearchable = _this$props8.isSearchable,\n inputId = _this$props8.inputId,\n inputValue = _this$props8.inputValue,\n tabIndex = _this$props8.tabIndex,\n form = _this$props8.form,\n menuIsOpen = _this$props8.menuIsOpen;\n\n var _this$getComponents = this.getComponents(),\n Input = _this$getComponents.Input;\n\n var _this$state4 = this.state,\n inputIsHidden = _this$state4.inputIsHidden,\n ariaSelection = _this$state4.ariaSelection;\n var commonProps = this.commonProps;\n var id = inputId || this.getElementId('input'); // aria attributes makes the JSX \"noisy\", separated for clarity\n\n var ariaAttributes = _objectSpread2(_objectSpread2({\n 'aria-autocomplete': 'list',\n 'aria-expanded': menuIsOpen,\n 'aria-haspopup': true,\n 'aria-controls': this.getElementId('listbox'),\n 'aria-owns': this.getElementId('listbox'),\n 'aria-errormessage': this.props['aria-errormessage'],\n 'aria-invalid': this.props['aria-invalid'],\n 'aria-label': this.props['aria-label'],\n 'aria-labelledby': this.props['aria-labelledby'],\n role: 'combobox'\n }, !isSearchable && {\n 'aria-readonly': true\n }), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus' && {\n 'aria-describedby': this.getElementId('live-region')\n } : {\n 'aria-describedby': this.getElementId('placeholder')\n });\n\n if (!isSearchable) {\n // use a dummy input to maintain focus/blur functionality\n return /*#__PURE__*/React.createElement(DummyInput, _extends({\n id: id,\n innerRef: this.getInputRef,\n onBlur: this.onInputBlur,\n onChange: noop,\n onFocus: this.onInputFocus,\n disabled: isDisabled,\n tabIndex: tabIndex,\n inputMode: \"none\",\n form: form,\n value: \"\"\n }, ariaAttributes));\n }\n\n return /*#__PURE__*/React.createElement(Input, _extends({}, commonProps, {\n autoCapitalize: \"none\",\n autoComplete: \"off\",\n autoCorrect: \"off\",\n id: id,\n innerRef: this.getInputRef,\n isDisabled: isDisabled,\n isHidden: inputIsHidden,\n onBlur: this.onInputBlur,\n onChange: this.handleInputChange,\n onFocus: this.onInputFocus,\n spellCheck: \"false\",\n tabIndex: tabIndex,\n form: form,\n type: \"text\",\n value: inputValue\n }, ariaAttributes));\n }\n }, {\n key: \"renderPlaceholderOrValue\",\n value: function renderPlaceholderOrValue() {\n var _this3 = this;\n\n var _this$getComponents2 = this.getComponents(),\n MultiValue = _this$getComponents2.MultiValue,\n MultiValueContainer = _this$getComponents2.MultiValueContainer,\n MultiValueLabel = _this$getComponents2.MultiValueLabel,\n MultiValueRemove = _this$getComponents2.MultiValueRemove,\n SingleValue = _this$getComponents2.SingleValue,\n Placeholder = _this$getComponents2.Placeholder;\n\n var commonProps = this.commonProps;\n var _this$props9 = this.props,\n controlShouldRenderValue = _this$props9.controlShouldRenderValue,\n isDisabled = _this$props9.isDisabled,\n isMulti = _this$props9.isMulti,\n inputValue = _this$props9.inputValue,\n placeholder = _this$props9.placeholder;\n var _this$state5 = this.state,\n selectValue = _this$state5.selectValue,\n focusedValue = _this$state5.focusedValue,\n isFocused = _this$state5.isFocused;\n\n if (!this.hasValue() || !controlShouldRenderValue) {\n return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends({}, commonProps, {\n key: \"placeholder\",\n isDisabled: isDisabled,\n isFocused: isFocused,\n innerProps: {\n id: this.getElementId('placeholder')\n }\n }), placeholder);\n }\n\n if (isMulti) {\n return selectValue.map(function (opt, index) {\n var isOptionFocused = opt === focusedValue;\n var key = \"\".concat(_this3.getOptionLabel(opt), \"-\").concat(_this3.getOptionValue(opt));\n return /*#__PURE__*/React.createElement(MultiValue, _extends({}, commonProps, {\n components: {\n Container: MultiValueContainer,\n Label: MultiValueLabel,\n Remove: MultiValueRemove\n },\n isFocused: isOptionFocused,\n isDisabled: isDisabled,\n key: key,\n index: index,\n removeProps: {\n onClick: function onClick() {\n return _this3.removeValue(opt);\n },\n onTouchEnd: function onTouchEnd() {\n return _this3.removeValue(opt);\n },\n onMouseDown: function onMouseDown(e) {\n e.preventDefault();\n e.stopPropagation();\n }\n },\n data: opt\n }), _this3.formatOptionLabel(opt, 'value'));\n });\n }\n\n if (inputValue) {\n return null;\n }\n\n var singleValue = selectValue[0];\n return /*#__PURE__*/React.createElement(SingleValue, _extends({}, commonProps, {\n data: singleValue,\n isDisabled: isDisabled\n }), this.formatOptionLabel(singleValue, 'value'));\n }\n }, {\n key: \"renderClearIndicator\",\n value: function renderClearIndicator() {\n var _this$getComponents3 = this.getComponents(),\n ClearIndicator = _this$getComponents3.ClearIndicator;\n\n var commonProps = this.commonProps;\n var _this$props10 = this.props,\n isDisabled = _this$props10.isDisabled,\n isLoading = _this$props10.isLoading;\n var isFocused = this.state.isFocused;\n\n if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {\n return null;\n }\n\n var innerProps = {\n onMouseDown: this.onClearIndicatorMouseDown,\n onTouchEnd: this.onClearIndicatorTouchEnd,\n 'aria-hidden': 'true'\n };\n return /*#__PURE__*/React.createElement(ClearIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderLoadingIndicator\",\n value: function renderLoadingIndicator() {\n var _this$getComponents4 = this.getComponents(),\n LoadingIndicator = _this$getComponents4.LoadingIndicator;\n\n var commonProps = this.commonProps;\n var _this$props11 = this.props,\n isDisabled = _this$props11.isDisabled,\n isLoading = _this$props11.isLoading;\n var isFocused = this.state.isFocused;\n if (!LoadingIndicator || !isLoading) return null;\n var innerProps = {\n 'aria-hidden': 'true'\n };\n return /*#__PURE__*/React.createElement(LoadingIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderIndicatorSeparator\",\n value: function renderIndicatorSeparator() {\n var _this$getComponents5 = this.getComponents(),\n DropdownIndicator = _this$getComponents5.DropdownIndicator,\n IndicatorSeparator = _this$getComponents5.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator\n\n\n if (!DropdownIndicator || !IndicatorSeparator) return null;\n var commonProps = this.commonProps;\n var isDisabled = this.props.isDisabled;\n var isFocused = this.state.isFocused;\n return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends({}, commonProps, {\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderDropdownIndicator\",\n value: function renderDropdownIndicator() {\n var _this$getComponents6 = this.getComponents(),\n DropdownIndicator = _this$getComponents6.DropdownIndicator;\n\n if (!DropdownIndicator) return null;\n var commonProps = this.commonProps;\n var isDisabled = this.props.isDisabled;\n var isFocused = this.state.isFocused;\n var innerProps = {\n onMouseDown: this.onDropdownIndicatorMouseDown,\n onTouchEnd: this.onDropdownIndicatorTouchEnd,\n 'aria-hidden': 'true'\n };\n return /*#__PURE__*/React.createElement(DropdownIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this4 = this;\n\n var _this$getComponents7 = this.getComponents(),\n Group = _this$getComponents7.Group,\n GroupHeading = _this$getComponents7.GroupHeading,\n Menu = _this$getComponents7.Menu,\n MenuList = _this$getComponents7.MenuList,\n MenuPortal = _this$getComponents7.MenuPortal,\n LoadingMessage = _this$getComponents7.LoadingMessage,\n NoOptionsMessage = _this$getComponents7.NoOptionsMessage,\n Option = _this$getComponents7.Option;\n\n var commonProps = this.commonProps;\n var focusedOption = this.state.focusedOption;\n var _this$props12 = this.props,\n captureMenuScroll = _this$props12.captureMenuScroll,\n inputValue = _this$props12.inputValue,\n isLoading = _this$props12.isLoading,\n loadingMessage = _this$props12.loadingMessage,\n minMenuHeight = _this$props12.minMenuHeight,\n maxMenuHeight = _this$props12.maxMenuHeight,\n menuIsOpen = _this$props12.menuIsOpen,\n menuPlacement = _this$props12.menuPlacement,\n menuPosition = _this$props12.menuPosition,\n menuPortalTarget = _this$props12.menuPortalTarget,\n menuShouldBlockScroll = _this$props12.menuShouldBlockScroll,\n menuShouldScrollIntoView = _this$props12.menuShouldScrollIntoView,\n noOptionsMessage = _this$props12.noOptionsMessage,\n onMenuScrollToTop = _this$props12.onMenuScrollToTop,\n onMenuScrollToBottom = _this$props12.onMenuScrollToBottom;\n if (!menuIsOpen) return null; // TODO: Internal Option Type here\n\n var render = function render(props, id) {\n var type = props.type,\n data = props.data,\n isDisabled = props.isDisabled,\n isSelected = props.isSelected,\n label = props.label,\n value = props.value;\n var isFocused = focusedOption === data;\n var onHover = isDisabled ? undefined : function () {\n return _this4.onOptionHover(data);\n };\n var onSelect = isDisabled ? undefined : function () {\n return _this4.selectOption(data);\n };\n var optionId = \"\".concat(_this4.getElementId('option'), \"-\").concat(id);\n var innerProps = {\n id: optionId,\n onClick: onSelect,\n onMouseMove: onHover,\n onMouseOver: onHover,\n tabIndex: -1\n };\n return /*#__PURE__*/React.createElement(Option, _extends({}, commonProps, {\n innerProps: innerProps,\n data: data,\n isDisabled: isDisabled,\n isSelected: isSelected,\n key: optionId,\n label: label,\n type: type,\n value: value,\n isFocused: isFocused,\n innerRef: isFocused ? _this4.getFocusedOptionRef : undefined\n }), _this4.formatOptionLabel(props.data, 'menu'));\n };\n\n var menuUI;\n\n if (this.hasOptions()) {\n menuUI = this.getCategorizedOptions().map(function (item) {\n if (item.type === 'group') {\n var _data = item.data,\n options = item.options,\n groupIndex = item.index;\n var groupId = \"\".concat(_this4.getElementId('group'), \"-\").concat(groupIndex);\n var headingId = \"\".concat(groupId, \"-heading\");\n return /*#__PURE__*/React.createElement(Group, _extends({}, commonProps, {\n key: groupId,\n data: _data,\n options: options,\n Heading: GroupHeading,\n headingProps: {\n id: headingId,\n data: item.data\n },\n label: _this4.formatGroupLabel(item.data)\n }), item.options.map(function (option) {\n return render(option, \"\".concat(groupIndex, \"-\").concat(option.index));\n }));\n } else if (item.type === 'option') {\n return render(item, \"\".concat(item.index));\n }\n });\n } else if (isLoading) {\n var message = loadingMessage({\n inputValue: inputValue\n });\n if (message === null) return null;\n menuUI = /*#__PURE__*/React.createElement(LoadingMessage, commonProps, message);\n } else {\n var _message = noOptionsMessage({\n inputValue: inputValue\n });\n\n if (_message === null) return null;\n menuUI = /*#__PURE__*/React.createElement(NoOptionsMessage, commonProps, _message);\n }\n\n var menuPlacementProps = {\n minMenuHeight: minMenuHeight,\n maxMenuHeight: maxMenuHeight,\n menuPlacement: menuPlacement,\n menuPosition: menuPosition,\n menuShouldScrollIntoView: menuShouldScrollIntoView\n };\n var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref4) {\n var ref = _ref4.ref,\n _ref4$placerProps = _ref4.placerProps,\n placement = _ref4$placerProps.placement,\n maxHeight = _ref4$placerProps.maxHeight;\n return /*#__PURE__*/React.createElement(Menu, _extends({}, commonProps, menuPlacementProps, {\n innerRef: ref,\n innerProps: {\n onMouseDown: _this4.onMenuMouseDown,\n onMouseMove: _this4.onMenuMouseMove,\n id: _this4.getElementId('listbox')\n },\n isLoading: isLoading,\n placement: placement\n }), /*#__PURE__*/React.createElement(ScrollManager, {\n captureEnabled: captureMenuScroll,\n onTopArrive: onMenuScrollToTop,\n onBottomArrive: onMenuScrollToBottom,\n lockEnabled: menuShouldBlockScroll\n }, function (scrollTargetRef) {\n return /*#__PURE__*/React.createElement(MenuList, _extends({}, commonProps, {\n innerRef: function innerRef(instance) {\n _this4.getMenuListRef(instance);\n\n scrollTargetRef(instance);\n },\n isLoading: isLoading,\n maxHeight: maxHeight,\n focusedOption: focusedOption\n }), menuUI);\n }));\n }); // positioning behaviour is almost identical for portalled and fixed,\n // so we use the same component. the actual portalling logic is forked\n // within the component based on `menuPosition`\n\n return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends({}, commonProps, {\n appendTo: menuPortalTarget,\n controlElement: this.controlRef,\n menuPlacement: menuPlacement,\n menuPosition: menuPosition\n }), menuElement) : menuElement;\n }\n }, {\n key: \"renderFormField\",\n value: function renderFormField() {\n var _this5 = this;\n\n var _this$props13 = this.props,\n delimiter = _this$props13.delimiter,\n isDisabled = _this$props13.isDisabled,\n isMulti = _this$props13.isMulti,\n name = _this$props13.name;\n var selectValue = this.state.selectValue;\n if (!name || isDisabled) return;\n\n if (isMulti) {\n if (delimiter) {\n var value = selectValue.map(function (opt) {\n return _this5.getOptionValue(opt);\n }).join(delimiter);\n return /*#__PURE__*/React.createElement(\"input\", {\n name: name,\n type: \"hidden\",\n value: value\n });\n } else {\n var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {\n return /*#__PURE__*/React.createElement(\"input\", {\n key: \"i-\".concat(i),\n name: name,\n type: \"hidden\",\n value: _this5.getOptionValue(opt)\n });\n }) : /*#__PURE__*/React.createElement(\"input\", {\n name: name,\n type: \"hidden\"\n });\n return /*#__PURE__*/React.createElement(\"div\", null, input);\n }\n } else {\n var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';\n\n return /*#__PURE__*/React.createElement(\"input\", {\n name: name,\n type: \"hidden\",\n value: _value\n });\n }\n }\n }, {\n key: \"renderLiveRegion\",\n value: function renderLiveRegion() {\n var commonProps = this.commonProps;\n var _this$state6 = this.state,\n ariaSelection = _this$state6.ariaSelection,\n focusedOption = _this$state6.focusedOption,\n focusedValue = _this$state6.focusedValue,\n isFocused = _this$state6.isFocused,\n selectValue = _this$state6.selectValue;\n var focusableOptions = this.getFocusableOptions();\n return /*#__PURE__*/React.createElement(LiveRegion, _extends({}, commonProps, {\n id: this.getElementId('live-region'),\n ariaSelection: ariaSelection,\n focusedOption: focusedOption,\n focusedValue: focusedValue,\n isFocused: isFocused,\n selectValue: selectValue,\n focusableOptions: focusableOptions\n }));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$getComponents8 = this.getComponents(),\n Control = _this$getComponents8.Control,\n IndicatorsContainer = _this$getComponents8.IndicatorsContainer,\n SelectContainer = _this$getComponents8.SelectContainer,\n ValueContainer = _this$getComponents8.ValueContainer;\n\n var _this$props14 = this.props,\n className = _this$props14.className,\n id = _this$props14.id,\n isDisabled = _this$props14.isDisabled,\n menuIsOpen = _this$props14.menuIsOpen;\n var isFocused = this.state.isFocused;\n var commonProps = this.commonProps = this.getCommonProps();\n return /*#__PURE__*/React.createElement(SelectContainer, _extends({}, commonProps, {\n className: className,\n innerProps: {\n id: id,\n onKeyDown: this.onKeyDown\n },\n isDisabled: isDisabled,\n isFocused: isFocused\n }), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends({}, commonProps, {\n innerRef: this.getControlRef,\n innerProps: {\n onMouseDown: this.onControlMouseDown,\n onTouchEnd: this.onControlTouchEnd\n },\n isDisabled: isDisabled,\n isFocused: isFocused,\n menuIsOpen: menuIsOpen\n }), /*#__PURE__*/React.createElement(ValueContainer, _extends({}, commonProps, {\n isDisabled: isDisabled\n }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends({}, commonProps, {\n isDisabled: isDisabled\n }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props, state) {\n var prevProps = state.prevProps,\n clearFocusValueOnUpdate = state.clearFocusValueOnUpdate,\n inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate,\n ariaSelection = state.ariaSelection,\n isFocused = state.isFocused,\n prevWasFocused = state.prevWasFocused;\n var options = props.options,\n value = props.value,\n menuIsOpen = props.menuIsOpen,\n inputValue = props.inputValue,\n isMulti = props.isMulti;\n var selectValue = cleanValue(value);\n var newMenuOptionsState = {};\n\n if (prevProps && (value !== prevProps.value || options !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) {\n var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : [];\n var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null;\n var focusedOption = getNextFocusedOption(state, focusableOptions);\n newMenuOptionsState = {\n selectValue: selectValue,\n focusedOption: focusedOption,\n focusedValue: focusedValue,\n clearFocusValueOnUpdate: false\n };\n } // some updates should toggle the state of the input visibility\n\n\n var newInputIsHiddenState = inputIsHiddenAfterUpdate != null && props !== prevProps ? {\n inputIsHidden: inputIsHiddenAfterUpdate,\n inputIsHiddenAfterUpdate: undefined\n } : {};\n var newAriaSelection = ariaSelection;\n var hasKeptFocus = isFocused && prevWasFocused;\n\n if (isFocused && !hasKeptFocus) {\n // If `value` or `defaultValue` props are not empty then announce them\n // when the Select is initially focused\n newAriaSelection = {\n value: valueTernary(isMulti, selectValue, selectValue[0] || null),\n options: selectValue,\n action: 'initial-input-focus'\n };\n hasKeptFocus = !prevWasFocused;\n } // If the 'initial-input-focus' action has been set already\n // then reset the ariaSelection to null\n\n\n if ((ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus') {\n newAriaSelection = null;\n }\n\n return _objectSpread2(_objectSpread2(_objectSpread2({}, newMenuOptionsState), newInputIsHiddenState), {}, {\n prevProps: props,\n ariaSelection: newAriaSelection,\n prevWasFocused: hasKeptFocus\n });\n }\n }]);\n\n return Select;\n}(Component);\n\nSelect.defaultProps = defaultProps;\n\nexport { Select as S, getOptionLabel$1 as a, defaultProps as b, createFilter as c, defaultTheme as d, getOptionValue$1 as g, mergeStyles as m };\n","import { u as useStateManager } from './useStateManager-783b07d5.esm.js';\nexport { u as useStateManager } from './useStateManager-783b07d5.esm.js';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport * as React from 'react';\nimport { forwardRef, Component } from 'react';\nimport { S as Select } from './Select-126cf1dd.esm.js';\nexport { c as createFilter, d as defaultTheme, m as mergeStyles } from './Select-126cf1dd.esm.js';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nimport { _ as _createSuper } from './index-c7a4d7ce.esm.js';\nexport { c as components } from './index-c7a4d7ce.esm.js';\nimport { CacheProvider } from '@emotion/react';\nimport createCache from '@emotion/cache';\nimport memoizeOne from 'memoize-one';\nimport '@babel/runtime/helpers/slicedToArray';\nimport '@babel/runtime/helpers/objectWithoutProperties';\nimport '@babel/runtime/helpers/toConsumableArray';\nimport '@babel/runtime/helpers/taggedTemplateLiteral';\nimport '@babel/runtime/helpers/typeof';\nimport '@babel/runtime/helpers/defineProperty';\nimport 'react-dom';\n\nvar StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {\n var baseSelectProps = useStateManager(props);\n return /*#__PURE__*/React.createElement(Select, _extends({\n ref: ref\n }, baseSelectProps));\n});\n\nvar NonceProvider = /*#__PURE__*/function (_Component) {\n _inherits(NonceProvider, _Component);\n\n var _super = _createSuper(NonceProvider);\n\n function NonceProvider(props) {\n var _this;\n\n _classCallCheck(this, NonceProvider);\n\n _this = _super.call(this, props);\n\n _this.createEmotionCache = function (nonce, key) {\n return createCache({\n nonce: nonce,\n key: key\n });\n };\n\n _this.createEmotionCache = memoizeOne(_this.createEmotionCache);\n return _this;\n }\n\n _createClass(NonceProvider, [{\n key: \"render\",\n value: function render() {\n var emotionCache = this.createEmotionCache(this.props.nonce, this.props.cacheKey);\n return /*#__PURE__*/React.createElement(CacheProvider, {\n value: emotionCache\n }, this.props.children);\n }\n }]);\n\n return NonceProvider;\n}(Component);\n\nexport default StateManagedSelect;\nexport { NonceProvider };\n","/* globals _, wp, React */\n\nimport Select from \"react-select\";\nimport { components } from \"react-select\";\n\nconst KirkiSelectMenu = (props) => {\n const { selectProps } = props;\n const optionSelectedLength = props.getValue().length || 0;\n\n return (\n \n {optionSelectedLength < selectProps.maxSelectionNumber ? (\n props.children\n ) : (\n \n {selectProps.messages.maxLimitReached}\n
\n )}\n \n );\n};\n\nconst KirkiSelectForm = (props) => {\n /**\n * Pass-on the value to the customizer object to save.\n *\n * @param {Object} val - The selected option.\n */\n const handleChangeComplete = (val, type) => {\n let newValue;\n\n if (\"clear\" === type) {\n newValue = \"\";\n } else {\n if (Array.isArray(val)) {\n newValue = val.map((item) => item.value);\n } else {\n newValue = val.value;\n }\n }\n\n wp.customize(props.customizerSetting.id).set(newValue);\n };\n\n /**\n * Change the color-scheme using WordPress colors.\n *\n * @param {Object} theme\n */\n const theme = (theme) => ({\n ...theme,\n colors: {\n ...theme.colors,\n primary: \"#0073aa\",\n primary75: \"#33b3db\",\n primary50: \"#99d9ed\",\n primary24: \"#e5f5fa\",\n },\n });\n\n const customStyles = {\n control: (base, state) => ({\n ...base,\n minHeight: \"30px\",\n }),\n valueContainer: (base) => ({\n ...base,\n padding: \"0 6px\",\n }),\n input: (base) => ({\n ...base,\n margin: \"0px\",\n }),\n };\n\n /**\n * Allow rendering HTML in select labels.\n *\n * @param {Object} props - Object { label: foo, value: bar }.\n */\n const getLabel = (props) => {\n return
;\n };\n\n const inputId = props.inputId\n ? props.inputId\n : \"kirki-react-select-input--\" + props.customizerSetting.id;\n const label = props.label ? (\n \n ) : (\n \"\"\n );\n const description = props.description ? (\n \n ) : (\n \"\"\n );\n\n return (\n \n {label}\n {description}\n
\n
null, Menu: KirkiSelectMenu }}\n theme={theme}\n styles={customStyles}\n />\n \n );\n};\n\nexport default KirkiSelectForm;\n","/* global wp, jQuery, React, ReactDOM, _ */\nimport KirkiSelectForm from \"./KirkiSelectForm\";\n\n/**\n * KirkiSelectControl.\n *\n * @class\n * @augments wp.customize.Control\n * @augments wp.customize.Class\n */\nconst KirkiSelectControl = wp.customize.Control.extend({\n /**\n * Initialize.\n *\n * @param {string} id - Control ID.\n * @param {object} params - Control params.\n */\n initialize: function (id, params) {\n const control = this;\n\n // Bind functions to this control context for passing as React props.\n control.setNotificationContainer =\n control.setNotificationContainer.bind(control);\n\n wp.customize.Control.prototype.initialize.call(control, id, params);\n\n // The following should be eliminated with .\n function onRemoved(removedControl) {\n if (control === removedControl) {\n control.destroy();\n control.container.remove();\n wp.customize.control.unbind(\"removed\", onRemoved);\n }\n }\n wp.customize.control.bind(\"removed\", onRemoved);\n },\n\n /**\n * Set notification container and render.\n *\n * This is called when the React component is mounted.\n *\n * @param {Element} element - Notification container.\n * @returns {void}\n */\n setNotificationContainer: function setNotificationContainer(element) {\n const control = this;\n control.notifications.container = jQuery(element);\n control.notifications.render();\n },\n\n /**\n * Render the control into the DOM.\n *\n * This is called from the Control#embed() method in the parent class.\n *\n * @returns {void}\n */\n renderContent: function renderContent() {\n const control = this;\n let value = control.setting.get();\n\n if (Array.isArray(value)) {\n let formattedValue = [];\n\n for (const key in control.params.choices) {\n if (control.params.choices.hasOwnProperty(key)) {\n if (value.includes(key)) {\n // formattedValue.push();\n }\n }\n }\n\n // value = control.params.choices;\n }\n\n const form = (\n \n );\n ReactDOM.render(form, control.container[0]);\n },\n\n /**\n * After control has been first rendered, start re-rendering when setting changes.\n *\n * React is able to be used here instead of the wp.customize.Element abstraction.\n *\n * @returns {void}\n */\n ready: function ready() {\n const control = this;\n\n // Re-render control when setting changes.\n control.setting.bind(() => {\n control.renderContent();\n });\n },\n\n isMulti: function () {\n return this.params.isMulti;\n },\n\n /**\n * Handle removal/de-registration of the control.\n *\n * This is essentially the inverse of the Control#embed() method.\n *\n * @link https://core.trac.wordpress.org/ticket/31334\n * @returns {void}\n */\n destroy: function destroy() {\n const control = this;\n\n // Garbage collection: undo mounting that was done in the embed/renderContent method.\n ReactDOM.unmountComponentAtNode(control.container[0]);\n\n // Call destroy method in parent if it exists (as of #31334).\n if (wp.customize.Control.prototype.destroy) {\n wp.customize.Control.prototype.destroy.call(control);\n }\n },\n\n isOptionDisabled: function (option) {\n const control = this;\n\n if (!control) return false;\n if (!control.disabledSelectOptions) return false;\n if (control.disabledSelectOptions.indexOf(option)) return true;\n\n return false;\n },\n\n doSelectAction: function (action, arg) {\n const control = this;\n let i;\n\n switch (action) {\n case \"disableOption\":\n control.disabledSelectOptions =\n \"undefined\" === typeof control.disabledSelectOptions\n ? []\n : control.disabledSelectOptions;\n control.disabledSelectOptions.push(control.getOptionProps(arg));\n break;\n\n case \"enableOption\":\n if (control.disabledSelectOptions) {\n for (i = 0; i < control.disabledSelectOptions.length; i++) {\n if (control.disabledSelectOptions[i].value === arg) {\n control.disabledSelectOptions.splice(i, 1);\n }\n }\n }\n break;\n\n case \"selectOption\":\n control.value = arg;\n break;\n }\n\n control.renderContent();\n },\n\n formatOptions: function () {\n var self = this;\n this.formattedOptions = [];\n\n if (Array.isArray(this.params.choices)) {\n this.formattedOptions = this.params.choices;\n return;\n }\n\n _.each(self.params.choices, function (label, value) {\n var optGroup;\n\n if (\"object\" === typeof label) {\n optGroup = {\n label: label[0],\n options: [],\n };\n\n _.each(label[1], function (optionVal, optionKey) {\n optGroup.options.push({\n label: optionVal,\n value: optionKey,\n });\n });\n\n self.formattedOptions.push(optGroup);\n } else if (\"string\" === typeof label) {\n self.formattedOptions.push({\n label: label,\n value: value,\n });\n }\n });\n },\n\n getFormattedOptions: function () {\n if (!this.formattedOptions || !this.formattedOptions.length) {\n this.formatOptions();\n }\n return this.formattedOptions;\n },\n\n getOptionProps: function (value) {\n const control = this;\n\n var options = this.getFormattedOptions(),\n i,\n l;\n\n if (control.isMulti()) {\n let values = [];\n\n for (i = 0; i < options.length; i++) {\n if (Array.isArray(value)) {\n const valueArray = value;\n\n valueArray.forEach(function (val) {\n if (options[i].value === val) {\n values.push(options[i]);\n return;\n }\n\n if (options[i].options) {\n for (l = 0; l < options[i].options.length; l++) {\n if (options[i].options[l].value === val) {\n values.push(options[i].options[l]);\n }\n }\n }\n });\n } else {\n if (options[i].value === value) {\n values.push(options[i]);\n }\n\n if (options[i].options) {\n for (l = 0; l < options[i].options.length; l++) {\n if (options[i].options[l].value === value) {\n values.push(options[i].options[l]);\n }\n }\n }\n }\n }\n\n return values;\n } else {\n for (i = 0; i < options.length; i++) {\n if (options[i].value === value) {\n return options[i];\n }\n\n if (options[i].options) {\n for (l = 0; l < options[i].options.length; l++) {\n if (options[i].options[l].value === value) {\n return options[i].options[l];\n }\n }\n }\n }\n }\n },\n});\n\nexport default KirkiSelectControl;\n","/* global wp */\n\nimport \"./control.scss\";\n\nimport KirkiSelectControl from './KirkiSelectControl';\n\n// Register control type with Customizer.\nwp.customize.controlConstructor['kirki-react-select'] = KirkiSelectControl;\n"],"names":["reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","type","KNOWN_STATICS","name","length","prototype","caller","callee","arguments","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","component","isMemo","ForwardRef","render","Memo","defineProperty","Object","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","module","exports","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","concat","targetStatics","sourceStatics","i","key","descriptor","e","b","Symbol","for","c","d","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","$$typeof","A","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","assign","target","source","hasOwnProperty","call","apply","this","React","StyleSheet","options","_this","_insertTag","tag","before","tags","insertionPoint","nextSibling","prepend","container","firstChild","insertBefore","push","isSpeedy","speedy","ctr","nonce","_proto","hydrate","nodes","forEach","insert","rule","document","createElement","setAttribute","appendChild","createTextNode","createStyleElement","sheet","styleSheets","ownerNode","sheetForTag","insertRule","cssRules","flush","parentNode","removeChild","abs","Math","String","fromCharCode","trim","value","replace","pattern","replacement","indexof","search","indexOf","index","charCodeAt","begin","end","slice","array","line","column","position","character","characters","node","root","parent","props","children","return","copy","prev","next","peek","caret","token","alloc","dealloc","delimit","delimiter","whitespace","escaping","count","commenter","identifier","MS","MOZ","WEBKIT","COMMENT","DECLARATION","KEYFRAMES","serialize","callback","output","stringify","element","join","prefix","hash","compile","parse","rules","rulesets","pseudo","points","declarations","offset","atrule","property","previous","variable","scanning","ampersand","reference","comment","declaration","ruleset","post","size","j","identifierWithPointTracking","fixedElements","WeakMap","compat","isImplicitRule","get","set","parsed","toRules","getRules","parentRules","removeLabel","defaultStylisPlugins","map","exec","match","ssrStyles","querySelectorAll","Array","getAttribute","head","_insert","stylisPlugins","inserted","nodesToHydrate","attrib","split","currentSheet","collection","finalizingPlugins","serializer","selector","serialized","shouldCache","styles","cache","registered","getRegisteredStyles","registeredStyles","classNames","rawClassName","className","isStringTag","current","str","len","toString","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","fontWeight","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","WebkitLineClamp","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","hyphenateRegex","animationRegex","isCustomProperty","isProcessableValue","processStyleName","fn","create","arg","styleName","toLowerCase","processStyleValue","p1","p2","cursor","handleInterpolation","mergedProps","interpolation","__emotion_styles","anim","obj","string","isArray","_key","interpolated","_i","createStringFromObject","previousCursor","result","cached","labelPattern","args","stringMode","strings","raw","lastIndex","identifierName","EmotionCacheContext","createContext","HTMLElement","Provider","func","forwardRef","ref","useContext","typePropName","createEmotionProps","newProps","Noop","Emotion","cssProp","css","ele","possiblyStyleElement","jsx","argsLength","createElementArgArray","_len","classnames","cls","toAdd","merge","ClassNames","content","cx","_len2","_key2","theme","_objectWithoutProperties","excluded","sourceKeys","sourceSymbolKeys","propertyIsEnumerable","_typeof","iterator","constructor","_classCallCheck","instance","Constructor","TypeError","_defineProperties","enumerable","configurable","writable","_createClass","protoProps","staticProps","_setPrototypeOf","o","setPrototypeOf","__proto__","_inherits","subClass","superClass","_defineProperty","ReactDOM","ownKeys","object","enumerableOnly","symbols","filter","sym","getOwnPropertyDescriptors","defineProperties","_getPrototypeOf","_possibleConstructorReturn","self","ReferenceError","_assertThisInitialized","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","_isNativeReflectConstruct","Super","NewTarget","_excluded$3","noop","applyPrefixToName","state","arr","cleanValue","cleanCommonProps","clearValue","getStyles","getValue","hasValue","isMulti","isRtl","selectOption","selectProps","setValue","isDocumentElement","el","documentElement","body","window","getScrollTop","pageYOffset","scrollTop","scrollTo","top","easeOutCubic","animatedScrollTo","to","duration","start","change","increment","currentTime","animateScroll","val","requestAnimationFrame","isTouchCapable","createEvent","passiveOptionAccessed","passive","addEventListener","removeEventListener","supportsPassiveEvents","notNullish","item","valueTernary","multiValue","singleValue","getMenuPlacement","_ref","maxHeight","menuEl","minHeight","placement","shouldScroll","isFixedPosition","spacing","scrollParent","style","getComputedStyle","excludeStaticParent","overflowRx","parentElement","test","overflow","overflowY","overflowX","getScrollParent","defaultState","offsetParent","scrollHeight","getBoundingClientRect","height","_menuEl$getBoundingCl","menuBottom","bottom","menuHeight","menuTop","containerTop","viewHeight","innerHeight","marginBottom","parseInt","marginTop","viewSpaceAbove","viewSpaceBelow","scrollSpaceAbove","scrollSpaceBelow","scrollDown","scrollUp","scrollDuration","_constrainedHeight","spaceAbove","min","controlHeight","_constrainedHeight2","Error","coercePlacement","PortalPlacementContext","getPortalPlacement","MenuPlacer","_Component","_super","maxMenuHeight","context","getPlacement","_this$props","minMenuHeight","menuPlacement","menuPosition","menuShouldScrollIntoView","setState","getUpdatedProps","placerProps","Component","noticeCSS","_ref5","_ref5$theme","baseUnit","color","colors","neutral40","padding","textAlign","noOptionsMessageCSS","loadingMessageCSS","NoOptionsMessage","innerProps","LoadingMessage","_templateObject","MenuPortal","_Component2","_super2","_this2","_ref7","_this$props2","appendTo","controlElement","isFixed","rect","left","right","width","getBoundingClientObj","scrollDistance","menuWrapper","createPortal","_excluded$2","_ref2","Svg","viewBox","focusable","CrossIcon","DownChevron","baseCSS","_ref3","isFocused","_ref3$theme","label","neutral60","neutral20","display","transition","neutral80","dropdownIndicatorCSS","clearIndicatorCSS","loadingDotAnimations","insertable","keyframes","freeze","LoadingDot","_ref6","delay","animation","backgroundColor","borderRadius","marginLeft","verticalAlign","LoadingIndicator","indicator","_excluded$1","_excluded","spacingStyle","gridArea","font","minWidth","border","margin","outline","containerStyle","gridTemplateColumns","visibility","whiteSpace","inputStyle","isHidden","background","MultiValueGeneric","_ref4","components","ClearIndicator","Control","isDisabled","innerRef","menuIsOpen","control","DropdownIndicator","Group","Heading","headingProps","group","GroupHeading","_cleanCommonProps","data","IndicatorsContainer","indicators","IndicatorSeparator","Input","inputClassName","input","disabled","Menu","menu","MenuList","MultiValue","removeProps","Container","Label","Remove","emotionCx","MultiValueContainer","MultiValueLabel","MultiValueRemove","role","Option","isSelected","option","Placeholder","placeholder","SelectContainer","SingleValue","ValueContainer","_arrayLikeToArray","arr2","_unsupportedIterableToArray","minLen","from","_slicedToArray","_s","_e","_arr","_n","_d","done","err","_toConsumableArray","iter","safeIsNaN","Number","isNaN","areInputsEqual","newInputs","lastInputs","first","second","A11yText","defaultAriaLiveMessages","guidance","isSearchable","tabSelectsValue","onChange","action","_props$label","labels","onFocus","focused","_props$label2","selectValue","getArrayIndex","status","onFilter","inputValue","resultsMessage","LiveRegion","ariaSelection","focusedOption","focusedValue","focusableOptions","id","ariaLiveMessages","getOptionLabel","isOptionDisabled","screenReaderStatus","ariaLabel","ariaLive","messages","useMemo","ariaSelected","message","selectedOptions","removedValue","removedValues","selected","multiSelected","onChangeProps","ariaFocused","focusMsg","includes","onFocusProps","ariaResults","resultsMsg","ariaGuidance","guidanceMsg","ariaContext","ScreenReaderText","isInitialFocus","diacritics","base","letters","anyDiacritic","RegExp","diacriticToBase","diacritic","stripDiacritics","memoizedStripDiacriticsForInput","resultFn","isEqual","lastThis","lastResult","lastArgs","calledOnce","newArgs","trimString","defaultStringify","DummyInput","caretColor","fontSize","transform","STYLE_KEYS","LOCK_STYLES","boxSizing","preventTouchMove","preventDefault","allowTouchMove","stopPropagation","preventInertiaScroll","totalScroll","currentScroll","offsetHeight","isTouchDevice","navigator","maxTouchPoints","canUseDOM","activeScrollLocks","listenerOptions","capture","blurSelectInput","activeElement","blur","ScrollManager","lockEnabled","_ref$captureEnabled","captureEnabled","setScrollCaptureTarget","isEnabled","onBottomArrive","onBottomLeave","onTopArrive","onTopLeave","isBottom","useRef","isTop","touchStart","scrollTarget","handleEventDelta","useCallback","event","delta","_scrollTarget$current","clientHeight","isDeltaPositive","availableScroll","shouldCancelScroll","cancelScroll","onWheel","deltaY","onTouchStart","changedTouches","clientY","onTouchMove","startListening","notPassive","stopListening","useEffect","useScrollCapture","setScrollLockTarget","_ref$accountForScroll","accountForScrollbars","originalStyles","addScrollLock","touchScrollTarget","targetStyle","currentPadding","paddingRight","clientWidth","adjustedPadding","innerWidth","removeScrollLock","max","useScrollLock","onClick","defaultStyles","clearIndicator","direction","pointerEvents","_ref$theme","alignItems","neutral5","neutral0","borderColor","neutral10","primary","borderStyle","borderWidth","boxShadow","flexWrap","justifyContent","neutral30","dropdownIndicator","paddingBottom","paddingTop","groupHeading","paddingLeft","textTransform","indicatorsContainer","alignSelf","indicatorSeparator","_ref4$theme","loadingIndicator","marginRight","loadingMessage","_ref2$theme","alignToControl","menuGutter","menuList","WebkitOverflowScrolling","menuPortal","multiValueLabel","cropWithEllipsis","textOverflow","multiValueRemove","dangerLight","danger","noOptionsMessage","primary25","userSelect","WebkitTapHighlightColor","primary50","neutral50","maxWidth","valueContainer","controlShouldRenderValue","defaultTheme","primary75","neutral70","neutral90","backspaceRemovesValue","blurInputOnSelect","captureMenuScroll","closeMenuOnSelect","closeMenuOnScroll","escapeClearsValue","filterOption","rawInput","__isNew__","_ignoreCase$ignoreAcc","ignoreCase","ignoreAccents","matchFrom","config","candidate","substr","formatGroupLabel","getOptionValue","isLoading","menuShouldBlockScroll","userAgent","isMobileDevice","openMenuOnFocus","openMenuOnClick","pageSize","tabIndex","toCategorizedOption","_isOptionDisabled","_isOptionSelected","buildCategorizedOptions","groupOrOption","groupOrOptionIndex","categorizedOptions","optionIndex","categorizedOption","isFocusable","buildFocusableOptionsFromCategorizedOptions","reduce","optionsAccumulator","_props$inputValue","shouldHideSelectedOptions","_filterOption","isOptionSelected","some","hideSelectedOptions","instanceId","Select","_props","inputIsHidden","clearFocusValueOnUpdate","prevWasFocused","inputIsHiddenAfterUpdate","prevProps","blockOptionHover","isComposing","commonProps","initialTouchX","initialTouchY","instancePrefix","openAfterFocus","scrollToFocusedOptionOnUpdate","userIsDragging","controlRef","getControlRef","focusedOptionRef","getFocusedOptionRef","menuListRef","getMenuListRef","inputRef","getInputRef","focus","focusInput","blurInput","newValue","actionMeta","ariaOnChange","onInputChange","prevInputValue","onMenuClose","_this$props3","deselected","removeValue","newValueArray","popValue","lastSelectedValue","classNamePrefix","custom","getElementId","getComponents","getCategorizedOptions","buildFocusableOptions","getFocusableOptions","onMenuMouseDown","button","onMenuMouseMove","onControlMouseDown","tagName","openMenu","onDropdownIndicatorMouseDown","_this$props4","onClearIndicatorMouseDown","setTimeout","onScroll","onCompositionStart","onCompositionEnd","touches","touch","clientX","deltaX","onTouchEnd","contains","onControlTouchEnd","onClearIndicatorTouchEnd","onDropdownIndicatorTouchEnd","handleInputChange","currentTarget","onMenuOpen","onInputFocus","onInputBlur","onBlur","onOptionHover","onKeyDown","_this$props5","isClearable","_this$state","defaultPrevented","focusValue","shiftKey","keyCode","focusOption","startListeningComposition","startListeningToTouch","autoFocus","focusedEl","menuRect","focusedRect","overScroll","_this$props6","offsetTop","stopListeningComposition","stopListeningToTouch","_this$state2","openAtIndex","selectedIndex","_this$state3","focusedIndex","nextFocus","getTheme","_this$props7","formatOptionLabel","_inputValue","_selectValue","_this$props8","inputId","form","_this$state4","ariaAttributes","autoCapitalize","autoComplete","autoCorrect","spellCheck","inputMode","_this3","_this$getComponents2","_this$props9","_this$state5","opt","isOptionFocused","onMouseDown","_this$props10","_this$props11","_this$getComponents5","_this4","_this$getComponents7","_this$props12","menuPortalTarget","onMenuScrollToTop","onMenuScrollToBottom","menuUI","onHover","onSelect","optionId","onMouseMove","onMouseOver","hasOptions","_data","groupIndex","groupId","headingId","_message","menuPlacementProps","menuElement","_ref4$placerProps","scrollTargetRef","_this5","_this$props13","_value","_this$state6","_this$getComponents8","_this$props14","getCommonProps","renderLiveRegion","renderPlaceholderOrValue","renderInput","renderClearIndicator","renderLoadingIndicator","renderIndicatorSeparator","renderDropdownIndicator","renderMenu","renderFormField","newMenuOptionsState","nextSelectValue","lastFocusedIndex","getNextFocusedValue","lastFocusedOption","getNextFocusedOption","newInputIsHiddenState","newAriaSelection","hasKeptFocus","StateManagedSelect","baseSelectProps","_ref$defaultInputValu","defaultInputValue","_ref$defaultMenuIsOpe","defaultMenuIsOpen","_ref$defaultValue","defaultValue","propsInputValue","propsMenuIsOpen","propsOnChange","propsOnInputChange","propsOnMenuClose","propsOnMenuOpen","propsValue","restSelectProps","_useState2","useState","stateInputValue","setStateInputValue","_useState4","stateMenuIsOpen","setStateMenuIsOpen","_useState6","stateValue","setStateValue","useStateManager","KirkiSelectMenu","optionSelectedLength","maxSelectionNumber","maxLimitReached","customizerSetting","dangerouslySetInnerHTML","__html","htmlFor","description","setNotificationContainer","getFormattedOptions","wp","customize","getOptionProps","primary24","KirkiSelectControl","extend","initialize","params","bind","onRemoved","removedControl","destroy","remove","unbind","notifications","jQuery","renderContent","setting","choices","ready","unmountComponentAtNode","disabledSelectOptions","doSelectAction","splice","formatOptions","formattedOptions","_","each","optGroup","optionVal","optionKey","values","controlConstructor"],"sourceRoot":""}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-react-select/src/Control/ReactSelect.php b/functions/kirki/kirki-packages/control-react-select/src/Control/ReactSelect.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-react-select/src/Control/ReactSelect.php
rename to functions/kirki/kirki-packages/control-react-select/src/Control/ReactSelect.php
index 8f17b0d..fc5c91e 100644
--- a/functions/kirki/packages/kirki-framework/control-react-select/src/Control/ReactSelect.php
+++ b/functions/kirki/kirki-packages/control-react-select/src/Control/ReactSelect.php
@@ -3,7 +3,7 @@
* Customizer Control: kirki-select.
*
* @package kirki-framework/control-select
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-react-select/src/Field/ReactSelect.php b/functions/kirki/kirki-packages/control-react-select/src/Field/ReactSelect.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-react-select/src/Field/ReactSelect.php
rename to functions/kirki/kirki-packages/control-react-select/src/Field/ReactSelect.php
index f4908b1..857fb50 100644
--- a/functions/kirki/packages/kirki-framework/control-react-select/src/Field/ReactSelect.php
+++ b/functions/kirki/kirki-packages/control-react-select/src/Field/ReactSelect.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-select
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/kirki-packages/control-react-select/src/KirkiSelectControl.js b/functions/kirki/kirki-packages/control-react-select/src/KirkiSelectControl.js
new file mode 100644
index 0000000..a81766b
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-select/src/KirkiSelectControl.js
@@ -0,0 +1,278 @@
+/* global wp, jQuery, React, ReactDOM, _ */
+import KirkiSelectForm from "./KirkiSelectForm";
+
+/**
+ * KirkiSelectControl.
+ *
+ * @class
+ * @augments wp.customize.Control
+ * @augments wp.customize.Class
+ */
+const KirkiSelectControl = wp.customize.Control.extend({
+ /**
+ * Initialize.
+ *
+ * @param {string} id - Control ID.
+ * @param {object} params - Control params.
+ */
+ initialize: function (id, params) {
+ const control = this;
+
+ // Bind functions to this control context for passing as React props.
+ control.setNotificationContainer =
+ control.setNotificationContainer.bind(control);
+
+ wp.customize.Control.prototype.initialize.call(control, id, params);
+
+ // The following should be eliminated with .
+ function onRemoved(removedControl) {
+ if (control === removedControl) {
+ control.destroy();
+ control.container.remove();
+ wp.customize.control.unbind("removed", onRemoved);
+ }
+ }
+ wp.customize.control.bind("removed", onRemoved);
+ },
+
+ /**
+ * Set notification container and render.
+ *
+ * This is called when the React component is mounted.
+ *
+ * @param {Element} element - Notification container.
+ * @returns {void}
+ */
+ setNotificationContainer: function setNotificationContainer(element) {
+ const control = this;
+ control.notifications.container = jQuery(element);
+ control.notifications.render();
+ },
+
+ /**
+ * Render the control into the DOM.
+ *
+ * This is called from the Control#embed() method in the parent class.
+ *
+ * @returns {void}
+ */
+ renderContent: function renderContent() {
+ const control = this;
+ let value = control.setting.get();
+
+ if (Array.isArray(value)) {
+ let formattedValue = [];
+
+ for (const key in control.params.choices) {
+ if (control.params.choices.hasOwnProperty(key)) {
+ if (value.includes(key)) {
+ // formattedValue.push();
+ }
+ }
+ }
+
+ // value = control.params.choices;
+ }
+
+ const form = (
+
+ );
+ ReactDOM.render(form, control.container[0]);
+ },
+
+ /**
+ * After control has been first rendered, start re-rendering when setting changes.
+ *
+ * React is able to be used here instead of the wp.customize.Element abstraction.
+ *
+ * @returns {void}
+ */
+ ready: function ready() {
+ const control = this;
+
+ // Re-render control when setting changes.
+ control.setting.bind(() => {
+ control.renderContent();
+ });
+ },
+
+ isMulti: function () {
+ return this.params.isMulti;
+ },
+
+ /**
+ * Handle removal/de-registration of the control.
+ *
+ * This is essentially the inverse of the Control#embed() method.
+ *
+ * @link https://core.trac.wordpress.org/ticket/31334
+ * @returns {void}
+ */
+ destroy: function destroy() {
+ const control = this;
+
+ // Garbage collection: undo mounting that was done in the embed/renderContent method.
+ ReactDOM.unmountComponentAtNode(control.container[0]);
+
+ // Call destroy method in parent if it exists (as of #31334).
+ if (wp.customize.Control.prototype.destroy) {
+ wp.customize.Control.prototype.destroy.call(control);
+ }
+ },
+
+ isOptionDisabled: function (option) {
+ const control = this;
+
+ if (!control) return false;
+ if (!control.disabledSelectOptions) return false;
+ if (control.disabledSelectOptions.indexOf(option)) return true;
+
+ return false;
+ },
+
+ doSelectAction: function (action, arg) {
+ const control = this;
+ let i;
+
+ switch (action) {
+ case "disableOption":
+ control.disabledSelectOptions =
+ "undefined" === typeof control.disabledSelectOptions
+ ? []
+ : control.disabledSelectOptions;
+ control.disabledSelectOptions.push(control.getOptionProps(arg));
+ break;
+
+ case "enableOption":
+ if (control.disabledSelectOptions) {
+ for (i = 0; i < control.disabledSelectOptions.length; i++) {
+ if (control.disabledSelectOptions[i].value === arg) {
+ control.disabledSelectOptions.splice(i, 1);
+ }
+ }
+ }
+ break;
+
+ case "selectOption":
+ control.value = arg;
+ break;
+ }
+
+ control.renderContent();
+ },
+
+ formatOptions: function () {
+ var self = this;
+ this.formattedOptions = [];
+
+ if (Array.isArray(this.params.choices)) {
+ this.formattedOptions = this.params.choices;
+ return;
+ }
+
+ _.each(self.params.choices, function (label, value) {
+ var optGroup;
+
+ if ("object" === typeof label) {
+ optGroup = {
+ label: label[0],
+ options: [],
+ };
+
+ _.each(label[1], function (optionVal, optionKey) {
+ optGroup.options.push({
+ label: optionVal,
+ value: optionKey,
+ });
+ });
+
+ self.formattedOptions.push(optGroup);
+ } else if ("string" === typeof label) {
+ self.formattedOptions.push({
+ label: label,
+ value: value,
+ });
+ }
+ });
+ },
+
+ getFormattedOptions: function () {
+ if (!this.formattedOptions || !this.formattedOptions.length) {
+ this.formatOptions();
+ }
+ return this.formattedOptions;
+ },
+
+ getOptionProps: function (value) {
+ const control = this;
+
+ var options = this.getFormattedOptions(),
+ i,
+ l;
+
+ if (control.isMulti()) {
+ let values = [];
+
+ for (i = 0; i < options.length; i++) {
+ if (Array.isArray(value)) {
+ const valueArray = value;
+
+ valueArray.forEach(function (val) {
+ if (options[i].value === val) {
+ values.push(options[i]);
+ return;
+ }
+
+ if (options[i].options) {
+ for (l = 0; l < options[i].options.length; l++) {
+ if (options[i].options[l].value === val) {
+ values.push(options[i].options[l]);
+ }
+ }
+ }
+ });
+ } else {
+ if (options[i].value === value) {
+ values.push(options[i]);
+ }
+
+ if (options[i].options) {
+ for (l = 0; l < options[i].options.length; l++) {
+ if (options[i].options[l].value === value) {
+ values.push(options[i].options[l]);
+ }
+ }
+ }
+ }
+ }
+
+ return values;
+ } else {
+ for (i = 0; i < options.length; i++) {
+ if (options[i].value === value) {
+ return options[i];
+ }
+
+ if (options[i].options) {
+ for (l = 0; l < options[i].options.length; l++) {
+ if (options[i].options[l].value === value) {
+ return options[i].options[l];
+ }
+ }
+ }
+ }
+ }
+ },
+});
+
+export default KirkiSelectControl;
diff --git a/functions/kirki/kirki-packages/control-react-select/src/KirkiSelectForm.js b/functions/kirki/kirki-packages/control-react-select/src/KirkiSelectForm.js
new file mode 100644
index 0000000..bb4c747
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-select/src/KirkiSelectForm.js
@@ -0,0 +1,134 @@
+/* globals _, wp, React */
+
+import Select from "react-select";
+import { components } from "react-select";
+
+const KirkiSelectMenu = (props) => {
+ const { selectProps } = props;
+ const optionSelectedLength = props.getValue().length || 0;
+
+ return (
+
+ {optionSelectedLength < selectProps.maxSelectionNumber ? (
+ props.children
+ ) : (
+
+ {selectProps.messages.maxLimitReached}
+
+ )}
+
+ );
+};
+
+const KirkiSelectForm = (props) => {
+ /**
+ * Pass-on the value to the customizer object to save.
+ *
+ * @param {Object} val - The selected option.
+ */
+ const handleChangeComplete = (val, type) => {
+ let newValue;
+
+ if ("clear" === type) {
+ newValue = "";
+ } else {
+ if (Array.isArray(val)) {
+ newValue = val.map((item) => item.value);
+ } else {
+ newValue = val.value;
+ }
+ }
+
+ wp.customize(props.customizerSetting.id).set(newValue);
+ };
+
+ /**
+ * Change the color-scheme using WordPress colors.
+ *
+ * @param {Object} theme
+ */
+ const theme = (theme) => ({
+ ...theme,
+ colors: {
+ ...theme.colors,
+ primary: "#0073aa",
+ primary75: "#33b3db",
+ primary50: "#99d9ed",
+ primary24: "#e5f5fa",
+ },
+ });
+
+ const customStyles = {
+ control: (base, state) => ({
+ ...base,
+ minHeight: "30px",
+ }),
+ valueContainer: (base) => ({
+ ...base,
+ padding: "0 6px",
+ }),
+ input: (base) => ({
+ ...base,
+ margin: "0px",
+ }),
+ };
+
+ /**
+ * Allow rendering HTML in select labels.
+ *
+ * @param {Object} props - Object { label: foo, value: bar }.
+ */
+ const getLabel = (props) => {
+ return
;
+ };
+
+ const inputId = props.inputId
+ ? props.inputId
+ : "kirki-react-select-input--" + props.customizerSetting.id;
+ const label = props.label ? (
+
+ ) : (
+ ""
+ );
+ const description = props.description ? (
+
+ ) : (
+ ""
+ );
+
+ return (
+
+ {label}
+ {description}
+
+
null, Menu: KirkiSelectMenu }}
+ theme={theme}
+ styles={customStyles}
+ />
+
+ );
+};
+
+export default KirkiSelectForm;
diff --git a/functions/kirki/kirki-packages/control-react-select/src/control.js b/functions/kirki/kirki-packages/control-react-select/src/control.js
new file mode 100644
index 0000000..e4c453c
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-select/src/control.js
@@ -0,0 +1,8 @@
+/* global wp */
+
+import "./control.scss";
+
+import KirkiSelectControl from './KirkiSelectControl';
+
+// Register control type with Customizer.
+wp.customize.controlConstructor['kirki-react-select'] = KirkiSelectControl;
diff --git a/functions/kirki/kirki-packages/control-react-select/src/control.scss b/functions/kirki/kirki-packages/control-react-select/src/control.scss
new file mode 100644
index 0000000..c9699d5
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-react-select/src/control.scss
@@ -0,0 +1,71 @@
+.customize-control-kirki-react-select {
+ input[autocomplete="off"] {
+ box-shadow: none;
+ }
+}
+
+.kirki-react-select__value-container {
+ > div:not(.kirki-react-select__single-value):not(.kirki-react-select__multi-value) {
+ padding-top: 0;
+ padding-bottom: 0;
+ }
+}
+
+.kirki-react-select__control {
+ padding-top: 2px;
+ padding-bottom: 2px;
+ min-height: 26px;
+}
+
+.kirki-react-select__value-container {
+ .kirki-react-select__input {
+ min-height: 24px;
+ height: 24px;
+
+ input {
+ min-height: 24px;
+ height: 24px;
+ }
+ }
+}
+
+.kirki-react-select__single-value {
+ display: flex;
+ align-items: center;
+ width: 100%;
+}
+
+.kirki-react-select__multi-value {
+ align-items: center;
+ position: relative;
+ height: 20px;
+
+ .kirki-react-select__input-container {
+ //
+ }
+}
+
+.kirki-react-select__input {
+ display: inline-flex !important;
+ align-items: center;
+ position: relative;
+ left: 2px;
+
+ input {
+ box-sizing: border-box !important;
+ height: 30px;
+ }
+}
+
+.kirki-react-select__indicators {
+ height: 24px !important;
+}
+
+.kirki-react-select__indicator {
+ align-items: center;
+ height: 24px;
+}
+
+.customize-control-kirki-react-select .kirki-react-select__menu {
+ z-index: 3;
+}
diff --git a/functions/kirki/packages/kirki-framework/control-upload/LICENSE b/functions/kirki/kirki-packages/control-repeater/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-upload/LICENSE
rename to functions/kirki/kirki-packages/control-repeater/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/dist/control.css b/functions/kirki/kirki-packages/control-repeater/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-repeater/dist/control.css
rename to functions/kirki/kirki-packages/control-repeater/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-repeater/dist/control.css.map b/functions/kirki/kirki-packages/control-repeater/dist/control.css.map
new file mode 100644
index 0000000..8a9cb0d
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-repeater/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAAA,4BACE,iBCCF,CDEA,2DAGE,eAAA,CAFA,wBAAA,CACA,gBAAA,CAEA,iBCCF,CDEA,qEACE,wBAAA,CACA,SCCF,CDEA,2EACE,wBCCF,CDEA,2FAIE,YCFF,CDKA,iEAEE,UAAA,CADA,kBCDF,CDYA,uMAKE,YCTF,CDYA,gHAME,4BCdF,CDiBA,8HASE,wBAAA,CAFA,8CAAA,CACA,sCCnBF,CDuBA,sFAIE,kBAAA,CACA,gBCvBF,CD0BA,gDACE,eCvBF,CD0BA,kDAEE,eAAA,CADA,iBCtBF,CD0BA,4CAKE,6BAAA,CAFA,UAAA,CAFA,kBAAA,CAGA,mBAAA,CAFA,UCpBF,CD+BA,gJACE,cAAA,CACA,kBCvBF,CD0BA,kEAGE,QAAA,CAFA,QAAA,CACA,SCtBF,CD0BA,0DACE,aCvBF,CD0BA,2DACE,gBCvBF,CD0BA,2DACE,gBAAA,CACA,gBCvBF,CD0BA,8DAEE,eAAA,CADA,UCtBF,CD0BA,iDASE,oBAAA,CARA,eAAA,CACA,+BAAA,CAGA,WAAA,CAEA,gBAAA,CADA,eAAA,CAEA,eAAA,CAJA,iBAAA,CADA,iBCjBF,CD0BA,uDACE,WCvBF,CD0BA,4DAKE,aAAA,CAJA,cAAA,CACA,iBAAA,CACA,UAAA,CACA,OCtBF,CD0BA,gDAIE,aAAA,CAHA,cAAA,CACA,eAAA,CAKA,WAAA,CAJA,gBAAA,CAGA,eAAA,CADA,SCrBF,CD0BA,iDACE,UCvBF,CD0BA,uDACE,SCvBF,CD0BA,+CACE,gBCvBF,CD0BA,sFAEE,SCvBF,CD0BA,wBAGE,eAAA,CADA,iBCtBF,CD0BA,4BACE,oBCvBF,CD0BA,uBAGE,eAAA,CADA,iBCtBF,CD0BA,6BAIE,kBAAA,CADA,yBAAA,CAFA,aAAA,CACA,gBCrBF,CD0BA,OAEE,iBAAA,CADA,WCtBF,CD0BA,iBACE,kBAAA,CACA,UCvBF","sources":["packages/kirki-framework/control-repeater/src/control.scss","%3Cinput%20css%209hCl6T%3E"],"sourcesContent":[".customize-control-repeater {\n position: relative;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row {\n border: 1px solid #e5e5e5;\n margin-top: 0.5rem;\n background: #eee;\n position: relative;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row.minimized {\n border: 1px solid #dfdfdf;\n padding: 0;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row.minimized:hover {\n border: 1px solid #e5e5e5;\n}\n\n.customize-control-repeater\n .repeater-fields\n .repeater-row.minimized\n .repeater-row-content {\n display: none;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row label {\n margin-bottom: 12px;\n clear: both;\n}\n\n.customize-control-repeater\n .repeater-fields\n .repeater-row\n .repeater-field.repeater-field- {\n display: none;\n}\n\n.customize-control-repeater\n .repeater-fields\n .repeater-row\n .repeater-field.repeater-field-radio-image\n input {\n display: none;\n}\n\n.customize-control-repeater\n .repeater-fields\n .repeater-row\n .repeater-field.repeater-field-radio-image\n input\n img {\n border: 1px solid transparent;\n}\n\n.customize-control-repeater\n .repeater-fields\n .repeater-row\n .repeater-field.repeater-field-radio-image\n input:checked\n + label\n img {\n -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n border: 1px solid #3498db;\n}\n\n.customize-control-repeater\n .repeater-fields\n .repeater-row\n .repeater-field:last-child {\n border-bottom: none;\n padding-bottom: 0;\n}\n\n.customize-control-repeater button.repeater-add {\n margin-top: 1rem;\n}\n\n.customize-control-repeater .repeater-row-content {\n padding: 10px 15px;\n background: #fff;\n}\n\n.customize-control-repeater .repeater-field {\n margin-bottom: 12px;\n width: 100%;\n clear: both;\n padding-bottom: 12px;\n border-bottom: 1px dotted #ccc;\n}\n\n.customize-control-repeater .repeater-field .customize-control-title {\n font-size: 13px;\n line-height: initial;\n}\n\n.customize-control-repeater .repeater-field .customize-control-description {\n font-size: 13px;\n line-height: initial;\n}\n\n.customize-control-repeater .repeater-field.repeater-field-hidden {\n margin: 0;\n padding: 0;\n border: 0;\n}\n\n.customize-control-repeater .repeater-field-select select {\n margin-left: 0;\n}\n\n.customize-control-repeater .repeater-field-checkbox label {\n line-height: 28px;\n}\n\n.customize-control-repeater .repeater-field-checkbox input {\n line-height: 28px;\n margin-right: 5px;\n}\n\n.customize-control-repeater .repeater-field-textarea textarea {\n width: 100%;\n resize: vertical;\n}\n\n.customize-control-repeater .repeater-row-header {\n background: white;\n border-bottom: 1px solid #dfdfdf;\n position: relative;\n padding: 10px 15px;\n height: auto;\n min-height: 20px;\n line-height: 30px;\n overflow: hidden;\n word-wrap: break-word;\n}\n\n.customize-control-repeater .repeater-row-header:hover {\n cursor: move;\n}\n\n.customize-control-repeater .repeater-row-header .dashicons {\n font-size: 18px;\n position: absolute;\n right: 12px;\n top: 2px;\n color: #a0a5aa;\n}\n\n.customize-control-repeater .repeater-row-label {\n font-size: 13px;\n font-weight: 600;\n line-height: 20px;\n display: block;\n width: 90%;\n overflow: hidden;\n height: 18px;\n}\n\n.customize-control-repeater .repeater-row-remove {\n color: #a00;\n}\n\n.customize-control-repeater .repeater-row-remove:hover {\n color: #f00;\n}\n\n.customize-control-repeater .repeater-minimize {\n line-height: 36px;\n}\n\n.customize-control-repeater .remove-button,\n.customize-control-repeater .upload-button {\n width: 48%;\n}\n\n.kirki-image-attachment {\n margin: 0;\n text-align: center;\n margin-bottom: 10px;\n}\n\n.kirki-image-attachment img {\n display: inline-block;\n}\n\n.kirki-file-attachment {\n margin: 0;\n text-align: center;\n margin-bottom: 10px;\n}\n\n.kirki-file-attachment .file {\n display: block;\n padding: 10px 5px;\n border: 1px dotted #c3c3c3;\n background: #f9f9f9;\n}\n\n.limit {\n padding: 3px;\n border-radius: 3px;\n}\n\n.limit.highlight {\n background: #d32f2f;\n color: #fff;\n}\n",".customize-control-repeater {\n position: relative;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row {\n border: 1px solid #e5e5e5;\n margin-top: 0.5rem;\n background: #eee;\n position: relative;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row.minimized {\n border: 1px solid #dfdfdf;\n padding: 0;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row.minimized:hover {\n border: 1px solid #e5e5e5;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row.minimized .repeater-row-content {\n display: none;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row label {\n margin-bottom: 12px;\n clear: both;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field- {\n display: none;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input {\n display: none;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input img {\n border: 1px solid transparent;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row .repeater-field.repeater-field-radio-image input:checked + label img {\n -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);\n border: 1px solid #3498db;\n}\n\n.customize-control-repeater .repeater-fields .repeater-row .repeater-field:last-child {\n border-bottom: none;\n padding-bottom: 0;\n}\n\n.customize-control-repeater button.repeater-add {\n margin-top: 1rem;\n}\n\n.customize-control-repeater .repeater-row-content {\n padding: 10px 15px;\n background: #fff;\n}\n\n.customize-control-repeater .repeater-field {\n margin-bottom: 12px;\n width: 100%;\n clear: both;\n padding-bottom: 12px;\n border-bottom: 1px dotted #ccc;\n}\n\n.customize-control-repeater .repeater-field .customize-control-title {\n font-size: 13px;\n line-height: initial;\n}\n\n.customize-control-repeater .repeater-field .customize-control-description {\n font-size: 13px;\n line-height: initial;\n}\n\n.customize-control-repeater .repeater-field.repeater-field-hidden {\n margin: 0;\n padding: 0;\n border: 0;\n}\n\n.customize-control-repeater .repeater-field-select select {\n margin-left: 0;\n}\n\n.customize-control-repeater .repeater-field-checkbox label {\n line-height: 28px;\n}\n\n.customize-control-repeater .repeater-field-checkbox input {\n line-height: 28px;\n margin-right: 5px;\n}\n\n.customize-control-repeater .repeater-field-textarea textarea {\n width: 100%;\n resize: vertical;\n}\n\n.customize-control-repeater .repeater-row-header {\n background: white;\n border-bottom: 1px solid #dfdfdf;\n position: relative;\n padding: 10px 15px;\n height: auto;\n min-height: 20px;\n line-height: 30px;\n overflow: hidden;\n word-wrap: break-word;\n}\n\n.customize-control-repeater .repeater-row-header:hover {\n cursor: move;\n}\n\n.customize-control-repeater .repeater-row-header .dashicons {\n font-size: 18px;\n position: absolute;\n right: 12px;\n top: 2px;\n color: #a0a5aa;\n}\n\n.customize-control-repeater .repeater-row-label {\n font-size: 13px;\n font-weight: 600;\n line-height: 20px;\n display: block;\n width: 90%;\n overflow: hidden;\n height: 18px;\n}\n\n.customize-control-repeater .repeater-row-remove {\n color: #a00;\n}\n\n.customize-control-repeater .repeater-row-remove:hover {\n color: #f00;\n}\n\n.customize-control-repeater .repeater-minimize {\n line-height: 36px;\n}\n\n.customize-control-repeater .remove-button,\n.customize-control-repeater .upload-button {\n width: 48%;\n}\n\n.kirki-image-attachment {\n margin: 0;\n text-align: center;\n margin-bottom: 10px;\n}\n\n.kirki-image-attachment img {\n display: inline-block;\n}\n\n.kirki-file-attachment {\n margin: 0;\n text-align: center;\n margin-bottom: 10px;\n}\n\n.kirki-file-attachment .file {\n display: block;\n padding: 10px 5px;\n border: 1px dotted #c3c3c3;\n background: #f9f9f9;\n}\n\n.limit {\n padding: 3px;\n border-radius: 3px;\n}\n\n.limit.highlight {\n background: #d32f2f;\n color: #fff;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/dist/control.js b/functions/kirki/kirki-packages/control-repeater/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-repeater/dist/control.js
rename to functions/kirki/kirki-packages/control-repeater/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-repeater/dist/control.js.map b/functions/kirki/kirki-packages/control-repeater/dist/control.js.map
new file mode 100644
index 0000000..1fdd863
--- /dev/null
+++ b/functions/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WAAY,SAAUZ,EAAWlC,GAC/B,IAEEiN,EAFE7N,EAAUE,KACZ4N,EAAWhL,EAAUhD,UAAUM,KAAK,0BAGlC,IAAM0N,EAASnJ,SAInBkJ,EAAYC,EAASlN,KAAK,SAC1BuF,SAAWzF,OAAOoN,GAAUlN,KAAK,aAEjCA,EAAOA,GAAQ,IACViN,GAAajN,EAAKiN,IAAc,GAErCnN,OAAOoN,GAAUnM,IAAIf,EAAKiN,IAAcnN,OAAOoN,GAAUnM,OAEzDzB,KAAKJ,UAAUO,GAAG,SAAU,0BAA0B,SAAU6E,GAC9D,IAAI6I,EAAkBrN,OAAOwE,EAAMvE,QAEjCd,EADMkO,EAAgB1I,QAAQ,iBACfzE,KAAK,OACpBkM,EAAkB9M,EAAQ0K,WAE5BoC,EAAgBjN,GAAUkO,EAAgBnN,KAAK,UAC7CF,OAAOR,MAAMyB,MACf3B,EAAQkD,SAAS4J","sources":["packages/kirki-framework/control-repeater/src/control.js"],"sourcesContent":["import \"./control.scss\";\n\n/* global kirkiControlLoader */\n/* eslint max-depth: 0 */\n/* eslint no-useless-escape: 0 */\nvar RepeaterRow = function (rowIndex, container, label, control) {\n var self = this;\n this.rowIndex = rowIndex;\n this.container = container;\n this.label = label;\n this.header = this.container.find(\".repeater-row-header\");\n\n this.header.on(\"click\", function () {\n self.toggleMinimize();\n });\n\n this.container.on(\"click\", \".repeater-row-remove\", function () {\n self.remove();\n });\n\n this.header.on(\"mousedown\", function () {\n self.container.trigger(\"row:start-dragging\");\n });\n\n this.container.on(\"keyup change\", \"input, select, textarea\", function (e) {\n self.container.trigger(\"row:update\", [\n self.rowIndex,\n jQuery(e.target).data(\"field\"),\n e.target,\n ]);\n });\n\n this.setRowIndex = function (rowNum) {\n this.rowIndex = rowNum;\n this.container.attr(\"data-row\", rowNum);\n this.container.data(\"row\", rowNum);\n this.updateLabel();\n };\n\n this.toggleMinimize = function () {\n // Store the previous state.\n this.container.toggleClass(\"minimized\");\n this.header\n .find(\".dashicons\")\n .toggleClass(\"dashicons-arrow-up\")\n .toggleClass(\"dashicons-arrow-down\");\n };\n\n this.remove = function () {\n this.container.slideUp(300, function () {\n jQuery(this).detach();\n });\n this.container.trigger(\"row:remove\", [this.rowIndex]);\n };\n\n this.updateLabel = function () {\n var rowLabelField, rowLabel, rowLabelSelector;\n\n if (\"field\" === this.label.type) {\n rowLabelField = this.container.find(\n '.repeater-field [data-field=\"' + this.label.field + '\"]'\n );\n if (_.isFunction(rowLabelField.val)) {\n rowLabel = rowLabelField.val();\n if (\"\" !== rowLabel) {\n if (!_.isUndefined(control.params.fields[this.label.field])) {\n if (!_.isUndefined(control.params.fields[this.label.field].type)) {\n if (\"select\" === control.params.fields[this.label.field].type) {\n if (\n !_.isUndefined(\n control.params.fields[this.label.field].choices\n ) &&\n !_.isUndefined(\n control.params.fields[this.label.field].choices[\n rowLabelField.val()\n ]\n )\n ) {\n rowLabel =\n control.params.fields[this.label.field].choices[\n rowLabelField.val()\n ];\n }\n } else if (\n \"radio\" === control.params.fields[this.label.field].type ||\n \"radio-image\" === control.params.fields[this.label.field].type\n ) {\n rowLabelSelector =\n control.selector +\n ' [data-row=\"' +\n this.rowIndex +\n '\"] .repeater-field [data-field=\"' +\n this.label.field +\n '\"]:checked';\n rowLabel = jQuery(rowLabelSelector).val();\n }\n }\n }\n this.header.find(\".repeater-row-label\").text(rowLabel);\n return;\n }\n }\n }\n this.header\n .find(\".repeater-row-label\")\n .text(this.label.value + \" \" + (this.rowIndex + 1));\n };\n this.updateLabel();\n};\n\nwp.customize.controlConstructor.repeater = wp.customize.Control.extend({\n // When we're finished loading continue processing\n ready: function () {\n var control = this;\n\n // Init the control.\n if (\n !_.isUndefined(window.kirkiControlLoader) &&\n _.isFunction(kirkiControlLoader)\n ) {\n kirkiControlLoader(control);\n } else {\n control.initKirkiControl();\n }\n },\n\n initKirkiControl: function (control) {\n var limit, theNewRow, settingValue;\n control = control || this;\n\n // The current value set in Control Class (set in Kirki_Customize_Repeater_Control::to_json() function)\n settingValue = control.params.value;\n\n // The hidden field that keeps the data saved (though we never update it)\n control.settingField = control.container\n .find(\"[data-customize-setting-link]\")\n .first();\n\n // Set the field value for the first time, we'll fill it up later\n control.setValue([], false);\n\n // The DIV that holds all the rows\n control.repeaterFieldsContainer = control.container\n .find(\".repeater-fields\")\n .first();\n\n // Set number of rows to 0\n control.currentIndex = 0;\n\n // Save the rows objects\n control.rows = [];\n\n // Default limit choice\n limit = false;\n if (!_.isUndefined(control.params.choices.limit)) {\n limit =\n 0 >= control.params.choices.limit\n ? false\n : parseInt(control.params.choices.limit, 10);\n }\n\n control.container.on(\"click\", \"button.repeater-add\", function (e) {\n e.preventDefault();\n if (!limit || control.currentIndex < limit) {\n theNewRow = control.addRow();\n theNewRow.toggleMinimize();\n control.initColorPicker();\n control.initSelect(theNewRow);\n } else {\n jQuery(control.selector + \" .limit\").addClass(\"highlight\");\n }\n });\n\n control.container.on(\"click\", \".repeater-row-remove\", function () {\n control.currentIndex--;\n if (!limit || control.currentIndex < limit) {\n jQuery(control.selector + \" .limit\").removeClass(\"highlight\");\n }\n });\n\n control.container.on(\n \"click keypress\",\n \".repeater-field-image .upload-button,.repeater-field-cropped_image .upload-button,.repeater-field-upload .upload-button\",\n function (e) {\n e.preventDefault();\n control.$thisButton = jQuery(this);\n control.openFrame(e);\n }\n );\n\n control.container.on(\n \"click keypress\",\n \".repeater-field-image .remove-button,.repeater-field-cropped_image .remove-button\",\n function (e) {\n e.preventDefault();\n control.$thisButton = jQuery(this);\n control.removeImage(e);\n }\n );\n\n control.container.on(\n \"click keypress\",\n \".repeater-field-upload .remove-button\",\n function (e) {\n e.preventDefault();\n control.$thisButton = jQuery(this);\n control.removeFile(e);\n }\n );\n\n /**\n * Function that loads the Mustache template\n */\n control.repeaterTemplate = _.memoize(function () {\n var compiled,\n /*\n * Underscore's default ERB-style templates are incompatible with PHP\n * when asp_tags is enabled, so WordPress uses Mustache-inspired templating syntax.\n *\n * @see trac ticket #22344.\n */\n options = {\n evaluate: /<#([\\s\\S]+?)#>/g,\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g,\n variable: \"data\",\n };\n\n return function (data) {\n compiled = _.template(\n control.container\n .find(\".customize-control-repeater-content\")\n .first()\n .html(),\n null,\n options\n );\n return compiled(data);\n };\n });\n\n // When we load the control, the fields have not been filled up\n // This is the first time that we create all the rows\n if (settingValue.length) {\n _.each(settingValue, function (subValue) {\n theNewRow = control.addRow(subValue);\n control.initColorPicker();\n control.initSelect(theNewRow, subValue);\n });\n }\n\n control.repeaterFieldsContainer.sortable({\n handle: \".repeater-row-header\",\n update: function () {\n control.sort();\n },\n });\n },\n\n /**\n * Open the media modal.\n *\n * @param {Object} event - The JS event.\n * @returns {void}\n */\n openFrame: function (event) {\n if (wp.customize.utils.isKeydownButNotEnterEvent(event)) {\n return;\n }\n\n if (\n this.$thisButton\n .closest(\".repeater-field\")\n .hasClass(\"repeater-field-cropped_image\")\n ) {\n this.initCropperFrame();\n } else {\n this.initFrame();\n }\n\n this.frame.open();\n },\n\n initFrame: function () {\n var libMediaType = this.getMimeType();\n\n this.frame = wp.media({\n states: [\n new wp.media.controller.Library({\n library: wp.media.query({ type: libMediaType }),\n multiple: false,\n date: false,\n }),\n ],\n });\n\n // When a file is selected, run a callback.\n this.frame.on(\"select\", this.onSelect, this);\n },\n\n /**\n * Create a media modal select frame, and store it so the instance can be reused when needed.\n * This is mostly a copy/paste of Core api.CroppedImageControl in /wp-admin/js/customize-control.js\n *\n * @returns {void}\n */\n initCropperFrame: function () {\n // We get the field id from which this was called\n var currentFieldId = this.$thisButton\n .siblings(\"input.hidden-field\")\n .attr(\"data-field\"),\n attrs = [\"width\", \"height\", \"flex_width\", \"flex_height\"], // A list of attributes to look for\n libMediaType = this.getMimeType();\n\n // Make sure we got it\n if (_.isString(currentFieldId) && \"\" !== currentFieldId) {\n // Make fields is defined and only do the hack for cropped_image\n if (\n _.isObject(this.params.fields[currentFieldId]) &&\n \"cropped_image\" === this.params.fields[currentFieldId].type\n ) {\n //Iterate over the list of attributes\n attrs.forEach(\n function (el) {\n // If the attribute exists in the field\n if (!_.isUndefined(this.params.fields[currentFieldId][el])) {\n // Set the attribute in the main object\n this.params[el] = this.params.fields[currentFieldId][el];\n }\n }.bind(this)\n );\n }\n }\n\n this.frame = wp.media({\n button: {\n text: \"Select and Crop\",\n close: false,\n },\n states: [\n new wp.media.controller.Library({\n library: wp.media.query({ type: libMediaType }),\n multiple: false,\n date: false,\n suggestedWidth: this.params.width,\n suggestedHeight: this.params.height,\n }),\n new wp.media.controller.CustomizeImageCropper({\n imgSelectOptions: this.calculateImageSelectOptions,\n control: this,\n }),\n ],\n });\n\n this.frame.on(\"select\", this.onSelectForCrop, this);\n this.frame.on(\"cropped\", this.onCropped, this);\n this.frame.on(\"skippedcrop\", this.onSkippedCrop, this);\n },\n\n onSelect: function () {\n var attachment = this.frame.state().get(\"selection\").first().toJSON();\n\n if (\n this.$thisButton\n .closest(\".repeater-field\")\n .hasClass(\"repeater-field-upload\")\n ) {\n this.setFileInRepeaterField(attachment);\n } else {\n this.setImageInRepeaterField(attachment);\n }\n },\n\n /**\n * After an image is selected in the media modal, switch to the cropper\n * state if the image isn't the right size.\n */\n\n onSelectForCrop: function () {\n var attachment = this.frame.state().get(\"selection\").first().toJSON();\n\n if (\n this.params.width === attachment.width &&\n this.params.height === attachment.height &&\n !this.params.flex_width &&\n !this.params.flex_height\n ) {\n this.setImageInRepeaterField(attachment);\n } else {\n this.frame.setState(\"cropper\");\n }\n },\n\n /**\n * After the image has been cropped, apply the cropped image data to the setting.\n *\n * @param {object} croppedImage Cropped attachment data.\n * @returns {void}\n */\n onCropped: function (croppedImage) {\n this.setImageInRepeaterField(croppedImage);\n },\n\n /**\n * Returns a set of options, computed from the attached image data and\n * control-specific data, to be fed to the imgAreaSelect plugin in\n * wp.media.view.Cropper.\n *\n * @param {wp.media.model.Attachment} attachment - The attachment from the WP API.\n * @param {wp.media.controller.Cropper} controller - Media controller.\n * @returns {Object} - Options.\n */\n calculateImageSelectOptions: function (attachment, controller) {\n var control = controller.get(\"control\"),\n flexWidth = !!parseInt(control.params.flex_width, 10),\n flexHeight = !!parseInt(control.params.flex_height, 10),\n realWidth = attachment.get(\"width\"),\n realHeight = attachment.get(\"height\"),\n xInit = parseInt(control.params.width, 10),\n yInit = parseInt(control.params.height, 10),\n ratio = xInit / yInit,\n xImg = realWidth,\n yImg = realHeight,\n x1,\n y1,\n imgSelectOptions;\n\n controller.set(\n \"canSkipCrop\",\n !control.mustBeCropped(\n flexWidth,\n flexHeight,\n xInit,\n yInit,\n realWidth,\n realHeight\n )\n );\n\n if (xImg / yImg > ratio) {\n yInit = yImg;\n xInit = yInit * ratio;\n } else {\n xInit = xImg;\n yInit = xInit / ratio;\n }\n\n x1 = (xImg - xInit) / 2;\n y1 = (yImg - yInit) / 2;\n\n imgSelectOptions = {\n handles: true,\n keys: true,\n instance: true,\n persistent: true,\n imageWidth: realWidth,\n imageHeight: realHeight,\n x1: x1,\n y1: y1,\n x2: xInit + x1,\n y2: yInit + y1,\n };\n\n if (false === flexHeight && false === flexWidth) {\n imgSelectOptions.aspectRatio = xInit + \":\" + yInit;\n }\n if (false === flexHeight) {\n imgSelectOptions.maxHeight = yInit;\n }\n if (false === flexWidth) {\n imgSelectOptions.maxWidth = xInit;\n }\n\n return imgSelectOptions;\n },\n\n /**\n * Return whether the image must be cropped, based on required dimensions.\n *\n * @param {bool} flexW - The flex-width.\n * @param {bool} flexH - The flex-height.\n * @param {int} dstW - Initial point distance in the X axis.\n * @param {int} dstH - Initial point distance in the Y axis.\n * @param {int} imgW - Width.\n * @param {int} imgH - Height.\n * @returns {bool} - Whether the image must be cropped or not based on required dimensions.\n */\n mustBeCropped: function (flexW, flexH, dstW, dstH, imgW, imgH) {\n return !(\n (true === flexW && true === flexH) ||\n (true === flexW && dstH === imgH) ||\n (true === flexH && dstW === imgW) ||\n (dstW === imgW && dstH === imgH) ||\n imgW <= dstW\n );\n },\n\n /**\n * If cropping was skipped, apply the image data directly to the setting.\n *\n * @returns {void}\n */\n onSkippedCrop: function () {\n var attachment = this.frame.state().get(\"selection\").first().toJSON();\n this.setImageInRepeaterField(attachment);\n },\n\n /**\n * Updates the setting and re-renders the control UI.\n *\n * @param {object} attachment - The attachment object.\n * @returns {void}\n */\n setImageInRepeaterField: function (attachment) {\n var $targetDiv = this.$thisButton.closest(\n \".repeater-field-image,.repeater-field-cropped_image\"\n );\n\n $targetDiv\n .find(\".kirki-image-attachment\")\n .html(' ')\n .hide()\n .slideDown(\"slow\");\n\n $targetDiv.find(\".hidden-field\").val(attachment.id);\n this.$thisButton.text(this.$thisButton.data(\"alt-label\"));\n $targetDiv.find(\".remove-button\").show();\n\n //This will activate the save button\n $targetDiv.find(\"input, textarea, select\").trigger(\"change\");\n this.frame.close();\n },\n\n /**\n * Updates the setting and re-renders the control UI.\n *\n * @param {object} attachment - The attachment object.\n * @returns {void}\n */\n setFileInRepeaterField: function (attachment) {\n var $targetDiv = this.$thisButton.closest(\".repeater-field-upload\");\n\n $targetDiv\n .find(\".kirki-file-attachment\")\n .html(\n ' ' +\n attachment.filename +\n \" \"\n )\n .hide()\n .slideDown(\"slow\");\n\n $targetDiv.find(\".hidden-field\").val(attachment.id);\n this.$thisButton.text(this.$thisButton.data(\"alt-label\"));\n $targetDiv.find(\".upload-button\").show();\n $targetDiv.find(\".remove-button\").show();\n\n //This will activate the save button\n $targetDiv.find(\"input, textarea, select\").trigger(\"change\");\n this.frame.close();\n },\n\n getMimeType: function () {\n // We get the field id from which this was called\n var currentFieldId = this.$thisButton\n .siblings(\"input.hidden-field\")\n .attr(\"data-field\");\n\n // Make sure we got it\n if (_.isString(currentFieldId) && \"\" !== currentFieldId) {\n // Make fields is defined and only do the hack for cropped_image\n if (\n _.isObject(this.params.fields[currentFieldId]) &&\n \"upload\" === this.params.fields[currentFieldId].type\n ) {\n // If the attribute exists in the field\n if (!_.isUndefined(this.params.fields[currentFieldId].mime_type)) {\n // Set the attribute in the main object\n return this.params.fields[currentFieldId].mime_type;\n }\n }\n }\n return \"image\";\n },\n\n removeImage: function (event) {\n var $targetDiv, $uploadButton;\n\n if (wp.customize.utils.isKeydownButNotEnterEvent(event)) {\n return;\n }\n\n $targetDiv = this.$thisButton.closest(\n \".repeater-field-image,.repeater-field-cropped_image,.repeater-field-upload\"\n );\n $uploadButton = $targetDiv.find(\".upload-button\");\n\n $targetDiv.find(\".kirki-image-attachment\").slideUp(\"fast\", function () {\n jQuery(this).show().html(jQuery(this).data(\"placeholder\"));\n });\n $targetDiv.find(\".hidden-field\").val(\"\");\n $uploadButton.text($uploadButton.data(\"label\"));\n this.$thisButton.hide();\n\n $targetDiv.find(\"input, textarea, select\").trigger(\"change\");\n },\n\n removeFile: function (event) {\n var $targetDiv, $uploadButton;\n\n if (wp.customize.utils.isKeydownButNotEnterEvent(event)) {\n return;\n }\n\n $targetDiv = this.$thisButton.closest(\".repeater-field-upload\");\n $uploadButton = $targetDiv.find(\".upload-button\");\n\n $targetDiv.find(\".kirki-file-attachment\").slideUp(\"fast\", function () {\n jQuery(this).show().html(jQuery(this).data(\"placeholder\"));\n });\n $targetDiv.find(\".hidden-field\").val(\"\");\n $uploadButton.text($uploadButton.data(\"label\"));\n this.$thisButton.hide();\n\n $targetDiv.find(\"input, textarea, select\").trigger(\"change\");\n },\n\n /**\n * Get the current value of the setting\n *\n * @returns {Object} - Returns the value.\n */\n getValue: function () {\n // The setting is saved in JSON\n return JSON.parse(decodeURI(this.setting.get()));\n },\n\n /**\n * Set a new value for the setting\n *\n * @param {Object} newValue - The new value.\n * @param {bool} refresh - If we want to refresh the previewer or not\n * @param {bool} filtering - If we want to filter or not.\n * @returns {void}\n */\n setValue: function (newValue, refresh, filtering) {\n // We need to filter the values after the first load to remove data requrired for diplay but that we don't want to save in DB\n var filteredValue = newValue,\n filter = [];\n\n if (filtering) {\n jQuery.each(this.params.fields, function (index, value) {\n if (\n \"image\" === value.type ||\n \"cropped_image\" === value.type ||\n \"upload\" === value.type\n ) {\n filter.push(index);\n }\n });\n jQuery.each(newValue, function (index, value) {\n jQuery.each(filter, function (ind, field) {\n if (!_.isUndefined(value[field]) && !_.isUndefined(value[field].id)) {\n filteredValue[index][field] = value[field].id;\n }\n });\n });\n }\n\n this.setting.set(encodeURI(JSON.stringify(filteredValue)));\n\n if (refresh) {\n // Trigger the change event on the hidden field so\n // previewer refresh the website on Customizer\n this.settingField.trigger(\"change\");\n }\n },\n\n /**\n * Add a new row to repeater settings based on the structure.\n *\n * @param {Object} data - (Optional) Object of field => value pairs (undefined if you want to get the default values)\n * @returns {Object} - Returns the new row.\n */\n addRow: function (data) {\n var control = this,\n template = control.repeaterTemplate(), // The template for the new row (defined on Kirki_Customize_Repeater_Control::render_content() ).\n settingValue = this.getValue(), // Get the current setting value.\n newRowSetting = {}, // Saves the new setting data.\n templateData, // Data to pass to the template\n newRow,\n i;\n\n if (template) {\n // The control structure is going to define the new fields\n // We need to clone control.params.fields. Assigning it\n // ould result in a reference assignment.\n templateData = jQuery.extend(true, {}, control.params.fields);\n\n // But if we have passed data, we'll use the data values instead\n if (data) {\n for (i in data) {\n if (data.hasOwnProperty(i) && templateData.hasOwnProperty(i)) {\n templateData[i].default = data[i];\n }\n }\n }\n\n templateData.index = this.currentIndex;\n\n // Append the template content\n template = template(templateData);\n\n // Create a new row object and append the element\n newRow = new RepeaterRow(\n control.currentIndex,\n jQuery(template).appendTo(control.repeaterFieldsContainer),\n control.params.row_label,\n control\n );\n\n newRow.container.on(\"row:remove\", function (e, rowIndex) {\n control.deleteRow(rowIndex);\n });\n\n newRow.container.on(\n \"row:update\",\n function (e, rowIndex, fieldName, element) {\n control.updateField.call(control, e, rowIndex, fieldName, element); // eslint-disable-line no-useless-call\n newRow.updateLabel();\n }\n );\n\n // Add the row to rows collection\n this.rows[this.currentIndex] = newRow;\n\n for (i in templateData) {\n if (templateData.hasOwnProperty(i)) {\n newRowSetting[i] = templateData[i].default;\n }\n }\n\n settingValue[this.currentIndex] = newRowSetting;\n this.setValue(settingValue, true);\n\n this.currentIndex++;\n\n return newRow;\n }\n },\n\n sort: function () {\n var control = this,\n $rows = this.repeaterFieldsContainer.find(\".repeater-row\"),\n newOrder = [],\n settings = control.getValue(),\n newRows = [],\n newSettings = [];\n\n $rows.each(function (i, element) {\n newOrder.push(jQuery(element).data(\"row\"));\n });\n\n jQuery.each(newOrder, function (newPosition, oldPosition) {\n newRows[newPosition] = control.rows[oldPosition];\n newRows[newPosition].setRowIndex(newPosition);\n\n newSettings[newPosition] = settings[oldPosition];\n });\n\n control.rows = newRows;\n control.setValue(newSettings);\n },\n\n /**\n * Delete a row in the repeater setting\n *\n * @param {int} index - Position of the row in the complete Setting Array\n * @returns {void}\n */\n deleteRow: function (index) {\n var currentSettings = this.getValue(),\n row,\n prop;\n\n if (currentSettings[index]) {\n // Find the row\n row = this.rows[index];\n if (row) {\n // Remove the row settings\n delete currentSettings[index];\n\n // Remove the row from the rows collection\n delete this.rows[index];\n\n // Update the new setting values\n this.setValue(currentSettings, true);\n }\n }\n\n // Remap the row numbers\n for (prop in this.rows) {\n if (this.rows.hasOwnProperty(prop) && this.rows[prop]) {\n this.rows[prop].updateLabel();\n }\n }\n },\n\n /**\n * Update a single field inside a row.\n * Triggered when a field has changed\n *\n * @param {Object} e - Event Object\n * @param {int} rowIndex - The row's index as an integer.\n * @param {string} fieldId - The field ID.\n * @param {string|Object} element - The element's identifier, or jQuery Object of the element.\n * @returns {void}\n */\n updateField: function (e, rowIndex, fieldId, element) {\n var type, row, currentSettings;\n\n if (!this.rows[rowIndex]) {\n return;\n }\n\n if (!this.params.fields[fieldId]) {\n return;\n }\n\n type = this.params.fields[fieldId].type;\n row = this.rows[rowIndex];\n currentSettings = this.getValue();\n\n element = jQuery(element);\n\n if (_.isUndefined(currentSettings[row.rowIndex][fieldId])) {\n return;\n }\n\n if (\"checkbox\" === type) {\n currentSettings[row.rowIndex][fieldId] = element.is(\":checked\");\n } else {\n // Update the settings\n currentSettings[row.rowIndex][fieldId] = element.val();\n }\n this.setValue(currentSettings, true);\n },\n\n /**\n * Init the color picker on color fields\n * Called after AddRow\n *\n * @returns {void}\n */\n initColorPicker: function () {\n var control = this;\n var colorPicker = control.container.find(\".kirki-classic-color-picker\");\n var fieldId = colorPicker.data(\"field\");\n var options = {};\n\n // We check if the color palette parameter is defined.\n if (\n !_.isUndefined(fieldId) &&\n !_.isUndefined(control.params.fields[fieldId]) &&\n !_.isUndefined(control.params.fields[fieldId].palettes) &&\n _.isObject(control.params.fields[fieldId].palettes)\n ) {\n options.palettes = control.params.fields[fieldId].palettes;\n }\n\n // When the color picker value is changed we update the value of the field\n options.change = function (event, ui) {\n var currentPicker = jQuery(event.target);\n var row = currentPicker.closest(\".repeater-row\");\n var rowIndex = row.data(\"row\");\n var currentSettings = control.getValue();\n var value = ui.color._alpha < 1 ? ui.color.to_s() : ui.color.toString();\n\n currentSettings[rowIndex][currentPicker.data(\"field\")] = value;\n control.setValue(currentSettings, true);\n\n\t\t\t// By default if the alpha is 1, the input will be rgb.\n\t\t\t// We setTimeout to 50ms to prevent race value set.\n\t\t\tsetTimeout(function() {\n\t\t\t\tevent.target.value = value;\n\t\t\t}, 50);\n };\n\n // Init the color picker\n if (colorPicker.length && 0 !== colorPicker.length) {\n colorPicker.wpColorPicker(options);\n }\n },\n\n /**\n * Init the dropdown-pages field.\n * Called after AddRow\n *\n * @param {object} theNewRow the row that was added to the repeater\n * @param {object} data the data for the row if we're initializing a pre-existing row\n * @returns {void}\n */\n initSelect: function (theNewRow, data) {\n var control = this,\n dropdown = theNewRow.container.find(\".repeater-field select\"),\n dataField;\n\n if (0 === dropdown.length) {\n return;\n }\n\n dataField = dropdown.data(\"field\");\n multiple = jQuery(dropdown).data(\"multiple\");\n\n data = data || {};\n data[dataField] = data[dataField] || \"\";\n\n jQuery(dropdown).val(data[dataField] || jQuery(dropdown).val());\n\n this.container.on(\"change\", \".repeater-field select\", function (event) {\n var currentDropdown = jQuery(event.target),\n row = currentDropdown.closest(\".repeater-row\"),\n rowIndex = row.data(\"row\"),\n currentSettings = control.getValue();\n\n currentSettings[rowIndex][currentDropdown.data(\"field\")] =\n jQuery(this).val();\n control.setValue(currentSettings);\n });\n },\n});\n"],"names":["$c32ddecb66401709$var$RepeaterRow","rowIndex","container","label","control","self","this","header","find","on","toggleMinimize","remove","trigger","e","jQuery","target","data","setRowIndex","rowNum","attr","updateLabel","toggleClass","slideUp","detach","rowLabelField","rowLabel","rowLabelSelector","type","field","_","isFunction","val","isUndefined","params","fields","choices","selector","text","value","wp","customize","controlConstructor","repeater","Control","extend","ready","window","kirkiControlLoader","initKirkiControl","limit","theNewRow","settingValue","settingField","first","setValue","repeaterFieldsContainer","currentIndex","rows","parseInt","preventDefault","addRow","initColorPicker","initSelect","addClass","removeClass","$thisButton","openFrame","removeImage","removeFile","repeaterTemplate","memoize","options","evaluate","interpolate","escape","variable","template","html","compiled","length","each","subValue","sortable","handle","update","sort","event","utils","isKeydownButNotEnterEvent","closest","hasClass","initCropperFrame","initFrame","frame","open","libMediaType","getMimeType","media","states","controller","Library","library","query","multiple","date","onSelect","currentFieldId","siblings","isString","isObject","forEach","el","bind","button","close","suggestedWidth","width","suggestedHeight","height","CustomizeImageCropper","imgSelectOptions","calculateImageSelectOptions","onSelectForCrop","onCropped","onSkippedCrop","attachment","state","get","toJSON","setFileInRepeaterField","setImageInRepeaterField","flex_width","flex_height","setState","croppedImage","x1","y1","flexWidth","flexHeight","realWidth","realHeight","xInit","yInit","ratio","xImg","yImg","set","mustBeCropped","handles","keys","instance","persistent","imageWidth","imageHeight","x2","y2","aspectRatio","maxHeight","maxWidth","flexW","flexH","dstW","dstH","imgW","imgH","$targetDiv","url","hide","slideDown","id","show","filename","mime_type","$uploadButton","getValue","JSON","parse","decodeURI","setting","newValue","refresh","filtering","filteredValue","filter","index","push","ind","encodeURI","stringify","templateData","newRow","i","newRowSetting","hasOwnProperty","default","appendTo","row_label","deleteRow","fieldName","element","updateField","call","$rows","newOrder","settings","newRows","newSettings","newPosition","oldPosition","prop","currentSettings","fieldId","row","is","colorPicker","palettes","change","ui","currentPicker","color","_alpha","to_s","toString","setTimeout","wpColorPicker","dataField","dropdown","currentDropdown"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/dist/wp-color-picker-alpha.min.js b/functions/kirki/kirki-packages/control-repeater/dist/wp-color-picker-alpha.min.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-repeater/dist/wp-color-picker-alpha.min.js
rename to functions/kirki/kirki-packages/control-repeater/dist/wp-color-picker-alpha.min.js
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/src/Control/Repeater.php b/functions/kirki/kirki-packages/control-repeater/src/Control/Repeater.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/control-repeater/src/Control/Repeater.php
rename to functions/kirki/kirki-packages/control-repeater/src/Control/Repeater.php
index ef92f7b..9c773d3 100644
--- a/functions/kirki/packages/kirki-framework/control-repeater/src/Control/Repeater.php
+++ b/functions/kirki/kirki-packages/control-repeater/src/Control/Repeater.php
@@ -3,7 +3,7 @@
* Customizer Control: repeater.
*
* @package kirki-framework/control-repeater
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/src/Field/Repeater.php b/functions/kirki/kirki-packages/control-repeater/src/Field/Repeater.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-repeater/src/Field/Repeater.php
rename to functions/kirki/kirki-packages/control-repeater/src/Field/Repeater.php
index ec60dca..8c3634a 100644
--- a/functions/kirki/packages/kirki-framework/control-repeater/src/Field/Repeater.php
+++ b/functions/kirki/kirki-packages/control-repeater/src/Field/Repeater.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-repeater
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/src/Settings/Repeater.php b/functions/kirki/kirki-packages/control-repeater/src/Settings/Repeater.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/control-repeater/src/Settings/Repeater.php
rename to functions/kirki/kirki-packages/control-repeater/src/Settings/Repeater.php
index 119b082..8992e18 100644
--- a/functions/kirki/packages/kirki-framework/control-repeater/src/Settings/Repeater.php
+++ b/functions/kirki/kirki-packages/control-repeater/src/Settings/Repeater.php
@@ -3,7 +3,7 @@
* Repeater Customizer Setting.
*
* @package kirki-framework/control-repeater
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/src/control.js b/functions/kirki/kirki-packages/control-repeater/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-repeater/src/control.js
rename to functions/kirki/kirki-packages/control-repeater/src/control.js
diff --git a/functions/kirki/kirki-packages/control-repeater/src/control.scss b/functions/kirki/kirki-packages/control-repeater/src/control.scss
new file mode 100644
index 0000000..8faa8c5
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-repeater/src/control.scss
@@ -0,0 +1,210 @@
+.customize-control-repeater {
+ position: relative;
+}
+
+.customize-control-repeater .repeater-fields .repeater-row {
+ border: 1px solid #e5e5e5;
+ margin-top: 0.5rem;
+ background: #eee;
+ position: relative;
+}
+
+.customize-control-repeater .repeater-fields .repeater-row.minimized {
+ border: 1px solid #dfdfdf;
+ padding: 0;
+}
+
+.customize-control-repeater .repeater-fields .repeater-row.minimized:hover {
+ border: 1px solid #e5e5e5;
+}
+
+.customize-control-repeater
+ .repeater-fields
+ .repeater-row.minimized
+ .repeater-row-content {
+ display: none;
+}
+
+.customize-control-repeater .repeater-fields .repeater-row label {
+ margin-bottom: 12px;
+ clear: both;
+}
+
+.customize-control-repeater
+ .repeater-fields
+ .repeater-row
+ .repeater-field.repeater-field- {
+ display: none;
+}
+
+.customize-control-repeater
+ .repeater-fields
+ .repeater-row
+ .repeater-field.repeater-field-radio-image
+ input {
+ display: none;
+}
+
+.customize-control-repeater
+ .repeater-fields
+ .repeater-row
+ .repeater-field.repeater-field-radio-image
+ input
+ img {
+ border: 1px solid transparent;
+}
+
+.customize-control-repeater
+ .repeater-fields
+ .repeater-row
+ .repeater-field.repeater-field-radio-image
+ input:checked
+ + label
+ img {
+ -webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
+ box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.25);
+ border: 1px solid #3498db;
+}
+
+.customize-control-repeater
+ .repeater-fields
+ .repeater-row
+ .repeater-field:last-child {
+ border-bottom: none;
+ padding-bottom: 0;
+}
+
+.customize-control-repeater button.repeater-add {
+ margin-top: 1rem;
+}
+
+.customize-control-repeater .repeater-row-content {
+ padding: 10px 15px;
+ background: #fff;
+}
+
+.customize-control-repeater .repeater-field {
+ margin-bottom: 12px;
+ width: 100%;
+ clear: both;
+ padding-bottom: 12px;
+ border-bottom: 1px dotted #ccc;
+}
+
+.customize-control-repeater .repeater-field .customize-control-title {
+ font-size: 13px;
+ line-height: initial;
+}
+
+.customize-control-repeater .repeater-field .customize-control-description {
+ font-size: 13px;
+ line-height: initial;
+}
+
+.customize-control-repeater .repeater-field.repeater-field-hidden {
+ margin: 0;
+ padding: 0;
+ border: 0;
+}
+
+.customize-control-repeater .repeater-field-select select {
+ margin-left: 0;
+}
+
+.customize-control-repeater .repeater-field-checkbox label {
+ line-height: 28px;
+}
+
+.customize-control-repeater .repeater-field-checkbox input {
+ line-height: 28px;
+ margin-right: 5px;
+}
+
+.customize-control-repeater .repeater-field-textarea textarea {
+ width: 100%;
+ resize: vertical;
+}
+
+.customize-control-repeater .repeater-row-header {
+ background: white;
+ border-bottom: 1px solid #dfdfdf;
+ position: relative;
+ padding: 10px 15px;
+ height: auto;
+ min-height: 20px;
+ line-height: 30px;
+ overflow: hidden;
+ word-wrap: break-word;
+}
+
+.customize-control-repeater .repeater-row-header:hover {
+ cursor: move;
+}
+
+.customize-control-repeater .repeater-row-header .dashicons {
+ font-size: 18px;
+ position: absolute;
+ right: 12px;
+ top: 2px;
+ color: #a0a5aa;
+}
+
+.customize-control-repeater .repeater-row-label {
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 20px;
+ display: block;
+ width: 90%;
+ overflow: hidden;
+ height: 18px;
+}
+
+.customize-control-repeater .repeater-row-remove {
+ color: #a00;
+}
+
+.customize-control-repeater .repeater-row-remove:hover {
+ color: #f00;
+}
+
+.customize-control-repeater .repeater-minimize {
+ line-height: 36px;
+}
+
+.customize-control-repeater .remove-button,
+.customize-control-repeater .upload-button {
+ width: 48%;
+}
+
+.kirki-image-attachment {
+ margin: 0;
+ text-align: center;
+ margin-bottom: 10px;
+}
+
+.kirki-image-attachment img {
+ display: inline-block;
+}
+
+.kirki-file-attachment {
+ margin: 0;
+ text-align: center;
+ margin-bottom: 10px;
+}
+
+.kirki-file-attachment .file {
+ display: block;
+ padding: 10px 5px;
+ border: 1px dotted #c3c3c3;
+ background: #f9f9f9;
+}
+
+.limit {
+ padding: 3px;
+ border-radius: 3px;
+}
+
+.limit.highlight {
+ background: #d32f2f;
+ color: #fff;
+}
diff --git a/functions/kirki/packages/kirki-framework/control-select/src/Field/Dropdown_Pages.php b/functions/kirki/kirki-packages/control-select/src/Field/Dropdown_Pages.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/control-select/src/Field/Dropdown_Pages.php
rename to functions/kirki/kirki-packages/control-select/src/Field/Dropdown_Pages.php
index b3ffcfc..81e12a0 100644
--- a/functions/kirki/packages/kirki-framework/control-select/src/Field/Dropdown_Pages.php
+++ b/functions/kirki/kirki-packages/control-select/src/Field/Dropdown_Pages.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-select
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-select/src/Field/Preset.php b/functions/kirki/kirki-packages/control-select/src/Field/Preset.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/control-select/src/Field/Preset.php
rename to functions/kirki/kirki-packages/control-select/src/Field/Preset.php
index b80c240..4b632f3 100644
--- a/functions/kirki/packages/kirki-framework/control-select/src/Field/Preset.php
+++ b/functions/kirki/kirki-packages/control-select/src/Field/Preset.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-select
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-select/src/Field/Select.php b/functions/kirki/kirki-packages/control-select/src/Field/Select.php
similarity index 80%
rename from functions/kirki/packages/kirki-framework/control-select/src/Field/Select.php
rename to functions/kirki/kirki-packages/control-select/src/Field/Select.php
index 0ab648a..c5f6e4d 100644
--- a/functions/kirki/packages/kirki-framework/control-select/src/Field/Select.php
+++ b/functions/kirki/kirki-packages/control-select/src/Field/Select.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-select
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-slider/dist/control.css b/functions/kirki/kirki-packages/control-slider/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/dist/control.css
rename to functions/kirki/kirki-packages/control-slider/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-slider/dist/control.css.map b/functions/kirki/kirki-packages/control-slider/dist/control.css.map
new file mode 100644
index 0000000..3b286a9
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-slider/dist/control.css.map
@@ -0,0 +1 @@
+{"version":3,"file":"./control.css","mappings":"AAEE,qDACE,kBACA,cAGF,+DACE,mBAGF,oDACE,kBACA,mBAGE,+EACE,UAKN,qDACE,aACA,mBACA,uBACA,QACA,YACA,kBACA,UACA,WACA,YACA,cACA,6BACA,kBACA,eACA,UACA,eACA,mBACA,UAGA,2DACE,UAIJ,6DACE,UACA,yBAGF,uDACE,eACA,WACA,YACA,wBACA,yBAGF,oDACE,aACA,mBACA,8BAGF,wDACE,UACA,mBAGF,yDACE,UACA,iBAGF,qDACE,eACA,kBACA,yBACA,kBACA,kBACA,UAGF,sDACE,kBACA,SACA,UACA,SACA,WACA,WACA,oBACA,yBACA,aACA,wBAGF,4EACE,wBACA,gBACA,WACA,YACA,kBACA,yBACA,eACA,sBACA,gBACA,uGAEA,+FAIF,oKAEE,yBAGF,mFACE,yBAGF,wEACE,WACA,YACA,SACA,kBACA,yBACA,eACA,sBACA,gBACA,oGAEA,+FAIF,4JAEE,yBAGF,mDACE,yBACA,SAGF,gHAEE,S","sources":["webpack://control-range-slider/./src/control.scss"],"sourcesContent":["// Range slider control.\r\n.customize-control-kirki-slider {\r\n .kirki-control-label {\r\n position: relative;\r\n display: block;\r\n }\r\n\r\n .customize-control-description {\r\n padding-right: 30px;\r\n }\r\n\r\n .kirki-control-form {\r\n position: relative;\r\n margin-bottom: 12px;\r\n\r\n &:hover {\r\n .kirki-control-reset {\r\n opacity: 1;\r\n }\r\n }\r\n }\r\n\r\n .kirki-control-reset {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n right: 0;\r\n bottom: 22px;\r\n position: absolute;\r\n padding: 0;\r\n width: 16px;\r\n height: 16px;\r\n color: #50575e;\r\n background-color: transparent;\r\n border-radius: 50%;\r\n border-width: 0;\r\n opacity: 0;\r\n cursor: pointer;\r\n transition: all 0.3s;\r\n z-index: 3;\r\n\r\n // a11y: support tab focus.\r\n &:focus {\r\n opacity: 1;\r\n }\r\n }\r\n\r\n .kirki-control-reset:hover i {\r\n color: #f00;\r\n transform: rotate(-45deg);\r\n }\r\n\r\n .kirki-control-reset i {\r\n font-size: 12px;\r\n width: auto;\r\n height: auto;\r\n transform: rotate(45deg);\r\n transition: transform 0.3s;\r\n }\r\n\r\n .kirki-control-cols {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n }\r\n\r\n .kirki-control-left-col {\r\n width: 90%;\r\n padding-right: 13px;\r\n }\r\n\r\n .kirki-control-right-col {\r\n width: 10%;\r\n text-align: right;\r\n }\r\n\r\n .kirki-control-input {\r\n font-size: 12px;\r\n text-align: center;\r\n background-color: #f7f7f7;\r\n border-color: #bbb;\r\n border-radius: 4px;\r\n z-index: 2;\r\n }\r\n\r\n .kirki-control-slider {\r\n position: relative;\r\n top: -1px;\r\n padding: 0;\r\n margin: 0;\r\n width: 100%;\r\n height: 5px;\r\n border-radius: 2.5px;\r\n background-color: #bdc3c7;\r\n outline: none;\r\n -webkit-appearance: none;\r\n }\r\n\r\n .kirki-control-slider::-webkit-slider-thumb {\r\n -webkit-appearance: none;\r\n appearance: none;\r\n width: 16px;\r\n height: 16px;\r\n border-radius: 50%;\r\n background-color: #f0f0f0;\r\n cursor: pointer;\r\n border: 1px solid #999;\r\n box-shadow: none;\r\n -webkit-transition: background-color 0.15s ease-in-out,\r\n box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\r\n transition: background-color 0.15s ease-in-out,\r\n box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\r\n }\r\n\r\n .kirki-control-slider::-webkit-slider-thumb:hover,\r\n .kirki-control-slider::-webkit-slider-thumb:focus {\r\n background-color: #e7e7e7;\r\n }\r\n\r\n .kirki-control-slider:active::-webkit-slider-thumb {\r\n background-color: #e7e7e7;\r\n }\r\n\r\n .kirki-control-slider::-moz-range-thumb {\r\n width: 16px;\r\n height: 16px;\r\n border: 0;\r\n border-radius: 50%;\r\n background-color: #f0f0f0;\r\n cursor: pointer;\r\n border: 1px solid #999;\r\n box-shadow: none;\r\n -moz-transition: background-color 0.15s ease-in-out,\r\n box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\r\n transition: background-color 0.15s ease-in-out,\r\n box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\r\n }\r\n\r\n .kirki-control-slider::-moz-range-thumb:hover,\r\n .kirki-control-slider::-moz-range-thumb:focus {\r\n background-color: #e7e7e7;\r\n }\r\n\r\n ::-moz-range-track {\r\n background-color: #bdc3c7;\r\n border: 0;\r\n }\r\n\r\n input::-moz-focus-inner,\r\n input::-moz-focus-outer {\r\n border: 0;\r\n }\r\n}\r\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-slider/dist/control.js b/functions/kirki/kirki-packages/control-slider/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/dist/control.js
rename to functions/kirki/kirki-packages/control-slider/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-slider/dist/control.js.map b/functions/kirki/kirki-packages/control-slider/dist/control.js.map
new file mode 100644
index 0000000..d4d57b6
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-slider/dist/control.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"control.js","mappings":"mBAAA,MAAM,EAA+BA,MCuGrC,EArGwB,SAACC,GACvB,IAAQC,EAAwCD,EAAxCC,QAASC,EAA+BF,EAA/BE,kBAAmBC,EAAYH,EAAZG,QAEhCC,EAAU,GAEdH,EAAQI,qBAAuB,SAACC,GAC1B,WAAaF,EACfG,EAASC,QAAQC,YAAcH,EACtB,UAAYF,EACrBM,EAAUF,QAAQG,MAAQL,EACjB,UAAYF,IACrBG,EAASC,QAAQC,YAAcH,EAC/BI,EAAUF,QAAQG,MAAQL,IAI9B,IAgCMM,EAAU,uBAAH,OAA0BV,EAAkBW,IACnDF,EAAQ,KAAOX,EAAMW,MAAQX,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I,O,gNCgCb,QAhH2BuB,GAAGC,UAAUC,QAAQC,OAAO,CAQtDC,WAAY,SAAUzB,EAAI0B,GACzB,IAAMtC,EAAUuC,KAGhBvC,EAAQsB,yBAA2BtB,EAAQsB,yBAAyBkB,KAAKxC,GAEzEiC,GAAGC,UAAUC,QAAQM,UAAUJ,WAAWK,KAAK1C,EAASY,EAAI0B,GAU5DL,GAAGC,UAAUlC,QAAQwC,KAAK,WAP1B,SAASG,EAAUC,GACd5C,IAAY4C,IACf5C,EAAQ6C,UACR7C,EAAQ8C,UAAUC,SAClBd,GAAGC,UAAUlC,QAAQgD,OAAO,UAAWL,QAc1CrB,yBAA0B,SAAkC2B,GAC3CV,KAERW,cAAcJ,UAAYK,OAAOF,GAFzBV,KAGRW,cAAcE,UAUvBC,cAAe,WACd,IAAMrD,EAAUuC,KAEhBe,SAASF,OACR,oBAAC,EAAD,KACKpD,EAAQsC,OADb,CAECtC,QAASA,EACTC,kBAAmBD,EAAQuD,QAC3BjC,yBAA0BtB,EAAQwD,wBAClC9C,MAAOV,EAAQsC,OAAO5B,SAEvBV,EAAQ8C,UAAU,KAGf,IAAU9C,EAAQsC,OAAOpC,QAAQuD,eACpCzD,EAAQ8C,UAAUY,SAAS,kBAW7BC,MAAO,WACN,IAAM3D,EAAUuC,KAKhBvC,EAAQuD,QAAQf,MAAK,SAACnC,GACrBL,EAAQI,qBAAqBC,OAO/BD,qBAAsB,SAACC,KAUvBwC,QAAS,WAIRS,SAASM,uBAHOrB,KAGwBO,UAAU,IAG9Cb,GAAGC,UAAUC,QAAQM,UAAUI,SAClCZ,GAAGC,UAAUC,QAAQM,UAAUI,QAAQH,KAPxBH,SC9GlBN,GAAGC,UAAU2B,mBAAmB,gBAAkBC,G","sources":["webpack://control-range-slider/external var \"React\"","webpack://control-range-slider/./src/KirkiSliderForm.js","webpack://control-range-slider/./src/KirkiSliderControl.js","webpack://control-range-slider/./src/control.js"],"sourcesContent":["const __WEBPACK_NAMESPACE_OBJECT__ = React;","import { useRef } from \"react\";\n\nconst KirkiSliderForm = (props) => {\n const { control, customizerSetting, choices } = props;\n\n let trigger = \"\";\n\n control.updateComponentState = (val) => {\n if (\"slider\" === trigger) {\n valueRef.current.textContent = val;\n } else if (\"input\" === trigger) {\n sliderRef.current.value = val;\n } else if (\"reset\" === trigger) {\n valueRef.current.textContent = val;\n sliderRef.current.value = val;\n }\n };\n\n const handleChange = (e) => {\n trigger = \"range\" === e.target.type ? \"slider\" : \"input\";\n\n let value = e.target.value;\n\n if (value < choices.min) value = choices.min;\n\n if (value > choices.max) value = choices.max;\n\n if (\"input\" === trigger) e.target.value = value;\n customizerSetting.set(value);\n };\n\n const handleReset = (e) => {\n if (\"\" !== props.default && \"undefined\" !== typeof props.default) {\n sliderRef.current.value = props.default;\n valueRef.current.textContent = props.default;\n } else {\n if (\"\" !== props.value) {\n sliderRef.current.value = props.value;\n valueRef.current.textContent = props.value;\n } else {\n sliderRef.current.value = choices.min;\n valueRef.current.textContent = \"\";\n }\n }\n\n trigger = \"reset\";\n customizerSetting.set(sliderRef.current.value);\n };\n\n // Preparing for the template.\n const fieldId = `kirki-control-input-${customizerSetting.id}`;\n const value = \"\" !== props.value ? props.value : 0;\n\n const sliderRef = useRef(null);\n const valueRef = useRef(null);\n\n return (\n \n
\n {props.label} \n \n \n\n
\n\n
\n \n \n\n
\n
\n );\n};\n\nexport default KirkiSliderForm;\n","import KirkiSliderForm from './KirkiSliderForm';\r\n\r\n/**\r\n * KirkiSliderControl.\r\n *\r\n * Global objects brought:\r\n * - wp\r\n * - jQuery\r\n * - React\r\n * - ReactDOM\r\n *\r\n * @class\r\n * @augments wp.customize.Control\r\n * @augments wp.customize.Class\r\n */\r\nconst KirkiSliderControl = wp.customize.Control.extend({\r\n\r\n\t/**\r\n\t * Initialize.\r\n\t *\r\n\t * @param {string} id - Control ID.\r\n\t * @param {object} params - Control params.\r\n\t */\r\n\tinitialize: function (id, params) {\r\n\t\tconst control = this;\r\n\r\n\t\t// Bind functions to this control context for passing as React props.\r\n\t\tcontrol.setNotificationContainer = control.setNotificationContainer.bind(control);\r\n\r\n\t\twp.customize.Control.prototype.initialize.call(control, id, params);\r\n\r\n\t\t// The following should be eliminated with .\r\n\t\tfunction onRemoved(removedControl) {\r\n\t\t\tif (control === removedControl) {\r\n\t\t\t\tcontrol.destroy();\r\n\t\t\t\tcontrol.container.remove();\r\n\t\t\t\twp.customize.control.unbind('removed', onRemoved);\r\n\t\t\t}\r\n\t\t}\r\n\t\twp.customize.control.bind('removed', onRemoved);\r\n\t},\r\n\r\n\t/**\r\n\t * Set notification container and render.\r\n\t *\r\n\t * This is called when the React component is mounted.\r\n\t *\r\n\t * @param {Element} element - Notification container.\r\n\t * @returns {void}\r\n\t */\r\n\tsetNotificationContainer: function setNotificationContainer(element) {\r\n\t\tconst control = this;\r\n\r\n\t\tcontrol.notifications.container = jQuery(element);\r\n\t\tcontrol.notifications.render();\r\n\t},\r\n\r\n\t/**\r\n\t * Render the control into the DOM.\r\n\t *\r\n\t * This is called from the Control#embed() method in the parent class.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\trenderContent: function renderContent() {\r\n\t\tconst control = this;\r\n\r\n\t\tReactDOM.render(\r\n\t\t\t ,\r\n\t\t\tcontrol.container[0]\r\n\t\t);\r\n\r\n\t\tif (false !== control.params.choices.allowCollapse) {\r\n\t\t\tcontrol.container.addClass('allowCollapse');\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * After control has been first rendered, start re-rendering when setting changes.\r\n\t *\r\n\t * React is able to be used here instead of the wp.customize.Element abstraction.\r\n\t *\r\n\t * @returns {void}\r\n\t */\r\n\tready: function ready() {\r\n\t\tconst control = this;\r\n\r\n\t\t/**\r\n\t\t * Update component value's state when customizer setting's value is changed.\r\n\t\t */\r\n\t\tcontrol.setting.bind((val) => {\r\n\t\t\tcontrol.updateComponentState(val);\r\n\t\t});\r\n\t},\r\n\r\n\t/**\r\n\t * This method will be overriden by the rendered component.\r\n\t */\r\n\tupdateComponentState: (val) => { },\r\n\r\n\t/**\r\n\t * Handle removal/de-registration of the control.\r\n\t *\r\n\t * This is essentially the inverse of the Control#embed() method.\r\n\t *\r\n\t * @link https://core.trac.wordpress.org/ticket/31334\r\n\t * @returns {void}\r\n\t */\r\n\tdestroy: function destroy() {\r\n\t\tconst control = this;\r\n\r\n\t\t// Garbage collection: undo mounting that was done in the embed/renderContent method.\r\n\t\tReactDOM.unmountComponentAtNode(control.container[0]);\r\n\r\n\t\t// Call destroy method in parent if it exists (as of #31334).\r\n\t\tif (wp.customize.Control.prototype.destroy) {\r\n\t\t\twp.customize.Control.prototype.destroy.call(control);\r\n\t\t}\r\n\t}\r\n});\r\n\r\nexport default KirkiSliderControl;\r\n","import \"./control.scss\";\r\nimport KirkiSliderControl from './KirkiSliderControl';\r\n\r\n\r\n// Register control type with Customizer.\r\nwp.customize.controlConstructor['kirki-slider'] = KirkiSliderControl;\r\n"],"names":["React","props","control","customizerSetting","choices","trigger","updateComponentState","val","valueRef","current","textContent","sliderRef","value","fieldId","id","useRef","className","tabIndex","htmlFor","label","dangerouslySetInnerHTML","__html","description","ref","setNotificationContainer","type","onClick","e","min","set","defaultValue","max","step","onChange","target","wp","customize","Control","extend","initialize","params","this","bind","prototype","call","onRemoved","removedControl","destroy","container","remove","unbind","element","notifications","jQuery","render","renderContent","ReactDOM","setting","setNotificationCotainer","allowCollapse","addClass","ready","unmountComponentAtNode","controlConstructor","KirkiSliderControl"],"sourceRoot":""}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-slider/src/Control/Slider.php b/functions/kirki/kirki-packages/control-slider/src/Control/Slider.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/src/Control/Slider.php
rename to functions/kirki/kirki-packages/control-slider/src/Control/Slider.php
diff --git a/functions/kirki/packages/kirki-framework/control-slider/src/Field/Slider.php b/functions/kirki/kirki-packages/control-slider/src/Field/Slider.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/src/Field/Slider.php
rename to functions/kirki/kirki-packages/control-slider/src/Field/Slider.php
diff --git a/functions/kirki/packages/kirki-framework/control-slider/src/KirkiSliderControl.js b/functions/kirki/kirki-packages/control-slider/src/KirkiSliderControl.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/src/KirkiSliderControl.js
rename to functions/kirki/kirki-packages/control-slider/src/KirkiSliderControl.js
diff --git a/functions/kirki/packages/kirki-framework/control-slider/src/KirkiSliderForm.js b/functions/kirki/kirki-packages/control-slider/src/KirkiSliderForm.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/src/KirkiSliderForm.js
rename to functions/kirki/kirki-packages/control-slider/src/KirkiSliderForm.js
diff --git a/functions/kirki/packages/kirki-framework/control-slider/src/control.js b/functions/kirki/kirki-packages/control-slider/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-slider/src/control.js
rename to functions/kirki/kirki-packages/control-slider/src/control.js
diff --git a/functions/kirki/kirki-packages/control-slider/src/control.scss b/functions/kirki/kirki-packages/control-slider/src/control.scss
new file mode 100644
index 0000000..f43a4c4
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-slider/src/control.scss
@@ -0,0 +1,153 @@
+// Range slider control.
+.customize-control-kirki-slider {
+ .kirki-control-label {
+ position: relative;
+ display: block;
+ }
+
+ .customize-control-description {
+ padding-right: 30px;
+ }
+
+ .kirki-control-form {
+ position: relative;
+ margin-bottom: 12px;
+
+ &:hover {
+ .kirki-control-reset {
+ opacity: 1;
+ }
+ }
+ }
+
+ .kirki-control-reset {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ right: 0;
+ bottom: 22px;
+ position: absolute;
+ padding: 0;
+ width: 16px;
+ height: 16px;
+ color: #50575e;
+ background-color: transparent;
+ border-radius: 50%;
+ border-width: 0;
+ opacity: 0;
+ cursor: pointer;
+ transition: all 0.3s;
+ z-index: 3;
+
+ // a11y: support tab focus.
+ &:focus {
+ opacity: 1;
+ }
+ }
+
+ .kirki-control-reset:hover i {
+ color: #f00;
+ transform: rotate(-45deg);
+ }
+
+ .kirki-control-reset i {
+ font-size: 12px;
+ width: auto;
+ height: auto;
+ transform: rotate(45deg);
+ transition: transform 0.3s;
+ }
+
+ .kirki-control-cols {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
+
+ .kirki-control-left-col {
+ width: 90%;
+ padding-right: 13px;
+ }
+
+ .kirki-control-right-col {
+ width: 10%;
+ text-align: right;
+ }
+
+ .kirki-control-input {
+ font-size: 12px;
+ text-align: center;
+ background-color: #f7f7f7;
+ border-color: #bbb;
+ border-radius: 4px;
+ z-index: 2;
+ }
+
+ .kirki-control-slider {
+ position: relative;
+ top: -1px;
+ padding: 0;
+ margin: 0;
+ width: 100%;
+ height: 5px;
+ border-radius: 2.5px;
+ background-color: #bdc3c7;
+ outline: none;
+ -webkit-appearance: none;
+ }
+
+ .kirki-control-slider::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ appearance: none;
+ width: 16px;
+ height: 16px;
+ border-radius: 50%;
+ background-color: #f0f0f0;
+ cursor: pointer;
+ border: 1px solid #999;
+ box-shadow: none;
+ -webkit-transition: background-color 0.15s ease-in-out,
+ box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
+ transition: background-color 0.15s ease-in-out,
+ box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
+ }
+
+ .kirki-control-slider::-webkit-slider-thumb:hover,
+ .kirki-control-slider::-webkit-slider-thumb:focus {
+ background-color: #e7e7e7;
+ }
+
+ .kirki-control-slider:active::-webkit-slider-thumb {
+ background-color: #e7e7e7;
+ }
+
+ .kirki-control-slider::-moz-range-thumb {
+ width: 16px;
+ height: 16px;
+ border: 0;
+ border-radius: 50%;
+ background-color: #f0f0f0;
+ cursor: pointer;
+ border: 1px solid #999;
+ box-shadow: none;
+ -moz-transition: background-color 0.15s ease-in-out,
+ box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
+ transition: background-color 0.15s ease-in-out,
+ box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
+ }
+
+ .kirki-control-slider::-moz-range-thumb:hover,
+ .kirki-control-slider::-moz-range-thumb:focus {
+ background-color: #e7e7e7;
+ }
+
+ ::-moz-range-track {
+ background-color: #bdc3c7;
+ border: 0;
+ }
+
+ input::-moz-focus-inner,
+ input::-moz-focus-outer {
+ border: 0;
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/field-background/LICENSE b/functions/kirki/kirki-packages/control-sortable/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-background/LICENSE
rename to functions/kirki/kirki-packages/control-sortable/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/dist/control.css b/functions/kirki/kirki-packages/control-sortable/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-sortable/dist/control.css
rename to functions/kirki/kirki-packages/control-sortable/dist/control.css
diff --git a/functions/kirki/kirki-packages/control-sortable/dist/control.css.map b/functions/kirki/kirki-packages/control-sortable/dist/control.css.map
new file mode 100644
index 0000000..93ee422
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-sortable/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAEI,oDAGE,eAAA,CADA,qBAAA,CADA,gBCCN,CDIQ,8EACE,WCFV,CDKQ,0EACE,iBCHV,CDOM,8DAEE,sBAAA,CADA,UCJR,CDOQ,oFACE,UCLV","sources":["src/control.scss","%3Cinput%20css%20lYUSJ4%3E"],"sourcesContent":[".customize-control-kirki-sortable {\r\n ul.ui-sortable {\r\n li {\r\n padding: 5px 10px;\r\n border: 1px solid #333;\r\n background: #fff;\r\n\r\n .dashicons {\r\n &.dashicons-menu {\r\n float: right;\r\n }\r\n\r\n &.visibility {\r\n margin-right: 10px;\r\n }\r\n }\r\n\r\n &.invisible {\r\n color: #aaa;\r\n border: 1px dashed #aaa;\r\n\r\n .dashicons.visibility {\r\n color: #aaa;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",".customize-control-kirki-sortable ul.ui-sortable li {\n padding: 5px 10px;\n border: 1px solid #333;\n background: #fff;\n}\n.customize-control-kirki-sortable ul.ui-sortable li .dashicons.dashicons-menu {\n float: right;\n}\n.customize-control-kirki-sortable ul.ui-sortable li .dashicons.visibility {\n margin-right: 10px;\n}\n.customize-control-kirki-sortable ul.ui-sortable li.invisible {\n color: #aaa;\n border: 1px dashed #aaa;\n}\n.customize-control-kirki-sortable ul.ui-sortable li.invisible .dashicons.visibility {\n color: #aaa;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/dist/control.js b/functions/kirki/kirki-packages/control-sortable/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-sortable/dist/control.js
rename to functions/kirki/kirki-packages/control-sortable/dist/control.js
diff --git a/functions/kirki/kirki-packages/control-sortable/dist/control.js.map b/functions/kirki/kirki-packages/control-sortable/dist/control.js.map
new file mode 100644
index 0000000..e424044
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-sortable/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"AAEAA,GAAGC,UAAUC,mBAAkB,kBAAqBF,GAAGC,UAAUE,QAAQC,OAAM,CAG9EC,MAAK,WAEJ,IAAIC,EAAOC,KAGXC,OAAQF,EAAQG,UAAUC,KAAI,eAAkBC,SAAUC,SAAQ,CAGjEC,OAAM,WACLP,EAAQQ,QAAQC,IAAKT,EAAQU,gBAE5BC,mBAAmBP,KAAI,MAASQ,MAAI,WAGtCV,OAAMD,MAASG,KAAI,gBAAmBS,OAAK,WAC1CX,OAAMD,MAASa,YAAW,8BAAiCC,QAAO,YAAeD,YAAW,mBAE3FD,OAAK,WAGPb,EAAQQ,QAAQC,IAAKT,EAAQU,iBAU/BA,UAAS,WACR,IAAIM,EAASd,OAAMD,KAAOE,UAAUC,KAAI,OACvCa,EAAM,UACPC,EAAEN,KAAMI,GAAK,SAAYG,GACjBjB,OAAQiB,GAAOC,SAAQ,cAC7BH,EAAOI,KAAMnB,OAAQiB,GAAOG,KAAI,aAG3BL","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\nwp.customize.controlConstructor['kirki-sortable'] = wp.customize.Control.extend({\n\n\t// When we're finished loading continue processing\n\tready: function() {\n\n\t\tvar control = this;\n\n\t\t// Init sortable.\n\t\tjQuery( control.container.find( 'ul.sortable' ).first() ).sortable({\n\n\t\t\t// Update value when we stop sorting.\n\t\t\tupdate: function() {\n\t\t\t\tcontrol.setting.set( control.getNewVal() );\n\t\t\t}\n\t\t}).disableSelection().find( 'li' ).each( function() {\n\n\t\t\t// Enable/disable options when we click on the eye of Thundera.\n\t\t\tjQuery( this ).find( 'i.visibility' ).click( function() {\n\t\t\t\tjQuery( this ).toggleClass( 'dashicons-visibility-faint' ).parents( 'li:eq(0)' ).toggleClass( 'invisible' );\n\t\t\t});\n\t\t}).click( function() {\n\n\t\t\t// Update value on click.\n\t\t\tcontrol.setting.set( control.getNewVal() );\n\t\t});\n\t},\n\n\t/**\n\t * Getss thhe new vvalue.\n\t *\n\t * @since 3.0.35\n\t * @returns {Array} - Returns the value as an array.\n\t */\n\tgetNewVal: function() {\n\t\tvar items = jQuery( this.container.find( 'li' ) ),\n\t\t\tnewVal = [];\n\t\t_.each( items, function( item ) {\n\t\t\tif ( ! jQuery( item ).hasClass( 'invisible' ) ) {\n\t\t\t\tnewVal.push( jQuery( item ).data( 'value' ) );\n\t\t\t}\n\t\t});\n\t\treturn newVal;\n\t}\n});\n"],"names":["wp","customize","controlConstructor","Control","extend","ready","control","this","jQuery","container","find","first","sortable","update","setting","set","getNewVal","disableSelection","each","click","toggleClass","parents","items","newVal","_","item","hasClass","push","data"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/src/Control/Sortable.php b/functions/kirki/kirki-packages/control-sortable/src/Control/Sortable.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-sortable/src/Control/Sortable.php
rename to functions/kirki/kirki-packages/control-sortable/src/Control/Sortable.php
index 48dec01..35d4a0f 100644
--- a/functions/kirki/packages/kirki-framework/control-sortable/src/Control/Sortable.php
+++ b/functions/kirki/kirki-packages/control-sortable/src/Control/Sortable.php
@@ -3,7 +3,7 @@
* Customizer Control: sortable.
*
* @package kirki-framework/control-sortable
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/src/Field/Sortable.php b/functions/kirki/kirki-packages/control-sortable/src/Field/Sortable.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/control-sortable/src/Field/Sortable.php
rename to functions/kirki/kirki-packages/control-sortable/src/Field/Sortable.php
index 9c595d3..69e911c 100644
--- a/functions/kirki/packages/kirki-framework/control-sortable/src/Field/Sortable.php
+++ b/functions/kirki/kirki-packages/control-sortable/src/Field/Sortable.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-sortable
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/src/control.js b/functions/kirki/kirki-packages/control-sortable/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-sortable/src/control.js
rename to functions/kirki/kirki-packages/control-sortable/src/control.js
diff --git a/functions/kirki/kirki-packages/control-sortable/src/control.scss b/functions/kirki/kirki-packages/control-sortable/src/control.scss
new file mode 100644
index 0000000..1d58aaa
--- /dev/null
+++ b/functions/kirki/kirki-packages/control-sortable/src/control.scss
@@ -0,0 +1,28 @@
+.customize-control-kirki-sortable {
+ ul.ui-sortable {
+ li {
+ padding: 5px 10px;
+ border: 1px solid #333;
+ background: #fff;
+
+ .dashicons {
+ &.dashicons-menu {
+ float: right;
+ }
+
+ &.visibility {
+ margin-right: 10px;
+ }
+ }
+
+ &.invisible {
+ color: #aaa;
+ border: 1px dashed #aaa;
+
+ .dashicons.visibility {
+ color: #aaa;
+ }
+ }
+ }
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/LICENSE b/functions/kirki/kirki-packages/control-upload/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-dimensions/LICENSE
rename to functions/kirki/kirki-packages/control-upload/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/control-upload/src/Control/Upload.php b/functions/kirki/kirki-packages/control-upload/src/Control/Upload.php
similarity index 100%
rename from functions/kirki/packages/kirki-framework/control-upload/src/Control/Upload.php
rename to functions/kirki/kirki-packages/control-upload/src/Control/Upload.php
diff --git a/functions/kirki/packages/kirki-framework/control-upload/src/Field/Upload.php b/functions/kirki/kirki-packages/control-upload/src/Field/Upload.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/control-upload/src/Field/Upload.php
rename to functions/kirki/kirki-packages/control-upload/src/Field/Upload.php
index 41116ac..e482cd8 100644
--- a/functions/kirki/packages/kirki-framework/control-upload/src/Field/Upload.php
+++ b/functions/kirki/kirki-packages/control-upload/src/Field/Upload.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-typography
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/l10n/LICENSE b/functions/kirki/kirki-packages/data-option/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/l10n/LICENSE
rename to functions/kirki/kirki-packages/data-option/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/data-option/src/Option.php b/functions/kirki/kirki-packages/data-option/src/Option.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/data-option/src/Option.php
rename to functions/kirki/kirki-packages/data-option/src/Option.php
index 96290f0..fa96c63 100644
--- a/functions/kirki/packages/kirki-framework/data-option/src/Option.php
+++ b/functions/kirki/kirki-packages/data-option/src/Option.php
@@ -3,7 +3,7 @@
* Option tweaks.
*
* @package kirki-framework/data-option
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-fontawesome/LICENSE b/functions/kirki/kirki-packages/field-background/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-fontawesome/LICENSE
rename to functions/kirki/kirki-packages/field-background/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/field-background/src/Background.php b/functions/kirki/kirki-packages/field-background/src/Background.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/field-background/src/Background.php
rename to functions/kirki/kirki-packages/field-background/src/Background.php
index 9ba66c7..355f8fb 100644
--- a/functions/kirki/packages/kirki-framework/field-background/src/Background.php
+++ b/functions/kirki/kirki-packages/field-background/src/Background.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-background
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-background/src/CSS/Background.php b/functions/kirki/kirki-packages/field-background/src/CSS/Background.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/field-background/src/CSS/Background.php
rename to functions/kirki/kirki-packages/field-background/src/CSS/Background.php
index 7c20a09..c2b9c3b 100644
--- a/functions/kirki/packages/kirki-framework/field-background/src/CSS/Background.php
+++ b/functions/kirki/kirki-packages/field-background/src/CSS/Background.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-background/src/script.js b/functions/kirki/kirki-packages/field-background/src/script.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-background/src/script.js
rename to functions/kirki/kirki-packages/field-background/src/script.js
diff --git a/functions/kirki/packages/kirki-framework/field-multicolor/LICENSE b/functions/kirki/kirki-packages/field-dimensions/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-multicolor/LICENSE
rename to functions/kirki/kirki-packages/field-dimensions/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/dist/control.css b/functions/kirki/kirki-packages/field-dimensions/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-dimensions/dist/control.css
rename to functions/kirki/kirki-packages/field-dimensions/dist/control.css
diff --git a/functions/kirki/kirki-packages/field-dimensions/dist/control.css.map b/functions/kirki/kirki-packages/field-dimensions/dist/control.css.map
new file mode 100644
index 0000000..2c392d0
--- /dev/null
+++ b/functions/kirki/kirki-packages/field-dimensions/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"","sources":[],"sourcesContent":[],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/dist/preview.js b/functions/kirki/kirki-packages/field-dimensions/dist/preview.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-dimensions/dist/preview.js
rename to functions/kirki/kirki-packages/field-dimensions/dist/preview.js
diff --git a/functions/kirki/kirki-packages/field-dimensions/dist/preview.js.map b/functions/kirki/kirki-packages/field-dimensions/dist/preview.js.map
new file mode 100644
index 0000000..8899ea3
--- /dev/null
+++ b/functions/kirki/kirki-packages/field-dimensions/dist/preview.js.map
@@ -0,0 +1 @@
+{"mappings":"AASAA,OAAQC,UAAWC,OAAK,WACvBC,GAAGC,MAAMC,UAAS,+BACa,SAW3B,SACOC,EAAQC,EAAOC,EAAQC,GAChC,IAAIC,QACF,qBAA0BD,IAC3BH,GAAUE,EAAOG,QAAO,IACxBC,EAAEC,KAAMN,GAAK,SAAYO,EAAKC,GACxBP,EAAOQ,QAAUD,IAAQP,EAAOQ,SAKhC,KAFLN,EAAiBO,iBAAiBC,KAAKC,aAAcX,EAAQM,MAKvDN,EAAOY,UACXd,GAAUE,EAAOY,SACf,KAAUZ,EAAOY,UAAQ,QAAgBL,GAAG,WAAiBA,GAAG,SAAeA,GAAG,UAAgBA,IACnGT,GAAM,IAAUS,GAEjBT,GAAM,IAAUI,EAAc,KAE9BJ,GAAUS,EAAG,IAASL,EAAc,QAIvCJ,GAAM,KAEAA","sources":["src/preview.js"],"sourcesContent":["/* global kirkiPostMessage */\n\nimport \"./control.scss\";\n\n/**\n * Hook in the kirkiPostMessageStylesOutput filter.\n *\n * Handles postMessage styles for typography controls.\n */\njQuery( document ).ready( function() {\n\twp.hooks.addFilter(\n\t\t'kirkiPostMessageStylesOutput',\n\t\t'kirki',\n\n\t\t/**\n\t\t * Append styles for this control.\n\t\t *\n\t\t * @param {string} styles - The styles.\n\t\t * @param {Object} value - The control value.\n\t\t * @param {Object} output - The control's \"output\" argument.\n\t\t * @param {string} controlType - The control type.\n\t\t * @returns {string} - Returns the CSS as a string.\n\t\t */\n\t\tfunction( styles, value, output, controlType ) {\n\t\t\tvar processedValue;\n\t\t\tif ( 'kirki-dimensions' === controlType ) {\n\t\t\t\tstyles += output.element + '{';\n\t\t\t\t_.each( value, function( val, key ) {\n\t\t\t\t\tif ( output.choice && key !== output.choice ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tprocessedValue = kirkiPostMessage.util.processValue( output, val );\n\n\t\t\t\t\tif ( false !== processedValue ) {\n\n\t\t\t\t\t\t// Mostly used for padding, margin & position properties.\n\t\t\t\t\t\tif ( output.property ) {\n\t\t\t\t\t\t\tstyles += output.property;\n\t\t\t\t\t\t\tif ( '' !== output.property && ( 'top' === key || 'bottom' === key || 'left' === key || 'right' === key ) ) {\n\t\t\t\t\t\t\t\tstyles += '-' + key;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstyles += ':' + processedValue + ';';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstyles += key + ':' + processedValue + ';';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tstyles += '}';\n\t\t\t}\n\t\t\treturn styles;\n\t\t}\n\t);\n} );\n"],"names":["jQuery","document","ready","wp","hooks","addFilter","styles","value","output","controlType","processedValue","element","_","each","val","key","choice","kirkiPostMessage","util","processValue","property"],"version":3,"file":"preview.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/src/CSS/Dimensions.php b/functions/kirki/kirki-packages/field-dimensions/src/CSS/Dimensions.php
similarity index 95%
rename from functions/kirki/packages/kirki-framework/field-dimensions/src/CSS/Dimensions.php
rename to functions/kirki/kirki-packages/field-dimensions/src/CSS/Dimensions.php
index bd5c89e..28dfe1e 100644
--- a/functions/kirki/packages/kirki-framework/field-dimensions/src/CSS/Dimensions.php
+++ b/functions/kirki/kirki-packages/field-dimensions/src/CSS/Dimensions.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/src/Dimensions.php b/functions/kirki/kirki-packages/field-dimensions/src/Dimensions.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/field-dimensions/src/Dimensions.php
rename to functions/kirki/kirki-packages/field-dimensions/src/Dimensions.php
index 82d73ea..2a149be 100644
--- a/functions/kirki/packages/kirki-framework/field-dimensions/src/Dimensions.php
+++ b/functions/kirki/kirki-packages/field-dimensions/src/Dimensions.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/field-dimensions
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/kirki-packages/field-dimensions/src/control.scss b/functions/kirki/kirki-packages/field-dimensions/src/control.scss
new file mode 100644
index 0000000..e69de29
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/src/preview.js b/functions/kirki/kirki-packages/field-dimensions/src/preview.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-dimensions/src/preview.js
rename to functions/kirki/kirki-packages/field-dimensions/src/preview.js
diff --git a/functions/kirki/packages/kirki-framework/field-typography/LICENSE b/functions/kirki/kirki-packages/field-fontawesome/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-typography/LICENSE
rename to functions/kirki/kirki-packages/field-fontawesome/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/field-fontawesome/src/Field/FontAwesome.php b/functions/kirki/kirki-packages/field-fontawesome/src/Field/FontAwesome.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/field-fontawesome/src/Field/FontAwesome.php
rename to functions/kirki/kirki-packages/field-fontawesome/src/Field/FontAwesome.php
index c890d97..f2a6cad 100644
--- a/functions/kirki/packages/kirki-framework/field-fontawesome/src/Field/FontAwesome.php
+++ b/functions/kirki/kirki-packages/field-fontawesome/src/Field/FontAwesome.php
@@ -3,7 +3,7 @@
* Override field methods.
*
* @package kirki-framework/control-fontawesome
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-fontawesome/src/Field/fontawesome.json b/functions/kirki/kirki-packages/field-fontawesome/src/Field/fontawesome.json
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-fontawesome/src/Field/fontawesome.json
rename to functions/kirki/kirki-packages/field-fontawesome/src/Field/fontawesome.json
diff --git a/functions/kirki/packages/kirki-framework/field/LICENSE b/functions/kirki/kirki-packages/field-multicolor/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field/LICENSE
rename to functions/kirki/kirki-packages/field-multicolor/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/field-multicolor/src/Field/CSS/Multicolor.php b/functions/kirki/kirki-packages/field-multicolor/src/Field/CSS/Multicolor.php
similarity index 95%
rename from functions/kirki/packages/kirki-framework/field-multicolor/src/Field/CSS/Multicolor.php
rename to functions/kirki/kirki-packages/field-multicolor/src/Field/CSS/Multicolor.php
index b23ced4..1e72c21 100644
--- a/functions/kirki/packages/kirki-framework/field-multicolor/src/Field/CSS/Multicolor.php
+++ b/functions/kirki/kirki-packages/field-multicolor/src/Field/CSS/Multicolor.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-multicolor/src/Field/Multicolor.php b/functions/kirki/kirki-packages/field-multicolor/src/Field/Multicolor.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/field-multicolor/src/Field/Multicolor.php
rename to functions/kirki/kirki-packages/field-multicolor/src/Field/Multicolor.php
index f37827f..eb76125 100644
--- a/functions/kirki/packages/kirki-framework/field-multicolor/src/Field/Multicolor.php
+++ b/functions/kirki/kirki-packages/field-multicolor/src/Field/Multicolor.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-multicolor
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/LICENSE b/functions/kirki/kirki-packages/field-typography/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-css/LICENSE
rename to functions/kirki/kirki-packages/field-typography/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/field-typography/dist/control.css b/functions/kirki/kirki-packages/field-typography/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-typography/dist/control.css
rename to functions/kirki/kirki-packages/field-typography/dist/control.css
diff --git a/functions/kirki/kirki-packages/field-typography/dist/control.css.map b/functions/kirki/kirki-packages/field-typography/dist/control.css.map
new file mode 100644
index 0000000..f6ddd93
--- /dev/null
+++ b/functions/kirki/kirki-packages/field-typography/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAAA,0EACE,kBCCF,CDCE,mGAGE,cAAA,CADA,eAAA,CADA,eCGJ,CDGA,yEACE,kBCAF,CDGA,sBAEE,iBAAA,CADA,cCCF,CDEE,yBAEE,eAAA,CADA,YCCJ","sources":["src/control.scss","%3Cinput%20css%20zBhG12%3E"],"sourcesContent":[".customize-control-kirki[data-kirki-parent-control-type=\"kirki-typography\"] {\n margin-bottom: 10px;\n\n .customize-control-title {\n margin-bottom: 0;\n font-weight: 500;\n font-size: 12px;\n }\n}\n\n.customize-control-kirki[data-kirki-typography-css-prop=\"text-decoration\"] {\n margin-bottom: 15px;\n}\n\n.kirki-typography-end {\n margin-top: 8px;\n margin-bottom: 8px;\n\n hr {\n margin-top: 0;\n margin-bottom: 0;\n }\n}\n",".customize-control-kirki[data-kirki-parent-control-type=kirki-typography] {\n margin-bottom: 10px;\n}\n.customize-control-kirki[data-kirki-parent-control-type=kirki-typography] .customize-control-title {\n margin-bottom: 0;\n font-weight: 500;\n font-size: 12px;\n}\n\n.customize-control-kirki[data-kirki-typography-css-prop=text-decoration] {\n margin-bottom: 15px;\n}\n\n.kirki-typography-end {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.kirki-typography-end hr {\n margin-top: 0;\n margin-bottom: 0;\n}\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-typography/dist/control.js b/functions/kirki/kirki-packages/field-typography/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-typography/dist/control.js
rename to functions/kirki/kirki-packages/field-typography/dist/control.js
diff --git a/functions/kirki/kirki-packages/field-typography/dist/control.js.map b/functions/kirki/kirki-packages/field-typography/dist/control.js.map
new file mode 100644
index 0000000..f57ea6b
--- /dev/null
+++ b/functions/kirki/kirki-packages/field-typography/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"YAEyE,SAChEA,EAA8CC,EAAIC,GACzD,IAAMC,EAAUC,GAAGC,UAAUF,QAAQF,GAErC,QAAI,IAAuBE,EAA3B,CAMA,IAAMG,GAFNJ,EAAQA,GAASC,EAAQI,QAAQC,OAGzB,gBAAkBC,iBAAiBC,MAAMR,EAAM,gBACjDS,EAAeT,EAAe,QAChCA,EAAe,QAAEU,WACjB,UACEC,EAAiBT,GAAGC,UAAUF,QAAQF,EAAK,aAQ7Ca,EAAW,GAEf,GAAIR,EAAU,CACZ,IAAIS,EAAgBN,iBAAiBC,MAAMR,EAAM,gBAAgBY,SACjEC,EAAcC,MAVK,SAAUC,EAAGC,GAChC,OAAID,EAAIC,GAAU,EACdD,EAAIC,EAAU,EACX,KASPC,kBAAkBC,SAASC,SAAQ,SAAUC,IACvC,IAAOP,EAAcQ,QAAQD,EAAQpB,QACvCY,EAASU,KAAK,CACZtB,MAAOoB,EAAQpB,MACfuB,MAAOH,EAAQG,eAIhB,CACP,IAAIC,EAAmBzB,EAAG0B,QAAO,KAAO,IACxCD,EAAmBA,EAAiBC,QAAO,MAAQ,KAG/Cb,EADAc,oBAAoBF,GAAkBxB,EAAM,gBACjC0B,oBAAoBF,GAAkBxB,EAAM,gBAE5CiB,kBAAkBU,UAK7B,IAAOlB,EAAaY,QAAQ,KAC9BrB,EAAM,cAAgB,SAEtBA,EAAM,cAAgB,SAIxBA,EAAM,eACJ,YAAcS,GAAgB,WAAaA,EACvC,IACAmB,SAASnB,EAAc,IAEzBE,IAEE,EAAIC,EAASiB,QAAU5B,EAAQ6B,SACjCnB,EAAeoB,WAGfpB,EAAeqB,aAGjBrB,EAAesB,OAAOC,QAAUtB,EAChCD,EAAewB,iBAAmB,GAClCxB,EAAeyB,UAEVxB,EAASyB,SAAS5B,GAIrBE,EAAe2B,eAAe,eAAgB7B,GAF9CE,EAAe2B,eAAe,eAAgB,YAMlDpC,GAAGqC,MAAMC,UACP,wCACA,SACA,SAAUC,GACJ9B,GAAuC8B,EAAY1C,OAM7D2C,OAAOC,UAAUC,OAAM,WACrBC,EAAEC,KAAKC,yBAAyB,SAAUhD,GACxCD,EAA8CC,GAE9CG,GAAGC,UAAUJ,GAAI,SAAUC,GACzBA,EAAMgD,MAAK,SAAUC,GACnBnD,EAA8CC,EAAIkD","sources":["src/control.js"],"sourcesContent":["import \"./control.scss\";\n\n/* global kirkiTypographyControls, kirkiGoogleFonts, kirkiFontVariants */\nfunction kirkiTypographyCompositeControlFontProperties(id, value) {\n const control = wp.customize.control(id);\n\n if (\"undefined\" === typeof control) {\n return;\n }\n\n value = value || control.setting.get();\n\n const isGoogle =\n value[\"font-family\"] && kirkiGoogleFonts.items[value[\"font-family\"]];\n const variantValue = value[\"variant\"]\n ? value[\"variant\"].toString()\n : \"regular\";\n const variantControl = wp.customize.control(id + \"[variant]\");\n\n const sortVariants = function (a, b) {\n if (a < b) return -1;\n if (a > b) return 1;\n return 0;\n };\n\n let variants = [];\n\n if (isGoogle) {\n let gFontVariants = kirkiGoogleFonts.items[value[\"font-family\"]].variants;\n gFontVariants.sort(sortVariants);\n\n kirkiFontVariants.complete.forEach(function (variant) {\n if (-1 !== gFontVariants.indexOf(variant.value)) {\n variants.push({\n value: variant.value,\n label: variant.label,\n });\n }\n });\n } else {\n\t\tlet customVariantKey = id.replace(/]/g, '');\n\t\tcustomVariantKey = customVariantKey.replace(/\\[/g, '_');\n\n\t\tif (kirkiCustomVariants[customVariantKey][value[\"font-family\"]]) {\n variants = kirkiCustomVariants[customVariantKey][value[\"font-family\"]];\n } else {\n variants = kirkiFontVariants.standard;\n }\n }\n\n // Set the font-style value.\n if (-1 !== variantValue.indexOf(\"i\")) {\n value[\"font-style\"] = \"italic\";\n } else {\n value[\"font-style\"] = \"normal\";\n }\n\n // Set the font-weight value.\n value[\"font-weight\"] =\n \"regular\" === variantValue || \"italic\" === variantValue\n ? 400\n : parseInt(variantValue, 10);\n\n if (variantControl) {\n // Hide/show variant options depending on which are available for this font-family.\n if (1 < variants.length && control.active()) {\n variantControl.activate();\n } else {\n // If there's only 1 variant to choose from, we can hide the control.\n variantControl.deactivate();\n }\n\n variantControl.params.choices = variants;\n variantControl.formattedOptions = [];\n variantControl.destroy();\n\n if (!variants.includes(variantValue)) {\n // If the selected font-family doesn't support the currently selected variant, switch to \"regular\".\n variantControl.doSelectAction(\"selectOption\", \"regular\");\n } else {\n variantControl.doSelectAction(\"selectOption\", variantValue);\n }\n }\n\n wp.hooks.addAction(\n \"kirki.dynamicControl.initKirkiControl\",\n \"kirki\",\n function (controlInit) {\n if (variantControl && id + \"[variant]\" === controlInit.id) {\n }\n }\n );\n}\n\njQuery(document).ready(function () {\n _.each(kirkiTypographyControls, function (id) {\n kirkiTypographyCompositeControlFontProperties(id);\n\n wp.customize(id, function (value) {\n value.bind(function (newval) {\n kirkiTypographyCompositeControlFontProperties(id, newval);\n });\n });\n });\n});\n"],"names":["$1abc80d3e2df1201$var$kirkiTypographyCompositeControlFontProperties","id","value","control","wp","customize","isGoogle","setting","get","kirkiGoogleFonts","items","variantValue","toString","variantControl","variants","gFontVariants","sort","a","b","kirkiFontVariants","complete","forEach","variant","indexOf","push","label","customVariantKey","replace","kirkiCustomVariants","standard","parseInt","length","active","activate","deactivate","params","choices","formattedOptions","destroy","includes","doSelectAction","hooks","addAction","controlInit","jQuery","document","ready","_","each","kirkiTypographyControls","bind","newval"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-typography/dist/preview.js b/functions/kirki/kirki-packages/field-typography/dist/preview.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-typography/dist/preview.js
rename to functions/kirki/kirki-packages/field-typography/dist/preview.js
diff --git a/functions/kirki/kirki-packages/field-typography/dist/preview.js.map b/functions/kirki/kirki-packages/field-typography/dist/preview.js.map
new file mode 100644
index 0000000..6b7b648
--- /dev/null
+++ b/functions/kirki/kirki-packages/field-typography/dist/preview.js.map
@@ -0,0 +1 @@
+{"mappings":"AAKAA,OAAOC,UAAUC,OAAM,WACrBC,GAAGC,MAAMC,UACP,+BACA,SAWA,SAAUC,EAAQC,EAAOC,EAAQC,GAC/B,IACEC,EADEC,EAAa,GAoEjB,OAjEIJ,EAAMK,UACRL,EAAM,eACJ,YAAcA,EAAMK,SAAW,WAAaL,EAAMK,QAC9C,IACAC,SAASN,EAAMK,QAAS,IAE9BL,EAAM,cAAgBA,EAAMK,QAAQE,SAAS,UACzC,SACA,UAGF,qBAAuBL,IACzBH,GAAUE,EAAOO,QAAU,IAE3BC,EAAEC,KAAKV,GAAO,SAAUW,EAAKC,GACvBX,EAAOY,QAAUD,IAAQX,EAAOY,QAIhC,YAAcD,IASd,KALJT,EAAiBW,OAAOC,iBAAiBC,KAAKC,aAC5ChB,EACAU,MAIAZ,GAAUa,EAAM,IAAMT,EAAiB,QAI3CJ,GAAU,KAIPU,EAAES,YAAYJ,OAAOK,UACtBnB,EAAM,gBACNoB,qBAAqBb,SAASP,EAAM,kBAGpCI,EAAaJ,EAAM,eAAeqB,QAAO,MAAQ,UAE7CrB,EAAMK,UACJ,YAAcL,EAAMK,QACtBD,GAAc,OACL,WAAaJ,EAAMK,QAC5BD,GAAc,QAEdA,GAAc,IAAMJ,EAAMK,SAI9BD,GACE,sIAEFU,OAAOK,QAAQG,KAAK,CAClBC,OAAQ,CACNC,SAAU,CAACpB,QAMZL","sources":["src/preview.js"],"sourcesContent":["/**\n * Hook in the kirkiPostMessageStylesOutput filter.\n *\n * Handles postMessage styles for typography controls.\n */\njQuery(document).ready(function () {\n wp.hooks.addFilter(\n \"kirkiPostMessageStylesOutput\",\n \"kirki\",\n\n /**\n * Append styles for this control.\n *\n * @param {string} styles - The styles.\n * @param {Object} value - The control value.\n * @param {Object} output - The control's \"output\" argument.\n * @param {string} controlType - The control type.\n * @returns {string} - Returns the CSS as a string.\n */\n function (styles, value, output, controlType) {\n var googleFont = \"\",\n processedValue;\n\n if (value.variant) {\n value[\"font-weight\"] =\n \"regular\" === value.variant || \"italic\" === value.variant\n ? 400\n : parseInt(value.variant, 10);\n\n value[\"font-style\"] = value.variant.includes(\"italic\")\n ? \"italic\"\n : \"normal\";\n }\n\n if (\"kirki-typography\" === controlType) {\n styles += output.element + \"{\";\n\n _.each(value, function (val, key) {\n if (output.choice && key !== output.choice) {\n return;\n }\n\n if (\"variant\" === key) {\n return;\n }\n\n processedValue = window.kirkiPostMessage.util.processValue(\n output,\n val\n );\n\n if (false !== processedValue) {\n styles += key + \":\" + processedValue + \";\";\n }\n });\n\n styles += \"}\";\n\n // Check if this is a googlefont so that we may load it.\n if (\n !_.isUndefined(window.WebFont) &&\n value[\"font-family\"] &&\n kirkiGoogleFontNames.includes(value[\"font-family\"])\n ) {\n // Calculate the googlefont params.\n googleFont = value[\"font-family\"].replace(/\\\"/g, \""\"); // eslint-disable-line no-useless-escape\n\n if (value.variant) {\n if (\"regular\" === value.variant) {\n googleFont += \":400\";\n } else if (\"italic\" === value.variant) {\n googleFont += \":400i\";\n } else {\n googleFont += \":\" + value.variant;\n }\n }\n\n googleFont +=\n \":cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai\";\n\n window.WebFont.load({\n google: {\n families: [googleFont],\n },\n });\n }\n }\n\n return styles;\n }\n );\n});\n"],"names":["jQuery","document","ready","wp","hooks","addFilter","styles","value","output","controlType","processedValue","googleFont","variant","parseInt","includes","element","_","each","val","key","choice","window","kirkiPostMessage","util","processValue","isUndefined","WebFont","kirkiGoogleFontNames","replace","load","google","families"],"version":3,"file":"preview.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-typography/src/Field/CSS/Typography.php b/functions/kirki/kirki-packages/field-typography/src/Field/CSS/Typography.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/field-typography/src/Field/CSS/Typography.php
rename to functions/kirki/kirki-packages/field-typography/src/Field/CSS/Typography.php
index 0d9cbfd..2570873 100644
--- a/functions/kirki/packages/kirki-framework/field-typography/src/Field/CSS/Typography.php
+++ b/functions/kirki/kirki-packages/field-typography/src/Field/CSS/Typography.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-typography/src/Field/Typography.php b/functions/kirki/kirki-packages/field-typography/src/Field/Typography.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/field-typography/src/Field/Typography.php
rename to functions/kirki/kirki-packages/field-typography/src/Field/Typography.php
index 14362aa..76f2b7c 100644
--- a/functions/kirki/packages/kirki-framework/field-typography/src/Field/Typography.php
+++ b/functions/kirki/kirki-packages/field-typography/src/Field/Typography.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-typography
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/field-typography/src/control.js b/functions/kirki/kirki-packages/field-typography/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-typography/src/control.js
rename to functions/kirki/kirki-packages/field-typography/src/control.js
diff --git a/functions/kirki/kirki-packages/field-typography/src/control.scss b/functions/kirki/kirki-packages/field-typography/src/control.scss
new file mode 100644
index 0000000..250d0b5
--- /dev/null
+++ b/functions/kirki/kirki-packages/field-typography/src/control.scss
@@ -0,0 +1,23 @@
+.customize-control-kirki[data-kirki-parent-control-type="kirki-typography"] {
+ margin-bottom: 10px;
+
+ .customize-control-title {
+ margin-bottom: 0;
+ font-weight: 500;
+ font-size: 12px;
+ }
+}
+
+.customize-control-kirki[data-kirki-typography-css-prop="text-decoration"] {
+ margin-bottom: 15px;
+}
+
+.kirki-typography-end {
+ margin-top: 8px;
+ margin-bottom: 8px;
+
+ hr {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+}
diff --git a/functions/kirki/packages/kirki-framework/field-typography/src/preview.js b/functions/kirki/kirki-packages/field-typography/src/preview.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/field-typography/src/preview.js
rename to functions/kirki/kirki-packages/field-typography/src/preview.js
diff --git a/functions/kirki/packages/kirki-framework/module-editor-styles/LICENSE b/functions/kirki/kirki-packages/field/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-editor-styles/LICENSE
rename to functions/kirki/kirki-packages/field/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/field/src/Field.php b/functions/kirki/kirki-packages/field/src/Field.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/field/src/Field.php
rename to functions/kirki/kirki-packages/field/src/Field.php
index b3d8ebd..5103775 100644
--- a/functions/kirki/packages/kirki-framework/field/src/Field.php
+++ b/functions/kirki/kirki-packages/field/src/Field.php
@@ -3,7 +3,7 @@
* WordPress Customizer API abstraction.
*
* @package kirki-framework/field
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 0.1
*/
@@ -199,7 +199,7 @@ abstract class Field {
$args = $this->args;
// This is for postMessage purpose.
- // @see wp-content/plugins/kirki/packages/kirki-framework/module-postmessage/src/Postmessage.php inside 'field_add_setting_args' method.
+ // @see wp-content/plugins/kirki/kirki-packages/module-postmessage/src/Postmessage.php inside 'field_add_setting_args' method.
$args['type'] = isset( $this->type ) ? $this->type : '';
/**
diff --git a/functions/kirki/packages/kirki-framework/field/src/Field/None.php b/functions/kirki/kirki-packages/field/src/Field/None.php
similarity index 81%
rename from functions/kirki/packages/kirki-framework/field/src/Field/None.php
rename to functions/kirki/kirki-packages/field/src/Field/None.php
index 989583f..3de0151 100644
--- a/functions/kirki/packages/kirki-framework/field/src/Field/None.php
+++ b/functions/kirki/kirki-packages/field/src/Field/None.php
@@ -3,7 +3,7 @@
* Override field methods
*
* @package kirki-framework/control-typography
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/kirki-packages/googlefonts/Gruntfile.js b/functions/kirki/kirki-packages/googlefonts/Gruntfile.js
new file mode 100644
index 0000000..8bc5117
--- /dev/null
+++ b/functions/kirki/kirki-packages/googlefonts/Gruntfile.js
@@ -0,0 +1,91 @@
+/* global module */
+module.exports = function( grunt ) {
+
+ grunt.initConfig( {
+
+ // Get json file from the google-fonts API
+ http: {
+ 'google-fonts-alpha': {
+ options: { url: 'https://www.googleapis.com/webfonts/v1/webfonts?sort=alpha&key=AIzaSyCDiOc36EIOmwdwspLG3LYwCg9avqC5YLs' },
+ dest: 'src/webfonts-alpha.json'
+ },
+ 'google-fonts-popularity': {
+ options: { url: 'https://www.googleapis.com/webfonts/v1/webfonts?sort=popularity&key=AIzaSyCDiOc36EIOmwdwspLG3LYwCg9avqC5YLs' },
+ dest: 'src/webfonts-popularity.json'
+ },
+ 'google-fonts-trending': {
+ options: { url: 'https://www.googleapis.com/webfonts/v1/webfonts?sort=trending&key=AIzaSyCDiOc36EIOmwdwspLG3LYwCg9avqC5YLs' },
+ dest: 'src/webfonts-trending.json'
+ }
+ }
+ } );
+
+ grunt.loadNpmTasks( 'grunt-http' );
+ grunt.registerTask( 'googlefontsProcess', function() {
+ var alphaFonts,
+ popularityFonts,
+ trendingFonts,
+ finalObject = {
+ items: {},
+ order: {
+ alpha: [],
+ popularity: [],
+ trending: []
+ }
+ },
+ finalJSON,
+ i,
+ fontFiles = {},
+ fontNames = [];
+
+ // Get file contents.
+ alphaFonts = grunt.file.readJSON( 'src/webfonts-alpha.json' );
+ popularityFonts = grunt.file.readJSON( 'src/webfonts-popularity.json' );
+ trendingFonts = grunt.file.readJSON( 'src/webfonts-trending.json' );
+
+ // Add the alpha order.
+ for ( i = 0; i < alphaFonts.items.length; i++ ) {
+ finalObject.order.alpha.push( alphaFonts.items[ i ].family );
+ }
+
+ for ( i = 0; i < popularityFonts.items.length; i++ ) {
+
+ // Populate the fonts.
+ finalObject.items[ alphaFonts.items[ i ].family ] = {
+ family: alphaFonts.items[ i ].family,
+ category: alphaFonts.items[ i ].category,
+ variants: alphaFonts.items[ i ].variants.sort()
+ };
+
+ // Add the popularity order.
+ finalObject.order.popularity.push( popularityFonts.items[ i ].family );
+ fontNames.push( popularityFonts.items[ i ].family );
+ }
+
+ // Add the trending order.
+ for ( i = 0; i < trendingFonts.items.length; i++ ) {
+ finalObject.order.trending.push( trendingFonts.items[ i ].family );
+ }
+
+ // Generate the font-files object.
+ for ( i = 0; i < popularityFonts.items.length; i++ ) {
+ fontFiles[ popularityFonts.items[ i ].family ] = popularityFonts.items[ i ].files;
+ }
+
+ // Write the final object to json.
+ finalJSON = JSON.stringify( finalObject );
+ grunt.file.write( 'src/webfonts.json', finalJSON );
+ grunt.file.write( 'src/webfont-names.json', JSON.stringify( fontNames ) );
+ grunt.file.write( 'src/webfont-files.json', JSON.stringify( fontFiles ) );
+
+ // Delete files no longer needed.
+ grunt.file.delete( 'src/webfonts-alpha.json' ); // jshint ignore:line
+ grunt.file.delete( 'src/webfonts-popularity.json' ); // jshint ignore:line
+ grunt.file.delete( 'src/webfonts-trending.json' ); // jshint ignore:line
+ } );
+ grunt.registerTask( 'googlefonts', function() {
+ grunt.task.run( 'http' );
+ grunt.task.run( 'googlefontsProcess' );
+ } );
+ grunt.registerTask( 'default', [ 'googlefonts' ] );
+};
diff --git a/functions/kirki/packages/kirki-framework/module-section-icons/LICENSE b/functions/kirki/kirki-packages/googlefonts/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-section-icons/LICENSE
rename to functions/kirki/kirki-packages/googlefonts/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/googlefonts/src/GoogleFonts.php b/functions/kirki/kirki-packages/googlefonts/src/GoogleFonts.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/googlefonts/src/GoogleFonts.php
rename to functions/kirki/kirki-packages/googlefonts/src/GoogleFonts.php
index 544a22a..48d47d0 100644
--- a/functions/kirki/packages/kirki-framework/googlefonts/src/GoogleFonts.php
+++ b/functions/kirki/kirki-packages/googlefonts/src/GoogleFonts.php
@@ -4,8 +4,8 @@
* and generates the google-font link.
*
* @package kirki-framework/googlefonts
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/googlefonts/src/webfont-files.json b/functions/kirki/kirki-packages/googlefonts/src/webfont-files.json
similarity index 100%
rename from functions/kirki/packages/kirki-framework/googlefonts/src/webfont-files.json
rename to functions/kirki/kirki-packages/googlefonts/src/webfont-files.json
diff --git a/functions/kirki/packages/kirki-framework/googlefonts/src/webfont-names.json b/functions/kirki/kirki-packages/googlefonts/src/webfont-names.json
similarity index 100%
rename from functions/kirki/packages/kirki-framework/googlefonts/src/webfont-names.json
rename to functions/kirki/kirki-packages/googlefonts/src/webfont-names.json
diff --git a/functions/kirki/packages/kirki-framework/googlefonts/src/webfonts.json b/functions/kirki/kirki-packages/googlefonts/src/webfonts.json
similarity index 100%
rename from functions/kirki/packages/kirki-framework/googlefonts/src/webfonts.json
rename to functions/kirki/kirki-packages/googlefonts/src/webfonts.json
diff --git a/functions/kirki/packages/kirki-framework/module-panels/LICENSE b/functions/kirki/kirki-packages/l10n/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-panels/LICENSE
rename to functions/kirki/kirki-packages/l10n/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/l10n/src/L10n.php b/functions/kirki/kirki-packages/l10n/src/L10n.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/l10n/src/L10n.php
rename to functions/kirki/kirki-packages/l10n/src/L10n.php
index 59e8c36..677069a 100644
--- a/functions/kirki/packages/kirki-framework/l10n/src/L10n.php
+++ b/functions/kirki/kirki-packages/l10n/src/L10n.php
@@ -5,8 +5,8 @@
* Inspired by Justin Tadlock and the work he did with hybrid-core.
*
* @package kirki-framework/l10n
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/util/LICENSE b/functions/kirki/kirki-packages/module-css/LICENSE
similarity index 100%
rename from functions/kirki/packages/kirki-framework/util/LICENSE
rename to functions/kirki/kirki-packages/module-css/LICENSE
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS.php b/functions/kirki/kirki-packages/module-css/src/CSS.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS.php
rename to functions/kirki/kirki-packages/module-css/src/CSS.php
index 393d73c..2a22a44 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Modules
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php b/functions/kirki/kirki-packages/module-css/src/CSS/Generator.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php
rename to functions/kirki/kirki-packages/module-css/src/CSS/Generator.php
index 88cfb5b..bb00ba7 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Generator.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS/Generator.php
@@ -5,8 +5,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Output.php b/functions/kirki/kirki-packages/module-css/src/CSS/Output.php
similarity index 99%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS/Output.php
rename to functions/kirki/kirki-packages/module-css/src/CSS/Output.php
index b39cda9..2db8966 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Output.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS/Output.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property.php b/functions/kirki/kirki-packages/module-css/src/CSS/Property.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS/Property.php
rename to functions/kirki/kirki-packages/module-css/src/CSS/Property.php
index fe81d9b..f0c06fc 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS/Property.php
@@ -5,7 +5,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Background_Image.php b/functions/kirki/kirki-packages/module-css/src/CSS/Property/Background_Image.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Background_Image.php
rename to functions/kirki/kirki-packages/module-css/src/CSS/Property/Background_Image.php
index db6656c..a5574c1 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Background_Image.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS/Property/Background_Image.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Background_Position.php b/functions/kirki/kirki-packages/module-css/src/CSS/Property/Background_Position.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Background_Position.php
rename to functions/kirki/kirki-packages/module-css/src/CSS/Property/Background_Position.php
index 3d29617..2c6bf8d 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Background_Position.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS/Property/Background_Position.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Font_Family.php b/functions/kirki/kirki-packages/module-css/src/CSS/Property/Font_Family.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Font_Family.php
rename to functions/kirki/kirki-packages/module-css/src/CSS/Property/Font_Family.php
index 823055d..5306c87 100644
--- a/functions/kirki/packages/kirki-framework/module-css/src/CSS/Property/Font_Family.php
+++ b/functions/kirki/kirki-packages/module-css/src/CSS/Property/Font_Family.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Controls
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 2.2.0
*/
diff --git a/functions/kirki/kirki-packages/module-editor-styles/LICENSE b/functions/kirki/kirki-packages/module-editor-styles/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-editor-styles/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-editor-styles/src/Editor_Styles.php b/functions/kirki/kirki-packages/module-editor-styles/src/Editor_Styles.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/module-editor-styles/src/Editor_Styles.php
rename to functions/kirki/kirki-packages/module-editor-styles/src/Editor_Styles.php
index 0bb3a6f..25be264 100644
--- a/functions/kirki/packages/kirki-framework/module-editor-styles/src/Editor_Styles.php
+++ b/functions/kirki/kirki-packages/module-editor-styles/src/Editor_Styles.php
@@ -9,7 +9,7 @@
* @package Kirki
* @category Core
* @author Tim Elsass
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.35
*/
diff --git a/functions/kirki/kirki-packages/module-field-dependencies/LICENSE b/functions/kirki/kirki-packages/module-field-dependencies/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-field-dependencies/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-field-dependencies/dist/control.js b/functions/kirki/kirki-packages/module-field-dependencies/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-field-dependencies/dist/control.js
rename to functions/kirki/kirki-packages/module-field-dependencies/dist/control.js
diff --git a/functions/kirki/kirki-packages/module-field-dependencies/dist/control.js.map b/functions/kirki/kirki-packages/module-field-dependencies/dist/control.js.map
new file mode 100644
index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AAYF,GAG7CC,GAAUC,IAIrBM,OAAOpC,UAAUqC,OAAM,WACrBrE,EAAkBE","sources":["src/control.js"],"sourcesContent":["var kirkiDependencies = {\n dependencyControls: {},\n\n init: function () {\n var self = this;\n\n _.each(\n window.kirkiControlDependencies,\n function (requirements, dependantID) {\n var control = wp.customize.control(dependantID);\n\n if (control) {\n requirements = self.addSettingLink(requirements);\n\n wp.customize.control(dependantID).params.required = requirements;\n self.showKirkiControl(control);\n }\n }\n );\n\n _.each(self.dependencyControls, function (dependency, dependencySetting) {\n _.each(dependency.childrens, function (childrenSetting) {\n wp.customize(dependency.settingLink, function (setting) {\n var setupControl = function (control) {\n var setActiveState;\n var isDisplayed;\n\n isDisplayed = function () {\n return self.showKirkiControl(\n wp.customize.control(childrenSetting)\n );\n };\n\n setActiveState = function () {\n control.active.set(isDisplayed());\n };\n\n setActiveState();\n setting.bind(setActiveState);\n\n control.active.validate = isDisplayed;\n };\n\n wp.customize.control(childrenSetting, setupControl);\n });\n });\n });\n },\n\n /**\n * Get the actual customize setting link of a control.\n *\n * @since 1.0.3\n * @param {string} controlID The ID of the control.\n * @return {string} The setting link.\n */\n getSettingLink: function (controlID) {\n var control = document.querySelector(\n '[data-kirki-setting=\"' + controlID + '\"]'\n );\n var setting = controlID;\n\n if (control) {\n if (controlID !== control.dataset.kirkiSettingLink) {\n setting = control.dataset.kirkiSettingLink;\n }\n }\n\n return setting;\n },\n\n addSettingLink: function (requirements) {\n\t\tconst self = this;\n\n requirements.forEach(function (requirement, requirementIndex) {\n if (requirement.setting) {\n requirements[requirementIndex].settingLink = self.getSettingLink(\n requirement.setting\n );\n } else {\n // If `requirement` is an array, then it has nested dependencies, so let's loop it.\n if (requirement.length) {\n requirements[requirementIndex] = self.addSettingLink(\n requirements[requirementIndex]\n );\n }\n }\n });\n\n return requirements;\n },\n\n /**\n * Should we show the control?\n *\n * @since 3.0.17\n * @param {string|object} control - The control-id or the control object.\n * @returns {bool} - Whether the control should be shown or not.\n */\n showKirkiControl: function (control) {\n const self = this;\n let show = true;\n\n let i;\n\n if (_.isString(control)) {\n control = wp.customize.control(control);\n }\n\n // Exit early if control not found or if \"required\" argument is not defined.\n if (\n \"undefined\" === typeof control ||\n (control.params && _.isEmpty(control.params.required))\n ) {\n return true;\n }\n\n // Loop control requirements.\n for (i = 0; i < control.params.required.length; i++) {\n if (!self.checkCondition(control.params.required[i], control, \"AND\")) {\n show = false;\n }\n }\n\n return show;\n },\n\n /**\n * Check a condition.\n *\n * @param {Object} dependency - The dependency, inherited from showKirkiControl.\n * @param {Object} dependantControl - The dependant control object.\n * @param {string} relation - Can be one of 'AND' or 'OR'.\n * @returns {bool} - Returns the results of the condition checks.\n */\n checkCondition: function (dependency, dependantControl, relation) {\n let self = this;\n let childRelation = \"AND\" === relation ? \"OR\" : \"AND\";\n let nestedItems;\n let value;\n let i;\n\n // If dependency has nested dependants, we need to process them separately.\n if (\n \"undefined\" !== typeof dependency[0] &&\n \"undefined\" === typeof dependency.setting\n ) {\n nestedItems = [];\n\n // Loop sub-dependencies.\n for (i = 0; i < dependency.length; i++) {\n nestedItems.push(\n self.checkCondition(dependency[i], dependantControl, childRelation)\n );\n }\n\n // OR relation. Check that true is part of the array.\n if (\"OR\" === childRelation) {\n return -1 !== nestedItems.indexOf(true);\n }\n\n // AND relation. Check that false is not part of the array.\n return -1 === nestedItems.indexOf(false);\n } // End of nested dependants processing.\n\n if (\"undefined\" === typeof wp.customize.control(dependency.setting)) {\n // Early exit if setting is not defined.\n return true;\n }\n\n if (!self.dependencyControls[dependency.setting]) {\n self.dependencyControls[dependency.setting] = {\n settingLink: dependency.settingLink,\n childrens: [],\n };\n }\n\n if (\n !self.dependencyControls[dependency.setting].childrens.includes(\n dependantControl.id\n )\n ) {\n self.dependencyControls[dependency.setting].childrens.push(\n dependantControl.id\n );\n }\n\n if (!dependency.settingLink) {\n // console.log(dependency);\n // console.log(dependantControl);\n console.log(self.dependencyControls);\n console.log(\"--------\");\n }\n\n value = wp.customize(dependency.settingLink).get();\n\n if (wp.customize.control(dependency.setting).setting) {\n value = wp.customize.control(dependency.setting).setting._value;\n }\n\n return self.evaluate(\n dependency.value,\n value,\n dependency.operator,\n dependency.choice\n );\n },\n\n /**\n * Figure out if the 2 values have the relation we want.\n *\n * @since 3.0.17\n * @param {mixed} value1 - The 1st value.\n * @param {mixed} value2 - The 2nd value.\n * @param {string} operator - The comparison to use.\n * @param {string} choice - If we want to check an item in an object value.\n * @returns {bool} - Returns the evaluation result.\n */\n evaluate: function (value1, value2, operator, choice) {\n var found = false;\n\n if (choice && \"object\" === typeof value2) {\n value2 = value2[choice];\n }\n\n if (\"===\" === operator) {\n return value1 === value2;\n }\n\n if (\n \"==\" === operator ||\n \"=\" === operator ||\n \"equals\" === operator ||\n \"equal\" === operator\n ) {\n return value1 == value2;\n }\n\n if (\"!==\" === operator) {\n return value1 !== value2;\n }\n\n if (\"!=\" === operator || \"not equal\" === operator) {\n return value1 != value2;\n }\n\n if (\n \">=\" === operator ||\n \"greater or equal\" === operator ||\n \"equal or greater\" === operator\n ) {\n return value2 >= value1;\n }\n\n if (\n \"<=\" === operator ||\n \"smaller or equal\" === operator ||\n \"equal or smaller\" === operator\n ) {\n return value2 <= value1;\n }\n\n if (\">\" === operator || \"greater\" === operator) {\n return value2 > value1;\n }\n\n if (\"<\" === operator || \"smaller\" === operator) {\n return value2 < value1;\n }\n\n if (\"contains\" === operator || \"in\" === operator) {\n if (_.isArray(value1) && _.isArray(value2)) {\n _.each(value2, function (value) {\n if (value1.includes(value)) {\n found = true;\n return false;\n }\n });\n\n return found;\n }\n\n if (_.isArray(value2)) {\n _.each(value2, function (value) {\n if (value == value1) {\n // jshint ignore:line\n found = true;\n }\n });\n return found;\n }\n\n if (_.isObject(value2)) {\n if (!_.isUndefined(value2[value1])) {\n found = true;\n }\n _.each(value2, function (subValue) {\n if (value1 === subValue) {\n found = true;\n }\n });\n return found;\n }\n\n if (_.isString(value2)) {\n if (_.isString(value1)) {\n return -1 < value1.indexOf(value2) && -1 < value2.indexOf(value1);\n }\n return -1 < value1.indexOf(value2);\n }\n }\n\n if (\"does not contain\" === operator || \"not in\" === operator) {\n return !this.evaluate(value1, value2, \"contains\", choice);\n }\n\n return value1 == value2;\n },\n};\n\njQuery(document).ready(function () {\n kirkiDependencies.init();\n});\n"],"names":["$1abc80d3e2df1201$var$kirkiDependencies","dependencyControls","init","self","this","_","each","window","kirkiControlDependencies","requirements","dependantID","control","wp","customize","addSettingLink","params","required","showKirkiControl","dependency","dependencySetting","childrens","childrenSetting","settingLink","setting","setActiveState","isDisplayed","active","set","bind","validate","getSettingLink","controlID","document","querySelector","dataset","kirkiSettingLink","forEach","requirement","requirementIndex","length","i","show","isString","isEmpty","checkCondition","dependantControl","relation","nestedItems","value","childRelation","push","indexOf","includes","id","console","log","get","_value","evaluate","operator","choice","value1","value2","found","isArray","isObject","isUndefined","subValue","jQuery","ready"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/module-field-dependencies/src/Field_Dependencies.php b/functions/kirki/kirki-packages/module-field-dependencies/src/Field_Dependencies.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/module-field-dependencies/src/Field_Dependencies.php
rename to functions/kirki/kirki-packages/module-field-dependencies/src/Field_Dependencies.php
index dbd5c59..7af72cc 100644
--- a/functions/kirki/packages/kirki-framework/module-field-dependencies/src/Field_Dependencies.php
+++ b/functions/kirki/kirki-packages/module-field-dependencies/src/Field_Dependencies.php
@@ -3,8 +3,8 @@
* Automatic field-dependencies scripts calculation for Kirki controls.
*
* @package kirki-framework/module-field-dependencies
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-field-dependencies/src/control.js b/functions/kirki/kirki-packages/module-field-dependencies/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-field-dependencies/src/control.js
rename to functions/kirki/kirki-packages/module-field-dependencies/src/control.js
diff --git a/functions/kirki/kirki-packages/module-panels/LICENSE b/functions/kirki/kirki-packages/module-panels/LICENSE
new file mode 100644
index 0000000..39ac926
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-panels/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Kirki Framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-panels/src/Panel.php b/functions/kirki/kirki-packages/module-panels/src/Panel.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/module-panels/src/Panel.php
rename to functions/kirki/kirki-packages/module-panels/src/Panel.php
index c97df1d..78f72d2 100644
--- a/functions/kirki/packages/kirki-framework/module-panels/src/Panel.php
+++ b/functions/kirki/kirki-packages/module-panels/src/Panel.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Custom Sections Module
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-panels/src/Panel_Types/Nested.php b/functions/kirki/kirki-packages/module-panels/src/Panel_Types/Nested.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/module-panels/src/Panel_Types/Nested.php
rename to functions/kirki/kirki-packages/module-panels/src/Panel_Types/Nested.php
index b0c5675..cd9476b 100644
--- a/functions/kirki/packages/kirki-framework/module-panels/src/Panel_Types/Nested.php
+++ b/functions/kirki/kirki-packages/module-panels/src/Panel_Types/Nested.php
@@ -4,7 +4,7 @@
*
* @package Kirki
* @subpackage Custom Sections Module
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-panels/src/script.js b/functions/kirki/kirki-packages/module-panels/src/script.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-panels/src/script.js
rename to functions/kirki/kirki-packages/module-panels/src/script.js
diff --git a/functions/kirki/kirki-packages/module-postmessage/LICENSE b/functions/kirki/kirki-packages/module-postmessage/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-postmessage/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-postmessage/src/Postmessage.php b/functions/kirki/kirki-packages/module-postmessage/src/Postmessage.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/module-postmessage/src/Postmessage.php
rename to functions/kirki/kirki-packages/module-postmessage/src/Postmessage.php
index a86432e..9dd4ab1 100644
--- a/functions/kirki/packages/kirki-framework/module-postmessage/src/Postmessage.php
+++ b/functions/kirki/kirki-packages/module-postmessage/src/Postmessage.php
@@ -3,8 +3,8 @@
* Automatic postMessage scripts calculation for Kirki controls.
*
* @package kirki-framework/module-postmessage
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-postmessage/src/postMessage.js b/functions/kirki/kirki-packages/module-postmessage/src/postMessage.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-postmessage/src/postMessage.js
rename to functions/kirki/kirki-packages/module-postmessage/src/postMessage.js
diff --git a/functions/kirki/kirki-packages/module-preset/LICENSE b/functions/kirki/kirki-packages/module-preset/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-preset/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-preset/src/Preset.php b/functions/kirki/kirki-packages/module-preset/src/Preset.php
similarity index 93%
rename from functions/kirki/packages/kirki-framework/module-preset/src/Preset.php
rename to functions/kirki/kirki-packages/module-preset/src/Preset.php
index 55f3ba1..2d62aee 100644
--- a/functions/kirki/packages/kirki-framework/module-preset/src/Preset.php
+++ b/functions/kirki/kirki-packages/module-preset/src/Preset.php
@@ -3,8 +3,8 @@
* Automatic preset scripts calculation for Kirki controls.
*
* @package kirki-framework/module-preset
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-preset/src/script.js b/functions/kirki/kirki-packages/module-preset/src/script.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-preset/src/script.js
rename to functions/kirki/kirki-packages/module-preset/src/script.js
diff --git a/functions/kirki/kirki-packages/module-section-icons/LICENSE b/functions/kirki/kirki-packages/module-section-icons/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-section-icons/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-section-icons/src/Section_Icons.php b/functions/kirki/kirki-packages/module-section-icons/src/Section_Icons.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/module-section-icons/src/Section_Icons.php
rename to functions/kirki/kirki-packages/module-section-icons/src/Section_Icons.php
index 17fda98..b9ff294 100644
--- a/functions/kirki/packages/kirki-framework/module-section-icons/src/Section_Icons.php
+++ b/functions/kirki/kirki-packages/module-section-icons/src/Section_Icons.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-section-icons/src/icons.js b/functions/kirki/kirki-packages/module-section-icons/src/icons.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-section-icons/src/icons.js
rename to functions/kirki/kirki-packages/module-section-icons/src/icons.js
diff --git a/functions/kirki/kirki-packages/module-sections/LICENSE b/functions/kirki/kirki-packages/module-sections/LICENSE
new file mode 100644
index 0000000..39ac926
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-sections/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Kirki Framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/Section.php b/functions/kirki/kirki-packages/module-sections/src/Section.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/module-sections/src/Section.php
rename to functions/kirki/kirki-packages/module-sections/src/Section.php
index f4bb7f4..af4a185 100644
--- a/functions/kirki/packages/kirki-framework/module-sections/src/Section.php
+++ b/functions/kirki/kirki-packages/module-sections/src/Section.php
@@ -3,7 +3,7 @@
* Creates a new Section.
*
* @package kirki-framework/module-sections
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Expanded.php b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Expanded.php
similarity index 85%
rename from functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Expanded.php
rename to functions/kirki/kirki-packages/module-sections/src/Section_Types/Expanded.php
index 9716fdf..9562653 100644
--- a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Expanded.php
+++ b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Expanded.php
@@ -3,7 +3,7 @@
* An expanded section.
*
* @package kirki-framework/module-sections
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Link.php b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Link.php
similarity index 95%
rename from functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Link.php
rename to functions/kirki/kirki-packages/module-sections/src/Section_Types/Link.php
index cde038a..6ebc15d 100644
--- a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Link.php
+++ b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Link.php
@@ -4,7 +4,7 @@
* Inspired from https://github.com/justintadlock/trt-customizer-pro
*
* @package kirki-framework/module-sections
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Nested.php b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Nested.php
similarity index 95%
rename from functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Nested.php
rename to functions/kirki/kirki-packages/module-sections/src/Section_Types/Nested.php
index eb83c56..9fe320d 100644
--- a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Nested.php
+++ b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Nested.php
@@ -3,7 +3,7 @@
* Nested section.
*
* @package kirki-framework/module-sections
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Outer.php b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Outer.php
similarity index 85%
rename from functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Outer.php
rename to functions/kirki/kirki-packages/module-sections/src/Section_Types/Outer.php
index 2d508ae..2fb8410 100644
--- a/functions/kirki/packages/kirki-framework/module-sections/src/Section_Types/Outer.php
+++ b/functions/kirki/kirki-packages/module-sections/src/Section_Types/Outer.php
@@ -3,7 +3,7 @@
* An outer section.
*
* @package kirki-framework/module-sections
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @copyright Copyright (c) 2019, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/script.js b/functions/kirki/kirki-packages/module-sections/src/script.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-sections/src/script.js
rename to functions/kirki/kirki-packages/module-sections/src/script.js
diff --git a/functions/kirki/packages/kirki-framework/module-sections/src/styles.css b/functions/kirki/kirki-packages/module-sections/src/styles.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-sections/src/styles.css
rename to functions/kirki/kirki-packages/module-sections/src/styles.css
diff --git a/functions/kirki/kirki-packages/module-selective-refresh/LICENSE b/functions/kirki/kirki-packages/module-selective-refresh/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-selective-refresh/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-selective-refresh/src/Selective_Refresh.php b/functions/kirki/kirki-packages/module-selective-refresh/src/Selective_Refresh.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/module-selective-refresh/src/Selective_Refresh.php
rename to functions/kirki/kirki-packages/module-selective-refresh/src/Selective_Refresh.php
index 6fe0c4f..ba77ffb 100644
--- a/functions/kirki/packages/kirki-framework/module-selective-refresh/src/Selective_Refresh.php
+++ b/functions/kirki/kirki-packages/module-selective-refresh/src/Selective_Refresh.php
@@ -3,8 +3,8 @@
* Handles selective refreshes for Kirki fields.
*
* @package kirki-framework/module-selective-refresh
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/kirki-packages/module-tooltips/LICENSE b/functions/kirki/kirki-packages/module-tooltips/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-tooltips/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-tooltips/dist/control.css b/functions/kirki/kirki-packages/module-tooltips/dist/control.css
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-tooltips/dist/control.css
rename to functions/kirki/kirki-packages/module-tooltips/dist/control.css
diff --git a/functions/kirki/kirki-packages/module-tooltips/dist/control.css.map b/functions/kirki/kirki-packages/module-tooltips/dist/control.css.map
new file mode 100644
index 0000000..bb3ef6a
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-tooltips/dist/control.css.map
@@ -0,0 +1 @@
+{"mappings":"AAAA,uBACC,iBAAA,CACA,SCCD,CDCC,wCAGC,QAAA,CAFA,iBAAA,CAGA,oBAAA,CAFA,KCGF,CDEG,+DACC,WAAA,CACA,SAAA,CACA,kBAAA,CACA,aCAJ,CDIE,mDACC,cAAA,CAEA,WAAA,CADA,UCDH,CDMC,wCAWC,eAAA,CACA,iBAAA,CAVA,WAAA,CAOA,UAAA,CADA,cAAA,CADA,kBAAA,CAJA,MAAA,CAOA,iBAAA,CALA,eAAA,CAQA,SAAA,CATA,WAAA,CAHA,iBAAA,CAeA,yBAAA,CAFA,iBAAA,CARA,UAAA,CASA,UCHF,CDmBE,0CACC,aCjBH","sources":["packages/kirki-framework/module-tooltips/src/control.scss","%3Cinput%20css%20gZwkcc%3E"],"sourcesContent":[".kirki-tooltip-wrapper {\n\tposition: relative;\n\tz-index: 5; // 2 is enough, but.. just to be safe.\n\n\t.tooltip-trigger {\n\t\tposition: relative;\n\t\ttop: 0;\n\t\tleft: 3px;\n\t\ttext-decoration: none;\n\n\t\t&:hover {\n\t\t\t+ .tooltip-content {\n\t\t\t\tbottom: 32px;\n\t\t\t\topacity: 1;\n\t\t\t\tvisibility: visible;\n\t\t\t\tz-index: 99999;\n\t\t\t}\n\t\t}\n\n\t\t.dashicons {\n\t\t\tfont-size: 18px;\n\t\t\twidth: 18px;\n\t\t\theight: 18px;\n\t\t}\n\t}\n\n\t.tooltip-content {\n\t\tposition: absolute;\n\t\tbottom: 29px;\n\t\tleft: 0;\n\t\tpadding: 7px;\n\t\tmin-width: 275px;\n\t\twidth: 100%;\n\t\theight: fit-content;\n\t\tfont-size: 13px;\n\t\tcolor: #fff;\n\t\tline-height: 1.4em;\n\t\tbackground: #000;\n\t\tborder-radius: 3px;\n\t\topacity: 0;\n\t\tvisibility: hidden;\n\t\tz-index: -1;\n\t\ttransition: all 0.2s linear;\n\n\t\t/// We might want to bring it back in the future.\n\t\t// &::before {\n\t\t// \tcontent: '';\n\t\t// \tposition: absolute;\n\t\t// \tbottom: -6px;\n\t\t// \tdisplay: block;\n\t\t// \twidth: 0;\n\t\t// \theight: 0;\n\t\t// \tborder-left: 10px solid transparent;\n\t\t// \tborder-right: 10px solid transparent;\n\t\t// \tborder-top: 10px solid #000;\n\t\t// }\n\n\t\ta {\n\t\t\tcolor: #00a0d2;\n\t\t}\n\t}\n}\n\n/*# sourceMappingURL=tooltip.css.map */\n",".kirki-tooltip-wrapper {\n position: relative;\n z-index: 5;\n}\n.kirki-tooltip-wrapper .tooltip-trigger {\n position: relative;\n top: 0;\n left: 3px;\n text-decoration: none;\n}\n.kirki-tooltip-wrapper .tooltip-trigger:hover + .tooltip-content {\n bottom: 32px;\n opacity: 1;\n visibility: visible;\n z-index: 99999;\n}\n.kirki-tooltip-wrapper .tooltip-trigger .dashicons {\n font-size: 18px;\n width: 18px;\n height: 18px;\n}\n.kirki-tooltip-wrapper .tooltip-content {\n position: absolute;\n bottom: 29px;\n left: 0;\n padding: 7px;\n min-width: 275px;\n width: 100%;\n height: fit-content;\n font-size: 13px;\n color: #fff;\n line-height: 1.4em;\n background: #000;\n border-radius: 3px;\n opacity: 0;\n visibility: hidden;\n z-index: -1;\n transition: all 0.2s linear;\n}\n.kirki-tooltip-wrapper .tooltip-content a {\n color: #00a0d2;\n}\n\n/*# sourceMappingURL=tooltip.css.map */\n/*# sourceMappingURL=control.css.map */\n"],"names":[],"version":3,"file":"control.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/module-tooltips/dist/control.js b/functions/kirki/kirki-packages/module-tooltips/dist/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-tooltips/dist/control.js
rename to functions/kirki/kirki-packages/module-tooltips/dist/control.js
diff --git a/functions/kirki/kirki-packages/module-tooltips/dist/control.js.map b/functions/kirki/kirki-packages/module-tooltips/dist/control.js.map
new file mode 100644
index 0000000..ec74bb4
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-tooltips/dist/control.js.map
@@ -0,0 +1 @@
+{"mappings":"YAE0B,SACjBA,EAAiBC,GACzBC,EAAEC,KAAMC,eAAe,SAAWC,GACjC,GAAKA,EAAQC,KAAOL,EAAQK,KAIvBL,EAAQM,UAAUC,KAAM,oBAAqBC,OAAlD,CAEA,IAAMC,EAASC,SAASC,cACvB,sBAAwBP,EAAQC,GAAK,6BAGtC,GAAOI,EAAP,CACAA,EAAOG,UAAUC,IAAK,yBAGtB,IAIMC,EACL,iCAAmCV,EAAQU,QAAU,UAEhDC,EAAUC,OAAQP,GAGxBO,OATC,8FASiBC,SAAUF,GAC5BC,OAAQF,GAAUG,SAAUF,QAI9BC,OAAQN,UAAWQ,OAAO,WACzB,IAAIC,EAAe,GAEnBC,GAAGC,UAAUrB,QAAQE,MAAM,SAAWF,GAC9BmB,EAAaG,SAAUtB,EAAQuB,YACrCJ,EAAaK,KAAMxB,EAAQuB,WAG5BH,GAAGC,UAAUE,QAASvB,EAAQuB,WAAW,SAAWA,GAElDA,EAAQE,YACRL,GAAGC,UAAUK,SAASC,UAAU3B,UAAYA,EAAQK,GAEpDN,EAAiBC,GAEjBuB,EAAQE,SAASG,MAAM,SAAWH,GAC5BA,GACJ1B,EAAiBC,YAOtBgB,OAAQ,QAASa,OAChBb,OAAQ,wDAGT,IAAMc,EAAkBd,OAAQ,gCAC1Be,EAAkBf,OAAQ,oCAEhCG,EAAaa,SAAS,SAAWC,GAChCb,GAAGC,UAAUE,QAASU,GAAa,SAAWV,GAC7CA,EAAQE,SAASG,MAAM,SAAWH,GAC5BA,IAEHF,EAAQW,iBAAiB,GAAGC,aAC5BJ,EAAgBK,SAEhBN,EAAgBO,KACf,mEAGDP,EAAgBQ","sources":["packages/kirki-framework/module-tooltips/src/control.js"],"sourcesContent":["import './control.scss';\n\n/* global kirkiTooltips */\nfunction kirkiTooltipAdd( control ) {\n\t_.each( kirkiTooltips, function ( tooltip ) {\n\t\tif ( tooltip.id !== control.id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( control.container.find( '.tooltip-content' ).length ) return;\n\n\t\tconst target = document.querySelector(\n\t\t\t'#customize-control-' + tooltip.id + ' .customize-control-title'\n\t\t);\n\n\t\tif ( ! target ) return;\n\t\ttarget.classList.add( 'kirki-tooltip-wrapper' );\n\n\t\t// Build the tooltip trigger.\n\t\tconst trigger =\n\t\t\t' ';\n\n\t\t// Build the tooltip content.\n\t\tconst content =\n\t\t\t'' + tooltip.content + ' ';\n\n\t\tconst $target = jQuery( target );\n\n\t\t// Append the trigger & content next to the control's title.\n\t\tjQuery( trigger ).appendTo( $target );\n\t\tjQuery( content ).appendTo( $target );\n\t} );\n}\n\njQuery( document ).ready( function () {\n\tlet sectionNames = [];\n\n\twp.customize.control.each( function ( control ) {\n\t\tif ( ! sectionNames.includes( control.section() ) ) {\n\t\t\tsectionNames.push( control.section() );\n\t\t}\n\n\t\twp.customize.section( control.section(), function ( section ) {\n\t\t\tif (\n\t\t\t\tsection.expanded() ||\n\t\t\t\twp.customize.settings.autofocus.control === control.id\n\t\t\t) {\n\t\t\t\tkirkiTooltipAdd( control );\n\t\t\t} else {\n\t\t\t\tsection.expanded.bind( function ( expanded ) {\n\t\t\t\t\tif ( expanded ) {\n\t\t\t\t\t\tkirkiTooltipAdd( control );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t} );\n\n\tjQuery( 'head' ).append(\n\t\tjQuery( '' )\n\t);\n\n\tconst $tooltipStyleEl = jQuery( '.kirki-tooltip-inline-styles' );\n\tconst $sidebarOverlay = jQuery( '.wp-full-overlay-sidebar-content' );\n\n\tsectionNames.forEach( function ( sectionName ) {\n\t\twp.customize.section( sectionName, function ( section ) {\n\t\t\tsection.expanded.bind( function ( expanded ) {\n\t\t\t\tif ( expanded ) {\n\t\t\t\t\tif (\n\t\t\t\t\t\tsection.contentContainer[0].scrollHeight >\n\t\t\t\t\t\t$sidebarOverlay.height()\n\t\t\t\t\t) {\n\t\t\t\t\t\t$tooltipStyleEl.html(\n\t\t\t\t\t\t\t'.kirki-tooltip-wrapper span.tooltip-content {min-width: 258px;}'\n\t\t\t\t\t\t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$tooltipStyleEl.empty();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\t} );\n} );\n"],"names":["$1a3e97217cc9f59a$var$kirkiTooltipAdd","control","_","each","kirkiTooltips","tooltip","id","container","find","length","target","document","querySelector","classList","add","content","$target","jQuery","appendTo","ready","sectionNames","wp","customize","includes","section","push","expanded","settings","autofocus","bind","append","$tooltipStyleEl","$sidebarOverlay","forEach","sectionName","contentContainer","scrollHeight","height","html","empty"],"version":3,"file":"control.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/module-tooltips/src/Tooltips.php b/functions/kirki/kirki-packages/module-tooltips/src/Tooltips.php
similarity index 94%
rename from functions/kirki/packages/kirki-framework/module-tooltips/src/Tooltips.php
rename to functions/kirki/kirki-packages/module-tooltips/src/Tooltips.php
index b1ed4d4..b778432 100644
--- a/functions/kirki/packages/kirki-framework/module-tooltips/src/Tooltips.php
+++ b/functions/kirki/kirki-packages/module-tooltips/src/Tooltips.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Modules
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-tooltips/src/control.js b/functions/kirki/kirki-packages/module-tooltips/src/control.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-tooltips/src/control.js
rename to functions/kirki/kirki-packages/module-tooltips/src/control.js
diff --git a/functions/kirki/kirki-packages/module-tooltips/src/control.scss b/functions/kirki/kirki-packages/module-tooltips/src/control.scss
new file mode 100644
index 0000000..c8c0b75
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-tooltips/src/control.scss
@@ -0,0 +1,64 @@
+.kirki-tooltip-wrapper {
+ position: relative;
+ z-index: 5; // 2 is enough, but.. just to be safe.
+
+ .tooltip-trigger {
+ position: relative;
+ top: 0;
+ left: 3px;
+ text-decoration: none;
+
+ &:hover {
+ + .tooltip-content {
+ bottom: 32px;
+ opacity: 1;
+ visibility: visible;
+ z-index: 99999;
+ }
+ }
+
+ .dashicons {
+ font-size: 18px;
+ width: 18px;
+ height: 18px;
+ }
+ }
+
+ .tooltip-content {
+ position: absolute;
+ bottom: 29px;
+ left: 0;
+ padding: 7px;
+ min-width: 275px;
+ width: 100%;
+ height: fit-content;
+ font-size: 13px;
+ color: #fff;
+ line-height: 1.4em;
+ background: #000;
+ border-radius: 3px;
+ opacity: 0;
+ visibility: hidden;
+ z-index: -1;
+ transition: all 0.2s linear;
+
+ /// We might want to bring it back in the future.
+ // &::before {
+ // content: '';
+ // position: absolute;
+ // bottom: -6px;
+ // display: block;
+ // width: 0;
+ // height: 0;
+ // border-left: 10px solid transparent;
+ // border-right: 10px solid transparent;
+ // border-top: 10px solid #000;
+ // }
+
+ a {
+ color: #00a0d2;
+ }
+ }
+}
+
+/*# sourceMappingURL=tooltip.css.map */
diff --git a/functions/kirki/kirki-packages/module-webfonts/LICENSE b/functions/kirki/kirki-packages/module-webfonts/LICENSE
new file mode 100644
index 0000000..f202ade
--- /dev/null
+++ b/functions/kirki/kirki-packages/module-webfonts/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 kirki-framework
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts.php b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts.php
similarity index 96%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts.php
rename to functions/kirki/kirki-packages/module-webfonts/src/Webfonts.php
index 5910023..b318130 100644
--- a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts.php
+++ b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts.php
@@ -3,8 +3,8 @@
* Handles webfonts.
*
* @package kirki-framework/module-webfonts
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Async.php b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Async.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Async.php
rename to functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Async.php
index 139d1f4..8ffa847 100644
--- a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Async.php
+++ b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Async.php
@@ -3,8 +3,8 @@
* Adds the Webfont Loader to load fonts asyncronously.
*
* @package kirki-framework/module-webfonts
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Downloader.php b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Downloader.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Downloader.php
rename to functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Downloader.php
index 2b94a0d..e0d7407 100644
--- a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Downloader.php
+++ b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Downloader.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.1.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Embed.php b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Embed.php
similarity index 97%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Embed.php
rename to functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Embed.php
index 2cf3977..c7f7243 100644
--- a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Embed.php
+++ b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Embed.php
@@ -3,8 +3,8 @@
* Adds the Webfont Loader to load fonts asyncronously.
*
* @package kirki-framework/module-webfonts
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Fonts.php b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Fonts.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Fonts.php
rename to functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Fonts.php
index 2c7561d..cbb2ffe 100644
--- a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Fonts.php
+++ b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Fonts.php
@@ -3,8 +3,8 @@
* A simple object containing properties for fonts.
*
* @package kirki-framework/module-webfonts
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Google.php b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Google.php
similarity index 98%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Google.php
rename to functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Google.php
index 3d79e17..84c1691 100644
--- a/functions/kirki/packages/kirki-framework/module-webfonts/src/Webfonts/Google.php
+++ b/functions/kirki/kirki-packages/module-webfonts/src/Webfonts/Google.php
@@ -4,8 +4,8 @@
* and generates the google-font link.
*
* @package kirki-framework/module-webfonts
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0.0
*/
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/closure.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/closure.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/closure.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/closure.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/cssclassname.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/cssclassname.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/cssclassname.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/cssclassname.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/domhelper.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/eventdispatcher.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/eventdispatcher.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/eventdispatcher.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/eventdispatcher.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/font.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/font.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/font.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/font.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmodule.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmodule.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmodule.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmodule.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmoduleloader.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmoduleloader.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmoduleloader.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontmoduleloader.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontruler.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontruler.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontruler.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontruler.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatcher.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatcher.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatcher.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatcher.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatchrunner.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatchrunner.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatchrunner.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/fontwatchrunner.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/initialize.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/initialize.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/initialize.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/initialize.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/nativefontwatchrunner.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/nativefontwatchrunner.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/nativefontwatchrunner.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/nativefontwatchrunner.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/stylesheetwaiter.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/stylesheetwaiter.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/stylesheetwaiter.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/stylesheetwaiter.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/webfont.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/webfont.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/core/webfont.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/core/webfont.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules.yml b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules.yml
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules.yml
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules.yml
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/custom.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/custom.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/custom.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/custom.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/fontdeck.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/fontdeck.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/fontdeck.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/fontdeck.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiparser.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiparser.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiparser.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiparser.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiurlbuilder.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiurlbuilder.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiurlbuilder.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiurlbuilder.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/googlefontapi.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/googlefontapi.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/googlefontapi.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/googlefontapi.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/monotype.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/monotype.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/monotype.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/monotype.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/typekit.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/typekit.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/typekit.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/typekit.js
diff --git a/functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/webfontloader.js b/functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/webfontloader.js
similarity index 100%
rename from functions/kirki/packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/webfontloader.js
rename to functions/kirki/kirki-packages/module-webfonts/src/assets/scripts/vendor-typekit/webfontloader.js
diff --git a/functions/kirki/kirki-packages/settings/dist/admin-notice.css b/functions/kirki/kirki-packages/settings/dist/admin-notice.css
new file mode 100644
index 0000000..b95352f
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/admin-notice.css
@@ -0,0 +1,2 @@
+.kirki-admin-notice{padding:25px 20px}.kirki-admin-notice .notice-body{display:flex}.kirki-admin-notice .notice-icon{padding-right:25px}.kirki-admin-notice .notice-icon img{max-width:55px}.kirki-admin-notice .notice-content{width:100%}.kirki-admin-notice .notice-content h2{margin-top:0;margin-bottom:10px;font-weight:700}.kirki-admin-notice .notice-content>p{margin-top:0;margin-bottom:10px}.kirki-admin-notice .notice-content>p:last-child{margin-bottom:0}
+/*# sourceMappingURL=admin-notice.css.map */
diff --git a/functions/kirki/kirki-packages/settings/dist/admin-notice.css.map b/functions/kirki/kirki-packages/settings/dist/admin-notice.css.map
new file mode 100644
index 0000000..e1a9547
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/admin-notice.css.map
@@ -0,0 +1 @@
+{"mappings":"ACAA,sCAIA,8CAIA,oDAIA,oDAIA,+CAIA,uFAMA,sEAKA","sources":["admin-notice.css","kirki-packages/settings/src/admin-notice.scss"],"sourcesContent":[".kirki-admin-notice {\n padding: 25px 20px;\n}\n\n.kirki-admin-notice .notice-body {\n display: flex;\n}\n\n.kirki-admin-notice .notice-icon {\n padding-right: 25px;\n}\n\n.kirki-admin-notice .notice-icon img {\n max-width: 55px;\n}\n\n.kirki-admin-notice .notice-content {\n width: 100%;\n}\n\n.kirki-admin-notice .notice-content h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-weight: 700;\n}\n\n.kirki-admin-notice .notice-content > p {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n.kirki-admin-notice .notice-content > p:last-child {\n margin-bottom: 0;\n}\n\n/*# sourceMappingURL=admin-notice.css.map */\n",".kirki-admin-notice {\r\n\tpadding: 25px 20px;\r\n}\r\n\r\n.kirki-admin-notice .notice-body {\r\n\tdisplay: flex;\r\n}\r\n\r\n.kirki-admin-notice .notice-icon {\r\n\tpadding-right: 25px;\r\n}\r\n\r\n.kirki-admin-notice .notice-icon img {\r\n\tmax-width: 55px;\r\n}\r\n\r\n.kirki-admin-notice .notice-content {\r\n\twidth: 100%;\r\n}\r\n\r\n.kirki-admin-notice .notice-content h2 {\r\n\tmargin-top: 0;\r\n\tmargin-bottom: 10px;\r\n\tfont-weight: 700;\r\n}\r\n\r\n.kirki-admin-notice .notice-content > p {\r\n\tmargin-top: 0;\r\n\tmargin-bottom: 10px;\r\n}\r\n\r\n.kirki-admin-notice .notice-content > p:last-child {\r\n\tmargin-bottom: 0;\r\n}\r\n"],"names":[],"version":3,"file":"admin-notice.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/kirki-packages/settings/dist/discount-notice.js b/functions/kirki/kirki-packages/settings/dist/discount-notice.js
new file mode 100644
index 0000000..65517d6
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/discount-notice.js
@@ -0,0 +1,2 @@
+!function(){function t(t){return t&&t.__esModule?t.default:t}const i=(t,i,e)=>{if(t.matches(i))return t;if("BODY"===t.tagName||"HTML"===t.tagName)return;let n;e=e||20;for(let n=0;n {\n\twhile (el.firstChild) {\n\t\tel.removeChild(el.firstChild);\n\t}\n};\n\nexport const getClosest = (\n\tel: HTMLElement,\n\tselector: string,\n\tdepth?: number\n): HTMLElement | undefined => {\n\tif (el.matches(selector)) {\n\t\treturn el;\n\t}\n\n\tif (el.tagName === \"BODY\" || el.tagName === \"HTML\") {\n\t\treturn undefined;\n\t}\n\n\tlet closest = undefined;\n\tdepth = depth ? depth : 20;\n\n\tfor (let i = 0; i < depth; i++) {\n\t\tconst parentNode = el.parentNode as HTMLElement;\n\n\t\tif (\n\t\t\t!parentNode ||\n\t\t\tparentNode.tagName === \"BODY\" ||\n\t\t\tparentNode.tagName === \"HTML\"\n\t\t) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (parentNode.matches(selector)) {\n\t\t\treturn parentNode;\n\t\t}\n\n\t\tel = parentNode;\n\t}\n\n\treturn closest;\n};\n\nexport const startLoading = (button: HTMLButtonElement | HTMLElement) => {\n\tbutton.classList.add(\"is-loading\");\n};\n\nexport const stopLoading = (button: HTMLButtonElement | HTMLElement) => {\n\tbutton.classList.remove(\"is-loading\");\n};\n","module.exports=jQuery;","import { getClosest } from \"./utils\";\r\nimport jQuery from \"jquery\";\r\n\r\ndeclare var ajaxurl: string;\r\n\r\n(function () {\r\n\tfunction init() {\r\n\t\tjQuery(document).on(\r\n\t\t\t\"click\",\r\n\t\t\t\".kirki-discount-notice.is-dismissible .notice-dismiss\",\r\n\t\t\tdismiss\r\n\t\t);\r\n\t}\r\n\r\n\tfunction dismiss(e: JQuery.ClickEvent) {\r\n\t\tconst notice = getClosest(this, \".kirki-discount-notice\");\r\n\t\tif (!notice) return;\r\n\t\tlet nonce = notice.dataset.dismissNonce;\r\n\t\tnonce = nonce ? nonce : \"\";\r\n\r\n\t\tjQuery\r\n\t\t\t.ajax({\r\n\t\t\t\turl: ajaxurl,\r\n\t\t\t\ttype: \"post\",\r\n\t\t\t\tdata: {\r\n\t\t\t\t\taction: \"kirki_dismiss_discount_notice\",\r\n\t\t\t\t\tnonce: nonce,\r\n\t\t\t\t\tdismiss: 1,\r\n\t\t\t\t},\r\n\t\t\t})\r\n\t\t\t.always(function (r) {\r\n\t\t\t\tif (r.success) console.log(r.data);\r\n\t\t\t});\r\n\t}\r\n\r\n\tinit();\r\n})();\r\n"],"names":["$f448701b1a546a82$export$211731fc355e9121","el","selector","depth","matches","tagName","closest","i","parentNode","$0a2eb9defebd2c69$exports","jQuery","dismiss","e","notice","this","nonce","dataset","dismissNonce","$parcel$interopDefault","ajax","url","ajaxurl","type","data","action","always","r","success","console","log","document","on"],"version":3,"file":"discount-notice.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/kirki-packages/settings/dist/heatbox.css b/functions/kirki/kirki-packages/settings/dist/heatbox.css
new file mode 100644
index 0000000..c4144f4
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/heatbox.css
@@ -0,0 +1,428 @@
+/* Init */
+.heatbox-wrap,
+.heatbox-wrap * {
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+.heatbox-admin.has-header .update-nag {
+ display: none;
+}
+
+.heatbox-admin.has-header #wpcontent {
+ padding-left: 0 !important;
+ padding-right: 0 !important;
+}
+
+.heatbox-admin.has-header .wrap {
+ margin: 0;
+}
+
+/* Tab navigation */
+.heatbox-tab-nav {
+ padding: 20px 0;
+ margin: 10px 0 0 0;
+}
+
+.heatbox-tab-nav li {
+ display: inline-flex;
+ padding: 10px 30px 10px 0;
+ font-weight: 600;
+ font-size: 20px;
+}
+
+.heatbox-tab-nav li a {
+ color: #23282d;
+ text-decoration: none;
+}
+
+.heatbox-tab-nav li.active a {
+ color: #0073aa;
+}
+
+/* Divider */
+.heatbox-divider {
+ width: 100%;
+ height: 1px;
+ margin: 40px 0;
+ background: #ccc;
+}
+
+@media screen and (max-width: 991px) {
+ .heatbox-divider {
+ margin: 20px 0;
+ }
+}
+
+/* Container */
+.heatbox-container {
+ max-width: 1200px;
+ padding: 0 20px;
+}
+
+.heatbox-container-wide {
+ max-width: 1400px;
+}
+
+.heatbox-container-center {
+ margin: 0 auto;
+}
+
+/* Header */
+.heatbox-header {
+ background: #fff;
+ padding-top: 40px;
+ border-bottom: 1px solid #ddd;
+}
+
+.heatbox-header.heatbox-has-tab-nav .logo-container {
+ margin-bottom: 0;
+}
+
+.heatbox-header .logo-container {
+ display: flex;
+ align-items: center;
+ margin-bottom: 40px;
+}
+
+.heatbox-header .logo-container div {
+ width: 50%;
+}
+
+.heatbox-header .logo-container .heatbox-logo-wide img {
+ width: 180px;
+}
+
+.heatbox-header .logo-container img {
+ width: 100px;
+ height: auto;
+ float: right;
+}
+
+.heatbox-header .tab-navigation {
+ margin: -20px 0 20px 0;
+ padding: 0;
+}
+
+.heatbox-header .tab-navigation li {
+ display: inline-flex;
+ padding: 10px 30px 10px 0;
+ font-weight: 600;
+ font-size: 20px;
+}
+
+.heatbox-header .tab-navigation li a {
+ color: #23282d;
+ text-decoration: none;
+}
+
+.heatbox-header .tab-navigation li.active a {
+ color: #0073aa;
+}
+
+/* Title */
+.heatbox-wrap .title {
+ margin: 0;
+ padding: 0;
+ font-size: 34px;
+ font-weight: 700;
+ line-height: 1;
+}
+
+.heatbox-wrap .subtitle {
+ margin: 20px 0 0 0;
+ padding: 0;
+ font-size: 20px;
+ line-height: 1;
+}
+
+/* Version */
+.heatbox-wrap .version {
+ font-size: 50%;
+ opacity: 0.6;
+ font-weight: 600;
+ background: #ccc;
+ border-radius: 5px;
+ padding: 5px 12px;
+ line-height: 1;
+}
+
+/* 2 Column Layout - Wrapper */
+.heatbox-column-container {
+ display: flex;
+ flex-wrap: wrap;
+}
+
+/* 2 Column Layout - Main Content */
+.heatbox-main {
+ width: 73%;
+ margin-right: 2%;
+}
+
+/* 2 Column Layout - Sidebar */
+.heatbox-sidebar {
+ width: 25%;
+}
+
+/* 2 Column Layout - Responsiveness */
+@media screen and (max-width: 991px) {
+ .heatbox-main, .heatbox-sidebar {
+ width: 100%;
+ }
+ .heatbox-main {
+ margin-right: 0;
+ }
+}
+
+/* Panels */
+.heatbox-admin-panel {
+ display: none;
+}
+
+/* Heatbox */
+.heatbox {
+ background: #fff;
+ margin-bottom: 20px;
+ border: 1px solid #ddd;
+}
+
+.heatbox h2 {
+ border-bottom: 1px solid #ddd;
+ margin: 0;
+ padding: 20px;
+}
+
+.heatbox.is-grouped h2 {
+ border-top: 1px solid #ddd;
+}
+
+.heatbox.is-grouped h2:first-child {
+ border-top: none;
+}
+
+.heatbox h3 {
+ margin: 0 0 10px 0;
+}
+
+.heatbox p {
+ margin: 0 0 20px 0;
+}
+
+.heatbox-content {
+ margin: 0;
+ padding: 20px;
+}
+
+.heatbox-content p:first-child {
+ margin-top: 0;
+}
+
+/* Margins */
+.heatbox-margin-top {
+ margin-top: 20px;
+}
+
+.heatbox-margin-bottom {
+ margin-bottom: 20px;
+}
+
+/* Paddings */
+.heatbox-margin-top {
+ margin-top: 20px;
+}
+
+.heatbox-margin-bottom {
+ margin-bottom: 20px;
+}
+
+/* Buttons */
+.heatbox-wrap .button-larger {
+ padding: 5px 20px;
+}
+
+/* Settings */
+.heatbox .form-table {
+ margin: 0;
+}
+
+.heatbox .form-table th,
+.heatbox .form-table td {
+ padding: 20px;
+ vertical-align: top;
+}
+
+.heatbox .form-table th .description {
+ margin-top: 10px;
+}
+
+.heatbox .setting-fields {
+
+}
+
+.heatbox .setting-fields .setting-field {
+ margin-bottom: 7px;
+}
+
+.heatbox .setting-fields .setting-field:last-of-type {
+ margin-bottom: 0;
+}
+
+/* Submit button */
+.heatbox-wrap p.submit {
+ margin: 20px 0;
+ padding: 0;
+}
+
+/**
+ * Checkboxes & Radio Buttons
+ * Copied & modified from https://codepen.io/KenanYusuf/pen/PZKEKd/
+ */
+.heatbox .label {
+ display: inline-block;
+ position: relative;
+ cursor: pointer;
+}
+
+.heatbox .label input {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+}
+
+.heatbox .label .indicator {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 20px;
+ width: 20px;
+ background-color: #e6e6e6;
+ -webkit-transition: all 0.2s ease-in-out;
+ transition: all 0.2s ease-in-out;
+}
+
+.heatbox .radio-label .indicator {
+ border-radius: 50%;
+}
+
+.heatbox .label:hover input ~ .indicator,
+.heatbox .label input:focus ~ .indicator {
+ background-color: #ccc;
+}
+
+.heatbox .label input:checked ~ .indicator {
+ background-color: #007cba;
+}
+
+.heatbox .label:hover input:not([disabled]):checked ~ .indicator,
+.heatbox .label input:checked:focus ~ .indicator {
+ background-color: #00669b;
+}
+
+.heatbox .label input:disabled ~ .indicator {
+ background-color: #e6e6e6;
+ opacity: 0.6;
+ pointer-events: none;
+}
+
+.heatbox .label .indicator::after {
+ display: none;
+ position: absolute;
+ content: "";
+}
+
+.heatbox .label input:checked ~ .indicator::after {
+ display: block;
+}
+
+.heatbox .checkbox-label {
+ padding-left: 30px;
+}
+
+.heatbox .checkbox-label .indicator::after {
+ left: 8px;
+ top: 4px;
+ width: 3px;
+ height: 8px;
+ border: solid #fff;
+ border-width: 0 2px 2px 0;
+ transform: rotate(45deg);
+}
+
+.heatbox .checkbox-label input:disabled ~ .indicator::after {
+ border-color: #7b7b7b;
+}
+
+.heatbox .radio-label .indicator::after {
+ left: 7px;
+ top: 7px;
+ height: 6px;
+ width: 6px;
+ border-radius: 50%;
+ background-color: #fff;
+}
+
+.heatbox .radio-label input:disabled ~ .indicator::after {
+ background-color: #7b7b7b;
+}
+
+/* Call to action */
+.heatbox-cta-container.is-attached {
+ padding: 20px;
+ background: #fff;
+ margin-top: -20px;
+ margin-bottom: 20px;
+ border: 1px solid #ddd;
+ border-top: none;
+}
+
+.heatbox-cta {
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 20px;
+ font-weight: 700;
+ border: 1px solid #ddd;
+ background: #fff;
+}
+
+.heatbox-cta > * {
+ margin: 0 !important;
+}
+
+.heatbox-cta .button {
+ padding: 5px 15px !important;
+}
+
+.heatbox-cta.primary {
+ background: #197cff;
+ color: #fff;
+ border: none;
+}
+
+.heatbox-cta.secondary {
+ background: #f1f1f1;
+}
+
+.heatbox-cta.primary .button {
+ background: rgba(0, 45, 96, 0.5);
+}
+
+.heatbox-cta.primary .button:hover {
+ background: rgba(0, 45, 96, 0.6);
+}
+
+/* RTL */
+.rtl .heatbox-header .logo-container img {
+ float: left;
+}
+
+.rtl .heatbox-main {
+ margin-right: 0;
+ margin-left: 2%;
+}
+
+.rtl .heatbox .label .indicator {
+ left: auto;
+ right: -30px;
+}
diff --git a/functions/kirki/kirki-packages/settings/dist/settings.css b/functions/kirki/kirki-packages/settings/dist/settings.css
new file mode 100644
index 0000000..73454f8
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/settings.css
@@ -0,0 +1,2 @@
+.kirki-settings-page{--kirki-brand-color:#2764f1;--kirki-danger-color:#47d87c}@keyframes loadingSpinAround{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.kirki-settings-page .button.is-loading{pointer-events:none;justify-content:center;align-items:center;display:inline-flex;color:#0000!important}.kirki-settings-page .button.is-loading:after{content:"";width:1em;height:1em;border:2px solid #dbdbdb;border-radius:290486px;animation:.5s linear infinite loadingSpinAround;display:block;position:absolute;border-color:#0000 #0000 #fff #fff!important}.kirki-settings-page .button-link{background-color:#0000;border-width:0;font-size:17px;text-decoration:underline}.kirki-settings-page .button-link:focus,.kirki-settings-page .button-link:active{box-shadow:none;border-width:0;outline:none}.kirki-settings-page .button-link.is-disabled{color:#ddd}.kirki-settings-page .button-link.is-right-side{float:right}.kirki-settings-page .button-link.is-right-side.is-loading{justify-content:flex-end}.kirki-settings-page .button-link.is-loading{pointer-events:none;justify-content:center;align-items:center;display:inline-flex;color:#0000!important}.kirki-settings-page .button-link.is-loading:after{content:"";width:1em;height:1em;border:2px solid #7ab4e3;border-radius:290486px;animation:.5s linear infinite loadingSpinAround;display:block;position:absolute;border-color:#0000 #0000 #2271b1 #2271b1!important}.kirki-settings-page .submission-status{margin-left:15px;line-height:39px}.kirki-settings-page .submission-status.is-hidden{display:none}.kirki-settings-page .submission-status.is-success{color:#0fa953}.kirki-settings-page .submission-status.is-error{color:tomato}.featured-products-banner img{max-width:100%;border:1px solid #ddd}.kirki-featured-products>h2{text-align:center;margin-bottom:50px;font-size:24px}.kirki-featured-products .products{justify-content:space-between;display:flex}.kirki-featured-products .products li{width:32%}.kirki-featured-products .products .subheadline{margin-top:-6px;font-weight:600}.kirki-featured-products .products img{max-width:100%}.kirki-featured-products .credit{text-align:center;opacity:.5;margin-top:20px}.heatbox{position:relative}.heatbox .checkbox-label .is-disabled{opacity:.6}.heatbox .heatbox-overlay.is-hidden{display:none}.heatbox .heatbox-overlay{width:100%;height:100%;z-index:100;background-color:#0000001a;position:absolute;top:0;left:0}.pro-extensions-banner-link{margin-bottom:20px;display:block;box-shadow:none!important}.pro-extensions-banner{max-width:100%;border:1px solid #ddd}.pro-extensions-list{margin:0}.pro-extensions-list li{border-bottom:1px solid #ddd;flex-wrap:wrap;align-items:center;margin:0;padding:25px 20px;display:flex}.pro-extensions-list li:last-child{background:#f9f9f9;border:none}.pro-extensions-list li:last-child h3{margin-bottom:10px}.pro-extensions-list li:last-child p{margin-bottom:0}.pro-extensions-list li div{flex:0 50%}.pro-extensions-list li h3{margin-bottom:0;font-weight:400;display:inline-block}.pro-extensions-list li p{font-size:16px}.pro-extensions-list .tooltip{cursor:pointer;color:#ccc;margin-left:8px;display:inline-block;position:relative}.pro-extensions-list .tooltip:hover{color:#0073aa}.pro-extensions-list .tooltip:hover p{opacity:1;z-index:1}.pro-extensions-list .tooltip p{z-index:-1;opacity:0;width:250px;color:initial;background:#fff;border:1px solid #ddd;border-radius:4px;padding:15px;position:absolute;bottom:15px;left:-40px;box-shadow:0 0 20px #00000026}.pro-extensions-list-icon{text-align:right;color:#47d87c;bottom:0;left:0}.pro-extensions-list-icon i{margin-right:20px;position:relative}.pro-extensions-list-icon strong{color:#fff;background:#47d87c;border-radius:4px;margin:0 10px;padding:2px 4px;font-size:12px;line-height:1}.pro-extensions-list-icon .button-larger{padding:10px 30px}.kirki-recommended-list{flex-wrap:wrap;margin:0;display:flex}.kirki-recommended-list li{flex-direction:column;flex:0 49%;margin-right:2%;display:flex}.kirki-recommended-list li:nth-child(2n){margin-right:0}.kirki-recommended-list li>a{box-shadow:none}.kirki-recommended-list img{max-width:100%}.kirki-recommended-content{min-height:150px;flex:1 0 auto;padding:20px}.kirki-recommended-content p{font-size:16px}.kirki-recommended-status{background:#f9f9f9;border-top:1px solid #ddd;align-items:center;padding:20px;display:flex}.kirki-recommended-status div{flex:0 50%}.kirki-recommended-status-icon{text-align:right;color:#aaa}.kirki-recommended-status-icon.green{color:#47d87c}.kirki-recommended-status-icon i{font-size:22px!important}.installation-progress-metabox.is-hidden{display:none}.installation-info{font-size:14px;font-weight:700}.installation-progress{align-items:center;margin-bottom:10px;display:flex}.installation-progress .progress-icon{width:20px;height:20px;margin-right:4px;position:relative}.installation-progress.is-loading .progress-icon{pointer-events:none;justify-content:center;align-items:center;display:inline-flex;color:#0000!important}.installation-progress.is-loading .progress-icon:after{content:"";width:1em;height:1em;border:2px solid #7ab4e3;border-radius:290486px;animation:.5s linear infinite loadingSpinAround;display:block;position:absolute;border-color:#0000 #0000 #2271b1 #2271b1!important}.installation-progress.is-done .progress-icon:before{content:"";color:#47d87c;font-family:dashicons;font-size:20px}.installation-progress.is-failed .progress-icon:before{content:"";color:tomato;font-family:dashicons;font-size:20px}.installation-progress .progress-text{flex:auto}
+/*# sourceMappingURL=settings.css.map */
diff --git a/functions/kirki/kirki-packages/settings/dist/settings.css.map b/functions/kirki/kirki-packages/settings/dist/settings.css.map
new file mode 100644
index 0000000..e479981
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/settings.css.map
@@ -0,0 +1 @@
+{"mappings":"ACCA,8EAMA,iFAoBC,gJAOC,2PAcD,iHAMC,6HAOA,yDAIA,4DAGC,oFAKD,qJAOC,sQAeF,0EAKA,+DAIA,iEAIA,8DAOA,mEAOA,gFAMA,8EAIC,gDAIA,gFAKA,sDAKD,8EAQD,2BAIE,iDAKD,iDAIA,uHAYD,uFAMA,4DAKA,8BAGC,+HAQC,kEAIC,yDAIA,qDAKD,uCAIA,gFAMA,yCAKD,+GAOC,kDAGC,0DAMD,2NAmBF,yEAMC,gEAKA,4IASA,2DAMD,6DAKC,yFAMC,wDAIA,6CAKD,2CAKD,uEAKC,4CAKD,oHAOC,yCAKD,2DAIC,mDAIA,0DAOA,sDAKD,kDAKA,0EAKC,gGAQC,yJAOC,0QAgBD,sHASA,uHAQD","sources":["settings.css","kirki-packages/settings/src/settings.scss"],"sourcesContent":[".kirki-settings-page {\n --kirki-brand-color: #2764f1;\n --kirki-danger-color: #47d87c;\n}\n\n@keyframes loadingSpinAround {\n from {\n transform: rotate(0);\n }\n\n to {\n transform: rotate(359deg);\n }\n}\n\n.kirki-settings-page .button.is-loading {\n pointer-events: none;\n justify-content: center;\n align-items: center;\n display: inline-flex;\n color: #0000 !important;\n}\n\n.kirki-settings-page .button.is-loading:after {\n content: \"\";\n width: 1em;\n height: 1em;\n border: 2px solid #dbdbdb;\n border-radius: 290486px;\n animation: .5s linear infinite loadingSpinAround;\n display: block;\n position: absolute;\n border-color: #0000 #0000 #fff #fff !important;\n}\n\n.kirki-settings-page .button-link {\n background-color: #0000;\n border-width: 0;\n font-size: 17px;\n text-decoration: underline;\n}\n\n.kirki-settings-page .button-link:focus, .kirki-settings-page .button-link:active {\n box-shadow: none;\n border-width: 0;\n outline: none;\n}\n\n.kirki-settings-page .button-link.is-disabled {\n color: #ddd;\n}\n\n.kirki-settings-page .button-link.is-right-side {\n float: right;\n}\n\n.kirki-settings-page .button-link.is-right-side.is-loading {\n justify-content: flex-end;\n}\n\n.kirki-settings-page .button-link.is-loading {\n pointer-events: none;\n justify-content: center;\n align-items: center;\n display: inline-flex;\n color: #0000 !important;\n}\n\n.kirki-settings-page .button-link.is-loading:after {\n content: \"\";\n width: 1em;\n height: 1em;\n border: 2px solid #7ab4e3;\n border-radius: 290486px;\n animation: .5s linear infinite loadingSpinAround;\n display: block;\n position: absolute;\n border-color: #0000 #0000 #2271b1 #2271b1 !important;\n}\n\n.kirki-settings-page .submission-status {\n margin-left: 15px;\n line-height: 39px;\n}\n\n.kirki-settings-page .submission-status.is-hidden {\n display: none;\n}\n\n.kirki-settings-page .submission-status.is-success {\n color: #0fa953;\n}\n\n.kirki-settings-page .submission-status.is-error {\n color: tomato;\n}\n\n.featured-products-banner img {\n max-width: 100%;\n border: 1px solid #ddd;\n}\n\n.kirki-featured-products > h2 {\n text-align: center;\n margin-bottom: 50px;\n font-size: 24px;\n}\n\n.kirki-featured-products .products {\n justify-content: space-between;\n display: flex;\n}\n\n.kirki-featured-products .products li {\n width: 32%;\n}\n\n.kirki-featured-products .products .subheadline {\n margin-top: -6px;\n font-weight: 600;\n}\n\n.kirki-featured-products .products img {\n max-width: 100%;\n}\n\n.kirki-featured-products .credit {\n text-align: center;\n opacity: .5;\n margin-top: 20px;\n}\n\n.heatbox {\n position: relative;\n}\n\n.heatbox .checkbox-label .is-disabled {\n opacity: .6;\n}\n\n.heatbox .heatbox-overlay.is-hidden {\n display: none;\n}\n\n.heatbox .heatbox-overlay {\n width: 100%;\n height: 100%;\n z-index: 100;\n background-color: #0000001a;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.pro-extensions-banner-link {\n margin-bottom: 20px;\n display: block;\n box-shadow: none !important;\n}\n\n.pro-extensions-banner {\n max-width: 100%;\n border: 1px solid #ddd;\n}\n\n.pro-extensions-list {\n margin: 0;\n}\n\n.pro-extensions-list li {\n border-bottom: 1px solid #ddd;\n flex-wrap: wrap;\n align-items: center;\n margin: 0;\n padding: 25px 20px;\n display: flex;\n}\n\n.pro-extensions-list li:last-child {\n background: #f9f9f9;\n border: none;\n}\n\n.pro-extensions-list li:last-child h3 {\n margin-bottom: 10px;\n}\n\n.pro-extensions-list li:last-child p {\n margin-bottom: 0;\n}\n\n.pro-extensions-list li div {\n flex: 0 50%;\n}\n\n.pro-extensions-list li h3 {\n margin-bottom: 0;\n font-weight: 400;\n display: inline-block;\n}\n\n.pro-extensions-list li p {\n font-size: 16px;\n}\n\n.pro-extensions-list .tooltip {\n cursor: pointer;\n color: #ccc;\n margin-left: 8px;\n display: inline-block;\n position: relative;\n}\n\n.pro-extensions-list .tooltip:hover {\n color: #0073aa;\n}\n\n.pro-extensions-list .tooltip:hover p {\n opacity: 1;\n z-index: 1;\n}\n\n.pro-extensions-list .tooltip p {\n z-index: -1;\n opacity: 0;\n width: 250px;\n color: initial;\n background: #fff;\n border: 1px solid #ddd;\n border-radius: 4px;\n padding: 15px;\n position: absolute;\n bottom: 15px;\n left: -40px;\n box-shadow: 0 0 20px #00000026;\n}\n\n.pro-extensions-list-icon {\n text-align: right;\n color: #47d87c;\n bottom: 0;\n left: 0;\n}\n\n.pro-extensions-list-icon i {\n margin-right: 20px;\n position: relative;\n}\n\n.pro-extensions-list-icon strong {\n color: #fff;\n background: #47d87c;\n border-radius: 4px;\n margin: 0 10px;\n padding: 2px 4px;\n font-size: 12px;\n line-height: 1;\n}\n\n.pro-extensions-list-icon .button-larger {\n padding: 10px 30px;\n}\n\n.kirki-recommended-list {\n flex-wrap: wrap;\n margin: 0;\n display: flex;\n}\n\n.kirki-recommended-list li {\n flex-direction: column;\n flex: 0 49%;\n margin-right: 2%;\n display: flex;\n}\n\n.kirki-recommended-list li:nth-child(2n) {\n margin-right: 0;\n}\n\n.kirki-recommended-list li > a {\n box-shadow: none;\n}\n\n.kirki-recommended-list img {\n max-width: 100%;\n}\n\n.kirki-recommended-content {\n min-height: 150px;\n flex: 1 0 auto;\n padding: 20px;\n}\n\n.kirki-recommended-content p {\n font-size: 16px;\n}\n\n.kirki-recommended-status {\n background: #f9f9f9;\n border-top: 1px solid #ddd;\n align-items: center;\n padding: 20px;\n display: flex;\n}\n\n.kirki-recommended-status div {\n flex: 0 50%;\n}\n\n.kirki-recommended-status-icon {\n text-align: right;\n color: #aaa;\n}\n\n.kirki-recommended-status-icon.green {\n color: #47d87c;\n}\n\n.kirki-recommended-status-icon i {\n font-size: 22px !important;\n}\n\n.installation-progress-metabox.is-hidden {\n display: none;\n}\n\n.installation-info {\n font-size: 14px;\n font-weight: 700;\n}\n\n.installation-progress {\n align-items: center;\n margin-bottom: 10px;\n display: flex;\n}\n\n.installation-progress .progress-icon {\n width: 20px;\n height: 20px;\n margin-right: 4px;\n position: relative;\n}\n\n.installation-progress.is-loading .progress-icon {\n pointer-events: none;\n justify-content: center;\n align-items: center;\n display: inline-flex;\n color: #0000 !important;\n}\n\n.installation-progress.is-loading .progress-icon:after {\n content: \"\";\n width: 1em;\n height: 1em;\n border: 2px solid #7ab4e3;\n border-radius: 290486px;\n animation: .5s linear infinite loadingSpinAround;\n display: block;\n position: absolute;\n border-color: #0000 #0000 #2271b1 #2271b1 !important;\n}\n\n.installation-progress.is-done .progress-icon:before {\n content: \"\";\n color: #47d87c;\n font-family: dashicons;\n font-size: 20px;\n}\n\n.installation-progress.is-failed .progress-icon:before {\n content: \"\";\n color: tomato;\n font-family: dashicons;\n font-size: 20px;\n}\n\n.installation-progress .progress-text {\n flex: auto;\n}\n\n/*# sourceMappingURL=settings.css.map */\n","// Vars\n.kirki-settings-page {\n\t--kirki-brand-color: #2764F1;\n\t--kirki-danger-color: #47D87C;\n}\n\n// Loading animation\n@-webkit-keyframes loadingSpinAround {\n\tfrom {\n\t\ttransform: rotate(0);\n\t}\n\tto {\n\t\ttransform: rotate(359deg);\n\t}\n}\n\n@keyframes loadingSpinAround {\n\tfrom {\n\t\ttransform: rotate(0);\n\t}\n\tto {\n\t\ttransform: rotate(359deg);\n\t}\n}\n\n.kirki-settings-page {\n\t// Button\n\t.button.is-loading {\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcolor: transparent !important;\n\t\tpointer-events: none;\n\n\t\t&::after {\n\t\t\tcontent: \"\";\n\t\t\tposition: absolute;\n\t\t\twidth: 1em;\n\t\t\tdisplay: block;\n\t\t\theight: 1em;\n\t\t\tborder: 2px solid #dbdbdb;\n\t\t\tborder-color: transparent transparent #fff #fff !important;\n\t\t\tborder-radius: 290486px;\n\t\t\t-webkit-animation: loadingSpinAround 0.5s infinite linear;\n\t\t\tanimation: loadingSpinAround 0.5s infinite linear;\n\t\t}\n\t}\n\n\t.button-link {\n\t\tborder-width: 0;\n\t\tbackground-color: transparent;\n\t\tfont-size: 17px;\n\t\ttext-decoration: underline;\n\n\t\t&:focus,\n\t\t&:active {\n\t\t\toutline: none;\n\t\t\tbox-shadow: none;\n\t\t\tborder-width: 0;\n\t\t}\n\n\t\t&.is-disabled {\n\t\t\tcolor: #ddd;\n\t\t}\n\n\t\t&.is-right-side {\n\t\t\tfloat: right;\n\n\t\t\t&.is-loading {\n\t\t\t\tjustify-content: flex-end;\n\t\t\t}\n\t\t}\n\n\t\t&.is-loading {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tcolor: transparent !important;\n\t\t\tpointer-events: none;\n\n\t\t\t&::after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 1em;\n\t\t\t\tdisplay: block;\n\t\t\t\theight: 1em;\n\t\t\t\tborder: 2px solid #7ab4e3;\n\t\t\t\tborder-color: transparent transparent #2271b1 #2271b1 !important;\n\t\t\t\tborder-radius: 290486px;\n\t\t\t\t-webkit-animation: loadingSpinAround 0.5s infinite linear;\n\t\t\t\tanimation: loadingSpinAround 0.5s infinite linear;\n\t\t\t}\n\t\t}\n\t}\n\n\t.submission-status {\n\t\tmargin-left: 15px;\n\t\tline-height: 39px;\n\t}\n\n\t.submission-status.is-hidden {\n\t\tdisplay: none;\n\t}\n\n\t.submission-status.is-success {\n\t\tcolor: #0fa953;\n\t}\n\n\t.submission-status.is-error {\n\t\tcolor: tomato;\n\t}\n}\n\n// Featured products\n.featured-products-banner {\n\timg {\n\t\tborder: 1px solid #ddd;\n\t\tmax-width: 100%;\n\t}\n}\n\n.kirki-featured-products {\n\t> h2 {\n\t\ttext-align: center;\n\t\tmargin-bottom: 50px;\n\t\tfont-size: 24px;\n\t}\n\n\t.products {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\n\t\tli {\n\t\t\twidth: 32%;\n\t\t}\n\n\t\t.subheadline {\n\t\t\tfont-weight: 600;\n\t\t\tmargin-top: -6px;\n\t\t}\n\n\t\timg {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n\n\t.credit {\n\t\tmargin-top: 20px;\n\t\ttext-align: center;\n\t\topacity: 0.5;\n\t}\n}\n\n// Heatbox adjustment\n.heatbox {\n\tposition: relative;\n\n\t.checkbox-label {\n\t\t.is-disabled {\n\t\t\topacity: 0.6;\n\t\t}\n\t}\n\n\t.heatbox-overlay.is-hidden {\n\t\tdisplay: none;\n\t}\n\n\t.heatbox-overlay {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tbackground-color: rgba(0, 0, 0, 0.1);\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tz-index: 100;\n\t}\n}\n\n// Kirki PRO\n.pro-extensions-banner-link {\n\tdisplay: block;\n\tmargin-bottom: 20px;\n\tbox-shadow: none !important;\n}\n\n.pro-extensions-banner {\n\tmax-width: 100%;\n\tborder: 1px solid #ddd;\n}\n\n.pro-extensions-list {\n\tmargin: 0;\n\n\tli {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tpadding: 25px 20px;\n\t\tborder-bottom: 1px solid #ddd;\n\n\t\t&:last-child {\n\t\t\tborder: none;\n\t\t\tbackground: #f9f9f9;\n\n\t\t\th3 {\n\t\t\t\tmargin-bottom: 10px;\n\t\t\t}\n\n\t\t\tp {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\n\t\tdiv {\n\t\t\tflex: 0 50%;\n\t\t}\n\n\t\th3 {\n\t\t\tdisplay: inline-block;\n\t\t\tmargin-bottom: 0;\n\t\t\tfont-weight: 400;\n\t\t}\n\n\t\tp {\n\t\t\tfont-size: 16px;\n\t\t}\n\t}\n\n\t.tooltip {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\tcursor: pointer;\n\t\tcolor: #ccc;\n\t\tmargin-left: 8px;\n\n\t\t&:hover {\n\t\t\tcolor: #0073aa;\n\n\t\t\tp {\n\t\t\t\topacity: 1;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t}\n\n\t\tp {\n\t\t\tz-index: -1;\n\t\t\topacity: 0;\n\t\t\tposition: absolute;\n\t\t\tbottom: 15px;\n\t\t\tleft: -40px;\n\t\t\twidth: 250px;\n\t\t\tbackground: #fff;\n\t\t\tpadding: 15px;\n\t\t\tborder: 1px solid #ddd;\n\t\t\tcolor: initial;\n\t\t\t-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);\n\t\t\t-moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);\n\t\t\tbox-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);\n\t\t\tborder-radius: 4px;\n\t\t}\n\t}\n}\n\n.pro-extensions-list-icon {\n\ttext-align: right;\n\tcolor: #47d87c;\n\tleft: 0;\n\tbottom: 0;\n\n\ti {\n\t\tmargin-right: 20px;\n\t\tposition: relative;\n\t}\n\n\tstrong {\n\t\tpadding: 2px 4px;\n\t\tborder-radius: 4px;\n\t\tbackground: #47d87c;\n\t\tcolor: #fff;\n\t\tline-height: 1;\n\t\tmargin: 0 10px;\n\t\tfont-size: 12px;\n\t}\n\t.button-larger {\n\t\tpadding: 10px 30px;\n\t}\n}\n\n// Recommended plugins\n.kirki-recommended-list {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin: 0;\n\n\tli {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 0 49%;\n\t\tmargin-right: 2%;\n\n\t\t&:nth-child(even) {\n\t\t\tmargin-right: 0;\n\t\t}\n\n\t\t& > a {\n\t\t\tbox-shadow: none;\n\t\t}\n\t}\n\n\timg {\n\t\tmax-width: 100%;\n\t}\n}\n\n.kirki-recommended-content {\n\tpadding: 20px;\n\tflex: 1 0 auto;\n\tmin-height: 150px;\n\n\tp {\n\t\tfont-size: 16px;\n\t}\n}\n\n.kirki-recommended-status {\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 20px;\n\tbackground: #f9f9f9;\n\tborder-top: 1px solid #ddd;\n\n\tdiv {\n\t\tflex: 0 50%;\n\t}\n}\n\n.kirki-recommended-status-icon {\n\ttext-align: right;\n\tcolor: #aaa;\n\n\t&.green {\n\t\tcolor: #47d87c;\n\t}\n\n\ti {\n\t\tfont-size: 22px !important;\n\t}\n}\n\n// Instant installation progress\n.installation-progress-metabox {\n\t&.is-hidden {\n\t\tdisplay: none;\n\t}\n}\n\n.installation-info {\n\tfont-size: 14px;\n\tfont-weight: 700;\n}\n\n.installation-progress {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin-bottom: 10px;\n\n\t.progress-icon {\n\t\tposition: relative;\n\t\tmargin-right: 4px;\n\t\twidth: 20px;\n\t\theight: 20px;\n\t}\n\n\t&.is-loading {\n\t\t.progress-icon {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tcolor: transparent !important;\n\t\t\tpointer-events: none;\n\n\t\t\t&::after {\n\t\t\t\tcontent: \"\";\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 1em;\n\t\t\t\tdisplay: block;\n\t\t\t\theight: 1em;\n\t\t\t\tborder: 2px solid #7ab4e3;\n\t\t\t\tborder-color: transparent transparent #2271b1 #2271b1 !important;\n\t\t\t\tborder-radius: 290486px;\n\t\t\t\t-webkit-animation: loadingSpinAround 0.5s infinite linear;\n\t\t\t\tanimation: loadingSpinAround 0.5s infinite linear;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.is-done {\n\t\t.progress-icon::before {\n\t\t\tcontent: \"\\f147\";\n\t\t\tfont-family: dashicons;\n\t\t\tcolor: #47d87c;\n\t\t\tfont-size: 20px;\n\t\t}\n\t}\n\n\t&.is-failed {\n\t\t.progress-icon::before {\n\t\t\tcontent: \"\\f158\";\n\t\t\tfont-family: dashicons;\n\t\t\tcolor: tomato;\n\t\t\tfont-size: 20px;\n\t\t}\n\t}\n\n\t.progress-text {\n\t\tflex: 1 1 auto;\n\t}\n}\n"],"names":[],"version":3,"file":"settings.css.map"}
\ No newline at end of file
diff --git a/functions/kirki/kirki-packages/settings/dist/settings.js b/functions/kirki/kirki-packages/settings/dist/settings.js
new file mode 100644
index 0000000..71d1932
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/settings.js
@@ -0,0 +1,2 @@
+!function(){function e(e){return e&&e.__esModule?e.default:e}const t=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)},a=(e,t,a)=>{if(e.matches(t))return e;if("BODY"===e.tagName||"HTML"===e.tagName)return;let s;a=a||20;for(let s=0;s{e.classList.add("is-loading")},n=e=>{e.classList.remove("is-loading")};var i;function r(){const r=document.querySelector(".kirki-settings-page");if(!r)return;const o=r.querySelector(".installation-progress-metabox");if(!o)return;const l=o.querySelector(".installation-progress-list");if(!l)return;let d=!1;const c=kirkiSettings.recommendedPlugins.udb;function u(t){d||(d=!0,f("Activating Ultimate Dashboard","loading"),e(i).ajax({async:!0,type:"GET",url:c.activationUrl,success:function(){m("Ultimate Dashboard has been activated successfully.","done"),f("All done! Redirecting...","loading"),p(t,c.redirectUrl)},error:function(e){e.errorCode&&e.errorMessage?m(e.errorMessage,"failed"):e.responseJSON&&e.responseJSON.data?m(e.responseJSON.data,"failed"):m("Something went wrong. Please try again later.","failed"),p(t,"")}}))}function f(e,t){if(!l)return;const a=document.createElement("li");a.className="installation-progress","done"===t?a.classList.add("is-done"):"failed"===t?a.classList.add("is-failed"):a.classList.add("is-loading");const s=document.createElement("div");s.className="progress-icon",a.appendChild(s);const n=document.createElement("div");n.className="progress-text",n.innerHTML=e,a.appendChild(n),l.appendChild(a)}function m(e,t){if(!l)return;const a=l.querySelector(".installation-progress:last-child");if(a&&("done"===t?(a.classList.remove("is-loading"),a.classList.add("is-done")):"failed"===t?(a.classList.remove("is-loading"),a.classList.add("is-failed")):(a.classList.remove("is-done"),a.classList.remove("is-failed"),a.classList.add("is-loading")),e)){const t=a.querySelector(".progress-text");if(!t)return;t.innerHTML=e}}function g(e,t){const a=document.querySelectorAll(".kirki-install-udb");a.length&&a.forEach((a=>{"disable"===e&&t&&a===t||(a.tagName.toLowerCase(),"disable"===e?a.classList.add("is-loading"):a.classList.remove("is-loading"))}))}function p(e,t){t&&window.setTimeout((()=>{window.location.replace(t)}),1e3),n(e),d=!1,g("enable",e)}document.addEventListener("click",(function(n){const h=a(n.target,".kirki-install-udb");if(!h)return;n.preventDefault(),function(a){if(!r)return;if(d)return;(function(e){o&&l&&(t(l),o.classList.remove("is-hidden"));d=!0,g("disable",e),s(e)})(a),f("Preparing...","loading");const n=r.dataset.setupUdbNonce?r.dataset.setupUdbNonce:"";e(i).ajax({url:ajaxurl,method:"POST",data:{action:"kirki_prepare_install_udb",nonce:n}}).done((function(e){return e.success?e.data.finished?(m("Ultimate Dashboard has already been installed.","done"),f(e.data.message,"done"),f("All done! Redirecting...","loading"),void p(a,c.redirectUrl)):(m(e.data.message,"done"),d=!1,void function(e){if(d)return;d=!0,f("Installing Ultimate Dashboard","loading"),wp.updates.installPlugin({slug:c.slug,success:function(){m("Ultimate Dashboard has been installed successfully","done"),d=!1,u(e)},error:function(t){let a=!0;t.errorCode&&t.errorMessage?"folder_exists"===t.errorCode?(m("Ultimate Dashboard has already been installed.","done"),d=!1,a=!1,u(e)):m(t.errorMessage,"failed"):t.responseJSON&&t.responseJSON.data?m(t.responseJSON.data,"failed"):m("Something went wrong. Please try again later.","failed"),a&&p(e,"")}})}(a)):(m(e.data,"failed"),void p(a,""))})).fail((function(e){let t="Something went wrong. Please try again later.";e.responseJSON&&e.responseJSON.data&&(t=e.responseJSON.data),m(t,"failed"),p(a,"")}))}(h)}))}i=jQuery,function(){e(i)(".heatbox-tab-nav-item").on("click",(function(){e(i)(".heatbox-tab-nav-item").removeClass("active"),e(i)(this).addClass("active");const t=this.querySelector("a");if(!t)return;if(-1===t.href.indexOf("#"))return;const a=t.href.substring(t.href.indexOf("#")+1);e(i)(".heatbox-panel-wrapper .heatbox-admin-panel").css("display","none"),e(i)(".heatbox-panel-wrapper .kirki-"+a+"-panel").css("display","block")})),window.addEventListener("load",(function(){let t=window.location.hash.substring(1),a=null;t||(a=document.querySelector(".heatbox-tab-nav-item.active"),a&&a.dataset.tab&&(t=a.dataset.tab),t=t||"settings"),e(i)(".heatbox-tab-nav-item").removeClass("active"),e(i)(".heatbox-tab-nav-item.kirki-"+t+"-panel").addClass("active"),e(i)(".heatbox-panel-wrapper .heatbox-admin-panel").css("display","none"),e(i)(".heatbox-panel-wrapper .kirki-"+t+"-panel").css("display","block")})),r();const t=document.querySelector(".kirki-clear-font-cache-metabox");if(!t)return;var a=t.querySelector(".submission-status");if(!a)return;const s=t.querySelector(".kirki-clear-font-cache");if(!s)return;s.addEventListener("click",(function(e){if(n)return;n=!0;const t=this;t.classList.add("is-loading"),o&&window.clearTimeout(o);o=0;var s={action:"kirki_clear_font_cache",nonce:t.dataset.nonce};jQuery.ajax({url:ajaxurl,type:"POST",data:s}).done((function(e){l(e.success?"success":"error",e.data)})).fail((function(e){l("error","Something went wrong.")})).always((function(e){n=!1,t.classList.remove("is-loading"),o=window.setTimeout((function(){!function(){if(!a)return;a.textContent="",a.classList.remove("is-success"),a.classList.remove("is-error"),a.classList.add("is-hidden")}()}),4e3)}))}));let n=!1,o=0;function l(e,t){a&&(a.textContent=t,a.classList.add("success"===e?"is-success":"is-error"),a.classList.remove("is-hidden"))}}()}();
+//# sourceMappingURL=settings.js.map
diff --git a/functions/kirki/kirki-packages/settings/dist/settings.js.map b/functions/kirki/kirki-packages/settings/dist/settings.js.map
new file mode 100644
index 0000000..2ef8dcb
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/dist/settings.js.map
@@ -0,0 +1 @@
+{"mappings":"6DAAO,MAAMA,EAAgBC,IAC5B,KAAOA,EAAGC,YACTD,EAAGE,YAAYF,EAAGC,WAAU,EAIjBE,EAAa,CACzBH,EACAI,EACAC,KAEA,GAAIL,EAAGM,QAAQF,GACd,OAAOJ,EAGR,GAAmB,SAAfA,EAAGO,SAAqC,SAAfP,EAAGO,QAC/B,OAGD,IAAIC,EACJH,EAAQA,GAAgB,GAExB,IAAK,IAAII,EAAI,EAAGA,EAAIJ,EAAOI,IAAK,CAC/B,MAAMC,EAAaV,EAAGU,WAEtB,IACEA,GACsB,SAAvBA,EAAWH,SACY,SAAvBG,EAAWH,QAEX,MAGD,GAAIG,EAAWJ,QAAQF,GACtB,OAAOM,EAGRV,EAAKU,CACN,CAEA,OAAOF,CAAA,EAGKG,EAAgBC,IAC5BA,EAAOC,UAAUC,IAAI,eAGTC,EAAeH,IAC3BA,EAAOC,UAAUG,OAAO,e,MCzCV,SAAAC,IACd,MAAMC,EAAgCC,SAASC,cAC9C,wBAED,IAAKF,EAAW,OAEhB,MAAMG,EAAkCH,EAAUE,cACjD,kCAED,IAAKC,EAAa,OAElB,MAAMC,EAAmCD,EAAYD,cACpD,+BAED,IA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AAKyC,EAAQ,OACbA,EAAOM,YAAc,GACrBN,EAAO7F,UAAUG,OAAO,cACxB0F,EAAO7F,UAAUG,OAAO,YACxB0F,EAAO7F,UAAUC,IAAI,YACtB,CAlBImG,EACD,GAAG,IACJ,GACF,IAzCA,IAAI1F,GAAY,EACZoF,EAAoB,EA0CxB,SAASG,EAAW9D,EAAgBgE,GAC9BN,IACLA,EAAOM,YAAcA,EACrBN,EAAO7F,UAAUC,IAAe,YAAXkC,EAAuB,aAAe,YAC3D0D,EAAO7F,UAAUG,OAAO,aACzB,CASD,CAxEC,E","sources":["kirki-packages/settings/src/utils.ts","kirki-packages/settings/src/setup-udb.ts","jQuery.js","kirki-packages/settings/src/settings.ts","kirki-packages/settings/src/tabs.ts"],"sourcesContent":["export const emptyElement = (el: HTMLElement) => {\n\twhile (el.firstChild) {\n\t\tel.removeChild(el.firstChild);\n\t}\n};\n\nexport const getClosest = (\n\tel: HTMLElement,\n\tselector: string,\n\tdepth?: number\n): HTMLElement | undefined => {\n\tif (el.matches(selector)) {\n\t\treturn el;\n\t}\n\n\tif (el.tagName === \"BODY\" || el.tagName === \"HTML\") {\n\t\treturn undefined;\n\t}\n\n\tlet closest = undefined;\n\tdepth = depth ? depth : 20;\n\n\tfor (let i = 0; i < depth; i++) {\n\t\tconst parentNode = el.parentNode as HTMLElement;\n\n\t\tif (\n\t\t\t!parentNode ||\n\t\t\tparentNode.tagName === \"BODY\" ||\n\t\t\tparentNode.tagName === \"HTML\"\n\t\t) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (parentNode.matches(selector)) {\n\t\t\treturn parentNode;\n\t\t}\n\n\t\tel = parentNode;\n\t}\n\n\treturn closest;\n};\n\nexport const startLoading = (button: HTMLButtonElement | HTMLElement) => {\n\tbutton.classList.add(\"is-loading\");\n};\n\nexport const stopLoading = (button: HTMLButtonElement | HTMLElement) => {\n\tbutton.classList.remove(\"is-loading\");\n};\n","import { emptyElement, getClosest, startLoading, stopLoading } from \"./utils\";\nimport jQuery from \"jquery\";\n\ndeclare var wp: any;\ndeclare var kirkiSettings: any;\ndeclare var ajaxurl: any;\n\nexport default function setupUdb() {\n\tconst adminPage: HTMLElement | null = document.querySelector(\n\t\t\".kirki-settings-page\"\n\t);\n\tif (!adminPage) return;\n\n\tconst progressBox: HTMLElement | null = adminPage.querySelector(\n\t\t\".installation-progress-metabox\"\n\t);\n\tif (!progressBox) return;\n\n\tconst progressList: HTMLElement | null = progressBox.querySelector(\n\t\t\".installation-progress-list\"\n\t);\n\tif (!progressList) return;\n\n\tlet doingAjax = false;\n\tconst udbData = kirkiSettings.recommendedPlugins.udb;\n\n\tdocument.addEventListener(\"click\", handleDocumentClick);\n\n\tfunction handleDocumentClick(e: Event) {\n\t\tconst button = getClosest(e.target as HTMLElement, \".kirki-install-udb\");\n\t\tif (!button) return;\n\n\t\te.preventDefault();\n\t\tprepareUdb(button);\n\t}\n\n\tfunction prepareUdb(button: HTMLElement) {\n\t\tif (!adminPage) return;\n\t\tif (doingAjax) return;\n\t\tstartProcessing(button);\n\t\taddProgress(\"Preparing...\", \"loading\");\n\n\t\tconst nonce = adminPage.dataset.setupUdbNonce\n\t\t\t? adminPage.dataset.setupUdbNonce\n\t\t\t: \"\";\n\n\t\tjQuery\n\t\t\t.ajax({\n\t\t\t\turl: ajaxurl,\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tdata: {\n\t\t\t\t\taction: \"kirki_prepare_install_udb\",\n\t\t\t\t\tnonce: nonce,\n\t\t\t\t},\n\t\t\t})\n\t\t\t.done(function (response) {\n\t\t\t\tif (!response.success) {\n\t\t\t\t\tmodifyPreviousProgress(response.data, \"failed\");\n\t\t\t\t\tstopProcessing(button, \"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (response.data.finished) {\n\t\t\t\t\tmodifyPreviousProgress(\n\t\t\t\t\t\t\"Ultimate Dashboard has already been installed.\",\n\t\t\t\t\t\t\"done\"\n\t\t\t\t\t);\n\t\t\t\t\taddProgress(response.data.message, \"done\");\n\t\t\t\t\taddProgress(\"All done! Redirecting...\", \"loading\");\n\t\t\t\t\tstopProcessing(button, udbData.redirectUrl);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tmodifyPreviousProgress(response.data.message, \"done\");\n\t\t\t\tdoingAjax = false;\n\t\t\t\tinstallUdb(button);\n\t\t\t})\n\t\t\t.fail(function (jqXHR) {\n\t\t\t\tlet errorMessage: string =\n\t\t\t\t\t\"Something went wrong. Please try again later.\";\n\n\t\t\t\tif (jqXHR.responseJSON && jqXHR.responseJSON.data) {\n\t\t\t\t\terrorMessage = jqXHR.responseJSON.data;\n\t\t\t\t}\n\n\t\t\t\tmodifyPreviousProgress(errorMessage, \"failed\");\n\t\t\t\tstopProcessing(button, \"\");\n\t\t\t});\n\t}\n\n\tfunction installUdb(button: HTMLElement) {\n\t\tif (doingAjax) return;\n\t\tdoingAjax = true;\n\t\taddProgress(\"Installing Ultimate Dashboard\", \"loading\");\n\n\t\twp.updates.installPlugin({\n\t\t\tslug: udbData.slug,\n\t\t\tsuccess: function () {\n\t\t\t\tmodifyPreviousProgress(\n\t\t\t\t\t\"Ultimate Dashboard has been installed successfully\",\n\t\t\t\t\t\"done\"\n\t\t\t\t);\n\t\t\t\tdoingAjax = false;\n\t\t\t\tactivateUdb(button);\n\t\t\t},\n\t\t\terror: function (jqXHR: any) {\n\t\t\t\tlet abort = true;\n\n\t\t\t\tif (jqXHR.errorCode && jqXHR.errorMessage) {\n\t\t\t\t\tif (jqXHR.errorCode === \"folder_exists\") {\n\t\t\t\t\t\tmodifyPreviousProgress(\n\t\t\t\t\t\t\t\"Ultimate Dashboard has already been installed.\",\n\t\t\t\t\t\t\t\"done\"\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tdoingAjax = false;\n\t\t\t\t\t\tabort = false;\n\n\t\t\t\t\t\t// Since the plugin has already installed since before, let's activate it.\n\t\t\t\t\t\tactivateUdb(button);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmodifyPreviousProgress(jqXHR.errorMessage, \"failed\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (jqXHR.responseJSON && jqXHR.responseJSON.data) {\n\t\t\t\t\t\tmodifyPreviousProgress(jqXHR.responseJSON.data, \"failed\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmodifyPreviousProgress(\n\t\t\t\t\t\t\t\"Something went wrong. Please try again later.\",\n\t\t\t\t\t\t\t\"failed\"\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (abort) stopProcessing(button, \"\");\n\t\t\t},\n\t\t});\n\t}\n\n\tfunction activateUdb(button: HTMLElement) {\n\t\tif (doingAjax) return;\n\t\tdoingAjax = true;\n\t\taddProgress(\"Activating Ultimate Dashboard\", \"loading\");\n\n\t\tjQuery.ajax({\n\t\t\tasync: true,\n\t\t\ttype: \"GET\",\n\t\t\turl: udbData.activationUrl,\n\t\t\tsuccess: function () {\n\t\t\t\tmodifyPreviousProgress(\n\t\t\t\t\t\"Ultimate Dashboard has been activated successfully.\",\n\t\t\t\t\t\"done\"\n\t\t\t\t);\n\n\t\t\t\taddProgress(\"All done! Redirecting...\", \"loading\");\n\t\t\t\tstopProcessing(button, udbData.redirectUrl);\n\t\t\t},\n\t\t\terror: function (jqXHR: any) {\n\t\t\t\tif (jqXHR.errorCode && jqXHR.errorMessage) {\n\t\t\t\t\tmodifyPreviousProgress(jqXHR.errorMessage, \"failed\");\n\t\t\t\t} else {\n\t\t\t\t\tif (jqXHR.responseJSON && jqXHR.responseJSON.data) {\n\t\t\t\t\t\tmodifyPreviousProgress(jqXHR.responseJSON.data, \"failed\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmodifyPreviousProgress(\n\t\t\t\t\t\t\t\"Something went wrong. Please try again later.\",\n\t\t\t\t\t\t\t\"failed\"\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tstopProcessing(button, \"\");\n\t\t\t},\n\t\t});\n\t}\n\n\tfunction addProgress(text: string, status: string) {\n\t\tif (!progressList) return;\n\t\tconst li = document.createElement(\"li\");\n\t\tli.className = \"installation-progress\";\n\n\t\tif (status === \"done\") {\n\t\t\tli.classList.add(\"is-done\");\n\t\t} else if (status === \"failed\") {\n\t\t\tli.classList.add(\"is-failed\");\n\t\t} else {\n\t\t\tli.classList.add(\"is-loading\");\n\t\t}\n\n\t\tconst iconDiv = document.createElement(\"div\");\n\t\ticonDiv.className = \"progress-icon\";\n\t\tli.appendChild(iconDiv);\n\n\t\tconst textDiv = document.createElement(\"div\");\n\t\ttextDiv.className = \"progress-text\";\n\t\ttextDiv.innerHTML = text;\n\t\tli.appendChild(textDiv);\n\n\t\tprogressList.appendChild(li);\n\t}\n\n\tfunction modifyPreviousProgress(text: string, status: string) {\n\t\tif (!progressList) return;\n\t\tconst li = progressList.querySelector(\".installation-progress:last-child\");\n\t\tif (!li) return;\n\n\t\tif (status === \"done\") {\n\t\t\tli.classList.remove(\"is-loading\");\n\t\t\tli.classList.add(\"is-done\");\n\t\t} else if (status === \"failed\") {\n\t\t\tli.classList.remove(\"is-loading\");\n\t\t\tli.classList.add(\"is-failed\");\n\t\t} else {\n\t\t\tli.classList.remove(\"is-done\");\n\t\t\tli.classList.remove(\"is-failed\");\n\t\t\tli.classList.add(\"is-loading\");\n\t\t}\n\n\t\tif (text) {\n\t\t\tconst textDiv = li.querySelector(\".progress-text\");\n\t\t\tif (!textDiv) return;\n\t\t\ttextDiv.innerHTML = text;\n\t\t}\n\t}\n\n\tfunction disableOrEnableOtherButtons(\n\t\tactionType: string,\n\t\tcurrentButton: HTMLElement | HTMLButtonElement\n\t) {\n\t\tconst buttons = document.querySelectorAll(\".kirki-install-udb\");\n\t\tif (!buttons.length) return;\n\n\t\tbuttons.forEach((button) => {\n\t\t\tif (actionType === \"disable\") {\n\t\t\t\tif (currentButton && button === currentButton) return;\n\t\t\t}\n\n\t\t\tif (button.tagName.toLowerCase() === \"button\") {\n\t\t\t\tif (actionType === \"disable\") {\n\t\t\t\t\t// button.setAttribute(\"disabled\", \"disabled\");\n\t\t\t\t\tbutton.classList.add(\"is-loading\");\n\t\t\t\t} else {\n\t\t\t\t\t// button.removeAttribute(\"disabled\");\n\t\t\t\t\tbutton.classList.remove(\"is-loading\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (actionType === \"disable\") {\n\t\t\t\t\t// button.classList.add(\"is-disabled\");\n\t\t\t\t\tbutton.classList.add(\"is-loading\");\n\t\t\t\t} else {\n\t\t\t\t\t// button.classList.remove(\"is-disabled\");\n\t\t\t\t\tbutton.classList.remove(\"is-loading\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction startProcessing(button: HTMLElement) {\n\t\tif (progressBox && progressList) {\n\t\t\temptyElement(progressList);\n\t\t\tprogressBox.classList.remove(\"is-hidden\");\n\t\t}\n\n\t\tdoingAjax = true;\n\t\tdisableOrEnableOtherButtons(\"disable\", button);\n\t\tstartLoading(button);\n\t}\n\n\tfunction stopProcessing(button: HTMLElement, redirectUrl: string) {\n\t\tif (redirectUrl) {\n\t\t\twindow.setTimeout(() => {\n\t\t\t\twindow.location.replace(redirectUrl);\n\t\t\t}, 1000);\n\t\t}\n\n\t\tstopLoading(button);\n\t\tdoingAjax = false;\n\t\tdisableOrEnableOtherButtons(\"enable\", button);\n\t}\n}\n","module.exports=jQuery;","import \"./settings.scss\";\r\nimport setupUdb from \"./setup-udb\";\r\nimport setupTabsNavigation from \"./tabs\";\r\n\r\ndeclare var ajaxurl: string;\r\n\r\n(function () {\r\n\tsetupTabsNavigation();\r\n\tsetupUdb();\r\n\r\n\tconst metabox = document.querySelector(\".kirki-clear-font-cache-metabox\");\r\n\tif (!metabox) return;\r\n\r\n\tvar notice = metabox.querySelector(\".submission-status\");\r\n\tif (!notice) return;\r\n\r\n\tconst button = metabox.querySelector(\".kirki-clear-font-cache\");\r\n\tif (!button) return;\r\n\r\n\tbutton.addEventListener(\"click\", clearFontCache);\r\n\r\n\tlet doingAjax = false;\r\n\tlet timeoutId: number = 0;\r\n\r\n\tfunction clearFontCache(e: Event) {\r\n\t\tif (doingAjax) return;\r\n\t\tdoingAjax = true;\r\n\r\n\t\tconst button = this as HTMLButtonElement;\r\n\t\tbutton.classList.add(\"is-loading\");\r\n\r\n\t\tif (timeoutId) {\r\n\t\t\twindow.clearTimeout(timeoutId);\r\n\t\t}\r\n\r\n\t\ttimeoutId = 0;\r\n\r\n\t\tvar data = {\r\n\t\t\taction: \"kirki_clear_font_cache\",\r\n\t\t\tnonce: button.dataset.nonce,\r\n\t\t};\r\n\r\n\t\tjQuery\r\n\t\t\t.ajax({\r\n\t\t\t\turl: ajaxurl,\r\n\t\t\t\ttype: \"POST\",\r\n\t\t\t\tdata: data,\r\n\t\t\t})\r\n\t\t\t.done(function (r) {\r\n\t\t\t\tshowNotice(r.success ? \"success\" : \"error\", r.data);\r\n\t\t\t})\r\n\t\t\t.fail(function (r) {\r\n\t\t\t\tshowNotice(\"error\", \"Something went wrong.\");\r\n\t\t\t})\r\n\t\t\t.always(function (r) {\r\n\t\t\t\tdoingAjax = false;\r\n\t\t\t\tbutton.classList.remove(\"is-loading\");\r\n\r\n\t\t\t\ttimeoutId = window.setTimeout(function () {\r\n\t\t\t\t\thideNotice();\r\n\t\t\t\t}, 4000);\r\n\t\t\t});\r\n\t}\r\n\r\n\tfunction showNotice(status: string, textContent: string) {\r\n\t\tif (!notice) return;\r\n\t\tnotice.textContent = textContent;\r\n\t\tnotice.classList.add(status === \"success\" ? \"is-success\" : \"is-error\");\r\n\t\tnotice.classList.remove(\"is-hidden\");\r\n\t}\r\n\r\n\tfunction hideNotice() {\r\n\t\tif (!notice) return;\r\n\t\tnotice.textContent = \"\";\r\n\t\tnotice.classList.remove(\"is-success\");\r\n\t\tnotice.classList.remove(\"is-error\");\r\n\t\tnotice.classList.add(\"is-hidden\");\r\n\t}\r\n})();\r\n","import jQuery from \"jquery\";\n\nexport default function setupTabsNavigation() {\n\tjQuery(\".heatbox-tab-nav-item\").on(\"click\", function () {\n\t\tjQuery(\".heatbox-tab-nav-item\").removeClass(\"active\");\n\t\tjQuery(this).addClass(\"active\");\n\n\t\tconst link = this.querySelector(\"a\");\n\t\tif (!link) return;\n\n\t\tif (link.href.indexOf(\"#\") === -1) return;\n\n\t\tconst hashValue = link.href.substring(link.href.indexOf(\"#\") + 1);\n\n\t\tjQuery(\".heatbox-panel-wrapper .heatbox-admin-panel\").css(\n\t\t\t\"display\",\n\t\t\t\"none\"\n\t\t);\n\n\t\tjQuery(\".heatbox-panel-wrapper .kirki-\" + hashValue + \"-panel\").css(\n\t\t\t\"display\",\n\t\t\t\"block\"\n\t\t);\n\t});\n\n\twindow.addEventListener(\"load\", function () {\n\t\tlet hashValue = window.location.hash.substring(1);\n\t\tlet currentActiveTabMenu: HTMLElement | null = null;\n\n\t\tif (!hashValue) {\n\t\t\tcurrentActiveTabMenu = document.querySelector(\n\t\t\t\t\".heatbox-tab-nav-item.active\"\n\t\t\t);\n\n\t\t\tif (currentActiveTabMenu && currentActiveTabMenu.dataset.tab) {\n\t\t\t\thashValue = currentActiveTabMenu.dataset.tab;\n\t\t\t}\n\n\t\t\thashValue = hashValue ? hashValue : \"settings\";\n\t\t}\n\n\t\tjQuery(\".heatbox-tab-nav-item\").removeClass(\"active\");\n\t\tjQuery(\".heatbox-tab-nav-item.kirki-\" + hashValue + \"-panel\").addClass(\n\t\t\t\"active\"\n\t\t);\n\n\t\tjQuery(\".heatbox-panel-wrapper .heatbox-admin-panel\").css(\n\t\t\t\"display\",\n\t\t\t\"none\"\n\t\t);\n\n\t\tjQuery(\".heatbox-panel-wrapper .kirki-\" + hashValue + \"-panel\").css(\n\t\t\t\"display\",\n\t\t\t\"block\"\n\t\t);\n\t});\n}\n"],"names":["$f448701b1a546a82$export$ae6de35c16b306df","el","firstChild","removeChild","$f448701b1a546a82$export$211731fc355e9121","selector","depth","matches","tagName","closest","i","parentNode","$f448701b1a546a82$export$fea330ef6103f535","button","classList","add","$f448701b1a546a82$export$4dabcd056c1d895c","remove","$4fab253fa82d62c5$export$2e2bcd8739ae039","adminPage","document","querySelector","progressBox","progressList","doingAjax","udbData","kirkiSettings","recommendedPlugins","udb","activateUdb","addProgress","$parcel$interopDefault","$0a2eb9defebd2c69$exports","ajax","async","type","url","activationUrl","success","modifyPreviousProgress","stopProcessing","redirectUrl","error","jqXHR","errorCode","errorMessage","responseJSON","data","text","status","li","createElement","className","iconDiv","appendChild","textDiv","innerHTML","disableOrEnableOtherButtons","actionType","currentButton","buttons","querySelectorAll","length","forEach","toLowerCase","window","setTimeout","location","replace","addEventListener","e","target","preventDefault","startProcessing","nonce","dataset","setupUdbNonce","ajaxurl","method","action","done","response","finished","message","wp","updates","installPlugin","slug","abort","installUdb","fail","prepareUdb","jQuery","on","removeClass","this","addClass","link","href","indexOf","hashValue","substring","css","hash","currentActiveTabMenu","tab","metabox","notice","timeoutId","clearTimeout","r","showNotice","always","textContent","hideNotice"],"version":3,"file":"settings.js.map"}
\ No newline at end of file
diff --git a/functions/kirki/kirki-packages/settings/src/Notice.php b/functions/kirki/kirki-packages/settings/src/Notice.php
new file mode 100644
index 0000000..bfb98e1
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/Notice.php
@@ -0,0 +1,147 @@
+id ? true : false );
+
+ }
+
+ /**
+ * Check if we should show the a notice.
+ *
+ * @param string $type The notice type.
+ * @return bool
+ */
+ public function should_show_notice( $type = 'discount' ) {
+
+ $notices = get_option( 'kirki_notices', [] );
+
+ // Stop here if notice has been dismissed.
+ if ( isset( $notices[ $type . '_notice' ] ) ) {
+ return false;
+ }
+
+ // Stop here if we're on our settings page.
+ if ( $this->is_settings_page() ) {
+ return false;
+ }
+
+ // Stop here if current user can't manage options.
+ if ( ! current_user_can( 'manage_options' ) ) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+ /**
+ * Discount notice.
+ */
+ public function discount_notice() {
+
+ // Stop here if the notice shouldn't be shown.
+ if ( ! $this->should_show_notice( 'discount' ) ) {
+ return;
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+ Font Display Issues? Clear the Font Cache in Kirki
+
+
+ New! Easily resolve font display issues by clearing the Font Cache in Kirki. This one-click solution fixes problems caused by domain name changes or site migrations.
+
+
+ Learn more
+
+
+
+
+
+
+ should_show_notice( 'discount' ) ) {
+ return;
+ }
+
+ wp_enqueue_style( 'kirki-admin-notice', KIRKI_PLUGIN_URL . '/kirki-packages/settings/dist/admin-notice.css', array(), KIRKI_VERSION );
+ wp_enqueue_script( 'kirki-discount-notice', KIRKI_PLUGIN_URL . '/kirki-packages/settings/dist/discount-notice.js', array( 'jquery' ), KIRKI_VERSION, true );
+
+ }
+
+ /**
+ * Dismiss discount notice.
+ */
+ public function dismiss_discount_notice() {
+ $nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( $_POST['nonce'] ) : '';
+
+ if ( ! wp_verify_nonce( $nonce, 'Kirki_Dismiss_Discount_Notice' ) ) {
+ wp_send_json_error( __( 'Invalid nonce', 'kirki' ) );
+ }
+
+ if ( ! current_user_can( 'manage_options' ) ) {
+ wp_send_json_error( __( "You don't have capability to run this action", 'kirki' ) );
+ }
+
+ $notices = get_option( 'kirki_notices', [] );
+
+ $notices['discount_notice'] = 1;
+
+ update_option( 'kirki_notices', $notices );
+ wp_send_json_success( __( 'Discount notice has been dismissed', 'kirki' ) );
+ }
+
+}
diff --git a/functions/kirki/kirki-packages/settings/src/SetupSettings.php b/functions/kirki/kirki-packages/settings/src/SetupSettings.php
new file mode 100644
index 0000000..829f9eb
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/SetupSettings.php
@@ -0,0 +1,199 @@
+id ? true : false );
+ }
+
+ /**
+ * Enqueue admin styles.
+ */
+ public function admin_styles() {
+
+ if ( ! $this->is_settings_page() ) {
+ return;
+ }
+
+ wp_enqueue_style( 'heatbox', KIRKI_PLUGIN_URL . '/kirki-packages/settings/dist/heatbox.css', array(), KIRKI_VERSION );
+ wp_enqueue_style( 'kirki-settings', KIRKI_PLUGIN_URL . '/kirki-packages/settings/dist/settings.css', array(), KIRKI_VERSION );
+
+ }
+
+ /**
+ * Enqueue admin scripts.
+ */
+ public function admin_scripts() {
+
+ if ( ! $this->is_settings_page() ) {
+ return;
+ }
+
+ wp_enqueue_script( 'updates' );
+
+ wp_enqueue_script( 'kirki-settings', KIRKI_PLUGIN_URL . '/kirki-packages/settings/dist/settings.js', array( 'jquery', 'wp-polyfill' ), KIRKI_VERSION, true );
+
+ $udb_name = '';
+ $udb_slug = '';
+ $udb_file = '';
+ $udb_basename = $udb_slug . '/' . $udb_file;
+
+ $udb_activation_url = add_query_arg(
+ array(
+ 'action' => 'activate',
+ 'plugin' => rawurlencode( $udb_basename ),
+ 'plugin_status' => 'all',
+ 'paged' => '1',
+ '_wpnonce' => wp_create_nonce( 'activate-plugin_' . $udb_basename ),
+ ),
+ network_admin_url( 'plugins.php' )
+ );
+
+ $js_objects = array(
+ 'recommendedPlugins' => [
+ 'udb' => [
+ 'name' => $udb_name,
+ 'slug' => $udb_slug,
+ 'basename' => $udb_basename,
+ 'activationUrl' => $udb_activation_url,
+ 'redirectUrl' => admin_url( 'edit.php?post_type=udb_widgets&page=udb_plugin_onboarding' ),
+ ],
+ ],
+ );
+
+ wp_localize_script(
+ 'kirki-settings',
+ 'kirkiSettings',
+ $js_objects
+ );
+
+ }
+
+ /**
+ * Admin body class.
+ *
+ * @param string $classes The existing body classes.
+ * @return string The body classes.
+ */
+ public function admin_body_class( $classes ) {
+
+ if ( ! $this->is_settings_page() ) {
+ return $classes;
+ }
+
+ $classes .= ' heatbox-admin has-header';
+
+ return $classes;
+
+ }
+
+ /**
+ * Ajax handler to clear font cache directory.
+ */
+ public function clear_font_cache() {
+
+ $nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( $_POST['nonce'] ) : '';
+
+ if ( ! wp_verify_nonce( $nonce, 'Kirki_Clear_Font_Cache' ) ) {
+ wp_send_json_error( 'Invalid nonce' );
+ }
+
+ $capability = apply_filters( 'kirki_settings_capability', 'manage_options' );
+
+ if ( ! current_user_can( $capability ) ) {
+ wp_send_json_error( "You don't have capability to run this action" );
+ }
+
+ include_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
+ include_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
+
+ $file_system = new WP_Filesystem_Direct( false );
+ $fonts_dir = WP_CONTENT_DIR . '/fonts';
+
+ if ( is_dir( $fonts_dir ) ) {
+ // Delete fonts directory.
+ $file_system->rmdir( $fonts_dir, true );
+ } else {
+ wp_send_json_error( 'No local fonts found.', 'kirki' );
+ }
+
+ wp_send_json_success( 'Font cache cleared.', 'kirki' );
+
+ }
+
+}
diff --git a/functions/kirki/kirki-packages/settings/src/admin-notice.scss b/functions/kirki/kirki-packages/settings/src/admin-notice.scss
new file mode 100644
index 0000000..6590e10
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/admin-notice.scss
@@ -0,0 +1,34 @@
+.kirki-admin-notice {
+ padding: 25px 20px;
+}
+
+.kirki-admin-notice .notice-body {
+ display: flex;
+}
+
+.kirki-admin-notice .notice-icon {
+ padding-right: 25px;
+}
+
+.kirki-admin-notice .notice-icon img {
+ max-width: 55px;
+}
+
+.kirki-admin-notice .notice-content {
+ width: 100%;
+}
+
+.kirki-admin-notice .notice-content h2 {
+ margin-top: 0;
+ margin-bottom: 10px;
+ font-weight: 700;
+}
+
+.kirki-admin-notice .notice-content > p {
+ margin-top: 0;
+ margin-bottom: 10px;
+}
+
+.kirki-admin-notice .notice-content > p:last-child {
+ margin-bottom: 0;
+}
diff --git a/functions/kirki/kirki-packages/settings/src/discount-notice.ts b/functions/kirki/kirki-packages/settings/src/discount-notice.ts
new file mode 100644
index 0000000..1d5c2b0
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/discount-notice.ts
@@ -0,0 +1,37 @@
+import { getClosest } from "./utils";
+import jQuery from "jquery";
+
+declare var ajaxurl: string;
+
+(function () {
+ function init() {
+ jQuery(document).on(
+ "click",
+ ".kirki-discount-notice.is-dismissible .notice-dismiss",
+ dismiss
+ );
+ }
+
+ function dismiss(e: JQuery.ClickEvent) {
+ const notice = getClosest(this, ".kirki-discount-notice");
+ if (!notice) return;
+ let nonce = notice.dataset.dismissNonce;
+ nonce = nonce ? nonce : "";
+
+ jQuery
+ .ajax({
+ url: ajaxurl,
+ type: "post",
+ data: {
+ action: "kirki_dismiss_discount_notice",
+ nonce: nonce,
+ dismiss: 1,
+ },
+ })
+ .always(function (r) {
+ if (r.success) console.log(r.data);
+ });
+ }
+
+ init();
+})();
diff --git a/functions/kirki/kirki-packages/settings/src/settings.scss b/functions/kirki/kirki-packages/settings/src/settings.scss
new file mode 100644
index 0000000..c59d373
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/settings.scss
@@ -0,0 +1,419 @@
+// Vars
+.kirki-settings-page {
+ --kirki-brand-color: #2764F1;
+ --kirki-danger-color: #47D87C;
+}
+
+// Loading animation
+@-webkit-keyframes loadingSpinAround {
+ from {
+ transform: rotate(0);
+ }
+ to {
+ transform: rotate(359deg);
+ }
+}
+
+@keyframes loadingSpinAround {
+ from {
+ transform: rotate(0);
+ }
+ to {
+ transform: rotate(359deg);
+ }
+}
+
+.kirki-settings-page {
+ // Button
+ .button.is-loading {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: transparent !important;
+ pointer-events: none;
+
+ &::after {
+ content: "";
+ position: absolute;
+ width: 1em;
+ display: block;
+ height: 1em;
+ border: 2px solid #dbdbdb;
+ border-color: transparent transparent #fff #fff !important;
+ border-radius: 290486px;
+ -webkit-animation: loadingSpinAround 0.5s infinite linear;
+ animation: loadingSpinAround 0.5s infinite linear;
+ }
+ }
+
+ .button-link {
+ border-width: 0;
+ background-color: transparent;
+ font-size: 17px;
+ text-decoration: underline;
+
+ &:focus,
+ &:active {
+ outline: none;
+ box-shadow: none;
+ border-width: 0;
+ }
+
+ &.is-disabled {
+ color: #ddd;
+ }
+
+ &.is-right-side {
+ float: right;
+
+ &.is-loading {
+ justify-content: flex-end;
+ }
+ }
+
+ &.is-loading {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: transparent !important;
+ pointer-events: none;
+
+ &::after {
+ content: "";
+ position: absolute;
+ width: 1em;
+ display: block;
+ height: 1em;
+ border: 2px solid #7ab4e3;
+ border-color: transparent transparent #2271b1 #2271b1 !important;
+ border-radius: 290486px;
+ -webkit-animation: loadingSpinAround 0.5s infinite linear;
+ animation: loadingSpinAround 0.5s infinite linear;
+ }
+ }
+ }
+
+ .submission-status {
+ margin-left: 15px;
+ line-height: 39px;
+ }
+
+ .submission-status.is-hidden {
+ display: none;
+ }
+
+ .submission-status.is-success {
+ color: #0fa953;
+ }
+
+ .submission-status.is-error {
+ color: tomato;
+ }
+}
+
+// Featured products
+.featured-products-banner {
+ img {
+ border: 1px solid #ddd;
+ max-width: 100%;
+ }
+}
+
+.kirki-featured-products {
+ > h2 {
+ text-align: center;
+ margin-bottom: 50px;
+ font-size: 24px;
+ }
+
+ .products {
+ display: flex;
+ justify-content: space-between;
+
+ li {
+ width: 32%;
+ }
+
+ .subheadline {
+ font-weight: 600;
+ margin-top: -6px;
+ }
+
+ img {
+ max-width: 100%;
+ }
+ }
+
+ .credit {
+ margin-top: 20px;
+ text-align: center;
+ opacity: 0.5;
+ }
+}
+
+// Heatbox adjustment
+.heatbox {
+ position: relative;
+
+ .checkbox-label {
+ .is-disabled {
+ opacity: 0.6;
+ }
+ }
+
+ .heatbox-overlay.is-hidden {
+ display: none;
+ }
+
+ .heatbox-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ background-color: rgba(0, 0, 0, 0.1);
+ width: 100%;
+ height: 100%;
+ z-index: 100;
+ }
+}
+
+// Kirki PRO
+.pro-extensions-banner-link {
+ display: block;
+ margin-bottom: 20px;
+ box-shadow: none !important;
+}
+
+.pro-extensions-banner {
+ max-width: 100%;
+ border: 1px solid #ddd;
+}
+
+.pro-extensions-list {
+ margin: 0;
+
+ li {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ margin: 0;
+ padding: 25px 20px;
+ border-bottom: 1px solid #ddd;
+
+ &:last-child {
+ border: none;
+ background: #f9f9f9;
+
+ h3 {
+ margin-bottom: 10px;
+ }
+
+ p {
+ margin-bottom: 0;
+ }
+ }
+
+ div {
+ flex: 0 50%;
+ }
+
+ h3 {
+ display: inline-block;
+ margin-bottom: 0;
+ font-weight: 400;
+ }
+
+ p {
+ font-size: 16px;
+ }
+ }
+
+ .tooltip {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ color: #ccc;
+ margin-left: 8px;
+
+ &:hover {
+ color: #0073aa;
+
+ p {
+ opacity: 1;
+ z-index: 1;
+ }
+ }
+
+ p {
+ z-index: -1;
+ opacity: 0;
+ position: absolute;
+ bottom: 15px;
+ left: -40px;
+ width: 250px;
+ background: #fff;
+ padding: 15px;
+ border: 1px solid #ddd;
+ color: initial;
+ -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
+ -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
+ border-radius: 4px;
+ }
+ }
+}
+
+.pro-extensions-list-icon {
+ text-align: right;
+ color: #47d87c;
+ left: 0;
+ bottom: 0;
+
+ i {
+ margin-right: 20px;
+ position: relative;
+ }
+
+ strong {
+ padding: 2px 4px;
+ border-radius: 4px;
+ background: #47d87c;
+ color: #fff;
+ line-height: 1;
+ margin: 0 10px;
+ font-size: 12px;
+ }
+ .button-larger {
+ padding: 10px 30px;
+ }
+}
+
+// Recommended plugins
+.kirki-recommended-list {
+ display: flex;
+ flex-wrap: wrap;
+ margin: 0;
+
+ li {
+ display: flex;
+ flex-direction: column;
+ flex: 0 49%;
+ margin-right: 2%;
+
+ &:nth-child(even) {
+ margin-right: 0;
+ }
+
+ & > a {
+ box-shadow: none;
+ }
+ }
+
+ img {
+ max-width: 100%;
+ }
+}
+
+.kirki-recommended-content {
+ padding: 20px;
+ flex: 1 0 auto;
+ min-height: 150px;
+
+ p {
+ font-size: 16px;
+ }
+}
+
+.kirki-recommended-status {
+ display: flex;
+ align-items: center;
+ padding: 20px;
+ background: #f9f9f9;
+ border-top: 1px solid #ddd;
+
+ div {
+ flex: 0 50%;
+ }
+}
+
+.kirki-recommended-status-icon {
+ text-align: right;
+ color: #aaa;
+
+ &.green {
+ color: #47d87c;
+ }
+
+ i {
+ font-size: 22px !important;
+ }
+}
+
+// Instant installation progress
+.installation-progress-metabox {
+ &.is-hidden {
+ display: none;
+ }
+}
+
+.installation-info {
+ font-size: 14px;
+ font-weight: 700;
+}
+
+.installation-progress {
+ display: flex;
+ align-items: center;
+ margin-bottom: 10px;
+
+ .progress-icon {
+ position: relative;
+ margin-right: 4px;
+ width: 20px;
+ height: 20px;
+ }
+
+ &.is-loading {
+ .progress-icon {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: transparent !important;
+ pointer-events: none;
+
+ &::after {
+ content: "";
+ position: absolute;
+ width: 1em;
+ display: block;
+ height: 1em;
+ border: 2px solid #7ab4e3;
+ border-color: transparent transparent #2271b1 #2271b1 !important;
+ border-radius: 290486px;
+ -webkit-animation: loadingSpinAround 0.5s infinite linear;
+ animation: loadingSpinAround 0.5s infinite linear;
+ }
+ }
+ }
+
+ &.is-done {
+ .progress-icon::before {
+ content: "\f147";
+ font-family: dashicons;
+ color: #47d87c;
+ font-size: 20px;
+ }
+ }
+
+ &.is-failed {
+ .progress-icon::before {
+ content: "\f158";
+ font-family: dashicons;
+ color: tomato;
+ font-size: 20px;
+ }
+ }
+
+ .progress-text {
+ flex: 1 1 auto;
+ }
+}
diff --git a/functions/kirki/kirki-packages/settings/src/settings.ts b/functions/kirki/kirki-packages/settings/src/settings.ts
new file mode 100644
index 0000000..1d7ee0a
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/settings.ts
@@ -0,0 +1,79 @@
+import "./settings.scss";
+import setupUdb from "./setup-udb";
+import setupTabsNavigation from "./tabs";
+
+declare var ajaxurl: string;
+
+(function () {
+ setupTabsNavigation();
+ setupUdb();
+
+ const metabox = document.querySelector(".kirki-clear-font-cache-metabox");
+ if (!metabox) return;
+
+ var notice = metabox.querySelector(".submission-status");
+ if (!notice) return;
+
+ const button = metabox.querySelector(".kirki-clear-font-cache");
+ if (!button) return;
+
+ button.addEventListener("click", clearFontCache);
+
+ let doingAjax = false;
+ let timeoutId: number = 0;
+
+ function clearFontCache(e: Event) {
+ if (doingAjax) return;
+ doingAjax = true;
+
+ const button = this as HTMLButtonElement;
+ button.classList.add("is-loading");
+
+ if (timeoutId) {
+ window.clearTimeout(timeoutId);
+ }
+
+ timeoutId = 0;
+
+ var data = {
+ action: "kirki_clear_font_cache",
+ nonce: button.dataset.nonce,
+ };
+
+ jQuery
+ .ajax({
+ url: ajaxurl,
+ type: "POST",
+ data: data,
+ })
+ .done(function (r) {
+ showNotice(r.success ? "success" : "error", r.data);
+ })
+ .fail(function (r) {
+ showNotice("error", "Something went wrong.");
+ })
+ .always(function (r) {
+ doingAjax = false;
+ button.classList.remove("is-loading");
+
+ timeoutId = window.setTimeout(function () {
+ hideNotice();
+ }, 4000);
+ });
+ }
+
+ function showNotice(status: string, textContent: string) {
+ if (!notice) return;
+ notice.textContent = textContent;
+ notice.classList.add(status === "success" ? "is-success" : "is-error");
+ notice.classList.remove("is-hidden");
+ }
+
+ function hideNotice() {
+ if (!notice) return;
+ notice.textContent = "";
+ notice.classList.remove("is-success");
+ notice.classList.remove("is-error");
+ notice.classList.add("is-hidden");
+ }
+})();
diff --git a/functions/kirki/kirki-packages/settings/src/setup-udb.ts b/functions/kirki/kirki-packages/settings/src/setup-udb.ts
new file mode 100644
index 0000000..bec341a
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/setup-udb.ts
@@ -0,0 +1,280 @@
+import { emptyElement, getClosest, startLoading, stopLoading } from "./utils";
+import jQuery from "jquery";
+
+declare var wp: any;
+declare var kirkiSettings: any;
+declare var ajaxurl: any;
+
+export default function setupUdb() {
+ const adminPage: HTMLElement | null = document.querySelector(
+ ".kirki-settings-page"
+ );
+ if (!adminPage) return;
+
+ const progressBox: HTMLElement | null = adminPage.querySelector(
+ ".installation-progress-metabox"
+ );
+ if (!progressBox) return;
+
+ const progressList: HTMLElement | null = progressBox.querySelector(
+ ".installation-progress-list"
+ );
+ if (!progressList) return;
+
+ let doingAjax = false;
+ const udbData = kirkiSettings.recommendedPlugins.udb;
+
+ document.addEventListener("click", handleDocumentClick);
+
+ function handleDocumentClick(e: Event) {
+ const button = getClosest(e.target as HTMLElement, ".kirki-install-udb");
+ if (!button) return;
+
+ e.preventDefault();
+ prepareUdb(button);
+ }
+
+ function prepareUdb(button: HTMLElement) {
+ if (!adminPage) return;
+ if (doingAjax) return;
+ startProcessing(button);
+ addProgress("Preparing...", "loading");
+
+ const nonce = adminPage.dataset.setupUdbNonce
+ ? adminPage.dataset.setupUdbNonce
+ : "";
+
+ jQuery
+ .ajax({
+ url: ajaxurl,
+ method: "POST",
+ data: {
+ action: "kirki_prepare_install_udb",
+ nonce: nonce,
+ },
+ })
+ .done(function (response) {
+ if (!response.success) {
+ modifyPreviousProgress(response.data, "failed");
+ stopProcessing(button, "");
+ return;
+ }
+
+ if (response.data.finished) {
+ modifyPreviousProgress(
+ "Ultimate Dashboard has already been installed.",
+ "done"
+ );
+ addProgress(response.data.message, "done");
+ addProgress("All done! Redirecting...", "loading");
+ stopProcessing(button, udbData.redirectUrl);
+ return;
+ }
+
+ modifyPreviousProgress(response.data.message, "done");
+ doingAjax = false;
+ installUdb(button);
+ })
+ .fail(function (jqXHR) {
+ let errorMessage: string =
+ "Something went wrong. Please try again later.";
+
+ if (jqXHR.responseJSON && jqXHR.responseJSON.data) {
+ errorMessage = jqXHR.responseJSON.data;
+ }
+
+ modifyPreviousProgress(errorMessage, "failed");
+ stopProcessing(button, "");
+ });
+ }
+
+ function installUdb(button: HTMLElement) {
+ if (doingAjax) return;
+ doingAjax = true;
+ addProgress("Installing Ultimate Dashboard", "loading");
+
+ wp.updates.installPlugin({
+ slug: udbData.slug,
+ success: function () {
+ modifyPreviousProgress(
+ "Ultimate Dashboard has been installed successfully",
+ "done"
+ );
+ doingAjax = false;
+ activateUdb(button);
+ },
+ error: function (jqXHR: any) {
+ let abort = true;
+
+ if (jqXHR.errorCode && jqXHR.errorMessage) {
+ if (jqXHR.errorCode === "folder_exists") {
+ modifyPreviousProgress(
+ "Ultimate Dashboard has already been installed.",
+ "done"
+ );
+
+ doingAjax = false;
+ abort = false;
+
+ // Since the plugin has already installed since before, let's activate it.
+ activateUdb(button);
+ } else {
+ modifyPreviousProgress(jqXHR.errorMessage, "failed");
+ }
+ } else {
+ if (jqXHR.responseJSON && jqXHR.responseJSON.data) {
+ modifyPreviousProgress(jqXHR.responseJSON.data, "failed");
+ } else {
+ modifyPreviousProgress(
+ "Something went wrong. Please try again later.",
+ "failed"
+ );
+ }
+ }
+
+ if (abort) stopProcessing(button, "");
+ },
+ });
+ }
+
+ function activateUdb(button: HTMLElement) {
+ if (doingAjax) return;
+ doingAjax = true;
+ addProgress("Activating Ultimate Dashboard", "loading");
+
+ jQuery.ajax({
+ async: true,
+ type: "GET",
+ url: udbData.activationUrl,
+ success: function () {
+ modifyPreviousProgress(
+ "Ultimate Dashboard has been activated successfully.",
+ "done"
+ );
+
+ addProgress("All done! Redirecting...", "loading");
+ stopProcessing(button, udbData.redirectUrl);
+ },
+ error: function (jqXHR: any) {
+ if (jqXHR.errorCode && jqXHR.errorMessage) {
+ modifyPreviousProgress(jqXHR.errorMessage, "failed");
+ } else {
+ if (jqXHR.responseJSON && jqXHR.responseJSON.data) {
+ modifyPreviousProgress(jqXHR.responseJSON.data, "failed");
+ } else {
+ modifyPreviousProgress(
+ "Something went wrong. Please try again later.",
+ "failed"
+ );
+ }
+ }
+
+ stopProcessing(button, "");
+ },
+ });
+ }
+
+ function addProgress(text: string, status: string) {
+ if (!progressList) return;
+ const li = document.createElement("li");
+ li.className = "installation-progress";
+
+ if (status === "done") {
+ li.classList.add("is-done");
+ } else if (status === "failed") {
+ li.classList.add("is-failed");
+ } else {
+ li.classList.add("is-loading");
+ }
+
+ const iconDiv = document.createElement("div");
+ iconDiv.className = "progress-icon";
+ li.appendChild(iconDiv);
+
+ const textDiv = document.createElement("div");
+ textDiv.className = "progress-text";
+ textDiv.innerHTML = text;
+ li.appendChild(textDiv);
+
+ progressList.appendChild(li);
+ }
+
+ function modifyPreviousProgress(text: string, status: string) {
+ if (!progressList) return;
+ const li = progressList.querySelector(".installation-progress:last-child");
+ if (!li) return;
+
+ if (status === "done") {
+ li.classList.remove("is-loading");
+ li.classList.add("is-done");
+ } else if (status === "failed") {
+ li.classList.remove("is-loading");
+ li.classList.add("is-failed");
+ } else {
+ li.classList.remove("is-done");
+ li.classList.remove("is-failed");
+ li.classList.add("is-loading");
+ }
+
+ if (text) {
+ const textDiv = li.querySelector(".progress-text");
+ if (!textDiv) return;
+ textDiv.innerHTML = text;
+ }
+ }
+
+ function disableOrEnableOtherButtons(
+ actionType: string,
+ currentButton: HTMLElement | HTMLButtonElement
+ ) {
+ const buttons = document.querySelectorAll(".kirki-install-udb");
+ if (!buttons.length) return;
+
+ buttons.forEach((button) => {
+ if (actionType === "disable") {
+ if (currentButton && button === currentButton) return;
+ }
+
+ if (button.tagName.toLowerCase() === "button") {
+ if (actionType === "disable") {
+ // button.setAttribute("disabled", "disabled");
+ button.classList.add("is-loading");
+ } else {
+ // button.removeAttribute("disabled");
+ button.classList.remove("is-loading");
+ }
+ } else {
+ if (actionType === "disable") {
+ // button.classList.add("is-disabled");
+ button.classList.add("is-loading");
+ } else {
+ // button.classList.remove("is-disabled");
+ button.classList.remove("is-loading");
+ }
+ }
+ });
+ }
+
+ function startProcessing(button: HTMLElement) {
+ if (progressBox && progressList) {
+ emptyElement(progressList);
+ progressBox.classList.remove("is-hidden");
+ }
+
+ doingAjax = true;
+ disableOrEnableOtherButtons("disable", button);
+ startLoading(button);
+ }
+
+ function stopProcessing(button: HTMLElement, redirectUrl: string) {
+ if (redirectUrl) {
+ window.setTimeout(() => {
+ window.location.replace(redirectUrl);
+ }, 1000);
+ }
+
+ stopLoading(button);
+ doingAjax = false;
+ disableOrEnableOtherButtons("enable", button);
+ }
+}
diff --git a/functions/kirki/kirki-packages/settings/src/tabs.ts b/functions/kirki/kirki-packages/settings/src/tabs.ts
new file mode 100644
index 0000000..3ff8f33
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/tabs.ts
@@ -0,0 +1,57 @@
+import jQuery from "jquery";
+
+export default function setupTabsNavigation() {
+ jQuery(".heatbox-tab-nav-item").on("click", function () {
+ jQuery(".heatbox-tab-nav-item").removeClass("active");
+ jQuery(this).addClass("active");
+
+ const link = this.querySelector("a");
+ if (!link) return;
+
+ if (link.href.indexOf("#") === -1) return;
+
+ const hashValue = link.href.substring(link.href.indexOf("#") + 1);
+
+ jQuery(".heatbox-panel-wrapper .heatbox-admin-panel").css(
+ "display",
+ "none"
+ );
+
+ jQuery(".heatbox-panel-wrapper .kirki-" + hashValue + "-panel").css(
+ "display",
+ "block"
+ );
+ });
+
+ window.addEventListener("load", function () {
+ let hashValue = window.location.hash.substring(1);
+ let currentActiveTabMenu: HTMLElement | null = null;
+
+ if (!hashValue) {
+ currentActiveTabMenu = document.querySelector(
+ ".heatbox-tab-nav-item.active"
+ );
+
+ if (currentActiveTabMenu && currentActiveTabMenu.dataset.tab) {
+ hashValue = currentActiveTabMenu.dataset.tab;
+ }
+
+ hashValue = hashValue ? hashValue : "settings";
+ }
+
+ jQuery(".heatbox-tab-nav-item").removeClass("active");
+ jQuery(".heatbox-tab-nav-item.kirki-" + hashValue + "-panel").addClass(
+ "active"
+ );
+
+ jQuery(".heatbox-panel-wrapper .heatbox-admin-panel").css(
+ "display",
+ "none"
+ );
+
+ jQuery(".heatbox-panel-wrapper .kirki-" + hashValue + "-panel").css(
+ "display",
+ "block"
+ );
+ });
+}
diff --git a/functions/kirki/kirki-packages/settings/src/utils.ts b/functions/kirki/kirki-packages/settings/src/utils.ts
new file mode 100644
index 0000000..1bc6dbb
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/src/utils.ts
@@ -0,0 +1,50 @@
+export const emptyElement = (el: HTMLElement) => {
+ while (el.firstChild) {
+ el.removeChild(el.firstChild);
+ }
+};
+
+export const getClosest = (
+ el: HTMLElement,
+ selector: string,
+ depth?: number
+): HTMLElement | undefined => {
+ if (el.matches(selector)) {
+ return el;
+ }
+
+ if (el.tagName === "BODY" || el.tagName === "HTML") {
+ return undefined;
+ }
+
+ let closest = undefined;
+ depth = depth ? depth : 20;
+
+ for (let i = 0; i < depth; i++) {
+ const parentNode = el.parentNode as HTMLElement;
+
+ if (
+ !parentNode ||
+ parentNode.tagName === "BODY" ||
+ parentNode.tagName === "HTML"
+ ) {
+ break;
+ }
+
+ if (parentNode.matches(selector)) {
+ return parentNode;
+ }
+
+ el = parentNode;
+ }
+
+ return closest;
+};
+
+export const startLoading = (button: HTMLButtonElement | HTMLElement) => {
+ button.classList.add("is-loading");
+};
+
+export const stopLoading = (button: HTMLButtonElement | HTMLElement) => {
+ button.classList.remove("is-loading");
+};
diff --git a/functions/kirki/kirki-packages/settings/templates/metaboxes/clear-font-cache.php b/functions/kirki/kirki-packages/settings/templates/metaboxes/clear-font-cache.php
new file mode 100644
index 0000000..9544572
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/templates/metaboxes/clear-font-cache.php
@@ -0,0 +1,30 @@
+
+
+
diff --git a/functions/kirki/kirki-packages/settings/templates/metaboxes/documentation.php b/functions/kirki/kirki-packages/settings/templates/metaboxes/documentation.php
new file mode 100644
index 0000000..6ab9c80
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/templates/metaboxes/documentation.php
@@ -0,0 +1,40 @@
+
+
+
+
+
diff --git a/functions/kirki/kirki-packages/settings/templates/metaboxes/installation-progress.php b/functions/kirki/kirki-packages/settings/templates/metaboxes/installation-progress.php
new file mode 100644
index 0000000..bfad40a
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/templates/metaboxes/installation-progress.php
@@ -0,0 +1,19 @@
+
+
+
diff --git a/functions/kirki/kirki-packages/settings/templates/settings-template.php b/functions/kirki/kirki-packages/settings/templates/settings-template.php
new file mode 100644
index 0000000..9e06e88
--- /dev/null
+++ b/functions/kirki/kirki-packages/settings/templates/settings-template.php
@@ -0,0 +1,74 @@
+
+
+
+
+ modules = new Modules();
// Instantiate classes.
new Kirki();
new L10n( 'kirki', __DIR__ . '/languages' );
+new \Kirki\Settings\SetupSettings();
// ? Bagus: Do we really need to-reinclude this file? It was included above.
// Include the ariColor library.
diff --git a/functions/kirki/lib/class-kirki-color.php b/functions/kirki/lib/class-kirki-color.php
index 9571915..8a00227 100644
--- a/functions/kirki/lib/class-kirki-color.php
+++ b/functions/kirki/lib/class-kirki-color.php
@@ -5,8 +5,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
diff --git a/functions/kirki/packages/composer/autoload_psr4.php b/functions/kirki/packages/composer/autoload_psr4.php
deleted file mode 100644
index b072dfe..0000000
--- a/functions/kirki/packages/composer/autoload_psr4.php
+++ /dev/null
@@ -1,19 +0,0 @@
- array($vendorDir . '/kirki-framework/control-dashicons/src/Util', $vendorDir . '/kirki-framework/util/src'),
- 'Kirki\\Settings\\' => array($vendorDir . '/kirki-framework/control-repeater/src/Settings'),
- 'Kirki\\Module\\' => array($vendorDir . '/kirki-framework/module-css/src', $vendorDir . '/kirki-framework/module-editor-styles/src', $vendorDir . '/kirki-framework/module-field-dependencies/src', $vendorDir . '/kirki-framework/module-postmessage/src', $vendorDir . '/kirki-framework/module-preset/src', $vendorDir . '/kirki-framework/module-section-icons/src', $vendorDir . '/kirki-framework/module-selective-refresh/src', $vendorDir . '/kirki-framework/module-tooltips/src', $vendorDir . '/kirki-framework/module-webfonts/src'),
- 'Kirki\\Field\\' => array($vendorDir . '/kirki-framework/control-checkbox/src/Field', $vendorDir . '/kirki-framework/control-code/src/Field', $vendorDir . '/kirki-framework/control-color/src/Field', $vendorDir . '/kirki-framework/control-color-palette/src/Field', $vendorDir . '/kirki-framework/control-custom/src/Field', $vendorDir . '/kirki-framework/control-dashicons/src/Field', $vendorDir . '/kirki-framework/control-date/src/Field', $vendorDir . '/kirki-framework/control-dimension/src/Field', $vendorDir . '/kirki-framework/control-editor/src/Field', $vendorDir . '/kirki-framework/control-generic/src/Field', $vendorDir . '/kirki-framework/control-image/src/Field', $vendorDir . '/kirki-framework/control-multicheck/src/Field', $vendorDir . '/kirki-framework/control-palette/src/Field', $vendorDir . '/kirki-framework/control-radio/src/Field', $vendorDir . '/kirki-framework/control-react-colorful/src/Field', $vendorDir . '/kirki-framework/control-react-select/src/Field', $vendorDir . '/kirki-framework/control-repeater/src/Field', $vendorDir . '/kirki-framework/control-select/src/Field', $vendorDir . '/kirki-framework/control-slider/src/Field', $vendorDir . '/kirki-framework/control-sortable/src/Field', $vendorDir . '/kirki-framework/control-upload/src/Field', $vendorDir . '/kirki-framework/field-background/src', $vendorDir . '/kirki-framework/field-dimensions/src', $vendorDir . '/kirki-framework/field-fontawesome/src/Field', $vendorDir . '/kirki-framework/field-multicolor/src/Field', $vendorDir . '/kirki-framework/field-typography/src/Field'),
- 'Kirki\\Data\\' => array($vendorDir . '/kirki-framework/data-option/src'),
- 'Kirki\\Control\\' => array($vendorDir . '/kirki-framework/control-base/src/Control', $vendorDir . '/kirki-framework/control-checkbox/src/Control', $vendorDir . '/kirki-framework/control-code/src/Control', $vendorDir . '/kirki-framework/control-color/src/Control', $vendorDir . '/kirki-framework/control-color-palette/src/Control', $vendorDir . '/kirki-framework/control-cropped-image/src', $vendorDir . '/kirki-framework/control-custom/src/Control', $vendorDir . '/kirki-framework/control-dashicons/src/Control', $vendorDir . '/kirki-framework/control-date/src/Control', $vendorDir . '/kirki-framework/control-dimension/src/Control', $vendorDir . '/kirki-framework/control-editor/src/Control', $vendorDir . '/kirki-framework/control-generic/src/Control', $vendorDir . '/kirki-framework/control-image/src/Control', $vendorDir . '/kirki-framework/control-multicheck/src/Control', $vendorDir . '/kirki-framework/control-palette/src/Control', $vendorDir . '/kirki-framework/control-radio/src/Control', $vendorDir . '/kirki-framework/control-react-colorful/src/Control', $vendorDir . '/kirki-framework/control-react-select/src/Control', $vendorDir . '/kirki-framework/control-repeater/src/Control', $vendorDir . '/kirki-framework/control-select/src/Control', $vendorDir . '/kirki-framework/control-slider/src/Control', $vendorDir . '/kirki-framework/control-sortable/src/Control', $vendorDir . '/kirki-framework/control-upload/src/Control', $vendorDir . '/kirki-framework/field-multicolor/src/Control', $vendorDir . '/kirki-framework/field-typography/src/Control'),
- 'Kirki\\Compatibility\\' => array($vendorDir . '/kirki-framework/compatibility/src'),
- 'Kirki\\' => array($vendorDir . '/kirki-framework/field/src', $vendorDir . '/kirki-framework/googlefonts/src', $vendorDir . '/kirki-framework/l10n/src', $vendorDir . '/kirki-framework/module-panels/src', $vendorDir . '/kirki-framework/module-sections/src', $vendorDir . '/kirki-framework/url-getter/src'),
- 'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),
- 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
-);
diff --git a/functions/kirki/packages/composer/autoload_static.php b/functions/kirki/packages/composer/autoload_static.php
deleted file mode 100644
index 6486b9f..0000000
--- a/functions/kirki/packages/composer/autoload_static.php
+++ /dev/null
@@ -1,150 +0,0 @@
-
- array (
- 'Kirki\\Util\\' => 11,
- 'Kirki\\Settings\\' => 15,
- 'Kirki\\Module\\' => 13,
- 'Kirki\\Field\\' => 12,
- 'Kirki\\Data\\' => 11,
- 'Kirki\\Control\\' => 14,
- 'Kirki\\Compatibility\\' => 20,
- 'Kirki\\' => 6,
- ),
- 'D' =>
- array (
- 'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 55,
- ),
- 'C' =>
- array (
- 'Composer\\Installers\\' => 20,
- ),
- );
-
- public static $prefixDirsPsr4 = array (
- 'Kirki\\Util\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/control-dashicons/src/Util',
- 1 => __DIR__ . '/..' . '/kirki-framework/util/src',
- ),
- 'Kirki\\Settings\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/control-repeater/src/Settings',
- ),
- 'Kirki\\Module\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/module-css/src',
- 1 => __DIR__ . '/..' . '/kirki-framework/module-editor-styles/src',
- 2 => __DIR__ . '/..' . '/kirki-framework/module-field-dependencies/src',
- 3 => __DIR__ . '/..' . '/kirki-framework/module-postmessage/src',
- 4 => __DIR__ . '/..' . '/kirki-framework/module-preset/src',
- 5 => __DIR__ . '/..' . '/kirki-framework/module-section-icons/src',
- 6 => __DIR__ . '/..' . '/kirki-framework/module-selective-refresh/src',
- 7 => __DIR__ . '/..' . '/kirki-framework/module-tooltips/src',
- 8 => __DIR__ . '/..' . '/kirki-framework/module-webfonts/src',
- ),
- 'Kirki\\Field\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/control-checkbox/src/Field',
- 1 => __DIR__ . '/..' . '/kirki-framework/control-code/src/Field',
- 2 => __DIR__ . '/..' . '/kirki-framework/control-color/src/Field',
- 3 => __DIR__ . '/..' . '/kirki-framework/control-color-palette/src/Field',
- 4 => __DIR__ . '/..' . '/kirki-framework/control-custom/src/Field',
- 5 => __DIR__ . '/..' . '/kirki-framework/control-dashicons/src/Field',
- 6 => __DIR__ . '/..' . '/kirki-framework/control-date/src/Field',
- 7 => __DIR__ . '/..' . '/kirki-framework/control-dimension/src/Field',
- 8 => __DIR__ . '/..' . '/kirki-framework/control-editor/src/Field',
- 9 => __DIR__ . '/..' . '/kirki-framework/control-generic/src/Field',
- 10 => __DIR__ . '/..' . '/kirki-framework/control-image/src/Field',
- 11 => __DIR__ . '/..' . '/kirki-framework/control-multicheck/src/Field',
- 12 => __DIR__ . '/..' . '/kirki-framework/control-palette/src/Field',
- 13 => __DIR__ . '/..' . '/kirki-framework/control-radio/src/Field',
- 14 => __DIR__ . '/..' . '/kirki-framework/control-react-colorful/src/Field',
- 15 => __DIR__ . '/..' . '/kirki-framework/control-react-select/src/Field',
- 16 => __DIR__ . '/..' . '/kirki-framework/control-repeater/src/Field',
- 17 => __DIR__ . '/..' . '/kirki-framework/control-select/src/Field',
- 18 => __DIR__ . '/..' . '/kirki-framework/control-slider/src/Field',
- 19 => __DIR__ . '/..' . '/kirki-framework/control-sortable/src/Field',
- 20 => __DIR__ . '/..' . '/kirki-framework/control-upload/src/Field',
- 21 => __DIR__ . '/..' . '/kirki-framework/field-background/src',
- 22 => __DIR__ . '/..' . '/kirki-framework/field-dimensions/src',
- 23 => __DIR__ . '/..' . '/kirki-framework/field-fontawesome/src/Field',
- 24 => __DIR__ . '/..' . '/kirki-framework/field-multicolor/src/Field',
- 25 => __DIR__ . '/..' . '/kirki-framework/field-typography/src/Field',
- ),
- 'Kirki\\Data\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/data-option/src',
- ),
- 'Kirki\\Control\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/control-base/src/Control',
- 1 => __DIR__ . '/..' . '/kirki-framework/control-checkbox/src/Control',
- 2 => __DIR__ . '/..' . '/kirki-framework/control-code/src/Control',
- 3 => __DIR__ . '/..' . '/kirki-framework/control-color/src/Control',
- 4 => __DIR__ . '/..' . '/kirki-framework/control-color-palette/src/Control',
- 5 => __DIR__ . '/..' . '/kirki-framework/control-cropped-image/src',
- 6 => __DIR__ . '/..' . '/kirki-framework/control-custom/src/Control',
- 7 => __DIR__ . '/..' . '/kirki-framework/control-dashicons/src/Control',
- 8 => __DIR__ . '/..' . '/kirki-framework/control-date/src/Control',
- 9 => __DIR__ . '/..' . '/kirki-framework/control-dimension/src/Control',
- 10 => __DIR__ . '/..' . '/kirki-framework/control-editor/src/Control',
- 11 => __DIR__ . '/..' . '/kirki-framework/control-generic/src/Control',
- 12 => __DIR__ . '/..' . '/kirki-framework/control-image/src/Control',
- 13 => __DIR__ . '/..' . '/kirki-framework/control-multicheck/src/Control',
- 14 => __DIR__ . '/..' . '/kirki-framework/control-palette/src/Control',
- 15 => __DIR__ . '/..' . '/kirki-framework/control-radio/src/Control',
- 16 => __DIR__ . '/..' . '/kirki-framework/control-react-colorful/src/Control',
- 17 => __DIR__ . '/..' . '/kirki-framework/control-react-select/src/Control',
- 18 => __DIR__ . '/..' . '/kirki-framework/control-repeater/src/Control',
- 19 => __DIR__ . '/..' . '/kirki-framework/control-select/src/Control',
- 20 => __DIR__ . '/..' . '/kirki-framework/control-slider/src/Control',
- 21 => __DIR__ . '/..' . '/kirki-framework/control-sortable/src/Control',
- 22 => __DIR__ . '/..' . '/kirki-framework/control-upload/src/Control',
- 23 => __DIR__ . '/..' . '/kirki-framework/field-multicolor/src/Control',
- 24 => __DIR__ . '/..' . '/kirki-framework/field-typography/src/Control',
- ),
- 'Kirki\\Compatibility\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/compatibility/src',
- ),
- 'Kirki\\' =>
- array (
- 0 => __DIR__ . '/..' . '/kirki-framework/field/src',
- 1 => __DIR__ . '/..' . '/kirki-framework/googlefonts/src',
- 2 => __DIR__ . '/..' . '/kirki-framework/l10n/src',
- 3 => __DIR__ . '/..' . '/kirki-framework/module-panels/src',
- 4 => __DIR__ . '/..' . '/kirki-framework/module-sections/src',
- 5 => __DIR__ . '/..' . '/kirki-framework/url-getter/src',
- ),
- 'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
- array (
- 0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',
- ),
- 'Composer\\Installers\\' =>
- array (
- 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
- ),
- );
-
- public static $classMap = array (
- 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
- );
-
- public static function getInitializer(ClassLoader $loader)
- {
- return \Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInitc56aa391ac498061f8d648878e0e6144::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInitc56aa391ac498061f8d648878e0e6144::$prefixDirsPsr4;
- $loader->classMap = ComposerStaticInitc56aa391ac498061f8d648878e0e6144::$classMap;
-
- }, null, ClassLoader::class);
- }
-}
diff --git a/functions/kirki/packages/composer/installed.php b/functions/kirki/packages/composer/installed.php
deleted file mode 100644
index 96cd6db..0000000
--- a/functions/kirki/packages/composer/installed.php
+++ /dev/null
@@ -1,511 +0,0 @@
- array(
- 'pretty_version' => '4.0.24',
- 'version' => '4.0.24.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../../',
- 'aliases' => array(),
- 'reference' => NULL,
- 'name' => 'kirki-framework/kirki',
- 'dev' => true,
- ),
- 'versions' => array(
- 'composer/installers' => array(
- 'pretty_version' => 'v2.1.1',
- 'version' => '2.1.1.0',
- 'type' => 'composer-plugin',
- 'install_path' => __DIR__ . '/./installers',
- 'aliases' => array(),
- 'reference' => 'af93ba6e52236418f07a278033eba6959ee5b983',
- 'dev_requirement' => true,
- ),
- 'dealerdirect/phpcodesniffer-composer-installer' => array(
- 'pretty_version' => 'v0.7.2',
- 'version' => '0.7.2.0',
- 'type' => 'composer-plugin',
- 'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',
- 'aliases' => array(),
- 'reference' => '1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db',
- 'dev_requirement' => true,
- ),
- 'kirki-framework/compatibility' => array(
- 'pretty_version' => 'v1.0.11',
- 'version' => '1.0.11.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/compatibility',
- 'aliases' => array(),
- 'reference' => '551fdc67b39e7345fc49a785b2cdd0c2a9f0bc3e',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-base' => array(
- 'pretty_version' => 'v1.0.4',
- 'version' => '1.0.4.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-base',
- 'aliases' => array(),
- 'reference' => '0abf9e81f21e5256be879240cca98778e99851eb',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-checkbox' => array(
- 'pretty_version' => 'v1.0.6',
- 'version' => '1.0.6.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-checkbox',
- 'aliases' => array(),
- 'reference' => '1f581fd75cf9cae20788decbe56d5ef48d3b7bf8',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-code' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-code',
- 'aliases' => array(),
- 'reference' => '88e7b01127fc7039e2c1fc6761184b0332f9a0c3',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-color' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-color',
- 'aliases' => array(),
- 'reference' => '5820fa89e0e8dc69dd4864575074552434193e11',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-color-palette' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-color-palette',
- 'aliases' => array(),
- 'reference' => '32715837449e9a6666253b28b538bd69d6718c67',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-cropped-image' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-cropped-image',
- 'aliases' => array(),
- 'reference' => '549e7ddfe1a9fe2305fe6c1bc6cc80489d647452',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-custom' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-custom',
- 'aliases' => array(),
- 'reference' => '103f4f813f1919c23ec41e81c81cfbf83ab0e78f',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-dashicons' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-dashicons',
- 'aliases' => array(),
- 'reference' => '90210466bd4a53b6ab4468330064eabeaf242fd9',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-date' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-date',
- 'aliases' => array(),
- 'reference' => '71e7fb60b5789d77579b12b202e5487cd2bd5dc2',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-dimension' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-dimension',
- 'aliases' => array(),
- 'reference' => '7a64c587fd57fb5bdbeceb393b621457c4d9f515',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-editor' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-editor',
- 'aliases' => array(),
- 'reference' => '5e27c3cc7b10eb317321790a5d8ddf57304cf2a2',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-generic' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-generic',
- 'aliases' => array(),
- 'reference' => '5f87bb740ba92717b6b10b862e571919003906c4',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-image' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-image',
- 'aliases' => array(),
- 'reference' => '32e2a2aff8a7e5d6ff9dfe530563a4381dc82e61',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-multicheck' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-multicheck',
- 'aliases' => array(),
- 'reference' => '90098008c1988e7cd2b84c75ece68bbcd3bbeb70',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-palette' => array(
- 'pretty_version' => 'v0.1.1',
- 'version' => '0.1.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-palette',
- 'aliases' => array(),
- 'reference' => 'aca16701c2aaddab0cef3e429cdb753845e03ae0',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-radio' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-radio',
- 'aliases' => array(),
- 'reference' => '1e47f185f8d95005c83e0ffbf3ff09faecea8eac',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-react-colorful' => array(
- 'pretty_version' => 'v1.0.17',
- 'version' => '1.0.17.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-react-colorful',
- 'aliases' => array(),
- 'reference' => '79258cdbcdd4ee8582560edc4a09c8ba45eaf219',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-react-select' => array(
- 'pretty_version' => 'v1.1.5',
- 'version' => '1.1.5.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-react-select',
- 'aliases' => array(),
- 'reference' => '4c156e42a36f74ff5b9b1e2797b1742845de9e47',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-repeater' => array(
- 'pretty_version' => '1.0.5',
- 'version' => '1.0.5.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-repeater',
- 'aliases' => array(),
- 'reference' => '5375e65054b7a73da4e735fa7bee831c7f6c1cfc',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-select' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-select',
- 'aliases' => array(),
- 'reference' => '01abe2cbce62b7a566c890697a32506b94910156',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-slider' => array(
- 'pretty_version' => 'v1.0.5',
- 'version' => '1.0.5.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-slider',
- 'aliases' => array(),
- 'reference' => '40ce473123f0cb12da745467d69210cff3ffecf5',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-sortable' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-sortable',
- 'aliases' => array(),
- 'reference' => 'ea4659bb2118c57ec6e24cd2ab06f36a3a528d26',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/control-upload' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/control-upload',
- 'aliases' => array(),
- 'reference' => '13ea09c9330c6eb1d4452d5948866f226b0f8a0f',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/data-option' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/data-option',
- 'aliases' => array(),
- 'reference' => '9a54f5c553e2f1e84f4ff620e271bfc16ee49ced',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/field' => array(
- 'pretty_version' => 'v1.0.10',
- 'version' => '1.0.10.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/field',
- 'aliases' => array(),
- 'reference' => '97f5bf659cc68d46e2bce62489acf2d2142b36e7',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/field-background' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/field-background',
- 'aliases' => array(),
- 'reference' => '875b5e42c3de8a77d0a15c7dd55c8467cbf18373',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/field-dimensions' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/field-dimensions',
- 'aliases' => array(),
- 'reference' => 'ac147cc95fb706664953471ef8f14cfb04f197fc',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/field-fontawesome' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/field-fontawesome',
- 'aliases' => array(),
- 'reference' => '64d8954039eef1ff03429cdd13c81e4e6b278321',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/field-multicolor' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/field-multicolor',
- 'aliases' => array(),
- 'reference' => '3e0df3f5548fb89b38cb144bc87992936ed7b536',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/field-typography' => array(
- 'pretty_version' => 'v1.0.6',
- 'version' => '1.0.6.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/field-typography',
- 'aliases' => array(),
- 'reference' => '2d96fc2d65325ce8474d55e083db742cf437c0dd',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/googlefonts' => array(
- 'pretty_version' => '1.0.4',
- 'version' => '1.0.4.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/googlefonts',
- 'aliases' => array(),
- 'reference' => '3fa0b6b5aacda3213ca7ccedcba3e6906aecb409',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/kirki' => array(
- 'pretty_version' => '4.0.24',
- 'version' => '4.0.24.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../../',
- 'aliases' => array(),
- 'reference' => NULL,
- 'dev_requirement' => false,
- ),
- 'kirki-framework/l10n' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/l10n',
- 'aliases' => array(),
- 'reference' => '5a40875434ca075a09c81952547e3ccc7eeef704',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-css' => array(
- 'pretty_version' => 'v1.0.11',
- 'version' => '1.0.11.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-css',
- 'aliases' => array(),
- 'reference' => 'b53cff693b489cc7e4991ef725a66ddafa8aa84b',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-editor-styles' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-editor-styles',
- 'aliases' => array(),
- 'reference' => 'a86f8b66fa0a442ce092c122b997c8d5f8d20951',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-field-dependencies' => array(
- 'pretty_version' => 'v1.0.6',
- 'version' => '1.0.6.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-field-dependencies',
- 'aliases' => array(),
- 'reference' => '5bf94bdce480d8405136cd5f0013ef42a775f167',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-panels' => array(
- 'pretty_version' => 'v1.0.1',
- 'version' => '1.0.1.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-panels',
- 'aliases' => array(),
- 'reference' => '1599dd344c15c49a837b5fdbddb1e37544bef979',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-postmessage' => array(
- 'pretty_version' => '1.0.7',
- 'version' => '1.0.7.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-postmessage',
- 'aliases' => array(),
- 'reference' => '9b2b419027f3b95a2546041a83fc5607492f35a5',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-preset' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-preset',
- 'aliases' => array(),
- 'reference' => 'b4862fbeb9e441ed4ccd15f29a1d17d6f300f6a9',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-section-icons' => array(
- 'pretty_version' => 'v0.1.0',
- 'version' => '0.1.0.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-section-icons',
- 'aliases' => array(),
- 'reference' => '0e77b904692772974e5e291143f45056a5ab3665',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-sections' => array(
- 'pretty_version' => 'v1.0.4',
- 'version' => '1.0.4.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-sections',
- 'aliases' => array(),
- 'reference' => 'ee8c9120ddd7fe63e1ca39db93714b9b4e5d477c',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-selective-refresh' => array(
- 'pretty_version' => 'v1.0.3',
- 'version' => '1.0.3.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-selective-refresh',
- 'aliases' => array(),
- 'reference' => 'bfeb430cb7eff60f5ba79e0785cf413905202c42',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-tooltips' => array(
- 'pretty_version' => 'v1.0.10',
- 'version' => '1.0.10.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-tooltips',
- 'aliases' => array(),
- 'reference' => '5b4715bd236a4239356e408068bffc2f300f3cdf',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/module-webfonts' => array(
- 'pretty_version' => 'v1.0.5',
- 'version' => '1.0.5.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/module-webfonts',
- 'aliases' => array(),
- 'reference' => '6be8c298abc29bccc227e1b1dbcb029e6a072659',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/url-getter' => array(
- 'pretty_version' => 'v1.0.5',
- 'version' => '1.0.5.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/url-getter',
- 'aliases' => array(),
- 'reference' => 'cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2',
- 'dev_requirement' => false,
- ),
- 'kirki-framework/util' => array(
- 'pretty_version' => 'v1.0.2',
- 'version' => '1.0.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../kirki-framework/util',
- 'aliases' => array(),
- 'reference' => 'fa3deaafe48055b56aedf80501817e3d9e83211c',
- 'dev_requirement' => false,
- ),
- 'phpcompatibility/php-compatibility' => array(
- 'pretty_version' => '9.3.5',
- 'version' => '9.3.5.0',
- 'type' => 'phpcodesniffer-standard',
- 'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility',
- 'aliases' => array(),
- 'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
- 'dev_requirement' => true,
- ),
- 'phpcompatibility/phpcompatibility-paragonie' => array(
- 'pretty_version' => '1.3.1',
- 'version' => '1.3.1.0',
- 'type' => 'phpcodesniffer-standard',
- 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie',
- 'aliases' => array(),
- 'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43',
- 'dev_requirement' => true,
- ),
- 'phpcompatibility/phpcompatibility-wp' => array(
- 'pretty_version' => '2.1.3',
- 'version' => '2.1.3.0',
- 'type' => 'phpcodesniffer-standard',
- 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp',
- 'aliases' => array(),
- 'reference' => 'd55de55f88697b9cdb94bccf04f14eb3b11cf308',
- 'dev_requirement' => true,
- ),
- 'squizlabs/php_codesniffer' => array(
- 'pretty_version' => '3.6.2',
- 'version' => '3.6.2.0',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
- 'aliases' => array(),
- 'reference' => '5e4e71592f69da17871dba6e80dd51bce74a351a',
- 'dev_requirement' => true,
- ),
- 'wp-coding-standards/wpcs' => array(
- 'pretty_version' => '2.3.0',
- 'version' => '2.3.0.0',
- 'type' => 'phpcodesniffer-standard',
- 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs',
- 'aliases' => array(),
- 'reference' => '7da1894633f168fe244afc6de00d141f27517b62',
- 'dev_requirement' => true,
- ),
- 'wptrt/wpthemereview' => array(
- 'pretty_version' => 'dev-develop',
- 'version' => 'dev-develop',
- 'type' => 'phpcodesniffer-standard',
- 'install_path' => __DIR__ . '/../wptrt/wpthemereview',
- 'aliases' => array(
- 0 => '9999999-dev',
- ),
- 'reference' => '15684d0852fe90d807c2ae7746dea1302b74b4bd',
- 'dev_requirement' => true,
- ),
- ),
-);
diff --git a/functions/kirki/packages/kirki-framework/control-base/README.md b/functions/kirki/packages/kirki-framework/control-base/README.md
deleted file mode 100644
index 2911e78..0000000
--- a/functions/kirki/packages/kirki-framework/control-base/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# control-base
-
-This package serves as a base for other controls.
-
-By itself the `\Kirki\Control\Base` doesn't do anything. It is simply an object that all other Kirki controls should extend to avoid code duplication.
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-code/README.md b/functions/kirki/packages/kirki-framework/control-code/README.md
deleted file mode 100644
index 8940918..0000000
--- a/functions/kirki/packages/kirki-framework/control-code/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# control-code
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-code
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/.babelrc b/functions/kirki/packages/kirki-framework/control-color-palette/.babelrc
deleted file mode 100644
index fdf1f70..0000000
--- a/functions/kirki/packages/kirki-framework/control-color-palette/.babelrc
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "presets": [
- [
- "@babel/preset-react",
- {
- "runtime": "classic"
- }
- ]
- ]
-}
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/README.md b/functions/kirki/packages/kirki-framework/control-color-palette/README.md
deleted file mode 100644
index 4179cbf..0000000
--- a/functions/kirki/packages/kirki-framework/control-color-palette/README.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# Kirki Color Palette Control
-A `control-color-palette` package for Kirki Customizer Framework.
-
-## Table of Contents
-- [Kirki Color Palette Control](#kirki-color-palette-control)
- - [Table of Contents](#table-of-contents)
- - [Installation](#installation)
- - [Usage](#usage)
- - [Using Kirki API](#using-kirki-api)
- - [Using WordPress Customizer API](#using-wordpress-customizer-api)
- - [License](#license)
-
-## Installation
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-color-palette
-```
-
-Then make sure you have included the autoloader:
-
-```php
-require_once "your/path/to/vendor/autoload.php";
-```
-
-## Usage
-
-This control can be consumed using Kirki API or using WordPress Customizer API.
-
-### Using Kirki API
-
-```php
-new \Kirki\Field\Color_Palette(
- [
- 'settings' => 'your_control_setting_id',
- 'label' => esc_html__( 'Your Control Label', 'your-text-domain' ),
- 'description' => esc_html__( 'Your control description.', 'your-text-domain' ),
- 'section' => 'your_section_id',
- 'default' => 5,
- 'choices' => [
- 'colors' => [ '#000000', '#222222', '#444444', '#666666', '#888888', '#aaaaaa', '#cccccc', '#eeeeee', '#ffffff' ],
- 'shape' => 'round', // Optional, default is 'square'.
- 'size' => 20, // Optional, default is 28.
- ],
- ]
-);
-```
-
-### Using WordPress Customizer API
-
-```php
-/**
- * Register customizer settings and controls.
- *
- * @param \WP_Customize_Manager $wp_customize The Customizer object.
- */
-function your_customize_register_function( $wp_customize ) {
-
- // Add setting.
- $wp_customize->add_setting(
- 'your_control_setting_id',
- [
- 'type' => 'theme_mod', // Or 'option'.
- 'capability' => 'edit_theme_options',
- 'default' => 5,
- 'transport' => 'postMessage', // Or 'refresh'.
- 'sanitize' => 'intval', // Or 'absint' or other int sanitization.
- ]
- );
-
- // Add control.
- $wp_customize->add_control(
- new \Kirki\Control\Color_Palette(
- $wp_customize,
- 'your_control_setting_id',
- [
- 'label' => esc_html__( 'Your Control Label', 'your-text-domain' ),
- 'description' => esc_html__( 'Your control description.', 'your-text-domain' ),
- 'section' => 'your_section_id',
- 'choices' => [
- 'colors' => [ '#000000', '#222222', '#444444', '#666666', '#888888', '#aaaaaa', '#cccccc', '#eeeeee', '#ffffff' ],
- 'shape' => 'round', // Optional, default is 'square'.
- 'size' => 20, // Optional, default is 28.
- ],
- ]
- )
- );
-
- // Add more settings...
-
- // Add more controls...
-
-}
-add_action( 'customize_register', 'your_customize_register_function' );
-```
-
-## License
-[MIT License](https://oss.ninja/mit?organization=Kirki%20Framework)
diff --git a/functions/kirki/packages/kirki-framework/control-color-palette/webpack.config.js b/functions/kirki/packages/kirki-framework/control-color-palette/webpack.config.js
deleted file mode 100644
index 4d0ea32..0000000
--- a/functions/kirki/packages/kirki-framework/control-color-palette/webpack.config.js
+++ /dev/null
@@ -1,41 +0,0 @@
-const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-
-module.exports = {
- externals: {
- "jquery": "jQuery",
- "react": "React",
- "react-dom": "ReactDOM"
- },
- plugins: [
- new MiniCssExtractPlugin({
- filename: "./control.css"
- })
- ],
- module: {
- rules: [
- {
- test: /\.(js|jsx)$/,
- exclude: /node_modules/,
- use: {
- loader: "babel-loader"
- }
- },
- {
- test: /\.s[ac]ss$/i,
- use: [
- // Extracts CSS into separate files
- MiniCssExtractPlugin.loader,
- // Translates CSS into CommonJS
- "css-loader",
- // Compiles Sass to CSS
- "sass-loader",
- ],
- }
- ]
- },
- entry: "./src/control.js",
- output: {
- filename: "control.js",
- },
- devtool: "source-map"
-};
diff --git a/functions/kirki/packages/kirki-framework/control-cropped-image/README.md b/functions/kirki/packages/kirki-framework/control-cropped-image/README.md
deleted file mode 100644
index 51078b8..0000000
--- a/functions/kirki/packages/kirki-framework/control-cropped-image/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# control-cropped-image
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/control-custom/README.md b/functions/kirki/packages/kirki-framework/control-custom/README.md
deleted file mode 100644
index a7bb95e..0000000
--- a/functions/kirki/packages/kirki-framework/control-custom/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# control-custom
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-custom
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Custom' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add setting.
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => 'register_control_type( '\Kirki\Control\Multicheck' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add setting.
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => [ 'option-1', 'option-3', 'option-4' ],
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => 'sanitize_text_field', // Or a custom sanitization callback.
- ] );
-
- // Add control.
- $wp_customize->add_control( new \Kirki\Control\Multicheck( $wp_customize, 'my_control', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- 'option-3' => esc_html__( 'Option 3', 'theme_textdomain' ),
- 'option-4' => esc_html__( 'Option 4', 'theme_textdomain' ),
- 'option-5' => esc_html__( 'Option 5', 'theme_textdomain' ),
- ],
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-palette/README.md b/functions/kirki/packages/kirki-framework/control-palette/README.md
deleted file mode 100644
index e13f341..0000000
--- a/functions/kirki/packages/kirki-framework/control-palette/README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# control-palette
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-palette
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Palette' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add settings.
- $wp_customize->add_setting( 'my_control_code', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => '',
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => 'sanitize_text_field', // Or a custom sanitization callback.
- ] );
-
- // Add controls.
- $wp_customize->add_control( new \Kirki\Control\Palette( $wp_customize, 'my_control_code', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'green' => [ '#E8F5E9', '#C8E6C9', '#A5D6A7', '#81C784', '#66BB6A', '#4CAF50', '#43A047', '#388E3C', '#2E7D32', '#1B5E20', '#B9F6CA', '#69F0AE', '#00E676', '#00C853' ],
- 'bnw' => [ '#000000', '#ffffff' ],
- ],
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-radio/README.md b/functions/kirki/packages/kirki-framework/control-radio/README.md
deleted file mode 100644
index 20cebac..0000000
--- a/functions/kirki/packages/kirki-framework/control-radio/README.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# control-radio
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-radio
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Radio' );
- $wp_customize->register_control_type( '\Kirki\Control\Radio_Buttonset' );
- $wp_customize->register_control_type( '\Kirki\Control\Radio_Image' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add settings.
- $wp_customize->add_setting( 'my_control_radio', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => 'option-1',
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => 'sanitize_text_field', // Or a custom sanitization callback.
- ] );
- $wp_customize->add_setting( 'my_control_radio_buttonset', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => 'option-1',
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => function( $value ) { // Custom callback example.
- if ( 'option-1' !== $value || 'option-2' !== $value ) {
- return 'option-1';
- }
- return $value;
- },
- ] );
- $wp_customize->add_setting( 'my_control_radio_image', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => 'option-1',
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => 'sanitize_text_field', // Or a custom sanitization callback.
- ] );
-
- // Add controls.
- $wp_customize->add_control( new \Kirki\Control\Radio( $wp_customize, 'my_control_code', [
- 'label' => esc_html__( 'My Radio Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- 'option-3' => esc_html__( 'Option 3', 'theme_textdomain' ),
- 'option-4' => esc_html__( 'Option 4', 'theme_textdomain' ),
- 'option-5' => esc_html__( 'Option 5', 'theme_textdomain' ),
- ],
- ] ) );
- $wp_customize->add_control( new \Kirki\Control\Radio_Buttonset( $wp_customize, 'my_control_code', [
- 'label' => esc_html__( 'My Radio-Buttonset Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- ],
- ] ) );
- $wp_customize->add_control( new \Kirki\Control\Radio( $wp_customize, 'my_control_code', [
- 'label' => esc_html__( 'My Radio-Image Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'moto' => 'https://jawordpressorg.github.io/wapuu/wapuu-archive/wapuu-moto.png',
- 'cossack' => 'https://raw.githubusercontent.com/templatemonster/cossack-wapuula/master/cossack-wapuula.png',
- 'travel' => 'https://jawordpressorg.github.io/wapuu/wapuu-archive/wapuu-travel.png',
- ],
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-react-colorful/.prettierignore b/functions/kirki/packages/kirki-framework/control-react-colorful/.prettierignore
deleted file mode 100644
index dd44972..0000000
--- a/functions/kirki/packages/kirki-framework/control-react-colorful/.prettierignore
+++ /dev/null
@@ -1 +0,0 @@
-*.md
diff --git a/functions/kirki/packages/kirki-framework/control-repeater/README.md b/functions/kirki/packages/kirki-framework/control-repeater/README.md
deleted file mode 100644
index 54a0655..0000000
--- a/functions/kirki/packages/kirki-framework/control-repeater/README.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# control-repeater
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-repeater
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Repeater' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add settings.
- $wp_customize->add_setting( new \Kirki\Settings\Repeater( $wp_customize, 'my_repeater_setting', [
- 'default' => [
- [
- 'link_text' => esc_html__( 'Kirki Site', 'theme_textdomain' ),
- 'link_url' => 'https://aristath.github.io/kirki/',
- 'link_target' => '_self',
- ],
- [
- 'link_text' => esc_html__( 'Kirki Repository', 'theme_textdomain' ),
- 'link_url' => 'https://github.com/aristath/kirki',
- 'link_target' => '_self',
- ],
- ],
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'transport' => 'refresh',
- 'sanitize_callback' => function( $value ) { // Custom sanitization callback.
- $value = ( is_array( $value ) ) ? $value : json_decode( urldecode( $value ), true );
- $value = ( empty( $value ) || ! is_array( $value ) ) ? [] : $value;
-
- foreach ( $value as $row_index => $row_data ) {
- $value[ $row_index ]['link_text'] = isset( $row_data['link_text'] ) ? sanitize_text_field( $row_data['link_text'] ) : '';
- $value[ $row_index ]['link_url'] = isset( $row_data['link_url'] ) ? esc_url( $row_data['link_url'] ) : '';
- $value[ $row_index ]['link_target'] = isset( $row_data['link_target'] ) && in_array( $row_data['link_target'], [ '_self', '_blank', '_parent', '_top' ], true ) ? $row_data['link_target'] : '_self';
- }
- },
- ] ) );
-
- // Add controls.
- $wp_customize->add_control( new \Kirki\Control\Repeater( $wp_customize, 'my_repeater_setting', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'colors',
- 'fields' => [
- 'link_text' => [
- 'type' => 'text',
- 'label' => esc_html__( 'Link Text', 'theme_textdomain' ),
- 'description' => esc_html__( 'This will be the label for your link', 'theme_textdomain' ),
- 'default' => '',
- ],
- 'link_url' => [
- 'type' => 'text',
- 'label' => esc_html__( 'Link URL', 'theme_textdomain' ),
- 'description' => esc_html__( 'This will be the link URL', 'theme_textdomain' ),
- 'default' => '',
- ],
- 'link_target' => [
- 'type' => 'radio',
- 'label' => esc_html__( 'Link Target', 'theme_textdomain' ),
- 'description' => esc_html__( 'This will be the link target', 'theme_textdomain' ),
- 'default' => '_self',
- 'choices' => [
- '_blank' => esc_html__( 'New Window', 'theme_textdomain' ),
- '_self' => esc_html__( 'Same Frame', 'theme_textdomain' ),
- ],
- ],
- ],
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-select/README.md b/functions/kirki/packages/kirki-framework/control-select/README.md
deleted file mode 100644
index f84a282..0000000
--- a/functions/kirki/packages/kirki-framework/control-select/README.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# control-select
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-select
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Select' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add settings.
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => 'option-1',
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => function( $value ) {
- if ( ! in_array( $value, [ 'option-1', 'option-2', 'option-3', 'option-3', 'option-4', 'option-5' ], true ) ) {
- return 'option-1';
- }
- return $value;
- },
- ] );
- $wp_customize->add_setting( 'my_control_multi', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => [ 'option-1', 'option-2' ],
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => function( $value ) {
- $value = (array) $value;
- $sanitized = [];
-
- foreach ( $value as $sub_value ) {
- if ( ! in_array( $sub_value, [ 'option-1', 'option-2', 'option-3', 'option-3', 'option-4', 'option-5' ], true ) ) {
- $sanitized[] = $sub_value;
- }
- }
- // We want a max of 2 options.
- if ( 2 < count( $sanitized ) ) {
- return array_slice( $sanitized, 0, 2 );
- }
- return $sanitized;
- },
- ] );
-
- // Add controls.
- $wp_customize->add_control( new \Kirki\Control\Select( $wp_customize, 'my_control', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- 'option-3' => esc_html__( 'Option 3', 'theme_textdomain' ),
- 'option-4' => esc_html__( 'Option 4', 'theme_textdomain' ),
- 'option-5' => esc_html__( 'Option 5', 'theme_textdomain' ),
- ],
- ] ) );
- $wp_customize->add_control( new \Kirki\Control\Select( $wp_customize, 'my_control_multi', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- 'option-3' => esc_html__( 'Option 3', 'theme_textdomain' ),
- 'option-4' => esc_html__( 'Option 4', 'theme_textdomain' ),
- 'option-5' => esc_html__( 'Option 5', 'theme_textdomain' ),
- ],
- 'multiple' => 2,
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-slider/.babelrc b/functions/kirki/packages/kirki-framework/control-slider/.babelrc
deleted file mode 100644
index e07bf46..0000000
--- a/functions/kirki/packages/kirki-framework/control-slider/.babelrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "presets": ["@babel/preset-env", "@babel/preset-react"]
-}
diff --git a/functions/kirki/packages/kirki-framework/control-slider/README.md b/functions/kirki/packages/kirki-framework/control-slider/README.md
deleted file mode 100644
index a6ade35..0000000
--- a/functions/kirki/packages/kirki-framework/control-slider/README.md
+++ /dev/null
@@ -1,105 +0,0 @@
-# kirki-framework/control-slider
-A slider control package for Kirki Customizer Framework.
-
-## Table of Contents
-- [kirki-framework/control-slider](#kirki-frameworkcontrol-slider)
- - [Table of Contents](#table-of-contents)
- - [Installation](#installation)
- - [Usage](#usage)
- - [Using the simplified API](#using-the-simplified-api)
- - [Using the Customizer API](#using-the-customizer-api)
- - [Development](#development)
- - [License](#license)
-
-## Installation
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-slider
-```
-
-Then make sure you have included the autoloader:
-
-```php
-require_once "your/path/to/vendor/autoload.php";
-```
-
-## Usage
-
-This control can be consumed using Kirki API or using WordPress Customizer API.
-
-### Using the simplified API
-
-```php
-new \Kirki\Field\Slider(
- [
- 'settings' => 'your_control_setting_id',
- 'label' => esc_html__( 'Your Control Label', 'your-text-domain' ),
- 'description' => esc_html__( 'Your control description.', 'your-text-domain' ),
- 'section' => 'your_section_id',
- 'default' => 5,
- 'choices' => [
- 'min' => 0,
- 'max' => 100,
- 'step' => 1,
- ],
- ]
-);
-```
-
-### Using the Customizer API
-
-```php
-/**
- * Register customizer settings and controls.
- *
- * @param \WP_Customize_Manager $wp_customize The Customizer object.
- */
-function your_customize_register_function( $wp_customize ) {
-
- // Add setting.
- $wp_customize->add_setting(
- 'your_control_setting_id',
- [
- 'type' => 'theme_mod', // Or 'option'.
- 'capability' => 'edit_theme_options',
- 'default' => 5,
- 'transport' => 'postMessage', // Or 'refresh'.
- 'sanitize' => 'intval', // Or 'absint' or other int sanitization.
- ]
- );
-
- // Add control.
- $wp_customize->add_control(
- new \Kirki\Control\Slider(
- $wp_customize,
- 'your_control_setting_id',
- [
- 'label' => esc_html__( 'Your Control Label', 'your-text-domain' ),
- 'description' => esc_html__( 'Your control description.', 'your-text-domain' ),
- 'section' => 'your_section_id',
- 'choices' => [
- 'min' => 0,
- 'max' => 100,
- 'step' => 1,
- ],
- ]
- )
- );
-
- // Add more settings...
-
- // Add more controls...
-
-}
-add_action( 'customize_register', 'your_customize_register_function' );
-```
-
-## Development
-
-If you want to make changes to this control, you can edit the JS files in the `src` folder.
-- If you haven't installed the packages, then run `npm install`
-- After done editing, run `npm run build`
-
-## License
-[MIT License](https://oss.ninja/mit?organization=Kirki%20Framework)
diff --git a/functions/kirki/packages/kirki-framework/control-slider/webpack.config.js b/functions/kirki/packages/kirki-framework/control-slider/webpack.config.js
deleted file mode 100644
index 4d0ea32..0000000
--- a/functions/kirki/packages/kirki-framework/control-slider/webpack.config.js
+++ /dev/null
@@ -1,41 +0,0 @@
-const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-
-module.exports = {
- externals: {
- "jquery": "jQuery",
- "react": "React",
- "react-dom": "ReactDOM"
- },
- plugins: [
- new MiniCssExtractPlugin({
- filename: "./control.css"
- })
- ],
- module: {
- rules: [
- {
- test: /\.(js|jsx)$/,
- exclude: /node_modules/,
- use: {
- loader: "babel-loader"
- }
- },
- {
- test: /\.s[ac]ss$/i,
- use: [
- // Extracts CSS into separate files
- MiniCssExtractPlugin.loader,
- // Translates CSS into CommonJS
- "css-loader",
- // Compiles Sass to CSS
- "sass-loader",
- ],
- }
- ]
- },
- entry: "./src/control.js",
- output: {
- filename: "control.js",
- },
- devtool: "source-map"
-};
diff --git a/functions/kirki/packages/kirki-framework/control-sortable/README.md b/functions/kirki/packages/kirki-framework/control-sortable/README.md
deleted file mode 100644
index c3636c5..0000000
--- a/functions/kirki/packages/kirki-framework/control-sortable/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# control-sortable
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-sortable
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\sortable' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => [ 'option-1', 'option-2' ],
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => function( $value ) {
- $value = (array) $value;
- $sanitized = [];
-
- foreach ( $value as $sub_value ) {
- if ( ! in_array( $sub_value, [ 'option-1', 'option-2', 'option-3', 'option-3', 'option-4', 'option-5' ], true ) ) {
- $sanitized[] = $sub_value;
- }
- }
- return $sanitized;
- },
- ] );
-
- $wp_customize->add_control( new \Kirki\Control\Select( $wp_customize, 'my_control', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- 'option-3' => esc_html__( 'Option 3', 'theme_textdomain' ),
- 'option-4' => esc_html__( 'Option 4', 'theme_textdomain' ),
- 'option-5' => esc_html__( 'Option 5', 'theme_textdomain' ),
- ],
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/control-upload/README.md b/functions/kirki/packages/kirki-framework/control-upload/README.md
deleted file mode 100644
index 1565bed..0000000
--- a/functions/kirki/packages/kirki-framework/control-upload/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# control-upload
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-upload
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Upload' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add settings.
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => 'option-1',
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => 'esc_url_raw',
- 'default' => '',
- ] );
-
- // Add controls.
- $wp_customize->add_control( new \Kirki\Control\Upload( $wp_customize, 'my_control', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/data-option/README.md b/functions/kirki/packages/kirki-framework/data-option/README.md
deleted file mode 100644
index e4abd3b..0000000
--- a/functions/kirki/packages/kirki-framework/data-option/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# data-option
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-background/README.md b/functions/kirki/packages/kirki-framework/field-background/README.md
deleted file mode 100644
index 447f75f..0000000
--- a/functions/kirki/packages/kirki-framework/field-background/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# control-background
-
-The background control is a pseudo-control for the Kirki framework. The control itself doesn't exist, it it a proxy for more basic controls. It adds controls for the following properties:
-
-* background-color
-* background-image
-* background-repeat
-* background-position
-* background-size
-* background-attachment
-
-In addition to the above visible controls, a hidden control is added which contains the value for the sum of the above sub-controls saved as an array.
-
-The control is only useful when using the Kirki API (which is just a proxy for the WordPress-Core Customizer API) and can not be used as-is using the customizer API directly.
-
-If you are using the customizer-api directly, you can see what the control does by examining the code it contains in `src/Field/Background.php` and extrapolating the fields you need to use directly from there.
\ No newline at end of file
diff --git a/functions/kirki/packages/kirki-framework/field-dimensions/README.md b/functions/kirki/packages/kirki-framework/field-dimensions/README.md
deleted file mode 100644
index 2a34d14..0000000
--- a/functions/kirki/packages/kirki-framework/field-dimensions/README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# control-dimensions
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-dimensions
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Dimensions' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add setting.
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => [
- 'top' => '10px',
- 'bottom' => '3em',
- ],
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => 'sanitize_text_field', // Or a custom sanitization callback.
- ] );
-
- // Add control.
- $wp_customize->add_control( new \Kirki\Control\Dimensions( $wp_customize, 'my_control', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/field-fontawesome/README.md b/functions/kirki/packages/kirki-framework/field-fontawesome/README.md
deleted file mode 100644
index c7ed500..0000000
--- a/functions/kirki/packages/kirki-framework/field-fontawesome/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# control-fontawesome
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/field-fontawesome
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-This field creates a dropdown containing all names for the font-awesome v4.7
diff --git a/functions/kirki/packages/kirki-framework/field-multicolor/README.md b/functions/kirki/packages/kirki-framework/field-multicolor/README.md
deleted file mode 100644
index 78f0ce1..0000000
--- a/functions/kirki/packages/kirki-framework/field-multicolor/README.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# control-multicolor
-
-## Installation
-
-First, install the package using composer:
-
-```bash
-composer require kirki-framework/control-multicolor
-```
-
-Make sure you include the autoloader:
-```php
-require_once get_parent_theme_file_path( 'vendor/autoload.php' );
-```
-
-To add a control using the customizer API:
-
-```php
-
-/**
- * Registers the control and whitelists it for JS templating.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
- $wp_customize->register_control_type( '\Kirki\Control\Multicolor' );
-} );
-
-/**
- * Add Customizer settings & controls.
- *
- * @since 1.0
- * @param WP_Customize_Manager $wp_customize The WP_Customize_Manager object.
- * @return void
- */
-add_action( 'customize_register', function( $wp_customize ) {
-
- // Add setting.
- $wp_customize->add_setting( 'my_control', [
- 'type' => 'theme_mod',
- 'capability' => 'edit_theme_options',
- 'default' => [
- 'default' => '#ffffff',
- 'active' => '#08ccff',
- ],
- 'transport' => 'refresh', // Or postMessage.
- 'sanitize_callback' => [ '\Kirki\Field\Multicolor', 'sanitize' ], // Or a custom sanitization callback.
- ] );
-
- // Add control.
- $wp_customize->add_control( new \Kirki\Control\Multicolor( $wp_customize, 'my_control', [
- 'label' => esc_html__( 'My Control', 'theme_textdomain' ),
- 'section' => 'my_section',
- 'choices' => [
- 'option-1' => esc_html__( 'Option 1', 'theme_textdomain' ),
- 'option-2' => esc_html__( 'Option 2', 'theme_textdomain' ),
- 'option-3' => esc_html__( 'Option 3', 'theme_textdomain' ),
- 'option-4' => esc_html__( 'Option 4', 'theme_textdomain' ),
- 'option-5' => esc_html__( 'Option 5', 'theme_textdomain' ),
- ],
- ] ) );
-} );
-```
diff --git a/functions/kirki/packages/kirki-framework/l10n/README.md b/functions/kirki/packages/kirki-framework/l10n/README.md
deleted file mode 100644
index aad51c0..0000000
--- a/functions/kirki/packages/kirki-framework/l10n/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# l10n
-A simple package to allow loading a 2nd textdomain (like from a framework like Kirki) in your WordPress theme.
diff --git a/functions/kirki/packages/kirki-framework/module-css/README.md b/functions/kirki/packages/kirki-framework/module-css/README.md
deleted file mode 100644
index ae1cea0..0000000
--- a/functions/kirki/packages/kirki-framework/module-css/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# module-css
-CSS module for the Kirki Framework
diff --git a/functions/kirki/packages/kirki-framework/module-tooltips/.prettierrc.js b/functions/kirki/packages/kirki-framework/module-tooltips/.prettierrc.js
deleted file mode 100644
index 36cd0f6..0000000
--- a/functions/kirki/packages/kirki-framework/module-tooltips/.prettierrc.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- ...require( '@wordpress/prettier-config' ),
-};
diff --git a/functions/kirki/packages/kirki-framework/util/README.md b/functions/kirki/packages/kirki-framework/util/README.md
deleted file mode 100644
index 392cb6b..0000000
--- a/functions/kirki/packages/kirki-framework/util/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# core
-Kirki Core
diff --git a/functions/kirki/readme.txt b/functions/kirki/readme.txt
index c6ada58..1e09926 100644
--- a/functions/kirki/readme.txt
+++ b/functions/kirki/readme.txt
@@ -1,9 +1,9 @@
=== Kirki Customizer Framework ===
-Contributors: davidvongries, aristath, dannycooper, wplemon, igmoweb
+Contributors: themeum
Tags: customizer, options framework, theme, mods, toolkit, gutenberg
Requires at least: 5.2
-Tested up to: 6
-Stable tag: 4.0.24
+Tested up to: 6.2.2
+Stable tag: 4.2.0
License: MIT
License URI: https://opensource.org/licenses/MIT
diff --git a/functions/kirki/upgrade-notifications.php b/functions/kirki/upgrade-notifications.php
index 6ae4491..c6db3aa 100644
--- a/functions/kirki/upgrade-notifications.php
+++ b/functions/kirki/upgrade-notifications.php
@@ -4,8 +4,8 @@
*
* @package Kirki
* @category Core
- * @author Ari Stathopoulos (@aristath)
- * @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
+ * @author Themeum
+ * @copyright Copyright (c) 2023, Themeum
* @license https://opensource.org/licenses/MIT
* @since 3.0.0
*/
diff --git a/readme.txt b/readme.txt
index ad6c870..ace6bc7 100644
--- a/readme.txt
+++ b/readme.txt
@@ -86,6 +86,7 @@ Sidebar images
= 1.2.6 - 2023-08-04 =
* Updated to Font Awesome 6.4.2
+* Updated to Kirki 4.2.0
= 1.2.5 - 2022-05-30 =
* Fixed ol and ul box-sizing content-box styling for WP 6.0