PageSourceSearch

https://www.splutter.ai/_next/static/chunks/1435.8d46032619355b69.js

js splutter.ai collected 2026-09-29 03:22:26 UTC 11,835 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1435],{84092:(e,t,r)=>{r.d(t,{c:()=>a});var n=r(58168),o=r(96540),i=r(98878),a=o.forwardRef(function(e,t){return o.createElement(i.y,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),o.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}))});a.displayName="ChevronRight"},41023:(e,t,r)=>{r.d(t,{y:()=>a});var n=r(58168),o=r(96540),i=r(98878),a=o.forwardRef(function(e,t){return o.createElement(i.y,(0,n.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 48 48"},e,{ref:t}),o.createElement("path",{d:"M8.44 15.94a1.5 1.5 0 0 1 2.12 0L24 29.38l13.44-13.44a1.5 1.5 0 0 1 2.12 2.12l-14.5 14.5a1.5 1.5 0 0 1-2.12 0l-14.5-14.5a1.5 1.5 0 0 1 0-2.12Z"}))});a.displayName="ChevronDown"},98878:(e,t,r)=>{r.d(t,{y:()=>u});var n=r(58168),o=r(64467),i=r(80045),a=r(96540),d=r(44404),c=["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,o.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var p=a.forwardRef(function(e,t){var r=e.children,o=e.iconAttrs,d=(e.iconVerticalAlign,e.iconViewBox),l=e.size,p=e.title,u=(0,i.A)(e,c),f=s(s({viewBox:d,height:void 0!==e.height?e.height:l,width:void 0!==e.width?e.width:l,"aria-hidden":null==p?"true":void 0,focusable:"false",role:null!=p?"img":void 0},o),u);return a.createElement("svg",(0,n.A)({},f,{ref:t}),p&&a.createElement("title",{key:"icon-title"},p),r)}),u=(0,d.Ay)(p).withConfig({displayName:"StyledIconBase",componentId:"sc-ea9ulj-0"})(["display:inline-block;vertical-align:",";overflow:hidden;"],function(e){return e.iconVerticalAlign})},12242:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(19127),o=r(5820),i=r(87567),a=r(54756),d=r.n(a),c=r(96540),l=r(86715);r(71536);var s=r(44404),p=r(86354),u=r(7708),f=r(6712);r(5497);var h=r(60739);r(57561),r(35338);var g=r(74848);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}s.Ay.div.withConfig({displayName:"hostedgptBody__Menu",componentId:"sc-q23m9r-0"})(["position:absolute;top:","px;left:","px;background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,0.1);z-index:1000;"],function(e){return e.position.top},function(e){return e.position.left}),s.Ay.div.withConfig({displayName:"hostedgptBody__SelectMenu",componentId:"sc-q23m9r-1"})(["position:absolute;bottom:0px;left:",";background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,0.1);z-index:1000;"],function(e){return e.open?"190px":"-190px"}),s.Ay.div.withConfig({displayName:"hostedgptBody__MenuOption",componentId:"sc-q23m9r-2"})(["padding:8px 12px;padding-left:9px;font-size:0.7rem;cursor:pointer;&:hover{background-color:#f0f0f0;}"]),s.Ay.div.withConfig({displayName:"hostedgptBody__SelectMenuOption",componentId:"sc-q23m9r-3"})(["padding:8px 12px;font-size:0.7rem;cursor:pointer;&:hover{background-color:#f0f0f0;}"]),s.Ay.div.withConfig({displayName:"hostedgptBody__CollapsibleMenu",componentId:"sc-q23m9r-4"})(["min-height:",";max-height:",";transition:all 1.5s ease;padding-top:5px;border-bottom:1px solid #ddd;overflow:hidden;width:100%;"],function(e){return e.collapsed?"0px":"auto"},function(e){return e.collapsed?"0px":"auto"}),s.Ay.div.withConfig({displayName:"hostedgptBody__CollapseOption",componentId:"sc-q23m9r-5"})(["padding:8px 12px;padding-left:8px;display:flex;flex-direction:row;text-align:left;font-size:0.65rem;width:100%;cursor:pointer;&:hover{background-color:#f0f0f0;}"]),s.Ay.div.withConfig({displayName:"hostedgptBody__MenuButton",componentId:"sc-q23m9r-6"})(["width:100%;padding:5px;border:none;border-bottom:1px solid #999;text-align:left;cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;&:focus{outline:none;}"]);var x=(0,s.i7)(["from{opacity:1;height:40px;padding-top:10px;padding-bottom:6px;}to{opacity:0;display:none;height:0px;padding:0px;}"]),v=(0,s.i7)(["from{opacity:0;display:none;height:0px;padding:0px;}to{opacity:1;height:40px;padding-top:10px;padding-bottom:6px;}"]);function w(e){e.isAuthenticated,e.hostedGPTs;var t,r=e.hostedGPTData,n=e.userData,a=(0,l.useRouter)(),s=a.query,y=s.hostedGPTId,x=s.teamId,v=(0,p.hD)(u.auth),w=(0,i.A)(v,2),O=w[0];w[1],n=n||{email:"[email protected]",pfp:"",name:"Placeholder Name",chatbots:[]};var j=(0,c.useState)(null),A=j[0];j[1];var P=(0,c.useState)(!0),S=P[0],k=P[1],I=(0,c.useState)(r),C=I[0],_=I[1],D=(0,c.useState)(y),E=D[0],T=D[1],B=(0,c.useState)(C?C.folders:[]),N=(B[0],B[1]),q=(0,
1c.useState)({}),M=q[0],z=q[1],R=(0,h.P)(),V=(R.hostedgptsData,R.updateHostedgptsData,R.clearHostedgptsData,R.getHostedgptData),H=(R.setHostedgptTeamId,R.fetchThreadInfo);R.modifyThread,(0,c.useEffect)(function(){if(S)O&&G();else{var e,t=(e=(0,o.A)(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(O&&A)){e.next=8;break}return setFetchingThread(!0),e.next=4,H(O,E,A.id);case 4:setSelectedThreadData(e.sent),setThreads(function(e){return e.map(function(e){return e.id===A.id?b(b({},e),{},{loaded:!0}):e})}),setFetchingThread(!1);case 8:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});H&&t()}},[O,A,E,C]);var G=(t=(0,o.A)(d().mark(function e(){var t,r,o,i,a,c,l;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=n.hostedGPTs.map(function(e){return e.uid}),r={},o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return m(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,void 0)}}(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){d=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(d)throw i}}}}(t),e.prev=4,o.s();case 6:if((i=o.n()).done){e.next=23;break}return a=i.value,c=void 0,e.prev=9,e.next=12,V(O,a);case 12:(c=e.sent)&&x&&c.teamId&&""!==c.teamId?c.isAdmin=(null===(l=teamData.members.find(function(e){return e.uid===O.uid}))||void 0===l?void 0:l.role)==="admin":c.isAdmin=!0,r[a]=c,z(r),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(9),console.error("Error fetching data for UID ".concat(a,":"),e.t0);case 21:e.next=6;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(4),o.e(e.t1);case 28:return e.prev=28,o.f(),e.finish(28);case 31:k(!1),e.next=37;break;case 34:e.prev=34,e.t2=e.catch(0),console.error("Error loading hosted GPT data:",e.t2);case 37:case"end":return e.stop()}},e,null,[[0,34],[4,25,28,31],[9,18]])})),function(){return t.apply(this,arguments)});return C?(0,g.jsx)(f.mc,{children:(0,g.jsx)(g.Fragment,{children:"Redirecting..."})}):S?(0,g.jsx)(g.Fragment,{children:"Loading HostedGPT..."}):(M&&Object.values(M).length>0&&console.log(M),(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,g.jsx)("h2",{children:"HostedGPTs"}),(0,g.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"20px",justifyContent:"center"},children:M&&Object.values(M).length>0&&(0,g.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"20px",justifyContent:"center"},children:Object.values(M).map(function(e,t){return(0,g.jsxs)("div",{style:{border:"1px solid #ccc",borderRadius:"8px",padding:"16px",textAlign:"center",width:"150px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",cursor:"pointer"},onClick:function(){a.push("/hostedgpts/"+e.uid),_(e),T(e.uid),N(e.folders)},children:[(0,g.jsx)("img",{src:e.logo||"/chatbot.webp",alt:e.name||"Alt",style:{width:"100px",height:"100px",objectFit:"cover",marginBottom:"8px",borderRadius:"50%"}}),(0,g.jsx)("div",{style:{fontWeight:"bold",marginTop:"8px"},children:e.name})]},t)})})})]}))}s.Ay.div.withConfig({displayName:"hostedgptBody__FadeOutDiv",componentId:"sc-q23m9r-7"})(["animation:",";transition:all 0.5s ease-out;font-size:0.63rem;font-family:\"Segoe UI\",'Tahoma';color:#333;border-bottom:1px solid rgba(0,0,0,0.1);width:100%;padding-top:10px;padding-bottom:6px;text-align:center;height:40px;max-height:40px;"],function(e){return e.show?(0,s.AH)([""," 0.5s ease-out forwards"],v):(0,s.AH)([""," 0.5s ease-out forwards"],x)}),s.Ay.div.withConfig({displayName:"hostedgptBody__MenuOpener",componentId:"sc-q23m9r-8"})(["display:flex;align-items:center;justify-content:center;color:#000;cursor:pointer;flex-direction:column;width:30px;height:12px;position:absolute;top:4px;background:#ddd;padding:5px;padding-top:0px;border-radius:5px;&:hover{background:#eee;}"])},64467:(e,t,r)=>{r.d(t,{A:()=>
1o});var n=r(98406);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},58168:(e,t,r)=>{r.d(t,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}},80045:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(98587);function o(e,t){if(null==e)return{};var r,o,i=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},98587:(e,t,r)=>{r.d(t,{A:()=>n});function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}},98406:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(82284);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},82284:(e,t,r)=>{r.d(t,{A:()=>n});function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}}}]);

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.