PageSourceSearch

https://cdn.stackby.com/build/7772.8b4926ed5f8199f017c1.bundle.js

js stackby.com collected 2026-09-24 09:38:19 UTC 11,275 bytes, 2 lines download raw bytes

vendor: 4,275 bytes, lines 1-2
1/*! For license information please see 7772.8b4926ed5f8199f017c1.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunkStackby_webapp=self.webpackChunkStackby_webapp||[]).push([[7772],{7772:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var n=r(71083),a=r(379),o=r(61351),c=r(92672),s=r(9872),i=r(43911),l=r(70510),u=r(96763);function d(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(r,n,a,o){var i=n&&n.prototype instanceof s?n:s,l=Object.create(i.prototype);return f(l,"_invoke",function(r,n,a){var o,s,i,l=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,i=e,f.n=r,c}};function p(r,n){for(s=r,i=n,t=0;!d&&l&&!a&&t<u.length;t++){var a,o=u[t],p=f.p,m=o[2];r>3?(a=m===n)&&(i=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((a=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,f.n=m,s=0))}if(a||r>1)return c;throw d=!0,n}return function(a,u,m){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),s=u,i=m;(t=s<2?e:i)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,i)):f.n=i:f.v=i);try{if(l=2,o){if(s||(a="next"),t=o[a]){if(!(t=t.call(o,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(i=TypeError("The iterator does not provide a '"+a+"' method"),s=1);o=e}else if((t=(d=f.n<0)?i:r.call(n,f))!==c)break}catch(t){o=e,s=1,i=t}finally{l=1}}return{value:t,done:d}}}(r,a,o),!0),l}var c={};function s(){}function i(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(f(t={},n,function(){return this}),t),p=l.prototype=s.prototype=Object.create(u);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,f(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return i.prototype=l,f(p,"constructor",l),f(l,"constructor",i),i.displayName="GeneratorFunction",f(l,a,"GeneratorFunction"),f(p),f(p,a,"Generator"),f(p,n,function(){return this}),f(p,"toString",function(){return"[object Generator]"}),(d=function(){return{w:o,m}})()}function f(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}f=function(e,t,r,n){function o(t,r){f(e,t,function(e){return this._invoke(t,r,e)})}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},f(e,t,r,n)}function p(e,t,r,n,a,o,c){try{var s=e[o](c),i=s.value}catch(e){return void r(e)}s.done?t(i):Promise.resolve(i).then(n,a)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function c(e){p(o,n,a,c,s,"next",e)}function s(e){p(o,n,a,c,s,"throw",e)}c(void 0)})}}function b(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){return y="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},y(e)}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,c,s=[],i=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);i=!0);}catch(e){l=!0,a=e}
2finally{try{if(!i&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(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}const w=(0,c.A)(function(){var e=(0,a.useRef)(null),t=k((0,a.useState)(!1),2),r=t[0],c=t[1],f=k((0,a.useState)([]),2),p=f[0],b=f[1],j=k((0,a.useState)(!1),2),w=j[0],g=j[1],x=k((0,a.useState)(""),2),N=x[0],S=x[1],O=k((0,a.useState)(""),2),C=O[0],P=O[1],A=k((0,a.useState)(""),2),I=A[0],T=A[1],E=k((0,a.useState)({}),2),_=E[0],G=E[1];(0,a.useEffect)(function(){var t=function(t){e.current&&!e.current.contains(t.target)&&c(!1)};return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}},[]);var L=(0,a.useCallback)(function(e){if(!e||"object"!==y(e))return[];var t=e.list,r=void 0===t?{}:t;if(!r||"object"!==y(r))return[];var n=(Array.isArray(r)?r:Object.entries(r).map(function(e){var t=k(e,2),r=t[0],n=t[1];return h({stackId:r},void 0===n?{}:n)})).reduce(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.workspaceName||"Other Workspace";return e[r]||(e[r]=[]),e[r].push({stackId:t.stackId,stackName:t.stackName||t.name||t.stackId}),e},{});return Object.entries(n).map(function(e){var t=k(e,2);return{workspaceName:t[0],stacks:t[1]}})},[]),D=(0,a.useCallback)(m(d().m(function e(){var t,r,a,o;return d().w(function(e){for(;;)switch(e.p=e.n){case 0:return g(!0),S(""),e.p=1,e.n=2,n.A.get("/api/v1/fetchallstacks");case 2:t=e.v,r={};try{r=JSON.parse((0,s.Y)(null===(a=t.data)||void 0===a?void 0:a.data))}catch(e){r=t.data||{}}o=L(r),b(o),G(o.reduce(function(e,t){return e[t.workspaceName]=!0,e},{})),e.n=4;break;case 3:e.p=3,e.v,S("Unable to load stacks");case 4:return e.p=4,g(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])})),[L]);(0,a.useEffect)(function(){D()},[D]),(0,a.useEffect)(function(){var e=new URLSearchParams(window.location.search),t={};e.forEach(function(e,r){t[r]=e});var r=Object.entries(t).reduce(function(e,t){var r=k(t,2),n=r[0],a=r[1];return e[n]="string"==typeof a?a.trim():a,e},{});u.log("OAuth callback params (raw):",t),u.log("OAuth callback params (trimmed):",r)},[]);var Y=(0,a.useMemo)(function(){var e=I.trim().toLowerCase();return e?p.map(function(t){var r=t.workspaceName.toLowerCase().includes(e)?t.stacks:t.stacks.filter(function(t){return t.stackName.toLowerCase().includes(e)});return r.length?h(h({},t),{},{stacks:r}):null}).filter(Boolean):p},[I,p]);return(0,l.jsx)("div",{id:"StackbyAuthCallback",children:(0,l.jsxs)("div",{className:"auth-card",children:[(0,l.jsxs)("div",{className:"brand-row",children:[(0,l.jsx)("div",{className:"brand-pill",children:(0,l.jsx)("img",{src:"https://claude.ai/favicon.ico",alt:"Claude logo",className:"brand-logo"})}),(0,l.jsx)("div",{className:"dots",children:"..."}),(0,l.jsx)("div",{className:"brand-pill stackby",children:(0,l.jsx)("img",{src:i,alt:"Stackby logo",className:"brand-logo"})})]}),(0,l.jsx)("h1",{className:"title",children:"Stackby for Claude is requesting Stackby access"}),(0,l.jsx)("div",{className:"divider"}),(0,l.jsxs)("div",{className:"section",children:[(0,l.jsx)("p",{className:"label",children:"Stackby for Claude will be able to see:"}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:"The data in your records"}),(0,l.jsx)("li",{children:"The structure of your stack, like table names or field types"})]})]}),(0,l.jsxs)("div",{className:"section",children:[(0,l.jsx)("p",{className:"label",children:"Stackby for Claude will be able to edit:"}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:"Your records, including creating and deleting records"}),(0,l.jsx)("li",{children:"The structure of your stack, like adding new fields or tables"})]})]}),(0,l.jsx)("div",{className:"divider"}),(0,l.jsx)("p",{className:"small",children:"Authorizing as current user"}),(0,l.jsx)("div",{className:"divider"}),(0,l.jsx)("p",{className:"small",children:"Stackby for Claude can access the following stacks and workspaces. You can only grant access to stacks and workspaces you have access to."}),(0,l.jsxs)("div",{className:"links",children:[(0,l.jsxs)("div",{className:"stack-dropdown-wrap",ref:e,children:[(0,l.jsxs)("button",{type:"button",onClick:function(){var e=!r;c(e),e&&T("")},children:[(0,l.jsx)(o.IoAddOutline,{}),"Add a stack"]}),r&&(0,l.jsxs)("div",{className:"stack-dropdown",children:[!w&&!N&&p.length>0&&(0,l.jsx)("div",{className:"stack-dropdown-search-wrap",children:(0,l.jsx)("input",{type:"text",placeholder:"Search workspace or stack...",className:"stack-dropdown-search",value:I,onChange:function(e){return T(e.target.value)}})}),w&&(0,l.jsx)("div",{className:"stack-dropdown-item",children:"Loading..."}),!w&&N&&(0,l.jsx)("div",{className:"stack-dropdown-item",children:N}),!w&&!N&&0===p.length&&(0,l.jsx)("div",{className:"stack-dropdown-item",children:"No stacks foun
2d"}),!w&&!N&&p.length>0&&0===Y.length&&(0,l.jsx)("div",{className:"stack-dropdown-item",children:"No matching results"}),!w&&!N&&Y.map(function(e){return(0,l.jsxs)("div",{className:"stack-dropdown-group",children:[(0,l.jsxs)("button",{type:"button",className:"stack-dropdown-workspace",onClick:function(){return t=e.workspaceName,void G(function(e){return h(h({},e),{},v({},t,!e[t]))});var t},children:[(0,l.jsx)("span",{children:e.workspaceName}),(0,l.jsx)("span",{className:"workspace-toggle-icon",children:_[e.workspaceName]?(0,l.jsx)(o.IoChevronUp,{}):(0,l.jsx)(o.IoChevronDown,{})})]}),_[e.workspaceName]&&e.stacks.map(function(e){return(0,l.jsx)("div",{className:"stack-dropdown-item ".concat(C===e.stackId?"selected":""),onClick:function(){return function(e){P(e.stackId),c(!1)}(e)},role:"button",tabIndex:0,children:e.stackName},e.stackId)})]},e.workspaceName)})]})]}),(0,l.jsxs)("button",{type:"button",children:[(0,l.jsx)(o.IoAddOutline,{}),"Add all resources"]})]}),(0,l.jsxs)("div",{className:"actions",children:[(0,l.jsx)("button",{type:"button",className:"btn ghost",children:"Cancel"}),(0,l.jsx)("button",{type:"button",className:"btn primary",children:"Grant access"})]}),(0,l.jsx)("p",{className:"small",style:{marginTop:"14px"},children:"Make sure you trust Stackby for Claude (claude.ai)"}),(0,l.jsx)("p",{className:"small",style:{marginTop:"10px"},children:"Stackby does not review third-party integrations such as this one. Your use of this integration is subject to Stackby for Claude's Terms of Service and Privacy Policy. You may revoke Stackby for Claude's access from the Integrations item of your Account menu at any time."})]})})})}}]);

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.