1import{u as c,$ as p,a as m,a0 as h}from"./index-DIAui83D.js";import{k as l,x as w,ac as u,z as g,A as x}from"./vendor-boBpabsJ.js";const b={class:"test-agent-view"},y=l({__name:"TestAgentView",setup(f){let e;const d=c(),s=i=>new Promise((n,r)=>{if(document.querySelector(`script[src="${i}"]`)){n();return}const a=document.createElement("link");a.rel="stylesheet",a.href="https://widget.osam.one/dist/css/app.css",document.head.appendChild(a);const t=document.createElement("script");t.src=i,t.async=!0,t.onload=()=>n(),t.onerror=()=>r(new Error("Failed to load widget script")),document.head.appendChild(t)});return w(async()=>{const i=d.params.apikey,n=d.query.test==="true",r=h;if(!i)return;try{window.location.origin!==p&&await m().initialize()}catch(t){console.warn("Whitelabel initialization failed:",t?.message||t)}try{await s("https://widget.osam.one/dist/js/app.js")}catch(t){console.error(t);return}let a=0;e=window.setInterval(()=>{if(typeof window.bcw_widget<"u"){e&&window.clearInterval(e);const t={bot_api:i,landing:!0,host:r},o=document.createElement("style");n?(t.userData={uid:"testUser"},o.textContent=` 2 .widget-div-active { 3 transition: padding 0.3s ease-in-out; 4 } 5 6 @media (max-width: 991px) { 7 .widget-div-active { 8 padding: 0 30px; 9 } 10 } 11 12 @media (min-width: 992px) { 13 .widget-div-active { 14 padding: 0 300px; 15 } 16 } 17 18 .bg-white.chatHeight { 19 margin-top: 3% !important; 20 height: 94vh !important; 21 border: 1px solid var(--color-border); 22 overflow: hidden !important; 23 } 24 div#bcw5611_ID { 25 border-radius: 0 !important; 26 max-width: 850px !important; 27 width: 100% !important; 28 } 29 `,document.head.appendChild(o)):(o.textContent=` 30 #bcw5611_ID { 31 height: 100vh !important; 32 display: flex !important; 33 align-items: center; 34 justify-content: center; 35 background: transparent !important; 36 } 37 #wpic-launcher-child{ 38 display: none !important; 39 } 40 .bcw5611 .chat-container { 41 border-radius: 24px !important; 42 max-width: 850px !important; 43 width: 100% !important; 44 max-height: 85vh !important; 45 height: 100% !important; 46 box-shadow: 0 10px 40px rgba(0,0,0,0.1); 47 overflow: hidden !important; 48 } 49 .bcw5611 .backgroundGradient { border-radius: 0 !important; } 50 51 @media (max-width: 1024px) and (min-width: 768px) { 52 .bcw5611 .chat-container { 53 width: 90% !important; 54 } 55 } 56 57 @media (max-width: 767px) { 58 .bcw5611 .chat-container { 59 max-width: 100% !important; 60 width: 100% !important; 61 max-height: 100vh !important; 62 height: 100% !important; 63 border-radius: 0 !important; 64 } 65 } 66 `,document.head.appendChild(o)),window.bcw_widget.init("show",t)}a+=1,a===20&&e&&window.clearInterval(e)},300)}),u(()=>{e&&window.clearInterval(e)}),(i,n)=>(x(),g("div",b))}});export{y 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.