"use strict";(self.webpackChunkvertx_web_graphiql=self.webpackChunkvertx_web_graphiql||[]).push([[550],{550:function(e,n,o){o.r(n),o.d(n,{a:function(){return a},d:function(){return l}});var t=o(1003),r=Object.defineProperty,i=function(e,n){return r(e,"name",{value:n,configurable:!0})};function u(e,n){return n.forEach((function(n){n&&"string"!==typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(o){if("default"!==o&&!(o in e)){var t=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(e,o,t.get?t:{enumerable:!0,get:function(){return n[o]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(u,"_mergeNamespaces");var a={exports:{}};!function(e){function n(n,o,t){var r,i=n.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?r.innerHTML=o:r.appendChild(o),e.addClass(i,"dialog-opened"),r}function o(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}i(n,"dialogDiv"),i(o,"closeNotification"),e.defineExtension("openDialog",(function(t,r,u){u||(u={}),o(this,null);var a=n(this,t,u.bottom),l=!1,c=this;function s(n){if("string"==typeof n)d.value=n;else{if(l)return;l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus(),u.onClose&&u.onClose(a)}}i(s,"close");var f,d=a.getElementsByTagName("input")[0];return d?(d.focus(),u.value&&(d.value=u.value,!1!==u.selectValueOnOpen&&d.select()),u.onInput&&e.on(d,"input",(function(e){u.onInput(e,d.value,s)})),u.onKeyUp&&e.on(d,"keyup",(function(e){u.onKeyUp(e,d.value,s)})),e.on(d,"keydown",(function(n){u&&u.onKeyDown&&u.onKeyDown(n,d.value,s)||((27==n.keyCode||!1!==u.closeOnEnter&&13==n.keyCode)&&(d.blur(),e.e_stop(n),s()),13==n.keyCode&&r(d.value,n))})),!1!==u.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&s()}))):(f=a.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){s(),c.focus()})),!1!==u.closeOnBlur&&e.on(f,"blur",s),f.focus()),s})),e.defineExtension("openConfirm",(function(t,r,u){o(this,null);var a=n(this,t,u&&u.bottom),l=a.getElementsByTagName("button"),c=!1,s=this,f=1;function d(){c||(c=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),s.focus())}i(d,"close"),l[0].focus();for(var p=0;p<l.length;++p){var g=l[p];!function(n){e.on(g,"click",(function(o){e.e_preventDefault(o),d(),n&&n(s)}))}(r[p]),e.on(g,"blur",(function(){--f,setTimeout((function(){f<=0&&d()}),200)})),e.on(g,"focus",(function(){++f}))}})),e.defineExtension("openNotification",(function(t,r){o(this,s);var u,a=n(this,t,r&&r.bottom),l=!1,c=r&&"undefined"!==typeof r.duration?r.duration:5e3;function s(){l||(l=!0,clearTimeout(u),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return i(s,"close"),e.on(a,"click",(function(n){e.e_preventDefault(n),s()})),c&&(u=setTimeout(s,c)),s}))}(t.a.exports);var l=u({__proto__:null,default:a.exports},[a.exports])}}]);