{"size": 26967, "ext": "js", "max_stars_repo_path": "src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/13.f54abbd7.chunk.js", "max_stars_repo_name": "Ciantic/hotchocolate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/13.f54abbd7.chunk.js", "max_issues_repo_name": "Ciantic/hotchocolate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/HotChocolate/AspNetCore/src/AspNetCore/Resources/static/js/13.f54abbd7.chunk.js", "max_forks_repo_name": "Ciantic/hotchocolate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26967.0, "max_line_length": 26967, "alphanum_fraction": 0.6813883636}
(this["webpackJsonp@banana-cake-pop/main"]=this["webpackJsonp@banana-cake-pop/main"]||[]).push([[13],{1058:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return un}));var c=t(467),r=t(547),i=t(483),s=t(491),a=t(479),o=t(493),l=t(47),d=t(461),u=t(495),j=t(178),h=t(508),b=t(611),f=t(472),m=t(474),x=t(476),O=t(168),p=t(1063),g=t(741);function v(e){for(var n="field"===e.kind?e.valueType:e;"value-type"===n.kind;)n=n.type;return n}function y(e){return"scalar"===v(e).typeKind}var C,k,w,F,T,I,S,L,_,N,q,M,A,R=t(94);function V(e,n){return Object(R.jsxs)(ie,{children:[Object(R.jsx)(le,{children:e.name}),Object(R.jsx)(ae,{children:":"})," ",J(e.type,n?function(){return n(e)}:void 0),e.defaultValue&&Object(R.jsxs)(R.Fragment,{children:[" ",Object(R.jsx)(he,{children:"="})," ",y(e.type)?"string"===typeof e.defaultValue?Object(R.jsx)(be,{children:JSON.stringify(e.defaultValue)}):Object(R.jsx)(je,{children:JSON.stringify(e.defaultValue)}):Object(R.jsx)(fe,{children:JSON.stringify(e.defaultValue,null,2)})]})]},e.id)}function z(e,n){return e&&0!==e.length?Object(R.jsx)(re,{children:e.map((function(e){return Object(R.jsxs)(ie,{children:[" ",Object(R.jsx)(le,{children:e.name}),Object(R.jsx)(ae,{children:":"})," ",J(e.type,n?function(){return n(e)}:void 0),e.defaultValue&&Object(R.jsxs)(R.Fragment,{children:[" ",Object(R.jsx)(he,{children:"="})," ",y(e.type)?"string"===typeof e.defaultValue?Object(R.jsx)(be,{children:JSON.stringify(e.defaultValue)}):Object(R.jsx)(je,{children:JSON.stringify(e.defaultValue)}):Object(R.jsx)(fe,{children:JSON.stringify(e.defaultValue,null,2)})]}),Object(R.jsx)("br",{})]},e.id)}))}):Object(R.jsx)(R.Fragment,{})}function H(e,n,t){return Object(R.jsxs)(oe,{children:[Object(R.jsxs)(ce,{children:["@",e.name]}),e.arguments&&e.arguments.length>0&&Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(se,{children:"("}),n?"...":Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)("br",{}),z(e.arguments,t)]}),Object(R.jsx)(se,{children:")"})]})]})}function J(e,n){if("value-type"===e.kind){var t=J(e.type,n);return Object(R.jsxs)(R.Fragment,{children:[e.isList?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(se,{children:"["}),t,Object(R.jsx)(se,{children:"]"})]}):t,!e.isOptional&&Object(R.jsx)(he,{children:"!"})]})}return"scalar"===e.typeKind?Object(R.jsx)(de,{children:te(e,n)}):Object(R.jsx)(fe,{children:te(e,n)})}var K,D,Q,E,G,U,W,P,B,X,Y,Z,$,ee,ne,te=function(e,n){return Object(R.jsx)(R.Fragment,{children:n?Object(R.jsx)(ue,{onClick:function(){return n(e)},children:e.name}):e.name})},ce=O.d.span(C||(C=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.annotationToken})),re=O.d.div(k||(k=Object(j.a)(["\n  margin-left: 8px;\n"]))),ie=O.d.span(w||(w=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.contrast1})),se=O.d.span(F||(F=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.contrast1})),ae=O.d.span(T||(T=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.delimiterToken})),oe=O.d.span(I||(I=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.contrast1})),le=O.d.span(S||(S=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.keyToken})),de=O.d.span(L||(L=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.keywordToken})),ue=O.d.a(_||(_=Object(j.a)(["\n  cursor: pointer;\n  text-decoration: underline;\n\n  :hover {\n    text-decoration: none;\n  }\n"]))),je=O.d.span(N||(N=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.numberToken})),he=O.d.span(q||(q=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.operatorToken})),be=O.d.span(M||(M=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.stringToken})),fe=O.d.span(A||(A=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.typeToken})),me=Object(l.memo)((function(e){var n,t=e.documentId,c=e.isFetchingSchema,r=Object(d.c)(u.c.selectActive),i=Object(d.b)(),s=function(e,n){i(u.a.navigateToType({documentId:t,activeType:e,category:n}))};return Object(R.jsx)(f.k,{children:Object(R.jsxs)(f.a,{children:[Object(R.jsxs)(f.c,{children:[Object(R.jsx)(f.i,{children:Object(R.jsx)(b.a,{documentId:t})}),Object(R.jsx)(f.h,{})]}),c?Object(R.jsx)(h.a,{}):Object(R.jsx)(f.j,{children:r&&(r.activeType?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(Oe,{activeType:r.activeType}),"enum"===r.activeCategory?(n=r.activeType.enumValues,(null===n||void 0===n?void 0:n.length)?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(qe,{children:Object(R.jsx)(Ae,{children:Object(R.jsx)(He,{children:"Values"})})}),n.map((function(e){return Object(R.jsxs)(Me,{children:[Object(R.jsx)(Ae,{children:Object(R.jsx)(Je,{children:Object(R.jsx)(Ge,{children:e.name})})}),Object(R.jsx)(Re,{children:e.description?Object(R.jsx)(Ke,{dangerouslySetInnerHTML:{__html:Object(x.o)(e.description)}}):Object(R.jsx)(Ke,{children:"No description"})})]},"enum-value-".concat(e.id))}))]}):null):ve(r.activeTypeFields,s)]}):r.activeCategory?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(xe,{activeCategory:r.activeCategory}),"directive"===r.activeCategory?ge(r.items,s):ye(r.items,s)]}):null)})]})})})),xe=function(e){var n=e.activeCategory;return Object(R.jsxs)(Ne,{children:[Object(R.jsx)(Ae,{children:Object(R.jsx)(Ve,{children:ke(n)})}),Object(R.jsx)(Re,{children:Object(R.jsx)(Ke,{children:Ce(n)})})]})},Oe=function(e){var n=e.activeType;return Object(R.jsxs)(Ne,{children:[Object(R.jsxs)(Ae,{children:[Object(R.jsx)(Ve,{children:n.name}),Object(R.jsxs)(ze,{children:["Kind of type: ",Fe(n.typeKind)]})]}),Object(R.jsx)(Re,{children:n.description?Object(R.jsx)(Ke,{dangerouslySetInnerHTML:{__html:Object(x.o)(n.description)}}):Object(R.jsx)(Ke,{children:we(n.kind)})})]})};function pe(e,n){var t;return(null===(t=e.arguments)||void 0===t?void 0:t.length)?Object(R.jsx)(De,{children:e.arguments.map((function(e){return Object(R.jsxs)(Qe,{children:[V(e,(function(){var t=v(e.type);n(t,t.typeKind)}))," ",e.description&&Object(R.jsx)(Ee,{dangerouslySetInnerHTML:{__html:Object(x.o)(e.description)}})]},"argument-".concat(e.id))}))}):null}function ge(e,n){return(null===e||void 0===e?void 0:e.length)?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(qe,{children:Object(R.jsx)(Ae,{children:Object(R.jsx)(He,{children:"Directives"})})}),e.map((function(e){return Object(R.jsxs)(Me,{children:[Object(R.jsx)(Ae,{children:Object(R.jsx)(Je,{children:H(e,!0)})}),Object(R.jsxs)(Re,{children:[e.description?Object(R.jsx)(Ke,{dangerouslySetInnerHTML:{__html:Object(x.o)(e.description)}}):Object(R.jsx)(Ke,{children:"No description"}),pe(e,n)]})]},"directive-".concat(e.id))}))]}):null}function ve(e,n){return(null===e||void 0===e?void 0:e.length)?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(qe,{children:Object(R.jsx)(Ae,{children:Object(R.jsx)(He,{children:"Fields"})})}),e.map((function(e){var t,c,r,i;return Object(R.jsxs)(Me,{children:[Object(R.jsx)(Ae,{children:Object(R.jsx)(Je,{children:(c=e,r=!0,i=function(e){var t=v("argument"===e.kind?e.type:e.valueType);n(t,t.typeKind)},Object(R.jsxs)(oe,{children:[Object(R.jsx)(le,{children:c.name}),c.arguments&&c.arguments.length>0&&Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(se,{children:"("}),r?"...":Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)("br",{}),z(c.arguments,i)]}),Object(R.jsx)(se,{children:")"})]}),Object(R.jsx)(ae,{children:":"})," ",J(c.valueType,i?function(){return i(c)}:void 0)]}))})}),Object(R.jsxs)(Re,{children:[e.description?Object(R.jsx)(Ke,{dangerouslySetInnerHTML:{__html:Object(x.o)(e.description)}}):Object(R.jsx)(Ke,{children:"No description"}),e.isDeprecated&&Object(R.jsxs)(p.a,{messageBarType:g.a.info,children:["Deprecation notice",Object(R.jsx)(Ke,{dangerouslySetInnerHTML:{__html:Object(x.o)(null!==(t=e.deprecationReason)&&void 0!==t?t:"")}})]}),pe(e,n)]})]},"field-".concat(e.id))}))]}):null}function ye(e,n){return(null===e||void 0===e?void 0:e.length)?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(qe,{children:Object(R.jsx)(Ae,{children:Object(R.jsx)(He,{children:"Types"})})}),e.map((function(e){return Object(R.jsxs)(Me,{children:[Object(R.jsx)(Ae,{children:Object(R.jsx)(Je,{children:J(e,(function(){n(e,e.typeKind)}))})}),Object(R.jsx)(Re,{children:e.description?Object(R.jsx)(Ke,{dangerouslySetInnerHTML:{__html:Object(x.o)(e.description)}}):Object(R.jsx)(Ke,{children:"No description"})})]},"type-".concat(e.id))}))]}):null}function Ce(e){switch(e){case"directive":return Object(R.jsx)(R.Fragment,{children:"A directive can be attached to a field or fragment inclusion, and can affect execution of the query in any way the server desires."});case"enum":return Object(R.jsxs)(R.Fragment,{children:["Also called Enums, enumeration types are a special kind of scalar that is restricted to a particular set of allowed values. This allows you to: 1) Validate that any arguments of this type are one of the allowed values, and 2) communicate through the type system that a field will always be one of a finite set of values."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/schema/#enumeration-types",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"interface":return Object(R.jsxs)(R.Fragment,{children:["Like many type systems, GraphQL supports interfaces. An Interface is an abstract type that includes a certain set of fields that a type must include to implement the interface."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/schema/#interfaces",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"input-object":return Object(R.jsxs)(R.Fragment,{children:["Pass complex objects as arguments into a field with input types. This is particularly valuable in the case of mutations, where you might want to pass in a whole object to be created."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/schema/#input-types",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"object":return Object(R.jsxs)(R.Fragment,{children:["The most basic components of a GraphQL schema are object types, which just represent a kind of object you can fetch from your service, and what fields it has."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/schema/#object-types-and-fields",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"scalar":return Object(R.jsxs)(R.Fragment,{children:["A GraphQL object type has a name and fields, but at some point those fields have to resolve to some concrete data. That\u2019s where the scalar types come in: they represent the leaves of the query."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/schema/#scalar-types",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"union":return Object(R.jsxs)(R.Fragment,{children:["Union types are very similar to interfaces, but they don't get to specify any common fields between the types."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/schema/#union-types",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]})}}function ke(e){switch(e){case"directive":return"Directives";case"enum":return"Enums";case"input-object":return"Input Objects";case"interface":return"Interfaces";case"object":return"Objects";case"scalar":return"Scalars";case"union":return"Unions"}}function we(e){switch(e){case"query-type":return Object(R.jsxs)(R.Fragment,{children:["The Query type is a special type that defines the entry point of every GraphQL query. Otherwise, the Query type is the same as any other GraphQL object type, and its fields work exactly the same way."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/queries/",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"mutation-type":return Object(R.jsxs)(R.Fragment,{children:["The Mutation type is a special type that is used to modify server-side data. Just like in queries, if the mutation field returns an object type, you can ask for nested fields. It can also contain multiple fields. However, unlike queries, mutation fields run in series, one after the other."," ",Object(R.jsxs)(Ue,{href:"https://graphql.org/learn/queries/#mutations",target:"_blank",rel:"noopener noreferrer",children:["Learn More ",Object(R.jsx)(m.r,{})]})]});case"subscription-type":return Object(R.jsx)(R.Fragment,{children:"GraphQL subscriptions are a way to push data from the server to the clients that choose to listen to real time messages from the server. Subscriptions are similar to queries in that they specify a set of fields to be delivered to the client, but instead of immediately returning a single answer, a result is sent every time a particular event happens on the server."});default:return Object(R.jsx)(R.Fragment,{children:"No description"})}}function Fe(e){switch(e){case"enum":return"Enum";case"input-object":return"Input Object";case"interface":return"Interface";case"object":return"Object";case"scalar":return"Scalar";case"union":return"Union"}}var Te,Ie,Se,Le,_e,Ne=O.d.div(K||(K=Object(j.a)(["\n  display: flex;\n  flex: 0 0 auto;\n  flex-direction: row;\n  margin: 8px 13px 24px;\n"]))),qe=O.d.div(D||(D=Object(j.a)(["\n  display: flex;\n  flex: 0 0 auto;\n  flex-direction: row;\n  margin: 8px 13px;\n"]))),Me=O.d.div(Q||(Q=Object(j.a)(["\n  display: flex;\n  flex: 0 0 auto;\n  flex-direction: row;\n  margin: 0 13px;\n  border-top: 1px solid ",";\n  padding: 8px 0;\n"])),(function(e){return e.theme.accentColor4})),Ae=O.d.div(E||(E=Object(j.a)(["\n  flex: 1 0 40%;\n  max-width: 400px;\n"]))),Re=O.d.div(G||(G=Object(j.a)(["\n  flex: 1 1 60%;\n"]))),Ve=O.d.h1(U||(U=Object(j.a)(["\n  flex: 0 0 auto;\n  margin: 4px 0;\n  font-size: 1.75em;\n  font-weight: normal;\n  color: ",";\n"])),(function(e){return e.theme.accentColor1})),ze=O.d.h2(W||(W=Object(j.a)(["\n  flex: 0 0 auto;\n  margin: 4px 0;\n  font-size: 1.25em;\n  font-weight: normal;\n  color: ",";\n"])),(function(e){return e.theme.contrast2})),He=O.d.h4(P||(P=Object(j.a)(["\n  flex: 0 0 auto;\n  margin: 4px 0;\n  font-size: 1.167em;\n  font-weight: normal;\n  line-height: 1.5em;\n  color: ",";\n"])),(function(e){return e.theme.contrast2})),Je=O.d.h4(B||(B=Object(j.a)(["\n  flex: 0 0 100%;\n  margin: 4px 0;\n  font-size: 1.167em;\n  font-weight: normal;\n  line-height: 1.5em;\n  color: ",";\n"])),(function(e){return e.theme.contrast1})),Ke=O.d.div(X||(X=Object(j.a)(["\n  margin: 4px 0;\n  font-size: 1.167em;\n  font-weight: normal;\n  line-height: 1.5em;\n  color: ",";\n"])),(function(e){return e.theme.contrast2})),De=O.d.div(Y||(Y=Object(j.a)(["\n  display: flex;\n  flex-direction: column;\n  margin-left: 8px;\n"]))),Qe=O.d.div(Z||(Z=Object(j.a)(["\n  flex: 0 0 auto;\n  margin: 2px 0;\n  font-size: 1.167em;\n  font-weight: normal;\n  line-height: 1.5em;\n  color: ",";\n"])),(function(e){return e.theme.contrast2})),Ee=O.d.div($||($=Object(j.a)([""]))),Ge=O.d.span(ee||(ee=Object(j.a)(["\n  color: ",";\n"])),(function(e){return e.theme.identifierToken})),Ue=O.d.a(ne||(ne=Object(j.a)(["\n  display: inline-flex;\n  align-items: center;\n  color: ",";\n  text-decoration: none;\n  transition: color 0.2s ease;\n\n  & > svg {\n    margin-left: 4px;\n    fill: ",";\n  }\n\n  &:hover {\n    color: ",";\n\n    & > svg {\n      fill: ",";\n    }\n  }\n"])),(function(e){return e.theme.accentColor1}),(function(e){return e.theme.accentColor1}),(function(e){return e.theme.accentColor2}),(function(e){return e.theme.accentColor2})),We=t(10),Pe=t.n(We),Be=t(465),Xe=t(546),Ye=t(555),Ze=t(581),$e=Object(l.memo)((function(e){var n,t=e.documentId,c=e.isFetchingSchema,r=e.isItemFilterActive,i=e.schemaReference,s=Object(d.b)(),o=Object(a.c)(u.c.selectFilter),j=Object(l.useRef)(null),b=Object(l.useRef)(null),m=Object(l.useRef)(!1),x=r?null===i||void 0===i?void 0:i.filteredItems:null===i||void 0===i?void 0:i.items,O=function(e){var n;return(null===i||void 0===i||null===(n=i.rootTypes)||void 0===n?void 0:n.find((function(e){var n;return e.id===(null===i||void 0===i||null===(n=i.activeType)||void 0===n?void 0:n.id)})))||(null===i||void 0===i?void 0:i.activeCategory)!==e?"":"active"},p=function(e,n){return function(){s(u.a.navigateToType({documentId:t,activeType:e,category:n}))}},g=function(e){return function(){s(u.a.navigateToCategory({documentId:t,category:e}))}},v=function(e){m.current},y=function(){var e=Object(Be.a)(Pe.a.mark((function e(n){return Pe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(u.a.filterSchemaReferenceTypes({documentId:t,filter:n}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),C=Object(l.memo)((function(e){var n,t=e.data,c=e.index,r=e.style,s=t[c];return Object(R.jsx)("div",{style:r,children:Object(R.jsx)(nn,{className:s.id===(null===i||void 0===i||null===(n=i.activeType)||void 0===n?void 0:n.id)?"active":"",onClick:p(s,s.typeKind),children:s.name})},"type-".concat(s.id))}),Ze.b);return c?Object(R.jsx)(h.a,{}):i?Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(Xe.a,{searchTerm:o,onSearchTermChange:y}),Object(R.jsxs)(f.j,{children:[!r&&!i.showCategoryItems&&!!(null===(n=i.rootTypes)||void 0===n?void 0:n.length)&&Object(R.jsxs)(R.Fragment,{children:[i.rootTypes.map((function(e,n){var t;return Object(R.jsx)(nn,{className:e.id===(null===(t=i.activeType)||void 0===t?void 0:t.id)?"active":"",onClick:p(e),children:e.name},e.id)})),Object(R.jsx)(cn,{})]}),!r&&!i.showCategoryItems&&i.statistics&&Object(R.jsxs)(R.Fragment,{children:[!!i.statistics.objectCount&&Object(R.jsxs)(nn,{className:O("object"),onClick:g("object"),children:["Objects",Object(R.jsx)(tn,{children:i.statistics.objectCount})]}),!!i.statistics.scalarCount&&Object(R.jsxs)(nn,{className:O("scalar"),onClick:g("scalar"),children:["Scalars",Object(R.jsx)(tn,{children:i.statistics.scalarCount})]}),!!i.statistics.enumCount&&Object(R.jsxs)(nn,{className:O("enum"),onClick:g("enum"),children:["Enums",Object(R.jsx)(tn,{children:i.statistics.enumCount})]}),!!i.statistics.inputObjectCount&&Object(R.jsxs)(nn,{className:O("input-object"),onClick:g("input-object"),children:["Input Objects",Object(R.jsx)(tn,{children:i.statistics.inputObjectCount})]}),!!i.statistics.unionCount&&Object(R.jsxs)(nn,{className:O("union"),onClick:g("union"),children:["Unions",Object(R.jsx)(tn,{children:i.statistics.unionCount})]}),!!i.statistics.interfaceCount&&Object(R.jsxs)(nn,{className:O("interface"),onClick:g("interface"),children:["Interfaces",Object(R.jsx)(tn,{children:i.statistics.interfaceCount})]}),!!i.statistics.directiveCount&&Object(R.jsxs)(nn,{className:O("directive"),onClick:g("directive"),children:["Directives",Object(R.jsx)(tn,{children:i.statistics.directiveCount})]})]}),(r||!r&&i.showCategoryItems&&i.activeCategory)&&!!(null===x||void 0===x?void 0:x.length)&&Object(R.jsx)(Ye.a,{ref:j,children:function(e){var n=e.width,t=e.height;return Object(R.jsx)("div",{tabIndex:-1,style:{width:n+"px",height:t+"px"},children:Object(R.jsx)(Ze.a,{width:n,height:t,layout:"vertical",itemSize:en,itemKey:function(e){return"type-".concat(e)},itemData:x,itemCount:x.length,overscanCount:5,ref:b,onScroll:v,children:C})})}})]})]}):null})),en=34,nn=O.d.button(Te||(Te=Object(j.a)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  margin: 0 8px;\n  width: calc(100% - 16px);\n  height: 34px;\n  padding: 0 12px;\n  border-radius: 4px;\n  color: ",";\n  transition: background-color 0.2s ease, color 0.2s ease;\n\n  &.active {\n    color: ",";\n    background-color: ",";\n\n    &:hover {\n      background-color: ",";\n    }\n  }\n\n  &:hover {\n    background-color: ",";\n  }\n"])),(function(e){return e.theme.contrast1}),(function(e){return e.theme.accentColor1}),(function(e){return e.theme.accentColor4}),(function(e){return e.theme.accentColor4}),(function(e){return e.theme.accentColor5})),tn=O.d.div(Ie||(Ie=Object(j.a)(["\n  display: flex;\n  flex: 0 0 auto;\n  justify-self: flex-start;\n  align-items: center;\n  justify-content: center;\n  border-radius: 8px;\n  height: 16px;\n  padding: 0 6px;\n  color: ",";\n  background-color: ",";\n"])),(function(e){return e.theme.mainColor}),(function(e){return e.theme.accentColor1})),cn=O.d.div(Se||(Se=Object(j.a)(["\n  flex: 0 0 1px;\n  margin: 8px 16px;\n  background-color: ",";\n"])),(function(e){return e.theme.accentColor3})),rn=t(482),sn=Object(l.memo)((function(e){var n=e.documentId,t=e.isFetchingSchema,c=e.isItemFilterActive,r=e.schemaReference,i=Object(d.b)();return Object(R.jsxs)(f.c,{children:[!c&&(null===r||void 0===r?void 0:r.showCategoryItems)&&(null===r||void 0===r?void 0:r.activeCategory)&&Object(R.jsx)(ln,{onClick:function(){i(u.a.backToOverview({documentId:n}))},children:Object(R.jsx)(m.d,{})}),Object(R.jsx)(f.i,{children:an(c,r)}),Object(R.jsx)(f.h,{}),!t&&(null===r||void 0===r?void 0:r.statistics)&&Object(R.jsxs)(R.Fragment,{children:[Object(R.jsx)(f.d,{children:Object(R.jsxs)(f.f,{children:[Object(R.jsx)(f.g,{children:r.statistics.typeCount}),Object(R.jsx)(f.e,{children:"Types"})]})}),Object(R.jsx)(f.d,{children:Object(R.jsxs)(f.f,{children:[Object(R.jsx)(f.g,{children:r.statistics.directiveCount}),Object(R.jsx)(f.e,{children:"Directives"})]})})]})]})}));function an(e,n){var t,c,r,i,s,a,o,l,d,u,j,h,b,f;if(e||!(null===n||void 0===n?void 0:n.showCategoryItems))return Object(R.jsx)(R.Fragment,{children:"Types"});switch(null===n||void 0===n?void 0:n.activeCategory){case"directive":return Object(R.jsxs)(R.Fragment,{children:["Directive",Object(R.jsx)(on,{children:null!==(t=null===(c=n.statistics)||void 0===c?void 0:c.directiveCount)&&void 0!==t?t:0})]});case"enum":return Object(R.jsxs)(R.Fragment,{children:["Enums",Object(R.jsx)(on,{children:null!==(r=null===(i=n.statistics)||void 0===i?void 0:i.enumCount)&&void 0!==r?r:0})]});case"input-object":return Object(R.jsxs)(R.Fragment,{children:["Input Objects",Object(R.jsx)(on,{children:null!==(s=null===(a=n.statistics)||void 0===a?void 0:a.inputObjectCount)&&void 0!==s?s:0})]});case"interface":return Object(R.jsxs)(R.Fragment,{children:["Interfaces",Object(R.jsx)(on,{children:null!==(o=null===(l=n.statistics)||void 0===l?void 0:l.interfaceCount)&&void 0!==o?o:0})]});case"object":return Object(R.jsxs)(R.Fragment,{children:["Objects",Object(R.jsx)(on,{children:null!==(d=null===(u=n.statistics)||void 0===u?void 0:u.objectCount)&&void 0!==d?d:0})]});case"scalar":return Object(R.jsxs)(R.Fragment,{children:["Scalars",Object(R.jsx)(on,{children:null!==(j=null===(h=n.statistics)||void 0===h?void 0:h.scalarCount)&&void 0!==j?j:0})]});case"union":return Object(R.jsxs)(R.Fragment,{children:["Unions",Object(R.jsx)(on,{children:null!==(b=null===(f=n.statistics)||void 0===f?void 0:f.unionCount)&&void 0!==b?b:0})]});default:return null}}var on=O.d.div(Le||(Le=Object(j.a)(["\n  display: flex;\n  flex: 0 0 auto;\n  justify-self: flex-start;\n  align-items: center;\n  justify-content: center;\n  margin-left: 4px;\n  border-radius: 8px;\n  height: 16px;\n  padding: 0 6px;\n  font-size: 0.857em;\n  font-weight: normal;\n  color: ",";\n  background-color: ",";\n"])),(function(e){return e.theme.mainColor}),(function(e){return e.theme.accentColor1})),ln=Object(O.d)(rn.c)(_e||(_e=Object(j.a)(["\n  margin: 0 4px 0 0 !important;\n"]))),dn=function(e){var n,t=e.documentId,c=e.isFetchingSchema,r=Object(d.c)(u.c.selectActive),i=!!(null===r||void 0===r||null===(n=r.filter)||void 0===n?void 0:n.length);return Object(R.jsx)(f.k,{children:Object(R.jsxs)(f.a,{children:[Object(R.jsx)(sn,{documentId:t,schemaReference:r,isFetchingSchema:c,isItemFilterActive:i}),Object(R.jsx)($e,{documentId:t,schemaReference:r,isFetchingSchema:c,isItemFilterActive:i})]})})},un=function(){var e=Object(d.b)(),n=Object(d.c)(c.c.selectActiveId),t=Object(i.d)(),j=Object(d.c)(o.b.selectActiveHash),h=Object(a.c)(s.b.selectSchemaInfoWidth),b=Object(l.useCallback)((function(n){e(s.a.changeSchemaInfoWidth({width:n}))}),[e]);return Object(l.useEffect)((function(){e(u.a.initializeSchemaReference({documentId:n,schemaHash:j}))}),[n,j,e]),Object(R.jsx)(r.b,{id:"schema-reference-view",asideWidth:h,onAsideWidthChange:b,mainPane:"left",leftContent:Object(R.jsx)(me,{documentId:n,isFetchingSchema:t}),rightContent:Object(R.jsx)(dn,{documentId:n,isFetchingSchema:t})})}},546:function(e,n,t){"use strict";t.d(n,"a",(function(){return b}));var c,r,i,s,a=t(178),o=t(483),l=t(47),d=t(168),u=t(482),j=t(474),h=t(94),b=Object(l.memo)(Object(l.forwardRef)((function(e,n){var t=e.searchTerm,c=e.onSearchTermChange,r=Object(l.useRef)(null),i=Object(l.useRef)(null),s=Object(o.a)((function(e){c(e.target.value.trim())}),250,[c]),a=Object(l.useCallback)((function(e){s(e),i.current.style.display=e.currentTarget.value.length>0?"flex":"none"}),[s]),d=Object(l.useCallback)((function(){var e;null===(e=r.current)||void 0===e||e.focus()}),[]);return Object(l.useEffect)((function(){var e=r.current,n=i.current;t&&t.length>0?(e.value=t,n.style.display="flex"):n.style.display="none"}),[t]),Object(h.jsx)(f,{ref:n,onClick:d,children:Object(h.jsxs)(O,{children:[Object(h.jsx)(m,{children:Object(h.jsx)(j.x,{})}),Object(h.jsx)(x,{ref:r,placeholder:"Find...",onChange:a}),Object(h.jsx)(u.c,{ref:i,onClick:function(){c(""),r.current.value="",i.current.style.display="none"},children:Object(h.jsx)(j.j,{})})]})})}))),f=d.d.div(c||(c=Object(a.a)(["\n  z-index: 1;\n  display: flex;\n  flex: 0 0 auto;\n  flex-direction: row;\n  align-items: center;\n  height: 44px;\n  max-height: 44px;\n  padding: 0 8px;\n"]))),m=d.d.div(r||(r=Object(a.a)(["\n  display: flex;\n  flex: 0 0 24px;\n  align-items: center;\n  justify-content: center;\n\n  & > svg {\n    fill: "," !important;\n  }\n"])),(function(e){return e.theme.accentColor1})),x=d.d.input(i||(i=Object(a.a)(["\n  flex: 1 1 auto;\n  border: 0 none;\n  padding: 0 9px;\n  color: ",";\n  background-color: ",";\n  transition: background-color 0.2s ease;\n  user-select: initial;\n"])),(function(e){return e.theme.accentColor1}),(function(e){return e.theme.accentColor4})),O=d.d.div(s||(s=Object(a.a)(["\n  display: flex;\n  flex: 1 1 auto;\n  align-items: center;\n  border-radius: 4px;\n  border: 1px solid ",";\n  padding: 0 5px;\n  height: 30px;\n  background-color: ",";\n  transition: background-color 0.2s ease, border-color 0.2s ease,\n    box-shadow 0.2s ease;\n  cursor: text;\n\n  &:focus-within {\n    border-color: ",";\n    background-color: ",";\n    box-shadow: 0 0 4px 0 ",";\n\n    & > "," {\n      background-color: ",";\n    }\n  }\n\n  &:hover {\n    background-color: ",";\n\n    & > "," {\n      background-color: ",";\n    }\n  }\n"])),(function(e){return e.theme.accentColor3}),(function(e){return e.theme.accentColor4}),(function(e){return e.theme.mainColor}),(function(e){return e.theme.mainColor}),(function(e){return e.theme.accentColor1}),x,(function(e){return e.theme.mainColor}),(function(e){return e.theme.mainColor}),x,(function(e){return e.theme.mainColor}))}}]);