PageSourceSearch

https://static3.freecash.com/_next/static/chunks/2k7zg-jav1z35.js?dpl=r2-1

js freecash.com collected 2026-10-01 10:20:51 UTC 305,957 bytes, 246 lines download raw bytes

1;!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]="b983d44b-7abf-9b24-2b6c-4dd5f4ed917d")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,873108,439584,789569,e=>{"use strict";var r,t,a,s,n,o,i,l,c=e.i(662537),d=e.i(938461),p=e.i(262947),u=e.i(169329);function x(e){async function r(r,t){var a;let s,n,o=(0,u.printDocument)(r),i=await (0,p.executeGraphQL)({document:o,variables:t,transport:{send:({body:r})=>e.fetch(e.endpoint,{...e.fetchInit,method:"POST",headers:{"Content-Type":"application/json",...e.getHeaders?.()},credentials:"include",body:r}),translate:e.translateErrorMessage}}),{meta:l}=i;if(i.ok){if(!i.data)throw Error("No data in GraphQL response");return{data:i.data,meta:{resUuid:l.resUuid}}}let{failure:x}=i;if(void 0!==l.status&&!l.ok)throw function(r,t){let a=Error(`API request failed: ${r.status} ${r.statusText}`);return c.captureException(a,{fingerprint:[a.message],extra:{status:r.status,endpoint:e.endpoint,operation:/\b(?:query|mutation)\s+(\w+)/.exec(t)?.[1]??null,responseBody:r.responseText?.slice(0,2e3)||null}}),a}(l,o);if("network"===x.kind||"non-json"===x.kind)throw x.error;throw n=(s=(a=x).body.errors)[0].message,(0,d.isIgnoredApiError)(n)||c.captureException(Error(`GraphQL error: ${n}`),{fingerprint:[`GraphQL error: ${n}`],extra:{errors:s,endpoint:e.endpoint}}),Error(a.errors[0].message)}async function t(e,t){let{data:a}=await r(e,t);return a}return{query:t,queryWithMeta:async function(e,t){return r(e,t)},mutate:t}}let m=`
3  query getOffersCashback(
4    $limit: Int,
5    $page: Int,
6    $ids: [Int!],
7    $categories: [OfferCategory!],
8    $searchTerm: String,
9    $sort: GetOffersSort!,
10    $includeTags: [OfferTagEnum!],
11    $source: OfferClickSource
12  ) {
13    getOffers(
14      limit: $limit,
15      page: $page,
16      ids: $ids,
17      categories: $categories,
18      searchTerm: $searchTerm,
19      sort: $sort,
20      includeTags: $includeTags,
21      source: $source
22    ) {
23      items {
24        id
25        name
26        description
27        slug
28        coins
29        category
30        thumbnail
31        thumbnailLarge
32        coupons {
33          coupon
34          description
35          endDate
36          name
37          requirements
38          startDate
39        }
40        isAvailable
41        cashbackPromotion {
42          coinStrike
43          percentageStrike
44          promotionalText
45          validFrom
46          validTo
47        }
48        tasks {
49          id
50          title
51          type
52          coins
53          hint
54          offerId
55          payoutStructureId
56          priority
57          requirementValue
58          updatedAt
59        }
60        requirements
61        tags
62        url
63      }
64      meta {
65        itemCount
66        totalItems
67        totalPages
68        itemsPerPage
69        currentPage
70      }
71    }
72  }
73`,h=`
74  query getOfferCashback($slug: String, $source: GetOfferSourceInput) {
75    getOffer(slug: $slug, source: $source) {
76      id
77      name
78      description
79      slug
80      coins
81      category
82      thumbnail
83      thumbnailLarge
84      images {
85        url
86      }
87      coupons {
88        coupon
89        description
90        endDate
91        name
92        requirements
93        startDate
94      }
95      isAvailable
96      cashbackPromotion {
97        coinStrike
98        percentageStrike
99        promotionalText
100        validFrom
101        validTo
102      }
103      tasks {
104        id
105        title
106        type
107        coins
108        hint
109        offerId
110        priority
111        requirementValue
112      }
113      requirements
114      tags
115      url
116      activity {
117        id
118        activityType
119        clickDate
120        date
121        coins
122        pending
123        pendingUntil
124        rejected
125      }
126      displayProperties {
127        averageReleaseDays
128      }
129    }
130  }
131`;var f=((r={}).AGE_LIMIT_21="AGE_LIMIT_21",r.ALMEDIA_CASHBACK_INQUIRY_ALLOWED="ALMEDIA_CASHBACK_INQUIRY_ALLOWED",r.ALMEDIA_CASHBACK_INQUIRY_REQUIRED="ALMEDIA_CASHBACK_INQUIRY_REQUIRED",r.ALMEDIA_CASHBACK_PROMOTED_GENERAL="ALMEDIA_CASHBACK_PROMOTED_GENERAL",r.ALMEDIA_CASHBACK_PROMOTED_PREMIUM="ALMEDIA_CASHBACK_PROMOTED_PREMIUM",r.HAS_INSTALL_EVENTS="HAS_INSTALL_EVENTS",r.HAS_PURCHASE_EVENTS="HAS_PURCHASE_EVENTS",r.HAS_SESSION_EVENTS="HAS_SESSION_EVENTS",r.MAX_ROAS_BUDGET_BIDS="MAX_ROAS_BUDGET_BIDS",r.OFFER_BUNDLE_REQUIREMENT="OFFER_BUNDLE_REQUIREMENT",r.OFFER_CREDIT_AVERAGE_RELEASE_DAYS="OFFER_CREDIT_AVERAGE_RELEASE_DAYS",r.PREMIUM_BADGE="PREMIUM_BADGE",r.START_MODE_PROMOTION_REVOLUT="START_MODE_PROMOTION_REVOLUT",r.START_MODE_PROMOTION_STAKE="START_MODE_PROMOTION_STAKE",r.TIER_1_REWARDS="TIER_1_REWARDS",r.TIER_2_REWARDS="TIER_2_REWARDS",r),C=((t={}).AD_REVENUE="AD_REVENUE",t.BURNING_REWARDS="BURNING_REWARDS",t.DAILY_OPEN_APP_BONUS_REWARD="DAILY_OPEN_APP_BONUS_REWARD",t.DEFAULT="DEFAULT",t.DISTINCT_DAY_LEVEL_UP_COUNT="DISTINCT_DAY_LEVEL_UP_COUNT",t.DISTINCT_DAY_PURCHASE_COUNT="DISTINCT_DAY_PURCHASE_COUNT",t.EXTENDED_EXPIRY="EXTENDED_EXPIRY",t.FIRST_DAY_OPEN_APP="FIRST_DAY_OPEN_APP",t.INFINITE_COMPLETIONS="INFINITE_COMPLETIONS",t.INFINITE_LEVEL_UP="INFINITE_LEVEL_UP",t.INTRA_DAY="INTRA_DAY",t.LEVEL_UP="LEVEL_UP",t.MULTI_EVENT="MULTI_EVENT",t.PERCENTAGE="PERCENTAGE",t.PURCHASE="PURCHASE",t.PURCHASE_BONUS_REWARD="PURCHASE_BONUS_REWARD",t.REWARD_PER_X_LEVEL_UPS="REWARD_PER_X_LEVEL_UPS",t.SESSION="SESSION",t.TIME_LIMIT="TIME_LIMIT",t),g=((a={}).MOST_POPULAR="MOST_POPULAR",a.HIGHEST_PAYING="HIGHEST_PAYING",a.NEWEST="NEWEST",a),b=((s={}).CASHBACK="CASHBACK",s),y=((n={}).CASHBACK_ALL_DEALS="CASHBACK_ALL_DEALS",n.CASHBACK_BOOSTED_DEALS="CASHBACK_BOOSTED_DEALS",n.CASHBACK_MY_OFFERS="CASHBACK_MY_OFFERS",n.CASHBACK_PREMIUM="CASHBACK_PREMIUM",n.CASHBACK_SEARCH="CASHBACK_SEARCH",n),j=((o={}).OFFER_CLICK="OFFER_CLICK",o.OFFER_COMPLETE="OFFER_COMPLETE",o),v=((i={}).HOVER="HOVER",i.CLICK="CLICK",i),N=((l={}).OFFER_START_BUTTON="OFFER_START_BUTTON",l.OFFER_CARD="OFFER_CARD",l.OFFER_INFO_BUTTON="OFFER_INFO_BUTTON",l);e.s(["OfferActivityType",()=>j,"OfferCategory",()=>b,"OfferClickSource",()=>y,"OfferTag",()=>f,"OfferTaskType",()=>C,"OffersSortBy",()=>g,"UserInteractionEvent",()=>v,"UserInteractionTarget",()=>N],439584);let _=`
132  query getMyOffersCashback(
133    $limit: Int,
134    $page: Int,
135    $clicked: Boolean,
136    $startStatuses: [OfferClickStatus!],
137    $categories: [OfferCategory!]
138  ) {
139    getMyOffers(
140      limit: $limit,
141      page: $page,
142      clicked: $clicked,
143      startStatuses: $startStatuses,
144      categories: $categories
145    ) {
146      items {
147        id
148        name
149        slug
150        coins
151        thumbnail
152        thumbnailLarge
153        isAvailable
154        coupons {
155          coupon
156          description
157          endDate
158          name
159          requirements
160          startDate
161        }
162        cashbackPromotion {
163          coinStrike
164          percentageStrike
165          promotionalText
166          validFrom
167          validTo
168        }
169        tasks {
170          id
171          title
172          type
173          coins
174          hint
175          offerId
176          payoutStructureId
177          priority
178          requirementValue
179          updatedAt
180        }
181        tags
182      }
183      meta {
184        currentPage
185        totalPages
186        itemsPerPage
187      }
188    }
189  }
190`,w=`
191  mutation CreateCashbackSupportTicket(
192    $activityType: OfferActivityTypeEnum!
193    $id: Int!
194    $orderNumber: String!
195    $orderAmount: Float!
196    $orderCurrency: AvailableCurrencies!
197    $emailUsedForOrder: String!
198    $comments: String
199    $discountCode: String
200    $purchaseDate: DateTime!
201    $screenshotUrls: [String!]
202  ) {
203    createCashbackSupportTicket(
204      activityType: $activityType
205      id: $id
206      orderNumber: $orderNumber
207      orderAmount: $orderAmount
208      orderCurrency: $orderCurrency
209      emailUsedForOrder: $emailUsedForOrder
210      comments: $comments
211      discountCode: $discountCode
212      purchaseDate: $purchaseDate
213      screenshotUrls: $screenshotUrls
214    )
215  }
216`;var S=e.i(374718);e.i(890526);var E=e.i(840731);let k=(0,E.graphql)(`
217  query getUserGiftCards(
218    $limit: Int!
219    $page: Int!
220    $status: UserGiftCardStatus!
221    $sort: UserGiftCardSort
222  ) {
223    getUserGiftCards(limit: $limit, page: $page, status: $status, sort: $sort) {
224      items {
225        ...UserGiftCardListFields
226      }
227      meta {
228        ...PaginationMetaFields
229      }
230    }
231  }
232`),T=(0,E.graphql)(`
233  query getUserGiftCard($id: String!) {
234    getUserGiftCard(id: $id) {
235      ...UserGiftCardDetailFields
236    }
237  }
238`),A=(0,E.graphql)(`
239  mutation updateUserGiftCardStatus($id: String!, $status: UserGiftCardStatus!) {
240    updateUserGiftCardStatus(id: $id, status: $status) {
241      ...UserGiftCardListFields
242    }
243  }
244`);var I=e.i(424251);function R({fetchConfig:e}){return{async getActivationJourneys(){let r=e.nonGamingApiBaseUrl??"",t=await e.fetch(`${r}/activation-journeys`,{...e.fetchInit,credentials:"include",headers:e.getHttpHeaders?.()??{}});if(!t.ok)throw new I.NonGamingHttpError("Failed to fetch activation journeys",t.status);return t.json()}}}e.s(["createActivationJourneysApi",0,R],789569),e.s(["createDealsApi",0,function(e,r=fetch){let t={...e,fetch:r},a={getHeaders:t.getHttpHeaders,translateErrorMessage:t.translateErrorMessage,fetchInit:t.fetchInit,fetch:t.fetch},s=x({endpoint:t.apiEndpoint,...a}),n=t.offersApiEndpoint?x({endpoint:t.offersApiEndpoint,...a}):s;return{offers:{async getOffers(e){let r={limit:e?.limit??24,page:e?.page??1,ids:e?.ids,categories:[b.CASHBACK],searchTerm:e?.searchTerm,sort:e?.sortBy??g.MOST_POPULAR,includeTags:e?.tag!=null?[e.tag]:void 0,source:e?.source},{data:t,meta:a}=await n.queryWithMeta(m,r),s=t.getOffers;
244return a.resUuid&&s.items.forEach(e=>{e.apiResUuid=a.resUuid}),s},async getOfferBySlug(e,r){let{data:t,meta:a}=await n.queryWithMeta(h,{slug:e,source:{...r,category:"CASHBACK"}}),s=t.getOffer??null;return s&&a.resUuid&&(s.apiResUuid=a.resUuid),s}},myOffers:{async getMyOffers(e){let r={limit:e?.limit??12,page:e?.page??1,clicked:e?.clicked,startStatuses:e?.startStatuses,categories:e?.categories},{data:t,meta:a}=await n.queryWithMeta(_,r),s=t.getMyOffers;return a.resUuid&&s.items.forEach(e=>{e.apiResUuid=a.resUuid}),s}},supportTickets:{createSupportTicket:async e=>(await s.mutate(w,e)).createCashbackSupportTicket},giftCards:{async getGiftCardOffers(e,r){let t={countryCode:r,limit:e?.limit??20,page:e?.page??1,searchTerm:e?.searchTerm??null,tags:e?.tags??null,ids:e?.ids??null};return(await s.query(S.GET_GIFT_CARD_OFFERS,t)).getGiftCardOffers},getGiftCardOffer:async(e,r)=>(await s.query(S.GET_GIFT_CARD_OFFER,{id:e,countryCode:r})).getGiftCardOffer??null,createGiftCardOrder:async e=>(await s.mutate(S.CREATE_GIFT_CARD_ORDER,e)).createGiftCardOrder,createGiftCardOrderV2:async e=>(await s.mutate(S.CREATE_GIFT_CARD_ORDER_V2,e)).createGiftCardOrderV2,initiateHppPaymentSession:async e=>(await s.mutate(S.INITIATE_EXTERNAL_PAYMENT_SESSION,e)).initiateExternalPaymentSession,initiateFlowPaymentSession:async e=>(await s.mutate(S.INITIATE_FLOW_PAYMENT_SESSION,e)).initiateFlowPaymentSession,getGiftCardOrder:async e=>(await s.query(S.GET_GIFT_CARD_ORDER,{orderId:e})).getGiftCardOrder},myGiftCards:{async getUserGiftCards(e){let r={limit:e.limit??12,page:e.page??1,status:e.status,sort:e.sort};return(await s.query(k,r)).getUserGiftCards},getUserGiftCard:async e=>(await s.query(T,{id:e})).getUserGiftCard,updateUserGiftCardStatus:async(e,r)=>(await s.query(A,{id:e,status:r})).updateUserGiftCardStatus},priceComparison:function({fetchConfig:e}){let r=e.nonGamingApiBaseUrl??"";return{async getRecentSearches(){let t=await e.fetch(`${r}/api/products/recent-searches`,{...e.fetchInit,credentials:"include",headers:e.getHttpHeaders?.()});if(!t.ok)throw new I.NonGamingHttpError("Failed to fetch recent price comparison searches",t.status);return t.json()}}}({fetchConfig:t}),receiptScans:function({fetchConfig:e}){let r=e.nonGamingApiBaseUrl??"";return{async createScan(t,a){let s=await e.fetch(`${r}/receipt-scans`,{...e.fetchInit,method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...e.getHttpHeaders?.()},body:JSON.stringify(t),...a?{signal:a}:{}});if(!s.ok)throw Error(`Failed to create receipt scan (${s.status})`);return s.json()},async submitScan(t,a){let s=await e.fetch(`${r}/receipt-scans/${t}:submit`,{...e.fetchInit,method:"POST",credentials:"include",headers:e.getHttpHeaders?.(),...a?{signal:a}:{}});if(!s.ok){let e=Error(`Failed to submit receipt scan (${s.status})`);throw e.status=s.status,e}return s.json()},async getScan(t,a){let s=await e.fetch(`${r}/receipt-scans/${t}`,{...e.fetchInit,credentials:"include",headers:e.getHttpHeaders?.(),...a?{signal:a}:{}});if(!s.ok){let e=Error(`Failed to fetch receipt scan (${s.status})`);throw e.status=s.status,e}return s.json()}}}({fetchConfig:t}),activationJourneys:R({fetchConfig:t})}}],873108)},540199,e=>{"use strict";e.s(["DealsModal",()=>s]);var r=e.i(843476),t=e.i(756438),a=e.i(620494);function s(e){let{hooks:s}=(0,a.useDealsContext)();return s.useHideBottomNav(e.open??!1),(0,r.jsx)(t.Modal,{...e})}},20993,540005,869956,558002,203029,171962,881801,915427,e=>{"use strict";e.s(["SEARCH_TERM_MAX_LENGTH",0,20,"boundSearchTerm",0,function(e){return e.slice(0,20)}],20993),e.s(["useCashbackOffers",()=>o],558002);var r=e.i(266027),t=e.i(620494);function a(e){return e}e.s(["infiniteQueryOptions",0,a],540005);var s=e.i(933818);let n={list:(e,r)=>(0,s.queryOptions)({queryKey:["cashback","offers","list",r],queryFn:()=>e.offers.getOffers(r)}),infiniteList:(e,r)=>a({queryKey:["cashback","offers","infinite","list",r],queryFn:({pageParam:t})=>e.offers.getOffers({...r,page:t}),initialPageParam:1,getNextPageParam:e=>{let{currentPage:r,totalPages:t}=e.meta;if(null!==t&&!(r>=t))return r+1}})};function o(e,a){let{api:s}=(0,t.useDealsContext)();return(0,r.useQuery)({...n.list(s,e),enabled:a?.enabled??!0})}e.s(["cashbackOffersQueries",0,n],869956),e.s(["useGiftCards",()=>d],881801);let i=new Set(["695e3f0d73452b2e202ee55f","695e3f1073452b2e202f0382","696fb8185779667729445fae"]);function l(e,r){return"ios"!==r?e:e.filter(e=>!i.has(e.id))}e.s(["filterGiftCardsForEnvironment",0,l],203029);let c={list:(e,r,t)=>(0,s.queryOptions)({queryKey:["giftCards","offers","list",r],queryFn:()=>e.giftCards.getGiftCardOffers(r,t)}),infiniteList:(e,r,t,s)=>a({queryKey:["giftCards","offers","infinite","list",r,{startPage:s}],queryFn:({pageParam:a})=>e.giftCards.getGiftCardOffers({...r,page:a},t),initialPageParam:s,getNextPageParam:e=>{let{currentPage:r,totalPages:t}=e.meta;if(null!==t&&!(r>=t))return r+1}})};function d(e,a){let{api:s,hooks:n}=(0,t.useDealsContext)(),{country:o}=n.useUserCountry(),{environment:i}=n.useAppEnvironment();return(0,r.useQuery)({...c.list(s,e,o),enabled:a?.enabled??!0,select:e=>({...e,items:l(e.items,i)})})}e.s(["giftCardOffersQueries",0,c],171962),e.s(["useMyCashbackOffers",()=>p],915427);function p(e,a){let n,o,{api:i}=(0,t.useDealsContext)();return(0,r.useQuery)({...(n=i,o=e,(0,s.queryOptions)({queryKey:["cashback","myOffers","list",o],queryFn:()=>n.myOffers.getMyOffers(o)})),enabled:a?.enabled??!0})}},377813,e=>{"use strict";var r,t,a,s,n,o,i=((r={}).CASHBACK_PAGE="cashback-page",r.LIMITED_DEALS_PAGE="limited-deals-page",r.RECENTLY_VISITED_PAGE="recently-visited-page",r.EARN_PAGE="earn-page",r.CASHBACK_SEARCH="cashback-search",r.CASHBACK_ALL_DEALS="cashback-all-deals",r.CASHBACK_BOOSTED_DEALS="cashback-boosted-deals",r.CASHBACK_PREMIUM="cashback-premium",r.CASHBACK_MY_OFFERS="cashback-my-offers",r.CASHBACK_RECENTLY_VISITED="cashback-recently-visited",r.CASHBACK_RECENTLY_VISITED_EXPANDED="cashback-recently-visited-expanded",r),l=((t={}).CASHBACK="cashback",t.GIFT_CARDS="giftCards",t),c=((a={}).CASHBACK_INTRO="cashback-intro",a.CASHBACK_VALUE="cashback-value",a.HOW_IT_WORKS="how-it-works",a.GET_STARTED="get-started",a),d=((s={}).GIFTCARDS_INTRO="giftcards-intro",s.THE_TRICK="the-trick",s.COMPARISON="comparison",s.HOW_IT_WORKS="how-it-works",s.BRANDS="brands",s),p=((n={}).CASHBACK_PROMOTED_OFFERS="cashback-promoted-offers",n.CASHBACK_LIMITED_DEALS="cashback-limited-deals",n.CASHBACK_ALL_OFFERS="cashback-all-offers",n.CASHBACK_OFFER_CARD_CLICK="cashback-offer-card-click",n.CASHBACK_OFFER_DETAILS_CTA="cashback-offer-details-cta",n.CASHBACK_OFFER_DETAILS_CONDITIONS="cashback-offer-details-conditions",n.CASHBACK_OFFER_DETAILS_TERMS="cashback-offer-details-terms",n),u=((o={}).GIFT_CARDS_PROMOTED_OFFERS="gift-cards-promoted-offers",o.GIFT_CARDS_POPULAR_OFFERS="gift-cards-popular-offers",o.GIFT_CARDS_OFFER_CARD_CLICK="gift-cards-offer-card-click",o.GIFT_CARDS_OFFER_DETAILS_HEADER="gift-cards-offer-details-header",o);e.s(["ACTIVATION_JOURNEY_EVENTS",0,{CASHBACK_BANNER_CLICKED:"Cashback Activation Journey Banner Clicked",GIFT_CARD_BANNER_CLICKED:"Gift Card Activation Journey Banner Clicked",CASHBACK_INFO_ICON_CLICKED:"Cashback Activation Journey Info Icon Clicked",GIFT_CARD_INFO_ICON_CLICKED:"Gift Card Activation Journey Info Icon Clicked"},"CashbackOnboardingStep",()=>c,"CashbackWalkthroughStep",()=>p,"DEALS_EVENTS",0,{CASHBACK_PAGE_VISITED:"Cashback Page Visited",LIMITED_CASHBACK_DEALS_PAGE_VISITED:"Limited Cashback Deals Page Visited",RECENTLY_VISITED_CASHBACK_DEALS_PAGE_VISITED:"Recently Visited Cashback Deals Page Visited",OFFER_STARTED:"Play and Earn"},"ENTRY_TABS",0,{CASHBACK:"cashback",GIFT_CARDS:"gift-cards"},"GIFT_CARD_EVENTS",0,{INSTANT_CASHBACK_PAGE_VISITED:"Instant Cashback Page Visited",INSTANT_CASHBACK_OFFER_CLICKED:"Instant Cashback Offer Clicked",INSTANT_CASHBACK_OFFER_OPENED:"Instant Cashback Offer Opened",INSTANT_CASHBACK_CONTINUE_BUTTON_CLICKED:"Instant Cashback Continue Button Clicked",INSTANT_CASHBACK_SELECT_AMOUNT_BUTTON_CLICKED:"Instant Cashback Select Amount Button Clicked",INSTANT_CASHBACK_INITIATED_PAYMENT:"Instant Cashback Initiated Payment",INSTANT_CASHBACK_CHECKOUT_FLOW_LOADED:"Instant Cashback Checkout Flow Loa
244ded",INSTANT_CASHBACK_PAYMENT_METHOD_USED:"Instant Cashback Payment Method Used",INSTANT_CASHBACK_PAYMENT_FAILED:"Instant Cashback Payment Failed",INSTANT_CASHBACK_HPP_FALLBACK_TRIGGERED:"Instant Cashback HPP Fallback Triggered",INSTANT_CASHBACK_PURCHASE_FLOW_EXITED:"Instant Cashback Purchase Flow Exited",INSTANT_CASHBACK_SUCCESS_VIEW_CARD_CLICKED:"Gift Card Order Success View Card Clicked",INSTANT_CASHBACK_SUCCESS_CONTINUE_SHOPPING_CLICKED:"Gift Card Order Success Continue Shopping Clicked",POPULAR_GIFT_CARDS_PAGE_VISITED:"Popular Gift Cards Page Visited",ALL_GIFT_CARDS_PAGE_VISITED:"All Gift Cards Page Visited",MY_GIFT_CARDS_PAGE_VISITED:"My Gift Cards Page Visited",MY_GIFT_CARD_OPENED:"My Gift Card Opened",MY_GIFT_CARD_HOW_TAB_OPENED:"My Gift Card How Tab Opened",MY_GIFT_CARD_TERMS_TAB_OPENED:"My Gift Card Terms Tab Opened",MY_GIFT_CARD_REDEMPTION_URL_CLICKED:"My Gift Card Redemption URL Clicked",MY_GIFT_CARD_CREDENTIAL_COPIED:"My Gift Card Credential Copied",MY_GIFT_CARD_ARCHIVED:"My Gift Card Archived",MY_GIFT_CARD_UNARCHIVED:"My Gift Card Unarchived",MY_GIFT_CARD_PARTNER_PAGE_OPENED:"My Gift Card Partner Page Opened"},"GIFT_CARD_SOURCES",0,{CASHBACK_PREVIEW:"CASHBACK_PREVIEW",PROMOTED:"PROMOTED",POPULAR_PREVIEW:"POPULAR_PREVIEW",POPULAR_EXPANDED:"POPULAR_PREVIEW_EXPANDED",ALL:"ALL",ALL_EXPANDED:"CASHBACK_PREVIEW_EXPANDED",SEARCH:"SEARCH_RESULTS"},"GiftCardsOnboardingStep",()=>d,"GiftCardsWalkthroughStep",()=>u,"ONBOARDING_EVENTS_MAP",0,{cashback:{DIALOG_OPENED:"Cashback Onboarding Dialog Opened",STEP_VIEWED:"Cashback Onboarding Step Viewed",DIALOG_COMPLETED:"Cashback Onboarding Dialog Completed",DIALOG_DISMISSED:"Cashback Onboarding Dialog Dismissed",BANNER_CLICKED:"Cashback Onboarding Banner Clicked",BANNER_DISMISSED:"Cashback Onboarding Banner Dismissed"},giftCards:{DIALOG_OPENED:"Gift Cards Onboarding Dialog Opened",STEP_VIEWED:"Gift Cards Onboarding Step Viewed",DIALOG_COMPLETED:"Gift Cards Onboarding Dialog Completed",DIALOG_DISMISSED:"Gift Cards Onboarding Dialog Dismissed",BANNER_CLICKED:"Gift Cards Onboarding Banner Clicked",BANNER_DISMISSED:"Gift Cards Onboarding Banner Dismissed"}},"OfferSourceName",()=>i,"OnboardingFlow",()=>l,"PRICE_COMPARISON_EVENTS",0,{ENTRY_VIEWED:"Price Comparison Entry Viewed",INFO_CLICKED:"Price Comparison Info Clicked",URL_ENTERED:"Price Comparison URL Entered",URL_CTA_VIEWED:"Price Comparison URL CTA Viewed",CTA_CLICKED:"Price Comparison CTA Clicked",STARTED:"Price Comparison Started",PRODUCT_IDENTIFIED:"Price Comparison Product Identified",SEARCH_STARTED:"Price Comparison Search Started",FIRST_RESULT:"Price Comparison First Result",COMPLETED:"Price Comparison Completed",FAILED:"Price Comparison Failed",OFFER_CLICKED:"Price Comparison Offer Clicked",BACKGROUND_CONTINUED:"Price Comparison Background Continued",RECENT_SEARCH_CLICKED:"Price Comparison Recent Search Clicked",TOAST_VIEWED:"Price Comparison Toast Viewed",TOAST_ACTION_CLICKED:"Price Comparison Toast Action Clicked",DEMO_STARTED:"Price Comparison Demo Started",DEMO_VIEWED:"Price Comparison Demo Viewed",DEMO_COMPLETED:"Price Comparison Demo Completed"},"RECEIPT_SCANNING_EVENTS",0,{FLOATING_BUTTON_CLICKED:"Receipt Scan Floating Button Clicked",DATA_POLICY_CLICKED:"Receipt Scan Data Policy Clicked",CAMERA_OPENED:"Receipt Scan Camera Opened",PROCESSING_STARTED:"Receipt Scan Processing Started",RESULT_SEEN:"Receipt Scan Result Seen",TRY_AGAIN_CLICKED:"Receipt Scan Try Again Clicked",DIALOG_DISMISSED:"Receipt Scan Modal Dismissed"},"SEARCH_EVENTS",0,{OPENED:"Deals Search Opened",TYPING_STARTED:"Deals Search Typing Started",PERFORMED:"Deals Search Performed",RESULT_CLICKED:"Deals Search Result Clicked",CLOSED:"Deals Search Closed"},"SEARCH_SOURCES",0,{REGULAR:"DEALS_SEARCH",PRICE_COMPARISON:"DEALS_SEARCH_PRICE_COMPARISON"},"WALKTHROUGH_EVENTS_MAP",0,{cashback:{STARTED:"Cashback Walkthrough Started",STEP_VIEWED:"Cashback Walkthrough Step Viewed",COMPLETED:"Cashback Walkthrough Completed",DISMISSED:"Cashback Walkthrough Dismissed"},giftCards:{STARTED:"Gift Cards Walkthrough Started",STEP_VIEWED:"Gift Cards Walkthrough Step Viewed",COMPLETED:"Gift Cards Walkthrough Completed",DISMISSED:"Gift Cards Walkthrough Dismissed"}}])},739453,755758,870275,52949,946518,163200,709316,350065,56457,518049,704503,884622,189355,891536,734829,873032,62701,781903,452911,764084,464663,375953,352714,730008,326488,77233,57963,379559,786932,265783,762858,278143,412153,936021,728512,213994,943020,314203,842380,625974,952377,626801,518351,32301,210666,182908,270927,590975,956120,426888,e=>{"use strict";var r=e.i(843476),t=e.i(271645),a=e.i(964913);let s=e=>void 0===e?void 0:"number"==typeof e?`${e}px`:e,n=(0,t.forwardRef)(function({boxSize:e,w:t,h:n,fontSize:o,color:i,flexShrink:l,className:c,style:d,children:p,...u},x){let m=s(t??e),h=s(n??e),f={...void 0!==m&&{width:m},...void 0!==h&&{height:h},...void 0!==o&&{fontSize:s(o)},...void 0!==i&&{color:i},...void 0!==l&&{flexShrink:l},...d};return(0,r.jsx)("svg",{ref:x,xmlns:"http://www.w3.org/2000/svg",focu
244sable:"false","aria-hidden":"true",className:(0,a.cn)("inline-block h-[1em] w-[1em] shrink-0 align-middle leading-[1em]",c),style:f,...u,children:p})});e.s(["FcLockIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",fill:"currentColor"})})],755758),e.s(["FcArrowLeftIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"currentColor"})})],870275),e.s(["FcArrowRightIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",fill:"currentColor"})})],52949),e.s(["FcRepeatClockIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 24 24",...e,children:(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),(0,r.jsx)("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})})],946518),e.s(["FcSearchIcon",0,function({strokeWidth:e=1.5,...t}){return(0,r.jsx)(n,{viewBox:"0 0 16 16",fill:"none",...t,children:(0,r.jsx)("path",{d:"M15.25 15.25L11.5 11.5M0.75 7C0.75 3.54822 3.54822 0.75 7 0.75C10.4518 0.75 13.25 3.54822 13.25 7C13.25 10.4518 10.4518 13.25 7 13.25C3.54822 13.25 0.75 10.4518 0.75 7Z",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})})}],163200),e.s(["FcCloseIcon",0,function(e){return(0,r.jsxs)(n,{viewBox:"0 0 24 24",fill:"none",...e,children:[(0,r.jsxs)("g",{clipPath:"url(#fc-close-icon-clip)",children:[(0,r.jsx)("path",{d:"M12 23.9921C18.6274 23.9921 24 18.623 24 11.9999C24 5.37687 18.6274 0.0078125 12 0.0078125C5.37258 0.0078125 0 5.37687 0 11.9999C0 18.623 5.37258 23.9921 12 23.9921Z",fill:"#7D7D9E"}),(0,r.jsx)("path",{d:"M15.8082 17.6613L17.6641 15.8054L8.19538 6.33673L6.3395 8.1926L15.8082 17.6613Z",fill:"#1E1E2E"}),(0,r.jsx)("path",{d:"M8.19538 17.6635L17.6641 8.19482L15.8082 6.33895L6.3395 15.8076L8.19538 17.6635Z",fill:"#1E1E2E"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"fc-close-icon-clip",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}],709316);let o={orange:["#FF8F50","#E95729"],blue:["#059FDB","#059FDB"],green:["#01D676","#01D676"],gray:["#A9A9CA","#A9A9CA"],white:["white","white"],inherit:["currentColor","currentColor"]};e.s(["FcFlameIcon",0,({theme:e="orange",...t})=>{let a=o[e];return(0,r.jsxs)(n,{viewBox:"0 0 12 14",fill:"none",...t,children:[(0,r.jsx)("path",{d:"M6.96125 0.36943C6.89961 0.318185 6.82656 0.282509 6.74824 0.265412C6.66993 0.248315 6.58865 0.250297 6.51127 0.271191C6.43388 0.292085 6.36265 0.331278 6.30359 0.385467C6.24452 0.439656 6.19935 0.507251 6.17188 0.582555L4.79688 4.35818L3.28687 2.89506C3.23616 2.84587 3.17561 2.80799 3.10919 2.78391C3.04278 2.75983 2.97201 2.7501 2.90157 2.75535C2.83112 2.76061 2.76258 2.78073 2.70047 2.8144C2.63837 2.84807 2.5841 2.89452 2.54125 2.95068C1.1875 4.72443 0.5 6.50881 0.5 8.25381C0.5 9.7125 1.07946 11.1114 2.11091 12.1429C3.14236 13.1743 4.54131 13.7538 6 13.7538C7.45869 13.7538 8.85764 13.1743 9.88909 12.1429C10.9205 11.1114 11.5 9.7125 11.5 8.25381C11.5 4.53818 8.32563 1.50381 6.96125 0.36943ZM9.49312 8.83755C9.36347 9.56175 9.01506 10.2288 8.49478 10.749C7.9745 11.2692 7.30734 11.6174 6.58313 11.7469C6.55567 11.7516 6.52786 11.7539 6.5 11.7538C6.37458 11.7538 6.25375 11.7066 6.16148 11.6217C6.06921 11.5367 6.01223 11.4202 6.00185 11.2952C5.99146 11.1702 6.02843 11.0459 6.10542 10.9469C6.18242 10.8479 6.2938 10.7814 6.4175 10.7607C7.45312 10.5863 8.33187 9.70756 8.5075 8.67006C8.52971 8.53927 8.60297 8.42267 8.71115 8.34589C8.81934 8.26912 8.95359 8.23847 9.08438 8.26068C9.21516 8.28289 9.33176 8.35615 9.40854 8.46433C9.48531 8.57252 9.51596 8.70677 9.49375 8.83755H9.49312Z",fill:`url(#fcFlameGradient_${e})`}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:`fcFlameGradient_${e}`,x1:"11.0016",y1:"0.253907",x2:"-0.469305",y2:"1.13504",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:a[0]}),(0,r.jsx)("stop",{offset:"1",stopColor:a[1]})]})})]})}],350065),e.s(["FcPercentIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 13 13",fill:"none",...e,children:(0,r.jsx)("path",{d:"M11.3538 2.35358L2.35377 11.3536C2.25995 11.4474 2.13271 11.5001 2.00002 11.5001C1.86734 11.5001 1.74009 11.4474 1.64627 11.3536C1.55245 11.2598 1.49975 11.1325 1.49975 10.9998C1.49975 10.8672 1.55245 10.7399 1.64627 10.6461L6.14627 6.14608L10.6463 1.64608C10.74 1.55226 10.8672 1.49952 10.9998 1.49946C11.1324 1.49941 11.2596 1.55203 11.3535 1.64577C11.4473 1.73951 11.5 1.86668 11.5001 1.9993C11.5001 2.13192 11.4475 2.25976 11.3538 2.35358ZM1.65877 4.84108C1.23683 4.41906 0.999819 3.8467 0.999878 3.24993C0.999937 2.65315 1.23706 2.08084 1.65909 1.6589C2.08111 1.23695 2.65347 0.999941 3.25024 1C3.84702 1.00006 4.41933 1.23718 4.84127 1.65921C5.26322 2.08123 5.50023 2.65359 5.50017 3.25037C
2445.50011 3.84714 5.26299 4.41945 4.84096 4.8414C4.41894 5.26334 3.84658 5.50035 3.2498 5.50029C2.65303 5.50023 2.08072 5.26311 1.65877 4.84108ZM2.00002 3.25108C2.00019 3.45661 2.05102 3.65893 2.14804 3.84013C2.24505 4.02132 2.38525 4.17579 2.55621 4.28987C2.72718 4.40395 2.92363 4.47411 3.12818 4.49415C3.33274 4.51418 3.53907 4.48347 3.72892 4.40473C3.91877 4.32598 4.08627 4.20164 4.2166 4.04272C4.34692 3.88379 4.43605 3.69518 4.47608 3.49358C4.51611 3.29199 4.50582 3.08364 4.44612 2.88697C4.38641 2.6903 4.27913 2.51139 4.13377 2.36608C3.95888 2.19125 3.73606 2.07221 3.49351 2.02404C3.25095 1.97587 2.99955 2.00073 2.77113 2.09548C2.5427 2.19022 2.34751 2.35059 2.21025 2.55629C2.07299 2.76199 1.99983 3.00379 2.00002 3.25108ZM12 9.75108C11.9999 10.2716 11.8193 10.776 11.489 11.1783C11.1587 11.5806 10.6991 11.856 10.1885 11.9574C9.67794 12.0589 9.148 11.9801 8.68897 11.7347C8.22995 11.4892 7.87023 11.0921 7.67112 10.6112C7.47202 10.1302 7.44583 9.59512 7.59703 9.09702C7.74823 8.59892 8.06746 8.16865 8.50033 7.87953C8.9332 7.59041 9.45292 7.46033 9.97095 7.51144C10.489 7.56255 10.9733 7.79169 11.3413 8.15983C11.5509 8.36832 11.717 8.61632 11.8301 8.88946C11.9431 9.1626 12.0009 9.45546 12 9.75108ZM11 9.75108C11.0001 9.46189 10.8999 9.18161 10.7164 8.95802C10.533 8.73443 10.2778 8.58136 9.99413 8.52488C9.7105 8.46841 9.41606 8.51202 9.16099 8.6483C8.90591 8.78458 8.70598 9.00509 8.59526 9.27225C8.48454 9.53941 8.46988 9.8367 8.55378 10.1135C8.63769 10.3902 8.81496 10.6293 9.05539 10.79C9.29582 10.9507 9.58454 11.0231 9.87235 10.9948C10.1602 10.9665 10.4292 10.8393 10.6338 10.6348C10.7502 10.5191 10.8425 10.3813 10.9054 10.2296C10.9683 10.0779 11.0004 9.91529 11 9.75108Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.571429"})})],56457),e.s(["FcTimerIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 13 14",...e,children:(0,r.jsx)("path",{d:"M6.5 2C5.31331 2 4.15328 2.35189 3.16658 3.01118C2.17989 3.67047 1.41085 4.60754 0.956725 5.7039C0.5026 6.80026 0.38378 8.00666 0.615291 9.17054C0.846802 10.3344 1.41825 11.4035 2.25736 12.2426C3.09648 13.0818 4.16557 13.6532 5.32946 13.8847C6.49335 14.1162 7.69975 13.9974 8.7961 13.5433C9.89246 13.0892 10.8295 12.3201 11.4888 11.3334C12.1481 10.3467 12.5 9.18669 12.5 8C12.4982 6.40926 11.8655 4.88419 10.7406 3.75937C9.61581 2.63455 8.09074 2.00182 6.5 2ZM9.35375 5.85375L6.85375 8.35375C6.8073 8.40021 6.75215 8.43706 6.69145 8.4622C6.63075 8.48734 6.5657 8.50028 6.5 8.50028C6.43431 8.50028 6.36925 8.48734 6.30855 8.4622C6.24786 8.43706 6.19271 8.40021 6.14625 8.35375C6.0998 8.3073 6.06295 8.25215 6.03781 8.19145C6.01266 8.13075 5.99972 8.0657 5.99972 8C5.99972 7.9343 6.01266 7.86925 6.03781 7.80855C6.06295 7.74786 6.0998 7.69271 6.14625 7.64625L8.64625 5.14625C8.69271 5.0998 8.74786 5.06295 8.80855 5.0378C8.86925 5.01266 8.9343 4.99972 9 4.99972C9.0657 4.99972 9.13075 5.01266 9.19145 5.0378C9.25215 5.06295 9.3073 5.0998 9.35375 5.14625C9.40021 5.19271 9.43706 5.24786 9.4622 5.30855C9.48734 5.36925 9.50028 5.4343 9.50028 5.5C9.50028 5.5657 9.48734 5.63075 9.4622 5.69145C9.43706 5.75215 9.40021 5.8073 9.35375 5.85375ZM4.5 0.5C4.5 0.367392 4.55268 0.240215 4.64645 0.146447C4.74022 0.0526784 4.86739 0 5 0H8C8.13261 0 8.25979 0.0526784 8.35356 0.146447C8.44732 0.240215 8.5 0.367392 8.5 0.5C8.5 0.632608 8.44732 0.759785 8.35356 0.853554C8.25979 0.947322 8.13261 1 8 1H5C4.86739 1 4.74022 0.947322 4.64645 0.853554C4.55268 0.759785 4.5 0.632608 4.5 0.5Z",fill:"currentColor"})})],518049),e.s(["FcMoneyBagIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M13.2138 5.07812H6.78527L5.33087 2.90638C5.13209 2.56858 5.1271 2.14773 5.31728 1.80487C5.50745 1.46202 5.86347 1.25 6.24955 1.25H8.92812C9.21219 1.25 9.48476 1.36536 9.68566 1.57043L10.5353 2.43747L11.3849 1.57043C11.5858 1.36536 11.8583 1.25 12.1424 1.25H13.7496C14.1356 1.25 14.4917 1.46202 14.6818 1.80487C14.872 2.14776 14.8671 2.56858 14.6682 2.90638L13.2138 5.07812Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M9.54709 10.9167H9.45652C9.28836 10.9167 9.12708 10.9782 9.00817 11.0876C8.88927 11.197 8.82246 11.3453 8.82246 11.5C8.82246 11.6547 8.88927 11.8031 9.00817 11.9125C9.12708 12.0219 9.28836 12.0834 9.45652 12.0834H9.54709V10.9167Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.4529 12.9167V14.0834H10.5435C10.7116 14.0834 10.8729 14.0219 10.9918 13.9125C11.1107 13.8031 11.1775 13.6547 11.1775 13.5C11.1775 13.3453 11.1107 13.197 10.9918 13.0876C10.8729 12.9782 10.7116 12.9167 10.5435 12.9167H10.4529Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2143 6.17189H6.78571C4.38993 8.03089 2.5 11.5184 2.5 14.2596C2.5 18.75 6.48464 18.75 10 18.75C13.5154 18.75 17.5 18.75 17.5 14.2596C17.5 11.5184 15.6101 8.03089 13.2143 6.17189ZM10.4529 10C10.4529 9.76988 10.2501 9.58333 9.99999 9.58333C9.74986 9.58333 9.54709 9.76988 9.54709 10V10.0834H9.45652C9.04813 10.0834 8.65646 10.2326 8.36768 10.4983C8.0789 10.764 7.91667 11.1243 7.91667 11.5C7.91667 11.8758 8.0789 12.2361 8.36768 12.5018C8.65646 12.7674 9.04813 
24412.9167 9.45652 12.9167H9.54709V14.0834H9.45652L9.44128 14.0836C9.32636 14.0872 9.21254 14.0619 9.11202 14.0105C9.0115 13.9592 8.92806 13.8836 8.87063 13.7919C8.74571 13.5926 8.46877 13.5241 8.25207 13.6391C8.03537 13.754 7.96097 14.0088 8.08589 14.2081C8.22537 14.4307 8.42801 14.6142 8.67213 14.739C8.91383 14.8625 9.18719 14.9239 9.46348 14.9167H9.54709V15C9.54709 15.2301 9.74986 15.4167 9.99999 15.4167C10.2501 15.4167 10.4529 15.2301 10.4529 15V14.9167H10.5435C10.9519 14.9167 11.3435 14.7674 11.6323 14.5018C11.9211 14.2361 12.0833 13.8758 12.0833 13.5C12.0833 13.1243 11.9211 12.764 11.6323 12.4983C11.3435 12.2326 10.9519 12.0834 10.5435 12.0834H10.4529V10.9167H10.5435L10.5587 10.9165C10.6736 10.9129 10.7875 10.9382 10.888 10.9895C10.9885 11.0409 11.0719 11.1165 11.1294 11.2081C11.2543 11.4075 11.5312 11.4759 11.7479 11.361C11.9646 11.2461 12.039 10.9913 11.9141 10.7919C11.7746 10.5694 11.572 10.3859 11.3279 10.2611C11.0862 10.1375 10.8128 10.0762 10.5365 10.0834H10.4529V10Z",fill:"currentColor"})]})],704503),e.s(["FcStoreIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 22 22",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M21.2822 20.2182L19.3772 18.3132C19.8888 17.5377 20.0944 16.5999 19.954 15.6816C19.8137 14.7632 19.3374 13.9296 18.6176 13.3423C17.8977 12.755 16.9855 12.4559 16.0576 12.5028C15.1297 12.5498 14.2524 12.9395 13.5954 13.5964C12.9385 14.2533 12.5488 15.1307 12.5019 16.0586C12.4549 16.9864 12.7541 17.8987 13.3413 18.6185C13.9286 19.3384 14.7622 19.8147 15.6806 19.955C16.599 20.0954 17.5367 19.8898 18.3122 19.3782L20.2172 21.2832C20.2869 21.3535 20.3699 21.4093 20.4613 21.4474C20.5527 21.4854 20.6507 21.505 20.7497 21.505C20.8487 21.505 20.9467 21.4854 21.0381 21.4474C21.1295 21.4093 21.2125 21.3535 21.2822 21.2832C21.3525 21.2135 21.4083 21.1305 21.4464 21.0391C21.4845 20.9477 21.5041 20.8497 21.5041 20.7507C21.5041 20.6517 21.4845 20.5536 21.4464 20.4623C21.4083 20.3709 21.3525 20.2879 21.2822 20.2182ZM13.9997 16.2507C13.9997 15.8057 14.1317 15.3707 14.3789 15.0007C14.6261 14.6306 14.9775 14.3423 15.3887 14.172C15.7998 14.0017 16.2522 13.9571 16.6887 14.0439C17.1251 14.1307 17.526 14.345 17.8407 14.6597C18.1554 14.9744 18.3697 15.3753 18.4565 15.8117C18.5433 16.2482 18.4987 16.7006 18.3284 17.1117C18.1581 17.5229 17.8698 17.8743 17.4997 18.1215C17.1297 18.3687 16.6947 18.5007 16.2497 18.5007C15.653 18.5007 15.0807 18.2636 14.6587 17.8417C14.2368 17.4197 13.9997 16.8474 13.9997 16.2507Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.9998 17.75H4.24983V8.75001C5.07671 8.64617 5.83701 8.24334 6.38733 7.61751C6.65882 7.96435 7.00336 8.24716 7.39647 8.44584C7.78959 8.64452 8.22163 8.7542 8.66191 8.76708C9.10218 8.77997 9.5399 8.69575 9.94396 8.5204C10.348 8.34505 10.7085 8.08288 10.9998 7.75251C11.2911 8.08288 11.6516 8.34505 12.0557 8.5204C12.4598 8.69575 12.8975 8.77997 13.3377 8.76708C13.778 8.7542 14.2101 8.64452 14.6032 8.44584C14.9963 8.24716 15.3408 7.96435 15.6123 7.61751C16.1652 8.24007 16.9242 8.6422 17.7498 8.75001V11C17.7498 11.1989 17.8288 11.3897 17.9695 11.5303C18.1101 11.671 18.3009 11.75 18.4998 11.75C18.6987 11.75 18.8895 11.671 19.0302 11.5303C19.1708 11.3897 19.2498 11.1989 19.2498 11V8.57751C19.6591 8.42388 20.0284 8.17979 20.3301 7.86346C20.6319 7.54712 20.8583 7.16672 20.9924 6.75064C21.1265 6.33456 21.1649 5.89355 21.1047 5.46055C21.0445 5.02755 20.8873 4.61374 20.6448 4.25001L18.9273 1.67001C18.6889 1.30952 18.3646 1.0139 17.9837 0.80969C17.6027 0.605477 17.177 0.499065 16.7448 0.500006H10.2498C10.0509 0.500006 9.86015 0.579024 9.7195 0.719676C9.57884 0.860328 9.49983 1.05109 9.49983 1.25001C9.49983 1.44892 9.57884 1.63968 9.7195 1.78034C9.86015 1.92099 10.0509 2.00001 10.2498 2.00001H16.7448C16.9304 1.99994 17.1131 2.04578 17.2767 2.13346C17.4403 2.22114 17.5796 2.34792 17.6823 2.50251L19.3998 5.07501C19.5318 5.27534 19.6104 5.50602 19.6284 5.74523C19.6463 5.98444 19.6029 6.22427 19.5023 6.44203C19.4016 6.65979 19.2471 6.84828 19.0533 6.98967C18.8596 7.13105 18.6329 7.22066 18.3948 7.25001C17.8967 7.28798 17.4022 7.1405 17.0062 6.83593C16.6103 6.53135 16.3409 6.09118 16.2498 5.60001C16.2299 5.40109 16.1318 5.21823 15.9771 5.09164C15.8224 4.96506 15.6237 4.90512 15.4248 4.92501C15.2259 4.9449 15.0431 5.04299 14.9165 5.19771C14.7899 5.35243 14.7299 5.55109 14.7498 5.75001C14.7498 6.14783 14.5918 6.52936 14.3105 6.81067C14.0292 7.09197 13.6477 7.25001 13.2498 7.25001C12.852 7.25001 12.4705 7.09197 12.1892 6.81067C11.9079 6.52936 11.7498 6.14783 11.7498 5.75001C11.7498 5.55109 11.6708 5.36033 11.5302 5.21968C11.3895 5.07902 11.1987 5.00001 10.9998 5.00001C10.8009 5.00001 10.6101 5.07902 10.4695 5.21968C10.3288 5.36033 10.2498 5.55109 10.2498 5.75001C10.2498 6.14783 10.0918 6.52936 9.81049 6.81067C9.52918 7.09197 9.1476
2445 7.25001 8.74983 7.25001C8.352 7.25001 7.97047 7.09197 7.68917 6.81067C7.40786 6.52936 7.24983 6.14783 7.24983 5.75001C7.26972 5.55109 7.20978 5.35243 7.08319 5.19771C6.9566 5.04299 6.77374 4.9449 6.57483 4.92501C6.37591 4.90512 6.17725 4.96506 6.02253 5.09164C5.86781 5.21823 5.76972 5.40109 5.74983 5.60001C5.65558 6.09102 5.38429 6.53033 4.98748 6.83451C4.59067 7.13868 4.09597 7.28654 3.59733 7.25001C3.52084 7.23965 3.4455 7.22207 3.37233 7.19751C3.17165 7.14011 2.98778 7.03515 2.83632 6.89152C2.68486 6.7479 2.57029 6.56986 2.50233 6.37251C2.42194 6.14653 2.39501 5.90501 2.42363 5.66688C2.45226 5.42875 2.53567 5.20049 2.66733 5.00001L4.31733 2.52501C4.4174 2.36625 4.5556 2.23504 4.71935 2.14335C4.88309 2.05165 5.06717 2.00238 5.25483 2.00001H7.24983C7.44874 2.00001 7.6395 1.92099 7.78016 1.78034C7.92081 1.63968 7.99983 1.44892 7.99983 1.25001C7.99983 1.05109 7.92081 0.860328 7.78016 0.719676C7.6395 0.579024 7.44874 0.500006 7.24983 0.500006H5.25483C4.82261 0.499065 4.39692 0.605477 4.01598 0.80969C3.63505 1.0139 3.31079 1.30952 3.07233 1.67001L1.41483 4.14501C1.15212 4.54772 0.986281 5.00582 0.930327 5.48338C0.874373 5.96094 0.929822 6.44497 1.09233 6.89751C1.23136 7.27862 1.45161 7.62493 1.73782 7.91244C2.02403 8.19994 2.36935 8.42176 2.74983 8.56251V17.75H1.99983C1.80091 17.75 1.61015 17.829 1.4695 17.9697C1.32884 18.1103 1.24983 18.3011 1.24983 18.5C1.24983 18.6989 1.32884 18.8897 1.4695 19.0303C1.61015 19.171 1.80091 19.25 1.99983 19.25H10.9998C11.1987 19.25 11.3895 19.171 11.5302 19.0303C11.6708 18.8897 11.7498 18.6989 11.7498 18.5C11.7498 18.3011 11.6708 18.1103 11.5302 17.9697C11.3895 17.829 11.1987 17.75 10.9998 17.75Z",fill:"currentColor"})]})],884622),e.s(["FcCartIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 22 18",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M20.835 2.535C20.7652 2.44661 20.6763 2.37509 20.575 2.32575C20.4737 2.27641 20.3627 2.25052 20.25 2.25H9C8.80109 2.25 8.61032 2.32902 8.46967 2.46967C8.32902 2.61032 8.25 2.80109 8.25 3C8.25 3.19891 8.32902 3.38968 8.46967 3.53033C8.61032 3.67098 8.80109 3.75 9 3.75H19.305L17.7225 10.6275C17.6338 11.0183 17.4146 11.3672 17.1011 11.6167C16.7875 11.8662 16.3982 12.0014 15.9975 12H9.5025C9.10177 12.0014 8.71253 11.8662 8.39895 11.6167C8.08537 11.3672 7.86617 11.0183 7.7775 10.6275L6 2.835V2.76L5.6175 1.7325C5.44937 1.22871 5.12725 0.790446 4.69662 0.479585C4.266 0.168725 3.74861 0.000969163 3.2175 0H0.75C0.551088 0 0.360322 0.0790178 0.21967 0.21967C0.0790176 0.360322 0 0.551088 0 0.75C0 0.948912 0.0790176 1.13968 0.21967 1.28033C0.360322 1.42098 0.551088 1.5 0.75 1.5H3.2175C3.43349 1.50012 3.64395 1.56831 3.81898 1.69486C3.99401 1.82142 4.12471 1.99992 4.1925 2.205L4.5 3.2025L6.285 10.965C6.44986 11.6921 6.85935 12.3406 7.44501 12.8021C8.03066 13.2635 8.75698 13.5099 9.5025 13.5H15.9975C16.7379 13.503 17.4572 13.2535 18.0367 12.7926C18.6162 12.3317 19.0212 11.6871 19.185 10.965L21 3.165C21.0216 3.05434 21.018 2.94023 20.9895 2.83116C20.9609 2.72208 20.9081 2.62085 20.835 2.535Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M8.625 14.25C8.25416 14.25 7.89165 14.36 7.58331 14.566C7.27496 14.772 7.03464 15.0649 6.89273 15.4075C6.75081 15.7501 6.71368 16.1271 6.78603 16.4908C6.85838 16.8545 7.03695 17.1886 7.29918 17.4508C7.5614 17.713 7.89549 17.8916 8.25921 17.964C8.62292 18.0363 8.99992 17.9992 9.34253 17.8573C9.68514 17.7154 9.97798 17.475 10.184 17.1667C10.39 16.8584 10.5 16.4958 10.5 16.125C10.5 15.6277 10.3025 15.1508 9.95083 14.7992C9.5992 14.4475 9.12228 14.25 8.625 14.25ZM8.625 16.5C8.55083 16.5 8.47833 16.478 8.41666 16.4368C8.35499 16.3956 8.30693 16.337 8.27855 16.2685C8.25016 16.2 8.24274 16.1246 8.25721 16.0518C8.27168 15.9791 8.30739 15.9123 8.35984 15.8598C8.41228 15.8074 8.4791 15.7717 8.55184 15.7572C8.62458 15.7427 8.69998 15.7502 8.76851 15.7785C8.83703 15.8069 8.8956 15.855 8.9368 15.9167C8.97801 15.9783 9 16.0508 9 16.125C9 16.2245 8.96049 16.3198 8.89017 16.3902C8.81984 16.4605 8.72446 16.5 8.625 16.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M16.875 14.25C16.5042 14.25 16.1416 14.36 15.8333 14.566C15.525 14.772 15.2846 15.0649 15.1427 15.4075C15.0008 15.7501 14.9637 16.1271 15.036 16.4908C15.1084 16.8545 15.287 17.1886 15.5492 17.4508C15.8114 17.713 16.1455 17.8916 16.5092 17.964C16.8729 18.0363 17.2499 17.9992 17.5925 17.8573C17.9351 17.7154 18.228 17.475 18.434 17.1667C18.64 16.8584 18.75 16.4958 18.75 16.125C18.75 15.6277 18.5525 15.1508 18.2008 14.7992C17.8492 14.4475 17.3723 14.25 16.875 14.25ZM16.875 16.5C16.8008 16.5 16.7283 16.478 16.6667 16.4368C16.605 16.3956 16.5569 16.337 16.5285 16.2685C16.5002 16.2 16.4927 16.1246 16.5072 16.0518C16.5217 15.9791 16.5574 15.9123 16.6098 15.8598C16.6623 15.8074 16.7291 15.7717 16.8018 15.7572C16.8746 15.7427 16.95 15.7502 17.0185 15.7785C17.087 15.8069 17.1456 15.855 17.1868 15.9167C17.228 15.9783 17.25 16.0508 17.25 16.125C17.25 16.2245 17.2105 16.3198 17.1402 16.3902C17.0698 16.4605 16.9745 16.5 16.875 16.5Z",fill:"currentColor"})]})],189355),e.s(["FcInfoIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 21",fill:"none",...e,children:(0,r.jsx)("path",{d:"M10 0.75C8.07164 0.75 6.18657 1.32183 4.58319 2.39317C2.97982 3.46451 1.73013 4.98726 0.992179 6.76884C0.254225 8.55042 0.061142 10.5108 0.437348 12.4021C0.813554 14.2934 1.74215 16.0307 3.10571 17.3943C4.46928 18.7579 6.20656 19.6865 8.09787 20.0627C9.98919 20.4389 11.9496 20.2458 13.7312 19.5078C15.5127 18.7699 17.0355 17.5202 18.1068 15.9168C19.1782 14.3134 19.75 12.4284 19.75 10.5C19.7473 7.91498 18.7192 5.43661 16.8913 3.60872C15.0634 1.78084 12.585 0.75273 10 0.75ZM10 18.75C8.36831 18.75 6.77326 18.2661 5.41655 17.3596C4.05984 16.4531 3.00242 15.1646 2.378 13.6571C1.75358 12.149
2446 1.5902 10.4908 1.90853 8.8905C2.22685 7.29016 3.01259 5.82015 4.16637 4.66637C5.32016 3.51259 6.79017 2.72685 8.39051 2.40852C9.99085 2.09019 11.6497 2.25357 13.1571 2.87799C14.6646 3.50242 15.9531 4.55984 16.8596 5.91655C17.7661 7.27325 18.25 8.8683 18.25 10.5C18.2475 12.6873 17.3775 14.7843 15.8309 16.3309C14.2843 17.8775 12.1873 18.7475 10 18.75ZM11.5 15C11.5 15.1989 11.421 15.3897 11.2803 15.5303C11.1397 15.671 10.9489 15.75 10.75 15.75C10.3522 15.75 9.97065 15.592 9.68934 15.3107C9.40804 15.0294 9.25 14.6478 9.25 14.25V10.5C9.05109 10.5 8.86033 10.421 8.71967 10.2803C8.57902 10.1397 8.5 9.94891 8.5 9.75C8.5 9.55109 8.57902 9.36032 8.71967 9.21967C8.86033 9.07902 9.05109 9 9.25 9C9.64783 9 10.0294 9.15804 10.3107 9.43934C10.592 9.72064 10.75 10.1022 10.75 10.5V14.25C10.9489 14.25 11.1397 14.329 11.2803 14.4697C11.421 14.6103 11.5 14.8011 11.5 15ZM8.5 6.375C8.5 6.1525 8.56598 5.93499 8.6896 5.74998C8.81322 5.56498 8.98892 5.42078 9.19449 5.33564C9.40005 5.25049 9.62625 5.22821 9.84448 5.27162C10.0627 5.31502 10.2632 5.42217 10.4205 5.5795C10.5778 5.73684 10.685 5.93729 10.7284 6.15552C10.7718 6.37375 10.7495 6.59995 10.6644 6.80552C10.5792 7.01109 10.435 7.18679 10.25 7.3104C10.065 7.43402 9.84751 7.5 9.625 7.5C9.32664 7.5 9.04049 7.38147 8.82951 7.1705C8.61853 6.95952 8.5 6.67337 8.5 6.375Z",fill:"currentColor"})})],891536),e.s(["FcWarningIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M10 0.25C8.07164 0.25 6.18657 0.821828 4.58319 1.89317C2.97982 2.96451 1.73013 4.48726 0.992179 6.26884C0.254225 8.05042 0.061142 10.0108 0.437348 11.9021C0.813554 13.7934 1.74215 15.5307 3.10571 16.8943C4.46928 18.2579 6.20656 19.1865 8.09787 19.5627C9.98919 19.9389 11.9496 19.7458 13.7312 19.0078C15.5127 18.2699 17.0355 17.0202 18.1068 15.4168C19.1782 13.8134 19.75 11.9284 19.75 10C19.7473 7.41498 18.7192 4.93661 16.8913 3.10872C15.0634 1.28084 12.585 0.25273 10 0.25ZM10 18.25C8.36831 18.25 6.77326 17.7661 5.41655 16.8596C4.05984 15.9531 3.00242 14.6646 2.378 13.1571C1.75358 11.6496 1.5902 9.99085 1.90853 8.3905C2.22685 6.79016 3.01259 5.32015 4.16637 4.16637C5.32016 3.01259 6.79017 2.22685 8.39051 1.90852C9.99085 1.59019 11.6497 1.75357 13.1571 2.37799C14.6646 3.00242 15.9531 4.05984 16.8596 5.41655C17.7661 6.77325 18.25 8.3683 18.25 10C18.2475 12.1873 17.3775 14.2843 15.8309 15.8309C14.2843 17.3775 12.1873 18.2475 10 18.25ZM9.25 10.75V5.5C9.25 5.30109 9.32902 5.11032 9.46967 4.96967C9.61033 4.82902 9.80109 4.75 10 4.75C10.1989 4.75 10.3897 4.82902 10.5303 4.96967C10.671 5.11032 10.75 5.30109 10.75 5.5V10.75C10.75 10.9489 10.671 11.1397 10.5303 11.2803C10.3897 11.421 10.1989 11.5 10 11.5C9.80109 11.5 9.61033 11.421 9.46967 11.2803C9.32902 11.1397 9.25 10.9489 9.25 10.75ZM11.125 14.125C11.125 14.3475 11.059 14.565 10.9354 14.75C10.8118 14.935 10.6361 15.0792 10.4305 15.1644C10.225 15.2495 9.99876 15.2718 9.78053 15.2284C9.5623 15.185 9.36184 15.0778 9.20451 14.9205C9.04718 14.7632 8.94003 14.5627 8.89662 14.3445C8.85321 14.1262 8.87549 13.9 8.96064 13.6945C9.04579 13.4889 9.18998 13.3132 9.37499 13.1896C9.55999 13.066 9.7775 13 10 13C10.2984 13 10.5845 13.1185 10.7955 13.3295C11.0065 13.5405 11.125 13.8266 11.125 14.125Z",fill:"currentColor"})})],734829),e.s(["FcLightningIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 10 14",fill:"none",...e,children:(0,r.jsx)("path",{d:"M6.25 0L0 8.167h3.75L3.125 14l6.25-8.167H5.625L6.25 0z",fill:"currentColor"})})],873032);let i={yellow:["#FFF176","#FFEB3B"],blue:["#64B5F6","#42A5F5"],gray:["#BDBDBD","#E0E0E0"],white:["white","white"],inherit:["currentColor","currentColor"]},l={yellow:["#F57F17","#FF8F00"],blue:["#1565C0","#0D47A1"],gray:["#424242","#616161"],white:["#9E9E9E","#757575"],inherit:["currentColor","currentColor"]};e.s(["FcLightningGradientIcon",0,e=>{let{theme:t="yellow",...a}=e,s=i[t],o=l[t];return(0,r.jsxs)(n,{...a,viewBox:"0 0 72 72",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:`fillGradient_lightning_${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:s[0]}),(0,r.jsx)("stop",{offset:"100%",stopColor:s[1]})]}),(0,r.jsxs)("linearGradient",{id:`strokeGradient_lightning_${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:o[0]}),(0,r.jsx)("stop",{offset:"100%",stopColor:o[1]})]})]}),(0,r.jsx)("g",{id:"color",children:(0,r.jsx)("path",{fill:`url(#fillGradient_lightning_${t})`,stroke:"none",d:"M48.143,3.7261L16.316,37.8507c-0.6029,0.6465-0.1141,1.6589,0.801,1.6589h19.1066L19.1503,67.0482 c-0.1662,0.2681,0.215,0.5364,0.4424,0.3114l36.0628-35.704c0.6436-0.6372,0.1626-1.6882-0.7725-1.6882H36.3826L48.143,3.7261z"})}),(0,r.jsx)("g",{id:"line",children:(0,r.jsx)("path",{fill:"none",stroke:`url(#strokeGradient_lightning_${t})`,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M48.1628,4.4406L16.3224,37.7817c-0.6174,0.6465-0.1168,1.6589,0.8201,1.6589h19.0829l-18.304,28.8333l37.7269-36.4785 c0.659-0.6372,0.1665-1.6882-0.791-1.6882H36.3846L48.1628,4.4406z"})})]})}],62701),e.s(["FcChevronLeftIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 13 24",fill:"none",...e,children:(0,r.jsx)("path",{d:"M11 1.89453L2.1579 11.9998L11 22.1051",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})],781903),e.s(["FcChevronRightIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 13 24",fill:"none",...e,children:(0,r.jsx)("path",{d:"M2 1.89453L10.8421 11.9998L2 22.1051",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})],452911),e.s(["FcBareCheckIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 22 22",fill:"none",...e,children:(0,r.jsx)("path",{d:"M5 11L9 15.5L17 6.5",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})],764084),e.s(["FcBareCloseIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 22 22",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M5 5L17 17",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M17 5L5 17",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})]})],464663),e.s(["FcShieldCheckIcon",0,e=>
244(0,r.jsx)(n,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M19.5 3.75H4.5C4.10218 3.75 3.72064 3.90804 3.43934 4.18934C3.15804 4.47064 3 4.85218 3 5.25V10.7597C3 19.1606 10.1081 21.9478 11.5312 22.4212C11.8352 22.5246 12.1648 22.5246 12.4688 22.4212C13.8938 21.9478 21 19.1606 21 10.7597V5.25C21 4.85218 20.842 4.47064 20.5607 4.18934C20.2794 3.90804 19.8978 3.75 19.5 3.75ZM16.2806 10.2806L11.0306 15.5306C10.961 15.6004 10.8783 15.6557 10.7872 15.6934C10.6962 15.7312 10.5986 15.7506 10.5 15.7506C10.4014 15.7506 10.3038 15.7312 10.2128 15.6934C10.1217 15.6557 10.039 15.6004 9.96937 15.5306L7.71937 13.2806C7.57864 13.1399 7.49958 12.949 7.49958 12.75C7.49958 12.551 7.57864 12.3601 7.71937 12.2194C7.86011 12.0786 8.05098 11.9996 8.25 11.9996C8.44902 11.9996 8.63989 12.0786 8.78063 12.2194L10.5 13.9387L15.2194 9.21937C15.2891 9.14969 15.3718 9.09442 15.4628 9.0567C15.5539 9.01899 15.6515 8.99958 15.75 8.99958C15.8485 8.99958 15.9461 9.01899 16.0372 9.0567C16.1282 9.09442 16.2109 9.14969 16.2806 9.21937C16.3503 9.28906 16.4056 9.37178 16.4433 9.46283C16.481 9.55387 16.5004 9.65145 16.5004 9.75C16.5004 9.84855 16.481 9.94613 16.4433 10.0372C16.4056 10.1282 16.3503 10.2109 16.2806 10.2806Z"})})],375953),e.s(["FcSuccessCheckIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M5.75 10.25L8.5 13L14.25 7.25",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})],352714),e.s(["FcConfettiIcon",0,e=>(0,r.jsx)(n,{boxSize:"20px",viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M6.20594 3.48672C6.05915 3.34031 5.87785 3.23324 5.67876 3.17537C5.47968 3.11751 5.26922 3.11072 5.06682 3.15564C4.86443 3.20056 4.6766 3.29573 4.52068 3.43238C4.36476 3.56902 4.24577 3.74274 4.17469 3.9375L0.0739113 15.2172C0.00654532 15.4032 -0.0152147 15.6026 0.0104577 15.7988C0.0361302 15.995 0.108486 16.1821 0.221451 16.3445C0.334416 16.5069 0.484694 16.6399 0.659669 16.7322C0.834645 16.8245 1.02921 16.8735 1.22704 16.875C1.37269 16.874 1.51705 16.8476 1.6536 16.7969L12.9325 12.6953C13.1273 12.6243 13.3011 12.5054 13.4378 12.3495C13.5746 12.1936 13.6698 12.0058 13.7148 11.8034C13.7598 11.601 13.7531 11.3905 13.6953 11.1914C13.6375 10.9923 13.5305 10.8109 13.3841 10.6641L6.20594 3.48672ZM2.58485 11.9633L4.08485 7.83906L9.03172 12.7859L4.90672 14.2859L2.58485 11.9633ZM9.99579 5C10.0075 4.57748 10.1098 4.1624 10.2958 3.78281C10.7098 2.95547 11.4911 2.5 12.4958 2.5C13.0192 2.5 13.3552 2.32109 13.5622 1.93672C13.6712 1.72168 13.7338 1.48611 13.7458 1.24531C13.7464 1.07955 13.8129 0.920828 13.9305 0.804057C14.0482 0.687287 14.2074 0.622035 14.3731 0.622656C14.5389 0.623278 14.6976 0.689722 14.8144 0.807372C14.9312 0.925022 14.9964 1.08424 14.9958 1.25C14.9958 2.25469 14.3302 3.75 12.4958 3.75C11.9723 3.75 11.6364 3.92891 11.4294 4.31328C11.3204 4.52832 11.2578 4.76389 11.2458 5.00469C11.2455 5.08676 11.229 5.16798 11.1973 5.24369C11.1656 5.3194 11.1193 5.38812 11.0611 5.44594C11.0028 5.50376 10.9337 5.54954 10.8578 5.58067C10.7819 5.61179 10.7005 5.62765 10.6184 5.62734C10.5364 5.62704 10.4552 5.61056 10.3794 5.57887C10.3037 5.54718 10.235 5.50088 10.1772 5.44263C10.1194 5.38437 10.0736 5.3153 10.0425 5.23936C10.0113 5.16341 9.99548 5.08208 9.99579 5ZM8.12079 2.5V0.625C8.12079 0.45924 8.18663 0.300268 8.30384 0.183058C8.42105 0.065848 8.58003 0 8.74579 0C8.91155 0 9.07052 0.065848 9.18773 0.183058C9.30494 0.300268 9.37079 0.45924 9.37079 0.625V2.5C9.37079 2.66576 9.30494 2.82473 9.18773 2.94194C9.07052 3.05915 8.91155 3.125 8.74579 3.125C8.58003 3.125 8.42105 3.05915 8.30384 2.94194C8.18663 2.82473 8.12079 2.66576 8.12079 2.5ZM16.063 8.93281C16.121 8.99088 16.167 9.05981 16.1984 9.13566C16.2298 9.21151 16.2459 9.2928 16.2459 9.37489C16.2458 9.45697 16.2296 9.53825 16.1982 9.61407C16.1667 9.68989 16.1207 9.75878 16.0626 9.8168C16.0045 9.87481 15.9356 9.92083 15.8597 9.95221C15.7839 9.98358 15.7026 9.99972 15.6205 9.99968C15.5384 9.99964 15.4571 9.98344 15.3813 9.95199C15.3055 9.92055 15.2366 9.87447 15.1786 9.81641L13.9286 8.56641C13.8113 8.44913 13.7454 8.29007 13.7454 8.12422C13.7454 7.95837 13.8113 7.79931 13.9286 7.68203C14.0459 7.56476 14.2049 7.49887 14.3708 7.49887C14.5366 7.49887 14.6957 7.56476 14.813 7.68203L16.063 8.93281ZM16.4434 5.59297L14.5684 6.21797C14.4112 6.27039 14.2395 6.25819 14.0913 6.18406C13.943 6.10992 
24413.8302 5.97992 13.7778 5.82266C13.7254 5.66539 13.7376 5.49374 13.8117 5.34547C13.8859 5.1972 14.0159 5.08445 14.1731 5.03203L16.0481 4.40703C16.2054 4.35461 16.377 4.36681 16.5253 4.44094C16.6736 4.51508 16.7863 4.64508 16.8388 4.80234C16.8912 4.95961 16.879 5.13126 16.8048 5.27953C16.7307 5.4278 16.6007 5.54055 16.4434 5.59297Z",fill:"currentColor"})})],730008),e.s(["FcCheckmarkOutlineIcon",0,function(e){return(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M14.2806 7.21937C14.3504 7.28903 14.4057 7.37175 14.4434 7.46279C14.4812 7.55384 14.5006 7.65144 14.5006 7.75C14.5006 7.84856 14.4812 7.94616 14.4434 8.03721C14.4057 8.12825 14.3504 8.21097 14.2806 8.28063L9.03063 13.5306C8.96097 13.6004 8.87826 13.6557 8.78721 13.6934C8.69616 13.7312 8.59857 13.7506 8.5 13.7506C8.40144 13.7506 8.30385 13.7312 8.2128 13.6934C8.12175 13.6557 8.03903 13.6004 7.96938 13.5306L5.71938 11.2806C5.57865 11.1399 5.49959 10.949 5.49959 10.75C5.49959 10.551 5.57865 10.3601 5.71938 10.2194C5.86011 10.0786 6.05098 9.99958 6.25 9.99958C6.44903 9.99958 6.6399 10.0786 6.78063 10.2194L8.5 11.9397L13.2194 7.21937C13.289 7.14964 13.3718 7.09432 13.4628 7.05658C13.5538 7.01884 13.6514 6.99941 13.75 6.99941C13.8486 6.99941 13.9462 7.01884 14.0372 7.05658C14.1283 7.09432 14.211 7.14964 14.2806 7.21937ZM19.75 10C19.75 11.9284 19.1782 13.8134 18.1068 15.4168C17.0355 17.0202 15.5127 18.2699 13.7312 19.0078C11.9496 19.7458 9.98919 19.9389 8.09787 19.5627C6.20656 19.1865 4.46928 18.2579 3.10571 16.8943C1.74215 15.5307 0.813554 13.7934 0.437348 11.9021C0.061142 10.0108 0.254225 8.05042 0.992179 6.26884C1.73013 4.48726 2.97982 2.96451 4.58319 1.89317C6.18657 0.821828 8.07164 0.25 10 0.25C12.585 0.25273 15.0634 1.28084 16.8913 3.10872C18.7192 4.93661 19.7473 7.41498 19.75 10ZM18.25 10C18.25 8.3683 17.7661 6.77325 16.8596 5.41655C15.9531 4.05984 14.6646 3.00242 13.1571 2.37799C11.6497 1.75357 9.99085 1.59019 8.39051 1.90852C6.79017 2.22685 5.32016 3.01259 4.16637 4.16637C3.01259 5.32015 2.22685 6.79016 1.90853 8.3905C1.5902 9.99085 1.75358 11.6496 2.378 13.1571C3.00242 14.6646 4.05984 15.9531 5.41655 16.8596C6.77326 17.7661 8.36831 18.25 10 18.25C12.1873 18.2475 14.2843 17.3775 15.8309 15.8309C17.3775 14.2843 18.2475 12.1873 18.25 10Z",fill:"currentColor"})})}],326488),e.s(["FcGiftBoxIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 24 24",...e,children:[(0,r.jsx)("path",{d:"M20 12v8c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4 8h16v4H4z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 8v14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 8c0-1.1.9-2 2-2h2c1.1 0 2 .9 2 2",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 8c-1.66 0-3-1.34-3-3s1.34-3 3-3",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})],77233),e.s(["FcArchiveIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 16 16",...e,children:(0,r.jsx)("path",{d:"M14 3H2C1.73478 3 1.48043 3.10536 1.29289 3.29289C1.10536 3.48043 1 3.73478 1 4V5.5C1 5.76522 1.10536 6.01957 1.29289 6.20711C1.48043 6.39464 1.73478 6.5 2 6.5V12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12V6.5C14.2652 6.5 14.5196 6.39464 14.7071 6.20711C14.8946 6.01957 15 5.76522 15 5.5V4C15 3.73478 14.8946 3.48043 14.7071 3.29289C14.5196 3.10536 14.2652 3 14 3ZM9.5 9H6.5C6.36739 9 6.24021 8.94732 6.14645 8.85355C6.05268 8.75979 6 8.63261 6 8.5C6 8.36739 6.05268 8.24021 6.14645 8.14645C6.24021 8.05268 6.36739 8 6.5 8H9.5C9.63261 8 9.75979 8.05268 9.85355 8.14645C9.94732 8.24021 10 8.36739 10 8.5C10 8.63261 9.94732 8.75979 9.85355 8.85355C9.75979 8.94732 9.63261 9 9.5 9ZM14 5.5H2V4H14V5.5Z",fill:"currentColor"})})],57963),e.s(["FcUnarchiveIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 12 12",...e,children:(0,r.jsx)("path",{d:"M11 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893
244C0.105357 0.48043 0 0.734784 0 1V11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H11C11.2652 12 11.5196 11.8946 11.7071 11.7071C11.8946 11.5196 12 11.2652 12 11V1C12 0.734784 11.8946 0.48043 11.7071 0.292893C11.5196 0.105357 11.2652 0 11 0ZM3.64625 4.14625L5.64625 2.14625C5.69269 2.09976 5.74783 2.06288 5.80853 2.03772C5.86923 2.01256 5.93429 1.99961 6 1.99961C6.06571 1.99961 6.13077 2.01256 6.19147 2.03772C6.25217 2.06288 6.30731 2.09976 6.35375 2.14625L8.35375 4.14625C8.40021 4.1927 8.43705 4.24786 8.4622 4.30855C8.48734 4.36925 8.50028 4.4343 8.50028 4.5C8.50028 4.5657 8.48734 4.63075 8.4622 4.69145C8.43705 4.75214 8.40021 4.8073 8.35375 4.85375C8.30729 4.90021 8.25214 4.93706 8.19145 4.9622C8.13075 4.98734 8.0657 5.00028 8 5.00028C7.9343 5.00028 7.86925 4.98734 7.80855 4.9622C7.74786 4.93706 7.6927 4.90021 7.64625 4.85375L6.5 3.70687V7.5C6.5 7.63261 6.44732 7.75979 6.35355 7.85355C6.25979 7.94732 6.13261 8 6 8C5.86739 8 5.74021 7.94732 5.64645 7.85355C5.55268 7.75979 5.5 7.63261 5.5 7.5V3.70687L4.35375 4.85375C4.25993 4.94757 4.13268 5.00028 4 5.00028C3.86732 5.00028 3.74007 4.94757 3.64625 4.85375C3.55243 4.75993 3.49972 4.63268 3.49972 4.5C3.49972 4.36732 3.55243 4.24007 3.64625 4.14625ZM11 11H1V8.5H2.79313L4 9.70687C4.09252 9.80014 4.20266 9.87408 4.32401 9.9244C4.44536 9.97472 4.5755 10.0004 4.70687 10H7.29313C7.4245 10.0004 7.55464 9.97472 7.67599 9.9244C7.79734 9.87408 7.90748 9.80014 8 9.70687L9.20687 8.5H11V11Z",fill:"currentColor"})})],379559),e.s(["FcCalendarIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 10 11",...e,children:(0,r.jsx)("path",{d:"M8.75 1.5H7.625V1.125C7.625 1.02554 7.58549 0.930161 7.51517 0.859835C7.44484 0.789509 7.34946 0.75 7.25 0.75C7.15054 0.75 7.05516 0.789509 6.98483 0.859835C6.91451 0.930161 6.875 1.02554 6.875 1.125V1.5H3.125V1.125C3.125 1.02554 3.08549 0.930161 3.01516 0.859835C2.94484 0.789509 2.84946 0.75 2.75 0.75C2.65054 0.75 2.55516 0.789509 2.48484 0.859835C2.41451 0.930161 2.375 1.02554 2.375 1.125V1.5H1.25C1.05109 1.5 0.860322 1.57902 0.71967 1.71967C0.579018 1.86032 0.5 2.05109 0.5 2.25V9.75C0.5 9.94891 0.579018 10.1397 0.71967 10.2803C0.860322 10.421 1.05109 10.5 1.25 10.5H8.75C8.94891 10.5 9.13968 10.421 9.28033 10.2803C9.42098 10.1397 9.5 9.94891 9.5 9.75V2.25C9.5 2.05109 9.42098 1.86032 9.28033 1.71967C9.13968 1.57902 8.94891 1.5 8.75 1.5ZM2.375 2.25V2.625C2.375 2.72446 2.41451 2.81984 2.48484 2.89016C2.55516 2.96049 2.65054 3 2.75 3C2.84946 3 2.94484 2.96049 3.01516 2.89016C3.08549 2.81984 3.125 2.72446 3.125 2.625V2.25H6.875V2.625C6.875 2.72446 6.91451 2.81984 6.98483 2.89016C7.05516 2.96049 7.15054 3 7.25 3C7.34946 3 7.44484 2.96049 7.51517 2.89016C7.58549 2.81984 7.625 2.72446 7.625 2.625V2.25H8.75V3.75H1.25V2.25H2.375ZM8.75 9.75H1.25V4.5H8.75V9.75Z",fill:"currentColor"})})],786932),e.s(["FcDesktopIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 16 16",fill:"none",...e,children:[(0,r.jsx)("rect",{x:"2",y:"2",width:"12",height:"9",rx:"1.5",stroke:"currentColor",strokeWidth:"1.2"}),(0,r.jsx)("path",{d:"M5.5 14H10.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M8 11V14",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})],265783),e.s(["FcHeartIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 18 15",...e,children:(0,r.jsx)("path",{d:"M12.6553 0.5C13.8071 0.501298 14.9121 0.959002 15.7266 1.77344C16.4901 2.53695 16.9397 3.5556 16.9941 4.62891L17 4.84473C16.9995 7.34477 15.1287 9.68917 13.0732 11.4893C11.046 13.2646 8.97195 14.395 8.8125 14.4795L8.80957 14.4814C8.79137 14.4912 8.77067 14.4961 8.75 14.4961C8.72933 14.4961 8.70863 14.4912 8.69043 14.4814L8.6875 14.4805L8.24219 14.2275C7.49763 13.7913 5.9489 12.8223 4.42676 11.4893C2.37129 9.68917 0.500487 7.34477 0.5 4.84473C0.501298 3.69294 0.959002 2.58787 1.77344 1.77344C2.58774 0.959135 3.69217 0.501447 4.84375 0.5C6.31091 0.5 7.57107 1.12878 8.35059 2.16699L8.75 2.69922L9.14941 2.16699C9.92876 1.12901 11.1885 0.500279 12.6553 0.5Z",fill:"currentColor",stroke:"currentColor"})})],762858),e.s(["FcCookieIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M17.5 9.375C16.6712 9.375 15.8763 9.04576 15.2903 8.45971C14.7042 7.87366 14.375 7.0788 14.375 6.25C14.375 6.08424 14.3092 5.92527 14.1919 5.80806C14.0747 5.69085 13.9158 5.625 13.75 5.625C12.9212 5.625 12.1263 5.29576 11.5403 4.70971C10.9542 4.12366 10.625 3.3288 10.625 2.5C10.625 2.33424 10.5592 2.17527 10.4419 2.05806C10.3247 1.94085 10.1658 1.875 10 1.875C8.39303 1.875 6.82214 2.35152 5.486 3.24431C4.14985 4.1371 3.10844 5.40605 2.49348 6.8907C1.87852 8.37535 1.71762 10.009 2.03112 11.5851C2.34463 13.1612 3.11846 14.6089 4.25476 15.7452C5.39106 16.8815 6.8388 17.6554 8.4149 17.9689C9.99099 18.2824 11.6247 18.1215 13.1093 17.5065C14.594 16.8916 15.8629 15.8502 16.7557 14.514C17.6485 13.1779 18.125 11.607 18.125 10C18.125 9.83424 18.0592 9.67527 17.9419 9.55806C17.8247 9.44085 17.6658 9.375 17.5 9.375ZM5.89922 7.77422C6.03046 7.64343 6.19752 7.55447 6.37928 7.51856C6.56105 7.48265 6.74938 7.5014 6.9205 7.57246C7.09162 7.64351 7.23784 7.76367 7.34071 7.91777C7.44358 8.07187 7.49848 8.253 7.49848 8.43828C7.49848 8.62356 7.44358 8.80469 7.34071 8.95879C7.23784 9.11289 7.09162 9.23305 6.9205 9.30411C6.74938 9.37516 6.56105 9.39391 6.37928 9.35801C6.19752 9.32209 6.03046 9.23313 5.89922 9.10234C5.81182 9.01525 5.74248 8.91175 5.69516 8.7978C5.64784 8.68384 5.62348 8.56167 5.62348 8.43828C5.62348 8.31489 5.64784 8.19272 5.69516 8.07876C5.74248 7.96481 5.81182 7.86132 5.89922 7.77422ZM7.85235 13.4773C7.72111 13.6081 7.55405 13.6971 7.37229 13.733C7.19052 13.7689 7.00218 13.7502 6.83107 13.6791C6.65995 13.6081 6.51373 13.4879 6.41086 13.3338C6.30799 13.1797 6.25309 12.9986 6.25309 12.8133C6.25309 12.628 6.30799 12.4469 6.41086 12.2928C6.51373 12.1387 6.65995 12.0185 6.83107 11.9475C7.00218 11.8764 7.19052 11.8576 7.37229 11.8936C7.55405 11.9295 7.72111 12.0184 7.85235 12.1492C7.93941 12.2364 8.00844 12.3399 8.05548 12.4537C8.10253 12.5676 8.12667 12.6896 8.12652 12.8128C8.12638 12.936 8.10195 13.058 8.05464 13.1717C8.00732 13.2855 7.93805 13.3888 7.85078 13.4758L7.85235 13.4773ZM9.64922 10.3523C9.51844 10.2211 9.42947 10.0541 9.39356 9.87228C9.35765 9.69051 9.37641 9.50218 9.44746 9.3310
2447C9.51851 9.15995 9.63868 9.01372 9.79278 8.91085C9.94688 8.80798 10.128 8.75308 10.3133 8.75308C10.4986 8.75308 10.6797 8.80798 10.8338 8.91085C10.9879 9.01372 11.1081 9.15995 11.1791 9.33107C11.2502 9.50218 11.2689 9.69051 11.233 9.87228C11.1971 10.0541 11.1081 10.2211 10.9773 10.3523C10.8901 10.4396 10.7866 10.5089 10.6726 10.5561C10.5586 10.6032 10.4363 10.6274 10.313 10.6273C10.1896 10.6272 10.0674 10.6027 9.95353 10.5552C9.83963 10.5078 9.73622 10.4383 9.64922 10.3508V10.3523ZM12.8523 14.1023C12.7211 14.2331 12.5541 14.3221 12.3723 14.358C12.1905 14.3939 12.0022 14.3752 11.8311 14.3041C11.66 14.2331 11.5137 14.1129 11.4109 13.9588C11.308 13.8047 11.2531 13.6236 11.2531 13.4383C11.2531 13.253 11.308 13.0719 11.4109 12.9178C11.5137 12.7637 11.66 12.6435 11.8311 12.5725C12.0022 12.5014 12.1905 12.4826 12.3723 12.5186C12.5541 12.5545 12.7211 12.6434 12.8523 12.7742C12.9394 12.8614 13.0084 12.9649 13.0555 13.0787C13.1025 13.1926 13.1267 13.3146 13.1265 13.4378C13.1264 13.561 13.1019 13.683 13.0546 13.7967C13.0073 13.9105 12.9381 14.0138 12.8508 14.1008L12.8523 14.1023Z",fill:"currentColor"})})],278143),e.s(["FcTagIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M18.3836 10.1876L10.625 2.42903C10.5094 2.31246 10.3717 2.22003 10.22 2.15713C10.0683 2.09423 9.90563 2.0621 9.74141 2.06263H2.50001C2.33425 2.06263 2.17527 2.12848 2.05806 2.24569C1.94085 2.3629 1.87501 2.52187 1.87501 2.68763V9.92904C1.87448 10.0932 1.9066 10.2559 1.96951 10.4076C2.03241 10.5593 2.12483 10.697 2.24141 10.8126L10 18.5712C10.1161 18.6873 10.2539 18.7794 10.4056 18.8423C10.5572 18.9051 10.7198 18.9374 10.884 18.9374C11.0482 18.9374 11.2107 18.9051 11.3624 18.8423C11.5141 18.7794 11.6519 18.6873 11.768 18.5712L18.3836 11.9556C18.4997 11.8395 18.5918 11.7017 18.6546 11.55C18.7175 11.3984 18.7498 11.2358 18.7498 11.0716C18.7498 10.9074 18.7175 10.7449 18.6546 10.5932C18.5918 10.4415 18.4997 10.3037 18.3836 10.1876ZM5.93751 7.06263C5.75209 7.06263 5.57083 7.00765 5.41666 6.90463C5.26249 6.80162 5.14233 6.6552 5.07137 6.48389C5.00041 6.31259 4.98185 6.12409 5.01802 5.94223C5.05419 5.76037 5.14348 5.59333 5.27459 5.46222C5.40571 5.3311 5.57275 5.24182 5.75461 5.20564C5.93647 5.16947 6.12497 5.18803 6.29627 5.25899C6.46758 5.32995 6.614 5.45011 6.71701 5.60428C6.82002 5.75845 6.87501 5.93971 6.87501 6.12513C6.87501 6.37377 6.77623 6.61223 6.60042 6.78804C6.4246 6.96386 6.18615 7.06263 5.93751 7.06263Z",fill:"currentColor"})})],412153),e.s(["FcBellIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 14 14",fill:"none",...e,children:(0,r.jsx)("path",{d:"M12.13 9.62172C11.8265 9.09891 11.3753 7.61961 11.3753 5.6875C11.3753 4.52718 10.9144 3.41438 10.0939 2.59391C9.27346 1.77344 8.16067 1.3125 7.00034 1.3125C5.84002 1.3125 4.72722 1.77344 3.90675 2.59391C3.08628 3.41438 2.62534 4.52718 2.62534 5.6875C2.62534 7.62016 2.17362 9.09891 1.87011 9.62172C1.7926 9.75463 1.75151 9.90563 1.75098 10.0595C1.75045 10.2134 1.79051 10.3646 1.8671 10.4981C1.94369 10.6315 2.05412 10.7424 2.18724 10.8196C2.32037 10.8967 2.47148 10.9374 2.62534 10.9375H4.85714C4.95808 11.4314 5.22651 11.8753 5.61704 12.1941C6.00757 12.5129 6.49622 12.687 7.00034 12.687C7.50447 12.687 7.99312 12.5129 8.38364 12.1941C8.77417 11.8753 9.04261 11.4314 9.14355 10.9375H11.3753C11.5292 10.9373 11.6802 10.8965 11.8132 10.8194C11.9463 10.7422 12.0566 10.6313 12.1332 10.4978C12.2097 10.3644 12.2497 10.2132 12.2492 10.0594C12.2486 9.90554 12.2075 9.75459 12.13 9.62172ZM7.00034 11.8125C6.72899 11.8124 6.46434 11.7282 6.24281 11.5715C6.02128 11.4148 5.85376 11.1933 5.76331 10.9375H8.23737C8.14692 11.1933 7.97941 11.4148 7.75787 11.5715C7.53634 11.7282 7.27169 11.8124 7.00034 11.8125ZM2.62534 10.0625C3.04644 9.33844 3.50034 7.66062 3.50034 5.6875C3.50034 4.75924 3.86909 3.869 4.52547 3.21263C5.18185 2.55625 6.07208 2.1875 7.00034 2.1875C7.9286 2.1875 8.81884 2.55625 9.47522 3.21263C10.1316 3.869 10.5003 4.75924 10.5003 5.6875C10.5003 7.65898 10.9532 9.3368 11.3753 10.0625H2.62534Z",fill:"currentColor"})})],936021),e.s(["FcSparklesIcon",0,function(e){return(0,r.jsxs)(n,{viewBox:"0 0 24 24",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M12 3L13.5 9.5L20 11L13.5 12.5L12 19L10.5 12.5L4 11L10.5 9.5L12 3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M19 2L19.5 4.5L22 5L19.5 5.5L19 8L18.5 5.5L16 5L18.5 4.5L19 2Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M20 16L20.5 17.5L22 18L20.5 18.5L20 20L19.5 18.5L18 18L19.5 17.5L20 16Z",fill:"currentColor"})]})}],728512),e.s(["FcStorefrontOutlineIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 16 16",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M2 6.5V13.5C2 13.776 2.224 14 2.5 14H6V10.5C6 10.224 6.224 10 6.5 10H9.5C9.776 10 10 10.224 10 10.5V14H13.5C13.776 14 14 13.776 14 13.5V6.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M1 6.5L3.5 2H12.5L15 6.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.5 6.5C5.5 7.328 4.828 8 4 8C3.172 8 1 7.328 1 6.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10 6.5C10 7.328 9.328 8 8.5 8C7.672 8 7 7.328 7 6.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]})],213994),e.s(["FcCursorClickIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M6.87505 1.87505V1.25005C6.87505 1.08429 6.9409 0.92532 7.05811 0.80811C7.17532 0.690899 7.33429 0.625051 7.50005 0.625051C7.66581 0.625051 7.82478 0.690899 7.94199 0.80811C8.0592 0.92532 8.12505 1.08429 8.12505 1.25005V1.87505C8.12505 2.04081 8.0592 2.19978 7.94199 2.3
2441699C7.82478 2.4342 7.66581 2.50005 7.50005 2.50005C7.33429 2.50005 7.17532 2.4342 7.05811 2.31699C6.9409 2.19978 6.87505 2.04081 6.87505 1.87505ZM1.25005 8.12505H1.87505C2.04081 8.12505 2.19978 8.0592 2.31699 7.94199C2.4342 7.82478 2.50005 7.66581 2.50005 7.50005C2.50005 7.33429 2.4342 7.17532 2.31699 7.05811C2.19978 6.9409 2.04081 6.87505 1.87505 6.87505H1.25005C1.08429 6.87505 0.92532 6.9409 0.80811 7.05811C0.690899 7.17532 0.625051 7.33429 0.625051 7.50005C0.625051 7.66581 0.690899 7.82478 0.80811 7.94199C0.92532 8.0592 1.08429 8.12505 1.25005 8.12505ZM9.72036 3.05943C9.79381 3.09621 9.87379 3.11815 9.95572 3.124C10.0377 3.12985 10.1199 3.11949 10.1979 3.09352C10.2758 3.06754 10.3478 3.02646 10.4099 2.97262C10.4719 2.91878 10.5227 2.85323 10.5594 2.77974L11.1844 1.52974C11.2586 1.38149 11.2709 1.20984 11.2185 1.05256C11.1661 0.895277 11.0534 0.765245 10.9051 0.691067C10.7569 0.616889 10.5852 0.604643 10.4279 0.657021C10.2707 0.709399 10.1406 0.822112 10.0665 0.970364L9.44146 2.22036C9.40465 2.29376 9.38266 2.3737 9.37676 2.4556C9.37085 2.5375 9.38114 2.61977 9.40705 2.69769C9.43295 2.77561 9.47395 2.84766 9.52771 2.90973C9.58147 2.9718 9.64694 3.02267 9.72036 3.05943ZM2.22036 9.44146L0.970364 10.0665C0.822112 10.1406 0.709399 10.2707 0.657021 10.4279C0.604643 10.5852 0.616889 10.7569 0.691067 10.9051C0.765245 11.0534 0.895277 11.1661 1.05256 11.2185C1.20984 11.2709 1.38149 11.2586 1.52974 11.1844L2.77974 10.5594C2.85315 10.5227 2.9186 10.4719 2.97236 10.4098C3.02613 10.3478 3.06715 10.2758 3.09308 10.1979C3.11902 10.1201 3.12936 10.0378 3.12352 9.95596C3.11768 9.87408 3.09576 9.79416 3.05904 9.72075C3.02231 9.64735 2.97148 9.58189 2.90945 9.52813C2.84743 9.47437 2.77542 9.43335 2.69754 9.40741C2.61967 9.38148 2.53744 9.37113 2.45557 9.37698C2.37369 9.38282 2.29377 9.40473 2.22036 9.44146ZM17.1336 14.3751C17.2497 14.4911 17.3418 14.6289 17.4047 14.7806C17.4675 14.9323 17.4999 15.0949 17.4999 15.259C17.4999 15.4232 17.4675 15.5858 17.4047 15.7375C17.3418 15.8891 17.2497 16.0269 17.1336 16.143L16.143 17.1336C16.0269 17.2497 15.8891 17.3418 15.7375 17.4047C15.5858 17.4675 15.4232 17.4999 15.259 17.4999C15.0949 17.4999 14.9323 17.4675 14.7806 17.4047C14.6289 17.3418 14.4911 17.2497 14.3751 17.1336L10.3672 13.1251L8.98443 16.7258C8.98443 16.7336 8.97818 16.7422 8.97427 16.7508C8.87862 16.9738 8.71947 17.1638 8.51665 17.297C8.31383 17.4302 8.0763 17.5008 7.83364 17.5001H7.77193C7.51886 17.4893 7.27518 17.4012 7.07384 17.2475C6.8725 17.0938 6.7232 16.882 6.64614 16.6407L2.56255 4.13443C2.49245 3.91571 2.48396 3.6819 2.53803 3.45867C2.59209 3.23545 2.70661 3.03143 2.86902 2.86902C3.03143 2.70661 3.23545 2.59209 3.45867 2.53803C3.6819 2.48396 3.91571 2.49245 4.13443 2.56255L16.6407 6.64614C16.8797 6.7261 17.089 6.87645 17.241 7.07746C17.3931 7.27846 17.4808 7.52074 17.4927 7.7725C17.5046 8.02426 17.4402 8.27374 17.3078 8.4882C17.1754 8.70267 16.9812 8.8721 16.7508 8.97427L16.7258 8.98443L13.1251 10.3665L17.1336 14.3751ZM16.2501 15.2586L12.2415 11.2501C12.0972 11.106 11.9903 10.9289 11.9302 10.7341C11.87 10.5393 11.8584 10.3328 11.8964 10.1325C11.9344 9.93219 12.0208 9.74422 12.1481 9.58497C12.2753 9.42571 12.4396 9.30001 12.6266 9.2188L12.6516 9.20786L16.2415 7.82974L3.75005 3.75005L7.82818 16.2391L9.20708 12.6454C9.20708 12.6368 9.21333 12.6282 9.21724 12.6196C9.29847 12.4327 9.42415 12.2686 9.58333 12.1414C9.7425 12.0142 9.93035 11.9279 10.1305 11.8899C10.2078 11.8756 10.2863 11.8682 10.3649 11.868C10.6961 11.8684 11.0136 12.0002 11.2477 12.2344L15.2586 16.2501L16.2501 15.2586Z",fill:"currentColor"})})],943020),e.s(["FcShoppingBagOpenIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 17 14",fill:"none",...e,children:(0,r.jsx)("path",{d:"M15 0H1.25C0.918479 0 0.600537 0.131696 0.366116 0.366116C0.131696 0.600537 0 0.918479 0 1.25V12.5C0 12.8315 0.131696 13.1495 0.366116 13.3839C0.600537 13.6183 0.918479 13.75 1.25 13.75H15C15.3315 13.75 15.6495 13.6183 15.8839 13.3839C16.1183 13.1495 16.25 12.8315 16.25 12.5V1.25C16.25 0.918479 16.1183 0.600537 15.8839 0.366116C15.6495 0.131696 15.3315 0 15 0ZM15 1.25V2.5H1.25V1.25H15ZM15 12.5H1.25V3.75H15V12.5ZM11.875 5.625C11.875 6.61956 11.4799 7.57339 10.7767 8.27665C10.0734 8.97991 9.11956 9.375 8.125 9.375C7.13044 9.375 6.17661 8.97991 5.47335 8.27665C4.77009 7.57339 4.375 6.61956 4.375 5.625C4.375 5.45924 4.44085 5.30027 4.55806 5.18306C4.67527 5.06585 4.83424 5 5 5C5.16576 5 5.32473 5.06585 5.44194 5.18306C5.55915 5.30027 5.625 5.45924 5.625 5.625C5.625 6.28804 5.88839 6.92393 6.35723 7.39277C6.82607 7.86161 7.46196 8.125 8.125 8.125C8.78804 8.125 9.42393 7.86161 9.89277 7.39277C10.3616 6.92393 10.625 6.28804 10.625 5.625C10.625 5.45924 10.6908 5.30027 10.8081 5.18306C10.9253 5.06585 11.0842 5 11.25 5C11.4158 5 11.5747 5.06585 11.6919 5.18306C11.8092 5.30027 11.875 5.45924 11.875 5.625Z",fill:"currentColor"})})],314203),e.s(["FcGiftIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M16.875 5.62511H14.1344C14.1648 5.59933 14.1961 5.57433 14.2258 5.54699C14.4631 5.33619 14.6543 5.0787 14.7875 4.79062C14.9207 4.50255 14.9931 4.19008 15 3.87277C15.0103 3.52564 14.9495 3.18008 14.8213 2.85729C14.6932 2.53451 14.5005 2.24131 14.255 1.99571C14.0094 1.75011 13.7163 1.55728 13.3936 1.42907C13.0708 1.30085 12.7253 1.23996 12.3781 1.25011C12.0607 1.25695 11.7481 1.32924 11.4598 1.46246C11.1716 1.59568 10.914 1.78696 10.7031 2.02433C10.4113 2.36253 10.1741 2.74421 10 3.15558C9.82592 2.74421 9.58869 2.36253 9.29688 2.02433C9.08599 1.78696 8.82837 1.59568 8.54015 1.46246C8.25193 1.32924 7.93932 1.25695 7.62187 1.25011C7.27474 1.23996 6.9292 1.30085 6.60645 1.42907C6.2837 1.55728 5.99057 1.75011 5.74504 1.99571C5.49951 2.24131 5.30677 2.53451 5.17865 2.85729C5.05053 3.18008 4.98974 3.52564 5 3.87277C5.00694 4.19008 5.07929 4.50255 5.2125 4.79062C5.34572 5.0787 5.53695 5.33619 5.77422 5.54699C5.80391 5.57277 5.83516 5.59777 5.86563 5.62511H3.125C2.79348 5.62511 2.47554 5.75681 2.24112 5.99123C2.0067 6.22565 1.875 6.54359 1.875 6.87511V9.37511C1.875 9.70663 2.0067 10.0246 2.24112 10.259C2.47554 10.4934 2.79348 10.6251 3.125 10.6251V15.6251C3.125 15.9566 3.2567 16.2746 3.49112 16.509C3.72554 16.7434 4.04348 16.8751 4.375 16.8751H15.625C15.9565 16.8751 16.2745 16.7434 16.5089 16.509C16.7433 16.2746 16.875 15.9566 16.875 15.6251V10.6251C17.2065 10.6251 17.5245 10.4934 17.7589 10.259C17.9933 10.
2440246 18.125 9.70663 18.125 9.37511V6.87511C18.125 6.54359 17.9933 6.22565 17.7589 5.99123C17.5245 5.75681 17.2065 5.62511 16.875 5.62511ZM11.6406 2.85246C11.7396 2.74318 11.8601 2.65554 11.9945 2.59504C12.129 2.53454 12.2745 2.50249 12.4219 2.5009H12.4602C12.6329 2.50198 12.8038 2.53753 12.9626 2.60548C13.1215 2.67343 13.2652 2.77241 13.3854 2.89661C13.5055 3.02081 13.5996 3.16774 13.6622 3.32879C13.7248 3.48984 13.7547 3.66176 13.75 3.83449C13.7484 3.98191 13.7164 4.12741 13.6559 4.26185C13.5954 4.3963 13.5077 4.51678 13.3984 4.61574C12.657 5.27199 11.4266 5.50324 10.6641 5.58449C10.7578 4.75715 11.0156 3.5548 11.6406 2.85246ZM6.63359 2.88058C6.87574 2.63847 7.20367 2.50173 7.54609 2.50011H7.58438C7.7318 2.5017 7.87729 2.53376 8.01174 2.59425C8.14618 2.65475 8.26667 2.7424 8.36563 2.85168C9.02109 3.5923 9.25234 4.82043 9.33359 5.5798C8.57422 5.50168 7.34609 5.2673 6.60547 4.61183C6.49619 4.51287 6.40855 4.39239 6.34805 4.25795C6.28755 4.1235 6.2555 3.978 6.25391 3.83058C6.24906 3.65498 6.27994 3.48023 6.34467 3.31693C6.4094 3.15363 6.50663 3.00517 6.63047 2.88058H6.63359ZM3.125 6.87511H9.375V9.37511H3.125V6.87511ZM4.375 10.6251H9.375V15.6251H4.375V10.6251ZM15.625 15.6251H10.625V10.6251H15.625V15.6251ZM16.875 9.37511H10.625V6.87511H16.875V9.37511Z",fill:"currentColor"})})],842380),e.s(["FcGiftCardGiftIcon",0,e=>(0,r.jsxs)(n,{viewBox:"0 0 32 32",fill:"none",...e,children:[(0,r.jsxs)("g",{clipPath:"url(#fc-gift-card-gift-clip)",children:[(0,r.jsx)("path",{d:"M13.1689 9.42432C12.7083 9.42432 12.2048 9.58979 11.8572 9.98192C11.402 10.4954 11.2593 12.03 11.2762 12.8044C12.0448 12.823 13.5142 12.8026 14.1095 12.2107C14.7319 11.5917 14.9022 10.5101 14.2403 9.8518C13.9523 9.56531 13.5676 9.42432 13.1689 9.42432Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M7.30222 9.42432C7.76287 9.42432 8.26639 9.58979 8.61394 9.98192C9.06912 10.4954 9.21182 12.03 9.19494 12.8044C8.42639 12.823 6.95692 12.8026 6.3617 12.2107C5.73928 11.5917 5.56895 10.5101 6.23083 9.8518C6.5189 9.56531 6.90352 9.42432 7.30222 9.42432Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M15.6906 8.39873C16.8593 9.56085 17.015 11.3925 16.2143 12.8045H32.0003V7.64817C32.0003 6.02977 30.6859 4.71777 29.0645 4.71777H11.2617V7.88174C12.7005 7.06991 14.5185 7.23326 15.6906 8.39873C16.3564 9.06082 14.5185 7.23326 15.6906 8.39873Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6.95514 18.5717L5.49867 17.1247L7.76144 14.8555H0V24.3511C0 25.9695 1.31439 27.2815 2.93573 27.2815H9.20643V16.3141L6.95514 18.5717Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M12.6977 14.8555L14.9303 17.1059L13.4701 18.5492L11.2617 16.3232V27.2815H29.0645C30.6859 27.2815 32.0003 25.9695 32.0003 24.3511V14.8555H12.6977Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M4.25388 12.8045C3.45299 11.3923 3.60896 9.56078 4.77757 8.39873C5.94961 7.23326 7.76759 7.06998 9.20643 7.88174V4.71777H2.93573C1.31439 4.71777 0 6.02977 0 7.64817V12.8045H4.25388Z",fill:"currentColor"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"fc-gift-card-gift-clip",children:(0,r.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})],625974),e.s(["FcHandCoinsIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M17.9945 11.0203C17.762 10.8414 17.4913 10.7185 17.2035 10.6612C16.9157 10.6038 16.6185 10.6137 16.3352 10.6898L13.0664 11.4414C13.1425 11.1202 13.1448 10.7858 13.0733 10.4636C13.0017 10.1413 12.8582 9.83934 12.6534 9.58041C12.4486 9.32149 12.1878 9.11228 11.8907 8.96847C11.5935 8.82465 11.2676 8.74997 10.9375 8.75H7.02656C6.69812 8.74918 6.37278 8.81345 6.06932 8.93909C5.76587 9.06474 5.49032 9.24927 5.25859 9.48203L3.49141 11.25H1.25C0.918479 11.25 0.600537 11.3817 0.366117 11.6161C0.131696 11.8505 0 12.1685 0 12.5L0 15.625C0 15.9565 0.131696 16.2745 0.366117 16.5089C0.600537 16.7433 0.918479 16.875 1.25 16.875H9.375C9.4261 16.875 9.47701 16.8687 9.52656 16.8563L14.5266 15.6063C14.5584 15.5987 14.5896 15.5882 14.6195 15.575L17.6562 14.2828L17.6906 14.2672C17.9825 14.1214 18.2324 13.9036 18.4168 13.6345C18.6013 13.3654 18.7142 13.0537 18.7449 12.7289C18.7756 12.4041 18.7231 12.0768 18.5924 11.7779C18.4617 11.479 18.257 11.2183 17.9977 11.0203H17.9945ZM1.25 12.5H3.125V15.625H1.25V12.5ZM17.143 13.1414L14.1742 14.4055L9.29688 15.625H4.375V12.1336L6.14297 10.3664C6.25862 10.2498 6.39629 10.1574 6.54798 10.0945C6.69967 10.0316 6.86235 9.99948 7.02656 10H10.9375C11.1861 10 11.4246 10.0988 11.6004 10.2746C11.7762 10.4504 11.875 10.6889 11.875 10.9375C11.875 11.1861 11.7762 11.4246 11.6004 11.6004C11.4246 11.7762 11.1861 11.875 10.9375 11.875H8.75C8.58424 11.875 8.42527 11.9408 8.30806 12.0581C8.19085 12.1753 8.125 12.3342 8.125 12.5C8.125 12.6658 8.19085 12.8247 8.30806 12.9419C8.42527 13.0592 8.58424 13.125 8.75 13.125H11.25C11.297 13.1249 11.3439 13.1196 11.3898 13.1094L16.6242 11.9055L16.6484 11.8992C16.8082 11.8549 16.9788 11.8712 17.1273 11.945C17.2758 12.0188 17.3917 12.1449 17.4528 12.2991C17.5139 12.4533 17.5158 12.6246 17.4582 12.7801C17.4005 12.9356 17.2874 13.0643 17.1406 13.1414H17.143ZM12.8125 7.5C12.9669 7.50018 13.1211 7.48763 13.2734 7.4625C13.4448 7.97152 13.7583 8.42083 14.177 8.7573C14.5956 9.09378 15.1018 9.30335 15.6358 9.36123C16.1698 9.41912 16.7091 9.32291 17.1901 9.08397C17.6712 8.84503 18.0737 8.47336 18.3502 8.01289C18.6267 7.55243 18.7655 7.02242 18.7503 6.48555C18.7351 5.94867 18.5665 5.42737 18.2644 4.98328C17.9624 4.53919 17.5394 4.19088 17.0457 3.97953C16.5519 3.76818 16.008 3.70263 15.4781 3.79063C15.3131 3.30019 15.016 2.86479 14.6195 2.53233C14.223 2.19987 13.7424 1.98324 13.2307 1.90628C12.7191 1.82932 12.196 1.89502 11.7193 2.09615C11.2425 2.29727 10.8305 2.62602 10.5285 3.04622C10.2266 3.46642 10.0464 3.96179 10.0078 4.47779C9.96921 4.9938 10.0737 5.51045 10.3098 5.97089C10.546 6.43132 10.9045 6.81769 11.3461 7.08748C11.7876 7.35726 12.2951 7.50001 12.8125 7.5ZM17.5 6.5625C17.5 6.87153 17.4084 7.17363 17.2367 7.43058C17.065 7.68753 16.821 7.8878 16.5354 8.00606C16.2499 8.12432 15.9358 8.15527 15.6327 8.09498C15.3296 8.03469 15.0512 7.88588 14.8326 7.66736C14.6141 7.44884 14.4653 7.
24417043 14.405 6.86733C14.3447 6.56423 14.3757 6.25007 14.4939 5.96456C14.6122 5.67905 14.8125 5.43502 15.0694 5.26333C15.3264 5.09164 15.6285 5 15.9375 5C16.3519 5 16.7493 5.16462 17.0424 5.45765C17.3354 5.75067 17.5 6.1481 17.5 6.5625ZM12.8125 3.125C13.1534 3.12517 13.4848 3.2368 13.7563 3.44287C14.0279 3.64895 14.2245 3.93816 14.3164 4.26641C13.9963 4.49164 13.7267 4.7812 13.5249 5.11658C13.3232 5.45195 13.1936 5.82575 13.1445 6.21406C13.0354 6.23763 12.9241 6.24967 12.8125 6.25C12.3981 6.25 12.0007 6.08538 11.7076 5.79236C11.4146 5.49933 11.25 5.1019 11.25 4.6875C11.25 4.2731 11.4146 3.87567 11.7076 3.58265C12.0007 3.28962 12.3981 3.125 12.8125 3.125Z",fill:"currentColor"})})],952377),e.s(["FcWalletIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 16 16",fill:"none",...e,children:(0,r.jsx)("path",{d:"M13.5 4H3.5C3.36739 4 3.24021 3.94732 3.14645 3.85355C3.05268 3.75979 3 3.63261 3 3.5C3 3.36739 3.05268 3.24021 3.14645 3.14645C3.24021 3.05268 3.36739 3 3.5 3H12C12.1326 3 12.2598 2.94732 12.3536 2.85355C12.4473 2.75979 12.5 2.63261 12.5 2.5C12.5 2.36739 12.4473 2.24021 12.3536 2.14645C12.2598 2.05268 12.1326 2 12 2H3.5C3.10218 2 2.72064 2.15804 2.43934 2.43934C2.15804 2.72064 2 3.10218 2 3.5V11.5C2 11.8978 2.15804 12.2794 2.43934 12.5607C2.72064 12.842 3.10218 13 3.5 13H13.5C13.7652 13 14.0196 12.8946 14.2071 12.7071C14.3946 12.5196 14.5 12.2652 14.5 12V5C14.5 4.73478 14.3946 4.48043 14.2071 4.29289C14.0196 4.10536 13.7652 4 13.5 4ZM13.5 12H3.5C3.36739 12 3.24021 11.9473 3.14645 11.8536C3.05268 11.7598 3 11.6326 3 11.5V4.91437C3.16055 4.97129 3.32966 5.00025 3.5 5H13.5V12ZM10.5 8.25C10.5 8.10166 10.544 7.95666 10.6264 7.83332C10.7088 7.70999 10.8259 7.61386 10.963 7.55709C11.1 7.50032 11.2508 7.48547 11.3963 7.51441C11.5418 7.54335 11.6754 7.61478 11.7803 7.71967C11.8852 7.82456 11.9566 7.9582 11.9856 8.10368C12.0145 8.24917 11.9997 8.39997 11.9429 8.53701C11.8861 8.67406 11.79 8.79119 11.6667 8.8736C11.5433 8.95601 11.3983 9 11.25 9C11.0511 9 10.8603 8.92098 10.7197 8.78033C10.579 8.63968 10.5 8.44891 10.5 8.25Z",fill:"currentColor"})})],626801),e.s(["FcLightbulbIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 16 16",fill:"none",...e,children:(0,r.jsx)("path",{d:"M11.0001 14.5001C11.0001 14.6327 10.9474 14.7599 10.8536 14.8537C10.7599 14.9475 10.6327 15.0001 10.5001 15.0001H5.50008C5.36747 15.0001 5.2403 14.9475 5.14653 14.8537C5.05276 14.7599 5.00008 14.6327 5.00008 14.5001C5.00008 14.3675 5.05276 14.2403 5.14653 14.1466C5.2403 14.0528 5.36747 14.0001 5.50008 14.0001H10.5001C10.6327 14.0001 10.7599 14.0528 10.8536 14.1466C10.9474 14.2403 11.0001 14.3675 11.0001 14.5001ZM13.5001 6.50013C13.5022 7.33366 13.3139 8.15666 12.9496 8.90633C12.5852 9.65599 12.0543 10.3125 11.3976 10.8258C11.2748 10.9199 11.1751 11.0408 11.1062 11.1794C11.0373 11.3179 11.001 11.4704 11.0001 11.6251V12.0001C11.0001 12.2653 10.8947 12.5197 10.7072 12.7072C10.5197 12.8948 10.2653 13.0001 10.0001 13.0001H6.00008C5.73487 13.0001 5.48051 12.8948 5.29298 12.7072C5.10544 12.5197 5.00008 12.2653 5.00008 12.0001V11.6251C4.99998 11.4723 4.96483 11.3214 4.89733 11.1843C4.82983 11.0471 4.73177 10.9272 4.61071 10.8339C3.95558 10.3237 3.42511 9.6711 3.05944 8.92558C2.69378 8.18006 2.5025 7.36112 2.50008 6.53076C2.48383 3.55201 4.89133 1.07138 7.86758 1.00013C8.60092 0.982459 9.33039 1.11166 10.0131 1.38014C10.6957 1.64862 11.3178 2.05095 11.8426 2.56344C12.3674 3.07593 12.7845 3.68824 13.0691 4.36431C13.3538 5.04039 13.5003 5.76658 13.5001 6.50013ZM11.4932 5.91638C11.3636 5.19219 11.0151 4.52511 10.4949 4.00494C9.97458 3.48478 9.30743 3.1365 8.58321 3.00701C8.51845 2.99609 8.45217 2.99804 8.38817 3.01273C8.32416 3.02743 8.26368 3.05459 8.21017 3.09266C8.15666 3.13073 8.11117 3.17897 8.0763 3.23462C8.04144 3.29027 8.01787 3.35225 8.00696 3.41701C7.99604 3.48176 7.99799 3.54804 8.01268 3.61204C8.02738 3.67605 8.05454 3.73654 8.09261 3.79005C8.13068 3.84356 8.17892 3.88904 8.23457 3.92391C8.29022 3.95878 8.3522 3.98234 8.41696 3.99326C9.45258 4.16763 10.3313 5.04638 10.507 6.08388C10.5267 6.20033 10.5871 6.30602 10.6774 6.38221C10.7676 6.4584 10.882 6.50018 11.0001 6.50013C11.0283 6.49996 11.0565 6.49766 11.0845 6.49326C11.2152 6.47094 11.3316 6.39764 11.4083 6.28946C11.4849 6.18128 11.5155 6.04708 11.4932 5.91638Z",fill:"currentColor"})})],518351),e.s(["FcTrustBadgeIcon",0,function({checkColor:e="#141523",...t}){return(0,r.jsxs)(n,{viewBox:"0 0 14 14",fill:"none",...t,children:[(0,r.jsx)("circle",{cx:"7",cy:"7",r:"6",fill:"currentColor"}
244),(0,r.jsx)("path",{d:"M4.2 7.2L5.85 8.85L9.8 4.9",fill:"none",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}],32301),e.s(["FcCreditCardIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 16 16",fill:"none",...e,children:(0,r.jsx)("path",{d:"M14 3H2C1.73478 3 1.48043 3.10536 1.29289 3.29289C1.10536 3.48043 1 3.73478 1 4V12C1 12.2652 1.10536 12.5196 1.29289 12.7071C1.48043 12.8946 1.73478 13 2 13H14C14.2652 13 14.5196 12.8946 14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12V4C15 3.73478 14.8946 3.48043 14.7071 3.29289C14.5196 3.10536 14.2652 3 14 3ZM14 4V5.5H2V4H14ZM14 12H2V6.5H14V12ZM13 10.5C13 10.6326 12.9473 10.7598 12.8536 10.8536C12.7598 10.9473 12.6326 11 12.5 11H10.5C10.3674 11 10.2402 10.9473 10.1464 10.8536C10.0527 10.7598 10 10.6326 10 10.5C10 10.3674 10.0527 10.2402 10.1464 10.1464C10.2402 10.0527 10.3674 10 10.5 10H12.5C12.6326 10 12.7598 10.0527 12.8536 10.1464C12.9473 10.2402 13 10.3674 13 10.5ZM9 10.5C9 10.6326 8.94732 10.7598 8.85355 10.8536C8.75979 10.9473 8.63261 11 8.5 11H7.5C7.36739 11 7.24021 10.9473 7.14645 10.8536C7.05268 10.7598 7 10.6326 7 10.5C7 10.3674 7.05268 10.2402 7.14645 10.1464C7.24021 10.0527 7.36739 10 7.5 10H8.5C8.63261 10 8.75979 10.0527 8.85355 10.1464C8.94732 10.2402 9 10.3674 9 10.5Z",fill:"currentColor"})})],210666),e.s(["FcCircleXIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 16 16",...e,children:(0,r.jsx)("path",{d:"M8 1.33A6.67 6.67 0 1 0 8 14.67 6.67 6.67 0 0 0 8 1.33Zm2.47 8.2a.67.67 0 1 1-.94.94L8 8.94l-1.53 1.53a.67.67 0 0 1-.94-.94L7.06 8 5.53 6.47a.67.67 0 0 1 .94-.94L8 7.06l1.53-1.53a.67.67 0 1 1 .94.94L8.94 8l1.53 1.53Z",fill:"currentColor"})})],182908),e.s(["FcLinkSimpleIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 14 14",...e,children:(0,r.jsx)("path",{d:"M9.0595 4.94048C9.10018 4.98111 9.13245 5.02936 9.15447 5.08247C9.17649 5.13558 9.18782 5.19251 9.18782 5.25001C9.18782 5.3075 9.17649 5.36443 9.15447 5.41754C9.13245 5.47066 9.10018 5.51891 9.0595 5.55954L5.5595 9.05954C5.51886 9.10019 5.4706 9.13243 5.41749 9.15443C5.36438 9.17643 5.30746 9.18775 5.24997 9.18775C5.19249 9.18775 5.13557 9.17643 5.08246 9.15443C5.02935 9.13243 4.98109 9.10019 4.94044 9.05954C4.89979 9.01889 4.86755 8.97063 4.84555 8.91753C4.82355 8.86442 4.81223 8.80749 4.81223 8.75001C4.81223 8.69252 4.82355 8.6356 4.84555 8.58249C4.86755 8.52938 4.89979 8.48112 4.94044 8.44048L8.44044 4.94048C8.48107 4.8998 8.52933 4.86753 8.58244 4.84551C8.63555 4.8235 8.69248 4.81216 8.74997 4.81216C8.80747 4.81216 8.8644 4.8235 8.91751 4.84551C8.97062 4.86753 9.01887 4.8998 9.0595 4.94048ZM11.7906 2.20938C11.5062 1.92497 11.1686 1.69936 10.797 1.54544C10.4254 1.39151 10.0272 1.31229 9.62497 1.31229C9.22277 1.31229 8.82451 1.39151 8.45293 1.54544C8.08135 1.69936 7.74373 1.92497 7.45935 2.20938L5.81544 3.85274C5.73335 3.93483 5.68723 4.04618 5.68723 4.16227C5.68723 4.27837 5.73335 4.38971 5.81544 4.4718C5.89753 4.5539 6.00888 4.60002 6.12497 4.60002C6.24107 4.60002 6.35241 4.5539 6.4345 4.4718L8.07841 2.83118C8.49014 2.42849 9.04407 2.20441 9.61998 2.20759C10.1959 2.21076 10.7473 2.44092 11.1546 2.84812C11.5619 3.25532 11.7921 3.80671 11.7954 4.38262C11.7987 4.95853 11.5747 5.5125 11.1721 5.9243L9.52763 7.56821C9.44554 7.65023 9.39939 7.7615 9.39934 7.87755C9.39929 7.99359 9.44534 8.10491 9.52736 8.187C9.60938 8.26909 9.72065 8.31524 9.83669 8.31529C9.95274 8.31534 10.0641 8.26929 10.1461 8.18727L11.7906 6.54063C12.075 6.25625 12.3006 5.91863 12.4545 5.54705C12.6085 5.17547 12.6877 4.77721 12.6877 4.37501C12.6877 3.97281 12.6085 3.57455 12.4545 3.20297C12.3006 2.83139 12.075 2.49377 11.7906 2.20938ZM7.56544 9.52766L5.92154 11.1716C5.71923 11.3784 5.47791 11.5431 5.21154 11.656C4.94516 11.7689 4.65903 11.8279 4.36971 11.8295C4.08039 11.8311 3.79362 11.7753 3.52602 11.6653C3.25842 11.5553 3.0153 11.3933 2.81073 11.1887C2.60616 10.9841 2.44422 10.7409 2.33427 10.4733C2.22432 10.2057 2.16855 9.91893 2.1702 9.62961C2.17184 9.34029 2.23086 9.05417 2.34385 8.78781C2.45683 8.52146 2.62153 8.28016 2.82841 8.0779L4.47177 6.43454C4.55386 6.35245 4.59998 6.2411 4.59998 6.12501C4.59998 6.00891 4.55386 5.89757 4.47177 5.81548C4.38968 5.73338 4.27834 5.68726 4.16224 5.68726C4.04614 5.68726 3.9348 5.73338 3.85271 5.81548L2.20935 7.45938C1.63499 8.03374 1.31232 8.81274 1.31232 9.62501C1.31232 10.4373 1.63499 11.2163 2.20935 11.7906C2.78371 12.365 3.56271 12.6877 4.37497 12.6877C5.18724 12.6877 5.96624 12.365 6.5406 11.7906L8.1845 10.1462C8.26653 10.0641 8.31257 9.95277 8.31252 9.83673C8.31247 9.72068 8.26632 9.60941 8.18423 9.52739C8.10214 9.44537 7.99
244083 9.39932 7.87478 9.39937C7.75873 9.39942 7.64746 9.44557 7.56544 9.52766Z",fill:"currentColor"})})],270927),e.s(["FcPasteUrlArrowIcon",0,function({arrowHeadArmLength:e=10,arrowStrokeWidth:t=3,dashArray:a="3 6",...s}){return(0,r.jsxs)(n,{className:"text-core-blue-200",fill:"none",viewBox:"0 0 29 54",...s,children:[(0,r.jsx)("defs",{children:(0,r.jsx)("marker",{id:"paste-url-arrow-head",markerHeight:"20",markerUnits:"userSpaceOnUse",markerWidth:e+6,orient:"auto",overflow:"visible",refX:e,refY:"4",viewBox:`0 0 ${e+2} 8`,children:(0,r.jsx)("path",{d:`M1 0.5L${e} 4L1 7.5`,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.6"})})}),(0,r.jsx)("path",{d:"M27.8 51.8C24.9 52.3 22.1 52.1 19.4 51.4C6.5 47.8 -0.4 35 1.6 24.1C3.1 15.9 8.1 8.9 13.2 2.5",markerEnd:"url(#paste-url-arrow-head)",stroke:"currentColor",strokeDasharray:a,strokeLinecap:"round",strokeWidth:t})]})}],590975),e.s(["FcTipBadgeIcon",0,e=>(0,r.jsx)(n,{viewBox:"0 0 14 14",...e,children:(0,r.jsx)("path",{d:"M7 1.17a4.08 4.08 0 0 0-2.33 7.43c.25.17.42.43.42.73v.25h3.82v-.25c0-.3.17-.56.42-.73A4.08 4.08 0 0 0 7 1.17ZM5.25 10.5h3.5v.58a1.17 1.17 0 0 1-1.17 1.17H6.42a1.17 1.17 0 0 1-1.17-1.17v-.58Z",fill:"currentColor"})})],956120);var c=e.i(178761),d=e.i(427509);let p=(0,d.cn)("z-[var(--z-overlay)] rounded-03 border border-core-greyBlue-600 bg-core-greyBlue-800","shadow-[0_8px_24px_var(--color-core-neutral-1000-A30)] outline-none","data-[state=open]:animate-tooltip-in motion-reduce:data-[state=open]:animate-none");var u=e.i(486669);let x=({open:e,defaultOpen:t,onOpenChange:a,modal:s=!1,children:n})=>(0,r.jsx)(c.Root,{open:e,defaultOpen:t,onOpenChange:a,modal:s,children:n}),m=({children:e})=>(0,r.jsx)(c.Trigger,{asChild:!0,children:e}),h=({side:e="bottom",align:t="center",sideOffset:a=8,arrow:s=!1,matchTriggerWidth:n=!1,zIndex:o,collisionPadding:i=8,sticky:l,bare:x=!1,children:m,...h})=>(0,r.jsx)(c.Portal,{children:(0,r.jsxs)(c.Content,{side:e,align:t,sideOffset:a,collisionPadding:i,sticky:l,style:{zIndex:o},className:(0,d.cn)("origin-[var(--radix-popover-content-transform-origin)]",x?"z-[var(--z-overlay)] outline-none data-[state=open]:animate-tooltip-in motion-reduce:data-[state=open]:animate-none":(0,d.cn)(p,"p-4"),n&&"w-[var(--radix-popover-trigger-width)]"),onInteractOutside:e=>{(0,u.isToastInteraction)(e)&&e.preventDefault()},...h,children:[m,s&&(0,r.jsx)(c.Arrow,{width:12,height:6,className:"fill-core-greyBlue-800"})]})}),f={"top-start":{side:"top",align:"start"},"bottom-start":{side:"bottom",align:"start"},top:{side:"top",align:"center"},bottom:{side:"bottom",align:"center"}};e.s(["PopoverTooltip",0,function({label:e,children:t,placement:a="top-start",maxW:s}){let{side:n,align:o}=f[a];return(0,r.jsxs)(x,{children:[(0,r.jsx)(m,{children:(0,r.jsx)("span",{className:"inline-flex cursor-pointer",children:t})}),(0,r.jsx)(h,{side:n,align:o,zIndex:1500,children:(0,r.jsx)("div",{className:"w-[20rem] max-w-[80vw] [text-align:initial] md:max-w-[250px]",style:s?{maxWidth:s}:void 0,children:(0,r.jsx)("p",{className:"m-0 whitespace-normal break-words text-[12px] font-medium text-core-greyBlue-50",children:e})})})]})}],426888),e.s([],739453)},578343,509348,453560,35068,790720,150565,70796,220827,298067,917832,490220,320163,730243,550598,418160,848091,846987,104066,235
24478,980375,65093,210757,549505,e=>{"use strict";e.s(["DealsSearchItem",()=>eu],578343);var r,t,a,s,n,o,i,l,c,d,p,u,x,m,h,f,C,g,b,y,j,v=e.i(843476),N=e.i(990332),_=e.i(271645);e.i(785269);var w=e.i(322831);e.i(739453);var S=e.i(873032),E=e.i(439584),k=e.i(377813),T=e.i(620494);e.s(["useCashbackOfferPreviewData",()=>V],35068);var A=e.i(366510);function I(e){return Number.isInteger(e)?e.toString():e.toFixed(2)}e.s(["formatPercentage",0,I],509348);let R={KRW:100,JPY:10};function O(e,r){let t=R[r];return t?Math.floor(e/t)*t:e}function D(e,r,t,a){let s=a?.showCurrency??!0,n=e%1==0,o=a?.minimumFractionDigits??2*!n,i=a?.maximumFractionDigits??2*!n;return s?new Intl.NumberFormat(t,{style:"currency",currency:r,currencyDisplay:"narrowSymbol",minimumFractionDigits:o,maximumFractionDigits:i}).format(e):new Intl.NumberFormat(t,{style:"decimal",minimumFractionDigits:o,maximumFractionDigits:i}).format(e)}function L(e,r,t,a,s){let n=e/(1/r*1e3);return D(n=O(n,t),t,a,s)}function B(e,r,t){let a=e/(1/r*1e3);return O(a,t)}e.s(["useFormatCurrency",()=>M],453560);var P=e.i(630868);function M(){let{hooks:e}=(0,T.useDealsContext)(),{userCurrency:r,exchangeRates:t}=e.useUserCurrencyInfo(),{country:a}=e.useUserCountry(),{i18n:s}=(0,P.useTranslation)(),n=t?.[r]??1,o=`${s.language}-${a}`;return(0,_.useMemo)(()=>({locale:o,userCurrency:r,conversionRate:n,numberToCurrencyString:(e,t)=>D(e,r,o,t),numberToCurrencyStringIn:(e,r,t)=>D(e,r,o,t),numberToCompactCurrencyStringIn:(e,r)=>D(e,r,o,{minimumFractionDigits:0,maximumFractionDigits:0}),coinsToCurrencyString:(e,t)=>L(e,n,r,o,t),numberToPercentString:e=>new Intl.NumberFormat(o,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2}).format(e/100),coinsToFiatNumber:e=>B(e,n,r)}),[o,r,n])}let F={isLimitedDeal:!1,hasCoupons:!1,normalAmount:0,showUpTo:!1,isPercentage:!1,promotion:null};function H(e,r){let t=!!e.cashbackPromotion?.validTo,a=e.cashbackPromotion?.validTo??null,s=null,n=!1;if(e.cashbackPromotion){let t=e.cashbackPromotion.coinStrike||0,a=e.cashbackPromotion.percentageStrike||0;if(t>0&&a>0){let e=B(t,r.conversionRate,r.currency),o=(0,A.convertCoinsToPercentage)(a);o>=e?(s=o,n=!0):(s=L(t,r.conversionRate,r.currency,r.locale),n=!1)}else a>0?(s=(0,A.convertCoinsToPercentage)(a),n=!0):t>0&&(s=L(t,r.conversionRate,r.currency,r.locale),n=!1)}return t||null!=s?{hasCountdown:t,endDate:a,strikeAmount:s,isPercentageStrike:n}:null}function V(e){let{locale:r,userCurrency:t,conversionRate:a}=M();return(0,_.useMemo)(()=>{if(!e)return F;let s=(0,A.isBoostedCashbackOffer)(e.tags),n=!!e.coupons?.length,o=function(e,r){if(!e.tasks?.length)return{normalAmount:L(e.coins,r.conversionRate,r.currency,r.locale),showUpTo:!1,isPercentage:!1,promotion:H(e,r)};let t=function(e,r){if(!e.length)return null;let t=null;for(let a of e){let e=a.type===E.OfferTaskType.PERCENTAGE,s=e?(0,A.convertCoinsToPercentage)(a.coins):B(a.coins,r.conversionRate,r.currency);(!t||s>t.displayValue)&&(t={task:a,isPercentage:e,displayValue:s})}return t}(e.tasks,r),a=t?.isPercentage??!1;return{normalAmount:t?a?(0,A.convertCoinsToPercentage)(t.task.coins):L(t.task.coins,r.conversionRate,r.currency,r.locale):0,showUpTo:new Set(e.tasks.map(e=>e.type===E.OfferTaskType.PERCENTAGE?(0,A.convertCoinsToPercentage)(e.coins):B(e.coins,r.conversionRate,r.currency))).size>1,isPercentage:a,promotion:H(e,r)}}(e,{currency:t,conversionRate:a,locale:r});return{isLimitedDeal:s,hasCoupons:n,...o}},[e,t,a,r])}e.s(["useGiftCardPreviewData",()=>eo],70796);var G=((r={}).Coins="coins",r.Currency="currency",r.Percentage="percentage",r);function U(e){return"percentage"in e&&"number"==typeof e.percentage}function $(e){return"coins"in e&&"number"==typeof e.coins}function z(e){return"amount"in e&&"currency"in e&&"number"==typeof e.amount&&"string"==typeof e.currency}var K=((t={}).Boosted="BOOSTED",t),W=((a={}).InStore="IN_STORE",a.Online="ONLINE",a);function Z(e){return"paymentSessionToken"in e}function q(e){return"redirectUrl"in e}function Y(e,r){if(U(e))return e.percentage;if($(e))return(0,A.convertCoinsToPercentage)(e.coins);if(z(e)){let t=r[e.currency],a=r.COINS;if(t&&a){let r=Math.round(e.amount*(a/t));return(0,A.convertCoinsToPercentage)(r)}}return 0}function J(e,r){return{cashbackPercentage:e.cashbackValueAmount?Y(e.cashbackValueAmount,r):0,oldCashbackPercentage:e.oldCashbackValueAmount?Y(e.oldCashbackValueAmount,r):0}}function Q(e,r){if(!e||0===e.length)return"";let t=e.includes(W.Online),a=e.includes(W.InStore);return t&&a?r("instantCashback.redemptionChannels.onlineAndInStore","Online & In-Store"):t?r("instantCashback.redemptionChannels.online","Online"):a?r("instantCashback.redemptionChannels.inStore","In-Store"):""}function X(e,r){if(!e.options||0===e.options.length)return"";let t=e.options[0];if(es(t)){let e=r(t.minValue.amount,t.minValue.currency),a=r(t.maxValue.amount,t.maxValue.currency);return`${e} - ${a}`}let a=e.options.filter(ea);if(0===a.length)return"";if(1===a.length)return r(a[0].fixedValue.amount,a[0].fixedValue.currency);let s=a.map(e=>e.fixedValue.amount),n=a[0].fixedValue.currency,o=r(Math.min(...s),n),i=r(Math.max(...s),n);return`${o} - ${i}`}function ee(e){let r=e.trim();return/gift card$/i.test(r)?r:/voucher$/i.test(r)?r.replace(/voucher$/i,"Gift Card"):`${r} Gift Card`}function er(e,r,t=12){let a=[];for(let t of[5,10,20,25,50,75,100,150,200,250,500])t>=e&&t<=r&&a.push(t);return a.includes(e)||a.push(e),a.includes(r)||a.push(r),[...new Set(a
244)].sort((e,r)=>e-r).slice(0,t)}function et(e){if(!e.options||0===e.options.length)return console.error("[GiftCards] Offer has no options:",e.id),null;let r=e.options[0];return es(r)?r.minValue.currency:ea(r)?r.fixedValue.currency:(console.error("[GiftCards] Option has no valid currency:",r),null)}function ea(e){return"fixedValue"in e&&null!=e.fixedValue}function es(e){return"minValue"in e&&"maxValue"in e&&null!=e.minValue&&null!=e.maxValue}e.s(["GiftCardOfferRedeemChannelType",()=>W,"GiftCardOfferTag",()=>K,"ValueAmountType",()=>G,"isCoinsValueAmount",0,$,"isCurrencyValueAmount",0,z,"isExternalPaymentSession",0,q,"isFlowPaymentSession",0,Z,"isPercentageValueAmount",0,U],790720),e.s(["formatGiftCardTitle",0,ee,"generatePredefinedAmounts",0,er,"getGiftCardCashbackPercentage",0,J,"getGiftCardOfferCurrency",0,et,"getGiftCardPriceRangeText",0,X,"getRedemptionChannelsDisplayText",0,Q,"isFixedValueOption",0,ea,"isRangeValueOption",0,es],150565);let en={badges:{isBoosted:!1},redeemChannelsText:"",cashbackPercentage:0,oldCashbackPercentage:0};function eo(e){let{t:r}=(0,P.useTranslation)("_cashback"),{hooks:t}=(0,T.useDealsContext)(),{exchangeRates:a}=t.useUserCurrencyInfo();return(0,_.useMemo)(()=>{if(!e)return en;let t={isBoosted:e.tags?.includes(K.Boosted)??!1},s=Q(e.redeemChannels,r),{cashbackPercentage:n,oldCashbackPercentage:o}=J(e,a);return{badges:t,redeemChannelsText:s,cashbackPercentage:n,oldCashbackPercentage:o}},[e,a,r])}var ei=e.i(350065),el=e.i(964913);function ec({isSmall:e,showText:r=!0}){let{t}=(0,P.useTranslation)("_cashback");return(0,v.jsxs)("span",{className:(0,el.cn)("inline-flex items-center justify-center gap-[2px] rounded-[40px] bg-[linear-gradient(90deg,#FF512F_0%,#F09819_100%)] shadow-[0px_1px_2px_0px_#00000033] text-core-neutral-0 shrink-0",r?"px-[8px]":"px-0",r?"py-[1px] md:py-[1.5px]":"py-0",r?(0,el.cn)("w-[73px]",e?"md:w-[73px]":"md:w-[81px]"):"w-[18px]",r?(0,el.cn)("h-[17px]",e?"md:h-[17px]":"md:h-[21px]"):"h-[18px]",!r&&"min-w-[18px] min-h-[18px]"),children:[(0,v.jsx)(ei.FcFlameIcon,{theme:"white",className:r?"h-[10px] w-[10px] md:h-[12px] md:w-[12px]":"h-[12px] w-[12px]"}),r&&(0,v.jsx)("span",{className:"m-0 text-[10px] md:text-[12px] font-medium capitalize leading-none",children:t("tags.boosted")})]})}function ed({className:e,animation:r="none",children:t}){return(0,v.jsx)("div",{"aria-hidden":!0,className:(0,el.cn)("relative overflow-hidden rounded-[8px] bg-core-greyBlue-600","breathe"===r?"animate-skeleton-breathe motion-reduce:animate-none":"after:absolute after:inset-0 after:-translate-x-full after:animate-shimmer motion-reduce:after:animate-none after:bg-[linear-gradient(90deg,rgba(255,255,255,0)_0,rgba(255,255,255,0.05)_20%,rgba(255,255,255,0.1)_60%,rgba(255,255,255,0))] after:content-['']",e),children:t?(0,v.jsx)("span",{className:"invisible",children:t}):null})}e.s(["BoostedBadge",0,ec],220827),e.s(["Skeleton",0,ed],298067);let ep="m-0 flex w-full cursor-pointer appearance-none items-center gap-[12px] rounded-[4px] border-0 bg-transparent p-0 [text-align:initial] hover:opacity-80";function eu({cashbackOffer:e,giftCardOffer:r,onClick:t,source:a,position:s}){let{t:n}=(0,w.useTranslation)("_cashback"),{hooks:o,actions:i}=(0,T.useDealsContext)(),{numberToCompactCurrencyStringIn:l}=M(),c=V(e),d=eo(r),{ref:p}=o.useOfferImpressionTracker(!!e,{offer:e,source:a,position:s}),{trackOfferInteraction:u}=o.useOfferInteractionTracker({offer:e,source:a,position:s}),x=(0,_.useCallback)(()=>{e&&u({elementId:e.id.toString(),elementName:e.slug,event:E.UserInteractionEvent.CLICK,target:E.UserInteractionTarget.OFFER_CARD}),t?.()},[e,u,t]),m=(0,_.useCallback)(()=>{r&&i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_OFFER_CLICKED,{source:a,offerId:r.id,position:s,offerBrandName:r.brandName}),t?.()},[r,a,s,i,t]);if(!e&&!r)return(0,v.jsxs)("div",{className:"flex h-[44px] w-full items-center gap-[12px]",children:[(0,v.jsx)(ed,{className:"h-[44px] w-[44px] shrink-0 rounded-[4px]"}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col gap-[6px]",children:[(0,v.jsx)(ed,{className:"h-[14px] w-[70%] rounded-[4px]"}),(0,v.jsx)(ed,{className:"h-[13px] w-[40%] rounded-[4px]"})]})]});if(e){let r=c.isPercentage?`${I(c.normalAmount)}%`:`${c.normalAmount}`,t=c.promotion?.strikeAmount!=null?c.promotion?.isPercentageStrike?`${I(c.promotion.strikeAmount)}%`:`${c.promotion.strikeAmount}`:null;return(0,v.jsxs)("button",{type:"button",className:`${ep} h-auto min-h-[44px]`,ref:p,onClick:x,children:[(0,v.jsx)("img",{className:"h-[44px] w-[44px] shrink-0 rounded-[4px] object-cover",src:e.thumbnail,alt:"",loading:"lazy"}),(0,v.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[(0,v.jsx)("p",{className:"m-0 truncate text-[14px] font-semibold text-core-neutral-0",title:e.name,children:e.name}),(0,v.jsxs)("div",{className:"flex items-center gap-[4px]",children:[c.isLimitedDeal&&(0,v.jsx)(ec,{isSmall:!0,showText:!1}),(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-[4px]",children:[(0,v.jsxs)(N.Typography,{as:"p",variant:"xs",weight:"bold",color:"core.greyBlue.25",children:[c.showUpTo&&(0,v.jsxs)(N.Typography,{as:"span",variant:"xs",children:[n("offerAmount.upTo")," "]}),r,(0,v.jsxs)(N.Typography,{as:"span",variant:"xs",children:[" ",n("cashback")]})]}),t&&(0,v.jsx)("p",{className:"m-0 text-[12px] font-normal leading-[150%] text-core-greyBlue-200 line-through",children:t})]})]})]})]})}if(r){let e=X(r,l),t=d.oldCashbackPercentage>0&&d.cashbackPercentage>d.oldCashbackPercentage;return(0,v.jsxs)("button",{type:"button",className:`${ep} h-auto min-h-[44px]`,onClick:m,children:[(0,v.jsx)("img",{className:"h-[25px] w-[44px] shrink-0 rounded-[4px] object-cover [aspect-ratio:16/9]",src:r.assets.bannerImageUrl,alt:"",loading:"lazy"}),(0,v.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[(0,v.jsx)("p",{className:"m-0 truncate text-[14px] font-semibold text-core-neutral-0",title:r.brandName,children:r.brandName}),(0,v.jsxs)("div",{className:"flex items-center gap-[4px]",children:[d.badges.isBoosted&&(0,v.jsx)(ec,{isSmall:!0,showText:!1}),d.cashbackPercentage>0&&(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-[4px]",children:[(0,v.jsx)("div",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full bg-core-neutral-0",children:(0,v.jsx)(S.FcLightningIcon,{boxSize:"14px",className:"text-core-freecashGreen-700"})}),(0,v.jsxs)(N.Typography,{as:"p",variant:"xs",weight:"bold",color:"core.greyBlue.25",children:[d.cashbackPercentage,"%",(0,v.jsxs)(N.Typography,{as:"span",variant:"xs",children:[" ",n("cashback")]})]}),t&&(0,v.jsxs)("p",{className:"m-0 text-[12px] font-normal leading-[150%] text-core-greyBlue-200 line-through",children:[d.oldCashbackPercentage,"%"]})]}),e&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"mx-[5px] h-[4px] w-[4px] shrink-0 rounded-full bg-core-greyBlue-200"}),(0,v.jsx)("p",{className:"m-0 whitespace-nowrap text-[12px] font-normal text-core-greyBlue-25",children:e})]})]})]})]})}return null}e.s(["CashbackOfferDetailsModal",()=>rk],846987);var ex=e.i(756438),em=e.i(540199),eh=e.i(54513),ef=e.i(734829);function eC({coupons:e}){let{t:r}=(0,P.useTranslation)("_cashback");if(!e?.length)return null;let t=(0,A.pickBestCouponDiscount)(e),a=t?r("tags.codeWithValue",{value:t}):r("tags.code");return(0,v.jsx)("span",{className:"inline-flex h-auto w-fit items-center justify-center rounded-[100px] bg-core-freecashGreen-600 px-[8px] py-[4px] text-core-greyBlue-900",children:(0,v.jsx)("span",{className:"m-0 text-[10px] font-medium normal-case leading-none",children:a})})}e.s(["CodeBadge",0,eC],917832),e.s(["BonusTag",()=>ek],550598);var eg=e.i(704503);e.s(["useNextActivationJourneyMilestone",()=>eE],730243),e.s(["useActivationJourneys",()=>e_],490220);var eb=e.i(266027),ey=e.i(291576),ej=e.i(424251),ev=e.i(789569),eN=e.i(933818);function e_({enabled:e=!0,fetchConfig:r}={}){let t,a=(0,T.useDealsContextOptional)(),s=(a?.hooks.useIsLoggedIn??(()=>void 0))(),n=r??a?.fetchConfig;if(!n)throw Error("useActivationJourneys: render inside <DealsProvider> or pass `fetchConfig` explicitly");let o=(0,ev.createActivationJourneysApi)({fetchConfig:n});return(0,eb.useQuery)({...(t={activationJourneys:o},(0,eN.queryOptions)({queryKey:["activation-journeys"],queryFn:()=>t.activationJourneys.getActivationJourneys()})),retry:ej.retryTransientOnly,retryDelay:e=>(0,ey.jitteredBackoff)(e),enabled:e&&!1!==s,select:e=>({cashback:e.cashback&&{...e.cashback,domain:"cashback",milestones:e.cashback.milestones.map(e=>({...e,domain:"cashback"}))},giftCard:e.giftCard&&{...e.giftCard,domain:"giftCard",milestones:e.giftCard.milestones.map(e=>({...e,domain:"giftCard"}))},priceComparison:e.priceComparison?{...e.priceComparison,domain:"priceComparison",milestones:e.priceComparison.milestones.map(e=>({...e,domain:"priceComparison"}))}:null})})}var ew=((s={}).ACTIVE="ACTIVE",s.EXPIRED="EXPIRED",s.EXPIRED_FROZEN="EXPIRED_FROZEN",s.COMPLETED="COMPLETED",s.COMPLETED_EXPIRED="COMPLETED_EXPIRED",s),eS=((n={}).NOT_STARTED="NOT_STARTED",n.PENDING="PENDING",n.COMPLETED="COMPLETED",n);function eE(e,{enabled:r=!0,fetchConfig:t}={}){let{data:a}=e_({enabled:r,fetchConfig:t}),s=a?.[e];if(!s||s.status!==ew.ACTIVE)return null;let n=s.milestones.find(e=>e.status===eS.NOT_STARTED);return n?{amount:n.reward,currency:s.bonusCurrency}:null}function ek(e){let{iconSize:r="10px",fontSize:t="10px",fontWeight:a="medium",lineHeight:s=1,px:n="8px",py:o="4px",gap:i="4px"}=e,{numberToCurrencyStringIn:l}=M(),{featureFlags:c}
244=(0,T.useDealsContext)(),d="offer"in e&&!!e.offer,p=!0===c.activationJourneysEnabled,u=eE(d?"cashback":"giftCard",{enabled:p});if(!p||!u)return null;let x=l(u.amount,u.currency);return(0,v.jsx)("span",{className:"inline-flex h-auto w-fit items-center justify-center rounded-[100px] bg-highlight-orange-300 text-core-greyBlue-900",style:{paddingLeft:n,paddingRight:n,paddingTop:o,paddingBottom:o},children:(0,v.jsxs)("span",{className:"flex items-center",style:{gap:i},children:[d?(0,v.jsx)(eg.FcMoneyBagIcon,{boxSize:r,className:"text-core-greyBlue-900"}):(0,v.jsx)(S.FcLightningIcon,{boxSize:r,className:"text-core-greyBlue-900"}),(0,v.jsxs)("span",{className:"m-0 normal-case",style:{fontSize:t,fontWeight:a,lineHeight:s},children:["+",x]})]})})}e.s(["ActivationJourneyStatus",()=>ew,"MilestoneStatus",()=>eS],320163);var eT=e.i(518049);function eA(e){let r=new Date(e).getTime(),t=r-Date.now();return Number.isNaN(r)||t<=0?{days:0,hours:0,minutes:0,isExpired:!0}:{days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),isExpired:!1}}function eI({targetDate:e,borderRadius:r}){let{t}=(0,P.useTranslation)("_cashback"),[a,s]=(0,_.useState)(()=>eA(e));(0,_.useEffect)(()=>{let r=()=>s(eA(e));r();let t=setInterval(r,6e4);return()=>clearInterval(t)},[e]);let n=(0,_.useMemo)(()=>!a.isExpired&&(a.days||a.hours||a.minutes)?a.days>0?t("tags.countdownDaysLeft",{count:a.days}):a.hours>0?t("tags.countdownHoursLeft",{count:a.hours}):t("tags.countdownMinutesLeft",{count:a.minutes}):null,[a,t]);return n?(0,v.jsxs)("span",{className:(0,el.cn)("flex h-auto items-center justify-center gap-[3px] px-[8px] py-[4px] text-core-greyBlue-900","bg-[linear-gradient(46deg,theme(colors.core.gold.500)_0%,theme(colors.core.yellow.200)_39%,theme(colors.core.gold.500)_99%,theme(colors.highlight.orange.100)_100%)]",!r&&"rounded-bl-[12px]"),style:r?{borderRadius:r}:void 0,children:[(0,v.jsx)(eT.FcTimerIcon,{boxSize:"14px"}),(0,v.jsx)("span",{className:"m-0 text-[11px] font-medium capitalize leading-none",children:n})]}):null}function eR({offer:e}){let{t:r}=(0,w.useTranslation)("_cashback"),t=V(e);if(!e)return(0,v.jsxs)("div",{children:[(0,v.jsx)(ed,{className:"mx-[-16px] mt-[-16px] mb-[12px] h-[260px]"}),(0,v.jsx)(ed,{className:"h-[20px] w-1/2 rounded-[4px]"}),(0,v.jsx)(ed,{className:"mt-[8px] h-[16px] w-[30%] rounded-[4px]"})]});let a=t.isPercentage?`${I(t.normalAmount)}%`:`${t.normalAmount}`,s=t.promotion?.strikeAmount!=null?t.promotion?.isPercentageStrike?`${I(t.promotion.strikeAmount)}%`:`${t.promotion.strikeAmount}`:null,n=t.isLimitedDeal;return(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{className:"relative mx-[-16px] mt-[-16px] mb-[12px] h-[260px]",children:[(0,v.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,v.jsx)("img",{src:e.thumbnailLarge??e.thumbnail,alt:"",className:"h-full w-full object-cover object-center",loading:"lazy"}),(0,v.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-[80px] bg-[linear-gradient(to_bottom,transparent,theme(colors.core.greyBlue.900))]"})]}),n&&t.promotion?.hasCountdown&&t.promotion.endDate&&(0,v.jsx)("div",{className:"absolute left-[16px] top-[calc(16px+var(--safe-area-top,0px))] z-[2]",children:(0,v.jsx)(eI,{targetDate:t.promotion.endDate,borderRadius:"12px"})}),(0,v.jsx)("div",{className:"absolute bottom-[16px] left-[16px] z-[2] h-[59px] w-[59px] overflow-hidden rounded-[12px] bg-core-neutral-0",children:(0,v.jsx)("img",{src:e.thumbnail,alt:"",className:"h-full w-full rounded-[6px] object-cover"})})]}),(0,v.jsx)(N.Typography,{as:"p",variant:"md",truncate:!0,weight:"semibold",color:"core.neutral.0",children:e.name}),(0,v.jsxs)("div",{className:"flex items-center justify-between gap-[8px]",children:[(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-[4px]",children:[t.showUpTo&&(0,v.jsx)("p",{className:"m-0 text-[10px] font-normal leading-none text-core-neutral-0 md:text-[12px]",children:r("offerAmount.upTo")}),(0,v.jsx)("p",{className:"m-0 text-[12px] font-semibold leading-none text-core-neutral-0 md:text-[14px]",children:a}),s&&(0,v.jsx)("p",{className:"m-0 text-[12px] font-normal leading-none text-core-greyBlue-100 line-through md:text-[14px]",children:s})]}),(0,v.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,v.jsx)(ek,{offer:e}),(0,v.jsx)(eC,{coupons:e.coupons}
244)]})]}),!e.isAvailable&&(0,v.jsxs)("div",{className:"mt-[12px] flex items-start gap-[12px] rounded-[8px] border border-solid border-core-neutral-0-A10 bg-[linear-gradient(180deg,rgba(255,215,13,0.16)_0%,transparent_100%)] p-[12px]",children:[(0,v.jsx)(ef.FcWarningIcon,{boxSize:"20px",flexShrink:0,className:"text-core-gold-500"}),(0,v.jsxs)("div",{children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:r("offerModal.unavailableTitle")}),(0,v.jsx)("p",{className:"m-0 mt-[4px] text-[13px] text-core-greyBlue-50",children:r("offerModal.disabledOfferInfo")})]})]})]})}e.s(["LimitedDealBadge",0,eI],418160);var eO=e.i(891536),eD=e.i(426888);function eL(){let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`}var eB=e.i(344298),eP=e.i(345771),eM=e.i(278143),eF=e.i(375953),eH=e.i(412153),eV=e.i(936021);function eG({isOpen:e,onContinue:r,onClose:t,offer:a,isGoldCta:s,ctaText:n}){let o=(0,v.jsx)(eU,{offer:a,isGoldCta:s,ctaText:n,onContinue:r});return(0,v.jsx)(em.DealsModal,{variant:"bottomsheet",sheetUpTo:"phone",open:e,onClose:t,size:"md",surface:"base",children:o})}function eU({offer:e,isGoldCta:r,ctaText:t,onContinue:a}){let{t:s}=(0,w.useTranslation)("_cashback"),{hooks:n}=(0,T.useDealsContext)(),{country:o}=n.useUserCountry();return(0,v.jsxs)("div",{className:"relative flex flex-col items-center gap-[16px] overflow-hidden p-[24px]",children:[(0,v.jsx)("div",{className:"pointer-events-none absolute left-1/2 top-[110px] z-0 h-[128px] w-[128px] -translate-x-1/2 rounded-full bg-[#01D676] blur-[175px]"}),(0,v.jsxs)("div",{className:"z-[1] flex flex-col items-center gap-[16px] pt-[8px]",children:[(0,v.jsx)("div",{className:"flex h-[80px] w-[80px] items-center justify-center rounded-[16px] bg-[#287DFA1A] p-[16px]",children:(0,v.jsx)("img",{className:"h-full w-full rounded-[8px] object-cover",src:e?.thumbnail,alt:""})}),(0,v.jsx)(N.Typography,{as:"p",variant:"md",align:"center",weight:"medium",color:"core.neutral.0",children:s("offerModal.goTo",{brandName:e?.name??""})})]}),(0,v.jsxs)("div",{className:"z-[1] flex w-full flex-col gap-[16px] rounded-[12px] bg-core-greyBlue-500 p-[16px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",color:"core.greyBlue.25",children:s("offerModal.ensureCashbackWorks")}),(0,v.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,v.jsx)(e$,{icon:(0,v.jsx)(eM.FcCookieIcon,{boxSize:"20px",color:"#94DFFC"}),label:(0,v.jsx)(eP.Trans,{t:s,i18nKey:"_cashback:offerModal.acceptCookies"})}),(0,v.jsx)(e$,{icon:(0,v.jsx)(eF.FcShieldCheckIcon,{boxSize:"20px",color:"#94DFFC"}),label:(0,v.jsx)(eP.Trans,{t:s,i18nKey:"_cashback:offerModal.disableAdBlocker"})}),(0,v.jsx)(e$,{icon:(0,v.jsx)(eH.FcTagIcon,{boxSize:"20px",color:"#94DFFC"}),label:(0,v.jsx)(eP.Trans,{t:s,i18nKey:"_cashback:offerModal.useFreecashCodesOnly"})})]})]}),(0,v.jsx)("div",{className:"z-[1] mt-[8px]",children:(0,v.jsx)(eB.Button,{...r?{variant:"special"}:{variant:"primary"},size:"lg",width:"full",onClick:a,children:t??s("offerModal.continue")})}),(0,v.jsxs)("div",{className:"z-[1] flex items-center gap-[8px]",children:[(0,v.jsx)(eV.FcBellIcon,{boxSize:"14px",className:"text-core-greyBlue-25"}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:s("offerModal.trackingNotification")})]}),(0,v.jsx)("p",{className:"z-[1] m-0 text-[12px] font-normal text-core-greyBlue-100",children:(0,v.jsx)(eP.Trans,{t:s,i18nKey:"_cashback:offerModal.cashbackTermsApply",components:{cLink:(0,v.jsx)("a",{href:(0,A.getCashbackPolicyUrl)(o),className:"text-core-freecashGreen-500"})}})})]})}function e$({icon:e,label:r}){return(0,v.jsxs)("div",{className:"flex items-center gap-[12px]",children:[(0,v.jsx)("div",{className:"flex h-[40px] w-[40px] min-w-[40px] items-center justify-center rounded-[10px] bg-[#059FDB1A]",children:e}),(0,v.jsx)("p",{className:"m-0 text-[14px] font-normal text-core-greyBlue-25 [&_strong]:font-semibold [&_strong]:text-core-neutral-0",children:r})]})}function ez({offer:e,source:r,compact:t,trackImpression:a=!0}){let{t:s}=(0,w.useTranslation)("_cashback"),{hooks:n}=(0,T.useDealsContext)(),{ref:o}=n.useOfferImpressionTracker(!!e&&a,{offer:e,source:r?.name,position:r?.position??0,isOfferOnModal:!0}),{trackOfferInteraction:i}=n.useOfferInteractionTracker({offer:e,source:r?.name,position:r?.position??0}),{shouldShowPopup:l,recordPopupShown:c}=function(){let{hooks:e}=(0,T.useDealsContext)(),{userSettings:r,updateUserSettings:t}=e.useUserSettings();return{shouldShowPopup:(0,_.useCallback)(()=>{let e=r.cashbackStartOfferPopupState;return!e?.monthKey||e.monthKey!==eL()||(e.showCount??0)<3},[r.cashbackStartOfferPopupState]),recordPopupShown:(0,_.useCallback)(()=>{let e=r.cashbackStartOfferPopupState,a=eL();t({cashbackStartOfferPopupState:{showCount:e?.monthKey===a?(e?.showCount??0)+1:1,monthKey:a}})},[r.cashbackStartOfferPopupState,t])}}(),{redirect:d}=function(){let{actions:e,hooks:r}=(0,T.useDealsContext)(),{environment:t}=r.useAppEnvironment();return{redirect:(0,_.useCallback)((r,a={})=>{let s=r.url||`/o/v2/${r.slug}`,n=new URLSearchParams(s.split("?")[1]||"");if(a.source&&n.set("source",a.source),void 0!==a.position&&n.set("offerPosition",String(a.position)),a.isClickedWithoutOpen&&n.set("isClickedWithoutOpen","true"),s=`${s.split("?")[0]}?${n.toString()}`,document.cookie=`lastClickedOfferId=${r.id};path=/`,"android"===t)window.location.href=s;else{let e=window.open(s,"_blank","noopener");e?.focus&&e.focus()}e.trackAmplitudeEvent(k.DEALS_EVENTS.OFFER_STARTED,{source:a.source,offerClickSource:a.source,offerPosition:a.position,isClickedWithoutOpen:a.isClickedWithoutOpen??!1}),e.sendGTMEvent({event:"offer_started"})},[e,t])}}(),p=V(e),[u,x]=(0,_.useState)(!1),m=(0,_.useRef)(0),h=(0,_.useMemo)(()=>({source:r?.name,position:r?.position}),[r?.name,r?.position]),f=(0,_.useCallback)(r=>{if(r.stopPropagation(),!e||!e.isAvailable)return;let t=Date.now();t-m.current<1e3||(m.current=t,i({elementId:e.id.toString(),elementName:e.slug,event:E.UserInteractionEvent.CLICK,target:E.UserInteractionTarget.OFFER_START_BUTTON}),l()?(c(),x(!0)):d(e,h))},[e,h,i,l,c,d]),C=(0,_.useCallback)(()=>{e&&(x(!1),d(e,h))},[e,h,d]),g=(0,_.useCallback)(()=>{x(!1)},[]);if(!e)return(0,v.jsxs)("div",{children:[(0,v.jsx)(ed,{className:"h-[48px] w-full rounded-[8px]"}),(0,v.jsx)(ed,{className:"mx-auto mt-[8px] h-[14px] w-[70%] rounded-[4px]"})]});let b=!e.isAvailable,y=!!e.cashbackPromotion,j=p.isPercentage?`${I(p.normalAmount)}%`:`${p.normalAmount}`,S=s(p.showUpTo?"startOfferUpTo":"startOffer",{amount:j}),A=e.displayProperties?.averageReleaseDays?s("offerAvailableInDays",{days:e.displayProperties.averageReleaseDays}):s("offerAvailableInDaysFallback");return(0,v.jsxs)("div",{ref:o,"data-walkthrough":"cashback-offer-details-cta",children:[(0,v.jsx)(eB.Button,{...y&&!b?{variant:"special"}:{variant:"primary"},size:"lg",width:"full",onClick:f,isDisabled:b,children:S}),!t&&(0,v.jsx)("div",{className:"mt-[8px]",children:(0,v.jsxs)(N.Typography,{as:"span",variant:"micro",color:"core.greyBlue.25",children:[A," ",(0,v.jsx)(eD.PopoverTooltip,{label:s("offerAvailableInDaysTooltip"),placement:"bottom-start",maxW:"80vw",children:(0,v.jsx)(eO.FcInfoIcon,{boxSize:"14px",className:"text-core-greyBlue-25"})})]})}),(0,v.jsx)(eG,{isOpen:u,onContinue:C,onClose:g,offer:e,isGoldCta:y&&!b,ctaText:S})]})}function eK({tasks:e}){let{t:r}=(0,w.useTranslation)("_cashback"),{coinsToCurrencyString:t}=M();return e.length?(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{className:"mb-[12px] flex items-center gap-[8px]","data-stagger":!0,children:[(0,v.jsx)(eg.FcMoneyBagIcon,{boxSize:"20px",className:"text-core-freecashGreen-500"}),(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:r("offerModal.cashbackDeals")})]}),(0,v.jsx)("div",{className:"flex flex-col gap-[8px]","data-stagger-group":!0,children:e.map(e=>(0,v.jsx)("div",{className:"rounded-[8px] border-[0.5px] border-solid border-core-greyBlue-300 bg-core-greyBlue-500 p-[8px]",children:(0,v.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,v.jsx)("div",{className:"flex h-[28px] min-w-[78px] items-center justify-center rounded-[6px] bg-[#01D6761A] px-[8px]",children:(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"semibold",color:"core.freecashGreen.500",children:e.type===E.OfferTaskType.PERCENTAGE?`${I((0,A.convertCoinsToPercentage)(e.coins))}%`:t(e.coins)})}),(0,v.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.neutral.0",children:e.title}),e.hint&&(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.50",children:e.hint})]})]})},e.id))})]}):null}var eW=e.i(56457),eZ=e.i(999723),eq=e.i(23106),eY=e.i(562651),eJ=e.i(945919),eQ=e.i(530855),eX=e.i(586135);function e1(e){if(!e)return"";let r=(0,eX.parseISO)(e);return(0,eQ.isValid)(r)?(0,eJ.format)(r,"MMMM d, yyyy"):e}function e0(e){if(!e)return"N/A";let r=(0,eX.parseISO)(e);return(0,eQ.isValid)(r)?(0,eJ.format)(r,"MMM d, yyyy · HH:mm"):"N/A"}function e5({coupons:e}){let{t:r}=(0,w.useTranslation)("_cashback"),t=(0,eY.useCopyToClipboard)();return e?.length?(0,v.jsxs)("div",{className:"mt-[20px]",children:[(0,v.jsxs)("div",{className:"mb-[12px] flex items-center gap-[8px]","data-stagger":!0,children:[(0,v.jsx)(eW.FcPercentIcon,{boxSize:"16px",className:"text-core-freecashGreen-500"}),(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:r("offerModal.couponCodes")})]}),(0,v.jsx)("div",{className:"grid grid-cols-1 gap-[8px]","data-stagger-group":!0,children:e.map((e,a)=>{let s=e.endDate?e1(e.endDate):null;return(0,v.jsx)("div",{className:"rounded-[8px] border-[0.5px] border-solid border-core-greyBlue-300 bg-core-greyBlue-500 p-[8px]",children:(0,v.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,v.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,v.jsx)("p",{className:"m-0 text-[16px] font-bold text-core-neutral-0 md:text-[20px]",children:e.name}
244),s&&(0,v.jsx)("div",{className:"w-fit rounded-[40px] bg-border-300 px-[8px] py-[2px]",children:(0,v.jsx)("p",{className:"m-0 whitespace-nowrap text-[12px] font-medium text-[#D1B3FF]",children:r("offerModal.until",{date:s})})}),e.description&&(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:e.description})]}),(0,v.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",color:"core.freecashGreen.500",children:"✓"}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.neutral.0",children:r("offerModal.compatibleWithCashback")})]}),(0,v.jsx)("div",{className:"rounded-[8px] border border-dashed border-core-greyBlue-200 bg-core-greyBlue-900 py-[8px] pl-[12px] pr-[8px]",children:(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",weight:"medium",color:"core.neutral.0",children:e.coupon}),(0,v.jsx)(eq.IconButton,{icon:eZ.Copy,"aria-label":r("copy.copy"),shape:"square",size:"sm",onClick:()=>{var a;t(a=e.coupon,{successTitle:r("copy.copied",{coupon:a}),duration:2e3})}})]})})]})},`${e.coupon}-${a}`)})})]}):null}e.s(["formatDateWithTime",0,e0,"formatLongDate",0,e1,"formatShortDate",0,function(e){let r=e instanceof Date?e:new Date(e);return isNaN(r.getTime())?"":(0,eJ.format)(r,"d MMM, yyyy")}],848091);let e2="rounded-[16px] border border-solid border-core-greyBlue-300 bg-core-greyBlue-500 p-[16px]",e4="m-0 text-[14px] font-semibold text-core-neutral-0",e8="m-0 text-[12px] font-normal text-core-greyBlue-25",e9="text-[12px] font-normal text-core-greyBlue-25";function e6({offer:e}){let{t:r}=(0,w.useTranslation)("_cashback"),t=!e.tags?.includes(E.OfferTag.ALMEDIA_CASHBACK_INQUIRY_ALLOWED);return(0,v.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,v.jsx)("div",{className:e2,children:(0,v.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,v.jsx)("p",{className:e4,children:r("offerTerms.terms.title")}),(0,v.jsx)("div",{className:"text-[12px] text-core-greyBlue-25 [&_h1]:m-0 [&_h1]:font-semibold [&_h2]:m-0 [&_h2]:font-semibold [&_h3]:m-0 [&_h3]:font-semibold [&_h4]:m-0 [&_h4]:font-semibold [&_h5]:m-0 [&_h5]:font-semibold [&_h6]:m-0 [&_h6]:font-semibold [&_a]:text-core-freecashGreen-500 [&_a]:underline [&_p]:m-0 [&_li]:list-disc [&_ul]:m-[1em] [&_ul]:mt-[0.75rem] [&_ul]:pl-[4px]",dangerouslySetInnerHTML:{__html:e.requirements}})]})}),t&&(0,v.jsx)("div",{className:e2,children:(0,v.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,v.jsx)("p",{className:e4,children:r("offerTerms.cashbackInquiryNotSupported.title")}),(0,v.jsx)("p",{className:e8,children:r("offerTerms.cashbackInquiryNotSupported.description")})]})}),(0,v.jsx)("div",{className:e2,children:(0,v.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,v.jsx)("p",{className:e4,children:r("offerTerms.importantNotes.title")}),(0,v.jsx)("p",{className:e8,children:r("offerTerms.importantNotes.description")}),(0,v.jsxs)("ul",{className:"m-0 mt-[4px] list-disc pl-[4px] [&>li:not(:first-child)]:mt-[4px]",children:[(0,v.jsx)("li",{className:e9,children:r("offerTerms.importantNotes.note1")}),(0,v.jsx)("li",{className:e9,children:r("offerTerms.importantNotes.note2")}),(0,v.jsx)("li",{className:e9,children:r("offerTerms.importantNotes.note3")}),(0,v.jsx)("li",{className:e9,children:r("offerTerms.importantNotes.note4")})]}),(0,v.jsx)("p",{className:"m-0 text-[12px] font-semibold text-core-greyBlue-25",children:r("offerTerms.importantNotes.info")})]})})]})}var e3=e.i(884622),e7=e.i(189355),re=e.i(555897),rr=e.i(996750),rt=e.i(767660),ra=e.i(764084),rs=e.i(464663);let rn={paid:"bg-core-freecashGreen-25-A10 px-[8px] py-[2px] rounded-[100px]",pending:"bg-highlight-orange-25-A10 px-[8px] py-[2px] rounded-[100px]",declined:"bg-core-red-25-A10 px-[8px] py-[2px] rounded-[100px]"},ro={paid:"text-core-freecashGreen-500",pending:"text-highlight-orange-300",declined:"text-core-red-400"};function ri({offer:e,activity:r,onContactSupport:t}){let{t:a}=(0,w.useTranslation)("_cashback"),{coinsToCurrencyString:s}=M(),n=r.rejected?"declined":r.pending?"pending":"paid",o="pending"===n,i="declined"===n,l="paid"===n;return(0,v.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,v.jsxs)("div",{className:"flex items-center gap-[12px]",children:[(0,v.jsx)("img",{src:e.thumbnail,alt:"",className:"h-[48px] w-[48px] rounded-[4px] object-cover"}),(0,v.jsx)(N.Typography,{as:"p",variant:"xl",weight:"bold",color:"core.neutral.0",children:e.name})]}),(0,v.jsx)("div",{className:"m-0 w-full border-b border-solid border-[inherit] opacity-60"}),(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",color:"core.neutral.0",children:a("offerModal.cashbackAmount")}),(0,v.jsx)(N.Typography,{as:"p",variant:"sm",color:"core.neutral.0",children:s(r.coins??0)})]}),(0,v.jsx)("div",{className:"m-0 w-full border-b border-solid border-[inherit] opacity-60"}),(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",color:"core.neutral.0",children:a("offerModal.status")}),(0,v.jsx)("div",{className:rn[n],children:(0,v.jsxs)("p",{className:(0,el.cn)("m-0 text-[12px] font-medium",ro[n]),children:["paid"===n&&a("offerModal.paid"),"pending"===n&&a("offerModal.pending"),"declined"===n&&a("offerModal.declined")]})})]}),(0,v.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,v.jsx)(rl,{label:a("offerModal.purchaseDate"),description:a("offerModal.purchaseDetected",{date:e1(r.date??r.clickDate)}),tooltipText:a("offerModal.purchaseDateTooltip"),isActive:!1,isLast:!1,lineColorClass:"bg-core-freecashGreen-500",icon:(0,v.jsx)(ra.FcBareCheckIcon,{boxSize:"14px",color:"black"}),iconBgClass:"bg-core-freecashGreen-500",iconBorderColorClass:"border-core-freecashGreen-500"}),(0,v.jsx)(rl,{label:a("offerModal.cashbackPending"),tooltipText:a("offerModal.cashbackPendingTooltip"),description:o&&r.pendingUntil?a("offerModal.purchaseTrackedWithDate",{date:e1(r.pendingUntil)}):a("offerModal.purchaseTrackedWithoutDateV2"),isActive:o,isLast:!1,lineColorClass:o?"bg-core-greyBlue-200":i?"bg-core-red-400":"bg-core-freecashGreen-500",icon:o?(0,v.jsx)("div",{className:"h-[6px] w-[6px] rounded-full bg-core-freecashGreen-500"}):(0,v.jsx)(ra.FcBareCheckIcon,{boxSize:"14px",color:"black"}),iconBgClass:o?"bg-transparent":"bg-core-freecashGreen-500",iconBorderColorClass:"border-core-freecashGreen-500"}),l&&(0,v.jsx)(rl,{label:a("offerModal.cashbackPaid"),description:a("offerModal.purchasePaidWithDate"),tooltipText:a("offerModal.cashbackPaidTooltip"),isActive:!0,isLast:!0,lineColorClass:"bg-core-freecashGreen-500",icon:(0,v.jsx)(ra.FcBareCheckIcon,{boxSize:"14px",color:"black"}),iconBgClass:"bg-core-freecashGreen-500",iconBorderColorClass:"border-core-freecashGreen-500"}),o&&(0,v.jsx)(rl,{label:a("offerModal.cashbackResult"),description:a("offerModal.purchaseUnderReview"),tooltipText:a("offerModal.cashbackResultTooltip"),isActive:!1,isLast:!0,lineColorClass:"bg-core-greyBlue-200",icon:(0,v.jsx)("div",{className:"h-[6px] w-[6px] rounded-full bg-transparent"}),iconBgClass:"bg-transparent",iconBorderColorClass:"border-core-greyBlue-200"}),i&&(0,v.jsx)(rl,{label:a("offerModal.cashbackDeclined"),description:a("offerModal.purchaseDeclined"),tooltipText:a("offerModal.cashbackDeclinedTooltip"),isActive:!0,isLast:!0,lineColorClass:"bg-core-red-400",icon:(0,v.jsx)(rs.FcBareCloseIcon,{boxSize:"14px",color:"black"}),iconBgClass:"bg-core-red-400",iconBorderColorClass:"border-core-red-400"})]}),o&&(0,v.jsx)(rd,{}),!l&&(0,v.jsxs)("div",{className:"mt-2 flex flex-col gap-[8px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:a("offerModal.stillNeedHelp")}),(0,v.jsx)(eB.Button,{size:"lg",width:"full",leftIcon:rr.Headset,onClick:t,children:a("offerModal.contactSupport")})]})]})}function rl({label:e,description:r,isActive:t,isLast:a,lineColorClass:s,icon:n,iconBgClass:o,iconBorderColorClass:i,tooltipText:l}){return(0,v.jsxs)("div",{className:"relative flex items-start gap-[10px]",children:[!a&&(0,v.jsx)("div",{className:(0,el.cn)("absolute left-[7.5px] top-[16px] z-[1] h-full w-[1px]",s)}),(0,v.jsx)("div",{className:(0,el.cn)("relative z-[2] flex h-[16px] w-[16px] shrink-0 items-center justify-center rounded-full border border-solid p-0",o,i),children:n}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col gap-[4px]",children:[(0,v.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,v.jsx)("p",{className:(0,el.cn)("m-0 text-[14px]",t?"text-core-neutral-0":"text-core-greyBlue-200"),children:e}),l&&(0,v.jsx)(eD.PopoverTooltip,{label:l,children:(0,v.jsx)(eO.FcInfoIcon,{className:t?"text-core-neutral-0":"text-core-greyBlue-200",boxSize:"16px"})})]}),(0,v.jsx)("p",{className:(0,el.cn)("m-0 text-[14px] font-normal",t?"text-core-greyBlue-25":"text-core-greyBlue-200"),children:r})]})]})}let rc=[{titleKey:"faq.question1.title",answerKey:"faq.question1.answer"},{titleKey:"faq.question2.title",answerKey:"faq.question2.answer"}];function rd(){let{t:e}=(0,w.useTranslation)("_cashback");return(0,v.jsxs)("div",{className:"mt-0",children:[(0,v.jsx)("div",{className:"m-0 w-full border-b border-solid border-[inherit] opacity-60"}),(0,v.jsx)(rt.Root,{type:"multiple",children:rc.map((r,t)=>{let a=t===rc.length-1;return(0,v.jsxs)(rt.Item,{value:`faq-${t}`,className:(0,el.cn)("mb-[15px] rounded-[10px] border border-solid border-[rgba(255,255,255,0.16)]",a?"border-b-transparent":"border-b-secondary-400"),children:[(0,v.jsx)(rt.Header,{className:"m-0",children:(0,v.jsxs)(rt.Trigger,{className:"group m-0 flex h-[56px] w-full cursor-pointer appearance-none items-center justify-between border-0 bg-transparent px-[8px] py-0 text-[16px] font-medium text-core-neutral-0 outline-none transition-colors duration-200 [font-family:inherit] hover:bg-[rgba(0,0,0,0.04)]",children:[(0,v.jsx)("span",{className:"m-0",children:e(r.titleKey)}),(0,v.jsx)("span",{className:"flex shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180",children:(0,v.jsx)("svg",{viewBox:"0 0 24 24",width:"20px",height:"20px","aria-hidden":!0,focusable:"false",children:(0,v.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})})]})}),(0,v.jsx)(rt.Content,{className:(0,el.cn)("px-[8px] pt-0 text-[14px] font-medium text-highlight-grey-300",a?"pb-0":"pb-[16
244px]"),children:e(r.answerKey)})]},r.titleKey)})})]})}var rp=e.i(812497),ru=e.i(681307),rx=e.i(379620),rm=e.i(954616),rh=e.i(413107),rf=((o={}).AED="AED",o.ARS="ARS",o.AUD="AUD",o.BGN="BGN",o.BRL="BRL",o.CAD="CAD",o.CHF="CHF",o.CLP="CLP",o.CNY="CNY",o.CZK="CZK",o.DKK="DKK",o.EUR="EUR",o.GBP="GBP",o.GIP="GIP",o.HKD="HKD",o.HUF="HUF",o.IDR="IDR",o.INR="INR",o.ISK="ISK",o.JPY="JPY",o.KRW="KRW",o.MXN="MXN",o.MYR="MYR",o.NOK="NOK",o.NZD="NZD",o.PEN="PEN",o.PHP="PHP",o.PLN="PLN",o.RON="RON",o.SAR="SAR",o.SEK="SEK",o.SGD="SGD",o.THB="THB",o.TRY="TRY",o.TWD="TWD",o.USD="USD",o.VND="VND",o.ZAR="ZAR",o);let rC=(0,rx.zodToFormikSchema)(ru.z.object({orderNumber:ru.z.string().min(1),orderAmount:ru.z.coerce.number().gt(0),email:ru.z.string().min(1).email(),purchaseDate:ru.z.string().optional(),additionalComments:ru.z.string().optional(),discountCode:ru.z.string().optional(),orderCurrency:ru.z.enum(rf)})),rg="mb-[8px] block text-[14px] text-core-neutral-0",rb="box-border w-full appearance-none rounded-[6px] border border-solid border-core-greyBlue-300 bg-core-greyBlue-500 px-[16px] text-[14px] font-normal text-core-neutral-0 outline-none hover:border-highlight-purple-700 focus:border-core-greyBlue-100 focus:shadow-none [font-family:inherit]",ry="border-core-red-400 hover:border-core-red-400 focus:border-core-red-400",rj=(0,el.cn)(rb,"h-[40px]"),rv=(0,el.cn)(rb,"h-[40px]"),rN=(0,el.cn)(rb,"h-[80px] resize-y py-[8px]");function r_({offer:e,activity:r,onClose:t}){let{t:a}=(0,w.useTranslation)("_cashback"),{api:s,hooks:n}=(0,T.useDealsContext)(),{userCurrency:o}=n.useUserCurrencyInfo(),{toast:i}=(0,rh.useToast)(),{mutateAsync:l,isPending:c}=(0,rm.useMutation)({mutationFn:async e=>s.supportTickets.createSupportTicket({activityType:r.activityType,id:r.id,orderNumber:e.orderNumber,orderAmount:parseFloat(e.orderAmount),orderCurrency:e.orderCurrency,emailUsedForOrder:e.email,comments:e.additionalComments||null,discountCode:e.discountCode||null,purchaseDate:r.clickDate,screenshotUrls:[]}),onSuccess:()=>{i({title:a("offerIssueReporting.success"),status:"success"}),t()},onError:e=>{i({title:e?.message||a("offerIssueReporting.error"),status:"error"})}}),d=o?.toUpperCase()??rf.USD,p={purchaseDate:e1(r.clickDate),orderNumber:"",orderAmount:"",orderCurrency:d,email:"",additionalComments:"",discountCode:""},u=(0,_.useCallback)(async e=>{await l(e)},[l]);return(0,v.jsx)(rp.Formik,{initialValues:p,validationSchema:rC,onSubmit:u,enableReinitialize:!0,validateOnBlur:!1,children:({errors:r,touched:s})=>(0,v.jsxs)(rp.Form,{children:[(0,v.jsxs)("div",{className:"flex flex-col gap-[24px] p-[16px] md:p-[24px]",children:[(0,v.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,v.jsxs)("div",{className:"flex items-center gap-[12px] pr-[40px]",children:[(0,v.jsx)("img",{src:e.thumbnail,alt:"",className:"h-[48px] w-[48px] rounded-[4px] object-cover"}),(0,v.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",weight:"bold",color:"core.neutral.0",children:e.name}),(0,v.jsx)("p",{className:"m-0 text-core-greyBlue-25",children:a("offerIssueReporting.title")})]})]}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:a("offerIssueReporting.description")})]}),(0,v.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("label",{htmlFor:"purchaseDate",className:rg,children:a("offerIssueReporting.fields.purchaseDate")}),(0,v.jsx)(rp.Field,{as:"input",className:rj,type:"text",name:"purchaseDate",id:"purchaseDate",disabled:!0})]}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("label",{htmlFor:"orderNumber",className:rg,children:[a("offerIssueReporting.fields.orderNumber"),"*"]}),(0,v.jsx)(rp.Field,{as:"input",className:(0,el.cn)(rj,r.orderNumber&&s.orderNumber&&ry),"aria-invalid":!!(r.orderNumber&&s.orderNumber),type:"text",name:"orderNumber",id:"orderNumber",placeholder:a("offerIssueReporting.typeHere")})]}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("label",{htmlFor:"orderAmount",className:rg,children:[a("offerIssueReporting.fields.orderAmount"),"*"]}),(0,v.jsx)(rp.Field,{as:"input",className:(0,el.cn)(rj,r.orderAmount&&s.orderAmount&&ry),"aria-invalid":!!(r.orderAmount&&s.orderAmount),type:"number",step:"0.01",name:"orderAmount",id:"orderAmount",placeholder:a("offerIssueReporting.typeHere")})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("label",{htmlFor:"orderCurrency",className:rg,children:a("offerIssueReporting.fields.orderCurrency")}),(0,v.jsx)(rp.Field,{name:"orderCurrency",children:({field:e})=>(0,v.jsx)("select",{...e,className:rv,id:"orderCurrency",children:Object.values(rf).map(e=>(0,v.jsx)("option",{value:e,children:e},e))})})]}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("label",{htmlFor:"email",className:rg,children:[a("offerIssueReporting.fields.emailUsedForOrder"),"*"]}),(0,v.jsx)(rp.Field,{as:"input",className:(0,el.cn)(rj,r.email&&s.email&&ry
244),"aria-invalid":!!(r.email&&s.email),type:"email",name:"email",id:"email",placeholder:a("offerIssueReporting.typeHere")})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("label",{htmlFor:"additionalComments",className:rg,children:a("offerIssueReporting.fields.additionalComments")}),(0,v.jsx)(rp.Field,{as:"textarea",className:rN,rows:4,name:"additionalComments",id:"additionalComments",placeholder:a("offerIssueReporting.typeHere")})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("label",{htmlFor:"discountCode",className:rg,children:a("offerIssueReporting.fields.whatDiscountCodeDidYouUse")}),(0,v.jsx)(rp.Field,{as:"input",className:rj,type:"text",name:"discountCode",id:"discountCode",placeholder:a("offerIssueReporting.typeHere")})]}),(0,v.jsx)("div",{className:"rounded-[8px] border border-solid border-[#FFFFFF1A] [background:linear-gradient(90deg,rgba(255,215,13,0.16)_0%,rgba(255,215,13,0.00)_100%),#1B1C32] p-[12px]",children:(0,v.jsxs)("div",{className:"flex flex-col gap-[2px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:a("offerIssueReporting.importantNote.title")}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:a("offerIssueReporting.importantNote.description")})]})})]})]}),(0,v.jsxs)("div",{className:"sticky bottom-0 left-0 z-[5] flex w-full justify-between gap-[16px] bg-core-greyBlue-900 p-[16px]",children:[(0,v.jsx)(eB.Button,{color:"accent",size:"lg",width:"full",onClick:t,isDisabled:c,
244children:a("offerIssueReporting.cancel")}),(0,v.jsx)(eB.Button,{size:"lg",width:"full",type:"submit",isLoading:c,children:a("offerIssueReporting.submit")})]})]})})}function rw({offer:e}){let{t:r}=(0,w.useTranslation)("_cashback"),{hooks:t}=(0,T.useDealsContext)(),a=t.useIsMobile(),{coinsToCurrencyString:s}=M(),[n,o]=(0,_.useState)(null),[i,l]=(0,_.useState)(null),c=(0,_.useCallback)(()=>o(null),[]),d=(0,_.useCallback)(()=>l(null),[]),p=(0,_.useCallback)(e=>{o(e)},[]),u=(0,_.useCallback)(e=>{l(e)},[]),x=(0,_.useCallback)(()=>{l(n)},[n]);return e.activity?.length?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"flex flex-col gap-[12px]",children:e.activity.map(e=>{var t;let a,n,o=e.activityType===E.OfferActivityType.OFFER_CLICK,i=e.date??e.clickDate;return(0,v.jsxs)("div",{className:"rounded-[16px] border-[0.5px] border-solid border-core-greyBlue-300 bg-core-greyBlue-500 p-[16px]",children:[(0,v.jsxs)("div",{className:"mb-[12px] flex items-center gap-[12px]",children:[(0,v.jsx)("div",{className:"flex h-[44px] w-[44px] shrink-0 items-center justify-center rounded-[8px] bg-core-freecashGreen-25-A10 p-[10px]",children:o?(0,v.jsx)(e3.FcStoreIcon,{boxSize:"24px",className:"text-core-freecashGreen-100"}):(0,v.jsx)(e7.FcCartIcon,{boxSize:"24px",className:"text-core-freecashGreen-100"})}),(0,v.jsxs)("div",{className:"flex flex-col",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:o?r("offerModal.shopVisited"):r("offerModal.purchaseTracked")}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:e0(i)})]})]}),o?(n=(a=new Date((t=e).clickDate).getTime(),Math.max(0,Math.ceil((48-(Date.now()-a)/36e5)/24))))>0?(0,v.jsx)(N.Typography,{as:"p",variant:"micro",color:"core.greyBlue.100",children:r("offerModal.supportTicketCanBeCreatedInDays",{count:n})}):(0,v.jsx)(eB.Button,{size:"lg",width:"full",leftIcon:rr.Headset,onClick:()=>u(t),children:r("offerModal.contactSupport")}):(0,v.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",color:"core.greyBlue.25",children:e.rejected?r("offerModal.purchaseRejected"):e.pending?e.pendingUntil?r("offerModal.purchasePending",{date:e0(e.pendingUntil)}):r("offerModal.purchasePendingWithoutDate"):r("offerModal.purchaseApproved")}),(0,v.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[e.clickDate&&(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:r("offerModal.clickDate")}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.neutral.0",children:e0(e.clickDate)})]}),null!=e.coins&&(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:r("offerModal.cashbackAmount")}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.neutral.0",children:s(e.coins)})]}),(0,v.jsxs)("div",{className:"flex items-center justify-between",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:r("offerModal.status")}),e.rejected?(0,v.jsx)("div",{className:"rounded-[100px] bg-core-red-25-A10 px-[8px] py-[2px]",children:(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.red.400",children:r("offerModal.declined")})}):e.pending?(0,v.jsx)("div",{className:"rounded-[100px] bg-highlight-orange-25-A10 px-[8px] py-[2px]",children:(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"highlight.orange.300",children:r("offerModal.pending")})}):(0,v.jsx)("div",{className:"rounded-[100px] bg-core-freecashGreen-25-A10 px-[8px] py-[2px]",children:(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.freecashGreen.500",children:r("offerModal.paid")})})]})]}),(0,v.jsx)(eB.Button,{size:"lg",width:"full",leftIcon:re.Eye,onClick:()=>p(e),children:r("offerModal.viewTransaction")})]})]},e.id)})}),(0,v.jsx)(em.DealsModal,{open:null!==n,onClose:c,size:a?"full":"lg",surface:"raised",children:n&&(0,v.jsx)("div",{className:"relative",children:(0,v.jsx)("div",{className:"p-[16px] md:p-[24px]",children:(0,v.jsx)(ri,{offer:e,activity:n,onContactSupport:x})})})}),(0,v.jsx)(em.DealsModal,{open:null!==i,onClose:d,size:a?"full":"lg",surface:"raised",children:i&&(0,v.jsx)("div",{className:"relative",children:(0,v.jsx)(r_,{offer:e,activity:i,onClose:d})})})]}):(0,v.jsxs)("div",{className:"mt-6 flex flex-col items-center p-4",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"xl",weight:"semibold",color:"core.neutral.0",children:r("offerModal.noActivityYet")}),(0,v.jsx)("p",{className:"m-0 mt-[8px] text-center text-[14px] text-core-greyBlue-25",children:r("offerModal.noActivityYetDescription")})]})}function rS({offer:e}){let{t:r}=(0,w.useTranslation)("_cashback"),[t,a]=(0,_.useState)(0),s=[{label:r("offerModal.tabs.cashback")},{label:r("offerModal.tabs.terms"),"data-walkthrough":"cashback-offer-details-terms"},{label:r("offerModal.tabs.history")}];return(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{role:"tablist",className:"flex border-b border-solid !border-b-[#2A2B3D] mx-[-16px]","data-stagger":!0,children:s.map(({label:e,...r},s)=>{let n=s===t;return(0,v.jsx)("button",{type:"button",role:"tab","aria-selected":n,tabIndex:n?0:-1,onClick:()=>a(s),className:(0,el.cn)("m-0 flex cursor-pointer appearance-none items-center justify-center border-0 border-b-2 border-solid border-b-transparent bg-transparent -mb-[2px] mx-[16px] px-0 py-[12px] text-core-neutral-0 outline-none transition-all duration-200 ease-in-out focus:!border-b-core-freecashGreen-400",n&&"border-b-core-freecashGreen-400"),...r,children:e},e)})}),(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{role:"tabpanel",hidden:0!==t,className:"pt-[16px]","data-walkthrough":"cashback-offer-details-conditions",children:e?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(eK,{tasks:e.tasks}),(0,v.jsx)(e5,{coupons:e.coupons}
244)]}):(0,v.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,v.jsx)(ed,{className:"h-[48px] rounded-[8px]"}),(0,v.jsx)(ed,{className:"h-[48px] rounded-[8px]"}),(0,v.jsx)(ed,{className:"h-[48px] rounded-[8px]"})]})}),(0,v.jsx)("div",{role:"tabpanel",hidden:1!==t,className:"pt-[16px]",children:e?(0,v.jsx)(e6,{offer:e}):(0,v.jsx)(ed,{className:"h-[100px] rounded-[8px]"})}),(0,v.jsx)("div",{role:"tabpanel",hidden:2!==t,className:"pt-[16px]",children:e?(0,v.jsx)(rw,{offer:e}):(0,v.jsx)(ed,{className:"h-[100px] rounded-[8px]"})})]})]})}function rE(e){let{t:r}=(0,w.useTranslation)("_cashback"),{assetsBasePath:t}=(0,T.useDealsContext)(),{numberToCurrencyStringIn:a}=M(),s="offer"in e&&!!e.offer,n=eE(s?"cashback":"giftCard");if(!n)return null;let o=a(n.amount,n.currency,{minimumFractionDigits:2,maximumFractionDigits:2});return(0,v.jsxs)("div",{className:"relative flex w-full flex-col overflow-hidden rounded-[12px] border-[0.5px] border-solid border-core-neutral-0-A10 bg-core-greyBlue-500 p-[12px] before:pointer-events-none before:absolute before:bottom-[-40px] before:left-[10px] before:h-[70px] before:w-[70px] before:rounded-full before:bg-highlight-orange-400 before:blur-[70px] before:content-['']",children:[(0,v.jsxs)("div",{className:"relative mb-[12px] flex items-center gap-[4px] self-start rounded-[999px] bg-highlight-orange-300 px-[8px] py-[2px]",children:[s?(0,v.jsx)(eg.FcMoneyBagIcon,{boxSize:"14px",className:"text-core-greyBlue-900"}):(0,v.jsx)(S.FcLightningIcon,{boxSize:"14px",className:"text-core-greyBlue-900"}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.900",children:r("activationJourney.title")})]}),(0,v.jsx)("p",{className:"relative m-0 mb-[6px] text-[16px] font-semibold text-core-neutral-0",children:(0,v.jsx)(eP.Trans,{t:r,i18nKey:"activationJourney.bonusHighlight.title",values:{amount:o},components:{highlight:(0,v.jsx)("span",{className:"text-highlight-orange-300 [font-size:inherit] [font-weight:inherit]"})}})}),(0,v.jsxs)("div",{className:"relative flex items-center gap-[10px]",children:[(0,v.jsxs)("div",{className:"relative shrink-0",children:[(0,v.jsx)("div",{className:"flex h-[24px] w-[24px] min-w-[24px] items-center justify-center rounded-[100px] border-[0.5px] border-solid border-core-greyBlue-100 bg-core-neutral-0-A10",children:(0,v.jsx)(e7.FcCartIcon,{boxSize:"14px",color:"white"})}),(0,v.jsx)("img",{src:`${t}/rewarding-engine/stars.png`,alt:"",className:"pointer-events-none absolute left-1/2 top-1/2 h-auto w-[30px] max-w-none -translate-x-1/2 -translate-y-1/2"})]}),(0,v.jsx)(N.Typography,{as:"p",variant:"sm",color:"core.neutral.0",children:(0,v.jsx)(eP.Trans,{t:r,i18nKey:"activationJourney.bonusHighlight.description",values:{amount:o},components:{highlight:(0,v.jsx)("span",{className:"text-highlight-orange-300 [font-size:inherit] [font-weight:inherit]"})}})})]})]})}function rk({isOpen:e,onClose:r,slug:t,partialOffer:a,source:s}){return(0,v.jsx)(em.DealsModal,{open:e,onClose:r,size:"md",fullScreenMobile:!0,fullBleedTop:!0,fullBleedBottom:!0,scrollBehavior:"body",surface:"base",autoFocus:!1,ariaLabel:a?.name,children:e&&(0,v.jsx)(rT,{slug:t,partialOffer:a,source:s})})}function rT({slug:e,partialOffer:r,source:t}){let{hooks:a,api:s,staggerReveal:n}=(0,T.useDealsContext)(),{t:o}=(0,w.useTranslation)("_cashback"),i=(0,_.useRef)(null),[l,c]=(0,_.useState)(null),d=l??r,{trackOfferInteraction:p}=a.useOfferInteractionTracker({offer:d??void 0,source:t.name,position:t.position}),u=(0,_.useCallback)(()=>{d&&p({elementId:d.id.toString(),elementName:d.slug,event:E.UserInteractionEvent.CLICK,target:E.UserInteractionTarget.OFFER_CARD})},[d,p]),x=r?.slug??e,m=(0,_.useRef)(t);(0,_.useEffect)(()=>{m.current=t}),(0,_.useEffect)(()=>{x&&(c(null),s.offers.getOfferBySlug(x,m.current).then(e=>{e&&c(e)}))},[x,s.offers]);let{ref:h,inView:f}=(0,eh.useInView)({threshold:0,root:i.current}),C=r??l;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"flex min-h-0 flex-1 flex-col sm:h-[min(646px,90dvh)] sm:flex-none",children:(0,v.jsx)(ex.ModalScrollBody,{ref:i,label:o("offerModal.scrollRegion"),onClick:u,children:(0,v.jsx)(n,{children:(0,v.jsxs)("div",{className:"flex flex-col gap-[16px] p-[16px] pb-[90px]",children:[(0,v.jsx)("div",{"data-stagger":!0,children:(0,v.jsx)(eR,{offer:C??void 0})}),(0,v.jsx)("div",{ref:h,"data-stagger":!0,children:(0,v.jsx)(ez,{offer:C??void 0,source:t})}),C&&(0,v.jsx)("div",{"data-stagger":!0,children:(0,v.jsx)(rE,{offer:C})}),(0,v.jsx)(rS,{offer:l??void 0})]})})})}),C&&!f&&(0,v.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 z-[2]",children:(0,v.jsx)("div",{className:"pointer-events-auto animate-slideUpFadeIn bg-core-greyBlue-900 px-[16px] pt-[16px] pb-[max(1rem,var(--safe-area-bottom,0px))]",children:(0,v.jsx)(ez,{offer:C,source:t,compact:!0,trackImpression:!1})})})]})}e.s(["GiftCardOrderFlow",()=>tQ],210757);var rA=e.i(912598),rI=e.i(781903),rR=e.i(618566);function rO(e){return null!==e&&"object"==typeof e?e:{}}function rD(e){return`${e}ModalHistoryDepth`}e.s(["getOfferDetailsModalHistoryDepthStateKey",0,rD,"useOfferDetailsModal",0,function(e,r={}){let{navigationMode:t="replace"}=r,a=(0,rR.useSearchParams)(),s=(0,rR.useRouter)(),n=(0,rR.usePathname)(),o=a.get(e),[i,l]=(0,_.useState)(o),[c,d]=(0,_.useState)(null),p=(0,_.useRef)(!1);(0,_.useEffect)(()=>
244{l(e=>e===o?e:o),d(e=>o&&e?.identifier===o?e:null),o||(p.current=!1)},[o]),(0,_.useEffect)(()=>{"push"===t&&o&&p.current&&window.history.replaceState({...rO(window.history.state),[rD(e)]:1},"",window.location.href)},[o,t,e]);let u=c?.identifier===i?c.data:null;return{identifier:i,isOpen:!!i,partialData:u,open:(0,_.useCallback)((r,a)=>{if(l(r),d(void 0!==a?{identifier:r,data:a}:null),"push"===t){p.current=!0,s.push(`${n}?${e}=${r}`,{scroll:!1});return}s.replace(`${n}?${e}=${r}`,{scroll:!1})},[t,s,n,e]),close:(0,_.useCallback)(r=>{if(l(null),d(null),"push"===t&&p.current&&1){var a;let t,s=r??(a=window.history.state,"number"==typeof(t=rO(a)[rD(e)])&&t>0?t:1);if(s>0)return void window.history.go(-s)}p.current=!1,s.replace(n,{scroll:!1})},[t,e,s,n])}}],104066);var rL=((i={})[i.CardAndAmount=1]="CardAndAmount",i[i.OrderSummary=2]="OrderSummary",i[i.Payment=3]="Payment",i),rB=e.i(487992);let rP=[rL.CardAndAmount,rL.OrderSummary,rL.Payment];function rM({currentStep:e}){let{t:r}=(0,w.useTranslation)("_cashback"),t=rP.indexOf(e);return(0,v.jsx)(rB.StepIndicator,{steps:rP.length,currentStep:t,variant:"segments",label:r("giftCardOrder.progressLabel",{current:t+1,total:rP.length})})}var rF=e.i(730008);let rH="inline-flex h-[32px] w-[32px] cursor-pointer items-center justify-center rounded-full border-[1.25px] border-solid border-core-greyBlue-400 bg-core-greyBlue-900 hover:shadow-[inset_0_0_0_100px_rgba(255,255,255,0.05)]";function rV({offer:e,amountSummary:r,cashbackEarnings:t,isMobile:a,onBack:s,onClose:n}){return a?(0,v.jsx)("div",{className:"absolute inset-0 z-20 flex flex-col justify-end bg-[rgba(8,9,17,0.62)] backdrop-blur-[6px]",children:(0,v.jsx)("div",{className:"w-full max-w-full",children:(0,v.jsx)("div",{className:"animate-slideUpFadeIn",children:(0,v.jsxs)("div",{className:"relative w-full max-w-full rounded-t-[28px] bg-core-greyBlue-500 px-[16px] pb-[18px] pt-[20px] shadow-[0_-12px_40px_rgba(0,0,0,0.32)]",children:[(0,v.jsx)("div",{className:"absolute left-[16px] top-[18px]",children:(0,v.jsx)("button",{type:"button","aria-label":"Back",onClick:s,className:rH,children:(0,v.jsx)(rI.FcChevronLeftIcon,{boxSize:"16px",color:"white"})})}),(0,v.jsx)("div",{className:"absolute right-[16px] top-[18px]",children:(0,v.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:rH,children:(0,v.jsx)(rs.FcBareCloseIcon,{boxSize:"11px",className:"text-core-greyBlue-50"})})}),(0,v.jsx)(rG,{offer:e,amountSummary:r,cashbackEarnings:t,isMobile:!0})]})})})}):(0,v.jsxs)("div",{className:"relative min-h-full bg-core-greyBlue-500 px-[24px] py-[24px]",children:[(0,v.jsx)("div",{className:"absolute left-[16px] top-[16px]",children:(0,v.jsx)("button",{type:"button","aria-label":"Back",onClick:s,className:rH,children:(0,v.jsx)(rI.FcChevronLeftIcon,{boxSize:"16px",color:"white"})})}),(0,v.jsx)("div",{className:"absolute right-[16px] top-[16px]",children:(0,v.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:rH,children:(0,v.jsx)(rs.FcBareCloseIcon,{boxSize:"11px",className:"text-core-greyBlue-50"})})}),(0,v.jsx)(rG,{offer:e,amountSummary:r,cashbackEarnings:t,isMobile:!1})]})}function rG({offer:e,amountSummary:r,cashbackEarnings:t,isMobile:a}){let{t:s}=(0,w.useTranslation)("_cashback");return(0,v.jsxs)("div",{className:(0,el.cn)("flex flex-col items-stretch gap-[20px]",a?"pt-[56px]":"pt-[36px]"),children:[(0,v.jsx)("div",{className:"flex h-[48px] w-[48px] shrink-0 items-center justify-center self-center",children:(0,v.jsx)("span",{"aria-hidden":!0,className:"inline-block h-full w-full animate-spin rounded-full border-[3px] border-solid border-core-freecashGreen-400 border-b-[rgba(255,255,255,0.12)] border-l-[rgba(255,255,255,0.12)]",style:{animationDuration:"0.65s"}})}),(0,v.jsx)(N.Typography,{as:"p",variant:"lg",align:"center",weight:"bold",color:"core.neutral.0",children:s("giftCardOrder.redirecting.title")}),(0,v.jsxs)("div",{className:"rounded-[14px] border border-solid border-[rgba(35,227,139,0.9)] bg-[linear-gradient(180deg,rgba(62,64,92,0.98)_0%,rgba(44,46,70,0.98)_100%)] p-[16px] shadow-[0_0_14px_rgba(35,227,139,0.38)]",children:[(0,v.jsxs)("div",{className:"mb-[14px] flex items-start justify-between gap-[12px]",children:[(0,v.jsxs)("div",{className:"flex min-w-0 items-center gap-[12px]",children:[(0,v.jsx)("img",{src:e.assets.logoImageUrl,alt:e.brandName,className:"h-[44px] w-[44px] shrink-0 rounded-[10px] object-cover"}),(0,v.jsxs)("div",{className:"flex flex-col items-start gap-[4px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",weight:"bold",color:"core.neutral.0",children:e.brandName}),(0,v.jsx)("div",{className:"rounded-full bg-[rgba(255,255,255,0.12)] px-[8px] py-[3px]",children:(0,v.jsx)("p",{className:"m-0 text-[12px] font-semibold text-[rgba(255,255,255,0.9)]",children:r})})]})]}),(0,v.jsx)(rF.FcConfettiIcon,{boxSize:"20px",className:"text-core-yellow-200"})]}),t?(0,v.jsxs)("p",{className:"m-0 mb-[6px] text-[14px] font-bold leading-[140%] text-core-neutral-0",children:[(0,v.jsxs)(N.Typography,{as:"span",variant:"sm",weight:"bold",color:"core.freecashGreen.400",children:[t," ",s("giftCardOrder.common.cashback")]})," ",s("giftCardOrder.redirecting.reservedForYou")]}):null,(0,v.jsx)("p",{className:"m-0 text-[12px] font-normal leading-[140%] text-[rgba(255,255,255,0.86)]",children:s("giftCardOrder.redirecting.subtitle")})]}),(0,v.jsxs)("div",{className:"flex flex-col items-center gap-[2px] pt-[8px]",children:[(0,v.jsxs)("div",{className:"flex items-center justify-center gap-[6px]",children:[(0,v.jsx)(eF.FcShieldCheckIcon,{boxSize:"14px",className:"text-core-greyBlue-50"}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.greyBlue.50",children:s("giftCardOrder.securePaymentShort")})]}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",align:"center",color:"core.greyBlue.100",children:s("giftCardOrder.securePaymentProvider")})]})]})}function rU(e,r,t){var a;return(r="symbol"==typeof(a=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r,"string"))?a:a+"")in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}(l={}).Production="production",l.Sandbox="sandbox",(c={}).AlipayCn="alipay_cn",c.AlipayHk="alipay_hk",c.Alma="alma",c.Applepay="applepay",c.Bacs="bacs",c.Bancontact="bancontact",c.Benefit="benefit",c.Bizum="bizum",c.Blik="blik",c.Card="card",c.Dana="dana",c.Eps="eps",c.Gcash="gcash",c.Googlepay="googlepay",c.Ideal="ideal",c.Kakaopay="kakaopay",c.Klarna="klarna",c.Knet="knet",c.Mbway="mbway",c.MobilePay="mobilepay",c.Multibanco="multibanco",c.Octopus="octopus",c.P24="p24",c.PayNow="paynow",c.Paypal="paypal",c.Plaid="plaid",c.Qpay="qpay",c.RememberMe="remember_me",c.Sepa="sepa",c.StcPay="stcpay",c.StoredCard="stored_card",c.Swish="swish",c.Tabby="tabby",c.Tamara="tamara",c.TouchNGo="tng",c.Truemoney="truemoney",c.Twint="twint",c.Vipps="vipps",c.WeChatPay="wechatpay",c.Flow="flow",c.Authentication="authentication",c.CardCvv="card_cvv",c.ShippingAddress="shipping_address",(d={}).Amex="american_express",d.CartesBancaires="cartes_bancaires",d.ChinaUnionPay="china_union_pay",d.DinersClub="diners_club_international",d.Discover="discover",d.JCB="jcb",d.Mada="mada",d.Mastercard="mastercard",d.Visa="visa",(p={}).Charge="charge",p.Credit="credit",p.Debit="debit",p.DeferredDebit="deferred_debit",p.Prepaid="prepaid",(u={}).DefaultOnly="default_only",u.All="all",(x={}).AbovePayButton="above_pay_button",x.BelowPayButton="below_pay_button",(m={}).Integration="Integration",m.Request="Request",m.PaymentMethod="PaymentMethod",m.Submit="Submit",m.Validation="Validation",(h={}).BrowserEnvironmentRequired="browser_environment_required",h.CallbackInvocationFailed="callback_invocation_failed",h.CallbackResultInvalid="callback_result_invalid",h.ComponentAlreadyMounted="component_already_mounted",h.ComponentIsAvailableNotChecked="component_is_available_not_checked",h.ComponentNotSupported="component_not_supported",h.ElementNotFound="element_not_found",h.MethodNotSupported="method_not_supported",h.OnTokenizedCallbackRequired="on_tokenized_callback_required",h.PaymentSessionInvalid="payment_session_invali
244d",h.PaymentSessionRequired="payment_session_required",(f={}).PaymentRequestAborted="payment_request_aborted",f.PaymentRequestDeclined="payment_request_declined",f.PaymentRequestFailed="payment_request_failed",f.NetworkError="network_error",f.TokenizeRequestFailed="tokenize_request_failed",(C={}).NotEnoughFunds="not_enough_funds",C.InvalidPaymentSessionData="invalid_payment_session_data",C.InvalidCustomerData="invalid_customer_data",C.CustomerMisconfiguration="customer_misconfiguration",C.MerchantMisconfiguration="merchant_misconfiguration",C.TryAgain="try_again",C.PaymentCancelled="payment_cancelled",C.PaymentExpired="payment_expired",(g={}).Subheading="subheading",g.Footnote="footnote",g.Button="button",g.Input="input",g.Label="label",(b={}).Pay="pay",b.Tokenize="tokenize";let r$="https://checkout-web-components.checkout.com/index.js",rz=((y={}).Integration="Integration",y),rK=((j={}).BrowserEnvironmentRequired="browser_environment_required",j.CheckoutWebComponentInstanceNotOnWindow="checkout_web_component_instance_not_on_window",j.ScriptFailed="script_failed",j.ScriptTimedOut="script_timed_out",j);class rW extends Error{constructor({type:e,message:r,code:t}){super(`[${e}]: ${r} [${t}]`),rU(this,"type",void 0),rU(this,"code",void 0),Object.setPrototypeOf(this,rW.prototype),this.type=e,this.code=t,this.name="CheckoutLoaderError"}}let rZ=async e=>{if("u"<typeof window||"u"<typeof document)throw new rW({type:rz.Integration,message:"CheckoutWebComponents can only run in a browser environment",code:rK.BrowserEnvironmentRequired});if(window.CheckoutWebComponents)return window.CheckoutWebComponents(e);let r=(e=>{let r=document.querySelectorAll(`script[src^="${r$}"]`);if(r.length>0)for(let e=0;e<r.length;e++)r[e].remove();let t=document.createElement("script");return t.src=e,t.async=!0,document.head.appendChild(t),t})(r$);return(await (async e=>new Promise((r,t)=>{e.addEventListener("load",()=>{window.CheckoutWebComponents?r(window.CheckoutWebComponents):t(new rW({type:rz.Integration,message:"CheckoutWebComponents loaded but window.CheckoutWebComponents isn't present",code:rK.CheckoutWebComponentInstanceNotOnWindow}))}),e.addEventListener("error",()=>{t(new rW({type:rz.Integration,message:"CheckoutWebComponents did not load due to script failing",code:rK.ScriptFailed}))}),setTimeout(()=>{t(new rW({type:rz.Integration,message:"CheckoutWebComponents did not load due to script timing out",code:rK.ScriptTimedOut}))},3e4)}))(r))(e)};var rq=e.i(117031);let rY='Poppins, Roboto, -apple-system, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',rJ={colorAction:"#01D676",colorBackground:"#2B2B42",colorBorder:"transparent",colorFormBackgroun
244d:"#2B2B42",colorFormBorder:"rgba(82, 84, 118, 0.45)",colorPrimary:"#e0e1eb",colorSecondary:"#8b8da8",colorInverse:"#1a1b2e",colorSuccess:"#01D676",colorError:"#ef4444",colorDisabled:"#4a4c6a",colorOutline:"#01D67644",borderRadius:["8px","8px"],input:{fontFamily:rY,fontSize:"16px",fontWeight:400,letterSpacing:0,lineHeight:"20px"},label:{fontFamily:rY,fontSize:"13px",fontWeight:400},button:{fontFamily:rY,fontSize:"16px",fontWeight:600},subheading:{fontFamily:rY,fontSize:"15px",fontWeight:500},footnote:{fontFamily:rY,fontSize:"12px",fontWeight:400,letterSpacing:0,lineHeight:"20px"}},rQ=new Set(["payment_request_failed","payment_session_invalid","browser_environment_required","element_not_found","component_not_supported"]),rX=new Set(["merchant_misconfiguration"]),r1={CARD:"card",APPLE_PAY:"applepay",GOOGLE_PAY:"googlepay"};var r0=e.i(210666),r5=e.i(88653),r2=e.i(846932);let r4={exit:{opacity:0,height:0,transition:{height:{duration:.2,ease:[.25,.1,.25,1]},opacity:{duration:.3,ease:[.25,.1,.25,1]}}},enter:{opacity:1,height:"auto",transition:{height:{duration:.3,ease:[.25,.1,.25,1]},opacity:{duration:.4,ease:[.25,.1,.25,1]}}}};function r8({id:e,labelContent:r,selected:t,onSelect:a,containerRef:s,children:n,order:o}){return(0,v.jsxs)("div",{className:"overflow-hidden rounded-[8px] border border-solid border-[rgba(82,84,118,0.45)] bg-highlight-purple-900",style:{order:o},children:[(0,v.jsxs)("button",{type:"button","aria-pressed":t,onClick:a,className:"m-0 flex w-full cursor-pointer appearance-none items-center gap-[10px] border-0 bg-transparent px-[14px] py-[12px] [@media(hover:hover)]:hover:bg-[rgba(82,84,118,0.15)]",children:[(0,v.jsx)("div",{className:(0,el.cn)("relative h-[16px] w-[16px] rounded-full border-2 border-solid",t?"border-core-freecashGreen-500":"border-[#8b8da8]"),children:t&&(0,v.jsx)("div",{className:"absolute left-1/2 top-1/2 h-[8px] w-[8px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-core-freecashGreen-500"})}),r]}),(0,v.jsx)(r5.AnimatePresence,{initial:!1,children:(0,v.jsx)(r2.motion.div,{className:"block overflow-hidden",initial:!1,animate:t?"enter":"exit",variants:r4,inert:!t,children:(0,v.jsxs)("div",{className:"px-[14px] pb-[14px]","data-method":e,children:[(0,v.jsx)("div",{ref:s,className:"[&_iframe]:!rounded-none [&_iframe]:![color-scheme:normal] [&_iframe.gpay-card-info-iframe]:![color-scheme:light] [&_div[borderbottomcolor=colorBorder]:has(button[data-testid=ignoreRememberMeButton])]:!border-none"}),n]})})})]})}function r9({src:e,icon:r,label:t}){return(0,v.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,v.jsx)("div",{className:"flex h-[26px] w-[44px] shrink-0 items-center justify-center",children:e?(0,v.jsx)("img",{src:e,alt:"",className:"h-[26px] w-[44px] object-contain"}):(0,v.jsx)("div",{className:"flex h-[26px] w-[44px] items-center justify-center rounded-full border border-solid border-core-greyBlue-400 bg-core-neutral-0",children:r})}),(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:t})]})}function r6({paymentSession:e,publicKey:r,environment:t,onReady:a,onSuccess:s,onError:n,onPaymentDeclined:o,onProcessingChange:i}){let{t:l,i18n:c}=(0,w.useTranslation)("_cashback"),{assetsBasePath:d}=(0,T.useDealsContext)(),p=(0,_.useRef)(null),u=(0,_.useRef)(null),x=(0,_.useRef)(null),m=(0,_.useRef)(null),h=(0,_.useRef)(null),f=(0,_.useRef)(null),C=(0,_.useRef)(!1),[g,b]=(0,_.useState)(!0),[y,j]=(0,_.useState)(!1),[N,S]=(0,_.useState)(null),{selected:E,toggle:k,setSelected:A}=function(){let[e,r]=(0,_.useState)(null),t=(0,_.useRef)(!1),a=(0,_.useRef)(null);return(0,_.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]),{selected:e,toggle:(0,_.useCallback)(e=>{t.current||(t.current=!0,r(r=>r===e?null:e),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{t.current=!1},350))},[350]),setSelected:r}}(),I=function(e,r){let[t,a]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{let t=e.current;if(!t||!r)return void a(!1);let s=()=>{a(!!t.querySelector('[data-testid="ignoreRememberMeButton"]'))};s();let n=new MutationObserver(s);return n.observe(t,{childList:!0,subtree:!0}),()=>n.disconnect()},[e,r]),t}(p,N?.card??!1),R=(0,_.useRef)(a),O=(0,_.useRef)(s),D=(0,_.useRef)(n),L=(0,_.useRef)(o),B=(0,_.useRef)(i);(0,_.useEffect)(()=>{R.current=a,O.current=s,D.current=n,L.current=o,B.current=i});let P=(0,_.useCallback)(e=>{j(e),B.current?.(e)},[]),M=(0,_.useCallback)(()=>{P(!1)},[P]);(0,_.useEffect)(()=>{let a=!0;return b(!0),S(null),j(!1),B.current?.(!1),async function(){try{let s,n=await rZ({paymentSession:{id:e.id,payment_session_token:e.paymentSessionToken},publicKey:r,environment:t,locale:c.language,appearance:rJ,onSubmit:()=>{a&&P(!0)},onPaymentCompleted:(e,r)=>{a&&(M(),O.current(r.type??e.type??"unknown"))},onError:(e,r)=>{a&&M();let t=r.code??"",s=r.details?.requestErrorCodes??[];if(s.includes("payment_session_paid")){a&&O.current(void 0);return}"component_invalid"===t||(rQ.has(t)||s.some(e=>rX.has(e))?a&&D.current({code:t,detailCodes:s}):a&&L.current?.({code:t,detailCodes:s}))}}),o=new Promise(e=>{s=e}),i=n.create("card",{showPayButton:!1,onReady:()=>{a&&s()}}),l=n.create("applepay",{buttonColor:"white"}),d=n.create("googlepay",{buttonColor:"white"}
244),[p,u,x]=await Promise.all([i.isAvailable(),l.isAvailable(),d.isAvailable()]);if(!a)return;m.current=p?i:null,h.current=u?l:null,f.current=x?d:null;let g={card:p,applepay:u,googlepay:x};S(g);let y=e.preferredPaymentMethod,j=y&&!C.current&&g[r1[y]]?r1[y]:null;if("card"===j&&(await o,!a))return;j&&(A(j),C.current=!0),b(!1),R.current?.()}catch(r){if(!a)return;let e=r instanceof Error?r.message:String(r);D.current({code:"sdk_init_failed",detailCodes:[],message:e}),b(!1)}}(),()=>{a=!1,[m,h,f].forEach(e=>{try{e.current?.unmount()}catch{}e.current=null})}},[e,r,t,M,P,c.language,A]),(0,_.useEffect)(()=>{N?.card&&p.current&&m.current&&m.current.mount(p.current),N?.applepay&&u.current&&h.current&&h.current.mount(u.current),N?.googlepay&&x.current&&f.current&&f.current.mount(x.current)},[N]);let F=(0,_.useMemo)(()=>{let r=e.preferredPaymentMethod;if(!r)return null;let t=r1[r];return N?.[t]?t:null},[e.preferredPaymentMethod,N]),H=e=>{y||k(e)};return(0,v.jsxs)("div",{className:"relative min-h-[300px]",children:[g&&(0,v.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:(0,v.jsx)(rq.Spinner,{live:!1,size:"lg",color:"highlight.grey.200",arcLength:"long",speed:"fast"})}),(0,v.jsxs)("div",{className:(0,el.cn)("flex flex-col items-stretch gap-[12px]",g?"opacity-0":"opacity-100"),children:[N?.applepay&&(0,v.jsx)(r8,{id:"applepay",labelContent:(0,v.jsx)(r9,{src:`${d}/apple-pay.png`,label:"Apple Pay"}),selected:"applepay"===E,onSelect:()=>H("applepay"),containerRef:u,order:"applepay"===F?-1:0}),N?.googlepay&&(0,v.jsx)(r8,{id:"googlepay",labelContent:(0,v.jsx)(r9,{src:`${d}/google-pay-v2.png`,label:"Google Pay"}),selected:"googlepay"===E,onSelect:()=>H("googlepay"),containerRef:x,order:"googlepay"===F?-1:0}),N?.card&&(0,v.jsx)(r8,{id:"card",labelContent:(0,v.jsx)(r9,{icon:(0,v.jsx)(r0.FcCreditCardIcon,{boxSize:"20px",className:"text-highlight-purple-900"}),label:l("giftCardOrder.payment.methods.card")}),selected:"card"===E,onSelect:()=>H("card"),containerRef:p,order:"card"===F?-1:0,children:!I&&(0,v.jsx)("div",{className:"mt-[12px]",children:(0,v.jsx)(eB.Button,{size:"lg",width:"full",onClick:()=>{m.current&&m.current.submit()},isDisabled:y,isLoading:y,children:l("giftCardOrder.payment.pay")})})})]})]})}var r3=e.i(32301),r7=e.i(811553),te=e.i(395327);function tr({amount:e,currency:r,isSelected:t,onSelect:a,variant:s="default",buttonProps:n}){let{numberToCompactCurrencyStringIn:o}=M(),{className:i,style:l,...c}=n??{};return(0,v.jsx)("button",{type:"button",...c,onClick:a,style:"orderFlow"===s?{transition:"background 0.2s ease, border-color 0.2s ease",...l}:l,className:(0,el.cn)(ta(t,s),i),children:o(e,r)})}let tt="box-border m-0 flex appearance-none cursor-pointer items-center justify-center min-w-0 border-0 bg-transparent p-0 [font-family:inherit] focus:outline-none",ta=(e,r)=>"orderFlow"===r?(0,el.cn)(tt,"h-[40px] w-full rounded-full border border-solid px-[12px] py-0 text-[14px] font-semibold leading-[150%] text-core-neutral-0",e?"border-core-freecashGreen-500 bg-[rgba(113,201,232,0.10)] hover:bg-[rgba(113,201,232,0.14)]":"border-[rgba(122,126,155,0.5)] bg-[rgba(35,37,57,0.9)] hover:bg-[rgba(48,50,75,0.95)]"):(0,el.cn)(tt,"h-auto rounded-[100px] px-[20px] py-[5.5px] text-[14px] font-medium leading-[150%]",e?"bg-[rgba(113,201,232,0.10)] text-core-freecashGreen-500 hover:bg-[rgba(113,201,232,0.15)]":"bg-core-greyBlue-800 text-core-neutral-0 hover:bg-[rgba(255,255,255,0.16)]");function ts({value:e,onChange:r,currency:t,min:a,max:s,variant:n="default",label:o}){var i,l,c,d,p,u;let{t:x}=(0,w.useTranslation)("_cashback"),{numberToCompactCurrencyStringIn:m}=M(),[h,f]=(0,_.useState)(e>0?String(e):"");(0,_.useEffect)(()=>{f(e>0?String(e):"")},[e]);let C=function(e){try{let r=new Intl.NumberFormat(void 0,{style:"currency",currency:e}).formatToParts(0);return r.find(e=>"currency"===e.type)?.value??e}catch{return e}}(t),g=m(a,t),b=m(s,t),y="orderFlow"===n?x("giftCardOrder.customAmountPlaceholder"):x("instantCashbackOfferModal.amountSelectionSection.amountRangeInputPlaceholder",{minAmount:g,maxAmount:b}),j=(i=e,l=a,c=s,d=g,p=b,u=x,0===i?null:i<l?u("instantCashbackOfferModal.amountSelectionSection.errorMinAmount",{minAmount:d}):i>c?u("instantCashbackOfferModal.amountSelectionSection.errorMaxAmount",{maxAmount:p}):null),S=e>0&&!!j,E="orderFlow"===n;return(0,v.jsxs)("div",{className:"flex flex-col items-stretch gap-[8px]",children:[(0,v.jsxs)("div",{className:(0,el.cn)("relative",E&&"pt-[8px]"),children:[E&&o?(0,v.jsx)("p",{className:"absolute top-0 left-[14px] z-[1] m-0 -translate-y-1/2 bg-core-greyBlue-900 px-[6px] text-[12px] font-normal leading-normal text-core-greyBlue-100",children:o}):null,(0,v.jsxs)("div",{className:"relative isolate flex w-full",children:[C&&
244(0,v.jsx)("div",{className:(0,el.cn)("pointer-events-none absolute top-0 left-0 z-[2] flex h-full w-[42px] items-center justify-center pl-[12px]",E?"text-[18px] text-core-neutral-0":"text-[14px] text-core-greyBlue-50"),children:C}),(0,v.jsx)("input",{className:(0,el.cn)("relative m-0 w-full min-w-0 appearance-none border border-solid bg-transparent text-[14px] leading-[24px] text-core-neutral-0 outline-none [font-family:inherit]","transition-[background-color,border-color,color,fill,stroke,opacity,box-shadow,transform] duration-200","placeholder:font-normal hover:border-transparent",C?"pl-[36px]":"pl-[12px]",E?"h-[40px] rounded-[10px] pr-[14px] text-right font-medium placeholder:text-core-greyBlue-200":"h-[48px] rounded-[8px] pr-[12px] text-left font-normal placeholder:text-core-greyBlue-100",S?"border-core-red-700":E?"border-[rgba(61,65,95,1)]":"border-core-greyBlue-200",S?"focus:border-core-red-700":"focus:border-core-freecashGreen-700 focus:shadow-[0_0_0_1px_theme(colors.core.freecashGreen.700)]"),value:h,onChange:e=>{let t=e.target.value;if(""===t){f(""),r(0);return}if(!/^\d+\.?\d{0,2}$/.test(t))return;f(t);let a=parseFloat(t);r(isNaN(a)?0:a)},placeholder:y,type:"text",inputMode:"decimal"})]})]}),S&&(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.red.600",children:j})]})}var tn=e.i(265783),to=e.i(213994);let ti="flex w-full flex-col items-start gap-[12px] rounded-[16px] border-[0.5px] border-solid border-core-greyBlue-300 bg-core-greyBlue-500 p-[16px]",tl="m-0 text-[14px] font-medium leading-[150%] text-core-neutral-0",tc="m-0 text-[12px] font-normal !max-w-full !box-border !text-core-greyBlue-25 [overflow-wrap:anywhere]! [word-break:break-word]! [&_*]:!max-w-full [&_*]:!box-border [&_*]:!text-core-greyBlue-25 [&_*]:[overflow-wrap:anywhere]! [&_*]:[word-break:break-word]! [&_h1]:!m-0 [&_h1]:!text-[16px] [&_h1]:!font-semibold [&_h2]:!m-0 [&_h2]:!text-[14px] [&_h2]:!font-semibold [&_h3]:!m-0 [&_h3]:!text-[12px] [&_h3]:!font-semibold [&_h4]:!m-0 [&_h4]:!text-[10px] [&_h4]:!font-semibold [&_h5]:!m-0 [&_h5]:!text-[8px] [&_h5]:!font-semibold [&_h6]:!m-0 [&_h6]:!text-[6px] [&_h6]:!font-semibold [&_a]:!m-0 [&_a]:!text-core-freecashGreen-500 [&_a]:!underline [&_a]:[word-break:break-all]! [&_p]:!mx-0 [&_p]:!mt-0 [&_p]:!mb-[8px] [&_p:last-child]:!mb-0 [&_li]:!mb-[8px] [&_li]:!list-disc [&_li:last-child]:!mb-0 [&_ul]:!m-0 [&_ul]:!ms-[1em] [&_ul]:!pl-[4px] [&_img]:!h-auto [&_img]:!max-w-full [&_table]:!w-full [&_table]:!max-w-full [&_table]:[table-layout:fixed]! [&_table]:[word-break:break-word]! [&_pre]:!max-w-full [&_pre]:!overflow-x-auto [&_pre]:[white-space:pre-wrap]! [&_pre]:[word-break:break-word]! [&_code]:!max-w-full [&_code]:!overflow-x-auto [&_code]:[white-space:pre-wrap]! [&_code]:[word-break:break-word]!";function td({redeemChannels:e,redemptionInstructions:r,additionalInfo:t}){let{t:a}=(0,w.useTranslation)("_cashback"),s=e.includes(W.Online),n=e.includes(W.InStore);return s||n?r?.ONLINE||r?.IN_STORE?(0,v.jsxs)("div",{className:(0,el.cn)(ti,"gap-[20px]"),children:[s&&r?.ONLINE&&(0,v.jsx)(tp,{icon:(0,v.jsx)(tn.FcDesktopIcon,{boxSize:"16px"}),label:a("instantCashbackOfferModal.howToRedeem.online"),children:(0,v.jsx)("div",{className:(0,el.cn)(tc,"flex flex-col gap-[8px] !text-[12px] !leading-[20px] [&,&_*]:!text-core-greyBlue-25"),dangerouslySetInnerHTML:{__html:tu(r.ONLINE)}})}),n&&r?.IN_STORE&&(0,v.jsx)(tp,{icon:(0,v.jsx)(to.FcStorefrontOutlineIcon,{boxSize:"16px"}),label:a("instantCashbackOfferModal.howToRedeem.inStore"),children:(0,v.jsx)("div",{className:(0,el.cn)(tc,"flex flex-col gap-[8px] !text-[12px] !leading-[20px] [&,&_*]:!text-core-greyBlue-25"),dangerouslySetInnerHTML:{__html:tu(r.IN_STORE)}})})]}):t?(0,v.jsx)("div",{className:ti,children:(0,v.jsx)("div",{className:tc,dangerouslySetInnerHTML:{__html:t}})}):null:null}function tp({icon:e,label:r,children:t}){return(0,v.jsxs)("div",{className:"w-full",children:[(0,v.jsxs)("div",{className:"mb-[8px] flex items-center gap-[8px]",children:[(0,v.jsx)("div",{className:"flex h-[28px] w-[28px] shrink-0 items-center justify-center rounded-[6px] bg-[rgba(113,201,232,0.10)] text-core-freecashGreen-500",children:e}),(0,v.jsx)("p",{className:tl,children:r})]}),(0,v.jsx)("div",{className:"pl-[24px]",children:t})]})}function tu(e){return/<[a-z][\s\S]*>/i.test(e)?e:e.split(/\n+/).filter(e=>e.trim()).map(e=>`<div>${e}</div>`).join("")}function tx({terms:e,disclaimer:r,contentClassName:t}){let{t:a}=(0,w.useTranslation)("_cashback");if(!(e||r))return null;let s=(0,el.cn)(tc,"[&_ul_strong]:!text-core-neutral-0",t);return(0,v.jsxs)("div",{className:"flex w-full flex-col items-start gap-[16px]",children:[e&&(0,v.jsx)(tm,{title:a("instantCashbackOfferModal.conditions"),children:(0,v.jsx)("div",{className:s,dangerouslySetInnerHTML:{__html:e}})}),r&&(0,v.jsx)(tm,{title:a("instantCashbackOfferModal.disclaimer"),children:(0,v.jsx)("div",{className:s,dangerouslySetInnerHTML:{__html:r}}
244)})]})}function tm({title:e,children:r}){return(0,v.jsxs)("div",{className:ti,children:[(0,v.jsx)("p",{className:tl,children:e}),r]})}e.s(["GiftCardHowItWorks",0,td],23578),e.s(["GiftCardTermsContent",0,tx],980375);let th="border-t border-solid border-highlight-purple-900 my-[18px]",tf=["howToRedeem","details","terms"];function tC({offer:e,selectedAmount:r,bottomSpacing:t,onAmountChange:a}){let{t:s}=(0,w.useTranslation)("_cashback"),{numberToCompactCurrencyStringIn:n}=M(),{cashbackPercentage:o}=eo(e),i=!!eE("giftCard"),[l,c]=(0,_.useState)(0),d=e?.options[0],p=!!d&&es(d),u=e?et(e):null,x=e?X(e,n):"",m=e?ee(e.brandName):"",h=!!e?.redemptionInstructions?.ONLINE||!!e?.redeemChannels.includes(W.Online),f=!!e?.redemptionInstructions?.IN_STORE||!!e?.redeemChannels.includes(W.InStore),C=(0,_.useMemo)(()=>{if(!e)return null;let r=[];return h&&r.push(s("giftCardOrder.redeem.online")),f&&r.push(s("giftCardOrder.redeem.inStore")),r.length>0?r.join(" · "):null},[e,f,h,s]),g=(0,_.useMemo)(()=>e?p&&d&&es(d)?er(d.minValue.amount,d.maxValue.amount):e.options.filter(ea).map(e=>({amount:e.fixedValue.amount,optionId:e.id})):[],[e,p,d]),b=(e,r)=>{a({amount:e,optionId:r})};return e?(0,v.jsxs)("div",{className:"flex w-full min-w-0 max-w-full flex-col p-[16px]",style:{paddingBottom:`${t}px`},children:[(0,v.jsxs)("div",{className:"relative w-full overflow-hidden rounded-[14px]","data-stagger":!0,children:[(0,v.jsx)("img",{src:e.assets.bannerImageUrl,alt:"",loading:"lazy",className:"block aspect-[16/9] w-full object-cover"}),C&&(0,v.jsx)("div",{className:"absolute right-[10px] top-[10px] flex rounded-full border-[0.5px] border-solid border-[rgba(255,255,255,0.32)] bg-[rgba(95,98,124,0.82)] px-[17px] py-[7px] backdrop-blur-[12px]",children:(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:C})}),(0,v.jsx)("div",{className:"absolute bottom-[10px] left-[10px]",children:(0,v.jsx)("img",{src:e.assets.logoImageUrl,alt:"",className:"h-[52px] w-[52px] rounded-[10px] object-cover"})}),(0,v.jsxs)("div",{className:"absolute bottom-[10px] right-[10px] flex items-center gap-[8px]",children:[(0,v.jsx)(ek,{giftCard:e,iconSize:"16px",fontSize:"16px",fontWeight:700,lineHeight:"normal",px:"17px",py:"7px"}),o>0&&(0,v.jsx)("div",{className:"flex rounded-full bg-core-freecashGreen-400 px-[17px] py-[7px]",children:(0,v.jsx)("p",{className:"m-0 text-[15px] font-bold text-core-greyBlue-900",children:s("giftCardOrder.hero.cashback",{percent:o})})})]})]}),(0,v.jsx)("p",{className:"m-0 mb-[12px] mt-[10px] text-[20px] font-bold leading-[130%] text-core-neutral-0","data-stagger":!0,children:m}),(0,v.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-start gap-[32px]","data-stagger":!0,children:[(0,v.jsxs)("div",{className:"flex min-w-0 items-center gap-[6px]",children:[(0,v.jsx)(r3.FcTrustBadgeIcon,{boxSize:"14px",flexShrink:0,className:"text-core-freecashGreen-400"}),(0,v.jsx)("p",{className:"m-0 text-[13px] font-normal leading-[130%] text-[rgba(255,255,255,0.82)]",children:s("giftCardOrder.badges.instantDelivery")})]}),(0,v.jsxs)("div",{className:"flex min-w-0 items-center gap-[6px]",children:[(0,v.jsx)(r3.FcTrustBadgeIcon,{boxSize:"14px",flexShrink:0,className:"text-core-freecashGreen-400"}),(0,v.jsx)("p",{className:"m-0 text-[13px] font-normal leading-[130%] text-[rgba(255,255,255,0.82)]",children:s("giftCardOrder.badges.noFees")})]})]}),i?(0,v.jsx)("div",{className:"my-[18px]","data-stagger":!0,children:(0,v.jsx)(rE,{giftCard:e})}):(0,v.jsx)("div",{className:th}),(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{className:"flex flex-wrap items-baseline gap-[8px]","data-stagger":!0,children:[(0,v.jsx)("p",{className:tl,children:s("giftCardOrder.amount.title")}),x&&(0,v.jsxs)(N.Typography,{as:"p",variant:"sm",color:"core.greyBlue.50",children:["(",x,")"]})]}),(0,v.jsxs)("div",{className:"mt-[12px] flex flex-col items-stretch gap-[12px]",children:[u&&(0,v.jsx)("div",{className:"grid w-full gap-[8px] [grid-template-columns:repeat(auto-fill,minmax(72px,1fr))]","data-stagger-group":!0,children:p?g.map(e=>(0,v.jsx)(tr,{amount:e,currency:u,isSelected:r?.amount===e,variant:"orderFlow",onSelect:()=>{d&&b(e,d.id)}},e)):g.map(({amount:e,optionId:t})=>(0,v.jsx)(tr,{amount:e,currency:u,isSelected:r?.amount===e,variant:"orderFlow",onSelect:()=>b(e,t)},t))}),p&&d&&es(d)&&u&&(0,v.jsx)("div",{className:"pt-[12px]","data-stagger":!0,children:(0,v.jsx)(ts,{value:r?.amount??0,onChange:e=>{d&&es(d)&&a({amount:e,optionId:d.id})},currency:u,min:d.minValue.amount,max:d.maxValue.amount,variant:"orderFlow",label:s("giftCardOrder.amount.customAmount")})})]})]}),(0,v.jsx)("div",{className:th}),(0,v.jsx)("div",{className:"relative mt-[2px]","data-stagger":!0,children:(0,v.jsxs)(te.TabGroup,{label:s("giftCardOrder.tabs.details"),variant:"secondary",gap:"lg",value:tf[l],onChange:e=>c(tf.indexOf(e)),panels:(0,v.jsxs)("div",{className:"mt-[6px] border-t border-solid border-highlight-purple-900",children:[(0,v.jsx)(te.TabPanel,{value:"howToRedeem",forceMount:!0,children:(0,v.jsx)("div",{className:"pt-[16px]",children:(0,v.jsx)(td,{redeemChannels:e.redeemChannels,redemptionInstructions:e.redemptionInstructions,additionalInfo:e.additionalInfo})})}),(0,v.jsx)(te.TabPanel,{value:"details",forceMount:!0,children:(0,v.jsx)("div",{className:"pt-[16px]",children:e.shortDe
244scription?(0,v.jsxs)("div",{className:ti,children:[(0,v.jsx)("p",{className:tl,children:s("giftCardOrder.details.aboutBrand",{brandName:e.brandName,interpolation:{escapeValue:!1}})}),(0,v.jsx)("div",{className:(0,el.cn)(tc,"[&,&_*]:!text-core-greyBlue-25"),dangerouslySetInnerHTML:{__html:e.shortDescription}})]}):null})}),(0,v.jsx)(te.TabPanel,{value:"terms",forceMount:!0,children:(0,v.jsx)("div",{className:"pt-[16px]",children:(0,v.jsx)(tx,{terms:e.terms,disclaimer:e.disclaimer,contentClassName:"[&,&_*]:!text-core-greyBlue-25"})})})]}),children:[(0,v.jsx)(r7.Tab,{value:"howToRedeem",label:s("giftCardOrder.tabs.howToRedeem")}),(0,v.jsx)(r7.Tab,{value:"details",label:s("giftCardOrder.tabs.details")}),(0,v.jsx)(r7.Tab,{value:"terms",label:s("giftCardOrder.tabs.terms")})]})})]}):(0,v.jsx)("div",{className:"flex w-full min-w-0 max-w-full flex-col p-[16px]",style:{paddingBottom:`${t}px`},children:(0,v.jsxs)("div",{className:"flex w-full flex-col items-stretch gap-[16px]",children:[(0,v.jsx)(ed,{className:"h-0 w-full rounded-[12px] pb-[56.25%]"}),(0,v.jsx)(ed,{className:"h-[24px] w-1/2 rounded-[4px]"}),(0,v.jsx)(ed,{className:"h-[16px] w-[70%] rounded-[4px]"}),(0,v.jsx)(ed,{className:"h-[48px] w-full rounded-[8px]"})]})})}function tg(){return(0,v.jsxs)("div",{"aria-hidden":"true",className:(0,el.cn)("relative inline-flex items-center justify-center shrink-0 w-[15px] h-[15px]"),children:[(0,v.jsx)(S.FcLightningIcon,{boxSize:"16px",className:"text-core-freecashGreen-400"}),(0,v.jsx)("div",{className:(0,el.cn)("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[3px] h-[3px] rounded-full bg-core-freecashGreen-400 pointer-events-none shadow-[0_0_7px_2px_theme(colors.core.freecashGreen.400)]")})]})}let tb=[{size:12,delay:0,x:105,y:-58,duration:2},{size:7,delay:.8,x:90,y:-18,duration:2}];function ty({value:e}){return(0,v.jsxs)("div",{className:"relative inline-flex shrink-0 items-center overflow-visible",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"bold",color:"core.freecashGreen.400",children:e}),tb.map((e,r)=>(0,v.jsx)("span",{"aria-hidden":"true",className:(0,el.cn)("pointer-events-none absolute leading-none text-core-freecashGreen-400","animate-sparklePop"),style:{left:`${e.x}%`,top:`${e.y}%`,fontSize:`${e.size}px`,animationDelay:`${e.delay}s`,animationDuration:`${e.duration}s`,animationTimingFunction:"ease-in-out"},children:"✦"},`${e.size}-${e.delay}-${r}`))]})}function tj({offer:e,selectedAmount:r,quantity:t,bottomSpacing:a,heroOnly:s}){let{t:n}=(0,w.useTranslation)("_cashback"),{assetsBasePath:o}=(0,T.useDealsContext)(),{numberToCurrencyStringIn:i,numberToCompactCurrencyStringIn:l}=M(),{cashbackPercentage:c}=eo(e),d=eE("giftCard"),p=et(e);if(!p)return(0,v.jsx)("div",{});let u=r.amount,x=u*t,m=l(u,p),h=l(x,p),f=c>0?x*c/100:0,C=f>0?i(f,p):null,g=d?i(d.amount,d.currency):null,b=f+(d?.amount??0),y=b>0?i(b,p):null,j=t>1?`${t}x ${m}`:m,_=ee(e.brandName);return(0,v.jsx)("div",{className:"flex min-h-0 flex-col",children:(0,v.jsxs)("div",{className:"pt-0",style:{paddingBottom:`${a}px`},children:[(0,v.jsxs)("div",{className:"relative mx-[-16px] mb-[8px] pb-[32px]",children:[(0,v.jsxs)("div",{className:"relative min-h-[268px] w-full overflow-hidden",children:[(0,v.jsx)("img",{src:e.assets.bannerImageUrl,alt:"",className:"block h-[268px] w-full object-cover object-[center_top] [filter:brightness(0.72)]"}),(0,v.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-[linear-gradient(180deg,rgba(20,21,35,0.36)_0%,rgba(20,21,35,0.24)_18%,rgba(20,21,35,0.16)_36%,rgba(20,21,35,0.64)_64%,rgba(20,21,35,0.92)_84%,theme(colors.core.greyBlue.900)_100%)]",children:(0,v.jsx)("div",{className:"flex w-full items-center justify-center px-[16px]",children:(0,v.jsxs)("div",{className:"flex items-center justify-center gap-[12px]",children:[(0,v.jsx)("img",{src:e.assets.logoImageUrl,alt:e.brandName,className:"h-[48px] w-[48px] shrink-0 rounded-[10px] object-cover"}),(0,v.jsxs)("div",{className:"flex min-h-[48px] flex-col items-start justify-center gap-[4px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"lg",weight:"bold",color:"core.neutral.0",children:_}),(0,v.jsx)("div",{className:"rounded-full border-[0.5px] border-solid border-[rgba(255,255,255,0.16)] bg-[rgba(255,255,255,0.14)] px-[8px] py-[3px] backdrop-blur-[8px]",children:(0,v.jsx)("p",{className:"m-0 text-[13px] font-semibold text-[rgba(255,255,255,0.86)]",children:j})})]})]})})})]}),y&&(0,v.jsxs)("div",{className:"absolute bottom-[56px] left-1/2 flex -translate-x-1/2 items-center gap-[4px] whitespace-nowrap rounded-full border border-solid border-[rgba(35,227,139,0.24)] bg-[rgba(12,28,25,0.86)] px-[12px] py-[6px] shadow-[0_10px_24px_rgba(0,0,0,0.18)]",children:[(0,v.jsx)(rF.FcConfettiIcon,{boxSize:"20px",className:"text-core-freecashGreen-400"}),(0,v.jsxs)("p",{className:"m-0 text-[13px] font-medium leading-none text-core-neutral-0",children:[(0,v.jsxs)("span",{className:"m-0 text-[13px] font-bold leading-none text-core-freecashGreen-400",children:[y," ",n("giftCardOrder.common.cashback")]})," ",n("giftCardOrder.orderSummary.reservedForYou")]})]})]}),!s&&(0,v.jsxs)("div",{className:"flex w-full flex-col items-start gap-[20px] px-[16px]",children:[(0,v.jsx)(tv,{title:n("giftCardOrder.orderSummary.title"),children:(0,v.jsxs)("div",{className:"flex w-full flex-col items-start gap-[14px]",children:[(0,v.jsx)(tN,{label:n("giftCardOrder.orderSummary.giftCardValue"),value:j}
244),C&&(0,v.jsx)(tN,{label:n("giftCardOrder.orderSummary.cashbackEarned"),value:(0,v.jsx)(ty,{value:`+${C}`}),tone:"cashback",icon:(0,v.jsx)(tg,{})}),g&&(0,v.jsx)(tN,{label:n("activationJourney.title"),value:`+${g}`,tone:"bonus"}),(0,v.jsx)(tN,{label:n("giftCardOrder.orderSummary.tax"),value:l(0,p)}),(0,v.jsx)("div",{className:"w-full border-t border-solid border-[rgba(82,84,118,0.45)]"}),(0,v.jsx)(tN,{label:n("giftCardOrder.orderSummary.totalToPay"),value:h,isBold:!0})]})}),(0,v.jsx)(tv,{title:n("giftCardOrder.orderSummary.paymentOptions"),children:(0,v.jsxs)("div",{className:"flex flex-wrap items-center gap-[20px]",children:[(0,v.jsx)("img",{src:`${o}/visa.png`,alt:"",className:"h-[34px] w-[48px] object-contain"}),(0,v.jsx)("img",{src:`${o}/mastercard.png`,alt:"",className:"h-[34px] w-[48px] object-contain"}),(0,v.jsx)("img",{src:`${o}/apple-pay.png`,alt:"",className:"h-[34px] w-[48px] object-contain"}),(0,v.jsx)("img",{src:`${o}/google-pay-v2.png`,alt:"",className:"h-[34px] w-[56px] object-contain"})]})}),(0,v.jsx)(tv,{title:n("giftCard.payment.details"),children:(0,v.jsxs)("div",{className:"flex w-full flex-col items-start gap-[12px]",children:[(0,v.jsx)(t_,{icon:(0,v.jsx)(tw,{}),text:(0,v.jsx)(eP.Trans,{t:n,i18nKey:"_cashback:instantCashbackOfferModal.paymentOverviewSection.termsAndConditionsDisclaimerWithLinks",values:{brandName:e.brandName},components:{tLink:(0,v.jsx)("a",{href:"/policies/terms",target:"_blank",className:"m-0 text-[12px] text-core-freecashGreen-500 underline"}),bLink:e.termsUrl?(0,v.jsx)("a",{href:e.termsUrl,target:"_blank",className:"m-0 text-[12px] text-core-freecashGreen-500 underline"}):(0,v.jsx)("span",{className:"m-0 text-[12px] text-core-freecashGreen-500 underline"})}})}),(0,v.jsx)(t_,{icon:(0,v.jsx)(tS,{}),text:n("instantCashbackOfferModal.paymentOverviewSection.vouchersAreNonRefundable")})]})})]})]})})}function tv({title:e,children:r}){return(0,v.jsxs)("div",{className:"flex w-full flex-col items-start gap-[14px] rounded-[16px] border border-solid border-[rgba(82,84,118,0.45)] bg-highlight-purple-900 p-[16px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"md",weight:"bold",color:"core.neutral.0",children:e}),r]})}function tN({label:e,value:r,isBold:t,tone:a="default",icon:s}){let n="default"!==a;return(0,v.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,v.jsxs)("div",{className:"flex min-w-0 items-center gap-[6px]",children:[s,(0,v.jsx)("p",{className:(0,el.cn)("m-0",t?"text-[15px]":"text-[14px]",t||n?"font-semibold":"font-normal","cashback"===a?"text-core-freecashGreen-400":"bonus"===a?"text-highlight-orange-300":t?"text-core-neutral-0":"text-core-greyBlue-25"),children:e})]}),"string"==typeof r?(0,v.jsx)("p",{className:(0,el.cn)("m-0",t?"text-[17px]":"text-[14px]",t||n?"font-bold":"font-medium","cashback"===a?"text-core-freecashGreen-400":"bonus"===a?"text-highlight-orange-300":"text-core-neutral-0"),children:r}):(0,v.jsx)("div",{className:"shrink-0",children:r})]})}function t_({icon:e,text:r}){return(0,v.jsxs)("div",{className:"flex items-center gap-[12px]",children:[(0,v.jsx)("div",{className:"flex h-[24px] w-[24px] shrink-0 items-center justify-center rounded-full bg-[rgba(209,179,255,0.10)]",children:e}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:r})]})}function tw(){return(0,v.jsx)("svg",{viewBox:"0 0 14 14",className:"h-[14px] w-[14px] text-highlight-blueRibbon-200",fill:"currentColor",children:(0,v.jsx)("path",{d:"M5.25 3.5H12.25M5.25 7H12.25M5.25 10.5H12.25M2.625 3.5H2.63125M2.625 7H2.63125M2.625 10.5H2.63125",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function tS(){return(0,v.jsxs)("svg",{viewBox:"0 0 14 14",className:"h-[14px] w-[14px] text-highlight-blueRibbon-200",fill:"none",children:[(0,v.jsx)("circle",{cx:"7",cy:"7",r:"5.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,v.jsx)("line",{x1:"3.5",y1:"3.5",x2:"10.5",y2:"10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}var tE=e.i(625974),tk=e.i(352714);let tT={all:["giftCardOrderStatus"],detail:e=>[...tT.all,e]},tA=[{size:14,delay:0,top:"-6px",left:"4px",duration:2},{size:8,delay:.8,top:"8px",left:"10px",duration:2}];function tI({offer:e,selectedAmount:r,quantity:t,orderId:a,activationJourneyBonus:s,onViewGiftCard:n,onContinueShopping:o}){let{t:i}=(0,w.useTranslation)("_cashback"),{assetsBasePath:l}=(0,T.useDealsContext)(),{numberToCurrencyStringIn:c,numberToCompactCurrencyStringIn:d}=M(),{cashbackPercentage:p}=eo(e),{isReady:u,isFailed:x,isTimedOut:m,isFinal:h,userGiftCardId:f}=function(e){let{api:r}=(0,T.useDealsContext)(),[t,a]=(0,_.useState)(!1);(0,_.useEffect)(()=>
244{if(a(!1),null==e)return;let r=setTimeout(()=>a(!0),6e4);return()=>clearTimeout(r)},[e]);let s=(0,eb.useQuery)({queryKey:tT.detail(e),enabled:null!=e&&!t,queryFn:()=>r.giftCards.getGiftCardOrder(e),refetchInterval:e=>{let r=e.state.data;return r?"CANCELED"!==r.orderStatus&&("COMPLETED"!==r.orderStatus||!r.userGiftCardId)&&2e3:2e3},staleTime:2e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1,retry:3}).data,n=s?.orderStatus==="COMPLETED"&&!!s.userGiftCardId,o=s?.orderStatus==="CANCELED";return{isReady:n,isFailed:o,isTimedOut:t&&!n&&!o,isFinal:n||o||t,userGiftCardId:s?.userGiftCardId??null}}(a),[C,g]=(0,_.useState)(!1),[b,y]=(0,_.useState)(!1);(0,_.useEffect)(()=>{let e=window.setTimeout(()=>{g(!0)},250),r=window.setTimeout(()=>{g(!1)},3500);return()=>{window.clearTimeout(e),window.clearTimeout(r)}},[]);let j=et(e);if(!j)return(0,v.jsx)("div",{});let S=r.amount*t,E=d(r.amount,j),k=t>1?`${t}x ${E}`:E,A=(p>0?S*p/100:0)+(s?.amount??0),I=A>0?c(A,j):null;return(0,v.jsxs)("div",{className:"max-w-full min-h-full overflow-clip",children:[(0,v.jsx)("div",{className:"relative mx-[-16px] mb-[8px] pb-[12px]",children:(0,v.jsxs)("div",{className:"relative min-h-[292px] w-full overflow-hidden",children:[(0,v.jsx)("img",{src:e.assets.bannerImageUrl,alt:"",className:"block h-[292px] w-full object-cover object-[center_top] [filter:brightness(0.72)]"}),C&&!x&&(0,v.jsx)("img",{src:`${l}/confetti.gif`,alt:"",className:"pointer-events-none absolute left-1/2 top-1/2 z-[1] w-[150%] -translate-x-1/2 -translate-y-1/2"}),(0,v.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-[linear-gradient(180deg,rgba(20,21,35,0.02)_0%,rgba(20,21,35,0.16)_28%,rgba(20,21,35,0.64)_58%,rgba(20,21,35,0.92)_82%,theme(colors.core.greyBlue.900)_100%)]",children:(0,v.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-[18px] px-[16px] pt-[28px] pb-[28px]",children:[(0,v.jsxs)("div",{className:"relative flex h-[84px] w-[84px] items-center justify-center",children:[(0,v.jsx)("div",{className:"absolute inset-0 rounded-full bg-[rgba(255,255,255,0.18)] shadow-[0_10px_32px_rgba(7,10,24,0.22)] backdrop-blur-[18px]"}),(0,v.jsx)("div",{className:"relative flex h-[42px] w-[42px] items-center justify-center rounded-full bg-core-neutral-0 shadow-[0_8px_24px_rgba(0,0,0,0.12)]",children:x?(0,v.jsx)(ef.FcWarningIcon,{boxSize:"24px",className:"text-core-red-400"}):(0,v.jsx)(tk.FcSuccessCheckIcon,{boxSize:"20px",className:"text-core-greyBlue-900"})})]}),(0,v.jsxs)("div",{className:"flex flex-col items-center gap-[2px]",children:[(0,v.jsx)("p",{className:"m-0 text-center text-[30px] font-bold leading-[110%] text-core-neutral-0 sm:text-[32px]",children:i(x?"giftCardOrder.success.titleFailed":"giftCardOrder.success.title")}),(0,v.jsx)("p",{className:"m-0 text-center text-[14px] font-normal text-[rgba(255,255,255,0.76)]",children:i(u?"giftCardOrder.success.subtitle":x?"giftCardOrder.success.subtitleFailed":m?"giftCardOrder.success.subtitleDelayed":"giftCardOrder.success.subtitlePreparing")})]})]})})]})}),(0,v.jsxs)("div",{className:"flex flex-col items-stretch gap-[18px] px-[16px] pb-[140px]",children:[I&&(0,v.jsxs)("div",{className:"relative w-full",children:[tA.map((e,r)=>(0,v.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute z-[1] leading-none text-core-yellow-400 animate-sparklePop",style:{top:e.top,left:e.left,fontSize:`${e.size}px`,animationDelay:`${e.delay}s`,animationDuration:`${e.duration}s`},children:"✦"},`${e.size}-${e.delay}-${r}`)),(0,v.jsx)("div",{className:"flex min-h-[58px] items-center rounded-[14px] border border-solid border-core-yellow-400 [background:linear-gradient(to_right,rgba(255,215,13,0.35)_0%,transparent_50%),rgba(43,44,66,0.92)] px-[14px] py-[16px]",children:(0,v.jsxs)(N.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:[(0,v.jsx)(N.Typography,{as:"span",variant:"sm",weight:"bold",color:"core.yellow.400",children:I})," ",i("giftCardOrder.success.cashbackAdded")]})})]}),(0,v.jsx)(tR,{children:(0,v.jsxs)("div",{className:"flex w-full flex-col items-stretch gap-[14px]",children:[(0,v.jsxs)("div",{className:"flex items-center gap-[12px]",children:[(0,v.jsx)("img",{src:e.assets.logoImageUrl,alt:e.brandName,className:"h-[32px] w-[32px] shrink-0 rounded-[8px] object-cover"}),(0,v.jsxs)(N.Typography,{as:"p",variant:"md",weight:"bold",color:"core.neutral.0",children:[e.brandName," Gift Card"]})]}),(0,v.jsx)(tO,{label:i("giftCardOrder.success.giftCardValue"),value:k}),I?(0,v.jsx)(tO,{label:i("giftCardOrder.success.cashbackEarned"),value:`+${I}`,isHighlight:!0,icon:(0,v.jsx)(tg,{})}):null]})}),(0,v.jsx)("div",{className:(0,el.cn)("flex w-full flex-col items-stretch gap-[14px] rounded-[16px] border-0 border-solid border-[rgba(82,84,118,0.45)] p-[16px]",function({isFailed:e,isFinal:r}){return e?"bg-[rgba(43,43,66,1)]":r?"[background:linear-gradient(to_right,rgba(1,214,118,0.35)_0%,transparent_50%),rgba(43,43,66,1)]":"bg-[rgba(43,43,66,1)] animate-pendingPulse"}({isFailed:x,isFinal:h})),children:(0,v.jsxs)("div",{className:"flex items-center gap-[12px] pt-[2px]",children:[(0,v.jsx)("div",{className:"flex h-[32px] w-[32px] shrink-0 items-center justify-center",children:u?(0,v.jsx)(tE.FcGiftCardGiftIcon,{boxSize:"32px",className:"text-core-freecashGreen-500"}):x?(0,v.jsx)(ef.FcWarningIcon,{boxSize:"24px",className:"text-core-red-400"}):(0,v.jsx)("span",{"aria-hidden":"true",className:"inline-block h-[24px] w-[24px] rounded-[99999px] border-[3px] border-solid border-core-freecashGreen-500 border-b-[rgba(1,214,118,0.18)] border-l-[rgba(1,214,118,0.18)] animate-[spin_0.45s_linear_infinite]"})}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-[2px]",children:[(0,v.jsx)(N.Typography,{as:"p",variant:"sm",weight:"bold",color:"core.neutral.0",children:i(u?"giftCardOrder.success.codeReadyTitle":x?"giftCardOrder.success.codeFailedTitle":"giftCardOrder.success.codePreparingTitle")}),(0,v.jsx)("p",{className:"m-0 text-[13px] font-normal leading-[140%] text-[rgba(255,255,255,0.72)]",children:i(u?"giftCardOrder.success.codeReadySubtitle":x?"giftCardOrder.success.codeFailedSubtitle":"giftCardOrder.success.codePreparingSubtitle")})]})]})})]}),(0,v.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-[5] px-[16px] pt-[24px] pb-[16px] bg-[linear-gradient(180deg,rgba(20,21,35,0)_0%,rgba(20,21,35,0.84)_14px,theme(colors.core.greyBlue.900)_34px,theme(colors.core.greyBlue.900)_100%)]",children:(0,v.jsxs)("div",{className:"flex w-full flex-col gap-[10px]",children:[!x&&(0,v.jsx)(eB.Button,{size:"lg",width:"full",onClick:()=>{y(!0),n(f)},isDisabled:!h||b,isLoading:b,children:h||b?i("giftCardOrder.success.viewGiftCard"):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{"aria-hidden":!0,
244className:"inline-block h-[1em] w-[1em] animate-spin rounded-full border-2 border-current border-t-transparent"}),i("giftCardOrder.success.viewGiftCardLoading")]})}),(0,v.jsx)(eB.Button,{color:"accent",size:"lg",width:"full",onClick:o,children:i("giftCardOrder.success.continueShopping")})]})})]})}function tR({children:e}){return(0,v.jsx)("div",{className:"flex w-full flex-col items-stretch gap-[14px] rounded-[16px] border border-solid border-[rgba(82,84,118,0.45)] bg-highlight-purple-900 p-[16px]",children:e})}function tO({label:e,value:r,isHighlight:t,icon:a}){return(0,v.jsxs)("div",{className:"flex w-full items-center justify-between gap-[12px]",children:[(0,v.jsxs)("div",{className:"flex items-center gap-[4px]",children:[a,(0,v.jsx)("p",{className:(0,el.cn)("m-0 text-[14px]",t?"font-semibold text-core-freecashGreen-400":"font-normal text-core-greyBlue-25"),children:e})]}),(0,v.jsx)("p",{className:(0,el.cn)("m-0 text-right text-[14px]",t?"font-bold text-core-freecashGreen-400":"font-medium text-core-neutral-0"),children:r})]})}let tD="flex items-center justify-between gap-[8px] px-[12px] py-[10px]",tL="m-0 text-[12px] font-normal text-[rgba(255,255,255,0.76)]",tB="m-0 text-[14px] font-semibold text-core-neutral-0";function tP({giftCardValue:e,totalToPay:r,cashbackEarnings:t,extraCashbackNote:a,quantity:s,ctaLabel:n,onCtaClick:o,containerRef:i,isCtaDisabled:l,isCtaLoading:c}){let{t:d}=(0,w.useTranslation)("_cashback");return(0,v.jsx)("div",{ref:i,className:"pointer-events-none absolute bottom-0 left-0 right-0 z-[5]",children:(0,v.jsx)("div",{className:"pointer-events-auto p-[16px] pt-[28px] bg-[linear-gradient(180deg,rgba(20,21,35,0)_0%,rgba(20,21,35,0.82)_18px,theme(colors.core.greyBlue.900)_42px,theme(colors.core.greyBlue.900)_100%)]",children:(0,v.jsxs)("div",{className:"flex flex-col items-stretch gap-[8px]",children:[(e||r||t)&&(0,v.jsxs)("div",{className:"overflow-hidden rounded-[10px] border border-solid border-[rgba(90,92,124,0.45)] bg-highlight-purple-900",children:[e&&(0,v.jsxs)("div",{className:tD,children:[(0,v.jsx)("p",{className:tL,children:d("giftCardOrder.footer.value")}),(0,v.jsx)("p",{className:tB,children:s>1?`${s}x ${e}`:e})]}),r&&(0,v.jsxs)("div",{className:tD,children:[(0,v.jsx)("p",{className:tL,children:d("giftCardOrder.footer.total")}),(0,v.jsx)("p",{className:tB,children:r})]}),t&&(0,v.jsxs)("div",{className:"border-t border-solid border-core-freecashGreen-400 bg-[rgba(35,227,139,0.08)] px-[12px] py-[10px]",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between gap-[8px]",children:[(0,v.jsxs)("div",{className:"flex min-w-0 items-center gap-[6px]",children:[(0,v.jsx)(tg,{}),(0,v.jsx)("p",{className:"m-0 text-[12px] font-semibold text-[rgba(255,255,255,0.92)]",children:d("giftCardOrder.footer.earnOnFreecash")})]}),(0,v.jsx)(ty,{value:`+${t}`})]}),a&&(0,v.jsx)("p",{className:"m-0 mt-[4px] text-[10px] font-normal text-highlight-orange-300",children:a})]})]}),(0,v.jsx)(eB.Button,{size:"lg",width:"full",onClick:o,isDisabled:l,isLoading:c,children:n})]})})})}let tM=e=>e?"h-[100dvh] max-h-[100dvh]":"h-[80vh]",tF=e=>e?"h-[100dvh] max-h-[100dvh]":"max-h-[80vh]";e.s(["PANEL_CONTENT_HEIGHT",0,tF,"PANEL_HELD_HEIGHT",0,tM],65093);let tH="rounded-tl-[16px] rounded-tr-[16px]",tV=(e,r=!1)=>(0,el.cn)("relative flex flex-col overflow-hidden",r?tM(e):tF(e)),tG=e=>(0,el.cn)("relative flex-1 overflow-x-hidden overflow-y-auto",!e&&"[scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"),tU="flex items-center justify-start",t$="flex h-[32px] w-[32px] cursor-pointer items-center justify-center rounded-full border-[1.25px] border-solid border-[#2F3043] bg-core-greyBlue-900 hover:shadow-[inset_0_0_0_100px_rgba(255,255,255,0.05)]",tz={isVisible:!1,thumbHeight:0,thumbOffset:0},tK="gift-card",tW=rD(tK),tZ="giftCardOrderFlowStep",tq="summary";function tY(e){return null!==e&&"object"==typeof e?e:{}}function tJ(e){return tY(e)[tZ]===tq}function tQ({id:e,partialOffer:r,onClose:t,source:a}){let{t:s}=(0,w.useTranslation)("_cashback"),{hooks:n,api:o,actions:i,basePath:l,paymentConfig:c,staggerReveal:d}=(0,T.useDealsContext)(),{numberToCurrencyStringIn:p,numberToCompactCurrencyStringIn:u}=M(),x=(0,rA.useQueryClient)(),m=n.useIsMobile(),{country:h}=n.useUserCountry(),{toast:f}=(0,rh.useToast)(),C=(0,_.useRef)(null),g=(0,_.useRef)(null),b=(0,_.useRef)(null),y=(0,_.useRef)(crypto.randomUUID()),j=(0,_.useRef)(!1),[E,A]=(0,_.useState)(null),[I,R]=(0,_.useState)(rL.CardAndAmount),[O,D]=(0,_.useState)(null),[L,B]=(0,_.useState)(!1),[P,F]=(0,_.useState)(null),[H,V]=(0,_.useState)(!1),[U,$]=(0,_.useState)(!1),[z,K]=(0,_.useState)(null),[W,Y]=(0,_.useState)(!1),[J,Q]=(0,_.useState)(null),X=(0,_.useRef)(0),[ee,er]=(0,_.useState)(160),[en,ei]=(0,_.useState)(128),[ec,ed]=(0,_.useState)(tz),[ep,eu]=(0,_.useState)(!1),ex=r?.id??e,em=E??r??null,{cashbackPercentage:eh}=eo(em),ef=e=>{f({title:e?s("giftCardOrder.unavailable.title"):s("error.title"),description:e?s("giftCardOrder.unavailable.description"):s("error.subtitle"),status:"error",duration:5e3}),t()},eC=(0,_.useRef)(ef);(0,_.useEffect)(()=>{eC.current=ef}),(0,_.useEffect)(()=>
244{if(!ex)return;A(null);let e=!0;return o.giftCards.getGiftCardOffer(ex,h).then(r=>{if(e){if(r)return void A(r);eC.current(!0)}}).catch(r=>{e&&eC.current(r instanceof Error&&r.message.startsWith("Gift card offer not found"))}),()=>{e=!1}},[ex,h,o.giftCards]),(0,_.useEffect)(()=>{em&&!j.current&&(i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_OFFER_OPENED,{source:a?.name,offerId:em.id,position:a?.position,offerBrandName:em.brandName}),j.current=!0)},[em,a,i]),(0,_.useEffect)(()=>{K(null),Q(null),X.current=0,y.current=crypto.randomUUID()},[O]),(0,_.useEffect)(()=>{if(!E?.options.length)return;let e=E.options.filter(ea);1===e.length&&1===E.options.length&&D({amount:e[0].fixedValue.amount,optionId:e[0].id})},[E]);let eg=(0,_.useMemo)(()=>{if(!O||!E||O.amount<=0)return!1;let e=E.options[0];return!es(e)||O.amount>=e.minValue.amount&&O.amount<=e.maxValue.amount},[O,E]),eb=em?et(em):null,ey=O&&eb?u(O.amount,eb):null,ej=O&&eb?u(+O.amount,eb):null,ev=(0,_.useMemo)(()=>eg&&O&&eb&&!(eh<=0)?p(O.amount*eh/100,eb):null,[eg,O,eb,eh,1,p]),eN=eE("giftCard"),e_=eg?eN:null,ew=(0,_.useMemo)(()=>{if(!eg||!O||!eb)return null;let e=(eh>0?O.amount*eh/100:0)+(e_?.amount??0);return e<=0?null:p(e,eb)},[eg,O,eb,eh,1,e_,p]),eS=(0,_.useMemo)(()=>!e_||e_.amount<=0?null:s("giftCardOrder.footer.extraCashbackNote",{amount:p(e_.amount,e_.currency)}),[e_,p,s]),ek=O&&eb?`${u(O.amount,eb)}`:"",eT=(0,_.useCallback)(()=>{C.current?.scrollTo({top:0})},[]),eA=(0,_.useCallback)(()=>{R(rL.CardAndAmount),eT()},[eT]),eI=(0,_.useCallback)(()=>{R(rL.OrderSummary),eT()},[eT]),eR=(0,_.useCallback)(()=>{let e;return m&&!!ex&&(e=new URLSearchParams(window.location.search).get(tK),ex?e===ex:null!==e)},[ex,m]),eO=(0,_.useCallback)(()=>{E&&O&&(i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_SELECT_AMOUNT_BUTTON_CLICKED,{offerId:E.id,offerBrandName:E.brandName,selectedAmount:O.amount,quantity:1,currency:eb??""}),eR()&&!tJ(window.history.state)&&window.history.pushState({...tY(window.history.state),[tW]:2,[tZ]:tq},"",window.location.href),eI())},[E,O,1,eb,i,eR,eI]),eD=(0,_.useCallback)(()=>{if(I===rL.Payment){R(rL.OrderSummary),X.current=0;return}eR()&&tJ(window.history.state)?window.history.back():eA()},[I,eR,eA]),eL=(0,_.useCallback)(()=>{setTimeout(()=>{x.invalidateQueries({queryKey:["activation-journeys"]})},2e3)},[x]),eP=(0,_.useCallback)(async()=>{if(E&&O&&eb){i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_INITIATED_PAYMENT,{offerId:E.id,offerBrandName:E.brandName,selectedAmount:O.amount,quantity:1,currency:eb}),F(e_),B(!0);try{let e=await o.giftCards.createGiftCardOrderV2({giftCardOfferOptionId:O.optionId,valueAmount:{amount:O.amount,currency:eb,type:G.Currency},countryCode:h,idempotencyKey:y.current});Q(Number(e.order.id)),"Completed"===e.order.orderStatus?(B(!1),V(!0),eL()):Z(e.paymentSession)?(K(e.paymentSession),B(!1),R(rL.Payment),C.current?.scrollTo({top:0})):q(e.paymentSession)?($(!0),window.location.href=e.paymentSession.redirectUrl):(B(!1),f({title:s("giftCard.payment.error"),description:s("giftCard.payment.errorDescription"),status:"error",duration:5e3}))}catch{$(!1),B(!1),K(null),f({title:s("giftCard.payment.error"),description:s("giftCard.payment.errorDescription"),status:"error",duration:5e3})}}},[E,O,1,eb,h,o,i,f,s,e_,eL]),eM=(0,_.useCallback)(()=>{i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_CHECKOUT_FLOW_LOADED)},[i]),eH=(0,_.useCallback)(e=>{e&&i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_PAYMENT_METHOD_USED,{payment_method:e}),K(null),V(!0),eL()},[i,eL]),eV=(0,_.useCallback)(({code:e,detailCodes:r})=>{i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_PAYMENT_FAILED,{error_code:e,error_detail_codes:r})},[i]),eG=(0,_.useCallback)(async({code:e,detailCodes:r})=>{let t=X.current;if(X.current+=1,i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_PAYMENT_FAILED,{error_code:e,error_detail_codes:r,retry_attempt:t}),!J||!h){K(null),R(rL.OrderSummary);return}if(0===t)try{let e=await o.giftCards.initiateFlowPaymentSession({orderId:J,orderType:"GIFT_CARD_ORDER",countryCode:h});K(e);return}catch{}i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_HPP_FALLBACK_TRIGGERED);try{let e=await o.giftCards.initiateHppPaymentSession({orderId:J,orderType:"GIFT_CARD_ORDER",countryCode:h});if(e.redirectUrl){$(!0),window.location.href=e.redirectUrl;return}}catch{}K(null),R(rL.OrderSummary),f({title:s("giftCard.payment.error"),description:s("giftCard.payment.errorDescription"),status:"error",duration:5e3})},[i,J,h,o,f,s]),eU=(0,_.useCallback)(()=>{$(!1),B(!1)},[]),e$=(0,_.useCallback)(()=>{em&&i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_PURCHASE_FLOW_EXITED,{offerId:em.id,offerBrandName:em.brandName,step:I}),t()},[em,I,t,i]),ez=(0,_.useCallback)(e=>{i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_SUCCESS_VIEW_CARD_CLICKED,{offerId:em?.id??""}),window.location.href=e?`${l}/gift-cards/my-cards?cardId=${encodeURIComponent(e)}`:`${l}/gift-cards/my-cards`},[em,l,i]),eK=(0,_.useCallback)(()=>{i.trackAmplitudeEvent(k.GIFT_CARD_EVENTS.INSTANT_CASHBACK_SUCCESS_CONTINUE_SHOPPING_CLICKED,{offerId:em?.id??""}),t()},[em,t,i]);(0,_.useEffect)(()=>()=>{y.current=crypto.randomUUID()},[]),(0,_.useEffect)(()=>
244{if(I!==rL.CardAndAmount)return;if(!eg)return void er(24);let e=g.current;if(!e)return void er(24);let r=()=>{er(e.getBoundingClientRect().height+20)};if(r(),"u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>{r()});return t.observe(e),()=>{t.disconnect()}},[I,eg,1,ey,ej,ev]),(0,_.useEffect)(()=>{if(I!==rL.OrderSummary)return;let e=b.current;if(!e)return void ei(128);let r=()=>{ei(e.getBoundingClientRect().height+20)};if(r(),"u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>{r()});return t.observe(e),()=>{t.disconnect()}},[I,L,ej]),(0,_.useEffect)(()=>{if(I!==rL.CardAndAmount)return void eu(!1);let e=C.current;if(!e)return;let r=()=>{eu(e.scrollTop>0)};return r(),e.addEventListener("scroll",r,{passive:!0}),()=>{e.removeEventListener("scroll",r)}},[I]);let eW=(0,_.useCallback)(()=>{if(!eR())return;let e=tJ(window.history.state)&&O?rL.OrderSummary:rL.CardAndAmount;R(r=>r===e?r:(window.requestAnimationFrame(()=>{eT()}),e))},[eR,eT,O]);if((0,_.useEffect)(()=>{eW()},[eW]),(0,_.useEffect)(()=>{if(!m)return;let e=()=>{eW()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[m,eW]),(0,_.useEffect)(()=>{if(m)return void ed(tz);let e=C.current;if(!e)return;let r=0,t=()=>{r&&window.cancelAnimationFrame(r),r=window.requestAnimationFrame(()=>{let{clientHeight:r,scrollHeight:t,scrollTop:a}=e,s=t-r;if(0===r||s<=0)return void ed(e=>e.isVisible?tz:e);let n=Math.max(r/t*r,24),o=Math.max(r-n,0),i=s>0?a/s*o:0;ed(e=>e.isVisible&&.5>Math.abs(e.thumbHeight-n)&&.5>Math.abs(e.thumbOffset-i)?e:{isVisible:!0,thumbHeight:n,thumbOffset:i})})};t();let a="u"<typeof ResizeObserver?null:new ResizeObserver(()=>{t()});return a?.observe(e),Array.from(e.children).forEach(e=>{a?.observe(e)}),e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),()=>{r&&window.cancelAnimationFrame(r),a?.disconnect(),e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[m,I,eg,ee,en,L]),H&&E&&O)return(0,v.jsx)("div",{className:tV(m),children:(0,v.jsx)("div",{ref:C,className:tG(m),children:(0,v.jsx)(tI,{offer:E,selectedAmount:O,quantity:1,orderId:J,activationJourneyBonus:P,onViewGiftCard:ez,onContinueShopping:eK})})});if(U&&E&&O&&!m)return(0,v.jsx)("div",{className:tV(m),children:(0,v.jsx)(rV,{offer:E,amountSummary:ek,cashbackEarnings:ev,isMobile:!1,onBack:eU,onClose:e$})});let eZ=I===rL.OrderSummary||I===rL.Payment,eq=eZ||ep;return(0,v.jsxs)("div",{className:tV(m,!0),children:[(0,v.jsxs)("div",{ref:C,className:tG(m),children:[(0,v.jsxs)("div",{className:(0,el.cn)("sticky left-0 right-0 top-[-1px] z-10 px-[16px] py-[12px]","min-h-[56px]",eq?"isolate overflow-hidden bg-transparent":"bg-core-greyBlue-900",eZ&&"mb-[-56px]",eZ&&!m&&tH),children:[eq&&(0,v.jsx)("div",{className:((e,r=!0)=>(0,el.cn)("pointer-events-none absolute inset-0 [background-color:rgba(20,21,35,0.01)]","bg-[linear-gradient(180deg,theme(colors.core.greyBlue.900)_0%,rgba(20,21,35,0)_100%)]","backdrop-blur-[2.5px] [background-clip:padding-box] [contain:paint] [transform:translateZ(0)] [will-change:transform]",r&&!e&&tH,r&&!e&&"[clip-path:inset(0_round_16px_16px_0_0)]",r&&!e&&"[-webkit-mask-image:-webkit-radial-gradient(white,_black)] [mask-image:radial-gradient(white,_black)]"))(m,eZ)}),(0,v.jsxs)("div",{className:"relative z-[1] grid grid-cols-[40px_minmax(0,1fr)_40px] items-center gap-[10px]",children:[(0,v.jsx)("div",{className:tU,children:I===rL.CardAndAmount||W?(0,v.jsx)("div",{className:"h-[32px] w-[32px]"}):(0,v.jsx)("button",{type:"button","aria-label":"Back",onClick:eD,className:t$,children:(0,v.jsx)(rI.FcChevronLeftIcon,{boxSize:"14px",color:"#A9A9CA"})})}),(0,v.jsx)("div",{className:"mx-auto w-full max-w-[264px]",children:(0,v.jsx)(rM,{currentStep:I})}),(0,v.jsx)("div",{className:(0,el.cn)(tU,"justify-end"),children:!W&&(0,v.jsx)("button",{type:"button","aria-label":s("giftCardOrder.common.close"),className:t$,onClick:e$,children:(0,v.jsx)(rs.FcBareCloseIcon,{boxSize:"11px",className:"text-core-greyBlue-50"})})})]})]}),I===rL.CardAndAmount&&(0,v.jsx)(d,{children:(0,v.jsx)(tC,{offer:em,selectedAmount:O,bottomSpacing:ee,onAmountChange:D})}),I===rL.OrderSummary&&E&&O&&(0,v.jsx)(tj,{offer:E,selectedAmount:O,quantity:1,bottomSpacing:en}),I===rL.Payment&&E&&O&&z&&c&&(0,v.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,v.jsx)(tj,{offer:E,selectedAmount:O,quantity:1,bottomSpacing:0,heroOnly:!0}),(0,v.jsxs)("div",{className:"flex flex-1 flex-col px-[16px] pb-[24px]",children:[(0,v.jsx)("p",{className:"m-0 mb-[12px] text-[16px] font-semibold text-core-neutral-0",children:s("giftCardOrder.payment.title")}),(0,v.jsx)("div",{className:"relative z-30",children:(0,v.jsx)(r
2446,{paymentSession:z,publicKey:c.publicKey,environment:c.environment||"production",onReady:eM,onSuccess:eH,onError:eG,onPaymentDeclined:eV,onProcessingChange:Y})}),(0,v.jsxs)("div",{className:"mt-auto flex items-center justify-center gap-[6px] pt-[16px]",children:[(0,v.jsx)(S.FcLightningIcon,{boxSize:"14px",flexShrink:0,className:"text-core-freecashGreen-400"}),(0,v.jsx)("p",{className:"m-0 text-[13px] font-normal leading-[130%] text-[rgba(255,255,255,0.82)]",children:s("giftCardOrder.badges.instantGiftCardDelivery")})]})]})]})]}),!m&&ec.isVisible&&(0,v.jsx)("div",{className:"pointer-events-none absolute bottom-[8px] right-[4px] top-[8px] z-[11] w-[4px] overflow-hidden rounded-full bg-[rgba(255,255,255,0.08)]",children:(0,v.jsx)("div",{className:"absolute right-0 w-full rounded-full bg-[rgba(255,255,255,0.32)]",style:{top:`${ec.thumbOffset}px`,height:`${ec.thumbHeight}px`}})}),I===rL.CardAndAmount&&eg&&(0,v.jsx)(tP,{giftCardValue:eg?ey:null,totalToPay:eg?ej:null,cashbackEarnings:eg?ew:null,extraCashbackNote:eS,quantity:1,ctaLabel:s("giftCardOrder.footer.continue"),onCtaClick:eO,containerRef:g,isCtaDisabled:!eg}),I===rL.OrderSummary&&E&&O&&(0,v.jsx)("div",{ref:b,className:"pointer-events-none absolute bottom-0 left-0 right-0 z-[5]",children:(0,v.jsxs)("div",{className:"pointer-events-auto px-[16px] pb-[10px] pt-[24px] bg-[linear-gradient(180deg,rgba(20,21,35,0)_0%,rgba(20,21,35,0.84)_14px,theme(colors.core.greyBlue.900)_34px,theme(colors.core.greyBlue.900)_100%)]",children:[(0,v.jsx)(eB.Button,{size:"lg",width:"full",onClick:eP,isDisabled:L,isLoading:L,children:s("giftCardOrder.goToCheckout")}),(0,v.jsxs)("div",{className:"flex flex-col items-center gap-[2px] pt-[10px]",children:[(0,v.jsxs)("div",{className:"flex items-center gap-[6px]",children:[(0,v.jsx)(eF.FcShieldCheckIcon,{boxSize:"14px",className:"text-core-greyBlue-50"}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",weight:"medium",color:"core.greyBlue.50",children:s("giftCardOrder.securePaymentShort")})]}),(0,v.jsx)(N.Typography,{as:"p",variant:"xs",align:"center",color:"core.greyBlue.100",children:s("giftCardOrder.securePaymentProvider")})]})]})}),I===rL.Payment&&W&&(0,v.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-[rgba(20,21,35,0.6)] backdrop-blur-[6px]",children:(0,v.jsx)("span",{"aria-hidden":!0,className:"inline-block h-12 w-12 animate-spin rounded-full border-[3px] border-solid border-highlight-grey-200 border-b-transparent border-l-transparent [animation-duration:0.45s]"})}),U&&E&&O&&m&&(0,v.jsx)(rV,{offer:E,amountSummary:ek,cashbackEarnings:ev,isMobile:!0,onBack:eU,onClose:e$})]})}e.s(["normalizeUrl",0,function(e){let r=e.trim();if(!r)return null;if(/^[a-z][a-z0-9+.-]*:\/\//i.test(r)){if(!/^https?:\/\//i.test(r))return null}else r=`https://${r}`;try{let e=new URL(r);if("http:"!==e.protocol&&"https:"!==e.protocol)return null;return e.href}catch{return null}}],549505)},265863,e=>{"use strict";e.s(["buildPriceComparisonTrackingProperties",()=>s,"getUrlDomain",()=>a,"usePriceComparisonTracking",()=>n]);var r=e.i(271645),t=e.i(620494);function a(e){if(!e)return null;try{return new URL(e).hostname.replace(/^www\./,"")}catch{return null}}function s(e={},r={},t){return{country:r.country??t,entry_tab:r.entryTab,is_example:r.isExample,comparison_id:r.comparisonId,url_domain:a(r.sourceUrl),...e}}function n(e={}){let a=(0,t.useDealsContextOptional)(),o=a?.hooks.useUserCountry().country,i=e.country,l=e.entryTab,c=e.isExample,d=e.comparisonId,p=e.sourceUrl;return{track:(0,r.useCallback)((e,r={},t={})=>{let n={country:t.country??i,entryTab:t.entryTab??l,isExample:t.isExample??c,comparisonId:t.comparisonId??d,sourceUrl:t.sourceUrl??p};a?.actions.trackAmplitudeEvent(e,s(r,n,o))},[a,d,i,l,c,p,o])}}},796284,213411,679366,e=>{"use strict";let r="fc-price-comparison-active-id";function t(){try{return window.sessionStorage.getItem(r)}catch{return null}}function a(e){try{e?window.sessionStorage.setItem(r,e):window.sessionStorage.removeItem(r)}catch{}}let s={foregroundId:null},n=new Set;function o(){return{activeId:t(),foregroundId:s.foregroundId}}function i(){let e=o();
244n.forEach(r=>r(e))}e.s(["priceComparisonBackgroundStore",0,{getState:()=>o(),setActive(e){t()!==e&&(a(e),i())},clearActive(){null!==t()&&(a(null),i())},claimForeground(e){s.foregroundId!==e&&(s.foregroundId=e,i())},releaseForeground(e){s.foregroundId===e&&(s.foregroundId=null,i())},subscribe:e=>(n.add(e),()=>{n.delete(e)})}],796284);var l=e.i(996085);function c(e,r){try{return new Intl.NumberFormat(void 0,{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}catch{return`${e.toFixed(2)} ${r}`}}e.s(["formatPrice",0,c],213411);class d extends Error{code;status;errorId;constructor(e,r,t,a=null){super(e),this.code=r,this.status=t,this.errorId=a}}async function p(e,r){try{let t=await e.json(),a=t.error?.message??r,s=t.error?.code??"UNKNOWN";return new d(function(e){if(!e||"u"<typeof document)return e;let r=document.createElement("textarea"),t=e;for(let e=0;e<3;e++){r.innerHTML=t;let e=r.value;if(e===t)return e;t=e}return t}(a),s,e.status,t.error?.errorId??null)}catch{return new d(r,"UNKNOWN",e.status)}}function u(e,r={}){let t={"Content-Type":"application/json",...r},a=e?.trim().toUpperCase()||null;return a&&(t["X-User-Country"]=a),t}async function x(e,r,t,a){let s=a?.isExample===!0?{url:r,isExample:!0}:{url:r},n=await fetch(`${e}/api/products/compare/live`,{method:"POST",headers:u(t),body:JSON.stringify(s)});if(!n.ok)throw await p(n,`Live compare request failed (${n.status})`);return(await n.json()).data.comparisonId}async function m(e,r){let t=await fetch(`${e}/api/products/comparisons/${r}`);if(!t.ok)throw await p(t,`Live comparison snapshot failed (${t.status})`);return(await t.json()).data}async function h(e){let r=await fetch(`${e}/api/products/comparisons/active/latest`);if(!r.ok)throw await p(r,`Latest active comparison failed (${r.status})`);return(await r.json()).data}async function f(e,r){let t=await fetch(`${e}/api/products/recent-searches/${r}/comparison`);if(!t.ok)throw await p(t,`Recent comparison snapshot failed (${t.status})`);return(await t.json()).data}async function C(e,r,t){let a=function(e){if(e.startsWith("http://")||e.startsWith("https://")){let r=new URL(e),t=r.pathname.replace(/\/$/,"");return{namespaceUrl:`${r.origin}/price-comparison`,path:t?`${t}/socket.io`:"/socket.io"}}let r=e.replace(/\/$/,"");return{namespaceUrl:"/price-comparison",path:r?`${r}/socket.io`:"/socket.io"}}(e);await new Promise((e,s)=>{let n=(0,l.io)(a.namespaceUrl,{path:a.path,withCredentials:!0,transports:["polling","websocket"],timeout:6e4,addTrailingSlash:!1}),o=!1,i=e=>{o||(o=!0,n.off("comparison.snapshot",c),n.off("connect_error",p),n.disconnect(),e())},c=r=>{t.onSnapshot(r),"completed"===r.status?i(e):"failed"===r.status&&i(()=>
244s(new d(r.errorMessage??"Live comparison failed",r.errorCode??"COMPARISON_FAILED",500)))},p=e=>{i(()=>s(e))};n.on("connect",()=>{n.emit("joinComparison",{comparisonId:r})}),n.on("comparison.snapshot",c),n.on("connect_error",p),t.onSocket(n)})}function g(e){return e.offers.filter(e=>e.isAccepted)}function b(e){return e.priceWithShipping??e.price}function y(e){return e.reduce((e,r)=>e?b(r)<b(e)?r:e:r,null)}e.s(["ComparisonError",0,d,"acceptedOffers",0,g,"buildCompletedNotificationDescription",0,function(e,r){var t;let a=(e,t)=>r?r(e,t):e,s=e.product,n=s?.price;if(!s||!n)return a("priceComparisonV2.notification.genericDescription");let o=y(g(e)),i=(t=s.name).length<=32?t:`${t.slice(0,29).trimEnd()}...`;if(!o||o.currency!==n.currency)return a("priceComparisonV2.notification.foundOffersForProduct",{product:i});let l=n.amount-b(o);return l<=0?a("priceComparisonV2.notification.alreadyCheapest",{product:i}):a("priceComparisonV2.notification.cheaperFound",{product:i,amount:c(l,n.currency)})},"buildJsonHeaders",0,u,"connectLiveComparison",0,C,"fetchLatestActiveSnapshot",0,h,"fetchLiveSnapshot",0,m,"fetchRecentSearchSnapshot",0,f,"fetchStartLiveComparison",0,x,"getCheapestOffer",0,y,"getOfferTotal",0,b,"parseApiError",0,p],679366)},620494,121734,994397,e=>{"use strict";e.s(["DealsProvider",()=>ru,"useDealsContext",()=>rx,"useDealsContextOptional",()=>rm],620494);var r=e.i(843476),t=e.i(271645),a=e.i(873108);e.s(["DealsSearchModalProvider",()=>ri,"useDealsSearchModal",()=>rl],994397);var s=e.i(618566),n=e.i(540199);e.i(785269);var o=e.i(322831),i=e.i(20993),l=e.i(558002),c=e.i(881801),d=e.i(915427),p=e.i(439584),u=e.i(377813),x=e.i(578343),m=e.i(846987),h=e.i(210757);e.i(739453);var f=e.i(464663),C=e.i(709316),g=e.i(163200),b=e.i(964913),y=e.i(344298),j=e.i(990332),v=e.i(912598),N=e.i(549505),_=e.i(265863),w=e.i(796284),S=e.i(679366);let E=0;function k(){return E+=1,`msg-${E}-${Date.now()}`}var T=e.i(266027),A=e.i(291576),I=e.i(424251);let R=["price-comparison","recent-searches"];var O=e.i(345771),D=e.i(525209),L=e.i(117031);function B(e){try{let r=e.trim();return r.startsWith("www.")&&(r=`https://${r}`),r.startsWith("http")||(r=`https://${r}`),new URL(r).hostname}catch{return e.trim()}}let P=()=>(0,r.jsx)(L.Spinner,{live:!1,size:"xs",color:"core.freecashGreen.500",arcLength:"long"});function M({message:e,onComparePrices:t,onBrandSearch:a,isActionLoading:s=!1,isActionDisabled:n=!1,brandName:i,brandSearchError:l}){let c="user"===e.role,{t:d}=(0,o.useTranslation)("_cashback"),p=!c&&"url_detected"===e.type&&e.detectedUrl&&t,u=!c&&"brand_detected"===e.type&&a,x=c?e.submittedUrl:void 0;return(0,r.jsxs)("div",{className:`flex w-full flex-col gap-[6px] ${c?"items-end":"items-start"}`,children:[(0,r.jsx)("div",{className:`max-w-[80%] rounded-[16px] px-[14px] py-[10px] text-core-neutral-0 ${c?"rounded-bl-[16px] rounded-br-[4px] bg-core-freecashGreen-700":"rounded-bl-[4px] rounded-br-[16px] bg-core-greyBlue-900"}`,children:(0,r.jsx)("p",{className:"m-0 whitespace-pre-wrap text-[14px] leading-[1.5] [word-break:break-word]",children:x?(0,r.jsx)(O.Trans,{t:d,ns:"_cashback",i18nKey:"dealsChat.urlSubmission",components:{urlLink:(0,r.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"text-inherit underline"})}}):e.content})}),p&&(0,r.jsx)("div",{className:"ml-[14px] max-w-full",children:(0,r.jsxs)(y.Button,{size:"sm",leftIcon:D.MagnifyingGlass,onClick:t,isDisabled:n||s,children:[d("dealsChat.comparePrices"),(0,r.jsx)("span",{className:"ml-[6px] min-w-0 truncate font-normal text-core-greyBlue-200",children:B(e.detectedUrl??"")})]})}),u&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"ml-[14px] max-w-full",children:(0,r.jsx)(y.Button,{size:"sm",leftIcon:s?P:D.MagnifyingGlass,onClick:a,isDisabled:n||s,children:(0,r.jsx)("span",{className:"min-w-0 truncate",children:d("dealsChat.showDealsForBrand",{brand:i})})})}),l&&(0,r.jsx)("p",{className:"m-0 pl-[18px] text-[12px] text-core-greyBlue-200",children:l})]})]})}function F(){return(0,r.jsx)("div",{className:"flex w-full justify-start",children:(0,r.jsx)("div",{className:"flex items-center gap-[4px] rounded-[16px] rounded-bl-[4px] bg-core-greyBlue-900 px-[16px] py-[12px]",children:[0,1,2].map(e=>(0,r.jsx)("div",{className:"h-[6px] w-[6px] animate-typingDotBounce rounded-full bg-core-greyBlue-200",style:{animationDelay:`${.15*e}s`}},e))})})}function H({url:e,onClick:t}){let a=B(e),{t:s}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("button",{type:"button",onClick:t,className:"m-0 flex h-auto min-h-[44px] w-full cursor-pointer appearance-none items-center gap-[12px] rounded-[4px] border-0 bg-transparent p-0 [text-align:initial] hover:opacity-80",children:[(0,r.jsx)("div",{className:"flex h-[44px] w-[44px] shrink-0 items-center justify-center rounded-[4px] bg-[rgba(1,214,114,0.15)]",children:(0,r.jsx)(g.FcSearchIcon,{boxSize:"20px",className:"text-core-freecashGreen-500"})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"sm",truncate:!0,weight:"semibold",color:"core.neutral.0",children:s("dealsChat.comparePrices")}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",truncate:!0,color:"core.greyBlue.200",children:a})]})]})}function V(){return(0,r.jsx)(r.Fragment,{children:Array.from({length:4},(e,t)=>(0,r.jsx)("div",{className:"py-[12px] [&:not(:last-child)]:border-b [&:not(:last-child)]:border-solid [&:not(:last-child)]:border-core-greyBlue-300",children:(0,r.jsx)(x.DealsSearchItem,{})},t))})}var G=e.i(298067),U=e.i(891536),$=e.i(956120);let z=[{name:"Apple AirPods Pro 3",imageFileName:"airpods.webp",url:"https://www.apple.com/airpods-pro/"},{name:"Nike Air Force 1 '07",imageFileName:"airforce.webp",url:"https://www.nike.com/t/air-force-1-07-mens-s
244hoes-jBrhbr"},{name:"CeraVe Moisturizing Cream",imageFileName:"cerave.webp",url:"https://www.target.com/p/cerave-daily-moisturizing-face-and-body-lotion-for-normal-to-dry-skin-8211-3-oz/-/A-51206599"}],K=[{name:"Sony WH-1000XM5 Headphones",imageFileName:"sony.webp",url:"https://www.amazon.de/Sony-Over-Ear-Kopfh%C3%B6rer-Anrufqualit%C3%A4t-Hi-Res-Audio-Akkulaufzeit-schwarz/dp/B09Y2MYL5C"},{name:"adidas Samba OG",imageFileName:"samba-og.webp",url:"https://www.snipes.com/de-de/p/adidas-originals-samba-og-sneaker-weiss-23159"},{name:"De'Longhi Magnifica Kaffeevollautomat",imageFileName:"delonghi.webp",url:"https://www.amazon.de/DeLonghi-ECAM-22-110-B-Kaffeevollautomat-Milchaufsch%C3%A4umd%C3%BCse/dp/B00400OMU0"}];function W({showExamples:e=!0,countryCode:t,tagLabel:a,onExampleClick:s,onInfoClick:n}){let{t:i}=(0,o.useTranslation)("_cashback"),{assetsBasePath:l}=rx(),c=(t?.toUpperCase()==="DE"?K:z).map(e=>({name:e.name,imageSrc:`${l}/price-comparison/${e.imageFileName}`,url:e.url})),d=void 0!==a;return(0,r.jsxs)("div",{className:(0,b.cn)("relative flex flex-col gap-[16px] overflow-hidden rounded-[16px] border border-solid border-core-greyBlue-50 bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(127,217,250,0.20))] p-[16px]",d?"pt-[16
244px]":"pt-[36px]"),children:[d?(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center gap-[4px] rounded-[8px] bg-core-blue-200 px-[8px] py-[2px] text-core-freecashGreen-900",children:[(0,r.jsx)($.FcTipBadgeIcon,{boxSize:"14px",className:"text-core-freecashGreen-900"}),(0,r.jsx)(j.Typography,{as:"span",variant:"xs",weight:"semibold",children:a})]}),(0,r.jsx)(Z,{onInfoClick:n})]}):(0,r.jsx)("div",{className:"absolute right-[7px] top-[7px]",children:(0,r.jsx)(Z,{onInfoClick:n})}),(0,r.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:i("priceComparisonV2.promo.title")}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:i("priceComparisonV2.promo.description")})]}),(0,r.jsxs)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:[(0,r.jsx)("span",{className:"text-core-freecashGreen-500",children:"✓"}),` ${i("priceComparisonV2.common.storesCount")}  \xb7  `,(0,r.jsx)("span",{className:"text-core-freecashGreen-500",children:"✓"}),` ${i("priceComparisonV2.common.averageSavings")}`]}),e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-[1px] w-full bg-core-neutral-0-A10"}),(0,r.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xs",weight:"semibold",color:"core.blue.200",children:i("priceComparisonV2.promo.exampleLabel")}),(0,r.jsx)("div",{className:"flex w-full items-start justify-between gap-[12px] overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:c.map(e=>{let t=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{src:e.imageSrc,alt:e.name,className:"h-[48px] w-[48px] shrink-0 rounded-[8px] border border-solid border-highlight-grey-300 object-cover"}),(0,r.jsx)("p",{className:"m-0 text-center text-[12px] font-semibold leading-[20px] text-core-neutral-0 [overflow-wrap:anywhere]",children:e.name})]});return void 0!==s?(0,r.jsx)("button",{type:"button",onClick:()=>s(e.url),className:"m-0 flex w-[100px] shrink-0 cursor-pointer appearance-none flex-col items-center justify-start gap-[8px] border-0 bg-transparent p-0 hover:opacity-80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-core-blue-200",children:t},e.name):(0,r.jsx)("div",{className:"flex w-[100px] shrink-0 flex-col items-center justify-start gap-[8px]",children:t},e.name)})})]})]})]})}function Z({onInfoClick:e}){let{t}=(0,o.useTranslation)("_cashback");return e?(0,r.jsx)("button",{type:"button","aria-label":t("priceComparisonV2.common.infoAriaLabel"),className:"m-0 cursor-pointer appearance-none border-0 bg-transparent p-0",onClick:e,children:(0,r.jsx)(U.FcInfoIcon,{boxSize:"24px",color:"white"})}):(0,r.jsx)(U.FcInfoIcon,{boxSize:"24px",color:"white"})}var q=e.i(452911),Y=e.i(352714);function J({search:e,onClick:t}){let{t:a}=(0,o.useTranslation)("_cashback"),s="queued"===e.latestComparisonStatus||"running"===e.latestComparisonStatus,n="completed"===e.latestComparisonStatus&&null===e.viewedAt,i=s||n?"h-[48px] w-[48px]":"h-[44px] w-[44px]";return(0,r.jsxs)("button",{type:"button",className:"box-border m-0 flex cursor-pointer appearance-none items-center gap-[12px] rounded-[12px] border border-solid border-core-neutral-0-A10 bg-core-greyBlue-900 bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(127,217,250,0.20))] p-[12px] hover:bg-core-greyBlue-500",onClick:()=>t(e),children:[e.imageUrl?(0,r.jsx)("img",{className:(0,b.cn)(i,"flex-shrink-0 rounded-[8px] bg-core-neutral-0-A10 object-cover"),src:e.imageUrl,alt:e.productName}):(0,r.jsx)("div",{className:(0,b.cn)(i,"flex flex-shrink-0 items-center justify-center rounded-[8px] bg-core-neutral-0-A10 object-cover font-bold text-core-neutral-0"),children:e.productName.charAt(0)}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"sm",lines:1,weight:"semibold",color:"core.neutral.0",children:e.productName}),s?(0,r.jsx)(j.Typography,{as:"p",variant:"xs",lines:1,color:"core.greyBlue.25",children:a("priceComparisonV2.browse.loading")}):n?(0,r.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,r.jsx)(Y.FcSuccessCheckIcon,{boxSize:"16px",className:"text-core-freecashGreen-500",flexShrink:0}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",lines:1,weight:"medium",color:"core.freecashGreen.500",children:a("priceComparisonV2.browse.completed")})]}):(0,r.jsx)(j.Typography,{as:"p",variant:"xs",lines:1,color:"core.greyBlue.25",children:function(e,r){let t=new Date(e),a=Date.now()-t.getTime();if(!Number.isFinite(a)||a<0)return r("priceComparisonV2.browse.last
244CheckedRecently","last checked recently");let s=Math.floor(a/6e4);if(s<60)return s<=1?r("priceComparisonV2.browse.lastCheckedJustNow","last checked just now"):r("priceComparisonV2.browse.lastCheckedMinutes",{count:s,defaultValue:`last checked ${s} minutes ago`});let n=Math.floor(s/60);if(n<24)return r("priceComparisonV2.browse.lastCheckedHours",{count:n,defaultValue:`last checked ${n} ${1===n?"hour":"hours"} ago`});let o=Math.floor(n/24);return r("priceComparisonV2.browse.lastCheckedDays",{count:o,defaultValue:`last checked ${o} ${1===o?"day":"days"} ago`})}(e.searchedAt,a)})]}),s?(0,r.jsx)("span",{className:"flex-shrink-0",children:(0,r.jsx)(L.Spinner,{live:!1,size:"md",color:"core.freecashGreen.500",showTrack:!0})}):(0,r.jsx)(q.FcChevronRightIcon,{boxSize:"10px",color:"white",flexShrink:0})]})}function Q({offer:e,position:t,onClick:a}){return(0,r.jsxs)("button",{type:"button",className:"m-0 flex w-[60px] shrink-0 cursor-pointer appearance-none flex-col items-center justify-center gap-[8px] border-0 bg-transparent p-0",onClick:()=>a(e,t),children:[(0,r.jsx)("img",{className:"h-[48px] w-[48px] rounded-[12px] bg-core-neutral-0 object-contain",src:e.thumbnail,alt:e.name}),(0,r.jsx)("p",{className:"m-0 line-clamp-1 max-w-[60px] text-center text-[12px] leading-[20px] text-core-neutral-0",children:e.name})]})}function X({recentOffers:e,isRecentOffersLoading:t,recentProductSearches:a,isRecentProductSearchesLoading:s,showExampleProducts:n,countryCode:i,hidePromoCard:l=!1,onOfferClick:c,onProductSearchClick:d,onExampleProductClick:p,onPromoInfoClick:u}){let{t:x}=(0,o.useTranslation)("_cashback"),m=!s&&0===a.length;return(0,r.jsxs)("div",{className:"relative flex flex-col gap-[24px] pb-[8px]",children:[!l&&(0,r.jsx)(W,{isFirstProductSearch:m,showExamples:n,countryCode:i,tagLabel:x("priceComparisonV2.searchResults.tipTag"),onExampleClick:p,onInfoClick:u}),(0,r.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:x("priceComparisonV2.browse.recentBrandsTitle")}),(0,r.jsx)("div",{className:"flex w-full gap-[24px] overflow-x-auto pb-[2px] [&::-webkit-scrollbar]:hidden [scrollbar-width:none]",children:t?Array.from({length:5}).map((e,t)=>(0,r.jsx)(G.Skeleton,{className:"h-[76px] w-[60px] rounded-[12px]"},t)):e.length>0?e.map((e,t)=>(0,r.jsx)(Q,{offer:e,position:t,onClick:c},e.id)):(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"core.greyBlue.200",children:x("priceComparisonV2.browse.noRecentBrands")})})]}),(s||a.length>0)&&(0,r.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:x("priceComparisonV2.browse.productSearchesTitle")}),(0,r.jsx)("div",{className:"flex flex-col gap-[12px]",children:s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G.Skeleton,{className:"h-[68px] rounded-[12px]"}),(0,r.jsx)(G.Skeleton,{className:"h-[68px] rounded-[12px]"})]}):a.map(e=>(0,r.jsx)(J,{search:e,onClick:d},e.id))})]})]})}var ee=e.i(52949),er=e.i(704503),et=e.i(213411);function ea({offer:e,size:a="28px"}){let[s,n]=(0,t.useState)(!1),o=B(e.shopUrl??e.url),i=o?`https://www.google.com/s2/favicons?domain=${o}&sz=32`:"",l=(e.shop?.[0]??"?").toUpperCase(),c=(0,t.useCallback)(()=>n(!0),[]);return!i||s?(0,r.jsx)("div",{className:"flex shrink-0 items-center justify-center rounded-[8px] bg-core-greyBlue-300",style:{width:a,height:a},children:(0,r.jsx)("p",{className:"m-0 text-[13px] font-bold text-core-greyBlue-50",children:l})}):(0,r.jsx)("img",{className:"shrink-0 rounded-[8px] bg-core-neutral-0 object-contain p-[2px]",style:{width:a,height:a},src:i,alt:`${e.shop} logo`,onError:c})}let es=[{name:"Amazon",domain:"amazon.com"},{name:"Walmart",domain:"walmart.com"},{name:"Best Buy",domain:"bestbuy.com"},{name:"Target",domain:"target.com"},{name:"eBay",domain:"ebay.com"},{name:"Costco",domain:"costco.com"},{name:"B&H Photo",domain:"bhphotovideo.com"},{name:"Newegg",domain:"newegg.com"}],en=[{name:"Amazon.de",domain:"amazon.de"},{name:"Zalando",domain:"zalando.de"},{name:"MediaMarkt",domain:"mediamarkt.de"},{name:"Otto",domain:"otto.de"},{name:"eBay.de",domain:"ebay.de"},{name:"Notebooksbilliger",domain:"notebooksbilliger.de"},{name:"Saturn",domain:"saturn.de"},{name:"idealo.de",domain:"idealo.de"}],eo="flex items-center justify-center gap-[4px] p-[4px] rounded-[32px] bg-core-neutral-0-A10 opacity-80",ei="m-0 text-core-neutral-0 text-[12px] leading-[14px] font-semibold";
244function el({phase:e,sourceUrl:a,country:s}){let{t:n}=(0,o.useTranslation)("_cashback"),i="searching"===e,l=30*!i,c=i?30:100,[d,p]=(0,t.useState)(l),u=s?.trim().toUpperCase()==="DE"?en:es;(0,t.useEffect)(()=>{p(e=>Math.min(Math.max(e,l),c-.5));let e=setInterval(()=>{p(e=>{let r=c-.5;if(e>=r)return e;let t=Math.random()*Math.min(2.5,(c-e)*.12);return Math.min(e+t,r)})},350);return()=>clearInterval(e)},[l,c]);let x=Math.round(d);return(0,r.jsxs)("div",{className:"flex flex-col gap-[16px] p-[16px] rounded-[16px] bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(127,217,250,0.20))] shadow-[0_0_8px_0_#7FD9FA] w-full",children:[(0,r.jsxs)("div",{className:"flex gap-[8px] items-start",children:[(0,r.jsx)("span",{className:"mt-[2px] shrink-0",children:(0,r.jsx)(L.Spinner,{live:!1,size:"sm",color:"core.freecashGreen.500",arcLength:"long"})}),(0,r.jsxs)("div",{className:(0,b.cn)("flex flex-col min-w-0 flex-1",i?"gap-[2px]":"gap-[4px]"),children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",color:"core.neutral.0",weight:"medium",children:n(i?"priceComparisonV2.progress.identifyingTitle":"priceComparisonV2.progress.searchingTitle")}),(0,r.jsx)(j.Typography,{as:"p",variant:"sm",color:"core.greyBlue.25",lines:1,children:i?a||n("priceComparisonV2.progress.readingProductLink"):n("priceComparisonV2.progress.scanningStores")}),!i&&(0,r.jsxs)("div",{className:"flex items-center flex-wrap gap-[8px] mt-[12px]",children:[u.map(e=>(0,r.jsx)(ec,{name:e.name,domain:e.domain},e.name)),(0,r.jsx)("div",{className:eo,children:(0,r.jsx)("p",{className:ei,children:n("priceComparisonV2.progress.moreShops")})})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-[12px] w-full",children:[(0,r.jsx)("div",{className:"flex-1 h-[4px] bg-core-neutral-0-A10 rounded-[32px] overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-core-neutral-0 rounded-[32px] transition-[width] duration-[350ms] ease-linear",style:{width:`${d}%`}})}),(0,r.jsxs)("p",{className:"m-0 text-core-neutral-0 text-[12px] leading-[20px] font-semibold text-right w-[30px]",children:[x,"%"]})]})]})}function ec({name:e,domain:t}){return(0,r.jsxs)("div",{className:eo,children:[(0,r.jsx)("img",{className:"h-[16px] w-[16px] rounded-[32px] object-contain bg-core-neutral-0",src:`https://www.google.com/s2/favicons?domain=${t}&sz=32`,alt:`${e} logo`}),(0,r.jsx)("p",{className:ei,children:e})]})}let ed=()=>void 0;function ep({className:e}){return(0,r.jsx)("div",{className:(0,b.cn)("rounded-[40px] bg-core-greyBlue-400",e)})}function eu({phase:e,sourceUrl:a,product:s,offers:n,liveSnapshot:i,isExample:l=!1,showCompletedHeader:c=!0,country:d,onContinueInBackground:p}){let{t:x}=(0,o.useTranslation)("_cashback"),{track:m}=(0,_.usePriceComparisonTracking)({country:d,isExample:l}),h=(0,t.useMemo)(()=>[...n].sort((e,r)=>e.price-r.price),[n]),f=i?.status==="completed"||"allSet"===e,C=s??i?.product??null,g=a??i?.sourceUrl??C?.sourceUrl??"",y=h[0],v=f&&y?h.slice(1):h,N=C?.price?.amount??null,w=f&&!y,S=(e,r,t)=>{let a=null!==N&&N>e.price?N-e.price:0;m(u.PRICE_COMPARISON_EVENTS.OFFER_CLICKED,{position:r,is_best_deal:t,shop:e.shop,provider:e.source,price:e.price,currency:e.currency,savings_amount:a,offer_url_domain:(0,_.getUrlDomain)(e.url)},{comparisonId:i?.comparisonId,sourceUrl:g,isExample:l})};return(0,r.jsxs)("div",{className:(0,b.cn)("flex w-full flex-col gap-[24px] pb-[16px]",f?"pt-0":"pt-[8px]"),children:[f&&c&&(0,r.jsx)(ex,{isExample:l,product:C}),!f&&(0,r.jsx)(el,{phase:e,sourceUrl:g,country:d}),f||"searching"===e||null==C?f?null:(0,r.jsx)(ef,{onContinueInBackground:p}):(0,r.jsx)(em,{product:C,onContinueInBackground:p,showBackgroundButton:!f}),f&&(0,r.jsx)("div",{className:(0,b.cn)("h-[1px] w-full bg-core-neutral-0-A10",c?"mt-0":"mt-[8px]")}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-[20px]",children:[!w&&(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:f?x("priceComparisonV2.progress.offersFound",{count:h.length,defaultValue:`${h.length} ${1===h.length?"Offer":"Offers"} Found`}):x("priceComparisonV2.progress.allOffers")}),f&&y?(0,r.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,r.jsx)(ey,{offer:y,originalPrice
244:C?.price?.amount??null,onOfferClick:()=>S(y,0,!0)}),v.length>0&&(0,r.jsx)("div",{className:"flex w-full flex-col overflow-hidden rounded-[16px] border border-solid border-core-neutral-0-A10 bg-core-greyBlue-800",children:v.map((e,t)=>(0,r.jsx)(eb,{offer:e,onOfferClick:()=>S(e,t+1,!1)},`${e.shop}-${e.url}-${e.price}`))})]}):w?(0,r.jsx)(eC,{}):(0,r.jsxs)("div",{className:"flex w-full flex-col overflow-hidden rounded-[16px] border border-solid border-core-neutral-0-A10 bg-core-greyBlue-800",children:[Array.from({length:Math.max(4-v.length,0)}).map((e,t)=>(0,r.jsx)(eg,{},`skeleton-${t}`)),v.map((e,t)=>(0,r.jsx)(eb,{offer:e,onOfferClick:()=>S(e,t,!1)},`${e.shop}-${e.url}-${e.price}`))]})]})]})}function ex({isExample:e,product:t,onInfoClick:a}){let{t:s}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)(r.Fragment,{children:[e?(0,r.jsx)(ej,{}):(0,r.jsx)(ev,{onInfoClick:a}),(0,r.jsx)("div",{className:"mb-0 mt-[12px] flex flex-shrink-0 items-center justify-start gap-[16px] py-[8px]",children:(0,r.jsx)("p",{className:"m-0 min-w-0 flex-1 text-[16px] font-semibold leading-[24px] text-core-neutral-0",children:s(e?"priceComparisonV2.common.exampleSearch":"priceComparisonV2.common.productSearch")})}),null!=t&&(0,r.jsx)(em,{product:t,onContinueInBackground:ed,showBackgroundButton:!1})]})}function em({product:e,showBackgroundButton:t,onContinueInBackground:a}){let{t:s}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"flex w-full items-start gap-[16px]",children:[e.imageUrl?(0,r.jsx)("img",{className:"h-[64px] w-[64px] flex-shrink-0 rounded-[12px] bg-core-greyBlue-400 object-cover",src:e.imageUrl,alt:e.name}):(0,r.jsx)("div",{className:"flex h-[64px] w-[64px] flex-shrink-0 items-center justify-center rounded-[12px] bg-core-greyBlue-400 font-bold text-core-neutral-0",children:e.name.charAt(0)}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[16px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xl",lines:2,weight:"semibold",color:"core.neutral.0",children:e.name}),e.price&&(0,r.jsx)(j.Typography,{as:"p",variant:"sm",color:"core.greyBlue.25",children:s("priceComparisonV2.progress.productPriceOnBrand",{price:(0,et.formatPrice)(e.price.amount,e.price.currency),brand:e.brand,defaultValue:`${(0,et.formatPrice)(e.price.amount,e.price.currency)} on ${e.brand}`})})]}),t&&(0,r.jsx)(eh,{onContinueInBackground:a})]})]})}function eh({onContinueInBackground:e}){let{t}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"flex flex-col items-start gap-[8px]",children:[(0,r.jsx)(y.Button,{size:"sm",color:"accent",onClick:e,children:t("priceComparisonV2.progress.continueInBackground")}),(0,r.jsxs)("div",{className:"flex w-full items-center gap-[8px]",children:[(0,r.jsx)(U.FcInfoIcon,{boxSize:"16px",className:"text-core-greyBlue-25"}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:t("priceComparisonV2.progress.readyNotification")})]})]})}function ef({onContinueInBackground:e}){return(0,r.jsxs)("div",{className:"flex w-full items-start gap-[16px]",children:[(0,r.jsx)("div",{className:"h-[64px] w-[64px] flex-shrink-0 rounded-[12px] bg-core-greyBlue-400"}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[16px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-[16px] py-[5px]",children:[(0,r.jsx)(ep,{className:"h-[16px] w-full"}),(0,r.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,r.jsx)(ep,{className:"h-[12px] w-[60px]"}),(0,r.jsx)(ep,{className:"h-[16px] w-[16px]"}),(0,r.jsx)(ep,{className:"h-[12px] w-[60px]"})]})]}),(0,r.jsx)(eh,{onContinueInBackground:e})]})]})}function eC(){let{t:e}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-[12px] overflow-hidden rounded-[16px] border border-solid border-core-neutral-0-A10 bg-core-greyBlue-800 px-[16px] py-[32px]",children:[(0,r.jsx)(er.FcMoneyBagIcon,{boxSize:"24px",className:"text-core-freecashGreen-500"}),(0,r.jsx)(j.Typography,{as:"p",variant:"md",align:"center",weight:"semibold",color:"core.neutral.0",children:e("priceComparisonV2.progress.alreadyBestDeal")})]})}function eg(){return(0,r.jsxs)("div",{className:"flex w-full items-center gap-[16px] border-b border-solid border-core-neutral-0-A10 p-[16px] last:border-b-0",children:[(0,r.jsx)("div",{className:"h-[40px] w-[40px] flex-shrink-0 rounded-[100px] bg-[#2F3043]"}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[8px] py-[4.5px]",children:[(0,r.jsx)(ep,{className:"h-[10px] w-[149px]"}),(0,r.jsx)(ep,{className:"h-[17px] w-[89px]"})]}),(0,r.jsx)(q.FcChevronRightIcon,{boxSize:"10px",color:"white",className:"flex-shrink-0"})]})}function eb({offer:e,onOfferClick:t}){return(0,r.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block hover:no-underline",onClick:t,children:(0,r.jsxs)("div",{className:"flex w-full items-center gap-[16px] border-b border-solid border-core-neutral-0-A10 p-[16px] last:border-b-0",children:[(0,r.jsx)(ea,{offer:e,size:"40px"}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xs",truncate:!0,color:"core.greyBlue.25",children:e.shop}),(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:(0,et.formatPrice)(e.price,e.currency)})]}),(0,r.jsx)(q.FcChevronRightIcon,{boxSize:"10px",color:"white",className:"flex-shrink-0"})]})})}
244function ey({offer:e,originalPrice:t,onOfferClick:a}){let{t:s}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"relative flex w-full flex-col gap-[20px] rounded-[16px] border border-solid border-[#AFFFDA] bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(1,214,118,0.20))] p-[16px] shadow-[0_0_8px_0_#AFFFDA]",children:[(0,r.jsxs)("div",{className:"absolute -top-[13px] right-[15px] flex items-center gap-[8px] rounded-[100px] bg-[#AFFFDA] px-[8px] py-[4px] text-[#00361F]",children:[(0,r.jsx)(er.FcMoneyBagIcon,{boxSize:"16px"}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",weight:"semibold",children:s("priceComparisonV2.progress.bestDealFound")})]}),(0,r.jsxs)("div",{className:"flex w-full items-center gap-[16px]",children:[(0,r.jsx)(ea,{offer:e,size:"40px"}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:e.shop}),(0,r.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.freecashGreen.500",children:(0,et.formatPrice)(e.price,e.currency)}),null!=t&&t>e.price&&(0,r.jsx)("p",{className:"m-0 text-[14px] leading-[22px] text-highlight-grey-300 line-through",children:(0,et.formatPrice)(t,e.currency)})]})]})]}),(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"box-border flex h-[42px] w-full cursor-pointer items-center justify-center gap-[8px] rounded-[8px] bg-core-freecashGreen-500 px-[20px] py-[11px] text-[14px] font-semibold leading-[16px] text-core-greyBlue-900 no-underline shadow-[0_4px_0_0_theme(colors.core.freecashGreen.700)] transition-[box-shadow,transform] duration-100 ease-out hover:bg-core-freecashGreen-500 active:translate-y-[4px] active:shadow-none",onClick:a,children:[s("priceComparisonV2.progress.getDeal")," ",(0,r.jsx)(ee.FcArrowRightIcon,{boxSize:"16px"})]})]})}function ej(){let{t:e}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"relative flex w-full flex-shrink-0 flex-col gap-[16px] overflow-hidden rounded-[16px] border border-solid border-core-greyBlue-50 bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(127,217,250,0.20))] px-[16px] pb-[16px] pt-[36px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:e("priceComparisonV2.progress.tryTitle")}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:e("priceComparisonV2.progress.tryDescription")})]}),(0,r.jsxs)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:[(0,r.jsx)("span",{className:"text-core-freecashGreen-500",children:"✓"}),` ${e("priceComparisonV2.common.storesCount")}  \xb7  `,(0,r.jsx)("span",{className:"text-core-freecashGreen-500",children:"✓"}),` ${e("priceComparisonV2.common.averageSavings")}`]})]})}function ev({onInfoClick:e}){let{t}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"relative flex w-full flex-shrink-0 flex-col gap-[16px] overflow-hidden rounded-[16px] border border-solid border-core-greyBlue-50 bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(127,217,250,0.20))] px-[16px] pb-[16px] pt-[36px]",children:[(0,r.jsx)("button",{type:"button","aria-label":t("priceComparisonV2.common.infoAriaLabel"),className:(0,b.cn)("absolute right-[16px] top-[16px] z-[1] m-0 appearance-none border-0 bg-transparent p-0",e?"cursor-pointer":"cursor-default"),onClick:e,children:(0,r.jsx)(U.FcInfoIcon,{boxSize:"24px",color:"white"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:t("priceComparisonV2.progress.keepSavingTitle")}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:t("priceComparisonV2.progress.keepSavingDescription")})]})]})}var eN=e.i(182908),e_=e.i(35068),ew=e.i(453560),eS=e.i(70796),eE=e.i(509348),ek=e.i(150565);let eT="h-[1px] w-full bg-core-neutral-0-A10",eA="flex w-full appearance-none cursor-pointer items-center gap-[12px] h-[40p
244x] min-h-[40px] m-0 p-0 border-0 bg-transparent text-left hover:opacity-85",eI="h-[40px] w-[40px] flex-shrink-0 rounded-[8px]",eR="m-0 truncate text-[14px] font-semibold leading-[22px] text-core-neutral-0",eO="m-0 truncate text-[12px] font-normal leading-[20px] text-core-greyBlue-25",eD="m-0 truncate text-[12px] font-normal leading-[20px] text-core-freecashGreen-500";function eL({searchTerm:e}){let{t}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,r.jsx)(eN.FcCircleXIcon,{boxSize:"16px",className:"text-core-greyBlue-25",flexShrink:0}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"core.greyBlue.25",children:t("priceComparisonV2.searchResults.noResults",{searchTerm:`"${e}"`,defaultValue:`No cashback or gift cards for "${e}"`,interpolation:{escapeValue:!1}})})]})}function eB(){let{t:e}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:"flex flex-col gap-[16px] rounded-[16px] border border-solid border-core-greyBlue-50 bg-[linear-gradient(to_bottom,rgba(20,21,35,0.20),rgba(127,217,250,0.20))] p-[16px]",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center gap-[4px] self-start rounded-[8px] bg-core-blue-200 px-[8px] py-[2px] text-core-freecashGreen-900",children:[(0,r.jsx)($.FcTipBadgeIcon,{boxSize:"14px",className:"text-core-freecashGreen-900"}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",weight:"semibold",children:e("priceComparisonV2.searchResults.tipTag")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-[4px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.neutral.0",children:e("priceComparisonV2.searchResults.tipTitle")}),(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:e("priceComparisonV2.searchResults.tipDescription")})]}),(0,r.jsxs)(j.Typography,{as:"p",variant:"xs",color:"highlight.grey.200",children:[(0,r.jsx)("span",{className:"text-core-freecashGreen-500",children:"✓"}),` ${e("priceComparisonV2.common.storesCount")}  \xb7  `,(0,r.jsx)("span",{className:"text-core-freecashGreen-500",children:"✓"}),` ${e("priceComparisonV2.common.averageSavings")}`]})]})}function eP({title:e,offers:t,isLoading:a,onClick:s}){return a||0!==t.length?(0,r.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"medium",color:"core.neutral.0",children:e}),(0,r.jsx)("div",{className:"flex w-full gap-[24px] overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:a?Array.from({length:5}).map((e,t)=>(0,r.jsx)(G.Skeleton,{className:"h-[76px] w-[60px] rounded-[12px]"},t)):t.map((e,t)=>(0,r.jsxs)("button",{type:"button",onClick:()=>s(e,t),className:"flex w-[60px] flex-shrink-0 cursor-pointer flex-col items-center justify-center gap-[8px] appearance-none border-0 bg-transparent p-0",children:[(0,r.jsx)("img",{className:"h-[48px] w-[48px] rounded-[12px] bg-core-neutral-0 object-contain",src:e.thumbnail,alt:e.name}),(0,r.jsx)("span",{className:"m-0 max-w-[60px] truncate text-center text-[12px] leading-[20px] text-core-neutral-0",children:e.name})]},e.id))})]}):null}function eM({title:e,isLoading:a=!1,children:s}){if(!a&&0===t.Children.count(s))return null;let n=t.Children.toArray(s);return(0,r.jsxs)("div",{className:"flex flex-col gap-[12px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"medium",color:"core.neutral.0",children:e}),(0,r.jsx)("div",{className:"flex flex-col gap-[12px] rounded-[12px] border border-solid border-core-neutral-0-A10 bg-core-greyBlue-800 p-[12px]",children:a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G.Skeleton,{className:"h-[40px] rounded-[8px]"}),(0,r.jsx)("div",{className:eT}),(0,r.jsx)(G.Skeleton,{className:"h-[40px] rounded-[8px]"}),(0,r.jsx)("div",{className:eT}),(0,r.jsx)(G.Skeleton,{className:"h-[40px] rounded-[8px]"})]}):n.map((e,a)=>(0,r.jsxs)(t.Fragment,{children:[a>0&&(0,r.jsx)("div",{className:eT,"data-testid":"result-row-divider"}),e]},a))})]})}function eF({offer:e,onClick:t}){var a;let{t:s}=(0,o.useTranslation)("_cashback"),n=(0,e_.useCashbackOfferPreviewData)(e),i=(a=n.normalAmount,n.isPercentage?"number"==typeof a?`${(0,eE.formatPercentage)(a)}%`:`${a}
244%`:String(a));return(0,r.jsxs)("button",{type:"button",className:eA,onClick:t,children:[(0,r.jsx)("img",{className:`${eI} object-cover`,src:e.thumbnail,alt:e.name}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center",children:[(0,r.jsx)("p",{className:eR,children:e.name}),(0,r.jsxs)("div",{className:"flex items-center gap-[4px]",children:[n.showUpTo&&(0,r.jsx)("p",{className:eO,children:s("priceComparisonV2.searchResults.upTo")}),(0,r.jsxs)("p",{className:eD,children:[i," ",s("priceComparisonV2.searchResults.cashbackSuffix")]})]})]}),(0,r.jsx)(q.FcChevronRightIcon,{boxSize:"10px",color:"white",flexShrink:0})]})}function eH({offer:e,onClick:t}){let{t:a}=(0,o.useTranslation)("_cashback"),s=(0,eS.useGiftCardPreviewData)(e),{numberToCompactCurrencyStringIn:n}=(0,ew.useFormatCurrency)(),i=(0,ek.getGiftCardPriceRangeText)(e,n);return(0,r.jsxs)("button",{type:"button",className:eA,onClick:t,children:[(0,r.jsx)("img",{className:`${eI} bg-core-neutral-0 object-contain`,src:e.assets.logoImageUrl,alt:e.brandName}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center",children:[(0,r.jsx)("p",{className:eR,children:e.brandName}),(0,r.jsxs)("div",{className:"flex items-center gap-[4px]",children:[s.cashbackPercentage>0&&(0,r.jsxs)("p",{className:eD,children:[s.cashbackPercentage,"% ",a("priceComparisonV2.searchResults.cashbackSuffix")]}),i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:eO,children:"·"}),(0,r.jsx)("p",{className:eO,children:i})]})]})]}),(0,r.jsx)(q.FcChevronRightIcon,{boxSize:"10px",color:"white",flexShrink:0})]})}let eV="flex flex-col gap-[24px] pb-[8px]";function eG({searchTerm:e,cashbackResults:t,giftCardResults:a,popularCashbackOffers:s,popularGiftCards:n,isPopularLoading:i,showExampleProducts:l,countryCode:c,onCashbackClick:d,onGiftCardClick:p,onExampleProductClick:u,onPromoInfoClick:x}){let{t:m}=(0,o.useTranslation)("_cashback");return t.length>0||a.length>0?(0,r.jsxs)("div",{className:eV,children:[t.length>0&&(0,r.jsx)(eM,{title:m("priceComparisonV2.searchResults.cashback"),children:t.map((e,t)=>(0,r.jsx)(eF,{offer:e,onClick:()=>d(e,t)},e.id))}),a.length>0&&(0,r.jsx)(eM,{title:m("priceComparisonV2.searchResults.giftCards"),children:a.map((e,a)=>(0,r.jsx)(eH,{offer:e,onClick:()=>p(e,t.length+a)},e.id))}),(0,r.jsx)(W,{isFirstProductSearch:!1,showExamples:l,countryCode:c,tagLabel:m("priceComparisonV2.searchResults.tipTag"),onExampleClick:u,onInfoClick:x})]}):(0,r.jsxs)("div",{className:eV,children:[(0,r.jsx)(eL,{searchTerm:e}),(0,r.jsx)(eB,{}),(0,r.jsx)(eP,{title:m("priceComparisonV2.searchResults.popularCashbackDeals"),offers:s,isLoading:i,onClick:d}),(0,r.jsx)(eM,{title:m("priceComparisonV2.searchResults.popularGiftCardDeals"),isLoading:i&&0===n.length,children:n.map((e,t)=>(0,r.jsx)(eH,{offer:e,onClick:()=>p(e,t)},e.id))})]})}function eU({popularCashbackOffers:e,popularGiftCards:t,isPopularLoading:a,onCashbackClick:s,onGiftCardClick:n}){let{t:i}=(0,o.useTranslation)("_cashback");return(0,r.jsxs)("div",{className:eV,children:[(0,r.jsx)(eP,{title:i("priceComparisonV2.searchResults.popularCashbackDeals"),offers:e,isLoading:a,onClick:s}),(0,r.jsx)(eM,{title:i("priceComparisonV2.searchResults.popularGiftCardDeals"),isLoading:a&&0===t.length,children:t.map((e,t)=>(0,r.jsx)(eH,{offer:e,onClick:()=>n(e,t)},e.id))})]})}function e$(e){let r=e.trim();return!(r.length<8)&&(/^https?:\/\//i.test(r)||/^www\./i.test(r))}function ez({source:e,entryTab:r,enabled:a=!0}){let{actions:s}=rx(),n=(0,t.useRef)(a),o=(0,t.useRef)(s),i=(0,t.useRef)(e);(0,t.useEffect)(()=>{n.current=a,o.current=s,i.current=e});let l=(0,t.useRef)(r),c=(0,t.useRef)(!1),d=(0,t.useRef)(null),p=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!n.current)return;let e=l.current;return o.current.trackAmplitudeEvent(u.SEARCH_EVENTS.OPENED,{source:i.current,entry_tab:e}),()=>{n.current&&o.current.trackAmplitudeEvent(u.SEARCH_EVENTS.CLOSED,{source:i.current,entry_tab:e,has_clicked_result:p.current})}},[]);let x=(0,t.useCallback)(r=>{n.current&&(r.length>0&&!c.current&&(c.current=!0,s.trackAmplitudeEvent(u.SEARCH_EVENTS.TYPING_STARTED,{source:e,entry_tab:l.current})),""===r&&(d.current=null))},[s,e]);return{handleInputChange:x,trackSearched:(0,t.useCallback)(({rawQuery:r,resultCount:t,resultCountCashback:a,resultCountGiftcard:o})=>{if(!n.current)return;let i=r.toLowerCase().trim();i.length<2||e$(i)||i!==d.current&&(d.current=i,s.trackAmplitudeEvent(u.SEARCH_EVENTS.PERFORMED,{source:e,entry_tab:l.current,query:i,result_count:t,result_count_cashback:a,result_count_giftcard:o}))},[s,e]),trackResultClicked:(0,t.useCallback)(({rawQuery:r,resultCount:t,resultCountCashback:a,resultCountGiftcard:o,position:i,resultType:c,resultBrand:d,resultId:x})=>{if(!n.current)return;p.current=!0;let m=r.toLowerCase().trim();s.trackAmplitudeEvent(u.SEARCH_EVENTS.RESULT_CLICKED,{source:e,entry_tab:l.current,query:m,result_count:t,result_count_cashback:a,result_count_giftcard:o,position:i,result_type:c,result_brand:d,result_id:x})},[s,e])}}var eK=e.i(270927),eW=e.i(590975);function eZ({label:e}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"pointer-events-none absolute left-[16px] top-[66px] z-20 flex items-center gap-[4px] rounded-[8px] bg-core-blue-200 px-[8px] py-[2px] text-core-freecashGreen-900",children:[(0,r.jsx)(eK.FcLinkSimpleIcon,{boxSize:"14px",className:"text-core-freecashGreen-900"}),(0,r.jsx)("p",{className:"m-0 whitespace-nowrap text-[12px] font-medium leading-[20px] text-core-freecashGreen-900",children:e})]}),(0,r.jsx)("div",{className:"pointer-events-none absolute left-0 top-[37px] z-20 text-core-blue-200","aria-hidden":"true",children:(0,r.jsx)(eW.FcPasteUrlArrowIcon,{w:"20px",h:"44px"})})]})}e.s(["ActivationJourneyPromotion",()=>e8],121734);var eq=e.i(326488),eY=e.i(754169),eJ=e.i(490220),eQ=e.i(320163);let eX={cashback:50,giftCard:10},e1={cashback:.1,giftCard:.02};function e0({type:e,onBrowse:t}){let{t:a}=(0,o.useTranslation)("_cashback"),{assetsBasePath:s,hooks:n}=rx(),{numberToCurrencyStringIn:i}=(0,ew.useFormatCurrency)(),{environment:l}=n.useAppEnvironment(),{data:c}=(0,eJ.useActivationJourneys)(),d="cashback"===e?c?.cashback:c?.giftCard;if(!d||d.status!==eQ.ActivationJourneyStatus.ACTIVE)return null;let p=d.milestones.find(e=>e.status===eQ.MilestoneStatus.NOT_STARTED)??d.milestones[0];if(!p)return null;let u=d.milestones.reduce((e,r)=>e+r.reward,0),x=e=>i(e,d.bonusCurrency,{minimumFractionDigits:2,maximumFractionDigits:2}),m=x(u),h=x(p.reward),f=i(p.reward,d.bonusCurrency),C=eX[e],g=C*e1[e],v=g+p.reward,N=x(C),_=x(g),w=x(v),S=`${s}/rewarding-engine`,E="android"===l?`${S}/gift_cards_google_play.png`:`${S}/gift_cards_amazon.png`,k=`activationJourney.promotionPopup.${e}`;return(0,r.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-y-auto overflow-x-hidden rounded-[16px] bg-core-greyBlue-900",children:[(0,r.jsxs)("div",{className:"relative mx-[16px] mt-[16px] flex flex-col items-center rounded-[16px] bg-[linear-gradient(180deg,rgba(255,196,114,0.80)_0%,rgba(255,196,114,0.39)_33%,rgba(255,196,114,0.22)_49%,rgba(255,196,114,0)_100%)] px-[16px] pb-[32px] pt-[16px] text-center md:mx-0 md:mt-0 md:px-0 md:pt-[30px]",children:["giftCard"===e?(0,r.jsxs)("div",{className:"relative mb-[8px] w-full max-w-[320px]",children:[(0,r.jsx)("img",{src:E,alt:"",className:"pointer-events-none block h-auto w-full","aria-hidden":!0}),(0,r.jsx)("div",{className:"pointer-events-none absolute bottom-[calc(12%+4px)] right-[calc(15%-16px)] rotate-[-8.134deg] rounded-[100px] bg-highlight-orange-300 px-[8px] py-[4px] shadow-[0_2px_7px_0_rgba(0,0,0,0.35)]",children:(0,r.jsx)("p",{className:"m-0 whitespace-nowrap text-[12px] font-bold leading-[20px] text-core-greyBlue-900",children:a("activationJourney.promotionPopup.bonusTag",{amount:f})})})]}):(0,r.jsxs)("div",{className:"flex w-full items-end justify-center gap-[36px] px-[16px] mb-[12px]",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-end",children:[(0,r.jsx)("img",{src:`${S}/cash_stash.png`,alt:"",className:"pointer-events-none block h-auto w-[96px]","aria-hidden":!0}),(0,r.jsx)("p",{className:"m-0 whitespace-nowrap text-center text-[10px] font-normal uppercase text-[#D4D5D8]",children:a("activationJourney.promotionPopup.cashback.regularCashbackLabel")})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-end",children:[(0,r.jsxs)("div",{className:"relative w-[96px]",children:[(0,r.jsx)("img",{src:`${S}/cash_stash_improved.png`,alt:"",className:"pointer-events-none block h-auto w-[96px]","aria-hidden":!0}),(0,r.jsx)("img",{src:`${S}/stars_2.png`,alt:"",className:"pointer-events-none absolute left-[calc(50%-10px)] top-[calc(50%-30px)] z-[3] h-auto w-[140px] max-w-none -translate-x-1/2 -translate-y-1/2","aria-hidden":!0}),(0,r.jsx)("div",{className:"pointer-events-none absolute left-[-30px] top-[6px] z-[2] rounded-[100px] bg-highlight-orange-300 px-[8px] py-[4px] shadow-[0_2px_7px_0_rgba(0,0,0,0.35)]",children:(0,r.jsx)("p",{className:"m-0 whitespace-nowrap text-[12px] font-bold leading-[20px] text-core-greyBlue-900",children:a("activationJourney.promotionPopup.bonusTag",{amount:f})})})]}),(0,r.jsx)("p",{className:"m-0 whitespace-nowrap text-center text-[10px] font-normal uppercase text-[#D4D5D8]",children:a("activationJourney.promotionPopup.cashback.yourNextDealLabel")})]})]}),(0,r.jsx)("p",{className:"m-0 mb-[8px] px-[16px] text-[18px] font-semibold leading-[130%] text-core-neutral-0",children:a(`${k}.heroTitle`,{amount:h})}),(0,r.jsx)("p",{className:"m-0 px-[20px] text-[12px] font-normal leading-[150%] text-highlight-grey-200",children:(0,r.jsx)(O.Trans,{t:a,i18nKey:`${k}.heroSubtitle`,components:{starter:(0,r.jsx)("span",{className:"text-[12px] font-normal text-highlight-orange-300"})}})})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col px-[16px] pb-[16px] pt-[12px]",children:[(0,r.jsx)("p",{className:"m-0 mb-[10px] text-[12px] font-normal uppercase tracking-[0.04em] text-core-greyBlue-50",children:a("activationJourney.promotionPopup.howItAddsUpHeading")}),(0,r.jsxs)("div",{className:"mb-[24px] flex w-full flex-col items-start rounded-[16px] border border-solid border-[rgba(82,84,118,0.45)] bg-core-greyBlue-800 p-[16px]",children:[(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:a(`${k}.examplePurchase`,{amount:N})}),(0,r.jsx)(j.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:N})]}),(0,r.jsx)("div",{className:"my-[8px] w-full border-t border-solid border-[rgba(82,84,118,0.45)]"}),(0,r.jsxs)("div",{className:"mb-[3px] flex w-full items-center justify-between",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"core.neutral.0",children:a("activationJourney.promotionPopup.starterBonus")}),(0,r.jsxs)(j.Typography,{as:"p",variant:"xs",color:"highlight.orange.300",children:["+",h]})]}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xs",color:"core.neutral.0",children:a("activationJourney.promotionPopup.regularCashback")}),(0,r.jsxs)(j.Typography,{as:"p",variant:"xs",color:"core.freecashGreen.400",children:["+",_]})]}),(0,r.jsx)("div",{className:"my-[8px] w-full border-t border-solid border-[rgba(82,84,118,0.45)]"}),(0,r.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"sm",weight:"medium",color:"core.neutral.0",children:a("activationJourney.promotionPopup.youEarnBack")}),(0,r.jsx)(j.Typography,{as:"p",variant:"md",weight:"semibold",color:"core.freecashGreen.400",children:w})]})]}),(0,r.jsx)("p",{className:"m-0 mb-[10px] text-[12px] font-normal uppercase tracking-[0.04em] text-core-greyBlue-50",children:a("activationJourney.promotionPopup.howItWorksHeading")}),(0,r.jsx)("div",{className:"relative mb-[36px] overflow-hidden rounded-[12px] border border-solid border-highlight-orange-200 bg-core-greyBlue-900 p-[14px] shadow-[0_3px_0_0_theme(colors.highlight.orange.200)] before:pointer-events-none before:absolute before:left-[calc(50%-60px)] before:top-[-20px] before:h-[80px] before:w-[120px] before:rounded-[50%] before:bg-highlight-orange-300 before:opacity-[0.85] before:blur-[55px] before:content-['']",children:(0,r.jsxs)("div",{className:"relative z-[1]",children:[(0,r.jsx)("p",{className:"m-0 mb-[12px] text-center text-[16px] font-semibold leading-[130%] text-core-neutral-0",children:(0,r.jsx)(O.Trans,{t:a,i18nKey:`${k}.milestonesHeading`,count:d.milestones.length,values:{count:d.milestones.length,amount:m},components:{accent:(0,r.jsx)("span",{className:"text-highlight-orange-300 [font-size:inherit] [font-weight:inherit]"})}})}),(0,r.jsx)("div",{className:"flex w-full flex-wrap items-start justify-around ga
244p-x-[8px] gap-y-[8px]",children:d.milestones.map((e,t)=>{let s=e.status===eQ.MilestoneStatus.COMPLETED,n=e.status===eQ.MilestoneStatus.PENDING,o=s?"text-core-freecashGreen-500":"text-highlight-orange-500";return(0,r.jsxs)("div",{className:"flex min-w-max flex-col items-center gap-[6px]",children:[(0,r.jsxs)("div",{className:"flex min-w-[52px] items-center justify-center gap-[4px] rounded-[999px] bg-highlight-orange-300 px-[8px] py-[2px]",children:[(0,r.jsx)(er.FcMoneyBagIcon,{boxSize:"14px",className:"text-core-greyBlue-900"}),(0,r.jsxs)("p",{className:"m-0 text-[13px] font-normal text-core-greyBlue-900",children:["+",i(e.reward,d.bonusCurrency)]})]}),(0,r.jsx)("p",{className:"m-0 whitespace-nowrap text-[13px] font-normal text-core-neutral-0",children:a("activationJourney.promotionPopup.purchase",{count:t+1,ordinal:!0})}),(s||n)&&(0,r.jsxs)("div",{className:"flex items-center gap-[4px]",children:[(0,r.jsx)(eq.FcCheckmarkOutlineIcon,{boxSize:"14px",className:o}),(0,r.jsx)("p",{className:(0,b.cn)("m-0 whitespace-nowrap text-[11px] font-medium",o),children:s?a("offerModal.paid"):a("offerModal.pending")})]})]},t)})})]})}),(0,r.jsx)("div",{className:"mt-auto",children:(0,r.jsx)(y.Button,{size:"lg",width:"full",rightIcon:eY.ArrowRight,onClick:t,children:a(`${k}.cta`)})})]})]})}var e5=e.i(943020),e2=e.i(952377);function e4({onClose:e,onBrowse:t}){let{t:a}=(0,o.useTranslation)("_cashback"),{assetsBasePath:s}=rx(),{openSearchModal:n}=rl(),i=`${s}/price-comparison-quest/banner.webp`,l=[{title:a("priceComparisonQuestPopup.steps.copy.title"),description:a("priceComparisonQuestPopup.steps.copy.description"),icon:(0,r.jsx)(e5.FcCursorClickIcon,{boxSize:"16px"})},{title:a("priceComparisonQuestPopup.steps.scan.title"),description:a("priceComparisonQuestPopup.steps.scan.description"),icon:(0,r.jsx)(g.FcSearchIcon,{boxSize:"16px"})},{title:a("priceComparisonQuestPopup.steps.save.title"),description:a("priceComparisonQuestPopup.steps.save.description"),icon:(0,r.jsx)(e2.FcHandCoinsIcon,{boxSize:"16px"})}];return(0,r.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-[100dvh] md:h-auto max-h-[100dvh] md:max-h-[90vh] min-h-0 rounded-none md:rounded-[16px] px-[16px] pt-0 md:pt-[16px] text-core-neutral-0 [background:linear-gradient(180deg,rgba(20,21,35,0.05)_0%,rgba(1,214,118,0.05)_100%),#141523]",children:[(0,r.jsx)("div",{className:"relative w-full max-w-[320px] mx-auto min-h-[220px] md:min-h-[240px] flex-shrink-0 flex items-center justify-center rounded-[12px] overflow-hidden pt-[40px] md:pt-0",children:(0,r.jsx)("img",{src:i,alt:a("priceComparisonQuestPopup.bannerAlt"),className:"relative z-[1] w-full max-w-[358px] h-auto block pointer-events-none"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-[20px] flex-1 min-h-0 overflow-y-auto px-[2px] pt-[4px] pb-[8px] [overscroll-behavior:contain] [-webkit-overflow-scrolling:touch] [touch-action:pan-y] [&::-webkit-scrollbar]:w-[4px] [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-core-greyBlue-500 [&::-webkit-scrollbar-thumb]:rounded-[4px]",children:[(0,r.jsxs)("div",{className:"flex flex-col items-stretch gap-[8px]",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"xl",weight:"bold",color:"core.neutral.0",children:a("priceComparisonQuestPopup.title")}),(0,r.jsx)("p",{className:"m-0 text-[14px] font-normal leading-[22px] text-[#CCCCDD]",children:a("priceComparisonQuestPopup.description")})]}),(0,r.jsxs)("div",{className:"relative overflow-hidden flex-shrink-0 rounded-[16px] p-[16px] border border-solid border-[#8F929C] bg-[linear-gradient(180deg,rgba(20,21,35,0.2)_0%,rgba(127,217,250,0.2)_100%)]",children:[(0,r.jsx)("div",{className:"absolute left-[34.5px] top-[64px] bottom-[58px] w-[1px] bg-[linear-gradient(180deg,#BBEAFC_0%,#263748_100%)]"}),(0,r.jsx)("p",{className:"m-0 mb-[20px] text-[16px] font-semibold leading-[24px] text-core-neutral-0",children:a("priceComparisonQuestPopup.howItWorks")}),l.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-[12px] min-h-[48px] [&:not(:last-child)]:mb-[18px]",children:[(0,r.jsx)("div",{className:"flex items-center justify-center flex-shrink-0 w-[40px] h-[40p
244x] rounded-[8px] bg-[#BBEAFC] text-[#141523] relative z-[1]",children:e.icon}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)(j.Typography,{as:"p",variant:"sm",weight:"semibold",color:"core.neutral.0",children:e.title}),(0,r.jsx)("p",{className:"m-0 text-[12px] font-normal leading-[20px] text-[#E4E5E7]",children:e.description})]})]},e.title))]})]}),(0,r.jsx)("div",{className:"flex-shrink-0 pt-[12px] pb-[16px] md:pb-[24px]",children:(0,r.jsx)(y.Button,{size:"lg",width:"full",rightIcon:eY.ArrowRight,onClick:()=>{t?t():(e(),n())},children:a("priceComparisonQuestPopup.cta")})})]})}function e8({type:e,onClose:t,onBrowse:a}){return"priceComparison"===e?(0,r.jsx)(e4,{onClose:t,onBrowse:a}):(0,r.jsx)(e0,{type:e,onBrowse:a})}function e9(e,r){if(e.detectedBrand)return e.detectedBrand;let t=r.indexOf(e);if(t>0){let e=r[t-1];if("user"===e.role)return e.content}return""}function e6({onClose:e}){var a,p;let{hooks:x,featureFlags:b,api:y}=rx(),E=x.useIsMobile(),{t:O}=(0,o.useTranslation)("_cashback"),D=(0,v.useQueryClient)(),L=(0,s.usePathname)(),{country:B}=x.useUserCountry(),P=(0,_.usePriceComparisonTracking)({country:B}),[G,U]=(0,t.useState)("browse"),[$,z]=(0,t.useState)(""),[K,Z]=(0,t.useState)(""),q=(0,t.useRef)(null),Y=(0,t.useRef)(null),J=(0,t.useRef)(null),Q=(0,t.useRef)(!1),{messages:ee,isSending:er,phase:et,extractData:ea,compareData:es,liveSnapshot:en,comparisonUrl:eo,isExampleSearch:ei,sendMessage:el,startComparison:ec,loadRecentComparison:ed,loadComparison:ep,continueInBackground:em}=function(){let{fetchConfig:e,featureFlags:r,hooks:a}=rx(),s=e.nonGamingApiBaseUrl??"",n=!0===r.priceComparisonEnabled,{country:i}=a.useUserCountry(),{t:l}=(0,o.useTranslation)("_cashback"),{track:c}=(0,_.usePriceComparisonTracking)({country:i}),[d,p]=(0,t.useState)([]),[x,m]=(0,t.useState)(!1),[h,f]=(0,t.useState)(null),[C,g]=(0,t.useState)("idle"),[b,y]=(0,t.useState)(null),[j,v]=(0,t.useState)(null),[E,T]=(0,t.useState)(null),[A,I]=(0,t.useState)(null),[R,O]=(0,t.useState)(!1),D=(0,t.useRef)(null),L=(0,t.useRef)(!1),B=(0,t.useRef)(!1),P=(0,t.useRef)(!1),M=(0,t.useRef)(!1),F=(0,t.useRef)(null),H=(0,t.useRef)(null),V=(0,t.useRef)(null),G=(0,t.useCallback)(e=>{V.current!==e&&(V.current&&w.priceComparisonBackgroundStore.releaseForeground(V.current),V.current=e,w.priceComparisonBackgroundStore.claimForeground(e))},[]),U=(0,t.useCallback)(()=>{V.current&&(w.priceComparisonBackgroundStore.releaseForeground(V.current),V.current=null)},[]);(0,t.useEffect)(()=>()=>U(),[U]),(0,t.useEffect)(()=>()=>{F.current?.disconnect(),F.current=null},[]);let $=(0,t.useCallback)((e,r,t)=>{H.current={source:e,isExample:t,sourceUrl:r,startedAt:performance.now(),productIdentifiedTracked:!1,searchStartedTracked:!1,firstResultTracked:!1,completedTracked:!1,failedTracked:!1},c(u.PRICE_COMPARISON_EVENTS.STARTED,{source:e},{sourceUrl:r,isExample:t}),t&&c(u.PRICE_COMPARISON_EVENTS.DEMO_STARTED,{},{sourceUrl:r,isExample:!0})},[c]),z=(0,t.useCallback)(e=>{let r=H.current,t=r?Math.round(performance.now()-r.startedAt):void 0,a=(0,S.acceptedOffers)(e).length;if(T(e),e.product&&(P.current=!0,y(e.product),r&&!r.productIdentifiedTracked&&(H.current={...r,productIdentifiedTracked:!0},c(u.PRICE_COMPARISON_EVENTS.PRODUCT_IDENTIFIED,{brand:e.product.brand,product_category:e.product.category,product_subcategory:e.product.subcategory,has_price:null!==e.product.price,price_currency:e.product.price?.currency,time_to_identify_ms:t},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl}))),v((0,S.acceptedOffers)(e)),"queued"===e.phase||"extracting"===e.phase)g("searching");else if("completed"===e.status){if(g("allSet"),r&&!r.searchStartedTracked&&(H.current={...H.current??r,searchStartedTracked:!0},c(u.PRICE_COMPARISON_EVENTS.SEARCH_STARTED,{provider_count:e.providers.length,provider_names:e.providers.map(e=>e.provider)},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl})),r&&a>0&&!r.firstResultTracked&&(H.current={...H.current??r,firstResultTracked:!0},c(u.PRICE_COMPARISON_EVENTS.FIRST_RESULT,{time_to_first_result_ms:t,accepted_offer_count:a,provider_count:e.providers.length},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl})),r&&!r.completedTracked){let s=(0,S.getCheapestOffer)((0,S.acceptedOffers)(e)),n=e.product?.price?.amount??null,o=s&&null!==n&&n>(0,S.getOfferTotal)(s)?n-(0,S.getOfferTotal)(s):0;H.current={...H.current??r,completedTracked:!0},c(u.PRICE_COMPARISON_EVENTS.COMPLETED,{duration_ms:t,accepted_offer_count:a,raw_offer_count:e.offers.length,provider_count:e.providers.length,successful_provider_count:e.providers.filter(e=>"completed"===e.status).length,failed_provider_count:e.providers.filter(e=>"failed"===e.status).length,best_offer_shop:s?.shop,best_offer_price:s?(0,S.getOfferTotal)(s):void 0,original_price:n,savings_amount:o,currency:s?.currency??e.product?.price?.currency,completed_in_background:B.current,source:r.source},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl}),r.isExample&&c(u.PRICE_COMPARISON_EVENTS.DEMO_COMPLETED,{duration_ms:t},{comparisonId:e.comparisonId,isExample:!0,sourceUrl:e.sourceUrl})}
244w.priceComparisonBackgroundStore.clearActive()}else"failed"===e.status?(g("chat"),r&&!r.failedTracked&&(H.current={...r,failedTracked:!0},c(u.PRICE_COMPARISON_EVENTS.FAILED,{phase:e.phase,error_code:e.errorCode,duration_ms:t,source:r.source},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl})),w.priceComparisonBackgroundStore.clearActive()):(g("comparing"),r&&!r.searchStartedTracked&&(H.current={...r,searchStartedTracked:!0},c(u.PRICE_COMPARISON_EVENTS.SEARCH_STARTED,{provider_count:e.providers.length,provider_names:e.providers.map(e=>e.provider)},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl})),r&&a>0&&!r.firstResultTracked&&(H.current={...H.current??r,firstResultTracked:!0},c(u.PRICE_COMPARISON_EVENTS.FIRST_RESULT,{time_to_first_result_ms:t,accepted_offer_count:a,provider_count:e.providers.length},{comparisonId:e.comparisonId,isExample:r.isExample,sourceUrl:e.sourceUrl})))},[c]);(0,t.useEffect)(()=>{if(!n||!s)return;let e=!1,r=null;return(async()=>{let t=w.priceComparisonBackgroundStore.getState().activeId,a=t?await (0,S.fetchLiveSnapshot)(s,t):await (0,S.fetchLatestActiveSnapshot)(s);!a||e||(z(a),("queued"===a.status||"running"===a.status)&&(G(a.comparisonId),w.priceComparisonBackgroundStore.setActive(a.comparisonId),await (0,S.connectLiveComparison)(s,a.comparisonId,{onSnapshot:r=>{e||z(r)},onSocket:e=>{r=e,F.current=e}})))})().catch(()=>{w.priceComparisonBackgroundStore.clearActive()}),()=>{e=!0,r?.disconnect()}},[z,G,n,s]);let K=(0,t.useCallback)((e,r)=>r?`${e} ${l("dealsChat.errorReference",{ref:r})}`:e,[l]),W=(0,t.useCallback)(async r=>{let t=r.trim();if(!t||M.current)return;L.current=!1,M.current=!0,m(!0);let a={id:k(),role:"user",content:t};p(e=>[...e,a]),f(null),g("chat");try{let r=(0,S.buildJsonHeaders)(i,D.current?{"X-Conversation-Id":D.current}:{}),a=await e.fetch(`${s}/api/chat`,{method:"POST",headers:r,body:JSON.stringify({message:t})});if(!a.ok)throw await (0,S.parseApiError)(a,`Chat request failed (${a.status})`);let n=(await a.json()).data;D.current=n.conversationId;let o={id:k(),role:"assistant",content:n.message,type:n.type,detectedUrl:n.detectedUrl,detectedBrand:n.detectedBrand};p(e=>[...e,o])}catch(t){if(L.current)return;let e=t instanceof S.ComparisonError?t.errorId:null,r={id:k(),role:"assistant",content:K(l("dealsChat.chatErrorPrefix"),e)};p(e=>[...e,r])}finally{M.current=!1,m(!1)}},[K,i,e,s,l]),Z=(0,t.useCallback)(async r=>{let{url:t,errorCode:a,comparisonId:n=null}=r,o={id:k(),role:"user",content:t,submittedUrl:t},c={id:k(),role:"assistant",content:K(l("dealsChat.comparisonFailedPrefix"),n)};p(e=>[...e,o,c]),g("chat");try{let r=(0,S.buildJsonHeaders)(i,D.current?{"X-Conversation-Id":D.current}:{}),o=await e.fetch(`${s}/api/chat`,{method:"POST",headers:r,body:JSON.stringify({message:function(e){let{comparisonId:r,errorCode:t,url:a}=e,s=["[COMPARISON_FAILED]"];return r&&s.push(`comparisonId=${r}`),s.push(`code=${t}`,`url=${a}`),s.join(" ")}({comparisonId:n,errorCode:a,url:t})})});if(!o.ok)return;let l=await o.json();D.current=l.data.conversationId;let c={id:k(),role:"assistant",content:l.data.message};p(e=>[...e,c])}catch{}},[K,i,e,s,l]),q=(0,t.useCallback)(async(e,r)=>{if(M.current)return;F.current?.disconnect(),F.current=null;let t=(0,N.normalizeUrl)(e);if(!t||t.length>2048){L.current=!1,M.current=!0,m(!0);try{await Z({url:e,errorCode:"BAD_REQUEST"})}finally{M.current=!1,m(!1)}return}L.current=!1,B.current=!1,P.current=!1,M.current=!0,m(!0),f(null),y(null),v(null),T(null),I(t),O(r?.isExample===!0),g("searching"),$(r?.isExample===!0?"example_product":"url_input",t,r?.isExample===!0);let a=null;try{let e=await (0,S.fetchStartLiveComparison)(s,t,i,r);a=e,G(e),w.priceComparisonBackgroundStore.setActive(e),await (0,S.connectLiveComparison)(s,e,{onSnapshot:e=>{L.current||z(e)},onSocket:e=>{F.current=e}})}catch(n){if(L.current)return;let e=n instanceof S.ComparisonError?n.code:"UNKNOWN",s=H.current?Math.round(performance.now()-H.current.startedAt):void 0;c(u.PRICE_COMPARISON_EVENTS.FAILED,{phase:"start",error_code:e,duration_ms:s,source:r?.isExample===!0?"example_product":"url_input"},{sourceUrl:t,isExample:r?.isExample===!0}),B.current&&!P.current||await Z({url:t,errorCode:e,comparisonId:a})}finally{M.current=!1,m(!1)}},[z,$,G,i,s,Z,c]),Y=(0,t.useCallback)(async(e,r,t)=>{if(!M.current){F.current?.disconnect(),F.current=null,L.current=!1,B.current=!1,P.current=!1,M.current=!0,m(!0),f(null),y(null),v(null),T(null),I(null),O(!1),g("searching"),$(t,null,!1);try{let t=await e(s,r);if(L.current)return;let a=H.current;a&&("completed"===t.status||"failed"===t.status)&&(H.current={...a,productIdentifiedTracked:!0,searchStartedTracked:!0,firstResultTracked:!0,completedTracked:!0,failedTracked:!0}),z(t),I(t.sourceUrl),"failed"===t.status?await Z({url:t.sourceUrl,errorCode:t.errorCode??"UNKNOWN",comparisonId:t.comparisonId}):("queued"===t.status||"running"===t.status)&&(G(t.comparisonId),w.priceComparisonBackgroun
244dStore.setActive(t.comparisonId),await (0,S.connectLiveComparison)(s,t.comparisonId,{onSnapshot:e=>{L.current||z(e)},onSocket:e=>{F.current=e}}))}catch(t){if(L.current)return;g("chat");let e=t instanceof S.ComparisonError?t.errorId:null,r={id:k(),role:"assistant",content:K(l("dealsChat.recentSearchErrorPrefix"),e)};p(e=>[...e,r])}finally{M.current=!1,m(!1)}}},[K,z,$,G,s,Z,l]),J=(0,t.useCallback)(e=>Y(S.fetchRecentSearchSnapshot,e,"recent_search"),[Y]),Q=(0,t.useCallback)(e=>Y(S.fetchLiveSnapshot,e,"view_results"),[Y]),X=(0,t.useCallback)(()=>{L.current=!0,B.current=!1,P.current=!1,F.current?.disconnect(),F.current=null,U(),w.priceComparisonBackgroundStore.clearActive(),M.current=!1,p([]),f(null),m(!1),g("idle"),y(null),v(null),T(null),I(null),O(!1),D.current=null},[U]);return{messages:d,isSending:x,error:h,phase:C,extractData:b,compareData:j,liveSnapshot:E,comparisonUrl:A,isExampleSearch:R,sendMessage:W,startComparison:q,loadRecentComparison:J,loadComparison:Q,continueInBackground:(0,t.useCallback)(()=>{B.current=!0},[]),resetChat:X}}(),{pendingComparisonId:eh,consumePendingComparison:ef}=rl(),eC=E?6:12,eg=b.cashbackEnabled??!0,eb=!!b.giftCardsEnabled,ey=!0===b.priceComparisonEnabled,ej=L?.includes("/gift-cards")?u.ENTRY_TABS.GIFT_CARDS:u.ENTRY_TABS.CASHBACK,ev=ez({source:u.SEARCH_SOURCES.PRICE_COMPARISON,entryTab:ej}),{trackSearched:eN,trackResultClicked:e_}=ev,{track:ew}=P,eS=e$($),eE="browse"===G&&!!K,ek="browse"===G&&eS&&!!$.trim(),eT=(0,l.useCashbackOffers)({searchTerm:K,limit:eC},{enabled:eE&&eg}),eA=(0,c.useGiftCards)({searchTerm:K,limit:eC},{enabled:eE&&eb}),eI=(0,d.useMyCashbackOffers)({limit:eC,clicked:!0,startStatuses:["PARTIALLY_COMPLETED"],categories:["CASHBACK"]},{enabled:eg}),[eR,eO]=(0,t.useState)(null),[eD,eL]=(0,t.useState)(null),[eB,eP]=(0,t.useState)(null),[eM,eF]=(0,t.useState)(!1),[eH,eV]=(0,t.useState)(!1),[eK,eW]=(0,t.useState)(!1),eq=(0,t.useMemo)(()=>{let e=(eT.data?.items??[]).map(e=>({...e,type:"cashback"})),r=(eA.data?.items??[]).map(e=>({...e,type:"giftcard"})),t=[],a=Math.max(e.length,r.length);for(let s=0;s<a;s++)s<e.length&&t.push(e[s]),s<r.length&&t.push(r[s]);return t},[eT.data,eA.data]),eY=eT.data?.items??[],eJ=eA.data?.items??[],eQ=eI.data?.items??[],eX=!!eE&&(eg&&(eT.isLoading||eT.isFetching)||eb&&(eA.isLoading||eA.isFetching)),e1=eE&&!eX&&0===eq.length||ek,e0=(0,l.useCashbackOffers)({limit:5},{enabled:e1&&eg}),e5=(0,c.useGiftCards)({limit:3},{enabled:e1&&eb}),e2=function(e){let{api:r}=rx();return(0,T.useQuery)({queryKey:R,queryFn:()=>r.priceComparison.getRecentSearches(),retry:I.retryTransientOnly,retryDelay:e=>(0,A.jitteredBackoff)(e),enabled:e?.enabled??!0,refetchInterval:e=>!!e.state.data?.data.some(e=>"queued"===e.latestComparisonStatus||"running"===e.latestComparisonStatus)&&2e3})}({enabled:ey}),e4=e2.data?.data??[],e3=!e2.isLoading&&e4.length>0,e7=(a=e2.isLoading,p=e4.length,!a&&p<3),re="chat"===G&&("searching"===et||"comparing"===et||"allSet"===et||"error"===et),rr=en?.status==="completed"||"allSet"===et;(0,t.useEffect)(()=>{if("browse"!==G||!K||eX)return;let e=eT.data?.items.length??0,r=eA.data?.items.length??0;eN({rawQuery:K,resultCount:e+r,resultCountCashback:e,resultCountGiftcard:r})},[G,K,eT.data,eA.data,eX,eN]),(0,t.useEffect)(()=>{if("browse"!==G)return void Z("");let e=$.trim();if(e$(e))return void Z("");let r=(0,i.boundSearchTerm)(e),t=setTimeout(()=>Z(r),500);return()=>clearTimeout(t)},[$,G]),(0,t.useEffect)(()=>{let e=setTimeout(()=>q.current?.focus(),100);return()=>clearTimeout(e)},[]),(0,t.useEffect)(()=>{ey&&D.invalidateQueries({queryKey:R})},[ey,D]),(0,t.useEffect)(()=>{eh&&!er&&(U("chat"),ep(eh),ef())},[ef,er,ep,eh]),(0,t.useEffect)(()=>{"chat"===G&&Y.current&&(Y.current.scrollTop=Y.current.scrollHeight)},[ee,er,G]),(0,t.useEffect)(()=>{!ey||Q.current||e2.isLoading||eI.isLoading||(Q.current=!0,ew(u.PRICE_COMPARISON_EVENTS.ENTRY_VIEWED,{entry_tab:ej,has_recent_product_searches:e3,has_recent_brands:eQ.length>0}))},[ej,e3,ey,eQ.length,e2.isLoading,eI.isLoading,ew]),(0,t.useEffect)(()=>{if(!ey||!ek)return;let e=$.trim();if(J.current===e)return;J.current=e;let r=(0,_.getUrlDomain)(e);ew(u.PRICE_COMPARISON_EVENTS.URL_ENTERED,{url_domain:r,input_length:e.length}),ew(u.PRICE_COMPARISON_EVENTS.URL_CTA_VIEWED,{url_domain:r})},[$,ey,ek,ew]);let rt=e=>{e?.preventDefault();let r=$.trim();if(!r||er)return;let t=e$(r)&&r.length<=2048;ew(u.PRICE_COMPARISON_EVENTS.CTA_CLICKED,{cta:t?"compare_prices":"chat_message",url_domain:t?(0,_.getUrlDomain)(r):null}),U("chat"),z(""),t?ec(r):el(r)},ra=(e,r)=>{if(eO(e),eF(!0),"browse"!==G||!K)return;let t=eT.data?.items.length??0,a=eA.data?.items.length??0;
244e_({rawQuery:K,resultCount:t+a,resultCountCashback:t,resultCountGiftcard:a,position:r,resultType:"cashback",resultBrand:e.name,resultId:String(e.id)})},rs=(e,r,t)=>{if(eP({name:r,position:t}),eL(e),eV(!0),"browse"!==G||!K)return;let a=eT.data?.items.length??0,s=eA.data?.items.length??0;e_({rawQuery:K,resultCount:a+s,resultCountCashback:a,resultCountGiftcard:s,position:t,resultType:"giftcard",resultBrand:e.brandName,resultId:String(e.id)})},[rn,ro]=(0,t.useState)(null),ri=(0,t.useCallback)(e=>{er||(ew(u.PRICE_COMPARISON_EVENTS.CTA_CLICKED,{cta:"example_product"}),ew(u.PRICE_COMPARISON_EVENTS.DEMO_VIEWED),U("chat"),ec(e,{isExample:!0}))},[er,ec,ew]),rc=(0,t.useCallback)(e=>{ew(u.PRICE_COMPARISON_EVENTS.INFO_CLICKED,{card_type:e}),eW(!0)},[ew]),rd=(0,t.useCallback)(()=>{eW(!1),q.current?.focus()},[]),rp=async e=>{let r=e9(e,ee);if(r&&rn?.status!=="loading"){ro({messageId:e.id,brandName:r,status:"loading"});try{let t=(await y.offers.getOffers({searchTerm:r,limit:1})).items[0];if(!t)return void ro({messageId:e.id,brandName:r,status:"no-results"});ro(null),eO(t),eF(!0)}catch{ro({messageId:e.id,brandName:r,status:"no-results"})}}},ru=re&&!rr,rm=(0,t.useCallback)(()=>{ew(u.PRICE_COMPARISON_EVENTS.BACKGROUND_CONTINUED,{phase:et,comparison_id:en?.comparisonId}),ew(u.PRICE_COMPARISON_EVENTS.CTA_CLICKED,{cta:"continue_in_background"}),em(),e()},[em,en?.comparisonId,e,et,ew]),rh=ee.length>0,rf="browse"===G&&!ek&&!eE,rC=!e2.isLoading&&0===e4.length,rg=null;return rf?rg=O("priceComparisonV2.hints.pasteUrlHere"):re&&rr&&(rg=ei?O("priceComparisonV2.hints.yourTurn"):O("priceComparisonV2.hints.keepSaving")),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col gap-[16px]",children:[(0,r.jsxs)("div",{className:"relative z-[2] flex items-center gap-[16px]",children:[ru?(0,r.jsx)("div",{className:"flex h-[40px] min-w-0 flex-1 items-center",children:(0,r.jsx)(j.Typography,{as:"p",variant:"md",lines:1,weight:"semibold",color:"core.neutral.0",children:ei?O("priceComparisonV2.common.exampleSearch"):O("priceComparisonV2.common.productSearch")})}):(0,r.jsx)("div",{className:"flex-1 overflow-hidden rounded-[32px] border border-solid border-core-neutral-0 bg-core-greyBlue-900",children:(0,r.jsxs)("form",{onSubmit:rt,className:"flex h-[40px] items-center gap-[8px] px-[8px] py-[8px]",children:[(0,r.jsx)(g.FcSearchIcon,{boxSize:"24px",color:"white",flexShrink:0}),(0,r.jsx)("input",{ref:q,value:$,onChange:e=>{z(e.target.value),"browse"===G&&ev.handleInputChange(e.target.value)},placeholder:O("dealsChat.searchPlaceholder"),disabled:er,autoComplete:"off",className:"m-0 h-[22px] w-full flex-1 appearance-none border-0 bg-transparent p-0 text-[14px] text-core-neutral-0 outline-none placeholder:text-core-greyBlue-100 focus:outline-none"}),!!$.trim()&&(0,r.jsx)("button",{type:"button",onClick:()=>{z(""),Z(""),"browse"===G&&ev.handleInputChange(""),q.current?.focus()},className:"m-0 shrink-0 cursor-pointer appearance-none border-0 bg-transparent p-[4px] opacity-70 hover:opacity-100",children:(0,r.jsx)(C.FcCloseIcon,{color:"white",boxSize:"14px"})})]})}),E?(0,r.jsx)("button",{type:"button",onClick:ru?rm:e,className:"m-0 h-[20px] min-w-0 cursor-pointer appearance-none border-0 bg-transparent p-0 text-[12px] font-medium leading-[20px] text-core-greyBlue-50 underline hover:text-core-greyBlue-50",children:O("search.cancel")}):(0,r.jsx)("button",{type:"button",onClick:ru?rm:e,"aria-label":O("search.cancel"),className:"flex h-[31px] w-[31px] md:h-[39px] md:w-[39px] cursor-pointer appearance-none items-center justify-center rounded-full border-[1.25px] border-solid border-[#2F3043] bg-transparent p-0",children:(0,r.jsx)(f.FcBareCloseIcon,{className:"text-core-greyBlue-50",boxSize:"11px"})}),null!==rg&&(0,r.jsx)(eZ,{label:rg})]}),re&&rr&&(0,r.jsx)("div",{className:"px-[2px]",children:(0,r.jsx)(ex,{isExample:ei,product:ea??en?.product??null,onInfoClick:()=>rc(ei?"your_turn":"keep_saving")})}),rf&&(0,r.jsx)("div",{className:"px-[2px]",children:(0,r.jsx)(W,{isFirstProductSearch:rC,showExamples:e7,countryCode:B,onExampleClick:ri,onInfoCl
244ick:()=>rc("paste_url")})}),"browse"===G?(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto px-[2px] [&::-webkit-scrollbar-thumb]:rounded-[4px] [&::-webkit-scrollbar-thumb]:bg-core-greyBlue-500 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-[4px]",children:[ek&&(0,r.jsxs)("div",{className:"flex flex-col gap-[24px] pb-[8px]",children:[(0,r.jsx)(H,{url:$.trim(),onClick:rt}),(0,r.jsx)(eU,{popularCashbackOffers:e0.data?.items??[],popularGiftCards:e5.data?.items??[],isPopularLoading:e0.isLoading||eb&&e5.isLoading,onCashbackClick:ra,onGiftCardClick:(e,r)=>rs(e,u.GIFT_CARD_SOURCES.SEARCH,r)})]}),eE?eX?(0,r.jsx)(V,{}):(0,r.jsx)(eG,{searchTerm:K,cashbackResults:eY,giftCardResults:eJ,popularCashbackOffers:e0.data?.items??[],popularGiftCards:e5.data?.items??[],isPopularLoading:e0.isLoading||eb&&e5.isLoading,showExampleProducts:e7,countryCode:B,onCashbackClick:ra,onGiftCardClick:(e,r)=>rs(e,u.GIFT_CARD_SOURCES.SEARCH,r),onExampleProductClick:ri,onPromoInfoClick:()=>rc("paste_url")}):ek?null:(0,r.jsx)(X,{recentOffers:eQ,isRecentOffersLoading:eI.isLoading,recentProductSearches:e4,isRecentProductSearchesLoading:e2.isLoading,showExampleProducts:e7,countryCode:B,hidePromoCard:rf,onOfferClick:ra,onProductSearchClick:e=>{er||(ew(u.PRICE_COMPARISON_EVENTS.RECENT_SEARCH_CLICKED,{search_id:e.id,latest_comparison_status:e.latestComparisonStatus,latest_comparison_phase:e.latestComparisonPhase,is_unvisited_completed:"completed"===e.latestComparisonStatus&&null===e.viewedAt,url_domain:(0,_.getUrlDomain)(e.sourceUrl)}),ew(u.PRICE_COMPARISON_EVENTS.CTA_CLICKED,{cta:"recent_product_search",search_id:e.id}),U("chat"),ed(e.id))},onExampleProductClick:ri,onPromoInfoClick:()=>rc("paste_url")})]}):re?(0,r.jsx)("div",{className:"flex-1 overflow-y-auto px-[2px] [&::-webkit-scrollbar-thumb]:rounded-[4px] [&::-webkit-scrollbar-thumb]:bg-core-greyBlue-500 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-[4px]",children:(0,r.jsx)(eu,{phase:et,sourceUrl:en?.sourceUrl??eo,product:ea,offers:es??[],liveSnapshot:en,isExample:ei,showCompletedHeader:!1,country:B,onContinueInBackground:rm})}):(0,r.jsxs)("div",{ref:Y,className:"flex-1 overflow-y-auto px-[2px] [&::-webkit-scrollbar-thumb]:rounded-[4px] [&::-webkit-scrollbar-thumb]:bg-core-greyBlue-500 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-[4px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-[12px] pb-[8px]",children:[ee.map(e=>{let t=e.detectedUrl??void 0,a="assistant"===e.role&&"url_detected"===e.type&&!!t,s="assistant"===e.role&&"brand_detected"===e.type,n=s?e9(e,ee):void 0,o=rn?.messageId===e.id&&"loading"===rn.status,i=rn?.messageId===e.id&&"no-results"===rn.status?O("dealsChat.noDealsForBrand",{brand:rn.brandName}):null;return(0,r.jsx)(M,{message:e,onComparePrices:a&&t?()=>{!er&&ec(t)}:void 0,onBrandSearch:s?()=>rp(e):void 0,brandName:n,isActionLoading:o,isActionDisabled:er,brandSearchError:i},e.id)}),er&&(0,r.jsx)(F,{})]}),"chat"===G&&!rh&&!er&&(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center pt-[24px]",children:(0,r.jsx)(j.Typography,{as:"p",variant:"sm",color:"core.greyBlue.200",children:O("dealsChat.waitingMessage")})})]})]}),(0,r.jsx)(m.CashbackOfferDetailsModal,{isOpen:eM,onClose:()=>eF(!1),partialOffer:eR??void 0,source:{name:u.OfferSourceName.CASHBACK_SEARCH}}),(0,r.jsx)(n.DealsModal,{open:eH,hideClose:!0,onClose:()=>eV(!1),size:E?"full":"lg",children:eD&&(0,r.jsx)(h.GiftCardOrderFlow,{partialOffer:eD,onClose:()=>eV(!1),source:eB??void 0})}),(0,r.jsx)(n.DealsModal,{open:eK,onClose:()=>eW(!1),size:E?"full":"md",children:eK&&(0,r.jsx)(e8,{type:"priceComparison",onClose:()=>eW(!1),onBrowse:rd})})]})}function e3({onClose:e}){let{hooks:a,featureFlags:j}=rx(),v=a.useIsMobile(),{t:N}=(0,o.useTranslation)("_cashback"),_=(0,s.usePathname)(),w=(0,t.useRef)(null),[S,E]=(0,t.useState)(""),[k,T]=(0,t.useState)(""),[A,I]=(0,t.useState)(null),[R,O]=(0,t.useState)(null),[D,L]=(0,t.useState)(null),B=S.length>=i.SEARCH_TERM_MAX_LENGTH,[P,M]=(0,t.useState)(!1),[F,H]=(0,t.useState)(!1),V=v?6:12,G=!!k,U=j.cashbackEnabled??!0,$=!!j.giftCardsEnabled,z=!!j.priceComparisonEnabled&&U,K=_?.includes("/gift-cards")?u.ENTRY_TABS.GIFT_CARDS:u.ENTRY_TABS.CASHBACK,{handleInputChange:W,trackSearched:Z,trackResultClicked:q}=ez({source:u.SEARCH_SOURCES.REGULAR,entryTab:K,enabled:!z});(0,t.useEffect)(()=>{let e=setTimeout(()=>w.current?.focus(),100);return()=>clearTimeout(e)},[]),(0,t.useEffect)(()=>{let e=setTimeout(()=>T(S),500);return()=>clearTimeout(e)},[S]);let Y=(0,l.useCashbackOffers)({searchTerm:k,limit:V,source:p.OfferClickSource.CASHBACK_SEARCH},{enabled:G&&U}),J=(0,c.useGiftCards)({searchTerm:k,limit:V},{enabled:G&&$}),Q=(0,d.useMyCashbackOffers)({limit:V,clicked:!0,startStatuses:["PARTIALLY_COMPLETED"],categories:["CASHBACK"]},{enabled:U}),X=(0,t.useMemo)(()=>{let e=(Y.data?.items??[]).map(e=>({...e,type:"cashback"})),r=(J.data?.items??[]).map(e=>({...e,type:"giftcard"})),t=[],a=Math.max(e.length,r.length);for(let s=0;s<a;s++)s<e.length&&t.push(e[s]),s<r.length&&t.push(r[s]);return t},[Y.data,J.data]),ee=Q.data?.items??[],er=!!G&&(U&&(Y.isLoading||Y.isFetching)||$&&(J.isLoading||J.isFetching)),et=G?er:Q.isLoading;(0,t.useEffect)(()=>
244{if(!k||er)return;let e=Y.data?.items.length??0,r=J.data?.items.length??0;Z({rawQuery:k,resultCount:e+r,resultCountCashback:e,resultCountGiftcard:r})},[k,Y.data,J.data,er,Z]);let ea=(e,r)=>{if(I(e),M(!0),window.history.replaceState(window.history.state,"",`${_}?offer=${e.slug}`),!k)return;let t=Y.data?.items.length??0,a=J.data?.items.length??0;q({rawQuery:k,resultCount:t+a,resultCountCashback:t,resultCountGiftcard:a,position:r,resultType:"cashback",resultBrand:e.name,resultId:String(e.id)})},es=()=>{H(!1),window.history.replaceState(window.history.state,"",_)};return z?(0,r.jsx)("div",{className:(0,b.cn)(re,v?"h-[100dvh] p-[16px]":"h-[700px] p-[24px]"),children:(0,r.jsx)(e6,{onClose:e})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(0,b.cn)(re,!v&&"h-[700px]"),children:[(0,r.jsxs)("form",{autoComplete:"off",onSubmit:e=>e.preventDefault(),className:rt,children:[(0,r.jsxs)("div",{className:(0,b.cn)("relative flex w-full rounded-full border border-solid bg-transparent transition-[border-color] duration-200 ease-[ease]",v?"border-core-greyBlue-200":"-ml-[12px] border-transparent"),children:[(0,r.jsx)("div",{className:"pointer-events-none absolute left-0 top-0 flex h-[40px] w-[40px] items-center justify-center",children:(0,r.jsx)(g.FcSearchIcon,{className:"h-[14px] w-[14px] text-core-greyBlue-25 md:h-[16px] md:w-[16px]"})}),(0,r.jsx)("input",{className:"h-[40px] w-full border-none bg-transparent pl-[38px] text-[14px] text-core-neutral-0 placeholder:text-core-greyBlue-200 focus:shadow-none focus:outline-none md:text-[16px]",ref:w,value:S,onChange:e=>{E(e.target.value),W(e.target.value)},maxLength:i.SEARCH_TERM_MAX_LENGTH,placeholder:N("search.placeholder")}),B&&(0,r.jsx)("p",{className:"absolute left-[38px] top-11 m-0 text-[11px] text-core-greyBlue-200",children:N("search.maxLength",{max:i.SEARCH_TERM_MAX_LENGTH})}),v&&(0,r.jsx)("div",{className:(0,b.cn)("absolute right-0 top-0 flex h-[40px] w-[40px] cursor-pointer items-center justify-center transition-opacity duration-200 ease-in-out",S?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onClick:()=>{E(""),T(""),W(""),w.current?.focus()},children:(0,r.jsx)(C.FcCloseIcon,{className:"text-core-greyBlue-25",boxSize:"14px"})})]}),v?(0,r.jsx)(y.Button,{size:"md",onClick:e,children:N("search.cancel")}):(0,r.jsx)("button",{type:"button",onClick:e,"aria-label":N("search.cancel"),className:"flex h-[31px] w-[31px] md:h-[39px] md:w-[39px] cursor-pointer appearance-none items-center justify-center rounded-full border-[1.25px] border-solid border-[#2F3043] bg-transparent p-0",children:(0,r.jsx)(f.FcBareCloseIcon,{className:"text-core-greyBlue-50",boxSize:"11px"})})]}),(0,r.jsx)("div",{className:(0,b.cn)(ra,B&&"mt-5"),children:G?et?(0,r.jsx)(e7,{}):X.length?(0,r.jsx)("div",{className:"flex flex-col",children:X.map((e,t)=>"cashback"===e.type?(0,r.jsx)("div",{className:rr,children:(0,r.jsx)(x.DealsSearchItem,{cashbackOffer:e,source:u.OfferSourceName.CASHBACK_SEARCH,position:t,onClick:()=>ea(e,t)})},`cashback-${e.id}`):(0,r.jsx)("div",{className:rr,children:(0,r.jsx)(x.DealsSearchItem,{giftCardOffer:e,source:u.GIFT_CARD_SOURCES.SEARCH,position:t,onClick:()=>((e,r)=>{if(L(r),O(e),H(!0),window.history.replaceState(window.history.state,"",`${_}?gift-card=${e.id}`),!k)return;let t=Y.data?.items.length??0,a=J.data?.items.length??0;q({rawQuery:k,resultCount:t+a,resultCountCashback:t,resultCountGiftcard:a,position:r.position??0,resultType:"giftcard",resultBrand:e.brandName,resultId:String(e.id)})})(e,{name:u.GIFT_CARD_SOURCES.SEARCH,position:t})})},`giftcard-${e.id}`))}):(0,r.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,r.jsx)("p",{className:"m-0 text-core-greyBlue-200",children:N("emptyResults.title")})}):U?et?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:rs,children:N("search.recentlyViewed.title")}),(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)(e7,{})})]}):ee.length?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:rs,children:N("search.recentlyViewed.title")}),(0,r.jsx)("div",{className:"flex flex-col",children:ee.map((e,t)=>(0,r.jsx)("div",{className:rr,children:(0,r.jsx)(x.DealsSearchItem,{cashbackOffer:e,source:u.OfferSourceName.CASHBACK_MY_OFFERS,position:t,onClick:()=>ea(e,t)})},e.id))})]}):(0,r.jsx)("div",{className:"flex h-full flex-col items-center justify-center gap-[8px]",children:(0,r.jsx)("p",{className:"m-0 text-core-greyBlue-200",children:N("search.recentlyViewed.subtitle")})}):null})]}),(0,r.jsx)(m.CashbackOfferDetailsModal,{isOpen:P,onClose:()=>{M(!1),window.history.replaceState(window.history.state,"",_)},partialOffer:A??void 0,source:{name:u.OfferSourceName.CASHBACK_SEARCH}}),(0,r.jsx)(n.DealsModal,{open:F,hideClose:!0,onClose:es,size:v?"full":"lg",children:R&&(0,r.jsx)(h.GiftCardOrderFlow,{partialOffer:R,onClose:es,source:D??void 0})})]})}function e7(){return(0,r.jsx)(r.Fragment,{children:Array.from({length:4},(e,t)=>(0,r.jsx)("div",{className:rr,children:(0,r.jsx)(x.DealsSearchItem,{})},t))})}let re="flex w-full min-h-0 flex-col",rr="py-[12px] [&:not(:last-child)]:border-b [&:not(:last-child)]:border-solid [&:not(:last-child)]:border-core-greyBlue-300",rt="sticky top-0 z-[1] flex items-center gap-[16px] bg-core-greyBlue-900 px-[16px] pb-[12px] pt-[16px] md:px-[24px] md:pt-[24px]",ra="px-[16px] pb-[16px] md:px-[24px] md:pb-[24px]",rs="m-0 pb-[8px] text-[20px] font-semibold text-core-neutral-0",rn="openPriceComparison",ro=(0,t.createContext)(void 0);function ri({children:e,ownsDeepLink:a}){let{hooks:o,featureFlags:i}=rx(),l=o.useIsMobile(),[c,d]=(0,t.useState)(!1),p=(0,t.useCallback)(()=>{d(!0)},[]),u=(0,t.useCallback)(()=>{d(!1)}
244,[]),x=(0,s.useSearchParams)(),m=(0,s.useRouter)(),h=(0,s.usePathname)(),f=(0,t.useRef)(!1),[C,g]=(0,t.useState)(null),b=(0,t.useCallback)(e=>{g(e),p()},[p]),y=(0,t.useCallback)(()=>{g(null)},[]);(0,t.useEffect)(()=>{if(f.current||!a||!i.priceComparisonEnabled)return;let e=x.get(rn);if(!e)return;f.current=!0,"1"===e||"true"===e?p():b(e);let r=new URLSearchParams(x.toString());r.delete(rn);let t=r.toString();m.replace(t?`${h}?${t}`:h)},[a,i.priceComparisonEnabled,p,b,h,m,x]);let j=(0,t.useMemo)(()=>({isSearchModalOpen:c,openSearchModal:p,closeSearchModal:u,pendingComparisonId:C,openSearchModalWithComparison:b,consumePendingComparison:y}),[u,y,c,p,b,C]);return(0,r.jsxs)(ro.Provider,{value:j,children:[e,(0,r.jsx)(n.DealsModal,{open:c,hideClose:!0,onClose:u,size:l?"full":"xl",children:(0,r.jsx)(e3,{onClose:u})})]})}function rl(){let e=(0,t.useContext)(ro);if(!e)throw Error("useDealsSearchModal must be used within a DealsSearchModalProvider");return e}let rc=(0,t.createContext)(void 0),rd=()=>void 0,rp=({children:e})=>(0,r.jsx)(r.Fragment,{children:e});function ru({basePath:e,assetsBasePath:s,fetchConfig:n,paymentConfig:o,featureFlags:i,hooks:l,handlers:c,actions:d,utils:p,staggerReveal:u,ownsDeepLink:x,children:m}){let h=(0,t.useMemo)(()=>(0,a.createDealsApi)(n,n.fetch),[n]),f=(0,t.useMemo)(()=>({basePath:e,assetsBasePath:s,fetchConfig:n,paymentConfig:o,api:h,featureFlags:i,hooks:{...l,useHideBottomNav:l.useHideBottomNav??rd},handlers:c,actions:d,utils:p,staggerReveal:u??rp}),[e,s,n,o,h,i,l,c,d,p,u]);return(0,r.jsx)(rc.Provider,{value:f,children:(0,r.jsx)(ri,{ownsDeepLink:x,children:m})})}function rx(){let e=(0,t.useContext)(rc);if(!e)throw Error("useDealsContext must be used within a DealsProvider");return e}function rm(){return(0,t.useContext)(rc)}}]);
245
246//# debugId=b983d44b-7abf-9b24-2b6c-4dd5f4ed917d

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.