1"use strict";(self.webpackChunkx0l8n_dba13b02_684c_4e3e_b7f7_be56f0bb6560=self.webpackChunkx0l8n_dba13b02_684c_4e3e_b7f7_be56f0bb6560||[]).push([[662],{11824:function(e,r,a){a.r(r),a.d(r,{default:function(){return h}});var t=a(88924),n=a(86326),o=a(86329),s=a(12201),i=a(75674),d=a(37615),l=a(54766);const c=()=>null;var u=(0,n.memo)(c),m=a(70790),b=a(25747);const f=()=>{const[e,,,r]=(0,d.Ay)(),a=(0,l.A)(),c=(0,t.A)(),{0:f,1:h}=(0,n.useState)(!1),{0:p,1:v}=(0,n.useState)(void 0),{0:C,1:T}=(0,n.useState)(!1),{0:y,1:g}=(0,n.useState)(),{formatMessage:N}=(0,o.A)(),{favoriteTheaters:A,addFavoriteTheater:_,removeFavoriteTheater:w,updateSubscription:S,refreshFavoriteTheaters:k,loading:E,error:M}=(0,b.Ay)();if(!a||3!==(null==e?void 0:e.cypherVersion))return null;const I=r=>{var t,n;return(0,i.tl)(a,e.token,{preferredCinemaId:null!==(t=r.preferredCinemaId)&&void 0!==t?t:e.preferredCinemaId,address1:e.address1,address2:e.address2,memberCardNumber:e.loyaltyCardNumber,city:e.city,gender:e.gender,firstname:e.firstName,lastname:e.lastName,dateOfBirth:e.dateOfBirth,sendNewsletter:""+(null!==(n=r.sendNewsletter)&&void 0!==n?n:e.sendNewsletter),contactByThirdParty:""+e.contactByThirdParty,country:e.country,preferredCinemaList:e.preferredCinemaList,numberOfChildren:e.houseSize,mobileNumber:e.mobileNumber,occupation:e.occupation,sponsorEmail:"",zipCode:e.zipCode})},B=e=>{T(!0),g(void 0),I({sendNewsletter:""+e}).then((e=>{T(!1),0!==e.peachCode&&g((0,i.vE)({formatMessage:N,response:e,fallback:m.A.genericError})),r()})).catch((()=>{T(!1),g(N(m.A.genericError))}))};return(0,s.Y)(u,{loading:E||C,favoriteTheaters:A,allTheaters:c,error:M||y,onAddTheater:e=>{_(e)},onRemoveTheater:e=>{w(e)},onTheaterSubscriptionChange:(r,a)=>{a&&!e.sendNewsletter&&B(!0),S({boxofficeCinemaId:r,subscribeToNewsletter:a})},onGlobalSubscriptionChange:B,onUpdateMainTheater:e=>{h(!0),v(void 0),I({preferredCinemaId:e}).then((e=>{h(!1),0!==e.peachCode&&v((0,i.vE)({formatMessage:N,response:e,fallback:m.A.mainTheaterError})),k(),r()})).catch((()=>{h(!1),v(N(m.A.mainTheaterError))}))},loadingMain:f,errorMain:p})};var h=(0,n.memo)(f)}}]);
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.