@billgangcom/theme-lib 1.2.0 → 1.4.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/align-bottom-B6qXcF_P.js +5 -0
- package/dist/align-bottom-BNcdAnw9.cjs +1 -0
- package/dist/align-top-BGk9vlUd.cjs +1 -0
- package/dist/align-top-CMearyFH.js +5 -0
- package/dist/builder.cjs.js +7 -7
- package/dist/builder.es.js +337 -336
- package/dist/image-Bx3xvWOB.cjs +1 -0
- package/dist/image-CASDWdgb.js +5 -0
- package/dist/index-DUXD-4un.cjs +34 -0
- package/dist/{index-SOBckDON.js → index-ohEJxZVF.js} +667 -638
- package/dist/shared/ui/Button/index.d.ts +1 -1
- package/dist/shared/ui/Input/index.d.ts +1 -0
- package/dist/shared/ui/Switch/index.d.ts +3 -0
- package/dist/sliders-BOds2ujo.js +5 -0
- package/dist/sliders-CsvSCMlf.cjs +1 -0
- package/dist/text-align-left-BBdqQ7N2.js +5 -0
- package/dist/text-align-left-BLq4Pvg1.cjs +1 -0
- package/dist/text-bold-BqCslwM8.cjs +1 -0
- package/dist/text-bold-CkfsPLSD.js +5 -0
- package/dist/text-code-CdpLXZEo.cjs +1 -0
- package/dist/text-code-Omig8KTZ.js +5 -0
- package/dist/text-italic-B6DlWITY.js +5 -0
- package/dist/text-italic-DgM86CDI.cjs +1 -0
- package/dist/text-strike-through-BPd9vRCE.js +5 -0
- package/dist/text-strike-through-DUrcRZUF.cjs +1 -0
- package/dist/text-underline-BMJdubuO.js +5 -0
- package/dist/text-underline-CwR9adlS.cjs +1 -0
- package/dist/ui/ButtonsSettings/index.d.ts +20 -0
- package/dist/ui/ButtonsSettings/popup.d.ts +12 -0
- package/dist/ui/LayoutSettings/index.d.ts +10 -0
- package/dist/ui/ProductSettings/index.d.ts +18 -0
- package/dist/ui/ProductSettings/popup.d.ts +12 -0
- package/dist/ui/TextSettings/index.d.ts +14 -0
- package/dist/ui/TypeTexts/index.d.ts +7 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +573 -13
- package/package.json +2 -2
- package/dist/index-3IJeySWj.cjs +0 -34
package/dist/builder.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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_21b8w_1 path{fill:var(--icon-fill)}._hoverable_21b8w_5{cursor:pointer}._button_rcjso_1{background-color:#ff3f19;padding:10px 16px;color:#fff;border-radius:12px;cursor:pointer;font-size:16px}._button_rcjso_1:disabled{opacity:.7;cursor:auto}._wrapper_x5ap4_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_x5ap4_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_x5ap4_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_x5ap4_17::placeholder{color:#c2c2c2}._input_x5ap4_17:disabled{background-color:var(--background-color);opacity:.7}._required_x5ap4_36{border:1px solid #ff3f19}._wrapper_dmzhr_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_dmzhr_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_dmzhr_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_dmzhr_30{transition:.2s}._rotate_dmzhr_34{transform:rotate(180deg)}._content_dmzhr_38{position:relative}._options_dmzhr_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_dmzhr_42{padding:10px 12px;border-radius:12px}._option_dmzhr_42:hover{background-color:#e6e6e6}._switch_1gvxu_1{width:40px;height:24px;background-color:#ccc;border-radius:25px;display:flex;align-items:center;padding:2px;cursor:pointer;transition:background-color .2s}._switch_1gvxu_1._active_1gvxu_12{background:#ff3f19}._switch_1gvxu_1 ._toggle_1gvxu_15{width:14px;height:14px;background-color:#fff;border-radius:16px;transition:transform .2s;transform:translate(2px)}._switch_1gvxu_1._active_1gvxu_12 ._toggle_1gvxu_15{transform:translate(18px)}._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_1t5at_1{position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100;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}._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_ltoxx_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:5}._left_ltoxx_16,._right_ltoxx_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_1jv6k_1{width:100%;background-color:var(--background-color);padding:16px 32px 0;position:relative}._main_1jv6k_8{width:100%;display:flex;flex-direction:column;overflow-y:auto;height:100%;position:relative;z-index:1}._content_1jv6k_18{background-color:#fff;border:var(--default-border);border-bottom:none;height:100%}._loading_1jv6k_25{width:100%;height:100%;display:flex;justify-content:center;align-items:center}._loader_1jv6k_33{border:4px solid rgba(0,0,0,.1);border-left-color:#fff;border-radius:50%;width:40px;height:40px;animation:_spin_1jv6k_1 1s linear infinite}@keyframes _spin_1jv6k_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_xqbqi_1{max-width:320px;width:100%;padding:16px;border-right:var(--default-border);height:100%;position:relative;overflow:hidden}._title_xqbqi_11{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;padding-bottom:8px}._active_xqbqi_19{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}._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_1m2pj_1{display:flex;align-items:center;gap:8px;padding-bottom:8px}._render_1m2pj_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:3}._open_1m2pj_23{transform:translate(0)}._close_1m2pj_27{transform:translate(320px)}._clicked_1m2pj_31{opacity:0}._title_1m2pj_35{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px}._button_1m2pj_42{align-self:center;flex:1}._settings_1m2pj_47{flex:1 1 auto}._buttons_1m2pj_51{justify-content:space-between;display:flex;gap:10px}._deleteButton_1m2pj_57{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_1m2pj_57: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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { j as a, I as O, u as wr,
|
|
3
|
-
import T, { createContext as
|
|
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_21b8w_1 path{fill:var(--icon-fill)}._hoverable_21b8w_5{cursor:pointer}._button_rcjso_1{background-color:#ff3f19;padding:10px 16px;color:#fff;border-radius:12px;cursor:pointer;font-size:16px}._button_rcjso_1:disabled{opacity:.7;cursor:auto}._wrapper_1y283_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1y283_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_1y283_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_1y283_17::placeholder{color:#c2c2c2}._input_1y283_17:disabled{background-color:var(--background-color);opacity:.7}._required_1y283_36{border:1px solid #ff3f19}._paddingless_1y283_40{padding:0}._wrapper_dmzhr_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_dmzhr_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_dmzhr_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_dmzhr_30{transition:.2s}._rotate_dmzhr_34{transform:rotate(180deg)}._content_dmzhr_38{position:relative}._options_dmzhr_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_dmzhr_42{padding:10px 12px;border-radius:12px}._option_dmzhr_42:hover{background-color:#e6e6e6}._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_1t5at_1{position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100;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}._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}._theme_1xj36_1{display:flex;flex-direction:column}._block_1xj36_6{justify-content:start;display:flex;align-items:center;gap:8px;width:100%;padding:16px 8px;cursor:pointer;border-radius:8px}._block_1xj36_6:hover{background-color:var(--background-color)}._name_1xj36_20{flex:1 1 auto}._back_14yda_1{display:flex;align-items:center;gap:8px;padding-bottom:8px}._render_14yda_8{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:501}._open_14yda_23{animation:.2s _open_14yda_23 forwards}@keyframes _open_14yda_23{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_14yda_50{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_14yda_50{animation:.2s _close_14yda_50 forwards}._clicked_14yda_54{opacity:0}._title_14yda_58{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px}._button_14yda_65{align-self:center;flex:1}._loading_14yda_70{flex:1 1 auto}._settings_14yda_74{flex:1 1 auto;overflow-y:scroll;overflow-x:hidden}._buttons_14yda_80{justify-content:space-between;display:flex;gap:10px}._deleteButton_14yda_86{display:flex;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_14yda_86:hover{background-color:#dd6363;color:#fff}._settings_1r85j_1{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:3}._open_1r85j_16{transform:translate(0)}._close_1r85j_20{transform:translate(320px)}._header_1r85j_24{display:flex;align-items:center;gap:8px}._title_1r85j_30{font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._addButton_1r85j_37{color:#ff3f19;display:flex;align-items:center;gap:4px;cursor:pointer}._wrapper_n1a7x_1{overflow-y:scroll}._category_n1a7x_5{display:flex;flex-direction:column}._categoryTitle_n1a7x_10{font-weight:600;font-size:16px;line-height:24px}._color_n1a7x_16{display:flex;flex-direction:column}._color_n1a7x_16:not(:last-child){border-bottom:1px solid #f0f0f0}._content_n1a7x_24{padding:12px 0;gap:8px;display:flex;align-items:center;flex:1 1 auto}._preview_n1a7x_32{width:39px;height:39px;flex:0 0 39px;padding:5px;border-radius:50%;border:1px solid #e6e6e6}._wrapper_kb55x_2{overflow-y:scroll}._category_kb55x_6{display:flex;flex-direction:column}._categoryTitle_kb55x_11{font-weight:600;font-size:16px;line-height:24px}._color_kb55x_17{gap:8px;display:flex;flex-direction:column}._name_kb55x_23{line-height:20px;padding:0 4px 4px}._content_kb55x_28{display:flex;flex-direction:column;width:100%}._label_kb55x_34{padding:8px 12px;border-radius:12px;display:flex;align-items:center;gap:5px;width:100%;background-color:var(--background-color);cursor:pointer}._input_kb55x_45[type=color]{width:20px;height:20px;padding:1px}._input_kb55x_45{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:100%;border:none;padding:0;cursor:pointer;border-radius:50%}._input_kb55x_45::-webkit-color-swatch{border-radius:50%;border:none}._input_kb55x_45::-webkit-color-swatch-wrapper{padding:0;border-radius:50%}._title_kb55x_71{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._field_kb55x_79{display:flex;flex-direction:column;gap:10px;padding:16px 0}._field_kb55x_79:not(:last-child){border-bottom:1px solid #f0f0f0}._alignments_kb55x_89{display:flex;flex-direction:column;gap:10px}._lineField_kb55x_95{display:flex;justify-content:space-between;align-items:center}._style_kb55x_101{flex:1 0 50%;display:flex;flex-direction:column;gap:8px}._header_kb55x_108{display:flex;align-items:center;justify-content:space-between}._wrapper_k9on2_1{overflow-y:scroll}._category_k9on2_5{display:flex;flex-direction:column}._categoryTitle_k9on2_10{font-weight:600;font-size:16px;line-height:24px}._font_k9on2_16{padding:12px 0;gap:8px;display:flex;align-items:center;position:relative;flex:1 1 auto;cursor:pointer}._font_k9on2_16:hover{background-color:#f8f8f8;border-radius:8px}._font_k9on2_16:not(:last-child){border-bottom:var(--default-border)}._font_k9on2_16:not(:last-child):hover{border-bottom:1px solid #f8f8f8}._content_k9on2_36{display:flex;flex-direction:column;width:100%}._icon_k9on2_42{padding:8px;border-radius:8px;background-color:#f8f8f8;display:flex;align-items:center;justify-content:center}._paragraph_k9on2_51{padding:12px}._deleteIcon_k9on2_55{position:absolute;right:10px;width:20px;height:20px}._iconButton_k9on2_62{width:32px;height:32px}._wrapper_94fpv_1{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:5}._open_94fpv_16{transform:translate(0)}._close_94fpv_20{transform:translate(320px)}._header_94fpv_24{display:flex;align-items:center;gap:8px;margin:0 0 10px}._title_94fpv_31{font-weight:700;font-size:20px;line-height:24px}._options_94fpv_37{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_94fpv_44{opacity:0}._wrapper_1j33r_1{display:flex;flex-direction:column;gap:8px;height:100%;transition:.2s transform;position:absolute;top:0;left:0;padding:16px;width:100%;background:#fff;z-index:5}._open_1j33r_16{transform:translate(0)}._close_1j33r_20{transform:translate(320px)}._header_1j33r_24{display:flex;align-items:center;gap:8px;margin:0 0 10px}._title_1j33r_31{font-weight:700;font-size:20px;line-height:24px}._options_1j33r_37{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_1j33r_44{opacity:0}._label_1j33r_48{font-size:14px;font-weight:400;line-height:20px;color:var(--accent-color)}._alignments_1j33r_55{display:flex;flex-direction:column;gap:10px}._blocks_1j33r_61{display:flex;align-items:center;gap:8px}._alignment_1j33r_55{padding:8px;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_1j33r_75{border:1px solid #ff3f19}._wrapper_jjfwh_1{display:flex;flex-direction:column;gap:20px;background:#fff;max-width:640px;width:100%;padding:16px 24px;border-radius:16px}._header_jjfwh_12{display:flex;justify-content:space-between;align-items:center;font-size:24px;font-weight:700;line-height:32px}._content_jjfwh_21{display:flex;flex-direction:column;gap:10px;overflow-y:scroll;max-height:500px}._buttons_jjfwh_29{display:flex;justify-content:end;gap:12px}._cancel_jjfwh_35{background-color:var(--background-color);color:var(--accent-color)}._label_jjfwh_40,._description_jjfwh_41{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._preview_jjfwh_49{display:flex;flex-direction:column;gap:10px}._block_jjfwh_55{padding:24px;display:flex;flex-direction:column;border:1px solid var(--background-color);border-radius:8px}._slug_jjfwh_63{line-height:20px;color:#ff3f19;margin-bottom:4px}._title_jjfwh_69{font-weight:600;font-size:16px;line-height:24px}._layout_kjedu_1{width:100%;height:100%;display:flex;position:relative}._main_kjedu_8{display:flex;flex-direction:column;width:100%;position:relative}._content_kjedu_15{position:relative;padding-top:64px;height:100%;display:flex}*{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}*{padding:0;margin:0;border:0}*,*:before,*:after{box-sizing:border-box}:focus,:active{outline:none}a:focus,a:active{outline:none}nav,footer,header,aside{display:block}html,body{width:100%;line-height:1;font-size:16px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%}input,button,textarea{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}a,a:visited,a:hover{text-decoration:none}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6,a{font-size:inherit}a{color:inherit}*{-webkit-tap-highlight-color:transparent}input{border:none;background:none;outline:none;padding:0}input[type=color]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:40px;height:40px;border:none;background:transparent}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}*{-ms-overflow-style:none;scrollbar-width:none}* ::-webkit-scrollbar{display:none}:root{--default-border: 1px solid #f0f0f0;--accent-color: #757575;--main-color: #252525;--background-color: #f8f8f8}#root{height:100vh}body,html{background-color:#fff;font-family:Archivo,sans-serif;max-height:100vh;overflow:hidden}._wrapper_o1bnv_2{display:flex;flex-direction:column;gap:10px}._alignmentBlock_o1bnv_8{padding:10px 0 16px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #f0f0f0}._title_o1bnv_16{font-weight:700;line-height:24px;font-size:16px;color:#252525}._subtitle_o1bnv_23{color:#757575;font-size:14px;line-height:20px;font-weight:400}._alignmentContent_o1bnv_30{display:flex;justify-content:space-between;align-items:stretch;gap:8px}._alignments_o1bnv_37{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_o1bnv_8{cursor:pointer;display:flex;height:100%;width:100%;align-items:center;justify-content:center}._circle_o1bnv_56{width:6px;height:6px;border-radius:50%;background-color:#c2c2c2}._paddings_o1bnv_63{border-radius:12px;display:grid;gap:4px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._padding_o1bnv_63{width:68px;display:flex;align-items:center;gap:4px;background:#f8f8f8;border-radius:12px;padding:10px 8px}._input_o1bnv_81{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_2l7ty_1{color:#757575;font-size:14px;line-height:20px;font-weight:400}._header_2l7ty_8,._text_2l7ty_9,._productsBlock_2l7ty_10{padding:10px 0 16px;display:flex;flex-direction:column;border-bottom:1px solid #f0f0f0;width:100%}._productsBlock_2l7ty_10{position:relative}._top_2l7ty_22{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_2l7ty_29{display:flex;flex-direction:column;gap:6px}._typeTexts_2l7ty_35{display:flex;align-items:center;gap:8px}._block_2l7ty_41{padding:8px;display:flex;align-items:center;justify-content:center;border:1px solid #f8f8f8;background-color:#f8f8f8;border-radius:12px;cursor:pointer}._active_2l7ty_52{border:1px solid #ff3f19}._products_2l7ty_10{width:100%;display:flex;flex-direction:column;gap:8px}._product_2l7ty_10{display:flex;align-items:center;gap:8px;width:100%}._button_2l7ty_70{background:inherit;color:#ff3f19;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}._image_2l7ty_80{border-radius:8px;border:1px solid #f0f0f0;background-color:#fff;padding:4px}._info_2l7ty_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_2l7ty_98{flex:1 1 100%}._buttons_2l7ty_102{display:flex;align-items:center;gap:8px}._modal_2l7ty_108{position:fixed;background-color:#fff;right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_2l7ty_108 ._top_2l7ty_22{display:flex;align-items:center;justify-content:space-between}._other_2l7ty_125{display:flex;flex-direction:column;gap:6px}._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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
import { j as a, I as O, u as wr, c as R, f as Pe, g as K, h as Q, i as je, B as fe, k as V, l as Re, m as ke, n as ae, o as xr, p as Xe, q as Tn, s as ee, d as Vt, r as Sr, C as Ce, e as Or, a as q, b as we, t as We, S as Gt, P as Wt, w as Dn, x as Er, T as Tr, R as Dr, M as Cr } from "./index-ohEJxZVF.js";
|
|
3
|
+
import T, { createContext as jr, memo as Nr, useEffect as Ke, useLayoutEffect as Ir, useState as Pr, useCallback as Rr, useMemo as M, isValidElement as kr, cloneElement as Yt, useContext as Ar } from "react";
|
|
4
4
|
const Br = ["desktop", "tablet", "mobile"], $r = [
|
|
5
5
|
{
|
|
6
6
|
icon: "paint",
|
|
@@ -53,7 +53,7 @@ const Br = ["desktop", "tablet", "mobile"], $r = [
|
|
|
53
53
|
return /* @__PURE__ */ a.jsx("div", { className: ct.devices, children: Br.map((n) => /* @__PURE__ */ a.jsx(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
56
|
+
className: R(ct.device, {
|
|
57
57
|
[ct.active]: t === n
|
|
58
58
|
}),
|
|
59
59
|
onClick: () => e(n),
|
|
@@ -69,7 +69,7 @@ const Br = ["desktop", "tablet", "mobile"], $r = [
|
|
|
69
69
|
},
|
|
70
70
|
n
|
|
71
71
|
)) });
|
|
72
|
-
}, Yr = "
|
|
72
|
+
}, Yr = "_header_wxpoz_1", Jr = "_left_wxpoz_16", Xr = "_right_wxpoz_17", Me = {
|
|
73
73
|
header: Yr,
|
|
74
74
|
left: Jr,
|
|
75
75
|
right: Xr
|
|
@@ -81,7 +81,7 @@ const Br = ["desktop", "tablet", "mobile"], $r = [
|
|
|
81
81
|
return /* @__PURE__ */ a.jsxs(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
|
-
className:
|
|
84
|
+
className: R(lt.preview, {
|
|
85
85
|
[lt.active]: t
|
|
86
86
|
}),
|
|
87
87
|
onClick: () => e(!t),
|
|
@@ -122,7 +122,7 @@ const Br = ["desktop", "tablet", "mobile"], $r = [
|
|
|
122
122
|
height: 20
|
|
123
123
|
}
|
|
124
124
|
)
|
|
125
|
-
] }), os = "_pages_x8pw2_1", is = "_text_x8pw2_16", as = "_modal_x8pw2_22", cs = "_page_x8pw2_1", ls = "_hoverable_x8pw2_45", us = "_separator_x8pw2_49", ds = "_button_x8pw2_53",
|
|
125
|
+
] }), os = "_pages_x8pw2_1", is = "_text_x8pw2_16", as = "_modal_x8pw2_22", cs = "_page_x8pw2_1", ls = "_hoverable_x8pw2_45", us = "_separator_x8pw2_49", ds = "_button_x8pw2_53", se = {
|
|
126
126
|
pages: os,
|
|
127
127
|
default: "_default_x8pw2_5",
|
|
128
128
|
text: is,
|
|
@@ -131,34 +131,34 @@ const Br = ["desktop", "tablet", "mobile"], $r = [
|
|
|
131
131
|
hoverable: ls,
|
|
132
132
|
separator: us,
|
|
133
133
|
button: ds
|
|
134
|
-
},
|
|
135
|
-
function
|
|
134
|
+
}, re = (t) => t ? t.replace(/_/g, " ").split(" ").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" and ") : "";
|
|
135
|
+
function Cn(t, e) {
|
|
136
136
|
return function() {
|
|
137
137
|
return t.apply(e, arguments);
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const { toString: fs } = Object.prototype, { getPrototypeOf:
|
|
140
|
+
const { toString: fs } = Object.prototype, { getPrototypeOf: kt } = Object, Qe = /* @__PURE__ */ ((t) => (e) => {
|
|
141
141
|
const n = fs.call(e);
|
|
142
142
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
143
143
|
})(/* @__PURE__ */ Object.create(null)), Z = (t) => (t = t.toLowerCase(), (e) => Qe(e) === t), Ze = (t) => (e) => typeof e === t, { isArray: xe } = Array, Ie = Ze("undefined");
|
|
144
144
|
function hs(t) {
|
|
145
145
|
return t !== null && !Ie(t) && t.constructor !== null && !Ie(t.constructor) && F(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const jn = Z("ArrayBuffer");
|
|
148
148
|
function ps(t) {
|
|
149
149
|
let e;
|
|
150
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
150
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && jn(t.buffer), e;
|
|
151
151
|
}
|
|
152
152
|
const gs = Ze("string"), F = Ze("function"), Nn = Ze("number"), et = (t) => t !== null && typeof t == "object", ms = (t) => t === !0 || t === !1, ze = (t) => {
|
|
153
153
|
if (Qe(t) !== "object")
|
|
154
154
|
return !1;
|
|
155
|
-
const e =
|
|
155
|
+
const e = kt(t);
|
|
156
156
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
157
157
|
}, vs = Z("Date"), bs = Z("File"), ys = Z("Blob"), _s = Z("FileList"), ws = (t) => et(t) && F(t.pipe), xs = (t) => {
|
|
158
158
|
let e;
|
|
159
159
|
return t && (typeof FormData == "function" && t instanceof FormData || F(t.append) && ((e = Qe(t)) === "formdata" || // detect form-data instance
|
|
160
160
|
e === "object" && F(t.toString) && t.toString() === "[object FormData]"));
|
|
161
|
-
}, Ss = Z("URLSearchParams"), [Os, Es, Ts, Ds] = ["ReadableStream", "Request", "Response", "Headers"].map(Z),
|
|
161
|
+
}, Ss = Z("URLSearchParams"), [Os, Es, Ts, Ds] = ["ReadableStream", "Request", "Response", "Headers"].map(Z), Cs = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
162
162
|
function Ae(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
163
163
|
if (t === null || typeof t > "u")
|
|
164
164
|
return;
|
|
@@ -192,8 +192,8 @@ function xt() {
|
|
|
192
192
|
arguments[r] && Ae(arguments[r], n);
|
|
193
193
|
return e;
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
n && F(s) ? t[o] =
|
|
195
|
+
const js = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (s, o) => {
|
|
196
|
+
n && F(s) ? t[o] = Cn(s, n) : t[o] = s;
|
|
197
197
|
}, { allOwnKeys: r }), t), Ns = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Is = (t, e, n, r) => {
|
|
198
198
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
199
199
|
value: e.prototype
|
|
@@ -205,14 +205,14 @@ const Cs = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (s, o) => {
|
|
|
205
205
|
do {
|
|
206
206
|
for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
|
|
207
207
|
i = s[o], (!r || r(i, t, e)) && !c[i] && (e[i] = t[i], c[i] = !0);
|
|
208
|
-
t = n !== !1 &&
|
|
208
|
+
t = n !== !1 && kt(t);
|
|
209
209
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
210
210
|
return e;
|
|
211
|
-
},
|
|
211
|
+
}, Rs = (t, e, n) => {
|
|
212
212
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
213
213
|
const r = t.indexOf(e, n);
|
|
214
214
|
return r !== -1 && r === n;
|
|
215
|
-
},
|
|
215
|
+
}, ks = (t) => {
|
|
216
216
|
if (!t) return null;
|
|
217
217
|
if (xe(t)) return t;
|
|
218
218
|
let e = t.length;
|
|
@@ -221,7 +221,7 @@ const Cs = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (s, o) => {
|
|
|
221
221
|
for (; e-- > 0; )
|
|
222
222
|
n[e] = t[e];
|
|
223
223
|
return n;
|
|
224
|
-
}, As = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
224
|
+
}, As = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && kt(Uint8Array)), Bs = (t, e) => {
|
|
225
225
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
226
226
|
let s;
|
|
227
227
|
for (; (s = r.next()) && !s.done; ) {
|
|
@@ -239,14 +239,14 @@ const Cs = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (s, o) => {
|
|
|
239
239
|
function(n, r, s) {
|
|
240
240
|
return r.toUpperCase() + s;
|
|
241
241
|
}
|
|
242
|
-
), Xt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fs = Z("RegExp"),
|
|
242
|
+
), Xt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fs = Z("RegExp"), Rn = (t, e) => {
|
|
243
243
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
244
244
|
Ae(n, (s, o) => {
|
|
245
245
|
let i;
|
|
246
246
|
(i = e(s, o, t)) !== !1 && (r[o] = i || s);
|
|
247
247
|
}), Object.defineProperties(t, r);
|
|
248
248
|
}, Us = (t) => {
|
|
249
|
-
|
|
249
|
+
Rn(t, (e, n) => {
|
|
250
250
|
if (F(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
251
251
|
return !1;
|
|
252
252
|
const r = t[n];
|
|
@@ -268,11 +268,11 @@ const Cs = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (s, o) => {
|
|
|
268
268
|
};
|
|
269
269
|
return xe(t) ? r(t) : r(String(t).split(e)), n;
|
|
270
270
|
}, qs = () => {
|
|
271
|
-
}, zs = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, ut = "abcdefghijklmnopqrstuvwxyz", Kt = "0123456789",
|
|
271
|
+
}, zs = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, ut = "abcdefghijklmnopqrstuvwxyz", Kt = "0123456789", kn = {
|
|
272
272
|
DIGIT: Kt,
|
|
273
273
|
ALPHA: ut,
|
|
274
274
|
ALPHA_DIGIT: ut + ut.toUpperCase() + Kt
|
|
275
|
-
}, Vs = (t = 16, e =
|
|
275
|
+
}, Vs = (t = 16, e = kn.ALPHA_DIGIT) => {
|
|
276
276
|
let n = "";
|
|
277
277
|
const { length: r } = e;
|
|
278
278
|
for (; t--; )
|
|
@@ -308,7 +308,7 @@ const Ws = (t) => {
|
|
|
308
308
|
F(ue.postMessage)
|
|
309
309
|
), Xs = typeof queueMicrotask < "u" ? queueMicrotask.bind(ue) : typeof process < "u" && process.nextTick || An, f = {
|
|
310
310
|
isArray: xe,
|
|
311
|
-
isArrayBuffer:
|
|
311
|
+
isArrayBuffer: jn,
|
|
312
312
|
isBuffer: hs,
|
|
313
313
|
isFormData: xs,
|
|
314
314
|
isArrayBufferView: ps,
|
|
@@ -333,22 +333,22 @@ const Ws = (t) => {
|
|
|
333
333
|
isFileList: _s,
|
|
334
334
|
forEach: Ae,
|
|
335
335
|
merge: xt,
|
|
336
|
-
extend:
|
|
337
|
-
trim:
|
|
336
|
+
extend: js,
|
|
337
|
+
trim: Cs,
|
|
338
338
|
stripBOM: Ns,
|
|
339
339
|
inherits: Is,
|
|
340
340
|
toFlatObject: Ps,
|
|
341
341
|
kindOf: Qe,
|
|
342
342
|
kindOfTest: Z,
|
|
343
|
-
endsWith:
|
|
344
|
-
toArray:
|
|
343
|
+
endsWith: Rs,
|
|
344
|
+
toArray: ks,
|
|
345
345
|
forEachEntry: Bs,
|
|
346
346
|
matchAll: $s,
|
|
347
347
|
isHTMLForm: Ls,
|
|
348
348
|
hasOwnProperty: Xt,
|
|
349
349
|
hasOwnProp: Xt,
|
|
350
350
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
351
|
-
reduceDescriptors:
|
|
351
|
+
reduceDescriptors: Rn,
|
|
352
352
|
freezeMethods: Us,
|
|
353
353
|
toObjectSet: Hs,
|
|
354
354
|
toCamelCase: Ms,
|
|
@@ -357,7 +357,7 @@ const Ws = (t) => {
|
|
|
357
357
|
findKey: In,
|
|
358
358
|
global: ue,
|
|
359
359
|
isContextDefined: Pn,
|
|
360
|
-
ALPHABET:
|
|
360
|
+
ALPHABET: kn,
|
|
361
361
|
generateString: Vs,
|
|
362
362
|
isSpecCompliantForm: Gs,
|
|
363
363
|
toJSONObject: Ws,
|
|
@@ -1159,7 +1159,7 @@ const Gn = (t) => {
|
|
|
1159
1159
|
u && i.set(s, u);
|
|
1160
1160
|
}
|
|
1161
1161
|
return e;
|
|
1162
|
-
}, Do = typeof XMLHttpRequest < "u",
|
|
1162
|
+
}, Do = typeof XMLHttpRequest < "u", Co = Do && function(t) {
|
|
1163
1163
|
return new Promise(function(n, r) {
|
|
1164
1164
|
const s = Gn(t);
|
|
1165
1165
|
let o = s.data;
|
|
@@ -1216,7 +1216,7 @@ const Gn = (t) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
g.send(o || null);
|
|
1218
1218
|
});
|
|
1219
|
-
},
|
|
1219
|
+
}, jo = (t, e) => {
|
|
1220
1220
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1221
1221
|
if (e || n) {
|
|
1222
1222
|
let r = new AbortController(), s;
|
|
@@ -1296,13 +1296,13 @@ const Gn = (t) => {
|
|
|
1296
1296
|
}, {
|
|
1297
1297
|
highWaterMark: 2
|
|
1298
1298
|
});
|
|
1299
|
-
}, nt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Wn = nt && typeof ReadableStream == "function",
|
|
1299
|
+
}, nt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Wn = nt && typeof ReadableStream == "function", Ro = nt && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Yn = (t, ...e) => {
|
|
1300
1300
|
try {
|
|
1301
1301
|
return !!t(...e);
|
|
1302
1302
|
} catch {
|
|
1303
1303
|
return !1;
|
|
1304
1304
|
}
|
|
1305
|
-
},
|
|
1305
|
+
}, ko = Wn && Yn(() => {
|
|
1306
1306
|
let t = !1;
|
|
1307
1307
|
const e = new Request($.origin, {
|
|
1308
1308
|
body: new ReadableStream(),
|
|
@@ -1335,7 +1335,7 @@ const Ao = async (t) => {
|
|
|
1335
1335
|
if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
|
|
1336
1336
|
return t.byteLength;
|
|
1337
1337
|
if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
|
|
1338
|
-
return (await
|
|
1338
|
+
return (await Ro(t)).byteLength;
|
|
1339
1339
|
}, Bo = async (t, e) => {
|
|
1340
1340
|
const n = f.toFiniteNumber(t.getContentLength());
|
|
1341
1341
|
return n ?? Ao(e);
|
|
@@ -1355,19 +1355,19 @@ const Ao = async (t) => {
|
|
|
1355
1355
|
fetchOptions: b
|
|
1356
1356
|
} = Gn(t);
|
|
1357
1357
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1358
|
-
let v =
|
|
1358
|
+
let v = jo([s, o && o.toAbortSignal()], i), m;
|
|
1359
1359
|
const p = v && v.unsubscribe && (() => {
|
|
1360
1360
|
v.unsubscribe();
|
|
1361
1361
|
});
|
|
1362
1362
|
let g;
|
|
1363
1363
|
try {
|
|
1364
|
-
if (l &&
|
|
1364
|
+
if (l && ko && n !== "get" && n !== "head" && (g = await Bo(d, r)) !== 0) {
|
|
1365
1365
|
let D = new Request(e, {
|
|
1366
1366
|
method: "POST",
|
|
1367
1367
|
body: r,
|
|
1368
1368
|
duplex: "half"
|
|
1369
|
-
}),
|
|
1370
|
-
if (f.isFormData(r) && (
|
|
1369
|
+
}), k;
|
|
1370
|
+
if (f.isFormData(r) && (k = D.headers.get("content-type")) && d.setContentType(k), D.body) {
|
|
1371
1371
|
const [A, G] = nn(
|
|
1372
1372
|
g,
|
|
1373
1373
|
Ye(rn(l))
|
|
@@ -1393,8 +1393,8 @@ const Ao = async (t) => {
|
|
|
1393
1393
|
["status", "statusText", "headers"].forEach((E) => {
|
|
1394
1394
|
D[E] = _[E];
|
|
1395
1395
|
});
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1396
|
+
const k = f.toFiniteNumber(_.headers.get("content-length")), [A, G] = c && nn(
|
|
1397
|
+
k,
|
|
1398
1398
|
Ye(rn(c), !0)
|
|
1399
1399
|
) || [];
|
|
1400
1400
|
_ = new Response(
|
|
@@ -1406,8 +1406,8 @@ const Ao = async (t) => {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
u = u || "text";
|
|
1408
1408
|
let N = await Je[f.findKey(Je, u) || "text"](_, t);
|
|
1409
|
-
return !w && p && p(), await new Promise((D,
|
|
1410
|
-
zn(D,
|
|
1409
|
+
return !w && p && p(), await new Promise((D, k) => {
|
|
1410
|
+
zn(D, k, {
|
|
1411
1411
|
data: N,
|
|
1412
1412
|
headers: L.from(_.headers),
|
|
1413
1413
|
status: _.status,
|
|
@@ -1426,7 +1426,7 @@ const Ao = async (t) => {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
}), Tt = {
|
|
1428
1428
|
http: Ks,
|
|
1429
|
-
xhr:
|
|
1429
|
+
xhr: Co,
|
|
1430
1430
|
fetch: $o
|
|
1431
1431
|
};
|
|
1432
1432
|
f.forEach(Tt, (t, e) => {
|
|
@@ -1739,7 +1739,7 @@ function Fo(t) {
|
|
|
1739
1739
|
function Uo(t) {
|
|
1740
1740
|
return f.isObject(t) && t.isAxiosError === !0;
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const Ct = {
|
|
1743
1743
|
Continue: 100,
|
|
1744
1744
|
SwitchingProtocols: 101,
|
|
1745
1745
|
Processing: 102,
|
|
@@ -1804,44 +1804,44 @@ const jt = {
|
|
|
1804
1804
|
NotExtended: 510,
|
|
1805
1805
|
NetworkAuthenticationRequired: 511
|
|
1806
1806
|
};
|
|
1807
|
-
Object.entries(
|
|
1808
|
-
|
|
1807
|
+
Object.entries(Ct).forEach(([t, e]) => {
|
|
1808
|
+
Ct[e] = t;
|
|
1809
1809
|
});
|
|
1810
1810
|
function Kn(t) {
|
|
1811
|
-
const e = new de(t), n =
|
|
1811
|
+
const e = new de(t), n = Cn(de.prototype.request, e);
|
|
1812
1812
|
return f.extend(n, de.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1813
1813
|
return Kn(he(t, s));
|
|
1814
1814
|
}, n;
|
|
1815
1815
|
}
|
|
1816
|
-
const
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1816
|
+
const j = Kn(Be);
|
|
1817
|
+
j.Axios = de;
|
|
1818
|
+
j.CanceledError = Se;
|
|
1819
|
+
j.CancelToken = Lt;
|
|
1820
|
+
j.isCancel = qn;
|
|
1821
|
+
j.VERSION = Xn;
|
|
1822
|
+
j.toFormData = tt;
|
|
1823
|
+
j.AxiosError = x;
|
|
1824
|
+
j.Cancel = j.CanceledError;
|
|
1825
|
+
j.all = function(e) {
|
|
1826
1826
|
return Promise.all(e);
|
|
1827
1827
|
};
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1828
|
+
j.spread = Fo;
|
|
1829
|
+
j.isAxiosError = Uo;
|
|
1830
|
+
j.mergeConfig = he;
|
|
1831
|
+
j.AxiosHeaders = L;
|
|
1832
|
+
j.formToJSON = (t) => Hn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1833
|
+
j.getAdapter = Jn.getAdapter;
|
|
1834
|
+
j.HttpStatusCode = Ct;
|
|
1835
|
+
j.default = j;
|
|
1836
1836
|
const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
1837
1837
|
const r = localStorage.getItem("shopId") || void 0, s = `${Ho}/v2/builder/shops/${r}/${e}`, o = localStorage.getItem("accessToken") || void 0;
|
|
1838
1838
|
if (t.toUpperCase() === "GET")
|
|
1839
|
-
return (await
|
|
1839
|
+
return (await j.get(s, {
|
|
1840
1840
|
headers: {
|
|
1841
1841
|
Authorization: `Bearer ${o}`
|
|
1842
1842
|
}
|
|
1843
1843
|
})).data;
|
|
1844
|
-
t.toUpperCase() === "POST" && await
|
|
1844
|
+
t.toUpperCase() === "POST" && await j.post(
|
|
1845
1845
|
s,
|
|
1846
1846
|
{
|
|
1847
1847
|
...n
|
|
@@ -1851,7 +1851,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1851
1851
|
Authorization: `Bearer ${o}`
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
), t.toUpperCase() === "PUT" && await
|
|
1854
|
+
), t.toUpperCase() === "PUT" && await j.put(
|
|
1855
1855
|
s,
|
|
1856
1856
|
{
|
|
1857
1857
|
...n
|
|
@@ -1881,11 +1881,11 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1881
1881
|
return document.body.addEventListener("click", b), () => {
|
|
1882
1882
|
document.body.removeEventListener("click", b);
|
|
1883
1883
|
};
|
|
1884
|
-
}, []), /* @__PURE__ */ a.jsxs("div", { className:
|
|
1884
|
+
}, []), /* @__PURE__ */ a.jsxs("div", { className: se.pages, children: [
|
|
1885
1885
|
/* @__PURE__ */ a.jsxs(
|
|
1886
1886
|
"div",
|
|
1887
1887
|
{
|
|
1888
|
-
className:
|
|
1888
|
+
className: se.default,
|
|
1889
1889
|
onClick: (b) => {
|
|
1890
1890
|
b.stopPropagation(), l(!c);
|
|
1891
1891
|
},
|
|
@@ -1899,7 +1899,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1899
1899
|
height: 20
|
|
1900
1900
|
}
|
|
1901
1901
|
),
|
|
1902
|
-
/* @__PURE__ */ a.jsx("span", { className:
|
|
1902
|
+
/* @__PURE__ */ a.jsx("span", { className: se.text, children: je.includes(r[t].name) ? `${re(r[t].name)} page` : r[t].name }),
|
|
1903
1903
|
/* @__PURE__ */ a.jsx(
|
|
1904
1904
|
O,
|
|
1905
1905
|
{
|
|
@@ -1914,7 +1914,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1914
1914
|
c && /* @__PURE__ */ a.jsxs(
|
|
1915
1915
|
"div",
|
|
1916
1916
|
{
|
|
1917
|
-
className:
|
|
1917
|
+
className: se.modal,
|
|
1918
1918
|
onClick: (b) => b.stopPropagation(),
|
|
1919
1919
|
children: [
|
|
1920
1920
|
Object.keys(r).map((b) => {
|
|
@@ -1922,8 +1922,8 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1922
1922
|
return /* @__PURE__ */ a.jsxs(
|
|
1923
1923
|
"div",
|
|
1924
1924
|
{
|
|
1925
|
-
className:
|
|
1926
|
-
[
|
|
1925
|
+
className: R(se.page, {
|
|
1926
|
+
[se.hoverable]: d === b
|
|
1927
1927
|
}),
|
|
1928
1928
|
onMouseEnter: () => h(b),
|
|
1929
1929
|
onMouseLeave: () => h(""),
|
|
@@ -1938,7 +1938,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1938
1938
|
fill: "#252525"
|
|
1939
1939
|
}
|
|
1940
1940
|
),
|
|
1941
|
-
/* @__PURE__ */ a.jsx("span", { className:
|
|
1941
|
+
/* @__PURE__ */ a.jsx("span", { className: se.text, children: je.includes(v.name) ? `${re(v.name)} page` : v.name }),
|
|
1942
1942
|
d === b && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1943
1943
|
/* @__PURE__ */ a.jsx(
|
|
1944
1944
|
O,
|
|
@@ -1950,7 +1950,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
),
|
|
1953
|
-
!
|
|
1953
|
+
!je.includes(v.name) && /* @__PURE__ */ a.jsx(
|
|
1954
1954
|
O,
|
|
1955
1955
|
{
|
|
1956
1956
|
name: "trash",
|
|
@@ -1973,11 +1973,11 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
1973
1973
|
b
|
|
1974
1974
|
);
|
|
1975
1975
|
}),
|
|
1976
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
1976
|
+
/* @__PURE__ */ a.jsx("div", { className: se.separator }),
|
|
1977
1977
|
/* @__PURE__ */ a.jsxs(
|
|
1978
1978
|
fe,
|
|
1979
1979
|
{
|
|
1980
|
-
className:
|
|
1980
|
+
className: se.button,
|
|
1981
1981
|
onClick: (b) => {
|
|
1982
1982
|
b.stopPropagation(), n(!0);
|
|
1983
1983
|
},
|
|
@@ -2037,7 +2037,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2037
2037
|
),
|
|
2038
2038
|
/* @__PURE__ */ a.jsx("div", { children: "Current Theme" })
|
|
2039
2039
|
] }), Qo = () => {
|
|
2040
|
-
const { themeSettings: t } = V(), { settings: e } =
|
|
2040
|
+
const { themeSettings: t } = V(), { settings: e } = Re(), [n, r] = T.useState(null), [s, o] = T.useState(!1), { pages: i } = K(), { blocks: c } = Q();
|
|
2041
2041
|
function l(v, m) {
|
|
2042
2042
|
return m.map(
|
|
2043
2043
|
(g) => Object.values(g.value).filter((y) => y.type === v).map((y) => y.value).flat()
|
|
@@ -2121,7 +2121,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2121
2121
|
block: si,
|
|
2122
2122
|
active: oi
|
|
2123
2123
|
}, ii = () => {
|
|
2124
|
-
const { activeBlock: t, setActiveBlock: e } =
|
|
2124
|
+
const { activeBlock: t, setActiveBlock: e } = ke(), { setActiveBlock: n } = ae(), { setCurrentBlock: r } = Q(), { setActiveBlock: s } = V();
|
|
2125
2125
|
function o(i) {
|
|
2126
2126
|
n(null), e(i), r(null), s(null);
|
|
2127
2127
|
}
|
|
@@ -2130,7 +2130,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2130
2130
|
/* @__PURE__ */ a.jsx("div", { className: Fe.main, children: xr.map((i) => /* @__PURE__ */ a.jsxs(
|
|
2131
2131
|
"div",
|
|
2132
2132
|
{
|
|
2133
|
-
className:
|
|
2133
|
+
className: R(Fe.block, {
|
|
2134
2134
|
[Fe.active]: t.icon === i.icon
|
|
2135
2135
|
}),
|
|
2136
2136
|
onClick: () => o(i),
|
|
@@ -2148,14 +2148,14 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2148
2148
|
i.icon
|
|
2149
2149
|
)) })
|
|
2150
2150
|
] });
|
|
2151
|
-
}, ai = "
|
|
2151
|
+
}, ai = "_preview_jui5n_1", ci = "_main_jui5n_9", li = "_content_jui5n_19", ui = "_loading_jui5n_26", di = "_loader_jui5n_34", fi = "_spin_jui5n_1", Te = {
|
|
2152
2152
|
preview: ai,
|
|
2153
2153
|
main: ci,
|
|
2154
2154
|
content: li,
|
|
2155
2155
|
loading: ui,
|
|
2156
2156
|
loader: di,
|
|
2157
2157
|
spin: fi
|
|
2158
|
-
}, hi = "_header_1t64j_1", pi = "_circles_1t64j_14", gi = "_circle_1t64j_14", mi = "_red_1t64j_30", vi = "_green_1t64j_34", bi = "_yellow_1t64j_38", yi = "_input_1t64j_42", _i = "_main_1t64j_51", wi = "_text_1t64j_59",
|
|
2158
|
+
}, hi = "_header_1t64j_1", pi = "_circles_1t64j_14", gi = "_circle_1t64j_14", mi = "_red_1t64j_30", vi = "_green_1t64j_34", bi = "_yellow_1t64j_38", yi = "_input_1t64j_42", _i = "_main_1t64j_51", wi = "_text_1t64j_59", oe = {
|
|
2159
2159
|
header: hi,
|
|
2160
2160
|
circles: pi,
|
|
2161
2161
|
circle: gi,
|
|
@@ -2165,20 +2165,20 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2165
2165
|
input: yi,
|
|
2166
2166
|
main: _i,
|
|
2167
2167
|
text: wi
|
|
2168
|
-
}, xi = "data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='0.5'%20width='16'%20height='16'%20fill='url(%23pattern0_4042_718)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_4042_718'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_4042_718'%20transform='scale(0.015625)'/%3e%3c/pattern%3e%3cimage%20id='image0_4042_718'%20width='64'%20height='64'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAONJREFUeF7t20EOhEAIRFG4/6F7DvEnYeFzryQIv6pBd2behOu9dPvsbog+k+NLgArQAqmJcw9iAAhSgZKB3IJkkAySQTJ4CiE+gA8oBeg0mH3Ai084P89HhqwEqIA209ICsQdjAeaZIgaAYKxBDMCAYy8fXwAIgiAIcoJpJEYGI4VjB3YrbC9gL2AvkCB43cM5PgZgAAZgQFnNZAhdGykQBEEQBEEQDBmgAm2glM/z+QUYisYUGoldO7kY32IEAzCg6RgIRgjFAsw+AgRBMNYgBmCAT2TCYfoPPz/HCqQCX1eBHzHnv7C7WhBSAAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e", Si = ["red", "yellow", "green"], Oi = () => /* @__PURE__ */ a.jsxs("div", { className:
|
|
2169
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
2168
|
+
}, xi = "data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='0.5'%20width='16'%20height='16'%20fill='url(%23pattern0_4042_718)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_4042_718'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_4042_718'%20transform='scale(0.015625)'/%3e%3c/pattern%3e%3cimage%20id='image0_4042_718'%20width='64'%20height='64'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAONJREFUeF7t20EOhEAIRFG4/6F7DvEnYeFzryQIv6pBd2behOu9dPvsbog+k+NLgArQAqmJcw9iAAhSgZKB3IJkkAySQTJ4CiE+gA8oBeg0mH3Ai084P89HhqwEqIA209ICsQdjAeaZIgaAYKxBDMCAYy8fXwAIgiAIcoJpJEYGI4VjB3YrbC9gL2AvkCB43cM5PgZgAAZgQFnNZAhdGykQBEEQBEEQDBmgAm2glM/z+QUYisYUGoldO7kY32IEAzCg6RgIRgjFAsw+AgRBMNYgBmCAT2TCYfoPPz/HCqQCX1eBHzHnv7C7WhBSAAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e", Si = ["red", "yellow", "green"], Oi = () => /* @__PURE__ */ a.jsxs("div", { className: oe.header, children: [
|
|
2169
|
+
/* @__PURE__ */ a.jsx("div", { className: oe.circles, children: Si.map((t) => /* @__PURE__ */ a.jsx(
|
|
2170
2170
|
"div",
|
|
2171
2171
|
{
|
|
2172
|
-
className:
|
|
2173
|
-
[
|
|
2174
|
-
[
|
|
2175
|
-
[
|
|
2172
|
+
className: R(oe.circle, {
|
|
2173
|
+
[oe.red]: t === "red",
|
|
2174
|
+
[oe.yellow]: t === "yellow",
|
|
2175
|
+
[oe.green]: t === "green"
|
|
2176
2176
|
})
|
|
2177
2177
|
},
|
|
2178
2178
|
t
|
|
2179
2179
|
)) }),
|
|
2180
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
2181
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
2180
|
+
/* @__PURE__ */ a.jsxs("div", { className: oe.input, children: [
|
|
2181
|
+
/* @__PURE__ */ a.jsxs("div", { className: oe.main, children: [
|
|
2182
2182
|
/* @__PURE__ */ a.jsx(
|
|
2183
2183
|
"img",
|
|
2184
2184
|
{
|
|
@@ -2186,7 +2186,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2186
2186
|
alt: ""
|
|
2187
2187
|
}
|
|
2188
2188
|
),
|
|
2189
|
-
/* @__PURE__ */ a.jsx("span", { className:
|
|
2189
|
+
/* @__PURE__ */ a.jsx("span", { className: oe.text, children: "lorem.ipsum" }),
|
|
2190
2190
|
/* @__PURE__ */ a.jsx(
|
|
2191
2191
|
O,
|
|
2192
2192
|
{
|
|
@@ -2206,17 +2206,17 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2206
2206
|
}
|
|
2207
2207
|
)
|
|
2208
2208
|
] })
|
|
2209
|
-
] }), Ei = "_content_92dk8_1", Ti = "_block_92dk8_6", Di = "_active_92dk8_13",
|
|
2209
|
+
] }), Ei = "_content_92dk8_1", Ti = "_block_92dk8_6", Di = "_active_92dk8_13", Ci = "_name_92dk8_17", ji = "_empty_92dk8_31", Ni = "_icon_92dk8_42", Ii = "_title_92dk8_53", Pi = "_text_92dk8_59", Ri = "_sections_92dk8_65", ki = "_section_92dk8_65", J = {
|
|
2210
2210
|
content: Ei,
|
|
2211
2211
|
block: Ti,
|
|
2212
2212
|
active: Di,
|
|
2213
|
-
name:
|
|
2214
|
-
empty:
|
|
2213
|
+
name: Ci,
|
|
2214
|
+
empty: ji,
|
|
2215
2215
|
icon: Ni,
|
|
2216
2216
|
title: Ii,
|
|
2217
2217
|
text: Pi,
|
|
2218
|
-
sections:
|
|
2219
|
-
section:
|
|
2218
|
+
sections: Ri,
|
|
2219
|
+
section: ki
|
|
2220
2220
|
}, Ai = "_sidebar_1f3hk_1", Bi = "_content_1f3hk_12", $i = "_button_1f3hk_22", Li = "_moveButton_1f3hk_30", Mi = "_border_1f3hk_34", Fi = "_deleteButton_1f3hk_38", U = {
|
|
2221
2221
|
sidebar: Ai,
|
|
2222
2222
|
content: Bi,
|
|
@@ -2237,7 +2237,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2237
2237
|
"button",
|
|
2238
2238
|
{
|
|
2239
2239
|
onClick: u,
|
|
2240
|
-
className:
|
|
2240
|
+
className: R(U.button, U.moveButton),
|
|
2241
2241
|
disabled: l === 0,
|
|
2242
2242
|
children: /* @__PURE__ */ a.jsx(O, { name: "arrow-preview-up" })
|
|
2243
2243
|
}
|
|
@@ -2246,7 +2246,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2246
2246
|
"button",
|
|
2247
2247
|
{
|
|
2248
2248
|
onClick: d,
|
|
2249
|
-
className:
|
|
2249
|
+
className: R(U.button, U.moveButton),
|
|
2250
2250
|
disabled: l === c.length - 1,
|
|
2251
2251
|
children: /* @__PURE__ */ a.jsx(O, { name: "arrow-preview-down" })
|
|
2252
2252
|
}
|
|
@@ -2256,7 +2256,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2256
2256
|
"button",
|
|
2257
2257
|
{
|
|
2258
2258
|
onClick: h,
|
|
2259
|
-
className:
|
|
2259
|
+
className: R(U.button, U.moveButton),
|
|
2260
2260
|
children: /* @__PURE__ */ a.jsx(O, { name: "copy" })
|
|
2261
2261
|
}
|
|
2262
2262
|
),
|
|
@@ -2265,7 +2265,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2265
2265
|
"button",
|
|
2266
2266
|
{
|
|
2267
2267
|
onClick: () => n(i[o].name, t),
|
|
2268
|
-
className:
|
|
2268
|
+
className: R(U.button, U.deleteButton),
|
|
2269
2269
|
children: /* @__PURE__ */ a.jsx(
|
|
2270
2270
|
O,
|
|
2271
2271
|
{
|
|
@@ -2325,7 +2325,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2325
2325
|
] })
|
|
2326
2326
|
] });
|
|
2327
2327
|
}, qi = T.memo(() => {
|
|
2328
|
-
const { setActiveBlock: t, activeBlock: e } = Pe(), { blocks: n } = ae(), { blocks: r } = Q(), { settings: s } =
|
|
2328
|
+
const { setActiveBlock: t, activeBlock: e } = Pe(), { blocks: n } = ae(), { blocks: r } = Q(), { settings: s } = Re(), { currentPage: o, pages: i, setIsOpenSelectModal: c } = K(), l = (h) => {
|
|
2329
2329
|
const b = n[h.name], v = h.value;
|
|
2330
2330
|
for (const m in v)
|
|
2331
2331
|
b[m] = v[m];
|
|
@@ -2357,7 +2357,7 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2357
2357
|
"div",
|
|
2358
2358
|
{
|
|
2359
2359
|
onClick: () => t(h),
|
|
2360
|
-
className:
|
|
2360
|
+
className: R(J.block, {
|
|
2361
2361
|
[J.active]: e === h
|
|
2362
2362
|
}),
|
|
2363
2363
|
children: [
|
|
@@ -2442,27 +2442,27 @@ const Ho = "https://g-api.billgang.com", qo = async (t = "get", e, n) => {
|
|
|
2442
2442
|
l(!0), _(I, P, E.currentTarget);
|
|
2443
2443
|
}, g = (E) => {
|
|
2444
2444
|
if (c) {
|
|
2445
|
-
const I = document.querySelector(`.${ee.colorMap}`), { left: P, top: B } = I.getBoundingClientRect(),
|
|
2446
|
-
_(
|
|
2445
|
+
const I = document.querySelector(`.${ee.colorMap}`), { left: P, top: B } = I.getBoundingClientRect(), C = E.clientX - P, ce = E.clientY - B;
|
|
2446
|
+
_(C, ce, I);
|
|
2447
2447
|
}
|
|
2448
2448
|
}, y = () => {
|
|
2449
2449
|
l(!1);
|
|
2450
2450
|
}, _ = (E, I, P) => {
|
|
2451
|
-
const { width: B, height:
|
|
2451
|
+
const { width: B, height: C } = P.getBoundingClientRect(), ce = Math.max(0, Math.min(E / B * 100, 100)), $e = Math.max(0, Math.min(100 - I / C * 100, 100));
|
|
2452
2452
|
d(ce), h($e), w(ce, $e);
|
|
2453
2453
|
}, w = (E, I) => {
|
|
2454
|
-
const P =
|
|
2454
|
+
const P = k(s, E, I);
|
|
2455
2455
|
b(P), v(P);
|
|
2456
2456
|
}, N = (E, I, P) => {
|
|
2457
2457
|
I /= 100, P /= 100;
|
|
2458
|
-
const B = (Le) => (Le + E / 60) % 6,
|
|
2458
|
+
const B = (Le) => (Le + E / 60) % 6, C = (Le) => P * (1 - I * Math.max(0, Math.min(B(Le), 4 - B(Le), 1))), ce = Math.round(255 * C(5)), $e = Math.round(255 * C(3)), _r = Math.round(255 * C(1));
|
|
2459
2459
|
return { r: ce, g: $e, b: _r };
|
|
2460
2460
|
}, D = (E, I, P) => {
|
|
2461
|
-
const B = (
|
|
2461
|
+
const B = (C) => C.toString(16).padStart(2, "0");
|
|
2462
2462
|
return `#${B(E)}${B(I)}${B(P)}`;
|
|
2463
|
-
},
|
|
2464
|
-
const { r: B, g:
|
|
2465
|
-
return D(B,
|
|
2463
|
+
}, k = (E, I, P) => {
|
|
2464
|
+
const { r: B, g: C, b: ce } = N(E, I, P);
|
|
2465
|
+
return D(B, C, ce);
|
|
2466
2466
|
};
|
|
2467
2467
|
T.useEffect(() => {
|
|
2468
2468
|
const E = (P) => g(P), I = () => y();
|
|
@@ -2530,7 +2530,7 @@ linear-gradient(to right, hsl(${s}, 100%, 100%), hsl(${s}, 100%, 50%))
|
|
|
2530
2530
|
fe,
|
|
2531
2531
|
{
|
|
2532
2532
|
onClick: G,
|
|
2533
|
-
className:
|
|
2533
|
+
className: R(ee.applyButton, ee.cancelButton),
|
|
2534
2534
|
children: "Cancel"
|
|
2535
2535
|
}
|
|
2536
2536
|
),
|
|
@@ -2547,7 +2547,7 @@ linear-gradient(to right, hsl(${s}, 100%, 100%), hsl(${s}, 100%, 50%))
|
|
|
2547
2547
|
}
|
|
2548
2548
|
);
|
|
2549
2549
|
}, Ki = () => {
|
|
2550
|
-
const { onPreview: t } = Pe(), { hoverBlockId: e, isModalVisible: n, isPreviewVisible: r } = Xe(), { settings: s } =
|
|
2550
|
+
const { onPreview: t } = Pe(), { hoverBlockId: e, isModalVisible: n, isPreviewVisible: r } = Xe(), { settings: s } = Re(), { blocks: o } = ae(), { blocks: i } = Q(), { currentPage: c, pages: l } = K(), { showModal: u } = Tn(), [d, h] = T.useState(!0);
|
|
2551
2551
|
T.useEffect(() => {
|
|
2552
2552
|
t && setTimeout(() => {
|
|
2553
2553
|
h(!1);
|
|
@@ -2575,11 +2575,11 @@ linear-gradient(to right, hsl(${s}, 100%, 100%), hsl(${s}, 100%, 50%))
|
|
|
2575
2575
|
/* @__PURE__ */ a.jsx("div", { className: Te.content, children: d ? /* @__PURE__ */ a.jsx("div", { className: Te.loading, children: /* @__PURE__ */ a.jsx("div", { className: Te.loader }) }) : /* @__PURE__ */ a.jsx(qi, {}) })
|
|
2576
2576
|
] })
|
|
2577
2577
|
] });
|
|
2578
|
-
}, Qi = "
|
|
2578
|
+
}, Qi = "_sidebar_1r5sp_1", Zi = "_title_1r5sp_10", ea = "_active_1r5sp_18", hn = {
|
|
2579
2579
|
sidebar: Qi,
|
|
2580
2580
|
title: Zi,
|
|
2581
2581
|
active: ea
|
|
2582
|
-
}, er =
|
|
2582
|
+
}, er = jr({
|
|
2583
2583
|
dragDropManager: void 0
|
|
2584
2584
|
});
|
|
2585
2585
|
function H(t) {
|
|
@@ -2921,7 +2921,7 @@ function Oa(t) {
|
|
|
2921
2921
|
function Ea(t) {
|
|
2922
2922
|
S(t.isDragging(), "Cannot call endDrag while not dragging.");
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function jt(t, e) {
|
|
2925
2925
|
return e === null ? t === null : Array.isArray(t) ? t.some(
|
|
2926
2926
|
(n) => n === e
|
|
2927
2927
|
) : t === e;
|
|
@@ -2930,7 +2930,7 @@ function Ta(t) {
|
|
|
2930
2930
|
return function(n, { clientOffset: r } = {}) {
|
|
2931
2931
|
Da(n);
|
|
2932
2932
|
const s = n.slice(0), o = t.getMonitor(), i = t.getRegistry(), c = o.getItemType();
|
|
2933
|
-
return
|
|
2933
|
+
return ja(s, i, c), Ca(s, o, i), Na(s, o, i), {
|
|
2934
2934
|
type: st,
|
|
2935
2935
|
payload: {
|
|
2936
2936
|
targetIds: s,
|
|
@@ -2942,7 +2942,7 @@ function Ta(t) {
|
|
|
2942
2942
|
function Da(t) {
|
|
2943
2943
|
S(Array.isArray(t), "Expected targetIds to be an array.");
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function Ca(t, e, n) {
|
|
2946
2946
|
S(e.isDragging(), "Cannot call hover while not dragging."), S(!e.didDrop(), "Cannot call hover after drop.");
|
|
2947
2947
|
for (let r = 0; r < t.length; r++) {
|
|
2948
2948
|
const s = t[r];
|
|
@@ -2951,10 +2951,10 @@ function ja(t, e, n) {
|
|
|
2951
2951
|
S(o, "Expected targetIds to be registered.");
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
|
-
function
|
|
2954
|
+
function ja(t, e, n) {
|
|
2955
2955
|
for (let r = t.length - 1; r >= 0; r--) {
|
|
2956
2956
|
const s = t[r], o = e.getTargetType(s);
|
|
2957
|
-
|
|
2957
|
+
jt(o, n) || t.splice(r, 1);
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
2960
|
function Na(t, e, n) {
|
|
@@ -2979,7 +2979,7 @@ function Pa(t) {
|
|
|
2979
2979
|
endDrag: Oa(t)
|
|
2980
2980
|
};
|
|
2981
2981
|
}
|
|
2982
|
-
class
|
|
2982
|
+
class Ra {
|
|
2983
2983
|
receiveBackend(e) {
|
|
2984
2984
|
this.backend = e;
|
|
2985
2985
|
}
|
|
@@ -3016,7 +3016,7 @@ class ka {
|
|
|
3016
3016
|
}, this.store = e, this.monitor = n, e.subscribe(this.handleRefCountChange);
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function ka(t, e) {
|
|
3020
3020
|
return {
|
|
3021
3021
|
x: t.x + e.x,
|
|
3022
3022
|
y: t.y + e.y
|
|
@@ -3030,7 +3030,7 @@ function rr(t, e) {
|
|
|
3030
3030
|
}
|
|
3031
3031
|
function Aa(t) {
|
|
3032
3032
|
const { clientOffset: e, initialClientOffset: n, initialSourceClientOffset: r } = t;
|
|
3033
|
-
return !e || !n || !r ? null : rr(
|
|
3033
|
+
return !e || !n || !r ? null : rr(ka(e, r), n);
|
|
3034
3034
|
}
|
|
3035
3035
|
function Ba(t) {
|
|
3036
3036
|
const { clientOffset: e, initialClientOffset: n } = t;
|
|
@@ -3079,7 +3079,7 @@ class La {
|
|
|
3079
3079
|
if (S(n, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
|
|
3080
3080
|
return !1;
|
|
3081
3081
|
const r = this.registry.getTargetType(e), s = this.getItemType();
|
|
3082
|
-
return
|
|
3082
|
+
return jt(r, s) && n.canDrop(this, e);
|
|
3083
3083
|
}
|
|
3084
3084
|
isDragging() {
|
|
3085
3085
|
return !!this.getItemType();
|
|
@@ -3102,7 +3102,7 @@ class La {
|
|
|
3102
3102
|
if (!this.isDragging())
|
|
3103
3103
|
return !1;
|
|
3104
3104
|
const s = this.registry.getTargetType(e), o = this.getItemType();
|
|
3105
|
-
if (o && !
|
|
3105
|
+
if (o && !jt(s, o))
|
|
3106
3106
|
return !1;
|
|
3107
3107
|
const i = this.getTargetIds();
|
|
3108
3108
|
if (!i.length)
|
|
@@ -3615,7 +3615,7 @@ function mc(t = {}, e) {
|
|
|
3615
3615
|
};
|
|
3616
3616
|
}
|
|
3617
3617
|
function vc(t, e = void 0, n = {}, r = !1) {
|
|
3618
|
-
const s = bc(r), o = new La(s, new tc(s)), i = new
|
|
3618
|
+
const s = bc(r), o = new La(s, new tc(s)), i = new Ra(s, o), c = t(i, e, n);
|
|
3619
3619
|
return i.receiveBackend(c), i;
|
|
3620
3620
|
}
|
|
3621
3621
|
function bc(t) {
|
|
@@ -3713,7 +3713,7 @@ const Ec = /* @__PURE__ */ Sr(Oc), pe = typeof window < "u" ? Ir : Ke;
|
|
|
3713
3713
|
function Tc(t, e, n) {
|
|
3714
3714
|
const [r, s] = Pr(
|
|
3715
3715
|
() => e(t)
|
|
3716
|
-
), o =
|
|
3716
|
+
), o = Rr(() => {
|
|
3717
3717
|
const i = e(t);
|
|
3718
3718
|
Ec(r, i) || (s(i), n && n());
|
|
3719
3719
|
}, [
|
|
@@ -3752,7 +3752,7 @@ function lr(t, e) {
|
|
|
3752
3752
|
const n = [];
|
|
3753
3753
|
return typeof t != "function" && n.push(t), M(() => typeof t == "function" ? t() : t, n);
|
|
3754
3754
|
}
|
|
3755
|
-
function
|
|
3755
|
+
function Cc(t) {
|
|
3756
3756
|
return M(
|
|
3757
3757
|
() => t.hooks.dragSource(),
|
|
3758
3758
|
[
|
|
@@ -3760,7 +3760,7 @@ function jc(t) {
|
|
|
3760
3760
|
]
|
|
3761
3761
|
);
|
|
3762
3762
|
}
|
|
3763
|
-
function
|
|
3763
|
+
function jc(t) {
|
|
3764
3764
|
return M(
|
|
3765
3765
|
() => t.hooks.dragPreview(),
|
|
3766
3766
|
[
|
|
@@ -3914,7 +3914,7 @@ function Pc(t, e, n) {
|
|
|
3914
3914
|
() => r.removeTarget(s)
|
|
3915
3915
|
];
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3917
|
+
function Rc(t, e, n) {
|
|
3918
3918
|
const r = n.getRegistry(), s = r.addSource(t, e);
|
|
3919
3919
|
return [
|
|
3920
3920
|
s,
|
|
@@ -3949,7 +3949,7 @@ function Pt(t) {
|
|
|
3949
3949
|
t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
|
|
3950
3950
|
);
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3952
|
+
function kc(t) {
|
|
3953
3953
|
if (typeof t.type == "string")
|
|
3954
3954
|
return;
|
|
3955
3955
|
const e = t.type.displayName || t.type.name || "the component";
|
|
@@ -3957,12 +3957,12 @@ function Rc(t) {
|
|
|
3957
3957
|
}
|
|
3958
3958
|
function Ac(t) {
|
|
3959
3959
|
return (e = null, n = null) => {
|
|
3960
|
-
if (!
|
|
3960
|
+
if (!kr(e)) {
|
|
3961
3961
|
const o = e;
|
|
3962
3962
|
return t(o, n), o;
|
|
3963
3963
|
}
|
|
3964
3964
|
const r = e;
|
|
3965
|
-
return
|
|
3965
|
+
return kc(r), Bc(r, n ? (o) => t(o, n) : t);
|
|
3966
3966
|
};
|
|
3967
3967
|
}
|
|
3968
3968
|
function ur(t) {
|
|
@@ -4198,7 +4198,7 @@ function zc(t, e, n) {
|
|
|
4198
4198
|
const r = Oe(), s = Hc(t, e, n), o = qc(t);
|
|
4199
4199
|
pe(function() {
|
|
4200
4200
|
if (o != null) {
|
|
4201
|
-
const [c, l] =
|
|
4201
|
+
const [c, l] = Rc(o, s, r);
|
|
4202
4202
|
return e.receiveHandlerId(c), n.receiveHandlerId(c), l;
|
|
4203
4203
|
}
|
|
4204
4204
|
}, [
|
|
@@ -4215,8 +4215,8 @@ function Vc(t, e) {
|
|
|
4215
4215
|
const r = Fc(), s = Mc(n.options, n.previewOptions);
|
|
4216
4216
|
return zc(n, r, s), [
|
|
4217
4217
|
cr(n.collect, r, s),
|
|
4218
|
-
|
|
4219
|
-
|
|
4218
|
+
Cc(s),
|
|
4219
|
+
jc(s)
|
|
4220
4220
|
];
|
|
4221
4221
|
}
|
|
4222
4222
|
function Gc(t) {
|
|
@@ -4397,7 +4397,7 @@ function bt(t, e, n) {
|
|
|
4397
4397
|
);
|
|
4398
4398
|
return r ?? n;
|
|
4399
4399
|
}
|
|
4400
|
-
const
|
|
4400
|
+
const Rt = {
|
|
4401
4401
|
[fr]: {
|
|
4402
4402
|
exposeProperties: {
|
|
4403
4403
|
files: (t) => Array.prototype.slice.call(t.files),
|
|
@@ -4441,7 +4441,7 @@ const kt = {
|
|
|
4441
4441
|
}
|
|
4442
4442
|
};
|
|
4443
4443
|
function sl(t, e) {
|
|
4444
|
-
const n =
|
|
4444
|
+
const n = Rt[t];
|
|
4445
4445
|
if (!n)
|
|
4446
4446
|
throw new Error(`native type ${t} has no configuration`);
|
|
4447
4447
|
const r = new rl(n);
|
|
@@ -4451,8 +4451,8 @@ function yt(t) {
|
|
|
4451
4451
|
if (!t)
|
|
4452
4452
|
return null;
|
|
4453
4453
|
const e = Array.prototype.slice.call(t.types || []);
|
|
4454
|
-
return Object.keys(
|
|
4455
|
-
const r =
|
|
4454
|
+
return Object.keys(Rt).filter((n) => {
|
|
4455
|
+
const r = Rt[n];
|
|
4456
4456
|
return r != null && r.matchesTypes ? r.matchesTypes.some(
|
|
4457
4457
|
(s) => e.indexOf(s) > -1
|
|
4458
4458
|
) : !1;
|
|
@@ -4552,7 +4552,7 @@ function ll(t, e, n, r, s) {
|
|
|
4552
4552
|
x: n.x - c.x,
|
|
4553
4553
|
y: n.y - c.y
|
|
4554
4554
|
}, { offsetWidth: u, offsetHeight: d } = t, { anchorX: h, anchorY: b } = r, { dragPreviewWidth: v, dragPreviewHeight: m } = cl(o, e, u, d), p = () => {
|
|
4555
|
-
let
|
|
4555
|
+
let k = new On([
|
|
4556
4556
|
0,
|
|
4557
4557
|
0.5,
|
|
4558
4558
|
1
|
|
@@ -4564,7 +4564,7 @@ function ll(t, e, n, r, s) {
|
|
|
4564
4564
|
// Dock to the bottom
|
|
4565
4565
|
l.y + m - d
|
|
4566
4566
|
]).interpolate(b);
|
|
4567
|
-
return mr() && o && (
|
|
4567
|
+
return mr() && o && (k += (window.devicePixelRatio - 1) * m), k;
|
|
4568
4568
|
}, g = () => new On([
|
|
4569
4569
|
0,
|
|
4570
4570
|
0.5,
|
|
@@ -4901,7 +4901,7 @@ const hl = function(e, n, r) {
|
|
|
4901
4901
|
T.useEffect(() => {
|
|
4902
4902
|
p || _(!1);
|
|
4903
4903
|
}, [p]);
|
|
4904
|
-
const [,
|
|
4904
|
+
const [, k] = Zc({
|
|
4905
4905
|
accept: "block",
|
|
4906
4906
|
hover(E) {
|
|
4907
4907
|
E.index !== n && (r(i[o].name, E.index, n), E.index = n);
|
|
@@ -4916,8 +4916,8 @@ const hl = function(e, n, r) {
|
|
|
4916
4916
|
return /* @__PURE__ */ a.jsxs(
|
|
4917
4917
|
"div",
|
|
4918
4918
|
{
|
|
4919
|
-
ref: (E) => G(
|
|
4920
|
-
className:
|
|
4919
|
+
ref: (E) => G(k(E)),
|
|
4920
|
+
className: R(X.block, {
|
|
4921
4921
|
[X.dragging]: A,
|
|
4922
4922
|
[X.active]: !A && c === t
|
|
4923
4923
|
}),
|
|
@@ -4945,7 +4945,7 @@ const hl = function(e, n, r) {
|
|
|
4945
4945
|
}
|
|
4946
4946
|
);
|
|
4947
4947
|
}, Tl = () => {
|
|
4948
|
-
const { setActiveBlock: t } =
|
|
4948
|
+
const { setActiveBlock: t } = ke();
|
|
4949
4949
|
return /* @__PURE__ */ a.jsxs("div", { className: X.empty, children: [
|
|
4950
4950
|
/* @__PURE__ */ a.jsx("div", { className: X.icon, children: /* @__PURE__ */ a.jsx(
|
|
4951
4951
|
O,
|
|
@@ -4994,11 +4994,11 @@ const hl = function(e, n, r) {
|
|
|
4994
4994
|
)),
|
|
4995
4995
|
(!t[s[r].name] || Object.keys(t[s[r].name]).length === 0) && /* @__PURE__ */ a.jsx(Tl, {})
|
|
4996
4996
|
] }) });
|
|
4997
|
-
},
|
|
4998
|
-
const { settings: t } =
|
|
4997
|
+
}, Cl = () => {
|
|
4998
|
+
const { settings: t } = Re();
|
|
4999
4999
|
return t == null ? void 0 : t.renderSettings();
|
|
5000
|
-
},
|
|
5001
|
-
theme:
|
|
5000
|
+
}, jl = "_theme_1xj36_1", Nl = "_block_1xj36_6", Il = "_name_1xj36_20", _t = {
|
|
5001
|
+
theme: jl,
|
|
5002
5002
|
block: Nl,
|
|
5003
5003
|
name: Il
|
|
5004
5004
|
}, Pl = () => {
|
|
@@ -5010,7 +5010,7 @@ const hl = function(e, n, r) {
|
|
|
5010
5010
|
"div",
|
|
5011
5011
|
{
|
|
5012
5012
|
onClick: () => e(n),
|
|
5013
|
-
className:
|
|
5013
|
+
className: R(_t.block),
|
|
5014
5014
|
children: [
|
|
5015
5015
|
/* @__PURE__ */ a.jsx(O, { name: n.icon }),
|
|
5016
5016
|
/* @__PURE__ */ a.jsx("span", { className: _t.name, children: n.name }),
|
|
@@ -5019,35 +5019,36 @@ const hl = function(e, n, r) {
|
|
|
5019
5019
|
},
|
|
5020
5020
|
n.icon
|
|
5021
5021
|
)) });
|
|
5022
|
-
},
|
|
5023
|
-
back:
|
|
5024
|
-
render:
|
|
5022
|
+
}, Rl = "_back_14yda_1", kl = "_render_14yda_8", Al = "_open_14yda_23", Bl = "_close_14yda_50", $l = "_clicked_14yda_54", Ll = "_title_14yda_58", Ml = "_button_14yda_65", Fl = "_loading_14yda_70", Ul = "_settings_14yda_74", Hl = "_buttons_14yda_80", ql = "_deleteButton_14yda_86", te = {
|
|
5023
|
+
back: Rl,
|
|
5024
|
+
render: kl,
|
|
5025
5025
|
open: Al,
|
|
5026
5026
|
close: Bl,
|
|
5027
5027
|
clicked: $l,
|
|
5028
5028
|
title: Ll,
|
|
5029
5029
|
button: Ml,
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5030
|
+
loading: Fl,
|
|
5031
|
+
settings: Ul,
|
|
5032
|
+
buttons: Hl,
|
|
5033
|
+
deleteButton: ql
|
|
5034
|
+
}, zl = ({ block: t }) => {
|
|
5034
5035
|
if (!t) return;
|
|
5035
5036
|
const { blocks: e, sourceBlocks: n, activeBlock: r } = ae(), { currentBlock: s } = Q();
|
|
5036
5037
|
if (!r && !s) return null;
|
|
5037
5038
|
if (t != null && t.name) {
|
|
5038
|
-
const o = e[t.name], i = t.value;
|
|
5039
|
+
const o = e[t.name], i = { ...t.value };
|
|
5039
5040
|
for (const c in i)
|
|
5040
5041
|
o[c] = i[c];
|
|
5041
5042
|
return o.renderSettings();
|
|
5042
5043
|
} else {
|
|
5043
5044
|
const o = n[r];
|
|
5044
5045
|
for (const i in o)
|
|
5045
|
-
t[i] = o[i];
|
|
5046
|
+
t[i] = { ...o[i] };
|
|
5046
5047
|
return t.renderSettings();
|
|
5047
5048
|
}
|
|
5048
|
-
},
|
|
5049
|
+
}, Vl = (t) => {
|
|
5049
5050
|
var N;
|
|
5050
|
-
const { isAdd: e } = t, [n, r] = T.useState(!1), { setActiveBlock: s } =
|
|
5051
|
+
const { isAdd: e } = t, [n, r] = T.useState(!1), { setActiveBlock: s } = ke(), { blocks: o, activeBlock: i, setActiveBlock: c } = ae(), {
|
|
5051
5052
|
blocks: l,
|
|
5052
5053
|
addBlock: u,
|
|
5053
5054
|
editBlock: d,
|
|
@@ -5073,13 +5074,13 @@ const hl = function(e, n, r) {
|
|
|
5073
5074
|
return /* @__PURE__ */ a.jsxs(
|
|
5074
5075
|
"div",
|
|
5075
5076
|
{
|
|
5076
|
-
className:
|
|
5077
|
-
[
|
|
5078
|
-
[
|
|
5079
|
-
[
|
|
5077
|
+
className: R(te.render, {
|
|
5078
|
+
[te.open]: w(),
|
|
5079
|
+
[te.close]: !w(),
|
|
5080
|
+
[te.clicked]: n
|
|
5080
5081
|
}),
|
|
5081
5082
|
children: [
|
|
5082
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5083
|
+
/* @__PURE__ */ a.jsxs("div", { className: te.back, children: [
|
|
5083
5084
|
/* @__PURE__ */ a.jsx(
|
|
5084
5085
|
O,
|
|
5085
5086
|
{
|
|
@@ -5088,15 +5089,15 @@ const hl = function(e, n, r) {
|
|
|
5088
5089
|
onClick: y
|
|
5089
5090
|
}
|
|
5090
5091
|
),
|
|
5091
|
-
/* @__PURE__ */ a.jsx("h3", { className:
|
|
5092
|
+
/* @__PURE__ */ a.jsx("h3", { className: te.title, children: i || l[g[p].name] && ((N = l[g[p].name][h]) == null ? void 0 : N.name) || "Loading" })
|
|
5092
5093
|
] }),
|
|
5093
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
5094
|
-
|
|
5094
|
+
/* @__PURE__ */ a.jsx("div", { className: te.settings, children: w() ? /* @__PURE__ */ a.jsx(
|
|
5095
|
+
zl,
|
|
5095
5096
|
{
|
|
5096
5097
|
block: e ? w() : l[g[p].name][h]
|
|
5097
5098
|
}
|
|
5098
|
-
) : /* @__PURE__ */ a.jsx(
|
|
5099
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5099
|
+
) : /* @__PURE__ */ a.jsx("div", { className: te.loading, children: "Loading" }) }),
|
|
5100
|
+
/* @__PURE__ */ a.jsxs("div", { className: te.buttons, children: [
|
|
5100
5101
|
/* @__PURE__ */ a.jsx(
|
|
5101
5102
|
fe,
|
|
5102
5103
|
{
|
|
@@ -5125,7 +5126,7 @@ const hl = function(e, n, r) {
|
|
|
5125
5126
|
r(!1);
|
|
5126
5127
|
}, 150);
|
|
5127
5128
|
},
|
|
5128
|
-
className:
|
|
5129
|
+
className: te.deleteButton,
|
|
5129
5130
|
children: /* @__PURE__ */ a.jsx(
|
|
5130
5131
|
O,
|
|
5131
5132
|
{
|
|
@@ -5139,21 +5140,21 @@ const hl = function(e, n, r) {
|
|
|
5139
5140
|
]
|
|
5140
5141
|
}
|
|
5141
5142
|
);
|
|
5142
|
-
},
|
|
5143
|
-
settings:
|
|
5144
|
-
open:
|
|
5145
|
-
close:
|
|
5146
|
-
header:
|
|
5147
|
-
title:
|
|
5148
|
-
addButton:
|
|
5149
|
-
},
|
|
5150
|
-
wrapper:
|
|
5151
|
-
category:
|
|
5152
|
-
categoryTitle:
|
|
5153
|
-
color:
|
|
5154
|
-
content:
|
|
5155
|
-
preview:
|
|
5156
|
-
},
|
|
5143
|
+
}, Gl = "_settings_1r85j_1", Wl = "_open_1r85j_16", Yl = "_close_1r85j_20", Jl = "_header_1r85j_24", Xl = "_title_1r85j_30", Kl = "_addButton_1r85j_37", De = {
|
|
5144
|
+
settings: Gl,
|
|
5145
|
+
open: Wl,
|
|
5146
|
+
close: Yl,
|
|
5147
|
+
header: Jl,
|
|
5148
|
+
title: Xl,
|
|
5149
|
+
addButton: Kl
|
|
5150
|
+
}, Ql = "_wrapper_n1a7x_1", Zl = "_category_n1a7x_5", eu = "_categoryTitle_n1a7x_10", tu = "_color_n1a7x_16", nu = "_content_n1a7x_24", ru = "_preview_n1a7x_32", ve = {
|
|
5151
|
+
wrapper: Ql,
|
|
5152
|
+
category: Zl,
|
|
5153
|
+
categoryTitle: eu,
|
|
5154
|
+
color: tu,
|
|
5155
|
+
content: nu,
|
|
5156
|
+
preview: ru
|
|
5157
|
+
}, su = () => {
|
|
5157
5158
|
const { themeSettings: t, updateColor: e } = V();
|
|
5158
5159
|
async function n(s, o, i) {
|
|
5159
5160
|
e(s, o, i);
|
|
@@ -5171,7 +5172,7 @@ const hl = function(e, n, r) {
|
|
|
5171
5172
|
{
|
|
5172
5173
|
className: ve.category,
|
|
5173
5174
|
children: [
|
|
5174
|
-
/* @__PURE__ */ a.jsx("h2", { className: ve.categoryTitle, children:
|
|
5175
|
+
/* @__PURE__ */ a.jsx("h2", { className: ve.categoryTitle, children: re(s) }),
|
|
5175
5176
|
Object.entries(o).map(([i, c]) => /* @__PURE__ */ a.jsxs(
|
|
5176
5177
|
"div",
|
|
5177
5178
|
{
|
|
@@ -5188,9 +5189,9 @@ const hl = function(e, n, r) {
|
|
|
5188
5189
|
}
|
|
5189
5190
|
),
|
|
5190
5191
|
/* @__PURE__ */ a.jsx(
|
|
5191
|
-
|
|
5192
|
+
Ce,
|
|
5192
5193
|
{
|
|
5193
|
-
title:
|
|
5194
|
+
title: re(i),
|
|
5194
5195
|
initialColor: c,
|
|
5195
5196
|
onChange: (l) => n(s, i, l)
|
|
5196
5197
|
}
|
|
@@ -5214,37 +5215,37 @@ const hl = function(e, n, r) {
|
|
|
5214
5215
|
},
|
|
5215
5216
|
s
|
|
5216
5217
|
)) });
|
|
5217
|
-
},
|
|
5218
|
-
wrapper:
|
|
5219
|
-
category:
|
|
5220
|
-
categoryTitle:
|
|
5221
|
-
color:
|
|
5222
|
-
name:
|
|
5223
|
-
content:
|
|
5224
|
-
label:
|
|
5225
|
-
input:
|
|
5226
|
-
title:
|
|
5227
|
-
field:
|
|
5228
|
-
alignments:
|
|
5229
|
-
lineField:
|
|
5230
|
-
style:
|
|
5231
|
-
header:
|
|
5232
|
-
},
|
|
5218
|
+
}, ou = "_wrapper_kb55x_2", iu = "_category_kb55x_6", au = "_categoryTitle_kb55x_11", cu = "_color_kb55x_17", lu = "_name_kb55x_23", uu = "_content_kb55x_28", du = "_label_kb55x_34", fu = "_input_kb55x_45", hu = "_title_kb55x_71", pu = "_field_kb55x_79", gu = "_alignments_kb55x_89", mu = "_lineField_kb55x_95", vu = "_style_kb55x_101", bu = "_header_kb55x_108", ne = {
|
|
5219
|
+
wrapper: ou,
|
|
5220
|
+
category: iu,
|
|
5221
|
+
categoryTitle: au,
|
|
5222
|
+
color: cu,
|
|
5223
|
+
name: lu,
|
|
5224
|
+
content: uu,
|
|
5225
|
+
label: du,
|
|
5226
|
+
input: fu,
|
|
5227
|
+
title: hu,
|
|
5228
|
+
field: pu,
|
|
5229
|
+
alignments: gu,
|
|
5230
|
+
lineField: mu,
|
|
5231
|
+
style: vu,
|
|
5232
|
+
header: bu
|
|
5233
|
+
}, yu = ["left", "center", "right"], _u = ["solid", "dashed"], qe = (t) => {
|
|
5233
5234
|
const { title: e, children: n, rightAddon: r } = t;
|
|
5234
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
5235
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5235
|
+
return /* @__PURE__ */ a.jsxs("div", { className: ne.field, children: [
|
|
5236
|
+
/* @__PURE__ */ a.jsxs("div", { className: ne.header, children: [
|
|
5236
5237
|
/* @__PURE__ */ a.jsx("h4", { children: e }),
|
|
5237
5238
|
r
|
|
5238
5239
|
] }),
|
|
5239
5240
|
n
|
|
5240
5241
|
] });
|
|
5241
|
-
},
|
|
5242
|
+
}, wu = () => {
|
|
5242
5243
|
const { themeSettings: t, updateInput: e } = V(), n = M(() => t.inputs, [t]), r = (o, i, c) => {
|
|
5243
5244
|
e(o, i, c);
|
|
5244
5245
|
}, s = (o) => (i) => {
|
|
5245
5246
|
e(o, i, "color");
|
|
5246
5247
|
};
|
|
5247
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
5248
|
+
return /* @__PURE__ */ a.jsxs("div", { className: ne.wrapper, children: [
|
|
5248
5249
|
/* @__PURE__ */ a.jsxs(qe, { title: "General", children: [
|
|
5249
5250
|
/* @__PURE__ */ a.jsx(
|
|
5250
5251
|
q,
|
|
@@ -5274,9 +5275,9 @@ const hl = function(e, n, r) {
|
|
|
5274
5275
|
}
|
|
5275
5276
|
),
|
|
5276
5277
|
/* @__PURE__ */ a.jsx(
|
|
5277
|
-
|
|
5278
|
+
Ce,
|
|
5278
5279
|
{
|
|
5279
|
-
initialColor:
|
|
5280
|
+
initialColor: re(n.general.color),
|
|
5280
5281
|
onChange: s("general"),
|
|
5281
5282
|
title: "Font Color",
|
|
5282
5283
|
labelStyle: "secondary"
|
|
@@ -5287,7 +5288,7 @@ const hl = function(e, n, r) {
|
|
|
5287
5288
|
qe,
|
|
5288
5289
|
{
|
|
5289
5290
|
title: "Field Fill",
|
|
5290
|
-
rightAddon: /* @__PURE__ */ a.jsx("div", { className:
|
|
5291
|
+
rightAddon: /* @__PURE__ */ a.jsx("div", { className: ne.switch, children: /* @__PURE__ */ a.jsx(
|
|
5291
5292
|
Gt,
|
|
5292
5293
|
{
|
|
5293
5294
|
onChange: (o) => r("field", o, "active"),
|
|
@@ -5296,9 +5297,9 @@ const hl = function(e, n, r) {
|
|
|
5296
5297
|
) }),
|
|
5297
5298
|
children: [
|
|
5298
5299
|
/* @__PURE__ */ a.jsx(
|
|
5299
|
-
|
|
5300
|
+
Ce,
|
|
5300
5301
|
{
|
|
5301
|
-
initialColor:
|
|
5302
|
+
initialColor: re(n.field.color),
|
|
5302
5303
|
onChange: s("field"),
|
|
5303
5304
|
title: "Color",
|
|
5304
5305
|
labelStyle: "secondary"
|
|
@@ -5321,7 +5322,7 @@ const hl = function(e, n, r) {
|
|
|
5321
5322
|
qe,
|
|
5322
5323
|
{
|
|
5323
5324
|
title: "Border",
|
|
5324
|
-
rightAddon: /* @__PURE__ */ a.jsx("div", { className:
|
|
5325
|
+
rightAddon: /* @__PURE__ */ a.jsx("div", { className: ne.switch, children: /* @__PURE__ */ a.jsx(
|
|
5325
5326
|
Gt,
|
|
5326
5327
|
{
|
|
5327
5328
|
onChange: (o) => r("border", o, "active"),
|
|
@@ -5329,13 +5330,13 @@ const hl = function(e, n, r) {
|
|
|
5329
5330
|
}
|
|
5330
5331
|
) }),
|
|
5331
5332
|
children: [
|
|
5332
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5333
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5334
|
-
/* @__PURE__ */ a.jsx("span", { className:
|
|
5333
|
+
/* @__PURE__ */ a.jsxs("div", { className: ne.lineField, children: [
|
|
5334
|
+
/* @__PURE__ */ a.jsxs("div", { className: ne.style, children: [
|
|
5335
|
+
/* @__PURE__ */ a.jsx("span", { className: ne.title, children: "Style" }),
|
|
5335
5336
|
/* @__PURE__ */ a.jsx(
|
|
5336
5337
|
Wt,
|
|
5337
5338
|
{
|
|
5338
|
-
items:
|
|
5339
|
+
items: _u,
|
|
5339
5340
|
selectedItem: n.border.style,
|
|
5340
5341
|
onSelect: (o) => r("border", o, "style"),
|
|
5341
5342
|
getIconName: (o) => `border-${o}`
|
|
@@ -5364,9 +5365,9 @@ const hl = function(e, n, r) {
|
|
|
5364
5365
|
}
|
|
5365
5366
|
),
|
|
5366
5367
|
/* @__PURE__ */ a.jsx(
|
|
5367
|
-
|
|
5368
|
+
Ce,
|
|
5368
5369
|
{
|
|
5369
|
-
initialColor:
|
|
5370
|
+
initialColor: re(n.border.color),
|
|
5370
5371
|
onChange: s("border"),
|
|
5371
5372
|
title: "Color",
|
|
5372
5373
|
labelStyle: "secondary"
|
|
@@ -5396,20 +5397,20 @@ const hl = function(e, n, r) {
|
|
|
5396
5397
|
}
|
|
5397
5398
|
),
|
|
5398
5399
|
/* @__PURE__ */ a.jsx(
|
|
5399
|
-
|
|
5400
|
+
Ce,
|
|
5400
5401
|
{
|
|
5401
|
-
initialColor:
|
|
5402
|
+
initialColor: re(n.label.color),
|
|
5402
5403
|
onChange: s("label"),
|
|
5403
5404
|
title: "Color",
|
|
5404
5405
|
labelStyle: "secondary"
|
|
5405
5406
|
}
|
|
5406
5407
|
),
|
|
5407
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5408
|
-
/* @__PURE__ */ a.jsx("h4", { className:
|
|
5408
|
+
/* @__PURE__ */ a.jsxs("div", { className: ne.alignments, children: [
|
|
5409
|
+
/* @__PURE__ */ a.jsx("h4", { className: ne.title, children: "Alignment Type" }),
|
|
5409
5410
|
/* @__PURE__ */ a.jsx(
|
|
5410
5411
|
Wt,
|
|
5411
5412
|
{
|
|
5412
|
-
items:
|
|
5413
|
+
items: yu,
|
|
5413
5414
|
selectedItem: n.label.alignment,
|
|
5414
5415
|
onSelect: (o) => r("label", o, "alignment"),
|
|
5415
5416
|
getIconName: (o) => `align-${o}`
|
|
@@ -5418,17 +5419,17 @@ const hl = function(e, n, r) {
|
|
|
5418
5419
|
] })
|
|
5419
5420
|
] })
|
|
5420
5421
|
] });
|
|
5421
|
-
},
|
|
5422
|
-
wrapper:
|
|
5423
|
-
category:
|
|
5424
|
-
categoryTitle:
|
|
5425
|
-
font:
|
|
5426
|
-
content:
|
|
5427
|
-
icon:
|
|
5428
|
-
paragraph:
|
|
5422
|
+
}, xu = "_wrapper_k9on2_1", Su = "_category_k9on2_5", Ou = "_categoryTitle_k9on2_10", Eu = "_font_k9on2_16", Tu = "_content_k9on2_36", Du = "_icon_k9on2_42", Cu = "_paragraph_k9on2_51", ju = "_deleteIcon_k9on2_55", Nu = "_iconButton_k9on2_62", ie = {
|
|
5423
|
+
wrapper: xu,
|
|
5424
|
+
category: Su,
|
|
5425
|
+
categoryTitle: Ou,
|
|
5426
|
+
font: Eu,
|
|
5427
|
+
content: Tu,
|
|
5428
|
+
icon: Du,
|
|
5429
|
+
paragraph: Cu,
|
|
5429
5430
|
deleteIcon: ju,
|
|
5430
|
-
iconButton:
|
|
5431
|
-
},
|
|
5431
|
+
iconButton: Nu
|
|
5432
|
+
}, Iu = (t) => {
|
|
5432
5433
|
const { font: e, size: n, id: r, category: s } = t, { setActiveFont: o } = V();
|
|
5433
5434
|
return /* @__PURE__ */ a.jsxs(
|
|
5434
5435
|
"div",
|
|
@@ -5439,20 +5440,20 @@ const hl = function(e, n, r) {
|
|
|
5439
5440
|
/* @__PURE__ */ a.jsx(
|
|
5440
5441
|
"div",
|
|
5441
5442
|
{
|
|
5442
|
-
className:
|
|
5443
|
+
className: R(ie.icon, {
|
|
5443
5444
|
[ie.paragraph]: s === "paragraph"
|
|
5444
5445
|
}),
|
|
5445
5446
|
children: /* @__PURE__ */ a.jsx(O, { name: s })
|
|
5446
5447
|
}
|
|
5447
5448
|
),
|
|
5448
5449
|
/* @__PURE__ */ a.jsxs("div", { className: ie.content, children: [
|
|
5449
|
-
/* @__PURE__ */ a.jsx("h2", { className: ie.categoryTitle, children:
|
|
5450
|
+
/* @__PURE__ */ a.jsx("h2", { className: ie.categoryTitle, children: re(r) }),
|
|
5450
5451
|
/* @__PURE__ */ a.jsx("span", { className: ie.value, children: `${e}, ${n}px` })
|
|
5451
5452
|
] })
|
|
5452
5453
|
]
|
|
5453
5454
|
}
|
|
5454
5455
|
);
|
|
5455
|
-
},
|
|
5456
|
+
}, Pu = () => {
|
|
5456
5457
|
const { themeSettings: t, setActiveFont: e, activeBlock: n } = V();
|
|
5457
5458
|
T.useEffect(() => (r(), () => {
|
|
5458
5459
|
r();
|
|
@@ -5466,9 +5467,9 @@ const hl = function(e, n, r) {
|
|
|
5466
5467
|
{
|
|
5467
5468
|
className: ie.category,
|
|
5468
5469
|
children: [
|
|
5469
|
-
/* @__PURE__ */ a.jsx("h2", { className: ie.categoryTitle, children:
|
|
5470
|
+
/* @__PURE__ */ a.jsx("h2", { className: ie.categoryTitle, children: re(s) }),
|
|
5470
5471
|
Object.entries(o).map(([i, c]) => /* @__PURE__ */ a.jsx(
|
|
5471
|
-
|
|
5472
|
+
Iu,
|
|
5472
5473
|
{
|
|
5473
5474
|
id: i,
|
|
5474
5475
|
category: s,
|
|
@@ -5480,15 +5481,15 @@ const hl = function(e, n, r) {
|
|
|
5480
5481
|
},
|
|
5481
5482
|
s
|
|
5482
5483
|
)) });
|
|
5483
|
-
},
|
|
5484
|
-
wrapper:
|
|
5484
|
+
}, Ru = "_wrapper_94fpv_1", ku = "_open_94fpv_16", Au = "_close_94fpv_20", Bu = "_header_94fpv_24", $u = "_title_94fpv_31", Lu = "_options_94fpv_37", Mu = "_clicked_94fpv_44", be = {
|
|
5485
|
+
wrapper: Ru,
|
|
5485
5486
|
open: ku,
|
|
5486
|
-
close:
|
|
5487
|
-
header:
|
|
5488
|
-
title:
|
|
5489
|
-
options:
|
|
5490
|
-
clicked:
|
|
5491
|
-
},
|
|
5487
|
+
close: Au,
|
|
5488
|
+
header: Bu,
|
|
5489
|
+
title: $u,
|
|
5490
|
+
options: Lu,
|
|
5491
|
+
clicked: Mu
|
|
5492
|
+
}, Fu = () => {
|
|
5492
5493
|
const { activeBlock: t, setActiveFont: e, activeFont: n, themeSettings: r, updateFont: s } = V(), { fonts: o } = Dn(), [i, c] = T.useState(null);
|
|
5493
5494
|
function l() {
|
|
5494
5495
|
e(null);
|
|
@@ -5500,7 +5501,7 @@ const hl = function(e, n, r) {
|
|
|
5500
5501
|
return /* @__PURE__ */ a.jsxs(
|
|
5501
5502
|
"div",
|
|
5502
5503
|
{
|
|
5503
|
-
className:
|
|
5504
|
+
className: R(be.wrapper, {
|
|
5504
5505
|
[be.open]: (t == null ? void 0 : t.name) === "Fonts" && n,
|
|
5505
5506
|
[be.close]: (t == null ? void 0 : t.name) !== "Fonts" || !n
|
|
5506
5507
|
}),
|
|
@@ -5554,14 +5555,14 @@ const hl = function(e, n, r) {
|
|
|
5554
5555
|
]
|
|
5555
5556
|
}
|
|
5556
5557
|
);
|
|
5557
|
-
},
|
|
5558
|
-
wrapper:
|
|
5559
|
-
open:
|
|
5560
|
-
close:
|
|
5561
|
-
header:
|
|
5562
|
-
title:
|
|
5563
|
-
options:
|
|
5564
|
-
clicked:
|
|
5558
|
+
}, Uu = "_wrapper_94fpv_1", Hu = "_open_94fpv_16", qu = "_close_94fpv_20", zu = "_header_94fpv_24", Vu = "_title_94fpv_31", Gu = "_options_94fpv_37", Wu = "_clicked_94fpv_44", ye = {
|
|
5559
|
+
wrapper: Uu,
|
|
5560
|
+
open: Hu,
|
|
5561
|
+
close: qu,
|
|
5562
|
+
header: zu,
|
|
5563
|
+
title: Vu,
|
|
5564
|
+
options: Gu,
|
|
5565
|
+
clicked: Wu
|
|
5565
5566
|
}, br = () => {
|
|
5566
5567
|
const { activeBlock: t, themeSettings: e, updateBorder: n, setActiveBlock: r } = V();
|
|
5567
5568
|
function s(c, l) {
|
|
@@ -5574,7 +5575,7 @@ const hl = function(e, n, r) {
|
|
|
5574
5575
|
return /* @__PURE__ */ a.jsxs(
|
|
5575
5576
|
"div",
|
|
5576
5577
|
{
|
|
5577
|
-
className:
|
|
5578
|
+
className: R(ye.wrapper, {
|
|
5578
5579
|
[ye.open]: (t == null ? void 0 : t.name) === "Borders",
|
|
5579
5580
|
[ye.close]: (t == null ? void 0 : t.name) !== "Borders"
|
|
5580
5581
|
}),
|
|
@@ -5615,20 +5616,20 @@ const hl = function(e, n, r) {
|
|
|
5615
5616
|
]
|
|
5616
5617
|
}
|
|
5617
5618
|
);
|
|
5618
|
-
},
|
|
5619
|
-
wrapper:
|
|
5620
|
-
open:
|
|
5621
|
-
close:
|
|
5622
|
-
header:
|
|
5623
|
-
title:
|
|
5624
|
-
options:
|
|
5625
|
-
clicked:
|
|
5626
|
-
label:
|
|
5627
|
-
alignments:
|
|
5628
|
-
blocks:
|
|
5629
|
-
alignment:
|
|
5630
|
-
active:
|
|
5631
|
-
},
|
|
5619
|
+
}, Yu = "_wrapper_1j33r_1", Ju = "_open_1j33r_16", Xu = "_close_1j33r_20", Ku = "_header_1j33r_24", Qu = "_title_1j33r_31", Zu = "_options_1j33r_37", ed = "_clicked_1j33r_44", td = "_label_1j33r_48", nd = "_alignments_1j33r_55", rd = "_blocks_1j33r_61", sd = "_alignment_1j33r_55", od = "_active_1j33r_75", W = {
|
|
5620
|
+
wrapper: Yu,
|
|
5621
|
+
open: Ju,
|
|
5622
|
+
close: Xu,
|
|
5623
|
+
header: Ku,
|
|
5624
|
+
title: Qu,
|
|
5625
|
+
options: Zu,
|
|
5626
|
+
clicked: ed,
|
|
5627
|
+
label: td,
|
|
5628
|
+
alignments: nd,
|
|
5629
|
+
blocks: rd,
|
|
5630
|
+
alignment: sd,
|
|
5631
|
+
active: od
|
|
5632
|
+
}, id = ["left", "center", "right"], yr = () => {
|
|
5632
5633
|
const { activeBlock: t, themeSettings: e, updateButton: n, setActiveBlock: r } = V();
|
|
5633
5634
|
function s(c, l) {
|
|
5634
5635
|
n(l, c);
|
|
@@ -5640,7 +5641,7 @@ const hl = function(e, n, r) {
|
|
|
5640
5641
|
return /* @__PURE__ */ a.jsxs(
|
|
5641
5642
|
"div",
|
|
5642
5643
|
{
|
|
5643
|
-
className:
|
|
5644
|
+
className: R(W.wrapper, {
|
|
5644
5645
|
[W.open]: (t == null ? void 0 : t.name) === "Buttons",
|
|
5645
5646
|
[W.close]: (t == null ? void 0 : t.name) !== "Buttons"
|
|
5646
5647
|
}),
|
|
@@ -5688,10 +5689,10 @@ const hl = function(e, n, r) {
|
|
|
5688
5689
|
),
|
|
5689
5690
|
/* @__PURE__ */ a.jsxs("div", { className: W.alignments, children: [
|
|
5690
5691
|
/* @__PURE__ */ a.jsx("h4", { className: W.label, children: "Alignment Type" }),
|
|
5691
|
-
/* @__PURE__ */ a.jsx("div", { className: W.blocks, children:
|
|
5692
|
+
/* @__PURE__ */ a.jsx("div", { className: W.blocks, children: id.map((c) => /* @__PURE__ */ a.jsx(
|
|
5692
5693
|
"div",
|
|
5693
5694
|
{
|
|
5694
|
-
className:
|
|
5695
|
+
className: R(W.alignment, {
|
|
5695
5696
|
[W.active]: i.alignment === c
|
|
5696
5697
|
}),
|
|
5697
5698
|
onClick: () => {
|
|
@@ -5712,22 +5713,22 @@ const hl = function(e, n, r) {
|
|
|
5712
5713
|
]
|
|
5713
5714
|
}
|
|
5714
5715
|
);
|
|
5715
|
-
},
|
|
5716
|
+
}, ad = () => {
|
|
5716
5717
|
const { activeBlock: t } = V();
|
|
5717
5718
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5718
|
-
(t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ a.jsx(
|
|
5719
|
+
(t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ a.jsx(Fu, {}),
|
|
5719
5720
|
(t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ a.jsx(br, {}),
|
|
5720
5721
|
(t == null ? void 0 : t.name) === "Buttons" && /* @__PURE__ */ a.jsx(yr, {})
|
|
5721
5722
|
] });
|
|
5722
|
-
},
|
|
5723
|
-
const { activeBlock: t, setActiveBlock: e } = V(), { activeBlock: n } =
|
|
5723
|
+
}, cd = () => {
|
|
5724
|
+
const { activeBlock: t, setActiveBlock: e } = V(), { activeBlock: n } = ke();
|
|
5724
5725
|
function r() {
|
|
5725
5726
|
e(null);
|
|
5726
5727
|
}
|
|
5727
5728
|
return /* @__PURE__ */ a.jsxs(
|
|
5728
5729
|
"div",
|
|
5729
5730
|
{
|
|
5730
|
-
className:
|
|
5731
|
+
className: R(De.settings, {
|
|
5731
5732
|
[De.open]: t,
|
|
5732
5733
|
[De.close]: !t || n.name !== "Theme"
|
|
5733
5734
|
}),
|
|
@@ -5743,17 +5744,17 @@ const hl = function(e, n, r) {
|
|
|
5743
5744
|
),
|
|
5744
5745
|
/* @__PURE__ */ a.jsx("span", { className: De.title, children: t == null ? void 0 : t.name })
|
|
5745
5746
|
] }),
|
|
5746
|
-
(t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ a.jsx(
|
|
5747
|
-
(t == null ? void 0 : t.name) === "Colors" && /* @__PURE__ */ a.jsx(
|
|
5748
|
-
(t == null ? void 0 : t.name) === "Inputs" && /* @__PURE__ */ a.jsx(
|
|
5747
|
+
(t == null ? void 0 : t.name) === "Fonts" && /* @__PURE__ */ a.jsx(Pu, {}),
|
|
5748
|
+
(t == null ? void 0 : t.name) === "Colors" && /* @__PURE__ */ a.jsx(su, {}),
|
|
5749
|
+
(t == null ? void 0 : t.name) === "Inputs" && /* @__PURE__ */ a.jsx(wu, {}),
|
|
5749
5750
|
(t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ a.jsx(br, {}),
|
|
5750
5751
|
(t == null ? void 0 : t.name) === "Borders" && /* @__PURE__ */ a.jsx(yr, {}),
|
|
5751
|
-
/* @__PURE__ */ a.jsx(
|
|
5752
|
+
/* @__PURE__ */ a.jsx(ad, {})
|
|
5752
5753
|
]
|
|
5753
5754
|
}
|
|
5754
5755
|
);
|
|
5755
|
-
},
|
|
5756
|
-
const { activeBlock: t } =
|
|
5756
|
+
}, ld = () => {
|
|
5757
|
+
const { activeBlock: t } = ke(), { activeBlock: e } = ae();
|
|
5757
5758
|
function n() {
|
|
5758
5759
|
switch (t.name) {
|
|
5759
5760
|
case "Layers":
|
|
@@ -5770,24 +5771,24 @@ const hl = function(e, n, r) {
|
|
|
5770
5771
|
/* @__PURE__ */ a.jsx("h3", { className: hn.title, children: n() }),
|
|
5771
5772
|
t.name === "Layers" && /* @__PURE__ */ a.jsx(Dl, {}),
|
|
5772
5773
|
t.name === "Add" && /* @__PURE__ */ a.jsx(Zn, {}),
|
|
5773
|
-
/* @__PURE__ */ a.jsx(
|
|
5774
|
-
/* @__PURE__ */ a.jsx(
|
|
5774
|
+
/* @__PURE__ */ a.jsx(Vl, { isAdd: !!e }),
|
|
5775
|
+
/* @__PURE__ */ a.jsx(cd, {}),
|
|
5775
5776
|
t.name === "Theme" && /* @__PURE__ */ a.jsx(Pl, {}),
|
|
5776
|
-
t.name === "Settings" && /* @__PURE__ */ a.jsx(
|
|
5777
|
+
t.name === "Settings" && /* @__PURE__ */ a.jsx(Cl, {})
|
|
5777
5778
|
] });
|
|
5778
|
-
},
|
|
5779
|
-
wrapper:
|
|
5780
|
-
header:
|
|
5781
|
-
content:
|
|
5782
|
-
buttons:
|
|
5783
|
-
cancel:
|
|
5784
|
-
label:
|
|
5785
|
-
description:
|
|
5786
|
-
preview:
|
|
5787
|
-
block:
|
|
5788
|
-
slug:
|
|
5789
|
-
title:
|
|
5790
|
-
},
|
|
5779
|
+
}, ud = "_wrapper_jjfwh_1", dd = "_header_jjfwh_12", fd = "_content_jjfwh_21", hd = "_buttons_jjfwh_29", pd = "_cancel_jjfwh_35", gd = "_label_jjfwh_40", md = "_description_jjfwh_41", vd = "_preview_jjfwh_49", bd = "_block_jjfwh_55", yd = "_slug_jjfwh_63", _d = "_title_jjfwh_69", Y = {
|
|
5780
|
+
wrapper: ud,
|
|
5781
|
+
header: dd,
|
|
5782
|
+
content: fd,
|
|
5783
|
+
buttons: hd,
|
|
5784
|
+
cancel: pd,
|
|
5785
|
+
label: gd,
|
|
5786
|
+
description: md,
|
|
5787
|
+
preview: vd,
|
|
5788
|
+
block: bd,
|
|
5789
|
+
slug: yd,
|
|
5790
|
+
title: _d
|
|
5791
|
+
}, wd = () => {
|
|
5791
5792
|
var A, G, E, I, P, B;
|
|
5792
5793
|
const {
|
|
5793
5794
|
setIsOpenModal: t,
|
|
@@ -5809,8 +5810,8 @@ const hl = function(e, n, r) {
|
|
|
5809
5810
|
function w() {
|
|
5810
5811
|
_(), t(!1);
|
|
5811
5812
|
}
|
|
5812
|
-
function N(
|
|
5813
|
-
return
|
|
5813
|
+
function N(C) {
|
|
5814
|
+
return C[0] === "/" ? C : "/" + C;
|
|
5814
5815
|
}
|
|
5815
5816
|
function D() {
|
|
5816
5817
|
n({
|
|
@@ -5824,7 +5825,7 @@ const hl = function(e, n, r) {
|
|
|
5824
5825
|
visibility: g
|
|
5825
5826
|
}), l(b), w();
|
|
5826
5827
|
}
|
|
5827
|
-
function
|
|
5828
|
+
function k() {
|
|
5828
5829
|
u(e[i].name, b || d), r(i, {
|
|
5829
5830
|
path: N(d),
|
|
5830
5831
|
name: b || d,
|
|
@@ -5840,7 +5841,7 @@ const hl = function(e, n, r) {
|
|
|
5840
5841
|
"div",
|
|
5841
5842
|
{
|
|
5842
5843
|
className: Y.wrapper,
|
|
5843
|
-
onClick: (
|
|
5844
|
+
onClick: (C) => C.stopPropagation(),
|
|
5844
5845
|
children: [
|
|
5845
5846
|
/* @__PURE__ */ a.jsxs("div", { className: Y.header, children: [
|
|
5846
5847
|
/* @__PURE__ */ a.jsxs("h2", { children: [
|
|
@@ -5862,10 +5863,10 @@ const hl = function(e, n, r) {
|
|
|
5862
5863
|
q,
|
|
5863
5864
|
{
|
|
5864
5865
|
label: "Page Slug",
|
|
5865
|
-
onChange: (
|
|
5866
|
+
onChange: (C) => h(C),
|
|
5866
5867
|
value: d,
|
|
5867
5868
|
placeholder: "path-to-page",
|
|
5868
|
-
disabled: !!(i && ((P = e[i]) != null && P.name) &&
|
|
5869
|
+
disabled: !!(i && ((P = e[i]) != null && P.name) && je.includes(e[i].name)),
|
|
5869
5870
|
required: !0,
|
|
5870
5871
|
regex: "^.+$"
|
|
5871
5872
|
}
|
|
@@ -5874,17 +5875,17 @@ const hl = function(e, n, r) {
|
|
|
5874
5875
|
q,
|
|
5875
5876
|
{
|
|
5876
5877
|
label: "Page Title",
|
|
5877
|
-
onChange: (
|
|
5878
|
+
onChange: (C) => v(C),
|
|
5878
5879
|
value: b,
|
|
5879
5880
|
placeholder: "Contact us",
|
|
5880
|
-
disabled: !!(i && ((B = e[i]) != null && B.name) &&
|
|
5881
|
+
disabled: !!(i && ((B = e[i]) != null && B.name) && je.includes(e[i].name))
|
|
5881
5882
|
}
|
|
5882
5883
|
),
|
|
5883
5884
|
/* @__PURE__ */ a.jsx(
|
|
5884
5885
|
Tr,
|
|
5885
5886
|
{
|
|
5886
5887
|
label: "Description",
|
|
5887
|
-
onChange: (
|
|
5888
|
+
onChange: (C) => p(C),
|
|
5888
5889
|
value: m,
|
|
5889
5890
|
placeholder: "Contact us at any time of the day or night. You are always welcome",
|
|
5890
5891
|
maxLength: 150
|
|
@@ -5905,7 +5906,7 @@ const hl = function(e, n, r) {
|
|
|
5905
5906
|
label: "Private"
|
|
5906
5907
|
}
|
|
5907
5908
|
],
|
|
5908
|
-
onChange: (
|
|
5909
|
+
onChange: (C) => y(C)
|
|
5909
5910
|
}
|
|
5910
5911
|
),
|
|
5911
5912
|
/* @__PURE__ */ a.jsxs("div", { className: Y.preview, children: [
|
|
@@ -5929,7 +5930,7 @@ const hl = function(e, n, r) {
|
|
|
5929
5930
|
/* @__PURE__ */ a.jsx(
|
|
5930
5931
|
fe,
|
|
5931
5932
|
{
|
|
5932
|
-
onClick: s ?
|
|
5933
|
+
onClick: s ? k : D,
|
|
5933
5934
|
disabled: d.length === 0,
|
|
5934
5935
|
children: s ? "Update" : "Create"
|
|
5935
5936
|
}
|
|
@@ -5938,11 +5939,11 @@ const hl = function(e, n, r) {
|
|
|
5938
5939
|
]
|
|
5939
5940
|
}
|
|
5940
5941
|
);
|
|
5941
|
-
},
|
|
5942
|
-
layout:
|
|
5943
|
-
main:
|
|
5944
|
-
content:
|
|
5945
|
-
},
|
|
5942
|
+
}, xd = "_layout_kjedu_1", Sd = "_main_kjedu_8", Od = "_content_kjedu_15", wt = {
|
|
5943
|
+
layout: xd,
|
|
5944
|
+
main: Sd,
|
|
5945
|
+
content: Od
|
|
5946
|
+
}, Ed = () => {
|
|
5946
5947
|
const { isOpenModal: t, setIsOpenModal: e } = K();
|
|
5947
5948
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5948
5949
|
/* @__PURE__ */ a.jsxs("div", { className: wt.layout, children: [
|
|
@@ -5950,23 +5951,23 @@ const hl = function(e, n, r) {
|
|
|
5950
5951
|
/* @__PURE__ */ a.jsxs("main", { className: wt.main, children: [
|
|
5951
5952
|
/* @__PURE__ */ a.jsx(Qo, {}),
|
|
5952
5953
|
/* @__PURE__ */ a.jsxs("div", { className: wt.content, children: [
|
|
5953
|
-
/* @__PURE__ */ a.jsx(
|
|
5954
|
+
/* @__PURE__ */ a.jsx(ld, {}),
|
|
5954
5955
|
/* @__PURE__ */ a.jsx(Ki, {})
|
|
5955
5956
|
] })
|
|
5956
5957
|
] })
|
|
5957
5958
|
] }),
|
|
5958
|
-
t && /* @__PURE__ */ a.jsx(
|
|
5959
|
+
t && /* @__PURE__ */ a.jsx(Cr, { close: e, children: /* @__PURE__ */ a.jsx(wd, {}) })
|
|
5959
5960
|
] });
|
|
5960
5961
|
};
|
|
5961
5962
|
async function _e(t, e) {
|
|
5962
5963
|
const n = localStorage.getItem("shopId") || void 0, r = `${Lr}/${t}/builder/shops/${n}/${e}`, s = localStorage.getItem("accessToken") || void 0;
|
|
5963
|
-
return (await
|
|
5964
|
+
return (await j.get(r, {
|
|
5964
5965
|
headers: {
|
|
5965
5966
|
Authorization: `Bearer ${s}`
|
|
5966
5967
|
}
|
|
5967
5968
|
})).data;
|
|
5968
5969
|
}
|
|
5969
|
-
async function
|
|
5970
|
+
async function Td() {
|
|
5970
5971
|
try {
|
|
5971
5972
|
const [t, e, n, r, s, o] = await Promise.allSettled([
|
|
5972
5973
|
_e("v1", "general"),
|
|
@@ -5988,9 +5989,9 @@ async function Ed() {
|
|
|
5988
5989
|
throw console.error("Error fetching page data:", t), t;
|
|
5989
5990
|
}
|
|
5990
5991
|
}
|
|
5991
|
-
async function
|
|
5992
|
+
async function Dd() {
|
|
5992
5993
|
try {
|
|
5993
|
-
const { data: t } = await
|
|
5994
|
+
const { data: t } = await j.get(
|
|
5994
5995
|
`${Mr}?key=undefined`
|
|
5995
5996
|
);
|
|
5996
5997
|
return t.items;
|
|
@@ -5998,8 +5999,8 @@ async function Td() {
|
|
|
5998
5999
|
throw console.error("Error fetching page data:", t), t;
|
|
5999
6000
|
}
|
|
6000
6001
|
}
|
|
6001
|
-
const
|
|
6002
|
-
const { blocks: e, settings: n } = t, { setBlocks: r, setSourceBlocks: s } = ae(), { fonts: o, setFonts: i } = Dn(), { setSettings: c } =
|
|
6002
|
+
const Nd = (t) => {
|
|
6003
|
+
const { blocks: e, settings: n } = t, { setBlocks: r, setSourceBlocks: s } = ae(), { fonts: o, setFonts: i } = Dn(), { setSettings: c } = Re(), { setPageContext: l } = K();
|
|
6003
6004
|
return T.useEffect(() => {
|
|
6004
6005
|
const u = {};
|
|
6005
6006
|
Object.keys(e).map((h) => {
|
|
@@ -6008,7 +6009,7 @@ const Cd = (t) => {
|
|
|
6008
6009
|
};
|
|
6009
6010
|
}), c(n), s(u), r(e), (async () => {
|
|
6010
6011
|
if (o.length === 0) {
|
|
6011
|
-
const v = await
|
|
6012
|
+
const v = await Dd();
|
|
6012
6013
|
i([...v.map((m) => m.family)]);
|
|
6013
6014
|
}
|
|
6014
6015
|
let h = {
|
|
@@ -6019,14 +6020,14 @@ const Cd = (t) => {
|
|
|
6019
6020
|
faqs: void 0,
|
|
6020
6021
|
general: void 0
|
|
6021
6022
|
};
|
|
6022
|
-
const b = await
|
|
6023
|
+
const b = await Td();
|
|
6023
6024
|
Object.keys(b).map((v) => {
|
|
6024
6025
|
const m = v;
|
|
6025
6026
|
h[m] = b[m].value.data;
|
|
6026
6027
|
}), l(h);
|
|
6027
6028
|
})();
|
|
6028
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
6029
|
+
}, []), /* @__PURE__ */ a.jsx(Ed, {});
|
|
6029
6030
|
};
|
|
6030
6031
|
export {
|
|
6031
|
-
|
|
6032
|
+
Nd as Builder
|
|
6032
6033
|
};
|