@syntrologie/adapt-chatbot 2.8.0-canary.259 → 2.8.0-canary.260

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,7 +1,7 @@
1
1
  import {
2
2
  ChatAssistantLitMountable,
3
3
  acquireTurnstileToken
4
- } from "./chunk-ZNPRXH7N.js";
4
+ } from "./chunk-DJNERFT5.js";
5
5
  import "./chunk-UVKRO5ER.js";
6
6
  export {
7
7
  ChatAssistantLitMountable,
@@ -11000,7 +11000,7 @@ var ChatAssistantLitMountable = {
11000
11000
  signal: acquireAbort.signal,
11001
11001
  onBeforeInteractive: () => {
11002
11002
  isInteractive = true;
11003
- revealVerifyPanelHeading(verifyPanel);
11003
+ revealVerifyPanel(verifyPanel);
11004
11004
  }
11005
11005
  });
11006
11006
  if (isUnmounted) return null;
@@ -11044,40 +11044,44 @@ var ChatAssistantLitMountable = {
11044
11044
  };
11045
11045
  }
11046
11046
  };
11047
- function renderVerifyPanel(container) {
11047
+ function renderVerifyPanel(_container) {
11048
11048
  const panel = document.createElement("div");
11049
11049
  panel.setAttribute("data-adaptive-chatbot-turnstile-visible", "true");
11050
11050
  panel.style.cssText = [
11051
+ "position:fixed",
11052
+ "left:-9999px",
11053
+ "top:-9999px",
11054
+ "z-index:2147483647",
11051
11055
  "display:flex",
11052
11056
  "flex-direction:column",
11053
11057
  "align-items:center",
11054
- "justify-content:center",
11055
- "gap:14px",
11056
- "padding:20px",
11057
- "height:100%",
11058
- "width:100%",
11059
- "background:var(--sc-content-background,'transparent')",
11060
- "color:var(--sc-content-text-color,'#1a1a1a')",
11061
- "font-family:var(--sc-font-family,'system-ui')",
11058
+ "gap:12px",
11059
+ "padding:16px 20px",
11060
+ "background:#ffffff",
11061
+ "color:#1a1a1a",
11062
+ "font-family:'system-ui',sans-serif",
11063
+ "border-radius:12px",
11064
+ "box-shadow:0 8px 24px rgba(0,0,0,0.18)",
11065
+ "max-width:340px",
11062
11066
  "text-align:center"
11063
11067
  ].join(";");
11064
11068
  const heading = document.createElement("div");
11065
11069
  heading.setAttribute("data-adaptive-chatbot-turnstile-heading", "true");
11066
- heading.style.cssText = "font-size:14px;font-weight:500;line-height:1.4;display:none;";
11070
+ heading.style.cssText = "font-size:14px;font-weight:500;line-height:1.4;";
11067
11071
  heading.textContent = "Quick check before we start chatting";
11068
11072
  const widgetHost = document.createElement("div");
11069
11073
  widgetHost.setAttribute("data-adaptive-chatbot-turnstile-host", "true");
11070
11074
  panel.appendChild(heading);
11071
11075
  panel.appendChild(widgetHost);
11072
- container.appendChild(panel);
11076
+ document.body.appendChild(panel);
11073
11077
  return panel;
11074
11078
  }
11075
- function revealVerifyPanelHeading(panel) {
11079
+ function revealVerifyPanel(panel) {
11076
11080
  if (!panel) return;
11077
- const heading = panel.querySelector(
11078
- '[data-adaptive-chatbot-turnstile-heading="true"]'
11079
- );
11080
- if (heading) heading.style.display = "";
11081
+ panel.style.left = "50%";
11082
+ panel.style.top = "";
11083
+ panel.style.bottom = "24px";
11084
+ panel.style.transform = "translateX(-50%)";
11081
11085
  }
11082
11086
 
11083
11087
  export {
@@ -11103,4 +11107,4 @@ fast-json-patch/module/duplex.mjs:
11103
11107
  * MIT license
11104
11108
  *)
11105
11109
  */
11106
- //# sourceMappingURL=chunk-ZNPRXH7N.js.map
11110
+ //# sourceMappingURL=chunk-DJNERFT5.js.map