@billgangcom/theme-lib 1.21.0 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap";._icon_bsuj2_1 path{fill:var(--icon-fill)}._hoverable_bsuj2_5{cursor:pointer}._rotated_bsuj2_9{transform:rotate(180deg)}._button_ojbir_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_ojbir_1:disabled{opacity:.7;cursor:auto}._primary_ojbir_13{color:#fff;background-color:#ff3f19}._secondary_ojbir_18{color:var(--accent-color);background-color:var(--background-color)}._content_ojbir_23{display:flex;flex-direction:row;gap:4px;align-items:center}._wrapper_1hcbk_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1hcbk_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_1hcbk_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_1hcbk_17::placeholder{color:#c2c2c2}._input_1hcbk_17:disabled{background-color:var(--background-color);opacity:.7}._required_1hcbk_36{border:1px solid #ff3f19}._paddingless_1hcbk_40{padding:0}._content_1hcbk_44{display:flex;flex-direction:row;gap:8px;align-items:center}._borderless_1hcbk_51{border-radius:0;border:none}._wrapper_18y7k_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_18y7k_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_18y7k_17{display:flex;flex-direction:row;gap:0px;width:100%;background-color:var(--background-color);border-radius:12px;padding:10px 12px;font-size:14px;line-height:20px;align-items:center;justify-content:space-between;cursor:pointer}._icon_18y7k_32{transition:.2s}._rotate_18y7k_36{transform:rotate(180deg)}._content_18y7k_40{position:relative}._options_18y7k_44{display:flex;flex-direction:column;gap:0px;position:absolute;top:45px;width:100%;background-color:var(--background-color);border-radius:12px;font-size:14px;line-height:20px;max-height:200px;z-index:10;overflow-y:scroll;cursor:pointer}._option_18y7k_44{padding:10px 12px;border-radius:12px}._option_18y7k_44:hover{background-color:#e6e6e6}._addon_18y7k_69{display:flex;flex-direction:row;gap:6px;align-items:center}._wrapper_1gywd_1{display:flex;flex-direction:row;gap:8px;width:fit-content;align-items:center;border-radius:12px;line-height:20px;color:var(--main-color);font-size:14px;font-weight:400}._switch_1gywd_14{display:flex;flex-direction:row;gap:0px;width:40px;height:24px;background-color:#ccc;border-radius:25px;align-items:center;padding:2px;cursor:pointer;transition:background-color .2s}._switch_1gywd_14._active_1gywd_27{background:#ff3f19}._switch_1gywd_14 ._toggle_1gywd_30{width:14px;height:14px;background-color:#fff;border-radius:16px;transition:transform .2s;transform:translate(2px)}._switch_1gywd_14._active_1gywd_27 ._toggle_1gywd_30{transform:translate(18px)}._background_1gywd_42{background-color:var(--background-color)}._padding_1gywd_46{padding:8px}._wrapper_q0sfn_1{display:flex;flex-direction:row;gap:0px;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;border-radius:8px;justify-content:center;align-items:center;overflow:hidden}._blocks_emecf_1{display:flex;flex-direction:row;gap:8px;align-items:center}._block_emecf_1{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_emecf_21{border:1px solid #ff3f19}._applyButton_11q4y_2{flex:0 1 50%;font-weight:400}._cancelButton_11q4y_7{background-color:var(--background-color);color:var(--accent-color)}._content_11q4y_12{display:flex;flex-direction:column;gap:0px;width:100%}._label_11q4y_19{display:flex;flex-direction:row;gap:8px;padding:8px 12px;border-radius:8px;align-items:center;position:relative;width:100%;background-color:var(--background-color);cursor:pointer}._colorValue_11q4y_32{width:20px;height:20px;padding:2.5px;border-radius:2px}._modal_11q4y_39{display:flex;flex-direction:column;gap:10px;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;font-size:16px;line-height:24px;font-weight:700}._colorMap_11q4y_58{position:relative;width:100%;height:300px;cursor:pointer;border-radius:4px}._indicator_11q4y_66{position:absolute;width:20px;height:20px;border:4px solid white;border-radius:50%;pointer-events:none}._hueSlider_11q4y_75{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]{display:flex;flex-direction:row;gap:0px;-webkit-appearance:none;height:8px;outline:none;border-radius:5px;position:relative;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_11q4y_106{width:100%;cursor:pointer}._buttons_11q4y_111{display:flex;flex-direction:row;gap:5px;width:100%}._name_11q4y_118{line-height:20px;padding:0 4px 4px}._secondary_11q4y_123{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_11q4y_131{line-height:20px;font-size:14px;font-weight:400}._modal_18a97_1{display:flex;flex-direction:row;gap:0px;position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100000;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_ba9vp_2{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_ba9vp_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._options_ba9vp_18{display:flex;flex-direction:row;gap:20px}._radioLabel_ba9vp_24{display:flex;flex-direction:row;gap:0px;align-items:center;cursor:pointer;position:relative}._radio_ba9vp_24{position:absolute;opacity:0;cursor:pointer}._custom_ba9vp_39{height:20px;width:20px;border-radius:50%;border:1px solid #e6e6e6;display:inline-block;margin-right:8px;position:relative}._radio_ba9vp_24:checked+._custom_ba9vp_39{border-color:#ff3f19;background:#ffeae5}._custom_ba9vp_39: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_ba9vp_24:checked+._custom_ba9vp_39:after{opacity:1}._option_ba9vp_18{font-size:16px;line-height:24px;font-weight:400}._tip_19jn3_1{display:flex;flex-direction:row;gap:8px;align-items:center;padding:8px;border-radius:12px}._text_19jn3_10{flex:1 1 auto;line-height:20px;font-size:14px}._warning_19jn3_16{background:#faf8e6;color:#c1972a}._error_19jn3_21{background:#ffc3b7;color:#ff3f19}._hide_19jn3_26{display:none}._customCheckbox_1b69m_1{display:inline-block;cursor:pointer;position:relative}._checkboxBox_1b69m_7{display:inline-block;width:20px;height:20px;border:1px solid #e6e6e6;border-radius:6px;position:relative}._checkboxBox_1b69m_7._checked_1b69m_16{background:#ffeae5;border:1px solid #ff3f19}._icon_1b69m_21{position:absolute;top:3px;left:3px}._loader_nftwq_1{border:4px solid rgba(0,0,0,.1);border-left-color:var(--background-color);border-radius:50%;width:40px;height:40px;animation:_spin_nftwq_1 1s linear infinite}@keyframes _spin_nftwq_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._wrapper_5w9s8_1{width:100%;padding:20px;text-align:center}._wrapper_5y1c1_2{display:flex;flex-direction:column;gap:6px;width:100%}._label_5y1c1_9{color:var(--accent-color);font-weight:400;font-size:14px;line-height:20px}._icon_5y1c1_16{display:flex;flex-direction:row;gap:0px;padding:4px;background-color:#fff;border:var(--default-border);justify-content:center;align-items:center;border-radius:6px}._text_5y1c1_28{font-weight:400;font-size:16px;line-height:24px;color:#ff3f19}._content_5y1c1_35{display:flex;flex-direction:row;gap:6px;align-items:center;cursor:pointer;background-color:var(--background-color);border-radius:12px;padding:6px 8px}._modal_5y1c1_46{background-color:var(--background-color);border:var(--default-border);border-radius:16px;width:100%;max-width:640px}._top_5y1c1_54{display:flex;flex-direction:row;gap:0px;padding:16px 24px;align-items:center;justify-content:space-between}._title_5y1c1_63{color:var(--main-color);font-weight:400;font-size:18px;line-height:24px}._modalContent_5y1c1_70{padding:16px 24px;border-top-left-radius:16px;border-top-right-radius:16px;border-top:var(--default-border);border-bottom:var(--default-border);background-color:#fff}._images_5y1c1_79{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:10px;overflow-y:scroll;max-height:390px}._add_5y1c1_88{display:flex;flex-direction:column;gap:8px;padding:43px 16px;border:1px dashed #e6e6e6;justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._description_5y1c1_100{text-align:center;color:var(--main-color);font-size:14px;line-height:20px}._description_5y1c1_100 span:last-child{padding-top:4px}._bottom_5y1c1_110{display:flex;flex-direction:row;gap:0px;justify-content:end;align-items:center;width:100%;background-color:#fff;border-bottom-left-radius:16px;border-bottom-right-radius:16px;padding:16px 24px 12px;gap:6px}._cancel_5y1c1_124{background-color:var(--background-color);color:var(--accent-color)}._highlight_5y1c1_129{color:#ff3f19;cursor:pointer}._accent_5y1c1_134{color:var(--accent-color)}._image_5y1c1_79{position:relative;padding:43px 16px;border:1px solid #e6e6e6;justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._selected_5y1c1_148{border:1px solid #ff3f19}._checkbox_5y1c1_152{position:absolute;top:12px;left:12px}._loading_5y1c1_158{display:flex;flex-direction:row;gap:0px;position:relative;padding:43px 16px;border:1px solid #e6e6e6;background-color:var(--background-color);justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._spinner_5y1c1_172{width:24px;height:24px;border:2px solid #ff3f19;border-top-color:var(--background-color);border-radius:50%;animation:_spin_5y1c1_172 1s linear infinite}@keyframes _spin_5y1c1_172{to{transform:rotate(360deg)}}*{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}body,html{background-color:#fff;font-family:Archivo,sans-serif;max-height:100dvh;overflow:hidden}._wrapper_1dfbs_1{display:flex;flex-direction:column;gap:0px;height:100%;overflow-y:scroll}._main_1dfbs_9{flex:1 1 auto}._loading_1dfbs_13{display:flex;flex-direction:row;gap:0px;width:100%;height:100%;justify-content:center;align-items:center}._buttons_uu72s_1{display:flex;flex-direction:row;gap:5px;align-items:center}._button_uu72s_1{cursor:pointer;padding:10px;border-radius:12px}._button_uu72s_1:hover{background-color:#f0f0f0}._disabled_uu72s_17{cursor:default}._disabled_uu72s_17:hover{background-color:inherit}._devices_1b6y1_1{display:flex;flex-direction:row;gap:4px;background:var(--background-color);padding:4px;border-radius:16px}._device_1b6y1_1{display:flex;flex-direction:row;gap:0px;padding:6px 8px;align-items:center;justify-content:center;cursor:pointer;border-radius:12px;border:1px solid var(--background-color)}._device_1b6y1_1:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_1b6y1_26{background-color:#fff}._active_1b6y1_26:hover{border:1px solid var(--background-color);box-shadow:none}._header_2d8xd_1{display:flex;flex-direction:row;gap:24px;width:100%;padding:11px 22px;line-height:20px;border-bottom:var(--default-border);align-items:center;justify-content:space-between}._left_2d8xd_13,._right_2d8xd_14{display:flex;flex-direction:row;gap:24px;align-items:center}._preview_93shy_2{display:flex;flex-direction:row;gap:4px;align-items:center;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_93shy_2:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_93shy_23{background-color:var(--background-color)}._active_93shy_23:hover{border:1px solid #fff;box-shadow:none}._settings_u4cv4_1{display:flex;flex-direction:row;gap:20px;align-items:center;color:var(--accent-color)}._pages_1mwe1_1{position:relative}._default_1mwe1_5{display:flex;flex-direction:row;gap:4px;align-items:center;padding:10px 12px;background-color:var(--background-color);border-radius:8px;cursor:pointer;position:relative}._text_1mwe1_17{padding-right:4px;color:var(--main-color);flex:1 1 auto}._modal_1mwe1_23{display:flex;flex-direction:row;gap:0px;position:absolute;top:45px;width:320px;left:0;z-index:5000;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:8px 12px;flex-direction:column}._page_1mwe1_1{display:flex;flex-direction:row;gap:8px;align-items:center;padding:12px 8px;border-radius:8px;cursor:pointer}._hoverable_1mwe1_49{background-color:var(--background-color)}._separator_1mwe1_53{border-bottom:var(--default-border)}._button_1mwe1_57{display:flex;flex-direction:row;gap:8px;background:inherit;color:#ff3f19;align-items:center;justify-content:start;padding:16px 8px 12px;transition:.2s}._button_1mwe1_57:hover{background-color:var(--background-color)}._items_1mwe1_72{max-height:400px;overflow-y:scroll;height:100%}._zoom_1q1ud_1{display:flex;flex-direction:row;gap:4px;align-items:center;background-color:var(--background-color);padding:10px 12px;border-radius:12px;cursor:pointer}._theme_1jz2h_1{display:flex;flex-direction:row;gap:4px;align-items:center;padding:9px 12px;background:#e5fadd;color:#338b13;border-radius:100px}._exit_1wk4t_1{display:flex;flex-direction:row;gap:8px;border-bottom:var(--default-border);align-items:center;padding:22px;cursor:pointer}._text_1wk4t_11{color:var(--main-color);line-height:20px}._navbar_14j8e_1{width:100px;border-right:var(--default-border)}._main_14j8e_6{display:flex;flex-direction:column;gap:8px;padding:16px 12px}._block_14j8e_13{display:flex;flex-direction:column;gap:4px;align-items:center;color:var(--accent-color);line-height:20px;padding:12px 24px;cursor:pointer;border:1px solid #fff;border-radius:16px}._block_14j8e_13:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_14j8e_30{background-color:var(--background-color);color:var(--main-color)}._active_14j8e_30:hover{border:1px solid #fff;box-shadow:none}._preview_1howr_1{display:flex;flex-direction:row;gap:0px;width:100%;background-color:var(--background-color);padding:16px 32px 0;position:relative;align-items:center;justify-content:center;z-index:500}._main_1howr_14{display:flex;flex-direction:column;gap:0px;width:100%;overflow-y:auto;height:calc(100vh - 85px);position:relative;z-index:1}._content_1howr_25{background-color:#fff;border:var(--default-border);border-bottom:none;height:100%}._loading_1howr_32{display:flex;flex-direction:row;gap:0px;width:100%;height:100%;justify-content:center;align-items:center}._loader_1howr_42{border:4px solid rgba(0,0,0,.1);border-left-color:#fff;border-radius:50%;width:40px;height:40px;animation:_spin_1howr_1 1s linear infinite}@keyframes _spin_1howr_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._header_obebc_1{display:flex;flex-direction:row;gap:0px;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_obebc_16{display:flex;flex-direction:row;gap:8px;left:28px;top:28px;position:absolute;align-items:center}._circle_obebc_16{width:12px;height:12px;border-radius:50%;border:.5px solid #e6e6e6}._red_obebc_33{background:#ff5f57}._green_obebc_37{background:#28c840}._yellow_obebc_41{background:#febc2e}._input_obebc_45{display:flex;flex-direction:row;gap:0px;background-color:var(--background-color);padding:6px 8px;max-width:480px;width:100%;border-radius:6px}._main_obebc_56{display:flex;flex-direction:row;gap:4px;flex:1 1 auto;align-items:center;justify-content:center}._text_obebc_65{font-weight:600;font-size:12px;line-height:16px;margin:0 0 0 4px}._content_glpob_1{display:flex;flex-direction:column;gap:0px;width:100%;height:100%}._main_glpob_9{flex:1 0 auto}._block_glpob_13{position:relative;cursor:pointer;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}._active_glpob_20{border:2px solid #ff3f19}._name_glpob_24{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_glpob_38{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;align-items:center;justify-content:center;text-align:center}._icon_glpob_49{display:flex;flex-direction:row;gap:0px;width:64px;height:64px;background-color:var(--background-color);border-radius:50%;justify-content:center;align-items:center;margin:0 0 8px}._title_glpob_62{font-weight:700;font-size:24px;line-height:32px}._text_glpob_68{font-size:16px;line-height:24px;color:var(--accent-color)}._sections_glpob_74{display:flex;flex-direction:row;gap:24px;padding:0 20px;margin:20px 0 0;flex-wrap:wrap;justify-content:center}._section_glpob_74{display:flex;flex-direction:row;gap:10px;cursor:pointer;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_1cz73_1{display:flex;flex-direction:row;gap:0px;position:absolute;height:fit-content();flex-direction:column;right:10px;z-index:20;padding:10px;cursor:auto}._content_1cz73_14{height:100%;border:1px solid #e6e6e6;border-radius:8px;background-color:#fff;padding:8px;max-width:60px;width:100%}._button_1cz73_24{display:flex;flex-direction:row;gap:0px;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._moveButton_1cz73_34:hover{background-color:var(--background-color)}._border_1cz73_38{border-bottom:var(--default-border)}._deleteButton_1cz73_42:hover{background-color:#dd6363;color:#fff}._results_12p5x_1{display:flex;flex-direction:column;gap:20px;padding:8px}._name_12p5x_8{color:var(--main-color);font-weight:600;font-size:16px;line-height:24px}._product_12p5x_15{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between;cursor:pointer}._search_186hm_1{display:flex;flex-direction:row;gap:10px;background:var(--background-color);padding:8px 12px;align-items:center;border-radius:12px;width:100%;margin:8px 0}._input_186hm_13{width:100%;font-size:16px;line-height:24px;color:var(--main-color)}._input_186hm_13::placeholder{color:#c2c2c2}._sidebar_1yyyy_1{max-width:320px;width:100%;padding:16px;border-right:var(--default-border);height:calc(100vh - 60px);position:relative}._title_1yyyy_10{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;padding-bottom:8px}._active_1yyyy_18{display:flex;flex-direction:row;gap:8px;align-items:center}._layers_1on0q_1{display:flex;flex-direction:column;gap:0px;position:relative;height:100%}._block_1on0q_9{display:flex;flex-direction:row;gap:4px;position:relative;align-items:center;font-size:16px;line-height:24px;padding:8px 12px;border-radius:8px;cursor:pointer}._block_1on0q_9:hover{background-color:var(--background-color)}._dragging_1on0q_25{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_1on0q_33{background:#ffeae5}._add_1on0q_37{display:flex;flex-direction:row;gap:0px;z-index:2;position:absolute;justify-content:center;align-items:center;bottom:0;left:0;border-bottom:2px solid #ff3f19;width:100%}._button_1on0q_51{display:flex;flex-direction:row;gap:0px;position:relative;justify-content:center;align-items:center;top:12px;background-color:#ff3f19;width:24px;height:24px;border-radius:50%;padding:4px}._empty_1on0q_66{display:flex;flex-direction:column;gap:4px;justify-content:center;height:100%;width:100%;align-items:center;text-align:center;color:var(--accent-color)}._title_1on0q_78{font-size:16px;line-height:24px;font-weight:700;color:var(--accent-color)}._icon_1on0q_85{margin:0 0 12px}._text_1on0q_89{font-size:16px;font-weight:400;line-height:24px}._highlight_1on0q_95{color:#ff3f19;cursor:pointer}._block_586dq_1{display:flex;flex-direction:row;gap:4px;position:relative;align-items:center;font-size:16px;line-height:24px;padding:8px 12px;border-radius:8px;cursor:pointer}._block_586dq_1:hover{background-color:var(--background-color)}._theme_1wwlz_1{display:flex;flex-direction:column;gap:0px}._block_1wwlz_7{display:flex;flex-direction:row;gap:8px;justify-content:start;align-items:center;width:100%;padding:16px 8px;cursor:pointer;border-radius:8px}._block_1wwlz_7:hover{background-color:var(--background-color)}._name_1wwlz_22{flex:1 1 auto}._back_2jwrk_1{display:flex;flex-direction:row;gap:8px;align-items:center;padding-bottom:8px}._render_2jwrk_9{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_2jwrk_24{animation:.2s _open_2jwrk_24 forwards}@keyframes _open_2jwrk_24{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_2jwrk_51{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_2jwrk_51{animation:.2s _close_2jwrk_51 forwards}._clicked_2jwrk_55{opacity:0}._title_2jwrk_59{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._button_2jwrk_67{align-self:center;flex:1}._loading_2jwrk_72{flex:1 1 auto}._settings_2jwrk_76{flex:1 1 100%;overflow-y:scroll;overflow-x:hidden}._deleteButton_2jwrk_82{display:flex;flex-direction:row;gap:0px;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_2jwrk_82:hover{background-color:#dd6363;color:#fff}._settings_ss3tc_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_ss3tc_16{transform:translate(0)}._close_ss3tc_20{transform:translate(320px)}._header_ss3tc_24{display:flex;flex-direction:row;gap:8px;align-items:center}._title_ss3tc_31{font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._addButton_ss3tc_38{display:flex;flex-direction:row;gap:4px;color:#ff3f19;align-items:center;cursor:pointer}._wrapper_joj7w_1{overflow-y:scroll}._category_joj7w_5{display:flex;flex-direction:column;gap:0px}._categoryTitle_joj7w_11{font-weight:600;font-size:16px;line-height:24px}._color_joj7w_17{display:flex;flex-direction:column;gap:0px}._color_joj7w_17:not(:last-child){border-bottom:var(--default-border)}._content_joj7w_26{display:flex;flex-direction:row;gap:8px;padding:12px 0;align-items:center;flex:1 1 auto}._preview_joj7w_35{width:39px;height:39px;flex:0 0 39px;padding:5px;border-radius:50%;border:1px solid #e6e6e6}._wrapper_dv4am_2{overflow-y:scroll}._category_dv4am_6{display:flex;flex-direction:column;gap:0px}._categoryTitle_dv4am_12{font-weight:600;font-size:16px;line-height:24px}._color_dv4am_18{display:flex;flex-direction:column;gap:8px}._name_dv4am_24{line-height:20px;padding:0 4px 4px}._content_dv4am_29{display:flex;flex-direction:column;gap:0px;width:100%}._label_dv4am_36{display:flex;flex-direction:row;gap:5px;padding:8px 12px;border-radius:12px;align-items:center;width:100%;background-color:var(--background-color);cursor:pointer}._input_dv4am_48[type=color]{width:20px;height:20px;padding:1px}._input_dv4am_48{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:100%;border:none;padding:0;cursor:pointer;border-radius:50%}._input_dv4am_48::-webkit-color-swatch{border-radius:50%;border:none}._input_dv4am_48::-webkit-color-swatch-wrapper{padding:0;border-radius:50%}._title_dv4am_74{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._field_dv4am_82{display:flex;flex-direction:column;gap:10px;padding:16px 0}._field_dv4am_82:not(:last-child){border-bottom:var(--default-border)}._alignments_dv4am_92{display:flex;flex-direction:column;gap:10px}._lineField_dv4am_98{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center}._style_dv4am_106{display:flex;flex-direction:column;gap:8px;flex:1 0 50%}._header_dv4am_113{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._wrapper_lov6e_1{overflow-y:scroll}._category_lov6e_5{display:flex;flex-direction:column;gap:0px}._categoryTitle_lov6e_11{font-weight:600;font-size:16px;line-height:24px}._font_lov6e_17{display:flex;flex-direction:row;gap:8px;padding:12px 0;align-items:center;position:relative;flex:1 1 auto;cursor:pointer}._font_lov6e_17:hover{background-color:var(--background-color);border-radius:8px}._font_lov6e_17:not(:last-child){border-bottom:var(--default-border)}._font_lov6e_17:not(:last-child):hover{border-bottom:1px solid var(--background-color)}._content_lov6e_38{display:flex;flex-direction:column;gap:0px;width:100%}._icon_lov6e_45{display:flex;flex-direction:row;gap:0px;padding:8px;border-radius:8px;background-color:var(--background-color);align-items:center;justify-content:center}._paragraph_lov6e_56{padding:12px}._deleteIcon_lov6e_60{position:absolute;right:10px;width:20px;height:20px}._iconButton_lov6e_67{width:32px;height:32px}._wrapper_smgf8_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_smgf8_16{transform:translate(0)}._close_smgf8_20{transform:translate(320px)}._header_smgf8_24{display:flex;flex-direction:row;gap:8px;align-items:center;margin:0 0 10px}._title_smgf8_32{font-weight:700;font-size:20px;line-height:24px}._options_smgf8_38{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_smgf8_45{opacity:0}._wrapper_1phvv_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_1phvv_16{transform:translate(0)}._close_1phvv_20{transform:translate(320px)}._header_1phvv_24{display:flex;flex-direction:row;gap:8px;align-items:center;margin:0 0 10px}._title_1phvv_32{font-weight:700;font-size:20px;line-height:24px}._options_1phvv_38{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_1phvv_45{opacity:0}._label_1phvv_49{font-size:14px;font-weight:400;line-height:20px;color:var(--accent-color)}._alignments_1phvv_56{display:flex;flex-direction:column;gap:10px}._blocks_1phvv_62{display:flex;flex-direction:row;gap:8px;align-items:center}._alignment_1phvv_56{padding:8px;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_1phvv_77{border:1px solid #ff3f19}._wrapper_gibny_1{display:flex;flex-direction:column;gap:20px;background:#fff;max-width:640px;width:100%;padding:16px 24px;border-radius:16px}._header_gibny_12{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;font-size:24px;font-weight:700;line-height:32px}._content_gibny_23{display:flex;flex-direction:column;gap:10px;overflow-y:scroll;max-height:500px}._buttons_gibny_31{display:flex;flex-direction:row;gap:12px;justify-content:end}._cancel_gibny_38{background-color:var(--background-color);color:var(--accent-color)}._label_gibny_43,._description_gibny_44{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._preview_gibny_52{display:flex;flex-direction:column;gap:10px}._block_gibny_58{display:flex;flex-direction:column;gap:0px;padding:24px;border:1px solid var(--background-color);border-radius:8px}._slug_gibny_67{line-height:20px;color:#ff3f19;margin-bottom:4px}._title_gibny_73{font-weight:600;font-size:16px;line-height:24px}._layout_douh4_1{display:flex;flex-direction:row;gap:0px;width:100%;height:100%;position:relative}._main_douh4_10{display:flex;flex-direction:column;gap:0px;width:100%;position:relative}._content_douh4_18{display:flex;flex-direction:row;gap:0px;position:relative;height:100%}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--billgang-color-signal-danger: #c12a2a;--billgang-color-brand-default: #ff3f19;--billgang-color-brand-light: #ffeae5;--billgang-color-brand-lighter: rgba(255, 64, 26, .1);--billgang-color-surface-0: #f8f8f8;--billgang-color-surface-100: #ffffff;--billgang-color-surface-200: #c2c2c2;--billgang-color-text-brandDefault: #252525;--billgang-color-text-secondary: #757575;--billgang-color-border-default: #f0f0f0;--billgang-color-border-hover: #e6e6e6;--billgang-color-shadow-0: #dfdfdf;--billgang-color-success-background: #e5fadd;--billgang-color-success-text: #338b13;--billgang-color-warning-background: #faf8e6;--billgang-color-warning-text: #c1972a;--billgang-color-error-background: #fae6e6;--billgang-color-dialog-backdrop: rgba(37, 37, 37, .25);--billgang-color-field-background-default: var( --billgang-color-surface-200 );--billgang-color-field-background-hover: var(--billgang-color-surface-100);--billgang-color-field-background-focus: var(--billgang-color-surface-100);--billgang-color-field-border-default: var(--billgang-color-surface-200);--billgang-color-field-border-hover: var(--billgang-color-surface-200);--billgang-color-field-border-focus: var(--billgang-color-brand-default);--billgang-shadow-0: 0 1px 0 var(--billgang-color-shadow-0);--billgang-shadow-field: 0 0 0 3px var(--billgang-color-brand-light);--billgang-shadow-dialog: 0 10px 20px rgba(0, 0, 0, .05)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.flex-center{display:flex;align-items:center;justify-content:center}.icon-wrapper{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:24px;background-color:var(--billgang-color-surface-0)}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-4{top:1rem;right:1rem;bottom:1rem;left:1rem}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.bottom-3{bottom:.75rem}.bottom-\\[60px\\]{bottom:60px}.left-0{left:0}.left-4{left:1rem}.right-0{right:0}.right-3{right:.75rem}.right-6{right:1.5rem}.right-\\[14px\\]{right:14px}.top-0{top:0}.top-6{top:1.5rem}.-z-50{z-index:-50}.z-10{z-index:10}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.row-span-2{grid-row:span 2 / span 2}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\\[6px\\]{margin-left:6px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-\\[10px\\]{margin-right:10px}.mr-auto{margin-right:auto}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-2\\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[1px\\]{margin-top:1px}.mt-\\[2px\\]{margin-top:2px}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[21px\\]{height:21px}.h-\\[276px\\]{height:276px}.h-\\[28px\\]{height:28px}.h-\\[38px\\]{height:38px}.h-\\[4px\\]{height:4px}.h-\\[56px\\]{height:56px}.h-\\[80\\%\\]{height:80%}.h-\\[92\\%\\]{height:92%}.h-\\[92px\\]{height:92px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-8{max-height:2rem}.max-h-\\[230px\\]{max-height:230px}.min-h-\\[300px\\]{min-height:300px}.min-h-\\[96px\\]{min-height:96px}.min-h-svh{min-height:100svh}.w-1{width:.25rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\\[120px\\]{width:120px}.w-\\[160px\\]{width:160px}.w-\\[20px\\]{width:20px}.w-\\[21px\\]{width:21px}.w-\\[256px\\]{width:256px}.w-\\[28px\\]{width:28px}.w-\\[56px\\]{width:56px}.w-\\[calc\\(100\\%\\/6\\)\\]{width:calc(100% / 6)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-12{min-width:3rem}.min-w-4{min-width:1rem}.min-w-8{min-width:2rem}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[18px\\]{min-width:18px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-\\[100\\%\\]{max-width:100%}.max-w-\\[1120px\\]{max-width:1120px}.max-w-\\[368px\\]{max-width:368px}.max-w-\\[376px\\]{max-width:376px}.max-w-\\[40\\%\\]{max-width:40%}.max-w-\\[456px\\]{max-width:456px}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[65\\%\\]{max-width:65%}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[800px\\]{max-width:800px}.max-w-\\[85\\%\\]{max-width:85%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[minmax\\(120px\\,auto\\)_minmax\\(0\\,20\\%\\)_repeat\\(4\\,minmax\\(min-content\\,auto\\)\\)\\]{grid-template-columns:minmax(120px,auto) minmax(0,20%) repeat(4,minmax(min-content,auto))}.grid-cols-\\[minmax\\(120px\\,auto\\)_repeat\\(5\\,minmax\\(min-content\\,auto\\)\\)\\]{grid-template-columns:minmax(120px,auto) repeat(5,minmax(min-content,auto))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.\\!items-start{align-items:flex-start!important}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-\\[6px\\]{gap:6px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[100px\\]{border-radius:100px}.rounded-\\[32px\\]{border-radius:32px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-\\[6px\\]{border-radius:6px}.rounded-base{border-radius:12px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-none{border-radius:0}.rounded-sm{border-radius:8px}.rounded-xl{border-radius:24px}.rounded-t-xl{border-top-left-radius:24px;border-top-right-radius:24px}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\\[1px\\]{border-width:1px}.border-b,.border-b-\\[1px\\]{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.\\!border-brandDefault{border-color:var(--billgang-color-brand-default)!important}.border-borderDefault{border-color:var(--billgang-color-border-default)}.border-borderHover{border-color:var(--billgang-color-border-hover)}.border-brandDefault{border-color:var(--billgang-color-brand-default)}.border-textPrimary{border-color:var(--billgang-color-text-brandDefault)}.border-transparent{border-color:transparent}.border-x-borderDefault{border-left-color:var(--billgang-color-border-default);border-right-color:var(--billgang-color-border-default)}.border-x-brandDefault{border-left-color:var(--billgang-color-brand-default);border-right-color:var(--billgang-color-brand-default)}.border-x-surface100{border-left-color:var(--billgang-color-surface-100);border-right-color:var(--billgang-color-surface-100)}.border-b-transparent{border-bottom-color:transparent}.border-t-borderDefault{border-top-color:var(--billgang-color-border-default)}.border-t-brandDefault{border-top-color:var(--billgang-color-brand-default)}.border-t-surface100{border-top-color:var(--billgang-color-surface-100)}.\\!bg-surface0{background-color:var(--billgang-color-surface-0)!important}.bg-\\[rgba\\(37\\,37\\,37\\,0\\.24\\)\\]{background-color:#2525253d}.bg-borderDefault{background-color:var(--billgang-color-border-default)}.bg-brandDefault{background-color:var(--billgang-color-brand-default)}.bg-brandLight{background-color:var(--billgang-color-brand-light)}.bg-signalDangerBackground{background-color:var(--billgang-color-error-background)}.bg-successBackground{background-color:var(--billgang-color-success-background)}.bg-surface0{background-color:var(--billgang-color-surface-0)}.bg-surface100{background-color:var(--billgang-color-surface-100)}.bg-textPrimary{background-color:var(--billgang-color-text-brandDefault)}.bg-transparent{background-color:transparent}.bg-warningBackground{background-color:var(--billgang-color-warning-background)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-brandDefault{fill:var(--billgang-color-brand-default)}.fill-signalDanger{fill:var(--billgang-color-signal-danger)}.fill-surface100{fill:var(--billgang-color-surface-100)}.fill-textPrimary{fill:var(--billgang-color-text-brandDefault)}.fill-textSecondary{fill:var(--billgang-color-text-secondary)}.stroke-borderDefault{stroke:var(--billgang-color-border-default)}.stroke-brandDefault{stroke:var(--billgang-color-brand-default)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[12px_16px\\]{padding:12px 16px}.p-\\[12px_16px_10px\\]{padding:12px 16px 10px}.p-\\[4px_8px\\]{padding:4px 8px}.p-\\[6px\\]{padding:6px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[2px\\]{padding-top:2px;padding-bottom:2px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-9{padding-bottom:2.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pl-\\[6px\\]{padding-left:6px}.pr-10{padding-right:2.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-base{font-size:16px}.text-lg{font-size:20px}.text-sm{font-size:14px}.text-xl{font-size:24px}.text-xs{font-size:12px}.text-xxl{font-size:32px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-10{line-height:2.5rem}.text-brandDefault{color:var(--billgang-color-brand-default)}.text-signalDanger{color:var(--billgang-color-signal-danger)}.text-successText{color:var(--billgang-color-success-text)}.text-surface100{color:var(--billgang-color-surface-100)}.text-surface200{color:var(--billgang-color-surface-200)}.text-textPrimary{color:var(--billgang-color-text-brandDefault)}.text-textSecondary{color:var(--billgang-color-text-secondary)}.text-warningText{color:var(--billgang-color-warning-text)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-shadow0{--tw-shadow: var(--billgang-shadow-0);--tw-shadow-colored: var(--billgang-shadow-0);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: var(--billgang-color-shadow-0);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-2{outline-width:2px}.outline-offset-\\[-1px\\]{outline-offset:-1px}.outline-brandDefault{outline-color:var(--billgang-color-brand-default)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}body{font-family:Archivo,sans-serif;color:var(--billgang-color-text-brandDefault)}html,body,#root{height:100%}.grecaptcha-badge{visibility:hidden}.placeholder\\:text-surface200::-moz-placeholder{color:var(--billgang-color-surface-200)}.placeholder\\:text-surface200::placeholder{color:var(--billgang-color-surface-200)}.first\\:rounded-l-base:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.last\\:rounded-r-base:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.last\\:border-r-0:last-child{border-right-width:0px}.last-of-type\\:border-none:last-of-type{border-style:none}.last-of-type\\:pb-0:last-of-type{padding-bottom:0}.hover\\:bg-surface100:hover{background-color:var(--billgang-color-surface-100)}.hover\\:text-textPrimary:hover{color:var(--billgang-color-text-brandDefault)}.hover\\:underline:hover{text-decoration-line:underline}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}}@media (min-width: 768px){.md\\:bottom-auto{bottom:auto}.md\\:left-1\\/2{left:50%}.md\\:top-1\\/2{top:50%}.md\\:mb-0{margin-bottom:0}.md\\:ml-auto{margin-left:auto}.md\\:mr-4{margin-right:1rem}.md\\:mt-0{margin-top:0}.md\\:mt-5{margin-top:1.25rem}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-\\[92px\\]{height:92px}.md\\:h-auto{height:auto}.md\\:h-full{height:100%}.md\\:h-svh{height:100svh}.md\\:max-h-svh{max-height:100svh}.md\\:min-h-\\[92px\\]{min-height:92px}.md\\:w-\\[320px\\]{width:320px}.md\\:w-\\[40\\%\\]{width:40%}.md\\:w-\\[50\\%\\]{width:50%}.md\\:w-\\[640px\\]{width:640px}.md\\:w-\\[720px\\]{width:720px}.md\\:w-auto{width:auto}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:w-full{width:100%}.md\\:max-w-\\[520px\\]{max-width:520px}.md\\:-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:scale-50{--tw-scale-x: .5;--tw-scale-y: .5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:scale-\\[1\\]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-col{flex-direction:column}.md\\:flex-col-reverse{flex-direction:column-reverse}.md\\:items-start{align-items:flex-start}.md\\:items-end{align-items:flex-end}.md\\:justify-center{justify-content:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-2{gap:.5rem}.md\\:gap-3{gap:.75rem}.md\\:overflow-auto{overflow:auto}.md\\:rounded-none{border-radius:0}.md\\:rounded-xl{border-radius:24px}.md\\:border-none{border-style:none}.md\\:bg-transparent{background-color:transparent}.md\\:p-10{padding:2.5rem}.md\\:p-4{padding:1rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-6{padding-bottom:1.5rem}.md\\:pl-4{padding-left:1rem}.md\\:pr-4{padding-right:1rem}.md\\:pt-0{padding-top:0}.md\\:opacity-0{opacity:0}.md\\:opacity-100{opacity:1}}@media (min-width: 1024px){.lg\\:bottom-10{bottom:2.5rem}.lg\\:left-auto{left:auto}.lg\\:right-0{right:0}.lg\\:col-span-1{grid-column:span 1 / span 1}.lg\\:col-span-4{grid-column:span 4 / span 4}.lg\\:mb-0{margin-bottom:0}.lg\\:ml-3{margin-left:.75rem}.lg\\:h-\\[72px\\]{height:72px}.lg\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:flex-row{flex-direction:row}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-4{gap:1rem}.lg\\:p-6{padding:1.5rem}.lg\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.lg\\:pb-6{padding-bottom:1.5rem}}@media (min-width: 1280px){.xl\\:mt-1{margin-top:.25rem}.xl\\:block{display:block}.xl\\:flex{display:flex}.xl\\:max-w-\\[320px\\]{max-width:320px}.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:flex-row{flex-direction:row}.xl\\:rounded-base{border-radius:12px}.xl\\:border-r{border-right-width:1px}.xl\\:border-none{border-style:none}.xl\\:bg-surface0{background-color:var(--billgang-color-surface-0)}.xl\\:p-6{padding:1.5rem}.xl\\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.xl\\:pr-0{padding-right:0}.xl\\:pr-10{padding-right:2.5rem}.xl\\:pr-4{padding-right:1rem}.xl\\:hover\\:bg-surface0:hover{background-color:var(--billgang-color-surface-0)}}._accordion_9e4oa_1{border-radius:24px;overflow:hidden;transition:all .3s ease;background-color:var(--background-color);padding:24px}._header_9e4oa_9{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700}._header_9e4oa_9 ._icon_9e4oa_18{transition:transform .3s ease}._header_9e4oa_9 ._icon_9e4oa_18._open_9e4oa_21{transform:rotate(180deg)}._content_9e4oa_25{overflow:hidden;transition:height .3s ease}._wrapper_9rr5j_2{display:flex;flex-direction:column;gap:10px}._alignmentBlock_9rr5j_8{display:flex;flex-direction:column;gap:6px;padding:10px 0 16px}._title_9rr5j_15{font-weight:700;line-height:24px;font-size:16px;color:var(--main-color)}._subtitle_9rr5j_22{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._alignmentContent_9rr5j_29{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:stretch}._alignments_9rr5j_37{border-radius:12px;background:var(--background-color);display:grid;gap:4px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);flex:0 0 50%}._alignment_9rr5j_8{display:flex;flex-direction:row;gap:0px;cursor:pointer;height:100%;width:100%;align-items:center;justify-content:center}._circle_9rr5j_58{width:6px;height:6px;border-radius:50%;background-color:#c2c2c2}._paddings_9rr5j_65{border-radius:12px;display:grid;gap:4px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._padding_9rr5j_65{display:flex;flex-direction:row;gap:4px;width:68px;align-items:center;background:var(--background-color);border-radius:12px;padding:10px 8px}._input_9rr5j_84{width:100%}._subtitle_1qrz9_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_1qrz9_8,._text_1qrz9_9{display:flex;flex-direction:column;gap:0px;padding:10px 0 16px;border-bottom:var(--default-border)}._top_1qrz9_17{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1qrz9_26{display:flex;flex-direction:column;gap:6px}._typeTexts_rcw8p_1{display:flex;flex-direction:row;gap:8px;align-items:center}._block_rcw8p_8{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_rcw8p_21{border:1px solid #ff3f19}._subtitle_cuny2_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_cuny2_8,._text_cuny2_9,._productsBlock_cuny2_10{display:flex;flex-direction:column;gap:12px;padding:10px 0 16px;width:100%}._productsBlock_cuny2_10{position:relative}._top_cuny2_22{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_cuny2_31{display:flex;flex-direction:column;gap:6px}._typeTexts_cuny2_37{display:flex;flex-direction:row;gap:8px;align-items:center}._block_cuny2_44{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_cuny2_57{border:1px solid #ff3f19}._products_cuny2_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_cuny2_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_cuny2_76{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._disabled_cuny2_87{color:var(--accent-color)}._image_cuny2_91{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_cuny2_98{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_cuny2_110{flex:1 1 100%}._buttons_cuny2_114{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_cuny2_121{position:fixed;background-color:#fff;border:var(--default-border);right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_cuny2_121 ._top_cuny2_22{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._link_cuny2_141{display:flex;flex-direction:column;gap:8px}._modalOptions_cuny2_147{display:flex;flex-direction:column;gap:10px}._other_g74jx_1{display:flex;flex-direction:column;gap:6px}._subtitle_g74jx_7{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._items_g74jx_14{display:flex;flex-direction:column;gap:8px}._subtitle_1fb9q_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_1fb9q_8,._text_1fb9q_9,._productsBlock_1fb9q_10,._buttonsBlock_1fb9q_11{display:flex;flex-direction:column;gap:0px;padding:10px 0 16px}._buttonsBlock_1fb9q_11{position:relative}._top_1fb9q_22{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1fb9q_31{display:flex;flex-direction:column;gap:6px}._typeTexts_1fb9q_37{display:flex;flex-direction:row;gap:8px;align-items:center}._block_1fb9q_44{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_1fb9q_56{border:1px solid #ff3f19}._products_1fb9q_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_1fb9q_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_1fb9q_11{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._image_1fb9q_86{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_1fb9q_93{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_1fb9q_105{flex:1 1 100%}._buttons_1fb9q_11{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_1fb9q_116{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_1fb9q_116 ._top_1fb9q_22{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._other_1fb9q_135{display:flex;flex-direction:column;gap:6px}._options_1fb9q_141{display:flex;flex-direction:column;gap:15px}._subtitle_m8qel_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_m8qel_8,._text_m8qel_9,._productsBlock_m8qel_10,._buttonsBlock_m8qel_11{display:flex;flex-direction:column;gap:0px;padding:10px 0 16px;border-bottom:var(--default-border)}._buttonsBlock_m8qel_11{position:relative}._top_m8qel_23{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_m8qel_32{display:flex;flex-direction:column;gap:6px}._typeTexts_m8qel_38{display:flex;flex-direction:row;gap:8px;align-items:center}._block_m8qel_45{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_m8qel_58{border:1px solid #ff3f19}._products_m8qel_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_m8qel_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_m8qel_11{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._image_m8qel_88{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_m8qel_95{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_m8qel_107{flex:1 1 100%}._buttons_m8qel_11{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_m8qel_118{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_m8qel_118 ._top_m8qel_23{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._other_m8qel_137{display:flex;flex-direction:column;gap:6px}._options_m8qel_143{display:flex;flex-direction:column;gap:15px}._wrapper_m18qi_1{display:flex;flex-direction:column;gap:6px}._subtitle_m18qi_7{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._content_m18qi_14{display:flex;flex-direction:row;gap:10px;align-items:center;width:100%}._range_m18qi_22{position:relative;flex:1}._track_m18qi_27{position:absolute;width:95%;height:6px;background-color:#f0f0f0;border-radius:9999px;z-index:1}._progress_m18qi_36{position:absolute;height:6px;width:100%;background-color:#ff3f19;transition:width .2s;border-radius:9999px;z-index:1}._dots_m18qi_46{display:flex;flex-direction:row;gap:0px;position:absolute;justify-content:space-between;width:100%}._dot_m18qi_46{width:14px;height:14px;border-radius:50%;transition:transform .2s;position:relative;top:-4px;left:0;z-index:1}._dot_m18qi_46._active_m18qi_65{background-color:#ff3f19;transform:scale(1)}._dot_m18qi_46:not(._active_m18qi_65){background-color:#e5e7eb;transform:scale(.9)}._dot_m18qi_46:hover{transform:scale(1.1)}._input_m18qi_77{position:absolute;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}._input_m18qi_77::-webkit-slider-thumb,._input_m18qi_77::-moz-range-thumb{-webkit-appearance:none!important;-moz-appearance:none;appearance:none;width:0;height:0}._countBlock_m18qi_91{display:flex;flex-direction:row;gap:10px;align-items:center;padding:8px 12px;background:var(--background-color);border-radius:12px}._count_m18qi_91{font-size:16px;font-weight:400;line-height:24px}._controls_m18qi_107{display:flex;flex-direction:column;gap:0px}._button_m18qi_113{transition:background-color .2s}._button_m18qi_113:hover{background-color:#f3f4f6}._button_m18qi_113:disabled{opacity:.5}._subtitle_16rdk_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_16rdk_8,._text_16rdk_9,._productsBlock_16rdk_10{display:flex;flex-direction:column;gap:12px;padding:10px 0 16px;width:100%}._productsBlock_16rdk_10{position:relative}._top_16rdk_22{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_16rdk_31{display:flex;flex-direction:column;gap:6px}._typeTexts_16rdk_37{display:flex;flex-direction:row;gap:8px;align-items:center}._block_16rdk_44{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_16rdk_57{border:1px solid #ff3f19}._products_16rdk_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_16rdk_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_16rdk_76{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._image_16rdk_87{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_16rdk_94{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_16rdk_106{flex:1 1 100%}._buttons_16rdk_110{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_16rdk_117{position:fixed;background-color:#fff;border:var(--default-border);right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_16rdk_117 ._top_16rdk_22{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._link_16rdk_137{display:flex;flex-direction:column;gap:8px}._modalOptions_16rdk_143{display:flex;flex-direction:column;gap:10px}._options_q6sjs_1{display:flex;flex-direction:column;gap:20px;border-radius:16px;border:var(--default-border);width:100%;height:fit-content;padding:24px}._price_q6sjs_12{display:flex;flex-direction:row;gap:4px;align-items:flex-start}._oldPrice_q6sjs_19{font-size:14px;font-weight:400;line-height:20px;text-decoration:line-through;color:var(--accent-color)}._newPrice_q6sjs_27{font-size:20px;font-weight:700;line-height:24px;color:var(--main-color)}._meta_q6sjs_34{display:flex;flex-direction:column;gap:10px}._info_q6sjs_40{display:flex;flex-direction:row;gap:10px;align-items:center;justify-content:space-between}._infoRight_q6sjs_48{display:flex;flex-direction:row;gap:5px;align-items:center}._buttons_q6sjs_55{display:flex;flex-direction:column;gap:8px;width:100%}._variants_q6sjs_62{display:flex;flex-direction:column;gap:20px}._variant_q6sjs_62{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;border-radius:12px;padding:12px 16px;border:2px solid #e6e6e6}._stock_q6sjs_79{font-size:14px;font-weight:400;line-height:20px;color:var(--accent-color)}._variantInfo_q6sjs_86{display:flex;flex-direction:column;gap:4px}._quantity_q6sjs_92{display:flex;flex-direction:row;gap:10px;align-items:stretch}._count_q6sjs_99{display:flex;flex-direction:row;gap:0px;flex:1 1 auto;justify-content:center;align-items:center;border:1px solid #e6e6e6}._button_q6sjs_55{display:flex;flex-direction:row;gap:0px;background:var(--background-color);border-radius:50%;padding:8px;justify-content:center;align-items:center}._activeVariant_q6sjs_120{border:2px solid #ff3f19}._chargeTypes_q6sjs_124{display:flex;flex-direction:row;gap:5px;padding:4px;background-color:var(--background-color)}._charge_q6sjs_124{display:flex;flex-direction:row;gap:0px;flex:1 1 auto;justify-content:center;align-items:center;color:var(--accent-color);padding:8px;border-radius:12px}._chargeActive_q6sjs_144{background-color:#fff;color:var(--main-color)}._button_14i4s_1{display:flex;flex-direction:row;gap:0px;align-items:center;padding:10px;background-color:var(--background-color);border-radius:12px;color:var(--accent-color);cursor:pointer;position:relative}._login_14i4s_14{padding:12px 16px}._signUp_14i4s_18{background-color:#ff3f19;color:#fff}._buttons_14i4s_23{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:16px}._modal_14i4s_32{background-color:#fff;height:100vh;position:absolute;right:0;top:0;bottom:0;align-self:flex-end;justify-self:flex-end;border-top-left-radius:24px;border-bottom-left-radius:24px;width:100%;min-width:300px;max-width:450px}._info_14i4s_48{display:flex;flex-direction:row;gap:8px;align-items:center}._top_14i4s_55{display:flex;flex-direction:row;padding:26px 24px;border-bottom:var(--default-border);align-items:center;justify-content:space-between;gap:8px}._title_14i4s_66{font-size:20px;font-weight:700;line-height:24px}._clear_14i4s_72{font-size:14px;font-weight:400;line-height:20px;color:#e6e6e6}._activeClear_14i4s_79{color:#ff3f19}._count_14i4s_83{display:flex;flex-direction:row;gap:0px;background:#ff3f19;color:#fff;width:100%;height:100%;border-radius:50%;min-width:20px;min-height:20px;align-items:center;justify-content:center}._cart_14i4s_98{display:flex;flex-direction:column;gap:0px;height:calc(100% - 76px);width:100%}._empty_14i4s_106{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;height:100%;flex:1 1 auto;color:var(--accent-color)}._empty_14i4s_106 div{padding-bottom:16px}._empty_14i4s_106 span:first-child{font-size:16px;font-weight:700;line-height:24px;text-align:center}._empty_14i4s_106 span:last-child{font-size:16px;font-weight:400;line-height:24px;text-align:center}._product_14i4s_132{display:flex;flex-direction:row;gap:0px;padding:26px 24px;align-items:center;justify-content:space-between}._products_14i4s_141{display:flex;flex-direction:column;gap:0px;flex:1 1 auto;overflow-y:scroll}._image_14i4s_149{width:56px;height:56px;border-radius:12px}._productInfo_14i4s_155{display:flex;flex-direction:row;gap:12px;align-items:center}._content_14i4s_162{display:flex;flex-direction:column;gap:4px}._name_14i4s_168{font-size:16px;font-weight:600;line-height:24px}._price_14i4s_174{font-size:16px;font-weight:400;line-height:24px}._productButtons_14i4s_180{display:flex;flex-direction:row;gap:5px;align-items:center}._productButton_14i4s_180{display:flex;flex-direction:row;gap:0px;justify-content:center;align-items:center;border-radius:12px;padding:8px;min-width:36px;min-height:36px;background-color:var(--background-color)}._productCount_14i4s_200{display:flex;flex-direction:row;gap:0px;justify-content:center;align-items:center;border-radius:12px;padding:8px;font-size:16px;font-weight:400;line-height:24px;text-align:center;color:var(--main-color);background-color:var(--background-color)}._bottom_14i4s_216{display:flex;flex-direction:column;gap:10px;width:100%;padding:26px 24px}._subtotal_14i4s_224{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._block_14i4s_232{display:flex;flex-direction:row;gap:10px;align-items:center}._shoppingCount_14i4s_239{display:flex;flex-direction:row;gap:0px;width:12px;height:12px;border-radius:50%;align-items:center;justify-content:center;background-color:#ff3f19;color:#fff;font-size:10px;font-weight:500;line-height:12px;text-align:center;position:absolute;top:8px;right:8px}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./root-BsdCG0vR.cjs"),g=require("react"),F=t=>t?t.replace(/_/g," ").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" and "):"",_e=[{icon:"Desktop",value:"desktop"},{icon:"DeviceTabletCamera",value:"tablet"},{icon:"DeviceMobileCamera",value:"mobile"}],we=[{icon:"PaintBrushBroad",name:"Colors"},{icon:"TextAa",name:"Fonts"},{icon:"CornersOut",name:"Borders"},{icon:"ArrowSquareIn",name:"Buttons"},{icon:"Textbox",name:"Inputs"}],Y=["home","reviews","faqs","contact","product","ticket","login"],re={home:{path:"/",name:"home",icon:"HouseSimple",seo:{description:"",title:""},visibility:"public"},product:{path:"/product",name:"product",icon:"SquaresFour",seo:{description:"",title:""},visibility:"public"},faqs:{path:"/faqs",name:"faqs",icon:"SealQuestion",seo:{description:"",title:""},visibility:"public"},reviews:{path:"/reviews",name:"reviews",icon:"Star",seo:{description:"",title:""},visibility:"public"},contact:{path:"/contact",name:"contact",icon:"ChatCentered",seo:{description:"",title:""},visibility:"public"},ticket:{path:"/ticket",name:"ticket",icon:"Ticket",seo:{description:"",title:""},visibility:"public"},login:{path:"/login",name:"login",icon:"UserCircleGear",seo:{description:"",title:""},visibility:"public"}},ve=["Acorn","Activity","AddressBook","AddressBookTabs","AirTrafficControl","Airplane","AirplaneInFlight","AirplaneLanding","AirplaneTakeoff","AirplaneTaxiing","AirplaneTilt","Airplay","Alarm","Alien","AlignBottom","AlignBottomSimple","AlignCenterHorizontal","AlignCenterHorizontalSimple","AlignCenterVertical","AlignCenterVerticalSimple","AlignLeft","AlignLeftSimple","AlignRight","AlignRightSimple","AlignTop","AlignTopSimple","AmazonLogo","Ambulance","Anchor","AnchorSimple","AndroidLogo","Angle","AngularLogo","Aperture","AppStoreLogo","AppWindow","AppleLogo","ApplePodcastsLogo","ApproximateEquals","Archive","ArchiveBox","ArchiveTray","Armchair","ArrowArcLeft","ArrowArcRight","ArrowBendDoubleUpLeft","ArrowBendDoubleUpRight","ArrowBendDownLeft","ArrowBendDownRight","ArrowBendLeftDown","ArrowBendLeftUp","ArrowBendRightDown","ArrowBendRightUp","ArrowBendUpLeft","ArrowBendUpRight","ArrowCircleDown","ArrowCircleDownLeft","ArrowCircleDownRight","ArrowCircleLeft","ArrowCircleRight","ArrowCircleUp","ArrowCircleUpLeft","ArrowCircleUpRight","ArrowClockwise","ArrowCounterClockwise","ArrowDown","ArrowDownLeft","ArrowDownRight","ArrowElbowDownLeft","ArrowElbowDownRight","ArrowElbowLeft","ArrowElbowLeftDown","ArrowElbowLeftUp","ArrowElbowRight","ArrowElbowRightDown","ArrowElbowRightUp","ArrowElbowUpLeft","ArrowElbowUpRight","ArrowFatDown","ArrowFatLeft","ArrowFatLineDown","ArrowFatLineLeft","ArrowFatLineRight","ArrowFatLineUp","ArrowFatLinesDown","ArrowFatLinesLeft","ArrowFatLinesRight","ArrowFatLinesUp","ArrowFatRight","ArrowFatUp","ArrowLeft","ArrowLineDown","ArrowLineDownLeft","ArrowLineDownRight","ArrowLineLeft","ArrowLineRight","ArrowLineUp","ArrowLineUpLeft","ArrowLineUpRight","ArrowRight","ArrowSquareDown","ArrowSquareDownLeft","ArrowSquareDownRight","ArrowSquareIn","ArrowSquareLeft","ArrowSquareOut","ArrowSquareRight","ArrowSquareUp","ArrowSquareUpLeft","ArrowSquareUpRight","ArrowUDownLeft","ArrowUDownRight","ArrowULeftDown","ArrowULeftUp","ArrowURightDown","ArrowURightUp","ArrowUUpLeft","ArrowUUpRight","ArrowUp","ArrowUpLeft","ArrowUpRight","ArrowsClockwise","ArrowsCounterClockwise","ArrowsDownUp","ArrowsHorizontal","ArrowsIn","ArrowsInCardinal","ArrowsInLineHorizontal","ArrowsInLineVertical","ArrowsInSimple","ArrowsLeftRight","ArrowsMerge","ArrowsOut","ArrowsOutCardinal","ArrowsOutLineHorizontal","ArrowsOutLineVertical","ArrowsOutSimple","ArrowsSplit","ArrowsVertical","Article","ArticleMedium","ArticleNyTimes","Asclepius","Asterisk","AsteriskSimple","At","Atom","Avocado","Axe","Baby","BabyCarriage","Backpack","Backspace","Bag","BagSimple","Balloon","Bandaids","Bank","Barbell","Barcode","Barn","Barricade","Baseball","BaseballCap","BaseballHelmet","Basket","Basketball","Bathtub","BatteryCharging","BatteryChargingVertical","BatteryEmpty","BatteryFull","BatteryHigh","BatteryLow","BatteryMedium","BatteryPlus","BatteryPlusVertical","BatteryVerticalEmpty","BatteryVerticalFull","BatteryVerticalHigh","BatteryVerticalLow","BatteryVerticalMedium","BatteryWarning","BatteryWarningVertical","BeachBall","Beanie","Bed","BeerBottle","BeerStein","BehanceLogo","Bell","BellRinging","BellSimple","BellSimpleRinging","BellSimpleSlash","BellSimpleZ","BellSlash","BellZ","Belt","BezierCurve","Bicycle","Binary","Binoculars","Biohazard","Bird","Blueprint","Bluetooth","BluetoothConnected","BluetoothSlash","BluetoothX","Boat","Bomb","Bone","Book","BookBookmark","BookOpen","BookOpenText","BookOpenUser","Bookmark","BookmarkSimple","Bookmarks","BookmarksSimple","Books","Boot","Boules","BoundingBox","BowlFood","BowlSteam","BowlingBall","BoxArrowDown","BoxArrowUp","BoxingGlove","BracketsAngle","BracketsCurly","BracketsRound","BracketsSquare","Brain","Brandy","Bread","Bridge","Briefcase","BriefcaseMetal","Broadcast","Broom","Browser","Browsers","Bug","BugBeetle","BugDroid","Building","BuildingApartment","BuildingOffice","Buildings","Bulldozer","Bus","Butterfly","CableCar","Cactus","Caduceus","Cake","Calculator","Calendar","CalendarBlank","CalendarCheck","CalendarDot","CalendarDots","CalendarHeart","CalendarMinus","CalendarPlus","CalendarSlash","CalendarStar","CalendarX","CallBell","Camera","CameraPlus","CameraRotate","CameraSlash","Campfire","Car","CarBattery","CarProfile","CarSimple","Cardholder","Cards","CardsThree","CaretCircleDoubleDown","CaretCircleDoubleLeft","CaretCircleDoubleRight","CaretCircleDoubleUp","CaretCircleDown","CaretCircleLeft","CaretCircleRight","CaretCircleUp","CaretCircleUpDown","CaretDoubleDown","CaretDoubleLeft","CaretDoubleRight","CaretDoubleUp","CaretDown","CaretLeft","CaretLineDown","CaretLineLeft","CaretLineRight","CaretLineUp","CaretRight","CaretUp","CaretUpDown","Carrot","CashRegister","CassetteTape","CastleTurret","Cat","CellSignalFull","CellSignalHigh","CellSignalLow","CellSignalMedium","CellSignalNone","CellSignalSlash","CellSignalX","CellTower","Certificate","Chair","Chalkboard","ChalkboardSimple","ChalkboardTeacher","Champagne","ChargingStation","ChartBar","ChartBarHorizontal","ChartDonut","ChartLine","ChartLineDown","ChartLineUp","ChartPie","ChartPieSlice","ChartPolar","ChartScatter","Chat","ChatCentered","ChatCenteredDots","ChatCenteredSlash","ChatCenteredText","ChatCircle","ChatCircleDots","ChatCircleSlash","ChatCircleText","ChatDots","ChatSlash","ChatTeardrop","ChatTeardropDots","ChatTeardropSlash","ChatTeardropText","ChatText","Chats","ChatsCircle","ChatsTeardrop","Check","CheckCircle","CheckFat","CheckSquare","CheckSquareOffset","Checkerboard","Checks","Cheers","Cheese","ChefHat","Cherries","Church","Cigarette","CigaretteSlash","Circle","CircleDashed","CircleHalf","CircleHalfTilt","CircleNotch","CircleWavy","CircleWavyCheck","CircleWavyQuestion","CircleWavyWarning","CirclesFour","CirclesThree","CirclesThreePlus","Circuitry","City","Clipboard","ClipboardText","Clock","ClockAfternoon","ClockClockwise","ClockCountdown","ClockCounterClockwise","ClockUser","ClosedCaptioning","Cloud","CloudArrowDown","CloudArrowUp","CloudCheck","CloudFog","CloudLightning","CloudMoon","CloudRain","CloudSlash","CloudSnow","CloudSun","CloudWarning","CloudX","Clover","Club","CoatHanger","CodaLogo","Code","CodeBlock","CodeSimple","CodepenLogo","CodesandboxLogo","Coffee","CoffeeBean","Coin","CoinVertical","Coins","Columns","ColumnsPlusLeft","ColumnsPlusRight","Command","Compass","CompassRose","CompassTool","ComputerTower","Confetti","ContactlessPayment","Control","Cookie","CookingPot","Copy","CopySimple","Copyleft","Copyright","CornersIn","CornersOut","Couch","CourtBasketball","Cow","CowboyHat","Cpu","Crane","CraneTower","CreditCard","Cricket","Crop","Cross","Crosshair","CrosshairSimple","Crown","CrownCross","CrownSimple","Cube","CubeFocus","CubeTransparent","CurrencyBtc","CurrencyCircleDollar","CurrencyCny","CurrencyDollar","CurrencyDollarSimple","CurrencyEth","CurrencyEur","CurrencyGbp","CurrencyInr","CurrencyJpy","CurrencyKrw","CurrencyKzt","CurrencyNgn","CurrencyRub","Cursor","CursorClick","CursorText","Cylinder","Database","Desk","Desktop","DesktopTower","Detective","DevToLogo","DeviceMobile","DeviceMobileCamera","DeviceMobileSlash","DeviceMobileSpeaker","DeviceRotate","DeviceTablet","DeviceTabletCamera","DeviceTabletSpeaker","Devices","Diamond","DiamondsFour","DiceFive","DiceFour","DiceOne","DiceSix","DiceThree","DiceTwo","Disc","DiscoBall","DiscordLogo","Divide","Dna","Dog","Door","DoorOpen","Dot","DotOutline","DotsNine","DotsSix","DotsSixVertical","DotsThree","DotsThreeCircle","DotsThreeCircleVertical","DotsThreeOutline","DotsThreeOutlineVertical","DotsThreeVertical","Download","DownloadSimple","Dress","Dresser","DribbbleLogo","Drone","Drop","DropHalf","DropHalfBottom","DropSimple","DropSlash","DropboxLogo","Ear","EarSlash","Egg","EggCrack","Eject","EjectSimple","Elevator","Empty","Engine","Envelope","EnvelopeOpen","EnvelopeSimple","EnvelopeSimpleOpen","Equalizer","Equals","Eraser","EscalatorDown","EscalatorUp","Exam","ExclamationMark","Exclude","ExcludeSquare","Export","Eye","EyeClosed","EyeSlash","Eyedropper","EyedropperSample","Eyeglasses","Eyes","FaceMask","FacebookLogo","Factory","Faders","FadersHorizontal","FalloutShelter","Fan","Farm","FastForward","FastForwardCircle","Feather","FediverseLogo","FigmaLogo","File","FileArchive","FileArrowDown","FileArrowUp","FileAudio","FileC","FileCSharp","FileCloud","FileCode","FileCpp","FileCss","FileCsv","FileDashed","FileDoc","FileDotted","FileHtml","FileImage","FileIni","FileJpg","FileJs","FileJsx","FileLock","FileMagnifyingGlass","FileMd","FileMinus","FilePdf","FilePlus","FilePng","FilePpt","FilePy","FileRs","FileSearch","FileSql","FileSvg","FileText","FileTs","FileTsx","FileTxt","FileVideo","FileVue","FileX","FileXls","FileZip","Files","FilmReel","FilmScript","FilmSlate","FilmStrip","Fingerprint","FingerprintSimple","FinnTheHuman","Fire","FireExtinguisher","FireSimple","FireTruck","FirstAid","FirstAidKit","Fish","FishSimple","Flag","FlagBanner","FlagBannerFold","FlagCheckered","FlagPennant","Flame","Flashlight","Flask","FlipHorizontal","FlipVertical","FloppyDisk","FloppyDiskBack","FlowArrow","Flower","FlowerLotus","FlowerTulip","FlyingSaucer","Folder","FolderDashed","FolderDotted","FolderLock","FolderMinus","FolderNotch","FolderNotchMinus","FolderNotchOpen","FolderNotchPlus","FolderOpen","FolderPlus","FolderSimple","FolderSimpleDashed","FolderSimpleDotted","FolderSimpleLock","FolderSimpleMinus","FolderSimplePlus","FolderSimpleStar","FolderSimpleUser","FolderStar","FolderUser","Folders","Football","FootballHelmet","Footprints","ForkKnife","FourK","FrameCorners","FramerLogo","Function","Funnel","FunnelSimple","FunnelSimpleX","FunnelX","GameController","Garage","GasCan","GasPump","Gauge","Gavel","Gear","GearFine","GearSix","GenderFemale","GenderIntersex","GenderMale","GenderNeuter","GenderNonbinary","GenderTransgender","Ghost","Gif","Gift","GitBranch","GitCommit","GitDiff","GitFork","GitMerge","GitPullRequest","GithubLogo","GitlabLogo","GitlabLogoSimple","Globe","GlobeHemisphereEast","GlobeHemisphereWest","GlobeSimple","GlobeSimpleX","GlobeStand","GlobeX","Goggles","Golf","GoodreadsLogo","GoogleCardboardLogo","GoogleChromeLogo","GoogleDriveLogo","GoogleLogo","GooglePhotosLogo","GooglePlayLogo","GooglePodcastsLogo","Gps","GpsFix","GpsSlash","Gradient","GraduationCap","Grains","GrainsSlash","Graph","GraphicsCard","GreaterThan","GreaterThanOrEqual","GridFour","GridNine","Guitar","HairDryer","Hamburger","Hammer","Hand","HandArrowDown","HandArrowUp","HandCoins","HandDeposit","HandEye","HandFist","HandGrabbing","HandHeart","HandPalm","HandPeace","HandPointing","HandSoap","HandSwipeLeft","HandSwipeRight","HandTap","HandWaving","HandWithdraw","Handbag","HandbagSimple","HandsClapping","HandsPraying","Handshake","HardDrive","HardDrives","HardHat","Hash","HashStraight","HeadCircuit","Headlights","Headphones","Headset","Heart","HeartBreak","HeartHalf","HeartStraight","HeartStraightBreak","Heartbeat","Hexagon","HighDefinition","HighHeel","Highlighter","HighlighterCircle","Hockey","Hoodie","Horse","Hospital","Hourglass","HourglassHigh","HourglassLow","HourglassMedium","HourglassSimple","HourglassSimpleHigh","HourglassSimpleLow","HourglassSimpleMedium","House","HouseLine","HouseSimple","Hurricane","IceCream","IconBase","IconContext","IdentificationBadge","IdentificationCard","Image","ImageBroken","ImageSquare","Images","ImagesSquare","Infinity","Info","InstagramLogo","Intersect","IntersectSquare","IntersectThree","Intersection","Invoice","Island","Jar","JarLabel","Jeep","Joystick","Kanban","Key","KeyReturn","Keyboard","Keyhole","Knife","Ladder","LadderSimple","Lamp","LampPendant","Laptop","Lasso","LastfmLogo","Layout","Leaf","Lectern","Lego","LegoSmiley","Lemniscate","LessThan","LessThanOrEqual","LetterCircleH","LetterCircleP","LetterCircleV","Lifebuoy","Lightbulb","LightbulbFilament","Lighthouse","Lightning","LightningA","LightningSlash","LineSegment","LineSegments","LineVertical","Link","LinkBreak","LinkSimple","LinkSimpleBreak","LinkSimpleHorizontal","LinkSimpleHorizontalBreak","LinkedinLogo","LinktreeLogo","LinuxLogo","List","ListBullets","ListChecks","ListDashes","ListHeart","ListMagnifyingGlass","ListNumbers","ListPlus","ListStar","Lock","LockKey","LockKeyOpen","LockLaminated","LockLaminatedOpen","LockOpen","LockSimple","LockSimpleOpen","Lockers","Log","MagicWand","Magnet","MagnetStraight","MagnifyingGlass","MagnifyingGlassMinus","MagnifyingGlassPlus","Mailbox","MapPin","MapPinArea","MapPinLine","MapPinPlus","MapPinSimple","MapPinSimpleArea","MapPinSimpleLine","MapTrifold","MarkdownLogo","MarkerCircle","Martini","MaskHappy","MaskSad","MastodonLogo","MathOperations","MatrixLogo","Medal","MedalMilitary","MediumLogo","Megaphone","MegaphoneSimple","MemberOf","Memory","MessengerLogo","MetaLogo","Meteor","Metronome","Microphone","MicrophoneSlash","MicrophoneStage","Microscope","MicrosoftExcelLogo","MicrosoftOutlookLogo","MicrosoftPowerpointLogo","MicrosoftTeamsLogo","MicrosoftWordLogo","Minus","MinusCircle","MinusSquare","Money","MoneyWavy","Monitor","MonitorArrowUp","MonitorPlay","Moon","MoonStars","Moped","MopedFront","Mosque","Motorcycle","Mountains","Mouse","MouseLeftClick","MouseMiddleClick","MouseRightClick","MouseScroll","MouseSimple","MusicNote","MusicNoteSimple","MusicNotes","MusicNotesMinus","MusicNotesPlus","MusicNotesSimple","NavigationArrow","Needle","Network","NetworkSlash","NetworkX","Newspaper","NewspaperClipping","NotEquals","NotMemberOf","NotSubsetOf","NotSupersetOf","Notches","Note","NoteBlank","NotePencil","Notebook","Notepad","Notification","NotionLogo","NuclearPlant","NumberCircleEight","NumberCircleFive","NumberCircleFour","NumberCircleNine","NumberCircleOne","NumberCircleSeven","NumberCircleSix","NumberCircleThree","NumberCircleTwo","NumberCircleZero","NumberEight","NumberFive","NumberFour","NumberNine","NumberOne","NumberSeven","NumberSix","NumberSquareEight","NumberSquareFive","NumberSquareFour","NumberSquareNine","NumberSquareOne","NumberSquareSeven","NumberSquareSix","NumberSquareThree","NumberSquareTwo","NumberSquareZero","NumberThree","NumberTwo","NumberZero","Numpad","Nut","NyTimesLogo","Octagon","OfficeChair","Onigiri","OpenAiLogo","Option","Orange","OrangeSlice","Oven","Package","PaintBrush","PaintBrushBroad","PaintBrushHousehold","PaintBucket","PaintRoller","Palette","Panorama","Pants","PaperPlane","PaperPlaneRight","PaperPlaneTilt","Paperclip","PaperclipHorizontal","Parachute","Paragraph","Parallelogram","Park","Password","Path","PatreonLogo","Pause","PauseCircle","PawPrint","PaypalLogo","Peace","Pen","PenNib","PenNibStraight","Pencil","PencilCircle","PencilLine","PencilRuler","PencilSimple","PencilSimpleLine","PencilSimpleSlash","PencilSlash","Pentagon","Pentagram","Pepper","Percent","Person","PersonArmsSpread","PersonSimple","PersonSimpleBike","PersonSimpleCircle","PersonSimpleHike","PersonSimpleRun","PersonSimpleSki","PersonSimpleSnowboard","PersonSimpleSwim","PersonSimpleTaiChi","PersonSimpleThrow","PersonSimpleWalk","Perspective","Phone","PhoneCall","PhoneDisconnect","PhoneIncoming","PhoneList","PhoneOutgoing","PhonePause","PhonePlus","PhoneSlash","PhoneTransfer","PhoneX","PhosphorLogo","Pi","PianoKeys","PicnicTable","PictureInPicture","PiggyBank","Pill","PingPong","PintGlass","PinterestLogo","Pinwheel","Pipe","PipeWrench","PixLogo","Pizza","Placeholder","Planet","Plant","Play","PlayCircle","PlayPause","Playlist","Plug","PlugCharging","Plugs","PlugsConnected","Plus","PlusCircle","PlusMinus","PlusSquare","PokerChip","PoliceCar","Polygon","Popcorn","Popsicle","PottedPlant","Power","Prescription","Presentation","PresentationChart","Printer","Prohibit","ProhibitInset","ProjectorScreen","ProjectorScreenChart","Pulse","PushPin","PushPinSimple","PushPinSimpleSlash","PushPinSlash","PuzzlePiece","QrCode","Question","QuestionMark","Queue","Quotes","Rabbit","Racquet","Radical","Radio","RadioButton","Radioactive","Rainbow","RainbowCloud","Ranking","ReadCvLogo","Receipt","ReceiptX","Record","Rectangle","RectangleDashed","Recycle","RedditLogo","Repeat","RepeatOnce","ReplitLogo","Resize","Rewind","RewindCircle","RoadHorizon","Robot","Rocket","RocketLaunch","Rows","RowsPlusBottom","RowsPlusTop","Rss","RssSimple","Rug","Ruler","SSR","Sailboat","Scales","Scan","ScanSmiley","Scissors","Scooter","Screencast","Screwdriver","Scribble","ScribbleLoop","Scroll","Seal","SealCheck","SealPercent","SealQuestion","SealWarning","Seat","Seatbelt","SecurityCamera","Selection","SelectionAll","SelectionBackground","SelectionForeground","SelectionInverse","SelectionPlus","SelectionSlash","Shapes","Share","ShareFat","ShareNetwork","Shield","ShieldCheck","ShieldCheckered","ShieldChevron","ShieldPlus","ShieldSlash","ShieldStar","ShieldWarning","ShippingContainer","ShirtFolded","ShootingStar","ShoppingBag","ShoppingBagOpen","ShoppingCart","ShoppingCartSimple","Shovel","Shower","Shrimp","Shuffle","ShuffleAngular","ShuffleSimple","Sidebar","SidebarSimple","Sigma","SignIn","SignOut","Signature","Signpost","SimCard","Siren","SketchLogo","SkipBack","SkipBackCircle","SkipForward","SkipForwardCircle","Skull","SkypeLogo","SlackLogo","Sliders","SlidersHorizontal","Slideshow","Smiley","SmileyAngry","SmileyBlank","SmileyMeh","SmileyMelting","SmileyNervous","SmileySad","SmileySticker","SmileyWink","SmileyXEyes","SnapchatLogo","Sneaker","SneakerMove","Snowflake","SoccerBall","Sock","SolarPanel","SolarRoof","SortAscending","SortDescending","SoundcloudLogo","Spade","Sparkle","SpeakerHifi","SpeakerHigh","SpeakerLow","SpeakerNone","SpeakerSimpleHigh","SpeakerSimpleLow","SpeakerSimpleNone","SpeakerSimpleSlash","SpeakerSimpleX","SpeakerSlash","SpeakerX","Speedometer","Sphere","Spinner","SpinnerBall","SpinnerGap","Spiral","SplitHorizontal","SplitVertical","SpotifyLogo","SprayBottle","Square","SquareHalf","SquareHalfBottom","SquareLogo","SquareSplitHorizontal","SquareSplitVertical","SquaresFour","Stack","StackMinus","StackOverflowLogo","StackPlus","StackSimple","Stairs","Stamp","StandardDefinition","Star","StarAndCrescent","StarFour","StarHalf","StarOfDavid","SteamLogo","SteeringWheel","Steps","Stethoscope","Sticker","Stool","Stop","StopCircle","Storefront","Strategy","StripeLogo","Student","SubsetOf","SubsetProperOf","Subtitles","SubtitlesSlash","Subtract","SubtractSquare","Subway","Suitcase","SuitcaseRolling","SuitcaseSimple","Sun","SunDim","SunHorizon","Sunglasses","SupersetOf","SupersetProperOf","Swap","Swatches","SwimmingPool","Sword","Synagogue","Syringe","TShirt","Table","Tabs","Tag","TagChevron","TagSimple","Target","Taxi","TeaBag","TelegramLogo","Television","TelevisionSimple","TennisBall","Tent","Terminal","TerminalWindow","TestTube","TextAUnderline","TextAa","TextAlignCenter","TextAlignJustify","TextAlignLeft","TextAlignRight","TextB","TextBolder","TextColumns","TextH","TextHFive","TextHFour","TextHOne","TextHSix","TextHThree","TextHTwo","TextIndent","TextItalic","TextOutdent","TextStrikethrough","TextSubscript","TextSuperscript","TextT","TextTSlash","TextUnderline","Textbox","Thermometer","ThermometerCold","ThermometerHot","ThermometerSimple","ThreadsLogo","ThreeD","ThumbsDown","ThumbsUp","Ticket","TidalLogo","TiktokLogo","Tilde","Timer","TipJar","Tipi","Tire","ToggleLeft","ToggleRight","Toilet","ToiletPaper","Toolbox","Tooth","Tornado","Tote","ToteSimple","Towel","Tractor","Trademark","TrademarkRegistered","TrafficCone","TrafficSign","TrafficSignal","Train","TrainRegional","TrainSimple","Tram","Translate","Trash","TrashSimple","Tray","TrayArrowDown","TrayArrowUp","TreasureChest","Tree","TreeEvergreen","TreePalm","TreeStructure","TreeView","TrendDown","TrendUp","Triangle","TriangleDashed","Trolley","TrolleySuitcase","Trophy","Truck","TruckTrailer","TumblrLogo","TwitchLogo","TwitterLogo","Umbrella","UmbrellaSimple","Union","Unite","UniteSquare","Upload","UploadSimple","Usb","User","UserCheck","UserCircle","UserCircleCheck","UserCircleDashed","UserCircleGear","UserCircleMinus","UserCirclePlus","UserFocus","UserGear","UserList","UserMinus","UserPlus","UserRectangle","UserSound","UserSquare","UserSwitch","Users","UsersFour","UsersThree","Van","Vault","VectorThree","VectorTwo","Vibrate","Video","VideoCamera","VideoCameraSlash","VideoConference","Vignette","VinylRecord","VirtualReality","Virus","Visor","Voicemail","Volleyball","Wall","Wallet","Warehouse","Warning","WarningCircle","WarningDiamond","WarningOctagon","WashingMachine","Watch","WaveSawtooth","WaveSine","WaveSquare","WaveTriangle","Waveform","WaveformSlash","Waves","Webcam","WebcamSlash","WebhooksLogo","WechatLogo","WhatsappLogo","Wheelchair","WheelchairMotion","WifiHigh","WifiLow","WifiMedium","WifiNone","WifiSlash","WifiX","Wind","Windmill","WindowsLogo","Wine","Wrench","X","XCircle","XLogo","XSquare","Yarn","YinYang","YoutubeLogo"];function ke(){let t=new URLSearchParams(document.location.search);const s=t.get("shopId")||localStorage.getItem("shopId"),o=t.get("sellerAccessToken")||localStorage.getItem("sellerAccessToken"),n=t.get("draftId")||localStorage.getItem("draftId");return Le(),o&&localStorage.setItem("sellerAccessToken",o),s&&localStorage.setItem("shopId",s),n&&localStorage.setItem("draftId",n),!!(o&&s&&n)}const Re="_wrapper_1dfbs_1",Ee="_main_1dfbs_9",ye="_loading_1dfbs_13",ne={wrapper:Re,main:Ee,loading:ye},he=({render:t,block:s})=>t(s),ge=()=>{const{footer:t}=e.useLayersStore(),{settings:s}=e.useSettingsStore(),{pageContext:o}=e.usePagesStore();return t==null?void 0:t.renderBlock(s,o)},Se=()=>{const{header:t}=e.useLayersStore(),{settings:s}=e.useSettingsStore(),{pageContext:o}=e.usePagesStore();return t==null?void 0:t.renderBlock(s,o)},Be=({pagePath:t})=>{const{sourceBlocks:s}=e.useBlocksStore(),{pageContext:o}=e.usePagesStore(),[n,l]=g.useState(!0),[i,r]=g.useState(null),{setThemeSettings:a}=e.useThemeSettingsStore(),[u,S]=g.useState();g.useEffect(()=>{l(!0),(async()=>{const d=await e.getDynamicPage(encodeURIComponent(t));if(d){r(d.layout);const{settings:c,theme:b}=await e.getThemeAndSettings();a(b),S(c)}l(!1)})()},[]);const m=p=>{if(!p||!p.name)return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:"Block or block.name is undefined."});if(!s||!s[p.name])return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:`Block "${p.name}" does not exist in blocks.`});const d=new s[p.name];return p.value&&Object.assign(d,p.value),d.renderBlock(u,o)};return!n&&i===null?e.jsxRuntimeExports.jsx(Pe,{}):e.jsxRuntimeExports.jsxs("div",{className:ne.wrapper,children:[e.jsxRuntimeExports.jsx(Se,{}),!n&&i?e.jsxRuntimeExports.jsx("div",{className:ne.main,children:Object.keys(i).map(p=>e.jsxRuntimeExports.jsx(he,{block:i[p],render:m},p))}):e.jsxRuntimeExports.jsx("div",{className:ne.loading,children:e.jsxRuntimeExports.jsx(e.Loader,{})}),e.jsxRuntimeExports.jsx(ge,{})]})},Pe=()=>e.jsxRuntimeExports.jsx("div",{className:ne.notFound,children:"Page Not Found"});function Ae(){const t=e.useLocation();return e.jsxRuntimeExports.jsx(Be,{pagePath:t.pathname})}const Le=()=>{const t=new URL(window.location.href);window.history.replaceState(null,"",t.pathname+t.hash)},Te="_buttons_uu72s_1",Ne="_button_uu72s_1",Fe="_disabled_uu72s_17",X={buttons:Te,button:Ne,disabled:Fe},De=()=>{const{undo:t,redo:s,past:o,future:n}=e.useHistoryStore(),[l,i]=g.useState(!1),[r,a]=g.useState(!1);return g.useEffect(()=>{i(o.length===0)},[o]),g.useEffect(()=>{a(n.length===0)},[n]),e.jsxRuntimeExports.jsxs("div",{className:X.buttons,children:[e.jsxRuntimeExports.jsx("div",{className:e.clx(X.button,{[X.disabled]:l}),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUUpLeft",width:20,height:20,onClick:()=>{l||t()},fill:l?"#757575":"#252525"})}),e.jsxRuntimeExports.jsx("div",{className:e.clx(X.button,{[X.disabled]:r}),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUUpRight",width:20,height:20,onClick:()=>{r||s()},fill:r?"#757575":"#252525"})})]})},Ie="_devices_1b6y1_1",Me="_device_1b6y1_1",$e="_active_1b6y1_26",ie={devices:Ie,device:Me,active:$e},He=()=>{const{currentDevice:t,setCurrentDevice:s}=e.useDeviceStore();return e.jsxRuntimeExports.jsx("div",{className:ie.devices,children:_e.map(o=>e.jsxRuntimeExports.jsx("div",{className:e.clx(ie.device,{[ie.active]:t.value===o.value}),onClick:()=>s(o),children:e.jsxRuntimeExports.jsx(e.Icon,{name:o.icon,fill:t.value===o.value?"#252525":"#757575",width:20,height:20})},o.value))})},Oe="_header_2d8xd_1",Ue="_left_2d8xd_13",qe="_right_2d8xd_14",Z={header:Oe,left:Ue,right:qe},Ge="_preview_93shy_2",ze="_active_93shy_23",ae={preview:Ge,active:ze},We=()=>{const{onPreview:t,setOnPreview:s}=e.usePreviewStore();return e.jsxRuntimeExports.jsxs("div",{className:e.clx(ae.preview,{[ae.active]:t}),onClick:()=>s(!t),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUpRight",width:20,height:20}),e.jsxRuntimeExports.jsx("span",{className:ae.text,children:"Preview"})]})},Ve="_settings_u4cv4_1",Xe={settings:Ve},Qe="_pages_1mwe1_1",Ke="_text_1mwe1_17",Ye="_modal_1mwe1_23",Je="_page_1mwe1_1",Ze="_hoverable_1mwe1_49",et="_separator_1mwe1_53",tt="_button_1mwe1_57",st="_items_1mwe1_72",M={pages:Qe,default:"_default_1mwe1_5",text:Ke,modal:Ye,page:Je,hoverable:Ze,separator:et,button:tt,items:st},ot=()=>{const{currentPage:t,setCurrentPage:s,setIsOpenModal:o,pages:n,setIsEdit:l,setEditedPage:i,deletePage:r,isOpenSelectModal:a,setIsOpenSelectModal:u}=e.usePagesStore(),{deletePage:S}=e.useLayersStore(),[m,p]=g.useState("");return g.useEffect(()=>{const d=()=>{u(!1)};return document.body.addEventListener("click",d),()=>{document.body.removeEventListener("click",d)}},[]),e.jsxRuntimeExports.jsxs("div",{className:M.pages,children:[e.jsxRuntimeExports.jsxs("div",{className:M.default,onClick:d=>{d.stopPropagation(),u(!a)},children:[e.jsxRuntimeExports.jsx(e.Icon,{name:n&&n[t]&&n[t].icon||"File",fill:"#252525",width:20,height:20}),e.jsxRuntimeExports.jsx("span",{className:M.text,children:n&&n[t]&&Y.includes(n[t].name)?`${F(n[t].name)} page`:n&&n[t]&&n[t].name}),e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretDown",width:20,height:20})]}),a&&e.jsxRuntimeExports.jsxs("div",{className:M.modal,onClick:d=>d.stopPropagation(),children:[n&&e.jsxRuntimeExports.jsx("div",{className:M.items,children:Object.keys(n).map(d=>{const c=n[d];return e.jsxRuntimeExports.jsxs("div",{className:e.clx(M.page,{[M.hoverable]:m===d}),onMouseEnter:()=>p(d),onMouseLeave:()=>p(""),onClick:()=>{p(""),l(!1),s(d),u(!1)},children:[e.jsxRuntimeExports.jsx(e.Icon,{name:c.icon,fill:"#252525"}),e.jsxRuntimeExports.jsx("span",{className:M.text,children:Y.includes(c.name)?`${F(c.name)} page`:c.name}),m===d&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Gear",fill:"#757575",onClick:b=>{b.stopPropagation(),l(!0),i(d),o(!0)}}),!Y.includes(c.name)&&e.jsxRuntimeExports.jsx(e.Icon,{name:"Trash",fill:"#C12A2A",onClick:b=>{n[t].path===c.name&&s("/"),b.stopPropagation(),r(d),S(c.name),e.deletePage(c.path)}})]}),n[t]&&n[t].path===c.name&&e.jsxRuntimeExports.jsx(e.Icon,{name:"Check",fill:"#FF3F19"})]},d)})}),e.jsxRuntimeExports.jsx("div",{className:M.separator}),e.jsxRuntimeExports.jsxs(e.Button,{className:M.button,onClick:d=>{d.stopPropagation(),o(!0)},size:"l",children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Plus",fill:"#ff3f19"}),e.jsxRuntimeExports.jsx("span",{children:"Create Page Blank"})]})]})]})},nt="_zoom_1q1ud_1",rt={zoom:nt},it=()=>{const[t,s]=g.useState(),o=()=>{s(Number(Math.round(window.devicePixelRatio*50).toFixed(0)))};return g.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),e.jsxRuntimeExports.jsxs("div",{className:rt.zoom,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"MagnifyingGlassMinus",width:20,height:20}),e.jsxRuntimeExports.jsxs("span",{children:[t," %"]})]})},at=()=>e.jsxRuntimeExports.jsxs("div",{className:Xe.settings,children:[e.jsxRuntimeExports.jsx(ot,{}),e.jsxRuntimeExports.jsx(it,{})]}),lt="_theme_1jz2h_1",ct={theme:lt},ut=()=>e.jsxRuntimeExports.jsxs("div",{className:ct.theme,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Check",width:18,height:18}),e.jsxRuntimeExports.jsx("div",{children:"Current Theme"})]}),dt=()=>{const{themeSettings:t}=e.useThemeSettingsStore(),{settings:s}=e.useSettingsStore(),{isOpenSelectModal:o}=e.usePagesStore(),[n,l]=g.useState(null),[i,r]=g.useState(!1),{pages:a}=e.usePagesStore(),{blocks:u}=e.useLayersStore();function S(b,w){try{return w.map(C=>{if(!C.value||!C.value.blockSettings)throw new Error("block.value or block.value.blockSettings is undefined.");return Object.values(C.value.blockSettings).filter(B=>B&&B.type===b).map(B=>{if(!B.value)throw new Error("item.value is undefined.");return B.value}).flat()}).flat().map(C=>{if(!C.listingId)throw new Error("item.listingId is undefined.");return C.listingId})}catch(f){return console.error("Error in getValues function:",f),[]}}function m(b,w){return S(b,w).some(C=>C)}function p(b,w){const f=S(b,w);return Array.isArray(f)&&f.length>0?Math.max(...f):0}function d(b){if(a){const w=Object.keys(a).find(f=>a[f].name===b);if(w)return a[w]}return null}const c=()=>{if(i)n&&clearTimeout(n);else{const w=Object.keys(u).map(f=>{const C=d(f);return{name:C?C.name:f,path:(C==null?void 0:C.path)||f,layout:{...u[f]},neededProductIds:[...S("ProductId",Object.values(u[f]))],neededCategoryIds:[...S("CategoryId",Object.values(u[f]))],neededAnnouncementIds:[...S("AnnouncementId",Object.values(u[f]))],neededListingIds:[...S("listings",Object.values(u[f]))],neededFaqs:m("Faqs",Object.values(u[f])),neededReviewCount:p("ReviewCount",Object.values(u[f])),seo:{pageTitle:C&&C.seo&&C.seo.title?C.seo.title:"",pageDescription:C&&C.seo&&C.seo.description?C.seo.description:""}}});e.updateSettings("post","save",{themeSettings:t,settings:s,updatedPages:w})}r(!0);const b=setTimeout(()=>{r(!1)},2e3);l(b)};return e.jsxRuntimeExports.jsxs("div",{className:Z.header,style:{zIndex:o?5e4:50},children:[e.jsxRuntimeExports.jsxs("div",{className:Z.left,children:[e.jsxRuntimeExports.jsx(He,{}),e.jsxRuntimeExports.jsx(We,{})]}),e.jsxRuntimeExports.jsx("div",{className:Z.center,children:e.jsxRuntimeExports.jsx(at,{})}),e.jsxRuntimeExports.jsxs("div",{className:Z.right,children:[e.jsxRuntimeExports.jsx(ut,{}),e.jsxRuntimeExports.jsx(De,{}),e.jsxRuntimeExports.jsx(e.Button,{onClick:c,children:"Save"})]})]})},pt="_exit_1wk4t_1",mt="_text_1wk4t_11",ue={exit:pt,text:mt},xt=()=>e.jsxRuntimeExports.jsxs("a",{href:"https://dash.billgang.com/",className:ue.exit,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"SignOut",width:20,height:20}),e.jsxRuntimeExports.jsx("span",{className:ue.text,children:"Exit"})]}),ht="_navbar_14j8e_1",gt="_main_14j8e_6",St="_block_14j8e_13",jt="_active_14j8e_30",ee={navbar:ht,main:gt,block:St,active:jt},bt=()=>{const{activeBlock:t,setActiveBlock:s}=e.useNavbarStore(),{setActiveBlock:o}=e.useBlocksStore(),{setCurrentBlock:n}=e.useLayersStore(),{setActiveBlock:l}=e.useThemeSettingsStore();function i(r){o(null),s(r),n(null),l(null)}return e.jsxRuntimeExports.jsxs("div",{className:ee.navbar,children:[e.jsxRuntimeExports.jsx(xt,{}),e.jsxRuntimeExports.jsx("div",{className:ee.main,children:e.navbarBlocks.map(r=>e.jsxRuntimeExports.jsxs("div",{className:e.clx(ee.block,{[ee.active]:t.icon===r.icon}),onClick:()=>i(r),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:r.icon,fill:t.icon===r.icon?"#252525":"#757575"}),e.jsxRuntimeExports.jsx("span",{children:r.name})]},r.icon))})]})},Ct="_preview_1howr_1",ft="_main_1howr_14",_t="_content_1howr_25",wt="_loading_1howr_32",vt="_loader_1howr_42",kt="_spin_1howr_1",te={preview:Ct,main:ft,content:_t,loading:wt,loader:vt,spin:kt},Rt="_header_obebc_1",Et="_circles_obebc_16",yt="_circle_obebc_16",Bt="_red_obebc_33",Pt="_green_obebc_37",At="_yellow_obebc_41",Lt="_input_obebc_45",Tt="_main_obebc_56",Nt="_text_obebc_65",O={header:Rt,circles:Et,circle:yt,red:Bt,green:Pt,yellow:At,input:Lt,main:Tt,text:Nt},Ft="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",Dt=["red","yellow","green"],It=()=>e.jsxRuntimeExports.jsxs("div",{className:O.header,children:[e.jsxRuntimeExports.jsx("div",{className:O.circles,children:Dt.map(t=>e.jsxRuntimeExports.jsx("div",{className:e.clx(O.circle,{[O.red]:t==="red",[O.yellow]:t==="yellow",[O.green]:t==="green"})},t))}),e.jsxRuntimeExports.jsxs("div",{className:O.input,children:[e.jsxRuntimeExports.jsxs("div",{className:O.main,children:[e.jsxRuntimeExports.jsx("img",{src:Ft,alt:""}),e.jsxRuntimeExports.jsx("span",{className:O.text,children:"lorem.ipsum"}),e.jsxRuntimeExports.jsx(e.Icon,{name:"Lock",fill:"#757575",width:15,height:16})]}),e.jsxRuntimeExports.jsx(e.Icon,{name:"Copy",width:20,height:20})]})]}),Mt="_content_glpob_1",$t="_main_glpob_9",Ht="_block_glpob_13",Ot="_active_glpob_20",Ut="_name_glpob_24",qt="_empty_glpob_38",Gt="_icon_glpob_49",zt="_title_glpob_62",Wt="_text_glpob_68",Vt="_sections_glpob_74",Xt="_section_glpob_74",Q={content:Mt,main:$t,block:Ht,active:Ot,name:Ut,empty:qt,icon:Gt,title:zt,text:Wt,sections:Vt,section:Xt},Qt="_sidebar_1cz73_1",Kt="_content_1cz73_14",Yt="_button_1cz73_24",Jt="_moveButton_1cz73_34",Zt="_border_1cz73_38",es="_deleteButton_1cz73_42",L={sidebar:Qt,content:Kt,button:Yt,moveButton:Jt,border:Zt,deleteButton:es},ts=()=>{const{activeBlock:t}=e.usePreviewStore(),{blocks:s,removeBlock:o,moveBlock:n,duplicateBlock:l}=e.useLayersStore(),{currentPage:i,pages:r}=e.usePagesStore(),a=r&&r[i]?Object.keys(s[r[i].path]):[],u=a.indexOf(t),S=()=>{u>0&&r&&n(r[i].path,u,u-1)},m=()=>{u<a.length-1&&r&&n(r[i].path,u,u+1)},p=()=>{r&&l(r[i].path,t)};return e.jsxRuntimeExports.jsx("div",{className:L.sidebar,children:e.jsxRuntimeExports.jsxs("div",{className:L.content,children:[e.jsxRuntimeExports.jsx("button",{onClick:S,className:e.clx(L.button,L.moveButton),disabled:u===0,children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUp"})}),e.jsxRuntimeExports.jsx("button",{onClick:m,className:e.clx(L.button,L.moveButton),disabled:u===a.length-1,children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowDown"})}),e.jsxRuntimeExports.jsx("div",{className:L.border}),e.jsxRuntimeExports.jsx("button",{onClick:p,className:e.clx(L.button,L.moveButton),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Copy"})}),e.jsxRuntimeExports.jsx("div",{className:L.border}),e.jsxRuntimeExports.jsx("button",{onClick:()=>{r&&o(r[i].path,t)},className:e.clx(L.button,L.deleteButton),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Trash",hoverable:!0})})]})})},ss=g.memo(()=>{const{setActiveBlock:t,activeBlock:s}=e.usePreviewStore(),{blocks:o,sourceBlocks:n}=e.useBlocksStore(),{blocks:l}=e.useLayersStore(),{settings:i}=e.useSettingsStore(),{currentPage:r,pages:a,setIsOpenSelectModal:u,pageContext:S}=e.usePagesStore(),m=g.useRef(s);g.useEffect(()=>{m.current=s},[s]),g.useEffect(()=>{const c=()=>{m.current&&t(null)};return document.body.addEventListener("click",c),()=>{document.body.removeEventListener("click",c)}},[]);const p=c=>{if(!c||!c.name)return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:"Block or block.name is undefined."});if(!o||!o[c.name])return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:`Block "${c.name}" does not exist in blocks.`});const b=new o[c.name];return c.value&&Object.assign(b,c.value),b.renderBlock(i,S)};function d(c){if(!n||!n[c])return"unknown name";const b=new n[c];return!b.blockSettings||!b.blockSettings.displayName?"unknown name":b.blockSettings.displayName}return e.jsxRuntimeExports.jsxs("div",{onClick:c=>{c.stopPropagation(),u(!1)},className:Q.content,children:[e.jsxRuntimeExports.jsx(Se,{}),e.jsxRuntimeExports.jsx("div",{className:Q.main,children:a&&a[r]&&l[a[r].path]&&Object.keys(l[a[r].path]).map(c=>e.jsxRuntimeExports.jsxs("div",{onClick:()=>t(c),className:e.clx(Q.block,{[Q.active]:s===c}),children:[s===c&&e.jsxRuntimeExports.jsx("div",{className:Q.name,children:d(l[a[r].path][c].name)}),s===c&&d(l[a[r].path][c].name)!=="unknown name"&&e.jsxRuntimeExports.jsx(ts,{}),o&&e.jsxRuntimeExports.jsx(he,{render:p,block:l[a[r].path][c]})]},c))}),e.jsxRuntimeExports.jsx(ge,{})]})}),os="_results_12p5x_1",ns="_name_12p5x_8",rs="_product_12p5x_15",se={results:os,name:ns,product:rs},is="_search_186hm_1",as="_input_186hm_13",de={search:is,input:as},ls=()=>e.jsxRuntimeExports.jsxs("label",{className:de.search,children:[e.jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search for sections",className:de.input}),e.jsxRuntimeExports.jsx(e.Icon,{name:"MagnifyingGlass",fill:"#757575"})]}),je=()=>{const{blocks:t,sourceBlocks:s,setActiveBlock:o}=e.useBlocksStore(),{hideModal:n}=e.useSubmodalStore();function l(a){o(a),n()}function i(a){if(!s||!s[a])return"unknown name";const u=new s[a];return!u.blockSettings||!u.blockSettings.displayName?"unknown name":u.blockSettings.displayName}function r(a){if(s)return new s[a]().blockSettings.isAddable}return e.jsxRuntimeExports.jsxs("div",{className:se.add,children:[e.jsxRuntimeExports.jsx(ls,{}),e.jsxRuntimeExports.jsx("div",{className:se.results,children:t&&Object.keys(t).map(a=>{if(r(a))return e.jsxRuntimeExports.jsxs("div",{className:se.product,onClick:()=>l(a),children:[e.jsxRuntimeExports.jsx("span",{className:se.name,children:i(a)}),e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretRight"})]},a)})})]})},cs=()=>{const{modalPosition:t,color:s,initialColor:o,setShowModal:n,hue:l,saturation:i,brightness:r,dragging:a,setDragging:u,setHue:S,setSaturation:m,setBrightness:p,colorChange:d,setColor:c,update:b}=e.useColorPickerStore(),w=h=>{const{offsetX:_,offsetY:v}=h.nativeEvent;u(!0),B(_,v,h.currentTarget)},f=h=>{if(a){const _=document.querySelector(`.${e.styles.colorMap}`),{left:v,top:E}=_.getBoundingClientRect(),x=h.clientX-v,j=h.clientY-E;B(x,j,_)}},C=()=>{u(!1)},B=(h,_,v)=>{const{width:E,height:x}=v.getBoundingClientRect(),j=Math.max(0,Math.min(h/E*100,100)),I=Math.max(0,Math.min(100-_/x*100,100));m(j),p(I),k(j,I)},k=(h,_)=>{const v=R(l,h,_);d(v),c(v)},P=(h,_,v)=>{_/=100,v/=100;const E=J=>(J+h/60)%6,x=J=>v*(1-_*Math.max(0,Math.min(E(J),4-E(J),1))),j=Math.round(255*x(5)),I=Math.round(255*x(3)),fe=Math.round(255*x(1));return{r:j,g:I,b:fe}},y=(h,_,v)=>{const E=x=>x.toString(16).padStart(2,"0");return`#${E(h)}${E(_)}${E(v)}`},R=(h,_,v)=>{const{r:E,g:x,b:j}=P(h,_,v);return y(E,x,j)};g.useEffect(()=>{const h=v=>f(v),_=()=>C();return a?(document.addEventListener("mousemove",h),document.addEventListener("mouseup",_)):(document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",_)),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",_)}},[a]);function A(){b(s),n(!1)}function D(){n(!1),d(o)}return e.jsxRuntimeExports.jsxs("div",{className:e.styles.modal,onClick:h=>h.stopPropagation(),style:{top:`${t.top}px`,left:`${t.left}px`},children:[e.jsxRuntimeExports.jsx("div",{children:"Color"}),e.jsxRuntimeExports.jsx("div",{className:e.styles.colorMap,onMouseDown:w,style:{background:`
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./root-DViUor-X.cjs"),g=require("react"),F=t=>t?t.replace(/_/g," ").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" and "):"",_e=[{icon:"Desktop",value:"desktop"},{icon:"DeviceTabletCamera",value:"tablet"},{icon:"DeviceMobileCamera",value:"mobile"}],we=[{icon:"PaintBrushBroad",name:"Colors"},{icon:"TextAa",name:"Fonts"},{icon:"CornersOut",name:"Borders"},{icon:"ArrowSquareIn",name:"Buttons"},{icon:"Textbox",name:"Inputs"}],Y=["home","reviews","faqs","contact","product","ticket","login"],re={home:{path:"/",name:"home",icon:"HouseSimple",seo:{description:"",title:""},visibility:"public"},product:{path:"/product",name:"product",icon:"SquaresFour",seo:{description:"",title:""},visibility:"public"},faqs:{path:"/faqs",name:"faqs",icon:"SealQuestion",seo:{description:"",title:""},visibility:"public"},reviews:{path:"/reviews",name:"reviews",icon:"Star",seo:{description:"",title:""},visibility:"public"},contact:{path:"/contact",name:"contact",icon:"ChatCentered",seo:{description:"",title:""},visibility:"public"},ticket:{path:"/ticket",name:"ticket",icon:"Ticket",seo:{description:"",title:""},visibility:"public"},login:{path:"/login",name:"login",icon:"UserCircleGear",seo:{description:"",title:""},visibility:"public"}},ve=["Acorn","Activity","AddressBook","AddressBookTabs","AirTrafficControl","Airplane","AirplaneInFlight","AirplaneLanding","AirplaneTakeoff","AirplaneTaxiing","AirplaneTilt","Airplay","Alarm","Alien","AlignBottom","AlignBottomSimple","AlignCenterHorizontal","AlignCenterHorizontalSimple","AlignCenterVertical","AlignCenterVerticalSimple","AlignLeft","AlignLeftSimple","AlignRight","AlignRightSimple","AlignTop","AlignTopSimple","AmazonLogo","Ambulance","Anchor","AnchorSimple","AndroidLogo","Angle","AngularLogo","Aperture","AppStoreLogo","AppWindow","AppleLogo","ApplePodcastsLogo","ApproximateEquals","Archive","ArchiveBox","ArchiveTray","Armchair","ArrowArcLeft","ArrowArcRight","ArrowBendDoubleUpLeft","ArrowBendDoubleUpRight","ArrowBendDownLeft","ArrowBendDownRight","ArrowBendLeftDown","ArrowBendLeftUp","ArrowBendRightDown","ArrowBendRightUp","ArrowBendUpLeft","ArrowBendUpRight","ArrowCircleDown","ArrowCircleDownLeft","ArrowCircleDownRight","ArrowCircleLeft","ArrowCircleRight","ArrowCircleUp","ArrowCircleUpLeft","ArrowCircleUpRight","ArrowClockwise","ArrowCounterClockwise","ArrowDown","ArrowDownLeft","ArrowDownRight","ArrowElbowDownLeft","ArrowElbowDownRight","ArrowElbowLeft","ArrowElbowLeftDown","ArrowElbowLeftUp","ArrowElbowRight","ArrowElbowRightDown","ArrowElbowRightUp","ArrowElbowUpLeft","ArrowElbowUpRight","ArrowFatDown","ArrowFatLeft","ArrowFatLineDown","ArrowFatLineLeft","ArrowFatLineRight","ArrowFatLineUp","ArrowFatLinesDown","ArrowFatLinesLeft","ArrowFatLinesRight","ArrowFatLinesUp","ArrowFatRight","ArrowFatUp","ArrowLeft","ArrowLineDown","ArrowLineDownLeft","ArrowLineDownRight","ArrowLineLeft","ArrowLineRight","ArrowLineUp","ArrowLineUpLeft","ArrowLineUpRight","ArrowRight","ArrowSquareDown","ArrowSquareDownLeft","ArrowSquareDownRight","ArrowSquareIn","ArrowSquareLeft","ArrowSquareOut","ArrowSquareRight","ArrowSquareUp","ArrowSquareUpLeft","ArrowSquareUpRight","ArrowUDownLeft","ArrowUDownRight","ArrowULeftDown","ArrowULeftUp","ArrowURightDown","ArrowURightUp","ArrowUUpLeft","ArrowUUpRight","ArrowUp","ArrowUpLeft","ArrowUpRight","ArrowsClockwise","ArrowsCounterClockwise","ArrowsDownUp","ArrowsHorizontal","ArrowsIn","ArrowsInCardinal","ArrowsInLineHorizontal","ArrowsInLineVertical","ArrowsInSimple","ArrowsLeftRight","ArrowsMerge","ArrowsOut","ArrowsOutCardinal","ArrowsOutLineHorizontal","ArrowsOutLineVertical","ArrowsOutSimple","ArrowsSplit","ArrowsVertical","Article","ArticleMedium","ArticleNyTimes","Asclepius","Asterisk","AsteriskSimple","At","Atom","Avocado","Axe","Baby","BabyCarriage","Backpack","Backspace","Bag","BagSimple","Balloon","Bandaids","Bank","Barbell","Barcode","Barn","Barricade","Baseball","BaseballCap","BaseballHelmet","Basket","Basketball","Bathtub","BatteryCharging","BatteryChargingVertical","BatteryEmpty","BatteryFull","BatteryHigh","BatteryLow","BatteryMedium","BatteryPlus","BatteryPlusVertical","BatteryVerticalEmpty","BatteryVerticalFull","BatteryVerticalHigh","BatteryVerticalLow","BatteryVerticalMedium","BatteryWarning","BatteryWarningVertical","BeachBall","Beanie","Bed","BeerBottle","BeerStein","BehanceLogo","Bell","BellRinging","BellSimple","BellSimpleRinging","BellSimpleSlash","BellSimpleZ","BellSlash","BellZ","Belt","BezierCurve","Bicycle","Binary","Binoculars","Biohazard","Bird","Blueprint","Bluetooth","BluetoothConnected","BluetoothSlash","BluetoothX","Boat","Bomb","Bone","Book","BookBookmark","BookOpen","BookOpenText","BookOpenUser","Bookmark","BookmarkSimple","Bookmarks","BookmarksSimple","Books","Boot","Boules","BoundingBox","BowlFood","BowlSteam","BowlingBall","BoxArrowDown","BoxArrowUp","BoxingGlove","BracketsAngle","BracketsCurly","BracketsRound","BracketsSquare","Brain","Brandy","Bread","Bridge","Briefcase","BriefcaseMetal","Broadcast","Broom","Browser","Browsers","Bug","BugBeetle","BugDroid","Building","BuildingApartment","BuildingOffice","Buildings","Bulldozer","Bus","Butterfly","CableCar","Cactus","Caduceus","Cake","Calculator","Calendar","CalendarBlank","CalendarCheck","CalendarDot","CalendarDots","CalendarHeart","CalendarMinus","CalendarPlus","CalendarSlash","CalendarStar","CalendarX","CallBell","Camera","CameraPlus","CameraRotate","CameraSlash","Campfire","Car","CarBattery","CarProfile","CarSimple","Cardholder","Cards","CardsThree","CaretCircleDoubleDown","CaretCircleDoubleLeft","CaretCircleDoubleRight","CaretCircleDoubleUp","CaretCircleDown","CaretCircleLeft","CaretCircleRight","CaretCircleUp","CaretCircleUpDown","CaretDoubleDown","CaretDoubleLeft","CaretDoubleRight","CaretDoubleUp","CaretDown","CaretLeft","CaretLineDown","CaretLineLeft","CaretLineRight","CaretLineUp","CaretRight","CaretUp","CaretUpDown","Carrot","CashRegister","CassetteTape","CastleTurret","Cat","CellSignalFull","CellSignalHigh","CellSignalLow","CellSignalMedium","CellSignalNone","CellSignalSlash","CellSignalX","CellTower","Certificate","Chair","Chalkboard","ChalkboardSimple","ChalkboardTeacher","Champagne","ChargingStation","ChartBar","ChartBarHorizontal","ChartDonut","ChartLine","ChartLineDown","ChartLineUp","ChartPie","ChartPieSlice","ChartPolar","ChartScatter","Chat","ChatCentered","ChatCenteredDots","ChatCenteredSlash","ChatCenteredText","ChatCircle","ChatCircleDots","ChatCircleSlash","ChatCircleText","ChatDots","ChatSlash","ChatTeardrop","ChatTeardropDots","ChatTeardropSlash","ChatTeardropText","ChatText","Chats","ChatsCircle","ChatsTeardrop","Check","CheckCircle","CheckFat","CheckSquare","CheckSquareOffset","Checkerboard","Checks","Cheers","Cheese","ChefHat","Cherries","Church","Cigarette","CigaretteSlash","Circle","CircleDashed","CircleHalf","CircleHalfTilt","CircleNotch","CircleWavy","CircleWavyCheck","CircleWavyQuestion","CircleWavyWarning","CirclesFour","CirclesThree","CirclesThreePlus","Circuitry","City","Clipboard","ClipboardText","Clock","ClockAfternoon","ClockClockwise","ClockCountdown","ClockCounterClockwise","ClockUser","ClosedCaptioning","Cloud","CloudArrowDown","CloudArrowUp","CloudCheck","CloudFog","CloudLightning","CloudMoon","CloudRain","CloudSlash","CloudSnow","CloudSun","CloudWarning","CloudX","Clover","Club","CoatHanger","CodaLogo","Code","CodeBlock","CodeSimple","CodepenLogo","CodesandboxLogo","Coffee","CoffeeBean","Coin","CoinVertical","Coins","Columns","ColumnsPlusLeft","ColumnsPlusRight","Command","Compass","CompassRose","CompassTool","ComputerTower","Confetti","ContactlessPayment","Control","Cookie","CookingPot","Copy","CopySimple","Copyleft","Copyright","CornersIn","CornersOut","Couch","CourtBasketball","Cow","CowboyHat","Cpu","Crane","CraneTower","CreditCard","Cricket","Crop","Cross","Crosshair","CrosshairSimple","Crown","CrownCross","CrownSimple","Cube","CubeFocus","CubeTransparent","CurrencyBtc","CurrencyCircleDollar","CurrencyCny","CurrencyDollar","CurrencyDollarSimple","CurrencyEth","CurrencyEur","CurrencyGbp","CurrencyInr","CurrencyJpy","CurrencyKrw","CurrencyKzt","CurrencyNgn","CurrencyRub","Cursor","CursorClick","CursorText","Cylinder","Database","Desk","Desktop","DesktopTower","Detective","DevToLogo","DeviceMobile","DeviceMobileCamera","DeviceMobileSlash","DeviceMobileSpeaker","DeviceRotate","DeviceTablet","DeviceTabletCamera","DeviceTabletSpeaker","Devices","Diamond","DiamondsFour","DiceFive","DiceFour","DiceOne","DiceSix","DiceThree","DiceTwo","Disc","DiscoBall","DiscordLogo","Divide","Dna","Dog","Door","DoorOpen","Dot","DotOutline","DotsNine","DotsSix","DotsSixVertical","DotsThree","DotsThreeCircle","DotsThreeCircleVertical","DotsThreeOutline","DotsThreeOutlineVertical","DotsThreeVertical","Download","DownloadSimple","Dress","Dresser","DribbbleLogo","Drone","Drop","DropHalf","DropHalfBottom","DropSimple","DropSlash","DropboxLogo","Ear","EarSlash","Egg","EggCrack","Eject","EjectSimple","Elevator","Empty","Engine","Envelope","EnvelopeOpen","EnvelopeSimple","EnvelopeSimpleOpen","Equalizer","Equals","Eraser","EscalatorDown","EscalatorUp","Exam","ExclamationMark","Exclude","ExcludeSquare","Export","Eye","EyeClosed","EyeSlash","Eyedropper","EyedropperSample","Eyeglasses","Eyes","FaceMask","FacebookLogo","Factory","Faders","FadersHorizontal","FalloutShelter","Fan","Farm","FastForward","FastForwardCircle","Feather","FediverseLogo","FigmaLogo","File","FileArchive","FileArrowDown","FileArrowUp","FileAudio","FileC","FileCSharp","FileCloud","FileCode","FileCpp","FileCss","FileCsv","FileDashed","FileDoc","FileDotted","FileHtml","FileImage","FileIni","FileJpg","FileJs","FileJsx","FileLock","FileMagnifyingGlass","FileMd","FileMinus","FilePdf","FilePlus","FilePng","FilePpt","FilePy","FileRs","FileSearch","FileSql","FileSvg","FileText","FileTs","FileTsx","FileTxt","FileVideo","FileVue","FileX","FileXls","FileZip","Files","FilmReel","FilmScript","FilmSlate","FilmStrip","Fingerprint","FingerprintSimple","FinnTheHuman","Fire","FireExtinguisher","FireSimple","FireTruck","FirstAid","FirstAidKit","Fish","FishSimple","Flag","FlagBanner","FlagBannerFold","FlagCheckered","FlagPennant","Flame","Flashlight","Flask","FlipHorizontal","FlipVertical","FloppyDisk","FloppyDiskBack","FlowArrow","Flower","FlowerLotus","FlowerTulip","FlyingSaucer","Folder","FolderDashed","FolderDotted","FolderLock","FolderMinus","FolderNotch","FolderNotchMinus","FolderNotchOpen","FolderNotchPlus","FolderOpen","FolderPlus","FolderSimple","FolderSimpleDashed","FolderSimpleDotted","FolderSimpleLock","FolderSimpleMinus","FolderSimplePlus","FolderSimpleStar","FolderSimpleUser","FolderStar","FolderUser","Folders","Football","FootballHelmet","Footprints","ForkKnife","FourK","FrameCorners","FramerLogo","Function","Funnel","FunnelSimple","FunnelSimpleX","FunnelX","GameController","Garage","GasCan","GasPump","Gauge","Gavel","Gear","GearFine","GearSix","GenderFemale","GenderIntersex","GenderMale","GenderNeuter","GenderNonbinary","GenderTransgender","Ghost","Gif","Gift","GitBranch","GitCommit","GitDiff","GitFork","GitMerge","GitPullRequest","GithubLogo","GitlabLogo","GitlabLogoSimple","Globe","GlobeHemisphereEast","GlobeHemisphereWest","GlobeSimple","GlobeSimpleX","GlobeStand","GlobeX","Goggles","Golf","GoodreadsLogo","GoogleCardboardLogo","GoogleChromeLogo","GoogleDriveLogo","GoogleLogo","GooglePhotosLogo","GooglePlayLogo","GooglePodcastsLogo","Gps","GpsFix","GpsSlash","Gradient","GraduationCap","Grains","GrainsSlash","Graph","GraphicsCard","GreaterThan","GreaterThanOrEqual","GridFour","GridNine","Guitar","HairDryer","Hamburger","Hammer","Hand","HandArrowDown","HandArrowUp","HandCoins","HandDeposit","HandEye","HandFist","HandGrabbing","HandHeart","HandPalm","HandPeace","HandPointing","HandSoap","HandSwipeLeft","HandSwipeRight","HandTap","HandWaving","HandWithdraw","Handbag","HandbagSimple","HandsClapping","HandsPraying","Handshake","HardDrive","HardDrives","HardHat","Hash","HashStraight","HeadCircuit","Headlights","Headphones","Headset","Heart","HeartBreak","HeartHalf","HeartStraight","HeartStraightBreak","Heartbeat","Hexagon","HighDefinition","HighHeel","Highlighter","HighlighterCircle","Hockey","Hoodie","Horse","Hospital","Hourglass","HourglassHigh","HourglassLow","HourglassMedium","HourglassSimple","HourglassSimpleHigh","HourglassSimpleLow","HourglassSimpleMedium","House","HouseLine","HouseSimple","Hurricane","IceCream","IconBase","IconContext","IdentificationBadge","IdentificationCard","Image","ImageBroken","ImageSquare","Images","ImagesSquare","Infinity","Info","InstagramLogo","Intersect","IntersectSquare","IntersectThree","Intersection","Invoice","Island","Jar","JarLabel","Jeep","Joystick","Kanban","Key","KeyReturn","Keyboard","Keyhole","Knife","Ladder","LadderSimple","Lamp","LampPendant","Laptop","Lasso","LastfmLogo","Layout","Leaf","Lectern","Lego","LegoSmiley","Lemniscate","LessThan","LessThanOrEqual","LetterCircleH","LetterCircleP","LetterCircleV","Lifebuoy","Lightbulb","LightbulbFilament","Lighthouse","Lightning","LightningA","LightningSlash","LineSegment","LineSegments","LineVertical","Link","LinkBreak","LinkSimple","LinkSimpleBreak","LinkSimpleHorizontal","LinkSimpleHorizontalBreak","LinkedinLogo","LinktreeLogo","LinuxLogo","List","ListBullets","ListChecks","ListDashes","ListHeart","ListMagnifyingGlass","ListNumbers","ListPlus","ListStar","Lock","LockKey","LockKeyOpen","LockLaminated","LockLaminatedOpen","LockOpen","LockSimple","LockSimpleOpen","Lockers","Log","MagicWand","Magnet","MagnetStraight","MagnifyingGlass","MagnifyingGlassMinus","MagnifyingGlassPlus","Mailbox","MapPin","MapPinArea","MapPinLine","MapPinPlus","MapPinSimple","MapPinSimpleArea","MapPinSimpleLine","MapTrifold","MarkdownLogo","MarkerCircle","Martini","MaskHappy","MaskSad","MastodonLogo","MathOperations","MatrixLogo","Medal","MedalMilitary","MediumLogo","Megaphone","MegaphoneSimple","MemberOf","Memory","MessengerLogo","MetaLogo","Meteor","Metronome","Microphone","MicrophoneSlash","MicrophoneStage","Microscope","MicrosoftExcelLogo","MicrosoftOutlookLogo","MicrosoftPowerpointLogo","MicrosoftTeamsLogo","MicrosoftWordLogo","Minus","MinusCircle","MinusSquare","Money","MoneyWavy","Monitor","MonitorArrowUp","MonitorPlay","Moon","MoonStars","Moped","MopedFront","Mosque","Motorcycle","Mountains","Mouse","MouseLeftClick","MouseMiddleClick","MouseRightClick","MouseScroll","MouseSimple","MusicNote","MusicNoteSimple","MusicNotes","MusicNotesMinus","MusicNotesPlus","MusicNotesSimple","NavigationArrow","Needle","Network","NetworkSlash","NetworkX","Newspaper","NewspaperClipping","NotEquals","NotMemberOf","NotSubsetOf","NotSupersetOf","Notches","Note","NoteBlank","NotePencil","Notebook","Notepad","Notification","NotionLogo","NuclearPlant","NumberCircleEight","NumberCircleFive","NumberCircleFour","NumberCircleNine","NumberCircleOne","NumberCircleSeven","NumberCircleSix","NumberCircleThree","NumberCircleTwo","NumberCircleZero","NumberEight","NumberFive","NumberFour","NumberNine","NumberOne","NumberSeven","NumberSix","NumberSquareEight","NumberSquareFive","NumberSquareFour","NumberSquareNine","NumberSquareOne","NumberSquareSeven","NumberSquareSix","NumberSquareThree","NumberSquareTwo","NumberSquareZero","NumberThree","NumberTwo","NumberZero","Numpad","Nut","NyTimesLogo","Octagon","OfficeChair","Onigiri","OpenAiLogo","Option","Orange","OrangeSlice","Oven","Package","PaintBrush","PaintBrushBroad","PaintBrushHousehold","PaintBucket","PaintRoller","Palette","Panorama","Pants","PaperPlane","PaperPlaneRight","PaperPlaneTilt","Paperclip","PaperclipHorizontal","Parachute","Paragraph","Parallelogram","Park","Password","Path","PatreonLogo","Pause","PauseCircle","PawPrint","PaypalLogo","Peace","Pen","PenNib","PenNibStraight","Pencil","PencilCircle","PencilLine","PencilRuler","PencilSimple","PencilSimpleLine","PencilSimpleSlash","PencilSlash","Pentagon","Pentagram","Pepper","Percent","Person","PersonArmsSpread","PersonSimple","PersonSimpleBike","PersonSimpleCircle","PersonSimpleHike","PersonSimpleRun","PersonSimpleSki","PersonSimpleSnowboard","PersonSimpleSwim","PersonSimpleTaiChi","PersonSimpleThrow","PersonSimpleWalk","Perspective","Phone","PhoneCall","PhoneDisconnect","PhoneIncoming","PhoneList","PhoneOutgoing","PhonePause","PhonePlus","PhoneSlash","PhoneTransfer","PhoneX","PhosphorLogo","Pi","PianoKeys","PicnicTable","PictureInPicture","PiggyBank","Pill","PingPong","PintGlass","PinterestLogo","Pinwheel","Pipe","PipeWrench","PixLogo","Pizza","Placeholder","Planet","Plant","Play","PlayCircle","PlayPause","Playlist","Plug","PlugCharging","Plugs","PlugsConnected","Plus","PlusCircle","PlusMinus","PlusSquare","PokerChip","PoliceCar","Polygon","Popcorn","Popsicle","PottedPlant","Power","Prescription","Presentation","PresentationChart","Printer","Prohibit","ProhibitInset","ProjectorScreen","ProjectorScreenChart","Pulse","PushPin","PushPinSimple","PushPinSimpleSlash","PushPinSlash","PuzzlePiece","QrCode","Question","QuestionMark","Queue","Quotes","Rabbit","Racquet","Radical","Radio","RadioButton","Radioactive","Rainbow","RainbowCloud","Ranking","ReadCvLogo","Receipt","ReceiptX","Record","Rectangle","RectangleDashed","Recycle","RedditLogo","Repeat","RepeatOnce","ReplitLogo","Resize","Rewind","RewindCircle","RoadHorizon","Robot","Rocket","RocketLaunch","Rows","RowsPlusBottom","RowsPlusTop","Rss","RssSimple","Rug","Ruler","SSR","Sailboat","Scales","Scan","ScanSmiley","Scissors","Scooter","Screencast","Screwdriver","Scribble","ScribbleLoop","Scroll","Seal","SealCheck","SealPercent","SealQuestion","SealWarning","Seat","Seatbelt","SecurityCamera","Selection","SelectionAll","SelectionBackground","SelectionForeground","SelectionInverse","SelectionPlus","SelectionSlash","Shapes","Share","ShareFat","ShareNetwork","Shield","ShieldCheck","ShieldCheckered","ShieldChevron","ShieldPlus","ShieldSlash","ShieldStar","ShieldWarning","ShippingContainer","ShirtFolded","ShootingStar","ShoppingBag","ShoppingBagOpen","ShoppingCart","ShoppingCartSimple","Shovel","Shower","Shrimp","Shuffle","ShuffleAngular","ShuffleSimple","Sidebar","SidebarSimple","Sigma","SignIn","SignOut","Signature","Signpost","SimCard","Siren","SketchLogo","SkipBack","SkipBackCircle","SkipForward","SkipForwardCircle","Skull","SkypeLogo","SlackLogo","Sliders","SlidersHorizontal","Slideshow","Smiley","SmileyAngry","SmileyBlank","SmileyMeh","SmileyMelting","SmileyNervous","SmileySad","SmileySticker","SmileyWink","SmileyXEyes","SnapchatLogo","Sneaker","SneakerMove","Snowflake","SoccerBall","Sock","SolarPanel","SolarRoof","SortAscending","SortDescending","SoundcloudLogo","Spade","Sparkle","SpeakerHifi","SpeakerHigh","SpeakerLow","SpeakerNone","SpeakerSimpleHigh","SpeakerSimpleLow","SpeakerSimpleNone","SpeakerSimpleSlash","SpeakerSimpleX","SpeakerSlash","SpeakerX","Speedometer","Sphere","Spinner","SpinnerBall","SpinnerGap","Spiral","SplitHorizontal","SplitVertical","SpotifyLogo","SprayBottle","Square","SquareHalf","SquareHalfBottom","SquareLogo","SquareSplitHorizontal","SquareSplitVertical","SquaresFour","Stack","StackMinus","StackOverflowLogo","StackPlus","StackSimple","Stairs","Stamp","StandardDefinition","Star","StarAndCrescent","StarFour","StarHalf","StarOfDavid","SteamLogo","SteeringWheel","Steps","Stethoscope","Sticker","Stool","Stop","StopCircle","Storefront","Strategy","StripeLogo","Student","SubsetOf","SubsetProperOf","Subtitles","SubtitlesSlash","Subtract","SubtractSquare","Subway","Suitcase","SuitcaseRolling","SuitcaseSimple","Sun","SunDim","SunHorizon","Sunglasses","SupersetOf","SupersetProperOf","Swap","Swatches","SwimmingPool","Sword","Synagogue","Syringe","TShirt","Table","Tabs","Tag","TagChevron","TagSimple","Target","Taxi","TeaBag","TelegramLogo","Television","TelevisionSimple","TennisBall","Tent","Terminal","TerminalWindow","TestTube","TextAUnderline","TextAa","TextAlignCenter","TextAlignJustify","TextAlignLeft","TextAlignRight","TextB","TextBolder","TextColumns","TextH","TextHFive","TextHFour","TextHOne","TextHSix","TextHThree","TextHTwo","TextIndent","TextItalic","TextOutdent","TextStrikethrough","TextSubscript","TextSuperscript","TextT","TextTSlash","TextUnderline","Textbox","Thermometer","ThermometerCold","ThermometerHot","ThermometerSimple","ThreadsLogo","ThreeD","ThumbsDown","ThumbsUp","Ticket","TidalLogo","TiktokLogo","Tilde","Timer","TipJar","Tipi","Tire","ToggleLeft","ToggleRight","Toilet","ToiletPaper","Toolbox","Tooth","Tornado","Tote","ToteSimple","Towel","Tractor","Trademark","TrademarkRegistered","TrafficCone","TrafficSign","TrafficSignal","Train","TrainRegional","TrainSimple","Tram","Translate","Trash","TrashSimple","Tray","TrayArrowDown","TrayArrowUp","TreasureChest","Tree","TreeEvergreen","TreePalm","TreeStructure","TreeView","TrendDown","TrendUp","Triangle","TriangleDashed","Trolley","TrolleySuitcase","Trophy","Truck","TruckTrailer","TumblrLogo","TwitchLogo","TwitterLogo","Umbrella","UmbrellaSimple","Union","Unite","UniteSquare","Upload","UploadSimple","Usb","User","UserCheck","UserCircle","UserCircleCheck","UserCircleDashed","UserCircleGear","UserCircleMinus","UserCirclePlus","UserFocus","UserGear","UserList","UserMinus","UserPlus","UserRectangle","UserSound","UserSquare","UserSwitch","Users","UsersFour","UsersThree","Van","Vault","VectorThree","VectorTwo","Vibrate","Video","VideoCamera","VideoCameraSlash","VideoConference","Vignette","VinylRecord","VirtualReality","Virus","Visor","Voicemail","Volleyball","Wall","Wallet","Warehouse","Warning","WarningCircle","WarningDiamond","WarningOctagon","WashingMachine","Watch","WaveSawtooth","WaveSine","WaveSquare","WaveTriangle","Waveform","WaveformSlash","Waves","Webcam","WebcamSlash","WebhooksLogo","WechatLogo","WhatsappLogo","Wheelchair","WheelchairMotion","WifiHigh","WifiLow","WifiMedium","WifiNone","WifiSlash","WifiX","Wind","Windmill","WindowsLogo","Wine","Wrench","X","XCircle","XLogo","XSquare","Yarn","YinYang","YoutubeLogo"];function ke(){let t=new URLSearchParams(document.location.search);const s=t.get("shopId")||localStorage.getItem("shopId"),o=t.get("sellerAccessToken")||localStorage.getItem("sellerAccessToken"),n=t.get("draftId")||localStorage.getItem("draftId");return Le(),o&&localStorage.setItem("sellerAccessToken",o),s&&localStorage.setItem("shopId",s),n&&localStorage.setItem("draftId",n),!!(o&&s&&n)}const Re="_wrapper_1dfbs_1",Ee="_main_1dfbs_9",ye="_loading_1dfbs_13",ne={wrapper:Re,main:Ee,loading:ye},he=({render:t,block:s})=>t(s),ge=()=>{const{footer:t}=e.useLayersStore(),{settings:s}=e.useSettingsStore(),{pageContext:o}=e.usePagesStore();return t==null?void 0:t.renderBlock(s,o)},Se=()=>{const{header:t}=e.useLayersStore(),{settings:s}=e.useSettingsStore(),{pageContext:o}=e.usePagesStore();return t==null?void 0:t.renderBlock(s,o)},Be=({pagePath:t})=>{const{sourceBlocks:s}=e.useBlocksStore(),{pageContext:o}=e.usePagesStore(),[n,l]=g.useState(!0),[i,r]=g.useState(null),{setThemeSettings:a}=e.useThemeSettingsStore(),[u,S]=g.useState();g.useEffect(()=>{l(!0),(async()=>{const d=await e.getDynamicPage(encodeURIComponent(t));if(d){r(d.layout);const{settings:c,theme:b}=await e.getThemeAndSettings();a(b),S(c)}l(!1)})()},[]);const m=p=>{if(!p||!p.name)return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:"Block or block.name is undefined."});if(!s||!s[p.name])return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:`Block "${p.name}" does not exist in blocks.`});const d=new s[p.name];return p.value&&Object.assign(d,p.value),d.renderBlock(u,o)};return!n&&i===null?e.jsxRuntimeExports.jsx(Pe,{}):e.jsxRuntimeExports.jsxs("div",{className:ne.wrapper,children:[e.jsxRuntimeExports.jsx(Se,{}),!n&&i?e.jsxRuntimeExports.jsx("div",{className:ne.main,children:Object.keys(i).map(p=>e.jsxRuntimeExports.jsx(he,{block:i[p],render:m},p))}):e.jsxRuntimeExports.jsx("div",{className:ne.loading,children:e.jsxRuntimeExports.jsx(e.Loader,{})}),e.jsxRuntimeExports.jsx(ge,{})]})},Pe=()=>e.jsxRuntimeExports.jsx("div",{className:ne.notFound,children:"Page Not Found"});function Ae(){const t=e.useLocation();return e.jsxRuntimeExports.jsx(Be,{pagePath:t.pathname})}const Le=()=>{const t=new URL(window.location.href);window.history.replaceState(null,"",t.pathname+t.hash)},Te="_buttons_uu72s_1",Ne="_button_uu72s_1",Fe="_disabled_uu72s_17",X={buttons:Te,button:Ne,disabled:Fe},De=()=>{const{undo:t,redo:s,past:o,future:n}=e.useHistoryStore(),[l,i]=g.useState(!1),[r,a]=g.useState(!1);return g.useEffect(()=>{i(o.length===0)},[o]),g.useEffect(()=>{a(n.length===0)},[n]),e.jsxRuntimeExports.jsxs("div",{className:X.buttons,children:[e.jsxRuntimeExports.jsx("div",{className:e.clx(X.button,{[X.disabled]:l}),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUUpLeft",width:20,height:20,onClick:()=>{l||t()},fill:l?"#757575":"#252525"})}),e.jsxRuntimeExports.jsx("div",{className:e.clx(X.button,{[X.disabled]:r}),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUUpRight",width:20,height:20,onClick:()=>{r||s()},fill:r?"#757575":"#252525"})})]})},Ie="_devices_1b6y1_1",Me="_device_1b6y1_1",$e="_active_1b6y1_26",ie={devices:Ie,device:Me,active:$e},He=()=>{const{currentDevice:t,setCurrentDevice:s}=e.useDeviceStore();return e.jsxRuntimeExports.jsx("div",{className:ie.devices,children:_e.map(o=>e.jsxRuntimeExports.jsx("div",{className:e.clx(ie.device,{[ie.active]:t.value===o.value}),onClick:()=>s(o),children:e.jsxRuntimeExports.jsx(e.Icon,{name:o.icon,fill:t.value===o.value?"#252525":"#757575",width:20,height:20})},o.value))})},Oe="_header_2d8xd_1",Ue="_left_2d8xd_13",qe="_right_2d8xd_14",Z={header:Oe,left:Ue,right:qe},Ge="_preview_93shy_2",ze="_active_93shy_23",ae={preview:Ge,active:ze},We=()=>{const{onPreview:t,setOnPreview:s}=e.usePreviewStore();return e.jsxRuntimeExports.jsxs("div",{className:e.clx(ae.preview,{[ae.active]:t}),onClick:()=>s(!t),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUpRight",width:20,height:20}),e.jsxRuntimeExports.jsx("span",{className:ae.text,children:"Preview"})]})},Ve="_settings_u4cv4_1",Xe={settings:Ve},Qe="_pages_1mwe1_1",Ke="_text_1mwe1_17",Ye="_modal_1mwe1_23",Je="_page_1mwe1_1",Ze="_hoverable_1mwe1_49",et="_separator_1mwe1_53",tt="_button_1mwe1_57",st="_items_1mwe1_72",M={pages:Qe,default:"_default_1mwe1_5",text:Ke,modal:Ye,page:Je,hoverable:Ze,separator:et,button:tt,items:st},ot=()=>{const{currentPage:t,setCurrentPage:s,setIsOpenModal:o,pages:n,setIsEdit:l,setEditedPage:i,deletePage:r,isOpenSelectModal:a,setIsOpenSelectModal:u}=e.usePagesStore(),{deletePage:S}=e.useLayersStore(),[m,p]=g.useState("");return g.useEffect(()=>{const d=()=>{u(!1)};return document.body.addEventListener("click",d),()=>{document.body.removeEventListener("click",d)}},[]),e.jsxRuntimeExports.jsxs("div",{className:M.pages,children:[e.jsxRuntimeExports.jsxs("div",{className:M.default,onClick:d=>{d.stopPropagation(),u(!a)},children:[e.jsxRuntimeExports.jsx(e.Icon,{name:n&&n[t]&&n[t].icon||"File",fill:"#252525",width:20,height:20}),e.jsxRuntimeExports.jsx("span",{className:M.text,children:n&&n[t]&&Y.includes(n[t].name)?`${F(n[t].name)} page`:n&&n[t]&&n[t].name}),e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretDown",width:20,height:20})]}),a&&e.jsxRuntimeExports.jsxs("div",{className:M.modal,onClick:d=>d.stopPropagation(),children:[n&&e.jsxRuntimeExports.jsx("div",{className:M.items,children:Object.keys(n).map(d=>{const c=n[d];return e.jsxRuntimeExports.jsxs("div",{className:e.clx(M.page,{[M.hoverable]:m===d}),onMouseEnter:()=>p(d),onMouseLeave:()=>p(""),onClick:()=>{p(""),l(!1),s(d),u(!1)},children:[e.jsxRuntimeExports.jsx(e.Icon,{name:c.icon,fill:"#252525"}),e.jsxRuntimeExports.jsx("span",{className:M.text,children:Y.includes(c.name)?`${F(c.name)} page`:c.name}),m===d&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Gear",fill:"#757575",onClick:b=>{b.stopPropagation(),l(!0),i(d),o(!0)}}),!Y.includes(c.name)&&e.jsxRuntimeExports.jsx(e.Icon,{name:"Trash",fill:"#C12A2A",onClick:b=>{n[t].path===c.name&&s("/"),b.stopPropagation(),r(d),S(c.name),e.deletePage(c.path)}})]}),n[t]&&n[t].path===c.name&&e.jsxRuntimeExports.jsx(e.Icon,{name:"Check",fill:"#FF3F19"})]},d)})}),e.jsxRuntimeExports.jsx("div",{className:M.separator}),e.jsxRuntimeExports.jsxs(e.Button,{className:M.button,onClick:d=>{d.stopPropagation(),o(!0)},size:"l",children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Plus",fill:"#ff3f19"}),e.jsxRuntimeExports.jsx("span",{children:"Create Page Blank"})]})]})]})},nt="_zoom_1q1ud_1",rt={zoom:nt},it=()=>{const[t,s]=g.useState(),o=()=>{s(Number(Math.round(window.devicePixelRatio*50).toFixed(0)))};return g.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),e.jsxRuntimeExports.jsxs("div",{className:rt.zoom,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"MagnifyingGlassMinus",width:20,height:20}),e.jsxRuntimeExports.jsxs("span",{children:[t," %"]})]})},at=()=>e.jsxRuntimeExports.jsxs("div",{className:Xe.settings,children:[e.jsxRuntimeExports.jsx(ot,{}),e.jsxRuntimeExports.jsx(it,{})]}),lt="_theme_1jz2h_1",ct={theme:lt},ut=()=>e.jsxRuntimeExports.jsxs("div",{className:ct.theme,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Check",width:18,height:18}),e.jsxRuntimeExports.jsx("div",{children:"Current Theme"})]}),dt=()=>{const{themeSettings:t}=e.useThemeSettingsStore(),{settings:s}=e.useSettingsStore(),{isOpenSelectModal:o}=e.usePagesStore(),[n,l]=g.useState(null),[i,r]=g.useState(!1),{pages:a}=e.usePagesStore(),{blocks:u}=e.useLayersStore();function S(b,w){try{return w.map(C=>{if(!C.value||!C.value.blockSettings)throw new Error("block.value or block.value.blockSettings is undefined.");return Object.values(C.value.blockSettings).filter(B=>B&&B.type===b).map(B=>{if(!B.value)throw new Error("item.value is undefined.");return B.value}).flat()}).flat().map(C=>{if(!C.listingId)throw new Error("item.listingId is undefined.");return C.listingId})}catch(f){return console.error("Error in getValues function:",f),[]}}function m(b,w){return S(b,w).some(C=>C)}function p(b,w){const f=S(b,w);return Array.isArray(f)&&f.length>0?Math.max(...f):0}function d(b){if(a){const w=Object.keys(a).find(f=>a[f].name===b);if(w)return a[w]}return null}const c=()=>{if(i)n&&clearTimeout(n);else{const w=Object.keys(u).map(f=>{const C=d(f);return{name:C?C.name:f,path:(C==null?void 0:C.path)||f,layout:{...u[f]},neededProductIds:[...S("ProductId",Object.values(u[f]))],neededCategoryIds:[...S("CategoryId",Object.values(u[f]))],neededAnnouncementIds:[...S("AnnouncementId",Object.values(u[f]))],neededListingIds:[...S("listings",Object.values(u[f]))],neededFaqs:m("Faqs",Object.values(u[f])),neededReviewCount:p("ReviewCount",Object.values(u[f])),seo:{pageTitle:C&&C.seo&&C.seo.title?C.seo.title:"",pageDescription:C&&C.seo&&C.seo.description?C.seo.description:""}}});e.updateSettings("post","save",{themeSettings:t,settings:s,updatedPages:w})}r(!0);const b=setTimeout(()=>{r(!1)},2e3);l(b)};return e.jsxRuntimeExports.jsxs("div",{className:Z.header,style:{zIndex:o?5e4:50},children:[e.jsxRuntimeExports.jsxs("div",{className:Z.left,children:[e.jsxRuntimeExports.jsx(He,{}),e.jsxRuntimeExports.jsx(We,{})]}),e.jsxRuntimeExports.jsx("div",{className:Z.center,children:e.jsxRuntimeExports.jsx(at,{})}),e.jsxRuntimeExports.jsxs("div",{className:Z.right,children:[e.jsxRuntimeExports.jsx(ut,{}),e.jsxRuntimeExports.jsx(De,{}),e.jsxRuntimeExports.jsx(e.Button,{onClick:c,children:"Save"})]})]})},pt="_exit_1wk4t_1",mt="_text_1wk4t_11",ue={exit:pt,text:mt},xt=()=>e.jsxRuntimeExports.jsxs("a",{href:"https://dash.billgang.com/",className:ue.exit,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"SignOut",width:20,height:20}),e.jsxRuntimeExports.jsx("span",{className:ue.text,children:"Exit"})]}),ht="_navbar_14j8e_1",gt="_main_14j8e_6",St="_block_14j8e_13",jt="_active_14j8e_30",ee={navbar:ht,main:gt,block:St,active:jt},bt=()=>{const{activeBlock:t,setActiveBlock:s}=e.useNavbarStore(),{setActiveBlock:o}=e.useBlocksStore(),{setCurrentBlock:n}=e.useLayersStore(),{setActiveBlock:l}=e.useThemeSettingsStore();function i(r){o(null),s(r),n(null),l(null)}return e.jsxRuntimeExports.jsxs("div",{className:ee.navbar,children:[e.jsxRuntimeExports.jsx(xt,{}),e.jsxRuntimeExports.jsx("div",{className:ee.main,children:e.navbarBlocks.map(r=>e.jsxRuntimeExports.jsxs("div",{className:e.clx(ee.block,{[ee.active]:t.icon===r.icon}),onClick:()=>i(r),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:r.icon,fill:t.icon===r.icon?"#252525":"#757575"}),e.jsxRuntimeExports.jsx("span",{children:r.name})]},r.icon))})]})},Ct="_preview_1howr_1",ft="_main_1howr_14",_t="_content_1howr_25",wt="_loading_1howr_32",vt="_loader_1howr_42",kt="_spin_1howr_1",te={preview:Ct,main:ft,content:_t,loading:wt,loader:vt,spin:kt},Rt="_header_obebc_1",Et="_circles_obebc_16",yt="_circle_obebc_16",Bt="_red_obebc_33",Pt="_green_obebc_37",At="_yellow_obebc_41",Lt="_input_obebc_45",Tt="_main_obebc_56",Nt="_text_obebc_65",O={header:Rt,circles:Et,circle:yt,red:Bt,green:Pt,yellow:At,input:Lt,main:Tt,text:Nt},Ft="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",Dt=["red","yellow","green"],It=()=>e.jsxRuntimeExports.jsxs("div",{className:O.header,children:[e.jsxRuntimeExports.jsx("div",{className:O.circles,children:Dt.map(t=>e.jsxRuntimeExports.jsx("div",{className:e.clx(O.circle,{[O.red]:t==="red",[O.yellow]:t==="yellow",[O.green]:t==="green"})},t))}),e.jsxRuntimeExports.jsxs("div",{className:O.input,children:[e.jsxRuntimeExports.jsxs("div",{className:O.main,children:[e.jsxRuntimeExports.jsx("img",{src:Ft,alt:""}),e.jsxRuntimeExports.jsx("span",{className:O.text,children:"lorem.ipsum"}),e.jsxRuntimeExports.jsx(e.Icon,{name:"Lock",fill:"#757575",width:15,height:16})]}),e.jsxRuntimeExports.jsx(e.Icon,{name:"Copy",width:20,height:20})]})]}),Mt="_content_glpob_1",$t="_main_glpob_9",Ht="_block_glpob_13",Ot="_active_glpob_20",Ut="_name_glpob_24",qt="_empty_glpob_38",Gt="_icon_glpob_49",zt="_title_glpob_62",Wt="_text_glpob_68",Vt="_sections_glpob_74",Xt="_section_glpob_74",Q={content:Mt,main:$t,block:Ht,active:Ot,name:Ut,empty:qt,icon:Gt,title:zt,text:Wt,sections:Vt,section:Xt},Qt="_sidebar_1cz73_1",Kt="_content_1cz73_14",Yt="_button_1cz73_24",Jt="_moveButton_1cz73_34",Zt="_border_1cz73_38",es="_deleteButton_1cz73_42",L={sidebar:Qt,content:Kt,button:Yt,moveButton:Jt,border:Zt,deleteButton:es},ts=()=>{const{activeBlock:t}=e.usePreviewStore(),{blocks:s,removeBlock:o,moveBlock:n,duplicateBlock:l}=e.useLayersStore(),{currentPage:i,pages:r}=e.usePagesStore(),a=r&&r[i]?Object.keys(s[r[i].path]):[],u=a.indexOf(t),S=()=>{u>0&&r&&n(r[i].path,u,u-1)},m=()=>{u<a.length-1&&r&&n(r[i].path,u,u+1)},p=()=>{r&&l(r[i].path,t)};return e.jsxRuntimeExports.jsx("div",{className:L.sidebar,children:e.jsxRuntimeExports.jsxs("div",{className:L.content,children:[e.jsxRuntimeExports.jsx("button",{onClick:S,className:e.clx(L.button,L.moveButton),disabled:u===0,children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowUp"})}),e.jsxRuntimeExports.jsx("button",{onClick:m,className:e.clx(L.button,L.moveButton),disabled:u===a.length-1,children:e.jsxRuntimeExports.jsx(e.Icon,{name:"ArrowDown"})}),e.jsxRuntimeExports.jsx("div",{className:L.border}),e.jsxRuntimeExports.jsx("button",{onClick:p,className:e.clx(L.button,L.moveButton),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Copy"})}),e.jsxRuntimeExports.jsx("div",{className:L.border}),e.jsxRuntimeExports.jsx("button",{onClick:()=>{r&&o(r[i].path,t)},className:e.clx(L.button,L.deleteButton),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Trash",hoverable:!0})})]})})},ss=g.memo(()=>{const{setActiveBlock:t,activeBlock:s}=e.usePreviewStore(),{blocks:o,sourceBlocks:n}=e.useBlocksStore(),{blocks:l}=e.useLayersStore(),{settings:i}=e.useSettingsStore(),{currentPage:r,pages:a,setIsOpenSelectModal:u,pageContext:S}=e.usePagesStore(),m=g.useRef(s);g.useEffect(()=>{m.current=s},[s]),g.useEffect(()=>{const c=()=>{m.current&&t(null)};return document.body.addEventListener("click",c),()=>{document.body.removeEventListener("click",c)}},[]);const p=c=>{if(!c||!c.name)return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:"Block or block.name is undefined."});if(!o||!o[c.name])return e.jsxRuntimeExports.jsx(e.ErrorableBlock,{error:`Block "${c.name}" does not exist in blocks.`});const b=new o[c.name];return c.value&&Object.assign(b,c.value),b.renderBlock(i,S)};function d(c){if(!n||!n[c])return"unknown name";const b=new n[c];return!b.blockSettings||!b.blockSettings.displayName?"unknown name":b.blockSettings.displayName}return e.jsxRuntimeExports.jsxs("div",{onClick:c=>{c.stopPropagation(),u(!1)},className:Q.content,children:[e.jsxRuntimeExports.jsx(Se,{}),e.jsxRuntimeExports.jsx("div",{className:Q.main,children:a&&a[r]&&l[a[r].path]&&Object.keys(l[a[r].path]).map(c=>e.jsxRuntimeExports.jsxs("div",{onClick:()=>t(c),className:e.clx(Q.block,{[Q.active]:s===c}),children:[s===c&&e.jsxRuntimeExports.jsx("div",{className:Q.name,children:d(l[a[r].path][c].name)}),s===c&&d(l[a[r].path][c].name)!=="unknown name"&&e.jsxRuntimeExports.jsx(ts,{}),o&&e.jsxRuntimeExports.jsx(he,{render:p,block:l[a[r].path][c]})]},c))}),e.jsxRuntimeExports.jsx(ge,{})]})}),os="_results_12p5x_1",ns="_name_12p5x_8",rs="_product_12p5x_15",se={results:os,name:ns,product:rs},is="_search_186hm_1",as="_input_186hm_13",de={search:is,input:as},ls=()=>e.jsxRuntimeExports.jsxs("label",{className:de.search,children:[e.jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search for sections",className:de.input}),e.jsxRuntimeExports.jsx(e.Icon,{name:"MagnifyingGlass",fill:"#757575"})]}),je=()=>{const{blocks:t,sourceBlocks:s,setActiveBlock:o}=e.useBlocksStore(),{hideModal:n}=e.useSubmodalStore();function l(a){o(a),n()}function i(a){if(!s||!s[a])return"unknown name";const u=new s[a];return!u.blockSettings||!u.blockSettings.displayName?"unknown name":u.blockSettings.displayName}function r(a){if(s)return new s[a]().blockSettings.isAddable}return e.jsxRuntimeExports.jsxs("div",{className:se.add,children:[e.jsxRuntimeExports.jsx(ls,{}),e.jsxRuntimeExports.jsx("div",{className:se.results,children:t&&Object.keys(t).map(a=>{if(r(a))return e.jsxRuntimeExports.jsxs("div",{className:se.product,onClick:()=>l(a),children:[e.jsxRuntimeExports.jsx("span",{className:se.name,children:i(a)}),e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretRight"})]},a)})})]})},cs=()=>{const{modalPosition:t,color:s,initialColor:o,setShowModal:n,hue:l,saturation:i,brightness:r,dragging:a,setDragging:u,setHue:S,setSaturation:m,setBrightness:p,colorChange:d,setColor:c,update:b}=e.useColorPickerStore(),w=h=>{const{offsetX:_,offsetY:v}=h.nativeEvent;u(!0),B(_,v,h.currentTarget)},f=h=>{if(a){const _=document.querySelector(`.${e.styles.colorMap}`),{left:v,top:E}=_.getBoundingClientRect(),x=h.clientX-v,j=h.clientY-E;B(x,j,_)}},C=()=>{u(!1)},B=(h,_,v)=>{const{width:E,height:x}=v.getBoundingClientRect(),j=Math.max(0,Math.min(h/E*100,100)),I=Math.max(0,Math.min(100-_/x*100,100));m(j),p(I),k(j,I)},k=(h,_)=>{const v=R(l,h,_);d(v),c(v)},P=(h,_,v)=>{_/=100,v/=100;const E=J=>(J+h/60)%6,x=J=>v*(1-_*Math.max(0,Math.min(E(J),4-E(J),1))),j=Math.round(255*x(5)),I=Math.round(255*x(3)),fe=Math.round(255*x(1));return{r:j,g:I,b:fe}},y=(h,_,v)=>{const E=x=>x.toString(16).padStart(2,"0");return`#${E(h)}${E(_)}${E(v)}`},R=(h,_,v)=>{const{r:E,g:x,b:j}=P(h,_,v);return y(E,x,j)};g.useEffect(()=>{const h=v=>f(v),_=()=>C();return a?(document.addEventListener("mousemove",h),document.addEventListener("mouseup",_)):(document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",_)),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",_)}},[a]);function A(){b(s),n(!1)}function D(){n(!1),d(o)}return e.jsxRuntimeExports.jsxs("div",{className:e.styles.modal,onClick:h=>h.stopPropagation(),style:{top:`${t.top}px`,left:`${t.left}px`},children:[e.jsxRuntimeExports.jsx("div",{children:"Color"}),e.jsxRuntimeExports.jsx("div",{className:e.styles.colorMap,onMouseDown:w,style:{background:`
3
3
  linear-gradient(to top, black, transparent),
4
4
  linear-gradient(to right, hsl(${l}, 100%, 100%), hsl(${l}, 100%, 50%))
5
- `},children:e.jsxRuntimeExports.jsx("div",{className:e.styles.indicator,style:{position:"absolute",left:`${i}%`,top:`${100-r}%`,transform:"translate(-50%, -50%)"}})}),e.jsxRuntimeExports.jsx("div",{className:e.styles.hueSlider,children:e.jsxRuntimeExports.jsx("input",{type:"range",min:"0",max:"360",value:l,onChange:h=>{S(Number(h.target.value)),k(i,r)},className:e.styles.slider})}),e.jsxRuntimeExports.jsxs("div",{className:e.styles.buttons,children:[e.jsxRuntimeExports.jsx(e.Button,{onClick:D,className:e.clx(e.styles.applyButton,e.styles.cancelButton),children:"Cancel"}),e.jsxRuntimeExports.jsx(e.Button,{onClick:A,className:e.styles.applyButton,children:"Apply"})]})]})},us=()=>{const{onPreview:t}=e.usePreviewStore(),{isModalVisible:s}=e.useSubmodalStore(),{pageContext:o}=e.usePagesStore(),{showModal:n}=e.useColorPickerStore(),[l,i]=g.useState(!0),{currentDevice:r}=e.useDeviceStore();g.useEffect(()=>{t&&o.general&&setTimeout(()=>{i(!1)},100)},[t,o]);function a(){return r.value==="desktop"?"100%":r.value==="tablet"?"768px":"425px"}return e.jsxRuntimeExports.jsxs("div",{className:te.preview,children:[s&&e.jsxRuntimeExports.jsx(e.Submodal,{children:e.jsxRuntimeExports.jsx(je,{})}),n&&e.jsxRuntimeExports.jsx(cs,{}),t&&e.jsxRuntimeExports.jsxs("div",{className:te.main,style:{width:a()},children:[e.jsxRuntimeExports.jsx(It,{}),e.jsxRuntimeExports.jsx("div",{className:te.content,children:l?e.jsxRuntimeExports.jsx("div",{className:te.loading,children:e.jsxRuntimeExports.jsx(e.Loader,{})}):e.jsxRuntimeExports.jsx(ss,{})})]})]})},ds="_sidebar_1yyyy_1",ps="_title_1yyyy_10",ms="_active_1yyyy_18",pe={sidebar:ds,title:ps,active:ms},xs="_layers_1on0q_1",hs="_block_1on0q_9",gs="_dragging_1on0q_25",Ss="_active_1on0q_33",js="_add_1on0q_37",bs="_button_1on0q_51",Cs="_empty_1on0q_66",fs="_title_1on0q_78",_s="_icon_1on0q_85",ws="_text_1on0q_89",vs="_highlight_1on0q_95",V={layers:xs,block:hs,dragging:gs,active:Ss,add:js,button:bs,empty:Cs,title:fs,icon:_s,text:ws,highlight:vs},ks="_block_586dq_1",me={block:ks},Rs=()=>{const{setCurrentBlock:t}=e.useLayersStore(),{activeBlock:s}=e.usePreviewStore();function o(n){t(n)}return e.jsxRuntimeExports.jsxs("div",{className:e.clx(me.block,{[me.active]:s==="header"}),onClick:()=>o("header"),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Cards"}),e.jsxRuntimeExports.jsx("span",{children:"Header"})]})},Es="_block_586dq_1",xe={block:Es},ys=()=>{const{activeBlock:t}=e.usePreviewStore(),{setCurrentBlock:s}=e.useLayersStore();function o(n){s(n)}return e.jsxRuntimeExports.jsxs("div",{className:e.clx(xe.block,{[xe.active]:t==="footer"}),onClick:()=>o("footer"),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Cards"}),e.jsxRuntimeExports.jsx("span",{children:"Footer"})]})},Bs=({id:t,name:s,index:o,moveBlock:n,onClick:l})=>{const{currentPage:i,pages:r}=e.usePagesStore(),{activeBlock:a}=e.usePreviewStore(),{showPreview:u,hidePreview:S,showModal:m,hideModal:p,clearHideTimeout:d,startHideTimeout:c,hoverBlockId:b,isModalVisible:w}=e.useSubmodalStore(),{setPositionBlock:f}=e.useLayersStore(),[C,B]=g.useState(!1),k=()=>{w&&p(),u(t),B(!0),d()},P=h=>{h.stopPropagation(),S(),m(t),d(),f(o+1)},y=()=>{w?c():(B(!1),S())};g.useEffect(()=>{w||B(!1)},[w]);const[,R]=e.useDrop({accept:"block",hover(h){h.index!==o&&r&&(n(r[i].path,h.index,o),h.index=o)}}),[{isDragging:A},D]=e.useDrag({type:"block",item:{id:t,index:o},collect:h=>({isDragging:h.isDragging()})});return e.jsxRuntimeExports.jsxs("div",{ref:h=>D(R(h)),className:e.clx(V.block,{[V.dragging]:A,[V.active]:!A&&a===t}),onClick:()=>l(t),onMouseEnter:k,onMouseLeave:y,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Cards"}),e.jsxRuntimeExports.jsx("span",{children:s}),(C||b===t)&&!A&&e.jsxRuntimeExports.jsx("div",{className:V.add,children:e.jsxRuntimeExports.jsx("button",{className:V.button,onClick:h=>P(h),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Plus",fill:"#fff"})})})]})},Ps=()=>{const{blocks:t,setCurrentBlock:s,moveBlock:o}=e.useLayersStore(),{currentPage:n,pages:l}=e.usePagesStore(),{setMouseOverModal:i,setHoverBlockId:r}=e.useSubmodalStore();function a(m){s(m),i(!1),r(null)}const{sourceBlocks:u}=e.useBlocksStore();function S(m){if(!u||!u[m])return"unknown name";const p=new u[m];return!p.blockSettings||!p.blockSettings.displayName?"unknown name":p.blockSettings.displayName}return e.jsxRuntimeExports.jsxs("div",{className:V.layers,children:[e.jsxRuntimeExports.jsx(Rs,{}),e.jsxRuntimeExports.jsx(e.DndProvider,{backend:e.HTML5Backend,children:e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:l&&l[n]&&t[l[n].path]&&Object.keys(t[l[n].path]).map((m,p)=>e.jsxRuntimeExports.jsx(Bs,{id:m,name:S(t[l[n].path][m].name),index:p,moveBlock:o,onClick:a},m))})}),e.jsxRuntimeExports.jsx(ys,{})]})},As=({isHeader:t})=>{const{header:s,footer:o}=e.useLayersStore(),{pageContext:n}=e.usePagesStore();return t?s==null?void 0:s.renderSettings(n):o==null?void 0:o.renderSettings(n)},Ls=()=>{const{settings:t}=e.useSettingsStore();return t==null?void 0:t.renderSettings()},Ts="_theme_1wwlz_1",Ns="_block_1wwlz_7",Fs="_name_1wwlz_22",le={theme:Ts,block:Ns,name:Fs},Ds=()=>{const{setActiveBlock:t}=e.useThemeSettingsStore();function s(o){t(o)}return e.jsxRuntimeExports.jsx("div",{className:le.theme,children:we.map(o=>e.jsxRuntimeExports.jsxs("div",{onClick:()=>s(o),className:e.clx(le.block),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:o.icon}),e.jsxRuntimeExports.jsx("span",{className:le.name,children:o.name}),e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretRight"})]},o.icon))})},Is="_back_2jwrk_1",Ms="_render_2jwrk_9",$s="_open_2jwrk_24",Hs="_close_2jwrk_51",Os="_clicked_2jwrk_55",Us="_title_2jwrk_59",qs="_button_2jwrk_67",Gs="_loading_2jwrk_72",zs="_settings_2jwrk_76",Ws="_deleteButton_2jwrk_82",$={back:Is,render:Ms,open:$s,close:Hs,clicked:Os,title:Us,button:qs,loading:Gs,settings:zs,deleteButton:Ws},Vs=({block:t})=>{if(!t)return null;const{pageContext:s}=e.usePagesStore();return t.renderSettings(s)},Xs=t=>{var v,E;const{isAdd:s}=t,[o,n]=g.useState(!1),{setActiveBlock:l}=e.useNavbarStore(),{sourceBlocks:i,activeBlock:r,setActiveBlock:a,currentInstance:u,setCurrentInstance:S}=e.useBlocksStore(),{blocks:m,addBlock:p,editBlock:d,currentBlock:c,setCurrentBlock:b,removeBlock:w,setPositionBlock:f,setHeader:C,setFooter:B,header:k,footer:P}=e.useLayersStore(),{currentPage:y,pages:R}=e.usePagesStore();function A(x=!1){if(!s&&R&&u&&!x){const j={blockSettings:{}};Object.keys(u.blockSettings).filter(I=>!["displayName","isAddable"].includes(I)).map(I=>{j.blockSettings[I]=u.blockSettings[I]}),d(R[y].path,c,{name:m[R[y].path][c].name,value:j})}a(null),b(null),setTimeout(()=>{n(!1)},150),S(null)}function D(){A(),l({name:"Layers",icon:"TreeStructure"}),S(null)}function h(){var x;if(s)return!r||!i[r]?null:new i[r];{if(!R||!R[y]||!c)return null;const j=m[R[y].path][c];return!j||!i[j.name]?null:new i[j.name]((x=j.value)==null?void 0:x.blockSettings)}}g.useEffect(()=>{if(r||c&&!["header","footer"].includes(c)){const x=h();S(x)}else S(null)},[r,c]),g.useEffect(()=>{c==="header"&&C(k)},[c,k]),g.useEffect(()=>{c==="footer"&&B(P)},[c,P]);function _(x){if(!i)return"unknown name";if(!i[x])return c==="header"?k==null?void 0:k.blockSettings.displayName:c==="footer"?P==null?void 0:P.blockSettings.displayName:"unknown name";const j=new i[x];return!j.blockSettings||!j.blockSettings.displayName?"unknown name":j.blockSettings.displayName}return e.jsxRuntimeExports.jsxs("div",{className:e.clx($.render,{[$.open]:c||r,[$.close]:!c&&!r,[$.clicked]:o}),children:[e.jsxRuntimeExports.jsxs("div",{className:$.back,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:()=>A()}),e.jsxRuntimeExports.jsx("h3",{className:$.title,children:r&&_(r)||R&&R[y]&&m[R[y].path]&&_((v=m[R[y].path][c])==null?void 0:v.name)||c&&F(c)||"Loading"}),!s&&R&&!["header","footer"].includes(c)&&_((E=m[R[y].path][c])==null?void 0:E.name)!=="unknown name"&&e.jsxRuntimeExports.jsx("button",{onClick:()=>{n(!0),w(R[y].path,c),A(!0)},className:$.deleteButton,children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Trash",hoverable:!0})})]}),e.jsxRuntimeExports.jsxs("div",{className:$.settings,children:[u&&e.jsxRuntimeExports.jsx(Vs,{block:u}),c&&["header","footer"].includes(c)&&e.jsxRuntimeExports.jsx(As,{isHeader:c==="header"}),!r&&!c&&e.jsxRuntimeExports.jsx("div",{className:$.loading,children:"Loading"})]}),s&&e.jsxRuntimeExports.jsx("div",{className:$.addButton,children:e.jsxRuntimeExports.jsx(e.Button,{style:{width:"100%"},onClick:()=>{if(n(!0),!["header","footer"].includes(c)&&R){const x={blockSettings:{}};Object.keys(u.blockSettings).filter(j=>!["displayName","isAddable"].includes(j)).map(j=>{x.blockSettings[j]=u.blockSettings[j]}),p(R[y].path,{name:r,value:x}),f(null)}else c==="header"?C(k):B(P);D()},children:"Add Section"})})]})},Qs="_settings_ss3tc_1",Ks="_open_ss3tc_16",Ys="_close_ss3tc_20",Js="_header_ss3tc_24",Zs="_title_ss3tc_31",eo="_addButton_ss3tc_38",K={settings:Qs,open:Ks,close:Ys,header:Js,title:Zs,addButton:eo},to="_wrapper_joj7w_1",so="_category_joj7w_5",oo="_categoryTitle_joj7w_11",no="_color_joj7w_17",ro="_content_joj7w_26",io="_preview_joj7w_35",q={wrapper:to,category:so,categoryTitle:oo,color:no,content:ro,preview:io},ao=()=>{const{themeSettings:t,updateColor:s}=e.useThemeSettingsStore();async function o(l,i,r){s(l,i,r)}const n=g.useMemo(()=>{const l={};return Object.entries(t.colors).forEach(([i,r])=>{Object.entries(r).forEach(([a,u])=>{l[u]||(l[u]=[]),l[u].push(`${i}-${a}`)})}),Object.keys(l).filter(i=>l[i].length>1)},[t.colors]);return e.jsxRuntimeExports.jsx("div",{className:q.wrapper,children:Object.entries(t.colors).map(([l,i])=>e.jsxRuntimeExports.jsxs("div",{className:q.category,children:[e.jsxRuntimeExports.jsx("h2",{className:q.categoryTitle,children:F(l)}),Object.entries(i).map(([r,a])=>e.jsxRuntimeExports.jsxs("div",{className:q.color,children:[e.jsxRuntimeExports.jsxs("div",{className:q.content,children:[e.jsxRuntimeExports.jsx("div",{className:q.preview,style:{background:a}}),e.jsxRuntimeExports.jsx(e.ColorPicker,{title:F(r),initialColor:a,onChange:u=>o(l,r,u)})]}),n.includes(a)&&e.jsxRuntimeExports.jsx(e.Tip,{type:"warning",message:"To avoid contrast problems, please use a different color",style:{marginBottom:12}})]},r))]},l))})},lo="_wrapper_dv4am_2",co="_category_dv4am_6",uo="_categoryTitle_dv4am_12",po="_color_dv4am_18",mo="_name_dv4am_24",xo="_content_dv4am_29",ho="_label_dv4am_36",go="_input_dv4am_48",So="_title_dv4am_74",jo="_field_dv4am_82",bo="_alignments_dv4am_92",Co="_lineField_dv4am_98",fo="_style_dv4am_106",_o="_header_dv4am_113",H={wrapper:lo,category:co,categoryTitle:uo,color:po,name:mo,content:xo,label:ho,input:go,title:So,field:jo,alignments:bo,lineField:Co,style:fo,header:_o},wo=["left","center","right"],vo=["solid","dashed"],oe=t=>{const{title:s,children:o,rightAddon:n}=t;return e.jsxRuntimeExports.jsxs("div",{className:H.field,children:[e.jsxRuntimeExports.jsxs("div",{className:H.header,children:[e.jsxRuntimeExports.jsx("h4",{children:s}),n]}),o]})},ko=()=>{const{themeSettings:t,updateInput:s}=e.useThemeSettingsStore(),o=g.useMemo(()=>t.inputs,[t]),n=(i,r,a)=>{s(i,r,a)},l=i=>r=>{s(i,r,"color")};return e.jsxRuntimeExports.jsxs("div",{className:H.wrapper,children:[e.jsxRuntimeExports.jsxs(oe,{title:"General",children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Height (px)",value:String(o.general.height),onChange:i=>n("general",i,"height"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Input,{label:"Style name",value:o.general.name,onChange:i=>n("general",i,"name")}),e.jsxRuntimeExports.jsx(e.Select,{label:"Font Size (px)",onChange:i=>n("general",i,"size"),value:String(o.general.size),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.general.color),onChange:l("general"),title:"Font Color",labelStyle:"secondary"})]}),e.jsxRuntimeExports.jsxs(oe,{title:"Field Fill",rightAddon:e.jsxRuntimeExports.jsx("div",{className:H.switch,children:e.jsxRuntimeExports.jsx(e.Switch,{onChange:i=>n("field",i,"active"),current:o.field.active})}),children:[e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.field.color),onChange:l("field"),title:"Color",labelStyle:"secondary"}),e.jsxRuntimeExports.jsx(e.Input,{label:"Opacity (%)",value:String(o.field.opacity),onChange:i=>n("field",i,"opacity"),type:"number",min:0})]}),e.jsxRuntimeExports.jsxs(oe,{title:"Border",rightAddon:e.jsxRuntimeExports.jsx("div",{className:H.switch,children:e.jsxRuntimeExports.jsx(e.Switch,{onChange:i=>n("border",i,"active"),current:o.border.active})}),children:[e.jsxRuntimeExports.jsxs("div",{className:H.lineField,children:[e.jsxRuntimeExports.jsxs("div",{className:H.style,children:[e.jsxRuntimeExports.jsx("span",{className:H.title,children:"Style"}),e.jsxRuntimeExports.jsx(e.Picker,{items:vo,selectedItem:o.border.style,onSelect:i=>n("border",i,"style"),getIconName:i=>i==="solid"?"Minus":"Selection"})]}),e.jsxRuntimeExports.jsx(e.Input,{label:"Radius (px)",value:String(o.border.radius),onChange:i=>n("border",i,"radius"),type:"number",min:0})]}),e.jsxRuntimeExports.jsx(e.Input,{label:"Thickness (px)",value:String(o.border.thickness),onChange:i=>n("border",i,"thickness"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.border.color),onChange:l("border"),title:"Color",labelStyle:"secondary"})]}),e.jsxRuntimeExports.jsxs(oe,{title:"Label",children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Line Height (px)",value:String(o.label.height),onChange:i=>n("label",i,"height"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Select,{label:"Font Size (px)",onChange:i=>n("label",i,"size"),value:String(o.label.size),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.label.color),onChange:l("label"),title:"Color",labelStyle:"secondary"}),e.jsxRuntimeExports.jsxs("div",{className:H.alignments,children:[e.jsxRuntimeExports.jsx("h4",{className:H.title,children:"Alignment Type"}),e.jsxRuntimeExports.jsx(e.Picker,{items:wo,selectedItem:o.label.alignment,onSelect:i=>n("label",i,"alignment"),getIconName:i=>i==="center"?"AlignCenterHorizontal":i==="left"?"AlignLeft":"AlignRight"})]})]})]})},Ro="_wrapper_lov6e_1",Eo="_category_lov6e_5",yo="_categoryTitle_lov6e_11",Bo="_font_lov6e_17",Po="_content_lov6e_38",Ao="_icon_lov6e_45",Lo="_paragraph_lov6e_56",To="_deleteIcon_lov6e_60",No="_iconButton_lov6e_67",U={wrapper:Ro,category:Eo,categoryTitle:yo,font:Bo,content:Po,icon:Ao,paragraph:Lo,deleteIcon:To,iconButton:No},Fo=t=>{const{font:s,size:o,id:n,category:l}=t,{setActiveFont:i}=e.useThemeSettingsStore();return e.jsxRuntimeExports.jsxs("div",{className:U.font,onClick:()=>i(n),children:[e.jsxRuntimeExports.jsx("div",{className:e.clx(U.icon,{[U.paragraph]:l==="paragraph"}),children:e.jsxRuntimeExports.jsx(e.Icon,{name:l==="paragraph"?"TextB":"TextH"})}),e.jsxRuntimeExports.jsxs("div",{className:U.content,children:[e.jsxRuntimeExports.jsx("h2",{className:U.categoryTitle,children:F(n)}),e.jsxRuntimeExports.jsx("span",{className:U.value,children:`${s}, ${o}px`})]})]})},Do=()=>{const{themeSettings:t,setActiveFont:s,activeBlock:o}=e.useThemeSettingsStore();g.useEffect(()=>(n(),()=>{n()}),[]);function n(){s(null)}if(o!=null&&o.name)return e.jsxRuntimeExports.jsx("div",{className:U.wrapper,children:Object.entries(t.fonts).map(([l,i])=>e.jsxRuntimeExports.jsxs("div",{className:U.category,children:[e.jsxRuntimeExports.jsx("h2",{className:U.categoryTitle,children:F(l)}),Object.entries(i).map(([r,a])=>e.jsxRuntimeExports.jsx(Fo,{id:r,category:l,...a},r))]},l))})},Io="_wrapper_smgf8_1",Mo="_open_smgf8_16",$o="_close_smgf8_20",Ho="_header_smgf8_24",Oo="_title_smgf8_32",Uo="_options_smgf8_38",qo="_clicked_smgf8_45",G={wrapper:Io,open:Mo,close:$o,header:Ho,title:Oo,options:Uo,clicked:qo},Go=()=>{const{activeBlock:t,setActiveFont:s,activeFont:o,themeSettings:n,updateFont:l}=e.useThemeSettingsStore(),{fonts:i}=e.useFontsStore(),[r,a]=g.useState(null);function u(){s(null)}function S(p,d){r&&o&&l(r,o,d,p)}const m=g.useMemo(()=>o?n.fonts.heading[o]?(a("heading"),n.fonts.heading[o]):n.fonts.paragraph[o]?(a("paragraph"),n.fonts.paragraph[o]):(a(null),null):null,[o,n]);return e.jsxRuntimeExports.jsxs("div",{className:e.clx(G.wrapper,{[G.open]:(t==null?void 0:t.name)==="Fonts"&&o,[G.close]:(t==null?void 0:t.name)!=="Fonts"||!o}),children:[e.jsxRuntimeExports.jsxs("div",{className:G.header,onClick:u,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0}),e.jsxRuntimeExports.jsx("span",{className:G.title,children:"Font Style"})]}),o&&m&&e.jsxRuntimeExports.jsxs("div",{className:G.options,children:[e.jsxRuntimeExports.jsx(e.Select,{label:"Font",value:m.font,onChange:p=>S(p,"font"),options:[...i.filter(p=>p!==m.font)]}),e.jsxRuntimeExports.jsx(e.Select,{label:"Size",value:String(m.size),onChange:p=>S(p,"size"),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.Select,{label:"Weight",value:String(m.weight),onChange:p=>S(p,"weight"),options:e.weightOptions})]})]})},zo="_wrapper_smgf8_1",Wo="_open_smgf8_16",Vo="_close_smgf8_20",Xo="_header_smgf8_24",Qo="_title_smgf8_32",Ko="_options_smgf8_38",Yo="_clicked_smgf8_45",z={wrapper:zo,open:Wo,close:Vo,header:Xo,title:Qo,options:Ko,clicked:Yo},be=()=>{const{activeBlock:t,themeSettings:s,updateBorder:o,setActiveBlock:n}=e.useThemeSettingsStore();function l(a,u){o(u,a)}function i(){n(null)}const r=g.useMemo(()=>s.borders,[s]);return e.jsxRuntimeExports.jsxs("div",{className:e.clx(z.wrapper,{[z.open]:(t==null?void 0:t.name)==="Borders",[z.close]:(t==null?void 0:t.name)!=="Borders"}),children:[e.jsxRuntimeExports.jsxs("div",{className:z.header,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:i}),e.jsxRuntimeExports.jsx("span",{className:z.title,children:"Borders Style"})]}),e.jsxRuntimeExports.jsxs("div",{className:z.options,children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Border Radius (px)",value:String(r.radius),onChange:a=>l(Number(a),"radius"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Input,{label:"Border Thickness (px)",value:String(r.thickness),onChange:a=>l(Number(a),"thickness"),type:"number",min:0})]})]})},Jo="_wrapper_1phvv_1",Zo="_open_1phvv_16",en="_close_1phvv_20",tn="_header_1phvv_24",sn="_title_1phvv_32",on="_options_1phvv_38",nn="_clicked_1phvv_45",rn="_label_1phvv_49",an="_alignments_1phvv_56",ln="_blocks_1phvv_62",cn="_alignment_1phvv_56",un="_active_1phvv_77",T={wrapper:Jo,open:Zo,close:en,header:tn,title:sn,options:on,clicked:nn,label:rn,alignments:an,blocks:ln,alignment:cn,active:un},dn=["left","center","right"],Ce=()=>{const{activeBlock:t,themeSettings:s,updateButton:o,setActiveBlock:n}=e.useThemeSettingsStore();function l(a,u){o(u,a)}function i(){n(null)}const r=g.useMemo(()=>s.buttons,[s]);return e.jsxRuntimeExports.jsxs("div",{className:e.clx(T.wrapper,{[T.open]:(t==null?void 0:t.name)==="Buttons",[T.close]:(t==null?void 0:t.name)!=="Buttons"}),children:[e.jsxRuntimeExports.jsxs("div",{className:T.header,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:i}),e.jsxRuntimeExports.jsx("span",{className:T.title,children:"Buttons Style"})]}),r&&e.jsxRuntimeExports.jsxs("div",{className:T.options,children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Height (px)",value:String(r.height),onChange:a=>l(a,"height"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Select,{label:"Font Size (px)",value:String(r.size),onChange:a=>l(a,"size"),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.Input,{label:"Border Radius (px)",value:String(r.radius),onChange:a=>l(Number(a),"radius"),type:"number",min:0}),e.jsxRuntimeExports.jsxs("div",{className:T.alignments,children:[e.jsxRuntimeExports.jsx("h4",{className:T.label,children:"Alignment Type"}),e.jsxRuntimeExports.jsx("div",{className:T.blocks,children:dn.map(a=>e.jsxRuntimeExports.jsx("div",{className:e.clx(T.alignment,{[T.active]:r.alignment===a}),onClick:()=>{l(a,"alignment")},children:e.jsxRuntimeExports.jsx(e.Icon,{name:a==="center"?"AlignCenterHorizontal":a==="left"?"AlignLeft":"AlignRight",fill:r.alignment===a?"#252525":"#757575"})},a))})]})]})]})},pn=()=>{const{activeBlock:t}=e.useThemeSettingsStore();return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(t==null?void 0:t.name)==="Fonts"&&e.jsxRuntimeExports.jsx(Go,{}),(t==null?void 0:t.name)==="Borders"&&e.jsxRuntimeExports.jsx(be,{}),(t==null?void 0:t.name)==="Buttons"&&e.jsxRuntimeExports.jsx(Ce,{})]})},mn=()=>{const{activeBlock:t,setActiveBlock:s}=e.useThemeSettingsStore(),{activeBlock:o}=e.useNavbarStore();function n(){s(null)}return e.jsxRuntimeExports.jsxs("div",{className:e.clx(K.settings,{[K.open]:t,[K.close]:!t||o.name!=="Theme"}),children:[e.jsxRuntimeExports.jsxs("div",{className:K.header,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:n}),e.jsxRuntimeExports.jsx("span",{className:K.title,children:t==null?void 0:t.name})]}),(t==null?void 0:t.name)==="Fonts"&&e.jsxRuntimeExports.jsx(Do,{}),(t==null?void 0:t.name)==="Colors"&&e.jsxRuntimeExports.jsx(ao,{}),(t==null?void 0:t.name)==="Inputs"&&e.jsxRuntimeExports.jsx(ko,{}),(t==null?void 0:t.name)==="Borders"&&e.jsxRuntimeExports.jsx(be,{}),(t==null?void 0:t.name)==="Borders"&&e.jsxRuntimeExports.jsx(Ce,{}),e.jsxRuntimeExports.jsx(pn,{})]})},xn=()=>{const{activeBlock:t}=e.useNavbarStore(),{activeBlock:s}=e.useBlocksStore();function o(){switch(t.name){case"Layers":return"Layers";case"Add":return"Add Sections";case"Theme":return"Theme Settings";case"Settings":return"Settings"}}return e.jsxRuntimeExports.jsxs("div",{className:pe.sidebar,children:[e.jsxRuntimeExports.jsx("h3",{className:pe.title,children:o()}),t.name==="Layers"&&e.jsxRuntimeExports.jsx(Ps,{}),t.name==="Add"&&e.jsxRuntimeExports.jsx(je,{}),e.jsxRuntimeExports.jsx(Xs,{isAdd:!!s}),e.jsxRuntimeExports.jsx(mn,{}),t.name==="Theme"&&e.jsxRuntimeExports.jsx(Ds,{}),t.name==="Settings"&&e.jsxRuntimeExports.jsx(Ls,{})]})},hn="_wrapper_gibny_1",gn="_header_gibny_12",Sn="_content_gibny_23",jn="_buttons_gibny_31",bn="_cancel_gibny_38",Cn="_label_gibny_43",fn="_description_gibny_44",_n="_preview_gibny_52",wn="_block_gibny_58",vn="_slug_gibny_67",kn="_title_gibny_73",N={wrapper:hn,header:gn,content:Sn,buttons:jn,cancel:bn,label:Cn,description:fn,preview:_n,block:wn,slug:vn,title:kn},Rn=()=>{var A,D,h,_,v,E;const{setIsOpenModal:t,pages:s,createPage:o,updatePage:n,isEdit:l,setIsEdit:i,editedPage:r,setEditedPage:a}=e.usePagesStore(),{createPage:u,updatePage:S}=e.useLayersStore(),[m,p]=g.useState(r?s&&((A=s[r])==null?void 0:A.path):""),[d,c]=g.useState(r?s&&((D=s[r])==null?void 0:D.name):""),[b,w]=g.useState(r?s&&s[r].seo&&(((h=s[r])==null?void 0:h.seo.description)||""):""),[f,C]=g.useState(r?s&&((_=s[r])==null?void 0:_.visibility):"public");function B(){p(""),c(""),w(""),C("public"),i(!1),a(null)}function k(){B(),t(!1)}function P(x){return x[0]==="/"?x:"/"+x}function y(){o({path:P(m),name:d||m||"",icon:"File",seo:{title:d||"",description:b||""},visibility:f||"public"}),u(d),k()}function R(){s&&(S(s[r].name||"",d||m||""),n(r,{path:P(m),name:d||m,icon:s[r].icon||"File",seo:{title:d||"",description:b||""},visibility:f||"public"})),k()}return e.jsxRuntimeExports.jsxs("div",{className:N.wrapper,onClick:x=>x.stopPropagation(),children:[e.jsxRuntimeExports.jsxs("div",{className:N.header,children:[e.jsxRuntimeExports.jsxs("h2",{children:[l?"Edit":"Create"," Blank Page"]}),e.jsxRuntimeExports.jsx(e.Icon,{name:"X",fill:"#757575",hoverable:!0,onClick:k})]}),e.jsxRuntimeExports.jsxs("div",{className:N.content,children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Page Slug",onChange:x=>p(x),value:m,placeholder:"path-to-page",disabled:!!(r&&s&&((v=s[r])!=null&&v.name)&&Y.includes(s[r].name)),required:!0,regex:"^.+$"}),e.jsxRuntimeExports.jsx(e.Input,{label:"Page Title",onChange:x=>c(x),value:d,placeholder:"Contact us",disabled:!!(r&&s&&((E=s[r])!=null&&E.name)&&Y.includes(s[r].name))}),e.jsxRuntimeExports.jsx(e.Textarea,{label:"Description",onChange:x=>w(x),value:b,placeholder:"Contact us at any time of the day or night. You are always welcome",maxLength:150}),e.jsxRuntimeExports.jsx(e.Radio,{label:"Visibility",defaultValue:f,options:[{value:"public",label:"Public"},{value:"private",label:"Private"}],onChange:x=>C(x)}),e.jsxRuntimeExports.jsxs("div",{className:N.preview,children:[e.jsxRuntimeExports.jsx("span",{className:N.label,children:"Preview"}),e.jsxRuntimeExports.jsxs("div",{className:N.block,children:[e.jsxRuntimeExports.jsx("span",{className:N.slug,children:m||"yoursite.url"}),e.jsxRuntimeExports.jsx("span",{className:N.title,children:d||"My Blank Page"}),e.jsxRuntimeExports.jsx("span",{className:N.description,children:b||"It is My Description"})]})]})]}),e.jsxRuntimeExports.jsxs("div",{className:N.buttons,children:[e.jsxRuntimeExports.jsx(e.Button,{className:N.cancel,onClick:k,children:"Cancel"}),e.jsxRuntimeExports.jsx(e.Button,{onClick:l?R:y,disabled:m.length===0,children:l?"Update":"Create"})]})]})},En="_layout_douh4_1",yn="_main_douh4_10",Bn="_content_douh4_18",ce={layout:En,main:yn,content:Bn},Pn=()=>{const{isOpenModal:t,setIsOpenModal:s}=e.usePagesStore(),{openModal:o,setOpenModal:n}=e.useChooseImageStore();return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:ce.layout,children:[e.jsxRuntimeExports.jsx(bt,{}),e.jsxRuntimeExports.jsxs("main",{className:ce.main,children:[e.jsxRuntimeExports.jsx(dt,{}),e.jsxRuntimeExports.jsxs("div",{className:ce.content,children:[e.jsxRuntimeExports.jsx(xn,{}),e.jsxRuntimeExports.jsx(us,{})]})]})]}),t&&e.jsxRuntimeExports.jsx(e.Modal,{close:s,children:e.jsxRuntimeExports.jsx(Rn,{})}),o&&e.jsxRuntimeExports.jsx(e.Modal,{close:n,children:e.jsxRuntimeExports.jsx(e.ChooseImageModal,{})})]})};async function W(t,s){const o=localStorage.getItem("shopId")||void 0,n=`${e.API_URL}/${t}/builder/shops/${o}/${s}`,l=localStorage.getItem("sellerAccessToken")||void 0;return(await e.axios.get(n,{headers:{Authorization:`Bearer ${l}`}})).data}async function An(){try{const[t,s,o,n,l,i]=await Promise.allSettled([W("v1","general"),W("v1","faqs"),W("v1","listings"),W("v1","products"),W("v1","reviews"),W("v1","categories")]);return{general:t,faqs:s,listings:o,products:n,reviews:l,categories:i}}catch(t){throw console.error("Error fetching page data:",t),t}}async function Ln(){try{const{data:t}=await e.axios.get(`${e.GOOGLE_FONTS_API}?key=AIzaSyAEsTbjAPUz_TeuFCq4z4LPK9w_vst0Pfw`);return t.items}catch(t){throw console.error("Error fetching page data:",t),t}}function Tn(){try{const{editBlock:t,currentBlock:s,blocks:o,header:n,setHeader:l,footer:i,setFooter:r}=e.useLayersStore.getState(),{currentPage:a,pages:u}=e.usePagesStore.getState(),{currentInstance:S,activeBlock:m}=e.useBlocksStore.getState();if(!m&&S&&u){if(s==="header"&&n)l(n);else if(s==="footer"&&i)r(i);else if(s==="header"||s==="footer")throw new Error(`Missing ${s} data.`);const p={blockSettings:{}};if(!S.blockSettings)throw new Error("currentInstance.blockSettings is undefined.");if(Object.keys(S.blockSettings).filter(d=>!["displayName","isAddable"].includes(d)).forEach(d=>{p.blockSettings[d]=S.blockSettings[d]}),!u[a])throw new Error(`Page "${a}" does not exist.`);if(!o[u[a].path]||!o[u[a].path][s])throw new Error(`Layer or block for page "${u[a].path}" and block "${s}" does not exist.`);t(u[a].path,s,{name:o[u[a].path][s].name,value:p})}}catch(t){console.error("Error in hotReload function:",t)}}async function Nn(){const t=localStorage.getItem("shopId"),s=localStorage.getItem("draftId"),o=`${e.API_URL}/v2/builder/shops/${t}/drafts/${s}/pages`,n=localStorage.getItem("sellerAccessToken");return(await e.axios.get(o,{headers:{Authorization:`Bearer ${n}`}})).data}async function Fn(){const t=localStorage.getItem("shopId")||void 0,s=localStorage.getItem("draftId")||void 0,o=`${e.API_URL}/v2/builder/shops/${t}/drafts/${s}/all`,n=localStorage.getItem("sellerAccessToken")||void 0;return(await e.axios.get(o,{headers:{Authorization:`Bearer ${n}`}})).data}const Dn=t=>{const{blocks:s,settings:o,header:n,footer:l}=t,{setBlocks:i,setSourceBlocks:r}=e.useBlocksStore(),{fonts:a,setFonts:u}=e.useFontsStore(),{setSettings:S}=e.useSettingsStore(),{setPageContext:m}=e.usePagesStore(),{setHeader:p,setFooter:d,setBlocks:c,blocks:b,createPage:w}=e.useLayersStore(),{setThemeSettings:f}=e.useThemeSettingsStore(),{setPages:C}=e.usePagesStore();function B(k){return k[0]==="/"?k.slice(1):k}return g.useEffect(()=>{const k={};Object.keys(s).map(y=>{k[y]=s[y]}),r(k),i(k),p(n),d(l),(async()=>{const{data:y}=await Fn(),{settings:R,themeSettings:A,layers:D}=y;if(f(A),c(D),Object.keys(R).forEach(x=>o[x]=R[x]),S(o),a.length===0){const x=await Ln();u([...x.map(j=>j.family)])}let h={listings:null,products:null,reviews:null,categories:null,faqs:null,general:null};const _=await An();Object.keys(_).map(x=>{const j=x;h[j]=_[j].value.data}),m(h);const v=await Nn(),E={};v.data.length>0&&v.data.forEach(x=>{const j=B(x.path);b[j]||w(j),x.path==="/"?E["/"]={...x,icon:re.home.icon,name:"home"}:re[j]?E[j]={...x,icon:re[j].icon,name:j}:E[j]={...x,icon:"File",name:j}}),C(E)})()},[]),e.jsxRuntimeExports.jsx(Pn,{})},In=t=>{const{blocks:s,settings:o,header:n,footer:l}=t,[i,r]=g.useState(!0),a=e.useNavigate();return g.useEffect(()=>{r(!0),ke()?r(!1):a("/")},[]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:i?e.jsxRuntimeExports.jsx(e.Loader,{}):e.jsxRuntimeExports.jsx(Dn,{blocks:s,settings:o,header:n,footer:l})})},Mn=t=>{const{blocks:s,settings:o,header:n,footer:l}=t,[i,r]=g.useState(null),{setBlocks:a,setSourceBlocks:u}=e.useBlocksStore(),{setSettings:S}=e.useSettingsStore(),{setHeader:m,setFooter:p}=e.useLayersStore();g.useEffect(()=>{if(!i){const w={};Object.keys(s).map(C=>{w[C]=s[C]}),u(w),a(w),m(n),p(l),S(o);const f=e.createBrowserRouter([{path:"/admin/builder",element:e.jsxRuntimeExports.jsx(In,{blocks:s,settings:o,header:n,footer:l})},{path:"/checkout",element:e.jsxRuntimeExports.jsx(e.checkout_app_default,{})},{path:"/top-up",element:e.jsxRuntimeExports.jsx(e.top_up_balance_default,{})},{path:"/charges/:id",element:e.jsxRuntimeExports.jsx(e.charge_default,{})},{path:"/orders/:id/:accessToken?",element:e.jsxRuntimeExports.jsx(e.order_default,{})},{path:"/subscriptions/:id/:accessToken?",element:e.jsxRuntimeExports.jsx(e.subscription_default,{})},{path:"/customer-dash",element:e.jsxRuntimeExports.jsx(e.customerDashboard_default,{})},{path:"*",element:e.jsxRuntimeExports.jsx(Ae,{})}]);r(f)}},[i]);const d=window.location.hostname.includes("localhost")?"subscriptions.billgang.store":window.location.hostname,c=localStorage.getItem("shopPassword"),b=localStorage.getItem("shopId")||"";return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:i&&e.jsxRuntimeExports.jsx(e.BillgangProvider,{shopDomain:d,shopId:b,shopPassword:c||void 0,routes:{Checkout:"/checkout",TopUp:"/top-up",Charge:"/charges",Order:"/orders",Subscription:"/subscriptions"},children:e.jsxRuntimeExports.jsx(e.RouterProvider,{router:i})})})};exports.App=Mn;exports.hotReload=Tn;exports.iconNames=ve;
5
+ `},children:e.jsxRuntimeExports.jsx("div",{className:e.styles.indicator,style:{position:"absolute",left:`${i}%`,top:`${100-r}%`,transform:"translate(-50%, -50%)"}})}),e.jsxRuntimeExports.jsx("div",{className:e.styles.hueSlider,children:e.jsxRuntimeExports.jsx("input",{type:"range",min:"0",max:"360",value:l,onChange:h=>{S(Number(h.target.value)),k(i,r)},className:e.styles.slider})}),e.jsxRuntimeExports.jsxs("div",{className:e.styles.buttons,children:[e.jsxRuntimeExports.jsx(e.Button,{onClick:D,className:e.clx(e.styles.applyButton,e.styles.cancelButton),children:"Cancel"}),e.jsxRuntimeExports.jsx(e.Button,{onClick:A,className:e.styles.applyButton,children:"Apply"})]})]})},us=()=>{const{onPreview:t}=e.usePreviewStore(),{isModalVisible:s}=e.useSubmodalStore(),{pageContext:o}=e.usePagesStore(),{showModal:n}=e.useColorPickerStore(),[l,i]=g.useState(!0),{currentDevice:r}=e.useDeviceStore();g.useEffect(()=>{t&&o.general&&setTimeout(()=>{i(!1)},100)},[t,o]);function a(){return r.value==="desktop"?"100%":r.value==="tablet"?"768px":"425px"}return e.jsxRuntimeExports.jsxs("div",{className:te.preview,children:[s&&e.jsxRuntimeExports.jsx(e.Submodal,{children:e.jsxRuntimeExports.jsx(je,{})}),n&&e.jsxRuntimeExports.jsx(cs,{}),t&&e.jsxRuntimeExports.jsxs("div",{className:te.main,style:{width:a()},children:[e.jsxRuntimeExports.jsx(It,{}),e.jsxRuntimeExports.jsx("div",{className:te.content,children:l?e.jsxRuntimeExports.jsx("div",{className:te.loading,children:e.jsxRuntimeExports.jsx(e.Loader,{})}):e.jsxRuntimeExports.jsx(ss,{})})]})]})},ds="_sidebar_1yyyy_1",ps="_title_1yyyy_10",ms="_active_1yyyy_18",pe={sidebar:ds,title:ps,active:ms},xs="_layers_1on0q_1",hs="_block_1on0q_9",gs="_dragging_1on0q_25",Ss="_active_1on0q_33",js="_add_1on0q_37",bs="_button_1on0q_51",Cs="_empty_1on0q_66",fs="_title_1on0q_78",_s="_icon_1on0q_85",ws="_text_1on0q_89",vs="_highlight_1on0q_95",V={layers:xs,block:hs,dragging:gs,active:Ss,add:js,button:bs,empty:Cs,title:fs,icon:_s,text:ws,highlight:vs},ks="_block_586dq_1",me={block:ks},Rs=()=>{const{setCurrentBlock:t}=e.useLayersStore(),{activeBlock:s}=e.usePreviewStore();function o(n){t(n)}return e.jsxRuntimeExports.jsxs("div",{className:e.clx(me.block,{[me.active]:s==="header"}),onClick:()=>o("header"),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Cards"}),e.jsxRuntimeExports.jsx("span",{children:"Header"})]})},Es="_block_586dq_1",xe={block:Es},ys=()=>{const{activeBlock:t}=e.usePreviewStore(),{setCurrentBlock:s}=e.useLayersStore();function o(n){s(n)}return e.jsxRuntimeExports.jsxs("div",{className:e.clx(xe.block,{[xe.active]:t==="footer"}),onClick:()=>o("footer"),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Cards"}),e.jsxRuntimeExports.jsx("span",{children:"Footer"})]})},Bs=({id:t,name:s,index:o,moveBlock:n,onClick:l})=>{const{currentPage:i,pages:r}=e.usePagesStore(),{activeBlock:a}=e.usePreviewStore(),{showPreview:u,hidePreview:S,showModal:m,hideModal:p,clearHideTimeout:d,startHideTimeout:c,hoverBlockId:b,isModalVisible:w}=e.useSubmodalStore(),{setPositionBlock:f}=e.useLayersStore(),[C,B]=g.useState(!1),k=()=>{w&&p(),u(t),B(!0),d()},P=h=>{h.stopPropagation(),S(),m(t),d(),f(o+1)},y=()=>{w?c():(B(!1),S())};g.useEffect(()=>{w||B(!1)},[w]);const[,R]=e.useDrop({accept:"block",hover(h){h.index!==o&&r&&(n(r[i].path,h.index,o),h.index=o)}}),[{isDragging:A},D]=e.useDrag({type:"block",item:{id:t,index:o},collect:h=>({isDragging:h.isDragging()})});return e.jsxRuntimeExports.jsxs("div",{ref:h=>D(R(h)),className:e.clx(V.block,{[V.dragging]:A,[V.active]:!A&&a===t}),onClick:()=>l(t),onMouseEnter:k,onMouseLeave:y,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"Cards"}),e.jsxRuntimeExports.jsx("span",{children:s}),(C||b===t)&&!A&&e.jsxRuntimeExports.jsx("div",{className:V.add,children:e.jsxRuntimeExports.jsx("button",{className:V.button,onClick:h=>P(h),children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Plus",fill:"#fff"})})})]})},Ps=()=>{const{blocks:t,setCurrentBlock:s,moveBlock:o}=e.useLayersStore(),{currentPage:n,pages:l}=e.usePagesStore(),{setMouseOverModal:i,setHoverBlockId:r}=e.useSubmodalStore();function a(m){s(m),i(!1),r(null)}const{sourceBlocks:u}=e.useBlocksStore();function S(m){if(!u||!u[m])return"unknown name";const p=new u[m];return!p.blockSettings||!p.blockSettings.displayName?"unknown name":p.blockSettings.displayName}return e.jsxRuntimeExports.jsxs("div",{className:V.layers,children:[e.jsxRuntimeExports.jsx(Rs,{}),e.jsxRuntimeExports.jsx(e.DndProvider,{backend:e.HTML5Backend,children:e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:l&&l[n]&&t[l[n].path]&&Object.keys(t[l[n].path]).map((m,p)=>e.jsxRuntimeExports.jsx(Bs,{id:m,name:S(t[l[n].path][m].name),index:p,moveBlock:o,onClick:a},m))})}),e.jsxRuntimeExports.jsx(ys,{})]})},As=({isHeader:t})=>{const{header:s,footer:o}=e.useLayersStore(),{pageContext:n}=e.usePagesStore();return t?s==null?void 0:s.renderSettings(n):o==null?void 0:o.renderSettings(n)},Ls=()=>{const{settings:t}=e.useSettingsStore();return t==null?void 0:t.renderSettings()},Ts="_theme_1wwlz_1",Ns="_block_1wwlz_7",Fs="_name_1wwlz_22",le={theme:Ts,block:Ns,name:Fs},Ds=()=>{const{setActiveBlock:t}=e.useThemeSettingsStore();function s(o){t(o)}return e.jsxRuntimeExports.jsx("div",{className:le.theme,children:we.map(o=>e.jsxRuntimeExports.jsxs("div",{onClick:()=>s(o),className:e.clx(le.block),children:[e.jsxRuntimeExports.jsx(e.Icon,{name:o.icon}),e.jsxRuntimeExports.jsx("span",{className:le.name,children:o.name}),e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretRight"})]},o.icon))})},Is="_back_2jwrk_1",Ms="_render_2jwrk_9",$s="_open_2jwrk_24",Hs="_close_2jwrk_51",Os="_clicked_2jwrk_55",Us="_title_2jwrk_59",qs="_button_2jwrk_67",Gs="_loading_2jwrk_72",zs="_settings_2jwrk_76",Ws="_deleteButton_2jwrk_82",$={back:Is,render:Ms,open:$s,close:Hs,clicked:Os,title:Us,button:qs,loading:Gs,settings:zs,deleteButton:Ws},Vs=({block:t})=>{if(!t)return null;const{pageContext:s}=e.usePagesStore();return t.renderSettings(s)},Xs=t=>{var v,E;const{isAdd:s}=t,[o,n]=g.useState(!1),{setActiveBlock:l}=e.useNavbarStore(),{sourceBlocks:i,activeBlock:r,setActiveBlock:a,currentInstance:u,setCurrentInstance:S}=e.useBlocksStore(),{blocks:m,addBlock:p,editBlock:d,currentBlock:c,setCurrentBlock:b,removeBlock:w,setPositionBlock:f,setHeader:C,setFooter:B,header:k,footer:P}=e.useLayersStore(),{currentPage:y,pages:R}=e.usePagesStore();function A(x=!1){if(!s&&R&&u&&!x){const j={blockSettings:{}};Object.keys(u.blockSettings).filter(I=>!["displayName","isAddable"].includes(I)).map(I=>{j.blockSettings[I]=u.blockSettings[I]}),d(R[y].path,c,{name:m[R[y].path][c].name,value:j})}a(null),b(null),setTimeout(()=>{n(!1)},150),S(null)}function D(){A(),l({name:"Layers",icon:"TreeStructure"}),S(null)}function h(){var x;if(s)return!r||!i[r]?null:new i[r];{if(!R||!R[y]||!c)return null;const j=m[R[y].path][c];return!j||!i[j.name]?null:new i[j.name]((x=j.value)==null?void 0:x.blockSettings)}}g.useEffect(()=>{if(r||c&&!["header","footer"].includes(c)){const x=h();S(x)}else S(null)},[r,c]),g.useEffect(()=>{c==="header"&&C(k)},[c,k]),g.useEffect(()=>{c==="footer"&&B(P)},[c,P]);function _(x){if(!i)return"unknown name";if(!i[x])return c==="header"?k==null?void 0:k.blockSettings.displayName:c==="footer"?P==null?void 0:P.blockSettings.displayName:"unknown name";const j=new i[x];return!j.blockSettings||!j.blockSettings.displayName?"unknown name":j.blockSettings.displayName}return e.jsxRuntimeExports.jsxs("div",{className:e.clx($.render,{[$.open]:c||r,[$.close]:!c&&!r,[$.clicked]:o}),children:[e.jsxRuntimeExports.jsxs("div",{className:$.back,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:()=>A()}),e.jsxRuntimeExports.jsx("h3",{className:$.title,children:r&&_(r)||R&&R[y]&&m[R[y].path]&&_((v=m[R[y].path][c])==null?void 0:v.name)||c&&F(c)||"Loading"}),!s&&R&&!["header","footer"].includes(c)&&_((E=m[R[y].path][c])==null?void 0:E.name)!=="unknown name"&&e.jsxRuntimeExports.jsx("button",{onClick:()=>{n(!0),w(R[y].path,c),A(!0)},className:$.deleteButton,children:e.jsxRuntimeExports.jsx(e.Icon,{name:"Trash",hoverable:!0})})]}),e.jsxRuntimeExports.jsxs("div",{className:$.settings,children:[u&&e.jsxRuntimeExports.jsx(Vs,{block:u}),c&&["header","footer"].includes(c)&&e.jsxRuntimeExports.jsx(As,{isHeader:c==="header"}),!r&&!c&&e.jsxRuntimeExports.jsx("div",{className:$.loading,children:"Loading"})]}),s&&e.jsxRuntimeExports.jsx("div",{className:$.addButton,children:e.jsxRuntimeExports.jsx(e.Button,{style:{width:"100%"},onClick:()=>{if(n(!0),!["header","footer"].includes(c)&&R){const x={blockSettings:{}};Object.keys(u.blockSettings).filter(j=>!["displayName","isAddable"].includes(j)).map(j=>{x.blockSettings[j]=u.blockSettings[j]}),p(R[y].path,{name:r,value:x}),f(null)}else c==="header"?C(k):B(P);D()},children:"Add Section"})})]})},Qs="_settings_ss3tc_1",Ks="_open_ss3tc_16",Ys="_close_ss3tc_20",Js="_header_ss3tc_24",Zs="_title_ss3tc_31",eo="_addButton_ss3tc_38",K={settings:Qs,open:Ks,close:Ys,header:Js,title:Zs,addButton:eo},to="_wrapper_joj7w_1",so="_category_joj7w_5",oo="_categoryTitle_joj7w_11",no="_color_joj7w_17",ro="_content_joj7w_26",io="_preview_joj7w_35",q={wrapper:to,category:so,categoryTitle:oo,color:no,content:ro,preview:io},ao=()=>{const{themeSettings:t,updateColor:s}=e.useThemeSettingsStore();async function o(l,i,r){s(l,i,r)}const n=g.useMemo(()=>{const l={};return Object.entries(t.colors).forEach(([i,r])=>{Object.entries(r).forEach(([a,u])=>{l[u]||(l[u]=[]),l[u].push(`${i}-${a}`)})}),Object.keys(l).filter(i=>l[i].length>1)},[t.colors]);return e.jsxRuntimeExports.jsx("div",{className:q.wrapper,children:Object.entries(t.colors).map(([l,i])=>e.jsxRuntimeExports.jsxs("div",{className:q.category,children:[e.jsxRuntimeExports.jsx("h2",{className:q.categoryTitle,children:F(l)}),Object.entries(i).map(([r,a])=>e.jsxRuntimeExports.jsxs("div",{className:q.color,children:[e.jsxRuntimeExports.jsxs("div",{className:q.content,children:[e.jsxRuntimeExports.jsx("div",{className:q.preview,style:{background:a}}),e.jsxRuntimeExports.jsx(e.ColorPicker,{title:F(r),initialColor:a,onChange:u=>o(l,r,u)})]}),n.includes(a)&&e.jsxRuntimeExports.jsx(e.Tip,{type:"warning",message:"To avoid contrast problems, please use a different color",style:{marginBottom:12}})]},r))]},l))})},lo="_wrapper_dv4am_2",co="_category_dv4am_6",uo="_categoryTitle_dv4am_12",po="_color_dv4am_18",mo="_name_dv4am_24",xo="_content_dv4am_29",ho="_label_dv4am_36",go="_input_dv4am_48",So="_title_dv4am_74",jo="_field_dv4am_82",bo="_alignments_dv4am_92",Co="_lineField_dv4am_98",fo="_style_dv4am_106",_o="_header_dv4am_113",H={wrapper:lo,category:co,categoryTitle:uo,color:po,name:mo,content:xo,label:ho,input:go,title:So,field:jo,alignments:bo,lineField:Co,style:fo,header:_o},wo=["left","center","right"],vo=["solid","dashed"],oe=t=>{const{title:s,children:o,rightAddon:n}=t;return e.jsxRuntimeExports.jsxs("div",{className:H.field,children:[e.jsxRuntimeExports.jsxs("div",{className:H.header,children:[e.jsxRuntimeExports.jsx("h4",{children:s}),n]}),o]})},ko=()=>{const{themeSettings:t,updateInput:s}=e.useThemeSettingsStore(),o=g.useMemo(()=>t.inputs,[t]),n=(i,r,a)=>{s(i,r,a)},l=i=>r=>{s(i,r,"color")};return e.jsxRuntimeExports.jsxs("div",{className:H.wrapper,children:[e.jsxRuntimeExports.jsxs(oe,{title:"General",children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Height (px)",value:String(o.general.height),onChange:i=>n("general",i,"height"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Input,{label:"Style name",value:o.general.name,onChange:i=>n("general",i,"name")}),e.jsxRuntimeExports.jsx(e.Select,{label:"Font Size (px)",onChange:i=>n("general",i,"size"),value:String(o.general.size),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.general.color),onChange:l("general"),title:"Font Color",labelStyle:"secondary"})]}),e.jsxRuntimeExports.jsxs(oe,{title:"Field Fill",rightAddon:e.jsxRuntimeExports.jsx("div",{className:H.switch,children:e.jsxRuntimeExports.jsx(e.Switch,{onChange:i=>n("field",i,"active"),current:o.field.active})}),children:[e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.field.color),onChange:l("field"),title:"Color",labelStyle:"secondary"}),e.jsxRuntimeExports.jsx(e.Input,{label:"Opacity (%)",value:String(o.field.opacity),onChange:i=>n("field",i,"opacity"),type:"number",min:0})]}),e.jsxRuntimeExports.jsxs(oe,{title:"Border",rightAddon:e.jsxRuntimeExports.jsx("div",{className:H.switch,children:e.jsxRuntimeExports.jsx(e.Switch,{onChange:i=>n("border",i,"active"),current:o.border.active})}),children:[e.jsxRuntimeExports.jsxs("div",{className:H.lineField,children:[e.jsxRuntimeExports.jsxs("div",{className:H.style,children:[e.jsxRuntimeExports.jsx("span",{className:H.title,children:"Style"}),e.jsxRuntimeExports.jsx(e.Picker,{items:vo,selectedItem:o.border.style,onSelect:i=>n("border",i,"style"),getIconName:i=>i==="solid"?"Minus":"Selection"})]}),e.jsxRuntimeExports.jsx(e.Input,{label:"Radius (px)",value:String(o.border.radius),onChange:i=>n("border",i,"radius"),type:"number",min:0})]}),e.jsxRuntimeExports.jsx(e.Input,{label:"Thickness (px)",value:String(o.border.thickness),onChange:i=>n("border",i,"thickness"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.border.color),onChange:l("border"),title:"Color",labelStyle:"secondary"})]}),e.jsxRuntimeExports.jsxs(oe,{title:"Label",children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Line Height (px)",value:String(o.label.height),onChange:i=>n("label",i,"height"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Select,{label:"Font Size (px)",onChange:i=>n("label",i,"size"),value:String(o.label.size),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.ColorPicker,{initialColor:F(o.label.color),onChange:l("label"),title:"Color",labelStyle:"secondary"}),e.jsxRuntimeExports.jsxs("div",{className:H.alignments,children:[e.jsxRuntimeExports.jsx("h4",{className:H.title,children:"Alignment Type"}),e.jsxRuntimeExports.jsx(e.Picker,{items:wo,selectedItem:o.label.alignment,onSelect:i=>n("label",i,"alignment"),getIconName:i=>i==="center"?"AlignCenterHorizontal":i==="left"?"AlignLeft":"AlignRight"})]})]})]})},Ro="_wrapper_lov6e_1",Eo="_category_lov6e_5",yo="_categoryTitle_lov6e_11",Bo="_font_lov6e_17",Po="_content_lov6e_38",Ao="_icon_lov6e_45",Lo="_paragraph_lov6e_56",To="_deleteIcon_lov6e_60",No="_iconButton_lov6e_67",U={wrapper:Ro,category:Eo,categoryTitle:yo,font:Bo,content:Po,icon:Ao,paragraph:Lo,deleteIcon:To,iconButton:No},Fo=t=>{const{font:s,size:o,id:n,category:l}=t,{setActiveFont:i}=e.useThemeSettingsStore();return e.jsxRuntimeExports.jsxs("div",{className:U.font,onClick:()=>i(n),children:[e.jsxRuntimeExports.jsx("div",{className:e.clx(U.icon,{[U.paragraph]:l==="paragraph"}),children:e.jsxRuntimeExports.jsx(e.Icon,{name:l==="paragraph"?"TextB":"TextH"})}),e.jsxRuntimeExports.jsxs("div",{className:U.content,children:[e.jsxRuntimeExports.jsx("h2",{className:U.categoryTitle,children:F(n)}),e.jsxRuntimeExports.jsx("span",{className:U.value,children:`${s}, ${o}px`})]})]})},Do=()=>{const{themeSettings:t,setActiveFont:s,activeBlock:o}=e.useThemeSettingsStore();g.useEffect(()=>(n(),()=>{n()}),[]);function n(){s(null)}if(o!=null&&o.name)return e.jsxRuntimeExports.jsx("div",{className:U.wrapper,children:Object.entries(t.fonts).map(([l,i])=>e.jsxRuntimeExports.jsxs("div",{className:U.category,children:[e.jsxRuntimeExports.jsx("h2",{className:U.categoryTitle,children:F(l)}),Object.entries(i).map(([r,a])=>e.jsxRuntimeExports.jsx(Fo,{id:r,category:l,...a},r))]},l))})},Io="_wrapper_smgf8_1",Mo="_open_smgf8_16",$o="_close_smgf8_20",Ho="_header_smgf8_24",Oo="_title_smgf8_32",Uo="_options_smgf8_38",qo="_clicked_smgf8_45",G={wrapper:Io,open:Mo,close:$o,header:Ho,title:Oo,options:Uo,clicked:qo},Go=()=>{const{activeBlock:t,setActiveFont:s,activeFont:o,themeSettings:n,updateFont:l}=e.useThemeSettingsStore(),{fonts:i}=e.useFontsStore(),[r,a]=g.useState(null);function u(){s(null)}function S(p,d){r&&o&&l(r,o,d,p)}const m=g.useMemo(()=>o?n.fonts.heading[o]?(a("heading"),n.fonts.heading[o]):n.fonts.paragraph[o]?(a("paragraph"),n.fonts.paragraph[o]):(a(null),null):null,[o,n]);return e.jsxRuntimeExports.jsxs("div",{className:e.clx(G.wrapper,{[G.open]:(t==null?void 0:t.name)==="Fonts"&&o,[G.close]:(t==null?void 0:t.name)!=="Fonts"||!o}),children:[e.jsxRuntimeExports.jsxs("div",{className:G.header,onClick:u,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0}),e.jsxRuntimeExports.jsx("span",{className:G.title,children:"Font Style"})]}),o&&m&&e.jsxRuntimeExports.jsxs("div",{className:G.options,children:[e.jsxRuntimeExports.jsx(e.Select,{label:"Font",value:m.font,onChange:p=>S(p,"font"),options:[...i.filter(p=>p!==m.font)]}),e.jsxRuntimeExports.jsx(e.Select,{label:"Size",value:String(m.size),onChange:p=>S(p,"size"),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.Select,{label:"Weight",value:String(m.weight),onChange:p=>S(p,"weight"),options:e.weightOptions})]})]})},zo="_wrapper_smgf8_1",Wo="_open_smgf8_16",Vo="_close_smgf8_20",Xo="_header_smgf8_24",Qo="_title_smgf8_32",Ko="_options_smgf8_38",Yo="_clicked_smgf8_45",z={wrapper:zo,open:Wo,close:Vo,header:Xo,title:Qo,options:Ko,clicked:Yo},be=()=>{const{activeBlock:t,themeSettings:s,updateBorder:o,setActiveBlock:n}=e.useThemeSettingsStore();function l(a,u){o(u,a)}function i(){n(null)}const r=g.useMemo(()=>s.borders,[s]);return e.jsxRuntimeExports.jsxs("div",{className:e.clx(z.wrapper,{[z.open]:(t==null?void 0:t.name)==="Borders",[z.close]:(t==null?void 0:t.name)!=="Borders"}),children:[e.jsxRuntimeExports.jsxs("div",{className:z.header,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:i}),e.jsxRuntimeExports.jsx("span",{className:z.title,children:"Borders Style"})]}),e.jsxRuntimeExports.jsxs("div",{className:z.options,children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Border Radius (px)",value:String(r.radius),onChange:a=>l(Number(a),"radius"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Input,{label:"Border Thickness (px)",value:String(r.thickness),onChange:a=>l(Number(a),"thickness"),type:"number",min:0})]})]})},Jo="_wrapper_1phvv_1",Zo="_open_1phvv_16",en="_close_1phvv_20",tn="_header_1phvv_24",sn="_title_1phvv_32",on="_options_1phvv_38",nn="_clicked_1phvv_45",rn="_label_1phvv_49",an="_alignments_1phvv_56",ln="_blocks_1phvv_62",cn="_alignment_1phvv_56",un="_active_1phvv_77",T={wrapper:Jo,open:Zo,close:en,header:tn,title:sn,options:on,clicked:nn,label:rn,alignments:an,blocks:ln,alignment:cn,active:un},dn=["left","center","right"],Ce=()=>{const{activeBlock:t,themeSettings:s,updateButton:o,setActiveBlock:n}=e.useThemeSettingsStore();function l(a,u){o(u,a)}function i(){n(null)}const r=g.useMemo(()=>s.buttons,[s]);return e.jsxRuntimeExports.jsxs("div",{className:e.clx(T.wrapper,{[T.open]:(t==null?void 0:t.name)==="Buttons",[T.close]:(t==null?void 0:t.name)!=="Buttons"}),children:[e.jsxRuntimeExports.jsxs("div",{className:T.header,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:i}),e.jsxRuntimeExports.jsx("span",{className:T.title,children:"Buttons Style"})]}),r&&e.jsxRuntimeExports.jsxs("div",{className:T.options,children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Height (px)",value:String(r.height),onChange:a=>l(a,"height"),type:"number",min:0}),e.jsxRuntimeExports.jsx(e.Select,{label:"Font Size (px)",value:String(r.size),onChange:a=>l(a,"size"),options:e.sizeOptions}),e.jsxRuntimeExports.jsx(e.Input,{label:"Border Radius (px)",value:String(r.radius),onChange:a=>l(Number(a),"radius"),type:"number",min:0}),e.jsxRuntimeExports.jsxs("div",{className:T.alignments,children:[e.jsxRuntimeExports.jsx("h4",{className:T.label,children:"Alignment Type"}),e.jsxRuntimeExports.jsx("div",{className:T.blocks,children:dn.map(a=>e.jsxRuntimeExports.jsx("div",{className:e.clx(T.alignment,{[T.active]:r.alignment===a}),onClick:()=>{l(a,"alignment")},children:e.jsxRuntimeExports.jsx(e.Icon,{name:a==="center"?"AlignCenterHorizontal":a==="left"?"AlignLeft":"AlignRight",fill:r.alignment===a?"#252525":"#757575"})},a))})]})]})]})},pn=()=>{const{activeBlock:t}=e.useThemeSettingsStore();return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(t==null?void 0:t.name)==="Fonts"&&e.jsxRuntimeExports.jsx(Go,{}),(t==null?void 0:t.name)==="Borders"&&e.jsxRuntimeExports.jsx(be,{}),(t==null?void 0:t.name)==="Buttons"&&e.jsxRuntimeExports.jsx(Ce,{})]})},mn=()=>{const{activeBlock:t,setActiveBlock:s}=e.useThemeSettingsStore(),{activeBlock:o}=e.useNavbarStore();function n(){s(null)}return e.jsxRuntimeExports.jsxs("div",{className:e.clx(K.settings,{[K.open]:t,[K.close]:!t||o.name!=="Theme"}),children:[e.jsxRuntimeExports.jsxs("div",{className:K.header,children:[e.jsxRuntimeExports.jsx(e.Icon,{name:"CaretLeft",hoverable:!0,onClick:n}),e.jsxRuntimeExports.jsx("span",{className:K.title,children:t==null?void 0:t.name})]}),(t==null?void 0:t.name)==="Fonts"&&e.jsxRuntimeExports.jsx(Do,{}),(t==null?void 0:t.name)==="Colors"&&e.jsxRuntimeExports.jsx(ao,{}),(t==null?void 0:t.name)==="Inputs"&&e.jsxRuntimeExports.jsx(ko,{}),(t==null?void 0:t.name)==="Borders"&&e.jsxRuntimeExports.jsx(be,{}),(t==null?void 0:t.name)==="Borders"&&e.jsxRuntimeExports.jsx(Ce,{}),e.jsxRuntimeExports.jsx(pn,{})]})},xn=()=>{const{activeBlock:t}=e.useNavbarStore(),{activeBlock:s}=e.useBlocksStore();function o(){switch(t.name){case"Layers":return"Layers";case"Add":return"Add Sections";case"Theme":return"Theme Settings";case"Settings":return"Settings"}}return e.jsxRuntimeExports.jsxs("div",{className:pe.sidebar,children:[e.jsxRuntimeExports.jsx("h3",{className:pe.title,children:o()}),t.name==="Layers"&&e.jsxRuntimeExports.jsx(Ps,{}),t.name==="Add"&&e.jsxRuntimeExports.jsx(je,{}),e.jsxRuntimeExports.jsx(Xs,{isAdd:!!s}),e.jsxRuntimeExports.jsx(mn,{}),t.name==="Theme"&&e.jsxRuntimeExports.jsx(Ds,{}),t.name==="Settings"&&e.jsxRuntimeExports.jsx(Ls,{})]})},hn="_wrapper_gibny_1",gn="_header_gibny_12",Sn="_content_gibny_23",jn="_buttons_gibny_31",bn="_cancel_gibny_38",Cn="_label_gibny_43",fn="_description_gibny_44",_n="_preview_gibny_52",wn="_block_gibny_58",vn="_slug_gibny_67",kn="_title_gibny_73",N={wrapper:hn,header:gn,content:Sn,buttons:jn,cancel:bn,label:Cn,description:fn,preview:_n,block:wn,slug:vn,title:kn},Rn=()=>{var A,D,h,_,v,E;const{setIsOpenModal:t,pages:s,createPage:o,updatePage:n,isEdit:l,setIsEdit:i,editedPage:r,setEditedPage:a}=e.usePagesStore(),{createPage:u,updatePage:S}=e.useLayersStore(),[m,p]=g.useState(r?s&&((A=s[r])==null?void 0:A.path):""),[d,c]=g.useState(r?s&&((D=s[r])==null?void 0:D.name):""),[b,w]=g.useState(r?s&&s[r].seo&&(((h=s[r])==null?void 0:h.seo.description)||""):""),[f,C]=g.useState(r?s&&((_=s[r])==null?void 0:_.visibility):"public");function B(){p(""),c(""),w(""),C("public"),i(!1),a(null)}function k(){B(),t(!1)}function P(x){return x[0]==="/"?x:"/"+x}function y(){o({path:P(m),name:d||m||"",icon:"File",seo:{title:d||"",description:b||""},visibility:f||"public"}),u(d),k()}function R(){s&&(S(s[r].name||"",d||m||""),n(r,{path:P(m),name:d||m,icon:s[r].icon||"File",seo:{title:d||"",description:b||""},visibility:f||"public"})),k()}return e.jsxRuntimeExports.jsxs("div",{className:N.wrapper,onClick:x=>x.stopPropagation(),children:[e.jsxRuntimeExports.jsxs("div",{className:N.header,children:[e.jsxRuntimeExports.jsxs("h2",{children:[l?"Edit":"Create"," Blank Page"]}),e.jsxRuntimeExports.jsx(e.Icon,{name:"X",fill:"#757575",hoverable:!0,onClick:k})]}),e.jsxRuntimeExports.jsxs("div",{className:N.content,children:[e.jsxRuntimeExports.jsx(e.Input,{label:"Page Slug",onChange:x=>p(x),value:m,placeholder:"path-to-page",disabled:!!(r&&s&&((v=s[r])!=null&&v.name)&&Y.includes(s[r].name)),required:!0,regex:"^.+$"}),e.jsxRuntimeExports.jsx(e.Input,{label:"Page Title",onChange:x=>c(x),value:d,placeholder:"Contact us",disabled:!!(r&&s&&((E=s[r])!=null&&E.name)&&Y.includes(s[r].name))}),e.jsxRuntimeExports.jsx(e.Textarea,{label:"Description",onChange:x=>w(x),value:b,placeholder:"Contact us at any time of the day or night. You are always welcome",maxLength:150}),e.jsxRuntimeExports.jsx(e.Radio,{label:"Visibility",defaultValue:f,options:[{value:"public",label:"Public"},{value:"private",label:"Private"}],onChange:x=>C(x)}),e.jsxRuntimeExports.jsxs("div",{className:N.preview,children:[e.jsxRuntimeExports.jsx("span",{className:N.label,children:"Preview"}),e.jsxRuntimeExports.jsxs("div",{className:N.block,children:[e.jsxRuntimeExports.jsx("span",{className:N.slug,children:m||"yoursite.url"}),e.jsxRuntimeExports.jsx("span",{className:N.title,children:d||"My Blank Page"}),e.jsxRuntimeExports.jsx("span",{className:N.description,children:b||"It is My Description"})]})]})]}),e.jsxRuntimeExports.jsxs("div",{className:N.buttons,children:[e.jsxRuntimeExports.jsx(e.Button,{className:N.cancel,onClick:k,children:"Cancel"}),e.jsxRuntimeExports.jsx(e.Button,{onClick:l?R:y,disabled:m.length===0,children:l?"Update":"Create"})]})]})},En="_layout_douh4_1",yn="_main_douh4_10",Bn="_content_douh4_18",ce={layout:En,main:yn,content:Bn},Pn=()=>{const{isOpenModal:t,setIsOpenModal:s}=e.usePagesStore(),{openModal:o,setOpenModal:n}=e.useChooseImageStore();return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:ce.layout,children:[e.jsxRuntimeExports.jsx(bt,{}),e.jsxRuntimeExports.jsxs("main",{className:ce.main,children:[e.jsxRuntimeExports.jsx(dt,{}),e.jsxRuntimeExports.jsxs("div",{className:ce.content,children:[e.jsxRuntimeExports.jsx(xn,{}),e.jsxRuntimeExports.jsx(us,{})]})]})]}),t&&e.jsxRuntimeExports.jsx(e.Modal,{close:s,children:e.jsxRuntimeExports.jsx(Rn,{})}),o&&e.jsxRuntimeExports.jsx(e.Modal,{close:n,children:e.jsxRuntimeExports.jsx(e.ChooseImageModal,{})})]})};async function W(t,s){const o=localStorage.getItem("shopId")||void 0,n=`${e.API_URL}/${t}/builder/shops/${o}/${s}`,l=localStorage.getItem("sellerAccessToken")||void 0;return(await e.axios.get(n,{headers:{Authorization:`Bearer ${l}`}})).data}async function An(){try{const[t,s,o,n,l,i]=await Promise.allSettled([W("v1","general"),W("v1","faqs"),W("v1","listings"),W("v1","products"),W("v1","reviews"),W("v1","categories")]);return{general:t,faqs:s,listings:o,products:n,reviews:l,categories:i}}catch(t){throw console.error("Error fetching page data:",t),t}}async function Ln(){try{const{data:t}=await e.axios.get(`${e.GOOGLE_FONTS_API}?key=AIzaSyAEsTbjAPUz_TeuFCq4z4LPK9w_vst0Pfw`);return t.items}catch(t){throw console.error("Error fetching page data:",t),t}}function Tn(){try{const{editBlock:t,currentBlock:s,blocks:o,header:n,setHeader:l,footer:i,setFooter:r}=e.useLayersStore.getState(),{currentPage:a,pages:u}=e.usePagesStore.getState(),{currentInstance:S,activeBlock:m}=e.useBlocksStore.getState();if(!m&&S&&u){if(s==="header"&&n)l(n);else if(s==="footer"&&i)r(i);else if(s==="header"||s==="footer")throw new Error(`Missing ${s} data.`);const p={blockSettings:{}};if(!S.blockSettings)throw new Error("currentInstance.blockSettings is undefined.");if(Object.keys(S.blockSettings).filter(d=>!["displayName","isAddable"].includes(d)).forEach(d=>{p.blockSettings[d]=S.blockSettings[d]}),!u[a])throw new Error(`Page "${a}" does not exist.`);if(!o[u[a].path]||!o[u[a].path][s])throw new Error(`Layer or block for page "${u[a].path}" and block "${s}" does not exist.`);t(u[a].path,s,{name:o[u[a].path][s].name,value:p})}}catch(t){console.error("Error in hotReload function:",t)}}async function Nn(){const t=localStorage.getItem("shopId"),s=localStorage.getItem("draftId"),o=`${e.API_URL}/v2/builder/shops/${t}/drafts/${s}/pages`,n=localStorage.getItem("sellerAccessToken");return(await e.axios.get(o,{headers:{Authorization:`Bearer ${n}`}})).data}async function Fn(){const t=localStorage.getItem("shopId")||void 0,s=localStorage.getItem("draftId")||void 0,o=`${e.API_URL}/v2/builder/shops/${t}/drafts/${s}/all`,n=localStorage.getItem("sellerAccessToken")||void 0;return(await e.axios.get(o,{headers:{Authorization:`Bearer ${n}`}})).data}const Dn=t=>{const{blocks:s,settings:o,header:n,footer:l}=t,{setBlocks:i,setSourceBlocks:r}=e.useBlocksStore(),{fonts:a,setFonts:u}=e.useFontsStore(),{setSettings:S}=e.useSettingsStore(),{setPageContext:m}=e.usePagesStore(),{setHeader:p,setFooter:d,setBlocks:c,blocks:b,createPage:w}=e.useLayersStore(),{setThemeSettings:f}=e.useThemeSettingsStore(),{setPages:C}=e.usePagesStore();function B(k){return k[0]==="/"?k.slice(1):k}return g.useEffect(()=>{const k={};Object.keys(s).map(y=>{k[y]=s[y]}),r(k),i(k),p(n),d(l),(async()=>{const{data:y}=await Fn(),{settings:R,themeSettings:A,layers:D}=y;if(f(A),c(D),Object.keys(R).forEach(x=>o[x]=R[x]),S(o),a.length===0){const x=await Ln();u([...x.map(j=>j.family)])}let h={listings:null,products:null,reviews:null,categories:null,faqs:null,general:null};const _=await An();Object.keys(_).map(x=>{const j=x;h[j]=_[j].value.data}),m(h);const v=await Nn(),E={};v.data.length>0&&v.data.forEach(x=>{const j=B(x.path);b[j]||w(j),x.path==="/"?E["/"]={...x,icon:re.home.icon,name:"home"}:re[j]?E[j]={...x,icon:re[j].icon,name:j}:E[j]={...x,icon:"File",name:j}}),C(E)})()},[]),e.jsxRuntimeExports.jsx(Pn,{})},In=t=>{const{blocks:s,settings:o,header:n,footer:l}=t,[i,r]=g.useState(!0),a=e.useNavigate();return g.useEffect(()=>{r(!0),ke()?r(!1):a("/")},[]),e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:i?e.jsxRuntimeExports.jsx(e.Loader,{}):e.jsxRuntimeExports.jsx(Dn,{blocks:s,settings:o,header:n,footer:l})})},Mn=t=>{const{blocks:s,settings:o,header:n,footer:l}=t,[i,r]=g.useState(null),{setBlocks:a,setSourceBlocks:u}=e.useBlocksStore(),{setSettings:S}=e.useSettingsStore(),{setHeader:m,setFooter:p}=e.useLayersStore();g.useEffect(()=>{if(!i){const w={};Object.keys(s).map(C=>{w[C]=s[C]}),u(w),a(w),m(n),p(l),S(o);const f=e.createBrowserRouter([{path:"/admin/builder",element:e.jsxRuntimeExports.jsx(In,{blocks:s,settings:o,header:n,footer:l})},{path:"/checkout",element:e.jsxRuntimeExports.jsx(e.checkout_app_default,{})},{path:"/top-up",element:e.jsxRuntimeExports.jsx(e.top_up_balance_default,{})},{path:"/charges/:id",element:e.jsxRuntimeExports.jsx(e.charge_default,{})},{path:"/orders/:id/:accessToken?",element:e.jsxRuntimeExports.jsx(e.order_default,{})},{path:"/subscriptions/:id/:accessToken?",element:e.jsxRuntimeExports.jsx(e.subscription_default,{})},{path:"/customer-dash",element:e.jsxRuntimeExports.jsx(e.customerDashboard_default,{})},{path:"*",element:e.jsxRuntimeExports.jsx(Ae,{})}]);r(f)}},[i]);const d=window.location.hostname.includes("localhost")?localStorage.getItem("fakeDomain")||"subscriptions.billgang.store":window.location.hostname,c=localStorage.getItem("shopPassword"),b=localStorage.getItem("shopId")||"";return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:i&&e.jsxRuntimeExports.jsx(e.BillgangProvider,{shopDomain:d,shopId:b,shopPassword:c||void 0,routes:{Checkout:"/checkout",TopUp:"/top-up",Charge:"/charges",Order:"/orders",Subscription:"/subscriptions"},children:e.jsxRuntimeExports.jsx(e.RouterProvider,{router:i})})})};exports.App=Mn;exports.hotReload=Tn;exports.iconNames=ve;
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap";._icon_bsuj2_1 path{fill:var(--icon-fill)}._hoverable_bsuj2_5{cursor:pointer}._rotated_bsuj2_9{transform:rotate(180deg)}._button_ojbir_1{padding:10px 16px;border-radius:12px;cursor:pointer;font-size:16px}._button_ojbir_1:disabled{opacity:.7;cursor:auto}._primary_ojbir_13{color:#fff;background-color:#ff3f19}._secondary_ojbir_18{color:var(--accent-color);background-color:var(--background-color)}._content_ojbir_23{display:flex;flex-direction:row;gap:4px;align-items:center}._wrapper_1hcbk_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_1hcbk_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_1hcbk_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_1hcbk_17::placeholder{color:#c2c2c2}._input_1hcbk_17:disabled{background-color:var(--background-color);opacity:.7}._required_1hcbk_36{border:1px solid #ff3f19}._paddingless_1hcbk_40{padding:0}._content_1hcbk_44{display:flex;flex-direction:row;gap:8px;align-items:center}._borderless_1hcbk_51{border-radius:0;border:none}._wrapper_18y7k_1{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_18y7k_9{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._select_18y7k_17{display:flex;flex-direction:row;gap:0px;width:100%;background-color:var(--background-color);border-radius:12px;padding:10px 12px;font-size:14px;line-height:20px;align-items:center;justify-content:space-between;cursor:pointer}._icon_18y7k_32{transition:.2s}._rotate_18y7k_36{transform:rotate(180deg)}._content_18y7k_40{position:relative}._options_18y7k_44{display:flex;flex-direction:column;gap:0px;position:absolute;top:45px;width:100%;background-color:var(--background-color);border-radius:12px;font-size:14px;line-height:20px;max-height:200px;z-index:10;overflow-y:scroll;cursor:pointer}._option_18y7k_44{padding:10px 12px;border-radius:12px}._option_18y7k_44:hover{background-color:#e6e6e6}._addon_18y7k_69{display:flex;flex-direction:row;gap:6px;align-items:center}._wrapper_1gywd_1{display:flex;flex-direction:row;gap:8px;width:fit-content;align-items:center;border-radius:12px;line-height:20px;color:var(--main-color);font-size:14px;font-weight:400}._switch_1gywd_14{display:flex;flex-direction:row;gap:0px;width:40px;height:24px;background-color:#ccc;border-radius:25px;align-items:center;padding:2px;cursor:pointer;transition:background-color .2s}._switch_1gywd_14._active_1gywd_27{background:#ff3f19}._switch_1gywd_14 ._toggle_1gywd_30{width:14px;height:14px;background-color:#fff;border-radius:16px;transition:transform .2s;transform:translate(2px)}._switch_1gywd_14._active_1gywd_27 ._toggle_1gywd_30{transform:translate(18px)}._background_1gywd_42{background-color:var(--background-color)}._padding_1gywd_46{padding:8px}._wrapper_q0sfn_1{display:flex;flex-direction:row;gap:0px;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;border-radius:8px;justify-content:center;align-items:center;overflow:hidden}._blocks_emecf_1{display:flex;flex-direction:row;gap:8px;align-items:center}._block_emecf_1{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_emecf_21{border:1px solid #ff3f19}._applyButton_11q4y_2{flex:0 1 50%;font-weight:400}._cancelButton_11q4y_7{background-color:var(--background-color);color:var(--accent-color)}._content_11q4y_12{display:flex;flex-direction:column;gap:0px;width:100%}._label_11q4y_19{display:flex;flex-direction:row;gap:8px;padding:8px 12px;border-radius:8px;align-items:center;position:relative;width:100%;background-color:var(--background-color);cursor:pointer}._colorValue_11q4y_32{width:20px;height:20px;padding:2.5px;border-radius:2px}._modal_11q4y_39{display:flex;flex-direction:column;gap:10px;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;font-size:16px;line-height:24px;font-weight:700}._colorMap_11q4y_58{position:relative;width:100%;height:300px;cursor:pointer;border-radius:4px}._indicator_11q4y_66{position:absolute;width:20px;height:20px;border:4px solid white;border-radius:50%;pointer-events:none}._hueSlider_11q4y_75{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]{display:flex;flex-direction:row;gap:0px;-webkit-appearance:none;height:8px;outline:none;border-radius:5px;position:relative;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_11q4y_106{width:100%;cursor:pointer}._buttons_11q4y_111{display:flex;flex-direction:row;gap:5px;width:100%}._name_11q4y_118{line-height:20px;padding:0 4px 4px}._secondary_11q4y_123{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._input_11q4y_131{line-height:20px;font-size:14px;font-weight:400}._modal_18a97_1{display:flex;flex-direction:row;gap:0px;position:fixed;top:0;left:0;right:0;bottom:0;background:#2525253d;z-index:100000;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_ba9vp_2{display:flex;flex-direction:column;gap:6px;justify-content:start;width:100%}._label_ba9vp_10{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._options_ba9vp_18{display:flex;flex-direction:row;gap:20px}._radioLabel_ba9vp_24{display:flex;flex-direction:row;gap:0px;align-items:center;cursor:pointer;position:relative}._radio_ba9vp_24{position:absolute;opacity:0;cursor:pointer}._custom_ba9vp_39{height:20px;width:20px;border-radius:50%;border:1px solid #e6e6e6;display:inline-block;margin-right:8px;position:relative}._radio_ba9vp_24:checked+._custom_ba9vp_39{border-color:#ff3f19;background:#ffeae5}._custom_ba9vp_39: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_ba9vp_24:checked+._custom_ba9vp_39:after{opacity:1}._option_ba9vp_18{font-size:16px;line-height:24px;font-weight:400}._tip_19jn3_1{display:flex;flex-direction:row;gap:8px;align-items:center;padding:8px;border-radius:12px}._text_19jn3_10{flex:1 1 auto;line-height:20px;font-size:14px}._warning_19jn3_16{background:#faf8e6;color:#c1972a}._error_19jn3_21{background:#ffc3b7;color:#ff3f19}._hide_19jn3_26{display:none}._customCheckbox_1b69m_1{display:inline-block;cursor:pointer;position:relative}._checkboxBox_1b69m_7{display:inline-block;width:20px;height:20px;border:1px solid #e6e6e6;border-radius:6px;position:relative}._checkboxBox_1b69m_7._checked_1b69m_16{background:#ffeae5;border:1px solid #ff3f19}._icon_1b69m_21{position:absolute;top:3px;left:3px}._loader_nftwq_1{border:4px solid rgba(0,0,0,.1);border-left-color:var(--background-color);border-radius:50%;width:40px;height:40px;animation:_spin_nftwq_1 1s linear infinite}@keyframes _spin_nftwq_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._wrapper_5w9s8_1{width:100%;padding:20px;text-align:center}._wrapper_5y1c1_2{display:flex;flex-direction:column;gap:6px;width:100%}._label_5y1c1_9{color:var(--accent-color);font-weight:400;font-size:14px;line-height:20px}._icon_5y1c1_16{display:flex;flex-direction:row;gap:0px;padding:4px;background-color:#fff;border:var(--default-border);justify-content:center;align-items:center;border-radius:6px}._text_5y1c1_28{font-weight:400;font-size:16px;line-height:24px;color:#ff3f19}._content_5y1c1_35{display:flex;flex-direction:row;gap:6px;align-items:center;cursor:pointer;background-color:var(--background-color);border-radius:12px;padding:6px 8px}._modal_5y1c1_46{background-color:var(--background-color);border:var(--default-border);border-radius:16px;width:100%;max-width:640px}._top_5y1c1_54{display:flex;flex-direction:row;gap:0px;padding:16px 24px;align-items:center;justify-content:space-between}._title_5y1c1_63{color:var(--main-color);font-weight:400;font-size:18px;line-height:24px}._modalContent_5y1c1_70{padding:16px 24px;border-top-left-radius:16px;border-top-right-radius:16px;border-top:var(--default-border);border-bottom:var(--default-border);background-color:#fff}._images_5y1c1_79{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;gap:10px;overflow-y:scroll;max-height:390px}._add_5y1c1_88{display:flex;flex-direction:column;gap:8px;padding:43px 16px;border:1px dashed #e6e6e6;justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._description_5y1c1_100{text-align:center;color:var(--main-color);font-size:14px;line-height:20px}._description_5y1c1_100 span:last-child{padding-top:4px}._bottom_5y1c1_110{display:flex;flex-direction:row;gap:0px;justify-content:end;align-items:center;width:100%;background-color:#fff;border-bottom-left-radius:16px;border-bottom-right-radius:16px;padding:16px 24px 12px;gap:6px}._cancel_5y1c1_124{background-color:var(--background-color);color:var(--accent-color)}._highlight_5y1c1_129{color:#ff3f19;cursor:pointer}._accent_5y1c1_134{color:var(--accent-color)}._image_5y1c1_79{position:relative;padding:43px 16px;border:1px solid #e6e6e6;justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._selected_5y1c1_148{border:1px solid #ff3f19}._checkbox_5y1c1_152{position:absolute;top:12px;left:12px}._loading_5y1c1_158{display:flex;flex-direction:row;gap:0px;position:relative;padding:43px 16px;border:1px solid #e6e6e6;background-color:var(--background-color);justify-content:center;align-items:center;border-radius:16px;aspect-ratio:1/1}._spinner_5y1c1_172{width:24px;height:24px;border:2px solid #ff3f19;border-top-color:var(--background-color);border-radius:50%;animation:_spin_5y1c1_172 1s linear infinite}@keyframes _spin_5y1c1_172{to{transform:rotate(360deg)}}*{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}body,html{background-color:#fff;font-family:Archivo,sans-serif;max-height:100dvh;overflow:hidden}._wrapper_1dfbs_1{display:flex;flex-direction:column;gap:0px;height:100%;overflow-y:scroll}._main_1dfbs_9{flex:1 1 auto}._loading_1dfbs_13{display:flex;flex-direction:row;gap:0px;width:100%;height:100%;justify-content:center;align-items:center}._buttons_uu72s_1{display:flex;flex-direction:row;gap:5px;align-items:center}._button_uu72s_1{cursor:pointer;padding:10px;border-radius:12px}._button_uu72s_1:hover{background-color:#f0f0f0}._disabled_uu72s_17{cursor:default}._disabled_uu72s_17:hover{background-color:inherit}._devices_1b6y1_1{display:flex;flex-direction:row;gap:4px;background:var(--background-color);padding:4px;border-radius:16px}._device_1b6y1_1{display:flex;flex-direction:row;gap:0px;padding:6px 8px;align-items:center;justify-content:center;cursor:pointer;border-radius:12px;border:1px solid var(--background-color)}._device_1b6y1_1:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_1b6y1_26{background-color:#fff}._active_1b6y1_26:hover{border:1px solid var(--background-color);box-shadow:none}._header_2d8xd_1{display:flex;flex-direction:row;gap:24px;width:100%;padding:11px 22px;line-height:20px;border-bottom:var(--default-border);align-items:center;justify-content:space-between}._left_2d8xd_13,._right_2d8xd_14{display:flex;flex-direction:row;gap:24px;align-items:center}._preview_93shy_2{display:flex;flex-direction:row;gap:4px;align-items:center;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_93shy_2:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_93shy_23{background-color:var(--background-color)}._active_93shy_23:hover{border:1px solid #fff;box-shadow:none}._settings_u4cv4_1{display:flex;flex-direction:row;gap:20px;align-items:center;color:var(--accent-color)}._pages_1mwe1_1{position:relative}._default_1mwe1_5{display:flex;flex-direction:row;gap:4px;align-items:center;padding:10px 12px;background-color:var(--background-color);border-radius:8px;cursor:pointer;position:relative}._text_1mwe1_17{padding-right:4px;color:var(--main-color);flex:1 1 auto}._modal_1mwe1_23{display:flex;flex-direction:row;gap:0px;position:absolute;top:45px;width:320px;left:0;z-index:5000;background-color:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:8px 12px;flex-direction:column}._page_1mwe1_1{display:flex;flex-direction:row;gap:8px;align-items:center;padding:12px 8px;border-radius:8px;cursor:pointer}._hoverable_1mwe1_49{background-color:var(--background-color)}._separator_1mwe1_53{border-bottom:var(--default-border)}._button_1mwe1_57{display:flex;flex-direction:row;gap:8px;background:inherit;color:#ff3f19;align-items:center;justify-content:start;padding:16px 8px 12px;transition:.2s}._button_1mwe1_57:hover{background-color:var(--background-color)}._items_1mwe1_72{max-height:400px;overflow-y:scroll;height:100%}._zoom_1q1ud_1{display:flex;flex-direction:row;gap:4px;align-items:center;background-color:var(--background-color);padding:10px 12px;border-radius:12px;cursor:pointer}._theme_1jz2h_1{display:flex;flex-direction:row;gap:4px;align-items:center;padding:9px 12px;background:#e5fadd;color:#338b13;border-radius:100px}._exit_1wk4t_1{display:flex;flex-direction:row;gap:8px;border-bottom:var(--default-border);align-items:center;padding:22px;cursor:pointer}._text_1wk4t_11{color:var(--main-color);line-height:20px}._navbar_14j8e_1{width:100px;border-right:var(--default-border)}._main_14j8e_6{display:flex;flex-direction:column;gap:8px;padding:16px 12px}._block_14j8e_13{display:flex;flex-direction:column;gap:4px;align-items:center;color:var(--accent-color);line-height:20px;padding:12px 24px;cursor:pointer;border:1px solid #fff;border-radius:16px}._block_14j8e_13:hover{border:var(--default-border);box-shadow:0 0 1px #dfdfdf}._active_14j8e_30{background-color:var(--background-color);color:var(--main-color)}._active_14j8e_30:hover{border:1px solid #fff;box-shadow:none}._preview_1howr_1{display:flex;flex-direction:row;gap:0px;width:100%;background-color:var(--background-color);padding:16px 32px 0;position:relative;align-items:center;justify-content:center;z-index:500}._main_1howr_14{display:flex;flex-direction:column;gap:0px;width:100%;overflow-y:auto;height:calc(100vh - 85px);position:relative;z-index:1}._content_1howr_25{background-color:#fff;border:var(--default-border);border-bottom:none;height:100%}._loading_1howr_32{display:flex;flex-direction:row;gap:0px;width:100%;height:100%;justify-content:center;align-items:center}._loader_1howr_42{border:4px solid rgba(0,0,0,.1);border-left-color:#fff;border-radius:50%;width:40px;height:40px;animation:_spin_1howr_1 1s linear infinite}@keyframes _spin_1howr_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._header_obebc_1{display:flex;flex-direction:row;gap:0px;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_obebc_16{display:flex;flex-direction:row;gap:8px;left:28px;top:28px;position:absolute;align-items:center}._circle_obebc_16{width:12px;height:12px;border-radius:50%;border:.5px solid #e6e6e6}._red_obebc_33{background:#ff5f57}._green_obebc_37{background:#28c840}._yellow_obebc_41{background:#febc2e}._input_obebc_45{display:flex;flex-direction:row;gap:0px;background-color:var(--background-color);padding:6px 8px;max-width:480px;width:100%;border-radius:6px}._main_obebc_56{display:flex;flex-direction:row;gap:4px;flex:1 1 auto;align-items:center;justify-content:center}._text_obebc_65{font-weight:600;font-size:12px;line-height:16px;margin:0 0 0 4px}._content_glpob_1{display:flex;flex-direction:column;gap:0px;width:100%;height:100%}._main_glpob_9{flex:1 0 auto}._block_glpob_13{position:relative;cursor:pointer;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}._active_glpob_20{border:2px solid #ff3f19}._name_glpob_24{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_glpob_38{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;align-items:center;justify-content:center;text-align:center}._icon_glpob_49{display:flex;flex-direction:row;gap:0px;width:64px;height:64px;background-color:var(--background-color);border-radius:50%;justify-content:center;align-items:center;margin:0 0 8px}._title_glpob_62{font-weight:700;font-size:24px;line-height:32px}._text_glpob_68{font-size:16px;line-height:24px;color:var(--accent-color)}._sections_glpob_74{display:flex;flex-direction:row;gap:24px;padding:0 20px;margin:20px 0 0;flex-wrap:wrap;justify-content:center}._section_glpob_74{display:flex;flex-direction:row;gap:10px;cursor:pointer;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_1cz73_1{display:flex;flex-direction:row;gap:0px;position:absolute;height:fit-content();flex-direction:column;right:10px;z-index:20;padding:10px;cursor:auto}._content_1cz73_14{height:100%;border:1px solid #e6e6e6;border-radius:8px;background-color:#fff;padding:8px;max-width:60px;width:100%}._button_1cz73_24{display:flex;flex-direction:row;gap:0px;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._moveButton_1cz73_34:hover{background-color:var(--background-color)}._border_1cz73_38{border-bottom:var(--default-border)}._deleteButton_1cz73_42:hover{background-color:#dd6363;color:#fff}._results_12p5x_1{display:flex;flex-direction:column;gap:20px;padding:8px}._name_12p5x_8{color:var(--main-color);font-weight:600;font-size:16px;line-height:24px}._product_12p5x_15{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between;cursor:pointer}._search_186hm_1{display:flex;flex-direction:row;gap:10px;background:var(--background-color);padding:8px 12px;align-items:center;border-radius:12px;width:100%;margin:8px 0}._input_186hm_13{width:100%;font-size:16px;line-height:24px;color:var(--main-color)}._input_186hm_13::placeholder{color:#c2c2c2}._sidebar_1yyyy_1{max-width:320px;width:100%;padding:16px;border-right:var(--default-border);height:calc(100vh - 60px);position:relative}._title_1yyyy_10{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;padding-bottom:8px}._active_1yyyy_18{display:flex;flex-direction:row;gap:8px;align-items:center}._layers_1on0q_1{display:flex;flex-direction:column;gap:0px;position:relative;height:100%}._block_1on0q_9{display:flex;flex-direction:row;gap:4px;position:relative;align-items:center;font-size:16px;line-height:24px;padding:8px 12px;border-radius:8px;cursor:pointer}._block_1on0q_9:hover{background-color:var(--background-color)}._dragging_1on0q_25{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_1on0q_33{background:#ffeae5}._add_1on0q_37{display:flex;flex-direction:row;gap:0px;z-index:2;position:absolute;justify-content:center;align-items:center;bottom:0;left:0;border-bottom:2px solid #ff3f19;width:100%}._button_1on0q_51{display:flex;flex-direction:row;gap:0px;position:relative;justify-content:center;align-items:center;top:12px;background-color:#ff3f19;width:24px;height:24px;border-radius:50%;padding:4px}._empty_1on0q_66{display:flex;flex-direction:column;gap:4px;justify-content:center;height:100%;width:100%;align-items:center;text-align:center;color:var(--accent-color)}._title_1on0q_78{font-size:16px;line-height:24px;font-weight:700;color:var(--accent-color)}._icon_1on0q_85{margin:0 0 12px}._text_1on0q_89{font-size:16px;font-weight:400;line-height:24px}._highlight_1on0q_95{color:#ff3f19;cursor:pointer}._block_586dq_1{display:flex;flex-direction:row;gap:4px;position:relative;align-items:center;font-size:16px;line-height:24px;padding:8px 12px;border-radius:8px;cursor:pointer}._block_586dq_1:hover{background-color:var(--background-color)}._theme_1wwlz_1{display:flex;flex-direction:column;gap:0px}._block_1wwlz_7{display:flex;flex-direction:row;gap:8px;justify-content:start;align-items:center;width:100%;padding:16px 8px;cursor:pointer;border-radius:8px}._block_1wwlz_7:hover{background-color:var(--background-color)}._name_1wwlz_22{flex:1 1 auto}._back_2jwrk_1{display:flex;flex-direction:row;gap:8px;align-items:center;padding-bottom:8px}._render_2jwrk_9{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_2jwrk_24{animation:.2s _open_2jwrk_24 forwards}@keyframes _open_2jwrk_24{0%{transform:translate(320px);z-index:1}99%{z-index:1}to{z-index:5000;transform:translate(0)}}@keyframes _close_2jwrk_51{0%{z-index:1;transform:translate(0)}to{z-index:1;transform:translate(320px)}}._close_2jwrk_51{animation:.2s _close_2jwrk_51 forwards}._clicked_2jwrk_55{opacity:0}._title_2jwrk_59{color:var(--main-color);font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._button_2jwrk_67{align-self:center;flex:1}._loading_2jwrk_72{flex:1 1 auto}._settings_2jwrk_76{flex:1 1 100%;overflow-y:scroll;overflow-x:hidden}._deleteButton_2jwrk_82{display:flex;flex-direction:row;gap:0px;align-items:center;border-radius:8px;padding:8px;transition:.2s background-color}._deleteButton_2jwrk_82:hover{background-color:#dd6363;color:#fff}._settings_ss3tc_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_ss3tc_16{transform:translate(0)}._close_ss3tc_20{transform:translate(320px)}._header_ss3tc_24{display:flex;flex-direction:row;gap:8px;align-items:center}._title_ss3tc_31{font-weight:700;font-size:20px;line-height:24px;flex:1 1 auto}._addButton_ss3tc_38{display:flex;flex-direction:row;gap:4px;color:#ff3f19;align-items:center;cursor:pointer}._wrapper_joj7w_1{overflow-y:scroll}._category_joj7w_5{display:flex;flex-direction:column;gap:0px}._categoryTitle_joj7w_11{font-weight:600;font-size:16px;line-height:24px}._color_joj7w_17{display:flex;flex-direction:column;gap:0px}._color_joj7w_17:not(:last-child){border-bottom:var(--default-border)}._content_joj7w_26{display:flex;flex-direction:row;gap:8px;padding:12px 0;align-items:center;flex:1 1 auto}._preview_joj7w_35{width:39px;height:39px;flex:0 0 39px;padding:5px;border-radius:50%;border:1px solid #e6e6e6}._wrapper_dv4am_2{overflow-y:scroll}._category_dv4am_6{display:flex;flex-direction:column;gap:0px}._categoryTitle_dv4am_12{font-weight:600;font-size:16px;line-height:24px}._color_dv4am_18{display:flex;flex-direction:column;gap:8px}._name_dv4am_24{line-height:20px;padding:0 4px 4px}._content_dv4am_29{display:flex;flex-direction:column;gap:0px;width:100%}._label_dv4am_36{display:flex;flex-direction:row;gap:5px;padding:8px 12px;border-radius:12px;align-items:center;width:100%;background-color:var(--background-color);cursor:pointer}._input_dv4am_48[type=color]{width:20px;height:20px;padding:1px}._input_dv4am_48{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:100%;border:none;padding:0;cursor:pointer;border-radius:50%}._input_dv4am_48::-webkit-color-swatch{border-radius:50%;border:none}._input_dv4am_48::-webkit-color-swatch-wrapper{padding:0;border-radius:50%}._title_dv4am_74{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._field_dv4am_82{display:flex;flex-direction:column;gap:10px;padding:16px 0}._field_dv4am_82:not(:last-child){border-bottom:var(--default-border)}._alignments_dv4am_92{display:flex;flex-direction:column;gap:10px}._lineField_dv4am_98{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center}._style_dv4am_106{display:flex;flex-direction:column;gap:8px;flex:1 0 50%}._header_dv4am_113{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._wrapper_lov6e_1{overflow-y:scroll}._category_lov6e_5{display:flex;flex-direction:column;gap:0px}._categoryTitle_lov6e_11{font-weight:600;font-size:16px;line-height:24px}._font_lov6e_17{display:flex;flex-direction:row;gap:8px;padding:12px 0;align-items:center;position:relative;flex:1 1 auto;cursor:pointer}._font_lov6e_17:hover{background-color:var(--background-color);border-radius:8px}._font_lov6e_17:not(:last-child){border-bottom:var(--default-border)}._font_lov6e_17:not(:last-child):hover{border-bottom:1px solid var(--background-color)}._content_lov6e_38{display:flex;flex-direction:column;gap:0px;width:100%}._icon_lov6e_45{display:flex;flex-direction:row;gap:0px;padding:8px;border-radius:8px;background-color:var(--background-color);align-items:center;justify-content:center}._paragraph_lov6e_56{padding:12px}._deleteIcon_lov6e_60{position:absolute;right:10px;width:20px;height:20px}._iconButton_lov6e_67{width:32px;height:32px}._wrapper_smgf8_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_smgf8_16{transform:translate(0)}._close_smgf8_20{transform:translate(320px)}._header_smgf8_24{display:flex;flex-direction:row;gap:8px;align-items:center;margin:0 0 10px}._title_smgf8_32{font-weight:700;font-size:20px;line-height:24px}._options_smgf8_38{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_smgf8_45{opacity:0}._wrapper_1phvv_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_1phvv_16{transform:translate(0)}._close_1phvv_20{transform:translate(320px)}._header_1phvv_24{display:flex;flex-direction:row;gap:8px;align-items:center;margin:0 0 10px}._title_1phvv_32{font-weight:700;font-size:20px;line-height:24px}._options_1phvv_38{display:flex;flex-direction:column;gap:10px;flex:1 1 auto}._clicked_1phvv_45{opacity:0}._label_1phvv_49{font-size:14px;font-weight:400;line-height:20px;color:var(--accent-color)}._alignments_1phvv_56{display:flex;flex-direction:column;gap:10px}._blocks_1phvv_62{display:flex;flex-direction:row;gap:8px;align-items:center}._alignment_1phvv_56{padding:8px;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_1phvv_77{border:1px solid #ff3f19}._wrapper_gibny_1{display:flex;flex-direction:column;gap:20px;background:#fff;max-width:640px;width:100%;padding:16px 24px;border-radius:16px}._header_gibny_12{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;font-size:24px;font-weight:700;line-height:32px}._content_gibny_23{display:flex;flex-direction:column;gap:10px;overflow-y:scroll;max-height:500px}._buttons_gibny_31{display:flex;flex-direction:row;gap:12px;justify-content:end}._cancel_gibny_38{background-color:var(--background-color);color:var(--accent-color)}._label_gibny_43,._description_gibny_44{width:100%;color:var(--accent-color);line-height:20px;font-size:14px;font-weight:400}._preview_gibny_52{display:flex;flex-direction:column;gap:10px}._block_gibny_58{display:flex;flex-direction:column;gap:0px;padding:24px;border:1px solid var(--background-color);border-radius:8px}._slug_gibny_67{line-height:20px;color:#ff3f19;margin-bottom:4px}._title_gibny_73{font-weight:600;font-size:16px;line-height:24px}._layout_douh4_1{display:flex;flex-direction:row;gap:0px;width:100%;height:100%;position:relative}._main_douh4_10{display:flex;flex-direction:column;gap:0px;width:100%;position:relative}._content_douh4_18{display:flex;flex-direction:row;gap:0px;position:relative;height:100%}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--billgang-color-signal-danger: #c12a2a;--billgang-color-brand-default: #ff3f19;--billgang-color-brand-light: #ffeae5;--billgang-color-brand-lighter: rgba(255, 64, 26, .1);--billgang-color-surface-0: #f8f8f8;--billgang-color-surface-100: #ffffff;--billgang-color-surface-200: #c2c2c2;--billgang-color-text-brandDefault: #252525;--billgang-color-text-secondary: #757575;--billgang-color-border-default: #f0f0f0;--billgang-color-border-hover: #e6e6e6;--billgang-color-shadow-0: #dfdfdf;--billgang-color-success-background: #e5fadd;--billgang-color-success-text: #338b13;--billgang-color-warning-background: #faf8e6;--billgang-color-warning-text: #c1972a;--billgang-color-error-background: #fae6e6;--billgang-color-dialog-backdrop: rgba(37, 37, 37, .25);--billgang-color-field-background-default: var( --billgang-color-surface-200 );--billgang-color-field-background-hover: var(--billgang-color-surface-100);--billgang-color-field-background-focus: var(--billgang-color-surface-100);--billgang-color-field-border-default: var(--billgang-color-surface-200);--billgang-color-field-border-hover: var(--billgang-color-surface-200);--billgang-color-field-border-focus: var(--billgang-color-brand-default);--billgang-shadow-0: 0 1px 0 var(--billgang-color-shadow-0);--billgang-shadow-field: 0 0 0 3px var(--billgang-color-brand-light);--billgang-shadow-dialog: 0 10px 20px rgba(0, 0, 0, .05)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.flex-center{display:flex;align-items:center;justify-content:center}.icon-wrapper{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:24px;background-color:var(--billgang-color-surface-0)}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-4{top:1rem;right:1rem;bottom:1rem;left:1rem}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.bottom-3{bottom:.75rem}.bottom-\\[60px\\]{bottom:60px}.left-0{left:0}.left-4{left:1rem}.right-0{right:0}.right-3{right:.75rem}.right-6{right:1.5rem}.right-\\[14px\\]{right:14px}.top-0{top:0}.top-6{top:1.5rem}.-z-50{z-index:-50}.z-10{z-index:10}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.row-span-2{grid-row:span 2 / span 2}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\\[6px\\]{margin-left:6px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-\\[10px\\]{margin-right:10px}.mr-auto{margin-right:auto}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-2\\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-\\[1px\\]{margin-top:1px}.mt-\\[2px\\]{margin-top:2px}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[21px\\]{height:21px}.h-\\[276px\\]{height:276px}.h-\\[28px\\]{height:28px}.h-\\[38px\\]{height:38px}.h-\\[4px\\]{height:4px}.h-\\[56px\\]{height:56px}.h-\\[80\\%\\]{height:80%}.h-\\[92\\%\\]{height:92%}.h-\\[92px\\]{height:92px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-8{max-height:2rem}.max-h-\\[230px\\]{max-height:230px}.min-h-\\[300px\\]{min-height:300px}.min-h-\\[96px\\]{min-height:96px}.min-h-svh{min-height:100svh}.w-1{width:.25rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\\[120px\\]{width:120px}.w-\\[160px\\]{width:160px}.w-\\[20px\\]{width:20px}.w-\\[21px\\]{width:21px}.w-\\[256px\\]{width:256px}.w-\\[28px\\]{width:28px}.w-\\[56px\\]{width:56px}.w-\\[calc\\(100\\%\\/6\\)\\]{width:calc(100% / 6)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-12{min-width:3rem}.min-w-4{min-width:1rem}.min-w-8{min-width:2rem}.min-w-\\[120px\\]{min-width:120px}.min-w-\\[18px\\]{min-width:18px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-\\[100\\%\\]{max-width:100%}.max-w-\\[1120px\\]{max-width:1120px}.max-w-\\[368px\\]{max-width:368px}.max-w-\\[376px\\]{max-width:376px}.max-w-\\[40\\%\\]{max-width:40%}.max-w-\\[456px\\]{max-width:456px}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[65\\%\\]{max-width:65%}.max-w-\\[80\\%\\]{max-width:80%}.max-w-\\[800px\\]{max-width:800px}.max-w-\\[85\\%\\]{max-width:85%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\\[minmax\\(120px\\,auto\\)_minmax\\(0\\,20\\%\\)_repeat\\(4\\,minmax\\(min-content\\,auto\\)\\)\\]{grid-template-columns:minmax(120px,auto) minmax(0,20%) repeat(4,minmax(min-content,auto))}.grid-cols-\\[minmax\\(120px\\,auto\\)_repeat\\(5\\,minmax\\(min-content\\,auto\\)\\)\\]{grid-template-columns:minmax(120px,auto) repeat(5,minmax(min-content,auto))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.\\!items-start{align-items:flex-start!important}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-\\[6px\\]{gap:6px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[100px\\]{border-radius:100px}.rounded-\\[32px\\]{border-radius:32px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-\\[6px\\]{border-radius:6px}.rounded-base{border-radius:12px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-none{border-radius:0}.rounded-sm{border-radius:8px}.rounded-xl{border-radius:24px}.rounded-t-xl{border-top-left-radius:24px;border-top-right-radius:24px}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\\[1px\\]{border-width:1px}.border-b,.border-b-\\[1px\\]{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.\\!border-brandDefault{border-color:var(--billgang-color-brand-default)!important}.border-borderDefault{border-color:var(--billgang-color-border-default)}.border-borderHover{border-color:var(--billgang-color-border-hover)}.border-brandDefault{border-color:var(--billgang-color-brand-default)}.border-textPrimary{border-color:var(--billgang-color-text-brandDefault)}.border-transparent{border-color:transparent}.border-x-borderDefault{border-left-color:var(--billgang-color-border-default);border-right-color:var(--billgang-color-border-default)}.border-x-brandDefault{border-left-color:var(--billgang-color-brand-default);border-right-color:var(--billgang-color-brand-default)}.border-x-surface100{border-left-color:var(--billgang-color-surface-100);border-right-color:var(--billgang-color-surface-100)}.border-b-transparent{border-bottom-color:transparent}.border-t-borderDefault{border-top-color:var(--billgang-color-border-default)}.border-t-brandDefault{border-top-color:var(--billgang-color-brand-default)}.border-t-surface100{border-top-color:var(--billgang-color-surface-100)}.\\!bg-surface0{background-color:var(--billgang-color-surface-0)!important}.bg-\\[rgba\\(37\\,37\\,37\\,0\\.24\\)\\]{background-color:#2525253d}.bg-borderDefault{background-color:var(--billgang-color-border-default)}.bg-brandDefault{background-color:var(--billgang-color-brand-default)}.bg-brandLight{background-color:var(--billgang-color-brand-light)}.bg-signalDangerBackground{background-color:var(--billgang-color-error-background)}.bg-successBackground{background-color:var(--billgang-color-success-background)}.bg-surface0{background-color:var(--billgang-color-surface-0)}.bg-surface100{background-color:var(--billgang-color-surface-100)}.bg-textPrimary{background-color:var(--billgang-color-text-brandDefault)}.bg-transparent{background-color:transparent}.bg-warningBackground{background-color:var(--billgang-color-warning-background)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-brandDefault{fill:var(--billgang-color-brand-default)}.fill-signalDanger{fill:var(--billgang-color-signal-danger)}.fill-surface100{fill:var(--billgang-color-surface-100)}.fill-textPrimary{fill:var(--billgang-color-text-brandDefault)}.fill-textSecondary{fill:var(--billgang-color-text-secondary)}.stroke-borderDefault{stroke:var(--billgang-color-border-default)}.stroke-brandDefault{stroke:var(--billgang-color-brand-default)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[12px_16px\\]{padding:12px 16px}.p-\\[12px_16px_10px\\]{padding:12px 16px 10px}.p-\\[4px_8px\\]{padding:4px 8px}.p-\\[6px\\]{padding:6px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[2px\\]{padding-top:2px;padding-bottom:2px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-9{padding-bottom:2.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-9{padding-left:2.25rem}.pl-\\[6px\\]{padding-left:6px}.pr-10{padding-right:2.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-base{font-size:16px}.text-lg{font-size:20px}.text-sm{font-size:14px}.text-xl{font-size:24px}.text-xs{font-size:12px}.text-xxl{font-size:32px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-10{line-height:2.5rem}.text-brandDefault{color:var(--billgang-color-brand-default)}.text-signalDanger{color:var(--billgang-color-signal-danger)}.text-successText{color:var(--billgang-color-success-text)}.text-surface100{color:var(--billgang-color-surface-100)}.text-surface200{color:var(--billgang-color-surface-200)}.text-textPrimary{color:var(--billgang-color-text-brandDefault)}.text-textSecondary{color:var(--billgang-color-text-secondary)}.text-warningText{color:var(--billgang-color-warning-text)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-shadow0{--tw-shadow: var(--billgang-shadow-0);--tw-shadow-colored: var(--billgang-shadow-0);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: var(--billgang-color-shadow-0);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-2{outline-width:2px}.outline-offset-\\[-1px\\]{outline-offset:-1px}.outline-brandDefault{outline-color:var(--billgang-color-brand-default)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}body{font-family:Archivo,sans-serif;color:var(--billgang-color-text-brandDefault)}html,body,#root{height:100%}.grecaptcha-badge{visibility:hidden}.placeholder\\:text-surface200::-moz-placeholder{color:var(--billgang-color-surface-200)}.placeholder\\:text-surface200::placeholder{color:var(--billgang-color-surface-200)}.first\\:rounded-l-base:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.last\\:rounded-r-base:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.last\\:border-r-0:last-child{border-right-width:0px}.last-of-type\\:border-none:last-of-type{border-style:none}.last-of-type\\:pb-0:last-of-type{padding-bottom:0}.hover\\:bg-surface100:hover{background-color:var(--billgang-color-surface-100)}.hover\\:text-textPrimary:hover{color:var(--billgang-color-text-brandDefault)}.hover\\:underline:hover{text-decoration-line:underline}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}}@media (min-width: 768px){.md\\:bottom-auto{bottom:auto}.md\\:left-1\\/2{left:50%}.md\\:top-1\\/2{top:50%}.md\\:mb-0{margin-bottom:0}.md\\:ml-auto{margin-left:auto}.md\\:mr-4{margin-right:1rem}.md\\:mt-0{margin-top:0}.md\\:mt-5{margin-top:1.25rem}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-\\[92px\\]{height:92px}.md\\:h-auto{height:auto}.md\\:h-full{height:100%}.md\\:h-svh{height:100svh}.md\\:max-h-svh{max-height:100svh}.md\\:min-h-\\[92px\\]{min-height:92px}.md\\:w-\\[320px\\]{width:320px}.md\\:w-\\[40\\%\\]{width:40%}.md\\:w-\\[50\\%\\]{width:50%}.md\\:w-\\[640px\\]{width:640px}.md\\:w-\\[720px\\]{width:720px}.md\\:w-auto{width:auto}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:w-full{width:100%}.md\\:max-w-\\[520px\\]{max-width:520px}.md\\:-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:scale-50{--tw-scale-x: .5;--tw-scale-y: .5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:scale-\\[1\\]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-col{flex-direction:column}.md\\:flex-col-reverse{flex-direction:column-reverse}.md\\:items-start{align-items:flex-start}.md\\:items-end{align-items:flex-end}.md\\:justify-center{justify-content:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-2{gap:.5rem}.md\\:gap-3{gap:.75rem}.md\\:overflow-auto{overflow:auto}.md\\:rounded-none{border-radius:0}.md\\:rounded-xl{border-radius:24px}.md\\:border-none{border-style:none}.md\\:bg-transparent{background-color:transparent}.md\\:p-10{padding:2.5rem}.md\\:p-4{padding:1rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-6{padding-bottom:1.5rem}.md\\:pl-4{padding-left:1rem}.md\\:pr-4{padding-right:1rem}.md\\:pt-0{padding-top:0}.md\\:opacity-0{opacity:0}.md\\:opacity-100{opacity:1}}@media (min-width: 1024px){.lg\\:bottom-10{bottom:2.5rem}.lg\\:left-auto{left:auto}.lg\\:right-0{right:0}.lg\\:col-span-1{grid-column:span 1 / span 1}.lg\\:col-span-4{grid-column:span 4 / span 4}.lg\\:mb-0{margin-bottom:0}.lg\\:ml-3{margin-left:.75rem}.lg\\:h-\\[72px\\]{height:72px}.lg\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:flex-row{flex-direction:row}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-4{gap:1rem}.lg\\:p-6{padding:1.5rem}.lg\\:py-3{padding-top:.75rem;padding-bottom:.75rem}.lg\\:pb-6{padding-bottom:1.5rem}}@media (min-width: 1280px){.xl\\:mt-1{margin-top:.25rem}.xl\\:block{display:block}.xl\\:flex{display:flex}.xl\\:max-w-\\[320px\\]{max-width:320px}.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:flex-row{flex-direction:row}.xl\\:rounded-base{border-radius:12px}.xl\\:border-r{border-right-width:1px}.xl\\:border-none{border-style:none}.xl\\:bg-surface0{background-color:var(--billgang-color-surface-0)}.xl\\:p-6{padding:1.5rem}.xl\\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.xl\\:pr-0{padding-right:0}.xl\\:pr-10{padding-right:2.5rem}.xl\\:pr-4{padding-right:1rem}.xl\\:hover\\:bg-surface0:hover{background-color:var(--billgang-color-surface-0)}}._accordion_9e4oa_1{border-radius:24px;overflow:hidden;transition:all .3s ease;background-color:var(--background-color);padding:24px}._header_9e4oa_9{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;cursor:pointer;font-weight:700}._header_9e4oa_9 ._icon_9e4oa_18{transition:transform .3s ease}._header_9e4oa_9 ._icon_9e4oa_18._open_9e4oa_21{transform:rotate(180deg)}._content_9e4oa_25{overflow:hidden;transition:height .3s ease}._wrapper_9rr5j_2{display:flex;flex-direction:column;gap:10px}._alignmentBlock_9rr5j_8{display:flex;flex-direction:column;gap:6px;padding:10px 0 16px}._title_9rr5j_15{font-weight:700;line-height:24px;font-size:16px;color:var(--main-color)}._subtitle_9rr5j_22{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._alignmentContent_9rr5j_29{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:stretch}._alignments_9rr5j_37{border-radius:12px;background:var(--background-color);display:grid;gap:4px;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);flex:0 0 50%}._alignment_9rr5j_8{display:flex;flex-direction:row;gap:0px;cursor:pointer;height:100%;width:100%;align-items:center;justify-content:center}._circle_9rr5j_58{width:6px;height:6px;border-radius:50%;background-color:#c2c2c2}._paddings_9rr5j_65{border-radius:12px;display:grid;gap:4px;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._padding_9rr5j_65{display:flex;flex-direction:row;gap:4px;width:68px;align-items:center;background:var(--background-color);border-radius:12px;padding:10px 8px}._input_9rr5j_84{width:100%}._subtitle_1qrz9_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_1qrz9_8,._text_1qrz9_9{display:flex;flex-direction:column;gap:0px;padding:10px 0 16px;border-bottom:var(--default-border)}._top_1qrz9_17{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1qrz9_26{display:flex;flex-direction:column;gap:6px}._typeTexts_rcw8p_1{display:flex;flex-direction:row;gap:8px;align-items:center}._block_rcw8p_8{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_rcw8p_21{border:1px solid #ff3f19}._subtitle_cuny2_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_cuny2_8,._text_cuny2_9,._productsBlock_cuny2_10{display:flex;flex-direction:column;gap:12px;padding:10px 0 16px;width:100%}._productsBlock_cuny2_10{position:relative}._top_cuny2_22{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_cuny2_31{display:flex;flex-direction:column;gap:6px}._typeTexts_cuny2_37{display:flex;flex-direction:row;gap:8px;align-items:center}._block_cuny2_44{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_cuny2_57{border:1px solid #ff3f19}._products_cuny2_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_cuny2_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_cuny2_76{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._disabled_cuny2_87{color:var(--accent-color)}._image_cuny2_91{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_cuny2_98{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_cuny2_110{flex:1 1 100%}._buttons_cuny2_114{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_cuny2_121{position:fixed;background-color:#fff;border:var(--default-border);right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_cuny2_121 ._top_cuny2_22{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._link_cuny2_141{display:flex;flex-direction:column;gap:8px}._modalOptions_cuny2_147{display:flex;flex-direction:column;gap:10px}._other_g74jx_1{display:flex;flex-direction:column;gap:6px}._subtitle_g74jx_7{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._items_g74jx_14{display:flex;flex-direction:column;gap:8px}._subtitle_1fb9q_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_1fb9q_8,._text_1fb9q_9,._productsBlock_1fb9q_10,._buttonsBlock_1fb9q_11{display:flex;flex-direction:column;gap:0px;padding:10px 0 16px}._buttonsBlock_1fb9q_11{position:relative}._top_1fb9q_22{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_1fb9q_31{display:flex;flex-direction:column;gap:6px}._typeTexts_1fb9q_37{display:flex;flex-direction:row;gap:8px;align-items:center}._block_1fb9q_44{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_1fb9q_56{border:1px solid #ff3f19}._products_1fb9q_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_1fb9q_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_1fb9q_11{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._image_1fb9q_86{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_1fb9q_93{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_1fb9q_105{flex:1 1 100%}._buttons_1fb9q_11{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_1fb9q_116{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_1fb9q_116 ._top_1fb9q_22{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._other_1fb9q_135{display:flex;flex-direction:column;gap:6px}._options_1fb9q_141{display:flex;flex-direction:column;gap:15px}._subtitle_m8qel_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_m8qel_8,._text_m8qel_9,._productsBlock_m8qel_10,._buttonsBlock_m8qel_11{display:flex;flex-direction:column;gap:0px;padding:10px 0 16px;border-bottom:var(--default-border)}._buttonsBlock_m8qel_11{position:relative}._top_m8qel_23{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_m8qel_32{display:flex;flex-direction:column;gap:6px}._typeTexts_m8qel_38{display:flex;flex-direction:row;gap:8px;align-items:center}._block_m8qel_45{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_m8qel_58{border:1px solid #ff3f19}._products_m8qel_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_m8qel_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_m8qel_11{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._image_m8qel_88{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_m8qel_95{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_m8qel_107{flex:1 1 100%}._buttons_m8qel_11{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_m8qel_118{position:fixed;background-color:#fff;right:-300px;z-index:10000;max-width:276px;width:100%;bottom:20px;padding:16px;border-radius:12px}._modal_m8qel_118 ._top_m8qel_23{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._other_m8qel_137{display:flex;flex-direction:column;gap:6px}._options_m8qel_143{display:flex;flex-direction:column;gap:15px}._wrapper_m18qi_1{display:flex;flex-direction:column;gap:6px}._subtitle_m18qi_7{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._content_m18qi_14{display:flex;flex-direction:row;gap:10px;align-items:center;width:100%}._range_m18qi_22{position:relative;flex:1}._track_m18qi_27{position:absolute;width:95%;height:6px;background-color:#f0f0f0;border-radius:9999px;z-index:1}._progress_m18qi_36{position:absolute;height:6px;width:100%;background-color:#ff3f19;transition:width .2s;border-radius:9999px;z-index:1}._dots_m18qi_46{display:flex;flex-direction:row;gap:0px;position:absolute;justify-content:space-between;width:100%}._dot_m18qi_46{width:14px;height:14px;border-radius:50%;transition:transform .2s;position:relative;top:-4px;left:0;z-index:1}._dot_m18qi_46._active_m18qi_65{background-color:#ff3f19;transform:scale(1)}._dot_m18qi_46:not(._active_m18qi_65){background-color:#e5e7eb;transform:scale(.9)}._dot_m18qi_46:hover{transform:scale(1.1)}._input_m18qi_77{position:absolute;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;cursor:pointer}._input_m18qi_77::-webkit-slider-thumb,._input_m18qi_77::-moz-range-thumb{-webkit-appearance:none!important;-moz-appearance:none;appearance:none;width:0;height:0}._countBlock_m18qi_91{display:flex;flex-direction:row;gap:10px;align-items:center;padding:8px 12px;background:var(--background-color);border-radius:12px}._count_m18qi_91{font-size:16px;font-weight:400;line-height:24px}._controls_m18qi_107{display:flex;flex-direction:column;gap:0px}._button_m18qi_113{transition:background-color .2s}._button_m18qi_113:hover{background-color:#f3f4f6}._button_m18qi_113:disabled{opacity:.5}._subtitle_16rdk_1{color:var(--accent-color);font-size:14px;line-height:20px;font-weight:400}._header_16rdk_8,._text_16rdk_9,._productsBlock_16rdk_10{display:flex;flex-direction:column;gap:12px;padding:10px 0 16px;width:100%}._productsBlock_16rdk_10{position:relative}._top_16rdk_22{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;margin:0 0 8px}._itemsBlock_16rdk_31{display:flex;flex-direction:column;gap:6px}._typeTexts_16rdk_37{display:flex;flex-direction:row;gap:8px;align-items:center}._block_16rdk_44{display:flex;flex-direction:row;gap:0px;padding:8px;align-items:center;justify-content:center;border:1px solid var(--background-color);background-color:var(--background-color);border-radius:12px;cursor:pointer}._active_16rdk_57{border:1px solid #ff3f19}._products_16rdk_10{display:flex;flex-direction:column;gap:8px;width:100%}._product_16rdk_10{display:flex;flex-direction:row;gap:8px;align-items:center;width:100%}._button_16rdk_76{display:flex;flex-direction:row;gap:6px;background:inherit;color:#ff3f19;align-items:center;justify-content:center;width:100%}._image_16rdk_87{border-radius:8px;border:var(--default-border);background-color:#fff;padding:4px}._info_16rdk_94{display:flex;flex-direction:row;gap:4px;border-radius:12px;justify-content:space-between;align-items:center;flex:1 1 auto;background-color:var(--background-color);padding:8px 12px}._name_16rdk_106{flex:1 1 100%}._buttons_16rdk_110{display:flex;flex-direction:row;gap:8px;align-items:center}._modal_16rdk_117{position:fixed;background-color:#fff;border:var(--default-border);right:-300px;top:0;z-index:10000;max-width:276px;width:100%;padding:16px;border-radius:12px}._modal_16rdk_117 ._top_16rdk_22{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._link_16rdk_137{display:flex;flex-direction:column;gap:8px}._modalOptions_16rdk_143{display:flex;flex-direction:column;gap:10px}._options_q6sjs_1{display:flex;flex-direction:column;gap:20px;border-radius:16px;border:var(--default-border);width:100%;height:fit-content;padding:24px}._price_q6sjs_12{display:flex;flex-direction:row;gap:4px;align-items:flex-start}._oldPrice_q6sjs_19{font-size:14px;font-weight:400;line-height:20px;text-decoration:line-through;color:var(--accent-color)}._newPrice_q6sjs_27{font-size:20px;font-weight:700;line-height:24px;color:var(--main-color)}._meta_q6sjs_34{display:flex;flex-direction:column;gap:10px}._info_q6sjs_40{display:flex;flex-direction:row;gap:10px;align-items:center;justify-content:space-between}._infoRight_q6sjs_48{display:flex;flex-direction:row;gap:5px;align-items:center}._buttons_q6sjs_55{display:flex;flex-direction:column;gap:8px;width:100%}._variants_q6sjs_62{display:flex;flex-direction:column;gap:20px}._variant_q6sjs_62{display:flex;flex-direction:row;gap:0px;justify-content:space-between;align-items:center;border-radius:12px;padding:12px 16px;border:2px solid #e6e6e6}._stock_q6sjs_79{font-size:14px;font-weight:400;line-height:20px;color:var(--accent-color)}._variantInfo_q6sjs_86{display:flex;flex-direction:column;gap:4px}._quantity_q6sjs_92{display:flex;flex-direction:row;gap:10px;align-items:stretch}._count_q6sjs_99{display:flex;flex-direction:row;gap:0px;flex:1 1 auto;justify-content:center;align-items:center;border:1px solid #e6e6e6}._button_q6sjs_55{display:flex;flex-direction:row;gap:0px;background:var(--background-color);border-radius:50%;padding:8px;justify-content:center;align-items:center}._activeVariant_q6sjs_120{border:2px solid #ff3f19}._chargeTypes_q6sjs_124{display:flex;flex-direction:row;gap:5px;padding:4px;background-color:var(--background-color)}._charge_q6sjs_124{display:flex;flex-direction:row;gap:0px;flex:1 1 auto;justify-content:center;align-items:center;color:var(--accent-color);padding:8px;border-radius:12px}._chargeActive_q6sjs_144{background-color:#fff;color:var(--main-color)}._button_14i4s_1{display:flex;flex-direction:row;gap:0px;align-items:center;padding:10px;background-color:var(--background-color);border-radius:12px;color:var(--accent-color);cursor:pointer;position:relative}._login_14i4s_14{padding:12px 16px}._signUp_14i4s_18{background-color:#ff3f19;color:#fff}._buttons_14i4s_23{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:16px}._modal_14i4s_32{background-color:#fff;height:100vh;position:absolute;right:0;top:0;bottom:0;align-self:flex-end;justify-self:flex-end;border-top-left-radius:24px;border-bottom-left-radius:24px;width:100%;min-width:300px;max-width:450px}._info_14i4s_48{display:flex;flex-direction:row;gap:8px;align-items:center}._top_14i4s_55{display:flex;flex-direction:row;padding:26px 24px;border-bottom:var(--default-border);align-items:center;justify-content:space-between;gap:8px}._title_14i4s_66{font-size:20px;font-weight:700;line-height:24px}._clear_14i4s_72{font-size:14px;font-weight:400;line-height:20px;color:#e6e6e6}._activeClear_14i4s_79{color:#ff3f19}._count_14i4s_83{display:flex;flex-direction:row;gap:0px;background:#ff3f19;color:#fff;width:100%;height:100%;border-radius:50%;min-width:20px;min-height:20px;align-items:center;justify-content:center}._cart_14i4s_98{display:flex;flex-direction:column;gap:0px;height:calc(100% - 76px);width:100%}._empty_14i4s_106{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;height:100%;flex:1 1 auto;color:var(--accent-color)}._empty_14i4s_106 div{padding-bottom:16px}._empty_14i4s_106 span:first-child{font-size:16px;font-weight:700;line-height:24px;text-align:center}._empty_14i4s_106 span:last-child{font-size:16px;font-weight:400;line-height:24px;text-align:center}._product_14i4s_132{display:flex;flex-direction:row;gap:0px;padding:26px 24px;align-items:center;justify-content:space-between}._products_14i4s_141{display:flex;flex-direction:column;gap:0px;flex:1 1 auto;overflow-y:scroll}._image_14i4s_149{width:56px;height:56px;border-radius:12px}._productInfo_14i4s_155{display:flex;flex-direction:row;gap:12px;align-items:center}._content_14i4s_162{display:flex;flex-direction:column;gap:4px}._name_14i4s_168{font-size:16px;font-weight:600;line-height:24px}._price_14i4s_174{font-size:16px;font-weight:400;line-height:24px}._productButtons_14i4s_180{display:flex;flex-direction:row;gap:5px;align-items:center}._productButton_14i4s_180{display:flex;flex-direction:row;gap:0px;justify-content:center;align-items:center;border-radius:12px;padding:8px;min-width:36px;min-height:36px;background-color:var(--background-color)}._productCount_14i4s_200{display:flex;flex-direction:row;gap:0px;justify-content:center;align-items:center;border-radius:12px;padding:8px;font-size:16px;font-weight:400;line-height:24px;text-align:center;color:var(--main-color);background-color:var(--background-color)}._bottom_14i4s_216{display:flex;flex-direction:column;gap:10px;width:100%;padding:26px 24px}._subtotal_14i4s_224{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:space-between}._block_14i4s_232{display:flex;flex-direction:row;gap:10px;align-items:center}._shoppingCount_14i4s_239{display:flex;flex-direction:row;gap:0px;width:12px;height:12px;border-radius:50%;align-items:center;justify-content:center;background-color:#ff3f19;color:#fff;font-size:10px;font-weight:500;line-height:12px;text-align:center;position:absolute;top:8px;right:8px}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { m as F, n as J, o as T, p as X, q as $, j as e, L as Ae, r as Qe, s as Ke, E as be, t as Ye, w as Je, c as A, I as f, x as Re, y as Z, z as Ze, B as Y, A as et, F as _e, G as tt, J as we, K as Ie, N as G, g as nt, D as ot, H as st, u as at, d as rt, h as ce, i as it, a as R, b as ae, O as fe, S as Le, P as Ne, Q as Ee, U as lt, T as ct, R as dt, V as ut, M as Te, l as ht, W as ve, X as Pe, Y as gt, e as pt, Z as mt, _ as St, $ as Ct, a0 as bt, a1 as ft, a2 as _t, a3 as wt, a4 as vt, a5 as xt } from "./root-Dypsy1hs.js";
2
+ import { m as F, n as J, o as T, p as X, q as $, j as e, L as Ae, r as Qe, s as Ke, E as be, t as Ye, w as Je, c as A, I as f, x as Re, y as Z, z as Ze, B as Y, A as et, F as _e, G as tt, J as we, K as Ie, N as G, g as nt, D as ot, H as st, u as at, d as rt, h as ce, i as it, a as R, b as ae, O as fe, S as Le, P as Ne, Q as Ee, U as lt, T as ct, R as dt, V as ut, M as Te, l as ht, W as ve, X as Pe, Y as gt, e as pt, Z as mt, _ as St, $ as Ct, a0 as bt, a1 as ft, a2 as _t, a3 as wt, a4 as vt, a5 as xt } from "./root-bb64CWCq.js";
3
3
  import C, { useMemo as Ue } from "react";
4
4
  const U = (t) => t ? t.replace(/_/g, " ").split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" and ") : "", kt = [
5
5
  {
@@ -2376,7 +2376,7 @@ const $a = (t) => {
2376
2376
  a(v);
2377
2377
  }
2378
2378
  }, [r]);
2379
- const u = window.location.hostname.includes("localhost") ? "subscriptions.billgang.store" : window.location.hostname, c = localStorage.getItem("shopPassword"), _ = localStorage.getItem("shopId") || "";
2379
+ const u = window.location.hostname.includes("localhost") ? localStorage.getItem("fakeDomain") || "subscriptions.billgang.store" : window.location.hostname, c = localStorage.getItem("shopPassword"), _ = localStorage.getItem("shopId") || "";
2380
2380
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: r && /* @__PURE__ */ e.jsx(
2381
2381
  St,
2382
2382
  {
@@ -63,7 +63,7 @@ React keys must be passed directly to JSX without using spread:
63
63
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(n=>s.set(n)),s}static accessor(t){const s=(this[j1]=this[j1]={accessors:{}}).accessors,n=this.prototype;function o(i){const l=To(i);s[l]||(F6(n,i),s[l]=!0)}return H.isArray(t)?t.forEach(o):o(t),this}}Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(Gt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});H.freezeMethods(Gt);function Vl(e,t){const r=this||Pi,s=t||r,n=Gt.from(s.headers);let o=s.data;return H.forEach(e,function(l){o=l.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function lm(e){return!!(e&&e.__CANCEL__)}function eo(e,t,r){De.call(this,e??"canceled",De.ERR_CANCELED,t,r),this.name="CanceledError"}H.inherits(eo,De,{__CANCEL__:!0});function cm(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new De("Request failed with status code "+r.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function B6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function H6(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=s[o];i||(i=u),r[n]=c,s[n]=u;let h=o,f=0;for(;h!==n;)f+=r[h++],h=h%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),u-i<t)return;const v=d&&u-d;return v?Math.round(f*1e3/v):void 0}}function V6(e,t){let r=0,s=1e3/t,n,o;const i=(u,d=Date.now())=>{r=d,n=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-r;h>=s?i(u,d):(n=u,o||(o=setTimeout(()=>{o=null,i(n)},s-h)))},()=>n&&i(n)]}const ja=(e,t,r=3)=>{let s=0;const n=H6(50,250);return V6(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,u=n(c),d=i<=l;s=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},T1=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},N1=e=>(...t)=>H.asap(()=>e(...t)),$6=Yt.hasStandardBrowserEnv?function(){const t=Yt.navigator&&/(msie|trident)/i.test(Yt.navigator.userAgent),r=document.createElement("a");let s;function n(o){let i=o;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=n(window.location.href),function(i){const l=H.isString(i)?n(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),U6=Yt.hasStandardBrowserEnv?{write(e,t,r,s,n,o){const i=[e+"="+encodeURIComponent(t)];H.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),H.isString(s)&&i.push("path="+s),H.isString(n)&&i.push("domain="+n),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function W6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function um(e,t){return e&&!W6(t)?z6(e,t):t}const q1=e=>e instanceof Gt?{...e}:e;function ln(e,t){t=t||{};const r={};function s(u,d,h){return H.isPlainObject(u)&&H.isPlainObject(d)?H.merge.call({caseless:h},u,d):H.isPlainObject(d)?H.merge({},d):H.isArray(d)?d.slice():d}function n(u,d,h){if(H.isUndefined(d)){if(!H.isUndefined(u))return s(void 0,u,h)}else return s(u,d,h)}function o(u,d){if(!H.isUndefined(d))return s(void 0,d)}function i(u,d){if(H.isUndefined(d)){if(!H.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function l(u,d,h){if(h in t)return s(u,d);if(h in e)return s(void 0,u)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>n(q1(u),q1(d),!0)};return H.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||n,f=h(e[d],t[d],d);H.isUndefined(f)&&h!==l||(r[d]=f)}),r}const dm=e=>{const t=ln({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:n,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Gt.from(i),t.url=om(um(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(H.isFormData(r)){if(Yt.hasStandardBrowserEnv||Yt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Yt.hasStandardBrowserEnv&&(s&&H.isFunction(s)&&(s=s(t)),s||s!==!1&&$6(t.url))){const u=n&&o&&U6.read(o);u&&i.set(n,u)}return t},Z6=typeof XMLHttpRequest<"u",Y6=Z6&&function(e){return new Promise(function(r,s){const n=dm(e);let o=n.data;const i=Gt.from(n.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=n,d,h,f,v,m;function p(){v&&v(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;const E=Gt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:E,config:e,request:g};cm(function(j){r(j),p()},function(j){s(j),p()},w),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(s(new De("Request aborted",De.ECONNABORTED,e,g)),g=null)},g.onerror=function(){s(new De("Network Error",De.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let S=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const w=n.transitional||im;n.timeoutErrorMessage&&(S=n.timeoutErrorMessage),s(new De(S,w.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&H.forEach(i.toJSON(),function(S,w){g.setRequestHeader(w,S)}),H.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&l!=="json"&&(g.responseType=n.responseType),u&&([f,m]=ja(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([h,v]=ja(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",v)),(n.cancelToken||n.signal)&&(d=E=>{g&&(s(!E||E.type?new eo(null,e,g):E),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const b=B6(n.url);if(b&&Yt.protocols.indexOf(b)===-1){s(new De("Unsupported protocol "+b+":",De.ERR_BAD_REQUEST,e));return}g.send(o||null)})},G6=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,n;const o=function(u){if(!n){n=!0,l();const d=u instanceof Error?u:this.reason;s.abort(d instanceof De?d:new eo(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>H.asap(l),c}},K6=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let s=0,n;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},X6=async function*(e,t){for await(const r of J6(e))yield*K6(r,t)},J6=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:s}=await t.read();if(r)break;yield s}}finally{await t.cancel()}},D1=(e,t,r,s)=>{const n=X6(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await n.next();if(u){l(),c.close();return}let h=d.byteLength;if(r){let f=o+=h;r(f)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),n.return()}},{highWaterMark:2})},cl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fm=cl&&typeof ReadableStream=="function",Q6=cl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),hm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},e4=fm&&hm(()=>{let e=!1;const t=new Request(Yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),O1=64*1024,Dc=fm&&hm(()=>H.isReadableStream(new Response("").body)),Ta={stream:Dc&&(e=>e.body)};cl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ta[t]&&(Ta[t]=H.isFunction(e[t])?r=>r[t]():(r,s)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,s)})})})(new Response);const t4=async e=>{if(e==null)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e))return(await new Request(Yt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(H.isArrayBufferView(e)||H.isArrayBuffer(e))return e.byteLength;if(H.isURLSearchParams(e)&&(e=e+""),H.isString(e))return(await Q6(e)).byteLength},r4=async(e,t)=>{const r=H.toFiniteNumber(e.getContentLength());return r??t4(t)},s4=cl&&(async e=>{let{url:t,method:r,data:s,signal:n,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=dm(e);u=u?(u+"").toLowerCase():"text";let v=G6([n,o&&o.toAbortSignal()],i),m;const p=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let g;try{if(c&&e4&&r!=="get"&&r!=="head"&&(g=await r4(d,s))!==0){let w=new Request(t,{method:"POST",body:s,duplex:"half"}),R;if(H.isFormData(s)&&(R=w.headers.get("content-type"))&&d.setContentType(R),w.body){const[j,P]=T1(g,ja(N1(c)));s=D1(w.body,O1,j,P)}}H.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:y?h:void 0});let b=await fetch(m);const E=Dc&&(u==="stream"||u==="response");if(Dc&&(l||E&&p)){const w={};["status","statusText","headers"].forEach(D=>{w[D]=b[D]});const R=H.toFiniteNumber(b.headers.get("content-length")),[j,P]=l&&T1(R,ja(N1(l),!0))||[];b=new Response(D1(b.body,O1,j,()=>{P&&P(),p&&p()}),w)}u=u||"text";let S=await Ta[H.findKey(Ta,u)||"text"](b,e);return!E&&p&&p(),await new Promise((w,R)=>{cm(w,R,{data:S,headers:Gt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,m),{cause:y.cause||y}):De.from(y,y&&y.code,e,m)}}),Oc={http:x6,xhr:Y6,fetch:s4};H.forEach(Oc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const R1=e=>`- ${e}`,n4=e=>H.isFunction(e)||e===null||e===!1,mm={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let o=0;o<t;o++){r=e[o];let i;if(s=r,!n4(r)&&(s=Oc[(i=String(r)).toLowerCase()],s===void 0))throw new De(`Unknown adapter '${i}'`);if(s)break;n[i||"#"+o]=s}if(!s){const o=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
64
64
  `+o.map(R1).join(`
65
65
  `):" "+R1(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Oc};function $l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function k1(e){return $l(e),e.headers=Gt.from(e.headers),e.data=Vl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mm.getAdapter(e.adapter||Pi.adapter)(e).then(function(s){return $l(e),s.data=Vl.call(e,e.transformResponse,s),s.headers=Gt.from(s.headers),s},function(s){return lm(s)||($l(e),s&&s.response&&(s.response.data=Vl.call(e,e.transformResponse,s.response),s.response.headers=Gt.from(s.response.headers))),Promise.reject(s)})}const pm="1.7.7",Ou={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ou[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const L1={};Ou.transitional=function(t,r,s){function n(o,i){return"[Axios v"+pm+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new De(n(i," has been removed"+(r?" in "+r:"")),De.ERR_DEPRECATED);return r&&!L1[i]&&(L1[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,l):!0}};function o4(e,t,r){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const o=s[n],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new De("option "+o+" must be "+c,De.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const Rc={assertOptions:o4,validators:Ou},xs=Rc.validators;class sn{constructor(t){this.defaults=t,this.interceptors={request:new _1,response:new _1}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
66
- `+o):s.stack=o}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ln(this.defaults,r);const{transitional:s,paramsSerializer:n,headers:o}=r;s!==void 0&&Rc.assertOptions(s,{silentJSONParsing:xs.transitional(xs.boolean),forcedJSONParsing:xs.transitional(xs.boolean),clarifyTimeoutError:xs.transitional(xs.boolean)},!1),n!=null&&(H.isFunction(n)?r.paramsSerializer={serialize:n}:Rc.assertOptions(n,{encode:xs.function,serialize:xs.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),r.headers=Gt.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,h=0,f;if(!c){const m=[k1.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,d=Promise.resolve(r);h<f;)d=d.then(m[h++],m[h++]);return d}f=l.length;let v=r;for(h=0;h<f;){const m=l[h++],p=l[h++];try{v=m(v)}catch(g){p.call(this,g);break}}try{d=k1.call(this,v)}catch(m){return Promise.reject(m)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=ln(this.defaults,t);const r=um(t.baseURL,t.url);return om(r,t.params,t.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(t){sn.prototype[t]=function(r,s){return this.request(ln(s||{},{method:t,url:r,data:(s||{}).data}))}});H.forEach(["post","put","patch"],function(t){function r(s){return function(o,i,l){return this.request(ln(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}sn.prototype[t]=r(),sn.prototype[t+"Form"]=r(!0)});class Ru{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const s=this;this.promise.then(n=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](n);s._listeners=null}),this.promise.then=n=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(n);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new eo(o,i,l),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ru(function(n){t=n}),cancel:t}}}function i4(e){return function(r){return e.apply(null,r)}}function a4(e){return H.isObject(e)&&e.isAxiosError===!0}const kc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kc).forEach(([e,t])=>{kc[t]=e});function vm(e){const t=new sn(e),r=Zh(sn.prototype.request,t);return H.extend(r,sn.prototype,t,{allOwnKeys:!0}),H.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return vm(ln(e,n))},r}const Ct=vm(Pi);Ct.Axios=sn;Ct.CanceledError=eo;Ct.CancelToken=Ru;Ct.isCancel=lm;Ct.VERSION=pm;Ct.toFormData=ll;Ct.AxiosError=De;Ct.Cancel=Ct.CanceledError;Ct.all=function(t){return Promise.all(t)};Ct.spread=i4;Ct.isAxiosError=a4;Ct.mergeConfig=ln;Ct.AxiosHeaders=Gt;Ct.formToJSON=e=>am(H.isHTMLForm(e)?new FormData(e):e);Ct.getAdapter=mm.getAdapter;Ct.HttpStatusCode=kc;Ct.default=Ct;const l4=async(e,t,r)=>{const s=localStorage.getItem("shopId")||void 0,n=localStorage.getItem("draftId"),o=`${Ci}/v2/builder/shops/${s}/drafts/${n}/${t}`;return to({url:o,withToken:!0,method:e,body:r})},c4=async()=>{const e=localStorage.getItem("shopId")||void 0,t=`${Ci}/v1/dash/shops/${e}/images`;return to({url:t,withToken:!0,method:"get"})},u4=async e=>{const t=localStorage.getItem("shopId")||void 0,r=`${Ci}/v1/dash/shops/${t}/images`;return to({url:r,withToken:!0,method:"post",body:e})},d4=async e=>{const t=localStorage.getItem("shopId")||void 0,r=localStorage.getItem("draftId"),s=`${Ci}/v2/builder/shops/${t}/drafts/${r}/pages/${e}`;return to({url:s,withToken:!0,method:"delete"})},f4=async e=>{const t=window.location.hostname.includes("localhost")?"subscriptions.billgang.store":window.location.hostname,r=`${zh}/v2/shops/${t}/pages/${e}`;try{return to({url:r,withToken:!0,method:"get"})}catch(s){if(Ct.isAxiosError(s)&&s.response&&s.response.status===404)return null;throw s}},h4=async()=>{const e=window.location.hostname.includes("localhost")?"subscriptions.billgang.store":window.location.hostname,t=`${zh}/v2/shops/${e}/settings-theme`;return to({url:t,withToken:!0,method:"get"})},to=async e=>{const{url:t,withToken:r,method:s,body:n}=e,o=r?localStorage.getItem("sellerAccessToken"):null;return(await Ct[s](t,{...n},{headers:{Authorization:`Bearer ${o}`,"Content-Type":"multipart/form-data"}})).data},A1=e=>{let t;const r=new Set,s=(u,d)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const f=t;t=d??(typeof h!="object"||h===null)?h:Object.assign({},t,h),r.forEach(v=>v(t,f))}},n=()=>t,l={setState:s,getState:n,getInitialState:()=>c,subscribe:u=>(r.add(u),()=>r.delete(u))},c=t=e(s,n,l);return l},m4=e=>e?A1(e):A1,p4=e=>e;function v4(e,t=p4){const r=x.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return x.useDebugValue(r),r}const I1=e=>{const t=m4(e),r=s=>v4(t,s);return Object.assign(r,t),r},Jt=e=>e?I1(e):I1,g4=Jt(e=>({blocks:null,setBlocks:t=>e(()=>({blocks:t})),activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t})),sourceBlocks:{},setSourceBlocks:t=>e(()=>({sourceBlocks:t})),currentInstance:null,setCurrentInstance:t=>e(()=>({currentInstance:t}))})),x4=Jt(e=>({currentDevice:{icon:"Desktop",value:"desktop"},setCurrentDevice:t=>e(()=>({currentDevice:t}))}));Jt(e=>({pageData:null,setPageData:t=>e(()=>({pageData:t}))}));const y4=Jt(e=>({activeBlock:Wh[0],setActiveBlock:t=>e(()=>({activeBlock:t}))}));function b4(e,t){let r;try{r=e()}catch{return}return{getItem:n=>{var o;const i=c=>c===null?null:JSON.parse(c,void 0),l=(o=r.getItem(n))!=null?o:null;return l instanceof Promise?l.then(i):i(l)},setItem:(n,o)=>r.setItem(n,JSON.stringify(o,void 0)),removeItem:n=>r.removeItem(n)}}const Lc=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(s){return Lc(s)(r)},catch(s){return this}}}catch(r){return{then(s){return this},catch(s){return Lc(s)(r)}}}},C4=(e,t)=>(r,s,n)=>{let o={storage:b4(()=>localStorage),partialize:p=>p,version:0,merge:(p,g)=>({...g,...p}),...t},i=!1;const l=new Set,c=new Set;let u=o.storage;if(!u)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...p)},s,n);const d=()=>{const p=o.partialize({...s()});return u.setItem(o.name,{state:p,version:o.version})},h=n.setState;n.setState=(p,g)=>{h(p,g),d()};const f=e((...p)=>{r(...p),d()},s,n);n.getInitialState=()=>f;let v;const m=()=>{var p,g;if(!u)return;i=!1,l.forEach(b=>{var E;return b((E=s())!=null?E:f)});const y=((g=o.onRehydrateStorage)==null?void 0:g.call(o,(p=s())!=null?p:f))||void 0;return Lc(u.getItem.bind(u))(o.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return[!0,o.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var E;const[S,w]=b;if(v=o.merge(w,(E=s())!=null?E:f),r(v,!0),S)return d()}).then(()=>{y==null||y(v,void 0),v=s(),i=!0,c.forEach(b=>b(v))}).catch(b=>{y==null||y(void 0,b)})};return n.persist={setOptions:p=>{o={...o,...p},p.storage&&(u=p.storage)},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:p=>(l.add(p),()=>{l.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},o.skipHydration||m(),v||f},ul=C4,w4=Jt(ul(e=>({onPreview:!1,setOnPreview:t=>e(()=>({onPreview:t})),activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t}))}),{name:"preview-storage",partialize:e=>{const{onPreview:t}=e;return{onPreview:t}}}));var Rt=[];for(var Ul=0;Ul<256;++Ul)Rt.push((Ul+256).toString(16).slice(1));function P4(e,t=0){return(Rt[e[t+0]]+Rt[e[t+1]]+Rt[e[t+2]]+Rt[e[t+3]]+"-"+Rt[e[t+4]]+Rt[e[t+5]]+"-"+Rt[e[t+6]]+Rt[e[t+7]]+"-"+Rt[e[t+8]]+Rt[e[t+9]]+"-"+Rt[e[t+10]]+Rt[e[t+11]]+Rt[e[t+12]]+Rt[e[t+13]]+Rt[e[t+14]]+Rt[e[t+15]]).toLowerCase()}var Zi,S4=new Uint8Array(16);function E4(){if(!Zi&&(Zi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Zi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zi(S4)}var _4=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const M1={randomUUID:_4};function Na(e,t,r){if(M1.randomUUID&&!t&&!e)return M1.randomUUID();e=e||{};var s=e.random||(e.rng||E4)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,P4(s)}const Fo=Jt(ul((e,t)=>({header:null,blocks:{},footer:null,currentBlock:null,positionBlock:null,setBlocks:r=>{e({blocks:r})},setHeader:r=>{e({header:r})},setFooter:r=>{e({footer:r})},createPage:r=>{const s=t().blocks;s[r]={},e({blocks:s})},deletePage:r=>{const s=t().blocks;delete s[r],e({blocks:s})},updatePage:(r,s)=>{const n=t().blocks;if(n[s])return;const o=n[r];delete n[r],n[s]=o,e({blocks:n})},setCurrentBlock:r=>{e({currentBlock:r})},setPositionBlock:r=>{e({positionBlock:r})},addBlock:(r,s)=>{const n=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(n),console.log("addHistory");const o=t().blocks,i=o[r]||{},l=t().positionBlock,c=Na();i[c]={name:s.name,value:s.value};const u=Object.keys(i);if(l===null||l>=u.length)e({blocks:{...o,[r]:i}});else{const d={name:s.name,value:{...s.value}},h=u.slice(0,l),f=u.slice(l),v={...h.reduce((m,p)=>(m[p]=i[p],m),{}),[c]:d,...f.reduce((m,p)=>(m[p]=i[p],m),{})};e({blocks:{...o,[r]:v}})}},editBlock:(r,s,n)=>{const o=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(o),console.log("addHistory");const i=t().blocks,l=i[r]||{};l[s]={name:n.name,value:{...n.value}},e({blocks:{...i,[r]:l}})},removeBlock:(r,s)=>{const n={...t().blocks};kn.getState().addHistory(n);const o=t().blocks,i=o[r]||{};delete i[s],e({blocks:{...o,[r]:i}})},moveBlock:(r,s,n)=>e(o=>{const i=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(i);const l={...o.blocks[r]},c=Object.keys(l),[u]=c.splice(s,1);c.splice(n,0,u);const d=c.reduce((h,f)=>(h[f]=l[f],h),{});return{blocks:{...o.blocks,[r]:d}}}),duplicateBlock:(r,s)=>{const n=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(n);const{blocks:o}=t(),i=o[r],l=i[s],c=Na(),u={name:l.name,value:{...l.value}},d=Object.keys(i),h=d.indexOf(s),f=d.slice(0,h+1),v=d.slice(h+1),m={...f.reduce((p,g)=>(p[g]=i[g],p),{}),[c]:u,...v.reduce((p,g)=>(p[g]=i[g],p),{})};e({blocks:{...o,[r]:m}})}}),{name:"layers-storage",partialize:e=>{const{blocks:t,header:r,footer:s}=e;return{blocks:t,header:r,footer:s}}})),gm=Jt((e,t)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,setHoverBlockId:r=>{e({hoverBlockId:r})},showModal:r=>{t().hideTimeout&&clearTimeout(t().hideTimeout),e({isModalVisible:!0,hoverBlockId:r})},hideModal:()=>{e({isModalVisible:!1,hoverBlockId:null})},startHideTimeout:()=>{if(!t().isMouseOverModal){const r=setTimeout(()=>{e({isModalVisible:!1,hoverBlockId:null})},500);e({hideTimeout:r})}},clearHideTimeout:()=>{t().hideTimeout&&(clearTimeout(t().hideTimeout),e({hideTimeout:null}))},setMouseOverModal:r=>{e({isMouseOverModal:r})},isPreviewVisible:!1,showPreview:r=>{e({isPreviewVisible:!0,hoverBlockId:r})},hidePreview:()=>{e({isPreviewVisible:!1,hoverBlockId:null})}})),j4=Jt(e=>({activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t})),activeFont:null,setActiveFont:t=>e(()=>({activeFont:t})),setThemeSettings:t=>e(()=>({themeSettings:t})),themeSettings:{colors:{brand:{primary:"#fefefe",secondary:"#fefefe",toner:"#ffffff"},background:{primary:"#fefefe",secondary:"#000000"},text_icons:{primary:"#000000",secondary:"#fefefe",tertiary:"#fefefe",disabled:"#ffffff"},lines:{divider:"#000000",border:"#fefefe"},others:{link:"#000000"}},fonts:{heading:{h1:{font:"Archivo",weight:"900",size:48},h2:{font:"Archivo",weight:"700",size:32},h3:{font:"Archivo",weight:"600",size:24},h4:{font:"Archivo",weight:"500",size:16},h5:{font:"Archivo",weight:"400",size:16},h6:{font:"Archivo",weight:"400",size:16}},paragraph:{text:{font:"Archivo",size:48,weight:"400"}}},borders:{radius:52,thickness:52},buttons:{size:26,alignment:"left",radius:32,height:40},inputs:{general:{height:48,name:"Style Name",size:48,color:"black"},field:{active:!0,color:"black",opacity:40},border:{active:!0,style:"solid",radius:0,thickness:0,color:"black"},label:{height:48,size:48,color:"black",alignment:"left"}}},updateColor:(t,r,s)=>e(n=>{const o={...n.themeSettings.colors,[t]:{...n.themeSettings.colors[t],[r]:s}};return{themeSettings:{...n.themeSettings,colors:o}}}),updateFont:(t,r,s,n)=>e(o=>{const i={...o.themeSettings.fonts,[t]:{...o.themeSettings.fonts[t],[r]:{...o.themeSettings.fonts[t][r],[s]:n}}};return{themeSettings:{...o.themeSettings,fonts:i}}}),updateBorder:(t,r)=>e(s=>{const n={...s.themeSettings.borders,[t]:r};return{themeSettings:{...s.themeSettings,borders:n}}}),updateButton:(t,r)=>e(s=>{const n={...s.themeSettings.buttons,[t]:r};return{themeSettings:{...s.themeSettings,buttons:n}}}),updateInput:(t,r,s)=>e(n=>({themeSettings:{...n.themeSettings,inputs:{...n.themeSettings.inputs,[t]:{...n.themeSettings.inputs[t],[s]:r}}}}))})),T4=Jt(ul(e=>({fonts:[],setFonts:t=>e(()=>({fonts:t}))}),{name:"fonts-storage"})),N4=Jt(e=>({settings:null,setSettings:t=>e(()=>({settings:t}))})),xm=Jt()(e=>({color:"default",initialColor:"",setInitialColor:t=>e(()=>({initialColor:t})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,setModalPosition:t=>e(()=>({modalPosition:t})),setHue:t=>e(()=>({hue:t})),setSaturation:t=>e(()=>({saturation:t})),setBrightness:t=>e(()=>({brightness:t})),setShowModal:t=>e(()=>({showModal:t})),setDragging:t=>e(()=>({dragging:t})),setActiveLabel:t=>e(()=>({activeLabel:t})),setColor:t=>e(()=>({color:t})),setUpdate:t=>e(()=>({update:t})),setColorChange:t=>e(()=>({colorChange:t}))})),q4=Jt(ul((e,t)=>({pages:null,currentPage:"/",setPages:r=>e(()=>({pages:r})),pageContext:{listings:null,products:null,reviews:null,categories:null,faqs:null,general:null},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:r=>e(()=>({editedPage:r})),setCurrentPage:r=>e(()=>({currentPage:r})),setPageContext:r=>e(()=>({pageContext:r})),setIsOpenModal:r=>e(()=>({isOpenModal:r})),setIsOpenSelectModal:r=>e(()=>({isOpenSelectModal:r})),setIsEdit:r=>e(()=>({isEdit:r})),createPage:r=>{const s=t().pages,n=Na();if(s)s[n]=r,e({pages:s});else{const o=t().setPages;o({});const i=t().pages;i[n]=r,e({pages:i})}},updatePage:(r,s)=>{const n=t().pages;n&&(n[r]={...s},e({pages:n}))},deletePage:r=>{const s=t().pages;s&&(delete s[r],e({pages:s}))}}),{name:"pages-storage",partialize:e=>{const{pages:t,pageContext:r}=e;return{pages:t,pageContext:r}}})),ku=Jt(e=>({openModal:!1,setOpenModal:t=>e(()=>({openModal:t})),onChange:null,setOnChange:t=>e(()=>({onChange:t}))})),kn=Jt((e,t)=>({past:[],future:[],addHistory:r=>{const{past:s}=t();e({past:[...s,r],future:[]})},undo:()=>{const{past:r,future:s}=t();if(r.length===0)return;const n=r[r.length-1],o=r.slice(0,-1);e({past:o,future:[Fo.getState().blocks,...s]}),Fo.getState().setBlocks(n)},redo:()=>{const{past:r,future:s}=t();if(s.length===0)return;const n=s[0],o=s.slice(1);e({past:[...r,Fo.getState().blocks],future:o}),Fo.getState().setBlocks(n)}})),D4=(e,t,r)=>{const s=e[t];return s?typeof s=="function"?s():Promise.resolve(s):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},O4="_icon_bsuj2_1",R4="_hoverable_bsuj2_5",k4="_rotated_bsuj2_9",F1={icon:O4,hoverable:R4,rotated:k4};var ym={exports:{}};/*!
66
+ `+o):s.stack=o}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ln(this.defaults,r);const{transitional:s,paramsSerializer:n,headers:o}=r;s!==void 0&&Rc.assertOptions(s,{silentJSONParsing:xs.transitional(xs.boolean),forcedJSONParsing:xs.transitional(xs.boolean),clarifyTimeoutError:xs.transitional(xs.boolean)},!1),n!=null&&(H.isFunction(n)?r.paramsSerializer={serialize:n}:Rc.assertOptions(n,{encode:xs.function,serialize:xs.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&H.merge(o.common,o[r.method]);o&&H.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),r.headers=Gt.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,h=0,f;if(!c){const m=[k1.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,d=Promise.resolve(r);h<f;)d=d.then(m[h++],m[h++]);return d}f=l.length;let v=r;for(h=0;h<f;){const m=l[h++],p=l[h++];try{v=m(v)}catch(g){p.call(this,g);break}}try{d=k1.call(this,v)}catch(m){return Promise.reject(m)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=ln(this.defaults,t);const r=um(t.baseURL,t.url);return om(r,t.params,t.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(t){sn.prototype[t]=function(r,s){return this.request(ln(s||{},{method:t,url:r,data:(s||{}).data}))}});H.forEach(["post","put","patch"],function(t){function r(s){return function(o,i,l){return this.request(ln(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}sn.prototype[t]=r(),sn.prototype[t+"Form"]=r(!0)});class Ru{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const s=this;this.promise.then(n=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](n);s._listeners=null}),this.promise.then=n=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(n);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new eo(o,i,l),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ru(function(n){t=n}),cancel:t}}}function i4(e){return function(r){return e.apply(null,r)}}function a4(e){return H.isObject(e)&&e.isAxiosError===!0}const kc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kc).forEach(([e,t])=>{kc[t]=e});function vm(e){const t=new sn(e),r=Zh(sn.prototype.request,t);return H.extend(r,sn.prototype,t,{allOwnKeys:!0}),H.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return vm(ln(e,n))},r}const Ct=vm(Pi);Ct.Axios=sn;Ct.CanceledError=eo;Ct.CancelToken=Ru;Ct.isCancel=lm;Ct.VERSION=pm;Ct.toFormData=ll;Ct.AxiosError=De;Ct.Cancel=Ct.CanceledError;Ct.all=function(t){return Promise.all(t)};Ct.spread=i4;Ct.isAxiosError=a4;Ct.mergeConfig=ln;Ct.AxiosHeaders=Gt;Ct.formToJSON=e=>am(H.isHTMLForm(e)?new FormData(e):e);Ct.getAdapter=mm.getAdapter;Ct.HttpStatusCode=kc;Ct.default=Ct;const l4=async(e,t,r)=>{const s=localStorage.getItem("shopId")||void 0,n=localStorage.getItem("draftId"),o=`${Ci}/v2/builder/shops/${s}/drafts/${n}/${t}`;return to({url:o,withToken:!0,method:e,body:r})},c4=async()=>{const e=localStorage.getItem("shopId")||void 0,t=`${Ci}/v1/dash/shops/${e}/images`;return to({url:t,withToken:!0,method:"get"})},u4=async e=>{const t=localStorage.getItem("shopId")||void 0,r=`${Ci}/v1/dash/shops/${t}/images`;return to({url:r,withToken:!0,method:"post",body:e})},d4=async e=>{const t=localStorage.getItem("shopId")||void 0,r=localStorage.getItem("draftId"),s=`${Ci}/v2/builder/shops/${t}/drafts/${r}/pages/${e}`;return to({url:s,withToken:!0,method:"delete"})},f4=async e=>{const t=window.location.hostname.includes("localhost")?localStorage.getItem("fakeDomain")||"subscriptions.billgang.store":window.location.hostname,r=`${zh}/v2/shops/${t}/pages/${e}`;try{return to({url:r,withToken:!0,method:"get"})}catch(s){if(Ct.isAxiosError(s)&&s.response&&s.response.status===404)return null;throw s}},h4=async()=>{const e=window.location.hostname.includes("localhost")?localStorage.getItem("fakeDomain")||"subscriptions.billgang.store":window.location.hostname,t=`${zh}/v2/shops/${e}/settings-theme`;return to({url:t,withToken:!0,method:"get"})},to=async e=>{const{url:t,withToken:r,method:s,body:n}=e,o=r?localStorage.getItem("sellerAccessToken"):null;return(await Ct[s](t,{...n},{headers:{Authorization:`Bearer ${o}`,"Content-Type":"multipart/form-data"}})).data},A1=e=>{let t;const r=new Set,s=(u,d)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const f=t;t=d??(typeof h!="object"||h===null)?h:Object.assign({},t,h),r.forEach(v=>v(t,f))}},n=()=>t,l={setState:s,getState:n,getInitialState:()=>c,subscribe:u=>(r.add(u),()=>r.delete(u))},c=t=e(s,n,l);return l},m4=e=>e?A1(e):A1,p4=e=>e;function v4(e,t=p4){const r=x.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return x.useDebugValue(r),r}const I1=e=>{const t=m4(e),r=s=>v4(t,s);return Object.assign(r,t),r},Jt=e=>e?I1(e):I1,g4=Jt(e=>({blocks:null,setBlocks:t=>e(()=>({blocks:t})),activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t})),sourceBlocks:{},setSourceBlocks:t=>e(()=>({sourceBlocks:t})),currentInstance:null,setCurrentInstance:t=>e(()=>({currentInstance:t}))})),x4=Jt(e=>({currentDevice:{icon:"Desktop",value:"desktop"},setCurrentDevice:t=>e(()=>({currentDevice:t}))}));Jt(e=>({pageData:null,setPageData:t=>e(()=>({pageData:t}))}));const y4=Jt(e=>({activeBlock:Wh[0],setActiveBlock:t=>e(()=>({activeBlock:t}))}));function b4(e,t){let r;try{r=e()}catch{return}return{getItem:n=>{var o;const i=c=>c===null?null:JSON.parse(c,void 0),l=(o=r.getItem(n))!=null?o:null;return l instanceof Promise?l.then(i):i(l)},setItem:(n,o)=>r.setItem(n,JSON.stringify(o,void 0)),removeItem:n=>r.removeItem(n)}}const Lc=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(s){return Lc(s)(r)},catch(s){return this}}}catch(r){return{then(s){return this},catch(s){return Lc(s)(r)}}}},C4=(e,t)=>(r,s,n)=>{let o={storage:b4(()=>localStorage),partialize:p=>p,version:0,merge:(p,g)=>({...g,...p}),...t},i=!1;const l=new Set,c=new Set;let u=o.storage;if(!u)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...p)},s,n);const d=()=>{const p=o.partialize({...s()});return u.setItem(o.name,{state:p,version:o.version})},h=n.setState;n.setState=(p,g)=>{h(p,g),d()};const f=e((...p)=>{r(...p),d()},s,n);n.getInitialState=()=>f;let v;const m=()=>{var p,g;if(!u)return;i=!1,l.forEach(b=>{var E;return b((E=s())!=null?E:f)});const y=((g=o.onRehydrateStorage)==null?void 0:g.call(o,(p=s())!=null?p:f))||void 0;return Lc(u.getItem.bind(u))(o.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return[!0,o.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var E;const[S,w]=b;if(v=o.merge(w,(E=s())!=null?E:f),r(v,!0),S)return d()}).then(()=>{y==null||y(v,void 0),v=s(),i=!0,c.forEach(b=>b(v))}).catch(b=>{y==null||y(void 0,b)})};return n.persist={setOptions:p=>{o={...o,...p},p.storage&&(u=p.storage)},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:p=>(l.add(p),()=>{l.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},o.skipHydration||m(),v||f},ul=C4,w4=Jt(ul(e=>({onPreview:!1,setOnPreview:t=>e(()=>({onPreview:t})),activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t}))}),{name:"preview-storage",partialize:e=>{const{onPreview:t}=e;return{onPreview:t}}}));var Rt=[];for(var Ul=0;Ul<256;++Ul)Rt.push((Ul+256).toString(16).slice(1));function P4(e,t=0){return(Rt[e[t+0]]+Rt[e[t+1]]+Rt[e[t+2]]+Rt[e[t+3]]+"-"+Rt[e[t+4]]+Rt[e[t+5]]+"-"+Rt[e[t+6]]+Rt[e[t+7]]+"-"+Rt[e[t+8]]+Rt[e[t+9]]+"-"+Rt[e[t+10]]+Rt[e[t+11]]+Rt[e[t+12]]+Rt[e[t+13]]+Rt[e[t+14]]+Rt[e[t+15]]).toLowerCase()}var Zi,S4=new Uint8Array(16);function E4(){if(!Zi&&(Zi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Zi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zi(S4)}var _4=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const M1={randomUUID:_4};function Na(e,t,r){if(M1.randomUUID&&!t&&!e)return M1.randomUUID();e=e||{};var s=e.random||(e.rng||E4)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,P4(s)}const Fo=Jt(ul((e,t)=>({header:null,blocks:{},footer:null,currentBlock:null,positionBlock:null,setBlocks:r=>{e({blocks:r})},setHeader:r=>{e({header:r})},setFooter:r=>{e({footer:r})},createPage:r=>{const s=t().blocks;s[r]={},e({blocks:s})},deletePage:r=>{const s=t().blocks;delete s[r],e({blocks:s})},updatePage:(r,s)=>{const n=t().blocks;if(n[s])return;const o=n[r];delete n[r],n[s]=o,e({blocks:n})},setCurrentBlock:r=>{e({currentBlock:r})},setPositionBlock:r=>{e({positionBlock:r})},addBlock:(r,s)=>{const n=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(n),console.log("addHistory");const o=t().blocks,i=o[r]||{},l=t().positionBlock,c=Na();i[c]={name:s.name,value:s.value};const u=Object.keys(i);if(l===null||l>=u.length)e({blocks:{...o,[r]:i}});else{const d={name:s.name,value:{...s.value}},h=u.slice(0,l),f=u.slice(l),v={...h.reduce((m,p)=>(m[p]=i[p],m),{}),[c]:d,...f.reduce((m,p)=>(m[p]=i[p],m),{})};e({blocks:{...o,[r]:v}})}},editBlock:(r,s,n)=>{const o=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(o),console.log("addHistory");const i=t().blocks,l=i[r]||{};l[s]={name:n.name,value:{...n.value}},e({blocks:{...i,[r]:l}})},removeBlock:(r,s)=>{const n={...t().blocks};kn.getState().addHistory(n);const o=t().blocks,i=o[r]||{};delete i[s],e({blocks:{...o,[r]:i}})},moveBlock:(r,s,n)=>e(o=>{const i=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(i);const l={...o.blocks[r]},c=Object.keys(l),[u]=c.splice(s,1);c.splice(n,0,u);const d=c.reduce((h,f)=>(h[f]=l[f],h),{});return{blocks:{...o.blocks,[r]:d}}}),duplicateBlock:(r,s)=>{const n=structuredClone(t().blocks)||JSON.parse(JSON.stringify(t().blocks));kn.getState().addHistory(n);const{blocks:o}=t(),i=o[r],l=i[s],c=Na(),u={name:l.name,value:{...l.value}},d=Object.keys(i),h=d.indexOf(s),f=d.slice(0,h+1),v=d.slice(h+1),m={...f.reduce((p,g)=>(p[g]=i[g],p),{}),[c]:u,...v.reduce((p,g)=>(p[g]=i[g],p),{})};e({blocks:{...o,[r]:m}})}}),{name:"layers-storage",partialize:e=>{const{blocks:t,header:r,footer:s}=e;return{blocks:t,header:r,footer:s}}})),gm=Jt((e,t)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,setHoverBlockId:r=>{e({hoverBlockId:r})},showModal:r=>{t().hideTimeout&&clearTimeout(t().hideTimeout),e({isModalVisible:!0,hoverBlockId:r})},hideModal:()=>{e({isModalVisible:!1,hoverBlockId:null})},startHideTimeout:()=>{if(!t().isMouseOverModal){const r=setTimeout(()=>{e({isModalVisible:!1,hoverBlockId:null})},500);e({hideTimeout:r})}},clearHideTimeout:()=>{t().hideTimeout&&(clearTimeout(t().hideTimeout),e({hideTimeout:null}))},setMouseOverModal:r=>{e({isMouseOverModal:r})},isPreviewVisible:!1,showPreview:r=>{e({isPreviewVisible:!0,hoverBlockId:r})},hidePreview:()=>{e({isPreviewVisible:!1,hoverBlockId:null})}})),j4=Jt(e=>({activeBlock:null,setActiveBlock:t=>e(()=>({activeBlock:t})),activeFont:null,setActiveFont:t=>e(()=>({activeFont:t})),setThemeSettings:t=>e(()=>({themeSettings:t})),themeSettings:{colors:{brand:{primary:"#fefefe",secondary:"#fefefe",toner:"#ffffff"},background:{primary:"#fefefe",secondary:"#000000"},text_icons:{primary:"#000000",secondary:"#fefefe",tertiary:"#fefefe",disabled:"#ffffff"},lines:{divider:"#000000",border:"#fefefe"},others:{link:"#000000"}},fonts:{heading:{h1:{font:"Archivo",weight:"900",size:48},h2:{font:"Archivo",weight:"700",size:32},h3:{font:"Archivo",weight:"600",size:24},h4:{font:"Archivo",weight:"500",size:16},h5:{font:"Archivo",weight:"400",size:16},h6:{font:"Archivo",weight:"400",size:16}},paragraph:{text:{font:"Archivo",size:48,weight:"400"}}},borders:{radius:52,thickness:52},buttons:{size:26,alignment:"left",radius:32,height:40},inputs:{general:{height:48,name:"Style Name",size:48,color:"black"},field:{active:!0,color:"black",opacity:40},border:{active:!0,style:"solid",radius:0,thickness:0,color:"black"},label:{height:48,size:48,color:"black",alignment:"left"}}},updateColor:(t,r,s)=>e(n=>{const o={...n.themeSettings.colors,[t]:{...n.themeSettings.colors[t],[r]:s}};return{themeSettings:{...n.themeSettings,colors:o}}}),updateFont:(t,r,s,n)=>e(o=>{const i={...o.themeSettings.fonts,[t]:{...o.themeSettings.fonts[t],[r]:{...o.themeSettings.fonts[t][r],[s]:n}}};return{themeSettings:{...o.themeSettings,fonts:i}}}),updateBorder:(t,r)=>e(s=>{const n={...s.themeSettings.borders,[t]:r};return{themeSettings:{...s.themeSettings,borders:n}}}),updateButton:(t,r)=>e(s=>{const n={...s.themeSettings.buttons,[t]:r};return{themeSettings:{...s.themeSettings,buttons:n}}}),updateInput:(t,r,s)=>e(n=>({themeSettings:{...n.themeSettings,inputs:{...n.themeSettings.inputs,[t]:{...n.themeSettings.inputs[t],[s]:r}}}}))})),T4=Jt(ul(e=>({fonts:[],setFonts:t=>e(()=>({fonts:t}))}),{name:"fonts-storage"})),N4=Jt(e=>({settings:null,setSettings:t=>e(()=>({settings:t}))})),xm=Jt()(e=>({color:"default",initialColor:"",setInitialColor:t=>e(()=>({initialColor:t})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,setModalPosition:t=>e(()=>({modalPosition:t})),setHue:t=>e(()=>({hue:t})),setSaturation:t=>e(()=>({saturation:t})),setBrightness:t=>e(()=>({brightness:t})),setShowModal:t=>e(()=>({showModal:t})),setDragging:t=>e(()=>({dragging:t})),setActiveLabel:t=>e(()=>({activeLabel:t})),setColor:t=>e(()=>({color:t})),setUpdate:t=>e(()=>({update:t})),setColorChange:t=>e(()=>({colorChange:t}))})),q4=Jt(ul((e,t)=>({pages:null,currentPage:"/",setPages:r=>e(()=>({pages:r})),pageContext:{listings:null,products:null,reviews:null,categories:null,faqs:null,general:null},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:r=>e(()=>({editedPage:r})),setCurrentPage:r=>e(()=>({currentPage:r})),setPageContext:r=>e(()=>({pageContext:r})),setIsOpenModal:r=>e(()=>({isOpenModal:r})),setIsOpenSelectModal:r=>e(()=>({isOpenSelectModal:r})),setIsEdit:r=>e(()=>({isEdit:r})),createPage:r=>{const s=t().pages,n=Na();if(s)s[n]=r,e({pages:s});else{const o=t().setPages;o({});const i=t().pages;i[n]=r,e({pages:i})}},updatePage:(r,s)=>{const n=t().pages;n&&(n[r]={...s},e({pages:n}))},deletePage:r=>{const s=t().pages;s&&(delete s[r],e({pages:s}))}}),{name:"pages-storage",partialize:e=>{const{pages:t,pageContext:r}=e;return{pages:t,pageContext:r}}})),ku=Jt(e=>({openModal:!1,setOpenModal:t=>e(()=>({openModal:t})),onChange:null,setOnChange:t=>e(()=>({onChange:t}))})),kn=Jt((e,t)=>({past:[],future:[],addHistory:r=>{const{past:s}=t();e({past:[...s,r],future:[]})},undo:()=>{const{past:r,future:s}=t();if(r.length===0)return;const n=r[r.length-1],o=r.slice(0,-1);e({past:o,future:[Fo.getState().blocks,...s]}),Fo.getState().setBlocks(n)},redo:()=>{const{past:r,future:s}=t();if(s.length===0)return;const n=s[0],o=s.slice(1);e({past:[...r,Fo.getState().blocks],future:o}),Fo.getState().setBlocks(n)}})),D4=(e,t,r)=>{const s=e[t];return s?typeof s=="function"?s():Promise.resolve(s):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},O4="_icon_bsuj2_1",R4="_hoverable_bsuj2_5",k4="_rotated_bsuj2_9",F1={icon:O4,hoverable:R4,rotated:k4};var ym={exports:{}};/*!
67
67
  Copyright (c) 2018 Jed Watson.
68
68
  Licensed under the MIT License (MIT), see
69
69
  http://jedwatson.github.io/classnames
@@ -5763,7 +5763,7 @@ const wR = async (e, t, r) => {
5763
5763
  method: "delete"
5764
5764
  });
5765
5765
  }, ER = async (e) => {
5766
- const t = window.location.hostname.includes("localhost") ? "subscriptions.billgang.store" : window.location.hostname, r = `${tm}/v2/shops/${t}/pages/${e}`;
5766
+ const t = window.location.hostname.includes("localhost") ? localStorage.getItem("fakeDomain") || "subscriptions.billgang.store" : window.location.hostname, r = `${tm}/v2/shops/${t}/pages/${e}`;
5767
5767
  try {
5768
5768
  return io({
5769
5769
  url: r,
@@ -5776,7 +5776,7 @@ const wR = async (e, t, r) => {
5776
5776
  throw s;
5777
5777
  }
5778
5778
  }, _R = async () => {
5779
- const e = window.location.hostname.includes("localhost") ? "subscriptions.billgang.store" : window.location.hostname, t = `${tm}/v2/shops/${e}/settings-theme`;
5779
+ const e = window.location.hostname.includes("localhost") ? localStorage.getItem("fakeDomain") || "subscriptions.billgang.store" : window.location.hostname, t = `${tm}/v2/shops/${e}/settings-theme`;
5780
5780
  return io({
5781
5781
  url: t,
5782
5782
  withToken: !0,
package/dist/ui.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./root-BsdCG0vR.cjs"),h=require("react"),rt="_accordion_9e4oa_1",at="_header_9e4oa_9",lt="_icon_9e4oa_18",ut="_open_9e4oa_21",dt="_content_9e4oa_25",z={accordion:rt,header:at,icon:lt,open:ut,content:dt},xt=({title:l,content:n})=>{const[e,o]=h.useState(!1),[r,a]=h.useState(0),s=h.useRef(null),c=()=>{o(!e)};return h.useEffect(()=>{s.current&&a(e?s.current.scrollHeight:0)},[e]),t.jsxRuntimeExports.jsxs("div",{className:z.accordion,children:[t.jsxRuntimeExports.jsxs("div",{className:z.header,onClick:c,children:[t.jsxRuntimeExports.jsx("h3",{children:l}),t.jsxRuntimeExports.jsx("div",{className:t.clx(z.icon,{[z.open]:e}),children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown"})})]}),t.jsxRuntimeExports.jsx("div",{ref:s,className:z.content,style:{height:`${r}px`},children:t.jsxRuntimeExports.jsx("p",{children:n})})]})},mt="_wrapper_9rr5j_2",pt="_alignmentBlock_9rr5j_8",_t="_title_9rr5j_15",jt="_subtitle_9rr5j_22",ht="_alignmentContent_9rr5j_29",gt="_alignments_9rr5j_37",ft="_alignment_9rr5j_8",bt="_circle_9rr5j_58",vt="_paddings_9rr5j_65",Rt="_padding_9rr5j_65",Et="_input_9rr5j_84",A={wrapper:mt,alignmentBlock:pt,title:_t,subtitle:jt,alignmentContent:ht,alignments:gt,alignment:ft,circle:bt,paddings:vt,padding:Rt,input:Et},kt=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],yt=["left","top","right","bottom"],It=l=>{const{alignment:n,padding:e,setPadding:o,setAlignment:r}=l;function a(){switch(n){case"left":case"topLeft":case"bottomLeft":return"TextAlignLeft";case"right":case"topRight":case"bottomRight":return"TextAlignRight";case"center":case"top":case"bottom":return"TextAlignCenter";default:return"TextAlignCenter"}}function s(c){switch(c){case"left":return"AlignLeft";case"right":return"AlignRight";case"top":return"AlignTop";case"bottom":return"AlignBottom"}}return t.jsxRuntimeExports.jsxs("div",{className:A.layout,children:[t.jsxRuntimeExports.jsx("h3",{className:A.title,children:"Layout"}),t.jsxRuntimeExports.jsxs("div",{className:A.alignmentBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:A.subtitle,children:"Alignment"}),t.jsxRuntimeExports.jsxs("div",{className:A.alignmentContent,children:[t.jsxRuntimeExports.jsx("div",{className:A.alignments,children:kt.map(c=>t.jsxRuntimeExports.jsxs("div",{onClick:()=>{r(c)},className:A.alignment,children:[c!==n&&t.jsxRuntimeExports.jsx("div",{className:A.circle}),c===n&&t.jsxRuntimeExports.jsx(t.Icon,{name:a(),fill:"#FF3F19",width:22,height:22})]},c))}),t.jsxRuntimeExports.jsx("div",{className:A.paddings,children:yt.map(c=>t.jsxRuntimeExports.jsxs("label",{className:A.padding,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:s(c),width:20,height:20})}),t.jsxRuntimeExports.jsx(t.Input,{type:"text",value:String(e[c]),onChange:d=>o({...e,[c]:Number(d)}),paddingless:!0,borderless:!0})]},c))})]})]})]})},$t="_subtitle_1qrz9_1",Nt="_header_1qrz9_8",Ct="_text_1qrz9_9",Bt="_top_1qrz9_17",qt="_itemsBlock_1qrz9_26",G={subtitle:$t,header:Nt,text:Ct,top:Bt,itemsBlock:qt},Pt="_typeTexts_rcw8p_1",wt="_block_rcw8p_8",St="_active_rcw8p_21",W={typeTexts:Pt,block:wt,active:St},Tt=["bold","italic","underline","strike-through","code"],K=l=>{const{typesText:n,setTypesText:e}=l;function o(r){switch(r){case"bold":return"TextB";case"italic":return"TextItalic";case"code":return"CodeSimple";case"strike-through":return"TextStrikethrough";case"underline":return"TextUnderline"}}return t.jsxRuntimeExports.jsx("div",{className:W.typeTexts,children:Tt.map(r=>t.jsxRuntimeExports.jsx("div",{className:t.clx(W.block,{[W.active]:n.includes(r)}),onClick:()=>{const a=[...n];if(a.includes(r)){const s=a.filter(c=>c!==r);e(s)}else a.push(r),e(a)},children:t.jsxRuntimeExports.jsx(t.Icon,{name:o(r),fill:n.includes(r)?"#252525":"#757575",width:20,height:20})},String(r)))})},Z=l=>{const{typesText:n,isActiveText:e,setIsActiveText:o,text:r,setText:a,setTypesText:s,title:c,subtitle:d="Items"}=l;return t.jsxRuntimeExports.jsxs("div",{className:G.text,children:[(c||e!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:G.top,children:[c&&t.jsxRuntimeExports.jsx("h3",{className:G.title,children:c}),e!==void 0&&o&&t.jsxRuntimeExports.jsx(t.Switch,{current:e,onChange:R=>o(R)})]}),t.jsxRuntimeExports.jsxs("div",{className:G.itemsBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:G.subtitle,children:d}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:R=>a(R),value:r,maxLength:150}),t.jsxRuntimeExports.jsx(K,{typesText:n,setTypesText:s})]})]})},At="_subtitle_cuny2_1",Ot="_header_cuny2_8",Dt="_text_cuny2_9",Lt="_productsBlock_cuny2_10",Mt="_top_cuny2_22",Ht="_itemsBlock_cuny2_31",Vt="_typeTexts_cuny2_37",Ft="_block_cuny2_44",Ut="_active_cuny2_57",zt="_products_cuny2_10",Gt="_product_cuny2_10",Yt="_button_cuny2_76",Xt="_disabled_cuny2_87",Qt="_image_cuny2_91",Wt="_info_cuny2_98",Jt="_name_cuny2_110",Kt="_buttons_cuny2_114",Zt="_modal_cuny2_121",ts="_link_cuny2_141",ss="_modalOptions_cuny2_147",$={subtitle:At,header:Ot,text:Dt,productsBlock:Lt,top:Mt,itemsBlock:Ht,typeTexts:Vt,block:Ft,active:Ut,products:zt,product:Gt,button:Yt,disabled:Xt,image:Qt,info:Wt,name:Jt,buttons:Kt,modal:Zt,link:ts,modalOptions:ss},es=l=>{const{activeItem:n,setActiveItem:e,popupPosition:o,modalOptions:r,setIsOpenModal:a}=l;return t.jsxRuntimeExports.jsxs("div",{className:$.modal,onClick:s=>{s.stopPropagation()},style:{top:`${o.top}px`,left:`${o.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[t.jsxRuntimeExports.jsx("h3",{children:n.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{e(null),a(!1)}})]}),t.jsxRuntimeExports.jsx("div",{className:$.modalOptions,children:r.map(s=>{if(s.type==="image")return t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:c=>{const d={...n,[s.field]:c};e(d)}},String(s.field));if(s.type==="text")return t.jsxRuntimeExports.jsx(Z,{typesText:n[s.field.type],setTypesText:c=>{const d={...n,[s.field.type]:c};e(d)},text:n[s.field.text]||"",setText:c=>{const d={...n,[s.field.text]:c};e(d)},subtitle:s.label});if(s.type==="input")return t.jsxRuntimeExports.jsx(t.Input,{onChange:c=>{const d={...n,[s.field]:c};e(d)},value:n[s.field]||"",label:s.label,placeholder:s.placeholder});if(s.type==="inputSwitch")return t.jsxRuntimeExports.jsxs("div",{className:$.link,children:[t.jsxRuntimeExports.jsx(t.Input,{onChange:c=>{const d={...n,[s.field.text]:c};e(d)},value:n[s.field.text]||"",label:s.inputLabel,placeholder:s.placeholder}),t.jsxRuntimeExports.jsx(t.Switch,{current:!!n[s.field.switch]||!1,label:s.switchLabel,onChange:c=>{const d={...n,[s.field.switch]:c};e(d)}})]});if(s.type==="list")return t.jsxRuntimeExports.jsx(st,{items:n[s.field]||[],setItems:c=>{const d={...n,[s.field]:c};e(d)},itemsType:"select",draggable:s.draggable||!1,itemsOptions:s.itemsOptions,deletable:s.deletable||!1,editable:!1,subtitle:s.label});if(s.type==="select")return t.jsxRuntimeExports.jsx(t.Select,{options:s.itemsOptions,onChange:c=>{const d={...n,[s.field]:c};e(d)},label:s.label,value:n[s.field]||"String",leftAddon:s.leftAddon&&s.leftAddon==="icon"&&t.jsxRuntimeExports.jsx(t.Icon,{name:n[s.field]})})})})]})},ns="_other_g74jx_1",os="_subtitle_g74jx_7",is="_items_g74jx_14",J={other:ns,subtitle:os,items:is},tt=l=>{const{items:n,title:e="Other"}=l;return t.jsxRuntimeExports.jsxs("div",{className:J.other,children:[t.jsxRuntimeExports.jsx("h5",{className:J.subtitle,children:e}),t.jsxRuntimeExports.jsx("div",{className:J.items,children:n.map((o,r)=>t.jsxRuntimeExports.jsx(t.Switch,{current:o.isItem,onChange:a=>o.setIsItem(a),label:o.label,hasBackground:!0,paddingless:!1},r))})]})},cs=l=>{const{index:n,moveProduct:e,children:o}=l,[,r]=t.useDrop({accept:"product",hover(c){c.index!==n&&(e(c.index,n),c.index=n)}}),[{isDragging:a},s]=t.useDrag({type:"product",item:{index:n},collect:c=>({isDragging:c.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:c=>s(r(c)),className:`${$.product} ${a?$.dragging:""}`,children:o})},st=l=>{const{isActiveItems:n,setIsActiveItems:e,items:o,setItems:r,other:a,title:s,subtitle:c,editable:d=!0,draggable:R=!1,withImage:p=!1,deletable:v=!0,addable:g=!0,itemsType:i,itemsPlaceholder:x="",itemsOptions:_,hasRangeSelector:N=!1,rangeSelectorOptions:q,modalOptions:k,addableOptions:F={},limit:S}=l,[D,L]=h.useState(null),[Q,X]=h.useState({top:0,left:0}),[m,b]=h.useState(!1),P=(u,C)=>{const w=[...o],[E]=w.splice(u,1);w.splice(C,0,E),r(w)};h.useEffect(()=>{const u=()=>{L(null),b(!1)};return document.body.addEventListener("click",u),L(null),b(!1),()=>{L(null),b(!1),document.body.removeEventListener("click",u)}},[]),h.useEffect(()=>{if(D){const u=[...o].map(C=>C.id===D.id?D:C);r(u)}},[D]);const y=(u,C)=>{u.stopPropagation(),b(!0);const w=u.target.getBoundingClientRect(),E=500,U=window.innerHeight;let O=w.top+window.scrollY;O+E>U&&(O=U-E-20),X({top:O-80,left:w.left-30}),L(C)};function H(u){if(p)return u?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${u[0]}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const T=(u,C)=>{const w=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[R&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})}),i==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:E=>{const O=[...o].map(M=>M.id===u.id?{...u,name:E}:M);L({...u,name:E}),r([...O])},value:u.name,options:_,leftAddon:H(u.images)}),i==="input"&&t.jsxRuntimeExports.jsx(t.Input,{onChange:E=>{const O=[...o].map(M=>M.id===u.id?{...u,name:E}:M);r([...O])},value:u.name,placeholder:x}),i==="image"&&t.jsxRuntimeExports.jsx(t.ChooseImage,{onChange:E=>{const O=[...o].map(M=>M.id===u.id?{...u,images:E}:M);r([...O])}}),t.jsxRuntimeExports.jsxs("div",{className:$.buttons,children:[d&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:E=>y(E,u)}),v&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>r(o.filter(E=>E.id!==u.id))})]})]});return R?t.jsxRuntimeExports.jsx(cs,{product:u,index:C,moveProduct:P,children:w},u.id):t.jsxRuntimeExports.jsx("div",{className:$.product,children:w},u.id)};return t.jsxRuntimeExports.jsxs("div",{className:$.productsBlock,children:[(s||n!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[s&&t.jsxRuntimeExports.jsx("h3",{className:$.title,children:s}),n!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:u=>e==null?void 0:e(u)})]}),D&&d&&k&&m&&t.jsxRuntimeExports.jsx(es,{activeItem:D,setActiveItem:L,popupPosition:Q,modalOptions:k,setIsOpenModal:b}),N&&q&&t.jsxRuntimeExports.jsx(nt,{...q}),t.jsxRuntimeExports.jsxs("div",{className:$.products,children:[c&&t.jsxRuntimeExports.jsx("h5",{className:$.subtitle,children:c}),R?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:o.map((u,C)=>T(u,C))}):o.map((u,C)=>T(u,C)),g&&t.jsxRuntimeExports.jsxs(t.Button,{className:t.clx($.button,{[$.disabled]:!!(S&&S<=o.length)}),size:"s",disabled:!!(S&&S<=o.length),onClick:()=>{const u=[...o];i==="select"?u.push({name:_[0]||`Product ${o.length+1}`,id:t.v4(),...F}):i==="input"?u.push({name:"",id:t.v4(),...F}):u.push({name:`Image ${o.length+1}`,id:t.v4(),...F}),r(u)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),a!==void 0&&t.jsxRuntimeExports.jsx(tt,{items:a})]})},rs="_subtitle_1fb9q_1",as="_header_1fb9q_8",ls="_text_1fb9q_9",us="_productsBlock_1fb9q_10",ds="_buttonsBlock_1fb9q_11",xs="_top_1fb9q_22",ms="_itemsBlock_1fb9q_31",ps="_typeTexts_1fb9q_37",_s="_block_1fb9q_44",js="_active_1fb9q_56",hs="_products_1fb9q_10",gs="_product_1fb9q_10",fs="_button_1fb9q_11",bs="_image_1fb9q_86",vs="_info_1fb9q_93",Rs="_name_1fb9q_105",Es="_buttons_1fb9q_11",ks="_modal_1fb9q_116",ys="_other_1fb9q_135",Is="_options_1fb9q_141",V={subtitle:rs,header:as,text:ls,productsBlock:us,buttonsBlock:ds,top:xs,itemsBlock:ms,typeTexts:ps,block:_s,active:js,products:hs,product:gs,button:fs,image:bs,info:vs,name:Rs,buttons:Es,modal:ks,other:ys,options:Is},$s=l=>{const{activeButton:n,setActiveButton:e,popupPosition:o}=l,[r,a]=h.useState(n.typesText),[s,c]=h.useState(n.destination),[d,R]=h.useState(n.link||""),[p,v]=h.useState(n.text||"");return h.useEffect(()=>{e({...n,...{text:p,link:d,destination:s,typesText:r}})},[r,s,d,p]),t.jsxRuntimeExports.jsxs("div",{className:V.modal,onClick:g=>{g.stopPropagation()},style:{top:`${o.top}px`,left:`${o.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:V.top,children:[t.jsxRuntimeExports.jsx("h3",{children:n.type}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>e(null)})]}),t.jsxRuntimeExports.jsxs("div",{className:V.options,children:[t.jsxRuntimeExports.jsx(t.Select,{label:"Destination",onChange:g=>c(g),options:["Go to Page","Open Link"],value:s}),s==="Go to Page"?t.jsxRuntimeExports.jsx(t.Select,{label:"Go to",onChange:()=>{},options:[],value:"Homepage"}):t.jsxRuntimeExports.jsx(t.Input,{onChange:g=>R(g),value:d,placeholder:"https://",label:"Link"}),t.jsxRuntimeExports.jsx(t.Switch,{current:!1,label:"Open in new tab"}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:g=>v(g),value:p,label:"Text",maxLength:150}),t.jsxRuntimeExports.jsx(K,{typesText:r,setTypesText:a})]})]})},Ns="_subtitle_m8qel_1",Cs="_header_m8qel_8",Bs="_text_m8qel_9",qs="_productsBlock_m8qel_10",Ps="_buttonsBlock_m8qel_11",ws="_top_m8qel_23",Ss="_itemsBlock_m8qel_32",Ts="_typeTexts_m8qel_38",As="_block_m8qel_45",Os="_active_m8qel_58",Ds="_products_m8qel_10",Ls="_product_m8qel_10",Ms="_button_m8qel_11",Hs="_image_m8qel_88",Vs="_info_m8qel_95",Fs="_name_m8qel_107",Us="_buttons_m8qel_11",zs="_modal_m8qel_118",Gs="_other_m8qel_137",Ys="_options_m8qel_143",Y={subtitle:Ns,header:Cs,text:Bs,productsBlock:qs,buttonsBlock:Ps,top:ws,itemsBlock:Ss,typeTexts:Ts,block:As,active:Os,products:Ds,product:Ls,button:Ms,image:Hs,info:Vs,name:Fs,buttons:Us,modal:zs,other:Gs,options:Ys},et=l=>{const{buttons:n,setButtons:e,deletable:o=!0,addable:r=!0}=l,[a,s]=h.useState(null),[c,d]=h.useState({top:0,left:0});h.useEffect(()=>{const p=()=>{s(null)};return document.body.addEventListener("click",p),s(null),()=>{s(null),document.body.removeEventListener("click",p)}},[]),h.useEffect(()=>{if(a){const p=[...n].map(v=>v.id===a.id?a:v);e(p)}},[a]);const R=(p,v)=>{p.stopPropagation();const g=p.target.getBoundingClientRect(),i=490,x=window.innerHeight;let _=g.top+window.scrollY;_+i>x&&(_=x-i-20),d({top:_,left:g.left-30}),s(v)};return t.jsxRuntimeExports.jsxs("div",{className:Y.products,children:[t.jsxRuntimeExports.jsx("h5",{className:Y.subtitle,children:"Button Type"}),n.map(p=>t.jsxRuntimeExports.jsxs("div",{className:Y.product,children:[t.jsxRuntimeExports.jsx(t.Select,{onChange:v=>{const i=[...n].map(x=>x.id===p.id?{...p,type:v}:x);e(i)},value:p.type,options:["Primary","Secondary","Tertiary"]}),t.jsxRuntimeExports.jsxs("div",{className:Y.buttons,children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:v=>{R(v,p)}}),o&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,onClick:()=>{const v=n.filter(g=>g.id!==p.id);e(v)},width:20,height:20,fill:"#C12A2A"})]})]},p.id)),a&&t.jsxRuntimeExports.jsx($s,{activeButton:a,setActiveButton:s,popupPosition:c}),r&&t.jsxRuntimeExports.jsxs(t.Button,{className:Y.button,size:"s",onClick:()=>{const p=[...n];p.push({type:"Primary",id:t.v4(),typesText:[],destination:"Go to Page",text:""}),e(p)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]})},Xs=l=>{const{isActiveButtons:n,setIsActiveButtons:e,buttons:o,setButtons:r}=l;return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsxs("div",{className:V.buttonsBlock,children:[t.jsxRuntimeExports.jsxs("div",{className:V.top,children:[t.jsxRuntimeExports.jsx("h3",{className:V.title,children:"Buttons"}),t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:a=>e(a)})]}),t.jsxRuntimeExports.jsx(et,{buttons:o,setButtons:r})]})})},Qs="_wrapper_m18qi_1",Ws="_subtitle_m18qi_7",Js="_content_m18qi_14",Ks="_range_m18qi_22",Zs="_track_m18qi_27",te="_progress_m18qi_36",se="_dots_m18qi_46",ee="_dot_m18qi_46",ne="_active_m18qi_65",oe="_input_m18qi_77",ie="_countBlock_m18qi_91",ce="_count_m18qi_91",re="_controls_m18qi_107",ae="_button_m18qi_113",I={wrapper:Qs,subtitle:Ws,content:Js,range:Ks,track:Zs,progress:te,dots:se,dot:ee,active:ne,input:oe,countBlock:ie,count:ce,controls:re,button:ae},nt=l=>{const{label:n,min:e=1,max:o=4,step:r=1,count:a,setCount:s}=l,[c,d]=h.useState(!1),R=Array.from({length:(o-e)/r+1}),p=(a-e)/(o-e)*100,v=()=>{a<o&&s(a+r)},g=()=>{a>e&&s(a-r)},i=x=>{const _=e+x*r;s(_)};return t.jsxRuntimeExports.jsxs("div",{className:I.wrapper,children:[n&&t.jsxRuntimeExports.jsx("h5",{className:I.subtitle,children:n}),t.jsxRuntimeExports.jsxs("div",{className:I.content,children:[t.jsxRuntimeExports.jsxs("div",{className:I.range,children:[t.jsxRuntimeExports.jsx("div",{className:I.track}),t.jsxRuntimeExports.jsx("div",{className:I.progress,style:{width:`${p}%`}}),t.jsxRuntimeExports.jsx("div",{className:I.dots,children:R.map((x,_)=>{const N=_<=(a-e)/r;return t.jsxRuntimeExports.jsx("button",{onClick:()=>i(_),className:t.clx(I.dot,{[I.active]:N,[I.inactive]:!N,[I.dragging]:c}),"aria-label":`Set value to ${e+_*r}`},_)})}),t.jsxRuntimeExports.jsx("input",{type:"range",min:e,max:o,step:r,value:a,onChange:x=>s(Number(x.target.value)),onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),className:I.input})]}),t.jsxRuntimeExports.jsxs("div",{className:I.countBlock,children:[t.jsxRuntimeExports.jsx(t.Input,{type:"number",min:e,max:o,paddingless:!0,onChange:x=>{const _=Number(x);_>o?s(o):_<e?s(e):s(_)},value:String(a)}),t.jsxRuntimeExports.jsxs("div",{className:I.controls,children:[t.jsxRuntimeExports.jsx("button",{onClick:v,disabled:a>=o,className:I.button,"aria-label":"Increment count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretUp",width:15,height:15})}),t.jsxRuntimeExports.jsx("button",{onClick:g,disabled:a<=e,className:I.button,"aria-label":"Decrement count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown",width:15,height:15})})]})]})]})]})},le="_subtitle_16rdk_1",ue="_header_16rdk_8",de="_text_16rdk_9",xe="_productsBlock_16rdk_10",me="_top_16rdk_22",pe="_itemsBlock_16rdk_31",_e="_typeTexts_16rdk_37",je="_block_16rdk_44",he="_active_16rdk_57",ge="_products_16rdk_10",fe="_product_16rdk_10",be="_button_16rdk_76",ve="_image_16rdk_87",Re="_info_16rdk_94",Ee="_name_16rdk_106",ke="_buttons_16rdk_110",ye="_modal_16rdk_117",Ie="_link_16rdk_137",$e="_modalOptions_16rdk_143",B={subtitle:le,header:ue,text:de,productsBlock:xe,top:me,itemsBlock:pe,typeTexts:_e,block:je,active:he,products:ge,product:fe,button:be,image:ve,info:Re,name:Ee,buttons:ke,modal:ye,link:Ie,modalOptions:$e},Ne=l=>{const{activeItem:n,setActiveItem:e,popupPosition:o,setIsOpenModal:r}=l;return t.jsxRuntimeExports.jsxs("div",{className:B.modal,onClick:a=>{a.stopPropagation()},style:{top:`${o.top}px`,left:`${o.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:B.top,children:[t.jsxRuntimeExports.jsx("h3",{children:n.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{r(!1),e(null)}})]}),t.jsxRuntimeExports.jsx("div",{className:B.modalOptions,children:t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:a=>{const s={...n,images:a,imagePath:a[0]};e(s)}})})]})},Ce=l=>{const{index:n,moveProduct:e,children:o}=l,[,r]=t.useDrop({accept:"product",hover(c){c.index!==n&&(e(c.index,n),c.index=n)}}),[{isDragging:a},s]=t.useDrag({type:"product",item:{index:n},collect:c=>({isDragging:c.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:c=>s(r(c)),className:`${B.product} ${a?B.dragging:""}`,children:o})},Be=l=>{const{isActiveItems:n,setIsActiveItems:e,items:o,setItems:r,other:a,title:s,subtitle:c,editable:d=!0,draggable:R=!1,withImage:p=!1,deletable:v=!0,addable:g=!0,itemsType:i,itemsOptions:x}=l,[_,N]=h.useState(null),[q,k]=h.useState({top:0,left:0}),[F,S]=h.useState(!1),D=(m,b)=>{const P=[...o],[y]=P.splice(m,1);P.splice(b,0,y),r(P)};h.useEffect(()=>{const m=()=>{N(null),S(!1)};return document.body.addEventListener("click",m),N(null),S(!1),()=>{N(null),S(!1),document.body.removeEventListener("click",m)}},[]),h.useEffect(()=>{if(_){const m=[...o].map(b=>b.id===_.id?_:b);r(m)}},[_]);const L=(m,b)=>{m.stopPropagation();const P=m.target.getBoundingClientRect(),y=100,H=window.innerHeight;let T=P.top+window.scrollY;T+y>H&&(T=H-y-20),S(!0),k({top:T-80,left:P.left-30}),N(b)};function Q(m){if(p)return m?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${m}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const X=(m,b)=>{const P=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[R&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})},b),i==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:y=>{const H=[...o],T=Number(y.split(" ")[1]),u=x.find(E=>E.id===T);if(!u)return;const C={...u.productData.stats,newPrice:u.productData.minPrice.amount,oldPrice:u.productData.compareAtPrice.amount},w=H.map(E=>E.id===m.id?{...m,name:y,listingId:T,stats:C}:E);N({...m,name:y,listingId:T}),r([...w])},value:m.name,options:[...x.map(y=>`Product ${y.id}`)],leftAddon:Q(m.images[0])},b),t.jsxRuntimeExports.jsxs("div",{className:B.buttons,children:[d&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:y=>L(y,m)}),v&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>r(o.filter(y=>y.id!==m.id))})]})]});return R?t.jsxRuntimeExports.jsx(Ce,{product:m,index:b,moveProduct:D,children:P},m.id):t.jsxRuntimeExports.jsx("div",{className:B.product,children:P},m.id)};return t.jsxRuntimeExports.jsxs("div",{className:B.productsBlock,children:[(s||n!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:B.top,children:[s&&t.jsxRuntimeExports.jsx("h3",{className:B.title,children:s}),n!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:m=>e==null?void 0:e(m)})]}),F&&_&&t.jsxRuntimeExports.jsx(Ne,{activeItem:_,setActiveItem:N,setIsOpenModal:S,popupPosition:q}),t.jsxRuntimeExports.jsxs("div",{className:B.products,children:[c&&t.jsxRuntimeExports.jsx("h5",{className:B.subtitle,children:c}),R?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:o.map((m,b)=>X(m,b))}):o.map((m,b)=>X(m,b)),g&&t.jsxRuntimeExports.jsxs(t.Button,{className:B.button,size:"s",onClick:()=>{const m=[...o],b=x[0].id;m.push({name:`Product ${b}`,id:t.v4(),listingId:b,imagePath:"",images:[],stats:{...x[0].productData.stats,newPrice:x[0].productData.minPrice.amount,oldPrice:x[0].productData.compareAtPrice.amount}}),r(m)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),a!==void 0&&t.jsxRuntimeExports.jsx(tt,{items:a})]})},qe="_options_q6sjs_1",Pe="_price_q6sjs_12",we="_oldPrice_q6sjs_19",Se="_newPrice_q6sjs_27",Te="_meta_q6sjs_34",Ae="_info_q6sjs_40",Oe="_infoRight_q6sjs_48",De="_buttons_q6sjs_55",Le="_variants_q6sjs_62",Me="_variant_q6sjs_62",He="_stock_q6sjs_79",Ve="_variantInfo_q6sjs_86",Fe="_quantity_q6sjs_92",Ue="_count_q6sjs_99",ze="_button_q6sjs_55",Ge="_activeVariant_q6sjs_120",Ye="_chargeTypes_q6sjs_124",Xe="_charge_q6sjs_124",Qe="_chargeActive_q6sjs_144",f={options:qe,price:Pe,oldPrice:we,newPrice:Se,meta:Te,info:Ae,infoRight:Oe,buttons:De,variants:Le,variant:Me,stock:He,variantInfo:Ve,quantity:Fe,count:Ue,button:ze,activeVariant:Ge,chargeTypes:Ye,charge:Xe,chargeActive:Qe},We=l=>{const{variants:n}=l,[e,o]=h.useState(n[0]),r=t.useNavigate(),[a,s]=h.useState(1),{reset:c,addProductToCart:d,getProducts:R}=t.useCart();async function p(){await R(),await d({productId:l.id,productVariantId:e.id,quantity:a})}function v(){c(),p(),r("/checkout")}function g(i){if(i>=864e5){const k=Math.floor(i/864e5);return`${k} ${k===1?"day":"days"}`}else if(i>=36e5){const k=Math.floor(i/36e5);return`${k} ${k===1?"hour":"hours"}`}else if(i>=6e4){const k=Math.floor(i/6e4);return`${k} ${k===1?"minute":"minutes"}`}else{const k=Math.floor(i/1e3);return`${k} ${k===1?"second":"seconds"}`}}return t.jsxRuntimeExports.jsxs("div",{className:f.options,children:[t.jsxRuntimeExports.jsx("div",{className:f.chargeTypes,children:e.chargeTypes?e.chargeTypes.map(i=>t.jsxRuntimeExports.jsx("div",{children:i},i)):t.jsxRuntimeExports.jsx("div",{className:t.clx(f.charge,f.chargeActive),children:"One-Time"})}),t.jsxRuntimeExports.jsx("div",{className:f.variants,children:n.map(i=>t.jsxRuntimeExports.jsxs("div",{className:t.clx(f.variant,{[f.activeVariant]:e.id===i.id}),onClick:()=>o(i),children:[t.jsxRuntimeExports.jsxs("div",{className:f.variantInfo,children:[t.jsxRuntimeExports.jsx("span",{className:f.title,children:i.name}),t.jsxRuntimeExports.jsxs("span",{children:["$",i.price.amount]})]}),t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsxs("span",{className:f.stock,children:[i.quantity.restrictions.max||0," in stock"]})})]},i.id))}),t.jsxRuntimeExports.jsxs("div",{className:f.quantity,children:[t.jsxRuntimeExports.jsx("div",{onClick:()=>{a>1?s(i=>i-1):s(1)},className:f.button,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Minus"})}),t.jsxRuntimeExports.jsx("div",{className:f.count,children:a}),t.jsxRuntimeExports.jsx("div",{onClick:()=>s(i=>i+1),className:f.button,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus"})})]}),t.jsxRuntimeExports.jsxs("div",{className:f.meta,children:[t.jsxRuntimeExports.jsxs("div",{className:f.info,children:[t.jsxRuntimeExports.jsx("span",{children:"Delivery"}),t.jsxRuntimeExports.jsxs("div",{className:f.infoRight,children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Lightning",fill:"#FF3F19",width:20,height:20}),t.jsxRuntimeExports.jsx("span",{children:e.deliveryTime===0?"Instant":g(e.deliveryTime)})]})]}),t.jsxRuntimeExports.jsxs("div",{className:f.info,children:[t.jsxRuntimeExports.jsx("span",{children:"Price"}),t.jsxRuntimeExports.jsx("div",{className:f.infoRight,children:e.compareAtPrice&&(e.compareAtPrice.amount||0)-(e.price.amount||0)>0?t.jsxRuntimeExports.jsxs("div",{className:f.price,children:[t.jsxRuntimeExports.jsxs("span",{className:f.newPrice,children:["$ ",(e.price.amount||0)*a]}),t.jsxRuntimeExports.jsxs("span",{className:f.oldPrice,children:["$ ",(e.compareAtPrice.amount||0)*a]})]}):t.jsxRuntimeExports.jsxs("span",{className:f.newPrice,children:["$ ",(e.price.amount||0)*a]})})]})]}),t.jsxRuntimeExports.jsxs("div",{className:f.buttons,children:[t.jsxRuntimeExports.jsx(t.Button,{type:"Primary",onClick:()=>v(),children:"Buy Now"}),t.jsxRuntimeExports.jsx(t.Button,{type:"Secondary",onClick:()=>p(),children:"Add to Cart"})]})]})},Je="_button_14i4s_1",Ke="_login_14i4s_14",Ze="_signUp_14i4s_18",tn="_buttons_14i4s_23",sn="_modal_14i4s_32",en="_info_14i4s_48",nn="_top_14i4s_55",on="_title_14i4s_66",cn="_clear_14i4s_72",rn="_activeClear_14i4s_79",an="_count_14i4s_83",ln="_cart_14i4s_98",un="_empty_14i4s_106",dn="_product_14i4s_132",xn="_products_14i4s_141",mn="_image_14i4s_149",pn="_productInfo_14i4s_155",_n="_content_14i4s_162",jn="_name_14i4s_168",hn="_price_14i4s_174",gn="_productButtons_14i4s_180",fn="_productButton_14i4s_180",bn="_productCount_14i4s_200",vn="_bottom_14i4s_216",Rn="_subtotal_14i4s_224",En="_block_14i4s_232",kn="_shoppingCount_14i4s_239",j={button:Je,login:Ke,signUp:Ze,buttons:tn,modal:sn,info:en,top:nn,title:on,clear:cn,activeClear:rn,count:an,cart:ln,empty:un,product:dn,products:xn,image:mn,productInfo:pn,content:_n,name:jn,price:hn,productButtons:gn,productButton:fn,productCount:bn,bottom:vn,subtotal:Rn,block:En,shoppingCount:kn},yn=l=>{const{shopping:n,signUp:e}=l,o=t.useNavigate();function r(a){o(a)}return t.jsxRuntimeExports.jsxs("div",{className:j.buttons,children:[n&&t.jsxRuntimeExports.jsx(ot,{}),t.jsxRuntimeExports.jsx("div",{className:t.clx(j.button,j.login),onClick:()=>r("/customer-dash"),children:"Login"}),e&&t.jsxRuntimeExports.jsx("div",{className:t.clx(j.button,j.login,j.signUp),onClick:()=>r("/customer-dash"),children:"Sign Up"})]})},ot=()=>{const[l,n]=h.useState(!1),{cart:e}=t.useCart();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{className:j.button,onClick:o=>{o.stopPropagation(),n(!0)},children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Handbag",fill:"#252525"}),e.parts.length>0&&t.jsxRuntimeExports.jsx("div",{className:j.shoppingCount,children:e.parts.length})]}),l&&t.jsxRuntimeExports.jsx(t.Modal,{close:n,children:t.jsxRuntimeExports.jsx(it,{})})]})},it=()=>{const{cart:l,reset:n,getProducts:e,getTotalAndDiscount:o,updateQuantityOfProduct:r}=t.useCart(),[a,s]=h.useState([]),c=t.useNavigate();function d(i){for(let x=0;x<l.parts.length;x++)for(let _=0;_<i.variants.length;_++)if(l.parts[x].productVariantId===i.variants[x].id)return l.parts[x].productVariantId}function R(i){for(let x=0;x<l.parts.length;x++)for(let _=0;_<i.variants.length;_++)if(l.parts[x].productVariantId===i.variants[x].id)return l.parts[x].quantity}function p(i){c(i)}function v(i){r({productId:i.id,productVariantId:i.activeVariantId,quantity:i.quantity+1})}function g(i){r({productId:i.id,productVariantId:i.activeVariantId,quantity:i.quantity-1})}return h.useEffect(()=>{(async()=>{const x=l.parts.map(q=>String(q.productId)),N=(await e([...x])).map(q=>({...q,activeVariantId:d(q),quantity:R(q)}));s(N)})()},[l]),t.jsxRuntimeExports.jsxs("div",{className:j.modal,onClick:i=>i.stopPropagation(),children:[t.jsxRuntimeExports.jsxs("div",{className:j.top,children:[t.jsxRuntimeExports.jsxs("div",{className:j.info,children:[t.jsxRuntimeExports.jsx("span",{className:j.title,children:"Cart"}),l.parts.length>0&&t.jsxRuntimeExports.jsx("div",{className:j.count,children:l.parts.length})]}),t.jsxRuntimeExports.jsx("button",{className:t.clx(j.clear,{[j.activeClear]:l.parts.length>0}),disabled:l.parts.length===0,onClick:()=>n(),children:"Clear all"})]}),l.parts.length>0?t.jsxRuntimeExports.jsxs("div",{className:j.cart,children:[t.jsxRuntimeExports.jsx("div",{className:j.products,children:a.map(i=>t.jsxRuntimeExports.jsxs("div",{className:j.product,children:[t.jsxRuntimeExports.jsxs("div",{className:j.productInfo,children:[t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${i.images[0].cfId}/w=500`,alt:"image",width:"100%",height:"100%",className:j.image}),t.jsxRuntimeExports.jsxs("div",{className:j.content,children:[t.jsxRuntimeExports.jsx("div",{className:j.name,children:i.name}),t.jsxRuntimeExports.jsxs("div",{className:j.price,children:["$",i.variants.find(x=>x.id===i.activeVariantId).price.amount*((i==null?void 0:i.quantity)||1)]})]})]}),t.jsxRuntimeExports.jsxs("div",{className:j.productButtons,children:[t.jsxRuntimeExports.jsx("div",{onClick:()=>{i.quantity!==1&&g(i)},className:j.productButton,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Minus",fill:"#757575",width:20,height:20})}),t.jsxRuntimeExports.jsx("div",{className:j.productCount,children:i.quantity}),t.jsxRuntimeExports.jsx("div",{onClick:()=>v(i),className:j.productButton,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",fill:"#757575",width:20,height:20})})]})]},i.id))}),t.jsxRuntimeExports.jsxs("div",{className:j.bottom,children:[t.jsxRuntimeExports.jsxs("div",{className:j.subtotal,children:[t.jsxRuntimeExports.jsxs("div",{className:j.block,children:[t.jsxRuntimeExports.jsx("span",{children:"Subtotal"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Info",width:20,height:20,fill:"#757575"})]}),t.jsxRuntimeExports.jsxs("div",{children:["$",o().total]})]}),t.jsxRuntimeExports.jsx(t.Button,{onClick:()=>p("/checkout"),children:"Checkout"})]})]}):t.jsxRuntimeExports.jsx(ct,{})]})},ct=()=>t.jsxRuntimeExports.jsxs("div",{className:j.empty,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Handbag"})}),t.jsxRuntimeExports.jsx("span",{children:"Your cart is empty"}),t.jsxRuntimeExports.jsx("span",{children:"Check out the store's products and add them here"})]});exports.Button=t.Button;exports.Checkbox=t.Checkbox;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ColorPicker=t.ColorPicker;exports.ErrorableBlock=t.ErrorableBlock;exports.Icon=t.Icon;exports.Input=t.Input;exports.Loader=t.Loader;exports.Modal=t.Modal;exports.Picker=t.Picker;exports.Radio=t.Radio;exports.Select=t.Select;exports.Submodal=t.Submodal;exports.Switch=t.Switch;exports.Textarea=t.Textarea;exports.Tip=t.Tip;exports.Accordion=xt;exports.ButtonTypeSettings=et;exports.ButtonsSettings=Xs;exports.EmptyCart=ct;exports.HeaderButtons=yn;exports.ItemsSettings=st;exports.LayoutSettings=It;exports.ListingSelector=Be;exports.ProductOptions=We;exports.RangeSelector=nt;exports.ShoppingButton=ot;exports.ShoppingModalCart=it;exports.TextSettings=Z;exports.TypesText=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./root-DViUor-X.cjs"),h=require("react"),rt="_accordion_9e4oa_1",at="_header_9e4oa_9",lt="_icon_9e4oa_18",ut="_open_9e4oa_21",dt="_content_9e4oa_25",z={accordion:rt,header:at,icon:lt,open:ut,content:dt},xt=({title:l,content:n})=>{const[e,o]=h.useState(!1),[r,a]=h.useState(0),s=h.useRef(null),c=()=>{o(!e)};return h.useEffect(()=>{s.current&&a(e?s.current.scrollHeight:0)},[e]),t.jsxRuntimeExports.jsxs("div",{className:z.accordion,children:[t.jsxRuntimeExports.jsxs("div",{className:z.header,onClick:c,children:[t.jsxRuntimeExports.jsx("h3",{children:l}),t.jsxRuntimeExports.jsx("div",{className:t.clx(z.icon,{[z.open]:e}),children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown"})})]}),t.jsxRuntimeExports.jsx("div",{ref:s,className:z.content,style:{height:`${r}px`},children:t.jsxRuntimeExports.jsx("p",{children:n})})]})},mt="_wrapper_9rr5j_2",pt="_alignmentBlock_9rr5j_8",_t="_title_9rr5j_15",jt="_subtitle_9rr5j_22",ht="_alignmentContent_9rr5j_29",gt="_alignments_9rr5j_37",ft="_alignment_9rr5j_8",bt="_circle_9rr5j_58",vt="_paddings_9rr5j_65",Rt="_padding_9rr5j_65",Et="_input_9rr5j_84",A={wrapper:mt,alignmentBlock:pt,title:_t,subtitle:jt,alignmentContent:ht,alignments:gt,alignment:ft,circle:bt,paddings:vt,padding:Rt,input:Et},kt=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],yt=["left","top","right","bottom"],It=l=>{const{alignment:n,padding:e,setPadding:o,setAlignment:r}=l;function a(){switch(n){case"left":case"topLeft":case"bottomLeft":return"TextAlignLeft";case"right":case"topRight":case"bottomRight":return"TextAlignRight";case"center":case"top":case"bottom":return"TextAlignCenter";default:return"TextAlignCenter"}}function s(c){switch(c){case"left":return"AlignLeft";case"right":return"AlignRight";case"top":return"AlignTop";case"bottom":return"AlignBottom"}}return t.jsxRuntimeExports.jsxs("div",{className:A.layout,children:[t.jsxRuntimeExports.jsx("h3",{className:A.title,children:"Layout"}),t.jsxRuntimeExports.jsxs("div",{className:A.alignmentBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:A.subtitle,children:"Alignment"}),t.jsxRuntimeExports.jsxs("div",{className:A.alignmentContent,children:[t.jsxRuntimeExports.jsx("div",{className:A.alignments,children:kt.map(c=>t.jsxRuntimeExports.jsxs("div",{onClick:()=>{r(c)},className:A.alignment,children:[c!==n&&t.jsxRuntimeExports.jsx("div",{className:A.circle}),c===n&&t.jsxRuntimeExports.jsx(t.Icon,{name:a(),fill:"#FF3F19",width:22,height:22})]},c))}),t.jsxRuntimeExports.jsx("div",{className:A.paddings,children:yt.map(c=>t.jsxRuntimeExports.jsxs("label",{className:A.padding,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:s(c),width:20,height:20})}),t.jsxRuntimeExports.jsx(t.Input,{type:"text",value:String(e[c]),onChange:d=>o({...e,[c]:Number(d)}),paddingless:!0,borderless:!0})]},c))})]})]})]})},$t="_subtitle_1qrz9_1",Nt="_header_1qrz9_8",Ct="_text_1qrz9_9",Bt="_top_1qrz9_17",qt="_itemsBlock_1qrz9_26",G={subtitle:$t,header:Nt,text:Ct,top:Bt,itemsBlock:qt},Pt="_typeTexts_rcw8p_1",wt="_block_rcw8p_8",St="_active_rcw8p_21",W={typeTexts:Pt,block:wt,active:St},Tt=["bold","italic","underline","strike-through","code"],K=l=>{const{typesText:n,setTypesText:e}=l;function o(r){switch(r){case"bold":return"TextB";case"italic":return"TextItalic";case"code":return"CodeSimple";case"strike-through":return"TextStrikethrough";case"underline":return"TextUnderline"}}return t.jsxRuntimeExports.jsx("div",{className:W.typeTexts,children:Tt.map(r=>t.jsxRuntimeExports.jsx("div",{className:t.clx(W.block,{[W.active]:n.includes(r)}),onClick:()=>{const a=[...n];if(a.includes(r)){const s=a.filter(c=>c!==r);e(s)}else a.push(r),e(a)},children:t.jsxRuntimeExports.jsx(t.Icon,{name:o(r),fill:n.includes(r)?"#252525":"#757575",width:20,height:20})},String(r)))})},Z=l=>{const{typesText:n,isActiveText:e,setIsActiveText:o,text:r,setText:a,setTypesText:s,title:c,subtitle:d="Items"}=l;return t.jsxRuntimeExports.jsxs("div",{className:G.text,children:[(c||e!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:G.top,children:[c&&t.jsxRuntimeExports.jsx("h3",{className:G.title,children:c}),e!==void 0&&o&&t.jsxRuntimeExports.jsx(t.Switch,{current:e,onChange:R=>o(R)})]}),t.jsxRuntimeExports.jsxs("div",{className:G.itemsBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:G.subtitle,children:d}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:R=>a(R),value:r,maxLength:150}),t.jsxRuntimeExports.jsx(K,{typesText:n,setTypesText:s})]})]})},At="_subtitle_cuny2_1",Ot="_header_cuny2_8",Dt="_text_cuny2_9",Lt="_productsBlock_cuny2_10",Mt="_top_cuny2_22",Ht="_itemsBlock_cuny2_31",Vt="_typeTexts_cuny2_37",Ft="_block_cuny2_44",Ut="_active_cuny2_57",zt="_products_cuny2_10",Gt="_product_cuny2_10",Yt="_button_cuny2_76",Xt="_disabled_cuny2_87",Qt="_image_cuny2_91",Wt="_info_cuny2_98",Jt="_name_cuny2_110",Kt="_buttons_cuny2_114",Zt="_modal_cuny2_121",ts="_link_cuny2_141",ss="_modalOptions_cuny2_147",$={subtitle:At,header:Ot,text:Dt,productsBlock:Lt,top:Mt,itemsBlock:Ht,typeTexts:Vt,block:Ft,active:Ut,products:zt,product:Gt,button:Yt,disabled:Xt,image:Qt,info:Wt,name:Jt,buttons:Kt,modal:Zt,link:ts,modalOptions:ss},es=l=>{const{activeItem:n,setActiveItem:e,popupPosition:o,modalOptions:r,setIsOpenModal:a}=l;return t.jsxRuntimeExports.jsxs("div",{className:$.modal,onClick:s=>{s.stopPropagation()},style:{top:`${o.top}px`,left:`${o.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[t.jsxRuntimeExports.jsx("h3",{children:n.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{e(null),a(!1)}})]}),t.jsxRuntimeExports.jsx("div",{className:$.modalOptions,children:r.map(s=>{if(s.type==="image")return t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:c=>{const d={...n,[s.field]:c};e(d)}},String(s.field));if(s.type==="text")return t.jsxRuntimeExports.jsx(Z,{typesText:n[s.field.type],setTypesText:c=>{const d={...n,[s.field.type]:c};e(d)},text:n[s.field.text]||"",setText:c=>{const d={...n,[s.field.text]:c};e(d)},subtitle:s.label});if(s.type==="input")return t.jsxRuntimeExports.jsx(t.Input,{onChange:c=>{const d={...n,[s.field]:c};e(d)},value:n[s.field]||"",label:s.label,placeholder:s.placeholder});if(s.type==="inputSwitch")return t.jsxRuntimeExports.jsxs("div",{className:$.link,children:[t.jsxRuntimeExports.jsx(t.Input,{onChange:c=>{const d={...n,[s.field.text]:c};e(d)},value:n[s.field.text]||"",label:s.inputLabel,placeholder:s.placeholder}),t.jsxRuntimeExports.jsx(t.Switch,{current:!!n[s.field.switch]||!1,label:s.switchLabel,onChange:c=>{const d={...n,[s.field.switch]:c};e(d)}})]});if(s.type==="list")return t.jsxRuntimeExports.jsx(st,{items:n[s.field]||[],setItems:c=>{const d={...n,[s.field]:c};e(d)},itemsType:"select",draggable:s.draggable||!1,itemsOptions:s.itemsOptions,deletable:s.deletable||!1,editable:!1,subtitle:s.label});if(s.type==="select")return t.jsxRuntimeExports.jsx(t.Select,{options:s.itemsOptions,onChange:c=>{const d={...n,[s.field]:c};e(d)},label:s.label,value:n[s.field]||"String",leftAddon:s.leftAddon&&s.leftAddon==="icon"&&t.jsxRuntimeExports.jsx(t.Icon,{name:n[s.field]})})})})]})},ns="_other_g74jx_1",os="_subtitle_g74jx_7",is="_items_g74jx_14",J={other:ns,subtitle:os,items:is},tt=l=>{const{items:n,title:e="Other"}=l;return t.jsxRuntimeExports.jsxs("div",{className:J.other,children:[t.jsxRuntimeExports.jsx("h5",{className:J.subtitle,children:e}),t.jsxRuntimeExports.jsx("div",{className:J.items,children:n.map((o,r)=>t.jsxRuntimeExports.jsx(t.Switch,{current:o.isItem,onChange:a=>o.setIsItem(a),label:o.label,hasBackground:!0,paddingless:!1},r))})]})},cs=l=>{const{index:n,moveProduct:e,children:o}=l,[,r]=t.useDrop({accept:"product",hover(c){c.index!==n&&(e(c.index,n),c.index=n)}}),[{isDragging:a},s]=t.useDrag({type:"product",item:{index:n},collect:c=>({isDragging:c.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:c=>s(r(c)),className:`${$.product} ${a?$.dragging:""}`,children:o})},st=l=>{const{isActiveItems:n,setIsActiveItems:e,items:o,setItems:r,other:a,title:s,subtitle:c,editable:d=!0,draggable:R=!1,withImage:p=!1,deletable:v=!0,addable:g=!0,itemsType:i,itemsPlaceholder:x="",itemsOptions:_,hasRangeSelector:N=!1,rangeSelectorOptions:q,modalOptions:k,addableOptions:F={},limit:S}=l,[D,L]=h.useState(null),[Q,X]=h.useState({top:0,left:0}),[m,b]=h.useState(!1),P=(u,C)=>{const w=[...o],[E]=w.splice(u,1);w.splice(C,0,E),r(w)};h.useEffect(()=>{const u=()=>{L(null),b(!1)};return document.body.addEventListener("click",u),L(null),b(!1),()=>{L(null),b(!1),document.body.removeEventListener("click",u)}},[]),h.useEffect(()=>{if(D){const u=[...o].map(C=>C.id===D.id?D:C);r(u)}},[D]);const y=(u,C)=>{u.stopPropagation(),b(!0);const w=u.target.getBoundingClientRect(),E=500,U=window.innerHeight;let O=w.top+window.scrollY;O+E>U&&(O=U-E-20),X({top:O-80,left:w.left-30}),L(C)};function H(u){if(p)return u?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${u[0]}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const T=(u,C)=>{const w=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[R&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})}),i==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:E=>{const O=[...o].map(M=>M.id===u.id?{...u,name:E}:M);L({...u,name:E}),r([...O])},value:u.name,options:_,leftAddon:H(u.images)}),i==="input"&&t.jsxRuntimeExports.jsx(t.Input,{onChange:E=>{const O=[...o].map(M=>M.id===u.id?{...u,name:E}:M);r([...O])},value:u.name,placeholder:x}),i==="image"&&t.jsxRuntimeExports.jsx(t.ChooseImage,{onChange:E=>{const O=[...o].map(M=>M.id===u.id?{...u,images:E}:M);r([...O])}}),t.jsxRuntimeExports.jsxs("div",{className:$.buttons,children:[d&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:E=>y(E,u)}),v&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>r(o.filter(E=>E.id!==u.id))})]})]});return R?t.jsxRuntimeExports.jsx(cs,{product:u,index:C,moveProduct:P,children:w},u.id):t.jsxRuntimeExports.jsx("div",{className:$.product,children:w},u.id)};return t.jsxRuntimeExports.jsxs("div",{className:$.productsBlock,children:[(s||n!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[s&&t.jsxRuntimeExports.jsx("h3",{className:$.title,children:s}),n!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:u=>e==null?void 0:e(u)})]}),D&&d&&k&&m&&t.jsxRuntimeExports.jsx(es,{activeItem:D,setActiveItem:L,popupPosition:Q,modalOptions:k,setIsOpenModal:b}),N&&q&&t.jsxRuntimeExports.jsx(nt,{...q}),t.jsxRuntimeExports.jsxs("div",{className:$.products,children:[c&&t.jsxRuntimeExports.jsx("h5",{className:$.subtitle,children:c}),R?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:o.map((u,C)=>T(u,C))}):o.map((u,C)=>T(u,C)),g&&t.jsxRuntimeExports.jsxs(t.Button,{className:t.clx($.button,{[$.disabled]:!!(S&&S<=o.length)}),size:"s",disabled:!!(S&&S<=o.length),onClick:()=>{const u=[...o];i==="select"?u.push({name:_[0]||`Product ${o.length+1}`,id:t.v4(),...F}):i==="input"?u.push({name:"",id:t.v4(),...F}):u.push({name:`Image ${o.length+1}`,id:t.v4(),...F}),r(u)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),a!==void 0&&t.jsxRuntimeExports.jsx(tt,{items:a})]})},rs="_subtitle_1fb9q_1",as="_header_1fb9q_8",ls="_text_1fb9q_9",us="_productsBlock_1fb9q_10",ds="_buttonsBlock_1fb9q_11",xs="_top_1fb9q_22",ms="_itemsBlock_1fb9q_31",ps="_typeTexts_1fb9q_37",_s="_block_1fb9q_44",js="_active_1fb9q_56",hs="_products_1fb9q_10",gs="_product_1fb9q_10",fs="_button_1fb9q_11",bs="_image_1fb9q_86",vs="_info_1fb9q_93",Rs="_name_1fb9q_105",Es="_buttons_1fb9q_11",ks="_modal_1fb9q_116",ys="_other_1fb9q_135",Is="_options_1fb9q_141",V={subtitle:rs,header:as,text:ls,productsBlock:us,buttonsBlock:ds,top:xs,itemsBlock:ms,typeTexts:ps,block:_s,active:js,products:hs,product:gs,button:fs,image:bs,info:vs,name:Rs,buttons:Es,modal:ks,other:ys,options:Is},$s=l=>{const{activeButton:n,setActiveButton:e,popupPosition:o}=l,[r,a]=h.useState(n.typesText),[s,c]=h.useState(n.destination),[d,R]=h.useState(n.link||""),[p,v]=h.useState(n.text||"");return h.useEffect(()=>{e({...n,...{text:p,link:d,destination:s,typesText:r}})},[r,s,d,p]),t.jsxRuntimeExports.jsxs("div",{className:V.modal,onClick:g=>{g.stopPropagation()},style:{top:`${o.top}px`,left:`${o.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:V.top,children:[t.jsxRuntimeExports.jsx("h3",{children:n.type}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>e(null)})]}),t.jsxRuntimeExports.jsxs("div",{className:V.options,children:[t.jsxRuntimeExports.jsx(t.Select,{label:"Destination",onChange:g=>c(g),options:["Go to Page","Open Link"],value:s}),s==="Go to Page"?t.jsxRuntimeExports.jsx(t.Select,{label:"Go to",onChange:()=>{},options:[],value:"Homepage"}):t.jsxRuntimeExports.jsx(t.Input,{onChange:g=>R(g),value:d,placeholder:"https://",label:"Link"}),t.jsxRuntimeExports.jsx(t.Switch,{current:!1,label:"Open in new tab"}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:g=>v(g),value:p,label:"Text",maxLength:150}),t.jsxRuntimeExports.jsx(K,{typesText:r,setTypesText:a})]})]})},Ns="_subtitle_m8qel_1",Cs="_header_m8qel_8",Bs="_text_m8qel_9",qs="_productsBlock_m8qel_10",Ps="_buttonsBlock_m8qel_11",ws="_top_m8qel_23",Ss="_itemsBlock_m8qel_32",Ts="_typeTexts_m8qel_38",As="_block_m8qel_45",Os="_active_m8qel_58",Ds="_products_m8qel_10",Ls="_product_m8qel_10",Ms="_button_m8qel_11",Hs="_image_m8qel_88",Vs="_info_m8qel_95",Fs="_name_m8qel_107",Us="_buttons_m8qel_11",zs="_modal_m8qel_118",Gs="_other_m8qel_137",Ys="_options_m8qel_143",Y={subtitle:Ns,header:Cs,text:Bs,productsBlock:qs,buttonsBlock:Ps,top:ws,itemsBlock:Ss,typeTexts:Ts,block:As,active:Os,products:Ds,product:Ls,button:Ms,image:Hs,info:Vs,name:Fs,buttons:Us,modal:zs,other:Gs,options:Ys},et=l=>{const{buttons:n,setButtons:e,deletable:o=!0,addable:r=!0}=l,[a,s]=h.useState(null),[c,d]=h.useState({top:0,left:0});h.useEffect(()=>{const p=()=>{s(null)};return document.body.addEventListener("click",p),s(null),()=>{s(null),document.body.removeEventListener("click",p)}},[]),h.useEffect(()=>{if(a){const p=[...n].map(v=>v.id===a.id?a:v);e(p)}},[a]);const R=(p,v)=>{p.stopPropagation();const g=p.target.getBoundingClientRect(),i=490,x=window.innerHeight;let _=g.top+window.scrollY;_+i>x&&(_=x-i-20),d({top:_,left:g.left-30}),s(v)};return t.jsxRuntimeExports.jsxs("div",{className:Y.products,children:[t.jsxRuntimeExports.jsx("h5",{className:Y.subtitle,children:"Button Type"}),n.map(p=>t.jsxRuntimeExports.jsxs("div",{className:Y.product,children:[t.jsxRuntimeExports.jsx(t.Select,{onChange:v=>{const i=[...n].map(x=>x.id===p.id?{...p,type:v}:x);e(i)},value:p.type,options:["Primary","Secondary","Tertiary"]}),t.jsxRuntimeExports.jsxs("div",{className:Y.buttons,children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:v=>{R(v,p)}}),o&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,onClick:()=>{const v=n.filter(g=>g.id!==p.id);e(v)},width:20,height:20,fill:"#C12A2A"})]})]},p.id)),a&&t.jsxRuntimeExports.jsx($s,{activeButton:a,setActiveButton:s,popupPosition:c}),r&&t.jsxRuntimeExports.jsxs(t.Button,{className:Y.button,size:"s",onClick:()=>{const p=[...n];p.push({type:"Primary",id:t.v4(),typesText:[],destination:"Go to Page",text:""}),e(p)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]})},Xs=l=>{const{isActiveButtons:n,setIsActiveButtons:e,buttons:o,setButtons:r}=l;return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsxs("div",{className:V.buttonsBlock,children:[t.jsxRuntimeExports.jsxs("div",{className:V.top,children:[t.jsxRuntimeExports.jsx("h3",{className:V.title,children:"Buttons"}),t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:a=>e(a)})]}),t.jsxRuntimeExports.jsx(et,{buttons:o,setButtons:r})]})})},Qs="_wrapper_m18qi_1",Ws="_subtitle_m18qi_7",Js="_content_m18qi_14",Ks="_range_m18qi_22",Zs="_track_m18qi_27",te="_progress_m18qi_36",se="_dots_m18qi_46",ee="_dot_m18qi_46",ne="_active_m18qi_65",oe="_input_m18qi_77",ie="_countBlock_m18qi_91",ce="_count_m18qi_91",re="_controls_m18qi_107",ae="_button_m18qi_113",I={wrapper:Qs,subtitle:Ws,content:Js,range:Ks,track:Zs,progress:te,dots:se,dot:ee,active:ne,input:oe,countBlock:ie,count:ce,controls:re,button:ae},nt=l=>{const{label:n,min:e=1,max:o=4,step:r=1,count:a,setCount:s}=l,[c,d]=h.useState(!1),R=Array.from({length:(o-e)/r+1}),p=(a-e)/(o-e)*100,v=()=>{a<o&&s(a+r)},g=()=>{a>e&&s(a-r)},i=x=>{const _=e+x*r;s(_)};return t.jsxRuntimeExports.jsxs("div",{className:I.wrapper,children:[n&&t.jsxRuntimeExports.jsx("h5",{className:I.subtitle,children:n}),t.jsxRuntimeExports.jsxs("div",{className:I.content,children:[t.jsxRuntimeExports.jsxs("div",{className:I.range,children:[t.jsxRuntimeExports.jsx("div",{className:I.track}),t.jsxRuntimeExports.jsx("div",{className:I.progress,style:{width:`${p}%`}}),t.jsxRuntimeExports.jsx("div",{className:I.dots,children:R.map((x,_)=>{const N=_<=(a-e)/r;return t.jsxRuntimeExports.jsx("button",{onClick:()=>i(_),className:t.clx(I.dot,{[I.active]:N,[I.inactive]:!N,[I.dragging]:c}),"aria-label":`Set value to ${e+_*r}`},_)})}),t.jsxRuntimeExports.jsx("input",{type:"range",min:e,max:o,step:r,value:a,onChange:x=>s(Number(x.target.value)),onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),className:I.input})]}),t.jsxRuntimeExports.jsxs("div",{className:I.countBlock,children:[t.jsxRuntimeExports.jsx(t.Input,{type:"number",min:e,max:o,paddingless:!0,onChange:x=>{const _=Number(x);_>o?s(o):_<e?s(e):s(_)},value:String(a)}),t.jsxRuntimeExports.jsxs("div",{className:I.controls,children:[t.jsxRuntimeExports.jsx("button",{onClick:v,disabled:a>=o,className:I.button,"aria-label":"Increment count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretUp",width:15,height:15})}),t.jsxRuntimeExports.jsx("button",{onClick:g,disabled:a<=e,className:I.button,"aria-label":"Decrement count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown",width:15,height:15})})]})]})]})]})},le="_subtitle_16rdk_1",ue="_header_16rdk_8",de="_text_16rdk_9",xe="_productsBlock_16rdk_10",me="_top_16rdk_22",pe="_itemsBlock_16rdk_31",_e="_typeTexts_16rdk_37",je="_block_16rdk_44",he="_active_16rdk_57",ge="_products_16rdk_10",fe="_product_16rdk_10",be="_button_16rdk_76",ve="_image_16rdk_87",Re="_info_16rdk_94",Ee="_name_16rdk_106",ke="_buttons_16rdk_110",ye="_modal_16rdk_117",Ie="_link_16rdk_137",$e="_modalOptions_16rdk_143",B={subtitle:le,header:ue,text:de,productsBlock:xe,top:me,itemsBlock:pe,typeTexts:_e,block:je,active:he,products:ge,product:fe,button:be,image:ve,info:Re,name:Ee,buttons:ke,modal:ye,link:Ie,modalOptions:$e},Ne=l=>{const{activeItem:n,setActiveItem:e,popupPosition:o,setIsOpenModal:r}=l;return t.jsxRuntimeExports.jsxs("div",{className:B.modal,onClick:a=>{a.stopPropagation()},style:{top:`${o.top}px`,left:`${o.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:B.top,children:[t.jsxRuntimeExports.jsx("h3",{children:n.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{r(!1),e(null)}})]}),t.jsxRuntimeExports.jsx("div",{className:B.modalOptions,children:t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:a=>{const s={...n,images:a,imagePath:a[0]};e(s)}})})]})},Ce=l=>{const{index:n,moveProduct:e,children:o}=l,[,r]=t.useDrop({accept:"product",hover(c){c.index!==n&&(e(c.index,n),c.index=n)}}),[{isDragging:a},s]=t.useDrag({type:"product",item:{index:n},collect:c=>({isDragging:c.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:c=>s(r(c)),className:`${B.product} ${a?B.dragging:""}`,children:o})},Be=l=>{const{isActiveItems:n,setIsActiveItems:e,items:o,setItems:r,other:a,title:s,subtitle:c,editable:d=!0,draggable:R=!1,withImage:p=!1,deletable:v=!0,addable:g=!0,itemsType:i,itemsOptions:x}=l,[_,N]=h.useState(null),[q,k]=h.useState({top:0,left:0}),[F,S]=h.useState(!1),D=(m,b)=>{const P=[...o],[y]=P.splice(m,1);P.splice(b,0,y),r(P)};h.useEffect(()=>{const m=()=>{N(null),S(!1)};return document.body.addEventListener("click",m),N(null),S(!1),()=>{N(null),S(!1),document.body.removeEventListener("click",m)}},[]),h.useEffect(()=>{if(_){const m=[...o].map(b=>b.id===_.id?_:b);r(m)}},[_]);const L=(m,b)=>{m.stopPropagation();const P=m.target.getBoundingClientRect(),y=100,H=window.innerHeight;let T=P.top+window.scrollY;T+y>H&&(T=H-y-20),S(!0),k({top:T-80,left:P.left-30}),N(b)};function Q(m){if(p)return m?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${m}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const X=(m,b)=>{const P=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[R&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})},b),i==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:y=>{const H=[...o],T=Number(y.split(" ")[1]),u=x.find(E=>E.id===T);if(!u)return;const C={...u.productData.stats,newPrice:u.productData.minPrice.amount,oldPrice:u.productData.compareAtPrice.amount},w=H.map(E=>E.id===m.id?{...m,name:y,listingId:T,stats:C}:E);N({...m,name:y,listingId:T}),r([...w])},value:m.name,options:[...x.map(y=>`Product ${y.id}`)],leftAddon:Q(m.images[0])},b),t.jsxRuntimeExports.jsxs("div",{className:B.buttons,children:[d&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:y=>L(y,m)}),v&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>r(o.filter(y=>y.id!==m.id))})]})]});return R?t.jsxRuntimeExports.jsx(Ce,{product:m,index:b,moveProduct:D,children:P},m.id):t.jsxRuntimeExports.jsx("div",{className:B.product,children:P},m.id)};return t.jsxRuntimeExports.jsxs("div",{className:B.productsBlock,children:[(s||n!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:B.top,children:[s&&t.jsxRuntimeExports.jsx("h3",{className:B.title,children:s}),n!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:m=>e==null?void 0:e(m)})]}),F&&_&&t.jsxRuntimeExports.jsx(Ne,{activeItem:_,setActiveItem:N,setIsOpenModal:S,popupPosition:q}),t.jsxRuntimeExports.jsxs("div",{className:B.products,children:[c&&t.jsxRuntimeExports.jsx("h5",{className:B.subtitle,children:c}),R?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:o.map((m,b)=>X(m,b))}):o.map((m,b)=>X(m,b)),g&&t.jsxRuntimeExports.jsxs(t.Button,{className:B.button,size:"s",onClick:()=>{const m=[...o],b=x[0].id;m.push({name:`Product ${b}`,id:t.v4(),listingId:b,imagePath:"",images:[],stats:{...x[0].productData.stats,newPrice:x[0].productData.minPrice.amount,oldPrice:x[0].productData.compareAtPrice.amount}}),r(m)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),a!==void 0&&t.jsxRuntimeExports.jsx(tt,{items:a})]})},qe="_options_q6sjs_1",Pe="_price_q6sjs_12",we="_oldPrice_q6sjs_19",Se="_newPrice_q6sjs_27",Te="_meta_q6sjs_34",Ae="_info_q6sjs_40",Oe="_infoRight_q6sjs_48",De="_buttons_q6sjs_55",Le="_variants_q6sjs_62",Me="_variant_q6sjs_62",He="_stock_q6sjs_79",Ve="_variantInfo_q6sjs_86",Fe="_quantity_q6sjs_92",Ue="_count_q6sjs_99",ze="_button_q6sjs_55",Ge="_activeVariant_q6sjs_120",Ye="_chargeTypes_q6sjs_124",Xe="_charge_q6sjs_124",Qe="_chargeActive_q6sjs_144",f={options:qe,price:Pe,oldPrice:we,newPrice:Se,meta:Te,info:Ae,infoRight:Oe,buttons:De,variants:Le,variant:Me,stock:He,variantInfo:Ve,quantity:Fe,count:Ue,button:ze,activeVariant:Ge,chargeTypes:Ye,charge:Xe,chargeActive:Qe},We=l=>{const{variants:n}=l,[e,o]=h.useState(n[0]),r=t.useNavigate(),[a,s]=h.useState(1),{reset:c,addProductToCart:d,getProducts:R}=t.useCart();async function p(){await R(),await d({productId:l.id,productVariantId:e.id,quantity:a})}function v(){c(),p(),r("/checkout")}function g(i){if(i>=864e5){const k=Math.floor(i/864e5);return`${k} ${k===1?"day":"days"}`}else if(i>=36e5){const k=Math.floor(i/36e5);return`${k} ${k===1?"hour":"hours"}`}else if(i>=6e4){const k=Math.floor(i/6e4);return`${k} ${k===1?"minute":"minutes"}`}else{const k=Math.floor(i/1e3);return`${k} ${k===1?"second":"seconds"}`}}return t.jsxRuntimeExports.jsxs("div",{className:f.options,children:[t.jsxRuntimeExports.jsx("div",{className:f.chargeTypes,children:e.chargeTypes?e.chargeTypes.map(i=>t.jsxRuntimeExports.jsx("div",{children:i},i)):t.jsxRuntimeExports.jsx("div",{className:t.clx(f.charge,f.chargeActive),children:"One-Time"})}),t.jsxRuntimeExports.jsx("div",{className:f.variants,children:n.map(i=>t.jsxRuntimeExports.jsxs("div",{className:t.clx(f.variant,{[f.activeVariant]:e.id===i.id}),onClick:()=>o(i),children:[t.jsxRuntimeExports.jsxs("div",{className:f.variantInfo,children:[t.jsxRuntimeExports.jsx("span",{className:f.title,children:i.name}),t.jsxRuntimeExports.jsxs("span",{children:["$",i.price.amount]})]}),t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsxs("span",{className:f.stock,children:[i.quantity.restrictions.max||0," in stock"]})})]},i.id))}),t.jsxRuntimeExports.jsxs("div",{className:f.quantity,children:[t.jsxRuntimeExports.jsx("div",{onClick:()=>{a>1?s(i=>i-1):s(1)},className:f.button,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Minus"})}),t.jsxRuntimeExports.jsx("div",{className:f.count,children:a}),t.jsxRuntimeExports.jsx("div",{onClick:()=>s(i=>i+1),className:f.button,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus"})})]}),t.jsxRuntimeExports.jsxs("div",{className:f.meta,children:[t.jsxRuntimeExports.jsxs("div",{className:f.info,children:[t.jsxRuntimeExports.jsx("span",{children:"Delivery"}),t.jsxRuntimeExports.jsxs("div",{className:f.infoRight,children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Lightning",fill:"#FF3F19",width:20,height:20}),t.jsxRuntimeExports.jsx("span",{children:e.deliveryTime===0?"Instant":g(e.deliveryTime)})]})]}),t.jsxRuntimeExports.jsxs("div",{className:f.info,children:[t.jsxRuntimeExports.jsx("span",{children:"Price"}),t.jsxRuntimeExports.jsx("div",{className:f.infoRight,children:e.compareAtPrice&&(e.compareAtPrice.amount||0)-(e.price.amount||0)>0?t.jsxRuntimeExports.jsxs("div",{className:f.price,children:[t.jsxRuntimeExports.jsxs("span",{className:f.newPrice,children:["$ ",(e.price.amount||0)*a]}),t.jsxRuntimeExports.jsxs("span",{className:f.oldPrice,children:["$ ",(e.compareAtPrice.amount||0)*a]})]}):t.jsxRuntimeExports.jsxs("span",{className:f.newPrice,children:["$ ",(e.price.amount||0)*a]})})]})]}),t.jsxRuntimeExports.jsxs("div",{className:f.buttons,children:[t.jsxRuntimeExports.jsx(t.Button,{type:"Primary",onClick:()=>v(),children:"Buy Now"}),t.jsxRuntimeExports.jsx(t.Button,{type:"Secondary",onClick:()=>p(),children:"Add to Cart"})]})]})},Je="_button_14i4s_1",Ke="_login_14i4s_14",Ze="_signUp_14i4s_18",tn="_buttons_14i4s_23",sn="_modal_14i4s_32",en="_info_14i4s_48",nn="_top_14i4s_55",on="_title_14i4s_66",cn="_clear_14i4s_72",rn="_activeClear_14i4s_79",an="_count_14i4s_83",ln="_cart_14i4s_98",un="_empty_14i4s_106",dn="_product_14i4s_132",xn="_products_14i4s_141",mn="_image_14i4s_149",pn="_productInfo_14i4s_155",_n="_content_14i4s_162",jn="_name_14i4s_168",hn="_price_14i4s_174",gn="_productButtons_14i4s_180",fn="_productButton_14i4s_180",bn="_productCount_14i4s_200",vn="_bottom_14i4s_216",Rn="_subtotal_14i4s_224",En="_block_14i4s_232",kn="_shoppingCount_14i4s_239",j={button:Je,login:Ke,signUp:Ze,buttons:tn,modal:sn,info:en,top:nn,title:on,clear:cn,activeClear:rn,count:an,cart:ln,empty:un,product:dn,products:xn,image:mn,productInfo:pn,content:_n,name:jn,price:hn,productButtons:gn,productButton:fn,productCount:bn,bottom:vn,subtotal:Rn,block:En,shoppingCount:kn},yn=l=>{const{shopping:n,signUp:e}=l,o=t.useNavigate();function r(a){o(a)}return t.jsxRuntimeExports.jsxs("div",{className:j.buttons,children:[n&&t.jsxRuntimeExports.jsx(ot,{}),t.jsxRuntimeExports.jsx("div",{className:t.clx(j.button,j.login),onClick:()=>r("/customer-dash"),children:"Login"}),e&&t.jsxRuntimeExports.jsx("div",{className:t.clx(j.button,j.login,j.signUp),onClick:()=>r("/customer-dash"),children:"Sign Up"})]})},ot=()=>{const[l,n]=h.useState(!1),{cart:e}=t.useCart();return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs("div",{className:j.button,onClick:o=>{o.stopPropagation(),n(!0)},children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Handbag",fill:"#252525"}),e.parts.length>0&&t.jsxRuntimeExports.jsx("div",{className:j.shoppingCount,children:e.parts.length})]}),l&&t.jsxRuntimeExports.jsx(t.Modal,{close:n,children:t.jsxRuntimeExports.jsx(it,{})})]})},it=()=>{const{cart:l,reset:n,getProducts:e,getTotalAndDiscount:o,updateQuantityOfProduct:r}=t.useCart(),[a,s]=h.useState([]),c=t.useNavigate();function d(i){for(let x=0;x<l.parts.length;x++)for(let _=0;_<i.variants.length;_++)if(l.parts[x].productVariantId===i.variants[x].id)return l.parts[x].productVariantId}function R(i){for(let x=0;x<l.parts.length;x++)for(let _=0;_<i.variants.length;_++)if(l.parts[x].productVariantId===i.variants[x].id)return l.parts[x].quantity}function p(i){c(i)}function v(i){r({productId:i.id,productVariantId:i.activeVariantId,quantity:i.quantity+1})}function g(i){r({productId:i.id,productVariantId:i.activeVariantId,quantity:i.quantity-1})}return h.useEffect(()=>{(async()=>{const x=l.parts.map(q=>String(q.productId)),N=(await e([...x])).map(q=>({...q,activeVariantId:d(q),quantity:R(q)}));s(N)})()},[l]),t.jsxRuntimeExports.jsxs("div",{className:j.modal,onClick:i=>i.stopPropagation(),children:[t.jsxRuntimeExports.jsxs("div",{className:j.top,children:[t.jsxRuntimeExports.jsxs("div",{className:j.info,children:[t.jsxRuntimeExports.jsx("span",{className:j.title,children:"Cart"}),l.parts.length>0&&t.jsxRuntimeExports.jsx("div",{className:j.count,children:l.parts.length})]}),t.jsxRuntimeExports.jsx("button",{className:t.clx(j.clear,{[j.activeClear]:l.parts.length>0}),disabled:l.parts.length===0,onClick:()=>n(),children:"Clear all"})]}),l.parts.length>0?t.jsxRuntimeExports.jsxs("div",{className:j.cart,children:[t.jsxRuntimeExports.jsx("div",{className:j.products,children:a.map(i=>t.jsxRuntimeExports.jsxs("div",{className:j.product,children:[t.jsxRuntimeExports.jsxs("div",{className:j.productInfo,children:[t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${i.images[0].cfId}/w=500`,alt:"image",width:"100%",height:"100%",className:j.image}),t.jsxRuntimeExports.jsxs("div",{className:j.content,children:[t.jsxRuntimeExports.jsx("div",{className:j.name,children:i.name}),t.jsxRuntimeExports.jsxs("div",{className:j.price,children:["$",i.variants.find(x=>x.id===i.activeVariantId).price.amount*((i==null?void 0:i.quantity)||1)]})]})]}),t.jsxRuntimeExports.jsxs("div",{className:j.productButtons,children:[t.jsxRuntimeExports.jsx("div",{onClick:()=>{i.quantity!==1&&g(i)},className:j.productButton,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Minus",fill:"#757575",width:20,height:20})}),t.jsxRuntimeExports.jsx("div",{className:j.productCount,children:i.quantity}),t.jsxRuntimeExports.jsx("div",{onClick:()=>v(i),className:j.productButton,children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",fill:"#757575",width:20,height:20})})]})]},i.id))}),t.jsxRuntimeExports.jsxs("div",{className:j.bottom,children:[t.jsxRuntimeExports.jsxs("div",{className:j.subtotal,children:[t.jsxRuntimeExports.jsxs("div",{className:j.block,children:[t.jsxRuntimeExports.jsx("span",{children:"Subtotal"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Info",width:20,height:20,fill:"#757575"})]}),t.jsxRuntimeExports.jsxs("div",{children:["$",o().total]})]}),t.jsxRuntimeExports.jsx(t.Button,{onClick:()=>p("/checkout"),children:"Checkout"})]})]}):t.jsxRuntimeExports.jsx(ct,{})]})},ct=()=>t.jsxRuntimeExports.jsxs("div",{className:j.empty,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"Handbag"})}),t.jsxRuntimeExports.jsx("span",{children:"Your cart is empty"}),t.jsxRuntimeExports.jsx("span",{children:"Check out the store's products and add them here"})]});exports.Button=t.Button;exports.Checkbox=t.Checkbox;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ColorPicker=t.ColorPicker;exports.ErrorableBlock=t.ErrorableBlock;exports.Icon=t.Icon;exports.Input=t.Input;exports.Loader=t.Loader;exports.Modal=t.Modal;exports.Picker=t.Picker;exports.Radio=t.Radio;exports.Select=t.Select;exports.Submodal=t.Submodal;exports.Switch=t.Switch;exports.Textarea=t.Textarea;exports.Tip=t.Tip;exports.Accordion=xt;exports.ButtonTypeSettings=et;exports.ButtonsSettings=Xs;exports.EmptyCart=ct;exports.HeaderButtons=yn;exports.ItemsSettings=st;exports.LayoutSettings=It;exports.ListingSelector=Be;exports.ProductOptions=We;exports.RangeSelector=nt;exports.ShoppingButton=ot;exports.ShoppingModalCart=it;exports.TextSettings=Z;exports.TypesText=K;
package/dist/ui.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { j as t, c as H, I as x, a as G, S as F, T as lt, C as ot, b as Y, D as rt, H as dt, B as X, v as tt, u as ut, d as _t, e as it, f as at, M as pt } from "./root-Dypsy1hs.js";
2
- import { k as Gn, l as Yn, h as Xn, E as Qn, L as Wn, P as Jn, R as Kn, g as Zn, i as tc } from "./root-Dypsy1hs.js";
1
+ import { j as t, c as H, I as x, a as G, S as F, T as lt, C as ot, b as Y, D as rt, H as dt, B as X, v as tt, u as ut, d as _t, e as it, f as at, M as pt } from "./root-bb64CWCq.js";
2
+ import { k as Gn, l as Yn, h as Xn, E as Qn, L as Wn, P as Jn, R as Kn, g as Zn, i as tc } from "./root-bb64CWCq.js";
3
3
  import f from "react";
4
4
  const gt = "_accordion_9e4oa_1", xt = "_header_9e4oa_9", ft = "_icon_9e4oa_18", jt = "_open_9e4oa_21", bt = "_content_9e4oa_25", J = {
5
5
  accordion: gt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billgangcom/theme-lib",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"