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WAAa,6DAA6D,UAAY,4DAA4D,WAAa,6D","sources":["webpack://safg/./src/components/Form/Control.js","webpack://safg/./src/components/Icons/PostcodeNo.tsx","webpack://safg/./src/components/Icons/PostcodeYes.tsx","webpack://safg/./src/components/PostcodeChecker/styles.module.css?6a72","webpack://safg/./src/components/Form/Searchbox/index.jsx","webpack://safg/./src/components/Form/Searchbox/styles.module.css?e8ce","webpack://safg/./src/components/PostcodeChecker/index.jsx","webpack://safg/./src/components/Typography/index.jsx","webpack://safg/./node_modules/postcode/esm/index.js","webpack://safg/./src/utils/Validation/validatePostcode.js","webpack://safg/./src/components/Typography/styles.module.scss?160e"],"names":["defaultChange","_value","_validity","defaultBlur","_e","defaultInvalid","_ref","params","value","id","onChange","onBlur","onInvalid","eventHandlers","e","target","includes","type","React","_extends","className","render","props","PostcodeNo","width","height","viewBox","fill","xmlns","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","PostcodeYes","inputParams","Control","FontAwesomeIcon","icon","faSearch","initialValue","onSearchResult","enteredPostcode","setEnteredPostcode","useState","validatedPostcode","setValidatedPostcode","validatePostcode","onSubmit","preventDefault","trackPostcodeSearch","styles","formRow","Searchbox","placeholder","Button","design","disabled","length","feedback","feedbackError","join","Typography","tag","Wrapper","styleNames","children","rest","filter","cssClass","stylistic","h1","stylisticH1","h2","stylisticH2","light","subheader","lightSubheader","title","lightTitle","body","lightBody","heavy","heavyTitle","display","displayHeavy","__assign","Object","assign","t","s","i","n","arguments","p","prototype","hasOwnProperty","call","apply","this","DISTRICT_SPLIT_REGEX","UNIT_REGEX","INCODE_REGEX","OUTCODE_REGEX","POSTCODE_REGEX","AREA_REGEX","invalidPostcode","valid","postcode","incode","outcode","area","district","subDistrict","sector","unit","firstOrNull","match","SPACE_REGEX","sanitize","replace","toUpperCase","matchOn","regex","isValid","toNormalised","toOutcode","toIncode","toArea","toSector","toUnit","toDistrict","toSubDistrict","input","trim","parsed","parse"],"sourceRoot":""}