1import{bc as X,bm as F,ba as d,eP as I}from"./index-fcf70dca.js";import{v as R}from"./productSelect-lQPSHayo-b2f97a7e.js";import{J as W}from"./useProductSelectBodyTemplate-Cez1MV5G-6d3d6010.js";import{i as A}from"./index-DbIIzTdQ-39691089.js";import{T as M}from"./index-23oFrcn6-6c027059.js";import"./index-Cn8nT1Vv-f5996667.js";const J=X(F).withConfig({displayName:"ProductSelectCards__ProductSelectCardsWrapper",componentId:"sc-1mkbl22-0"})(["display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:",";margin:0 auto;width:100%;max-width:",";"],({isFirstBlock:a=!1,bottomPadding:p="32"})=>`${a?24:0}px 0 ${p}px`,({maxWidth:a=592})=>`${a}px`),z=X.ul.withConfig({displayName:"ProductSelectCards__ProductsListWrapper",componentId:"sc-1mkbl22-1"})(["display:flex;flex-direction:column;gap:16px;max-width:400px;margin:0 auto;"]);function V({config:a,productsFull:p,currentProduct:v,actions:C,productsDiscount:f,screenId:_,trackScreenEvent:$}){const{productCards:m,bottomPadding:L,isRestorePurchaseDisplayed:k,$restorePurchaseText:B,restorePurchaseTextColorHEX:S,restorePurchaseTextMt:w,restorePurchaseTextMb:y}=a,{isFinishedTimer:j,currency:x,localProducts:H,handleCardClick:N}=W({screenId:_,currentProduct:v,actions:C,productsDiscount:f,productsFull:p,trackScreenEvent:$});return d.jsx(J,{bottomPadding:L,backgroundColor:"surface-main",maxWidth:560,dataLocator:"productSelectContainer",children:d.jsxs("div",{id:"t__product_select",children:[d.jsx(z,{children:H==null?void 0:H.map((l,P)=>{var h,T,b,g,E;const i=I(v,l),t=m==null?void 0:m[Number(l==null?void 0:l.position)],e=t==null?void 0:t.stylization,o=t==null?void 0:t.decoration,r=t==null?void 0:t.mainBlock,c=(h=e==null?void 0:e.upHeaderLabelColor)==null?void 0:h[i?"active":"inactive"],D=(T=e==null?void 0:e.cardBadgeColor)==null?void 0:T[i?"active":"inactive"],u=(b=e==null?void 0:e.productHeaderColor)==null?void 0:b[i?"active":"inactive"],n=(g=e==null?void 0:e.mainBlockSurfaceColor)==null?void 0:g[i?"active":"inactive"],s=(E=e==null?void 0:e.productTagLabelColor)==null?void 0:E[i?"active":"inactive"];return d.jsx("li",{"data-locator":`productCard${P}`,children:d.jsx(A,{productId:l.id,textProps:{headerLabel:o==null?void 0:o.$productHeaderText,name:r==null?void 0:r.$productNameText,cardsLabel:o==null?void 0:o.$cardBadgeText,oldPriceText:r==null?void 0:r.$oldPriceText,newPriceText:r==null?void 0:r.$newPriceText,oldPricePerStateText:r==null?void 0:r.$oldPricePerStateText,upHeaderText:o==null?void 0:o.$upHeaderText,upHeaderLabelText:o==null?void 0:o.$upHeaderLabelText,productHeaderText:o==null?void 0:o.$productHeaderText},priceTagData:r==null?void 0:r.priceTag,colorHEXProps:{upHeaderLabelBgColorHEX:c==null?void 0:c.bgColorHEX,upHeaderLabelTextColorHEX:c==null?void 0:c.textColorHEX,borderColorHEX:e==null?void 0:e.dotAndBorderColorHEX,checkBoxColorHEX:e==null?void 0:e.dotAndBorderColorHEX,innerLabelColorsHEX:D,upHeaderTextColorHEX:e==null?void 0:e.upHeaderTextColorHEX,productHeaderBgColorHEX:u==null?void 0:u.bgColorHEX,productHeaderTextColorHEX:u==null?void 0:u.textColorHEX,productNameColorHEX:n==null?void 0:n.productNameColorHex,mainBlockBgColorHEX:n==null?void 0:n.bgColorHEX,productTagLabelTextColorHEX:s==null?void 0:s.textColorHex,productTagLabelBgColorHEX:s==null?void 0:s.bgColorHEX},checked:i,isFinished:!!j,handleCardClick:()=>N(l),isLatam:R(x==null?void 0:x.name),currency:x,pricePerState:l.without_rate_intro_price_per_state||l.without_rate_full_price_per_state,priceColumn:t==null?void 0:t.priceColumn})},P)})}),d.jsx(M,{config:{isRestorePurchaseDisplayed:k,$restorePurchaseText:B,restorePurchaseTextColorHEX:S,restorePurchaseTextMt:w,restorePurchaseTextMb:y},initRestorePurchase:C.initRestorePurchase})]})})}export{V as default};
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.