@botfabrik/engine-webclient 4.94.3 → 4.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ ._app_1rj0t_1{display:flex;flex-direction:row;height:100vh;height:100svh;background-color:var(--body-background-color)}._container_q2uun_1{height:100%;position:relative}._chatcontent_q2uun_6{display:flex;flex-flow:column nowrap;height:100%}._accessabilityHidden_q2uun_12{visibility:hidden}._messageContainer_ofi0g_1{flex:1;overflow-y:scroll;overscroll-behavior:contain;padding-top:1rem;position:relative;-webkit-overflow-scrolling:touch}._messages_ofi0g_12{position:relative;list-style:none;font-size:.9rem;line-height:1.4;padding:0 1rem;margin:0;overflow-wrap:break-word;word-wrap:break-word}@media screen and (min-width: 1024px){._messageContainer_ofi0g_1{margin-bottom:1rem}._messages_ofi0g_12{padding-left:0}}@media (min-width: 36rem){._messageContainer_ofi0g_1{padding-top:2rem;padding-bottom:2rem}._messages_ofi0g_12{font-size:1rem;line-height:1.8}}._generalConditionsContainer_55hjg_1{margin-bottom:1.2rem;margin-left:1rem;margin-right:1rem}._generalConditions_55hjg_1{transition:all .5s linear;background-color:var(--bot-bubble-background-color);color:var(--bot-bubble-text-color);padding:.9em 1.3em;font-size:.9rem}._generalConditionsHeader_55hjg_15{display:flex;align-items:flex-end;justify-content:space-between;cursor:pointer}._generalConditionsHeader_55hjg_15:focus{outline:none}._generalConditionsBody_55hjg_26{display:flex;align-items:flex-end}._generalConditionsBody_55hjg_26:focus{outline:none}._generalConditionsAccept_55hjg_35{padding:.9em 1.3em;font-size:.9rem}._generalConditionsAccept_55hjg_35:focus{outline:none}._message_6i1zm_1{--bubble-margin: var(--bubble-margin-small);margin-bottom:var(--bubble-margin);transition:border-radius .5s;position:relative}._messageBot_6i1zm_9{--bot-bubble-user-actions-display: none;display:flex;align-items:flex-end}._messageBot_6i1zm_9:focus-within,._messageBot_6i1zm_9:hover{--bot-bubble-user-actions-display: flex}._messageBot_6i1zm_9:not(._messageBotLast_6i1zm_19) ._avatar_6i1zm_19{visibility:hidden}._messageBotFirst_6i1zm_24{--bot-bubble-top-left-radius: var(--bubble-radius-large);--bot-bubble-top-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-right-radius: var(--bubble-radius-large)}._messageBotLast_6i1zm_19{--bot-bubble-top-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-left-radius: var(--bubble-radius-large);--bot-bubble-bottom-right-radius: var(--bubble-radius-large);--bubble-margin: var(--bubble-margin-large)}._messageBotAnimated_6i1zm_37{animation-duration:.25s;animation-timing-function:ease-in;animation-delay:0s;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards;animation-play-state:running;animation-name:_fadeInLeft_6i1zm_1}._messageGuest_6i1zm_48{display:flex;align-items:flex-end;justify-content:flex-end}._messageGuestFirst_6i1zm_54{--guest-bubble-top-left-radius: var(--bubble-radius-large);--guest-bubble-top-right-radius: var(--bubble-radius-large);--guest-bubble-bottom-left-radius: var(--bubble-radius-large)}._messageGuestLast_6i1zm_60{--guest-bubble-top-left-radius: var(--bubble-radius-large);--guest-bubble-bottom-left-radius: var(--bubble-radius-large);--guest-bubble-bottom-right-radius: var(--bubble-radius-large);--bubble-margin: var(--bubble-margin-large);margin-bottom:var(--bubble-margin)}._avatar_6i1zm_19{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--avatar-radius, 50%)}._botAvatar_6i1zm_74{background-color:var(--bot-avatar-background-color)}._agentAvatar_6i1zm_78{background-color:var(--agent-avatar-background-color)}._bubble_6i1zm_82{display:inline-block;max-width:calc(100% - 4.3rem);position:relative}._bubbleContent_6i1zm_88{padding:var(--bubble-padding);color:inherit;font-size:inherit}._bubbleContent_6i1zm_88 *>:first-child{margin-top:0}._bubbleContent_6i1zm_88 *>:last-child{margin-bottom:0}._bubbleLeft_6i1zm_102{border-radius:var(--bot-bubble-top-left-radius) var(--bot-bubble-top-right-radius) var(--bot-bubble-bottom-right-radius) var(--bot-bubble-bottom-left-radius);border-color:var(--bot-bubble-border-color);border-width:var(--bot-bubble-border-width);border-style:solid;background-color:var(--bot-bubble-background-color);margin-left:1rem}._leftText_6i1zm_113{color:var(--bot-bubble-text-color)}._leftText_6i1zm_113 a{color:var(--bot-bubble-text-color)!important}._bubbleRight_6i1zm_120{border-radius:var(--guest-bubble-top-left-radius) var(--guest-bubble-top-right-radius) var(--guest-bubble-bottom-right-radius) var(--guest-bubble-bottom-left-radius);border-color:var(--guest-bubble-border-color);border-width:var(--guest-bubble-border-width);border-style:solid;background-color:var(--guest-bubble-background-color)}._rightText_6i1zm_130,._rightText_6i1zm_130 a{color:var(--guest-bubble-text-color)}@keyframes _fadeInLeft_6i1zm_1{0%{transform:translate(-100vw)}to{transform:translate(0)}}.source-info-reference{--footnote-padding: .2em}.source-info-reference:first-of-type{margin-left:var(--footnote-padding)}.source-info-reference:last-of-type{margin-right:var(--footnote-padding)}.source-info-reference.source-info-reference--before-space{margin-left:-.1em}.source-info-reference.source-info-reference--after-space{margin-right:-.1em}._sourceInfoReference_6i1zm_162 a{--bot-bubble-text-color: black;background:color-mix(in srgb,var(--brand-primary-color) 20%,transparent);padding:3px 6px;border-radius:6px;text-decoration:none!important;font-size:.75rem;font-family:monospace}._sourceInfoReferenceActive_6i1zm_174 a{--bot-bubble-text-color: white;background:var(--brand-primary-color)}._botMessageActions_1dl7x_1{--bot-bubble-user-actions-container-bg-opacity: 1;color:var(--text-secondary-color);padding:.125rem .5rem;vertical-align:middle;background-color:rgb(var(--bot-bubble-user-actions-container-bg, 255 255 255) / var(--bot-bubble-user-actions-container-bg-opacity));border-color:var(--color-gray-200);border-style:solid;border-width:1px;border-radius:.75rem;margin-top:-.75rem;top:100%;left:calc(var(--avatar-size, 2rem) + 1.5rem);position:absolute;z-index:10;display:var(--bot-bubble-user-actions-display);gap:.15rem}._alwaysVisible_1dl7x_22{--bot-bubble-user-actions-display: flex;--bot-bubble-user-actions-container-bg-opacity: 0;border-width:0;top:calc(100% + .75rem)}._reported_1dl7x_29{display:flex}._action_1dl7x_33{display:var(--bot-bubble-user-actions-display);font-size:.875rem;line-height:1.25rem;padding-left:.25rem;padding-right:.25rem;border-radius:.375rem;white-space:nowrap;justify-content:center;align-items:center;height:1.5rem;text-transform:none;border:0;cursor:pointer;color:inherit;background-color:rgb(var(--bot-bubble-user-actions-container-bg, 255 255 255) / var(--bot-bubble-user-actions-container-bg-opacity))}._action_1dl7x_33:hover{background-color:var(--color-gray-200)}._action_1dl7x_33._reported_1dl7x_29{display:flex}._sourceList_1n31h_1{display:flex;flex-direction:column;flex-wrap:wrap;gap:.5rem;list-style-type:none!important;margin:0;padding:0;padding-top:1rem}._source_1n31h_1{font-size:.7rem;width:fit-content;cursor:pointer;max-width:100%}._source_1n31h_1 a{display:flex;align-items:center;flex-direction:row;gap:.25rem;padding:3px 6px;border-radius:6px;color:var(--bot-bubble-source-text-color)!important;background-color:var(--bot-bubble-source-background-color)}._source_1n31h_1 a:hover{background:color-mix(in srgb,var(--bot-bubble-source-background-color) 75%,transparent)}._source_1n31h_1 a ._label_1n31h_37{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}._source_1n31h_1 a svg{font-size:1rem;flex-shrink:0}._button_3ui4g_1{display:inline-block;font-family:inherit;font-size:1em;padding:.5em 1em;border-radius:.2rem;background-color:#fff;cursor:pointer;transition:all .2s linear;text-align:center}._buttonDefault_3ui4g_13{color:#000000d9;background-color:#fff;border:2px solid;border-color:color-mix(in srgb,var(--brand-primary-color) 20%,transparent)}._buttonDefault_3ui4g_13:hover{color:var(--brand-primary-color);border-color:var(--brand-primary-color)}._buttonDefault_3ui4g_13:disabled{cursor:not-allowed;opacity:.3}._buttonPrimary_3ui4g_28{color:var(--brand-secondary-color);background-color:var(--brand-primary-color);border:2px solid var(--brand-primary-color)}._buttonPrimary_3ui4g_28:hover{color:var(--brand-primary-color);background-color:var(--brand-secondary-color);border:2px solid var(--brand-primary-color)}._buttonPrimary_3ui4g_28:disabled{cursor:not-allowed;opacity:.3;color:var(--brand-secondary-color);background-color:var(--brand-primary-color)}._title_137pi_1{margin-top:0;margin-block-start:0}._buttons_137pi_6{margin-top:1rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.5rem}._button_137pi_6{font-size:.9em;margin:0;background-color:var(--bot-bubble-text-color);color:var(--bot-bubble-background-color);border:2px solid var(--bot-bubble-text-color);width:100%}._button_137pi_6:hover{color:var(--bot-bubble-text-color);background-color:var(--bot-bubble-background-color);border:2px solid var(--bot-bubble-text-color)}._imageContainer_137pi_29{display:flex}._image_137pi_29{height:100%;width:100%;object-fit:cover;border-radius:calc(var(--bot-bubble-top-left-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-top-right-radius) - var(--bot-bubble-border-width)) 0 0}._video_container_137pi_44{display:flex}._video_137pi_44{width:100%;height:100%;border-radius:calc(var(--bot-bubble-top-left-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-top-right-radius) - var(--bot-bubble-border-width)) 0 0}._only_137pi_58{border-radius:calc(var(--bot-bubble-top-left-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-top-right-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-bottom-right-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-bottom-left-radius) - var(--bot-bubble-border-width))}._markdown_nw7vg_1 h1,._markdown_nw7vg_1 h2,._markdown_nw7vg_1 h3,._markdown_nw7vg_1 h4,._markdown_nw7vg_1 h5,._markdown_nw7vg_1 p,._markdown_nw7vg_1 a,._markdown_nw7vg_1 ul,._markdown_nw7vg_1 ol{color:inherit;margin-block-start:.4em;margin-block-end:.4em;margin-inline-start:0px;margin-inline-end:0px}._markdown_nw7vg_1 h1{font-size:1.2rem;white-space:pre-wrap}._markdown_nw7vg_1 h2{font-size:1.1rem;white-space:pre-wrap}._markdown_nw7vg_1 h3,._markdown_nw7vg_1 h4,._markdown_nw7vg_1 h5{font-size:1rem;white-space:pre-wrap}._markdown_nw7vg_1 a{color:var(--text-link-color);text-decoration:underline;cursor:pointer}._markdown_nw7vg_1 a:hover{color:var(--text-link-color-hover);opacity:.8}._markdown_nw7vg_1 a:active{color:var(--text-link-color-hover)}._markdown_nw7vg_1 a:visited{color:var(--text-link-color)}._markdown_nw7vg_1 img{max-width:100%;margin-block-start:0;margin-block-end:0}._markdown_nw7vg_1 ul{padding:0 0 0 1.1em}._markdown_nw7vg_1 ul>li{list-style-type:disc}._markdown_nw7vg_1 ul>li ul{margin-block-start:0}._markdown_nw7vg_1 ul>li p{margin-bottom:0}._markdown_nw7vg_1 ol{padding:0 0 0 1.1em}._markdown_nw7vg_1 ol>li{list-style-type:decimal}._markdown_nw7vg_1 table,._markdown_nw7vg_1 td,._markdown_nw7vg_1 th{border:1px solid}._markdown_nw7vg_1 table{width:100%;border-collapse:collapse;margin-bottom:1rem;-webkit-hyphens:auto;hyphens:auto}._markdown_nw7vg_1 table th{text-align:left;padding:5px}._markdown_nw7vg_1 table td{padding:5px}._markdown_nw7vg_1 hr{margin-top:1rem;margin-bottom:1rem;border-top:1px solid;border-left:0;border-bottom:0;border-right:0}._text_gp0s0_1{overflow-wrap:break-word}._command_gp0s0_5{padding:3px 6px;margin-right:3px;border-radius:6px;font-size:.75rem;font-family:monospace;background-color:var( --guest-bubble-command-background-color, rgba(255, 255, 255, .3) )}._ticontainer_xg0dn_1{padding:var(--bubble-padding)}._tiblock_xg0dn_5{align-items:center;display:flex;height:1rem;margin:2.1px}._tidot_xg0dn_12{background-color:var(--bot-bubble-text-color);animation:_mercuryTypingAnimation_xg0dn_1 1s infinite ease-in-out;border-radius:3px;display:inline-block;height:6px;margin-right:3px;width:6px}@keyframes _mercuryTypingAnimation_xg0dn_1{0%{transform:translateY(0)}28%{transform:translateY(-5px)}44%{transform:translateY(0)}}._tidot_xg0dn_12:nth-child(1){animation-delay:50ms}._tidot_xg0dn_12:nth-child(2){animation-delay:.15s}._tidot_xg0dn_12:nth-child(3){animation-delay:.25s}._bottomSheet_jp8dl_1{visibility:hidden;position:absolute;z-index:3000;height:100%;width:100%;background-color:var(--body-background-color);top:0;bottom:0;transform:translateY(100%);overflow-y:auto;overscroll-behavior:contain}._bottomSheetOpen_jp8dl_15{animation:_slide-in_jp8dl_1 .2s forwards;visibility:visible}._bottomSheetClose_jp8dl_20{animation:_slide-out_jp8dl_1 .2s forwards;visibility:hidden}@keyframes _slide-in_jp8dl_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slide-out_jp8dl_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._container_xc2nx_1{overflow:hidden}._container_xc2nx_1 iframe{width:100%;height:100%;border:none}._container_z787n_1{padding:.25rem;display:flex;justify-content:center;align-items:center;border-top:1px solid var(--color-gray-200);background-color:#fff;font-size:.5rem;color:var(--text-secondary-color)}._container_z787n_1 a{color:var(--brand-primary-color);text-decoration:none}@media screen and (min-width: 1024px){._container_z787n_1{padding:.75rem 0 0;background-color:transparent;border-top:unset}}._container_h23mk_1{padding:1rem}._container_h23mk_1 h1{font-size:1.6em}._container_h23mk_1 h2{font-size:1em}._container_h23mk_1 p{line-height:1.5}._formContainer_h23mk_17{display:flex;flex-direction:column}._emailInput_h23mk_22{box-sizing:border-box;margin:1rem 0 0;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;width:100%;min-width:0;padding:4px 11px;color:#000000a6;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;outline:none}._emailInput_h23mk_22:hover{border:1px solid var(--brand-primary-color)}._emailInput_h23mk_22:focus{border:1px solid var(--brand-primary-color)}._description_h23mk_52{font-size:.9rem;-webkit-hyphens:auto;hyphens:auto}._actions_h23mk_57{margin-top:1rem;padding-bottom:3rem;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}._validationError_h23mk_67{padding-top:.5em;color:var(--danger-color);font-size:.8em;height:1rem}._submitted_h23mk_74{margin-top:3rem;padding:1rem;border:1px solid var(--brand-primary-color);border-radius:2px}._inputContainer_fi5ao_1{z-index:2000}._blockUserInput_pot9c_1{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:left;position:relative;color:var(--text-secondary-color);font-size:.9rem;padding:.6rem 1rem;animation:_append-animate_pot9c_1 .2s ease-in;z-index:0}@keyframes _append-animate_pot9c_1{0%{opacity:0;top:6rem}to{opacity:1;top:0}}._commandsDropdown_5ytuv_1{position:relative}._commandsDropdown_5ytuv_1 ._commands_5ytuv_1{position:absolute;bottom:calc(100% - 3px);left:0;right:0;padding:1rem;margin:0;width:100%;overflow-y:auto;max-height:30em;border-radius:20px 20px 0 0;box-shadow:0 -8px 24px #0006;background-color:var( --commands-background-color, var(--brand-primary-color) );list-style-type:none}._commandsDropdown_5ytuv_1 ._command_5ytuv_1{display:flex;flex-direction:column;gap:.25rem;cursor:pointer;padding:1rem;border-radius:10px;color:var(--commands-text-color, white)}._commandsDropdown_5ytuv_1 ._command_5ytuv_1 h1{font-size:1.1rem;margin-block:0}._commandsDropdown_5ytuv_1 ._command_5ytuv_1 p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}._commandsDropdown_5ytuv_1 ._commandActive_5ytuv_46{color:var(--commands-active-text-color, white);background-color:var( --commands-active-background-color, rgba(255, 255, 255, .3) )}._commandsSelections_5ytuv_55{display:none}@media screen and (min-width: 1024px){._commandsSelections_5ytuv_55{display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem;padding-inline:1rem;margin-top:1rem}._commandsSelections_5ytuv_55 button{background:transparent;color:var(--text-secondary-color);border:1px solid var(--text-secondary-color);border-radius:20px;padding:.5rem 1rem;cursor:pointer}._commandsSelections_5ytuv_55 button:hover{background:var(--brand-primary-color);border-color:var(--brand-primary-color);color:#fff}}._callToActionContainer_1pojq_1{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;position:relative;padding:.6rem 1rem .3rem;animation:_append-animate_1pojq_1 .2s ease-in;z-index:0}@keyframes _append-animate_1pojq_1{0%{opacity:0;top:6rem}to{opacity:1;top:0}}._callToActionTitle_1pojq_23{font-size:.9rem;color:var(--text-secondary-color);margin-bottom:.2rem;padding-right:.5rem}._rateOverlay_1pojq_30{display:flex;flex-direction:column;justify-content:space-between}._rateOverlay_1pojq_30 h2{font-size:1em;text-align:center}._rateOverlay_1pojq_30 p{line-height:1.5}._rateOverlay_1pojq_30 form{display:flex;flex:1;flex-direction:column;justify-content:space-between}._body_1pojq_52{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem}._footer_1pojq_60 input{font-size:1rem;border:none;box-sizing:border-box;width:100%;outline-width:0;padding:1.3rem 1rem 1rem;text-overflow:ellipsis;color:var(--text-primary-color)}._actions_1pojq_73{display:flex;justify-content:flex-end;align-items:center;line-height:0}._actions_1pojq_73 button{width:100%;border-radius:0}@media screen and (min-width: 1024px){._footer_1pojq_60 input{border-radius:20px}._actions_1pojq_73{margin-top:.5rem}._actions_1pojq_73 button{border-radius:.2rem}}._bubbles_1pojq_101{display:flex;flex-direction:column}@keyframes _appear_1pojq_1{0%{opacity:0}66%{opacity:0}to{opacity:1}}@keyframes _fadeInLeft_1pojq_1{0%{transform:translate(-3rem)}80%{transform:translate(-3rem)}to{transform:translate(0)}}._rateFeedbackBotBubble_1pojq_130{display:flex;align-items:flex-end;margin:1rem 0}._rateFeedbackGuestBubble_1pojq_136{display:flex;align-items:flex-end;justify-content:flex-end}._avatar_1pojq_142{width:var(--avatar-size);height:var(--avatar-size);animation-duration:.5s;animation-timing-function:ease-in;animation-delay:0s;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards;animation-play-state:running;animation-name:_fadeInLeft_1pojq_1}._bubble_1pojq_101{padding:var(--bubble-padding);font-size:.9rem;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards;animation-play-state:running;animation-name:_appear_1pojq_1}._botBubble_1pojq_168{border-radius:var(--bubble-radius-large);background-color:var(--bot-bubble-background-color);margin-left:1rem;color:var(--bot-bubble-text-color)}._botBubble_1pojq_168 a{color:var(--bot-bubble-text-color)!important}._guestBubble_1pojq_179{animation-duration:.25s;align-self:end;border-radius:var(--bubble-radius-large);background-color:var(--guest-bubble-background-color);color:var(--guest-bubble-text-color);margin-left:1rem;display:box;line-clamp:3;box-orient:vertical;overflow:hidden}._guestBubble_1pojq_179 a{color:var(--guest-bubble-text-color)}._rateText_1pojq_198{padding:.75rem;font-size:.9rem}._stars_1pojq_203{display:flex;justify-content:space-between;width:100%;margin:0;padding:0;box-sizing:border-box;line-height:unset;list-style:none;outline:none;font-variant:tabular-nums;font-feature-settings:"tnum"}._starsSmall_1pojq_217{flex:0;justify-content:flex-start;font-size:1.2rem}._starsLarge_1pojq_223{font-size:2rem}._star_1pojq_203{display:inline-block;color:inherit;cursor:pointer}._star_1pojq_203:not(:last-child){margin-right:8px}._starReadonly_1pojq_237{cursor:inherit}._star_1pojq_203>div{transition:all .3s,outline 0s}._starIcon_1pojq_247{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;text-rendering:optimizelegibility}._star_1pojq_203 [aria-checked=true]{color:var(--brand-primary-color, #fadb14)}._star_1pojq_203 [aria-checked=false]{color:var(--color-gray-400)}._starsDescriptionContainer_1pojq_265{display:flex;flex-direction:column;width:100%;padding-top:1rem;padding-bottom:1rem;margin:auto}._starsDescription_1pojq_265{display:flex;flex-direction:row;justify-content:space-between;font-size:.7rem;color:var(--text-secondary-color)}@media (max-width: 350px){._starsLarge_1pojq_223{font-size:1.5rem}}._inputWrapper_e3h44_1{display:flex;justify-content:center;align-items:center;line-height:0;background-color:#fff}@media screen and (min-width: 1024px){._inputWrapper_e3h44_1{border-radius:20px}._withOpenCommands_e3h44_14{border-top-left-radius:0;border-top-right-radius:0}}._messageInputWrapper_e3h44_20{flex:1;margin-right:.5rem;border-radius:inherit}._messageInput_e3h44_20{resize:none;font-size:1rem;font-family:inherit;border:none;border-radius:inherit;height:calc(1em + 3rem);box-sizing:border-box;width:100%;outline-width:0;padding:1.3rem 1rem;text-overflow:ellipsis}._messageInput_e3h44_20:focus{outline:none}._buttons_e3h44_44{padding-right:.5rem;display:flex;justify-content:center;align-items:center}._button_e3h44_44[disabled]{opacity:.4}._button_e3h44_44{display:flex;align-items:center;justify-content:center;width:40px;height:40px;font-family:inherit;color:var(--brand-primary-color);background-color:var(--brand-secondary-color);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:50%;border:none;text-align:center}._button_e3h44_44 svg{margin:2px;height:2em;width:2em;fill:currentColor}._button_e3h44_44:hover,._button_e3h44_44:active,._button_e3h44_44:focus{border:none;outline:none;color:var(--brand-secondary-color);background-color:var(--brand-primary-color)}._button_e3h44_44:not(:last-child){margin-right:.5em}._audioRecorder_g845f_1{display:flex;margin-left:-5px}._audioButton_g845f_6{display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;width:40px;height:40px;border-radius:50%;border:none;text-align:center;color:var(--brand-primary-color);background-color:var(--brand-secondary-color)}._audioButton_g845f_6:hover,._audioButton_g845f_6:active,._audioButton_g845f_6:focus{background-color:var(--brand-primary-color);color:var(--brand-secondary-color);border:none;outline:none}._audioButton_g845f_6 svg{margin:2px;height:2em;width:2em;fill:currentColor}._recorderIcon_g845f_37{width:1.3em;height:1.3em;border-radius:50%;animation:_pulse_g845f_1 2s infinite;margin:auto .6em}@keyframes _pulse_g845f_1{0%{background-color:#fff}40%{background-color:var(--danger-color)}60%{background-color:var(--danger-color)}to{background-color:#fff}}._spinning_g845f_60{width:40px;height:40px;padding:5px;display:block;margin:auto;color:var(--brand-primary-color);animation:_spin_g845f_60 1.2s linear infinite}@keyframes _spin_g845f_60{to{transform:rotate(360deg)}}._quickReplies_83npe_1{display:flex;flex-flow:row wrap;justify-content:flex-end;padding:.4rem 1rem;gap:.5rem}._quickReply_83npe_9{font-size:.8rem;background-color:var(--brand-secondary-color);color:var(--brand-primary-color);border:1px solid var(--brand-primary-color)}._quickReply_83npe_9:active,._quickReply_83npe_9:focus,._quickReply_83npe_9:hover{background-color:var(--brand-primary-color);color:var(--brand-secondary-color);border:1px solid var(--brand-secondary-color);outline:none}._header_3gvbz_1{display:flex;justify-content:space-between;align-items:center;height:var(--header-height);position:relative;background-color:var( --header-background-color, var(--brand-primary-color, white) )}._logoContainer_3gvbz_14{height:inherit;flex:1;padding:var(--header-logo-padding)}._logo_3gvbz_14{height:100%;background-image:var(--header-logo-url);background-repeat:no-repeat;background-size:contain;background-position:left center}._actions_3gvbz_28{display:flex;align-items:center;padding:var(--header-icons-padding);color:var(--header-icon-color, white)}._actions_3gvbz_28 button{background-color:transparent;color:inherit;border:none;cursor:pointer;border-radius:50%;padding:calc(var(--header-icon-size) / 3);margin:4px}._actions_3gvbz_28 button._active_3gvbz_43,._actions_3gvbz_28 button:hover{background-color:rgb(from var(--header-icon-color, white) r g b / 20%)}._actions_3gvbz_28 button svg{width:var(--header-icon-size);height:var(--header-icon-size);display:block}._menuContainer_3gvbz_56{position:relative;display:inline-block}._menu_3gvbz_56{position:absolute;margin-top:.5rem;top:calc(100% - 8px);right:0;left:auto;width:max-content;max-width:300px;padding:.5rem;background-color:var(--header-menu-background-color);box-shadow:var(--header-menu-box-shadow);border-radius:var(--header-menu-border-radius);display:flex;z-index:4000}._menu_3gvbz_56 ul{list-style-type:none;padding:0;margin:0}._menu_3gvbz_56 ul li{display:flex;align-items:center;cursor:pointer}._menu_3gvbz_56 ul li._divider_3gvbz_86{border-bottom:1px solid var(--header-menu-item-divider-color);margin-bottom:5px;padding-bottom:5px}._menu_3gvbz_56 ul li a{display:flex;align-items:center;padding:.5rem;text-decoration:none;border-radius:var(--header-menu-item-border-radius);color:var(--header-menu-item-color);width:100%;transition:background .2s}._menu_3gvbz_56 ul li a:hover,._menu_3gvbz_56 ul li a:focus{background-color:var(--header-menu-item-background-color-hover);outline:none}._menu_3gvbz_56 ul li a svg{margin-right:.5rem;width:1em;height:1em;flex-shrink:0}@media screen and (min-width: 1024px){._header_3gvbz_1{background-color:transparent;border-top-left-radius:0;border-top-right-radius:0}._actions_3gvbz_28 button{font-size:2rem}._actions_3gvbz_28 button:hover{background-color:var(--brand-primary-color);color:#fff}}._chatwindow_rkbir_1{display:flex;flex-direction:column;position:relative;width:100%;height:100vh;height:100svh;overflow:hidden}._chatwindow_rkbir_1 main{flex:1;overflow:hidden}._chatwindow_rkbir_1 aside{display:none}._chatwindowWithAside_rkbir_21{display:grid;position:relative;grid-template-rows:auto 1fr;grid-column-gap:6rem;grid-template-areas:"header" "main"}._chatwindowWithAside_rkbir_21 header{grid-area:header;display:block}._chatwindowWithAside_rkbir_21 main{position:relative;grid-area:main;flex:1}._chatwindowWithAside_rkbir_21 aside{display:flex;flex-direction:column;justify-content:flex-end;position:absolute;inset:0;z-index:1000000;grid-area:main;overflow:hidden;container-type:inline-size;background-color:#00000080}._chatwindowWithAside_rkbir_21 aside:empty{display:none}@media screen and (min-width: 1024px){._chatwindow_rkbir_1{justify-content:center}._chatwindow_rkbir_1 header{padding-inline:2rem;grid-area:header}._chatwindow_rkbir_1 main{grid-area:header;flex:none;overflow:hidden}._chatwindow_rkbir_1 header,._chatwindow_rkbir_1 main{display:block;max-width:50em;width:100%;margin-left:auto;margin-right:auto}._chatwindowWithAside_rkbir_21{grid-template-columns:2fr 1fr;grid-template-areas:"header aside" "main aside"}._chatwindowWithAside_rkbir_21 header{margin-right:unset;padding:1rem 2rem}._chatwindowWithAside_rkbir_21 main{grid-area:main;flex:1;margin-right:unset;padding:0 2rem 1rem}._chatwindowWithAside_rkbir_21 aside{grid-area:aside;animation:none;background-color:unset}}.chat__cms-integration header{display:none}._sourceInfos_vei0l_1{position:relative;display:flex;flex-direction:column;max-height:calc(100svh - var(--header-height) - 2rem);max-height:calc(100% - var(--header-height) - 2rem);height:auto;border-top-left-radius:.6rem;border-top-right-radius:.6rem;background-color:#fff;box-shadow:#00000059 0 5px 15px;transition:max-height .3s linear;border:none;inset:auto 0 0;margin:0;padding:0;width:100%;max-width:100%}._sourceInfos_vei0l_1._waitForLoading_vei0l_24{max-height:0}._sourceInfos_vei0l_1._loadingContent_vei0l_28{max-height:50%}._sourceInfos_vei0l_1 svg{display:block}._sourceHeader_vei0l_37{display:flex;align-items:center;justify-content:space-between;gap:.5rem;touch-action:none;padding:0 .5rem 0 1rem;border-bottom:1px solid var(--color-gray-200)}._sourceHeader_vei0l_37 p{display:-webkit-box;overflow-wrap:break-word;word-break:break-all;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}._sourceHeaderIcon_vei0l_57{font-size:2rem}._sourceContent_vei0l_61{flex:1;padding:1rem 1rem 0;line-height:1.5;overflow-y:auto;overflow-wrap:break-word}._openSourceButton_vei0l_69{margin:1rem;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1rem;border-radius:5rem;text-decoration:none}._openSourceButton_vei0l_69 ._sourceButtonLabel_vei0l_79{display:flex;align-items:center;gap:.5rem}._openSourceButton_vei0l_69 ._sourceButtonLabel_vei0l_79 p{display:-webkit-box;font-size:1rem;margin-block:.5rem;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-align:left}._openSourceButton_vei0l_69 svg{font-size:1.5rem}._closeSourceInfosButton_vei0l_101{background-color:transparent;border:none;cursor:pointer;font-size:1.5rem;margin:0;padding:.25rem;border-radius:50%}._closeSourceInfosButton_vei0l_101:hover{background-color:var(--brand-primary-color);color:#fff}@keyframes _rotate_vei0l_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loadingSourceInfos_vei0l_125{display:flex;align-items:center;justify-content:center;font-size:5rem;margin:5rem 7rem 7rem;color:var(--color-gray-700)}._loading_vei0l_28{animation:_rotate_vei0l_1 2s linear infinite;transform-origin:center}._loadingError_vei0l_139{display:flex;flex-direction:column;gap:2rem;padding:1rem 2rem 2rem}._loadingError_vei0l_139 h1,._loadingError_vei0l_139 p{text-align:center}._loadingError_vei0l_139 img{width:100%}._highlightLoadingInfo_vei0l_155{position:absolute;width:calc(100% - 2rem);bottom:5rem;margin-bottom:1rem;padding:.5rem;border:1px solid var(--color-gray-200);border-radius:.5rem;color:var(--color-gray-700);background-color:#fff;font-size:.875rem;box-shadow:#0000001a 0 0 30px 15px;cursor:pointer}._highlightLoadingInfo_vei0l_155 ._highlightLoadingInfoInnerContainer_vei0l_169{display:flex;gap:1rem;justify-content:center;align-items:center;padding:.5rem 0 .5rem .5rem;color:var(--color-gray-700);font-size:.875rem}._highlightLoadingInfo_vei0l_155 ._highlightLoadingInfoInnerContainer_vei0l_169 ._highlightLoadingInfoContent_vei0l_178{display:flex;flex-direction:column}._highlightLoadingInfo_vei0l_155 ._highlightLoadingInfoInnerContainer_vei0l_169 ._highlightLoadingInfoContent_vei0l_178 h3{margin:0}._highlightLoadingInfo_vei0l_155 ._highlightLoadingInfoInnerContainer_vei0l_169 ._highlightLoadingInfoContent_vei0l_178 p{margin:0;line-height:1.5}._highlightLoadingInfo_vei0l_155 ._highlightLoadingInfoInnerContainer_vei0l_169 svg{flex-shrink:0;font-size:2rem}._highlightLoadingInfo_vei0l_155 ._highlightLoadingInfoCloseIcon_vei0l_198{float:right}._highlightLoader_vei0l_203{position:relative;width:100%;height:2px;overflow:hidden}._highlightLoaderLoading_vei0l_210{position:absolute;height:100%;width:50%;background:linear-gradient(to right,transparent,var(--color-gray-700),transparent);border-radius:4px;animation:_loadingAnim_vei0l_1 5s ease-in-out infinite}@keyframes _loadingAnim_vei0l_1{0%{left:-30%}50%{left:70%}to{left:-30%}}@media screen and (min-width: 1024px){._sourceInfos_vei0l_1{height:100%;max-height:unset;max-width:35rem;width:unset;margin-top:0;margin-left:1rem;border-radius:unset;animation:none;transition:none;top:unset;right:unset;bottom:unset;left:unset}._sourceInfos_vei0l_1._loadingContent_vei0l_28{max-height:100%}._sourceHeader_vei0l_37{padding:0 .5rem 0 2rem}._sourceContent_vei0l_61{padding:2rem 2rem 0}._openSourceButton_vei0l_69{margin:2rem;border-radius:.2rem}._openSourceButton_vei0l_69 p{margin-block:revert}._loadingSourceInfos_vei0l_125{margin:7rem 0 0}._highlightLoader_vei0l_203{height:1px}._highlightLoadingInfo_vei0l_155{width:calc(100% - 4rem);bottom:6rem}@container (min-width: 30rem){._sourceInfos_vei0l_1{margin:2rem;height:calc(100% - 4rem)}}}._container_114wy_1{display:flex;flex-direction:column;height:100%}._body_114wy_7{padding:1rem;overflow-y:auto;flex:1;color:var(--text-primary-color)}._intro_114wy_14{margin-bottom:1em}._intro_114wy_14 h1{font-size:1.3em}._intro_114wy_14 h2{font-size:1em}._intro_114wy_14 p{line-height:1.4}._intro_114wy_14 ul{padding-left:1em}._intro_114wy_14 li{padding-top:.3em;padding-bottom:.3em;line-height:1.4}._footer_114wy_39{padding:1rem}._footnote_114wy_43{margin-top:.75rem;text-align:center;font-size:.8em;color:var(--text-secondary-color)}@media screen and (min-width: 1024px){._container_114wy_1{justify-content:center;background:#fff;border-radius:20px;padding:2rem}._containerWithFootnote_114wy_58{padding-bottom:1rem}._body_114wy_7{max-height:60vh;padding:0 0 1rem;margin-bottom:1rem}._footer_114wy_39{padding:0}}._startChatButton_114wy_73{width:100%}._formFields_114wy_77{display:flex;flex-direction:column;gap:.75em}._formField_114wy_77{display:flex;flex-direction:column;gap:8px}._radio_114wy_89{display:flex;align-items:flex-start;gap:6px;accent-color:var(--brand-primary-color)}._checkbox_114wy_96{display:flex;align-items:flex-start;gap:6px;padding:6px 0;accent-color:var(--brand-primary-color)}._input_114wy_104 input{border-width:1px;border-style:solid;border-color:#d9d9d9;box-sizing:border-box;margin:0;padding:4px 11px;color:#000000e0;font-size:1em;line-height:1.57;list-style:none;font-family:inherit;position:relative;display:inline-block;width:100%;min-width:0;border-radius:6px;transition:all .2s;accent-color:var(--brand-primary-color)}._input_114wy_104 input:focus,._input_114wy_104 input:focus-within{border-color:var(--brand-primary-color);box-shadow:0 0 0 2px #0591ff1a;outline:0;background-color:#fff}._input_114wy_104 input:hover{border-color:var(--brand-primary-color)}._inputLabel_114wy_138{margin-bottom:8px}._selectWrapper_114wy_142{position:relative}._selectWrapper_114wy_142:after{content:"⌄";font-size:1rem;top:2px;right:14px;position:absolute}._select_114wy_142 select{border-width:1px;border-style:solid;border-color:#d9d9d9;box-sizing:border-box;margin:0;padding:4px 11px;color:#000000e0;font-size:1em;line-height:1.57;list-style:none;font-family:inherit;position:relative;display:inline-block;width:100%;min-width:0;border-radius:6px;transition:all .2s;accent-color:var(--brand-primary-color);appearance:none}._select_114wy_142 select:focus,._select_114wy_142 select:focus-within{border-color:var(--brand-primary-color);box-shadow:0 0 0 2px #0591ff1a;outline:0;background-color:#fff}._select_114wy_142 select:hover{border-color:var(--brand-primary-color)}._selectLabel_114wy_188{margin-bottom:8px}:root{--aspect-ratio: calc(16 / 9);--color-gray-100: #e9eff6;--color-gray-200: #d6d6d6;--color-gray-300: #bfbfbf;--color-gray-400: #999999;--color-gray-500: #707070;--color-gray-600: #565656;--color-gray-700: #434343;--color-gray-800: #2e2e2e;--color-gray-900: #1a1a1a;--body-background-color: white;--brand-primary-color: rgb(4, 47, 97);--brand-secondary-color: white;--text-primary-color: var(--color-gray-800);--text-secondary-color: var(--color-gray-500);--text-link-color: var(--text-primary-color);--text-link-color-hover: var(--brand-primary-color);--danger-color: #b11106;--scrollbar-thumb-color: var(--color-gray-300);--header-height: 4em;--header-icon-size: 1.5rem;--header-icons-padding: 1rem .75rem;--header-icon-color: white;--header-logo-padding: 1em;--header-logo-url: url(../logo.svg);--header-menu-border-radius: 10px;--header-menu-background-color: white;--header-menu-box-shadow: 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgba(0, 0, 0, .12), 0 9px 28px 8px rgba(0, 0, 0, .05);--header-menu-item-border-radius: 5px;--header-menu-item-background-color-hover: var(--color-gray-100);--header-menu-item-color: var(--text-primary-color);--header-menu-item-divider-color: var(--color-gray-200);--avatar-size: 2rem;--avatar-radius: 50%;--bot-avatar-background-color: var(--color-gray-100);--agent-avatar-background-color: var(--color-gray-100);--bubble-padding: .9em 1.3em;--bubble-margin-small: 3px;--bubble-margin-large: 1.2rem;--bubble-radius-large: 20px;--bubble-radius-small: 4px;--bot-bubble-background-color: white;--bot-bubble-text-color: var(--text-primary-color);--bot-bubble-border-color: var(--color-gray-700);--bot-bubble-border-width: 2px;--bot-bubble-top-left-radius: var(--bubble-radius-small);--bot-bubble-top-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-left-radius: var(--bubble-radius-small);--bot-bubble-source-background-color: var(--body-background-color);--bot-bubble-source-text-color: var(--bot-bubble-text-color);--guest-bubble-background-color: var(--brand-primary-color);--guest-bubble-text-color: white;--guest-bubble-border-color: white;--guest-bubble-border-width: 0px;--guest-bubble-top-left-radius: var(--bubble-radius-large);--guest-bubble-top-right-radius: var(--bubble-radius-small);--guest-bubble-bottom-right-radius: var(--bubble-radius-small);--guest-bubble-bottom-left-radius: var(--bubble-radius-large)}.chat__large{--header-icon-color: var(--color-gray-800);--header-logo-padding: 0 1em 0 0}[data-title]{--tooltip-min-width: 120px;--tooltip-max-width: min(400px, 80vw);--tooltip-tick-position-top: -10px;--tooltip-tick-position-bottom: unset;--tooltip-position-top: -42px;--tooltip-position-bottom: auto;--tooltip-position-left: auto;--tooltip-position-right: -.5em;--tooltip-border-color: #1f1f1f;--tooltip-border-color-top: var(--tooltip-border-color);--tooltip-border-color-bottom: transparent;position:relative;opacity:1}[data-title]:before{content:"";position:absolute;top:var(--tooltip-tick-position-top);bottom:var(--tooltip-tick-position-bottom);right:35%;border:6px solid transparent;border-top-color:var(--tooltip-border-color-top);border-bottom-color:var(--tooltip-border-color-bottom);z-index:999999;visibility:hidden}[data-title]:after{content:attr(data-title);position:absolute;top:var(--tooltip-position-top);bottom:var(--tooltip-position-bottom);right:var(--tooltip-position-right);left:var(--tooltip-position-left);font-size:14px;line-height:16px;padding:8px 10px;font-family:inherit;white-space:nowrap;border-radius:5px;background-color:#1f1f1f;color:#fafafa;box-shadow:1px 6px 16px #1f1f1f;z-index:99999;visibility:hidden}[data-title]:hover:before,[data-title]:hover:after{opacity:1;transition:all .1s ease .5s;visibility:visible}.tooltip-hidden[data-title]:before,.tooltip-hidden[data-title]:after{transition:inherit;visibility:hidden;display:none}.tooltip--top-right[data-title]{--tooltip-position-left: -1em;--tooltip-position-right: auto}.tooltip--top-center[data-title]{--tooltip-position-top: auto;--tooltip-position-bottom: calc(100% + 1rem) ;--tooltip-tick-position-top: auto;--tooltip-tick-position-bottom: calc(100% + 4px) }.tooltip--top-center[data-title]:after{left:50%;transform:translate(-50%);min-width:var(--tooltip-min-width);max-width:var(--tooltip-max-width);width:max-content;white-space:normal;word-break:break-word;text-align:center;bottom:var(--tooltip-position-bottom);top:var(--tooltip-position-top)}.tooltip--bottom-left[data-title]{--tooltip-position-top: auto;--tooltip-position-bottom: -3em;--tooltip-tick-position-top: unset;--tooltip-tick-position-bottom: -10px;--tooltip-border-color-top: transparent;--tooltip-border-color-bottom: var(--tooltip-border-color)}@supports (scrollbar-color: auto){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) transparent}}@supports not (scrollbar-color: auto){::-webkit-scrollbar{width:7px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:4px;background:var(--scrollbar-thumb-color)}}*{box-sizing:border-box}body{margin:0}input::placeholder,textarea::placeholder{color:#666;opacity:1}svg{fill:currentColor}
@@ -13,8 +13,8 @@
13
13
  <meta name="theme-color" content="#000000" />
14
14
  <meta name="google" content="notranslate" />
15
15
  <title>Bubble Chat Client</title>
16
- <script type="module" crossorigin src="./assets/index-B_267kXd.js"></script>
17
- <link rel="stylesheet" crossorigin href="./assets/index-C8odGRBC.css">
16
+ <script type="module" crossorigin src="./assets/index-DusT2GOr.js"></script>
17
+ <link rel="stylesheet" crossorigin href="./assets/index-DvNFADHS.css">
18
18
  </head>
19
19
 
20
20
  <body>
@@ -1,16 +1,29 @@
1
- var vt=Object.defineProperty;var _t=(m,g,y)=>g in m?vt(m,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):m[g]=y;var ie=(m,g,y)=>_t(m,typeof g!="symbol"?g+"":g,y);(function(){"use strict";function m(){}function g(e){return e()}function y(){return Object.create(null)}function E(e){e.forEach(g)}function P(e){return typeof e=="function"}function H(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let A;function I(e,t){return e===t?!0:(A||(A=document.createElement("a")),A.href=t,e===A.href)}function Oe(e){return Object.keys(e).length===0}const Te=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function O(e,t){e.appendChild(t)}function M(e,t,n){const r=xe(e);if(!r.getElementById(t)){const o=p("style");o.id=t,o.textContent=n,Ue(r,o)}}function xe(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ue(e,t){return O(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null)}function w(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function se(e){return document.createTextNode(e)}function j(){return se(" ")}function Le(){return se("")}function ae(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Ae(e){return Array.from(e.childNodes)}function ce(e,t,n){e.classList.toggle(t,!!n)}let T;function x(e){T=e}function Ie(){if(!T)throw new Error("Function called outside component initialization");return T}function le(e){Ie().$$.on_mount.push(e)}const k=[],fe=[];let C=[];const de=[],Re=Promise.resolve();let B=!1;function qe(){B||(B=!0,Re.then(ue))}function F(e){C.push(e)}const G=new Set;let S=0;function ue(){if(S!==0)return;const e=T;do{try{for(;S<k.length;){const t=k[S];S++,x(t),De(t.$$)}}catch(t){throw k.length=0,S=0,t}for(x(null),k.length=0,S=0;fe.length;)fe.pop()();for(let t=0;t<C.length;t+=1){const n=C[t];G.has(n)||(G.add(n),n())}C.length=0}while(k.length);for(;de.length;)de.pop()();B=!1,G.clear(),x(e)}function De(e){if(e.fragment!==null){e.update(),E(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(F)}}function We(e){const t=[],n=[];C.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),C=t}const R=new Set;let ze;function Y(e,t){e&&e.i&&(R.delete(e),e.i(t))}function he(e,t,n,r){if(e&&e.o){if(R.has(e))return;R.add(e),ze.c.push(()=>{R.delete(e)}),e.o(t)}}function me(e){e&&e.c()}function K(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),F(()=>{const i=e.$$.on_mount.map(g).filter(P);e.$$.on_destroy?e.$$.on_destroy.push(...i):E(i),e.$$.on_mount=[]}),o.forEach(F)}function V(e,t){const n=e.$$;n.fragment!==null&&(We(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ne(e,t){e.$$.dirty[0]===-1&&(k.push(e),qe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function J(e,t,n,r,o,i,s=null,c=[-1]){const f=T;x(e);const d=e.$$={fragment:null,ctx:[],props:i,update:m,not_equal:o,bound:y(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),callbacks:y(),dirty:c,skip_bound:!1,root:t.target||f.$$.root};s&&s(d.root);let l=!1;if(d.ctx=n?n(e,t.props||{},(a,_,...b)=>{const z=b.length?b[0]:_;return d.ctx&&o(d.ctx[a],d.ctx[a]=z)&&(!d.skip_bound&&d.bound[a]&&d.bound[a](z),l&&Ne(e,a)),_}):[],d.update(),l=!0,E(d.before_update),d.fragment=r?r(d.ctx):!1,t.target){if(t.hydrate){const a=Ae(t.target);d.fragment&&d.fragment.l(a),a.forEach(w)}else d.fragment&&d.fragment.c();t.intro&&Y(e.$$.fragment),K(e,t.target,t.anchor),ue()}x(f)}class Q{constructor(){ie(this,"$$");ie(this,"$$set")}$destroy(){V(this,1),this.$destroy=m}$on(t,n){if(!P(n))return m;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!Oe(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Pe="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pe);function He(e){M(e,"svelte-icor79",`.svelte-icor79,.svelte-icor79:before,.svelte-icor79:after{box-sizing:border-box}.bot-border.svelte-icor79{position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:transparent;opacity:1;transition:transform 200ms,
2
- opacity 100ms 100ms,
3
- all 150ms;z-index:2147483647}.bot-border.closed.svelte-icor79{transform:translateY(100vh);opacity:0}.bot.svelte-icor79{display:block;width:100%;flex:1 0 auto;margin:0}@media screen and (min-width: 768px){#chat-frame.svelte-icor79{border-radius:var(--window-border-radius, 8px)}.bot-border.svelte-icor79{height:var(--window-height, 43em);max-height:calc(100vh - 2em);width:var(--window-width, 25em);top:auto;right:1em;bottom:1em;left:auto;border-radius:var(--window-border-radius, 8px)}.bot-border.closed.svelte-icor79{transform:translateY(var(--window-height, 43em));opacity:0}}p.svelte-icor79,pre.svelte-icor79{max-width:300px}pre.svelte-icor79{font-size:0.6em;line-height:0.5}`)}function Me(e){let t,n,r;return{c(){t=p("p"),t.textContent=`Please make sure that the script tag has 'id="chatbot"' and the attribute
4
- 'data-server' with the full qualified URL to the chatbot-server.`,n=j(),r=p("pre"),r.innerHTML=` <code class="svelte-icor79">
1
+ var Wr=Object.defineProperty;var jr=(q,D,Y)=>D in q?Wr(q,D,{enumerable:!0,configurable:!0,writable:!0,value:Y}):q[D]=Y;var Qe=(q,D,Y)=>jr(q,typeof D!="symbol"?D+"":D,Y);(function(){"use strict";var Gt;const q=!1;var D=Array.isArray,Y=Array.prototype.indexOf,Kt=Array.from,Vt=Object.defineProperty,G=Object.getOwnPropertyDescriptor,Zt=Object.getOwnPropertyDescriptors,Jt=Object.prototype,Qt=Array.prototype,Xe=Object.getPrototypeOf,$e=Object.isExtensible;function Xt(e){for(var t=0;t<e.length;t++)e[t]()}const C=2,et=4,xe=8,Te=16,U=32,K=64,Se=128,T=256,oe=512,A=1024,F=2048,j=4096,V=8192,ke=16384,tt=32768,Oe=65536,nt=1<<17,rt=1<<18,it=1<<19,Ce=1<<20,ae=Symbol("$state"),$t=Symbol("legacy props"),en=Symbol(""),ot=new class extends Error{constructor(){super(...arguments);Qe(this,"name","StaleReactionError");Qe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function at(e){return e===this.v}function tn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nn(e){return!tn(e,this.v)}function rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function on(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function an(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ln(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function fn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function un(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function cn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let dn=!1;const vn=1,hn=4,_n=8,pn=16,wn=1,bn=2,x=Symbol(),mn="http://www.w3.org/1999/xhtml";function gn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let S=null;function lt(e){S=e}function le(e,t=!1,n){var r=S={p:S,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};In(()=>{r.d=!0})}function se(e){const t=S;if(t!==null){const a=t.e;if(a!==null){var n=p,r=h;t.e=null;try{for(var i=0;i<a.length;i++){var o=a[i];Q(o.effect),B(o.reaction),wt(o.fn)}}finally{Q(n),B(r)}}S=t.p,t.m=!0}return{}}function st(){return!0}function Z(e){if(typeof e!="object"||e===null||ae in e)return e;const t=Xe(e);if(t!==Jt&&t!==Qt)return e;var n=new Map,r=D(e),i=L(0),o=h,a=s=>{var l=h;B(o);var f=s();return B(l),f};return r&&n.set("length",L(e.length)),new Proxy(e,{defineProperty(s,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&fn();var d=n.get(l);return d===void 0?d=a(()=>{var u=L(f.value);return n.set(l,u),u}):I(d,f.value,!0),!0},deleteProperty(s,l){var f=n.get(l);if(f===void 0){if(l in s){const c=a(()=>L(x));n.set(l,c),Ae(i)}}else{if(r&&typeof l=="string"){var d=n.get("length"),u=Number(l);Number.isInteger(u)&&u<d.v&&I(d,u)}I(f,x),Ae(i)}return!0},get(s,l,f){var v;if(l===ae)return e;var d=n.get(l),u=l in s;if(d===void 0&&(!u||(v=G(s,l))!=null&&v.writable)&&(d=a(()=>{var w=Z(u?s[l]:x),b=L(w);return b}),n.set(l,d)),d!==void 0){var c=O(d);return c===x?void 0:c}return Reflect.get(s,l,f)},getOwnPropertyDescriptor(s,l){var f=Reflect.getOwnPropertyDescriptor(s,l);if(f&&"value"in f){var d=n.get(l);d&&(f.value=O(d))}else if(f===void 0){var u=n.get(l),c=u==null?void 0:u.v;if(u!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(s,l){var c;if(l===ae)return!0;var f=n.get(l),d=f!==void 0&&f.v!==x||Reflect.has(s,l);if(f!==void 0||p!==null&&(!d||(c=G(s,l))!=null&&c.writable)){f===void 0&&(f=a(()=>{var v=d?Z(s[l]):x,w=L(v);return w}),n.set(l,f));var u=O(f);if(u===x)return!1}return d},set(s,l,f,d){var m;var u=n.get(l),c=l in s;if(r&&l==="length")for(var v=f;v<u.v;v+=1){var w=n.get(v+"");w!==void 0?I(w,x):v in s&&(w=a(()=>L(x)),n.set(v+"",w))}if(u===void 0)(!c||(m=G(s,l))!=null&&m.writable)&&(u=a(()=>L(void 0)),I(u,Z(f)),n.set(l,u));else{c=u.v!==x;var b=a(()=>Z(f));I(u,b)}var R=Reflect.getOwnPropertyDescriptor(s,l);if(R!=null&&R.set&&R.set.call(d,f),!c){if(r&&typeof l=="string"){var y=n.get("length"),_=Number(l);Number.isInteger(_)&&_>=y.v&&I(y,_+1)}Ae(i)}return!0},ownKeys(s){O(i);var l=Reflect.ownKeys(s).filter(u=>{var c=n.get(u);return c===void 0||c.v!==x});for(var[f,d]of n)d.v!==x&&!(f in s)&&l.push(f);return l},setPrototypeOf(){un()}})}function Ae(e,t=1){I(e,e.v+t)}function Ie(e){var t=C|F,n=h!==null&&(h.f&C)!==0?h:null;return p===null||n!==null&&(n.f&T)!==0?t|=T:p.f|=it,{ctx:S,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??p,ac:null}}function yn(e){const t=Ie(e);return t.equals=nn,t}function ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function En(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return t;t=t.parent}return null}function ut(e){var t,n=p;Q(En(e));try{ft(e),t=At(e)}finally{Q(n)}return t}function ct(e){var t=ut(e);if(e.equals(t)||(e.v=t,e.wv=Ot()),!J){var n=(W||(e.f&T)!==0)&&e.deps!==null?j:A;M(e,n)}}const te=new Map;function xn(e,t){var n={f:0,v:e,reactions:null,equals:at,rv:0,wv:0};return n}function L(e,t){const n=xn(e);return qn(n),n}function I(e,t,n=!1){h!==null&&(!P||(h.f&nt)!==0)&&st()&&(h.f&(C|Te|nt))!==0&&!(g!=null&&g[1].includes(e)&&g[0]===h)&&cn();let r=n?Z(t):t;return Tn(e,r)}function Tn(e,t){if(!e.equals(t)){var n=e.v;J?te.set(e,t):te.set(e,n),e.v=t,(e.f&C)!==0&&((e.f&F)!==0&&ut(e),M(e,(e.f&T)===0?A:j)),e.wv=Ot(),dt(e,F),p!==null&&(p.f&A)!==0&&(p.f&(U|K))===0&&(N===null?Bn([e]):N.push(e))}return t}function dt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i],a=o.f;(a&F)===0&&(M(o,t),(a&(A|T))!==0&&((a&C)!==0?dt(o,j):qe(o)))}}var vt,ht,_t,pt;function Sn(){if(vt===void 0){vt=window,ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;_t=G(t,"firstChild").get,pt=G(t,"nextSibling").get,$e(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),$e(n)&&(n.__t=void 0)}}function Ne(e=""){return document.createTextNode(e)}function fe(e){return _t.call(e)}function Re(e){return pt.call(e)}function Le(e,t){return fe(e)}function kn(e,t){{var n=fe(e);return n instanceof Comment&&n.data===""?Re(n):n}}function On(e,t=1,n=!1){let r=e;for(;t--;)r=Re(r);return r}function Cn(e){p===null&&h===null&&an(),h!==null&&(h.f&T)!==0&&p===null&&on(),J&&rn()}function An(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ne(e,t,n,r=!0){var i=p,o={ctx:S,deps:null,nodes_start:null,nodes_end:null,f:e|F,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Fe(o),o.f|=tt}catch(l){throw H(o),l}else t!==null&&qe(o);var a=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(it|Se))===0;if(!a&&r&&(i!==null&&An(o,i),h!==null&&(h.f&C)!==0)){var s=h;(s.effects??(s.effects=[])).push(o)}return o}function In(e){const t=ne(xe,null,!1);return M(t,A),t.teardown=e,t}function Nn(e){Cn();var t=p!==null&&(p.f&U)!==0&&S!==null&&!S.m;if(t){var n=S;(n.e??(n.e=[])).push({fn:e,effect:p,reaction:h})}else{var r=wt(e);return r}}function Rn(e){const t=ne(K,e,!0);return(n={})=>new Promise(r=>{n.outro?Me(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function wt(e){return ne(et,e,!1)}function ue(e,t=[],n=Ie){const r=t.map(n);return De(()=>e(...r.map(O)))}function De(e,t=0){var n=ne(xe|Te|t,e,!0);return n}function Pe(e,t=!0){return ne(xe|U,e,!0,t)}function bt(e){var t=e.teardown;if(t!==null){const n=J,r=h;St(!0),B(null);try{t.call(null)}finally{St(n),B(r)}}}function mt(e,t=!1){var i;var n=e.first;for(e.first=e.last=null;n!==null;){(i=n.ac)==null||i.abort(ot);var r=n.next;(n.f&K)!==0?n.parent=null:H(n,t),n=r}}function Ln(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&rt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Dn(e.nodes_start,e.nodes_end),n=!0),mt(e,t&&!n),pe(e,0),M(e,ke);var r=e.transitions;if(r!==null)for(const o of r)o.stop();bt(e);var i=e.parent;i!==null&&i.first!==null&&gt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Dn(e,t){for(;e!==null;){var n=e===t?null:Re(e);e.remove(),e=n}}function gt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Me(e,t){var n=[];yt(e,n,!0),Pn(n,()=>{H(e),t&&t()})}function Pn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function yt(e,t,n){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Oe)!==0||(r.f&U)!==0;yt(r,t,o?n:!1),r=i}}}function Et(e){xt(e,!0)}function xt(e,t){if((e.f&V)!==0){e.f^=V;for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Oe)!==0||(n.f&U)!==0;xt(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let ce=[];function Mn(){var e=ce;ce=[],Xt(e)}function Un(e){ce.length===0&&queueMicrotask(Mn),ce.push(e)}function Fn(e){var t=p;if((t.f&tt)===0){if((t.f&Se)===0)throw e;t.fn(e)}else Tt(e,t)}function Tt(e,t){for(;t!==null;){if((t.f&Se)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Ue=!1,de=null,z=!1,J=!1;function St(e){J=e}let ve=[],Hr=[],h=null,P=!1;function B(e){h=e}let p=null;function Q(e){p=e}let g=null;function qn(e){h!==null&&h.f&Ce&&(g===null?g=[h,[e]]:g[1].push(e))}let E=null,k=0,N=null;function Bn(e){N=e}let kt=1,he=0,W=!1;function Ot(){return++kt}function _e(e){var u;var t=e.f;if((t&F)!==0)return!0;if((t&j)!==0){var n=e.deps,r=(t&T)!==0;if(n!==null){var i,o,a=(t&oe)!==0,s=r&&p!==null&&!W,l=n.length;if(a||s){var f=e,d=f.parent;for(i=0;i<l;i++)o=n[i],(a||!((u=o==null?void 0:o.reactions)!=null&&u.includes(f)))&&(o.reactions??(o.reactions=[])).push(f);a&&(f.f^=oe),s&&d!==null&&(d.f&T)===0&&(f.f^=T)}for(i=0;i<l;i++)if(o=n[i],_e(o)&&ct(o),o.wv>e.wv)return!0}(!r||p!==null&&!W)&&M(e,A)}return!1}function Ct(e,t,n=!0){var r=e.reactions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];g!=null&&g[1].includes(e)&&g[0]===h||((o.f&C)!==0?Ct(o,t,!1):t===o&&(n?M(o,F):(o.f&A)!==0&&M(o,j),qe(o)))}}function At(e){var v;var t=E,n=k,r=N,i=h,o=W,a=g,s=S,l=P,f=e.f;E=null,k=0,N=null,W=(f&T)!==0&&(P||!z||h===null),h=(f&(U|K))===0?e:null,g=null,lt(e.ctx),P=!1,he++,e.f|=Ce,e.ac!==null&&(e.ac.abort(ot),e.ac=null);try{var d=(0,e.fn)(),u=e.deps;if(E!==null){var c;if(pe(e,k),u!==null&&k>0)for(u.length=k+E.length,c=0;c<E.length;c++)u[k+c]=E[c];else e.deps=u=E;if(!W||(f&C)!==0&&e.reactions!==null)for(c=k;c<u.length;c++)((v=u[c]).reactions??(v.reactions=[])).push(e)}else u!==null&&k<u.length&&(pe(e,k),u.length=k);if(st()&&N!==null&&!P&&u!==null&&(e.f&(C|j|F))===0)for(c=0;c<N.length;c++)Ct(N[c],e);return i!==null&&i!==e&&(he++,N!==null&&(r===null?r=N:r.push(...N))),d}catch(w){Fn(w)}finally{E=t,k=n,N=r,h=i,W=o,g=a,lt(s),P=l,e.f^=Ce}}function Wn(e,t){let n=t.reactions;if(n!==null){var r=Y.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&C)!==0&&(E===null||!E.includes(t))&&(M(t,j),(t.f&(T|oe))===0&&(t.f^=oe),ft(t),pe(t,0))}function pe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Wn(e,n[r])}function Fe(e){var t=e.f;if((t&ke)===0){M(e,A);var n=p,r=z;p=e,z=!0;try{(t&Te)!==0?Ln(e):mt(e),bt(e);var i=At(e);e.teardown=typeof i=="function"?i:null,e.wv=kt;var o;q&&dn&&(e.f&F)!==0&&e.deps}finally{z=r,p=n}}}function jn(){try{ln()}catch(e){if(de!==null)Tt(e,de);else throw e}}function Hn(){var e=z;try{var t=0;for(z=!0;ve.length>0;){t++>1e3&&jn();var n=ve,r=n.length;ve=[];for(var i=0;i<r;i++){var o=Yn(n[i]);zn(o)}te.clear()}}finally{Ue=!1,z=e,de=null}}function zn(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var r=e[n];(r.f&(ke|V))===0&&_e(r)&&(Fe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?gt(r):r.fn=null))}}function qe(e){Ue||(Ue=!0,queueMicrotask(Hn));for(var t=de=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(K|U))!==0){if((n&A)===0)return;t.f^=A}}ve.push(t)}function Yn(e){for(var t=[],n=e;n!==null;){var r=n.f,i=(r&(U|K))!==0,o=i&&(r&A)!==0;if(!o&&(r&V)===0){(r&et)!==0?t.push(n):i?n.f^=A:_e(n)&&Fe(n);var a=n.first;if(a!==null){n=a;continue}}var s=n.parent;for(n=n.next;n===null&&s!==null;)n=s.next,s=s.parent}return t}function O(e){var t=e.f,n=(t&C)!==0;if(h!==null&&!P){if(!(g!=null&&g[1].includes(e))||g[0]!==h){var r=h.deps;e.rv<he&&(e.rv=he,E===null&&r!==null&&r[k]===e?k++:E===null?E=[e]:(!W||!E.includes(e))&&E.push(e))}}else if(n&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&T)===0&&(i.f^=T)}return n&&(i=e,_e(i)&&ct(i)),J&&te.has(e)?te.get(e):e.v}function It(e){var t=P;try{return P=!0,e()}finally{P=t}}const Gn=-7169;function M(e,t){e.f=e.f&Gn|t}const Kn=["touchstart","touchmove"];function Vn(e){return Kn.includes(e)}const Nt=new Set,Be=new Set;function Zn(e){for(var t=0;t<e.length;t++)Nt.add(e[t]);for(var n of Be)n(e)}function we(e){var _;var t=this,n=t.ownerDocument,r=e.type,i=((_=e.composedPath)==null?void 0:_.call(e))||[],o=i[0]||e.target,a=0,s=e.__root;if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(o=i[a]||e.target,o!==t){Vt(e,"currentTarget",{configurable:!0,get(){return o||n}});var d=h,u=p;B(null),Q(null);try{for(var c,v=[];o!==null;){var w=o.assignedSlot||o.parentNode||o.host||null;try{var b=o["__"+r];if(b!=null&&(!o.disabled||e.target===o))if(D(b)){var[R,...y]=b;R.apply(o,[e,...y])}else b.call(o,e)}catch(m){c?v.push(m):c=m}if(e.cancelBubble||w===t||w===null)break;o=w}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,B(d),Q(u)}}}function Jn(e){var t;t=document.head.appendChild(Ne());try{De(()=>e(t),rt)}finally{}}function Qn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function We(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function re(e,t){var n=(t&wn)!==0,r=(t&bn)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=Qn(o?e:"<!>"+e),n||(i=fe(i)));var a=r||ht?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=fe(a),l=a.lastChild;We(s,l)}else We(a,a);return a}}function Xn(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ne();return e.append(t,n),We(t,n),e}function X(e,t){e!==null&&e.before(t)}function $n(e,t){return er(e,t)}const $=new Map;function er(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0}){Sn();var s=new Set,l=u=>{for(var c=0;c<u.length;c++){var v=u[c];if(!s.has(v)){s.add(v);var w=Vn(v);t.addEventListener(v,we,{passive:w});var b=$.get(v);b===void 0?(document.addEventListener(v,we,{passive:w}),$.set(v,1)):$.set(v,b+1)}}};l(Kt(Nt)),Be.add(l);var f=void 0,d=Rn(()=>{var u=n??t.appendChild(Ne());return Pe(()=>{if(o){le({});var c=S;c.c=o}i&&(r.$$events=i),f=e(u,r)||{},o&&se()}),()=>{var w;for(var c of s){t.removeEventListener(c,we);var v=$.get(c);--v===0?(document.removeEventListener(c,we),$.delete(c)):$.set(c,v)}Be.delete(l),u!==n&&((w=u.parentNode)==null||w.removeChild(u))}});return tr.set(f,d),f}let tr=new WeakMap;function nr(e,t,[n,r]=[0,0]){var i=e,o=null,a=null,s=x,l=n>0?Oe:0,f=!1;const d=(c,v=!0)=>{f=!0,u(v,c)},u=(c,v)=>{s!==(s=c)&&(s?(o?Et(o):v&&(o=Pe(()=>v(i))),a&&Me(a,()=>{a=null})):(a?Et(a):v&&(a=Pe(()=>v(i,[n+1,r]))),o&&Me(o,()=>{o=null})))};De(()=>{f=!1,t(d),f||u(null,null)},l)}function je(e,t){Un(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Rt=[...`
2
+ \r\f \v\uFEFF`];function rr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,a=0;(a=r.indexOf(i,a))>=0;){var s=a+o;(a===0||Rt.includes(r[a-1]))&&(s===r.length||Rt.includes(r[s]))?r=(a===0?"":r.substring(0,a))+r.substring(s+1):a=s}}return r===""?null:r}function Lt(e,t,n,r,i,o){var a=e.__className;if(a!==n||a===void 0){var s=rr(n,r,o);s==null?e.removeAttribute("class"):e.className=s,e.__className=n}else if(o&&i!==o)for(var l in o){var f=!!o[l];(i==null||f!==!!i[l])&&e.classList.toggle(l,f)}return o}const ir=Symbol("is custom element"),or=Symbol("is html");function ee(e,t,n,r){var i=ar(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[en]=n),n==null?e.removeAttribute(t):typeof n!="string"&&lr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ar(e){return e.__attributes??(e.__attributes={[ir]:e.nodeName.includes("-"),[or]:e.namespaceURI===mn})}var Dt=new Map;function lr(e){var t=Dt.get(e.nodeName);if(t)return t;Dt.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=Zt(r);for(var o in n)n[o].set&&t.push(o);r=Xe(r)}return t}let be=!1;function sr(e){var t=be;try{return be=!1,[e(),be]}finally{be=t}}function fr(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function He(e,t,n,r){var R;var i=(n&_n)!==0,o=(n&pn)!==0,a=r,s=!0,l=()=>(s&&(s=!1,a=o?It(r):r),a),f;if(i){var d=ae in e||$t in e;f=((R=G(e,t))==null?void 0:R.set)??(d&&t in e?y=>e[t]=y:void 0)}var u,c=!1;i?[u,c]=sr(()=>e[t]):u=e[t],u===void 0&&r!==void 0&&(u=l(),f&&(sn(),f(u)));var v;if(v=()=>{var y=e[t];return y===void 0?l():(s=!0,y)},(n&hn)===0)return v;if(f){var w=e.$$legacy;return function(y,_){return arguments.length>0?((!_||w||c)&&f(_?v():y),y):v()}}var b=((n&vn)!==0?Ie:yn)(v);return i&&O(b),function(y,_){if(arguments.length>0){const m=_?O(b):i?Z(y):y;return I(b,m),a!==void 0&&(a=m),y}return fr(b)?b.v:O(b)}}function Pt(e){S===null&&gn(),Nn(()=>{const t=It(e);if(typeof t=="function")return t})}const ur="5";typeof window<"u"&&((Gt=window.__svelte??(window.__svelte={})).v??(Gt.v=new Set)).add(ur);var cr=re('<div><iframe id="chat-frame" title="Chat" class="bot svelte-b4a27v" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),dr=re(`<p class="svelte-b4a27v">Please make sure that the script tag has 'id="chatbot"' and the attribute
3
+ 'data-server' with the full qualified URL to the chatbot-server.</p> <pre class="svelte-b4a27v">
4
+ <code class="svelte-b4a27v">
5
5
  &lt;script
6
- <br class="svelte-icor79"/>
7
- id=&quot;chatbot&quot;
8
- <br class="svelte-icor79"/>
9
- data-server=&quot;https://server.com/webclient&quot;
10
- <br class="svelte-icor79"/>
6
+ <br class="svelte-b4a27v"/>
7
+ id="chatbot"
8
+ <br class="svelte-b4a27v"/>
9
+ data-server="https://server.com/webclient"
10
+ <br class="svelte-b4a27v"/>
11
11
  defer
12
- <br class="svelte-icor79"/>
13
- src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;
12
+ <br class="svelte-b4a27v"/>
13
+ src="https://server.com/webclient/embed/bundle.js"&gt; &lt;/script&gt;
14
14
  </code>
15
- `,u(t,"class","svelte-icor79"),u(r,"class","svelte-icor79")},m(o,i){v(o,t,i),v(o,n,i),v(o,r,i)},p:m,d(o){o&&(w(t),w(n),w(r))}}}function je(e){let t,n,r,o;return{c(){t=p("div"),n=p("iframe"),u(n,"id","chat-frame"),u(n,"title","Chat"),u(n,"class","bot svelte-icor79"),I(n.src,r=`${e[0]}${e[0].indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(e[1]??"")}`)||u(n,"src",r),u(n,"frameborder","0"),u(n,"allow","microphone; clipboard-write"),n.allowFullscreen=!0,u(t,"class","bot-border svelte-icor79"),u(t,"aria-hidden",o=e[2]?"false":"true"),ce(t,"closed",!e[2])},m(i,s){v(i,t,s),O(t,n)},p(i,s){s&3&&!I(n.src,r=`${i[0]}${i[0].indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(i[1]??"")}`)&&u(n,"src",r),s&4&&o!==(o=i[2]?"false":"true")&&u(t,"aria-hidden",o),s&4&&ce(t,"closed",!i[2])},d(i){i&&w(t)}}}function Be(e){let t;function n(i,s){return i[0]?je:Me}let r=n(e),o=r(e);return{c(){o.c(),t=Le()},m(i,s){o.m(i,s),v(i,t,s)},p(i,[s]){r===(r=n(i))&&o?o.p(i,s):(o.d(1),o=r(i),o&&(o.c(),o.m(t.parentNode,t)))},i:m,o:m,d(i){i&&w(t),o.d(i)}}}function Fe(e,t,n){let{server:r}=t,{referrer:o}=t,{open:i}=t,{assetsUrl:s}=t,{chatStarted:c}=t,{onToggle:f}=t,{onRestartChat:d}=t,{onLoad:l}=t;return le(()=>{var a;(a=document.getElementById("chat-frame"))==null||a.addEventListener("load",l)}),e.$$set=a=>{"server"in a&&n(0,r=a.server),"referrer"in a&&n(1,o=a.referrer),"open"in a&&n(2,i=a.open),"assetsUrl"in a&&n(3,s=a.assetsUrl),"chatStarted"in a&&n(4,c=a.chatStarted),"onToggle"in a&&n(5,f=a.onToggle),"onRestartChat"in a&&n(6,d=a.onRestartChat),"onLoad"in a&&n(7,l=a.onLoad)},[r,o,i,s,c,f,d,l]}class Ge extends Q{constructor(t){super(),J(this,t,Fe,Be,H,{server:0,referrer:1,open:2,assetsUrl:3,chatStarted:4,onToggle:5,onRestartChat:6,onLoad:7},He)}}function Ye(e){M(e,"svelte-6wt8q2",`.svelte-6wt8q2,.svelte-6wt8q2:before,.svelte-6wt8q2:after{box-sizing:border-box}.chat-button-wrapper.svelte-6wt8q2{position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999}@media screen and (min-width: 768px){.chat-button-wrapper.svelte-6wt8q2{top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em)}}.chat-button.svelte-6wt8q2{display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms,
16
- box-shadow 100ms}.chat-button.svelte-6wt8q2:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}`)}function Ke(e){let t,n,r,o,i,s;return{c(){t=p("div"),n=p("img"),u(n,"class","chat-button svelte-6wt8q2"),u(n,"alt","Open chat window"),I(n.src,r=`${e[0]}/fab.svg`)||u(n,"src",r),u(t,"class","chat-button-wrapper svelte-6wt8q2"),u(t,"tabindex","0"),u(t,"role","button"),u(t,"aria-label","Open chat window"),u(t,"aria-expanded",o=e[2]?"true":"false")},m(c,f){v(c,t,f),O(t,n),i||(s=[ae(t,"click",function(){P(e[1])&&e[1].apply(this,arguments)}),ae(t,"keydown",e[3])],i=!0)},p(c,[f]){e=c,f&1&&!I(n.src,r=`${e[0]}/fab.svg`)&&u(n,"src",r),f&4&&o!==(o=e[2]?"true":"false")&&u(t,"aria-expanded",o)},i:m,o:m,d(c){c&&w(t),i=!1,E(s)}}}function Ve(e,t,n){let{assetsUrl:r}=t,{onToggle:o}=t,{open:i}=t;function s(c){const f=c.key;(f==="ArrowDown"||f==="ArrowRight"||f==="Enter"||f===" "||f==="Space")&&(c.stopPropagation(),o())}return e.$$set=c=>{"assetsUrl"in c&&n(0,r=c.assetsUrl),"onToggle"in c&&n(1,o=c.onToggle),"open"in c&&n(2,i=c.open)},[r,o,i,s]}class Je extends Q{constructor(t){super(),J(this,t,Ve,Ke,H,{assetsUrl:0,onToggle:1,open:2},Ye)}}let be=!1;function Qe(e){be=e}function Xe(){return be}/*! js-cookie v3.0.5 | MIT */function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Ze={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function X(e,t){function n(o,i,s){if(!(typeof document>"u")){s=q({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var f in s)s[f]&&(c+="; "+f,s[f]!==!0&&(c+="="+s[f].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},c=0;c<i.length;c++){var f=i[c].split("="),d=f.slice(1).join("=");try{var l=decodeURIComponent(f[0]);if(s[l]=e.read(d,l),o===l)break}catch{}}return o?s[o]:s}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",q({},i,{expires:-1}))},withAttributes:function(o){return X(this.converter,q({},this.attributes,o))},withConverter:function(o){return X(q({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ge=X(Ze,{path:"/"});const we="bubble-chat-window-state",pe=()=>{switch(ge.get(we)){case"open":return!0;case"closed":return!1;default:return}},ve=e=>{const t=new Date(new Date().getTime()+288e5);ge.set(we,e,{expires:t})},Z=[];let $=pe();function ee(){$=!0,ve("open"),Z.forEach(function(e){e.call(window,!0)})}function D(){$=!1,ve("closed"),Z.forEach(function(e){e.call(window,!1)})}function te(){$?D():ee()}function _e(){ne({type:"RESTART_CHAT"})}function $e(e){ne({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function et(e){ne({type:"TRIGGER_STORY",story:e})}function ne(e){var n;const t=document.getElementById("chat-frame");(n=t==null?void 0:t.contentWindow)==null||n.postMessage(e,"*")}function ye(e,t){switch(e){case"ON_CHAT_WINDOW_STATE_CHANGE":Z.push(t);break;default:throw new Error("Unsupported event "+e)}}const tt=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:D,enterGuestMessage:$e,isChatbotLoaded:Xe,openChatWindow:ee,restartChat:_e,subscribe:ye,toggleChatWindow:te,triggerStory:et},Symbol.toStringTag,{value:"Module"}));function nt(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}const ot=()=>{nt()&&document.querySelectorAll("html, body").forEach(e=>{e.classList.add("iOS-device")})},rt=e=>{"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},it=(e,t,n,r,o)=>{window.addEventListener("message",i=>{const s=i.data;switch(s.type){case"webclient.chat.started":e();break;case"webclient.chat.ended":t();break;case"webclient.window.expand":n(s.devices,s.initial);break;case"webclient.window.close":r();break;case"webclient.change.url":o(s.url);break;case"google.tag.event":rt(s.payload);break}},!1)},st=e=>new Promise(t=>{const n=document.getElementById(e);n?(n.onload=()=>{t(!0)},n.onerror=()=>{console.error("Failed to load CSS file: custom.css"),t(!1)}):(console.error("No custom.css file found"),t(!1))}),{document:at}=Te;function ct(e){M(e,"svelte-4k2y00",".bubble-chat.svelte-4k2y00{font-size:16px;visibility:hidden;opacity:0}.bubble-chat.chatbot-ready.svelte-4k2y00{visibility:visible;opacity:1}")}function lt(e){let t,n,r,o,i,s,c,f,d;return i=new Je({props:{assetsUrl:e[3],open:e[6],onToggle:te}}),c=new Ge({props:{server:e[1],referrer:e[2],assetsUrl:e[3],open:e[6],chatStarted:e[0],onToggle:te,onRestartChat:_e,onLoad:e[7]}}),{c(){t=p("link"),r=j(),o=p("div"),me(i.$$.fragment),s=j(),me(c.$$.fragment),u(t,"id",ke),u(t,"rel","stylesheet"),u(t,"href",n=`${e[3]}/custom.css`),u(o,"class",f="bubble-chat "+(e[4]&&e[5]?"chatbot-ready":"")+" svelte-4k2y00")},m(l,a){O(at.head,t),v(l,r,a),v(l,o,a),K(i,o,null),O(o,s),K(c,o,null),d=!0},p(l,[a]){(!d||a&8&&n!==(n=`${l[3]}/custom.css`))&&u(t,"href",n);const _={};a&8&&(_.assetsUrl=l[3]),a&64&&(_.open=l[6]),i.$set(_);const b={};a&2&&(b.server=l[1]),a&4&&(b.referrer=l[2]),a&8&&(b.assetsUrl=l[3]),a&64&&(b.open=l[6]),a&1&&(b.chatStarted=l[0]),c.$set(b),(!d||a&48&&f!==(f="bubble-chat "+(l[4]&&l[5]?"chatbot-ready":"")+" svelte-4k2y00"))&&u(o,"class",f)},i(l){d||(Y(i.$$.fragment,l),Y(c.$$.fragment,l),d=!0)},o(l){he(i.$$.fragment,l),he(c.$$.fragment,l),d=!1},d(l){l&&(w(r),w(o)),w(t),V(i),V(c)}}}const ke="chatbot-style";function ft(e,t,n){let{server:r}=t,{referrer:o}=t,{assetsUrl:i=r?r.split("?")[0]:void 0}=t,{linkHandling:s="default"}=t,{chatStarted:c=!1}=t,f=!1,d=!1;ot();let l=pe();ye("ON_CHAT_WINDOW_STATE_CHANGE",function(L){n(6,l=L)});function a(){n(0,c=!0)}function _(){n(0,c=!1)}function b(h,L){const N=window.innerWidth,oe=h==null||h==="all",re=h==="desktop"&&N>=768,pt=h==="mobile"&&N<768;(L?l!==!1:!0)&&(oe||re||pt)&&ee()}function z(){D()}function gt(h){const L=window.innerWidth,N=window.location.hostname,oe=new URL(h).hostname,re=N===oe;L<768&&D(),s==="new-tab"?window.open(h,"_blank"):s==="existing-tab"||re?document.location.href=h:window.open(h,"_blank")}function wt(){n(5,d=!0)}return it(a,_,b,z,gt),le(async()=>{n(4,f=await st(ke))}),e.$$set=h=>{"server"in h&&n(1,r=h.server),"referrer"in h&&n(2,o=h.referrer),"assetsUrl"in h&&n(3,i=h.assetsUrl),"linkHandling"in h&&n(8,s=h.linkHandling),"chatStarted"in h&&n(0,c=h.chatStarted)},[c,r,o,i,f,d,l,wt,s]}class dt extends Q{constructor(t){super(),J(this,t,ft,lt,H,{server:1,referrer:2,assetsUrl:3,linkHandling:8,chatStarted:0},ct)}}const ut=e=>e.replace(/\/embed\/bundle\.js/,""),ht=e=>{var t;return(t=e.dataset)==null?void 0:t.server},mt=e=>{if(e&&"src"in e&&typeof e.src=="string")return ht(e)||ut(e.src)},U=document.querySelector("script#chatbot"),Ce=mt(U),bt=U!=null&&U.getAttribute("link-handling")?U.getAttribute("link-handling"):"default";window.chatbot=tt;const Se=()=>{console.log("Chatbot is loading from",Ce),new dt({target:document.body,props:{server:Ce,referrer:window.location.href,linkHandling:bt}}),Qe(!0)},Ee=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(Se,500):setTimeout(()=>{Ee(e+1)},500)};Ee();const W=document.getElementById("chatbot");W&&"src"in W&&typeof W.src=="string"&&W.src.indexOf("caller=bookmarklet")>0&&setTimeout(Se,500)})();
15
+ </pre>`,1);const vr={hash:"svelte-b4a27v",code:`.svelte-b4a27v,
16
+ .svelte-b4a27v:before,
17
+ .svelte-b4a27v:after {box-sizing:border-box;}.bot-border.svelte-b4a27v {position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:transparent;opacity:1;transition:transform 200ms,
18
+ opacity 100ms 100ms,
19
+ all 150ms;z-index:2147483647;}.bot-border.closed.svelte-b4a27v {transform:translateY(100vh);opacity:0;}.bot.svelte-b4a27v {display:block;width:100%;flex:1 0 auto;margin:0;}#chat-frame.svelte-b4a27v {background-color:var(--body-background-color, white);}
20
+
21
+ @media screen and (min-width: 768px) {#chat-frame.svelte-b4a27v {border-radius:var(--window-border-radius, 8px);}.bot-border.svelte-b4a27v {height:var(--window-height, 43em);max-height:calc(100vh - 2em);width:var(--window-width, 25em);top:auto;right:1em;bottom:1em;left:auto;border-radius:var(--window-border-radius, 8px);}.bot-border.closed.svelte-b4a27v {transform:translateY(var(--window-height, 43em));opacity:0;}
22
+ }p.svelte-b4a27v,
23
+ pre.svelte-b4a27v {max-width:300px;}pre.svelte-b4a27v {font-size:0.6em;line-height:0.5;}`};function hr(e,t){le(t,!0),je(e,vr),Pt(()=>{var a;(a=document.getElementById("chat-frame"))==null||a.addEventListener("load",t.onLoad)});var n=Xn(),r=kn(n);{var i=a=>{var s=cr();let l;var f=Le(s);ue((d,u)=>{l=Lt(s,1,"bot-border svelte-b4a27v",null,l,d),ee(s,"aria-hidden",t.open?"false":"true"),ee(f,"src",u)},[()=>({closed:!t.open}),()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),X(a,s)},o=a=>{var s=dr();X(a,s)};nr(r,a=>{t.server?a(i):a(o,!1)})}X(e,n),se()}function _r(e,t){const n=e.key;(n==="ArrowDown"||n==="ArrowRight"||n==="Enter"||n===" "||n==="Space")&&(e.stopPropagation(),t.onToggle())}var pr=re('<div class="chat-button-wrapper svelte-2hl2mw" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-2hl2mw" alt="Open chat window"/></div>');const wr={hash:"svelte-2hl2mw",code:`.svelte-2hl2mw,
24
+ .svelte-2hl2mw:before,
25
+ .svelte-2hl2mw:after {box-sizing:border-box;}.chat-button-wrapper.svelte-2hl2mw {position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999;}
26
+
27
+ @media screen and (min-width: 768px) {.chat-button-wrapper.svelte-2hl2mw {top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em);}
28
+ }.chat-button.svelte-2hl2mw {display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms,
29
+ box-shadow 100ms;}.chat-button.svelte-2hl2mw:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function br(e,t){le(t,!0),je(e,wr);var n=pr();n.__click=function(...i){var o;(o=t.onToggle)==null||o.apply(this,i)},n.__keydown=[_r,t];var r=Le(n);ue(()=>{ee(n,"aria-expanded",t.open?"true":"false"),ee(r,"src",`${t.assetsUrl}/fab.svg`)}),X(e,n),se()}Zn(["click","keydown"]);let Mt=!1;function mr(e){Mt=e}function gr(){return Mt}/*! js-cookie v3.0.5 | MIT */function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var yr={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ze(e,t){function n(i,o,a){if(!(typeof document>"u")){a=me({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),f=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(a[d]=e.read(f,d),i===d)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",me({},o,{expires:-1}))},withAttributes:function(i){return ze(this.converter,me({},this.attributes,i))},withConverter:function(i){return ze(me({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ut=ze(yr,{path:"/"});const Ft="bubble-chat-window-state",qt=()=>{switch(Ut.get(Ft)){case"open":return!0;case"closed":return!1;default:return}},Bt=e=>{const t=new Date(new Date().getTime()+288e5);Ut.set(Ft,e,{expires:t})},Ye=[];let Ge=qt();function Ke(){Ge=!0,Bt("open"),Ye.forEach(function(e){e.call(window,!0)})}function ge(){Ge=!1,Bt("closed"),Ye.forEach(function(e){e.call(window,!1)})}function Wt(){Ge?ge():Ke()}function Er(){Ve({type:"RESTART_CHAT"})}function xr(e){Ve({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function Tr(e){Ve({type:"TRIGGER_STORY",story:e})}function Ve(e){var n;const t=document.getElementById("chat-frame");(n=t==null?void 0:t.contentWindow)==null||n.postMessage(e,"*")}function jt(e,t){switch(e){case"ON_CHAT_WINDOW_STATE_CHANGE":Ye.push(t);break;default:throw new Error("Unsupported event "+e)}}const Sr=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:ge,enterGuestMessage:xr,isChatbotLoaded:gr,openChatWindow:Ke,restartChat:Er,subscribe:jt,toggleChatWindow:Wt,triggerStory:Tr},Symbol.toStringTag,{value:"Module"}));function kr(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}const Or=()=>{kr()&&document.querySelectorAll("html, body").forEach(e=>{e.classList.add("iOS-device")})},Cr=e=>{"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},Ar=(e,t,n,r,i)=>{window.addEventListener("message",o=>{const a=o.data;switch(a.type){case"webclient.chat.started":e();break;case"webclient.chat.ended":t();break;case"webclient.window.expand":n(a.devices,a.initial);break;case"webclient.window.close":r();break;case"webclient.change.url":i(a.url);break;case"google.tag.event":Cr(a.payload);break}},!1)},Ir=e=>new Promise(t=>{const n=document.getElementById(e);n?(n.onload=()=>{t(!0)},n.onerror=()=>{console.error("Failed to load CSS file: custom.css"),t(!1)}):(console.error("No custom.css file found"),t(!1))});var Nr=re('<link rel="stylesheet"/>'),Rr=re("<div><!> <!></div>");const Lr={hash:"svelte-4k2y00",code:".bubble-chat.svelte-4k2y00 {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-4k2y00 {visibility:visible;opacity:1;}"};function Dr(e,t){le(t,!0),je(e,Lr);let n=He(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),r=He(t,"linkHandling",3,"default"),i=He(t,"chatStarted",7,!1);const o="chatbot-style";let a=L(!1),s=L(!1);Or();let l=L(!!qt());jt("ON_CHAT_WINDOW_STATE_CHANGE",function(m){I(l,m,!0)});function f(){i(!0)}function d(){i(!1)}function u(_,m){const Ee=window.innerWidth,Ze=_==null||_==="all",Je=_==="desktop"&&Ee>=768,qr=_==="mobile"&&Ee<768,Br=Ze||Je||qr;(m?O(l)!==!1:!0)&&Br&&Ke()}function c(){ge()}function v(_){const m=window.innerWidth,Ee=window.location.hostname,Ze=new URL(_).hostname,Je=Ee===Ze;m<768&&ge(),r()==="new-tab"?window.open(_,"_blank"):r()==="existing-tab"||Je?document.location.href=_:window.open(_,"_blank")}function w(){I(s,!0)}Ar(f,d,u,c,v),Pt(async()=>{I(a,await Ir(o),!0)});var b=Rr();Jn(_=>{var m=Nr();ee(m,"id",o),ue(()=>ee(m,"href",`${n()}/custom.css`)),X(_,m)});var R=Le(b);br(R,{get assetsUrl(){return n()},get open(){return O(l)},get onToggle(){return Wt}});var y=On(R,2);hr(y,{get server(){return t.server},get referrer(){return t.referrer},get open(){return O(l)},onLoad:w}),ue(()=>Lt(b,1,`bubble-chat ${O(a)&&O(s)?"chatbot-ready":""}`,"svelte-4k2y00")),X(e,b),se()}const Pr=e=>e.replace(/\/embed\/bundle\.js/,""),Mr=e=>{var t;return(t=e.dataset)==null?void 0:t.server},Ur=e=>{if(e&&"src"in e&&typeof e.src=="string")return Mr(e)||Pr(e.src)},ie=document.querySelector("script#chatbot"),Ht=Ur(ie),Fr=ie!=null&&ie.getAttribute("link-handling")?ie.getAttribute("link-handling"):"default";window.chatbot=Sr;const zt=()=>{console.log("Chatbot is loading from",Ht),$n(Dr,{target:document.body,props:{server:Ht,referrer:window.location.href,linkHandling:Fr}}),mr(!0)},Yt=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(zt,500):setTimeout(()=>{Yt(e+1)},500)};Yt();const ye=document.getElementById("chatbot");ye&&"src"in ye&&typeof ye.src=="string"&&ye.src.indexOf("caller=bookmarklet")>0&&setTimeout(zt,500)})();
package/dist/index.js CHANGED
@@ -200,6 +200,7 @@ const sendConfigurationToClient = (socket, props, bot, clientName) => {
200
200
  const clientLocale = (0, getSupportedClientLocale_1.default)(supportedLocale);
201
201
  (0, setTranslations_1.default)(socket, bot, clientLocale, clientName);
202
202
  const settings = {
203
+ version: package_json_1.version,
203
204
  enableStartScreen: !!props.enableStartScreen,
204
205
  enableStandaloneView: !!props.enableStandaloneView,
205
206
  enableTranscriptExportPdf: !!props.enableTranscriptExportPdf,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.94.3",
3
+ "version": "4.95.0",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "dev:embed": "tsx --watch ./run-embed-local.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@botfabrik/engine-domain": "^4.90.6",
24
- "@botfabrik/engine-transcript-export": "^4.94.3",
25
- "@botfabrik/engine-utils": "^4.90.6",
23
+ "@botfabrik/engine-domain": "^4.95.0",
24
+ "@botfabrik/engine-transcript-export": "^4.95.0",
25
+ "@botfabrik/engine-utils": "^4.95.0",
26
26
  "@google-cloud/speech": "^7.1.0",
27
27
  "accept-language-parser": "^1.5.0",
28
28
  "express": "^5.1.0",
@@ -39,5 +39,5 @@
39
39
  "tsx": "^4.20.3",
40
40
  "typescript": "5.8.3"
41
41
  },
42
- "gitHead": "f11cfe876d1318a2b695f3285ac525673b9a63c1"
42
+ "gitHead": "b0879ceb7a88bde920ee6301ac0633438f9094cc"
43
43
  }