1"use strict";(self.webpackChunkaweb=self.webpackChunkaweb||[]).push([[2422,2678,3742,4204,4371,5703,7472,8855,10689,19886,21525,22682,31470,33834,33902,35485,38539,40030,40544,40592,43474,44674,47166,48281,53626,54667,63810,67151,74097,76091,76795,87275,88105,89654,91905,95409,98991,99342],{77728:(e,t,o)=>{o.d(t,{A:()=>s});var i=o(2763),n=o(30682),r=o(8833);function s(e,t){const o=(0,n.wA)();return(0,r.useMemo)(()=>Array.isArray(e)?e.map(e=>(0,i.zH)(e,o)):(0,i.zH)(e,o),t?[o,...t]:[o])}},29028:(e,t,o)=>{o.d(t,{A:()=>n});var i=o(8833);function n({container:e,handler:t,listenerConditional:o=!0},n){const r=(0,i.useRef)(!1),s=o=>{"touchend"===o.type&&(r.current=!0),"mousedown"===o.type&&r.current||e.current&&!e.current.contains(o.target)&&t(o)};(0,i.useEffect)(()=>(o&&(document.addEventListener("mousedown",s),document.addEventListener("touchend",s)),()=>{document.removeEventListener("mousedown",s),document.removeEventListener("touchend",s)}),n)}},94830:(e,t,o)=>{o.d(t,{A:()=>f});var i=o(8833),n=o(77728),r=o(6261),s=o(92924),l=o(72880),a=o(63821),c=o(30682);const{FIELD_STATUS_MANDATORY:d,FIELD_STATUS_OPTIONAL:u,ISSUING_AUTHORITY_FIELD_COUNTRIES:_,ISSUING_AUTHORITIES_BY_COUNTRY:p}=a.Cn,f=(e,t=!1,o=!0)=>{const[a,f]=(0,i.useState)(null),g=(0,c.d4)(r.i),I=(0,c.d4)(r.Y),{getCountries:h,getStatesOrProvinces:m}=(0,n.A)(l),y=((e,t)=>{const o={shouldShowIssueDate:!1,shouldShowExpirationDate:!1,shouldShowBothIssueAndExpirationDate:!1,shouldShowSubdivisionField:!1,shouldShowIssuingAuthorityField:!1,issuingAuthorities:null},{country_code:i,country_content:n={}}=e||{},{license_issue_date:r,license_expiry_date:s,drive_type_filter:l}=n;r===d&&(o.shouldShowIssueDate=!0),s===d&&(o.shouldShowExpirationDate=!0),r===u&&s===u&&(o.shouldShowIssueDate=!0,o.shouldShowExpirationDate=!0,o.shouldShowBothIssueAndExpirationDate=!0),o.driveTypeFilter=l;const a=null==t?void 0:t[i];o.shouldShowSubdivisionField=!(null==a||!a.length);const c=_.includes(i),f=p[i]||a;var g;return c&&f&&(o.shouldShowIssuingAuthorityField=!0,o.issuingAuthorities=((g=p[i])?[{country_subdivision_code:g,country_subdivision_name:g}]:null)||a),o})(a,I);return((e,t,o)=>{const n=(0,c.d4)(e=>(0,s.h)(e,{endpoint:"location/countries-sorted-by-name"}));(0,i.useEffect)(()=>{null!=e&&e.length||n||t(o)},[])})(g,h,o),((e,t,o,n)=>{(0,i.useEffect)(()=>{const i=null==e?void 0:e.country_code;n||!i||null!=t&&t[i]||o(i)},[e])})(a,I,m,t),((e,t,o,n)=>{(0,i.useEffect)(()=>{if(!t&&e&&null!=n&&n.length){const t=n.find(({country_code:t})=>t===e);o(t)}},[e,null==n?void 0:n.length])})(e,a,f,g),{selectedCountry:a,setSelectedCountry:f,countryConfig:y,countries:g,statesOrProvinces:I}}},92875:(e,t,o)=>{o.d(t,{BF:()=>T,Oh:()=>m,PP:()=>I,S8:()=>h,_O:()=>f,ez:()=>E,iB:()=>y,je:()=>A,jw:()=>v,kI:()=>C,lP:()=>P,s3:()=>p,yE:()=>b,zu:()=>F});var i=o(94653),n=o(55659),r=o(8248),s=o(76404),l=o(47444),a=o(14076),c=o(94059),d=o(37322);const u=e=>e.getIn(r.By),_=e=>e.getIn(s.pq,(0,n.Map)({})),p=e=>e.getIn(s.nZ,!1),f=e=>e.getIn(s.p6,!1),g=e=>{const t=(e=>e.getIn(s.$U,(0,n.Map)({})))(e);return!!t.get("loyalty_number")},I=e=>{const t=g(e),o=!!u(e);return t&&!o},h=e=>{const t=g(e),o=!!u(e);return!t||t&&o},m=e=>{const t=(e=>e.getIn(s.Fj,(0,n.Map)({})))(e),o=!!t.get("driverlicense_details_present"),i=!!t.get("address_details_present"),r=!!t.get("contact_details_present");return{driverProfileComplete:o,addressComplete:i,contactComplete:r,contactProfileComplete:i&&r,ociComplete:p(e)}},y=(0,i.Mz)([m,f],({driverProfileComplete:e,contactProfileComplete:t},o)=>(!e||!t)&&o),v=e=>{const t=y(e),o=!!u(e);return t&&!o},b=e=>{const t=_(e),o=!(null==t||!t.getIn(["profile","individual_id"])),i=g(e),{ociComplete:n}=m(e),r=u(e),l=!!r,a=null==r?void 0:r.getIn(["profile","basic_profile","first_name"]),c=d.A.url.getCurrentPageHash(),p=(e=>e.getIn(s.KM))(e)||"";return{...d.A.checkin.getStepsContent(c,a,{isProfileFound:o,isOCIProfileComplete:n,isOCIProfileLoyalty:i,isUserAuthenticated:l}),stepCounter:d.A.checkin.parseStepCounter(c,p)}},C=(0,i.Mz)([b],e=>e.stepCounter.current===e.stepCounter.total),S=(0,i.Mz)([_],e=>({contact:e.getIn(["eligible_for_copy_profile","copy_address_profile"],!1)&&e.getIn(["eligible_for_c
1opy_profile","copy_emails"],!1)&&e.getIn(["eligible_for_copy_profile","copy_phones"],!1),license:e.getIn(["eligible_for_copy_profile","copy_license_profile"],!1)})),A=(0,i.Mz)([_,S,f],(e,t,o)=>({individual_id:e.getIn(["profile","individual_id"]),basic_profile:{first_name:e.getIn(["profile","basic_profile","first_name"]),last_name:e.getIn(["profile","basic_profile","last_name"]),birth_date:e.getIn(["profile","basic_profile","birth_date"])},license_profile:{country_code:e.getIn(["license_profile","country_code"]),country_name:e.getIn(["license_profile","country_name"]),country_subdivision_code:e.getIn(["license_profile","country_subdivision_code"]),issuing_authority:e.getIn(["license_profile","issuing_authority"]),license_number:e.getIn(["license_profile","license_number"]),license_expiration_date:e.getIn(["license_profile","license_expiration_date"]),license_issue_date:e.getIn(["license_profile","license_issue_date"]),birth_date:e.getIn(["license_profile","birth_date"])},address_profile:{street_addresses:d.A.safeToJS(e.getIn(["address_profile","street_addresses"]),[]),country_name:e.getIn(["address_profile","country_name"]),country_code:e.getIn(["address_profile","country_code"]),country_subdivision_code:e.getIn(["address_profile","country_subdivision_code"]),city:e.getIn(["address_profile","city"]),postal:e.getIn(["address_profile","postal"])},contact_profile:{phones:d.A.safeToJS(e.getIn(["contact_profile","phones"]),[]),email:e.getIn(["contact_profile","email"],"")},copy_eligible:e.hasIn(["eligible_for_copy_profile"]),eligible_for_copy:t,loyalty_data:d.A.safeToJS(e.getIn(["profile","basic_profile","loyalty_data"],{})),profile_found:o})),w=(0,i.Mz)([_],e=>({ociFirstName:e.getIn(["profile","basic_profile","first_name"]),ociLastName:e.getIn(["profile","basic_profile","last_name"])})),E=e=>e.hasIn(s.pq),F=(0,i.Mz)([f,a.IV,w],(e,t,o)=>{var i,n,r,s;return e&&(null===(i=t.resFirstName)||void 0===i?void 0:i.toUpperCase())!==(null===(n=o.ociFirstName)||void 0===n?void 0:n.toUpperCase())&&(null===(r=t.resLastName)||void 0===r?void 0:r.toUpperCase())===(null===(s=o.ociLastName)||void 0===s?void 0:s.toUpperCase())}),P=(0,i.Mz)([u,a.IV],(e,t)=>{var o,i;const n=!!e,r=null==e?void 0:e.getIn(["profile","basic_profile","first_name"]),s=null==e?void 0:e.getIn(["profile","basic_profile","last_name"]);return n&&(null===(o=t.resFirstName)||void 0===o?void 0:o.toUpperCase())!==r&&(null===(i=t.resLastName)||void 0===i?void 0:i.toUpperCase())===s}),T=(0,i.Mz)([f,m,u,e=>e.getIn(["gmi","session","gma","reservation","driver_details_updated"],!1),l.Qy,e=>e.getIn(["gmi","session","gma","reservation","new_driver_profile"],!1),c.IB],(e,t,o,i,n,r,s)=>{let l=!1;const{driverProfileComplete:a,contactProfileComplete:c,ociComplete:d}=t;return(o&&a&&c||s||a&&c&&d&&null!=n&&n.reservationFullName&&(!e&&r||e&&i||e))&&(l=!0),l})}}]); 2//# sourceMappingURL=AcceleratedCheckInFlow-CheckInProfile-CheckInContactInformationForm.5957602c.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.