1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3307],{35422:function(e,t,n){"use strict";n.d(t,{Vl:function(){return v},dK:function(){return x},hP:function(){return w},nm:function(){return j}});var a=n(52676),r=n(65439),i=n.n(r),o=n(75271),s=n(12897),l=n(66216),d=n(99165),u=n(27342),c=n(79136),m=n(23640),p=n(47079),f=n(80287),h=n(93305),g=n(66428),y=n(18557),b=n(53720);let v=()=>[m.N,...Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:(t+1).toString()}))],x=e=>[m.N,...e.map((e,t)=>({label:e,value:t.toString()}))],w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1900;return[m.N,...Array.from({length:new Date().getFullYear()-e+1},(t,n)=>({label:(n+e).toString(),value:(n+e).toString()})).reverse()]},j=e=>{let{colorVariant:t,label:n}=e,{formatMessage:r}=(0,l.Z)(),{country:j,locale:{locale:M}}=(0,b.VJ)(),{formState:S,getValues:N,trigger:C}=(0,s.Gc)(),P=(0,s.qo)({name:"dobDay"}),k=(0,s.qo)({name:"dobMonth"}),T=(0,s.qo)({name:"dobYear"}),O=i()(S.errors,"dobDay")||i()(S.errors,"dobMonth")||i()(S.errors,"dobYear");(0,o.useEffect)(()=>{P&&k&&T&&C(["dobDay","dobMonth","dobYear"])},[P,k,T,C]);let L=N("country")?N("country").slug:j.code;return(0,a.jsxs)(c.X,{className:h.Pe,"data-test-id":"BirthdateFields",children:[(0,a.jsx)(d.J,{children:(0,a.jsx)(p.Z,{"data-test-id":"BirthdateFieldsLabel",mb:1,children:null!=n?n:r(y.formMessages.birthDate)})}),(0,a.jsx)(d.J,{children:(0,a.jsxs)(c.X,{"data-test-id":"BirthdateFieldsRow",children:[(0,a.jsx)(d.J,{xs:4,..."us"===L?{xsOrder:2}:{xsOrder:1},"data-test-id":"BirthdateFieldsDayCol",children:(0,a.jsx)(m.m,{"aria-label":r(g.i4.day),colorVariant:t,"data-test-id":"BirthdateFieldsDaySelect",name:"dobDay",options:v(),placeholder:r(g.i4.day),showError:!1})}),(0,a.jsx)(d.J,{xs:4,..."us"===L?{xsOrder:1}:{xsOrder:2},"data-test-id":"BirthdateFieldsMonthCol",children:(0,a.jsx)(m.m,{"aria-label":r(g.i4.month),colorVariant:t,"data-test-id":"BirthdateFieldsMonthSelect",name:"dobMonth",options:x((0,f.qI)(M)),placeholder:r(g.i4.month),showError:!1})}),(0,a.jsx)(d.J,{"data-test-id":"BirthdateFieldsYearCol",xs:4,xsOrder:3,children:(0,a.jsx)(m.m,{"aria-label":r(g.i4.year),colorVariant:t,"data-test-id":"BirthdateFieldsYearSelect",name:"dobYear",options:w(1900),placeholder:r(g.i4.year),showError:!1})})]})}),(0,a.jsx)(d.J,{children:P&&k&&T&&(0,a.jsx)(u.f,{"data-test-id":"BirthdateFieldsError",error:O})})]})}},85002:function(e,t,n){"use strict";n.d(t,{eI:function(){return f},nm:function(){return a.nm}});var a=n(35422),r=n(52676),i=n(66216),o=n(31093),s=n(51459),l=n(47079),d=n(66428),u=n(18557),c=n(74949);let m=(0,c.ZP)(s.k).withConfig({componentId:"sc-40848a36-0"})(["a{color:",";}"],e=>{let{theme:t}=e;return t.colors.primaryDark}),p=c.ZP.div.withConfig({componentId:"sc-40848a36-1"})(["margin-bottom:",";"],e=>{let{theme:t}=e;return t.spacing(2.5)}),f=e=>{let{action:t,disabled:n,termsOfUse:a}=e,{formatMessage:c}=(0,i.Z)();return(0,r.jsxs)(m,{flexDirection:"column",gridGap:"s075",children:[(0,r.jsx)(o.j,{"data-testid":"checkboxNewsletterConsent",disabled:n,marginLeft:!0,name:"newsletterConsent",children:(0,r.jsxs)(s.k,{flexDirection:"column",gridGap:"s075",children:[(0,r.jsx)(l.Z,{"data-testid":"AccountRegisterCheckbox-Text-NewsletterConsent",children:c(u.formMessages.newsletterConsent)}),(0,r.jsx)(l.Z,{"data-testid":"AccountRegisterCheckbox-Text-RevokeConsent",children:u.c4})]})}),(0,r.jsx)(p,{}),(0,r.jsxs)(s.k,{flexDirection:"column",gridGap:"s075",pl:4,children:[(0,r.jsx)(l.Z,{"data-testid":"AccountRegisterCheckbox-Text-PersonalDataPolicy",children:u.GX}),(0,r.jsx)(l.Z,{"data-testid":"AccountRegisterCheckbox-Text-AccountCreationConfirmationNote",children:(0,u.gi)(t,null!=a?a:c(d.i4.breitlingTermsOfUse))})]})]})}},71835:function(e,t,n){"use strict";n.d(t,{J:function(){return a.J}});var a=n(21848)},84375:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});let a=e=>{let t=null==e?void 0:e.split(" | ");return{name:null==t?void 0:t[0],code:null==t?void 0:t[1]}}},5299:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var a=n(73576),r=n.n(a),i=n(49697),o=n(17917),s=n(54036);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Tn;return{submitNotifyMe:async t=>{let n=t.products.map(e=>({...e,price:e.price.toString()})),a=(0,o.kp)(t.websiteCountryCode);try{let i=await e.fetchWithAuth(s.H.api.notifyMe.user,{method:"POST",headers:{"Content-Type":"application/json"},cache:"no-store",body:JSON.stringify({...t,products:n,...a})},{allowPassingTokenToThirdPartyDomains:!0});if(!i.ok){let e=await i.json();throw new(r())(e.message)}return i.json()}catch(e){var i,l;return{code:-1,msg:null!==(l=null!==(i=e.message)&&void 0!==i?i:e.props)&&void 0!==l?l:"Failed to submit notify me for user"}}},submitNotifyMeForGuest:async t=>{let n=t.products.map(e=>({...e,price:e.price.toString()})),a=(0,o.kp)(t.websiteCountryCode);try{let i=await e.fetchWithAuth(s.H.api.notifyMe.guestSubmit,{method:"POST",headers:{"Content-Type":"application/json"},cache:"no-store",body:JSON.stringify({...t,products:n,...a})},{allowPassingTokenToThirdPartyDomains:!0});if(!i.ok){let e=await i.json();throw new(r())(e.message)}return i.json()}catch(e){var i,l;return{code:-1,msg:null!==(l=null!==(i=e.message)&&void 0!==i?i:e.props)&&void 0!==l?l:"Failed to submit notify me for guest"}}},confirmNotifyMeForGuest:async t=>{try{let n=await e.fetchWithAuth("".concat(s.H.api.notifyMe.guestConfirm),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailToken:t}),cache:"no-store"},{allowPassingTokenToThirdPartyDomains:!0});if(!n.ok){let e=await n.json();throw new(r())(e.message)}return n.json()}catch(e){var n,a;return{code:-1,msg:null!==(a=null!==(n=e.message)&&void 0!==n?n:e.props)&&void 0!==a?a:"Failed to confirm notify me for guest"}}}}}},91199:function(e,t,n){"use strict";n.d(t,{SO:function(){return u},by:function(){return c},i4:function(){return d}});var a=n(52676),r=n(50833),i=n(8619),o=n(662),s=n(54036),l=n(66428);let d=(0,r.vU)({tellUsSomething:{id:"appointment.tellUsSomething",defaultMessage:"Tell us something...."},bookAppointment:{defaultMessage:"Book an appointment",id:"bookAppointment"},viewBoutiqueDetail:{defaultMessage:"View Boutique Details",id:"boutique.viewBoutiqueDetails"},personalAdvice:{defaultMessage:"Book your appointment in one of our Breitling Boutique to try on your favourite watches and receive personalized advice. Our appointment can also be organized virtually.",id:"appointment.personalAdvice"},chooseRetailer:{defaultMessage:"CHOOSE YOUR RETAILER",id:"appointment.chooseRetailer"},appointmentDate:{defaultMessage:"On which day would you like your appointment?",id:"appointment.appointmentDate"},storeText:{defaultMessage:"Store*",id:"appointment.storeText"},timeSlotText:{defaultMessage:"Select an available time slot:",id:"appointment.timeSlotText"},personalInfo:{defaultMessage:"PERSONAL INFORMATION",id:"appointment.personalInfo"}
1,bookAppointmentTo:{defaultMessage:"I WOULD LIKE TO BOOK AN APPOINTMENT TO:",id:"appointment.bookAppointmentTo"},legalText:{defaultMessage:'I would like to be kept informed by Breitling SA about offers and events related to Breitling products by email, telephone and SMS. You can revoke this consent at any time by sending a message to <a href="#" aria-label="Email data privacy team">[email protected]</a> or by clicking the "unsubscribe" button in out marketing emails.<br></br> By clicking "Book an appointment", you confirm you have read the Breitling <a href="https://www.breitling.com/us-en/privacy-policy/" aria-label="Read Breitling Privacy Policy in new tab" target="_blank" rel="noopener noreferrer">Privacy Policy</a> and have read and accepted <a href="https://www.breitling.com/us-en/terms-of-use/" aria-label="Read Breitling Terms of Use in new tab" target="_blank" rel="noopener noreferrer">Breitling terms of use.</a>',id:"appointment.legalText"},discoverCollections:{defaultMessage:"DISCOVER THE COLLECTIONS",id:"appointment.discoverCollections"},gratitudeText:{defaultMessage:"Thank you for booking an appointment on Breitling.com",id:"appointment.gratitudeText"},retailerInTouch:{defaultMessage:"Your retailer will be in touch to confirm your appointment",id:"appointment.retailerInTouch"},contactBoutiqueText:{defaultMessage:"For same day appointments, please contact the boutique directly by phone.",id:"appointment.contactBoutiqueText"},validAppointmentText:{defaultMessage:"The request is valid once the appointment has been confirmed by your selected boutique in the next step.",id:"appointment.validAppointmentText"},requirePhone:{defaultMessage:"Phone number is required",id:"appointment.requirePhone"},requirePhonePrefix:{defaultMessage:"Phone prefix is required",id:"appointment.requirePhonePrefix"},maxCharMsg:{defaultMessage:"50 characters maximum.",id:"appointment.maxCharMsg"},maxPhoneCharMsg:{defaultMessage:"20 characters maximum.",id:"appointment.maxPhoneCharMsg"},maxCommentsMsg:{defaultMessage:"3000 characters maximum.",id:"appointment.maxCommentsMsg"},requireFirstName:{defaultMessage:"First Name is required",id:"appointment.requireFirstName"},requireLastName:{defaultMessage:"Last Name is required",id:"appointment.requireLastName"},requireEmail:{defaultMessage:"Email is required",id:"appointment.requireEmail"},invalidEmail:{defaultMessage:"Invalid email address.",id:"appointment.invalidEmail"},requireField:{defaultMessage:"This field is required",id:"appointment.requireField"},requireRetailer:{defaultMessage:"Retailer is required",id:"appointment.requireRetailer"},changeStoreButtonText:{defaultMessage:"Change store",id:"appointment.changeStoreButtonText"},boutiquesWithWatch:{defaultMessage:"Here are the boutiques where the watch is available. Please select with which one you want to book your appointment.",id:"appointment.boutiquesWithWatch"},boutiquesWithSunglasses:{defaultMessage:"Here are the boutiques where the sunglasses are available. Please select with which one you want to book your appointment.",id:"appointment.boutiquesWithSunglasses"},selectRegionPlaceholder:{defaultMessage:"Select a region",id:"appointment.selectRegionPlaceholder"},selectCityPlaceholder:{defaultMessage:"Select a city",id:"appointment.selectCityPlaceholder"},selectBoutiquePlaceholder:{defaultMessage:"Select a boutique",id:"appointment.selectBoutiquePlaceholder"},firstNamePlaceHolder:{defaultMessage:"First name",id:"appointment.firstNamePlaceHolder"},lastNamePlaceHolder:{defaultMessage:"Last name",id:"appointment.lastNamePlaceHolder"},emailPlaceHolder:{defaultMessage:"Email",id:"appointment.emailPlaceHolder"},phonePlaceHolder:{defaultMessage:"Telephone Number",id:"appointment.phonePlaceHolder"},reasonPlaceHolder:{defaultMessage:"Select a reason",id:"appointment.reasonPlaceHolder"},discover_and_try:{defaultMessage:"Discover and try on the Breitling collection",id:"appointment.discoverAndTry"},find_a_new_strap:{defaultMessage:"Find a new strap for my Breitling",id:"appointment.findANewStrap"},take_care_of_my_breitling:{defaultMessage:"Take care of my Breitling(After Sales Service)",id:"appointment.takeCareOfMyBreitling"},afterSales:{defaultMessage:"AfterSales",id:"appointment.afterSales"},information:{defaultMessage:"Information",id:"appointment.information"},purchase:{defaultMessage:"Purchase",id:"appointment.purchase"},other:{defaultMessage:"Other",id:"appointment.other"},pickUp:{defaultMessage:"Pick Up my Order in Boutique",id:"appointment.pickUp"},noAvailableBoutiques:{defaultMessage:"We're sorry, there is no Breitling store available in your country.",id:"appointment.noAvailableBoutiques"},storeLocatorToBrowse:{defaultMessage:"You can use the Breitling Store locator to browse all our stores.",id:"appointment.storeLocatorToBrowse"},storeLocator:{defaultMessage:"Stores",id:"appointment.storeLocator"},btqAppointmentPhoneNumberError:{defaultMessage:"This value is not a valid phone number.",id:"btq.appointment.phoneNumberError"},findAStore:{defaultMessage:"Find a Store",id:"btq.appointment.findAStore"}}),u=(0,a.jsx)(i.Z,{defaultMessage:'I would like to be kept informed by Breitling SA and my preferred Boutique about Breitling offers, events, and other customer engagement activities through email, telephone, SMS, post, and WhatsApp. You can revoke this consent at any time by sending a message to {dataprivacyEmail} or by clicking the "unsubscribe" button in our marketing emails.',id:"btq.appointment.keepInformed",values:{dataprivacyEmail:(0,a.jsx)("span",{children:"[email protected]"})}}),c=(0,a.jsx)(i.Z,{defaultMessage:'By clicking "Book my appointment", you confirm you have read the {policyLink} and have read and accepted {breitlingTermsOfUse}.',id:"btq.appointment.confirmLegal",values:{breitlingTermsOfUse:(0,a.jsx)(o.Z,{href:s.H.termsOfUse.url(),rel:"noopener noreferrer",target:"_blank",children:(0,a.jsx)(i.Z,{...l.i4.breitlingTermsOfUse})}),policyLink:(0,a.jsx)(o.Z,{href:s.H.privacyPolicy.url(),rel:"noopener noreferrer",target:"_blank",children:(0,a.jsx)(i.Z,{...l.i4.breitlingPrivacyPolicy})})}})},7343:function(e,t,n){"use strict";n.d(t,{DO:function(){return y},HK:function(){return f}
1,NI:function(){return c},Pw:function(){return m},QE:function(){return l},Xv:function(){return b},YO:function(){return g},bh:function(){return h},bp:function(){return p},id:function(){return u},ok:function(){return d},ri:function(){return v}});var a=n(52676),r=n(8619),i=n(50833),o=n(662),s=n(47079);let l=(0,a.jsx)(r.Z,{defaultMessage:"New versions, new models, special events... Keep up to date with the latest Breitling news.",id:"newsletter.desc",values:{br:(0,a.jsx)("br",{})}}),d=(0,a.jsx)(r.Z,{defaultMessage:"Thank you for submitting your subscription. Customize your Newsletter Preferences anytime through My Account.",id:"newsletter.NewsLetterSubSuccessDescUser"}),u=(0,a.jsx)(r.Z,{defaultMessage:"Your unsubscription has been submitted.",id:"newsletter.newsLetterUnSubSuccessDescUser"}),c=(0,a.jsx)(r.Z,{defaultMessage:"We have sent an email to the address you entered during registration. Click on the link to confirm your email address. It may take a few minutes to receive a confirmation email. If you do not receive a confirmation email, be sure to check your spam folder.",id:"newsletter.subscriptionConfirmationMessage",values:{strong:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.jsx)(s.Z,{className:"newsletter-subscribed-title",mb:3,children:t})},br:(0,a.jsx)("br",{}),mailto:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.jsx)(o.Z,{className:"newsletter-subscribed-mailto",href:"mailto: ".concat(t),rel:"noreferrer",target:"_blank",children:t})}}}),m=(0,a.jsx)(r.Z,{defaultMessage:"Your subscription has been submitted.",id:"newsletter.newsLetterSubConfirmDescLine1Guest"}),p=(0,a.jsx)(r.Z,{defaultMessage:"The Breitling universe is at your fingertips.",id:"newsletter.newsLetterSubConfirmDescLine2Guest"}),f=(0,a.jsx)(r.Z,{defaultMessage:"Newsletter",id:"newsletter.newsletterTitle"}),h=(0,a.jsx)(r.Z,{defaultMessage:"Subscribe",id:"newsletter.newsLetterSubscribe"}),g=(0,a.jsx)(r.Z,{defaultMessage:"Subscribe Error",id:"newsletter.newsLetterSubscribeError"}),y=(0,a.jsx)(r.Z,{defaultMessage:"From new features to our latest collections and unique releases, be the first to know about our exclusive updates.",id:"newsletter.newsLetterViewExclusiveUpdates"}),b=(0,a.jsx)(r.Z,{defaultMessage:"Stay up-to-date on all the news from the world of Breitling by joining our squad.",id:"newsletter.newsLetterViewStayUpToDate"}),v=(0,i.vU)({newsLetterButton:{defaultMessage:"Submit",id:"".concat("newsletter",".newsLetterButton")}})},41489:function(e,t,n){"use strict";n.d(t,{l:function(){return F}});var a=n(52676),r=n(87901),i=n(75271),o=n(12897),s=n(66216),l=n(99165),d=n(51459),u=n(85002),c=n(91619),m=n(71835),p=n(93899),f=n(29109),h=n(56127),g=n(23640),y=n(47079),b=n(58518),v=n(98955),x=n(93305),w=n(38195),j=n(38860),M=n(69247),S=n(18557),N=n(7343),C=n(53720),P=n(64735),k=n(33404),T=n(91699),O=n(99275),L=n(1660);["Mr","Mrs","Ms"].map(e=>({label:e,value:e}));let B=e=>Object.values(v.NK.getInstance().getLanguages()).map(e=>({value:e.sfCode,label:e.name})).filter(t=>t.value===e)[0],I=e=>v.NK.getInstance().getSupportedCountries().map(e=>({value:e.code,label:e.name})).filter(t=>t.value===e)[0],A=function(e,t,n,a){var r,i,o,s,l;let d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5?arguments[5]:void 0,c=e(S.formMessages.requiredField),m=e(S.formMessages.invalidPhone),p=null,f=!1;return a&&a.metadata&&(p=(0,j.au)(a.metadata,w.PG.personalTitle),f=["true",!0].includes(null!==(r=(0,j.au)(a.metadata,w.PG.newsletterConsent))&&void 0!==r?r:"false")),(0,O.Ry)({title:(0,L.Fw)(e,t.code,null!=u?u:p),firstName:(0,L.Vg)(e,"first",null==a?void 0:a.firstName),lastName:(0,L.Vg)(e,"last",null==a?void 0:a.lastName),..."JP"===t.code&&{firstNameKanji:(0,L.Vg)(e,"firstKanji",null!==(o=(0,j.au)(null!==(i=null==a?void 0:a.metadata)&&void 0!==i?i:[],w.PG.first_name_kanji))&&void 0!==o?o:"",d),lastNameKanji:(0,L.Vg)(e,"lastKanji",null!==(l=(0,j.au)(null!==(s=null==a?void 0:a.metadata)&&void 0!==s?s:[],w.PG.last_name_kanji))&&void 0!==l?l:"",d)},phonePrefix:(0,O.Ry)({value:(0,O.Z_)(),label:(0,O.Z_)(),code:(0,O.Z_)()}
1).default((0,M.sd)(t.code)),phone:(0,O.Z_)().max(x.nH,e(S.formMessages.maxChars,{max:x.nH})).when("phonePrefix",{is:e=>!!e,then:e=>e.test("is-valid-phone",m,function(e){if(!e)return!0;let{phonePrefix:t}=this.parent,n="".concat(t.value).concat(e),a=(0,T.S)(n);return!!a&&a.isValid()}),otherwise:()=>(0,O.Z_)()}).default(""),email:(0,O.Z_)().required(c).matches(x.Gz,e(S.formMessages.invalidEmailAddress)).default((null==a?void 0:a.email)||""),language:(0,O.Ry)({value:(0,O.Z_)().required(c),label:(0,O.Z_)().required(c)}).default(B(n.sfCode)),country:(0,O.Ry)({value:(0,O.Z_)().required(c),label:(0,O.Z_)().required(c)}).default(I(t.code)),newsletterConsent:(0,O.Xg)().default(f).oneOf([!0],c),captcha:(0,O.Xg)().default(!1).oneOf([!0],c)})};var q=n(58256);let F=e=>{var t,n,T,O,L,B,I,F,Z,E,D,U,R,_,H,J,V,K,W,G,Y;let{disabled:z,handleSubmit:X,isProcessing:$=!1,source:Q="page"}=e,ee=(0,i.useRef)(null),[et,en]=(0,i.useState)(!1),[ea,er]=(0,i.useState)(!1),ei="modal"!==Q,{snapshot:{user:eo}}=(0,b.a)(),{formatMessage:es}=(0,s.Z)(),{country:el,locale:ed,query:{languageCode:eu}}=(0,C.VJ)(),ec=(0,v._7)(),em=A(es,el,ed,eo,ea,null===(t=ec.newsletter)||void 0===t?void 0:t.salutationDefaultValue),ep=null!==(K=null===(n=ec.newsletter)||void 0===n?void 0:n.countryOptions)&&void 0!==K?K:(0,k.Uh)(),ef={...em.getDefault(),country:null!==(Y=null==ep?void 0:ep.find(e=>e.value===el.code))&&void 0!==Y?Y:{label:el.name,locales:el.locales,name:el.name,slug:el.slug,value:el.code}},eh=(0,o.cI)({defaultValues:ef,resolver:(0,r.X)(em)}),eg=(0,k.$2)(eh),ey=eh.watch("captcha"),eb=eh.watch("country");(0,i.useEffect)(()=>{(null==eo?void 0:eo.id)&&(er(!0),eh.reset(ef))},[null==eo?void 0:eo.id]);let ev=null===(T=ec.newsletter)||void 0===T?void 0:T.needPhone,ex=null!==(W=null===(O=ec.newsletter)||void 0===O?void 0:O.languageOptions)&&void 0!==W?W:(0,k.OD)(eb.value),ew=ea||!(null===(L=ec.newsletter)||void 0===L?void 0:L.countryOptions),ej="JP"===el.code,eM=(0,j.au)(null!==(G=null==eo?void 0:eo.metadata)&&void 0!==G?G:[],w.PG.personalTitle);return(0,a.jsxs)(q.RV,{name:"sign-up-my-account",...eh,onSubmit:e=>{var t,n;X({...e,reCaptchaResponse:null!==(n=null===(t=ee.current)||void 0===t?void 0:t.getValue())&&void 0!==n?n:""})},children:[(0,a.jsx)(q.X2,{$widthLimit:ei,gapDensity:"none",children:"page"===Q&&(0,a.jsx)(l.J,{"data-testid":"NewsLetterFormPersonalData",children:(0,a.jsx)(y.Z,{scale:"h5",textAlign:"center",textTransform:"uppercase",children:es(S.formMessages.personalData)})})}),(0,a.jsx)(q.X2,{$widthLimit:ei,gapDensity:"none",children:(0,a.jsx)(l.J,{md:6,children:(0,a.jsx)(c.$H,{colorVariant:"grey",countryCode:el.code,isDisabled:ea&&!!(ej&&"Mrs"===eM?"Ms":eM)})})}),(0,a.jsx)(q.X2,{$widthLimit:ei,gapDensity:"none",children:(0,a.jsx)(k.g1,{arr:[{component:(0,a.jsx)(l.J,{md:"page"===Q?12:6,children:(0,a.jsx)(p.U,{autoComplete:"given-name",className:x.Pe,colorVariant:"page"===Q?"white":"grey","data-testid":"NewsLetterFormFirstName",disabled:ea,name:"firstName",placeholder:es(ej?S.formMessages.firstNameForJP:S.formMessages.firstName),required:!0,style:{borderBottom:"1px solid hsla(0,0%,39%,.3)"}})},"firstName"),order:(0,k.xU)(el,ed,"first")},{component:(0,a.jsx)(l.J,{md:"page"===Q?12:6,children:(0,a.jsx)(p.U,{autoComplete:"family-name",className:x.Pe,colorVariant:"page"===Q?"white":"grey","data-testid":"NewsLetterFormLastName",disabled:ea,name:"lastName",placeholder:es(ej?S.formMessages.lastNameForJP:S.formMessages.lastName),required:!0,style:{borderBottom:"1px solid hsla(0,0%,39%,.3)"}})},"lastName"),order:(0,k.xU)(el,ed,"last")},...ej?[{component:(0,a.jsx)(l.J,{md:"page"===Q?12:6,children:(0,a.jsx)(p.U,{autoComplete:"given-name",className:x.Pe,colorVariant:"page"===Q?"white":"grey","data-testid":"NewsLetterFormFirstNameKanji",disabled:ea,name:"firstNameKanji",placeholder:es(S.formMessages.firstNameKanji),required:!0,style:{borderBottom:"1px solid hsla(0,0%,39%,.3)"}})},"firstNameKanji"),order:(0,k.xU)(el,ed,"firstKanji")},{component:(0,a.jsx)(l.J,{md:"page"===Q?12:6,children:(0,a.jsx)(p.U,{autoComplete:"family-name",className:x.Pe,colorVariant:"page"===Q?"white":"grey","data-testid":"NewsLetterFormLastNameKanji",disabled:ea,name:"lastNameKanji",placeholder:es(S.formMessages.lastNameKanji),required:!0,style:{borderBottom:"1px solid hsla(0,0%,39%,.3)"}})},"lastNameKanji"),order:(0,k.xU)(el,ed,"lastKanji")}]:[]]})}),(0,a.jsxs)(q.X2,{$widthLimit:ei,gapDensity:"none",children:[(0,a.jsx)(l.J,{children:(0,a.jsx)(p.U,{autoComplete:"email",className:x.Pe,color
1Variant:"page"===Q?"white":"grey","data-testid":"NewsLetterFormEmail",disabled:ea,id:"inputEmail",name:"email",placeholder:es(S.formMessages.email),required:!0,style:{borderBottom:"1px solid hsla(0,0%,39%,.3)"},type:"email"})}),"page"===Q&&(0,a.jsx)(l.J,{"data-testid":"NewsLetterFormLanguageCategory",children:(0,a.jsx)(y.Z,{scale:"h5",textAlign:"center",textTransform:"uppercase",children:es(S.formMessages.language)})})]}),ev&&(0,a.jsxs)(q.X2,{$widthLimit:ei,gapDensity:"none",children:[(0,a.jsx)(l.J,{md:3,xs:4,children:(0,a.jsx)(g.m,{"aria-label":es(S.formMessages.phone),colorVariant:"page"===Q?"white":"grey","data-test-id":"SignUpViewPhonePrefixSelectField",name:"phonePrefix",options:(0,M.t7)(),phonePrefixDisplayFormat:"dialCode",styles:{control:e=>({...e,borderBottom:"1px solid rgba(99, 99, 99, 0.3)"})}})}),(0,a.jsxs)(l.J,{md:9,xs:8,children:[(0,a.jsx)(p.U,{autoComplete:"phone",className:x.Pe,colorVariant:"page"===Q?"white":"grey","data-test-id":"SignUpViewPhoneInputField",id:"SignUpViewPhoneInputField",name:"phone",pattern:"[0-9]+",placeholder:es(S.formMessages.mobile),style:{borderBottom:"1px solid hsla(0,0%,39%,.3)"},type:"text"}),(0,a.jsx)(y.Z,{color:"secondaryGrey",scale:"p3",textAlign:"right",children:eg})]})]}),(0,a.jsxs)(q.X2,{$widthLimit:ei,gapDensity:"none",children:[(0,a.jsx)(l.J,{md:"page"===Q?12:6,children:(0,a.jsx)(g.m,{colorVariant:"page"===Q?"white":"grey","data-testid":"NewsLetterFormLanguage",isDisabled:ea,name:"language",options:ex,placeholder:es(S.formMessages.language),styles:{control:e=>({...e,borderBottom:"1px solid rgba(99, 99, 99, 0.3)"})}})}),(0,a.jsx)(l.J,{md:"page"===Q?12:6,children:(0,a.jsx)(g.m,{colorVariant:"page"===Q?"white":"grey",isDisabled:ew,name:"country",options:ep,placeholder:es(S.formMessages.country),styles:{control:e=>({...e,borderBottom:"1px solid rgba(99, 99, 99, 0.3)"})}})}),(0,a.jsx)(l.J,{md:12,children:(0,a.jsx)(y.Z,{color:"secondaryGrey",scale:"p3",textAlign:"right",children:es(S.formMessages.mandatoryFields)})}),(0,a.jsx)(q.l5,{"data-testid":"NewsLetterFormAccountRegisterCheckbox",children:(0,a.jsx)(u.eI,{action:es(N.ri.newsLetterButton)})}),(0,a.jsx)(l.J,{children:(0,a.jsx)(h.e,{ref:ee,"data-testid":"checkboxCaptcha",languageCode:eu,name:"captcha",onChange:en,validation:!1})}),(0,a.jsx)(l.J,{children:(0,a.jsx)(d.k,{justifyContent:"center",children:(0,a.jsx)(f.m,{"data-testid":"NewsLetterFormButtonSubmit",disabled:$||!ey||et||z,isProcessing:$||et,label:es(N.ri.newsLetterButton),leftContent:(null===P.r||void 0===P.r?void 0:null===(F=P.r.components)||void 0===F?void 0:null===(I=F.newsLetter)||void 0===I?void 0:null===(B=I.button)||void 0===B?void 0:B.icon)&&(0,a.jsx)(m.J,{...null===P.r||void 0===P.r?void 0:null===(D=P.r.components)||void 0===D?void 0:null===(E=D.newsLetter)||void 0===E?void 0:null===(Z=E.button)||void 0===Z?void 0:Z.icon}),style:null===P.r||void 0===P.r?void 0:null===(_=P.r.components)||void 0===_?void 0:null===(R=_.newsLetter)||void 0===R?void 0:null===(U=R.button)||void 0===U?void 0:U.style,type:"submit",variant:null===P.r||void 0===P.r?void 0:null===(V=P.r.components)||void 0===V?void 0:null===(J=V.newsLetter)||void 0===J?void 0:null===(H=J.button)||void 0===H?void 0:H.variant})})})]})]})}},58256:function(e,t,n){"use strict";n.d(t,{Dq:function(){return c},RV:function(){return p},X2:function(){return u},l5:function(){return f},pu:function(){return m},yh:function(){return d}});var a=n(74949),r=n(52059),i=n(99165),o=n(51459),s=n(30713),l=n(79136);let d=(0,a.ZP)(r.x).withConfig({componentId:"sc-42c05271-0"})([""," max-width:500px;"],e=>{let{$background:t}=e;return(0,a.iv)(["background:",";"],null!=t?t:"#fff")});(0,a.ZP)(r.x).withConfig({componentId:"sc-42c05271-1"})(["display:block;overflow:hidden;width:100vw;height:30vh;position:relative;",""],e=>{let{theme:t}=e;return(0,a.iv)(["","{min-height:300px;}","{min-height:300px;}"],t.media.sm.up,t.media.md.up)});let u=(0,a.ZP)(l.X).withConfig({componentId:"sc-42c05271-2"})(["margin:1rem;",""],e=>{let{$widthLimit:t=!0,theme:n}=e;return(0,a.iv)(["grid-gap:",";","{max-width:",";}"],n.spacing(2),n.media.md.up,t?"388px":"")}),c=(0,a.ZP)(o.k).withConfig({componentId:"sc-42c05271-3"})(["display:flex;flex-direction:column;margin:0 auto;padding:",";",""],e=>{let{theme:t}=e;return t.spacing(0,2)},e=>{let{theme:t}=e;return(0,a.iv)(["","{max-width:404px;}"],t.media.md.up)}),m=(0,a.ZP)(l.X).withConfig({componentId:"sc-42c05271-4"})(["margin:1rem 0;",""],e=>{let{theme:t}=e;return(0,a.iv)(["grid-gap:",";","{max-width:400px;}"],t.spacing(2),t.media.md.up)}),p=(0,a.ZP)(s.R).withConfig({componentId:"sc-42c05271-5"})(["&&{",";}"],e=>{let{theme:t}=e;return(0,a.iv)(["",""],t.components.newsLetter.formFontSize&&(0,a.iv)(["label,input,div[class$='control'],div[class$='menu']{font-size:",";}"],t.components.newsLetter.formFontSize))}),f=(0,a.ZP)(i.J).withConfig({componentId:"sc-42c05271-6"})(["",";"],e=>{let{theme:t}=e;return(0,a.iv)(["p{"," ","}"],t.components.newsLetter.footerFontSize&&(0,a.iv)(["font-size:",";"],t.components.newsLetter.footerFontSize),t.components.newsLetter.footerLineHeight&&(0,a.iv)(["line-height:",";"],t.components.newsLetter.footerLineHeight))})},93307:function(e,t,n){"use strict";n.r(t),n.d(t,{NotifyMeModal:function(){return D}});var a=n(52676),r=n(75271),i=n(38539),o=n(66230),s=n(45676),l=n(69752),d=n(8247),u=n(66216),c=n(91619),m=n(84375),p=n(16939),f=n(16961),h=n(47079),g=n(50659),y=n(5299),b=n(93911),v=n(30620),x=n(44729),w=n(57333);let j=(0,n(50833).vU)({firstToKnow:{id:"notifyMe.firstToKnow",defaultMessage:"Be the first to know when they arrive in store."},subscribedMsg:{id:"notifyMe.subscribedMsg",defaultMessage:"Your subscription has been submitted."},subscribedMsgGuest:{id:"notifyMe.subscriptionConfirmationMessage",defaultMessage:"We have sent an email to the address you entered during registration. Click on the link to confirm your email address. It may take a few minutes to receive a confirmation email. If you do not receive a confirmation email, be sure to check your spam folder."},title:{id:"notifyMe.title",defaultMessage:"NOTIFY ME"},emptyResults:{id:"notifyMe.emptyResults",defaultMessage:"Failed to get product information."}});var M=n(97468),S=n(31177),N=n(53720),C=n(84643),P=n(41489);let k=e=>{let{caseMaterial:t,dialColor:n,handleSubmit:r,productName:i}=e,{formatMessage:o}=(0,u.Z)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{color:"secondary","data-test-id":"NotifyFormStateTypography1",fontWeight:"regular",mt:4,scale:"h5",textAlign:"center",textTransform:"uppercase",children:i}),(t||n)&&(0,a.jsx)(h.Z,{color:"secondary","data-test-id":"NotifyFormStateTypography2",fontWeight:"regular",scale:"h5",textAlign:"center",textTransform:"uppercase",children:[t,n].filter(
1Boolean).join(" - ")}),(0,a.jsx)(h.Z,{color:"default","data-test-id":"NotifyFormStateTypography3",mb:2,mt:1,textAlign:"center",children:o(j.firstToKnow)}),(0,a.jsx)(P.l,{"data-test-id":"NotifyFormStateNewsLetterForm",handleSubmit:r,source:"modal"})]})};var T=n(52059),O=n(25276),L=n(91199),B=n(74949),I=n(29109),A=n(42433);let q=(0,B.ZP)(I.m).withConfig({componentId:"sc-e87ba5de-0"})(["width:294px;height:48px;margin-top:32px;margin-bottom:40px;","{max-width:373px;}"],A.rS.media.md.up),F=(0,B.ZP)(T.x).withConfig({componentId:"sc-e87ba5de-1"})(["display:flex;justify-content:center;"]),Z=e=>{let{caseMaterial:t,dialColor:n,nameWithSalutation:r,onClose:i,productName:o}=e,{formatMessage:s}=(0,u.Z)(),{paths:l,push:d,query:c}=(0,O.t)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(T.x,{"data-testid":"SubscribedStateBox",children:[(0,a.jsx)(h.Z,{color:"secondary","data-testid":"SubscribedStateProductName",fontWeight:"regular",mt:4,scale:"h5",textAlign:"center",textTransform:"uppercase",children:o}),(t||n)&&(0,a.jsx)(h.Z,{color:"secondary","data-testid":"SubscribedStateCaseMaterial-DialColor",fontWeight:"regular",mb:2,scale:"h5",textAlign:"center",textTransform:"uppercase",children:[t,n].filter(Boolean).join(" - ")}),(0,a.jsx)(h.Z,{color:"default","data-testid":"SubscribedStateFirstToKnow",textAlign:"center",children:s(j.firstToKnow)}),(0,a.jsx)(h.Z,{color:"secondary","data-testid":"SubscribedStateSalutationName",fontWeight:"bold",mt:4,scale:"h5",textAlign:"center",textTransform:"uppercase",children:r}),(0,a.jsx)(h.Z,{color:"default","data-testid":"SubscribedStateMsg",textAlign:"center",children:s(C.KL.isAuthenticated?j.subscribedMsg:j.subscribedMsgGuest)})]}),(0,a.jsx)(F,{"data-testid":"SubscribedStateFlexButtonBox",children:(0,a.jsx)(q,{"data-testid":"SubscribedStateDiscoverCollections",onClick:()=>{d(l.watches.collection.asPath({slug:c.collection})),i()},size:"l",children:s(L.i4.discoverCollections)})})]})},E=(0,B.ZP)(h.Z).withConfig({componentId:"sc-7add543d-0"})(["text-transform:uppercase;text-align:center;",""],e=>{let{theme:t}=e;return(0,B.iv)(["font-weight:",";font-family:",";font-size:",";margin:0 "," ",";"],t.fontWeights.bold,t.fontFamilies.italianPlate,t.fontSizes.h4,t.spacing(2),t.spacing(2))}),D=e=>{let{isOpen:t,onClose:n,sku:o=""}=e,{locale:s}=(0,N.VJ)(),[l,d]=(0,r.useState)(!1),[v,M]=(0,r.useState)(""),{formatMessage:S}=(0,u.Z)(),[P,T]=(0,r.useState)(void 0),{submitNotifyMe:O,submitNotifyMeForGuest:L}=(0,y.x)(),[B,I]=(0,r.useState)(!1),{sendEcommerceEventBySkus:A,sendEvent:q}=(0,g.o)(),F=async e=>{let{country:t,currency:n,email:a,firstName:r,firstNameKanji:i,language:s,lastName:l,lastNameKanji:u,newsletterConsent:m,price:p,productName:f,productPath:h,reCaptchaResponse:g,title:y}=e;if(!m)return;let b=(0,w.ix)(t.value,s.value),v={email:a,productLink:["https://www.breitling.com/",b,h].join(""),salutation:y.value,websiteCountryCode:t.value,products:[{sku:o,price:p,theCurrency:n,productName:f}],url_country_language_slug:b};try{let e;if(I(!0),C.KL.isAuthenticated)e=await O({...v,languageCode:s.value});else{let t={...v,languageCode:s.value,firstName:r,lastName:l,recaptchaResponse:g,...!!i&&{firstNameKanji:i},...!!u&&{lastNameKanji:u}};e=await L(t)}I(!1),200===e.code?(A({event:x.W1.NOTIFY_ME,skus:[o]}),M("".concat((0,c.PG)(S,t.value,y.value),"\n ").concat(r," ").concat(l)),d(!0)):T({code:e.code,msg:e.msg})}catch(e){I(!1)}};(0,r.useEffect)(()=>{t||d(!1)},[t]),(0,r.useEffect)(()=>{t&&q({event:x.W1.POPIN_VIEW,popin_title:x.cq.notifyMe})},[t]);let D=()=>{q({event:x.W1.POPIN_CLOSE,popin_title:x.cq.notifyMe}),n()};return(0,a.jsxs)(f.u,{"data-test-id":"NotifyMeModal",gutters:!0,isOpen:t,maxWidth:"sm",onClose:D,children:[(0,a.jsx)(f.u.Header,{"data-test-id":"NotifyMeModalHeader",divider:!0,onClose:D,children:(0,a.jsx)(E,{children:S(j.title)})}),(0,a.jsx)(f.u.Body,{"data-test-id":"NotifyMeModalBody",children:B?(0,a.jsx)(p.a,{"data-test-id":"NotifyMeModalLoader"}):(0,a.jsxs)(_,{sku:o,children:[(0,a.jsx)(U,{"data-test-id":"NotifyMeModalLoadingIndicator"}),(0,a.jsx)(R,{"data-test-id":"NotifyMeModalNoResults"}),(0,a.jsx)(i.m,{"data-test-id":"NotifyMeModalHits",hitComponent:e=>{var t,r;let{hit:i}=e,o=null===(t=i.case)||void 0===t?void 0:t[s.code.toUpperCase()],d=o?(0,m._)(o).name:void 0,u=null===(r=i.dial_color)||void 0===r?void 0:r[s.code.toUpperCase()],c=u?(0,m._)(u).name:void 0,p=(0,b.Iy)(i);return(0,a.jsxs)("div",{"data-test-id":"NotifyMeModalHit-".concat(i.objectID),children:[l?(0,a.jsx)(Z,{caseMaterial:d,"data-test-id":"NotifyMeModalSubscribedState-".concat(i.objectID),dialColor:c,nameWithSalutation:v,onClose:n,productName:i.name[s.code.toUpperCase()]}):(0,a.jsx)(k,{caseMaterial:d,"data-test-id":"NotifyMeModalNotifyForm-".concat(i.objectID),dialColor:c,handleSubmit:e=>{var t;return F({...e,currency:i.currency,price:i.price,productName:null!==(t=i.name[s.code.toUpperCase()])&&void 0!==t?t:"",productPath:p})},productName:i.name[s.code.toUpperCase()]}),P&&P.msg&&(0,a.jsx)(h.Z,{color:"error","data-test-id":"NotifyMeModalError-".concat(i.objectID),margin:2,scale:"p3",textAlign:"center",children:P.msg})]},i.objectID)},transformItems:e=>e.length?[e[0]]:[]})]})})]})},U=()=>{let{status:e}=(0,o.b)();return"loading"===e||"stalled"===e?(0,a.jsx)(p.a,{"data-test-id":"NotifyMeModalLoadingIndicator"}):null},R=()=>{let{status:e}=(0,o.b)(),{hits:t}=(0,s.O)(),{formatMessage:n}=(0,u.Z)();return!["loading","stalled"].includes(e)&&t&&0===t.length?(0,a.jsx)(h.Z,{"data-test-id":"NotifyMeModalNoResults",m:2,scale:"p2",textAlign:"center",children:n(j.emptyResults)}):null},_=e=>{let{children:t,sku:n}=e,i=(0,r.useContext)(S.R),o=(0,r.useContext)(M.R),s=(0,v.O)({isPreview:o});return n?(0,a.jsxs)(l.p,{indexName:(0,b.Jb)("PRODUCT",i),insights:!1,searchClient:s,children:[(0,a.jsx)(d.T,{distinct:!0,facetFilters:"objectID:".concat(n),restrictSearchableAttributes:["objectID"]}),t]}):(0,a.jsx)(a.Fragment,{})};D.displayName="NotifyMeModal"},73576:function(e,t,n){e.exports=n(92992)},66230:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var a=n(75271),r=n(84624),i=n(86663),o=n(82361),s=n(72670);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,s=[],l=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){d=!0,r=e}
1finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function c(){var e,t,n,u,c,m,p,f,h,g,y,b,v,x,w,j,M,S,N,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},P=C.catchError,k=(0,r.z)(),T=(e=(0,r.z)(),n=(t=(0,s.a)()).getIndexId(),c=(u=d((0,a.useState)(function(){return e.getUiState()}),2))[0],m=u[1],p=c[n],h=(f=d((0,a.useState)(function(){return e.renderState}),2))[0],g=f[1],y=h[n]||{},b=(0,a.useCallback)(function(t){e.setUiState(t)},[e]),v=(0,a.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,a.useEffect)(function(){function t(){m(e.getUiState()),g(e.renderState)}return e.addListener("render",t),function(){e.removeListener("render",t)}},[e]),{uiState:c,setUiState:b,indexUiState:p,setIndexUiState:v,renderState:h,indexRenderState:y}),O=T.uiState,L=T.setUiState,B=T.indexUiState,I=T.setIndexUiState,A=T.renderState,q=T.indexRenderState,F=(x=(0,r.z)(),w=(0,s.a)(),S=(M=function(e){if(Array.isArray(e))return e}(j=(0,a.useState)(function(){return(0,o.E)(w)}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,s=[],l=!0,d=!1;try{for(i=(n=n.call(e)).next;!(l=(a=i.call(n)).done)&&(s.push(a.value),2!==s.length);l=!0);}catch(e){d=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw r}}return s}}(j,2)||function(e,t){if(e){if("string"==typeof e)return l(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,2)}}(j,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],N=M[1],(0,a.useEffect)(function(){function e(){var e=w.getResults();null!==e&&N({results:e,scopedResults:w.getScopedResults()})}return x.addListener("render",e),function(){x.removeListener("render",e)}},[x,w]),S),Z=F.results,E=F.scopedResults,D=(0,a.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return k.use.apply(k,t),function(){k.unuse.apply(k,t)}},[k]),U=(0,a.useCallback)(function(){k.refresh()},[k]);return(0,i.L)(function(){if(P){var e=function(){};return k.addListener("error",e),function(){return k.removeListener("error",e)}}return function(){}},[k,P]),{results:Z,scopedResults:E,uiState:O,setUiState:L,indexUiState:B,setIndexUiState:I,renderState:A,indexRenderState:q,addMiddlewares:D,refresh:U,status:k.status,error:k.error}}},38539:function(e,t,n){"use strict";n.d(t,{m:function(){return m}});var a=n(75271),r=n(45676);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var o=["hits","sendEvent","hitComponent","classNames"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function l(e){var t=e.hit;return a.createElement("div",{style:{wordBreak:"break-all"}},JSON.stringify(t).slice(0,100),"â¦")}function d(e){var t=e.hits,n=e.sendEvent,r=e.hitComponent,d=void 0===r?l:r,u=e.classNames,c=void 0===u?{}:u,m=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,o);return a.createElement("div",s({},m,{className:i("ais-Hits",c.root,0===t.length&&i("ais-Hits--empty",c.emptyRoot),m.className)}),a.createElement("ol",{className:i("ais-Hits-list",c.list)},t.map(function(e){return a.createElement("li",{key:e.objectID,className:i("ais-Hits-item",c.item),onClick:function(){n("click:internal",e,"Hit Clicked")},onAuxClick:function(){n("click:internal",e,"Hit Clicked")}},a.createElement(d,{hit:e,sendEvent:n}))})))}var u=["escapeHTML","transformItems"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function m(e){var t=e.escapeHTML,n=e.transformItems,i=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,u),o=(0,r.O)({escapeHTML:t,transformItems:n},{$$widgetType:"ais.hits"}),s=o.hits,l=o.sendEvent;return a.createElement(d,c({},i,{hits:s,sendEvent:l}))}}}]); 2//# sourceMappingURL=3307.0.0.0-e3e2e7d.js.map
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.