@khyxer/fastyui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fastyui.css +2 -0
- package/dist/index.cjs.js +6 -0
- package/dist/index.es.js +1584 -0
- package/package.json +58 -0
package/dist/fastyui.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:root{--fasty-background:#fff;--fasty-text:#000;--fasty-primary:#2563eb;--fasty-primary-muted:#5ea8fd1a;--fasty-secondary:var(--fasty-background);--fasty-warning:#f59e0b;--fasty-error:#ef4444;--fasty-disabled:#9ca3af;--fasty-disabled-bg:#f3f4f6;--fasty-radius:6px;--fasty-font-size:14px;--fasty-font-weight-normal:400;--fasty-font-weight-bold:600}._button_1xsg4_1{cursor:pointer;font-size:14px;font-weight:var(--fasty-font-weight-normal);will-change:transform;border:1px solid #0000;align-items:center;gap:8px;width:fit-content;transition:background-color .2s,box-shadow .2s,border-radius .3s cubic-bezier(.34,1.56,.64,1);display:flex}._primary_1xsg4_18{background-color:var(--fasty-primary);color:#fff}._primary_1xsg4_18:hover:not(._disabled_1xsg4_23){background-color:#1d4ed8}._primary_1xsg4_18:focus-visible{box-shadow:0 0 0 2px white, 0 0 0 4px var(--fasty-primary);outline:none}._secondary_1xsg4_34{background-color:var(--fasty-secondary);color:var(--fasty-text);border:1px solid #e0e0e0}._secondary_1xsg4_34:hover:not(._disabled_1xsg4_23){background-color:#f9fafb;border-color:#d1d5db}._secondary_1xsg4_34:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #e0e0e0}._warning_1xsg4_52{background-color:var(--fasty-warning);color:#fff}._warning_1xsg4_52:hover:not(._disabled_1xsg4_23){background-color:#ea580c}._warning_1xsg4_52:focus-visible{box-shadow:0 0 0 2px white, 0 0 0 4px var(--fasty-warning);outline:none}._error_1xsg4_68{background-color:var(--fasty-error);color:#fff}._error_1xsg4_68:hover:not(._disabled_1xsg4_23){background-color:#dc2626}._error_1xsg4_68:focus-visible{box-shadow:0 0 0 2px white, 0 0 0 4px var(--fasty-error);outline:none}._disabled_1xsg4_23{pointer-events:none;background-color:var(--fasty-disabled-bg)!important;color:var(--fasty-disabled)!important;cursor:not-allowed!important}._sm_1xsg4_92{border-radius:8px;gap:6px;padding:7px 12px;font-size:12px}._sm_1xsg4_92:hover{border-radius:15px}._lg_1xsg4_103{border-radius:12px;gap:8px;padding:9px 16px;font-size:14px}._lg_1xsg4_103:hover{border-radius:20px}._xl_1xsg4_114{font-size:18px;font-weight:var(--fasty-font-weight-bold);border-radius:16px;gap:10px;padding:12px 20px}._xl_1xsg4_114:hover{border-radius:24px}._input_1ddpd_1{border:1px solid #e0e0e0;border-radius:12px;outline:none;padding:8px 12px;font-size:14px;transition:all .2s ease-in-out}._input_1ddpd_1:focus{box-shadow:0 0 0 2px var(--fasty-background), 0 0 0 3.5px var(--fasty-primary);border-color:var(--fasty-primary);border-radius:20px}._inputWrapper_1ddpd_19{background-color:var(--fasty-background);border:1px solid #e0e0e0;border-radius:12px;align-items:center;transition:all .2s ease-in-out;display:inline-flex;position:relative}._inputWrapper_1ddpd_19:focus-within{box-shadow:0 0 0 2px var(--fasty-background), 0 0 0 3.5px var(--fasty-primary);border-color:var(--fasty-primary);border-radius:20px}._icon_1ddpd_37{color:#666;flex-shrink:0;justify-content:center;align-items:center;padding:0 0 0 8px;display:flex}._eyeButton_1ddpd_46{cursor:pointer;color:#666;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0 12px 0 8px;transition:color .2s;display:flex}._eyeButton_1ddpd_46:hover{color:var(--fasty-primary)}._inputWithIcon_1ddpd_63{background:0 0;border:none;outline:none;flex:1;padding:0;font-size:14px}._sm_1ddpd_72{border-radius:10px;padding:6px 10px;font-size:12px}._sm_1ddpd_72:focus{border-radius:16px}._sm_1ddpd_72._inputWrapper_1ddpd_19:focus-within{border-radius:16px}._sm_1ddpd_72 ._inputWithIcon_1ddpd_63{font-size:12px}._lg_1ddpd_92{border-radius:14px;padding:10px 14px;font-size:16px}._lg_1ddpd_92:focus{border-radius:22px}._lg_1ddpd_92._inputWrapper_1ddpd_19:focus-within{border-radius:22px}._lg_1ddpd_92 ._inputWithIcon_1ddpd_63{font-size:16px}._xl_1ddpd_112{border-radius:16px;padding:12px 16px;font-size:18px}._xl_1ddpd_112:focus{border-radius:24px}._xl_1ddpd_112._inputWrapper_1ddpd_19:focus-within{border-radius:24px}._xl_1ddpd_112 ._inputWithIcon_1ddpd_63{font-size:18px}._card_w8zkq_1{background-color:var(--fasty-background);border:1px solid #e0e0e0;border-radius:12px;padding:12px;box-shadow:0 2px 4px -2px #0000001a}._dashed_w8zkq_9{background-color:#f9f9f9;border-style:dashed}._overlay_1qbeq_1{z-index:999;background-color:#00000080;position:fixed;inset:0}._sheet_1qbeq_8{background-color:var(--fasty-background);z-index:1000;flex-direction:column;display:flex;position:fixed;overflow:hidden;box-shadow:0 8px 32px #0003}._sheet_1qbeq_8._right_1qbeq_18{border-radius:12px 0 0 18px;top:0;bottom:0;right:0}._sheet_1qbeq_8._left_1qbeq_25{border-radius:0 12px 18px 0;top:0;bottom:0;left:0}._sheet_1qbeq_8._top_1qbeq_32{border-radius:0 0 18px 12px;top:0;left:0;right:0}._sheet_1qbeq_8._bottom_1qbeq_39{border-radius:12px 18px 0 0;bottom:0;left:0;right:0}._sheet_1qbeq_8._right_1qbeq_18._sm_1qbeq_46,._sheet_1qbeq_8._left_1qbeq_25._sm_1qbeq_46{width:300px;max-width:90vw}._sheet_1qbeq_8._right_1qbeq_18._md_1qbeq_52,._sheet_1qbeq_8._left_1qbeq_25._md_1qbeq_52{width:400px;max-width:90vw}._sheet_1qbeq_8._right_1qbeq_18._lg_1qbeq_58,._sheet_1qbeq_8._left_1qbeq_25._lg_1qbeq_58{width:600px;max-width:90vw}._sheet_1qbeq_8._right_1qbeq_18._xl_1qbeq_64,._sheet_1qbeq_8._left_1qbeq_25._xl_1qbeq_64{width:800px;max-width:90vw}._sheet_1qbeq_8._right_1qbeq_18._full_1qbeq_70,._sheet_1qbeq_8._left_1qbeq_25._full_1qbeq_70{width:100vw}._sheet_1qbeq_8._top_1qbeq_32._sm_1qbeq_46,._sheet_1qbeq_8._bottom_1qbeq_39._sm_1qbeq_46{width:100%;height:300px;max-height:90vh}._sheet_1qbeq_8._top_1qbeq_32._md_1qbeq_52,._sheet_1qbeq_8._bottom_1qbeq_39._md_1qbeq_52{width:100%;height:400px;max-height:90vh}._sheet_1qbeq_8._top_1qbeq_32._lg_1qbeq_58,._sheet_1qbeq_8._bottom_1qbeq_39._lg_1qbeq_58{width:100%;height:600px;max-height:90vh}._sheet_1qbeq_8._top_1qbeq_32._xl_1qbeq_64,._sheet_1qbeq_8._bottom_1qbeq_39._xl_1qbeq_64{width:100%;height:800px;max-height:90vh}._sheet_1qbeq_8._top_1qbeq_32._full_1qbeq_70,._sheet_1qbeq_8._bottom_1qbeq_39._full_1qbeq_70{width:100%;height:100vh}._closeButton_1qbeq_109{cursor:pointer;color:var(--fasty-text);opacity:.6;background:0 0;border:none;padding:4px 8px;font-size:24px;line-height:1;transition:opacity .2s;position:absolute;top:16px;right:16px}._closeButton_1qbeq_109:hover{opacity:1}._header_1pbdy_1{border-bottom:1px solid #e0e0e0;justify-content:space-between;align-items:flex-start;padding:18px;display:flex}._content_1pbdy_9{flex-direction:column;gap:0;display:flex}._title_1pbdy_15{font-size:24px;font-weight:var(--fasty-font-weight-bold);color:var(--fasty-text);margin:0;line-height:1.3}._description_1pbdy_23{color:#6b7280;margin:8px 0 0;font-size:14px;line-height:.5}._closeButton_1pbdy_30{cursor:pointer;width:40px;height:40px;color:var(--fasty-text);opacity:.6;background:0 0;border:none;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;padding:4px 8px;font-size:24px;line-height:1;transition:all .2s;display:flex}._closeButton_1pbdy_30:hover{opacity:1;background-color:#f0f0f0}._content_n86ez_1{flex:1;padding:18px;overflow-y:auto}._footer_e6jod_1{border-top:1px solid #e0e0e0;padding:18px}._overlay_160jk_1{z-index:999;background-color:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}._modal_160jk_11{background-color:var(--fasty-background);z-index:1000;border-radius:16px;flex-direction:column;max-width:90vw;max-height:90vh;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}._header_52hw4_1{border-bottom:1px solid #e0e0e0;flex-shrink:0;justify-content:space-between;align-items:flex-start;padding:18px;display:flex}._content_52hw4_10{flex-direction:column;gap:4px;display:flex}._title_52hw4_16{font-size:22px;font-weight:var(--fasty-font-weight-bold);color:var(--fasty-text);margin:0;line-height:1.2}._description_52hw4_24{color:#6b7280;margin:0;font-size:13px;line-height:1.2}._closeButton_52hw4_31{cursor:pointer;width:40px;height:40px;color:var(--fasty-text);opacity:.6;background:0 0;border:none;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;padding:4px 8px;font-size:24px;line-height:1;transition:all .2s;display:flex}._closeButton_52hw4_31:hover{opacity:1;background-color:#f0f0f0}._body_6i5xc_1{flex:1;padding:18px;overflow-y:auto}._content_5wshu_1{flex-direction:column;display:flex;overflow-y:auto}._content_5wshu_1._sm_5wshu_7{width:400px;max-width:90vw}._content_5wshu_1._md_5wshu_12{width:600px;max-width:90vw}._content_5wshu_1._lg_5wshu_17{width:800px;max-width:90vw}._content_5wshu_1._xl_5wshu_22{width:1000px;max-width:90vw}._footer_1hqi4_1{border-top:1px solid #e0e0e0;flex-shrink:0;justify-content:flex-end;align-items:center;gap:12px;padding:16px 18px;display:flex}._toast-container_1rucc_1{z-index:9999;pointer-events:none;position:fixed}._toast-container--top-left_1rucc_7{top:20px;left:20px}._toast-container--top-center_1rucc_12{top:20px;left:50%}._toast-container--top-right_1rucc_17{top:20px;right:20px}._toast-container--bottom-left_1rucc_22{bottom:20px;left:20px}._toast-container--bottom-center_1rucc_27{bottom:20px;left:50%}._toast-container--bottom-right_1rucc_32{bottom:20px;right:20px}._toast_1rucc_1{pointer-events:auto;background:#fff;border:1px solid;border-radius:16px;align-items:center;gap:12px;min-width:300px;max-width:500px;padding:12px 16px;display:flex;position:absolute;box-shadow:0 4px 7px -2px #00000026}._toast-container--top-left_1rucc_7 ._toast_1rucc_1,._toast-container--top-center_1rucc_12 ._toast_1rucc_1,._toast-container--top-right_1rucc_17 ._toast_1rucc_1{top:0}._toast-container--bottom-left_1rucc_22 ._toast_1rucc_1,._toast-container--bottom-center_1rucc_27 ._toast_1rucc_1,._toast-container--bottom-right_1rucc_32 ._toast_1rucc_1{bottom:0}._toast-container--top-left_1rucc_7 ._toast_1rucc_1,._toast-container--bottom-left_1rucc_22 ._toast_1rucc_1{left:0}._toast-container--top-center_1rucc_12 ._toast_1rucc_1,._toast-container--bottom-center_1rucc_27 ._toast_1rucc_1{left:50%;transform:translate(-50%)}._toast-container--top-right_1rucc_17 ._toast_1rucc_1,._toast-container--bottom-right_1rucc_32 ._toast_1rucc_1{left:auto;right:0}._toast__icon_1rucc_81{justify-content:center;align-items:center;width:24px;height:24px;font-size:20px;display:flex}._toast__message_1rucc_90{color:#333;flex:1;font-size:14px;line-height:1.4}._toast__close_1rucc_97{cursor:pointer;color:#666;background:0 0;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:25px;height:25px;padding:2px;font-size:18px;transition:color .2s;display:flex}._toast__close_1rucc_97:hover{color:#333;background:#ffffffa4}._toast--success_1rucc_119{background:#f0fdf4;border-color:#10b981}._toast--success_1rucc_119 ._toast__icon_1rucc_81{color:#10b981}._toast--error_1rucc_128{background:#fef2f2;border-color:#ef4444}._toast--error_1rucc_128 ._toast__icon_1rucc_81{color:#ef4444}._toast--warning_1rucc_137{background:#fffbeb;border-color:#f59e0b}._toast--warning_1rucc_137 ._toast__icon_1rucc_81{color:#f59e0b}._toast--info_1rucc_146{background:#eff6ff;border-color:#3b82f6}._toast--info_1rucc_146 ._toast__icon_1rucc_81{color:#3b82f6}._otpContainer_vqdff_1{justify-content:center;align-items:center;gap:8px;display:flex}._otpInput_vqdff_8{text-align:center;width:48px;height:56px;font-size:24px;font-weight:var(--fasty-font-weight-bold);background-color:var(--fasty-background);color:var(--fasty-text);caret-color:var(--fasty-primary);border:2px solid #e0e0e0;border-radius:18px;outline:none;transition:all .2s ease-in-out}._otpInput_vqdff_8:focus{border-color:var(--fasty-primary);box-shadow:0 0 0 2px var(--fasty-background), 0 0 0 4px var(--fasty-primary);border-radius:28px}._otpInput_vqdff_8._filled_vqdff_31{border-color:var(--fasty-primary);background-color:rgba(var(--fasty-primary-rgb,59, 130, 246), .05)}._otpInput_vqdff_8._disabled_vqdff_36{background-color:var(--fasty-disabled-bg);color:var(--fasty-disabled);cursor:not-allowed;border-color:#e0e0e0}._sm_vqdff_43 ._otpInput_vqdff_8{border-radius:10px;width:36px;height:44px;font-size:18px}._sm_vqdff_43 ._otpInput_vqdff_8:focus{border-radius:16px}._lg_vqdff_54 ._otpInput_vqdff_8{border-radius:12px;width:48px;height:56px;font-size:24px}._lg_vqdff_54 ._otpInput_vqdff_8:focus{border-radius:18px}._xl_vqdff_65 ._otpInput_vqdff_8{border-radius:18px;width:60px;height:72px;font-size:32px}._xl_vqdff_65 ._otpInput_vqdff_8:focus{border-radius:24px}@media (width<=640px){._otpContainer_vqdff_1{gap:6px}._otpInput_vqdff_8{width:40px;height:48px;font-size:20px}._sm_vqdff_43 ._otpInput_vqdff_8{width:32px;height:40px;font-size:16px}._xl_vqdff_65 ._otpInput_vqdff_8{width:48px;height:60px;font-size:28px}}._accordion_p5xc9_1{flex-direction:column;gap:8px;width:100%;display:flex}._accordionItem_p5xc9_8{background-color:var(--fasty-background);border:1px solid #e0e0e0;border-radius:12px;transition:all .3s;overflow:hidden}._accordionItem_p5xc9_8._open_p5xc9_16{border-color:var(--fasty-primary);box-shadow:0 2px 8px #0000000d}._accordionTrigger_p5xc9_21{cursor:pointer;width:100%;font-size:16px;font-weight:var(--fasty-font-weight-normal);color:var(--fasty-text);text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;padding:16px 20px;transition:background-color .2s;display:flex}._accordionTrigger_p5xc9_21:hover{background-color:#00000005}._accordionTrigger_p5xc9_21:focus-visible{background-color:rgba(var(--fasty-primary-rgb,59, 130, 246), .05);outline:none}._triggerText_p5xc9_46{flex:1}._triggerIcon_p5xc9_50{color:var(--fasty-primary);flex-shrink:0;justify-content:center;align-items:center;margin-left:12px;display:flex}._accordionContent_p5xc9_59{height:0;overflow:hidden}._accordionContentInner_p5xc9_64{color:var(--fasty-text);padding:0 20px 16px;font-size:14px;line-height:1.6}._sm_p5xc9_71 ._accordionItem_p5xc9_8{border-radius:10px}._sm_p5xc9_71 ._accordionTrigger_p5xc9_21{padding:12px 16px;font-size:14px}._sm_p5xc9_71 ._accordionContentInner_p5xc9_64{padding:0 16px 12px;font-size:13px}._sm_p5xc9_71 ._triggerIcon_p5xc9_50{margin-left:8px}._lg_p5xc9_89 ._accordionItem_p5xc9_8{border-radius:12px}._lg_p5xc9_89 ._accordionTrigger_p5xc9_21{padding:16px 20px;font-size:16px}._lg_p5xc9_89 ._accordionContentInner_p5xc9_64{padding:0 20px 16px;font-size:14px}._xl_p5xc9_103 ._accordionItem_p5xc9_8{border-radius:16px}._xl_p5xc9_103 ._accordionTrigger_p5xc9_21{font-size:18px;font-weight:var(--fasty-font-weight-bold);padding:20px 24px}._xl_p5xc9_103 ._accordionContentInner_p5xc9_64{padding:0 24px 20px;font-size:16px}._xl_p5xc9_103 ._triggerIcon_p5xc9_50{margin-left:16px}._badge_1p9t7_1{font-size:11px;font-weight:var(--fasty-font-weight-normal);white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;gap:4px;width:fit-content;padding:4px 10px;transition:all .2s;display:inline-flex}._default_1p9t7_15{background-color:var(--fasty-primary);color:#fff;border:1px solid #0000}._secondary_1p9t7_21{background-color:var(--fasty-secondary);color:var(--fasty-text);border:1px solid #e0e0e0}._destructive_1p9t7_27{background-color:var(--fasty-error);color:#fff;border:1px solid #0000}._hoverCardWrapper_1cb8v_1{width:fit-content;display:inline-block;position:relative}._trigger_1cb8v_7{cursor:pointer}._bridge_1cb8v_11{z-index:999;pointer-events:auto;position:absolute;left:0;right:0}._bridge_1cb8v_11._bottom_1cb8v_19{height:12px;top:100%}._bridge_1cb8v_11._top_1cb8v_24{height:12px;bottom:100%}._hoverCard_1cb8v_1{z-index:1000;background-color:var(--fasty-background);pointer-events:auto;border:1px solid #e0e0e0;border-radius:20px;min-width:200px;max-width:350px;padding:16px;position:absolute;left:50%;box-shadow:0 2px 10px -2px #0000001a}._hoverCard_1cb8v_1._bottom_1cb8v_19{top:calc(100% + 8px)}._hoverCard_1cb8v_1._top_1cb8v_24{bottom:calc(100% + 8px)}._checkboxWrapper_1owy4_1{align-items:center;width:fit-content;display:inline-flex}._hiddenInput_1owy4_7{opacity:0;pointer-events:none;width:0;height:0;position:absolute}._checkboxLabel_1owy4_15{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;display:flex}._checkbox_1owy4_1{background-color:var(--fasty-background);border:2px solid #e0e0e0;border-radius:7px;justify-content:center;align-items:center;width:20px;height:20px;transition:all .2s;display:flex;position:relative}._checkbox_1owy4_1:hover{border-color:var(--fasty-primary)}._checkbox_1owy4_1._checked_1owy4_40{background-color:var(--fasty-primary);border-color:var(--fasty-primary)}._checkmark_1owy4_45{color:#fff;transform-origin:50%;width:16px;height:16px}._labelText_1owy4_52{color:var(--fasty-text);font-size:14px;line-height:1.5}._checkboxWrapper_1owy4_1._disabled_1owy4_58 ._checkboxLabel_1owy4_15{cursor:not-allowed;opacity:.5}._checkboxWrapper_1owy4_1._disabled_1owy4_58 ._checkbox_1owy4_1{background-color:var(--fasty-disabled-bg);border-color:#e0e0e0}._checkboxWrapper_1owy4_1._disabled_1owy4_58 ._checkbox_1owy4_1._checked_1owy4_40{background-color:var(--fasty-disabled);border-color:var(--fasty-disabled)}._hiddenInput_1owy4_7:focus-visible+._checkboxLabel_1owy4_15 ._checkbox_1owy4_1{box-shadow:0 0 0 2px var(--fasty-background), 0 0 0 4px var(--fasty-primary);outline:none}._dropdownWrapper_iqkch_1{width:fit-content;display:inline-block;position:relative}._trigger_iqkch_7{cursor:pointer}._dropdownMenu_iqkch_11{z-index:1000;background-color:var(--fasty-background);border:1px solid #e0e0e0;border-radius:16px;min-width:200px;max-width:300px;padding:6px;position:absolute;left:0;box-shadow:0 2px 10px -2px #0000001a}._dropdownMenu_iqkch_11._bottom_iqkch_24{top:calc(100% + 8px)}._dropdownMenu_iqkch_11._top_iqkch_28{bottom:calc(100% + 8px)}._dropdownItem_iqkch_32{cursor:pointer;color:var(--fasty-text);-webkit-user-select:none;user-select:none;border-radius:12px;justify-content:space-between;align-items:center;padding:10px 12px;font-size:14px;transition:background-color .2s;display:flex;position:relative}._dropdownItem_iqkch_32:hover{background-color:#0000000d}._dropdownItem_iqkch_32._disabled_iqkch_50{opacity:.5;cursor:not-allowed;pointer-events:none}._dropdownItem_iqkch_32._hasSubItems_iqkch_56{padding-right:8px}._itemContent_iqkch_60{flex:1}._arrowIcon_iqkch_64{color:#666;flex-shrink:0;margin-left:8px}._subMenu_iqkch_70{z-index:1001;background-color:var(--fasty-background);border:1px solid #e0e0e0;border-radius:16px;min-width:180px;max-width:280px;padding:6px;position:absolute;top:-6px;left:calc(100% + 4px);box-shadow:0 2px 10px -2px #0000001a}._separator_iqkch_84{background-color:#e0e0e0;height:1px;margin:6px 0}._tabsContainer_bvqc3_1{flex-direction:column;gap:16px;width:100%;display:flex}._tabsList_bvqc3_8{background-color:var(--fasty-secondary);background-color:var(--fasty-primary-muted);border-radius:18px;width:fit-content;padding:6px;display:flex;position:relative}._tab_bvqc3_1{cursor:pointer;font-size:14px;font-weight:var(--fasty-font-weight-normal);color:var(--fasty-text);z-index:2;white-space:nowrap;background:0 0;border:none;border-radius:16px;padding:10px 20px;transition:color .2s;position:relative}._tab_bvqc3_1:hover{color:var(--fasty-primary)}._tab_bvqc3_1._active_bvqc3_37{color:var(--fasty-text)}._indicator_bvqc3_41{background-color:var(--fasty-background);z-index:1;border-radius:16px;height:calc(100% - 8px);position:absolute;top:4px;left:4px;box-shadow:0 2px 4px -1px #0000001a}._tooltipWrapper_39a7p_1{width:fit-content;display:inline-block;position:relative}._trigger_39a7p_7{display:inline-block}._tooltip_39a7p_1{z-index:9999;color:#1e293b;font-size:13px;font-weight:var(--fasty-font-weight-normal);white-space:nowrap;pointer-events:none;transform-origin:50%;perspective:1000px;background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:10px 14px;position:absolute;box-shadow:0 4px 12px -3px #0000001f}._tooltip_39a7p_1._top_39a7p_28{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}._tooltip_39a7p_1._bottom_39a7p_34{top:calc(100% + 8px);left:50%;transform:translate(-50%)}._tooltip_39a7p_1._left_39a7p_40{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}._tooltip_39a7p_1._right_39a7p_46{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}._arrow_39a7p_52{background:#fff;border:1px solid #e2e8f0;width:10px;height:10px;position:absolute;transform:rotate(45deg)}._arrow-top_39a7p_61{border-top:none;border-left:none;bottom:-4px;left:50%;transform:translate(-50%)rotate(45deg)}._arrow-bottom_39a7p_69{border-bottom:none;border-right:none;top:-4px;left:50%;transform:translate(-50%)rotate(45deg)}._arrow-left_39a7p_77{border-bottom:none;border-left:none;top:50%;right:-4px;transform:translateY(-50%)rotate(45deg)}._arrow-right_39a7p_85{border-top:none;border-right:none;top:50%;left:-4px;transform:translateY(-50%)rotate(45deg)}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`react`);l=c(l,1);let u=require(`gsap`);u=c(u,1);var d={button:`_button_1xsg4_1`,primary:`_primary_1xsg4_18`,disabled:`_disabled_1xsg4_23`,secondary:`_secondary_1xsg4_34`,warning:`_warning_1xsg4_52`,error:`_error_1xsg4_68`,sm:`_sm_1xsg4_92`,lg:`_lg_1xsg4_103`,xl:`_xl_1xsg4_114`},f=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),p=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),m=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=f():t.exports=p()}))();function h({text:e,variant:t=`primary`,size:n=`lg`,onClick:r,icon:i,disabled:a=!1,className:o,...s}){let c=(0,l.useRef)(null);return(0,m.jsxs)(`button`,{ref:c,onClick:()=>{a||r?.()},onMouseDown:()=>{a||!c.current||u.gsap.to(c.current,{scale:.96,duration:.1,ease:`power2.in`})},onMouseUp:()=>{a||!c.current||u.gsap.to(c.current,{scale:1,duration:.2,ease:`back.out(1.7)`})},disabled:a,className:`${d.button} ${d[t]} ${n?d[n]:``} ${a?d.disabled:``} ${o||``}`,...s,children:[i&&(0,m.jsx)(`span`,{className:d.icon,children:i}),e&&(0,m.jsx)(`span`,{className:d.text,children:e})]})}var g={input:`_input_1ddpd_1`,inputWrapper:`_inputWrapper_1ddpd_19`,icon:`_icon_1ddpd_37`,eyeButton:`_eyeButton_1ddpd_46`,inputWithIcon:`_inputWithIcon_1ddpd_63`,sm:`_sm_1ddpd_72`,lg:`_lg_1ddpd_92`,xl:`_xl_1ddpd_112`};function _({size:e=`lg`,icon:t,password:n=!1,className:r,...i}){let[a,o]=(0,l.useState)(!1),s=e?g[e]:``,c=n?a?`text`:`password`:i.type||`text`;return t||n?(0,m.jsxs)(`div`,{className:`${g.inputWrapper}`,children:[t&&(0,m.jsx)(`span`,{className:g.icon,children:t}),(0,m.jsx)(`input`,{type:c,className:`${g.inputWithIcon} ${s} ${r||``}`,...i}),n&&(0,m.jsx)(`button`,{type:`button`,className:g.eyeButton,onClick:()=>o(!a),"aria-label":a?`Ocultar contraseña`:`Mostrar contraseña`,children:a?(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`path`,{d:`M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24`}),(0,m.jsx)(`line`,{x1:`2`,y1:`2`,x2:`22`,y2:`22`})]}):(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`path`,{d:`M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z`}),(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]})})]}):(0,m.jsx)(`input`,{type:c,className:`${g.input} ${s} ${r||``}`,...i})}var v={card:`_card_w8zkq_1`,dashed:`_dashed_w8zkq_9`};function y({children:e,dashed:t=!1,className:n,...r}){return(0,m.jsx)(`div`,{className:`${v.card} ${t?v.dashed:``} ${n||``}`,...r,children:e})}var b={overlay:`_overlay_1qbeq_1`,sheet:`_sheet_1qbeq_8`,right:`_right_1qbeq_18`,left:`_left_1qbeq_25`,top:`_top_1qbeq_32`,bottom:`_bottom_1qbeq_39`,sm:`_sm_1qbeq_46`,md:`_md_1qbeq_52`,lg:`_lg_1qbeq_58`,xl:`_xl_1qbeq_64`,full:`_full_1qbeq_70`,closeButton:`_closeButton_1qbeq_109`},x={header:`_header_1pbdy_1`,content:`_content_1pbdy_9`,title:`_title_1pbdy_15`,description:`_description_1pbdy_23`,closeButton:`_closeButton_1pbdy_30`},S=(0,l.createContext)(null);function C({title:e,description:t,showCloseButton:n=!1,className:r,...i}){let a=(0,l.useContext)(S);if(!a)throw Error(`HeroSheet must be used within a Sheet component`);return(0,m.jsx)(`div`,{className:`${x.heroSheet} ${r||``}`,...i,children:(0,m.jsxs)(`div`,{className:x.header,children:[(0,m.jsxs)(`div`,{className:x.content,children:[(0,m.jsx)(`h2`,{className:x.title,children:e}),t&&(0,m.jsx)(`p`,{className:x.description,children:t})]}),n&&(0,m.jsx)(`button`,{className:x.closeButton,onClick:a.onClose,"aria-label":`Close`,children:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,className:`lucide lucide-x-icon lucide-x`,children:[(0,m.jsx)(`path`,{d:`M18 6 6 18`}),(0,m.jsx)(`path`,{d:`m6 6 12 12`})]})})]})})}function w({children:e,side:t=`right`,width:n=`md`,className:r,...i}){let[a,o]=(0,l.useState)(!1),s=(0,l.useRef)(null),c=(0,l.useRef)(null);(0,l.useEffect)(()=>(a?(document.body.style.overflow=`hidden`,d()):document.body.style.overflow=`unset`,()=>{document.body.style.overflow=`unset`}),[a]);let d=()=>{!s.current||!c.current||(u.default.fromTo(s.current,{opacity:0},{opacity:1,duration:.2,ease:`power2.out`}),u.default.fromTo(c.current,{right:{x:`100%`},left:{x:`-100%`},top:{y:`-100%`},bottom:{y:`100%`}}[t],{x:0,y:0,duration:.3,ease:`power2.out`}))},f=()=>{!s.current||!c.current||(u.default.to(s.current,{opacity:0,duration:.3,ease:`power2.in`}),u.default.to(c.current,{...{right:{x:`100%`},left:{x:`-100%`},top:{y:`-100%`},bottom:{y:`100%`}}[t],duration:.3,ease:`power2.in`,onComplete:()=>o(!1)}))},p=()=>{f()},h=l.Children.toArray(e),g=h[0],_=h.slice(1);return(0,m.jsxs)(m.Fragment,{children:[(0,l.isValidElement)(g)?(0,l.cloneElement)(g,{onClick:()=>o(!0)}):g,a&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{ref:s,className:b.overlay,onClick:p}),(0,m.jsx)(`div`,{ref:c,className:`${b.sheet} ${b[t]} ${b[n]} ${r||``}`,...i,children:(0,m.jsx)(S.Provider,{value:{onClose:p},children:_})})]})]})}var T={content:`_content_n86ez_1`};function E({children:e,className:t,...n}){return(0,m.jsx)(`div`,{className:`${T.content} ${t||``}`,...n,children:e})}var D={footer:`_footer_e6jod_1`};function O({children:e,className:t,...n}){return(0,m.jsx)(`div`,{className:`${D.footer} ${t||``}`,...n,children:e})}var k={overlay:`_overlay_160jk_1`,modal:`_modal_160jk_11`},A=(0,l.createContext)(null);function j({children:e,className:t,...n}){let[r,i]=(0,l.useState)(!1),a=(0,l.useRef)(null),o=(0,l.useRef)(null);(0,l.useEffect)(()=>(r?(document.body.style.overflow=`hidden`,s()):document.body.style.overflow=`unset`,()=>{document.body.style.overflow=`unset`}),[r]);let s=()=>{!a.current||!o.current||(u.default.fromTo(a.current,{opacity:0},{opacity:1,duration:.3,ease:`power2.out`}),u.default.fromTo(o.current,{opacity:0,scale:.9,y:20},{opacity:1,scale:1,y:0,duration:.4,ease:`back.out(1.7)`}))},c=()=>{!a.current||!o.current||(u.default.to(a.current,{opacity:0,duration:.25,ease:`power2.in`}),u.default.to(o.current,{opacity:0,scale:.95,y:10,duration:.25,ease:`power2.in`,onComplete:()=>i(!1)}))},d=()=>{c()},f=l.Children.toArray(e),p=f[0],h=f.slice(1);return(0,m.jsxs)(m.Fragment,{children:[(0,l.isValidElement)(p)?(0,l.cloneElement)(p,{onClick:()=>i(!0)}):p,r&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{ref:a,className:k.overlay,onClick:d}),(0,m.jsx)(`div`,{ref:o,className:`${k.modal} ${t||``}`,...n,children:(0,m.jsx)(A.Provider,{value:{onClose:d},children:h})})]})]})}var M={header:`_header_52hw4_1`,content:`_content_52hw4_10`,title:`_title_52hw4_16`,description:`_description_52hw4_24`,closeButton:`_closeButton_52hw4_31`};function N({title:e,description:t,showCloseButton:n=!0,className:r,...i}){let a=(0,l.useContext)(A);if(!a)throw Error(`ModalHeader must be used within a Modal component`);return(0,m.jsxs)(`div`,{className:`${M.header} ${r||``}`,...i,children:[(0,m.jsxs)(`div`,{className:M.content,children:[(0,m.jsx)(`h2`,{className:M.title,children:e}),t&&(0,m.jsx)(`p`,{className:M.description,children:t})]}),n&&(0,m.jsx)(`button`,{className:M.closeButton,onClick:a.onClose,"aria-label":`Close`,children:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,m.jsx)(`path`,{d:`M18 6 6 18`}),(0,m.jsx)(`path`,{d:`m6 6 12 12`})]})})]})}var P={body:`_body_6i5xc_1`};function F({children:e,className:t,...n}){return(0,m.jsx)(`div`,{className:`${P.body} ${t||``}`,...n,children:e})}var I={content:`_content_5wshu_1`,sm:`_sm_5wshu_7`,md:`_md_5wshu_12`,lg:`_lg_5wshu_17`,xl:`_xl_5wshu_22`};function L({children:e,width:t=`md`,className:n,...r}){return(0,m.jsx)(`div`,{className:`${I.content} ${I[t]} ${n||``}`,...r,children:e})}var R={footer:`_footer_1hqi4_1`};function ee({children:e,className:t,...n}){return(0,m.jsx)(`div`,{className:`${R.footer} ${t||``}`,...n,children:e})}var z={"toast-container":`_toast-container_1rucc_1`,"toast-container--top-left":`_toast-container--top-left_1rucc_7`,"toast-container--top-center":`_toast-container--top-center_1rucc_12`,"toast-container--top-right":`_toast-container--top-right_1rucc_17`,"toast-container--bottom-left":`_toast-container--bottom-left_1rucc_22`,"toast-container--bottom-center":`_toast-container--bottom-center_1rucc_27`,"toast-container--bottom-right":`_toast-container--bottom-right_1rucc_32`,toast:`_toast_1rucc_1`,toast__icon:`_toast__icon_1rucc_81`,toast__message:`_toast__message_1rucc_90`,toast__close:`_toast__close_1rucc_97`,"toast--success":`_toast--success_1rucc_119`,"toast--error":`_toast--error_1rucc_128`,"toast--warning":`_toast--warning_1rucc_137`,"toast--info":`_toast--info_1rucc_146`},te=({id:e,message:t,type:n,duration:r=3e3,onClose:i,isGlobalPaused:a,onHoverChange:o,position:s,zIndex:c})=>{let d=(0,l.useRef)(null),f=(0,l.useRef)(null),p=(0,l.useRef)(Date.now()),h=(0,l.useRef)(r),g=()=>s.includes(`right`)?{from:{x:400,y:0},to:{x:400,y:0}}:s.includes(`left`)?{from:{x:-400,y:0},to:{x:-400,y:0}}:s.includes(`top`)?{from:{x:0,y:-100},to:{x:0,y:-100}}:{from:{x:0,y:100},to:{x:0,y:100}},_=()=>{if(d.current){let t=g();u.default.to(d.current,{x:t.to.x,y:t.to.y,opacity:0,duration:.3,ease:`power2.in`,onComplete:()=>{i(e)}})}};(0,l.useEffect)(()=>{if(d.current){let e=g();u.default.fromTo(d.current,{x:e.from.x,y:e.from.y,opacity:0},{x:0,y:0,opacity:1,duration:.3,ease:`power2.out`})}},[]),(0,l.useEffect)(()=>{if(a){if(f.current){clearTimeout(f.current),f.current=null;let e=Date.now()-p.current;h.current=Math.max(0,h.current-e)}}else p.current=Date.now(),f.current=setTimeout(()=>{_()},h.current);return()=>{f.current&&clearTimeout(f.current)}},[a]);let v={success:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,className:`lucide lucide-circle-check-icon lucide-circle-check`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,m.jsx)(`path`,{d:`m9 12 2 2 4-4`})]}),error:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,className:`lucide lucide-circle-x-icon lucide-circle-x`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,m.jsx)(`path`,{d:`m15 9-6 6`}),(0,m.jsx)(`path`,{d:`m9 9 6 6`})]}),warning:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,className:`lucide lucide-alert-triangle-icon lucide-alert-triangle`,children:[(0,m.jsx)(`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`}),(0,m.jsx)(`path`,{d:`M12 9v4`}),(0,m.jsx)(`path`,{d:`M12 17h.01`})]}),info:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,className:`lucide lucide-info-icon lucide-info`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,m.jsx)(`path`,{d:`M12 16v-4`}),(0,m.jsx)(`path`,{d:`M12 8h.01`})]})};return(0,m.jsxs)(`div`,{ref:d,className:`${z.toast} ${z[`toast--${n}`]}`,role:`alert`,style:{zIndex:c},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,m.jsx)(`span`,{className:z.toast__icon,children:v[n]}),(0,m.jsx)(`span`,{className:z.toast__message,children:t}),(0,m.jsx)(`button`,{className:z.toast__close,onClick:_,"aria-label":`Close`,children:(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,className:`lucide lucide-x-icon lucide-x`,children:[(0,m.jsx)(`path`,{d:`M18 6 6 18`}),(0,m.jsx)(`path`,{d:`m6 6 12 12`})]})})]})},B=new class{constructor(){this.listeners=[]}on(e,t){this.listeners.push(t)}off(e,t){this.listeners=this.listeners.filter(e=>e!==t)}emit(e,t){this.listeners.forEach(e=>e(t))}},ne=0,V=(e,t,n)=>{let r=`toast-${Date.now()}-${ne++}`;B.emit(`show`,{id:r,message:e,type:t,duration:n})},H={success:(e,t)=>V(e,`success`,t),error:(e,t)=>V(e,`error`,t),warning:(e,t)=>V(e,`warning`,t),info:(e,t)=>V(e,`info`,t)},re=({position:e=`top-right`})=>{let[t,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(!1),a=(0,l.useRef)(null),o=e.startsWith(`bottom`);(0,l.useEffect)(()=>{let e=e=>{n(t=>o?[...t,e]:[e,...t])};return B.on(`show`,e),()=>{B.off(`show`,e)}},[o]),(0,l.useEffect)(()=>{if(!a.current)return;let e=a.current.querySelectorAll(`.${z.toast}`);e.forEach((t,n)=>{let r=t,i;i=o?-(e.length-1-n)*76:n*76,u.default.getProperty(r,`y`)!==i&&u.default.to(r,{y:i,duration:.3,ease:`power2.out`})})},[t,o]);let s=e=>{n(t=>t.filter(t=>t.id!==e))},c=z[`toast-container--${e}`];return(0,m.jsx)(`div`,{ref:a,className:`${z[`toast-container`]} ${c}`,children:t.map((n,a)=>(0,m.jsx)(te,{id:n.id,message:n.message,type:n.type,duration:n.duration,onClose:s,isGlobalPaused:r,onHoverChange:i,position:e,zIndex:t.length-a},n.id))})},U={otpContainer:`_otpContainer_vqdff_1`,otpInput:`_otpInput_vqdff_8`,filled:`_filled_vqdff_31`,disabled:`_disabled_vqdff_36`,sm:`_sm_vqdff_43`,lg:`_lg_vqdff_54`,xl:`_xl_vqdff_65`};function ie({length:e=6,type:t=`number`,onChange:n,onComplete:r,size:i=`lg`,disabled:a=!1,autoFocus:o=!1,value:s,className:c,...u}){let[d,f]=(0,l.useState)(Array(e).fill(``)),p=(0,l.useRef)([]);(0,l.useEffect)(()=>{if(s!==void 0){let t=s.split(``).slice(0,e);f([...t,...Array(e-t.length).fill(``)])}},[s,e]),(0,l.useEffect)(()=>{o&&p.current[0]&&p.current[0].focus()},[o]);let h=e=>t===`number`?/^\d$/.test(e):t===`text`?/^[a-zA-Z]$/.test(e):t===`alphanumeric`?/^[a-zA-Z0-9]$/.test(e):!1,g=(t,i)=>{if(a)return;let o=i.slice(-1);if(i===``||h(o)){let i=[...d];i[t]=o.toUpperCase(),f(i);let a=i.join(``);n?.(a),o&&t<e-1&&p.current[t+1]?.focus(),a.length===e&&i.every(e=>e!==``)&&r?.(a)}},_=(t,r)=>{if(!a){if(r.key===`Backspace`){r.preventDefault();let e=[...d];d[t]?(e[t]=``,f(e),n?.(e.join(``))):t>0&&(e[t-1]=``,f(e),n?.(e.join(``)),p.current[t-1]?.focus())}else if(r.key===`ArrowLeft`&&t>0)r.preventDefault(),p.current[t-1]?.focus();else if(r.key===`ArrowRight`&&t<e-1)r.preventDefault(),p.current[t+1]?.focus();else if(r.key===`Delete`){r.preventDefault();let e=[...d];e[t]=``,f(e),n?.(e.join(``))}}},v=t=>{if(t.preventDefault(),a)return;let i=t.clipboardData.getData(`text/plain`).slice(0,e),o=[...d],s=0;for(let e=0;e<i.length;e++)h(i[e])&&(o[e]=i[e].toUpperCase(),s++);f(o),n?.(o.join(``));let c=Math.min(s,e-1);p.current[c]?.focus(),o.every(e=>e!==``)&&r?.(o.join(``))},y=e=>{p.current[e]?.select()},b=i?U[i]:``;return(0,m.jsx)(`div`,{className:`${U.otpContainer} ${b} ${c||``}`,...u,children:d.map((n,r)=>(0,m.jsx)(`input`,{ref:e=>{p.current[r]=e},type:`text`,inputMode:t===`number`?`numeric`:`text`,maxLength:1,value:n,onChange:e=>g(r,e.target.value),onKeyDown:e=>_(r,e),onPaste:v,onFocus:()=>y(r),disabled:a,className:`${U.otpInput} ${n?U.filled:``} ${a?U.disabled:``}`,"aria-label":`Dígito ${r+1} de ${e}`},r))})}var W={accordion:`_accordion_p5xc9_1`,accordionItem:`_accordionItem_p5xc9_8`,open:`_open_p5xc9_16`,accordionTrigger:`_accordionTrigger_p5xc9_21`,triggerText:`_triggerText_p5xc9_46`,triggerIcon:`_triggerIcon_p5xc9_50`,accordionContent:`_accordionContent_p5xc9_59`,accordionContentInner:`_accordionContentInner_p5xc9_64`,sm:`_sm_p5xc9_71`,lg:`_lg_p5xc9_89`,xl:`_xl_p5xc9_103`},G=(0,l.createContext)(void 0);function ae({children:e,multiple:t=!1,defaultValue:n,size:r=`lg`,className:i,...a}){let[o,s]=(0,l.useState)(()=>n?Array.isArray(n)?n:[n]:[]),c=e=>{s(n=>n.includes(e)?n.filter(t=>t!==e):t?[...n,e]:[e])},u=r?W[r]:``;return(0,m.jsx)(G.Provider,{value:{openItems:o,toggleItem:c,multiple:t},children:(0,m.jsx)(`div`,{className:`${W.accordion} ${u} ${i||``}`,...a,children:e})})}function K(){let e=(0,l.useContext)(G);if(!e)throw Error(`Accordion components must be used within an Accordion`);return e}function oe({value:e,children:t,className:n,...r}){let{openItems:i}=K(),a=i.includes(e);return(0,m.jsx)(`div`,{className:`${W.accordionItem} ${a?W.open:``} ${n||``}`,"data-value":e,...r,children:t})}function se({children:e,icon:t,className:n,...r}){let{openItems:i,toggleItem:a}=K(),o=(0,l.useRef)(null),s=(0,l.useRef)(null),c=o.current?.closest(`[data-value]`)?.getAttribute(`data-value`)||``,d=i.includes(c);return(0,l.useEffect)(()=>{s.current&&u.gsap.to(s.current,{rotation:d?180:0,duration:.3,ease:`power2.out`})},[d]),(0,m.jsxs)(`button`,{ref:o,className:`${W.accordionTrigger} ${n||``}`,onClick:()=>{let e=o.current?.closest(`[data-value]`)?.getAttribute(`data-value`);e&&a(e)},type:`button`,...r,children:[(0,m.jsx)(`span`,{className:W.triggerText,children:e}),(0,m.jsx)(`span`,{ref:s,className:W.triggerIcon,children:t||(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})})]})}function ce({children:e,className:t,...n}){let{openItems:r}=K(),i=(0,l.useRef)(null),a=(0,l.useRef)(null),[o,s]=(0,l.useState)(!1),c=(0,l.useRef)(!0);return(0,l.useEffect)(()=>{let e=i.current,t=a.current;if(!e||!t)return;let n=e.closest(`[data-value]`)?.getAttribute(`data-value`)||``,l=r.includes(n);if(c.current){c.current=!1,s(l),l?(e.style.height=`auto`,e.style.overflow=`visible`,u.gsap.set(t,{opacity:1,y:0})):(e.style.height=`0`,u.gsap.set(t,{opacity:0,y:-10}));return}l!==o&&(s(l),l?(u.gsap.to(e,{height:`auto`,duration:.4,ease:`power2.out`,onStart:()=>{e.style.overflow=`hidden`},onComplete:()=>{e.style.overflow=`visible`}}),u.gsap.fromTo(t,{opacity:0,y:-10},{opacity:1,y:0,duration:.3,delay:.1,ease:`power2.out`})):(u.gsap.to(e,{height:0,duration:.3,ease:`power2.in`,onStart:()=>{e.style.overflow=`hidden`}}),u.gsap.to(t,{opacity:0,y:-10,duration:.2,ease:`power2.in`})))},[r,o]),(0,m.jsx)(`div`,{ref:i,className:`${W.accordionContent} ${t||``}`,...n,children:(0,m.jsx)(`div`,{ref:a,className:W.accordionContentInner,children:e})})}var q={badge:`_badge_1p9t7_1`,default:`_default_1p9t7_15`,secondary:`_secondary_1p9t7_21`,destructive:`_destructive_1p9t7_27`};function le({children:e,variant:t=`default`,className:n,...r}){let i=t?q[t]:``;return(0,m.jsx)(`span`,{className:`${q.badge} ${i} ${n||``}`,...r,children:e})}var J={hoverCardWrapper:`_hoverCardWrapper_1cb8v_1`,trigger:`_trigger_1cb8v_7`,bridge:`_bridge_1cb8v_11`,bottom:`_bottom_1cb8v_19`,top:`_top_1cb8v_24`,hoverCard:`_hoverCard_1cb8v_1`};function ue({children:e,trigger:t,delay:n=200,className:r,...i}){let[a,o]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1),[d,f]=(0,l.useState)(`bottom`),[p,h]=(0,l.useState)(0),g=(0,l.useRef)(null),_=(0,l.useRef)(null),v=(0,l.useRef)(null),y=(0,l.useRef)(null),b=()=>{if(!g.current||!_.current)return{position:`bottom`,offset:0};let e=g.current.getBoundingClientRect(),t=_.current.offsetWidth,n=_.current.offsetHeight,r=window.innerHeight,i=window.innerWidth,a=r-e.bottom,o=e.top,s=`bottom`;s=a>=n+10?`bottom`:o>=n+10?`top`:`bottom`;let c=e.left+e.width/2,l=t/2,u=0,d=c-l,f=c+l;return d<10?u=10-d:f>i-10&&(u=i-10-f),{position:s,offset:u}};return(0,l.useEffect)(()=>{if(a&&_.current){let{position:e,offset:t}=b();f(e),h(t),u.gsap.fromTo(_.current,{opacity:0,y:e===`bottom`?-10:10,scale:.95},{opacity:1,y:0,scale:1,duration:.2,ease:`power2.out`})}else !a&&_.current&&u.gsap.to(_.current,{opacity:0,y:d===`bottom`?-10:10,scale:.95,duration:.15,ease:`power2.in`,onComplete:()=>{c(!1)}})},[a,d]),(0,l.useEffect)(()=>()=>{v.current&&clearTimeout(v.current),y.current&&clearTimeout(y.current)},[]),(0,m.jsxs)(`div`,{className:`${J.hoverCardWrapper} ${r||``}`,onMouseEnter:()=>{y.current&&=(clearTimeout(y.current),null),v.current=setTimeout(()=>{c(!0),o(!0)},n)},onMouseLeave:()=>{v.current&&=(clearTimeout(v.current),null),o(!1)},...i,children:[(0,m.jsx)(`div`,{ref:g,className:J.trigger,children:t}),s&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`${J.bridge} ${J[d]}`}),(0,m.jsx)(`div`,{ref:_,className:`${J.hoverCard} ${J[d]}`,style:{transform:`translateX(calc(-50% + ${p}px))`},role:`tooltip`,children:e})]})]})}var Y={checkboxWrapper:`_checkboxWrapper_1owy4_1`,hiddenInput:`_hiddenInput_1owy4_7`,checkboxLabel:`_checkboxLabel_1owy4_15`,checkbox:`_checkbox_1owy4_1`,checked:`_checked_1owy4_40`,checkmark:`_checkmark_1owy4_45`,labelText:`_labelText_1owy4_52`,disabled:`_disabled_1owy4_58`};function de({checked:e,defaultChecked:t=!1,onChange:n,label:r,disabled:i=!1,id:a,className:o,...s}){let[c,d]=(0,l.useState)(t),f=e!==void 0,p=f?e:c,h=(0,l.useRef)(null),g=(0,l.useRef)(null),_=(0,l.useRef)(null),v=()=>{if(i)return;let e=!p;f||d(e),n?.(e)};(0,l.useEffect)(()=>{!h.current||!g.current||!_.current||(p?(u.gsap.to(h.current,{scale:.9,duration:.1,ease:`power2.in`,onComplete:()=>{u.gsap.to(h.current,{scale:1,duration:.2,ease:`elastic.out(1, 0.5)`})}}),u.gsap.fromTo(g.current,{scale:0,rotation:-45},{scale:1,rotation:0,duration:.3,ease:`back.out(1.7)`}),u.gsap.fromTo(_.current,{strokeDasharray:100,strokeDashoffset:100},{strokeDashoffset:0,duration:.3,ease:`power2.out`})):(u.gsap.to(g.current,{scale:0,rotation:45,duration:.2,ease:`back.in(1.7)`}),u.gsap.to(h.current,{scale:1,duration:.2,ease:`power2.out`})))},[p]);let y=a||`checkbox-${Math.random().toString(36).substr(2,9)}`;return(0,m.jsxs)(`div`,{className:`${Y.checkboxWrapper} ${i?Y.disabled:``} ${o||``}`,children:[(0,m.jsx)(`input`,{type:`checkbox`,id:y,checked:p,onChange:v,disabled:i,className:Y.hiddenInput,...s}),(0,m.jsxs)(`label`,{htmlFor:y,className:Y.checkboxLabel,children:[(0,m.jsx)(`div`,{ref:h,className:`${Y.checkbox} ${p?Y.checked:``}`,children:(0,m.jsx)(`svg`,{ref:g,className:Y.checkmark,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,m.jsx)(`path`,{ref:_,d:`M5 13l4 4L19 7`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),r&&(0,m.jsx)(`span`,{className:Y.labelText,children:r})]})]})}var X={dropdownWrapper:`_dropdownWrapper_iqkch_1`,trigger:`_trigger_iqkch_7`,dropdownMenu:`_dropdownMenu_iqkch_11`,bottom:`_bottom_iqkch_24`,top:`_top_iqkch_28`,dropdownItem:`_dropdownItem_iqkch_32`,disabled:`_disabled_iqkch_50`,hasSubItems:`_hasSubItems_iqkch_56`,itemContent:`_itemContent_iqkch_60`,arrowIcon:`_arrowIcon_iqkch_64`,subMenu:`_subMenu_iqkch_70`,separator:`_separator_iqkch_84`},Z=(0,l.createContext)(void 0);function fe({children:e,trigger:t,className:n,...r}){let[i,a]=(0,l.useState)(!1),[o,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(`bottom`),f=(0,l.useRef)(null),p=(0,l.useRef)(null),h=()=>{if(!f.current||!p.current)return`bottom`;let e=f.current.getBoundingClientRect(),t=p.current.offsetHeight,n=window.innerHeight-e.bottom,r=e.top;return n>=t+10?`bottom`:r>=t+10?`top`:`bottom`},g=()=>{i?a(!1):(s(!0),a(!0))},_=()=>{a(!1)};return(0,l.useEffect)(()=>{if(i&&p.current){let e=h();d(e),u.gsap.fromTo(p.current,{opacity:0,y:e===`bottom`?-10:10,scale:.95},{opacity:1,y:0,scale:1,duration:.2,ease:`power2.out`})}else !i&&p.current&&u.gsap.to(p.current,{opacity:0,y:c===`bottom`?-10:10,scale:.95,duration:.15,ease:`power2.in`,onComplete:()=>{s(!1)}})},[i,c]),(0,l.useEffect)(()=>{let e=e=>{f.current&&p.current&&!f.current.contains(e.target)&&!p.current.contains(e.target)&&_()};return i&&document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[i]),(0,m.jsx)(Z.Provider,{value:{isOpen:i,closeMenu:_},children:(0,m.jsxs)(`div`,{className:`${X.dropdownWrapper} ${n||``}`,...r,children:[(0,m.jsx)(`div`,{ref:f,onClick:g,className:X.trigger,children:t}),o&&(0,m.jsx)(`div`,{ref:p,className:`${X.dropdownMenu} ${X[c]}`,children:e})]})})}function pe(){let e=(0,l.useContext)(Z);if(!e)throw Error(`Dropdown components must be used within DropdownMenu`);return e}function me({children:e,onClick:t,disabled:n=!1,subItems:r,className:i,...a}){let{closeMenu:o}=pe(),[s,c]=(0,l.useState)(!1),[d,f]=(0,l.useState)(!1),p=(0,l.useRef)(null),h=(0,l.useRef)(null),g=(0,l.useRef)(null);return(0,l.useEffect)(()=>{s&&h.current?u.gsap.fromTo(h.current,{opacity:0,x:-10,scale:.95},{opacity:1,x:0,scale:1,duration:.2,ease:`power2.out`}):!s&&h.current&&u.gsap.to(h.current,{opacity:0,x:-10,scale:.95,duration:.15,ease:`power2.in`,onComplete:()=>{f(!1)}})},[s]),(0,l.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]),(0,m.jsxs)(`div`,{ref:p,className:`${X.dropdownItem} ${n?X.disabled:``} ${r?X.hasSubItems:``} ${i||``}`,onClick:()=>{n||r||(t?.(),o())},onMouseEnter:()=>{r&&!n&&(g.current=setTimeout(()=>{f(!0),c(!0)},150))},onMouseLeave:()=>{g.current&&clearTimeout(g.current),c(!1)},...a,children:[(0,m.jsx)(`span`,{className:X.itemContent,children:e}),r&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`svg`,{className:X.arrowIcon,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),d&&(0,m.jsx)(`div`,{ref:h,className:X.subMenu,children:r})]})]})}function he({}){return(0,m.jsx)(`div`,{className:X.separator})}var Q={tabsContainer:`_tabsContainer_bvqc3_1`,tabsList:`_tabsList_bvqc3_8`,tab:`_tab_bvqc3_1`,active:`_active_bvqc3_37`,indicator:`_indicator_bvqc3_41`};function ge({tabs:e,defaultValue:t,onChange:n,className:r,...i}){let[a,o]=(0,l.useState)(t||e[0]?.value),[s,c]=(0,l.useState)(!0),d=(0,l.useRef)(null),f=(0,l.useRef)(new Map),p=(0,l.useRef)(null),h=e=>{e!==a&&(o(e),n?.(e))};(0,l.useEffect)(()=>{let e=f.current.get(a);if(!e||!d.current)return;let{offsetLeft:t,offsetWidth:n}=e,r=t-6;s?(u.gsap.set(d.current,{x:r,width:n}),c(!1)):u.gsap.to(d.current,{x:r,width:n,duration:.3,ease:`power2.out`})},[a,s]),(0,l.useEffect)(()=>{p.current&&(s?u.gsap.set(p.current,{opacity:1,y:0}):u.gsap.fromTo(p.current,{opacity:0,y:10},{opacity:1,y:0,duration:.3,ease:`power2.out`}))},[a,s]);let g=e.find(e=>e.value===a)?.content;return(0,m.jsxs)(`div`,{className:`${Q.tabsContainer} ${r||``}`,...i,children:[(0,m.jsxs)(`div`,{className:Q.tabsList,children:[e.map(e=>(0,m.jsx)(`button`,{ref:t=>{t&&f.current.set(e.value,t)},className:`${Q.tab} ${a===e.value?Q.active:``}`,onClick:()=>h(e.value),children:e.label},e.value)),(0,m.jsx)(`div`,{ref:d,className:Q.indicator})]}),(0,m.jsx)(`div`,{ref:p,className:Q.tabContent,children:g})]})}var $={tooltipWrapper:`_tooltipWrapper_39a7p_1`,trigger:`_trigger_39a7p_7`,tooltip:`_tooltip_39a7p_1`,top:`_top_39a7p_28`,bottom:`_bottom_39a7p_34`,left:`_left_39a7p_40`,right:`_right_39a7p_46`,arrow:`_arrow_39a7p_52`,"arrow-top":`_arrow-top_39a7p_61`,"arrow-bottom":`_arrow-bottom_39a7p_69`,"arrow-left":`_arrow-left_39a7p_77`,"arrow-right":`_arrow-right_39a7p_85`};function _e({children:e,content:t,position:n=`top`,delay:r=200,className:i,...a}){let[o,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[f,p]=(0,l.useState)(n),h=(0,l.useRef)(null),g=(0,l.useRef)(null),_=(0,l.useRef)(null),v=(0,l.useRef)(null),y=()=>{if(!h.current||!g.current)return n;let e=h.current.getBoundingClientRect(),t=g.current.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight,a={top:{available:e.top>=t.height+12,priority:n===`top`?4:3},bottom:{available:i-e.bottom>=t.height+12,priority:n===`bottom`?4:2},left:{available:e.left>=t.width+12,priority:n===`left`?4:1},right:{available:r-e.right>=t.width+12,priority:n===`right`?4:0}};return Object.keys(a).filter(e=>a[e].available).sort((e,t)=>a[t].priority-a[e].priority)[0]||n};return(0,l.useEffect)(()=>{if(o&&g.current&&_.current){let e=y();p(e);let t=e===`top`||e===`bottom`,n=e===`top`||e===`left`?-1:1;u.gsap.fromTo(g.current,{opacity:0,scale:.8,y:t?n*15:0,x:t?0:n*15,rotateX:t?n*15:0,rotateY:t?0:n*15},{opacity:1,scale:1,y:0,x:0,rotateX:0,rotateY:0,duration:.4,ease:`back.out(1.7)`}),u.gsap.fromTo(_.current,{opacity:0,scale:0},{opacity:1,scale:1,duration:.3,delay:.1,ease:`back.out(2)`})}else if(!o&&g.current&&_.current){let e=f===`top`||f===`bottom`,t=f===`top`||f===`left`?-1:1;u.gsap.to(_.current,{opacity:0,scale:0,duration:.15,ease:`power2.in`}),u.gsap.to(g.current,{opacity:0,scale:.8,y:e?t*10:0,x:e?0:t*10,duration:.2,ease:`power2.in`,onComplete:()=>{d(!1)}})}},[o,f]),(0,l.useEffect)(()=>()=>{v.current&&clearTimeout(v.current)},[]),(0,m.jsxs)(`div`,{className:`${$.tooltipWrapper} ${i||``}`,onMouseEnter:()=>{v.current=setTimeout(()=>{d(!0),s(!0)},r)},onMouseLeave:()=>{v.current&&=(clearTimeout(v.current),null),s(!1)},...a,children:[(0,m.jsx)(`div`,{ref:h,className:$.trigger,children:e}),c&&(0,m.jsxs)(`div`,{ref:g,className:`${$.tooltip} ${$[f]}`,role:`tooltip`,children:[t,(0,m.jsx)(`div`,{ref:_,className:`${$.arrow} ${$[`arrow-${f}`]}`})]})]})}exports.Accordion=ae,exports.AccordionContent=ce,exports.AccordionItem=oe,exports.AccordionTrigger=se,exports.Badge=le,exports.Button=h,exports.Card=y,exports.Checkbox=de,exports.DropdownItem=me,exports.DropdownMenu=fe,exports.DropdownSeparator=he,exports.HeroSheet=C,exports.HoverCard=ue,exports.Input=_,exports.Modal=j,exports.ModalBody=F,exports.ModalContent=L,exports.ModalFooter=ee,exports.ModalHeader=N,exports.OTPInput=ie,exports.Sheet=w,exports.SheetContent=E,exports.SheetFooter=O,exports.Tabs=ge,exports.ToastContainer=re,exports.Tooltip=_e,exports.toast=H;
|