@billgangcom/theme-lib 1.10.2 → 1.11.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/builder.cjs.js +3 -3
- package/dist/builder.es.js +159 -159
- package/dist/{index-C8nZ3s7u.cjs → index-C4eTUjpB.cjs} +1 -1
- package/dist/{index-Ca7u1mPN.js → index-hz9iiZsE.js} +6 -6
- package/dist/shared/ui/Accordion/index.d.ts +7 -0
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +439 -404
- package/package.json +1 -1
package/dist/builder.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap";._icon_bsuj2_1 path{fill:var(--icon-fill)}._hoverable_bsuj2_5{cursor:pointer}._rotated_bsuj2_9{transform:rotate(180deg)}._button_3jsln_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_3jsln_1:disabled{opacity:.7;cursor:auto}._primary_3jsln_13{color:#fff;background-color:#ff3f19}._secondary_3jsln_18{color:#757575;background-color:#f8f8f8}._content_3jsln_23{display:flex;align-items:center;gap:4px}._wrapper_wp7u5_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_wp7u5_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_wp7u5_17{width:100%;background-color:var(--background-color);border-radius:12px;padding:7px 11px;font-size:16px;line-height:24px;border:1px solid var(--background-color)}._input_wp7u5_17::placeholder{color:#c2c2c2}._input_wp7u5_17:disabled{background-color:var(--background-color);opacity:.7}._required_wp7u5_36{border:1px solid #ff3f19}._paddingless_wp7u5_40{padding:0}._content_wp7u5_44{display:flex;align-items:center;gap:8px}._borderless_wp7u5_50{border-radius:0;border:none}._wrapper_1v1ye_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1v1ye_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_1v1ye_17{width:100%;background-color:var(--background-color);border-radius:12px;padding:10px 12px;font-size:14px;line-height:20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}._icon_1v1ye_30{transition:.2s}._rotate_1v1ye_34{transform:rotate(180deg)}._content_1v1ye_38{position:relative}._options_1v1ye_42{position:absolute;top:45px;width:100%;background-color:var(--background-color);border-radius:12px;font-size:14px;line-height:20px;display:flex;flex-direction:column;max-height:200px;z-index:10;overflow-y:scroll;cursor:pointer}._option_1v1ye_42{padding:10px 12px;border-radius:12px}._option_1v1ye_42:hover{background-color:#e6e6e6}._addon_1v1ye_66{display:flex;align-items:center;gap:6px}._wrapper_3w2ni_1{display:flex;width:fit-content;gap:8px;align-items:center;border-radius:12px;line-height:20px;color:#252525;font-size:14px;font-weight:400}._switch_3w2ni_13{width:40px;height:24px;background-color:#ccc;border-radius:25px;display:flex;align-items:center;padding:2px;cursor:pointer;transition:background-color .2s}._switch_3w2ni_13._active_3w2ni_24{background:#ff3f19}._switch_3w2ni_13 ._toggle_3w2ni_27{width:14px;height:14px;background-color:#fff;border-radius:16px;transition:transform .2s;transform:translate(2px)}._switch_3w2ni_13._active_3w2ni_24 ._toggle_3w2ni_27{transform:translate(18px)}._background_3w2ni_39{background-color:#f8f8f8}._padding_3w2ni_43{padding:8px}._wrapper_1inu5_1{border:var(--default-border);width:fit-content;height:fit-content;max-height:500px;max-width:500px;min-width:300px;padding:10px;left:10px;top:10px;position:absolute;z-index:1000;background-color:#fff;display:flex;border-radius:8px;justify-content:center;align-items:center;overflow:hidden}._blocks_1op3c_1{display:flex;align-items:center;gap:8px}._block_1op3c_1{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1op3c_18{border:1px solid #ff3f19}._applyButton_1cqw4_2{flex:0 1 50%;font-weight:400}._cancelButton_1cqw4_7{background-color:#f8f8f8;color:var(--accent-color)}._content_1cqw4_12{display:flex;flex-direction:column;width:100%}._label_1cqw4_18{padding:8px 12px;border-radius:8px;display:flex;align-items:center;position:relative;gap:8px;width:100%;background-color:var(--background-color);cursor:pointer}._colorValue_1cqw4_30{width:20px;height:20px;padding:2.5px;border-radius:2px}._modal_1cqw4_37{left:15px;width:288px;overflow-y:auto;z-index:100000000;position:fixed;background-color:#fff;border-radius:12px;padding:10px;border:1px solid #e6e6e6;height:400px;display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:24px;font-weight:700}._colorMap_1cqw4_56{position:relative;width:100%;height:300px;cursor:pointer;border-radius:4px}._indicator_1cqw4_64{position:absolute;width:20px;height:20px;border:4px solid white;border-radius:50%;pointer-events:none}._hueSlider_1cqw4_73{width:80%;left:30px;height:8px;position:absolute;bottom:80px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red,red);border-radius:5px}input[type=range]{-webkit-appearance:none;height:8px;outline:none;border-radius:5px;position:relative;display:flex;justify-content:center}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border:5px solid #fff;border-radius:50%;cursor:pointer}._slider_1cqw4_102{width:100%;cursor:pointer}._buttons_1cqw4_107{display:flex;gap:5px;width:100%}._name_1cqw4_113{line-height:20px;padding:0 4px 4px}._secondary_1cqw4_118{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_1cqw4_126{line-height:20px;font-size:14px;font-weight:400}._modal_1qb2a_1{position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100000;display:flex;padding:20px;justify-content:center;align-items:center;overflow:hidden}._wrapper_1qvfi_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%;position:relative}._label_1qvfi_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._textarea_1qvfi_18{width:100%;background-color:var(--background-color);border-radius:12px;padding:8px 12px;font-size:16px;line-height:24px;resize:none;min-height:80px}._textarea_1qvfi_18::placeholder{color:#c2c2c2}._length_1qvfi_33{position:absolute;bottom:12px;right:12px;color:#c2c2c2;line-height:20px}._wrapper_1fcne_2{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1fcne_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._options_1fcne_18{display:flex;gap:20px}._radioLabel_1fcne_23{display:flex;align-items:center;cursor:pointer;position:relative}._radio_1fcne_23{position:absolute;opacity:0;cursor:pointer}._custom_1fcne_36{height:20px;width:20px;border-radius:50%;border:1px solid #e6e6e6;display:inline-block;margin-right:8px;position:relative}._radio_1fcne_23:checked+._custom_1fcne_36{border-color:#ff3f19;background:#ffeae5}._custom_1fcne_36:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background-color:#e53e3e;opacity:0}._radio_1fcne_23:checked+._custom_1fcne_36:after{opacity:1}._option_1fcne_18{font-size:16px;line-height:24px;font-weight:400}._tip_pl6k0_1{display:flex;align-items:center;padding:8px;border-radius:12px;gap:8px}._text_pl6k0_9{flex:1 1 auto;line-height:20px;font-size:14px}._warning_pl6k0_15{background:#faf8e6;color:#c1972a}._error_pl6k0_20{background:#ffc3b7;color:#ff3f19}._hide_pl6k0_25{display:none}._customCheckbox_1b69m_1{display:inline-block;cursor:pointer;position:relative}._checkboxBox_1b69m_7{display:inline-block;width:20px;height:20px;border:1px solid #e6e6e6;border-radius:6px;position:relative}._checkboxBox_1b69m_7._checked_1b69m_16{background:#ffeae5;border:1px solid #ff3f19}._icon_1b69m_21{position:absolute;top:3px;left:3px}._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_11qr1_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_11qr1_8,._text_11qr1_9,._productsBlock_11qr1_10{padding:10px 0 16px;display:flex;flex-direction:column;gap:12px;width:100%}._productsBlock_11qr1_10{position:relative}._top_11qr1_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_11qr1_29{display:flex;flex-direction:column;gap:6px}._typeTexts_11qr1_35{display:flex;align-items:center;gap:8px}._block_11qr1_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_11qr1_52{border:1px solid #ff3f19}._products_11qr1_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_11qr1_10{display:flex;align-items:center;gap:8px;width:100%}._button_11qr1_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._disabled_11qr1_80{color:#757575}._image_11qr1_84{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_11qr1_91{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_11qr1_102{flex:1 1 100%}._buttons_11qr1_106{display:flex;align-items:center;gap:8px}._modal_11qr1_112{position:fixed;background-color:#fff;border:1px solid #f0f0f0;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_11qr1_112 ._top_11qr1_22{display:flex;align-items:center;justify-content:space-between}._link_11qr1_130{display:flex;flex-direction:column;gap:8px}._modalOptions_11qr1_136{display:flex;flex-direction:column;gap:10px}._other_1wtgi_1{display:flex;flex-direction:column;gap:6px}._subtitle_1wtgi_7{color:#757575;font-size:14px;line-height:20px;font-weight:400}._items_1wtgi_14{display:flex;flex-direction:column;gap:8px}._subtitle_41klp_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_41klp_8,._text_41klp_9,._productsBlock_41klp_10,._buttonsBlock_41klp_11{padding:10px 0 16px;display:flex;flex-direction:column}._buttonsBlock_41klp_11{position:relative}._top_41klp_21{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_41klp_28{display:flex;flex-direction:column;gap:6px}._typeTexts_41klp_34{display:flex;align-items:center;gap:8px}._block_41klp_40{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_41klp_51{border:1px solid #ff3f19}._products_41klp_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_41klp_10{display:flex;align-items:center;gap:8px;width:100%}._button_41klp_11{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_41klp_79{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_41klp_86{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_41klp_97{flex:1 1 100%}._buttons_41klp_11{display:flex;align-items:center;gap:8px}._modal_41klp_107{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_41klp_107 ._top_41klp_21{display:flex;align-items:center;justify-content:space-between}._other_41klp_124{display:flex;flex-direction:column;gap:6px}._options_41klp_130{display:flex;flex-direction:column;gap:15px}._subtitle_1y5sw_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_1y5sw_8,._text_1y5sw_9,._productsBlock_1y5sw_10,._buttonsBlock_1y5sw_11{padding:10px 0 16px;display:flex;flex-direction:column;border-bottom:1px solid #f0f0f0}._buttonsBlock_1y5sw_11{position:relative}._top_1y5sw_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1y5sw_29{display:flex;flex-direction:column;gap:6px}._typeTexts_1y5sw_35{display:flex;align-items:center;gap:8px}._block_1y5sw_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1y5sw_52{border:1px solid #ff3f19}._products_1y5sw_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_1y5sw_10{display:flex;align-items:center;gap:8px;width:100%}._button_1y5sw_11{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_1y5sw_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_1y5sw_87{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_1y5sw_98{flex:1 1 100%}._buttons_1y5sw_11{display:flex;align-items:center;gap:8px}._modal_1y5sw_108{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_1y5sw_108 ._top_1y5sw_22{display:flex;align-items:center;justify-content:space-between}._other_1y5sw_125{display:flex;flex-direction:column;gap:6px}._options_1y5sw_131{display:flex;flex-direction:column;gap:15px}._wrapper_tn7gb_1{display:flex;flex-direction:column;gap:6px}._subtitle_tn7gb_7{color:#757575;font-size:14px;line-height:20px;font-weight:400}._content_tn7gb_14{display:flex;align-items:center;gap:10px;width:100%}._range_tn7gb_21{position:relative;flex:1}._track_tn7gb_26{position:absolute;width:95%;height:6px;background-color:#f0f0f0;border-radius:9999px;z-index:1}._progress_tn7gb_35{position:absolute;height:6px;width:100%;background-color:#ff3f19;transition:width .2s;border-radius:9999px;z-index:1}._dots_tn7gb_45{position:absolute;display:flex;justify-content:space-between;width:100%}._dot_tn7gb_45{width:14px;height:14px;border-radius:50%;transition:transform .2s;position:relative;top:-4px;left:0;z-index:1}._dot_tn7gb_45._active_tn7gb_62{background-color:#ff3f19;transform:scale(1)}._dot_tn7gb_45:not(._active_tn7gb_62){background-color:#e5e7eb;transform:scale(.9)}._dot_tn7gb_45:hover{transform:scale(1.1)}._input_tn7gb_74{position:absolute;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}._input_tn7gb_74::-webkit-slider-thumb,._input_tn7gb_74::-moz-range-thumb{-webkit-appearance:none!important;-moz-appearance:none;appearance:none;width:0;height:0}._countBlock_tn7gb_88{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8f8f8;border-radius:12px}._count_tn7gb_88{font-size:16px;font-weight:400;line-height:24px}._controls_tn7gb_103{display:flex;flex-direction:column}._button_tn7gb_108{transition:background-color .2s}._button_tn7gb_108:hover{background-color:#f3f4f6}._button_tn7gb_108:disabled{opacity:.5}._subtitle_1nl8x_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_1nl8x_8,._text_1nl8x_9,._productsBlock_1nl8x_10{padding:10px 0 16px;display:flex;flex-direction:column;gap:12px;width:100%}._productsBlock_1nl8x_10{position:relative}._top_1nl8x_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1nl8x_29{display:flex;flex-direction:column;gap:6px}._typeTexts_1nl8x_35{display:flex;align-items:center;gap:8px}._block_1nl8x_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1nl8x_52{border:1px solid #ff3f19}._products_1nl8x_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_1nl8x_10{display:flex;align-items:center;gap:8px;width:100%}._button_1nl8x_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_1nl8x_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_1nl8x_87{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_1nl8x_98{flex:1 1 100%}._buttons_1nl8x_102{display:flex;align-items:center;gap:8px}._modal_1nl8x_108{position:fixed;background-color:#fff;border:1px solid #f0f0f0;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_1nl8x_108 ._top_1nl8x_22{display:flex;align-items:center;justify-content:space-between}._link_1nl8x_126{display:flex;flex-direction:column;gap:8px}._modalOptions_1nl8x_132{display:flex;flex-direction:column;gap:10px}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { j as e, I as p, k as Ie, c as v, l as Y, m as P, n as B, o as le, B as Q, p as H, q as J, r as Ge, s as Se, t as K, w as qe, x as _e, y as Fe, z as O, e as ke, D as ze, H as We, u as Ve, d as Xe, f as ie, g as Ke, a as M, b as se, A as Ce, S as ve, P as je, E as De, F as Qe, T as Ye, R as Je, G as Ze, M as Be, i as et, J as Me } from "./index-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap";._icon_bsuj2_1 path{fill:var(--icon-fill)}._hoverable_bsuj2_5{cursor:pointer}._rotated_bsuj2_9{transform:rotate(180deg)}._button_3jsln_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_3jsln_1:disabled{opacity:.7;cursor:auto}._primary_3jsln_13{color:#fff;background-color:#ff3f19}._secondary_3jsln_18{color:#757575;background-color:#f8f8f8}._content_3jsln_23{display:flex;align-items:center;gap:4px}._wrapper_wp7u5_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_wp7u5_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_wp7u5_17{width:100%;background-color:var(--background-color);border-radius:12px;padding:7px 11px;font-size:16px;line-height:24px;border:1px solid var(--background-color)}._input_wp7u5_17::placeholder{color:#c2c2c2}._input_wp7u5_17:disabled{background-color:var(--background-color);opacity:.7}._required_wp7u5_36{border:1px solid #ff3f19}._paddingless_wp7u5_40{padding:0}._content_wp7u5_44{display:flex;align-items:center;gap:8px}._borderless_wp7u5_50{border-radius:0;border:none}._wrapper_1v1ye_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1v1ye_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_1v1ye_17{width:100%;background-color:var(--background-color);border-radius:12px;padding:10px 12px;font-size:14px;line-height:20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}._icon_1v1ye_30{transition:.2s}._rotate_1v1ye_34{transform:rotate(180deg)}._content_1v1ye_38{position:relative}._options_1v1ye_42{position:absolute;top:45px;width:100%;background-color:var(--background-color);border-radius:12px;font-size:14px;line-height:20px;display:flex;flex-direction:column;max-height:200px;z-index:10;overflow-y:scroll;cursor:pointer}._option_1v1ye_42{padding:10px 12px;border-radius:12px}._option_1v1ye_42:hover{background-color:#e6e6e6}._addon_1v1ye_66{display:flex;align-items:center;gap:6px}._wrapper_3w2ni_1{display:flex;width:fit-content;gap:8px;align-items:center;border-radius:12px;line-height:20px;color:#252525;font-size:14px;font-weight:400}._switch_3w2ni_13{width:40px;height:24px;background-color:#ccc;border-radius:25px;display:flex;align-items:center;padding:2px;cursor:pointer;transition:background-color .2s}._switch_3w2ni_13._active_3w2ni_24{background:#ff3f19}._switch_3w2ni_13 ._toggle_3w2ni_27{width:14px;height:14px;background-color:#fff;border-radius:16px;transition:transform .2s;transform:translate(2px)}._switch_3w2ni_13._active_3w2ni_24 ._toggle_3w2ni_27{transform:translate(18px)}._background_3w2ni_39{background-color:#f8f8f8}._padding_3w2ni_43{padding:8px}._wrapper_1inu5_1{border:var(--default-border);width:fit-content;height:fit-content;max-height:500px;max-width:500px;min-width:300px;padding:10px;left:10px;top:10px;position:absolute;z-index:1000;background-color:#fff;display:flex;border-radius:8px;justify-content:center;align-items:center;overflow:hidden}._blocks_1op3c_1{display:flex;align-items:center;gap:8px}._block_1op3c_1{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1op3c_18{border:1px solid #ff3f19}._applyButton_1cqw4_2{flex:0 1 50%;font-weight:400}._cancelButton_1cqw4_7{background-color:#f8f8f8;color:var(--accent-color)}._content_1cqw4_12{display:flex;flex-direction:column;width:100%}._label_1cqw4_18{padding:8px 12px;border-radius:8px;display:flex;align-items:center;position:relative;gap:8px;width:100%;background-color:var(--background-color);cursor:pointer}._colorValue_1cqw4_30{width:20px;height:20px;padding:2.5px;border-radius:2px}._modal_1cqw4_37{left:15px;width:288px;overflow-y:auto;z-index:100000000;position:fixed;background-color:#fff;border-radius:12px;padding:10px;border:1px solid #e6e6e6;height:400px;display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:24px;font-weight:700}._colorMap_1cqw4_56{position:relative;width:100%;height:300px;cursor:pointer;border-radius:4px}._indicator_1cqw4_64{position:absolute;width:20px;height:20px;border:4px solid white;border-radius:50%;pointer-events:none}._hueSlider_1cqw4_73{width:80%;left:30px;height:8px;position:absolute;bottom:80px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red,red);border-radius:5px}input[type=range]{-webkit-appearance:none;height:8px;outline:none;border-radius:5px;position:relative;display:flex;justify-content:center}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border:5px solid #fff;border-radius:50%;cursor:pointer}._slider_1cqw4_102{width:100%;cursor:pointer}._buttons_1cqw4_107{display:flex;gap:5px;width:100%}._name_1cqw4_113{line-height:20px;padding:0 4px 4px}._secondary_1cqw4_118{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_1cqw4_126{line-height:20px;font-size:14px;font-weight:400}._modal_1qb2a_1{position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100000;display:flex;padding:20px;justify-content:center;align-items:center;overflow:hidden}._wrapper_1qvfi_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%;position:relative}._label_1qvfi_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._textarea_1qvfi_18{width:100%;background-color:var(--background-color);border-radius:12px;padding:8px 12px;font-size:16px;line-height:24px;resize:none;min-height:80px}._textarea_1qvfi_18::placeholder{color:#c2c2c2}._length_1qvfi_33{position:absolute;bottom:12px;right:12px;color:#c2c2c2;line-height:20px}._wrapper_1fcne_2{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1fcne_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._options_1fcne_18{display:flex;gap:20px}._radioLabel_1fcne_23{display:flex;align-items:center;cursor:pointer;position:relative}._radio_1fcne_23{position:absolute;opacity:0;cursor:pointer}._custom_1fcne_36{height:20px;width:20px;border-radius:50%;border:1px solid #e6e6e6;display:inline-block;margin-right:8px;position:relative}._radio_1fcne_23:checked+._custom_1fcne_36{border-color:#ff3f19;background:#ffeae5}._custom_1fcne_36:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background-color:#e53e3e;opacity:0}._radio_1fcne_23:checked+._custom_1fcne_36:after{opacity:1}._option_1fcne_18{font-size:16px;line-height:24px;font-weight:400}._tip_pl6k0_1{display:flex;align-items:center;padding:8px;border-radius:12px;gap:8px}._text_pl6k0_9{flex:1 1 auto;line-height:20px;font-size:14px}._warning_pl6k0_15{background:#faf8e6;color:#c1972a}._error_pl6k0_20{background:#ffc3b7;color:#ff3f19}._hide_pl6k0_25{display:none}._customCheckbox_1b69m_1{display:inline-block;cursor:pointer;position:relative}._checkboxBox_1b69m_7{display:inline-block;width:20px;height:20px;border:1px solid #e6e6e6;border-radius:6px;position:relative}._checkboxBox_1b69m_7._checked_1b69m_16{background:#ffeae5;border:1px solid #ff3f19}._icon_1b69m_21{position:absolute;top:3px;left:3px}._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}._accordion_2tiiw_1{border-radius:24px;overflow:hidden;transition:all .3s ease;background-color:#f8f8f8;padding:24px}._header_2tiiw_9{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700}._header_2tiiw_9 ._icon_2tiiw_16{transition:transform .3s ease}._header_2tiiw_9 ._icon_2tiiw_16._open_2tiiw_19{transform:rotate(180deg)}._content_2tiiw_23{overflow:hidden;transition:height .3s ease}._wrapper_1g82c_2{display:flex;flex-direction:column;gap:10px}._alignmentBlock_1g82c_8{padding:10px 0 16px;display:flex;flex-direction:column;gap:6px}._title_1g82c_15{font-weight:700;line-height:24px;font-size:16px;color:#252525}._subtitle_1g82c_22{color:#757575;font-size:14px;line-height:20px;font-weight:400}._alignmentContent_1g82c_29{display:flex;justify-content:space-between;align-items:stretch}._alignments_1g82c_35{border-radius:12px;background:#f8f8f8;display:grid;gap:4px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);flex:0 0 50%}._alignment_1g82c_8{cursor:pointer;display:flex;height:100%;width:100%;align-items:center;justify-content:center}._circle_1g82c_54{width:6px;height:6px;border-radius:50%;background-color:#c2c2c2}._paddings_1g82c_61{border-radius:12px;display:grid;gap:4px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._padding_1g82c_61{width:68px;display:flex;align-items:center;gap:4px;background:#f8f8f8;border-radius:12px;padding:10px 8px}._input_1g82c_79{width:100%}._subtitle_2zbxx_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_2zbxx_8,._text_2zbxx_9{padding:10px 0 16px;display:flex;flex-direction:column;border-bottom:1px solid #f0f0f0}._top_2zbxx_16{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_2zbxx_23{display:flex;flex-direction:column;gap:6px}._typeTexts_3zlec_1{display:flex;align-items:center;gap:8px}._block_3zlec_7{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_3zlec_18{border:1px solid #ff3f19}._subtitle_11qr1_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_11qr1_8,._text_11qr1_9,._productsBlock_11qr1_10{padding:10px 0 16px;display:flex;flex-direction:column;gap:12px;width:100%}._productsBlock_11qr1_10{position:relative}._top_11qr1_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_11qr1_29{display:flex;flex-direction:column;gap:6px}._typeTexts_11qr1_35{display:flex;align-items:center;gap:8px}._block_11qr1_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_11qr1_52{border:1px solid #ff3f19}._products_11qr1_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_11qr1_10{display:flex;align-items:center;gap:8px;width:100%}._button_11qr1_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._disabled_11qr1_80{color:#757575}._image_11qr1_84{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_11qr1_91{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_11qr1_102{flex:1 1 100%}._buttons_11qr1_106{display:flex;align-items:center;gap:8px}._modal_11qr1_112{position:fixed;background-color:#fff;border:1px solid #f0f0f0;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_11qr1_112 ._top_11qr1_22{display:flex;align-items:center;justify-content:space-between}._link_11qr1_130{display:flex;flex-direction:column;gap:8px}._modalOptions_11qr1_136{display:flex;flex-direction:column;gap:10px}._other_1wtgi_1{display:flex;flex-direction:column;gap:6px}._subtitle_1wtgi_7{color:#757575;font-size:14px;line-height:20px;font-weight:400}._items_1wtgi_14{display:flex;flex-direction:column;gap:8px}._subtitle_41klp_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_41klp_8,._text_41klp_9,._productsBlock_41klp_10,._buttonsBlock_41klp_11{padding:10px 0 16px;display:flex;flex-direction:column}._buttonsBlock_41klp_11{position:relative}._top_41klp_21{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_41klp_28{display:flex;flex-direction:column;gap:6px}._typeTexts_41klp_34{display:flex;align-items:center;gap:8px}._block_41klp_40{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_41klp_51{border:1px solid #ff3f19}._products_41klp_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_41klp_10{display:flex;align-items:center;gap:8px;width:100%}._button_41klp_11{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_41klp_79{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_41klp_86{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_41klp_97{flex:1 1 100%}._buttons_41klp_11{display:flex;align-items:center;gap:8px}._modal_41klp_107{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_41klp_107 ._top_41klp_21{display:flex;align-items:center;justify-content:space-between}._other_41klp_124{display:flex;flex-direction:column;gap:6px}._options_41klp_130{display:flex;flex-direction:column;gap:15px}._subtitle_1y5sw_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_1y5sw_8,._text_1y5sw_9,._productsBlock_1y5sw_10,._buttonsBlock_1y5sw_11{padding:10px 0 16px;display:flex;flex-direction:column;border-bottom:1px solid #f0f0f0}._buttonsBlock_1y5sw_11{position:relative}._top_1y5sw_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1y5sw_29{display:flex;flex-direction:column;gap:6px}._typeTexts_1y5sw_35{display:flex;align-items:center;gap:8px}._block_1y5sw_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1y5sw_52{border:1px solid #ff3f19}._products_1y5sw_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_1y5sw_10{display:flex;align-items:center;gap:8px;width:100%}._button_1y5sw_11{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_1y5sw_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_1y5sw_87{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_1y5sw_98{flex:1 1 100%}._buttons_1y5sw_11{display:flex;align-items:center;gap:8px}._modal_1y5sw_108{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_1y5sw_108 ._top_1y5sw_22{display:flex;align-items:center;justify-content:space-between}._other_1y5sw_125{display:flex;flex-direction:column;gap:6px}._options_1y5sw_131{display:flex;flex-direction:column;gap:15px}._wrapper_tn7gb_1{display:flex;flex-direction:column;gap:6px}._subtitle_tn7gb_7{color:#757575;font-size:14px;line-height:20px;font-weight:400}._content_tn7gb_14{display:flex;align-items:center;gap:10px;width:100%}._range_tn7gb_21{position:relative;flex:1}._track_tn7gb_26{position:absolute;width:95%;height:6px;background-color:#f0f0f0;border-radius:9999px;z-index:1}._progress_tn7gb_35{position:absolute;height:6px;width:100%;background-color:#ff3f19;transition:width .2s;border-radius:9999px;z-index:1}._dots_tn7gb_45{position:absolute;display:flex;justify-content:space-between;width:100%}._dot_tn7gb_45{width:14px;height:14px;border-radius:50%;transition:transform .2s;position:relative;top:-4px;left:0;z-index:1}._dot_tn7gb_45._active_tn7gb_62{background-color:#ff3f19;transform:scale(1)}._dot_tn7gb_45:not(._active_tn7gb_62){background-color:#e5e7eb;transform:scale(.9)}._dot_tn7gb_45:hover{transform:scale(1.1)}._input_tn7gb_74{position:absolute;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}._input_tn7gb_74::-webkit-slider-thumb,._input_tn7gb_74::-moz-range-thumb{-webkit-appearance:none!important;-moz-appearance:none;appearance:none;width:0;height:0}._countBlock_tn7gb_88{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f8f8f8;border-radius:12px}._count_tn7gb_88{font-size:16px;font-weight:400;line-height:24px}._controls_tn7gb_103{display:flex;flex-direction:column}._button_tn7gb_108{transition:background-color .2s}._button_tn7gb_108:hover{background-color:#f3f4f6}._button_tn7gb_108:disabled{opacity:.5}._subtitle_1nl8x_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_1nl8x_8,._text_1nl8x_9,._productsBlock_1nl8x_10{padding:10px 0 16px;display:flex;flex-direction:column;gap:12px;width:100%}._productsBlock_1nl8x_10{position:relative}._top_1nl8x_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1nl8x_29{display:flex;flex-direction:column;gap:6px}._typeTexts_1nl8x_35{display:flex;align-items:center;gap:8px}._block_1nl8x_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1nl8x_52{border:1px solid #ff3f19}._products_1nl8x_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_1nl8x_10{display:flex;align-items:center;gap:8px;width:100%}._button_1nl8x_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_1nl8x_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_1nl8x_87{border-radius:12px;display:flex;gap:4px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:#f8f8f8;padding:8px 12px}._name_1nl8x_98{flex:1 1 100%}._buttons_1nl8x_102{display:flex;align-items:center;gap:8px}._modal_1nl8x_108{position:fixed;background-color:#fff;border:1px solid #f0f0f0;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_1nl8x_108 ._top_1nl8x_22{display:flex;align-items:center;justify-content:space-between}._link_1nl8x_126{display:flex;flex-direction:column;gap:8px}._modalOptions_1nl8x_132{display:flex;flex-direction:column;gap:10px}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { j as e, I as p, k as Ie, c as v, l as Y, m as P, n as B, o as le, B as Q, p as H, q as J, r as Ge, s as Se, t as K, w as qe, x as _e, y as Fe, z as O, e as ke, D as ze, H as We, u as Ve, d as Xe, f as ie, g as Ke, a as M, b as se, A as Ce, S as ve, P as je, E as De, F as Qe, T as Ye, R as Je, G as Ze, M as Be, i as et, J as Me } from "./index-hz9iiZsE.js";
|
|
3
3
|
import _, { useMemo as He } from "react";
|
|
4
4
|
const tt = [
|
|
5
5
|
{
|
|
@@ -155,21 +155,21 @@ const tt = [
|
|
|
155
155
|
deletePage: s,
|
|
156
156
|
isOpenSelectModal: l,
|
|
157
157
|
setIsOpenSelectModal: c
|
|
158
|
-
} = P(), { deletePage:
|
|
158
|
+
} = P(), { deletePage: C } = B(), [m, S] = _.useState("");
|
|
159
159
|
return _.useEffect(() => {
|
|
160
|
-
const
|
|
160
|
+
const d = () => {
|
|
161
161
|
c(!1);
|
|
162
162
|
};
|
|
163
|
-
return document.body.addEventListener("click",
|
|
164
|
-
document.body.removeEventListener("click",
|
|
163
|
+
return document.body.addEventListener("click", d), () => {
|
|
164
|
+
document.body.removeEventListener("click", d);
|
|
165
165
|
};
|
|
166
166
|
}, []), /* @__PURE__ */ e.jsxs("div", { className: q.pages, children: [
|
|
167
167
|
/* @__PURE__ */ e.jsxs(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
170
170
|
className: q.default,
|
|
171
|
-
onClick: (
|
|
172
|
-
|
|
171
|
+
onClick: (d) => {
|
|
172
|
+
d.stopPropagation(), c(!l);
|
|
173
173
|
},
|
|
174
174
|
children: [
|
|
175
175
|
/* @__PURE__ */ e.jsx(
|
|
@@ -197,53 +197,53 @@ const tt = [
|
|
|
197
197
|
"div",
|
|
198
198
|
{
|
|
199
199
|
className: q.modal,
|
|
200
|
-
onClick: (
|
|
200
|
+
onClick: (d) => d.stopPropagation(),
|
|
201
201
|
children: [
|
|
202
|
-
Object.keys(r).map((
|
|
203
|
-
const
|
|
202
|
+
Object.keys(r).map((d) => {
|
|
203
|
+
const u = r[d];
|
|
204
204
|
return /* @__PURE__ */ e.jsxs(
|
|
205
205
|
"div",
|
|
206
206
|
{
|
|
207
207
|
className: v(q.page, {
|
|
208
|
-
[q.hoverable]: m ===
|
|
208
|
+
[q.hoverable]: m === d
|
|
209
209
|
}),
|
|
210
|
-
onMouseEnter: () =>
|
|
211
|
-
onMouseLeave: () =>
|
|
210
|
+
onMouseEnter: () => S(d),
|
|
211
|
+
onMouseLeave: () => S(""),
|
|
212
212
|
onClick: () => {
|
|
213
|
-
|
|
213
|
+
S(""), i(!1), o(d), c(!1);
|
|
214
214
|
},
|
|
215
215
|
children: [
|
|
216
216
|
/* @__PURE__ */ e.jsx(
|
|
217
217
|
p,
|
|
218
218
|
{
|
|
219
|
-
name:
|
|
219
|
+
name: u.icon,
|
|
220
220
|
fill: "#252525"
|
|
221
221
|
}
|
|
222
222
|
),
|
|
223
|
-
/* @__PURE__ */ e.jsx("span", { className: q.text, children: le.includes(
|
|
224
|
-
m ===
|
|
223
|
+
/* @__PURE__ */ e.jsx("span", { className: q.text, children: le.includes(u.name) ? `${E(u.name)} page` : u.name }),
|
|
224
|
+
m === d && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
225
225
|
/* @__PURE__ */ e.jsx(
|
|
226
226
|
p,
|
|
227
227
|
{
|
|
228
228
|
name: "Gear",
|
|
229
229
|
fill: "#757575",
|
|
230
230
|
onClick: (x) => {
|
|
231
|
-
x.stopPropagation(), i(!0), a(
|
|
231
|
+
x.stopPropagation(), i(!0), a(d), n(!0);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
),
|
|
235
|
-
!le.includes(
|
|
235
|
+
!le.includes(u.name) && /* @__PURE__ */ e.jsx(
|
|
236
236
|
p,
|
|
237
237
|
{
|
|
238
238
|
name: "Trash",
|
|
239
239
|
fill: "#C12A2A",
|
|
240
240
|
onClick: (x) => {
|
|
241
|
-
r[t].name ===
|
|
241
|
+
r[t].name === u.name && o("home"), x.stopPropagation(), s(d), C(u.name);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
)
|
|
245
245
|
] }),
|
|
246
|
-
r[t].name ===
|
|
246
|
+
r[t].name === u.name && /* @__PURE__ */ e.jsx(
|
|
247
247
|
p,
|
|
248
248
|
{
|
|
249
249
|
name: "Check",
|
|
@@ -252,7 +252,7 @@ const tt = [
|
|
|
252
252
|
)
|
|
253
253
|
]
|
|
254
254
|
},
|
|
255
|
-
|
|
255
|
+
d
|
|
256
256
|
);
|
|
257
257
|
}),
|
|
258
258
|
/* @__PURE__ */ e.jsx("div", { className: q.separator }),
|
|
@@ -260,8 +260,8 @@ const tt = [
|
|
|
260
260
|
Q,
|
|
261
261
|
{
|
|
262
262
|
className: q.button,
|
|
263
|
-
onClick: (
|
|
264
|
-
|
|
263
|
+
onClick: (d) => {
|
|
264
|
+
d.stopPropagation(), n(!0);
|
|
265
265
|
},
|
|
266
266
|
size: "l",
|
|
267
267
|
children: [
|
|
@@ -320,40 +320,40 @@ const tt = [
|
|
|
320
320
|
/* @__PURE__ */ e.jsx("div", { children: "Current Theme" })
|
|
321
321
|
] }), Et = () => {
|
|
322
322
|
const { themeSettings: t } = H(), { settings: o } = J(), [n, r] = _.useState(null), [i, a] = _.useState(!1), { pages: s } = P(), { blocks: l } = B();
|
|
323
|
-
function c(
|
|
323
|
+
function c(u, x) {
|
|
324
324
|
return x.map(
|
|
325
|
-
(b) => Object.values(b.value.blockSettings).filter((j) => j.type ===
|
|
325
|
+
(b) => Object.values(b.value.blockSettings).filter((j) => j.type === u).map((j) => j.value).flat()
|
|
326
326
|
).flat().map((b) => b.listingId);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
return c(
|
|
328
|
+
function C(u, x) {
|
|
329
|
+
return c(u, x).some((b) => b);
|
|
330
330
|
}
|
|
331
|
-
function m(
|
|
332
|
-
const
|
|
333
|
-
return Array.isArray(
|
|
331
|
+
function m(u, x) {
|
|
332
|
+
const h = c(u, x);
|
|
333
|
+
return Array.isArray(h) && h.length > 0 ? Math.max(...h) : 0;
|
|
334
334
|
}
|
|
335
|
-
function u
|
|
336
|
-
const x = Object.keys(s).find((
|
|
335
|
+
function S(u) {
|
|
336
|
+
const x = Object.keys(s).find((h) => s[h].name === u);
|
|
337
337
|
return x ? s[x] : null;
|
|
338
338
|
}
|
|
339
|
-
const
|
|
339
|
+
const d = () => {
|
|
340
340
|
if (i)
|
|
341
341
|
n && clearTimeout(n);
|
|
342
342
|
else {
|
|
343
|
-
const x = Object.keys(l).map((
|
|
344
|
-
const b =
|
|
343
|
+
const x = Object.keys(l).map((h) => {
|
|
344
|
+
const b = S(h);
|
|
345
345
|
return {
|
|
346
|
-
name: b ? b.name :
|
|
347
|
-
path:
|
|
346
|
+
name: b ? b.name : h,
|
|
347
|
+
path: h === "home" ? "/" : (b == null ? void 0 : b.path) || h,
|
|
348
348
|
layout: {
|
|
349
|
-
...l[
|
|
349
|
+
...l[h]
|
|
350
350
|
},
|
|
351
|
-
neededProductIds: [...c("ProductId", Object.values(l[
|
|
352
|
-
neededCategoryIds: [...c("CategoryId", Object.values(l[
|
|
353
|
-
neededAnnouncementIds: [...c("AnnouncementId", Object.values(l[
|
|
354
|
-
neededListingIds: [...c("listings", Object.values(l[
|
|
355
|
-
neededFaqs:
|
|
356
|
-
neededReviewCount: m("ReviewCount", Object.values(l[
|
|
351
|
+
neededProductIds: [...c("ProductId", Object.values(l[h]))],
|
|
352
|
+
neededCategoryIds: [...c("CategoryId", Object.values(l[h]))],
|
|
353
|
+
neededAnnouncementIds: [...c("AnnouncementId", Object.values(l[h]))],
|
|
354
|
+
neededListingIds: [...c("listings", Object.values(l[h]))],
|
|
355
|
+
neededFaqs: C("Faqs", Object.values(l[h])),
|
|
356
|
+
neededReviewCount: m("ReviewCount", Object.values(l[h])),
|
|
357
357
|
seo: {
|
|
358
358
|
pageTitle: b ? b.seo.title : "",
|
|
359
359
|
pageDescription: b ? b.seo.description : ""
|
|
@@ -367,10 +367,10 @@ const tt = [
|
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
a(!0);
|
|
370
|
-
const
|
|
370
|
+
const u = setTimeout(() => {
|
|
371
371
|
a(!1);
|
|
372
372
|
}, 2e3);
|
|
373
|
-
r(
|
|
373
|
+
r(u);
|
|
374
374
|
};
|
|
375
375
|
return /* @__PURE__ */ e.jsxs("div", { className: ue.header, children: [
|
|
376
376
|
/* @__PURE__ */ e.jsxs("div", { className: ue.left, children: [
|
|
@@ -381,7 +381,7 @@ const tt = [
|
|
|
381
381
|
/* @__PURE__ */ e.jsxs("div", { className: ue.right, children: [
|
|
382
382
|
/* @__PURE__ */ e.jsx(Rt, {}),
|
|
383
383
|
/* @__PURE__ */ e.jsx(lt, {}),
|
|
384
|
-
/* @__PURE__ */ e.jsx(Q, { onClick:
|
|
384
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: d, children: "Save" })
|
|
385
385
|
] })
|
|
386
386
|
] });
|
|
387
387
|
}, Ut = "_exit_2ce42_1", Ot = "_text_2ce42_10", Ae = {
|
|
@@ -507,18 +507,18 @@ const tt = [
|
|
|
507
507
|
border: yn,
|
|
508
508
|
deleteButton: An
|
|
509
509
|
}, Pn = () => {
|
|
510
|
-
const { activeBlock: t } = Y(), { blocks: o, removeBlock: n, moveBlock: r, duplicateBlock: i } = B(), { currentPage: a, pages: s } = P(), l = Object.keys(o[s[a].name]), c = l.indexOf(t),
|
|
510
|
+
const { activeBlock: t } = Y(), { blocks: o, removeBlock: n, moveBlock: r, duplicateBlock: i } = B(), { currentPage: a, pages: s } = P(), l = Object.keys(o[s[a].name]), c = l.indexOf(t), C = () => {
|
|
511
511
|
c > 0 && r(s[a].name, c, c - 1);
|
|
512
512
|
}, m = () => {
|
|
513
513
|
c < l.length - 1 && r(s[a].name, c, c + 1);
|
|
514
|
-
},
|
|
514
|
+
}, S = () => {
|
|
515
515
|
i(s[a].name, t);
|
|
516
516
|
};
|
|
517
517
|
return /* @__PURE__ */ e.jsx("div", { className: D.sidebar, children: /* @__PURE__ */ e.jsxs("div", { className: D.content, children: [
|
|
518
518
|
/* @__PURE__ */ e.jsx(
|
|
519
519
|
"button",
|
|
520
520
|
{
|
|
521
|
-
onClick:
|
|
521
|
+
onClick: C,
|
|
522
522
|
className: v(D.button, D.moveButton),
|
|
523
523
|
disabled: c === 0,
|
|
524
524
|
children: /* @__PURE__ */ e.jsx(p, { name: "ArrowUp" })
|
|
@@ -537,7 +537,7 @@ const tt = [
|
|
|
537
537
|
/* @__PURE__ */ e.jsx(
|
|
538
538
|
"button",
|
|
539
539
|
{
|
|
540
|
-
onClick:
|
|
540
|
+
onClick: S,
|
|
541
541
|
className: v(D.button, D.moveButton),
|
|
542
542
|
children: /* @__PURE__ */ e.jsx(p, { name: "Copy" })
|
|
543
543
|
}
|
|
@@ -565,48 +565,48 @@ const tt = [
|
|
|
565
565
|
const { header: t } = B(), { settings: o } = J(), { pageContext: n } = P();
|
|
566
566
|
return t == null ? void 0 : t.renderBlock(o, n);
|
|
567
567
|
}, Nn = _.memo(() => {
|
|
568
|
-
const { setActiveBlock: t, activeBlock: o } = Y(), { blocks: n } = K(), { blocks: r } = B(), { settings: i } = J(), { currentPage: a, pages: s, setIsOpenSelectModal: l } = P(),
|
|
568
|
+
const { setActiveBlock: t, activeBlock: o } = Y(), { blocks: n } = K(), { blocks: r } = B(), { settings: i } = J(), { currentPage: a, pages: s, setIsOpenSelectModal: l, pageContext: c } = P(), C = _.useRef(o);
|
|
569
569
|
_.useEffect(() => {
|
|
570
|
-
|
|
570
|
+
C.current = o;
|
|
571
571
|
}, [o]), _.useEffect(() => {
|
|
572
|
-
const
|
|
573
|
-
|
|
572
|
+
const d = () => {
|
|
573
|
+
C.current && t(null);
|
|
574
574
|
};
|
|
575
|
-
return document.body.addEventListener("click",
|
|
576
|
-
document.body.removeEventListener("click",
|
|
575
|
+
return document.body.addEventListener("click", d), () => {
|
|
576
|
+
document.body.removeEventListener("click", d);
|
|
577
577
|
};
|
|
578
578
|
}, []);
|
|
579
|
-
const
|
|
580
|
-
const
|
|
581
|
-
return Object.assign(
|
|
582
|
-
},
|
|
583
|
-
(
|
|
579
|
+
const m = (d) => {
|
|
580
|
+
const u = new n[d.name]();
|
|
581
|
+
return Object.assign(u, d.value), u.renderBlock(i, c);
|
|
582
|
+
}, S = _.useCallback(
|
|
583
|
+
(d) => m(d),
|
|
584
584
|
[r, i]
|
|
585
585
|
);
|
|
586
586
|
return /* @__PURE__ */ e.jsxs(
|
|
587
587
|
"div",
|
|
588
588
|
{
|
|
589
|
-
onClick: (
|
|
590
|
-
|
|
589
|
+
onClick: (d) => {
|
|
590
|
+
d.stopPropagation(), l(!1);
|
|
591
591
|
},
|
|
592
592
|
className: ge.content,
|
|
593
593
|
children: [
|
|
594
594
|
/* @__PURE__ */ e.jsx(Tn, {}),
|
|
595
|
-
r[s[a].name] && Object.keys(r[s[a].name]).map((
|
|
595
|
+
r[s[a].name] && Object.keys(r[s[a].name]).map((d) => /* @__PURE__ */ e.jsxs(
|
|
596
596
|
"div",
|
|
597
597
|
{
|
|
598
|
-
onClick: () => t(
|
|
598
|
+
onClick: () => t(d),
|
|
599
599
|
className: v(ge.block, {
|
|
600
|
-
[ge.active]: o ===
|
|
600
|
+
[ge.active]: o === d
|
|
601
601
|
}),
|
|
602
602
|
children: [
|
|
603
|
-
o ===
|
|
604
|
-
o ===
|
|
603
|
+
o === d && /* @__PURE__ */ e.jsx("div", { className: ge.name, children: r[s[a].name][d].name }),
|
|
604
|
+
o === d && /* @__PURE__ */ e.jsx(Pn, {}),
|
|
605
605
|
/* @__PURE__ */ e.jsx(
|
|
606
606
|
$e,
|
|
607
607
|
{
|
|
608
|
-
render:
|
|
609
|
-
block: r[s[a].name][
|
|
608
|
+
render: S,
|
|
609
|
+
block: r[s[a].name][d]
|
|
610
610
|
}
|
|
611
611
|
)
|
|
612
612
|
]
|
|
@@ -670,13 +670,13 @@ const tt = [
|
|
|
670
670
|
brightness: s,
|
|
671
671
|
dragging: l,
|
|
672
672
|
setDragging: c,
|
|
673
|
-
setHue:
|
|
673
|
+
setHue: C,
|
|
674
674
|
setSaturation: m,
|
|
675
|
-
setBrightness:
|
|
676
|
-
colorChange:
|
|
677
|
-
setColor:
|
|
675
|
+
setBrightness: S,
|
|
676
|
+
colorChange: d,
|
|
677
|
+
setColor: u,
|
|
678
678
|
update: x
|
|
679
|
-
} = Fe(),
|
|
679
|
+
} = Fe(), h = (g) => {
|
|
680
680
|
const { offsetX: f, offsetY: w } = g.nativeEvent;
|
|
681
681
|
c(!0), y(f, w, g.currentTarget);
|
|
682
682
|
}, b = (g) => {
|
|
@@ -688,10 +688,10 @@ const tt = [
|
|
|
688
688
|
c(!1);
|
|
689
689
|
}, y = (g, f, w) => {
|
|
690
690
|
const { width: A, height: k } = w.getBoundingClientRect(), X = Math.max(0, Math.min(g / A * 100, 100)), ce = Math.max(0, Math.min(100 - f / k * 100, 100));
|
|
691
|
-
m(X),
|
|
691
|
+
m(X), S(ce), L(X, ce);
|
|
692
692
|
}, L = (g, f) => {
|
|
693
693
|
const w = N(i, g, f);
|
|
694
|
-
|
|
694
|
+
d(w), u(w);
|
|
695
695
|
}, U = (g, f, w) => {
|
|
696
696
|
f /= 100, w /= 100;
|
|
697
697
|
const A = (de) => (de + g / 60) % 6, k = (de) => w * (1 - f * Math.max(0, Math.min(A(de), 4 - A(de), 1))), X = Math.round(255 * k(5)), ce = Math.round(255 * k(3)), Oe = Math.round(255 * k(1));
|
|
@@ -713,7 +713,7 @@ const tt = [
|
|
|
713
713
|
x(o), r(!1);
|
|
714
714
|
}
|
|
715
715
|
function V() {
|
|
716
|
-
r(!1),
|
|
716
|
+
r(!1), d(n);
|
|
717
717
|
}
|
|
718
718
|
return /* @__PURE__ */ e.jsxs(
|
|
719
719
|
"div",
|
|
@@ -730,7 +730,7 @@ const tt = [
|
|
|
730
730
|
"div",
|
|
731
731
|
{
|
|
732
732
|
className: O.colorMap,
|
|
733
|
-
onMouseDown:
|
|
733
|
+
onMouseDown: h,
|
|
734
734
|
style: {
|
|
735
735
|
background: `
|
|
736
736
|
linear-gradient(to top, black, transparent),
|
|
@@ -759,7 +759,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
759
759
|
max: "360",
|
|
760
760
|
value: i,
|
|
761
761
|
onChange: (g) => {
|
|
762
|
-
|
|
762
|
+
C(Number(g.target.value)), L(a, s);
|
|
763
763
|
},
|
|
764
764
|
className: O.slider
|
|
765
765
|
}
|
|
@@ -786,29 +786,29 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
788
|
}, Un = () => {
|
|
789
|
-
const { onPreview: t } = Y(), { hoverBlockId: o, isModalVisible: n, isPreviewVisible: r } = _e(), { settings: i } = J(), { blocks: a } = K(), { blocks: s } = B(), { currentPage: l, pages: c } = P(), { showModal:
|
|
789
|
+
const { onPreview: t } = Y(), { hoverBlockId: o, isModalVisible: n, isPreviewVisible: r } = _e(), { settings: i } = J(), { blocks: a } = K(), { blocks: s } = B(), { currentPage: l, pages: c, pageContext: C } = P(), { showModal: m } = Fe(), [S, d] = _.useState(!0);
|
|
790
790
|
_.useEffect(() => {
|
|
791
791
|
t && setTimeout(() => {
|
|
792
|
-
|
|
792
|
+
d(!1);
|
|
793
793
|
}, 100);
|
|
794
794
|
}, [t]);
|
|
795
|
-
const
|
|
796
|
-
const
|
|
797
|
-
return Object.assign(
|
|
795
|
+
const u = (x) => {
|
|
796
|
+
const h = new a[x.name]();
|
|
797
|
+
return Object.assign(h, x.value), h.renderBlock(i, C);
|
|
798
798
|
};
|
|
799
799
|
return /* @__PURE__ */ e.jsxs("div", { className: re.preview, children: [
|
|
800
800
|
n && /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsx(Re, {}) }),
|
|
801
801
|
r && o && /* @__PURE__ */ e.jsx(ke, { children: /* @__PURE__ */ e.jsx(
|
|
802
802
|
$e,
|
|
803
803
|
{
|
|
804
|
-
render:
|
|
804
|
+
render: u,
|
|
805
805
|
block: s[c[l].name][o]
|
|
806
806
|
}
|
|
807
807
|
) }),
|
|
808
|
-
|
|
808
|
+
m && /* @__PURE__ */ e.jsx(En, {}),
|
|
809
809
|
t && /* @__PURE__ */ e.jsxs("div", { className: re.main, children: [
|
|
810
810
|
/* @__PURE__ */ e.jsx(hn, {}),
|
|
811
|
-
/* @__PURE__ */ e.jsx("div", { className: re.content, children:
|
|
811
|
+
/* @__PURE__ */ e.jsx("div", { className: re.content, children: S ? /* @__PURE__ */ e.jsx("div", { className: re.loading, children: /* @__PURE__ */ e.jsx("div", { className: re.loader }) }) : /* @__PURE__ */ e.jsx(Nn, {}) })
|
|
812
812
|
] })
|
|
813
813
|
] });
|
|
814
814
|
}, On = "_sidebar_1r5sp_1", In = "_title_1r5sp_10", Gn = "_active_1r5sp_18", Le = {
|
|
@@ -870,23 +870,23 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
870
870
|
}, ro = ({ id: t, name: o, index: n, moveBlock: r, onClick: i }) => {
|
|
871
871
|
const { currentPage: a, pages: s } = P(), { activeBlock: l } = Y(), {
|
|
872
872
|
showPreview: c,
|
|
873
|
-
hidePreview:
|
|
873
|
+
hidePreview: C,
|
|
874
874
|
showModal: m,
|
|
875
|
-
hideModal:
|
|
876
|
-
clearHideTimeout:
|
|
877
|
-
startHideTimeout:
|
|
875
|
+
hideModal: S,
|
|
876
|
+
clearHideTimeout: d,
|
|
877
|
+
startHideTimeout: u,
|
|
878
878
|
hoverBlockId: x,
|
|
879
|
-
isModalVisible:
|
|
879
|
+
isModalVisible: h
|
|
880
880
|
} = _e(), { setPositionBlock: b } = B(), [j, y] = _.useState(!1), L = () => {
|
|
881
|
-
|
|
881
|
+
h && S(), c(t), y(!0), d();
|
|
882
882
|
}, U = (g) => {
|
|
883
|
-
g.stopPropagation(),
|
|
883
|
+
g.stopPropagation(), C(), m(t), d(), b(n + 1);
|
|
884
884
|
}, T = () => {
|
|
885
|
-
|
|
885
|
+
h ? u() : (y(!1), C());
|
|
886
886
|
};
|
|
887
887
|
_.useEffect(() => {
|
|
888
|
-
|
|
889
|
-
}, [
|
|
888
|
+
h || y(!1);
|
|
889
|
+
}, [h]);
|
|
890
890
|
const [, N] = Ve({
|
|
891
891
|
accept: "block",
|
|
892
892
|
hover(g) {
|
|
@@ -937,12 +937,12 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
937
937
|
}
|
|
938
938
|
return /* @__PURE__ */ e.jsxs("div", { className: oe.layers, children: [
|
|
939
939
|
/* @__PURE__ */ e.jsx(no, {}),
|
|
940
|
-
/* @__PURE__ */ e.jsx(ze, { backend: We, children: /* @__PURE__ */ e.jsx(e.Fragment, { children: t[i[r].name] && Object.keys(t[i[r].name]).map((c,
|
|
940
|
+
/* @__PURE__ */ e.jsx(ze, { backend: We, children: /* @__PURE__ */ e.jsx(e.Fragment, { children: t[i[r].name] && Object.keys(t[i[r].name]).map((c, C) => /* @__PURE__ */ e.jsx(
|
|
941
941
|
ro,
|
|
942
942
|
{
|
|
943
943
|
id: c,
|
|
944
944
|
name: t[i[r].name][c].name,
|
|
945
|
-
index:
|
|
945
|
+
index: C,
|
|
946
946
|
moveBlock: n,
|
|
947
947
|
onClick: l
|
|
948
948
|
},
|
|
@@ -996,13 +996,13 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
996
996
|
return t.renderSettings(o);
|
|
997
997
|
}, Bo = (t) => {
|
|
998
998
|
var f;
|
|
999
|
-
const { isAdd: o } = t, [n, r] = _.useState(!1), { setActiveBlock: i } = Se(), { sourceBlocks: a, activeBlock: s, setActiveBlock: l, currentInstance: c, setCurrentInstance:
|
|
999
|
+
const { isAdd: o } = t, [n, r] = _.useState(!1), { setActiveBlock: i } = Se(), { sourceBlocks: a, activeBlock: s, setActiveBlock: l, currentInstance: c, setCurrentInstance: C } = K(), {
|
|
1000
1000
|
blocks: m,
|
|
1001
|
-
addBlock:
|
|
1002
|
-
editBlock:
|
|
1003
|
-
currentBlock:
|
|
1001
|
+
addBlock: S,
|
|
1002
|
+
editBlock: d,
|
|
1003
|
+
currentBlock: u,
|
|
1004
1004
|
setCurrentBlock: x,
|
|
1005
|
-
removeBlock:
|
|
1005
|
+
removeBlock: h,
|
|
1006
1006
|
setPositionBlock: b,
|
|
1007
1007
|
setHeader: j,
|
|
1008
1008
|
setFooter: y,
|
|
@@ -1010,43 +1010,43 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1010
1010
|
footer: U
|
|
1011
1011
|
} = B(), { currentPage: T, pages: N } = P();
|
|
1012
1012
|
function F(w = !1) {
|
|
1013
|
-
!o && c && !w &&
|
|
1014
|
-
name: m[N[T].name][
|
|
1013
|
+
!o && c && !w && d(N[T].name, u, {
|
|
1014
|
+
name: m[N[T].name][u].name,
|
|
1015
1015
|
value: c
|
|
1016
1016
|
}), l(null), x(null), setTimeout(() => {
|
|
1017
1017
|
r(!1);
|
|
1018
|
-
}, 150),
|
|
1018
|
+
}, 150), C(null);
|
|
1019
1019
|
}
|
|
1020
1020
|
function V() {
|
|
1021
1021
|
F(), i({
|
|
1022
1022
|
name: "Layers",
|
|
1023
1023
|
icon: "TreeStructure"
|
|
1024
|
-
}),
|
|
1024
|
+
}), C(null);
|
|
1025
1025
|
}
|
|
1026
1026
|
function g() {
|
|
1027
1027
|
if (o)
|
|
1028
1028
|
return new a[s]();
|
|
1029
1029
|
{
|
|
1030
|
-
const w = m[N[T].name][
|
|
1030
|
+
const w = m[N[T].name][u];
|
|
1031
1031
|
return new a[w.name](w.value.blockSettings);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return _.useEffect(() => {
|
|
1035
|
-
if (s ||
|
|
1035
|
+
if (s || u && !["header", "footer"].includes(u)) {
|
|
1036
1036
|
const w = g();
|
|
1037
|
-
|
|
1037
|
+
C(w);
|
|
1038
1038
|
} else
|
|
1039
|
-
|
|
1040
|
-
}, [s,
|
|
1041
|
-
|
|
1042
|
-
}, [
|
|
1043
|
-
|
|
1044
|
-
}, [
|
|
1039
|
+
C(null);
|
|
1040
|
+
}, [s, u]), _.useEffect(() => {
|
|
1041
|
+
u === "header" && j(L);
|
|
1042
|
+
}, [u, L]), _.useEffect(() => {
|
|
1043
|
+
u === "footer" && y(U);
|
|
1044
|
+
}, [u, U]), /* @__PURE__ */ e.jsxs(
|
|
1045
1045
|
"div",
|
|
1046
1046
|
{
|
|
1047
1047
|
className: v(I.render, {
|
|
1048
|
-
[I.open]:
|
|
1049
|
-
[I.close]: !
|
|
1048
|
+
[I.open]: u || s,
|
|
1049
|
+
[I.close]: !u && !s,
|
|
1050
1050
|
[I.clicked]: n
|
|
1051
1051
|
}),
|
|
1052
1052
|
children: [
|
|
@@ -1059,12 +1059,12 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1059
1059
|
onClick: () => F()
|
|
1060
1060
|
}
|
|
1061
1061
|
),
|
|
1062
|
-
/* @__PURE__ */ e.jsx("h3", { className: I.title, children: s || m[N[T].name] && ((f = m[N[T].name][
|
|
1062
|
+
/* @__PURE__ */ e.jsx("h3", { className: I.title, children: s || m[N[T].name] && ((f = m[N[T].name][u]) == null ? void 0 : f.name) || u && E(u) || "Loading" })
|
|
1063
1063
|
] }),
|
|
1064
1064
|
/* @__PURE__ */ e.jsxs("div", { className: I.settings, children: [
|
|
1065
1065
|
c && /* @__PURE__ */ e.jsx(jo, { block: c }),
|
|
1066
|
-
|
|
1067
|
-
!s && !
|
|
1066
|
+
u && ["header", "footer"].includes(u) && /* @__PURE__ */ e.jsx(io, { isHeader: u === "header" }),
|
|
1067
|
+
!s && !u && /* @__PURE__ */ e.jsx("div", { className: I.loading, children: "Loading" })
|
|
1068
1068
|
] }),
|
|
1069
1069
|
/* @__PURE__ */ e.jsxs("div", { className: I.buttons, children: [
|
|
1070
1070
|
o && /* @__PURE__ */ e.jsx(
|
|
@@ -1074,7 +1074,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1074
1074
|
width: "100%"
|
|
1075
1075
|
},
|
|
1076
1076
|
onClick: () => {
|
|
1077
|
-
r(!0), ["header", "footer"].includes(
|
|
1077
|
+
r(!0), ["header", "footer"].includes(u) ? u === "header" ? j(L) : y(U) : (S(N[T].name, {
|
|
1078
1078
|
name: s,
|
|
1079
1079
|
value: c
|
|
1080
1080
|
}), b(null)), V();
|
|
@@ -1082,11 +1082,11 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1082
1082
|
children: "Add Section"
|
|
1083
1083
|
}
|
|
1084
1084
|
),
|
|
1085
|
-
!o && !["header", "footer"].includes(
|
|
1085
|
+
!o && !["header", "footer"].includes(u) && /* @__PURE__ */ e.jsx(
|
|
1086
1086
|
"button",
|
|
1087
1087
|
{
|
|
1088
1088
|
onClick: () => {
|
|
1089
|
-
r(!0),
|
|
1089
|
+
r(!0), h(N[T].name, u), F(!0);
|
|
1090
1090
|
},
|
|
1091
1091
|
className: I.deleteButton,
|
|
1092
1092
|
children: /* @__PURE__ */ e.jsx(
|
|
@@ -1456,8 +1456,8 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1456
1456
|
function c() {
|
|
1457
1457
|
o(null);
|
|
1458
1458
|
}
|
|
1459
|
-
function S
|
|
1460
|
-
s && n && i(s, n,
|
|
1459
|
+
function C(S, d) {
|
|
1460
|
+
s && n && i(s, n, d, S);
|
|
1461
1461
|
}
|
|
1462
1462
|
const m = _.useMemo(() => n ? r.fonts.heading[n] ? (l("heading"), r.fonts.heading[n]) : r.fonts.paragraph[n] ? (l("paragraph"), r.fonts.paragraph[n]) : (l(null), null) : null, [n, r]);
|
|
1463
1463
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -1491,8 +1491,8 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1491
1491
|
{
|
|
1492
1492
|
label: "Font",
|
|
1493
1493
|
value: m.font,
|
|
1494
|
-
onChange: (
|
|
1495
|
-
options: [...a.filter((
|
|
1494
|
+
onChange: (S) => C(S, "font"),
|
|
1495
|
+
options: [...a.filter((S) => S !== m.font)]
|
|
1496
1496
|
}
|
|
1497
1497
|
),
|
|
1498
1498
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1500,7 +1500,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1500
1500
|
{
|
|
1501
1501
|
label: "Size",
|
|
1502
1502
|
value: String(m.size),
|
|
1503
|
-
onChange: (
|
|
1503
|
+
onChange: (S) => C(S, "size"),
|
|
1504
1504
|
options: Ce
|
|
1505
1505
|
}
|
|
1506
1506
|
),
|
|
@@ -1509,7 +1509,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1509
1509
|
{
|
|
1510
1510
|
label: "Weight",
|
|
1511
1511
|
value: String(m.weight),
|
|
1512
|
-
onChange: (
|
|
1512
|
+
onChange: (S) => C(S, "weight"),
|
|
1513
1513
|
options: Qe
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
@@ -1761,13 +1761,13 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1761
1761
|
setIsEdit: a,
|
|
1762
1762
|
editedPage: s,
|
|
1763
1763
|
setEditedPage: l
|
|
1764
|
-
} = P(), { createPage: c, updatePage:
|
|
1764
|
+
} = P(), { createPage: c, updatePage: C } = B(), [m, S] = _.useState(s ? (F = o[s]) == null ? void 0 : F.path : ""), [d, u] = _.useState(s ? (V = o[s]) == null ? void 0 : V.name : ""), [x, h] = _.useState(
|
|
1765
1765
|
s ? (g = o[s]) == null ? void 0 : g.seo.description : ""
|
|
1766
1766
|
), [b, j] = _.useState(
|
|
1767
1767
|
s ? (f = o[s]) == null ? void 0 : f.visibility : "public"
|
|
1768
1768
|
);
|
|
1769
1769
|
function y() {
|
|
1770
|
-
|
|
1770
|
+
S(""), u(""), h(""), j("public"), a(!1), l(null);
|
|
1771
1771
|
}
|
|
1772
1772
|
function L() {
|
|
1773
1773
|
y(), t(!1);
|
|
@@ -1778,22 +1778,22 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1778
1778
|
function T() {
|
|
1779
1779
|
n({
|
|
1780
1780
|
path: U(m),
|
|
1781
|
-
name:
|
|
1781
|
+
name: d || m,
|
|
1782
1782
|
icon: "File",
|
|
1783
1783
|
seo: {
|
|
1784
|
-
title:
|
|
1784
|
+
title: d,
|
|
1785
1785
|
description: x
|
|
1786
1786
|
},
|
|
1787
1787
|
visibility: b
|
|
1788
|
-
}), c(
|
|
1788
|
+
}), c(d), L();
|
|
1789
1789
|
}
|
|
1790
1790
|
function N() {
|
|
1791
|
-
|
|
1791
|
+
C(o[s].name, d || m), r(s, {
|
|
1792
1792
|
path: U(m),
|
|
1793
|
-
name:
|
|
1793
|
+
name: d || m,
|
|
1794
1794
|
icon: o[s].icon || "file",
|
|
1795
1795
|
seo: {
|
|
1796
|
-
title:
|
|
1796
|
+
title: d,
|
|
1797
1797
|
description: x
|
|
1798
1798
|
},
|
|
1799
1799
|
visibility: b
|
|
@@ -1825,7 +1825,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1825
1825
|
M,
|
|
1826
1826
|
{
|
|
1827
1827
|
label: "Page Slug",
|
|
1828
|
-
onChange: (k) =>
|
|
1828
|
+
onChange: (k) => S(k),
|
|
1829
1829
|
value: m,
|
|
1830
1830
|
placeholder: "path-to-page",
|
|
1831
1831
|
disabled: !!(s && ((w = o[s]) != null && w.name) && le.includes(o[s].name)),
|
|
@@ -1837,8 +1837,8 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1837
1837
|
M,
|
|
1838
1838
|
{
|
|
1839
1839
|
label: "Page Title",
|
|
1840
|
-
onChange: (k) =>
|
|
1841
|
-
value:
|
|
1840
|
+
onChange: (k) => u(k),
|
|
1841
|
+
value: d,
|
|
1842
1842
|
placeholder: "Contact us",
|
|
1843
1843
|
disabled: !!(s && ((A = o[s]) != null && A.name) && le.includes(o[s].name))
|
|
1844
1844
|
}
|
|
@@ -1847,7 +1847,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1847
1847
|
Ye,
|
|
1848
1848
|
{
|
|
1849
1849
|
label: "Description",
|
|
1850
|
-
onChange: (k) =>
|
|
1850
|
+
onChange: (k) => h(k),
|
|
1851
1851
|
value: x,
|
|
1852
1852
|
placeholder: "Contact us at any time of the day or night. You are always welcome",
|
|
1853
1853
|
maxLength: 150
|
|
@@ -1875,7 +1875,7 @@ linear-gradient(to right, hsl(${i}, 100%, 100%), hsl(${i}, 100%, 50%))
|
|
|
1875
1875
|
/* @__PURE__ */ e.jsx("span", { className: R.label, children: "Preview" }),
|
|
1876
1876
|
/* @__PURE__ */ e.jsxs("div", { className: R.block, children: [
|
|
1877
1877
|
/* @__PURE__ */ e.jsx("span", { className: R.slug, children: m || "yoursite.url" }),
|
|
1878
|
-
/* @__PURE__ */ e.jsx("span", { className: R.title, children:
|
|
1878
|
+
/* @__PURE__ */ e.jsx("span", { className: R.title, children: d || "My Blank Page" }),
|
|
1879
1879
|
/* @__PURE__ */ e.jsx("span", { className: R.description, children: x || "It is My Description" })
|
|
1880
1880
|
] })
|
|
1881
1881
|
] })
|
|
@@ -1971,24 +1971,24 @@ function hr() {
|
|
|
1971
1971
|
setHeader: i,
|
|
1972
1972
|
footer: a,
|
|
1973
1973
|
setFooter: s
|
|
1974
|
-
} = B.getState(), { currentPage: l, pages: c } = P.getState(), { currentInstance:
|
|
1975
|
-
!m &&
|
|
1974
|
+
} = B.getState(), { currentPage: l, pages: c } = P.getState(), { currentInstance: C, activeBlock: m } = K.getState();
|
|
1975
|
+
!m && C && (o === "header" && i(r), o === "footer" && s(a), t(c[l].name, o, {
|
|
1976
1976
|
name: n[c[l].name][o].name,
|
|
1977
|
-
value:
|
|
1977
|
+
value: C
|
|
1978
1978
|
}));
|
|
1979
1979
|
}
|
|
1980
1980
|
const gr = (t) => {
|
|
1981
|
-
const { blocks: o, settings: n, header: r, footer: i } = t, { setBlocks: a, setSourceBlocks: s } = K(), { fonts: l, setFonts: c } = De(), { setSettings:
|
|
1981
|
+
const { blocks: o, settings: n, header: r, footer: i } = t, { setBlocks: a, setSourceBlocks: s } = K(), { fonts: l, setFonts: c } = De(), { setSettings: C } = J(), { setPageContext: m } = P(), { setHeader: S, setFooter: d } = B();
|
|
1982
1982
|
return _.useEffect(() => {
|
|
1983
|
-
const
|
|
1984
|
-
Object.keys(o).map((
|
|
1985
|
-
|
|
1986
|
-
}), s(
|
|
1983
|
+
const u = {};
|
|
1984
|
+
Object.keys(o).map((h) => {
|
|
1985
|
+
u[h] = o[h];
|
|
1986
|
+
}), s(u), a(u), S(r), d(i), C(n), (async () => {
|
|
1987
1987
|
if (l.length === 0) {
|
|
1988
1988
|
const j = await lr();
|
|
1989
1989
|
c([...j.map((y) => y.family)]);
|
|
1990
1990
|
}
|
|
1991
|
-
let
|
|
1991
|
+
let h = {
|
|
1992
1992
|
listings: [],
|
|
1993
1993
|
products: [],
|
|
1994
1994
|
reviews: [],
|
|
@@ -1999,8 +1999,8 @@ const gr = (t) => {
|
|
|
1999
1999
|
const b = await ir();
|
|
2000
2000
|
Object.keys(b).map((j) => {
|
|
2001
2001
|
const y = j;
|
|
2002
|
-
|
|
2003
|
-
}), m(
|
|
2002
|
+
h[y] = b[y].value.data;
|
|
2003
|
+
}), m(h);
|
|
2004
2004
|
})();
|
|
2005
2005
|
}, []), /* @__PURE__ */ e.jsx(ar, {});
|
|
2006
2006
|
};
|