parse-dashboard 5.0.0-alpha.2 → 5.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/Parse-Dashboard/index.js +13 -163
  2. package/Parse-Dashboard/public/bundles/128.bundle.js +1 -1
  3. package/Parse-Dashboard/public/bundles/269.bundle.js +1 -1
  4. package/Parse-Dashboard/public/bundles/290.bundle.js +1 -1
  5. package/Parse-Dashboard/public/bundles/31.bundle.js +1 -1
  6. package/Parse-Dashboard/public/bundles/339.bundle.js +1 -1
  7. package/Parse-Dashboard/public/bundles/341.bundle.js +1 -1
  8. package/Parse-Dashboard/public/bundles/410.bundle.js +1 -1
  9. package/Parse-Dashboard/public/bundles/550.bundle.js +1 -1
  10. package/Parse-Dashboard/public/bundles/65.bundle.js +1 -0
  11. package/Parse-Dashboard/public/bundles/688.bundle.js +1 -1
  12. package/Parse-Dashboard/public/bundles/722.bundle.js +1 -1
  13. package/Parse-Dashboard/public/bundles/725.bundle.js +1 -1
  14. package/Parse-Dashboard/public/bundles/732.bundle.js +1 -1
  15. package/Parse-Dashboard/public/bundles/772.bundle.js +1 -1
  16. package/Parse-Dashboard/public/bundles/773.bundle.js +1 -1
  17. package/Parse-Dashboard/public/bundles/783.bundle.js +1 -1
  18. package/Parse-Dashboard/public/bundles/817.bundle.js +1 -1
  19. package/Parse-Dashboard/public/bundles/820.bundle.js +1 -1
  20. package/Parse-Dashboard/public/bundles/829.bundle.js +1 -1
  21. package/Parse-Dashboard/public/bundles/906.bundle.js +1 -1
  22. package/Parse-Dashboard/public/bundles/974.bundle.js +1 -1
  23. package/Parse-Dashboard/public/bundles/977.bundle.js +1 -1
  24. package/Parse-Dashboard/public/bundles/dashboard.bundle.js +1 -1
  25. package/Parse-Dashboard/public/bundles/dashboard.bundle.js.LICENSE.txt +33 -8
  26. package/Parse-Dashboard/public/bundles/login.bundle.js +1 -1
  27. package/Parse-Dashboard/public/bundles/sprites.svg +5 -0
  28. package/Parse-Dashboard/server.js +169 -0
  29. package/package.json +30 -34
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[977,590],{58202:(e,t,n)=>{n.d(t,{a:()=>p,b:()=>f,c:()=>s,d:()=>m,e:()=>v,g:()=>l});var i=n(89130),o=n(87655),r=n(92823),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var o,r;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?c(e,n.parentType,t.name):null,n.type=null===(o=n.fieldDef)||void 0===o?void 0:o.type;break;case"SelectionSet":n.parentType=n.type?(0,i.xC)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&c(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(r=n.argDef)||void 0===r?void 0:r.type;break;case"EnumValue":const u=n.inputType?(0,i.xC)(n.inputType):null;n.enumValue=u instanceof i.mR?d(u.getValues(),(e=>e.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,i.tf)(n.inputType):null;n.inputType=l instanceof i.p2?l.ofType:null;break;case"ObjectValue":const p=n.inputType?(0,i.xC)(n.inputType):null;n.objectFieldDefs=p instanceof i.sR?p.getFields():null;break;case"ObjectField":const f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==f?void 0:f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function c(e,t,n){return n===o.S.name&&e.getQueryType()===t?o.S:n===o.T.name&&e.getQueryType()===t?o.T:n===o.a.name&&(0,i.Gv)(t)?o.a:t&&t.getFields?t.getFields()[n]:void 0}function d(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function p(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:g(e.fieldDef)?null:e.parentType}}function f(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function s(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:g(e.fieldDef)?null:e.parentType}}function m(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,i.xC)(e.inputType):void 0}}function v(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function g(e){return"__"===e.name.slice(0,2)}u(l,"getTypeInfo"),u(c,"getFieldDef"),u(d,"find"),u(p,"getFieldReference"),u(f,"getDirectiveReference"),u(s,"getArgumentReference"),u(m,"getEnumValueReference"),u(v,"getTypeReference"),u(g,"isMetaField")},92823:(e,t,n)=>{function i(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>i}),(0,Object.defineProperty)(i,"name",{value:"forEachState",configurable:!0})},84590:(e,t,n)=>{n.r(t);var i=n(96539),o=(n(92906),n(27378),n(31542),Object.defineProperty),r=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function u(e){const t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}function l(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement))return;if("SPAN"!==o.nodeName||void 0!==n.hoverTimeout)return;const a=o.getBoundingClientRect(),l=r((function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(p,f)}),"onMouseMove"),d=r((function(){i.C.off(document,"mousemove",l),i.C.off(e.getWrapperElement(),"mouseout",d),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0}),"onMouseOut"),p=r((function(){i.C.off(document,"mousemove",l),i.C.off(e.getWrapperElement(),"mouseout",d),n.hoverTimeout=void 0,c(e,a)}),"onHover"),f=u(e);n.hoverTimeout=setTimeout(p,f),i.C.on(document,"mousemove",l),i.C.on(e.getWrapperElement(),"mouseout",d)}function c(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(n,"info");if(o){const r=e.getTokenAt(n,!0);if(r){const a=o(r,i,e,n);a&&d(e,t,a)}}}function d(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.appendChild(n),document.body.appendChild(o);const a=o.getBoundingClientRect(),u=window.getComputedStyle(o),l=a.right-a.left+parseFloat(u.marginLeft)+parseFloat(u.marginRight),c=a.bottom-a.top+parseFloat(u.marginTop)+parseFloat(u.marginBottom);let d=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-c),d<0&&(d=t.bottom);let p,f=Math.max(0,window.innerWidth-l-15);f>t.left&&(f=t.left),o.style.opacity="1",o.style.top=d+"px",o.style.left=f+"px";const s=r((function(){clearTimeout(p)}),"onMouseOverPopup"),m=r((function(){clearTimeout(p),p=setTimeout(v,200)}),"onMouseOut"),v=r((function(){i.C.off(o,"mouseover",s),i.C.off(o,"mouseout",m),i.C.off(e.getWrapperElement(),"mouseout",m),o.style.opacity?(o.style.opacity="0",setTimeout((()=>{o.parentNode&&o.parentNode.removeChild(o)}),600)):o.parentNode&&o.parentNode.removeChild(o)}),"hidePopup");i.C.on(o,"mouseover",s),i.C.on(o,"mouseout",m),i.C.on(e.getWrapperElement(),"mouseout",m)}i.C.defineOption("info",!1,((e,t,n)=>{if(n&&n!==i.C.Init){const t=e.state.info.onMouseOver;i.C.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=a(t);n.onMouseOver=l.bind(null,e),i.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})),r(a,"createState"),r(u,"getHoverTime"),r(l,"onMouseOver"),r(c,"onMouseHover"),r(d,"showPopup")},38977:(e,t,n)=>{n.r(t);var i=n(89130),o=n(96539),r=n(58202),a=(n(84590),n(92906),n(27378),n(31542),n(87655),n(92823),Object.defineProperty),u=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){c(e,t,n),f(e,t,n,t.type)}function c(e,t,n){var i;const o=(null===(i=t.fieldDef)||void 0===i?void 0:i.name)||"";"__"!==o.slice(0,2)&&(m(e,t,n,t.parentType),y(e,".")),y(e,o,"field-name",n,(0,r.a)(t))}function d(e,t,n){var i;y(e,"@"+((null===(i=t.directiveDef)||void 0===i?void 0:i.name)||""),"directive-name",n,(0,r.b)(t))}function p(e,t,n){var i;t.directiveDef?d(e,t,n):t.fieldDef&&c(e,t,n);const o=(null===(i=t.argDef)||void 0===i?void 0:i.name)||"";y(e,"("),y(e,o,"arg-name",n,(0,r.c)(t)),f(e,t,n,t.inputType),y(e,")")}function f(e,t,n,i){y(e,": "),m(e,t,n,i)}function s(e,t,n){var i;const o=(null===(i=t.enumValue)||void 0===i?void 0:i.name)||"";m(e,t,n,t.inputType),y(e,"."),y(e,o,"enum-value",n,(0,r.d)(t))}function m(e,t,n,o){o instanceof i.bM?(m(e,t,n,o.ofType),y(e,"!")):o instanceof i.p2?(y(e,"["),m(e,t,n,o.ofType),y(e,"]")):y(e,(null==o?void 0:o.name)||"","type-name",n,(0,r.e)(t,o))}function v(e,t,n){const i=n.description;if(i){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i)),e.appendChild(n)}g(e,t,n)}function g(e,t,n){const i=n.deprecationReason;if(i){const n=document.createElement("div");n.className="info-deprecation",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i));const o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(o,n.firstChild),e.appendChild(n)}}function y(e,t,n="",i={onClick:null},o=null){if(n){const r=i.onClick;let a;r?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{r(o,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}o.C.registerHelper("info","graphql",((e,t)=>{if(!t.schema||!e.state)return;const n=e.state,i=n.kind,o=n.step,a=(0,r.g)(t.schema,e.state);if("Field"===i&&0===o&&a.fieldDef||"AliasedField"===i&&2===o&&a.fieldDef){const e=document.createElement("div");return l(e,a,t),v(e,t,a.fieldDef),e}if("Directive"===i&&1===o&&a.directiveDef){const e=document.createElement("div");return d(e,a,t),v(e,t,a.directiveDef),e}if("Argument"===i&&0===o&&a.argDef){const e=document.createElement("div");return p(e,a,t),v(e,t,a.argDef),e}if("EnumValue"===i&&a.enumValue&&a.enumValue.description){const e=document.createElement("div");return s(e,a,t),v(e,t,a.enumValue),e}if("NamedType"===i&&a.type&&a.type.description){const e=document.createElement("div");return m(e,a,t,a.type),v(e,t,a.type),e}})),u(l,"renderField"),u(c,"renderQualifiedField"),u(d,"renderDirective"),u(p,"renderArg"),u(f,"renderTypeAnnotation"),u(s,"renderEnumValue"),u(m,"renderType"),u(v,"renderDescription"),u(g,"renderDeprecation"),u(y,"text")}}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[977,590],{58202:(e,t,n)=>{n.d(t,{a:()=>p,b:()=>s,c:()=>f,d:()=>m,e:()=>v,g:()=>l});var o=n(89130),i=n(87655),r=n(92823),a=Object.defineProperty,c=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(t,(t=>{var i,r;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?u(e,n.parentType,t.name):null,n.type=null===(i=n.fieldDef)||void 0===i?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?(0,o.xC)(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(r=n.argDef)||void 0===r?void 0:r.type;break;case"EnumValue":const c=n.inputType?(0,o.xC)(n.inputType):null;n.enumValue=c instanceof o.mR?d(c.getValues(),(e=>e.value===t.name)):null;break;case"ListValue":const l=n.inputType?(0,o.tf)(n.inputType):null;n.inputType=l instanceof o.p2?l.ofType:null;break;case"ObjectValue":const p=n.inputType?(0,o.xC)(n.inputType):null;n.objectFieldDefs=p instanceof o.sR?p.getFields():null;break;case"ObjectField":const s=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==s?void 0:s.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}function u(e,t,n){return n===i.S.name&&e.getQueryType()===t?i.S:n===i.T.name&&e.getQueryType()===t?i.T:n===i.a.name&&(0,o.Gv)(t)?i.a:t&&t.getFields?t.getFields()[n]:void 0}function d(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function p(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:y(e.fieldDef)?null:e.parentType}}function s(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function f(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:y(e.fieldDef)?null:e.parentType}}function m(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,o.xC)(e.inputType):void 0}}function v(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function y(e){return"__"===e.name.slice(0,2)}c(l,"getTypeInfo"),c(u,"getFieldDef"),c(d,"find"),c(p,"getFieldReference"),c(s,"getDirectiveReference"),c(f,"getArgumentReference"),c(m,"getEnumValueReference"),c(v,"getTypeReference"),c(y,"isMetaField")},92823:(e,t,n)=>{function o(e,t){const n=[];let o=e;for(;null==o?void 0:o.kind;)n.push(o),o=o.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}n.d(t,{f:()=>o}),(0,Object.defineProperty)(o,"name",{value:"forEachState",configurable:!0})},84590:(e,t,n)=>{n.r(t);var o=n(96539),i=(n(92906),n(27378),n(31542),Object.defineProperty),r=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function c(e){const t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}function l(e,t){const n=e.state.info,i=t.target||t.srcElement;if(!(i instanceof HTMLElement))return;if("SPAN"!==i.nodeName||void 0!==n.hoverTimeout)return;const a=i.getBoundingClientRect(),l=r((function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(p,s)}),"onMouseMove"),d=r((function(){o.C.off(document,"mousemove",l),o.C.off(e.getWrapperElement(),"mouseout",d),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0}),"onMouseOut"),p=r((function(){o.C.off(document,"mousemove",l),o.C.off(e.getWrapperElement(),"mouseout",d),n.hoverTimeout=void 0,u(e,a)}),"onHover"),s=c(e);n.hoverTimeout=setTimeout(p,s),o.C.on(document,"mousemove",l),o.C.on(e.getWrapperElement(),"mouseout",d)}function u(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),o=e.state.info.options,i=o.render||e.getHelper(n,"info");if(i){const r=e.getTokenAt(n,!0);if(r){const a=i(r,o,e,n);a&&d(e,t,a)}}}function d(e,t,n){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);const a=i.getBoundingClientRect(),c=window.getComputedStyle(i),l=a.right-a.left+parseFloat(c.marginLeft)+parseFloat(c.marginRight),u=a.bottom-a.top+parseFloat(c.marginTop)+parseFloat(c.marginBottom);let d=t.bottom;u>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-u),d<0&&(d=t.bottom);let p,s=Math.max(0,window.innerWidth-l-15);s>t.left&&(s=t.left),i.style.opacity="1",i.style.top=d+"px",i.style.left=s+"px";const f=r((function(){clearTimeout(p)}),"onMouseOverPopup"),m=r((function(){clearTimeout(p),p=setTimeout(v,200)}),"onMouseOut"),v=r((function(){o.C.off(i,"mouseover",f),o.C.off(i,"mouseout",m),o.C.off(e.getWrapperElement(),"mouseout",m),i.style.opacity?(i.style.opacity="0",setTimeout((()=>{i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)}),"hidePopup");o.C.on(i,"mouseover",f),o.C.on(i,"mouseout",m),o.C.on(e.getWrapperElement(),"mouseout",m)}o.C.defineOption("info",!1,((e,t,n)=>{if(n&&n!==o.C.Init){const t=e.state.info.onMouseOver;o.C.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=a(t);n.onMouseOver=l.bind(null,e),o.C.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})),r(a,"createState"),r(c,"getHoverTime"),r(l,"onMouseOver"),r(u,"onMouseHover"),r(d,"showPopup")},38977:(e,t,n)=>{n.r(t);var o=n(89130),i=n(96539),r=n(58202),a=(n(84590),n(92906),n(27378),n(31542),n(87655),n(92823),Object.defineProperty),c=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){u(e,t,n),f(e,t,n,t.type)}function u(e,t,n){var o;g(e,(null===(o=t.fieldDef)||void 0===o?void 0:o.name)||"","field-name",n,(0,r.a)(t))}function d(e,t,n){var o;g(e,"@"+((null===(o=t.directiveDef)||void 0===o?void 0:o.name)||""),"directive-name",n,(0,r.b)(t))}function p(e,t,n){var o;g(e,(null===(o=t.argDef)||void 0===o?void 0:o.name)||"","arg-name",n,(0,r.c)(t)),f(e,t,n,t.inputType)}function s(e,t,n){var o;const i=(null===(o=t.enumValue)||void 0===o?void 0:o.name)||"";m(e,t,n,t.inputType),g(e,"."),g(e,i,"enum-value",n,(0,r.d)(t))}function f(e,t,n,i){const a=document.createElement("span");a.className="type-name-pill",i instanceof o.bM?(m(a,t,n,i.ofType),g(a,"!")):i instanceof o.p2?(g(a,"["),m(a,t,n,i.ofType),g(a,"]")):g(a,(null==i?void 0:i.name)||"","type-name",n,(0,r.e)(t,i)),e.appendChild(a)}function m(e,t,n,i){i instanceof o.bM?(m(e,t,n,i.ofType),g(e,"!")):i instanceof o.p2?(g(e,"["),m(e,t,n,i.ofType),g(e,"]")):g(e,(null==i?void 0:i.name)||"","type-name",n,(0,r.e)(t,i))}function v(e,t,n){const o=n.description;if(o){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(o):n.appendChild(document.createTextNode(o)),e.appendChild(n)}y(e,t,n)}function y(e,t,n){const o=n.deprecationReason;if(o){const n=document.createElement("div");n.className="info-deprecation",e.appendChild(n);const i=document.createElement("span");i.className="info-deprecation-label",i.appendChild(document.createTextNode("Deprecated")),n.appendChild(i);const r=document.createElement("div");r.className="info-deprecation-reason",t.renderDescription?r.innerHTML=t.renderDescription(o):r.appendChild(document.createTextNode(o)),n.appendChild(r)}}function g(e,t,n="",o={onClick:null},i=null){if(n){const r=o.onClick;let a;r?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",(e=>{r(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}i.C.registerHelper("info","graphql",((e,t)=>{if(!t.schema||!e.state)return;const n=e.state,o=n.kind,i=n.step,a=(0,r.g)(t.schema,e.state);if("Field"===o&&0===i&&a.fieldDef||"AliasedField"===o&&2===i&&a.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",l(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.fieldDef),n}if("Directive"===o&&1===i&&a.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",d(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.directiveDef),n}if("Argument"===o&&0===i&&a.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",p(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.argDef),n}if("EnumValue"===o&&a.enumValue&&a.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",s(e,a,t);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.enumValue),n}if("NamedType"===o&&a.type&&a.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",m(e,a,t,a.type);const n=document.createElement("div");return n.appendChild(e),v(n,t,a.type),n}})),c(l,"renderField"),c(u,"renderQualifiedField"),c(d,"renderDirective"),c(p,"renderArg"),c(s,"renderEnumValue"),c(f,"renderTypeAnnotation"),c(m,"renderType"),c(v,"renderDescription"),c(y,"renderDeprecation"),c(g,"text")}}]);