ai12z 1.0.17 → 1.0.18

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.
Files changed (66) hide show
  1. package/dist/cjs/{ai12z-bot-ed73ca2e.js → ai12z-bot-5e514597.js} +20 -14
  2. package/dist/cjs/ai12z-bot-5e514597.js.map +1 -0
  3. package/dist/cjs/ai12z-bot.cjs.entry.js +1 -1
  4. package/dist/cjs/ai12z-category_7.cjs.entry.js +7 -7
  5. package/dist/cjs/{ai12z-cta-5c5b6c7b.js → ai12z-cta-38c5770f.js} +19 -7
  6. package/dist/cjs/ai12z-cta-38c5770f.js.map +1 -0
  7. package/dist/cjs/{ai12z-knowledge-box-98923b62.js → ai12z-knowledge-box-5b88af34.js} +2 -2
  8. package/dist/cjs/{ai12z-knowledge-box-98923b62.js.map → ai12z-knowledge-box-5b88af34.js.map} +1 -1
  9. package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +1 -1
  10. package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
  11. package/dist/cjs/bot-popover_3.cjs.entry.js +3 -3
  12. package/dist/cjs/index.cjs.js +3 -3
  13. package/dist/collection/components/ai12z-bot/ai12z-bot.css +29 -0
  14. package/dist/collection/components/ai12z-bot/ai12z-bot.js +17 -11
  15. package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
  16. package/dist/collection/components/ai12z-bot/bot-popover.js +1 -1
  17. package/dist/collection/components/ai12z-bot/bot-welcome.js +1 -1
  18. package/dist/collection/components/ai12z-bot/chat-history.js +1 -1
  19. package/dist/collection/components/ai12z-cta/ai12z-cta.js +17 -5
  20. package/dist/collection/components/ai12z-cta/ai12z-cta.js.map +1 -1
  21. package/dist/collection/components/ai12z-cta/components/Chat.js +2 -2
  22. package/dist/collection/components/ai12z-cta/components/DynamicForm.js +1 -1
  23. package/dist/collection/components/ai12z-cta/components/voicetotext/ai12z-mic.js +1 -1
  24. package/dist/collection/components/ai12z-knowledge-box/ai12z-knowledge-box.js +1 -1
  25. package/dist/collection/components/input/Input.js +2 -2
  26. package/dist/collection/components/spinner/Spinner.js +1 -1
  27. package/dist/esm/{ai12z-bot-d644b5e0.js → ai12z-bot-43e0a32e.js} +19 -13
  28. package/dist/esm/ai12z-bot-43e0a32e.js.map +1 -0
  29. package/dist/esm/ai12z-bot.entry.js +1 -1
  30. package/dist/esm/ai12z-category_7.entry.js +8 -8
  31. package/dist/esm/{ai12z-cta-716174ae.js → ai12z-cta-0b7c7acc.js} +18 -6
  32. package/dist/esm/ai12z-cta-0b7c7acc.js.map +1 -0
  33. package/dist/esm/{ai12z-knowledge-box-a533a6ff.js → ai12z-knowledge-box-8e8ab883.js} +2 -2
  34. package/dist/esm/{ai12z-knowledge-box-a533a6ff.js.map → ai12z-knowledge-box-8e8ab883.js.map} +1 -1
  35. package/dist/esm/ai12z-knowledge-box.entry.js +1 -1
  36. package/dist/esm/ai12z-spinner.entry.js +1 -1
  37. package/dist/esm/bot-popover_3.entry.js +3 -3
  38. package/dist/esm/index.js +3 -3
  39. package/dist/library/index.esm.js +1 -1
  40. package/dist/library/library.esm.js +1 -1
  41. package/dist/library/{p-1f2db648.entry.js → p-06604348.entry.js} +2 -2
  42. package/dist/library/{p-60868e92.js → p-159bdbc5.js} +2 -2
  43. package/dist/library/p-159bdbc5.js.map +1 -0
  44. package/dist/library/{p-8f2816d9.js → p-1f522052.js} +2 -2
  45. package/dist/library/{p-0dc0daae.entry.js → p-3fc96295.entry.js} +2 -2
  46. package/dist/library/p-5039c579.entry.js +2 -0
  47. package/dist/library/{p-42c4aa7e.entry.js → p-de13daef.entry.js} +2 -2
  48. package/dist/library/p-e453c041.entry.js +2 -0
  49. package/dist/library/p-f1ad7900.js +2 -0
  50. package/dist/{cjs/ai12z-bot-ed73ca2e.js.map → library/p-f1ad7900.js.map} +1 -1
  51. package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +2 -0
  52. package/package.json +2 -2
  53. package/dist/cjs/ai12z-cta-5c5b6c7b.js.map +0 -1
  54. package/dist/esm/ai12z-bot-d644b5e0.js.map +0 -1
  55. package/dist/esm/ai12z-cta-716174ae.js.map +0 -1
  56. package/dist/library/p-03901364.entry.js +0 -2
  57. package/dist/library/p-60868e92.js.map +0 -1
  58. package/dist/library/p-84552e1e.entry.js +0 -2
  59. package/dist/library/p-a3527e3f.js +0 -2
  60. package/dist/library/p-a3527e3f.js.map +0 -1
  61. /package/dist/library/{p-1f2db648.entry.js.map → p-06604348.entry.js.map} +0 -0
  62. /package/dist/library/{p-8f2816d9.js.map → p-1f522052.js.map} +0 -0
  63. /package/dist/library/{p-0dc0daae.entry.js.map → p-3fc96295.entry.js.map} +0 -0
  64. /package/dist/library/{p-03901364.entry.js.map → p-5039c579.entry.js.map} +0 -0
  65. /package/dist/library/{p-42c4aa7e.entry.js.map → p-de13daef.entry.js.map} +0 -0
  66. /package/dist/library/{p-84552e1e.entry.js.map → p-e453c041.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-89312bcf.js');
4
4
  const utils = require('./utils-446a726d.js');
5
5
 
6
- const ai12zBotCss = ".floating-icon{position:fixed;cursor:pointer;top:90%;transform:translateY(-50%);background-color:var(--ai12zbot-primary-bgcolor);color:var(--ai12zbot-primary-color);padding:10px;border-radius:50%;box-shadow:0 2px 5px rgba(0, 0, 0, 0.2);z-index:1000;}.custom-floating-icon{position:fixed;cursor:pointer;top:90%;transform:translateY(-50%);z-index:1000}.left{left:10px}.right{right:10px}.minimizebtn{margin:10px}.chat-window.minimized{width:350px;height:50px;overflow:hidden}.chat-window{position:fixed;bottom:20px;background-color:var(--ai12zbot-primary-color);border:1px solid #ccc;box-shadow:0 2px 10px rgba(0, 0, 0, 0.2);display:flex;flex-direction:column;border-radius:10px;z-index:1000;opacity:0;transform:translateY(20px);transition:opacity 0.3s ease,\n transform 0.3s ease}.chat-left{left:70px}.chat-right{right:70px}.chat-window-open{opacity:1;transform:translateY(0)}.chat-window-close{opacity:0;transform:translateY(20px)}.chat-header{background-color:var(--ai12zbot-primary-bgcolor);color:var(--ai12zbot-primary-color);padding:10px;display:flex;align-items:center;border-top-left-radius:10px;border-top-right-radius:10px;height:56px}.chat-name{flex-grow:1}.avatar{width:30px;height:30px;border-radius:50%;margin-right:10px}.header-title{margin:0 0 0 14px;padding:1px 0;font-size:14px;line-height:14px}.chat-body{height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:10px;overflow-x:hidden;}.chat-body::-webkit-scrollbar{width:5px;height:5px;}.chat-body::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;}.message{padding:10px;border-radius:15px;font-size:14px;line-height:1.4;word-wrap:break-word}.message-user{align-self:flex-end;color:var(--ai12zbot-primary-color);}.message-text{max-width:100%}.message-bot{padding:10px;align-self:flex-start;background-color:var(--ai12zbot-secondary-bgcolor);color:var(--ai12zbot-secondary-color);border-top-left-radius:0;flex-direction:row;border-radius:7px}.msg-wrapper{display:flex}.bot-avatar{width:30px;height:30px;border-radius:50%;margin-right:10px}.message-content{display:flex;flex-direction:column}.message-timestamp{font-size:0.75rem;color:var(--ai12zbot-text-mute);margin-top:2px;align-self:flex-end;}.chat-footer{padding:10px;display:flex;border-bottom-left-radius:10px;border-bottom-right-radius:10px;}.chat-footer textarea{flex-grow:1;padding:5px;border:1px solid #ccc;border-radius:6px;margin-right:5px;resize:none;scrollbar-width:thin}.chat-footer textarea:focus{outline:none;border-color:var(--ai12zbot-primary-bgcolor)}.chat-footer button{color:var(--ai12zbot-primary-color);border:none;padding:5px 10px;border-radius:3px;cursor:pointer}.close-btn{background:none;border:none;color:var(--ai12zbot-primary-color);font-size:20px;cursor:pointer}.timestamp{font-size:10px;color:var(--ai12zbot-text-mute);margin:14px 0;text-align:center;text-transform:uppercase}span.prose{font-size:14px;}.message-user span.prose{color:var(--ai12zbot-primary-color);background-color:var(--ai12zbot-primary-bgcolor);padding:10px;border-radius:6px}#fileInput{display:none}.custom-attachment{cursor:pointer;display:flex;align-items:center;justify-content:center}.image-Container{position:relative;display:inline-block;margin-right:10px}.delete-image{opacity:3;position:absolute;right:3px;top:0;cursor:pointer;line-height:10px}.ai12zBtn{background-color:var(--ai12zbot-primary-bgcolor) !important;color:var(--ai12zbot-primary-color);padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}.hamburger{font-size:30px;background:none;border:none;color:white;cursor:pointer;padding-right:12px}@keyframes zoomIn{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes zoomOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0);opacity:0}}.menu{position:absolute;top:55px;left:0;width:200px;background-color:var(--ai12zbot-nav-bgcolor);color:var(--ai12zbot-primary-color);overflow:hidden;transform-origin:top left}.menu.open{animation:zoomIn 0.5s forwards;}.menu.closed{animation:zoomOut 0.5s forwards;}.menu ul{list-style-type:none;padding:10px}.menu ul li{padding:10px;cursor:pointer}@media (max-width: 768px){.hide-chatbot{display:none}.chat-window{width:100% !important;height:100% !important;right:0%;bottom:0%}.pagination-controls button{padding:5px 5px}}";
6
+ const ai12zBotCss = ".floating-icon{position:fixed;cursor:pointer;top:90%;transform:translateY(-50%);background-color:var(--ai12zbot-primary-bgcolor);color:var(--ai12zbot-primary-color);padding:10px;border-radius:50%;box-shadow:0 2px 5px rgba(0, 0, 0, 0.2);z-index:1000;}.custom-floating-icon{position:fixed;cursor:pointer;top:90%;transform:translateY(-50%);z-index:1000}.left{left:10px}.right{right:10px}.minimizebtn{margin:10px}.chat-window.minimized{width:350px;height:50px;overflow:hidden}.chat-window{position:fixed;bottom:20px;background-color:var(--ai12zbot-primary-color);border:1px solid #ccc;box-shadow:0 2px 10px rgba(0, 0, 0, 0.2);display:flex;flex-direction:column;border-radius:10px;z-index:1000;opacity:0;transform:translateY(20px);transition:opacity 0.3s ease,\n transform 0.3s ease}.chat-left{left:70px}.chat-right{right:70px}.chat-window-open{opacity:1;transform:translateY(0)}.chat-window-close{opacity:0;transform:translateY(20px)}.chat-header{background-color:var(--ai12zbot-primary-bgcolor);color:var(--ai12zbot-primary-color);padding:10px;display:flex;align-items:center;border-top-left-radius:10px;border-top-right-radius:10px;height:56px}.chat-name{flex-grow:1}.avatar{width:30px;height:30px;border-radius:50%;margin-right:10px}.header-title{margin:0 0 0 14px;padding:1px 0;font-size:14px;line-height:14px}.chat-body{height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:10px;overflow-x:hidden;}.chat-body::-webkit-scrollbar{width:5px;height:5px;}.chat-body::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;}.message{padding:10px;border-radius:15px;font-size:14px;line-height:1.4;word-wrap:break-word}.message-user{align-self:flex-end;color:var(--ai12zbot-primary-color);}.message-text{max-width:100%}.message-bot{padding:10px;align-self:flex-start;background-color:var(--ai12zbot-secondary-bgcolor);color:var(--ai12zbot-secondary-color);border-top-left-radius:0;flex-direction:row;border-radius:7px}.msg-wrapper{display:flex}.bot-avatar{width:30px;height:30px;border-radius:50%;margin-right:10px}.message-content{display:flex;flex-direction:column}.message-timestamp{font-size:0.75rem;color:var(--ai12zbot-text-mute);margin-top:2px;align-self:flex-end;}.chat-footer{flex-direction:column;padding:10px;display:flex;border-bottom-left-radius:10px;border-bottom-right-radius:10px;}.chat-footer textarea{flex-grow:1;padding:5px;border:1px solid #ccc;border-radius:6px;margin-right:5px;resize:none;scrollbar-width:thin}.chat-footer textarea:focus{outline:none;border-color:var(--ai12zbot-primary-bgcolor)}.chat-footer button{color:var(--ai12zbot-primary-color);border:none;padding:5px 10px;border-radius:3px;cursor:pointer}.close-btn{background:none;border:none;color:var(--ai12zbot-primary-color);font-size:20px;cursor:pointer}.timestamp{font-size:10px;color:var(--ai12zbot-text-mute);margin:14px 0;text-align:center;text-transform:uppercase}span.prose{font-size:14px;}.message-user span.prose{color:var(--ai12zbot-primary-color);background-color:var(--ai12zbot-primary-bgcolor);padding:10px;border-radius:6px}#fileInput{display:none}.custom-attachment{cursor:pointer;display:flex;align-items:center;justify-content:center}.image-Container{position:relative;display:inline-block;margin-right:10px}.delete-image{opacity:3;position:absolute;right:3px;top:0;cursor:pointer;line-height:10px}.ai12zBtn{background-color:var(--ai12zbot-primary-bgcolor) !important;color:var(--ai12zbot-primary-color);padding:5px 10px;border:none;border-radius:5px;cursor:pointer;text-decoration:none;margin:5px}.hamburger{font-size:30px;background:none;border:none;color:white;cursor:pointer;padding-right:12px}@keyframes zoomIn{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes zoomOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0);opacity:0}}.menu{position:absolute;top:55px;left:0;width:200px;background-color:var(--ai12zbot-nav-bgcolor);color:var(--ai12zbot-primary-color);overflow:hidden;transform-origin:top left}.menu.open{animation:zoomIn 0.5s forwards;}.menu.closed{animation:zoomOut 0.5s forwards;}.menu ul{list-style-type:none;padding:10px}.menu ul li{padding:10px;cursor:pointer}@media (max-width: 768px){.hide-chatbot{display:none}.chat-window{width:100% !important;height:100% !important;right:0%;bottom:0%}.pagination-controls button{padding:5px 5px}}.follow-up{display:flex;cursor:pointer;gap:0.5rem;color:var(--ai12z-followup-color);font-size:var(--ai12z-followup-font-size)}.custom-svg-checkbox{margin-top:0.25rem;width:1rem;height:1rem;position:absolute}.follow-up-input{appearance:none;width:1rem;height:1rem;border-width:2px;flex-shrink:0;margin-top:0.25rem;border-radius:0.125rem;border-color:rgb(59 130 246)}.follow-up-input:checked{background-color:var(--ai12z-followup-bg-color);border-width:0px}";
7
7
  const Ai12zBotStyle0 = ai12zBotCss;
8
8
 
9
9
  const tailwindMinCss = "/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-bold);font-weight:600}.prose :where(astrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(blockquotestrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(theadthstrong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-alpha}.prose :where(ol[type=As]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-alpha}.prose :where(ol[type=as]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-roman}.prose :where(ol[type=Is]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:upper-roman}.prose :where(ol[type=is]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:lower-roman}.prose :where(ol[type=\"1\"]):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose]*)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose]*))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose]*))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose]*)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose]*)){border-inline-start-color:var(--tw-prose-quote-borders);border-inline-start-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-inline-start:1em;quotes:\"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\"}.prose :where(blockquotep:first-of-type):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:open-quote}.prose :where(blockquotep:last-of-type):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4strong):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose]*)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose]*)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding-inline-end:.375em;padding-bottom:.1875em;padding-top:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:\"`\"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:\"`\"}.prose :where(acode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(h1code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(h2code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-size:.875em}.prose :where(h3code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit;font-size:.9em}.prose :where(h4code):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(blockquotecode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(theadthcode):not(:where([class~=not-prose],[class~=not-prose]*)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose]*)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-top:.8571429em;padding-inline-start:1.1428571em}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)):before{content:none}.prose :where(precode):not(:where([class~=not-prose],[class~=not-prose]*)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose]*)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:start;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(theadth):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-headings);font-weight:600;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em;vertical-align:bottom}.prose :where(tbodytr):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbodytr:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){border-bottom-width:0}.prose :where(tbodytd):not(:where([class~=not-prose],[class~=not-prose]*)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose]*)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoottd):not(:where([class~=not-prose],[class~=not-prose]*)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose]*)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0;margin-top:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:.375em}.prose :where(.prose>ul>lip):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em}.prose :where(ulul,ulol,olul,olol):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(theadth:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:0}.prose :where(theadth:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:0}.prose :where(tbodytd,tfoottd):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-top:.5714286em;padding-inline-start:.5714286em}.prose :where(tbodytd:first-child,tfoottd:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-start:0}.prose :where(tbodytd:last-child,tfoottd:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose]*)){margin-bottom:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.-ml-1{margin-left:-.25rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-fit{height:fit-content}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-l{border-left-width:1px}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-3{padding:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.pb-1{padding-bottom:.25rem}.pt-2{padding-top:.5rem}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-slate-900\\/10{--tw-ring-color:rgba(15,23,42,.1)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[ko_memo\\:\\\"\\+n\\+\\\"\\]{ko_memo:\"+n+\"}.hover\\:bg-indigo-300:hover{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}.hover\\:bg-gradient-to-t:hover{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:ring-slate-300:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-sky-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity))}.peer:checked~.peer-checked\\:block{display:block}:is(.dark.dark\\:text-slate-400){--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\\:col-span-2{grid-column:span 2/span 2}.md\\:grid{display:grid}.md\\:flex-none{flex:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:gap-4{gap:1rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\\:px-8{padding-left:2rem;padding-right:2rem}}";
@@ -152,7 +152,7 @@ const Ai12zBot = class {
152
152
  this.rowCount = 1;
153
153
  }
154
154
  };
