PageSourceSearch

https://curlec.com/build/browser/759865c2d033881429ad6f1fa07ef9d5e…/js/modern/spotinfo-widget.e878cf1c.js

js curlec.com collected 2026-10-03 22:45:18 UTC 13,116 bytes, 1 lines download raw bytes

1(self.webpackChunkfrontend_website=self.webpackChunkfrontend_website||[]).push([[8592],{77358:(t,n,e)=>{e.r(n),e.d(n,{default:()=>k});var o=e(64572),r=e(67294),a=e(65906),i=e.n(a),p=e(17623),d="https://www.spotinfo.ai/js/spotinfo-widget.umd.js",s="spotinfo-widget-script",m="rzp-spotinfo-widget-style",h=p.Z.UNIVERSE_PUBLIC_SPOTINFO_VOICE_CHAT_KEY,l=["MulishVariable","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto","Helvetica","Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),b="#132644",g="https://cdn.razorpay.com/static/assets/razorpay.com/ai-agent/ai-agent-thumbnail.png",c={"user-journey":"false","allow-voice":"true","use-whatsapp":"false","whatsapp-greeting":"Let's continue our interaction here.","use-telephony":"false","primary-color":"#2A86F3","secondary-color":"#0649ED","message-text-color":b,"button-content-color":"#FFFFFF","font-family":l,"message-font-size":"14px","bot-name":"Ray","root-button-height":"58px","root-button-width":"244px","root-button-shape":"boxed-pill","root-button-shape-mobile":"boxed","root-button-logo":g,"root-logo-height":"40px","root-logo-width":"40px","root-border-color":"#74D6B7","root-text-color":b,"desktop-x-offset":"24px","desktop-y-offset":"24px","mobile-x-offset":"4vw","mobile-y-offset":"4vh","root-subtitle":"Online. replies in 10s","root-title":"Need help with pricing?","view-type":"modern_view",width:"380px",height:"560px",placeholder:"Type your question here...","header-logo":g,"show-timestamp":"true","show-date-separator":"true","show-avatars":"true","ai-avatar":g,"footer-text":"All responses are generated by AI","popup-type":"modern","show-popup-primary-btn":"false"},u="\n  :host,\n  :host * {\n    font-family: ".concat(l," !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button {\n    font-family: ").concat(l," !important;\n  }\n\n  :host([data-open='false'][data-launcher-shape='boxed-pill']) {\n    width: 244px !important;\n    height: 58px !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed-pill'] {\n    width: 244px !important;\n    height: 58px !important;\n    padding: 8px 14px 8px 10px !important;\n    gap: 10px !important;\n    align-items: center !important;\n    border-radius: 12px !important;\n    border-width: 1px !important;\n    box-shadow: 0 16px 34px rgba(19, 38, 68, 0.16), 0 2px 8px rgba(19, 38, 68, 0.08) !important;\n    background:\n      linear-gradient(#fff, #fff) padding-box,\n      linear-gradient(180deg, rgb(110, 230, 196) 0%, rgb(90, 165, 144) 29.66%, rgb(179, 216, 205) 63.86%, rgb(201, 255, 220) 100%) border-box !important;\n    cursor: pointer !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed-pill']:hover,\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed-pill']:focus-visible {\n    transform: translateY(-1px) !important;\n    box-shadow: 0 20px 42px rgba(19, 38, 68, 0.2), 0 4px 12px rgba(39, 201, 152, 0.16) !important;\n    background:\n      linear-gradient(#F9FFFD, #FFFFFF) padding-box,\n      linear-gradient(180deg, #46c997 0%, #8ce4b0 100%) border-box !important;\n  }\n\n  :host([data-open='false'][data-launcher-shape='boxed']) {\n    width: 58px !important;\n    height: 58px !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed'] {\n    width: 58px !important;\n    height: 58px !important;\n    padding: 0 !important;\n    gap: 0 !important;\n    justify-content: center !important;\n    border-radius: 16px !important;\n    border-width: 1px !important;\n    box-shadow: 0 16px 34px rgba(19, 38, 68, 0.16), 0 2px 8px rgba(19, 38, 68, 0.08) !important;\n    position: relative !important;\n    overflow: visible !important;\n    background:\n      linear-gradient(#fff, #fff) padding-box,\n      linear-gradient(180deg, rgb(110, 230, 196) 0%, rgb(90, 165, 144) 29.66%, rgb(179, 216, 205) 63.86%, rgb(201, 255, 220) 100%) border-box !important;\n    cursor: pointer !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed'] .chat-widget-open-icon {\n    width: 42px !important;\n    height: 42px !important;\n    box-sizing: border-box !important;\n    padding: 2px !important;\n    border: 1px solid rgba(42, 134, 243, 0.22) !important;\n    border-radius: 50% !important;\n    background: #EFF6FF !important;\n    box-shadow: 0 0 0 3px rgba(42, 134, 243, 0.06) !important;\n    object-fit: cover !important;\n    object-position: 50% 30% !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed']::after {\n    content: '' !important;\n    position: absolute !important;\n    right: 8px !important;\n    bottom: 8px !important;\n    width: 9px !important;\n    height: 9px !important;\n    border: 2px solid #fff !important;\n    border-radius: 50% !important;\n    background: #27C998 !important;\n    box-shadow: 0 0 0 3px rgba(39, 201, 152, 0.16) !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed'] .chat-widget-modern-title,\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed'] .chat-widget-modern-status {\n    display: none !important;\n  }\n\n  :host([data-open='false']) #widget-launch-btn.chat-widget-open-button[data-shape='boxed'] .chat-widget-modern-avatar {\n    width: 42px !important;\n    height: 42px !important;\n  }\n\n  .chat-widget-modern-avatar {\n    width: 40px !important;\n    height: 40px !important;\n    box-sizing: border-box !important;\n    overflow: visible !important;\n    position: relative !important;\n  }\n\n  .chat-widget-modern-avatar--logo {\n    border: 1px solid rgba(42, 134, 243, 0.22) !important;\n    border-radius: 50% !important;\n    background: #EFF6FF !important;\n    box-shadow: 0 0 0 3px rgba(42, 134, 243, 0.06) !important;\n  }\n\n  .chat-widget-modern-avatar-image {\n    width: 100% !important;\n    height: 100% !important;\n    border-radius: 50% !important;\n    object-fit: cover !important;\n    object-position: 50% 30% !important;\n  }\n\n  .chat-widget-modern-avatar::after {\n    content: '' !important;\n    position: absolute !important;\n    right: -1px !important;\n    bottom: 1px !important;\n    width: 9px !important;\n    height: 9px !important;\n    border: 2px solid #fff !important;\n    border-radius: 50% !important;\n    background: #27C998 !important;\n    box-shadow: 0 0 0 3px rgba(39, 201, 152, 0.16) !important;\n  }\n\n  .chat-widget-modern-text {\n    gap: 3px !important;\n    min-width: 0 !important;\n  }\n\n  .chat-widget-modern-title {\n    color: #132644 !important;\n    font-size: 15px !important;\n    font-weight: 600 !important;\n    line-height: 18px !important;\n    letter-spacing: 0 !important;\n  }\n\n  .chat-widget-modern-status {\n    color: #5D6D86 !important;\n    font-size: 12px !important;\n    font-weight: 400 !important;\n    line-height: 14px !important;\n    margin-top: 0 !important;\n    letter-spacing: 0 !important;\n  }\n\n  .chat-widget-modern-status::before {\n    width: 7px !important;\n    height: 7px !important;\n  }
1\n\n  :host([data-open='true']) .modern-view,\n  :host([data-open='true']) .modern-view * {\n    font-family: ").concat(l," !important;\n  }\n\n  :host([data-open='true']) .modern-view {\n    background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 46%, #FFFFFF 56%, #F4F8FF 100%) !important;\n    border: 1px solid rgba(19, 38, 68, 0.1) !important;\n  }\n\n  :host([data-open='true']) .chat-widget-container.modern-view-mode {\n    background: transparent !important;\n    box-shadow: 0 18px 44px rgba(19, 38, 68, 0.18) !important;\n  }\n\n  :host([data-open='true']) .modern-header-name {\n    color: #132644 !important;\n    font-weight: 700 !important;\n  }\n\n  :host([data-open='true']) .modern-header-avatar,\n  :host([data-open='true']) .chat-header-logo {\n    width: 32px !important;\n    height: 32px !important;\n  }\n\n  :host([data-open='true']) .chat-header-logo {\n    border-radius: 5px !important;\n  }\n\n  :host([data-open='true']) .modern-header-status-text {\n    color: #5D6D86 !important;\n    font-weight: 500 !important;\n  }\n\n  :host([data-open='true']) .modern-header-status-dot.modern-status-online {\n    background: #27C998 !important;\n    box-shadow: 0 0 0 3px rgba(39, 201, 152, 0.12) !important;\n  }\n\n  :host([data-open='true']) .modern-footer {\n    min-height: 24px !important;\n    padding: 2px 16px 10px !important;\n    box-sizing: border-box !important;\n    align-items: center !important;\n    justify-content: center !important;\n    background: transparent !important;\n  }\n\n  :host([data-open='true']) .modern-footer-copy {\n    width: 100% !important;\n    height: auto !important;\n    justify-content: center !important;\n    color: #7890AD !important;\n    font-size: 11px !important;\n    font-weight: 300 !important;\n    line-height: 14px !important;\n    letter-spacing: 0 !important;\n    text-align: center !important;\n  }\n\n  :host([data-open='true']) .modern-header-btn {\n    background: rgba(19, 38, 68, 0.06) !important;\n    border-color: transparent !important;\n    color: #5D6D86 !important;\n    box-shadow: none !important;\n  }\n\n  :host([data-open='true']) .modern-header-btn:hover {\n    background: rgba(19, 38, 68, 0.1) !important;\n    color: #132644 !important;\n  }\n\n  :host([data-open='true']) .modern-header-btn svg,\n  :host([data-open='true']) .modern-header-btn svg path {\n    color: currentColor !important;\n    fill: currentColor !important;\n  }\n"),x=e(61283),f=e(50103),w=e(87702);function v(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,o)}return e}function y(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?v(Object(e),!0).forEach(function(n){(0,o.Z)(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEac
1h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function F(t){h?t.setAttribute("api-key",h):t.removeAttribute("api-key"),Object.entries(c).forEach(n=>{var[e,o]=n;t.setAttribute(e,o)});var n=(0,x.ej)(f.e4r);n&&t.setAttribute("user-id",n)}function E(t,n){t&&Object.entries(n).forEach(n=>{var[e,o]=n;t.style.setProperty(e,o,"important")})}const k=t=>{var{experimentVariantName:n,renderedVariantName:e,isFallbackVariant:o=!1}=t;return(0,r.useEffect)(()=>{var t=[],r=document.createElement("spotinfo-chat"),a=t=>{var a,i,p=t.detail;(0,w.LH)({eventName:null==p?void 0:p.event,eventProperties:null==p?void 0:p.properties,eventType:null==p?void 0:p.type,experimentVariantName:n,renderedVariantName:e,isFallbackVariant:o,spotInfoClientId:null==p?void 0:p.client_id,spotInfoUserId:null==p?void 0:p.user_id,targetElement:r.tagName.toLowerCase(),elementId:r.id||null,elementPosition:(a=r,i=a.getBoundingClientRect(),i.width||i.height?{x:Math.round(i.left+i.width/2),y:Math.round(i.top+i.height/2)}:null)})};r.addEventListener("spotinfo:widget-event",a),F(r),document.body.appendChild(r);var p=()=>{[0,50,150,300,600,1e3].forEach(n=>{var e=window.setTimeout(()=>{!function(t){var n=t.shadowRoot;if(n){var e=n.getElementById(m),o=null!=e?e:document.createElement("style");if(o.id=m,o.textContent=u,n.appendChild(o),"false"===t.getAttribute("data-open")){var r=n.querySelector("#widget-launch-btn.chat-widget-open-button"),a=null==r?void 0:r.getAttribute("data-shape"),i={background:"linear-gradient(#fff, #fff) padding-box, linear-gradient(180deg, rgb(110, 230, 196) 0%, rgb(90, 165, 144) 29.66%, rgb(179, 216, 205) 63.86%, rgb(201, 255, 220) 100%) border-box",border:"1px solid transparent",cursor:"pointer","font-family":c["font-family"]};"boxed-pill"===a&&E(r,y(y({},i),{},{"border-radius":"12px","box-shadow":"0 16px 34px rgba(19, 38, 68, 0.16), 0 2px 8px rgba(19, 38, 68, 0.08)",padding:"8px 14px 8px 10px"})),"boxed"===a&&(E(r,y(y({},i),{},{"border-radius":"16px","box-shadow":"0 16px 34px rgba(19, 38, 68, 0.16), 0 2px 8px rgba(19, 38, 68, 0.08)",overflow:"visible",position:"relative"})),E(n.querySelector(".chat-widget-open-icon"),{height:"42px","max-height":"42px","max-width":"42px",width:"42px"}))}}}(r)},n);t.push(e)})},h=document.getElementById(s),l=null!=h?h:document.createElement("script"),b=!h,g=()=>{F(r),p()},x=()=>{i().captureError(new Error("SpotInfoWidget: failed to load UMD script from CDN"),{rank:i().ErrorRank.P2,tags:{context:"SpotInfoWidget_CDNLoad",scriptSrc:d}})};return l.addEventListener("load",g),l.addEventListener("error",x),b?(l.id=s,l.src=d,l.async=!0,document.head.appendChild(l)):(F(r),p()),()=>{t.forEach(t=>window.clearTimeout(t)),l.removeEventListener("load",g),l.removeEventListener("error",x),r.removeEventListener("spotinfo:widget-event",a),r.remove(),b&&l.remove()}},[n,o,e]),null}}}]);

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.