1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3760],{46833:function(t,e,n){n.d(e,{B:function(){return u},r:function(){return s}});var o,i=n(79758),r=n(99278),a=n(10814),s=((o={}).Normal="normal",o.Inverted="inverted",o.Primary="primary",o.Secondary="secondary",o),u=(0,i.Z)(a.x,{target:"e1h788a00"})("cursor:pointer;display:inline-block;background:none;",(0,r.bU)({key:"link"}),"");u.defaultProps={as:"a",fontSize:3,fontWeight:"normal",variant:s.Normal}},22241:function(t,e,n){n.d(e,{h:function(){return i}});var o,i=((o={}).Copper="COPPER",o.Fibre="FIBRE",o)},29425:function(t,e,n){n.r(e),n.d(e,{InternetSpeedSection:function(){return A}}),n(76034),n(30050);var o,i,r,a=n(50029),s=n(12831),u=n(92777),l=n(82262),c=n(10748),p=n(81531),f=n(63553),d=n(37247),h=n(71218),m=n(96590),v=n(87757),y=n.n(v);n(34338),n(98742),n(60228),n(68932),n(30024),n(12826),n(81919);var g=n(95321),O=n(22188),x=n(29323),b=n(67294),S=n(94094),k=n(16344),Z=n(39131),I=n(63030),j=n(46833),R=n(10814),C=n(49416),P=n(67085),L=n(61737),D=n(22241),F=n(13865),V=n(85893);n(92126);var A=(0,g.Zz)(o=(0,x.Pi)((i=function(t){(0,p.Z)(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(o);return t=e?Reflect.construct(n,arguments,(0,d.Z)(this).constructor):n.apply(this,arguments),(0,f.Z)(this,t)});function o(){(0,u.Z)(this,o);for(var t,e,i=arguments.length,l=Array(i),p=0;p<i;p++)l[p]=arguments[p];return t=n.call.apply(n,[this].concat(l)),(0,s.Z)(t,"componentState",r,(0,c.Z)(t)),t.onSubmit=(0,O.aD)((e=(0,a.Z)(y().mark(function e(n){var o,i;return y().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==n){e.next=2;break}return e.abrupt("return");case 2:return t.componentState.isLoading=!0,t.componentState.error=null,t.componentState.feasibilityData=null,e.prev=5,e.next=8,(0,F.Z)(n);case 8:i=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),o=e.t0;case 14:(0,O.z)(function(){t.componentState.error=o,t.componentState.isLoading=!1,t.componentState.feasibilityData=i});case 15:case"end":return e.stop()}},e,null,[[5,11]])})),function(t){return e.apply(this,arguments)})),t.openModal=(0,O.aD)(function(){t.componentState.isModalOpen=!0}),t.closeModal=(0,O.aD)(function(){t.componentState.isModalOpen=!1}),t.onFormSubmitSuccess=function(){},t}return(0,l.Z)(o,[{key:"isFiberAvailable",get:function(){var t=this.componentState.feasibilityData;return t&&t.some(function(t){return t.terminationPoint.medium===D.h.Fibre})}},{key:"render",value:function(){var t=this.props,e=t.sectionUtilities,n=t.content,o=t.positive,i=t.negative,r=t.theme,a=e.containerSize,s=this.componentState,u=s.feasibilityData,l=s.isLoading,c=s.error,p=s.isModalOpen;return(0,V.jsx)("section",{children:(0,V.jsxs)(k.W,{variant:L.X[a],children:[n&&(0,V.jsx)(Z.V,{content:n,className:(0,m.iv)("color:",r.colors.white,";font-size:",r.fontSizes[3],";text-align:center;margin-bottom:35px;")}),(0,V.jsxs)(I.x,{maxWidth:"325px",mx:"auto",children:[(0,V.jsx)(P.o,{expanded:!0,useSubmit:!0,submitText:"Check",placeholder:"Enter your postcode",inputId:"Feasibility-check-input",onSubmit:this.onSubmit,status:l?"loading":void 0}),u&&(0,V.jsx)(b.Fragment,{children:this.isFiberAvailable?(0,V.jsxs)(b.Fragment,{children:[(0,V.jsxs)(R.x,{variant:R.r.Inverted,textAlign:"center",mt:2,children:[o.message,"\xa0",o.form&&(0,V.jsx)(j.B,{as:"button",textDecoration:"underline",variant:j.r.Inverted,onClick:this.openModal,children:o.form.formTitle})]}),o.form&&(0,V.jsx)(C.l,{title:"Search",isOpen:p,toggleModal:this.closeModal,children:(0,V.jsx)(S.r,{fields:o.form.fields,formPostsToSalesforce:o.form.formPostsToSalesforce,id:o.form.formId.toString()})})]}):(0,V.jsxs)(b.Fragment,{children:[(0,V.jsxs)(R.x,{variant:R.r.Inverted,textAlign:"center",mt:2,children:[i.message,"\xa0",i.form&&(0,V.jsx)(j.B,{as:"button",textDecoration:"underline",variant:j.r.Inverted,onClick:this.openModal,children:i.form.formTitle})]}),i.form&&(0,V.jsx)(C.l,{title:"Search",isOpen:p,toggleModal:this.closeModal,children:(0,V.jsx)(S.r,{fields:i.form.fields,formPostsToSalesforce:i.form.formPostsToSalesforce,id:i.form.formId.toString()})})]})}),c&&(0,V.jsx)(R.x,{variant:R.r.Inverted,textAlign:"center",mt:2,children:"Please enter a valid postcode."})]})]})})}}]),o}(b.Component),r=(0,h.Z)(i.prototype,"componentState",[O.LO],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{error:null,isLoading:!1,feasibilityData:null,isModalOpen:!1}}}),(0,h.Z)(i.prototype,"isFiberAvailable",[O.Fl],Object.getOwnPropertyDescriptor(i.prototype,"isFiberAvailable"),i.prototype),o=i))||o)||o},13865:function(t,e,n){n.d(e,{Z:function(){return s}});var o=n(50029),i=n(87757),r=n.n(i);n(64043),n(57267);var a=n(56266);function s(t){return u.apply(this,arguments)}function u(){return(u=(0,o.Z)(r().mark(function t(e){var n,o;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.$2)("/feasibility/v1/servicefeasibility?postcode=".concat(e.replace(/\s/g,"")));case 2:return n=t.sent,t.next=5,n.json();case 5:if(o=t.sent,!(n.status>=400&&n.status<=600)){t.next=8;break}throw o;case 8:return t.abrupt("return",o.result);case 9:case"end":return t.stop()}},t)}))).apply(this,arguments)}},75429:function(t,e,n){var o,i,r,a=n(60571),s=n(18782),u=n(80377),l=n(79580),c=n(4936),p=n(52552),f=n(13641),d=n(67294);n(92126),n(73935);var h=n(87516),m=n(54644);n(93998),n(35639);var v=(o=(0,n(61085).m)(m.S),r=i=function(t){(0,c.Z)(i,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=(0,f.Z)(i);return t=e?Reflect.construct(n,arguments,(0,f.Z)(this).constructor):n.apply(this,arguments),(0,p.Z)(this,t)});function i(t){var e;return(0,u.Z)(this,i),(e=n.call(this)).select=void 0,e.lastRequest=void 0,e.mounted=!1,e.optionsCache={},e.handleInputChange=function(t,n){var o=e.props,i=o.cacheOptions,r=o.onInputChange,a=(0,h.G)(t,n,r);if(!a){delete e.lastRequest,e.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});return}if(i&&e.optionsCache[a])e.setState({inputValue:a,loadedInputValue:a,loadedOptions:e.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var s=e.lastRequest={};e.setState({inputValue:a,isLoading:!0,passEmptyOptions:!e.state.loadedInputValue},function(){e.loadOptions(a,function(t){e.mounted&&(t&&(e.optionsCache[a]=t),s===e.lastRequest&&(delete e.lastRequest,e.setState({isLoading:!1,loadedInputValue:a,loadedOptions:t||[],passEmptyOptions:!1})))})})}return a},e.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},e}
1return(0,l.Z)(i,[{key:"componentDidMount",value:function(){var t=this;this.mounted=!0;var e=this.props.defaultOptions,n=this.state.inputValue;!0===e&&this.loadOptions(n,function(e){if(t.mounted){var n=!!t.lastRequest;t.setState({defaultOptions:e||[],isLoading:n})}})}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),t.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(t,e){var n=this.props.loadOptions;if(!n)return e();var o=n(t,e);o&&"function"==typeof o.then&&o.then(e,function(){return e()})}},{key:"render",value:function(){var t=this,e=this.props,n=(e.loadOptions,e.isLoading),i=(0,a.Z)(e,["loadOptions","isLoading"]),r=this.state,u=r.defaultOptions,l=r.inputValue,c=r.isLoading,p=r.loadedInputValue,f=r.loadedOptions,h=r.passEmptyOptions;return d.createElement(o,(0,s.Z)({},i,{ref:function(e){t.select=e},options:h?[]:l&&p?f:u||[],isLoading:c||n,onInputChange:this.handleInputChange}))}}]),i}(d.Component),i.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},r);e.ZP=v}}]);
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.