PageSourceSearch

https://static-js.treatme.co.nz/en-AU/6075.18f7dd039d412011.js

js treatme.co.nz collected 2026-10-04 20:26:39 UTC 12,554 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"production-4623957"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:luxgroup-customer-portal":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e83ebb23-d0f2-4099-b881-c0990bc76795",e._sentryDebugIdIdentifier="sentry-dbid-e83ebb23-d0f2-4099-b881-c0990bc76795")}catch(e){}}();"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6075],{602870(e,t,r){r(218111),r(720116);var i=r(695417),n=r(970293),o=r(372808),s=r(929809),a=r(576958),u=r(391609),l=r(868105),c=r(243786),d=r(906330),p=r(763479),_=r(862919),y=r(916468),f=r(865458),m=r(620921),g=r(691944),P=r(927097),b=r(344717),v=r(511686);function A(e,t,r={}){return(n,o)=>{let s=o(),a=(0,m.qP)(e,t),u=(0,P.OX)(s),l=s.insurance.quotes[a],_=u&&!!l&&l.luxPlusTotal<=0&&!l.luxPlusFlightTotal;!r.force&&(l&&!_||s.insurance.fetchingQuotes[a]||s.insurance.fetchQuotesErrors[a])||n({type:c.aCA,api:d.xnz,key:a,request:()=>(0,i.XG)(e,u,{currency:t.currency??s.geo.currentCurrency,regionCode:s.geo.currentRegionCode,coverAmount:t.coverAmount,destinationCountries:t.destinationCountries,startDate:t.startDate,endDate:t.endD
1ate,travellers:t.travellers,isMobileApp:(0,p.LA)(s.system.rawUserAgentString),spoofingAgentId:s.auth.account.agentId,cartId:t.cartId,isCruise:t.isCruise,numberOfSeniors:t.numberOfSeniors,customPolicyIds:t.customPolicyIds,type:t.type,isFlightBooking:t.isFlightBooking,key:a,luxVerticals:(0,m.jM)(s.checkout.cart.items),loyaltyTier:(0,b.A)(s),useCache:t.useCache,priceAdjustmentPercentage:t.priceAdjustmentPercentage})})}}function h(e,t){return A(e,t,{force:!0})}function D(){return(e,t)=>{let r=t(),p=(0,n.NV)(r),_=(0,n._o)(r),y=(0,n.Wb)(r),f=(0,n.jp)(r),g=_.length>0&&_[0].insuranceType?(0,m.vl)(_[0].insuranceType):void 0;if((0,u.SD)(r.geo.currentRegionCode,g)&&p.length<1&&_.length>0){let t=_[0].insuranceType,n=t?(0,m.vl)(t):void 0;if(n){let t=(0,o.A)(r,n),a=(0,s.A)(r,n);if(t.length>0&&a.length>0){let r=t[0].id,n=a.find(e=>"full"===e.protectionType)??a[0];e({api:d.qe4,type:c.aCA,request:()=>(0,i.v9)(r,[n.id])})}}}let P=function(e){let t=(0,n.Wb)(e);if(t?.quoteId&&t.passportCardProposalId)return{quoteId:t.quoteId,proposalId:t.passportCardProposalId};let r=function(e){let t=(0,a.A)(e);if(t)return e.passportCardInsurance.quotes[(0,l.Bo)(t)]}(e),i=r?.proposals[0];if(r&&i)return{quoteId:r.quoteId,proposalId:i.proposalId}}(r),b=!!P;y&&!f&&b&&P&&e({api:d.qe4,type:c.aCA,request:()=>(0,i.F6)(P.quoteId,P.proposalId)})}}function C(e,t={}){return(r,n)=>{let o=n(),s=(0,m.Hw)(e,t);o.insurance.productLists[s]||o.insurance.fetchingProductLists[s]||o.insurance.productListErrors[s]||r({type:c.aCA,api:d.HX4,key:s,request:()=>t.subscriptionId?(0,i.HZ)(t.subscriptionId,o.geo.currentRegionCode):(0,i.$z)(o.geo.currentRegionCode,e,{isDomestic:t.isDomestic,isCruise:t.isCruise})})}}function I(e,t={}){return r=>{r({type:c.C64,key:(0,m.Hw)(e,t)}),r(C(e,t))}}function x(e){return{type:c.dIe,reason:e}}function T(e,t){return(r,n)=>
1{let o=n(),s=(0,_.Zk)({endDate:t.endDate,startDate:t.startDate,itemId:t.insuranceItem.id,travellers:t.travellers,coverageAmount:t.coverageAmount??t.insuranceItem.coverAmount});o.insurance.updateQuotes[s]||r({type:c.aCA,api:d.Ftj,request:()=>(0,i.QR)(e,{coverageAmount:t.coverageAmount??t.insuranceItem.coverAmount,endDate:t.endDate,startDate:t.startDate,subscriptionId:t.insuranceItem.subscriptionId,travellers:t.travellers}),key:s})}}function q(e,t){return r=>{r({type:c.aCA,api:d.JDo,request:async()=>{await (0,i.iW)(e,t);let n=await (0,y.getFullOrder)(e);r((0,f.iY)(n)),r((0,g.lW)(`/account/my-escapes/order/${e}`))},orderId:e})}}function O(e){return(t,r)=>{let n=r();n.insurance.passportCardCustomerDetails[e]||n.insurance.fetchingPassportCardCustomerDetails[e]||t({type:c.aCA,api:d.Xiv,subscriptionId:e,request:()=>(0,i.P0)(e)})}}function k(e,t,r){return(n,o)=>{n({type:c.aCA,api:d.JDo,request:async()=>{await (0,i.gu)(e,t,r);try{let t=await (0,y.getFullOrder)(e,{isLoyaltyEnabled:(0,v.A)(o())});n((0,f.iY)(t))}catch{n((0,f.XD)(e,{force:!0}))}n((0,g.lW)(`/account/my-escapes/order/${e}`)),n({type:c.azX,subscriptionId:t})},orderId:e})}}r.d(t,{$V:()=>h,Hg:()=>A,Lc:()=>I,O3:()=>D,PU:()=>O,c8:()=>k,iX:()=>T,rZ:()=>x,xi:()=>C,ye:()=>q})},695417(e,t,r){r.d(t,{xX:()=>C,$z:()=>P,HZ:()=>b,XG:()=>y,QR:()=>h,P0:()=>x,FM:()=>I,v9:()=>v,F6:()=>A,iW:()=>D,gu:()=>T}),r(218111),r(161701),r(720116);var i=r(126698),n=r(391609),o=r(755373),s=r.n(o),a=r(302885);function u(e){return{quoteId:e.quoteId,price:(0,a.cz)(e.products,e=>e.totalProductPrice??0),mobileAppOnlyPrice:(0,a.cz)(e.products,e=>e.mobileTotalProductPrice??0),luxPlusDiscountPercentage:e.luxPlusDiscountPercentage,luxPlusDiscountValueDisplayThreshold:e.luxPlusDiscountValueDisplayThreshold,luxPlusPrice:(0,a.cz)(e.products,e=>e.luxPlusTotalProductPrice??0),products:e.products.map(e=>({bookingStage:e.bookingStage,code:e.code,content:e.content,currencyCode:e.currencyCode,features:e.features,offeringMethod:e.offeringMethod,optInLabel:e.optInLabel,optOutLabel:e.optOutLabel,productId:e.productId,productPrice:e.productPrice??0,totalProductPrice:e.totalProductPrice??0,title:e.title,tsAndCsUrl:e.tsAndCsUrl,mobileProductPrice:e.mobileProductPrice??0,mobileTotalProductPrice:e.mobileTotalProductPrice??0}))}}var l=r(267662),c=r(917164),d=r(620921),p=r(381893);function _(e,t){return t?Math.max(e-t,0):0}async function y(e,t,r){let o=Array.isArray(r.travellers)?(0,c.AT)(r.travellers):r.travellers,s={number_of_adults:o.adults-(r.numberOfSeniors??0),number_of_children:o.children??0,number_of_infants:o.infants??0,number_of_seniors:r.numberOfSeniors??0},a={product_id:e,brand:l.A.BRAND,provider:"cover_genius",travellers_details:s,isCruise:r.isCruise,total_price:r.coverAmount,country_code:r.regionCode,currency:r.currency,destination_countries:r.destinationCountries,trip_start_date:r.startDate,trip_end_date:r.endDate,session_id:r.cartId||(0,p.Ay)(),mobile_only_price:r.isMobileApp,policy_ids:r.customPolicyIds,loyalty_tier:r.loyaltyTier,metadata:{sales_channel:r.spoofingAgentId?"agent":"customer",is_lux_plus_member:!!r.isLuxPlusMember,lux_verticals:r.luxVerticals,...r.spoofingAgentId&&{spoofing_agent:r.spoofingAgentId},...void 0!==r.priceAdjustmentPercentage&&{price_adjustment_percentage:r.priceAdjustmentPercentage}}},u=(0,n.fA)(r.regionCode,r.type);u||(a.insurance_type="travel-insurance"===r.type?"insurance":"cfmr",a.includingCovid=!0,a.is_flight_booking=r.isFlightBooking);let d=u?"/api/insurance/travel-protection/quote":`/api/insurance/quote?use_cache=${!!r.useCache}`;return i.Ay.post(d,a,{credentials:"include"}).then(i=>{let n=i.result;if(n&&"products"in n){let i=n.products.find(t=>t.product_id===e);if(i)return{id:n.id,key:r.key,destinationCountries:n.destination_countries,endDate:n.trip_end_date,startDate:n.trip_start_date,currencyCode:n.currency,productId:i.product_id,total:i.total,luxPlusTotal:t?i.lux_plus_total:0,luxPlusFlightTotal:i.lux_plus_flight_total,loyaltyTotal:i.loyalty_total??0,luxPlusSavings:t?_(i.total,i.lux_plus_total):0,loyaltySavings:_(i.total,i.loyalty_total),excess:i.excess_amount,pds:i._links.pds.href,travellerCount:n.traveller_count,requestedTravellers:{adults:s?.number_of_adults??0,children:s?.number_of_children??0,infants:s?.number_of_infants??0,seniors:s?.number_of_seniors??0},totalPerPerson:i.total/n.traveller_count,luxPlusTotalPerPerson:t?i.lux_plus_total/n.traveller_count:0,luxPlusFlightTotalPerPerson:void 0!==i.lux_plus_flight_total?i.lux_plus_flight_total/n.traveller_count:void 0,loyaltyTotalPerPerson:i.loyalty_total?i.loyalty_total/n.traveller_count:0,ageLimit:i.age_limit,disclaimer:i.disclaimer,seniorsApplicable:i.seniors_applicable,numberOfSeniors:r.numberOfSeniors,coverageAmou
1nt:r.coverAmount,luxPlusDiscountPercentage:n.lux_plus_discount_percentage,luxPlusDiscountValueDisplayThreshold:n.lux_plus_discount_value_display_threshold,mobileAppOnlyPrice:i.mobile_price_total??0,mobileAppOnlyPricePerPerson:i.mobile_price_total?i.mobile_price_total/n.traveller_count:0,mobileAppOnlySavings:_(i.total,i.mobile_price_total),policyQuotes:i.policy_quotes?.map(e=>({policy:e.policy,price:e.price,pricePerPerson:e.price/n.traveller_count,luxPlusPrice:t?e.lux_plus_price:0,luxPlusPricePerPerson:t?e.lux_plus_price/n.traveller_count:0,loyaltyPrice:e.loyalty_price??0,loyaltyPricePerPerson:e.loyalty_price?e.loyalty_price/n.traveller_count:0,mobileAppOnlyPricePerPerson:e.mobile_price?e.mobile_price/n.traveller_count:0,mobileAppOnlyPrice:e.mobile_price??0,pds:e.pds}))}}throw Error(`No quote found for product ${e}`)})}function f(e){return{policy:e.policy,name:e.name,keyBenefits:e.key_benefits}}function m(e,t){return{id:e.id,name:e.name,description:e.description,benefits:e.items,documents:e.documents&&{pds:e.documents.pds,emc:e.documents.emc,pp:e.documents.pp,apply:e.documents.apply,benefits:e.documents.benefits,ausResidency:e.documents.aus_residency},protectionType:e.is_full_protection?"full":(0,d.h6)(e.id)?"customisable":"standard",keyBenefits:e.key_benefits,estimateBracket:e.estimateBracket,benefitsHeading:e.key_benefits_heading,seniorsApplicable:!!e.seniors_applicable,extraCoverageAvailable:!!e.is_full_protection&&"cfmr"!==t,recommended:e.recommended,policyNames:e.policies??[],policyOptions:e.policy_options?.map(f)??[],ageLimit:e.age_limit,type:t}}async function g(e,t,r,o={}){let a=(0,n.fA)(e,t);if("booking-protection"===t){let e={provider:r,isDomestic:o.isDomestic,insuranceType:"cfmr",isCruise:o.isCruise},t=s().stringify(e);return i.Ay.get(`/api/insurance/products?${t}`).then(e=>({serverProducts:e.result,insuranceType:"cfmr"}))}if(a)if(o.isCruise){let e={provider:r,isDomestic:o.isDomestic,isCruise:!0},t=s().stringify(e);return i.Ay.get(`/api/insurance/travel-protection/products?${t}`).then(e=>({serverProducts:e.result,insuranceType:"travel_protection"}))}else{let e={provider:r,isDomestic:o.isDomestic},t=s().stringify(e);return i.Ay.get(`/api/insurance/travel-protection/customise-products?${t}`).then(e=>({serverProducts:e.result,insuranceType:"travel_protection"}))}{let e={provider:r,isDomestic:o.isDomestic,isCruise:o.isCruise,includingCovid:!0},t=s().stringify(e);return o.isCruise?i.Ay.get(`/api/insurance/products?${t}`).then(e=>({serverProducts:e.result,insuranceType:"insurance"})):i.Ay.get(`/api/insurance/customise-products?${t}`).then(e=>({serverProducts:e.result,insuranceType:"insurance"}))}}async function P(e,t,r={}){let i=(0,n.Ml)(e,t);if(i){let{serverProducts:n,insuranceType:o}=await g(e,t,i,r);return n.map(e=>m(e,o))}return Promise.resolve([])}function b(e,t){let r=(0,n.fA)(t,"travel-insurance");return i.Ay.get(`/api/insurance/subscription/${e}/products`,{credentials:"include"}).then(e=>e.result.map(e=>m(e,r?"travel_protection":"insurance")))}function v(e,t){return i.Ay.post(`/api/insurance/quote/${e}/opt_out`,{product_ids:t},{credentials:"include"})}function A(e,t){return i.Ay.post(`/api/insurance/quote/${e}/opt_out`,{proposal_id:t},{credentials:"include"})}function h(e,t){let r={subscription_id:t.subscriptionId,trip_start_date:t.startDate,trip_end_date:t.endDate,cover_amount:t.coverageAmount,travellers_details:t.travellers.map(e=>({surname:e.lastName,first_name:e.firstName,age_range:e.ageRange}))};return i.Ay.post(`/api/orders/${e}/insurance/quote-upgrade`,r,{credentials:"include"}).then(e=>{var r;return r=e.result,{subscriptionId:r.id,id:r.update_id,totalPriceDiff:r.total_price_diff,total:r.total_price,startDate:t.startDate,endDate:t.endD
1ate,coverageAmount:t.coverageAmount,travellers:t.travellers}})}async function D(e,t){await i.Ay.post(`/api/orders/${e}/insurance/upgrade`,t,{credentials:"include"})}async function C(e){return i.Ay.post("/api/insurance/refund-protect/quote",e,{credentials:"include"}).then(e=>u(e.result))}async function I(e){return i.Ay.patch("/api/insurance/refund-protect/quote",e,{credentials:"include"}).then(e=>u(e.result))}async function x(e){return(await i.Ay.get(`/api/insurance/subscription/${e}/passport-card-consumer-details`,{credentials:"include"})).result}async function T(e,t,r){await i.Ay.patch(`/api/orders/${e}/insurance/customer-details`,{subscriptionId:t,...r},{credentials:"include"})}}}]);
2//# sourceMappingURL=6075.18f7dd039d412011.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.