@luminati-io/uikit 6.3.92 → 6.3.95
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/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/dist/umd/uikit.development.js +2607 -291
- package/dist/umd/uikit.development.js.map +1 -1
- package/dist/umd/uikit.production.min.js +24 -24
- package/package.json +2 -2
@@ -274,77 +274,80 @@ __webpack_require__.r(__webpack_exports__);
|
|
274
274
|
/* harmony import */ var _safari_svg__WEBPACK_IMPORTED_MODULE_249__ = __webpack_require__(/*! ./safari.svg */ "./assets/icons/safari.svg");
|
275
275
|
/* harmony import */ var _safe_svg__WEBPACK_IMPORTED_MODULE_250__ = __webpack_require__(/*! ./safe.svg */ "./assets/icons/safe.svg");
|
276
276
|
/* harmony import */ var _scraping_browser_svg__WEBPACK_IMPORTED_MODULE_251__ = __webpack_require__(/*! ./scraping_browser.svg */ "./assets/icons/scraping_browser.svg");
|
277
|
-
/* harmony import */ var
|
278
|
-
/* harmony import */ var
|
279
|
-
/* harmony import */ var
|
280
|
-
/* harmony import */ var
|
281
|
-
/* harmony import */ var
|
282
|
-
/* harmony import */ var
|
283
|
-
/* harmony import */ var
|
284
|
-
/* harmony import */ var
|
285
|
-
/* harmony import */ var
|
286
|
-
/* harmony import */ var
|
287
|
-
/* harmony import */ var
|
288
|
-
/* harmony import */ var
|
289
|
-
/* harmony import */ var
|
290
|
-
/* harmony import */ var
|
291
|
-
/* harmony import */ var
|
292
|
-
/* harmony import */ var
|
293
|
-
/* harmony import */ var
|
294
|
-
/* harmony import */ var
|
295
|
-
/* harmony import */ var
|
296
|
-
/* harmony import */ var
|
297
|
-
/* harmony import */ var
|
298
|
-
/* harmony import */ var
|
299
|
-
/* harmony import */ var
|
300
|
-
/* harmony import */ var
|
301
|
-
/* harmony import */ var
|
302
|
-
/* harmony import */ var
|
303
|
-
/* harmony import */ var
|
304
|
-
/* harmony import */ var
|
305
|
-
/* harmony import */ var
|
306
|
-
/* harmony import */ var
|
307
|
-
/* harmony import */ var
|
308
|
-
/* harmony import */ var
|
309
|
-
/* harmony import */ var
|
310
|
-
/* harmony import */ var
|
311
|
-
/* harmony import */ var
|
312
|
-
/* harmony import */ var
|
313
|
-
/* harmony import */ var
|
314
|
-
/* harmony import */ var
|
315
|
-
/* harmony import */ var
|
316
|
-
/* harmony import */ var
|
317
|
-
/* harmony import */ var
|
318
|
-
/* harmony import */ var
|
319
|
-
/* harmony import */ var
|
320
|
-
/* harmony import */ var
|
321
|
-
/* harmony import */ var
|
322
|
-
/* harmony import */ var
|
323
|
-
/* harmony import */ var
|
324
|
-
/* harmony import */ var
|
325
|
-
/* harmony import */ var
|
326
|
-
/* harmony import */ var
|
327
|
-
/* harmony import */ var
|
328
|
-
/* harmony import */ var
|
329
|
-
/* harmony import */ var
|
330
|
-
/* harmony import */ var
|
331
|
-
/* harmony import */ var
|
332
|
-
/* harmony import */ var
|
333
|
-
/* harmony import */ var
|
334
|
-
/* harmony import */ var
|
335
|
-
/* harmony import */ var
|
336
|
-
/* harmony import */ var
|
337
|
-
/* harmony import */ var
|
338
|
-
/* harmony import */ var
|
339
|
-
/* harmony import */ var
|
340
|
-
/* harmony import */ var
|
341
|
-
/* harmony import */ var
|
342
|
-
/* harmony import */ var
|
343
|
-
/* harmony import */ var
|
344
|
-
/* harmony import */ var
|
345
|
-
/* harmony import */ var
|
346
|
-
/* harmony import */ var
|
347
|
-
/* harmony import */ var
|
277
|
+
/* harmony import */ var _scraping_browser2_svg__WEBPACK_IMPORTED_MODULE_252__ = __webpack_require__(/*! ./scraping_browser2.svg */ "./assets/icons/scraping_browser2.svg");
|
278
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_253__ = __webpack_require__(/*! ./search.svg */ "./assets/icons/search.svg");
|
279
|
+
/* harmony import */ var _send_svg__WEBPACK_IMPORTED_MODULE_254__ = __webpack_require__(/*! ./send.svg */ "./assets/icons/send.svg");
|
280
|
+
/* harmony import */ var _seo_svg__WEBPACK_IMPORTED_MODULE_255__ = __webpack_require__(/*! ./seo.svg */ "./assets/icons/seo.svg");
|
281
|
+
/* harmony import */ var _serp_svg__WEBPACK_IMPORTED_MODULE_256__ = __webpack_require__(/*! ./serp.svg */ "./assets/icons/serp.svg");
|
282
|
+
/* harmony import */ var _serp2_svg__WEBPACK_IMPORTED_MODULE_257__ = __webpack_require__(/*! ./serp2.svg */ "./assets/icons/serp2.svg");
|
283
|
+
/* harmony import */ var _serp_small_svg__WEBPACK_IMPORTED_MODULE_258__ = __webpack_require__(/*! ./serp_small.svg */ "./assets/icons/serp_small.svg");
|
284
|
+
/* harmony import */ var _serp_data_svg__WEBPACK_IMPORTED_MODULE_259__ = __webpack_require__(/*! ./serp_data.svg */ "./assets/icons/serp_data.svg");
|
285
|
+
/* harmony import */ var _serp_data_small_svg__WEBPACK_IMPORTED_MODULE_260__ = __webpack_require__(/*! ./serp_data_small.svg */ "./assets/icons/serp_data_small.svg");
|
286
|
+
/* harmony import */ var _shrink_svg__WEBPACK_IMPORTED_MODULE_261__ = __webpack_require__(/*! ./shrink.svg */ "./assets/icons/shrink.svg");
|
287
|
+
/* harmony import */ var _sla_svg__WEBPACK_IMPORTED_MODULE_262__ = __webpack_require__(/*! ./sla.svg */ "./assets/icons/sla.svg");
|
288
|
+
/* harmony import */ var _settings_svg__WEBPACK_IMPORTED_MODULE_263__ = __webpack_require__(/*! ./settings.svg */ "./assets/icons/settings.svg");
|
289
|
+
/* harmony import */ var _shell_svg__WEBPACK_IMPORTED_MODULE_264__ = __webpack_require__(/*! ./shell.svg */ "./assets/icons/shell.svg");
|
290
|
+
/* harmony import */ var _skype_svg__WEBPACK_IMPORTED_MODULE_265__ = __webpack_require__(/*! ./skype.svg */ "./assets/icons/skype.svg");
|
291
|
+
/* harmony import */ var _smartphone_svg__WEBPACK_IMPORTED_MODULE_266__ = __webpack_require__(/*! ./smartphone.svg */ "./assets/icons/smartphone.svg");
|
292
|
+
/* harmony import */ var _snail_svg__WEBPACK_IMPORTED_MODULE_267__ = __webpack_require__(/*! ./snail.svg */ "./assets/icons/snail.svg");
|
293
|
+
/* harmony import */ var _snapshot_svg__WEBPACK_IMPORTED_MODULE_268__ = __webpack_require__(/*! ./snapshot.svg */ "./assets/icons/snapshot.svg");
|
294
|
+
/* harmony import */ var _sort_svg__WEBPACK_IMPORTED_MODULE_269__ = __webpack_require__(/*! ./sort.svg */ "./assets/icons/sort.svg");
|
295
|
+
/* harmony import */ var _sort_asc_svg__WEBPACK_IMPORTED_MODULE_270__ = __webpack_require__(/*! ./sort_asc.svg */ "./assets/icons/sort_asc.svg");
|
296
|
+
/* harmony import */ var _sort_desc_svg__WEBPACK_IMPORTED_MODULE_271__ = __webpack_require__(/*! ./sort_desc.svg */ "./assets/icons/sort_desc.svg");
|
297
|
+
/* harmony import */ var _sparkle_svg__WEBPACK_IMPORTED_MODULE_272__ = __webpack_require__(/*! ./sparkle.svg */ "./assets/icons/sparkle.svg");
|
298
|
+
/* harmony import */ var _speed_svg__WEBPACK_IMPORTED_MODULE_273__ = __webpack_require__(/*! ./speed.svg */ "./assets/icons/speed.svg");
|
299
|
+
/* harmony import */ var _spinner_svg__WEBPACK_IMPORTED_MODULE_274__ = __webpack_require__(/*! ./spinner.svg */ "./assets/icons/spinner.svg");
|
300
|
+
/* harmony import */ var _spinner2_svg__WEBPACK_IMPORTED_MODULE_275__ = __webpack_require__(/*! ./spinner2.svg */ "./assets/icons/spinner2.svg");
|
301
|
+
/* harmony import */ var _square_brackets_svg__WEBPACK_IMPORTED_MODULE_276__ = __webpack_require__(/*! ./square_brackets.svg */ "./assets/icons/square_brackets.svg");
|
302
|
+
/* harmony import */ var _star_svg__WEBPACK_IMPORTED_MODULE_277__ = __webpack_require__(/*! ./star.svg */ "./assets/icons/star.svg");
|
303
|
+
/* harmony import */ var _star_solid_svg__WEBPACK_IMPORTED_MODULE_278__ = __webpack_require__(/*! ./star_solid.svg */ "./assets/icons/star_solid.svg");
|
304
|
+
/* harmony import */ var _static_residential_svg__WEBPACK_IMPORTED_MODULE_279__ = __webpack_require__(/*! ./static_residential.svg */ "./assets/icons/static_residential.svg");
|
305
|
+
/* harmony import */ var _static_residential_small_svg__WEBPACK_IMPORTED_MODULE_280__ = __webpack_require__(/*! ./static_residential_small.svg */ "./assets/icons/static_residential_small.svg");
|
306
|
+
/* harmony import */ var _statistic_svg__WEBPACK_IMPORTED_MODULE_281__ = __webpack_require__(/*! ./statistic.svg */ "./assets/icons/statistic.svg");
|
307
|
+
/* harmony import */ var _statistic_search_svg__WEBPACK_IMPORTED_MODULE_282__ = __webpack_require__(/*! ./statistic_search.svg */ "./assets/icons/statistic_search.svg");
|
308
|
+
/* harmony import */ var _stop_svg__WEBPACK_IMPORTED_MODULE_283__ = __webpack_require__(/*! ./stop.svg */ "./assets/icons/stop.svg");
|
309
|
+
/* harmony import */ var _subitems_svg__WEBPACK_IMPORTED_MODULE_284__ = __webpack_require__(/*! ./subitems.svg */ "./assets/icons/subitems.svg");
|
310
|
+
/* harmony import */ var _subset_svg__WEBPACK_IMPORTED_MODULE_285__ = __webpack_require__(/*! ./subset.svg */ "./assets/icons/subset.svg");
|
311
|
+
/* harmony import */ var _sum_svg__WEBPACK_IMPORTED_MODULE_286__ = __webpack_require__(/*! ./sum.svg */ "./assets/icons/sum.svg");
|
312
|
+
/* harmony import */ var _sun_svg__WEBPACK_IMPORTED_MODULE_287__ = __webpack_require__(/*! ./sun.svg */ "./assets/icons/sun.svg");
|
313
|
+
/* harmony import */ var _support_svg__WEBPACK_IMPORTED_MODULE_288__ = __webpack_require__(/*! ./support.svg */ "./assets/icons/support.svg");
|
314
|
+
/* harmony import */ var _switch_svg__WEBPACK_IMPORTED_MODULE_289__ = __webpack_require__(/*! ./switch.svg */ "./assets/icons/switch.svg");
|
315
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_290__ = __webpack_require__(/*! ./table.svg */ "./assets/icons/table.svg");
|
316
|
+
/* harmony import */ var _tag_svg__WEBPACK_IMPORTED_MODULE_291__ = __webpack_require__(/*! ./tag.svg */ "./assets/icons/tag.svg");
|
317
|
+
/* harmony import */ var _tasks_svg__WEBPACK_IMPORTED_MODULE_292__ = __webpack_require__(/*! ./tasks.svg */ "./assets/icons/tasks.svg");
|
318
|
+
/* harmony import */ var _target_svg__WEBPACK_IMPORTED_MODULE_293__ = __webpack_require__(/*! ./target.svg */ "./assets/icons/target.svg");
|
319
|
+
/* harmony import */ var _terminal_window_svg__WEBPACK_IMPORTED_MODULE_294__ = __webpack_require__(/*! ./terminal_window.svg */ "./assets/icons/terminal_window.svg");
|
320
|
+
/* harmony import */ var _testing_svg__WEBPACK_IMPORTED_MODULE_295__ = __webpack_require__(/*! ./testing.svg */ "./assets/icons/testing.svg");
|
321
|
+
/* harmony import */ var _text_svg__WEBPACK_IMPORTED_MODULE_296__ = __webpack_require__(/*! ./text.svg */ "./assets/icons/text.svg");
|
322
|
+
/* harmony import */ var _thumb_up_svg__WEBPACK_IMPORTED_MODULE_297__ = __webpack_require__(/*! ./thumb_up.svg */ "./assets/icons/thumb_up.svg");
|
323
|
+
/* harmony import */ var _ticket_svg__WEBPACK_IMPORTED_MODULE_298__ = __webpack_require__(/*! ./ticket.svg */ "./assets/icons/ticket.svg");
|
324
|
+
/* harmony import */ var _tool_svg__WEBPACK_IMPORTED_MODULE_299__ = __webpack_require__(/*! ./tool.svg */ "./assets/icons/tool.svg");
|
325
|
+
/* harmony import */ var _top1_svg__WEBPACK_IMPORTED_MODULE_300__ = __webpack_require__(/*! ./top1.svg */ "./assets/icons/top1.svg");
|
326
|
+
/* harmony import */ var _transparency_svg__WEBPACK_IMPORTED_MODULE_301__ = __webpack_require__(/*! ./transparency.svg */ "./assets/icons/transparency.svg");
|
327
|
+
/* harmony import */ var _trash_svg__WEBPACK_IMPORTED_MODULE_302__ = __webpack_require__(/*! ./trash.svg */ "./assets/icons/trash.svg");
|
328
|
+
/* harmony import */ var _unblock_svg__WEBPACK_IMPORTED_MODULE_303__ = __webpack_require__(/*! ./unblock.svg */ "./assets/icons/unblock.svg");
|
329
|
+
/* harmony import */ var _unblocking_infrastructure_svg__WEBPACK_IMPORTED_MODULE_304__ = __webpack_require__(/*! ./unblocking_infrastructure.svg */ "./assets/icons/unblocking_infrastructure.svg");
|
330
|
+
/* harmony import */ var _unique_svg__WEBPACK_IMPORTED_MODULE_305__ = __webpack_require__(/*! ./unique.svg */ "./assets/icons/unique.svg");
|
331
|
+
/* harmony import */ var _unpin_svg__WEBPACK_IMPORTED_MODULE_306__ = __webpack_require__(/*! ./unpin.svg */ "./assets/icons/unpin.svg");
|
332
|
+
/* harmony import */ var _upgrade_svg__WEBPACK_IMPORTED_MODULE_307__ = __webpack_require__(/*! ./upgrade.svg */ "./assets/icons/upgrade.svg");
|
333
|
+
/* harmony import */ var _upload_cloud_svg__WEBPACK_IMPORTED_MODULE_308__ = __webpack_require__(/*! ./upload_cloud.svg */ "./assets/icons/upload_cloud.svg");
|
334
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_309__ = __webpack_require__(/*! ./upload.svg */ "./assets/icons/upload.svg");
|
335
|
+
/* harmony import */ var _url_svg__WEBPACK_IMPORTED_MODULE_310__ = __webpack_require__(/*! ./url.svg */ "./assets/icons/url.svg");
|
336
|
+
/* harmony import */ var _vb_svg__WEBPACK_IMPORTED_MODULE_311__ = __webpack_require__(/*! ./vb.svg */ "./assets/icons/vb.svg");
|
337
|
+
/* harmony import */ var _verify_svg__WEBPACK_IMPORTED_MODULE_312__ = __webpack_require__(/*! ./verify.svg */ "./assets/icons/verify.svg");
|
338
|
+
/* harmony import */ var _verify_solid_svg__WEBPACK_IMPORTED_MODULE_313__ = __webpack_require__(/*! ./verify_solid.svg */ "./assets/icons/verify_solid.svg");
|
339
|
+
/* harmony import */ var _verify_warning_svg__WEBPACK_IMPORTED_MODULE_314__ = __webpack_require__(/*! ./verify_warning.svg */ "./assets/icons/verify_warning.svg");
|
340
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_315__ = __webpack_require__(/*! ./video.svg */ "./assets/icons/video.svg");
|
341
|
+
/* harmony import */ var _visa_svg__WEBPACK_IMPORTED_MODULE_316__ = __webpack_require__(/*! ./visa.svg */ "./assets/icons/visa.svg");
|
342
|
+
/* harmony import */ var _warning_svg__WEBPACK_IMPORTED_MODULE_317__ = __webpack_require__(/*! ./warning.svg */ "./assets/icons/warning.svg");
|
343
|
+
/* harmony import */ var _warning_solid_svg__WEBPACK_IMPORTED_MODULE_318__ = __webpack_require__(/*! ./warning_solid.svg */ "./assets/icons/warning_solid.svg");
|
344
|
+
/* harmony import */ var _web_scrapper_svg__WEBPACK_IMPORTED_MODULE_319__ = __webpack_require__(/*! ./web_scrapper.svg */ "./assets/icons/web_scrapper.svg");
|
345
|
+
/* harmony import */ var _web_scrapper_small_svg__WEBPACK_IMPORTED_MODULE_320__ = __webpack_require__(/*! ./web_scrapper_small.svg */ "./assets/icons/web_scrapper_small.svg");
|
346
|
+
/* harmony import */ var _web_unlock_svg__WEBPACK_IMPORTED_MODULE_321__ = __webpack_require__(/*! ./web_unlock.svg */ "./assets/icons/web_unlock.svg");
|
347
|
+
/* harmony import */ var _web_unlock2_svg__WEBPACK_IMPORTED_MODULE_322__ = __webpack_require__(/*! ./web_unlock2.svg */ "./assets/icons/web_unlock2.svg");
|
348
|
+
/* harmony import */ var _web_unlock_small_svg__WEBPACK_IMPORTED_MODULE_323__ = __webpack_require__(/*! ./web_unlock_small.svg */ "./assets/icons/web_unlock_small.svg");
|
349
|
+
/* harmony import */ var _yandex_svg__WEBPACK_IMPORTED_MODULE_324__ = __webpack_require__(/*! ./yandex.svg */ "./assets/icons/yandex.svg");
|
350
|
+
/* harmony import */ var _zapier_svg__WEBPACK_IMPORTED_MODULE_325__ = __webpack_require__(/*! ./zapier.svg */ "./assets/icons/zapier.svg");
|
348
351
|
// LICENSE_CODE ZON
|
349
352
|
/*jslint react:true*/
|
350
353
|
|
@@ -668,6 +671,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
668
671
|
|
669
672
|
|
670
673
|
|
674
|
+
|
675
|
+
|
676
|
+
|
671
677
|
|
672
678
|
|
673
679
|
|
@@ -925,77 +931,80 @@ __webpack_require__.r(__webpack_exports__);
|
|
925
931
|
Safari: _safari_svg__WEBPACK_IMPORTED_MODULE_249__["default"],
|
926
932
|
Safe: _safe_svg__WEBPACK_IMPORTED_MODULE_250__["default"],
|
927
933
|
ScrapingBrowser: _scraping_browser_svg__WEBPACK_IMPORTED_MODULE_251__["default"],
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
934
|
+
ScrapingBrowser2: _scraping_browser2_svg__WEBPACK_IMPORTED_MODULE_252__["default"],
|
935
|
+
Search: _search_svg__WEBPACK_IMPORTED_MODULE_253__["default"],
|
936
|
+
Send: _send_svg__WEBPACK_IMPORTED_MODULE_254__["default"],
|
937
|
+
Seo: _seo_svg__WEBPACK_IMPORTED_MODULE_255__["default"],
|
938
|
+
Serp: _serp_svg__WEBPACK_IMPORTED_MODULE_256__["default"],
|
939
|
+
Serp2: _serp2_svg__WEBPACK_IMPORTED_MODULE_257__["default"],
|
940
|
+
SerpSmall: _serp_small_svg__WEBPACK_IMPORTED_MODULE_258__["default"],
|
941
|
+
SerpData: _serp_data_svg__WEBPACK_IMPORTED_MODULE_259__["default"],
|
942
|
+
SerpDataSmall: _serp_data_small_svg__WEBPACK_IMPORTED_MODULE_260__["default"],
|
943
|
+
Shrink: _shrink_svg__WEBPACK_IMPORTED_MODULE_261__["default"],
|
944
|
+
Sla: _sla_svg__WEBPACK_IMPORTED_MODULE_262__["default"],
|
945
|
+
Settings: _settings_svg__WEBPACK_IMPORTED_MODULE_263__["default"],
|
946
|
+
Shell: _shell_svg__WEBPACK_IMPORTED_MODULE_264__["default"],
|
947
|
+
Skype: _skype_svg__WEBPACK_IMPORTED_MODULE_265__["default"],
|
948
|
+
Smartphone: _smartphone_svg__WEBPACK_IMPORTED_MODULE_266__["default"],
|
949
|
+
Snail: _snail_svg__WEBPACK_IMPORTED_MODULE_267__["default"],
|
950
|
+
Snapshot: _snapshot_svg__WEBPACK_IMPORTED_MODULE_268__["default"],
|
951
|
+
Sort: _sort_svg__WEBPACK_IMPORTED_MODULE_269__["default"],
|
952
|
+
SortAsc: _sort_asc_svg__WEBPACK_IMPORTED_MODULE_270__["default"],
|
953
|
+
SortDesc: _sort_desc_svg__WEBPACK_IMPORTED_MODULE_271__["default"],
|
954
|
+
Sparkle: _sparkle_svg__WEBPACK_IMPORTED_MODULE_272__["default"],
|
955
|
+
Speed: _speed_svg__WEBPACK_IMPORTED_MODULE_273__["default"],
|
956
|
+
Spinner: _spinner_svg__WEBPACK_IMPORTED_MODULE_274__["default"],
|
957
|
+
Spinner2: _spinner2_svg__WEBPACK_IMPORTED_MODULE_275__["default"],
|
958
|
+
SquareBrackets: _square_brackets_svg__WEBPACK_IMPORTED_MODULE_276__["default"],
|
959
|
+
Star: _star_svg__WEBPACK_IMPORTED_MODULE_277__["default"],
|
960
|
+
StarSolid: _star_solid_svg__WEBPACK_IMPORTED_MODULE_278__["default"],
|
961
|
+
StaticResidential: _static_residential_svg__WEBPACK_IMPORTED_MODULE_279__["default"],
|
962
|
+
StaticResidentialSmall: _static_residential_small_svg__WEBPACK_IMPORTED_MODULE_280__["default"],
|
963
|
+
Statistic: _statistic_svg__WEBPACK_IMPORTED_MODULE_281__["default"],
|
964
|
+
StatisticSearch: _statistic_search_svg__WEBPACK_IMPORTED_MODULE_282__["default"],
|
965
|
+
Stop: _stop_svg__WEBPACK_IMPORTED_MODULE_283__["default"],
|
966
|
+
Subitems: _subitems_svg__WEBPACK_IMPORTED_MODULE_284__["default"],
|
967
|
+
Subset: _subset_svg__WEBPACK_IMPORTED_MODULE_285__["default"],
|
968
|
+
Sum: _sum_svg__WEBPACK_IMPORTED_MODULE_286__["default"],
|
969
|
+
Sun: _sun_svg__WEBPACK_IMPORTED_MODULE_287__["default"],
|
970
|
+
Support: _support_svg__WEBPACK_IMPORTED_MODULE_288__["default"],
|
971
|
+
Switch: _switch_svg__WEBPACK_IMPORTED_MODULE_289__["default"],
|
972
|
+
Table: _table_svg__WEBPACK_IMPORTED_MODULE_290__["default"],
|
973
|
+
Tag: _tag_svg__WEBPACK_IMPORTED_MODULE_291__["default"],
|
974
|
+
Tasks: _tasks_svg__WEBPACK_IMPORTED_MODULE_292__["default"],
|
975
|
+
Target: _target_svg__WEBPACK_IMPORTED_MODULE_293__["default"],
|
976
|
+
TerminalWindow: _terminal_window_svg__WEBPACK_IMPORTED_MODULE_294__["default"],
|
977
|
+
Testing: _testing_svg__WEBPACK_IMPORTED_MODULE_295__["default"],
|
978
|
+
Text: _text_svg__WEBPACK_IMPORTED_MODULE_296__["default"],
|
979
|
+
ThumbUp: _thumb_up_svg__WEBPACK_IMPORTED_MODULE_297__["default"],
|
980
|
+
Ticket: _ticket_svg__WEBPACK_IMPORTED_MODULE_298__["default"],
|
981
|
+
Tool: _tool_svg__WEBPACK_IMPORTED_MODULE_299__["default"],
|
982
|
+
Top1: _top1_svg__WEBPACK_IMPORTED_MODULE_300__["default"],
|
983
|
+
Transparency: _transparency_svg__WEBPACK_IMPORTED_MODULE_301__["default"],
|
984
|
+
Trash: _trash_svg__WEBPACK_IMPORTED_MODULE_302__["default"],
|
985
|
+
Unblock: _unblock_svg__WEBPACK_IMPORTED_MODULE_303__["default"],
|
986
|
+
UnblockingInfrastructure: _unblocking_infrastructure_svg__WEBPACK_IMPORTED_MODULE_304__["default"],
|
987
|
+
Unique: _unique_svg__WEBPACK_IMPORTED_MODULE_305__["default"],
|
988
|
+
Unpin: _unpin_svg__WEBPACK_IMPORTED_MODULE_306__["default"],
|
989
|
+
Upgrade: _upgrade_svg__WEBPACK_IMPORTED_MODULE_307__["default"],
|
990
|
+
UploadCloud: _upload_cloud_svg__WEBPACK_IMPORTED_MODULE_308__["default"],
|
991
|
+
Upload: _upload_svg__WEBPACK_IMPORTED_MODULE_309__["default"],
|
992
|
+
Url: _url_svg__WEBPACK_IMPORTED_MODULE_310__["default"],
|
993
|
+
VB: _vb_svg__WEBPACK_IMPORTED_MODULE_311__["default"],
|
994
|
+
Verify: _verify_svg__WEBPACK_IMPORTED_MODULE_312__["default"],
|
995
|
+
VerifySolid: _verify_solid_svg__WEBPACK_IMPORTED_MODULE_313__["default"],
|
996
|
+
VerifyWarning: _verify_warning_svg__WEBPACK_IMPORTED_MODULE_314__["default"],
|
997
|
+
Video: _video_svg__WEBPACK_IMPORTED_MODULE_315__["default"],
|
998
|
+
Visa: _visa_svg__WEBPACK_IMPORTED_MODULE_316__["default"],
|
999
|
+
Warning: _warning_svg__WEBPACK_IMPORTED_MODULE_317__["default"],
|
1000
|
+
WarningSolid: _warning_solid_svg__WEBPACK_IMPORTED_MODULE_318__["default"],
|
1001
|
+
WebScrapper: _web_scrapper_svg__WEBPACK_IMPORTED_MODULE_319__["default"],
|
1002
|
+
WebScrapperSmall: _web_scrapper_small_svg__WEBPACK_IMPORTED_MODULE_320__["default"],
|
1003
|
+
WebUnlock: _web_unlock_svg__WEBPACK_IMPORTED_MODULE_321__["default"],
|
1004
|
+
WebUnlock2: _web_unlock2_svg__WEBPACK_IMPORTED_MODULE_322__["default"],
|
1005
|
+
WebUnlockSmall: _web_unlock_small_svg__WEBPACK_IMPORTED_MODULE_323__["default"],
|
1006
|
+
Yandex: _yandex_svg__WEBPACK_IMPORTED_MODULE_324__["default"],
|
1007
|
+
Zapier: _zapier_svg__WEBPACK_IMPORTED_MODULE_325__["default"],
|
999
1008
|
});
|
1000
1009
|
|
1001
1010
|
|
@@ -11610,16 +11619,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
11610
11619
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11611
11620
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11612
11621
|
/* harmony export */ });
|
11613
|
-
/* harmony import */ var
|
11614
|
-
/* harmony import */ var
|
11615
|
-
/* harmony import */ var
|
11616
|
-
/* harmony import */ var
|
11617
|
-
/* harmony import */ var
|
11618
|
-
/* harmony import */ var
|
11619
|
-
/* harmony import */ var
|
11620
|
-
/* harmony import */ var
|
11621
|
-
|
11622
|
-
|
11622
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11623
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
11624
|
+
/* harmony import */ var _rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/ref */ "./node_modules/@rc-component/util/es/ref.js");
|
11625
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
11626
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
11627
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context */ "./node_modules/@rc-component/dialog/es/context.js");
|
11628
|
+
/* harmony import */ var _MemoChildren__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MemoChildren */ "./node_modules/@rc-component/dialog/es/Dialog/Content/MemoChildren.js");
|
11629
|
+
/* harmony import */ var _rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @rc-component/util/es/pickAttrs */ "./node_modules/@rc-component/util/es/pickAttrs.js");
|
11630
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11623
11631
|
|
11624
11632
|
|
11625
11633
|
|
@@ -11635,7 +11643,7 @@ const sentinelStyle = {
|
|
11635
11643
|
const entityStyle = {
|
11636
11644
|
outline: 'none'
|
11637
11645
|
};
|
11638
|
-
const Panel = /*#__PURE__*/
|
11646
|
+
const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardRef((props, ref) => {
|
11639
11647
|
const {
|
11640
11648
|
prefixCls,
|
11641
11649
|
className,
|
@@ -11664,11 +11672,11 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().forwardR
|
|
11664
11672
|
// ================================= Refs =================================
|
11665
11673
|
const {
|
11666
11674
|
panel: panelRef
|
11667
|
-
} =
|
11668
|
-
const mergedRef = (0,
|
11669
|
-
const sentinelStartRef = (0,
|
11670
|
-
const sentinelEndRef = (0,
|
11671
|
-
|
11675
|
+
} = react__WEBPACK_IMPORTED_MODULE_2___default().useContext(_context__WEBPACK_IMPORTED_MODULE_3__.RefContext);
|
11676
|
+
const mergedRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.useComposeRef)(holderRef, panelRef);
|
11677
|
+
const sentinelStartRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);
|
11678
|
+
const sentinelEndRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);
|
11679
|
+
react__WEBPACK_IMPORTED_MODULE_2___default().useImperativeHandle(ref, () => ({
|
11672
11680
|
focus: () => {
|
11673
11681
|
sentinelStartRef.current?.focus({
|
11674
11682
|
preventScroll: true
|
@@ -11699,40 +11707,40 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().forwardR
|
|
11699
11707
|
contentStyle.height = height;
|
11700
11708
|
}
|
11701
11709
|
// ================================ Render ================================
|
11702
|
-
const footerNode = footer ? /*#__PURE__*/
|
11703
|
-
className:
|
11710
|
+
const footerNode = footer ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11711
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-footer`, modalClassNames?.footer),
|
11704
11712
|
style: {
|
11705
11713
|
...modalStyles?.footer
|
11706
11714
|
}
|
11707
11715
|
}, footer) : null;
|
11708
|
-
const headerNode = title ? /*#__PURE__*/
|
11709
|
-
className:
|
11716
|
+
const headerNode = title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11717
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-header`, modalClassNames?.header),
|
11710
11718
|
style: {
|
11711
11719
|
...modalStyles?.header
|
11712
11720
|
}
|
11713
|
-
}, /*#__PURE__*/
|
11714
|
-
className:
|
11721
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11722
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-title`, modalClassNames?.title),
|
11715
11723
|
id: ariaId,
|
11716
11724
|
style: {
|
11717
11725
|
...modalStyles?.title
|
11718
11726
|
}
|
11719
11727
|
}, title)) : null;
|
11720
|
-
const closableObj = (0,
|
11728
|
+
const closableObj = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(() => {
|
11721
11729
|
if (typeof closable === 'object' && closable !== null) {
|
11722
11730
|
return closable;
|
11723
11731
|
}
|
11724
11732
|
if (closable) {
|
11725
11733
|
return {
|
11726
|
-
closeIcon: closeIcon ?? /*#__PURE__*/
|
11734
|
+
closeIcon: closeIcon ?? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("span", {
|
11727
11735
|
className: `${prefixCls}-close-x`
|
11728
11736
|
})
|
11729
11737
|
};
|
11730
11738
|
}
|
11731
11739
|
return {};
|
11732
11740
|
}, [closable, closeIcon, prefixCls]);
|
11733
|
-
const ariaProps = (0,
|
11741
|
+
const ariaProps = (0,_rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__["default"])(closableObj, true);
|
11734
11742
|
const closeBtnIsDisabled = typeof closable === 'object' && closable.disabled;
|
11735
|
-
const closerNode = closable ? /*#__PURE__*/
|
11743
|
+
const closerNode = closable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("button", _extends({
|
11736
11744
|
type: "button",
|
11737
11745
|
onClick: onClose,
|
11738
11746
|
"aria-label": "Close"
|
@@ -11740,17 +11748,17 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().forwardR
|
|
11740
11748
|
className: `${prefixCls}-close`,
|
11741
11749
|
disabled: closeBtnIsDisabled
|
11742
11750
|
}), closableObj.closeIcon) : null;
|
11743
|
-
const content = /*#__PURE__*/
|
11744
|
-
className:
|
11745
|
-
style: modalStyles?.
|
11746
|
-
}, closerNode, headerNode, /*#__PURE__*/
|
11747
|
-
className:
|
11751
|
+
const content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11752
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-container`, modalClassNames?.container),
|
11753
|
+
style: modalStyles?.container
|
11754
|
+
}, closerNode, headerNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", _extends({
|
11755
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-body`, modalClassNames?.body),
|
11748
11756
|
style: {
|
11749
11757
|
...bodyStyle,
|
11750
11758
|
...modalStyles?.body
|
11751
11759
|
}
|
11752
11760
|
}, bodyProps), children), footerNode);
|
11753
|
-
return /*#__PURE__*/
|
11761
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11754
11762
|
key: "dialog-element",
|
11755
11763
|
role: "dialog",
|
11756
11764
|
"aria-labelledby": title ? ariaId : null,
|
@@ -11760,16 +11768,16 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().forwardR
|
|
11760
11768
|
...style,
|
11761
11769
|
...contentStyle
|
11762
11770
|
},
|
11763
|
-
className:
|
11771
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, className),
|
11764
11772
|
onMouseDown: onMouseDown,
|
11765
11773
|
onMouseUp: onMouseUp
|
11766
|
-
}, /*#__PURE__*/
|
11774
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11767
11775
|
ref: sentinelStartRef,
|
11768
11776
|
tabIndex: 0,
|
11769
11777
|
style: entityStyle
|
11770
|
-
}, /*#__PURE__*/
|
11778
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_MemoChildren__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
11771
11779
|
shouldUpdate: visible || forceRender
|
11772
|
-
}, modalRender ? modalRender(content) : content)), /*#__PURE__*/
|
11780
|
+
}, modalRender ? modalRender(content) : content)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("div", {
|
11773
11781
|
tabIndex: 0,
|
11774
11782
|
ref: sentinelEndRef,
|
11775
11783
|
style: sentinelStyle
|
@@ -11793,22 +11801,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
11793
11801
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11794
11802
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11795
11803
|
/* harmony export */ });
|
11796
|
-
/* harmony import */ var
|
11797
|
-
/* harmony import */ var
|
11798
|
-
/* harmony import */ var
|
11799
|
-
/* harmony import */ var
|
11800
|
-
/* harmony import */ var
|
11801
|
-
/* harmony import */ var
|
11802
|
-
/* harmony import */ var
|
11803
|
-
|
11804
|
-
|
11804
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
11805
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
11806
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11807
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
11808
|
+
/* harmony import */ var _rc_component_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/motion */ "./node_modules/@rc-component/motion/es/index.js");
|
11809
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util */ "./node_modules/@rc-component/dialog/es/util.js");
|
11810
|
+
/* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Panel */ "./node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js");
|
11811
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11805
11812
|
|
11806
11813
|
|
11807
11814
|
|
11808
11815
|
|
11809
11816
|
|
11810
11817
|
|
11811
|
-
const Content = /*#__PURE__*/
|
11818
|
+
const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => {
|
11812
11819
|
const {
|
11813
11820
|
prefixCls,
|
11814
11821
|
title,
|
@@ -11816,40 +11823,48 @@ const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((prop
|
|
11816
11823
|
className,
|
11817
11824
|
visible,
|
11818
11825
|
forceRender,
|
11819
|
-
|
11826
|
+
destroyOnHidden,
|
11820
11827
|
motionName,
|
11821
11828
|
ariaId,
|
11822
11829
|
onVisibleChanged,
|
11823
11830
|
mousePosition
|
11824
11831
|
} = props;
|
11825
|
-
const dialogRef = (0,
|
11832
|
+
const dialogRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
11833
|
+
const panelRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
11834
|
+
|
11835
|
+
// ============================== Refs ==============================
|
11836
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle(ref, () => ({
|
11837
|
+
...panelRef.current,
|
11838
|
+
inMotion: dialogRef.current.inMotion,
|
11839
|
+
enableMotion: dialogRef.current.enableMotion
|
11840
|
+
}));
|
11826
11841
|
|
11827
11842
|
// ============================= Style ==============================
|
11828
|
-
const [transformOrigin, setTransformOrigin] =
|
11843
|
+
const [transformOrigin, setTransformOrigin] = react__WEBPACK_IMPORTED_MODULE_0__.useState();
|
11829
11844
|
const contentStyle = {};
|
11830
11845
|
if (transformOrigin) {
|
11831
11846
|
contentStyle.transformOrigin = transformOrigin;
|
11832
11847
|
}
|
11833
11848
|
function onPrepare() {
|
11834
|
-
const elementOffset = (0,
|
11849
|
+
const elementOffset = (0,_util__WEBPACK_IMPORTED_MODULE_3__.offset)(dialogRef.current.nativeElement);
|
11835
11850
|
setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px` : '');
|
11836
11851
|
}
|
11837
11852
|
|
11838
11853
|
// ============================= Render =============================
|
11839
|
-
return /*#__PURE__*/
|
11854
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_rc_component_motion__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
11840
11855
|
visible: visible,
|
11841
11856
|
onVisibleChanged: onVisibleChanged,
|
11842
11857
|
onAppearPrepare: onPrepare,
|
11843
11858
|
onEnterPrepare: onPrepare,
|
11844
11859
|
forceRender: forceRender,
|
11845
11860
|
motionName: motionName,
|
11846
|
-
removeOnLeave:
|
11861
|
+
removeOnLeave: destroyOnHidden,
|
11847
11862
|
ref: dialogRef
|
11848
11863
|
}, ({
|
11849
11864
|
className: motionClassName,
|
11850
11865
|
style: motionStyle
|
11851
|
-
}, motionRef) => /*#__PURE__*/
|
11852
|
-
ref:
|
11866
|
+
}, motionRef) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Panel__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({}, props, {
|
11867
|
+
ref: panelRef,
|
11853
11868
|
title: title,
|
11854
11869
|
ariaId: ariaId,
|
11855
11870
|
prefixCls: prefixCls,
|
@@ -11859,10 +11874,12 @@ const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((prop
|
|
11859
11874
|
...style,
|
11860
11875
|
...contentStyle
|
11861
11876
|
},
|
11862
|
-
className:
|
11877
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, motionClassName)
|
11863
11878
|
})));
|
11864
11879
|
});
|
11865
|
-
|
11880
|
+
if (true) {
|
11881
|
+
Content.displayName = 'Content';
|
11882
|
+
}
|
11866
11883
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Content);
|
11867
11884
|
|
11868
11885
|
/***/ }),
|
@@ -11878,13 +11895,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
11878
11895
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11879
11896
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11880
11897
|
/* harmony export */ });
|
11881
|
-
/* harmony import */ var
|
11882
|
-
/* harmony import */ var
|
11883
|
-
/* harmony import */ var
|
11884
|
-
/* harmony import */ var
|
11885
|
-
/* harmony import */ var
|
11886
|
-
|
11887
|
-
|
11898
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
11899
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
11900
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11901
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
11902
|
+
/* harmony import */ var _rc_component_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/motion */ "./node_modules/@rc-component/motion/es/index.js");
|
11903
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11888
11904
|
|
11889
11905
|
|
11890
11906
|
|
@@ -11897,7 +11913,7 @@ const Mask = props => {
|
|
11897
11913
|
motionName,
|
11898
11914
|
className
|
11899
11915
|
} = props;
|
11900
|
-
return /*#__PURE__*/
|
11916
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_rc_component_motion__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
11901
11917
|
key: "mask",
|
11902
11918
|
visible: visible,
|
11903
11919
|
motionName: motionName,
|
@@ -11905,13 +11921,13 @@ const Mask = props => {
|
|
11905
11921
|
}, ({
|
11906
11922
|
className: motionClassName,
|
11907
11923
|
style: motionStyle
|
11908
|
-
}, ref) => /*#__PURE__*/
|
11924
|
+
}, ref) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", _extends({
|
11909
11925
|
ref: ref,
|
11910
11926
|
style: {
|
11911
11927
|
...motionStyle,
|
11912
11928
|
...style
|
11913
11929
|
},
|
11914
|
-
className:
|
11930
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-mask`, motionClassName, className)
|
11915
11931
|
}, maskProps)));
|
11916
11932
|
};
|
11917
11933
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Mask);
|
@@ -11929,20 +11945,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
11929
11945
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11930
11946
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11931
11947
|
/* harmony export */ });
|
11932
|
-
/* harmony import */ var
|
11933
|
-
/* harmony import */ var
|
11934
|
-
/* harmony import */ var
|
11935
|
-
/* harmony import */ var
|
11936
|
-
/* harmony import */ var
|
11937
|
-
/* harmony import */ var
|
11938
|
-
/* harmony import */ var
|
11939
|
-
/* harmony import */ var
|
11940
|
-
/* harmony import */ var
|
11941
|
-
/* harmony import */ var
|
11942
|
-
/* harmony import */ var
|
11943
|
-
/* harmony import */ var
|
11944
|
-
|
11945
|
-
|
11948
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11949
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
11950
|
+
/* harmony import */ var _rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/Dom/contains */ "./node_modules/@rc-component/util/es/Dom/contains.js");
|
11951
|
+
/* harmony import */ var _rc_component_util_es_hooks_useId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/hooks/useId */ "./node_modules/@rc-component/util/es/hooks/useId.js");
|
11952
|
+
/* harmony import */ var _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @rc-component/util/es/KeyCode */ "./node_modules/@rc-component/util/es/KeyCode.js");
|
11953
|
+
/* harmony import */ var _rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @rc-component/util/es/pickAttrs */ "./node_modules/@rc-component/util/es/pickAttrs.js");
|
11954
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
11955
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
11956
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./node_modules/@rc-component/dialog/es/util.js");
|
11957
|
+
/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Content */ "./node_modules/@rc-component/dialog/es/Dialog/Content/index.js");
|
11958
|
+
/* harmony import */ var _Mask__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Mask */ "./node_modules/@rc-component/dialog/es/Dialog/Mask.js");
|
11959
|
+
/* harmony import */ var _rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @rc-component/util/es/warning */ "./node_modules/@rc-component/util/es/warning.js");
|
11960
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
11946
11961
|
|
11947
11962
|
|
11948
11963
|
|
@@ -11988,53 +12003,59 @@ const Dialog = props => {
|
|
11988
12003
|
if (true) {
|
11989
12004
|
['wrapStyle', 'bodyStyle', 'maskStyle'].forEach(prop => {
|
11990
12005
|
// (prop in props) && console.error(`Warning: ${prop} is deprecated, please use styles instead.`)
|
11991
|
-
(0,
|
12006
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_9__.warning)(!(prop in props), `${prop} is deprecated, please use styles instead.`);
|
11992
12007
|
});
|
11993
12008
|
if ('wrapClassName' in props) {
|
11994
|
-
(0,
|
12009
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_9__.warning)(false, `wrapClassName is deprecated, please use classNames instead.`);
|
11995
12010
|
}
|
11996
12011
|
}
|
11997
|
-
const lastOutSideActiveElementRef = (0,
|
11998
|
-
const wrapperRef = (0,
|
11999
|
-
const contentRef = (0,
|
12000
|
-
const [animatedVisible, setAnimatedVisible] =
|
12012
|
+
const lastOutSideActiveElementRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);
|
12013
|
+
const wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);
|
12014
|
+
const contentRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);
|
12015
|
+
const [animatedVisible, setAnimatedVisible] = react__WEBPACK_IMPORTED_MODULE_5__.useState(visible);
|
12001
12016
|
|
12002
12017
|
// ========================== Init ==========================
|
12003
|
-
const ariaId = (0,
|
12018
|
+
const ariaId = (0,_rc_component_util_es_hooks_useId__WEBPACK_IMPORTED_MODULE_2__["default"])();
|
12004
12019
|
function saveLastOutSideActiveElementRef() {
|
12005
|
-
if (!(0,
|
12020
|
+
if (!(0,_rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(wrapperRef.current, document.activeElement)) {
|
12006
12021
|
lastOutSideActiveElementRef.current = document.activeElement;
|
12007
12022
|
}
|
12008
12023
|
}
|
12009
12024
|
function focusDialogContent() {
|
12010
|
-
if (!(0,
|
12025
|
+
if (!(0,_rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(wrapperRef.current, document.activeElement)) {
|
12011
12026
|
contentRef.current?.focus();
|
12012
12027
|
}
|
12013
12028
|
}
|
12014
12029
|
|
12015
12030
|
// ========================= Events =========================
|
12031
|
+
// Close action will trigger by:
|
12032
|
+
// 1. When hide motion end
|
12033
|
+
// 2. Controlled `open` to `false` immediately after set to `true` which will not trigger motion
|
12034
|
+
function doClose() {
|
12035
|
+
// Clean up scroll bar & focus back
|
12036
|
+
setAnimatedVisible(false);
|
12037
|
+
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
12038
|
+
try {
|
12039
|
+
lastOutSideActiveElementRef.current.focus({
|
12040
|
+
preventScroll: true
|
12041
|
+
});
|
12042
|
+
} catch (e) {
|
12043
|
+
// Do nothing
|
12044
|
+
}
|
12045
|
+
lastOutSideActiveElementRef.current = null;
|
12046
|
+
}
|
12047
|
+
|
12048
|
+
// Trigger afterClose only when change visible from true to false
|
12049
|
+
if (animatedVisible) {
|
12050
|
+
afterClose?.();
|
12051
|
+
}
|
12052
|
+
}
|
12016
12053
|
function onDialogVisibleChanged(newVisible) {
|
12017
12054
|
// Try to focus
|
12018
12055
|
if (newVisible) {
|
12019
12056
|
focusDialogContent();
|
12020
12057
|
} else {
|
12021
|
-
|
12022
|
-
setAnimatedVisible(false);
|
12023
|
-
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
12024
|
-
try {
|
12025
|
-
lastOutSideActiveElementRef.current.focus({
|
12026
|
-
preventScroll: true
|
12027
|
-
});
|
12028
|
-
} catch (e) {
|
12029
|
-
// Do nothing
|
12030
|
-
}
|
12031
|
-
lastOutSideActiveElementRef.current = null;
|
12032
|
-
}
|
12033
|
-
|
12034
|
-
// Trigger afterClose only when change visible from true to false
|
12035
|
-
if (animatedVisible) {
|
12036
|
-
afterClose?.();
|
12037
|
-
}
|
12058
|
+
doClose();
|
12038
12059
|
}
|
12039
12060
|
afterOpenChange?.(newVisible);
|
12040
12061
|
}
|
@@ -12043,8 +12064,8 @@ const Dialog = props => {
|
|
12043
12064
|
}
|
12044
12065
|
|
12045
12066
|
// >>> Content
|
12046
|
-
const contentClickRef = (0,
|
12047
|
-
const contentTimeoutRef = (0,
|
12067
|
+
const contentClickRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(false);
|
12068
|
+
const contentTimeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);
|
12048
12069
|
|
12049
12070
|
// We need record content click incase content popup out of dialog
|
12050
12071
|
const onContentMouseDown = () => {
|
@@ -12070,28 +12091,30 @@ const Dialog = props => {
|
|
12070
12091
|
};
|
12071
12092
|
}
|
12072
12093
|
function onWrapperKeyDown(e) {
|
12073
|
-
if (keyboard && e.keyCode ===
|
12094
|
+
if (keyboard && e.keyCode === _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ESC) {
|
12074
12095
|
e.stopPropagation();
|
12075
12096
|
onInternalClose(e);
|
12076
12097
|
return;
|
12077
12098
|
}
|
12078
12099
|
|
12079
12100
|
// keep focus inside dialog
|
12080
|
-
if (visible && e.keyCode ===
|
12101
|
+
if (visible && e.keyCode === _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].TAB) {
|
12081
12102
|
contentRef.current.changeActive(!e.shiftKey);
|
12082
12103
|
}
|
12083
12104
|
}
|
12084
12105
|
|
12085
12106
|
// ========================= Effect =========================
|
12086
|
-
(0,
|
12107
|
+
(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
|
12087
12108
|
if (visible) {
|
12088
12109
|
setAnimatedVisible(true);
|
12089
12110
|
saveLastOutSideActiveElementRef();
|
12111
|
+
} else if (animatedVisible && contentRef.current.enableMotion() && !contentRef.current.inMotion()) {
|
12112
|
+
doClose();
|
12090
12113
|
}
|
12091
12114
|
}, [visible]);
|
12092
12115
|
|
12093
12116
|
// Remove direct should also check the scroll bar update
|
12094
|
-
(0,
|
12117
|
+
(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => () => {
|
12095
12118
|
clearTimeout(contentTimeoutRef.current);
|
12096
12119
|
}, []);
|
12097
12120
|
const mergedStyle = {
|
@@ -12102,15 +12125,15 @@ const Dialog = props => {
|
|
12102
12125
|
};
|
12103
12126
|
|
12104
12127
|
// ========================= Render =========================
|
12105
|
-
return /*#__PURE__*/
|
12106
|
-
className:
|
12128
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement("div", _extends({
|
12129
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-root`, rootClassName),
|
12107
12130
|
style: rootStyle
|
12108
|
-
}, (0,
|
12131
|
+
}, (0,_rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(props, {
|
12109
12132
|
data: true
|
12110
|
-
})), /*#__PURE__*/
|
12133
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Mask__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
12111
12134
|
prefixCls: prefixCls,
|
12112
12135
|
visible: mask && visible,
|
12113
|
-
motionName: (0,
|
12136
|
+
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_6__.getMotionName)(prefixCls, maskTransitionName, maskAnimation),
|
12114
12137
|
style: {
|
12115
12138
|
zIndex,
|
12116
12139
|
...maskStyle,
|
@@ -12118,14 +12141,14 @@ const Dialog = props => {
|
|
12118
12141
|
},
|
12119
12142
|
maskProps: maskProps,
|
12120
12143
|
className: modalClassNames?.mask
|
12121
|
-
}), /*#__PURE__*/
|
12144
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement("div", _extends({
|
12122
12145
|
tabIndex: -1,
|
12123
12146
|
onKeyDown: onWrapperKeyDown,
|
12124
|
-
className:
|
12147
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
|
12125
12148
|
ref: wrapperRef,
|
12126
12149
|
onClick: onWrapperClick,
|
12127
12150
|
style: mergedStyle
|
12128
|
-
}, wrapProps), /*#__PURE__*/
|
12151
|
+
}, wrapProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__.createElement(_Content__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({}, props, {
|
12129
12152
|
onMouseDown: onContentMouseDown,
|
12130
12153
|
onMouseUp: onContentMouseUp,
|
12131
12154
|
ref: contentRef,
|
@@ -12135,7 +12158,7 @@ const Dialog = props => {
|
|
12135
12158
|
visible: visible && animatedVisible,
|
12136
12159
|
onClose: onInternalClose,
|
12137
12160
|
onVisibleChanged: onDialogVisibleChanged,
|
12138
|
-
motionName: (0,
|
12161
|
+
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_6__.getMotionName)(prefixCls, transitionName, animation)
|
12139
12162
|
}))));
|
12140
12163
|
};
|
12141
12164
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);
|
@@ -12153,13 +12176,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
12153
12176
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12154
12177
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12155
12178
|
/* harmony export */ });
|
12156
|
-
/* harmony import */ var
|
12157
|
-
/* harmony import */ var
|
12158
|
-
/* harmony import */ var
|
12159
|
-
/* harmony import */ var
|
12160
|
-
/* harmony import */ var
|
12161
|
-
|
12162
|
-
|
12179
|
+
/* harmony import */ var _rc_component_portal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/portal */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/index.js");
|
12180
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
12181
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
12182
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/dialog/es/context.js");
|
12183
|
+
/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Dialog */ "./node_modules/@rc-component/dialog/es/Dialog/index.js");
|
12184
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
12163
12185
|
|
12164
12186
|
|
12165
12187
|
|
@@ -12178,40 +12200,48 @@ const DialogWrap = props => {
|
|
12178
12200
|
visible,
|
12179
12201
|
getContainer,
|
12180
12202
|
forceRender,
|
12181
|
-
|
12203
|
+
destroyOnHidden = false,
|
12182
12204
|
afterClose,
|
12205
|
+
closable,
|
12183
12206
|
panelRef
|
12184
12207
|
} = props;
|
12185
|
-
const [animatedVisible, setAnimatedVisible] =
|
12186
|
-
const refContext =
|
12208
|
+
const [animatedVisible, setAnimatedVisible] = react__WEBPACK_IMPORTED_MODULE_1__.useState(visible);
|
12209
|
+
const refContext = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({
|
12187
12210
|
panel: panelRef
|
12188
12211
|
}), [panelRef]);
|
12189
|
-
|
12212
|
+
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => {
|
12190
12213
|
if (visible) {
|
12191
12214
|
setAnimatedVisible(true);
|
12192
12215
|
}
|
12193
12216
|
}, [visible]);
|
12194
12217
|
|
12195
12218
|
// Destroy on close will remove wrapped div
|
12196
|
-
if (!forceRender &&
|
12219
|
+
if (!forceRender && destroyOnHidden && !animatedVisible) {
|
12197
12220
|
return null;
|
12198
12221
|
}
|
12199
|
-
return /*#__PURE__*/
|
12222
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_context__WEBPACK_IMPORTED_MODULE_2__.RefContext.Provider, {
|
12200
12223
|
value: refContext
|
12201
|
-
}, /*#__PURE__*/
|
12224
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_rc_component_portal__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
12202
12225
|
open: visible || forceRender || animatedVisible,
|
12203
12226
|
autoDestroy: false,
|
12204
12227
|
getContainer: getContainer,
|
12205
12228
|
autoLock: visible || animatedVisible
|
12206
|
-
}, /*#__PURE__*/
|
12207
|
-
|
12229
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Dialog__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({}, props, {
|
12230
|
+
destroyOnHidden: destroyOnHidden,
|
12208
12231
|
afterClose: () => {
|
12232
|
+
const closableObj = closable && typeof closable === 'object' ? closable : {};
|
12233
|
+
const {
|
12234
|
+
afterClose: closableAfterClose
|
12235
|
+
} = closableObj || {};
|
12236
|
+
closableAfterClose?.();
|
12209
12237
|
afterClose?.();
|
12210
12238
|
setAnimatedVisible(false);
|
12211
12239
|
}
|
12212
12240
|
}))));
|
12213
12241
|
};
|
12214
|
-
|
12242
|
+
if (true) {
|
12243
|
+
DialogWrap.displayName = 'Dialog';
|
12244
|
+
}
|
12215
12245
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DialogWrap);
|
12216
12246
|
|
12217
12247
|
/***/ }),
|
@@ -12304,6 +12334,1383 @@ function offset(el) {
|
|
12304
12334
|
|
12305
12335
|
/***/ }),
|
12306
12336
|
|
12337
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js":
|
12338
|
+
/*!*******************************************************************************************!*\
|
12339
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js ***!
|
12340
|
+
\*******************************************************************************************/
|
12341
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12342
|
+
|
12343
|
+
"use strict";
|
12344
|
+
__webpack_require__.r(__webpack_exports__);
|
12345
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12346
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12347
|
+
/* harmony export */ });
|
12348
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12349
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12350
|
+
|
12351
|
+
const OrderContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
|
12352
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OrderContext);
|
12353
|
+
|
12354
|
+
/***/ }),
|
12355
|
+
|
12356
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Portal.js":
|
12357
|
+
/*!******************************************************************************************!*\
|
12358
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Portal.js ***!
|
12359
|
+
\******************************************************************************************/
|
12360
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12361
|
+
|
12362
|
+
"use strict";
|
12363
|
+
__webpack_require__.r(__webpack_exports__);
|
12364
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12365
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12366
|
+
/* harmony export */ });
|
12367
|
+
/* harmony import */ var _rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util/es/Dom/canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
12368
|
+
/* harmony import */ var _rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/ref */ "./node_modules/@rc-component/util/es/ref.js");
|
12369
|
+
/* harmony import */ var _rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/warning */ "./node_modules/@rc-component/util/es/warning.js");
|
12370
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
12371
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
12372
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-dom */ "react-dom");
|
12373
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_4__);
|
12374
|
+
/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Context */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js");
|
12375
|
+
/* harmony import */ var _mock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mock */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js");
|
12376
|
+
/* harmony import */ var _useDom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useDom */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useDom.js");
|
12377
|
+
/* harmony import */ var _useScrollLocker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useScrollLocker */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useScrollLocker.js");
|
12378
|
+
|
12379
|
+
|
12380
|
+
|
12381
|
+
|
12382
|
+
|
12383
|
+
|
12384
|
+
|
12385
|
+
|
12386
|
+
|
12387
|
+
const getPortalContainer = getContainer => {
|
12388
|
+
if (getContainer === false) {
|
12389
|
+
return false;
|
12390
|
+
}
|
12391
|
+
if (!(0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() || !getContainer) {
|
12392
|
+
return null;
|
12393
|
+
}
|
12394
|
+
if (typeof getContainer === 'string') {
|
12395
|
+
return document.querySelector(getContainer);
|
12396
|
+
}
|
12397
|
+
if (typeof getContainer === 'function') {
|
12398
|
+
return getContainer();
|
12399
|
+
}
|
12400
|
+
return getContainer;
|
12401
|
+
};
|
12402
|
+
const Portal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((props, ref) => {
|
12403
|
+
const {
|
12404
|
+
open,
|
12405
|
+
autoLock,
|
12406
|
+
getContainer,
|
12407
|
+
debug,
|
12408
|
+
autoDestroy = true,
|
12409
|
+
children
|
12410
|
+
} = props;
|
12411
|
+
const [shouldRender, setShouldRender] = react__WEBPACK_IMPORTED_MODULE_3__.useState(open);
|
12412
|
+
const mergedRender = shouldRender || open;
|
12413
|
+
|
12414
|
+
// ========================= Warning =========================
|
12415
|
+
if (true) {
|
12416
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() || !open, `Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR.`);
|
12417
|
+
}
|
12418
|
+
|
12419
|
+
// ====================== Should Render ======================
|
12420
|
+
react__WEBPACK_IMPORTED_MODULE_3__.useEffect(() => {
|
12421
|
+
if (autoDestroy || open) {
|
12422
|
+
setShouldRender(open);
|
12423
|
+
}
|
12424
|
+
}, [open, autoDestroy]);
|
12425
|
+
|
12426
|
+
// ======================== Container ========================
|
12427
|
+
const [innerContainer, setInnerContainer] = react__WEBPACK_IMPORTED_MODULE_3__.useState(() => getPortalContainer(getContainer));
|
12428
|
+
react__WEBPACK_IMPORTED_MODULE_3__.useEffect(() => {
|
12429
|
+
const customizeContainer = getPortalContainer(getContainer);
|
12430
|
+
|
12431
|
+
// Tell component that we check this in effect which is safe to be `null`
|
12432
|
+
setInnerContainer(customizeContainer ?? null);
|
12433
|
+
});
|
12434
|
+
const [defaultContainer, queueCreate] = (0,_useDom__WEBPACK_IMPORTED_MODULE_7__["default"])(mergedRender && !innerContainer, debug);
|
12435
|
+
const mergedContainer = innerContainer ?? defaultContainer;
|
12436
|
+
|
12437
|
+
// ========================= Locker ==========================
|
12438
|
+
(0,_useScrollLocker__WEBPACK_IMPORTED_MODULE_8__["default"])(autoLock && open && (0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() && (mergedContainer === defaultContainer || mergedContainer === document.body));
|
12439
|
+
|
12440
|
+
// =========================== Ref ===========================
|
12441
|
+
let childRef = null;
|
12442
|
+
if (children && (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.supportRef)(children) && ref) {
|
12443
|
+
childRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.getNodeRef)(children);
|
12444
|
+
}
|
12445
|
+
const mergedRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.useComposeRef)(childRef, ref);
|
12446
|
+
|
12447
|
+
// ========================= Render ==========================
|
12448
|
+
// Do not render when nothing need render
|
12449
|
+
// When innerContainer is `undefined`, it may not ready since user use ref in the same render
|
12450
|
+
if (!mergedRender || !(0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() || innerContainer === undefined) {
|
12451
|
+
return null;
|
12452
|
+
}
|
12453
|
+
|
12454
|
+
// Render inline
|
12455
|
+
const renderInline = mergedContainer === false || (0,_mock__WEBPACK_IMPORTED_MODULE_6__.inlineMock)();
|
12456
|
+
let reffedChildren = children;
|
12457
|
+
if (ref) {
|
12458
|
+
reffedChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(children, {
|
12459
|
+
ref: mergedRef
|
12460
|
+
});
|
12461
|
+
}
|
12462
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Context__WEBPACK_IMPORTED_MODULE_5__["default"].Provider, {
|
12463
|
+
value: queueCreate
|
12464
|
+
}, renderInline ? reffedChildren : /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_4__.createPortal)(reffedChildren, mergedContainer));
|
12465
|
+
});
|
12466
|
+
if (true) {
|
12467
|
+
Portal.displayName = 'Portal';
|
12468
|
+
}
|
12469
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Portal);
|
12470
|
+
|
12471
|
+
/***/ }),
|
12472
|
+
|
12473
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/index.js":
|
12474
|
+
/*!*****************************************************************************************!*\
|
12475
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/index.js ***!
|
12476
|
+
\*****************************************************************************************/
|
12477
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12478
|
+
|
12479
|
+
"use strict";
|
12480
|
+
__webpack_require__.r(__webpack_exports__);
|
12481
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12482
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
12483
|
+
/* harmony export */ inlineMock: () => (/* reexport safe */ _mock__WEBPACK_IMPORTED_MODULE_1__.inlineMock)
|
12484
|
+
/* harmony export */ });
|
12485
|
+
/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Portal */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Portal.js");
|
12486
|
+
/* harmony import */ var _mock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mock */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js");
|
12487
|
+
|
12488
|
+
|
12489
|
+
|
12490
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_Portal__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
12491
|
+
|
12492
|
+
/***/ }),
|
12493
|
+
|
12494
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js":
|
12495
|
+
/*!****************************************************************************************!*\
|
12496
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js ***!
|
12497
|
+
\****************************************************************************************/
|
12498
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12499
|
+
|
12500
|
+
"use strict";
|
12501
|
+
__webpack_require__.r(__webpack_exports__);
|
12502
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12503
|
+
/* harmony export */ inline: () => (/* binding */ inline),
|
12504
|
+
/* harmony export */ inlineMock: () => (/* binding */ inlineMock)
|
12505
|
+
/* harmony export */ });
|
12506
|
+
let inline = false;
|
12507
|
+
function inlineMock(nextInline) {
|
12508
|
+
if (typeof nextInline === 'boolean') {
|
12509
|
+
inline = nextInline;
|
12510
|
+
}
|
12511
|
+
return inline;
|
12512
|
+
}
|
12513
|
+
|
12514
|
+
/***/ }),
|
12515
|
+
|
12516
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useDom.js":
|
12517
|
+
/*!******************************************************************************************!*\
|
12518
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useDom.js ***!
|
12519
|
+
\******************************************************************************************/
|
12520
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12521
|
+
|
12522
|
+
"use strict";
|
12523
|
+
__webpack_require__.r(__webpack_exports__);
|
12524
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12525
|
+
/* harmony export */ "default": () => (/* binding */ useDom)
|
12526
|
+
/* harmony export */ });
|
12527
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12528
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12529
|
+
/* harmony import */ var _rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/hooks/useLayoutEffect */ "./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js");
|
12530
|
+
/* harmony import */ var _rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/Dom/canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
12531
|
+
/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Context */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js");
|
12532
|
+
|
12533
|
+
|
12534
|
+
|
12535
|
+
|
12536
|
+
const EMPTY_LIST = [];
|
12537
|
+
|
12538
|
+
/**
|
12539
|
+
* Will add `div` to document. Nest call will keep order
|
12540
|
+
* @param render Render DOM in document
|
12541
|
+
*/
|
12542
|
+
function useDom(render, debug) {
|
12543
|
+
const [ele] = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => {
|
12544
|
+
if (!(0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__["default"])()) {
|
12545
|
+
return null;
|
12546
|
+
}
|
12547
|
+
const defaultEle = document.createElement('div');
|
12548
|
+
if ( true && debug) {
|
12549
|
+
defaultEle.setAttribute('data-debug', debug);
|
12550
|
+
}
|
12551
|
+
return defaultEle;
|
12552
|
+
});
|
12553
|
+
|
12554
|
+
// ========================== Order ==========================
|
12555
|
+
const appendedRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);
|
12556
|
+
const queueCreate = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_Context__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
12557
|
+
const [queue, setQueue] = react__WEBPACK_IMPORTED_MODULE_0__.useState(EMPTY_LIST);
|
12558
|
+
const mergedQueueCreate = queueCreate || (appendedRef.current ? undefined : appendFn => {
|
12559
|
+
setQueue(origin => {
|
12560
|
+
const newQueue = [appendFn, ...origin];
|
12561
|
+
return newQueue;
|
12562
|
+
});
|
12563
|
+
});
|
12564
|
+
|
12565
|
+
// =========================== DOM ===========================
|
12566
|
+
function append() {
|
12567
|
+
if (!ele.parentElement) {
|
12568
|
+
document.body.appendChild(ele);
|
12569
|
+
}
|
12570
|
+
appendedRef.current = true;
|
12571
|
+
}
|
12572
|
+
function cleanup() {
|
12573
|
+
ele.parentElement?.removeChild(ele);
|
12574
|
+
appendedRef.current = false;
|
12575
|
+
}
|
12576
|
+
(0,_rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__["default"])(() => {
|
12577
|
+
if (render) {
|
12578
|
+
if (queueCreate) {
|
12579
|
+
queueCreate(append);
|
12580
|
+
} else {
|
12581
|
+
append();
|
12582
|
+
}
|
12583
|
+
} else {
|
12584
|
+
cleanup();
|
12585
|
+
}
|
12586
|
+
return cleanup;
|
12587
|
+
}, [render]);
|
12588
|
+
(0,_rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__["default"])(() => {
|
12589
|
+
if (queue.length) {
|
12590
|
+
queue.forEach(appendFn => appendFn());
|
12591
|
+
setQueue(EMPTY_LIST);
|
12592
|
+
}
|
12593
|
+
}, [queue]);
|
12594
|
+
return [ele, mergedQueueCreate];
|
12595
|
+
}
|
12596
|
+
|
12597
|
+
/***/ }),
|
12598
|
+
|
12599
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useScrollLocker.js":
|
12600
|
+
/*!***************************************************************************************************!*\
|
12601
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useScrollLocker.js ***!
|
12602
|
+
\***************************************************************************************************/
|
12603
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12604
|
+
|
12605
|
+
"use strict";
|
12606
|
+
__webpack_require__.r(__webpack_exports__);
|
12607
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12608
|
+
/* harmony export */ "default": () => (/* binding */ useScrollLocker)
|
12609
|
+
/* harmony export */ });
|
12610
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12611
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12612
|
+
/* harmony import */ var _rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/Dom/dynamicCSS */ "./node_modules/@rc-component/util/es/Dom/dynamicCSS.js");
|
12613
|
+
/* harmony import */ var _rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/hooks/useLayoutEffect */ "./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js");
|
12614
|
+
/* harmony import */ var _rc_component_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @rc-component/util/es/getScrollBarSize */ "./node_modules/@rc-component/util/es/getScrollBarSize.js");
|
12615
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/util.js");
|
12616
|
+
|
12617
|
+
|
12618
|
+
|
12619
|
+
|
12620
|
+
|
12621
|
+
const UNIQUE_ID = `rc-util-locker-${Date.now()}`;
|
12622
|
+
let uuid = 0;
|
12623
|
+
function useScrollLocker(lock) {
|
12624
|
+
const mergedLock = !!lock;
|
12625
|
+
const [id] = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => {
|
12626
|
+
uuid += 1;
|
12627
|
+
return `${UNIQUE_ID}_${uuid}`;
|
12628
|
+
});
|
12629
|
+
(0,_rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__["default"])(() => {
|
12630
|
+
if (mergedLock) {
|
12631
|
+
const scrollbarSize = (0,_rc_component_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_3__.getTargetScrollBarSize)(document.body).width;
|
12632
|
+
const isOverflow = (0,_util__WEBPACK_IMPORTED_MODULE_4__.isBodyOverflowing)();
|
12633
|
+
(0,_rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__.updateCSS)(`
|
12634
|
+
html body {
|
12635
|
+
overflow-y: hidden;
|
12636
|
+
${isOverflow ? `width: calc(100% - ${scrollbarSize}px);` : ''}
|
12637
|
+
}`, id);
|
12638
|
+
} else {
|
12639
|
+
(0,_rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__.removeCSS)(id);
|
12640
|
+
}
|
12641
|
+
return () => {
|
12642
|
+
(0,_rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__.removeCSS)(id);
|
12643
|
+
};
|
12644
|
+
}, [mergedLock, id]);
|
12645
|
+
}
|
12646
|
+
|
12647
|
+
/***/ }),
|
12648
|
+
|
12649
|
+
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/util.js":
|
12650
|
+
/*!****************************************************************************************!*\
|
12651
|
+
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/util.js ***!
|
12652
|
+
\****************************************************************************************/
|
12653
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12654
|
+
|
12655
|
+
"use strict";
|
12656
|
+
__webpack_require__.r(__webpack_exports__);
|
12657
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12658
|
+
/* harmony export */ isBodyOverflowing: () => (/* binding */ isBodyOverflowing)
|
12659
|
+
/* harmony export */ });
|
12660
|
+
/**
|
12661
|
+
* Test usage export. Do not use in your production
|
12662
|
+
*/
|
12663
|
+
function isBodyOverflowing() {
|
12664
|
+
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
|
12665
|
+
}
|
12666
|
+
|
12667
|
+
/***/ }),
|
12668
|
+
|
12669
|
+
/***/ "./node_modules/@rc-component/motion/es/CSSMotion.js":
|
12670
|
+
/*!***********************************************************!*\
|
12671
|
+
!*** ./node_modules/@rc-component/motion/es/CSSMotion.js ***!
|
12672
|
+
\***********************************************************/
|
12673
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12674
|
+
|
12675
|
+
"use strict";
|
12676
|
+
__webpack_require__.r(__webpack_exports__);
|
12677
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12678
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
12679
|
+
/* harmony export */ genCSSMotion: () => (/* binding */ genCSSMotion)
|
12680
|
+
/* harmony export */ });
|
12681
|
+
/* harmony import */ var _rc_component_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util/es/Dom/findDOMNode */ "./node_modules/@rc-component/util/es/Dom/findDOMNode.js");
|
12682
|
+
/* harmony import */ var _rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/ref */ "./node_modules/@rc-component/util/es/ref.js");
|
12683
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
12684
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
12685
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
12686
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
12687
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/motion/es/context.js");
|
12688
|
+
/* harmony import */ var _hooks_useStatus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useStatus */ "./node_modules/@rc-component/motion/es/hooks/useStatus.js");
|
12689
|
+
/* harmony import */ var _hooks_useStepQueue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hooks/useStepQueue */ "./node_modules/@rc-component/motion/es/hooks/useStepQueue.js");
|
12690
|
+
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./node_modules/@rc-component/motion/es/interface.js");
|
12691
|
+
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util/motion */ "./node_modules/@rc-component/motion/es/util/motion.js");
|
12692
|
+
/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp, react/prop-types */
|
12693
|
+
|
12694
|
+
|
12695
|
+
|
12696
|
+
|
12697
|
+
|
12698
|
+
|
12699
|
+
|
12700
|
+
|
12701
|
+
|
12702
|
+
|
12703
|
+
/**
|
12704
|
+
* `transitionSupport` is used for none transition test case.
|
12705
|
+
* Default we use browser transition event support check.
|
12706
|
+
*/
|
12707
|
+
function genCSSMotion(config) {
|
12708
|
+
let transitionSupport = config;
|
12709
|
+
if (typeof config === 'object') {
|
12710
|
+
({
|
12711
|
+
transitionSupport
|
12712
|
+
} = config);
|
12713
|
+
}
|
12714
|
+
function isSupportTransition(props, contextMotion) {
|
12715
|
+
return !!(props.motionName && transitionSupport && contextMotion !== false);
|
12716
|
+
}
|
12717
|
+
const CSSMotion = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((props, ref) => {
|
12718
|
+
const {
|
12719
|
+
// Default config
|
12720
|
+
visible = true,
|
12721
|
+
removeOnLeave = true,
|
12722
|
+
forceRender,
|
12723
|
+
children,
|
12724
|
+
motionName,
|
12725
|
+
leavedClassName,
|
12726
|
+
eventProps
|
12727
|
+
} = props;
|
12728
|
+
const {
|
12729
|
+
motion: contextMotion
|
12730
|
+
} = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__.Context);
|
12731
|
+
const supportMotion = isSupportTransition(props, contextMotion);
|
12732
|
+
|
12733
|
+
// Ref to the react node, it may be a HTMLElement
|
12734
|
+
const nodeRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
12735
|
+
function getDomElement() {
|
12736
|
+
return (0,_rc_component_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_0__.getDOM)(nodeRef.current);
|
12737
|
+
}
|
12738
|
+
const [getStatus, statusStep, statusStyle, mergedVisible] = (0,_hooks_useStatus__WEBPACK_IMPORTED_MODULE_5__["default"])(supportMotion, visible, getDomElement, props);
|
12739
|
+
const status = getStatus();
|
12740
|
+
|
12741
|
+
// Record whether content has rendered
|
12742
|
+
// Will return null for un-rendered even when `removeOnLeave={false}`
|
12743
|
+
const renderedRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(mergedVisible);
|
12744
|
+
if (mergedVisible) {
|
12745
|
+
renderedRef.current = true;
|
12746
|
+
}
|
12747
|
+
|
12748
|
+
// ====================== Refs ======================
|
12749
|
+
const refObj = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
|
12750
|
+
const obj = {};
|
12751
|
+
Object.defineProperties(obj, {
|
12752
|
+
nativeElement: {
|
12753
|
+
enumerable: true,
|
12754
|
+
get: getDomElement
|
12755
|
+
},
|
12756
|
+
inMotion: {
|
12757
|
+
enumerable: true,
|
12758
|
+
get: () => () => getStatus() !== _interface__WEBPACK_IMPORTED_MODULE_7__.STATUS_NONE
|
12759
|
+
},
|
12760
|
+
enableMotion: {
|
12761
|
+
enumerable: true,
|
12762
|
+
get: () => () => supportMotion
|
12763
|
+
}
|
12764
|
+
});
|
12765
|
+
return obj;
|
12766
|
+
}, []);
|
12767
|
+
|
12768
|
+
// We lock `deps` here since function return object
|
12769
|
+
// will repeat trigger ref from `refConfig` -> `null` -> `refConfig`
|
12770
|
+
react__WEBPACK_IMPORTED_MODULE_3__.useImperativeHandle(ref, () => refObj, []);
|
12771
|
+
|
12772
|
+
// ===================== Render =====================
|
12773
|
+
let motionChildren;
|
12774
|
+
const mergedProps = {
|
12775
|
+
...eventProps,
|
12776
|
+
visible
|
12777
|
+
};
|
12778
|
+
if (!children) {
|
12779
|
+
// No children
|
12780
|
+
motionChildren = null;
|
12781
|
+
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_7__.STATUS_NONE) {
|
12782
|
+
// Stable children
|
12783
|
+
if (mergedVisible) {
|
12784
|
+
motionChildren = children({
|
12785
|
+
...mergedProps
|
12786
|
+
}, nodeRef);
|
12787
|
+
} else if (!removeOnLeave && renderedRef.current && leavedClassName) {
|
12788
|
+
motionChildren = children({
|
12789
|
+
...mergedProps,
|
12790
|
+
className: leavedClassName
|
12791
|
+
}, nodeRef);
|
12792
|
+
} else if (forceRender || !removeOnLeave && !leavedClassName) {
|
12793
|
+
motionChildren = children({
|
12794
|
+
...mergedProps,
|
12795
|
+
style: {
|
12796
|
+
display: 'none'
|
12797
|
+
}
|
12798
|
+
}, nodeRef);
|
12799
|
+
} else {
|
12800
|
+
motionChildren = null;
|
12801
|
+
}
|
12802
|
+
} else {
|
12803
|
+
// In motion
|
12804
|
+
let statusSuffix;
|
12805
|
+
if (statusStep === _interface__WEBPACK_IMPORTED_MODULE_7__.STEP_PREPARE) {
|
12806
|
+
statusSuffix = 'prepare';
|
12807
|
+
} else if ((0,_hooks_useStepQueue__WEBPACK_IMPORTED_MODULE_6__.isActive)(statusStep)) {
|
12808
|
+
statusSuffix = 'active';
|
12809
|
+
} else if (statusStep === _interface__WEBPACK_IMPORTED_MODULE_7__.STEP_START) {
|
12810
|
+
statusSuffix = 'start';
|
12811
|
+
}
|
12812
|
+
const motionCls = (0,_util_motion__WEBPACK_IMPORTED_MODULE_8__.getTransitionName)(motionName, `${status}-${statusSuffix}`);
|
12813
|
+
motionChildren = children({
|
12814
|
+
...mergedProps,
|
12815
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()((0,_util_motion__WEBPACK_IMPORTED_MODULE_8__.getTransitionName)(motionName, status), {
|
12816
|
+
[motionCls]: motionCls && statusSuffix,
|
12817
|
+
[motionName]: typeof motionName === 'string'
|
12818
|
+
}),
|
12819
|
+
style: statusStyle
|
12820
|
+
}, nodeRef);
|
12821
|
+
}
|
12822
|
+
|
12823
|
+
// Auto inject ref if child node not have `ref` props
|
12824
|
+
if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.isValidElement(motionChildren) && (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.supportRef)(motionChildren)) {
|
12825
|
+
const originNodeRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.getNodeRef)(motionChildren);
|
12826
|
+
if (!originNodeRef) {
|
12827
|
+
motionChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(motionChildren, {
|
12828
|
+
ref: nodeRef
|
12829
|
+
});
|
12830
|
+
}
|
12831
|
+
}
|
12832
|
+
return motionChildren;
|
12833
|
+
});
|
12834
|
+
CSSMotion.displayName = 'CSSMotion';
|
12835
|
+
return CSSMotion;
|
12836
|
+
}
|
12837
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (genCSSMotion(_util_motion__WEBPACK_IMPORTED_MODULE_8__.supportTransition));
|
12838
|
+
|
12839
|
+
/***/ }),
|
12840
|
+
|
12841
|
+
/***/ "./node_modules/@rc-component/motion/es/CSSMotionList.js":
|
12842
|
+
/*!***************************************************************!*\
|
12843
|
+
!*** ./node_modules/@rc-component/motion/es/CSSMotionList.js ***!
|
12844
|
+
\***************************************************************/
|
12845
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12846
|
+
|
12847
|
+
"use strict";
|
12848
|
+
__webpack_require__.r(__webpack_exports__);
|
12849
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12850
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
12851
|
+
/* harmony export */ genCSSMotionList: () => (/* binding */ genCSSMotionList)
|
12852
|
+
/* harmony export */ });
|
12853
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12854
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12855
|
+
/* harmony import */ var _CSSMotion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CSSMotion */ "./node_modules/@rc-component/motion/es/CSSMotion.js");
|
12856
|
+
/* harmony import */ var _util_diff__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/diff */ "./node_modules/@rc-component/motion/es/util/diff.js");
|
12857
|
+
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/motion */ "./node_modules/@rc-component/motion/es/util/motion.js");
|
12858
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
12859
|
+
/* eslint react/prop-types: 0 */
|
12860
|
+
|
12861
|
+
|
12862
|
+
|
12863
|
+
|
12864
|
+
const MOTION_PROP_NAMES = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearPrepare', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
|
12865
|
+
/**
|
12866
|
+
* Generate a CSSMotionList component with config
|
12867
|
+
* @param transitionSupport No need since CSSMotionList no longer depends on transition support
|
12868
|
+
* @param CSSMotion CSSMotion component
|
12869
|
+
*/
|
12870
|
+
function genCSSMotionList(transitionSupport, CSSMotion = _CSSMotion__WEBPACK_IMPORTED_MODULE_1__["default"]) {
|
12871
|
+
class CSSMotionList extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
12872
|
+
static defaultProps = {
|
12873
|
+
component: 'div'
|
12874
|
+
};
|
12875
|
+
state = {
|
12876
|
+
keyEntities: []
|
12877
|
+
};
|
12878
|
+
static getDerivedStateFromProps({
|
12879
|
+
keys
|
12880
|
+
}, {
|
12881
|
+
keyEntities
|
12882
|
+
}) {
|
12883
|
+
const parsedKeyObjects = (0,_util_diff__WEBPACK_IMPORTED_MODULE_2__.parseKeys)(keys);
|
12884
|
+
const mixedKeyEntities = (0,_util_diff__WEBPACK_IMPORTED_MODULE_2__.diffKeys)(keyEntities, parsedKeyObjects);
|
12885
|
+
return {
|
12886
|
+
keyEntities: mixedKeyEntities.filter(entity => {
|
12887
|
+
const prevEntity = keyEntities.find(({
|
12888
|
+
key
|
12889
|
+
}) => entity.key === key);
|
12890
|
+
|
12891
|
+
// Remove if already mark as removed
|
12892
|
+
if (prevEntity && prevEntity.status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVED && entity.status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVE) {
|
12893
|
+
return false;
|
12894
|
+
}
|
12895
|
+
return true;
|
12896
|
+
})
|
12897
|
+
};
|
12898
|
+
}
|
12899
|
+
|
12900
|
+
// ZombieJ: Return the count of rest keys. It's safe to refactor if need more info.
|
12901
|
+
removeKey = removeKey => {
|
12902
|
+
this.setState(prevState => {
|
12903
|
+
const nextKeyEntities = prevState.keyEntities.map(entity => {
|
12904
|
+
if (entity.key !== removeKey) return entity;
|
12905
|
+
return {
|
12906
|
+
...entity,
|
12907
|
+
status: _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVED
|
12908
|
+
};
|
12909
|
+
});
|
12910
|
+
return {
|
12911
|
+
keyEntities: nextKeyEntities
|
12912
|
+
};
|
12913
|
+
}, () => {
|
12914
|
+
const {
|
12915
|
+
keyEntities
|
12916
|
+
} = this.state;
|
12917
|
+
const restKeysCount = keyEntities.filter(({
|
12918
|
+
status
|
12919
|
+
}) => status !== _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVED).length;
|
12920
|
+
if (restKeysCount === 0 && this.props.onAllRemoved) {
|
12921
|
+
this.props.onAllRemoved();
|
12922
|
+
}
|
12923
|
+
});
|
12924
|
+
};
|
12925
|
+
render() {
|
12926
|
+
const {
|
12927
|
+
keyEntities
|
12928
|
+
} = this.state;
|
12929
|
+
const {
|
12930
|
+
component,
|
12931
|
+
children,
|
12932
|
+
onVisibleChanged,
|
12933
|
+
onAllRemoved,
|
12934
|
+
...restProps
|
12935
|
+
} = this.props;
|
12936
|
+
const Component = component || react__WEBPACK_IMPORTED_MODULE_0__.Fragment;
|
12937
|
+
const motionProps = {};
|
12938
|
+
MOTION_PROP_NAMES.forEach(prop => {
|
12939
|
+
motionProps[prop] = restProps[prop];
|
12940
|
+
delete restProps[prop];
|
12941
|
+
});
|
12942
|
+
delete restProps.keys;
|
12943
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, restProps, keyEntities.map(({
|
12944
|
+
status,
|
12945
|
+
...eventProps
|
12946
|
+
}, index) => {
|
12947
|
+
const visible = status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_ADD || status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_KEEP;
|
12948
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(CSSMotion, _extends({}, motionProps, {
|
12949
|
+
key: eventProps.key,
|
12950
|
+
visible: visible,
|
12951
|
+
eventProps: eventProps,
|
12952
|
+
onVisibleChanged: changedVisible => {
|
12953
|
+
onVisibleChanged?.(changedVisible, {
|
12954
|
+
key: eventProps.key
|
12955
|
+
});
|
12956
|
+
if (!changedVisible) {
|
12957
|
+
this.removeKey(eventProps.key);
|
12958
|
+
}
|
12959
|
+
}
|
12960
|
+
}), (props, ref) => children({
|
12961
|
+
...props,
|
12962
|
+
index
|
12963
|
+
}, ref));
|
12964
|
+
}));
|
12965
|
+
}
|
12966
|
+
}
|
12967
|
+
return CSSMotionList;
|
12968
|
+
}
|
12969
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (genCSSMotionList(_util_motion__WEBPACK_IMPORTED_MODULE_3__.supportTransition));
|
12970
|
+
|
12971
|
+
/***/ }),
|
12972
|
+
|
12973
|
+
/***/ "./node_modules/@rc-component/motion/es/context.js":
|
12974
|
+
/*!*********************************************************!*\
|
12975
|
+
!*** ./node_modules/@rc-component/motion/es/context.js ***!
|
12976
|
+
\*********************************************************/
|
12977
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12978
|
+
|
12979
|
+
"use strict";
|
12980
|
+
__webpack_require__.r(__webpack_exports__);
|
12981
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12982
|
+
/* harmony export */ Context: () => (/* binding */ Context),
|
12983
|
+
/* harmony export */ "default": () => (/* binding */ MotionProvider)
|
12984
|
+
/* harmony export */ });
|
12985
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12986
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12987
|
+
|
12988
|
+
const Context = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
|
12989
|
+
function MotionProvider({
|
12990
|
+
children,
|
12991
|
+
...props
|
12992
|
+
}) {
|
12993
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Context.Provider, {
|
12994
|
+
value: props
|
12995
|
+
}, children);
|
12996
|
+
}
|
12997
|
+
|
12998
|
+
/***/ }),
|
12999
|
+
|
13000
|
+
/***/ "./node_modules/@rc-component/motion/es/hooks/useDomMotionEvents.js":
|
13001
|
+
/*!**************************************************************************!*\
|
13002
|
+
!*** ./node_modules/@rc-component/motion/es/hooks/useDomMotionEvents.js ***!
|
13003
|
+
\**************************************************************************/
|
13004
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13005
|
+
|
13006
|
+
"use strict";
|
13007
|
+
__webpack_require__.r(__webpack_exports__);
|
13008
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13009
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13010
|
+
/* harmony export */ });
|
13011
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
13012
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
13013
|
+
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/motion */ "./node_modules/@rc-component/motion/es/util/motion.js");
|
13014
|
+
|
13015
|
+
|
13016
|
+
|
13017
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (onInternalMotionEnd => {
|
13018
|
+
const cacheElementRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
13019
|
+
|
13020
|
+
// Remove events
|
13021
|
+
function removeMotionEvents(element) {
|
13022
|
+
if (element) {
|
13023
|
+
element.removeEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.transitionEndName, onInternalMotionEnd);
|
13024
|
+
element.removeEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.animationEndName, onInternalMotionEnd);
|
13025
|
+
}
|
13026
|
+
}
|
13027
|
+
|
13028
|
+
// Patch events
|
13029
|
+
function patchMotionEvents(element) {
|
13030
|
+
if (cacheElementRef.current && cacheElementRef.current !== element) {
|
13031
|
+
removeMotionEvents(cacheElementRef.current);
|
13032
|
+
}
|
13033
|
+
if (element && element !== cacheElementRef.current) {
|
13034
|
+
element.addEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.transitionEndName, onInternalMotionEnd);
|
13035
|
+
element.addEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.animationEndName, onInternalMotionEnd);
|
13036
|
+
|
13037
|
+
// Save as cache in case dom removed trigger by `motionDeadline`
|
13038
|
+
cacheElementRef.current = element;
|
13039
|
+
}
|
13040
|
+
}
|
13041
|
+
|
13042
|
+
// Clean up when removed
|
13043
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => () => {
|
13044
|
+
removeMotionEvents(cacheElementRef.current);
|
13045
|
+
}, []);
|
13046
|
+
return [patchMotionEvents, removeMotionEvents];
|
13047
|
+
});
|
13048
|
+
|
13049
|
+
/***/ }),
|
13050
|
+
|
13051
|
+
/***/ "./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js":
|
13052
|
+
/*!*********************************************************************************!*\
|
13053
|
+
!*** ./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js ***!
|
13054
|
+
\*********************************************************************************/
|
13055
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13056
|
+
|
13057
|
+
"use strict";
|
13058
|
+
__webpack_require__.r(__webpack_exports__);
|
13059
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13060
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13061
|
+
/* harmony export */ });
|
13062
|
+
/* harmony import */ var _rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util/es/Dom/canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
13063
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
13064
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
13065
|
+
|
13066
|
+
|
13067
|
+
|
13068
|
+
// It's safe to use `useLayoutEffect` but the warning is annoying
|
13069
|
+
const useIsomorphicLayoutEffect = (0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect;
|
13070
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useIsomorphicLayoutEffect);
|
13071
|
+
|
13072
|
+
/***/ }),
|
13073
|
+
|
13074
|
+
/***/ "./node_modules/@rc-component/motion/es/hooks/useNextFrame.js":
|
13075
|
+
/*!********************************************************************!*\
|
13076
|
+
!*** ./node_modules/@rc-component/motion/es/hooks/useNextFrame.js ***!
|
13077
|
+
\********************************************************************/
|
13078
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13079
|
+
|
13080
|
+
"use strict";
|
13081
|
+
__webpack_require__.r(__webpack_exports__);
|
13082
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13083
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13084
|
+
/* harmony export */ });
|
13085
|
+
/* harmony import */ var _rc_component_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util/es/raf */ "./node_modules/@rc-component/util/es/raf.js");
|
13086
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
13087
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
13088
|
+
|
13089
|
+
|
13090
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (() => {
|
13091
|
+
const nextFrameRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null);
|
13092
|
+
function cancelNextFrame() {
|
13093
|
+
_rc_component_util_es_raf__WEBPACK_IMPORTED_MODULE_0__["default"].cancel(nextFrameRef.current);
|
13094
|
+
}
|
13095
|
+
function nextFrame(callback, delay = 2) {
|
13096
|
+
cancelNextFrame();
|
13097
|
+
const nextFrameId = (0,_rc_component_util_es_raf__WEBPACK_IMPORTED_MODULE_0__["default"])(() => {
|
13098
|
+
if (delay <= 1) {
|
13099
|
+
callback({
|
13100
|
+
isCanceled: () => nextFrameId !== nextFrameRef.current
|
13101
|
+
});
|
13102
|
+
} else {
|
13103
|
+
nextFrame(callback, delay - 1);
|
13104
|
+
}
|
13105
|
+
});
|
13106
|
+
nextFrameRef.current = nextFrameId;
|
13107
|
+
}
|
13108
|
+
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => () => {
|
13109
|
+
cancelNextFrame();
|
13110
|
+
}, []);
|
13111
|
+
return [nextFrame, cancelNextFrame];
|
13112
|
+
});
|
13113
|
+
|
13114
|
+
/***/ }),
|
13115
|
+
|
13116
|
+
/***/ "./node_modules/@rc-component/motion/es/hooks/useStatus.js":
|
13117
|
+
/*!*****************************************************************!*\
|
13118
|
+
!*** ./node_modules/@rc-component/motion/es/hooks/useStatus.js ***!
|
13119
|
+
\*****************************************************************/
|
13120
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13121
|
+
|
13122
|
+
"use strict";
|
13123
|
+
__webpack_require__.r(__webpack_exports__);
|
13124
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13125
|
+
/* harmony export */ "default": () => (/* binding */ useStatus)
|
13126
|
+
/* harmony export */ });
|
13127
|
+
/* harmony import */ var _rc_component_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util */ "./node_modules/@rc-component/util/es/index.js");
|
13128
|
+
/* harmony import */ var _rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/util/es/hooks/useState */ "./node_modules/@rc-component/util/es/hooks/useState.js");
|
13129
|
+
/* harmony import */ var _rc_component_util_es_hooks_useSyncState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/hooks/useSyncState */ "./node_modules/@rc-component/util/es/hooks/useSyncState.js");
|
13130
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
13131
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
13132
|
+
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interface */ "./node_modules/@rc-component/motion/es/interface.js");
|
13133
|
+
/* harmony import */ var _useDomMotionEvents__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useDomMotionEvents */ "./node_modules/@rc-component/motion/es/hooks/useDomMotionEvents.js");
|
13134
|
+
/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js");
|
13135
|
+
/* harmony import */ var _useStepQueue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useStepQueue */ "./node_modules/@rc-component/motion/es/hooks/useStepQueue.js");
|
13136
|
+
|
13137
|
+
|
13138
|
+
|
13139
|
+
|
13140
|
+
|
13141
|
+
|
13142
|
+
|
13143
|
+
|
13144
|
+
|
13145
|
+
function useStatus(supportMotion, visible, getElement, {
|
13146
|
+
motionEnter = true,
|
13147
|
+
motionAppear = true,
|
13148
|
+
motionLeave = true,
|
13149
|
+
motionDeadline,
|
13150
|
+
motionLeaveImmediately,
|
13151
|
+
onAppearPrepare,
|
13152
|
+
onEnterPrepare,
|
13153
|
+
onLeavePrepare,
|
13154
|
+
onAppearStart,
|
13155
|
+
onEnterStart,
|
13156
|
+
onLeaveStart,
|
13157
|
+
onAppearActive,
|
13158
|
+
onEnterActive,
|
13159
|
+
onLeaveActive,
|
13160
|
+
onAppearEnd,
|
13161
|
+
onEnterEnd,
|
13162
|
+
onLeaveEnd,
|
13163
|
+
onVisibleChanged
|
13164
|
+
}) {
|
13165
|
+
// Used for outer render usage to avoid `visible: false & status: none` to render nothing
|
13166
|
+
const [asyncVisible, setAsyncVisible] = (0,_rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_1__["default"])();
|
13167
|
+
const [getStatus, setStatus] = (0,_rc_component_util_es_hooks_useSyncState__WEBPACK_IMPORTED_MODULE_2__["default"])(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13168
|
+
const [style, setStyle] = (0,_rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_1__["default"])(null);
|
13169
|
+
const currentStatus = getStatus();
|
13170
|
+
const mountedRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
|
13171
|
+
const deadlineRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);
|
13172
|
+
|
13173
|
+
// =========================== Dom Node ===========================
|
13174
|
+
function getDomElement() {
|
13175
|
+
return getElement();
|
13176
|
+
}
|
13177
|
+
|
13178
|
+
// ========================== Motion End ==========================
|
13179
|
+
const activeRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
|
13180
|
+
|
13181
|
+
/**
|
13182
|
+
* Clean up status & style
|
13183
|
+
*/
|
13184
|
+
function updateMotionEndStatus() {
|
13185
|
+
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13186
|
+
setStyle(null, true);
|
13187
|
+
}
|
13188
|
+
const onInternalMotionEnd = (0,_rc_component_util__WEBPACK_IMPORTED_MODULE_0__.useEvent)(event => {
|
13189
|
+
const status = getStatus();
|
13190
|
+
// Do nothing since not in any transition status.
|
13191
|
+
// This may happen when `motionDeadline` trigger.
|
13192
|
+
if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE) {
|
13193
|
+
return;
|
13194
|
+
}
|
13195
|
+
const element = getDomElement();
|
13196
|
+
if (event && !event.deadline && event.target !== element) {
|
13197
|
+
// event exists
|
13198
|
+
// not initiated by deadline
|
13199
|
+
// transitionEnd not fired by inner elements
|
13200
|
+
return;
|
13201
|
+
}
|
13202
|
+
const currentActive = activeRef.current;
|
13203
|
+
let canEnd;
|
13204
|
+
if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR && currentActive) {
|
13205
|
+
canEnd = onAppearEnd?.(element, event);
|
13206
|
+
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER && currentActive) {
|
13207
|
+
canEnd = onEnterEnd?.(element, event);
|
13208
|
+
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE && currentActive) {
|
13209
|
+
canEnd = onLeaveEnd?.(element, event);
|
13210
|
+
}
|
13211
|
+
|
13212
|
+
// Only update status when `canEnd` and not destroyed
|
13213
|
+
if (currentActive && canEnd !== false) {
|
13214
|
+
updateMotionEndStatus();
|
13215
|
+
}
|
13216
|
+
});
|
13217
|
+
const [patchMotionEvents] = (0,_useDomMotionEvents__WEBPACK_IMPORTED_MODULE_5__["default"])(onInternalMotionEnd);
|
13218
|
+
|
13219
|
+
// ============================= Step =============================
|
13220
|
+
const getEventHandlers = targetStatus => {
|
13221
|
+
switch (targetStatus) {
|
13222
|
+
case _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR:
|
13223
|
+
return {
|
13224
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE]: onAppearPrepare,
|
13225
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START]: onAppearStart,
|
13226
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE]: onAppearActive
|
13227
|
+
};
|
13228
|
+
case _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER:
|
13229
|
+
return {
|
13230
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE]: onEnterPrepare,
|
13231
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START]: onEnterStart,
|
13232
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE]: onEnterActive
|
13233
|
+
};
|
13234
|
+
case _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE:
|
13235
|
+
return {
|
13236
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE]: onLeavePrepare,
|
13237
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START]: onLeaveStart,
|
13238
|
+
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE]: onLeaveActive
|
13239
|
+
};
|
13240
|
+
default:
|
13241
|
+
return {};
|
13242
|
+
}
|
13243
|
+
};
|
13244
|
+
const eventHandlers = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => getEventHandlers(currentStatus), [currentStatus]);
|
13245
|
+
const [startStep, step] = (0,_useStepQueue__WEBPACK_IMPORTED_MODULE_7__["default"])(currentStatus, !supportMotion, newStep => {
|
13246
|
+
// Only prepare step can be skip
|
13247
|
+
if (newStep === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE) {
|
13248
|
+
const onPrepare = eventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE];
|
13249
|
+
if (!onPrepare) {
|
13250
|
+
return _useStepQueue__WEBPACK_IMPORTED_MODULE_7__.SkipStep;
|
13251
|
+
}
|
13252
|
+
return onPrepare(getDomElement());
|
13253
|
+
}
|
13254
|
+
|
13255
|
+
// Rest step is sync update
|
13256
|
+
if (step in eventHandlers) {
|
13257
|
+
setStyle(eventHandlers[step]?.(getDomElement(), null) || null);
|
13258
|
+
}
|
13259
|
+
if (step === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE && currentStatus !== _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE) {
|
13260
|
+
// Patch events when motion needed
|
13261
|
+
patchMotionEvents(getDomElement());
|
13262
|
+
if (motionDeadline > 0) {
|
13263
|
+
clearTimeout(deadlineRef.current);
|
13264
|
+
deadlineRef.current = setTimeout(() => {
|
13265
|
+
onInternalMotionEnd({
|
13266
|
+
deadline: true
|
13267
|
+
});
|
13268
|
+
}, motionDeadline);
|
13269
|
+
}
|
13270
|
+
}
|
13271
|
+
if (step === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARED) {
|
13272
|
+
updateMotionEndStatus();
|
13273
|
+
}
|
13274
|
+
return _useStepQueue__WEBPACK_IMPORTED_MODULE_7__.DoStep;
|
13275
|
+
});
|
13276
|
+
const active = (0,_useStepQueue__WEBPACK_IMPORTED_MODULE_7__.isActive)(step);
|
13277
|
+
activeRef.current = active;
|
13278
|
+
|
13279
|
+
// ============================ Status ============================
|
13280
|
+
const visibleRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);
|
13281
|
+
|
13282
|
+
// Update with new status
|
13283
|
+
(0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__["default"])(() => {
|
13284
|
+
// When use Suspense, the `visible` will repeat trigger,
|
13285
|
+
// But not real change of the `visible`, we need to skip it.
|
13286
|
+
// https://github.com/ant-design/ant-design/issues/44379
|
13287
|
+
if (mountedRef.current && visibleRef.current === visible) {
|
13288
|
+
return;
|
13289
|
+
}
|
13290
|
+
setAsyncVisible(visible);
|
13291
|
+
const isMounted = mountedRef.current;
|
13292
|
+
mountedRef.current = true;
|
13293
|
+
|
13294
|
+
// if (!supportMotion) {
|
13295
|
+
// return;
|
13296
|
+
// }
|
13297
|
+
|
13298
|
+
let nextStatus;
|
13299
|
+
|
13300
|
+
// Appear
|
13301
|
+
if (!isMounted && visible && motionAppear) {
|
13302
|
+
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR;
|
13303
|
+
}
|
13304
|
+
|
13305
|
+
// Enter
|
13306
|
+
if (isMounted && visible && motionEnter) {
|
13307
|
+
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER;
|
13308
|
+
}
|
13309
|
+
|
13310
|
+
// Leave
|
13311
|
+
if (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) {
|
13312
|
+
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE;
|
13313
|
+
}
|
13314
|
+
const nextEventHandlers = getEventHandlers(nextStatus);
|
13315
|
+
|
13316
|
+
// Update to next status
|
13317
|
+
if (nextStatus && (supportMotion || nextEventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE])) {
|
13318
|
+
setStatus(nextStatus);
|
13319
|
+
startStep();
|
13320
|
+
} else {
|
13321
|
+
// Set back in case no motion but prev status has prepare step
|
13322
|
+
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13323
|
+
}
|
13324
|
+
visibleRef.current = visible;
|
13325
|
+
}, [visible]);
|
13326
|
+
|
13327
|
+
// ============================ Effect ============================
|
13328
|
+
// Reset when motion changed
|
13329
|
+
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => {
|
13330
|
+
if (
|
13331
|
+
// Cancel appear
|
13332
|
+
currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR && !motionAppear ||
|
13333
|
+
// Cancel enter
|
13334
|
+
currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER && !motionEnter ||
|
13335
|
+
// Cancel leave
|
13336
|
+
currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE && !motionLeave) {
|
13337
|
+
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13338
|
+
}
|
13339
|
+
}, [motionAppear, motionEnter, motionLeave]);
|
13340
|
+
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => () => {
|
13341
|
+
mountedRef.current = false;
|
13342
|
+
clearTimeout(deadlineRef.current);
|
13343
|
+
}, []);
|
13344
|
+
|
13345
|
+
// Trigger `onVisibleChanged`
|
13346
|
+
const firstMountChangeRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
|
13347
|
+
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => {
|
13348
|
+
// [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged
|
13349
|
+
if (asyncVisible) {
|
13350
|
+
firstMountChangeRef.current = true;
|
13351
|
+
}
|
13352
|
+
if (asyncVisible !== undefined && currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE) {
|
13353
|
+
// Skip first render is invisible since it's nothing changed
|
13354
|
+
if (firstMountChangeRef.current || asyncVisible) {
|
13355
|
+
onVisibleChanged?.(asyncVisible);
|
13356
|
+
}
|
13357
|
+
firstMountChangeRef.current = true;
|
13358
|
+
}
|
13359
|
+
}, [asyncVisible, currentStatus]);
|
13360
|
+
|
13361
|
+
// ============================ Styles ============================
|
13362
|
+
let mergedStyle = style;
|
13363
|
+
if (eventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE] && step === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START) {
|
13364
|
+
mergedStyle = {
|
13365
|
+
transition: 'none',
|
13366
|
+
...mergedStyle
|
13367
|
+
};
|
13368
|
+
}
|
13369
|
+
return [getStatus, step, mergedStyle, asyncVisible ?? visible];
|
13370
|
+
}
|
13371
|
+
|
13372
|
+
/***/ }),
|
13373
|
+
|
13374
|
+
/***/ "./node_modules/@rc-component/motion/es/hooks/useStepQueue.js":
|
13375
|
+
/*!********************************************************************!*\
|
13376
|
+
!*** ./node_modules/@rc-component/motion/es/hooks/useStepQueue.js ***!
|
13377
|
+
\********************************************************************/
|
13378
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13379
|
+
|
13380
|
+
"use strict";
|
13381
|
+
__webpack_require__.r(__webpack_exports__);
|
13382
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13383
|
+
/* harmony export */ DoStep: () => (/* binding */ DoStep),
|
13384
|
+
/* harmony export */ SkipStep: () => (/* binding */ SkipStep),
|
13385
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
13386
|
+
/* harmony export */ isActive: () => (/* binding */ isActive)
|
13387
|
+
/* harmony export */ });
|
13388
|
+
/* harmony import */ var _rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util/es/hooks/useState */ "./node_modules/@rc-component/util/es/hooks/useState.js");
|
13389
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
13390
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
13391
|
+
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../interface */ "./node_modules/@rc-component/motion/es/interface.js");
|
13392
|
+
/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js");
|
13393
|
+
/* harmony import */ var _useNextFrame__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useNextFrame */ "./node_modules/@rc-component/motion/es/hooks/useNextFrame.js");
|
13394
|
+
|
13395
|
+
|
13396
|
+
|
13397
|
+
|
13398
|
+
|
13399
|
+
const FULL_STEP_QUEUE = [_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARE, _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_START, _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVE, _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVATED];
|
13400
|
+
const SIMPLE_STEP_QUEUE = [_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARE, _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARED];
|
13401
|
+
|
13402
|
+
/** Skip current step */
|
13403
|
+
const SkipStep = false;
|
13404
|
+
/** Current step should be update in */
|
13405
|
+
const DoStep = true;
|
13406
|
+
function isActive(step) {
|
13407
|
+
return step === _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVE || step === _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVATED;
|
13408
|
+
}
|
13409
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((status, prepareOnly, callback) => {
|
13410
|
+
const [step, setStep] = (0,_rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_0__["default"])(_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_NONE);
|
13411
|
+
const [nextFrame, cancelNextFrame] = (0,_useNextFrame__WEBPACK_IMPORTED_MODULE_4__["default"])();
|
13412
|
+
function startQueue() {
|
13413
|
+
setStep(_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARE, true);
|
13414
|
+
}
|
13415
|
+
const STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
|
13416
|
+
(0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(() => {
|
13417
|
+
if (step !== _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_NONE && step !== _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVATED) {
|
13418
|
+
const index = STEP_QUEUE.indexOf(step);
|
13419
|
+
const nextStep = STEP_QUEUE[index + 1];
|
13420
|
+
const result = callback(step);
|
13421
|
+
if (result === SkipStep) {
|
13422
|
+
// Skip when no needed
|
13423
|
+
setStep(nextStep, true);
|
13424
|
+
} else if (nextStep) {
|
13425
|
+
// Do as frame for step update
|
13426
|
+
nextFrame(info => {
|
13427
|
+
function doNext() {
|
13428
|
+
// Skip since current queue is ood
|
13429
|
+
if (info.isCanceled()) return;
|
13430
|
+
setStep(nextStep, true);
|
13431
|
+
}
|
13432
|
+
if (result === true) {
|
13433
|
+
doNext();
|
13434
|
+
} else {
|
13435
|
+
// Only promise should be async
|
13436
|
+
Promise.resolve(result).then(doNext);
|
13437
|
+
}
|
13438
|
+
});
|
13439
|
+
}
|
13440
|
+
}
|
13441
|
+
}, [status, step]);
|
13442
|
+
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => () => {
|
13443
|
+
cancelNextFrame();
|
13444
|
+
}, []);
|
13445
|
+
return [startQueue, step];
|
13446
|
+
});
|
13447
|
+
|
13448
|
+
/***/ }),
|
13449
|
+
|
13450
|
+
/***/ "./node_modules/@rc-component/motion/es/index.js":
|
13451
|
+
/*!*******************************************************!*\
|
13452
|
+
!*** ./node_modules/@rc-component/motion/es/index.js ***!
|
13453
|
+
\*******************************************************/
|
13454
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13455
|
+
|
13456
|
+
"use strict";
|
13457
|
+
__webpack_require__.r(__webpack_exports__);
|
13458
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13459
|
+
/* harmony export */ CSSMotionList: () => (/* reexport safe */ _CSSMotionList__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
13460
|
+
/* harmony export */ Provider: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
13461
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13462
|
+
/* harmony export */ });
|
13463
|
+
/* harmony import */ var _CSSMotion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CSSMotion */ "./node_modules/@rc-component/motion/es/CSSMotion.js");
|
13464
|
+
/* harmony import */ var _CSSMotionList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CSSMotionList */ "./node_modules/@rc-component/motion/es/CSSMotionList.js");
|
13465
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/motion/es/context.js");
|
13466
|
+
|
13467
|
+
|
13468
|
+
|
13469
|
+
|
13470
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_CSSMotion__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
13471
|
+
|
13472
|
+
/***/ }),
|
13473
|
+
|
13474
|
+
/***/ "./node_modules/@rc-component/motion/es/interface.js":
|
13475
|
+
/*!***********************************************************!*\
|
13476
|
+
!*** ./node_modules/@rc-component/motion/es/interface.js ***!
|
13477
|
+
\***********************************************************/
|
13478
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13479
|
+
|
13480
|
+
"use strict";
|
13481
|
+
__webpack_require__.r(__webpack_exports__);
|
13482
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13483
|
+
/* harmony export */ STATUS_APPEAR: () => (/* binding */ STATUS_APPEAR),
|
13484
|
+
/* harmony export */ STATUS_ENTER: () => (/* binding */ STATUS_ENTER),
|
13485
|
+
/* harmony export */ STATUS_LEAVE: () => (/* binding */ STATUS_LEAVE),
|
13486
|
+
/* harmony export */ STATUS_NONE: () => (/* binding */ STATUS_NONE),
|
13487
|
+
/* harmony export */ STEP_ACTIVATED: () => (/* binding */ STEP_ACTIVATED),
|
13488
|
+
/* harmony export */ STEP_ACTIVE: () => (/* binding */ STEP_ACTIVE),
|
13489
|
+
/* harmony export */ STEP_NONE: () => (/* binding */ STEP_NONE),
|
13490
|
+
/* harmony export */ STEP_PREPARE: () => (/* binding */ STEP_PREPARE),
|
13491
|
+
/* harmony export */ STEP_PREPARED: () => (/* binding */ STEP_PREPARED),
|
13492
|
+
/* harmony export */ STEP_START: () => (/* binding */ STEP_START)
|
13493
|
+
/* harmony export */ });
|
13494
|
+
const STATUS_NONE = 'none';
|
13495
|
+
const STATUS_APPEAR = 'appear';
|
13496
|
+
const STATUS_ENTER = 'enter';
|
13497
|
+
const STATUS_LEAVE = 'leave';
|
13498
|
+
const STEP_NONE = 'none';
|
13499
|
+
const STEP_PREPARE = 'prepare';
|
13500
|
+
const STEP_START = 'start';
|
13501
|
+
const STEP_ACTIVE = 'active';
|
13502
|
+
const STEP_ACTIVATED = 'end';
|
13503
|
+
/**
|
13504
|
+
* Used for disabled motion case.
|
13505
|
+
* Prepare stage will still work but start & active will be skipped.
|
13506
|
+
*/
|
13507
|
+
const STEP_PREPARED = 'prepared';
|
13508
|
+
|
13509
|
+
/***/ }),
|
13510
|
+
|
13511
|
+
/***/ "./node_modules/@rc-component/motion/es/util/diff.js":
|
13512
|
+
/*!***********************************************************!*\
|
13513
|
+
!*** ./node_modules/@rc-component/motion/es/util/diff.js ***!
|
13514
|
+
\***********************************************************/
|
13515
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13516
|
+
|
13517
|
+
"use strict";
|
13518
|
+
__webpack_require__.r(__webpack_exports__);
|
13519
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13520
|
+
/* harmony export */ STATUS_ADD: () => (/* binding */ STATUS_ADD),
|
13521
|
+
/* harmony export */ STATUS_KEEP: () => (/* binding */ STATUS_KEEP),
|
13522
|
+
/* harmony export */ STATUS_REMOVE: () => (/* binding */ STATUS_REMOVE),
|
13523
|
+
/* harmony export */ STATUS_REMOVED: () => (/* binding */ STATUS_REMOVED),
|
13524
|
+
/* harmony export */ diffKeys: () => (/* binding */ diffKeys),
|
13525
|
+
/* harmony export */ parseKeys: () => (/* binding */ parseKeys),
|
13526
|
+
/* harmony export */ wrapKeyToObject: () => (/* binding */ wrapKeyToObject)
|
13527
|
+
/* harmony export */ });
|
13528
|
+
const STATUS_ADD = 'add';
|
13529
|
+
const STATUS_KEEP = 'keep';
|
13530
|
+
const STATUS_REMOVE = 'remove';
|
13531
|
+
const STATUS_REMOVED = 'removed';
|
13532
|
+
function wrapKeyToObject(key) {
|
13533
|
+
let keyObj;
|
13534
|
+
if (key && typeof key === 'object' && 'key' in key) {
|
13535
|
+
keyObj = key;
|
13536
|
+
} else {
|
13537
|
+
keyObj = {
|
13538
|
+
key: key
|
13539
|
+
};
|
13540
|
+
}
|
13541
|
+
return {
|
13542
|
+
...keyObj,
|
13543
|
+
key: String(keyObj.key)
|
13544
|
+
};
|
13545
|
+
}
|
13546
|
+
function parseKeys(keys = []) {
|
13547
|
+
return keys.map(wrapKeyToObject);
|
13548
|
+
}
|
13549
|
+
function diffKeys(prevKeys = [], currentKeys = []) {
|
13550
|
+
let list = [];
|
13551
|
+
let currentIndex = 0;
|
13552
|
+
const currentLen = currentKeys.length;
|
13553
|
+
const prevKeyObjects = parseKeys(prevKeys);
|
13554
|
+
const currentKeyObjects = parseKeys(currentKeys);
|
13555
|
+
|
13556
|
+
// Check prev keys to insert or keep
|
13557
|
+
prevKeyObjects.forEach(keyObj => {
|
13558
|
+
let hit = false;
|
13559
|
+
for (let i = currentIndex; i < currentLen; i += 1) {
|
13560
|
+
const currentKeyObj = currentKeyObjects[i];
|
13561
|
+
if (currentKeyObj.key === keyObj.key) {
|
13562
|
+
// New added keys should add before current key
|
13563
|
+
if (currentIndex < i) {
|
13564
|
+
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(obj => ({
|
13565
|
+
...obj,
|
13566
|
+
status: STATUS_ADD
|
13567
|
+
})));
|
13568
|
+
currentIndex = i;
|
13569
|
+
}
|
13570
|
+
list.push({
|
13571
|
+
...currentKeyObj,
|
13572
|
+
status: STATUS_KEEP
|
13573
|
+
});
|
13574
|
+
currentIndex += 1;
|
13575
|
+
hit = true;
|
13576
|
+
break;
|
13577
|
+
}
|
13578
|
+
}
|
13579
|
+
|
13580
|
+
// If not hit, it means key is removed
|
13581
|
+
if (!hit) {
|
13582
|
+
list.push({
|
13583
|
+
...keyObj,
|
13584
|
+
status: STATUS_REMOVE
|
13585
|
+
});
|
13586
|
+
}
|
13587
|
+
});
|
13588
|
+
|
13589
|
+
// Add rest to the list
|
13590
|
+
if (currentIndex < currentLen) {
|
13591
|
+
list = list.concat(currentKeyObjects.slice(currentIndex).map(obj => ({
|
13592
|
+
...obj,
|
13593
|
+
status: STATUS_ADD
|
13594
|
+
})));
|
13595
|
+
}
|
13596
|
+
|
13597
|
+
/**
|
13598
|
+
* Merge same key when it remove and add again:
|
13599
|
+
* [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]
|
13600
|
+
*/
|
13601
|
+
const keys = {};
|
13602
|
+
list.forEach(({
|
13603
|
+
key
|
13604
|
+
}) => {
|
13605
|
+
keys[key] = (keys[key] || 0) + 1;
|
13606
|
+
});
|
13607
|
+
const duplicatedKeys = Object.keys(keys).filter(key => keys[key] > 1);
|
13608
|
+
duplicatedKeys.forEach(matchKey => {
|
13609
|
+
// Remove `STATUS_REMOVE` node.
|
13610
|
+
list = list.filter(({
|
13611
|
+
key,
|
13612
|
+
status
|
13613
|
+
}) => key !== matchKey || status !== STATUS_REMOVE);
|
13614
|
+
|
13615
|
+
// Update `STATUS_ADD` to `STATUS_KEEP`
|
13616
|
+
list.forEach(node => {
|
13617
|
+
if (node.key === matchKey) {
|
13618
|
+
// eslint-disable-next-line no-param-reassign
|
13619
|
+
node.status = STATUS_KEEP;
|
13620
|
+
}
|
13621
|
+
});
|
13622
|
+
});
|
13623
|
+
return list;
|
13624
|
+
}
|
13625
|
+
|
13626
|
+
/***/ }),
|
13627
|
+
|
13628
|
+
/***/ "./node_modules/@rc-component/motion/es/util/motion.js":
|
13629
|
+
/*!*************************************************************!*\
|
13630
|
+
!*** ./node_modules/@rc-component/motion/es/util/motion.js ***!
|
13631
|
+
\*************************************************************/
|
13632
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13633
|
+
|
13634
|
+
"use strict";
|
13635
|
+
__webpack_require__.r(__webpack_exports__);
|
13636
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13637
|
+
/* harmony export */ animationEndName: () => (/* binding */ animationEndName),
|
13638
|
+
/* harmony export */ getTransitionName: () => (/* binding */ getTransitionName),
|
13639
|
+
/* harmony export */ getVendorPrefixedEventName: () => (/* binding */ getVendorPrefixedEventName),
|
13640
|
+
/* harmony export */ getVendorPrefixes: () => (/* binding */ getVendorPrefixes),
|
13641
|
+
/* harmony export */ supportTransition: () => (/* binding */ supportTransition),
|
13642
|
+
/* harmony export */ transitionEndName: () => (/* binding */ transitionEndName)
|
13643
|
+
/* harmony export */ });
|
13644
|
+
/* harmony import */ var _rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util/es/Dom/canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
13645
|
+
|
13646
|
+
// ================= Transition =================
|
13647
|
+
// Event wrapper. Copy from react source code
|
13648
|
+
function makePrefixMap(styleProp, eventName) {
|
13649
|
+
const prefixes = {};
|
13650
|
+
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
|
13651
|
+
prefixes[`Webkit${styleProp}`] = `webkit${eventName}`;
|
13652
|
+
prefixes[`Moz${styleProp}`] = `moz${eventName}`;
|
13653
|
+
prefixes[`ms${styleProp}`] = `MS${eventName}`;
|
13654
|
+
prefixes[`O${styleProp}`] = `o${eventName.toLowerCase()}`;
|
13655
|
+
return prefixes;
|
13656
|
+
}
|
13657
|
+
function getVendorPrefixes(domSupport, win) {
|
13658
|
+
const prefixes = {
|
13659
|
+
animationend: makePrefixMap('Animation', 'AnimationEnd'),
|
13660
|
+
transitionend: makePrefixMap('Transition', 'TransitionEnd')
|
13661
|
+
};
|
13662
|
+
if (domSupport) {
|
13663
|
+
if (!('AnimationEvent' in win)) {
|
13664
|
+
delete prefixes.animationend.animation;
|
13665
|
+
}
|
13666
|
+
if (!('TransitionEvent' in win)) {
|
13667
|
+
delete prefixes.transitionend.transition;
|
13668
|
+
}
|
13669
|
+
}
|
13670
|
+
return prefixes;
|
13671
|
+
}
|
13672
|
+
const vendorPrefixes = getVendorPrefixes((0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])(), typeof window !== 'undefined' ? window : {});
|
13673
|
+
let style = {};
|
13674
|
+
if ((0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])()) {
|
13675
|
+
({
|
13676
|
+
style
|
13677
|
+
} = document.createElement('div'));
|
13678
|
+
}
|
13679
|
+
const prefixedEventNames = {};
|
13680
|
+
function getVendorPrefixedEventName(eventName) {
|
13681
|
+
if (prefixedEventNames[eventName]) {
|
13682
|
+
return prefixedEventNames[eventName];
|
13683
|
+
}
|
13684
|
+
const prefixMap = vendorPrefixes[eventName];
|
13685
|
+
if (prefixMap) {
|
13686
|
+
const stylePropList = Object.keys(prefixMap);
|
13687
|
+
const len = stylePropList.length;
|
13688
|
+
for (let i = 0; i < len; i += 1) {
|
13689
|
+
const styleProp = stylePropList[i];
|
13690
|
+
if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) {
|
13691
|
+
prefixedEventNames[eventName] = prefixMap[styleProp];
|
13692
|
+
return prefixedEventNames[eventName];
|
13693
|
+
}
|
13694
|
+
}
|
13695
|
+
}
|
13696
|
+
return '';
|
13697
|
+
}
|
13698
|
+
const internalAnimationEndName = getVendorPrefixedEventName('animationend');
|
13699
|
+
const internalTransitionEndName = getVendorPrefixedEventName('transitionend');
|
13700
|
+
const supportTransition = !!(internalAnimationEndName && internalTransitionEndName);
|
13701
|
+
const animationEndName = internalAnimationEndName || 'animationend';
|
13702
|
+
const transitionEndName = internalTransitionEndName || 'transitionend';
|
13703
|
+
function getTransitionName(transitionName, transitionType) {
|
13704
|
+
if (!transitionName) return null;
|
13705
|
+
if (typeof transitionName === 'object') {
|
13706
|
+
const type = transitionType.replace(/-\w/g, match => match[1].toUpperCase());
|
13707
|
+
return transitionName[type];
|
13708
|
+
}
|
13709
|
+
return `${transitionName}-${transitionType}`;
|
13710
|
+
}
|
13711
|
+
|
13712
|
+
/***/ }),
|
13713
|
+
|
12307
13714
|
/***/ "./node_modules/@rc-component/portal/es/Context.js":
|
12308
13715
|
/*!*********************************************************!*\
|
12309
13716
|
!*** ./node_modules/@rc-component/portal/es/Context.js ***!
|
@@ -14551,6 +15958,58 @@ function getVisibleArea(initArea, scrollerList) {
|
|
14551
15958
|
|
14552
15959
|
/***/ }),
|
14553
15960
|
|
15961
|
+
/***/ "./node_modules/@rc-component/util/es/Children/toArray.js":
|
15962
|
+
/*!****************************************************************!*\
|
15963
|
+
!*** ./node_modules/@rc-component/util/es/Children/toArray.js ***!
|
15964
|
+
\****************************************************************/
|
15965
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15966
|
+
|
15967
|
+
"use strict";
|
15968
|
+
__webpack_require__.r(__webpack_exports__);
|
15969
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15970
|
+
/* harmony export */ "default": () => (/* binding */ toArray)
|
15971
|
+
/* harmony export */ });
|
15972
|
+
/* harmony import */ var _React_isFragment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../React/isFragment */ "./node_modules/@rc-component/util/es/React/isFragment.js");
|
15973
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
15974
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
15975
|
+
|
15976
|
+
|
15977
|
+
function toArray(children, option = {}) {
|
15978
|
+
let ret = [];
|
15979
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, child => {
|
15980
|
+
if ((child === undefined || child === null) && !option.keepEmpty) {
|
15981
|
+
return;
|
15982
|
+
}
|
15983
|
+
if (Array.isArray(child)) {
|
15984
|
+
ret = ret.concat(toArray(child));
|
15985
|
+
} else if ((0,_React_isFragment__WEBPACK_IMPORTED_MODULE_0__["default"])(child) && child.props) {
|
15986
|
+
ret = ret.concat(toArray(child.props.children, option));
|
15987
|
+
} else {
|
15988
|
+
ret.push(child);
|
15989
|
+
}
|
15990
|
+
});
|
15991
|
+
return ret;
|
15992
|
+
}
|
15993
|
+
|
15994
|
+
/***/ }),
|
15995
|
+
|
15996
|
+
/***/ "./node_modules/@rc-component/util/es/Dom/canUseDom.js":
|
15997
|
+
/*!*************************************************************!*\
|
15998
|
+
!*** ./node_modules/@rc-component/util/es/Dom/canUseDom.js ***!
|
15999
|
+
\*************************************************************/
|
16000
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16001
|
+
|
16002
|
+
"use strict";
|
16003
|
+
__webpack_require__.r(__webpack_exports__);
|
16004
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16005
|
+
/* harmony export */ "default": () => (/* binding */ canUseDom)
|
16006
|
+
/* harmony export */ });
|
16007
|
+
function canUseDom() {
|
16008
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
16009
|
+
}
|
16010
|
+
|
16011
|
+
/***/ }),
|
16012
|
+
|
14554
16013
|
/***/ "./node_modules/@rc-component/util/es/Dom/contains.js":
|
14555
16014
|
/*!************************************************************!*\
|
14556
16015
|
!*** ./node_modules/@rc-component/util/es/Dom/contains.js ***!
|
@@ -14585,6 +16044,222 @@ function contains(root, n) {
|
|
14585
16044
|
|
14586
16045
|
/***/ }),
|
14587
16046
|
|
16047
|
+
/***/ "./node_modules/@rc-component/util/es/Dom/dynamicCSS.js":
|
16048
|
+
/*!**************************************************************!*\
|
16049
|
+
!*** ./node_modules/@rc-component/util/es/Dom/dynamicCSS.js ***!
|
16050
|
+
\**************************************************************/
|
16051
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16052
|
+
|
16053
|
+
"use strict";
|
16054
|
+
__webpack_require__.r(__webpack_exports__);
|
16055
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16056
|
+
/* harmony export */ clearContainerCache: () => (/* binding */ clearContainerCache),
|
16057
|
+
/* harmony export */ injectCSS: () => (/* binding */ injectCSS),
|
16058
|
+
/* harmony export */ removeCSS: () => (/* binding */ removeCSS),
|
16059
|
+
/* harmony export */ updateCSS: () => (/* binding */ updateCSS)
|
16060
|
+
/* harmony export */ });
|
16061
|
+
/* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
16062
|
+
/* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./contains */ "./node_modules/@rc-component/util/es/Dom/contains.js");
|
16063
|
+
|
16064
|
+
|
16065
|
+
const APPEND_ORDER = 'data-rc-order';
|
16066
|
+
const APPEND_PRIORITY = 'data-rc-priority';
|
16067
|
+
const MARK_KEY = `rc-util-key`;
|
16068
|
+
const containerCache = new Map();
|
16069
|
+
function getMark({
|
16070
|
+
mark
|
16071
|
+
} = {}) {
|
16072
|
+
if (mark) {
|
16073
|
+
return mark.startsWith('data-') ? mark : `data-${mark}`;
|
16074
|
+
}
|
16075
|
+
return MARK_KEY;
|
16076
|
+
}
|
16077
|
+
function getContainer(option) {
|
16078
|
+
if (option.attachTo) {
|
16079
|
+
return option.attachTo;
|
16080
|
+
}
|
16081
|
+
const head = document.querySelector('head');
|
16082
|
+
return head || document.body;
|
16083
|
+
}
|
16084
|
+
function getOrder(prepend) {
|
16085
|
+
if (prepend === 'queue') {
|
16086
|
+
return 'prependQueue';
|
16087
|
+
}
|
16088
|
+
return prepend ? 'prepend' : 'append';
|
16089
|
+
}
|
16090
|
+
|
16091
|
+
/**
|
16092
|
+
* Find style which inject by rc-util
|
16093
|
+
*/
|
16094
|
+
function findStyles(container) {
|
16095
|
+
return Array.from((containerCache.get(container) || container).children).filter(node => node.tagName === 'STYLE');
|
16096
|
+
}
|
16097
|
+
function injectCSS(css, option = {}) {
|
16098
|
+
if (!(0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])()) {
|
16099
|
+
return null;
|
16100
|
+
}
|
16101
|
+
const {
|
16102
|
+
csp,
|
16103
|
+
prepend,
|
16104
|
+
priority = 0
|
16105
|
+
} = option;
|
16106
|
+
const mergedOrder = getOrder(prepend);
|
16107
|
+
const isPrependQueue = mergedOrder === 'prependQueue';
|
16108
|
+
const styleNode = document.createElement('style');
|
16109
|
+
styleNode.setAttribute(APPEND_ORDER, mergedOrder);
|
16110
|
+
if (isPrependQueue && priority) {
|
16111
|
+
styleNode.setAttribute(APPEND_PRIORITY, `${priority}`);
|
16112
|
+
}
|
16113
|
+
if (csp?.nonce) {
|
16114
|
+
styleNode.nonce = csp?.nonce;
|
16115
|
+
}
|
16116
|
+
styleNode.innerHTML = css;
|
16117
|
+
const container = getContainer(option);
|
16118
|
+
const {
|
16119
|
+
firstChild
|
16120
|
+
} = container;
|
16121
|
+
if (prepend) {
|
16122
|
+
// If is queue `prepend`, it will prepend first style and then append rest style
|
16123
|
+
if (isPrependQueue) {
|
16124
|
+
const existStyle = (option.styles || findStyles(container)).filter(node => {
|
16125
|
+
// Ignore style which not injected by rc-util with prepend
|
16126
|
+
if (!['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER))) {
|
16127
|
+
return false;
|
16128
|
+
}
|
16129
|
+
|
16130
|
+
// Ignore style which priority less then new style
|
16131
|
+
const nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);
|
16132
|
+
return priority >= nodePriority;
|
16133
|
+
});
|
16134
|
+
if (existStyle.length) {
|
16135
|
+
container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
|
16136
|
+
return styleNode;
|
16137
|
+
}
|
16138
|
+
}
|
16139
|
+
|
16140
|
+
// Use `insertBefore` as `prepend`
|
16141
|
+
container.insertBefore(styleNode, firstChild);
|
16142
|
+
} else {
|
16143
|
+
container.appendChild(styleNode);
|
16144
|
+
}
|
16145
|
+
return styleNode;
|
16146
|
+
}
|
16147
|
+
function findExistNode(key, option = {}) {
|
16148
|
+
let {
|
16149
|
+
styles
|
16150
|
+
} = option;
|
16151
|
+
styles ||= findStyles(getContainer(option));
|
16152
|
+
return styles.find(node => node.getAttribute(getMark(option)) === key);
|
16153
|
+
}
|
16154
|
+
function removeCSS(key, option = {}) {
|
16155
|
+
const existNode = findExistNode(key, option);
|
16156
|
+
if (existNode) {
|
16157
|
+
const container = getContainer(option);
|
16158
|
+
container.removeChild(existNode);
|
16159
|
+
}
|
16160
|
+
}
|
16161
|
+
|
16162
|
+
/**
|
16163
|
+
* qiankun will inject `appendChild` to insert into other
|
16164
|
+
*/
|
16165
|
+
function syncRealContainer(container, option) {
|
16166
|
+
const cachedRealContainer = containerCache.get(container);
|
16167
|
+
|
16168
|
+
// Find real container when not cached or cached container removed
|
16169
|
+
if (!cachedRealContainer || !(0,_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(document, cachedRealContainer)) {
|
16170
|
+
const placeholderStyle = injectCSS('', option);
|
16171
|
+
const {
|
16172
|
+
parentNode
|
16173
|
+
} = placeholderStyle;
|
16174
|
+
containerCache.set(container, parentNode);
|
16175
|
+
container.removeChild(placeholderStyle);
|
16176
|
+
}
|
16177
|
+
}
|
16178
|
+
|
16179
|
+
/**
|
16180
|
+
* manually clear container cache to avoid global cache in unit testes
|
16181
|
+
*/
|
16182
|
+
function clearContainerCache() {
|
16183
|
+
containerCache.clear();
|
16184
|
+
}
|
16185
|
+
function updateCSS(css, key, originOption = {}) {
|
16186
|
+
const container = getContainer(originOption);
|
16187
|
+
const styles = findStyles(container);
|
16188
|
+
const option = {
|
16189
|
+
...originOption,
|
16190
|
+
styles
|
16191
|
+
};
|
16192
|
+
|
16193
|
+
// Sync real parent
|
16194
|
+
syncRealContainer(container, option);
|
16195
|
+
const existNode = findExistNode(key, option);
|
16196
|
+
if (existNode) {
|
16197
|
+
if (option.csp?.nonce && existNode.nonce !== option.csp?.nonce) {
|
16198
|
+
existNode.nonce = option.csp?.nonce;
|
16199
|
+
}
|
16200
|
+
if (existNode.innerHTML !== css) {
|
16201
|
+
existNode.innerHTML = css;
|
16202
|
+
}
|
16203
|
+
return existNode;
|
16204
|
+
}
|
16205
|
+
const newNode = injectCSS(css, option);
|
16206
|
+
newNode.setAttribute(getMark(option), key);
|
16207
|
+
return newNode;
|
16208
|
+
}
|
16209
|
+
|
16210
|
+
/***/ }),
|
16211
|
+
|
16212
|
+
/***/ "./node_modules/@rc-component/util/es/Dom/findDOMNode.js":
|
16213
|
+
/*!***************************************************************!*\
|
16214
|
+
!*** ./node_modules/@rc-component/util/es/Dom/findDOMNode.js ***!
|
16215
|
+
\***************************************************************/
|
16216
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16217
|
+
|
16218
|
+
"use strict";
|
16219
|
+
__webpack_require__.r(__webpack_exports__);
|
16220
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16221
|
+
/* harmony export */ "default": () => (/* binding */ findDOMNode),
|
16222
|
+
/* harmony export */ getDOM: () => (/* binding */ getDOM),
|
16223
|
+
/* harmony export */ isDOM: () => (/* binding */ isDOM)
|
16224
|
+
/* harmony export */ });
|
16225
|
+
function isDOM(node) {
|
16226
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Element
|
16227
|
+
// Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
|
16228
|
+
return node instanceof HTMLElement || node instanceof SVGElement;
|
16229
|
+
}
|
16230
|
+
|
16231
|
+
/**
|
16232
|
+
* Retrieves a DOM node via a ref, and does not invoke `findDOMNode`.
|
16233
|
+
*/
|
16234
|
+
function getDOM(node) {
|
16235
|
+
if (node && typeof node === 'object' && isDOM(node.nativeElement)) {
|
16236
|
+
return node.nativeElement;
|
16237
|
+
}
|
16238
|
+
if (isDOM(node)) {
|
16239
|
+
return node;
|
16240
|
+
}
|
16241
|
+
return null;
|
16242
|
+
}
|
16243
|
+
|
16244
|
+
/**
|
16245
|
+
* Return if a node is a DOM node. Else will return by `findDOMNode`
|
16246
|
+
*/
|
16247
|
+
function findDOMNode(node) {
|
16248
|
+
const domNode = getDOM(node);
|
16249
|
+
if (domNode) {
|
16250
|
+
return domNode;
|
16251
|
+
}
|
16252
|
+
if (node && typeof node === 'object' && 'current' in node) {
|
16253
|
+
const refDomNode = getDOM(node.current);
|
16254
|
+
if (refDomNode) {
|
16255
|
+
return refDomNode;
|
16256
|
+
}
|
16257
|
+
}
|
16258
|
+
return null;
|
16259
|
+
}
|
16260
|
+
|
16261
|
+
/***/ }),
|
16262
|
+
|
14588
16263
|
/***/ "./node_modules/@rc-component/util/es/KeyCode.js":
|
14589
16264
|
/*!*******************************************************!*\
|
14590
16265
|
!*** ./node_modules/@rc-component/util/es/KeyCode.js ***!
|
@@ -15170,6 +16845,128 @@ function isFragment(object) {
|
|
15170
16845
|
|
15171
16846
|
/***/ }),
|
15172
16847
|
|
16848
|
+
/***/ "./node_modules/@rc-component/util/es/getScrollBarSize.js":
|
16849
|
+
/*!****************************************************************!*\
|
16850
|
+
!*** ./node_modules/@rc-component/util/es/getScrollBarSize.js ***!
|
16851
|
+
\****************************************************************/
|
16852
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16853
|
+
|
16854
|
+
"use strict";
|
16855
|
+
__webpack_require__.r(__webpack_exports__);
|
16856
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16857
|
+
/* harmony export */ "default": () => (/* binding */ getScrollBarSize),
|
16858
|
+
/* harmony export */ getTargetScrollBarSize: () => (/* binding */ getTargetScrollBarSize)
|
16859
|
+
/* harmony export */ });
|
16860
|
+
/* harmony import */ var _Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dom/dynamicCSS */ "./node_modules/@rc-component/util/es/Dom/dynamicCSS.js");
|
16861
|
+
/* eslint-disable no-param-reassign */
|
16862
|
+
|
16863
|
+
let cached;
|
16864
|
+
function measureScrollbarSize(ele) {
|
16865
|
+
const randomId = `rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`;
|
16866
|
+
const measureEle = document.createElement('div');
|
16867
|
+
measureEle.id = randomId;
|
16868
|
+
|
16869
|
+
// Create Style
|
16870
|
+
const measureStyle = measureEle.style;
|
16871
|
+
measureStyle.position = 'absolute';
|
16872
|
+
measureStyle.left = '0';
|
16873
|
+
measureStyle.top = '0';
|
16874
|
+
measureStyle.width = '100px';
|
16875
|
+
measureStyle.height = '100px';
|
16876
|
+
measureStyle.overflow = 'scroll';
|
16877
|
+
|
16878
|
+
// Clone Style if needed
|
16879
|
+
let fallbackWidth;
|
16880
|
+
let fallbackHeight;
|
16881
|
+
if (ele) {
|
16882
|
+
const targetStyle = getComputedStyle(ele);
|
16883
|
+
measureStyle.scrollbarColor = targetStyle.scrollbarColor;
|
16884
|
+
measureStyle.scrollbarWidth = targetStyle.scrollbarWidth;
|
16885
|
+
|
16886
|
+
// Set Webkit style
|
16887
|
+
const webkitScrollbarStyle = getComputedStyle(ele, '::-webkit-scrollbar');
|
16888
|
+
const width = parseInt(webkitScrollbarStyle.width, 10);
|
16889
|
+
const height = parseInt(webkitScrollbarStyle.height, 10);
|
16890
|
+
|
16891
|
+
// Try wrap to handle CSP case
|
16892
|
+
try {
|
16893
|
+
const widthStyle = width ? `width: ${webkitScrollbarStyle.width};` : '';
|
16894
|
+
const heightStyle = height ? `height: ${webkitScrollbarStyle.height};` : '';
|
16895
|
+
(0,_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_0__.updateCSS)(`
|
16896
|
+
#${randomId}::-webkit-scrollbar {
|
16897
|
+
${widthStyle}
|
16898
|
+
${heightStyle}
|
16899
|
+
}`, randomId);
|
16900
|
+
} catch (e) {
|
16901
|
+
// Can't wrap, just log error
|
16902
|
+
console.error(e);
|
16903
|
+
|
16904
|
+
// Get from style directly
|
16905
|
+
fallbackWidth = width;
|
16906
|
+
fallbackHeight = height;
|
16907
|
+
}
|
16908
|
+
}
|
16909
|
+
document.body.appendChild(measureEle);
|
16910
|
+
|
16911
|
+
// Measure. Get fallback style if provided
|
16912
|
+
const scrollWidth = ele && fallbackWidth && !isNaN(fallbackWidth) ? fallbackWidth : measureEle.offsetWidth - measureEle.clientWidth;
|
16913
|
+
const scrollHeight = ele && fallbackHeight && !isNaN(fallbackHeight) ? fallbackHeight : measureEle.offsetHeight - measureEle.clientHeight;
|
16914
|
+
|
16915
|
+
// Clean up
|
16916
|
+
document.body.removeChild(measureEle);
|
16917
|
+
(0,_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_0__.removeCSS)(randomId);
|
16918
|
+
return {
|
16919
|
+
width: scrollWidth,
|
16920
|
+
height: scrollHeight
|
16921
|
+
};
|
16922
|
+
}
|
16923
|
+
function getScrollBarSize(fresh) {
|
16924
|
+
if (typeof document === 'undefined') {
|
16925
|
+
return 0;
|
16926
|
+
}
|
16927
|
+
if (fresh || cached === undefined) {
|
16928
|
+
cached = measureScrollbarSize();
|
16929
|
+
}
|
16930
|
+
return cached.width;
|
16931
|
+
}
|
16932
|
+
function getTargetScrollBarSize(target) {
|
16933
|
+
if (typeof document === 'undefined' || !target || !(target instanceof Element)) {
|
16934
|
+
return {
|
16935
|
+
width: 0,
|
16936
|
+
height: 0
|
16937
|
+
};
|
16938
|
+
}
|
16939
|
+
return measureScrollbarSize(target);
|
16940
|
+
}
|
16941
|
+
|
16942
|
+
/***/ }),
|
16943
|
+
|
16944
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useEvent.js":
|
16945
|
+
/*!**************************************************************!*\
|
16946
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useEvent.js ***!
|
16947
|
+
\**************************************************************/
|
16948
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16949
|
+
|
16950
|
+
"use strict";
|
16951
|
+
__webpack_require__.r(__webpack_exports__);
|
16952
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16953
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
16954
|
+
/* harmony export */ });
|
16955
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
16956
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
16957
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
16958
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
16959
|
+
|
16960
|
+
function useEvent(callback) {
|
16961
|
+
const fnRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
|
16962
|
+
fnRef.current = callback;
|
16963
|
+
const memoFn = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((...args) => fnRef.current?.(...args), []);
|
16964
|
+
return memoFn;
|
16965
|
+
}
|
16966
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useEvent);
|
16967
|
+
|
16968
|
+
/***/ }),
|
16969
|
+
|
15173
16970
|
/***/ "./node_modules/@rc-component/util/es/hooks/useId.js":
|
15174
16971
|
/*!***********************************************************!*\
|
15175
16972
|
!*** ./node_modules/@rc-component/util/es/hooks/useId.js ***!
|
@@ -15239,6 +17036,54 @@ function useCompatId(id) {
|
|
15239
17036
|
|
15240
17037
|
/***/ }),
|
15241
17038
|
|
17039
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js":
|
17040
|
+
/*!*********************************************************************!*\
|
17041
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js ***!
|
17042
|
+
\*********************************************************************/
|
17043
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17044
|
+
|
17045
|
+
"use strict";
|
17046
|
+
__webpack_require__.r(__webpack_exports__);
|
17047
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17048
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
17049
|
+
/* harmony export */ useLayoutUpdateEffect: () => (/* binding */ useLayoutUpdateEffect)
|
17050
|
+
/* harmony export */ });
|
17051
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
17052
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
17053
|
+
/* harmony import */ var _Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Dom/canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
17054
|
+
|
17055
|
+
|
17056
|
+
|
17057
|
+
/**
|
17058
|
+
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
17059
|
+
*/
|
17060
|
+
const useInternalLayoutEffect = true && (0,_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])() ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
|
17061
|
+
const useLayoutEffect = (callback, deps) => {
|
17062
|
+
const firstMountRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(true);
|
17063
|
+
useInternalLayoutEffect(() => {
|
17064
|
+
return callback(firstMountRef.current);
|
17065
|
+
}, deps);
|
17066
|
+
|
17067
|
+
// We tell react that first mount has passed
|
17068
|
+
useInternalLayoutEffect(() => {
|
17069
|
+
firstMountRef.current = false;
|
17070
|
+
return () => {
|
17071
|
+
firstMountRef.current = true;
|
17072
|
+
};
|
17073
|
+
}, []);
|
17074
|
+
};
|
17075
|
+
const useLayoutUpdateEffect = (callback, deps) => {
|
17076
|
+
useLayoutEffect(firstMount => {
|
17077
|
+
if (!firstMount) {
|
17078
|
+
return callback();
|
17079
|
+
}
|
17080
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
17081
|
+
}, deps);
|
17082
|
+
};
|
17083
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useLayoutEffect);
|
17084
|
+
|
17085
|
+
/***/ }),
|
17086
|
+
|
15242
17087
|
/***/ "./node_modules/@rc-component/util/es/hooks/useMemo.js":
|
15243
17088
|
/*!*************************************************************!*\
|
15244
17089
|
!*** ./node_modules/@rc-component/util/es/hooks/useMemo.js ***!
|
@@ -15264,6 +17109,219 @@ function useMemo(getValue, condition, shouldUpdate) {
|
|
15264
17109
|
|
15265
17110
|
/***/ }),
|
15266
17111
|
|
17112
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useMergedState.js":
|
17113
|
+
/*!********************************************************************!*\
|
17114
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useMergedState.js ***!
|
17115
|
+
\********************************************************************/
|
17116
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17117
|
+
|
17118
|
+
"use strict";
|
17119
|
+
__webpack_require__.r(__webpack_exports__);
|
17120
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17121
|
+
/* harmony export */ "default": () => (/* binding */ useMergedState)
|
17122
|
+
/* harmony export */ });
|
17123
|
+
/* harmony import */ var _useEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useEvent */ "./node_modules/@rc-component/util/es/hooks/useEvent.js");
|
17124
|
+
/* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useLayoutEffect */ "./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js");
|
17125
|
+
/* harmony import */ var _useState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useState */ "./node_modules/@rc-component/util/es/hooks/useState.js");
|
17126
|
+
|
17127
|
+
|
17128
|
+
|
17129
|
+
/** We only think `undefined` is empty */
|
17130
|
+
function hasValue(value) {
|
17131
|
+
return value !== undefined;
|
17132
|
+
}
|
17133
|
+
|
17134
|
+
/**
|
17135
|
+
* Similar to `useState` but will use props value if provided.
|
17136
|
+
* Note that internal use rc-util `useState` hook.
|
17137
|
+
*/
|
17138
|
+
function useMergedState(defaultStateValue, option) {
|
17139
|
+
const {
|
17140
|
+
defaultValue,
|
17141
|
+
value,
|
17142
|
+
onChange,
|
17143
|
+
postState
|
17144
|
+
} = option || {};
|
17145
|
+
|
17146
|
+
// ======================= Init =======================
|
17147
|
+
const [innerValue, setInnerValue] = (0,_useState__WEBPACK_IMPORTED_MODULE_2__["default"])(() => {
|
17148
|
+
if (hasValue(value)) {
|
17149
|
+
return value;
|
17150
|
+
} else if (hasValue(defaultValue)) {
|
17151
|
+
return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
|
17152
|
+
} else {
|
17153
|
+
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
17154
|
+
}
|
17155
|
+
});
|
17156
|
+
const mergedValue = value !== undefined ? value : innerValue;
|
17157
|
+
const postMergedValue = postState ? postState(mergedValue) : mergedValue;
|
17158
|
+
|
17159
|
+
// ====================== Change ======================
|
17160
|
+
const onChangeFn = (0,_useEvent__WEBPACK_IMPORTED_MODULE_0__["default"])(onChange);
|
17161
|
+
const [prevValue, setPrevValue] = (0,_useState__WEBPACK_IMPORTED_MODULE_2__["default"])([mergedValue]);
|
17162
|
+
(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__.useLayoutUpdateEffect)(() => {
|
17163
|
+
const prev = prevValue[0];
|
17164
|
+
if (innerValue !== prev) {
|
17165
|
+
onChangeFn(innerValue, prev);
|
17166
|
+
}
|
17167
|
+
}, [prevValue]);
|
17168
|
+
|
17169
|
+
// Sync value back to `undefined` when it from control to un-control
|
17170
|
+
(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__.useLayoutUpdateEffect)(() => {
|
17171
|
+
if (!hasValue(value)) {
|
17172
|
+
setInnerValue(value);
|
17173
|
+
}
|
17174
|
+
}, [value]);
|
17175
|
+
|
17176
|
+
// ====================== Update ======================
|
17177
|
+
const triggerChange = (0,_useEvent__WEBPACK_IMPORTED_MODULE_0__["default"])((updater, ignoreDestroy) => {
|
17178
|
+
setInnerValue(updater, ignoreDestroy);
|
17179
|
+
setPrevValue([mergedValue], ignoreDestroy);
|
17180
|
+
});
|
17181
|
+
return [postMergedValue, triggerChange];
|
17182
|
+
}
|
17183
|
+
|
17184
|
+
/***/ }),
|
17185
|
+
|
17186
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useState.js":
|
17187
|
+
/*!**************************************************************!*\
|
17188
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useState.js ***!
|
17189
|
+
\**************************************************************/
|
17190
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17191
|
+
|
17192
|
+
"use strict";
|
17193
|
+
__webpack_require__.r(__webpack_exports__);
|
17194
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17195
|
+
/* harmony export */ "default": () => (/* binding */ useSafeState)
|
17196
|
+
/* harmony export */ });
|
17197
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
17198
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
17199
|
+
|
17200
|
+
/**
|
17201
|
+
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
17202
|
+
* We do not make this auto is to avoid real memory leak.
|
17203
|
+
* Developer should confirm it's safe to ignore themselves.
|
17204
|
+
*/
|
17205
|
+
function useSafeState(defaultValue) {
|
17206
|
+
const destroyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);
|
17207
|
+
const [value, setValue] = react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultValue);
|
17208
|
+
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
17209
|
+
destroyRef.current = false;
|
17210
|
+
return () => {
|
17211
|
+
destroyRef.current = true;
|
17212
|
+
};
|
17213
|
+
}, []);
|
17214
|
+
function safeSetState(updater, ignoreDestroy) {
|
17215
|
+
if (ignoreDestroy && destroyRef.current) {
|
17216
|
+
return;
|
17217
|
+
}
|
17218
|
+
setValue(updater);
|
17219
|
+
}
|
17220
|
+
return [value, safeSetState];
|
17221
|
+
}
|
17222
|
+
|
17223
|
+
/***/ }),
|
17224
|
+
|
17225
|
+
/***/ "./node_modules/@rc-component/util/es/hooks/useSyncState.js":
|
17226
|
+
/*!******************************************************************!*\
|
17227
|
+
!*** ./node_modules/@rc-component/util/es/hooks/useSyncState.js ***!
|
17228
|
+
\******************************************************************/
|
17229
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17230
|
+
|
17231
|
+
"use strict";
|
17232
|
+
__webpack_require__.r(__webpack_exports__);
|
17233
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17234
|
+
/* harmony export */ "default": () => (/* binding */ useSyncState)
|
17235
|
+
/* harmony export */ });
|
17236
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
17237
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
17238
|
+
/* harmony import */ var _useEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useEvent */ "./node_modules/@rc-component/util/es/hooks/useEvent.js");
|
17239
|
+
|
17240
|
+
|
17241
|
+
/**
|
17242
|
+
* Same as React.useState but will always get latest state.
|
17243
|
+
* This is useful when React merge multiple state updates into one.
|
17244
|
+
* e.g. onTransitionEnd trigger multiple event at once will be merged state update in React.
|
17245
|
+
*/
|
17246
|
+
function useSyncState(defaultValue) {
|
17247
|
+
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
17248
|
+
const currentValueRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(defaultValue);
|
17249
|
+
const getValue = (0,_useEvent__WEBPACK_IMPORTED_MODULE_1__["default"])(() => {
|
17250
|
+
return currentValueRef.current;
|
17251
|
+
});
|
17252
|
+
const setValue = (0,_useEvent__WEBPACK_IMPORTED_MODULE_1__["default"])(updater => {
|
17253
|
+
currentValueRef.current = typeof updater === 'function' ? updater(currentValueRef.current) : updater;
|
17254
|
+
forceUpdate();
|
17255
|
+
});
|
17256
|
+
return [getValue, setValue];
|
17257
|
+
}
|
17258
|
+
|
17259
|
+
/***/ }),
|
17260
|
+
|
17261
|
+
/***/ "./node_modules/@rc-component/util/es/index.js":
|
17262
|
+
/*!*****************************************************!*\
|
17263
|
+
!*** ./node_modules/@rc-component/util/es/index.js ***!
|
17264
|
+
\*****************************************************/
|
17265
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17266
|
+
|
17267
|
+
"use strict";
|
17268
|
+
__webpack_require__.r(__webpack_exports__);
|
17269
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17270
|
+
/* harmony export */ get: () => (/* reexport safe */ _utils_get__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
17271
|
+
/* harmony export */ merge: () => (/* reexport safe */ _utils_set__WEBPACK_IMPORTED_MODULE_4__.merge),
|
17272
|
+
/* harmony export */ noteOnce: () => (/* reexport safe */ _warning__WEBPACK_IMPORTED_MODULE_5__.noteOnce),
|
17273
|
+
/* harmony export */ omit: () => (/* reexport safe */ _omit__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
17274
|
+
/* harmony export */ set: () => (/* reexport safe */ _utils_set__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
17275
|
+
/* harmony export */ supportNodeRef: () => (/* reexport safe */ _ref__WEBPACK_IMPORTED_MODULE_2__.supportNodeRef),
|
17276
|
+
/* harmony export */ supportRef: () => (/* reexport safe */ _ref__WEBPACK_IMPORTED_MODULE_2__.supportRef),
|
17277
|
+
/* harmony export */ toArray: () => (/* reexport safe */ _Children_toArray__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
17278
|
+
/* harmony export */ useComposeRef: () => (/* reexport safe */ _ref__WEBPACK_IMPORTED_MODULE_2__.useComposeRef),
|
17279
|
+
/* harmony export */ useEvent: () => (/* reexport safe */ _hooks_useEvent__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
17280
|
+
/* harmony export */ useMergedState: () => (/* reexport safe */ _hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
17281
|
+
/* harmony export */ warning: () => (/* reexport safe */ _warning__WEBPACK_IMPORTED_MODULE_5__["default"])
|
17282
|
+
/* harmony export */ });
|
17283
|
+
/* harmony import */ var _hooks_useEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hooks/useEvent */ "./node_modules/@rc-component/util/es/hooks/useEvent.js");
|
17284
|
+
/* harmony import */ var _hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hooks/useMergedState */ "./node_modules/@rc-component/util/es/hooks/useMergedState.js");
|
17285
|
+
/* harmony import */ var _ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ref */ "./node_modules/@rc-component/util/es/ref.js");
|
17286
|
+
/* harmony import */ var _utils_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/get */ "./node_modules/@rc-component/util/es/utils/get.js");
|
17287
|
+
/* harmony import */ var _utils_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/set */ "./node_modules/@rc-component/util/es/utils/set.js");
|
17288
|
+
/* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./warning */ "./node_modules/@rc-component/util/es/warning.js");
|
17289
|
+
/* harmony import */ var _omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./omit */ "./node_modules/@rc-component/util/es/omit.js");
|
17290
|
+
/* harmony import */ var _Children_toArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Children/toArray */ "./node_modules/@rc-component/util/es/Children/toArray.js");
|
17291
|
+
|
17292
|
+
|
17293
|
+
|
17294
|
+
|
17295
|
+
|
17296
|
+
|
17297
|
+
|
17298
|
+
|
17299
|
+
|
17300
|
+
/***/ }),
|
17301
|
+
|
17302
|
+
/***/ "./node_modules/@rc-component/util/es/omit.js":
|
17303
|
+
/*!****************************************************!*\
|
17304
|
+
!*** ./node_modules/@rc-component/util/es/omit.js ***!
|
17305
|
+
\****************************************************/
|
17306
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17307
|
+
|
17308
|
+
"use strict";
|
17309
|
+
__webpack_require__.r(__webpack_exports__);
|
17310
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17311
|
+
/* harmony export */ "default": () => (/* binding */ omit)
|
17312
|
+
/* harmony export */ });
|
17313
|
+
function omit(obj, fields) {
|
17314
|
+
const clone = Object.assign({}, obj);
|
17315
|
+
if (Array.isArray(fields)) {
|
17316
|
+
fields.forEach(key => {
|
17317
|
+
delete clone[key];
|
17318
|
+
});
|
17319
|
+
}
|
17320
|
+
return clone;
|
17321
|
+
}
|
17322
|
+
|
17323
|
+
/***/ }),
|
17324
|
+
|
15267
17325
|
/***/ "./node_modules/@rc-component/util/es/pickAttrs.js":
|
15268
17326
|
/*!*********************************************************!*\
|
15269
17327
|
!*** ./node_modules/@rc-component/util/es/pickAttrs.js ***!
|
@@ -15341,6 +17399,63 @@ function pickAttrs(props, ariaOnly = false) {
|
|
15341
17399
|
|
15342
17400
|
/***/ }),
|
15343
17401
|
|
17402
|
+
/***/ "./node_modules/@rc-component/util/es/raf.js":
|
17403
|
+
/*!***************************************************!*\
|
17404
|
+
!*** ./node_modules/@rc-component/util/es/raf.js ***!
|
17405
|
+
\***************************************************/
|
17406
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17407
|
+
|
17408
|
+
"use strict";
|
17409
|
+
__webpack_require__.r(__webpack_exports__);
|
17410
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17411
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
17412
|
+
/* harmony export */ });
|
17413
|
+
let raf = callback => +setTimeout(callback, 16);
|
17414
|
+
let caf = num => clearTimeout(num);
|
17415
|
+
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
17416
|
+
raf = callback => window.requestAnimationFrame(callback);
|
17417
|
+
caf = handle => window.cancelAnimationFrame(handle);
|
17418
|
+
}
|
17419
|
+
let rafUUID = 0;
|
17420
|
+
const rafIds = new Map();
|
17421
|
+
function cleanup(id) {
|
17422
|
+
rafIds.delete(id);
|
17423
|
+
}
|
17424
|
+
const wrapperRaf = (callback, times = 1) => {
|
17425
|
+
rafUUID += 1;
|
17426
|
+
const id = rafUUID;
|
17427
|
+
function callRef(leftTimes) {
|
17428
|
+
if (leftTimes === 0) {
|
17429
|
+
// Clean up
|
17430
|
+
cleanup(id);
|
17431
|
+
|
17432
|
+
// Trigger
|
17433
|
+
callback();
|
17434
|
+
} else {
|
17435
|
+
// Next raf
|
17436
|
+
const realId = raf(() => {
|
17437
|
+
callRef(leftTimes - 1);
|
17438
|
+
});
|
17439
|
+
|
17440
|
+
// Bind real raf id
|
17441
|
+
rafIds.set(id, realId);
|
17442
|
+
}
|
17443
|
+
}
|
17444
|
+
callRef(times);
|
17445
|
+
return id;
|
17446
|
+
};
|
17447
|
+
wrapperRaf.cancel = id => {
|
17448
|
+
const realId = rafIds.get(id);
|
17449
|
+
cleanup(id);
|
17450
|
+
return caf(realId);
|
17451
|
+
};
|
17452
|
+
if (true) {
|
17453
|
+
wrapperRaf.ids = () => rafIds;
|
17454
|
+
}
|
17455
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (wrapperRaf);
|
17456
|
+
|
17457
|
+
/***/ }),
|
17458
|
+
|
15344
17459
|
/***/ "./node_modules/@rc-component/util/es/ref.js":
|
15345
17460
|
/*!***************************************************!*\
|
15346
17461
|
!*** ./node_modules/@rc-component/util/es/ref.js ***!
|
@@ -15366,6 +17481,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
15366
17481
|
|
15367
17482
|
|
15368
17483
|
|
17484
|
+
const ReactMajorVersion = Number(react__WEBPACK_IMPORTED_MODULE_0__.version.split('.')[0]);
|
15369
17485
|
const fillRef = (ref, node) => {
|
15370
17486
|
if (typeof ref === 'function') {
|
15371
17487
|
ref(node);
|
@@ -15399,7 +17515,7 @@ const supportRef = nodeOrComponent => {
|
|
15399
17515
|
}
|
15400
17516
|
|
15401
17517
|
// React 19 no need `forwardRef` anymore. So just pass if is a React element.
|
15402
|
-
if (isReactElement(nodeOrComponent) &&
|
17518
|
+
if (isReactElement(nodeOrComponent) && ReactMajorVersion >= 19) {
|
15403
17519
|
return true;
|
15404
17520
|
}
|
15405
17521
|
const type = (0,react_is__WEBPACK_IMPORTED_MODULE_1__.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
@@ -15440,6 +17556,120 @@ const getNodeRef = node => {
|
|
15440
17556
|
|
15441
17557
|
/***/ }),
|
15442
17558
|
|
17559
|
+
/***/ "./node_modules/@rc-component/util/es/utils/get.js":
|
17560
|
+
/*!*********************************************************!*\
|
17561
|
+
!*** ./node_modules/@rc-component/util/es/utils/get.js ***!
|
17562
|
+
\*********************************************************/
|
17563
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17564
|
+
|
17565
|
+
"use strict";
|
17566
|
+
__webpack_require__.r(__webpack_exports__);
|
17567
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17568
|
+
/* harmony export */ "default": () => (/* binding */ get)
|
17569
|
+
/* harmony export */ });
|
17570
|
+
function get(entity, path) {
|
17571
|
+
let current = entity;
|
17572
|
+
for (let i = 0; i < path.length; i += 1) {
|
17573
|
+
if (current === null || current === undefined) {
|
17574
|
+
return undefined;
|
17575
|
+
}
|
17576
|
+
current = current[path[i]];
|
17577
|
+
}
|
17578
|
+
return current;
|
17579
|
+
}
|
17580
|
+
|
17581
|
+
/***/ }),
|
17582
|
+
|
17583
|
+
/***/ "./node_modules/@rc-component/util/es/utils/set.js":
|
17584
|
+
/*!*********************************************************!*\
|
17585
|
+
!*** ./node_modules/@rc-component/util/es/utils/set.js ***!
|
17586
|
+
\*********************************************************/
|
17587
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17588
|
+
|
17589
|
+
"use strict";
|
17590
|
+
__webpack_require__.r(__webpack_exports__);
|
17591
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17592
|
+
/* harmony export */ "default": () => (/* binding */ set),
|
17593
|
+
/* harmony export */ merge: () => (/* binding */ merge)
|
17594
|
+
/* harmony export */ });
|
17595
|
+
/* harmony import */ var _get__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get */ "./node_modules/@rc-component/util/es/utils/get.js");
|
17596
|
+
|
17597
|
+
function internalSet(entity, paths, value, removeIfUndefined) {
|
17598
|
+
if (!paths.length) {
|
17599
|
+
return value;
|
17600
|
+
}
|
17601
|
+
const [path, ...restPath] = paths;
|
17602
|
+
let clone;
|
17603
|
+
if (!entity && typeof path === 'number') {
|
17604
|
+
clone = [];
|
17605
|
+
} else if (Array.isArray(entity)) {
|
17606
|
+
clone = [...entity];
|
17607
|
+
} else {
|
17608
|
+
clone = {
|
17609
|
+
...entity
|
17610
|
+
};
|
17611
|
+
}
|
17612
|
+
|
17613
|
+
// Delete prop if `removeIfUndefined` and value is undefined
|
17614
|
+
if (removeIfUndefined && value === undefined && restPath.length === 1) {
|
17615
|
+
delete clone[path][restPath[0]];
|
17616
|
+
} else {
|
17617
|
+
clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined);
|
17618
|
+
}
|
17619
|
+
return clone;
|
17620
|
+
}
|
17621
|
+
function set(entity, paths, value, removeIfUndefined = false) {
|
17622
|
+
// Do nothing if `removeIfUndefined` and parent object not exist
|
17623
|
+
if (paths.length && removeIfUndefined && value === undefined && !(0,_get__WEBPACK_IMPORTED_MODULE_0__["default"])(entity, paths.slice(0, -1))) {
|
17624
|
+
return entity;
|
17625
|
+
}
|
17626
|
+
return internalSet(entity, paths, value, removeIfUndefined);
|
17627
|
+
}
|
17628
|
+
function isObject(obj) {
|
17629
|
+
return typeof obj === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
17630
|
+
}
|
17631
|
+
function createEmpty(source) {
|
17632
|
+
return Array.isArray(source) ? [] : {};
|
17633
|
+
}
|
17634
|
+
const keys = typeof Reflect === 'undefined' ? Object.keys : Reflect.ownKeys;
|
17635
|
+
|
17636
|
+
/**
|
17637
|
+
* Merge objects which will create
|
17638
|
+
*/
|
17639
|
+
function merge(...sources) {
|
17640
|
+
let clone = createEmpty(sources[0]);
|
17641
|
+
sources.forEach(src => {
|
17642
|
+
function internalMerge(path, parentLoopSet) {
|
17643
|
+
const loopSet = new Set(parentLoopSet);
|
17644
|
+
const value = (0,_get__WEBPACK_IMPORTED_MODULE_0__["default"])(src, path);
|
17645
|
+
const isArr = Array.isArray(value);
|
17646
|
+
if (isArr || isObject(value)) {
|
17647
|
+
// Only add not loop obj
|
17648
|
+
if (!loopSet.has(value)) {
|
17649
|
+
loopSet.add(value);
|
17650
|
+
const originValue = (0,_get__WEBPACK_IMPORTED_MODULE_0__["default"])(clone, path);
|
17651
|
+
if (isArr) {
|
17652
|
+
// Array will always be override
|
17653
|
+
clone = set(clone, path, []);
|
17654
|
+
} else if (!originValue || typeof originValue !== 'object') {
|
17655
|
+
// Init container if not exist
|
17656
|
+
clone = set(clone, path, createEmpty(value));
|
17657
|
+
}
|
17658
|
+
keys(value).forEach(key => {
|
17659
|
+
internalMerge([...path, key], loopSet);
|
17660
|
+
});
|
17661
|
+
}
|
17662
|
+
} else {
|
17663
|
+
clone = set(clone, path, value);
|
17664
|
+
}
|
17665
|
+
}
|
17666
|
+
internalMerge([]);
|
17667
|
+
});
|
17668
|
+
return clone;
|
17669
|
+
}
|
17670
|
+
|
17671
|
+
/***/ }),
|
17672
|
+
|
15443
17673
|
/***/ "./node_modules/@rc-component/util/es/warning.js":
|
15444
17674
|
/*!*******************************************************!*\
|
15445
17675
|
!*** ./node_modules/@rc-component/util/es/warning.js ***!
|
@@ -46192,7 +48422,7 @@ var useStyles = function useStyles(_ref) {
|
|
46192
48422
|
borderColor: color.border_accent
|
46193
48423
|
}),
|
46194
48424
|
minHeight: (0,_util__WEBPACK_IMPORTED_MODULE_3__.px)(height[size] || height.sm),
|
46195
|
-
padding: "".concat(_constants__WEBPACK_IMPORTED_MODULE_2__.INPUT_VERTICAL_PADDING, "px ").concat(_constants__WEBPACK_IMPORTED_MODULE_2__.INPUT_HORIZONTAL_PADDING, "px"),
|
48425
|
+
padding: "".concat(_constants__WEBPACK_IMPORTED_MODULE_2__.INPUT_VERTICAL_PADDING, "px ") + "".concat(_constants__WEBPACK_IMPORTED_MODULE_2__.INPUT_HORIZONTAL_PADDING, "px"),
|
46196
48426
|
color: foreColor,
|
46197
48427
|
backgroundColor: backgroundColor,
|
46198
48428
|
borderColor: borderColor,
|
@@ -46205,9 +48435,10 @@ var useStyles = function useStyles(_ref) {
|
|
46205
48435
|
color: color.text_tertiary
|
46206
48436
|
});
|
46207
48437
|
},
|
46208
|
-
valueContainer: function valueContainer(baseStyles) {
|
48438
|
+
valueContainer: function valueContainer(baseStyles, state) {
|
46209
48439
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
46210
|
-
padding: "0 ".concat(spacing['03'], " 0 0")
|
48440
|
+
padding: "0 ".concat(spacing['03'], " 0 0"),
|
48441
|
+
gap: state.isMulti ? spacing['02'] : 0
|
46211
48442
|
});
|
46212
48443
|
},
|
46213
48444
|
placeholder: function placeholder(baseStyles) {
|
@@ -46271,7 +48502,8 @@ var useStyles = function useStyles(_ref) {
|
|
46271
48502
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
46272
48503
|
backgroundColor: color.bg,
|
46273
48504
|
border: "1px solid ".concat(color.border),
|
46274
|
-
borderRadius: spacing['02']
|
48505
|
+
borderRadius: spacing['02'],
|
48506
|
+
margin: 0
|
46275
48507
|
});
|
46276
48508
|
},
|
46277
48509
|
multiValueLabel: function multiValueLabel(baseStyles) {
|
@@ -52452,7 +54684,7 @@ var Modal2 = function Modal2(_ref) {
|
|
52452
54684
|
zIndex: zIndex,
|
52453
54685
|
width: width,
|
52454
54686
|
styles: {
|
52455
|
-
|
54687
|
+
container: {
|
52456
54688
|
maxHeight: maxHeight
|
52457
54689
|
}
|
52458
54690
|
},
|
@@ -52741,7 +54973,7 @@ var theme = function theme(cb) {
|
|
52741
54973
|
var StyledModal = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(ModalAdaptor).withConfig({
|
52742
54974
|
displayName: "StyledModal",
|
52743
54975
|
componentId: "sc-flnd5c-0"
|
52744
|
-
})(["&.", "-root{div[role='dialog']{margin:0 auto;}}.", "{&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;box-sizing:border-box;display:flex;align-items:center;justify-content:center;}&-
|
54976
|
+
})(["&.", "-root{div[role='dialog']{margin:0 auto;}}.", "{&-mask{position:fixed;inset:0;height:100%;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:none;&-hidden{display:none;}}&-fade{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.55,0,0.55,0.2);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}&-wrap{position:fixed;inset:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch;box-sizing:border-box;display:flex;align-items:center;justify-content:center;}&-container{position:relative;display:flex;flex-direction:column;box-sizing:border-box;padding-top:", ";background-color:", ";border-radius:", ";font-family:", ";box-shadow:", ";pointer-events:auto;}&-close{position:absolute;margin-top:8px;inset-inline-end:16px;z-index:1;padding:4px;text-decoration:none;background:transparent;border-radius:4px;width:24px;height:24px;border:0;outline:0;cursor:pointer;svg{color:", ";}&:hover{background-color:", ";svg{color:", ";}}}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-title{display:flex;flex-direction:column;gap:", ";}&-title-wrap{display:flex;flex-direction:row;align-items:center;gap:", ";}&-body{overflow-y:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-zoom{&-enter,&-appear{opacity:0;animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.08,0.82,0.17,1);animation-play-state:paused;}&-leave{animation-duration:0.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(0.6,0.04,0.98,0.34);animation-play-state:paused;}&-enter-active,&-appear-active{animation-name:", ";animation-play-state:running;}&-leave-active{animation-name:", ";animation-play-state:running;}}}"], prefixCls, prefixCls, theme(function (t) {
|
52745
54977
|
return t.color.modal_shadow_bg;
|
52746
54978
|
}), theme(function (t) {
|
52747
54979
|
return t.color.modal2_shadow_bg;
|
@@ -100142,7 +102374,7 @@ var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMP
|
|
100142
102374
|
"id": "claude_uikit_icon",
|
100143
102375
|
"use": "claude_uikit_icon-usage",
|
100144
102376
|
"viewBox": "0 0 20 20",
|
100145
|
-
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 20\" id=\"claude_uikit_icon\"><path fill=\"#D97757\" d=\"m3.927 13.37 3.947-2.208.067-.191-.067-.107h-.192l-.66-.04-2.255-.061-1.956-.081-1.895-.101-.477-.102-.447-.587.046-.293.401-.268.575.05 1.269.086 1.904.131 1.382.081 2.047.212h.325l.046-.131-.111-.081-.087-.081-1.97-1.33L3.684 6.86l-1.118-.81-.604-.41-.305-.385-.131-.84.548-.601.737.05.189.05.746.572 1.594 1.23 2.082 1.527.305.253.122-.087.015-.06-.137-.229-1.132-2.04-1.209-2.074-.537-.86-.143-.515a2.5 2.5 0 0 1-.086-.607L5.245.18l.346-.11.833.11.35.303.518 1.18.838 1.857 1.3 2.526.381.749.204.693.075.212h.
|
102377
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 20\" id=\"claude_uikit_icon\"><path fill=\"#D97757\" d=\"m3.927 13.37 3.947-2.208.067-.191-.067-.107h-.192l-.66-.04-2.255-.061-1.956-.081-1.895-.101-.477-.102-.447-.587.046-.293.401-.268.575.05 1.269.086 1.904.131 1.382.081 2.047.212h.325l.046-.131-.111-.081-.087-.081-1.97-1.33L3.684 6.86l-1.118-.81-.604-.41-.305-.385-.131-.84.548-.601.737.05.189.05.746.572 1.594 1.23 2.082 1.527.305.253.122-.087.015-.06-.137-.229-1.132-2.04-1.209-2.074-.537-.86-.143-.515a2.5 2.5 0 0 1-.086-.607L5.245.18l.346-.11.833.11.35.303.518 1.18.838 1.857 1.3 2.526.381.749.204.693.075.212h.132v-.12l.107-1.423.198-1.746.192-2.248.066-.633.315-.758.624-.41.488.232.4.572-.055.37-.238 1.544-.468 2.419-.305 1.62h.178l.203-.203.822-1.088 1.382-1.72.61-.684.71-.754.457-.36h.863l.635.941-.284.972-.889 1.123-.737.952-1.056 1.417-.66 1.134.061.09.157-.015 2.387-.506 1.29-.232 1.538-.263.697.324.075.329-.273.673-1.646.405-1.93.385-2.875.678-.035.025.04.05 1.296.122.554.03h1.356l2.525.187.66.435.395.531-.067.405-1.015.516-1.371-.324-3.2-.759-1.097-.272h-.152v.09l.915.891 1.675 1.508 2.098 1.943.107.48-.27.38-.284-.04-1.843-1.383-.711-.622-1.61-1.35h-.108v.14l.371.542 1.96 2.936.102.9-.142.293-.508.177-.558-.102-1.148-1.604-1.184-1.808-.955-1.62-.116.067-.563 6.048-.265.309-.61.232-.507-.385-.27-.622.27-1.23.325-1.604.264-1.276.239-1.584.142-.527-.01-.035-.116.015-1.199 1.64-1.823 2.455-1.443 1.539-.345.136-.599-.309.056-.552.334-.491 1.997-2.531 1.204-1.568.777-.906-.005-.13h-.046l-5.303 3.43-.944.121-.407-.379.05-.622.193-.202 1.594-1.094-.005.006z\" /></symbol>"
|
100146
102378
|
});
|
100147
102379
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
100148
102380
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
@@ -100758,7 +102990,7 @@ var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMP
|
|
100758
102990
|
"id": "crewai_uikit_icon",
|
100759
102991
|
"use": "crewai_uikit_icon-usage",
|
100760
102992
|
"viewBox": "0 0 20 20",
|
100761
|
-
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 20\" id=\"crewai_uikit_icon\"><g clip-path=\"url(#crewai_uikit_icon_a)\"><path fill=\"#461816\" d=\"M16.174 8.986a2.3 2.3 0 0 1 2.06 1.129c.402.671.518 1.476.32 2.233l-.113.435a8.33 8.33 0 0 1-2.63 4.215c-.504.43-1.069.885-1.736 1.27l-.023.014c-.335.194-.737.426-1.165.63a9.8 9.8 0 0 1-3.165.973q-1.07.138-2.147.11H7.56a7.16 7.16 0 0 1-4.205-1.559l-.01-.008-.01-.008a6.7 6.7 0 0 1-2.319-3.904 9.1 9.1 0 0 1-.085-3.149C1.157 9.836 1.654 8.357 2.4 7a18 18 0 0 1 2.026-3.065 12.9 12.9 0 0 1 2.967-2.652A8.3 8.3 0 0 1 10.366.086h.004l.002-.001c1.714-.32 3.12.311 4.187 1.05a6.9 6.9 0 0 1 1.996 2.094l.02.033.019.035a4.56 4.56 0 0 1 .423 3.344c-.2.808-.482 1.595-.843 2.345\" /><path fill=\"#fff\" d=\"M15.718 10.97a.622.622 0 0 1 1.046.027c.166.276.214.608.133.919l-.114.435a6.6 6.6 0 0 1-2.087 3.345c-.477.408-.948.782-1.478 1.
|
102993
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 20\" id=\"crewai_uikit_icon\"><g clip-path=\"url(#crewai_uikit_icon_a)\"><path fill=\"#461816\" d=\"M16.174 8.986a2.3 2.3 0 0 1 2.06 1.129c.402.671.518 1.476.32 2.233l-.113.435a8.33 8.33 0 0 1-2.63 4.215c-.504.43-1.069.885-1.736 1.27l-.023.014c-.335.194-.737.426-1.165.63a9.8 9.8 0 0 1-3.165.973q-1.07.138-2.147.11H7.56a7.16 7.16 0 0 1-4.205-1.559l-.01-.008-.01-.008a6.7 6.7 0 0 1-2.319-3.904 9.1 9.1 0 0 1-.085-3.149C1.157 9.836 1.654 8.357 2.4 7a18 18 0 0 1 2.026-3.065 12.9 12.9 0 0 1 2.967-2.652A8.3 8.3 0 0 1 10.366.086h.004l.002-.001c1.714-.32 3.12.311 4.187 1.05a6.9 6.9 0 0 1 1.996 2.094l.02.033.019.035a4.56 4.56 0 0 1 .423 3.344c-.2.808-.482 1.595-.843 2.345\" /><path fill=\"#fff\" d=\"M15.718 10.97a.622.622 0 0 1 1.046.027c.166.276.214.608.133.919l-.114.435a6.6 6.6 0 0 1-2.087 3.345c-.477.408-.948.782-1.478 1.088a15 15 0 0 1-1.086.59 8 8 0 0 1-2.63.81q-.936.123-1.88.097a5.44 5.44 0 0 1-3.198-1.185A4.97 4.97 0 0 1 2.7 14.184a7.4 7.4 0 0 1-.071-2.567A11.3 11.3 0 0 1 3.91 7.811a16.4 16.4 0 0 1 1.843-2.79 11.2 11.2 0 0 1 2.574-2.3 6.6 6.6 0 0 1 2.36-.95c1.089-.204 2.028.172 2.9.777.608.413 1.121.95 1.506 1.577.352.64.446 1.39.261 2.096-.188.77-.465 1.517-.825 2.225l-.186.414q-.4.892-.808 1.78a.635.635 0 0 1-.808.39 2.82 2.82 0 0 1-1.903-2.075 3.8 3.8 0 0 1 .325-2.022c.24-.621.508-1.23.778-1.84l.206-.469a.44.44 0 0 0-.17-.618 1.96 1.96 0 0 0-1 .585q-.707.704-1.345 1.472A18 18 0 0 0 7.437 9.55a6.3 6.3 0 0 0-.68 2.294 5.9 5.9 0 0 0 .058 1.85 1.71 1.71 0 0 0 1.612 1.428 7.23 7.23 0 0 0 4.263-1.106q.728-.5 1.396-1.079c.627-.591 1.147-1.265 1.632-1.966\" /></g><defs><clipPath id=\"crewai_uikit_icon_a\"><path fill=\"#fff\" d=\"M0 0h20v20H0z\" /></clipPath></defs></symbol>"
|
100762
102994
|
});
|
100763
102995
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
100764
102996
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
@@ -102578,7 +104810,7 @@ var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMP
|
|
102578
104810
|
"id": "github_uikit_icon",
|
102579
104811
|
"use": "github_uikit_icon-usage",
|
102580
104812
|
"viewBox": "0 0 16 16",
|
102581
|
-
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 16\" id=\"github_uikit_icon\"><g clip-path=\"url(#github_uikit_icon_a)\"><path fill=\"currentColor\" d=\"M14.687 4.
|
104813
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 16 16\" id=\"github_uikit_icon\"><g clip-path=\"url(#github_uikit_icon_a)\"><path fill=\"currentColor\" d=\"M14.687 4.245a4 4 0 0 0-.358-3.178.53.53 0 0 0-.462-.267 3.98 3.98 0 0 0-3.2 1.6h-1.6a3.98 3.98 0 0 0-3.2-1.6.53.53 0 0 0-.462.267 4 4 0 0 0-.359 3.178 3.9 3.9 0 0 0-.513 1.888v.534a3.74 3.74 0 0 0 3.23 3.698A2.65 2.65 0 0 0 7.2 12v.533H5.6a1.6 1.6 0 0 1-1.6-1.6 2.667 2.667 0 0 0-2.667-2.666.533.533 0 0 0 0 1.066 1.6 1.6 0 0 1 1.6 1.6A2.667 2.667 0 0 0 5.6 13.6h1.6v1.067a.533.533 0 1 0 1.067 0V12a1.6 1.6 0 1 1 3.2 0v2.667a.533.533 0 1 0 1.066 0V12c0-.593-.197-1.168-.562-1.635A3.74 3.74 0 0 0 15.2 6.667v-.534a3.9 3.9 0 0 0-.513-1.888m-.554 2.422a2.667 2.667 0 0 1-2.666 2.666h-3.2A2.667 2.667 0 0 1 5.6 6.667v-.534a2.8 2.8 0 0 1 .46-1.498.53.53 0 0 0 .073-.513 2.92 2.92 0 0 1 .053-2.239 2.93 2.93 0 0 1 2.155 1.338.53.53 0 0 0 .447.246h2.157a.53.53 0 0 0 .449-.246 2.93 2.93 0 0 1 2.155-1.338 2.92 2.92 0 0 1 .051 2.24.54.54 0 0 0 .067.51c.296.444.458.965.466 1.5z\" /></g><defs><clipPath id=\"github_uikit_icon_a\"><path d=\"M0 0h16v16H0z\" /></clipPath></defs></symbol>"
|
102582
104814
|
});
|
102583
104815
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
102584
104816
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
@@ -103334,7 +105566,7 @@ var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMP
|
|
103334
105566
|
"id": "llama_uikit_icon",
|
103335
105567
|
"use": "llama_uikit_icon-usage",
|
103336
105568
|
"viewBox": "0 0 20 20",
|
103337
|
-
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 20\" id=\"llama_uikit_icon\"><g clip-path=\"url(#llama_uikit_icon_a)\"><path fill=\"#000\" d=\"M0
|
105569
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 20 20\" id=\"llama_uikit_icon\"><g clip-path=\"url(#llama_uikit_icon_a)\"><path fill=\"#000\" d=\"M0 4a4 4 0 0 1 4.003-4h12.01c2.21 0 4.003 1.79 4.003 4v12a4 4 0 0 1-4.003 4H4.003A4 4 0 0 1 0 16z\" /><path fill=\"url(#llama_uikit_icon_b)\" d=\"M12.577 13.155c-1.288.569-2.684.336-3.22.148 0 .128-.007.527-.03 1.096-.024.569-.205.928-.293 1.037.01.355.018 1.132-.03 1.392a1.2 1.2 0 0 1-.292.563h-.79c.07-.355.34-.582.468-.651.07-.735-.069-1.373-.147-1.6-.078.276-.27.918-.41 1.274a4 4 0 0 1-.439.8h-.586c-.029-.356.166-.474.293-.474.059-.11.2-.45.293-.948.094-.498-.039-1.432-.117-1.837V12.68c-.937-.504-1.289-1.007-1.523-1.57-.187-.45-.136-1.136-.088-1.422-.058-.109-.229-.385-.292-.77a3.2 3.2 0 0 1 0-1.126c-.06-.06-.176-.361-.176-1.096s.215-1.116.322-1.215v-.326c-.41-.03-.82-.207-1.054-.444s-.059-.593.088-.711c.146-.119.292-.03.497-.089.205-.06.381-.118.469-.296.07-.142-.068-.73-.146-1.007.35.047.575.355.644.503V2.61c.439.207 1.23.71 1.493 1.807.211.877.361 2.715.41 3.525 1.123.01 2.548-.16 3.836.119 1.172.253 1.699.77 2.314.77s.966-.356 1.405-.06c.44.297.674 1.126.615 1.748a.72.72 0 0 1-.615.682c-.234.782 0 1.53.147 1.807v1.126c.068.098.205.403.205.829 0 .427-.137.711-.205.8.117.663-.049 1.343-.147 1.6h-.79c.093-.237.254-.297.322-.297.14-.734.039-1.412-.03-1.659-.445-.26-.732-.72-.82-.918.01.168-.017.634-.204 1.155-.188.522-.469.83-.586.919v.622h-.79c0-.38.214-.454.321-.445.137-.246.469-.622.469-1.362 0-.625-.44-.919-.761-1.481-.153-.268-.079-.603-.03-.741\" /></g><defs><linearGradient id=\"llama_uikit_icon_b\" x1=\"5.289\" x2=\"17.972\" y1=\"3.853\" y2=\"14.482\" gradientUnits=\"userSpaceOnUse\"><stop offset=\".062\" stop-color=\"#F6DCD9\" /><stop offset=\".326\" stop-color=\"#FFA5EA\" /><stop offset=\".589\" stop-color=\"#45DFF8\" /><stop offset=\"1\" stop-color=\"#BC8DEB\" /></linearGradient><clipPath id=\"llama_uikit_icon_a\"><path fill=\"#fff\" d=\"M0 0h20v20H0z\" /></clipPath></defs></symbol>"
|
103338
105570
|
});
|
103339
105571
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
103340
105572
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
@@ -105357,6 +107589,34 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
105357
107589
|
|
105358
107590
|
/***/ }),
|
105359
107591
|
|
107592
|
+
/***/ "./assets/icons/scraping_browser2.svg":
|
107593
|
+
/*!********************************************!*\
|
107594
|
+
!*** ./assets/icons/scraping_browser2.svg ***!
|
107595
|
+
\********************************************/
|
107596
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
107597
|
+
|
107598
|
+
"use strict";
|
107599
|
+
__webpack_require__.r(__webpack_exports__);
|
107600
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
107601
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
107602
|
+
/* harmony export */ });
|
107603
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/svg-baker-runtime/browser-symbol.js */ "./node_modules/svg-baker-runtime/browser-symbol.js");
|
107604
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
|
107605
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/svg-sprite-loader/runtime/browser-sprite.build.js */ "./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js");
|
107606
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
|
107607
|
+
|
107608
|
+
|
107609
|
+
var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default())({
|
107610
|
+
"id": "scraping_browser2_uikit_icon",
|
107611
|
+
"use": "scraping_browser2_uikit_icon-usage",
|
107612
|
+
"viewBox": "0 0 44 38",
|
107613
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 44 38\" id=\"scraping_browser2_uikit_icon\"><path fill=\"#93EEDA\" fill-rule=\"evenodd\" d=\"M9 .6a1.2 1.2 0 0 0-1.2 1.2v12.483a11.3 11.3 0 0 1 5.589-1.466c6.28 0 11.37 5.09 11.37 11.37 0 .97-.122 1.913-.352 2.813H42.6a1.2 1.2 0 0 0 1.2-1.2v-24A1.2 1.2 0 0 0 42.6.6zM22.224 27a9.3 9.3 0 0 0 .434-2.814 9.27 9.27 0 0 0-9.27-9.27A9.23 9.23 0 0 0 7.8 16.79v9.01A1.2 1.2 0 0 0 9 27zM12.6 6a1.8 1.8 0 1 0 3.6 0 1.8 1.8 0 1 0-3.6 0m6 0a1.8 1.8 0 1 0 3.6 0 1.8 1.8 0 1 0-3.6 0m6 0a1.8 1.8 0 1 0 3.6 0 1.8 1.8 0 1 0-3.6 0\" clip-rule=\"evenodd\" /><path fill=\"#36C7A7\" fill-rule=\"evenodd\" d=\"M6.835 30.742a9.27 9.27 0 1 1 13.107 0l.002.001-6.555 6.555-6.555-6.555h.001Z\" clip-rule=\"evenodd\" /></symbol>"
|
107614
|
+
});
|
107615
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
107616
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
107617
|
+
|
107618
|
+
/***/ }),
|
107619
|
+
|
105360
107620
|
/***/ "./assets/icons/search.svg":
|
105361
107621
|
/*!*********************************!*\
|
105362
107622
|
!*** ./assets/icons/search.svg ***!
|
@@ -105469,6 +107729,34 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
105469
107729
|
|
105470
107730
|
/***/ }),
|
105471
107731
|
|
107732
|
+
/***/ "./assets/icons/serp2.svg":
|
107733
|
+
/*!********************************!*\
|
107734
|
+
!*** ./assets/icons/serp2.svg ***!
|
107735
|
+
\********************************/
|
107736
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
107737
|
+
|
107738
|
+
"use strict";
|
107739
|
+
__webpack_require__.r(__webpack_exports__);
|
107740
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
107741
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
107742
|
+
/* harmony export */ });
|
107743
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/svg-baker-runtime/browser-symbol.js */ "./node_modules/svg-baker-runtime/browser-symbol.js");
|
107744
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
|
107745
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/svg-sprite-loader/runtime/browser-sprite.build.js */ "./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js");
|
107746
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
|
107747
|
+
|
107748
|
+
|
107749
|
+
var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default())({
|
107750
|
+
"id": "serp2_uikit_icon",
|
107751
|
+
"use": "serp2_uikit_icon-usage",
|
107752
|
+
"viewBox": "0 0 48 48",
|
107753
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 48 48\" id=\"serp2_uikit_icon\"><path fill=\"#93EEDA\" fill-rule=\"evenodd\" d=\"M33.447 31.4A11.95 11.95 0 0 0 36 24c0-2.612-.835-5.03-2.252-7h11.51c.741 0 1.342.537 1.342 1.2v12c0 .663-.6 1.2-1.341 1.2zm-18.894 0H2.34c-.739 0-1.34-.537-1.34-1.2v-12c0-.663.6-1.2 1.341-1.2h11.911A11.95 11.95 0 0 0 12 24c0 2.792.954 5.361 2.553 7.4\" clip-rule=\"evenodd\" /><path fill=\"#36C7A7\" d=\"M33.384 24.137a9.192 9.192 0 1 1-18.384 0 9.192 9.192 0 0 1 18.384 0\" /><path fill=\"#36C7A7\" d=\"M27.57 27.793a1.15 1.15 0 0 0 0 1.625l8.715 8.714a1.15 1.15 0 0 0 1.625 0l.28-.28a1.15 1.15 0 0 0 0-1.624l-8.715-8.715a1.15 1.15 0 0 0-1.625 0z\" /></symbol>"
|
107754
|
+
});
|
107755
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
107756
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
107757
|
+
|
107758
|
+
/***/ }),
|
107759
|
+
|
105472
107760
|
/***/ "./assets/icons/serp_data.svg":
|
105473
107761
|
/*!************************************!*\
|
105474
107762
|
!*** ./assets/icons/serp_data.svg ***!
|
@@ -107261,6 +109549,34 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
107261
109549
|
|
107262
109550
|
/***/ }),
|
107263
109551
|
|
109552
|
+
/***/ "./assets/icons/web_unlock2.svg":
|
109553
|
+
/*!**************************************!*\
|
109554
|
+
!*** ./assets/icons/web_unlock2.svg ***!
|
109555
|
+
\**************************************/
|
109556
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
109557
|
+
|
109558
|
+
"use strict";
|
109559
|
+
__webpack_require__.r(__webpack_exports__);
|
109560
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
109561
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
109562
|
+
/* harmony export */ });
|
109563
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/svg-baker-runtime/browser-symbol.js */ "./node_modules/svg-baker-runtime/browser-symbol.js");
|
109564
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
|
109565
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/svg-sprite-loader/runtime/browser-sprite.build.js */ "./node_modules/svg-sprite-loader/runtime/browser-sprite.build.js");
|
109566
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
|
109567
|
+
|
109568
|
+
|
109569
|
+
var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default())({
|
109570
|
+
"id": "web_unlock2_uikit_icon",
|
109571
|
+
"use": "web_unlock2_uikit_icon-usage",
|
109572
|
+
"viewBox": "0 0 48 48",
|
109573
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 48 48\" id=\"web_unlock2_uikit_icon\"><mask id=\"web_unlock2_uikit_icon_a\" width=\"48\" height=\"48\" x=\"0\" y=\"0\" maskUnits=\"userSpaceOnUse\" style=\"mask-type:alpha\"><path fill=\"#F5EFEF\" d=\"M0 0h48v48H0z\" /></mask><g mask=\"url(#web_unlock2_uikit_icon_a)\"><path fill=\"#93EEDA\" fill-rule=\"evenodd\" d=\"M12 6.6a1.2 1.2 0 0 0-1.2 1.2v14.4h9.6a6 6 0 0 1 6 6V33h19.2a1.2 1.2 0 0 0 1.2-1.2v-24a1.2 1.2 0 0 0-1.2-1.2zM24 33v-4.8a3.6 3.6 0 0 0-3.6-3.6h-9.6v7.2A1.2 1.2 0 0 0 12 33z\" clip-rule=\"evenodd\" /><path fill=\"#fff\" d=\"M15.6 12a1.8 1.8 0 1 1 3.6 0 1.8 1.8 0 0 1-3.6 0m6 0a1.8 1.8 0 1 1 3.6 0 1.8 1.8 0 0 1-3.6 0m6 0a1.8 1.8 0 1 1 3.6 0 1.8 1.8 0 0 1-3.6 0\" /><path fill=\"#36C7A7\" d=\"M4.8 28.2a3.6 3.6 0 0 1 3.6-3.6h12a3.6 3.6 0 0 1 3.6 3.6v9.6a3.6 3.6 0 0 1-3.6 3.6h-12a3.6 3.6 0 0 1-3.6-3.6z\" /><path fill=\"#36C7A7\" d=\"M12 30.6a2.4 2.4 0 1 1 4.8 0 2.4 2.4 0 0 1-4.8 0\" /><path fill=\"#fff\" d=\"M13.2 30.6a1.2 1.2 0 1 1 2.4 0v4.8a1.2 1.2 0 0 1-2.4 0z\" /><path fill=\"#36C7A7\" fill-rule=\"evenodd\" d=\"M12 19.2a5.4 5.4 0 0 0-10.8 0V21a1.2 1.2 0 0 0 2.4 0v-1.8a3 3 0 1 1 6 0v6.6a1.2 1.2 0 0 0 2.4 0z\" clip-rule=\"evenodd\" /></g></symbol>"
|
109574
|
+
});
|
109575
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
109576
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
109577
|
+
|
109578
|
+
/***/ }),
|
109579
|
+
|
107264
109580
|
/***/ "./assets/icons/web_unlock_small.svg":
|
107265
109581
|
/*!*******************************************!*\
|
107266
109582
|
!*** ./assets/icons/web_unlock_small.svg ***!
|