1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[809],{38993:function(e,t,n){"use strict";var r=n(67294),o=n(67814);t.Z=(0,r.memo)(o.G)},44358:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),o=n(67294),s=n(94184),i=n.n(s),a=n(82106),c=n(84527),l=n(10939),u=n(21869),d=n(17266);function h(e){let{children:t,tip:n}=e,[s,h]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!1);(0,o.useEffect)(()=>{s!==p&&requestAnimationFrame(()=>{m(s)})},[s,p]);let v={onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},[f]=(0,o.useContext)(l.N),g=(0,u.Z)("(prefers-color-scheme: dark)"),y=f?"dark"===f:g,E=(0,o.useRef)(null);return(0,r.jsx)(c.ZP,{in:s,timeout:100,nodeRef:E,children:e=>(0,r.jsx)(a.Popover,{isOpen:["entering","entered","exiting"].includes(e),positions:["top","bottom","left","right"],containerClassName:i()("z-50"),padding:4,content:e=>{let{position:t,childRect:o,popoverRect:s}=e;return(0,r.jsx)(a.ArrowContainer,{position:t,childRect:o,popoverRect:s,arrowSize:8,arrowColor:y?d.daisyui.themes[1].dark["base-100"]:d.daisyui.themes[0].light["base-100"],arrowClassName:i()("z-50","transition-all","duration-100",p?["opacity-80","translate-y-0"]:["opacity-0","translate-y-1","pointer-events-none","select-none"]),children:(0,r.jsx)("div",{ref:E,className:i()("max-w-[400px]","max-h-[400px]","p-2","rounded","shadow","text-base-content","text-sm","bg-base-200/20","backdrop-blur-md","transition-all","duration-100",p?["opacity-100","translate-y-0"]:["opacity-0","translate-y-1","pointer-events-none","select-none"]),children:n})})},children:(0,o.cloneElement)(t,v)})})}},66040:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(85893),o=n(86501),s=n(94184),i=n.n(s);function a(e){let{state:t,t:n,body:s}=e;return(0,r.jsxs)("div",{className:i()("alert","max-w-md","gap-3","shadow-lg","transition-all","duration-150",n.visible?["opacity-100","translate-y-0"]:["opacity-0","-translate-y-2"],"error"==t&&"alert-error","success"==t&&"alert-success"),children:[(0,r.jsx)("div",{className:i()("flex","justify-center","items-center","w-8","text-lg")}),(0,r.jsx)("span",{children:s}),(0,r.jsx)("div",{children:(0,r.jsx)("button",{className:i()("btn","btn-sm","btn-square","btn-ghost","text-lg"),onClick:()=>o.Am.dismiss(n.id)})})]})}let c={error:e=>{o.Am.custom(t=>(0,r.jsx)(a,{state:"error",t:t,body:e}),{position:"top-center",duration:1e4})},success:e=>{o.Am.custom(t=>(0,r.jsx)(a,{state:"success",t:t,body:e}),{position:"top-center",duration:1e4})}}},82939:function(e,t,n){"use strict";n.d(t,{h:function(){return y},L:function(){return S}});var r=n(5121),o=n(67294),s=n(95591),i=n(11753),a=n(80129),c=n.n(a),l=n(63360),u=n.n(l),d=n(74613),h=n.n(d),p=n(58809),m=n.n(p),v=n(66040);n(85893),n(94184),n(38993),n(44358);let f={setStatus:()=>0,setTooltip:()=>0}
1,g={ERROR:"ERROR",INDETERMINATE:"INDETERMINATE",CONNECTED:"CONNECTED"},y=r.Z.create({baseURL:"https://listingoptix.ai/api/v1",withCredentials:!0,redirectOn401:!0});y.interceptors.request.use(e=>(e.headers.Authorization="Bearer ".concat(localStorage.getItem("sessionToken")),e.headers["X-ListingOptix-Workspace-UUID"]=localStorage.getItem("workspaceUuid"),void 0===e.showErrorToast&&(e.showErrorToast=!1),e.signal||(e.signal=AbortSignal.timeout(18e4)),e)),y.interceptors.response.use(e=>e,e=>{var t,n,r,o;return e.config.redirectOn401&&(null===(t=e.response)||void 0===t?void 0:t.status)===401&&(localStorage.removeItem("sessionToken"),localStorage.removeItem("workspaceUuid"),window.location.href="/login"),(null===(n=e.response)||void 0===n?void 0:n.status)==429&&v.A.error("You're making too many requests to the service. If you think we're being overly restrictive with requests, please send us an email and we can lighten them up."),(null===(r=e.config)||void 0===r?void 0:r.showErrorToast)&&("ERR_NETWORK"===e.code||(null===(o=e.response)||void 0===o?void 0:o.status)>=500)&&v.A.error("An unexpected error occurred"),Promise.reject(e)});let E={};function S(e){let[t,n]=e||[],r=(0,o.useRef)(null),a=(0,o.useRef)(null),{cache:l}=(0,s.kY)(),[d,p]=(0,o.useState)(0),y=(0,o.useRef)(500);(0,o.useEffect)(()=>{let e;if(t&&!E[JSON.stringify([t,n])]){E[JSON.stringify([t,n])]=!0,console.log("CONNECT ATTEMPT",d);try{(e=new WebSocket("wss://listingoptix.ai/api/v1"+t+"?"+c().stringify(n,{arrayFormat:"brackets"}))).addEventListener("open",function(){console.log("OPEN",t,n),500!==y.current&&(f.setStatus(g.CONNECTED),f.setTooltip(null)),y.current=500,S()}),e.addEventListener("message",e=>{var r,o;let a,{data:c}=e;try{a=JSON.parse(c)}catch(e){console.error(e),v.A.error("Server sent something unexpected.");return}if(null==a?void 0:null===(r=a.meta)||void 0===r?void 0:r.pong){S();return}let d=l.get((0,i.qC)([t,n])[0]),p=u()(h()(m()("uuid",(null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.data)||[]),m()("uuid",a.data))).filter(e=>!e.removed);(0,s.JG)([t,n],{...(null==d?void 0:d.data)||{},data:p},{revalidate:!1})}),e.addEventListener("error",o)}catch(e){o(e)}return()=>{console.log("CLOSE"),clearTimeout(r.current),clearTimeout(a.current),null==e||e.close(),E[JSON.stringify([t,n])]=!1}}function o(e){500===y.current&&(f.setStatus(g.INDETERMINATE),f.setTooltip("Lost connection with server, reconnecting...")),y.current>4e3&&(f.setStatus(g.ERROR),f.setTooltip("Lost connection with server, reconnecting...")),console.error("ERROR",e,y.current),setTimeout(()=>{y.current*=2,p(d+1)},y.current)}function S(){clearTimeout(r.current),clearTimeout(a.current),r.current=setTimeout(()=>{e.send(JSON.stringify({message:"ping"})),a.current=setTimeout(()=>{o(Error("PONG_TIMEOUT"))},1e4)},1e4)}},[t,JSON.stringify(n),l,s.JG,d])}},77117:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294),o=n(95591);function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let s=(0,o.ZP)(...t);return(0,r.useMemo)(()=>s,[s.data,s.error,s.isValidating])}},17266:function(e,t,n){"use strict";let r=n(54863),o=n(83031),s=n(43507);e.exports={content:["./components/**/*.js","./lib/**/*.js","./pages/**/*.js","./systems/**/*.js"],theme:{extend:{height:{"app-height":"var(--app-height)"},fontFamily:{main:["var(--font-main)","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],accent:["var(--font-accent)","ui-cursive","Savoye LET","Brush Script MT","Brush Script Std","Lucida Calligraphy","Lucida Handwriting","Apple Chancery","URW Chancery L","cursive"],mono:["var(--font-mono)","ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],cursive:["var(--font-cursive)","ui-cursive","Savoye LET","Brush Script MT","Brush Script Std","Lucida Calligraphy","Lucida Handwriting","Apple Chancery","URW Chancery L","cursive"]},screens:{"pointer-coarse":{raw:"(pointer: coarse)"},"pointer-fine":{raw:"(pointer: fine)"},"pointer-none":{raw:"(pointer: none)"},"hover-hover":{raw:"(hover: hover)"},"hover-none":{raw:"(hover: none)"}}}},daisyui:{themes:[{light:{"color-scheme":"light",primary:"hsl(26 100% 60% / 1)","primary-content":"hsl(2
16 100% 100% / 0.65)",secondary:"hsl(228 82% 13% / 1)","secondary-content":"hsl(26 100% 100% / 0.65)",accent:"hsl(329 100% 53% / 1)","accent-content":"hsl(26 0% 0% / 0.65)",neutral:"hsl(228 18% 27% / 1)","neutral-focus":"hsl(228 18% 32% / 1)","neutral-content":"hsl(228 100% 100% / 0.80)","base-100":"hsl(228 100% 100% / 1)","base-200":"hsl(228 20% 95% / 1)","base-300":"hsl(228 7% 83% / 1)","base-content":"hsl(228 60% 14% / 1)"}},{dark:{"color-scheme":"dark",primary:"hsl(26 100% 60% / 1)","primary-content":"hsl(26 100% 100% / 0.65)",secondary:"hsl(228 80% 43% / 1)","secondary-content":"hsl(26 100% 100% / 0.65)",accent:"hsl(329 100% 53% / 1)","accent-content":"hsl(228 0% 0% / 0.65)",neutral:"hsl(228 18% 27% / 1)","neutral-focus":"hsl(228 18% 32% / 1)","neutral-content":"hsl(228 100% 100% / 0.80)","base-100":"hsl(228 23% 12% / 100)","base-200":"hsl(228 28% 8% / 100)","base-300":"hsl(228 50% 5% / 100)","base-content":"hsl(228 10% 90% / 100)"}}],darkTheme:"dark"},plugins:[r,o,s]}},24654:function(){},22868:function(){},14777:function(){},99830:function(){},70209:function(){}}]);
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.