PageSourceSearch

https://serverless-headless-cms.web.app/_next/static/chunks/pages/admin/apps/new-e85c1b3b98a26f89d968.js

js serverless-headless-cms.web.app collected 2026-10-03 12:35:38 UTC 10,563 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78],{8918:function(e,r,t){"use strict";t.d(r,{r:function(){return d}});var n=t(2809),o=t(219),c=t(980),i=t(9444),s=(t(7294),t(5063)),l=t(5893),a=["href","as","replace","scroll","shallow","prefetch","children"];function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var d=function(e){var r=e.href,t=e.as,n=e.replace,u=e.scroll,d=e.shallow,f=e.prefetch,h=e.children,j=(0,o.Z)(e,a),b=(0,c.useTheme)();return(0,l.jsx)(s.default,{href:r,as:t,replace:n,scroll:u,shallow:d,prefetch:f,passHref:!0,children:(0,l.jsx)(i.r,p(p({textDecoration:"underline ".concat(b.colors.gray[400])},j),{},{children:h}))})}},1834:function(e,r,t){"use strict";t.d(r,{$:function(){return f}});var n=t(2809),o=t(219),c=t(980),i=t(6034),s=t(336),l=t(8017),a=(t(7294),t(5893)),u=["children","title"];function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var f=function(e){var r=e.children,t=e.title,n=(0,o.Z)(e,u),p=(0,c.useColorModeValue)("white","gray.800");return(0,a.jsxs)(i.Kq,d(d({bg:p,shadow:"md",borderWidth:"1px",p:[3,6],spacing:[4,8]},n),{},{children:[t&&(0,a.jsx)(s.X,{size:"xl",children:t}),(0,a.jsx)(l.xu,{children:r})]}))}},2234:function(e,r,t){"use strict";t.d(r,{h:function(){return E}});var n=t(2809),o=t(266),c=t(219),i=t(809),s=t.n(i),l=t(980),a=t(4096),u=t(8017),p=t(6034),d=t(9444),f=t(8420),h=t(3024),j=t(2572),b=t(7497),O=(t(7294),t(9690)),g=t(8918),y=t(9583),x=t(5063),v=t(1163),m=t(1424),w=t(3788),P=t(5893),k=["action"];function D(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function S(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?D(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var E=function(e){var r=e.action,t=(0,c.Z)(e,k),n=(0,m.QT)().t,i=(0,v.useRouter)(),D=(0,O.Eu)(),E=D.user,C=D.loading,Z=(0,O.X$)().logout,N=(0,l.useToast)(),_=(0,l.useColorModeValue)("gray.50","gray.800"),q=(0,l.useColorMode)(),z=q.colorMode,R=q.toggleColorMode;return(0,P.jsxs)(a.k,S(S({bg:_,alignItems:"center",py:2,px:4},t),{},{children:[(0,P.jsxs)(u.xu,{flex:"1",fontWeight:"bold",children:[r&&(0,P.jsx)(u.xu,{display:["block","none"],children:r}),(0,P.jsx)(g.r,{href:"/admin",textDecor:"none",display:[r?"none":"block","block"],children:w.v.title})]}),(0,P.jsxs)(p.Kq,{direction:"row",alignItems:"center",spacing:3,h:"40px",children:[!w.v.hideGitHubLogo&&(0,P.jsx)(u.xu,{color:"gray.500",children:(0,P.jsx)(x.default,{href:"https://github.com/yamitzky/serverless-headless-cms",passHref:!0,children:(0,P.jsx)(d.r,{isExternal:!0,children:(0,P.jsx)(u.xu,{as:y.hJX,boxSize:"32px"})})})}),(0,P.jsx)(u.xu,{color:"gray.500",children:(0,P.jsx)(f.h,{icon:"dark"===z?(0,P.jsx)(y.Mei,{}):(0,P.jsx)(y.TLr,{}),"aria-label":"Color mode: ".concat(z),borderRadius:"full",onClick:R})}),!C&&(E?(0,P.jsxs)(h.v2,{children:[(0,P.jsx)(h.j2,{as:j.z,borderRadius:"full",p:0,variant:"ghost",children:(0,P.jsx)(b.qE,{name:(null===E||void 0===E?void 0:E.displayName)||(null===E||void 0===E?void 0:E.email)||(null===E||void 0===E?void 0:E.uid),src:null===E||void 0===E?void 0:E.photoURL,size:"sm"})}),(0,P.jsxs)(h.qy,{placement:"bottom-end",children:[!w.v.singleProject&&(0,P.jsx)(h.sN,{onClick:function(){return i.push("/admin")},children:n("projectList")}),(0,P.jsx)(h.sN,{onClick:(0,o.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:N({title:n("loggedOut"),status:"success"});case 3:case"end":return e.stop()}}),e)}))),children:n("logout")})]})]}):(0,P.jsx)(j.z,{variant:"ghost",colorScheme:"cyan",size:"sm",p:[0,null],onClick:function(){return i.push("/login")},children:n("login")}))]})]}))}},9710:function(e,r,t){"use strict";t.d(r,{R:function(){return E}});var n=t(2809),o=t(219),c=t(980),i=t(1019),s=t(4096),l=t(8420),a=t(8135),u=t(6654),p=t(8017),d=t(6034),f=t(4651),h=(t(7294),t(2234)),j=t(9690),b=t(5658),O=t(58),g=t(9583),y=t(5063),x=t(5893),v=["items"];function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function w(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?m(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var P=function(e){var r=e.items,t=(0,o.Z)(e,v);return(0,x.jsx)(b.aG,w(w({separator:(0,x.jsx)(O.J,{color:"gray.300",as:g.Dli})},t),{},{children:r.map((function(e,t){var n=e.title,o=e.href;return(0,x.jsx)(b.gN,{isCurrentPage:t===r.length-1,children:o?(0,x.jsx)(y.default,{href:o,passHref:!0,children:(0,x.jsx)(b.At,{children:n})}):(0,x.jsx)(p.xu,{children:n})},t)}))}))},k=["breadcrumbs","children","sidebar"];function D(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function S(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?D(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var E=function(e){var r=e.breadcrumbs,t=e.children,n=e.sidebar,b=(0,o.Z)(e,k),O=(0,j.Eu)(),y=O.user,v=O.loading,m=O.error,w=(0,f.useRouter)();v||y&&!m||w.push("/login");var D=(0,i.q)(),E=D.isOpen,C=D.onClose,Z=D.onToggle,N=(0,c.useColorModeValue)("gray.700","whiteAlpha.900"),_=(0,c.useColorModeValue)("gray.100","gray.800"),q=(0,c.useColorModeValue)("gray.50","gray.900");return(0,x.jsxs)(s.k,{h:"100vh",direction:"column",color:N,children:[(0,x.jsx)(h.h,{action:n?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.h,{"aria-label":"Show menu",icon:(0,x.jsx)(g.Fm7,{}),variant:"ghost",p:0,onClick:Z}),(0,x.jsx)(a.dy,{size:"xs",isOpen:E,placement:"left",onClose:C,children:(0,x.jsx)(u.ZA,{children:(0,x.jsx)(a.sc,{children:(0,x.jsx)(u.fe,{p:0,overflow:"auto",children:n})})})})]}):null,boxShadow:"md",zIndex:"sticky"}),(0,x.jsxs)(s.k,S(S({flex:1,direction:"row",overflow:"hidden"},b),{},{children:[n&&(0,x.jsx)(p.xu,{display:["none","block"],w:240,h:"100%",overflow:"auto",bg:_,borderRightWidth:1,children:n}),(0,x.jsx)(p.xu,{bg:q,flex:1,h:"100%",overflow:"auto",py:[3,6],px:[3,8],children:(0,x.jsxs)(d.Kq,{maxW:1440,mx:"auto",spacing:[3,6],children:[r&&(0,x.jsx)(P,{items:r}),t]})})]}))]})}},1528:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return D}});var n=t(266),o=t(809),c=t.n(o),i=(t(7294),t(9710)),s=t(2465),l=t(1163),a=t(1834),u=t
1(980),p=t(2809),d=t(219),f=t(2283),h=t(6034),j=t(6729),b=t(6618),O=t(9887),g=t(4496),y=t(2572),x=t(1424),v=t(5893),m=["isNew","values","onSubmit"];function w(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function P(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?w(Object(t),!0).forEach((function(r){(0,p.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var k=function(e){var r,t=e.isNew,n=e.values,o=e.onSubmit,c=(0,d.Z)(e,m),i=(0,f.cI)({defaultValues:n}),s=i.handleSubmit,l=i.formState,a=i.register,u=l.errors,p=(0,x.QT)().t;return(0,v.jsxs)(h.Kq,P(P({onSubmit:s(o),as:"form",spacing:8},c),{},{children:[(0,v.jsx)(h.Kq,{spacing:4,children:(0,v.jsxs)(j.NI,{isInvalid:!!u.name,isRequired:!0,children:[(0,v.jsx)(b.l,{htmlFor:"name",children:p("displayName")}),(0,v.jsx)(O.I,P(P({id:"name"},a("name",{required:!0})),{},{defaultValue:null===n||void 0===n?void 0:n.name})),(0,v.jsx)(g.J,{children:null===(r=u.name)||void 0===r?void 0:r.message})]})}),(0,v.jsx)(h.Kq,{direction:"row",children:(0,v.jsx)(y.z,{colorScheme:"cyan",isLoading:l.isSubmitting,type:"submit",children:p(t?"create":"save")})})]}))},D=function(){var e=(0,l.useRouter)(),r=(0,x.QT)().t,t=(0,s.rO)().add,o=(0,u.useToast)();return(0,v.jsx)(i.R,{breadcrumbs:[{title:r("projectList"),href:"/admin"},{title:r("create")}],children:(0,v.jsx)(a.$,{title:r("projectCreation"),children:(0,v.jsx)(k,{isNew:!0,onSubmit:function(){var i=(0,n.Z)(c().mark((function n(i){var s;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(i);case 2:s=n.sent,o({title:r("saved"),status:"success",duration:2e3}),e.push("/admin/apps/".concat(s));case 5:case"end":return n.stop()}}),n)})));return function(e){return i.apply(this,arguments)}}()})})})}},9255:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/apps/new",function(){return t(1528)}])}},function(e){e.O(0,[774,445,154,610,662,386,888,179],(function(){return r=9255,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.