@billgangcom/theme-lib 1.8.1 → 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_14yda_1{display:flex;align-items:center;gap:8px;padding-bottom:8px}._render_14yda_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_14yda_23{animation:.2s _open_14yda_23 forwards}@keyframes _open_14yda_23{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_14yda_50{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_14yda_50{animation:.2s _close_14yda_50 forwards}._clicked_14yda_54{opacity:0}._title_14yda_58{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px}._button_14yda_65{align-self:center;flex:1}._loading_14yda_70{flex:1 1 auto}._settings_14yda_74{flex:1 1 auto;overflow-y:scroll;overflow-x:hidden}._buttons_14yda_80{justify-content:space-between;display:flex;gap:10px}._deleteButton_14yda_86{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_14yda_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 h, k as De, c as w, l as V, m as A, n as $, o as le, B as Z, p as F, q as K, r as He, s as ge, t as J, w as Re, x as fe, y as Me, z, e as ke, D as qe, H as Ye, u as Qe, d as Ue, f as ce, g as Ge, a as E, b as ne, A as pe, S as we, P as ye, E as Ee, F as Je, T as Xe, R as Ze, G as Ve, M as Ce, i as Ke, J as We } from "./index-C6aV8YdJ.js";
3
- import v, { useMemo as Fe } 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,12 +22,12 @@ 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
- h,
30
+ _,
31
31
  {
32
32
  name: "undo",
33
33
  hoverable: !0,
@@ -36,7 +36,7 @@ const et = ["desktop", "tablet", "mobile"], tt = [
36
36
  }
37
37
  ),
38
38
  /* @__PURE__ */ e.jsx(
39
- h,
39
+ _,
40
40
  {
41
41
  name: "redo",
42
42
  hoverable: !0,
@@ -44,21 +44,21 @@ 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: w(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(
61
- h,
61
+ _,
62
62
  {
63
63
  name: s,
64
64
  fill: t === s ? "#252525" : "#757575",
@@ -69,43 +69,43 @@ 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", pt = "_active_vijvm_22", je = {
77
- preview: _t,
78
- active: pt
79
- }, gt = () => {
80
- const { onPreview: t, setOnPreview: n } = V();
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
+ const { onPreview: t, setOnPreview: n } = Z();
81
81
  return /* @__PURE__ */ e.jsxs(
82
82
  "div",
83
83
  {
84
- className: w(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: [
89
89
  /* @__PURE__ */ e.jsx(
90
- h,
90
+ _,
91
91
  {
92
92
  name: "arrow-up-right",
93
93
  width: 20,
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", Ne = {
104
- language: vt,
105
- text: bt
106
- }, ft = () => /* @__PURE__ */ e.jsxs("div", { className: Ne.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
- h,
108
+ _,
109
109
  {
110
110
  name: "globe",
111
111
  fill: "#252525",
@@ -113,64 +113,64 @@ const et = ["desktop", "tablet", "mobile"], tt = [
113
113
  height: 20
114
114
  }
115
115
  ),
116
- /* @__PURE__ */ e.jsx("span", { className: Ne.text, children: "Default" }),
116
+ /* @__PURE__ */ e.jsx("span", { className: $e.text, children: "Default" }),
117
117
  /* @__PURE__ */ e.jsx(
118
- h,
118
+ _,
119
119
  {
120
120
  name: "arrow-down",
121
121
  width: 20,
122
122
  height: 20
123
123
  }
124
124
  )
125
- ] }), kt = "_pages_x8pw2_1", wt = "_text_x8pw2_16", yt = "_modal_x8pw2_22", Ct = "_page_x8pw2_1", Nt = "_hoverable_x8pw2_45", $t = "_separator_x8pw2_49", Bt = "_button_x8pw2_53", q = {
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,
128
+ text: Nt,
129
129
  modal: yt,
130
- page: Ct,
131
- hoverable: Nt,
132
- separator: $t,
133
- button: Bt
134
- }, O = (t) => t ? t.replace(/_/g, " ").split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" and ") : "", St = () => {
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
- } = A(), { deletePage: b } = $(), [g, r] = v.useState("");
146
- return v.useEffect(() => {
147
- const u = () => {
148
- d(!1);
144
+ setIsOpenSelectModal: r
145
+ } = S(), { deletePage: f } = B(), [p, u] = x.useState("");
146
+ return x.useEffect(() => {
147
+ const m = () => {
148
+ r(!1);
149
149
  };
150
- return document.body.addEventListener("click", u), () => {
151
- document.body.removeEventListener("click", u);
150
+ return document.body.addEventListener("click", m), () => {
151
+ document.body.removeEventListener("click", m);
152
152
  };
153
- }, []), /* @__PURE__ */ e.jsxs("div", { className: q.pages, children: [
153
+ }, []), /* @__PURE__ */ e.jsxs("div", { className: Y.pages, children: [
154
154
  /* @__PURE__ */ e.jsxs(
155
155
  "div",
156
156
  {
157
- className: q.default,
158
- onClick: (u) => {
159
- u.stopPropagation(), d(!i);
157
+ className: Y.default,
158
+ onClick: (m) => {
159
+ m.stopPropagation(), r(!i);
160
160
  },
161
161
  children: [
162
162
  /* @__PURE__ */ e.jsx(
163
- h,
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: q.text, children: le.includes(a[t].name) ? `${O(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
- h,
173
+ _,
174
174
  {
175
175
  name: "arrow-down",
176
176
  width: 20,
@@ -183,55 +183,55 @@ const et = ["desktop", "tablet", "mobile"], tt = [
183
183
  i && /* @__PURE__ */ e.jsxs(
184
184
  "div",
185
185
  {
186
- className: q.modal,
187
- onClick: (u) => u.stopPropagation(),
186
+ className: Y.modal,
187
+ onClick: (m) => m.stopPropagation(),
188
188
  children: [
189
- Object.keys(a).map((u) => {
190
- const p = a[u];
189
+ Object.keys(o).map((m) => {
190
+ const d = o[m];
191
191
  return /* @__PURE__ */ e.jsxs(
192
192
  "div",
193
193
  {
194
- className: w(q.page, {
195
- [q.hoverable]: g === u
194
+ className: C(Y.page, {
195
+ [Y.hoverable]: p === m
196
196
  }),
197
- onMouseEnter: () => r(u),
198
- onMouseLeave: () => r(""),
197
+ onMouseEnter: () => u(m),
198
+ onMouseLeave: () => u(""),
199
199
  onClick: () => {
200
- r(""), l(!1), n(u), d(!1);
200
+ u(""), l(!1), n(m), r(!1);
201
201
  },
202
202
  children: [
203
203
  /* @__PURE__ */ e.jsx(
204
- h,
204
+ _,
205
205
  {
206
- name: p.icon,
206
+ name: d.icon,
207
207
  fill: "#252525"
208
208
  }
209
209
  ),
210
- /* @__PURE__ */ e.jsx("span", { className: q.text, children: le.includes(p.name) ? `${O(p.name)} page` : p.name }),
211
- g === u && /* @__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
- h,
213
+ _,
214
214
  {
215
215
  name: "settings",
216
216
  fill: "#757575",
217
- onClick: (x) => {
218
- x.stopPropagation(), l(!0), c(u), s(!0);
217
+ onClick: (j) => {
218
+ j.stopPropagation(), l(!0), a(m), s(!0);
219
219
  }
220
220
  }
221
221
  ),
222
- !le.includes(p.name) && /* @__PURE__ */ e.jsx(
223
- h,
222
+ !ie.includes(d.name) && /* @__PURE__ */ e.jsx(
223
+ _,
224
224
  {
225
225
  name: "trash",
226
226
  fill: "#C12A2A",
227
- onClick: (x) => {
228
- a[t].name === p.name && n("home"), x.stopPropagation(), o(u), b(p.name);
227
+ onClick: (j) => {
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 === p.name && /* @__PURE__ */ e.jsx(
234
- h,
233
+ o[t].name === d.name && /* @__PURE__ */ e.jsx(
234
+ _,
235
235
  {
236
236
  name: "check",
237
237
  fill: "#FF3F19"
@@ -239,21 +239,21 @@ const et = ["desktop", "tablet", "mobile"], tt = [
239
239
  )
240
240
  ]
241
241
  },
242
- u
242
+ m
243
243
  );
244
244
  }),
245
- /* @__PURE__ */ e.jsx("div", { className: q.separator }),
245
+ /* @__PURE__ */ e.jsx("div", { className: Y.separator }),
246
246
  /* @__PURE__ */ e.jsxs(
247
- Z,
247
+ X,
248
248
  {
249
- className: q.button,
250
- onClick: (u) => {
251
- u.stopPropagation(), s(!0);
249
+ className: Y.button,
250
+ onClick: (m) => {
251
+ m.stopPropagation(), s(!0);
252
252
  },
253
253
  size: "l",
254
254
  children: [
255
255
  /* @__PURE__ */ e.jsx(
256
- h,
256
+ _,
257
257
  {
258
258
  name: "plus",
259
259
  fill: "#ff3f19"
@@ -267,17 +267,17 @@ const et = ["desktop", "tablet", "mobile"], tt = [
267
267
  }
268
268
  )
269
269
  ] });
270
- }, At = "_zoom_a77cn_1", Pt = {
271
- zoom: At
272
- }, Mt = () => {
273
- const [t, n] = v.useState(), s = () => {
270
+ }, It = "_zoom_a77cn_1", Mt = {
271
+ zoom: It
272
+ }, Et = () => {
273
+ const [t, n] = x.useState(), s = () => {
274
274
  n(Number(Math.round(window.devicePixelRatio * 50).toFixed(0)));
275
275
  };
276
- return v.useEffect(() => (s(), window.addEventListener("resize", s), () => {
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
- h,
280
+ _,
281
281
  {
282
282
  name: "zoom-minus",
283
283
  width: 20,
@@ -289,15 +289,15 @@ 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
- ] }), Ft = "_theme_3wxbf_1", Tt = {
297
- theme: Ft
298
- }, It = () => /* @__PURE__ */ e.jsxs("div", { className: Tt.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
- h,
300
+ _,
301
301
  {
302
302
  name: "check",
303
303
  width: 18,
@@ -305,159 +305,160 @@ 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 } = K(), [s, a] = v.useState(null), [l, c] = v.useState(!1), { pages: o } = A(), { blocks: i } = $();
310
- function d(p, x) {
311
- return x.map(
312
- (j) => Object.values(j.value).filter((S) => S.type === p).map((S) => S.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 b(p, x) {
316
- return d(p, x).some((j) => j);
316
+ function f(d, j) {
317
+ return r(d, j).some((v) => v);
317
318
  }
318
- function g(p, x) {
319
- const _ = d(p, x);
320
- return Array.isArray(_) && _.length > 0 ? Math.max(..._) : 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 r(p) {
323
- const x = Object.keys(o).find((_) => o[_].name === p);
324
- return x ? o[x] : 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
- const u = () => {
327
+ const m = () => {
327
328
  if (l)
328
329
  s && clearTimeout(s);
329
330
  else {
330
- const x = Object.keys(i).map((_) => {
331
- const j = r(_);
331
+ const j = Object.keys(i).map((g) => {
332
+ const v = u(g);
332
333
  return {
333
- name: j ? j.name : _,
334
- path: _ === "home" ? "/" : (j == null ? void 0 : j.path) || _,
334
+ name: v ? v.name : g,
335
+ path: g === "home" ? "/" : (v == null ? void 0 : v.path) || g,
335
336
  layout: {
336
- ...i[_]
337
+ ...i[g]
337
338
  },
338
- neededProductIds: [...d("ProductId", Object.values(i[_]))],
339
- neededCategoryIds: [...d("CategoryId", Object.values(i[_]))],
340
- neededAnnouncementIds: [...d("AnnouncementId", Object.values(i[_]))],
341
- neededListingIds: [...d("ListingId", Object.values(i[_]))],
342
- neededFaqs: b("Faqs", Object.values(i[_])),
343
- neededReviewCount: g("ReviewCount", Object.values(i[_])),
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
- pageTitle: j ? j.seo.title : "",
346
- pageDescription: j ? j.seo.description : ""
346
+ pageTitle: v ? v.seo.title : "",
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
- updatedPages: x
354
+ updatedPages: j
354
355
  });
355
356
  }
356
- c(!0);
357
- const p = setTimeout(() => {
358
- c(!1);
357
+ a(!0);
358
+ const d = setTimeout(() => {
359
+ a(!1);
359
360
  }, 2e3);
360
- a(p);
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(gt, {})
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(It, {}),
370
- /* @__PURE__ */ e.jsx(ct, {}),
371
- /* @__PURE__ */ e.jsx(Z, { onClick: u, children: "Save" })
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, {}),
372
+ /* @__PURE__ */ e.jsx(X, { onClick: m, children: "Save" })
372
373
  ] })
373
374
  ] });
374
- }, Lt = "_exit_2ce42_1", zt = "_text_2ce42_10", $e = {
375
- exit: Lt,
376
- text: zt
377
- }, Dt = () => /* @__PURE__ */ e.jsxs("div", { className: $e.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
- h,
380
+ _,
380
381
  {
381
382
  name: "sign-out",
382
383
  width: 20,
383
384
  height: 20
384
385
  }
385
386
  ),
386
- /* @__PURE__ */ e.jsx("span", { className: $e.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 } = ge(), { setActiveBlock: s } = J(), { 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: w(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
- h,
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", Y = {
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: Y.header, children: [
438
- /* @__PURE__ */ e.jsx("div", { className: Y.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: w(Y.circle, {
442
- [Y.red]: t === "red",
443
- [Y.yellow]: t === "yellow",
444
- [Y.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: Y.input, children: [
450
- /* @__PURE__ */ e.jsxs("div", { className: Y.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: Y.text, children: "lorem.ipsum" }),
459
+ /* @__PURE__ */ e.jsx("span", { className: U.text, children: "lorem.ipsum" }),
459
460
  /* @__PURE__ */ e.jsx(
460
- h,
461
+ _,
461
462
  {
462
463
  name: "lock",
463
464
  fill: "#757575",
@@ -467,7 +468,7 @@ const et = ["desktop", "tablet", "mobile"], tt = [
467
468
  )
468
469
  ] }),
469
470
  /* @__PURE__ */ e.jsx(
470
- h,
471
+ _,
471
472
  {
472
473
  name: "copy",
473
474
  width: 20,
@@ -475,68 +476,68 @@ 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", ps = "_icon_92dk8_42", gs = "_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: ps,
485
- title: gs,
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", ys = "_border_1f3hk_34", Cs = "_deleteButton_1f3hk_38", M = {
490
- sidebar: bs,
491
- content: fs,
492
- button: ks,
493
- moveButton: ws,
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,
494
495
  border: ys,
495
- deleteButton: Cs
496
- }, Ns = () => {
497
- const { activeBlock: t } = V(), { blocks: n, removeBlock: s, moveBlock: a, duplicateBlock: l } = $(), { currentPage: c, pages: o } = A(), i = Object.keys(n[o[c].name]), d = i.indexOf(t), b = () => {
498
- d > 0 && a(o[c].name, d, d - 1);
499
- }, g = () => {
500
- d < i.length - 1 && a(o[c].name, d, d + 1);
501
- }, r = () => {
502
- l(o[c].name, t);
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);
502
+ }, u = () => {
503
+ l(c[a].name, t);
503
504
  };
504
- return /* @__PURE__ */ e.jsx("div", { className: M.sidebar, children: /* @__PURE__ */ e.jsxs("div", { className: M.content, children: [
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: b,
509
- className: w(M.button, M.moveButton),
510
- disabled: d === 0,
511
- children: /* @__PURE__ */ e.jsx(h, { name: "arrow-preview-up" })
509
+ onClick: f,
510
+ className: C(E.button, E.moveButton),
511
+ disabled: r === 0,
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
- className: w(M.button, M.moveButton),
519
- disabled: d === i.length - 1,
520
- children: /* @__PURE__ */ e.jsx(h, { name: "arrow-preview-down" })
518
+ onClick: p,
519
+ className: C(E.button, E.moveButton),
520
+ disabled: r === i.length - 1,
521
+ children: /* @__PURE__ */ e.jsx(_, { name: "arrow-preview-down" })
521
522
  }
522
523
  ),
523
- /* @__PURE__ */ e.jsx("div", { className: M.border }),
524
+ /* @__PURE__ */ e.jsx("div", { className: E.border }),
524
525
  /* @__PURE__ */ e.jsx(
525
526
  "button",
526
527
  {
527
- onClick: r,
528
- className: w(M.button, M.moveButton),
529
- children: /* @__PURE__ */ e.jsx(h, { name: "copy" })
528
+ onClick: u,
529
+ className: C(E.button, E.moveButton),
530
+ children: /* @__PURE__ */ e.jsx(_, { name: "copy" })
530
531
  }
531
532
  ),
532
- /* @__PURE__ */ e.jsx("div", { className: M.border }),
533
+ /* @__PURE__ */ e.jsx("div", { className: E.border }),
533
534
  /* @__PURE__ */ e.jsx(
534
535
  "button",
535
536
  {
536
- onClick: () => s(o[c].name, t),
537
- className: w(M.button, M.deleteButton),
537
+ onClick: () => s(c[a].name, t),
538
+ className: C(E.button, E.deleteButton),
538
539
  children: /* @__PURE__ */ e.jsx(
539
- h,
540
+ _,
540
541
  {
541
542
  name: "trash",
542
543
  hoverable: !0
@@ -545,170 +546,168 @@ const et = ["desktop", "tablet", "mobile"], tt = [
545
546
  }
546
547
  )
547
548
  ] }) });
548
- }, Te = ({ render: t, block: n }) => t(n), $s = () => {
549
- const { footer: t } = $(), { settings: n } = K(), { pageContext: s } = A();
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 } = K(), { pageContext: s } = A();
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 = v.memo(() => {
555
- const { setActiveBlock: t, activeBlock: n } = V(), { blocks: s } = J(), { blocks: a } = $(), { settings: l } = K(), { currentPage: c, pages: o, setIsOpenSelectModal: i } = A(), d = (r) => {
556
- const u = s[r.name], p = r.value;
557
- for (const x in p)
558
- u[x] = p[x];
559
- return u.renderBlock(l);
560
- }, b = v.useRef(n);
561
- v.useEffect(() => {
562
- b.current = n;
563
- }, [n]), v.useEffect(() => {
564
- const r = () => {
565
- b.current && t(null);
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);
557
+ x.useEffect(() => {
558
+ r.current = n;
559
+ }, [n]), x.useEffect(() => {
560
+ const u = () => {
561
+ r.current && t(null);
566
562
  };
567
- return document.body.addEventListener("click", r), () => {
568
- document.body.removeEventListener("click", r);
563
+ return document.body.addEventListener("click", u), () => {
564
+ document.body.removeEventListener("click", u);
569
565
  };
570
566
  }, []);
571
- const g = v.useCallback(
572
- (r) => d(r),
573
- [a]
567
+ const f = (u) => {
568
+ const m = new s[u.name]();
569
+ return Object.assign(m, u.value), m.renderBlock(l);
570
+ }, p = x.useCallback(
571
+ (u) => f(u),
572
+ [o, l]
574
573
  );
575
574
  return /* @__PURE__ */ e.jsxs(
576
575
  "div",
577
576
  {
578
- onClick: (r) => {
579
- r.stopPropagation(), i(!1);
577
+ onClick: (u) => {
578
+ u.stopPropagation(), i(!1);
580
579
  },
581
- className: me.content,
580
+ className: he.content,
582
581
  children: [
583
- /* @__PURE__ */ e.jsx(Bs, {}),
584
- a[o[c].name] && Object.keys(a[o[c].name]).map((r) => /* @__PURE__ */ e.jsxs(
582
+ /* @__PURE__ */ e.jsx(As, {}),
583
+ o[c[a].name] && Object.keys(o[c[a].name]).map((u) => /* @__PURE__ */ e.jsxs(
585
584
  "div",
586
585
  {
587
- onClick: () => t(r),
588
- className: w(me.block, {
589
- [me.active]: n === r
586
+ onClick: () => t(u),
587
+ className: C(he.block, {
588
+ [he.active]: n === u
590
589
  }),
591
590
  children: [
592
- n === r && /* @__PURE__ */ e.jsx("div", { className: me.name, children: a[o[c].name][r].name }),
593
- n === r && /* @__PURE__ */ e.jsx(Ns, {}),
591
+ n === u && /* @__PURE__ */ e.jsx("div", { className: he.name, children: o[c[a].name][u].name }),
592
+ n === u && /* @__PURE__ */ e.jsx(Bs, {}),
594
593
  /* @__PURE__ */ e.jsx(
595
- Te,
594
+ Oe,
596
595
  {
597
- render: g,
598
- block: a[o[c].name][r]
596
+ render: p,
597
+ block: o[c[a].name][u]
599
598
  }
600
599
  )
601
600
  ]
602
601
  }
603
602
  )),
604
- /* @__PURE__ */ e.jsx($s, {})
603
+ /* @__PURE__ */ e.jsx(Ss, {})
605
604
  ]
606
605
  }
607
606
  );
608
- }), As = "_results_f488n_1", Ps = "_name_f488n_8", Ms = "_product_f488n_15", he = {
609
- results: As,
610
- name: Ps,
611
- product: Ms
612
- }, Es = "_search_1s0qp_1", Fs = "_input_1s0qp_12", Be = {
613
- search: Es,
614
- input: Fs
615
- }, Ts = () => /* @__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: [
616
615
  /* @__PURE__ */ e.jsx(
617
616
  "input",
618
617
  {
619
618
  type: "text",
620
619
  placeholder: "Search for sections",
621
- className: Be.input
620
+ className: Se.input
622
621
  }
623
622
  ),
624
623
  /* @__PURE__ */ e.jsx(
625
- h,
624
+ _,
626
625
  {
627
626
  name: "search",
628
627
  fill: "#757575"
629
628
  }
630
629
  )
631
- ] }), Ie = () => {
632
- const { blocks: t, setActiveBlock: n } = J(), { hideModal: s } = fe();
633
- function a(l) {
630
+ ] }), Le = () => {
631
+ const { blocks: t, setActiveBlock: n } = K(), { hideModal: s } = je();
632
+ function o(l) {
634
633
  n(l), s();
635
634
  }
636
- return /* @__PURE__ */ e.jsxs("div", { className: he.add, children: [
637
- /* @__PURE__ */ e.jsx(Ts, {}),
638
- /* @__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(
639
638
  "div",
640
639
  {
641
- className: he.product,
642
- onClick: () => a(l),
640
+ className: _e.product,
641
+ onClick: () => o(l),
643
642
  children: [
644
- /* @__PURE__ */ e.jsx("span", { className: he.name, children: l }),
645
- /* @__PURE__ */ e.jsx(h, { name: "arrow-right" })
643
+ /* @__PURE__ */ e.jsx("span", { className: _e.name, children: l }),
644
+ /* @__PURE__ */ e.jsx(_, { name: "arrow-right" })
646
645
  ]
647
646
  },
648
647
  l
649
648
  )) })
650
649
  ] });
651
- }, Is = () => {
650
+ }, Ls = () => {
652
651
  const {
653
652
  modalPosition: t,
654
653
  color: n,
655
654
  initialColor: s,
656
- setShowModal: a,
655
+ setShowModal: o,
657
656
  hue: l,
658
- saturation: c,
659
- brightness: o,
657
+ saturation: a,
658
+ brightness: c,
660
659
  dragging: i,
661
- setDragging: d,
662
- setHue: b,
663
- setSaturation: g,
664
- setBrightness: r,
665
- colorChange: u,
666
- setColor: p,
667
- update: x
668
- } = Me(), _ = (m) => {
669
- const { offsetX: k, offsetY: C } = m.nativeEvent;
670
- d(!0), L(k, C, m.currentTarget);
671
- }, j = (m) => {
660
+ setDragging: r,
661
+ setHue: f,
662
+ setSaturation: p,
663
+ setBrightness: u,
664
+ colorChange: m,
665
+ setColor: d,
666
+ update: j
667
+ } = Me(), g = (h) => {
668
+ const { offsetX: k, offsetY: b } = h.nativeEvent;
669
+ r(!0), y(k, b, h.currentTarget);
670
+ }, v = (h) => {
672
671
  if (i) {
673
- const k = document.querySelector(`.${z.colorMap}`), { left: C, top: B } = k.getBoundingClientRect(), f = m.clientX - C, G = m.clientY - B;
674
- L(f, G, k);
672
+ const k = document.querySelector(`.${H.colorMap}`), { left: b, top: $ } = k.getBoundingClientRect(), w = h.clientX - b, J = h.clientY - $;
673
+ y(w, J, k);
675
674
  }
676
- }, S = () => {
677
- d(!1);
678
- }, L = (m, k, C) => {
679
- const { width: B, height: f } = C.getBoundingClientRect(), G = Math.max(0, Math.min(m / B * 100, 100)), ie = Math.max(0, Math.min(100 - k / f * 100, 100));
680
- g(G), r(ie), y(G, ie);
681
- }, y = (m, k) => {
682
- const C = X(l, m, k);
683
- u(C), p(C);
684
- }, N = (m, k, C) => {
685
- k /= 100, C /= 100;
686
- const B = (re) => (re + m / 60) % 6, f = (re) => C * (1 - k * Math.max(0, Math.min(B(re), 4 - B(re), 1))), G = Math.round(255 * f(5)), ie = Math.round(255 * f(3)), ze = Math.round(255 * f(1));
687
- return { r: G, g: ie, b: ze };
688
- }, U = (m, k, C) => {
689
- const B = (f) => f.toString(16).padStart(2, "0");
690
- return `#${B(m)}${B(k)}${B(C)}`;
691
- }, X = (m, k, C) => {
692
- const { r: B, g: f, b: G } = N(m, k, C);
693
- return U(B, f, G);
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);
694
693
  };
695
- v.useEffect(() => {
696
- const m = (C) => j(C), k = () => S();
697
- return i ? (document.addEventListener("mousemove", m), document.addEventListener("mouseup", k)) : (document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", k)), () => {
698
- document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", k);
694
+ x.useEffect(() => {
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);
699
698
  };
700
699
  }, [i]);
701
- function P() {
702
- x(n), a(!1);
700
+ function M() {
701
+ j(n), o(!1);
703
702
  }
704
- function R() {
705
- a(!1), u(s);
703
+ function G() {
704
+ o(!1), m(s);
706
705
  }
707
706
  return /* @__PURE__ */ e.jsxs(
708
707
  "div",
709
708
  {
710
- className: z.modal,
711
- onClick: (m) => m.stopPropagation(),
709
+ className: H.modal,
710
+ onClick: (h) => h.stopPropagation(),
712
711
  style: {
713
712
  top: `${t.top}px`,
714
713
  left: `${t.left}px`
@@ -718,8 +717,8 @@ const et = ["desktop", "tablet", "mobile"], tt = [
718
717
  /* @__PURE__ */ e.jsx(
719
718
  "div",
720
719
  {
721
- className: z.colorMap,
722
- onMouseDown: _,
720
+ className: H.colorMap,
721
+ onMouseDown: g,
723
722
  style: {
724
723
  background: `
725
724
  linear-gradient(to top, black, transparent),
@@ -729,44 +728,44 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
729
728
  children: /* @__PURE__ */ e.jsx(
730
729
  "div",
731
730
  {
732
- className: z.indicator,
731
+ className: H.indicator,
733
732
  style: {
734
733
  position: "absolute",
735
- left: `${c}%`,
736
- top: `${100 - o}%`,
734
+ left: `${a}%`,
735
+ top: `${100 - c}%`,
737
736
  transform: "translate(-50%, -50%)"
738
737
  }
739
738
  }
740
739
  )
741
740
  }
742
741
  ),
743
- /* @__PURE__ */ e.jsx("div", { className: z.hueSlider, children: /* @__PURE__ */ e.jsx(
742
+ /* @__PURE__ */ e.jsx("div", { className: H.hueSlider, children: /* @__PURE__ */ e.jsx(
744
743
  "input",
745
744
  {
746
745
  type: "range",
747
746
  min: "0",
748
747
  max: "360",
749
748
  value: l,
750
- onChange: (m) => {
751
- b(Number(m.target.value)), y(c, o);
749
+ onChange: (h) => {
750
+ f(Number(h.target.value)), A(a, c);
752
751
  },
753
- className: z.slider
752
+ className: H.slider
754
753
  }
755
754
  ) }),
756
- /* @__PURE__ */ e.jsxs("div", { className: z.buttons, children: [
755
+ /* @__PURE__ */ e.jsxs("div", { className: H.buttons, children: [
757
756
  /* @__PURE__ */ e.jsx(
758
- Z,
757
+ X,
759
758
  {
760
- onClick: R,
761
- className: w(z.applyButton, z.cancelButton),
759
+ onClick: G,
760
+ className: C(H.applyButton, H.cancelButton),
762
761
  children: "Cancel"
763
762
  }
764
763
  ),
765
764
  /* @__PURE__ */ e.jsx(
766
- Z,
765
+ X,
767
766
  {
768
- onClick: P,
769
- className: z.applyButton,
767
+ onClick: M,
768
+ className: H.applyButton,
770
769
  children: "Apply"
771
770
  }
772
771
  )
@@ -774,144 +773,141 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
774
773
  ]
775
774
  }
776
775
  );
777
- }, Os = () => {
778
- const { onPreview: t } = V(), { hoverBlockId: n, isModalVisible: s, isPreviewVisible: a } = fe(), { settings: l } = K(), { blocks: c } = J(), { blocks: o } = $(), { currentPage: i, pages: d } = A(), { showModal: b } = Me(), [g, r] = v.useState(!0);
779
- v.useEffect(() => {
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);
778
+ x.useEffect(() => {
780
779
  t && setTimeout(() => {
781
- r(!1);
780
+ u(!1);
782
781
  }, 100);
783
782
  }, [t]);
784
- const u = (p) => {
785
- if (!p) return;
786
- const x = c[p.name], _ = p.value;
787
- for (const j in _)
788
- x[j] = _[j];
789
- return x.renderBlock(l);
783
+ const m = (d) => {
784
+ const j = new a[d.name]();
785
+ return Object.assign(j, d.value), j.renderBlock(l);
790
786
  };
791
- return /* @__PURE__ */ e.jsxs("div", { className: oe.preview, children: [
792
- s && /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsx(Ie, {}) }),
793
- a && n && /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsx(
794
- Te,
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,
795
791
  {
796
- render: u,
797
- block: o[d[i].name][n]
792
+ render: m,
793
+ block: c[r[i].name][n]
798
794
  }
799
795
  ) }),
800
- b && /* @__PURE__ */ e.jsx(Is, {}),
801
- t && /* @__PURE__ */ e.jsxs("div", { className: oe.main, children: [
802
- /* @__PURE__ */ e.jsx(rs, {}),
803
- /* @__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, {}) })
804
800
  ] })
805
801
  ] });
806
- }, Ls = "_sidebar_1r5sp_1", zs = "_title_1r5sp_10", Ds = "_active_1r5sp_18", Se = {
807
- sidebar: Ls,
808
- title: zs,
809
- active: Ds
810
- }, 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 = {
811
- layers: Hs,
812
- block: Rs,
813
- dragging: qs,
814
- active: Ys,
815
- add: Qs,
816
- button: Us,
817
- empty: Gs,
818
- title: Js,
819
- icon: Xs,
820
- text: Zs,
821
- highlight: Vs
822
- }, Ks = "_block_1d6lb_1", Ae = {
823
- block: Ks
824
- }, Ws = () => {
825
- const { setCurrentBlock: t } = $(), { activeBlock: n } = V();
826
- function s(a) {
827
- 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);
828
824
  }
829
825
  return /* @__PURE__ */ e.jsxs(
830
826
  "div",
831
827
  {
832
- className: w(Ae.block, {
833
- [Ae.active]: n === "header"
828
+ className: C(Pe.block, {
829
+ [Pe.active]: n === "header"
834
830
  }),
835
831
  onClick: () => s("header"),
836
832
  children: [
837
- /* @__PURE__ */ e.jsx(h, { name: "cards" }),
833
+ /* @__PURE__ */ e.jsx(_, { name: "cards" }),
838
834
  /* @__PURE__ */ e.jsx("span", { children: "Header" })
839
835
  ]
840
836
  }
841
837
  );
842
- }, en = "_block_1d6lb_1", Pe = {
843
- block: en
844
- }, tn = () => {
845
- const { activeBlock: t } = V(), { setCurrentBlock: n } = $();
846
- function s(a) {
847
- 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);
848
844
  }
849
845
  return /* @__PURE__ */ e.jsxs(
850
846
  "div",
851
847
  {
852
- className: w(Pe.block, {
853
- [Pe.active]: t === "footer"
848
+ className: C(Ie.block, {
849
+ [Ie.active]: t === "footer"
854
850
  }),
855
851
  onClick: () => s("footer"),
856
852
  children: [
857
- /* @__PURE__ */ e.jsx(h, { name: "cards" }),
853
+ /* @__PURE__ */ e.jsx(_, { name: "cards" }),
858
854
  /* @__PURE__ */ e.jsx("span", { children: "Footer" })
859
855
  ]
860
856
  }
861
857
  );
862
- }, sn = ({ id: t, name: n, index: s, moveBlock: a, onClick: l }) => {
863
- const { currentPage: c, pages: o } = A(), { activeBlock: i } = V(), {
864
- showPreview: d,
865
- hidePreview: b,
866
- showModal: g,
867
- hideModal: r,
868
- clearHideTimeout: u,
869
- startHideTimeout: p,
870
- hoverBlockId: x,
871
- isModalVisible: _
872
- } = fe(), { setPositionBlock: j } = $(), [S, L] = v.useState(!1), y = () => {
873
- _ && r(), d(t), L(!0), u();
874
- }, N = (m) => {
875
- m.stopPropagation(), b(), g(t), u(), j(s + 1);
876
- }, U = () => {
877
- _ ? p() : (L(!1), b());
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,
863
+ hideModal: u,
864
+ clearHideTimeout: m,
865
+ startHideTimeout: d,
866
+ hoverBlockId: j,
867
+ isModalVisible: g
868
+ } = je(), { setPositionBlock: v } = B(), [N, y] = x.useState(!1), A = () => {
869
+ g && u(), r(t), y(!0), m();
870
+ }, D = (h) => {
871
+ h.stopPropagation(), f(), p(t), m(), v(s + 1);
872
+ }, P = () => {
873
+ g ? d() : (y(!1), f());
878
874
  };
879
- v.useEffect(() => {
880
- _ || L(!1);
881
- }, [_]);
882
- const [, X] = Qe({
875
+ x.useEffect(() => {
876
+ g || y(!1);
877
+ }, [g]);
878
+ const [, I] = Ge({
883
879
  accept: "block",
884
- hover(m) {
885
- m.index !== s && (a(o[c].name, m.index, s), m.index = s);
880
+ hover(h) {
881
+ h.index !== s && (o(c[a].name, h.index, s), h.index = s);
886
882
  }
887
- }), [{ isDragging: P }, R] = Ue({
883
+ }), [{ isDragging: M }, G] = Je({
888
884
  type: "block",
889
885
  item: { id: t, index: s },
890
- collect: (m) => ({
891
- isDragging: m.isDragging()
886
+ collect: (h) => ({
887
+ isDragging: h.isDragging()
892
888
  })
893
889
  });
894
890
  return /* @__PURE__ */ e.jsxs(
895
891
  "div",
896
892
  {
897
- ref: (m) => R(X(m)),
898
- className: w(se.block, {
899
- [se.dragging]: P,
900
- [se.active]: !P && i === t
893
+ ref: (h) => G(I(h)),
894
+ className: C(ne.block, {
895
+ [ne.dragging]: M,
896
+ [ne.active]: !M && i === t
901
897
  }),
902
898
  onClick: () => l(t),
903
- onMouseEnter: y,
904
- onMouseLeave: U,
899
+ onMouseEnter: A,
900
+ onMouseLeave: P,
905
901
  children: [
906
- /* @__PURE__ */ e.jsx(h, { name: "cards" }),
902
+ /* @__PURE__ */ e.jsx(_, { name: "cards" }),
907
903
  /* @__PURE__ */ e.jsx("span", { children: n }),
908
- (S || x === t) && !P && /* @__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(
909
905
  "button",
910
906
  {
911
- className: se.button,
912
- onClick: (m) => N(m),
907
+ className: ne.button,
908
+ onClick: (h) => D(h),
913
909
  children: /* @__PURE__ */ e.jsx(
914
- h,
910
+ _,
915
911
  {
916
912
  name: "plus",
917
913
  fill: "#fff"
@@ -922,176 +918,167 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
922
918
  ]
923
919
  }
924
920
  );
925
- }, nn = () => {
926
- const { blocks: t, setCurrentBlock: n, moveBlock: s } = $(), { currentPage: a, pages: l } = A();
927
- function c(o) {
928
- 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);
929
925
  }
930
- return /* @__PURE__ */ e.jsxs("div", { className: se.layers, children: [
931
- /* @__PURE__ */ e.jsx(Ws, {}),
932
- /* @__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(
933
- 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,
934
930
  {
935
- id: o,
936
- name: t[l[a].name][o].name,
937
- index: i,
931
+ id: r,
932
+ name: t[l[o].name][r].name,
933
+ index: f,
938
934
  moveBlock: s,
939
- onClick: c
935
+ onClick: i
940
936
  },
941
- o
937
+ r
942
938
  )) }) }),
943
- /* @__PURE__ */ e.jsx(tn, {})
939
+ /* @__PURE__ */ e.jsx(nn, {})
944
940
  ] });
945
- }, on = ({ isHeader: t }) => {
946
- const { header: n, footer: s } = $(), { pageContext: a } = A();
947
- return t ? n == null ? void 0 : n.renderSettings(a) : s == null ? void 0 : s.renderSettings(a);
948
- }, an = () => {
949
- const { settings: t } = K();
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 = () => {
945
+ const { settings: t } = V();
950
946
  return t == null ? void 0 : t.renderSettings();
951
- }, cn = "_theme_1xj36_1", ln = "_block_1xj36_6", rn = "_name_1xj36_20", ve = {
952
- theme: cn,
953
- block: ln,
954
- name: rn
955
- }, dn = () => {
956
- 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();
957
953
  function n(s) {
958
954
  t(s);
959
955
  }
960
- 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(
961
957
  "div",
962
958
  {
963
959
  onClick: () => n(s),
964
- className: w(ve.block),
960
+ className: C(fe.block),
965
961
  children: [
966
- /* @__PURE__ */ e.jsx(h, { name: s.icon }),
967
- /* @__PURE__ */ e.jsx("span", { className: ve.name, children: s.name }),
968
- /* @__PURE__ */ e.jsx(h, { name: "arrow-right" })
962
+ /* @__PURE__ */ e.jsx(_, { name: s.icon }),
963
+ /* @__PURE__ */ e.jsx("span", { className: fe.name, children: s.name }),
964
+ /* @__PURE__ */ e.jsx(_, { name: "arrow-right" })
969
965
  ]
970
966
  },
971
967
  s.icon
972
968
  )) });
973
- }, un = "_back_14yda_1", mn = "_render_14yda_8", hn = "_open_14yda_23", _n = "_close_14yda_50", pn = "_clicked_14yda_54", gn = "_title_14yda_58", xn = "_button_14yda_65", jn = "_loading_14yda_70", vn = "_settings_14yda_74", bn = "_buttons_14yda_80", fn = "_deleteButton_14yda_86", D = {
974
- back: un,
975
- render: mn,
976
- open: hn,
977
- close: _n,
978
- clicked: pn,
979
- title: gn,
980
- button: xn,
981
- loading: jn,
982
- settings: vn,
983
- buttons: bn,
984
- deleteButton: fn
985
- }, kn = ({ block: t }) => {
986
- if (!t) return;
987
- const { blocks: n, sourceBlocks: s, activeBlock: a } = J(), { currentBlock: l } = $();
988
- if (!a && !l) return null;
989
- if (t != null && t.name) {
990
- const c = n[t.name], o = { ...t.value };
991
- for (const i in o)
992
- c[i] = o[i];
993
- return c.renderSettings();
994
- } else {
995
- const c = s[a];
996
- for (const o in c)
997
- t[o] = { ...c[o] };
998
- return t.renderSettings();
999
- }
1000
- }, wn = (t) => {
1001
- var R;
1002
- const { isAdd: n } = t, [s, a] = v.useState(!1), { setActiveBlock: l } = ge(), { blocks: c, activeBlock: o, setActiveBlock: i } = J(), {
1003
- blocks: d,
1004
- addBlock: b,
1005
- editBlock: g,
1006
- currentBlock: r,
1007
- setCurrentBlock: u,
1008
- removeBlock: p,
1009
- setPositionBlock: x,
1010
- setHeader: _,
1011
- setFooter: j,
1012
- header: S,
1013
- footer: L
1014
- } = $(), { currentPage: y, pages: N } = A();
1015
- function U() {
1016
- i(null), u(null), setTimeout(() => {
1017
- a(!1);
1018
- }, 150);
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,
989
+ addBlock: u,
990
+ editBlock: m,
991
+ currentBlock: d,
992
+ setCurrentBlock: j,
993
+ removeBlock: g,
994
+ setPositionBlock: v,
995
+ setHeader: N,
996
+ setFooter: y,
997
+ header: A,
998
+ footer: D
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,
1003
+ value: l
1004
+ }), f(null), j(null), setTimeout(() => {
1005
+ o(!1);
1006
+ }, 150), a(null);
1019
1007
  }
1020
- function X() {
1021
- U(), l({
1008
+ function G() {
1009
+ M(), c({
1022
1010
  name: "Layers",
1023
1011
  icon: "layers"
1024
- });
1012
+ }), a(null);
1025
1013
  }
1026
- function P() {
1027
- return n ? c[o] : c[d[N[y].name] && d[N[y].name][r] ? d[N[y].name][r].name : "null"];
1014
+ function h() {
1015
+ if (n)
1016
+ return new i[r]();
1017
+ {
1018
+ const b = p[I[P].name][d];
1019
+ return new i[b.name](b.value.blockSettings);
1020
+ }
1028
1021
  }
1029
- return /* @__PURE__ */ e.jsxs(
1022
+ return x.useEffect(() => {
1023
+ if (r || d && !["header", "footer"].includes(d)) {
1024
+ const b = h();
1025
+ a(b);
1026
+ } else
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(
1030
1033
  "div",
1031
1034
  {
1032
- className: w(D.render, {
1033
- [D.open]: r || o,
1034
- [D.close]: !r && !o,
1035
- [D.clicked]: s
1035
+ className: C(R.render, {
1036
+ [R.open]: d || r,
1037
+ [R.close]: !d && !r,
1038
+ [R.clicked]: s
1036
1039
  }),
1037
1040
  children: [
1038
- /* @__PURE__ */ e.jsxs("div", { className: D.back, children: [
1041
+ /* @__PURE__ */ e.jsxs("div", { className: R.back, children: [
1039
1042
  /* @__PURE__ */ e.jsx(
1040
- h,
1043
+ _,
1041
1044
  {
1042
1045
  name: "arrow-left",
1043
1046
  hoverable: !0,
1044
- onClick: U
1047
+ onClick: () => M()
1045
1048
  }
1046
1049
  ),
1047
- /* @__PURE__ */ e.jsx("h3", { className: D.title, children: o || d[N[y].name] && ((R = d[N[y].name][r]) == null ? void 0 : R.name) || r && O(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" })
1048
1051
  ] }),
1049
- /* @__PURE__ */ e.jsxs("div", { className: D.settings, children: [
1050
- P() && /* @__PURE__ */ e.jsx(
1051
- kn,
1052
- {
1053
- block: n ? P() : d[N[y].name][r]
1054
- }
1055
- ),
1056
- r && ["header", "footer"].includes(r) && /* @__PURE__ */ e.jsx(on, { isHeader: r === "header" }),
1057
- !o && !r && /* @__PURE__ */ e.jsx("div", { className: D.loading, children: "Loading" })
1052
+ /* @__PURE__ */ e.jsxs("div", { className: R.settings, children: [
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" })
1058
1056
  ] }),
1059
- /* @__PURE__ */ e.jsxs("div", { className: D.buttons, children: [
1060
- /* @__PURE__ */ e.jsx(
1061
- Z,
1057
+ /* @__PURE__ */ e.jsxs("div", { className: R.buttons, children: [
1058
+ n && /* @__PURE__ */ e.jsx(
1059
+ X,
1062
1060
  {
1063
1061
  style: {
1064
1062
  width: "100%"
1065
1063
  },
1066
1064
  onClick: () => {
1067
- if (a(!0), ["header", "footer"].includes(r))
1068
- r === "header" ? _(S) : j(L);
1069
- else {
1070
- const m = P();
1071
- n ? (b(N[y].name, {
1072
- name: o,
1073
- value: { ...m }
1074
- }), x(null)) : g(N[y].name, r, {
1075
- name: d[N[y].name][r].name,
1076
- value: { ...m }
1077
- });
1078
- }
1079
- X();
1065
+ o(!0), ["header", "footer"].includes(d) ? d === "header" ? N(A) : y(D) : (u(I[P].name, {
1066
+ name: r,
1067
+ value: l
1068
+ }), v(null)), G();
1080
1069
  },
1081
- children: n ? "Add Section" : "Edit Section"
1070
+ children: "Add Section"
1082
1071
  }
1083
1072
  ),
1084
- !n && !["header", "footer"].includes(r) && /* @__PURE__ */ e.jsx(
1073
+ !n && !["header", "footer"].includes(d) && /* @__PURE__ */ e.jsx(
1085
1074
  "button",
1086
1075
  {
1087
1076
  onClick: () => {
1088
- a(!0), p(N[y].name, r), setTimeout(() => {
1089
- a(!1);
1090
- }, 150);
1077
+ o(!0), g(I[P].name, d), M(!0);
1091
1078
  },
1092
- className: D.deleteButton,
1079
+ className: R.deleteButton,
1093
1080
  children: /* @__PURE__ */ e.jsx(
1094
- h,
1081
+ _,
1095
1082
  {
1096
1083
  name: "trash",
1097
1084
  hoverable: !0
@@ -1103,40 +1090,40 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1103
1090
  ]
1104
1091
  }
1105
1092
  );
1106
- }, yn = "_settings_1r85j_1", Cn = "_open_1r85j_16", Nn = "_close_1r85j_20", $n = "_header_1r85j_24", Bn = "_title_1r85j_30", Sn = "_addButton_1r85j_37", ae = {
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 = {
1107
1094
  settings: yn,
1108
- open: Cn,
1109
- close: Nn,
1110
- header: $n,
1111
- title: Bn,
1112
- addButton: Sn
1113
- }, An = "_wrapper_n1a7x_1", Pn = "_category_n1a7x_5", Mn = "_categoryTitle_n1a7x_10", En = "_color_n1a7x_16", Fn = "_content_n1a7x_24", Tn = "_preview_n1a7x_32", W = {
1114
- wrapper: An,
1115
- category: Pn,
1116
- categoryTitle: Mn,
1117
- color: En,
1118
- content: Fn,
1119
- preview: Tn
1120
- }, In = () => {
1121
- const { themeSettings: t, updateColor: n } = F();
1122
- async function s(l, c, o) {
1123
- n(l, c, o);
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);
1124
1111
  }
1125
- const a = Fe(() => {
1112
+ const o = Te(() => {
1126
1113
  const l = {};
1127
- return Object.entries(t.colors).forEach(([c, o]) => {
1128
- Object.entries(o).forEach(([i, d]) => {
1129
- 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}`);
1130
1117
  });
1131
- }), Object.keys(l).filter((c) => l[c].length > 1);
1118
+ }), Object.keys(l).filter((a) => l[a].length > 1);
1132
1119
  }, [t.colors]);
1133
- 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(
1134
1121
  "div",
1135
1122
  {
1136
1123
  className: W.category,
1137
1124
  children: [
1138
- /* @__PURE__ */ e.jsx("h2", { className: W.categoryTitle, children: O(l) }),
1139
- Object.entries(c).map(([o, i]) => /* @__PURE__ */ e.jsxs(
1125
+ /* @__PURE__ */ e.jsx("h2", { className: W.categoryTitle, children: z(l) }),
1126
+ Object.entries(a).map(([c, i]) => /* @__PURE__ */ e.jsxs(
1140
1127
  "div",
1141
1128
  {
1142
1129
  className: W.color,
@@ -1152,16 +1139,16 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1152
1139
  }
1153
1140
  ),
1154
1141
  /* @__PURE__ */ e.jsx(
1155
- ce,
1142
+ le,
1156
1143
  {
1157
- title: O(o),
1144
+ title: z(c),
1158
1145
  initialColor: i,
1159
- onChange: (d) => s(l, o, d)
1146
+ onChange: (r) => s(l, c, r)
1160
1147
  }
1161
1148
  )
1162
1149
  ] }),
1163
- a.includes(i) && /* @__PURE__ */ e.jsx(
1164
- Ge,
1150
+ o.includes(i) && /* @__PURE__ */ e.jsx(
1151
+ Xe,
1165
1152
  {
1166
1153
  type: "warning",
1167
1154
  message: "To avoid contrast problems, please use a different color",
@@ -1172,75 +1159,75 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1172
1159
  )
1173
1160
  ]
1174
1161
  },
1175
- o
1162
+ c
1176
1163
  ))
1177
1164
  ]
1178
1165
  },
1179
1166
  l
1180
1167
  )) });
1181
- }, 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", H = {
1182
- wrapper: On,
1183
- category: Ln,
1184
- categoryTitle: zn,
1185
- color: Dn,
1186
- name: Hn,
1187
- content: Rn,
1188
- label: qn,
1189
- input: Yn,
1190
- title: Qn,
1191
- field: Un,
1192
- alignments: Gn,
1193
- lineField: Jn,
1194
- style: Xn,
1195
- header: Zn
1196
- }, Vn = ["left", "center", "right"], Kn = ["solid", "dashed"], _e = (t) => {
1197
- const { title: n, children: s, rightAddon: a } = t;
1198
- return /* @__PURE__ */ e.jsxs("div", { className: H.field, children: [
1199
- /* @__PURE__ */ e.jsxs("div", { className: H.header, children: [
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;
1185
+ return /* @__PURE__ */ e.jsxs("div", { className: q.field, children: [
1186
+ /* @__PURE__ */ e.jsxs("div", { className: q.header, children: [
1200
1187
  /* @__PURE__ */ e.jsx("h4", { children: n }),
1201
- a
1188
+ o
1202
1189
  ] }),
1203
1190
  s
1204
1191
  ] });
1205
- }, Wn = () => {
1206
- const { themeSettings: t, updateInput: n } = F(), s = Fe(() => t.inputs, [t]), a = (c, o, i) => {
1207
- n(c, o, i);
1208
- }, l = (c) => (o) => {
1209
- 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");
1210
1197
  };
1211
- return /* @__PURE__ */ e.jsxs("div", { className: H.wrapper, children: [
1212
- /* @__PURE__ */ e.jsxs(_e, { title: "General", children: [
1198
+ return /* @__PURE__ */ e.jsxs("div", { className: q.wrapper, children: [
1199
+ /* @__PURE__ */ e.jsxs(ge, { title: "General", children: [
1213
1200
  /* @__PURE__ */ e.jsx(
1214
- E,
1201
+ F,
1215
1202
  {
1216
1203
  label: "Height (px)",
1217
1204
  value: String(s.general.height),
1218
- onChange: (c) => a("general", c, "height"),
1205
+ onChange: (a) => o("general", a, "height"),
1219
1206
  type: "number",
1220
1207
  min: 0
1221
1208
  }
1222
1209
  ),
1223
1210
  /* @__PURE__ */ e.jsx(
1224
- E,
1211
+ F,
1225
1212
  {
1226
1213
  label: "Style name",
1227
1214
  value: s.general.name,
1228
- onChange: (c) => a("general", c, "name")
1215
+ onChange: (a) => o("general", a, "name")
1229
1216
  }
1230
1217
  ),
1231
1218
  /* @__PURE__ */ e.jsx(
1232
- ne,
1219
+ oe,
1233
1220
  {
1234
1221
  label: "Font Size (px)",
1235
- onChange: (c) => a("general", c, "size"),
1222
+ onChange: (a) => o("general", a, "size"),
1236
1223
  value: String(s.general.size),
1237
1224
  options: pe
1238
1225
  }
1239
1226
  ),
1240
1227
  /* @__PURE__ */ e.jsx(
1241
- ce,
1228
+ le,
1242
1229
  {
1243
- initialColor: O(s.general.color),
1230
+ initialColor: z(s.general.color),
1244
1231
  onChange: l("general"),
1245
1232
  title: "Font Color",
1246
1233
  labelStyle: "secondary"
@@ -1248,32 +1235,32 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1248
1235
  )
1249
1236
  ] }),
1250
1237
  /* @__PURE__ */ e.jsxs(
1251
- _e,
1238
+ ge,
1252
1239
  {
1253
1240
  title: "Field Fill",
1254
- rightAddon: /* @__PURE__ */ e.jsx("div", { className: H.switch, children: /* @__PURE__ */ e.jsx(
1255
- we,
1241
+ rightAddon: /* @__PURE__ */ e.jsx("div", { className: q.switch, children: /* @__PURE__ */ e.jsx(
1242
+ Ce,
1256
1243
  {
1257
- onChange: (c) => a("field", c, "active"),
1244
+ onChange: (a) => o("field", a, "active"),
1258
1245
  current: s.field.active
1259
1246
  }
1260
1247
  ) }),
1261
1248
  children: [
1262
1249
  /* @__PURE__ */ e.jsx(
1263
- ce,
1250
+ le,
1264
1251
  {
1265
- initialColor: O(s.field.color),
1252
+ initialColor: z(s.field.color),
1266
1253
  onChange: l("field"),
1267
1254
  title: "Color",
1268
1255
  labelStyle: "secondary"
1269
1256
  }
1270
1257
  ),
1271
1258
  /* @__PURE__ */ e.jsx(
1272
- E,
1259
+ F,
1273
1260
  {
1274
1261
  label: "Opacity (%)",
1275
1262
  value: String(s.field.opacity),
1276
- onChange: (c) => a("field", c, "opacity"),
1263
+ onChange: (a) => o("field", a, "opacity"),
1277
1264
  type: "number",
1278
1265
  min: 0
1279
1266
  }
@@ -1282,55 +1269,55 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1282
1269
  }
1283
1270
  ),
1284
1271
  /* @__PURE__ */ e.jsxs(
1285
- _e,
1272
+ ge,
1286
1273
  {
1287
1274
  title: "Border",
1288
- rightAddon: /* @__PURE__ */ e.jsx("div", { className: H.switch, children: /* @__PURE__ */ e.jsx(
1289
- we,
1275
+ rightAddon: /* @__PURE__ */ e.jsx("div", { className: q.switch, children: /* @__PURE__ */ e.jsx(
1276
+ Ce,
1290
1277
  {
1291
- onChange: (c) => a("border", c, "active"),
1278
+ onChange: (a) => o("border", a, "active"),
1292
1279
  current: s.border.active
1293
1280
  }
1294
1281
  ) }),
1295
1282
  children: [
1296
- /* @__PURE__ */ e.jsxs("div", { className: H.lineField, children: [
1297
- /* @__PURE__ */ e.jsxs("div", { className: H.style, children: [
1298
- /* @__PURE__ */ e.jsx("span", { className: H.title, children: "Style" }),
1283
+ /* @__PURE__ */ e.jsxs("div", { className: q.lineField, children: [
1284
+ /* @__PURE__ */ e.jsxs("div", { className: q.style, children: [
1285
+ /* @__PURE__ */ e.jsx("span", { className: q.title, children: "Style" }),
1299
1286
  /* @__PURE__ */ e.jsx(
1300
- ye,
1287
+ Ne,
1301
1288
  {
1302
- items: Kn,
1289
+ items: eo,
1303
1290
  selectedItem: s.border.style,
1304
- onSelect: (c) => a("border", c, "style"),
1305
- getIconName: (c) => `border-${c}`
1291
+ onSelect: (a) => o("border", a, "style"),
1292
+ getIconName: (a) => `border-${a}`
1306
1293
  }
1307
1294
  )
1308
1295
  ] }),
1309
1296
  /* @__PURE__ */ e.jsx(
1310
- E,
1297
+ F,
1311
1298
  {
1312
1299
  label: "Radius (px)",
1313
1300
  value: String(s.border.radius),
1314
- onChange: (c) => a("border", c, "radius"),
1301
+ onChange: (a) => o("border", a, "radius"),
1315
1302
  type: "number",
1316
1303
  min: 0
1317
1304
  }
1318
1305
  )
1319
1306
  ] }),
1320
1307
  /* @__PURE__ */ e.jsx(
1321
- E,
1308
+ F,
1322
1309
  {
1323
1310
  label: "Thickness (px)",
1324
1311
  value: String(s.border.thickness),
1325
- onChange: (c) => a("border", c, "thickness"),
1312
+ onChange: (a) => o("border", a, "thickness"),
1326
1313
  type: "number",
1327
1314
  min: 0
1328
1315
  }
1329
1316
  ),
1330
1317
  /* @__PURE__ */ e.jsx(
1331
- ce,
1318
+ le,
1332
1319
  {
1333
- initialColor: O(s.border.color),
1320
+ initialColor: z(s.border.color),
1334
1321
  onChange: l("border"),
1335
1322
  title: "Color",
1336
1323
  labelStyle: "secondary"
@@ -1339,132 +1326,132 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1339
1326
  ]
1340
1327
  }
1341
1328
  ),
1342
- /* @__PURE__ */ e.jsxs(_e, { title: "Label", children: [
1329
+ /* @__PURE__ */ e.jsxs(ge, { title: "Label", children: [
1343
1330
  /* @__PURE__ */ e.jsx(
1344
- E,
1331
+ F,
1345
1332
  {
1346
1333
  label: "Line Height (px)",
1347
1334
  value: String(s.label.height),
1348
- onChange: (c) => a("label", c, "height"),
1335
+ onChange: (a) => o("label", a, "height"),
1349
1336
  type: "number",
1350
1337
  min: 0
1351
1338
  }
1352
1339
  ),
1353
1340
  /* @__PURE__ */ e.jsx(
1354
- ne,
1341
+ oe,
1355
1342
  {
1356
1343
  label: "Font Size (px)",
1357
- onChange: (c) => a("label", c, "size"),
1344
+ onChange: (a) => o("label", a, "size"),
1358
1345
  value: String(s.label.size),
1359
1346
  options: pe
1360
1347
  }
1361
1348
  ),
1362
1349
  /* @__PURE__ */ e.jsx(
1363
- ce,
1350
+ le,
1364
1351
  {
1365
- initialColor: O(s.label.color),
1352
+ initialColor: z(s.label.color),
1366
1353
  onChange: l("label"),
1367
1354
  title: "Color",
1368
1355
  labelStyle: "secondary"
1369
1356
  }
1370
1357
  ),
1371
- /* @__PURE__ */ e.jsxs("div", { className: H.alignments, children: [
1372
- /* @__PURE__ */ e.jsx("h4", { className: H.title, children: "Alignment Type" }),
1358
+ /* @__PURE__ */ e.jsxs("div", { className: q.alignments, children: [
1359
+ /* @__PURE__ */ e.jsx("h4", { className: q.title, children: "Alignment Type" }),
1373
1360
  /* @__PURE__ */ e.jsx(
1374
- ye,
1361
+ Ne,
1375
1362
  {
1376
- items: Vn,
1363
+ items: Wn,
1377
1364
  selectedItem: s.label.alignment,
1378
- onSelect: (c) => a("label", c, "alignment"),
1379
- getIconName: (c) => `align-${c}`
1365
+ onSelect: (a) => o("label", a, "alignment"),
1366
+ getIconName: (a) => `align-${a}`
1380
1367
  }
1381
1368
  )
1382
1369
  ] })
1383
1370
  ] })
1384
1371
  ] });
1385
- }, 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", Q = {
1386
- wrapper: eo,
1387
- category: to,
1388
- categoryTitle: so,
1389
- font: no,
1390
- content: oo,
1391
- icon: ao,
1392
- paragraph: co,
1393
- deleteIcon: lo,
1394
- iconButton: io
1395
- }, ro = (t) => {
1396
- 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();
1397
1384
  return /* @__PURE__ */ e.jsxs(
1398
1385
  "div",
1399
1386
  {
1400
1387
  className: Q.font,
1401
- onClick: () => c(a),
1388
+ onClick: () => a(o),
1402
1389
  children: [
1403
1390
  /* @__PURE__ */ e.jsx(
1404
1391
  "div",
1405
1392
  {
1406
- className: w(Q.icon, {
1393
+ className: C(Q.icon, {
1407
1394
  [Q.paragraph]: l === "paragraph"
1408
1395
  }),
1409
- children: /* @__PURE__ */ e.jsx(h, { name: l })
1396
+ children: /* @__PURE__ */ e.jsx(_, { name: l })
1410
1397
  }
1411
1398
  ),
1412
1399
  /* @__PURE__ */ e.jsxs("div", { className: Q.content, children: [
1413
- /* @__PURE__ */ e.jsx("h2", { className: Q.categoryTitle, children: O(a) }),
1400
+ /* @__PURE__ */ e.jsx("h2", { className: Q.categoryTitle, children: z(o) }),
1414
1401
  /* @__PURE__ */ e.jsx("span", { className: Q.value, children: `${n}, ${s}px` })
1415
1402
  ] })
1416
1403
  ]
1417
1404
  }
1418
1405
  );
1419
- }, uo = () => {
1420
- const { themeSettings: t, setActiveFont: n, activeBlock: s } = F();
1421
- v.useEffect(() => (a(), () => {
1422
- a();
1406
+ }, ho = () => {
1407
+ const { themeSettings: t, setActiveFont: n, activeBlock: s } = T();
1408
+ x.useEffect(() => (o(), () => {
1409
+ o();
1423
1410
  }), []);
1424
- function a() {
1411
+ function o() {
1425
1412
  n(null);
1426
1413
  }
1427
1414
  if (s != null && s.name)
1428
- return /* @__PURE__ */ e.jsx("div", { className: Q.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(
1429
1416
  "div",
1430
1417
  {
1431
1418
  className: Q.category,
1432
1419
  children: [
1433
- /* @__PURE__ */ e.jsx("h2", { className: Q.categoryTitle, children: O(l) }),
1434
- Object.entries(c).map(([o, i]) => /* @__PURE__ */ e.jsx(
1435
- ro,
1420
+ /* @__PURE__ */ e.jsx("h2", { className: Q.categoryTitle, children: z(l) }),
1421
+ Object.entries(a).map(([c, i]) => /* @__PURE__ */ e.jsx(
1422
+ mo,
1436
1423
  {
1437
- id: o,
1424
+ id: c,
1438
1425
  category: l,
1439
1426
  ...i
1440
1427
  },
1441
- o
1428
+ c
1442
1429
  ))
1443
1430
  ]
1444
1431
  },
1445
1432
  l
1446
1433
  )) });
1447
- }, mo = "_wrapper_94fpv_1", ho = "_open_94fpv_16", _o = "_close_94fpv_20", po = "_header_94fpv_24", go = "_title_94fpv_31", xo = "_options_94fpv_37", jo = "_clicked_94fpv_44", ee = {
1448
- wrapper: mo,
1449
- open: ho,
1450
- close: _o,
1451
- header: po,
1452
- title: go,
1453
- options: xo,
1454
- clicked: jo
1455
- }, vo = () => {
1456
- const { activeBlock: t, setActiveFont: n, activeFont: s, themeSettings: a, updateFont: l } = F(), { fonts: c } = Ee(), [o, i] = v.useState(null);
1457
- 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() {
1458
1445
  n(null);
1459
1446
  }
1460
- function b(r, u) {
1461
- o && s && l(o, s, u, r);
1447
+ function f(u, m) {
1448
+ c && s && l(c, s, m, u);
1462
1449
  }
1463
- const g = v.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]);
1464
1451
  return /* @__PURE__ */ e.jsxs(
1465
1452
  "div",
1466
1453
  {
1467
- className: w(ee.wrapper, {
1454
+ className: C(ee.wrapper, {
1468
1455
  [ee.open]: (t == null ? void 0 : t.name) === "Fonts" && s,
1469
1456
  [ee.close]: (t == null ? void 0 : t.name) !== "Fonts" || !s
1470
1457
  }),
@@ -1473,10 +1460,10 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1473
1460
  "div",
1474
1461
  {
1475
1462
  className: ee.header,
1476
- onClick: d,
1463
+ onClick: r,
1477
1464
  children: [
1478
1465
  /* @__PURE__ */ e.jsx(
1479
- h,
1466
+ _,
1480
1467
  {
1481
1468
  name: "arrow-left",
1482
1469
  hoverable: !0
@@ -1486,90 +1473,90 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1486
1473
  ]
1487
1474
  }
1488
1475
  ),
1489
- s && g && /* @__PURE__ */ e.jsxs("div", { className: ee.options, children: [
1476
+ s && p && /* @__PURE__ */ e.jsxs("div", { className: ee.options, children: [
1490
1477
  /* @__PURE__ */ e.jsx(
1491
- ne,
1478
+ oe,
1492
1479
  {
1493
1480
  label: "Font",
1494
- value: g.font,
1495
- onChange: (r) => b(r, "font"),
1496
- options: [...c.filter((r) => r !== g.font)]
1481
+ value: p.font,
1482
+ onChange: (u) => f(u, "font"),
1483
+ options: [...a.filter((u) => u !== p.font)]
1497
1484
  }
1498
1485
  ),
1499
1486
  /* @__PURE__ */ e.jsx(
1500
- ne,
1487
+ oe,
1501
1488
  {
1502
1489
  label: "Size",
1503
- value: String(g.size),
1504
- onChange: (r) => b(r, "size"),
1490
+ value: String(p.size),
1491
+ onChange: (u) => f(u, "size"),
1505
1492
  options: pe
1506
1493
  }
1507
1494
  ),
1508
1495
  /* @__PURE__ */ e.jsx(
1509
- ne,
1496
+ oe,
1510
1497
  {
1511
1498
  label: "Weight",
1512
- value: String(g.weight),
1513
- onChange: (r) => b(r, "weight"),
1514
- options: Je
1499
+ value: String(p.weight),
1500
+ onChange: (u) => f(u, "weight"),
1501
+ options: Ze
1515
1502
  }
1516
1503
  )
1517
1504
  ] })
1518
1505
  ]
1519
1506
  }
1520
1507
  );
1521
- }, bo = "_wrapper_94fpv_1", fo = "_open_94fpv_16", ko = "_close_94fpv_20", wo = "_header_94fpv_24", yo = "_title_94fpv_31", Co = "_options_94fpv_37", No = "_clicked_94fpv_44", te = {
1522
- wrapper: bo,
1523
- open: fo,
1524
- close: ko,
1525
- header: wo,
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,
1526
1513
  title: yo,
1527
- options: Co,
1528
- clicked: No
1529
- }, Oe = () => {
1530
- const { activeBlock: t, themeSettings: n, updateBorder: s, setActiveBlock: a } = F();
1531
- function l(i, d) {
1532
- s(d, i);
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);
1533
1520
  }
1534
- function c() {
1535
- a(null);
1521
+ function a() {
1522
+ o(null);
1536
1523
  }
1537
- const o = v.useMemo(() => n.borders, [n]);
1524
+ const c = x.useMemo(() => n.borders, [n]);
1538
1525
  return /* @__PURE__ */ e.jsxs(
1539
1526
  "div",
1540
1527
  {
1541
- className: w(te.wrapper, {
1528
+ className: C(te.wrapper, {
1542
1529
  [te.open]: (t == null ? void 0 : t.name) === "Borders",
1543
1530
  [te.close]: (t == null ? void 0 : t.name) !== "Borders"
1544
1531
  }),
1545
1532
  children: [
1546
1533
  /* @__PURE__ */ e.jsxs("div", { className: te.header, children: [
1547
1534
  /* @__PURE__ */ e.jsx(
1548
- h,
1535
+ _,
1549
1536
  {
1550
1537
  name: "arrow-left",
1551
1538
  hoverable: !0,
1552
- onClick: c
1539
+ onClick: a
1553
1540
  }
1554
1541
  ),
1555
1542
  /* @__PURE__ */ e.jsx("span", { className: te.title, children: "Borders Style" })
1556
1543
  ] }),
1557
1544
  /* @__PURE__ */ e.jsxs("div", { className: te.options, children: [
1558
1545
  /* @__PURE__ */ e.jsx(
1559
- E,
1546
+ F,
1560
1547
  {
1561
1548
  label: "Border Radius (px)",
1562
- value: String(o.radius),
1549
+ value: String(c.radius),
1563
1550
  onChange: (i) => l(Number(i), "radius"),
1564
1551
  type: "number",
1565
1552
  min: 0
1566
1553
  }
1567
1554
  ),
1568
1555
  /* @__PURE__ */ e.jsx(
1569
- E,
1556
+ F,
1570
1557
  {
1571
1558
  label: "Border Thickness (px)",
1572
- value: String(o.thickness),
1559
+ value: String(c.thickness),
1573
1560
  onChange: (i) => l(Number(i), "thickness"),
1574
1561
  type: "number",
1575
1562
  min: 0
@@ -1579,93 +1566,93 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1579
1566
  ]
1580
1567
  }
1581
1568
  );
1582
- }, $o = "_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", Fo = "_label_1j33r_48", To = "_alignments_1j33r_55", Io = "_blocks_1j33r_61", Oo = "_alignment_1j33r_55", Lo = "_active_1j33r_75", T = {
1583
- wrapper: $o,
1584
- open: Bo,
1585
- close: So,
1586
- header: Ao,
1587
- title: Po,
1588
- options: Mo,
1589
- clicked: Eo,
1590
- label: Fo,
1591
- alignments: To,
1592
- blocks: Io,
1593
- alignment: Oo,
1594
- active: Lo
1595
- }, zo = ["left", "center", "right"], Le = () => {
1596
- const { activeBlock: t, themeSettings: n, updateButton: s, setActiveBlock: a } = F();
1597
- function l(i, d) {
1598
- 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);
1599
1586
  }
1600
- function c() {
1601
- a(null);
1587
+ function a() {
1588
+ o(null);
1602
1589
  }
1603
- const o = v.useMemo(() => n.buttons, [n]);
1590
+ const c = x.useMemo(() => n.buttons, [n]);
1604
1591
  return /* @__PURE__ */ e.jsxs(
1605
1592
  "div",
1606
1593
  {
1607
- className: w(T.wrapper, {
1608
- [T.open]: (t == null ? void 0 : t.name) === "Buttons",
1609
- [T.close]: (t == null ? void 0 : t.name) !== "Buttons"
1594
+ className: C(O.wrapper, {
1595
+ [O.open]: (t == null ? void 0 : t.name) === "Buttons",
1596
+ [O.close]: (t == null ? void 0 : t.name) !== "Buttons"
1610
1597
  }),
1611
1598
  children: [
1612
- /* @__PURE__ */ e.jsxs("div", { className: T.header, children: [
1599
+ /* @__PURE__ */ e.jsxs("div", { className: O.header, children: [
1613
1600
  /* @__PURE__ */ e.jsx(
1614
- h,
1601
+ _,
1615
1602
  {
1616
1603
  name: "arrow-left",
1617
1604
  hoverable: !0,
1618
- onClick: c
1605
+ onClick: a
1619
1606
  }
1620
1607
  ),
1621
- /* @__PURE__ */ e.jsx("span", { className: T.title, children: "Buttons Style" })
1608
+ /* @__PURE__ */ e.jsx("span", { className: O.title, children: "Buttons Style" })
1622
1609
  ] }),
1623
- o && /* @__PURE__ */ e.jsxs("div", { className: T.options, children: [
1610
+ c && /* @__PURE__ */ e.jsxs("div", { className: O.options, children: [
1624
1611
  /* @__PURE__ */ e.jsx(
1625
- E,
1612
+ F,
1626
1613
  {
1627
1614
  label: "Height (px)",
1628
- value: String(o.height),
1615
+ value: String(c.height),
1629
1616
  onChange: (i) => l(i, "height"),
1630
1617
  type: "number",
1631
1618
  min: 0
1632
1619
  }
1633
1620
  ),
1634
1621
  /* @__PURE__ */ e.jsx(
1635
- ne,
1622
+ oe,
1636
1623
  {
1637
1624
  label: "Font Size (px)",
1638
- value: String(o.size),
1625
+ value: String(c.size),
1639
1626
  onChange: (i) => l(i, "size"),
1640
1627
  options: pe
1641
1628
  }
1642
1629
  ),
1643
1630
  /* @__PURE__ */ e.jsx(
1644
- E,
1631
+ F,
1645
1632
  {
1646
1633
  label: "Border Radius (px)",
1647
- value: String(o.radius),
1634
+ value: String(c.radius),
1648
1635
  onChange: (i) => l(Number(i), "radius"),
1649
1636
  type: "number",
1650
1637
  min: 0
1651
1638
  }
1652
1639
  ),
1653
- /* @__PURE__ */ e.jsxs("div", { className: T.alignments, children: [
1654
- /* @__PURE__ */ e.jsx("h4", { className: T.label, children: "Alignment Type" }),
1655
- /* @__PURE__ */ e.jsx("div", { className: T.blocks, children: zo.map((i) => /* @__PURE__ */ e.jsx(
1640
+ /* @__PURE__ */ e.jsxs("div", { className: O.alignments, children: [
1641
+ /* @__PURE__ */ e.jsx("h4", { className: O.label, children: "Alignment Type" }),
1642
+ /* @__PURE__ */ e.jsx("div", { className: O.blocks, children: Ho.map((i) => /* @__PURE__ */ e.jsx(
1656
1643
  "div",
1657
1644
  {
1658
- className: w(T.alignment, {
1659
- [T.active]: o.alignment === i
1645
+ className: C(O.alignment, {
1646
+ [O.active]: c.alignment === i
1660
1647
  }),
1661
1648
  onClick: () => {
1662
1649
  l(i, "alignment");
1663
1650
  },
1664
1651
  children: /* @__PURE__ */ e.jsx(
1665
- h,
1652
+ _,
1666
1653
  {
1667
1654
  name: `align-${i}`,
1668
- fill: o.alignment === i ? "#252525" : "#757575"
1655
+ fill: c.alignment === i ? "#252525" : "#757575"
1669
1656
  }
1670
1657
  )
1671
1658
  },
@@ -1676,48 +1663,48 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1676
1663
  ]
1677
1664
  }
1678
1665
  );
1679
- }, Do = () => {
1680
- const { activeBlock: t } = F();
1666
+ }, Ro = () => {
1667
+ const { activeBlock: t } = T();
1681
1668
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1682
- (t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ e.jsx(vo, {}),
1683
- (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(Oe, {}),
1684
- (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, {})
1685
1672
  ] });
1686
- }, Ho = () => {
1687
- const { activeBlock: t, setActiveBlock: n } = F(), { activeBlock: s } = ge();
1688
- function a() {
1673
+ }, qo = () => {
1674
+ const { activeBlock: t, setActiveBlock: n } = T(), { activeBlock: s } = xe();
1675
+ function o() {
1689
1676
  n(null);
1690
1677
  }
1691
1678
  return /* @__PURE__ */ e.jsxs(
1692
1679
  "div",
1693
1680
  {
1694
- className: w(ae.settings, {
1695
- [ae.open]: t,
1696
- [ae.close]: !t || s.name !== "Theme"
1681
+ className: C(ce.settings, {
1682
+ [ce.open]: t,
1683
+ [ce.close]: !t || s.name !== "Theme"
1697
1684
  }),
1698
1685
  children: [
1699
- /* @__PURE__ */ e.jsxs("div", { className: ae.header, children: [
1686
+ /* @__PURE__ */ e.jsxs("div", { className: ce.header, children: [
1700
1687
  /* @__PURE__ */ e.jsx(
1701
- h,
1688
+ _,
1702
1689
  {
1703
1690
  name: "arrow-left",
1704
1691
  hoverable: !0,
1705
- onClick: a
1692
+ onClick: o
1706
1693
  }
1707
1694
  ),
1708
- /* @__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 })
1709
1696
  ] }),
1710
- (t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ e.jsx(uo, {}),
1711
- (t == null ? void 0 : t.name) === "Colors" && /* @__PURE__ */ e.jsx(In, {}),
1712
- (t == null ? void 0 : t.name) === "Inputs" && /* @__PURE__ */ e.jsx(Wn, {}),
1713
- (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(Oe, {}),
1714
- (t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ e.jsx(Le, {}),
1715
- /* @__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, {})
1716
1703
  ]
1717
1704
  }
1718
1705
  );
1719
- }, Ro = () => {
1720
- const { activeBlock: t } = ge(), { activeBlock: n } = J();
1706
+ }, Yo = () => {
1707
+ const { activeBlock: t } = xe(), { activeBlock: n } = K();
1721
1708
  function s() {
1722
1709
  switch (t.name) {
1723
1710
  case "Layers":
@@ -1730,135 +1717,135 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1730
1717
  return "Settings";
1731
1718
  }
1732
1719
  }
1733
- return /* @__PURE__ */ e.jsxs("div", { className: Se.sidebar, children: [
1734
- /* @__PURE__ */ e.jsx("h3", { className: Se.title, children: s() }),
1735
- t.name === "Layers" && /* @__PURE__ */ e.jsx(nn, {}),
1736
- t.name === "Add" && /* @__PURE__ */ e.jsx(Ie, {}),
1737
- /* @__PURE__ */ e.jsx(wn, { isAdd: !!n }),
1738
- /* @__PURE__ */ e.jsx(Ho, {}),
1739
- t.name === "Theme" && /* @__PURE__ */ e.jsx(dn, {}),
1740
- 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, {})
1741
1728
  ] });
1742
- }, 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", I = {
1743
- wrapper: qo,
1744
- header: Yo,
1745
- content: Qo,
1746
- buttons: Uo,
1747
- cancel: Go,
1748
- label: Jo,
1749
- description: Xo,
1750
- preview: Zo,
1751
- block: Vo,
1752
- slug: Ko,
1753
- title: Wo
1754
- }, ea = () => {
1755
- var P, R, m, k, C, B;
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, $;
1756
1743
  const {
1757
1744
  setIsOpenModal: t,
1758
1745
  pages: n,
1759
1746
  createPage: s,
1760
- updatePage: a,
1747
+ updatePage: o,
1761
1748
  isEdit: l,
1762
- setIsEdit: c,
1763
- editedPage: o,
1749
+ setIsEdit: a,
1750
+ editedPage: c,
1764
1751
  setEditedPage: i
1765
- } = A(), { createPage: d, updatePage: b } = $(), [g, r] = v.useState(o ? (P = n[o]) == null ? void 0 : P.path : ""), [u, p] = v.useState(o ? (R = n[o]) == null ? void 0 : R.name : ""), [x, _] = v.useState(
1766
- o ? (m = n[o]) == null ? void 0 : m.seo.description : ""
1767
- ), [j, S] = v.useState(
1768
- o ? (k = n[o]) == null ? void 0 : k.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"
1769
1756
  );
1770
- function L() {
1771
- r(""), p(""), _(""), S("public"), c(!1), i(null);
1772
- }
1773
1757
  function y() {
1774
- L(), t(!1);
1758
+ u(""), d(""), g(""), N("public"), a(!1), i(null);
1775
1759
  }
1776
- function N(f) {
1777
- return f[0] === "/" ? f : "/" + f;
1760
+ function A() {
1761
+ y(), t(!1);
1778
1762
  }
1779
- function U() {
1763
+ function D(w) {
1764
+ return w[0] === "/" ? w : "/" + w;
1765
+ }
1766
+ function P() {
1780
1767
  s({
1781
- path: N(g),
1782
- name: u || g,
1768
+ path: D(p),
1769
+ name: m || p,
1783
1770
  icon: "file",
1784
1771
  seo: {
1785
- title: u,
1786
- description: x
1772
+ title: m,
1773
+ description: j
1787
1774
  },
1788
- visibility: j
1789
- }), d(u), y();
1775
+ visibility: v
1776
+ }), r(m), A();
1790
1777
  }
1791
- function X() {
1792
- b(n[o].name, u || g), a(o, {
1793
- path: N(g),
1794
- name: u || g,
1795
- 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",
1796
1783
  seo: {
1797
- title: u,
1798
- description: x
1784
+ title: m,
1785
+ description: j
1799
1786
  },
1800
- visibility: j
1801
- }), y();
1787
+ visibility: v
1788
+ }), A();
1802
1789
  }
1803
1790
  return /* @__PURE__ */ e.jsxs(
1804
1791
  "div",
1805
1792
  {
1806
- className: I.wrapper,
1807
- onClick: (f) => f.stopPropagation(),
1793
+ className: L.wrapper,
1794
+ onClick: (w) => w.stopPropagation(),
1808
1795
  children: [
1809
- /* @__PURE__ */ e.jsxs("div", { className: I.header, children: [
1796
+ /* @__PURE__ */ e.jsxs("div", { className: L.header, children: [
1810
1797
  /* @__PURE__ */ e.jsxs("h2", { children: [
1811
1798
  l ? "Edit" : "Create",
1812
1799
  " Blank Page"
1813
1800
  ] }),
1814
1801
  /* @__PURE__ */ e.jsx(
1815
- h,
1802
+ _,
1816
1803
  {
1817
1804
  name: "x",
1818
1805
  fill: "#757575",
1819
1806
  hoverable: !0,
1820
- onClick: y
1807
+ onClick: A
1821
1808
  }
1822
1809
  )
1823
1810
  ] }),
1824
- /* @__PURE__ */ e.jsxs("div", { className: I.content, children: [
1811
+ /* @__PURE__ */ e.jsxs("div", { className: L.content, children: [
1825
1812
  /* @__PURE__ */ e.jsx(
1826
- E,
1813
+ F,
1827
1814
  {
1828
1815
  label: "Page Slug",
1829
- onChange: (f) => r(f),
1830
- value: g,
1816
+ onChange: (w) => u(w),
1817
+ value: p,
1831
1818
  placeholder: "path-to-page",
1832
- disabled: !!(o && ((C = n[o]) != null && C.name) && le.includes(n[o].name)),
1819
+ disabled: !!(c && ((b = n[c]) != null && b.name) && ie.includes(n[c].name)),
1833
1820
  required: !0,
1834
1821
  regex: "^.+$"
1835
1822
  }
1836
1823
  ),
1837
1824
  /* @__PURE__ */ e.jsx(
1838
- E,
1825
+ F,
1839
1826
  {
1840
1827
  label: "Page Title",
1841
- onChange: (f) => p(f),
1842
- value: u,
1828
+ onChange: (w) => d(w),
1829
+ value: m,
1843
1830
  placeholder: "Contact us",
1844
- disabled: !!(o && ((B = n[o]) != null && B.name) && le.includes(n[o].name))
1831
+ disabled: !!(c && (($ = n[c]) != null && $.name) && ie.includes(n[c].name))
1845
1832
  }
1846
1833
  ),
1847
1834
  /* @__PURE__ */ e.jsx(
1848
- Xe,
1835
+ Ve,
1849
1836
  {
1850
1837
  label: "Description",
1851
- onChange: (f) => _(f),
1852
- value: x,
1838
+ onChange: (w) => g(w),
1839
+ value: j,
1853
1840
  placeholder: "Contact us at any time of the day or night. You are always welcome",
1854
1841
  maxLength: 150
1855
1842
  }
1856
1843
  ),
1857
1844
  /* @__PURE__ */ e.jsx(
1858
- Ze,
1845
+ Ke,
1859
1846
  {
1860
1847
  label: "Visibility",
1861
- defaultValue: j,
1848
+ defaultValue: v,
1862
1849
  options: [
1863
1850
  {
1864
1851
  value: "public",
@@ -1869,32 +1856,32 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1869
1856
  label: "Private"
1870
1857
  }
1871
1858
  ],
1872
- onChange: (f) => S(f)
1859
+ onChange: (w) => N(w)
1873
1860
  }
1874
1861
  ),
1875
- /* @__PURE__ */ e.jsxs("div", { className: I.preview, children: [
1876
- /* @__PURE__ */ e.jsx("span", { className: I.label, children: "Preview" }),
1877
- /* @__PURE__ */ e.jsxs("div", { className: I.block, children: [
1878
- /* @__PURE__ */ e.jsx("span", { className: I.slug, children: g || "yoursite.url" }),
1879
- /* @__PURE__ */ e.jsx("span", { className: I.title, children: u || "My Blank Page" }),
1880
- /* @__PURE__ */ e.jsx("span", { className: I.description, children: x || "It is My Description" })
1862
+ /* @__PURE__ */ e.jsxs("div", { className: L.preview, children: [
1863
+ /* @__PURE__ */ e.jsx("span", { className: L.label, children: "Preview" }),
1864
+ /* @__PURE__ */ e.jsxs("div", { className: L.block, children: [
1865
+ /* @__PURE__ */ e.jsx("span", { className: L.slug, children: p || "yoursite.url" }),
1866
+ /* @__PURE__ */ e.jsx("span", { className: L.title, children: m || "My Blank Page" }),
1867
+ /* @__PURE__ */ e.jsx("span", { className: L.description, children: j || "It is My Description" })
1881
1868
  ] })
1882
1869
  ] })
1883
1870
  ] }),
1884
- /* @__PURE__ */ e.jsxs("div", { className: I.buttons, children: [
1871
+ /* @__PURE__ */ e.jsxs("div", { className: L.buttons, children: [
1885
1872
  /* @__PURE__ */ e.jsx(
1886
- Z,
1873
+ X,
1887
1874
  {
1888
- className: I.cancel,
1889
- onClick: y,
1875
+ className: L.cancel,
1876
+ onClick: A,
1890
1877
  children: "Cancel"
1891
1878
  }
1892
1879
  ),
1893
1880
  /* @__PURE__ */ e.jsx(
1894
- Z,
1881
+ X,
1895
1882
  {
1896
- onClick: l ? X : U,
1897
- disabled: g.length === 0,
1883
+ onClick: l ? I : P,
1884
+ disabled: p.length === 0,
1898
1885
  children: l ? "Update" : "Create"
1899
1886
  }
1900
1887
  )
@@ -1902,61 +1889,94 @@ linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
1902
1889
  ]
1903
1890
  }
1904
1891
  );
1905
- }, ta = "_layout_kjedu_1", sa = "_main_kjedu_8", na = "_content_kjedu_15", be = {
1906
- layout: ta,
1907
- main: sa,
1908
- content: na
1909
- }, oa = () => {
1910
- const { isOpenModal: t, setIsOpenModal: n } = A(), { 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();
1911
1898
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1912
- /* @__PURE__ */ e.jsxs("div", { className: be.layout, children: [
1913
- /* @__PURE__ */ e.jsx(Qt, {}),
1914
- /* @__PURE__ */ e.jsxs("main", { className: be.main, children: [
1915
- /* @__PURE__ */ e.jsx(Ot, {}),
1916
- /* @__PURE__ */ e.jsxs("div", { className: be.content, children: [
1917
- /* @__PURE__ */ e.jsx(Ro, {}),
1918
- /* @__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, {})
1919
1906
  ] })
1920
1907
  ] })
1921
1908
  ] }),
1922
- t && /* @__PURE__ */ e.jsx(Ce, { close: n, children: /* @__PURE__ */ e.jsx(ea, {}) }),
1923
- s && /* @__PURE__ */ e.jsx(Ce, { 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, {}) })
1924
1911
  ] });
1925
1912
  };
1926
- 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() {
1927
1922
  try {
1928
- const { data: t } = await We.get(
1929
- `${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`
1930
1947
  );
1931
1948
  return t.items;
1932
1949
  } catch (t) {
1933
1950
  throw console.error("Error fetching page data:", t), t;
1934
1951
  }
1935
1952
  }
1936
- const ia = (t) => {
1937
- const { blocks: n, settings: s, header: a, footer: l } = t, { setBlocks: c, setSourceBlocks: o } = J(), { fonts: i, setFonts: d } = Ee(), { setSettings: b } = K(), { setPageContext: g } = A(), { setHeader: r, setFooter: u } = $();
1938
- return v.useEffect(() => {
1939
- const p = {};
1940
- Object.keys(n).map((_) => {
1941
- p[_] = {
1942
- ...n[_]
1943
- };
1944
- }), r(a), u(l), b(s), o(p), c(n), (async () => {
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();
1955
+ return x.useEffect(() => {
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 () => {
1945
1960
  if (i.length === 0) {
1946
- const j = await aa();
1947
- d([...j.map((S) => S.family)]);
1961
+ const N = await ia();
1962
+ r([...N.map((y) => y.family)]);
1948
1963
  }
1949
- g({
1950
- listings: void 0,
1951
- products: void 0,
1952
- reviews: void 0,
1953
- categories: void 0,
1954
- faqs: void 0,
1955
- general: void 0
1956
- });
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);
1957
1977
  })();
1958
- }, []), /* @__PURE__ */ e.jsx(oa, {});
1978
+ }, []), /* @__PURE__ */ e.jsx(ca, {});
1959
1979
  };
1960
1980
  export {
1961
- ia as Builder
1981
+ ua as Builder
1962
1982
  };