PageSourceSearch

https://www.alamo.ca/etc/aweb/AdditionalDrivers.5cc51bd3.js

js alamo.ca collected 2026-09-30 14:33:46 UTC 15,801 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkaweb=self.webpackChunkaweb||[]).push([[730,908,1127,1199,1256,1786,2320,2353,2422,2678,2701,3631,3742,4204,4371,4789,5179,5456,5499,5537,5703,6729,6744,7242,7472,8362,8692,8855,9453,9505,9610,9745,9747,9881,10364,10422,10521,10587,10689,11312,11389,11429,12421,13049,13277,13320,13352,14102,16522,16645,16795,16863,16907,17227,17635,19171,19342,19886,19965,19974,20176,20230,20428,20667,20690,20725,20749,20809,20813,21014,21486,21525,21621,21899,22682,23028,24453,24519,24585,24993,25174,25273,27215,27300,27375,27476,27658,27745,28659,28795,28905,29373,30183,30297,30560,30625,30937,31149,31470,31781,32118,32264,32474,33130,33401,33834,33876,33902,34116,35485,35488,35913,36144,36213,36283,36434,36794,36914,36917,37656,38357,38539,38541,38745,39298,39310,39509,39703,40030,40544,40592,40827,41137,42135,43422,43474,44674,45161,45317,45921,46397,47166,47267,47342,48181,48208,48233,48281,48594,48769,49279,50261,50438,51621,51632,51644,52064,52245,52261,52811,53528,53626,53878,54667,55774,55852,55988,57235,57626,57791,58449,58695,59083,59284,59347,60854,61564,62039,63010,63244,63437,63810,64287,64515,65057,65642,66152,66579,67151,67551,67647,68793,69450,69803,69858,70069,70572,70937,72748,73457,74097,74205,74292,74754,75161,75271,75283,75544,75561,75855,76091,76399,76795,77430,78537,79931,80361,80437,80990,82245,83303,83436,84052,84197,84304,85375,85447,85575,87275,87374,87406,87595,87941,88105,88334,88399,88902,89654,90675,91013,91368,91905,92118,94725,95166,95409,95673,95787,95872,95893,96081,97518,97556,98146,98426,98991,99145,99342,99625,99858],{51506:(e,t,o)=>{o.d(t,{I:()=>s,w:()=>a});var i=o(61317),r=o(72291),n=o(58854);const s=()=>e=>e(i.A.request({service:r.A.gma.content.termsLoyalty})),a=e=>t=>t((0,n.z7)({action:i.A.request({data:{endpoint:{country:e}},service:r.A.gma.content.supportContact})}))},2868:(e,t,o)=>{o.d(t,{q:()=>n});var i=o(44697);const{ACTION_CLEAR_MODAL_QUEUE:r}=i.A;function n(e){return{...e,type:r}}},53650:(e,t,o)=>{o.d(t,{CZ:()=>C,DP:()=>g,KN:()=>E,Km:()=>h,NH:()=>I,Nr:()=>b,Qf:()=>y,SH:()=>m,Ub:()=>S,bM:()=>P,e4:()=>f,mc:()=>A});var i=o(61317),r=o(72291),n=o(37322),s=o(19481),a=o(11953),l=o(1776),d=o(90722),c=o(50372),u=o(9019),_=o(58854),p=o(54349),v=o(47910);const m=e=>t=>t((0,_.z7)({loadingOverlay:!0,data:{payload:e},opts:{actionName:c.A.ACTION_NAMES.CREATE_PROFILE,actionType:c.A.ACTION_TYPE_RECAPTCHA},service:r.A.gma.profile.createProfile})),f=e=>t=>{var o,s;const{password:a,...d}=e;(null===(o=e.contact)||void 0===o||null===(o=o.phones)||void 0===o?void 0:o.length)>0&&!n.A.fieldValidation.isMasked(null===(s=e.contact.phones[0])||void 0===s?void 0:s.phone_number)&&(d.driver_info=(0,v.gc)(e.contact.phones[0]));const c={modes:{update:!0}};return new Promise(e=>{e(!a||t((0,_.z7)({loadingOverlay:!0,action:i.A.request({data:a,service:()=>({method:"POST",origin:n.A.config.getUrl("gmaUrl"),endpoint:"profile/password",withCredentials:!0,data:a})}),timeout:!0})))}).then(e=>{if(e.messages){if(e.messages.filter(e=>!(0,l.yI)(e.code,e.priority)).length>0)throw new Error(!0);return Promise.resolve(!0)}return Promise.resolve(!0)}).then(()=>n.A.gmi.isObjectEmpty(d)?Promise.resolve(!0):t((0,_.z7)({loadingOverlay:!0,action:i.A.request({data:{payload:d,opts:c},service:r.A.gma.profile.modify})}))).then(e=>e.messages?e:Promise.resolve(!0)).catch(e=>{throw e})},g=e=>t=>t((0,_.z7)({loadingOverlay:!0,action:i.A.request({data:{endpoint:{individual_id:e}},service:r.A.gma.profile.getNLProfile})})),y=e=>t=>t((0,_.z7)({loadingOverlay:!0,action:i.A.request({data:{payload:e},service:r.A.gma.profile.searchRenterByMembership})})),A=(e,t)=>o=>o((0,_.z7)({action:i.A.request({service:r.A.gma.profile.searchProfileByDriverLicense,data:{payload:e,params:{enableAlamoInsider:n.A.config.getIsEnableAlamoInsider()},endpoint:{is_oci:t}}}),loadingOverlay:!0,loadingMessage:`${(0,s.R)("wcag_loading")} ${(0,s.R)("common_drivers_license_details")}`})),h=e=>(t,o)=>{const i=o(),{drivers_license:r}=e,{last_name:n}=(0,p.r4)(i,{last_name:!0}),s={last_name:n,country:null==r?void 0:r.country_code,country_subdivision:null==r?void 0:r.country_subdivision_code,driver_license_number:null==r?void 0:r.license_number};return t(A(s)).then(e=>{var t;if(!e||null!=e&&null!==(t=e.messages)&&void 0!==t&&t.length)return null;
1const{eligible_for_copy_profile:{copy_address_profile:o,copy_phones:i}={}}=e;if(!o&&!i)return null;const{profile:r,address_profile:n,contact_profile:s}=e,a={copy_from_individual_id:r.individual_id,copy_address_profile:o,copy_phones:i};return o&&(a.address=n),i&&(a.phones=null==s?void 0:s.phones),a})},I=({type:e=null,args:t={}})=>o=>o(i.A.reservations.driverProfileState.set(e,t)),b=()=>e=>e((0,_.z7)({action:i.A.request({service:r.A.gma.profile.clearProfile}),loadingOverlay:!0})),S=e=>t=>t((0,_.z7)({action:i.A.request({data:{payload:e},service:r.A.gma.profile.resetPasswordStart}),loadingOverlay:!0,redirect:!0})),C=e=>t=>t((0,_.z7)({action:i.A.request({data:{payload:e},service:r.A.gma.profile.resetPassword}),loadingOverlay:!0,redirect:!0,onComplete:e=>{var t,o;return null!=e&&e.go_to&&e.go_to.parent===d.A.AUTH_HOME_PAGE&&(0,a.xJ)("ResetPasswordSuccess"),(null==e||null===(t=e.messages)||void 0===t?void 0:t.length)>0&&(null===(o=e.messages[0])||void 0===o?void 0:o.code)===u.A.GMA_RESET_PASSWORD_TOKEN_MISSING&&(e.messages[0].message=(0,s.R)("reset_password_token_missing")),e}})),P=e=>t=>t((0,_.z7)({action:i.A.request({data:{payload:e},service:r.A.gma.profile.forgotUsername}),loadingOverlay:!0,redirect:!0})),E=e=>t=>t((0,_.z7)({action:i.A.request({method:"POST",service:()=>({method:"POST",origin:n.A.config.getUrl("gmaUrl"),endpoint:"profile/forgotMembershipNumber",data:e})})}))},84708:(e,t,o)=>{o.d(t,{r:()=>s});var i=o(58854),r=o(61317),n=o(72291);const s=({firstName:e,lastName:t})=>o=>o((0,i.z7)({action:r.A.request({service:n.A.gma.reservations.addAdditionalDriverByName,data:{params:{firstName:e,lastName:t}}})}))},94462:(e,t,o)=>{o.d(t,{R:()=>a});var i=o(37322),r=o(58854),n=o(61317),s=o(72291);const a=e=>t=>{const o={};return o.payload=i.A.driverProfile.driverProfilePayloadParser(e),null!=e&&e.reservation_token&&(o.payload.reservation_token=e.reservation_token),t((0,r.z7)({action:n.A.request({service:s.A.gma.reservations.addAdditionalDriver,data:o})}))}},66387:(e,t,o)=>{o.d(t,{C:()=>s});var i=o(58854),r=o(61317),n=o(72291);const s=({first_name:e,last_name:t,individual_id:o})=>s=>s((0,i.z7)({action:r.A.request({service:n.A.gma.reservations.removeAdditionalDriver,data:{payload:{first_name:e,last_name:t,individual_id:o}}})}))},65054:(e,t,o)=>{o.d(t,{H:()=>r});var i=o(92546);const r=(e=!1)=>({type:i.d.SET_SPOUSE_ADDITIONAL_DRIVER,data:e})},77728:(e,t,o)=>{o.d(t,{A:()=>s});var i=o(2763),r=o(30682),n=o(8833);function s(e,t){const o=(0,r.wA)();return(0,n.useMemo)(()=>Array.isArray(e)?e.map(e=>(0,i.zH)(e,o)):(0,i.zH)(e,o),t?[o,...t]:[o])}},90283:(e,t,o)=>{o.d(t,{A:()=>a});var i=o(30682),r=o(37322),n=o(94059),s=o(22094);const a=()=>{var e,t;const o=(0,i.d4)(n.WP)||0,a=(0,i.d4)(n.Ly),l=(0,i.d4)(n.ie),d=(0,i.d4)(n.sb),c=(0,i.d4)(n.kc),u=(0,i.d4)(n.JH),_=(0,i.d4)(s.DV),p=c.length<o,{number_of_free_additional_drivers:v,rate_amount_view:m,rate_type:f}=a,g=r.A.getFormattedPrice(m),y=(null==l||null===(e=l.price_summary)||void 0===e?void 0:e.payment_line_items)||{},A=(null==y?void 0:y.FEE)||[],h=(null==y?void 0:y.ADDITIONAL_DRIVER)||[],I=c.map((e,t)=>{var o,i,r,n;return Object.assign(e,{rate_amount_view:_?null===(o=h[t])||void 0===o?void 0:o.rate_amount_payment:null===(i=h[t])||void 0===i?void 0:i.rate_amount_view,total_amount_view:_?null===(r=h[t])||void 0===r?void 0:r.total_amount_payment:null===(n=h[t])||void 0===n?void 0:n.total_amount_view})});return{additionalDriverPrices:h,hasYoungDriverFee:e=>!!e&&A.some(t=>(null==t?void 0:t.driver_individual_id)===e),fees:A,driversList:I,freeSpouse:d,allowMoreDrivers:p,maxAdditionalDrivers:o,numberOfFreeDrivers:v,otherDriverCost:g,rateType:f,totalPrice:null==u||null===(t=u.estimated_total_additional_driver_view)||void 0===t?void 0:t.format}}},29028:(e,t,o)=>{o.d(t,{A:()=>r});var i=o(8833);function r({container:e,handler:t,listenerConditional:o=!0},r){const n=(0,i.useRef)(!1),s=o=>{"touchend"===o.type&&(n.current=!0),"mousedown"===o.type&&n.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)}),r)}},94830:(e,t,o)=>{o.d(t,{A:()=>v});var i=o(8833),r=o(77728),n=o(6261),s=o(92924),a=o(72880),l=o(63821),d=o(30682);const{FIELD_STATUS_MANDATORY:c,FIELD_STATUS_OPTIONAL:u,ISSUING_AUTHORITY_FIELD_COUNTRIES:_,ISSUING_AUTHORITIES_BY_COUNTRY:p}=l.Cn,v=(e,t=!1,o=!0)=>{const[l,v]=(0,i.useState)(null),m=(0,d.d4)(n.i),f=(0,d.d4)(n.Y),{getCountries:g,getStatesOrProvinces:y}=(0,r.A)(a),A=((e,t)=>{const o={shouldShowIssueDate:!1,shouldShowExpirationDate:!1,shouldShowBothIssueAndExpirationDate:!1,shouldShowSubdivisionField:!1,shouldShowIssuingAuthorityField:!1,issuingAuthorities:null},{country_code:i,country_content:r={}}=e||{},{license_issue_date:n,license_expiry_date:s,drive_type_filter:a}=r;n===c&&(o.shouldShowIssueDate=!0),s===c&&(o.shouldShowExpirationDate=!0),n===u&&s===u&&(o.shouldShowIssueDate=!0,o.shouldShowExpirationDate=!0,o.shouldShowBothIssueAndExpirationDate=!0),o.driveTypeFilter=a;const l=null==t?void 0:t[i];o.shouldShowSubdivisionField=!(null==l||!l.length);const d=_.includes(i),v=p[i]||l;var m;return d&&v&&(o.shouldShowIssuingAuthorityField=!0,o.issuingAuthorities=((m=p[i])?[{country_subdivision_code:m,country_subdivision_name:m}]:null)||l),o})(l,f);return((e,t,o)=>{const r=(0,d.d4)(e=>(0,s.h)(e,{endpoint:"location/countries-sorted-by-name"}));(0,i.useEffect)(()=>{null!=e&&e.length||r||t(o)},[])})(m,g,o),((e,t,o,r)=>{(0,i.useEffect)(()=>{const i=null==e?void 0:e.country_code;r||!i||null!=t&&t[i]||o(i)},[e])})(l,f,y,t),((e,t,o,r)=>{(0,i.useEffect)(()=>
1{if(!t&&e&&null!=r&&r.length){const t=r.find(({country_code:t})=>t===e);o(t)}},[e,null==r?void 0:r.length])})(e,l,v,m),{selectedCountry:l,setSelectedCountry:v,countryConfig:A,countries:m,statesOrProvinces:f}}},54463:(e,t,o)=>{o.d(t,{A:()=>p});var i=o(8833),r=o(30682),n=o(37322),s=o(77728),a=o(30667),l=o(51506),d=o(64486),c=o(92924),u=o(14076);const{PHONE_TYPE:_}=d.A,p=()=>{var e,t;const o=n.A.config.getDomainCountry(),d=(0,r.d4)(u.Bx),p=(0,s.A)(l.w),v=null===(e=(0,r.d4)(e=>(0,a.B3)(e,o)))||void 0===e?void 0:e.phone_number,m=null===(t=(0,r.d4)(e=>d!==o?(0,a.B3)(e,d):null))||void 0===t?void 0:t.phone_number,f=(0,r.d4)(e=>(0,c.h)(e,{endpoint:"support/contact"})),[g,y]=(0,i.useState)(v),[A,h]=(0,i.useState)(m),I=async(e,t)=>{t||f||await p(e).then(e=>{var t;const o=_.CONTACT_US,i=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!=i&&i.phone_number&&(y(null==i?void 0:i.phone_number),h(null==i?void 0:i.phone_number))})};return(0,i.useEffect)(()=>{I(o,v),d&&d!==o&&I(d,m)},[o,f]),{domainSupportPhoneNumber:g,pickupLocationSupportPhoneNumber:A}}},92875:(e,t,o)=>{o.d(t,{BF:()=>T,Oh:()=>y,PP:()=>f,S8:()=>g,_O:()=>v,ez:()=>E,iB:()=>A,je:()=>C,jw:()=>h,kI:()=>b,lP:()=>O,s3:()=>p,yE:()=>I,zu:()=>w});var i=o(94653),r=o(55659),n=o(8248),s=o(76404),a=o(47444),l=o(14076),d=o(94059),c=o(37322);const u=e=>e.getIn(n.By),_=e=>e.getIn(s.pq,(0,r.Map)({})),p=e=>e.getIn(s.nZ,!1),v=e=>e.getIn(s.p6,!1),m=e=>{const t=(e=>e.getIn(s.$U,(0,r.Map)({})))(e);return!!t.get("loyalty_number")},f=e=>{const t=m(e),o=!!u(e);return t&&!o},g=e=>{const t=m(e),o=!!u(e);return!t||t&&o},y=e=>{const t=(e=>e.getIn(s.Fj,(0,r.Map)({})))(e),o=!!t.get("driverlicense_details_present"),i=!!t.get("address_details_present"),n=!!t.get("contact_details_present");return{driverProfileComplete:o,addressComplete:i,contactComplete:n,contactProfileComplete:i&&n,ociComplete:p(e)}},A=(0,i.Mz)([y,v],({driverProfileComplete:e,contactProfileComplete:t},o)=>(!e||!t)&&o),h=e=>{const t=A(e),o=!!u(e);return t&&!o},I=e=>{const t=_(e),o=!(null==t||!t.getIn(["profile","individual_id"])),i=m(e),{ociComplete:r}=y(e),n=u(e),a=!!n,l=null==n?void 0:n.getIn(["profile","basic_profile","first_name"]),d=c.A.url.getCurrentPageHash(),p=(e=>e.getIn(s.KM))(e)||"";return{...c.A.checkin.getStepsContent(d,l,{isProfileFound:o,isOCIProfileComplete:r,isOCIProfileLoyalty:i,isUserAuthenticated:a}),stepCounter:c.A.checkin.parseStepCounter(d,p)}},b=(0,i.Mz)([I],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_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)})),C=(0,i.Mz)([_,S,v],(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"],"")}
1,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})),P=(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),w=(0,i.Mz)([v,l.IV,P],(e,t,o)=>{var i,r,n,s;return e&&(null===(i=t.resFirstName)||void 0===i?void 0:i.toUpperCase())!==(null===(r=o.ociFirstName)||void 0===r?void 0:r.toUpperCase())&&(null===(n=t.resLastName)||void 0===n?void 0:n.toUpperCase())===(null===(s=o.ociLastName)||void 0===s?void 0:s.toUpperCase())}),O=(0,i.Mz)([u,l.IV],(e,t)=>{var o,i;const r=!!e,n=null==e?void 0:e.getIn(["profile","basic_profile","first_name"]),s=null==e?void 0:e.getIn(["profile","basic_profile","last_name"]);return r&&(null===(o=t.resFirstName)||void 0===o?void 0:o.toUpperCase())!==n&&(null===(i=t.resLastName)||void 0===i?void 0:i.toUpperCase())===s}),T=(0,i.Mz)([v,y,u,e=>e.getIn(["gmi","session","gma","reservation","driver_details_updated"],!1),a.Qy,e=>e.getIn(["gmi","session","gma","reservation","new_driver_profile"],!1),d.IB],(e,t,o,i,r,n,s)=>{let a=!1;const{driverProfileComplete:l,contactProfileComplete:d,ociComplete:c}=t;return(o&&l&&d||s||l&&d&&c&&null!=r&&r.reservationFullName&&(!e&&n||e&&i||e))&&(a=!0),a})},78768:(e,t,o)=>{o.d(t,{R:()=>r});const i=document.getElementById("globalStatusLiveRegion"),r=(e,t={})=>
1{i&&(i.textContent="",t.assertive?(i.setAttribute("aria-live","assertive"),setTimeout(()=>{i.textContent=e,setTimeout(()=>{i.setAttribute("aria-live","polite")},1e3)},10)):setTimeout(()=>{i.textContent=e},10))}}}]);
2//# sourceMappingURL=AdditionalDrivers.5cc51bd3.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.