1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[596],{3241:function(t,e,r){"use strict";r.d(e,{G:function(){return f}});var n=r(5445),l=r(6759),i=r(5631),o=r(5632),a=r(3013);r(7268),r(2784),r(9378);var s=r(2947),d=r(9575);r(9097),r(7729),r(7595),r(487),r(891),r(5273),r(444),r(8999);var u=r(2236),c=r(4838),g=r(4545);function p(t){var e,r;let l=(0,u.u)(t.list),s=(0,o.useRouter)();return(0,n.tZ)(n.xu,{paddingTop:"xlarge"},l.error&&(0,n.tZ)(c.G,{networkError:null===(e=l.error)||void 0===e?void 0:e.networkError,errors:null===(r=l.error)||void 0===r?void 0:r.graphQLErrors}),(0,n.tZ)(a.F,l.props),(0,n.tZ)(g.B,null,(0,n.tZ)(i.zx,{isLoading:"loading"===l.state,weight:"bold",tone:"active",onClick:async()=>{let e=await l.create();e&&s.push(`/${t.list.path}/${e.id}`)}},"Create ",t.list.singular)))}r(2445),r(1511),r(5364),r(7209),r(4002),r(7132),r(7668),r(1168),r(5976),r(581),r(4176),r(3900);let f=t=>()=>(0,n.tZ)(m,t);function m(t){let e=(0,d.sm)(t.listKey),{createViewFieldModes:r}=(0,d.jf)();return(0,n.tZ)(s.P,{title:`Create ${e.singular}`,header:(0,n.tZ)(g.I,{list:e,label:"Create"})},(0,n.tZ)(g.C,null,(0,n.tZ)(n.xu,null,"error"===r.state&&(0,n.tZ)(c.G,{networkError:r.error instanceof Error?r.error:void 0,errors:r.error instanceof Error?void 0:r.error}),"loading"===r.state&&(0,n.tZ)(l.xg,{label:"Loading create form"}),(0,n.tZ)(p,{list:e}))))}},2947:function(t,e,r){"use strict";r.d(e,{H:function(){return v},P:function(){return k}});var n=r(7896),l=r(5445),i=r(2784),o=r(5632);r(5631),r(487),r(891),r(5273);var a=r(9575),s=r(1511),d=r(444),u=r(9097),c=r.n(u);let g=()=>{var t;let{spacing:e}=(0,l.Fg)(),{adminConfig:r}=(0,a.jf)();return null!==(t=r.components)&&void 0!==t&&t.Logo?(0,l.tZ)(r.components.Logo,null):(0,l.tZ)(l.H3,null,(0,l.tZ)(c(),{href:"/",css:{backgroundImage:"linear-gradient(to right, #0ea5e9, #6366f1)",backgroundClip:"text",lineHeight:"1.75rem",color:"transparent",verticalAlign:"middle",transition:"color 0.3s ease",textDecoration:"none"}},(0,l.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 220 220",css:{display:"inline-block",width:"2rem",height:"2rem",margin:`0 ${e.medium}px ${e.xsmall}px 0`,verticalAlign:"middle"}},(0,l.tZ)("defs",null,(0,l.tZ)("linearGradient",{id:"logo-a",x1:"0%",x2:"50%",y1:"0%",y2:"71.9%"},(0,l.tZ)("stop",{offset:"0%",stopColor:"#5AE8FA"}),(0,l.tZ)("stop",{offset:"100%",stopColor:"#2684FF"}))),(0,l.tZ)("path",{fill:"url(#logo-a)",fillRule:"evenodd",d:"M290.1 47h117.5c17.8 0 24.3 1.9 30.8 5.3a36.3 36.3 0 0115.1 15.2c3.5 6.5 5.4 13 5.4 30.8v117.4c0 17.9-1.9 24.3-5.4 30.8a36.3 36.3 0 01-15.1 15.2c-6.5 3.4-13 5.3-30.8 5.3H290c-17.8 0-24.3-1.9-30.8-5.3a36.3 36.3 0 01-15.1-15.2c-3.5-6.5-5.3-13-5.3-30.8V98.3c0-17.9 1.8-24.3 5.3-30.8a36.3 36.3 0 0115.1-15.2c6.5-3.4 13-5.3 30.8-5.3zm11.8 56.8V218H327v-36.8l14.4-14.6 34.4 51.4h31.5l-49-69.1 44.7-45.1h-31.3L327 151v-47.3H302z",transform:"translate(-238.9 -47)"})),"Keystone 6"))},p=t=>{let{href:e,children:r,isSelected:n}=t,{colors:i,palette:a,spacing:d,radii:u,typography:c}=(0,l.Fg)(),g=(0,o.useRouter)(),p=void 0!==n?n:g.pathname===e;return(0,l.tZ)("li",null,(0,l.tZ)(s.rU,{"aria-current":!!p&&"location",href:e,css:{background:"transparent",borderBottomRightRadius:u.xsmall,borderTopRightRadius:u.xsmall,color:a.neutral700,display:"block",fontWeight:c.fontWeight.medium,marginBottom:d.xsmall,marginRight:d.xlarge,padding:`${d.small}px ${d.xlarge}px`,position:"relative",textDecoration:"none",":hover":{background:i.backgroundHover,color:i.linkHoverColor},"&[aria-current=location]":{background:a.neutral200,color:a.neutral900}}},r))},f=t=>{let{item:e}=t,{apiPath:r}=(0,a.jf)(),{spacing:n,typography:i}=(0,l.Fg)();return(0,l.tZ)("div",{css:{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between",margin:n.xlarge,marginBottom:0}},!!e&&"authenticated"===e.state&&(0,l.tZ)("div",{css:{fontSize:i.fontSize.small}},"Signed in as ",(0,l.tZ)("strong",{css:{display:"block"}},e.label)),e&&"authenticated"===e.state&&(0,l.tZ)(d.S,null))},m=t=>{let{authenticatedItem:e,children:r}=t,{spacing:n}=(0,l.Fg)();return(0,l.tZ)("div",{css:{display:"flex",flexDirection:"column",justifyContent:"center",position:"relative"}}
1,(0,l.tZ)(f,{item:e}),(0,l.tZ)("nav",{role:"navigation","aria-label":"Side Navigation",css:{marginTop:n.xlarge}},(0,l.tZ)("ul",{css:{padding:0,margin:0,li:{listStyle:"none"}}},r)))},Z=t=>{let{list:e}=t,r=(0,o.useRouter)();return(0,l.tZ)(p,{isSelected:r.pathname.split("/")[1]===`/${e.path}`.split("/")[1],href:`/${e.path}${e.isSingleton?"/1":""}`},e.label)},h=t=>{let{lists:e=[],include:r=[]}=t,n=r.length>0?e.filter(t=>r.includes(t.key)):e;return(0,l.tZ)(i.Fragment,null,n.map(t=>(0,l.tZ)(Z,{key:t.key,list:t})))},x=()=>{var t;let{adminMeta:{lists:e},adminConfig:r,authenticatedItem:n,visibleLists:i}=(0,a.jf)();if("loading"===i.state)return null;if("error"===i.state)return(0,l.tZ)(l.xv,{as:"span",paddingLeft:"xlarge",css:{color:"red"}},i.error instanceof Error?i.error.message:i.error[0].message);let o=Object.keys(e).map(t=>i.lists.has(t)?e[t]:null).filter(t=>Boolean(t));return null!=r&&null!==(t=r.components)&&void 0!==t&&t.Navigation?(0,l.tZ)(r.components.Navigation,{authenticatedItem:n,lists:o}):(0,l.tZ)(m,{authenticatedItem:n},(0,l.tZ)(p,{href:"/"},"Dashboard"),(0,l.tZ)(h,{lists:o}))},v=80,b=t=>(0,l.tZ)(i.Fragment,null,(0,l.tZ)("style",null,"body { overflow: hidden; }"),(0,l.tZ)("div",(0,n.Z)({css:{display:"grid",gridTemplateColumns:"minmax(300px, 1fr) 4fr",gridTemplateRows:`${v}px auto`,height:"100vh",isolation:"isolate"}},t))),y=t=>(0,l.tZ)("aside",(0,n.Z)({css:{minWidth:0,overflowY:"auto",WebkitOverflowScrolling:"touch"}},t)),w=t=>{let{colors:e,spacing:r}=(0,l.Fg)();return(0,l.tZ)("main",(0,n.Z)({css:{backgroundColor:e.background,boxSizing:"border-box",minWidth:0,paddingLeft:r.xlarge,paddingRight:r.xlarge,overflowY:"auto",WebkitOverflowScrolling:"touch",position:"relative"}},t))},k=t=>{let{children:e,header:r,title:n}=t,{colors:i,spacing:o}=(0,l.Fg)();return(0,l.tZ)(b,null,(0,l.tZ)("div",{css:{alignItems:"center",borderBottom:`1px solid ${i.border}`,display:"flex",justifyContent:"space-between",paddingLeft:o.xlarge,paddingRight:o.xlarge}},(0,l.tZ)(g,null)),(0,l.tZ)("header",{css:{alignItems:"center",backgroundColor:i.background,borderBottom:`1px solid ${i.border}`,display:"flex",justifyContent:"space-between",minWidth:0,paddingLeft:o.xlarge,paddingRight:o.xlarge}},(0,l.tZ)("title",null,n?`Keystone - ${n}`:"Keystone"),r),(0,l.tZ)(y,null,(0,l.tZ)(x,null)),(0,l.tZ)(w,null,e))}},4545:function(t,e,r){"use strict";r.d(e,{B:function(){return p},C:function(){return g},I:function(){return c}});var n=r(7896),l=r(5445),i=r(5273),o=r(2784),a=r(9740),s=r(1511);let d=["children"],u=t=>{let{children:e}=t,r=(0,a.Z)(t,d);return(0,l.tZ)("div",(0,n.Z)({css:{minWidth:0,maxWidth:1080}},r),e)};function c(t){let{palette:e,spacing:r}=(0,l.Fg)();return(0,l.tZ)(u,{css:{alignItems:"center",display:"flex",flex:1,justifyContent:"space-between"}},(0,l.tZ)("div",{css:{alignItems:"center",display:"flex",flex:1,minWidth:0}},t.list.isSingleton?(0,l.tZ)(l.X6,{type:"h3"},t.list.label):(0,l.tZ)(o.Fragment,null,(0,l.tZ)(l.X6,{type:"h3"},(0,l.tZ)(s.rU,{href:`/${t.list.path}`,css:{textDecoration:"none"}},t.list.label)),(0,l.tZ)("div",{css:{color:e.neutral500,marginLeft:r.xsmall,marginRight:r.xsmall}},(0,l.tZ)(i.X,null)),(0,l.tZ)(l.X6,{as:"h1",type:"h3",css:{minWidth:0,maxWidth:"100%",overflow:"hidden",flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap"}},t.label))))}function g(t){let{spacing:e}=(0,l.Fg)();return(0,l.tZ)(u,{css:{position:"relative",height:"100%"}},(0,l.tZ)("div",(0,n.Z)({css:{alignItems:"start",display:"grid",gap:e.xlarge,gridTemplateColumns:"2fr 1fr"}},t)))}function p(t){let{colors:e,spacing:r}=(0,l.Fg)();return(0,l.tZ)("div",{css:{background:e.background,borderTop:`1px solid ${e.border}`,bottom:0,display:"flex",justifyContent:"space-between",marginTop:r.xlarge,paddingBottom:r.xlarge,paddingTop:r.xlarge,position:"sticky",zIndex:20}},t.children)}},3896:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sliders/create",function(){return r(8892)}])},8892:function(t,e,r){"use strict";r.r(e);var n=r(3241);e.default=(0,n.G)({listKey:"Slider"})}},function(t){t.O(0,[774,888,179],function(){return t(t.s=3896)}),_N_E=t.O()}]);
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.