1import{j as a}from"./main-DMJBHZIe.js";import{ej as c,aE as x,dW as g,aL as f}from"./sessions-4GpbDS1E.js";import{C as h,P as p}from"./Code--_dydG2Q.js";import{r as u,S as j,L as b}from"./Link-Dze2hfLu.js";import{C}from"./ChatAvatar-CxppttXS.js";import{p as w,I as M}from"./InitialMessageVariable-BDXzkZlp.js";import{M as v}from"./index-nRS0MBLA.js";const S=({isPreview:i=!1,isAppearancePreview:o=!1})=>{const{chatBotMeta:s,chatBotMessageColors:t,predefinedMessagesVariables:l}=c(),{t:n}=x("widget"),m=o||i;return a.jsxs("div",{className:"flex items-start gap-1",children:[s?.message_avatar?.enabled&&a.jsx(C,{imgUrlPath:s?.message_avatar?.logo}),a.jsx("div",{className:"flex-1 max-w-[90%] flex flex-col gap-4",children:s?.initial_messages?.map((r,d)=>a.jsx("div",{className:f("w-fit max-w-full mr-auto rounded-2xl group transition-all break-words relative px-4 py-3"),style:{fontSize:`${s?.message_font_size||g}px`,background:t.backgroundColor,color:t.textColor,lineHeight:1.5},children:a.jsx(v,{remarkPlugins:[u],className:"prose leading-normal text-inherit hyphens-auto border-inherit",disallowedElements:["table","img"],components:{a:e=>a.jsx(b,{data:e}),pre:e=>a.jsx(p,{data:e}),strong:e=>a.jsx(j,{data:e}),code:e=>e.children[0].match(/^[a-zA-Z0-9_]+$/)?a.jsx(M,{previewMode:m,children:e.children}):a.jsx(h,{data:e})},children:w(r==="ð Hi! What can I help you with?"?n("bot_defaults.initial_message"):r,l)})},d))})]})};export{S as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.