@billgangcom/theme-lib 1.15.0 → 1.15.1
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/builder.cjs.js +8 -8
- package/dist/builder.es.js +887 -886
- package/dist/{index-O85p6vDc.cjs → index-Cr8kurIY.cjs} +15 -15
- package/dist/{index-QsuPYj6C.js → index-D4jHAwqq.js} +488 -506
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +2 -2
- package/package.json +1 -1
package/dist/builder.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap";._icon_bsuj2_1 path{fill:var(--icon-fill)}._hoverable_bsuj2_5{cursor:pointer}._rotated_bsuj2_9{transform:rotate(180deg)}._button_3jsln_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_3jsln_1:disabled{opacity:.7;cursor:auto}._primary_3jsln_13{color:#fff;background-color:#ff3f19}._secondary_3jsln_18{color:#757575;background-color:#f8f8f8}._content_3jsln_23{display:flex;align-items:center;gap:4px}._wrapper_wp7u5_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_wp7u5_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_wp7u5_17{width:100%;background-color:var(--background-color);border-radius:12px;padding:7px 11px;font-size:16px;line-height:24px;border:1px solid var(--background-color)}._input_wp7u5_17::placeholder{color:#c2c2c2}._input_wp7u5_17:disabled{background-color:var(--background-color);opacity:.7}._required_wp7u5_36{border:1px solid #ff3f19}._paddingless_wp7u5_40{padding:0}._content_wp7u5_44{display:flex;align-items:center;gap:8px}._borderless_wp7u5_50{border-radius:0;border:none}._wrapper_1v1ye_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1v1ye_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_1v1ye_17{width:100%;background-color:var(--background-color);border-radius:12px;padding:10px 12px;font-size:14px;line-height:20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}._icon_1v1ye_30{transition:.2s}._rotate_1v1ye_34{transform:rotate(180deg)}._content_1v1ye_38{position:relative}._options_1v1ye_42{position:absolute;top:45px;width:100%;background-color:var(--background-color);border-radius:12px;font-size:14px;line-height:20px;display:flex;flex-direction:column;max-height:200px;z-index:10;overflow-y:scroll;cursor:pointer}._option_1v1ye_42{padding:10px 12px;border-radius:12px}._option_1v1ye_42:hover{background-color:#e6e6e6}._addon_1v1ye_66{display:flex;align-items:center;gap:6px}._wrapper_3w2ni_1{display:flex;width:fit-content;gap:8px;align-items:center;border-radius:12px;line-height:20px;color:#252525;font-size:14px;font-weight:400}._switch_3w2ni_13{width:40px;height:24px;background-color:#ccc;border-radius:25px;display:flex;align-items:center;padding:2px;cursor:pointer;transition:background-color .2s}._switch_3w2ni_13._active_3w2ni_24{background:#ff3f19}._switch_3w2ni_13 ._toggle_3w2ni_27{width:14px;height:14px;background-color:#fff;border-radius:16px;transition:transform .2s;transform:translate(2px)}._switch_3w2ni_13._active_3w2ni_24 ._toggle_3w2ni_27{transform:translate(18px)}._background_3w2ni_39{background-color:#f8f8f8}._padding_3w2ni_43{padding:8px}._wrapper_1inu5_1{border:var(--default-border);width:fit-content;height:fit-content;max-height:500px;max-width:500px;min-width:300px;padding:10px;left:10px;top:10px;position:absolute;z-index:1000;background-color:#fff;display:flex;border-radius:8px;justify-content:center;align-items:center;overflow:hidden}._blocks_1op3c_1{display:flex;align-items:center;gap:8px}._block_1op3c_1{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1op3c_18{border:1px solid #ff3f19}._applyButton_1cqw4_2{flex:0 1 50%;font-weight:400}._cancelButton_1cqw4_7{background-color:#f8f8f8;color:var(--accent-color)}._content_1cqw4_12{display:flex;flex-direction:column;width:100%}._label_1cqw4_18{padding:8px 12px;border-radius:8px;display:flex;align-items:center;position:relative;gap:8px;width:100%;background-color:var(--background-color);cursor:pointer}._colorValue_1cqw4_30{width:20px;height:20px;padding:2.5px;border-radius:2px}._modal_1cqw4_37{left:15px;width:288px;overflow-y:auto;z-index:100000000;position:fixed;background-color:#fff;border-radius:12px;padding:10px;border:1px solid #e6e6e6;height:400px;display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:24px;font-weight:700}._colorMap_1cqw4_56{position:relative;width:100%;height:300px;cursor:pointer;border-radius:4px}._indicator_1cqw4_64{position:absolute;width:20px;height:20px;border:4px solid white;border-radius:50%;pointer-events:none}._hueSlider_1cqw4_73{width:80%;left:30px;height:8px;position:absolute;bottom:80px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red,red);border-radius:5px}input[type=range]{-webkit-appearance:none;height:8px;outline:none;border-radius:5px;position:relative;display:flex;justify-content:center}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border:5px solid #fff;border-radius:50%;cursor:pointer}._slider_1cqw4_102{width:100%;cursor:pointer}._buttons_1cqw4_107{display:flex;gap:5px;width:100%}._name_1cqw4_113{line-height:20px;padding:0 4px 4px}._secondary_1cqw4_118{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_1cqw4_126{line-height:20px;font-size:14px;font-weight:400}._modal_1qb2a_1{position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100000;display:flex;padding:20px;justify-content:center;align-items:center;overflow:hidden}._wrapper_1qvfi_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%;position:relative}._label_1qvfi_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._textarea_1qvfi_18{width:100%;background-color:var(--background-color);border-radius:12px;padding:8px 12px;font-size:16px;line-height:24px;resize:none;min-height:80px}._textarea_1qvfi_18::placeholder{color:#c2c2c2}._length_1qvfi_33{position:absolute;bottom:12px;right:12px;color:#c2c2c2;line-height:20px}._wrapper_1fcne_2{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1fcne_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._options_1fcne_18{display:flex;gap:20px}._radioLabel_1fcne_23{display:flex;align-items:center;cursor:pointer;position:relative}._radio_1fcne_23{position:absolute;opacity:0;cursor:pointer}._custom_1fcne_36{height:20px;width:20px;border-radius:50%;border:1px solid #e6e6e6;display:inline-block;margin-right:8px;position:relative}._radio_1fcne_23:checked+._custom_1fcne_36{border-color:#ff3f19;background:#ffeae5}._custom_1fcne_36:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background-color:#e53e3e;opacity:0}._radio_1fcne_23:checked+._custom_1fcne_36:after{opacity:1}._option_1fcne_18{font-size:16px;line-height:24px;font-weight:400}._tip_pl6k0_1{display:flex;align-items:center;padding:8px;border-radius:12px;gap:8px}._text_pl6k0_9{flex:1 1 auto;line-height:20px;font-size:14px}._warning_pl6k0_15{background:#faf8e6;color:#c1972a}._error_pl6k0_20{background:#ffc3b7;color:#ff3f19}._hide_pl6k0_25{display:none}._customCheckbox_1b69m_1{display:inline-block;cursor:pointer;position:relative}._checkboxBox_1b69m_7{display:inline-block;width:20px;height:20px;border:1px solid #e6e6e6;border-radius:6px;position:relative}._checkboxBox_1b69m_7._checked_1b69m_16{background:#ffeae5;border:1px solid #ff3f19}._icon_1b69m_21{position:absolute;top:3px;left:3px}._loader_wrwsz_1{border:4px solid rgba(0,0,0,.1);border-left-color:#f8f8f8;border-radius:50%;width:40px;height:40px;animation:_spin_wrwsz_1 1s linear infinite}@keyframes _spin_wrwsz_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._wrapper_tm686_2{display:flex;flex-direction:column;gap:6px;width:100%}._label_tm686_9{color:#757575;font-weight:400;font-size:14px;line-height:20px}._icon_tm686_16{padding:4px;background-color:#fff;border:1px solid #f0f0f0;display:flex;justify-content:center;align-items:center;border-radius:6px}._text_tm686_26{font-weight:400;font-size:16px;line-height:24px;color:#ff3f19}._content_tm686_33{display:flex;align-items:center;gap:6px;cursor:pointer;background-color:#f8f8f8;border-radius:12px;padding:6px 8px}._modal_tm686_43{background-color:#f8f8f8;border:1px solid #f0f0f0;border-radius:16px;width:100%;max-width:640px}._top_tm686_51{padding:16px 24px;display:flex;align-items:center;justify-content:space-between}._title_tm686_58{color:#252525;font-weight:400;font-size:18px;line-height:24px}._modalContent_tm686_65{padding:16px 24px;border-top-left-radius:16px;border-top-right-radius:16px;border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0;background-color:#fff}._images_tm686_74{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:10px;overflow-y:scroll;max-height:390px}._add_tm686_83{display:flex;flex-direction:column;gap:8px;padding:43px 16px;border:1px dashed #e6e6e6;justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._description_tm686_95{text-align:center;color:#252525;font-size:14px;line-height:20px}._description_tm686_95 span:last-child{padding-top:4px}._bottom_tm686_105{display:flex;justify-content:end;align-items:center;width:100%;background-color:#fff;border-bottom-left-radius:16px;border-bottom-right-radius:16px;padding:16px 24px 12px;gap:6px}._cancel_tm686_117{background-color:var(--background-color);color:var(--accent-color)}._highlight_tm686_122{color:#ff3f19;cursor:pointer}._accent_tm686_127{color:var(--accent-color)}._image_tm686_74{position:relative;padding:43px 16px;border:1px solid #e6e6e6;justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._selected_tm686_141{border:1px solid #ff3f19}._checkbox_tm686_145{position:absolute;top:12px;left:12px}._loading_tm686_151{position:relative;padding:43px 16px;border:1px solid #e6e6e6;background-color:#f8f8f8;justify-content:center;align-items:center;display:flex;border-radius:16px;aspect-ratio:1/1}._spinner_tm686_163{width:24px;height:24px;border:2px solid #ff3f19;border-top-color:#f8f8f8;border-radius:50%;animation:_spin_tm686_163 1s linear infinite}@keyframes _spin_tm686_163{to{transform:rotate(360deg)}}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}*{padding:0;margin:0;border:0}*,*:before,*:after{box-sizing:border-box}:focus,:active{outline:none}a:focus,a:active{outline:none}nav,footer,header,aside{display:block}html,body{width:100%;line-height:1;font-size:16px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%}input,button,textarea{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}a,a:visited,a:hover{text-decoration:none}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6,a{font-size:inherit}a{color:inherit}*{-webkit-tap-highlight-color:transparent}input{border:none;background:none;outline:none;padding:0}input[type=color]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:40px;height:40px;border:none;background:transparent}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}*{-ms-overflow-style:none;scrollbar-width:none}* ::-webkit-scrollbar{display:none}:root{--default-border: 1px solid #f0f0f0;--accent-color: #757575;--main-color: #252525;--background-color: #f8f8f8}body,html{background-color:#fff;font-family:Archivo,sans-serif;max-height:100dvh;overflow:hidden}._wrapper_dbban_1{height:100%;overflow-y:scroll;display:flex;flex-direction:column}._main_dbban_8{flex:1 1 auto}._loading_dbban_12{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._buttons_1gn8m_1{display:flex;align-items:center;gap:16px}._button_1gn8m_1{cursor:pointer;padding:10px}._devices_hxl12_1{display:flex;gap:4px;background:var(--background-color);padding:4px;border-radius:16px}._device_hxl12_1{padding:6px 8px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:12px;border:1px solid var(--background-color)}._device_hxl12_1:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_hxl12_23{background-color:#fff}._active_hxl12_23:hover{border:1px solid var(--background-color);box-shadow:none}._header_zvaam_1{width:100%;padding:11px 22px;line-height:20px;border-bottom:var(--default-border);display:flex;align-items:center;justify-content:space-between;gap:24px}._left_zvaam_12,._right_zvaam_13{display:flex;align-items:center;gap:24px}._preview_vijvm_2{display:flex;align-items:center;gap:4px;color:var(--accent-color);line-height:20px;padding:10px 16px;cursor:pointer;border:1px solid #fff;border-radius:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._preview_vijvm_2:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_vijvm_22{background-color:var(--background-color)}._active_vijvm_22:hover{border:1px solid #fff;box-shadow:none}._settings_q79q3_1{display:flex;gap:20px;align-items:center;color:var(--accent-color)}._language_1mbvp_1{display:flex;align-items:center;gap:4px;background-color:var(--background-color);padding:10px 12px;border-radius:12px;cursor:pointer}._text_1mbvp_11{padding-right:4px;color:var(--main-color)}._pages_sf7rl_1{position:relative}._default_sf7rl_5{display:flex;align-items:center;gap:4px;padding:10px 12px;background-color:var(--background-color);border-radius:8px;cursor:pointer;position:relative}._text_sf7rl_16{padding-right:4px;color:var(--main-color);flex:1 1 auto}._modal_sf7rl_22{position:absolute;top:45px;width:320px;left:0;z-index:5000;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:8px 12px;display:flex;flex-direction:column}._page_sf7rl_1{display:flex;align-items:center;gap:8px;padding:12px 8px;border-radius:8px;cursor:pointer}._hoverable_sf7rl_45{background-color:var(--background-color)}._separator_sf7rl_49{border-bottom:1px solid #f0f0f0}._button_sf7rl_53{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:start;gap:8px;padding:16px 8px 12px;transition:.2s}._button_sf7rl_53:hover{background-color:var(--background-color)}._items_sf7rl_67{max-height:400px;overflow-y:scroll;height:100%}._zoom_a77cn_1{display:flex;align-items:center;gap:4px;background-color:var(--background-color);padding:10px 12px;border-radius:12px;cursor:pointer}._theme_3wxbf_1{display:flex;align-items:center;gap:4px;padding:9px 12px;background:#e5fadd;color:#338b13;border-radius:100px}._exit_2ce42_1{border-bottom:var(--default-border);display:flex;gap:8px;align-items:center;padding:22px;cursor:pointer}._text_2ce42_10{color:#252525;line-height:20px}._navbar_2ac63_1{width:100px;border-right:var(--default-border)}._main_2ac63_6{display:flex;flex-direction:column;gap:8px;padding:16px 12px}._block_2ac63_13{display:flex;align-items:center;flex-direction:column;gap:4px;color:var(--accent-color);line-height:20px;padding:12px 24px;cursor:pointer;border:1px solid #fff;border-radius:16px}._block_2ac63_13:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_2ac63_30{background-color:var(--background-color);color:#252525}._active_2ac63_30:hover{border:1px solid #fff;box-shadow:none}._preview_1q4f5_1{width:100%;background-color:var(--background-color);padding:16px 32px 0;position:relative;z-index:500}._main_1q4f5_9{width:100%;display:flex;flex-direction:column;overflow-y:auto;height:calc(100vh - 85px);position:relative;z-index:1}._content_1q4f5_19{background-color:#fff;border:var(--default-border);border-bottom:none;height:100%}._loading_1q4f5_26{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._loader_1q4f5_34{border:4px solid rgba(0,0,0,.1);border-left-color:#fff;border-radius:50%;width:40px;height:40px;animation:_spin_1q4f5_1 1s linear infinite}@keyframes _spin_1q4f5_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._header_1t64j_1{display:flex;width:100%;padding:18px;justify-content:center;border:var(--default-border);background-color:#fff;border-top-left-radius:16px;border-top-right-radius:16px;border-bottom:none;z-index:5}._circles_1t64j_14{left:28px;top:28px;position:absolute;display:flex;align-items:center;gap:8px}._circle_1t64j_14{width:12px;height:12px;border-radius:50%;border:.5px solid #e6e6e6}._red_1t64j_30{background:#ff5f57}._green_1t64j_34{background:#28c840}._yellow_1t64j_38{background:#febc2e}._input_1t64j_42{background-color:var(--background-color);padding:6px 8px;display:flex;max-width:480px;width:100%;border-radius:6px}._main_1t64j_51{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:4px}._text_1t64j_59{font-weight:600;font-size:12px;line-height:16px;margin:0 0 0 4px}._content_1plo6_1{width:100%;height:100%;display:flex;flex-direction:column}._main_1plo6_8{flex:1 0 auto}._block_1plo6_12{position:relative;cursor:pointer;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}._active_1plo6_19{border:2px solid #ff3f19}._name_1plo6_23{z-index:10;position:absolute;top:-28px;left:-2px;border-top-left-radius:8px;border-top-right-radius:8px;color:#fff;background:#ff3f19;padding:4px 12px;line-height:20px;text-align:center}._empty_1plo6_37{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}._icon_1plo6_48{width:64px;height:64px;background-color:var(--background-color);display:flex;border-radius:50%;justify-content:center;align-items:center;margin:0 0 8px}._title_1plo6_59{font-weight:700;font-size:24px;line-height:32px}._text_1plo6_65{font-size:16px;line-height:24px;color:var(--accent-color)}._sections_1plo6_71{padding:0 20px;margin:20px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:24px}._section_1plo6_71{cursor:pointer;display:flex;gap:10px;max-width:288px;width:100%;align-items:center;justify-content:space-between;padding:24px;background-color:var(--background-color);border-radius:24px;color:var(--accent-color)}._sidebar_1f3hk_1{position:absolute;display:flex;height:fit-content();flex-direction:column;right:10px;z-index:20;padding:10px;cursor:auto}._content_1f3hk_12{height:100%;border:1px solid #e6e6e6;border-radius:8px;background-color:#fff;padding:8px;max-width:60px;width:100%}._button_1f3hk_22{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._moveButton_1f3hk_30:hover{background-color:var(--background-color)}._border_1f3hk_34{border-bottom:var(--default-border)}._deleteButton_1f3hk_38:hover{background-color:#dd6363;color:#fff}._results_f488n_1{display:flex;flex-direction:column;padding:8px;gap:20px}._name_f488n_8{color:var(--main-color);font-weight:600;font-size:16px;line-height:24px}._product_f488n_15{display:flex;align-items:center;justify-content:space-between;cursor:pointer}._search_1s0qp_1{background:var(--background-color);padding:8px 12px;display:flex;align-items:center;border-radius:12px;width:100%;gap:10px;margin:8px 0}._input_1s0qp_12{width:100%;font-size:16px;line-height:24px;color:#252525}._input_1s0qp_12::placeholder{color:#c2c2c2}._sidebar_96mlz_1{max-width:320px;width:100%;padding:16px;border-right:var(--default-border);height:calc(100vh - 60px);position:relative}._title_96mlz_10{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;padding-bottom:8px}._active_96mlz_18{display:flex;align-items:center;gap:8px}._layers_62wod_1{display:flex;flex-direction:column;position:relative;height:100%}._block_62wod_8{position:relative;display:flex;align-items:center;gap:4px;font-size:16px;line-height:24px;padding:8px 12px;border-radius:8px;cursor:pointer}._block_62wod_8:hover{background-color:var(--background-color)}._dragging_62wod_23{box-shadow:0 2.1px 4.36px #00000004;box-shadow:0 5.3px 10.22px #00000005;border:var(--default-border);box-shadow:0 10.81px 19.93px #00000006;cursor:grabbing}._active_62wod_31{background:#ffeae5}._add_62wod_35{z-index:2;position:absolute;display:flex;justify-content:center;align-items:center;bottom:0;left:0;border-bottom:2px solid #ff3f19;width:100%}._button_62wod_47{position:relative;display:flex;justify-content:center;align-items:center;top:12px;background-color:#ff3f19;width:24px;height:24px;border-radius:50%;padding:4px}._empty_62wod_60{display:flex;flex-direction:column;justify-content:center;height:100%;width:100%;align-items:center;text-align:center;gap:4px;color:var(--accent-color)}._title_62wod_72{font-size:16px;line-height:24px;font-weight:700;color:var(--accent-color)}._icon_62wod_79{margin:0 0 12px}._text_62wod_83{font-size:16px;font-weight:400;line-height:24px}._highlight_62wod_89{color:#ff3f19;cursor:pointer}._block_1d6lb_1{position:relative;display:flex;align-items:center;gap:4px;font-size:16px;line-height:24px;padding:8px 12px;border-radius:8px;cursor:pointer}._block_1d6lb_1:hover{background-color:var(--background-color)}._theme_1xj36_1{display:flex;flex-direction:column}._block_1xj36_6{justify-content:start;display:flex;align-items:center;gap:8px;width:100%;padding:16px 8px;cursor:pointer;border-radius:8px}._block_1xj36_6:hover{background-color:var(--background-color)}._name_1xj36_20{flex:1 1 auto}._back_y3z55_1{display:flex;align-items:center;gap:8px;padding-bottom:8px}._render_y3z55_8{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:501}._open_y3z55_23{animation:.2s _open_y3z55_23 forwards}@keyframes _open_y3z55_23{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_y3z55_50{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_y3z55_50{animation:.2s _close_y3z55_50 forwards}._clicked_y3z55_54{opacity:0}._title_y3z55_58{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._button_y3z55_66{align-self:center;flex:1}._loading_y3z55_71{flex:1 1 auto}._settings_y3z55_75{flex:1 1 100%;overflow-y:scroll;overflow-x:hidden}._deleteButton_y3z55_81{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_y3z55_81:hover{background-color:#dd6363;color:#fff}._settings_1r85j_1{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:3}._open_1r85j_16{transform:translate(0)}._close_1r85j_20{transform:translate(320px)}._header_1r85j_24{display:flex;align-items:center;gap:8px}._title_1r85j_30{font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._addButton_1r85j_37{color:#ff3f19;display:flex;align-items:center;gap:4px;cursor:pointer}._wrapper_n1a7x_1{overflow-y:scroll}._category_n1a7x_5{display:flex;flex-direction:column}._categoryTitle_n1a7x_10{font-weight:600;font-size:16px;line-height:24px}._color_n1a7x_16{display:flex;flex-direction:column}._color_n1a7x_16:not(:last-child){border-bottom:1px solid #f0f0f0}._content_n1a7x_24{padding:12px 0;gap:8px;display:flex;align-items:center;flex:1 1 auto}._preview_n1a7x_32{width:39px;height:39px;flex:0 0 39px;padding:5px;border-radius:50%;border:1px solid #e6e6e6}._wrapper_kb55x_2{overflow-y:scroll}._category_kb55x_6{display:flex;flex-direction:column}._categoryTitle_kb55x_11{font-weight:600;font-size:16px;line-height:24px}._color_kb55x_17{gap:8px;display:flex;flex-direction:column}._name_kb55x_23{line-height:20px;padding:0 4px 4px}._content_kb55x_28{display:flex;flex-direction:column;width:100%}._label_kb55x_34{padding:8px 12px;border-radius:12px;display:flex;align-items:center;gap:5px;width:100%;background-color:var(--background-color);cursor:pointer}._input_kb55x_45[type=color]{width:20px;height:20px;padding:1px}._input_kb55x_45{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:100%;border:none;padding:0;cursor:pointer;border-radius:50%}._input_kb55x_45::-webkit-color-swatch{border-radius:50%;border:none}._input_kb55x_45::-webkit-color-swatch-wrapper{padding:0;border-radius:50%}._title_kb55x_71{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._field_kb55x_79{display:flex;flex-direction:column;gap:10px;padding:16px 0}._field_kb55x_79:not(:last-child){border-bottom:1px solid #f0f0f0}._alignments_kb55x_89{display:flex;flex-direction:column;gap:10px}._lineField_kb55x_95{display:flex;justify-content:space-between;align-items:center}._style_kb55x_101{flex:1 0 50%;display:flex;flex-direction:column;gap:8px}._header_kb55x_108{display:flex;align-items:center;justify-content:space-between}._wrapper_k9on2_1{overflow-y:scroll}._category_k9on2_5{display:flex;flex-direction:column}._categoryTitle_k9on2_10{font-weight:600;font-size:16px;line-height:24px}._font_k9on2_16{padding:12px 0;gap:8px;display:flex;align-items:center;position:relative;flex:1 1 auto;cursor:pointer}._font_k9on2_16:hover{background-color:#f8f8f8;border-radius:8px}._font_k9on2_16:not(:last-child){border-bottom:var(--default-border)}._font_k9on2_16:not(:last-child):hover{border-bottom:1px solid #f8f8f8}._content_k9on2_36{display:flex;flex-direction:column;width:100%}._icon_k9on2_42{padding:8px;border-radius:8px;background-color:#f8f8f8;display:flex;align-items:center;justify-content:center}._paragraph_k9on2_51{padding:12px}._deleteIcon_k9on2_55{position:absolute;right:10px;width:20px;height:20px}._iconButton_k9on2_62{width:32px;height:32px}._wrapper_94fpv_1{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:5}._open_94fpv_16{transform:translate(0)}._close_94fpv_20{transform:translate(320px)}._header_94fpv_24{display:flex;align-items:center;gap:8px;margin:0 0 10px}._title_94fpv_31{font-weight:700;font-size:20px;line-height:24px}._options_94fpv_37{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_94fpv_44{opacity:0}._wrapper_1j33r_1{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:5}._open_1j33r_16{transform:translate(0)}._close_1j33r_20{transform:translate(320px)}._header_1j33r_24{display:flex;align-items:center;gap:8px;margin:0 0 10px}._title_1j33r_31{font-weight:700;font-size:20px;line-height:24px}._options_1j33r_37{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_1j33r_44{opacity:0}._label_1j33r_48{font-size:14px;font-weight:400;line-height:20px;color:var(--accent-color)}._alignments_1j33r_55{display:flex;flex-direction:column;gap:10px}._blocks_1j33r_61{display:flex;align-items:center;gap:8px}._alignment_1j33r_55{padding:8px;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1j33r_75{border:1px solid #ff3f19}._wrapper_jjfwh_1{display:flex;flex-direction:column;gap:20px;background:#fff;max-width:640px;width:100%;padding:16px 24px;border-radius:16px}._header_jjfwh_12{display:flex;justify-content:space-between;align-items:center;font-size:24px;font-weight:700;line-height:32px}._content_jjfwh_21{display:flex;flex-direction:column;gap:10px;overflow-y:scroll;max-height:500px}._buttons_jjfwh_29{display:flex;justify-content:end;gap:12px}._cancel_jjfwh_35{background-color:var(--background-color);color:var(--accent-color)}._label_jjfwh_40,._description_jjfwh_41{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._preview_jjfwh_49{display:flex;flex-direction:column;gap:10px}._block_jjfwh_55{padding:24px;display:flex;flex-direction:column;border:1px solid var(--background-color);border-radius:8px}._slug_jjfwh_63{line-height:20px;color:#ff3f19;margin-bottom:4px}._title_jjfwh_69{font-weight:600;font-size:16px;line-height:24px}._layout_vvs1k_1{width:100%;height:100%;display:flex;position:relative}._main_vvs1k_8{display:flex;flex-direction:column;width:100%;position:relative}._content_vvs1k_15{position:relative;height:100%;display:flex}._accordion_2tiiw_1{border-radius:24px;overflow:hidden;transition:all .3s ease;background-color:#f8f8f8;padding:24px}._header_2tiiw_9{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700}._header_2tiiw_9 ._icon_2tiiw_16{transition:transform .3s ease}._header_2tiiw_9 ._icon_2tiiw_16._open_2tiiw_19{transform:rotate(180deg)}._content_2tiiw_23{overflow:hidden;transition:height .3s ease}._wrapper_1g82c_2{display:flex;flex-direction:column;gap:10px}._alignmentBlock_1g82c_8{padding:10px 0 16px;display:flex;flex-direction:column;gap:6px}._title_1g82c_15{font-weight:700;line-height:24px;font-size:16px;color:#252525}._subtitle_1g82c_22{color:#757575;font-size:14px;line-height:20px;font-weight:400}._alignmentContent_1g82c_29{display:flex;justify-content:space-between;align-items:stretch}._alignments_1g82c_35{border-radius:12px;background:#f8f8f8;display:grid;gap:4px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);flex:0 0 50%}._alignment_1g82c_8{cursor:pointer;display:flex;height:100%;width:100%;align-items:center;justify-content:center}._circle_1g82c_54{width:6px;height:6px;border-radius:50%;background-color:#c2c2c2}._paddings_1g82c_61{border-radius:12px;display:grid;gap:4px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._padding_1g82c_61{width:68px;display:flex;align-items:center;gap:4px;background:#f8f8f8;border-radius:12px;padding:10px 8px}._input_1g82c_79{width:100%}._subtitle_2zbxx_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_2zbxx_8,._text_2zbxx_9{padding:10px 0 16px;display:flex;flex-direction:column;border-bottom:1px solid #f0f0f0}._top_2zbxx_16{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_2zbxx_23{display:flex;flex-direction:column;gap:6px}._typeTexts_3zlec_1{display:flex;align-items:center;gap:8px}._block_3zlec_7{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_3zlec_18{border:1px solid #ff3f19}._subtitle_11qr1_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_11qr1_8,._text_11qr1_9,._productsBlock_11qr1_10{padding:10px 0 16px;display:flex;flex-direction:column;gap:12px;width:100%}._productsBlock_11qr1_10{position:relative}._top_11qr1_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_11qr1_29{display:flex;flex-direction:column;gap:6px}._typeTexts_11qr1_35{display:flex;align-items:center;gap:8px}._block_11qr1_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_11qr1_52{border:1px solid #ff3f19}._products_11qr1_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_11qr1_10{display:flex;align-items:center;gap:8px;width:100%}._button_11qr1_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._disabled_11qr1_80{color:#757575}._image_11qr1_84{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_11qr1_91{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_11qr1_102{flex:1 1 100%}._buttons_11qr1_106{display:flex;align-items:center;gap:8px}._modal_11qr1_112{position:fixed;background-color:#fff;border:1px solid #f0f0f0;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_11qr1_112 ._top_11qr1_22{display:flex;align-items:center;justify-content:space-between}._link_11qr1_130{display:flex;flex-direction:column;gap:8px}._modalOptions_11qr1_136{display:flex;flex-direction:column;gap:10px}._other_1wtgi_1{display:flex;flex-direction:column;gap:6px}._subtitle_1wtgi_7{color:#757575;font-size:14px;line-height:20px;font-weight:400}._items_1wtgi_14{display:flex;flex-direction:column;gap:8px}._subtitle_41klp_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_41klp_8,._text_41klp_9,._productsBlock_41klp_10,._buttonsBlock_41klp_11{padding:10px 0 16px;display:flex;flex-direction:column}._buttonsBlock_41klp_11{position:relative}._top_41klp_21{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_41klp_28{display:flex;flex-direction:column;gap:6px}._typeTexts_41klp_34{display:flex;align-items:center;gap:8px}._block_41klp_40{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_41klp_51{border:1px solid #ff3f19}._products_41klp_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_41klp_10{display:flex;align-items:center;gap:8px;width:100%}._button_41klp_11{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_41klp_79{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_41klp_86{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_41klp_97{flex:1 1 100%}._buttons_41klp_11{display:flex;align-items:center;gap:8px}._modal_41klp_107{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_41klp_107 ._top_41klp_21{display:flex;align-items:center;justify-content:space-between}._other_41klp_124{display:flex;flex-direction:column;gap:6px}._options_41klp_130{display:flex;flex-direction:column;gap:15px}._subtitle_1y5sw_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_1y5sw_8,._text_1y5sw_9,._productsBlock_1y5sw_10,._buttonsBlock_1y5sw_11{padding:10px 0 16px;display:flex;flex-direction:column;border-bottom:1px solid #f0f0f0}._buttonsBlock_1y5sw_11{position:relative}._top_1y5sw_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1y5sw_29{display:flex;flex-direction:column;gap:6px}._typeTexts_1y5sw_35{display:flex;align-items:center;gap:8px}._block_1y5sw_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1y5sw_52{border:1px solid #ff3f19}._products_1y5sw_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_1y5sw_10{display:flex;align-items:center;gap:8px;width:100%}._button_1y5sw_11{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_1y5sw_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_1y5sw_87{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_1y5sw_98{flex:1 1 100%}._buttons_1y5sw_11{display:flex;align-items:center;gap:8px}._modal_1y5sw_108{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_1y5sw_108 ._top_1y5sw_22{display:flex;align-items:center;justify-content:space-between}._other_1y5sw_125{display:flex;flex-direction:column;gap:6px}._options_1y5sw_131{display:flex;flex-direction:column;gap:15px}._wrapper_tn7gb_1{display:flex;flex-direction:column;gap:6px}._subtitle_tn7gb_7{color:#757575;font-size:14px;line-height:20px;font-weight:400}._content_tn7gb_14{display:flex;align-items:center;gap:10px;width:100%}._range_tn7gb_21{position:relative;flex:1}._track_tn7gb_26{position:absolute;width:95%;height:6px;background-color:#f0f0f0;border-radius:9999px;z-index:1}._progress_tn7gb_35{position:absolute;height:6px;width:100%;background-color:#ff3f19;transition:width .2s;border-radius:9999px;z-index:1}._dots_tn7gb_45{position:absolute;display:flex;justify-content:space-between;width:100%}._dot_tn7gb_45{width:14px;height:14px;border-radius:50%;transition:transform .2s;position:relative;top:-4px;left:0;z-index:1}._dot_tn7gb_45._active_tn7gb_62{background-color:#ff3f19;transform:scale(1)}._dot_tn7gb_45:not(._active_tn7gb_62){background-color:#e5e7eb;transform:scale(.9)}._dot_tn7gb_45:hover{transform:scale(1.1)}._input_tn7gb_74{position:absolute;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}._input_tn7gb_74::-webkit-slider-thumb,._input_tn7gb_74::-moz-range-thumb{-webkit-appearance:none!important;-moz-appearance:none;appearance:none;width:0;height:0}._countBlock_tn7gb_88{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8f8f8;border-radius:12px}._count_tn7gb_88{font-size:16px;font-weight:400;line-height:24px}._controls_tn7gb_103{display:flex;flex-direction:column}._button_tn7gb_108{transition:background-color .2s}._button_tn7gb_108:hover{background-color:#f3f4f6}._button_tn7gb_108:disabled{opacity:.5}._subtitle_1nl8x_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_1nl8x_8,._text_1nl8x_9,._productsBlock_1nl8x_10{padding:10px 0 16px;display:flex;flex-direction:column;gap:12px;width:100%}._productsBlock_1nl8x_10{position:relative}._top_1nl8x_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1nl8x_29{display:flex;flex-direction:column;gap:6px}._typeTexts_1nl8x_35{display:flex;align-items:center;gap:8px}._block_1nl8x_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1nl8x_52{border:1px solid #ff3f19}._products_1nl8x_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_1nl8x_10{display:flex;align-items:center;gap:8px;width:100%}._button_1nl8x_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_1nl8x_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_1nl8x_87{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_1nl8x_98{flex:1 1 100%}._buttons_1nl8x_102{display:flex;align-items:center;gap:8px}._modal_1nl8x_108{position:fixed;background-color:#fff;border:1px solid #f0f0f0;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_1nl8x_108 ._top_1nl8x_22{display:flex;align-items:center;justify-content:space-between}._link_1nl8x_126{display:flex;flex-direction:column;gap:8px}._modalOptions_1nl8x_132{display:flex;flex-direction:column;gap:10px}._options_163bj_1{border-radius:16px;border:1px solid #f0f0f0;width:100%;height:fit-content;padding:24px;display:flex;flex-direction:column;gap:20px}._price_163bj_12{display:flex;gap:4px;align-items:flex-start}._oldPrice_163bj_18{font-size:14px;font-weight:400;line-height:20px;text-decoration:line-through;color:#757575}._newPrice_163bj_26{font-size:20px;font-weight:700;line-height:24px;color:#252525}._meta_163bj_33{display:flex;flex-direction:column;gap:10px}._info_163bj_39{display:flex;align-items:center;justify-content:space-between;gap:10px}._infoRight_163bj_46{display:flex;align-items:center;gap:5px}._buttons_163bj_52{display:flex;flex-direction:column;gap:8px;width:100%}._variants_163bj_59{display:flex;flex-direction:column;gap:20px}._variant_163bj_59{display:flex;justify-content:space-between;align-items:center;border-radius:12px;padding:12px 16px;border:2px solid #e6e6e6}._stock_163bj_74{font-size:14px;font-weight:400;line-height:20px;color:#757575}._variantInfo_163bj_81{display:flex;flex-direction:column;gap:4px}._quantity_163bj_87{display:flex;align-items:stretch;gap:10px}._count_163bj_93{flex:1 1 auto;display:flex;justify-content:center;align-items:center;border:1px solid #e6e6e6}._button_163bj_52{background:#f8f8f8;border-radius:50%;padding:8px;display:flex;justify-content:center;align-items:center}._activeVariant_163bj_110{border:2px solid #ff3f19}._chargeTypes_163bj_114{display:flex;gap:5px;padding:4px;background-color:#f8f8f8}._charge_163bj_114{flex:1 1 auto;display:flex;justify-content:center;align-items:center;color:#757575;padding:8px;border-radius:12px}._chargeActive_163bj_131{background-color:#fff;color:#252525}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { k as ce, l as et, m as ie, n as Ne, j as i, L as En, o as Zn,
|
|
3
|
-
import * as
|
|
2
|
+
import { k as ce, l as et, m as ie, n as Ne, j as i, L as En, o as Zn, I as z, p as xa, c as ne, q as tt, r as _a, B as Ze, s as ve, t as ka, w as ln, x as ja, y as sn, z as Dr, A as ke, e as Pa, D as La, H as Ea, u as Na, d as Da, f as Lt, g as Ra, a as ge, b as mt, E as tn, S as er, P as tr, F as Rr, G as Ta, T as Aa, R as Ba, J as Fa, M as nr, i as Ma, K as Nn, N as Tr, O as Oa } from "./index-D4jHAwqq.js";
|
|
3
|
+
import * as S from "react";
|
|
4
4
|
import W, { useMemo as Ar } from "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as Ua from "react-dom";
|
|
6
6
|
/**
|
|
7
7
|
* @remix-run/router v1.19.1
|
|
8
8
|
*
|
|
@@ -28,7 +28,7 @@ var oe;
|
|
|
28
28
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
29
29
|
})(oe || (oe = {}));
|
|
30
30
|
const rr = "popstate";
|
|
31
|
-
function
|
|
31
|
+
function Ha(e) {
|
|
32
32
|
e === void 0 && (e = {});
|
|
33
33
|
function t(r, a) {
|
|
34
34
|
let {
|
|
@@ -51,7 +51,7 @@ function $a(e) {
|
|
|
51
51
|
function n(r, a) {
|
|
52
52
|
return typeof a == "string" ? a : Ve(a);
|
|
53
53
|
}
|
|
54
|
-
return
|
|
54
|
+
return $a(t, n, null, e);
|
|
55
55
|
}
|
|
56
56
|
function T(e, t) {
|
|
57
57
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -66,7 +66,7 @@ function le(e, t) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ia() {
|
|
70
70
|
return Math.random().toString(36).substr(2, 8);
|
|
71
71
|
}
|
|
72
72
|
function ar(e, t) {
|
|
@@ -87,7 +87,7 @@ function Dt(e, t, n, r) {
|
|
|
87
87
|
// full Locations now and avoid the need to run through this flow at all
|
|
88
88
|
// But that's a pretty big refactor to the current test suite so going to
|
|
89
89
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
90
|
-
key: t && t.key || r ||
|
|
90
|
+
key: t && t.key || r || Ia()
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
function Ve(e) {
|
|
@@ -108,7 +108,7 @@ function Ge(e) {
|
|
|
108
108
|
}
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function $a(e, t, n, r) {
|
|
112
112
|
r === void 0 && (r = {});
|
|
113
113
|
let {
|
|
114
114
|
window: a = document.defaultView,
|
|
@@ -122,20 +122,20 @@ function Va(e, t, n, r) {
|
|
|
122
122
|
idx: null
|
|
123
123
|
}).idx;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function d() {
|
|
126
126
|
s = oe.Pop;
|
|
127
127
|
let x = f(), k = x == null ? null : x - p;
|
|
128
128
|
p = x, c && c({
|
|
129
129
|
action: s,
|
|
130
|
-
location:
|
|
130
|
+
location: w.location,
|
|
131
131
|
delta: k
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
function m(x, k) {
|
|
135
135
|
s = oe.Push;
|
|
136
|
-
let P = Dt(
|
|
136
|
+
let P = Dt(w.location, x, k);
|
|
137
137
|
p = f() + 1;
|
|
138
|
-
let A = ar(P, p), E =
|
|
138
|
+
let A = ar(P, p), E = w.createHref(P);
|
|
139
139
|
try {
|
|
140
140
|
o.pushState(A, "", E);
|
|
141
141
|
} catch (V) {
|
|
@@ -145,18 +145,18 @@ function Va(e, t, n, r) {
|
|
|
145
145
|
}
|
|
146
146
|
l && c && c({
|
|
147
147
|
action: s,
|
|
148
|
-
location:
|
|
148
|
+
location: w.location,
|
|
149
149
|
delta: 1
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function b(x, k) {
|
|
153
153
|
s = oe.Replace;
|
|
154
|
-
let P = Dt(
|
|
154
|
+
let P = Dt(w.location, x, k);
|
|
155
155
|
p = f();
|
|
156
|
-
let A = ar(P, p), E =
|
|
156
|
+
let A = ar(P, p), E = w.createHref(P);
|
|
157
157
|
o.replaceState(A, "", E), l && c && c({
|
|
158
158
|
action: s,
|
|
159
|
-
location:
|
|
159
|
+
location: w.location,
|
|
160
160
|
delta: 0
|
|
161
161
|
});
|
|
162
162
|
}
|
|
@@ -164,7 +164,7 @@ function Va(e, t, n, r) {
|
|
|
164
164
|
let k = a.location.origin !== "null" ? a.location.origin : a.location.href, P = typeof x == "string" ? x : Ve(x);
|
|
165
165
|
return P = P.replace(/ $/, "%20"), T(k, "No window.location.(origin|href) available to create URL for href: " + P), new URL(P, k);
|
|
166
166
|
}
|
|
167
|
-
let
|
|
167
|
+
let w = {
|
|
168
168
|
get action() {
|
|
169
169
|
return s;
|
|
170
170
|
},
|
|
@@ -174,8 +174,8 @@ function Va(e, t, n, r) {
|
|
|
174
174
|
listen(x) {
|
|
175
175
|
if (c)
|
|
176
176
|
throw new Error("A history only accepts one active listener");
|
|
177
|
-
return a.addEventListener(rr,
|
|
178
|
-
a.removeEventListener(rr,
|
|
177
|
+
return a.addEventListener(rr, d), c = x, () => {
|
|
178
|
+
a.removeEventListener(rr, d), c = null;
|
|
179
179
|
};
|
|
180
180
|
},
|
|
181
181
|
createHref(x) {
|
|
@@ -196,20 +196,20 @@ function Va(e, t, n, r) {
|
|
|
196
196
|
return o.go(x);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
|
-
return
|
|
199
|
+
return w;
|
|
200
200
|
}
|
|
201
201
|
var J;
|
|
202
202
|
(function(e) {
|
|
203
203
|
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
204
204
|
})(J || (J = {}));
|
|
205
|
-
const
|
|
206
|
-
function
|
|
205
|
+
const za = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
|
|
206
|
+
function Va(e) {
|
|
207
207
|
return e.index === !0;
|
|
208
208
|
}
|
|
209
209
|
function Rt(e, t, n, r) {
|
|
210
210
|
return n === void 0 && (n = []), r === void 0 && (r = {}), e.map((a, l) => {
|
|
211
211
|
let o = [...n, String(l)], s = typeof a.id == "string" ? a.id : o.join("-");
|
|
212
|
-
if (T(a.index !== !0 || !a.children, "Cannot specify children on an index route"), T(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`),
|
|
212
|
+
if (T(a.index !== !0 || !a.children, "Cannot specify children on an index route"), T(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`), Va(a)) {
|
|
213
213
|
let c = ee({}, a, t(a), {
|
|
214
214
|
id: s
|
|
215
215
|
});
|
|
@@ -231,15 +231,15 @@ function Qt(e, t, n, r) {
|
|
|
231
231
|
if (l == null)
|
|
232
232
|
return null;
|
|
233
233
|
let o = Br(e);
|
|
234
|
-
|
|
234
|
+
Ga(o);
|
|
235
235
|
let s = null;
|
|
236
236
|
for (let c = 0; s == null && c < o.length; ++c) {
|
|
237
|
-
let p =
|
|
238
|
-
s =
|
|
237
|
+
let p = ro(l);
|
|
238
|
+
s = to(o[c], p, r);
|
|
239
239
|
}
|
|
240
240
|
return s;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Wa(e, t) {
|
|
243
243
|
let {
|
|
244
244
|
route: n,
|
|
245
245
|
pathname: r,
|
|
@@ -271,7 +271,7 @@ function Br(e, t, n, r) {
|
|
|
271
271
|
"Index routes must not have child routes. Please remove " + ('all child routes from route path "' + p + '".')
|
|
272
272
|
), Br(l.children, t, f, p)), !(l.path == null && !l.index) && t.push({
|
|
273
273
|
path: p,
|
|
274
|
-
score:
|
|
274
|
+
score: Za(p, l.index),
|
|
275
275
|
routesMeta: f
|
|
276
276
|
});
|
|
277
277
|
};
|
|
@@ -293,15 +293,15 @@ function Fr(e) {
|
|
|
293
293
|
let o = Fr(r.join("/")), s = [];
|
|
294
294
|
return s.push(...o.map((c) => c === "" ? l : [l, c].join("/"))), a && s.push(...o), s.map((c) => e.startsWith("/") && c === "" ? "/" : c);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
e.sort((t, n) => t.score !== n.score ? n.score - t.score :
|
|
296
|
+
function Ga(e) {
|
|
297
|
+
e.sort((t, n) => t.score !== n.score ? n.score - t.score : eo(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
function
|
|
299
|
+
const qa = /^:[\w-]+$/, Ka = 3, Ya = 2, Xa = 1, Ja = 10, Qa = -2, or = (e) => e === "*";
|
|
300
|
+
function Za(e, t) {
|
|
301
301
|
let n = e.split("/"), r = n.length;
|
|
302
|
-
return n.some(or) && (r +=
|
|
302
|
+
return n.some(or) && (r += Qa), t && (r += Ya), n.filter((a) => !or(a)).reduce((a, l) => a + (qa.test(l) ? Ka : l === "" ? Xa : Ja), r);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function eo(e, t) {
|
|
305
305
|
return e.length === t.length && e.slice(0, -1).every((r, a) => r === t[a]) ? (
|
|
306
306
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
307
307
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -314,30 +314,30 @@ function no(e, t) {
|
|
|
314
314
|
0
|
|
315
315
|
);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function to(e, t, n) {
|
|
318
318
|
n === void 0 && (n = !1);
|
|
319
319
|
let {
|
|
320
320
|
routesMeta: r
|
|
321
321
|
} = e, a = {}, l = "/", o = [];
|
|
322
322
|
for (let s = 0; s < r.length; ++s) {
|
|
323
|
-
let c = r[s], p = s === r.length - 1, f = l === "/" ? t : t.slice(l.length) || "/",
|
|
323
|
+
let c = r[s], p = s === r.length - 1, f = l === "/" ? t : t.slice(l.length) || "/", d = nn({
|
|
324
324
|
path: c.relativePath,
|
|
325
325
|
caseSensitive: c.caseSensitive,
|
|
326
326
|
end: p
|
|
327
327
|
}, f), m = c.route;
|
|
328
|
-
if (!
|
|
328
|
+
if (!d && p && n && !r[r.length - 1].route.index && (d = nn({
|
|
329
329
|
path: c.relativePath,
|
|
330
330
|
caseSensitive: c.caseSensitive,
|
|
331
331
|
end: !1
|
|
332
|
-
}, f)), !
|
|
332
|
+
}, f)), !d)
|
|
333
333
|
return null;
|
|
334
|
-
Object.assign(a,
|
|
334
|
+
Object.assign(a, d.params), o.push({
|
|
335
335
|
// TODO: Can this as be avoided?
|
|
336
336
|
params: a,
|
|
337
|
-
pathname: Ee([l,
|
|
338
|
-
pathnameBase:
|
|
337
|
+
pathname: Ee([l, d.pathname]),
|
|
338
|
+
pathnameBase: io(Ee([l, d.pathnameBase])),
|
|
339
339
|
route: m
|
|
340
|
-
}),
|
|
340
|
+
}), d.pathnameBase !== "/" && (l = Ee([l, d.pathnameBase]));
|
|
341
341
|
}
|
|
342
342
|
return o;
|
|
343
343
|
}
|
|
@@ -347,20 +347,20 @@ function nn(e, t) {
|
|
|
347
347
|
caseSensitive: !1,
|
|
348
348
|
end: !0
|
|
349
349
|
});
|
|
350
|
-
let [n, r] =
|
|
350
|
+
let [n, r] = no(e.path, e.caseSensitive, e.end), a = t.match(n);
|
|
351
351
|
if (!a) return null;
|
|
352
352
|
let l = a[0], o = l.replace(/(.)\/+$/, "$1"), s = a.slice(1);
|
|
353
353
|
return {
|
|
354
|
-
params: r.reduce((p, f,
|
|
354
|
+
params: r.reduce((p, f, d) => {
|
|
355
355
|
let {
|
|
356
356
|
paramName: m,
|
|
357
357
|
isOptional: b
|
|
358
358
|
} = f;
|
|
359
359
|
if (m === "*") {
|
|
360
|
-
let
|
|
361
|
-
o = l.slice(0, l.length -
|
|
360
|
+
let w = s[d] || "";
|
|
361
|
+
o = l.slice(0, l.length - w.length).replace(/(.)\/+$/, "$1");
|
|
362
362
|
}
|
|
363
|
-
const C = s[
|
|
363
|
+
const C = s[d];
|
|
364
364
|
return b && !C ? p[m] = void 0 : p[m] = (C || "").replace(/%2F/g, "/"), p;
|
|
365
365
|
}, {}),
|
|
366
366
|
pathname: l,
|
|
@@ -368,7 +368,7 @@ function nn(e, t) {
|
|
|
368
368
|
pattern: e
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function no(e, t, n) {
|
|
372
372
|
t === void 0 && (t = !1), n === void 0 && (n = !0), le(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
|
|
373
373
|
let r = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, s, c) => (r.push({
|
|
374
374
|
paramName: s,
|
|
@@ -378,7 +378,7 @@ function ao(e, t, n) {
|
|
|
378
378
|
paramName: "*"
|
|
379
379
|
}), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), r];
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ro(e) {
|
|
382
382
|
try {
|
|
383
383
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
384
384
|
} catch (t) {
|
|
@@ -392,7 +392,7 @@ function Ce(e, t) {
|
|
|
392
392
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
393
393
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ao(e, t) {
|
|
396
396
|
t === void 0 && (t = "/");
|
|
397
397
|
let {
|
|
398
398
|
pathname: n,
|
|
@@ -400,12 +400,12 @@ function io(e, t) {
|
|
|
400
400
|
hash: a = ""
|
|
401
401
|
} = typeof e == "string" ? Ge(e) : e;
|
|
402
402
|
return {
|
|
403
|
-
pathname: n ? n.startsWith("/") ? n :
|
|
404
|
-
search:
|
|
405
|
-
hash:
|
|
403
|
+
pathname: n ? n.startsWith("/") ? n : oo(n, t) : t,
|
|
404
|
+
search: lo(r),
|
|
405
|
+
hash: so(a)
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function oo(e, t) {
|
|
409
409
|
let n = t.replace(/\/+$/, "").split("/");
|
|
410
410
|
return e.split("/").forEach((a) => {
|
|
411
411
|
a === ".." ? n.length > 1 && n.pop() : a !== "." && n.push(a);
|
|
@@ -429,19 +429,19 @@ function Rn(e, t, n, r) {
|
|
|
429
429
|
if (o == null)
|
|
430
430
|
s = n;
|
|
431
431
|
else {
|
|
432
|
-
let
|
|
432
|
+
let d = t.length - 1;
|
|
433
433
|
if (!r && o.startsWith("..")) {
|
|
434
434
|
let m = o.split("/");
|
|
435
435
|
for (; m[0] === ".."; )
|
|
436
|
-
m.shift(),
|
|
436
|
+
m.shift(), d -= 1;
|
|
437
437
|
a.pathname = m.join("/");
|
|
438
438
|
}
|
|
439
|
-
s =
|
|
439
|
+
s = d >= 0 ? t[d] : "/";
|
|
440
440
|
}
|
|
441
|
-
let c =
|
|
441
|
+
let c = ao(a, s), p = o && o !== "/" && o.endsWith("/"), f = (l || o === ".") && n.endsWith("/");
|
|
442
442
|
return !c.pathname.endsWith("/") && (p || f) && (c.pathname += "/"), c;
|
|
443
443
|
}
|
|
444
|
-
const Ee = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
444
|
+
const Ee = (e) => e.join("/").replace(/\/\/+/g, "/"), io = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), lo = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, so = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
445
445
|
class rn {
|
|
446
446
|
constructor(t, n, r, a) {
|
|
447
447
|
a === void 0 && (a = !1), this.status = t, this.statusText = n || "", this.internal = a, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
@@ -450,7 +450,7 @@ class rn {
|
|
|
450
450
|
function cn(e) {
|
|
451
451
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
452
452
|
}
|
|
453
|
-
const Or = ["post", "put", "patch", "delete"],
|
|
453
|
+
const Or = ["post", "put", "patch", "delete"], co = new Set(Or), uo = ["get", ...Or], ho = new Set(uo), fo = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), po = /* @__PURE__ */ new Set([307, 308]), bn = {
|
|
454
454
|
state: "idle",
|
|
455
455
|
location: void 0,
|
|
456
456
|
formMethod: void 0,
|
|
@@ -459,7 +459,7 @@ const Or = ["post", "put", "patch", "delete"], ho = new Set(Or), fo = ["get", ..
|
|
|
459
459
|
formData: void 0,
|
|
460
460
|
json: void 0,
|
|
461
461
|
text: void 0
|
|
462
|
-
},
|
|
462
|
+
}, mo = {
|
|
463
463
|
state: "idle",
|
|
464
464
|
data: void 0,
|
|
465
465
|
formMethod: void 0,
|
|
@@ -473,10 +473,10 @@ const Or = ["post", "put", "patch", "delete"], ho = new Set(Or), fo = ["get", ..
|
|
|
473
473
|
proceed: void 0,
|
|
474
474
|
reset: void 0,
|
|
475
475
|
location: void 0
|
|
476
|
-
}, Tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
|
|
476
|
+
}, Tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, go = (e) => ({
|
|
477
477
|
hasErrorBoundary: !!e.hasErrorBoundary
|
|
478
478
|
}), Ur = "remix-router-transitions";
|
|
479
|
-
function
|
|
479
|
+
function vo(e) {
|
|
480
480
|
const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
|
|
481
481
|
T(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
|
|
482
482
|
let a;
|
|
@@ -484,27 +484,27 @@ function yo(e) {
|
|
|
484
484
|
a = e.mapRouteProperties;
|
|
485
485
|
else if (e.detectErrorBoundary) {
|
|
486
486
|
let u = e.detectErrorBoundary;
|
|
487
|
-
a = (
|
|
488
|
-
hasErrorBoundary: u(
|
|
487
|
+
a = (h) => ({
|
|
488
|
+
hasErrorBoundary: u(h)
|
|
489
489
|
});
|
|
490
490
|
} else
|
|
491
|
-
a =
|
|
492
|
-
let l = {}, o = Rt(e.routes, a, void 0, l), s, c = e.basename || "/", p = e.unstable_dataStrategy ||
|
|
491
|
+
a = go;
|
|
492
|
+
let l = {}, o = Rt(e.routes, a, void 0, l), s, c = e.basename || "/", p = e.unstable_dataStrategy || Co, f = e.unstable_patchRoutesOnNavigation, d = ee({
|
|
493
493
|
v7_fetcherPersist: !1,
|
|
494
494
|
v7_normalizeFormMethod: !1,
|
|
495
495
|
v7_partialHydration: !1,
|
|
496
496
|
v7_prependBasename: !1,
|
|
497
497
|
v7_relativeSplatPath: !1,
|
|
498
498
|
v7_skipActionErrorRevalidation: !1
|
|
499
|
-
}, e.future), m = null, b = /* @__PURE__ */ new Set(), C = 1e3,
|
|
499
|
+
}, e.future), m = null, b = /* @__PURE__ */ new Set(), C = 1e3, w = /* @__PURE__ */ new Set(), x = null, k = null, P = null, A = e.hydrationData != null, E = Xe(o, e.history.location, c), V = null;
|
|
500
500
|
if (E == null && !f) {
|
|
501
501
|
let u = de(404, {
|
|
502
502
|
pathname: e.history.location.pathname
|
|
503
503
|
}), {
|
|
504
|
-
matches:
|
|
504
|
+
matches: h,
|
|
505
505
|
route: v
|
|
506
506
|
} = mr(o);
|
|
507
|
-
E =
|
|
507
|
+
E = h, V = {
|
|
508
508
|
[v.id]: u
|
|
509
509
|
};
|
|
510
510
|
}
|
|
@@ -515,16 +515,16 @@ function yo(e) {
|
|
|
515
515
|
I = !1;
|
|
516
516
|
else if (!E.some((u) => u.route.loader))
|
|
517
517
|
I = !0;
|
|
518
|
-
else if (
|
|
519
|
-
let u = e.hydrationData ? e.hydrationData.loaderData : null,
|
|
520
|
-
if (
|
|
521
|
-
let y = E.findIndex((L) =>
|
|
518
|
+
else if (d.v7_partialHydration) {
|
|
519
|
+
let u = e.hydrationData ? e.hydrationData.loaderData : null, h = e.hydrationData ? e.hydrationData.errors : null, v = (y) => y.route.loader ? typeof y.route.loader == "function" && y.route.loader.hydrate === !0 ? !1 : u && u[y.route.id] !== void 0 || h && h[y.route.id] !== void 0 : !0;
|
|
520
|
+
if (h) {
|
|
521
|
+
let y = E.findIndex((L) => h[L.route.id] !== void 0);
|
|
522
522
|
I = E.slice(0, y + 1).every(v);
|
|
523
523
|
} else
|
|
524
524
|
I = E.every(v);
|
|
525
525
|
} else
|
|
526
526
|
I = e.hydrationData != null;
|
|
527
|
-
else if (I = !1, E = [],
|
|
527
|
+
else if (I = !1, E = [], d.v7_partialHydration) {
|
|
528
528
|
let u = It(null, o, e.history.location.pathname);
|
|
529
529
|
u.active && u.matches && (E = u.matches);
|
|
530
530
|
}
|
|
@@ -547,7 +547,7 @@ function yo(e) {
|
|
|
547
547
|
function ia() {
|
|
548
548
|
if (m = e.history.listen((u) => {
|
|
549
549
|
let {
|
|
550
|
-
action:
|
|
550
|
+
action: h,
|
|
551
551
|
location: v,
|
|
552
552
|
delta: y
|
|
553
553
|
} = u;
|
|
@@ -559,7 +559,7 @@ function yo(e) {
|
|
|
559
559
|
let L = Kn({
|
|
560
560
|
currentLocation: g.location,
|
|
561
561
|
nextLocation: v,
|
|
562
|
-
historyAction:
|
|
562
|
+
historyAction: h
|
|
563
563
|
});
|
|
564
564
|
if (L && y != null) {
|
|
565
565
|
fn = !0, e.history.go(y * -1), Ut(L, {
|
|
@@ -582,10 +582,10 @@ function yo(e) {
|
|
|
582
582
|
});
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
|
-
return Ye(
|
|
585
|
+
return Ye(h, v);
|
|
586
586
|
}), n) {
|
|
587
|
-
|
|
588
|
-
let u = () =>
|
|
587
|
+
Bo(t, F);
|
|
588
|
+
let u = () => Fo(t, F);
|
|
589
589
|
t.addEventListener("pagehide", u), G = () => t.removeEventListener("pagehide", u);
|
|
590
590
|
}
|
|
591
591
|
return g.initialized || Ye(oe.Pop, g.location, {
|
|
@@ -593,29 +593,29 @@ function yo(e) {
|
|
|
593
593
|
}), q;
|
|
594
594
|
}
|
|
595
595
|
function la() {
|
|
596
|
-
m && m(), G && G(), b.clear(), R && R.abort(), g.fetchers.forEach((u,
|
|
596
|
+
m && m(), G && G(), b.clear(), R && R.abort(), g.fetchers.forEach((u, h) => Ot(h)), g.blockers.forEach((u, h) => qn(h));
|
|
597
597
|
}
|
|
598
598
|
function sa(u) {
|
|
599
599
|
return b.add(u), () => b.delete(u);
|
|
600
600
|
}
|
|
601
|
-
function ue(u,
|
|
602
|
-
|
|
601
|
+
function ue(u, h) {
|
|
602
|
+
h === void 0 && (h = {}), g = ee({}, g, u);
|
|
603
603
|
let v = [], y = [];
|
|
604
|
-
|
|
604
|
+
d.v7_fetcherPersist && g.fetchers.forEach((L, N) => {
|
|
605
605
|
L.state === "idle" && (Ae.has(N) ? y.push(N) : v.push(N));
|
|
606
606
|
}), [...b].forEach((L) => L(g, {
|
|
607
607
|
deletedFetchers: y,
|
|
608
|
-
unstable_viewTransitionOpts:
|
|
609
|
-
unstable_flushSync:
|
|
610
|
-
})),
|
|
608
|
+
unstable_viewTransitionOpts: h.viewTransitionOpts,
|
|
609
|
+
unstable_flushSync: h.flushSync === !0
|
|
610
|
+
})), d.v7_fetcherPersist && (v.forEach((L) => g.fetchers.delete(L)), y.forEach((L) => Ot(L)));
|
|
611
611
|
}
|
|
612
|
-
function at(u,
|
|
612
|
+
function at(u, h, v) {
|
|
613
613
|
var y, L;
|
|
614
614
|
let {
|
|
615
615
|
flushSync: N
|
|
616
616
|
} = v === void 0 ? {} : v, O = g.actionData != null && g.navigation.formMethod != null && Se(g.navigation.formMethod) && g.navigation.state === "loading" && ((y = u.state) == null ? void 0 : y._isRedirect) !== !0, j;
|
|
617
|
-
|
|
618
|
-
let U =
|
|
617
|
+
h.actionData ? Object.keys(h.actionData).length > 0 ? j = h.actionData : j = null : O ? j = g.actionData : j = null;
|
|
618
|
+
let U = h.loaderData ? fr(g.loaderData, h.loaderData, h.matches || [], h.errors) : g.loaderData, B = g.blockers;
|
|
619
619
|
B.size > 0 && (B = new Map(B), B.forEach((Y, Q) => B.set(Q, xt)));
|
|
620
620
|
let H = D === !0 || g.navigation.formMethod != null && Se(g.navigation.formMethod) && ((L = u.state) == null ? void 0 : L._isRedirect) !== !0;
|
|
621
621
|
s && (o = s, s = void 0), he || _ === oe.Pop || (_ === oe.Push ? e.history.push(u, u.state) : _ === oe.Replace && e.history.replace(u, u.state));
|
|
@@ -636,7 +636,7 @@ function yo(e) {
|
|
|
636
636
|
nextLocation: u
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
ue(ee({},
|
|
639
|
+
ue(ee({}, h, {
|
|
640
640
|
actionData: j,
|
|
641
641
|
loaderData: U,
|
|
642
642
|
historyAction: _,
|
|
@@ -644,7 +644,7 @@ function yo(e) {
|
|
|
644
644
|
initialized: !0,
|
|
645
645
|
navigation: bn,
|
|
646
646
|
revalidation: "idle",
|
|
647
|
-
restoreScrollPosition: Xn(u,
|
|
647
|
+
restoreScrollPosition: Xn(u, h.matches || g.matches),
|
|
648
648
|
preventScrollReset: H,
|
|
649
649
|
blockers: B
|
|
650
650
|
}), {
|
|
@@ -652,20 +652,20 @@ function yo(e) {
|
|
|
652
652
|
flushSync: N === !0
|
|
653
653
|
}), _ = oe.Pop, D = !1, M = !1, he = !1, De = !1, Re = [];
|
|
654
654
|
}
|
|
655
|
-
async function Hn(u,
|
|
655
|
+
async function Hn(u, h) {
|
|
656
656
|
if (typeof u == "number") {
|
|
657
657
|
e.history.go(u);
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
|
-
let v = Pn(g.location, g.matches, c,
|
|
660
|
+
let v = Pn(g.location, g.matches, c, d.v7_prependBasename, u, d.v7_relativeSplatPath, h == null ? void 0 : h.fromRouteId, h == null ? void 0 : h.relative), {
|
|
661
661
|
path: y,
|
|
662
662
|
submission: L,
|
|
663
663
|
error: N
|
|
664
|
-
} = ir(
|
|
664
|
+
} = ir(d.v7_normalizeFormMethod, !1, v, h), O = g.location, j = Dt(g.location, y, h && h.state);
|
|
665
665
|
j = ee({}, j, e.history.encodeLocation(j));
|
|
666
|
-
let U =
|
|
666
|
+
let U = h && h.replace != null ? h.replace : void 0, B = oe.Push;
|
|
667
667
|
U === !0 ? B = oe.Replace : U === !1 || L != null && Se(L.formMethod) && L.formAction === g.location.pathname + g.location.search && (B = oe.Replace);
|
|
668
|
-
let H =
|
|
668
|
+
let H = h && "preventScrollReset" in h ? h.preventScrollReset === !0 : void 0, X = (h && h.unstable_flushSync) === !0, Y = Kn({
|
|
669
669
|
currentLocation: O,
|
|
670
670
|
nextLocation: j,
|
|
671
671
|
historyAction: B
|
|
@@ -680,7 +680,7 @@ function yo(e) {
|
|
|
680
680
|
proceed: void 0,
|
|
681
681
|
reset: void 0,
|
|
682
682
|
location: j
|
|
683
|
-
}), Hn(u,
|
|
683
|
+
}), Hn(u, h);
|
|
684
684
|
},
|
|
685
685
|
reset() {
|
|
686
686
|
let Q = new Map(g.blockers);
|
|
@@ -697,8 +697,8 @@ function yo(e) {
|
|
|
697
697
|
// render at the right error boundary after we match routes
|
|
698
698
|
pendingError: N,
|
|
699
699
|
preventScrollReset: H,
|
|
700
|
-
replace:
|
|
701
|
-
enableViewTransition:
|
|
700
|
+
replace: h && h.replace,
|
|
701
|
+
enableViewTransition: h && h.unstable_viewTransition,
|
|
702
702
|
flushSync: X
|
|
703
703
|
});
|
|
704
704
|
}
|
|
@@ -717,16 +717,16 @@ function yo(e) {
|
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
|
-
async function Ye(u,
|
|
720
|
+
async function Ye(u, h, v) {
|
|
721
721
|
R && R.abort(), R = null, _ = u, he = (v && v.startUninterruptedRevalidation) === !0, ya(g.location, g.matches), D = (v && v.preventScrollReset) === !0, M = (v && v.enableViewTransition) === !0;
|
|
722
|
-
let y = s || o, L = v && v.overrideNavigation, N = Xe(y,
|
|
722
|
+
let y = s || o, L = v && v.overrideNavigation, N = Xe(y, h, c), O = (v && v.flushSync) === !0, j = It(N, y, h.pathname);
|
|
723
723
|
if (j.active && j.matches && (N = j.matches), !N) {
|
|
724
724
|
let {
|
|
725
725
|
error: K,
|
|
726
726
|
notFoundMatches: se,
|
|
727
727
|
route: ae
|
|
728
|
-
} = mn(
|
|
729
|
-
at(
|
|
728
|
+
} = mn(h.pathname);
|
|
729
|
+
at(h, {
|
|
730
730
|
matches: se,
|
|
731
731
|
loaderData: {},
|
|
732
732
|
errors: {
|
|
@@ -737,8 +737,8 @@ function yo(e) {
|
|
|
737
737
|
});
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
|
-
if (g.initialized && !De &&
|
|
741
|
-
at(
|
|
740
|
+
if (g.initialized && !De && Lo(g.location, h) && !(v && v.submission && Se(v.submission.formMethod))) {
|
|
741
|
+
at(h, {
|
|
742
742
|
matches: N
|
|
743
743
|
}, {
|
|
744
744
|
flushSync: O
|
|
@@ -746,14 +746,14 @@ function yo(e) {
|
|
|
746
746
|
return;
|
|
747
747
|
}
|
|
748
748
|
R = new AbortController();
|
|
749
|
-
let U = st(e.history,
|
|
749
|
+
let U = st(e.history, h, R.signal, v && v.submission), B;
|
|
750
750
|
if (v && v.pendingError)
|
|
751
751
|
B = [pt(N).route.id, {
|
|
752
752
|
type: J.error,
|
|
753
753
|
error: v.pendingError
|
|
754
754
|
}];
|
|
755
755
|
else if (v && v.submission && Se(v.submission.formMethod)) {
|
|
756
|
-
let K = await ua(U,
|
|
756
|
+
let K = await ua(U, h, v.submission, N, j.active, {
|
|
757
757
|
replace: v.replace,
|
|
758
758
|
flushSync: O
|
|
759
759
|
});
|
|
@@ -762,7 +762,7 @@ function yo(e) {
|
|
|
762
762
|
if (K.pendingActionResult) {
|
|
763
763
|
let [se, ae] = K.pendingActionResult;
|
|
764
764
|
if (pe(ae) && cn(ae.error) && ae.error.status === 404) {
|
|
765
|
-
R = null, at(
|
|
765
|
+
R = null, at(h, {
|
|
766
766
|
matches: K.matches,
|
|
767
767
|
loaderData: {},
|
|
768
768
|
errors: {
|
|
@@ -772,30 +772,30 @@ function yo(e) {
|
|
|
772
772
|
return;
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
N = K.matches || N, B = K.pendingActionResult, L = yn(
|
|
775
|
+
N = K.matches || N, B = K.pendingActionResult, L = yn(h, v.submission), O = !1, j.active = !1, U = st(e.history, U.url, U.signal);
|
|
776
776
|
}
|
|
777
777
|
let {
|
|
778
778
|
shortCircuited: H,
|
|
779
779
|
matches: X,
|
|
780
780
|
loaderData: Y,
|
|
781
781
|
errors: Q
|
|
782
|
-
} = await da(U,
|
|
783
|
-
H || (R = null, at(
|
|
782
|
+
} = await da(U, h, N, j.active, L, v && v.submission, v && v.fetcherSubmission, v && v.replace, v && v.initialHydration === !0, O, B);
|
|
783
|
+
H || (R = null, at(h, ee({
|
|
784
784
|
matches: X || N
|
|
785
785
|
}, pr(B), {
|
|
786
786
|
loaderData: Y,
|
|
787
787
|
errors: Q
|
|
788
788
|
})));
|
|
789
789
|
}
|
|
790
|
-
async function ua(u,
|
|
790
|
+
async function ua(u, h, v, y, L, N) {
|
|
791
791
|
N === void 0 && (N = {}), pn();
|
|
792
|
-
let O =
|
|
792
|
+
let O = To(h, v);
|
|
793
793
|
if (ue({
|
|
794
794
|
navigation: O
|
|
795
795
|
}, {
|
|
796
796
|
flushSync: N.flushSync === !0
|
|
797
797
|
}), L) {
|
|
798
|
-
let B = await $t(y,
|
|
798
|
+
let B = await $t(y, h.pathname, u.signal);
|
|
799
799
|
if (B.type === "aborted")
|
|
800
800
|
return {
|
|
801
801
|
shortCircuited: !0
|
|
@@ -804,7 +804,7 @@ function yo(e) {
|
|
|
804
804
|
let {
|
|
805
805
|
boundaryId: H,
|
|
806
806
|
error: X
|
|
807
|
-
} = Ht(
|
|
807
|
+
} = Ht(h.pathname, B);
|
|
808
808
|
return {
|
|
809
809
|
matches: B.partialMatches,
|
|
810
810
|
pendingActionResult: [H, {
|
|
@@ -819,7 +819,7 @@ function yo(e) {
|
|
|
819
819
|
notFoundMatches: H,
|
|
820
820
|
error: X,
|
|
821
821
|
route: Y
|
|
822
|
-
} = mn(
|
|
822
|
+
} = mn(h.pathname);
|
|
823
823
|
return {
|
|
824
824
|
matches: H,
|
|
825
825
|
pendingActionResult: [Y.id, {
|
|
@@ -829,13 +829,13 @@ function yo(e) {
|
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
let j, U = Et(y,
|
|
832
|
+
let j, U = Et(y, h);
|
|
833
833
|
if (!U.route.action && !U.route.lazy)
|
|
834
834
|
j = {
|
|
835
835
|
type: J.error,
|
|
836
836
|
error: de(405, {
|
|
837
837
|
method: u.method,
|
|
838
|
-
pathname:
|
|
838
|
+
pathname: h.pathname,
|
|
839
839
|
routeId: U.route.id
|
|
840
840
|
})
|
|
841
841
|
};
|
|
@@ -868,8 +868,8 @@ function yo(e) {
|
|
|
868
868
|
pendingActionResult: [U.route.id, j]
|
|
869
869
|
};
|
|
870
870
|
}
|
|
871
|
-
async function da(u,
|
|
872
|
-
let X = L || yn(
|
|
871
|
+
async function da(u, h, v, y, L, N, O, j, U, B, H) {
|
|
872
|
+
let X = L || yn(h, N), Y = N || O || yr(X), Q = !he && (!d.v7_partialHydration || !U);
|
|
873
873
|
if (y) {
|
|
874
874
|
if (Q) {
|
|
875
875
|
let te = In(H);
|
|
@@ -881,7 +881,7 @@ function yo(e) {
|
|
|
881
881
|
flushSync: B
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
let $ = await $t(v,
|
|
884
|
+
let $ = await $t(v, h.pathname, u.signal);
|
|
885
885
|
if ($.type === "aborted")
|
|
886
886
|
return {
|
|
887
887
|
shortCircuited: !0
|
|
@@ -890,7 +890,7 @@ function yo(e) {
|
|
|
890
890
|
let {
|
|
891
891
|
boundaryId: te,
|
|
892
892
|
error: fe
|
|
893
|
-
} = Ht(
|
|
893
|
+
} = Ht(h.pathname, $);
|
|
894
894
|
return {
|
|
895
895
|
matches: $.partialMatches,
|
|
896
896
|
loaderData: {},
|
|
@@ -905,7 +905,7 @@ function yo(e) {
|
|
|
905
905
|
error: te,
|
|
906
906
|
notFoundMatches: fe,
|
|
907
907
|
route: Z
|
|
908
|
-
} = mn(
|
|
908
|
+
} = mn(h.pathname);
|
|
909
909
|
return {
|
|
910
910
|
matches: fe,
|
|
911
911
|
loaderData: {},
|
|
@@ -915,10 +915,10 @@ function yo(e) {
|
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
let K = s || o, [se, ae] = lr(e.history, g, v, Y,
|
|
918
|
+
let K = s || o, [se, ae] = lr(e.history, g, v, Y, h, d.v7_partialHydration && U === !0, d.v7_skipActionErrorRevalidation, De, Re, Ft, Ae, rt, Te, K, c, H);
|
|
919
919
|
if (gn(($) => !(v && v.some((te) => te.route.id === $)) || se && se.some((te) => te.route.id === $)), bt = ++Mt, se.length === 0 && ae.length === 0) {
|
|
920
920
|
let $ = Wn();
|
|
921
|
-
return at(
|
|
921
|
+
return at(h, ee({
|
|
922
922
|
matches: v,
|
|
923
923
|
loaderData: {},
|
|
924
924
|
// Commit pending error if we're short circuiting
|
|
@@ -978,7 +978,7 @@ function yo(e) {
|
|
|
978
978
|
$.subscribe((fe) => {
|
|
979
979
|
(fe || $.done) && qe.delete(te);
|
|
980
980
|
});
|
|
981
|
-
}),
|
|
981
|
+
}), d.v7_partialHydration && U && g.errors && Object.entries(g.errors).filter(($) => {
|
|
982
982
|
let [te] = $;
|
|
983
983
|
return !se.some((fe) => fe.route.id === te);
|
|
984
984
|
}).forEach(($) => {
|
|
@@ -1005,18 +1005,18 @@ function yo(e) {
|
|
|
1005
1005
|
return Object.keys(g.actionData).length === 0 ? null : g.actionData;
|
|
1006
1006
|
}
|
|
1007
1007
|
function ha(u) {
|
|
1008
|
-
return u.forEach((
|
|
1009
|
-
let v = g.fetchers.get(
|
|
1010
|
-
g.fetchers.set(
|
|
1008
|
+
return u.forEach((h) => {
|
|
1009
|
+
let v = g.fetchers.get(h.key), y = _t(void 0, v ? v.data : void 0);
|
|
1010
|
+
g.fetchers.set(h.key, y);
|
|
1011
1011
|
}), new Map(g.fetchers);
|
|
1012
1012
|
}
|
|
1013
|
-
function fa(u,
|
|
1013
|
+
function fa(u, h, v, y) {
|
|
1014
1014
|
if (r)
|
|
1015
1015
|
throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
|
|
1016
1016
|
re.has(u) && Ie(u);
|
|
1017
|
-
let L = (y && y.unstable_flushSync) === !0, N = s || o, O = Pn(g.location, g.matches, c,
|
|
1017
|
+
let L = (y && y.unstable_flushSync) === !0, N = s || o, O = Pn(g.location, g.matches, c, d.v7_prependBasename, v, d.v7_relativeSplatPath, h, y == null ? void 0 : y.relative), j = Xe(N, O, c), U = It(j, N, O);
|
|
1018
1018
|
if (U.active && U.matches && (j = U.matches), !j) {
|
|
1019
|
-
Be(u,
|
|
1019
|
+
Be(u, h, de(404, {
|
|
1020
1020
|
pathname: O
|
|
1021
1021
|
}), {
|
|
1022
1022
|
flushSync: L
|
|
@@ -1027,33 +1027,33 @@ function yo(e) {
|
|
|
1027
1027
|
path: B,
|
|
1028
1028
|
submission: H,
|
|
1029
1029
|
error: X
|
|
1030
|
-
} = ir(
|
|
1030
|
+
} = ir(d.v7_normalizeFormMethod, !0, O, y);
|
|
1031
1031
|
if (X) {
|
|
1032
|
-
Be(u,
|
|
1032
|
+
Be(u, h, X, {
|
|
1033
1033
|
flushSync: L
|
|
1034
1034
|
});
|
|
1035
1035
|
return;
|
|
1036
1036
|
}
|
|
1037
1037
|
let Y = Et(j, B);
|
|
1038
1038
|
if (D = (y && y.preventScrollReset) === !0, H && Se(H.formMethod)) {
|
|
1039
|
-
pa(u,
|
|
1039
|
+
pa(u, h, B, Y, j, U.active, L, H);
|
|
1040
1040
|
return;
|
|
1041
1041
|
}
|
|
1042
1042
|
rt.set(u, {
|
|
1043
|
-
routeId:
|
|
1043
|
+
routeId: h,
|
|
1044
1044
|
path: B
|
|
1045
|
-
}), ma(u,
|
|
1045
|
+
}), ma(u, h, B, Y, j, U.active, L, H);
|
|
1046
1046
|
}
|
|
1047
|
-
async function pa(u,
|
|
1047
|
+
async function pa(u, h, v, y, L, N, O, j) {
|
|
1048
1048
|
pn(), rt.delete(u);
|
|
1049
1049
|
function U(Z) {
|
|
1050
1050
|
if (!Z.route.action && !Z.route.lazy) {
|
|
1051
1051
|
let Fe = de(405, {
|
|
1052
1052
|
method: j.formMethod,
|
|
1053
1053
|
pathname: v,
|
|
1054
|
-
routeId:
|
|
1054
|
+
routeId: h
|
|
1055
1055
|
});
|
|
1056
|
-
return Be(u,
|
|
1056
|
+
return Be(u, h, Fe, {
|
|
1057
1057
|
flushSync: O
|
|
1058
1058
|
}), !0;
|
|
1059
1059
|
}
|
|
@@ -1062,7 +1062,7 @@ function yo(e) {
|
|
|
1062
1062
|
if (!N && U(y))
|
|
1063
1063
|
return;
|
|
1064
1064
|
let B = g.fetchers.get(u);
|
|
1065
|
-
He(u,
|
|
1065
|
+
He(u, Ao(j, B), {
|
|
1066
1066
|
flushSync: O
|
|
1067
1067
|
});
|
|
1068
1068
|
let H = new AbortController(), X = st(e.history, v, H.signal, j);
|
|
@@ -1074,7 +1074,7 @@ function yo(e) {
|
|
|
1074
1074
|
let {
|
|
1075
1075
|
error: Fe
|
|
1076
1076
|
} = Ht(v, Z);
|
|
1077
|
-
Be(u,
|
|
1077
|
+
Be(u, h, Fe, {
|
|
1078
1078
|
flushSync: O
|
|
1079
1079
|
});
|
|
1080
1080
|
return;
|
|
@@ -1082,7 +1082,7 @@ function yo(e) {
|
|
|
1082
1082
|
if (L = Z.matches, y = Et(L, v), U(y))
|
|
1083
1083
|
return;
|
|
1084
1084
|
} else {
|
|
1085
|
-
Be(u,
|
|
1085
|
+
Be(u, h, de(404, {
|
|
1086
1086
|
pathname: v
|
|
1087
1087
|
}), {
|
|
1088
1088
|
flushSync: O
|
|
@@ -1096,7 +1096,7 @@ function yo(e) {
|
|
|
1096
1096
|
re.get(u) === H && re.delete(u);
|
|
1097
1097
|
return;
|
|
1098
1098
|
}
|
|
1099
|
-
if (
|
|
1099
|
+
if (d.v7_fetcherPersist && Ae.has(u)) {
|
|
1100
1100
|
if (Qe(K) || pe(K)) {
|
|
1101
1101
|
He(u, ze(void 0));
|
|
1102
1102
|
return;
|
|
@@ -1111,7 +1111,7 @@ function yo(e) {
|
|
|
1111
1111
|
fetcherSubmission: j
|
|
1112
1112
|
});
|
|
1113
1113
|
if (pe(K)) {
|
|
1114
|
-
Be(u,
|
|
1114
|
+
Be(u, h, K.error);
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
@@ -1125,7 +1125,7 @@ function yo(e) {
|
|
|
1125
1125
|
nt.set(u, ot);
|
|
1126
1126
|
let it = _t(j, K.data);
|
|
1127
1127
|
g.fetchers.set(u, it);
|
|
1128
|
-
let [lt, _e] = lr(e.history, g, $e, j, se, !1,
|
|
1128
|
+
let [lt, _e] = lr(e.history, g, $e, j, se, !1, d.v7_skipActionErrorRevalidation, De, Re, Ft, Ae, rt, Te, Ct, c, [y.route.id, K]);
|
|
1129
1129
|
_e.filter((Z) => Z.key !== u).forEach((Z) => {
|
|
1130
1130
|
let Fe = Z.key, Qn = g.fetchers.get(Fe), Ca = _t(void 0, Qn ? Qn.data : void 0);
|
|
1131
1131
|
g.fetchers.set(Fe, Ca), re.has(Fe) && Ie(Fe), Z.controller && re.set(Fe, Z.controller);
|
|
@@ -1168,7 +1168,7 @@ function yo(e) {
|
|
|
1168
1168
|
fetchers: new Map(g.fetchers)
|
|
1169
1169
|
}), De = !1);
|
|
1170
1170
|
}
|
|
1171
|
-
async function ma(u,
|
|
1171
|
+
async function ma(u, h, v, y, L, N, O, j) {
|
|
1172
1172
|
let U = g.fetchers.get(u);
|
|
1173
1173
|
He(u, _t(j, U ? U.data : void 0), {
|
|
1174
1174
|
flushSync: O
|
|
@@ -1182,14 +1182,14 @@ function yo(e) {
|
|
|
1182
1182
|
let {
|
|
1183
1183
|
error: se
|
|
1184
1184
|
} = Ht(v, K);
|
|
1185
|
-
Be(u,
|
|
1185
|
+
Be(u, h, se, {
|
|
1186
1186
|
flushSync: O
|
|
1187
1187
|
});
|
|
1188
1188
|
return;
|
|
1189
1189
|
} else if (K.matches)
|
|
1190
1190
|
L = K.matches, y = Et(L, v);
|
|
1191
1191
|
else {
|
|
1192
|
-
Be(u,
|
|
1192
|
+
Be(u, h, de(404, {
|
|
1193
1193
|
pathname: v
|
|
1194
1194
|
}), {
|
|
1195
1195
|
flushSync: O
|
|
@@ -1213,27 +1213,27 @@ function yo(e) {
|
|
|
1213
1213
|
return;
|
|
1214
1214
|
}
|
|
1215
1215
|
if (pe(Q)) {
|
|
1216
|
-
Be(u,
|
|
1216
|
+
Be(u, h, Q.error);
|
|
1217
1217
|
return;
|
|
1218
1218
|
}
|
|
1219
1219
|
T(!Je(Q), "Unhandled fetcher deferred data"), He(u, ze(Q.data));
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
async function St(u,
|
|
1222
|
+
async function St(u, h, v) {
|
|
1223
1223
|
let {
|
|
1224
1224
|
submission: y,
|
|
1225
1225
|
fetcherSubmission: L,
|
|
1226
1226
|
replace: N
|
|
1227
1227
|
} = v === void 0 ? {} : v;
|
|
1228
|
-
|
|
1229
|
-
let O =
|
|
1228
|
+
h.response.headers.has("X-Remix-Revalidate") && (De = !0);
|
|
1229
|
+
let O = h.response.headers.get("Location");
|
|
1230
1230
|
T(O, "Expected a Location header on the redirect Response"), O = ur(O, new URL(u.url), c);
|
|
1231
1231
|
let j = Dt(g.location, O, {
|
|
1232
1232
|
_isRedirect: !0
|
|
1233
1233
|
});
|
|
1234
1234
|
if (n) {
|
|
1235
1235
|
let Q = !1;
|
|
1236
|
-
if (
|
|
1236
|
+
if (h.response.headers.has("X-Remix-Reload-Document"))
|
|
1237
1237
|
Q = !0;
|
|
1238
1238
|
else if (Tn.test(O)) {
|
|
1239
1239
|
const K = e.history.createURL(O);
|
|
@@ -1247,14 +1247,14 @@ function yo(e) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
R = null;
|
|
1250
|
-
let U = N === !0 ||
|
|
1250
|
+
let U = N === !0 || h.response.headers.has("X-Remix-Replace") ? oe.Replace : oe.Push, {
|
|
1251
1251
|
formMethod: B,
|
|
1252
1252
|
formAction: H,
|
|
1253
1253
|
formEncType: X
|
|
1254
1254
|
} = g.navigation;
|
|
1255
1255
|
!y && !L && B && H && X && (y = yr(g.navigation));
|
|
1256
1256
|
let Y = y || L;
|
|
1257
|
-
if (
|
|
1257
|
+
if (po.has(h.response.status) && Y && Se(Y.formMethod))
|
|
1258
1258
|
await Ye(U, j, {
|
|
1259
1259
|
submission: ee({}, Y, {
|
|
1260
1260
|
formAction: O
|
|
@@ -1273,18 +1273,18 @@ function yo(e) {
|
|
|
1273
1273
|
});
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
async function wt(u,
|
|
1276
|
+
async function wt(u, h, v, y) {
|
|
1277
1277
|
try {
|
|
1278
|
-
let L = await
|
|
1278
|
+
let L = await xo(p, u, h, v, y, l, a);
|
|
1279
1279
|
return await Promise.all(L.map((N, O) => {
|
|
1280
|
-
if (
|
|
1280
|
+
if (No(N)) {
|
|
1281
1281
|
let j = N.result;
|
|
1282
1282
|
return {
|
|
1283
1283
|
type: J.redirect,
|
|
1284
|
-
response:
|
|
1284
|
+
response: jo(j, h, v[O].route.id, y, c, d.v7_relativeSplatPath)
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
return
|
|
1287
|
+
return ko(N);
|
|
1288
1288
|
}));
|
|
1289
1289
|
} catch (L) {
|
|
1290
1290
|
return v.map(() => ({
|
|
@@ -1293,8 +1293,8 @@ function yo(e) {
|
|
|
1293
1293
|
}));
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
async function $n(u,
|
|
1297
|
-
let [N, ...O] = await Promise.all([v.length ? wt("loader", L, v,
|
|
1296
|
+
async function $n(u, h, v, y, L) {
|
|
1297
|
+
let [N, ...O] = await Promise.all([v.length ? wt("loader", L, v, h) : [], ...y.map((j) => {
|
|
1298
1298
|
if (j.matches && j.match && j.controller) {
|
|
1299
1299
|
let U = st(e.history, j.path, j.controller.signal);
|
|
1300
1300
|
return wt("loader", U, [j.match], j.matches).then((B) => B[0]);
|
|
@@ -1312,20 +1312,20 @@ function yo(e) {
|
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
1314
1314
|
function pn() {
|
|
1315
|
-
De = !0, Re.push(...gn()), rt.forEach((u,
|
|
1316
|
-
re.has(
|
|
1315
|
+
De = !0, Re.push(...gn()), rt.forEach((u, h) => {
|
|
1316
|
+
re.has(h) && (Ft.add(h), Ie(h));
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
|
-
function He(u,
|
|
1320
|
-
v === void 0 && (v = {}), g.fetchers.set(u,
|
|
1319
|
+
function He(u, h, v) {
|
|
1320
|
+
v === void 0 && (v = {}), g.fetchers.set(u, h), ue({
|
|
1321
1321
|
fetchers: new Map(g.fetchers)
|
|
1322
1322
|
}, {
|
|
1323
1323
|
flushSync: (v && v.flushSync) === !0
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
|
-
function Be(u,
|
|
1326
|
+
function Be(u, h, v, y) {
|
|
1327
1327
|
y === void 0 && (y = {});
|
|
1328
|
-
let L = pt(g.matches,
|
|
1328
|
+
let L = pt(g.matches, h);
|
|
1329
1329
|
Ot(u), ue({
|
|
1330
1330
|
errors: {
|
|
1331
1331
|
[L.route.id]: v
|
|
@@ -1336,16 +1336,16 @@ function yo(e) {
|
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
1338
|
function zn(u) {
|
|
1339
|
-
return
|
|
1339
|
+
return d.v7_fetcherPersist && (yt.set(u, (yt.get(u) || 0) + 1), Ae.has(u) && Ae.delete(u)), g.fetchers.get(u) || mo;
|
|
1340
1340
|
}
|
|
1341
1341
|
function Ot(u) {
|
|
1342
|
-
let
|
|
1343
|
-
re.has(u) && !(
|
|
1342
|
+
let h = g.fetchers.get(u);
|
|
1343
|
+
re.has(u) && !(h && h.state === "loading" && nt.has(u)) && Ie(u), rt.delete(u), nt.delete(u), Te.delete(u), Ae.delete(u), Ft.delete(u), g.fetchers.delete(u);
|
|
1344
1344
|
}
|
|
1345
1345
|
function ga(u) {
|
|
1346
|
-
if (
|
|
1347
|
-
let
|
|
1348
|
-
|
|
1346
|
+
if (d.v7_fetcherPersist) {
|
|
1347
|
+
let h = (yt.get(u) || 0) - 1;
|
|
1348
|
+
h <= 0 ? (yt.delete(u), Ae.add(u)) : yt.set(u, h);
|
|
1349
1349
|
} else
|
|
1350
1350
|
Ot(u);
|
|
1351
1351
|
ue({
|
|
@@ -1353,50 +1353,50 @@ function yo(e) {
|
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
1355
|
function Ie(u) {
|
|
1356
|
-
let
|
|
1357
|
-
T(
|
|
1356
|
+
let h = re.get(u);
|
|
1357
|
+
T(h, "Expected fetch controller: " + u), h.abort(), re.delete(u);
|
|
1358
1358
|
}
|
|
1359
1359
|
function Vn(u) {
|
|
1360
|
-
for (let
|
|
1361
|
-
let v = zn(
|
|
1362
|
-
g.fetchers.set(
|
|
1360
|
+
for (let h of u) {
|
|
1361
|
+
let v = zn(h), y = ze(v.data);
|
|
1362
|
+
g.fetchers.set(h, y);
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
function Wn() {
|
|
1366
|
-
let u = [],
|
|
1366
|
+
let u = [], h = !1;
|
|
1367
1367
|
for (let v of Te) {
|
|
1368
1368
|
let y = g.fetchers.get(v);
|
|
1369
|
-
T(y, "Expected fetcher: " + v), y.state === "loading" && (Te.delete(v), u.push(v),
|
|
1369
|
+
T(y, "Expected fetcher: " + v), y.state === "loading" && (Te.delete(v), u.push(v), h = !0);
|
|
1370
1370
|
}
|
|
1371
|
-
return Vn(u),
|
|
1371
|
+
return Vn(u), h;
|
|
1372
1372
|
}
|
|
1373
1373
|
function Gn(u) {
|
|
1374
|
-
let
|
|
1374
|
+
let h = [];
|
|
1375
1375
|
for (let [v, y] of nt)
|
|
1376
1376
|
if (y < u) {
|
|
1377
1377
|
let L = g.fetchers.get(v);
|
|
1378
|
-
T(L, "Expected fetcher: " + v), L.state === "loading" && (Ie(v), nt.delete(v),
|
|
1378
|
+
T(L, "Expected fetcher: " + v), L.state === "loading" && (Ie(v), nt.delete(v), h.push(v));
|
|
1379
1379
|
}
|
|
1380
|
-
return Vn(
|
|
1380
|
+
return Vn(h), h.length > 0;
|
|
1381
1381
|
}
|
|
1382
|
-
function va(u,
|
|
1382
|
+
function va(u, h) {
|
|
1383
1383
|
let v = g.blockers.get(u) || xt;
|
|
1384
|
-
return Ke.get(u) !==
|
|
1384
|
+
return Ke.get(u) !== h && Ke.set(u, h), v;
|
|
1385
1385
|
}
|
|
1386
1386
|
function qn(u) {
|
|
1387
1387
|
g.blockers.delete(u), Ke.delete(u);
|
|
1388
1388
|
}
|
|
1389
|
-
function Ut(u,
|
|
1389
|
+
function Ut(u, h) {
|
|
1390
1390
|
let v = g.blockers.get(u) || xt;
|
|
1391
|
-
T(v.state === "unblocked" &&
|
|
1391
|
+
T(v.state === "unblocked" && h.state === "blocked" || v.state === "blocked" && h.state === "blocked" || v.state === "blocked" && h.state === "proceeding" || v.state === "blocked" && h.state === "unblocked" || v.state === "proceeding" && h.state === "unblocked", "Invalid blocker state transition: " + v.state + " -> " + h.state);
|
|
1392
1392
|
let y = new Map(g.blockers);
|
|
1393
|
-
y.set(u,
|
|
1393
|
+
y.set(u, h), ue({
|
|
1394
1394
|
blockers: y
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
function Kn(u) {
|
|
1398
1398
|
let {
|
|
1399
|
-
currentLocation:
|
|
1399
|
+
currentLocation: h,
|
|
1400
1400
|
nextLocation: v,
|
|
1401
1401
|
historyAction: y
|
|
1402
1402
|
} = u;
|
|
@@ -1405,14 +1405,14 @@ function yo(e) {
|
|
|
1405
1405
|
Ke.size > 1 && le(!1, "A router only supports one blocker at a time");
|
|
1406
1406
|
let L = Array.from(Ke.entries()), [N, O] = L[L.length - 1], j = g.blockers.get(N);
|
|
1407
1407
|
if (!(j && j.state === "proceeding") && O({
|
|
1408
|
-
currentLocation:
|
|
1408
|
+
currentLocation: h,
|
|
1409
1409
|
nextLocation: v,
|
|
1410
1410
|
historyAction: y
|
|
1411
1411
|
}))
|
|
1412
1412
|
return N;
|
|
1413
1413
|
}
|
|
1414
1414
|
function mn(u) {
|
|
1415
|
-
let
|
|
1415
|
+
let h = de(404, {
|
|
1416
1416
|
pathname: u
|
|
1417
1417
|
}), v = s || o, {
|
|
1418
1418
|
matches: y,
|
|
@@ -1421,27 +1421,27 @@ function yo(e) {
|
|
|
1421
1421
|
return gn(), {
|
|
1422
1422
|
notFoundMatches: y,
|
|
1423
1423
|
route: L,
|
|
1424
|
-
error:
|
|
1424
|
+
error: h
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
function Ht(u,
|
|
1427
|
+
function Ht(u, h) {
|
|
1428
1428
|
return {
|
|
1429
|
-
boundaryId: pt(
|
|
1429
|
+
boundaryId: pt(h.partialMatches).route.id,
|
|
1430
1430
|
error: de(400, {
|
|
1431
1431
|
type: "route-discovery",
|
|
1432
1432
|
pathname: u,
|
|
1433
|
-
message:
|
|
1433
|
+
message: h.error != null && "message" in h.error ? h.error : String(h.error)
|
|
1434
1434
|
})
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
1437
1437
|
function gn(u) {
|
|
1438
|
-
let
|
|
1438
|
+
let h = [];
|
|
1439
1439
|
return qe.forEach((v, y) => {
|
|
1440
|
-
(!u || u(y)) && (v.cancel(),
|
|
1441
|
-
}),
|
|
1440
|
+
(!u || u(y)) && (v.cancel(), h.push(y), qe.delete(y));
|
|
1441
|
+
}), h;
|
|
1442
1442
|
}
|
|
1443
|
-
function ba(u,
|
|
1444
|
-
if (x = u, P =
|
|
1443
|
+
function ba(u, h, v) {
|
|
1444
|
+
if (x = u, P = h, k = v || null, !A && g.navigation === bn) {
|
|
1445
1445
|
A = !0;
|
|
1446
1446
|
let y = Xn(g.location, g.matches);
|
|
1447
1447
|
y != null && ue({
|
|
@@ -1452,26 +1452,26 @@ function yo(e) {
|
|
|
1452
1452
|
x = null, P = null, k = null;
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
|
-
function Yn(u,
|
|
1456
|
-
return k && k(u,
|
|
1455
|
+
function Yn(u, h) {
|
|
1456
|
+
return k && k(u, h.map((y) => Wa(y, g.loaderData))) || u.key;
|
|
1457
1457
|
}
|
|
1458
|
-
function ya(u,
|
|
1458
|
+
function ya(u, h) {
|
|
1459
1459
|
if (x && P) {
|
|
1460
|
-
let v = Yn(u,
|
|
1460
|
+
let v = Yn(u, h);
|
|
1461
1461
|
x[v] = P();
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
|
-
function Xn(u,
|
|
1464
|
+
function Xn(u, h) {
|
|
1465
1465
|
if (x) {
|
|
1466
|
-
let v = Yn(u,
|
|
1466
|
+
let v = Yn(u, h), y = x[v];
|
|
1467
1467
|
if (typeof y == "number")
|
|
1468
1468
|
return y;
|
|
1469
1469
|
}
|
|
1470
1470
|
return null;
|
|
1471
1471
|
}
|
|
1472
|
-
function It(u,
|
|
1472
|
+
function It(u, h, v) {
|
|
1473
1473
|
if (f) {
|
|
1474
|
-
if (
|
|
1474
|
+
if (w.has(v))
|
|
1475
1475
|
return {
|
|
1476
1476
|
active: !1,
|
|
1477
1477
|
matches: u
|
|
@@ -1480,12 +1480,12 @@ function yo(e) {
|
|
|
1480
1480
|
if (Object.keys(u[0].params).length > 0)
|
|
1481
1481
|
return {
|
|
1482
1482
|
active: !0,
|
|
1483
|
-
matches: Qt(
|
|
1483
|
+
matches: Qt(h, v, c, !0)
|
|
1484
1484
|
};
|
|
1485
1485
|
} else
|
|
1486
1486
|
return {
|
|
1487
1487
|
active: !0,
|
|
1488
|
-
matches: Qt(
|
|
1488
|
+
matches: Qt(h, v, c, !0) || []
|
|
1489
1489
|
};
|
|
1490
1490
|
}
|
|
1491
1491
|
return {
|
|
@@ -1493,12 +1493,12 @@ function yo(e) {
|
|
|
1493
1493
|
matches: null
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
|
-
async function $t(u,
|
|
1496
|
+
async function $t(u, h, v) {
|
|
1497
1497
|
let y = u;
|
|
1498
1498
|
for (; ; ) {
|
|
1499
1499
|
let L = s == null, N = s || o;
|
|
1500
1500
|
try {
|
|
1501
|
-
await
|
|
1501
|
+
await wo(f, h, y, N, l, a, oa, v);
|
|
1502
1502
|
} catch (U) {
|
|
1503
1503
|
return {
|
|
1504
1504
|
type: "error",
|
|
@@ -1512,41 +1512,41 @@ function yo(e) {
|
|
|
1512
1512
|
return {
|
|
1513
1513
|
type: "aborted"
|
|
1514
1514
|
};
|
|
1515
|
-
let O = Xe(N,
|
|
1515
|
+
let O = Xe(N, h, c);
|
|
1516
1516
|
if (O)
|
|
1517
|
-
return Jn(
|
|
1517
|
+
return Jn(h, w), {
|
|
1518
1518
|
type: "success",
|
|
1519
1519
|
matches: O
|
|
1520
1520
|
};
|
|
1521
|
-
let j = Qt(N,
|
|
1521
|
+
let j = Qt(N, h, c, !0);
|
|
1522
1522
|
if (!j || y.length === j.length && y.every((U, B) => U.route.id === j[B].route.id))
|
|
1523
|
-
return Jn(
|
|
1523
|
+
return Jn(h, w), {
|
|
1524
1524
|
type: "success",
|
|
1525
1525
|
matches: null
|
|
1526
1526
|
};
|
|
1527
1527
|
y = j;
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
-
function Jn(u,
|
|
1531
|
-
if (
|
|
1532
|
-
let v =
|
|
1533
|
-
|
|
1530
|
+
function Jn(u, h) {
|
|
1531
|
+
if (h.size >= C) {
|
|
1532
|
+
let v = h.values().next().value;
|
|
1533
|
+
h.delete(v);
|
|
1534
1534
|
}
|
|
1535
|
-
|
|
1535
|
+
h.add(u);
|
|
1536
1536
|
}
|
|
1537
1537
|
function Sa(u) {
|
|
1538
1538
|
l = {}, s = Rt(u, a, void 0, l);
|
|
1539
1539
|
}
|
|
1540
|
-
function wa(u,
|
|
1540
|
+
function wa(u, h) {
|
|
1541
1541
|
let v = s == null;
|
|
1542
|
-
Ir(u,
|
|
1542
|
+
Ir(u, h, s || o, l, a), v && (o = [...o], ue({}));
|
|
1543
1543
|
}
|
|
1544
1544
|
return q = {
|
|
1545
1545
|
get basename() {
|
|
1546
1546
|
return c;
|
|
1547
1547
|
},
|
|
1548
1548
|
get future() {
|
|
1549
|
-
return
|
|
1549
|
+
return d;
|
|
1550
1550
|
},
|
|
1551
1551
|
get state() {
|
|
1552
1552
|
return g;
|
|
@@ -1580,16 +1580,16 @@ function yo(e) {
|
|
|
1580
1580
|
_internalSetRoutes: Sa
|
|
1581
1581
|
}, q;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function bo(e) {
|
|
1584
1584
|
return e != null && ("formData" in e && e.formData != null || "body" in e && e.body !== void 0);
|
|
1585
1585
|
}
|
|
1586
1586
|
function Pn(e, t, n, r, a, l, o, s) {
|
|
1587
1587
|
let c, p;
|
|
1588
1588
|
if (o) {
|
|
1589
1589
|
c = [];
|
|
1590
|
-
for (let
|
|
1591
|
-
if (c.push(
|
|
1592
|
-
p =
|
|
1590
|
+
for (let d of t)
|
|
1591
|
+
if (c.push(d), d.route.id === o) {
|
|
1592
|
+
p = d;
|
|
1593
1593
|
break;
|
|
1594
1594
|
}
|
|
1595
1595
|
} else
|
|
@@ -1598,11 +1598,11 @@ function Pn(e, t, n, r, a, l, o, s) {
|
|
|
1598
1598
|
return a == null && (f.search = e.search, f.hash = e.hash), (a == null || a === "" || a === ".") && p && p.route.index && !An(f.search) && (f.search = f.search ? f.search.replace(/^\?/, "?index&") : "?index"), r && n !== "/" && (f.pathname = f.pathname === "/" ? n : Ee([n, f.pathname])), Ve(f);
|
|
1599
1599
|
}
|
|
1600
1600
|
function ir(e, t, n, r) {
|
|
1601
|
-
if (!r || !
|
|
1601
|
+
if (!r || !bo(r))
|
|
1602
1602
|
return {
|
|
1603
1603
|
path: n
|
|
1604
1604
|
};
|
|
1605
|
-
if (r.formMethod && !
|
|
1605
|
+
if (r.formMethod && !Ro(r.formMethod))
|
|
1606
1606
|
return {
|
|
1607
1607
|
path: n,
|
|
1608
1608
|
error: de(405, {
|
|
@@ -1622,8 +1622,8 @@ function ir(e, t, n, r) {
|
|
|
1622
1622
|
let m = typeof r.body == "string" ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? (
|
|
1623
1623
|
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data
|
|
1624
1624
|
Array.from(r.body.entries()).reduce((b, C) => {
|
|
1625
|
-
let [
|
|
1626
|
-
return "" + b +
|
|
1625
|
+
let [w, x] = C;
|
|
1626
|
+
return "" + b + w + "=" + x + `
|
|
1627
1627
|
`;
|
|
1628
1628
|
}, "")
|
|
1629
1629
|
) : String(r.body);
|
|
@@ -1688,13 +1688,13 @@ function ir(e, t, n, r) {
|
|
|
1688
1688
|
path: n,
|
|
1689
1689
|
submission: f
|
|
1690
1690
|
};
|
|
1691
|
-
let
|
|
1692
|
-
return t &&
|
|
1693
|
-
path: Ve(
|
|
1691
|
+
let d = Ge(n);
|
|
1692
|
+
return t && d.search && An(d.search) && c.append("index", ""), d.search = "?" + c, {
|
|
1693
|
+
path: Ve(d),
|
|
1694
1694
|
submission: f
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function yo(e, t) {
|
|
1698
1698
|
let n = e;
|
|
1699
1699
|
if (t) {
|
|
1700
1700
|
let r = e.findIndex((a) => a.route.id === t);
|
|
@@ -1702,8 +1702,8 @@ function wo(e, t) {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
return n;
|
|
1704
1704
|
}
|
|
1705
|
-
function lr(e, t, n, r, a, l, o, s, c, p, f,
|
|
1706
|
-
let x =
|
|
1705
|
+
function lr(e, t, n, r, a, l, o, s, c, p, f, d, m, b, C, w) {
|
|
1706
|
+
let x = w ? pe(w[1]) ? w[1].error : w[1].data : void 0, k = e.createURL(t.location), P = e.createURL(a), A = w && pe(w[1]) ? w[0] : void 0, E = A ? yo(n, A) : n, V = w ? w[1].statusCode : void 0, I = o && V && V >= 400, q = E.filter((_, D) => {
|
|
1707
1707
|
let {
|
|
1708
1708
|
route: R
|
|
1709
1709
|
} = _;
|
|
@@ -1714,7 +1714,7 @@ function lr(e, t, n, r, a, l, o, s, c, p, f, h, m, b, C, S) {
|
|
|
1714
1714
|
if (l)
|
|
1715
1715
|
return typeof R.loader != "function" || R.loader.hydrate ? !0 : t.loaderData[R.id] === void 0 && // Don't re-run if the loader ran and threw an error
|
|
1716
1716
|
(!t.errors || t.errors[R.id] === void 0);
|
|
1717
|
-
if (
|
|
1717
|
+
if (So(t.loaderData, t.matches[D], _) || c.some((G) => G === _.route.id))
|
|
1718
1718
|
return !0;
|
|
1719
1719
|
let M = t.matches[D], F = _;
|
|
1720
1720
|
return sr(_, ee({
|
|
@@ -1732,7 +1732,7 @@ function lr(e, t, n, r, a, l, o, s, c, p, f, h, m, b, C, S) {
|
|
|
1732
1732
|
)
|
|
1733
1733
|
}));
|
|
1734
1734
|
}), g = [];
|
|
1735
|
-
return
|
|
1735
|
+
return d.forEach((_, D) => {
|
|
1736
1736
|
if (l || !n.some((he) => he.route.id === _.routeId) || f.has(D))
|
|
1737
1737
|
return;
|
|
1738
1738
|
let R = Xe(b, _.path, C);
|
|
@@ -1767,7 +1767,7 @@ function lr(e, t, n, r, a, l, o, s, c, p, f, h, m, b, C, S) {
|
|
|
1767
1767
|
});
|
|
1768
1768
|
}), [q, g];
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function So(e, t, n) {
|
|
1771
1771
|
let r = (
|
|
1772
1772
|
// [a] -> [a, b]
|
|
1773
1773
|
!t || // [a, b] -> [a, c]
|
|
@@ -1792,17 +1792,17 @@ function sr(e, t) {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
return t.defaultShouldRevalidate;
|
|
1794
1794
|
}
|
|
1795
|
-
async function
|
|
1795
|
+
async function wo(e, t, n, r, a, l, o, s) {
|
|
1796
1796
|
let c = [t, ...n.map((p) => p.route.id)].join("-");
|
|
1797
1797
|
try {
|
|
1798
1798
|
let p = o.get(c);
|
|
1799
1799
|
p || (p = e({
|
|
1800
1800
|
path: t,
|
|
1801
1801
|
matches: n,
|
|
1802
|
-
patch: (f,
|
|
1803
|
-
s.aborted || Ir(f,
|
|
1802
|
+
patch: (f, d) => {
|
|
1803
|
+
s.aborted || Ir(f, d, r, a, l);
|
|
1804
1804
|
}
|
|
1805
|
-
}), o.set(c, p)), p &&
|
|
1805
|
+
}), o.set(c, p)), p && Eo(p) && await p;
|
|
1806
1806
|
} finally {
|
|
1807
1807
|
o.delete(c);
|
|
1808
1808
|
}
|
|
@@ -1832,22 +1832,22 @@ async function cr(e, t, n) {
|
|
|
1832
1832
|
let c = a[o] !== void 0 && // This property isn't static since it should always be updated based
|
|
1833
1833
|
// on the route updates
|
|
1834
1834
|
o !== "hasErrorBoundary";
|
|
1835
|
-
le(!c, 'Route "' + a.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + o + '" will be ignored.')), !c && !
|
|
1835
|
+
le(!c, 'Route "' + a.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + o + '" will be ignored.')), !c && !za.has(o) && (l[o] = r[o]);
|
|
1836
1836
|
}
|
|
1837
1837
|
Object.assign(a, l), Object.assign(a, ee({}, t(a), {
|
|
1838
1838
|
lazy: void 0
|
|
1839
1839
|
}));
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function Co(e) {
|
|
1842
1842
|
return Promise.all(e.matches.map((t) => t.resolve()));
|
|
1843
1843
|
}
|
|
1844
|
-
async function
|
|
1845
|
-
let c = r.reduce((
|
|
1846
|
-
matches: a.map((
|
|
1847
|
-
let m = c.has(
|
|
1848
|
-
return ee({},
|
|
1844
|
+
async function xo(e, t, n, r, a, l, o, s) {
|
|
1845
|
+
let c = r.reduce((d, m) => d.add(m.route.id), /* @__PURE__ */ new Set()), p = /* @__PURE__ */ new Set(), f = await e({
|
|
1846
|
+
matches: a.map((d) => {
|
|
1847
|
+
let m = c.has(d.route.id);
|
|
1848
|
+
return ee({}, d, {
|
|
1849
1849
|
shouldLoad: m,
|
|
1850
|
-
resolve: (C) => (p.add(
|
|
1850
|
+
resolve: (C) => (p.add(d.route.id), m ? _o(t, n, d, l, o, C, s) : Promise.resolve({
|
|
1851
1851
|
type: J.data,
|
|
1852
1852
|
result: void 0
|
|
1853
1853
|
}))
|
|
@@ -1857,27 +1857,27 @@ async function ko(e, t, n, r, a, l, o, s) {
|
|
|
1857
1857
|
params: a[0].params,
|
|
1858
1858
|
context: s
|
|
1859
1859
|
});
|
|
1860
|
-
return a.forEach((
|
|
1860
|
+
return a.forEach((d) => T(p.has(d.route.id), '`match.resolve()` was not called for route id "' + d.route.id + '". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')), f.filter((d, m) => c.has(a[m].route.id));
|
|
1861
1861
|
}
|
|
1862
|
-
async function
|
|
1862
|
+
async function _o(e, t, n, r, a, l, o) {
|
|
1863
1863
|
let s, c, p = (f) => {
|
|
1864
|
-
let
|
|
1865
|
-
c = () =>
|
|
1866
|
-
let b = (
|
|
1864
|
+
let d, m = new Promise((w, x) => d = x);
|
|
1865
|
+
c = () => d(), t.signal.addEventListener("abort", c);
|
|
1866
|
+
let b = (w) => typeof f != "function" ? Promise.reject(new Error("You cannot call the handler for a route which defines a boolean " + ('"' + e + '" [routeId: ' + n.route.id + "]"))) : f({
|
|
1867
1867
|
request: t,
|
|
1868
1868
|
params: n.params,
|
|
1869
1869
|
context: o
|
|
1870
|
-
}, ...
|
|
1871
|
-
return l ? C = l((
|
|
1870
|
+
}, ...w !== void 0 ? [w] : []), C;
|
|
1871
|
+
return l ? C = l((w) => b(w)) : C = (async () => {
|
|
1872
1872
|
try {
|
|
1873
1873
|
return {
|
|
1874
1874
|
type: "data",
|
|
1875
1875
|
result: await b()
|
|
1876
1876
|
};
|
|
1877
|
-
} catch (
|
|
1877
|
+
} catch (w) {
|
|
1878
1878
|
return {
|
|
1879
1879
|
type: "error",
|
|
1880
|
-
result:
|
|
1880
|
+
result: w
|
|
1881
1881
|
};
|
|
1882
1882
|
}
|
|
1883
1883
|
})(), Promise.race([C, m]);
|
|
@@ -1886,22 +1886,22 @@ async function jo(e, t, n, r, a, l, o) {
|
|
|
1886
1886
|
let f = n.route[e];
|
|
1887
1887
|
if (n.route.lazy)
|
|
1888
1888
|
if (f) {
|
|
1889
|
-
let
|
|
1889
|
+
let d, [m] = await Promise.all([
|
|
1890
1890
|
// If the handler throws, don't let it immediately bubble out,
|
|
1891
1891
|
// since we need to let the lazy() execution finish so we know if this
|
|
1892
1892
|
// route has a boundary that can handle the error
|
|
1893
1893
|
p(f).catch((b) => {
|
|
1894
|
-
|
|
1894
|
+
d = b;
|
|
1895
1895
|
}),
|
|
1896
1896
|
cr(n.route, a, r)
|
|
1897
1897
|
]);
|
|
1898
|
-
if (
|
|
1899
|
-
throw
|
|
1898
|
+
if (d !== void 0)
|
|
1899
|
+
throw d;
|
|
1900
1900
|
s = m;
|
|
1901
1901
|
} else if (await cr(n.route, a, r), f = n.route[e], f)
|
|
1902
1902
|
s = await p(f);
|
|
1903
1903
|
else if (e === "action") {
|
|
1904
|
-
let
|
|
1904
|
+
let d = new URL(t.url), m = d.pathname + d.search;
|
|
1905
1905
|
throw de(405, {
|
|
1906
1906
|
method: t.method,
|
|
1907
1907
|
pathname: m,
|
|
@@ -1915,7 +1915,7 @@ async function jo(e, t, n, r, a, l, o) {
|
|
|
1915
1915
|
else if (f)
|
|
1916
1916
|
s = await p(f);
|
|
1917
1917
|
else {
|
|
1918
|
-
let
|
|
1918
|
+
let d = new URL(t.url), m = d.pathname + d.search;
|
|
1919
1919
|
throw de(404, {
|
|
1920
1920
|
pathname: m
|
|
1921
1921
|
});
|
|
@@ -1931,7 +1931,7 @@ async function jo(e, t, n, r, a, l, o) {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return s;
|
|
1933
1933
|
}
|
|
1934
|
-
async function
|
|
1934
|
+
async function ko(e) {
|
|
1935
1935
|
let {
|
|
1936
1936
|
result: t,
|
|
1937
1937
|
type: n
|
|
@@ -1978,7 +1978,7 @@ async function Po(e) {
|
|
|
1978
1978
|
statusCode: cn(t) ? t.status : void 0
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
|
-
if (
|
|
1981
|
+
if (Do(t)) {
|
|
1982
1982
|
var l, o;
|
|
1983
1983
|
return {
|
|
1984
1984
|
type: J.deferred,
|
|
@@ -2001,7 +2001,7 @@ async function Po(e) {
|
|
|
2001
2001
|
data: t
|
|
2002
2002
|
};
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function jo(e, t, n, r, a, l) {
|
|
2005
2005
|
let o = e.headers.get("Location");
|
|
2006
2006
|
if (T(o, "Redirects returned/thrown from loaders/actions must have a Location header"), !Tn.test(o)) {
|
|
2007
2007
|
let s = r.slice(0, r.findIndex((c) => c.route.id === n) + 1);
|
|
@@ -2044,22 +2044,22 @@ function dr(e) {
|
|
|
2044
2044
|
t.append(n, r);
|
|
2045
2045
|
return t;
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2048
|
-
let o = {}, s = null, c, p = !1, f = {},
|
|
2047
|
+
function Po(e, t, n, r, a, l) {
|
|
2048
|
+
let o = {}, s = null, c, p = !1, f = {}, d = r && pe(r[1]) ? r[1].error : void 0;
|
|
2049
2049
|
return n.forEach((m, b) => {
|
|
2050
2050
|
let C = t[b].route.id;
|
|
2051
2051
|
if (T(!Qe(m), "Cannot handle redirect results in processLoaderData"), pe(m)) {
|
|
2052
|
-
let
|
|
2053
|
-
|
|
2052
|
+
let w = m.error;
|
|
2053
|
+
d !== void 0 && (w = d, d = void 0), s = s || {};
|
|
2054
2054
|
{
|
|
2055
2055
|
let x = pt(e, C);
|
|
2056
|
-
s[x.route.id] == null && (s[x.route.id] =
|
|
2056
|
+
s[x.route.id] == null && (s[x.route.id] = w);
|
|
2057
2057
|
}
|
|
2058
2058
|
o[C] = void 0, p || (p = !0, c = cn(m.error) ? m.error.status : 500), m.headers && (f[C] = m.headers);
|
|
2059
2059
|
} else
|
|
2060
2060
|
Je(m) ? (a.set(C, m.deferredData), o[C] = m.deferredData.data, m.statusCode != null && m.statusCode !== 200 && !p && (c = m.statusCode), m.headers && (f[C] = m.headers)) : (o[C] = m.data, m.statusCode && m.statusCode !== 200 && !p && (c = m.statusCode), m.headers && (f[C] = m.headers));
|
|
2061
|
-
}),
|
|
2062
|
-
[r[0]]:
|
|
2061
|
+
}), d !== void 0 && r && (s = {
|
|
2062
|
+
[r[0]]: d
|
|
2063
2063
|
}, o[r[0]] = void 0), {
|
|
2064
2064
|
loaderData: o,
|
|
2065
2065
|
errors: s,
|
|
@@ -2071,10 +2071,10 @@ function hr(e, t, n, r, a, l, o, s) {
|
|
|
2071
2071
|
let {
|
|
2072
2072
|
loaderData: c,
|
|
2073
2073
|
errors: p
|
|
2074
|
-
} =
|
|
2074
|
+
} = Po(t, n, r, a, s);
|
|
2075
2075
|
for (let f = 0; f < l.length; f++) {
|
|
2076
2076
|
let {
|
|
2077
|
-
key:
|
|
2077
|
+
key: d,
|
|
2078
2078
|
match: m,
|
|
2079
2079
|
controller: b
|
|
2080
2080
|
} = l[f];
|
|
@@ -2082,17 +2082,17 @@ function hr(e, t, n, r, a, l, o, s) {
|
|
|
2082
2082
|
let C = o[f];
|
|
2083
2083
|
if (!(b && b.signal.aborted))
|
|
2084
2084
|
if (pe(C)) {
|
|
2085
|
-
let
|
|
2086
|
-
p && p[
|
|
2087
|
-
[
|
|
2088
|
-
})), e.fetchers.delete(
|
|
2085
|
+
let w = pt(e.matches, m == null ? void 0 : m.route.id);
|
|
2086
|
+
p && p[w.route.id] || (p = ee({}, p, {
|
|
2087
|
+
[w.route.id]: C.error
|
|
2088
|
+
})), e.fetchers.delete(d);
|
|
2089
2089
|
} else if (Qe(C))
|
|
2090
2090
|
T(!1, "Unhandled fetcher revalidation redirect");
|
|
2091
2091
|
else if (Je(C))
|
|
2092
2092
|
T(!1, "Unhandled fetcher deferred data");
|
|
2093
2093
|
else {
|
|
2094
|
-
let
|
|
2095
|
-
e.fetchers.set(
|
|
2094
|
+
let w = ze(C.data);
|
|
2095
|
+
e.fetchers.set(d, w);
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
return {
|
|
@@ -2163,14 +2163,14 @@ function $r(e) {
|
|
|
2163
2163
|
hash: ""
|
|
2164
2164
|
}));
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function Lo(e, t) {
|
|
2167
2167
|
return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function Eo(e) {
|
|
2170
2170
|
return typeof e == "object" && e != null && "then" in e;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2173
|
-
return zr(e.result) &&
|
|
2172
|
+
function No(e) {
|
|
2173
|
+
return zr(e.result) && fo.has(e.result.status);
|
|
2174
2174
|
}
|
|
2175
2175
|
function Je(e) {
|
|
2176
2176
|
return e.type === J.deferred;
|
|
@@ -2184,28 +2184,28 @@ function Qe(e) {
|
|
|
2184
2184
|
function vr(e) {
|
|
2185
2185
|
return typeof e == "object" && e != null && "type" in e && "data" in e && "init" in e && e.type === "DataWithResponseInit";
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function Do(e) {
|
|
2188
2188
|
let t = e;
|
|
2189
2189
|
return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
|
|
2190
2190
|
}
|
|
2191
2191
|
function zr(e) {
|
|
2192
2192
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2195
|
-
return
|
|
2194
|
+
function Ro(e) {
|
|
2195
|
+
return ho.has(e.toLowerCase());
|
|
2196
2196
|
}
|
|
2197
2197
|
function Se(e) {
|
|
2198
|
-
return
|
|
2198
|
+
return co.has(e.toLowerCase());
|
|
2199
2199
|
}
|
|
2200
2200
|
async function br(e, t, n, r, a, l) {
|
|
2201
2201
|
for (let o = 0; o < n.length; o++) {
|
|
2202
2202
|
let s = n[o], c = t[o];
|
|
2203
2203
|
if (!c)
|
|
2204
2204
|
continue;
|
|
2205
|
-
let p = e.find((
|
|
2205
|
+
let p = e.find((d) => d.route.id === c.route.id), f = p != null && !Hr(p, c) && (l && l[c.route.id]) !== void 0;
|
|
2206
2206
|
if (Je(s) && (a || f)) {
|
|
2207
|
-
let
|
|
2208
|
-
T(
|
|
2207
|
+
let d = r[o];
|
|
2208
|
+
T(d, "Expected an AbortSignal for revalidating fetcher deferred result"), await Vr(s, d, a).then((m) => {
|
|
2209
2209
|
m && (n[o] = m || n[o]);
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
@@ -2301,7 +2301,7 @@ function yn(e, t) {
|
|
|
2301
2301
|
text: void 0
|
|
2302
2302
|
};
|
|
2303
2303
|
}
|
|
2304
|
-
function
|
|
2304
|
+
function To(e, t) {
|
|
2305
2305
|
return {
|
|
2306
2306
|
state: "submitting",
|
|
2307
2307
|
location: e,
|
|
@@ -2334,7 +2334,7 @@ function _t(e, t) {
|
|
|
2334
2334
|
data: t
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Ao(e, t) {
|
|
2338
2338
|
return {
|
|
2339
2339
|
state: "submitting",
|
|
2340
2340
|
formMethod: e.formMethod,
|
|
@@ -2358,7 +2358,7 @@ function ze(e) {
|
|
|
2358
2358
|
data: e
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Bo(e, t) {
|
|
2362
2362
|
try {
|
|
2363
2363
|
let n = e.sessionStorage.getItem(Ur);
|
|
2364
2364
|
if (n) {
|
|
@@ -2369,7 +2369,7 @@ function Mo(e, t) {
|
|
|
2369
2369
|
} catch {
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function Fo(e, t) {
|
|
2373
2373
|
if (t.size > 0) {
|
|
2374
2374
|
let n = {};
|
|
2375
2375
|
for (let [r, a] of t)
|
|
@@ -2401,25 +2401,25 @@ function an() {
|
|
|
2401
2401
|
return e;
|
|
2402
2402
|
}, an.apply(this, arguments);
|
|
2403
2403
|
}
|
|
2404
|
-
const gt = /* @__PURE__ */
|
|
2404
|
+
const gt = /* @__PURE__ */ S.createContext(null);
|
|
2405
2405
|
process.env.NODE_ENV !== "production" && (gt.displayName = "DataRouter");
|
|
2406
|
-
const un = /* @__PURE__ */
|
|
2406
|
+
const un = /* @__PURE__ */ S.createContext(null);
|
|
2407
2407
|
process.env.NODE_ENV !== "production" && (un.displayName = "DataRouterState");
|
|
2408
|
-
const
|
|
2409
|
-
process.env.NODE_ENV !== "production" && (
|
|
2410
|
-
const xe = /* @__PURE__ */
|
|
2408
|
+
const Mo = /* @__PURE__ */ S.createContext(null);
|
|
2409
|
+
process.env.NODE_ENV !== "production" && (Mo.displayName = "Await");
|
|
2410
|
+
const xe = /* @__PURE__ */ S.createContext(null);
|
|
2411
2411
|
process.env.NODE_ENV !== "production" && (xe.displayName = "Navigation");
|
|
2412
|
-
const dn = /* @__PURE__ */
|
|
2412
|
+
const dn = /* @__PURE__ */ S.createContext(null);
|
|
2413
2413
|
process.env.NODE_ENV !== "production" && (dn.displayName = "Location");
|
|
2414
|
-
const Ue = /* @__PURE__ */
|
|
2414
|
+
const Ue = /* @__PURE__ */ S.createContext({
|
|
2415
2415
|
outlet: null,
|
|
2416
2416
|
matches: [],
|
|
2417
2417
|
isDataRoute: !1
|
|
2418
2418
|
});
|
|
2419
2419
|
process.env.NODE_ENV !== "production" && (Ue.displayName = "Route");
|
|
2420
|
-
const Bn = /* @__PURE__ */
|
|
2420
|
+
const Bn = /* @__PURE__ */ S.createContext(null);
|
|
2421
2421
|
process.env.NODE_ENV !== "production" && (Bn.displayName = "RouteError");
|
|
2422
|
-
function
|
|
2422
|
+
function Oo(e, t) {
|
|
2423
2423
|
let {
|
|
2424
2424
|
relative: n
|
|
2425
2425
|
} = t === void 0 ? {} : t;
|
|
@@ -2432,7 +2432,7 @@ function Ho(e, t) {
|
|
|
2432
2432
|
let {
|
|
2433
2433
|
basename: r,
|
|
2434
2434
|
navigator: a
|
|
2435
|
-
} =
|
|
2435
|
+
} = S.useContext(xe), {
|
|
2436
2436
|
hash: l,
|
|
2437
2437
|
pathname: o,
|
|
2438
2438
|
search: s
|
|
@@ -2446,7 +2446,7 @@ function Ho(e, t) {
|
|
|
2446
2446
|
});
|
|
2447
2447
|
}
|
|
2448
2448
|
function At() {
|
|
2449
|
-
return
|
|
2449
|
+
return S.useContext(dn) != null;
|
|
2450
2450
|
}
|
|
2451
2451
|
function vt() {
|
|
2452
2452
|
return At() || (process.env.NODE_ENV !== "production" ? T(
|
|
@@ -2454,44 +2454,44 @@ function vt() {
|
|
|
2454
2454
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2455
2455
|
// router loaded. We can help them understand how to avoid that.
|
|
2456
2456
|
"useLocation() may be used only in the context of a <Router> component."
|
|
2457
|
-
) : T(!1)),
|
|
2457
|
+
) : T(!1)), S.useContext(dn).location;
|
|
2458
2458
|
}
|
|
2459
2459
|
const Wr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2460
2460
|
function Gr(e) {
|
|
2461
|
-
|
|
2461
|
+
S.useContext(xe).static || S.useLayoutEffect(e);
|
|
2462
2462
|
}
|
|
2463
2463
|
function qr() {
|
|
2464
2464
|
let {
|
|
2465
2465
|
isDataRoute: e
|
|
2466
|
-
} =
|
|
2467
|
-
return e ?
|
|
2466
|
+
} = S.useContext(Ue);
|
|
2467
|
+
return e ? Jo() : Uo();
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function Uo() {
|
|
2470
2470
|
At() || (process.env.NODE_ENV !== "production" ? T(
|
|
2471
2471
|
!1,
|
|
2472
2472
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2473
2473
|
// router loaded. We can help them understand how to avoid that.
|
|
2474
2474
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
2475
2475
|
) : T(!1));
|
|
2476
|
-
let e =
|
|
2476
|
+
let e = S.useContext(gt), {
|
|
2477
2477
|
basename: t,
|
|
2478
2478
|
future: n,
|
|
2479
2479
|
navigator: r
|
|
2480
|
-
} =
|
|
2480
|
+
} = S.useContext(xe), {
|
|
2481
2481
|
matches: a
|
|
2482
|
-
} =
|
|
2482
|
+
} = S.useContext(Ue), {
|
|
2483
2483
|
pathname: l
|
|
2484
|
-
} = vt(), o = JSON.stringify(Dn(a, n.v7_relativeSplatPath)), s =
|
|
2484
|
+
} = vt(), o = JSON.stringify(Dn(a, n.v7_relativeSplatPath)), s = S.useRef(!1);
|
|
2485
2485
|
return Gr(() => {
|
|
2486
2486
|
s.current = !0;
|
|
2487
|
-
}),
|
|
2487
|
+
}), S.useCallback(function(p, f) {
|
|
2488
2488
|
if (f === void 0 && (f = {}), process.env.NODE_ENV !== "production" && le(s.current, Wr), !s.current) return;
|
|
2489
2489
|
if (typeof p == "number") {
|
|
2490
2490
|
r.go(p);
|
|
2491
2491
|
return;
|
|
2492
2492
|
}
|
|
2493
|
-
let
|
|
2494
|
-
e == null && t !== "/" && (
|
|
2493
|
+
let d = Rn(p, JSON.parse(o), l, f.relative === "path");
|
|
2494
|
+
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Ee([t, d.pathname])), (f.replace ? r.replace : r.push)(d, f.state, f);
|
|
2495
2495
|
}, [t, r, o, l, e]);
|
|
2496
2496
|
}
|
|
2497
2497
|
function Bt(e, t) {
|
|
@@ -2499,14 +2499,14 @@ function Bt(e, t) {
|
|
|
2499
2499
|
relative: n
|
|
2500
2500
|
} = t === void 0 ? {} : t, {
|
|
2501
2501
|
future: r
|
|
2502
|
-
} =
|
|
2502
|
+
} = S.useContext(xe), {
|
|
2503
2503
|
matches: a
|
|
2504
|
-
} =
|
|
2504
|
+
} = S.useContext(Ue), {
|
|
2505
2505
|
pathname: l
|
|
2506
2506
|
} = vt(), o = JSON.stringify(Dn(a, r.v7_relativeSplatPath));
|
|
2507
|
-
return
|
|
2507
|
+
return S.useMemo(() => Rn(e, JSON.parse(o), l, n === "path"), [e, o, l, n]);
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2509
|
+
function Ho(e, t, n, r) {
|
|
2510
2510
|
At() || (process.env.NODE_ENV !== "production" ? T(
|
|
2511
2511
|
!1,
|
|
2512
2512
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2515,26 +2515,26 @@ function $o(e, t, n, r) {
|
|
|
2515
2515
|
) : T(!1));
|
|
2516
2516
|
let {
|
|
2517
2517
|
navigator: a
|
|
2518
|
-
} =
|
|
2518
|
+
} = S.useContext(xe), {
|
|
2519
2519
|
matches: l
|
|
2520
|
-
} =
|
|
2520
|
+
} = S.useContext(Ue), o = l[l.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", p = o ? o.pathnameBase : "/", f = o && o.route;
|
|
2521
2521
|
if (process.env.NODE_ENV !== "production") {
|
|
2522
2522
|
let k = f && f.path || "";
|
|
2523
2523
|
Yr(c, !f || k.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + c + '" (under <Route path="' + k + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2524
2524
|
|
|
2525
2525
|
` + ('Please change the parent <Route path="' + k + '"> to <Route ') + ('path="' + (k === "/" ? "*" : k + "/*") + '">.'));
|
|
2526
2526
|
}
|
|
2527
|
-
let
|
|
2528
|
-
m =
|
|
2527
|
+
let d = vt(), m;
|
|
2528
|
+
m = d;
|
|
2529
2529
|
let b = m.pathname || "/", C = b;
|
|
2530
2530
|
if (p !== "/") {
|
|
2531
2531
|
let k = p.replace(/^\//, "").split("/");
|
|
2532
2532
|
C = "/" + b.replace(/^\//, "").split("/").slice(k.length).join("/");
|
|
2533
2533
|
}
|
|
2534
|
-
let
|
|
2534
|
+
let w = Xe(e, {
|
|
2535
2535
|
pathname: C
|
|
2536
2536
|
});
|
|
2537
|
-
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && le(f ||
|
|
2537
|
+
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && le(f || w != null, 'No routes matched location "' + m.pathname + m.search + m.hash + '" '), process.env.NODE_ENV !== "production" && le(w == null || w[w.length - 1].route.element !== void 0 || w[w.length - 1].route.Component !== void 0 || w[w.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + m.pathname + m.search + m.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), Wo(w && w.map((k) => Object.assign({}, k, {
|
|
2538
2538
|
params: Object.assign({}, s, k.params),
|
|
2539
2539
|
pathname: Ee([
|
|
2540
2540
|
p,
|
|
@@ -2548,28 +2548,28 @@ function $o(e, t, n, r) {
|
|
|
2548
2548
|
])
|
|
2549
2549
|
})), l, n, r);
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2552
|
-
let e =
|
|
2551
|
+
function Io() {
|
|
2552
|
+
let e = Xo(), t = cn(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", a = {
|
|
2553
2553
|
padding: "0.5rem",
|
|
2554
2554
|
backgroundColor: r
|
|
2555
2555
|
}, l = {
|
|
2556
2556
|
padding: "2px 4px",
|
|
2557
2557
|
backgroundColor: r
|
|
2558
2558
|
}, o = null;
|
|
2559
|
-
return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), o = /* @__PURE__ */
|
|
2559
|
+
return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), o = /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ S.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ S.createElement("code", {
|
|
2560
2560
|
style: l
|
|
2561
|
-
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */
|
|
2561
|
+
}, "ErrorBoundary"), " or", " ", /* @__PURE__ */ S.createElement("code", {
|
|
2562
2562
|
style: l
|
|
2563
|
-
}, "errorElement"), " prop on your route."))), /* @__PURE__ */
|
|
2563
|
+
}, "errorElement"), " prop on your route."))), /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ S.createElement("h3", {
|
|
2564
2564
|
style: {
|
|
2565
2565
|
fontStyle: "italic"
|
|
2566
2566
|
}
|
|
2567
|
-
}, t), n ? /* @__PURE__ */
|
|
2567
|
+
}, t), n ? /* @__PURE__ */ S.createElement("pre", {
|
|
2568
2568
|
style: a
|
|
2569
2569
|
}, n) : null, o);
|
|
2570
2570
|
}
|
|
2571
|
-
const
|
|
2572
|
-
class
|
|
2571
|
+
const $o = /* @__PURE__ */ S.createElement(Io, null);
|
|
2572
|
+
class zo extends S.Component {
|
|
2573
2573
|
constructor(t) {
|
|
2574
2574
|
super(t), this.state = {
|
|
2575
2575
|
location: t.location,
|
|
@@ -2597,25 +2597,25 @@ class Wo extends w.Component {
|
|
|
2597
2597
|
console.error("React Router caught the following error during render", t, n);
|
|
2598
2598
|
}
|
|
2599
2599
|
render() {
|
|
2600
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
2600
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ S.createElement(Ue.Provider, {
|
|
2601
2601
|
value: this.props.routeContext
|
|
2602
|
-
}, /* @__PURE__ */
|
|
2602
|
+
}, /* @__PURE__ */ S.createElement(Bn.Provider, {
|
|
2603
2603
|
value: this.state.error,
|
|
2604
2604
|
children: this.props.component
|
|
2605
2605
|
})) : this.props.children;
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
function
|
|
2608
|
+
function Vo(e) {
|
|
2609
2609
|
let {
|
|
2610
2610
|
routeContext: t,
|
|
2611
2611
|
match: n,
|
|
2612
2612
|
children: r
|
|
2613
|
-
} = e, a =
|
|
2614
|
-
return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */
|
|
2613
|
+
} = e, a = S.useContext(gt);
|
|
2614
|
+
return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ S.createElement(Ue.Provider, {
|
|
2615
2615
|
value: t
|
|
2616
2616
|
}, r);
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function Wo(e, t, n, r) {
|
|
2619
2619
|
var a;
|
|
2620
2620
|
if (t === void 0 && (t = []), n === void 0 && (n = null), r === void 0 && (r = null), e == null) {
|
|
2621
2621
|
var l;
|
|
@@ -2630,31 +2630,31 @@ function qo(e, t, n, r) {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
let o = e, s = (a = n) == null ? void 0 : a.errors;
|
|
2632
2632
|
if (s != null) {
|
|
2633
|
-
let f = o.findIndex((
|
|
2633
|
+
let f = o.findIndex((d) => d.route.id && (s == null ? void 0 : s[d.route.id]) !== void 0);
|
|
2634
2634
|
f >= 0 || (process.env.NODE_ENV !== "production" ? T(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(s).join(",")) : T(!1)), o = o.slice(0, Math.min(o.length, f + 1));
|
|
2635
2635
|
}
|
|
2636
2636
|
let c = !1, p = -1;
|
|
2637
2637
|
if (n && r && r.v7_partialHydration)
|
|
2638
2638
|
for (let f = 0; f < o.length; f++) {
|
|
2639
|
-
let
|
|
2640
|
-
if ((
|
|
2639
|
+
let d = o[f];
|
|
2640
|
+
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (p = f), d.route.id) {
|
|
2641
2641
|
let {
|
|
2642
2642
|
loaderData: m,
|
|
2643
2643
|
errors: b
|
|
2644
|
-
} = n, C =
|
|
2645
|
-
if (
|
|
2644
|
+
} = n, C = d.route.loader && m[d.route.id] === void 0 && (!b || b[d.route.id] === void 0);
|
|
2645
|
+
if (d.route.lazy || C) {
|
|
2646
2646
|
c = !0, p >= 0 ? o = o.slice(0, p + 1) : o = [o[0]];
|
|
2647
2647
|
break;
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
|
-
return o.reduceRight((f,
|
|
2652
|
-
let b, C = !1,
|
|
2653
|
-
n && (b = s &&
|
|
2651
|
+
return o.reduceRight((f, d, m) => {
|
|
2652
|
+
let b, C = !1, w = null, x = null;
|
|
2653
|
+
n && (b = s && d.route.id ? s[d.route.id] : void 0, w = d.route.errorElement || $o, c && (p < 0 && m === 0 ? (Yr("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), C = !0, x = null) : p === m && (C = !0, x = d.route.hydrateFallbackElement || null)));
|
|
2654
2654
|
let k = t.concat(o.slice(0, m + 1)), P = () => {
|
|
2655
2655
|
let A;
|
|
2656
|
-
return b ? A =
|
|
2657
|
-
match:
|
|
2656
|
+
return b ? A = w : C ? A = x : d.route.Component ? A = /* @__PURE__ */ S.createElement(d.route.Component, null) : d.route.element ? A = d.route.element : A = f, /* @__PURE__ */ S.createElement(Vo, {
|
|
2657
|
+
match: d,
|
|
2658
2658
|
routeContext: {
|
|
2659
2659
|
outlet: f,
|
|
2660
2660
|
matches: k,
|
|
@@ -2663,10 +2663,10 @@ function qo(e, t, n, r) {
|
|
|
2663
2663
|
children: A
|
|
2664
2664
|
});
|
|
2665
2665
|
};
|
|
2666
|
-
return n && (
|
|
2666
|
+
return n && (d.route.ErrorBoundary || d.route.errorElement || m === 0) ? /* @__PURE__ */ S.createElement(zo, {
|
|
2667
2667
|
location: n.location,
|
|
2668
2668
|
revalidation: n.revalidation,
|
|
2669
|
-
component:
|
|
2669
|
+
component: w,
|
|
2670
2670
|
error: b,
|
|
2671
2671
|
children: P(),
|
|
2672
2672
|
routeContext: {
|
|
@@ -2685,37 +2685,37 @@ var Kr = /* @__PURE__ */ function(e) {
|
|
|
2685
2685
|
function Fn(e) {
|
|
2686
2686
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2689
|
-
let t =
|
|
2688
|
+
function Go(e) {
|
|
2689
|
+
let t = S.useContext(gt);
|
|
2690
2690
|
return t || (process.env.NODE_ENV !== "production" ? T(!1, Fn(e)) : T(!1)), t;
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2693
|
-
let t =
|
|
2692
|
+
function qo(e) {
|
|
2693
|
+
let t = S.useContext(un);
|
|
2694
2694
|
return t || (process.env.NODE_ENV !== "production" ? T(!1, Fn(e)) : T(!1)), t;
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2697
|
-
let t =
|
|
2696
|
+
function Ko(e) {
|
|
2697
|
+
let t = S.useContext(Ue);
|
|
2698
2698
|
return t || (process.env.NODE_ENV !== "production" ? T(!1, Fn(e)) : T(!1)), t;
|
|
2699
2699
|
}
|
|
2700
2700
|
function Mn(e) {
|
|
2701
|
-
let t =
|
|
2701
|
+
let t = Ko(e), n = t.matches[t.matches.length - 1];
|
|
2702
2702
|
return n.route.id || (process.env.NODE_ENV !== "production" ? T(!1, e + ' can only be used on routes that contain a unique "id"') : T(!1)), n.route.id;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function Yo() {
|
|
2705
2705
|
return Mn(Tt.UseRouteId);
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function Xo() {
|
|
2708
2708
|
var e;
|
|
2709
|
-
let t =
|
|
2709
|
+
let t = S.useContext(Bn), n = qo(Tt.UseRouteError), r = Mn(Tt.UseRouteError);
|
|
2710
2710
|
return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[r];
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function Jo() {
|
|
2713
2713
|
let {
|
|
2714
2714
|
router: e
|
|
2715
|
-
} =
|
|
2715
|
+
} = Go(Kr.UseNavigateStable), t = Mn(Tt.UseNavigateStable), n = S.useRef(!1);
|
|
2716
2716
|
return Gr(() => {
|
|
2717
2717
|
n.current = !0;
|
|
2718
|
-
}),
|
|
2718
|
+
}), S.useCallback(function(a, l) {
|
|
2719
2719
|
l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && le(n.current, Wr), n.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, an({
|
|
2720
2720
|
fromRouteId: t
|
|
2721
2721
|
}, l)));
|
|
@@ -2725,7 +2725,7 @@ const Sr = {};
|
|
|
2725
2725
|
function Yr(e, t, n) {
|
|
2726
2726
|
!t && !Sr[e] && (Sr[e] = !0, process.env.NODE_ENV !== "production" && le(!1, n));
|
|
2727
2727
|
}
|
|
2728
|
-
function
|
|
2728
|
+
function Qo(e) {
|
|
2729
2729
|
let {
|
|
2730
2730
|
basename: t = "/",
|
|
2731
2731
|
children: n = null,
|
|
@@ -2736,7 +2736,7 @@ function ei(e) {
|
|
|
2736
2736
|
future: s
|
|
2737
2737
|
} = e;
|
|
2738
2738
|
At() && (process.env.NODE_ENV !== "production" ? T(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : T(!1));
|
|
2739
|
-
let c = t.replace(/^\/*/, "/"), p =
|
|
2739
|
+
let c = t.replace(/^\/*/, "/"), p = S.useMemo(() => ({
|
|
2740
2740
|
basename: c,
|
|
2741
2741
|
navigator: l,
|
|
2742
2742
|
static: o,
|
|
@@ -2747,46 +2747,46 @@ function ei(e) {
|
|
|
2747
2747
|
typeof r == "string" && (r = Ge(r));
|
|
2748
2748
|
let {
|
|
2749
2749
|
pathname: f = "/",
|
|
2750
|
-
search:
|
|
2750
|
+
search: d = "",
|
|
2751
2751
|
hash: m = "",
|
|
2752
2752
|
state: b = null,
|
|
2753
2753
|
key: C = "default"
|
|
2754
|
-
} = r,
|
|
2754
|
+
} = r, w = S.useMemo(() => {
|
|
2755
2755
|
let x = Ce(f, c);
|
|
2756
2756
|
return x == null ? null : {
|
|
2757
2757
|
location: {
|
|
2758
2758
|
pathname: x,
|
|
2759
|
-
search:
|
|
2759
|
+
search: d,
|
|
2760
2760
|
hash: m,
|
|
2761
2761
|
state: b,
|
|
2762
2762
|
key: C
|
|
2763
2763
|
},
|
|
2764
2764
|
navigationType: a
|
|
2765
2765
|
};
|
|
2766
|
-
}, [c, f,
|
|
2767
|
-
return process.env.NODE_ENV !== "production" && le(
|
|
2766
|
+
}, [c, f, d, m, b, C, a]);
|
|
2767
|
+
return process.env.NODE_ENV !== "production" && le(w != null, '<Router basename="' + c + '"> is not able to match the URL ' + ('"' + f + d + m + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), w == null ? null : /* @__PURE__ */ S.createElement(xe.Provider, {
|
|
2768
2768
|
value: p
|
|
2769
|
-
}, /* @__PURE__ */
|
|
2769
|
+
}, /* @__PURE__ */ S.createElement(dn.Provider, {
|
|
2770
2770
|
children: n,
|
|
2771
|
-
value:
|
|
2771
|
+
value: w
|
|
2772
2772
|
}));
|
|
2773
2773
|
}
|
|
2774
2774
|
new Promise(() => {
|
|
2775
2775
|
});
|
|
2776
|
-
function
|
|
2776
|
+
function Zo(e) {
|
|
2777
2777
|
let t = {
|
|
2778
2778
|
// Note: this check also occurs in createRoutesFromChildren so update
|
|
2779
2779
|
// there if you change this -- please and thank you!
|
|
2780
2780
|
hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
|
|
2781
2781
|
};
|
|
2782
2782
|
return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && le(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
|
|
2783
|
-
element: /* @__PURE__ */
|
|
2783
|
+
element: /* @__PURE__ */ S.createElement(e.Component),
|
|
2784
2784
|
Component: void 0
|
|
2785
2785
|
})), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && le(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
|
|
2786
|
-
hydrateFallbackElement: /* @__PURE__ */
|
|
2786
|
+
hydrateFallbackElement: /* @__PURE__ */ S.createElement(e.HydrateFallback),
|
|
2787
2787
|
HydrateFallback: void 0
|
|
2788
2788
|
})), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && le(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
|
|
2789
|
-
errorElement: /* @__PURE__ */
|
|
2789
|
+
errorElement: /* @__PURE__ */ S.createElement(e.ErrorBoundary),
|
|
2790
2790
|
ErrorBoundary: void 0
|
|
2791
2791
|
})), t;
|
|
2792
2792
|
}
|
|
@@ -2821,25 +2821,25 @@ const Zt = "get", en = "application/x-www-form-urlencoded";
|
|
|
2821
2821
|
function hn(e) {
|
|
2822
2822
|
return e != null && typeof e.tagName == "string";
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function ei(e) {
|
|
2825
2825
|
return hn(e) && e.tagName.toLowerCase() === "button";
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function ti(e) {
|
|
2828
2828
|
return hn(e) && e.tagName.toLowerCase() === "form";
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function ni(e) {
|
|
2831
2831
|
return hn(e) && e.tagName.toLowerCase() === "input";
|
|
2832
2832
|
}
|
|
2833
|
-
function
|
|
2833
|
+
function ri(e) {
|
|
2834
2834
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function ai(e, t) {
|
|
2837
2837
|
return e.button === 0 && // Ignore everything but left clicks
|
|
2838
2838
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
2839
|
-
!
|
|
2839
|
+
!ri(e);
|
|
2840
2840
|
}
|
|
2841
2841
|
let Gt = null;
|
|
2842
|
-
function
|
|
2842
|
+
function oi() {
|
|
2843
2843
|
if (Gt === null)
|
|
2844
2844
|
try {
|
|
2845
2845
|
new FormData(
|
|
@@ -2852,30 +2852,30 @@ function li() {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
return Gt;
|
|
2854
2854
|
}
|
|
2855
|
-
const
|
|
2855
|
+
const ii = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
2856
2856
|
function Sn(e) {
|
|
2857
|
-
return e != null && !
|
|
2857
|
+
return e != null && !ii.has(e) ? (process.env.NODE_ENV !== "production" && le(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + en + '"')), null) : e;
|
|
2858
2858
|
}
|
|
2859
|
-
function
|
|
2859
|
+
function li(e, t) {
|
|
2860
2860
|
let n, r, a, l, o;
|
|
2861
|
-
if (
|
|
2861
|
+
if (ti(e)) {
|
|
2862
2862
|
let s = e.getAttribute("action");
|
|
2863
2863
|
r = s ? Ce(s, t) : null, n = e.getAttribute("method") || Zt, a = Sn(e.getAttribute("enctype")) || en, l = new FormData(e);
|
|
2864
|
-
} else if (
|
|
2864
|
+
} else if (ei(e) || ni(e) && (e.type === "submit" || e.type === "image")) {
|
|
2865
2865
|
let s = e.form;
|
|
2866
2866
|
if (s == null)
|
|
2867
2867
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
2868
2868
|
let c = e.getAttribute("formaction") || s.getAttribute("action");
|
|
2869
|
-
if (r = c ? Ce(c, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || Zt, a = Sn(e.getAttribute("formenctype")) || Sn(s.getAttribute("enctype")) || en, l = new FormData(s, e), !
|
|
2869
|
+
if (r = c ? Ce(c, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || Zt, a = Sn(e.getAttribute("formenctype")) || Sn(s.getAttribute("enctype")) || en, l = new FormData(s, e), !oi()) {
|
|
2870
2870
|
let {
|
|
2871
2871
|
name: p,
|
|
2872
2872
|
type: f,
|
|
2873
|
-
value:
|
|
2873
|
+
value: d
|
|
2874
2874
|
} = e;
|
|
2875
2875
|
if (f === "image") {
|
|
2876
2876
|
let m = p ? p + "." : "";
|
|
2877
2877
|
l.append(m + "x", "0"), l.append(m + "y", "0");
|
|
2878
|
-
} else p && l.append(p,
|
|
2878
|
+
} else p && l.append(p, d);
|
|
2879
2879
|
}
|
|
2880
2880
|
} else {
|
|
2881
2881
|
if (hn(e))
|
|
@@ -2890,36 +2890,36 @@ function ci(e, t) {
|
|
|
2890
2890
|
body: o
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
|
-
const
|
|
2893
|
+
const si = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], ci = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], ui = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], di = "6";
|
|
2894
2894
|
try {
|
|
2895
|
-
window.__reactRouterVersion =
|
|
2895
|
+
window.__reactRouterVersion = di;
|
|
2896
2896
|
} catch {
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2899
|
-
return
|
|
2898
|
+
function hi(e, t) {
|
|
2899
|
+
return vo({
|
|
2900
2900
|
basename: void 0,
|
|
2901
2901
|
future: We({}, void 0, {
|
|
2902
2902
|
v7_prependBasename: !0
|
|
2903
2903
|
}),
|
|
2904
|
-
history:
|
|
2904
|
+
history: Ha({
|
|
2905
2905
|
window: void 0
|
|
2906
2906
|
}),
|
|
2907
|
-
hydrationData:
|
|
2907
|
+
hydrationData: fi(),
|
|
2908
2908
|
routes: e,
|
|
2909
|
-
mapRouteProperties:
|
|
2909
|
+
mapRouteProperties: Zo,
|
|
2910
2910
|
unstable_dataStrategy: void 0,
|
|
2911
2911
|
unstable_patchRoutesOnNavigation: void 0,
|
|
2912
2912
|
window: void 0
|
|
2913
2913
|
}).initialize();
|
|
2914
2914
|
}
|
|
2915
|
-
function
|
|
2915
|
+
function fi() {
|
|
2916
2916
|
var e;
|
|
2917
2917
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
2918
2918
|
return t && t.errors && (t = We({}, t, {
|
|
2919
|
-
errors:
|
|
2919
|
+
errors: pi(t.errors)
|
|
2920
2920
|
})), t;
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function pi(e) {
|
|
2923
2923
|
if (!e) return null;
|
|
2924
2924
|
let t = Object.entries(e), n = {};
|
|
2925
2925
|
for (let [r, a] of t)
|
|
@@ -2943,20 +2943,20 @@ function gi(e) {
|
|
|
2943
2943
|
n[r] = a;
|
|
2944
2944
|
return n;
|
|
2945
2945
|
}
|
|
2946
|
-
const Un = /* @__PURE__ */
|
|
2946
|
+
const Un = /* @__PURE__ */ S.createContext({
|
|
2947
2947
|
isTransitioning: !1
|
|
2948
2948
|
});
|
|
2949
2949
|
process.env.NODE_ENV !== "production" && (Un.displayName = "ViewTransition");
|
|
2950
|
-
const Xr = /* @__PURE__ */
|
|
2950
|
+
const Xr = /* @__PURE__ */ S.createContext(/* @__PURE__ */ new Map());
|
|
2951
2951
|
process.env.NODE_ENV !== "production" && (Xr.displayName = "Fetchers");
|
|
2952
|
-
const
|
|
2953
|
-
function
|
|
2952
|
+
const mi = "startTransition", wr = S[mi], gi = "flushSync", Cr = Ua[gi];
|
|
2953
|
+
function vi(e) {
|
|
2954
2954
|
wr ? wr(e) : e();
|
|
2955
2955
|
}
|
|
2956
2956
|
function kt(e) {
|
|
2957
2957
|
Cr ? Cr(e) : e();
|
|
2958
2958
|
}
|
|
2959
|
-
class
|
|
2959
|
+
class bi {
|
|
2960
2960
|
constructor() {
|
|
2961
2961
|
this.status = "pending", this.promise = new Promise((t, n) => {
|
|
2962
2962
|
this.resolve = (r) => {
|
|
@@ -2967,18 +2967,18 @@ class Si {
|
|
|
2967
2967
|
});
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function yi(e) {
|
|
2971
2971
|
let {
|
|
2972
2972
|
fallbackElement: t,
|
|
2973
2973
|
router: n,
|
|
2974
2974
|
future: r
|
|
2975
|
-
} = e, [a, l] =
|
|
2975
|
+
} = e, [a, l] = S.useState(n.state), [o, s] = S.useState(), [c, p] = S.useState({
|
|
2976
2976
|
isTransitioning: !1
|
|
2977
|
-
}), [f,
|
|
2977
|
+
}), [f, d] = S.useState(), [m, b] = S.useState(), [C, w] = S.useState(), x = S.useRef(/* @__PURE__ */ new Map()), {
|
|
2978
2978
|
v7_startTransition: k
|
|
2979
|
-
} = r || {}, P =
|
|
2980
|
-
k ?
|
|
2981
|
-
}, [k]), A =
|
|
2979
|
+
} = r || {}, P = S.useCallback((g) => {
|
|
2980
|
+
k ? vi(g) : g();
|
|
2981
|
+
}, [k]), A = S.useCallback((g, _) => {
|
|
2982
2982
|
let {
|
|
2983
2983
|
deletedFetchers: D,
|
|
2984
2984
|
unstable_flushSync: R,
|
|
@@ -3006,14 +3006,14 @@ function wi(e) {
|
|
|
3006
3006
|
});
|
|
3007
3007
|
G.finished.finally(() => {
|
|
3008
3008
|
kt(() => {
|
|
3009
|
-
|
|
3009
|
+
d(void 0), b(void 0), s(void 0), p({
|
|
3010
3010
|
isTransitioning: !1
|
|
3011
3011
|
});
|
|
3012
3012
|
});
|
|
3013
3013
|
}), kt(() => b(G));
|
|
3014
3014
|
return;
|
|
3015
3015
|
}
|
|
3016
|
-
m ? (f && f.resolve(), m.skipTransition(),
|
|
3016
|
+
m ? (f && f.resolve(), m.skipTransition(), w({
|
|
3017
3017
|
state: g,
|
|
3018
3018
|
currentLocation: M.currentLocation,
|
|
3019
3019
|
nextLocation: M.nextLocation
|
|
@@ -3024,32 +3024,32 @@ function wi(e) {
|
|
|
3024
3024
|
nextLocation: M.nextLocation
|
|
3025
3025
|
}));
|
|
3026
3026
|
}, [n.window, m, f, x, P]);
|
|
3027
|
-
|
|
3028
|
-
c.isTransitioning && !c.flushSync &&
|
|
3029
|
-
}, [c]),
|
|
3027
|
+
S.useLayoutEffect(() => n.subscribe(A), [n, A]), S.useEffect(() => {
|
|
3028
|
+
c.isTransitioning && !c.flushSync && d(new bi());
|
|
3029
|
+
}, [c]), S.useEffect(() => {
|
|
3030
3030
|
if (f && o && n.window) {
|
|
3031
3031
|
let g = o, _ = f.promise, D = n.window.document.startViewTransition(async () => {
|
|
3032
3032
|
P(() => l(g)), await _;
|
|
3033
3033
|
});
|
|
3034
3034
|
D.finished.finally(() => {
|
|
3035
|
-
|
|
3035
|
+
d(void 0), b(void 0), s(void 0), p({
|
|
3036
3036
|
isTransitioning: !1
|
|
3037
3037
|
});
|
|
3038
3038
|
}), b(D);
|
|
3039
3039
|
}
|
|
3040
|
-
}, [P, o, f, n.window]),
|
|
3040
|
+
}, [P, o, f, n.window]), S.useEffect(() => {
|
|
3041
3041
|
f && o && a.location.key === o.location.key && f.resolve();
|
|
3042
|
-
}, [f, m, a.location, o]),
|
|
3042
|
+
}, [f, m, a.location, o]), S.useEffect(() => {
|
|
3043
3043
|
!c.isTransitioning && C && (s(C.state), p({
|
|
3044
3044
|
isTransitioning: !0,
|
|
3045
3045
|
flushSync: !1,
|
|
3046
3046
|
currentLocation: C.currentLocation,
|
|
3047
3047
|
nextLocation: C.nextLocation
|
|
3048
|
-
}),
|
|
3049
|
-
}, [c.isTransitioning, C]),
|
|
3048
|
+
}), w(void 0));
|
|
3049
|
+
}, [c.isTransitioning, C]), S.useEffect(() => {
|
|
3050
3050
|
process.env.NODE_ENV !== "production" && le(t == null || !n.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
|
|
3051
3051
|
}, []);
|
|
3052
|
-
let E =
|
|
3052
|
+
let E = S.useMemo(() => ({
|
|
3053
3053
|
createHref: n.createHref,
|
|
3054
3054
|
encodeLocation: n.encodeLocation,
|
|
3055
3055
|
go: (g) => n.navigate(g),
|
|
@@ -3062,45 +3062,45 @@ function wi(e) {
|
|
|
3062
3062
|
state: _,
|
|
3063
3063
|
preventScrollReset: D == null ? void 0 : D.preventScrollReset
|
|
3064
3064
|
})
|
|
3065
|
-
}), [n]), V = n.basename || "/", I =
|
|
3065
|
+
}), [n]), V = n.basename || "/", I = S.useMemo(() => ({
|
|
3066
3066
|
router: n,
|
|
3067
3067
|
navigator: E,
|
|
3068
3068
|
static: !1,
|
|
3069
3069
|
basename: V
|
|
3070
|
-
}), [n, E, V]), q =
|
|
3070
|
+
}), [n, E, V]), q = S.useMemo(() => ({
|
|
3071
3071
|
v7_relativeSplatPath: n.future.v7_relativeSplatPath
|
|
3072
3072
|
}), [n.future.v7_relativeSplatPath]);
|
|
3073
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(gt.Provider, {
|
|
3074
3074
|
value: I
|
|
3075
|
-
}, /* @__PURE__ */
|
|
3075
|
+
}, /* @__PURE__ */ S.createElement(un.Provider, {
|
|
3076
3076
|
value: a
|
|
3077
|
-
}, /* @__PURE__ */
|
|
3077
|
+
}, /* @__PURE__ */ S.createElement(Xr.Provider, {
|
|
3078
3078
|
value: x.current
|
|
3079
|
-
}, /* @__PURE__ */
|
|
3079
|
+
}, /* @__PURE__ */ S.createElement(Un.Provider, {
|
|
3080
3080
|
value: c
|
|
3081
|
-
}, /* @__PURE__ */
|
|
3081
|
+
}, /* @__PURE__ */ S.createElement(Qo, {
|
|
3082
3082
|
basename: V,
|
|
3083
3083
|
location: a.location,
|
|
3084
3084
|
navigationType: a.historyAction,
|
|
3085
3085
|
navigator: E,
|
|
3086
3086
|
future: q
|
|
3087
|
-
}, a.initialized || n.future.v7_partialHydration ? /* @__PURE__ */
|
|
3087
|
+
}, a.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ S.createElement(Si, {
|
|
3088
3088
|
routes: n.routes,
|
|
3089
3089
|
future: n.future,
|
|
3090
3090
|
state: a
|
|
3091
3091
|
}) : t))))), null);
|
|
3092
3092
|
}
|
|
3093
|
-
const
|
|
3094
|
-
function
|
|
3093
|
+
const Si = /* @__PURE__ */ S.memo(wi);
|
|
3094
|
+
function wi(e) {
|
|
3095
3095
|
let {
|
|
3096
3096
|
routes: t,
|
|
3097
3097
|
future: n,
|
|
3098
3098
|
state: r
|
|
3099
3099
|
} = e;
|
|
3100
|
-
return
|
|
3100
|
+
return Ho(t, void 0, r, n);
|
|
3101
3101
|
}
|
|
3102
3102
|
process.env.NODE_ENV;
|
|
3103
|
-
const
|
|
3103
|
+
const Ci = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", xi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Jr = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
3104
3104
|
let {
|
|
3105
3105
|
onClick: r,
|
|
3106
3106
|
relative: a,
|
|
@@ -3110,42 +3110,42 @@ const _i = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3110
3110
|
target: c,
|
|
3111
3111
|
to: p,
|
|
3112
3112
|
preventScrollReset: f,
|
|
3113
|
-
unstable_viewTransition:
|
|
3114
|
-
} = t, m = On(t,
|
|
3113
|
+
unstable_viewTransition: d
|
|
3114
|
+
} = t, m = On(t, si), {
|
|
3115
3115
|
basename: b
|
|
3116
|
-
} =
|
|
3117
|
-
if (typeof p == "string" &&
|
|
3116
|
+
} = S.useContext(xe), C, w = !1;
|
|
3117
|
+
if (typeof p == "string" && xi.test(p) && (C = p, Ci))
|
|
3118
3118
|
try {
|
|
3119
3119
|
let A = new URL(window.location.href), E = p.startsWith("//") ? new URL(A.protocol + p) : new URL(p), V = Ce(E.pathname, b);
|
|
3120
|
-
E.origin === A.origin && V != null ? p = V + E.search + E.hash :
|
|
3120
|
+
E.origin === A.origin && V != null ? p = V + E.search + E.hash : w = !0;
|
|
3121
3121
|
} catch {
|
|
3122
3122
|
process.env.NODE_ENV !== "production" && le(!1, '<Link to="' + p + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
3123
3123
|
}
|
|
3124
|
-
let x =
|
|
3124
|
+
let x = Oo(p, {
|
|
3125
3125
|
relative: a
|
|
3126
|
-
}), k =
|
|
3126
|
+
}), k = Pi(p, {
|
|
3127
3127
|
replace: o,
|
|
3128
3128
|
state: s,
|
|
3129
3129
|
target: c,
|
|
3130
3130
|
preventScrollReset: f,
|
|
3131
3131
|
relative: a,
|
|
3132
|
-
unstable_viewTransition:
|
|
3132
|
+
unstable_viewTransition: d
|
|
3133
3133
|
});
|
|
3134
3134
|
function P(A) {
|
|
3135
3135
|
r && r(A), A.defaultPrevented || k(A);
|
|
3136
3136
|
}
|
|
3137
3137
|
return (
|
|
3138
3138
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
3139
|
-
/* @__PURE__ */
|
|
3139
|
+
/* @__PURE__ */ S.createElement("a", We({}, m, {
|
|
3140
3140
|
href: C || x,
|
|
3141
|
-
onClick:
|
|
3141
|
+
onClick: w || l ? r : P,
|
|
3142
3142
|
ref: n,
|
|
3143
3143
|
target: c
|
|
3144
3144
|
}))
|
|
3145
3145
|
);
|
|
3146
3146
|
});
|
|
3147
3147
|
process.env.NODE_ENV !== "production" && (Jr.displayName = "Link");
|
|
3148
|
-
const
|
|
3148
|
+
const _i = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
3149
3149
|
let {
|
|
3150
3150
|
"aria-current": r = "page",
|
|
3151
3151
|
caseSensitive: a = !1,
|
|
@@ -3155,14 +3155,14 @@ const ji = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3155
3155
|
to: c,
|
|
3156
3156
|
unstable_viewTransition: p,
|
|
3157
3157
|
children: f
|
|
3158
|
-
} = t,
|
|
3159
|
-
relative:
|
|
3160
|
-
}), b = vt(), C =
|
|
3161
|
-
navigator:
|
|
3158
|
+
} = t, d = On(t, ci), m = Bt(c, {
|
|
3159
|
+
relative: d.relative
|
|
3160
|
+
}), b = vt(), C = S.useContext(un), {
|
|
3161
|
+
navigator: w,
|
|
3162
3162
|
basename: x
|
|
3163
|
-
} =
|
|
3163
|
+
} = S.useContext(xe), k = C != null && // Conditional usage is OK here because the usage of a data router is static
|
|
3164
3164
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3165
|
-
|
|
3165
|
+
Ti(m) && p === !0, P = w.encodeLocation ? w.encodeLocation(m).pathname : m.pathname, A = b.pathname, E = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
|
|
3166
3166
|
a || (A = A.toLowerCase(), E = E ? E.toLowerCase() : null, P = P.toLowerCase()), E && x && (E = Ce(E, x) || E);
|
|
3167
3167
|
const V = P !== "/" && P.endsWith("/") ? P.length - 1 : P.length;
|
|
3168
3168
|
let I = A === P || !o && A.startsWith(P) && A.charAt(V) === "/", q = E != null && (E === P || !o && E.startsWith(P) && E.charAt(P.length) === "/"), g = {
|
|
@@ -3172,7 +3172,7 @@ const ji = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3172
3172
|
}, _ = I ? r : void 0, D;
|
|
3173
3173
|
typeof l == "function" ? D = l(g) : D = [l, I ? "active" : null, q ? "pending" : null, k ? "transitioning" : null].filter(Boolean).join(" ");
|
|
3174
3174
|
let R = typeof s == "function" ? s(g) : s;
|
|
3175
|
-
return /* @__PURE__ */
|
|
3175
|
+
return /* @__PURE__ */ S.createElement(Jr, We({}, d, {
|
|
3176
3176
|
"aria-current": _,
|
|
3177
3177
|
className: D,
|
|
3178
3178
|
ref: n,
|
|
@@ -3181,8 +3181,8 @@ const ji = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
3181
3181
|
unstable_viewTransition: p
|
|
3182
3182
|
}), typeof f == "function" ? f(g) : f);
|
|
3183
3183
|
});
|
|
3184
|
-
process.env.NODE_ENV !== "production" && (
|
|
3185
|
-
const
|
|
3184
|
+
process.env.NODE_ENV !== "production" && (_i.displayName = "NavLink");
|
|
3185
|
+
const ki = /* @__PURE__ */ S.forwardRef((e, t) => {
|
|
3186
3186
|
let {
|
|
3187
3187
|
fetcherKey: n,
|
|
3188
3188
|
navigate: r,
|
|
@@ -3193,9 +3193,9 @@ const Pi = /* @__PURE__ */ w.forwardRef((e, t) => {
|
|
|
3193
3193
|
action: c,
|
|
3194
3194
|
onSubmit: p,
|
|
3195
3195
|
relative: f,
|
|
3196
|
-
preventScrollReset:
|
|
3196
|
+
preventScrollReset: d,
|
|
3197
3197
|
unstable_viewTransition: m
|
|
3198
|
-
} = e, b = On(e,
|
|
3198
|
+
} = e, b = On(e, ui), C = Di(), w = Ri(c, {
|
|
3199
3199
|
relative: f
|
|
3200
3200
|
}), x = s.toLowerCase() === "get" ? "get" : "post", k = (P) => {
|
|
3201
3201
|
if (p && p(P), P.defaultPrevented) return;
|
|
@@ -3208,18 +3208,18 @@ const Pi = /* @__PURE__ */ w.forwardRef((e, t) => {
|
|
|
3208
3208
|
replace: l,
|
|
3209
3209
|
state: o,
|
|
3210
3210
|
relative: f,
|
|
3211
|
-
preventScrollReset:
|
|
3211
|
+
preventScrollReset: d,
|
|
3212
3212
|
unstable_viewTransition: m
|
|
3213
3213
|
});
|
|
3214
3214
|
};
|
|
3215
|
-
return /* @__PURE__ */
|
|
3215
|
+
return /* @__PURE__ */ S.createElement("form", We({
|
|
3216
3216
|
ref: t,
|
|
3217
3217
|
method: x,
|
|
3218
|
-
action:
|
|
3218
|
+
action: w,
|
|
3219
3219
|
onSubmit: a ? p : k
|
|
3220
3220
|
}, b));
|
|
3221
3221
|
});
|
|
3222
|
-
process.env.NODE_ENV !== "production" && (
|
|
3222
|
+
process.env.NODE_ENV !== "production" && (ki.displayName = "Form");
|
|
3223
3223
|
process.env.NODE_ENV;
|
|
3224
3224
|
var on;
|
|
3225
3225
|
(function(e) {
|
|
@@ -3229,14 +3229,14 @@ var xr;
|
|
|
3229
3229
|
(function(e) {
|
|
3230
3230
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
3231
3231
|
})(xr || (xr = {}));
|
|
3232
|
-
function
|
|
3232
|
+
function ji(e) {
|
|
3233
3233
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
3234
3234
|
}
|
|
3235
3235
|
function Qr(e) {
|
|
3236
|
-
let t =
|
|
3237
|
-
return t || (process.env.NODE_ENV !== "production" ? T(!1,
|
|
3236
|
+
let t = S.useContext(gt);
|
|
3237
|
+
return t || (process.env.NODE_ENV !== "production" ? T(!1, ji(e)) : T(!1)), t;
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3239
|
+
function Pi(e, t) {
|
|
3240
3240
|
let {
|
|
3241
3241
|
target: n,
|
|
3242
3242
|
replace: r,
|
|
@@ -3247,9 +3247,9 @@ function Ei(e, t) {
|
|
|
3247
3247
|
} = t === void 0 ? {} : t, c = qr(), p = vt(), f = Bt(e, {
|
|
3248
3248
|
relative: o
|
|
3249
3249
|
});
|
|
3250
|
-
return
|
|
3251
|
-
if (
|
|
3252
|
-
|
|
3250
|
+
return S.useCallback((d) => {
|
|
3251
|
+
if (ai(d, n)) {
|
|
3252
|
+
d.preventDefault();
|
|
3253
3253
|
let m = r !== void 0 ? r : Ve(p) === Ve(f);
|
|
3254
3254
|
c(e, {
|
|
3255
3255
|
replace: m,
|
|
@@ -3261,28 +3261,28 @@ function Ei(e, t) {
|
|
|
3261
3261
|
}
|
|
3262
3262
|
}, [p, c, f, r, a, n, e, l, o, s]);
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3264
|
+
function Li() {
|
|
3265
3265
|
if (typeof document > "u")
|
|
3266
3266
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
3267
3267
|
}
|
|
3268
|
-
let
|
|
3269
|
-
function
|
|
3268
|
+
let Ei = 0, Ni = () => "__" + String(++Ei) + "__";
|
|
3269
|
+
function Di() {
|
|
3270
3270
|
let {
|
|
3271
3271
|
router: e
|
|
3272
3272
|
} = Qr(on.UseSubmit), {
|
|
3273
3273
|
basename: t
|
|
3274
|
-
} =
|
|
3275
|
-
return
|
|
3276
|
-
a === void 0 && (a = {}),
|
|
3274
|
+
} = S.useContext(xe), n = Yo();
|
|
3275
|
+
return S.useCallback(function(r, a) {
|
|
3276
|
+
a === void 0 && (a = {}), Li();
|
|
3277
3277
|
let {
|
|
3278
3278
|
action: l,
|
|
3279
3279
|
method: o,
|
|
3280
3280
|
encType: s,
|
|
3281
3281
|
formData: c,
|
|
3282
3282
|
body: p
|
|
3283
|
-
} =
|
|
3283
|
+
} = li(r, t);
|
|
3284
3284
|
if (a.navigate === !1) {
|
|
3285
|
-
let f = a.fetcherKey ||
|
|
3285
|
+
let f = a.fetcherKey || Ni();
|
|
3286
3286
|
e.fetch(f, n, a.action || l, {
|
|
3287
3287
|
preventScrollReset: a.preventScrollReset,
|
|
3288
3288
|
formData: c,
|
|
@@ -3306,12 +3306,12 @@ function Ti() {
|
|
|
3306
3306
|
});
|
|
3307
3307
|
}, [e, t, n]);
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function Ri(e, t) {
|
|
3310
3310
|
let {
|
|
3311
3311
|
relative: n
|
|
3312
3312
|
} = t === void 0 ? {} : t, {
|
|
3313
3313
|
basename: r
|
|
3314
|
-
} =
|
|
3314
|
+
} = S.useContext(xe), a = S.useContext(Ue);
|
|
3315
3315
|
a || (process.env.NODE_ENV !== "production" ? T(!1, "useFormAction must be used inside a RouteContext") : T(!1));
|
|
3316
3316
|
let [l] = a.matches.slice(-1), o = We({}, Bt(e || ".", {
|
|
3317
3317
|
relative: n
|
|
@@ -3323,9 +3323,9 @@ function Ai(e, t) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
return (!e || e === ".") && l.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : Ee([r, o.pathname])), Ve(o);
|
|
3325
3325
|
}
|
|
3326
|
-
function
|
|
3326
|
+
function Ti(e, t) {
|
|
3327
3327
|
t === void 0 && (t = {});
|
|
3328
|
-
let n =
|
|
3328
|
+
let n = S.useContext(Un);
|
|
3329
3329
|
n == null && (process.env.NODE_ENV !== "production" ? T(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : T(!1));
|
|
3330
3330
|
let {
|
|
3331
3331
|
basename: r
|
|
@@ -3337,7 +3337,7 @@ function Bi(e, t) {
|
|
|
3337
3337
|
let l = Ce(n.currentLocation.pathname, r) || n.currentLocation.pathname, o = Ce(n.nextLocation.pathname, r) || n.nextLocation.pathname;
|
|
3338
3338
|
return nn(a.pathname, o) != null || nn(a.pathname, l) != null;
|
|
3339
3339
|
}
|
|
3340
|
-
const we = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "",
|
|
3340
|
+
const we = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "", Ai = [
|
|
3341
3341
|
{
|
|
3342
3342
|
icon: "Desktop",
|
|
3343
3343
|
value: "desktop"
|
|
@@ -3350,7 +3350,7 @@ const we = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toU
|
|
|
3350
3350
|
icon: "DeviceMobileCamera",
|
|
3351
3351
|
value: "mobile"
|
|
3352
3352
|
}
|
|
3353
|
-
],
|
|
3353
|
+
], Bi = [
|
|
3354
3354
|
{
|
|
3355
3355
|
icon: "PaintBrushBroad",
|
|
3356
3356
|
name: "Colors"
|
|
@@ -3450,15 +3450,15 @@ const we = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toU
|
|
|
3450
3450
|
},
|
|
3451
3451
|
visibility: "public"
|
|
3452
3452
|
}
|
|
3453
|
-
}, Yu = ["Acorn", "Activity", "AddressBook", "AddressBookTabs", "AirTrafficControl", "Airplane", "AirplaneInFlight", "AirplaneLanding", "AirplaneTakeoff", "AirplaneTaxiing", "AirplaneTilt", "Airplay", "Alarm", "Alien", "AlignBottom", "AlignBottomSimple", "AlignCenterHorizontal", "AlignCenterHorizontalSimple", "AlignCenterVertical", "AlignCenterVerticalSimple", "AlignLeft", "AlignLeftSimple", "AlignRight", "AlignRightSimple", "AlignTop", "AlignTopSimple", "AmazonLogo", "Ambulance", "Anchor", "AnchorSimple", "AndroidLogo", "Angle", "AngularLogo", "Aperture", "AppStoreLogo", "AppWindow", "AppleLogo", "ApplePodcastsLogo", "ApproximateEquals", "Archive", "ArchiveBox", "ArchiveTray", "Armchair", "ArrowArcLeft", "ArrowArcRight", "ArrowBendDoubleUpLeft", "ArrowBendDoubleUpRight", "ArrowBendDownLeft", "ArrowBendDownRight", "ArrowBendLeftDown", "ArrowBendLeftUp", "ArrowBendRightDown", "ArrowBendRightUp", "ArrowBendUpLeft", "ArrowBendUpRight", "ArrowCircleDown", "ArrowCircleDownLeft", "ArrowCircleDownRight", "ArrowCircleLeft", "ArrowCircleRight", "ArrowCircleUp", "ArrowCircleUpLeft", "ArrowCircleUpRight", "ArrowClockwise", "ArrowCounterClockwise", "ArrowDown", "ArrowDownLeft", "ArrowDownRight", "ArrowElbowDownLeft", "ArrowElbowDownRight", "ArrowElbowLeft", "ArrowElbowLeftDown", "ArrowElbowLeftUp", "ArrowElbowRight", "ArrowElbowRightDown", "ArrowElbowRightUp", "ArrowElbowUpLeft", "ArrowElbowUpRight", "ArrowFatDown", "ArrowFatLeft", "ArrowFatLineDown", "ArrowFatLineLeft", "ArrowFatLineRight", "ArrowFatLineUp", "ArrowFatLinesDown", "ArrowFatLinesLeft", "ArrowFatLinesRight", "ArrowFatLinesUp", "ArrowFatRight", "ArrowFatUp", "ArrowLeft", "ArrowLineDown", "ArrowLineDownLeft", "ArrowLineDownRight", "ArrowLineLeft", "ArrowLineRight", "ArrowLineUp", "ArrowLineUpLeft", "ArrowLineUpRight", "ArrowRight", "ArrowSquareDown", "ArrowSquareDownLeft", "ArrowSquareDownRight", "ArrowSquareIn", "ArrowSquareLeft", "ArrowSquareOut", "ArrowSquareRight", "ArrowSquareUp", "ArrowSquareUpLeft", "ArrowSquareUpRight", "ArrowUDownLeft", "ArrowUDownRight", "ArrowULeftDown", "ArrowULeftUp", "ArrowURightDown", "ArrowURightUp", "ArrowUUpLeft", "ArrowUUpRight", "ArrowUp", "ArrowUpLeft", "ArrowUpRight", "ArrowsClockwise", "ArrowsCounterClockwise", "ArrowsDownUp", "ArrowsHorizontal", "ArrowsIn", "ArrowsInCardinal", "ArrowsInLineHorizontal", "ArrowsInLineVertical", "ArrowsInSimple", "ArrowsLeftRight", "ArrowsMerge", "ArrowsOut", "ArrowsOutCardinal", "ArrowsOutLineHorizontal", "ArrowsOutLineVertical", "ArrowsOutSimple", "ArrowsSplit", "ArrowsVertical", "Article", "ArticleMedium", "ArticleNyTimes", "Asclepius", "Asterisk", "AsteriskSimple", "At", "Atom", "Avocado", "Axe", "Baby", "BabyCarriage", "Backpack", "Backspace", "Bag", "BagSimple", "Balloon", "Bandaids", "Bank", "Barbell", "Barcode", "Barn", "Barricade", "Baseball", "BaseballCap", "BaseballHelmet", "Basket", "Basketball", "Bathtub", "BatteryCharging", "BatteryChargingVertical", "BatteryEmpty", "BatteryFull", "BatteryHigh", "BatteryLow", "BatteryMedium", "BatteryPlus", "BatteryPlusVertical", "BatteryVerticalEmpty", "BatteryVerticalFull", "BatteryVerticalHigh", "BatteryVerticalLow", "BatteryVerticalMedium", "BatteryWarning", "BatteryWarningVertical", "BeachBall", "Beanie", "Bed", "BeerBottle", "BeerStein", "BehanceLogo", "Bell", "BellRinging", "BellSimple", "BellSimpleRinging", "BellSimpleSlash", "BellSimpleZ", "BellSlash", "BellZ", "Belt", "BezierCurve", "Bicycle", "Binary", "Binoculars", "Biohazard", "Bird", "Blueprint", "Bluetooth", "BluetoothConnected", "BluetoothSlash", "BluetoothX", "Boat", "Bomb", "Bone", "Book", "BookBookmark", "BookOpen", "BookOpenText", "BookOpenUser", "Bookmark", "BookmarkSimple", "Bookmarks", "BookmarksSimple", "Books", "Boot", "Boules", "BoundingBox", "BowlFood", "BowlSteam", "BowlingBall", "BoxArrowDown", "BoxArrowUp", "BoxingGlove", "BracketsAngle", "BracketsCurly", "BracketsRound", "BracketsSquare", "Brain", "Brandy", "Bread", "Bridge", "Briefcase", "BriefcaseMetal", "Broadcast", "Broom", "Browser", "Browsers", "Bug", "BugBeetle", "BugDroid", "Building", "BuildingApartment", "BuildingOffice", "Buildings", "Bulldozer", "Bus", "Butterfly", "CableCar", "Cactus", "Caduceus", "Cake", "Calculator", "Calendar", "CalendarBlank", "CalendarCheck", "CalendarDot", "CalendarDots", "CalendarHeart", "CalendarMinus", "CalendarPlus", "CalendarSlash", "CalendarStar", "CalendarX", "CallBell", "Camera", "CameraPlus", "CameraRotate", "CameraSlash", "Campfire", "Car", "CarBattery", "CarProfile", "CarSimple", "Cardholder", "Cards", "CardsThree", "CaretCircleDoubleDown", "CaretCircleDoubleLeft", "CaretCircleDoubleRight", "CaretCircleDoubleUp", "CaretCircleDown", "CaretCircleLeft", "CaretCircleRight", "CaretCircleUp", "CaretCircleUpDown", "CaretDoubleDown", "CaretDoubleLeft", "CaretDoubleRight", "CaretDoubleUp", "CaretDown", "CaretLeft", "CaretLineDown", "CaretLineLeft", "CaretLineRight", "CaretLineUp", "CaretRight", "CaretUp", "CaretUpDown", "Carrot", "CashRegister", "CassetteTape", "CastleTurret", "Cat", "CellSignalFull", "CellSignalHigh", "CellSignalLow", "CellSignalMedium", "CellSignalNone", "CellSignalSlash", "CellSignalX", "CellTower", "Certificate", "Chair", "Chalkboard", "ChalkboardSimple", "ChalkboardTeacher", "Champagne", "ChargingStation", "ChartBar", "ChartBarHorizontal", "ChartDonut", "ChartLine", "ChartLineDown", "ChartLineUp", "ChartPie", "ChartPieSlice", "ChartPolar", "ChartScatter", "Chat", "ChatCentered", "ChatCenteredDots", "ChatCenteredSlash", "ChatCenteredText", "ChatCircle", "ChatCircleDots", "ChatCircleSlash", "ChatCircleText", "ChatDots", "ChatSlash", "ChatTeardrop", "ChatTeardropDots", "ChatTeardropSlash", "ChatTeardropText", "ChatText", "Chats", "ChatsCircle", "ChatsTeardrop", "Check", "CheckCircle", "CheckFat", "CheckSquare", "CheckSquareOffset", "Checkerboard", "Checks", "Cheers", "Cheese", "ChefHat", "Cherries", "Church", "Cigarette", "CigaretteSlash", "Circle", "CircleDashed", "CircleHalf", "CircleHalfTilt", "CircleNotch", "CircleWavy", "CircleWavyCheck", "CircleWavyQuestion", "CircleWavyWarning", "CirclesFour", "CirclesThree", "CirclesThreePlus", "Circuitry", "City", "Clipboard", "ClipboardText", "Clock", "ClockAfternoon", "ClockClockwise", "ClockCountdown", "ClockCounterClockwise", "ClockUser", "ClosedCaptioning", "Cloud", "CloudArrowDown", "CloudArrowUp", "CloudCheck", "CloudFog", "CloudLightning", "CloudMoon", "CloudRain", "CloudSlash", "CloudSnow", "CloudSun", "CloudWarning", "CloudX", "Clover", "Club", "CoatHanger", "CodaLogo", "Code", "CodeBlock", "CodeSimple", "CodepenLogo", "CodesandboxLogo", "Coffee", "CoffeeBean", "Coin", "CoinVertical", "Coins", "Columns", "ColumnsPlusLeft", "ColumnsPlusRight", "Command", "Compass", "CompassRose", "CompassTool", "ComputerTower", "Confetti", "ContactlessPayment", "Control", "Cookie", "CookingPot", "Copy", "CopySimple", "Copyleft", "Copyright", "CornersIn", "CornersOut", "Couch", "CourtBasketball", "Cow", "CowboyHat", "Cpu", "Crane", "CraneTower", "CreditCard", "Cricket", "Crop", "Cross", "Crosshair", "CrosshairSimple", "Crown", "CrownCross", "CrownSimple", "Cube", "CubeFocus", "CubeTransparent", "CurrencyBtc", "CurrencyCircleDollar", "CurrencyCny", "CurrencyDollar", "CurrencyDollarSimple", "CurrencyEth", "CurrencyEur", "CurrencyGbp", "CurrencyInr", "CurrencyJpy", "CurrencyKrw", "CurrencyKzt", "CurrencyNgn", "CurrencyRub", "Cursor", "CursorClick", "CursorText", "Cylinder", "Database", "Desk", "Desktop", "DesktopTower", "Detective", "DevToLogo", "DeviceMobile", "DeviceMobileCamera", "DeviceMobileSlash", "DeviceMobileSpeaker", "DeviceRotate", "DeviceTablet", "DeviceTabletCamera", "DeviceTabletSpeaker", "Devices", "Diamond", "DiamondsFour", "DiceFive", "DiceFour", "DiceOne", "DiceSix", "DiceThree", "DiceTwo", "Disc", "DiscoBall", "DiscordLogo", "Divide", "Dna", "Dog", "Door", "DoorOpen", "Dot", "DotOutline", "DotsNine", "DotsSix", "DotsSixVertical", "DotsThree", "DotsThreeCircle", "DotsThreeCircleVertical", "DotsThreeOutline", "DotsThreeOutlineVertical", "DotsThreeVertical", "Download", "DownloadSimple", "Dress", "Dresser", "DribbbleLogo", "Drone", "Drop", "DropHalf", "DropHalfBottom", "DropSimple", "DropSlash", "DropboxLogo", "Ear", "EarSlash", "Egg", "EggCrack", "Eject", "EjectSimple", "Elevator", "Empty", "Engine", "Envelope", "EnvelopeOpen", "EnvelopeSimple", "EnvelopeSimpleOpen", "Equalizer", "Equals", "Eraser", "EscalatorDown", "EscalatorUp", "Exam", "ExclamationMark", "Exclude", "ExcludeSquare", "Export", "Eye", "EyeClosed", "EyeSlash", "Eyedropper", "EyedropperSample", "Eyeglasses", "Eyes", "FaceMask", "FacebookLogo", "Factory", "Faders", "FadersHorizontal", "FalloutShelter", "Fan", "Farm", "FastForward", "FastForwardCircle", "Feather", "FediverseLogo", "FigmaLogo", "File", "FileArchive", "FileArrowDown", "FileArrowUp", "FileAudio", "FileC", "FileCSharp", "FileCloud", "FileCode", "FileCpp", "FileCss", "FileCsv", "FileDashed", "FileDoc", "FileDotted", "FileHtml", "FileImage", "FileIni", "FileJpg", "FileJs", "FileJsx", "FileLock", "FileMagnifyingGlass", "FileMd", "FileMinus", "FilePdf", "FilePlus", "FilePng", "FilePpt", "FilePy", "FileRs", "FileSearch", "FileSql", "FileSvg", "FileText", "FileTs", "FileTsx", "FileTxt", "FileVideo", "FileVue", "FileX", "FileXls", "FileZip", "Files", "FilmReel", "FilmScript", "FilmSlate", "FilmStrip", "Fingerprint", "FingerprintSimple", "FinnTheHuman", "Fire", "FireExtinguisher", "FireSimple", "FireTruck", "FirstAid", "FirstAidKit", "Fish", "FishSimple", "Flag", "FlagBanner", "FlagBannerFold", "FlagCheckered", "FlagPennant", "Flame", "Flashlight", "Flask", "FlipHorizontal", "FlipVertical", "FloppyDisk", "FloppyDiskBack", "FlowArrow", "Flower", "FlowerLotus", "FlowerTulip", "FlyingSaucer", "Folder", "FolderDashed", "FolderDotted", "FolderLock", "FolderMinus", "FolderNotch", "FolderNotchMinus", "FolderNotchOpen", "FolderNotchPlus", "FolderOpen", "FolderPlus", "FolderSimple", "FolderSimpleDashed", "FolderSimpleDotted", "FolderSimpleLock", "FolderSimpleMinus", "FolderSimplePlus", "FolderSimpleStar", "FolderSimpleUser", "FolderStar", "FolderUser", "Folders", "Football", "FootballHelmet", "Footprints", "ForkKnife", "FourK", "FrameCorners", "FramerLogo", "Function", "Funnel", "FunnelSimple", "FunnelSimpleX", "FunnelX", "GameController", "Garage", "GasCan", "GasPump", "Gauge", "Gavel", "Gear", "GearFine", "GearSix", "GenderFemale", "GenderIntersex", "GenderMale", "GenderNeuter", "GenderNonbinary", "GenderTransgender", "Ghost", "Gif", "Gift", "GitBranch", "GitCommit", "GitDiff", "GitFork", "GitMerge", "GitPullRequest", "GithubLogo", "GitlabLogo", "GitlabLogoSimple", "Globe", "GlobeHemisphereEast", "GlobeHemisphereWest", "GlobeSimple", "GlobeSimpleX", "GlobeStand", "GlobeX", "Goggles", "Golf", "GoodreadsLogo", "GoogleCardboardLogo", "GoogleChromeLogo", "GoogleDriveLogo", "GoogleLogo", "GooglePhotosLogo", "GooglePlayLogo", "GooglePodcastsLogo", "Gps", "GpsFix", "GpsSlash", "Gradient", "GraduationCap", "Grains", "GrainsSlash", "Graph", "GraphicsCard", "GreaterThan", "GreaterThanOrEqual", "GridFour", "GridNine", "Guitar", "HairDryer", "Hamburger", "Hammer", "Hand", "HandArrowDown", "HandArrowUp", "HandCoins", "HandDeposit", "HandEye", "HandFist", "HandGrabbing", "HandHeart", "HandPalm", "HandPeace", "HandPointing", "HandSoap", "HandSwipeLeft", "HandSwipeRight", "HandTap", "HandWaving", "HandWithdraw", "Handbag", "HandbagSimple", "HandsClapping", "HandsPraying", "Handshake", "HardDrive", "HardDrives", "HardHat", "Hash", "HashStraight", "HeadCircuit", "Headlights", "Headphones", "Headset", "Heart", "HeartBreak", "HeartHalf", "HeartStraight", "HeartStraightBreak", "Heartbeat", "Hexagon", "HighDefinition", "HighHeel", "Highlighter", "HighlighterCircle", "Hockey", "Hoodie", "Horse", "Hospital", "Hourglass", "HourglassHigh", "HourglassLow", "HourglassMedium", "HourglassSimple", "HourglassSimpleHigh", "HourglassSimpleLow", "HourglassSimpleMedium", "House", "HouseLine", "HouseSimple", "Hurricane", "IceCream", "IconBase", "IconContext", "IdentificationBadge", "IdentificationCard", "Image", "ImageBroken", "ImageSquare", "Images", "ImagesSquare", "Infinity", "Info", "InstagramLogo", "Intersect", "IntersectSquare", "IntersectThree", "Intersection", "Invoice", "Island", "Jar", "JarLabel", "Jeep", "Joystick", "Kanban", "Key", "KeyReturn", "Keyboard", "Keyhole", "Knife", "Ladder", "LadderSimple", "Lamp", "LampPendant", "Laptop", "Lasso", "LastfmLogo", "Layout", "Leaf", "Lectern", "Lego", "LegoSmiley", "Lemniscate", "LessThan", "LessThanOrEqual", "LetterCircleH", "LetterCircleP", "LetterCircleV", "Lifebuoy", "Lightbulb", "LightbulbFilament", "Lighthouse", "Lightning", "LightningA", "LightningSlash", "LineSegment", "LineSegments", "LineVertical", "Link", "LinkBreak", "LinkSimple", "LinkSimpleBreak", "LinkSimpleHorizontal", "LinkSimpleHorizontalBreak", "LinkedinLogo", "LinktreeLogo", "LinuxLogo", "List", "ListBullets", "ListChecks", "ListDashes", "ListHeart", "ListMagnifyingGlass", "ListNumbers", "ListPlus", "ListStar", "Lock", "LockKey", "LockKeyOpen", "LockLaminated", "LockLaminatedOpen", "LockOpen", "LockSimple", "LockSimpleOpen", "Lockers", "Log", "MagicWand", "Magnet", "MagnetStraight", "MagnifyingGlass", "MagnifyingGlassMinus", "MagnifyingGlassPlus", "Mailbox", "MapPin", "MapPinArea", "MapPinLine", "MapPinPlus", "MapPinSimple", "MapPinSimpleArea", "MapPinSimpleLine", "MapTrifold", "MarkdownLogo", "MarkerCircle", "Martini", "MaskHappy", "MaskSad", "MastodonLogo", "MathOperations", "MatrixLogo", "Medal", "MedalMilitary", "MediumLogo", "Megaphone", "MegaphoneSimple", "MemberOf", "Memory", "MessengerLogo", "MetaLogo", "Meteor", "Metronome", "Microphone", "MicrophoneSlash", "MicrophoneStage", "Microscope", "MicrosoftExcelLogo", "MicrosoftOutlookLogo", "MicrosoftPowerpointLogo", "MicrosoftTeamsLogo", "MicrosoftWordLogo", "Minus", "MinusCircle", "MinusSquare", "Money", "MoneyWavy", "Monitor", "MonitorArrowUp", "MonitorPlay", "Moon", "MoonStars", "Moped", "MopedFront", "Mosque", "Motorcycle", "Mountains", "Mouse", "MouseLeftClick", "MouseMiddleClick", "MouseRightClick", "MouseScroll", "MouseSimple", "MusicNote", "MusicNoteSimple", "MusicNotes", "MusicNotesMinus", "MusicNotesPlus", "MusicNotesSimple", "NavigationArrow", "Needle", "Network", "NetworkSlash", "NetworkX", "Newspaper", "NewspaperClipping", "NotEquals", "NotMemberOf", "NotSubsetOf", "NotSupersetOf", "Notches", "Note", "NoteBlank", "NotePencil", "Notebook", "Notepad", "Notification", "NotionLogo", "NuclearPlant", "NumberCircleEight", "NumberCircleFive", "NumberCircleFour", "NumberCircleNine", "NumberCircleOne", "NumberCircleSeven", "NumberCircleSix", "NumberCircleThree", "NumberCircleTwo", "NumberCircleZero", "NumberEight", "NumberFive", "NumberFour", "NumberNine", "NumberOne", "NumberSeven", "NumberSix", "NumberSquareEight", "NumberSquareFive", "NumberSquareFour", "NumberSquareNine", "NumberSquareOne", "NumberSquareSeven", "NumberSquareSix", "NumberSquareThree", "NumberSquareTwo", "NumberSquareZero", "NumberThree", "NumberTwo", "NumberZero", "Numpad", "Nut", "NyTimesLogo", "Octagon", "OfficeChair", "Onigiri", "OpenAiLogo", "Option", "Orange", "OrangeSlice", "Oven", "Package", "PaintBrush", "PaintBrushBroad", "PaintBrushHousehold", "PaintBucket", "PaintRoller", "Palette", "Panorama", "Pants", "PaperPlane", "PaperPlaneRight", "PaperPlaneTilt", "Paperclip", "PaperclipHorizontal", "Parachute", "Paragraph", "Parallelogram", "Park", "Password", "Path", "PatreonLogo", "Pause", "PauseCircle", "PawPrint", "PaypalLogo", "Peace", "Pen", "PenNib", "PenNibStraight", "Pencil", "PencilCircle", "PencilLine", "PencilRuler", "PencilSimple", "PencilSimpleLine", "PencilSimpleSlash", "PencilSlash", "Pentagon", "Pentagram", "Pepper", "Percent", "Person", "PersonArmsSpread", "PersonSimple", "PersonSimpleBike", "PersonSimpleCircle", "PersonSimpleHike", "PersonSimpleRun", "PersonSimpleSki", "PersonSimpleSnowboard", "PersonSimpleSwim", "PersonSimpleTaiChi", "PersonSimpleThrow", "PersonSimpleWalk", "Perspective", "Phone", "PhoneCall", "PhoneDisconnect", "PhoneIncoming", "PhoneList", "PhoneOutgoing", "PhonePause", "PhonePlus", "PhoneSlash", "PhoneTransfer", "PhoneX", "PhosphorLogo", "Pi", "PianoKeys", "PicnicTable", "PictureInPicture", "PiggyBank", "Pill", "PingPong", "PintGlass", "PinterestLogo", "Pinwheel", "Pipe", "PipeWrench", "PixLogo", "Pizza", "Placeholder", "Planet", "Plant", "Play", "PlayCircle", "PlayPause", "Playlist", "Plug", "PlugCharging", "Plugs", "PlugsConnected", "Plus", "PlusCircle", "PlusMinus", "PlusSquare", "PokerChip", "PoliceCar", "Polygon", "Popcorn", "Popsicle", "PottedPlant", "Power", "Prescription", "Presentation", "PresentationChart", "Printer", "Prohibit", "ProhibitInset", "ProjectorScreen", "ProjectorScreenChart", "Pulse", "PushPin", "PushPinSimple", "PushPinSimpleSlash", "PushPinSlash", "PuzzlePiece", "QrCode", "Question", "QuestionMark", "Queue", "Quotes", "Rabbit", "Racquet", "Radical", "Radio", "RadioButton", "Radioactive", "Rainbow", "RainbowCloud", "Ranking", "ReadCvLogo", "Receipt", "ReceiptX", "Record", "Rectangle", "RectangleDashed", "Recycle", "RedditLogo", "Repeat", "RepeatOnce", "ReplitLogo", "Resize", "Rewind", "RewindCircle", "RoadHorizon", "Robot", "Rocket", "RocketLaunch", "Rows", "RowsPlusBottom", "RowsPlusTop", "Rss", "RssSimple", "Rug", "Ruler", "SSR", "Sailboat", "Scales", "Scan", "ScanSmiley", "Scissors", "Scooter", "Screencast", "Screwdriver", "Scribble", "ScribbleLoop", "Scroll", "Seal", "SealCheck", "SealPercent", "SealQuestion", "SealWarning", "Seat", "Seatbelt", "SecurityCamera", "Selection", "SelectionAll", "SelectionBackground", "SelectionForeground", "SelectionInverse", "SelectionPlus", "SelectionSlash", "Shapes", "Share", "ShareFat", "ShareNetwork", "Shield", "ShieldCheck", "ShieldCheckered", "ShieldChevron", "ShieldPlus", "ShieldSlash", "ShieldStar", "ShieldWarning", "ShippingContainer", "ShirtFolded", "ShootingStar", "ShoppingBag", "ShoppingBagOpen", "ShoppingCart", "ShoppingCartSimple", "Shovel", "Shower", "Shrimp", "Shuffle", "ShuffleAngular", "ShuffleSimple", "Sidebar", "SidebarSimple", "Sigma", "SignIn", "SignOut", "Signature", "Signpost", "SimCard", "Siren", "SketchLogo", "SkipBack", "SkipBackCircle", "SkipForward", "SkipForwardCircle", "Skull", "SkypeLogo", "SlackLogo", "Sliders", "SlidersHorizontal", "Slideshow", "Smiley", "SmileyAngry", "SmileyBlank", "SmileyMeh", "SmileyMelting", "SmileyNervous", "SmileySad", "SmileySticker", "SmileyWink", "SmileyXEyes", "SnapchatLogo", "Sneaker", "SneakerMove", "Snowflake", "SoccerBall", "Sock", "SolarPanel", "SolarRoof", "SortAscending", "SortDescending", "SoundcloudLogo", "Spade", "Sparkle", "SpeakerHifi", "SpeakerHigh", "SpeakerLow", "SpeakerNone", "SpeakerSimpleHigh", "SpeakerSimpleLow", "SpeakerSimpleNone", "SpeakerSimpleSlash", "SpeakerSimpleX", "SpeakerSlash", "SpeakerX", "Speedometer", "Sphere", "Spinner", "SpinnerBall", "SpinnerGap", "Spiral", "SplitHorizontal", "SplitVertical", "SpotifyLogo", "SprayBottle", "Square", "SquareHalf", "SquareHalfBottom", "SquareLogo", "SquareSplitHorizontal", "SquareSplitVertical", "SquaresFour", "Stack", "StackMinus", "StackOverflowLogo", "StackPlus", "StackSimple", "Stairs", "Stamp", "StandardDefinition", "Star", "StarAndCrescent", "StarFour", "StarHalf", "StarOfDavid", "SteamLogo", "SteeringWheel", "Steps", "Stethoscope", "Sticker", "Stool", "Stop", "StopCircle", "Storefront", "Strategy", "StripeLogo", "Student", "SubsetOf", "SubsetProperOf", "Subtitles", "SubtitlesSlash", "Subtract", "SubtractSquare", "Subway", "Suitcase", "SuitcaseRolling", "SuitcaseSimple", "Sun", "SunDim", "SunHorizon", "Sunglasses", "SupersetOf", "SupersetProperOf", "Swap", "Swatches", "SwimmingPool", "Sword", "Synagogue", "Syringe", "TShirt", "Table", "Tabs", "Tag", "TagChevron", "TagSimple", "Target", "Taxi", "TeaBag", "TelegramLogo", "Television", "TelevisionSimple", "TennisBall", "Tent", "Terminal", "TerminalWindow", "TestTube", "TextAUnderline", "TextAa", "TextAlignCenter", "TextAlignJustify", "TextAlignLeft", "TextAlignRight", "TextB", "TextBolder", "TextColumns", "TextH", "TextHFive", "TextHFour", "TextHOne", "TextHSix", "TextHThree", "TextHTwo", "TextIndent", "TextItalic", "TextOutdent", "TextStrikethrough", "TextSubscript", "TextSuperscript", "TextT", "TextTSlash", "TextUnderline", "Textbox", "Thermometer", "ThermometerCold", "ThermometerHot", "ThermometerSimple", "ThreadsLogo", "ThreeD", "ThumbsDown", "ThumbsUp", "Ticket", "TidalLogo", "TiktokLogo", "Tilde", "Timer", "TipJar", "Tipi", "Tire", "ToggleLeft", "ToggleRight", "Toilet", "ToiletPaper", "Toolbox", "Tooth", "Tornado", "Tote", "ToteSimple", "Towel", "Tractor", "Trademark", "TrademarkRegistered", "TrafficCone", "TrafficSign", "TrafficSignal", "Train", "TrainRegional", "TrainSimple", "Tram", "Translate", "Trash", "TrashSimple", "Tray", "TrayArrowDown", "TrayArrowUp", "TreasureChest", "Tree", "TreeEvergreen", "TreePalm", "TreeStructure", "TreeView", "TrendDown", "TrendUp", "Triangle", "TriangleDashed", "Trolley", "TrolleySuitcase", "Trophy", "Truck", "TruckTrailer", "TumblrLogo", "TwitchLogo", "TwitterLogo", "Umbrella", "UmbrellaSimple", "Union", "Unite", "UniteSquare", "Upload", "UploadSimple", "Usb", "User", "UserCheck", "UserCircle", "UserCircleCheck", "UserCircleDashed", "UserCircleGear", "UserCircleMinus", "UserCirclePlus", "UserFocus", "UserGear", "UserList", "UserMinus", "UserPlus", "UserRectangle", "UserSound", "UserSquare", "UserSwitch", "Users", "UsersFour", "UsersThree", "Van", "Vault", "VectorThree", "VectorTwo", "Vibrate", "Video", "VideoCamera", "VideoCameraSlash", "VideoConference", "Vignette", "VinylRecord", "VirtualReality", "Virus", "Visor", "Voicemail", "Volleyball", "Wall", "Wallet", "Warehouse", "Warning", "WarningCircle", "WarningDiamond", "WarningOctagon", "WashingMachine", "Watch", "WaveSawtooth", "WaveSine", "WaveSquare", "WaveTriangle", "Waveform", "WaveformSlash", "Waves", "Webcam", "WebcamSlash", "WebhooksLogo", "WechatLogo", "WhatsappLogo", "Wheelchair", "WheelchairMotion", "WifiHigh", "WifiLow", "WifiMedium", "WifiNone", "WifiSlash", "WifiX", "Wind", "Windmill", "WindowsLogo", "Wine", "Wrench", "X", "XCircle", "XLogo", "XSquare", "Yarn", "YinYang", "YoutubeLogo"];
|
|
3454
|
-
function
|
|
3453
|
+
}, qu = ["Acorn", "Activity", "AddressBook", "AddressBookTabs", "AirTrafficControl", "Airplane", "AirplaneInFlight", "AirplaneLanding", "AirplaneTakeoff", "AirplaneTaxiing", "AirplaneTilt", "Airplay", "Alarm", "Alien", "AlignBottom", "AlignBottomSimple", "AlignCenterHorizontal", "AlignCenterHorizontalSimple", "AlignCenterVertical", "AlignCenterVerticalSimple", "AlignLeft", "AlignLeftSimple", "AlignRight", "AlignRightSimple", "AlignTop", "AlignTopSimple", "AmazonLogo", "Ambulance", "Anchor", "AnchorSimple", "AndroidLogo", "Angle", "AngularLogo", "Aperture", "AppStoreLogo", "AppWindow", "AppleLogo", "ApplePodcastsLogo", "ApproximateEquals", "Archive", "ArchiveBox", "ArchiveTray", "Armchair", "ArrowArcLeft", "ArrowArcRight", "ArrowBendDoubleUpLeft", "ArrowBendDoubleUpRight", "ArrowBendDownLeft", "ArrowBendDownRight", "ArrowBendLeftDown", "ArrowBendLeftUp", "ArrowBendRightDown", "ArrowBendRightUp", "ArrowBendUpLeft", "ArrowBendUpRight", "ArrowCircleDown", "ArrowCircleDownLeft", "ArrowCircleDownRight", "ArrowCircleLeft", "ArrowCircleRight", "ArrowCircleUp", "ArrowCircleUpLeft", "ArrowCircleUpRight", "ArrowClockwise", "ArrowCounterClockwise", "ArrowDown", "ArrowDownLeft", "ArrowDownRight", "ArrowElbowDownLeft", "ArrowElbowDownRight", "ArrowElbowLeft", "ArrowElbowLeftDown", "ArrowElbowLeftUp", "ArrowElbowRight", "ArrowElbowRightDown", "ArrowElbowRightUp", "ArrowElbowUpLeft", "ArrowElbowUpRight", "ArrowFatDown", "ArrowFatLeft", "ArrowFatLineDown", "ArrowFatLineLeft", "ArrowFatLineRight", "ArrowFatLineUp", "ArrowFatLinesDown", "ArrowFatLinesLeft", "ArrowFatLinesRight", "ArrowFatLinesUp", "ArrowFatRight", "ArrowFatUp", "ArrowLeft", "ArrowLineDown", "ArrowLineDownLeft", "ArrowLineDownRight", "ArrowLineLeft", "ArrowLineRight", "ArrowLineUp", "ArrowLineUpLeft", "ArrowLineUpRight", "ArrowRight", "ArrowSquareDown", "ArrowSquareDownLeft", "ArrowSquareDownRight", "ArrowSquareIn", "ArrowSquareLeft", "ArrowSquareOut", "ArrowSquareRight", "ArrowSquareUp", "ArrowSquareUpLeft", "ArrowSquareUpRight", "ArrowUDownLeft", "ArrowUDownRight", "ArrowULeftDown", "ArrowULeftUp", "ArrowURightDown", "ArrowURightUp", "ArrowUUpLeft", "ArrowUUpRight", "ArrowUp", "ArrowUpLeft", "ArrowUpRight", "ArrowsClockwise", "ArrowsCounterClockwise", "ArrowsDownUp", "ArrowsHorizontal", "ArrowsIn", "ArrowsInCardinal", "ArrowsInLineHorizontal", "ArrowsInLineVertical", "ArrowsInSimple", "ArrowsLeftRight", "ArrowsMerge", "ArrowsOut", "ArrowsOutCardinal", "ArrowsOutLineHorizontal", "ArrowsOutLineVertical", "ArrowsOutSimple", "ArrowsSplit", "ArrowsVertical", "Article", "ArticleMedium", "ArticleNyTimes", "Asclepius", "Asterisk", "AsteriskSimple", "At", "Atom", "Avocado", "Axe", "Baby", "BabyCarriage", "Backpack", "Backspace", "Bag", "BagSimple", "Balloon", "Bandaids", "Bank", "Barbell", "Barcode", "Barn", "Barricade", "Baseball", "BaseballCap", "BaseballHelmet", "Basket", "Basketball", "Bathtub", "BatteryCharging", "BatteryChargingVertical", "BatteryEmpty", "BatteryFull", "BatteryHigh", "BatteryLow", "BatteryMedium", "BatteryPlus", "BatteryPlusVertical", "BatteryVerticalEmpty", "BatteryVerticalFull", "BatteryVerticalHigh", "BatteryVerticalLow", "BatteryVerticalMedium", "BatteryWarning", "BatteryWarningVertical", "BeachBall", "Beanie", "Bed", "BeerBottle", "BeerStein", "BehanceLogo", "Bell", "BellRinging", "BellSimple", "BellSimpleRinging", "BellSimpleSlash", "BellSimpleZ", "BellSlash", "BellZ", "Belt", "BezierCurve", "Bicycle", "Binary", "Binoculars", "Biohazard", "Bird", "Blueprint", "Bluetooth", "BluetoothConnected", "BluetoothSlash", "BluetoothX", "Boat", "Bomb", "Bone", "Book", "BookBookmark", "BookOpen", "BookOpenText", "BookOpenUser", "Bookmark", "BookmarkSimple", "Bookmarks", "BookmarksSimple", "Books", "Boot", "Boules", "BoundingBox", "BowlFood", "BowlSteam", "BowlingBall", "BoxArrowDown", "BoxArrowUp", "BoxingGlove", "BracketsAngle", "BracketsCurly", "BracketsRound", "BracketsSquare", "Brain", "Brandy", "Bread", "Bridge", "Briefcase", "BriefcaseMetal", "Broadcast", "Broom", "Browser", "Browsers", "Bug", "BugBeetle", "BugDroid", "Building", "BuildingApartment", "BuildingOffice", "Buildings", "Bulldozer", "Bus", "Butterfly", "CableCar", "Cactus", "Caduceus", "Cake", "Calculator", "Calendar", "CalendarBlank", "CalendarCheck", "CalendarDot", "CalendarDots", "CalendarHeart", "CalendarMinus", "CalendarPlus", "CalendarSlash", "CalendarStar", "CalendarX", "CallBell", "Camera", "CameraPlus", "CameraRotate", "CameraSlash", "Campfire", "Car", "CarBattery", "CarProfile", "CarSimple", "Cardholder", "Cards", "CardsThree", "CaretCircleDoubleDown", "CaretCircleDoubleLeft", "CaretCircleDoubleRight", "CaretCircleDoubleUp", "CaretCircleDown", "CaretCircleLeft", "CaretCircleRight", "CaretCircleUp", "CaretCircleUpDown", "CaretDoubleDown", "CaretDoubleLeft", "CaretDoubleRight", "CaretDoubleUp", "CaretDown", "CaretLeft", "CaretLineDown", "CaretLineLeft", "CaretLineRight", "CaretLineUp", "CaretRight", "CaretUp", "CaretUpDown", "Carrot", "CashRegister", "CassetteTape", "CastleTurret", "Cat", "CellSignalFull", "CellSignalHigh", "CellSignalLow", "CellSignalMedium", "CellSignalNone", "CellSignalSlash", "CellSignalX", "CellTower", "Certificate", "Chair", "Chalkboard", "ChalkboardSimple", "ChalkboardTeacher", "Champagne", "ChargingStation", "ChartBar", "ChartBarHorizontal", "ChartDonut", "ChartLine", "ChartLineDown", "ChartLineUp", "ChartPie", "ChartPieSlice", "ChartPolar", "ChartScatter", "Chat", "ChatCentered", "ChatCenteredDots", "ChatCenteredSlash", "ChatCenteredText", "ChatCircle", "ChatCircleDots", "ChatCircleSlash", "ChatCircleText", "ChatDots", "ChatSlash", "ChatTeardrop", "ChatTeardropDots", "ChatTeardropSlash", "ChatTeardropText", "ChatText", "Chats", "ChatsCircle", "ChatsTeardrop", "Check", "CheckCircle", "CheckFat", "CheckSquare", "CheckSquareOffset", "Checkerboard", "Checks", "Cheers", "Cheese", "ChefHat", "Cherries", "Church", "Cigarette", "CigaretteSlash", "Circle", "CircleDashed", "CircleHalf", "CircleHalfTilt", "CircleNotch", "CircleWavy", "CircleWavyCheck", "CircleWavyQuestion", "CircleWavyWarning", "CirclesFour", "CirclesThree", "CirclesThreePlus", "Circuitry", "City", "Clipboard", "ClipboardText", "Clock", "ClockAfternoon", "ClockClockwise", "ClockCountdown", "ClockCounterClockwise", "ClockUser", "ClosedCaptioning", "Cloud", "CloudArrowDown", "CloudArrowUp", "CloudCheck", "CloudFog", "CloudLightning", "CloudMoon", "CloudRain", "CloudSlash", "CloudSnow", "CloudSun", "CloudWarning", "CloudX", "Clover", "Club", "CoatHanger", "CodaLogo", "Code", "CodeBlock", "CodeSimple", "CodepenLogo", "CodesandboxLogo", "Coffee", "CoffeeBean", "Coin", "CoinVertical", "Coins", "Columns", "ColumnsPlusLeft", "ColumnsPlusRight", "Command", "Compass", "CompassRose", "CompassTool", "ComputerTower", "Confetti", "ContactlessPayment", "Control", "Cookie", "CookingPot", "Copy", "CopySimple", "Copyleft", "Copyright", "CornersIn", "CornersOut", "Couch", "CourtBasketball", "Cow", "CowboyHat", "Cpu", "Crane", "CraneTower", "CreditCard", "Cricket", "Crop", "Cross", "Crosshair", "CrosshairSimple", "Crown", "CrownCross", "CrownSimple", "Cube", "CubeFocus", "CubeTransparent", "CurrencyBtc", "CurrencyCircleDollar", "CurrencyCny", "CurrencyDollar", "CurrencyDollarSimple", "CurrencyEth", "CurrencyEur", "CurrencyGbp", "CurrencyInr", "CurrencyJpy", "CurrencyKrw", "CurrencyKzt", "CurrencyNgn", "CurrencyRub", "Cursor", "CursorClick", "CursorText", "Cylinder", "Database", "Desk", "Desktop", "DesktopTower", "Detective", "DevToLogo", "DeviceMobile", "DeviceMobileCamera", "DeviceMobileSlash", "DeviceMobileSpeaker", "DeviceRotate", "DeviceTablet", "DeviceTabletCamera", "DeviceTabletSpeaker", "Devices", "Diamond", "DiamondsFour", "DiceFive", "DiceFour", "DiceOne", "DiceSix", "DiceThree", "DiceTwo", "Disc", "DiscoBall", "DiscordLogo", "Divide", "Dna", "Dog", "Door", "DoorOpen", "Dot", "DotOutline", "DotsNine", "DotsSix", "DotsSixVertical", "DotsThree", "DotsThreeCircle", "DotsThreeCircleVertical", "DotsThreeOutline", "DotsThreeOutlineVertical", "DotsThreeVertical", "Download", "DownloadSimple", "Dress", "Dresser", "DribbbleLogo", "Drone", "Drop", "DropHalf", "DropHalfBottom", "DropSimple", "DropSlash", "DropboxLogo", "Ear", "EarSlash", "Egg", "EggCrack", "Eject", "EjectSimple", "Elevator", "Empty", "Engine", "Envelope", "EnvelopeOpen", "EnvelopeSimple", "EnvelopeSimpleOpen", "Equalizer", "Equals", "Eraser", "EscalatorDown", "EscalatorUp", "Exam", "ExclamationMark", "Exclude", "ExcludeSquare", "Export", "Eye", "EyeClosed", "EyeSlash", "Eyedropper", "EyedropperSample", "Eyeglasses", "Eyes", "FaceMask", "FacebookLogo", "Factory", "Faders", "FadersHorizontal", "FalloutShelter", "Fan", "Farm", "FastForward", "FastForwardCircle", "Feather", "FediverseLogo", "FigmaLogo", "File", "FileArchive", "FileArrowDown", "FileArrowUp", "FileAudio", "FileC", "FileCSharp", "FileCloud", "FileCode", "FileCpp", "FileCss", "FileCsv", "FileDashed", "FileDoc", "FileDotted", "FileHtml", "FileImage", "FileIni", "FileJpg", "FileJs", "FileJsx", "FileLock", "FileMagnifyingGlass", "FileMd", "FileMinus", "FilePdf", "FilePlus", "FilePng", "FilePpt", "FilePy", "FileRs", "FileSearch", "FileSql", "FileSvg", "FileText", "FileTs", "FileTsx", "FileTxt", "FileVideo", "FileVue", "FileX", "FileXls", "FileZip", "Files", "FilmReel", "FilmScript", "FilmSlate", "FilmStrip", "Fingerprint", "FingerprintSimple", "FinnTheHuman", "Fire", "FireExtinguisher", "FireSimple", "FireTruck", "FirstAid", "FirstAidKit", "Fish", "FishSimple", "Flag", "FlagBanner", "FlagBannerFold", "FlagCheckered", "FlagPennant", "Flame", "Flashlight", "Flask", "FlipHorizontal", "FlipVertical", "FloppyDisk", "FloppyDiskBack", "FlowArrow", "Flower", "FlowerLotus", "FlowerTulip", "FlyingSaucer", "Folder", "FolderDashed", "FolderDotted", "FolderLock", "FolderMinus", "FolderNotch", "FolderNotchMinus", "FolderNotchOpen", "FolderNotchPlus", "FolderOpen", "FolderPlus", "FolderSimple", "FolderSimpleDashed", "FolderSimpleDotted", "FolderSimpleLock", "FolderSimpleMinus", "FolderSimplePlus", "FolderSimpleStar", "FolderSimpleUser", "FolderStar", "FolderUser", "Folders", "Football", "FootballHelmet", "Footprints", "ForkKnife", "FourK", "FrameCorners", "FramerLogo", "Function", "Funnel", "FunnelSimple", "FunnelSimpleX", "FunnelX", "GameController", "Garage", "GasCan", "GasPump", "Gauge", "Gavel", "Gear", "GearFine", "GearSix", "GenderFemale", "GenderIntersex", "GenderMale", "GenderNeuter", "GenderNonbinary", "GenderTransgender", "Ghost", "Gif", "Gift", "GitBranch", "GitCommit", "GitDiff", "GitFork", "GitMerge", "GitPullRequest", "GithubLogo", "GitlabLogo", "GitlabLogoSimple", "Globe", "GlobeHemisphereEast", "GlobeHemisphereWest", "GlobeSimple", "GlobeSimpleX", "GlobeStand", "GlobeX", "Goggles", "Golf", "GoodreadsLogo", "GoogleCardboardLogo", "GoogleChromeLogo", "GoogleDriveLogo", "GoogleLogo", "GooglePhotosLogo", "GooglePlayLogo", "GooglePodcastsLogo", "Gps", "GpsFix", "GpsSlash", "Gradient", "GraduationCap", "Grains", "GrainsSlash", "Graph", "GraphicsCard", "GreaterThan", "GreaterThanOrEqual", "GridFour", "GridNine", "Guitar", "HairDryer", "Hamburger", "Hammer", "Hand", "HandArrowDown", "HandArrowUp", "HandCoins", "HandDeposit", "HandEye", "HandFist", "HandGrabbing", "HandHeart", "HandPalm", "HandPeace", "HandPointing", "HandSoap", "HandSwipeLeft", "HandSwipeRight", "HandTap", "HandWaving", "HandWithdraw", "Handbag", "HandbagSimple", "HandsClapping", "HandsPraying", "Handshake", "HardDrive", "HardDrives", "HardHat", "Hash", "HashStraight", "HeadCircuit", "Headlights", "Headphones", "Headset", "Heart", "HeartBreak", "HeartHalf", "HeartStraight", "HeartStraightBreak", "Heartbeat", "Hexagon", "HighDefinition", "HighHeel", "Highlighter", "HighlighterCircle", "Hockey", "Hoodie", "Horse", "Hospital", "Hourglass", "HourglassHigh", "HourglassLow", "HourglassMedium", "HourglassSimple", "HourglassSimpleHigh", "HourglassSimpleLow", "HourglassSimpleMedium", "House", "HouseLine", "HouseSimple", "Hurricane", "IceCream", "IconBase", "IconContext", "IdentificationBadge", "IdentificationCard", "Image", "ImageBroken", "ImageSquare", "Images", "ImagesSquare", "Infinity", "Info", "InstagramLogo", "Intersect", "IntersectSquare", "IntersectThree", "Intersection", "Invoice", "Island", "Jar", "JarLabel", "Jeep", "Joystick", "Kanban", "Key", "KeyReturn", "Keyboard", "Keyhole", "Knife", "Ladder", "LadderSimple", "Lamp", "LampPendant", "Laptop", "Lasso", "LastfmLogo", "Layout", "Leaf", "Lectern", "Lego", "LegoSmiley", "Lemniscate", "LessThan", "LessThanOrEqual", "LetterCircleH", "LetterCircleP", "LetterCircleV", "Lifebuoy", "Lightbulb", "LightbulbFilament", "Lighthouse", "Lightning", "LightningA", "LightningSlash", "LineSegment", "LineSegments", "LineVertical", "Link", "LinkBreak", "LinkSimple", "LinkSimpleBreak", "LinkSimpleHorizontal", "LinkSimpleHorizontalBreak", "LinkedinLogo", "LinktreeLogo", "LinuxLogo", "List", "ListBullets", "ListChecks", "ListDashes", "ListHeart", "ListMagnifyingGlass", "ListNumbers", "ListPlus", "ListStar", "Lock", "LockKey", "LockKeyOpen", "LockLaminated", "LockLaminatedOpen", "LockOpen", "LockSimple", "LockSimpleOpen", "Lockers", "Log", "MagicWand", "Magnet", "MagnetStraight", "MagnifyingGlass", "MagnifyingGlassMinus", "MagnifyingGlassPlus", "Mailbox", "MapPin", "MapPinArea", "MapPinLine", "MapPinPlus", "MapPinSimple", "MapPinSimpleArea", "MapPinSimpleLine", "MapTrifold", "MarkdownLogo", "MarkerCircle", "Martini", "MaskHappy", "MaskSad", "MastodonLogo", "MathOperations", "MatrixLogo", "Medal", "MedalMilitary", "MediumLogo", "Megaphone", "MegaphoneSimple", "MemberOf", "Memory", "MessengerLogo", "MetaLogo", "Meteor", "Metronome", "Microphone", "MicrophoneSlash", "MicrophoneStage", "Microscope", "MicrosoftExcelLogo", "MicrosoftOutlookLogo", "MicrosoftPowerpointLogo", "MicrosoftTeamsLogo", "MicrosoftWordLogo", "Minus", "MinusCircle", "MinusSquare", "Money", "MoneyWavy", "Monitor", "MonitorArrowUp", "MonitorPlay", "Moon", "MoonStars", "Moped", "MopedFront", "Mosque", "Motorcycle", "Mountains", "Mouse", "MouseLeftClick", "MouseMiddleClick", "MouseRightClick", "MouseScroll", "MouseSimple", "MusicNote", "MusicNoteSimple", "MusicNotes", "MusicNotesMinus", "MusicNotesPlus", "MusicNotesSimple", "NavigationArrow", "Needle", "Network", "NetworkSlash", "NetworkX", "Newspaper", "NewspaperClipping", "NotEquals", "NotMemberOf", "NotSubsetOf", "NotSupersetOf", "Notches", "Note", "NoteBlank", "NotePencil", "Notebook", "Notepad", "Notification", "NotionLogo", "NuclearPlant", "NumberCircleEight", "NumberCircleFive", "NumberCircleFour", "NumberCircleNine", "NumberCircleOne", "NumberCircleSeven", "NumberCircleSix", "NumberCircleThree", "NumberCircleTwo", "NumberCircleZero", "NumberEight", "NumberFive", "NumberFour", "NumberNine", "NumberOne", "NumberSeven", "NumberSix", "NumberSquareEight", "NumberSquareFive", "NumberSquareFour", "NumberSquareNine", "NumberSquareOne", "NumberSquareSeven", "NumberSquareSix", "NumberSquareThree", "NumberSquareTwo", "NumberSquareZero", "NumberThree", "NumberTwo", "NumberZero", "Numpad", "Nut", "NyTimesLogo", "Octagon", "OfficeChair", "Onigiri", "OpenAiLogo", "Option", "Orange", "OrangeSlice", "Oven", "Package", "PaintBrush", "PaintBrushBroad", "PaintBrushHousehold", "PaintBucket", "PaintRoller", "Palette", "Panorama", "Pants", "PaperPlane", "PaperPlaneRight", "PaperPlaneTilt", "Paperclip", "PaperclipHorizontal", "Parachute", "Paragraph", "Parallelogram", "Park", "Password", "Path", "PatreonLogo", "Pause", "PauseCircle", "PawPrint", "PaypalLogo", "Peace", "Pen", "PenNib", "PenNibStraight", "Pencil", "PencilCircle", "PencilLine", "PencilRuler", "PencilSimple", "PencilSimpleLine", "PencilSimpleSlash", "PencilSlash", "Pentagon", "Pentagram", "Pepper", "Percent", "Person", "PersonArmsSpread", "PersonSimple", "PersonSimpleBike", "PersonSimpleCircle", "PersonSimpleHike", "PersonSimpleRun", "PersonSimpleSki", "PersonSimpleSnowboard", "PersonSimpleSwim", "PersonSimpleTaiChi", "PersonSimpleThrow", "PersonSimpleWalk", "Perspective", "Phone", "PhoneCall", "PhoneDisconnect", "PhoneIncoming", "PhoneList", "PhoneOutgoing", "PhonePause", "PhonePlus", "PhoneSlash", "PhoneTransfer", "PhoneX", "PhosphorLogo", "Pi", "PianoKeys", "PicnicTable", "PictureInPicture", "PiggyBank", "Pill", "PingPong", "PintGlass", "PinterestLogo", "Pinwheel", "Pipe", "PipeWrench", "PixLogo", "Pizza", "Placeholder", "Planet", "Plant", "Play", "PlayCircle", "PlayPause", "Playlist", "Plug", "PlugCharging", "Plugs", "PlugsConnected", "Plus", "PlusCircle", "PlusMinus", "PlusSquare", "PokerChip", "PoliceCar", "Polygon", "Popcorn", "Popsicle", "PottedPlant", "Power", "Prescription", "Presentation", "PresentationChart", "Printer", "Prohibit", "ProhibitInset", "ProjectorScreen", "ProjectorScreenChart", "Pulse", "PushPin", "PushPinSimple", "PushPinSimpleSlash", "PushPinSlash", "PuzzlePiece", "QrCode", "Question", "QuestionMark", "Queue", "Quotes", "Rabbit", "Racquet", "Radical", "Radio", "RadioButton", "Radioactive", "Rainbow", "RainbowCloud", "Ranking", "ReadCvLogo", "Receipt", "ReceiptX", "Record", "Rectangle", "RectangleDashed", "Recycle", "RedditLogo", "Repeat", "RepeatOnce", "ReplitLogo", "Resize", "Rewind", "RewindCircle", "RoadHorizon", "Robot", "Rocket", "RocketLaunch", "Rows", "RowsPlusBottom", "RowsPlusTop", "Rss", "RssSimple", "Rug", "Ruler", "SSR", "Sailboat", "Scales", "Scan", "ScanSmiley", "Scissors", "Scooter", "Screencast", "Screwdriver", "Scribble", "ScribbleLoop", "Scroll", "Seal", "SealCheck", "SealPercent", "SealQuestion", "SealWarning", "Seat", "Seatbelt", "SecurityCamera", "Selection", "SelectionAll", "SelectionBackground", "SelectionForeground", "SelectionInverse", "SelectionPlus", "SelectionSlash", "Shapes", "Share", "ShareFat", "ShareNetwork", "Shield", "ShieldCheck", "ShieldCheckered", "ShieldChevron", "ShieldPlus", "ShieldSlash", "ShieldStar", "ShieldWarning", "ShippingContainer", "ShirtFolded", "ShootingStar", "ShoppingBag", "ShoppingBagOpen", "ShoppingCart", "ShoppingCartSimple", "Shovel", "Shower", "Shrimp", "Shuffle", "ShuffleAngular", "ShuffleSimple", "Sidebar", "SidebarSimple", "Sigma", "SignIn", "SignOut", "Signature", "Signpost", "SimCard", "Siren", "SketchLogo", "SkipBack", "SkipBackCircle", "SkipForward", "SkipForwardCircle", "Skull", "SkypeLogo", "SlackLogo", "Sliders", "SlidersHorizontal", "Slideshow", "Smiley", "SmileyAngry", "SmileyBlank", "SmileyMeh", "SmileyMelting", "SmileyNervous", "SmileySad", "SmileySticker", "SmileyWink", "SmileyXEyes", "SnapchatLogo", "Sneaker", "SneakerMove", "Snowflake", "SoccerBall", "Sock", "SolarPanel", "SolarRoof", "SortAscending", "SortDescending", "SoundcloudLogo", "Spade", "Sparkle", "SpeakerHifi", "SpeakerHigh", "SpeakerLow", "SpeakerNone", "SpeakerSimpleHigh", "SpeakerSimpleLow", "SpeakerSimpleNone", "SpeakerSimpleSlash", "SpeakerSimpleX", "SpeakerSlash", "SpeakerX", "Speedometer", "Sphere", "Spinner", "SpinnerBall", "SpinnerGap", "Spiral", "SplitHorizontal", "SplitVertical", "SpotifyLogo", "SprayBottle", "Square", "SquareHalf", "SquareHalfBottom", "SquareLogo", "SquareSplitHorizontal", "SquareSplitVertical", "SquaresFour", "Stack", "StackMinus", "StackOverflowLogo", "StackPlus", "StackSimple", "Stairs", "Stamp", "StandardDefinition", "Star", "StarAndCrescent", "StarFour", "StarHalf", "StarOfDavid", "SteamLogo", "SteeringWheel", "Steps", "Stethoscope", "Sticker", "Stool", "Stop", "StopCircle", "Storefront", "Strategy", "StripeLogo", "Student", "SubsetOf", "SubsetProperOf", "Subtitles", "SubtitlesSlash", "Subtract", "SubtractSquare", "Subway", "Suitcase", "SuitcaseRolling", "SuitcaseSimple", "Sun", "SunDim", "SunHorizon", "Sunglasses", "SupersetOf", "SupersetProperOf", "Swap", "Swatches", "SwimmingPool", "Sword", "Synagogue", "Syringe", "TShirt", "Table", "Tabs", "Tag", "TagChevron", "TagSimple", "Target", "Taxi", "TeaBag", "TelegramLogo", "Television", "TelevisionSimple", "TennisBall", "Tent", "Terminal", "TerminalWindow", "TestTube", "TextAUnderline", "TextAa", "TextAlignCenter", "TextAlignJustify", "TextAlignLeft", "TextAlignRight", "TextB", "TextBolder", "TextColumns", "TextH", "TextHFive", "TextHFour", "TextHOne", "TextHSix", "TextHThree", "TextHTwo", "TextIndent", "TextItalic", "TextOutdent", "TextStrikethrough", "TextSubscript", "TextSuperscript", "TextT", "TextTSlash", "TextUnderline", "Textbox", "Thermometer", "ThermometerCold", "ThermometerHot", "ThermometerSimple", "ThreadsLogo", "ThreeD", "ThumbsDown", "ThumbsUp", "Ticket", "TidalLogo", "TiktokLogo", "Tilde", "Timer", "TipJar", "Tipi", "Tire", "ToggleLeft", "ToggleRight", "Toilet", "ToiletPaper", "Toolbox", "Tooth", "Tornado", "Tote", "ToteSimple", "Towel", "Tractor", "Trademark", "TrademarkRegistered", "TrafficCone", "TrafficSign", "TrafficSignal", "Train", "TrainRegional", "TrainSimple", "Tram", "Translate", "Trash", "TrashSimple", "Tray", "TrayArrowDown", "TrayArrowUp", "TreasureChest", "Tree", "TreeEvergreen", "TreePalm", "TreeStructure", "TreeView", "TrendDown", "TrendUp", "Triangle", "TriangleDashed", "Trolley", "TrolleySuitcase", "Trophy", "Truck", "TruckTrailer", "TumblrLogo", "TwitchLogo", "TwitterLogo", "Umbrella", "UmbrellaSimple", "Union", "Unite", "UniteSquare", "Upload", "UploadSimple", "Usb", "User", "UserCheck", "UserCircle", "UserCircleCheck", "UserCircleDashed", "UserCircleGear", "UserCircleMinus", "UserCirclePlus", "UserFocus", "UserGear", "UserList", "UserMinus", "UserPlus", "UserRectangle", "UserSound", "UserSquare", "UserSwitch", "Users", "UsersFour", "UsersThree", "Van", "Vault", "VectorThree", "VectorTwo", "Vibrate", "Video", "VideoCamera", "VideoCameraSlash", "VideoConference", "Vignette", "VinylRecord", "VirtualReality", "Virus", "Visor", "Voicemail", "Volleyball", "Wall", "Wallet", "Warehouse", "Warning", "WarningCircle", "WarningDiamond", "WarningOctagon", "WashingMachine", "Watch", "WaveSawtooth", "WaveSine", "WaveSquare", "WaveTriangle", "Waveform", "WaveformSlash", "Waves", "Webcam", "WebcamSlash", "WebhooksLogo", "WechatLogo", "WhatsappLogo", "Wheelchair", "WheelchairMotion", "WifiHigh", "WifiLow", "WifiMedium", "WifiNone", "WifiSlash", "WifiX", "Wind", "Windmill", "WindowsLogo", "Wine", "Wrench", "X", "XCircle", "XLogo", "XSquare", "Yarn", "YinYang", "YoutubeLogo"];
|
|
3454
|
+
function Fi() {
|
|
3455
3455
|
const e = localStorage.getItem("accessToken"), t = localStorage.getItem("shopId");
|
|
3456
3456
|
return !!(e && t);
|
|
3457
3457
|
}
|
|
3458
|
-
const
|
|
3459
|
-
wrapper:
|
|
3460
|
-
main:
|
|
3461
|
-
loading:
|
|
3458
|
+
const Mi = "_wrapper_dbban_1", Oi = "_main_dbban_8", Ui = "_loading_dbban_12", Cn = {
|
|
3459
|
+
wrapper: Mi,
|
|
3460
|
+
main: Oi,
|
|
3461
|
+
loading: Ui
|
|
3462
3462
|
}, Zr = ({ render: e, block: t }) => e(t), ea = () => {
|
|
3463
3463
|
const { footer: e } = ce(), { settings: t } = et(), { pageContext: n } = ie();
|
|
3464
3464
|
return e == null ? void 0 : e.renderBlock(t, n);
|
|
@@ -3466,37 +3466,38 @@ const Ui = "_wrapper_dbban_1", Hi = "_main_dbban_8", Ii = "_loading_dbban_12", C
|
|
|
3466
3466
|
const { header: e } = ce(), { settings: t } = et(), { pageContext: n } = ie();
|
|
3467
3467
|
return e == null ? void 0 : e.renderBlock(t, n);
|
|
3468
3468
|
}, _r = ({ pagePath: e }) => {
|
|
3469
|
-
const { sourceBlocks: t } = Ne(), { pageContext: n } = ie(), [r, a] = W.useState(!0), [l, o] = W.useState(null)
|
|
3469
|
+
const { sourceBlocks: t } = Ne(), { pageContext: n } = ie(), [r, a] = W.useState(!0), [l, o] = W.useState(null);
|
|
3470
|
+
W.useState();
|
|
3471
|
+
const [s, c] = W.useState();
|
|
3470
3472
|
W.useEffect(() => {
|
|
3471
3473
|
a(!0), (async () => {
|
|
3472
3474
|
if (e === "productId") {
|
|
3473
|
-
const
|
|
3474
|
-
o(
|
|
3475
|
+
const d = window.location.pathname.slice(1), { layout: m } = await Zn(encodeURIComponent(d));
|
|
3476
|
+
o(m);
|
|
3475
3477
|
} else {
|
|
3476
|
-
const { layout:
|
|
3477
|
-
o(
|
|
3478
|
+
const { layout: d } = await Zn(encodeURIComponent(e));
|
|
3479
|
+
o(d);
|
|
3478
3480
|
}
|
|
3479
|
-
|
|
3480
|
-
c(C), f(b), a(!1);
|
|
3481
|
+
a(!1);
|
|
3481
3482
|
})();
|
|
3482
3483
|
}, []);
|
|
3483
|
-
const
|
|
3484
|
-
const
|
|
3485
|
-
return Object.assign(
|
|
3484
|
+
const p = (f) => {
|
|
3485
|
+
const d = new t[f.name]();
|
|
3486
|
+
return Object.assign(d, f.value), d.renderBlock(s, n);
|
|
3486
3487
|
};
|
|
3487
3488
|
return /* @__PURE__ */ i.jsxs("div", { className: Cn.wrapper, children: [
|
|
3488
3489
|
e !== "productId" && /* @__PURE__ */ i.jsx(ta, {}),
|
|
3489
|
-
!r && l ? /* @__PURE__ */ i.jsx("div", { className: Cn.main, children: Object.keys(l).map((
|
|
3490
|
+
!r && l ? /* @__PURE__ */ i.jsx("div", { className: Cn.main, children: Object.keys(l).map((f) => /* @__PURE__ */ i.jsx(
|
|
3490
3491
|
Zr,
|
|
3491
3492
|
{
|
|
3492
|
-
block: l[
|
|
3493
|
-
render:
|
|
3493
|
+
block: l[f],
|
|
3494
|
+
render: p
|
|
3494
3495
|
}
|
|
3495
3496
|
)) }) : /* @__PURE__ */ i.jsx("div", { className: Cn.loading, children: /* @__PURE__ */ i.jsx(En, {}) }),
|
|
3496
3497
|
e !== "productId" && /* @__PURE__ */ i.jsx(ea, {})
|
|
3497
3498
|
] });
|
|
3498
3499
|
};
|
|
3499
|
-
function
|
|
3500
|
+
function Hi() {
|
|
3500
3501
|
const { pages: e } = ie.getState();
|
|
3501
3502
|
if (e) {
|
|
3502
3503
|
const t = Object.values(e).map((n) => ({
|
|
@@ -3509,10 +3510,10 @@ function $i() {
|
|
|
3509
3510
|
}), t;
|
|
3510
3511
|
} else return [];
|
|
3511
3512
|
}
|
|
3512
|
-
const
|
|
3513
|
-
buttons:
|
|
3514
|
-
button:
|
|
3515
|
-
},
|
|
3513
|
+
const Ii = "_buttons_1gn8m_1", $i = "_button_1gn8m_1", zi = {
|
|
3514
|
+
buttons: Ii,
|
|
3515
|
+
button: $i
|
|
3516
|
+
}, Vi = () => /* @__PURE__ */ i.jsxs("div", { className: zi.buttons, children: [
|
|
3516
3517
|
/* @__PURE__ */ i.jsx(
|
|
3517
3518
|
z,
|
|
3518
3519
|
{
|
|
@@ -3531,13 +3532,13 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3531
3532
|
height: 20
|
|
3532
3533
|
}
|
|
3533
3534
|
)
|
|
3534
|
-
] }),
|
|
3535
|
-
devices:
|
|
3536
|
-
device:
|
|
3537
|
-
active:
|
|
3538
|
-
},
|
|
3539
|
-
const { currentDevice: e, setCurrentDevice: t } =
|
|
3540
|
-
return /* @__PURE__ */ i.jsx("div", { className: xn.devices, children:
|
|
3535
|
+
] }), Wi = "_devices_hxl12_1", Gi = "_device_hxl12_1", qi = "_active_hxl12_23", xn = {
|
|
3536
|
+
devices: Wi,
|
|
3537
|
+
device: Gi,
|
|
3538
|
+
active: qi
|
|
3539
|
+
}, Ki = () => {
|
|
3540
|
+
const { currentDevice: e, setCurrentDevice: t } = xa();
|
|
3541
|
+
return /* @__PURE__ */ i.jsx("div", { className: xn.devices, children: Ai.map((n) => /* @__PURE__ */ i.jsx(
|
|
3541
3542
|
"div",
|
|
3542
3543
|
{
|
|
3543
3544
|
className: ne(xn.device, {
|
|
@@ -3556,14 +3557,14 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3556
3557
|
},
|
|
3557
3558
|
n.value
|
|
3558
3559
|
)) });
|
|
3559
|
-
},
|
|
3560
|
-
header:
|
|
3561
|
-
left:
|
|
3562
|
-
right:
|
|
3563
|
-
},
|
|
3564
|
-
preview:
|
|
3565
|
-
active:
|
|
3566
|
-
},
|
|
3560
|
+
}, Yi = "_header_zvaam_1", Xi = "_left_zvaam_12", Ji = "_right_zvaam_13", qt = {
|
|
3561
|
+
header: Yi,
|
|
3562
|
+
left: Xi,
|
|
3563
|
+
right: Ji
|
|
3564
|
+
}, Qi = "_preview_vijvm_2", Zi = "_active_vijvm_22", _n = {
|
|
3565
|
+
preview: Qi,
|
|
3566
|
+
active: Zi
|
|
3567
|
+
}, el = () => {
|
|
3567
3568
|
const { onPreview: e, setOnPreview: t } = tt();
|
|
3568
3569
|
return /* @__PURE__ */ i.jsxs(
|
|
3569
3570
|
"div",
|
|
@@ -3585,12 +3586,12 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3585
3586
|
]
|
|
3586
3587
|
}
|
|
3587
3588
|
);
|
|
3588
|
-
},
|
|
3589
|
-
settings:
|
|
3590
|
-
},
|
|
3591
|
-
language:
|
|
3592
|
-
text:
|
|
3593
|
-
},
|
|
3589
|
+
}, tl = "_settings_q79q3_1", nl = {
|
|
3590
|
+
settings: tl
|
|
3591
|
+
}, rl = "_language_1mbvp_1", al = "_text_1mbvp_11", kr = {
|
|
3592
|
+
language: rl,
|
|
3593
|
+
text: al
|
|
3594
|
+
}, ol = () => /* @__PURE__ */ i.jsxs("div", { className: kr.language, children: [
|
|
3594
3595
|
/* @__PURE__ */ i.jsx(
|
|
3595
3596
|
z,
|
|
3596
3597
|
{
|
|
@@ -3609,17 +3610,17 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3609
3610
|
height: 20
|
|
3610
3611
|
}
|
|
3611
3612
|
)
|
|
3612
|
-
] }),
|
|
3613
|
-
pages:
|
|
3613
|
+
] }), il = "_pages_sf7rl_1", ll = "_text_sf7rl_16", sl = "_modal_sf7rl_22", cl = "_page_sf7rl_1", ul = "_hoverable_sf7rl_45", dl = "_separator_sf7rl_49", hl = "_button_sf7rl_53", fl = "_items_sf7rl_67", je = {
|
|
3614
|
+
pages: il,
|
|
3614
3615
|
default: "_default_sf7rl_5",
|
|
3615
|
-
text:
|
|
3616
|
-
modal:
|
|
3617
|
-
page:
|
|
3618
|
-
hoverable:
|
|
3619
|
-
separator:
|
|
3620
|
-
button:
|
|
3621
|
-
items:
|
|
3622
|
-
},
|
|
3616
|
+
text: ll,
|
|
3617
|
+
modal: sl,
|
|
3618
|
+
page: cl,
|
|
3619
|
+
hoverable: ul,
|
|
3620
|
+
separator: dl,
|
|
3621
|
+
button: hl,
|
|
3622
|
+
items: fl
|
|
3623
|
+
}, pl = () => {
|
|
3623
3624
|
const {
|
|
3624
3625
|
currentPage: e,
|
|
3625
3626
|
setCurrentPage: t,
|
|
@@ -3630,7 +3631,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3630
3631
|
deletePage: o,
|
|
3631
3632
|
isOpenSelectModal: s,
|
|
3632
3633
|
setIsOpenSelectModal: c
|
|
3633
|
-
} = ie(), { deletePage: p } = ce(), [f,
|
|
3634
|
+
} = ie(), { deletePage: p } = ce(), [f, d] = W.useState("");
|
|
3634
3635
|
return W.useEffect(() => {
|
|
3635
3636
|
const m = () => {
|
|
3636
3637
|
c(!1);
|
|
@@ -3682,10 +3683,10 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3682
3683
|
className: ne(je.page, {
|
|
3683
3684
|
[je.hoverable]: f === m
|
|
3684
3685
|
}),
|
|
3685
|
-
onMouseEnter: () =>
|
|
3686
|
-
onMouseLeave: () =>
|
|
3686
|
+
onMouseEnter: () => d(m),
|
|
3687
|
+
onMouseLeave: () => d(""),
|
|
3687
3688
|
onClick: () => {
|
|
3688
|
-
|
|
3689
|
+
d(""), a(!1), t(m), c(!1);
|
|
3689
3690
|
},
|
|
3690
3691
|
children: [
|
|
3691
3692
|
/* @__PURE__ */ i.jsx(
|
|
@@ -3713,7 +3714,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3713
3714
|
name: "Trash",
|
|
3714
3715
|
fill: "#C12A2A",
|
|
3715
3716
|
onClick: (C) => {
|
|
3716
|
-
r[e].name === b.name && t("home"), C.stopPropagation(), o(m), p(b.name),
|
|
3717
|
+
r[e].name === b.name && t("home"), C.stopPropagation(), o(m), p(b.name), _a(b.path);
|
|
3717
3718
|
}
|
|
3718
3719
|
}
|
|
3719
3720
|
)
|
|
@@ -3755,15 +3756,15 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3755
3756
|
}
|
|
3756
3757
|
)
|
|
3757
3758
|
] });
|
|
3758
|
-
},
|
|
3759
|
-
zoom:
|
|
3760
|
-
},
|
|
3759
|
+
}, ml = "_zoom_a77cn_1", gl = {
|
|
3760
|
+
zoom: ml
|
|
3761
|
+
}, vl = () => {
|
|
3761
3762
|
const [e, t] = W.useState(), n = () => {
|
|
3762
3763
|
t(Number(Math.round(window.devicePixelRatio * 50).toFixed(0)));
|
|
3763
3764
|
};
|
|
3764
3765
|
return W.useEffect(() => (n(), window.addEventListener("resize", n), () => {
|
|
3765
3766
|
window.removeEventListener("resize", n);
|
|
3766
|
-
}), []), /* @__PURE__ */ i.jsxs("div", { className:
|
|
3767
|
+
}), []), /* @__PURE__ */ i.jsxs("div", { className: gl.zoom, children: [
|
|
3767
3768
|
/* @__PURE__ */ i.jsx(
|
|
3768
3769
|
z,
|
|
3769
3770
|
{
|
|
@@ -3777,13 +3778,13 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3777
3778
|
" %"
|
|
3778
3779
|
] })
|
|
3779
3780
|
] });
|
|
3780
|
-
},
|
|
3781
|
-
/* @__PURE__ */ i.jsx(
|
|
3782
|
-
/* @__PURE__ */ i.jsx(
|
|
3783
|
-
/* @__PURE__ */ i.jsx(
|
|
3784
|
-
] }),
|
|
3785
|
-
theme:
|
|
3786
|
-
},
|
|
3781
|
+
}, bl = () => /* @__PURE__ */ i.jsxs("div", { className: nl.settings, children: [
|
|
3782
|
+
/* @__PURE__ */ i.jsx(ol, {}),
|
|
3783
|
+
/* @__PURE__ */ i.jsx(pl, {}),
|
|
3784
|
+
/* @__PURE__ */ i.jsx(vl, {})
|
|
3785
|
+
] }), yl = "_theme_3wxbf_1", Sl = {
|
|
3786
|
+
theme: yl
|
|
3787
|
+
}, wl = () => /* @__PURE__ */ i.jsxs("div", { className: Sl.theme, children: [
|
|
3787
3788
|
/* @__PURE__ */ i.jsx(
|
|
3788
3789
|
z,
|
|
3789
3790
|
{
|
|
@@ -3793,24 +3794,24 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3793
3794
|
}
|
|
3794
3795
|
),
|
|
3795
3796
|
/* @__PURE__ */ i.jsx("div", { children: "Current Theme" })
|
|
3796
|
-
] }),
|
|
3797
|
+
] }), Cl = () => {
|
|
3797
3798
|
const { themeSettings: e } = ve(), { settings: t } = et(), { isOpenSelectModal: n } = ie(), [r, a] = W.useState(null), [l, o] = W.useState(!1), { pages: s } = ie(), { blocks: c } = ce();
|
|
3798
|
-
function p(C,
|
|
3799
|
-
return
|
|
3799
|
+
function p(C, w) {
|
|
3800
|
+
return w.map(
|
|
3800
3801
|
(k) => Object.values(k.value.blockSettings).filter((P) => P.type === C).map((P) => P.value).flat()
|
|
3801
3802
|
).flat().map((k) => k.listingId);
|
|
3802
3803
|
}
|
|
3803
|
-
function f(C,
|
|
3804
|
-
return p(C,
|
|
3804
|
+
function f(C, w) {
|
|
3805
|
+
return p(C, w).some((k) => k);
|
|
3805
3806
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const x = p(C,
|
|
3807
|
+
function d(C, w) {
|
|
3808
|
+
const x = p(C, w);
|
|
3808
3809
|
return Array.isArray(x) && x.length > 0 ? Math.max(...x) : 0;
|
|
3809
3810
|
}
|
|
3810
3811
|
function m(C) {
|
|
3811
3812
|
if (s) {
|
|
3812
|
-
const
|
|
3813
|
-
if (
|
|
3813
|
+
const w = Object.keys(s).find((x) => s[x].name === C);
|
|
3814
|
+
if (w) return s[w];
|
|
3814
3815
|
}
|
|
3815
3816
|
return null;
|
|
3816
3817
|
}
|
|
@@ -3818,7 +3819,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3818
3819
|
if (l)
|
|
3819
3820
|
r && clearTimeout(r);
|
|
3820
3821
|
else {
|
|
3821
|
-
const
|
|
3822
|
+
const w = Object.keys(c).map((x) => {
|
|
3822
3823
|
const k = m(x);
|
|
3823
3824
|
return {
|
|
3824
3825
|
name: k ? k.name : x,
|
|
@@ -3831,17 +3832,17 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3831
3832
|
neededAnnouncementIds: [...p("AnnouncementId", Object.values(c[x]))],
|
|
3832
3833
|
neededListingIds: [...p("listings", Object.values(c[x]))],
|
|
3833
3834
|
neededFaqs: f("Faqs", Object.values(c[x])),
|
|
3834
|
-
neededReviewCount:
|
|
3835
|
+
neededReviewCount: d("ReviewCount", Object.values(c[x])),
|
|
3835
3836
|
seo: {
|
|
3836
3837
|
pageTitle: k && k.seo ? k.seo.title : "",
|
|
3837
3838
|
pageDescription: k && k.seo ? k.seo.description : ""
|
|
3838
3839
|
}
|
|
3839
3840
|
};
|
|
3840
3841
|
});
|
|
3841
|
-
|
|
3842
|
+
ka("POST", "save", {
|
|
3842
3843
|
themeSettings: e,
|
|
3843
3844
|
settings: t,
|
|
3844
|
-
updatedPages:
|
|
3845
|
+
updatedPages: w
|
|
3845
3846
|
});
|
|
3846
3847
|
}
|
|
3847
3848
|
o(!0);
|
|
@@ -3859,22 +3860,22 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3859
3860
|
},
|
|
3860
3861
|
children: [
|
|
3861
3862
|
/* @__PURE__ */ i.jsxs("div", { className: qt.left, children: [
|
|
3862
|
-
/* @__PURE__ */ i.jsx(
|
|
3863
|
-
/* @__PURE__ */ i.jsx(
|
|
3863
|
+
/* @__PURE__ */ i.jsx(Ki, {}),
|
|
3864
|
+
/* @__PURE__ */ i.jsx(el, {})
|
|
3864
3865
|
] }),
|
|
3865
|
-
/* @__PURE__ */ i.jsx("div", { className: qt.center, children: /* @__PURE__ */ i.jsx(
|
|
3866
|
+
/* @__PURE__ */ i.jsx("div", { className: qt.center, children: /* @__PURE__ */ i.jsx(bl, {}) }),
|
|
3866
3867
|
/* @__PURE__ */ i.jsxs("div", { className: qt.right, children: [
|
|
3867
|
-
/* @__PURE__ */ i.jsx(
|
|
3868
|
-
/* @__PURE__ */ i.jsx(
|
|
3868
|
+
/* @__PURE__ */ i.jsx(wl, {}),
|
|
3869
|
+
/* @__PURE__ */ i.jsx(Vi, {}),
|
|
3869
3870
|
/* @__PURE__ */ i.jsx(Ze, { onClick: b, children: "Save" })
|
|
3870
3871
|
] })
|
|
3871
3872
|
]
|
|
3872
3873
|
}
|
|
3873
3874
|
);
|
|
3874
|
-
},
|
|
3875
|
-
exit:
|
|
3876
|
-
text:
|
|
3877
|
-
},
|
|
3875
|
+
}, xl = "_exit_2ce42_1", _l = "_text_2ce42_10", jr = {
|
|
3876
|
+
exit: xl,
|
|
3877
|
+
text: _l
|
|
3878
|
+
}, kl = () => /* @__PURE__ */ i.jsxs("div", { className: jr.exit, children: [
|
|
3878
3879
|
/* @__PURE__ */ i.jsx(
|
|
3879
3880
|
z,
|
|
3880
3881
|
{
|
|
@@ -3884,19 +3885,19 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3884
3885
|
}
|
|
3885
3886
|
),
|
|
3886
3887
|
/* @__PURE__ */ i.jsx("span", { className: jr.text, children: "Exit" })
|
|
3887
|
-
] }),
|
|
3888
|
-
navbar:
|
|
3889
|
-
main:
|
|
3890
|
-
block:
|
|
3891
|
-
active:
|
|
3892
|
-
},
|
|
3888
|
+
] }), jl = "_navbar_2ac63_1", Pl = "_main_2ac63_6", Ll = "_block_2ac63_13", El = "_active_2ac63_30", Kt = {
|
|
3889
|
+
navbar: jl,
|
|
3890
|
+
main: Pl,
|
|
3891
|
+
block: Ll,
|
|
3892
|
+
active: El
|
|
3893
|
+
}, Nl = () => {
|
|
3893
3894
|
const { activeBlock: e, setActiveBlock: t } = ln(), { setActiveBlock: n } = Ne(), { setCurrentBlock: r } = ce(), { setActiveBlock: a } = ve();
|
|
3894
3895
|
function l(o) {
|
|
3895
3896
|
n(null), t(o), r(null), a(null);
|
|
3896
3897
|
}
|
|
3897
3898
|
return /* @__PURE__ */ i.jsxs("div", { className: Kt.navbar, children: [
|
|
3898
|
-
/* @__PURE__ */ i.jsx(
|
|
3899
|
-
/* @__PURE__ */ i.jsx("div", { className: Kt.main, children:
|
|
3899
|
+
/* @__PURE__ */ i.jsx(kl, {}),
|
|
3900
|
+
/* @__PURE__ */ i.jsx("div", { className: Kt.main, children: ja.map((o) => /* @__PURE__ */ i.jsxs(
|
|
3900
3901
|
"div",
|
|
3901
3902
|
{
|
|
3902
3903
|
className: ne(Kt.block, {
|
|
@@ -3917,25 +3918,25 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3917
3918
|
o.icon
|
|
3918
3919
|
)) })
|
|
3919
3920
|
] });
|
|
3920
|
-
},
|
|
3921
|
-
preview:
|
|
3922
|
-
main:
|
|
3923
|
-
content:
|
|
3924
|
-
loading:
|
|
3925
|
-
loader:
|
|
3926
|
-
spin:
|
|
3927
|
-
},
|
|
3928
|
-
header:
|
|
3929
|
-
circles:
|
|
3930
|
-
circle:
|
|
3931
|
-
red:
|
|
3932
|
-
green:
|
|
3933
|
-
yellow:
|
|
3934
|
-
input:
|
|
3935
|
-
main:
|
|
3936
|
-
text:
|
|
3937
|
-
},
|
|
3938
|
-
/* @__PURE__ */ i.jsx("div", { className: Me.circles, children:
|
|
3921
|
+
}, Dl = "_preview_1q4f5_1", Rl = "_main_1q4f5_9", Tl = "_content_1q4f5_19", Al = "_loading_1q4f5_26", Bl = "_loader_1q4f5_34", Fl = "_spin_1q4f5_1", Yt = {
|
|
3922
|
+
preview: Dl,
|
|
3923
|
+
main: Rl,
|
|
3924
|
+
content: Tl,
|
|
3925
|
+
loading: Al,
|
|
3926
|
+
loader: Bl,
|
|
3927
|
+
spin: Fl
|
|
3928
|
+
}, Ml = "_header_1t64j_1", Ol = "_circles_1t64j_14", Ul = "_circle_1t64j_14", Hl = "_red_1t64j_30", Il = "_green_1t64j_34", $l = "_yellow_1t64j_38", zl = "_input_1t64j_42", Vl = "_main_1t64j_51", Wl = "_text_1t64j_59", Me = {
|
|
3929
|
+
header: Ml,
|
|
3930
|
+
circles: Ol,
|
|
3931
|
+
circle: Ul,
|
|
3932
|
+
red: Hl,
|
|
3933
|
+
green: Il,
|
|
3934
|
+
yellow: $l,
|
|
3935
|
+
input: zl,
|
|
3936
|
+
main: Vl,
|
|
3937
|
+
text: Wl
|
|
3938
|
+
}, Gl = "data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='0.5'%20width='16'%20height='16'%20fill='url(%23pattern0_4042_718)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_4042_718'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_4042_718'%20transform='scale(0.015625)'/%3e%3c/pattern%3e%3cimage%20id='image0_4042_718'%20width='64'%20height='64'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAONJREFUeF7t20EOhEAIRFG4/6F7DvEnYeFzryQIv6pBd2behOu9dPvsbog+k+NLgArQAqmJcw9iAAhSgZKB3IJkkAySQTJ4CiE+gA8oBeg0mH3Ai084P89HhqwEqIA209ICsQdjAeaZIgaAYKxBDMCAYy8fXwAIgiAIcoJpJEYGI4VjB3YrbC9gL2AvkCB43cM5PgZgAAZgQFnNZAhdGykQBEEQBEEQDBmgAm2glM/z+QUYisYUGoldO7kY32IEAzCg6RgIRgjFAsw+AgRBMNYgBmCAT2TCYfoPPz/HCqQCX1eBHzHnv7C7WhBSAAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e", ql = ["red", "yellow", "green"], Kl = () => /* @__PURE__ */ i.jsxs("div", { className: Me.header, children: [
|
|
3939
|
+
/* @__PURE__ */ i.jsx("div", { className: Me.circles, children: ql.map((e) => /* @__PURE__ */ i.jsx(
|
|
3939
3940
|
"div",
|
|
3940
3941
|
{
|
|
3941
3942
|
className: ne(Me.circle, {
|
|
@@ -3951,7 +3952,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3951
3952
|
/* @__PURE__ */ i.jsx(
|
|
3952
3953
|
"img",
|
|
3953
3954
|
{
|
|
3954
|
-
src:
|
|
3955
|
+
src: Gl,
|
|
3955
3956
|
alt: ""
|
|
3956
3957
|
}
|
|
3957
3958
|
),
|
|
@@ -3975,31 +3976,31 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
3975
3976
|
}
|
|
3976
3977
|
)
|
|
3977
3978
|
] })
|
|
3978
|
-
] }),
|
|
3979
|
-
content:
|
|
3980
|
-
main:
|
|
3981
|
-
block:
|
|
3982
|
-
active:
|
|
3983
|
-
name:
|
|
3984
|
-
empty:
|
|
3985
|
-
icon:
|
|
3986
|
-
title:
|
|
3987
|
-
text:
|
|
3988
|
-
sections:
|
|
3989
|
-
section:
|
|
3990
|
-
},
|
|
3991
|
-
sidebar:
|
|
3992
|
-
content:
|
|
3993
|
-
button:
|
|
3994
|
-
moveButton:
|
|
3995
|
-
border:
|
|
3996
|
-
deleteButton:
|
|
3997
|
-
},
|
|
3979
|
+
] }), Yl = "_content_1plo6_1", Xl = "_main_1plo6_8", Jl = "_block_1plo6_12", Ql = "_active_1plo6_19", Zl = "_name_1plo6_23", es = "_empty_1plo6_37", ts = "_icon_1plo6_48", ns = "_title_1plo6_59", rs = "_text_1plo6_65", as = "_sections_1plo6_71", os = "_section_1plo6_71", jt = {
|
|
3980
|
+
content: Yl,
|
|
3981
|
+
main: Xl,
|
|
3982
|
+
block: Jl,
|
|
3983
|
+
active: Ql,
|
|
3984
|
+
name: Zl,
|
|
3985
|
+
empty: es,
|
|
3986
|
+
icon: ts,
|
|
3987
|
+
title: ns,
|
|
3988
|
+
text: rs,
|
|
3989
|
+
sections: as,
|
|
3990
|
+
section: os
|
|
3991
|
+
}, is = "_sidebar_1f3hk_1", ls = "_content_1f3hk_12", ss = "_button_1f3hk_22", cs = "_moveButton_1f3hk_30", us = "_border_1f3hk_34", ds = "_deleteButton_1f3hk_38", me = {
|
|
3992
|
+
sidebar: is,
|
|
3993
|
+
content: ls,
|
|
3994
|
+
button: ss,
|
|
3995
|
+
moveButton: cs,
|
|
3996
|
+
border: us,
|
|
3997
|
+
deleteButton: ds
|
|
3998
|
+
}, hs = () => {
|
|
3998
3999
|
const { activeBlock: e } = tt(), { blocks: t, removeBlock: n, moveBlock: r, duplicateBlock: a } = ce(), { currentPage: l, pages: o } = ie(), s = o && o[l] ? Object.keys(t[o[l].name]) : [], c = s.indexOf(e), p = () => {
|
|
3999
4000
|
c > 0 && o && r(o[l].name, c, c - 1);
|
|
4000
4001
|
}, f = () => {
|
|
4001
4002
|
c < s.length - 1 && o && r(o[l].name, c, c + 1);
|
|
4002
|
-
},
|
|
4003
|
+
}, d = () => {
|
|
4003
4004
|
o && a(o[l].name, e);
|
|
4004
4005
|
};
|
|
4005
4006
|
return /* @__PURE__ */ i.jsx("div", { className: me.sidebar, children: /* @__PURE__ */ i.jsxs("div", { className: me.content, children: [
|
|
@@ -4025,7 +4026,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4025
4026
|
/* @__PURE__ */ i.jsx(
|
|
4026
4027
|
"button",
|
|
4027
4028
|
{
|
|
4028
|
-
onClick:
|
|
4029
|
+
onClick: d,
|
|
4029
4030
|
className: ne(me.button, me.moveButton),
|
|
4030
4031
|
children: /* @__PURE__ */ i.jsx(z, { name: "Copy" })
|
|
4031
4032
|
}
|
|
@@ -4048,7 +4049,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4048
4049
|
}
|
|
4049
4050
|
)
|
|
4050
4051
|
] }) });
|
|
4051
|
-
},
|
|
4052
|
+
}, fs = W.memo(() => {
|
|
4052
4053
|
const { setActiveBlock: e, activeBlock: t } = tt(), { blocks: n, sourceBlocks: r } = Ne(), { blocks: a } = ce(), { settings: l } = et(), { currentPage: o, pages: s, setIsOpenSelectModal: c, pageContext: p } = ie(), f = W.useRef(t);
|
|
4053
4054
|
W.useEffect(() => {
|
|
4054
4055
|
f.current = t;
|
|
@@ -4060,7 +4061,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4060
4061
|
document.body.removeEventListener("click", b);
|
|
4061
4062
|
};
|
|
4062
4063
|
}, []);
|
|
4063
|
-
const
|
|
4064
|
+
const d = (b) => {
|
|
4064
4065
|
const C = new n[b.name]();
|
|
4065
4066
|
return Object.assign(C, b.value), C.renderBlock(l, p);
|
|
4066
4067
|
};
|
|
@@ -4086,11 +4087,11 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4086
4087
|
}),
|
|
4087
4088
|
children: [
|
|
4088
4089
|
t === b && /* @__PURE__ */ i.jsx("div", { className: jt.name, children: m(a[s[o].name][b].name) }),
|
|
4089
|
-
t === b && /* @__PURE__ */ i.jsx(
|
|
4090
|
+
t === b && /* @__PURE__ */ i.jsx(hs, {}),
|
|
4090
4091
|
n && /* @__PURE__ */ i.jsx(
|
|
4091
4092
|
Zr,
|
|
4092
4093
|
{
|
|
4093
|
-
render:
|
|
4094
|
+
render: d,
|
|
4094
4095
|
block: a[s[o].name][b]
|
|
4095
4096
|
}
|
|
4096
4097
|
)
|
|
@@ -4101,14 +4102,14 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4101
4102
|
]
|
|
4102
4103
|
}
|
|
4103
4104
|
);
|
|
4104
|
-
}),
|
|
4105
|
-
results:
|
|
4106
|
-
name:
|
|
4107
|
-
product:
|
|
4108
|
-
},
|
|
4109
|
-
search:
|
|
4110
|
-
input:
|
|
4111
|
-
},
|
|
4105
|
+
}), ps = "_results_f488n_1", ms = "_name_f488n_8", gs = "_product_f488n_15", Xt = {
|
|
4106
|
+
results: ps,
|
|
4107
|
+
name: ms,
|
|
4108
|
+
product: gs
|
|
4109
|
+
}, vs = "_search_1s0qp_1", bs = "_input_1s0qp_12", Pr = {
|
|
4110
|
+
search: vs,
|
|
4111
|
+
input: bs
|
|
4112
|
+
}, ys = () => /* @__PURE__ */ i.jsxs("label", { className: Pr.search, children: [
|
|
4112
4113
|
/* @__PURE__ */ i.jsx(
|
|
4113
4114
|
"input",
|
|
4114
4115
|
{
|
|
@@ -4138,7 +4139,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4138
4139
|
return new t[s]().blockSettings.isAddable;
|
|
4139
4140
|
}
|
|
4140
4141
|
return /* @__PURE__ */ i.jsxs("div", { className: Xt.add, children: [
|
|
4141
|
-
/* @__PURE__ */ i.jsx(
|
|
4142
|
+
/* @__PURE__ */ i.jsx(ys, {}),
|
|
4142
4143
|
/* @__PURE__ */ i.jsx("div", { className: Xt.results, children: e && Object.keys(e).map((s) => {
|
|
4143
4144
|
if (o(s))
|
|
4144
4145
|
return /* @__PURE__ */ i.jsxs(
|
|
@@ -4155,7 +4156,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4155
4156
|
);
|
|
4156
4157
|
}) })
|
|
4157
4158
|
] });
|
|
4158
|
-
},
|
|
4159
|
+
}, Ss = () => {
|
|
4159
4160
|
const {
|
|
4160
4161
|
modalPosition: e,
|
|
4161
4162
|
color: t,
|
|
@@ -4168,11 +4169,11 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4168
4169
|
setDragging: c,
|
|
4169
4170
|
setHue: p,
|
|
4170
4171
|
setSaturation: f,
|
|
4171
|
-
setBrightness:
|
|
4172
|
+
setBrightness: d,
|
|
4172
4173
|
colorChange: m,
|
|
4173
4174
|
setColor: b,
|
|
4174
4175
|
update: C
|
|
4175
|
-
} = Dr(),
|
|
4176
|
+
} = Dr(), w = (_) => {
|
|
4176
4177
|
const { offsetX: D, offsetY: R } = _.nativeEvent;
|
|
4177
4178
|
c(!0), P(D, R, _.currentTarget);
|
|
4178
4179
|
}, x = (_) => {
|
|
@@ -4184,7 +4185,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4184
4185
|
c(!1);
|
|
4185
4186
|
}, P = (_, D, R) => {
|
|
4186
4187
|
const { width: M, height: F } = R.getBoundingClientRect(), G = Math.max(0, Math.min(_ / M * 100, 100)), he = Math.max(0, Math.min(100 - D / F * 100, 100));
|
|
4187
|
-
f(G),
|
|
4188
|
+
f(G), d(he), A(G, he);
|
|
4188
4189
|
}, A = (_, D) => {
|
|
4189
4190
|
const R = I(a, _, D);
|
|
4190
4191
|
m(R), b(R);
|
|
@@ -4226,7 +4227,7 @@ const zi = "_buttons_1gn8m_1", Vi = "_button_1gn8m_1", Wi = {
|
|
|
4226
4227
|
"div",
|
|
4227
4228
|
{
|
|
4228
4229
|
className: ke.colorMap,
|
|
4229
|
-
onMouseDown:
|
|
4230
|
+
onMouseDown: w,
|
|
4230
4231
|
style: {
|
|
4231
4232
|
background: `
|
|
4232
4233
|
linear-gradient(to top, black, transparent),
|
|
@@ -4281,7 +4282,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4281
4282
|
]
|
|
4282
4283
|
}
|
|
4283
4284
|
);
|
|
4284
|
-
},
|
|
4285
|
+
}, ws = () => {
|
|
4285
4286
|
const { onPreview: e } = tt(), {
|
|
4286
4287
|
// hoverBlockId,
|
|
4287
4288
|
isModalVisible: t
|
|
@@ -4296,32 +4297,32 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4296
4297
|
l(!1);
|
|
4297
4298
|
}, 100);
|
|
4298
4299
|
}, [e, n]), /* @__PURE__ */ i.jsxs("div", { className: Yt.preview, children: [
|
|
4299
|
-
t && /* @__PURE__ */ i.jsx(
|
|
4300
|
-
r && /* @__PURE__ */ i.jsx(
|
|
4300
|
+
t && /* @__PURE__ */ i.jsx(Pa, { children: /* @__PURE__ */ i.jsx(na, {}) }),
|
|
4301
|
+
r && /* @__PURE__ */ i.jsx(Ss, {}),
|
|
4301
4302
|
e && /* @__PURE__ */ i.jsxs("div", { className: Yt.main, children: [
|
|
4302
|
-
/* @__PURE__ */ i.jsx(
|
|
4303
|
-
/* @__PURE__ */ i.jsx("div", { className: Yt.content, children: a ? /* @__PURE__ */ i.jsx("div", { className: Yt.loading, children: /* @__PURE__ */ i.jsx(En, {}) }) : /* @__PURE__ */ i.jsx(
|
|
4303
|
+
/* @__PURE__ */ i.jsx(Kl, {}),
|
|
4304
|
+
/* @__PURE__ */ i.jsx("div", { className: Yt.content, children: a ? /* @__PURE__ */ i.jsx("div", { className: Yt.loading, children: /* @__PURE__ */ i.jsx(En, {}) }) : /* @__PURE__ */ i.jsx(fs, {}) })
|
|
4304
4305
|
] })
|
|
4305
4306
|
] });
|
|
4306
|
-
},
|
|
4307
|
-
sidebar:
|
|
4308
|
-
title:
|
|
4309
|
-
active:
|
|
4310
|
-
},
|
|
4311
|
-
layers:
|
|
4312
|
-
block:
|
|
4313
|
-
dragging:
|
|
4314
|
-
active:
|
|
4315
|
-
add:
|
|
4316
|
-
button:
|
|
4317
|
-
empty:
|
|
4318
|
-
title:
|
|
4319
|
-
icon:
|
|
4320
|
-
text:
|
|
4321
|
-
highlight:
|
|
4322
|
-
},
|
|
4323
|
-
block:
|
|
4324
|
-
},
|
|
4307
|
+
}, Cs = "_sidebar_96mlz_1", xs = "_title_96mlz_10", _s = "_active_96mlz_18", Lr = {
|
|
4308
|
+
sidebar: Cs,
|
|
4309
|
+
title: xs,
|
|
4310
|
+
active: _s
|
|
4311
|
+
}, ks = "_layers_62wod_1", js = "_block_62wod_8", Ps = "_dragging_62wod_23", Ls = "_active_62wod_31", Es = "_add_62wod_35", Ns = "_button_62wod_47", Ds = "_empty_62wod_60", Rs = "_title_62wod_72", Ts = "_icon_62wod_79", As = "_text_62wod_83", Bs = "_highlight_62wod_89", ft = {
|
|
4312
|
+
layers: ks,
|
|
4313
|
+
block: js,
|
|
4314
|
+
dragging: Ps,
|
|
4315
|
+
active: Ls,
|
|
4316
|
+
add: Es,
|
|
4317
|
+
button: Ns,
|
|
4318
|
+
empty: Ds,
|
|
4319
|
+
title: Rs,
|
|
4320
|
+
icon: Ts,
|
|
4321
|
+
text: As,
|
|
4322
|
+
highlight: Bs
|
|
4323
|
+
}, Fs = "_block_1d6lb_1", Er = {
|
|
4324
|
+
block: Fs
|
|
4325
|
+
}, Ms = () => {
|
|
4325
4326
|
const { setCurrentBlock: e } = ce(), { activeBlock: t } = tt();
|
|
4326
4327
|
function n(r) {
|
|
4327
4328
|
e(r);
|
|
@@ -4339,9 +4340,9 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4339
4340
|
]
|
|
4340
4341
|
}
|
|
4341
4342
|
);
|
|
4342
|
-
},
|
|
4343
|
-
block:
|
|
4344
|
-
},
|
|
4343
|
+
}, Os = "_block_1d6lb_1", Nr = {
|
|
4344
|
+
block: Os
|
|
4345
|
+
}, Us = () => {
|
|
4345
4346
|
const { activeBlock: e } = tt(), { setCurrentBlock: t } = ce();
|
|
4346
4347
|
function n(r) {
|
|
4347
4348
|
t(r);
|
|
@@ -4359,32 +4360,32 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4359
4360
|
]
|
|
4360
4361
|
}
|
|
4361
4362
|
);
|
|
4362
|
-
},
|
|
4363
|
+
}, Hs = ({ id: e, name: t, index: n, moveBlock: r, onClick: a }) => {
|
|
4363
4364
|
const { currentPage: l, pages: o } = ie(), { activeBlock: s } = tt(), {
|
|
4364
4365
|
showPreview: c,
|
|
4365
4366
|
hidePreview: p,
|
|
4366
4367
|
showModal: f,
|
|
4367
|
-
hideModal:
|
|
4368
|
+
hideModal: d,
|
|
4368
4369
|
clearHideTimeout: m,
|
|
4369
4370
|
startHideTimeout: b,
|
|
4370
4371
|
hoverBlockId: C,
|
|
4371
|
-
isModalVisible:
|
|
4372
|
+
isModalVisible: w
|
|
4372
4373
|
} = sn(), { setPositionBlock: x } = ce(), [k, P] = W.useState(!1), A = () => {
|
|
4373
|
-
|
|
4374
|
+
w && d(), c(e), P(!0), m();
|
|
4374
4375
|
}, E = (_) => {
|
|
4375
4376
|
_.stopPropagation(), p(), f(e), m(), x(n + 1);
|
|
4376
4377
|
}, V = () => {
|
|
4377
|
-
|
|
4378
|
+
w ? b() : (P(!1), p());
|
|
4378
4379
|
};
|
|
4379
4380
|
W.useEffect(() => {
|
|
4380
|
-
|
|
4381
|
-
}, [
|
|
4382
|
-
const [, I] =
|
|
4381
|
+
w || P(!1);
|
|
4382
|
+
}, [w]);
|
|
4383
|
+
const [, I] = Na({
|
|
4383
4384
|
accept: "block",
|
|
4384
4385
|
hover(_) {
|
|
4385
4386
|
_.index !== n && o && (r(o[l].name, _.index, n), _.index = n);
|
|
4386
4387
|
}
|
|
4387
|
-
}), [{ isDragging: q }, g] =
|
|
4388
|
+
}), [{ isDragging: q }, g] = Da({
|
|
4388
4389
|
type: "block",
|
|
4389
4390
|
item: { id: e, index: n },
|
|
4390
4391
|
collect: (_) => ({
|
|
@@ -4422,7 +4423,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4422
4423
|
]
|
|
4423
4424
|
}
|
|
4424
4425
|
);
|
|
4425
|
-
},
|
|
4426
|
+
}, Is = () => {
|
|
4426
4427
|
const { blocks: e, setCurrentBlock: t, moveBlock: n } = ce(), { currentPage: r, pages: a } = ie(), { setMouseOverModal: l, setHoverBlockId: o } = sn();
|
|
4427
4428
|
function s(f) {
|
|
4428
4429
|
t(f), l(!1), o(null);
|
|
@@ -4433,36 +4434,36 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4433
4434
|
return console.log(c, f), new c[f]().blockSettings.displayName;
|
|
4434
4435
|
}
|
|
4435
4436
|
return /* @__PURE__ */ i.jsxs("div", { className: ft.layers, children: [
|
|
4436
|
-
/* @__PURE__ */ i.jsx(
|
|
4437
|
-
/* @__PURE__ */ i.jsx(
|
|
4438
|
-
|
|
4437
|
+
/* @__PURE__ */ i.jsx(Ms, {}),
|
|
4438
|
+
/* @__PURE__ */ i.jsx(La, { backend: Ea, children: /* @__PURE__ */ i.jsx(i.Fragment, { children: a && a[r] && e[a[r].name] && Object.keys(e[a[r].name]).map((f, d) => /* @__PURE__ */ i.jsx(
|
|
4439
|
+
Hs,
|
|
4439
4440
|
{
|
|
4440
4441
|
id: f,
|
|
4441
4442
|
name: p(e[a[r].name][f].name),
|
|
4442
|
-
index:
|
|
4443
|
+
index: d,
|
|
4443
4444
|
moveBlock: n,
|
|
4444
4445
|
onClick: s
|
|
4445
4446
|
},
|
|
4446
4447
|
f
|
|
4447
4448
|
)) }) }),
|
|
4448
|
-
/* @__PURE__ */ i.jsx(
|
|
4449
|
+
/* @__PURE__ */ i.jsx(Us, {})
|
|
4449
4450
|
] });
|
|
4450
|
-
},
|
|
4451
|
+
}, $s = ({ isHeader: e }) => {
|
|
4451
4452
|
const { header: t, footer: n } = ce(), { pageContext: r } = ie();
|
|
4452
4453
|
return e ? t == null ? void 0 : t.renderSettings(r) : n == null ? void 0 : n.renderSettings(r);
|
|
4453
|
-
},
|
|
4454
|
+
}, zs = () => {
|
|
4454
4455
|
const { settings: e } = et();
|
|
4455
4456
|
return e == null ? void 0 : e.renderSettings();
|
|
4456
|
-
},
|
|
4457
|
-
theme:
|
|
4458
|
-
block:
|
|
4459
|
-
name:
|
|
4460
|
-
},
|
|
4457
|
+
}, Vs = "_theme_1xj36_1", Ws = "_block_1xj36_6", Gs = "_name_1xj36_20", kn = {
|
|
4458
|
+
theme: Vs,
|
|
4459
|
+
block: Ws,
|
|
4460
|
+
name: Gs
|
|
4461
|
+
}, qs = () => {
|
|
4461
4462
|
const { setActiveBlock: e } = ve();
|
|
4462
4463
|
function t(n) {
|
|
4463
4464
|
e(n);
|
|
4464
4465
|
}
|
|
4465
|
-
return /* @__PURE__ */ i.jsx("div", { className: kn.theme, children:
|
|
4466
|
+
return /* @__PURE__ */ i.jsx("div", { className: kn.theme, children: Bi.map((n) => /* @__PURE__ */ i.jsxs(
|
|
4466
4467
|
"div",
|
|
4467
4468
|
{
|
|
4468
4469
|
onClick: () => t(n),
|
|
@@ -4475,30 +4476,30 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4475
4476
|
},
|
|
4476
4477
|
n.icon
|
|
4477
4478
|
)) });
|
|
4478
|
-
},
|
|
4479
|
-
back:
|
|
4480
|
-
render:
|
|
4481
|
-
open:
|
|
4482
|
-
close:
|
|
4483
|
-
clicked:
|
|
4484
|
-
title:
|
|
4485
|
-
button:
|
|
4486
|
-
loading:
|
|
4487
|
-
settings:
|
|
4488
|
-
deleteButton:
|
|
4489
|
-
},
|
|
4479
|
+
}, Ks = "_back_y3z55_1", Ys = "_render_y3z55_8", Xs = "_open_y3z55_23", Js = "_close_y3z55_50", Qs = "_clicked_y3z55_54", Zs = "_title_y3z55_58", ec = "_button_y3z55_66", tc = "_loading_y3z55_71", nc = "_settings_y3z55_75", rc = "_deleteButton_y3z55_81", Pe = {
|
|
4480
|
+
back: Ks,
|
|
4481
|
+
render: Ys,
|
|
4482
|
+
open: Xs,
|
|
4483
|
+
close: Js,
|
|
4484
|
+
clicked: Qs,
|
|
4485
|
+
title: Zs,
|
|
4486
|
+
button: ec,
|
|
4487
|
+
loading: tc,
|
|
4488
|
+
settings: nc,
|
|
4489
|
+
deleteButton: rc
|
|
4490
|
+
}, ac = ({ block: e }) => {
|
|
4490
4491
|
if (!e) return null;
|
|
4491
4492
|
const { pageContext: t } = ie();
|
|
4492
4493
|
return e.renderSettings(t);
|
|
4493
|
-
},
|
|
4494
|
+
}, oc = (e) => {
|
|
4494
4495
|
var R;
|
|
4495
4496
|
const { isAdd: t } = e, [n, r] = W.useState(!1), { setActiveBlock: a } = ln(), { sourceBlocks: l, activeBlock: o, setActiveBlock: s, currentInstance: c, setCurrentInstance: p } = Ne(), {
|
|
4496
4497
|
blocks: f,
|
|
4497
|
-
addBlock:
|
|
4498
|
+
addBlock: d,
|
|
4498
4499
|
editBlock: m,
|
|
4499
4500
|
currentBlock: b,
|
|
4500
4501
|
setCurrentBlock: C,
|
|
4501
|
-
removeBlock:
|
|
4502
|
+
removeBlock: w,
|
|
4502
4503
|
setPositionBlock: x,
|
|
4503
4504
|
setHeader: k,
|
|
4504
4505
|
setFooter: P,
|
|
@@ -4573,7 +4574,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4573
4574
|
"button",
|
|
4574
4575
|
{
|
|
4575
4576
|
onClick: () => {
|
|
4576
|
-
r(!0),
|
|
4577
|
+
r(!0), w(I[V].name, b), q(!0);
|
|
4577
4578
|
},
|
|
4578
4579
|
className: Pe.deleteButton,
|
|
4579
4580
|
children: /* @__PURE__ */ i.jsx(
|
|
@@ -4587,8 +4588,8 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4587
4588
|
)
|
|
4588
4589
|
] }),
|
|
4589
4590
|
/* @__PURE__ */ i.jsxs("div", { className: Pe.settings, children: [
|
|
4590
|
-
c && /* @__PURE__ */ i.jsx(
|
|
4591
|
-
b && ["header", "footer"].includes(b) && /* @__PURE__ */ i.jsx(
|
|
4591
|
+
c && /* @__PURE__ */ i.jsx(ac, { block: c }),
|
|
4592
|
+
b && ["header", "footer"].includes(b) && /* @__PURE__ */ i.jsx($s, { isHeader: b === "header" }),
|
|
4592
4593
|
!o && !b && /* @__PURE__ */ i.jsx("div", { className: Pe.loading, children: "Loading" })
|
|
4593
4594
|
] }),
|
|
4594
4595
|
t && /* @__PURE__ */ i.jsx("div", { className: Pe.addButton, children: /* @__PURE__ */ i.jsx(
|
|
@@ -4604,7 +4605,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4604
4605
|
};
|
|
4605
4606
|
Object.keys(c.blockSettings).filter((F) => !["displayName", "isAddable"].includes(F)).map((F) => {
|
|
4606
4607
|
M.blockSettings[F] = c.blockSettings[F];
|
|
4607
|
-
}),
|
|
4608
|
+
}), d(I[V].name, {
|
|
4608
4609
|
name: o,
|
|
4609
4610
|
value: M
|
|
4610
4611
|
}), x(null);
|
|
@@ -4618,21 +4619,21 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4618
4619
|
]
|
|
4619
4620
|
}
|
|
4620
4621
|
);
|
|
4621
|
-
},
|
|
4622
|
-
settings:
|
|
4623
|
-
open:
|
|
4624
|
-
close:
|
|
4625
|
-
header:
|
|
4626
|
-
title:
|
|
4627
|
-
addButton:
|
|
4628
|
-
},
|
|
4629
|
-
wrapper:
|
|
4630
|
-
category:
|
|
4631
|
-
categoryTitle:
|
|
4632
|
-
color:
|
|
4633
|
-
content:
|
|
4634
|
-
preview:
|
|
4635
|
-
},
|
|
4622
|
+
}, ic = "_settings_1r85j_1", lc = "_open_1r85j_16", sc = "_close_1r85j_20", cc = "_header_1r85j_24", uc = "_title_1r85j_30", dc = "_addButton_1r85j_37", Pt = {
|
|
4623
|
+
settings: ic,
|
|
4624
|
+
open: lc,
|
|
4625
|
+
close: sc,
|
|
4626
|
+
header: cc,
|
|
4627
|
+
title: uc,
|
|
4628
|
+
addButton: dc
|
|
4629
|
+
}, hc = "_wrapper_n1a7x_1", fc = "_category_n1a7x_5", pc = "_categoryTitle_n1a7x_10", mc = "_color_n1a7x_16", gc = "_content_n1a7x_24", vc = "_preview_n1a7x_32", ct = {
|
|
4630
|
+
wrapper: hc,
|
|
4631
|
+
category: fc,
|
|
4632
|
+
categoryTitle: pc,
|
|
4633
|
+
color: mc,
|
|
4634
|
+
content: gc,
|
|
4635
|
+
preview: vc
|
|
4636
|
+
}, bc = () => {
|
|
4636
4637
|
const { themeSettings: e, updateColor: t } = ve();
|
|
4637
4638
|
async function n(a, l, o) {
|
|
4638
4639
|
t(a, l, o);
|
|
@@ -4676,7 +4677,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4676
4677
|
)
|
|
4677
4678
|
] }),
|
|
4678
4679
|
r.includes(s) && /* @__PURE__ */ i.jsx(
|
|
4679
|
-
|
|
4680
|
+
Ra,
|
|
4680
4681
|
{
|
|
4681
4682
|
type: "warning",
|
|
4682
4683
|
message: "To avoid contrast problems, please use a different color",
|
|
@@ -4693,22 +4694,22 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4693
4694
|
},
|
|
4694
4695
|
a
|
|
4695
4696
|
)) });
|
|
4696
|
-
},
|
|
4697
|
-
wrapper:
|
|
4698
|
-
category:
|
|
4699
|
-
categoryTitle:
|
|
4700
|
-
color:
|
|
4701
|
-
name:
|
|
4702
|
-
content:
|
|
4703
|
-
label:
|
|
4704
|
-
input:
|
|
4705
|
-
title:
|
|
4706
|
-
field:
|
|
4707
|
-
alignments:
|
|
4708
|
-
lineField:
|
|
4709
|
-
style:
|
|
4710
|
-
header:
|
|
4711
|
-
},
|
|
4697
|
+
}, yc = "_wrapper_kb55x_2", Sc = "_category_kb55x_6", wc = "_categoryTitle_kb55x_11", Cc = "_color_kb55x_17", xc = "_name_kb55x_23", _c = "_content_kb55x_28", kc = "_label_kb55x_34", jc = "_input_kb55x_45", Pc = "_title_kb55x_71", Lc = "_field_kb55x_79", Ec = "_alignments_kb55x_89", Nc = "_lineField_kb55x_95", Dc = "_style_kb55x_101", Rc = "_header_kb55x_108", Le = {
|
|
4698
|
+
wrapper: yc,
|
|
4699
|
+
category: Sc,
|
|
4700
|
+
categoryTitle: wc,
|
|
4701
|
+
color: Cc,
|
|
4702
|
+
name: xc,
|
|
4703
|
+
content: _c,
|
|
4704
|
+
label: kc,
|
|
4705
|
+
input: jc,
|
|
4706
|
+
title: Pc,
|
|
4707
|
+
field: Lc,
|
|
4708
|
+
alignments: Ec,
|
|
4709
|
+
lineField: Nc,
|
|
4710
|
+
style: Dc,
|
|
4711
|
+
header: Rc
|
|
4712
|
+
}, Tc = ["left", "center", "right"], Ac = ["solid", "dashed"], Jt = (e) => {
|
|
4712
4713
|
const { title: t, children: n, rightAddon: r } = e;
|
|
4713
4714
|
return /* @__PURE__ */ i.jsxs("div", { className: Le.field, children: [
|
|
4714
4715
|
/* @__PURE__ */ i.jsxs("div", { className: Le.header, children: [
|
|
@@ -4717,7 +4718,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4717
4718
|
] }),
|
|
4718
4719
|
n
|
|
4719
4720
|
] });
|
|
4720
|
-
},
|
|
4721
|
+
}, Bc = () => {
|
|
4721
4722
|
const { themeSettings: e, updateInput: t } = ve(), n = Ar(() => e.inputs, [e]), r = (l, o, s) => {
|
|
4722
4723
|
t(l, o, s);
|
|
4723
4724
|
}, a = (l) => (o) => {
|
|
@@ -4814,7 +4815,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4814
4815
|
/* @__PURE__ */ i.jsx(
|
|
4815
4816
|
tr,
|
|
4816
4817
|
{
|
|
4817
|
-
items:
|
|
4818
|
+
items: Ac,
|
|
4818
4819
|
selectedItem: n.border.style,
|
|
4819
4820
|
onSelect: (l) => r("border", l, "style"),
|
|
4820
4821
|
getIconName: (l) => l === "solid" ? "Minus" : "Selection"
|
|
@@ -4888,7 +4889,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4888
4889
|
/* @__PURE__ */ i.jsx(
|
|
4889
4890
|
tr,
|
|
4890
4891
|
{
|
|
4891
|
-
items:
|
|
4892
|
+
items: Tc,
|
|
4892
4893
|
selectedItem: n.label.alignment,
|
|
4893
4894
|
onSelect: (l) => r("label", l, "alignment"),
|
|
4894
4895
|
getIconName: (l) => l === "center" ? "AlignCenterHorizontal" : l === "left" ? "AlignLeft" : "AlignRight"
|
|
@@ -4897,17 +4898,17 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4897
4898
|
] })
|
|
4898
4899
|
] })
|
|
4899
4900
|
] });
|
|
4900
|
-
},
|
|
4901
|
-
wrapper:
|
|
4902
|
-
category:
|
|
4903
|
-
categoryTitle:
|
|
4904
|
-
font:
|
|
4905
|
-
content:
|
|
4906
|
-
icon:
|
|
4907
|
-
paragraph:
|
|
4908
|
-
deleteIcon:
|
|
4909
|
-
iconButton:
|
|
4910
|
-
},
|
|
4901
|
+
}, Fc = "_wrapper_k9on2_1", Mc = "_category_k9on2_5", Oc = "_categoryTitle_k9on2_10", Uc = "_font_k9on2_16", Hc = "_content_k9on2_36", Ic = "_icon_k9on2_42", $c = "_paragraph_k9on2_51", zc = "_deleteIcon_k9on2_55", Vc = "_iconButton_k9on2_62", Oe = {
|
|
4902
|
+
wrapper: Fc,
|
|
4903
|
+
category: Mc,
|
|
4904
|
+
categoryTitle: Oc,
|
|
4905
|
+
font: Uc,
|
|
4906
|
+
content: Hc,
|
|
4907
|
+
icon: Ic,
|
|
4908
|
+
paragraph: $c,
|
|
4909
|
+
deleteIcon: zc,
|
|
4910
|
+
iconButton: Vc
|
|
4911
|
+
}, Wc = (e) => {
|
|
4911
4912
|
const { font: t, size: n, id: r, category: a } = e, { setActiveFont: l } = ve();
|
|
4912
4913
|
return /* @__PURE__ */ i.jsxs(
|
|
4913
4914
|
"div",
|
|
@@ -4931,7 +4932,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4931
4932
|
]
|
|
4932
4933
|
}
|
|
4933
4934
|
);
|
|
4934
|
-
},
|
|
4935
|
+
}, Gc = () => {
|
|
4935
4936
|
const { themeSettings: e, setActiveFont: t, activeBlock: n } = ve();
|
|
4936
4937
|
W.useEffect(() => (r(), () => {
|
|
4937
4938
|
r();
|
|
@@ -4947,7 +4948,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4947
4948
|
children: [
|
|
4948
4949
|
/* @__PURE__ */ i.jsx("h2", { className: Oe.categoryTitle, children: we(a) }),
|
|
4949
4950
|
Object.entries(l).map(([o, s]) => /* @__PURE__ */ i.jsx(
|
|
4950
|
-
|
|
4951
|
+
Wc,
|
|
4951
4952
|
{
|
|
4952
4953
|
id: o,
|
|
4953
4954
|
category: a,
|
|
@@ -4959,21 +4960,21 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
4959
4960
|
},
|
|
4960
4961
|
a
|
|
4961
4962
|
)) });
|
|
4962
|
-
},
|
|
4963
|
-
wrapper:
|
|
4964
|
-
open:
|
|
4965
|
-
close:
|
|
4966
|
-
header:
|
|
4967
|
-
title:
|
|
4968
|
-
options:
|
|
4969
|
-
clicked:
|
|
4970
|
-
},
|
|
4963
|
+
}, qc = "_wrapper_94fpv_1", Kc = "_open_94fpv_16", Yc = "_close_94fpv_20", Xc = "_header_94fpv_24", Jc = "_title_94fpv_31", Qc = "_options_94fpv_37", Zc = "_clicked_94fpv_44", ut = {
|
|
4964
|
+
wrapper: qc,
|
|
4965
|
+
open: Kc,
|
|
4966
|
+
close: Yc,
|
|
4967
|
+
header: Xc,
|
|
4968
|
+
title: Jc,
|
|
4969
|
+
options: Qc,
|
|
4970
|
+
clicked: Zc
|
|
4971
|
+
}, eu = () => {
|
|
4971
4972
|
const { activeBlock: e, setActiveFont: t, activeFont: n, themeSettings: r, updateFont: a } = ve(), { fonts: l } = Rr(), [o, s] = W.useState(null);
|
|
4972
4973
|
function c() {
|
|
4973
4974
|
t(null);
|
|
4974
4975
|
}
|
|
4975
|
-
function p(
|
|
4976
|
-
o && n && a(o, n, m,
|
|
4976
|
+
function p(d, m) {
|
|
4977
|
+
o && n && a(o, n, m, d);
|
|
4977
4978
|
}
|
|
4978
4979
|
const f = W.useMemo(() => n ? r.fonts.heading[n] ? (s("heading"), r.fonts.heading[n]) : r.fonts.paragraph[n] ? (s("paragraph"), r.fonts.paragraph[n]) : (s(null), null) : null, [n, r]);
|
|
4979
4980
|
return /* @__PURE__ */ i.jsxs(
|
|
@@ -5007,8 +5008,8 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5007
5008
|
{
|
|
5008
5009
|
label: "Font",
|
|
5009
5010
|
value: f.font,
|
|
5010
|
-
onChange: (
|
|
5011
|
-
options: [...l.filter((
|
|
5011
|
+
onChange: (d) => p(d, "font"),
|
|
5012
|
+
options: [...l.filter((d) => d !== f.font)]
|
|
5012
5013
|
}
|
|
5013
5014
|
),
|
|
5014
5015
|
/* @__PURE__ */ i.jsx(
|
|
@@ -5016,7 +5017,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5016
5017
|
{
|
|
5017
5018
|
label: "Size",
|
|
5018
5019
|
value: String(f.size),
|
|
5019
|
-
onChange: (
|
|
5020
|
+
onChange: (d) => p(d, "size"),
|
|
5020
5021
|
options: tn
|
|
5021
5022
|
}
|
|
5022
5023
|
),
|
|
@@ -5025,22 +5026,22 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5025
5026
|
{
|
|
5026
5027
|
label: "Weight",
|
|
5027
5028
|
value: String(f.weight),
|
|
5028
|
-
onChange: (
|
|
5029
|
-
options:
|
|
5029
|
+
onChange: (d) => p(d, "weight"),
|
|
5030
|
+
options: Ta
|
|
5030
5031
|
}
|
|
5031
5032
|
)
|
|
5032
5033
|
] })
|
|
5033
5034
|
]
|
|
5034
5035
|
}
|
|
5035
5036
|
);
|
|
5036
|
-
},
|
|
5037
|
-
wrapper:
|
|
5038
|
-
open:
|
|
5039
|
-
close:
|
|
5040
|
-
header:
|
|
5041
|
-
title:
|
|
5042
|
-
options:
|
|
5043
|
-
clicked:
|
|
5037
|
+
}, tu = "_wrapper_94fpv_1", nu = "_open_94fpv_16", ru = "_close_94fpv_20", au = "_header_94fpv_24", ou = "_title_94fpv_31", iu = "_options_94fpv_37", lu = "_clicked_94fpv_44", dt = {
|
|
5038
|
+
wrapper: tu,
|
|
5039
|
+
open: nu,
|
|
5040
|
+
close: ru,
|
|
5041
|
+
header: au,
|
|
5042
|
+
title: ou,
|
|
5043
|
+
options: iu,
|
|
5044
|
+
clicked: lu
|
|
5044
5045
|
}, ra = () => {
|
|
5045
5046
|
const { activeBlock: e, themeSettings: t, updateBorder: n, setActiveBlock: r } = ve();
|
|
5046
5047
|
function a(s, c) {
|
|
@@ -5094,20 +5095,20 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5094
5095
|
]
|
|
5095
5096
|
}
|
|
5096
5097
|
);
|
|
5097
|
-
},
|
|
5098
|
-
wrapper:
|
|
5099
|
-
open:
|
|
5100
|
-
close:
|
|
5101
|
-
header:
|
|
5102
|
-
title:
|
|
5103
|
-
options:
|
|
5104
|
-
clicked:
|
|
5105
|
-
label:
|
|
5106
|
-
alignments:
|
|
5107
|
-
blocks:
|
|
5108
|
-
alignment:
|
|
5109
|
-
active:
|
|
5110
|
-
},
|
|
5098
|
+
}, su = "_wrapper_1j33r_1", cu = "_open_1j33r_16", uu = "_close_1j33r_20", du = "_header_1j33r_24", hu = "_title_1j33r_31", fu = "_options_1j33r_37", pu = "_clicked_1j33r_44", mu = "_label_1j33r_48", gu = "_alignments_1j33r_55", vu = "_blocks_1j33r_61", bu = "_alignment_1j33r_55", yu = "_active_1j33r_75", be = {
|
|
5099
|
+
wrapper: su,
|
|
5100
|
+
open: cu,
|
|
5101
|
+
close: uu,
|
|
5102
|
+
header: du,
|
|
5103
|
+
title: hu,
|
|
5104
|
+
options: fu,
|
|
5105
|
+
clicked: pu,
|
|
5106
|
+
label: mu,
|
|
5107
|
+
alignments: gu,
|
|
5108
|
+
blocks: vu,
|
|
5109
|
+
alignment: bu,
|
|
5110
|
+
active: yu
|
|
5111
|
+
}, Su = ["left", "center", "right"], aa = () => {
|
|
5111
5112
|
const { activeBlock: e, themeSettings: t, updateButton: n, setActiveBlock: r } = ve();
|
|
5112
5113
|
function a(s, c) {
|
|
5113
5114
|
n(c, s);
|
|
@@ -5167,7 +5168,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5167
5168
|
),
|
|
5168
5169
|
/* @__PURE__ */ i.jsxs("div", { className: be.alignments, children: [
|
|
5169
5170
|
/* @__PURE__ */ i.jsx("h4", { className: be.label, children: "Alignment Type" }),
|
|
5170
|
-
/* @__PURE__ */ i.jsx("div", { className: be.blocks, children:
|
|
5171
|
+
/* @__PURE__ */ i.jsx("div", { className: be.blocks, children: Su.map((s) => /* @__PURE__ */ i.jsx(
|
|
5171
5172
|
"div",
|
|
5172
5173
|
{
|
|
5173
5174
|
className: ne(be.alignment, {
|
|
@@ -5191,14 +5192,14 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5191
5192
|
]
|
|
5192
5193
|
}
|
|
5193
5194
|
);
|
|
5194
|
-
},
|
|
5195
|
+
}, wu = () => {
|
|
5195
5196
|
const { activeBlock: e } = ve();
|
|
5196
5197
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
5197
|
-
(e == null ? void 0 : e.name) === "Fonts" && /* @__PURE__ */ i.jsx(
|
|
5198
|
+
(e == null ? void 0 : e.name) === "Fonts" && /* @__PURE__ */ i.jsx(eu, {}),
|
|
5198
5199
|
(e == null ? void 0 : e.name) === "Borders" && /* @__PURE__ */ i.jsx(ra, {}),
|
|
5199
5200
|
(e == null ? void 0 : e.name) === "Buttons" && /* @__PURE__ */ i.jsx(aa, {})
|
|
5200
5201
|
] });
|
|
5201
|
-
},
|
|
5202
|
+
}, Cu = () => {
|
|
5202
5203
|
const { activeBlock: e, setActiveBlock: t } = ve(), { activeBlock: n } = ln();
|
|
5203
5204
|
function r() {
|
|
5204
5205
|
t(null);
|
|
@@ -5222,16 +5223,16 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5222
5223
|
),
|
|
5223
5224
|
/* @__PURE__ */ i.jsx("span", { className: Pt.title, children: e == null ? void 0 : e.name })
|
|
5224
5225
|
] }),
|
|
5225
|
-
(e == null ? void 0 : e.name) === "Fonts" && /* @__PURE__ */ i.jsx(
|
|
5226
|
-
(e == null ? void 0 : e.name) === "Colors" && /* @__PURE__ */ i.jsx(
|
|
5227
|
-
(e == null ? void 0 : e.name) === "Inputs" && /* @__PURE__ */ i.jsx(
|
|
5226
|
+
(e == null ? void 0 : e.name) === "Fonts" && /* @__PURE__ */ i.jsx(Gc, {}),
|
|
5227
|
+
(e == null ? void 0 : e.name) === "Colors" && /* @__PURE__ */ i.jsx(bc, {}),
|
|
5228
|
+
(e == null ? void 0 : e.name) === "Inputs" && /* @__PURE__ */ i.jsx(Bc, {}),
|
|
5228
5229
|
(e == null ? void 0 : e.name) === "Borders" && /* @__PURE__ */ i.jsx(ra, {}),
|
|
5229
5230
|
(e == null ? void 0 : e.name) === "Borders" && /* @__PURE__ */ i.jsx(aa, {}),
|
|
5230
|
-
/* @__PURE__ */ i.jsx(
|
|
5231
|
+
/* @__PURE__ */ i.jsx(wu, {})
|
|
5231
5232
|
]
|
|
5232
5233
|
}
|
|
5233
5234
|
);
|
|
5234
|
-
},
|
|
5235
|
+
}, xu = () => {
|
|
5235
5236
|
const { activeBlock: e } = ln(), { activeBlock: t } = Ne();
|
|
5236
5237
|
function n() {
|
|
5237
5238
|
switch (e.name) {
|
|
@@ -5247,26 +5248,26 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5247
5248
|
}
|
|
5248
5249
|
return /* @__PURE__ */ i.jsxs("div", { className: Lr.sidebar, children: [
|
|
5249
5250
|
/* @__PURE__ */ i.jsx("h3", { className: Lr.title, children: n() }),
|
|
5250
|
-
e.name === "Layers" && /* @__PURE__ */ i.jsx(
|
|
5251
|
+
e.name === "Layers" && /* @__PURE__ */ i.jsx(Is, {}),
|
|
5251
5252
|
e.name === "Add" && /* @__PURE__ */ i.jsx(na, {}),
|
|
5252
|
-
/* @__PURE__ */ i.jsx(
|
|
5253
|
-
/* @__PURE__ */ i.jsx(
|
|
5254
|
-
e.name === "Theme" && /* @__PURE__ */ i.jsx(
|
|
5255
|
-
e.name === "Settings" && /* @__PURE__ */ i.jsx(
|
|
5253
|
+
/* @__PURE__ */ i.jsx(oc, { isAdd: !!t }),
|
|
5254
|
+
/* @__PURE__ */ i.jsx(Cu, {}),
|
|
5255
|
+
e.name === "Theme" && /* @__PURE__ */ i.jsx(qs, {}),
|
|
5256
|
+
e.name === "Settings" && /* @__PURE__ */ i.jsx(zs, {})
|
|
5256
5257
|
] });
|
|
5257
|
-
},
|
|
5258
|
-
wrapper:
|
|
5259
|
-
header:
|
|
5260
|
-
content:
|
|
5261
|
-
buttons:
|
|
5262
|
-
cancel:
|
|
5263
|
-
label:
|
|
5264
|
-
description:
|
|
5265
|
-
preview:
|
|
5266
|
-
block:
|
|
5267
|
-
slug:
|
|
5268
|
-
title:
|
|
5269
|
-
},
|
|
5258
|
+
}, _u = "_wrapper_jjfwh_1", ku = "_header_jjfwh_12", ju = "_content_jjfwh_21", Pu = "_buttons_jjfwh_29", Lu = "_cancel_jjfwh_35", Eu = "_label_jjfwh_40", Nu = "_description_jjfwh_41", Du = "_preview_jjfwh_49", Ru = "_block_jjfwh_55", Tu = "_slug_jjfwh_63", Au = "_title_jjfwh_69", ye = {
|
|
5259
|
+
wrapper: _u,
|
|
5260
|
+
header: ku,
|
|
5261
|
+
content: ju,
|
|
5262
|
+
buttons: Pu,
|
|
5263
|
+
cancel: Lu,
|
|
5264
|
+
label: Eu,
|
|
5265
|
+
description: Nu,
|
|
5266
|
+
preview: Du,
|
|
5267
|
+
block: Ru,
|
|
5268
|
+
slug: Tu,
|
|
5269
|
+
title: Au
|
|
5270
|
+
}, Bu = () => {
|
|
5270
5271
|
var q, g, _, D, R, M;
|
|
5271
5272
|
const {
|
|
5272
5273
|
setIsOpenModal: e,
|
|
@@ -5277,13 +5278,13 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5277
5278
|
setIsEdit: l,
|
|
5278
5279
|
editedPage: o,
|
|
5279
5280
|
setEditedPage: s
|
|
5280
|
-
} = ie(), { createPage: c, updatePage: p } = ce(), [f,
|
|
5281
|
+
} = ie(), { createPage: c, updatePage: p } = ce(), [f, d] = W.useState(o ? t && ((q = t[o]) == null ? void 0 : q.path) : ""), [m, b] = W.useState(o ? t && ((g = t[o]) == null ? void 0 : g.name) : ""), [C, w] = W.useState(
|
|
5281
5282
|
o ? t && ((_ = t[o]) == null ? void 0 : _.seo.description) : ""
|
|
5282
5283
|
), [x, k] = W.useState(
|
|
5283
5284
|
o ? t && ((D = t[o]) == null ? void 0 : D.visibility) : "public"
|
|
5284
5285
|
);
|
|
5285
5286
|
function P() {
|
|
5286
|
-
|
|
5287
|
+
d(""), b(""), w(""), k("public"), l(!1), s(null);
|
|
5287
5288
|
}
|
|
5288
5289
|
function A() {
|
|
5289
5290
|
P(), e(!1);
|
|
@@ -5341,7 +5342,7 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5341
5342
|
ge,
|
|
5342
5343
|
{
|
|
5343
5344
|
label: "Page Slug",
|
|
5344
|
-
onChange: (F) =>
|
|
5345
|
+
onChange: (F) => d(F),
|
|
5345
5346
|
value: f,
|
|
5346
5347
|
placeholder: "path-to-page",
|
|
5347
5348
|
disabled: !!(o && t && ((R = t[o]) != null && R.name) && Nt.includes(t[o].name)),
|
|
@@ -5360,17 +5361,17 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5360
5361
|
}
|
|
5361
5362
|
),
|
|
5362
5363
|
/* @__PURE__ */ i.jsx(
|
|
5363
|
-
|
|
5364
|
+
Aa,
|
|
5364
5365
|
{
|
|
5365
5366
|
label: "Description",
|
|
5366
|
-
onChange: (F) =>
|
|
5367
|
+
onChange: (F) => w(F),
|
|
5367
5368
|
value: C,
|
|
5368
5369
|
placeholder: "Contact us at any time of the day or night. You are always welcome",
|
|
5369
5370
|
maxLength: 150
|
|
5370
5371
|
}
|
|
5371
5372
|
),
|
|
5372
5373
|
/* @__PURE__ */ i.jsx(
|
|
5373
|
-
|
|
5374
|
+
Ba,
|
|
5374
5375
|
{
|
|
5375
5376
|
label: "Visibility",
|
|
5376
5377
|
defaultValue: x,
|
|
@@ -5417,25 +5418,25 @@ linear-gradient(to right, hsl(${a}, 100%, 100%), hsl(${a}, 100%, 50%))
|
|
|
5417
5418
|
]
|
|
5418
5419
|
}
|
|
5419
5420
|
);
|
|
5420
|
-
},
|
|
5421
|
-
layout:
|
|
5422
|
-
main:
|
|
5423
|
-
content:
|
|
5424
|
-
},
|
|
5425
|
-
const { isOpenModal: e, setIsOpenModal: t } = ie(), { openModal: n, setOpenModal: r } =
|
|
5421
|
+
}, Fu = "_layout_vvs1k_1", Mu = "_main_vvs1k_8", Ou = "_content_vvs1k_15", jn = {
|
|
5422
|
+
layout: Fu,
|
|
5423
|
+
main: Mu,
|
|
5424
|
+
content: Ou
|
|
5425
|
+
}, Uu = () => {
|
|
5426
|
+
const { isOpenModal: e, setIsOpenModal: t } = ie(), { openModal: n, setOpenModal: r } = Fa();
|
|
5426
5427
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
5427
5428
|
/* @__PURE__ */ i.jsxs("div", { className: jn.layout, children: [
|
|
5428
|
-
/* @__PURE__ */ i.jsx(
|
|
5429
|
+
/* @__PURE__ */ i.jsx(Nl, {}),
|
|
5429
5430
|
/* @__PURE__ */ i.jsxs("main", { className: jn.main, children: [
|
|
5430
|
-
/* @__PURE__ */ i.jsx(
|
|
5431
|
+
/* @__PURE__ */ i.jsx(Cl, {}),
|
|
5431
5432
|
/* @__PURE__ */ i.jsxs("div", { className: jn.content, children: [
|
|
5432
|
-
/* @__PURE__ */ i.jsx(
|
|
5433
|
-
/* @__PURE__ */ i.jsx(
|
|
5433
|
+
/* @__PURE__ */ i.jsx(xu, {}),
|
|
5434
|
+
/* @__PURE__ */ i.jsx(ws, {})
|
|
5434
5435
|
] })
|
|
5435
5436
|
] })
|
|
5436
5437
|
] }),
|
|
5437
|
-
e && /* @__PURE__ */ i.jsx(nr, { close: t, children: /* @__PURE__ */ i.jsx(
|
|
5438
|
-
n && /* @__PURE__ */ i.jsx(nr, { close: r, children: /* @__PURE__ */ i.jsx(
|
|
5438
|
+
e && /* @__PURE__ */ i.jsx(nr, { close: t, children: /* @__PURE__ */ i.jsx(Bu, {}) }),
|
|
5439
|
+
n && /* @__PURE__ */ i.jsx(nr, { close: r, children: /* @__PURE__ */ i.jsx(Ma, {}) })
|
|
5439
5440
|
] });
|
|
5440
5441
|
};
|
|
5441
5442
|
async function ht(e, t) {
|
|
@@ -5446,7 +5447,7 @@ async function ht(e, t) {
|
|
|
5446
5447
|
}
|
|
5447
5448
|
})).data;
|
|
5448
5449
|
}
|
|
5449
|
-
async function
|
|
5450
|
+
async function Hu() {
|
|
5450
5451
|
try {
|
|
5451
5452
|
const [e, t, n, r, a, l] = await Promise.allSettled([
|
|
5452
5453
|
ht("v1", "general"),
|
|
@@ -5468,17 +5469,17 @@ async function $u() {
|
|
|
5468
5469
|
throw console.error("Error fetching page data:", e), e;
|
|
5469
5470
|
}
|
|
5470
5471
|
}
|
|
5471
|
-
async function
|
|
5472
|
+
async function Iu() {
|
|
5472
5473
|
try {
|
|
5473
5474
|
const { data: e } = await Nn.get(
|
|
5474
|
-
`${
|
|
5475
|
+
`${Oa}?key=AIzaSyAEsTbjAPUz_TeuFCq4z4LPK9w_vst0Pfw`
|
|
5475
5476
|
);
|
|
5476
5477
|
return e.items;
|
|
5477
5478
|
} catch (e) {
|
|
5478
5479
|
throw console.error("Error fetching page data:", e), e;
|
|
5479
5480
|
}
|
|
5480
5481
|
}
|
|
5481
|
-
function
|
|
5482
|
+
function Ku() {
|
|
5482
5483
|
const {
|
|
5483
5484
|
editBlock: e,
|
|
5484
5485
|
currentBlock: t,
|
|
@@ -5490,18 +5491,18 @@ function Xu() {
|
|
|
5490
5491
|
} = ce.getState(), { currentPage: s, pages: c } = ie.getState(), { currentInstance: p, activeBlock: f } = Ne.getState();
|
|
5491
5492
|
if (!f && p && c) {
|
|
5492
5493
|
t === "header" && a(r), t === "footer" && o(l);
|
|
5493
|
-
const
|
|
5494
|
+
const d = {
|
|
5494
5495
|
blockSettings: {}
|
|
5495
5496
|
};
|
|
5496
5497
|
Object.keys(p.blockSettings).filter((m) => !["displayName", "isAddable"].includes(m)).map((m) => {
|
|
5497
|
-
|
|
5498
|
+
d.blockSettings[m] = p.blockSettings[m];
|
|
5498
5499
|
}), e(c[s].name, t, {
|
|
5499
5500
|
name: n[c[s].name][t].name,
|
|
5500
|
-
value:
|
|
5501
|
+
value: d
|
|
5501
5502
|
});
|
|
5502
5503
|
}
|
|
5503
5504
|
}
|
|
5504
|
-
async function
|
|
5505
|
+
async function $u() {
|
|
5505
5506
|
const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), n = `${Tr}/v2/builder/shops/${e}/drafts/${t}/pages`, r = localStorage.getItem("accessToken");
|
|
5506
5507
|
return (await Nn.get(n, {
|
|
5507
5508
|
headers: {
|
|
@@ -5509,8 +5510,8 @@ async function Vu() {
|
|
|
5509
5510
|
}
|
|
5510
5511
|
})).data;
|
|
5511
5512
|
}
|
|
5512
|
-
const
|
|
5513
|
-
const { blocks: t, settings: n, header: r, footer: a } = e, { setBlocks: l, setSourceBlocks: o } = Ne(), { fonts: s, setFonts: c } = Rr(), { setSettings: p } = et(), { setPageContext: f, setPages:
|
|
5513
|
+
const zu = (e) => {
|
|
5514
|
+
const { blocks: t, settings: n, header: r, footer: a } = e, { setBlocks: l, setSourceBlocks: o } = Ne(), { fonts: s, setFonts: c } = Rr(), { setSettings: p } = et(), { setPageContext: f, setPages: d, setCurrentPage: m } = ie(), { blocks: b, setHeader: C, setFooter: w, createPage: x } = ce();
|
|
5514
5515
|
function k(P) {
|
|
5515
5516
|
return P[0] === "/" ? P.slice(1) : P;
|
|
5516
5517
|
}
|
|
@@ -5518,9 +5519,9 @@ const Wu = (e) => {
|
|
|
5518
5519
|
const P = {};
|
|
5519
5520
|
Object.keys(t).map((E) => {
|
|
5520
5521
|
P[E] = t[E];
|
|
5521
|
-
}), o(P), l(P), C(r),
|
|
5522
|
+
}), o(P), l(P), C(r), w(a), p(n), (async () => {
|
|
5522
5523
|
if (s.length === 0) {
|
|
5523
|
-
const q = await
|
|
5524
|
+
const q = await Iu();
|
|
5524
5525
|
c([...q.map((g) => g.family)]);
|
|
5525
5526
|
}
|
|
5526
5527
|
let E = {
|
|
@@ -5531,12 +5532,12 @@ const Wu = (e) => {
|
|
|
5531
5532
|
faqs: null,
|
|
5532
5533
|
general: null
|
|
5533
5534
|
};
|
|
5534
|
-
const V = await
|
|
5535
|
+
const V = await Hu();
|
|
5535
5536
|
Object.keys(V).map((q) => {
|
|
5536
5537
|
const g = q;
|
|
5537
5538
|
E[g] = V[g].value.data;
|
|
5538
5539
|
}), f(E);
|
|
5539
|
-
const I = await
|
|
5540
|
+
const I = await $u();
|
|
5540
5541
|
if (I.data.length > 0) {
|
|
5541
5542
|
const q = {};
|
|
5542
5543
|
m(I.data[0].name), I.data.forEach((g) => {
|
|
@@ -5554,16 +5555,16 @@ const Wu = (e) => {
|
|
|
5554
5555
|
icon: "File",
|
|
5555
5556
|
name: _
|
|
5556
5557
|
};
|
|
5557
|
-
}),
|
|
5558
|
+
}), d(q);
|
|
5558
5559
|
}
|
|
5559
5560
|
})();
|
|
5560
|
-
}, []), /* @__PURE__ */ i.jsx(
|
|
5561
|
-
},
|
|
5561
|
+
}, []), /* @__PURE__ */ i.jsx(Uu, {});
|
|
5562
|
+
}, Vu = (e) => {
|
|
5562
5563
|
const { blocks: t, settings: n, header: r, footer: a } = e, [l, o] = W.useState(!0), s = qr();
|
|
5563
5564
|
return W.useEffect(() => {
|
|
5564
|
-
o(!0),
|
|
5565
|
+
o(!0), Fi() ? o(!1) : s("/");
|
|
5565
5566
|
}, []), /* @__PURE__ */ i.jsx(i.Fragment, { children: l ? /* @__PURE__ */ i.jsx(En, {}) : /* @__PURE__ */ i.jsx(
|
|
5566
|
-
|
|
5567
|
+
zu,
|
|
5567
5568
|
{
|
|
5568
5569
|
blocks: t,
|
|
5569
5570
|
settings: n,
|
|
@@ -5571,19 +5572,19 @@ const Wu = (e) => {
|
|
|
5571
5572
|
footer: a
|
|
5572
5573
|
}
|
|
5573
5574
|
) });
|
|
5574
|
-
},
|
|
5575
|
-
const { blocks: t, settings: n, header: r, footer: a } = e, [l, o] = W.useState(null), { setBlocks: s, setSourceBlocks: c } = Ne(), { setSettings: p } = et(), { setHeader: f, setFooter:
|
|
5575
|
+
}, Yu = (e) => {
|
|
5576
|
+
const { blocks: t, settings: n, header: r, footer: a } = e, [l, o] = W.useState(null), { setBlocks: s, setSourceBlocks: c } = Ne(), { setSettings: p } = et(), { setHeader: f, setFooter: d } = ce();
|
|
5576
5577
|
return W.useEffect(() => {
|
|
5577
5578
|
if (!l) {
|
|
5578
5579
|
const m = {};
|
|
5579
5580
|
Object.keys(t).map((C) => {
|
|
5580
5581
|
m[C] = t[C];
|
|
5581
|
-
}), c(m), s(m), f(r),
|
|
5582
|
-
const b =
|
|
5582
|
+
}), c(m), s(m), f(r), d(a), p(n);
|
|
5583
|
+
const b = hi([
|
|
5583
5584
|
{
|
|
5584
5585
|
path: "/admin/builder",
|
|
5585
5586
|
element: /* @__PURE__ */ i.jsx(
|
|
5586
|
-
|
|
5587
|
+
Vu,
|
|
5587
5588
|
{
|
|
5588
5589
|
blocks: t,
|
|
5589
5590
|
settings: n,
|
|
@@ -5592,14 +5593,14 @@ const Wu = (e) => {
|
|
|
5592
5593
|
}
|
|
5593
5594
|
)
|
|
5594
5595
|
},
|
|
5595
|
-
|
|
5596
|
+
...Hi()
|
|
5596
5597
|
]);
|
|
5597
5598
|
o(b);
|
|
5598
5599
|
}
|
|
5599
|
-
}, [l]), /* @__PURE__ */ i.jsx(i.Fragment, { children: l && /* @__PURE__ */ i.jsx(
|
|
5600
|
+
}, [l]), /* @__PURE__ */ i.jsx(i.Fragment, { children: l && /* @__PURE__ */ i.jsx(yi, { router: l }) });
|
|
5600
5601
|
};
|
|
5601
5602
|
export {
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5603
|
+
Yu as App,
|
|
5604
|
+
Ku as hotReload,
|
|
5605
|
+
qu as iconNames
|
|
5605
5606
|
};
|