155
- this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-bot-ed73ca2e.js', document.baseURI).href));
155
+ this.assetPath = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ai12z-bot-5e514597.js', document.baseURI).href));
156
156
  this.dataKey = undefined;
157
157
  this.dataMode = undefined;
158
158
  this.configId = undefined;
@@ -645,33 +645,39 @@ const Ai12zBot = class {
645
645
  var _a, _b;
646
646
  return (index.h("div", { class: { "prose": true, "floating-icon": !this.isBot, "right": ((_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botPosition) === "right", "left": ((_b = this.botSettings) === null || _b === void 0 ? void 0 : _b.botPosition) === "left" } }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "white", height: "30px", width: "30px", version: "1.1", id: "Capa_1", viewBox: "0 0 60.019 60.019" }, index.h("g", null, index.h("path", { d: "M59.888,47.514l-3.839-11.518c2.056-3.615,3.14-7.716,3.14-11.893c0-13.286-10.809-24.095-24.095-24.095 c-8.242,0-15.824,4.223-20.219,11.007c3.089-1.291,6.477-2.007,10.029-2.007C39.294,9.01,51,20.716,51,35.104 c0,3.996-0.905,7.783-2.518,11.172l10.263,2.701c0.085,0.022,0.17,0.033,0.255,0.033c0.006,0,0.014-0.001,0.02,0 c0.553,0,1-0.448,1-1C60.019,47.829,59.972,47.66,59.888,47.514z" }), index.h("path", { d: "M24.905,11.01C11.619,11.01,0.81,21.819,0.81,35.104c0,4.176,1.084,8.277,3.14,11.893L0.051,58.693 c-0.116,0.349-0.032,0.732,0.219,1C0.462,59.898,0.727,60.01,1,60.01c0.085,0,0.17-0.011,0.255-0.033l12.788-3.365 c3.35,1.694,7.097,2.587,10.862,2.587C38.191,59.199,49,48.39,49,35.104S38.191,11.01,24.905,11.01z M41.246,26.799 c-0.152,0.083-0.317,0.123-0.479,0.123c-0.354,0-0.696-0.188-0.878-0.519c-2.795-5.097-8.115-8.679-13.883-9.349 c-0.549-0.063-0.941-0.56-0.878-1.108c0.063-0.548,0.558-0.942,1.108-0.878c6.401,0.743,12.304,4.718,15.406,10.373 C41.908,25.926,41.73,26.534,41.246,26.799z" })))));
