1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2171],{78284:function(e,t,n){"use strict";n.d(t,{U:function(){return R}});var r=n(85893),o=n(67294),i=n(72939),a=n(84164),u=n(93609),s=n(65194),l=n(46546),c=n(98176),p=n(94184),d=n.n(p),f=n(94558),h=n(67761),_=n.n(h);var m=function(e){return(0,r.jsx)(f.v,{className:_().closeButton,name:"Cancel",bold:!0,onClick:function(t){t.stopPropagation(),e.onClick()}})},y=function(e){return(0,r.jsxs)("div",{className:d()(_().item,(t={},n=_().item_selected,o=e.selected,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),onClick:e.onSelect,children:[(0,r.jsx)("div",{className:_().itemContent,children:(0,r.jsx)("span",{className:_().itemName,children:e.area.name})}),e.selected&&(0,r.jsx)(m,{onClick:e.onClose})]});var t,n,o},v=function(e){return e.areaEdges?(0,r.jsx)("div",{className:_().listWrapper,children:e.areaEdges.map((function(t){var n=t.node;return(0,r.jsx)(y,{onSelect:function(){return e.onSelect(n)},area:n},n.id)}))}):null};function b(){var e,t,n=(e=["\n query findArea($term: String!) {\n areas(filter: { name: { contains: $term } }) {\n edges {\n node {\n id\n name\n }\n }\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return b=function(){return n},n}var g=(0,n(63357).Ps)(b()),w=n(30716),j=n.n(w);function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function S(e,t){return!t||"object"!==O(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}var O=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function P(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}var R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(d,e);var t,n,o,p=P(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=p.call(this,e)).inputNode=null,t.dropdown=null,t.handleSearch=function(e){t.setState({inputString:e.target.value.toLowerCase()}),e.target.value.length?t.open():t.close()},t.handleInputRef=function(e){t.inputNode=e},t.handleDropdownRef=function(e){t.dropdown=e},t.close=function(){return t.dropdown&&t.dropdown.close()},t.open=function(){return t.dropdown&&t.dropdown.open()},t.handleDelete=function(){return t.props.input.onChange(null)},t.handleSelect=function(e){t.close(),t.inputNode&&(t.inputNode.value=""),t.props.input.onChange(e)},t.state={inputString:""},t}return t=d,(n=[{key:"render",value:function(){var e=this;return this.props.input.value?(0,r.jsx)(y,{selected:!0,area:this.props.input,onClose:this.handleDelete}):(0,r.jsxs)(u.D,{onBlur:this.close,className:j().outsideHandler,children:[(0,r.jsx)(l.H,{input:{onChange:this.handleSearch,ref:this.handleInputRef},placeholder:this.props.placeholder,autoComplete:"off"}),(0,r.jsx)(i.A,{query:g,variables:{term:this.state.inputString},children:function(t){var n=t.loading,o=t.data,i=!(!o||!o.areas)&&o.areas.edges.length>0;return(0,r.jsxs)(s.s,{className:j().dropdown,ref:e.handleDropdownRef,children:[n&&(0,r.jsx)(a.s,{}),!n&&!i&&(0,r.jsx)(c.v,{}),i&&(0,r.jsx)(v,{areaEdges:o.areas.edges,onSelect:e.handleSelect})]})}})]})}}])&&k(t.prototype,n),o&&k(t,o),d}(o.Component);R.defaultProps={placeholder:"Select an area"}},97842:function(e,t,n){"use strict";n.d(t,{I:function(){return N}});var r=n(85893),o=n(67294),i=n(72939),a=n(84164),u=n(93609),s=n(65194),l=n(46546
1),c=n(94184),p=n.n(c),d=n(11913),f=n(94558),h=n(49821),_=n.n(h);var m=function(e){return(0,r.jsx)(f.v,{className:_().closeIcon,name:"Cancel",bold:!0,onClick:function(t){t.stopPropagation(),e.onClick(t)}})},y=function(e){return(0,r.jsxs)("div",{className:p()(_().result,(t={},n=_().result_selected,o=e.selected,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),onClick:e.onSelect,children:[(0,r.jsx)(d.U,{className:_().resultFlag,country:e.country}),(0,r.jsx)("div",{className:_().resultContent,children:(0,r.jsx)("span",{className:_().resultName,children:e.country.name})}),e.selected&&(0,r.jsx)(m,{onClick:e.onClose})]});var t,n,o},v=function(e){return e.countryEdges?(0,r.jsx)("div",{className:_().results,children:e.countryEdges.map((function(t){var n=t.node;return(0,r.jsx)(y,{onSelect:function(){return e.onSelect(n)},country:n},n.id)}))}):null},b=n(98176);function g(){var e,t,n=(e=["\n query findCountry($term: String!) {\n countries(filter: { name: { contains: $term } }) {\n edges {\n node {\n id\n alpha2\n name\n geographicalArea {\n id\n }\n parent {\n id\n name\n }\n }\n }\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return g=function(){return n},n}var w=(0,n(63357).Ps)(g()),j=n(1837),k=n.n(j);function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function x(e,t){return!t||"object"!==P(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}var P=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function R(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}var N=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(p,e);var t,n,o,c=R(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).inputNode=null,t.dropdown=null,t.handleSearch=function(e){var n=e.currentTarget.getBoundingClientRect();t.setState({inputString:e.target.value.toLowerCase(),position:{x:n.x,y:n.y+40,width:n.width+10}}),e.target.value.length?t.open():t.close()},t.handleInputRef=function(e){t.inputNode=e},t.handleDropdownRef=function(e){t.dropdown=e},t.close=function(){return t.dropdown&&t.dropdown.close()},t.open=function(){t.dropdown&&t.dropdown.open()},t.handleDelete=function(){return t.props.input.onChange(null)},t.handleSelect=function(e){t.props.input.onChange(e),t.inputNode&&(t.inputNode.value=""),t.close()},t.handleFocus=function(e){t.open(),t.props.input.onFocus(e)},t.state={inputString:"",position:{x:0,y:0,width:0}},t}return t=p,(n=[{key:"render",value:function(){var e,t=this;return(null===(e=this.props.input.value)||void 0===e?void 0:e.id)?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(y,{selected:!0,country:this.props.input.value,onClose:this.handleDelete})}):(0,r.jsxs)(u.D,{onBlur:this.close,className:k().outsideHandler,children:[(0,r.jsx)(l.H,{meta:this.props.meta,input:{onChange:this.handleSearch,ref:this.handleInputRef},"data-test":this.props.dataTest,placeholder:this.props.placeholder,autoComplete:"off",onBlur:function(e){return t.props.input.onBlur(e)},onFocus:function(e){return t.props.input.onFocus(e)}}),(0,r.jsx)(i.A,{query:w,variables:{term:this.state.inputString},children:function(e){var n=e.loading,o=e.data,i=!(!o||!o.countries)&&o.countries.edges.length>0;return(0,r.jsxs)(s.s,{className:k().dropdown,ref:t.handleDropdownRef,portalMode:t.props.portalMode,position:t.state.position,children:[n&&(0,r.jsx)(a.s,{}),!n&&!i&&(0,r.jsx)(b.v,{}
1),i&&(0,r.jsx)(v,{countryEdges:o.countries.edges,onSelect:t.handleSelect})]})}})]})}}])&&C(t.prototype,n),o&&C(t,o),p}(o.Component);N.defaultProps={placeholder:"Select a country"}},95260:function(e,t,n){"use strict";var r=n(85893),o=n(67294),i=n(5152),a=(n(77664),n(9041)),u=n(94184),s=n.n(u),l=n(5697),c=n(94048),p=n(50970),d=n.n(p);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function _(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}var y=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}var b=(0,i.default)((function(){return Promise.all([n.e(6925),n.e(3393)]).then(n.t.bind(n,35108,23)).then((function(e){return e.Editor}))}),{loadableGenerated:{webpack:function(){return[35108]}},ssr:!1}),g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(u,e);var t,n,o,i=v(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this,e)).onEditorStateChange=function(e){var n,r=(0,c.I)((0,a.convertToRaw)(e.getCurrentContent()));t.setState({editorState:e}),"function"===typeof t.props.onGetMarkdownContent&&r&&t.props.onGetMarkdownContent(r),"function"===typeof(null===(n=t.props.input)||void 0===n?void 0:n.onChange)&&t.props.input.onChange(r)};var n=t.props.input.value;return t.state={editorState:"object"===typeof t.props.input?a.EditorState.createWithContent((0,a.convertFromRaw)((0,c.F)(n,e.parserOptions))):a.EditorState.createEmpty()},t}return t=u,(n=[{key:"render",value:function(){var e,t,n,o,i,a,u;return(0,r.jsxs)("div",{children:[(0,r.jsx)(b,{editorClassName:s()(d().editor,(i={},a=d().editor_error,u=(null===(e=this.props.meta)||void 0===e?void 0:e.error)&&(null===(t=this.props.meta)||void 0===t?void 0:t.touched),a in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,i)),toolbarClassName:d().toolbar,onEditorStateChange:this.onEditorStateChange,editorState:this.state.editorState,placeholder:this.props.placeholder,toolbar:this.props.toolbarOptions,onBlur:this.props.input.onBlur}),this.props.errorAlertBox&&(null===(n=this.props.meta)||void 0===n?void 0:n.error)&&(null===(o=this.props.meta)||void 0===o?void 0:o.touched)?(0,r.jsx)(l.H,{message:this.props.meta.error}):null]})}}])&&f(t.prototype,n),o&&f(t,o),u}(o.Component);g.defaultProps={errorAlertBox:!0,onGetMarkdownContent:void 0,placeholder:"Write something...",toolbarOptions:{options:["link"],link:{popupClassName:d().linkPopup,showOpenOptionOnHover:!1,options:["link","unlink"],link:{className:d().linkButton},unlink:{className:d().linkButton}}},parserOptions:{remarkableOptions:{enable:{inline:["links"]},disable:{inline:["newline","sub","sup","mark","ins","backticks","emphasis"],block:["heading"]}}}},t.Z=g},49821:function(e){e.exports={results:"countryResults_results__MtKlT",result:"countryResults_result__vqOfP",result_selected:"countryResults_result_selected__2KhP9",closeIcon:"countryResults_closeIcon__IB7Ec",resultFlag:"countryResults_resultFlag__IZkZf",resultContent:"countryResults_resultContent__SaySh",resultName:"countryResults_resultName___6sPu","as-animate-gradient":"countryResults_as-animate-gradient__vj0Z1"}},30716:function(e){e.exports={outsideHandler:"areaPicker_outsideHandler__S5sLz",dropdown:"areaPicker_dropdown___yQHZ","as-animate-gradient":"areaPicker_as-animate-gradient__ftSE8"}},67761:function(e){e.exports={listWrapper:"areaResult_listWrapper__bpjb_",item:"areaResult_item__p8eLB",item_selected:"areaResult_item_selected__tksJL",closeButton:"areaResult_closeButton__QE0XZ",itemContent:"areaResult_itemContent__wLAHa",itemName:"areaResult_itemName__ziJG9","as-animate-gradient":"areaResult_as-animate-gradient__gBdKm"}},1837:function(e){e.exports={outsideHandler:"countryPicker_outsideHandler__JqKQJ",dropdown:"countryPicker_dropdown__C8GkS","as-animate-gradient":"countryPicker_as-animate-gradient__kVawt"}},50970:function(e){e.exports={editor:"markdownEditorPicker_editor__L70cu",editor_error:"markdownEditorPicker_editor_error__tKtBR",toolbar:"markdownEditorPicker_toolbar__A6cDc",linkPopup:"markdownEditorPicker_linkPopup__Ge0s6",linkButton:"markdownEditorPicker_linkButton__Ee8na","as-animate-gradient":"markdownEditorPicker_as-animate-gradient__2_m_w"}}}]);
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.