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