PageSourceSearch

https://www.alamo.ca/etc/aweb/ReservationFlow-InResAcceleratedCheckin-DriverProfileForm.81fe69ea.js

js alamo.ca collected 2026-09-30 14:35:18 UTC 9,488 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkaweb=self.webpackChunkaweb||[]).push([[730,1127,1199,1256,2320,2422,2678,2701,3631,3742,4204,4371,5179,5499,5537,5703,6744,7242,7472,8362,8692,8855,9453,9610,9745,9747,9881,10364,10422,10521,10587,10689,11312,11389,11429,12421,13049,13320,13352,14102,16645,16795,16863,16907,17227,17635,19342,19886,19965,19974,20176,20230,20428,20667,20725,20749,20813,21014,21486,21525,21621,21899,22682,23028,24453,24519,24585,24993,25174,25273,27215,27300,27375,27745,28659,28795,29373,30183,30560,30625,30937,31149,31470,32118,32264,32474,33401,33834,33876,33902,34116,35485,35488,35913,36144,36213,36283,36434,36794,36914,36917,37656,38357,38539,38541,38745,39298,39509,39703,40030,40544,40592,40827,41137,42135,43422,43474,44674,45161,45317,45921,46397,47166,47267,48181,48208,48233,48281,48594,48769,49279,50261,50438,51621,51632,51644,52245,52261,53528,53626,54667,55774,55852,55988,57235,57626,57791,58449,58695,59083,59284,62039,63010,63244,63437,63810,64287,64515,65642,66152,66579,67151,67551,67647,68793,69450,69858,70069,70572,70937,72748,73457,74097,74205,74292,75271,75283,75561,75855,76091,76399,76795,77430,78537,79931,80361,80437,80990,82245,83303,83436,84197,84304,85375,85447,85575,87275,87374,87406,87595,88105,88399,88902,89654,90675,91013,91368,91905,92118,94725,95166,95409,95673,95787,95872,95893,96081,97518,97556,98146,98426,98991,99145,99342,99625],{51506:(e,t,o)=>{o.d(t,{I:()=>s,w:()=>l});var n=o(61317),i=o(72291),r=o(58854);const s=()=>e=>e(n.A.request({service:i.A.gma.content.termsLoyalty})),l=e=>t=>t((0,r.z7)({action:n.A.request({data:{endpoint:{country:e}},service:i.A.gma.content.supportContact})}))},2868:(e,t,o)=>{o.d(t,{q:()=>r});var n=o(44697);const{ACTION_CLEAR_MODAL_QUEUE:i}=n.A;function r(e){return{...e,type:i}}},77728:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(2763),i=o(30682),r=o(8833);function s(e,t){const o=(0,i.wA)();return(0,r.useMemo)(()=>Array.isArray(e)?e.map(e=>(0,n.zH)(e,o)):(0,n.zH)(e,o),t?[o,...t]:[o])}},29028:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(8833);function i({container:e,handler:t,listenerConditional:o=!0},i){const r=(0,n.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,n.useEffect)(()=>(o&&(document.addEventListener("mousedown",s),document.addEventListener("touchend",s)),()=>{document.removeEventListener("mousedown",s),document.removeEventListener("touchend",s)}),i)}},94830:(e,t,o)=>{o.d(t,{A:()=>f});var n=o(8833),i=o(77728),r=o(6261),s=o(92924),l=o(72880),a=o(63821),u=o(30682);const{FIELD_STATUS_MANDATORY:c,FIELD_STATUS_OPTIONAL:d,ISSUING_AUTHORITY_FIELD_COUNTRIES:_,ISSUING_AUTHORITIES_BY_COUNTRY:p}=a.Cn,f=(e,t=!1,o=!0)=>{const[a,f]=(0,n.useState)(null),g=(0,u.d4)(r.i),v=(0,u.d4)(r.Y),{getCountries:m,getStatesOrProvinces:h}=(0,i.A)(l),I=((e,t)=>{const o={shouldShowIssueDate:!1,shouldShowExpirationDate:!1,shouldShowBothIssueAndExpirationDate:!1,shouldShowSubdivisionField:!1,shouldShowIssuingAuthorityField:!1,issuingAuthorities:null},{country_code:n,country_content:i={}}=e||{},{license_issue_date:r,license_expiry_date:s,drive_type_filter:l}=i;r===c&&(o.shouldShowIssueDate=!0),s===c&&(o.shouldShowExpirationDate=!0),r===d&&s===d&&(o.shouldShowIssueDate=!0,o.shouldShowExpirationDate=!0,o.shouldShowBothIssueAndExpirationDate=!0),o.driveTypeFilter=l;const a=null==t?void 0:t[n];o.shouldShowSubdivisionField=!(null==a||!a.length);const u=_.includes(n),f=p[n]||a;var g;return u&&f&&(o.shouldShowIssuingAuthorityField=!0,o.issuingAuthorities=((g=p[n])?[{country_subdivision_code:g,country_subdivision_name:g}]:null)||a),o})(a,v);return((e,t,o)=>{const i=(0,u.d4)(e=>(0,s.h)(e,{endpoint:"location/countries-sorted-by-name"}));(0,n.useEffect)(()=>{null!=e&&e.length||i||t(o)},[])})(g,m,o),((e,t,o,i)=>{(0,n.useEffect)(()=>{const n=null==e?void 0:e.country_code;i||!n||null!=t&&t[n]||o(n)},[e])})(a,v,h,t),((e,t,o,i)=>{(0,n.useEffect)(()=>{if(!t&&e&&null!=i&&i.length){const t=i.find(({country_code:t})=>t===e);o(t)}},[e,null==i?void 0:i.length])})(e,a,f,g),{selectedCountry:a,setSelectedCountry:f,countryConfig:I,countries:g,statesOrProvinces:v}}},54463:(e,t,o)=>{o.d(t,{A:()=>p});var n=o(8833),i=o(30682),r=o(37322),s=o(77728),l=o(30667),a=o(51506),u=o(64486),c=o(92924),d=o(14076);const{PHONE_TYPE:_}=u.A,p=()=>{var e,t;const o=r.A.config.getDomainCountry(),u=(0,i.d4)(d.Bx),p=(0,s.A)(a.w),f=null===(e=(0,i.d4)(e=>
1(0,l.B3)(e,o)))||void 0===e?void 0:e.phone_number,g=null===(t=(0,i.d4)(e=>u!==o?(0,l.B3)(e,u):null))||void 0===t?void 0:t.phone_number,v=(0,i.d4)(e=>(0,c.h)(e,{endpoint:"support/contact"})),[m,h]=(0,n.useState)(f),[I,y]=(0,n.useState)(g),b=async(e,t)=>{t||v||await p(e).then(e=>{var t;const o=_.CONTACT_US,n=null==e||null===(t=e.support_phone_numbers)||void 0===t?void 0:t.find(e=>(null==e?void 0:e.phone_type)===o);null!=n&&n.phone_number&&(h(null==n?void 0:n.phone_number),y(null==n?void 0:n.phone_number))})};return(0,n.useEffect)(()=>{b(o,f),u&&u!==o&&b(u,g)},[o,v]),{domainSupportPhoneNumber:m,pickupLocationSupportPhoneNumber:I}}},92875:(e,t,o)=>{o.d(t,{BF:()=>T,Oh:()=>h,PP:()=>v,S8:()=>m,_O:()=>f,ez:()=>E,iB:()=>I,je:()=>S,jw:()=>y,kI:()=>C,lP:()=>P,s3:()=>p,yE:()=>b,zu:()=>N});var n=o(94653),i=o(55659),r=o(8248),s=o(76404),l=o(47444),a=o(14076),u=o(94059),c=o(37322);const d=e=>e.getIn(r.By),_=e=>e.getIn(s.pq,(0,i.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,i.Map)({})))(e);return!!t.get("loyalty_number")},v=e=>{const t=g(e),o=!!d(e);return t&&!o},m=e=>{const t=g(e),o=!!d(e);return!t||t&&o},h=e=>{const t=(e=>e.getIn(s.Fj,(0,i.Map)({})))(e),o=!!t.get("driverlicense_details_present"),n=!!t.get("address_details_present"),r=!!t.get("contact_details_present");return{driverProfileComplete:o,addressComplete:n,contactComplete:r,contactProfileComplete:n&&r,ociComplete:p(e)}},I=(0,n.Mz)([h,f],({driverProfileComplete:e,contactProfileComplete:t},o)=>(!e||!t)&&o),y=e=>{const t=I(e),o=!!d(e);return t&&!o},b=e=>{const t=_(e),o=!(null==t||!t.getIn(["profile","individual_id"])),n=g(e),{ociComplete:i}=h(e),r=d(e),l=!!r,a=null==r?void 0:r.getIn(["profile","basic_profile","first_name"]),u=c.A.url.getCurrentPageHash(),p=(e=>e.getIn(s.KM))(e)||"";return{...c.A.checkin.getStepsContent(u,a,{isProfileFound:o,isOCIProfileComplete:i,isOCIProfileLoyalty:n,isUserAuthenticated:l}),stepCounter:c.A.checkin.parseStepCounter(u,p)}},C=(0,n.Mz)([b],e=>e.stepCounter.current===e.stepCounter.total),A=(0,n.Mz)([_],e=>({contact:e.getIn(["eligible_for_copy_profile","copy_address_profile"],!1)&&e.getIn(["eligible_for_copy_profile","copy_emails"],!1)&&e.getIn(["eligible_for_copy_profile","copy_phones"],!1),license:e.getIn(["eligible_for_copy_profile","copy_license_profile"],!1)})),S=(0,n.Mz)([_,A,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:c.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:c.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:c.A.safeToJS(e.getIn(["profile","basic_profile","loyalty_data"],{})),profile_found:o})),w=(0,n.Mz)([_],e=>({ociFirstName:e.getIn(["profile","basic_profile","first_name"]),ociLastName:e.getIn(["profile","basic_profile","last_name"])})),E=e=>e.hasIn(s.pq),N=(0,n.Mz)([f,a.IV,w],(e,t,o)=>{var n,i,r,s;return e&&(null===(n=t.resFirstName)||void 0===n?void 0:n.toUpperCase())!==(null===(i=o.ociFirstName)||void 0===i?void 0:i.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,n.Mz)([d,a.IV],(e,t)=>{var o,n;const i=!!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 i&&(null===(o=t.resFirstName)||void 0===o?void 0:o.toUpperCase())!==r&&(null===(n=t.resLastName)||void 0===n?void 0:n.toUpperCase())===s}),T=(0,n.Mz)([f,h,d,e=>e.getIn(["gmi","session","gma","reservation","driver_details_updated"],!1),l.Qy,e=>e.getIn(["gmi","session","gma","reservation","new_driver_profile"],!1),u.IB],(e,t,o,n,i,r,s)=>{let l=!1;const{driverProfileComplete:a,contactProfileComplete:u,ociComplete:c}=t;return(o&&a&&u||s||a&&u&&c&&null!=i&&i.reservationFullName&&(!e&&r||e&&n||e))&&(l=!0),l})}}]);
2//# sourceMappingURL=ReservationFlow-InResAcceleratedCheckin-DriverProfileForm.81fe69ea.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.