pixel-react 1.13.57 → 1.13.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/package.json +1 -1
- package/lib/_virtual/ResizeObserver.es.js +0 -7
- package/lib/_virtual/ResizeObserver.es.js.map +0 -1
- package/lib/_virtual/arrows.js +0 -4
- package/lib/_virtual/arrows.js.map +0 -1
- package/lib/_virtual/default-props.js +0 -4
- package/lib/_virtual/default-props.js.map +0 -1
- package/lib/_virtual/dots.js +0 -4
- package/lib/_virtual/dots.js.map +0 -1
- package/lib/_virtual/index14.js +0 -4
- package/lib/_virtual/index14.js.map +0 -1
- package/lib/_virtual/index15.js +0 -4
- package/lib/_virtual/index15.js.map +0 -1
- package/lib/_virtual/initial-state.js +0 -4
- package/lib/_virtual/initial-state.js.map +0 -1
- package/lib/_virtual/inner-slider.js +0 -4
- package/lib/_virtual/inner-slider.js.map +0 -1
- package/lib/_virtual/innerSliderUtils.js +0 -4
- package/lib/_virtual/innerSliderUtils.js.map +0 -1
- package/lib/_virtual/slider.js +0 -4
- package/lib/_virtual/slider.js.map +0 -1
- package/lib/_virtual/track.js +0 -4
- package/lib/_virtual/track.js.map +0 -1
- package/lib/assets/icons/Card_1.svg.js +0 -6
- package/lib/assets/icons/Card_1.svg.js.map +0 -1
- package/lib/assets/icons/Card_2.svg.js +0 -6
- package/lib/assets/icons/Card_2.svg.js.map +0 -1
- package/lib/assets/icons/Card_3.svg.js +0 -6
- package/lib/assets/icons/Card_3.svg.js.map +0 -1
- package/lib/assets/icons/Card_4.svg.js +0 -6
- package/lib/assets/icons/Card_4.svg.js.map +0 -1
- package/lib/assets/icons/academy.svg.js +0 -6
- package/lib/assets/icons/academy.svg.js.map +0 -1
- package/lib/assets/icons/advance_xpath.svg.js +0 -6
- package/lib/assets/icons/advance_xpath.svg.js.map +0 -1
- package/lib/assets/icons/ai_power_testing.svg.js +0 -6
- package/lib/assets/icons/ai_power_testing.svg.js.map +0 -1
- package/lib/assets/icons/api_automation_testing.svg.js +0 -6
- package/lib/assets/icons/api_automation_testing.svg.js.map +0 -1
- package/lib/assets/icons/api_integration_testing.svg.js +0 -6
- package/lib/assets/icons/api_integration_testing.svg.js.map +0 -1
- package/lib/assets/icons/api_regression_testing.svg.js +0 -6
- package/lib/assets/icons/api_regression_testing.svg.js.map +0 -1
- package/lib/assets/icons/assets.svg.js +0 -6
- package/lib/assets/icons/assets.svg.js.map +0 -1
- package/lib/assets/icons/audit_and_assesment.svg.js +0 -6
- package/lib/assets/icons/audit_and_assesment.svg.js.map +0 -1
- package/lib/assets/icons/auto_priorities_locator.svg.js +0 -6
- package/lib/assets/icons/auto_priorities_locator.svg.js.map +0 -1
- package/lib/assets/icons/auto_prioritization_of_locators.svg.js +0 -6
- package/lib/assets/icons/auto_prioritization_of_locators.svg.js.map +0 -1
- package/lib/assets/icons/automation_process.svg.js +0 -6
- package/lib/assets/icons/automation_process.svg.js.map +0 -1
- package/lib/assets/icons/automation_testing_tool_migration.svg.js +0 -6
- package/lib/assets/icons/automation_testing_tool_migration.svg.js.map +0 -1
- package/lib/assets/icons/back_to_top.svg.js +0 -6
- package/lib/assets/icons/back_to_top.svg.js.map +0 -1
- package/lib/assets/icons/blog.svg.js +0 -6
- package/lib/assets/icons/blog.svg.js.map +0 -1
- package/lib/assets/icons/browser_independent.svg.js +0 -6
- package/lib/assets/icons/browser_independent.svg.js.map +0 -1
- package/lib/assets/icons/browser_independent_tool.svg.js +0 -6
- package/lib/assets/icons/browser_independent_tool.svg.js.map +0 -1
- package/lib/assets/icons/call_icon.svg.js +0 -6
- package/lib/assets/icons/call_icon.svg.js.map +0 -1
- package/lib/assets/icons/case_study.svg.js +0 -6
- package/lib/assets/icons/case_study.svg.js.map +0 -1
- package/lib/assets/icons/cloud.svg.js +0 -6
- package/lib/assets/icons/cloud.svg.js.map +0 -1
- package/lib/assets/icons/cloud_browsers.svg.js +0 -6
- package/lib/assets/icons/cloud_browsers.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_api.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_api.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_browser.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_browser.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_costs.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_costs.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_device.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_device.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_execution.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_execution.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_test.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_test.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_time.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_time.svg.js.map +0 -1
- package/lib/assets/icons/cloud_core_feature_tools.svg.js +0 -6
- package/lib/assets/icons/cloud_core_feature_tools.svg.js.map +0 -1
- package/lib/assets/icons/cloud_live_testing.svg.js +0 -6
- package/lib/assets/icons/cloud_live_testing.svg.js.map +0 -1
- package/lib/assets/icons/cloud_mobile.svg.js +0 -6
- package/lib/assets/icons/cloud_mobile.svg.js.map +0 -1
- package/lib/assets/icons/cloud_mobile_browsers.svg.js +0 -6
- package/lib/assets/icons/cloud_mobile_browsers.svg.js.map +0 -1
- package/lib/assets/icons/cloud_mobiles.svg.js +0 -6
- package/lib/assets/icons/cloud_mobiles.svg.js.map +0 -1
- package/lib/assets/icons/cloud_web.svg.js +0 -6
- package/lib/assets/icons/cloud_web.svg.js.map +0 -1
- package/lib/assets/icons/collaboration.svg.js +0 -6
- package/lib/assets/icons/collaboration.svg.js.map +0 -1
- package/lib/assets/icons/comprehensive_device_coverage.svg.js +0 -6
- package/lib/assets/icons/comprehensive_device_coverage.svg.js.map +0 -1
- package/lib/assets/icons/custom_nlp.svg.js +0 -6
- package/lib/assets/icons/custom_nlp.svg.js.map +0 -1
- package/lib/assets/icons/customised_template.svg.js +0 -6
- package/lib/assets/icons/customised_template.svg.js.map +0 -1
- package/lib/assets/icons/data_driven.svg.js +0 -6
- package/lib/assets/icons/data_driven.svg.js.map +0 -1
- package/lib/assets/icons/defect_management.svg.js +0 -6
- package/lib/assets/icons/defect_management.svg.js.map +0 -1
- package/lib/assets/icons/documentation.svg.js +0 -6
- package/lib/assets/icons/documentation.svg.js.map +0 -1
- package/lib/assets/icons/dom_elements.svg.js +0 -6
- package/lib/assets/icons/dom_elements.svg.js.map +0 -1
- package/lib/assets/icons/domain_asset.svg.js +0 -6
- package/lib/assets/icons/domain_asset.svg.js.map +0 -1
- package/lib/assets/icons/dynamic_locator_finder.svg.js +0 -6
- package/lib/assets/icons/dynamic_locator_finder.svg.js.map +0 -1
- package/lib/assets/icons/dynamic_ui.svg.js +0 -6
- package/lib/assets/icons/dynamic_ui.svg.js.map +0 -1
- package/lib/assets/icons/e2e_automation.svg.js +0 -6
- package/lib/assets/icons/e2e_automation.svg.js.map +0 -1
- package/lib/assets/icons/effortless_integration.svg.js +0 -6
- package/lib/assets/icons/effortless_integration.svg.js.map +0 -1
- package/lib/assets/icons/element_locator.svg.js +0 -6
- package/lib/assets/icons/element_locator.svg.js.map +0 -1
- package/lib/assets/icons/emulators.svg.js +0 -6
- package/lib/assets/icons/emulators.svg.js.map +0 -1
- package/lib/assets/icons/export_defects.svg.js +0 -6
- package/lib/assets/icons/export_defects.svg.js.map +0 -1
- package/lib/assets/icons/export_test_case.svg.js +0 -6
- package/lib/assets/icons/export_test_case.svg.js.map +0 -1
- package/lib/assets/icons/express_methodology.svg.js +0 -6
- package/lib/assets/icons/express_methodology.svg.js.map +0 -1
- package/lib/assets/icons/facebook_hover_icon.svg.js +0 -6
- package/lib/assets/icons/facebook_hover_icon.svg.js.map +0 -1
- package/lib/assets/icons/facebook_icon.svg.js +0 -6
- package/lib/assets/icons/facebook_icon.svg.js.map +0 -1
- package/lib/assets/icons/finder.svg.js +0 -6
- package/lib/assets/icons/finder.svg.js.map +0 -1
- package/lib/assets/icons/fireflink_client.svg.js +0 -6
- package/lib/assets/icons/fireflink_client.svg.js.map +0 -1
- package/lib/assets/icons/flexible_api.svg.js +0 -6
- package/lib/assets/icons/flexible_api.svg.js.map +0 -1
- package/lib/assets/icons/get_optimal_locators.svg.js +0 -6
- package/lib/assets/icons/get_optimal_locators.svg.js.map +0 -1
- package/lib/assets/icons/infrastructure_costs.svg.js +0 -6
- package/lib/assets/icons/infrastructure_costs.svg.js.map +0 -1
- package/lib/assets/icons/instagram_hover_icon.svg.js +0 -6
- package/lib/assets/icons/instagram_hover_icon.svg.js.map +0 -1
- package/lib/assets/icons/instagram_icon.svg.js +0 -6
- package/lib/assets/icons/instagram_icon.svg.js.map +0 -1
- package/lib/assets/icons/linkedin_hover_icon.svg.js +0 -6
- package/lib/assets/icons/linkedin_hover_icon.svg.js.map +0 -1
- package/lib/assets/icons/linkedin_icon.svg.js +0 -6
- package/lib/assets/icons/linkedin_icon.svg.js.map +0 -1
- package/lib/assets/icons/live_testing.svg.js +0 -6
- package/lib/assets/icons/live_testing.svg.js.map +0 -1
- package/lib/assets/icons/mail_icon.svg.js +0 -6
- package/lib/assets/icons/mail_icon.svg.js.map +0 -1
- package/lib/assets/icons/maintain_effortlessly.svg.js +0 -6
- package/lib/assets/icons/maintain_effortlessly.svg.js.map +0 -1
- package/lib/assets/icons/manual_test_case_management.svg.js +0 -6
- package/lib/assets/icons/manual_test_case_management.svg.js.map +0 -1
- package/lib/assets/icons/mobile_app_integration_testing.svg.js +0 -6
- package/lib/assets/icons/mobile_app_integration_testing.svg.js.map +0 -1
- package/lib/assets/icons/mobile_app_testing.svg.js +0 -6
- package/lib/assets/icons/mobile_app_testing.svg.js.map +0 -1
- package/lib/assets/icons/mobile_automation_testing.svg.js +0 -6
- package/lib/assets/icons/mobile_automation_testing.svg.js.map +0 -1
- package/lib/assets/icons/multiple_element_locator.svg.js +0 -6
- package/lib/assets/icons/multiple_element_locator.svg.js.map +0 -1
- package/lib/assets/icons/navigation_report.svg.js +0 -6
- package/lib/assets/icons/navigation_report.svg.js.map +0 -1
- package/lib/assets/icons/notification.svg.js +0 -6
- package/lib/assets/icons/notification.svg.js.map +0 -1
- package/lib/assets/icons/one_tool_to_find_ui_elements.svg.js +0 -6
- package/lib/assets/icons/one_tool_to_find_ui_elements.svg.js.map +0 -1
- package/lib/assets/icons/oracle.svg.js +0 -6
- package/lib/assets/icons/oracle.svg.js.map +0 -1
- package/lib/assets/icons/parallel_execution.svg.js +0 -6
- package/lib/assets/icons/parallel_execution.svg.js.map +0 -1
- package/lib/assets/icons/pause_icon_website.svg.js +0 -6
- package/lib/assets/icons/pause_icon_website.svg.js.map +0 -1
- package/lib/assets/icons/people_soft.svg.js +0 -6
- package/lib/assets/icons/people_soft.svg.js.map +0 -1
- package/lib/assets/icons/platform.svg.js +0 -6
- package/lib/assets/icons/platform.svg.js.map +0 -1
- package/lib/assets/icons/play_icon_website.svg.js +0 -6
- package/lib/assets/icons/play_icon_website.svg.js.map +0 -1
- package/lib/assets/icons/prerequisites.svg.js +0 -6
- package/lib/assets/icons/prerequisites.svg.js.map +0 -1
- package/lib/assets/icons/product_assets.svg.js +0 -6
- package/lib/assets/icons/product_assets.svg.js.map +0 -1
- package/lib/assets/icons/quick_access_website.svg.js +0 -6
- package/lib/assets/icons/quick_access_website.svg.js.map +0 -1
- package/lib/assets/icons/quick_access_website_active.svg.js +0 -6
- package/lib/assets/icons/quick_access_website_active.svg.js.map +0 -1
- package/lib/assets/icons/regression_testing.svg.js +0 -6
- package/lib/assets/icons/regression_testing.svg.js.map +0 -1
- package/lib/assets/icons/release_note.svg.js +0 -6
- package/lib/assets/icons/release_note.svg.js.map +0 -1
- package/lib/assets/icons/result_analytics.svg.js +0 -6
- package/lib/assets/icons/result_analytics.svg.js.map +0 -1
- package/lib/assets/icons/robust_locators.svg.js +0 -6
- package/lib/assets/icons/robust_locators.svg.js.map +0 -1
- package/lib/assets/icons/salesforce.svg.js +0 -6
- package/lib/assets/icons/salesforce.svg.js.map +0 -1
- package/lib/assets/icons/sample-user.svg.js +0 -6
- package/lib/assets/icons/sample-user.svg.js.map +0 -1
- package/lib/assets/icons/sap.svg.js +0 -6
- package/lib/assets/icons/sap.svg.js.map +0 -1
- package/lib/assets/icons/save_time.svg.js +0 -6
- package/lib/assets/icons/save_time.svg.js.map +0 -1
- package/lib/assets/icons/scriptless_nlp.svg.js +0 -6
- package/lib/assets/icons/scriptless_nlp.svg.js.map +0 -1
- package/lib/assets/icons/seamless_testing.svg.js +0 -6
- package/lib/assets/icons/seamless_testing.svg.js.map +0 -1
- package/lib/assets/icons/service_now.svg.js +0 -6
- package/lib/assets/icons/service_now.svg.js.map +0 -1
- package/lib/assets/icons/shadow_dom_element.svg.js +0 -6
- package/lib/assets/icons/shadow_dom_element.svg.js.map +0 -1
- package/lib/assets/icons/shifting_ui.svg.js +0 -6
- package/lib/assets/icons/shifting_ui.svg.js.map +0 -1
- package/lib/assets/icons/simulator_device.svg.js +0 -6
- package/lib/assets/icons/simulator_device.svg.js.map +0 -1
- package/lib/assets/icons/simulators.svg.js +0 -6
- package/lib/assets/icons/simulators.svg.js.map +0 -1
- package/lib/assets/icons/single_thread.svg.js +0 -6
- package/lib/assets/icons/single_thread.svg.js.map +0 -1
- package/lib/assets/icons/small_icon_arrow_right.svg.js +0 -6
- package/lib/assets/icons/small_icon_arrow_right.svg.js.map +0 -1
- package/lib/assets/icons/snapshots.svg.js +0 -6
- package/lib/assets/icons/snapshots.svg.js.map +0 -1
- package/lib/assets/icons/step_reusability.svg.js +0 -6
- package/lib/assets/icons/step_reusability.svg.js.map +0 -1
- package/lib/assets/icons/straight_forward_tool.svg.js +0 -6
- package/lib/assets/icons/straight_forward_tool.svg.js.map +0 -1
- package/lib/assets/icons/support.svg.js +0 -6
- package/lib/assets/icons/support.svg.js.map +0 -1
- package/lib/assets/icons/template_store.svg.js +0 -6
- package/lib/assets/icons/template_store.svg.js.map +0 -1
- package/lib/assets/icons/templatized_platform.svg.js +0 -6
- package/lib/assets/icons/templatized_platform.svg.js.map +0 -1
- package/lib/assets/icons/test_execution.svg.js +0 -6
- package/lib/assets/icons/test_execution.svg.js.map +0 -1
- package/lib/assets/icons/test_management.svg.js +0 -6
- package/lib/assets/icons/test_management.svg.js.map +0 -1
- package/lib/assets/icons/time_to_market.svg.js +0 -6
- package/lib/assets/icons/time_to_market.svg.js.map +0 -1
- package/lib/assets/icons/timespans.svg.js +0 -6
- package/lib/assets/icons/timespans.svg.js.map +0 -1
- package/lib/assets/icons/tiresome_manual_practices.svg.js +0 -6
- package/lib/assets/icons/tiresome_manual_practices.svg.js.map +0 -1
- package/lib/assets/icons/traceability.svg.js +0 -6
- package/lib/assets/icons/traceability.svg.js.map +0 -1
- package/lib/assets/icons/track_progress.svg.js +0 -6
- package/lib/assets/icons/track_progress.svg.js.map +0 -1
- package/lib/assets/icons/training_and_upskilling.svg.js +0 -6
- package/lib/assets/icons/training_and_upskilling.svg.js.map +0 -1
- package/lib/assets/icons/twitter_hover_icon.svg.js +0 -6
- package/lib/assets/icons/twitter_hover_icon.svg.js.map +0 -1
- package/lib/assets/icons/twitter_icon.svg.js +0 -6
- package/lib/assets/icons/twitter_icon.svg.js.map +0 -1
- package/lib/assets/icons/ui_performance_testing.svg.js +0 -6
- package/lib/assets/icons/ui_performance_testing.svg.js.map +0 -1
- package/lib/assets/icons/unified_tool.svg.js +0 -6
- package/lib/assets/icons/unified_tool.svg.js.map +0 -1
- package/lib/assets/icons/use_it_independently.svg.js +0 -6
- package/lib/assets/icons/use_it_independently.svg.js.map +0 -1
- package/lib/assets/icons/user_interface_testing.svg.js +0 -6
- package/lib/assets/icons/user_interface_testing.svg.js.map +0 -1
- package/lib/assets/icons/using_nlp_for_ux_testing.svg.js +0 -6
- package/lib/assets/icons/using_nlp_for_ux_testing.svg.js.map +0 -1
- package/lib/assets/icons/video_tutorial.svg.js +0 -6
- package/lib/assets/icons/video_tutorial.svg.js.map +0 -1
- package/lib/assets/icons/visual_testing.svg.js +0 -6
- package/lib/assets/icons/visual_testing.svg.js.map +0 -1
- package/lib/assets/icons/web_app_compatibility_testing.svg.js +0 -6
- package/lib/assets/icons/web_app_compatibility_testing.svg.js.map +0 -1
- package/lib/assets/icons/web_app_functionality_testing.svg.js +0 -6
- package/lib/assets/icons/web_app_functionality_testing.svg.js.map +0 -1
- package/lib/assets/icons/web_app_integration_testing.svg.js +0 -6
- package/lib/assets/icons/web_app_integration_testing.svg.js.map +0 -1
- package/lib/assets/icons/web_app_regression_testing.svg.js +0 -6
- package/lib/assets/icons/web_app_regression_testing.svg.js.map +0 -1
- package/lib/assets/icons/web_automation_testing.svg.js +0 -6
- package/lib/assets/icons/web_automation_testing.svg.js.map +0 -1
- package/lib/assets/icons/web_locator_finder.svg.js +0 -6
- package/lib/assets/icons/web_locator_finder.svg.js.map +0 -1
- package/lib/assets/icons/website_asset_logo.svg.js +0 -6
- package/lib/assets/icons/website_asset_logo.svg.js.map +0 -1
- package/lib/assets/icons/website_cloud_logo.svg.js +0 -6
- package/lib/assets/icons/website_cloud_logo.svg.js.map +0 -1
- package/lib/assets/icons/website_finder_logo.svg.js +0 -6
- package/lib/assets/icons/website_finder_logo.svg.js.map +0 -1
- package/lib/assets/icons/website_platform_logo.svg.js +0 -6
- package/lib/assets/icons/website_platform_logo.svg.js.map +0 -1
- package/lib/assets/icons/work_day.svg.js +0 -6
- package/lib/assets/icons/work_day.svg.js.map +0 -1
- package/lib/assets/icons/youtube_hover_icon.svg.js +0 -6
- package/lib/assets/icons/youtube_hover_icon.svg.js.map +0 -1
- package/lib/assets/icons/youtube_icon.svg.js +0 -6
- package/lib/assets/icons/youtube_icon.svg.js.map +0 -1
- package/lib/components/MegaMenu/MegaMenu.d.ts +0 -5
- package/lib/components/MegaMenu/MegaMenu.js +0 -616
- package/lib/components/MegaMenu/MegaMenu.js.map +0 -1
- package/lib/components/MegaMenu/data/DropDownContent.d.ts +0 -5
- package/lib/components/MegaMenu/data/DropDownContent.js +0 -495
- package/lib/components/MegaMenu/data/DropDownContent.js.map +0 -1
- package/lib/components/MegaMenu/data/MegaMenuData.d.ts +0 -62
- package/lib/components/MegaMenu/data/MegaMenuData.js +0 -32
- package/lib/components/MegaMenu/data/MegaMenuData.js.map +0 -1
- package/lib/components/MegaMenu/index.d.ts +0 -1
- package/lib/components/MegaMenu/index.js +0 -2
- package/lib/components/MegaMenu/index.js.map +0 -1
- package/lib/components/MegaMenu/types.d.ts +0 -45
- package/lib/components/MegaMenu/types.js +0 -2
- package/lib/components/MegaMenu/types.js.map +0 -1
- package/lib/components/MultiColFooter/MultiColFooter.d.ts +0 -5
- package/lib/components/MultiColFooter/MultiColFooter.js +0 -242
- package/lib/components/MultiColFooter/MultiColFooter.js.map +0 -1
- package/lib/components/MultiColFooter/index.d.ts +0 -1
- package/lib/components/MultiColFooter/index.js +0 -2
- package/lib/components/MultiColFooter/index.js.map +0 -1
- package/lib/components/MultiColFooter/types.d.ts +0 -48
- package/lib/components/MultiColFooter/types.js +0 -2
- package/lib/components/MultiColFooter/types.js.map +0 -1
- package/lib/components/NotFoundPage/NotFoundPage.d.ts +0 -4
- package/lib/components/NotFoundPage/NotFoundPage.js +0 -37
- package/lib/components/NotFoundPage/NotFoundPage.js.map +0 -1
- package/lib/components/NotFoundPage/index.d.ts +0 -1
- package/lib/components/NotFoundPage/index.js +0 -2
- package/lib/components/NotFoundPage/index.js.map +0 -1
- package/lib/components/NotFoundPage/types.d.ts +0 -8
- package/lib/components/NotFoundPage/types.js +0 -2
- package/lib/components/NotFoundPage/types.js.map +0 -1
- package/lib/components/NumberCounter/NumberCounter.d.ts +0 -4
- package/lib/components/NumberCounter/NumberCounter.js +0 -61
- package/lib/components/NumberCounter/NumberCounter.js.map +0 -1
- package/lib/components/NumberCounter/index.d.ts +0 -1
- package/lib/components/NumberCounter/index.js +0 -2
- package/lib/components/NumberCounter/index.js.map +0 -1
- package/lib/components/NumberCounter/type.d.ts +0 -11
- package/lib/components/NumberCounter/type.js +0 -2
- package/lib/components/NumberCounter/type.js.map +0 -1
- package/lib/components/ProductSlider/ProductSlider.d.ts +0 -7
- package/lib/components/ProductSlider/ProductSlider.js +0 -128
- package/lib/components/ProductSlider/ProductSlider.js.map +0 -1
- package/lib/components/ProductSlider/data/carouselData.d.ts +0 -2
- package/lib/components/ProductSlider/data/carouselData.js +0 -50
- package/lib/components/ProductSlider/data/carouselData.js.map +0 -1
- package/lib/components/ProductSlider/index.d.ts +0 -1
- package/lib/components/ProductSlider/index.js +0 -2
- package/lib/components/ProductSlider/index.js.map +0 -1
- package/lib/components/ProductSlider/types.d.ts +0 -13
- package/lib/components/ProductSlider/types.js +0 -2
- package/lib/components/ProductSlider/types.js.map +0 -1
- package/lib/components/TestimonialSlider/TestimonialSlider.d.ts +0 -7
- package/lib/components/TestimonialSlider/TestimonialSlider.js +0 -324
- package/lib/components/TestimonialSlider/TestimonialSlider.js.map +0 -1
- package/lib/components/TestimonialSlider/data/testimonialsData.d.ts +0 -2
- package/lib/components/TestimonialSlider/data/testimonialsData.js +0 -80
- package/lib/components/TestimonialSlider/data/testimonialsData.js.map +0 -1
- package/lib/components/TestimonialSlider/index.d.ts +0 -1
- package/lib/components/TestimonialSlider/index.js +0 -2
- package/lib/components/TestimonialSlider/index.js.map +0 -1
- package/lib/components/TestimonialSlider/types.d.ts +0 -21
- package/lib/components/TestimonialSlider/types.js +0 -2
- package/lib/components/TestimonialSlider/types.js.map +0 -1
- package/lib/components/VerticalSlider/VerticalSlider.d.ts +0 -7
- package/lib/components/VerticalSlider/VerticalSlider.js +0 -148
- package/lib/components/VerticalSlider/VerticalSlider.js.map +0 -1
- package/lib/components/VerticalSlider/data/carouselData.d.ts +0 -2
- package/lib/components/VerticalSlider/data/carouselData.js +0 -49
- package/lib/components/VerticalSlider/data/carouselData.js.map +0 -1
- package/lib/components/VerticalSlider/index.d.ts +0 -0
- package/lib/components/VerticalSlider/index.js +0 -2
- package/lib/components/VerticalSlider/index.js.map +0 -1
- package/lib/components/VerticalSlider/types.d.ts +0 -11
- package/lib/components/VerticalSlider/types.js +0 -2
- package/lib/components/VerticalSlider/types.js.map +0 -1
- package/lib/components/WebsiteInput/WebsiteInput.d.ts +0 -5
- package/lib/components/WebsiteInput/WebsiteInput.js +0 -39
- package/lib/components/WebsiteInput/WebsiteInput.js.map +0 -1
- package/lib/components/WebsiteInput/index.d.ts +0 -1
- package/lib/components/WebsiteInput/index.js +0 -2
- package/lib/components/WebsiteInput/index.js.map +0 -1
- package/lib/components/WebsiteInput/types.d.ts +0 -11
- package/lib/components/WebsiteInput/types.js +0 -2
- package/lib/components/WebsiteInput/types.js.map +0 -1
- package/lib/components/WebsiteSelect/WebsiteSelect.d.ts +0 -5
- package/lib/components/WebsiteSelect/WebsiteSelect.js +0 -76
- package/lib/components/WebsiteSelect/WebsiteSelect.js.map +0 -1
- package/lib/components/WebsiteSelect/index.d.ts +0 -1
- package/lib/components/WebsiteSelect/index.js +0 -2
- package/lib/components/WebsiteSelect/index.js.map +0 -1
- package/lib/components/WebsiteSelect/types.d.ts +0 -6
- package/lib/components/WebsiteSelect/types.js +0 -2
- package/lib/components/WebsiteSelect/types.js.map +0 -1
- package/lib/node_modules/enquire.js/src/MediaQuery.js +0 -95
- package/lib/node_modules/enquire.js/src/MediaQuery.js.map +0 -1
- package/lib/node_modules/enquire.js/src/MediaQueryDispatch.js +0 -91
- package/lib/node_modules/enquire.js/src/MediaQueryDispatch.js.map +0 -1
- package/lib/node_modules/enquire.js/src/QueryHandler.js +0 -75
- package/lib/node_modules/enquire.js/src/QueryHandler.js.map +0 -1
- package/lib/node_modules/enquire.js/src/Util.js +0 -52
- package/lib/node_modules/enquire.js/src/Util.js.map +0 -1
- package/lib/node_modules/enquire.js/src/index.js +0 -14
- package/lib/node_modules/enquire.js/src/index.js.map +0 -1
- package/lib/node_modules/json2mq/index.js +0 -59
- package/lib/node_modules/json2mq/index.js.map +0 -1
- package/lib/node_modules/lodash.debounce/index.js +0 -369
- package/lib/node_modules/lodash.debounce/index.js.map +0 -1
- package/lib/node_modules/react-loading-skeleton/dist/index.js +0 -117
- package/lib/node_modules/react-loading-skeleton/dist/index.js.map +0 -1
- package/lib/node_modules/react-slick/lib/arrows.js +0 -296
- package/lib/node_modules/react-slick/lib/arrows.js.map +0 -1
- package/lib/node_modules/react-slick/lib/default-props.js +0 -88
- package/lib/node_modules/react-slick/lib/default-props.js.map +0 -1
- package/lib/node_modules/react-slick/lib/dots.js +0 -247
- package/lib/node_modules/react-slick/lib/dots.js.map +0 -1
- package/lib/node_modules/react-slick/lib/index.js +0 -26
- package/lib/node_modules/react-slick/lib/index.js.map +0 -1
- package/lib/node_modules/react-slick/lib/initial-state.js +0 -50
- package/lib/node_modules/react-slick/lib/initial-state.js.map +0 -1
- package/lib/node_modules/react-slick/lib/inner-slider.js +0 -881
- package/lib/node_modules/react-slick/lib/inner-slider.js.map +0 -1
- package/lib/node_modules/react-slick/lib/slider.js +0 -397
- package/lib/node_modules/react-slick/lib/slider.js.map +0 -1
- package/lib/node_modules/react-slick/lib/track.js +0 -384
- package/lib/node_modules/react-slick/lib/track.js.map +0 -1
- package/lib/node_modules/react-slick/lib/utils/innerSliderUtils.js +0 -835
- package/lib/node_modules/react-slick/lib/utils/innerSliderUtils.js.map +0 -1
- package/lib/node_modules/react-slick/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -948
- package/lib/node_modules/react-slick/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js.map +0 -1
- package/lib/node_modules/string-convert/camel2hyphen.js +0 -16
- package/lib/node_modules/string-convert/camel2hyphen.js.map +0 -1
- package/lib/utils/useDeviceType/useDeviceType.d.ts +0 -6
- package/lib/utils/useDeviceType/useDeviceType.js +0 -27
- package/lib/utils/useDeviceType/useDeviceType.js.map +0 -1
@@ -1,369 +0,0 @@
|
|
1
|
-
import { commonjsGlobal } from '../../_virtual/_commonjsHelpers.js';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* lodash (Custom Build) <https://lodash.com/>
|
5
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
6
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
7
|
-
* Released under MIT license <https://lodash.com/license>
|
8
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
9
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
10
|
-
*/
|
11
|
-
var lodash_debounce;
|
12
|
-
var hasRequiredLodash_debounce;
|
13
|
-
function requireLodash_debounce() {
|
14
|
-
if (hasRequiredLodash_debounce) return lodash_debounce;
|
15
|
-
hasRequiredLodash_debounce = 1;
|
16
|
-
/** Used as the `TypeError` message for "Functions" methods. */
|
17
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
18
|
-
|
19
|
-
/** Used as references for various `Number` constants. */
|
20
|
-
var NAN = 0 / 0;
|
21
|
-
|
22
|
-
/** `Object#toString` result references. */
|
23
|
-
var symbolTag = '[object Symbol]';
|
24
|
-
|
25
|
-
/** Used to match leading and trailing whitespace. */
|
26
|
-
var reTrim = /^\s+|\s+$/g;
|
27
|
-
|
28
|
-
/** Used to detect bad signed hexadecimal string values. */
|
29
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
30
|
-
|
31
|
-
/** Used to detect binary string values. */
|
32
|
-
var reIsBinary = /^0b[01]+$/i;
|
33
|
-
|
34
|
-
/** Used to detect octal string values. */
|
35
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
36
|
-
|
37
|
-
/** Built-in method references without a dependency on `root`. */
|
38
|
-
var freeParseInt = parseInt;
|
39
|
-
|
40
|
-
/** Detect free variable `global` from Node.js. */
|
41
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
42
|
-
|
43
|
-
/** Detect free variable `self`. */
|
44
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
45
|
-
|
46
|
-
/** Used as a reference to the global object. */
|
47
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
48
|
-
|
49
|
-
/** Used for built-in method references. */
|
50
|
-
var objectProto = Object.prototype;
|
51
|
-
|
52
|
-
/**
|
53
|
-
* Used to resolve the
|
54
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
55
|
-
* of values.
|
56
|
-
*/
|
57
|
-
var objectToString = objectProto.toString;
|
58
|
-
|
59
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
60
|
-
var nativeMax = Math.max,
|
61
|
-
nativeMin = Math.min;
|
62
|
-
|
63
|
-
/**
|
64
|
-
* Gets the timestamp of the number of milliseconds that have elapsed since
|
65
|
-
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
66
|
-
*
|
67
|
-
* @static
|
68
|
-
* @memberOf _
|
69
|
-
* @since 2.4.0
|
70
|
-
* @category Date
|
71
|
-
* @returns {number} Returns the timestamp.
|
72
|
-
* @example
|
73
|
-
*
|
74
|
-
* _.defer(function(stamp) {
|
75
|
-
* console.log(_.now() - stamp);
|
76
|
-
* }, _.now());
|
77
|
-
* // => Logs the number of milliseconds it took for the deferred invocation.
|
78
|
-
*/
|
79
|
-
var now = function () {
|
80
|
-
return root.Date.now();
|
81
|
-
};
|
82
|
-
|
83
|
-
/**
|
84
|
-
* Creates a debounced function that delays invoking `func` until after `wait`
|
85
|
-
* milliseconds have elapsed since the last time the debounced function was
|
86
|
-
* invoked. The debounced function comes with a `cancel` method to cancel
|
87
|
-
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
88
|
-
* Provide `options` to indicate whether `func` should be invoked on the
|
89
|
-
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
90
|
-
* with the last arguments provided to the debounced function. Subsequent
|
91
|
-
* calls to the debounced function return the result of the last `func`
|
92
|
-
* invocation.
|
93
|
-
*
|
94
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
95
|
-
* invoked on the trailing edge of the timeout only if the debounced function
|
96
|
-
* is invoked more than once during the `wait` timeout.
|
97
|
-
*
|
98
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
99
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
100
|
-
*
|
101
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
102
|
-
* for details over the differences between `_.debounce` and `_.throttle`.
|
103
|
-
*
|
104
|
-
* @static
|
105
|
-
* @memberOf _
|
106
|
-
* @since 0.1.0
|
107
|
-
* @category Function
|
108
|
-
* @param {Function} func The function to debounce.
|
109
|
-
* @param {number} [wait=0] The number of milliseconds to delay.
|
110
|
-
* @param {Object} [options={}] The options object.
|
111
|
-
* @param {boolean} [options.leading=false]
|
112
|
-
* Specify invoking on the leading edge of the timeout.
|
113
|
-
* @param {number} [options.maxWait]
|
114
|
-
* The maximum time `func` is allowed to be delayed before it's invoked.
|
115
|
-
* @param {boolean} [options.trailing=true]
|
116
|
-
* Specify invoking on the trailing edge of the timeout.
|
117
|
-
* @returns {Function} Returns the new debounced function.
|
118
|
-
* @example
|
119
|
-
*
|
120
|
-
* // Avoid costly calculations while the window size is in flux.
|
121
|
-
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
122
|
-
*
|
123
|
-
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
124
|
-
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
125
|
-
* 'leading': true,
|
126
|
-
* 'trailing': false
|
127
|
-
* }));
|
128
|
-
*
|
129
|
-
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
130
|
-
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
131
|
-
* var source = new EventSource('/stream');
|
132
|
-
* jQuery(source).on('message', debounced);
|
133
|
-
*
|
134
|
-
* // Cancel the trailing debounced invocation.
|
135
|
-
* jQuery(window).on('popstate', debounced.cancel);
|
136
|
-
*/
|
137
|
-
function debounce(func, wait, options) {
|
138
|
-
var lastArgs,
|
139
|
-
lastThis,
|
140
|
-
maxWait,
|
141
|
-
result,
|
142
|
-
timerId,
|
143
|
-
lastCallTime,
|
144
|
-
lastInvokeTime = 0,
|
145
|
-
leading = false,
|
146
|
-
maxing = false,
|
147
|
-
trailing = true;
|
148
|
-
if (typeof func != 'function') {
|
149
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
150
|
-
}
|
151
|
-
wait = toNumber(wait) || 0;
|
152
|
-
if (isObject(options)) {
|
153
|
-
leading = !!options.leading;
|
154
|
-
maxing = 'maxWait' in options;
|
155
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
156
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
157
|
-
}
|
158
|
-
function invokeFunc(time) {
|
159
|
-
var args = lastArgs,
|
160
|
-
thisArg = lastThis;
|
161
|
-
lastArgs = lastThis = undefined;
|
162
|
-
lastInvokeTime = time;
|
163
|
-
result = func.apply(thisArg, args);
|
164
|
-
return result;
|
165
|
-
}
|
166
|
-
function leadingEdge(time) {
|
167
|
-
// Reset any `maxWait` timer.
|
168
|
-
lastInvokeTime = time;
|
169
|
-
// Start the timer for the trailing edge.
|
170
|
-
timerId = setTimeout(timerExpired, wait);
|
171
|
-
// Invoke the leading edge.
|
172
|
-
return leading ? invokeFunc(time) : result;
|
173
|
-
}
|
174
|
-
function remainingWait(time) {
|
175
|
-
var timeSinceLastCall = time - lastCallTime,
|
176
|
-
timeSinceLastInvoke = time - lastInvokeTime,
|
177
|
-
result = wait - timeSinceLastCall;
|
178
|
-
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
179
|
-
}
|
180
|
-
function shouldInvoke(time) {
|
181
|
-
var timeSinceLastCall = time - lastCallTime,
|
182
|
-
timeSinceLastInvoke = time - lastInvokeTime;
|
183
|
-
|
184
|
-
// Either this is the first call, activity has stopped and we're at the
|
185
|
-
// trailing edge, the system time has gone backwards and we're treating
|
186
|
-
// it as the trailing edge, or we've hit the `maxWait` limit.
|
187
|
-
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
188
|
-
}
|
189
|
-
function timerExpired() {
|
190
|
-
var time = now();
|
191
|
-
if (shouldInvoke(time)) {
|
192
|
-
return trailingEdge(time);
|
193
|
-
}
|
194
|
-
// Restart the timer.
|
195
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
196
|
-
}
|
197
|
-
function trailingEdge(time) {
|
198
|
-
timerId = undefined;
|
199
|
-
|
200
|
-
// Only invoke if we have `lastArgs` which means `func` has been
|
201
|
-
// debounced at least once.
|
202
|
-
if (trailing && lastArgs) {
|
203
|
-
return invokeFunc(time);
|
204
|
-
}
|
205
|
-
lastArgs = lastThis = undefined;
|
206
|
-
return result;
|
207
|
-
}
|
208
|
-
function cancel() {
|
209
|
-
if (timerId !== undefined) {
|
210
|
-
clearTimeout(timerId);
|
211
|
-
}
|
212
|
-
lastInvokeTime = 0;
|
213
|
-
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
214
|
-
}
|
215
|
-
function flush() {
|
216
|
-
return timerId === undefined ? result : trailingEdge(now());
|
217
|
-
}
|
218
|
-
function debounced() {
|
219
|
-
var time = now(),
|
220
|
-
isInvoking = shouldInvoke(time);
|
221
|
-
lastArgs = arguments;
|
222
|
-
lastThis = this;
|
223
|
-
lastCallTime = time;
|
224
|
-
if (isInvoking) {
|
225
|
-
if (timerId === undefined) {
|
226
|
-
return leadingEdge(lastCallTime);
|
227
|
-
}
|
228
|
-
if (maxing) {
|
229
|
-
// Handle invocations in a tight loop.
|
230
|
-
timerId = setTimeout(timerExpired, wait);
|
231
|
-
return invokeFunc(lastCallTime);
|
232
|
-
}
|
233
|
-
}
|
234
|
-
if (timerId === undefined) {
|
235
|
-
timerId = setTimeout(timerExpired, wait);
|
236
|
-
}
|
237
|
-
return result;
|
238
|
-
}
|
239
|
-
debounced.cancel = cancel;
|
240
|
-
debounced.flush = flush;
|
241
|
-
return debounced;
|
242
|
-
}
|
243
|
-
|
244
|
-
/**
|
245
|
-
* Checks if `value` is the
|
246
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
247
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
248
|
-
*
|
249
|
-
* @static
|
250
|
-
* @memberOf _
|
251
|
-
* @since 0.1.0
|
252
|
-
* @category Lang
|
253
|
-
* @param {*} value The value to check.
|
254
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
255
|
-
* @example
|
256
|
-
*
|
257
|
-
* _.isObject({});
|
258
|
-
* // => true
|
259
|
-
*
|
260
|
-
* _.isObject([1, 2, 3]);
|
261
|
-
* // => true
|
262
|
-
*
|
263
|
-
* _.isObject(_.noop);
|
264
|
-
* // => true
|
265
|
-
*
|
266
|
-
* _.isObject(null);
|
267
|
-
* // => false
|
268
|
-
*/
|
269
|
-
function isObject(value) {
|
270
|
-
var type = typeof value;
|
271
|
-
return !!value && (type == 'object' || type == 'function');
|
272
|
-
}
|
273
|
-
|
274
|
-
/**
|
275
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
276
|
-
* and has a `typeof` result of "object".
|
277
|
-
*
|
278
|
-
* @static
|
279
|
-
* @memberOf _
|
280
|
-
* @since 4.0.0
|
281
|
-
* @category Lang
|
282
|
-
* @param {*} value The value to check.
|
283
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
284
|
-
* @example
|
285
|
-
*
|
286
|
-
* _.isObjectLike({});
|
287
|
-
* // => true
|
288
|
-
*
|
289
|
-
* _.isObjectLike([1, 2, 3]);
|
290
|
-
* // => true
|
291
|
-
*
|
292
|
-
* _.isObjectLike(_.noop);
|
293
|
-
* // => false
|
294
|
-
*
|
295
|
-
* _.isObjectLike(null);
|
296
|
-
* // => false
|
297
|
-
*/
|
298
|
-
function isObjectLike(value) {
|
299
|
-
return !!value && typeof value == 'object';
|
300
|
-
}
|
301
|
-
|
302
|
-
/**
|
303
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
304
|
-
*
|
305
|
-
* @static
|
306
|
-
* @memberOf _
|
307
|
-
* @since 4.0.0
|
308
|
-
* @category Lang
|
309
|
-
* @param {*} value The value to check.
|
310
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
311
|
-
* @example
|
312
|
-
*
|
313
|
-
* _.isSymbol(Symbol.iterator);
|
314
|
-
* // => true
|
315
|
-
*
|
316
|
-
* _.isSymbol('abc');
|
317
|
-
* // => false
|
318
|
-
*/
|
319
|
-
function isSymbol(value) {
|
320
|
-
return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
321
|
-
}
|
322
|
-
|
323
|
-
/**
|
324
|
-
* Converts `value` to a number.
|
325
|
-
*
|
326
|
-
* @static
|
327
|
-
* @memberOf _
|
328
|
-
* @since 4.0.0
|
329
|
-
* @category Lang
|
330
|
-
* @param {*} value The value to process.
|
331
|
-
* @returns {number} Returns the number.
|
332
|
-
* @example
|
333
|
-
*
|
334
|
-
* _.toNumber(3.2);
|
335
|
-
* // => 3.2
|
336
|
-
*
|
337
|
-
* _.toNumber(Number.MIN_VALUE);
|
338
|
-
* // => 5e-324
|
339
|
-
*
|
340
|
-
* _.toNumber(Infinity);
|
341
|
-
* // => Infinity
|
342
|
-
*
|
343
|
-
* _.toNumber('3.2');
|
344
|
-
* // => 3.2
|
345
|
-
*/
|
346
|
-
function toNumber(value) {
|
347
|
-
if (typeof value == 'number') {
|
348
|
-
return value;
|
349
|
-
}
|
350
|
-
if (isSymbol(value)) {
|
351
|
-
return NAN;
|
352
|
-
}
|
353
|
-
if (isObject(value)) {
|
354
|
-
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
355
|
-
value = isObject(other) ? other + '' : other;
|
356
|
-
}
|
357
|
-
if (typeof value != 'string') {
|
358
|
-
return value === 0 ? value : +value;
|
359
|
-
}
|
360
|
-
value = value.replace(reTrim, '');
|
361
|
-
var isBinary = reIsBinary.test(value);
|
362
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
363
|
-
}
|
364
|
-
lodash_debounce = debounce;
|
365
|
-
return lodash_debounce;
|
366
|
-
}
|
367
|
-
|
368
|
-
export { requireLodash_debounce as __require };
|
369
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/lodash.debounce/index.js"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\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\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 objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\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 && (type == 'object' || type == 'function');\n}\n\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 && typeof value == 'object';\n}\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) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n"],"names":["FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","global","Object","freeSelf","self","root","Function","objectProto","prototype","objectToString","toString","nativeMax","Math","max","nativeMin","min","now","Date","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","toNumber","isObject","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","value","type","isObjectLike","isSymbol","call","other","valueOf","replace","isBinary","test","slice","lodash_debounce"],"mappings":";;;;;;;;;;;;;;;AASA;EACA,IAAIA,eAAe,GAAG,qBAAqB;;AAE3C;AACA,EAAA,IAAIC,GAAG,GAAG,CAAC,GAAG,CAAC;;AAEf;EACA,IAAIC,SAAS,GAAG,iBAAiB;;AAEjC;EACA,IAAIC,MAAM,GAAG,YAAY;;AAEzB;EACA,IAAIC,UAAU,GAAG,oBAAoB;;AAErC;EACA,IAAIC,UAAU,GAAG,YAAY;;AAE7B;EACA,IAAIC,SAAS,GAAG,aAAa;;AAE7B;EACA,IAAIC,YAAY,GAAGC,QAAQ;;AAE3B;EACA,IAAIC,UAAU,GAAG,OAAOC,cAAM,IAAI,QAAQ,IAAIA,cAAM,IAAIA,cAAM,CAACC,MAAM,KAAKA,MAAM,IAAID,cAAM;;AAE1F;AACA,EAAA,IAAIE,QAAQ,GAAG,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EAAEF,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAA,GAC5CpE,UAAU,CAACqE,IAAI,CAACT,KAAK,CAAC,GAAG/D,GAAG,GAAG,CAAC+D,KAAM;AAC7C;AAEAW,EAAAA,eAAc,GAAGhD,QAAQ;;;;;;","x_google_ignoreList":[0]}
|
@@ -1,117 +0,0 @@
|
|
1
|
-
import React__default from 'react';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
const SkeletonThemeContext = /*#__PURE__*/React__default.createContext({});
|
7
|
-
|
8
|
-
/* eslint-disable react/no-array-index-key */
|
9
|
-
const defaultEnableAnimation = true;
|
10
|
-
// For performance & cleanliness, don't add any inline styles unless we have to
|
11
|
-
function styleOptionsToCssProperties({
|
12
|
-
baseColor,
|
13
|
-
highlightColor,
|
14
|
-
width,
|
15
|
-
height,
|
16
|
-
borderRadius,
|
17
|
-
circle,
|
18
|
-
direction,
|
19
|
-
duration,
|
20
|
-
enableAnimation = defaultEnableAnimation,
|
21
|
-
customHighlightBackground
|
22
|
-
}) {
|
23
|
-
const style = {};
|
24
|
-
if (direction === 'rtl') style['--animation-direction'] = 'reverse';
|
25
|
-
if (typeof duration === 'number') style['--animation-duration'] = `${duration}s`;
|
26
|
-
if (!enableAnimation) style['--pseudo-element-display'] = 'none';
|
27
|
-
if (typeof width === 'string' || typeof width === 'number') style.width = width;
|
28
|
-
if (typeof height === 'string' || typeof height === 'number') style.height = height;
|
29
|
-
if (typeof borderRadius === 'string' || typeof borderRadius === 'number') style.borderRadius = borderRadius;
|
30
|
-
if (circle) style.borderRadius = '50%';
|
31
|
-
if (typeof baseColor !== 'undefined') style['--base-color'] = baseColor;
|
32
|
-
if (typeof highlightColor !== 'undefined') style['--highlight-color'] = highlightColor;
|
33
|
-
if (typeof customHighlightBackground === 'string') style['--custom-highlight-background'] = customHighlightBackground;
|
34
|
-
return style;
|
35
|
-
}
|
36
|
-
function Skeleton({
|
37
|
-
count = 1,
|
38
|
-
wrapper: Wrapper,
|
39
|
-
className: customClassName,
|
40
|
-
containerClassName,
|
41
|
-
containerTestId,
|
42
|
-
circle = false,
|
43
|
-
style: styleProp,
|
44
|
-
...originalPropsStyleOptions
|
45
|
-
}) {
|
46
|
-
var _a, _b, _c;
|
47
|
-
const contextStyleOptions = React__default.useContext(SkeletonThemeContext);
|
48
|
-
const propsStyleOptions = {
|
49
|
-
...originalPropsStyleOptions
|
50
|
-
};
|
51
|
-
// DO NOT overwrite style options from the context if `propsStyleOptions`
|
52
|
-
// has properties explicity set to undefined
|
53
|
-
for (const [key, value] of Object.entries(originalPropsStyleOptions)) {
|
54
|
-
if (typeof value === 'undefined') {
|
55
|
-
delete propsStyleOptions[key];
|
56
|
-
}
|
57
|
-
}
|
58
|
-
// Props take priority over context
|
59
|
-
const styleOptions = {
|
60
|
-
...contextStyleOptions,
|
61
|
-
...propsStyleOptions,
|
62
|
-
circle
|
63
|
-
};
|
64
|
-
// `styleProp` has the least priority out of everything
|
65
|
-
const style = {
|
66
|
-
...styleProp,
|
67
|
-
...styleOptionsToCssProperties(styleOptions)
|
68
|
-
};
|
69
|
-
let className = 'react-loading-skeleton';
|
70
|
-
if (customClassName) className += ` ${customClassName}`;
|
71
|
-
const inline = (_a = styleOptions.inline) !== null && _a !== void 0 ? _a : false;
|
72
|
-
const elements = [];
|
73
|
-
const countCeil = Math.ceil(count);
|
74
|
-
for (let i = 0; i < countCeil; i++) {
|
75
|
-
let thisStyle = style;
|
76
|
-
if (countCeil > count && i === countCeil - 1) {
|
77
|
-
// count is not an integer and we've reached the last iteration of
|
78
|
-
// the loop, so add a "fractional" skeleton.
|
79
|
-
//
|
80
|
-
// For example, if count is 3.5, we've already added 3 full
|
81
|
-
// skeletons, so now we add one more skeleton that is 0.5 times the
|
82
|
-
// original width.
|
83
|
-
const width = (_b = thisStyle.width) !== null && _b !== void 0 ? _b : '100%'; // 100% is the default since that's what's in the CSS
|
84
|
-
const fractionalPart = count % 1;
|
85
|
-
const fractionalWidth = typeof width === 'number' ? width * fractionalPart : `calc(${width} * ${fractionalPart})`;
|
86
|
-
thisStyle = {
|
87
|
-
...thisStyle,
|
88
|
-
width: fractionalWidth
|
89
|
-
};
|
90
|
-
}
|
91
|
-
const skeletonSpan = /*#__PURE__*/React__default.createElement("span", {
|
92
|
-
className: className,
|
93
|
-
style: thisStyle,
|
94
|
-
key: i
|
95
|
-
}, "\u200C");
|
96
|
-
if (inline) {
|
97
|
-
elements.push(skeletonSpan);
|
98
|
-
} else {
|
99
|
-
// Without the <br />, the skeleton lines will all run together if
|
100
|
-
// `width` is specified
|
101
|
-
elements.push(/*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
102
|
-
key: i
|
103
|
-
}, skeletonSpan, /*#__PURE__*/React__default.createElement("br", null)));
|
104
|
-
}
|
105
|
-
}
|
106
|
-
return /*#__PURE__*/React__default.createElement("span", {
|
107
|
-
className: containerClassName,
|
108
|
-
"data-testid": containerTestId,
|
109
|
-
"aria-live": "polite",
|
110
|
-
"aria-busy": (_c = styleOptions.enableAnimation) !== null && _c !== void 0 ? _c : defaultEnableAnimation
|
111
|
-
}, Wrapper ? elements.map((el, i) => /*#__PURE__*/React__default.createElement(Wrapper, {
|
112
|
-
key: i
|
113
|
-
}, el)) : elements);
|
114
|
-
}
|
115
|
-
|
116
|
-
export { Skeleton as default };
|
117
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/react-loading-skeleton/dist/index.js"],"sourcesContent":["'use client';\nimport React from 'react';\n\n/**\n * @internal\n */\nconst SkeletonThemeContext = React.createContext({});\n\n/* eslint-disable react/no-array-index-key */\nconst defaultEnableAnimation = true;\n// For performance & cleanliness, don't add any inline styles unless we have to\nfunction styleOptionsToCssProperties({ baseColor, highlightColor, width, height, borderRadius, circle, direction, duration, enableAnimation = defaultEnableAnimation, customHighlightBackground, }) {\n const style = {};\n if (direction === 'rtl')\n style['--animation-direction'] = 'reverse';\n if (typeof duration === 'number')\n style['--animation-duration'] = `${duration}s`;\n if (!enableAnimation)\n style['--pseudo-element-display'] = 'none';\n if (typeof width === 'string' || typeof width === 'number')\n style.width = width;\n if (typeof height === 'string' || typeof height === 'number')\n style.height = height;\n if (typeof borderRadius === 'string' || typeof borderRadius === 'number')\n style.borderRadius = borderRadius;\n if (circle)\n style.borderRadius = '50%';\n if (typeof baseColor !== 'undefined')\n style['--base-color'] = baseColor;\n if (typeof highlightColor !== 'undefined')\n style['--highlight-color'] = highlightColor;\n if (typeof customHighlightBackground === 'string')\n style['--custom-highlight-background'] = customHighlightBackground;\n return style;\n}\nfunction Skeleton({ count = 1, wrapper: Wrapper, className: customClassName, containerClassName, containerTestId, circle = false, style: styleProp, ...originalPropsStyleOptions }) {\n var _a, _b, _c;\n const contextStyleOptions = React.useContext(SkeletonThemeContext);\n const propsStyleOptions = { ...originalPropsStyleOptions };\n // DO NOT overwrite style options from the context if `propsStyleOptions`\n // has properties explicity set to undefined\n for (const [key, value] of Object.entries(originalPropsStyleOptions)) {\n if (typeof value === 'undefined') {\n delete propsStyleOptions[key];\n }\n }\n // Props take priority over context\n const styleOptions = {\n ...contextStyleOptions,\n ...propsStyleOptions,\n circle,\n };\n // `styleProp` has the least priority out of everything\n const style = {\n ...styleProp,\n ...styleOptionsToCssProperties(styleOptions),\n };\n let className = 'react-loading-skeleton';\n if (customClassName)\n className += ` ${customClassName}`;\n const inline = (_a = styleOptions.inline) !== null && _a !== void 0 ? _a : false;\n const elements = [];\n const countCeil = Math.ceil(count);\n for (let i = 0; i < countCeil; i++) {\n let thisStyle = style;\n if (countCeil > count && i === countCeil - 1) {\n // count is not an integer and we've reached the last iteration of\n // the loop, so add a \"fractional\" skeleton.\n //\n // For example, if count is 3.5, we've already added 3 full\n // skeletons, so now we add one more skeleton that is 0.5 times the\n // original width.\n const width = (_b = thisStyle.width) !== null && _b !== void 0 ? _b : '100%'; // 100% is the default since that's what's in the CSS\n const fractionalPart = count % 1;\n const fractionalWidth = typeof width === 'number'\n ? width * fractionalPart\n : `calc(${width} * ${fractionalPart})`;\n thisStyle = { ...thisStyle, width: fractionalWidth };\n }\n const skeletonSpan = (React.createElement(\"span\", { className: className, style: thisStyle, key: i }, \"\\u200C\"));\n if (inline) {\n elements.push(skeletonSpan);\n }\n else {\n // Without the <br />, the skeleton lines will all run together if\n // `width` is specified\n elements.push(React.createElement(React.Fragment, { key: i },\n skeletonSpan,\n React.createElement(\"br\", null)));\n }\n }\n return (React.createElement(\"span\", { className: containerClassName, \"data-testid\": containerTestId, \"aria-live\": \"polite\", \"aria-busy\": (_c = styleOptions.enableAnimation) !== null && _c !== void 0 ? _c : defaultEnableAnimation }, Wrapper\n ? elements.map((el, i) => React.createElement(Wrapper, { key: i }, el))\n : elements));\n}\n\nfunction SkeletonTheme({ children, ...styleOptions }) {\n return (React.createElement(SkeletonThemeContext.Provider, { value: styleOptions }, children));\n}\n\nexport { SkeletonTheme, Skeleton as default };\n"],"names":["SkeletonThemeContext","React","createContext","defaultEnableAnimation","styleOptionsToCssProperties","baseColor","highlightColor","width","height","borderRadius","circle","direction","duration","enableAnimation","customHighlightBackground","style","Skeleton","count","wrapper","Wrapper","className","customClassName","containerClassName","containerTestId","styleProp","originalPropsStyleOptions","_a","_b","_c","contextStyleOptions","useContext","propsStyleOptions","key","value","Object","entries","styleOptions","inline","elements","countCeil","Math","ceil","i","thisStyle","fractionalPart","fractionalWidth","skeletonSpan","createElement","push","Fragment","map","el"],"mappings":";;AAGA;AACA;AACA;AACA,MAAMA,oBAAoB,gBAAGC,cAAK,CAACC,aAAa,CAAC,EAAE,CAAC;;AAEpD;AACA,MAAMC,sBAAsB,GAAG,IAAI;AACnC;AACA,SAASC,2BAA2BA,CAAC;EAAEC,SAAS;EAAEC,cAAc;EAAEC,KAAK;EAAEC,MAAM;EAAEC,YAAY;EAAEC,MAAM;EAAEC,SAAS;EAAEC,QAAQ;AAAEC,EAAAA,eAAe,GAAGV,sBAAsB;AAA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