1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39136,(e,a,l)=>{a.exports={jp:{1584:"æç¥ç",1585:"ç§ç°ç",1586:"鿣®ç",1587:"åèç",1588:"æåªç",1589:"ç¦äºç",1590:"ç¦å²¡ç",1591:"ç¦å³¶ç",1592:"å²éç",1593:"群馬ç",1594:"åºå³¶ç",1595:"åæµ·é",1596:"å
µåº«ç",1597:"è¨åç",1598:"ç³å·ç",1599:"岩æç",1600:"é¦å·ç",1601:"鹿å
å³¶ç",1602:"ç¥å¥å·ç",1603:"é«ç¥ç",1604:"çæ¬ç",1605:"京é½åº",1606:"ä¸éç",1607:"å®®åç",1608:"å®®å´ç",1609:"é·éç",1610:"é·å´ç",1611:"å¥è¯ç",1612:"æ°æ½ç",1613:"大åç",1614:"岡山ç",1615:"æ²ç¸ç",1616:"大éªåº",1617:"ä½è³ç",1618:"å¼çç",1619:"æ»è³ç",1620:"å³¶æ ¹ç",1621:"é岡ç",1622:"æ æ¨ç",1623:"徳島ç",1624:"æ±äº¬é½",1625:"é³¥åç",1626:"å¯å±±ç",1627:"åæå±±ç",1628:"山形ç",1629:"å±±å£ç",1630:"山梨ç"}}},462829,73564,e=>{"use strict";var a=e.i(391398),l=e.i(145246),s=e.i(691567),t=e.i(960519),r=e.i(191788),n=e.i(538865),o=e.i(656720),i=e.i(629260),d=e.i(326801),c=e.i(550092),_=e.i(737273),u=e.i(276370),S=e.i(934241),I=e.i(655136),p=e.i(107033),N=e.i(722038),f=e.i(126532),m=e.i(736079),C=e.i(860544),A=e.i(748182),b=e.i(91596),h=e.i(395674),g=e.i(786955),U=e.i(428781),T=e.i(944812),R=e.i(377997),y=e.i(391553),O=e.i(39136),P=e.i(870510),G=e.i(718210),x=e.i(398094),E=e.i(691286);let $=({areFieldsRequired:e,lowerType:l="shipping",saveContactInfo:s,spaceUnder:t})=>{let r=(0,U.default)(y.default).address.name;return(0,a.jsx)(n.Field,{onBlur:e=>{s({nameArg:e.target.value})},autoComplete:`section-${l} ${l} name`,component:E.default,id:"name",isRequired:e,label:r,name:"name",spaceUnder:t})};$.propTypes={areFieldsRequired:s.PropTypes.bool,lowerType:s.PropTypes.string,saveContactInfo:s.PropTypes.func,spaceUnder:s.PropTypes.string},e.s(["ContactField",0,$],73564),o.addMethod(i.mixed,"postalCodeMatchesCountry",h.postalCodeMatchesCountry),o.addMethod(d.string,"containsSpace",h.containsSpace),o.addMethod(d.string,"hasMinLengthNames",h.hasMinLengthNames),o.addMethod(d.string,"containsOnlyValidCharacters",h.containsOnlyValidCharacters),o.addMethod(d.string,"containsOnlyLatinCharacters",h.containsOnlyLatinCharacters);let B="Billing",D="First crate",v="Shipping";function j(e,a){if(1!==e.key.length)return;let l=5;switch(a){case"US":l=5;break;case"IS":case"OM":l=3;break;case"AR":case"AM":case"AT":case"AU":case"BE":case"BG":case"CH":case"CY":case"DK":case"GE":case"HU":case"LI":case"LU":case"MZ":case"NO":case"NZ":case"PH":case"ZA":l=4;break;case"CZ":case"GR":case"SE":case"SK":case"BY":case"CN":case"CO":case"IN":case"KZ":case"NG":case"RO":case"SG":case"TW":case"PL":l=6;break;case"EE":case"ES":case"FI":case"FR":case"HR":case"IT":case"TR":case"CI":case"HK":case"UG":case"ZW":break;case"JP":case"GB":case"GG":case"IM":case"JE":case"MT":case"IE":case"LT":case"PT":case"GI":l=8;break;case"KR":case"IL":case"LV":case"SI":case"CA":case"CL":case"NL":l=7}e.target.value.length>=l&&e.preventDefault()}function F(e,a,l){if("CA"===l){let{value:l}=e.target;l=l.toUpperCase().replace(/\s/g,"");let s=`${l.substring(0,3)} ${l.substring(3)}`;s!==l&&a(e.target.name,s)}}let L=e=>{let a=e.replace(/^\s+|\s+$/g,"");return a=a.toLowerCase(),a=(a=(0,b.removeAccentedChars)(a)).replace(/[^a-z0-9 -]/g,"").replace(/-+/g,"-")},k=()=>{},w={de:"de",jp:"ja"},H={},M=[],X=({areFieldsRequired:e,countryCode:s="US",countryDisabled:o=!1,countryObject:i=H,currentAddress:d=H,fieldsToCorrect:b=M,hasDeluxeSubscription:h,hasFirstCrateSKU:E=!1,hasProfessionsSub:X=!1,hasStoreItem:z=!1,hasSubscription:V=!1,hasTopicsSub:q=!1,hasYoungEurekaSub:K,initShowStreet2:W=!1,isCheckout:Y=!1,isDisabled:Z=!1,isGroupGift:J=!1,onBlur:Q=k,onChange:ee,saveContactInfo:ea,setFieldValue:el=null,setNeedsExplicitlyValidateForm:es,setShowAddressFields:et,showAddressFields:er,showContactField:en=!1,shippableCountries:eo=M,spaceUnder:ei="none",topicsSubNames:ed="",type:ec="Shipping"})=>{let{country:e_}=(0,r.useContext)(G.UserContext),eu=(0,U.default)(y.default),eS=eu.address,eI=eu.gift,ep=(0,T.default)(),eN=ep!==R.DEFAULT_LOCALIZATION_COUNTRY,ef=O.default[ep]??null,em=R.LOCALIZED_
1SITES[ep]?.byCountry??"",eC=!Y||0===eo.length||eo.includes(em),eA=w[ep]??"en",[eb,eh]=(0,r.useState)(""),eg=ec.replace(/\s/g,"").toLowerCase(),eU="";eU=ec===D?eS.firstCrateCountry:ec===v?eS.countryRegion:ec===B?eS.billingCountry:eS.countryFallback;let eT=x.default.country[s]||x.default.country.default,eR=(e,a,l)=>eN||a===l?e:a,ey=eR(eS.addressLine1,eT.street.displayText,"Shipping address line 1"),eO=eR(eS.addressLine2,eT.street2.displayText,"Shipping address line 2"),eP=eR(eS.city,eT.city.displayText,"City"),eG=eS.addLine2,ex=eR(eS.state,eT.regionId.displayText,"Province/Territory"),eE=eR(eS.postcode,eT.postcode.displayText,"Postal code"),e$=eS.selectOne,eB=(e="shipping")=>{if("shipping"!==e)return Object.keys(N.BILLABLE_COUNTRIES).map(e=>({value:e,label:N.BILLABLE_COUNTRIES[e]}));{if(eN)return eC?[{value:em,label:eS.countryName}]:[];let e=Object.keys(N.DELIVERY_COUNTRIES);return Y&&eo.length>0?e.map(e=>({value:e,label:N.DELIVERY_COUNTRIES[e]})).filter(e=>eo.includes(e.value)):e.map(e=>({value:e,label:N.DELIVERY_COUNTRIES[e]}))}},eD=()=>i?Object.keys(i).map(e=>({value:e,label:ef?.[e]??i[e].name})):[],[ev,ej]=(0,r.useState)(W),eF=(0,r.useRef)(null),eL=(0,r.useRef)(null),[ek,ew]=(0,r.useState)(eB()),eH=eB("billing"),[eM,eX]=(0,r.useState)(eD());(0,r.useEffect)(()=>{eX(eD())},[s]),(0,r.useEffect)(()=>{eN&&eC&&ec!==B&&s!==em&&el(`${eg}_country_id`,em)},[eN,eC,s]),(0,r.useEffect)(()=>{ec===D&&el(`${eg}_country_id`,s),"HK"===s&&el(`${eg}_postcode`,"00000")},[s]),(0,r.useEffect)(()=>{ew(eB())},[h,E,X,z,V,q,eo]);let ez=(0,r.useRef)(null);void 0===window.handleAutocompleteReady&&(window.handleAutocompleteReady=()=>{}),(0,r.useEffect)(()=>{if(document&&!document.getElementById("google-autocomplete-script")){let e=document.createElement("script");e.src=`https://maps.googleapis.com/maps/api/js?key=AIzaSyC81QApis9KRCY7OPZLfliDAOlekJSTC9M&libraries=places&language=${eA}&callback=handleAutocompleteReady`,e.async=!0,e.defer=!0,e.id="google-autocomplete-script",document.body.appendChild(e)}},[]);let eV="google-autocomplete";(0,r.useEffect)(()=>{"Billing"===ec||new MutationObserver(function(){let e=`section-${eg} ${"billing"===eg?"billing":"shipping"} address-line1`,a=`section-${eg} ${"firstcrate"===eg?"shipping":eg} country-name`,l=eL.current.getNode().autocomplete;(a!==eF.current.getNode().autocomplete||e!==l)&&(eL.current.getNode().autocomplete=e,eF.current.getNode().autocomplete=a)}).observe(eL.current.getNode(),{attributes:!0,attributeFilter:["autocomplete"]})},[]);let eq={street_number:"short_name",route:"long_name",locality:"long_name",postal_town:"long_name",neighborhood:"long_name",administrative_area_level_3:"long_name",administrative_area_level_1:"long_name",country:"long_name",postal_code:"short_name",sublocality_level_1:"long_name",sublocality_level_4:"long_name",sublocality_level_3:"long_name",sublocality_level_2:"long_name",premise:"long_name"},eK={street_number:`${eg}_street`,route:`${eg}_street`,locality:`${eg}_locality`,postal_town:`${eg}_locality`,neighborhood:`${eg}_locality`,administrative_area_level_3:`${eg}_locality`,administrative_area_level_1:`${eg}_administrative_area_level_1`,country:`${eg}_country_id`,postal_code:`${eg}_postcode`,street1:`${eg}_street`,street2:`${eg}_street2`,city:`${eg}_locality`,region:`${eg}_administrative_area_level_1`,postcode:`${eg}_postcode`},eW=()=>{if(window?.google?.maps?.places?.Autocomplete===void 0)return setTimeout(eW,100);if(!ez.current){let e=new window.google.maps.places.Autocomplete(eL.current.getNode(),{types:["address"]});e.setFields(["address_components"]),ez.current=e,eL.current.getNode().addEventListener("keydown",e=>{13===e.keyCode&&e.preventDefault()})}ez.current.setComponentRestrictions({country:eN?em:s}),window.google.maps.event.clearInstanceListeners(ez.current),ez.current.addListener("place_changed",eY)};(0,r.useEffect)(()=>{if(("JP"!==s||"jp"===ep)&&eV==eV&&[D,v].includes(ec)){eW();let e=document.getElementById("hide-pac-container");e&&e.remove()}else if(ez.current&&(window.google.maps.event.clearInstanceListeners(ez.current),window.google.maps.event.clearInstanceListeners(eL.current.getNode()),ez.current=null),[D,v].includes(ec)&&!document.getElementById("hide-pac-container")){let e=document.createElement("style");e.id="hide-pac-container",e.innerHTML=` 2 .pac-container { 3 display: none; 4 } 5 `,document.head.appendChild(e)}}
5,[ec,s,em]);let eY=()=>{if(!(()=>{let e=ez.current.getPlace();if(void 0===e||void 0===e.address_components)return!1;for(let a=0;a<e.address_components.length;a++)if("country"===e.address_components[a].types[0]){let l=e.address_components[a].short_name;if(!ek.some(e=>e.value===l))return!1}return!0})())return;(0,C.track)("Google Autofilled Address",{address_type:eg});let e="KR"===s,a="JP"===s&&"jp"===ep,l={town:"",chome:"",ban:"",go:"",ward:""},t=ez.current.getPlace(),r=5,n=[,,].fill(""),o="",i="",d="";for(let c=0;c<t.address_components.length;c++){let _=t.address_components[c].types.filter(e=>"political"!==e);if(0===_.length)continue;let u=_.find(e=>eq[e])??_[0];if(eq[u]){let _=t.address_components[c][eq[u]];switch(u){case"street_number":n[0]=_;break;case"route":n[1]=_;break;case"locality":r=1,i=_;break;case"premise":e&&(n[0]=_),a&&(l.go=_);break;case"sublocality_level_4":e&&(n[1]=_),a&&(l.ban=_);break;case"sublocality_level_3":a&&(l.chome=_);break;case"sublocality_level_2":e&&(n[2]=_),a&&(l.town=_);break;case"sublocality_level_1":e&&(r=2,i=_),a&&(l.ward=_);break;case"postal_town":r>1&&(r=1,i=_);break;case"neighborhood":r>2&&(r=2,i=_);break;case"administrative_area_level_3":r>3&&(r=3,i=_);break;case"administrative_area_level_1":let S=Object.keys(ef??{}).find(e=>ef[e]===_);if(S){o=S;break}let I=e?L(_.replace(/-do/g,"")):L(_),p=(0,A.getRegionFromName)(s,I);p&&(o=p.regionId);break;case"country":el(eK.country,t.address_components[c].short_name);break;case"postal_code":d=_;break;default:el(eK[u],_)}}}let c=n.filter(Boolean).join(" ");if(a){let e=[l.ban,l.go].filter(Boolean).join("-"),a=`${l.town}${l.chome}${e}`,s=t.name??"";c=!s||a.includes(s)?a:s.includes(a)?s:[s,a].filter(Boolean).join(" "),i=`${i}${l.ward}`}c&&("DE"===s&&(c=(0,m.convertAddressToBasicLatin)(s,c)),el(eK.street1,c,!1),eZ(c)),el(eK.street2,"",!1),el(eK.city,i,!1),o&&el(eK.region,o,!1),d?el(eK.postal_code,d,!1):a&&el(eK.postal_code,"",!1),es(!0)};(0,r.useEffect)(()=>{let{street2:e,city:a,regionName:l,postcode:s}=d;!er&&(e||a||l||s)&&et(!0)},[d]);let eZ=e=>{e&&!Number.isNaN(Number(e))?eh("Street address should not only be a number"):eh("")},[eJ,eQ]=(0,r.useState)([]);(0,r.useEffect)(()=>{eQ([]),!ev&&b&&b.includes("street2")&&ej(!0)},[b]);let e0=e=>b&&b.includes(e)&&!eJ.includes(e),e1=e=>{eJ.includes(e)||eQ([...eJ,e])},e2="Billing"===ec?2:1;return[v,D].includes(ec)?(0,a.jsxs)(S.LayoutGrid,{columns:1,mdColumns:e2,lgColumns:1,xlColumns:e2,gapSize:"small",spaceUnder:ei,children:[(0,a.jsx)(n.Field,{label:eU,component:I.Select,name:`${eg}_country_id`,id:`${eg}_country_id`,isRequired:e,data:ek,defaultOptionName:e$,autoComplete:`section-${eg} ${eg} country-name`,isDisabled:ec===D||o||Z,fieldRef:eF,onChange:ee,onBlur:Q,hasAutoSelectOverride:q}),ec===D&&(0,a.jsx)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:eI.sameCountryNotice}),z&&V&&(0,a.jsx)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:eI.mixedCartNotice}),X&&(0,a.jsx)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:"Professions Series can only ship to the U.S. and Canada."}),q&&(0,a.jsxs)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:[ed," can only ship to the U.S."]}),K&&("US"!==s||"US"!==e_)&&(0,a.jsx)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:"We recommend Eureka Crate for ages 14+!"}),J&&(0,a.jsx)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:"Group gifts can only be shipped to the U.S."}),(0,a.jsxs)(a.Fragment,{children:[en&&(0,a.jsx)($,{areFieldsRequired:e,saveContactInfo:ea}),(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} address-line1`,component:u.Input,fieldRef:eL,id:`${eg}_street`,isDisabled:Z,isInvalid:e0("street"),isRequired:e,label:ey,name:`${eg}_street`,onBlur:e=>{eZ(e.target.value),Q(e)},onChange:ee,onFocus:()=>{e1("street"),eh("")}}),eb&&(0,a.jsx)("div",{id:"warning-street",className:l.default.dynamic([["77b77c5f30a8fc3f",[f.COLORS.HEX_EFA804,f.COLORS.HEX_FBF9D2,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS]]])+" warning-box",children:(0,a.jsx)(_.BodyText,{spaceUnder:"none",size:"small",children:eb})}),(0,a.jsxs)(t.default,{duration:P.ANIMATION_DURATION_SHORT,height:er?"auto":1,"aria-hidden":!1,children:[ev&&(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} address-line2`,component:u.Input,id:`${eg}_street2`,isDisabled:Z,isInvalid:e0("street2"),label:eO,name:`${eg}_street2`,onBlur:Q,onChange:ee,onFocus:()=>{e1("street2")}}
5),!ev&&(0,a.jsx)(_.BodyText,{disabled:Z,isClickable:!0,onClick:()=>{ej(!0)},spaceUnder:"large",tagName:"button",type:"button",children:eG}),(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} address-level2`,component:u.Input,id:`${eg}_locality`,isDisabled:Z,isInvalid:e0("city"),isRequired:e,label:eP,name:`${eg}_locality`,onBlur:Q,onChange:ee,onFocus:()=>{e1("city")}}),(0,a.jsxs)(S.LayoutGrid,{columns:eT.regionId.hidden?1:3,autoFit:!0,gapSize:"small",children:[(0,a.jsx)("div",{style:{gridColumn:"span 2"},className:l.default.dynamic([["77b77c5f30a8fc3f",[f.COLORS.HEX_EFA804,f.COLORS.HEX_FBF9D2,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS]]])+" "+`${eT.regionId.hidden?"hidden":""}`,children:(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} address-level1`,component:I.Select,data:eM,defaultOptionName:e$,id:`${eg}_administrative_area_level_1`,isDisabled:Z,isInvalid:e0("region_id"),isRequired:e&&p.REGION_REQUIRED_COUNTRIES.includes(s),label:ex,name:`${eg}_administrative_area_level_1`,onBlur:Q,onChange:ee,onFocus:()=>{e1("region_id")}})}),(0,a.jsx)("div",{className:l.default.dynamic([["77b77c5f30a8fc3f",[f.COLORS.HEX_EFA804,f.COLORS.HEX_FBF9D2,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS]]])+" "+`${eT.postcode.hidden?"hidden":""}`,children:(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} postal-code`,component:u.Input,id:`${eg}_postcode`,isDisabled:Z,isInvalid:e0("postcode"),isRequired:e,label:eE,name:`${eg}_postcode`,onBlur:e=>{el&&F(e,el,s),Q(e)},onChange:ee,onFocus:()=>{e1("postcode")},onKeyPress:e=>{j(e,s)},placeholder:eT.postcode.placeholder})})]})]}),!er&&(0,a.jsx)(_.BodyText,{disabled:Z,isClickable:!0,onClick:()=>{et(!0)},tagName:"button",children:"Enter manually"})]}),(0,a.jsx)(l.default,{id:"77b77c5f30a8fc3f",dynamic:[f.COLORS.HEX_EFA804,f.COLORS.HEX_FBF9D2,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS],children:`.warning-box.__jsx-style-dynamic-selector{border:solid 1px ${f.COLORS.HEX_EFA804};background:${f.COLORS.HEX_FBF9D2};padding:${g.SPACING_UNITS.smaller};margin-bottom:${g.SPACING_UNITS.default};border-radius:${g.FORM_BORDER_RADIUS}}.hidden.__jsx-style-dynamic-selector{display:none}`})]}):(0,a.jsxs)(S.LayoutGrid,{columns:1,mdColumns:e2,lgColumns:1,xlColumns:e2,gapSize:"small",spaceUnder:ei,children:[(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} country-name`,component:I.Select,data:eH,defaultOptionName:e$,fieldRef:eF,id:`${eg}_country_id`,isDisabled:ec===D||o||Z,isRequired:e,label:eU,name:`${eg}_country_id`,onBlur:Q,onChange:ee}),(0,a.jsx)(n.Field,{autoComplete:`section-${eg} ${eg} postal-code`,component:u.Input,id:`${eg}_postcode`,isDisabled:Z,isInvalid:e0("postcode"),isRequired:!0,label:eE,name:`${eg}_postcode`,onBlur:e=>{el&&F(e,el,s),Q(e)},onChange:ee,onFocus:()=>{e1("postcode")},onKeyPress:e=>{j(e,s)}}),(0,a.jsx)(l.default,{id:"6f4624e9af7a1985",dynamic:[f.COLORS.HEX_EFA804,f.COLORS.HEX_FBF9D2,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS],children:`.warning-box.__jsx-style-dynamic-selector{border:solid 1px ${f.COLORS.HEX_EFA804};background:${f.COLORS.HEX_FBF9D2};padding:${g.SPACING_UNITS.smaller};margin-bottom:${g.SPACING_UNITS.default};border-radius:${g.FORM_BORDER_RADIUS}}`})]})};X.propTypes={areFieldsRequired:s.default.bool,countryCode:s.default.string,countryDisabled:s.default.bool,countryObject:s.default.object,currentAddress:s.default.object,fieldsToCorrect:s.default.array,hasFirstCrateSKU:s.default.bool,hasProfessionsSub:s.default.bool,hasStoreItem:s.default.bool,hasSubscription:s.default.bool,hasTopicsSub:s.default.bool,initShowStreet2:s.default.bool,isCheckout:s.default.bool,isDisabled:s.default.bool,isGroupGift:s.default.bool,leastShippableProductName:s.default.string,onBlur:s.default.func,onChange:s.default.func,saveContactInfo:s.default.func,setFieldValue:s.default.func,setShowAddressFields:s.default.func,showAddressFields:s.default.bool,showContactField:s.default.bool,spaceUnder:s.default.oneOf(["none","small","larger"]),topicsSubNames:s.default.string,type:s.default.oneOf([v,D,B]),shippableCountries:s.default.array,setNeedsExplicitlyValidateForm:s.default.func.isRequired};var z=e.i(193552);let V=({addressId:e,street1:l,street2:s,city:t,regionCode:r,onChange:o,postalCode:i,countryCode:d,lowerType:c})=>(0,a.jsx)(n.Field,{component:z.Radio,name:`${c}_saved_address_id`,id:`${c}-${e}`,hasWrapper:!0,alignSubstitute:"top",onChange:o,children:(0,a.jsxs)(_.BodyText,{spaceUnder:"none",children:[l?`${l}, `:"",s?`${s}, `:"",t?`${t}, `:"",r?`${r} `:"","00000"!==i?`${i}, `:"",d]})});var q=e.i(497962);let K=e=>{let{addresses:s,canHide:t,countryCode:o,hasYoungEurekaSub:i,lowerType:d,onChange:u,onHide:S,setShowSavedAddresses:I}=e,{setFieldTouched:p,setFieldValue:N,validateField:m,validateForm:C}=(0,n.useFormikContext)(),{country:A}=(0,r.useContext)(G.UserContext),h=(0,U.default)(y.default).savedAddresses;return s.length<1?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.AccentText,{color:"secondary",spaceUnder:"none",tagName:"h3",children:1===s.length?h.chooseOne:(0,q.default)(h.cho
5oseFrom,{count:s.length})}),(0,a.jsx)("div",{className:l.default.dynamic([["a002e95dbbf02d91",[f.COLORS.HEX_000000_A05,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.SPACING_UNITS.smaller,g.FORM_BORDER_RADIUS,g.SPACING_UNITS.smaller,f.COLORS.HEX_000000_A05,g.FORM_BORDER_RADIUS,g.FORM_BORDER_RADIUS]]])+" "+`saved-addresses__wrapper ${s.length>5?"saved-addresses__wrapper--scrollable":""}`,children:(0,a.jsx)("ul",{className:l.default.dynamic([["a002e95dbbf02d91",[f.COLORS.HEX_000000_A05,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.SPACING_UNITS.smaller,g.FORM_BORDER_RADIUS,g.SPACING_UNITS.smaller,f.COLORS.HEX_000000_A05,g.FORM_BORDER_RADIUS,g.FORM_BORDER_RADIUS]]])+" "+`saved-addresses ${s.length>5?"saved-addresses--scrollable":""}`,children:s.map(e=>{let{addressId:t}=e;return(0,a.jsx)("li",{onClick:()=>{let{city:a,countryCode:l,postalCode:t,regionId:r,street1:n,street2:o,telephone:i}=s.find(a=>Number(a.addressId)===e.addressId);(0,b.verifyIsValidString)(i)&&N(`${d}_phone_number`,i),"US"===l||(0,b.verifyIsValidString)(i)||(N(`${d}_locality`,a),N(`${d}_postcode`,t),N(`${d}_administrative_area_level_1`,r),N(`${d}_street`,n),N(`${d}_street2`,o),N(`${d}_country_id`,l),N(`${d}_phone_number`,""),I(!1),p(`${d}_phone_number`),m(`${d}_phone_number`),C())},className:l.default.dynamic([["a002e95dbbf02d91",[f.COLORS.HEX_000000_A05,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.SPACING_UNITS.smaller,g.FORM_BORDER_RADIUS,g.SPACING_UNITS.smaller,f.COLORS.HEX_000000_A05,g.FORM_BORDER_RADIUS,g.FORM_BORDER_RADIUS]]]),children:(0,a.jsx)(V,{lowerType:d,...e,onChange:u})},t)})})}),i&&("US"!==o||"US"!==A)&&"billing"!==d&&(0,a.jsx)(c.AccentText,{color:"secondary",size:"small",spaceUnder:"default",children:"We recommend Eureka Crate for ages 14+!"}),t&&(0,a.jsx)(_.BodyText,{size:"small",isClickable:!0,onClick:()=>{S(),N(`${d}_locality`,""),N(`${d}_postcode`,""),N(`${d}_administrative_area_level_1`,""),N(`${d}_street`,""),N(`${d}_street2`,""),N(`${d}_phone_number`,"")},children:h.addNew}),(0,a.jsx)(l.default,{id:"a002e95dbbf02d91",dynamic:[f.COLORS.HEX_000000_A05,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.SPACING_UNITS.smaller,g.FORM_BORDER_RADIUS,g.SPACING_UNITS.smaller,f.COLORS.HEX_000000_A05,g.FORM_BORDER_RADIUS,g.FORM_BORDER_RADIUS],children:`.saved-addresses--scrollable.__jsx-style-dynamic-selector{background:${f.COLORS.HEX_000000_A05};max-height:20rem;padding:${g.SPACING_UNITS.smaller} ${g.SPACING_UNITS.default} ${g.SPACING_UNITS.default} ${g.SPACING_UNITS.smaller};-webkit-overflow-scrolling:touch;border-radius:${g.FORM_BORDER_RADIUS};overflow:hidden scroll}.saved-addresses__wrapper.__jsx-style-dynamic-selector{margin-bottom:${g.SPACING_UNITS.smaller};position:relative}.saved-addresses__wrapper--scrollable.__jsx-style-dynamic-selector:after{content:"";pointer-events:none;background:linear-gradient(#fff0, ${f.COLORS.HEX_000000_A05});border-radius:0 0 ${g.FORM_BORDER_RADIUS} ${g.FORM_BORDER_RADIUS};height:3rem;display:block;position:absolute;bottom:0;left:0;right:0}`})]})};var W=e.i(58732),Y=e.i(768125),Z=e.i(722279),J=e.i(374684),Q=e.i(711401);let ee=/^\d+$/,ea=e=>{let{countryCode:s="US",currentAddress:o={},hasStoreItem:i,hasYoungEurekaSub:d,hasProfessionsSub:c=!1,hasTopicsSub:S=!1,initCollapsed:I=!1,initShowSavedAddress:p,isCheckout:N=!1,isGroupGift:A=!1,isStoreAddress:h,leastShippableProductName:T=null,noProceedOptionsFallbackText:R=null,onBlur:O,onChange:x,saveContactInfo:E,savedAddresses:$=[],selectVerificationOption:B,setNeedsExplicitlyValidateForm:D,setShowErrors:v,showErrors:j,showPhoneNumberField:F=!1,shippableCountries:L,suggestedAddress:k={},topicsSubNames:w="",type:H="Shipping",verificationResults:M={},focusPhoneNumber:V,setIsSmsChecked:q,isSmsOptinChecked:ea,setIsSmsOptinChecked:el,shouldShowGiftInfo:es,...et}=e,er=(0,U.default)(y.default).address,en=(0,U.default)(y.default).savedAddresses,{takeoverAdminEmail:eo}=(0,r.useContext)(G.UserContext),{errors:ei,isValid:ed,setFieldValue:ec,touched:e_,validateForm:eu,values:eS}=(0,n.useFormikContext)(),eI=F,ep=!0===eS.first_crate_to_me;es&&"US"===s&&(eI=!1),ep&&(eI="Shipping"!==H||"US"!==s);let eN=(0,r.useRef)(null);(0,r.useEffect)(()=>{V&&(eN?.current?.focus(),window.setTimeout(()=>{eN?.current&&(0,Z.scrollIntoView)(eN)},200))},[V]),(0,r.useEffect)(()=>{V&&eu()},[V]),(0,r.useEffect)(()=>{let e=(0,m.getPhoneNumberCountryPrefix)({countryCode:s});ec("shipping_phone_prefix",e),ep&&ec("firstcrate_phone_prefix",e)},[s]);let[ef,em]=(0,r.useState)(!I),eC=H.replace(/\s/g,"").toLowerCase();(0,r.useEffect)(()=>
5{!1===M.isValid&&((0,C.track)("Address Error Options Shown",{address_type:eC,suggested_address_shown:M.showProceedOptions}),window.setTimeout(()=>(0,Z.scrollTo)({href:`error-verification-${eC}`}),200));let{showProceedOptions:e}=M;e&&ec(`${eC}_address_selection`,"")},[M]);let[eA,eb]=(0,r.useState)(p),eh=""!==eS[`${eC}_saved_address_id`],{fieldsToCorrect:eg=[],message:eU,suggestion:eT,showProceedOptions:eR}=M,{lineOne:ey,lineTwo:eO,lineThree:eP,components:eG}=k,{street:ex,street2:eE,city:e$,regionName:eB,postcode:eD}=o,ev=eU?(0,a.jsx)(_.BodyText,{size:"large",style:{color:f.COLORS.HEX_DB2D56},spaceUnder:"none",dangerouslySetInnerHTML:{__html:eU}}):null,ej=eT?(0,a.jsx)(_.BodyText,{children:eT}):null,eF="US"!==s,eL=$.length>0,ek=$.filter((e,a)=>{let{addressId:l}=e;return!($.findIndex(a=>{let l;return l=a.street1===e.street1&&a.city===e.city&&a.regionId===e.regionId&&a.postcode===e.postcode&&a.countryCode===e.countryCode,(a.street2||e.street2)&&a.street2!==e.street2&&(l=!1),l})<a)||eS[`${eC}_saved_address_id`]===l});return(0,a.jsxs)("div",{className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" address__wrapper",children:[(0,a.jsx)(t.default,{duration:P.ANIMATION_DURATION_LONG,height:eA?"auto":0,"aria-hidden":!1,children:(0,a.jsx)(K,{addresses:ek,canHide:!0,countryCode:s,hasYoungEurekaSub:d,lowerType:eC,onBlur:O,onChange:x,onHide:()=>{ec(`${eC}_saved_address_id`,""),eb(!1),v(!1)},setShowSavedAddresses:eb,setFieldValue:ec})}),(0,a.jsx)(t.default,{duration:P.ANIMATION_DURATION_LONG,height:eA?0:"auto","aria-hidden":!1,children:(0,a.jsx)(X,{areFieldsRequired:!eh,countryCode:s,currentAddress:o,fieldsToCorrect:eg,hasStoreItem:i,hasYoungEurekaSub:d,isCheckout:N,isGroupGift:A,isStoreAddress:h,onBlur:O,onChange:x,saveContactInfo:E,setFieldValue:ec,hasProfessionsSub:c,hasTopicsSub:S,topicsSubNames:w,setShowAddressFields:em,showAddressFields:ef,setNeedsExplicitlyValidateForm:D,type:H,shippableCountries:L,leastShippableProductName:T,...et})}),(!eA||!eL)&&eI&&ef&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{tabIndex:0,className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" "+`phone-fields phone-fields--prefix-${eS[`${eC}_phone_prefix`]?.length}`,children:[(0,a.jsx)("div",{className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" phone-fields__prefix",children:(0,a.jsx)(_.BodyText,{lineHeight:"small",spaceUnder:"none",style:{fontSize:"18px",height:"max-content"},children:eS[`${eC}
5_phone_prefix`]})}),(0,a.jsx)(n.Field,{component:u.Input,name:`${eC}_phone_number`,id:`${eC}_phone_number`,spaceUnder:"none",fieldRef:eN,label:`${er.phone}${"US"===s?er.phoneOptional:""}`,placeholder:" ",isRequired:eF,onKeyPress:e=>{1===e.key.length&&(e.target.value.length>=15||!ee.test(e.key))&&e.preventDefault()},onPaste:e=>{var a;let l;((l=(a=e).clipboardData.getData("text")).length>=15||!ee.test(l))&&a.preventDefault()},showError:!1}),e_[`${eC}_phone_number`]&&ei[`${eC}_phone_number`]&&(0,a.jsx)(_.BodyText,{className:"form-error",size:"small",color:"error",spaceUnder:"smaller",children:ei[`${eC}_phone_number`]}),"US"!==s&&(0,a.jsx)("div",{className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" phone-fields__tooltip-container",children:(0,a.jsx)(Y.Tooltip,{align:"right",hasTriangle:!1,heading:null,toggleContentStyle:{maxWidth:"11.25rem",padding:g.SPACING_UNITS.small,top:"2.1875rem",left:"unset",right:0},iconStyle:{color:f.COLORS.HEX_000000_A55,display:"inline-block",paddingTop:"0"},style:{maxWidth:"unset",minWidth:"unset"}
5,children:(0,a.jsx)(_.BodyText,{size:"small",spaceUnder:"none",children:er.phoneTooltip})})})]}),"US"===s&&!(0,b.verifyIsValidString)(eo)&&(0,a.jsx)(Q.default,{isSmsOptinChecked:ea,setIsSmsOptinChecked:el,disclaimerStyle:{marginTop:g.SPACING_UNITS.smaller,backgroundColor:f.COLORS.HEX_C5ECF4_A20,padding:g.SPACING_UNITS.default,borderRadius:"0.25rem"}})]}),(0,a.jsxs)(t.default,{duration:P.ANIMATION_DURATION_LONG,height:j?"auto":0,"aria-hidden":!1,children:[!eR&&!ev&&(0,a.jsxs)("div",{id:`error-verification-${eC}`,className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]]),children:[(0,a.jsx)(_.BodyText,{size:"large",style:{color:f.COLORS.HEX_DB2D56},children:er.unverified}),(0,a.jsx)(_.BodyText,{children:R??er.unverifiedFallback})]}),!eR&&ev&&(0,a.jsxs)("div",{id:`error-verification-${eC}`,className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]]),children:[ev,ej]}),eR&&(0,a.jsxs)("div",{id:`error-verification-${eC}`,className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" address-correction",children:[ev,ej,ey&&(0,a.jsxs)(n.Field,{component:z.Radio,name:`${eC}_address_selection`,id:`${eC}_suggested`,hasWrapper:!0,alignSubstitute:"top","data-json":JSON.stringify({...eG,street:k.lineOne,countryCode:s}),onClick:e=>{B({event:e,setFieldValue:ec,lowerType:eC,values:eS,validateForm:eu})},children:[(0,a.jsxs)(_.BodyText,{children:["Suggested change"," ",(0,a.jsxs)("span",{className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" verified-label",children:["(",(0,a.jsx)("span",{className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" verified-label__icon",children:(0,a.jsx)(W.default,{color:J.kiwicoBrandAccessibleColor})})," ","Verified",")"]}),":"]}),(0,a.jsx)(_.BodyText,{size:"large",spaceUnder:"none",children:ey}),eO&&(0,a.jsx)(_.BodyText,{size:"large",spaceUnder:"none",children:eO}),(0,a.jsx)(_.BodyText,{size:"large",spaceUnder:"none",children:eP})]}),(0,a.jsxs)(n.Field,{component:z.Radio,name:`${eC}_address_selection`,id:`${eC}_current`,hasWrapper:!0,alignSubstitute:"top",spaceUnder:"none",onClick:e=>{let{value:a}=e.target;eu().then(()=>{B({value:a,setFieldValue:ec,lowerType:eC,values:eS,validateForm:eu})})},children:[(0,a.jsxs)(_.BodyText,{children:["No change"," ",(0,a.jsxs)("span",{className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" unverified-label",children:["(",(0,a.jsx)("span",{"aria-label":"",className:l.default.dynamic([["e000d07ff08bfea3",[g.SPACING_UNITS.large,g.SPACING_UNITS.larger]],["b1e2ab4b31e5942d",[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default]]])+" unverified-label__icon icon-font",children:"a"})," ","unverified)"]}),":"]}),ex&&(0,a.jsx)(_.BodyText,{size:"large",spaceUnder:"none",children:ex}),eE&&(0,a.jsx)(_.BodyText,{size:"large",spaceUnder:"none",children:eE}),(0,a.jsx)(_.BodyText,{size:"large",spaceUnder:"none",children:`${e$?`${e$}, `:""}${eB?`${eB} `:""}${eD}`})]})]})]}),!eA&&eL&&(0,a.jsx)(_.BodyText,{isClickable:!0,onClick:()=>{eb(!0),v(!1)},spaceUnder:"large",children:en.show}),(0,a.jsx)(l.default,{id:"b1e2ab4b31e5942d",dynamic:[g.SPACING_UNITS.default,f.COLORS.HEX_EB4269_A10,g.SPACING_UNITS.default,g.SPACING_UNITS.default,g.FORM_BORDER_RADIUS,J.kiwicoBrandAccessibleColor,f.COLORS.HEX_DB2D56,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.smaller,g.SPACING_UNITS.default],children:`.icon-font.__jsx-style-dynamic-selector{font-family:Kiwi Icons;font-style:normal;font-weight:400}.address__wrapper.__jsx-style-dynamic-selector{margin-bottom:${g.SPACING_UNITS.default}}.address-correction.__jsx-style-dynamic-selector{background:${f.COLORS.HEX_EB4269_A10};padding:${g.SPACING_UNITS.default};margin-bottom:${g.SPACING_UNITS.default};border-radius:${g.FORM_BORDER_RADIUS}}.verified-label.__jsx-style-dynamic-selector{color:${J.kiwicoBrandAccessibleColor}}.verified-label__icon.__jsx-style-dynamic-selector{width:1rem;display:inline-block}.unverified-label.__jsx-style-dynamic-selector{color:${f.COLORS.HEX_DB2D56}}.unverified-label__icon.__jsx-style-dynamic-selector{position:relative;bottom:-.2rem;left:.1rem}.phone-fields.__jsx-style-dynamic-selector{margin-bottom:${g.SPACING_UNITS.smaller};display:grid;position:relative}.phone-fields__prefix.__jsx-style-dynamic-selector{top:29px;left:${g.SPACING_UNITS.smaller};z-index:1;position:absolute}.phone-fields__tooltip-container.__jsx-style-dynamic-selector{right:${g.SPACING_UNITS.smaller};top:${g.SPACING_UNITS.default};position:absolute}`}),(0,a.jsx)(l.default,{id:"e000d07ff08bfea3",dynamic:[g.SPACING_UNITS.large,g.SPACING_UNITS.larger],children:`.phone-fields--prefix-2 label input#shipping_phone_number,.phone-fields--prefix-2 label input#firstcrate_phone_number{padding-left:${g.SPACING_UNITS.large}}.phone-fields--prefix-3 label input#shipping_phone_number,.phone-fields--prefix-3 label input#firstcrate_phone_number{padding-left:${g.SPACING_UNITS.larger}}.phone-fields--prefix-4 label input#shipping_phone_number,.phone-fields--prefix-4 label input#firstcrate_phone_number{padding-left:3.125rem}`})]})};ea.propTypes={hasStoreItem:s.PropTypes.bool,hasProfessionsSub:s.PropTypes.bool,hasTopicsSub:s.PropTypes.bool,isCheckout:s.PropTypes.bool,isGroupGift:s.PropTypes.bool,isStoreAddress:s.PropTypes.bool,saveContactInfo:s.PropTypes.func,setNeedsExplicitlyValidateForm:s.PropTypes.func.isRequired,topicsSubNames:s.PropTypes.string,
5shippableCountries:s.PropTypes.array,leastShippableProductName:s.PropTypes.string},e.s(["Address",0,ea],462829)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.