647
647
  }
648
+ handleFollowUp(_e) {
649
+ // console.log("follow up", e)
650
+ this.messages = [...[]];
651
+ this.conversationId = "";
652
+ this.showWelcomeScreen = true;
653
+ }
648
654
  render() {
649
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
655
+ var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
650
656
  // const imageSrc = getAssetPath(`./assets/ai12z-bot/img/chatbot.jpg`)
651
657
  const style = {
652
658
  width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
653
659
  height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
654
660
  };
655
- return (index.h("div", { key: '8394471fc1c3b2c4b71f43e078371f9936f2a8fd' }, index.h("div", { key: '113610a99157a8b7b0593d2a9426375db283481c', class: {
656
- "right": ((_e = this.botSettings) === null || _e === void 0 ? void 0 : _e.botPosition) === "right",
657
- "left": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "left",
661
+ return (index.h("div", { key: '073c4b0b781742940e9593e1e50529d0fb69e120' }, index.h("div", { key: '5559a6d0f852771e66fdd3b5714193f10280e912', class: {
662
+ "right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
663
+ "left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
658
664
  "custom-floating-icon ": this.isBot,
659
665
  "hide-chatbot": this.isChatOpen,
660
- }, onClick: () => this.action("open") }, !this.isBot && this.defaultTemplate(), this.isBot && index.h("slot", { key: 'bdd80c8cca685794a8ccd392f0653c3ac1fcd612', name: "bot" })), !this.isChatOpen && ((_h = (_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.popover) === null || _h === void 0 ? void 0 : _h.returnMessage) && index.h("bot-popover", { key: '15f2d68a4310d46e4e1e99b485de0bd2758bf456', popoverConfig: (_j = this.botSettings) === null || _j === void 0 ? void 0 : _j.popover }), this.isChatOpen && (index.h("div", { key: 'b1b403afc51f587540ceca0f60dc4adfdf6cdc4d', class: {
666
+ }, onClick: () => this.action("open") }, !this.isBot && this.defaultTemplate(), this.isBot && index.h("slot", { key: '8ff1ed98e3156c2fe2cd1bb1d5432bcd67e71f86', name: "bot" })), !this.isChatOpen && ((_j = (_h = this.botSettings) === null || _h === void 0 ? void 0 : _h.popover) === null || _j === void 0 ? void 0 : _j.returnMessage) && index.h("bot-popover", { key: '1423f19bc1cca92eb8d092ec3fbf0512cfe36d42', popoverConfig: (_k = this.botSettings) === null || _k === void 0 ? void 0 : _k.popover }), this.isChatOpen && (index.h("div", { key: '51f406cc0405d9b202d014c7ea2390fc963a2dea', class: {
661
667
  "chat-window": true,
662
668
  "chat-window-open": this.isChatOpen,
663
669
  "chat-window-close": !this.isChatOpen,
664
- "chat-right": ((_k = this.botSettings) === null || _k === void 0 ? void 0 : _k.botPosition) === "right",
665
- "chat-left": ((_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.botPosition) === "left",
666
- }, style: style }, !this.hideInput && (index.h("div", { key: 'c1124a840805f9bc7eae86166cba251184ebacdf', class: "chat-header" }, ((_o = (_m = this.botSettings) === null || _m === void 0 ? void 0 : _m.buttons) === null || _o === void 0 ? void 0 : _o.length) > 0 && (index.h("button", { key: '4229da99dd5f37bdf13a4bd2419200522285a66d', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: '593bacf40ebdb4cf1bba9768c1aa10c2e114cac9', class: "avatar", src: (_q = (_p = this.botSettings) === null || _p === void 0 ? void 0 : _p.botLogo) !== null && _q !== void 0 ? _q : this.botlogo, alt: "Avatar" }), index.h("span", { key: 'a5e4068eccf8cef4c753d8527f79d5ff8267521d', class: "chat-name" }, (_r = this.botSettings) === null || _r === void 0 ? void 0 : _r.botName), this.showHistory && (index.h("button", { key: 'a307ecc2e7fd9a397017522f5aba5a648b348e0a', onClick: () => this.loadConversation() }, index.h("svg", { key: 'c88435d976539adf06f3b016b7b579f67d77180f', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: 'afb247373076b328eb650cfe77a5b15d97d6abc2', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: 'e305fe08bde38de6717ec3e1e38c51650725e580', d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10c-1.702 0-3.305-.425-4.708-1.175L2 22l1.176-5.29C2.426 15.306 2 13.703 2 12 2 6.477 6.477 2 12 2zm0 2c-4.418 0-8 3.582-8 8 0 1.335.326 2.618.94 3.766l.35.654-.656 2.946 2.948-.654.653.349c1.148.614 2.43.939 3.765.939 4.418 0 8-3.582 8-8s-3.582-8-8-8zm1 3v5h4v2h-6V7h2z" }), " "))), index.h("button", { key: '3a902b40dc130dad63b2b3969b895643781b9d1b', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: 'f23633914307909d3d7d37de40f3c116fd732d9a', fill: "white", height: "20px", width: "20px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { key: 'fcd82cd2231b7ec85a40fe64c242069cb9230b63', d: "M505.752,6.248c-8.331-8.331-21.839-8.331-30.17,0L320,161.83V64c0-11.782-9.551-21.333-21.333-21.333 c-11.782,0-21.333,9.551-21.333,21.333v149.333c0,0.007,0.001,0.015,0.001,0.022c0.001,0.695,0.037,1.39,0.105,2.083 c0.031,0.318,0.091,0.627,0.136,0.94c0.054,0.375,0.098,0.75,0.171,1.122c0.071,0.359,0.17,0.708,0.259,1.061 c0.081,0.322,0.151,0.645,0.248,0.964c0.105,0.346,0.234,0.68,0.356,1.018c0.114,0.318,0.219,0.639,0.349,0.953 c0.131,0.316,0.284,0.618,0.43,0.926c0.152,0.323,0.296,0.649,0.465,0.966c0.158,0.295,0.338,0.575,0.509,0.861 c0.186,0.311,0.361,0.626,0.564,0.929c0.211,0.316,0.447,0.613,0.674,0.917c0.19,0.253,0.365,0.513,0.568,0.759 c0.892,1.087,1.889,2.085,2.977,2.977c0.246,0.202,0.506,0.378,0.759,0.568c0.304,0.228,0.601,0.463,0.917,0.674 c0.303,0.203,0.618,0.379,0.929,0.564c0.286,0.171,0.566,0.351,0.861,0.509c0.317,0.169,0.643,0.313,0.966,0.465 c0.308,0.145,0.611,0.299,0.926,0.43c0.314,0.13,0.635,0.235,0.953,0.349c0.338,0.122,0.672,0.251,1.018,0.356 c0.318,0.096,0.642,0.167,0.964,0.248c0.353,0.089,0.701,0.188,1.061,0.259c0.372,0.074,0.748,0.118,1.122,0.171 c0.314,0.045,0.622,0.104,0.94,0.136c0.693,0.068,1.388,0.105,2.083,0.105c0.007,0,0.015,0.001,0.022,0.001H448 c11.782,0,21.333-9.551,21.333-21.333c0-11.782-9.551-21.333-21.333-21.333h-97.83L505.752,36.418 C514.083,28.087,514.083,14.58,505.752,6.248z" }), " ", index.h("path", { key: '102db8616b511daac8f049affd8ce5174d24c0ac', d: "M234.56,296.562c-0.031-0.318-0.091-0.627-0.136-0.94c-0.054-0.375-0.098-0.75-0.171-1.122 c-0.071-0.359-0.17-0.708-0.259-1.061c-0.081-0.322-0.151-0.645-0.248-0.964c-0.105-0.346-0.234-0.68-0.356-1.018 c-0.114-0.318-0.219-0.639-0.349-0.953c-0.131-0.316-0.284-0.618-0.43-0.926c-0.152-0.323-0.296-0.649-0.465-0.966 c-0.158-0.295-0.338-0.575-0.509-0.861c-0.186-0.311-0.361-0.626-0.564-0.929c-0.211-0.316-0.447-0.613-0.674-0.917 c-0.19-0.253-0.365-0.513-0.568-0.759c-0.892-1.087-1.889-2.085-2.977-2.977c-0.246-0.202-0.506-0.378-0.759-0.568 c-0.304-0.228-0.601-0.463-0.917-0.674c-0.303-0.203-0.618-0.379-0.929-0.564c-0.286-0.171-0.566-0.351-0.861-0.509 c-0.317-0.169-0.643-0.313-0.966-0.465c-0.308-0.145-0.611-0.299-0.926-0.43c-0.314-0.13-0.635-0.235-0.953-0.349 c-0.338-0.122-0.672-0.251-1.018-0.356c-0.318-0.096-0.642-0.167-0.964-0.248c-0.353-0.089-0.701-0.188-1.061-0.259 c-0.372-0.074-0.748-0.118-1.122-0.171c-0.314-0.045-0.622-0.104-0.94-0.136c-0.7-0.069-1.402-0.106-2.105-0.106l0,0H64 c-11.782,0-21.333,9.551-21.333,21.333C42.667,310.449,52.218,320,64,320h97.83L6.248,475.582c-8.331,8.331-8.331,21.839,0,30.17 c8.331,8.331,21.839,8.331,30.17,0L192,350.17V448c0,11.782,9.551,21.333,21.333,21.333c11.782,0,21.333-9.551,21.333-21.333 V298.667l0,0C234.667,297.964,234.629,297.262,234.56,296.562z" }), " ")), index.h("button", { key: '7b8d1f0d9e57c5e575381ef18b038d505e71e865', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: 'ef1cf56cf2870283fd6553e573bc9a079e38b992', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: 'ae1a62f921be54581f5add7a5ef3050f4b78e102', "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "white", d: "M9.34583 11.2L0.384011 2.23818C-0.128004 1.72617 -0.128004 0.896026 0.384011 0.384011C0.896026 -0.128004 1.72617 -0.128004 2.23818 0.384011L11.2 9.34583L20.1618 0.384011C20.6738 -0.128004 21.504 -0.128004 22.016 0.384011C22.528 0.896026 22.528 1.72617 22.016 2.23818L13.0542 11.2L22.016 20.1618C22.528 20.6738 22.528 21.504 22.016 22.016C21.504 22.528 20.6738 22.528 20.1618 22.016L11.2 13.0542L2.23818 22.016C1.72617 22.528 0.896026 22.528 0.384011 22.016C-0.128003 21.504 -0.128003 20.6738 0.384011 20.1618L9.34583 11.2Z" }))))), index.h("div", { key: 'e2255d04b80286ce6748f228febeacca23d4e402', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '955fefaf9fa86b3d8396f83c18970e94e4814cf1' }, (_t = (_s = this.botSettings) === null || _s === void 0 ? void 0 : _s.buttons) === null || _t === void 0 ? void 0 : _t.map(item => (index.h("li", { onClick: () => {
670
+ "chat-right": ((_l = this.botSettings) === null || _l === void 0 ? void 0 : _l.botPosition) === "right",
671
+ "chat-left": ((_m = this.botSettings) === null || _m === void 0 ? void 0 : _m.botPosition) === "left",
672
+ }, style: style }, !this.hideInput && (index.h("div", { key: 'e85d27dc89c014ba2d35ebc2b6264263f4eccadc', class: "chat-header" }, ((_p = (_o = this.botSettings) === null || _o === void 0 ? void 0 : _o.buttons) === null || _p === void 0 ? void 0 : _p.length) > 0 && (index.h("button", { key: '7543c6616ae97a4d56b2fc1cc96b70224e7e5e28', class: "hamburger", onClick: e => this.toggleMenu(e) }, "\u2630 ")), index.h("img", { key: '7f08011cc352591c60ccf57dffdd3cbed34ec56f', class: "avatar", src: (_r = (_q = this.botSettings) === null || _q === void 0 ? void 0 : _q.botLogo) !== null && _r !== void 0 ? _r : this.botlogo, alt: "Avatar" }), index.h("span", { key: 'f04e13c0b26b1b85da5a016a2b6d788c63762533', class: "chat-name" }, (_s = this.botSettings) === null || _s === void 0 ? void 0 : _s.botName), this.showHistory && (index.h("button", { key: '57fec5081e8e54981b07976646dbe4b55897c4b9', onClick: () => this.loadConversation() }, index.h("svg", { key: '6fffaeb98708ae020c60ee5ada07f73f58629342', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#ffffff", width: "25", height: "25" }, index.h("path", { key: '1684a05c016beb1ae0f614c4c3eb55796fd7b575', fill: "none", d: "M0 0L24 0 24 24 0 24z" }), " ", index.h("path", { key: '5b92eb27461649f1253152b3eb7a34ac832432b9', d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10c-1.702 0-3.305-.425-4.708-1.175L2 22l1.176-5.29C2.426 15.306 2 13.703 2 12 2 6.477 6.477 2 12 2zm0 2c-4.418 0-8 3.582-8 8 0 1.335.326 2.618.94 3.766l.35.654-.656 2.946 2.948-.654.653.349c1.148.614 2.43.939 3.765.939 4.418 0 8-3.582 8-8s-3.582-8-8-8zm1 3v5h4v2h-6V7h2z" }), " "))), index.h("button", { key: '7610267be0132383eda9d937505eae63933feb70', class: "minimizebtn", onClick: () => this.action("minimize") }, index.h("svg", { key: 'ca7c06cfaa939410c3dae1205a034c7f5c71eeee', fill: "white", height: "20px", width: "20px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, index.h("path", { key: '898384978eac4314a17b549af70d70de2337884b', d: "M505.752,6.248c-8.331-8.331-21.839-8.331-30.17,0L320,161.83V64c0-11.782-9.551-21.333-21.333-21.333 c-11.782,0-21.333,9.551-21.333,21.333v149.333c0,0.007,0.001,0.015,0.001,0.022c0.001,0.695,0.037,1.39,0.105,2.083 c0.031,0.318,0.091,0.627,0.136,0.94c0.054,0.375,0.098,0.75,0.171,1.122c0.071,0.359,0.17,0.708,0.259,1.061 c0.081,0.322,0.151,0.645,0.248,0.964c0.105,0.346,0.234,0.68,0.356,1.018c0.114,0.318,0.219,0.639,0.349,0.953 c0.131,0.316,0.284,0.618,0.43,0.926c0.152,0.323,0.296,0.649,0.465,0.966c0.158,0.295,0.338,0.575,0.509,0.861 c0.186,0.311,0.361,0.626,0.564,0.929c0.211,0.316,0.447,0.613,0.674,0.917c0.19,0.253,0.365,0.513,0.568,0.759 c0.892,1.087,1.889,2.085,2.977,2.977c0.246,0.202,0.506,0.378,0.759,0.568c0.304,0.228,0.601,0.463,0.917,0.674 c0.303,0.203,0.618,0.379,0.929,0.564c0.286,0.171,0.566,0.351,0.861,0.509c0.317,0.169,0.643,0.313,0.966,0.465 c0.308,0.145,0.611,0.299,0.926,0.43c0.314,0.13,0.635,0.235,0.953,0.349c0.338,0.122,0.672,0.251,1.018,0.356 c0.318,0.096,0.642,0.167,0.964,0.248c0.353,0.089,0.701,0.188,1.061,0.259c0.372,0.074,0.748,0.118,1.122,0.171 c0.314,0.045,0.622,0.104,0.94,0.136c0.693,0.068,1.388,0.105,2.083,0.105c0.007,0,0.015,0.001,0.022,0.001H448 c11.782,0,21.333-9.551,21.333-21.333c0-11.782-9.551-21.333-21.333-21.333h-97.83L505.752,36.418 C514.083,28.087,514.083,14.58,505.752,6.248z" }), " ", index.h("path", { key: '25ddea418c23bdc8994de8cf531c124640305831', d: "M234.56,296.562c-0.031-0.318-0.091-0.627-0.136-0.94c-0.054-0.375-0.098-0.75-0.171-1.122 c-0.071-0.359-0.17-0.708-0.259-1.061c-0.081-0.322-0.151-0.645-0.248-0.964c-0.105-0.346-0.234-0.68-0.356-1.018 c-0.114-0.318-0.219-0.639-0.349-0.953c-0.131-0.316-0.284-0.618-0.43-0.926c-0.152-0.323-0.296-0.649-0.465-0.966 c-0.158-0.295-0.338-0.575-0.509-0.861c-0.186-0.311-0.361-0.626-0.564-0.929c-0.211-0.316-0.447-0.613-0.674-0.917 c-0.19-0.253-0.365-0.513-0.568-0.759c-0.892-1.087-1.889-2.085-2.977-2.977c-0.246-0.202-0.506-0.378-0.759-0.568 c-0.304-0.228-0.601-0.463-0.917-0.674c-0.303-0.203-0.618-0.379-0.929-0.564c-0.286-0.171-0.566-0.351-0.861-0.509 c-0.317-0.169-0.643-0.313-0.966-0.465c-0.308-0.145-0.611-0.299-0.926-0.43c-0.314-0.13-0.635-0.235-0.953-0.349 c-0.338-0.122-0.672-0.251-1.018-0.356c-0.318-0.096-0.642-0.167-0.964-0.248c-0.353-0.089-0.701-0.188-1.061-0.259 c-0.372-0.074-0.748-0.118-1.122-0.171c-0.314-0.045-0.622-0.104-0.94-0.136c-0.7-0.069-1.402-0.106-2.105-0.106l0,0H64 c-11.782,0-21.333,9.551-21.333,21.333C42.667,310.449,52.218,320,64,320h97.83L6.248,475.582c-8.331,8.331-8.331,21.839,0,30.17 c8.331,8.331,21.839,8.331,30.17,0L192,350.17V448c0,11.782,9.551,21.333,21.333,21.333c11.782,0,21.333-9.551,21.333-21.333 V298.667l0,0C234.667,297.964,234.629,297.262,234.56,296.562z" }), " ")), index.h("button", { key: '7db6264010a9c9c95384e7efc34ddb404956f956', class: "close-btn", onClick: () => this.action("close") }, index.h("svg", { key: '81e2b18650fc5f706919e404d6747580891b1f8f', "aria-hidden": "true", width: "25", height: "13", viewBox: "0 0 23 23", fill: "none" }, index.h("path", { key: '139ad801bcc38fbe6cac225f0066a14b1c9ee307', "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "white", d: "M9.34583 11.2L0.384011 2.23818C-0.128004 1.72617 -0.128004 0.896026 0.384011 0.384011C0.896026 -0.128004 1.72617 -0.128004 2.23818 0.384011L11.2 9.34583L20.1618 0.384011C20.6738 -0.128004 21.504 -0.128004 22.016 0.384011C22.528 0.896026 22.528 1.72617 22.016 2.23818L13.0542 11.2L22.016 20.1618C22.528 20.6738 22.528 21.504 22.016 22.016C21.504 22.528 20.6738 22.528 20.1618 22.016L11.2 13.0542L2.23818 22.016C1.72617 22.528 0.896026 22.528 0.384011 22.016C-0.128003 21.504 -0.128003 20.6738 0.384011 20.1618L9.34583 11.2Z" }))))), index.h("div", { key: '1f322070b4ea4a42485450ea60f698c769abd83d', class: `menu ${this.isMenuOpen ? "open" : "closed"}`, ref: el => (this.menuRef = el) }, index.h("ul", { key: '17dc89e19b10c5dfdeab9091d7e0c83c0343a3dc' }, (_u = (_t = this.botSettings) === null || _t === void 0 ? void 0 : _t.buttons) === null || _u === void 0 ? void 0 : _u.map(item => (index.h("li", { onClick: () => {
667
673
  this.isMenuOpen = !this.isMenuOpen;
668
674
  this.menuAction = item.action;
669
675
  this.handleSend(item.label);
670
- } }, item.label))))), this.hideInput && (index.h("div", { key: '8f8c0612410fe7e61961e01421800b4209998527', class: "chat-header" }, index.h("button", { key: '68634cdb0992bc7959d67163df369d8ebc456a2d', onClick: () => {
676
+ } }, item.label))))), this.hideInput && (index.h("div", { key: 'db08ac2704739070f27a55e87e2153e5909b24b2', class: "chat-header" }, index.h("button", { key: 'ee21fbf1cc1e6009a5698ba59c37c9aef9b6c6fc', onClick: () => {
671
677
  this.showWelcomeScreen = true;
672
678
  this.hideInput = false;
673
679
  this.checkHistory();
674
- } }, index.h("svg", { key: '7da8a1cec1b4a5a89c81e4a25535af90d7b81861', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '02094ef608ef399bf004bb549959a670994a4b85', fill: "#FFFFFF", d: "M9.70711 0.542893C10.0976 0.933418 10.0976 1.56658 9.70711 1.95711L2.41421 9.25L9.70711 16.5429C10.0976 16.9334 10.0976 17.5666 9.70711 17.9571C9.31658 18.3476 8.68342 18.3476 8.29289 17.9571L0.292893 9.95711C0.105357 9.76957 -4.04995e-07 9.51522 -3.93402e-07 9.25C-3.81809e-07 8.98478 0.105357 8.73043 0.292893 8.54289L8.29289 0.542893C8.68342 0.152369 9.31658 0.152369 9.70711 0.542893Z", "clip-rule": "evenodd", "fill-rule": "evenodd" }))), index.h("span", { key: 'a3280fa6d90fea8eb37ab6a3daffba939f860546', class: "header-title" }, "Conversation History"))), index.h("div", { key: 'ff57b3bd821792d509d70071f5188e573969910e', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: '68d4ce7c2261386fa540093b0d5034838c1b0bc2', welcomeMessage: (_v = (_u = this.botSettings) === null || _u === void 0 ? void 0 : _u.welcome) === null || _v === void 0 ? void 0 : _v.message, buttonsList: (_x = (_w = this.botSettings) === null || _w === void 0 ? void 0 : _w.welcome) === null || _x === void 0 ? void 0 : _x.buttons, welcomelogo: (_z = (_y = this.botSettings) === null || _y === void 0 ? void 0 : _y.welcome) === null || _z === void 0 ? void 0 : _z.image })), this.showHistory && this.conversationHistory.length > 0 && this.hideInput && (index.h("chatbot-history", { key: '0c6bd92fc1e4549bbc4948d6892b67334a2a8dcd', chatList: this.conversationHistory, botName: (_0 = this.botSettings) === null || _0 === void 0 ? void 0 : _0.botName })), !this.showWelcomeScreen && this.messages.length > 0 && index.h("p", { key: '0056226f11bde1236f5ece681f24d13c6edf9014', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
680
+ } }, index.h("svg", { key: '991201930ccd1e272d0b55827cd465c84176cabf', "aria-hidden": "true", width: "20", height: "20", viewBox: "0 0 10 19" }, index.h("path", { key: '97d8ececbfbed5adddbd2762e2b1a0668946d284', fill: "#FFFFFF", d: "M9.70711 0.542893C10.0976 0.933418 10.0976 1.56658 9.70711 1.95711L2.41421 9.25L9.70711 16.5429C10.0976 16.9334 10.0976 17.5666 9.70711 17.9571C9.31658 18.3476 8.68342 18.3476 8.29289 17.9571L0.292893 9.95711C0.105357 9.76957 -4.04995e-07 9.51522 -3.93402e-07 9.25C-3.81809e-07 8.98478 0.105357 8.73043 0.292893 8.54289L8.29289 0.542893C8.68342 0.152369 9.31658 0.152369 9.70711 0.542893Z", "clip-rule": "evenodd", "fill-rule": "evenodd" }))), index.h("span", { key: '05967942df8161bd264f4d2c5aa37dad0e77d535', class: "header-title" }, "Conversation History"))), index.h("div", { key: '0eb492202d90ffedd94bf54cd0aa7a026a6dcdcd', class: "chat-body" }, this.showWelcomeScreen && (index.h("chatbot-welcome", { key: '5895c3ae064348f658eae2b450f25f9625758edb', welcomeMessage: (_w = (_v = this.botSettings) === null || _v === void 0 ? void 0 : _v.welcome) === null || _w === void 0 ? void 0 : _w.message, buttonsList: (_y = (_x = this.botSettings) === null || _x === void 0 ? void 0 : _x.welcome) === null || _y === void 0 ? void 0 : _y.buttons, welcomelogo: (_0 = (_z = this.botSettings) === null || _z === void 0 ? void 0 : _z.welcome) === null || _0 === void 0 ? void 0 : _0.image })), this.showHistory && this.conversationHistory.length > 0 && this.hideInput && (index.h("chatbot-history", { key: '02c388f60127b444180df442b3eb51e29a19d842', chatList: this.conversationHistory, botName: (_1 = this.botSettings) === null || _1 === void 0 ? void 0 : _1.botName })), !this.showWelcomeScreen && this.messages.length > 0 && index.h("p", { key: '7f9f1f68c039729b12e144f3af675a15e11115e8', class: "timestamp" }, this.timestamp), !this.showWelcomeScreen &&
675
681
  this.messages.length > 0 &&
676
682
  this.messages.map(msg => {
677
683
  var _a, _b, _c;
@@ -679,7 +685,7 @@ const Ai12zBot = class {
679
685
  _c.map(img => {
680
686
  return index.h("img", { src: img, class: "thumbnail", alt: "thumbnail" });
681
687
  }), !msg.isUser && msg.text === "" && (index.h("svg", { class: "animate-spin h-5 w-5 text-gray-400", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", id: "spinner" }, index.h("circle", { class: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", "stroke-width": "4" }), index.h("path", { class: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })))), index.h("span", { class: "message-timestamp" }, msg.timestamp)))));
682
- })), index.h("div", { key: '86ac540d574c1543dc7e44921417310a1d3144bb', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: '06aa13a0e1cdc295888e8ba46ff6e3f60989ae44', class: "chat-footer" }, index.h("textarea", { key: '76d2eaa08c810677913f7a2243d65712cefd0049', rows: this.rowCount, placeholder: (_2 = (_1 = this.botSettings) === null || _1 === void 0 ? void 0 : _1.botPlaceholderText) !== null && _2 !== void 0 ? _2 : "Type your message...", ref: el => (this.inputEl = el), onKeyUp: this.adjustHeight }), this.botSettings.imageUpload && (index.h("div", { key: '74f5e46a0939fcad89dd16447dc6d5be95ee054c', class: "custom-attachment" }, index.h("input", { key: '18c8018ca7f2667fa0b5d7c6ef5978a5a61171b6', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "image-upload__input", onChange: ($event) => this.onInputChange($event.target.files), ref: el => (this.uploadElem = el) }), index.h("svg", { key: '83913bf507a5238d6ddf1dd51ba4f0a696293250', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: 'e811adc2c73d8abfb1fe429afe9c04c703ddbaa5', fill: "#687882", "fill-rule": "evenodd", d: "M8.078 16a.71.71 0 0 1-.513-.222.784.784 0 0 1 0-1.075l7.53-7.879c.562-.587.871-1.368.871-2.199 0-.83-.31-1.611-.87-2.197a2.883 2.883 0 0 0-4.204 0l-8.735 9.139c-.493.516-.73 1.012-.703 1.476.026.452.298.801.46.968.27.284.563.402.892.358.413-.054.888-.35 1.375-.86l6.854-7.172a.703.703 0 0 1 1.026 0 .784.784 0 0 1 0 1.074l-6.853 7.172c-.728.761-1.475 1.196-2.222 1.293-.783.102-1.509-.172-2.1-.79-.528-.553-.841-1.246-.881-1.952-.053-.917.326-1.805 1.125-2.64l8.735-9.14a4.292 4.292 0 0 1 6.257 0 4.706 4.706 0 0 1 1.296 3.271c0 1.236-.461 2.4-1.296 3.274l-7.53 7.879a.71.71 0 0 1-.514.222z" })))), index.h("button", { key: 'ad8487184fb7b7b2e10ea45fb015134242453fc3', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: 'c0fe451321a5bc77db8278b56ebc9e757d9a78ee', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: '7fd39f4615800a3366ea19f5ec098981cad28781', fill: "#687882", "fill-rule": "evenodd", stroke: "#687882", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M1 1l2.166 5.39 8.5 1.564-8.5 1.666L1 15l16-7z" })))))))));
688
+ })), index.h("div", { key: '8276167fa0a41203e7d28925212d0b255c78809d', id: "previewContainer" }), !this.hideInput && (index.h("div", { key: 'a8c8ab4ec6040d5e3a96162794fb3e7dc92ffcd2', class: "chat-footer" }, ((_2 = this.messages) === null || _2 === void 0 ? void 0 : _2.length) > 0 && (index.h("div", { key: '5769c1e00a17f838761bdbd55197055056d6ec15', class: "follow-up" }, index.h("input", { key: 'a5e3df77d9b2adce60bd99fa5b2231309c282198', ref: el => (this.followUpElem = el), type: "checkbox", name: "followUp", id: "followUp", defaultChecked: true, class: "follow-up-input", onChange: ev => this.handleFollowUp(ev) }), index.h("label", { key: '3ec6f03af1933360967279459c3f89a731c55755', htmlFor: "followUp" }, "Do you have a follow up question?"), index.h("svg", { key: 'd0ca48d0315f0bb33008bf02e99fdd3ee60f78ce', onClick: () => this.followUpElem.click(), class: "custom-svg-checkbox\n peer-checked:block text-white", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("polyline", { key: '9f5ca668aef569d4f26f078a2a6d356142cb77d6', points: "20 6 9 17 4 12" })))), index.h("div", { key: '3a87ebc1803160f03ff9aca8c164f454e9666463', style: { display: "flex" } }, index.h("textarea", { key: '754a809453dda3544cfd3047e424de0e1999bc52', rows: this.rowCount, placeholder: (_4 = (_3 = this.botSettings) === null || _3 === void 0 ? void 0 : _3.botPlaceholderText) !== null && _4 !== void 0 ? _4 : "Type your message...", ref: el => (this.inputEl = el), onKeyUp: this.adjustHeight }), this.botSettings.imageUpload && (index.h("div", { key: '6b34fe22c7d7ec22bc739704a11027781ee004f7', class: "custom-attachment" }, index.h("input", { key: 'af7ce03968dc05421fb923a714ad727bb5b3710b', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "image-upload__input", onChange: ($event) => this.onInputChange($event.target.files), ref: el => (this.uploadElem = el) }), index.h("svg", { key: 'c7167d7d4afd5da73775f4b2fce6e381913a59df', onClick: () => this.uploadElem.click(), "aria-hidden": "true", width: "18", height: "16", viewBox: "0 0 16 18" }, index.h("path", { key: 'bbe1fc752a4723ff37988f9539e942010dedac08', fill: "#687882", "fill-rule": "evenodd", d: "M8.078 16a.71.71 0 0 1-.513-.222.784.784 0 0 1 0-1.075l7.53-7.879c.562-.587.871-1.368.871-2.199 0-.83-.31-1.611-.87-2.197a2.883 2.883 0 0 0-4.204 0l-8.735 9.139c-.493.516-.73 1.012-.703 1.476.026.452.298.801.46.968.27.284.563.402.892.358.413-.054.888-.35 1.375-.86l6.854-7.172a.703.703 0 0 1 1.026 0 .784.784 0 0 1 0 1.074l-6.853 7.172c-.728.761-1.475 1.196-2.222 1.293-.783.102-1.509-.172-2.1-.79-.528-.553-.841-1.246-.881-1.952-.053-.917.326-1.805 1.125-2.64l8.735-9.14a4.292 4.292 0 0 1 6.257 0 4.706 4.706 0 0 1 1.296 3.271c0 1.236-.461 2.4-1.296 3.274l-7.53 7.879a.71.71 0 0 1-.514.222z" })))), index.h("button", { key: '24ee5ca0ad0fdb9ea192709277d5a59d38c09857', onClick: () => this.handleSend(this.inputEl.value) }, index.h("svg", { key: 'c817e24312d36103ec9debda768a3a5c239c25cf', "aria-hidden": "true", width: "17", height: "16", viewBox: "0 0 17 16" }, index.h("path", { key: '2befdeaed9314368a3883da92da3e487093e796e', fill: "#687882", "fill-rule": "evenodd", stroke: "#687882", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M1 1l2.166 5.39 8.5 1.564-8.5 1.666L1 15l16-7z" }))))))))));
683
689
  }
684
690
  get el() { return index.getElement(this); }
685
691
  static get watchers() { return {
@@ -691,4 +697,4 @@ Ai12zBot.style = Ai12zBotStyle0 + (Ai12zBotStyle1 + Ai12zBotStyle2);
691
697
 
692
698
  exports.Ai12zBot = Ai12zBot;
693
699
 
694
- //# sourceMappingURL=ai12z-bot-ed73ca2e.js.map
700
+ //# sourceMappingURL=ai12z-bot-5e514597.js.map