// Copyright 2014 Apple Inc.  All Rights Reserved.
new ReverseTemplateList([new ReverseTemplate("thrifty.com.au-cancellation-en",function(){return!1},function(e){if(/^Booking Cancelled$/.test(e.subject))return STOP},"0/1/2/3/4/5/6/220/222","SG30fafc4d"),new ReverseTemplate("thrifty.com.au-confirmation-en",function(e){return/^Booking (?:Accepted|Amendment)$/.test(e.subject)},function(e){if(/^Booking (?:Accepted|Amendment)$/.test(e.subject)){var t=Scanner.fromMessage(e);t.setLocale("en_AU");var n,a,r,o,i,s,c,d,p,g,m,l,T,h,x,u,f,y,C,v,S,$,A,k,P=!1;if(/Pickup and return location/.exec(""+t.getSpan())&&(P=!0),r=t.getSpan().next(/(Reservation number|Booking reference)/).nextAnyTag("td").tagContents(),T=t.getSpan().next(/(Booking Details|Pickup and return location)/).nextAnyTag("td"),P&&(T=T.nextAnyTag("td")),C=T.innerCapture(/Pickup:?\s+($<date>.*)\n($<address>[^]+)\nPhone: ($<telephone>[-+\d \(\).]+)\n/),C&&(A=C.$date,S=C.$address,$=C.$telephone),T=T.nextAnyTag("td"),h=T.innerCapture(/Return:?\s+($<date>.*)\n($<address>[^]+)\nPhone: ($<telephone>[-+\d \(\).]+)\n/),h&&(y=h.$date,u=h.$address,f=h.$telephone),g=P?t.getSpan().next(/Please pay with/).nextTag("td4").tagContents():T.nextTag("table4").nextTag("td4").nextTag("td4").tagContents(),P?(n=t.getSpan().nextText("Name:").nextAnyTag("td").tagContents(),a=t.getSpan().nextText("Email:").nextAnyTag("td").tagContents()):(T=t.getSpan().nextText("Driver information").nextTag("table3"),n=""+T.innerText("First Name").nextTag("td3").tagContents()+" "+T.innerText("Last Name").nextTag("td3").tagContents(),a=T.innerText("Email Address").nextTag("td3").tagContents(),k=t.getSpan().nextText("TOTAL:").nextTag("td3").tagContents(),d=k.innerCapture(/([\d\.\,]+)/,1),p=k.innerCapture(/([^\d\.\,])/,1)),ASSERT(n,g,r,S,A))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:d,priceCurrency:p,reservationStatus:"http://schema.org/Reservation"+(o||"Confirmed"),reservationId:r,checkinUrl:i,modifyReservationUrl:s,cancelReservationUrl:c,underName:{"@type":"http://schema.org/Person",name:n},provider:{"@type":"http://schema.org/Organization",name:"Thrifty"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:g},license:m,color:l},pickupTime:A,pickupLocation:{"@type":"http://schema.org/Place",name:v,telephone:$,address:S},dropoffTime:y,dropoffLocation:{"@type":"http://schema.org/Place",name:x,telephone:f,address:u}}]}},"0/1/2/3/4/5/6/220/223","SG94e54a2f")]);