@billgangcom/theme-lib 1.8.2 → 1.9.0

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.
@@ -1,7 +1,7 @@
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_gxd35_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_gxd35_1:disabled{opacity:.7;cursor:auto}._primary_gxd35_13{color:#fff;background-color:#ff3f19}._secondary_gxd35_18{color:#757575;background-color:#f8f8f8}._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}._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)}}._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_wxpoz_1{position:absolute;top:0;left:0;width:100%;padding:11px 22px;line-height:20px;border-bottom:var(--default-border);display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:50000}._left_wxpoz_16,._right_wxpoz_17{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_x8pw2_1{position:relative}._default_x8pw2_5{display:flex;align-items:center;gap:4px;padding:10px 12px;background-color:var(--background-color);border-radius:8px;cursor:pointer;position:relative}._text_x8pw2_16{padding-right:4px;color:var(--main-color);flex:1 1 auto}._modal_x8pw2_22{position:absolute;top:45px;width:320px;left:0;z-index:100;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:8px 12px;display:flex;flex-direction:column}._page_x8pw2_1{display:flex;align-items:center;gap:8px;padding:12px 8px;border-radius:8px;cursor:pointer}._hoverable_x8pw2_45{background-color:var(--background-color)}._separator_x8pw2_49{border-bottom:1px solid #f0f0f0}._button_x8pw2_53{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:start;gap:8px;padding:16px 8px 12px;transition:.2s}._button_x8pw2_53:hover{background-color:var(--background-color)}._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_jui5n_1{width:100%;background-color:var(--background-color);padding:16px 32px 0;position:relative;z-index:500}._main_jui5n_9{width:100%;display:flex;flex-direction:column;overflow-y:auto;height:100%;position:relative;z-index:1}._content_jui5n_19{background-color:#fff;border:var(--default-border);border-bottom:none;height:100%}._loading_jui5n_26{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._loader_jui5n_34{border:4px solid rgba(0,0,0,.1);border-left-color:#fff;border-radius:50%;width:40px;height:40px;animation:_spin_jui5n_1 1s linear infinite}@keyframes _spin_jui5n_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_92dk8_1{width:100%;height:100%}._block_92dk8_6{position:relative;cursor:pointer;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}._active_92dk8_13{border:2px solid #ff3f19}._name_92dk8_17{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_92dk8_31{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}._icon_92dk8_42{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_92dk8_53{font-weight:700;font-size:24px;line-height:32px}._text_92dk8_59{font-size:16px;line-height:24px;color:var(--accent-color)}._sections_92dk8_65{padding:0 20px;margin:20px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:24px}._section_92dk8_65{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_1r5sp_1{max-width:320px;width:100%;padding:16px;border-right:var(--default-border);height:100%;position:relative}._title_1r5sp_10{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;padding-bottom:8px}._active_1r5sp_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_1lk1m_1{display:flex;align-items:center;gap:8px;padding-bottom:8px}._render_1lk1m_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_1lk1m_23{animation:.2s _open_1lk1m_23 forwards}@keyframes _open_1lk1m_23{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_1lk1m_50{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_1lk1m_50{animation:.2s _close_1lk1m_50 forwards}._clicked_1lk1m_54{opacity:0}._title_1lk1m_58{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px}._button_1lk1m_65{align-self:center;flex:1}._loading_1lk1m_70{flex:1 1 auto}._settings_1lk1m_74{flex:1 1 auto;overflow-y:scroll;overflow-x:hidden}._buttons_1lk1m_80{justify-content:flex-end;display:flex;gap:10px}._deleteButton_1lk1m_86{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_1lk1m_86: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_kjedu_1{width:100%;height:100%;display:flex;position:relative}._main_kjedu_8{display:flex;flex-direction:column;width:100%;position:relative}._content_kjedu_15{position:relative;padding-top:64px;height:100%;display:flex}*{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}#root{height:100vh}body,html{background-color:#fff;font-family:Archivo,sans-serif;max-height:100vh;overflow:hidden}._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_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}._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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { j as e, I as _, k as De, c as C, l as Z, m as B, n as $, o as le, B as X, p as F, q as V, r as He, s as pe, t as K, w as Re, x as fe, y as Me, z as H, e as ke, D as qe, H as Ye, u as Qe, d as Ue, f as ce, g as Ge, a as I, b as ne, A as ge, S as we, P as Ce, E as Ee, F as Je, T as Xe, R as Ze, G as Ve, M as Ne, i as Ke, J as We } from "./index-BS_tTsUw.js";
3
- import x, { useMemo as Ie } from "react";
4
- const et = ["desktop", "tablet", "mobile"], tt = [
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_gxd35_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_gxd35_1:disabled{opacity:.7;cursor:auto}._primary_gxd35_13{color:#fff;background-color:#ff3f19}._secondary_gxd35_18{color:#757575;background-color:#f8f8f8}._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}._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)}}._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_wxpoz_1{position:absolute;top:0;left:0;width:100%;padding:11px 22px;line-height:20px;border-bottom:var(--default-border);display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:50000}._left_wxpoz_16,._right_wxpoz_17{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_x8pw2_1{position:relative}._default_x8pw2_5{display:flex;align-items:center;gap:4px;padding:10px 12px;background-color:var(--background-color);border-radius:8px;cursor:pointer;position:relative}._text_x8pw2_16{padding-right:4px;color:var(--main-color);flex:1 1 auto}._modal_x8pw2_22{position:absolute;top:45px;width:320px;left:0;z-index:100;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:8px 12px;display:flex;flex-direction:column}._page_x8pw2_1{display:flex;align-items:center;gap:8px;padding:12px 8px;border-radius:8px;cursor:pointer}._hoverable_x8pw2_45{background-color:var(--background-color)}._separator_x8pw2_49{border-bottom:1px solid #f0f0f0}._button_x8pw2_53{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:start;gap:8px;padding:16px 8px 12px;transition:.2s}._button_x8pw2_53:hover{background-color:var(--background-color)}._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_jui5n_1{width:100%;background-color:var(--background-color);padding:16px 32px 0;position:relative;z-index:500}._main_jui5n_9{width:100%;display:flex;flex-direction:column;overflow-y:auto;height:100%;position:relative;z-index:1}._content_jui5n_19{background-color:#fff;border:var(--default-border);border-bottom:none;height:100%}._loading_jui5n_26{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._loader_jui5n_34{border:4px solid rgba(0,0,0,.1);border-left-color:#fff;border-radius:50%;width:40px;height:40px;animation:_spin_jui5n_1 1s linear infinite}@keyframes _spin_jui5n_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_92dk8_1{width:100%;height:100%}._block_92dk8_6{position:relative;cursor:pointer;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}._active_92dk8_13{border:2px solid #ff3f19}._name_92dk8_17{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_92dk8_31{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}._icon_92dk8_42{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_92dk8_53{font-weight:700;font-size:24px;line-height:32px}._text_92dk8_59{font-size:16px;line-height:24px;color:var(--accent-color)}._sections_92dk8_65{padding:0 20px;margin:20px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:24px}._section_92dk8_65{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_1r5sp_1{max-width:320px;width:100%;padding:16px;border-right:var(--default-border);height:100%;position:relative}._title_1r5sp_10{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;padding-bottom:8px}._active_1r5sp_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_1lk1m_1{display:flex;align-items:center;gap:8px;padding-bottom:8px}._render_1lk1m_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_1lk1m_23{animation:.2s _open_1lk1m_23 forwards}@keyframes _open_1lk1m_23{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_1lk1m_50{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_1lk1m_50{animation:.2s _close_1lk1m_50 forwards}._clicked_1lk1m_54{opacity:0}._title_1lk1m_58{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px}._button_1lk1m_65{align-self:center;flex:1}._loading_1lk1m_70{flex:1 1 auto}._settings_1lk1m_74{flex:1 1 auto;overflow-y:scroll;overflow-x:hidden}._buttons_1lk1m_80{justify-content:flex-end;display:flex;gap:10px}._deleteButton_1lk1m_86{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_1lk1m_86: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_kjedu_1{width:100%;height:100%;display:flex;position:relative}._main_kjedu_8{display:flex;flex-direction:column;width:100%;position:relative}._content_kjedu_15{position:relative;padding-top:64px;height:100%;display:flex}*{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}#root{height:100vh}body,html{background-color:#fff;font-family:Archivo,sans-serif;max-height:100vh;overflow:hidden}._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}._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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { j as e, I as _, k as Re, c as C, l as Z, m as S, n as B, o as ie, B as X, p as T, q as V, r as qe, s as xe, t as K, w as Ye, x as je, y as Me, z as H, e as we, D as Ue, H as Qe, u as Ge, d as Je, f as le, g as Xe, a as F, b as oe, A as pe, S as Ce, P as Ne, E as Ee, F as Ze, T as Ve, R as Ke, G as We, M as ye, i as et, J as Fe } from "./index-nLNDQXYl.js";
3
+ import x, { useMemo as Te } from "react";
4
+ const tt = ["desktop", "tablet", "mobile"], st = [
5
5
  {
6
6
  icon: "paint",
7
7
  name: "Colors"
@@ -22,10 +22,10 @@ const et = ["desktop", "tablet", "mobile"], tt = [
22
22
  icon: "textbox",
23
23
  name: "Inputs"
24
24
  }
25
- ], st = "https://www.googleapis.com/webfonts/v1/webfonts", nt = "_buttons_1gn8m_1", ot = "_button_1gn8m_1", at = {
26
- buttons: nt,
27
- button: ot
28
- }, ct = () => /* @__PURE__ */ e.jsxs("div", { className: at.buttons, children: [
25
+ ], nt = "https://g-api.billgang.com", ot = "https://www.googleapis.com/webfonts/v1/webfonts", at = "_buttons_1gn8m_1", ct = "_button_1gn8m_1", lt = {
26
+ buttons: at,
27
+ button: ct
28
+ }, it = () => /* @__PURE__ */ e.jsxs("div", { className: lt.buttons, children: [
29
29
  /* @__PURE__ */ e.jsx(
30
30
  _,
31
31
  {
@@ -44,17 +44,17 @@ const et = ["desktop", "tablet", "mobile"], tt = [
44
44
  height: 20
45
45
  }
46
46
  )
47
- ] }), lt = "_devices_hxl12_1", it = "_device_hxl12_1", rt = "_active_hxl12_23", xe = {
48
- devices: lt,
49
- device: it,
50
- active: rt
51
- }, dt = () => {
52
- const { currentDevice: t, setCurrentDevice: n } = De();
53
- return /* @__PURE__ */ e.jsx("div", { className: xe.devices, children: et.map((s) => /* @__PURE__ */ e.jsx(
47
+ ] }), rt = "_devices_hxl12_1", dt = "_device_hxl12_1", ut = "_active_hxl12_23", ve = {
48
+ devices: rt,
49
+ device: dt,
50
+ active: ut
51
+ }, mt = () => {
52
+ const { currentDevice: t, setCurrentDevice: n } = Re();
53
+ return /* @__PURE__ */ e.jsx("div", { className: ve.devices, children: tt.map((s) => /* @__PURE__ */ e.jsx(
54
54
  "div",
55
55
  {
56
- className: C(xe.device, {
57
- [xe.active]: t === s
56
+ className: C(ve.device, {
57
+ [ve.active]: t === s
58
58
  }),
59
59
  onClick: () => n(s),
60
60
  children: /* @__PURE__ */ e.jsx(
@@ -69,20 +69,20 @@ const et = ["desktop", "tablet", "mobile"], tt = [
69
69
  },
70
70
  s
71
71
  )) });
72
- }, ut = "_header_wxpoz_1", mt = "_left_wxpoz_16", ht = "_right_wxpoz_17", de = {
73
- header: ut,
74
- left: mt,
75
- right: ht
76
- }, _t = "_preview_vijvm_2", gt = "_active_vijvm_22", je = {
77
- preview: _t,
78
- active: gt
79
- }, pt = () => {
72
+ }, ht = "_header_wxpoz_1", _t = "_left_wxpoz_16", gt = "_right_wxpoz_17", ue = {
73
+ header: ht,
74
+ left: _t,
75
+ right: gt
76
+ }, pt = "_preview_vijvm_2", xt = "_active_vijvm_22", be = {
77
+ preview: pt,
78
+ active: xt
79
+ }, jt = () => {
80
80
  const { onPreview: t, setOnPreview: n } = Z();
81
81
  return /* @__PURE__ */ e.jsxs(
82
82
  "div",
83
83
  {
84
- className: C(je.preview, {
85
- [je.active]: t
84
+ className: C(be.preview, {
85
+ [be.active]: t
86
86
  }),
87
87
  onClick: () => n(!t),
88
88
  children: [
@@ -94,16 +94,16 @@ const et = ["desktop", "tablet", "mobile"], tt = [
94
94
  height: 20
95
95
  }
96
96
  ),
97
- /* @__PURE__ */ e.jsx("span", { className: je.text, children: "Preview" })
97
+ /* @__PURE__ */ e.jsx("span", { className: be.text, children: "Preview" })
98
98
  ]
99
99
  }
100
100
  );
101
- }, xt = "_settings_q79q3_1", jt = {
102
- settings: xt
103
- }, vt = "_language_1mbvp_1", bt = "_text_1mbvp_11", $e = {
104
- language: vt,
105
- text: bt
106
- }, ft = () => /* @__PURE__ */ e.jsxs("div", { className: $e.language, children: [
101
+ }, vt = "_settings_q79q3_1", bt = {
102
+ settings: vt
103
+ }, ft = "_language_1mbvp_1", kt = "_text_1mbvp_11", $e = {
104
+ language: ft,
105
+ text: kt
106
+ }, wt = () => /* @__PURE__ */ e.jsxs("div", { className: $e.language, children: [
107
107
  /* @__PURE__ */ e.jsx(
108
108
  _,
109
109
  {
@@ -122,30 +122,30 @@ const et = ["desktop", "tablet", "mobile"], tt = [
122
122
  height: 20
123
123
  }
124
124
  )
125
- ] }), kt = "_pages_x8pw2_1", wt = "_text_x8pw2_16", Ct = "_modal_x8pw2_22", Nt = "_page_x8pw2_1", $t = "_hoverable_x8pw2_45", yt = "_separator_x8pw2_49", Bt = "_button_x8pw2_53", Y = {
126
- pages: kt,
125
+ ] }), Ct = "_pages_x8pw2_1", Nt = "_text_x8pw2_16", yt = "_modal_x8pw2_22", $t = "_page_x8pw2_1", Bt = "_hoverable_x8pw2_45", St = "_separator_x8pw2_49", At = "_button_x8pw2_53", Y = {
126
+ pages: Ct,
127
127
  default: "_default_x8pw2_5",
128
- text: wt,
129
- modal: Ct,
130
- page: Nt,
131
- hoverable: $t,
132
- separator: yt,
133
- button: Bt
134
- }, z = (t) => t ? t.replace(/_/g, " ").split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" and ") : "", St = () => {
128
+ text: Nt,
129
+ modal: yt,
130
+ page: $t,
131
+ hoverable: Bt,
132
+ separator: St,
133
+ button: At
134
+ }, z = (t) => t ? t.replace(/_/g, " ").split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" and ") : "", Pt = () => {
135
135
  const {
136
136
  currentPage: t,
137
137
  setCurrentPage: n,
138
138
  setIsOpenModal: s,
139
- pages: a,
139
+ pages: o,
140
140
  setIsEdit: l,
141
- setEditedPage: c,
142
- deletePage: o,
141
+ setEditedPage: a,
142
+ deletePage: c,
143
143
  isOpenSelectModal: i,
144
- setIsOpenSelectModal: d
145
- } = B(), { deletePage: w } = $(), [g, u] = x.useState("");
144
+ setIsOpenSelectModal: r
145
+ } = S(), { deletePage: f } = B(), [p, u] = x.useState("");
146
146
  return x.useEffect(() => {
147
147
  const m = () => {
148
- d(!1);
148
+ r(!1);
149
149
  };
150
150
  return document.body.addEventListener("click", m), () => {
151
151
  document.body.removeEventListener("click", m);
@@ -156,19 +156,19 @@ const et = ["desktop", "tablet", "mobile"], tt = [
156
156
  {
157
157
  className: Y.default,
158
158
  onClick: (m) => {
159
- m.stopPropagation(), d(!i);
159
+ m.stopPropagation(), r(!i);
160
160
  },
161
161
  children: [
162
162
  /* @__PURE__ */ e.jsx(
163
163
  _,
164
164
  {
165
- name: a[t].icon,
165
+ name: o[t].icon,
166
166
  fill: "#252525",
167
167
  width: 20,
168
168
  height: 20
169
169
  }
170
170
  ),
171
- /* @__PURE__ */ e.jsx("span", { className: Y.text, children: le.includes(a[t].name) ? `${z(a[t].name)} page` : a[t].name }),
171
+ /* @__PURE__ */ e.jsx("span", { className: Y.text, children: ie.includes(o[t].name) ? `${z(o[t].name)} page` : o[t].name }),
172
172
  /* @__PURE__ */ e.jsx(
173
173
  _,
174
174
  {
@@ -186,51 +186,51 @@ const et = ["desktop", "tablet", "mobile"], tt = [
186
186
  className: Y.modal,
187
187
  onClick: (m) => m.stopPropagation(),
188
188
  children: [
189
- Object.keys(a).map((m) => {
190
- const r = a[m];
189
+ Object.keys(o).map((m) => {
190
+ const d = o[m];
191
191
  return /* @__PURE__ */ e.jsxs(
192
192
  "div",
193
193
  {
194
194
  className: C(Y.page, {
195
- [Y.hoverable]: g === m
195
+ [Y.hoverable]: p === m
196
196
  }),
197
197
  onMouseEnter: () => u(m),
198
198
  onMouseLeave: () => u(""),
199
199
  onClick: () => {
200
- u(""), l(!1), n(m), d(!1);
200
+ u(""), l(!1), n(m), r(!1);
201
201
  },
202
202
  children: [
203
203
  /* @__PURE__ */ e.jsx(
204
204
  _,
205
205
  {
206
- name: r.icon,
206
+ name: d.icon,
207
207
  fill: "#252525"
208
208
  }
209
209
  ),
210
- /* @__PURE__ */ e.jsx("span", { className: Y.text, children: le.includes(r.name) ? `${z(r.name)} page` : r.name }),
211
- g === m && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
210
+ /* @__PURE__ */ e.jsx("span", { className: Y.text, children: ie.includes(d.name) ? `${z(d.name)} page` : d.name }),
211
+ p === m && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
212
212
  /* @__PURE__ */ e.jsx(
213
213
  _,
214
214
  {
215
215
  name: "settings",
216
216
  fill: "#757575",
217
217
  onClick: (j) => {
218
- j.stopPropagation(), l(!0), c(m), s(!0);
218
+ j.stopPropagation(), l(!0), a(m), s(!0);
219
219
  }
220
220
  }
221
221
  ),
222
- !le.includes(r.name) && /* @__PURE__ */ e.jsx(
222
+ !ie.includes(d.name) && /* @__PURE__ */ e.jsx(
223
223
  _,
224
224
  {
225
225
  name: "trash",
226
226
  fill: "#C12A2A",
227
227
  onClick: (j) => {
228
- a[t].name === r.name && n("home"), j.stopPropagation(), o(m), w(r.name);
228
+ o[t].name === d.name && n("home"), j.stopPropagation(), c(m), f(d.name);
229
229
  }
230
230
  }
231
231
  )
232
232
  ] }),
233
- a[t].name === r.name && /* @__PURE__ */ e.jsx(
233
+ o[t].name === d.name && /* @__PURE__ */ e.jsx(
234
234
  _,
235
235
  {
236
236
  name: "check",
@@ -267,15 +267,15 @@ const et = ["desktop", "tablet", "mobile"], tt = [
267
267
  }
268
268
  )
269
269
  ] });
270
- }, At = "_zoom_a77cn_1", Pt = {
271
- zoom: At
272
- }, Mt = () => {
270
+ }, It = "_zoom_a77cn_1", Mt = {
271
+ zoom: It
272
+ }, Et = () => {
273
273
  const [t, n] = x.useState(), s = () => {
274
274
  n(Number(Math.round(window.devicePixelRatio * 50).toFixed(0)));
275
275
  };
276
276
  return x.useEffect(() => (s(), window.addEventListener("resize", s), () => {
277
277
  window.removeEventListener("resize", s);
278
- }), []), /* @__PURE__ */ e.jsxs("div", { className: Pt.zoom, children: [
278
+ }), []), /* @__PURE__ */ e.jsxs("div", { className: Mt.zoom, children: [
279
279
  /* @__PURE__ */ e.jsx(
280
280
  _,
281
281
  {
@@ -289,13 +289,13 @@ const et = ["desktop", "tablet", "mobile"], tt = [
289
289
  " %"
290
290
  ] })
291
291
  ] });
292
- }, Et = () => /* @__PURE__ */ e.jsxs("div", { className: jt.settings, children: [
293
- /* @__PURE__ */ e.jsx(ft, {}),
294
- /* @__PURE__ */ e.jsx(St, {}),
295
- /* @__PURE__ */ e.jsx(Mt, {})
296
- ] }), It = "_theme_3wxbf_1", Ft = {
297
- theme: It
298
- }, Tt = () => /* @__PURE__ */ e.jsxs("div", { className: Ft.theme, children: [
292
+ }, Ft = () => /* @__PURE__ */ e.jsxs("div", { className: bt.settings, children: [
293
+ /* @__PURE__ */ e.jsx(wt, {}),
294
+ /* @__PURE__ */ e.jsx(Pt, {}),
295
+ /* @__PURE__ */ e.jsx(Et, {})
296
+ ] }), Tt = "_theme_3wxbf_1", Ot = {
297
+ theme: Tt
298
+ }, Lt = () => /* @__PURE__ */ e.jsxs("div", { className: Ot.theme, children: [
299
299
  /* @__PURE__ */ e.jsx(
300
300
  _,
301
301
  {
@@ -305,76 +305,77 @@ const et = ["desktop", "tablet", "mobile"], tt = [
305
305
  }
306
306
  ),
307
307
  /* @__PURE__ */ e.jsx("div", { children: "Current Theme" })
308
- ] }), Ot = () => {
309
- const { themeSettings: t } = F(), { settings: n } = V(), [s, a] = x.useState(null), [l, c] = x.useState(!1), { pages: o } = B(), { blocks: i } = $();
310
- function d(r, j) {
311
- return j.map(
312
- (v) => Object.values(v.value).filter((y) => y.type === r).map((y) => y.value).flat()
313
- ).flat();
308
+ ] }), zt = () => {
309
+ const { themeSettings: t } = T(), { settings: n } = V(), [s, o] = x.useState(null), [l, a] = x.useState(!1), { pages: c } = S(), { blocks: i } = B();
310
+ function r(d, j) {
311
+ const g = j.map(
312
+ (v) => Object.values(v.value.blockSettings).filter((N) => N.type === d).map((N) => N.value).flat()
313
+ ).flat().map((v) => v.listingId);
314
+ return console.log(g), g;
314
315
  }
315
- function w(r, j) {
316
- return d(r, j).some((v) => v);
316
+ function f(d, j) {
317
+ return r(d, j).some((v) => v);
317
318
  }
318
- function g(r, j) {
319
- const p = d(r, j);
320
- return Array.isArray(p) && p.length > 0 ? Math.max(...p) : 0;
319
+ function p(d, j) {
320
+ const g = r(d, j);
321
+ return Array.isArray(g) && g.length > 0 ? Math.max(...g) : 0;
321
322
  }
322
- function u(r) {
323
- const j = Object.keys(o).find((p) => o[p].name === r);
324
- return j ? o[j] : null;
323
+ function u(d) {
324
+ const j = Object.keys(c).find((g) => c[g].name === d);
325
+ return j ? c[j] : null;
325
326
  }
326
327
  const m = () => {
327
328
  if (l)
328
329
  s && clearTimeout(s);
329
330
  else {
330
- const j = Object.keys(i).map((p) => {
331
- const v = u(p);
331
+ const j = Object.keys(i).map((g) => {
332
+ const v = u(g);
332
333
  return {
333
- name: v ? v.name : p,
334
- path: p === "home" ? "/" : (v == null ? void 0 : v.path) || p,
334
+ name: v ? v.name : g,
335
+ path: g === "home" ? "/" : (v == null ? void 0 : v.path) || g,
335
336
  layout: {
336
- ...i[p]
337
+ ...i[g]
337
338
  },
338
- neededProductIds: [...d("ProductId", Object.values(i[p]))],
339
- neededCategoryIds: [...d("CategoryId", Object.values(i[p]))],
340
- neededAnnouncementIds: [...d("AnnouncementId", Object.values(i[p]))],
341
- neededListingIds: [...d("ListingId", Object.values(i[p]))],
342
- neededFaqs: w("Faqs", Object.values(i[p])),
343
- neededReviewCount: g("ReviewCount", Object.values(i[p])),
339
+ neededProductIds: [...r("ProductId", Object.values(i[g]))],
340
+ neededCategoryIds: [...r("CategoryId", Object.values(i[g]))],
341
+ neededAnnouncementIds: [...r("AnnouncementId", Object.values(i[g]))],
342
+ neededListingIds: [...r("listings", Object.values(i[g]))],
343
+ neededFaqs: f("Faqs", Object.values(i[g])),
344
+ neededReviewCount: p("ReviewCount", Object.values(i[g])),
344
345
  seo: {
345
346
  pageTitle: v ? v.seo.title : "",
346
347
  pageDescription: v ? v.seo.description : ""
347
348
  }
348
349
  };
349
350
  });
350
- He("POST", "save", {
351
+ qe("POST", "save", {
351
352
  themeSettings: t,
352
353
  settings: n,
353
354
  updatedPages: j
354
355
  });
355
356
  }
356
- c(!0);
357
- const r = setTimeout(() => {
358
- c(!1);
357
+ a(!0);
358
+ const d = setTimeout(() => {
359
+ a(!1);
359
360
  }, 2e3);
360
- a(r);
361
+ o(d);
361
362
  };
362
- return /* @__PURE__ */ e.jsxs("div", { className: de.header, children: [
363
- /* @__PURE__ */ e.jsxs("div", { className: de.left, children: [
364
- /* @__PURE__ */ e.jsx(dt, {}),
365
- /* @__PURE__ */ e.jsx(pt, {})
363
+ return /* @__PURE__ */ e.jsxs("div", { className: ue.header, children: [
364
+ /* @__PURE__ */ e.jsxs("div", { className: ue.left, children: [
365
+ /* @__PURE__ */ e.jsx(mt, {}),
366
+ /* @__PURE__ */ e.jsx(jt, {})
366
367
  ] }),
367
- /* @__PURE__ */ e.jsx("div", { className: de.center, children: /* @__PURE__ */ e.jsx(Et, {}) }),
368
- /* @__PURE__ */ e.jsxs("div", { className: de.right, children: [
369
- /* @__PURE__ */ e.jsx(Tt, {}),
370
- /* @__PURE__ */ e.jsx(ct, {}),
368
+ /* @__PURE__ */ e.jsx("div", { className: ue.center, children: /* @__PURE__ */ e.jsx(Ft, {}) }),
369
+ /* @__PURE__ */ e.jsxs("div", { className: ue.right, children: [
370
+ /* @__PURE__ */ e.jsx(Lt, {}),
371
+ /* @__PURE__ */ e.jsx(it, {}),
371
372
  /* @__PURE__ */ e.jsx(X, { onClick: m, children: "Save" })
372
373
  ] })
373
374
  ] });
374
- }, Lt = "_exit_2ce42_1", zt = "_text_2ce42_10", ye = {
375
- exit: Lt,
376
- text: zt
377
- }, Dt = () => /* @__PURE__ */ e.jsxs("div", { className: ye.exit, children: [
375
+ }, Dt = "_exit_2ce42_1", Ht = "_text_2ce42_10", Be = {
376
+ exit: Dt,
377
+ text: Ht
378
+ }, Rt = () => /* @__PURE__ */ e.jsxs("div", { className: Be.exit, children: [
378
379
  /* @__PURE__ */ e.jsx(
379
380
  _,
380
381
  {
@@ -383,79 +384,79 @@ const et = ["desktop", "tablet", "mobile"], tt = [
383
384
  height: 20
384
385
  }
385
386
  ),
386
- /* @__PURE__ */ e.jsx("span", { className: ye.text, children: "Exit" })
387
- ] }), Ht = "_navbar_2ac63_1", Rt = "_main_2ac63_6", qt = "_block_2ac63_13", Yt = "_active_2ac63_30", ue = {
388
- navbar: Ht,
389
- main: Rt,
390
- block: qt,
391
- active: Yt
392
- }, Qt = () => {
393
- const { activeBlock: t, setActiveBlock: n } = pe(), { setActiveBlock: s } = K(), { setCurrentBlock: a } = $(), { setActiveBlock: l } = F();
394
- function c(o) {
395
- s(null), n(o), a(null), l(null);
387
+ /* @__PURE__ */ e.jsx("span", { className: Be.text, children: "Exit" })
388
+ ] }), qt = "_navbar_2ac63_1", Yt = "_main_2ac63_6", Ut = "_block_2ac63_13", Qt = "_active_2ac63_30", me = {
389
+ navbar: qt,
390
+ main: Yt,
391
+ block: Ut,
392
+ active: Qt
393
+ }, Gt = () => {
394
+ const { activeBlock: t, setActiveBlock: n } = xe(), { setActiveBlock: s } = K(), { setCurrentBlock: o } = B(), { setActiveBlock: l } = T();
395
+ function a(c) {
396
+ s(null), n(c), o(null), l(null);
396
397
  }
397
- return /* @__PURE__ */ e.jsxs("div", { className: ue.navbar, children: [
398
- /* @__PURE__ */ e.jsx(Dt, {}),
399
- /* @__PURE__ */ e.jsx("div", { className: ue.main, children: Re.map((o) => /* @__PURE__ */ e.jsxs(
398
+ return /* @__PURE__ */ e.jsxs("div", { className: me.navbar, children: [
399
+ /* @__PURE__ */ e.jsx(Rt, {}),
400
+ /* @__PURE__ */ e.jsx("div", { className: me.main, children: Ye.map((c) => /* @__PURE__ */ e.jsxs(
400
401
  "div",
401
402
  {
402
- className: C(ue.block, {
403
- [ue.active]: t.icon === o.icon
403
+ className: C(me.block, {
404
+ [me.active]: t.icon === c.icon
404
405
  }),
405
- onClick: () => c(o),
406
+ onClick: () => a(c),
406
407
  children: [
407
408
  /* @__PURE__ */ e.jsx(
408
409
  _,
409
410
  {
410
- name: o.icon,
411
- fill: t.icon === o.icon ? "#252525" : "#757575"
411
+ name: c.icon,
412
+ fill: t.icon === c.icon ? "#252525" : "#757575"
412
413
  }
413
414
  ),
414
- /* @__PURE__ */ e.jsx("span", { children: o.name })
415
+ /* @__PURE__ */ e.jsx("span", { children: c.name })
415
416
  ]
416
417
  },
417
- o.icon
418
+ c.icon
418
419
  )) })
419
420
  ] });
420
- }, Ut = "_preview_jui5n_1", Gt = "_main_jui5n_9", Jt = "_content_jui5n_19", Xt = "_loading_jui5n_26", Zt = "_loader_jui5n_34", Vt = "_spin_jui5n_1", oe = {
421
- preview: Ut,
422
- main: Gt,
423
- content: Jt,
424
- loading: Xt,
425
- loader: Zt,
426
- spin: Vt
427
- }, Kt = "_header_1t64j_1", Wt = "_circles_1t64j_14", es = "_circle_1t64j_14", ts = "_red_1t64j_30", ss = "_green_1t64j_34", ns = "_yellow_1t64j_38", os = "_input_1t64j_42", as = "_main_1t64j_51", cs = "_text_1t64j_59", Q = {
428
- header: Kt,
429
- circles: Wt,
430
- circle: es,
431
- red: ts,
432
- green: ss,
433
- yellow: ns,
434
- input: os,
435
- main: as,
436
- text: cs
437
- }, ls = "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", is = ["red", "yellow", "green"], rs = () => /* @__PURE__ */ e.jsxs("div", { className: Q.header, children: [
438
- /* @__PURE__ */ e.jsx("div", { className: Q.circles, children: is.map((t) => /* @__PURE__ */ e.jsx(
421
+ }, Jt = "_preview_jui5n_1", Xt = "_main_jui5n_9", Zt = "_content_jui5n_19", Vt = "_loading_jui5n_26", Kt = "_loader_jui5n_34", Wt = "_spin_jui5n_1", ae = {
422
+ preview: Jt,
423
+ main: Xt,
424
+ content: Zt,
425
+ loading: Vt,
426
+ loader: Kt,
427
+ spin: Wt
428
+ }, es = "_header_1t64j_1", ts = "_circles_1t64j_14", ss = "_circle_1t64j_14", ns = "_red_1t64j_30", os = "_green_1t64j_34", as = "_yellow_1t64j_38", cs = "_input_1t64j_42", ls = "_main_1t64j_51", is = "_text_1t64j_59", U = {
429
+ header: es,
430
+ circles: ts,
431
+ circle: ss,
432
+ red: ns,
433
+ green: os,
434
+ yellow: as,
435
+ input: cs,
436
+ main: ls,
437
+ text: is
438
+ }, rs = "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", ds = ["red", "yellow", "green"], us = () => /* @__PURE__ */ e.jsxs("div", { className: U.header, children: [
439
+ /* @__PURE__ */ e.jsx("div", { className: U.circles, children: ds.map((t) => /* @__PURE__ */ e.jsx(
439
440
  "div",
440
441
  {
441
- className: C(Q.circle, {
442
- [Q.red]: t === "red",
443
- [Q.yellow]: t === "yellow",
444
- [Q.green]: t === "green"
442
+ className: C(U.circle, {
443
+ [U.red]: t === "red",
444
+ [U.yellow]: t === "yellow",
445
+ [U.green]: t === "green"
445
446
  })
446
447
  },
447
448
  t
448
449
  )) }),
449
- /* @__PURE__ */ e.jsxs("div", { className: Q.input, children: [
450
- /* @__PURE__ */ e.jsxs("div", { className: Q.main, children: [
450
+ /* @__PURE__ */ e.jsxs("div", { className: U.input, children: [
451
+ /* @__PURE__ */ e.jsxs("div", { className: U.main, children: [
451
452
  /* @__PURE__ */ e.jsx(
452
453
  "img",
453
454
  {
454
- src: ls,
455
+ src: rs,
455
456
  alt: ""
456
457
  }
457
458
  ),
458
- /* @__PURE__ */ e.jsx("span", { className: Q.text, children: "lorem.ipsum" }),
459
+ /* @__PURE__ */ e.jsx("span", { className: U.text, children: "lorem.ipsum" }),
459
460
  /* @__PURE__ */ e.jsx(
460
461
  _,
461
462
  {
@@ -475,48 +476,48 @@ const et = ["desktop", "tablet", "mobile"], tt = [
475
476
  }
476
477
  )
477
478
  ] })
478
- ] }), ds = "_content_92dk8_1", us = "_block_92dk8_6", ms = "_active_92dk8_13", hs = "_name_92dk8_17", _s = "_empty_92dk8_31", gs = "_icon_92dk8_42", ps = "_title_92dk8_53", xs = "_text_92dk8_59", js = "_sections_92dk8_65", vs = "_section_92dk8_65", me = {
479
- content: ds,
480
- block: us,
481
- active: ms,
482
- name: hs,
483
- empty: _s,
484
- icon: gs,
485
- title: ps,
486
- text: xs,
487
- sections: js,
488
- section: vs
489
- }, bs = "_sidebar_1f3hk_1", fs = "_content_1f3hk_12", ks = "_button_1f3hk_22", ws = "_moveButton_1f3hk_30", Cs = "_border_1f3hk_34", Ns = "_deleteButton_1f3hk_38", E = {
490
- sidebar: bs,
491
- content: fs,
492
- button: ks,
493
- moveButton: ws,
494
- border: Cs,
495
- deleteButton: Ns
496
- }, $s = () => {
497
- const { activeBlock: t } = Z(), { blocks: n, removeBlock: s, moveBlock: a, duplicateBlock: l } = $(), { currentPage: c, pages: o } = B(), i = Object.keys(n[o[c].name]), d = i.indexOf(t), w = () => {
498
- d > 0 && a(o[c].name, d, d - 1);
499
- }, g = () => {
500
- d < i.length - 1 && a(o[c].name, d, d + 1);
479
+ ] }), ms = "_content_92dk8_1", hs = "_block_92dk8_6", _s = "_active_92dk8_13", gs = "_name_92dk8_17", ps = "_empty_92dk8_31", xs = "_icon_92dk8_42", js = "_title_92dk8_53", vs = "_text_92dk8_59", bs = "_sections_92dk8_65", fs = "_section_92dk8_65", he = {
480
+ content: ms,
481
+ block: hs,
482
+ active: _s,
483
+ name: gs,
484
+ empty: ps,
485
+ icon: xs,
486
+ title: js,
487
+ text: vs,
488
+ sections: bs,
489
+ section: fs
490
+ }, ks = "_sidebar_1f3hk_1", ws = "_content_1f3hk_12", Cs = "_button_1f3hk_22", Ns = "_moveButton_1f3hk_30", ys = "_border_1f3hk_34", $s = "_deleteButton_1f3hk_38", E = {
491
+ sidebar: ks,
492
+ content: ws,
493
+ button: Cs,
494
+ moveButton: Ns,
495
+ border: ys,
496
+ deleteButton: $s
497
+ }, Bs = () => {
498
+ const { activeBlock: t } = Z(), { blocks: n, removeBlock: s, moveBlock: o, duplicateBlock: l } = B(), { currentPage: a, pages: c } = S(), i = Object.keys(n[c[a].name]), r = i.indexOf(t), f = () => {
499
+ r > 0 && o(c[a].name, r, r - 1);
500
+ }, p = () => {
501
+ r < i.length - 1 && o(c[a].name, r, r + 1);
501
502
  }, u = () => {
502
- l(o[c].name, t);
503
+ l(c[a].name, t);
503
504
  };
504
505
  return /* @__PURE__ */ e.jsx("div", { className: E.sidebar, children: /* @__PURE__ */ e.jsxs("div", { className: E.content, children: [
505
506
  /* @__PURE__ */ e.jsx(
506
507
  "button",
507
508
  {
508
- onClick: w,
509
+ onClick: f,
509
510
  className: C(E.button, E.moveButton),
510
- disabled: d === 0,
511
+ disabled: r === 0,
511
512
  children: /* @__PURE__ */ e.jsx(_, { name: "arrow-preview-up" })
512
513
  }
513
514
  ),
514
515
  /* @__PURE__ */ e.jsx(
515
516
  "button",
516
517
  {
517
- onClick: g,
518
+ onClick: p,
518
519
  className: C(E.button, E.moveButton),
519
- disabled: d === i.length - 1,
520
+ disabled: r === i.length - 1,
520
521
  children: /* @__PURE__ */ e.jsx(_, { name: "arrow-preview-down" })
521
522
  }
522
523
  ),
@@ -533,7 +534,7 @@ const et = ["desktop", "tablet", "mobile"], tt = [
533
534
  /* @__PURE__ */ e.jsx(
534
535
  "button",
535
536
  {
536
- onClick: () => s(o[c].name, t),
537
+ onClick: () => s(c[a].name, t),
537
538
  className: C(E.button, E.deleteButton),
538
539
  children: /* @__PURE__ */ e.jsx(
539
540
  _,
@@ -545,30 +546,30 @@ const et = ["desktop", "tablet", "mobile"], tt = [
545
546
  }
546
547
  )
547
548
  ] }) });
548
- }, Fe = ({ render: t, block: n }) => t(n), ys = () => {
549
- const { footer: t } = $(), { settings: n } = V(), { pageContext: s } = B();
549
+ }, Oe = ({ render: t, block: n }) => t(n), Ss = () => {
550
+ const { footer: t } = B(), { settings: n } = V(), { pageContext: s } = S();
550
551
  return t == null ? void 0 : t.renderBlock(n, s);
551
- }, Bs = () => {
552
- const { header: t } = $(), { settings: n } = V(), { pageContext: s } = B();
552
+ }, As = () => {
553
+ const { header: t } = B(), { settings: n } = V(), { pageContext: s } = S();
553
554
  return t == null ? void 0 : t.renderBlock(n, s);
554
- }, Ss = x.memo(() => {
555
- const { setActiveBlock: t, activeBlock: n } = Z(), { blocks: s } = K(), { blocks: a } = $(), { settings: l } = V(), { currentPage: c, pages: o, setIsOpenSelectModal: i } = B(), d = x.useRef(n);
555
+ }, Ps = x.memo(() => {
556
+ const { setActiveBlock: t, activeBlock: n } = Z(), { blocks: s } = K(), { blocks: o } = B(), { settings: l } = V(), { currentPage: a, pages: c, setIsOpenSelectModal: i } = S(), r = x.useRef(n);
556
557
  x.useEffect(() => {
557
- d.current = n;
558
+ r.current = n;
558
559
  }, [n]), x.useEffect(() => {
559
560
  const u = () => {
560
- d.current && t(null);
561
+ r.current && t(null);
561
562
  };
562
563
  return document.body.addEventListener("click", u), () => {
563
564
  document.body.removeEventListener("click", u);
564
565
  };
565
566
  }, []);
566
- const w = (u) => {
567
+ const f = (u) => {
567
568
  const m = new s[u.name]();
568
569
  return Object.assign(m, u.value), m.renderBlock(l);
569
- }, g = x.useCallback(
570
- (u) => w(u),
571
- [a, l]
570
+ }, p = x.useCallback(
571
+ (u) => f(u),
572
+ [o, l]
572
573
  );
573
574
  return /* @__PURE__ */ e.jsxs(
574
575
  "div",
@@ -576,47 +577,47 @@ const et = ["desktop", "tablet", "mobile"], tt = [
576
577
  onClick: (u) => {
577
578
  u.stopPropagation(), i(!1);
578
579
  },
579
- className: me.content,
580
+ className: he.content,
580
581
  children: [
581
- /* @__PURE__ */ e.jsx(Bs, {}),
582
- a[o[c].name] && Object.keys(a[o[c].name]).map((u) => /* @__PURE__ */ e.jsxs(
582
+ /* @__PURE__ */ e.jsx(As, {}),
583
+ o[c[a].name] && Object.keys(o[c[a].name]).map((u) => /* @__PURE__ */ e.jsxs(
583
584
  "div",
584
585
  {
585
586
  onClick: () => t(u),
586
- className: C(me.block, {
587
- [me.active]: n === u
587
+ className: C(he.block, {
588
+ [he.active]: n === u
588
589
  }),
589
590
  children: [
590
- n === u && /* @__PURE__ */ e.jsx("div", { className: me.name, children: a[o[c].name][u].name }),
591
- n === u && /* @__PURE__ */ e.jsx($s, {}),
591
+ n === u && /* @__PURE__ */ e.jsx("div", { className: he.name, children: o[c[a].name][u].name }),
592
+ n === u && /* @__PURE__ */ e.jsx(Bs, {}),
592
593
  /* @__PURE__ */ e.jsx(
593
- Fe,
594
+ Oe,
594
595
  {
595
- render: g,
596
- block: a[o[c].name][u]
596
+ render: p,
597
+ block: o[c[a].name][u]
597
598
  }
598
599
  )
599
600
  ]
600
601
  }
601
602
  )),
602
- /* @__PURE__ */ e.jsx(ys, {})
603
+ /* @__PURE__ */ e.jsx(Ss, {})
603
604
  ]
604
605
  }
605
606
  );
606
- }), As = "_results_f488n_1", Ps = "_name_f488n_8", Ms = "_product_f488n_15", he = {
607
- results: As,
608
- name: Ps,
609
- product: Ms
610
- }, Es = "_search_1s0qp_1", Is = "_input_1s0qp_12", Be = {
611
- search: Es,
612
- input: Is
613
- }, Fs = () => /* @__PURE__ */ e.jsxs("label", { className: Be.search, children: [
607
+ }), Is = "_results_f488n_1", Ms = "_name_f488n_8", Es = "_product_f488n_15", _e = {
608
+ results: Is,
609
+ name: Ms,
610
+ product: Es
611
+ }, Fs = "_search_1s0qp_1", Ts = "_input_1s0qp_12", Se = {
612
+ search: Fs,
613
+ input: Ts
614
+ }, Os = () => /* @__PURE__ */ e.jsxs("label", { className: Se.search, children: [
614
615
  /* @__PURE__ */ e.jsx(
615
616
  "input",
616
617
  {
617
618
  type: "text",
618
619
  placeholder: "Search for sections",
619
- className: Be.input
620
+ className: Se.input
620
621
  }
621
622
  ),
622
623
  /* @__PURE__ */ e.jsx(
@@ -626,81 +627,81 @@ const et = ["desktop", "tablet", "mobile"], tt = [
626
627
  fill: "#757575"
627
628
  }
628
629
  )
629
- ] }), Te = () => {
630
- const { blocks: t, setActiveBlock: n } = K(), { hideModal: s } = fe();
631
- function a(l) {
630
+ ] }), Le = () => {
631
+ const { blocks: t, setActiveBlock: n } = K(), { hideModal: s } = je();
632
+ function o(l) {
632
633
  n(l), s();
633
634
  }
634
- return /* @__PURE__ */ e.jsxs("div", { className: he.add, children: [
635
- /* @__PURE__ */ e.jsx(Fs, {}),
636
- /* @__PURE__ */ e.jsx("div", { className: he.results, children: Object.keys(t).map((l) => /* @__PURE__ */ e.jsxs(
635
+ return /* @__PURE__ */ e.jsxs("div", { className: _e.add, children: [
636
+ /* @__PURE__ */ e.jsx(Os, {}),
637
+ /* @__PURE__ */ e.jsx("div", { className: _e.results, children: Object.keys(t).map((l) => /* @__PURE__ */ e.jsxs(
637
638
  "div",
638
639
  {
639
- className: he.product,
640
- onClick: () => a(l),
640
+ className: _e.product,
641
+ onClick: () => o(l),
641
642
  children: [
642
- /* @__PURE__ */ e.jsx("span", { className: he.name, children: l }),
643
+ /* @__PURE__ */ e.jsx("span", { className: _e.name, children: l }),
643
644
  /* @__PURE__ */ e.jsx(_, { name: "arrow-right" })
644
645
  ]
645
646
  },
646
647
  l
647
648
  )) })
648
649
  ] });
649
- }, Ts = () => {
650
+ }, Ls = () => {
650
651
  const {
651
652
  modalPosition: t,
652
653
  color: n,
653
654
  initialColor: s,
654
- setShowModal: a,
655
+ setShowModal: o,
655
656
  hue: l,
656
- saturation: c,
657
- brightness: o,
657
+ saturation: a,
658
+ brightness: c,
658
659
  dragging: i,
659
- setDragging: d,
660
- setHue: w,
661
- setSaturation: g,
660
+ setDragging: r,
661
+ setHue: f,
662
+ setSaturation: p,
662
663
  setBrightness: u,
663
664
  colorChange: m,
664
- setColor: r,
665
+ setColor: d,
665
666
  update: j
666
- } = Me(), p = (h) => {
667
- const { offsetX: b, offsetY: f } = h.nativeEvent;
668
- d(!0), T(b, f, h.currentTarget);
667
+ } = Me(), g = (h) => {
668
+ const { offsetX: k, offsetY: b } = h.nativeEvent;
669
+ r(!0), y(k, b, h.currentTarget);
669
670
  }, v = (h) => {
670
671
  if (i) {
671
- const b = document.querySelector(`.${H.colorMap}`), { left: f, top: N } = b.getBoundingClientRect(), k = h.clientX - f, J = h.clientY - N;
672
- T(k, J, b);
672
+ const k = document.querySelector(`.${H.colorMap}`), { left: b, top: $ } = k.getBoundingClientRect(), w = h.clientX - b, J = h.clientY - $;
673
+ y(w, J, k);
673
674
  }
674
- }, y = () => {
675
- d(!1);
676
- }, T = (h, b, f) => {
677
- const { width: N, height: k } = f.getBoundingClientRect(), J = Math.max(0, Math.min(h / N * 100, 100)), ie = Math.max(0, Math.min(100 - b / k * 100, 100));
678
- g(J), u(ie), S(J, ie);
679
- }, S = (h, b) => {
680
- const f = P(l, h, b);
681
- m(f), r(f);
682
- }, D = (h, b, f) => {
683
- b /= 100, f /= 100;
684
- const N = (re) => (re + h / 60) % 6, k = (re) => f * (1 - b * Math.max(0, Math.min(N(re), 4 - N(re), 1))), J = Math.round(255 * k(5)), ie = Math.round(255 * k(3)), ze = Math.round(255 * k(1));
685
- return { r: J, g: ie, b: ze };
686
- }, A = (h, b, f) => {
687
- const N = (k) => k.toString(16).padStart(2, "0");
688
- return `#${N(h)}${N(b)}${N(f)}`;
689
- }, P = (h, b, f) => {
690
- const { r: N, g: k, b: J } = D(h, b, f);
691
- return A(N, k, J);
675
+ }, N = () => {
676
+ r(!1);
677
+ }, y = (h, k, b) => {
678
+ const { width: $, height: w } = b.getBoundingClientRect(), J = Math.max(0, Math.min(h / $ * 100, 100)), re = Math.max(0, Math.min(100 - k / w * 100, 100));
679
+ p(J), u(re), A(J, re);
680
+ }, A = (h, k) => {
681
+ const b = I(l, h, k);
682
+ m(b), d(b);
683
+ }, D = (h, k, b) => {
684
+ k /= 100, b /= 100;
685
+ const $ = (de) => (de + h / 60) % 6, w = (de) => b * (1 - k * Math.max(0, Math.min($(de), 4 - $(de), 1))), J = Math.round(255 * w(5)), re = Math.round(255 * w(3)), He = Math.round(255 * w(1));
686
+ return { r: J, g: re, b: He };
687
+ }, P = (h, k, b) => {
688
+ const $ = (w) => w.toString(16).padStart(2, "0");
689
+ return `#${$(h)}${$(k)}${$(b)}`;
690
+ }, I = (h, k, b) => {
691
+ const { r: $, g: w, b: J } = D(h, k, b);
692
+ return P($, w, J);
692
693
  };
693
694
  x.useEffect(() => {
694
- const h = (f) => v(f), b = () => y();
695
- return i ? (document.addEventListener("mousemove", h), document.addEventListener("mouseup", b)) : (document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", b)), () => {
696
- document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", b);
695
+ const h = (b) => v(b), k = () => N();
696
+ return i ? (document.addEventListener("mousemove", h), document.addEventListener("mouseup", k)) : (document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", k)), () => {
697
+ document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", k);
697
698
  };
698
699
  }, [i]);
699
700
  function M() {
700
- j(n), a(!1);
701
+ j(n), o(!1);
701
702
  }
702
703
  function G() {
703
- a(!1), m(s);
704
+ o(!1), m(s);
704
705
  }
705
706
  return /* @__PURE__ */ e.jsxs(
706
707
  "div",
@@ -717,7 +718,7 @@ const et = ["desktop", "tablet", "mobile"], tt = [
717
718
  "div",
718
719
  {
719
720
  className: H.colorMap,
720
- onMouseDown: p,
721
+ onMouseDown: g,
721
722
  style: {
722
723
  background: `
723
724
  linear-gradient(to top, black, transparent),
@@ -730,8 +731,8 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
730
731
  className: H.indicator,
731
732
  style: {
732
733
  position: "absolute",
733
- left: `${c}%`,
734
- top: `${100 - o}%`,
734
+ left: `${a}%`,
735
+ top: `${100 - c}%`,
735
736
  transform: "translate(-50%, -50%)"
736
737
  }
737
738
  }
@@ -746,7 +747,7 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
746
747
  max: "360",
747
748
  value: l,
748
749
  onChange: (h) => {
749
- w(Number(h.target.value)), S(c, o);
750
+ f(Number(h.target.value)), A(a, c);
750
751
  },
751
752
  className: H.slider
752
753
  }
@@ -772,60 +773,60 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
772
773
  ]
773
774
  }
774
775
  );
775
- }, Os = () => {
776
- const { onPreview: t } = Z(), { hoverBlockId: n, isModalVisible: s, isPreviewVisible: a } = fe(), { settings: l } = V(), { blocks: c } = K(), { blocks: o } = $(), { currentPage: i, pages: d } = B(), { showModal: w } = Me(), [g, u] = x.useState(!0);
776
+ }, zs = () => {
777
+ const { onPreview: t } = Z(), { hoverBlockId: n, isModalVisible: s, isPreviewVisible: o } = je(), { settings: l } = V(), { blocks: a } = K(), { blocks: c } = B(), { currentPage: i, pages: r } = S(), { showModal: f } = Me(), [p, u] = x.useState(!0);
777
778
  x.useEffect(() => {
778
779
  t && setTimeout(() => {
779
780
  u(!1);
780
781
  }, 100);
781
782
  }, [t]);
782
- const m = (r) => {
783
- const j = new c[r.name]();
784
- return Object.assign(j, r.value), j.renderBlock(l);
783
+ const m = (d) => {
784
+ const j = new a[d.name]();
785
+ return Object.assign(j, d.value), j.renderBlock(l);
785
786
  };
786
- return /* @__PURE__ */ e.jsxs("div", { className: oe.preview, children: [
787
- s && /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsx(Te, {}) }),
788
- a && n && /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsx(
789
- Fe,
787
+ return /* @__PURE__ */ e.jsxs("div", { className: ae.preview, children: [
788
+ s && /* @__PURE__ */ e.jsx(we, { children: /* @__PURE__ */ e.jsx(Le, {}) }),
789
+ o && n && /* @__PURE__ */ e.jsx(we, { children: /* @__PURE__ */ e.jsx(
790
+ Oe,
790
791
  {
791
792
  render: m,
792
- block: o[d[i].name][n]
793
+ block: c[r[i].name][n]
793
794
  }
794
795
  ) }),
795
- w && /* @__PURE__ */ e.jsx(Ts, {}),
796
- t && /* @__PURE__ */ e.jsxs("div", { className: oe.main, children: [
797
- /* @__PURE__ */ e.jsx(rs, {}),
798
- /* @__PURE__ */ e.jsx("div", { className: oe.content, children: g ? /* @__PURE__ */ e.jsx("div", { className: oe.loading, children: /* @__PURE__ */ e.jsx("div", { className: oe.loader }) }) : /* @__PURE__ */ e.jsx(Ss, {}) })
796
+ f && /* @__PURE__ */ e.jsx(Ls, {}),
797
+ t && /* @__PURE__ */ e.jsxs("div", { className: ae.main, children: [
798
+ /* @__PURE__ */ e.jsx(us, {}),
799
+ /* @__PURE__ */ e.jsx("div", { className: ae.content, children: p ? /* @__PURE__ */ e.jsx("div", { className: ae.loading, children: /* @__PURE__ */ e.jsx("div", { className: ae.loader }) }) : /* @__PURE__ */ e.jsx(Ps, {}) })
799
800
  ] })
800
801
  ] });
801
- }, Ls = "_sidebar_1r5sp_1", zs = "_title_1r5sp_10", Ds = "_active_1r5sp_18", Se = {
802
- sidebar: Ls,
803
- title: zs,
804
- active: Ds
805
- }, Hs = "_layers_62wod_1", Rs = "_block_62wod_8", qs = "_dragging_62wod_23", Ys = "_active_62wod_31", Qs = "_add_62wod_35", Us = "_button_62wod_47", Gs = "_empty_62wod_60", Js = "_title_62wod_72", Xs = "_icon_62wod_79", Zs = "_text_62wod_83", Vs = "_highlight_62wod_89", se = {
806
- layers: Hs,
807
- block: Rs,
808
- dragging: qs,
809
- active: Ys,
810
- add: Qs,
811
- button: Us,
812
- empty: Gs,
813
- title: Js,
814
- icon: Xs,
815
- text: Zs,
816
- highlight: Vs
817
- }, Ks = "_block_1d6lb_1", Ae = {
818
- block: Ks
819
- }, Ws = () => {
820
- const { setCurrentBlock: t } = $(), { activeBlock: n } = Z();
821
- function s(a) {
822
- t(a);
802
+ }, Ds = "_sidebar_1r5sp_1", Hs = "_title_1r5sp_10", Rs = "_active_1r5sp_18", Ae = {
803
+ sidebar: Ds,
804
+ title: Hs,
805
+ active: Rs
806
+ }, qs = "_layers_62wod_1", Ys = "_block_62wod_8", Us = "_dragging_62wod_23", Qs = "_active_62wod_31", Gs = "_add_62wod_35", Js = "_button_62wod_47", Xs = "_empty_62wod_60", Zs = "_title_62wod_72", Vs = "_icon_62wod_79", Ks = "_text_62wod_83", Ws = "_highlight_62wod_89", ne = {
807
+ layers: qs,
808
+ block: Ys,
809
+ dragging: Us,
810
+ active: Qs,
811
+ add: Gs,
812
+ button: Js,
813
+ empty: Xs,
814
+ title: Zs,
815
+ icon: Vs,
816
+ text: Ks,
817
+ highlight: Ws
818
+ }, en = "_block_1d6lb_1", Pe = {
819
+ block: en
820
+ }, tn = () => {
821
+ const { setCurrentBlock: t } = B(), { activeBlock: n } = Z();
822
+ function s(o) {
823
+ t(o);
823
824
  }
824
825
  return /* @__PURE__ */ e.jsxs(
825
826
  "div",
826
827
  {
827
- className: C(Ae.block, {
828
- [Ae.active]: n === "header"
828
+ className: C(Pe.block, {
829
+ [Pe.active]: n === "header"
829
830
  }),
830
831
  onClick: () => s("header"),
831
832
  children: [
@@ -834,18 +835,18 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
834
835
  ]
835
836
  }
836
837
  );
837
- }, en = "_block_1d6lb_1", Pe = {
838
- block: en
839
- }, tn = () => {
840
- const { activeBlock: t } = Z(), { setCurrentBlock: n } = $();
841
- function s(a) {
842
- n(a);
838
+ }, sn = "_block_1d6lb_1", Ie = {
839
+ block: sn
840
+ }, nn = () => {
841
+ const { activeBlock: t } = Z(), { setCurrentBlock: n } = B();
842
+ function s(o) {
843
+ n(o);
843
844
  }
844
845
  return /* @__PURE__ */ e.jsxs(
845
846
  "div",
846
847
  {
847
- className: C(Pe.block, {
848
- [Pe.active]: t === "footer"
848
+ className: C(Ie.block, {
849
+ [Ie.active]: t === "footer"
849
850
  }),
850
851
  onClick: () => s("footer"),
851
852
  children: [
@@ -854,32 +855,32 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
854
855
  ]
855
856
  }
856
857
  );
857
- }, sn = ({ id: t, name: n, index: s, moveBlock: a, onClick: l }) => {
858
- const { currentPage: c, pages: o } = B(), { activeBlock: i } = Z(), {
859
- showPreview: d,
860
- hidePreview: w,
861
- showModal: g,
858
+ }, on = ({ id: t, name: n, index: s, moveBlock: o, onClick: l }) => {
859
+ const { currentPage: a, pages: c } = S(), { activeBlock: i } = Z(), {
860
+ showPreview: r,
861
+ hidePreview: f,
862
+ showModal: p,
862
863
  hideModal: u,
863
864
  clearHideTimeout: m,
864
- startHideTimeout: r,
865
+ startHideTimeout: d,
865
866
  hoverBlockId: j,
866
- isModalVisible: p
867
- } = fe(), { setPositionBlock: v } = $(), [y, T] = x.useState(!1), S = () => {
868
- p && u(), d(t), T(!0), m();
867
+ isModalVisible: g
868
+ } = je(), { setPositionBlock: v } = B(), [N, y] = x.useState(!1), A = () => {
869
+ g && u(), r(t), y(!0), m();
869
870
  }, D = (h) => {
870
- h.stopPropagation(), w(), g(t), m(), v(s + 1);
871
- }, A = () => {
872
- p ? r() : (T(!1), w());
871
+ h.stopPropagation(), f(), p(t), m(), v(s + 1);
872
+ }, P = () => {
873
+ g ? d() : (y(!1), f());
873
874
  };
874
875
  x.useEffect(() => {
875
- p || T(!1);
876
- }, [p]);
877
- const [, P] = Qe({
876
+ g || y(!1);
877
+ }, [g]);
878
+ const [, I] = Ge({
878
879
  accept: "block",
879
880
  hover(h) {
880
- h.index !== s && (a(o[c].name, h.index, s), h.index = s);
881
+ h.index !== s && (o(c[a].name, h.index, s), h.index = s);
881
882
  }
882
- }), [{ isDragging: M }, G] = Ue({
883
+ }), [{ isDragging: M }, G] = Je({
883
884
  type: "block",
884
885
  item: { id: t, index: s },
885
886
  collect: (h) => ({
@@ -889,21 +890,21 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
889
890
  return /* @__PURE__ */ e.jsxs(
890
891
  "div",
891
892
  {
892
- ref: (h) => G(P(h)),
893
- className: C(se.block, {
894
- [se.dragging]: M,
895
- [se.active]: !M && i === t
893
+ ref: (h) => G(I(h)),
894
+ className: C(ne.block, {
895
+ [ne.dragging]: M,
896
+ [ne.active]: !M && i === t
896
897
  }),
897
898
  onClick: () => l(t),
898
- onMouseEnter: S,
899
- onMouseLeave: A,
899
+ onMouseEnter: A,
900
+ onMouseLeave: P,
900
901
  children: [
901
902
  /* @__PURE__ */ e.jsx(_, { name: "cards" }),
902
903
  /* @__PURE__ */ e.jsx("span", { children: n }),
903
- (y || j === t) && !M && /* @__PURE__ */ e.jsx("div", { className: se.add, children: /* @__PURE__ */ e.jsx(
904
+ (N || j === t) && !M && /* @__PURE__ */ e.jsx("div", { className: ne.add, children: /* @__PURE__ */ e.jsx(
904
905
  "button",
905
906
  {
906
- className: se.button,
907
+ className: ne.button,
907
908
  onClick: (h) => D(h),
908
909
  children: /* @__PURE__ */ e.jsx(
909
910
  _,
@@ -917,119 +918,123 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
917
918
  ]
918
919
  }
919
920
  );
920
- }, nn = () => {
921
- const { blocks: t, setCurrentBlock: n, moveBlock: s } = $(), { currentPage: a, pages: l } = B();
922
- function c(o) {
923
- n(o);
921
+ }, an = () => {
922
+ const { blocks: t, setCurrentBlock: n, moveBlock: s } = B(), { currentPage: o, pages: l } = S(), { setMouseOverModal: a, setHoverBlockId: c } = je();
923
+ function i(r) {
924
+ n(r), a(!1), c(null);
924
925
  }
925
- return /* @__PURE__ */ e.jsxs("div", { className: se.layers, children: [
926
- /* @__PURE__ */ e.jsx(Ws, {}),
927
- /* @__PURE__ */ e.jsx(qe, { backend: Ye, children: /* @__PURE__ */ e.jsx(e.Fragment, { children: t[l[a].name] && Object.keys(t[l[a].name]).map((o, i) => /* @__PURE__ */ e.jsx(
928
- sn,
926
+ return /* @__PURE__ */ e.jsxs("div", { className: ne.layers, children: [
927
+ /* @__PURE__ */ e.jsx(tn, {}),
928
+ /* @__PURE__ */ e.jsx(Ue, { backend: Qe, children: /* @__PURE__ */ e.jsx(e.Fragment, { children: t[l[o].name] && Object.keys(t[l[o].name]).map((r, f) => /* @__PURE__ */ e.jsx(
929
+ on,
929
930
  {
930
- id: o,
931
- name: t[l[a].name][o].name,
932
- index: i,
931
+ id: r,
932
+ name: t[l[o].name][r].name,
933
+ index: f,
933
934
  moveBlock: s,
934
- onClick: c
935
+ onClick: i
935
936
  },
936
- o
937
+ r
937
938
  )) }) }),
938
- /* @__PURE__ */ e.jsx(tn, {})
939
+ /* @__PURE__ */ e.jsx(nn, {})
939
940
  ] });
940
- }, on = ({ isHeader: t }) => {
941
- const { header: n, footer: s } = $(), { pageContext: a } = B();
942
- return t ? n == null ? void 0 : n.renderSettings(a) : s == null ? void 0 : s.renderSettings(a);
943
- }, an = () => {
941
+ }, cn = ({ isHeader: t }) => {
942
+ const { header: n, footer: s } = B(), { pageContext: o } = S();
943
+ return t ? n == null ? void 0 : n.renderSettings(o) : s == null ? void 0 : s.renderSettings(o);
944
+ }, ln = () => {
944
945
  const { settings: t } = V();
945
946
  return t == null ? void 0 : t.renderSettings();
946
- }, cn = "_theme_1xj36_1", ln = "_block_1xj36_6", rn = "_name_1xj36_20", ve = {
947
- theme: cn,
948
- block: ln,
949
- name: rn
950
- }, dn = () => {
951
- const { setActiveBlock: t } = F();
947
+ }, rn = "_theme_1xj36_1", dn = "_block_1xj36_6", un = "_name_1xj36_20", fe = {
948
+ theme: rn,
949
+ block: dn,
950
+ name: un
951
+ }, mn = () => {
952
+ const { setActiveBlock: t } = T();
952
953
  function n(s) {
953
954
  t(s);
954
955
  }
955
- return /* @__PURE__ */ e.jsx("div", { className: ve.theme, children: tt.map((s) => /* @__PURE__ */ e.jsxs(
956
+ return /* @__PURE__ */ e.jsx("div", { className: fe.theme, children: st.map((s) => /* @__PURE__ */ e.jsxs(
956
957
  "div",
957
958
  {
958
959
  onClick: () => n(s),
959
- className: C(ve.block),
960
+ className: C(fe.block),
960
961
  children: [
961
962
  /* @__PURE__ */ e.jsx(_, { name: s.icon }),
962
- /* @__PURE__ */ e.jsx("span", { className: ve.name, children: s.name }),
963
+ /* @__PURE__ */ e.jsx("span", { className: fe.name, children: s.name }),
963
964
  /* @__PURE__ */ e.jsx(_, { name: "arrow-right" })
964
965
  ]
965
966
  },
966
967
  s.icon
967
968
  )) });
968
- }, un = "_back_1lk1m_1", mn = "_render_1lk1m_8", hn = "_open_1lk1m_23", _n = "_close_1lk1m_50", gn = "_clicked_1lk1m_54", pn = "_title_1lk1m_58", xn = "_button_1lk1m_65", jn = "_loading_1lk1m_70", vn = "_settings_1lk1m_74", bn = "_buttons_1lk1m_80", fn = "_deleteButton_1lk1m_86", R = {
969
- back: un,
970
- render: mn,
971
- open: hn,
972
- close: _n,
973
- clicked: gn,
974
- title: pn,
975
- button: xn,
976
- loading: jn,
977
- settings: vn,
978
- buttons: bn,
979
- deleteButton: fn
980
- }, kn = ({ block: t }) => t ? t.renderSettings() : null, wn = (t) => {
981
- var b;
982
- const { isAdd: n } = t, [s, a] = x.useState(!1), [l, c] = x.useState(null), { setActiveBlock: o } = pe(), { sourceBlocks: i, activeBlock: d, setActiveBlock: w } = K(), {
983
- blocks: g,
969
+ }, hn = "_back_1lk1m_1", _n = "_render_1lk1m_8", gn = "_open_1lk1m_23", pn = "_close_1lk1m_50", xn = "_clicked_1lk1m_54", jn = "_title_1lk1m_58", vn = "_button_1lk1m_65", bn = "_loading_1lk1m_70", fn = "_settings_1lk1m_74", kn = "_buttons_1lk1m_80", wn = "_deleteButton_1lk1m_86", R = {
970
+ back: hn,
971
+ render: _n,
972
+ open: gn,
973
+ close: pn,
974
+ clicked: xn,
975
+ title: jn,
976
+ button: vn,
977
+ loading: bn,
978
+ settings: fn,
979
+ buttons: kn,
980
+ deleteButton: wn
981
+ }, Cn = ({ block: t }) => {
982
+ if (!t) return null;
983
+ const { pageContext: n } = S();
984
+ return t.renderSettings(n);
985
+ }, Nn = (t) => {
986
+ var k;
987
+ const { isAdd: n } = t, [s, o] = x.useState(!1), [l, a] = x.useState(null), { setActiveBlock: c } = xe(), { sourceBlocks: i, activeBlock: r, setActiveBlock: f } = K(), {
988
+ blocks: p,
984
989
  addBlock: u,
985
990
  editBlock: m,
986
- currentBlock: r,
991
+ currentBlock: d,
987
992
  setCurrentBlock: j,
988
- removeBlock: p,
993
+ removeBlock: g,
989
994
  setPositionBlock: v,
990
- setHeader: y,
991
- setFooter: T,
992
- header: S,
995
+ setHeader: N,
996
+ setFooter: y,
997
+ header: A,
993
998
  footer: D
994
- } = $(), { currentPage: A, pages: P } = B();
995
- function M() {
996
- !n && l && m(P[A].name, r, {
997
- name: g[P[A].name][r].name,
999
+ } = B(), { currentPage: P, pages: I } = S();
1000
+ function M(b = !1) {
1001
+ !n && l && !b && m(I[P].name, d, {
1002
+ name: p[I[P].name][d].name,
998
1003
  value: l
999
- }), w(null), j(null), setTimeout(() => {
1000
- a(!1);
1001
- }, 150), c(null);
1004
+ }), f(null), j(null), setTimeout(() => {
1005
+ o(!1);
1006
+ }, 150), a(null);
1002
1007
  }
1003
1008
  function G() {
1004
- M(), o({
1009
+ M(), c({
1005
1010
  name: "Layers",
1006
1011
  icon: "layers"
1007
- }), c(null);
1012
+ }), a(null);
1008
1013
  }
1009
1014
  function h() {
1010
1015
  if (n)
1011
- return new i[d]();
1016
+ return new i[r]();
1012
1017
  {
1013
- const f = g[P[A].name][r];
1014
- return new i[f.name](f.value.blockSettings);
1018
+ const b = p[I[P].name][d];
1019
+ return new i[b.name](b.value.blockSettings);
1015
1020
  }
1016
1021
  }
1017
1022
  return x.useEffect(() => {
1018
- if (d || r && !["header", "footer"].includes(r)) {
1019
- const f = h();
1020
- c(f);
1023
+ if (r || d && !["header", "footer"].includes(d)) {
1024
+ const b = h();
1025
+ a(b);
1021
1026
  } else
1022
- c(null);
1023
- }, [d, r]), x.useEffect(() => {
1024
- r === "header" && y(S);
1025
- }, [r, S]), x.useEffect(() => {
1026
- r === "footer" && T(D);
1027
- }, [r, D]), /* @__PURE__ */ e.jsxs(
1027
+ a(null);
1028
+ }, [r, d]), x.useEffect(() => {
1029
+ d === "header" && N(A);
1030
+ }, [d, A]), x.useEffect(() => {
1031
+ d === "footer" && y(D);
1032
+ }, [d, D]), /* @__PURE__ */ e.jsxs(
1028
1033
  "div",
1029
1034
  {
1030
1035
  className: C(R.render, {
1031
- [R.open]: r || d,
1032
- [R.close]: !r && !d,
1036
+ [R.open]: d || r,
1037
+ [R.close]: !d && !r,
1033
1038
  [R.clicked]: s
1034
1039
  }),
1035
1040
  children: [
@@ -1039,15 +1044,15 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1039
1044
  {
1040
1045
  name: "arrow-left",
1041
1046
  hoverable: !0,
1042
- onClick: M
1047
+ onClick: () => M()
1043
1048
  }
1044
1049
  ),
1045
- /* @__PURE__ */ e.jsx("h3", { className: R.title, children: d || g[P[A].name] && ((b = g[P[A].name][r]) == null ? void 0 : b.name) || r && z(r) || "Loading" })
1050
+ /* @__PURE__ */ e.jsx("h3", { className: R.title, children: r || p[I[P].name] && ((k = p[I[P].name][d]) == null ? void 0 : k.name) || d && z(d) || "Loading" })
1046
1051
  ] }),
1047
1052
  /* @__PURE__ */ e.jsxs("div", { className: R.settings, children: [
1048
- l && /* @__PURE__ */ e.jsx(kn, { block: l }),
1049
- r && ["header", "footer"].includes(r) && /* @__PURE__ */ e.jsx(on, { isHeader: r === "header" }),
1050
- !d && !r && /* @__PURE__ */ e.jsx("div", { className: R.loading, children: "Loading" })
1053
+ l && /* @__PURE__ */ e.jsx(Cn, { block: l }),
1054
+ d && ["header", "footer"].includes(d) && /* @__PURE__ */ e.jsx(cn, { isHeader: d === "header" }),
1055
+ !r && !d && /* @__PURE__ */ e.jsx("div", { className: R.loading, children: "Loading" })
1051
1056
  ] }),
1052
1057
  /* @__PURE__ */ e.jsxs("div", { className: R.buttons, children: [
1053
1058
  n && /* @__PURE__ */ e.jsx(
@@ -1057,19 +1062,19 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1057
1062
  width: "100%"
1058
1063
  },
1059
1064
  onClick: () => {
1060
- a(!0), ["header", "footer"].includes(r) ? r === "header" ? y(S) : T(D) : (u(P[A].name, {
1061
- name: d,
1065
+ o(!0), ["header", "footer"].includes(d) ? d === "header" ? N(A) : y(D) : (u(I[P].name, {
1066
+ name: r,
1062
1067
  value: l
1063
1068
  }), v(null)), G();
1064
1069
  },
1065
1070
  children: "Add Section"
1066
1071
  }
1067
1072
  ),
1068
- !n && !["header", "footer"].includes(r) && /* @__PURE__ */ e.jsx(
1073
+ !n && !["header", "footer"].includes(d) && /* @__PURE__ */ e.jsx(
1069
1074
  "button",
1070
1075
  {
1071
1076
  onClick: () => {
1072
- a(!0), p(P[A].name, r), M();
1077
+ o(!0), g(I[P].name, d), M(!0);
1073
1078
  },
1074
1079
  className: R.deleteButton,
1075
1080
  children: /* @__PURE__ */ e.jsx(
@@ -1085,40 +1090,40 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1085
1090
  ]
1086
1091
  }
1087
1092
  );
1088
- }, Cn = "_settings_1r85j_1", Nn = "_open_1r85j_16", $n = "_close_1r85j_20", yn = "_header_1r85j_24", Bn = "_title_1r85j_30", Sn = "_addButton_1r85j_37", ae = {
1089
- settings: Cn,
1090
- open: Nn,
1091
- close: $n,
1092
- header: yn,
1093
- title: Bn,
1094
- addButton: Sn
1095
- }, An = "_wrapper_n1a7x_1", Pn = "_category_n1a7x_5", Mn = "_categoryTitle_n1a7x_10", En = "_color_n1a7x_16", In = "_content_n1a7x_24", Fn = "_preview_n1a7x_32", W = {
1096
- wrapper: An,
1097
- category: Pn,
1098
- categoryTitle: Mn,
1099
- color: En,
1100
- content: In,
1101
- preview: Fn
1102
- }, Tn = () => {
1103
- const { themeSettings: t, updateColor: n } = F();
1104
- async function s(l, c, o) {
1105
- n(l, c, o);
1093
+ }, yn = "_settings_1r85j_1", $n = "_open_1r85j_16", Bn = "_close_1r85j_20", Sn = "_header_1r85j_24", An = "_title_1r85j_30", Pn = "_addButton_1r85j_37", ce = {
1094
+ settings: yn,
1095
+ open: $n,
1096
+ close: Bn,
1097
+ header: Sn,
1098
+ title: An,
1099
+ addButton: Pn
1100
+ }, In = "_wrapper_n1a7x_1", Mn = "_category_n1a7x_5", En = "_categoryTitle_n1a7x_10", Fn = "_color_n1a7x_16", Tn = "_content_n1a7x_24", On = "_preview_n1a7x_32", W = {
1101
+ wrapper: In,
1102
+ category: Mn,
1103
+ categoryTitle: En,
1104
+ color: Fn,
1105
+ content: Tn,
1106
+ preview: On
1107
+ }, Ln = () => {
1108
+ const { themeSettings: t, updateColor: n } = T();
1109
+ async function s(l, a, c) {
1110
+ n(l, a, c);
1106
1111
  }
1107
- const a = Ie(() => {
1112
+ const o = Te(() => {
1108
1113
  const l = {};
1109
- return Object.entries(t.colors).forEach(([c, o]) => {
1110
- Object.entries(o).forEach(([i, d]) => {
1111
- l[d] || (l[d] = []), l[d].push(`${c}-${i}`);
1114
+ return Object.entries(t.colors).forEach(([a, c]) => {
1115
+ Object.entries(c).forEach(([i, r]) => {
1116
+ l[r] || (l[r] = []), l[r].push(`${a}-${i}`);
1112
1117
  });
1113
- }), Object.keys(l).filter((c) => l[c].length > 1);
1118
+ }), Object.keys(l).filter((a) => l[a].length > 1);
1114
1119
  }, [t.colors]);
1115
- return /* @__PURE__ */ e.jsx("div", { className: W.wrapper, children: Object.entries(t.colors).map(([l, c]) => /* @__PURE__ */ e.jsxs(
1120
+ return /* @__PURE__ */ e.jsx("div", { className: W.wrapper, children: Object.entries(t.colors).map(([l, a]) => /* @__PURE__ */ e.jsxs(
1116
1121
  "div",
1117
1122
  {
1118
1123
  className: W.category,
1119
1124
  children: [
1120
1125
  /* @__PURE__ */ e.jsx("h2", { className: W.categoryTitle, children: z(l) }),
1121
- Object.entries(c).map(([o, i]) => /* @__PURE__ */ e.jsxs(
1126
+ Object.entries(a).map(([c, i]) => /* @__PURE__ */ e.jsxs(
1122
1127
  "div",
1123
1128
  {
1124
1129
  className: W.color,
@@ -1134,16 +1139,16 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1134
1139
  }
1135
1140
  ),
1136
1141
  /* @__PURE__ */ e.jsx(
1137
- ce,
1142
+ le,
1138
1143
  {
1139
- title: z(o),
1144
+ title: z(c),
1140
1145
  initialColor: i,
1141
- onChange: (d) => s(l, o, d)
1146
+ onChange: (r) => s(l, c, r)
1142
1147
  }
1143
1148
  )
1144
1149
  ] }),
1145
- a.includes(i) && /* @__PURE__ */ e.jsx(
1146
- Ge,
1150
+ o.includes(i) && /* @__PURE__ */ e.jsx(
1151
+ Xe,
1147
1152
  {
1148
1153
  type: "warning",
1149
1154
  message: "To avoid contrast problems, please use a different color",
@@ -1154,73 +1159,73 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1154
1159
  )
1155
1160
  ]
1156
1161
  },
1157
- o
1162
+ c
1158
1163
  ))
1159
1164
  ]
1160
1165
  },
1161
1166
  l
1162
1167
  )) });
1163
- }, On = "_wrapper_kb55x_2", Ln = "_category_kb55x_6", zn = "_categoryTitle_kb55x_11", Dn = "_color_kb55x_17", Hn = "_name_kb55x_23", Rn = "_content_kb55x_28", qn = "_label_kb55x_34", Yn = "_input_kb55x_45", Qn = "_title_kb55x_71", Un = "_field_kb55x_79", Gn = "_alignments_kb55x_89", Jn = "_lineField_kb55x_95", Xn = "_style_kb55x_101", Zn = "_header_kb55x_108", q = {
1164
- wrapper: On,
1165
- category: Ln,
1166
- categoryTitle: zn,
1167
- color: Dn,
1168
- name: Hn,
1169
- content: Rn,
1170
- label: qn,
1171
- input: Yn,
1172
- title: Qn,
1173
- field: Un,
1174
- alignments: Gn,
1175
- lineField: Jn,
1176
- style: Xn,
1177
- header: Zn
1178
- }, Vn = ["left", "center", "right"], Kn = ["solid", "dashed"], _e = (t) => {
1179
- const { title: n, children: s, rightAddon: a } = t;
1168
+ }, zn = "_wrapper_kb55x_2", Dn = "_category_kb55x_6", Hn = "_categoryTitle_kb55x_11", Rn = "_color_kb55x_17", qn = "_name_kb55x_23", Yn = "_content_kb55x_28", Un = "_label_kb55x_34", Qn = "_input_kb55x_45", Gn = "_title_kb55x_71", Jn = "_field_kb55x_79", Xn = "_alignments_kb55x_89", Zn = "_lineField_kb55x_95", Vn = "_style_kb55x_101", Kn = "_header_kb55x_108", q = {
1169
+ wrapper: zn,
1170
+ category: Dn,
1171
+ categoryTitle: Hn,
1172
+ color: Rn,
1173
+ name: qn,
1174
+ content: Yn,
1175
+ label: Un,
1176
+ input: Qn,
1177
+ title: Gn,
1178
+ field: Jn,
1179
+ alignments: Xn,
1180
+ lineField: Zn,
1181
+ style: Vn,
1182
+ header: Kn
1183
+ }, Wn = ["left", "center", "right"], eo = ["solid", "dashed"], ge = (t) => {
1184
+ const { title: n, children: s, rightAddon: o } = t;
1180
1185
  return /* @__PURE__ */ e.jsxs("div", { className: q.field, children: [
1181
1186
  /* @__PURE__ */ e.jsxs("div", { className: q.header, children: [
1182
1187
  /* @__PURE__ */ e.jsx("h4", { children: n }),
1183
- a
1188
+ o
1184
1189
  ] }),
1185
1190
  s
1186
1191
  ] });
1187
- }, Wn = () => {
1188
- const { themeSettings: t, updateInput: n } = F(), s = Ie(() => t.inputs, [t]), a = (c, o, i) => {
1189
- n(c, o, i);
1190
- }, l = (c) => (o) => {
1191
- n(c, o, "color");
1192
+ }, to = () => {
1193
+ const { themeSettings: t, updateInput: n } = T(), s = Te(() => t.inputs, [t]), o = (a, c, i) => {
1194
+ n(a, c, i);
1195
+ }, l = (a) => (c) => {
1196
+ n(a, c, "color");
1192
1197
  };
1193
1198
  return /* @__PURE__ */ e.jsxs("div", { className: q.wrapper, children: [
1194
- /* @__PURE__ */ e.jsxs(_e, { title: "General", children: [
1199
+ /* @__PURE__ */ e.jsxs(ge, { title: "General", children: [
1195
1200
  /* @__PURE__ */ e.jsx(
1196
- I,
1201
+ F,
1197
1202
  {
1198
1203
  label: "Height (px)",
1199
1204
  value: String(s.general.height),
1200
- onChange: (c) => a("general", c, "height"),
1205
+ onChange: (a) => o("general", a, "height"),
1201
1206
  type: "number",
1202
1207
  min: 0
1203
1208
  }
1204
1209
  ),
1205
1210
  /* @__PURE__ */ e.jsx(
1206
- I,
1211
+ F,
1207
1212
  {
1208
1213
  label: "Style name",
1209
1214
  value: s.general.name,
1210
- onChange: (c) => a("general", c, "name")
1215
+ onChange: (a) => o("general", a, "name")
1211
1216
  }
1212
1217
  ),
1213
1218
  /* @__PURE__ */ e.jsx(
1214
- ne,
1219
+ oe,
1215
1220
  {
1216
1221
  label: "Font Size (px)",
1217
- onChange: (c) => a("general", c, "size"),
1222
+ onChange: (a) => o("general", a, "size"),
1218
1223
  value: String(s.general.size),
1219
- options: ge
1224
+ options: pe
1220
1225
  }
1221
1226
  ),
1222
1227
  /* @__PURE__ */ e.jsx(
1223
- ce,
1228
+ le,
1224
1229
  {
1225
1230
  initialColor: z(s.general.color),
1226
1231
  onChange: l("general"),
@@ -1230,19 +1235,19 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1230
1235
  )
1231
1236
  ] }),
1232
1237
  /* @__PURE__ */ e.jsxs(
1233
- _e,
1238
+ ge,
1234
1239
  {
1235
1240
  title: "Field Fill",
1236
1241
  rightAddon: /* @__PURE__ */ e.jsx("div", { className: q.switch, children: /* @__PURE__ */ e.jsx(
1237
- we,
1242
+ Ce,
1238
1243
  {
1239
- onChange: (c) => a("field", c, "active"),
1244
+ onChange: (a) => o("field", a, "active"),
1240
1245
  current: s.field.active
1241
1246
  }
1242
1247
  ) }),
1243
1248
  children: [
1244
1249
  /* @__PURE__ */ e.jsx(
1245
- ce,
1250
+ le,
1246
1251
  {
1247
1252
  initialColor: z(s.field.color),
1248
1253
  onChange: l("field"),
@@ -1251,11 +1256,11 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1251
1256
  }
1252
1257
  ),
1253
1258
  /* @__PURE__ */ e.jsx(
1254
- I,
1259
+ F,
1255
1260
  {
1256
1261
  label: "Opacity (%)",
1257
1262
  value: String(s.field.opacity),
1258
- onChange: (c) => a("field", c, "opacity"),
1263
+ onChange: (a) => o("field", a, "opacity"),
1259
1264
  type: "number",
1260
1265
  min: 0
1261
1266
  }
@@ -1264,13 +1269,13 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1264
1269
  }
1265
1270
  ),
1266
1271
  /* @__PURE__ */ e.jsxs(
1267
- _e,
1272
+ ge,
1268
1273
  {
1269
1274
  title: "Border",
1270
1275
  rightAddon: /* @__PURE__ */ e.jsx("div", { className: q.switch, children: /* @__PURE__ */ e.jsx(
1271
- we,
1276
+ Ce,
1272
1277
  {
1273
- onChange: (c) => a("border", c, "active"),
1278
+ onChange: (a) => o("border", a, "active"),
1274
1279
  current: s.border.active
1275
1280
  }
1276
1281
  ) }),
@@ -1279,38 +1284,38 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1279
1284
  /* @__PURE__ */ e.jsxs("div", { className: q.style, children: [
1280
1285
  /* @__PURE__ */ e.jsx("span", { className: q.title, children: "Style" }),
1281
1286
  /* @__PURE__ */ e.jsx(
1282
- Ce,
1287
+ Ne,
1283
1288
  {
1284
- items: Kn,
1289
+ items: eo,
1285
1290
  selectedItem: s.border.style,
1286
- onSelect: (c) => a("border", c, "style"),
1287
- getIconName: (c) => `border-${c}`
1291
+ onSelect: (a) => o("border", a, "style"),
1292
+ getIconName: (a) => `border-${a}`
1288
1293
  }
1289
1294
  )
1290
1295
  ] }),
1291
1296
  /* @__PURE__ */ e.jsx(
1292
- I,
1297
+ F,
1293
1298
  {
1294
1299
  label: "Radius (px)",
1295
1300
  value: String(s.border.radius),
1296
- onChange: (c) => a("border", c, "radius"),
1301
+ onChange: (a) => o("border", a, "radius"),
1297
1302
  type: "number",
1298
1303
  min: 0
1299
1304
  }
1300
1305
  )
1301
1306
  ] }),
1302
1307
  /* @__PURE__ */ e.jsx(
1303
- I,
1308
+ F,
1304
1309
  {
1305
1310
  label: "Thickness (px)",
1306
1311
  value: String(s.border.thickness),
1307
- onChange: (c) => a("border", c, "thickness"),
1312
+ onChange: (a) => o("border", a, "thickness"),
1308
1313
  type: "number",
1309
1314
  min: 0
1310
1315
  }
1311
1316
  ),
1312
1317
  /* @__PURE__ */ e.jsx(
1313
- ce,
1318
+ le,
1314
1319
  {
1315
1320
  initialColor: z(s.border.color),
1316
1321
  onChange: l("border"),
@@ -1321,28 +1326,28 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1321
1326
  ]
1322
1327
  }
1323
1328
  ),
1324
- /* @__PURE__ */ e.jsxs(_e, { title: "Label", children: [
1329
+ /* @__PURE__ */ e.jsxs(ge, { title: "Label", children: [
1325
1330
  /* @__PURE__ */ e.jsx(
1326
- I,
1331
+ F,
1327
1332
  {
1328
1333
  label: "Line Height (px)",
1329
1334
  value: String(s.label.height),
1330
- onChange: (c) => a("label", c, "height"),
1335
+ onChange: (a) => o("label", a, "height"),
1331
1336
  type: "number",
1332
1337
  min: 0
1333
1338
  }
1334
1339
  ),
1335
1340
  /* @__PURE__ */ e.jsx(
1336
- ne,
1341
+ oe,
1337
1342
  {
1338
1343
  label: "Font Size (px)",
1339
- onChange: (c) => a("label", c, "size"),
1344
+ onChange: (a) => o("label", a, "size"),
1340
1345
  value: String(s.label.size),
1341
- options: ge
1346
+ options: pe
1342
1347
  }
1343
1348
  ),
1344
1349
  /* @__PURE__ */ e.jsx(
1345
- ce,
1350
+ le,
1346
1351
  {
1347
1352
  initialColor: z(s.label.color),
1348
1353
  onChange: l("label"),
@@ -1353,96 +1358,96 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1353
1358
  /* @__PURE__ */ e.jsxs("div", { className: q.alignments, children: [
1354
1359
  /* @__PURE__ */ e.jsx("h4", { className: q.title, children: "Alignment Type" }),
1355
1360
  /* @__PURE__ */ e.jsx(
1356
- Ce,
1361
+ Ne,
1357
1362
  {
1358
- items: Vn,
1363
+ items: Wn,
1359
1364
  selectedItem: s.label.alignment,
1360
- onSelect: (c) => a("label", c, "alignment"),
1361
- getIconName: (c) => `align-${c}`
1365
+ onSelect: (a) => o("label", a, "alignment"),
1366
+ getIconName: (a) => `align-${a}`
1362
1367
  }
1363
1368
  )
1364
1369
  ] })
1365
1370
  ] })
1366
1371
  ] });
1367
- }, eo = "_wrapper_k9on2_1", to = "_category_k9on2_5", so = "_categoryTitle_k9on2_10", no = "_font_k9on2_16", oo = "_content_k9on2_36", ao = "_icon_k9on2_42", co = "_paragraph_k9on2_51", lo = "_deleteIcon_k9on2_55", io = "_iconButton_k9on2_62", U = {
1368
- wrapper: eo,
1369
- category: to,
1370
- categoryTitle: so,
1371
- font: no,
1372
- content: oo,
1373
- icon: ao,
1374
- paragraph: co,
1375
- deleteIcon: lo,
1376
- iconButton: io
1377
- }, ro = (t) => {
1378
- const { font: n, size: s, id: a, category: l } = t, { setActiveFont: c } = F();
1372
+ }, so = "_wrapper_k9on2_1", no = "_category_k9on2_5", oo = "_categoryTitle_k9on2_10", ao = "_font_k9on2_16", co = "_content_k9on2_36", lo = "_icon_k9on2_42", io = "_paragraph_k9on2_51", ro = "_deleteIcon_k9on2_55", uo = "_iconButton_k9on2_62", Q = {
1373
+ wrapper: so,
1374
+ category: no,
1375
+ categoryTitle: oo,
1376
+ font: ao,
1377
+ content: co,
1378
+ icon: lo,
1379
+ paragraph: io,
1380
+ deleteIcon: ro,
1381
+ iconButton: uo
1382
+ }, mo = (t) => {
1383
+ const { font: n, size: s, id: o, category: l } = t, { setActiveFont: a } = T();
1379
1384
  return /* @__PURE__ */ e.jsxs(
1380
1385
  "div",
1381
1386
  {
1382
- className: U.font,
1383
- onClick: () => c(a),
1387
+ className: Q.font,
1388
+ onClick: () => a(o),
1384
1389
  children: [
1385
1390
  /* @__PURE__ */ e.jsx(
1386
1391
  "div",
1387
1392
  {
1388
- className: C(U.icon, {
1389
- [U.paragraph]: l === "paragraph"
1393
+ className: C(Q.icon, {
1394
+ [Q.paragraph]: l === "paragraph"
1390
1395
  }),
1391
1396
  children: /* @__PURE__ */ e.jsx(_, { name: l })
1392
1397
  }
1393
1398
  ),
1394
- /* @__PURE__ */ e.jsxs("div", { className: U.content, children: [
1395
- /* @__PURE__ */ e.jsx("h2", { className: U.categoryTitle, children: z(a) }),
1396
- /* @__PURE__ */ e.jsx("span", { className: U.value, children: `${n}, ${s}px` })
1399
+ /* @__PURE__ */ e.jsxs("div", { className: Q.content, children: [
1400
+ /* @__PURE__ */ e.jsx("h2", { className: Q.categoryTitle, children: z(o) }),
1401
+ /* @__PURE__ */ e.jsx("span", { className: Q.value, children: `${n}, ${s}px` })
1397
1402
  ] })
1398
1403
  ]
1399
1404
  }
1400
1405
  );
1401
- }, uo = () => {
1402
- const { themeSettings: t, setActiveFont: n, activeBlock: s } = F();
1403
- x.useEffect(() => (a(), () => {
1404
- a();
1406
+ }, ho = () => {
1407
+ const { themeSettings: t, setActiveFont: n, activeBlock: s } = T();
1408
+ x.useEffect(() => (o(), () => {
1409
+ o();
1405
1410
  }), []);
1406
- function a() {
1411
+ function o() {
1407
1412
  n(null);
1408
1413
  }
1409
1414
  if (s != null && s.name)
1410
- return /* @__PURE__ */ e.jsx("div", { className: U.wrapper, children: Object.entries(t.fonts).map(([l, c]) => /* @__PURE__ */ e.jsxs(
1415
+ return /* @__PURE__ */ e.jsx("div", { className: Q.wrapper, children: Object.entries(t.fonts).map(([l, a]) => /* @__PURE__ */ e.jsxs(
1411
1416
  "div",
1412
1417
  {
1413
- className: U.category,
1418
+ className: Q.category,
1414
1419
  children: [
1415
- /* @__PURE__ */ e.jsx("h2", { className: U.categoryTitle, children: z(l) }),
1416
- Object.entries(c).map(([o, i]) => /* @__PURE__ */ e.jsx(
1417
- ro,
1420
+ /* @__PURE__ */ e.jsx("h2", { className: Q.categoryTitle, children: z(l) }),
1421
+ Object.entries(a).map(([c, i]) => /* @__PURE__ */ e.jsx(
1422
+ mo,
1418
1423
  {
1419
- id: o,
1424
+ id: c,
1420
1425
  category: l,
1421
1426
  ...i
1422
1427
  },
1423
- o
1428
+ c
1424
1429
  ))
1425
1430
  ]
1426
1431
  },
1427
1432
  l
1428
1433
  )) });
1429
- }, mo = "_wrapper_94fpv_1", ho = "_open_94fpv_16", _o = "_close_94fpv_20", go = "_header_94fpv_24", po = "_title_94fpv_31", xo = "_options_94fpv_37", jo = "_clicked_94fpv_44", ee = {
1430
- wrapper: mo,
1431
- open: ho,
1432
- close: _o,
1433
- header: go,
1434
- title: po,
1435
- options: xo,
1436
- clicked: jo
1437
- }, vo = () => {
1438
- const { activeBlock: t, setActiveFont: n, activeFont: s, themeSettings: a, updateFont: l } = F(), { fonts: c } = Ee(), [o, i] = x.useState(null);
1439
- function d() {
1434
+ }, _o = "_wrapper_94fpv_1", go = "_open_94fpv_16", po = "_close_94fpv_20", xo = "_header_94fpv_24", jo = "_title_94fpv_31", vo = "_options_94fpv_37", bo = "_clicked_94fpv_44", ee = {
1435
+ wrapper: _o,
1436
+ open: go,
1437
+ close: po,
1438
+ header: xo,
1439
+ title: jo,
1440
+ options: vo,
1441
+ clicked: bo
1442
+ }, fo = () => {
1443
+ const { activeBlock: t, setActiveFont: n, activeFont: s, themeSettings: o, updateFont: l } = T(), { fonts: a } = Ee(), [c, i] = x.useState(null);
1444
+ function r() {
1440
1445
  n(null);
1441
1446
  }
1442
- function w(u, m) {
1443
- o && s && l(o, s, m, u);
1447
+ function f(u, m) {
1448
+ c && s && l(c, s, m, u);
1444
1449
  }
1445
- const g = x.useMemo(() => s ? a.fonts.heading[s] ? (i("heading"), a.fonts.heading[s]) : a.fonts.paragraph[s] ? (i("paragraph"), a.fonts.paragraph[s]) : (i(null), null) : null, [s, a]);
1450
+ const p = x.useMemo(() => s ? o.fonts.heading[s] ? (i("heading"), o.fonts.heading[s]) : o.fonts.paragraph[s] ? (i("paragraph"), o.fonts.paragraph[s]) : (i(null), null) : null, [s, o]);
1446
1451
  return /* @__PURE__ */ e.jsxs(
1447
1452
  "div",
1448
1453
  {
@@ -1455,7 +1460,7 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1455
1460
  "div",
1456
1461
  {
1457
1462
  className: ee.header,
1458
- onClick: d,
1463
+ onClick: r,
1459
1464
  children: [
1460
1465
  /* @__PURE__ */ e.jsx(
1461
1466
  _,
@@ -1468,55 +1473,55 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1468
1473
  ]
1469
1474
  }
1470
1475
  ),
1471
- s && g && /* @__PURE__ */ e.jsxs("div", { className: ee.options, children: [
1476
+ s && p && /* @__PURE__ */ e.jsxs("div", { className: ee.options, children: [
1472
1477
  /* @__PURE__ */ e.jsx(
1473
- ne,
1478
+ oe,
1474
1479
  {
1475
1480
  label: "Font",
1476
- value: g.font,
1477
- onChange: (u) => w(u, "font"),
1478
- options: [...c.filter((u) => u !== g.font)]
1481
+ value: p.font,
1482
+ onChange: (u) => f(u, "font"),
1483
+ options: [...a.filter((u) => u !== p.font)]
1479
1484
  }
1480
1485
  ),
1481
1486
  /* @__PURE__ */ e.jsx(
1482
- ne,
1487
+ oe,
1483
1488
  {
1484
1489
  label: "Size",
1485
- value: String(g.size),
1486
- onChange: (u) => w(u, "size"),
1487
- options: ge
1490
+ value: String(p.size),
1491
+ onChange: (u) => f(u, "size"),
1492
+ options: pe
1488
1493
  }
1489
1494
  ),
1490
1495
  /* @__PURE__ */ e.jsx(
1491
- ne,
1496
+ oe,
1492
1497
  {
1493
1498
  label: "Weight",
1494
- value: String(g.weight),
1495
- onChange: (u) => w(u, "weight"),
1496
- options: Je
1499
+ value: String(p.weight),
1500
+ onChange: (u) => f(u, "weight"),
1501
+ options: Ze
1497
1502
  }
1498
1503
  )
1499
1504
  ] })
1500
1505
  ]
1501
1506
  }
1502
1507
  );
1503
- }, bo = "_wrapper_94fpv_1", fo = "_open_94fpv_16", ko = "_close_94fpv_20", wo = "_header_94fpv_24", Co = "_title_94fpv_31", No = "_options_94fpv_37", $o = "_clicked_94fpv_44", te = {
1504
- wrapper: bo,
1505
- open: fo,
1506
- close: ko,
1507
- header: wo,
1508
- title: Co,
1509
- options: No,
1510
- clicked: $o
1511
- }, Oe = () => {
1512
- const { activeBlock: t, themeSettings: n, updateBorder: s, setActiveBlock: a } = F();
1513
- function l(i, d) {
1514
- s(d, i);
1508
+ }, ko = "_wrapper_94fpv_1", wo = "_open_94fpv_16", Co = "_close_94fpv_20", No = "_header_94fpv_24", yo = "_title_94fpv_31", $o = "_options_94fpv_37", Bo = "_clicked_94fpv_44", te = {
1509
+ wrapper: ko,
1510
+ open: wo,
1511
+ close: Co,
1512
+ header: No,
1513
+ title: yo,
1514
+ options: $o,
1515
+ clicked: Bo
1516
+ }, ze = () => {
1517
+ const { activeBlock: t, themeSettings: n, updateBorder: s, setActiveBlock: o } = T();
1518
+ function l(i, r) {
1519
+ s(r, i);
1515
1520
  }
1516
- function c() {
1517
- a(null);
1521
+ function a() {
1522
+ o(null);
1518
1523
  }
1519
- const o = x.useMemo(() => n.borders, [n]);
1524
+ const c = x.useMemo(() => n.borders, [n]);
1520
1525
  return /* @__PURE__ */ e.jsxs(
1521
1526
  "div",
1522
1527
  {
@@ -1531,27 +1536,27 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1531
1536
  {
1532
1537
  name: "arrow-left",
1533
1538
  hoverable: !0,
1534
- onClick: c
1539
+ onClick: a
1535
1540
  }
1536
1541
  ),
1537
1542
  /* @__PURE__ */ e.jsx("span", { className: te.title, children: "Borders Style" })
1538
1543
  ] }),
1539
1544
  /* @__PURE__ */ e.jsxs("div", { className: te.options, children: [
1540
1545
  /* @__PURE__ */ e.jsx(
1541
- I,
1546
+ F,
1542
1547
  {
1543
1548
  label: "Border Radius (px)",
1544
- value: String(o.radius),
1549
+ value: String(c.radius),
1545
1550
  onChange: (i) => l(Number(i), "radius"),
1546
1551
  type: "number",
1547
1552
  min: 0
1548
1553
  }
1549
1554
  ),
1550
1555
  /* @__PURE__ */ e.jsx(
1551
- I,
1556
+ F,
1552
1557
  {
1553
1558
  label: "Border Thickness (px)",
1554
- value: String(o.thickness),
1559
+ value: String(c.thickness),
1555
1560
  onChange: (i) => l(Number(i), "thickness"),
1556
1561
  type: "number",
1557
1562
  min: 0
@@ -1561,28 +1566,28 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1561
1566
  ]
1562
1567
  }
1563
1568
  );
1564
- }, yo = "_wrapper_1j33r_1", Bo = "_open_1j33r_16", So = "_close_1j33r_20", Ao = "_header_1j33r_24", Po = "_title_1j33r_31", Mo = "_options_1j33r_37", Eo = "_clicked_1j33r_44", Io = "_label_1j33r_48", Fo = "_alignments_1j33r_55", To = "_blocks_1j33r_61", Oo = "_alignment_1j33r_55", Lo = "_active_1j33r_75", O = {
1565
- wrapper: yo,
1566
- open: Bo,
1567
- close: So,
1568
- header: Ao,
1569
- title: Po,
1570
- options: Mo,
1571
- clicked: Eo,
1572
- label: Io,
1573
- alignments: Fo,
1574
- blocks: To,
1575
- alignment: Oo,
1576
- active: Lo
1577
- }, zo = ["left", "center", "right"], Le = () => {
1578
- const { activeBlock: t, themeSettings: n, updateButton: s, setActiveBlock: a } = F();
1579
- function l(i, d) {
1580
- s(d, i);
1569
+ }, So = "_wrapper_1j33r_1", Ao = "_open_1j33r_16", Po = "_close_1j33r_20", Io = "_header_1j33r_24", Mo = "_title_1j33r_31", Eo = "_options_1j33r_37", Fo = "_clicked_1j33r_44", To = "_label_1j33r_48", Oo = "_alignments_1j33r_55", Lo = "_blocks_1j33r_61", zo = "_alignment_1j33r_55", Do = "_active_1j33r_75", O = {
1570
+ wrapper: So,
1571
+ open: Ao,
1572
+ close: Po,
1573
+ header: Io,
1574
+ title: Mo,
1575
+ options: Eo,
1576
+ clicked: Fo,
1577
+ label: To,
1578
+ alignments: Oo,
1579
+ blocks: Lo,
1580
+ alignment: zo,
1581
+ active: Do
1582
+ }, Ho = ["left", "center", "right"], De = () => {
1583
+ const { activeBlock: t, themeSettings: n, updateButton: s, setActiveBlock: o } = T();
1584
+ function l(i, r) {
1585
+ s(r, i);
1581
1586
  }
1582
- function c() {
1583
- a(null);
1587
+ function a() {
1588
+ o(null);
1584
1589
  }
1585
- const o = x.useMemo(() => n.buttons, [n]);
1590
+ const c = x.useMemo(() => n.buttons, [n]);
1586
1591
  return /* @__PURE__ */ e.jsxs(
1587
1592
  "div",
1588
1593
  {
@@ -1597,36 +1602,36 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1597
1602
  {
1598
1603
  name: "arrow-left",
1599
1604
  hoverable: !0,
1600
- onClick: c
1605
+ onClick: a
1601
1606
  }
1602
1607
  ),
1603
1608
  /* @__PURE__ */ e.jsx("span", { className: O.title, children: "Buttons Style" })
1604
1609
  ] }),
1605
- o && /* @__PURE__ */ e.jsxs("div", { className: O.options, children: [
1610
+ c && /* @__PURE__ */ e.jsxs("div", { className: O.options, children: [
1606
1611
  /* @__PURE__ */ e.jsx(
1607
- I,
1612
+ F,
1608
1613
  {
1609
1614
  label: "Height (px)",
1610
- value: String(o.height),
1615
+ value: String(c.height),
1611
1616
  onChange: (i) => l(i, "height"),
1612
1617
  type: "number",
1613
1618
  min: 0
1614
1619
  }
1615
1620
  ),
1616
1621
  /* @__PURE__ */ e.jsx(
1617
- ne,
1622
+ oe,
1618
1623
  {
1619
1624
  label: "Font Size (px)",
1620
- value: String(o.size),
1625
+ value: String(c.size),
1621
1626
  onChange: (i) => l(i, "size"),
1622
- options: ge
1627
+ options: pe
1623
1628
  }
1624
1629
  ),
1625
1630
  /* @__PURE__ */ e.jsx(
1626
- I,
1631
+ F,
1627
1632
  {
1628
1633
  label: "Border Radius (px)",
1629
- value: String(o.radius),
1634
+ value: String(c.radius),
1630
1635
  onChange: (i) => l(Number(i), "radius"),
1631
1636
  type: "number",
1632
1637
  min: 0
@@ -1634,11 +1639,11 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1634
1639
  ),
1635
1640
  /* @__PURE__ */ e.jsxs("div", { className: O.alignments, children: [
1636
1641
  /* @__PURE__ */ e.jsx("h4", { className: O.label, children: "Alignment Type" }),
1637
- /* @__PURE__ */ e.jsx("div", { className: O.blocks, children: zo.map((i) => /* @__PURE__ */ e.jsx(
1642
+ /* @__PURE__ */ e.jsx("div", { className: O.blocks, children: Ho.map((i) => /* @__PURE__ */ e.jsx(
1638
1643
  "div",
1639
1644
  {
1640
1645
  className: C(O.alignment, {
1641
- [O.active]: o.alignment === i
1646
+ [O.active]: c.alignment === i
1642
1647
  }),
1643
1648
  onClick: () => {
1644
1649
  l(i, "alignment");
@@ -1647,7 +1652,7 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1647
1652
  _,
1648
1653
  {
1649
1654
  name: `align-${i}`,
1650
- fill: o.alignment === i ? "#252525" : "#757575"
1655
+ fill: c.alignment === i ? "#252525" : "#757575"
1651
1656
  }
1652
1657
  )
1653
1658
  },
@@ -1658,48 +1663,48 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1658
1663
  ]
1659
1664
  }
1660
1665
  );
1661
- }, Do = () => {
1662
- const { activeBlock: t } = F();
1666
+ }, Ro = () => {
1667
+ const { activeBlock: t } = T();
1663
1668
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1664
- (t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ e.jsx(vo, {}),
1665
- (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(Oe, {}),
1666
- (t == null ? void 0 : t.name) === "Buttons" && /* @__PURE__ */ e.jsx(Le, {})
1669
+ (t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ e.jsx(fo, {}),
1670
+ (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(ze, {}),
1671
+ (t == null ? void 0 : t.name) === "Buttons" && /* @__PURE__ */ e.jsx(De, {})
1667
1672
  ] });
1668
- }, Ho = () => {
1669
- const { activeBlock: t, setActiveBlock: n } = F(), { activeBlock: s } = pe();
1670
- function a() {
1673
+ }, qo = () => {
1674
+ const { activeBlock: t, setActiveBlock: n } = T(), { activeBlock: s } = xe();
1675
+ function o() {
1671
1676
  n(null);
1672
1677
  }
1673
1678
  return /* @__PURE__ */ e.jsxs(
1674
1679
  "div",
1675
1680
  {
1676
- className: C(ae.settings, {
1677
- [ae.open]: t,
1678
- [ae.close]: !t || s.name !== "Theme"
1681
+ className: C(ce.settings, {
1682
+ [ce.open]: t,
1683
+ [ce.close]: !t || s.name !== "Theme"
1679
1684
  }),
1680
1685
  children: [
1681
- /* @__PURE__ */ e.jsxs("div", { className: ae.header, children: [
1686
+ /* @__PURE__ */ e.jsxs("div", { className: ce.header, children: [
1682
1687
  /* @__PURE__ */ e.jsx(
1683
1688
  _,
1684
1689
  {
1685
1690
  name: "arrow-left",
1686
1691
  hoverable: !0,
1687
- onClick: a
1692
+ onClick: o
1688
1693
  }
1689
1694
  ),
1690
- /* @__PURE__ */ e.jsx("span", { className: ae.title, children: t == null ? void 0 : t.name })
1695
+ /* @__PURE__ */ e.jsx("span", { className: ce.title, children: t == null ? void 0 : t.name })
1691
1696
  ] }),
1692
- (t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ e.jsx(uo, {}),
1693
- (t == null ? void 0 : t.name) === "Colors" && /* @__PURE__ */ e.jsx(Tn, {}),
1694
- (t == null ? void 0 : t.name) === "Inputs" && /* @__PURE__ */ e.jsx(Wn, {}),
1695
- (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(Oe, {}),
1696
- (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(Le, {}),
1697
- /* @__PURE__ */ e.jsx(Do, {})
1697
+ (t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ e.jsx(ho, {}),
1698
+ (t == null ? void 0 : t.name) === "Colors" && /* @__PURE__ */ e.jsx(Ln, {}),
1699
+ (t == null ? void 0 : t.name) === "Inputs" && /* @__PURE__ */ e.jsx(to, {}),
1700
+ (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(ze, {}),
1701
+ (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(De, {}),
1702
+ /* @__PURE__ */ e.jsx(Ro, {})
1698
1703
  ]
1699
1704
  }
1700
1705
  );
1701
- }, Ro = () => {
1702
- const { activeBlock: t } = pe(), { activeBlock: n } = K();
1706
+ }, Yo = () => {
1707
+ const { activeBlock: t } = xe(), { activeBlock: n } = K();
1703
1708
  function s() {
1704
1709
  switch (t.name) {
1705
1710
  case "Layers":
@@ -1712,81 +1717,81 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1712
1717
  return "Settings";
1713
1718
  }
1714
1719
  }
1715
- return /* @__PURE__ */ e.jsxs("div", { className: Se.sidebar, children: [
1716
- /* @__PURE__ */ e.jsx("h3", { className: Se.title, children: s() }),
1717
- t.name === "Layers" && /* @__PURE__ */ e.jsx(nn, {}),
1718
- t.name === "Add" && /* @__PURE__ */ e.jsx(Te, {}),
1719
- /* @__PURE__ */ e.jsx(wn, { isAdd: !!n }),
1720
- /* @__PURE__ */ e.jsx(Ho, {}),
1721
- t.name === "Theme" && /* @__PURE__ */ e.jsx(dn, {}),
1722
- t.name === "Settings" && /* @__PURE__ */ e.jsx(an, {})
1720
+ return /* @__PURE__ */ e.jsxs("div", { className: Ae.sidebar, children: [
1721
+ /* @__PURE__ */ e.jsx("h3", { className: Ae.title, children: s() }),
1722
+ t.name === "Layers" && /* @__PURE__ */ e.jsx(an, {}),
1723
+ t.name === "Add" && /* @__PURE__ */ e.jsx(Le, {}),
1724
+ /* @__PURE__ */ e.jsx(Nn, { isAdd: !!n }),
1725
+ /* @__PURE__ */ e.jsx(qo, {}),
1726
+ t.name === "Theme" && /* @__PURE__ */ e.jsx(mn, {}),
1727
+ t.name === "Settings" && /* @__PURE__ */ e.jsx(ln, {})
1723
1728
  ] });
1724
- }, qo = "_wrapper_jjfwh_1", Yo = "_header_jjfwh_12", Qo = "_content_jjfwh_21", Uo = "_buttons_jjfwh_29", Go = "_cancel_jjfwh_35", Jo = "_label_jjfwh_40", Xo = "_description_jjfwh_41", Zo = "_preview_jjfwh_49", Vo = "_block_jjfwh_55", Ko = "_slug_jjfwh_63", Wo = "_title_jjfwh_69", L = {
1725
- wrapper: qo,
1726
- header: Yo,
1727
- content: Qo,
1728
- buttons: Uo,
1729
- cancel: Go,
1730
- label: Jo,
1731
- description: Xo,
1732
- preview: Zo,
1733
- block: Vo,
1734
- slug: Ko,
1735
- title: Wo
1736
- }, ea = () => {
1737
- var M, G, h, b, f, N;
1729
+ }, Uo = "_wrapper_jjfwh_1", Qo = "_header_jjfwh_12", Go = "_content_jjfwh_21", Jo = "_buttons_jjfwh_29", Xo = "_cancel_jjfwh_35", Zo = "_label_jjfwh_40", Vo = "_description_jjfwh_41", Ko = "_preview_jjfwh_49", Wo = "_block_jjfwh_55", ea = "_slug_jjfwh_63", ta = "_title_jjfwh_69", L = {
1730
+ wrapper: Uo,
1731
+ header: Qo,
1732
+ content: Go,
1733
+ buttons: Jo,
1734
+ cancel: Xo,
1735
+ label: Zo,
1736
+ description: Vo,
1737
+ preview: Ko,
1738
+ block: Wo,
1739
+ slug: ea,
1740
+ title: ta
1741
+ }, sa = () => {
1742
+ var M, G, h, k, b, $;
1738
1743
  const {
1739
1744
  setIsOpenModal: t,
1740
1745
  pages: n,
1741
1746
  createPage: s,
1742
- updatePage: a,
1747
+ updatePage: o,
1743
1748
  isEdit: l,
1744
- setIsEdit: c,
1745
- editedPage: o,
1749
+ setIsEdit: a,
1750
+ editedPage: c,
1746
1751
  setEditedPage: i
1747
- } = B(), { createPage: d, updatePage: w } = $(), [g, u] = x.useState(o ? (M = n[o]) == null ? void 0 : M.path : ""), [m, r] = x.useState(o ? (G = n[o]) == null ? void 0 : G.name : ""), [j, p] = x.useState(
1748
- o ? (h = n[o]) == null ? void 0 : h.seo.description : ""
1749
- ), [v, y] = x.useState(
1750
- o ? (b = n[o]) == null ? void 0 : b.visibility : "public"
1752
+ } = S(), { createPage: r, updatePage: f } = B(), [p, u] = x.useState(c ? (M = n[c]) == null ? void 0 : M.path : ""), [m, d] = x.useState(c ? (G = n[c]) == null ? void 0 : G.name : ""), [j, g] = x.useState(
1753
+ c ? (h = n[c]) == null ? void 0 : h.seo.description : ""
1754
+ ), [v, N] = x.useState(
1755
+ c ? (k = n[c]) == null ? void 0 : k.visibility : "public"
1751
1756
  );
1752
- function T() {
1753
- u(""), r(""), p(""), y("public"), c(!1), i(null);
1757
+ function y() {
1758
+ u(""), d(""), g(""), N("public"), a(!1), i(null);
1754
1759
  }
1755
- function S() {
1756
- T(), t(!1);
1760
+ function A() {
1761
+ y(), t(!1);
1757
1762
  }
1758
- function D(k) {
1759
- return k[0] === "/" ? k : "/" + k;
1763
+ function D(w) {
1764
+ return w[0] === "/" ? w : "/" + w;
1760
1765
  }
1761
- function A() {
1766
+ function P() {
1762
1767
  s({
1763
- path: D(g),
1764
- name: m || g,
1768
+ path: D(p),
1769
+ name: m || p,
1765
1770
  icon: "file",
1766
1771
  seo: {
1767
1772
  title: m,
1768
1773
  description: j
1769
1774
  },
1770
1775
  visibility: v
1771
- }), d(m), S();
1776
+ }), r(m), A();
1772
1777
  }
1773
- function P() {
1774
- w(n[o].name, m || g), a(o, {
1775
- path: D(g),
1776
- name: m || g,
1777
- icon: n[o].icon || "file",
1778
+ function I() {
1779
+ f(n[c].name, m || p), o(c, {
1780
+ path: D(p),
1781
+ name: m || p,
1782
+ icon: n[c].icon || "file",
1778
1783
  seo: {
1779
1784
  title: m,
1780
1785
  description: j
1781
1786
  },
1782
1787
  visibility: v
1783
- }), S();
1788
+ }), A();
1784
1789
  }
1785
1790
  return /* @__PURE__ */ e.jsxs(
1786
1791
  "div",
1787
1792
  {
1788
1793
  className: L.wrapper,
1789
- onClick: (k) => k.stopPropagation(),
1794
+ onClick: (w) => w.stopPropagation(),
1790
1795
  children: [
1791
1796
  /* @__PURE__ */ e.jsxs("div", { className: L.header, children: [
1792
1797
  /* @__PURE__ */ e.jsxs("h2", { children: [
@@ -1799,45 +1804,45 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1799
1804
  name: "x",
1800
1805
  fill: "#757575",
1801
1806
  hoverable: !0,
1802
- onClick: S
1807
+ onClick: A
1803
1808
  }
1804
1809
  )
1805
1810
  ] }),
1806
1811
  /* @__PURE__ */ e.jsxs("div", { className: L.content, children: [
1807
1812
  /* @__PURE__ */ e.jsx(
1808
- I,
1813
+ F,
1809
1814
  {
1810
1815
  label: "Page Slug",
1811
- onChange: (k) => u(k),
1812
- value: g,
1816
+ onChange: (w) => u(w),
1817
+ value: p,
1813
1818
  placeholder: "path-to-page",
1814
- disabled: !!(o && ((f = n[o]) != null && f.name) && le.includes(n[o].name)),
1819
+ disabled: !!(c && ((b = n[c]) != null && b.name) && ie.includes(n[c].name)),
1815
1820
  required: !0,
1816
1821
  regex: "^.+$"
1817
1822
  }
1818
1823
  ),
1819
1824
  /* @__PURE__ */ e.jsx(
1820
- I,
1825
+ F,
1821
1826
  {
1822
1827
  label: "Page Title",
1823
- onChange: (k) => r(k),
1828
+ onChange: (w) => d(w),
1824
1829
  value: m,
1825
1830
  placeholder: "Contact us",
1826
- disabled: !!(o && ((N = n[o]) != null && N.name) && le.includes(n[o].name))
1831
+ disabled: !!(c && (($ = n[c]) != null && $.name) && ie.includes(n[c].name))
1827
1832
  }
1828
1833
  ),
1829
1834
  /* @__PURE__ */ e.jsx(
1830
- Xe,
1835
+ Ve,
1831
1836
  {
1832
1837
  label: "Description",
1833
- onChange: (k) => p(k),
1838
+ onChange: (w) => g(w),
1834
1839
  value: j,
1835
1840
  placeholder: "Contact us at any time of the day or night. You are always welcome",
1836
1841
  maxLength: 150
1837
1842
  }
1838
1843
  ),
1839
1844
  /* @__PURE__ */ e.jsx(
1840
- Ze,
1845
+ Ke,
1841
1846
  {
1842
1847
  label: "Visibility",
1843
1848
  defaultValue: v,
@@ -1851,13 +1856,13 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1851
1856
  label: "Private"
1852
1857
  }
1853
1858
  ],
1854
- onChange: (k) => y(k)
1859
+ onChange: (w) => N(w)
1855
1860
  }
1856
1861
  ),
1857
1862
  /* @__PURE__ */ e.jsxs("div", { className: L.preview, children: [
1858
1863
  /* @__PURE__ */ e.jsx("span", { className: L.label, children: "Preview" }),
1859
1864
  /* @__PURE__ */ e.jsxs("div", { className: L.block, children: [
1860
- /* @__PURE__ */ e.jsx("span", { className: L.slug, children: g || "yoursite.url" }),
1865
+ /* @__PURE__ */ e.jsx("span", { className: L.slug, children: p || "yoursite.url" }),
1861
1866
  /* @__PURE__ */ e.jsx("span", { className: L.title, children: m || "My Blank Page" }),
1862
1867
  /* @__PURE__ */ e.jsx("span", { className: L.description, children: j || "It is My Description" })
1863
1868
  ] })
@@ -1868,15 +1873,15 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1868
1873
  X,
1869
1874
  {
1870
1875
  className: L.cancel,
1871
- onClick: S,
1876
+ onClick: A,
1872
1877
  children: "Cancel"
1873
1878
  }
1874
1879
  ),
1875
1880
  /* @__PURE__ */ e.jsx(
1876
1881
  X,
1877
1882
  {
1878
- onClick: l ? P : A,
1879
- disabled: g.length === 0,
1883
+ onClick: l ? I : P,
1884
+ disabled: p.length === 0,
1880
1885
  children: l ? "Update" : "Create"
1881
1886
  }
1882
1887
  )
@@ -1884,59 +1889,94 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1884
1889
  ]
1885
1890
  }
1886
1891
  );
1887
- }, ta = "_layout_kjedu_1", sa = "_main_kjedu_8", na = "_content_kjedu_15", be = {
1888
- layout: ta,
1889
- main: sa,
1890
- content: na
1891
- }, oa = () => {
1892
- const { isOpenModal: t, setIsOpenModal: n } = B(), { openModal: s, setOpenModal: a } = Ve();
1892
+ }, na = "_layout_kjedu_1", oa = "_main_kjedu_8", aa = "_content_kjedu_15", ke = {
1893
+ layout: na,
1894
+ main: oa,
1895
+ content: aa
1896
+ }, ca = () => {
1897
+ const { isOpenModal: t, setIsOpenModal: n } = S(), { openModal: s, setOpenModal: o } = We();
1893
1898
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1894
- /* @__PURE__ */ e.jsxs("div", { className: be.layout, children: [
1895
- /* @__PURE__ */ e.jsx(Qt, {}),
1896
- /* @__PURE__ */ e.jsxs("main", { className: be.main, children: [
1897
- /* @__PURE__ */ e.jsx(Ot, {}),
1898
- /* @__PURE__ */ e.jsxs("div", { className: be.content, children: [
1899
- /* @__PURE__ */ e.jsx(Ro, {}),
1900
- /* @__PURE__ */ e.jsx(Os, {})
1899
+ /* @__PURE__ */ e.jsxs("div", { className: ke.layout, children: [
1900
+ /* @__PURE__ */ e.jsx(Gt, {}),
1901
+ /* @__PURE__ */ e.jsxs("main", { className: ke.main, children: [
1902
+ /* @__PURE__ */ e.jsx(zt, {}),
1903
+ /* @__PURE__ */ e.jsxs("div", { className: ke.content, children: [
1904
+ /* @__PURE__ */ e.jsx(Yo, {}),
1905
+ /* @__PURE__ */ e.jsx(zs, {})
1901
1906
  ] })
1902
1907
  ] })
1903
1908
  ] }),
1904
- t && /* @__PURE__ */ e.jsx(Ne, { close: n, children: /* @__PURE__ */ e.jsx(ea, {}) }),
1905
- s && /* @__PURE__ */ e.jsx(Ne, { close: a, children: /* @__PURE__ */ e.jsx(Ke, {}) })
1909
+ t && /* @__PURE__ */ e.jsx(ye, { close: n, children: /* @__PURE__ */ e.jsx(sa, {}) }),
1910
+ s && /* @__PURE__ */ e.jsx(ye, { close: o, children: /* @__PURE__ */ e.jsx(et, {}) })
1906
1911
  ] });
1907
1912
  };
1908
- async function aa() {
1913
+ async function se(t, n) {
1914
+ const s = localStorage.getItem("shopId") || void 0, o = `${nt}/${t}/builder/shops/${s}/${n}`, l = localStorage.getItem("accessToken") || void 0;
1915
+ return (await Fe.get(o, {
1916
+ headers: {
1917
+ Authorization: `Bearer ${l}`
1918
+ }
1919
+ })).data;
1920
+ }
1921
+ async function la() {
1909
1922
  try {
1910
- const { data: t } = await We.get(
1911
- `${st}?key=undefined`
1923
+ const [t, n, s, o, l, a] = await Promise.allSettled([
1924
+ se("v1", "general"),
1925
+ se("v1", "faqs"),
1926
+ se("v1", "listings"),
1927
+ se("v1", "products"),
1928
+ se("v1", "reviews"),
1929
+ se("v1", "categories")
1930
+ ]);
1931
+ return {
1932
+ general: t,
1933
+ faqs: n,
1934
+ listings: s,
1935
+ products: o,
1936
+ reviews: l,
1937
+ categories: a
1938
+ };
1939
+ } catch (t) {
1940
+ throw console.error("Error fetching page data:", t), t;
1941
+ }
1942
+ }
1943
+ async function ia() {
1944
+ try {
1945
+ const { data: t } = await Fe.get(
1946
+ `${ot}?key=undefined`
1912
1947
  );
1913
1948
  return t.items;
1914
1949
  } catch (t) {
1915
1950
  throw console.error("Error fetching page data:", t), t;
1916
1951
  }
1917
1952
  }
1918
- const ia = (t) => {
1919
- const { blocks: n, settings: s, header: a, footer: l } = t, { setBlocks: c, setSourceBlocks: o } = K(), { fonts: i, setFonts: d } = Ee(), { setSettings: w } = V(), { setPageContext: g } = B(), { setHeader: u, setFooter: m } = $();
1953
+ const ua = (t) => {
1954
+ const { blocks: n, settings: s, header: o, footer: l } = t, { setBlocks: a, setSourceBlocks: c } = K(), { fonts: i, setFonts: r } = Ee(), { setSettings: f } = V(), { setPageContext: p } = S(), { setHeader: u, setFooter: m } = B();
1920
1955
  return x.useEffect(() => {
1921
- const r = {};
1922
- Object.keys(n).map((p) => {
1923
- r[p] = n[p];
1924
- }), o(r), c(r), u(a), m(l), w(s), (async () => {
1956
+ const d = {};
1957
+ Object.keys(n).map((g) => {
1958
+ d[g] = n[g];
1959
+ }), c(d), a(d), u(o), m(l), f(s), (async () => {
1925
1960
  if (i.length === 0) {
1926
- const v = await aa();
1927
- d([...v.map((y) => y.family)]);
1961
+ const N = await ia();
1962
+ r([...N.map((y) => y.family)]);
1928
1963
  }
1929
- g({
1930
- listings: void 0,
1931
- products: void 0,
1932
- reviews: void 0,
1933
- categories: void 0,
1934
- faqs: void 0,
1935
- general: void 0
1936
- });
1964
+ let g = {
1965
+ listings: [],
1966
+ products: [],
1967
+ reviews: [],
1968
+ categories: [],
1969
+ faqs: [],
1970
+ general: []
1971
+ };
1972
+ const v = await la();
1973
+ Object.keys(v).map((N) => {
1974
+ const y = N;
1975
+ g[y] = v[y].value.data;
1976
+ }), p(g);
1937
1977
  })();
1938
- }, []), /* @__PURE__ */ e.jsx(oa, {});
1978
+ }, []), /* @__PURE__ */ e.jsx(ca, {});
1939
1979
  };
1940
1980
  export {
1941
- ia as Builder
1981
+ ua as Builder
1942
1982
  };