Todos los componentes del NIVEL 2 ya están implementados correctamente: - ✅ Notification Bar (#49) - ✅ Navbar (#50) - ✅ Hero Section (#51) - ✅ Sidebar (#52) - ✅ Footer (#53) Solo se actualizó notification-bar.css para usar variables CSS. Próximo paso: NIVEL 3 (Refinamientos visuales) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 line
4.6 KiB
Plaintext
1 line
4.6 KiB
Plaintext
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99],{25110:(e,t,s)=>{Promise.resolve().then(s.bind(s,93516))},93516:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var a=s(95155),n=s(12115),i=s(16664),l=s(88511),o=s(46409),r=s(8405),c=s(45356),d=s(40767),u=s(68403),g=s(77132),h=s(14085);function m(e){let{settings:t,onAccept:s,onClose:i,activeLanguage:l="en",defaultLanguage:o="en"}=e,[r,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e="chatbot_notice_accepted_".concat(t.id);"true"===localStorage.getItem(e)&&s()},[t.id,s]);let m="chatbot_notice_accepted_".concat(t.id),p=async()=>{c(!0);try{localStorage.setItem(m,"true"),s()}finally{c(!1)}};return(0,a.jsxs)("div",{className:"flex absolute inset-0 z-50 justify-center items-center px-16 py-6 bg-white",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{window.parent.postMessage({closeChat:!0},"*"),i()},className:"inline-flex absolute top-5 right-5 justify-center items-center p-1 bg-transparent rounded-lg transition-all duration-150 hover:opacity-90 focus:opacity-90",children:(0,a.jsx)(d.A,{size:24,strokeWidth:1.75})}),(0,a.jsxs)("div",{className:"space-y-6 w-full max-w-md",children:[(0,a.jsx)("div",{className:"max-w-none text-center prose prose-sm prose-zinc dark:prose-invert",children:(0,a.jsx)(u.oz,{allowedElements:["p","br","strong","em","a","span","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","code"],skipHtml:!0,components:{a:e=>{let{...t}=e;return(0,a.jsx)("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"underline text-primary"})}},children:t.notice_message||""})}),(0,a.jsxs)("div",{className:"flex gap-3 pt-4",children:[(0,a.jsx)(h.$,{variant:"outline",onClick:()=>{window.parent.postMessage({closeChat:!0},"*"),i()},disabled:r,className:"flex-1",children:(0,g.NX)(t.localization,"decline",l,o)||"Decline"}),(0,a.jsx)(h.$,{onClick:p,disabled:r,className:"flex-1",style:{background:t.accent_color,color:t.text_color},children:r?(0,g.NX)(t.localization,"accepting",l,o)||"Accepting...":(0,g.NX)(t.localization,"accept",l,o)||"Accept"})]})]})]})}var p=s(6810),x=s(86530),f=s(79214),b=s(72347),j=s(43463);function v(e){let{settings:t}=e;return(0,a.jsx)("div",{className:(0,j.A)("absolute inset-0 z-50 flex items-center justify-center p-20",{"bg-white/95":"light"===t.theme,"bg-zinc-800/95":"dark"===t.theme}),children:(0,a.jsxs)("div",{className:(0,j.A)("prose-sm prose [word-break:break-word] text-center",{"prose-zinc":"light"===t.theme,"prose-invert":"dark"===t.theme}),children:["Sorry, this chatbot has run out of message credits. Please contact the website owner or visit"," ",(0,a.jsx)("a",{href:"https://sitespeak.ai",target:"_blank",className:"underline underline-offset-4",children:"SiteSpeakAI"})," ","to continue using this service."]})})}function k(e){let{params:t,mode:s="embed"}=e,{chatbotId:d}=(0,n.use)(t),{title:u,theme:g,noClose:h,noFocus:j,settings:k,isReady:y,status:N,shouldShowLeadCapture:_,showLeadCaptureForm:w,shouldShowNotice:C,showNoticeForm:A,suggestedMessages:z,filteredPrompts:L,messages:S,chatConfig:E,textareaHeight:I,langParam:H,append:X,addToolResult:B,visitorId:M,handleLeadCapture:O,handleNoticeAccept:P,handleClear:R,handleClose:$,handleRetry:q,setTextareaHeight:D}=(0,x.t)(d,s),{activeLanguage:F,defaultLanguage:T}=(0,f.B)(k,H);return k&&y?(0,a.jsx)("main",{children:(0,a.jsxs)(o.A,{mode:s,settings:k,title:u,showClose:!h,showClear:!0,onClose:$,onClear:R,textareaHeight:I,activeLanguage:F,defaultLanguage:T,children:[k.messages_remaining<=0&&(0,a.jsx)(v,{settings:k}),C&&A?(0,a.jsx)(m,{settings:k,onAccept:P,onClose:$,activeLanguage:F,defaultLanguage:T}):_&&w?(0,a.jsx)(r.A,{settings:k,onSubmit:O,onClose:$,activeLanguage:F,defaultLanguage:T}):(0,a.jsxs)("div",{className:"flex flex-col p-5 h-full",children:[(0,a.jsx)(c.A,{messages:S,settings:k,status:N,addToolResult:B,append:X,visitorId:M,onRetry:q,activeLanguage:F,defaultLanguage:T}),k&&(0,a.jsx)("div",{className:"pt-16 mt-auto",style:{paddingBottom:"".concat(I-46,"px")},children:"ready"===N&&z&&z.length>0?(0,a.jsx)(b.A,{messages:z,settings:k,onSelect:e=>{"ready"===N&&X({role:"user",content:e})}}):"ready"===N&&L&&L.length>0?(0,a.jsx)(p.A,{prompts:L,settings:k,chatConfig:E,loading:"ready"!==N}):null}),(0,a.jsx)(l.Ay,{mode:s,settings:k,chatConfig:E,loading:"ready"!==N,onHeightChange:D,autoFocus:!j,activeLanguage:F,defaultLanguage:T})]})]})}):(0,a.jsx)("div",{className:"flex justify-center items-center h-screen",style:{backgroundColor:(null==k?void 0:k.background_color)||("dark"===g?"#1e293b":"#ffffff")},children:(0,a.jsx)(i.A,{size:8,color:"dark"===g?"#475569":"#d4d4d8"})})}function y(e){let{params:t}=e;return(0,a.jsx)(k,{params:t,mode:"embed"})}}},e=>{var t=t=>e(e.s=t);e.O(0,[527,546,4,441,587,358],()=>t(25110)),_N_E=e.O()}]); |