1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0eccc-6d35-7790-8b47-229eff20c685")}catch(e){}}();;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="5f026949-0ed7-7d8e-eede-312c548b3062")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,664659,e=>{"use strict";var t=e.i(631171);e.s(["ChevronDown",()=>t.default])},63209,e=>{"use strict";var t=e.i(361653);e.s(["AlertCircle",()=>t.default])},299023,e=>{"use strict";let t=(0,e.i(475254).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",0,t],299023)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],107233)},998739,e=>{"use strict";function t(e){return"object"==typeof e?.phone&&null!==e.phone?e.phone:"object"==typeof e?.mobile&&null!==e.mobile?e.mobile:void 0}e.s(["hasTransactionalSmsConsent",0,function(e){return!0===[e?.consents?.transactional_sms,e?.transactional_sms_consent,t(e)?.transactional_sms_consent].find(e=>"boolean"==typeof e)},"hasVerifiedPhoneNumber",0,function(e){return t(e)?.verified===!0},"resolvePhoneNumber",0,t,"unverifiedAttachedPhone",0,function(e){let r=e?.unverified_phone;if("object"==typeof r&&null!==r&&r.number)return r;let n=t(e);if(n?.number&&!0!==n.verified)return n}])},281051,e=>{"use strict";var t=e.i(1078),r=e.i(595074);function n(e){return e?.trim()||(0,r.readReferralCoupon)()}e.s(["campaignRegistrationFields",0,function(e,r){let o=n(e),i=(0,t.getAffiliateRawParams)(),a=i.campaignName?.trim();if(a&&a!==r?.trim()){let e=i.referralCoupon;return{referralCoupon:o&&o!==e?o:null}}let s=(0,t.getAffiliateRegistrationFields)(o),u=i.referralCoupon;return u&&s.referralCoupon===u?s:{referralCoupon:s.referralCoupon}},"consumeSignupAttribution",0,function(){(0,r.forgetReferralCoupon)(),(0,t.clearAffiliateRawParams)()},"readSignupCoupon",0,n,"rememberSignupCoupon",0,function(e,t){t?.trim()||(0,r.rememberReferralCoupon)(e)}])},813702,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(387689);e.s(["AuthIsland",0,function({children:e,fallback:o}){return(0,t.jsx)(r.Suspense,{fallback:o??(0,t.jsx)(n.AuthProvider,{userPromise:n.SETTLED_LOGGED_OUT,children:e}),children:e})}])},853027,e=>{"use strict";var t=e.i(843476),r=e.i(63209);e.i(355049);var n=e.i(147895);e.s(["AuthErrorNotice",0,function({message:e,className:o}){return(0,t.jsxs)("div",{role:"alert",className:(0,n.cn)("flex items-center gap-2 rounded-auth-error bg-error-notice px-4 py-3",o),children:[(0,t.jsx)(r.AlertCircle,{className:"h-[15px] w-3 shrink-0 text-error-600","aria-hidden":"true"}),(0,t.jsx)("p",{className:"min-w-0 text-auth-error font-semibold text-error-600",children:e})]})}])},938018,e=>{"use strict";e.s(["FIELD_ACCENT_BAR",0,"border-gray-300 focus-within:border-gray-300 before:pointer-events-none before:absolute before:inset-y-0 before:left-0 before:w-[1.625px] before:content-[''] before:bg-gradient-to-b before:from-field-accent-top before:to-field-accent-bottom","FIELD_BOX",0,"overflow-hidden rounded-2xl px-4 shadow-md focus-within:ring-0","FIELD_TEXT",0,"text-base font-normal placeholder:text-gray-400"])},226084,e=>{"use strict";function t(e){return e.validity??e.valid_till??null}function r(e){let t=new Date(e),r=`${t.getMonth()+1}`.padStart(2,"0"),n=`${t.getDate()}`.padStart(2,"0");return`${t.getFullYear()}-${r}-${n}`}function n(e,o=Date.now()){let i=t(e);return!!i&&r(o)>r(1e3*i)}function o(e,t){if(!t?.length||!e.id)return!1;let r=e.id.toUpperCase();return t.some(e=>e?.toUpperCase()===r)}function i(e,t={}){let{redeemedCouponIds:r,nowMs:a}=t;return"active"!==e.status?"inactive":e.meta_data?.is_referral?"referral":n(e,a)?"expired":o(e,r)?"already-redeemed":!function(e){let{redemptions:t,max_redemptions:r}=e;return"number"==typeof t&&"number"==typeof r&&t>=r}(e)?null:"exhausted"}e.s(["COUPON_PLAN_INELIGIBLE_MESSAGE",0,"Coupon is not eligible on your current plan.","COUPON_REJECTION_MESSAGES",0,{inactive:"This coupon is no longer active.",referral:"Referral coupons cannot be applied here.",expired:"This coupon has expired.","already-redeemed":"You have already redeemed this coupon.",exhausted:"This coupon has been fully redeemed."},"couponExpiryUnix",0,t,"currentChargebeePlanId",0,function(e){let t=e?.current_plan;return t&&"object"==typeof t?t.chargebee_plan_id??null:null},"getCouponRejection",0,i,"isCouponAlreadyRedeemed",0,o,"isCouponExpired",0,n,"isCouponRedeemable",0,function(e,t={}){return null===i(e,t)},"isPlanEligibleForCoupon",0,function(e,t){if(!e?.length||!t)return!0;let r=t.toLowerCase();return e.some(e=>e.toLowerCase()===r)}])},495822,e=>{"use strict";var t=e.i(271645),r=e.i(814567),n=e.i(554624);e.s(["useAnalyticsUserContext",0,function(){let{isLoggedIn:e,userId:o,userDetails:i}=(0,r.useAuth)(),a=(0,t.useRef)({userType:"Guest user",userId:null,email:null});return a.current=(0,n.deriveUserContext)({isLoggedIn:e,userId:o,userDetails:i}
2),a}])},890037,e=>{"use strict";var t=e.i(283599);let r=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`Failed to load locations (${t.status})`);return t.json()};e.s(["useLocationsSWR",0,function(e="british-airways",{isOpened:n}={isOpened:!0},o){return(0,t.default)(n?`/api/locations?airline=${encodeURIComponent(e)}`:null,r,o)}])},595074,e=>{"use strict";var t=e.i(662537),r=e.i(385776),n=e.i(226084),o=e.i(1078);let i="referralCoupon",a=["coupon","referralCoupon"];function s(e){for(let t of a){let r=e.get(t)?.trim();if(r)return r}return""}function u(e){let t=e?.trim();if(t)try{sessionStorage.setItem(i,t)}catch{}}function l(){try{return sessionStorage.getItem(i)?.trim()||""}catch{return""}}function d(){try{sessionStorage.removeItem(i)}catch{}}function c(){d(),(0,o.mergeAffiliateRawParams)({referralCoupon:""})}async function p(e,o={}){if(!e)return{code:""};let i=null,a=!1;try{let t=await fetch(`/api/chargebee/coupon?code=${encodeURIComponent(e)}`);t.ok?i=(await t.json()).coupon??null:404!==t.status&&(a=!0)}catch(e){a=!0,(0,t.captureException)(e,{tags:{source:"referral-coupon-validation"}})}if(a)return{code:e};if(!i)return c(),{code:""};let s=(0,n.getCouponRejection)(i)??void 0;return s?(c(),{code:"",rejectionReason:s}):o.gateExistingMemberOffers&&(0,r.getCouponLandingConfig)(e)?.isExistingMemberOffer?(c(),{code:""}):{code:e}}async function f(e,t={}){let r;return p((r=s(e))?(u(r),r):l(),t)}e.s(["couponFromSearchParams",0,s,"forgetReferralCoupon",0,d,"readReferralCoupon",0,l,"rememberReferralCoupon",0,u,"resolveValidatedReferralCoupon",0,f,"validateReferralCoupon",0,p])},940161,e=>{"use strict";var t=e.i(257856),r=e.i(867073);function n(e){return e&&"object"==typeof e?e:null}function o(e){return e?.period_unit==="year"?"Annual":"Monthly"}let i={"bronze-plan":{PLAN_NAME:"Bronze",VALUE:"bronze"},"bronze-trial-plan":{PLAN_NAME:"Bronze",VALUE:"bronze"},"elite-plan-pound-monthly":{PLAN_NAME:"Silver",VALUE:"silver"},"elite-plan-pound-yearly":{PLAN_NAME:"Silver",VALUE:"silver"},"gold-plan-gbp-monthly-launch":{PLAN_NAME:"Gold",VALUE:"gold"},"gold-plan-gbp-monthly":{PLAN_NAME:"Gold",VALUE:"gold"},"gold-plan-gbp-yearly":{PLAN_NAME:"Gold",VALUE:"gold"}};function a(e){return e?i[e]?.PLAN_NAME??"N/A":"N/A"}function s(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}let u=Object.freeze(Object.assign(Object.create(null),{...r.CABIN_CLASS_LABELS,premium_economy:r.CABIN_CLASS_LABELS[r.CabinClass.Premium]}));function l(e){let t=Array.isArray(e)?e:"string"==typeof e?e.split(",").filter(Boolean):[],n=(0,r.sortCabinClasses)(t).map(e=>u[e.toLowerCase()]??e);return n.length?n.join(","):"N/A"}function d(e){return"return"===e?"Return":"One Way"}function c(e){return"IB"===e?"Iberia":"British Airways"}e.s(["airlineAnalyticsName",0,c,"alertToParamsInput",0,function(e){let t=e.raw;return{airline:c(e.airlineCode),airlineCode:e.airlineCode,originIATA:t.source_code,destinationIATA:t.destination_code,originCity:e.origin.cityName,destinationCity:e.destination.cityName,originCountry:e.origin.countryCode,destinationCountry:e.destination.countryCode,journeyType:e.tripType,numberOfPassengers:e.passengers,cabinClasses:e.cabinClasses.join(","),onlyOffPeak:e.isOffPeakOnly,outboundStartDate:t.start_date,outboundEndDate:t.end_date,inboundStartDate:t.arrival_start_date,inboundEndDate:t.arrival_end_date,isTimeSpecificAlert:!!(t.outbound_start_time||t.inbound_start_time),isFlightSpecificAlert:!!(t.outbound_flights||t.inbound_flights),outboundAirports:t.outbound_airports||t.source_airport_code,inboundAirports:t.inbound_airports||t.destination_airport_code,outboundStartTime:t.outbound_start_time,outboundEndTime:t.outbound_end_time,inboundStartTime:t.inbound_start_time,inboundEndTime:t.inbound_end_time,outboundFlights:t.outbound_flights,inboundFlights:t.inbound_flights,clubSuiteOnly:e.isClubSuiteOnly}},"authMethodLabel",0,s,"buildAlertParamsPayload",0,function(e){let t="IB"===e.airlineCode?"nextBusiness":"clubSuite",r={airline:e.airline||"British Airways",originIATA:e.originIATA||"N/A",destinationIATA:e.destinationIATA||"N/A",originCity:e.originCity||"N/A",destinationCity:e.destinationCity||"N/A",originCountry:e.originCountry||"N/A",destinationCountry:e.destinationCountry||"N/A",journeyType:d(e.journeyType),numberOfPassengers:e.numberOfPassengers??"N/A",cabinClasses:l(e.cabinClasses),onlyAlertOffPeakAvailable:e.onlyOffPeak?"Yes":"No",outboundStartDate:e.outboundStartDate||"N/A",outboundEndDate:e.outboundEndDate||"N/A",inboundStartDate:e.inboundStartDate||"N/A",inboundEndDate:e.inboundEndDate||"N/A",isTimeSpecificAlert:!!e.isTimeSpecificAlert,[e.useLegacyFlightSpecificKey?"isFlightSepecifAlert":"isFlightSpecificAlert"]:!!e.isFlightSpecificAlert,outboundAirports:e.outboundAirports||"N/A",inboundAirports:e.inboundAirports||"N/A",outboundStartTime:e.outboundStartTime||"N/A",inboundStartTime:e.inboundStartTime||"N/A",outboundEndTime:e.outboundEndTime||"N/A",inboundEndTime:e.inboundEndTime||"N/A",outboundFlights:e.outboundFlights||"N/A",inboundFlights:e.inboundFlights||"N/A",[t]:!!e.clubSuiteOnly};return e.firstEver&&(r.firstEver=e.firstEver),r},"buildBookOnRedirectPayload",0,function(e){var r;return{airline:c(e.airlineCode),originIATA:e.sourceCode||"N/A",destinationIATA:e.destCode||"N/A",originCity:e.originCity||"N/A",destinationCity:e.destinationCity||"N/A",originCountry:e.originCountry||"N/A",destinationCountry:e.destinationCountry||"N/A",journeyType:d(e.journeyType),departureDate:(0,t.convertPosthogDateFormat)(e.date),returnDate:(0,t.convertPosthogDateFormat)(e.returnDate),numberOfPassengers:e.numberOfPassengers??"N/A",cabinClasses:(r=e.cabin)?u[r.toLowerCase()]??"Economy":"Economy"}},"buildFlightSearchPayload",0,function(e){return{"Search Type":e.searchType||"Calendar Page","Search Parameters":{airline:e.airline||"British Airways",originIATA:e.originIATA||"N/A",destinationIATA:e.destinationIATA||"N/A",originCity:e.originCity||"N/A",destinationCity:e.destinationCity||"N/A",originCountry:e.originCountry||"N/A",destinationCountry:e.destinationCountry||"N/A",journeyType:d(e.journeyType),numberOfPassengers:e.numberOfPassengers??"N/A",cabinClasses:e.cabinClasses?l(e.cabinClasses):"Economy",searchOriginatedFrom:e.searchOriginatedFrom||"N/A",outboundStartDate:e.outboundStartDate||"N/A",outboundEndDate:e.outboundEndDate||"N/A",inboundStartDate:e.inboundStartDate||"N/A",inboundEndDate:e.inboundEndDate||"N/A"}}},"buildNewSignupPayload",0,function(e,r={}){let i=n(r.currentPlan),a=i?.chargebee_plan_id,u=(0,t.isOnTrial)(i?.on_trial,a),l=r.affiliateId||"";return{planName:i?.name||i?.plan_name||i?.membership_type||"N/A",chargeBeePlanId:a||"N/A",billingFrequency:o(i),onTrial:u?"Yes":"No",trialLength:(0,t.fetchTrialLength)(u,a),trialUnit:(0,t.fetchTrialUnit)(u,a),reffered:l?"Yes":"No",affiliateId:l||"N/A",affiliateProgram:"N/A",signUpMethod:s(e)}},"buildPlanParametersPayload",0,function(e){let r=n(e.newPlan),i=n(e.oldPlan),s=!!e.firstTimeSignup,u=r?.chargebee_plan_id,l=i?.chargebee_plan_id,d=(0,t.isOnTrial)(r?.on_trial,u),c=(0,t.isOnTrial)(i?.on_trial,l);return{planName:a(u),chargeBeePlanId:u||"N/A",billingFrequency:o(r),onTrial:d?"Yes":"No",trialLength:(0,t.fetchTrialLength)(d,u),trialUnit:(0,t.fetchTrialUnit)(d,u),oldPlanName:s?"N/A":a(l),oldChargeBeePlanId:s?"N/A":l||"N/A",oldBillingFrequency:s?"N/A":i?.period_unit==="year"?"Annual":"Monthly",oldOnTrial:s?"N/A":c?"Yes":"No",oldTrialLength:s?"N/A":(0,t.fetchTrialLength)(c,l),oldTrialUnit:s?"N/A":(0,t.fetchTrialUnit)(c,l),redirectFrom:e.redirectFrom||"N/A"}},"cabinClassesLabel",0,l,"planNameFromId",0,a])},655862,e=>{"use strict";let t="https://internal.invalid";function r(e){if("string"!=typeof e)return null;let r=e.trim();if(!r||r.length>2048||!r.startsWith("/")||r.startsWith("//")||r.startsWith("/\\")||function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<=31||127===r)return!0}return!1}(r))return null;try{let e=new URL(r,t);if(e.origin!==t)return null;return`${e.pathname}${e.search}${e.hash}`}catch{return null}}e.s(["sanitizeReturnTo",0,r,"withReturnTo",0,function(e,t){let n=r(t);if(!n)return e;let o=e.includes("?")?"&":"?";return`${e}${o}returnTo=${encodeURIComponent(n)}`}])},867073,e=>{"use strict";var t,r=((t={}).Economy="economy",t.Premium="premium",t.Business="business",t.First="first",t);let n=["economy","premium","business","first"],o={economy:"Economy",premium:"Premium",business:"Business",first:"First"},i={economy:"#3757ff",premium:"#fea41d",business:"#a400f1",first:"#f31973"},a=n.map(e=>({cabinClass:e,title:o[e],color:i[e]})),s=a.filter(e=>"first"!==e.cabinClass),u={BA:["economy","premium","business","first"],IB:["economy","premium","business"]},l={...Object.fromEntries(n.map((e,t)=>[e,t])),premium_economy:n.indexOf("premium")},d=Number.MAX_SAFE_INTEGER;e.s(["ALL_CABIN_CLASSES",0,n,"BA_ALL_CABIN_CLASSES",0,{economy:!0,premium:!0,business:!0,first:!0},"BRITISH_AIRWAYS_CLASSES",0,a,"CABIN_CLASS_CLASSES",0,{economy:{primary:"bg-cabin-economy",border:"border-blue-500",bgTint:"bg-blue-100",text:"text-cabin-economy"},premium:{primary:"bg-cabin-premium",border:"border-yellow-500",bgTint:"bg-yellow-100",text:"text-cabin-premium"},business:{primary:"bg-cabin-business",border:"border-purple-500",bgTint:"bg-purple-100",text:"text-cabin-business"},first:{primary:"bg-cabin-first",border:"border-pink-500",bgTint:"bg-pink-100",text:"text-cabin-first"}},"CABIN_CLASS_COLORS",0,i,"CABIN_CLASS_CSS_VARS",0,{economy:{primary:"var(--color-cabin-economy)",border:"var(--color-blue-500)"},premium:{primary:"var(--color-cabin-premium)",border:"var(--color-yellow-500)"},business:{primary:"var(--color-cabin-business)",border:"var(--color-purple-500)"},first:{primary:"var(--color-cabin-first)",border:"var(--color-pink-500)"}},"CABIN_CLASS_LABELS",0,o,"CabinClass",()=>r,"DEFAULT_CABIN_CLASSES",0,{economy:!0,premium:!1,business:!1,first:!1},"IBERIA_AIRWAYS_CLASSES",0,s,"MAP_DEFAULT_CABIN_CLASSES",0,{economy:!0,premium:!0,business:!0,first:!0},"enabledCabinClassParam",0,function(e){return n.filter(t=>e[t]).join(",")},"getCabinClassesForAirline",0,function(e){return u[e.toUpperCase()]??n},"sortCabinClasses",0,function(e){let t=e=>l[e.toLowerCase()]??d;return[...e].sort((e,r)=>t(e)-t(r))}])},216988,e=>{"use strict";var t=e.i(843476),r=e.i(147895);e.s(["Card",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,r.cn)("flex flex-col gap-6 rounded-xl border bg-white py-6 text-secondary-900 shadow-sm",e),...n})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...n})}])},769086,e=>{"use strict";var t=e.i(843476);let r=e.i(271645).default.memo(function({countryCode:e,emoji:r,size:n=24,shape:o="circle",className:i="",alt:a}){let s=e?`https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`:null,u={width:n,height:n},l="rounded"===o?"rounded-sm":"rounded-full";return s?(0,t.jsx)("img",{src:s,alt:a??e??"",loading:"lazy",style:u,className:`shrink-0 ${l} object-cover ring-1 ring-gray-200 ${i}`}):r?(0,t.jsx)("span",{"aria-hidden":"true",style:{...u,fontSize:.8*n,lineHeight:1},className:`inline-flex shrink-0 items-center justify-center ${i}`,children:r}):(0,t.jsx)("span",{"aria-hidden":"true",style:u,className:`inline-block shrink-0 ${l} bg-gray-100 ${i}`})});e.s(["default",0,r])},643394,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(981140),o=e.i(820783),i=e.i(30030),a=e.i(726330),s=e.i(303536),u=e.i(765491),l=e.i(610772),d=e.i(853660),c=e.i(774606),p=e.i(296626),f=e.i(248425),m=e.i(991918),b=e.i(369340),g=e.i(186312),A=e.i(985369),h=Object.defineProperty,C=(e,t)=>h(e,"name",{value:t,configurable:!0}),y="Popover",[v,P]=(0,i.createContextScope)(y,[d.createPopperScope]),N=(0,d.createPopperScope)(),[_,S]=v(y),x=C(e=>{let{__scopePopover:n,children:o,open:i,defaultOpen:a,onOpenChange:s,modal:u=!1}=e,c=N(n),p=r.useRef(null),[f,m]=r.useState(!1),[g,A]=(0,b.useControllableState)({prop:i,defaultProp:a??!1,onChange:s,caller:y});return(0,t.jsx)(d.Root,{...c,children:(0,t.jsx)(_,{scope:n,contentId:(0,l.useId)(),triggerRef:p,open:g,onOpenChange:A,onOpenToggle:r.useCallback(()=>A(e=>!e),[A]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>m(!0),[]),onCustomAnchorRemove:r.useCallback(()=>m(!1),[]),modal:u,children:o})})},"Popover"),E=r.forwardRef(C(function(e,n){let{__scopePopover:o,...i}=e,a=S("PopoverAnchor",o),s=N(o),{onCustomAnchorAdd:u,onCustomAnchorRemove:l}=a;return r.useEffect(()=>(u(),()=>l()),[u,l]),(0,t.jsx)(d.Anchor,{...s,...i,ref:n})},"PopoverAnchor")),T=r.forwardRef(C(function(e,r){let{__scopePopover:i,...a}=e,s=S("PopoverTrigger",i),u=N(i),l=(0,o.useComposedRefs)(r,s.triggerRef),c=(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":$(s.open),...a,ref:l,onClick:(0,n.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?c:(0,t.jsx)(d.Anchor,{asChild:!0,...u,children:c})},"PopoverTrigger")),L="PopoverPortal",[w,R]=v(L,{forceMount:void 0}),I=C(e=>{let{__scopePopover:r,forceMount:n,children:o,container:i}=e,a=S(L,r);return(0,t.jsx)(w,{scope:r,forceMount:n,children:(0,t.jsx)(p.Presence,{present:n||a.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:i,children:o})})})},"PopoverPortal"),j="PopoverContent",O=r.forwardRef(C(function(e,r){let n=R(j,e.__scopePopover),{forceMount:o=n.forceMount,...i}=e,a=S(j,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:o||a.open,children:a.modal?(0,t.jsx)(D,{...i,ref:r}):(0,t.jsx)(B,{...i,ref:r})})},"PopoverContent")),F=(0,m.createSlot)("PopoverContent.RemoveScroll"),D=r.forwardRef(C(function(e,i){let a=S(j,e.__scopePopover),s=r.useRef(null),u=(0,o.useComposedRefs)(i,s),l=r.useRef(!1);return r.useEffect(()=>{let e=s.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(A.RemoveScroll,{as:F,allowPinchZoom:!0,children:(0,t.jsx)(U,{...e,ref:u,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||a.triggerRef.current?.focus()}
2),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),B=r.forwardRef(C(function(e,n){let o=S(j,e.__scopePopover),i=r.useRef(!1),a=r.useRef(!1);return(0,t.jsx)(U,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"PopoverContentNonModal")),U=r.forwardRef(C(function(e,r){let{__scopePopover:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:b,...g}=e,A=S(j,n),h=N(n);return(0,s.useFocusGuards)(),(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,t.jsx)(a.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:b,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>A.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(d.Content,{"data-state":$(A.open),role:"dialog",id:A.contentId,...h,...g,ref:r,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),k=r.forwardRef(C(function(e,r){let{__scopePopover:o,...i}=e,a=S("PopoverClose",o);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:r,onClick:(0,n.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})},"PopoverClose")),M=r.forwardRef(C(function(e,r){let{__scopePopover:n,...o}=e,i=N(n);return(0,t.jsx)(d.Arrow,{...i,...o,ref:r})},"PopoverArrow"));function $(e){return e?"open":"closed"}C($,"getState"),e.s(["Anchor",0,E,"Arrow",0,M,"Close",0,k,"Content",0,O,"Popover",0,x,"PopoverAnchor",0,E,"PopoverArrow",0,M,"PopoverClose",0,k,"PopoverContent",0,O,"PopoverPortal",0,I,"PopoverTrigger",0,T,"Portal",0,I,"Root",0,x,"Trigger",0,T,"createPopoverScope",0,P],178761);var z=e.i(178761),z=z,G=e.i(147895);e.s(["Popover",0,function({...e}){return(0,t.jsx)(z.Root,{"data-slot":"popover",...e})},"PopoverAnchor",0,function({...e}){return(0,t.jsx)(z.Anchor,{"data-slot":"popover-anchor",...e})},"PopoverContent",0,function({className:e,align:r="center",sideOffset:n=4,...o}){return(0,t.jsx)(z.Portal,{children:(0,t.jsx)(z.Content,{"data-slot":"popover-content",align:r,sideOffset:n,className:(0,G.cn)("z-[300] w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-white p-4 text-secondary-900 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...o})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(z.Trigger,{"data-slot":"popover-trigger",...e})}],643394)}]); 3 4//# debugId=5f026949-0ed7-7d8e-eede-312c548b3062 5//# chunkId=01a0eccc-6d35-7790-8b47-229eff20c685
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.