@asgard-js/react 0.1.36-canary.3 → 0.1.36-canary.4
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-error-state.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/service-error-state/service-error-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"service-error-state.d.ts","sourceRoot":"","sources":["../../../../src/components/chatbot/service-error-state/service-error-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAKrC,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,GAAG,YAAY,CAWnF"}
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap";/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid}}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.hidden{display:none}.table{display:table}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}._api_key_input_7488d_1{width:360px;max-width:calc(100vw - 32px);background-color:var(--asg-color-bg);border-radius:12px;padding:24px;border:.5px solid var(--asg-color-border)}@media (max-width: 480px){._api_key_input_7488d_1{width:100%;max-width:none;padding:20px;margin:0 16px}}._api_key_input__header_7488d_18{display:flex;flex-direction:column;gap:8px;align-items:center;margin-bottom:20px}._api_key_input__icon_7488d_26{width:40px;height:40px}._api_key_input__title_7488d_31{margin:0;font-size:20px;font-weight:500;color:#fff}._api_key_input__form_7488d_38{width:100%;display:flex;flex-direction:column;gap:20px}._api_key_input__label_7488d_45{display:block;font-size:14px;color:#ffffffb3;margin-bottom:8px}._api_key_input__input_wrapper_7488d_52{position:relative;width:100%}._api_key_input__input_7488d_52{width:100%;height:48px;padding:0 40px 0 12px;font-size:14px;font-weight:400;color:#fffc;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;outline:none;transition:all .2s ease;box-sizing:border-box}@media (max-width: 480px){._api_key_input__input_7488d_52{height:44px;font-size:16px}}._api_key_input__input_7488d_52::placeholder{color:#fff6}._api_key_input__input_7488d_52:focus{border-color:#ffffff4d;background:#ffffff14}._api_key_input__input--error_7488d_84{border-color:#ff4d4f;background:#ff4d4f0d}._api_key_input__input--disabled_7488d_88{opacity:.5;cursor:not-allowed}._api_key_input__toggle_button_7488d_93{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:#ffffff80;cursor:pointer;padding:4px;border-radius:4px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}._api_key_input__toggle_button_7488d_93:hover:not(:disabled){color:#ffffffb3;background:#ffffff0d}._api_key_input__toggle_button_7488d_93:disabled{opacity:.3;cursor:not-allowed}._api_key_input__toggle_icon_7488d_118{width:16px;height:16px}._api_key_input__error_message_7488d_123{margin-top:6px;font-size:12px;color:#ff4d4f}._api_key_input__submit_button_7488d_129{width:100%;height:48px;border:none;border-radius:6px;background-color:#5856d6;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;outline:none}@media (max-width: 480px){._api_key_input__submit_button_7488d_129{height:44px;font-size:16px}}._api_key_input__submit_button_7488d_129:disabled{opacity:.5;cursor:not-allowed;transform:none}._chatbot_header_luxt4_1{border-bottom:1px solid #434343}._chatbot_header_luxt4_1 ._chatbot_header__content_luxt4_4{margin:0 auto;max-width:1200px;padding:var(--asg-spacing-4);display:flex;justify-content:space-between}._chatbot_header__title_luxt4_12{display:flex;flex-direction:row;align-items:center;gap:var(--asg-spacing-2)}._chatbot_header__title_luxt4_12>h4{margin:0;color:#fff}._chatbot_header__extra_luxt4_23{display:flex;flex-direction:row;align-items:center;gap:var(--asg-spacing-3)}._chatbot_header__extra_luxt4_23>div{width:24px;height:24px;display:flex;justify-content:center;align-items:center}._chatbot_header__extra_luxt4_23>div>svg{width:15px;height:15px;cursor:pointer}._chatbot_header__extra_luxt4_23>div>svg:hover{opacity:.5}._chatbot_body_wrapper_13zns_1{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}._chatbot_body_13zns_1{flex:1;min-height:0;overflow-x:hidden;overflow-y:scroll;overscroll-behavior-y:contain}._chatbot_body_13zns_1 ._chatbot_body__content_13zns_16{margin:0 auto;display:flex;flex-direction:column;padding:16px;gap:16px;max-width:1200px}._template_box_1ozig_1{width:100%;display:flex;gap:8px}._template_box--bot_1ozig_7._template_box--horizontal_1ozig_7{flex-direction:row}._template_box--bot_1ozig_7._template_box--vertical_1ozig_10{flex-direction:column}._template_box--user_1ozig_14{flex-direction:row-reverse}._template_box_content_fs2wk_1{width:100%;display:flex;flex-direction:column;gap:8px}._content_fs2wk_8{width:100%;display:flex;flex-direction:row;gap:8px}._quick_replies_box_zoq7y_1{display:flex;flex-wrap:wrap;gap:8px}._quick_reply_zoq7y_7{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._references_wrapper_1221b_1{width:100%;display:flex;flex-direction:row;gap:8px;margin-top:4px}._references_box_1221b_9{display:inline-block;padding:8px 12px;border-radius:8px;word-break:break-all}._references_box--bot_1221b_16{max-width:70%;background:#585858;color:#fff;border-top-left-radius:0}._references_inner_1221b_23{width:100%;display:flex;flex-direction:column}._references_header_1221b_29{display:flex;align-items:center;gap:8px;margin-bottom:8px}._references_title_1221b_36{font-size:inherit;font-weight:700;white-space:nowrap;color:#8c8c8c}._references_divider_1221b_43{flex:1;height:1px;min-width:0;background-color:#3d3d3d}._references_list_1221b_50{display:flex;flex-direction:column;gap:8px}._reference_item_1221b_56{border:none;background:transparent;color:inherit;cursor:pointer;text-align:left;word-break:break-all;font-size:.75em;padding:0;transition:opacity .2s}._reference_item_1221b_56:hover{opacity:.8}._reference_item_1221b_56:active{opacity:.6}._reference_item_1221b_56>span{word-break:break-all}._reference_link_1221b_77{text-decoration:underline}._time_h4puu_1{display:flex;align-items:flex-end;font-size:12px;color:#8c8c8c}._message_actions_mnoya_1{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}._message_action_mnoya_1{font:inherit;font-size:13px;padding:0;border:none;background:transparent;color:#4a9eff;cursor:pointer;text-decoration:none}._message_action_mnoya_1:hover{text-decoration:underline}._bot_avatar_xrs9x_1{flex:0 0 auto;width:24px;height:24px;border-radius:50%}._card_root_1bhsk_1{width:255px;max-height:380px;border-radius:8px;background:#333;overflow:hidden;display:grid;grid-template-rows:max-content auto}._card_content_1bhsk_11{display:grid;grid-template-rows:max-content 1fr max-content;gap:var(--asg-spacing-2);padding:12px;line-height:1.5em}._card_title_1bhsk_19{color:#fff;margin:0;font-size:15px}._card_description_1bhsk_25{color:#8c8c8c;font-size:13px;font-weight:400;max-height:4.5em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-underline-position:from-font;text-decoration-skip-ink:none}._card_actions_1bhsk_40{display:flex;flex-direction:column;gap:8px}._card_actions_1bhsk_40>button{width:100%;height:32px;line-height:32px;text-align:center;border:none;border-radius:4px;background:#4767eb;color:#fff;font-size:15px;cursor:pointer}._text_1fz69_1{display:inline-block;padding:8px 12px;border-radius:8px;color:#fff;word-break:break-all}._text_1fz69_1>span{word-break:break-all}._text_1fz69_1 p{margin:0}._text--user_1fz69_15{max-width:75%;background:#4767eb;border-top-right-radius:0}._text--bot_1fz69_21{max-width:70%;background:#585858;border-top-left-radius:0}._content_1fz69_27{display:flex;flex-direction:column;gap:8px}._typing-indicator_1fz69_33{display:inline-flex;align-items:flex-end;justify-content:center}._typing-indicator_1fz69_33 ._dot_1fz69_38{width:2px;height:2px;margin:0 2px;background-color:#fff;border-radius:50%;animation:_blink_1fz69_1 1.4s infinite ease-in-out both}._typing-indicator_1fz69_33 ._dot_1fz69_38:nth-child(1){animation-delay:0s}._typing-indicator_1fz69_33 ._dot_1fz69_38:nth-child(2){animation-delay:.2s}._typing-indicator_1fz69_33 ._dot_1fz69_38:nth-child(3){animation-delay:.4s}._table_container_1fz69_56{overflow-x:scroll}._table_container_1fz69_56 table{width:100%;border-collapse:collapse;border-spacing:0;min-width:600px;font-size:14px;background-color:#1f1f1f;color:#ffffffd9;border:1px solid #333;border-radius:4px;overflow:hidden}._table_container_1fz69_56 table thead{position:sticky;top:0;z-index:1;background-color:#141414}._table_container_1fz69_56 table th,._table_container_1fz69_56 table td{padding:12px 16px;border-bottom:1px solid #333;text-align:left;white-space:nowrap;transition:background-color .3s,color .3s}._table_container_1fz69_56 table th{font-weight:600;color:#fffffff2}._table_container_1fz69_56 table tbody tr:nth-child(odd){background-color:#1c1c1c}._table_container_1fz69_56 table tbody tr:nth-child(2n){background-color:#111}._table_container_1fz69_56 table tbody tr:hover td{background-color:#262626}._table_container_1fz69_56 table tbody tr:last-child td{border-bottom:none}@keyframes _blink_1fz69_1{0%,80%,to{opacity:.2;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}._carousel_root_v06v3_1{width:100%;display:flex;flex-wrap:nowrap;overflow-x:scroll;gap:8px;align-items:stretch}._carousel_root_v06v3_1>div{flex:0 0 auto}._carousel_time_v06v3_13{justify-content:flex-end}._hint_root_1hmle_1{margin:0 auto;display:flex;flex-direction:column;align-items:center;padding:4px 12px;gap:4px;border-radius:2px;background:#58585833;font-size:13px;color:#fff;word-break:break-all}._hint_root_1hmle_1._hint_root__error_1hmle_14{color:var(--asg-color-error)}._hint_root_1hmle_1 ._error_hint_title_1hmle_17{display:flex;align-items:center;gap:var(--asg-spacing-2);color:var(--asg-color-error)}._hint_root_1hmle_1 ._error_hint_message_1hmle_23{font-size:12px;color:#fff}._hint_root_1hmle_1 ._error_hint_message_1hmle_23>span{border-bottom:1px solid white;cursor:pointer}._hint_text_1hmle_32{color:#fff}._time_1hmle_36{font-size:12px;color:#8c8c8c}._text_we7dz_1{display:inline-block;padding:8px 12px;border-radius:8px;color:#fff;word-break:break-all}._text_we7dz_1>span{word-break:break-all}._text_we7dz_1 ._md_container_we7dz_11{display:inline-block}._text_we7dz_1 ._md_container_we7dz_11 p{margin:0}._text--user_we7dz_18{max-width:75%;background:#4767eb;border-top-right-radius:0}._text--bot_we7dz_24{max-width:70%;background:#585858;border-top-left-radius:0}._chart_time_we7dz_30{justify-content:flex-end}._quick_replies_box_we7dz_34{display:flex;flex-wrap:wrap;gap:8px}._quick_reply_we7dz_40{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._image_box_8cz9p_1{display:flex;align-items:center;justify-content:flex-start;max-width:80%;border-radius:8px;box-sizing:border-box}._image_box_8cz9p_1>img{width:100%;border-radius:8px}._time_8cz9p_14{justify-content:flex-end}._quick_replies_box_8cz9p_18{display:flex;flex-wrap:wrap;gap:8px}._full_screen_8cz9p_24{display:flex;align-items:center;justify-content:center;z-index:9999;position:fixed;top:0;left:0;background:#1e1e1ecc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);width:100%;height:100%;overflow:hidden;box-sizing:border-box}._full_screen_8cz9p_24>._imageOrigin_8cz9p_39{width:100%;max-width:100%;height:100%;max-height:90%;border-radius:8px;background-repeat:no-repeat;background-size:contain;background-position:center}._full_screen_8cz9p_24>._full_screen_close_8cz9p_49{position:absolute;top:16px;right:16px;font-size:24px;cursor:pointer;z-index:9999}._quick_reply_8cz9p_58{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._video_box_119ne_1{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;max-width:80%;border-radius:8px;box-sizing:border-box;gap:8px}._video_preview_119ne_12{position:relative;width:100%;border-radius:8px;overflow:hidden;cursor:pointer;background:#000}._video_preview_119ne_12>img{width:100%;display:block;border-radius:8px}._video_preview_119ne_12:hover ._play_button_119ne_25{transform:translate(-50%,-50%) scale(1.1)}._play_button_119ne_25{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:transform .2s ease;pointer-events:none}._duration_badge_119ne_39{position:absolute;bottom:8px;right:8px;background:#000000b3;color:#fff;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}._video_player_wrapper_119ne_51{position:relative;border-radius:8px;overflow:hidden;background:#000;display:flex;align-items:center;justify-content:center}._video_player_119ne_51{width:100%;height:100%;display:block;border-radius:8px;object-fit:contain}._youtube_player_119ne_69{width:100%;height:100%;border-radius:8px;border:none}._video_text_119ne_76{font-size:14px;color:inherit;word-wrap:break-word}._time_119ne_82{justify-content:flex-end}._quick_replies_box_119ne_86{display:flex;flex-wrap:wrap;gap:8px}._quick_reply_119ne_92{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._audio_box_1y8ew_1{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;max-width:60%;min-width:250px;border-radius:8px;box-sizing:border-box;gap:8px}._audio_player_1y8ew_13{width:100%;min-width:250px;border-radius:8px}._audio_player_1y8ew_13::-webkit-media-controls-download-button{display:none}._audio_player_1y8ew_13::-webkit-media-controls-fullscreen-button{display:none}._audio_player_1y8ew_13::-webkit-media-controls-remote-playback-button{display:none}._card_root_19djz_1{width:255px;max-height:380px;border-radius:8px;overflow:hidden;display:grid;grid-template-rows:max-content auto}._map_container_19djz_10{width:100%;height:170px;overflow:hidden;position:relative}._map_iframe_19djz_17{display:block;width:100%;height:100%;border:none;pointer-events:none}._card_content_19djz_25{display:grid;grid-template-rows:1.5em auto;gap:var(--asg-spacing-2);padding:12px;line-height:1.5em;background:#333;border-radius:0 0 8px 8px}._card_title_19djz_35{color:#fff;margin:0;font-size:15px;font-weight:600}._card_description_19djz_42{color:#8c8c8c;font-size:13px;font-weight:400;max-height:4.5em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-underline-position:from-font;text-decoration-skip-ink:none}._message_wrapper_1cjr0_1{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:75%}._text_bubble_1cjr0_9{display:inline-block;padding:8px 12px;border-radius:8px;white-space:pre-wrap;word-break:break-word}._text_bubble--user_1cjr0_16{background:#4767eb;color:#fff;border-top-right-radius:0}._images_container_1cjr0_22{display:flex;flex-direction:column;gap:8px;width:100%}._image_wrapper_1cjr0_29{position:relative;width:300px;aspect-ratio:3/2;border-radius:8px;overflow:hidden;background:#0000000d;box-shadow:0 1px 2px #0000001a;align-self:flex-end}._uploaded_image_1cjr0_40{width:100%;height:100%;object-fit:cover;display:block;cursor:pointer;transition:opacity .2s ease}._uploaded_image_1cjr0_40:hover{opacity:.95}._documents_container_1cjr0_52{display:flex;flex-direction:column;gap:8px;width:100%;align-items:flex-end}._document_card_1cjr0_60{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:8px;max-width:300px}._document_icon_1cjr0_69{flex-shrink:0}._document_name_1cjr0_73{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._image_modal_1cjr0_80{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000e6;display:flex;align-items:center;justify-content:center;z-index:10000;cursor:pointer;padding:20px}._image_modal_1cjr0_80 ._modal_image_1cjr0_94{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px;box-shadow:0 4px 20px #00000080}._tool_call_group_1rad3_1{width:100%;display:flex;flex-direction:column;gap:8px}._tool_call_group__header_1rad3_8{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}._tool_call_group__chevron_1rad3_16{width:16px;height:16px;color:var(--asgard-tool-call-icon, #8c8c8c);transition:transform .2s ease;flex-shrink:0}._tool_call_group__chevron--expanded_1rad3_24{transform:rotate(90deg)}._tool_call_group__title_1rad3_28{font-size:14px;font-weight:500;color:var(--asgard-tool-call-text, #fff)}._tool_call_group__content_1rad3_34{display:flex;flex-direction:column;gap:8px}._tool_call_item_1rad3_40{display:flex;flex-direction:column;background-color:var(--asgard-tool-call-item-bg, #1a1a1a);border-radius:8px;overflow:hidden}._tool_call_item__header_1rad3_48{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s ease}._tool_call_item__header_1rad3_48:hover{background-color:var(--asgard-tool-call-hover, rgba(255, 255, 255, .05))}._tool_call_item__left_1rad3_61{display:flex;align-items:center;gap:8px}._tool_call_item__chevron_1rad3_67{width:14px;height:14px;color:var(--asgard-tool-call-icon, #8c8c8c);transition:transform .2s ease;flex-shrink:0}._tool_call_item__chevron--expanded_1rad3_75{transform:rotate(90deg)}._tool_call_item__label_1rad3_79{font-size:14px;color:var(--asgard-tool-call-text, #fff)}._tool_call_item__status_1rad3_84{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}._tool_call_item__status_icon_1rad3_93{width:20px;height:20px}._tool_call_item__status_icon--completed_1rad3_98{color:#52c41a}._tool_call_item__status_icon--error_1rad3_102{color:#ff4d4f}._tool_call_item__status_icon--pending_1rad3_106{color:#faad14;animation:_pulse_1rad3_1 1.5s ease-in-out infinite}@keyframes _pulse_1rad3_1{0%,to{opacity:1}50%{opacity:.5}}._tool_call_item__content_1rad3_119{padding:0 16px 12px 38px;display:flex;flex-direction:column;gap:8px}._json_viewer_1rad3_126{display:flex;flex-direction:column;border-radius:6px;overflow:hidden;background-color:var(--asgard-json-viewer-bg, #141414);border:1px solid var(--asgard-tool-call-border, #333)}._json_viewer__header_1rad3_135{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background-color:var(--asgard-json-viewer-header-bg, #1f1f1f);border-bottom:1px solid var(--asgard-tool-call-border, #333)}._json_viewer__title_1rad3_144{font-size:12px;font-weight:500;color:var(--asgard-tool-call-text-secondary, #8c8c8c)}._json_viewer__actions_1rad3_150{display:flex;align-items:center;gap:4px}._json_viewer__action_btn_1rad3_156{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--asgard-tool-call-icon, #8c8c8c);cursor:pointer;border-radius:4px;transition:all .2s ease}._json_viewer__action_btn_1rad3_156:hover{background-color:var(--asgard-tool-call-hover, rgba(255, 255, 255, .1));color:var(--asgard-tool-call-text, #fff)}._json_viewer__action_btn_1rad3_156 svg{width:14px;height:14px}._json_viewer__content_1rad3_178{padding:8px 10px;max-height:200px;overflow:auto}._json_viewer__code_1rad3_184{font-family:SF Mono,Monaco,Courier New,monospace;font-size:11px;line-height:1.5;color:var(--asgard-json-viewer-text, #d4d4d4);white-space:pre-wrap;word-break:break-all;margin:0}._json_token--key_1rad3_194{color:#9cdcfe}._json_token--string_1rad3_198{color:#ce9178}._json_token--number_1rad3_202{color:#b5cea8}._json_token--boolean_1rad3_206,._json_token--null_1rad3_210{color:#569cd6}._json_token--punctuation_1rad3_214{color:#d4d4d4}._json_modal__backdrop_1rad3_218{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}._json_modal_1rad3_218{display:flex;flex-direction:column;width:100%;max-width:800px;max-height:80vh;background-color:var(--asgard-json-viewer-bg, #141414);border:1px solid var(--asgard-tool-call-border, #333);border-radius:8px;overflow:hidden;box-shadow:0 8px 32px #00000080}._json_modal__header_1rad3_245{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:var(--asgard-json-viewer-header-bg, #1f1f1f);border-bottom:1px solid var(--asgard-tool-call-border, #333)}._json_modal__title_1rad3_254{font-size:14px;font-weight:500;color:var(--asgard-tool-call-text, #fff)}._json_modal__actions_1rad3_260{display:flex;align-items:center;gap:8px}._json_modal__action_btn_1rad3_266{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;color:var(--asgard-tool-call-icon, #8c8c8c);cursor:pointer;border-radius:4px;transition:all .2s ease}._json_modal__action_btn_1rad3_266:hover{background-color:var(--asgard-tool-call-hover, rgba(255, 255, 255, .1));color:var(--asgard-tool-call-text, #fff)}._json_modal__action_btn_1rad3_266 svg{width:16px;height:16px}._json_modal__content_1rad3_288{flex:1;padding:16px;overflow:auto}._json_modal__content_1rad3_288 ._json_viewer__code_1rad3_184{font-size:13px;line-height:1.6}._container_u8l6w_1{display:flex;flex-direction:column;gap:8px;width:100%;position:relative;background:#585858;color:#fff;border-radius:8px}._header_u8l6w_12{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:8px 8px 0 0}._title_u8l6w_20{font-size:14px;font-weight:600}._download_button_u8l6w_25{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:6px;background:#ffffff1a;color:inherit;cursor:pointer;transition:background-color .2s}._download_button_u8l6w_25:hover{background:#fff3}._download_button_u8l6w_25:active{background:#ffffff4d}._table_wrapper_u8l6w_45{overflow-x:auto;border-radius:8px}._table_u8l6w_45{width:100%;border-collapse:collapse;font-size:13px}._table_header_u8l6w_56{background:#0003}._table_header_cell_u8l6w_60{padding:10px 12px;text-align:left;font-weight:600;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.1)}._table_row_u8l6w_68:hover{background:#ffffff0d}._table_row_u8l6w_68:not(:last-child){border-bottom:1px solid rgba(255,255,255,.1)}._table_cell_u8l6w_75{padding:10px 12px;white-space:nowrap}._pagination_u8l6w_80{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px}._pagination_button_u8l6w_88{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:transparent;color:inherit;cursor:pointer;font-size:14px}._pagination_button_u8l6w_88:hover:not(:disabled){background:#ffffff1a}._pagination_button_u8l6w_88:disabled{opacity:.4;cursor:not-allowed}._pagination_info_u8l6w_109{font-size:13px;padding:0 12px}._empty_state_u8l6w_114{padding:24px;text-align:center;font-size:13px;opacity:.7}._time_u8l6w_121{justify-content:flex-end}._snackbar_u8l6w_125{position:absolute;bottom:-48px;left:0;right:0;display:flex;align-items:center;gap:12px;padding:12px 16px;background:#282828f2;border-radius:8px;box-shadow:0 4px 12px #0000004d;animation:_slideUp_u8l6w_1 .2s ease-out}@keyframes _slideUp_u8l6w_1{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}._snackbar_text_u8l6w_150{flex:1;font-size:13px;color:#fff}._snackbar_action_u8l6w_156{padding:4px 12px;border:none;border-radius:4px;background:transparent;color:#4fc3f7;font-size:13px;font-weight:500;cursor:pointer}._snackbar_action_u8l6w_156:hover{background:#4fc3f71a}._snackbar_close_u8l6w_170{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;border-radius:4px;background:transparent;color:#fff9;font-size:18px;cursor:pointer}._snackbar_close_u8l6w_170:hover{background:#ffffff1a;color:#fff}._chatbot_footer_13y44_1{border-top:1px solid #434343}._chatbot_footer_13y44_1 ._chatbot_footer__content_13y44_4{display:grid;align-items:center;grid-template-columns:auto 1fr auto;margin:0 auto;max-width:1200px;padding:var(--asg-spacing-3) var(--asg-spacing-4);gap:var(--asg-spacing-2)}@keyframes _prevent_ios_focus_scroll_13y44_1{0%{opacity:0}to{opacity:1}}._chatbot_textarea_13y44_22{font:inherit;font-size:16px;height:40px!important;max-height:240px;padding:8px 8px 8px 12px;background:var(--asg-color-bg);border:1px solid rgb(67,67,67);border-radius:2px;color:#8c8c8c;resize:none;overflow:hidden}._chatbot_textarea_13y44_22::placeholder{color:var(--asg-color-text-placeholder)}._chatbot_textarea_13y44_22._chatbot_textarea--focused_13y44_39{animation:_prevent_ios_focus_scroll_13y44_1 .01s}._chatbot_submit_button_13y44_43{font:inherit;width:24px;height:100%;max-height:38px;display:flex;justify-content:center;align-items:center;font-size:16px;border:none;background:transparent;border-radius:50%;color:#fff;cursor:pointer}._chatbot_submit_button_13y44_43>svg{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;width:auto;min-width:16px;height:60%;max-height:38px;min-height:16px}._chatbot_submit_button_13y44_43._chatbot_submit_button__disabled_13y44_68{opacity:.6}._attachment_buttons_13y44_72{display:flex;gap:var(--asg-spacing-2);align-items:center}._attachment_menu_container_13y44_78{position:relative}._attachment_menu_13y44_78{position:absolute;bottom:100%;left:0;margin-bottom:8px;min-width:160px;border-radius:8px;border:1px solid var(--asg-color-border, #3d3d3d);background:var(--asg-color-bg, #1a1a1a);box-shadow:0 4px 12px #0000004d;overflow:hidden;z-index:100}._attachment_menu_item_13y44_96{display:flex;align-items:center;gap:var(--asg-spacing-2, 8px);width:100%;padding:10px 14px;border:none;background:transparent;color:var(--asg-color-text, #e0e0e0);font:inherit;font-size:14px;cursor:pointer;transition:background-color .15s ease;text-align:left}._attachment_menu_item_13y44_96:hover{background:#ffffff1a}._attachment_menu_item_13y44_96>svg{width:18px;height:18px;flex-shrink:0}._attachment_menu_item_13y44_96>span{white-space:nowrap}._attachment_button_13y44_72{font:inherit;width:32px;height:32px;display:flex;justify-content:center;align-items:center;border:none;background:transparent;border-radius:6px;color:#fff;cursor:pointer;transition:all .2s ease;position:relative}._attachment_button_13y44_72:disabled{opacity:.6;cursor:not-allowed}._attachment_button_13y44_72>svg{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;width:18px;height:18px}._file_input_hidden_13y44_150{display:none}._file_preview_container_13y44_154{width:100%;max-width:1200px;margin:0 auto;padding:var(--asg-spacing-3, 12px);padding-bottom:0}._file_preview_grid_13y44_162{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--asg-spacing-2, 8px)}@media (max-width: 768px){._file_preview_grid_13y44_162{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}._file_preview_item_13y44_173{position:relative;background:var(--asg-color-bg-secondary, #2d2d2d);border:1px solid var(--asg-color-border, #3d3d3d);border-radius:var(--asg-radius-md, 8px);overflow:hidden;aspect-ratio:3/2;max-width:250px}._file_preview_image_area_13y44_183{width:100%;height:100%;background:var(--asg-color-bg-dark, #1a1a1a);display:flex;align-items:center;justify-content:center;position:relative}._file_preview_image_13y44_183{max-width:100%;max-height:100%;object-fit:contain;cursor:pointer;transition:opacity .2s ease}._file_preview_image_13y44_183:hover{opacity:.8}._file_remove_button_13y44_204{position:absolute;top:var(--asg-spacing-1, 6px);right:var(--asg-spacing-1, 6px);width:20px;height:20px;border-radius:4px;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;border:1px solid rgba(255,255,255,.1);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;padding:0}._file_upload_overlay_13y44_223{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center}@keyframes _spin_13y44_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._file_upload_spinner_13y44_240{width:24px;height:24px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:_spin_13y44_1 .8s linear infinite}._file_preview_item__error_13y44_249{border-color:#ef4444}._file_error_overlay_13y44_253{position:absolute;top:0;right:0;bottom:0;left:0;background:#ef444433;display:flex;align-items:center;justify-content:center}._file_error_icon_13y44_262{width:24px;height:24px;color:#ef4444}._image_modal_13y44_268{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}._image_modal_content_13y44_280{display:flex;flex-direction:column;align-items:center;gap:var(--asg-spacing-4, 16px)}._image_modal_image_13y44_287{max-width:90vw;max-height:75vh;object-fit:contain;border-radius:var(--asg-radius-lg, 12px);box-shadow:0 20px 60px #0009;-webkit-user-select:none;user-select:none}._image_modal_close_button_13y44_296{position:absolute;top:var(--asg-spacing-5, 20px);right:var(--asg-spacing-5, 20px);width:36px;height:36px;border-radius:50%;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;border:1px solid rgba(255,255,255,.2);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;padding:0;transition:all .2s ease}._image_modal_close_button_13y44_296:hover{background:#fff3;transform:scale(1.1)}._image_modal_close_button_13y44_296:active{transform:scale(.95)}._document_preview_grid_13y44_323{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--asg-spacing-2, 8px)}@media (max-width: 768px){._document_preview_grid_13y44_323{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}._document_preview_item_13y44_334{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--asg-spacing-2, 8px);padding:var(--asg-spacing-3, 12px);background:var(--asg-color-bg-secondary, #2d2d2d);border:1px solid var(--asg-color-border, #3d3d3d);border-radius:var(--asg-radius-md, 8px);aspect-ratio:3/2;max-width:250px}._document_preview_icon_wrapper_13y44_349{display:flex;align-items:center;justify-content:center;flex:1}._document_preview_icon_13y44_349{width:48px;height:48px;color:var(--asg-color-text-secondary, #a0a0a0)}._document_preview_name_13y44_362{font-size:12px;color:var(--asg-color-text, #e0e0e0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-align:center}._chatbot_root_84qyk_2{--asg-color-blue-1: #edf0fd;--asg-color-blue-2: #d3dbfa;--asg-color-blue-3: #b0bef6;--asg-color-blue-4: #6882ef;--asg-color-blue-5: #8b9ff2;--asg-color-blue-6: #4767eb;--asg-color-blue-7: #3c58c8;--asg-color-blue-8: #3249a7;--asg-color-blue-9: #283b86;--asg-color-blue-10: #202e6a;--asg-color-orange-1: #ffeded;--asg-color-orange-2: #ffd4d5;--asg-color-orange-3: #ffb2b3;--asg-color-orange-4: #ff8f90;--asg-color-orange-5: #ff6d6f;--asg-color-orange-6: #ff4d4f;--asg-color-orange-7: #d94143;--asg-color-orange-8: #b53738;--asg-color-orange-9: #912c2d;--asg-color-orange-10: #732324;--asg-color-green-1: #eef9e8;--asg-color-green-2: #d5f1c8;--asg-color-green-3: #b5e69d;--asg-color-green-4: #92da6f;--asg-color-green-5: #71cf43;--asg-color-green-6: #52c41a;--asg-color-green-7: #46a716;--asg-color-green-8: #3a8b12;--asg-color-green-9: #2f700f;--asg-color-green-10: #25580c;--asg-color-yellow-1: #fef7eb;--asg-color-yellow-2: #fdebcf;--asg-color-yellow-3: #fcdba9;--asg-color-yellow-4: #facb82;--asg-color-yellow-5: #f8bb5c;--asg-color-yellow-6: #f7ac38;--asg-color-yellow-7: #d29230;--asg-color-yellow-8: #af7a28;--asg-color-yellow-9: #8d6220;--asg-color-yellow-10: #6f4d19;--asg-color-grey-1: #f3f3f3;--asg-color-grey-2: #e2e2e2;--asg-color-grey-3: #cbcbcb;--asg-color-grey-4: #b2b2b2;--asg-color-grey-5: #9b9b9b;--asg-color-grey-6: #585858;--asg-color-grey-7: #717171;--asg-color-grey-8: #5e5e5e;--asg-color-grey-9: #4c4c4c;--asg-color-grey-10: #3c3c3c;--asg-color-primary: #4767eb;--asg-color-primary-light: #8b9ff2;--asg-color-primary-dark: #3249a7;--asg-color-primary-on-primary: #ffffff;--asg-color-primary-hover-bg: rgba(139, 159, 242, .15);--asg-color-primary-selected-bg: rgba(71, 103, 235, .2);--asg-color-secondary: #585858;--asg-color-secondary-light: #b2b2b2;--asg-color-secondary-dark: #4c4c4c;--asg-color-secondary-on-secondary: #ffffff;--asg-color-secondary-hover-bg: rgba(178, 178, 178, .15);--asg-color-secondary-selected-bg: rgba(88, 88, 88, .2);--asg-color-error: #ff4d4f;--asg-color-error-light: #ff6d6f;--asg-color-error-dark: #d94143;--asg-color-error-on-error: #ffffff;--asg-color-error-hover-bg: rgba(255, 109, 111, .15);--asg-color-error-selected-bg: rgba(255, 77, 79, .2);--asg-color-warning: #f7ac38;--asg-color-warning-light: #f8bb5c;--asg-color-warning-dark: #af7a28;--asg-color-warning-on-warning: #ffffff;--asg-color-warning-hover-bg: rgba(248, 187, 92, .15);--asg-color-warning-selected-bg: rgba(247, 172, 56, .2);--asg-color-success: #52c41a;--asg-color-success-light: #71cf43;--asg-color-success-dark: #3a8b12;--asg-color-success-on-success: #ffffff;--asg-color-success-hover-bg: rgba(113, 207, 67, .15);--asg-color-success-selected-bg: rgba(82, 196, 26, .2);--asg-color-action-active: #ffffff;--asg-color-action-inactive: #8c8c8c;--asg-color-action-disabled: #595959;--asg-color-action-disabled-bg: #393939;--asg-color-text-primary: #ffffff;--asg-color-text-secondary: #8c8c8c;--asg-color-text-disabled: #595959;--asg-color-text-placeholder: #8c8c8c;--asg-color-bg: #141414;--asg-color-surface: #1f1f1f;--asg-color-divider: #333333;--asg-color-border: #434343;--asg-color-overlay-dark: rgba(0, 0, 0, .5);--asg-color-overlay-light: rgba(31, 31, 31, .9);--asg-radius-none: 0px;--asg-radius-xxs: 2px;--asg-radius-xs: 4px;--asg-radius-s: 6px;--asg-radius-md: 8px;--asg-radius-lg: 10px;--asg-radius-xl: 12px;--asg-radius-2xl: 16px;--asg-radius-3xl: 20px;--asg-radius-4xl: 24px;--asg-spacing-1: 4px;--asg-spacing-2: 8px;--asg-spacing-3: 12px;--asg-spacing-4: 16px;--asg-spacing-5: 24px;--asg-spacing-6: 32px;--asg-spacing-7: 40px;--asg-spacing-8: 48px;--asg-spacing-9: 64px;--asg-spacing-10: 96px;--asg-spacing-11: 160px;font-family:Space Grotesk,Noto Sans TC,sans-serif}._chatbot_root_84qyk_2 *{line-height:1.5;box-sizing:border-box}._full_screen_84qyk_125{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--asg-color-bg)}._full_screen_84qyk_125 ._chatbot_container_84qyk_130{height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}._chatbot_container_84qyk_130{display:grid;grid-template-rows:max-content auto max-content;background-color:var(--asg-color-bg);overflow:hidden;overscroll-behavior:contain}._container_wk6bz_1{display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 24px}._avatar_wk6bz_9{width:48px;height:48px;margin-bottom:24px;display:flex;align-items:center;justify-content:center}._avatar_wk6bz_9 svg,._avatar_wk6bz_9 img{width:100%;height:100%}._message_wk6bz_23{color:var(--asg-color-text-secondary, rgba(255, 255, 255, .6));font-size:14px;line-height:1.5;max-width:280px}._chatbot__auth_state_container_1hs4h_1{display:flex;align-items:center;justify-content:center;flex:1;padding:20px}._chatbot__error_state_1hs4h_9{color:#ff6b6b}._chatbot__error_state__content_1hs4h_13{text-align:center}._chatbot__error_state__icon_1hs4h_17{font-size:16px;margin-bottom:8px}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap";/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid}}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.contents{display:contents}.hidden{display:none}.table{display:table}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}._api_key_input_7488d_1{width:360px;max-width:calc(100vw - 32px);background-color:var(--asg-color-bg);border-radius:12px;padding:24px;border:.5px solid var(--asg-color-border)}@media (max-width: 480px){._api_key_input_7488d_1{width:100%;max-width:none;padding:20px;margin:0 16px}}._api_key_input__header_7488d_18{display:flex;flex-direction:column;gap:8px;align-items:center;margin-bottom:20px}._api_key_input__icon_7488d_26{width:40px;height:40px}._api_key_input__title_7488d_31{margin:0;font-size:20px;font-weight:500;color:#fff}._api_key_input__form_7488d_38{width:100%;display:flex;flex-direction:column;gap:20px}._api_key_input__label_7488d_45{display:block;font-size:14px;color:#ffffffb3;margin-bottom:8px}._api_key_input__input_wrapper_7488d_52{position:relative;width:100%}._api_key_input__input_7488d_52{width:100%;height:48px;padding:0 40px 0 12px;font-size:14px;font-weight:400;color:#fffc;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;outline:none;transition:all .2s ease;box-sizing:border-box}@media (max-width: 480px){._api_key_input__input_7488d_52{height:44px;font-size:16px}}._api_key_input__input_7488d_52::placeholder{color:#fff6}._api_key_input__input_7488d_52:focus{border-color:#ffffff4d;background:#ffffff14}._api_key_input__input--error_7488d_84{border-color:#ff4d4f;background:#ff4d4f0d}._api_key_input__input--disabled_7488d_88{opacity:.5;cursor:not-allowed}._api_key_input__toggle_button_7488d_93{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:#ffffff80;cursor:pointer;padding:4px;border-radius:4px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}._api_key_input__toggle_button_7488d_93:hover:not(:disabled){color:#ffffffb3;background:#ffffff0d}._api_key_input__toggle_button_7488d_93:disabled{opacity:.3;cursor:not-allowed}._api_key_input__toggle_icon_7488d_118{width:16px;height:16px}._api_key_input__error_message_7488d_123{margin-top:6px;font-size:12px;color:#ff4d4f}._api_key_input__submit_button_7488d_129{width:100%;height:48px;border:none;border-radius:6px;background-color:#5856d6;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;outline:none}@media (max-width: 480px){._api_key_input__submit_button_7488d_129{height:44px;font-size:16px}}._api_key_input__submit_button_7488d_129:disabled{opacity:.5;cursor:not-allowed;transform:none}._chatbot_header_luxt4_1{border-bottom:1px solid #434343}._chatbot_header_luxt4_1 ._chatbot_header__content_luxt4_4{margin:0 auto;max-width:1200px;padding:var(--asg-spacing-4);display:flex;justify-content:space-between}._chatbot_header__title_luxt4_12{display:flex;flex-direction:row;align-items:center;gap:var(--asg-spacing-2)}._chatbot_header__title_luxt4_12>h4{margin:0;color:#fff}._chatbot_header__extra_luxt4_23{display:flex;flex-direction:row;align-items:center;gap:var(--asg-spacing-3)}._chatbot_header__extra_luxt4_23>div{width:24px;height:24px;display:flex;justify-content:center;align-items:center}._chatbot_header__extra_luxt4_23>div>svg{width:15px;height:15px;cursor:pointer}._chatbot_header__extra_luxt4_23>div>svg:hover{opacity:.5}._chatbot_body_wrapper_13zns_1{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}._chatbot_body_13zns_1{flex:1;min-height:0;overflow-x:hidden;overflow-y:scroll;overscroll-behavior-y:contain}._chatbot_body_13zns_1 ._chatbot_body__content_13zns_16{margin:0 auto;display:flex;flex-direction:column;padding:16px;gap:16px;max-width:1200px}._template_box_1ozig_1{width:100%;display:flex;gap:8px}._template_box--bot_1ozig_7._template_box--horizontal_1ozig_7{flex-direction:row}._template_box--bot_1ozig_7._template_box--vertical_1ozig_10{flex-direction:column}._template_box--user_1ozig_14{flex-direction:row-reverse}._template_box_content_fs2wk_1{width:100%;display:flex;flex-direction:column;gap:8px}._content_fs2wk_8{width:100%;display:flex;flex-direction:row;gap:8px}._quick_replies_box_zoq7y_1{display:flex;flex-wrap:wrap;gap:8px}._quick_reply_zoq7y_7{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._references_wrapper_1221b_1{width:100%;display:flex;flex-direction:row;gap:8px;margin-top:4px}._references_box_1221b_9{display:inline-block;padding:8px 12px;border-radius:8px;word-break:break-all}._references_box--bot_1221b_16{max-width:70%;background:#585858;color:#fff;border-top-left-radius:0}._references_inner_1221b_23{width:100%;display:flex;flex-direction:column}._references_header_1221b_29{display:flex;align-items:center;gap:8px;margin-bottom:8px}._references_title_1221b_36{font-size:inherit;font-weight:700;white-space:nowrap;color:#8c8c8c}._references_divider_1221b_43{flex:1;height:1px;min-width:0;background-color:#3d3d3d}._references_list_1221b_50{display:flex;flex-direction:column;gap:8px}._reference_item_1221b_56{border:none;background:transparent;color:inherit;cursor:pointer;text-align:left;word-break:break-all;font-size:.75em;padding:0;transition:opacity .2s}._reference_item_1221b_56:hover{opacity:.8}._reference_item_1221b_56:active{opacity:.6}._reference_item_1221b_56>span{word-break:break-all}._reference_link_1221b_77{text-decoration:underline}._time_h4puu_1{display:flex;align-items:flex-end;font-size:12px;color:#8c8c8c}._message_actions_mnoya_1{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}._message_action_mnoya_1{font:inherit;font-size:13px;padding:0;border:none;background:transparent;color:#4a9eff;cursor:pointer;text-decoration:none}._message_action_mnoya_1:hover{text-decoration:underline}._bot_avatar_xrs9x_1{flex:0 0 auto;width:24px;height:24px;border-radius:50%}._card_root_1bhsk_1{width:255px;max-height:380px;border-radius:8px;background:#333;overflow:hidden;display:grid;grid-template-rows:max-content auto}._card_content_1bhsk_11{display:grid;grid-template-rows:max-content 1fr max-content;gap:var(--asg-spacing-2);padding:12px;line-height:1.5em}._card_title_1bhsk_19{color:#fff;margin:0;font-size:15px}._card_description_1bhsk_25{color:#8c8c8c;font-size:13px;font-weight:400;max-height:4.5em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-underline-position:from-font;text-decoration-skip-ink:none}._card_actions_1bhsk_40{display:flex;flex-direction:column;gap:8px}._card_actions_1bhsk_40>button{width:100%;height:32px;line-height:32px;text-align:center;border:none;border-radius:4px;background:#4767eb;color:#fff;font-size:15px;cursor:pointer}._text_1fz69_1{display:inline-block;padding:8px 12px;border-radius:8px;color:#fff;word-break:break-all}._text_1fz69_1>span{word-break:break-all}._text_1fz69_1 p{margin:0}._text--user_1fz69_15{max-width:75%;background:#4767eb;border-top-right-radius:0}._text--bot_1fz69_21{max-width:70%;background:#585858;border-top-left-radius:0}._content_1fz69_27{display:flex;flex-direction:column;gap:8px}._typing-indicator_1fz69_33{display:inline-flex;align-items:flex-end;justify-content:center}._typing-indicator_1fz69_33 ._dot_1fz69_38{width:2px;height:2px;margin:0 2px;background-color:#fff;border-radius:50%;animation:_blink_1fz69_1 1.4s infinite ease-in-out both}._typing-indicator_1fz69_33 ._dot_1fz69_38:nth-child(1){animation-delay:0s}._typing-indicator_1fz69_33 ._dot_1fz69_38:nth-child(2){animation-delay:.2s}._typing-indicator_1fz69_33 ._dot_1fz69_38:nth-child(3){animation-delay:.4s}._table_container_1fz69_56{overflow-x:scroll}._table_container_1fz69_56 table{width:100%;border-collapse:collapse;border-spacing:0;min-width:600px;font-size:14px;background-color:#1f1f1f;color:#ffffffd9;border:1px solid #333;border-radius:4px;overflow:hidden}._table_container_1fz69_56 table thead{position:sticky;top:0;z-index:1;background-color:#141414}._table_container_1fz69_56 table th,._table_container_1fz69_56 table td{padding:12px 16px;border-bottom:1px solid #333;text-align:left;white-space:nowrap;transition:background-color .3s,color .3s}._table_container_1fz69_56 table th{font-weight:600;color:#fffffff2}._table_container_1fz69_56 table tbody tr:nth-child(odd){background-color:#1c1c1c}._table_container_1fz69_56 table tbody tr:nth-child(2n){background-color:#111}._table_container_1fz69_56 table tbody tr:hover td{background-color:#262626}._table_container_1fz69_56 table tbody tr:last-child td{border-bottom:none}@keyframes _blink_1fz69_1{0%,80%,to{opacity:.2;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}._carousel_root_v06v3_1{width:100%;display:flex;flex-wrap:nowrap;overflow-x:scroll;gap:8px;align-items:stretch}._carousel_root_v06v3_1>div{flex:0 0 auto}._carousel_time_v06v3_13{justify-content:flex-end}._hint_root_1hmle_1{margin:0 auto;display:flex;flex-direction:column;align-items:center;padding:4px 12px;gap:4px;border-radius:2px;background:#58585833;font-size:13px;color:#fff;word-break:break-all}._hint_root_1hmle_1._hint_root__error_1hmle_14{color:var(--asg-color-error)}._hint_root_1hmle_1 ._error_hint_title_1hmle_17{display:flex;align-items:center;gap:var(--asg-spacing-2);color:var(--asg-color-error)}._hint_root_1hmle_1 ._error_hint_message_1hmle_23{font-size:12px;color:#fff}._hint_root_1hmle_1 ._error_hint_message_1hmle_23>span{border-bottom:1px solid white;cursor:pointer}._hint_text_1hmle_32{color:#fff}._time_1hmle_36{font-size:12px;color:#8c8c8c}._text_we7dz_1{display:inline-block;padding:8px 12px;border-radius:8px;color:#fff;word-break:break-all}._text_we7dz_1>span{word-break:break-all}._text_we7dz_1 ._md_container_we7dz_11{display:inline-block}._text_we7dz_1 ._md_container_we7dz_11 p{margin:0}._text--user_we7dz_18{max-width:75%;background:#4767eb;border-top-right-radius:0}._text--bot_we7dz_24{max-width:70%;background:#585858;border-top-left-radius:0}._chart_time_we7dz_30{justify-content:flex-end}._quick_replies_box_we7dz_34{display:flex;flex-wrap:wrap;gap:8px}._quick_reply_we7dz_40{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._image_box_8cz9p_1{display:flex;align-items:center;justify-content:flex-start;max-width:80%;border-radius:8px;box-sizing:border-box}._image_box_8cz9p_1>img{width:100%;border-radius:8px}._time_8cz9p_14{justify-content:flex-end}._quick_replies_box_8cz9p_18{display:flex;flex-wrap:wrap;gap:8px}._full_screen_8cz9p_24{display:flex;align-items:center;justify-content:center;z-index:9999;position:fixed;top:0;left:0;background:#1e1e1ecc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);width:100%;height:100%;overflow:hidden;box-sizing:border-box}._full_screen_8cz9p_24>._imageOrigin_8cz9p_39{width:100%;max-width:100%;height:100%;max-height:90%;border-radius:8px;background-repeat:no-repeat;background-size:contain;background-position:center}._full_screen_8cz9p_24>._full_screen_close_8cz9p_49{position:absolute;top:16px;right:16px;font-size:24px;cursor:pointer;z-index:9999}._quick_reply_8cz9p_58{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._video_box_119ne_1{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;max-width:80%;border-radius:8px;box-sizing:border-box;gap:8px}._video_preview_119ne_12{position:relative;width:100%;border-radius:8px;overflow:hidden;cursor:pointer;background:#000}._video_preview_119ne_12>img{width:100%;display:block;border-radius:8px}._video_preview_119ne_12:hover ._play_button_119ne_25{transform:translate(-50%,-50%) scale(1.1)}._play_button_119ne_25{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:transform .2s ease;pointer-events:none}._duration_badge_119ne_39{position:absolute;bottom:8px;right:8px;background:#000000b3;color:#fff;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}._video_player_wrapper_119ne_51{position:relative;border-radius:8px;overflow:hidden;background:#000;display:flex;align-items:center;justify-content:center}._video_player_119ne_51{width:100%;height:100%;display:block;border-radius:8px;object-fit:contain}._youtube_player_119ne_69{width:100%;height:100%;border-radius:8px;border:none}._video_text_119ne_76{font-size:14px;color:inherit;word-wrap:break-word}._time_119ne_82{justify-content:flex-end}._quick_replies_box_119ne_86{display:flex;flex-wrap:wrap;gap:8px}._quick_reply_119ne_92{font:inherit;font-size:13px;padding:4px 8px;border-radius:8px;border:1px solid #434343;background:#58585833;color:#fff;cursor:pointer}._audio_box_1y8ew_1{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;max-width:60%;min-width:250px;border-radius:8px;box-sizing:border-box;gap:8px}._audio_player_1y8ew_13{width:100%;min-width:250px;border-radius:8px}._audio_player_1y8ew_13::-webkit-media-controls-download-button{display:none}._audio_player_1y8ew_13::-webkit-media-controls-fullscreen-button{display:none}._audio_player_1y8ew_13::-webkit-media-controls-remote-playback-button{display:none}._card_root_19djz_1{width:255px;max-height:380px;border-radius:8px;overflow:hidden;display:grid;grid-template-rows:max-content auto}._map_container_19djz_10{width:100%;height:170px;overflow:hidden;position:relative}._map_iframe_19djz_17{display:block;width:100%;height:100%;border:none;pointer-events:none}._card_content_19djz_25{display:grid;grid-template-rows:1.5em auto;gap:var(--asg-spacing-2);padding:12px;line-height:1.5em;background:#333;border-radius:0 0 8px 8px}._card_title_19djz_35{color:#fff;margin:0;font-size:15px;font-weight:600}._card_description_19djz_42{color:#8c8c8c;font-size:13px;font-weight:400;max-height:4.5em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-underline-position:from-font;text-decoration-skip-ink:none}._message_wrapper_1cjr0_1{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:75%}._text_bubble_1cjr0_9{display:inline-block;padding:8px 12px;border-radius:8px;white-space:pre-wrap;word-break:break-word}._text_bubble--user_1cjr0_16{background:#4767eb;color:#fff;border-top-right-radius:0}._images_container_1cjr0_22{display:flex;flex-direction:column;gap:8px;width:100%}._image_wrapper_1cjr0_29{position:relative;width:300px;aspect-ratio:3/2;border-radius:8px;overflow:hidden;background:#0000000d;box-shadow:0 1px 2px #0000001a;align-self:flex-end}._uploaded_image_1cjr0_40{width:100%;height:100%;object-fit:cover;display:block;cursor:pointer;transition:opacity .2s ease}._uploaded_image_1cjr0_40:hover{opacity:.95}._documents_container_1cjr0_52{display:flex;flex-direction:column;gap:8px;width:100%;align-items:flex-end}._document_card_1cjr0_60{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:8px;max-width:300px}._document_icon_1cjr0_69{flex-shrink:0}._document_name_1cjr0_73{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._image_modal_1cjr0_80{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000e6;display:flex;align-items:center;justify-content:center;z-index:10000;cursor:pointer;padding:20px}._image_modal_1cjr0_80 ._modal_image_1cjr0_94{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px;box-shadow:0 4px 20px #00000080}._tool_call_group_1rad3_1{width:100%;display:flex;flex-direction:column;gap:8px}._tool_call_group__header_1rad3_8{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}._tool_call_group__chevron_1rad3_16{width:16px;height:16px;color:var(--asgard-tool-call-icon, #8c8c8c);transition:transform .2s ease;flex-shrink:0}._tool_call_group__chevron--expanded_1rad3_24{transform:rotate(90deg)}._tool_call_group__title_1rad3_28{font-size:14px;font-weight:500;color:var(--asgard-tool-call-text, #fff)}._tool_call_group__content_1rad3_34{display:flex;flex-direction:column;gap:8px}._tool_call_item_1rad3_40{display:flex;flex-direction:column;background-color:var(--asgard-tool-call-item-bg, #1a1a1a);border-radius:8px;overflow:hidden}._tool_call_item__header_1rad3_48{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s ease}._tool_call_item__header_1rad3_48:hover{background-color:var(--asgard-tool-call-hover, rgba(255, 255, 255, .05))}._tool_call_item__left_1rad3_61{display:flex;align-items:center;gap:8px}._tool_call_item__chevron_1rad3_67{width:14px;height:14px;color:var(--asgard-tool-call-icon, #8c8c8c);transition:transform .2s ease;flex-shrink:0}._tool_call_item__chevron--expanded_1rad3_75{transform:rotate(90deg)}._tool_call_item__label_1rad3_79{font-size:14px;color:var(--asgard-tool-call-text, #fff)}._tool_call_item__status_1rad3_84{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}._tool_call_item__status_icon_1rad3_93{width:20px;height:20px}._tool_call_item__status_icon--completed_1rad3_98{color:#52c41a}._tool_call_item__status_icon--error_1rad3_102{color:#ff4d4f}._tool_call_item__status_icon--pending_1rad3_106{color:#faad14;animation:_pulse_1rad3_1 1.5s ease-in-out infinite}@keyframes _pulse_1rad3_1{0%,to{opacity:1}50%{opacity:.5}}._tool_call_item__content_1rad3_119{padding:0 16px 12px 38px;display:flex;flex-direction:column;gap:8px}._json_viewer_1rad3_126{display:flex;flex-direction:column;border-radius:6px;overflow:hidden;background-color:var(--asgard-json-viewer-bg, #141414);border:1px solid var(--asgard-tool-call-border, #333)}._json_viewer__header_1rad3_135{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background-color:var(--asgard-json-viewer-header-bg, #1f1f1f);border-bottom:1px solid var(--asgard-tool-call-border, #333)}._json_viewer__title_1rad3_144{font-size:12px;font-weight:500;color:var(--asgard-tool-call-text-secondary, #8c8c8c)}._json_viewer__actions_1rad3_150{display:flex;align-items:center;gap:4px}._json_viewer__action_btn_1rad3_156{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--asgard-tool-call-icon, #8c8c8c);cursor:pointer;border-radius:4px;transition:all .2s ease}._json_viewer__action_btn_1rad3_156:hover{background-color:var(--asgard-tool-call-hover, rgba(255, 255, 255, .1));color:var(--asgard-tool-call-text, #fff)}._json_viewer__action_btn_1rad3_156 svg{width:14px;height:14px}._json_viewer__content_1rad3_178{padding:8px 10px;max-height:200px;overflow:auto}._json_viewer__code_1rad3_184{font-family:SF Mono,Monaco,Courier New,monospace;font-size:11px;line-height:1.5;color:var(--asgard-json-viewer-text, #d4d4d4);white-space:pre-wrap;word-break:break-all;margin:0}._json_token--key_1rad3_194{color:#9cdcfe}._json_token--string_1rad3_198{color:#ce9178}._json_token--number_1rad3_202{color:#b5cea8}._json_token--boolean_1rad3_206,._json_token--null_1rad3_210{color:#569cd6}._json_token--punctuation_1rad3_214{color:#d4d4d4}._json_modal__backdrop_1rad3_218{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}._json_modal_1rad3_218{display:flex;flex-direction:column;width:100%;max-width:800px;max-height:80vh;background-color:var(--asgard-json-viewer-bg, #141414);border:1px solid var(--asgard-tool-call-border, #333);border-radius:8px;overflow:hidden;box-shadow:0 8px 32px #00000080}._json_modal__header_1rad3_245{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:var(--asgard-json-viewer-header-bg, #1f1f1f);border-bottom:1px solid var(--asgard-tool-call-border, #333)}._json_modal__title_1rad3_254{font-size:14px;font-weight:500;color:var(--asgard-tool-call-text, #fff)}._json_modal__actions_1rad3_260{display:flex;align-items:center;gap:8px}._json_modal__action_btn_1rad3_266{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;color:var(--asgard-tool-call-icon, #8c8c8c);cursor:pointer;border-radius:4px;transition:all .2s ease}._json_modal__action_btn_1rad3_266:hover{background-color:var(--asgard-tool-call-hover, rgba(255, 255, 255, .1));color:var(--asgard-tool-call-text, #fff)}._json_modal__action_btn_1rad3_266 svg{width:16px;height:16px}._json_modal__content_1rad3_288{flex:1;padding:16px;overflow:auto}._json_modal__content_1rad3_288 ._json_viewer__code_1rad3_184{font-size:13px;line-height:1.6}._container_u8l6w_1{display:flex;flex-direction:column;gap:8px;width:100%;position:relative;background:#585858;color:#fff;border-radius:8px}._header_u8l6w_12{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:8px 8px 0 0}._title_u8l6w_20{font-size:14px;font-weight:600}._download_button_u8l6w_25{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:6px;background:#ffffff1a;color:inherit;cursor:pointer;transition:background-color .2s}._download_button_u8l6w_25:hover{background:#fff3}._download_button_u8l6w_25:active{background:#ffffff4d}._table_wrapper_u8l6w_45{overflow-x:auto;border-radius:8px}._table_u8l6w_45{width:100%;border-collapse:collapse;font-size:13px}._table_header_u8l6w_56{background:#0003}._table_header_cell_u8l6w_60{padding:10px 12px;text-align:left;font-weight:600;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.1)}._table_row_u8l6w_68:hover{background:#ffffff0d}._table_row_u8l6w_68:not(:last-child){border-bottom:1px solid rgba(255,255,255,.1)}._table_cell_u8l6w_75{padding:10px 12px;white-space:nowrap}._pagination_u8l6w_80{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px}._pagination_button_u8l6w_88{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:transparent;color:inherit;cursor:pointer;font-size:14px}._pagination_button_u8l6w_88:hover:not(:disabled){background:#ffffff1a}._pagination_button_u8l6w_88:disabled{opacity:.4;cursor:not-allowed}._pagination_info_u8l6w_109{font-size:13px;padding:0 12px}._empty_state_u8l6w_114{padding:24px;text-align:center;font-size:13px;opacity:.7}._time_u8l6w_121{justify-content:flex-end}._snackbar_u8l6w_125{position:absolute;bottom:-48px;left:0;right:0;display:flex;align-items:center;gap:12px;padding:12px 16px;background:#282828f2;border-radius:8px;box-shadow:0 4px 12px #0000004d;animation:_slideUp_u8l6w_1 .2s ease-out}@keyframes _slideUp_u8l6w_1{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}._snackbar_text_u8l6w_150{flex:1;font-size:13px;color:#fff}._snackbar_action_u8l6w_156{padding:4px 12px;border:none;border-radius:4px;background:transparent;color:#4fc3f7;font-size:13px;font-weight:500;cursor:pointer}._snackbar_action_u8l6w_156:hover{background:#4fc3f71a}._snackbar_close_u8l6w_170{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;border-radius:4px;background:transparent;color:#fff9;font-size:18px;cursor:pointer}._snackbar_close_u8l6w_170:hover{background:#ffffff1a;color:#fff}._chatbot_footer_13y44_1{border-top:1px solid #434343}._chatbot_footer_13y44_1 ._chatbot_footer__content_13y44_4{display:grid;align-items:center;grid-template-columns:auto 1fr auto;margin:0 auto;max-width:1200px;padding:var(--asg-spacing-3) var(--asg-spacing-4);gap:var(--asg-spacing-2)}@keyframes _prevent_ios_focus_scroll_13y44_1{0%{opacity:0}to{opacity:1}}._chatbot_textarea_13y44_22{font:inherit;font-size:16px;height:40px!important;max-height:240px;padding:8px 8px 8px 12px;background:var(--asg-color-bg);border:1px solid rgb(67,67,67);border-radius:2px;color:#8c8c8c;resize:none;overflow:hidden}._chatbot_textarea_13y44_22::placeholder{color:var(--asg-color-text-placeholder)}._chatbot_textarea_13y44_22._chatbot_textarea--focused_13y44_39{animation:_prevent_ios_focus_scroll_13y44_1 .01s}._chatbot_submit_button_13y44_43{font:inherit;width:24px;height:100%;max-height:38px;display:flex;justify-content:center;align-items:center;font-size:16px;border:none;background:transparent;border-radius:50%;color:#fff;cursor:pointer}._chatbot_submit_button_13y44_43>svg{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;width:auto;min-width:16px;height:60%;max-height:38px;min-height:16px}._chatbot_submit_button_13y44_43._chatbot_submit_button__disabled_13y44_68{opacity:.6}._attachment_buttons_13y44_72{display:flex;gap:var(--asg-spacing-2);align-items:center}._attachment_menu_container_13y44_78{position:relative}._attachment_menu_13y44_78{position:absolute;bottom:100%;left:0;margin-bottom:8px;min-width:160px;border-radius:8px;border:1px solid var(--asg-color-border, #3d3d3d);background:var(--asg-color-bg, #1a1a1a);box-shadow:0 4px 12px #0000004d;overflow:hidden;z-index:100}._attachment_menu_item_13y44_96{display:flex;align-items:center;gap:var(--asg-spacing-2, 8px);width:100%;padding:10px 14px;border:none;background:transparent;color:var(--asg-color-text, #e0e0e0);font:inherit;font-size:14px;cursor:pointer;transition:background-color .15s ease;text-align:left}._attachment_menu_item_13y44_96:hover{background:#ffffff1a}._attachment_menu_item_13y44_96>svg{width:18px;height:18px;flex-shrink:0}._attachment_menu_item_13y44_96>span{white-space:nowrap}._attachment_button_13y44_72{font:inherit;width:32px;height:32px;display:flex;justify-content:center;align-items:center;border:none;background:transparent;border-radius:6px;color:#fff;cursor:pointer;transition:all .2s ease;position:relative}._attachment_button_13y44_72:disabled{opacity:.6;cursor:not-allowed}._attachment_button_13y44_72>svg{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;width:18px;height:18px}._file_input_hidden_13y44_150{display:none}._file_preview_container_13y44_154{width:100%;max-width:1200px;margin:0 auto;padding:var(--asg-spacing-3, 12px);padding-bottom:0}._file_preview_grid_13y44_162{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--asg-spacing-2, 8px)}@media (max-width: 768px){._file_preview_grid_13y44_162{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}._file_preview_item_13y44_173{position:relative;background:var(--asg-color-bg-secondary, #2d2d2d);border:1px solid var(--asg-color-border, #3d3d3d);border-radius:var(--asg-radius-md, 8px);overflow:hidden;aspect-ratio:3/2;max-width:250px}._file_preview_image_area_13y44_183{width:100%;height:100%;background:var(--asg-color-bg-dark, #1a1a1a);display:flex;align-items:center;justify-content:center;position:relative}._file_preview_image_13y44_183{max-width:100%;max-height:100%;object-fit:contain;cursor:pointer;transition:opacity .2s ease}._file_preview_image_13y44_183:hover{opacity:.8}._file_remove_button_13y44_204{position:absolute;top:var(--asg-spacing-1, 6px);right:var(--asg-spacing-1, 6px);width:20px;height:20px;border-radius:4px;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;border:1px solid rgba(255,255,255,.1);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;padding:0}._file_upload_overlay_13y44_223{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center}@keyframes _spin_13y44_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._file_upload_spinner_13y44_240{width:24px;height:24px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:_spin_13y44_1 .8s linear infinite}._file_preview_item__error_13y44_249{border-color:#ef4444}._file_error_overlay_13y44_253{position:absolute;top:0;right:0;bottom:0;left:0;background:#ef444433;display:flex;align-items:center;justify-content:center}._file_error_icon_13y44_262{width:24px;height:24px;color:#ef4444}._image_modal_13y44_268{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}._image_modal_content_13y44_280{display:flex;flex-direction:column;align-items:center;gap:var(--asg-spacing-4, 16px)}._image_modal_image_13y44_287{max-width:90vw;max-height:75vh;object-fit:contain;border-radius:var(--asg-radius-lg, 12px);box-shadow:0 20px 60px #0009;-webkit-user-select:none;user-select:none}._image_modal_close_button_13y44_296{position:absolute;top:var(--asg-spacing-5, 20px);right:var(--asg-spacing-5, 20px);width:36px;height:36px;border-radius:50%;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;border:1px solid rgba(255,255,255,.2);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;padding:0;transition:all .2s ease}._image_modal_close_button_13y44_296:hover{background:#fff3;transform:scale(1.1)}._image_modal_close_button_13y44_296:active{transform:scale(.95)}._document_preview_grid_13y44_323{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--asg-spacing-2, 8px)}@media (max-width: 768px){._document_preview_grid_13y44_323{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}._document_preview_item_13y44_334{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--asg-spacing-2, 8px);padding:var(--asg-spacing-3, 12px);background:var(--asg-color-bg-secondary, #2d2d2d);border:1px solid var(--asg-color-border, #3d3d3d);border-radius:var(--asg-radius-md, 8px);aspect-ratio:3/2;max-width:250px}._document_preview_icon_wrapper_13y44_349{display:flex;align-items:center;justify-content:center;flex:1}._document_preview_icon_13y44_349{width:48px;height:48px;color:var(--asg-color-text-secondary, #a0a0a0)}._document_preview_name_13y44_362{font-size:12px;color:var(--asg-color-text, #e0e0e0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-align:center}._chatbot_root_84qyk_2{--asg-color-blue-1: #edf0fd;--asg-color-blue-2: #d3dbfa;--asg-color-blue-3: #b0bef6;--asg-color-blue-4: #6882ef;--asg-color-blue-5: #8b9ff2;--asg-color-blue-6: #4767eb;--asg-color-blue-7: #3c58c8;--asg-color-blue-8: #3249a7;--asg-color-blue-9: #283b86;--asg-color-blue-10: #202e6a;--asg-color-orange-1: #ffeded;--asg-color-orange-2: #ffd4d5;--asg-color-orange-3: #ffb2b3;--asg-color-orange-4: #ff8f90;--asg-color-orange-5: #ff6d6f;--asg-color-orange-6: #ff4d4f;--asg-color-orange-7: #d94143;--asg-color-orange-8: #b53738;--asg-color-orange-9: #912c2d;--asg-color-orange-10: #732324;--asg-color-green-1: #eef9e8;--asg-color-green-2: #d5f1c8;--asg-color-green-3: #b5e69d;--asg-color-green-4: #92da6f;--asg-color-green-5: #71cf43;--asg-color-green-6: #52c41a;--asg-color-green-7: #46a716;--asg-color-green-8: #3a8b12;--asg-color-green-9: #2f700f;--asg-color-green-10: #25580c;--asg-color-yellow-1: #fef7eb;--asg-color-yellow-2: #fdebcf;--asg-color-yellow-3: #fcdba9;--asg-color-yellow-4: #facb82;--asg-color-yellow-5: #f8bb5c;--asg-color-yellow-6: #f7ac38;--asg-color-yellow-7: #d29230;--asg-color-yellow-8: #af7a28;--asg-color-yellow-9: #8d6220;--asg-color-yellow-10: #6f4d19;--asg-color-grey-1: #f3f3f3;--asg-color-grey-2: #e2e2e2;--asg-color-grey-3: #cbcbcb;--asg-color-grey-4: #b2b2b2;--asg-color-grey-5: #9b9b9b;--asg-color-grey-6: #585858;--asg-color-grey-7: #717171;--asg-color-grey-8: #5e5e5e;--asg-color-grey-9: #4c4c4c;--asg-color-grey-10: #3c3c3c;--asg-color-primary: #4767eb;--asg-color-primary-light: #8b9ff2;--asg-color-primary-dark: #3249a7;--asg-color-primary-on-primary: #ffffff;--asg-color-primary-hover-bg: rgba(139, 159, 242, .15);--asg-color-primary-selected-bg: rgba(71, 103, 235, .2);--asg-color-secondary: #585858;--asg-color-secondary-light: #b2b2b2;--asg-color-secondary-dark: #4c4c4c;--asg-color-secondary-on-secondary: #ffffff;--asg-color-secondary-hover-bg: rgba(178, 178, 178, .15);--asg-color-secondary-selected-bg: rgba(88, 88, 88, .2);--asg-color-error: #ff4d4f;--asg-color-error-light: #ff6d6f;--asg-color-error-dark: #d94143;--asg-color-error-on-error: #ffffff;--asg-color-error-hover-bg: rgba(255, 109, 111, .15);--asg-color-error-selected-bg: rgba(255, 77, 79, .2);--asg-color-warning: #f7ac38;--asg-color-warning-light: #f8bb5c;--asg-color-warning-dark: #af7a28;--asg-color-warning-on-warning: #ffffff;--asg-color-warning-hover-bg: rgba(248, 187, 92, .15);--asg-color-warning-selected-bg: rgba(247, 172, 56, .2);--asg-color-success: #52c41a;--asg-color-success-light: #71cf43;--asg-color-success-dark: #3a8b12;--asg-color-success-on-success: #ffffff;--asg-color-success-hover-bg: rgba(113, 207, 67, .15);--asg-color-success-selected-bg: rgba(82, 196, 26, .2);--asg-color-action-active: #ffffff;--asg-color-action-inactive: #8c8c8c;--asg-color-action-disabled: #595959;--asg-color-action-disabled-bg: #393939;--asg-color-text-primary: #ffffff;--asg-color-text-secondary: #8c8c8c;--asg-color-text-disabled: #595959;--asg-color-text-placeholder: #8c8c8c;--asg-color-bg: #141414;--asg-color-surface: #1f1f1f;--asg-color-divider: #333333;--asg-color-border: #434343;--asg-color-overlay-dark: rgba(0, 0, 0, .5);--asg-color-overlay-light: rgba(31, 31, 31, .9);--asg-radius-none: 0px;--asg-radius-xxs: 2px;--asg-radius-xs: 4px;--asg-radius-s: 6px;--asg-radius-md: 8px;--asg-radius-lg: 10px;--asg-radius-xl: 12px;--asg-radius-2xl: 16px;--asg-radius-3xl: 20px;--asg-radius-4xl: 24px;--asg-spacing-1: 4px;--asg-spacing-2: 8px;--asg-spacing-3: 12px;--asg-spacing-4: 16px;--asg-spacing-5: 24px;--asg-spacing-6: 32px;--asg-spacing-7: 40px;--asg-spacing-8: 48px;--asg-spacing-9: 64px;--asg-spacing-10: 96px;--asg-spacing-11: 160px;font-family:Space Grotesk,Noto Sans TC,sans-serif}._chatbot_root_84qyk_2 *{line-height:1.5;box-sizing:border-box}._full_screen_84qyk_125{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--asg-color-bg)}._full_screen_84qyk_125 ._chatbot_container_84qyk_130{height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}._chatbot_container_84qyk_130{display:grid;grid-template-rows:max-content auto max-content;background-color:var(--asg-color-bg);overflow:hidden;overscroll-behavior:contain}._container_q4xjh_1{display:flex;flex-direction:column;align-items:flex-start;width:220px;padding:24px 40px;gap:24px;background-color:var(--asg-color-surface, #1f1f1f);border:.5px solid var(--asg-color-border, #434343);border-radius:10.67px}._avatar_q4xjh_13{width:48px;height:48px;display:flex;align-items:center;justify-content:center}._avatar_q4xjh_13 svg,._avatar_q4xjh_13 img{width:100%;height:100%}._message_q4xjh_26{color:var(--asg-color-text-secondary, rgba(255, 255, 255, .6));font-size:14px;line-height:1.5;text-align:left}._chatbot__auth_state_container_1hs4h_1{display:flex;align-items:center;justify-content:center;flex:1;padding:20px}._chatbot__error_state_1hs4h_9{color:#ff6b6b}._chatbot__error_state__content_1hs4h_13{text-align:center}._chatbot__error_state__icon_1hs4h_17{font-size:16px;margin-bottom:8px}
|
package/dist/index.js
CHANGED
|
@@ -443,7 +443,7 @@ function SS(e) {
|
|
|
443
443
|
data: { annotations: r }
|
|
444
444
|
} = Rv(), i = _e(
|
|
445
445
|
function() {
|
|
446
|
-
var c, f, d, h, p, g, m, y, b, _, v, x, E, w, C, S, A, M, R, F, T, $, N, O, z, L, J, ae, se, be, Ue, pe,
|
|
446
|
+
var c, f, d, h, p, g, m, y, b, _, v, x, E, w, C, S, A, M, R, F, T, $, N, O, z, L, J, ae, se, be, Ue, pe, vt, Jn, Qn, ne, he, we, q, pt, De, ct, gt, _n, Wo, uc, cc, fc, dc, hc, pc, gc, mc, yc, bc, _c, vc, xc, wc, Ec, kc, Cc, Sc, $c, Ac, Mc, Tc, Nc, Fc, Rc, Oc, H, ge, Le, Ke, Te, Ne, Mt, Gs, Vs, bl, Dc, mh, yh, uC, cC, fC, dC, hC, pC, gC, mC, yC, bC, _C, vC, xC, wC, EC, kC, CC, SC, $C, AC, MC, TC, NC, FC, RC, OC, DC, LC, IC, PC, zC, BC, UC, jC, qC, WC, HC, GC, VC, YC, XC, KC, ZC, JC, QC, eS, tS, nS, rS, iS, oS, sS, aS, lS, uS, cS, fS, dS, hS, pS, gS, mS, yS, bS, _S;
|
|
447
447
|
const a = ((c = r == null ? void 0 : r.embedConfig) == null ? void 0 : c.theme) ?? {
|
|
448
448
|
chatbot: {},
|
|
449
449
|
botMessage: {},
|
|
@@ -523,7 +523,7 @@ function SS(e) {
|
|
|
523
523
|
quickReplies: {
|
|
524
524
|
button: {
|
|
525
525
|
style: {
|
|
526
|
-
color: (
|
|
526
|
+
color: (vt = (pe = a.chatbot) == null ? void 0 : pe.primaryComponent) == null ? void 0 : vt.secondaryColor,
|
|
527
527
|
// Button text (#FFFFFF)
|
|
528
528
|
borderColor: (Jn = a.chatbot) == null ? void 0 : Jn.borderColor,
|
|
529
529
|
backgroundColor: (Qn = a.botMessage) != null && Qn.backgroundColor ? `${a.botMessage.backgroundColor}33` : void 0
|
|
@@ -636,7 +636,7 @@ function SS(e) {
|
|
|
636
636
|
), o = Ee(() => i(), [i]);
|
|
637
637
|
return /* @__PURE__ */ k(R5.Provider, { value: o, children: t });
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function kt() {
|
|
640
640
|
return ym(R5);
|
|
641
641
|
}
|
|
642
642
|
function C1() {
|
|
@@ -834,7 +834,7 @@ function AS({
|
|
|
834
834
|
className: s
|
|
835
835
|
}) {
|
|
836
836
|
var m, y;
|
|
837
|
-
const [a, l] = Fe(""), [u, c] = Fe(!1), { chatbot: f } =
|
|
837
|
+
const [a, l] = Fe(""), [u, c] = Fe(!1), { chatbot: f } = kt(), { avatar: d } = Dt(), h = (b) => {
|
|
838
838
|
b.preventDefault(), a.trim() && !t && e(a.trim());
|
|
839
839
|
}, p = (b) => {
|
|
840
840
|
l(b.target.value);
|
|
@@ -913,7 +913,7 @@ const CP = "_chatbot_header_luxt4_1", SP = "_chatbot_header__content_luxt4_4", $
|
|
|
913
913
|
}, MP = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.49453 2.3352C6.44049 -0.226723 10.9105 -0.106316 13.7142 2.69633C16.6428 5.62613 16.6428 10.3739 13.7144 13.3035C10.7846 16.2322 6.03581 16.2322 3.1073 13.3036C2.30873 12.505 1.71132 11.5536 1.34188 10.5109L1.78892 10.3525L1.34171 10.5106L1.22791 10.162C1.01752 9.46018 0.910643 8.73159 0.910643 7.9997H2.4542L2.46382 8.33865C2.49584 8.9024 2.60763 9.46037 2.79674 9.99539L2.7968 9.99536L2.90116 10.2683C3.19714 10.9887 3.63414 11.6475 4.19876 12.2121C6.52451 14.5379 10.2961 14.5379 12.6229 12.212C14.9486 9.88539 14.9486 6.11464 12.6227 3.78781C10.3306 1.49653 6.63579 1.46263 4.30292 3.68622L6.68087 3.68698V5.22954H3.49394H1.95141V3.68698V0.5H3.49394L3.49453 2.3352Z", fill: "currentColor" })), I5 = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 14, viewBox: "0 0 15 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3496 0L7.41062 5.938L1.47162 0L0.411621 1.06L6.34962 6.999L0.411621 12.938L1.47162 13.999L7.41062 8.059L13.3496 13.999L14.4096 12.938L8.47162 6.999L14.4096 1.06L13.3496 0Z", fill: "currentColor" }));
|
|
914
914
|
function MS(e) {
|
|
915
915
|
var m, y, b, _, v;
|
|
916
|
-
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } =
|
|
916
|
+
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } = kt(), {
|
|
917
917
|
data: { annotations: a }
|
|
918
918
|
} = Rv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Dt(), d = Ee(
|
|
919
919
|
() => ({
|
|
@@ -988,7 +988,7 @@ const OP = "_template_box_content_fs2wk_1", DP = "_content_fs2wk_8", TS = {
|
|
|
988
988
|
};
|
|
989
989
|
function PP(e) {
|
|
990
990
|
var a;
|
|
991
|
-
const { quickReplies: t } = e, { template: n, botMessage: r } =
|
|
991
|
+
const { quickReplies: t } = e, { template: n, botMessage: r } = kt(), { sendMessage: i, isConnecting: o } = Dt(), s = _e((l) => i == null ? void 0 : i({ text: l }), [i]);
|
|
992
992
|
return t != null && t.length ? /* @__PURE__ */ k("div", { className: Re("asgard-quick-replies", NS.quick_replies_box), style: (a = n == null ? void 0 : n.quickReplies) == null ? void 0 : a.style, children: t.map((l) => {
|
|
993
993
|
var u, c, f, d, h;
|
|
994
994
|
return /* @__PURE__ */ k(
|
|
@@ -1057,7 +1057,7 @@ const ZP = "_time_h4puu_1", JP = {
|
|
|
1057
1057
|
};
|
|
1058
1058
|
function Qa(e) {
|
|
1059
1059
|
var o, s;
|
|
1060
|
-
const { time: t, className: n } = e, { template: r } =
|
|
1060
|
+
const { time: t, className: n } = e, { template: r } = kt(), i = Ee(
|
|
1061
1061
|
() => {
|
|
1062
1062
|
var a, l;
|
|
1063
1063
|
return {
|
|
@@ -1069,7 +1069,7 @@ function Qa(e) {
|
|
|
1069
1069
|
return t ? /* @__PURE__ */ k("div", { className: Re("asgard-time", JP.time, n), style: i, children: bb(t) }) : null;
|
|
1070
1070
|
}
|
|
1071
1071
|
function QP(e) {
|
|
1072
|
-
const { references: t, time: n } = e, { template: r, botMessage: i, chatbot: o } =
|
|
1072
|
+
const { references: t, time: n } = e, { template: r, botMessage: i, chatbot: o } = kt(), { defaultLinkTarget: s } = bm(), a = _e(
|
|
1073
1073
|
(f) => {
|
|
1074
1074
|
Dv(f, s || "_blank");
|
|
1075
1075
|
},
|
|
@@ -1217,7 +1217,7 @@ function P5(e) {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
function cz(e) {
|
|
1219
1219
|
var o, s, a, l, u, c, f;
|
|
1220
|
-
const { message: t } = e, { template: n } =
|
|
1220
|
+
const { message: t } = e, { template: n } = kt(), { avatar: r } = Dt(), i = t.message.template;
|
|
1221
1221
|
return /* @__PURE__ */ X(fr, { className: "asgard-button-template", type: "bot", direction: "horizontal", children: [
|
|
1222
1222
|
/* @__PURE__ */ k(ai, { avatar: r }),
|
|
1223
1223
|
/* @__PURE__ */ k(
|
|
@@ -1274,7 +1274,7 @@ function z5({ children: e }) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function OS(e) {
|
|
1276
1276
|
var c, f, d, h, p;
|
|
1277
|
-
const { message: t } = e, { avatar: n } = Dt(), r =
|
|
1277
|
+
const { message: t } = e, { avatar: n } = Dt(), r = kt(), { botMessage: i } = r, o = ((c = t == null ? void 0 : t.message) == null ? void 0 : c.text) || "", s = t.type === "bot", a = (d = (f = r == null ? void 0 : r.template) == null ? void 0 : f.TextMessageTemplate) == null ? void 0 : d.style, l = Ee(() => {
|
|
1278
1278
|
var g, m, y, b, _, v, x, E, w;
|
|
1279
1279
|
switch (t.type) {
|
|
1280
1280
|
case "user":
|
|
@@ -1334,7 +1334,7 @@ function OS(e) {
|
|
|
1334
1334
|
);
|
|
1335
1335
|
}
|
|
1336
1336
|
function B5(e) {
|
|
1337
|
-
const { isTyping: t, typingText: n } = e, { avatar: r } = Dt(), i =
|
|
1337
|
+
const { isTyping: t, typingText: n } = e, { avatar: r } = Dt(), i = kt(), o = oP(t, 500), s = Ee(
|
|
1338
1338
|
() => {
|
|
1339
1339
|
var l, u;
|
|
1340
1340
|
return {
|
|
@@ -1377,7 +1377,7 @@ const pz = "_carousel_root_v06v3_1", gz = "_carousel_time_v06v3_13", DS = {
|
|
|
1377
1377
|
};
|
|
1378
1378
|
function mz(e) {
|
|
1379
1379
|
var o, s;
|
|
1380
|
-
const { message: t } = e, { template: n } =
|
|
1380
|
+
const { message: t } = e, { template: n } = kt(), { avatar: r } = Dt(), i = t.message.template;
|
|
1381
1381
|
return /* @__PURE__ */ X(
|
|
1382
1382
|
fr,
|
|
1383
1383
|
{
|
|
@@ -1424,7 +1424,7 @@ const yz = "_hint_root_1hmle_1", bz = "_error_hint_title_1hmle_17", _z = "_error
|
|
|
1424
1424
|
};
|
|
1425
1425
|
function LS(e) {
|
|
1426
1426
|
var a, l, u;
|
|
1427
|
-
const { message: t } = e, { template: n } =
|
|
1427
|
+
const { message: t } = e, { template: n } = kt(), { onErrorClick: r, errorMessageRenderer: i } = bm(), o = _e(() => {
|
|
1428
1428
|
r == null || r(t);
|
|
1429
1429
|
}, [t, r]);
|
|
1430
1430
|
if (t.type === "user") return null;
|
|
@@ -3108,7 +3108,7 @@ function XT(e) {
|
|
|
3108
3108
|
a: be,
|
|
3109
3109
|
A: Ue,
|
|
3110
3110
|
b: pe,
|
|
3111
|
-
B:
|
|
3111
|
+
B: vt,
|
|
3112
3112
|
c: null,
|
|
3113
3113
|
d: n$,
|
|
3114
3114
|
e: n$,
|
|
@@ -3259,7 +3259,7 @@ function XT(e) {
|
|
|
3259
3259
|
function pe(ne) {
|
|
3260
3260
|
return l[ne.getUTCMonth()];
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function vt(ne) {
|
|
3263
3263
|
return a[ne.getUTCMonth()];
|
|
3264
3264
|
}
|
|
3265
3265
|
function Jn(ne) {
|
|
@@ -7757,7 +7757,7 @@ function Zq() {
|
|
|
7757
7757
|
var ae = h * Xs(_), se = h * yi(_), be = d * Xs(v), Ue = d * yi(v), pe;
|
|
7758
7758
|
if (m < au)
|
|
7759
7759
|
if (pe = Kq(O, z, be, Ue, ae, se, L, J)) {
|
|
7760
|
-
var
|
|
7760
|
+
var vt = O - pe[0], Jn = z - pe[1], Qn = ae - pe[0], ne = se - pe[1], he = 1 / yi(jq((vt * Qn + Jn * ne) / (ga(vt * vt + Jn * Jn) * ga(Qn * Qn + ne * ne))) / 2), we = ga(pe[0] * pe[0] + pe[1] * pe[1]);
|
|
7761
7761
|
M = B1(A, (d - we) / (he - 1)), R = B1(A, (h - we) / (he + 1));
|
|
7762
7762
|
} else
|
|
7763
7763
|
M = R = 0;
|
|
@@ -14043,7 +14043,7 @@ const XX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14043
14043
|
sortitems: f8,
|
|
14044
14044
|
stack: dw
|
|
14045
14045
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14046
|
-
var fe = 1e-6, pg = 1e-12, Ae = Math.PI, bt = Ae / 2, gg = Ae / 4, Fn = Ae * 2,
|
|
14046
|
+
var fe = 1e-6, pg = 1e-12, Ae = Math.PI, bt = Ae / 2, gg = Ae / 4, Fn = Ae * 2, xt = 180 / Ae, $e = Ae / 180, Ie = Math.abs, Ku = Math.atan, Nr = Math.atan2, de = Math.cos, Rh = Math.ceil, g8 = Math.exp, o_ = Math.hypot, mg = Math.log, ty = Math.pow, ce = Math.sin, wr = Math.sign || function(e) {
|
|
14047
14047
|
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
14048
14048
|
}, Rn = Math.sqrt, hw = Math.tan;
|
|
14049
14049
|
function m8(e) {
|
|
@@ -14180,8 +14180,8 @@ function w8(e, t) {
|
|
|
14180
14180
|
if (Vl) {
|
|
14181
14181
|
var r = mu(Vl, n), i = [r[1], -r[0], 0], o = mu(i, r);
|
|
14182
14182
|
xg(o), o = vg(o);
|
|
14183
|
-
var s = e - la, a = s > 0 ? 1 : -1, l = o[0] *
|
|
14184
|
-
c ^ (a * la < l && l < a * e) ? (u = o[1] *
|
|
14183
|
+
var s = e - la, a = s > 0 ? 1 : -1, l = o[0] * xt * a, u, c = Ie(s) > 180;
|
|
14184
|
+
c ^ (a * la < l && l < a * e) ? (u = o[1] * xt, u > nr && (nr = u)) : (l = (l + 360) % 360 - 180, c ^ (a * la < l && l < a * e) ? (u = -o[1] * xt, u < Bn && (Bn = u)) : (t < Bn && (Bn = t), t > nr && (nr = t))), c ? e < la ? tr(ft, e) > tr(ft, mt) && (mt = e) : tr(e, mt) > tr(ft, mt) && (ft = e) : mt >= ft ? (e < ft && (ft = e), e > mt && (mt = e)) : e > la ? tr(ft, e) > tr(ft, mt) && (mt = e) : tr(e, mt) > tr(ft, mt) && (ft = e);
|
|
14185
14185
|
} else
|
|
14186
14186
|
Zo.push(No = [ft = e, mt = e]);
|
|
14187
14187
|
t < Bn && (Bn = t), t > nr && (nr = t), Vl = n, la = e;
|
|
@@ -14280,7 +14280,7 @@ function S8(e, t) {
|
|
|
14280
14280
|
function uK(e) {
|
|
14281
14281
|
_f = wg = Eg = kg = Cg = Sg = $g = Ag = 0, f_ = new Tn(), d_ = new Tn(), h_ = new Tn(), ho(e, Yr);
|
|
14282
14282
|
var t = +f_, n = +d_, r = +h_, i = o_(t, n, r);
|
|
14283
|
-
return i < pg && (t = Sg, n = $g, r = Ag, wg < fe && (t = Eg, n = kg, r = Cg), i = o_(t, n, r), i < pg) ? [NaN, NaN] : [Nr(n, t) *
|
|
14283
|
+
return i < pg && (t = Sg, n = $g, r = Ag, wg < fe && (t = Eg, n = kg, r = Cg), i = o_(t, n, r), i < pg) ? [NaN, NaN] : [Nr(n, t) * xt, Gn(r / i) * xt];
|
|
14284
14284
|
}
|
|
14285
14285
|
function p_(e, t) {
|
|
14286
14286
|
function n(r, i) {
|
|
@@ -14326,10 +14326,10 @@ function UA(e, t) {
|
|
|
14326
14326
|
function cK(e) {
|
|
14327
14327
|
e = $8(e[0] * $e, e[1] * $e, e.length > 2 ? e[2] * $e : 0);
|
|
14328
14328
|
function t(n) {
|
|
14329
|
-
return n = e(n[0] * $e, n[1] * $e), n[0] *=
|
|
14329
|
+
return n = e(n[0] * $e, n[1] * $e), n[0] *= xt, n[1] *= xt, n;
|
|
14330
14330
|
}
|
|
14331
14331
|
return t.invert = function(n) {
|
|
14332
|
-
return n = e.invert(n[0] * $e, n[1] * $e), n[0] *=
|
|
14332
|
+
return n = e.invert(n[0] * $e, n[1] * $e), n[0] *= xt, n[1] *= xt, n;
|
|
14333
14333
|
}, t;
|
|
14334
14334
|
}
|
|
14335
14335
|
function fK(e, t, n, r, i, o) {
|
|
@@ -15161,7 +15161,7 @@ function W8(e) {
|
|
|
15161
15161
|
return C($[0] * $e, $[1] * $e);
|
|
15162
15162
|
}
|
|
15163
15163
|
function R($) {
|
|
15164
|
-
return $ = C.invert($[0], $[1]), $ && [$[0] *
|
|
15164
|
+
return $ = C.invert($[0], $[1]), $ && [$[0] * xt, $[1] * xt];
|
|
15165
15165
|
}
|
|
15166
15166
|
M.stream = function($) {
|
|
15167
15167
|
return S && A === $ ? S : S = DK(LK(c)(g(E(v(A = $)))));
|
|
@@ -15170,7 +15170,7 @@ function W8(e) {
|
|
|
15170
15170
|
}, M.postclip = function($) {
|
|
15171
15171
|
return arguments.length ? (v = $, m = y = b = _ = null, T()) : v;
|
|
15172
15172
|
}, M.clipAngle = function($) {
|
|
15173
|
-
return arguments.length ? (g = +$ ? bK(p = $ * $e) : (p = null, WA), T()) : p *
|
|
15173
|
+
return arguments.length ? (g = +$ ? bK(p = $ * $e) : (p = null, WA), T()) : p * xt;
|
|
15174
15174
|
}, M.clipExtent = function($) {
|
|
15175
15175
|
return arguments.length ? (v = $ == null ? (m = y = b = _ = null, id) : N8(m = +$[0][0], y = +$[0][1], b = +$[1][0], _ = +$[1][1]), T()) : m == null ? null : [[m, y], [b, _]];
|
|
15176
15176
|
}, M.scale = function($) {
|
|
@@ -15178,11 +15178,11 @@ function W8(e) {
|
|
|
15178
15178
|
}, M.translate = function($) {
|
|
15179
15179
|
return arguments.length ? (r = +$[0], i = +$[1], F()) : [r, i];
|
|
15180
15180
|
}, M.center = function($) {
|
|
15181
|
-
return arguments.length ? (o = $[0] % 360 * $e, s = $[1] % 360 * $e, F()) : [o *
|
|
15181
|
+
return arguments.length ? (o = $[0] % 360 * $e, s = $[1] % 360 * $e, F()) : [o * xt, s * xt];
|
|
15182
15182
|
}, M.rotate = function($) {
|
|
15183
|
-
return arguments.length ? (a = $[0] % 360 * $e, l = $[1] % 360 * $e, u = $.length > 2 ? $[2] % 360 * $e : 0, F()) : [a *
|
|
15183
|
+
return arguments.length ? (a = $[0] % 360 * $e, l = $[1] % 360 * $e, u = $.length > 2 ? $[2] % 360 * $e : 0, F()) : [a * xt, l * xt, u * xt];
|
|
15184
15184
|
}, M.angle = function($) {
|
|
15185
|
-
return arguments.length ? (f = $ % 360 * $e, F()) : f *
|
|
15185
|
+
return arguments.length ? (f = $ % 360 * $e, F()) : f * xt;
|
|
15186
15186
|
}, M.reflectX = function($) {
|
|
15187
15187
|
return arguments.length ? (d = $ ? -1 : 1, F()) : d < 0;
|
|
15188
15188
|
}, M.reflectY = function($) {
|
|
@@ -15212,7 +15212,7 @@ function W8(e) {
|
|
|
15212
15212
|
function _w(e) {
|
|
15213
15213
|
var t = 0, n = Ae / 3, r = W8(e), i = r(t, n);
|
|
15214
15214
|
return i.parallels = function(o) {
|
|
15215
|
-
return arguments.length ? r(t = o[0] * $e, n = o[1] * $e) : [t *
|
|
15215
|
+
return arguments.length ? r(t = o[0] * $e, n = o[1] * $e) : [t * xt, n * xt];
|
|
15216
15216
|
}, i;
|
|
15217
15217
|
}
|
|
15218
15218
|
function PK(e) {
|
|
@@ -15467,7 +15467,7 @@ function QK() {
|
|
|
15467
15467
|
}, _.translate = function(v) {
|
|
15468
15468
|
return arguments.length ? (t = +v[0], n = +v[1], b()) : [t, n];
|
|
15469
15469
|
}, _.angle = function(v) {
|
|
15470
|
-
return arguments.length ? (o = v % 360 * $e, a = ce(o), s = de(o), b()) : o *
|
|
15470
|
+
return arguments.length ? (o = v % 360 * $e, a = ce(o), s = de(o), b()) : o * xt;
|
|
15471
15471
|
}, _.reflectX = function(v) {
|
|
15472
15472
|
return arguments.length ? (r = v ? -1 : 1, b()) : r < 0;
|
|
15473
15473
|
}, _.reflectY = function(v) {
|
|
@@ -25479,7 +25479,7 @@ function ec(e) {
|
|
|
25479
25479
|
function Eu(e) {
|
|
25480
25480
|
return e ? Gi(e).length : 0;
|
|
25481
25481
|
}
|
|
25482
|
-
function
|
|
25482
|
+
function wt(...e) {
|
|
25483
25483
|
return e.find((t) => t !== void 0);
|
|
25484
25484
|
}
|
|
25485
25485
|
let t9 = 42;
|
|
@@ -25800,7 +25800,7 @@ const Cle = j(DE), {
|
|
|
25800
25800
|
x: 1,
|
|
25801
25801
|
y: 1
|
|
25802
25802
|
}, Uo = j(zE);
|
|
25803
|
-
function
|
|
25803
|
+
function Et(e) {
|
|
25804
25804
|
return re(zE, e);
|
|
25805
25805
|
}
|
|
25806
25806
|
const BE = {
|
|
@@ -26337,7 +26337,7 @@ function Ye(e, t, n, r = {}) {
|
|
|
26337
26337
|
}
|
|
26338
26338
|
function qi(e, t, n, { vgChannel: r } = {}) {
|
|
26339
26339
|
const i = rv(e, t, n.style);
|
|
26340
|
-
return
|
|
26340
|
+
return wt(
|
|
26341
26341
|
// style config has highest precedence
|
|
26342
26342
|
r ? i : void 0,
|
|
26343
26343
|
i,
|
|
@@ -27871,7 +27871,7 @@ function Zl(e, t, { allowDisabling: n, includeDefault: r = !0 }) {
|
|
|
27871
27871
|
if (!G(e))
|
|
27872
27872
|
return i ?? e.title;
|
|
27873
27873
|
const o = e, s = r ? yk(o, t) : void 0;
|
|
27874
|
-
return n ?
|
|
27874
|
+
return n ? wt(i, o.title, s) : i ?? o.title ?? s;
|
|
27875
27875
|
}
|
|
27876
27876
|
function mk(e) {
|
|
27877
27877
|
if (Au(e) && e.axis)
|
|
@@ -27972,7 +27972,7 @@ function _fe(e) {
|
|
|
27972
27972
|
}
|
|
27973
27973
|
function bk(e, t, { compositeMark: n = !1 } = {}) {
|
|
27974
27974
|
const { aggregate: r, timeUnit: i, bin: o, field: s } = e, a = { ...e };
|
|
27975
|
-
if (!n && r && !jE(r) && !Ws(r) && !Fo(r) && (V(vue(r)), delete a.aggregate), i && (a.timeUnit = Wt(i)), s && (a.field = `${s}`), it(o) && (a.bin = J0(o, t)), Yt(o) && !
|
|
27975
|
+
if (!n && r && !jE(r) && !Ws(r) && !Fo(r) && (V(vue(r)), delete a.aggregate), i && (a.timeUnit = Wt(i)), s && (a.field = `${s}`), it(o) && (a.bin = J0(o, t)), Yt(o) && !Et(t) && V(Jue(t)), On(a)) {
|
|
27976
27976
|
const { type: l } = a, u = Ece(l);
|
|
27977
27977
|
l !== u && (a.type = u), l !== "quantitative" && B0(r) && (V(_ue(l, r)), a.type = "quantitative");
|
|
27978
27978
|
} else if (!f9(t)) {
|
|
@@ -28415,7 +28415,7 @@ function w7(e, t) {
|
|
|
28415
28415
|
return n ? B(n) ? wu(n, (r) => !!r.field) : G(n) || io(n) || ch(n) : !1;
|
|
28416
28416
|
}
|
|
28417
28417
|
function E7(e, t) {
|
|
28418
|
-
if (
|
|
28418
|
+
if (Et(t)) {
|
|
28419
28419
|
const n = e[t];
|
|
28420
28420
|
if ((G(n) || io(n)) && (rk(n.type) || G(n) && n.timeUnit)) {
|
|
28421
28421
|
const r = IE(t);
|
|
@@ -28463,7 +28463,7 @@ function C7(e, t) {
|
|
|
28463
28463
|
u && (_.field = u), o.push(_);
|
|
28464
28464
|
}
|
|
28465
28465
|
} else if (n.push(m), On(a) && it(f)) {
|
|
28466
|
-
if (r.push({ bin: f, field: u, as: m }), n.push(Z(a, { binSuffix: "end" })), fh(a, l) && n.push(Z(a, { binSuffix: "range" })),
|
|
28466
|
+
if (r.push({ bin: f, field: u, as: m }), n.push(Z(a, { binSuffix: "end" })), fh(a, l) && n.push(Z(a, { binSuffix: "range" })), Et(l)) {
|
|
28467
28467
|
const b = {
|
|
28468
28468
|
field: `${m}_end`
|
|
28469
28469
|
};
|
|
@@ -28480,7 +28480,7 @@ function C7(e, t) {
|
|
|
28480
28480
|
b && (l === nh || l === qa ? y.formatType = b : Tle(l) ? y.legend = {
|
|
28481
28481
|
formatType: b,
|
|
28482
28482
|
...y.legend
|
|
28483
|
-
} :
|
|
28483
|
+
} : Et(l) && (y.axis = {
|
|
28484
28484
|
formatType: b,
|
|
28485
28485
|
...y.axis
|
|
28486
28486
|
}));
|
|
@@ -28693,7 +28693,7 @@ function lv(e, t, n, r = !0) {
|
|
|
28693
28693
|
}
|
|
28694
28694
|
function vk(e) {
|
|
28695
28695
|
const { title: t, field: n } = e;
|
|
28696
|
-
return
|
|
28696
|
+
return wt(t, n);
|
|
28697
28697
|
}
|
|
28698
28698
|
function xk(e, t, n, r, i) {
|
|
28699
28699
|
const { scale: o, axis: s } = n;
|
|
@@ -28876,13 +28876,13 @@ function N7(e, { config: t }) {
|
|
|
28876
28876
|
transform: (s.transform ?? []).concat(p),
|
|
28877
28877
|
layer: J
|
|
28878
28878
|
};
|
|
28879
|
-
const ae = Ze(`lower_box_${g.field}`), se = Ze(`upper_box_${g.field}`), be = `(${se} - ${ae})`, Ue = `${ae} - ${l} * ${be}`, pe = `${se} + ${l} * ${be}`,
|
|
28879
|
+
const ae = Ze(`lower_box_${g.field}`), se = Ze(`upper_box_${g.field}`), be = `(${se} - ${ae})`, Ue = `${ae} - ${l} * ${be}`, pe = `${se} + ${l} * ${be}`, vt = Ze(g.field), Jn = {
|
|
28880
28880
|
joinaggregate: F7(g.field),
|
|
28881
28881
|
groupby: y
|
|
28882
28882
|
}, Qn = {
|
|
28883
28883
|
transform: [
|
|
28884
28884
|
{
|
|
28885
|
-
filter: `(${Ue} <= ${
|
|
28885
|
+
filter: `(${Ue} <= ${vt}) && (${vt} <= ${pe})`
|
|
28886
28886
|
},
|
|
28887
28887
|
{
|
|
28888
28888
|
aggregate: [
|
|
@@ -28914,7 +28914,7 @@ function N7(e, { config: t }) {
|
|
|
28914
28914
|
],
|
|
28915
28915
|
layer: L
|
|
28916
28916
|
}, { tooltip: ne, ...he } = A, { scale: we, axis: q } = g, pt = vk(g), De = $7(a, "outliers", t.boxplot, {
|
|
28917
|
-
transform: [{ filter: `(${
|
|
28917
|
+
transform: [{ filter: `(${vt} < ${Ue}) || (${vt} > ${pe})` }],
|
|
28918
28918
|
mark: "point",
|
|
28919
28919
|
encoding: {
|
|
28920
28920
|
[m]: {
|
|
@@ -29497,7 +29497,7 @@ function cv(e, t) {
|
|
|
29497
29497
|
}
|
|
29498
29498
|
function am(e, t) {
|
|
29499
29499
|
const n = e[t] ?? e[t === "width" ? "discreteWidth" : "discreteHeight"];
|
|
29500
|
-
return
|
|
29500
|
+
return wt(n, { step: e.step });
|
|
29501
29501
|
}
|
|
29502
29502
|
const q7 = 20, ede = {
|
|
29503
29503
|
continuousWidth: 300,
|
|
@@ -30009,7 +30009,7 @@ function wde(e, t, { graticule: n }) {
|
|
|
30009
30009
|
if (n)
|
|
30010
30010
|
return !1;
|
|
30011
30011
|
const r = qi("filled", e, t), i = e.type;
|
|
30012
|
-
return
|
|
30012
|
+
return wt(r, i !== Y0 && i !== V0 && i !== em);
|
|
30013
30013
|
}
|
|
30014
30014
|
function Ede(e, t, n) {
|
|
30015
30015
|
switch (e) {
|
|
@@ -30713,7 +30713,7 @@ class qo {
|
|
|
30713
30713
|
};
|
|
30714
30714
|
}
|
|
30715
30715
|
get(t) {
|
|
30716
|
-
return
|
|
30716
|
+
return wt(this.explicit[t], this.implicit[t]);
|
|
30717
30717
|
}
|
|
30718
30718
|
getWithExplicit(t) {
|
|
30719
30719
|
return this.explicit[t] !== void 0 ? { explicit: !0, value: this.explicit[t] } : this.implicit[t] !== void 0 ? { explicit: !1, value: this.implicit[t] } : { explicit: !1, value: void 0 };
|
|
@@ -30980,7 +30980,7 @@ class Oi extends et {
|
|
|
30980
30980
|
};
|
|
30981
30981
|
if (dt(r)) {
|
|
30982
30982
|
const { mark: f, markDef: d, config: h } = r, p = As({ fieldDef: s, markDef: d, config: h });
|
|
30983
|
-
bd(f) &&
|
|
30983
|
+
bd(f) && Et(a) && p !== 0.5 && (c.rectBandPosition = p);
|
|
30984
30984
|
}
|
|
30985
30985
|
c && (o[Oe(c)] = c);
|
|
30986
30986
|
}
|
|
@@ -31649,14 +31649,14 @@ function mL(e, t, n, { reactiveGeom: r } = {}) {
|
|
|
31649
31649
|
// for secondary field def, copy type from main channel
|
|
31650
31650
|
}, p = h.title || yk(h, i), g = te(p).join(", ").replaceAll(/"/g, '\\"');
|
|
31651
31651
|
let m;
|
|
31652
|
-
if (
|
|
31652
|
+
if (Et(f)) {
|
|
31653
31653
|
const y = f === "x" ? "x2" : "y2", b = ii(e[y]);
|
|
31654
31654
|
if (Yt(h.bin) && b) {
|
|
31655
31655
|
const _ = Z(h, { expr: s }), v = Z(b, { expr: s }), { format: x, formatType: E } = im(h);
|
|
31656
31656
|
m = ah(_, v, x, E, i), o.add(y);
|
|
31657
31657
|
}
|
|
31658
31658
|
}
|
|
31659
|
-
if ((
|
|
31659
|
+
if ((Et(f) || f === Dr || f === di) && t && t.fieldChannel === f && t.offset === "normalize") {
|
|
31660
31660
|
const { format: y, formatType: b } = im(h);
|
|
31661
31661
|
m = hk({
|
|
31662
31662
|
fieldOrDatumDef: h,
|
|
@@ -31832,7 +31832,7 @@ function Mn(e, t, { defaultPos: n, vgChannel: r }) {
|
|
|
31832
31832
|
channel: e,
|
|
31833
31833
|
scaleName: c,
|
|
31834
31834
|
scale: f
|
|
31835
|
-
}), g = !l &&
|
|
31835
|
+
}), g = !l && Et(e) && (i.latitude || i.longitude) ? (
|
|
31836
31836
|
// use geopoint output if there are lat/long and there is no point position overriding lat/long.
|
|
31837
31837
|
{ field: t.getName(e) }
|
|
31838
31838
|
) : She({
|
|
@@ -32043,7 +32043,7 @@ function Nhe(e, t, n, r, i, o, s) {
|
|
|
32043
32043
|
return { value: l.step - 2 };
|
|
32044
32044
|
}
|
|
32045
32045
|
if (!o) {
|
|
32046
|
-
const { bandPaddingInner: l, barBandPaddingInner: u, rectBandPaddingInner: c, tickBandPaddingInner: f } = r.scale, d =
|
|
32046
|
+
const { bandPaddingInner: l, barBandPaddingInner: u, rectBandPaddingInner: c, tickBandPaddingInner: f } = r.scale, d = wt(l, s === "tick" ? f : s === "bar" ? u : c);
|
|
32047
32047
|
if (oe(d))
|
|
32048
32048
|
return { signal: `(1 - (${d.signal})) * ${e}` };
|
|
32049
32049
|
if (qe(d))
|
|
@@ -32114,7 +32114,7 @@ function l4(e, t, n, r, i, o, s) {
|
|
|
32114
32114
|
}
|
|
32115
32115
|
function Rhe({ fieldDef: e, fieldDef2: t, channel: n, model: r }) {
|
|
32116
32116
|
var A;
|
|
32117
|
-
const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = u7({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), d = (A = r.component.axes[n]) == null ? void 0 : A[0], h = (d == null ? void 0 : d.get("translate")) ?? 0.5, p =
|
|
32117
|
+
const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = u7({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), d = (A = r.component.axes[n]) == null ? void 0 : A[0], h = (d == null ? void 0 : d.get("translate")) ?? 0.5, p = Et(n) ? Ye("binSpacing", o, i) ?? 0 : 0, g = no(n), m = $s(n), y = $s(g), b = qi("minBandSize", o, i), { offset: _ } = Nu({ channel: n, markDef: o, encoding: s, model: r, bandPosition: 0 }), { offset: v } = Nu({ channel: g, markDef: o, encoding: s, model: r, bandPosition: 0 }), x = rfe({ fieldDef: e, scaleName: l }), E = l4(n, p, c, h, _, b, x), w = l4(g, p, c, h, v ?? _, b, x), C = oe(f) ? { signal: `(1-${f.signal})/2` } : Va(f) ? (1 - f.band) / 2 : 0.5, S = As({ fieldDef: e, fieldDef2: t, markDef: o, config: i });
|
|
32118
32118
|
if (it(e.bin) || e.timeUnit) {
|
|
32119
32119
|
const M = e.timeUnit && S !== 0.5;
|
|
32120
32120
|
return {
|
|
@@ -32667,7 +32667,7 @@ function Nf(e, t, n, r = { header: !1 }) {
|
|
|
32667
32667
|
maxExtent: 0,
|
|
32668
32668
|
minExtent: 0,
|
|
32669
32669
|
ticks: !1,
|
|
32670
|
-
zindex:
|
|
32670
|
+
zindex: wt(u, 0)
|
|
32671
32671
|
// put grid behind marks by default
|
|
32672
32672
|
};
|
|
32673
32673
|
} else {
|
|
@@ -32690,7 +32690,7 @@ function Nf(e, t, n, r = { header: !1 }) {
|
|
|
32690
32690
|
...h ? { title: h } : {},
|
|
32691
32691
|
...c,
|
|
32692
32692
|
...n.aria === !1 ? { aria: !1 } : {},
|
|
32693
|
-
zindex:
|
|
32693
|
+
zindex: wt(u, 0)
|
|
32694
32694
|
// put axis line above marks by default
|
|
32695
32695
|
};
|
|
32696
32696
|
}
|
|
@@ -32986,7 +32986,7 @@ function l1(e, t) {
|
|
|
32986
32986
|
}
|
|
32987
32987
|
function Ou(e, t, n, r) {
|
|
32988
32988
|
const i = r === "row" ? n.headerRow : r === "column" ? n.headerColumn : n.headerFacet;
|
|
32989
|
-
return
|
|
32989
|
+
return wt((t || {})[e], i[e], n.header[e]);
|
|
32990
32990
|
}
|
|
32991
32991
|
function u1(e, t, n, r) {
|
|
32992
32992
|
const i = {};
|
|
@@ -33185,7 +33185,7 @@ function m4(e, t) {
|
|
|
33185
33185
|
return oe(t.step) ? { name: n, update: t.step.signal } : { name: n, value: t.step };
|
|
33186
33186
|
}
|
|
33187
33187
|
function jL(e, t, n) {
|
|
33188
|
-
const r = t.get("type"), i = t.get("padding"), o =
|
|
33188
|
+
const r = t.get("type"), i = t.get("padding"), o = wt(t.get("paddingOuter"), i);
|
|
33189
33189
|
let s = t.get("paddingInner");
|
|
33190
33190
|
return s = r === "band" ? (
|
|
33191
33191
|
// only band has real paddingInner
|
|
@@ -33218,11 +33218,11 @@ function HL(e, t) {
|
|
|
33218
33218
|
if (ac(t))
|
|
33219
33219
|
return "shared";
|
|
33220
33220
|
if (Vk(t))
|
|
33221
|
-
return
|
|
33221
|
+
return Et(e) || e === "theta" || e === "radius" ? "independent" : "shared";
|
|
33222
33222
|
throw new Error("invalid model type for resolve");
|
|
33223
33223
|
}
|
|
33224
33224
|
function Uk(e, t) {
|
|
33225
|
-
const n = e.scale[t], r =
|
|
33225
|
+
const n = e.scale[t], r = Et(t) ? "axis" : "legend";
|
|
33226
33226
|
return n === "independent" ? (e[r][t] === "shared" && V(Bue(t)), "independent") : e[r][t] || "shared";
|
|
33227
33227
|
}
|
|
33228
33228
|
const fpe = {
|
|
@@ -33274,7 +33274,7 @@ function hpe(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
|
|
|
33274
33274
|
else if (W(f.stroke, "field") || p)
|
|
33275
33275
|
delete f.stroke;
|
|
33276
33276
|
else if (B(f.stroke)) {
|
|
33277
|
-
const m =
|
|
33277
|
+
const m = wt(xv(a.stroke || a.color), s.stroke, c ? s.color : void 0);
|
|
33278
33278
|
m && (f.stroke = { value: m });
|
|
33279
33279
|
}
|
|
33280
33280
|
}
|
|
@@ -33332,7 +33332,7 @@ function VL(e) {
|
|
|
33332
33332
|
return YL(e, (t, n) => Math.max(t, n.value));
|
|
33333
33333
|
}
|
|
33334
33334
|
function xv(e) {
|
|
33335
|
-
return YL(e, (t, n) =>
|
|
33335
|
+
return YL(e, (t, n) => wt(t, n.value));
|
|
33336
33336
|
}
|
|
33337
33337
|
function YL(e, t) {
|
|
33338
33338
|
if (cfe(e))
|
|
@@ -33410,7 +33410,7 @@ function bpe(e, t, n, r) {
|
|
|
33410
33410
|
}
|
|
33411
33411
|
function _pe(e) {
|
|
33412
33412
|
const { legend: t } = e;
|
|
33413
|
-
return
|
|
33413
|
+
return wt(t.type, vpe(e));
|
|
33414
33414
|
}
|
|
33415
33415
|
function vpe({ channel: e, timeUnit: t, scaleType: n }) {
|
|
33416
33416
|
if (Kl(e)) {
|
|
@@ -33885,7 +33885,7 @@ function qpe(e, t, n, r) {
|
|
|
33885
33885
|
if (On(n) && dt(r) && c7(n, i, r.markDef, r.config)) {
|
|
33886
33886
|
e.add(Z(n, {})), e.add(Z(n, { suffix: "end" }));
|
|
33887
33887
|
const { mark: s, markDef: a, config: l } = r, u = As({ fieldDef: n, markDef: a, config: l });
|
|
33888
|
-
bd(s) && u !== 0.5 &&
|
|
33888
|
+
bd(s) && u !== 0.5 && Et(t) && (e.add(Z(n, { suffix: o1 })), e.add(Z(n, { suffix: s1 }))), n.bin && fh(n, t) && e.add(Z(n, { binSuffix: "range" }));
|
|
33889
33889
|
} else if (l9(t)) {
|
|
33890
33890
|
const s = a9(t);
|
|
33891
33891
|
e.add(r.getName(s));
|
|
@@ -34739,7 +34739,7 @@ class Ao extends et {
|
|
|
34739
34739
|
const { stack: i, groupby: o, as: s, offset: a = "zero" } = r, l = [], u = [];
|
|
34740
34740
|
if (r.sort !== void 0)
|
|
34741
34741
|
for (const d of r.sort)
|
|
34742
|
-
l.push(d.field), u.push(
|
|
34742
|
+
l.push(d.field), u.push(wt(d.order, "ascending"));
|
|
34743
34743
|
const c = {
|
|
34744
34744
|
field: l,
|
|
34745
34745
|
order: u
|
|
@@ -35128,7 +35128,7 @@ function Yo(e, t, n, r) {
|
|
|
35128
35128
|
} else if (p.timeUnit && Me(["time", "utc"], e)) {
|
|
35129
35129
|
const g = i[no(r)];
|
|
35130
35130
|
if (c7(p, g, o, a)) {
|
|
35131
|
-
const m = n.requestDataName(d), y = As({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), b = bd(s) && y !== 0.5 &&
|
|
35131
|
+
const m = n.requestDataName(d), y = As({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), b = bd(s) && y !== 0.5 && Et(r);
|
|
35132
35132
|
return er([
|
|
35133
35133
|
{
|
|
35134
35134
|
data: m,
|
|
@@ -35318,7 +35318,7 @@ function k4(e) {
|
|
|
35318
35318
|
}, []);
|
|
35319
35319
|
}
|
|
35320
35320
|
function bge(e, t, n, r) {
|
|
35321
|
-
if (
|
|
35321
|
+
if (Et(n)) {
|
|
35322
35322
|
if (dl(e))
|
|
35323
35323
|
return {
|
|
35324
35324
|
step: { signal: `${t}_step` }
|
|
@@ -35419,7 +35419,7 @@ function xge(e, t) {
|
|
|
35419
35419
|
case "range": {
|
|
35420
35420
|
const p = n.range;
|
|
35421
35421
|
if (B(p)) {
|
|
35422
|
-
if (
|
|
35422
|
+
if (Et(e))
|
|
35423
35423
|
return Ei(p.map((g) => {
|
|
35424
35424
|
if (g === "width" || g === "height") {
|
|
35425
35425
|
const m = t.getName(g), y = t.getSignalName.bind(t);
|
|
@@ -35441,7 +35441,7 @@ function xge(e, t) {
|
|
|
35441
35441
|
}
|
|
35442
35442
|
const s = e === ut || e === "xOffset" ? "width" : "height", a = r[s];
|
|
35443
35443
|
if (Hi(a)) {
|
|
35444
|
-
if (
|
|
35444
|
+
if (Et(e))
|
|
35445
35445
|
if (Ht(o)) {
|
|
35446
35446
|
const f = lI(a, t, e);
|
|
35447
35447
|
if (f)
|
|
@@ -35754,10 +35754,10 @@ function Nge(e, t) {
|
|
|
35754
35754
|
function Fge(e, t, n, r, i, o) {
|
|
35755
35755
|
var s;
|
|
35756
35756
|
if (!((s = ii(o)) != null && s.bin || B(n) || i != null || r != null || Me([Kt.TIME, Kt.UTC], e)))
|
|
35757
|
-
return
|
|
35757
|
+
return Et(t) ? !0 : void 0;
|
|
35758
35758
|
}
|
|
35759
35759
|
function Rge(e, t, n, r, i, o) {
|
|
35760
|
-
if (
|
|
35760
|
+
if (Et(e)) {
|
|
35761
35761
|
if (Ti(t)) {
|
|
35762
35762
|
if (n.continuousPadding !== void 0)
|
|
35763
35763
|
return n.continuousPadding;
|
|
@@ -35771,21 +35771,21 @@ function Rge(e, t, n, r, i, o) {
|
|
|
35771
35771
|
}
|
|
35772
35772
|
function Oge(e, t, n, r, i, o = !1) {
|
|
35773
35773
|
if (e === void 0) {
|
|
35774
|
-
if (
|
|
35774
|
+
if (Et(t)) {
|
|
35775
35775
|
const { bandPaddingInner: s, barBandPaddingInner: a, rectBandPaddingInner: l, tickBandPaddingInner: u, bandWithNestedOffsetPaddingInner: c } = i;
|
|
35776
|
-
return o ? c :
|
|
35776
|
+
return o ? c : wt(s, n === "bar" ? a : n === "tick" ? u : l);
|
|
35777
35777
|
} else if (ih(t) && r === Kt.BAND)
|
|
35778
35778
|
return i.offsetBandPaddingInner;
|
|
35779
35779
|
}
|
|
35780
35780
|
}
|
|
35781
35781
|
function Dge(e, t, n, r, i, o = !1) {
|
|
35782
35782
|
if (e === void 0) {
|
|
35783
|
-
if (
|
|
35783
|
+
if (Et(t)) {
|
|
35784
35784
|
const { bandPaddingOuter: s, bandWithNestedOffsetPaddingOuter: a } = i;
|
|
35785
35785
|
if (o)
|
|
35786
35786
|
return a;
|
|
35787
35787
|
if (n === Kt.BAND)
|
|
35788
|
-
return
|
|
35788
|
+
return wt(
|
|
35789
35789
|
s,
|
|
35790
35790
|
/* By default, paddingOuter is paddingInner / 2. The reason is that
|
|
35791
35791
|
size (width/height) = step * (cardinality - paddingInner + 2 * paddingOuter).
|
|
@@ -35837,7 +35837,7 @@ function zge(e, t, n, r) {
|
|
|
35837
35837
|
return e === "shape" && t.type === "ordinal" && V(Dy(e, "ordinal")), "ordinal";
|
|
35838
35838
|
if (Ry(e))
|
|
35839
35839
|
return "band";
|
|
35840
|
-
if (
|
|
35840
|
+
if (Et(e) || ih(e)) {
|
|
35841
35841
|
if (Me(["rect", "bar", "image", "rule", "tick"], n.type) || r)
|
|
35842
35842
|
return "band";
|
|
35843
35843
|
} else if (n.type === "arc" && e in BE)
|
|
@@ -36794,7 +36794,7 @@ function Yge(e, t) {
|
|
|
36794
36794
|
includeDefault: l === void 0 || !!l
|
|
36795
36795
|
});
|
|
36796
36796
|
i.component.layoutHeaders[t].title && (u = B(u) ? u.join(", ") : u, u += ` / ${i.component.layoutHeaders[t].title}`, i.component.layoutHeaders[t].title = null);
|
|
36797
|
-
const c = Ou("labelOrient", a.header, r, t), f = a.header !== null ?
|
|
36797
|
+
const c = Ou("labelOrient", a.header, r, t), f = a.header !== null ? wt((s = a.header) == null ? void 0 : s.labels, r.header.labels, !0) : !1, d = Me(["bottom", "right"], c) ? "footer" : "header";
|
|
36798
36798
|
o.layoutHeaders[t] = {
|
|
36799
36799
|
title: a.header !== null ? u : null,
|
|
36800
36800
|
facetFieldDef: a,
|
|
@@ -37516,7 +37516,7 @@ function cme(e, t) {
|
|
|
37516
37516
|
return {
|
|
37517
37517
|
explicit: i.explicit,
|
|
37518
37518
|
// keep the old explicit
|
|
37519
|
-
value:
|
|
37519
|
+
value: wt(i.value, o.value)
|
|
37520
37520
|
};
|
|
37521
37521
|
}
|
|
37522
37522
|
return i1(i, o, n, "axis");
|
|
@@ -38026,7 +38026,7 @@ function Dme(e) {
|
|
|
38026
38026
|
}
|
|
38027
38027
|
function Jk(e, t = { fromPrefix: "" }) {
|
|
38028
38028
|
var h;
|
|
38029
|
-
const { mark: n, markDef: r, encoding: i, config: o } = e, s =
|
|
38029
|
+
const { mark: n, markDef: r, encoding: i, config: o } = e, s = wt(r.clip, Lme(e), Ime(e)), a = v9(r), l = i.key, u = Dme(e), c = Pme(e);
|
|
38030
38030
|
c && Object.values(e.component.selection).some((p) => p.type === "point" && !p.bind && // if on is a pointerover (hover) the pointer makes less sense since the mark is not clickable.
|
|
38031
38031
|
p.on !== "pointerover") && ((h = e.markDef).cursor ?? (h.cursor = "pointer"));
|
|
38032
38032
|
const f = Ye("aria", r, o), d = Qh[n].postEncodingTransform ? Qh[n].postEncodingTransform(e) : null;
|
|
@@ -38389,7 +38389,7 @@ const jme = dle.version, qme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
|
|
|
38389
38389
|
every: TE,
|
|
38390
38390
|
fieldIntersection: FE,
|
|
38391
38391
|
flatAccessWithDatum: QD,
|
|
38392
|
-
getFirstDefined:
|
|
38392
|
+
getFirstDefined: wt,
|
|
38393
38393
|
hasIntersection: NE,
|
|
38394
38394
|
hasProperty: W,
|
|
38395
38395
|
hash: Oe,
|
|
@@ -40289,10 +40289,10 @@ function NI() {
|
|
|
40289
40289
|
const N = $.loose ? l[u.XRANGELOOSE] : l[u.XRANGE];
|
|
40290
40290
|
return T.replace(N, (O, z, L, J, ae, se) => {
|
|
40291
40291
|
s("xRange", T, O, z, L, J, ae, se);
|
|
40292
|
-
const be = _(L), Ue = be || _(J), pe = Ue || _(ae),
|
|
40293
|
-
return z === "=" &&
|
|
40292
|
+
const be = _(L), Ue = be || _(J), pe = Ue || _(ae), vt = pe;
|
|
40293
|
+
return z === "=" && vt && (z = ""), se = $.includePrerelease ? "-0" : "", be ? z === ">" || z === "<" ? O = "<0.0.0-0" : O = "*" : z && vt ? (Ue && (J = 0), ae = 0, z === ">" ? (z = ">=", Ue ? (L = +L + 1, J = 0, ae = 0) : (J = +J + 1, ae = 0)) : z === "<=" && (z = "<", Ue ? L = +L + 1 : J = +J + 1), z === "<" && (se = "-0"), O = `${z + L}.${J}.${ae}${se}`) : Ue ? O = `>=${L}.0.0${se} <${+L + 1}.0.0-0` : pe && (O = `>=${L}.${J}.0${se} <${L}.${+J + 1}.0-0`), s("xRange return", O), O;
|
|
40294
40294
|
});
|
|
40295
|
-
}, A = (T, $) => (s("replaceStars", T, $), T.trim().replace(l[u.STAR], "")), M = (T, $) => (s("replaceGTE0", T, $), T.trim().replace(l[$.includePrerelease ? u.GTE0PRE : u.GTE0], "")), R = (T) => ($, N, O, z, L, J, ae, se, be, Ue, pe,
|
|
40295
|
+
}, A = (T, $) => (s("replaceStars", T, $), T.trim().replace(l[u.STAR], "")), M = (T, $) => (s("replaceGTE0", T, $), T.trim().replace(l[$.includePrerelease ? u.GTE0PRE : u.GTE0], "")), R = (T) => ($, N, O, z, L, J, ae, se, be, Ue, pe, vt) => (_(O) ? N = "" : _(z) ? N = `>=${O}.0.0${T ? "-0" : ""}` : _(L) ? N = `>=${O}.${z}.0${T ? "-0" : ""}` : J ? N = `>=${N}` : N = `>=${N}${T ? "-0" : ""}`, _(be) ? se = "" : _(Ue) ? se = `<${+be + 1}.0.0-0` : _(pe) ? se = `<${be}.${+Ue + 1}.0-0` : vt ? se = `<=${be}.${Ue}.${pe}-${vt}` : T ? se = `<${be}.${Ue}.${+pe + 1}-0` : se = `<=${se}`, `${N} ${se}`.trim()), F = (T, $, N) => {
|
|
40296
40296
|
for (let O = 0; O < T.length; O++)
|
|
40297
40297
|
if (!T[O].test($))
|
|
40298
40298
|
return !1;
|
|
@@ -40727,7 +40727,7 @@ const R1e = "_text_we7dz_1", O1e = "_chart_time_we7dz_30", D1e = "_quick_replies
|
|
|
40727
40727
|
};
|
|
40728
40728
|
function I1e(e) {
|
|
40729
40729
|
var f, d, h;
|
|
40730
|
-
const { message: t } = e, n = t.message.template, { template: r, botMessage: i } =
|
|
40730
|
+
const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = kt(), { avatar: o } = Dt(), [s, a] = Fe((n == null ? void 0 : n.defaultChart) ?? ((d = (f = n == null ? void 0 : n.chartOptions) == null ? void 0 : f[0]) == null ? void 0 : d.type)), l = Ee(() => n.chartOptions, [n]), u = Ee(
|
|
40731
40731
|
() => {
|
|
40732
40732
|
var p, g;
|
|
40733
40733
|
return ((g = (p = n == null ? void 0 : n.chartOptions) == null ? void 0 : p.find(
|
|
@@ -40770,7 +40770,7 @@ const P1e = "_image_box_8cz9p_1", z1e = "_full_screen_8cz9p_24", B1e = "_imageOr
|
|
|
40770
40770
|
};
|
|
40771
40771
|
function j1e(e) {
|
|
40772
40772
|
var u;
|
|
40773
|
-
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } =
|
|
40773
|
+
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } = kt(), { avatar: s } = Dt(), [a, l] = Fe(!1);
|
|
40774
40774
|
return a ? /* @__PURE__ */ X("div", { className: sp.full_screen, onClick: () => l(!1), children: [
|
|
40775
40775
|
/* @__PURE__ */ k("div", { className: sp.full_screen_close, children: /* @__PURE__ */ k(I5, {}) }),
|
|
40776
40776
|
/* @__PURE__ */ k("div", { className: sp.imageOrigin, style: { backgroundImage: `url(${i})` } })
|
|
@@ -40832,7 +40832,7 @@ function Z1e(e) {
|
|
|
40832
40832
|
}
|
|
40833
40833
|
function J1e(e) {
|
|
40834
40834
|
var M;
|
|
40835
|
-
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i, duration: o } = n, { template: s } =
|
|
40835
|
+
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i, duration: o } = n, { template: s } = kt(), { avatar: a, messageBoxBottomRef: l } = Dt(), [u, c] = Fe(!1), f = en(null), d = en(null), [h, p] = Fe(null), [g, m] = Fe(0), [y, b] = Fe(0);
|
|
40836
40836
|
Je(() => {
|
|
40837
40837
|
const R = setTimeout(() => {
|
|
40838
40838
|
l.current && l.current.scrollIntoView({ behavior: "smooth" });
|
|
@@ -40958,7 +40958,7 @@ const Q1e = "_audio_box_1y8ew_1", eye = "_audio_player_1y8ew_13", _5 = {
|
|
|
40958
40958
|
};
|
|
40959
40959
|
function tye(e) {
|
|
40960
40960
|
var a;
|
|
40961
|
-
const { message: t } = e, n = t.message.template, { originalContentUrl: r } = n, { template: i } =
|
|
40961
|
+
const { message: t } = e, n = t.message.template, { originalContentUrl: r } = n, { template: i } = kt(), { avatar: o, messageBoxBottomRef: s } = Dt();
|
|
40962
40962
|
return Je(() => {
|
|
40963
40963
|
const l = setTimeout(() => {
|
|
40964
40964
|
s.current && s.current.scrollIntoView({ behavior: "smooth" });
|
|
@@ -41035,7 +41035,7 @@ function lye(e) {
|
|
|
41035
41035
|
}
|
|
41036
41036
|
function uye(e) {
|
|
41037
41037
|
var o, s, a, l, u;
|
|
41038
|
-
const { message: t } = e, { template: n } =
|
|
41038
|
+
const { message: t } = e, { template: n } = kt(), { avatar: r } = Dt(), i = t.message.template;
|
|
41039
41039
|
return /* @__PURE__ */ X(fr, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
|
|
41040
41040
|
/* @__PURE__ */ k(ai, { avatar: r }),
|
|
41041
41041
|
/* @__PURE__ */ k(
|
|
@@ -41080,7 +41080,7 @@ const cye = "_message_wrapper_1cjr0_1", fye = "_text_bubble_1cjr0_9", dye = "_im
|
|
|
41080
41080
|
};
|
|
41081
41081
|
function xye({ message: e }) {
|
|
41082
41082
|
var a, l;
|
|
41083
|
-
const [t, n] = Fe(null), r =
|
|
41083
|
+
const [t, n] = Fe(null), r = kt(), i = Ee(
|
|
41084
41084
|
() => {
|
|
41085
41085
|
var u, c;
|
|
41086
41086
|
return {
|
|
@@ -41448,7 +41448,7 @@ function $be() {
|
|
|
41448
41448
|
}
|
|
41449
41449
|
function Abe(e) {
|
|
41450
41450
|
var S;
|
|
41451
|
-
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l } = r, { template: u, botMessage: c } =
|
|
41451
|
+
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l } = r, { template: u, botMessage: c } = kt(), { avatar: f } = Dt(), [d, h] = Fe(1), [p, g] = Fe({
|
|
41452
41452
|
visible: !1,
|
|
41453
41453
|
fileName: "",
|
|
41454
41454
|
blobUrl: null
|
|
@@ -41612,7 +41612,7 @@ function Nbe(e) {
|
|
|
41612
41612
|
const Fbe = 50;
|
|
41613
41613
|
function Rbe() {
|
|
41614
41614
|
var h;
|
|
41615
|
-
const { chatbot: e } =
|
|
41615
|
+
const { chatbot: e } = kt(), {
|
|
41616
41616
|
messages: t,
|
|
41617
41617
|
messageBoxBottomRef: n,
|
|
41618
41618
|
botTypingPlaceholder: r,
|
|
@@ -41923,7 +41923,7 @@ function x_e() {
|
|
|
41923
41923
|
messages: l,
|
|
41924
41924
|
title: u,
|
|
41925
41925
|
programmaticScrollToBottom: c
|
|
41926
|
-
} = Dt(), { data: f } = Rv(), { chatbot: d } =
|
|
41926
|
+
} = Dt(), { data: f } = Rv(), { chatbot: d } = kt(), h = Ee(() => {
|
|
41927
41927
|
var H, ge;
|
|
41928
41928
|
return o !== void 0 ? o : ((ge = (H = f.annotations) == null ? void 0 : H.embedConfig) == null ? void 0 : ge.enableUpload) ?? !1;
|
|
41929
41929
|
}, [o, (cc = (uc = f.annotations) == null ? void 0 : uc.embedConfig) == null ? void 0 : cc.enableUpload]), p = Ee(() => {
|
|
@@ -41987,7 +41987,7 @@ function x_e() {
|
|
|
41987
41987
|
const pe = _e((H) => {
|
|
41988
41988
|
const ge = H.target, Le = ge.value;
|
|
41989
41989
|
ge.style.height = "36px", Le && (ge.style.height = `${ge.scrollHeight}px`), b(H.target.value);
|
|
41990
|
-
}, []), [
|
|
41990
|
+
}, []), [vt, Jn] = Fe(!1), Qn = _e(() => {
|
|
41991
41991
|
Jn(!0), setTimeout(() => {
|
|
41992
41992
|
c("smooth");
|
|
41993
41993
|
}, 300);
|
|
@@ -42388,7 +42388,7 @@ function x_e() {
|
|
|
42388
42388
|
"textarea",
|
|
42389
42389
|
{
|
|
42390
42390
|
ref: F,
|
|
42391
|
-
className: Re(me.chatbot_textarea,
|
|
42391
|
+
className: Re(me.chatbot_textarea, vt && me["chatbot_textarea--focused"]),
|
|
42392
42392
|
style: (Tc = (Mc = d.footer) == null ? void 0 : Mc.textArea) == null ? void 0 : Tc.style,
|
|
42393
42393
|
cols: 40,
|
|
42394
42394
|
value: y,
|
|
@@ -42458,7 +42458,7 @@ const w_e = "_chatbot_root_84qyk_2", E_e = "_full_screen_84qyk_125", k_e = "_cha
|
|
|
42458
42458
|
chatbot_container: k_e
|
|
42459
42459
|
};
|
|
42460
42460
|
function C_e(e) {
|
|
42461
|
-
const { children: t } = e, n = en(null), r = en(null), i =
|
|
42461
|
+
const { children: t } = e, n = en(null), r = en(null), i = kt();
|
|
42462
42462
|
aP(n), Je(() => {
|
|
42463
42463
|
const s = r.current;
|
|
42464
42464
|
if (!s) return;
|
|
@@ -42491,7 +42491,7 @@ function C_e(e) {
|
|
|
42491
42491
|
return /* @__PURE__ */ k("div", { ref: n, className: gm.full_screen, children: /* @__PURE__ */ k("div", { ref: r, className: gm.chatbot_container, style: o, children: t }) });
|
|
42492
42492
|
}
|
|
42493
42493
|
function S5(e) {
|
|
42494
|
-
const { fullScreen: t, children: n, className: r, style: i = {} } = e, o = en(null), { chatbot: s } =
|
|
42494
|
+
const { fullScreen: t, children: n, className: r, style: i = {} } = e, o = en(null), { chatbot: s } = kt(), { style: a, header: l, body: u, footer: c, ...f } = s;
|
|
42495
42495
|
return Je(() => {
|
|
42496
42496
|
const d = o.current;
|
|
42497
42497
|
if (!d) return;
|
|
@@ -42518,27 +42518,17 @@ function S5(e) {
|
|
|
42518
42518
|
};
|
|
42519
42519
|
}, []), /* @__PURE__ */ k("div", { className: Re(gm.chatbot_root, r), style: Object.assign({}, a, i), children: t ? /* @__PURE__ */ k(C_e, { children: n }) : /* @__PURE__ */ k("div", { ref: o, className: gm.chatbot_container, style: f, children: n }) });
|
|
42520
42520
|
}
|
|
42521
|
-
const S_e = "
|
|
42521
|
+
const S_e = "_container_q4xjh_1", $_e = "_avatar_q4xjh_13", A_e = "_message_q4xjh_26", mb = {
|
|
42522
42522
|
container: S_e,
|
|
42523
42523
|
avatar: $_e,
|
|
42524
42524
|
message: A_e
|
|
42525
42525
|
};
|
|
42526
42526
|
function $5({ message: e }) {
|
|
42527
|
-
const {
|
|
42528
|
-
return /* @__PURE__ */ X(
|
|
42529
|
-
"div",
|
|
42530
|
-
{
|
|
42531
|
-
|
|
42532
|
-
style: {
|
|
42533
|
-
backgroundColor: t.backgroundColor,
|
|
42534
|
-
borderColor: t.borderColor
|
|
42535
|
-
},
|
|
42536
|
-
children: [
|
|
42537
|
-
/* @__PURE__ */ k("div", { className: mb.avatar, children: /* @__PURE__ */ k(Ov, { avatar: n }) }),
|
|
42538
|
-
/* @__PURE__ */ k("div", { className: mb.message, children: e })
|
|
42539
|
-
]
|
|
42540
|
-
}
|
|
42541
|
-
);
|
|
42527
|
+
const { avatar: t } = Dt();
|
|
42528
|
+
return /* @__PURE__ */ X("div", { className: mb.container, children: [
|
|
42529
|
+
/* @__PURE__ */ k("div", { className: mb.avatar, children: /* @__PURE__ */ k(Ov, { avatar: t }) }),
|
|
42530
|
+
/* @__PURE__ */ k("div", { className: mb.message, children: e })
|
|
42531
|
+
] });
|
|
42542
42532
|
}
|
|
42543
42533
|
const M_e = "_chatbot__auth_state_container_1hs4h_1", T_e = "_chatbot__error_state_1hs4h_9", N_e = "_chatbot__error_state__content_1hs4h_13", F_e = "_chatbot__error_state__icon_1hs4h_17", _i = {
|
|
42544
42534
|
chatbot__auth_state_container: M_e,
|
|
@@ -42735,7 +42725,7 @@ export {
|
|
|
42735
42725
|
Dt as useAsgardContext,
|
|
42736
42726
|
rP as useAsgardServiceClient,
|
|
42737
42727
|
bm as useAsgardTemplateContext,
|
|
42738
|
-
|
|
42728
|
+
kt as useAsgardThemeContext,
|
|
42739
42729
|
iP as useChannel,
|
|
42740
42730
|
oP as useDebounce,
|
|
42741
42731
|
CS as useDeepCompareMemo,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgard-js/react",
|
|
3
|
-
"version": "0.1.36-canary.
|
|
3
|
+
"version": "0.1.36-canary.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"vitest": "^1.6.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@asgard-js/core": "^0.1.36-canary.
|
|
51
|
+
"@asgard-js/core": "^0.1.36-canary.4",
|
|
52
52
|
"react": "^18.0.0 || ^19.0.0",
|
|
53
53
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
54
54
|
},
|