@luminati-io/uikit 6.3.96 → 6.3.97
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 +435 -2625
- package/dist/umd/uikit.development.js.map +1 -1
- package/dist/umd/uikit.production.min.js +24 -24
- package/package.json +1 -1
@@ -217,138 +217,139 @@ __webpack_require__.r(__webpack_exports__);
|
|
217
217
|
/* harmony import */ var _map_svg__WEBPACK_IMPORTED_MODULE_192__ = __webpack_require__(/*! ./map.svg */ "./assets/icons/map.svg");
|
218
218
|
/* harmony import */ var _mastercard_svg__WEBPACK_IMPORTED_MODULE_193__ = __webpack_require__(/*! ./mastercard.svg */ "./assets/icons/mastercard.svg");
|
219
219
|
/* harmony import */ var _maximize_svg__WEBPACK_IMPORTED_MODULE_194__ = __webpack_require__(/*! ./maximize.svg */ "./assets/icons/maximize.svg");
|
220
|
-
/* harmony import */ var
|
221
|
-
/* harmony import */ var
|
222
|
-
/* harmony import */ var
|
223
|
-
/* harmony import */ var
|
224
|
-
/* harmony import */ var
|
225
|
-
/* harmony import */ var
|
226
|
-
/* harmony import */ var
|
227
|
-
/* harmony import */ var
|
228
|
-
/* harmony import */ var
|
229
|
-
/* harmony import */ var
|
230
|
-
/* harmony import */ var
|
231
|
-
/* harmony import */ var
|
232
|
-
/* harmony import */ var
|
233
|
-
/* harmony import */ var
|
234
|
-
/* harmony import */ var
|
235
|
-
/* harmony import */ var
|
236
|
-
/* harmony import */ var
|
237
|
-
/* harmony import */ var
|
238
|
-
/* harmony import */ var
|
239
|
-
/* harmony import */ var
|
240
|
-
/* harmony import */ var
|
241
|
-
/* harmony import */ var
|
242
|
-
/* harmony import */ var
|
243
|
-
/* harmony import */ var
|
244
|
-
/* harmony import */ var
|
245
|
-
/* harmony import */ var
|
246
|
-
/* harmony import */ var
|
247
|
-
/* harmony import */ var
|
248
|
-
/* harmony import */ var
|
249
|
-
/* harmony import */ var
|
250
|
-
/* harmony import */ var
|
251
|
-
/* harmony import */ var
|
252
|
-
/* harmony import */ var
|
253
|
-
/* harmony import */ var
|
254
|
-
/* harmony import */ var
|
255
|
-
/* harmony import */ var
|
256
|
-
/* harmony import */ var
|
257
|
-
/* harmony import */ var
|
258
|
-
/* harmony import */ var
|
259
|
-
/* harmony import */ var
|
260
|
-
/* harmony import */ var
|
261
|
-
/* harmony import */ var
|
262
|
-
/* harmony import */ var
|
263
|
-
/* harmony import */ var
|
264
|
-
/* harmony import */ var
|
265
|
-
/* harmony import */ var
|
266
|
-
/* harmony import */ var
|
267
|
-
/* harmony import */ var
|
268
|
-
/* harmony import */ var
|
269
|
-
/* harmony import */ var
|
270
|
-
/* harmony import */ var
|
271
|
-
/* harmony import */ var
|
272
|
-
/* harmony import */ var
|
273
|
-
/* harmony import */ var
|
274
|
-
/* harmony import */ var
|
275
|
-
/* harmony import */ var
|
276
|
-
/* harmony import */ var
|
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
|
348
|
-
/* harmony import */ var
|
349
|
-
/* harmony import */ var
|
350
|
-
/* harmony import */ var
|
351
|
-
/* harmony import */ var
|
220
|
+
/* harmony import */ var _mcp_svg__WEBPACK_IMPORTED_MODULE_195__ = __webpack_require__(/*! ./mcp.svg */ "./assets/icons/mcp.svg");
|
221
|
+
/* harmony import */ var _megaphone_svg__WEBPACK_IMPORTED_MODULE_196__ = __webpack_require__(/*! ./megaphone.svg */ "./assets/icons/megaphone.svg");
|
222
|
+
/* harmony import */ var _mention_svg__WEBPACK_IMPORTED_MODULE_197__ = __webpack_require__(/*! ./mention.svg */ "./assets/icons/mention.svg");
|
223
|
+
/* harmony import */ var _menu_close_svg__WEBPACK_IMPORTED_MODULE_198__ = __webpack_require__(/*! ./menu_close.svg */ "./assets/icons/menu_close.svg");
|
224
|
+
/* harmony import */ var _menu_expand_svg__WEBPACK_IMPORTED_MODULE_199__ = __webpack_require__(/*! ./menu_expand.svg */ "./assets/icons/menu_expand.svg");
|
225
|
+
/* harmony import */ var _menu_svg__WEBPACK_IMPORTED_MODULE_200__ = __webpack_require__(/*! ./menu.svg */ "./assets/icons/menu.svg");
|
226
|
+
/* harmony import */ var _message_svg__WEBPACK_IMPORTED_MODULE_201__ = __webpack_require__(/*! ./message.svg */ "./assets/icons/message.svg");
|
227
|
+
/* harmony import */ var _minimize_svg__WEBPACK_IMPORTED_MODULE_202__ = __webpack_require__(/*! ./minimize.svg */ "./assets/icons/minimize.svg");
|
228
|
+
/* harmony import */ var _minus_svg__WEBPACK_IMPORTED_MODULE_203__ = __webpack_require__(/*! ./minus.svg */ "./assets/icons/minus.svg");
|
229
|
+
/* harmony import */ var _mobile_svg__WEBPACK_IMPORTED_MODULE_204__ = __webpack_require__(/*! ./mobile.svg */ "./assets/icons/mobile.svg");
|
230
|
+
/* harmony import */ var _mobile_small_svg__WEBPACK_IMPORTED_MODULE_205__ = __webpack_require__(/*! ./mobile_small.svg */ "./assets/icons/mobile_small.svg");
|
231
|
+
/* harmony import */ var _monitor_svg__WEBPACK_IMPORTED_MODULE_206__ = __webpack_require__(/*! ./monitor.svg */ "./assets/icons/monitor.svg");
|
232
|
+
/* harmony import */ var _monitoring_svg__WEBPACK_IMPORTED_MODULE_207__ = __webpack_require__(/*! ./monitoring.svg */ "./assets/icons/monitoring.svg");
|
233
|
+
/* harmony import */ var _moon_svg__WEBPACK_IMPORTED_MODULE_208__ = __webpack_require__(/*! ./moon.svg */ "./assets/icons/moon.svg");
|
234
|
+
/* harmony import */ var _n8n_svg__WEBPACK_IMPORTED_MODULE_209__ = __webpack_require__(/*! ./n8n.svg */ "./assets/icons/n8n.svg");
|
235
|
+
/* harmony import */ var _no_code_svg__WEBPACK_IMPORTED_MODULE_210__ = __webpack_require__(/*! ./no_code.svg */ "./assets/icons/no_code.svg");
|
236
|
+
/* harmony import */ var _notification_svg__WEBPACK_IMPORTED_MODULE_211__ = __webpack_require__(/*! ./notification.svg */ "./assets/icons/notification.svg");
|
237
|
+
/* harmony import */ var _not_verify_svg__WEBPACK_IMPORTED_MODULE_212__ = __webpack_require__(/*! ./not_verify.svg */ "./assets/icons/not_verify.svg");
|
238
|
+
/* harmony import */ var _number_svg__WEBPACK_IMPORTED_MODULE_213__ = __webpack_require__(/*! ./number.svg */ "./assets/icons/number.svg");
|
239
|
+
/* harmony import */ var _object_svg__WEBPACK_IMPORTED_MODULE_214__ = __webpack_require__(/*! ./object.svg */ "./assets/icons/object.svg");
|
240
|
+
/* harmony import */ var _object2_svg__WEBPACK_IMPORTED_MODULE_215__ = __webpack_require__(/*! ./object2.svg */ "./assets/icons/object2.svg");
|
241
|
+
/* harmony import */ var _okta_svg__WEBPACK_IMPORTED_MODULE_216__ = __webpack_require__(/*! ./okta.svg */ "./assets/icons/okta.svg");
|
242
|
+
/* harmony import */ var _on_off_svg__WEBPACK_IMPORTED_MODULE_217__ = __webpack_require__(/*! ./on_off.svg */ "./assets/icons/on_off.svg");
|
243
|
+
/* harmony import */ var _open_in_window_svg__WEBPACK_IMPORTED_MODULE_218__ = __webpack_require__(/*! ./open_in_window.svg */ "./assets/icons/open_in_window.svg");
|
244
|
+
/* harmony import */ var _openai_svg__WEBPACK_IMPORTED_MODULE_219__ = __webpack_require__(/*! ./openai.svg */ "./assets/icons/openai.svg");
|
245
|
+
/* harmony import */ var _output_fields_svg__WEBPACK_IMPORTED_MODULE_220__ = __webpack_require__(/*! ./output_fields.svg */ "./assets/icons/output_fields.svg");
|
246
|
+
/* harmony import */ var _pause_svg__WEBPACK_IMPORTED_MODULE_221__ = __webpack_require__(/*! ./pause.svg */ "./assets/icons/pause.svg");
|
247
|
+
/* harmony import */ var _person_svg__WEBPACK_IMPORTED_MODULE_222__ = __webpack_require__(/*! ./person.svg */ "./assets/icons/person.svg");
|
248
|
+
/* harmony import */ var _person_solid_svg__WEBPACK_IMPORTED_MODULE_223__ = __webpack_require__(/*! ./person_solid.svg */ "./assets/icons/person_solid.svg");
|
249
|
+
/* harmony import */ var _php_svg__WEBPACK_IMPORTED_MODULE_224__ = __webpack_require__(/*! ./php.svg */ "./assets/icons/php.svg");
|
250
|
+
/* harmony import */ var _pdf_svg__WEBPACK_IMPORTED_MODULE_225__ = __webpack_require__(/*! ./pdf.svg */ "./assets/icons/pdf.svg");
|
251
|
+
/* harmony import */ var _perl_svg__WEBPACK_IMPORTED_MODULE_226__ = __webpack_require__(/*! ./perl.svg */ "./assets/icons/perl.svg");
|
252
|
+
/* harmony import */ var _pin_svg__WEBPACK_IMPORTED_MODULE_227__ = __webpack_require__(/*! ./pin.svg */ "./assets/icons/pin.svg");
|
253
|
+
/* harmony import */ var _play_svg__WEBPACK_IMPORTED_MODULE_228__ = __webpack_require__(/*! ./play.svg */ "./assets/icons/play.svg");
|
254
|
+
/* harmony import */ var _plugs_svg__WEBPACK_IMPORTED_MODULE_229__ = __webpack_require__(/*! ./plugs.svg */ "./assets/icons/plugs.svg");
|
255
|
+
/* harmony import */ var _processing_svg__WEBPACK_IMPORTED_MODULE_230__ = __webpack_require__(/*! ./processing.svg */ "./assets/icons/processing.svg");
|
256
|
+
/* harmony import */ var _proxy_svg__WEBPACK_IMPORTED_MODULE_231__ = __webpack_require__(/*! ./proxy.svg */ "./assets/icons/proxy.svg");
|
257
|
+
/* harmony import */ var _publish_svg__WEBPACK_IMPORTED_MODULE_232__ = __webpack_require__(/*! ./publish.svg */ "./assets/icons/publish.svg");
|
258
|
+
/* harmony import */ var _pulsing_dot_svg__WEBPACK_IMPORTED_MODULE_233__ = __webpack_require__(/*! ./pulsing_dot.svg */ "./assets/icons/pulsing_dot.svg");
|
259
|
+
/* harmony import */ var _python_svg__WEBPACK_IMPORTED_MODULE_234__ = __webpack_require__(/*! ./python.svg */ "./assets/icons/python.svg");
|
260
|
+
/* harmony import */ var _question_solid_svg__WEBPACK_IMPORTED_MODULE_235__ = __webpack_require__(/*! ./question_solid.svg */ "./assets/icons/question_solid.svg");
|
261
|
+
/* harmony import */ var _question_svg__WEBPACK_IMPORTED_MODULE_236__ = __webpack_require__(/*! ./question.svg */ "./assets/icons/question.svg");
|
262
|
+
/* harmony import */ var _queue_svg__WEBPACK_IMPORTED_MODULE_237__ = __webpack_require__(/*! ./queue.svg */ "./assets/icons/queue.svg");
|
263
|
+
/* harmony import */ var _referal_svg__WEBPACK_IMPORTED_MODULE_238__ = __webpack_require__(/*! ./referal.svg */ "./assets/icons/referal.svg");
|
264
|
+
/* harmony import */ var _refresh_svg__WEBPACK_IMPORTED_MODULE_239__ = __webpack_require__(/*! ./refresh.svg */ "./assets/icons/refresh.svg");
|
265
|
+
/* harmony import */ var _reply_svg__WEBPACK_IMPORTED_MODULE_240__ = __webpack_require__(/*! ./reply.svg */ "./assets/icons/reply.svg");
|
266
|
+
/* harmony import */ var _res_svg__WEBPACK_IMPORTED_MODULE_241__ = __webpack_require__(/*! ./res.svg */ "./assets/icons/res.svg");
|
267
|
+
/* harmony import */ var _reset_svg__WEBPACK_IMPORTED_MODULE_242__ = __webpack_require__(/*! ./reset.svg */ "./assets/icons/reset.svg");
|
268
|
+
/* harmony import */ var _residential_svg__WEBPACK_IMPORTED_MODULE_243__ = __webpack_require__(/*! ./residential.svg */ "./assets/icons/residential.svg");
|
269
|
+
/* harmony import */ var _residential_small_svg__WEBPACK_IMPORTED_MODULE_244__ = __webpack_require__(/*! ./residential_small.svg */ "./assets/icons/residential_small.svg");
|
270
|
+
/* harmony import */ var _retail_research_svg__WEBPACK_IMPORTED_MODULE_245__ = __webpack_require__(/*! ./retail_research.svg */ "./assets/icons/retail_research.svg");
|
271
|
+
/* harmony import */ var _revenue_base_svg__WEBPACK_IMPORTED_MODULE_246__ = __webpack_require__(/*! ./revenue_base.svg */ "./assets/icons/revenue_base.svg");
|
272
|
+
/* harmony import */ var _right_svg__WEBPACK_IMPORTED_MODULE_247__ = __webpack_require__(/*! ./right.svg */ "./assets/icons/right.svg");
|
273
|
+
/* harmony import */ var _rocket_svg__WEBPACK_IMPORTED_MODULE_248__ = __webpack_require__(/*! ./rocket.svg */ "./assets/icons/rocket.svg");
|
274
|
+
/* harmony import */ var _rocket2_svg__WEBPACK_IMPORTED_MODULE_249__ = __webpack_require__(/*! ./rocket2.svg */ "./assets/icons/rocket2.svg");
|
275
|
+
/* harmony import */ var _ruby_svg__WEBPACK_IMPORTED_MODULE_250__ = __webpack_require__(/*! ./ruby.svg */ "./assets/icons/ruby.svg");
|
276
|
+
/* harmony import */ var _safari_svg__WEBPACK_IMPORTED_MODULE_251__ = __webpack_require__(/*! ./safari.svg */ "./assets/icons/safari.svg");
|
277
|
+
/* harmony import */ var _safe_svg__WEBPACK_IMPORTED_MODULE_252__ = __webpack_require__(/*! ./safe.svg */ "./assets/icons/safe.svg");
|
278
|
+
/* harmony import */ var _scraping_browser_svg__WEBPACK_IMPORTED_MODULE_253__ = __webpack_require__(/*! ./scraping_browser.svg */ "./assets/icons/scraping_browser.svg");
|
279
|
+
/* harmony import */ var _scraping_browser2_svg__WEBPACK_IMPORTED_MODULE_254__ = __webpack_require__(/*! ./scraping_browser2.svg */ "./assets/icons/scraping_browser2.svg");
|
280
|
+
/* harmony import */ var _search_svg__WEBPACK_IMPORTED_MODULE_255__ = __webpack_require__(/*! ./search.svg */ "./assets/icons/search.svg");
|
281
|
+
/* harmony import */ var _send_svg__WEBPACK_IMPORTED_MODULE_256__ = __webpack_require__(/*! ./send.svg */ "./assets/icons/send.svg");
|
282
|
+
/* harmony import */ var _seo_svg__WEBPACK_IMPORTED_MODULE_257__ = __webpack_require__(/*! ./seo.svg */ "./assets/icons/seo.svg");
|
283
|
+
/* harmony import */ var _serp_svg__WEBPACK_IMPORTED_MODULE_258__ = __webpack_require__(/*! ./serp.svg */ "./assets/icons/serp.svg");
|
284
|
+
/* harmony import */ var _serp2_svg__WEBPACK_IMPORTED_MODULE_259__ = __webpack_require__(/*! ./serp2.svg */ "./assets/icons/serp2.svg");
|
285
|
+
/* harmony import */ var _serp_small_svg__WEBPACK_IMPORTED_MODULE_260__ = __webpack_require__(/*! ./serp_small.svg */ "./assets/icons/serp_small.svg");
|
286
|
+
/* harmony import */ var _serp_data_svg__WEBPACK_IMPORTED_MODULE_261__ = __webpack_require__(/*! ./serp_data.svg */ "./assets/icons/serp_data.svg");
|
287
|
+
/* harmony import */ var _serp_data_small_svg__WEBPACK_IMPORTED_MODULE_262__ = __webpack_require__(/*! ./serp_data_small.svg */ "./assets/icons/serp_data_small.svg");
|
288
|
+
/* harmony import */ var _shrink_svg__WEBPACK_IMPORTED_MODULE_263__ = __webpack_require__(/*! ./shrink.svg */ "./assets/icons/shrink.svg");
|
289
|
+
/* harmony import */ var _sla_svg__WEBPACK_IMPORTED_MODULE_264__ = __webpack_require__(/*! ./sla.svg */ "./assets/icons/sla.svg");
|
290
|
+
/* harmony import */ var _settings_svg__WEBPACK_IMPORTED_MODULE_265__ = __webpack_require__(/*! ./settings.svg */ "./assets/icons/settings.svg");
|
291
|
+
/* harmony import */ var _shell_svg__WEBPACK_IMPORTED_MODULE_266__ = __webpack_require__(/*! ./shell.svg */ "./assets/icons/shell.svg");
|
292
|
+
/* harmony import */ var _skype_svg__WEBPACK_IMPORTED_MODULE_267__ = __webpack_require__(/*! ./skype.svg */ "./assets/icons/skype.svg");
|
293
|
+
/* harmony import */ var _smartphone_svg__WEBPACK_IMPORTED_MODULE_268__ = __webpack_require__(/*! ./smartphone.svg */ "./assets/icons/smartphone.svg");
|
294
|
+
/* harmony import */ var _snail_svg__WEBPACK_IMPORTED_MODULE_269__ = __webpack_require__(/*! ./snail.svg */ "./assets/icons/snail.svg");
|
295
|
+
/* harmony import */ var _snapshot_svg__WEBPACK_IMPORTED_MODULE_270__ = __webpack_require__(/*! ./snapshot.svg */ "./assets/icons/snapshot.svg");
|
296
|
+
/* harmony import */ var _sort_svg__WEBPACK_IMPORTED_MODULE_271__ = __webpack_require__(/*! ./sort.svg */ "./assets/icons/sort.svg");
|
297
|
+
/* harmony import */ var _sort_asc_svg__WEBPACK_IMPORTED_MODULE_272__ = __webpack_require__(/*! ./sort_asc.svg */ "./assets/icons/sort_asc.svg");
|
298
|
+
/* harmony import */ var _sort_desc_svg__WEBPACK_IMPORTED_MODULE_273__ = __webpack_require__(/*! ./sort_desc.svg */ "./assets/icons/sort_desc.svg");
|
299
|
+
/* harmony import */ var _sparkle_svg__WEBPACK_IMPORTED_MODULE_274__ = __webpack_require__(/*! ./sparkle.svg */ "./assets/icons/sparkle.svg");
|
300
|
+
/* harmony import */ var _speed_svg__WEBPACK_IMPORTED_MODULE_275__ = __webpack_require__(/*! ./speed.svg */ "./assets/icons/speed.svg");
|
301
|
+
/* harmony import */ var _spinner_svg__WEBPACK_IMPORTED_MODULE_276__ = __webpack_require__(/*! ./spinner.svg */ "./assets/icons/spinner.svg");
|
302
|
+
/* harmony import */ var _spinner2_svg__WEBPACK_IMPORTED_MODULE_277__ = __webpack_require__(/*! ./spinner2.svg */ "./assets/icons/spinner2.svg");
|
303
|
+
/* harmony import */ var _square_brackets_svg__WEBPACK_IMPORTED_MODULE_278__ = __webpack_require__(/*! ./square_brackets.svg */ "./assets/icons/square_brackets.svg");
|
304
|
+
/* harmony import */ var _star_svg__WEBPACK_IMPORTED_MODULE_279__ = __webpack_require__(/*! ./star.svg */ "./assets/icons/star.svg");
|
305
|
+
/* harmony import */ var _star_solid_svg__WEBPACK_IMPORTED_MODULE_280__ = __webpack_require__(/*! ./star_solid.svg */ "./assets/icons/star_solid.svg");
|
306
|
+
/* harmony import */ var _static_residential_svg__WEBPACK_IMPORTED_MODULE_281__ = __webpack_require__(/*! ./static_residential.svg */ "./assets/icons/static_residential.svg");
|
307
|
+
/* harmony import */ var _static_residential_small_svg__WEBPACK_IMPORTED_MODULE_282__ = __webpack_require__(/*! ./static_residential_small.svg */ "./assets/icons/static_residential_small.svg");
|
308
|
+
/* harmony import */ var _statistic_svg__WEBPACK_IMPORTED_MODULE_283__ = __webpack_require__(/*! ./statistic.svg */ "./assets/icons/statistic.svg");
|
309
|
+
/* harmony import */ var _statistic_search_svg__WEBPACK_IMPORTED_MODULE_284__ = __webpack_require__(/*! ./statistic_search.svg */ "./assets/icons/statistic_search.svg");
|
310
|
+
/* harmony import */ var _stop_svg__WEBPACK_IMPORTED_MODULE_285__ = __webpack_require__(/*! ./stop.svg */ "./assets/icons/stop.svg");
|
311
|
+
/* harmony import */ var _subitems_svg__WEBPACK_IMPORTED_MODULE_286__ = __webpack_require__(/*! ./subitems.svg */ "./assets/icons/subitems.svg");
|
312
|
+
/* harmony import */ var _subset_svg__WEBPACK_IMPORTED_MODULE_287__ = __webpack_require__(/*! ./subset.svg */ "./assets/icons/subset.svg");
|
313
|
+
/* harmony import */ var _sum_svg__WEBPACK_IMPORTED_MODULE_288__ = __webpack_require__(/*! ./sum.svg */ "./assets/icons/sum.svg");
|
314
|
+
/* harmony import */ var _sun_svg__WEBPACK_IMPORTED_MODULE_289__ = __webpack_require__(/*! ./sun.svg */ "./assets/icons/sun.svg");
|
315
|
+
/* harmony import */ var _support_svg__WEBPACK_IMPORTED_MODULE_290__ = __webpack_require__(/*! ./support.svg */ "./assets/icons/support.svg");
|
316
|
+
/* harmony import */ var _switch_svg__WEBPACK_IMPORTED_MODULE_291__ = __webpack_require__(/*! ./switch.svg */ "./assets/icons/switch.svg");
|
317
|
+
/* harmony import */ var _table_svg__WEBPACK_IMPORTED_MODULE_292__ = __webpack_require__(/*! ./table.svg */ "./assets/icons/table.svg");
|
318
|
+
/* harmony import */ var _tag_svg__WEBPACK_IMPORTED_MODULE_293__ = __webpack_require__(/*! ./tag.svg */ "./assets/icons/tag.svg");
|
319
|
+
/* harmony import */ var _tasks_svg__WEBPACK_IMPORTED_MODULE_294__ = __webpack_require__(/*! ./tasks.svg */ "./assets/icons/tasks.svg");
|
320
|
+
/* harmony import */ var _target_svg__WEBPACK_IMPORTED_MODULE_295__ = __webpack_require__(/*! ./target.svg */ "./assets/icons/target.svg");
|
321
|
+
/* harmony import */ var _terminal_window_svg__WEBPACK_IMPORTED_MODULE_296__ = __webpack_require__(/*! ./terminal_window.svg */ "./assets/icons/terminal_window.svg");
|
322
|
+
/* harmony import */ var _testing_svg__WEBPACK_IMPORTED_MODULE_297__ = __webpack_require__(/*! ./testing.svg */ "./assets/icons/testing.svg");
|
323
|
+
/* harmony import */ var _text_svg__WEBPACK_IMPORTED_MODULE_298__ = __webpack_require__(/*! ./text.svg */ "./assets/icons/text.svg");
|
324
|
+
/* harmony import */ var _thumb_up_svg__WEBPACK_IMPORTED_MODULE_299__ = __webpack_require__(/*! ./thumb_up.svg */ "./assets/icons/thumb_up.svg");
|
325
|
+
/* harmony import */ var _ticket_svg__WEBPACK_IMPORTED_MODULE_300__ = __webpack_require__(/*! ./ticket.svg */ "./assets/icons/ticket.svg");
|
326
|
+
/* harmony import */ var _tool_svg__WEBPACK_IMPORTED_MODULE_301__ = __webpack_require__(/*! ./tool.svg */ "./assets/icons/tool.svg");
|
327
|
+
/* harmony import */ var _top1_svg__WEBPACK_IMPORTED_MODULE_302__ = __webpack_require__(/*! ./top1.svg */ "./assets/icons/top1.svg");
|
328
|
+
/* harmony import */ var _transparency_svg__WEBPACK_IMPORTED_MODULE_303__ = __webpack_require__(/*! ./transparency.svg */ "./assets/icons/transparency.svg");
|
329
|
+
/* harmony import */ var _trash_svg__WEBPACK_IMPORTED_MODULE_304__ = __webpack_require__(/*! ./trash.svg */ "./assets/icons/trash.svg");
|
330
|
+
/* harmony import */ var _unblock_svg__WEBPACK_IMPORTED_MODULE_305__ = __webpack_require__(/*! ./unblock.svg */ "./assets/icons/unblock.svg");
|
331
|
+
/* harmony import */ var _unblocking_infrastructure_svg__WEBPACK_IMPORTED_MODULE_306__ = __webpack_require__(/*! ./unblocking_infrastructure.svg */ "./assets/icons/unblocking_infrastructure.svg");
|
332
|
+
/* harmony import */ var _unique_svg__WEBPACK_IMPORTED_MODULE_307__ = __webpack_require__(/*! ./unique.svg */ "./assets/icons/unique.svg");
|
333
|
+
/* harmony import */ var _unpin_svg__WEBPACK_IMPORTED_MODULE_308__ = __webpack_require__(/*! ./unpin.svg */ "./assets/icons/unpin.svg");
|
334
|
+
/* harmony import */ var _upgrade_svg__WEBPACK_IMPORTED_MODULE_309__ = __webpack_require__(/*! ./upgrade.svg */ "./assets/icons/upgrade.svg");
|
335
|
+
/* harmony import */ var _upload_cloud_svg__WEBPACK_IMPORTED_MODULE_310__ = __webpack_require__(/*! ./upload_cloud.svg */ "./assets/icons/upload_cloud.svg");
|
336
|
+
/* harmony import */ var _upload_svg__WEBPACK_IMPORTED_MODULE_311__ = __webpack_require__(/*! ./upload.svg */ "./assets/icons/upload.svg");
|
337
|
+
/* harmony import */ var _url_svg__WEBPACK_IMPORTED_MODULE_312__ = __webpack_require__(/*! ./url.svg */ "./assets/icons/url.svg");
|
338
|
+
/* harmony import */ var _vb_svg__WEBPACK_IMPORTED_MODULE_313__ = __webpack_require__(/*! ./vb.svg */ "./assets/icons/vb.svg");
|
339
|
+
/* harmony import */ var _verify_svg__WEBPACK_IMPORTED_MODULE_314__ = __webpack_require__(/*! ./verify.svg */ "./assets/icons/verify.svg");
|
340
|
+
/* harmony import */ var _verify_solid_svg__WEBPACK_IMPORTED_MODULE_315__ = __webpack_require__(/*! ./verify_solid.svg */ "./assets/icons/verify_solid.svg");
|
341
|
+
/* harmony import */ var _verify_warning_svg__WEBPACK_IMPORTED_MODULE_316__ = __webpack_require__(/*! ./verify_warning.svg */ "./assets/icons/verify_warning.svg");
|
342
|
+
/* harmony import */ var _video_svg__WEBPACK_IMPORTED_MODULE_317__ = __webpack_require__(/*! ./video.svg */ "./assets/icons/video.svg");
|
343
|
+
/* harmony import */ var _visa_svg__WEBPACK_IMPORTED_MODULE_318__ = __webpack_require__(/*! ./visa.svg */ "./assets/icons/visa.svg");
|
344
|
+
/* harmony import */ var _warning_svg__WEBPACK_IMPORTED_MODULE_319__ = __webpack_require__(/*! ./warning.svg */ "./assets/icons/warning.svg");
|
345
|
+
/* harmony import */ var _warning_solid_svg__WEBPACK_IMPORTED_MODULE_320__ = __webpack_require__(/*! ./warning_solid.svg */ "./assets/icons/warning_solid.svg");
|
346
|
+
/* harmony import */ var _web_scrapper_svg__WEBPACK_IMPORTED_MODULE_321__ = __webpack_require__(/*! ./web_scrapper.svg */ "./assets/icons/web_scrapper.svg");
|
347
|
+
/* harmony import */ var _web_scrapper_small_svg__WEBPACK_IMPORTED_MODULE_322__ = __webpack_require__(/*! ./web_scrapper_small.svg */ "./assets/icons/web_scrapper_small.svg");
|
348
|
+
/* harmony import */ var _web_unlock_svg__WEBPACK_IMPORTED_MODULE_323__ = __webpack_require__(/*! ./web_unlock.svg */ "./assets/icons/web_unlock.svg");
|
349
|
+
/* harmony import */ var _web_unlock2_svg__WEBPACK_IMPORTED_MODULE_324__ = __webpack_require__(/*! ./web_unlock2.svg */ "./assets/icons/web_unlock2.svg");
|
350
|
+
/* harmony import */ var _web_unlock_small_svg__WEBPACK_IMPORTED_MODULE_325__ = __webpack_require__(/*! ./web_unlock_small.svg */ "./assets/icons/web_unlock_small.svg");
|
351
|
+
/* harmony import */ var _yandex_svg__WEBPACK_IMPORTED_MODULE_326__ = __webpack_require__(/*! ./yandex.svg */ "./assets/icons/yandex.svg");
|
352
|
+
/* harmony import */ var _zapier_svg__WEBPACK_IMPORTED_MODULE_327__ = __webpack_require__(/*! ./zapier.svg */ "./assets/icons/zapier.svg");
|
352
353
|
// LICENSE_CODE ZON
|
353
354
|
/*jslint react:true*/
|
354
355
|
|
@@ -678,6 +679,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
678
679
|
|
679
680
|
|
680
681
|
|
682
|
+
|
681
683
|
|
682
684
|
|
683
685
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
@@ -876,138 +878,139 @@ __webpack_require__.r(__webpack_exports__);
|
|
876
878
|
Map: _map_svg__WEBPACK_IMPORTED_MODULE_192__["default"],
|
877
879
|
Mastercard: _mastercard_svg__WEBPACK_IMPORTED_MODULE_193__["default"],
|
878
880
|
Maximize: _maximize_svg__WEBPACK_IMPORTED_MODULE_194__["default"],
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
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
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
881
|
+
Mcp: _mcp_svg__WEBPACK_IMPORTED_MODULE_195__["default"],
|
882
|
+
Megaphone: _megaphone_svg__WEBPACK_IMPORTED_MODULE_196__["default"],
|
883
|
+
Mention: _mention_svg__WEBPACK_IMPORTED_MODULE_197__["default"],
|
884
|
+
MenuClose: _menu_close_svg__WEBPACK_IMPORTED_MODULE_198__["default"],
|
885
|
+
MenuExpand: _menu_expand_svg__WEBPACK_IMPORTED_MODULE_199__["default"],
|
886
|
+
Menu: _menu_svg__WEBPACK_IMPORTED_MODULE_200__["default"],
|
887
|
+
Message: _message_svg__WEBPACK_IMPORTED_MODULE_201__["default"],
|
888
|
+
Minimize: _minimize_svg__WEBPACK_IMPORTED_MODULE_202__["default"],
|
889
|
+
Minus: _minus_svg__WEBPACK_IMPORTED_MODULE_203__["default"],
|
890
|
+
Mobile: _mobile_svg__WEBPACK_IMPORTED_MODULE_204__["default"],
|
891
|
+
MobileSmall: _mobile_small_svg__WEBPACK_IMPORTED_MODULE_205__["default"],
|
892
|
+
Monitor: _monitor_svg__WEBPACK_IMPORTED_MODULE_206__["default"],
|
893
|
+
Monitoring: _monitoring_svg__WEBPACK_IMPORTED_MODULE_207__["default"],
|
894
|
+
Moon: _moon_svg__WEBPACK_IMPORTED_MODULE_208__["default"],
|
895
|
+
N8n: _n8n_svg__WEBPACK_IMPORTED_MODULE_209__["default"],
|
896
|
+
NoCode: _no_code_svg__WEBPACK_IMPORTED_MODULE_210__["default"],
|
897
|
+
Notification: _notification_svg__WEBPACK_IMPORTED_MODULE_211__["default"],
|
898
|
+
NotVerify: _not_verify_svg__WEBPACK_IMPORTED_MODULE_212__["default"],
|
899
|
+
Number: _number_svg__WEBPACK_IMPORTED_MODULE_213__["default"],
|
900
|
+
Object: _object_svg__WEBPACK_IMPORTED_MODULE_214__["default"],
|
901
|
+
Object2: _object2_svg__WEBPACK_IMPORTED_MODULE_215__["default"],
|
902
|
+
Okta: _okta_svg__WEBPACK_IMPORTED_MODULE_216__["default"],
|
903
|
+
OnOff: _on_off_svg__WEBPACK_IMPORTED_MODULE_217__["default"],
|
904
|
+
OpenInWindow: _open_in_window_svg__WEBPACK_IMPORTED_MODULE_218__["default"],
|
905
|
+
OpenAI: _openai_svg__WEBPACK_IMPORTED_MODULE_219__["default"],
|
906
|
+
OutputFields: _output_fields_svg__WEBPACK_IMPORTED_MODULE_220__["default"],
|
907
|
+
Pause: _pause_svg__WEBPACK_IMPORTED_MODULE_221__["default"],
|
908
|
+
Person: _person_svg__WEBPACK_IMPORTED_MODULE_222__["default"],
|
909
|
+
PersonSolid: _person_solid_svg__WEBPACK_IMPORTED_MODULE_223__["default"],
|
910
|
+
Php: _php_svg__WEBPACK_IMPORTED_MODULE_224__["default"],
|
911
|
+
Pdf: _pdf_svg__WEBPACK_IMPORTED_MODULE_225__["default"],
|
912
|
+
Perl: _perl_svg__WEBPACK_IMPORTED_MODULE_226__["default"],
|
913
|
+
Pin: _pin_svg__WEBPACK_IMPORTED_MODULE_227__["default"],
|
914
|
+
Play: _play_svg__WEBPACK_IMPORTED_MODULE_228__["default"],
|
915
|
+
Plugs: _plugs_svg__WEBPACK_IMPORTED_MODULE_229__["default"],
|
916
|
+
Processing: _processing_svg__WEBPACK_IMPORTED_MODULE_230__["default"],
|
917
|
+
Proxy: _proxy_svg__WEBPACK_IMPORTED_MODULE_231__["default"],
|
918
|
+
Publish: _publish_svg__WEBPACK_IMPORTED_MODULE_232__["default"],
|
919
|
+
PulsingDot: _pulsing_dot_svg__WEBPACK_IMPORTED_MODULE_233__["default"],
|
920
|
+
Python: _python_svg__WEBPACK_IMPORTED_MODULE_234__["default"],
|
921
|
+
QuestionSolid: _question_solid_svg__WEBPACK_IMPORTED_MODULE_235__["default"],
|
922
|
+
Question: _question_svg__WEBPACK_IMPORTED_MODULE_236__["default"],
|
923
|
+
Queue: _queue_svg__WEBPACK_IMPORTED_MODULE_237__["default"],
|
924
|
+
Referal: _referal_svg__WEBPACK_IMPORTED_MODULE_238__["default"],
|
925
|
+
Refresh: _refresh_svg__WEBPACK_IMPORTED_MODULE_239__["default"],
|
926
|
+
Reply: _reply_svg__WEBPACK_IMPORTED_MODULE_240__["default"],
|
927
|
+
Res: _res_svg__WEBPACK_IMPORTED_MODULE_241__["default"],
|
928
|
+
Reset: _reset_svg__WEBPACK_IMPORTED_MODULE_242__["default"],
|
929
|
+
RetailResearch: _retail_research_svg__WEBPACK_IMPORTED_MODULE_245__["default"],
|
930
|
+
RevenueBase: _revenue_base_svg__WEBPACK_IMPORTED_MODULE_246__["default"],
|
931
|
+
Residential: _residential_svg__WEBPACK_IMPORTED_MODULE_243__["default"],
|
932
|
+
ResidentialSmall: _residential_small_svg__WEBPACK_IMPORTED_MODULE_244__["default"],
|
933
|
+
Right: _right_svg__WEBPACK_IMPORTED_MODULE_247__["default"],
|
934
|
+
Rocket: _rocket_svg__WEBPACK_IMPORTED_MODULE_248__["default"],
|
935
|
+
Rocket2: _rocket2_svg__WEBPACK_IMPORTED_MODULE_249__["default"],
|
936
|
+
Ruby: _ruby_svg__WEBPACK_IMPORTED_MODULE_250__["default"],
|
937
|
+
Safari: _safari_svg__WEBPACK_IMPORTED_MODULE_251__["default"],
|
938
|
+
Safe: _safe_svg__WEBPACK_IMPORTED_MODULE_252__["default"],
|
939
|
+
ScrapingBrowser: _scraping_browser_svg__WEBPACK_IMPORTED_MODULE_253__["default"],
|
940
|
+
ScrapingBrowser2: _scraping_browser2_svg__WEBPACK_IMPORTED_MODULE_254__["default"],
|
941
|
+
Search: _search_svg__WEBPACK_IMPORTED_MODULE_255__["default"],
|
942
|
+
Send: _send_svg__WEBPACK_IMPORTED_MODULE_256__["default"],
|
943
|
+
Seo: _seo_svg__WEBPACK_IMPORTED_MODULE_257__["default"],
|
944
|
+
Serp: _serp_svg__WEBPACK_IMPORTED_MODULE_258__["default"],
|
945
|
+
Serp2: _serp2_svg__WEBPACK_IMPORTED_MODULE_259__["default"],
|
946
|
+
SerpSmall: _serp_small_svg__WEBPACK_IMPORTED_MODULE_260__["default"],
|
947
|
+
SerpData: _serp_data_svg__WEBPACK_IMPORTED_MODULE_261__["default"],
|
948
|
+
SerpDataSmall: _serp_data_small_svg__WEBPACK_IMPORTED_MODULE_262__["default"],
|
949
|
+
Shrink: _shrink_svg__WEBPACK_IMPORTED_MODULE_263__["default"],
|
950
|
+
Sla: _sla_svg__WEBPACK_IMPORTED_MODULE_264__["default"],
|
951
|
+
Settings: _settings_svg__WEBPACK_IMPORTED_MODULE_265__["default"],
|
952
|
+
Shell: _shell_svg__WEBPACK_IMPORTED_MODULE_266__["default"],
|
953
|
+
Skype: _skype_svg__WEBPACK_IMPORTED_MODULE_267__["default"],
|
954
|
+
Smartphone: _smartphone_svg__WEBPACK_IMPORTED_MODULE_268__["default"],
|
955
|
+
Snail: _snail_svg__WEBPACK_IMPORTED_MODULE_269__["default"],
|
956
|
+
Snapshot: _snapshot_svg__WEBPACK_IMPORTED_MODULE_270__["default"],
|
957
|
+
Sort: _sort_svg__WEBPACK_IMPORTED_MODULE_271__["default"],
|
958
|
+
SortAsc: _sort_asc_svg__WEBPACK_IMPORTED_MODULE_272__["default"],
|
959
|
+
SortDesc: _sort_desc_svg__WEBPACK_IMPORTED_MODULE_273__["default"],
|
960
|
+
Sparkle: _sparkle_svg__WEBPACK_IMPORTED_MODULE_274__["default"],
|
961
|
+
Speed: _speed_svg__WEBPACK_IMPORTED_MODULE_275__["default"],
|
962
|
+
Spinner: _spinner_svg__WEBPACK_IMPORTED_MODULE_276__["default"],
|
963
|
+
Spinner2: _spinner2_svg__WEBPACK_IMPORTED_MODULE_277__["default"],
|
964
|
+
SquareBrackets: _square_brackets_svg__WEBPACK_IMPORTED_MODULE_278__["default"],
|
965
|
+
Star: _star_svg__WEBPACK_IMPORTED_MODULE_279__["default"],
|
966
|
+
StarSolid: _star_solid_svg__WEBPACK_IMPORTED_MODULE_280__["default"],
|
967
|
+
StaticResidential: _static_residential_svg__WEBPACK_IMPORTED_MODULE_281__["default"],
|
968
|
+
StaticResidentialSmall: _static_residential_small_svg__WEBPACK_IMPORTED_MODULE_282__["default"],
|
969
|
+
Statistic: _statistic_svg__WEBPACK_IMPORTED_MODULE_283__["default"],
|
970
|
+
StatisticSearch: _statistic_search_svg__WEBPACK_IMPORTED_MODULE_284__["default"],
|
971
|
+
Stop: _stop_svg__WEBPACK_IMPORTED_MODULE_285__["default"],
|
972
|
+
Subitems: _subitems_svg__WEBPACK_IMPORTED_MODULE_286__["default"],
|
973
|
+
Subset: _subset_svg__WEBPACK_IMPORTED_MODULE_287__["default"],
|
974
|
+
Sum: _sum_svg__WEBPACK_IMPORTED_MODULE_288__["default"],
|
975
|
+
Sun: _sun_svg__WEBPACK_IMPORTED_MODULE_289__["default"],
|
976
|
+
Support: _support_svg__WEBPACK_IMPORTED_MODULE_290__["default"],
|
977
|
+
Switch: _switch_svg__WEBPACK_IMPORTED_MODULE_291__["default"],
|
978
|
+
Table: _table_svg__WEBPACK_IMPORTED_MODULE_292__["default"],
|
979
|
+
Tag: _tag_svg__WEBPACK_IMPORTED_MODULE_293__["default"],
|
980
|
+
Tasks: _tasks_svg__WEBPACK_IMPORTED_MODULE_294__["default"],
|
981
|
+
Target: _target_svg__WEBPACK_IMPORTED_MODULE_295__["default"],
|
982
|
+
TerminalWindow: _terminal_window_svg__WEBPACK_IMPORTED_MODULE_296__["default"],
|
983
|
+
Testing: _testing_svg__WEBPACK_IMPORTED_MODULE_297__["default"],
|
984
|
+
Text: _text_svg__WEBPACK_IMPORTED_MODULE_298__["default"],
|
985
|
+
ThumbUp: _thumb_up_svg__WEBPACK_IMPORTED_MODULE_299__["default"],
|
986
|
+
Ticket: _ticket_svg__WEBPACK_IMPORTED_MODULE_300__["default"],
|
987
|
+
Tool: _tool_svg__WEBPACK_IMPORTED_MODULE_301__["default"],
|
988
|
+
Top1: _top1_svg__WEBPACK_IMPORTED_MODULE_302__["default"],
|
989
|
+
Transparency: _transparency_svg__WEBPACK_IMPORTED_MODULE_303__["default"],
|
990
|
+
Trash: _trash_svg__WEBPACK_IMPORTED_MODULE_304__["default"],
|
991
|
+
Unblock: _unblock_svg__WEBPACK_IMPORTED_MODULE_305__["default"],
|
992
|
+
UnblockingInfrastructure: _unblocking_infrastructure_svg__WEBPACK_IMPORTED_MODULE_306__["default"],
|
993
|
+
Unique: _unique_svg__WEBPACK_IMPORTED_MODULE_307__["default"],
|
994
|
+
Unpin: _unpin_svg__WEBPACK_IMPORTED_MODULE_308__["default"],
|
995
|
+
Upgrade: _upgrade_svg__WEBPACK_IMPORTED_MODULE_309__["default"],
|
996
|
+
UploadCloud: _upload_cloud_svg__WEBPACK_IMPORTED_MODULE_310__["default"],
|
997
|
+
Upload: _upload_svg__WEBPACK_IMPORTED_MODULE_311__["default"],
|
998
|
+
Url: _url_svg__WEBPACK_IMPORTED_MODULE_312__["default"],
|
999
|
+
VB: _vb_svg__WEBPACK_IMPORTED_MODULE_313__["default"],
|
1000
|
+
Verify: _verify_svg__WEBPACK_IMPORTED_MODULE_314__["default"],
|
1001
|
+
VerifySolid: _verify_solid_svg__WEBPACK_IMPORTED_MODULE_315__["default"],
|
1002
|
+
VerifyWarning: _verify_warning_svg__WEBPACK_IMPORTED_MODULE_316__["default"],
|
1003
|
+
Video: _video_svg__WEBPACK_IMPORTED_MODULE_317__["default"],
|
1004
|
+
Visa: _visa_svg__WEBPACK_IMPORTED_MODULE_318__["default"],
|
1005
|
+
Warning: _warning_svg__WEBPACK_IMPORTED_MODULE_319__["default"],
|
1006
|
+
WarningSolid: _warning_solid_svg__WEBPACK_IMPORTED_MODULE_320__["default"],
|
1007
|
+
WebScrapper: _web_scrapper_svg__WEBPACK_IMPORTED_MODULE_321__["default"],
|
1008
|
+
WebScrapperSmall: _web_scrapper_small_svg__WEBPACK_IMPORTED_MODULE_322__["default"],
|
1009
|
+
WebUnlock: _web_unlock_svg__WEBPACK_IMPORTED_MODULE_323__["default"],
|
1010
|
+
WebUnlock2: _web_unlock2_svg__WEBPACK_IMPORTED_MODULE_324__["default"],
|
1011
|
+
WebUnlockSmall: _web_unlock_small_svg__WEBPACK_IMPORTED_MODULE_325__["default"],
|
1012
|
+
Yandex: _yandex_svg__WEBPACK_IMPORTED_MODULE_326__["default"],
|
1013
|
+
Zapier: _zapier_svg__WEBPACK_IMPORTED_MODULE_327__["default"],
|
1011
1014
|
});
|
1012
1015
|
|
1013
1016
|
|
@@ -11622,15 +11625,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
11622
11625
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11623
11626
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11624
11627
|
/* harmony export */ });
|
11625
|
-
/* harmony import */ var
|
11626
|
-
/* harmony import */ var
|
11627
|
-
/* harmony import */ var
|
11628
|
-
/* harmony import */ var
|
11629
|
-
/* harmony import */ var
|
11630
|
-
/* harmony import */ var
|
11631
|
-
/* harmony import */ var
|
11632
|
-
/* harmony import */ var
|
11633
|
-
|
11628
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11629
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11630
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
11631
|
+
/* harmony import */ var _rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @rc-component/util/es/ref */ "./node_modules/@rc-component/util/es/ref.js");
|
11632
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
11633
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
11634
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../context */ "./node_modules/@rc-component/dialog/es/context.js");
|
11635
|
+
/* harmony import */ var _MemoChildren__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MemoChildren */ "./node_modules/@rc-component/dialog/es/Dialog/Content/MemoChildren.js");
|
11636
|
+
/* harmony import */ var _rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @rc-component/util/es/pickAttrs */ "./node_modules/@rc-component/util/es/pickAttrs.js");
|
11637
|
+
|
11634
11638
|
|
11635
11639
|
|
11636
11640
|
|
@@ -11646,7 +11650,7 @@ const sentinelStyle = {
|
|
11646
11650
|
const entityStyle = {
|
11647
11651
|
outline: 'none'
|
11648
11652
|
};
|
11649
|
-
const Panel = /*#__PURE__*/
|
11653
|
+
const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().forwardRef((props, ref) => {
|
11650
11654
|
const {
|
11651
11655
|
prefixCls,
|
11652
11656
|
className,
|
@@ -11675,11 +11679,11 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardR
|
|
11675
11679
|
// ================================= Refs =================================
|
11676
11680
|
const {
|
11677
11681
|
panel: panelRef
|
11678
|
-
} =
|
11679
|
-
const mergedRef = (0,
|
11680
|
-
const sentinelStartRef = (0,
|
11681
|
-
const sentinelEndRef = (0,
|
11682
|
-
|
11682
|
+
} = react__WEBPACK_IMPORTED_MODULE_3___default().useContext(_context__WEBPACK_IMPORTED_MODULE_4__.RefContext);
|
11683
|
+
const mergedRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_2__.useComposeRef)(holderRef, panelRef);
|
11684
|
+
const sentinelStartRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
11685
|
+
const sentinelEndRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
11686
|
+
react__WEBPACK_IMPORTED_MODULE_3___default().useImperativeHandle(ref, () => ({
|
11683
11687
|
focus: () => {
|
11684
11688
|
sentinelStartRef.current?.focus({
|
11685
11689
|
preventScroll: true
|
@@ -11710,40 +11714,40 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardR
|
|
11710
11714
|
contentStyle.height = height;
|
11711
11715
|
}
|
11712
11716
|
// ================================ Render ================================
|
11713
|
-
const footerNode = footer ? /*#__PURE__*/
|
11714
|
-
className:
|
11717
|
+
const footerNode = footer ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11718
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-footer`, modalClassNames?.footer),
|
11715
11719
|
style: {
|
11716
11720
|
...modalStyles?.footer
|
11717
11721
|
}
|
11718
11722
|
}, footer) : null;
|
11719
|
-
const headerNode = title ? /*#__PURE__*/
|
11720
|
-
className:
|
11723
|
+
const headerNode = title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11724
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-header`, modalClassNames?.header),
|
11721
11725
|
style: {
|
11722
11726
|
...modalStyles?.header
|
11723
11727
|
}
|
11724
|
-
}, /*#__PURE__*/
|
11725
|
-
className:
|
11728
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11729
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-title`, modalClassNames?.title),
|
11726
11730
|
id: ariaId,
|
11727
11731
|
style: {
|
11728
11732
|
...modalStyles?.title
|
11729
11733
|
}
|
11730
11734
|
}, title)) : null;
|
11731
|
-
const closableObj = (0,
|
11735
|
+
const closableObj = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
|
11732
11736
|
if (typeof closable === 'object' && closable !== null) {
|
11733
11737
|
return closable;
|
11734
11738
|
}
|
11735
11739
|
if (closable) {
|
11736
11740
|
return {
|
11737
|
-
closeIcon: closeIcon ?? /*#__PURE__*/
|
11741
|
+
closeIcon: closeIcon ?? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("span", {
|
11738
11742
|
className: `${prefixCls}-close-x`
|
11739
11743
|
})
|
11740
11744
|
};
|
11741
11745
|
}
|
11742
11746
|
return {};
|
11743
11747
|
}, [closable, closeIcon, prefixCls]);
|
11744
|
-
const ariaProps = (0,
|
11748
|
+
const ariaProps = (0,_rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_6__["default"])(closableObj, true);
|
11745
11749
|
const closeBtnIsDisabled = typeof closable === 'object' && closable.disabled;
|
11746
|
-
const closerNode = closable ? /*#__PURE__*/
|
11750
|
+
const closerNode = closable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("button", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11747
11751
|
type: "button",
|
11748
11752
|
onClick: onClose,
|
11749
11753
|
"aria-label": "Close"
|
@@ -11751,17 +11755,17 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardR
|
|
11751
11755
|
className: `${prefixCls}-close`,
|
11752
11756
|
disabled: closeBtnIsDisabled
|
11753
11757
|
}), closableObj.closeIcon) : null;
|
11754
|
-
const content = /*#__PURE__*/
|
11755
|
-
className:
|
11756
|
-
style: modalStyles?.
|
11757
|
-
}, closerNode, headerNode, /*#__PURE__*/
|
11758
|
-
className:
|
11758
|
+
const content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11759
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-section`, modalClassNames?.section),
|
11760
|
+
style: modalStyles?.section
|
11761
|
+
}, closerNode, headerNode, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11762
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-body`, modalClassNames?.body),
|
11759
11763
|
style: {
|
11760
11764
|
...bodyStyle,
|
11761
11765
|
...modalStyles?.body
|
11762
11766
|
}
|
11763
11767
|
}, bodyProps), children), footerNode);
|
11764
|
-
return /*#__PURE__*/
|
11768
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11765
11769
|
key: "dialog-element",
|
11766
11770
|
role: "dialog",
|
11767
11771
|
"aria-labelledby": title ? ariaId : null,
|
@@ -11771,16 +11775,16 @@ const Panel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwardR
|
|
11771
11775
|
...style,
|
11772
11776
|
...contentStyle
|
11773
11777
|
},
|
11774
|
-
className:
|
11778
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className),
|
11775
11779
|
onMouseDown: onMouseDown,
|
11776
11780
|
onMouseUp: onMouseUp
|
11777
|
-
}, /*#__PURE__*/
|
11781
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11778
11782
|
ref: sentinelStartRef,
|
11779
11783
|
tabIndex: 0,
|
11780
11784
|
style: entityStyle
|
11781
|
-
}, /*#__PURE__*/
|
11785
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_MemoChildren__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
11782
11786
|
shouldUpdate: visible || forceRender
|
11783
|
-
}, modalRender ? modalRender(content) : content)), /*#__PURE__*/
|
11787
|
+
}, modalRender ? modalRender(content) : content)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
11784
11788
|
tabIndex: 0,
|
11785
11789
|
ref: sentinelEndRef,
|
11786
11790
|
style: sentinelStyle
|
@@ -11804,21 +11808,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
11804
11808
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11805
11809
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11806
11810
|
/* harmony export */ });
|
11807
|
-
/* harmony import */ var
|
11808
|
-
/* harmony import */ var
|
11809
|
-
/* harmony import */ var
|
11810
|
-
/* harmony import */ var
|
11811
|
-
/* harmony import */ var
|
11812
|
-
/* harmony import */ var
|
11813
|
-
/* harmony import */ var
|
11814
|
-
|
11811
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11812
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
11813
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
11814
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11815
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
11816
|
+
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
11817
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./node_modules/@rc-component/dialog/es/util.js");
|
11818
|
+
/* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Panel */ "./node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js");
|
11819
|
+
|
11815
11820
|
|
11816
11821
|
|
11817
11822
|
|
11818
11823
|
|
11819
11824
|
|
11820
11825
|
|
11821
|
-
const Content = /*#__PURE__*/
|
11826
|
+
const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((props, ref) => {
|
11822
11827
|
const {
|
11823
11828
|
prefixCls,
|
11824
11829
|
title,
|
@@ -11826,48 +11831,40 @@ const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((prop
|
|
11826
11831
|
className,
|
11827
11832
|
visible,
|
11828
11833
|
forceRender,
|
11829
|
-
|
11834
|
+
destroyOnClose,
|
11830
11835
|
motionName,
|
11831
11836
|
ariaId,
|
11832
11837
|
onVisibleChanged,
|
11833
11838
|
mousePosition
|
11834
11839
|
} = props;
|
11835
|
-
const dialogRef = (0,
|
11836
|
-
const panelRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
11837
|
-
|
11838
|
-
// ============================== Refs ==============================
|
11839
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle(ref, () => ({
|
11840
|
-
...panelRef.current,
|
11841
|
-
inMotion: dialogRef.current.inMotion,
|
11842
|
-
enableMotion: dialogRef.current.enableMotion
|
11843
|
-
}));
|
11840
|
+
const dialogRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
11844
11841
|
|
11845
11842
|
// ============================= Style ==============================
|
11846
|
-
const [transformOrigin, setTransformOrigin] =
|
11843
|
+
const [transformOrigin, setTransformOrigin] = react__WEBPACK_IMPORTED_MODULE_1__.useState();
|
11847
11844
|
const contentStyle = {};
|
11848
11845
|
if (transformOrigin) {
|
11849
11846
|
contentStyle.transformOrigin = transformOrigin;
|
11850
11847
|
}
|
11851
11848
|
function onPrepare() {
|
11852
|
-
const elementOffset = (0,
|
11849
|
+
const elementOffset = (0,_util__WEBPACK_IMPORTED_MODULE_4__.offset)(dialogRef.current);
|
11853
11850
|
setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px` : '');
|
11854
11851
|
}
|
11855
11852
|
|
11856
11853
|
// ============================= Render =============================
|
11857
|
-
return /*#__PURE__*/
|
11854
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
11858
11855
|
visible: visible,
|
11859
11856
|
onVisibleChanged: onVisibleChanged,
|
11860
11857
|
onAppearPrepare: onPrepare,
|
11861
11858
|
onEnterPrepare: onPrepare,
|
11862
11859
|
forceRender: forceRender,
|
11863
11860
|
motionName: motionName,
|
11864
|
-
removeOnLeave:
|
11861
|
+
removeOnLeave: destroyOnClose,
|
11865
11862
|
ref: dialogRef
|
11866
11863
|
}, ({
|
11867
11864
|
className: motionClassName,
|
11868
11865
|
style: motionStyle
|
11869
|
-
}, motionRef) => /*#__PURE__*/
|
11870
|
-
ref:
|
11866
|
+
}, motionRef) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Panel__WEBPACK_IMPORTED_MODULE_5__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
11867
|
+
ref: ref,
|
11871
11868
|
title: title,
|
11872
11869
|
ariaId: ariaId,
|
11873
11870
|
prefixCls: prefixCls,
|
@@ -11877,12 +11874,10 @@ const Content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((prop
|
|
11877
11874
|
...style,
|
11878
11875
|
...contentStyle
|
11879
11876
|
},
|
11880
|
-
className:
|
11877
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, motionClassName)
|
11881
11878
|
})));
|
11882
11879
|
});
|
11883
|
-
|
11884
|
-
Content.displayName = 'Content';
|
11885
|
-
}
|
11880
|
+
Content.displayName = 'Content';
|
11886
11881
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Content);
|
11887
11882
|
|
11888
11883
|
/***/ }),
|
@@ -11898,12 +11893,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
11898
11893
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11899
11894
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11900
11895
|
/* harmony export */ });
|
11901
|
-
/* harmony import */ var
|
11902
|
-
/* harmony import */ var
|
11903
|
-
/* harmony import */ var
|
11904
|
-
/* harmony import */ var
|
11905
|
-
/* harmony import */ var
|
11906
|
-
|
11896
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11897
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
11898
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
11899
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11900
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
11901
|
+
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
11902
|
+
|
11907
11903
|
|
11908
11904
|
|
11909
11905
|
|
@@ -11916,7 +11912,7 @@ const Mask = props => {
|
|
11916
11912
|
motionName,
|
11917
11913
|
className
|
11918
11914
|
} = props;
|
11919
|
-
return /*#__PURE__*/
|
11915
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(rc_motion__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
11920
11916
|
key: "mask",
|
11921
11917
|
visible: visible,
|
11922
11918
|
motionName: motionName,
|
@@ -11924,13 +11920,13 @@ const Mask = props => {
|
|
11924
11920
|
}, ({
|
11925
11921
|
className: motionClassName,
|
11926
11922
|
style: motionStyle
|
11927
|
-
}, ref) => /*#__PURE__*/
|
11923
|
+
}, ref) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
11928
11924
|
ref: ref,
|
11929
11925
|
style: {
|
11930
11926
|
...motionStyle,
|
11931
11927
|
...style
|
11932
11928
|
},
|
11933
|
-
className:
|
11929
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(`${prefixCls}-mask`, motionClassName, className)
|
11934
11930
|
}, maskProps)));
|
11935
11931
|
};
|
11936
11932
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Mask);
|
@@ -11948,19 +11944,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
11948
11944
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11949
11945
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
11950
11946
|
/* harmony export */ });
|
11951
|
-
/* harmony import */ var
|
11952
|
-
/* harmony import */ var
|
11953
|
-
/* harmony import */ var
|
11954
|
-
/* harmony import */ var
|
11955
|
-
/* harmony import */ var
|
11956
|
-
/* harmony import */ var
|
11957
|
-
/* harmony import */ var
|
11958
|
-
/* harmony import */ var
|
11959
|
-
/* harmony import */ var
|
11960
|
-
/* harmony import */ var
|
11961
|
-
/* harmony import */ var
|
11962
|
-
/* harmony import */ var
|
11963
|
-
|
11947
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
11948
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
11949
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
11950
|
+
/* harmony import */ var _rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __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_4__ = __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_5__ = __webpack_require__(/*! @rc-component/util/es/pickAttrs */ "./node_modules/@rc-component/util/es/pickAttrs.js");
|
11954
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
|
11955
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
11956
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util */ "./node_modules/@rc-component/dialog/es/util.js");
|
11957
|
+
/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Content */ "./node_modules/@rc-component/dialog/es/Dialog/Content/index.js");
|
11958
|
+
/* harmony import */ var _Mask__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Mask */ "./node_modules/@rc-component/dialog/es/Dialog/Mask.js");
|
11959
|
+
/* harmony import */ var _rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @rc-component/util/es/warning */ "./node_modules/@rc-component/util/es/warning.js");
|
11960
|
+
|
11964
11961
|
|
11965
11962
|
|
11966
11963
|
|
@@ -12006,59 +12003,53 @@ const Dialog = props => {
|
|
12006
12003
|
if (true) {
|
12007
12004
|
['wrapStyle', 'bodyStyle', 'maskStyle'].forEach(prop => {
|
12008
12005
|
// (prop in props) && console.error(`Warning: ${prop} is deprecated, please use styles instead.`)
|
12009
|
-
(0,
|
12006
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_10__.warning)(!(prop in props), `${prop} is deprecated, please use styles instead.`);
|
12010
12007
|
});
|
12011
12008
|
if ('wrapClassName' in props) {
|
12012
|
-
(0,
|
12009
|
+
(0,_rc_component_util_es_warning__WEBPACK_IMPORTED_MODULE_10__.warning)(false, `wrapClassName is deprecated, please use classNames instead.`);
|
12013
12010
|
}
|
12014
12011
|
}
|
12015
|
-
const lastOutSideActiveElementRef = (0,
|
12016
|
-
const wrapperRef = (0,
|
12017
|
-
const contentRef = (0,
|
12018
|
-
const [animatedVisible, setAnimatedVisible] =
|
12012
|
+
const lastOutSideActiveElementRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
12013
|
+
const wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
12014
|
+
const contentRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
12015
|
+
const [animatedVisible, setAnimatedVisible] = react__WEBPACK_IMPORTED_MODULE_6__.useState(visible);
|
12019
12016
|
|
12020
12017
|
// ========================== Init ==========================
|
12021
|
-
const ariaId = (0,
|
12018
|
+
const ariaId = (0,_rc_component_util_es_hooks_useId__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
12022
12019
|
function saveLastOutSideActiveElementRef() {
|
12023
|
-
if (!(0,
|
12020
|
+
if (!(0,_rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__["default"])(wrapperRef.current, document.activeElement)) {
|
12024
12021
|
lastOutSideActiveElementRef.current = document.activeElement;
|
12025
12022
|
}
|
12026
12023
|
}
|
12027
12024
|
function focusDialogContent() {
|
12028
|
-
if (!(0,
|
12025
|
+
if (!(0,_rc_component_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__["default"])(wrapperRef.current, document.activeElement)) {
|
12029
12026
|
contentRef.current?.focus();
|
12030
12027
|
}
|
12031
12028
|
}
|
12032
12029
|
|
12033
12030
|
// ========================= Events =========================
|
12034
|
-
// Close action will trigger by:
|
12035
|
-
// 1. When hide motion end
|
12036
|
-
// 2. Controlled `open` to `false` immediately after set to `true` which will not trigger motion
|
12037
|
-
function doClose() {
|
12038
|
-
// Clean up scroll bar & focus back
|
12039
|
-
setAnimatedVisible(false);
|
12040
|
-
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
12041
|
-
try {
|
12042
|
-
lastOutSideActiveElementRef.current.focus({
|
12043
|
-
preventScroll: true
|
12044
|
-
});
|
12045
|
-
} catch (e) {
|
12046
|
-
// Do nothing
|
12047
|
-
}
|
12048
|
-
lastOutSideActiveElementRef.current = null;
|
12049
|
-
}
|
12050
|
-
|
12051
|
-
// Trigger afterClose only when change visible from true to false
|
12052
|
-
if (animatedVisible) {
|
12053
|
-
afterClose?.();
|
12054
|
-
}
|
12055
|
-
}
|
12056
12031
|
function onDialogVisibleChanged(newVisible) {
|
12057
12032
|
// Try to focus
|
12058
12033
|
if (newVisible) {
|
12059
12034
|
focusDialogContent();
|
12060
12035
|
} else {
|
12061
|
-
|
12036
|
+
// Clean up scroll bar & focus back
|
12037
|
+
setAnimatedVisible(false);
|
12038
|
+
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
12039
|
+
try {
|
12040
|
+
lastOutSideActiveElementRef.current.focus({
|
12041
|
+
preventScroll: true
|
12042
|
+
});
|
12043
|
+
} catch (e) {
|
12044
|
+
// Do nothing
|
12045
|
+
}
|
12046
|
+
lastOutSideActiveElementRef.current = null;
|
12047
|
+
}
|
12048
|
+
|
12049
|
+
// Trigger afterClose only when change visible from true to false
|
12050
|
+
if (animatedVisible) {
|
12051
|
+
afterClose?.();
|
12052
|
+
}
|
12062
12053
|
}
|
12063
12054
|
afterOpenChange?.(newVisible);
|
12064
12055
|
}
|
@@ -12067,8 +12058,8 @@ const Dialog = props => {
|
|
12067
12058
|
}
|
12068
12059
|
|
12069
12060
|
// >>> Content
|
12070
|
-
const contentClickRef = (0,
|
12071
|
-
const contentTimeoutRef = (0,
|
12061
|
+
const contentClickRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)(false);
|
12062
|
+
const contentTimeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_6__.useRef)();
|
12072
12063
|
|
12073
12064
|
// We need record content click incase content popup out of dialog
|
12074
12065
|
const onContentMouseDown = () => {
|
@@ -12094,30 +12085,28 @@ const Dialog = props => {
|
|
12094
12085
|
};
|
12095
12086
|
}
|
12096
12087
|
function onWrapperKeyDown(e) {
|
12097
|
-
if (keyboard && e.keyCode ===
|
12088
|
+
if (keyboard && e.keyCode === _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
|
12098
12089
|
e.stopPropagation();
|
12099
12090
|
onInternalClose(e);
|
12100
12091
|
return;
|
12101
12092
|
}
|
12102
12093
|
|
12103
12094
|
// keep focus inside dialog
|
12104
|
-
if (visible && e.keyCode ===
|
12095
|
+
if (visible && e.keyCode === _rc_component_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].TAB) {
|
12105
12096
|
contentRef.current.changeActive(!e.shiftKey);
|
12106
12097
|
}
|
12107
12098
|
}
|
12108
12099
|
|
12109
12100
|
// ========================= Effect =========================
|
12110
|
-
(0,
|
12101
|
+
(0,react__WEBPACK_IMPORTED_MODULE_6__.useEffect)(() => {
|
12111
12102
|
if (visible) {
|
12112
12103
|
setAnimatedVisible(true);
|
12113
12104
|
saveLastOutSideActiveElementRef();
|
12114
|
-
} else if (animatedVisible && contentRef.current.enableMotion() && !contentRef.current.inMotion()) {
|
12115
|
-
doClose();
|
12116
12105
|
}
|
12117
12106
|
}, [visible]);
|
12118
12107
|
|
12119
12108
|
// Remove direct should also check the scroll bar update
|
12120
|
-
(0,
|
12109
|
+
(0,react__WEBPACK_IMPORTED_MODULE_6__.useEffect)(() => () => {
|
12121
12110
|
clearTimeout(contentTimeoutRef.current);
|
12122
12111
|
}, []);
|
12123
12112
|
const mergedStyle = {
|
@@ -12128,15 +12117,15 @@ const Dialog = props => {
|
|
12128
12117
|
};
|
12129
12118
|
|
12130
12119
|
// ========================= Render =========================
|
12131
|
-
return /*#__PURE__*/
|
12132
|
-
className:
|
12120
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
12121
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-root`, rootClassName),
|
12133
12122
|
style: rootStyle
|
12134
|
-
}, (0,
|
12123
|
+
}, (0,_rc_component_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_5__["default"])(props, {
|
12135
12124
|
data: true
|
12136
|
-
})), /*#__PURE__*/
|
12125
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement(_Mask__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
12137
12126
|
prefixCls: prefixCls,
|
12138
12127
|
visible: mask && visible,
|
12139
|
-
motionName: (0,
|
12128
|
+
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_7__.getMotionName)(prefixCls, maskTransitionName, maskAnimation),
|
12140
12129
|
style: {
|
12141
12130
|
zIndex,
|
12142
12131
|
...maskStyle,
|
@@ -12144,14 +12133,14 @@ const Dialog = props => {
|
|
12144
12133
|
},
|
12145
12134
|
maskProps: maskProps,
|
12146
12135
|
className: modalClassNames?.mask
|
12147
|
-
}), /*#__PURE__*/
|
12136
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
12148
12137
|
tabIndex: -1,
|
12149
12138
|
onKeyDown: onWrapperKeyDown,
|
12150
|
-
className:
|
12139
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
|
12151
12140
|
ref: wrapperRef,
|
12152
12141
|
onClick: onWrapperClick,
|
12153
12142
|
style: mergedStyle
|
12154
|
-
}, wrapProps), /*#__PURE__*/
|
12143
|
+
}, wrapProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__.createElement(_Content__WEBPACK_IMPORTED_MODULE_8__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
12155
12144
|
onMouseDown: onContentMouseDown,
|
12156
12145
|
onMouseUp: onContentMouseUp,
|
12157
12146
|
ref: contentRef,
|
@@ -12161,7 +12150,7 @@ const Dialog = props => {
|
|
12161
12150
|
visible: visible && animatedVisible,
|
12162
12151
|
onClose: onInternalClose,
|
12163
12152
|
onVisibleChanged: onDialogVisibleChanged,
|
12164
|
-
motionName: (0,
|
12153
|
+
motionName: (0,_util__WEBPACK_IMPORTED_MODULE_7__.getMotionName)(prefixCls, transitionName, animation)
|
12165
12154
|
}))));
|
12166
12155
|
};
|
12167
12156
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dialog);
|
@@ -12179,12 +12168,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
12179
12168
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12180
12169
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12181
12170
|
/* harmony export */ });
|
12182
|
-
/* harmony import */ var
|
12183
|
-
/* harmony import */ var
|
12184
|
-
/* harmony import */ var
|
12185
|
-
/* harmony import */ var
|
12186
|
-
/* harmony import */ var
|
12187
|
-
|
12171
|
+
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
12172
|
+
/* harmony import */ var _rc_component_portal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rc-component/portal */ "./node_modules/@rc-component/portal/es/index.js");
|
12173
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
12174
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
12175
|
+
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/dialog/es/context.js");
|
12176
|
+
/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Dialog */ "./node_modules/@rc-component/dialog/es/Dialog/index.js");
|
12177
|
+
|
12188
12178
|
|
12189
12179
|
|
12190
12180
|
|
@@ -12203,48 +12193,40 @@ const DialogWrap = props => {
|
|
12203
12193
|
visible,
|
12204
12194
|
getContainer,
|
12205
12195
|
forceRender,
|
12206
|
-
|
12196
|
+
destroyOnClose = false,
|
12207
12197
|
afterClose,
|
12208
|
-
closable,
|
12209
12198
|
panelRef
|
12210
12199
|
} = props;
|
12211
|
-
const [animatedVisible, setAnimatedVisible] =
|
12212
|
-
const refContext =
|
12200
|
+
const [animatedVisible, setAnimatedVisible] = react__WEBPACK_IMPORTED_MODULE_2__.useState(visible);
|
12201
|
+
const refContext = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => ({
|
12213
12202
|
panel: panelRef
|
12214
12203
|
}), [panelRef]);
|
12215
|
-
|
12204
|
+
react__WEBPACK_IMPORTED_MODULE_2__.useEffect(() => {
|
12216
12205
|
if (visible) {
|
12217
12206
|
setAnimatedVisible(true);
|
12218
12207
|
}
|
12219
12208
|
}, [visible]);
|
12220
12209
|
|
12221
12210
|
// Destroy on close will remove wrapped div
|
12222
|
-
if (!forceRender &&
|
12211
|
+
if (!forceRender && destroyOnClose && !animatedVisible) {
|
12223
12212
|
return null;
|
12224
12213
|
}
|
12225
|
-
return /*#__PURE__*/
|
12214
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_context__WEBPACK_IMPORTED_MODULE_3__.RefContext.Provider, {
|
12226
12215
|
value: refContext
|
12227
|
-
}, /*#__PURE__*/
|
12216
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_rc_component_portal__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
12228
12217
|
open: visible || forceRender || animatedVisible,
|
12229
12218
|
autoDestroy: false,
|
12230
12219
|
getContainer: getContainer,
|
12231
12220
|
autoLock: visible || animatedVisible
|
12232
|
-
}, /*#__PURE__*/
|
12233
|
-
|
12221
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Dialog__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
12222
|
+
destroyOnClose: destroyOnClose,
|
12234
12223
|
afterClose: () => {
|
12235
|
-
const closableObj = closable && typeof closable === 'object' ? closable : {};
|
12236
|
-
const {
|
12237
|
-
afterClose: closableAfterClose
|
12238
|
-
} = closableObj || {};
|
12239
|
-
closableAfterClose?.();
|
12240
12224
|
afterClose?.();
|
12241
12225
|
setAnimatedVisible(false);
|
12242
12226
|
}
|
12243
12227
|
}))));
|
12244
12228
|
};
|
12245
|
-
|
12246
|
-
DialogWrap.displayName = 'Dialog';
|
12247
|
-
}
|
12229
|
+
DialogWrap.displayName = 'Dialog';
|
12248
12230
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DialogWrap);
|
12249
12231
|
|
12250
12232
|
/***/ }),
|
@@ -12337,1383 +12319,6 @@ function offset(el) {
|
|
12337
12319
|
|
12338
12320
|
/***/ }),
|
12339
12321
|
|
12340
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js":
|
12341
|
-
/*!*******************************************************************************************!*\
|
12342
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js ***!
|
12343
|
-
\*******************************************************************************************/
|
12344
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12345
|
-
|
12346
|
-
"use strict";
|
12347
|
-
__webpack_require__.r(__webpack_exports__);
|
12348
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12349
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12350
|
-
/* harmony export */ });
|
12351
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12352
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12353
|
-
|
12354
|
-
const OrderContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
|
12355
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OrderContext);
|
12356
|
-
|
12357
|
-
/***/ }),
|
12358
|
-
|
12359
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Portal.js":
|
12360
|
-
/*!******************************************************************************************!*\
|
12361
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Portal.js ***!
|
12362
|
-
\******************************************************************************************/
|
12363
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12364
|
-
|
12365
|
-
"use strict";
|
12366
|
-
__webpack_require__.r(__webpack_exports__);
|
12367
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12368
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
12369
|
-
/* harmony export */ });
|
12370
|
-
/* 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");
|
12371
|
-
/* 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");
|
12372
|
-
/* 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");
|
12373
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
12374
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
12375
|
-
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-dom */ "react-dom");
|
12376
|
-
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_4__);
|
12377
|
-
/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Context */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js");
|
12378
|
-
/* harmony import */ var _mock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mock */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js");
|
12379
|
-
/* harmony import */ var _useDom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useDom */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useDom.js");
|
12380
|
-
/* harmony import */ var _useScrollLocker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useScrollLocker */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useScrollLocker.js");
|
12381
|
-
|
12382
|
-
|
12383
|
-
|
12384
|
-
|
12385
|
-
|
12386
|
-
|
12387
|
-
|
12388
|
-
|
12389
|
-
|
12390
|
-
const getPortalContainer = getContainer => {
|
12391
|
-
if (getContainer === false) {
|
12392
|
-
return false;
|
12393
|
-
}
|
12394
|
-
if (!(0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() || !getContainer) {
|
12395
|
-
return null;
|
12396
|
-
}
|
12397
|
-
if (typeof getContainer === 'string') {
|
12398
|
-
return document.querySelector(getContainer);
|
12399
|
-
}
|
12400
|
-
if (typeof getContainer === 'function') {
|
12401
|
-
return getContainer();
|
12402
|
-
}
|
12403
|
-
return getContainer;
|
12404
|
-
};
|
12405
|
-
const Portal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((props, ref) => {
|
12406
|
-
const {
|
12407
|
-
open,
|
12408
|
-
autoLock,
|
12409
|
-
getContainer,
|
12410
|
-
debug,
|
12411
|
-
autoDestroy = true,
|
12412
|
-
children
|
12413
|
-
} = props;
|
12414
|
-
const [shouldRender, setShouldRender] = react__WEBPACK_IMPORTED_MODULE_3__.useState(open);
|
12415
|
-
const mergedRender = shouldRender || open;
|
12416
|
-
|
12417
|
-
// ========================= Warning =========================
|
12418
|
-
if (true) {
|
12419
|
-
(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.`);
|
12420
|
-
}
|
12421
|
-
|
12422
|
-
// ====================== Should Render ======================
|
12423
|
-
react__WEBPACK_IMPORTED_MODULE_3__.useEffect(() => {
|
12424
|
-
if (autoDestroy || open) {
|
12425
|
-
setShouldRender(open);
|
12426
|
-
}
|
12427
|
-
}, [open, autoDestroy]);
|
12428
|
-
|
12429
|
-
// ======================== Container ========================
|
12430
|
-
const [innerContainer, setInnerContainer] = react__WEBPACK_IMPORTED_MODULE_3__.useState(() => getPortalContainer(getContainer));
|
12431
|
-
react__WEBPACK_IMPORTED_MODULE_3__.useEffect(() => {
|
12432
|
-
const customizeContainer = getPortalContainer(getContainer);
|
12433
|
-
|
12434
|
-
// Tell component that we check this in effect which is safe to be `null`
|
12435
|
-
setInnerContainer(customizeContainer ?? null);
|
12436
|
-
});
|
12437
|
-
const [defaultContainer, queueCreate] = (0,_useDom__WEBPACK_IMPORTED_MODULE_7__["default"])(mergedRender && !innerContainer, debug);
|
12438
|
-
const mergedContainer = innerContainer ?? defaultContainer;
|
12439
|
-
|
12440
|
-
// ========================= Locker ==========================
|
12441
|
-
(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));
|
12442
|
-
|
12443
|
-
// =========================== Ref ===========================
|
12444
|
-
let childRef = null;
|
12445
|
-
if (children && (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.supportRef)(children) && ref) {
|
12446
|
-
childRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.getNodeRef)(children);
|
12447
|
-
}
|
12448
|
-
const mergedRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.useComposeRef)(childRef, ref);
|
12449
|
-
|
12450
|
-
// ========================= Render ==========================
|
12451
|
-
// Do not render when nothing need render
|
12452
|
-
// When innerContainer is `undefined`, it may not ready since user use ref in the same render
|
12453
|
-
if (!mergedRender || !(0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])() || innerContainer === undefined) {
|
12454
|
-
return null;
|
12455
|
-
}
|
12456
|
-
|
12457
|
-
// Render inline
|
12458
|
-
const renderInline = mergedContainer === false || (0,_mock__WEBPACK_IMPORTED_MODULE_6__.inlineMock)();
|
12459
|
-
let reffedChildren = children;
|
12460
|
-
if (ref) {
|
12461
|
-
reffedChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(children, {
|
12462
|
-
ref: mergedRef
|
12463
|
-
});
|
12464
|
-
}
|
12465
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Context__WEBPACK_IMPORTED_MODULE_5__["default"].Provider, {
|
12466
|
-
value: queueCreate
|
12467
|
-
}, renderInline ? reffedChildren : /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_4__.createPortal)(reffedChildren, mergedContainer));
|
12468
|
-
});
|
12469
|
-
if (true) {
|
12470
|
-
Portal.displayName = 'Portal';
|
12471
|
-
}
|
12472
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Portal);
|
12473
|
-
|
12474
|
-
/***/ }),
|
12475
|
-
|
12476
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/index.js":
|
12477
|
-
/*!*****************************************************************************************!*\
|
12478
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/index.js ***!
|
12479
|
-
\*****************************************************************************************/
|
12480
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12481
|
-
|
12482
|
-
"use strict";
|
12483
|
-
__webpack_require__.r(__webpack_exports__);
|
12484
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12485
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
12486
|
-
/* harmony export */ inlineMock: () => (/* reexport safe */ _mock__WEBPACK_IMPORTED_MODULE_1__.inlineMock)
|
12487
|
-
/* harmony export */ });
|
12488
|
-
/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Portal */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Portal.js");
|
12489
|
-
/* harmony import */ var _mock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mock */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js");
|
12490
|
-
|
12491
|
-
|
12492
|
-
|
12493
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_Portal__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
12494
|
-
|
12495
|
-
/***/ }),
|
12496
|
-
|
12497
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js":
|
12498
|
-
/*!****************************************************************************************!*\
|
12499
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/mock.js ***!
|
12500
|
-
\****************************************************************************************/
|
12501
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12502
|
-
|
12503
|
-
"use strict";
|
12504
|
-
__webpack_require__.r(__webpack_exports__);
|
12505
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12506
|
-
/* harmony export */ inline: () => (/* binding */ inline),
|
12507
|
-
/* harmony export */ inlineMock: () => (/* binding */ inlineMock)
|
12508
|
-
/* harmony export */ });
|
12509
|
-
let inline = false;
|
12510
|
-
function inlineMock(nextInline) {
|
12511
|
-
if (typeof nextInline === 'boolean') {
|
12512
|
-
inline = nextInline;
|
12513
|
-
}
|
12514
|
-
return inline;
|
12515
|
-
}
|
12516
|
-
|
12517
|
-
/***/ }),
|
12518
|
-
|
12519
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useDom.js":
|
12520
|
-
/*!******************************************************************************************!*\
|
12521
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useDom.js ***!
|
12522
|
-
\******************************************************************************************/
|
12523
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12524
|
-
|
12525
|
-
"use strict";
|
12526
|
-
__webpack_require__.r(__webpack_exports__);
|
12527
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12528
|
-
/* harmony export */ "default": () => (/* binding */ useDom)
|
12529
|
-
/* harmony export */ });
|
12530
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12531
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12532
|
-
/* 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");
|
12533
|
-
/* 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");
|
12534
|
-
/* harmony import */ var _Context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Context */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/Context.js");
|
12535
|
-
|
12536
|
-
|
12537
|
-
|
12538
|
-
|
12539
|
-
const EMPTY_LIST = [];
|
12540
|
-
|
12541
|
-
/**
|
12542
|
-
* Will add `div` to document. Nest call will keep order
|
12543
|
-
* @param render Render DOM in document
|
12544
|
-
*/
|
12545
|
-
function useDom(render, debug) {
|
12546
|
-
const [ele] = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => {
|
12547
|
-
if (!(0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__["default"])()) {
|
12548
|
-
return null;
|
12549
|
-
}
|
12550
|
-
const defaultEle = document.createElement('div');
|
12551
|
-
if ( true && debug) {
|
12552
|
-
defaultEle.setAttribute('data-debug', debug);
|
12553
|
-
}
|
12554
|
-
return defaultEle;
|
12555
|
-
});
|
12556
|
-
|
12557
|
-
// ========================== Order ==========================
|
12558
|
-
const appendedRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);
|
12559
|
-
const queueCreate = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_Context__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
12560
|
-
const [queue, setQueue] = react__WEBPACK_IMPORTED_MODULE_0__.useState(EMPTY_LIST);
|
12561
|
-
const mergedQueueCreate = queueCreate || (appendedRef.current ? undefined : appendFn => {
|
12562
|
-
setQueue(origin => {
|
12563
|
-
const newQueue = [appendFn, ...origin];
|
12564
|
-
return newQueue;
|
12565
|
-
});
|
12566
|
-
});
|
12567
|
-
|
12568
|
-
// =========================== DOM ===========================
|
12569
|
-
function append() {
|
12570
|
-
if (!ele.parentElement) {
|
12571
|
-
document.body.appendChild(ele);
|
12572
|
-
}
|
12573
|
-
appendedRef.current = true;
|
12574
|
-
}
|
12575
|
-
function cleanup() {
|
12576
|
-
ele.parentElement?.removeChild(ele);
|
12577
|
-
appendedRef.current = false;
|
12578
|
-
}
|
12579
|
-
(0,_rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__["default"])(() => {
|
12580
|
-
if (render) {
|
12581
|
-
if (queueCreate) {
|
12582
|
-
queueCreate(append);
|
12583
|
-
} else {
|
12584
|
-
append();
|
12585
|
-
}
|
12586
|
-
} else {
|
12587
|
-
cleanup();
|
12588
|
-
}
|
12589
|
-
return cleanup;
|
12590
|
-
}, [render]);
|
12591
|
-
(0,_rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__["default"])(() => {
|
12592
|
-
if (queue.length) {
|
12593
|
-
queue.forEach(appendFn => appendFn());
|
12594
|
-
setQueue(EMPTY_LIST);
|
12595
|
-
}
|
12596
|
-
}, [queue]);
|
12597
|
-
return [ele, mergedQueueCreate];
|
12598
|
-
}
|
12599
|
-
|
12600
|
-
/***/ }),
|
12601
|
-
|
12602
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useScrollLocker.js":
|
12603
|
-
/*!***************************************************************************************************!*\
|
12604
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/useScrollLocker.js ***!
|
12605
|
-
\***************************************************************************************************/
|
12606
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12607
|
-
|
12608
|
-
"use strict";
|
12609
|
-
__webpack_require__.r(__webpack_exports__);
|
12610
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12611
|
-
/* harmony export */ "default": () => (/* binding */ useScrollLocker)
|
12612
|
-
/* harmony export */ });
|
12613
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12614
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12615
|
-
/* 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");
|
12616
|
-
/* 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");
|
12617
|
-
/* 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");
|
12618
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/util.js");
|
12619
|
-
|
12620
|
-
|
12621
|
-
|
12622
|
-
|
12623
|
-
|
12624
|
-
const UNIQUE_ID = `rc-util-locker-${Date.now()}`;
|
12625
|
-
let uuid = 0;
|
12626
|
-
function useScrollLocker(lock) {
|
12627
|
-
const mergedLock = !!lock;
|
12628
|
-
const [id] = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => {
|
12629
|
-
uuid += 1;
|
12630
|
-
return `${UNIQUE_ID}_${uuid}`;
|
12631
|
-
});
|
12632
|
-
(0,_rc_component_util_es_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_2__["default"])(() => {
|
12633
|
-
if (mergedLock) {
|
12634
|
-
const scrollbarSize = (0,_rc_component_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_3__.getTargetScrollBarSize)(document.body).width;
|
12635
|
-
const isOverflow = (0,_util__WEBPACK_IMPORTED_MODULE_4__.isBodyOverflowing)();
|
12636
|
-
(0,_rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__.updateCSS)(`
|
12637
|
-
html body {
|
12638
|
-
overflow-y: hidden;
|
12639
|
-
${isOverflow ? `width: calc(100% - ${scrollbarSize}px);` : ''}
|
12640
|
-
}`, id);
|
12641
|
-
} else {
|
12642
|
-
(0,_rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__.removeCSS)(id);
|
12643
|
-
}
|
12644
|
-
return () => {
|
12645
|
-
(0,_rc_component_util_es_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_1__.removeCSS)(id);
|
12646
|
-
};
|
12647
|
-
}, [mergedLock, id]);
|
12648
|
-
}
|
12649
|
-
|
12650
|
-
/***/ }),
|
12651
|
-
|
12652
|
-
/***/ "./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/util.js":
|
12653
|
-
/*!****************************************************************************************!*\
|
12654
|
-
!*** ./node_modules/@rc-component/dialog/node_modules/@rc-component/portal/es/util.js ***!
|
12655
|
-
\****************************************************************************************/
|
12656
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12657
|
-
|
12658
|
-
"use strict";
|
12659
|
-
__webpack_require__.r(__webpack_exports__);
|
12660
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12661
|
-
/* harmony export */ isBodyOverflowing: () => (/* binding */ isBodyOverflowing)
|
12662
|
-
/* harmony export */ });
|
12663
|
-
/**
|
12664
|
-
* Test usage export. Do not use in your production
|
12665
|
-
*/
|
12666
|
-
function isBodyOverflowing() {
|
12667
|
-
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
|
12668
|
-
}
|
12669
|
-
|
12670
|
-
/***/ }),
|
12671
|
-
|
12672
|
-
/***/ "./node_modules/@rc-component/motion/es/CSSMotion.js":
|
12673
|
-
/*!***********************************************************!*\
|
12674
|
-
!*** ./node_modules/@rc-component/motion/es/CSSMotion.js ***!
|
12675
|
-
\***********************************************************/
|
12676
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12677
|
-
|
12678
|
-
"use strict";
|
12679
|
-
__webpack_require__.r(__webpack_exports__);
|
12680
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12681
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
12682
|
-
/* harmony export */ genCSSMotion: () => (/* binding */ genCSSMotion)
|
12683
|
-
/* harmony export */ });
|
12684
|
-
/* 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");
|
12685
|
-
/* 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");
|
12686
|
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
12687
|
-
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
12688
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
12689
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
12690
|
-
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/motion/es/context.js");
|
12691
|
-
/* harmony import */ var _hooks_useStatus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useStatus */ "./node_modules/@rc-component/motion/es/hooks/useStatus.js");
|
12692
|
-
/* harmony import */ var _hooks_useStepQueue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hooks/useStepQueue */ "./node_modules/@rc-component/motion/es/hooks/useStepQueue.js");
|
12693
|
-
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./node_modules/@rc-component/motion/es/interface.js");
|
12694
|
-
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util/motion */ "./node_modules/@rc-component/motion/es/util/motion.js");
|
12695
|
-
/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp, react/prop-types */
|
12696
|
-
|
12697
|
-
|
12698
|
-
|
12699
|
-
|
12700
|
-
|
12701
|
-
|
12702
|
-
|
12703
|
-
|
12704
|
-
|
12705
|
-
|
12706
|
-
/**
|
12707
|
-
* `transitionSupport` is used for none transition test case.
|
12708
|
-
* Default we use browser transition event support check.
|
12709
|
-
*/
|
12710
|
-
function genCSSMotion(config) {
|
12711
|
-
let transitionSupport = config;
|
12712
|
-
if (typeof config === 'object') {
|
12713
|
-
({
|
12714
|
-
transitionSupport
|
12715
|
-
} = config);
|
12716
|
-
}
|
12717
|
-
function isSupportTransition(props, contextMotion) {
|
12718
|
-
return !!(props.motionName && transitionSupport && contextMotion !== false);
|
12719
|
-
}
|
12720
|
-
const CSSMotion = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((props, ref) => {
|
12721
|
-
const {
|
12722
|
-
// Default config
|
12723
|
-
visible = true,
|
12724
|
-
removeOnLeave = true,
|
12725
|
-
forceRender,
|
12726
|
-
children,
|
12727
|
-
motionName,
|
12728
|
-
leavedClassName,
|
12729
|
-
eventProps
|
12730
|
-
} = props;
|
12731
|
-
const {
|
12732
|
-
motion: contextMotion
|
12733
|
-
} = react__WEBPACK_IMPORTED_MODULE_3__.useContext(_context__WEBPACK_IMPORTED_MODULE_4__.Context);
|
12734
|
-
const supportMotion = isSupportTransition(props, contextMotion);
|
12735
|
-
|
12736
|
-
// Ref to the react node, it may be a HTMLElement
|
12737
|
-
const nodeRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();
|
12738
|
-
function getDomElement() {
|
12739
|
-
return (0,_rc_component_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_0__.getDOM)(nodeRef.current);
|
12740
|
-
}
|
12741
|
-
const [getStatus, statusStep, statusStyle, mergedVisible] = (0,_hooks_useStatus__WEBPACK_IMPORTED_MODULE_5__["default"])(supportMotion, visible, getDomElement, props);
|
12742
|
-
const status = getStatus();
|
12743
|
-
|
12744
|
-
// Record whether content has rendered
|
12745
|
-
// Will return null for un-rendered even when `removeOnLeave={false}`
|
12746
|
-
const renderedRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(mergedVisible);
|
12747
|
-
if (mergedVisible) {
|
12748
|
-
renderedRef.current = true;
|
12749
|
-
}
|
12750
|
-
|
12751
|
-
// ====================== Refs ======================
|
12752
|
-
const refObj = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => {
|
12753
|
-
const obj = {};
|
12754
|
-
Object.defineProperties(obj, {
|
12755
|
-
nativeElement: {
|
12756
|
-
enumerable: true,
|
12757
|
-
get: getDomElement
|
12758
|
-
},
|
12759
|
-
inMotion: {
|
12760
|
-
enumerable: true,
|
12761
|
-
get: () => () => getStatus() !== _interface__WEBPACK_IMPORTED_MODULE_7__.STATUS_NONE
|
12762
|
-
},
|
12763
|
-
enableMotion: {
|
12764
|
-
enumerable: true,
|
12765
|
-
get: () => () => supportMotion
|
12766
|
-
}
|
12767
|
-
});
|
12768
|
-
return obj;
|
12769
|
-
}, []);
|
12770
|
-
|
12771
|
-
// We lock `deps` here since function return object
|
12772
|
-
// will repeat trigger ref from `refConfig` -> `null` -> `refConfig`
|
12773
|
-
react__WEBPACK_IMPORTED_MODULE_3__.useImperativeHandle(ref, () => refObj, []);
|
12774
|
-
|
12775
|
-
// ===================== Render =====================
|
12776
|
-
let motionChildren;
|
12777
|
-
const mergedProps = {
|
12778
|
-
...eventProps,
|
12779
|
-
visible
|
12780
|
-
};
|
12781
|
-
if (!children) {
|
12782
|
-
// No children
|
12783
|
-
motionChildren = null;
|
12784
|
-
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_7__.STATUS_NONE) {
|
12785
|
-
// Stable children
|
12786
|
-
if (mergedVisible) {
|
12787
|
-
motionChildren = children({
|
12788
|
-
...mergedProps
|
12789
|
-
}, nodeRef);
|
12790
|
-
} else if (!removeOnLeave && renderedRef.current && leavedClassName) {
|
12791
|
-
motionChildren = children({
|
12792
|
-
...mergedProps,
|
12793
|
-
className: leavedClassName
|
12794
|
-
}, nodeRef);
|
12795
|
-
} else if (forceRender || !removeOnLeave && !leavedClassName) {
|
12796
|
-
motionChildren = children({
|
12797
|
-
...mergedProps,
|
12798
|
-
style: {
|
12799
|
-
display: 'none'
|
12800
|
-
}
|
12801
|
-
}, nodeRef);
|
12802
|
-
} else {
|
12803
|
-
motionChildren = null;
|
12804
|
-
}
|
12805
|
-
} else {
|
12806
|
-
// In motion
|
12807
|
-
let statusSuffix;
|
12808
|
-
if (statusStep === _interface__WEBPACK_IMPORTED_MODULE_7__.STEP_PREPARE) {
|
12809
|
-
statusSuffix = 'prepare';
|
12810
|
-
} else if ((0,_hooks_useStepQueue__WEBPACK_IMPORTED_MODULE_6__.isActive)(statusStep)) {
|
12811
|
-
statusSuffix = 'active';
|
12812
|
-
} else if (statusStep === _interface__WEBPACK_IMPORTED_MODULE_7__.STEP_START) {
|
12813
|
-
statusSuffix = 'start';
|
12814
|
-
}
|
12815
|
-
const motionCls = (0,_util_motion__WEBPACK_IMPORTED_MODULE_8__.getTransitionName)(motionName, `${status}-${statusSuffix}`);
|
12816
|
-
motionChildren = children({
|
12817
|
-
...mergedProps,
|
12818
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()((0,_util_motion__WEBPACK_IMPORTED_MODULE_8__.getTransitionName)(motionName, status), {
|
12819
|
-
[motionCls]: motionCls && statusSuffix,
|
12820
|
-
[motionName]: typeof motionName === 'string'
|
12821
|
-
}),
|
12822
|
-
style: statusStyle
|
12823
|
-
}, nodeRef);
|
12824
|
-
}
|
12825
|
-
|
12826
|
-
// Auto inject ref if child node not have `ref` props
|
12827
|
-
if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.isValidElement(motionChildren) && (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.supportRef)(motionChildren)) {
|
12828
|
-
const originNodeRef = (0,_rc_component_util_es_ref__WEBPACK_IMPORTED_MODULE_1__.getNodeRef)(motionChildren);
|
12829
|
-
if (!originNodeRef) {
|
12830
|
-
motionChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(motionChildren, {
|
12831
|
-
ref: nodeRef
|
12832
|
-
});
|
12833
|
-
}
|
12834
|
-
}
|
12835
|
-
return motionChildren;
|
12836
|
-
});
|
12837
|
-
CSSMotion.displayName = 'CSSMotion';
|
12838
|
-
return CSSMotion;
|
12839
|
-
}
|
12840
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (genCSSMotion(_util_motion__WEBPACK_IMPORTED_MODULE_8__.supportTransition));
|
12841
|
-
|
12842
|
-
/***/ }),
|
12843
|
-
|
12844
|
-
/***/ "./node_modules/@rc-component/motion/es/CSSMotionList.js":
|
12845
|
-
/*!***************************************************************!*\
|
12846
|
-
!*** ./node_modules/@rc-component/motion/es/CSSMotionList.js ***!
|
12847
|
-
\***************************************************************/
|
12848
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12849
|
-
|
12850
|
-
"use strict";
|
12851
|
-
__webpack_require__.r(__webpack_exports__);
|
12852
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12853
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
12854
|
-
/* harmony export */ genCSSMotionList: () => (/* binding */ genCSSMotionList)
|
12855
|
-
/* harmony export */ });
|
12856
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12857
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12858
|
-
/* harmony import */ var _CSSMotion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CSSMotion */ "./node_modules/@rc-component/motion/es/CSSMotion.js");
|
12859
|
-
/* harmony import */ var _util_diff__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/diff */ "./node_modules/@rc-component/motion/es/util/diff.js");
|
12860
|
-
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/motion */ "./node_modules/@rc-component/motion/es/util/motion.js");
|
12861
|
-
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); }
|
12862
|
-
/* eslint react/prop-types: 0 */
|
12863
|
-
|
12864
|
-
|
12865
|
-
|
12866
|
-
|
12867
|
-
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'];
|
12868
|
-
/**
|
12869
|
-
* Generate a CSSMotionList component with config
|
12870
|
-
* @param transitionSupport No need since CSSMotionList no longer depends on transition support
|
12871
|
-
* @param CSSMotion CSSMotion component
|
12872
|
-
*/
|
12873
|
-
function genCSSMotionList(transitionSupport, CSSMotion = _CSSMotion__WEBPACK_IMPORTED_MODULE_1__["default"]) {
|
12874
|
-
class CSSMotionList extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
12875
|
-
static defaultProps = {
|
12876
|
-
component: 'div'
|
12877
|
-
};
|
12878
|
-
state = {
|
12879
|
-
keyEntities: []
|
12880
|
-
};
|
12881
|
-
static getDerivedStateFromProps({
|
12882
|
-
keys
|
12883
|
-
}, {
|
12884
|
-
keyEntities
|
12885
|
-
}) {
|
12886
|
-
const parsedKeyObjects = (0,_util_diff__WEBPACK_IMPORTED_MODULE_2__.parseKeys)(keys);
|
12887
|
-
const mixedKeyEntities = (0,_util_diff__WEBPACK_IMPORTED_MODULE_2__.diffKeys)(keyEntities, parsedKeyObjects);
|
12888
|
-
return {
|
12889
|
-
keyEntities: mixedKeyEntities.filter(entity => {
|
12890
|
-
const prevEntity = keyEntities.find(({
|
12891
|
-
key
|
12892
|
-
}) => entity.key === key);
|
12893
|
-
|
12894
|
-
// Remove if already mark as removed
|
12895
|
-
if (prevEntity && prevEntity.status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVED && entity.status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVE) {
|
12896
|
-
return false;
|
12897
|
-
}
|
12898
|
-
return true;
|
12899
|
-
})
|
12900
|
-
};
|
12901
|
-
}
|
12902
|
-
|
12903
|
-
// ZombieJ: Return the count of rest keys. It's safe to refactor if need more info.
|
12904
|
-
removeKey = removeKey => {
|
12905
|
-
this.setState(prevState => {
|
12906
|
-
const nextKeyEntities = prevState.keyEntities.map(entity => {
|
12907
|
-
if (entity.key !== removeKey) return entity;
|
12908
|
-
return {
|
12909
|
-
...entity,
|
12910
|
-
status: _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVED
|
12911
|
-
};
|
12912
|
-
});
|
12913
|
-
return {
|
12914
|
-
keyEntities: nextKeyEntities
|
12915
|
-
};
|
12916
|
-
}, () => {
|
12917
|
-
const {
|
12918
|
-
keyEntities
|
12919
|
-
} = this.state;
|
12920
|
-
const restKeysCount = keyEntities.filter(({
|
12921
|
-
status
|
12922
|
-
}) => status !== _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_REMOVED).length;
|
12923
|
-
if (restKeysCount === 0 && this.props.onAllRemoved) {
|
12924
|
-
this.props.onAllRemoved();
|
12925
|
-
}
|
12926
|
-
});
|
12927
|
-
};
|
12928
|
-
render() {
|
12929
|
-
const {
|
12930
|
-
keyEntities
|
12931
|
-
} = this.state;
|
12932
|
-
const {
|
12933
|
-
component,
|
12934
|
-
children,
|
12935
|
-
onVisibleChanged,
|
12936
|
-
onAllRemoved,
|
12937
|
-
...restProps
|
12938
|
-
} = this.props;
|
12939
|
-
const Component = component || react__WEBPACK_IMPORTED_MODULE_0__.Fragment;
|
12940
|
-
const motionProps = {};
|
12941
|
-
MOTION_PROP_NAMES.forEach(prop => {
|
12942
|
-
motionProps[prop] = restProps[prop];
|
12943
|
-
delete restProps[prop];
|
12944
|
-
});
|
12945
|
-
delete restProps.keys;
|
12946
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, restProps, keyEntities.map(({
|
12947
|
-
status,
|
12948
|
-
...eventProps
|
12949
|
-
}, index) => {
|
12950
|
-
const visible = status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_ADD || status === _util_diff__WEBPACK_IMPORTED_MODULE_2__.STATUS_KEEP;
|
12951
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(CSSMotion, _extends({}, motionProps, {
|
12952
|
-
key: eventProps.key,
|
12953
|
-
visible: visible,
|
12954
|
-
eventProps: eventProps,
|
12955
|
-
onVisibleChanged: changedVisible => {
|
12956
|
-
onVisibleChanged?.(changedVisible, {
|
12957
|
-
key: eventProps.key
|
12958
|
-
});
|
12959
|
-
if (!changedVisible) {
|
12960
|
-
this.removeKey(eventProps.key);
|
12961
|
-
}
|
12962
|
-
}
|
12963
|
-
}), (props, ref) => children({
|
12964
|
-
...props,
|
12965
|
-
index
|
12966
|
-
}, ref));
|
12967
|
-
}));
|
12968
|
-
}
|
12969
|
-
}
|
12970
|
-
return CSSMotionList;
|
12971
|
-
}
|
12972
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (genCSSMotionList(_util_motion__WEBPACK_IMPORTED_MODULE_3__.supportTransition));
|
12973
|
-
|
12974
|
-
/***/ }),
|
12975
|
-
|
12976
|
-
/***/ "./node_modules/@rc-component/motion/es/context.js":
|
12977
|
-
/*!*********************************************************!*\
|
12978
|
-
!*** ./node_modules/@rc-component/motion/es/context.js ***!
|
12979
|
-
\*********************************************************/
|
12980
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
12981
|
-
|
12982
|
-
"use strict";
|
12983
|
-
__webpack_require__.r(__webpack_exports__);
|
12984
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
12985
|
-
/* harmony export */ Context: () => (/* binding */ Context),
|
12986
|
-
/* harmony export */ "default": () => (/* binding */ MotionProvider)
|
12987
|
-
/* harmony export */ });
|
12988
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
12989
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
12990
|
-
|
12991
|
-
const Context = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
|
12992
|
-
function MotionProvider({
|
12993
|
-
children,
|
12994
|
-
...props
|
12995
|
-
}) {
|
12996
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Context.Provider, {
|
12997
|
-
value: props
|
12998
|
-
}, children);
|
12999
|
-
}
|
13000
|
-
|
13001
|
-
/***/ }),
|
13002
|
-
|
13003
|
-
/***/ "./node_modules/@rc-component/motion/es/hooks/useDomMotionEvents.js":
|
13004
|
-
/*!**************************************************************************!*\
|
13005
|
-
!*** ./node_modules/@rc-component/motion/es/hooks/useDomMotionEvents.js ***!
|
13006
|
-
\**************************************************************************/
|
13007
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13008
|
-
|
13009
|
-
"use strict";
|
13010
|
-
__webpack_require__.r(__webpack_exports__);
|
13011
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13012
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13013
|
-
/* harmony export */ });
|
13014
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
13015
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
13016
|
-
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/motion */ "./node_modules/@rc-component/motion/es/util/motion.js");
|
13017
|
-
|
13018
|
-
|
13019
|
-
|
13020
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (onInternalMotionEnd => {
|
13021
|
-
const cacheElementRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
13022
|
-
|
13023
|
-
// Remove events
|
13024
|
-
function removeMotionEvents(element) {
|
13025
|
-
if (element) {
|
13026
|
-
element.removeEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.transitionEndName, onInternalMotionEnd);
|
13027
|
-
element.removeEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.animationEndName, onInternalMotionEnd);
|
13028
|
-
}
|
13029
|
-
}
|
13030
|
-
|
13031
|
-
// Patch events
|
13032
|
-
function patchMotionEvents(element) {
|
13033
|
-
if (cacheElementRef.current && cacheElementRef.current !== element) {
|
13034
|
-
removeMotionEvents(cacheElementRef.current);
|
13035
|
-
}
|
13036
|
-
if (element && element !== cacheElementRef.current) {
|
13037
|
-
element.addEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.transitionEndName, onInternalMotionEnd);
|
13038
|
-
element.addEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__.animationEndName, onInternalMotionEnd);
|
13039
|
-
|
13040
|
-
// Save as cache in case dom removed trigger by `motionDeadline`
|
13041
|
-
cacheElementRef.current = element;
|
13042
|
-
}
|
13043
|
-
}
|
13044
|
-
|
13045
|
-
// Clean up when removed
|
13046
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => () => {
|
13047
|
-
removeMotionEvents(cacheElementRef.current);
|
13048
|
-
}, []);
|
13049
|
-
return [patchMotionEvents, removeMotionEvents];
|
13050
|
-
});
|
13051
|
-
|
13052
|
-
/***/ }),
|
13053
|
-
|
13054
|
-
/***/ "./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js":
|
13055
|
-
/*!*********************************************************************************!*\
|
13056
|
-
!*** ./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js ***!
|
13057
|
-
\*********************************************************************************/
|
13058
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13059
|
-
|
13060
|
-
"use strict";
|
13061
|
-
__webpack_require__.r(__webpack_exports__);
|
13062
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13063
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13064
|
-
/* harmony export */ });
|
13065
|
-
/* 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");
|
13066
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
13067
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
13068
|
-
|
13069
|
-
|
13070
|
-
|
13071
|
-
// It's safe to use `useLayoutEffect` but the warning is annoying
|
13072
|
-
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;
|
13073
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useIsomorphicLayoutEffect);
|
13074
|
-
|
13075
|
-
/***/ }),
|
13076
|
-
|
13077
|
-
/***/ "./node_modules/@rc-component/motion/es/hooks/useNextFrame.js":
|
13078
|
-
/*!********************************************************************!*\
|
13079
|
-
!*** ./node_modules/@rc-component/motion/es/hooks/useNextFrame.js ***!
|
13080
|
-
\********************************************************************/
|
13081
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13082
|
-
|
13083
|
-
"use strict";
|
13084
|
-
__webpack_require__.r(__webpack_exports__);
|
13085
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13086
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13087
|
-
/* harmony export */ });
|
13088
|
-
/* 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");
|
13089
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
13090
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
13091
|
-
|
13092
|
-
|
13093
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (() => {
|
13094
|
-
const nextFrameRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null);
|
13095
|
-
function cancelNextFrame() {
|
13096
|
-
_rc_component_util_es_raf__WEBPACK_IMPORTED_MODULE_0__["default"].cancel(nextFrameRef.current);
|
13097
|
-
}
|
13098
|
-
function nextFrame(callback, delay = 2) {
|
13099
|
-
cancelNextFrame();
|
13100
|
-
const nextFrameId = (0,_rc_component_util_es_raf__WEBPACK_IMPORTED_MODULE_0__["default"])(() => {
|
13101
|
-
if (delay <= 1) {
|
13102
|
-
callback({
|
13103
|
-
isCanceled: () => nextFrameId !== nextFrameRef.current
|
13104
|
-
});
|
13105
|
-
} else {
|
13106
|
-
nextFrame(callback, delay - 1);
|
13107
|
-
}
|
13108
|
-
});
|
13109
|
-
nextFrameRef.current = nextFrameId;
|
13110
|
-
}
|
13111
|
-
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => () => {
|
13112
|
-
cancelNextFrame();
|
13113
|
-
}, []);
|
13114
|
-
return [nextFrame, cancelNextFrame];
|
13115
|
-
});
|
13116
|
-
|
13117
|
-
/***/ }),
|
13118
|
-
|
13119
|
-
/***/ "./node_modules/@rc-component/motion/es/hooks/useStatus.js":
|
13120
|
-
/*!*****************************************************************!*\
|
13121
|
-
!*** ./node_modules/@rc-component/motion/es/hooks/useStatus.js ***!
|
13122
|
-
\*****************************************************************/
|
13123
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13124
|
-
|
13125
|
-
"use strict";
|
13126
|
-
__webpack_require__.r(__webpack_exports__);
|
13127
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13128
|
-
/* harmony export */ "default": () => (/* binding */ useStatus)
|
13129
|
-
/* harmony export */ });
|
13130
|
-
/* harmony import */ var _rc_component_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @rc-component/util */ "./node_modules/@rc-component/util/es/index.js");
|
13131
|
-
/* 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");
|
13132
|
-
/* 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");
|
13133
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
13134
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
13135
|
-
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interface */ "./node_modules/@rc-component/motion/es/interface.js");
|
13136
|
-
/* harmony import */ var _useDomMotionEvents__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useDomMotionEvents */ "./node_modules/@rc-component/motion/es/hooks/useDomMotionEvents.js");
|
13137
|
-
/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js");
|
13138
|
-
/* harmony import */ var _useStepQueue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useStepQueue */ "./node_modules/@rc-component/motion/es/hooks/useStepQueue.js");
|
13139
|
-
|
13140
|
-
|
13141
|
-
|
13142
|
-
|
13143
|
-
|
13144
|
-
|
13145
|
-
|
13146
|
-
|
13147
|
-
|
13148
|
-
function useStatus(supportMotion, visible, getElement, {
|
13149
|
-
motionEnter = true,
|
13150
|
-
motionAppear = true,
|
13151
|
-
motionLeave = true,
|
13152
|
-
motionDeadline,
|
13153
|
-
motionLeaveImmediately,
|
13154
|
-
onAppearPrepare,
|
13155
|
-
onEnterPrepare,
|
13156
|
-
onLeavePrepare,
|
13157
|
-
onAppearStart,
|
13158
|
-
onEnterStart,
|
13159
|
-
onLeaveStart,
|
13160
|
-
onAppearActive,
|
13161
|
-
onEnterActive,
|
13162
|
-
onLeaveActive,
|
13163
|
-
onAppearEnd,
|
13164
|
-
onEnterEnd,
|
13165
|
-
onLeaveEnd,
|
13166
|
-
onVisibleChanged
|
13167
|
-
}) {
|
13168
|
-
// Used for outer render usage to avoid `visible: false & status: none` to render nothing
|
13169
|
-
const [asyncVisible, setAsyncVisible] = (0,_rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_1__["default"])();
|
13170
|
-
const [getStatus, setStatus] = (0,_rc_component_util_es_hooks_useSyncState__WEBPACK_IMPORTED_MODULE_2__["default"])(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13171
|
-
const [style, setStyle] = (0,_rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_1__["default"])(null);
|
13172
|
-
const currentStatus = getStatus();
|
13173
|
-
const mountedRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
|
13174
|
-
const deadlineRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);
|
13175
|
-
|
13176
|
-
// =========================== Dom Node ===========================
|
13177
|
-
function getDomElement() {
|
13178
|
-
return getElement();
|
13179
|
-
}
|
13180
|
-
|
13181
|
-
// ========================== Motion End ==========================
|
13182
|
-
const activeRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(false);
|
13183
|
-
|
13184
|
-
/**
|
13185
|
-
* Clean up status & style
|
13186
|
-
*/
|
13187
|
-
function updateMotionEndStatus() {
|
13188
|
-
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13189
|
-
setStyle(null, true);
|
13190
|
-
}
|
13191
|
-
const onInternalMotionEnd = (0,_rc_component_util__WEBPACK_IMPORTED_MODULE_0__.useEvent)(event => {
|
13192
|
-
const status = getStatus();
|
13193
|
-
// Do nothing since not in any transition status.
|
13194
|
-
// This may happen when `motionDeadline` trigger.
|
13195
|
-
if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE) {
|
13196
|
-
return;
|
13197
|
-
}
|
13198
|
-
const element = getDomElement();
|
13199
|
-
if (event && !event.deadline && event.target !== element) {
|
13200
|
-
// event exists
|
13201
|
-
// not initiated by deadline
|
13202
|
-
// transitionEnd not fired by inner elements
|
13203
|
-
return;
|
13204
|
-
}
|
13205
|
-
const currentActive = activeRef.current;
|
13206
|
-
let canEnd;
|
13207
|
-
if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR && currentActive) {
|
13208
|
-
canEnd = onAppearEnd?.(element, event);
|
13209
|
-
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER && currentActive) {
|
13210
|
-
canEnd = onEnterEnd?.(element, event);
|
13211
|
-
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE && currentActive) {
|
13212
|
-
canEnd = onLeaveEnd?.(element, event);
|
13213
|
-
}
|
13214
|
-
|
13215
|
-
// Only update status when `canEnd` and not destroyed
|
13216
|
-
if (currentActive && canEnd !== false) {
|
13217
|
-
updateMotionEndStatus();
|
13218
|
-
}
|
13219
|
-
});
|
13220
|
-
const [patchMotionEvents] = (0,_useDomMotionEvents__WEBPACK_IMPORTED_MODULE_5__["default"])(onInternalMotionEnd);
|
13221
|
-
|
13222
|
-
// ============================= Step =============================
|
13223
|
-
const getEventHandlers = targetStatus => {
|
13224
|
-
switch (targetStatus) {
|
13225
|
-
case _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR:
|
13226
|
-
return {
|
13227
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE]: onAppearPrepare,
|
13228
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START]: onAppearStart,
|
13229
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE]: onAppearActive
|
13230
|
-
};
|
13231
|
-
case _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER:
|
13232
|
-
return {
|
13233
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE]: onEnterPrepare,
|
13234
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START]: onEnterStart,
|
13235
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE]: onEnterActive
|
13236
|
-
};
|
13237
|
-
case _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE:
|
13238
|
-
return {
|
13239
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE]: onLeavePrepare,
|
13240
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START]: onLeaveStart,
|
13241
|
-
[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE]: onLeaveActive
|
13242
|
-
};
|
13243
|
-
default:
|
13244
|
-
return {};
|
13245
|
-
}
|
13246
|
-
};
|
13247
|
-
const eventHandlers = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => getEventHandlers(currentStatus), [currentStatus]);
|
13248
|
-
const [startStep, step] = (0,_useStepQueue__WEBPACK_IMPORTED_MODULE_7__["default"])(currentStatus, !supportMotion, newStep => {
|
13249
|
-
// Only prepare step can be skip
|
13250
|
-
if (newStep === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE) {
|
13251
|
-
const onPrepare = eventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE];
|
13252
|
-
if (!onPrepare) {
|
13253
|
-
return _useStepQueue__WEBPACK_IMPORTED_MODULE_7__.SkipStep;
|
13254
|
-
}
|
13255
|
-
return onPrepare(getDomElement());
|
13256
|
-
}
|
13257
|
-
|
13258
|
-
// Rest step is sync update
|
13259
|
-
if (step in eventHandlers) {
|
13260
|
-
setStyle(eventHandlers[step]?.(getDomElement(), null) || null);
|
13261
|
-
}
|
13262
|
-
if (step === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_ACTIVE && currentStatus !== _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE) {
|
13263
|
-
// Patch events when motion needed
|
13264
|
-
patchMotionEvents(getDomElement());
|
13265
|
-
if (motionDeadline > 0) {
|
13266
|
-
clearTimeout(deadlineRef.current);
|
13267
|
-
deadlineRef.current = setTimeout(() => {
|
13268
|
-
onInternalMotionEnd({
|
13269
|
-
deadline: true
|
13270
|
-
});
|
13271
|
-
}, motionDeadline);
|
13272
|
-
}
|
13273
|
-
}
|
13274
|
-
if (step === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARED) {
|
13275
|
-
updateMotionEndStatus();
|
13276
|
-
}
|
13277
|
-
return _useStepQueue__WEBPACK_IMPORTED_MODULE_7__.DoStep;
|
13278
|
-
});
|
13279
|
-
const active = (0,_useStepQueue__WEBPACK_IMPORTED_MODULE_7__.isActive)(step);
|
13280
|
-
activeRef.current = active;
|
13281
|
-
|
13282
|
-
// ============================ Status ============================
|
13283
|
-
const visibleRef = (0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);
|
13284
|
-
|
13285
|
-
// Update with new status
|
13286
|
-
(0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__["default"])(() => {
|
13287
|
-
// When use Suspense, the `visible` will repeat trigger,
|
13288
|
-
// But not real change of the `visible`, we need to skip it.
|
13289
|
-
// https://github.com/ant-design/ant-design/issues/44379
|
13290
|
-
if (mountedRef.current && visibleRef.current === visible) {
|
13291
|
-
return;
|
13292
|
-
}
|
13293
|
-
setAsyncVisible(visible);
|
13294
|
-
const isMounted = mountedRef.current;
|
13295
|
-
mountedRef.current = true;
|
13296
|
-
|
13297
|
-
// if (!supportMotion) {
|
13298
|
-
// return;
|
13299
|
-
// }
|
13300
|
-
|
13301
|
-
let nextStatus;
|
13302
|
-
|
13303
|
-
// Appear
|
13304
|
-
if (!isMounted && visible && motionAppear) {
|
13305
|
-
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR;
|
13306
|
-
}
|
13307
|
-
|
13308
|
-
// Enter
|
13309
|
-
if (isMounted && visible && motionEnter) {
|
13310
|
-
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER;
|
13311
|
-
}
|
13312
|
-
|
13313
|
-
// Leave
|
13314
|
-
if (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) {
|
13315
|
-
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE;
|
13316
|
-
}
|
13317
|
-
const nextEventHandlers = getEventHandlers(nextStatus);
|
13318
|
-
|
13319
|
-
// Update to next status
|
13320
|
-
if (nextStatus && (supportMotion || nextEventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE])) {
|
13321
|
-
setStatus(nextStatus);
|
13322
|
-
startStep();
|
13323
|
-
} else {
|
13324
|
-
// Set back in case no motion but prev status has prepare step
|
13325
|
-
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13326
|
-
}
|
13327
|
-
visibleRef.current = visible;
|
13328
|
-
}, [visible]);
|
13329
|
-
|
13330
|
-
// ============================ Effect ============================
|
13331
|
-
// Reset when motion changed
|
13332
|
-
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => {
|
13333
|
-
if (
|
13334
|
-
// Cancel appear
|
13335
|
-
currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_APPEAR && !motionAppear ||
|
13336
|
-
// Cancel enter
|
13337
|
-
currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_ENTER && !motionEnter ||
|
13338
|
-
// Cancel leave
|
13339
|
-
currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_LEAVE && !motionLeave) {
|
13340
|
-
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE);
|
13341
|
-
}
|
13342
|
-
}, [motionAppear, motionEnter, motionLeave]);
|
13343
|
-
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => () => {
|
13344
|
-
mountedRef.current = false;
|
13345
|
-
clearTimeout(deadlineRef.current);
|
13346
|
-
}, []);
|
13347
|
-
|
13348
|
-
// Trigger `onVisibleChanged`
|
13349
|
-
const firstMountChangeRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false);
|
13350
|
-
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(() => {
|
13351
|
-
// [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged
|
13352
|
-
if (asyncVisible) {
|
13353
|
-
firstMountChangeRef.current = true;
|
13354
|
-
}
|
13355
|
-
if (asyncVisible !== undefined && currentStatus === _interface__WEBPACK_IMPORTED_MODULE_4__.STATUS_NONE) {
|
13356
|
-
// Skip first render is invisible since it's nothing changed
|
13357
|
-
if (firstMountChangeRef.current || asyncVisible) {
|
13358
|
-
onVisibleChanged?.(asyncVisible);
|
13359
|
-
}
|
13360
|
-
firstMountChangeRef.current = true;
|
13361
|
-
}
|
13362
|
-
}, [asyncVisible, currentStatus]);
|
13363
|
-
|
13364
|
-
// ============================ Styles ============================
|
13365
|
-
let mergedStyle = style;
|
13366
|
-
if (eventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__.STEP_PREPARE] && step === _interface__WEBPACK_IMPORTED_MODULE_4__.STEP_START) {
|
13367
|
-
mergedStyle = {
|
13368
|
-
transition: 'none',
|
13369
|
-
...mergedStyle
|
13370
|
-
};
|
13371
|
-
}
|
13372
|
-
return [getStatus, step, mergedStyle, asyncVisible ?? visible];
|
13373
|
-
}
|
13374
|
-
|
13375
|
-
/***/ }),
|
13376
|
-
|
13377
|
-
/***/ "./node_modules/@rc-component/motion/es/hooks/useStepQueue.js":
|
13378
|
-
/*!********************************************************************!*\
|
13379
|
-
!*** ./node_modules/@rc-component/motion/es/hooks/useStepQueue.js ***!
|
13380
|
-
\********************************************************************/
|
13381
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13382
|
-
|
13383
|
-
"use strict";
|
13384
|
-
__webpack_require__.r(__webpack_exports__);
|
13385
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13386
|
-
/* harmony export */ DoStep: () => (/* binding */ DoStep),
|
13387
|
-
/* harmony export */ SkipStep: () => (/* binding */ SkipStep),
|
13388
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
13389
|
-
/* harmony export */ isActive: () => (/* binding */ isActive)
|
13390
|
-
/* harmony export */ });
|
13391
|
-
/* 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");
|
13392
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
13393
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
13394
|
-
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../interface */ "./node_modules/@rc-component/motion/es/interface.js");
|
13395
|
-
/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/@rc-component/motion/es/hooks/useIsomorphicLayoutEffect.js");
|
13396
|
-
/* harmony import */ var _useNextFrame__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useNextFrame */ "./node_modules/@rc-component/motion/es/hooks/useNextFrame.js");
|
13397
|
-
|
13398
|
-
|
13399
|
-
|
13400
|
-
|
13401
|
-
|
13402
|
-
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];
|
13403
|
-
const SIMPLE_STEP_QUEUE = [_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARE, _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARED];
|
13404
|
-
|
13405
|
-
/** Skip current step */
|
13406
|
-
const SkipStep = false;
|
13407
|
-
/** Current step should be update in */
|
13408
|
-
const DoStep = true;
|
13409
|
-
function isActive(step) {
|
13410
|
-
return step === _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVE || step === _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVATED;
|
13411
|
-
}
|
13412
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((status, prepareOnly, callback) => {
|
13413
|
-
const [step, setStep] = (0,_rc_component_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_0__["default"])(_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_NONE);
|
13414
|
-
const [nextFrame, cancelNextFrame] = (0,_useNextFrame__WEBPACK_IMPORTED_MODULE_4__["default"])();
|
13415
|
-
function startQueue() {
|
13416
|
-
setStep(_interface__WEBPACK_IMPORTED_MODULE_2__.STEP_PREPARE, true);
|
13417
|
-
}
|
13418
|
-
const STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
|
13419
|
-
(0,_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(() => {
|
13420
|
-
if (step !== _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_NONE && step !== _interface__WEBPACK_IMPORTED_MODULE_2__.STEP_ACTIVATED) {
|
13421
|
-
const index = STEP_QUEUE.indexOf(step);
|
13422
|
-
const nextStep = STEP_QUEUE[index + 1];
|
13423
|
-
const result = callback(step);
|
13424
|
-
if (result === SkipStep) {
|
13425
|
-
// Skip when no needed
|
13426
|
-
setStep(nextStep, true);
|
13427
|
-
} else if (nextStep) {
|
13428
|
-
// Do as frame for step update
|
13429
|
-
nextFrame(info => {
|
13430
|
-
function doNext() {
|
13431
|
-
// Skip since current queue is ood
|
13432
|
-
if (info.isCanceled()) return;
|
13433
|
-
setStep(nextStep, true);
|
13434
|
-
}
|
13435
|
-
if (result === true) {
|
13436
|
-
doNext();
|
13437
|
-
} else {
|
13438
|
-
// Only promise should be async
|
13439
|
-
Promise.resolve(result).then(doNext);
|
13440
|
-
}
|
13441
|
-
});
|
13442
|
-
}
|
13443
|
-
}
|
13444
|
-
}, [status, step]);
|
13445
|
-
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => () => {
|
13446
|
-
cancelNextFrame();
|
13447
|
-
}, []);
|
13448
|
-
return [startQueue, step];
|
13449
|
-
});
|
13450
|
-
|
13451
|
-
/***/ }),
|
13452
|
-
|
13453
|
-
/***/ "./node_modules/@rc-component/motion/es/index.js":
|
13454
|
-
/*!*******************************************************!*\
|
13455
|
-
!*** ./node_modules/@rc-component/motion/es/index.js ***!
|
13456
|
-
\*******************************************************/
|
13457
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13458
|
-
|
13459
|
-
"use strict";
|
13460
|
-
__webpack_require__.r(__webpack_exports__);
|
13461
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13462
|
-
/* harmony export */ CSSMotionList: () => (/* reexport safe */ _CSSMotionList__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
13463
|
-
/* harmony export */ Provider: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
13464
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
13465
|
-
/* harmony export */ });
|
13466
|
-
/* harmony import */ var _CSSMotion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CSSMotion */ "./node_modules/@rc-component/motion/es/CSSMotion.js");
|
13467
|
-
/* harmony import */ var _CSSMotionList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CSSMotionList */ "./node_modules/@rc-component/motion/es/CSSMotionList.js");
|
13468
|
-
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ "./node_modules/@rc-component/motion/es/context.js");
|
13469
|
-
|
13470
|
-
|
13471
|
-
|
13472
|
-
|
13473
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_CSSMotion__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
13474
|
-
|
13475
|
-
/***/ }),
|
13476
|
-
|
13477
|
-
/***/ "./node_modules/@rc-component/motion/es/interface.js":
|
13478
|
-
/*!***********************************************************!*\
|
13479
|
-
!*** ./node_modules/@rc-component/motion/es/interface.js ***!
|
13480
|
-
\***********************************************************/
|
13481
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13482
|
-
|
13483
|
-
"use strict";
|
13484
|
-
__webpack_require__.r(__webpack_exports__);
|
13485
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13486
|
-
/* harmony export */ STATUS_APPEAR: () => (/* binding */ STATUS_APPEAR),
|
13487
|
-
/* harmony export */ STATUS_ENTER: () => (/* binding */ STATUS_ENTER),
|
13488
|
-
/* harmony export */ STATUS_LEAVE: () => (/* binding */ STATUS_LEAVE),
|
13489
|
-
/* harmony export */ STATUS_NONE: () => (/* binding */ STATUS_NONE),
|
13490
|
-
/* harmony export */ STEP_ACTIVATED: () => (/* binding */ STEP_ACTIVATED),
|
13491
|
-
/* harmony export */ STEP_ACTIVE: () => (/* binding */ STEP_ACTIVE),
|
13492
|
-
/* harmony export */ STEP_NONE: () => (/* binding */ STEP_NONE),
|
13493
|
-
/* harmony export */ STEP_PREPARE: () => (/* binding */ STEP_PREPARE),
|
13494
|
-
/* harmony export */ STEP_PREPARED: () => (/* binding */ STEP_PREPARED),
|
13495
|
-
/* harmony export */ STEP_START: () => (/* binding */ STEP_START)
|
13496
|
-
/* harmony export */ });
|
13497
|
-
const STATUS_NONE = 'none';
|
13498
|
-
const STATUS_APPEAR = 'appear';
|
13499
|
-
const STATUS_ENTER = 'enter';
|
13500
|
-
const STATUS_LEAVE = 'leave';
|
13501
|
-
const STEP_NONE = 'none';
|
13502
|
-
const STEP_PREPARE = 'prepare';
|
13503
|
-
const STEP_START = 'start';
|
13504
|
-
const STEP_ACTIVE = 'active';
|
13505
|
-
const STEP_ACTIVATED = 'end';
|
13506
|
-
/**
|
13507
|
-
* Used for disabled motion case.
|
13508
|
-
* Prepare stage will still work but start & active will be skipped.
|
13509
|
-
*/
|
13510
|
-
const STEP_PREPARED = 'prepared';
|
13511
|
-
|
13512
|
-
/***/ }),
|
13513
|
-
|
13514
|
-
/***/ "./node_modules/@rc-component/motion/es/util/diff.js":
|
13515
|
-
/*!***********************************************************!*\
|
13516
|
-
!*** ./node_modules/@rc-component/motion/es/util/diff.js ***!
|
13517
|
-
\***********************************************************/
|
13518
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13519
|
-
|
13520
|
-
"use strict";
|
13521
|
-
__webpack_require__.r(__webpack_exports__);
|
13522
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13523
|
-
/* harmony export */ STATUS_ADD: () => (/* binding */ STATUS_ADD),
|
13524
|
-
/* harmony export */ STATUS_KEEP: () => (/* binding */ STATUS_KEEP),
|
13525
|
-
/* harmony export */ STATUS_REMOVE: () => (/* binding */ STATUS_REMOVE),
|
13526
|
-
/* harmony export */ STATUS_REMOVED: () => (/* binding */ STATUS_REMOVED),
|
13527
|
-
/* harmony export */ diffKeys: () => (/* binding */ diffKeys),
|
13528
|
-
/* harmony export */ parseKeys: () => (/* binding */ parseKeys),
|
13529
|
-
/* harmony export */ wrapKeyToObject: () => (/* binding */ wrapKeyToObject)
|
13530
|
-
/* harmony export */ });
|
13531
|
-
const STATUS_ADD = 'add';
|
13532
|
-
const STATUS_KEEP = 'keep';
|
13533
|
-
const STATUS_REMOVE = 'remove';
|
13534
|
-
const STATUS_REMOVED = 'removed';
|
13535
|
-
function wrapKeyToObject(key) {
|
13536
|
-
let keyObj;
|
13537
|
-
if (key && typeof key === 'object' && 'key' in key) {
|
13538
|
-
keyObj = key;
|
13539
|
-
} else {
|
13540
|
-
keyObj = {
|
13541
|
-
key: key
|
13542
|
-
};
|
13543
|
-
}
|
13544
|
-
return {
|
13545
|
-
...keyObj,
|
13546
|
-
key: String(keyObj.key)
|
13547
|
-
};
|
13548
|
-
}
|
13549
|
-
function parseKeys(keys = []) {
|
13550
|
-
return keys.map(wrapKeyToObject);
|
13551
|
-
}
|
13552
|
-
function diffKeys(prevKeys = [], currentKeys = []) {
|
13553
|
-
let list = [];
|
13554
|
-
let currentIndex = 0;
|
13555
|
-
const currentLen = currentKeys.length;
|
13556
|
-
const prevKeyObjects = parseKeys(prevKeys);
|
13557
|
-
const currentKeyObjects = parseKeys(currentKeys);
|
13558
|
-
|
13559
|
-
// Check prev keys to insert or keep
|
13560
|
-
prevKeyObjects.forEach(keyObj => {
|
13561
|
-
let hit = false;
|
13562
|
-
for (let i = currentIndex; i < currentLen; i += 1) {
|
13563
|
-
const currentKeyObj = currentKeyObjects[i];
|
13564
|
-
if (currentKeyObj.key === keyObj.key) {
|
13565
|
-
// New added keys should add before current key
|
13566
|
-
if (currentIndex < i) {
|
13567
|
-
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(obj => ({
|
13568
|
-
...obj,
|
13569
|
-
status: STATUS_ADD
|
13570
|
-
})));
|
13571
|
-
currentIndex = i;
|
13572
|
-
}
|
13573
|
-
list.push({
|
13574
|
-
...currentKeyObj,
|
13575
|
-
status: STATUS_KEEP
|
13576
|
-
});
|
13577
|
-
currentIndex += 1;
|
13578
|
-
hit = true;
|
13579
|
-
break;
|
13580
|
-
}
|
13581
|
-
}
|
13582
|
-
|
13583
|
-
// If not hit, it means key is removed
|
13584
|
-
if (!hit) {
|
13585
|
-
list.push({
|
13586
|
-
...keyObj,
|
13587
|
-
status: STATUS_REMOVE
|
13588
|
-
});
|
13589
|
-
}
|
13590
|
-
});
|
13591
|
-
|
13592
|
-
// Add rest to the list
|
13593
|
-
if (currentIndex < currentLen) {
|
13594
|
-
list = list.concat(currentKeyObjects.slice(currentIndex).map(obj => ({
|
13595
|
-
...obj,
|
13596
|
-
status: STATUS_ADD
|
13597
|
-
})));
|
13598
|
-
}
|
13599
|
-
|
13600
|
-
/**
|
13601
|
-
* Merge same key when it remove and add again:
|
13602
|
-
* [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]
|
13603
|
-
*/
|
13604
|
-
const keys = {};
|
13605
|
-
list.forEach(({
|
13606
|
-
key
|
13607
|
-
}) => {
|
13608
|
-
keys[key] = (keys[key] || 0) + 1;
|
13609
|
-
});
|
13610
|
-
const duplicatedKeys = Object.keys(keys).filter(key => keys[key] > 1);
|
13611
|
-
duplicatedKeys.forEach(matchKey => {
|
13612
|
-
// Remove `STATUS_REMOVE` node.
|
13613
|
-
list = list.filter(({
|
13614
|
-
key,
|
13615
|
-
status
|
13616
|
-
}) => key !== matchKey || status !== STATUS_REMOVE);
|
13617
|
-
|
13618
|
-
// Update `STATUS_ADD` to `STATUS_KEEP`
|
13619
|
-
list.forEach(node => {
|
13620
|
-
if (node.key === matchKey) {
|
13621
|
-
// eslint-disable-next-line no-param-reassign
|
13622
|
-
node.status = STATUS_KEEP;
|
13623
|
-
}
|
13624
|
-
});
|
13625
|
-
});
|
13626
|
-
return list;
|
13627
|
-
}
|
13628
|
-
|
13629
|
-
/***/ }),
|
13630
|
-
|
13631
|
-
/***/ "./node_modules/@rc-component/motion/es/util/motion.js":
|
13632
|
-
/*!*************************************************************!*\
|
13633
|
-
!*** ./node_modules/@rc-component/motion/es/util/motion.js ***!
|
13634
|
-
\*************************************************************/
|
13635
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
13636
|
-
|
13637
|
-
"use strict";
|
13638
|
-
__webpack_require__.r(__webpack_exports__);
|
13639
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
13640
|
-
/* harmony export */ animationEndName: () => (/* binding */ animationEndName),
|
13641
|
-
/* harmony export */ getTransitionName: () => (/* binding */ getTransitionName),
|
13642
|
-
/* harmony export */ getVendorPrefixedEventName: () => (/* binding */ getVendorPrefixedEventName),
|
13643
|
-
/* harmony export */ getVendorPrefixes: () => (/* binding */ getVendorPrefixes),
|
13644
|
-
/* harmony export */ supportTransition: () => (/* binding */ supportTransition),
|
13645
|
-
/* harmony export */ transitionEndName: () => (/* binding */ transitionEndName)
|
13646
|
-
/* harmony export */ });
|
13647
|
-
/* 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");
|
13648
|
-
|
13649
|
-
// ================= Transition =================
|
13650
|
-
// Event wrapper. Copy from react source code
|
13651
|
-
function makePrefixMap(styleProp, eventName) {
|
13652
|
-
const prefixes = {};
|
13653
|
-
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
|
13654
|
-
prefixes[`Webkit${styleProp}`] = `webkit${eventName}`;
|
13655
|
-
prefixes[`Moz${styleProp}`] = `moz${eventName}`;
|
13656
|
-
prefixes[`ms${styleProp}`] = `MS${eventName}`;
|
13657
|
-
prefixes[`O${styleProp}`] = `o${eventName.toLowerCase()}`;
|
13658
|
-
return prefixes;
|
13659
|
-
}
|
13660
|
-
function getVendorPrefixes(domSupport, win) {
|
13661
|
-
const prefixes = {
|
13662
|
-
animationend: makePrefixMap('Animation', 'AnimationEnd'),
|
13663
|
-
transitionend: makePrefixMap('Transition', 'TransitionEnd')
|
13664
|
-
};
|
13665
|
-
if (domSupport) {
|
13666
|
-
if (!('AnimationEvent' in win)) {
|
13667
|
-
delete prefixes.animationend.animation;
|
13668
|
-
}
|
13669
|
-
if (!('TransitionEvent' in win)) {
|
13670
|
-
delete prefixes.transitionend.transition;
|
13671
|
-
}
|
13672
|
-
}
|
13673
|
-
return prefixes;
|
13674
|
-
}
|
13675
|
-
const vendorPrefixes = getVendorPrefixes((0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])(), typeof window !== 'undefined' ? window : {});
|
13676
|
-
let style = {};
|
13677
|
-
if ((0,_rc_component_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])()) {
|
13678
|
-
({
|
13679
|
-
style
|
13680
|
-
} = document.createElement('div'));
|
13681
|
-
}
|
13682
|
-
const prefixedEventNames = {};
|
13683
|
-
function getVendorPrefixedEventName(eventName) {
|
13684
|
-
if (prefixedEventNames[eventName]) {
|
13685
|
-
return prefixedEventNames[eventName];
|
13686
|
-
}
|
13687
|
-
const prefixMap = vendorPrefixes[eventName];
|
13688
|
-
if (prefixMap) {
|
13689
|
-
const stylePropList = Object.keys(prefixMap);
|
13690
|
-
const len = stylePropList.length;
|
13691
|
-
for (let i = 0; i < len; i += 1) {
|
13692
|
-
const styleProp = stylePropList[i];
|
13693
|
-
if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) {
|
13694
|
-
prefixedEventNames[eventName] = prefixMap[styleProp];
|
13695
|
-
return prefixedEventNames[eventName];
|
13696
|
-
}
|
13697
|
-
}
|
13698
|
-
}
|
13699
|
-
return '';
|
13700
|
-
}
|
13701
|
-
const internalAnimationEndName = getVendorPrefixedEventName('animationend');
|
13702
|
-
const internalTransitionEndName = getVendorPrefixedEventName('transitionend');
|
13703
|
-
const supportTransition = !!(internalAnimationEndName && internalTransitionEndName);
|
13704
|
-
const animationEndName = internalAnimationEndName || 'animationend';
|
13705
|
-
const transitionEndName = internalTransitionEndName || 'transitionend';
|
13706
|
-
function getTransitionName(transitionName, transitionType) {
|
13707
|
-
if (!transitionName) return null;
|
13708
|
-
if (typeof transitionName === 'object') {
|
13709
|
-
const type = transitionType.replace(/-\w/g, match => match[1].toUpperCase());
|
13710
|
-
return transitionName[type];
|
13711
|
-
}
|
13712
|
-
return `${transitionName}-${transitionType}`;
|
13713
|
-
}
|
13714
|
-
|
13715
|
-
/***/ }),
|
13716
|
-
|
13717
12322
|
/***/ "./node_modules/@rc-component/portal/es/Context.js":
|
13718
12323
|
/*!*********************************************************!*\
|
13719
12324
|
!*** ./node_modules/@rc-component/portal/es/Context.js ***!
|
@@ -15961,58 +14566,6 @@ function getVisibleArea(initArea, scrollerList) {
|
|
15961
14566
|
|
15962
14567
|
/***/ }),
|
15963
14568
|
|
15964
|
-
/***/ "./node_modules/@rc-component/util/es/Children/toArray.js":
|
15965
|
-
/*!****************************************************************!*\
|
15966
|
-
!*** ./node_modules/@rc-component/util/es/Children/toArray.js ***!
|
15967
|
-
\****************************************************************/
|
15968
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
15969
|
-
|
15970
|
-
"use strict";
|
15971
|
-
__webpack_require__.r(__webpack_exports__);
|
15972
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
15973
|
-
/* harmony export */ "default": () => (/* binding */ toArray)
|
15974
|
-
/* harmony export */ });
|
15975
|
-
/* harmony import */ var _React_isFragment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../React/isFragment */ "./node_modules/@rc-component/util/es/React/isFragment.js");
|
15976
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
15977
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
15978
|
-
|
15979
|
-
|
15980
|
-
function toArray(children, option = {}) {
|
15981
|
-
let ret = [];
|
15982
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(children, child => {
|
15983
|
-
if ((child === undefined || child === null) && !option.keepEmpty) {
|
15984
|
-
return;
|
15985
|
-
}
|
15986
|
-
if (Array.isArray(child)) {
|
15987
|
-
ret = ret.concat(toArray(child));
|
15988
|
-
} else if ((0,_React_isFragment__WEBPACK_IMPORTED_MODULE_0__["default"])(child) && child.props) {
|
15989
|
-
ret = ret.concat(toArray(child.props.children, option));
|
15990
|
-
} else {
|
15991
|
-
ret.push(child);
|
15992
|
-
}
|
15993
|
-
});
|
15994
|
-
return ret;
|
15995
|
-
}
|
15996
|
-
|
15997
|
-
/***/ }),
|
15998
|
-
|
15999
|
-
/***/ "./node_modules/@rc-component/util/es/Dom/canUseDom.js":
|
16000
|
-
/*!*************************************************************!*\
|
16001
|
-
!*** ./node_modules/@rc-component/util/es/Dom/canUseDom.js ***!
|
16002
|
-
\*************************************************************/
|
16003
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16004
|
-
|
16005
|
-
"use strict";
|
16006
|
-
__webpack_require__.r(__webpack_exports__);
|
16007
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16008
|
-
/* harmony export */ "default": () => (/* binding */ canUseDom)
|
16009
|
-
/* harmony export */ });
|
16010
|
-
function canUseDom() {
|
16011
|
-
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
16012
|
-
}
|
16013
|
-
|
16014
|
-
/***/ }),
|
16015
|
-
|
16016
14569
|
/***/ "./node_modules/@rc-component/util/es/Dom/contains.js":
|
16017
14570
|
/*!************************************************************!*\
|
16018
14571
|
!*** ./node_modules/@rc-component/util/es/Dom/contains.js ***!
|
@@ -16047,222 +14600,6 @@ function contains(root, n) {
|
|
16047
14600
|
|
16048
14601
|
/***/ }),
|
16049
14602
|
|
16050
|
-
/***/ "./node_modules/@rc-component/util/es/Dom/dynamicCSS.js":
|
16051
|
-
/*!**************************************************************!*\
|
16052
|
-
!*** ./node_modules/@rc-component/util/es/Dom/dynamicCSS.js ***!
|
16053
|
-
\**************************************************************/
|
16054
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16055
|
-
|
16056
|
-
"use strict";
|
16057
|
-
__webpack_require__.r(__webpack_exports__);
|
16058
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16059
|
-
/* harmony export */ clearContainerCache: () => (/* binding */ clearContainerCache),
|
16060
|
-
/* harmony export */ injectCSS: () => (/* binding */ injectCSS),
|
16061
|
-
/* harmony export */ removeCSS: () => (/* binding */ removeCSS),
|
16062
|
-
/* harmony export */ updateCSS: () => (/* binding */ updateCSS)
|
16063
|
-
/* harmony export */ });
|
16064
|
-
/* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
16065
|
-
/* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./contains */ "./node_modules/@rc-component/util/es/Dom/contains.js");
|
16066
|
-
|
16067
|
-
|
16068
|
-
const APPEND_ORDER = 'data-rc-order';
|
16069
|
-
const APPEND_PRIORITY = 'data-rc-priority';
|
16070
|
-
const MARK_KEY = `rc-util-key`;
|
16071
|
-
const containerCache = new Map();
|
16072
|
-
function getMark({
|
16073
|
-
mark
|
16074
|
-
} = {}) {
|
16075
|
-
if (mark) {
|
16076
|
-
return mark.startsWith('data-') ? mark : `data-${mark}`;
|
16077
|
-
}
|
16078
|
-
return MARK_KEY;
|
16079
|
-
}
|
16080
|
-
function getContainer(option) {
|
16081
|
-
if (option.attachTo) {
|
16082
|
-
return option.attachTo;
|
16083
|
-
}
|
16084
|
-
const head = document.querySelector('head');
|
16085
|
-
return head || document.body;
|
16086
|
-
}
|
16087
|
-
function getOrder(prepend) {
|
16088
|
-
if (prepend === 'queue') {
|
16089
|
-
return 'prependQueue';
|
16090
|
-
}
|
16091
|
-
return prepend ? 'prepend' : 'append';
|
16092
|
-
}
|
16093
|
-
|
16094
|
-
/**
|
16095
|
-
* Find style which inject by rc-util
|
16096
|
-
*/
|
16097
|
-
function findStyles(container) {
|
16098
|
-
return Array.from((containerCache.get(container) || container).children).filter(node => node.tagName === 'STYLE');
|
16099
|
-
}
|
16100
|
-
function injectCSS(css, option = {}) {
|
16101
|
-
if (!(0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__["default"])()) {
|
16102
|
-
return null;
|
16103
|
-
}
|
16104
|
-
const {
|
16105
|
-
csp,
|
16106
|
-
prepend,
|
16107
|
-
priority = 0
|
16108
|
-
} = option;
|
16109
|
-
const mergedOrder = getOrder(prepend);
|
16110
|
-
const isPrependQueue = mergedOrder === 'prependQueue';
|
16111
|
-
const styleNode = document.createElement('style');
|
16112
|
-
styleNode.setAttribute(APPEND_ORDER, mergedOrder);
|
16113
|
-
if (isPrependQueue && priority) {
|
16114
|
-
styleNode.setAttribute(APPEND_PRIORITY, `${priority}`);
|
16115
|
-
}
|
16116
|
-
if (csp?.nonce) {
|
16117
|
-
styleNode.nonce = csp?.nonce;
|
16118
|
-
}
|
16119
|
-
styleNode.innerHTML = css;
|
16120
|
-
const container = getContainer(option);
|
16121
|
-
const {
|
16122
|
-
firstChild
|
16123
|
-
} = container;
|
16124
|
-
if (prepend) {
|
16125
|
-
// If is queue `prepend`, it will prepend first style and then append rest style
|
16126
|
-
if (isPrependQueue) {
|
16127
|
-
const existStyle = (option.styles || findStyles(container)).filter(node => {
|
16128
|
-
// Ignore style which not injected by rc-util with prepend
|
16129
|
-
if (!['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER))) {
|
16130
|
-
return false;
|
16131
|
-
}
|
16132
|
-
|
16133
|
-
// Ignore style which priority less then new style
|
16134
|
-
const nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);
|
16135
|
-
return priority >= nodePriority;
|
16136
|
-
});
|
16137
|
-
if (existStyle.length) {
|
16138
|
-
container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
|
16139
|
-
return styleNode;
|
16140
|
-
}
|
16141
|
-
}
|
16142
|
-
|
16143
|
-
// Use `insertBefore` as `prepend`
|
16144
|
-
container.insertBefore(styleNode, firstChild);
|
16145
|
-
} else {
|
16146
|
-
container.appendChild(styleNode);
|
16147
|
-
}
|
16148
|
-
return styleNode;
|
16149
|
-
}
|
16150
|
-
function findExistNode(key, option = {}) {
|
16151
|
-
let {
|
16152
|
-
styles
|
16153
|
-
} = option;
|
16154
|
-
styles ||= findStyles(getContainer(option));
|
16155
|
-
return styles.find(node => node.getAttribute(getMark(option)) === key);
|
16156
|
-
}
|
16157
|
-
function removeCSS(key, option = {}) {
|
16158
|
-
const existNode = findExistNode(key, option);
|
16159
|
-
if (existNode) {
|
16160
|
-
const container = getContainer(option);
|
16161
|
-
container.removeChild(existNode);
|
16162
|
-
}
|
16163
|
-
}
|
16164
|
-
|
16165
|
-
/**
|
16166
|
-
* qiankun will inject `appendChild` to insert into other
|
16167
|
-
*/
|
16168
|
-
function syncRealContainer(container, option) {
|
16169
|
-
const cachedRealContainer = containerCache.get(container);
|
16170
|
-
|
16171
|
-
// Find real container when not cached or cached container removed
|
16172
|
-
if (!cachedRealContainer || !(0,_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(document, cachedRealContainer)) {
|
16173
|
-
const placeholderStyle = injectCSS('', option);
|
16174
|
-
const {
|
16175
|
-
parentNode
|
16176
|
-
} = placeholderStyle;
|
16177
|
-
containerCache.set(container, parentNode);
|
16178
|
-
container.removeChild(placeholderStyle);
|
16179
|
-
}
|
16180
|
-
}
|
16181
|
-
|
16182
|
-
/**
|
16183
|
-
* manually clear container cache to avoid global cache in unit testes
|
16184
|
-
*/
|
16185
|
-
function clearContainerCache() {
|
16186
|
-
containerCache.clear();
|
16187
|
-
}
|
16188
|
-
function updateCSS(css, key, originOption = {}) {
|
16189
|
-
const container = getContainer(originOption);
|
16190
|
-
const styles = findStyles(container);
|
16191
|
-
const option = {
|
16192
|
-
...originOption,
|
16193
|
-
styles
|
16194
|
-
};
|
16195
|
-
|
16196
|
-
// Sync real parent
|
16197
|
-
syncRealContainer(container, option);
|
16198
|
-
const existNode = findExistNode(key, option);
|
16199
|
-
if (existNode) {
|
16200
|
-
if (option.csp?.nonce && existNode.nonce !== option.csp?.nonce) {
|
16201
|
-
existNode.nonce = option.csp?.nonce;
|
16202
|
-
}
|
16203
|
-
if (existNode.innerHTML !== css) {
|
16204
|
-
existNode.innerHTML = css;
|
16205
|
-
}
|
16206
|
-
return existNode;
|
16207
|
-
}
|
16208
|
-
const newNode = injectCSS(css, option);
|
16209
|
-
newNode.setAttribute(getMark(option), key);
|
16210
|
-
return newNode;
|
16211
|
-
}
|
16212
|
-
|
16213
|
-
/***/ }),
|
16214
|
-
|
16215
|
-
/***/ "./node_modules/@rc-component/util/es/Dom/findDOMNode.js":
|
16216
|
-
/*!***************************************************************!*\
|
16217
|
-
!*** ./node_modules/@rc-component/util/es/Dom/findDOMNode.js ***!
|
16218
|
-
\***************************************************************/
|
16219
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16220
|
-
|
16221
|
-
"use strict";
|
16222
|
-
__webpack_require__.r(__webpack_exports__);
|
16223
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16224
|
-
/* harmony export */ "default": () => (/* binding */ findDOMNode),
|
16225
|
-
/* harmony export */ getDOM: () => (/* binding */ getDOM),
|
16226
|
-
/* harmony export */ isDOM: () => (/* binding */ isDOM)
|
16227
|
-
/* harmony export */ });
|
16228
|
-
function isDOM(node) {
|
16229
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Element
|
16230
|
-
// Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
|
16231
|
-
return node instanceof HTMLElement || node instanceof SVGElement;
|
16232
|
-
}
|
16233
|
-
|
16234
|
-
/**
|
16235
|
-
* Retrieves a DOM node via a ref, and does not invoke `findDOMNode`.
|
16236
|
-
*/
|
16237
|
-
function getDOM(node) {
|
16238
|
-
if (node && typeof node === 'object' && isDOM(node.nativeElement)) {
|
16239
|
-
return node.nativeElement;
|
16240
|
-
}
|
16241
|
-
if (isDOM(node)) {
|
16242
|
-
return node;
|
16243
|
-
}
|
16244
|
-
return null;
|
16245
|
-
}
|
16246
|
-
|
16247
|
-
/**
|
16248
|
-
* Return if a node is a DOM node. Else will return by `findDOMNode`
|
16249
|
-
*/
|
16250
|
-
function findDOMNode(node) {
|
16251
|
-
const domNode = getDOM(node);
|
16252
|
-
if (domNode) {
|
16253
|
-
return domNode;
|
16254
|
-
}
|
16255
|
-
if (node && typeof node === 'object' && 'current' in node) {
|
16256
|
-
const refDomNode = getDOM(node.current);
|
16257
|
-
if (refDomNode) {
|
16258
|
-
return refDomNode;
|
16259
|
-
}
|
16260
|
-
}
|
16261
|
-
return null;
|
16262
|
-
}
|
16263
|
-
|
16264
|
-
/***/ }),
|
16265
|
-
|
16266
14603
|
/***/ "./node_modules/@rc-component/util/es/KeyCode.js":
|
16267
14604
|
/*!*******************************************************!*\
|
16268
14605
|
!*** ./node_modules/@rc-component/util/es/KeyCode.js ***!
|
@@ -16848,128 +15185,6 @@ function isFragment(object) {
|
|
16848
15185
|
|
16849
15186
|
/***/ }),
|
16850
15187
|
|
16851
|
-
/***/ "./node_modules/@rc-component/util/es/getScrollBarSize.js":
|
16852
|
-
/*!****************************************************************!*\
|
16853
|
-
!*** ./node_modules/@rc-component/util/es/getScrollBarSize.js ***!
|
16854
|
-
\****************************************************************/
|
16855
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16856
|
-
|
16857
|
-
"use strict";
|
16858
|
-
__webpack_require__.r(__webpack_exports__);
|
16859
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16860
|
-
/* harmony export */ "default": () => (/* binding */ getScrollBarSize),
|
16861
|
-
/* harmony export */ getTargetScrollBarSize: () => (/* binding */ getTargetScrollBarSize)
|
16862
|
-
/* harmony export */ });
|
16863
|
-
/* harmony import */ var _Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dom/dynamicCSS */ "./node_modules/@rc-component/util/es/Dom/dynamicCSS.js");
|
16864
|
-
/* eslint-disable no-param-reassign */
|
16865
|
-
|
16866
|
-
let cached;
|
16867
|
-
function measureScrollbarSize(ele) {
|
16868
|
-
const randomId = `rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`;
|
16869
|
-
const measureEle = document.createElement('div');
|
16870
|
-
measureEle.id = randomId;
|
16871
|
-
|
16872
|
-
// Create Style
|
16873
|
-
const measureStyle = measureEle.style;
|
16874
|
-
measureStyle.position = 'absolute';
|
16875
|
-
measureStyle.left = '0';
|
16876
|
-
measureStyle.top = '0';
|
16877
|
-
measureStyle.width = '100px';
|
16878
|
-
measureStyle.height = '100px';
|
16879
|
-
measureStyle.overflow = 'scroll';
|
16880
|
-
|
16881
|
-
// Clone Style if needed
|
16882
|
-
let fallbackWidth;
|
16883
|
-
let fallbackHeight;
|
16884
|
-
if (ele) {
|
16885
|
-
const targetStyle = getComputedStyle(ele);
|
16886
|
-
measureStyle.scrollbarColor = targetStyle.scrollbarColor;
|
16887
|
-
measureStyle.scrollbarWidth = targetStyle.scrollbarWidth;
|
16888
|
-
|
16889
|
-
// Set Webkit style
|
16890
|
-
const webkitScrollbarStyle = getComputedStyle(ele, '::-webkit-scrollbar');
|
16891
|
-
const width = parseInt(webkitScrollbarStyle.width, 10);
|
16892
|
-
const height = parseInt(webkitScrollbarStyle.height, 10);
|
16893
|
-
|
16894
|
-
// Try wrap to handle CSP case
|
16895
|
-
try {
|
16896
|
-
const widthStyle = width ? `width: ${webkitScrollbarStyle.width};` : '';
|
16897
|
-
const heightStyle = height ? `height: ${webkitScrollbarStyle.height};` : '';
|
16898
|
-
(0,_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_0__.updateCSS)(`
|
16899
|
-
#${randomId}::-webkit-scrollbar {
|
16900
|
-
${widthStyle}
|
16901
|
-
${heightStyle}
|
16902
|
-
}`, randomId);
|
16903
|
-
} catch (e) {
|
16904
|
-
// Can't wrap, just log error
|
16905
|
-
console.error(e);
|
16906
|
-
|
16907
|
-
// Get from style directly
|
16908
|
-
fallbackWidth = width;
|
16909
|
-
fallbackHeight = height;
|
16910
|
-
}
|
16911
|
-
}
|
16912
|
-
document.body.appendChild(measureEle);
|
16913
|
-
|
16914
|
-
// Measure. Get fallback style if provided
|
16915
|
-
const scrollWidth = ele && fallbackWidth && !isNaN(fallbackWidth) ? fallbackWidth : measureEle.offsetWidth - measureEle.clientWidth;
|
16916
|
-
const scrollHeight = ele && fallbackHeight && !isNaN(fallbackHeight) ? fallbackHeight : measureEle.offsetHeight - measureEle.clientHeight;
|
16917
|
-
|
16918
|
-
// Clean up
|
16919
|
-
document.body.removeChild(measureEle);
|
16920
|
-
(0,_Dom_dynamicCSS__WEBPACK_IMPORTED_MODULE_0__.removeCSS)(randomId);
|
16921
|
-
return {
|
16922
|
-
width: scrollWidth,
|
16923
|
-
height: scrollHeight
|
16924
|
-
};
|
16925
|
-
}
|
16926
|
-
function getScrollBarSize(fresh) {
|
16927
|
-
if (typeof document === 'undefined') {
|
16928
|
-
return 0;
|
16929
|
-
}
|
16930
|
-
if (fresh || cached === undefined) {
|
16931
|
-
cached = measureScrollbarSize();
|
16932
|
-
}
|
16933
|
-
return cached.width;
|
16934
|
-
}
|
16935
|
-
function getTargetScrollBarSize(target) {
|
16936
|
-
if (typeof document === 'undefined' || !target || !(target instanceof Element)) {
|
16937
|
-
return {
|
16938
|
-
width: 0,
|
16939
|
-
height: 0
|
16940
|
-
};
|
16941
|
-
}
|
16942
|
-
return measureScrollbarSize(target);
|
16943
|
-
}
|
16944
|
-
|
16945
|
-
/***/ }),
|
16946
|
-
|
16947
|
-
/***/ "./node_modules/@rc-component/util/es/hooks/useEvent.js":
|
16948
|
-
/*!**************************************************************!*\
|
16949
|
-
!*** ./node_modules/@rc-component/util/es/hooks/useEvent.js ***!
|
16950
|
-
\**************************************************************/
|
16951
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
16952
|
-
|
16953
|
-
"use strict";
|
16954
|
-
__webpack_require__.r(__webpack_exports__);
|
16955
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
16956
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
16957
|
-
/* harmony export */ });
|
16958
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
16959
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
16960
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
16961
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
16962
|
-
|
16963
|
-
function useEvent(callback) {
|
16964
|
-
const fnRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
|
16965
|
-
fnRef.current = callback;
|
16966
|
-
const memoFn = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((...args) => fnRef.current?.(...args), []);
|
16967
|
-
return memoFn;
|
16968
|
-
}
|
16969
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useEvent);
|
16970
|
-
|
16971
|
-
/***/ }),
|
16972
|
-
|
16973
15188
|
/***/ "./node_modules/@rc-component/util/es/hooks/useId.js":
|
16974
15189
|
/*!***********************************************************!*\
|
16975
15190
|
!*** ./node_modules/@rc-component/util/es/hooks/useId.js ***!
|
@@ -17039,54 +15254,6 @@ function useCompatId(id) {
|
|
17039
15254
|
|
17040
15255
|
/***/ }),
|
17041
15256
|
|
17042
|
-
/***/ "./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js":
|
17043
|
-
/*!*********************************************************************!*\
|
17044
|
-
!*** ./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js ***!
|
17045
|
-
\*********************************************************************/
|
17046
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17047
|
-
|
17048
|
-
"use strict";
|
17049
|
-
__webpack_require__.r(__webpack_exports__);
|
17050
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17051
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
17052
|
-
/* harmony export */ useLayoutUpdateEffect: () => (/* binding */ useLayoutUpdateEffect)
|
17053
|
-
/* harmony export */ });
|
17054
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
17055
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
17056
|
-
/* harmony import */ var _Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Dom/canUseDom */ "./node_modules/@rc-component/util/es/Dom/canUseDom.js");
|
17057
|
-
|
17058
|
-
|
17059
|
-
|
17060
|
-
/**
|
17061
|
-
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
17062
|
-
*/
|
17063
|
-
const useInternalLayoutEffect = true && (0,_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])() ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
|
17064
|
-
const useLayoutEffect = (callback, deps) => {
|
17065
|
-
const firstMountRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(true);
|
17066
|
-
useInternalLayoutEffect(() => {
|
17067
|
-
return callback(firstMountRef.current);
|
17068
|
-
}, deps);
|
17069
|
-
|
17070
|
-
// We tell react that first mount has passed
|
17071
|
-
useInternalLayoutEffect(() => {
|
17072
|
-
firstMountRef.current = false;
|
17073
|
-
return () => {
|
17074
|
-
firstMountRef.current = true;
|
17075
|
-
};
|
17076
|
-
}, []);
|
17077
|
-
};
|
17078
|
-
const useLayoutUpdateEffect = (callback, deps) => {
|
17079
|
-
useLayoutEffect(firstMount => {
|
17080
|
-
if (!firstMount) {
|
17081
|
-
return callback();
|
17082
|
-
}
|
17083
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
17084
|
-
}, deps);
|
17085
|
-
};
|
17086
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useLayoutEffect);
|
17087
|
-
|
17088
|
-
/***/ }),
|
17089
|
-
|
17090
15257
|
/***/ "./node_modules/@rc-component/util/es/hooks/useMemo.js":
|
17091
15258
|
/*!*************************************************************!*\
|
17092
15259
|
!*** ./node_modules/@rc-component/util/es/hooks/useMemo.js ***!
|
@@ -17112,219 +15279,6 @@ function useMemo(getValue, condition, shouldUpdate) {
|
|
17112
15279
|
|
17113
15280
|
/***/ }),
|
17114
15281
|
|
17115
|
-
/***/ "./node_modules/@rc-component/util/es/hooks/useMergedState.js":
|
17116
|
-
/*!********************************************************************!*\
|
17117
|
-
!*** ./node_modules/@rc-component/util/es/hooks/useMergedState.js ***!
|
17118
|
-
\********************************************************************/
|
17119
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17120
|
-
|
17121
|
-
"use strict";
|
17122
|
-
__webpack_require__.r(__webpack_exports__);
|
17123
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17124
|
-
/* harmony export */ "default": () => (/* binding */ useMergedState)
|
17125
|
-
/* harmony export */ });
|
17126
|
-
/* harmony import */ var _useEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useEvent */ "./node_modules/@rc-component/util/es/hooks/useEvent.js");
|
17127
|
-
/* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useLayoutEffect */ "./node_modules/@rc-component/util/es/hooks/useLayoutEffect.js");
|
17128
|
-
/* harmony import */ var _useState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useState */ "./node_modules/@rc-component/util/es/hooks/useState.js");
|
17129
|
-
|
17130
|
-
|
17131
|
-
|
17132
|
-
/** We only think `undefined` is empty */
|
17133
|
-
function hasValue(value) {
|
17134
|
-
return value !== undefined;
|
17135
|
-
}
|
17136
|
-
|
17137
|
-
/**
|
17138
|
-
* Similar to `useState` but will use props value if provided.
|
17139
|
-
* Note that internal use rc-util `useState` hook.
|
17140
|
-
*/
|
17141
|
-
function useMergedState(defaultStateValue, option) {
|
17142
|
-
const {
|
17143
|
-
defaultValue,
|
17144
|
-
value,
|
17145
|
-
onChange,
|
17146
|
-
postState
|
17147
|
-
} = option || {};
|
17148
|
-
|
17149
|
-
// ======================= Init =======================
|
17150
|
-
const [innerValue, setInnerValue] = (0,_useState__WEBPACK_IMPORTED_MODULE_2__["default"])(() => {
|
17151
|
-
if (hasValue(value)) {
|
17152
|
-
return value;
|
17153
|
-
} else if (hasValue(defaultValue)) {
|
17154
|
-
return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
|
17155
|
-
} else {
|
17156
|
-
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
17157
|
-
}
|
17158
|
-
});
|
17159
|
-
const mergedValue = value !== undefined ? value : innerValue;
|
17160
|
-
const postMergedValue = postState ? postState(mergedValue) : mergedValue;
|
17161
|
-
|
17162
|
-
// ====================== Change ======================
|
17163
|
-
const onChangeFn = (0,_useEvent__WEBPACK_IMPORTED_MODULE_0__["default"])(onChange);
|
17164
|
-
const [prevValue, setPrevValue] = (0,_useState__WEBPACK_IMPORTED_MODULE_2__["default"])([mergedValue]);
|
17165
|
-
(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__.useLayoutUpdateEffect)(() => {
|
17166
|
-
const prev = prevValue[0];
|
17167
|
-
if (innerValue !== prev) {
|
17168
|
-
onChangeFn(innerValue, prev);
|
17169
|
-
}
|
17170
|
-
}, [prevValue]);
|
17171
|
-
|
17172
|
-
// Sync value back to `undefined` when it from control to un-control
|
17173
|
-
(0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__.useLayoutUpdateEffect)(() => {
|
17174
|
-
if (!hasValue(value)) {
|
17175
|
-
setInnerValue(value);
|
17176
|
-
}
|
17177
|
-
}, [value]);
|
17178
|
-
|
17179
|
-
// ====================== Update ======================
|
17180
|
-
const triggerChange = (0,_useEvent__WEBPACK_IMPORTED_MODULE_0__["default"])((updater, ignoreDestroy) => {
|
17181
|
-
setInnerValue(updater, ignoreDestroy);
|
17182
|
-
setPrevValue([mergedValue], ignoreDestroy);
|
17183
|
-
});
|
17184
|
-
return [postMergedValue, triggerChange];
|
17185
|
-
}
|
17186
|
-
|
17187
|
-
/***/ }),
|
17188
|
-
|
17189
|
-
/***/ "./node_modules/@rc-component/util/es/hooks/useState.js":
|
17190
|
-
/*!**************************************************************!*\
|
17191
|
-
!*** ./node_modules/@rc-component/util/es/hooks/useState.js ***!
|
17192
|
-
\**************************************************************/
|
17193
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17194
|
-
|
17195
|
-
"use strict";
|
17196
|
-
__webpack_require__.r(__webpack_exports__);
|
17197
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17198
|
-
/* harmony export */ "default": () => (/* binding */ useSafeState)
|
17199
|
-
/* harmony export */ });
|
17200
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
17201
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
17202
|
-
|
17203
|
-
/**
|
17204
|
-
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
17205
|
-
* We do not make this auto is to avoid real memory leak.
|
17206
|
-
* Developer should confirm it's safe to ignore themselves.
|
17207
|
-
*/
|
17208
|
-
function useSafeState(defaultValue) {
|
17209
|
-
const destroyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);
|
17210
|
-
const [value, setValue] = react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultValue);
|
17211
|
-
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
|
17212
|
-
destroyRef.current = false;
|
17213
|
-
return () => {
|
17214
|
-
destroyRef.current = true;
|
17215
|
-
};
|
17216
|
-
}, []);
|
17217
|
-
function safeSetState(updater, ignoreDestroy) {
|
17218
|
-
if (ignoreDestroy && destroyRef.current) {
|
17219
|
-
return;
|
17220
|
-
}
|
17221
|
-
setValue(updater);
|
17222
|
-
}
|
17223
|
-
return [value, safeSetState];
|
17224
|
-
}
|
17225
|
-
|
17226
|
-
/***/ }),
|
17227
|
-
|
17228
|
-
/***/ "./node_modules/@rc-component/util/es/hooks/useSyncState.js":
|
17229
|
-
/*!******************************************************************!*\
|
17230
|
-
!*** ./node_modules/@rc-component/util/es/hooks/useSyncState.js ***!
|
17231
|
-
\******************************************************************/
|
17232
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17233
|
-
|
17234
|
-
"use strict";
|
17235
|
-
__webpack_require__.r(__webpack_exports__);
|
17236
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17237
|
-
/* harmony export */ "default": () => (/* binding */ useSyncState)
|
17238
|
-
/* harmony export */ });
|
17239
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
17240
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
17241
|
-
/* harmony import */ var _useEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useEvent */ "./node_modules/@rc-component/util/es/hooks/useEvent.js");
|
17242
|
-
|
17243
|
-
|
17244
|
-
/**
|
17245
|
-
* Same as React.useState but will always get latest state.
|
17246
|
-
* This is useful when React merge multiple state updates into one.
|
17247
|
-
* e.g. onTransitionEnd trigger multiple event at once will be merged state update in React.
|
17248
|
-
*/
|
17249
|
-
function useSyncState(defaultValue) {
|
17250
|
-
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
17251
|
-
const currentValueRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(defaultValue);
|
17252
|
-
const getValue = (0,_useEvent__WEBPACK_IMPORTED_MODULE_1__["default"])(() => {
|
17253
|
-
return currentValueRef.current;
|
17254
|
-
});
|
17255
|
-
const setValue = (0,_useEvent__WEBPACK_IMPORTED_MODULE_1__["default"])(updater => {
|
17256
|
-
currentValueRef.current = typeof updater === 'function' ? updater(currentValueRef.current) : updater;
|
17257
|
-
forceUpdate();
|
17258
|
-
});
|
17259
|
-
return [getValue, setValue];
|
17260
|
-
}
|
17261
|
-
|
17262
|
-
/***/ }),
|
17263
|
-
|
17264
|
-
/***/ "./node_modules/@rc-component/util/es/index.js":
|
17265
|
-
/*!*****************************************************!*\
|
17266
|
-
!*** ./node_modules/@rc-component/util/es/index.js ***!
|
17267
|
-
\*****************************************************/
|
17268
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17269
|
-
|
17270
|
-
"use strict";
|
17271
|
-
__webpack_require__.r(__webpack_exports__);
|
17272
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17273
|
-
/* harmony export */ get: () => (/* reexport safe */ _utils_get__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
17274
|
-
/* harmony export */ merge: () => (/* reexport safe */ _utils_set__WEBPACK_IMPORTED_MODULE_4__.merge),
|
17275
|
-
/* harmony export */ noteOnce: () => (/* reexport safe */ _warning__WEBPACK_IMPORTED_MODULE_5__.noteOnce),
|
17276
|
-
/* harmony export */ omit: () => (/* reexport safe */ _omit__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
17277
|
-
/* harmony export */ set: () => (/* reexport safe */ _utils_set__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
17278
|
-
/* harmony export */ supportNodeRef: () => (/* reexport safe */ _ref__WEBPACK_IMPORTED_MODULE_2__.supportNodeRef),
|
17279
|
-
/* harmony export */ supportRef: () => (/* reexport safe */ _ref__WEBPACK_IMPORTED_MODULE_2__.supportRef),
|
17280
|
-
/* harmony export */ toArray: () => (/* reexport safe */ _Children_toArray__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
17281
|
-
/* harmony export */ useComposeRef: () => (/* reexport safe */ _ref__WEBPACK_IMPORTED_MODULE_2__.useComposeRef),
|
17282
|
-
/* harmony export */ useEvent: () => (/* reexport safe */ _hooks_useEvent__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
17283
|
-
/* harmony export */ useMergedState: () => (/* reexport safe */ _hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
17284
|
-
/* harmony export */ warning: () => (/* reexport safe */ _warning__WEBPACK_IMPORTED_MODULE_5__["default"])
|
17285
|
-
/* harmony export */ });
|
17286
|
-
/* harmony import */ var _hooks_useEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hooks/useEvent */ "./node_modules/@rc-component/util/es/hooks/useEvent.js");
|
17287
|
-
/* harmony import */ var _hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hooks/useMergedState */ "./node_modules/@rc-component/util/es/hooks/useMergedState.js");
|
17288
|
-
/* harmony import */ var _ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ref */ "./node_modules/@rc-component/util/es/ref.js");
|
17289
|
-
/* harmony import */ var _utils_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/get */ "./node_modules/@rc-component/util/es/utils/get.js");
|
17290
|
-
/* harmony import */ var _utils_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/set */ "./node_modules/@rc-component/util/es/utils/set.js");
|
17291
|
-
/* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./warning */ "./node_modules/@rc-component/util/es/warning.js");
|
17292
|
-
/* harmony import */ var _omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./omit */ "./node_modules/@rc-component/util/es/omit.js");
|
17293
|
-
/* harmony import */ var _Children_toArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Children/toArray */ "./node_modules/@rc-component/util/es/Children/toArray.js");
|
17294
|
-
|
17295
|
-
|
17296
|
-
|
17297
|
-
|
17298
|
-
|
17299
|
-
|
17300
|
-
|
17301
|
-
|
17302
|
-
|
17303
|
-
/***/ }),
|
17304
|
-
|
17305
|
-
/***/ "./node_modules/@rc-component/util/es/omit.js":
|
17306
|
-
/*!****************************************************!*\
|
17307
|
-
!*** ./node_modules/@rc-component/util/es/omit.js ***!
|
17308
|
-
\****************************************************/
|
17309
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17310
|
-
|
17311
|
-
"use strict";
|
17312
|
-
__webpack_require__.r(__webpack_exports__);
|
17313
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17314
|
-
/* harmony export */ "default": () => (/* binding */ omit)
|
17315
|
-
/* harmony export */ });
|
17316
|
-
function omit(obj, fields) {
|
17317
|
-
const clone = Object.assign({}, obj);
|
17318
|
-
if (Array.isArray(fields)) {
|
17319
|
-
fields.forEach(key => {
|
17320
|
-
delete clone[key];
|
17321
|
-
});
|
17322
|
-
}
|
17323
|
-
return clone;
|
17324
|
-
}
|
17325
|
-
|
17326
|
-
/***/ }),
|
17327
|
-
|
17328
15282
|
/***/ "./node_modules/@rc-component/util/es/pickAttrs.js":
|
17329
15283
|
/*!*********************************************************!*\
|
17330
15284
|
!*** ./node_modules/@rc-component/util/es/pickAttrs.js ***!
|
@@ -17402,63 +15356,6 @@ function pickAttrs(props, ariaOnly = false) {
|
|
17402
15356
|
|
17403
15357
|
/***/ }),
|
17404
15358
|
|
17405
|
-
/***/ "./node_modules/@rc-component/util/es/raf.js":
|
17406
|
-
/*!***************************************************!*\
|
17407
|
-
!*** ./node_modules/@rc-component/util/es/raf.js ***!
|
17408
|
-
\***************************************************/
|
17409
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17410
|
-
|
17411
|
-
"use strict";
|
17412
|
-
__webpack_require__.r(__webpack_exports__);
|
17413
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17414
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
17415
|
-
/* harmony export */ });
|
17416
|
-
let raf = callback => +setTimeout(callback, 16);
|
17417
|
-
let caf = num => clearTimeout(num);
|
17418
|
-
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
17419
|
-
raf = callback => window.requestAnimationFrame(callback);
|
17420
|
-
caf = handle => window.cancelAnimationFrame(handle);
|
17421
|
-
}
|
17422
|
-
let rafUUID = 0;
|
17423
|
-
const rafIds = new Map();
|
17424
|
-
function cleanup(id) {
|
17425
|
-
rafIds.delete(id);
|
17426
|
-
}
|
17427
|
-
const wrapperRaf = (callback, times = 1) => {
|
17428
|
-
rafUUID += 1;
|
17429
|
-
const id = rafUUID;
|
17430
|
-
function callRef(leftTimes) {
|
17431
|
-
if (leftTimes === 0) {
|
17432
|
-
// Clean up
|
17433
|
-
cleanup(id);
|
17434
|
-
|
17435
|
-
// Trigger
|
17436
|
-
callback();
|
17437
|
-
} else {
|
17438
|
-
// Next raf
|
17439
|
-
const realId = raf(() => {
|
17440
|
-
callRef(leftTimes - 1);
|
17441
|
-
});
|
17442
|
-
|
17443
|
-
// Bind real raf id
|
17444
|
-
rafIds.set(id, realId);
|
17445
|
-
}
|
17446
|
-
}
|
17447
|
-
callRef(times);
|
17448
|
-
return id;
|
17449
|
-
};
|
17450
|
-
wrapperRaf.cancel = id => {
|
17451
|
-
const realId = rafIds.get(id);
|
17452
|
-
cleanup(id);
|
17453
|
-
return caf(realId);
|
17454
|
-
};
|
17455
|
-
if (true) {
|
17456
|
-
wrapperRaf.ids = () => rafIds;
|
17457
|
-
}
|
17458
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (wrapperRaf);
|
17459
|
-
|
17460
|
-
/***/ }),
|
17461
|
-
|
17462
15359
|
/***/ "./node_modules/@rc-component/util/es/ref.js":
|
17463
15360
|
/*!***************************************************!*\
|
17464
15361
|
!*** ./node_modules/@rc-component/util/es/ref.js ***!
|
@@ -17484,7 +15381,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
17484
15381
|
|
17485
15382
|
|
17486
15383
|
|
17487
|
-
const ReactMajorVersion = Number(react__WEBPACK_IMPORTED_MODULE_0__.version.split('.')[0]);
|
17488
15384
|
const fillRef = (ref, node) => {
|
17489
15385
|
if (typeof ref === 'function') {
|
17490
15386
|
ref(node);
|
@@ -17518,7 +15414,7 @@ const supportRef = nodeOrComponent => {
|
|
17518
15414
|
}
|
17519
15415
|
|
17520
15416
|
// React 19 no need `forwardRef` anymore. So just pass if is a React element.
|
17521
|
-
if (isReactElement(nodeOrComponent) &&
|
15417
|
+
if (isReactElement(nodeOrComponent) && nodeOrComponent.props.propertyIsEnumerable('ref')) {
|
17522
15418
|
return true;
|
17523
15419
|
}
|
17524
15420
|
const type = (0,react_is__WEBPACK_IMPORTED_MODULE_1__.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
@@ -17559,120 +15455,6 @@ const getNodeRef = node => {
|
|
17559
15455
|
|
17560
15456
|
/***/ }),
|
17561
15457
|
|
17562
|
-
/***/ "./node_modules/@rc-component/util/es/utils/get.js":
|
17563
|
-
/*!*********************************************************!*\
|
17564
|
-
!*** ./node_modules/@rc-component/util/es/utils/get.js ***!
|
17565
|
-
\*********************************************************/
|
17566
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17567
|
-
|
17568
|
-
"use strict";
|
17569
|
-
__webpack_require__.r(__webpack_exports__);
|
17570
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17571
|
-
/* harmony export */ "default": () => (/* binding */ get)
|
17572
|
-
/* harmony export */ });
|
17573
|
-
function get(entity, path) {
|
17574
|
-
let current = entity;
|
17575
|
-
for (let i = 0; i < path.length; i += 1) {
|
17576
|
-
if (current === null || current === undefined) {
|
17577
|
-
return undefined;
|
17578
|
-
}
|
17579
|
-
current = current[path[i]];
|
17580
|
-
}
|
17581
|
-
return current;
|
17582
|
-
}
|
17583
|
-
|
17584
|
-
/***/ }),
|
17585
|
-
|
17586
|
-
/***/ "./node_modules/@rc-component/util/es/utils/set.js":
|
17587
|
-
/*!*********************************************************!*\
|
17588
|
-
!*** ./node_modules/@rc-component/util/es/utils/set.js ***!
|
17589
|
-
\*********************************************************/
|
17590
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17591
|
-
|
17592
|
-
"use strict";
|
17593
|
-
__webpack_require__.r(__webpack_exports__);
|
17594
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
17595
|
-
/* harmony export */ "default": () => (/* binding */ set),
|
17596
|
-
/* harmony export */ merge: () => (/* binding */ merge)
|
17597
|
-
/* harmony export */ });
|
17598
|
-
/* harmony import */ var _get__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get */ "./node_modules/@rc-component/util/es/utils/get.js");
|
17599
|
-
|
17600
|
-
function internalSet(entity, paths, value, removeIfUndefined) {
|
17601
|
-
if (!paths.length) {
|
17602
|
-
return value;
|
17603
|
-
}
|
17604
|
-
const [path, ...restPath] = paths;
|
17605
|
-
let clone;
|
17606
|
-
if (!entity && typeof path === 'number') {
|
17607
|
-
clone = [];
|
17608
|
-
} else if (Array.isArray(entity)) {
|
17609
|
-
clone = [...entity];
|
17610
|
-
} else {
|
17611
|
-
clone = {
|
17612
|
-
...entity
|
17613
|
-
};
|
17614
|
-
}
|
17615
|
-
|
17616
|
-
// Delete prop if `removeIfUndefined` and value is undefined
|
17617
|
-
if (removeIfUndefined && value === undefined && restPath.length === 1) {
|
17618
|
-
delete clone[path][restPath[0]];
|
17619
|
-
} else {
|
17620
|
-
clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined);
|
17621
|
-
}
|
17622
|
-
return clone;
|
17623
|
-
}
|
17624
|
-
function set(entity, paths, value, removeIfUndefined = false) {
|
17625
|
-
// Do nothing if `removeIfUndefined` and parent object not exist
|
17626
|
-
if (paths.length && removeIfUndefined && value === undefined && !(0,_get__WEBPACK_IMPORTED_MODULE_0__["default"])(entity, paths.slice(0, -1))) {
|
17627
|
-
return entity;
|
17628
|
-
}
|
17629
|
-
return internalSet(entity, paths, value, removeIfUndefined);
|
17630
|
-
}
|
17631
|
-
function isObject(obj) {
|
17632
|
-
return typeof obj === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
17633
|
-
}
|
17634
|
-
function createEmpty(source) {
|
17635
|
-
return Array.isArray(source) ? [] : {};
|
17636
|
-
}
|
17637
|
-
const keys = typeof Reflect === 'undefined' ? Object.keys : Reflect.ownKeys;
|
17638
|
-
|
17639
|
-
/**
|
17640
|
-
* Merge objects which will create
|
17641
|
-
*/
|
17642
|
-
function merge(...sources) {
|
17643
|
-
let clone = createEmpty(sources[0]);
|
17644
|
-
sources.forEach(src => {
|
17645
|
-
function internalMerge(path, parentLoopSet) {
|
17646
|
-
const loopSet = new Set(parentLoopSet);
|
17647
|
-
const value = (0,_get__WEBPACK_IMPORTED_MODULE_0__["default"])(src, path);
|
17648
|
-
const isArr = Array.isArray(value);
|
17649
|
-
if (isArr || isObject(value)) {
|
17650
|
-
// Only add not loop obj
|
17651
|
-
if (!loopSet.has(value)) {
|
17652
|
-
loopSet.add(value);
|
17653
|
-
const originValue = (0,_get__WEBPACK_IMPORTED_MODULE_0__["default"])(clone, path);
|
17654
|
-
if (isArr) {
|
17655
|
-
// Array will always be override
|
17656
|
-
clone = set(clone, path, []);
|
17657
|
-
} else if (!originValue || typeof originValue !== 'object') {
|
17658
|
-
// Init container if not exist
|
17659
|
-
clone = set(clone, path, createEmpty(value));
|
17660
|
-
}
|
17661
|
-
keys(value).forEach(key => {
|
17662
|
-
internalMerge([...path, key], loopSet);
|
17663
|
-
});
|
17664
|
-
}
|
17665
|
-
} else {
|
17666
|
-
clone = set(clone, path, value);
|
17667
|
-
}
|
17668
|
-
}
|
17669
|
-
internalMerge([]);
|
17670
|
-
});
|
17671
|
-
return clone;
|
17672
|
-
}
|
17673
|
-
|
17674
|
-
/***/ }),
|
17675
|
-
|
17676
15458
|
/***/ "./node_modules/@rc-component/util/es/warning.js":
|
17677
15459
|
/*!*******************************************************!*\
|
17678
15460
|
!*** ./node_modules/@rc-component/util/es/warning.js ***!
|
@@ -102993,7 +100775,7 @@ var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMP
|
|
102993
100775
|
"id": "crawler2_uikit_icon",
|
102994
100776
|
"use": "crawler2_uikit_icon-usage",
|
102995
100777
|
"viewBox": "0 0 32 32",
|
102996
|
-
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 32 32\" id=\"crawler2_uikit_icon\"><g clip-path=\"url(#crawler2_uikit_icon_a)\"><path fill=\"#D4D0FF\" d=\"M14.583 12a.915.915 0 0 1 .875 1.185.92.92 0 0 1-.416.517v2.86a.46.46 0 0 1-.204.38l-1.984 1.316a4.7 4.7 0 0 1 .496 1.007q.042.118.079.24l2.529-.84v-1.313a.92.92 0 0 1-.458-.79.914.914 0 0 1 .917-.913.914.914 0 0 1 .875 1.185.92.92 0 0 1-.417.518v1.642c0 .197-.126.37-.314.433l-2.94.975a5 5 0 0 1 .043.543l1.169.388H7.467a.794.794 0 0 1-.8-.788V19.22l.043-.114a5 5 0 0 1 .48-.915l-.523-.416v-1.169l1.112.886a4 4 0 0 1 .394-.326q-.006-.075-.006-.15v-.011a1.8 1.8 0 0 1 .175-.769A1.83 1.83 0 0 1 10 15.193a1.833 1.833 0 0 1 1.827 1.678 2 2 0 0 1 0 .296 3.5 3.5 0 0 1 .447.378l1.851-1.228v-2.615a.92.92 0 0 1-.458-.79c0-.504.41-.912.916-.912m15.283-8c.442 0 .801.353.801.788v15.757a.795.795 0 0 1-.8.788h-11.97a1.8 1.8 0 0 0-.843-.666 1.79 1.79 0 0 0 1.154-1.673V17.92c.287-.376.459-.847.459-1.359a2.25 2.25 0 0 0-2.25-2.246l-.042.001v-.046c.287-.375.458-.846.458-1.358a2.25 2.25 0 0 0-2.25-2.245c-1.236 0-2.25 1-2.25 2.245 0 .512.172.982.459 1.358v1.255a3.17 3.17 0 0 0-5.125-.642v-.612a2.243 2.243 0 0 0-1-3.458V4.788c0-.435.358-.788.8-.788zM16.375 16.107a.46.46 0 0 0-.417.454.457.457 0 0 0 .69.395.456.456 0 0 0-.273-.849m-9.708-3.652a.9.9 0 0 1 0 .915zm7.916.001a.46.46 0 0 0-.458.456.456.456 0 0 0 .688.395.456.456 0 0 0-.23-.85\" /><path fill=\"#9D97F4\" d=\"M9.334 8A1.333 1.333 0 1 1 12 8a1.333 1.333 0 0 1-2.666
|
100778
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 32 32\" id=\"crawler2_uikit_icon\"><g clip-path=\"url(#crawler2_uikit_icon_a)\"><path fill=\"#D4D0FF\" d=\"M14.583 12a.915.915 0 0 1 .875 1.185.92.92 0 0 1-.416.517v2.86a.46.46 0 0 1-.204.38l-1.984 1.316a4.7 4.7 0 0 1 .496 1.007q.042.118.079.24l2.529-.84v-1.313a.92.92 0 0 1-.458-.79.914.914 0 0 1 .917-.913.914.914 0 0 1 .875 1.185.92.92 0 0 1-.417.518v1.642c0 .197-.126.37-.314.433l-2.94.975a5 5 0 0 1 .043.543l1.169.388H7.467a.794.794 0 0 1-.8-.788V19.22l.043-.114a5 5 0 0 1 .48-.915l-.523-.416v-1.169l1.112.886a4 4 0 0 1 .394-.326q-.006-.075-.006-.15v-.011a1.8 1.8 0 0 1 .175-.769A1.83 1.83 0 0 1 10 15.193a1.833 1.833 0 0 1 1.827 1.678 2 2 0 0 1 0 .296 3.5 3.5 0 0 1 .447.378l1.851-1.228v-2.615a.92.92 0 0 1-.458-.79c0-.504.41-.912.916-.912m15.283-8c.442 0 .801.353.801.788v15.757a.795.795 0 0 1-.8.788h-11.97a1.8 1.8 0 0 0-.843-.666 1.79 1.79 0 0 0 1.154-1.673V17.92c.287-.376.459-.847.459-1.359a2.25 2.25 0 0 0-2.25-2.246l-.042.001v-.046c.287-.375.458-.846.458-1.358a2.25 2.25 0 0 0-2.25-2.245c-1.236 0-2.25 1-2.25 2.245 0 .512.172.982.459 1.358v1.255a3.17 3.17 0 0 0-5.125-.642v-.612a2.243 2.243 0 0 0-1-3.458V4.788c0-.435.358-.788.8-.788zM16.375 16.107a.46.46 0 0 0-.417.454.457.457 0 0 0 .69.395.456.456 0 0 0-.273-.849m-9.708-3.652a.9.9 0 0 1 0 .915zm7.916.001a.46.46 0 0 0-.458.456.456.456 0 0 0 .688.395.456.456 0 0 0-.23-.85\" /><path fill=\"#9D97F4\" d=\"M9.334 8A1.333 1.333 0 1 1 12 8a1.333 1.333 0 0 1-2.666 0m4 0A1.333 1.333 0 1 1 16 8a1.333 1.333 0 0 1-2.666 0m3.999 0A1.333 1.333 0 1 1 20 8a1.333 1.333 0 0 1-2.667 0\" /><path fill=\"#9D97F4\" fill-rule=\"evenodd\" d=\"M5.875 13.368a.457.457 0 1 0-.458-.456c0 .252.205.456.458.456m.458.335A.911.911 0 0 0 5.875 12a.911.911 0 0 0-.458 1.703v2.858c0 .139.063.27.172.357l1.6 1.274c-.26.388-.471.83-.618 1.312l-2.53-.839v-1.313a.911.911 0 0 0-.458-1.703.911.911 0 0 0-.458 1.703v1.642c0 .197.126.37.313.433l2.94.975a6 6 0 0 0-.042.543l-2.898.961a.46.46 0 0 0-.313.433v1.643a.911.911 0 0 0 .458 1.702.911.911 0 0 0 .458-1.703v-1.313l2.344-.777c.07.508.206.989.4 1.425l-1.623 1.076a.46.46 0 0 0-.204.38v2.859a.911.911 0 0 0 .458 1.702.911.911 0 0 0 .458-1.703v-2.614l1.358-.9c.673.96 1.663 1.568 2.768 1.568s2.095-.607 2.767-1.569l1.358.901v2.615a.911.911 0 0 0 .458 1.702.911.911 0 0 0 .458-1.703v-2.858a.46.46 0 0 0-.204-.38l-1.621-1.076c.192-.436.33-.917.399-1.425l2.343.777v1.314a.911.911 0 0 0 .458 1.702.911.911 0 0 0 .458-1.703V22.34a.46.46 0 0 0-.313-.433l-2.897-.96a6 6 0 0 0-.043-.544l2.94-.975a.46.46 0 0 0 .314-.433v-1.642a.911.911 0 0 0-.459-1.703.911.911 0 0 0-.458 1.703v1.313l-2.529.84a5 5 0 0 0-.576-1.247l1.984-1.317a.46.46 0 0 0 .204-.38v-2.858A.911.911 0 0 0 14.583 12a.911.911 0 0 0-.458 1.703v2.614l-1.85 1.228a4 4 0 0 0-.448-.378q.006-.074.006-.15c0-1.007-.82-1.824-1.833-1.824a1.83 1.83 0 0 0-1.827 1.974 4 4 0 0 0-.394.326l-1.446-1.15zm9.625 11.069a.457.457 0 1 1 .919.002.457.457 0 0 1-.919-.002m.917-8.21a.457.457 0 0 1-.459.455.457.457 0 1 1 .459-.456m-2.75 11.86a.457.457 0 1 1 .458.456.457.457 0 0 1-.458-.457m.916-15.51a.457.457 0 0 1-.458.456.457.457 0 1 1 .458-.456M3.125 24.772a.457.457 0 1 1 .919.002.457.457 0 0 1-.92-.002m.917-8.21a.457.457 0 0 1-.459.455.457.457 0 1 1 .458-.456m.916 11.86a.457.457 0 1 1 .458.456.457.457 0 0 1-.458-.457\" clip-rule=\"evenodd\" /></g><defs><clipPath id=\"crawler2_uikit_icon_a\"><path fill=\"#fff\" d=\"M0 0h32v32H0z\" /></clipPath></defs></symbol>"
|
102997
100779
|
});
|
102998
100780
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
102999
100781
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
@@ -105996,6 +103778,34 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
105996
103778
|
|
105997
103779
|
/***/ }),
|
105998
103780
|
|
103781
|
+
/***/ "./assets/icons/mcp.svg":
|
103782
|
+
/*!******************************!*\
|
103783
|
+
!*** ./assets/icons/mcp.svg ***!
|
103784
|
+
\******************************/
|
103785
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
103786
|
+
|
103787
|
+
"use strict";
|
103788
|
+
__webpack_require__.r(__webpack_exports__);
|
103789
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
103790
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
103791
|
+
/* harmony export */ });
|
103792
|
+
/* 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");
|
103793
|
+
/* 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__);
|
103794
|
+
/* 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");
|
103795
|
+
/* 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__);
|
103796
|
+
|
103797
|
+
|
103798
|
+
var symbol = new (_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default())({
|
103799
|
+
"id": "mcp_uikit_icon",
|
103800
|
+
"use": "mcp_uikit_icon-usage",
|
103801
|
+
"viewBox": "0 0 24 24",
|
103802
|
+
"content": "<symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" id=\"mcp_uikit_icon\"><path fill=\"currentColor\" d=\"M10.91 3.167A3.692 3.692 0 1 1 16.13 8.39l-6.31 6.31a.738.738 0 1 1-1.044-1.045l6.31-6.31a2.215 2.215 0 1 0-3.133-3.133l-8.355 8.355a.738.738 0 1 1-1.044-1.044z\" /><path fill=\"currentColor\" d=\"M15.155 7.277a3.69 3.69 0 0 1 5.085 0l.069.066.043.044.066.068a3.69 3.69 0 0 1-.066 5.153l-7.556 7.557a.246.246 0 0 0 0 .348l1.551 1.551a.739.739 0 0 1-1.044 1.044l-1.552-1.551a1.723 1.723 0 0 1 0-2.437l7.557-7.556a2.215 2.215 0 0 0 0-3.133l-.044-.043-.04-.04a2.216 2.216 0 0 0-3.093.04L9.908 14.61a.738.738 0 1 1-1.044-1.044l6.223-6.223z\" /><path fill=\"currentColor\" d=\"M12.998 5.255A.739.739 0 0 1 14.043 6.3l-6.18 6.179a2.216 2.216 0 0 0 3.133 3.133l6.18-6.18a.739.739 0 0 1 1.044 1.045l-6.18 6.18a3.693 3.693 0 0 1-5.152.066l-.069-.067a3.69 3.69 0 0 1 0-5.222z\" /></symbol>"
|
103803
|
+
});
|
103804
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default().add(symbol);
|
103805
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (symbol);
|
103806
|
+
|
103807
|
+
/***/ }),
|
103808
|
+
|
105999
103809
|
/***/ "./assets/icons/megaphone.svg":
|
106000
103810
|
/*!************************************!*\
|
106001
103811
|
!*** ./assets/icons/megaphone.svg ***!
|