PageSourceSearch

https://spiaggefrontend-production.up.railway.app/_next/static/chu…/widget/[agent_id]-00b0fa5eb03696e7.js

js spiaggefrontend-production.up.railway.app collected 2026-10-03 12:15:05 UTC 7,642 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[988],{8091:(e,t,r)=>{"use strict";r.d(t,{w:()=>h});var n=r(37876),o=r(14232),s=r(74482),i=r(57175),a=r(32850),l=r(65017),d=r(19360);let{useRecipeResult:c,PropsProvider:u}=(0,s.a)({key:"separator"}),h=(0,o.forwardRef)(function(e,t){let{styles:r,className:o,props:s}=c(e),u=e.orientation||"horizontal";return(0,n.jsx)(i.B.span,{ref:t,role:(0,l.Kg)(u)?"separator":"presentation","aria-orientation":(0,l.Kg)(u)?u:void 0,...(0,d.c)(s,["orientation"]),className:(0,a.cx)(o,e.className),css:[r,e.css]})})},8641:(e,t,r)=>{"use strict";r.d(t,{S:()=>n,f:()=>o});let[n,o]=(0,r(31889).q)({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1})},20529:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});let{withContext:n,PropsProvider:o}=(0,r(74482).a)({key:"heading"}),s=n("h2")},58233:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/widget/[agent_id]",function(){return r(94636)}])},69035:(e,t,r)=>{"use strict";r.d(t,{Bm:()=>p,XL:()=>m});var n=r(37876),o=r(14232),s=r(65981),i=r(5794),a=r(57175),l=r(6206);let[d,c]=(0,s.q)({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:u,withContext:h,useStyles:g,PropsProvider:f}=(0,i.c)({key:"alert"}),p=u("div","root",{forwardAsChild:!0,wrapElement:(e,t)=>(0,n.jsx)(d,{value:{status:t.status||"info"},children:e})}),m=h("div","title");h("div","description"),h("div","content");let x={info:l.mo,warning:l.id,success:l.C1,error:l.id,neutral:l.mo};(0,o.forwardRef)(function(e,t){let r=c(),s=g(),i="string"==typeof r.status?x[r.status]:o.Fragment,{children:l=(0,n.jsx)(i,{}),...d}=e;return(0,n.jsx)(a.B.span,{ref:t,...d,css:[s.indicator,e.css],children:l})})},75306:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(59971);function o(){return{type:"break"}}function s(){return function(e){(0,n.T)(e,[/\r?\n|\r/g,o])}}},77362:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});var n=r(37876),o=r(5661),s=r(14232),i=r(61112),a=r(8641);let l=(0,s.forwardRef)((e,t)=>{let r=(0,a.f)(),s=(0,o.v6)(r?.getInputProps(),e);return(0,n.jsx)(i.X.input,{...s,ref:t})});l.displayName="FieldInput";let{withContext:d,PropsProvider:c}=(0,r(74482).a)({key:"input"}),u=d(l)},79594:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});let o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},s=new Uint8Array(16),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));let a=function(e,t,r){if(o.randomUUID&&!t&&!e)return o.randomUUID();var a=e,l=r;let d=(a=a||{}).random??a.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(s)}();if(d.length<16)throw Error("Random bytes length must be >= 16");if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,t){if((l=l||0)<0||l+16>t.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[l+e]=d[e];return t}return function(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}(d)}},94636:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>b,default:()=>j});var n=r(37876),o=r(43123),s=r(95563),i=r(39822),a=r(60307),l=r(14232),d=r(89099),c=r(77328),u=r.n(c),h=r(66238),g=r(74801),f=r(53013),p=r(1924),m=r(20529),x=r(30488),y=r(72953),w=r(32746);class v extends l.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,t){console.error("[Widget Error Boundary]",e,t),this.setState({error:e,errorInfo:t}),(0,w.xM)("error",{error:e.message,stack:e.stack,componentStack:t.componentStack,agentId:this.props.agentId})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,n.jsx)(i.a,{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",p:6,backgroundColor:"white",color:"black",children:(0,n.jsxs)(p.T,{gap:4,maxWidth:"400px",textAlign:"center",children:[(0,n.jsx)(m.D,{size:"lg",color:"red.600",children:"Oops! Something went wrong"}),(0,n.jsx)(x.E,{fontSize:"sm",color:"gray.600",children:"We encountered an unexpected error. Please try refreshing the widget."}),this.state.error&&(0,n.jsx)(x.E,{fontSize:"xs",color:"gray.500",fontFamily:"monospace",children:this.state.error.message}),(0,n.jsx)(y.$,{onClick:this.handleReset,colorScheme:"blue",size:"sm",mt:2,children:"Retry"})]})}):this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null})},this.state={hasError:!1,error:null,errorInfo:null}}}var b=!0;function j(){let e=(0,d.useRouter)(),t=e.query.agent_id||void 0,r=e.query.config||void 0,a=r?(0,w.Tq)(r):null,{data:c,error:h}=(0,g.lk)(a?void 0:t),p=a||c,m=null==p?void 0:p.welcome_message,x=null==p?void 0:p.widget_name,[y,b]=(0,l.useState)(!p),[j,k]=(0,l.useState)(!1),[E,S]=(0,l.useState)(!1),[_,C]=(0,l.useState)(!1),[I,N]=(0,l.useState)(null),[U,F]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{let e=window.matchMedia("(max-width: 640px)");S(e.matches);let t=e=>S(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,l.useEffect)(()=>{let e=e=>{e.data&&"fullscreen-changed"===e.data.type&&C(e.data.isFullscreen),e.data&&"parent-url"===e.data.type&&N(e.data.url)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),(0,l.useEffect)(()=>{p?(b(!1),k(!1)):h&&(b(!1),k(!0))},[p,h]),(0,l.useEffect)(()=>{F(!!e.query.agent_id&&!!m&&!!x)},[e.query.agent_id,m,x]),!e.query.agent_id)return null;if(y)return(0,n.jsx)(o.s,{position:"fixed",top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",backgroundColor:(null==p?void 0:p.theme_color)==="light"?"white":"#1a1a1a",children:(0,n.jsx)(s.y,{size:"lg",color:(null==p?void 0:p.widget_color)||"blue.500"})});if(j||!p)return(0,n.jsx)(o.s,{position:"fixed",top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",backgroundColor:"white",color:"black",p:6,textAlign:"center",children:(0,n.jsxs)(i.a,{children:[(0,n.jsx)(i.a,{fontSize:"2xl",mb:2,children:"⚠️"}),(0,n.jsx)(i.a,{fontSize:"md",fontWeight:"bold",children:"Failed to load widget"}),(0,n.jsx)(i.a,{fontSize:"sm",color:"gray.600",mt:2,children:"Please try refreshing the page"})]})});let R="light"===p.theme_color?"white":"black";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u(),{children:[(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}),(0,n.jsx)("style",{children:"\n        html, body {\n          overflow: hidden;
1\n          overscroll-behavior: none;\n          position: fixed;\n          width: 100%;\n          height: 100%;\n        }\n      "})]}),(0,n.jsx)(v,{agentId:t,children:U&&(0,n.jsx)(i.a,{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%",display:"flex",overflow:"hidden",flexDirection:"column",justifyContent:"space-between",backgroundColor:R,children:(0,n.jsx)(v,{agentId:t,children:(0,n.jsx)(f.c,{onClose:()=>{parent.postMessage({type:"close-widget"},"*")},onFullscreenToggle:()=>{parent.postMessage({type:"toggle-fullscreen"},"*"),C(!_)},isFullscreen:_,isMobile:E,agentId:e.query.agent_id,welcomeMessage:m||"",agentName:x||"",isEmbeddedWidget:!0,currentUrl:I,...p})})})})]})}j.getLayout=function(e){return(0,n.jsx)(a.s,{value:h.uB,children:e})}}},e=>{e.O(0,[302,15,924,432,477,636,593,792],()=>e(e.s=58233)),_N_E=e.O()}]);

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.