(window.dataViewFieldEditor_bundle_jsonpfunction=window.dataViewFieldEditor_bundle_jsonpfunction||[]).push([[8],{53:function(e,t,n){"use strict";var a,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function o(e){for(var t=-1,n=0;n"object"==typeof e?JSON.stringify(e):e},{field:"output",name:s.i18n.translate("indexPatternFieldEditor.samples.outputHeader",{defaultMessage:"Output"}),render:e=>"html"===t?Object(u.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}):Object(u.jsx)("div",null,e)}];return e.length?Object(u.jsx)(o.EuiFormRow,{label:Object(u.jsx)(l.FormattedMessage,{id:"indexPatternFieldEditor.samplesHeader",defaultMessage:"Samples"})},Object(u.jsx)(o.EuiBasicTable,{className:"kbnFieldFormatEditor__samples",compressed:!0,items:e,columns:n})):null}}r()(samples_FormatEditorSamples,"defaultProps",{sampleType:"text"})},95:function(e,t,n){"use strict";n.r(t),n.d(t,"HistogramFormatEditor",(function(){return HistogramFormatEditor}));var a=n(4),r=n.n(a),i=n(1),o=n(3),s=n(14),l=n(2),u=n(7),d=n(60),c=n(33),m=n(0);class HistogramFormatEditor extends u.DefaultFormatEditor{constructor(...e){super(...e),r()(this,"state",{...u.defaultState,sampleInputs:[50.1234,100.0001,99.9999,{values:[1e-5,99.9999,200,300],counts:[573,102,482]}]})}render(){var e,t;const{formatParams:n}=this.props,{error:a,samples:r}=this.state,u=[{value:"number",text:o.i18n.translate("indexPatternFieldEditor.histogram.subFormat.number",{defaultMessage:"Number"})},{value:"bytes",text:o.i18n.translate("indexPatternFieldEditor.histogram.subFormat.bytes",{defaultMessage:"Bytes"})},{value:"percent",text:o.i18n.translate("indexPatternFieldEditor.histogram.subFormat.percent",{defaultMessage:"Percentage"})}];return Object(m.jsx)(i.Fragment,null,Object(m.jsx)(l.EuiFormRow,{label:o.i18n.translate("indexPatternFieldEditor.histogram.histogramAsNumberLabel",{defaultMessage:"Aggregated number format"})},Object(m.jsx)(l.EuiSelect,{options:u,value:n.id||"number",onChange:e=>{this.onChange({id:e.target.value})}})),Object(m.jsx)(l.EuiFormRow,{label:o.i18n.translate("indexPatternFieldEditor.histogram.numeralLabel",{defaultMessage:"Numeral format pattern (optional)"}),helpText:Object(m.jsx)("span",null,Object(m.jsx)(l.EuiLink,{target:"_blank",href:"https://adamwdraper.github.io/Numeral-js/"},Object(m.jsx)(s.FormattedMessage,{id:"indexPatternFieldEditor.number.documentationLabel",defaultMessage:"Documentation"})," ",Object(m.jsx)(l.EuiIcon,{type:"link"}))),isInvalid:!!a,error:a},Object(m.jsx)(l.EuiFieldText,{value:null!==(e=null==n||null===(t=n.params)||void 0===t?void 0:t.pattern)&&void 0!==e?e:"",onChange:e=>{this.onChange({params:{pattern:e.target.value}})},isInvalid:!!a})),Object(m.jsx)(d.a,{samples:r}))}}r()(HistogramFormatEditor,"formatId",c.a)}}]);