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,881 +0,0 @@
|
|
1
|
-
import { __exports as innerSlider } from '../../../_virtual/inner-slider.js';
|
2
|
-
import React__default from 'react';
|
3
|
-
import { __require as requireInitialState } from './initial-state.js';
|
4
|
-
import { __require as requireLodash_debounce } from '../../lodash.debounce/index.js';
|
5
|
-
import { __require as requireClassnames } from '../../classnames/index.js';
|
6
|
-
import { __require as requireInnerSliderUtils } from './utils/innerSliderUtils.js';
|
7
|
-
import { __require as requireTrack } from './track.js';
|
8
|
-
import { __require as requireDots } from './dots.js';
|
9
|
-
import { __require as requireArrows } from './arrows.js';
|
10
|
-
import require$$8 from '../../../_virtual/ResizeObserver.es.js';
|
11
|
-
|
12
|
-
var hasRequiredInnerSlider;
|
13
|
-
function requireInnerSlider() {
|
14
|
-
if (hasRequiredInnerSlider) return innerSlider;
|
15
|
-
hasRequiredInnerSlider = 1;
|
16
|
-
Object.defineProperty(innerSlider, "__esModule", {
|
17
|
-
value: true
|
18
|
-
});
|
19
|
-
innerSlider.InnerSlider = void 0;
|
20
|
-
var _react = _interopRequireDefault(React__default);
|
21
|
-
var _initialState = _interopRequireDefault(requireInitialState());
|
22
|
-
var _lodash = _interopRequireDefault(requireLodash_debounce());
|
23
|
-
var _classnames = _interopRequireDefault(requireClassnames());
|
24
|
-
var _innerSliderUtils = requireInnerSliderUtils();
|
25
|
-
var _track = requireTrack();
|
26
|
-
var _dots = requireDots();
|
27
|
-
var _arrows = requireArrows();
|
28
|
-
var _resizeObserverPolyfill = _interopRequireDefault(require$$8);
|
29
|
-
function _interopRequireDefault(obj) {
|
30
|
-
return obj && obj.__esModule ? obj : {
|
31
|
-
"default": obj
|
32
|
-
};
|
33
|
-
}
|
34
|
-
function _typeof(o) {
|
35
|
-
"@babel/helpers - typeof";
|
36
|
-
|
37
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
38
|
-
return typeof o;
|
39
|
-
} : function (o) {
|
40
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
41
|
-
}, _typeof(o);
|
42
|
-
}
|
43
|
-
function _extends() {
|
44
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
45
|
-
for (var i = 1; i < arguments.length; i++) {
|
46
|
-
var source = arguments[i];
|
47
|
-
for (var key in source) {
|
48
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
49
|
-
target[key] = source[key];
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
return target;
|
54
|
-
};
|
55
|
-
return _extends.apply(this, arguments);
|
56
|
-
}
|
57
|
-
function _objectWithoutProperties(source, excluded) {
|
58
|
-
if (source == null) return {};
|
59
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
60
|
-
var key, i;
|
61
|
-
if (Object.getOwnPropertySymbols) {
|
62
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
63
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
64
|
-
key = sourceSymbolKeys[i];
|
65
|
-
if (excluded.indexOf(key) >= 0) continue;
|
66
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
67
|
-
target[key] = source[key];
|
68
|
-
}
|
69
|
-
}
|
70
|
-
return target;
|
71
|
-
}
|
72
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
73
|
-
if (source == null) return {};
|
74
|
-
var target = {};
|
75
|
-
var sourceKeys = Object.keys(source);
|
76
|
-
var key, i;
|
77
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
78
|
-
key = sourceKeys[i];
|
79
|
-
if (excluded.indexOf(key) >= 0) continue;
|
80
|
-
target[key] = source[key];
|
81
|
-
}
|
82
|
-
return target;
|
83
|
-
}
|
84
|
-
function ownKeys(e, r) {
|
85
|
-
var t = Object.keys(e);
|
86
|
-
if (Object.getOwnPropertySymbols) {
|
87
|
-
var o = Object.getOwnPropertySymbols(e);
|
88
|
-
r && (o = o.filter(function (r) {
|
89
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
90
|
-
})), t.push.apply(t, o);
|
91
|
-
}
|
92
|
-
return t;
|
93
|
-
}
|
94
|
-
function _objectSpread(e) {
|
95
|
-
for (var r = 1; r < arguments.length; r++) {
|
96
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
97
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
98
|
-
_defineProperty(e, r, t[r]);
|
99
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
100
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
101
|
-
});
|
102
|
-
}
|
103
|
-
return e;
|
104
|
-
}
|
105
|
-
function _classCallCheck(instance, Constructor) {
|
106
|
-
if (!(instance instanceof Constructor)) {
|
107
|
-
throw new TypeError("Cannot call a class as a function");
|
108
|
-
}
|
109
|
-
}
|
110
|
-
function _defineProperties(target, props) {
|
111
|
-
for (var i = 0; i < props.length; i++) {
|
112
|
-
var descriptor = props[i];
|
113
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
114
|
-
descriptor.configurable = true;
|
115
|
-
if ("value" in descriptor) descriptor.writable = true;
|
116
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
117
|
-
}
|
118
|
-
}
|
119
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
120
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
121
|
-
Object.defineProperty(Constructor, "prototype", {
|
122
|
-
writable: false
|
123
|
-
});
|
124
|
-
return Constructor;
|
125
|
-
}
|
126
|
-
function _inherits(subClass, superClass) {
|
127
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
128
|
-
throw new TypeError("Super expression must either be null or a function");
|
129
|
-
}
|
130
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
131
|
-
constructor: {
|
132
|
-
value: subClass,
|
133
|
-
writable: true,
|
134
|
-
configurable: true
|
135
|
-
}
|
136
|
-
});
|
137
|
-
Object.defineProperty(subClass, "prototype", {
|
138
|
-
writable: false
|
139
|
-
});
|
140
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
141
|
-
}
|
142
|
-
function _setPrototypeOf(o, p) {
|
143
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
144
|
-
o.__proto__ = p;
|
145
|
-
return o;
|
146
|
-
};
|
147
|
-
return _setPrototypeOf(o, p);
|
148
|
-
}
|
149
|
-
function _createSuper(Derived) {
|
150
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
151
|
-
return function _createSuperInternal() {
|
152
|
-
var Super = _getPrototypeOf(Derived),
|
153
|
-
result;
|
154
|
-
if (hasNativeReflectConstruct) {
|
155
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
156
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
157
|
-
} else {
|
158
|
-
result = Super.apply(this, arguments);
|
159
|
-
}
|
160
|
-
return _possibleConstructorReturn(this, result);
|
161
|
-
};
|
162
|
-
}
|
163
|
-
function _possibleConstructorReturn(self, call) {
|
164
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
165
|
-
return call;
|
166
|
-
} else if (call !== void 0) {
|
167
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
168
|
-
}
|
169
|
-
return _assertThisInitialized(self);
|
170
|
-
}
|
171
|
-
function _assertThisInitialized(self) {
|
172
|
-
if (self === void 0) {
|
173
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
174
|
-
}
|
175
|
-
return self;
|
176
|
-
}
|
177
|
-
function _isNativeReflectConstruct() {
|
178
|
-
try {
|
179
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
180
|
-
} catch (t) {}
|
181
|
-
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
182
|
-
return !!t;
|
183
|
-
})();
|
184
|
-
}
|
185
|
-
function _getPrototypeOf(o) {
|
186
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
187
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
188
|
-
};
|
189
|
-
return _getPrototypeOf(o);
|
190
|
-
}
|
191
|
-
function _defineProperty(obj, key, value) {
|
192
|
-
key = _toPropertyKey(key);
|
193
|
-
if (key in obj) {
|
194
|
-
Object.defineProperty(obj, key, {
|
195
|
-
value: value,
|
196
|
-
enumerable: true,
|
197
|
-
configurable: true,
|
198
|
-
writable: true
|
199
|
-
});
|
200
|
-
} else {
|
201
|
-
obj[key] = value;
|
202
|
-
}
|
203
|
-
return obj;
|
204
|
-
}
|
205
|
-
function _toPropertyKey(t) {
|
206
|
-
var i = _toPrimitive(t, "string");
|
207
|
-
return "symbol" == _typeof(i) ? i : String(i);
|
208
|
-
}
|
209
|
-
function _toPrimitive(t, r) {
|
210
|
-
if ("object" != _typeof(t) || !t) return t;
|
211
|
-
var e = t[Symbol.toPrimitive];
|
212
|
-
if (void 0 !== e) {
|
213
|
-
var i = e.call(t, r);
|
214
|
-
if ("object" != _typeof(i)) return i;
|
215
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
216
|
-
}
|
217
|
-
return ("string" === r ? String : Number)(t);
|
218
|
-
}
|
219
|
-
innerSlider.InnerSlider = /*#__PURE__*/function (_React$Component) {
|
220
|
-
_inherits(InnerSlider, _React$Component);
|
221
|
-
var _super = _createSuper(InnerSlider);
|
222
|
-
function InnerSlider(props) {
|
223
|
-
var _this;
|
224
|
-
_classCallCheck(this, InnerSlider);
|
225
|
-
_this = _super.call(this, props);
|
226
|
-
_defineProperty(_assertThisInitialized(_this), "listRefHandler", function (ref) {
|
227
|
-
return _this.list = ref;
|
228
|
-
});
|
229
|
-
_defineProperty(_assertThisInitialized(_this), "trackRefHandler", function (ref) {
|
230
|
-
return _this.track = ref;
|
231
|
-
});
|
232
|
-
_defineProperty(_assertThisInitialized(_this), "adaptHeight", function () {
|
233
|
-
if (_this.props.adaptiveHeight && _this.list) {
|
234
|
-
var elem = _this.list.querySelector("[data-index=\"".concat(_this.state.currentSlide, "\"]"));
|
235
|
-
_this.list.style.height = (0, _innerSliderUtils.getHeight)(elem) + "px";
|
236
|
-
}
|
237
|
-
});
|
238
|
-
_defineProperty(_assertThisInitialized(_this), "componentDidMount", function () {
|
239
|
-
_this.props.onInit && _this.props.onInit();
|
240
|
-
if (_this.props.lazyLoad) {
|
241
|
-
var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)(_objectSpread(_objectSpread({}, _this.props), _this.state));
|
242
|
-
if (slidesToLoad.length > 0) {
|
243
|
-
_this.setState(function (prevState) {
|
244
|
-
return {
|
245
|
-
lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
|
246
|
-
};
|
247
|
-
});
|
248
|
-
if (_this.props.onLazyLoad) {
|
249
|
-
_this.props.onLazyLoad(slidesToLoad);
|
250
|
-
}
|
251
|
-
}
|
252
|
-
}
|
253
|
-
var spec = _objectSpread({
|
254
|
-
listRef: _this.list,
|
255
|
-
trackRef: _this.track
|
256
|
-
}, _this.props);
|
257
|
-
_this.updateState(spec, true, function () {
|
258
|
-
_this.adaptHeight();
|
259
|
-
_this.props.autoplay && _this.autoPlay("update");
|
260
|
-
});
|
261
|
-
if (_this.props.lazyLoad === "progressive") {
|
262
|
-
_this.lazyLoadTimer = setInterval(_this.progressiveLazyLoad, 1000);
|
263
|
-
}
|
264
|
-
_this.ro = new _resizeObserverPolyfill["default"](function () {
|
265
|
-
if (_this.state.animating) {
|
266
|
-
_this.onWindowResized(false); // don't set trackStyle hence don't break animation
|
267
|
-
_this.callbackTimers.push(setTimeout(function () {
|
268
|
-
return _this.onWindowResized();
|
269
|
-
}, _this.props.speed));
|
270
|
-
} else {
|
271
|
-
_this.onWindowResized();
|
272
|
-
}
|
273
|
-
});
|
274
|
-
_this.ro.observe(_this.list);
|
275
|
-
document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function (slide) {
|
276
|
-
slide.onfocus = _this.props.pauseOnFocus ? _this.onSlideFocus : null;
|
277
|
-
slide.onblur = _this.props.pauseOnFocus ? _this.onSlideBlur : null;
|
278
|
-
});
|
279
|
-
if (window.addEventListener) {
|
280
|
-
window.addEventListener("resize", _this.onWindowResized);
|
281
|
-
} else {
|
282
|
-
window.attachEvent("onresize", _this.onWindowResized);
|
283
|
-
}
|
284
|
-
});
|
285
|
-
_defineProperty(_assertThisInitialized(_this), "componentWillUnmount", function () {
|
286
|
-
if (_this.animationEndCallback) {
|
287
|
-
clearTimeout(_this.animationEndCallback);
|
288
|
-
}
|
289
|
-
if (_this.lazyLoadTimer) {
|
290
|
-
clearInterval(_this.lazyLoadTimer);
|
291
|
-
}
|
292
|
-
if (_this.callbackTimers.length) {
|
293
|
-
_this.callbackTimers.forEach(function (timer) {
|
294
|
-
return clearTimeout(timer);
|
295
|
-
});
|
296
|
-
_this.callbackTimers = [];
|
297
|
-
}
|
298
|
-
if (window.addEventListener) {
|
299
|
-
window.removeEventListener("resize", _this.onWindowResized);
|
300
|
-
} else {
|
301
|
-
window.detachEvent("onresize", _this.onWindowResized);
|
302
|
-
}
|
303
|
-
if (_this.autoplayTimer) {
|
304
|
-
clearInterval(_this.autoplayTimer);
|
305
|
-
}
|
306
|
-
_this.ro.disconnect();
|
307
|
-
});
|
308
|
-
_defineProperty(_assertThisInitialized(_this), "componentDidUpdate", function (prevProps) {
|
309
|
-
_this.checkImagesLoad();
|
310
|
-
_this.props.onReInit && _this.props.onReInit();
|
311
|
-
if (_this.props.lazyLoad) {
|
312
|
-
var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)(_objectSpread(_objectSpread({}, _this.props), _this.state));
|
313
|
-
if (slidesToLoad.length > 0) {
|
314
|
-
_this.setState(function (prevState) {
|
315
|
-
return {
|
316
|
-
lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
|
317
|
-
};
|
318
|
-
});
|
319
|
-
if (_this.props.onLazyLoad) {
|
320
|
-
_this.props.onLazyLoad(slidesToLoad);
|
321
|
-
}
|
322
|
-
}
|
323
|
-
}
|
324
|
-
// if (this.props.onLazyLoad) {
|
325
|
-
// this.props.onLazyLoad([leftMostSlide])
|
326
|
-
// }
|
327
|
-
_this.adaptHeight();
|
328
|
-
var spec = _objectSpread(_objectSpread({
|
329
|
-
listRef: _this.list,
|
330
|
-
trackRef: _this.track
|
331
|
-
}, _this.props), _this.state);
|
332
|
-
var setTrackStyle = _this.didPropsChange(prevProps);
|
333
|
-
setTrackStyle && _this.updateState(spec, setTrackStyle, function () {
|
334
|
-
if (_this.state.currentSlide >= _react["default"].Children.count(_this.props.children)) {
|
335
|
-
_this.changeSlide({
|
336
|
-
message: "index",
|
337
|
-
index: _react["default"].Children.count(_this.props.children) - _this.props.slidesToShow,
|
338
|
-
currentSlide: _this.state.currentSlide
|
339
|
-
});
|
340
|
-
}
|
341
|
-
if (_this.props.autoplay) {
|
342
|
-
_this.autoPlay("update");
|
343
|
-
} else {
|
344
|
-
_this.pause("paused");
|
345
|
-
}
|
346
|
-
});
|
347
|
-
});
|
348
|
-
_defineProperty(_assertThisInitialized(_this), "onWindowResized", function (setTrackStyle) {
|
349
|
-
if (_this.debouncedResize) _this.debouncedResize.cancel();
|
350
|
-
_this.debouncedResize = (0, _lodash["default"])(function () {
|
351
|
-
return _this.resizeWindow(setTrackStyle);
|
352
|
-
}, 50);
|
353
|
-
_this.debouncedResize();
|
354
|
-
});
|
355
|
-
_defineProperty(_assertThisInitialized(_this), "resizeWindow", function () {
|
356
|
-
var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
357
|
-
var isTrackMounted = Boolean(_this.track && _this.track.node);
|
358
|
-
// prevent warning: setting state on unmounted component (server side rendering)
|
359
|
-
if (!isTrackMounted) return;
|
360
|
-
var spec = _objectSpread(_objectSpread({
|
361
|
-
listRef: _this.list,
|
362
|
-
trackRef: _this.track
|
363
|
-
}, _this.props), _this.state);
|
364
|
-
_this.updateState(spec, setTrackStyle, function () {
|
365
|
-
if (_this.props.autoplay) _this.autoPlay("update");else _this.pause("paused");
|
366
|
-
});
|
367
|
-
// animating state should be cleared while resizing, otherwise autoplay stops working
|
368
|
-
_this.setState({
|
369
|
-
animating: false
|
370
|
-
});
|
371
|
-
clearTimeout(_this.animationEndCallback);
|
372
|
-
delete _this.animationEndCallback;
|
373
|
-
});
|
374
|
-
_defineProperty(_assertThisInitialized(_this), "updateState", function (spec, setTrackStyle, callback) {
|
375
|
-
var updatedState = (0, _innerSliderUtils.initializedState)(spec);
|
376
|
-
spec = _objectSpread(_objectSpread(_objectSpread({}, spec), updatedState), {}, {
|
377
|
-
slideIndex: updatedState.currentSlide
|
378
|
-
});
|
379
|
-
var targetLeft = (0, _innerSliderUtils.getTrackLeft)(spec);
|
380
|
-
spec = _objectSpread(_objectSpread({}, spec), {}, {
|
381
|
-
left: targetLeft
|
382
|
-
});
|
383
|
-
var trackStyle = (0, _innerSliderUtils.getTrackCSS)(spec);
|
384
|
-
if (setTrackStyle || _react["default"].Children.count(_this.props.children) !== _react["default"].Children.count(spec.children)) {
|
385
|
-
updatedState["trackStyle"] = trackStyle;
|
386
|
-
}
|
387
|
-
_this.setState(updatedState, callback);
|
388
|
-
});
|
389
|
-
_defineProperty(_assertThisInitialized(_this), "ssrInit", function () {
|
390
|
-
if (_this.props.variableWidth) {
|
391
|
-
var _trackWidth = 0,
|
392
|
-
_trackLeft = 0;
|
393
|
-
var childrenWidths = [];
|
394
|
-
var preClones = (0, _innerSliderUtils.getPreClones)(_objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
|
395
|
-
slideCount: _this.props.children.length
|
396
|
-
}));
|
397
|
-
var postClones = (0, _innerSliderUtils.getPostClones)(_objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
|
398
|
-
slideCount: _this.props.children.length
|
399
|
-
}));
|
400
|
-
_this.props.children.forEach(function (child) {
|
401
|
-
childrenWidths.push(child.props.style.width);
|
402
|
-
_trackWidth += child.props.style.width;
|
403
|
-
});
|
404
|
-
for (var i = 0; i < preClones; i++) {
|
405
|
-
_trackLeft += childrenWidths[childrenWidths.length - 1 - i];
|
406
|
-
_trackWidth += childrenWidths[childrenWidths.length - 1 - i];
|
407
|
-
}
|
408
|
-
for (var _i = 0; _i < postClones; _i++) {
|
409
|
-
_trackWidth += childrenWidths[_i];
|
410
|
-
}
|
411
|
-
for (var _i2 = 0; _i2 < _this.state.currentSlide; _i2++) {
|
412
|
-
_trackLeft += childrenWidths[_i2];
|
413
|
-
}
|
414
|
-
var _trackStyle = {
|
415
|
-
width: _trackWidth + "px",
|
416
|
-
left: -_trackLeft + "px"
|
417
|
-
};
|
418
|
-
if (_this.props.centerMode) {
|
419
|
-
var currentWidth = "".concat(childrenWidths[_this.state.currentSlide], "px");
|
420
|
-
_trackStyle.left = "calc(".concat(_trackStyle.left, " + (100% - ").concat(currentWidth, ") / 2 ) ");
|
421
|
-
}
|
422
|
-
return {
|
423
|
-
trackStyle: _trackStyle
|
424
|
-
};
|
425
|
-
}
|
426
|
-
var childrenCount = _react["default"].Children.count(_this.props.children);
|
427
|
-
var spec = _objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
|
428
|
-
slideCount: childrenCount
|
429
|
-
});
|
430
|
-
var slideCount = (0, _innerSliderUtils.getPreClones)(spec) + (0, _innerSliderUtils.getPostClones)(spec) + childrenCount;
|
431
|
-
var trackWidth = 100 / _this.props.slidesToShow * slideCount;
|
432
|
-
var slideWidth = 100 / slideCount;
|
433
|
-
var trackLeft = -slideWidth * ((0, _innerSliderUtils.getPreClones)(spec) + _this.state.currentSlide) * trackWidth / 100;
|
434
|
-
if (_this.props.centerMode) {
|
435
|
-
trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
|
436
|
-
}
|
437
|
-
var trackStyle = {
|
438
|
-
width: trackWidth + "%",
|
439
|
-
left: trackLeft + "%"
|
440
|
-
};
|
441
|
-
return {
|
442
|
-
slideWidth: slideWidth + "%",
|
443
|
-
trackStyle: trackStyle
|
444
|
-
};
|
445
|
-
});
|
446
|
-
_defineProperty(_assertThisInitialized(_this), "checkImagesLoad", function () {
|
447
|
-
var images = _this.list && _this.list.querySelectorAll && _this.list.querySelectorAll(".slick-slide img") || [];
|
448
|
-
var imagesCount = images.length,
|
449
|
-
loadedCount = 0;
|
450
|
-
Array.prototype.forEach.call(images, function (image) {
|
451
|
-
var handler = function handler() {
|
452
|
-
return ++loadedCount && loadedCount >= imagesCount && _this.onWindowResized();
|
453
|
-
};
|
454
|
-
if (!image.onclick) {
|
455
|
-
image.onclick = function () {
|
456
|
-
return image.parentNode.focus();
|
457
|
-
};
|
458
|
-
} else {
|
459
|
-
var prevClickHandler = image.onclick;
|
460
|
-
image.onclick = function (e) {
|
461
|
-
prevClickHandler(e);
|
462
|
-
image.parentNode.focus();
|
463
|
-
};
|
464
|
-
}
|
465
|
-
if (!image.onload) {
|
466
|
-
if (_this.props.lazyLoad) {
|
467
|
-
image.onload = function () {
|
468
|
-
_this.adaptHeight();
|
469
|
-
_this.callbackTimers.push(setTimeout(_this.onWindowResized, _this.props.speed));
|
470
|
-
};
|
471
|
-
} else {
|
472
|
-
image.onload = handler;
|
473
|
-
image.onerror = function () {
|
474
|
-
handler();
|
475
|
-
_this.props.onLazyLoadError && _this.props.onLazyLoadError();
|
476
|
-
};
|
477
|
-
}
|
478
|
-
}
|
479
|
-
});
|
480
|
-
});
|
481
|
-
_defineProperty(_assertThisInitialized(_this), "progressiveLazyLoad", function () {
|
482
|
-
var slidesToLoad = [];
|
483
|
-
var spec = _objectSpread(_objectSpread({}, _this.props), _this.state);
|
484
|
-
for (var index = _this.state.currentSlide; index < _this.state.slideCount + (0, _innerSliderUtils.getPostClones)(spec); index++) {
|
485
|
-
if (_this.state.lazyLoadedList.indexOf(index) < 0) {
|
486
|
-
slidesToLoad.push(index);
|
487
|
-
break;
|
488
|
-
}
|
489
|
-
}
|
490
|
-
for (var _index = _this.state.currentSlide - 1; _index >= -(0, _innerSliderUtils.getPreClones)(spec); _index--) {
|
491
|
-
if (_this.state.lazyLoadedList.indexOf(_index) < 0) {
|
492
|
-
slidesToLoad.push(_index);
|
493
|
-
break;
|
494
|
-
}
|
495
|
-
}
|
496
|
-
if (slidesToLoad.length > 0) {
|
497
|
-
_this.setState(function (state) {
|
498
|
-
return {
|
499
|
-
lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)
|
500
|
-
};
|
501
|
-
});
|
502
|
-
if (_this.props.onLazyLoad) {
|
503
|
-
_this.props.onLazyLoad(slidesToLoad);
|
504
|
-
}
|
505
|
-
} else {
|
506
|
-
if (_this.lazyLoadTimer) {
|
507
|
-
clearInterval(_this.lazyLoadTimer);
|
508
|
-
delete _this.lazyLoadTimer;
|
509
|
-
}
|
510
|
-
}
|
511
|
-
});
|
512
|
-
_defineProperty(_assertThisInitialized(_this), "slideHandler", function (index) {
|
513
|
-
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
514
|
-
var _this$props = _this.props,
|
515
|
-
asNavFor = _this$props.asNavFor,
|
516
|
-
beforeChange = _this$props.beforeChange,
|
517
|
-
onLazyLoad = _this$props.onLazyLoad,
|
518
|
-
speed = _this$props.speed,
|
519
|
-
afterChange = _this$props.afterChange; // capture currentslide before state is updated
|
520
|
-
var currentSlide = _this.state.currentSlide;
|
521
|
-
var _slideHandler = (0, _innerSliderUtils.slideHandler)(_objectSpread(_objectSpread(_objectSpread({
|
522
|
-
index: index
|
523
|
-
}, _this.props), _this.state), {}, {
|
524
|
-
trackRef: _this.track,
|
525
|
-
useCSS: _this.props.useCSS && !dontAnimate
|
526
|
-
})),
|
527
|
-
state = _slideHandler.state,
|
528
|
-
nextState = _slideHandler.nextState;
|
529
|
-
if (!state) return;
|
530
|
-
beforeChange && beforeChange(currentSlide, state.currentSlide);
|
531
|
-
var slidesToLoad = state.lazyLoadedList.filter(function (value) {
|
532
|
-
return _this.state.lazyLoadedList.indexOf(value) < 0;
|
533
|
-
});
|
534
|
-
onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);
|
535
|
-
if (!_this.props.waitForAnimate && _this.animationEndCallback) {
|
536
|
-
clearTimeout(_this.animationEndCallback);
|
537
|
-
afterChange && afterChange(currentSlide);
|
538
|
-
delete _this.animationEndCallback;
|
539
|
-
}
|
540
|
-
_this.setState(state, function () {
|
541
|
-
// asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode
|
542
|
-
if (asNavFor && _this.asNavForIndex !== index) {
|
543
|
-
_this.asNavForIndex = index;
|
544
|
-
asNavFor.innerSlider.slideHandler(index);
|
545
|
-
}
|
546
|
-
if (!nextState) return;
|
547
|
-
_this.animationEndCallback = setTimeout(function () {
|
548
|
-
var animating = nextState.animating,
|
549
|
-
firstBatch = _objectWithoutProperties(nextState, ["animating"]);
|
550
|
-
_this.setState(firstBatch, function () {
|
551
|
-
_this.callbackTimers.push(setTimeout(function () {
|
552
|
-
return _this.setState({
|
553
|
-
animating: animating
|
554
|
-
});
|
555
|
-
}, 10));
|
556
|
-
afterChange && afterChange(state.currentSlide);
|
557
|
-
delete _this.animationEndCallback;
|
558
|
-
});
|
559
|
-
}, speed);
|
560
|
-
});
|
561
|
-
});
|
562
|
-
_defineProperty(_assertThisInitialized(_this), "changeSlide", function (options) {
|
563
|
-
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
564
|
-
var spec = _objectSpread(_objectSpread({}, _this.props), _this.state);
|
565
|
-
var targetSlide = (0, _innerSliderUtils.changeSlide)(spec, options);
|
566
|
-
if (targetSlide !== 0 && !targetSlide) return;
|
567
|
-
if (dontAnimate === true) {
|
568
|
-
_this.slideHandler(targetSlide, dontAnimate);
|
569
|
-
} else {
|
570
|
-
_this.slideHandler(targetSlide);
|
571
|
-
}
|
572
|
-
_this.props.autoplay && _this.autoPlay("update");
|
573
|
-
if (_this.props.focusOnSelect) {
|
574
|
-
var nodes = _this.list.querySelectorAll(".slick-current");
|
575
|
-
nodes[0] && nodes[0].focus();
|
576
|
-
}
|
577
|
-
});
|
578
|
-
_defineProperty(_assertThisInitialized(_this), "clickHandler", function (e) {
|
579
|
-
if (_this.clickable === false) {
|
580
|
-
e.stopPropagation();
|
581
|
-
e.preventDefault();
|
582
|
-
}
|
583
|
-
_this.clickable = true;
|
584
|
-
});
|
585
|
-
_defineProperty(_assertThisInitialized(_this), "keyHandler", function (e) {
|
586
|
-
var dir = (0, _innerSliderUtils.keyHandler)(e, _this.props.accessibility, _this.props.rtl);
|
587
|
-
dir !== "" && _this.changeSlide({
|
588
|
-
message: dir
|
589
|
-
});
|
590
|
-
});
|
591
|
-
_defineProperty(_assertThisInitialized(_this), "selectHandler", function (options) {
|
592
|
-
_this.changeSlide(options);
|
593
|
-
});
|
594
|
-
_defineProperty(_assertThisInitialized(_this), "disableBodyScroll", function () {
|
595
|
-
var preventDefault = function preventDefault(e) {
|
596
|
-
e = e || window.event;
|
597
|
-
if (e.preventDefault) e.preventDefault();
|
598
|
-
e.returnValue = false;
|
599
|
-
};
|
600
|
-
window.ontouchmove = preventDefault;
|
601
|
-
});
|
602
|
-
_defineProperty(_assertThisInitialized(_this), "enableBodyScroll", function () {
|
603
|
-
window.ontouchmove = null;
|
604
|
-
});
|
605
|
-
_defineProperty(_assertThisInitialized(_this), "swipeStart", function (e) {
|
606
|
-
if (_this.props.verticalSwiping) {
|
607
|
-
_this.disableBodyScroll();
|
608
|
-
}
|
609
|
-
var state = (0, _innerSliderUtils.swipeStart)(e, _this.props.swipe, _this.props.draggable);
|
610
|
-
state !== "" && _this.setState(state);
|
611
|
-
});
|
612
|
-
_defineProperty(_assertThisInitialized(_this), "swipeMove", function (e) {
|
613
|
-
var state = (0, _innerSliderUtils.swipeMove)(e, _objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
|
614
|
-
trackRef: _this.track,
|
615
|
-
listRef: _this.list,
|
616
|
-
slideIndex: _this.state.currentSlide
|
617
|
-
}));
|
618
|
-
if (!state) return;
|
619
|
-
if (state["swiping"]) {
|
620
|
-
_this.clickable = false;
|
621
|
-
}
|
622
|
-
_this.setState(state);
|
623
|
-
});
|
624
|
-
_defineProperty(_assertThisInitialized(_this), "swipeEnd", function (e) {
|
625
|
-
var state = (0, _innerSliderUtils.swipeEnd)(e, _objectSpread(_objectSpread(_objectSpread({}, _this.props), _this.state), {}, {
|
626
|
-
trackRef: _this.track,
|
627
|
-
listRef: _this.list,
|
628
|
-
slideIndex: _this.state.currentSlide
|
629
|
-
}));
|
630
|
-
if (!state) return;
|
631
|
-
var triggerSlideHandler = state["triggerSlideHandler"];
|
632
|
-
delete state["triggerSlideHandler"];
|
633
|
-
_this.setState(state);
|
634
|
-
if (triggerSlideHandler === undefined) return;
|
635
|
-
_this.slideHandler(triggerSlideHandler);
|
636
|
-
if (_this.props.verticalSwiping) {
|
637
|
-
_this.enableBodyScroll();
|
638
|
-
}
|
639
|
-
});
|
640
|
-
_defineProperty(_assertThisInitialized(_this), "touchEnd", function (e) {
|
641
|
-
_this.swipeEnd(e);
|
642
|
-
_this.clickable = true;
|
643
|
-
});
|
644
|
-
_defineProperty(_assertThisInitialized(_this), "slickPrev", function () {
|
645
|
-
// this and fellow methods are wrapped in setTimeout
|
646
|
-
// to make sure initialize setState has happened before
|
647
|
-
// any of such methods are called
|
648
|
-
_this.callbackTimers.push(setTimeout(function () {
|
649
|
-
return _this.changeSlide({
|
650
|
-
message: "previous"
|
651
|
-
});
|
652
|
-
}, 0));
|
653
|
-
});
|
654
|
-
_defineProperty(_assertThisInitialized(_this), "slickNext", function () {
|
655
|
-
_this.callbackTimers.push(setTimeout(function () {
|
656
|
-
return _this.changeSlide({
|
657
|
-
message: "next"
|
658
|
-
});
|
659
|
-
}, 0));
|
660
|
-
});
|
661
|
-
_defineProperty(_assertThisInitialized(_this), "slickGoTo", function (slide) {
|
662
|
-
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
663
|
-
slide = Number(slide);
|
664
|
-
if (isNaN(slide)) return "";
|
665
|
-
_this.callbackTimers.push(setTimeout(function () {
|
666
|
-
return _this.changeSlide({
|
667
|
-
message: "index",
|
668
|
-
index: slide,
|
669
|
-
currentSlide: _this.state.currentSlide
|
670
|
-
}, dontAnimate);
|
671
|
-
}, 0));
|
672
|
-
});
|
673
|
-
_defineProperty(_assertThisInitialized(_this), "play", function () {
|
674
|
-
var nextIndex;
|
675
|
-
if (_this.props.rtl) {
|
676
|
-
nextIndex = _this.state.currentSlide - _this.props.slidesToScroll;
|
677
|
-
} else {
|
678
|
-
if ((0, _innerSliderUtils.canGoNext)(_objectSpread(_objectSpread({}, _this.props), _this.state))) {
|
679
|
-
nextIndex = _this.state.currentSlide + _this.props.slidesToScroll;
|
680
|
-
} else {
|
681
|
-
return false;
|
682
|
-
}
|
683
|
-
}
|
684
|
-
_this.slideHandler(nextIndex);
|
685
|
-
});
|
686
|
-
_defineProperty(_assertThisInitialized(_this), "autoPlay", function (playType) {
|
687
|
-
if (_this.autoplayTimer) {
|
688
|
-
clearInterval(_this.autoplayTimer);
|
689
|
-
}
|
690
|
-
var autoplaying = _this.state.autoplaying;
|
691
|
-
if (playType === "update") {
|
692
|
-
if (autoplaying === "hovered" || autoplaying === "focused" || autoplaying === "paused") {
|
693
|
-
return;
|
694
|
-
}
|
695
|
-
} else if (playType === "leave") {
|
696
|
-
if (autoplaying === "paused" || autoplaying === "focused") {
|
697
|
-
return;
|
698
|
-
}
|
699
|
-
} else if (playType === "blur") {
|
700
|
-
if (autoplaying === "paused" || autoplaying === "hovered") {
|
701
|
-
return;
|
702
|
-
}
|
703
|
-
}
|
704
|
-
_this.autoplayTimer = setInterval(_this.play, _this.props.autoplaySpeed + 50);
|
705
|
-
_this.setState({
|
706
|
-
autoplaying: "playing"
|
707
|
-
});
|
708
|
-
});
|
709
|
-
_defineProperty(_assertThisInitialized(_this), "pause", function (pauseType) {
|
710
|
-
if (_this.autoplayTimer) {
|
711
|
-
clearInterval(_this.autoplayTimer);
|
712
|
-
_this.autoplayTimer = null;
|
713
|
-
}
|
714
|
-
var autoplaying = _this.state.autoplaying;
|
715
|
-
if (pauseType === "paused") {
|
716
|
-
_this.setState({
|
717
|
-
autoplaying: "paused"
|
718
|
-
});
|
719
|
-
} else if (pauseType === "focused") {
|
720
|
-
if (autoplaying === "hovered" || autoplaying === "playing") {
|
721
|
-
_this.setState({
|
722
|
-
autoplaying: "focused"
|
723
|
-
});
|
724
|
-
}
|
725
|
-
} else {
|
726
|
-
// pauseType is 'hovered'
|
727
|
-
if (autoplaying === "playing") {
|
728
|
-
_this.setState({
|
729
|
-
autoplaying: "hovered"
|
730
|
-
});
|
731
|
-
}
|
732
|
-
}
|
733
|
-
});
|
734
|
-
_defineProperty(_assertThisInitialized(_this), "onDotsOver", function () {
|
735
|
-
return _this.props.autoplay && _this.pause("hovered");
|
736
|
-
});
|
737
|
-
_defineProperty(_assertThisInitialized(_this), "onDotsLeave", function () {
|
738
|
-
return _this.props.autoplay && _this.state.autoplaying === "hovered" && _this.autoPlay("leave");
|
739
|
-
});
|
740
|
-
_defineProperty(_assertThisInitialized(_this), "onTrackOver", function () {
|
741
|
-
return _this.props.autoplay && _this.pause("hovered");
|
742
|
-
});
|
743
|
-
_defineProperty(_assertThisInitialized(_this), "onTrackLeave", function () {
|
744
|
-
return _this.props.autoplay && _this.state.autoplaying === "hovered" && _this.autoPlay("leave");
|
745
|
-
});
|
746
|
-
_defineProperty(_assertThisInitialized(_this), "onSlideFocus", function () {
|
747
|
-
return _this.props.autoplay && _this.pause("focused");
|
748
|
-
});
|
749
|
-
_defineProperty(_assertThisInitialized(_this), "onSlideBlur", function () {
|
750
|
-
return _this.props.autoplay && _this.state.autoplaying === "focused" && _this.autoPlay("blur");
|
751
|
-
});
|
752
|
-
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
753
|
-
var className = (0, _classnames["default"])("slick-slider", _this.props.className, {
|
754
|
-
"slick-vertical": _this.props.vertical,
|
755
|
-
"slick-initialized": true
|
756
|
-
});
|
757
|
-
var spec = _objectSpread(_objectSpread({}, _this.props), _this.state);
|
758
|
-
var trackProps = (0, _innerSliderUtils.extractObject)(spec, ["fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", "targetSlide", "useCSS"]);
|
759
|
-
var pauseOnHover = _this.props.pauseOnHover;
|
760
|
-
trackProps = _objectSpread(_objectSpread({}, trackProps), {}, {
|
761
|
-
onMouseEnter: pauseOnHover ? _this.onTrackOver : null,
|
762
|
-
onMouseLeave: pauseOnHover ? _this.onTrackLeave : null,
|
763
|
-
onMouseOver: pauseOnHover ? _this.onTrackOver : null,
|
764
|
-
focusOnSelect: _this.props.focusOnSelect && _this.clickable ? _this.selectHandler : null
|
765
|
-
});
|
766
|
-
var dots;
|
767
|
-
if (_this.props.dots === true && _this.state.slideCount >= _this.props.slidesToShow) {
|
768
|
-
var dotProps = (0, _innerSliderUtils.extractObject)(spec, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "customPaging", "infinite", "appendDots"]);
|
769
|
-
var pauseOnDotsHover = _this.props.pauseOnDotsHover;
|
770
|
-
dotProps = _objectSpread(_objectSpread({}, dotProps), {}, {
|
771
|
-
clickHandler: _this.changeSlide,
|
772
|
-
onMouseEnter: pauseOnDotsHover ? _this.onDotsLeave : null,
|
773
|
-
onMouseOver: pauseOnDotsHover ? _this.onDotsOver : null,
|
774
|
-
onMouseLeave: pauseOnDotsHover ? _this.onDotsLeave : null
|
775
|
-
});
|
776
|
-
dots = /*#__PURE__*/_react["default"].createElement(_dots.Dots, dotProps);
|
777
|
-
}
|
778
|
-
var prevArrow, nextArrow;
|
779
|
-
var arrowProps = (0, _innerSliderUtils.extractObject)(spec, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
780
|
-
arrowProps.clickHandler = _this.changeSlide;
|
781
|
-
if (_this.props.arrows) {
|
782
|
-
prevArrow = /*#__PURE__*/_react["default"].createElement(_arrows.PrevArrow, arrowProps);
|
783
|
-
nextArrow = /*#__PURE__*/_react["default"].createElement(_arrows.NextArrow, arrowProps);
|
784
|
-
}
|
785
|
-
var verticalHeightStyle = null;
|
786
|
-
if (_this.props.vertical) {
|
787
|
-
verticalHeightStyle = {
|
788
|
-
height: _this.state.listHeight
|
789
|
-
};
|
790
|
-
}
|
791
|
-
var centerPaddingStyle = null;
|
792
|
-
if (_this.props.vertical === false) {
|
793
|
-
if (_this.props.centerMode === true) {
|
794
|
-
centerPaddingStyle = {
|
795
|
-
padding: "0px " + _this.props.centerPadding
|
796
|
-
};
|
797
|
-
}
|
798
|
-
} else {
|
799
|
-
if (_this.props.centerMode === true) {
|
800
|
-
centerPaddingStyle = {
|
801
|
-
padding: _this.props.centerPadding + " 0px"
|
802
|
-
};
|
803
|
-
}
|
804
|
-
}
|
805
|
-
var listStyle = _objectSpread(_objectSpread({}, verticalHeightStyle), centerPaddingStyle);
|
806
|
-
var touchMove = _this.props.touchMove;
|
807
|
-
var listProps = {
|
808
|
-
className: "slick-list",
|
809
|
-
style: listStyle,
|
810
|
-
onClick: _this.clickHandler,
|
811
|
-
onMouseDown: touchMove ? _this.swipeStart : null,
|
812
|
-
onMouseMove: _this.state.dragging && touchMove ? _this.swipeMove : null,
|
813
|
-
onMouseUp: touchMove ? _this.swipeEnd : null,
|
814
|
-
onMouseLeave: _this.state.dragging && touchMove ? _this.swipeEnd : null,
|
815
|
-
onTouchStart: touchMove ? _this.swipeStart : null,
|
816
|
-
onTouchMove: _this.state.dragging && touchMove ? _this.swipeMove : null,
|
817
|
-
onTouchEnd: touchMove ? _this.touchEnd : null,
|
818
|
-
onTouchCancel: _this.state.dragging && touchMove ? _this.swipeEnd : null,
|
819
|
-
onKeyDown: _this.props.accessibility ? _this.keyHandler : null
|
820
|
-
};
|
821
|
-
var innerSliderProps = {
|
822
|
-
className: className,
|
823
|
-
dir: "ltr",
|
824
|
-
style: _this.props.style
|
825
|
-
};
|
826
|
-
if (_this.props.unslick) {
|
827
|
-
listProps = {
|
828
|
-
className: "slick-list"
|
829
|
-
};
|
830
|
-
innerSliderProps = {
|
831
|
-
className: className
|
832
|
-
};
|
833
|
-
}
|
834
|
-
return /*#__PURE__*/_react["default"].createElement("div", innerSliderProps, !_this.props.unslick ? prevArrow : "", /*#__PURE__*/_react["default"].createElement("div", _extends({
|
835
|
-
ref: _this.listRefHandler
|
836
|
-
}, listProps), /*#__PURE__*/_react["default"].createElement(_track.Track, _extends({
|
837
|
-
ref: _this.trackRefHandler
|
838
|
-
}, trackProps), _this.props.children)), !_this.props.unslick ? nextArrow : "", !_this.props.unslick ? dots : "");
|
839
|
-
});
|
840
|
-
_this.list = null;
|
841
|
-
_this.track = null;
|
842
|
-
_this.state = _objectSpread(_objectSpread({}, _initialState["default"]), {}, {
|
843
|
-
currentSlide: _this.props.initialSlide,
|
844
|
-
targetSlide: _this.props.initialSlide ? _this.props.initialSlide : 0,
|
845
|
-
slideCount: _react["default"].Children.count(_this.props.children)
|
846
|
-
});
|
847
|
-
_this.callbackTimers = [];
|
848
|
-
_this.clickable = true;
|
849
|
-
_this.debouncedResize = null;
|
850
|
-
var ssrState = _this.ssrInit();
|
851
|
-
_this.state = _objectSpread(_objectSpread({}, _this.state), ssrState);
|
852
|
-
return _this;
|
853
|
-
}
|
854
|
-
_createClass(InnerSlider, [{
|
855
|
-
key: "didPropsChange",
|
856
|
-
value: function didPropsChange(prevProps) {
|
857
|
-
var setTrackStyle = false;
|
858
|
-
for (var _i3 = 0, _Object$keys = Object.keys(this.props); _i3 < _Object$keys.length; _i3++) {
|
859
|
-
var key = _Object$keys[_i3];
|
860
|
-
if (!prevProps.hasOwnProperty(key)) {
|
861
|
-
setTrackStyle = true;
|
862
|
-
break;
|
863
|
-
}
|
864
|
-
if (_typeof(prevProps[key]) === "object" || typeof prevProps[key] === "function" || isNaN(prevProps[key])) {
|
865
|
-
continue;
|
866
|
-
}
|
867
|
-
if (prevProps[key] !== this.props[key]) {
|
868
|
-
setTrackStyle = true;
|
869
|
-
break;
|
870
|
-
}
|
871
|
-
}
|
872
|
-
return setTrackStyle || _react["default"].Children.count(this.props.children) !== _react["default"].Children.count(prevProps.children);
|
873
|
-
}
|
874
|
-
}]);
|
875
|
-
return InnerSlider;
|
876
|
-
}(_react["default"].Component);
|
877
|
-
return innerSlider;
|
878
|
-
}
|
879
|
-
|
880
|
-
export { requireInnerSlider as __require };
|
881
|
-
//# sourceMappingURL=inner-slider.js.map
|