PageSourceSearch

https://cosmosflex.netlify.app/_next/static/chunks/pages/settings-d880917182dd3b69.js

js cosmosflex.netlify.app collected 2026-10-03 10:36:48 UTC 15,092 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{4019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7942:function(e,t,n){"use strict";var r=n(5696);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,s=(o=n(7294))&&o.__esModule?o:{default:o},l=n(4957),a=n(7995),i=n(647),c=n(1992),u=n(639),f=n(4019),d=n(227);var p="undefined"!==typeof s.default.useTransition,m={};function x(e,t,n,r){if(e&&l.isLocalURL(t)){e.prefetch(t,n,r).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;m[t+"%"+n+(o?"%"+o:"")]=!0}}var h=s.default.forwardRef((function(e,t){var n,o=e.href,h=e.as,v=e.children,j=e.prefetch,g=e.passHref,b=e.replace,y=e.shallow,w=e.scroll,O=e.locale,N=e.onClick,_=e.onMouseEnter,k=e.legacyBehavior,C=void 0===k?!0!==Boolean(!1):k,P=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","legacyBehavior"]);n=v,!C||"string"!==typeof n&&"number"!==typeof n||(n=s.default.createElement("a",null,n));var M=!1!==j,E=p?s.default.useTransition():[],L=r(E,2)[1],S=s.default.useContext(i.RouterContext),D=s.default.useContext(c.AppRouterContext);D&&(S=D);var I,A=s.default.useMemo((function(){var e=l.resolveHref(S,o,!0),t=r(e,2),n=t[0],s=t[1];return{href:n,as:h?l.resolveHref(S,h):s||n}}),[S,o,h]),R=A.href,T=A.as,B=s.default.useRef(R),Z=s.default.useRef(T);C&&(I=s.default.Children.only(n));var F=C?I&&"object"===typeof I&&I.ref:t,H=u.useIntersection({rootMargin:"200px"}),U=r(H,3),K=U[0],z=U[1],J=U[2],W=s.default.useCallback((function(e){Z.current===T&&B.current===R||(J(),Z.current=T,B.current=R),K(e),F&&("function"===typeof F?F(e):"object"===typeof F&&(F.current=e))}),[T,F,R,J,K]);s.default.useEffect((function(){var e=z&&M&&l.isLocalURL(R),t="undefined"!==typeof O?O:S&&S.locale,n=m[R+"%"+T+(t?"%"+t:"")];e&&!n&&x(S,R,T,{locale:t})}),[T,R,z,O,M,S]);var X={ref:W,onClick:function(e){C||"function"!==typeof N||N(e),C&&I.props&&"function"===typeof I.props.onClick&&I.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,s,a,i,c){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&l.isLocalURL(n)){e.preventDefault();var u=function(){t[o?"replace":"push"](n,r,{shallow:s,locale:i,scroll:a})};c?c(u):u()}}(e,S,R,T,b,y,w,O,D?L:void 0)},onMouseEnter:function(e){C||"function"!==typeof _||_(e),C&&I.props&&"function"===typeof I.props.onMouseEnter&&I.props.onMouseEnter(e),l.isLocalURL(R)&&x(S,R,T,{priority:!0})}};if(!C||g||"a"===I.type&&!("href"in I.props)){var q="undefined"!==typeof O?O:S&&S.locale,Y=S&&S.isLocaleDomain&&f.getDomainLocale(T,q,S.locales,S.domainLocales);X.href=Y||d.addBasePath(a.addLocale(T,q,S&&S.defaultLocale))}return C?s.default.cloneElement(I,X):s.default.createElement("a",Object.assign({},P,X),n)}));t.default=h,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},639:function(e,t,n){"use strict";var r=n(5696);Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,n=e.rootMargin,c=e.disabled||!l,u=o.useRef(),f=o.useState(!1),d=r(f,2),p=d[0],m=d[1],x=o.useState(null),h=r(x,2),v=h[0],j=h[1];o.useEffect((function(){if(l){if(u.current&&(u.current(),u.current=void 0),c||p)return;return v&&v.tagName&&(u.current=function(e,t,n){var r=function(e){var t,n={root:e.root||null,margin:e.rootMargin||""},r=i.find((function(e){return e.root===n.root&&e.margin===n.margin}));if(r&&(t=a.get(r)))return t;var o=new Map,s=new IntersectionObserver((function(e){e.forEach((function(e){var t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return t={id:n,observer:s,elements:o},i.push(n),a.set(n,t),t}(n),o=r.id,s=r.observer,l=r.elements;return l.set(e,t),s.observe(e),function(){if(l.delete(e),s.unobserve(e),0===l.size){s.disconnect(),a.delete(o);var t=i.findIndex((function(e){return e.root===o.root&&e.margin===o.margin}));t>-1&&i.splice(t,1)}}}(v,(function(e){return e&&m(e)}),{root:null==t?void 0:t.current,rootMargin:n})),function(){null==u.current||u.current(),u.current=void 0}}if(!p){var e=s.requestIdleCallback((function(){return m(!0)}));return function(){return s.cancelIdleCallback(e)}}}),[v,c,n,t,p]);var g=o.useCallback((function(){m(!1)}),[]);return[j,p,g]};var o=n(7294),s=n(6286),l="function"===typeof IntersectionObserver;var a=new Map,i=[];("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1992:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullAppTreeContext=t.AppTreeContext=t.AppRouterContext=void 0;var r,o=(r=n(7294))&&r.__esModule?r:{default:r};var s=o.default.createContext(null);t.AppRouterContext=s;var l=o.default.createContext(null);t.AppTreeContext=l;var a=o.default.createContext(null);t.FullAppTreeContext=a},6893:function(e,t,n){"use strict";n.r(t);var r=n(7294),o=n(6273),s=n(9833),l=n(5893);t.default=function(){var e=(0,r.useState)(),t=e[0],n=e[1],a=(0,o.Z)(),i=a.isLoggedIn,c=a.init,u=a.logout;return(0,r.useEffect)((function(){if(i){var e=localStorage.getItem("twitterAccount");if(e){var t=JSON.parse(e);n(t)}}else n(void 0),c()}),[i,c]),(0,l.jsx)(s.o,{children:(0,l.jsxs)("div",{style:{minHeight:"70vh"},children:[(0,l.jsx)("div",{className:"py-8 bg-purple-300 shadow-md",children:(0,l.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 bg-purple-300",children:(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"md:flex md:items-center md:justify-between bg-purple-300",children:[(0,l.jsx)("div",{className:" min-w-0",children:(0,l.jsx)("h2",{className:"text-2xl font-semibold leading-7 text-white sm:text-3xl",children:"Settings"})}),(0,l.jsx)("div",{className:"mt-4 flex-shrink-0 flex md:mt-0 md:ml-4"})]})})})}),(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:"Connected Accounts"})}),t?(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("label",{htmlFor:"",className:"text-xs text-white font-semibold px-1",children:"Twitter Account"}),(0,l.jsx)("a",{href:"#",className:"flex-shrink-0 group block",children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{children:(0,l.jsx)("img",{className:"inline-block h-9 w-9 rounded-full",src:null===t||void 0===t?void 0:t.avatar,alt:""})}),(0,l.jsxs)("div",{className:"ml-3",children:[(0,l.jsx)("p",{className:"text-sm font-medium text-gray-200",children:null===t||void 0===t?void 0:t.screenName}),(0,l.jsx)("button",{onClick:u,className:"text-xs font-medium text-gray-200 hover:text-red-500",children:"Disconnect"})]})]})})]})})}):null]})})}},6273:function(e,t,n){"use strict";var r=n(9499),o=n(6902);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a="twitterAccount",i=(0,o.ZP)((function(e){return{isLoggedIn:!1,login:function(t){localStorage.setItem(a,JSON.stringify(t)),e((function(e){return l(l({},e),{},{isLoggedIn:!0})}))},logout:function(){localStorage.removeItem(a),e((function(e){return l(l({},e),{},{isLoggedIn:!1})}))},init:function(){var t=localStorage.getItem(a);e(t?function(e){return l(l({},e),{},{isLoggedIn:!0})}:function(e){return l(l({},e),{},{isLoggedIn:!1})})}}}));t.Z=i},9833:function(e,t,n){"use strict";n.d(t,{o:function(){return j}});var r=n(7294),o=n(9499),s=n(5893);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var i=[{name:"Twitter",href:"https://twitter.com/Cosmos_Spaces",icon:function(e){return(0,s.jsx)("svg",a(a({fill:"
1currentColor",viewBox:"0 0 24 24"},e),{},{children:(0,s.jsx)("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})}))}}];function c(){return(0,s.jsx)("footer",{className:"",children:(0,s.jsxs)("div",{className:"max-w-6xl mx-auto py-12 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8",children:[(0,s.jsx)("div",{className:"flex justify-center space-x-6 md:order-2",children:i.map((function(e){return(0,s.jsxs)("a",{href:e.href,className:"text-gray-400 hover:text-gray-500",children:[(0,s.jsx)("span",{className:"sr-only",children:e.name}),(0,s.jsx)(e.icon,{className:"h-6 w-6","aria-hidden":"true"})]},e.name)}))}),(0,s.jsx)("div",{className:"mt-8 md:mt-0 md:order-1",children:(0,s.jsxs)("p",{className:"text-center text-base text-gray-400",children:["\xa9 ",(new Date).getFullYear()," CS Dev Collective. All rights reserved. v0.6.0-alpha"]})})]})})}var u=n(1664),f=n.n(u),d=n(6273),p=n(7969);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=[{url:"/",label:"Home"},{url:"/settings/",label:"Settings"},{url:"/info/",label:"Info"}],v=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],o=(0,r.useState)(""),l=o[0],a=o[1],i=(0,d.Z)().isLoggedIn,c=h.map((function(e){var t=e.url,n=e.label;return(0,s.jsx)(f(),{href:t,children:(0,s.jsx)("a",x(x({},t===l?{className:"bg-purple-100 text-cyan-400 px-3 py-2 rounded-md text-sm font-medium","aria-current":"page"}:{className:"text-gray-300 hover:bg-purple-300 hover:text-cyan-400 px-3 py-2 rounded-md text-sm font-medium"}),{},{children:n}))},n)})),u=h.map((function(e){var t=e.url,n=e.label;return(0,s.jsx)(f(),{href:t,children:(0,s.jsx)("a",x(x({},t===l?{"aria-current":"page",className:"bg-purple-100 text-cyan-400 block px-3 py-2 rounded-md text-base font-medium"}:{className:'text-gray-300 hover:bg-purple-300 hover:text-cyan-400 block px-3 py-2 rounded-md text-base font-medium"'}),{},{children:n}))},n)}));return(0,r.useEffect)((function(){a(window.location.pathname)}),[]),(0,s.jsxs)("nav",{className:"bg-blue-500",children:[(0,s.jsx)("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"relative flex items-center justify-between h-16",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center sm:hidden",children:(0,s.jsxs)("button",{type:"button",className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white","aria-controls":"mobile-menu","aria-expanded":"false",onClick:function(){return n(!t)},children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,s.jsx)("svg",{className:"block h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})}),(0,s.jsx)("svg",{className:"hidden h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})]})}),(0,s.jsxs)("div",{className:"flex-1 flex items-center justify-center sm:items-stretch sm:justify-start",children:[(0,s.jsx)("div",{className:"flex items-center flex-shrink-0 md:mr-8",children:(0,s.jsx)(f(),{href:"/",children:(0,s.jsxs)("a",{style:{textDecoration:"none"},children:[(0,s.jsxs)("h1",{className:"text-2xl text-white mx-auto relative",children:["NFT",(0,s.jsx)("span",{className:"italic font-bold text-purple-300",children:"Flex"}),(0,s.jsx)("span",{style:{fontSize:"9px"},className:"text-red-500 font-bold absolute",children:"beta"})]}),(0,s.jsx)("p",{style:{fontSize:"8px",marginTop:"-7px"},className:"text-white font-semibold w-full text-center",children:"By Cosmos Spaces"})]})})}),(0,s.jsx)("div",{className:"hidden sm:block sm:ml-6",children:(0,s.jsx)("div",{className:"flex space-x-4",children:c})})]}),(0,s.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0",children:i&&"/"===l?(0,s.jsx)(p.Z,{type:"open"}):null})]})}),(0,s.jsx)("div",{className:t?"sm:hidden":"hidden",children:(0,s.jsx)("div",{className:"px-2 pt-2 pb-3 space-y-1",children:u})})]})},j=function(e){return(0,s.jsxs)("div",{className:"min-h-full",children:[(0,s.jsx)(v,{}),(0,s.jsx)("main",{className:"flex-1 pb-8",children:e.children}),(0,s.jsx)(c,{})]})}},2837:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return n(6893)}])},1664:function(e,t,n){e.exports=n(7942)}},function(e){e.O(0,[774,888,179],(function(){return t=2837,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.