(this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[10],{282:function(e,n,t){"use strict";t.r(n);var a=t(144),o=t(0),r=t.n(o),u=t(538),i=t.n(u),s=t(2),l=t.n(s),c=t(544),d=t(543),p=t(39),E=t(8),m=t(532),f=t(18),A=t(23),C=t(16),h=t(530),b=t(64),g=t(531),T=t(533),S=t(534),O=t(535),I=t(536),N=t(537),v=t(7),L=t(13),M=t(802),R=function(){var e=Object(o.useState)({disabled:!1}),n=Object(a.a)(e,1)[0],t=Object(o.useState)(),u=Object(a.a)(t,2),i=u[0],s=u[1],l=Object(o.useState)(),c=Object(a.a)(l,2),d=c[0],p=c[1],m=Object(o.useState)(),f=Object(a.a)(m,2),h=f[0],b=f[1];Object(o.useEffect)((function(){if("undefined"===typeof window.google&&null===document.getElementById("loadGoogleMapsAPI")){var e=document.createElement("script");e.id="loadGoogleMapsAPI",e.async="true",e.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkX5pcWYEKgFndJpy2o6rWMNErtKyw6w8&libraries=places",document.querySelector("body").appendChild(e)}var n=setInterval((function(){"undefined"!==typeof google&&(s(new window.google.maps.places.AutocompleteService),p(new window.google.maps.places.AutocompleteSessionToken),b(new window.google.maps.places.PlacesService(document.createElement("div"))),clearInterval(n))}),10)}),[]);var g=function(){var e={city:"",line1:"",postalCode:"",stateProvinceCode:""},t=Object(o.useState)(null),u=Object(a.a)(t,2),s=u[0],l=u[1],c=function(e){return r.a.createElement("span",{className:"address-suggestion"},e.value)},p={disabled:n.disabled,label:"Address line 1",name:"combobox"},E=[],m=function(e){var n=e.target.value,t=n.length;"undefined"!==typeof i&&t&&i.getPlacePredictions({input:n,sessionToken:d},(function(e,n){n===window.google.maps.places.PlacesServiceStatus.OK&&(E=[],e.forEach((function(e){E.push({place_id:e.place_id,value:e.description})})),l({itemKey:"value",optionValues:E,renderOption:c,searchIncludeFields:["value"]}))}))},f=function(n){n&&n.place_id&&h.getDetails({fields:["address_components"],placeId:n.place_id,sessionToken:d},(function(n,t){t===window.google.maps.places.PlacesServiceStatus.OK&&function(n){if(n.length){var t="",a="",o="",r="";n.forEach((function(n){console.log("address :::: ",n),n.types.includes("street_number")?(t=n.long_name,e.line1=t):n.types.includes("route")?(t=t?"".concat(t," ").concat(n.long_name):n.long_name,e.line1=t):n.types.includes("locality")?(a=n.long_name,e.city=a):n.types.includes("administrative_area_level_1")?(o=n.short_name,e.stateProvinceCode=o):n.types.includes("postal_code")&&(r=n.long_name,e.postalCode=r)})),console.log("Address Line 1: ".concat(t)),console.log("City: ".concat(a)),console.log("State: ".concat(o)),console.log("Zip: ".concat(r)),console.log("Suggestion: ".concat(JSON.stringify(e)))}}(n.address_components)}))};return r.a.createElement(r.a.Fragment,null,r.a.createElement(v.a,{tag:"h3"},"Google Address Example"),r.a.createElement(v.a,null,"This is an example of the Autocomplete Manual Selection combobox. But it's a different flavor. The difference between this and the regular combobox is that the Freeform combobox should be used when you do not have any options on initial render; some type of user interaction is required.  The regular combobox requires a list of options on initial render."),r.a.createElement(M.a,{inputProps:p,itemToStringFunc:function(e){return e?e.value.split(",")[0]:""},optionsTemplate:s,onInputChange:m,onSelectionChange:f}),r.a.createElement(M.a,{inputProps:Object(L.a)({},p,{disabled:!0,label:"Disabled Example"}),itemToStringFunc:function(e){return e?e.value.split(",")[0]:""},optionsTemplate:s,onInputChange:m,onSelectionChange:f}))},T=function(){var e={disabled:n.disabled,label:"Card Type",name:"combobox"},t={itemKey:"value",optionValues:[{value:"silver signature card"},{value:"visa signature card"},{value:"platinum visa card"},{value:"premium card"},{value:"another card"},{value:"other card"},{value:"secondary card"},{value:"tertiary card"},{value:"gold signature card"},{value:"yet another card"},{value:"last card"}],renderOption:function(e){return r.a.createElement("span",{className:"card-name"},e.value)},searchIncludeFields:["value"]},a=function(e){return console.log("onInputChange",e.target.value)},o=function(e){return console.log("onSelectionChange",JSON.stringify(e))};return r.a.createElement(r.a.Fragment,null,r.a.createElement(M.a,{optionsTemplate:t,inputProps:e,itemToStringFunc:function(e){return e?e.value:""},onInputChange:a,onSelectionChange:o}),r.a.createElement(M.a,{optionsTemplate:t,inputProps:Object(L.a)({},e,{disabled:!0,label:"Disabled Example"}),itemToStringFunc:function(e){return e?e.value:""},onInputChange:a,onSelectionChange:o}))};return r.a.createElement(A.a,null,r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement(v.a,{tag:"h2"},"Combobox Freeform Manual Selection"))),r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement(g,null))),r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement(v.a,{tag:"h2"},"Generic Example"),r.a.createElement(v.a,null,"This is an example of the Autocomplete Manual Selection combobox. But it's a different flavor. The difference between this and the regular combobox is that the Freeform combobox should be used when you do not have any options on initial render; some type of user interaction is required.  The regular combobox requires a list of options on initial render."))),r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement(T,null))))},D=t(540),_=[t(541)],y=t(542),F="import React, { useEffect, useRef, useState } from 'react';\nimport classnames from 'classnames';\nimport Downshift from 'downshift';\nimport { arrayOf, bool, func, number, oneOf, oneOfType, shape, string } from 'prop-types';\nimport Listbox from '../combobox/listbox';\nimport Input from '../input';\nimport useScrollToItem from '../combobox/useScrollToItem';\nimport useComboboxAction from '../combobox/useComboboxAction';\n\nconst ComboboxFreeformManualSelection = ({\n  ariaVersion,\n  comboboxClass,\n  comboboxAction,\n  containerProps,\n  errorText,\n  // eslint-disable-line no-unused-vars\n  inputProps,\n  inputContainerProps,\n  itemToStringFunc,\n  onInputBlur,\n  onInputChange,\n  onInputFocus,\n  onSelectionChange,\n  optionsTemplate,\n  ...restProps\n}) => {\n  const [currentSelectItem, setCurrentSelectItem] = useState('');\n  const inputRef = useRef(null);\n  const [inputError, setInputError] = useState(errorText);\n  const [isListboxOpen, setListboxOpen] = useState(false);\n  const [searchHasNoMatch, setSearchHasNoMatch] = useState(false);\n  const { listboxItemRef, listboxRef } = useScrollToItem(currentSelectItem, optionsTemplate || {});\n\n  const downshiftInternalActions = {};\n  const actionList = ['clearSelection', 'closeMenu', 'openMenu', 'selectItem', 'setHighlightedIndex'];\n  useComboboxAction(comboboxAction, downshiftInternalActions);\n\n  //Error text from parent component\n  useEffect(() => {\n    if (errorText) {\n      setInputError(errorText);\n    } else {\n      setInputError('');\n    }\n  }, [errorText]);\n\n  useEffect(() => {\n    if (inputError) {\n      //if errorText exist, when noMatch error disappear, reset back to errorText\n      if (errorText) {\n        setInputError(errorText);\n      } else {\n        setInputError('');\n      }\n    }\n    if (searchHasNoMatch) {\n      setListboxOpen(false);\n    } else {\n      setListboxOpen(true);\n    }\n  }, [errorText, inputError, searchHasNoMatch]);\n\n  const handleInputBlur = e => {\n    typeof onInputBlur === 'function' && onInputBlur(e, e.target.value);\n  };\n\n  const handleInputChange = e => {\n    typeof onInputChange === 'function' && onInputChange(e, e.target.value);\n  };\n\n  const handleInputFocus = e => {\n    typeof onInputFocus === 'function' && onInputFocus(e, e.target.value);\n  };\n\n  const handleSelection = selection => {\n    setCurrentSelectItem(selection ? selection : null);\n    setInputError('');\n    typeof onSelectionChange === 'function' && onSelectionChange(selection);\n  };\n\n  const handleNoMatch = noMatch => {\n    if (searchHasNoMatch !== noMatch) {\n      setSearchHasNoMatch(noMatch);\n    }\n  };\n\n  return (\n    <Downshift\n      initialInputValue=\"\"\n      initialSelectedItem={currentSelectItem}\n      itemToString={itemToStringFunc}\n      onChange={handleSelection}\n    >\n      {({ getInputProps, isOpen, ...listboxDownshift }) => { // eslint-disable-line no-unused-vars\n        if (Object.keys(downshiftInternalActions).length === 0) {\n          downshiftInternalActions.setInputError = setInputError;\n          for (const action of actionList) { // eslint-disable-line\n            downshiftInternalActions[action] = listboxDownshift[action];\n          }\n        }\n        return (\n          <div\n            {...containerProps}\n            role={undefined}\n            aria-haspopup={undefined}\n            aria-expanded={undefined}\n            aria-labelledby={undefined}\n            className={classnames('vds-combobox-container', comboboxClass.containerClass)}\n          >\n            <Input\n              {...getInputProps({\n                onBlur: handleInputBlur,\n                onChange: handleInputChange,\n                onFocus: handleInputFocus\n              })}\n              {...(ariaVersion === '1.2' ? {\n                ...inputContainerProps,\n                'aria-expanded': isOpen ? 'true' : 'false',\n                'aria-owns': `${listboxDownshift['id']}-menu`\n              } : undefined)}\n              {...inputProps}\n              className={classnames('vds-combobox-input-wrapper', comboboxClass.inputWrapperClass)}\n              errorText={inputError}\n              ref={inputRef}\n              invalid={Boolean(inputError)}\n              inputContainerProps={ariaVersion === '1.1' ? {\n                ...inputContainerProps,\n                'aria-expanded': isOpen ? 'true' : 'false',\n                'aria-owns': `${listboxDownshift['id']}-menu`\n              } : undefined}\n              labelId={getInputProps()['aria-labelledby']}\n              showErrorText={Boolean(inputError)}\n              showHelpText={Boolean(inputProps.helpText)}\n              type=\"text\"\n            />\n            <Listbox\n              {...listboxDownshift}\n              {...restProps}\n              listboxClass={comboboxClass.listboxClass}\n              isListboxOpen={isListboxOpen}\n              listboxItemRef={li => {\n                listboxItemRef.current = li;\n              }}\n              listboxRef={ul => {\n                listboxRef.current = ul;\n              }}\n              isOpen={isOpen}\n              noMatchCallback={handleNoMatch}\n              noSelectionCheckMark\n              optionsTemplate={optionsTemplate}\n            />\n          </div>\n        );\n      }}\n    </Downshift>\n  );\n};\n\nComboboxFreeformManualSelection.propTypes = {\n  ariaVersion: oneOf(['1.1', '1.2']),\n  comboboxAction: func,\n  comboboxClass: shape({\n    containerClass: string,\n    inputWrapperClass: string,\n    listboxClass: string\n  }),\n  containerProps: shape({}),\n  errorText: string,\n  id: oneOfType([number, string]),\n  inputProps: shape({\n    disabled: bool,\n    helpText: string,\n    label: string.isRequired,\n    name: string.isRequired,\n    placeholder: string,\n    required: bool,\n    showHelpText: bool\n  }),\n  inputContainerProps: shape({\n    role: string,\n    'aria-haspopup': string,\n    'aria-expanded': string,\n    'aria-owns': string\n  }),\n  itemToStringFunc: func.isRequired,\n  onInputBlur: func,\n  onInputChange: func,\n  onInputFocus: func,\n  onSelectionChange: func,\n  optionsTemplate: shape({\n    itemKey: string.isRequired,\n    optionValues: arrayOf(shape({ value: string.isRequired })),\n    renderOption: func.isRequired,\n    searchIncludeFields: arrayOf(string)\n  })\n};\n\nComboboxFreeformManualSelection.defaultProps = {\n  ariaVersion: '1.2',\n  comboboxClass: {\n    containerClass: null,\n    inputWrapperClass: null,\n    listboxClass: null\n  },\n  errorText: '',\n  inputProps: {\n    label: 'Text for label',\n    name: 'combobox'\n  },\n  inputContainerProps: {\n    role: 'combobox',\n    'aria-haspopup': 'listbox',\n    'aria-expanded': 'false'\n  }\n};\n\nComboboxFreeformManualSelection.displayName = 'ComboboxFreeformManualSelection';\n\nexport default ComboboxFreeformManualSelection;\n".replace("= memo(({","= React.forwardRef(({").replace("cloneElement(","React.cloneElement("),P="/* eslint-disable no-console */\n\nimport React, { useEffect, useState } from 'react';\nimport Col from '../../col';\nimport ComboboxFreeformManualSelection from '../../combobox-freeform-manual-selection';\nimport Grid from '../../grid';\nimport Row from '../../row';\nimport Typography from '../../typography';\n\nconst ComboboxFreeformManualSelectionExample = () => {\n  const [state] = useState({\n    disabled: false\n  });\n  const [service, setService] = useState();\n  const [sessionToken, setSessionToken] = useState();\n  const [placesService, setPlacesService] = useState();\n\n  useEffect(() => {\n    /*\n     * Load google address suggestion JS API\n     */\n    if (typeof window.google === 'undefined' && document.getElementById('loadGoogleMapsAPI') === null) {\n      const loadGoogleMapsAPI = document.createElement('script');\n      loadGoogleMapsAPI.id = \"loadGoogleMapsAPI\";\n      loadGoogleMapsAPI.async = \"true\";\n      loadGoogleMapsAPI.src = \"https://maps.googleapis.com/maps/api/js?key=AIzaSyCkX5pcWYEKgFndJpy2o6rWMNErtKyw6w8&libraries=places\";\n      document.querySelector('body').appendChild(loadGoogleMapsAPI);\n    }\n\n    const googleObject = setInterval(() => {\n      if (typeof google !== 'undefined') {\n        setService(new window.google.maps.places.AutocompleteService());\n        setSessionToken(new window.google.maps.places.AutocompleteSessionToken());\n        setPlacesService(new window.google.maps.places.PlacesService(document.createElement('div')));\n        clearInterval(googleObject);\n      }\n    }, 10);\n    // Ends Google Maps API loading\n  }, []);\n\n  const GoogleSuggestCombobox = () => {\n    const suggestionObj = {\n      city: '',\n      line1: '',\n      postalCode: '',\n      stateProvinceCode: ''\n    };\n    const [optionsTemplate, setOptionsTemplate] = useState(null);\n\n    const renderOption = optionItem => <span className=\"address-suggestion\">{optionItem.value}</span>;\n\n    const inputProps = {\n      disabled: state.disabled,\n      label: 'Address line 1',\n      name: 'combobox'\n    };\n\n    let googlePredictions = [];\n\n    const mapToField = components => {\n      if (!components.length) {\n        return;\n      }\n\n      let addressLine1Field = '';\n      let cityField = '';\n      let stateField = '';\n      let zipField = '';\n\n      components.forEach(address => {\n        console.log('address :::: ', address);\n        if (address.types.includes('street_number')) {\n          addressLine1Field = address.long_name;\n          suggestionObj.line1 = addressLine1Field;\n        } else if (address.types.includes('route')) {\n          addressLine1Field = (addressLine1Field) ? `${addressLine1Field} ${address.long_name}` : address.long_name;\n          suggestionObj.line1 = addressLine1Field;\n        } else if (address.types.includes('locality')) {\n          cityField = address.long_name;\n          suggestionObj.city = cityField;\n        } else if (address.types.includes('administrative_area_level_1')) {\n          stateField = address.short_name;\n          suggestionObj.stateProvinceCode = stateField;\n        } else if (address.types.includes('postal_code')) {\n          zipField = address.long_name;\n          suggestionObj.postalCode = zipField;\n        }\n      });\n\n      console.log(`Address Line 1: ${addressLine1Field}`);\n      console.log(`City: ${cityField}`);\n      console.log(`State: ${stateField}`);\n      console.log(`Zip: ${zipField}`);\n      console.log(`Suggestion: ${JSON.stringify(suggestionObj)}`);\n    };\n\n    const onInputChange = e => {\n      const val = e.target.value;\n      const len = val.length;\n\n      if (typeof service !== 'undefined' && len) {\n        service.getPlacePredictions({\n          input: val,\n          sessionToken\n        }, (predictions, status) => {\n          if (status !== window.google.maps.places.PlacesServiceStatus.OK) {\n            return;\n          }\n\n          googlePredictions = [];\n\n          predictions.forEach(prediction => {\n            googlePredictions.push({\n              place_id: prediction.place_id,\n              value: prediction.description\n            });\n          });\n\n          setOptionsTemplate({\n            itemKey: 'value',\n            optionValues: googlePredictions,\n            renderOption,\n            searchIncludeFields: ['value']\n          });\n        });\n      }\n    };\n\n    const onSelectionChange = (place) => {\n      if (place && place.place_id) {\n        placesService.getDetails({\n          fields: ['address_components'],\n          placeId: place.place_id,\n          sessionToken\n        }, (place, status) => {\n          if (status === window.google.maps.places.PlacesServiceStatus.OK) {\n            mapToField(place.address_components);\n          }\n        });\n\n        // sessionToken = new window.google.maps.places.AutocompleteSessionToken();\n      }\n    };\n\n    const positionOfCommaThatFollowsTriggeringFieldAddressInfo = 0;\n    const shortenedSelectedItemValueChar = ',';\n\n    return (\n      <React.Fragment>\n        <Typography tag=\"h3\">Google Address Example</Typography>\n        <Typography>\n          This is an example of the Autocomplete Manual\n          Selection combobox. But it&apos;s a different flavor.\n          The difference between this and the regular combobox\n          is that the Freeform combobox should be used when you\n          do not have any options on initial render; some type\n          of user interaction is required.  The regular combobox\n          requires a list of options on initial render.\n        </Typography>\n        <ComboboxFreeformManualSelection\n          inputProps={inputProps}\n          itemToStringFunc={item => (\n            item\n              ? item.value.split(shortenedSelectedItemValueChar)[positionOfCommaThatFollowsTriggeringFieldAddressInfo]\n              : ''\n          )}\n          optionsTemplate={optionsTemplate}\n          onInputChange={onInputChange}\n          onSelectionChange={onSelectionChange}\n        />\n        <ComboboxFreeformManualSelection\n          inputProps={{\n            ...inputProps,\n            disabled: true,\n            label: 'Disabled Example'\n          }}\n          itemToStringFunc={item => (\n            item\n              ? item.value.split(shortenedSelectedItemValueChar)[positionOfCommaThatFollowsTriggeringFieldAddressInfo]\n              : ''\n          )}\n          optionsTemplate={optionsTemplate}\n          onInputChange={onInputChange}\n          onSelectionChange={onSelectionChange}\n        />\n      </React.Fragment>\n    );\n  };\n\n  const ManualAutocompleteCombobox = () => {\n\n    const renderOption = optionItem => <span className=\"card-name\">{optionItem.value}</span>;\n\n    const inputProps = {\n      disabled: state.disabled,\n      label: 'Card Type',\n      name: 'combobox'\n    };\n\n    const cardsValue = [\n      { value: 'silver signature card' },\n      { value: 'visa signature card' },\n      { value: 'platinum visa card' },\n      { value: 'premium card' },\n      { value: 'another card' },\n      { value: 'other card' },\n      { value: 'secondary card' },\n      { value: 'tertiary card' },\n      { value: 'gold signature card' },\n      { value: 'yet another card' },\n      { value: 'last card' }\n    ];\n\n    const optionsTemplate = {\n      itemKey: 'value',\n      optionValues: cardsValue,\n      renderOption,\n      searchIncludeFields: ['value']\n    };\n\n    const onInputChange = e => console.log('onInputChange', e.target.value);\n    const onSelectionChange = item => console.log('onSelectionChange', JSON.stringify(item));\n\n    return (\n      <React.Fragment>\n        <ComboboxFreeformManualSelection\n          optionsTemplate={optionsTemplate}\n          inputProps={inputProps}\n          itemToStringFunc={item => (item ? item.value : '')}\n          onInputChange={onInputChange}\n          onSelectionChange={onSelectionChange}\n        />\n        <ComboboxFreeformManualSelection\n          optionsTemplate={optionsTemplate}\n          inputProps={{\n            ...inputProps,\n            disabled: true,\n            label: 'Disabled Example'\n          }}\n          itemToStringFunc={item => (item ? item.value : '')}\n          onInputChange={onInputChange}\n          onSelectionChange={onSelectionChange}\n        />\n      </React.Fragment>\n    );\n  };\n\n  return (\n    <Grid>\n      <Row>\n        <Col>\n          <Typography tag=\"h2\">Combobox Freeform Manual Selection</Typography>\n        </Col>\n      </Row>\n      <Row>\n        <Col>\n          <GoogleSuggestCombobox />\n        </Col>\n      </Row>\n      <Row>\n        <Col>\n          <Typography tag=\"h2\">Generic Example</Typography>\n          <Typography>\n            This is an example of the Autocomplete Manual\n            Selection combobox. But it&apos;s a different flavor.\n            The difference between this and the regular combobox is\n            that the Freeform combobox should be used when you\n            do not have any options on initial render; some type of user\n            interaction is required.  The regular combobox requires a list\n            of options on initial render.\n          </Typography>\n        </Col>\n      </Row>\n      <Row>\n        <Col>\n          <ManualAutocompleteCombobox />\n        </Col>\n      </Row>\n    </Grid>\n  );\n};\n\nexport default ComboboxFreeformManualSelectionExample;\n".replace(/'..\/..\//g,"'@visa/vds-react/"),x=function(e){var n=Object.assign({},e),t=Object(o.useState)({}),u=Object(a.a)(t,2),s=u[0],L=u[1];return Object(o.useEffect)((function(){try{L(y.parse(F))}catch(e){console.log("\n        React-docgen could not parse props for ComboboxFreeformManualSelection\n        check for fix here https://github.com/reactjs/react-docgen/issues/342")}}),[]),r.a.createElement(A.a,{siblingOfStickyFooter:!0},r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement(v.a,{tag:"h1"},"Combobox Freeform Manual Selection"))),r.a.createElement(C.a,null,r.a.createElement(E.a,{role:"navigation","aria-label":"Secondary"},r.a.createElement(g.a,{role:"none"},r.a.createElement(b.a,{role:void 0,tag:r.a.createElement(p.c,{exact:!0,to:"".concat("/vds-react","/components/combobox-freeform-manual-selection"),activeClassName:"vds-state--selected"})},r.a.createElement(f.a,{name:"log",resolution:"low"}),"Combobox Freeform Manual Selection Example"),r.a.createElement(b.a,{role:void 0,tag:r.a.createElement(p.c,{exact:!0,to:"".concat("/vds-react","/components/combobox-freeform-manual-selection/code"),activeClassName:"vds-state--selected"})},r.a.createElement(f.a,{name:"code-fork-code-alt",resolution:"low"}),"JSX of Example"),r.a.createElement(b.a,{role:void 0,tag:r.a.createElement(p.c,{exact:!0,to:"".concat("/vds-react","/components/combobox-freeform-manual-selection/html"),activeClassName:"vds-state--selected"})},r.a.createElement(f.a,{name:"code-fork-code-alt",resolution:"low"}),"HTML of Example")))),r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement("div",{className:l()({"vds-state--hidden":n.match.path!=="".concat("/vds-react","/components/combobox-freeform-manual-selection"),"vds-state--show":n.match.path==="".concat("/vds-react","/components/combobox-freeform-manual-selection")})},r.a.createElement(R,n)),r.a.createElement("div",{className:l()({"vds-state--hidden":n.match.path!=="".concat("/vds-react","/components/combobox-freeform-manual-selection/code"),"vds-state--show":n.match.path==="".concat("/vds-react","/components/combobox-freeform-manual-selection/code")})},r.a.createElement(c.a,Object.assign({},c.b,{theme:d.a,code:P,language:"jsx"}),(function(e){var n=e.className,t=e.style,a=e.tokens,o=e.getLineProps,u=e.getTokenProps;return r.a.createElement("pre",{className:n,style:t},a.map((function(e,n){return r.a.createElement("div",Object.assign({},o({key:n,line:e}),{key:n}),r.a.createElement("span",{style:{display:"inline-block",opacity:"0.3",userSelect:"none",width:"2em"}},n+1),e.map((function(e,n){return r.a.createElement("span",Object.assign({},u({key:n,token:e}),{key:n}))})))})))}))),r.a.createElement("div",{className:l()({"vds-state--hidden":n.match.path!=="".concat("/vds-react","/components/combobox-freeform-manual-selection/html"),"vds-state--show":n.match.path==="".concat("/vds-react","/components/combobox-freeform-manual-selection/html")})},r.a.createElement(c.a,Object.assign({},c.b,{theme:d.a,code:D.format(i.a.renderToStaticMarkup(r.a.createElement(R,n)),{css:"ignore",parser:"html",plugins:_,printWidth:120}),language:"html"}),(function(e){var n=e.className,t=e.style,a=e.tokens,o=e.getLineProps,u=e.getTokenProps;return r.a.createElement("pre",{className:n,style:t},a.map((function(e,n){return r.a.createElement("div",Object.assign({},o({key:n,line:e}),{key:n}),r.a.createElement("span",{style:{display:"inline-block",opacity:"0.3",userSelect:"none",width:"2em"}},n+1),e.map((function(e,n){return r.a.createElement("span",Object.assign({},u({key:n,token:e}),{key:n}))})))})))}))))),r.a.createElement(C.a,null,r.a.createElement(E.a,null,r.a.createElement(m.a,{className:l()(["components"]),dividerLines:!0,size:"compact"},r.a.createElement(h.a,{tag:"caption"},"Props"),r.a.createElement(I.a,null,r.a.createElement(N.a,{className:"vds-tr"},r.a.createElement(O.a,{"aria-sort":"none",role:"columnheader",scope:"col"},"Prop"),r.a.createElement(O.a,{"aria-sort":"none",role:"columnheader",scope:"col"},"Type"),r.a.createElement(O.a,{"aria-sort":"none",role:"columnheader",scope:"col"},"Default"),r.a.createElement(O.a,{"aria-sort":"none",role:"columnheader",scope:"col"},"Description"))),r.a.createElement(T.a,null,s.props&&Object.entries(s.props).filter((function(e){return"@ignore"!==e[1].description})).map((function(e,n){return r.a.createElement(N.a,{className:"vds-tr",key:n},r.a.createElement(O.a,{className:"vds-td",scope:"row"},e[0]," ",e[1].required?r.a.createElement("strong",null," - required"):""),r.a.createElement(S.a,{className:"vds-td"},r.a.createElement("strong",null,e[1].type.name),e[1].type.value&&e[1].type.value.length?r.a.createElement("small",{style:{color:"#1a1f71"}},r.a.createElement("br",null),Array.isArray(e[1].type.value)?e[1].type.value.map((function(e){return e.value||e.name})).join(", "):"string"===typeof e[1].type.value?e[1].type.value:void 0):""),r.a.createElement(S.a,{className:"vds-td"},e[1].defaultValue?e[1].defaultValue.value:""),r.a.createElement(S.a,{className:"vds-td"},e[1].description))})))))))};x.displayName="ComboboxFreeformManualSelectionExample";n.default=x},530:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.children,o=e.className,u=e.tag,i=Object(a.a)(e,["children","className","tag"]);return r.a.createElement(u,Object.assign({className:s()("vds-screen-reader",o),ref:n},i),t)}));l.propTypes={children:u.node,className:u.string,tag:u.elementType},l.defaultProps={tag:"span"},l.displayName="ScreenReader",n.a=l},531:function(e,n,t){"use strict";var a=t(4),o=t(144),r=t(5),u=t(0),i=t.n(u),s=t(2),l=t.n(s),c=t(65),d=40,p=37,E=39,m=38,f=35,A=36,C=Object(u.forwardRef)((function(e,n){var t=e.children,s=e.className,C=e.orientation,h=e.role,b=e.selectedTab,g=Object(r.a)(e,["children","className","orientation","role","selectedTab"]);n=n||Object(u.useRef)();var T=Object(u.useState)(b),S=Object(o.a)(T,2),O=S[0],I=S[1],N=Object(u.useState)(O),v=Object(o.a)(N,2),L=v[0],M=v[1],R=Object(u.useState)([]),D=Object(o.a)(R,2),_=D[0],y=D[1];Object(u.useEffect)((function(){y(Array.from(n.current.querySelectorAll("li > .vds-tab:not(.vds-state--disabled)")))}),[t,n]),Object(u.useEffect)((function(){I(b)}),[b]);return i.a.createElement("ul",Object.assign({className:l()("".concat("vds-tab","-list"),Object(a.a)({},"".concat("vds-tab","--").concat(C),Boolean(C)),s),ref:n,role:h},g),u.Children.map(t,(function(e,n){return i.a.createElement(c.a,{role:"none"},Object(u.cloneElement)(e,{key:n,onClick:function(t){return function(e,n,t){I(n),M(n),"function"===typeof t.props.onClick&&t.props.onClick(e,n)}(t,n,e)},onKeyDown:function(t){return function(e,n,t){var a=e.charCode||e.keyCode,o=_.length,r=L||0;switch(a){case f:return e.preventDefault(),M(o-1),_[o-1].focus();case A:return e.preventDefault(),M(0),_[0].focus();case p:case m:return e.preventDefault(),M(r-1<0?o-1:r-1),_[r-1<0?o-1:r-1].focus();case E:case d:return e.preventDefault(),M((r+1)%o),_[(r+1)%o].focus()}return"function"===typeof t.props.onKeyDown&&t.props.onKeyDown(e,n),M(O)}(t,n,e)},selected:O===n,tabIndex:Number.isInteger(L)?L===n?0:-1:0===n?0:-1}))})))}));C.defaultProps={role:"tablist"},C.displayName="TabList",n.a=C},532:function(e,n,t){"use strict";var a=t(4),o=t(5),r=t(0),u=t.n(r),i=t(3),s=t(2),l=t.n(s),c=Object(r.forwardRef)((function(e,n){var t,r=e.children,i=e.className,s=e.customizableColumns,c=e.dividerLines,d=e.keyValuePairs,p=e.reveal,E=e.revealFirstColumn,m=e.revealLastColumn,f=e.rowSelection,A=e.size,C=e.stickyHeader,h=Object(o.a)(e,["children","className","customizableColumns","dividerLines","keyValuePairs","reveal","revealFirstColumn","revealLastColumn","rowSelection","size","stickyHeader"]);return u.a.createElement("table",Object.assign({},h,{className:l()("vds-data-table",(t={},Object(a.a)(t,"".concat("vds-state","--customizable-columns"),Boolean(s)),Object(a.a)(t,"".concat("vds-state","--divider-lines"),Boolean(c)),Object(a.a)(t,"".concat("vds-state","--key-value-pairs"),Boolean(d)),Object(a.a)(t,"".concat("vds-state","--").concat(A),Boolean(A)),Object(a.a)(t,"".concat("vds-state","--reveal"),Boolean(p)),Object(a.a)(t,"".concat("vds-state","--reveal-first-column"),Boolean(E)),Object(a.a)(t,"".concat("vds-state","--reveal-last-column"),Boolean(m)),Object(a.a)(t,"".concat("vds-state","--").concat(f),Boolean(f)),Object(a.a)(t,"".concat("vds-state","--sticky-header"),Boolean(C)),t),i),ref:n}),r)}));c.propTypes={children:i.node,className:i.string,columns:Object(i.arrayOf)(Object(i.shape)({})),customizableColumns:i.bool,data:Object(i.arrayOf)(Object(i.shape)({})),dividerLines:i.bool,keyValuePairs:i.bool,reveal:i.bool,revealFirstColumn:i.bool,revealLastColumn:i.bool,rowSelection:Object(i.oneOf)(["multi-select","single-select"]),size:Object(i.oneOf)(["compact"]),stickyHeader:i.bool},c.displayName="DataTable",n.a=c},533:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.children,o=e.className,u=Object(a.a)(e,["children","className"]);return r.a.createElement("tbody",Object.assign({className:s()("vds-tbody",o),ref:n},u),t)}));l.propTypes={children:u.node,className:u.string},l.displayName="Tbody",n.a=l},534:function(e,n,t){"use strict";var a=t(4),o=t(5),r=t(0),u=t.n(r),i=t(3),s=t(2),l=t.n(s),c=Object(r.forwardRef)((function(e,n){var t=e.children,r=e.className,i=e.textAlign,s=Object(o.a)(e,["children","className","textAlign"]);return u.a.createElement("td",Object.assign({className:l()("vds-td",Object(a.a)({},"vds-text--".concat(i),Boolean(i)),r),ref:n},s),t)}));c.propTypes={children:i.node,className:i.string,textAlign:Object(i.oneOf)(["center","left","right"])},c.displayName="Td",n.a=c},535:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.children,o=e.className,u=Object(a.a)(e,["children","className"]);return r.a.createElement("th",Object.assign({className:s()("vds-th",o),ref:n},u),t)}));l.propTypes={children:u.node,className:u.string},l.displayName="Th",n.a=l},536:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.children,o=e.className,u=Object(a.a)(e,["children","className"]);return r.a.createElement("thead",Object.assign({className:s()("vds-thead",o),ref:n},u),t)}));l.propTypes={children:u.node,className:u.string},l.displayName="Thead",n.a=l},537:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.children,o=e.className,u=Object(a.a)(e,["children","className"]);return r.a.createElement("tr",Object.assign({className:s()("vds-tr",o),ref:n},u),t)}));l.propTypes={children:u.node,className:u.string},l.displayName="Tr",n.a=l},545:function(e,n){},546:function(e,n){},555:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(2),i=t.n(u),s=function(e){var n=e.children,t=e.className,o=Object(a.a)(e,["children","className"]);return r.a.createElement("span",Object.assign({className:i()("vds-input-option",t)},o),n)};s.displayName="InputOption",n.a=s},558:function(e,n,t){"use strict";var a=t(4),o=t(5),r=t(0),u=t.n(r),i=t(3),s=t(2),l=t.n(s),c=Object(r.forwardRef)((function(e,n){var t,r=e.children,i=e.className,s=e.css,c=e.disabled,d=e.expanded,p=e.filled,E=e.focus,m=e.invalid,f=e.isTextarea,A=e.readOnly,C=Object(o.a)(e,["children","className","css","disabled","expanded","filled","focus","invalid","isTextarea","readOnly"]);return u.a.createElement("div",Object.assign({className:l()((t={},Object(a.a)(t,"".concat("vds-input"),!f),Object(a.a)(t,"".concat("vds-input","-textarea-container"),Boolean(f)),Object(a.a)(t,"".concat("vds-state","--disabled"),Boolean(c)),Object(a.a)(t,"".concat("vds-state","--error"),Boolean(m)),Object(a.a)(t,"".concat("vds-state","--expanded"),Boolean(d)),Object(a.a)(t,"".concat("vds-state","--filled"),Boolean(p)),Object(a.a)(t,"".concat("vds-state","--focus"),Boolean(E)),Object(a.a)(t,"".concat("vds-state","--readonly"),Boolean(A)),Object(a.a)(t,"".concat("vds-state","--success"),"boolean"===typeof m&&!m),t),i),css:s,ref:n},C),r)}));c.propTypes={children:i.node,className:i.string,css:i.func,disabled:i.bool,expanded:i.bool,filled:i.bool,focus:i.bool,invalid:i.bool,isTextarea:i.bool,readOnly:i.bool},c.displayName="InputContainer",n.a=c},559:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.children,o=e.className,u=Object(a.a)(e,["children","className"]);return r.a.createElement("label",Object.assign({className:s()("vds-input-label",o),ref:n},u),t)}));l.propTypes={children:u.node,className:u.string},l.displayName="InputLabel",n.a=l},560:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(2),i=t.n(u),s=function(e){var n=e.children,t=e.className,o=Object(a.a)(e,["children","className"]);return r.a.createElement("div",Object.assign({className:i()("vds-input-bar",t)},o),n)};s.displayName="InputBar",n.a=s},561:function(e,n,t){"use strict";var a=t(4),o=t(5),r=t(0),u=t.n(r),i=t(2),s=t.n(i),l=function(e){var n,t=e.children,r=e.className,i=e.invalid,l=e.show,c=Object(o.a)(e,["children","className","invalid","show"]);return u.a.createElement("span",Object.assign({className:s()("vds-input-message",(n={},Object(a.a)(n,"".concat("vds-state","--hidden"),!l),Object(a.a)(n,"".concat("vds-state","--error"),Boolean(i)),n),r)},c),t)};l.defaultProps={},l.displayName="InputMessage",n.a=l},565:function(e,n,t){"use strict";var a=t(4),o=t(144),r=t(5),u=t(0),i=t.n(u),s=t(2),l=t.n(s),c=t(145),d=t.n(c),p=t(558),E=t(559),m=t(560),f=t(566),A=t(569),C=t(567),h=t(561),b=t(555),g=t(18),T=Object(u.forwardRef)((function(e,n){var t=e.ariaLabel,s=e.checkmarkIcon,c=e.children,g=e.className,T=e.containerProps,S=e.contentAfterInput,O=e.contentBeforeInput,I=e.css,N=e.disabled,v=e.errorIcon,L=e.errorText,M=e.expanded,R=e.helpIcon,D=e.helpText,_=e.id,y=void 0===_?d.a.generate():_,F=e.inputContainerProps,P=e.invalid,x=e.label,B=e.labelId,U=e.noValidate,G=e.onBlur,w=e.onChange,j=e.onFocus,k=e.placeholder,V=e.readOnly,H=e.showCheckmark,K=e.showErrorText,Y=e.showHelpText,Z=e.useNativePlaceholder,X=Object(r.a)(e,["ariaLabel","checkmarkIcon","children","className","containerProps","contentAfterInput","contentBeforeInput","css","disabled","errorIcon","errorText","expanded","helpIcon","helpText","id","inputContainerProps","invalid","label","labelId","noValidate","onBlur","onChange","onFocus","placeholder","readOnly","showCheckmark","showErrorText","showHelpText","useNativePlaceholder"]),W=Object(u.useState)(!1),q=Object(o.a)(W,2),z=q[0],J=q[1],$=Object(u.useState)(Boolean(X.value)||Boolean(X.defaultValue)),Q=Object(o.a)($,2),ee=Q[0],ne=Q[1],te=Object(u.useState)(!1),ae=Object(o.a)(te,2),oe=ae[0],re=ae[1],ue=Object(u.useState)(P),ie=Object(o.a)(ue,2),se=ie[0],le=ie[1],ce=Object(u.useRef)(y).current,de=function(e){U||(z&&le(!e.target.checkValidity()||e.target.required&&!e.target.value.trim().length),z||!e.target.required||e.target.value.trim().length||le(!0),!z||e.target.required||e.target.value.trim().length||le(void 0))};Object(u.useEffect)((function(){ne(Boolean(X.defaultValue)||Boolean(X.value))}),[X.defaultValue,X.value]),Object(u.useEffect)((function(){le(P)}),[P]);return i.a.createElement(p.a,Object.assign({className:l()(g),css:I,disabled:N,expanded:M,filled:ee,focus:oe,readOnly:V,invalid:se},T),x?i.a.createElement(E.a,{id:B,htmlFor:ce},x):void 0,i.a.createElement(m.a,null,i.a.createElement(A.a,F,O,k&&!Z?i.a.createElement(f.a,null,k):void 0,i.a.createElement(C.a,Object.assign({"aria-describedby":"input-message-help-".concat(ce," input-message-error-").concat(ce),"aria-label":x?void 0:t,"aria-invalid":se,id:ce,disabled:N,onBlur:function(e){re(!1),de(e),"function"===typeof G&&G(e)},onChange:function(e){ne(""!==e.target.value),"boolean"===typeof se&&de(e),J(!0),"function"===typeof w&&w(e)},onFocus:function(e){re(!0),"function"===typeof j&&j(e)},placeholder:Z?k:void 0,readOnly:V,ref:n},X))),H&&"boolean"===typeof se&&!se&&Boolean(s)?i.a.createElement(b.a,{className:l()(Object(a.a)({},"".concat("vds-state","--hidden"),"boolean"===typeof se&&se))},s):void 0,S,c),i.a.createElement(h.a,{id:"input-message-help-".concat(ce),invalid:se,show:!0},!se&&oe&&Y&&Boolean(D)?i.a.createElement(u.Fragment,null,R," ",D):""),i.a.createElement(h.a,{id:"input-message-error-".concat(ce),invalid:se,show:!0},!0===se&&K&&Boolean(L)?i.a.createElement(u.Fragment,null,v," ",L):""))}));T.defaultProps={checkmarkIcon:i.a.createElement(g.a,{name:"checkmark",resolution:"low"}),errorIcon:i.a.createElement(g.a,{name:"error",resolution:"tiny"})},T.displayName="Input",n.a=T},566:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(2),i=t.n(u),s=function(e){var n=e.children,t=e.className,o=Object(a.a)(e,["children","className"]);return r.a.createElement("span",Object.assign({className:i()("vds-input-hint",t)},o),n)};s.displayName="InputHint",n.a=s},567:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(3),i=t(2),s=t.n(i),l=Object(o.forwardRef)((function(e,n){var t=e.className,o=e.role,u=e.type,i=Object(a.a)(e,["className","role","type"]);return r.a.createElement("input",Object.assign({className:s()("vds-input--input-text",t),ref:n,role:o,type:u},i))}));l.propTypes={className:u.string,role:u.string,type:u.string},l.defaultProps={type:"text"},l.displayName="InputText",n.a=l},569:function(e,n,t){"use strict";var a=t(5),o=t(0),r=t.n(o),u=t(2),i=t.n(u),s=function(e){var n=e.children,t=e.className,o=Object(a.a)(e,["children","className"]);return r.a.createElement("div",Object.assign({className:i()("vds-input-input",t)},o),n)};s.displayName="InputInput",n.a=s},579:function(e,n,t){"use strict";t.d(n,"a",(function(){return O})),t.d(n,"b",(function(){return N}));var a={};t.r(a),t.d(a,"ADDRESS_FIELD_OVERRIDES_PROP_TYPE",(function(){return x})),t.d(a,"ADDRESS_MODEL_PROP_TYPE",(function(){return B})),t.d(a,"CONTENT_PROP_TYPE",(function(){return U}));var o={};t.r(o),t.d(o,"UPPERCASE_COUNTRY_SHORTVALUES_STATE_PROVINCE_CODE",(function(){return G})),t.d(o,"UPPERCASE_COUNTRY_SHORTVALUES_POSTAL_CODE",(function(){return w})),t.d(o,"IRELAND_COUNTIES",(function(){return j})),t.d(o,"SPAIN_PROVINCES",(function(){return k})),t.d(o,"COUNTRY_NAMES_TO_CODE_MAPPING",(function(){return V})),t.d(o,"COUNTRY_CODE_TO_NAME_MAPPING",(function(){return H}));var r={};t.r(r),t.d(r,"ADDITIONALLOCATION_FIELD",(function(){return K})),t.d(r,"CITY_FIELD",(function(){return Y})),t.d(r,"COUNTRYCODE_FIELD",(function(){return Z})),t.d(r,"COUNTY_FIELD",(function(){return X})),t.d(r,"LINE1_FIELD",(function(){return W})),t.d(r,"LINE2_FIELD",(function(){return q})),t.d(r,"LINE3_FIELD",(function(){return z})),t.d(r,"NEIGHBORHOOD_FIELD",(function(){return J})),t.d(r,"POINTOFREFERENCE_FIELD",(function(){return $})),t.d(r,"POSTALCODE_FIELD",(function(){return Q})),t.d(r,"STATEPROVINCECODE_FIELD",(function(){return ee})),t.d(r,"STREETNAME_FIELD",(function(){return ne})),t.d(r,"STREETNUMBER_FIELD",(function(){return te})),t.d(r,"FIELD_WHITELIST",(function(){return ae})),t.d(r,"COMMON_FIELD_MASKING_VALUES",(function(){return oe}));var u={};t.r(u),t.d(u,"ADDITIONALLOCATION_DEFAULTS",(function(){return re})),t.d(u,"BRAZIL_TEMPLATE_ADDITIONALLOCATION_DEFAULTS",(function(){return ue})),t.d(u,"MEXICO_TEMPLATE_ADDITIONALLOCATION_DEFAULTS",(function(){return ie}));var i={};t.r(i),t.d(i,"CITY_DEFAULTS",(function(){return se})),t.d(i,"DEFAULT_TEMPLATE_CITY_DEFAULTS",(function(){return le})),t.d(i,"LINE3_TEMPLATE_CITY_DEFAULTS",(function(){return ce})),t.d(i,"POSTALOPTIONAL_TEMPLATE_CITY_DEFAULTS",(function(){return de})),t.d(i,"NOSTATE_TEMPLATE_CITY_DEFAULTS",(function(){return pe})),t.d(i,"HONGKONG_TEMPLATE_CITY_DEFAULTS",(function(){return Ee})),t.d(i,"STREETNAMENUMBER_TEMPLATE_CITY_DEFAULTS",(function(){return me})),t.d(i,"BRAZIL_TEMPLATE_CITY_DEFAULTS",(function(){return fe})),t.d(i,"MEXICO_TEMPLATE_CITY_DEFAULTS",(function(){return Ae}));var s={};t.r(s),t.d(s,"COUNTRYCODE_DEFAULTS",(function(){return Ce})),t.d(s,"DEFAULT_TEMPLATE_COUNTRYCODE_DEFAULTS",(function(){return he}));var l={};t.r(l),t.d(l,"COUNTY_DEFAULTS",(function(){return be})),t.d(l,"MEXICO_TEMPLATE_COUNTY_DEFAULTS",(function(){return ge}));var c={};t.r(c),t.d(c,"LINE1_DEFAULTS",(function(){return Te})),t.d(c,"DEFAULT_TEMPLATE_LINE1_DEFAULTS",(function(){return Se}));var d={};t.r(d),t.d(d,"LINE2_DEFAULTS",(function(){return Oe})),t.d(d,"DEFAULT_TEMPLATE_LINE2_DEFAULTS",(function(){return Ie})),t.d(d,"LINE3_TEMPLATE_LINE2_DEFAULTS",(function(){return Ne})),t.d(d,"POSTALOPTIONAL_TEMPLATE_LINE2_DEFAULTS",(function(){return ve})),t.d(d,"NOSTATE_TEMPLATE_LINE2_DEFAULTS",(function(){return Le})),t.d(d,"HONGKONG_TEMPLATE_LINE2_DEFAULTS",(function(){return Me})),t.d(d,"BRAZIL_TEMPLATE_LINE2_DEFAULTS",(function(){return Re}));var p={};t.r(p),t.d(p,"LINE3_DEFAULTS",(function(){return De})),t.d(p,"LINE3_TEMPLATE_LINE3_DEFAULTS",(function(){return _e})),t.d(p,"BRAZIL_TEMPLATE_LINE3_DEFAULTS",(function(){return ye}));var E={};t.r(E),t.d(E,"NEIGHBORHOOD_DEFAULTS",(function(){return Fe})),t.d(E,"MEXICO_TEMPLATE_NEIGHBORHOOD_DEFAULTS",(function(){return Pe}));var m={};t.r(m),t.d(m,"POINTOFREFERENCE_DEFAULTS",(function(){return xe})),t.d(m,"MEXICO_TEMPLATE_POINTOFREFERENCE_DEFAULTS",(function(){return Be}));var f={};t.r(f),t.d(f,"POSTALCODE_DEFAULTS",(function(){return Ue})),t.d(f,"DEFAULT_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return Ge})),t.d(f,"LINE3_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return we})),t.d(f,"NOSTATE_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return je})),t.d(f,"POSTALOPTIONAL_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return ke})),t.d(f,"STREETNAMENUMBER_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return Ve})),t.d(f,"BRAZIL_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return He})),t.d(f,"MEXICO_TEMPLATE_POSTALCODE_DEFAULTS",(function(){return Ke}));var A={};t.r(A),t.d(A,"STATEPROVINCECODE_DEFAULTS",(function(){return Ye})),t.d(A,"DEFAULT_TEMPLATE_STATEPROVINCECODE_DEFAULTS",(function(){return Ze})),t.d(A,"LINE3_TEMPLATE_STATEPROVINCECODE_DEFAULTS",(function(){return Xe})),t.d(A,"POSTALOPTIONAL_TEMPLATE_STATEPROVINCECODE_DEFAULTS",(function(){return We})),t.d(A,"MEXICO_TEMPLATE_STATEPROVINCECODE_DEFAULTS",(function(){return qe})),t.d(A,"BRAZIL_TEMPLATE_STATEPROVINCECODE_DEFAULTS",(function(){return ze}));var C={};t.r(C),t.d(C,"STREETNAME_DEFAULTS",(function(){return Je})),t.d(C,"STREETNAMENUMBER_TEMPLATE_STREETNAME_DEFAULTS",(function(){return $e})),t.d(C,"BRAZIL_TEMPLATE_STREETNAME_DEFAULTS",(function(){return Qe})),t.d(C,"MEXICO_TEMPLATE_STREETNAME_DEFAULTS",(function(){return en}));var h={};t.r(h),t.d(h,"STREETNUMBER_DEFAULTS",(function(){return nn})),t.d(h,"STREETNAMENUMBER_TEMPLATE_STREETNUMBER_DEFAULTS",(function(){return tn})),t.d(h,"BRAZIL_TEMPLATE_STREETNUMBER_DEFAULTS",(function(){return an})),t.d(h,"MEXICO_TEMPLATE_STREETNUMBER_DEFAULTS",(function(){return on}));var b={};t.r(b),t.d(b,"additionalLocationDefaults",(function(){return u})),t.d(b,"cityDefaults",(function(){return i})),t.d(b,"countryCodeDefaults",(function(){return s})),t.d(b,"countyDefaults",(function(){return l})),t.d(b,"line1Defaults",(function(){return c})),t.d(b,"line2Defaults",(function(){return d})),t.d(b,"line3Defaults",(function(){return p})),t.d(b,"neighborhoodDefaults",(function(){return E})),t.d(b,"pointOfReferenceDefaults",(function(){return m})),t.d(b,"postalCodeDefaults",(function(){return f})),t.d(b,"stateProvinceCodeDefaults",(function(){return A})),t.d(b,"streetNameDefaults",(function(){return C})),t.d(b,"streetNumberDefaults",(function(){return h}));var g={};t.r(g),t.d(g,"COUNTRIES_WITHOUT_LINE1",(function(){return rn})),t.d(g,"GOOGLE_ADDRESS_SUGGEST_DISABLED_COUNTRY_CODES",(function(){return un})),t.d(g,"GOOGLE_ADDRESS_SUGGESTION_SHORT_NAME_FIELDS",(function(){return sn})),t.d(g,"SHORTENED_SELECTED_ITEM_VALUE_CHAR",(function(){return ln}));var T={};t.r(T),t.d(T,"DEFAULT_TEMPLATE",(function(){return pn})),t.d(T,"LINE3_TEMPLATE",(function(){return En})),t.d(T,"POSTALOPTIONAL_TEMPLATE",(function(){return mn})),t.d(T,"NOSTATE_TEMPLATE",(function(){return fn})),t.d(T,"STREETNAMENUMBER_TEMPLATE",(function(){return An})),t.d(T,"HONGKONG_TEMPLATE",(function(){return Cn})),t.d(T,"BRAZIL_TEMPLATE",(function(){return hn})),t.d(T,"MEXICO_TEMPLATE",(function(){return bn}));var S={};t.r(S),t.d(S,"ADDITIONALLOCATION_REG_EXP",(function(){return gn})),t.d(S,"ALPHA_NUMERIC_REG_EXP",(function(){return Tn})),t.d(S,"CITY_REG_EXP",(function(){return Sn})),t.d(S,"CITY_FEWER_SPECIAL_CHARS_REG_EXP",(function(){return On})),t.d(S,"COUNTY_REG_EXP",(function(){return In})),t.d(S,"LINE_REG_EXP",(function(){return Nn})),t.d(S,"NEIGHBORHOOD_REG_EXP",(function(){return vn})),t.d(S,"POINTOFREFERENCE_REG_EXP",(function(){return Ln})),t.d(S,"POSTALCODE_REG_EXP",(function(){return Mn})),t.d(S,"POSTALCODE_NO_HYPHEN_REG_EXP",(function(){return Rn})),t.d(S,"STATEPROVINCECODE_REG_EXP",(function(){return Dn})),t.d(S,"STREETNAME_REG_EXP",(function(){return _n})),t.d(S,"STREETNUMBER_REG_EXP",(function(){return yn})),t.d(S,"STRIPPED_SPECIAL_CHARS_REG_EXP",(function(){return Fn})),t.d(S,"AU_STATEPROVINCECODE_REG_EXP",(function(){return Pn})),t.d(S,"CA_POSTALCODE_REG_EXP",(function(){return xn})),t.d(S,"CA_STATEPROVINCECODE_REG_EXP",(function(){return Bn})),t.d(S,"CN_POSTALCODE_REG_EXP",(function(){return Un})),t.d(S,"BR_ADDITIONALLOCATION_REG_EXP",(function(){return Gn})),t.d(S,"BR_LINE3_REG_EXP",(function(){return wn})),t.d(S,"BR_POSTALCODE_REG_EXP",(function(){return jn})),t.d(S,"BR_STATEPROVINCECODE_REG_EXP",(function(){return kn})),t.d(S,"IN_POSTALCODE_REG_EXP",(function(){return Vn})),t.d(S,"MX_CITY_REG_EXP",(function(){return Hn})),t.d(S,"MX_COUNTY_REG_EXP",(function(){return Kn})),t.d(S,"MX_STREETNUMBER_REG_EXP",(function(){return Yn})),t.d(S,"MX_ADDITIONALLOCATION_REG_EXP",(function(){return Zn})),t.d(S,"MX_NEIGHBORHOOD_REG_EXP",(function(){return Xn})),t.d(S,"MX_POINTOFREFERENCE_REG_EXP",(function(){return Wn})),t.d(S,"MX_POSTALCODE_REG_EXP",(function(){return qn})),t.d(S,"MX_STATEPROVINCECODE_REG_EXP",(function(){return zn})),t.d(S,"MX_STREETNAME_REG_EXP",(function(){return Jn})),t.d(S,"PL_POSTALCODE_REG_EXP",(function(){return $n})),t.d(S,"US_STATEPROVINCECODE_REG_EXP",(function(){return Qn}));var O={};t.r(O),t.d(O,"addressPropTypes",(function(){return a})),t.d(O,"enums",(function(){return o})),t.d(O,"fieldDefaults",(function(){return b})),t.d(O,"fieldNamesAndMasks",(function(){return r})),t.d(O,"googleAddressSuggestConstants",(function(){return g})),t.d(O,"templates",(function(){return T})),t.d(O,"validationRegex",(function(){return S}));var I={};t.r(I),t.d(I,"getConvertedAddress",(function(){return tt})),t.d(I,"getGoogleAddressSuggestionMapping",(function(){return at})),t.d(I,"loadStateProvinceCodeFromPostalCode",(function(){return ut})),t.d(I,"loadGoogleAddressScript",(function(){return ot}));var N={};t.r(N),t.d(N,"findSelectedComboboxItem",(function(){return et})),t.d(N,"getTemplateDefaults",(function(){return nt})),t.d(N,"googleAddressUtils",(function(){return I})),t.d(N,"isCompleteBrazilCEP",(function(){return st})),t.d(N,"mergeDefaultsOverrides",(function(){return ct}));var v,L,M,R,D,_,y,F,P=t(3),x=Object(P.shape)({additionalHtmlProps:Object(P.shape)({}),autoComplete:P.string,comboboxOptions:Object(P.shape)({comboboxItems:Object(P.arrayOf)(Object(P.shape)({shortValue:P.string,value:P.string.isRequired})).isRequired,onComboboxSelect:P.func,renderComboboxOption:P.func.isRequired,selectedItem:Object(P.shape)({value:P.string.isRequired})}),defaultValue:P.string,fieldOrder:Object(P.arrayOf)(P.string),hasMask:P.bool,id:P.string,mask:Object(P.arrayOf)(Object(P.oneOfType)([Object(P.instanceOf)(RegExp),P.string])),maxLength:P.num,name:P.string,readOnly:P.bool,renderAsCombobox:P.bool,required:P.bool,shouldRenderField:P.bool,shouldShowInputMasking:P.bool,shouldSplitField:P.bool,shouldUpperCaseValue:P.bool,splitFieldWidth:Object(P.oneOf)(["thirty","forty","fifty","sixty","seventy"]),value:P.string}),B=Object(P.shape)({additionalLocation:P.string,city:P.string,countryCode:P.string,county:P.string,line1:P.string,line2:P.string,line3:P.string,neighborhood:P.string,pointOfReference:P.string,postalCode:P.string,stateProvinceCode:P.string,streetName:P.string,streetNumber:P.string}),U=Object(P.shape)({additionalLocation:Object(P.shape)({label:P.string,placeholder:P.string}),city:Object(P.shape)({label:P.string,placeholder:P.string}),countryCode:Object(P.shape)({label:P.string,placeholder:P.string}),county:Object(P.shape)({label:P.string,placeholder:P.string}),line1:Object(P.shape)({label:P.string,placeholder:P.string}),line2:Object(P.shape)({label:P.string,placeholder:P.string}),line3:Object(P.shape)({label:P.string,placeholder:P.string}),neighborhood:Object(P.shape)({label:P.string,placeholder:P.string}),pointOfReference:Object(P.shape)({label:P.string,placeholder:P.string}),postalCode:Object(P.shape)({label:P.string,placeholder:P.string}),stateProvinceCode:Object(P.shape)({label:P.string,placeholder:P.string}),streetName:Object(P.shape)({label:P.string,placeholder:P.string}),streetNumber:Object(P.shape)({label:P.string,placeholder:P.string})}),G=["AU","CA","BR","US"],w=["CA"],j=["Carlow","Cavan","Clare","Cork","Donegal","Dublin","Galway","Kerry","Kildare","Kilkenny","Laois","Leitrim","Limerick","Longford","Louth","Mayo","Meath","Monaghan","Offaly","Roscommon","Sligo","Tipperary","Waterford","Westmeath","Wexford","Wicklow"],k=["\xc1lava","Albacete","Alicante","Almer\xeda","Asturias","\xc1vila","Badajoz","Baleares","Barcelona","Burgos","C\xe1ceres","C\xe1diz","Cantabria","Castell\xf3n","Ceuta","Ciudad Real","C\xf3rdoba","La Coru\xf1a","Cuenca","Girona","Granada","Guadalajara","Guip\xfazcoa","Huelva","Huesca","Ja\xe9n","Le\xf3n","Lleida","Lugo","Madrid","M\xe1laga","Melilla","Murcia","Navarra","Orense","Palencia","Las Palmas","Pontevedra","La Rioja","Salamanca","Santa Cruz de Tenerife","Segovia","Sevilla","Soria","Tarragona","Teruel","Toledo","Valencia","Valladolid","Vizcaya","Zamora","Zaragoza"],V={AFGHANISTAN:"AF",ALBANIA:"AL",ALGERIA:"DZ",AMERICANSAMOA:"AS",ANDORRA:"AD",ANGOLA:"AO",ANGUILLA:"AI",ANTIGUAANDBARBUDA:"AG",ARGENTINA:"AR",ARMENIA:"AM",ARUBA:"AW",AUSTRALIA:"AU",AUSTRIA:"AT",AZERBAIJAN:"AZ",BAHAMAS:"BS",BAHRAIN:"BH",BANGLADESH:"BD",BARBADOS:"BB",BELARUS:"BY",BELGIUM:"BE",BELIZE:"BZ",BENIN:"BJ",BERMUDA:"BM",BHUTAN:"BT",BOLIVIA:"BO",BOSNIAANDHERZEGOVINA:"BA",BOTSWANA:"BW",BRAZIL:"BR",BRITISHINDIANOCEANTERRITORY:"IO",BRITISHVIRGINISLANDS:"VG",BRUNEI:"BN",BULGARIA:"BG",BURKINAFASO:"BF",BURUNDI:"BI",CAMBODIA:"KH",CAMEROON:"CM",CANADA:"CA",CAPEVERDE:"CV",CARIBBEANNETHERLANDS:"BQ",CAYMANISLANDS:"KY",CENTRALAFRICANREPUBLIC:"CF",CHAD:"TD",CHILE:"CL",CHINA:"CN",COLOMBIA:"CO",COMOROS:"KM",CONGODRC:"CD",CONGOREPUBLIC:"CG",COOKISLANDS:"CK",COSTARICA:"CR","C\xd4TEDIVOIRE":"CI",CROATIA:"HR",CUBA:"CU","CURA\xc7AO":"CW",CYPRUS:"CY",CZECHREPUBLIC:"CZ",DENMARK:"DK",DJIBOUTI:"DJ",DOMINICA:"DM",DOMINICANREPUBLIC:"DO",ECUADOR:"EC",EGYPT:"EG",ELSALVADOR:"SV",EQUATORIALGUINEA:"GQ",ERITREA:"ER",ESTONIA:"EE",ETHIOPIA:"ET",FALKLANDISLANDS:"FK",FAROEISLANDS:"FO",FIJI:"FJ",FINLAND:"FI",FRANCE:"FR",FRENCHGUIANA:"GF",FRENCHPOLYNESIA:"PF",GABON:"GA",GAMBIA:"GM",GEORGIA:"GE",GERMANY:"DE",GHANA:"GH",GIBRALTAR:"GI",GREECE:"GR",GREENLAND:"GL",GRENADA:"GD",GUADELOUPE:"GP",GUAM:"GU",GUATEMALA:"GT",GUINEA:"GN",GUINEABISSAU:"GW",GUYANA:"GY",HAITI:"HT",HONDURAS:"HN",HONGKONG:"HK",HUNGARY:"HU",ICELAND:"IS",INDIA:"IN",INDONESIA:"ID",IRAN:"IR",IRAQ:"IQ",IRELAND:"IE",ISRAEL:"IL",ITALY:"IT",JAMAICA:"JM",JAPAN:"JP",JORDAN:"JO",KAZAKHSTAN:"KZ",KENYA:"KE",KIRIBATI:"KI",KUWAIT:"KW",KYRGYZSTAN:"KG",LAOS:"LA",LATVIA:"LV",LEBANON:"LB",LESOTHO:"LS",LIBERIA:"LR",LIBYA:"LY",LIECHTENSTEIN:"LI",LITHUANIA:"LT",LUXEMBOURG:"LU",MACAU:"MO",MACEDONIA:"MK",MADAGASCAR:"MG",MALAWI:"MW",MALAYSIA:"MY",MALDIVES:"MV",MALI:"ML",MALTA:"MT",MARSHALLISLANDS:"MH",MARTINIQUE:"MQ",MAURITANIA:"MR",MAURITIUS:"MU",MEXICO:"MX",MICRONESIA:"FM",MOLDOVA:"MD",MONACO:"MC",MONGOLIA:"MN",MONTENEGRO:"ME",MONTSERRAT:"MS",MOROCCO:"MA",MOZAMBIQUE:"MZ",MYANMAR:"MM",NAMIBIA:"NA",NAURU:"NR",NEPAL:"NP",NETHERLANDS:"NL",NEWCALEDONIA:"NC",NEWZEALAND:"NZ",NICARAGUA:"NI",NIGER:"NE",NIGERIA:"NG",NIUE:"NU",NORFOLKISLAND:"NF",NORTHKOREAK:"KP",NORTHERNMARIANAISLANDS:"MP",NORWAY:"NO",OMAN:"OM",PAKISTAN:"PK",PALAU:"PW",PALESTINE:"PS",PANAMA:"PA",PAPUANEWGUINEA:"PG",PARAGUAY:"PY",PERU:"PE",PHILIPPINES:"PH",POLAND:"PL",PORTUGAL:"PT",PUERTORICO:"PR",QATAR:"QA","R\xc9UNION":"RE",ROMANIA:"RO",RUSSIA:"RU",RWANDA:"RW","SAINTBARTH\xc9LEMY":"BL",SAINTHELENA:"SH",SAINTKITTSANDNEVIS:"KN",SAINTLUCIA:"LC",SAINTMARTIN:"MF",SAINTPIERREANDMIQUELON:"PM",SAINTVINCENTANDTHEGRENADINES:"VC",SAMOA:"WS",SANMARINO:"SM","S\xc3OTOM\xc9ANDPR\xcdNCIPE":"ST",SAUDIARABIA:"SA",SENEGAL:"SN",SERBIA:"RS",SEYCHELLES:"SC",SIERRALEONE:"SL",SINGAPORE:"SG",SINTMAARTEN:"SX",SLOVAKIA:"SK",SLOVENIA:"SI",SOLOMONISLANDS:"SB",SOMALIA:"SO",SOUTHAFRICA:"ZA",SOUTHKOREA:"KR",SOUTHSUDAN:"SS",SPAIN:"ES",SRILANKA:"LK",SUDAN:"SD",SURIVALUE:"SR",SWAZILAND:"SZ",SWEDEN:"SE",SWITZERLAND:"CH",SYRIA:"SY",TAIWAN:"TW",TAJIKISTAN:"TJ",TANZANIA:"TZ",THAILAND:"TH",TIMORLESTE:"TL",TOGO:"TG",TOKELAU:"TK",TONGA:"TO",TRINIDADANDTOBAGO:"TT",TUNISIA:"TN",TURKEY:"TR",TURKMENISTAN:"TM",TURKSANDCAICOSISLANDS:"TC",TUVALU:"TV",USVIRGINISLANDS:"VI",UGANDA:"UG",UKRAINE:"UA",UNITEDARABEMIRATES:"AE",UNITEDKINGDOM:"GB",UNITEDSTATES:"US",URUGUAY:"UY",UZBEKISTAN:"UZ",VANUATU:"VU",VATICANCITY:"VA",VENEZUELA:"VE",VIETNAM:"VN",WALLISANDFUTUNA:"WF",YEMEN:"YE",ZAMBIA:"ZM",ZIMBABWE:"ZW"},H={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",BQ:"Caribbean Netherlands",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CO:"Colombia",KM:"Comoros",CD:"Congo (DRC)",CG:"Congo (Republic)",CK:"Cook Islands",CR:"Costa Rica",CI:"C\xf4te d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Cura\xe7ao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macau",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"R\xe9union",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barth\xe9lemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"S\xe3o Tom\xe9 and Pr\xedncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Surivalue",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},K="additionalLocation",Y="city",Z="countryCode",X="county",W="line1",q="line2",z="line3",J="neighborhood",$="pointOfReference",Q="postalCode",ee="stateProvinceCode",ne="streetName",te="streetNumber",ae=[K,Y,Z,X,W,q,z,J,$,Q,ee,ne,te],oe={AU:{postalCode:[/\d/,/\d/,/\d/,/\d/],stateProvinceCode:[/\d/,/\d/,/\d/,/\d/]},BR:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/],stateProvinceCode:[/[a-zA-Z]/,/[a-zA-Z]/]},CA:{postalCode:[/[a-zA-Z]/,/\d/,/[a-zA-Z]/," ",/\d/,/[a-zA-Z]/,/\d/],stateProvinceCode:[/[a-zA-Z]/,/[a-zA-Z]/]},CN:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/]},ES:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/]},FR:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/]},IN:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/]},MX:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/]},NZ:{postalCode:[/\d/,/\d/,/\d/,/\d/]},PL:{postalCode:[/\d/,/\d/,"-",/\d/,/\d/,/\d/]},US:{postalCode:[/\d/,/\d/,/\d/,/\d/,/\d/],stateProvinceCode:[/[a-zA-Z]/,/[a-zA-Z]/]}},re={hasMask:!1,id:K,maxLength:140,name:K,readOnly:!1,renderAsCombobox:!1,required:!1,shouldShowInputMasking:!1,shouldSplitField:!0},ue=re,ie={hasMask:!1,id:K,maxLength:10,name:K,readOnly:!1,renderAsCombobox:!1,required:!1,shouldShowInputMasking:!1,shouldSplitField:!1},se={autoComplete:"address-level2",hasMask:!1,id:Y,maxLength:100,name:Y,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},le=se,ce=se,de=se,pe=se,Ee=se,me={autoComplete:"address-level2",hasMask:!1,id:Y,maxLength:100,name:Y,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!0},fe=me,Ae={autoComplete:"address-level2",hasMask:!1,id:Y,maxLength:30,name:Y,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},Ce={hasMask:!1,id:Z,maxLength:140,name:Z,readOnly:!1,renderAsCombobox:!0,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},he=Ce,be={hasMask:!1,id:X,maxLength:30,name:X,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},ge=be,Te={autoComplete:"address-line1",hasMask:!1,id:W,maxLength:140,name:W,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},Se=Te,Oe={autoComplete:"address-line2",hasMask:!1,id:q,maxLength:140,name:q,readOnly:!1,renderAsCombobox:!1,required:!1,shouldShowInputMasking:!1,shouldSplitField:!1},Ie=Oe,Ne=Oe,ve=Oe,Le=Oe,Me=Oe,Re={autoComplete:"address-line2",hasMask:!1,id:q,maxLength:140,name:q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!0},De={autoComplete:"address-line3",hasMask:!1,id:z,maxLength:100,name:z,readOnly:!1,renderAsCombobox:!1,required:!1,shouldShowInputMasking:!1,shouldSplitField:!1},_e=De,ye=_e,Fe={hasMask:!1,id:J,maxLength:69,name:J,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},Pe=Fe,xe={hasMask:!1,id:$,maxLength:140,name:$,readOnly:!1,renderAsCombobox:!1,required:!1,shouldShowInputMasking:!1,shouldSplitField:!1},Be=xe,Ue={autoComplete:"postal-code",hasMask:!1,id:Q,name:Q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!0},Ge=Ue,we={autoComplete:"postal-code",hasMask:!1,id:Q,name:Q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},je={autoComplete:"postal-code",hasMask:!1,id:Q,name:Q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},ke={autoComplete:"postal-code",hasMask:!1,id:Q,mask:null,maxLength:16,name:Q,readOnly:!1,renderAsCombobox:!1,required:!1,shouldShowInputMasking:!1,shouldSplitField:!1},Ve={autoComplete:"postal-code",hasMask:!1,id:Q,mask:null,maxLength:6,name:Q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!0},He={autoComplete:"postal-code",hasMask:!1,id:Q,mask:null,maxLength:11,name:Q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},Ke={autoComplete:"postal-code",hasMask:!1,id:Q,mask:null,maxLength:5,name:Q,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},Ye={autoComplete:"address-level1",hasMask:!1,id:ee,name:ee,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!0},Ze=Ye,Xe={autoComplete:"address-level1",hasMask:!1,id:ee,mask:null,name:ee,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},We={autoComplete:"address-level1",hasMask:!1,id:ee,mask:null,maxLength:100,name:ee,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},qe=We,ze={autoComplete:"address-level1",hasMask:!1,id:ee,mask:null,maxLength:2,name:ee,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!0},Je={hasMask:!1,id:ne,maxLength:140,name:ne,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},$e=Je,Qe=Je,en={hasMask:!1,id:ne,maxLength:116,name:ne,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},nn={hasMask:!1,id:te,maxLength:140,name:te,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},tn=nn,an={hasMask:!1,id:te,maxLength:15,name:te,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},on={hasMask:!1,id:te,maxLength:10,name:te,readOnly:!1,renderAsCombobox:!1,required:!0,shouldShowInputMasking:!1,shouldSplitField:!1},rn=["BR","MX","PL"],un=["BR","CN","ES","KW","MX","QA","SA","UA"],sn=["administrative_area_level_1"],ln=",",cn=t(618),dn=t.n(cn),pn={defaults:(v={},dn()(v,Y,le),dn()(v,Z,he),dn()(v,W,Se),dn()(v,q,Ie),dn()(v,Q,Ge),dn()(v,ee,Ze),v),fields:[Z,W,q,Y,ee,Q]},En={defaults:(L={},dn()(L,Y,ce),dn()(L,Z,he),dn()(L,W,Se),dn()(L,q,Ne),dn()(L,z,_e),dn()(L,Q,we),dn()(L,ee,Xe),L),fields:[Z,W,q,z,Y,ee,Q]},mn={defaults:(M={},dn()(M,Y,de),dn()(M,Z,he),dn()(M,W,Se),dn()(M,q,ve),dn()(M,Q,ke),dn()(M,ee,We),M),fields:[Z,W,q,Y,ee,Q]},fn={defaults:(R={},dn()(R,Y,pe),dn()(R,Z,he),dn()(R,W,Se),dn()(R,q,Le),dn()(R,Q,je),R),fields:[Z,W,q,Y,Q]},An={defaults:(D={},dn()(D,Y,me),dn()(D,Z,he),dn()(D,Q,Ve),dn()(D,ne,$e),dn()(D,te,tn),D),fields:[Z,ne,te,Q,Y]},Cn={defaults:(_={},dn()(_,Y,Ee),dn()(_,Z,he),dn()(_,W,Se),dn()(_,q,Me),_),fields:[Z,W,q,Y]},hn={defaults:(y={},dn()(y,K,ue),dn()(y,Y,fe),dn()(y,Z,he),dn()(y,q,Re),dn()(y,z,ye),dn()(y,Q,He),dn()(y,ee,ze),dn()(y,ne,Qe),dn()(y,te,an),y),fields:[Z,Q,ne,te,K,q,z,Y,ee]},bn={defaults:(F={},dn()(F,K,ie),dn()(F,Y,Ae),dn()(F,Z,he),dn()(F,X,ge),dn()(F,J,Pe),dn()(F,$,Be),dn()(F,Q,Ke),dn()(F,ee,qe),dn()(F,ne,en),dn()(F,te,on),F),fields:[Z,ne,te,K,Q,J,X,Y,ee,$]},gn=/^[0-9a-z\s\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u017F \-_\.#,':\/()\xb0\xba]*$/i,Tn=/^[a-z0-9]+$/i,Sn=/^[0-9a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u017F \-'\.,:\/()]*$/i,On=/^[0-9a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u017F \-'\.]*$/i,In=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:_#/()\s]*$/i,Nn=/^[0-9a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u017F \-_\.#,':\xb0\xba\xaa\/()]*$/i,vn=/^[A-Z0-9.\-',:_#/()\s\xb0\xba\xaa]*$/i,Ln=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:/()\s\xb0\xba\xaa]*$/i,Mn=/^[0-9a-z\-\s]*$/i,Rn=/^[0-9a-z\s]*$/i,Dn=/^[a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u017F \-'\.]*$/i,_n=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:_#/()\s\xb0\xba\xaa]*$/i,yn=/^[A-Z0-9.\-',:_#/()\s\xb0\xba\xaa]*$/i,Fn=/[()\s-'\.]*/gi,Pn=/^(?:ACT|NSW|NT|QLD|SA|TAS|VIC|WA)$/i,xn=/^\s*([ABCEFGHJKLMNPRSTVXY][0-9][ABCEFGHJKLMNPRSTVWXYZ][\s]?[0-9][ABCEFGHJKLMNPRSTVWXYZ][0-9])\s*$/i,Bn=/^(?:AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT)$/i,Un=/^\s*([0-9]{6})\s*$/i,Gn=/^[0-9a-z\s\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u017F \-_\.#,':\/()\xb0\xba]*$/i,wn=Gn,jn=/^\s*([0-9]{5}[\s]?[\-]?[\s]?[0-9]{3})\s*$/i,kn=/^(?:AC|AL|AP|AM|BA|CE|DF|ES|GO|MA|MT|MS|MG|PA|PB|PR|PE|PI|RJ|RN|RS|RO|RR|SC|SP|SE|TO)$/i,Vn=/^[1-9][0-9]{5}$/,Hn=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:/()\s]*$/i,Kn=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:_#/()\s]*$/i,Yn=/^[A-Z0-9.\-',:_#/()\s\xb0\xba\xaa]*$/i,Zn=Yn,Xn=Kn,Wn=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:/()\s\xb0\xba\xaa]*$/i,qn=/^[0-9]{5}$/,zn=/^[A-Z\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C\s]*$/i,Jn=/^[A-Z0-9\u00C1\u00E1\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C9\u00E9\u00C8\u00E8\u00CD\u00ED\u00D1\u00F1\u00D3\u00F3\u00DA\00FA\u00DC\u00FC\u00C0\u00E0\u00C2\u00E2\u00C4\u00E4\u00C3\u00E3\u00C7\u00E7\u00C8\u00E8\u00CA\u00EA\u00CB\u00EB\u00CE\u00EE\u00CF\u00EF\u00D4\u00F4\u00D5\u00F5\u0152\u0153\u00D9\u00F9\u00DB\u00FB\u0178\u00FF\u00C6\u00E6\u0104\u0105\u0106\u0107\u0118\u0119\u0141\u0142\u0143\u0144\u015A\u015B\u0179\u017A\u017B\u017C.\-',:_#/()\s\xb0\xba\xaa]*$/i,$n=/^[0-9]{2}\-[0-9]{3}$/i,Qn=/^(?:AL|AK|AS|AZ|AR|CA|CO|CT|DE|DC|FM|FL|GA|GU|HI|ID|IL|IN|IA|KS|KY|LA|ME|MH|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|MP|OH|OK|OR|PW|PA|PR|RI|SC|SD|TN|TX|UT|VT|VI|VA|WA|WV|WI|WY|AE|AP|AA)$/i,et=function(e,n){return e.find((function(e){return e.value===n}))},nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("custom"===e)try{if(n&&n.length){var t={defaults:{},fields:n};n.map((function(e){return r["".concat(e.toUpperCase(),"_FIELD")]})).forEach((function(e){t.defaults[e]=b["".concat(e,"Defaults")]["".concat(e.toUpperCase(),"_DEFAULTS")]}));var a=t&&JSON.parse(JSON.stringify(t));return a}}catch(i){throw new Error("You are using the custom address template but are not passing an array of supported fields.")}try{var o=T["".concat(e.toUpperCase(),"_TEMPLATE")],u=o&&JSON.parse(JSON.stringify(o));return u}catch(s){throw new Error("You are using an invalid template name.")}},tt=function(e){var n=e.components,t=e.mapping,a=e.shortNameFields,o={};return n.forEach((function(e){var n=!0,r=!1,u=void 0;try{for(var i,s=e.types[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var l=i.value;if(t[l]){var c=void 0;c=a.includes(l)?e.short_name:e.long_name;var d=t[l];o[d]=c}}}catch(p){r=!0,u=p}finally{try{n||null==s.return||s.return()}finally{if(r)throw u}}})),o.line1&&o.line2&&(o.line1+=" ".concat(o.line2),delete o.line2),o},at=function(e){var n={administrative_area_level_1:"stateProvinceCode",country:"countryCode",locality:"city",postal_code:"postalCode",route:"line2",street_number:"line1"};switch(e){case"brazil":n={administrative_area_level_1:"stateProvinceCode",administrative_area_level_2:"city",country:"countryCode",postalCode:"postalCode",route:"streetName",street_number:"streetNumber",sublocality_level_1:"line2"};break;case"hongKong":n={country:"countryCode",neighborhood:"city",route:"line2",street_number:"line1"};break;case"mexico":n={administrative_area_level_1:"stateProvinceCode",locality:"city",postal_code:"postalCode",route:"streetName",street_number:"streetNumber",sublocality_level_1:"neighborhood"};break;case"noState":n={country:"countryCode",locality:"city",postal_code:"postalCode",route:"line2",street_number:"line1"};break;case"streetNameNumber":n={country:"countryCode",locality:"city",postal_code:"postalCode",route:"streetName",street_number:"streetNumber"}}return n},ot=function(e){if("undefined"===typeof window.google&&null===document.getElementById("googleMapsAPIScript")){var n=document.createElement("script");n.id="googleMapsAPIScript",n.async="true",n.src="https://maps.googleapis.com/maps/api/js?key=".concat(e,"&libraries=places"),document.querySelector("body").appendChild(n)}},rt={},ut=function(e,n){return new Promise((function(t){var a=e+n,o=rt[a];if(o)t(o);else{var r;try{r=new window.google.maps.Geocoder}catch(u){return void t(null)}r.geocode({componentRestrictions:{country:e,postalCode:n}},(function(n,o){try{var r=n&&n[0];if(o===window.google.maps.GeocoderStatus.OK&&r.address_components.length>=2){var i=r.address_components.length,s=i-2,l=r.address_components[s],c=i-1,d=r.address_components[c];l&&d.short_name.toUpperCase()===e.toUpperCase()&&(rt[a]=l.long_name,t(l.long_name))}}catch(u){console.warn("Unable to load the stateProvinceCode from the provided postalCode.")}t(null)}))}}))},it=S.BR_POSTALCODE_REG_EXP,st=function(e){return it.test(e.toString().replace(/[\D\s]*/g,"").substring(0,8))},lt=t(731),ct=function(e,n){return Object(lt.merge)(e,n)}},582:function(e,n,t){"use strict";t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o})),t.d(n,"b",(function(){return r}));var a=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,a=Number((new Date).getFullYear().toString().substr(-2)),o=(new Date).getMonth()+1,r=a+t-1;if(!e)return!0;var u=Number(e),i=Number(n);return!(Number(n)===a&&u<o)&&(!(i===r&&u>o)&&!(i>r))},o=function(){return["01","02","03","04","05","06","07","08","09","10","11","12"]},r=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,n=Number((new Date).getFullYear().toString().substr(-2)),t=n+e-1,a=[];n<=t;)a.push("".concat(n)),n++;return a};t(597)},591:function(e,n,t){"use strict";t.d(n,"a",(function(){return a})),t.d(n,"b",(function(){return o}));var a={};t.r(a),t.d(a,"COMPONENT_CLASSNAME",(function(){return r})),t.d(a,"COMPONENT_WRAPPER_CLASSNAME",(function(){return u})),t.d(a,"INDICATOR_CLASSNAME",(function(){return i})),t.d(a,"INDICATOR_WRAPPER_CLASSNAME",(function(){return s})),t.d(a,"LENGTH_AMEX",(function(){return l})),t.d(a,"LENGTH_DEFAULT",(function(){return c})),t.d(a,"FIVE_DIGITS",(function(){return d})),t.d(a,"FOUR_DIGITS",(function(){return p})),t.d(a,"SIX_DIGITS",(function(){return E})),t.d(a,"AMEX_MASK",(function(){return m})),t.d(a,"NON_AMEX_MASK",(function(){return f})),t.d(a,"AMEX",(function(){return A})),t.d(a,"DISCOVER",(function(){return C})),t.d(a,"ELECTRON",(function(){return h})),t.d(a,"ELO",(function(){return b})),t.d(a,"INVALID",(function(){return g})),t.d(a,"MASTERCARD",(function(){return T})),t.d(a,"UNKNOWN",(function(){return S})),t.d(a,"VISA",(function(){return O})),t.d(a,"EMPTY",(function(){return I})),t.d(a,"INVALID_BIN",(function(){return N})),t.d(a,"INVALID_BIN_BRAND",(function(){return v})),t.d(a,"INVALID_GENERIC",(function(){return L})),t.d(a,"NOT_SUPPORTED",(function(){return M})),t.d(a,"PARTIAL",(function(){return R})),t.d(a,"ERROR_MAP",(function(){return D}));var o={};t.r(o),t.d(o,"acceptedBrandsCheck",(function(){return P})),t.d(o,"binCheck",(function(){return w})),t.d(o,"binMatrix",(function(){return F})),t.d(o,"brandMatrix",(function(){return y})),t.d(o,"brands",(function(){return _})),t.d(o,"checkMod",(function(){return H})),t.d(o,"getBrandClassName",(function(){return k})),t.d(o,"getCardInfo",(function(){return K})),t.d(o,"getMask",(function(){return Y})),t.d(o,"getRawValue",(function(){return x})),t.d(o,"filterAcceptedBrands",(function(){return j})),t.d(o,"possibleBrand",(function(){return B})),t.d(o,"validator",(function(){return Z}));var r="vds-input-card",u="vds-cardnumber",i="vds-card-indicator",s="vds-input-option",l=17,c=19,d=[/\d/,/\d/,/\d/,/\d/,/\d/],p=[/\d/,/\d/,/\d/,/\d/],E=[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],m=[].concat(p,[" "],E,[" "],d),f=[].concat(p,[" "],p,[" "],p,[" "],p),A="AMEX",C="DISCOVER",h="ELECTRON",b="ELO",g="INVALID",T="MASTERCARD",S="UNKNOWN",O="VISA",I="EMPTY",N="INVALID_BIN",v="INVALID_BIN_BRAND",L="INVALID_GENERIC",M="NOT_SUPPORTED",R="PARTIAL",D={empty:I,invalid_bin:N,invalid_bin_brand:v,invalid_generic:L,not_supported:M,partial:R},_=[A,C,b,T,O],y={2:T,3:A,4:O,5:T,6:C},F={AMEX:["34","37"],DISCOVER:{fourDigits:["6011"],ranges:{4:{max:6229,min:6221},5:{max:62292,min:62212},6:{max:622925,min:622126},7:{max:6229259,min:6221260},8:{max:62292599,min:62212600}},twoOrThreeDigits:["60","62","65","601","622"]},MASTERCARD:{ranges:{1:{max:2,min:2},2:{max:27,min:22},3:{max:272,min:222},4:{max:2720,min:2221},5:{max:27209,min:22210},6:{max:272099,min:222100}},twoDigits:["51","52","53","54","55"]},VISA:["4"]},P=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,t=n.length,a=!1;if(e===S)return!0;for(var o=0;o<t;o++)if(n[o]===e){a=!0;break}return a},x=function(e){return e.toString().replace(/\s+/g,"")},B=function(e,n){var t=S;if(!e.length)return t;var a=e[0];return t=(t=y[a]||g)===g?g:function(e,n,t){if(t&&t.length>0)for(var a=0;a<t.length;a++){if(0===e.indexOf(t[a].toString()))return b;if(0===t[a].toString().indexOf(e))return S}return n}(e,t,n)},U=function(e,n){for(var t=n.length,a=!1,o=0;o<t;o++)if(e===n[o]){a=!0;break}return a},G=function(e,n){var t,a,o,r=1===n.length,u=!1;switch(e){case b:case S:case O:u=!0;break;case A:var i=n.length;o=n.substr(0,2),t=F[e],u=1===i||U(o,t);break;case T:a=n[0],o=n.substr(0,2),r?u=!0:"5"===a?(t=F[e].twoDigits,u=U(o,t)):u=function(e){var n=e.length<7?e:e.substr(0,6),t=n.length,a=F[T].ranges[t];return a.min<=Number(n)&&Number(n)<=a.max}(n);break;case C:u=function(e){var n,t,a,o=e.length<4;if(1===e.length)t=!0;else if("65"===e.substr(0,2))t=!0;else if(o)n=e.substr(0,3),a=F[C].twoOrThreeDigits,t=U(n,a);else if("6011"===e.substr(0,4))t=!0;else{var r=e.substr(0,8),u=r.length,i=F[C].ranges[u];t=i.min<=Number(r)&&Number(r)<=i.max}return t}(n)}return u},w=function(e,n){e=x(e);var t=B(e,n);return!(t===g||!G(t,e))},j=function(e){for(var n=e.length,t=[],a=0;a<n;a++)e[a]===h?t.push(O):t.push(e[a]);return t.filter((function(e,n,t){return t.indexOf(e)===n}))},k=function(e){var n=_.indexOf(e)>-1,t=n?"--":"",a=n?e.toLowerCase():"";return"".concat(t).concat(a)},V=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],H=function(e,n){var t=n,a=function(e){if(e){for(var n=(e=x(e)).length,t=0,a=0;n--;)a+=V[t][parseInt(e.charAt(n),10)],t^=1;return a>0&&a%10===0}return!0}(e),o=!1;return t&&(o=function(e){if(e){var n,t,a=(e=x(e)).length,o=e[a-1],r=e.substr(0,a-1),u=0;for(n=a-1;n>0;)t=Number(r[--n]),n%2==0&&(t*=2),t>9&&(t-=9),u+=t;return((10-u%10)%10+1)%10==o}return!0}(e)),t?a||o:a},K=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.cardBins,a=void 0===t?null:t,o=n.checkMods,r=void 0!==o&&o,u=n.partnerAcceptedBrands,i=void 0===u?_:u,s=n.shouldCheckAcceptedBrands,d=void 0!==s&&s,p=n.validateMod11,E=void 0!==p&&p,m=x(e),f=B(m,a),C=f===A?l:c,h=!r||e.length===C&&H(e,E),b=!d||P(f,i),g=w(m,a),T=d?b&&g:g;return{brand:f,isSupported:b,isValid:T,passesMod:h,value:e}},Y=function(e){return e===A?m:f},Z=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.brand,o=t.checkMods,r=void 0!==o&&o,u=t.checkMod11,i=void 0!==u&&u,s=t.isSupported,d=void 0===s||s,p=t.isValid,E=void 0===p||p,m=t.value,f=a===A?l:c,C=m.length<f;return m?d||a===g?a===g?n=D.invalid_bin:E?C||!r||H(m,i)?C&&e&&(n=D.partial):n=D.invalid_generic:n=D.invalid_bin_brand:n=D.not_supported:n=D.empty,n}},592:function(e,n,t){"use strict";t.d(n,"f",(function(){return o})),t.d(n,"d",(function(){return u})),t.d(n,"g",(function(){return l})),t.d(n,"e",(function(){return h})),t.d(n,"k",(function(){return m})),t.d(n,"h",(function(){return f})),t.d(n,"j",(function(){return A})),t.d(n,"i",(function(){return C})),t.d(n,"a",(function(){return g})),t.d(n,"b",(function(){return b})),t.d(n,"c",(function(){return T}));var a=[];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.currentCaretPosition,r=void 0===o?0:o,u=t.guide,i=void 0!==u&&u,s=t.placeholder,l=void 0===s?"":s,c=t.placeholderChars,d=void 0===c?a:c,p=t.previousConformedValue,E=void 0===p?"":p;if(!f(n))throw new Error(b);if(n.filter((function(e){return d.includes(e)})).length>0)throw new Error(T);for(var m=!1===i&&void 0!==E,A=e.length,C=E.length,h=l.length,g=n.length,S=A-C,O=S>0,I=r+(O?-S:0),N=e.split(""),v=A-1;v>=0;v--){var L=N[v];if(!d.includes(L)){var M=v>=I&&C===g;L===l[M?v-S:v]&&N.splice(v,1)}}var R="",D=!1;e:for(var _=0;_<h;_++){var y=l[_];if(d.includes(y)){if(N.length>0)for(;N.length>0;){var F=N.shift();if(F===y&&!0!==m){R+=y;continue e}if(n[_].test(F)){R+=F;continue e}D=!0}!1===m&&(R+=l.substr(_,h));break}R+=y}if(m&&!1===O){for(var P=null,x=0;x<R.length;x++)d.includes(l[x])&&(P=x);R=null===P?"":R.substr(0,P+1)}return{conformedValue:R,meta:{someCharsRejected:D}}}var r=[];function u(e){var n=e.conformedValue,t=void 0===n?"":n,a=e.currentCaretPosition,o=void 0===a?0:a,u=e.nonRegexChars,i=void 0===u?r:u,s=e.placeholder,l=void 0===s?"":s,c=e.placeholderChars,d=void 0===c?r:c,p=e.previousConformedValue,E=void 0===p?"":p,m=e.previousPlaceholder,f=void 0===m?"":m,A=e.rawValue,C=void 0===A?"":A;if(0===o||!C.length)return 0;var h=C.length,b=E.length,g=l.length,T=t.length,S=h-b,O=S>0;if(S>1&&!O&&!(0===b))return o;var I,N,v=0;if(O&&(E===t||t===l))v=o-S;else{var L=t.toLowerCase(),M=C.toLowerCase().substr(0,o).split("").filter((function(e){return-1!==L.indexOf(e)}));N=M[M.length-1];var R=f.substr(0,M.length).split("").filter((function(e){return!d.includes(e)})).length,D=l.substr(0,M.length).split("").filter((function(e){return!d.includes(e)})).length!==R,_=void 0!==f[M.length-1]&&void 0!==l[M.length-2]&&!d.includes(f[M.length-1])&&f[M.length-1]!==l[M.length-1]&&f[M.length-1]===l[M.length-2];!O&&(D||_)&&R>0&&l.indexOf(N)>-1&&void 0!==C[o]&&(I=!0,N=C[o]);for(var y=M.filter((function(e){return e===N})).length,F=l.split("").filter((function(e,n){return!i.includes(e)&&e===N&&C[n]!==e})).length+y+(I?1:0),P=0,x=0;x<T;x++){if(v=x+1,L[x]===N&&P++,P>=F)break}}if(O){for(var B=v,U=v;U<=g;U++)if(d.includes(l[U])&&(B=U),d.includes(l[U])||U===g)return B}else if(I){for(var G=v-1;G>=0;G--)if(t[G]===N||0===G)return G}else for(var w=v;w>=0;w--)if(d.includes(l[w-1])||0===w)return w;return-1}var i=t(604),s=t.n(i);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:n,update:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=a.guide,i=void 0!==r&&r,l=a.inputElement,c=a.mask,d=a.placeholderChar,p=void 0===d?"X":d,E=a.upperCaseValue,f=void 0!==E&&E;if(!C(l))throw new Error(g);var b=l.selectionEnd,T=l.value;t=A(t)?T:t.toString();var S=h(c,p),O=S.mask,I=S.placeholder,N=S.nonRegexChars,v=S.placeholderChars;if(t===n.previousConformedValue&&I===n.previousPlaceholder)return s()({},n,{adjustedCaretPosition:b,conformedValue:t});var L=o(t,O,{currentCaretPosition:b,guide:i,placeholder:I,placeholderChars:v,previousConformedValue:n.previousConformedValue}),M=L.conformedValue,R=u({conformedValue:M,currentCaretPosition:b,nonRegexChars:N,placeholder:I,placeholderChars:v,previousConformedValue:n.previousConformedValue,previousPlaceholder:n.previousPlaceholder,rawValue:t}),D=M===I&&0===R,_=D?"":f?M.toUpperCase():M;return n.previousConformedValue=_,n.previousPlaceholder=I,l.value=_,m(l,R),s()({},n,{adjustedCaretPosition:R,conformedValue:_})}}}var c=t(627),d=t.n(c),p="undefined"!==typeof navigator&&/Android/i.test(navigator.userAgent),E="undefined"===typeof requestAnimationFrame?setTimeout:requestAnimationFrame;function m(e,n){document.activeElement===e&&(p?E((function(){return e.setSelectionRange(n,n,"none")}),0):e.setSelectionRange(n,n,"none"))}function f(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function A(e){return"undefined"===typeof e||null===e}function C(e){return(e instanceof Element||e instanceof HTMLDocument)&&1===e.nodeType&&"input"===e.tagName.toLowerCase()}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"X";if(!f(e))throw new Error(b);var t=e.reduce((function(e,t){var a=e.mask,o=e.placeholderChars,r=e.placeholder,u=t&&t.mask instanceof RegExp?t.mask:t,i=t&&"string"===typeof t.placeholder?t.placeholder.charAt(0):n;return a.push("string"===typeof u?u.charAt(0):u),r.push(t instanceof RegExp||t.mask instanceof RegExp?i:t.toString().charAt(0)),o.includes(i)||o.push(i),e}),{mask:[],placeholder:[],placeholderChars:[]}),a=t.mask.filter(Boolean),o=t.placeholder.join(""),r=d()(new Set(t.placeholder.filter(Boolean))),u=t.placeholderChars.filter((function(e){return r.includes(e)}));return 0===u.length&&(u=[n]),{mask:a,nonRegexChars:r,placeholder:o,placeholderChars:u}}var b="An array containing a valid mask is required. Please refer to LINK_WIKI for more information",g="An input element is required to enable Masking. Please refer to LINK_WIKI for more information",T="A placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character."},597:function(e,n){function t(){return e.exports=t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},t.apply(this,arguments)}e.exports=t},627:function(e,n,t){var a=t(628),o=t(629),r=t(661),u=t(630);e.exports=function(e){return a(e)||o(e)||r(e)||u()}},628:function(e,n,t){var a=t(662);e.exports=function(e){if(Array.isArray(e))return a(e)}},629:function(e,n){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},630:function(e,n){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},636:function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var a={};t.r(a),t.d(a,"filterFunction",(function(){return o})),t.d(a,"filterOptionValues",(function(){return r}));t(579),t(582),t(591);var o=function(e,n){return"string"===typeof e&&"string"===typeof n&&e.toLowerCase().includes(n)},r=function(e,n){var t,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,r=n.itemKey,u=n.optionValues,i=n.searchIncludeFields,s=0,l=i||[r];return u&&u.length>0&&(t=u.filter((function(n){var t=!0,o=!1,r=void 0;try{for(var u,i=l[Symbol.iterator]();!(t=(u=i.next()).done);t=!0){var c=u.value;if(n[c]&&a(n[c],e))return s++,!0}}catch(d){o=!0,r=d}finally{try{t||null==i.return||i.return()}finally{if(o)throw r}}return!1}))),{count:s,itemValues:t}};t(592)},647:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var a=t(87);function o(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(a.a)(e))){var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r,u=!0,i=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return u=e.done,e},e:function(e){i=!0,r=e},f:function(){try{u||null==o.return||o.return()}finally{if(i)throw r}}}}},648:function(e,n,t){"use strict";var a=t(5),o=t(4),r=t(0),u=t.n(r),i=t(2),s=t.n(i),l=t(18),c=t(636),d=function(e){var n=e.getMenuProps,t=e.isOpen,r=e.listboxClass,i=e.isListboxOpen,d=e.listboxProps,p=e.listboxRef,E=e.optionsTemplate,m=Object(a.a)(e,["getMenuProps","isOpen","listboxClass","isListboxOpen","listboxProps","listboxRef","optionsTemplate"]);return u.a.createElement("div",{className:s()("vds-menu--absolute ",Object(o.a)({},"vds-menu--show",t&&i))},u.a.createElement("ul",Object.assign({},d,n({className:s()("vds-listbox",r),ref:p})),t&&E&&E.optionValues&&E.optionValues.length?function(e,n){var t,a=e.filterFunction,r=e.getItemProps,i=e.inputValue,d=e.listboxItemRef,p=e.noMatchCallback,E=e.noSelectionCheckMark,m=e.type,f=e.selectedItem,A=e.highlightedIndex<0?-1:e.highlightedIndex,C=n.itemKey,h=n.optionValues,b=n.renderOption,g=(t="none"!==m&&i&&i.trim()?c.a.filterOptionValues(i.trim().replace(/\s\s+/g," ").toLowerCase(),n,a):{count:h?h.length:0,itemValues:h}).count,T=t.itemValues,S=t.itemValues?t.itemValues[A]:null;return 0===g?(p(!0),null):(p(!1),T.map((function(e,n){var t=f&&f[C]===e[C],a=S&&S[C]===e[C],i={className:s()("".concat("vds-listbox","-item"),Object(o.a)({},"".concat("vds-listbox","--item-selected"),t&&!E),Object(o.a)({},"".concat("vds-listbox","--item-highlight"),a),"visa-ui-btn-icon--light-fill")};return t&&(i.ref=d),u.a.createElement("li",Object.assign({},r({index:n,item:e,key:e[C]}),{key:e[C]},i,{"aria-selected":t?"true":"false"}),u.a.createElement("span",{className:"".concat("vds-listbox","--item-container")},b(e),t&&!E?u.a.createElement(l.a,{name:"checkmark",resolution:"tiny"}):null))})))}(m,E):null))};d.displayName="ListBox",n.a=d},649:function(e,n,t){"use strict";var a=t(0);n.a=function(e,n,t){var o=Object(a.useRef)(null),r=Object(a.useRef)(null);return Object(a.useEffect)((function(){r.current&&o.current&&"auto"!==t&&(e&&n&&n.optionValues&&n.optionValues.findIndex((function(t){return t[n.itemKey]===e[n.itemKey]}))>=0&&(r.current.scrollTop+=o.current.offsetTop))})),{listboxItemRef:o,listboxRef:r}}},650:function(e,n,t){"use strict";var a=t(0);n.a=function(e,n){var t=Object(a.useCallback)((function(e,t){try{void 0===t?n[e.type]():n[e.type](t)}catch(a){throw new Error("Action ".concat(e.type," is not available."))}}),[n]);Object(a.useEffect)((function(){"function"===typeof e&&e(t)}),[e,t,n])}},802:function(e,n,t){"use strict";var a=t(13),o=t(647),r=t(144),u=t(5),i=t(0),s=t.n(i),l=t(2),c=t.n(l),d=t(695),p=t(648),E=t(565),m=t(649),f=t(650),A=function(e){var n=e.ariaVersion,t=e.comboboxClass,l=e.comboboxAction,A=e.containerProps,C=e.errorText,h=e.inputProps,b=e.inputContainerProps,g=e.itemToStringFunc,T=e.onInputBlur,S=e.onInputChange,O=e.onInputFocus,I=e.onSelectionChange,N=e.optionsTemplate,v=Object(u.a)(e,["ariaVersion","comboboxClass","comboboxAction","containerProps","errorText","inputProps","inputContainerProps","itemToStringFunc","onInputBlur","onInputChange","onInputFocus","onSelectionChange","optionsTemplate"]),L=Object(i.useState)(""),M=Object(r.a)(L,2),R=M[0],D=M[1],_=Object(i.useRef)(null),y=Object(i.useState)(C),F=Object(r.a)(y,2),P=F[0],x=F[1],B=Object(i.useState)(!1),U=Object(r.a)(B,2),G=U[0],w=U[1],j=Object(i.useState)(!1),k=Object(r.a)(j,2),V=k[0],H=k[1],K=Object(m.a)(R,N||{}),Y=K.listboxItemRef,Z=K.listboxRef,X={},W=["clearSelection","closeMenu","openMenu","selectItem","setHighlightedIndex"];Object(f.a)(l,X),Object(i.useEffect)((function(){x(C||"")}),[C]),Object(i.useEffect)((function(){P&&x(C||""),w(!V)}),[C,P,V]);var q=function(e){"function"===typeof T&&T(e,e.target.value)},z=function(e){"function"===typeof S&&S(e,e.target.value)},J=function(e){"function"===typeof O&&O(e,e.target.value)},$=function(e){V!==e&&H(e)};return s.a.createElement(d.a,{initialInputValue:"",initialSelectedItem:R,itemToString:g,onChange:function(e){D(e||null),x(""),"function"===typeof I&&I(e)}},(function(e){var r=e.getInputProps,i=e.isOpen,l=Object(u.a)(e,["getInputProps","isOpen"]);if(0===Object.keys(X).length){X.setInputError=x;var d,m=Object(o.a)(W);try{for(m.s();!(d=m.n()).done;){var f=d.value;X[f]=l[f]}}catch(C){m.e(C)}finally{m.f()}}return s.a.createElement("div",Object.assign({},A,{role:void 0,"aria-haspopup":void 0,"aria-expanded":void 0,"aria-labelledby":void 0,className:c()("vds-combobox-container",t.containerClass)}),s.a.createElement(E.a,Object.assign({},r({onBlur:q,onChange:z,onFocus:J}),"1.2"===n?Object(a.a)({},b,{"aria-expanded":i?"true":"false","aria-owns":"".concat(l.id,"-menu")}):void 0,h,{className:c()("vds-combobox-input-wrapper",t.inputWrapperClass),errorText:P,ref:_,invalid:Boolean(P),inputContainerProps:"1.1"===n?Object(a.a)({},b,{"aria-expanded":i?"true":"false","aria-owns":"".concat(l.id,"-menu")}):void 0,labelId:r()["aria-labelledby"],showErrorText:Boolean(P),showHelpText:Boolean(h.helpText),type:"text"})),s.a.createElement(p.a,Object.assign({},l,v,{listboxClass:t.listboxClass,isListboxOpen:G,listboxItemRef:function(e){Y.current=e},listboxRef:function(e){Z.current=e},isOpen:i,noMatchCallback:$,noSelectionCheckMark:!0,optionsTemplate:N})))}))};A.defaultProps={ariaVersion:"1.2",comboboxClass:{containerClass:null,inputWrapperClass:null,listboxClass:null},errorText:"",inputProps:{label:"Text for label",name:"combobox"},inputContainerProps:{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false"}},A.displayName="ComboboxFreeformManualSelection",n.a=A}}]);
//# sourceMappingURL=10.b2122877.chunk.js.map