1import{m as E,u as q,a as z,b as O,b3 as I,r as h,h as M,p as P,i as F,o as b,g as A,f as y,j as t,B as i,T as s,n as j,a0 as L}from"./index-De8g9dvZ.js";import{C as _,a as D}from"./check_small-8U5_aLt3.js";import{C as H}from"./ContactSalesDialog-_z-i2Bd2.js";import{B as W}from"./BillingCycleToggle-BJzejgXf.js";import"./support-B5KpDlMl.js";import"./CustomSelect-DjkLESaO.js";import"./Dialog-Dd9S7jO_.js";import"./ToggleButton-Ct9KqKFK.js";import"./getValidReactChildren-DT-CvGrd.js";const G=E(a=>({container:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",[a.breakpoints.down("sm")]:{gap:"16px"}},header:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"16px",[a.breakpoints.down("sm")]:{justifyContent:"center"}},headerTitle:{fontFamily:"OpenSauceOne-SemiBold",fontSize:"16px !important",color:a.palette.navy[500],[a.breakpoints.down("sm")]:{fontSize:"16px !important"}},featuresGrid:{display:"grid",gap:"8px 24px",[a.breakpoints.down("sm")]:{display:"none",gap:"8px"}},multiCards:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"24px",[a.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gap:"12px"}},singleCard:{borderRadius:"8px",border:"1px solid #E4EBEF",padding:"24px 16px",background:"#fff",display:"flex",flexDirection:"column",gap:"16px",position:"relative",overflow:"hidden",[a.breakpoints.down("sm")]:{padding:"0px",gap:"12px"}},bottomCard:{border:"1px solid #E4EBEF",marginTop:"42px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"8px",background:a.palette.blue[50],"& h4":{marginBottom:"4px"},[a.breakpoints.down("md")]:{marginTop:"24px"},[a.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"flex-start",gap:"16px",marginTop:"16px"}},bottomCardBtn:{"&.MuiButton-root":{height:"40px",padding:"0px 16px",borderRadius:"4px",textTransform:"none",color:a.palette.blue[500],border:`1px solid ${a.palette.blue[500]}`,lineHeight:"14px",minWidth:"116px","&:focus":{outline:"none"},[a.breakpoints.down("sm")]:{width:"100%"}}},subscribeBtn:{"&.MuiButton-root":{width:"100%",height:"40px",borderRadius:"4px",textTransform:"capitalize",backgroundColor:a.palette.blue[500],color:a.palette.common.white,margin:"16px 0px",[a.breakpoints.down("sm")]:{margin:"16px 0px 0px 0px"},"&.Mui-disabled":{color:"#D9E7F7",background:"#A1C4F1"},"&:focus":{outline:"none"}}},titleAndRequest:{"& h6":{fontSize:"14px",marginBottom:"8px",lineHeight:"115%",textTransform:"capitalize",[a.breakpoints.down("sm")]:{marginTop:"12px"}}},titleRow:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},numberReq:{"&&":{fontFamily:"Inter-SemiBold",fontSize:"14px",color:a.palette.blue[500],lineHeight:"normal",marginBottom:"2px"}},reqPerMonthText:{fontFamily:"Inter-Regular !important",fontSize:"12px !important",color:a.palette.blue[500],lineHeight:"normal !important"},priceTag:{"&&":{lineHeight:"normal",fontFamily:"OpenSauceOne-Bold",fontSize:"16px",marginTop:"8px"},"& span:nth-child(1)":{fontFamily:"OpenSauceOne-Bold"},"& span:nth-child(2)":{fontFamily:"OpenSauceOne-SemiBold",fontSize:"14px"}},featureItem:{display:"flex",alignItems:"flex-start",gap:"8px","& img":{marginTop:"6px",height:"9px"}},ribbonTop:{fontFamily:"Inter-SemiBold",position:"absolute",top:"0px",left:"0px",width:"100%",backgroundColor:"#21897E",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",transformOrigin:"center",whiteSpace:"nowrap",pointerEvents:"none"},incardRight:{[a.breakpoints.down("sm")]:{display:"flex",justifyContent:"space-between"}},topCardMobile:{[a.breakpoints.down("sm")]:{padding:"12px"}}})),ee=({plans:a,serviceId:m,serviceName:u,serviceSlug:C,onSubscribeFreePlan:c})=>{const n=G(),w=q(),{user:d}=z(),{refreshCart:S}=O(),T=I(),[k,g]=h.useState(!1),[x,B]=h.useState("monthly"),f=M(a),l=f?P(a,x):a,N=(e,r)=>{if(e==="free"){c==null||c();return}if(m&&e){const o=l==null?void 0:l.find(p=>p.tier===e);o&&T.fireAddToCart({slug:C,displayName:u??""},o),L(m,e,!1,d==null?void 0:d.id,r),S(),w("/payment-journey")}},v=l?l.map((e,r)=>{var o;return{id:r+1,title:e.name||"",requestsPerMonth:((o=e.requests_per_month)==null?void 0:o.toLocaleStr
1ing("en-US"))||"0",price:Number(y(e)),priceLabel:y(e),cycle:A(e),savingsPercent:b(e,a),monthlyEq:F(e),popular:e.is_popular||!1,features:[...(e.features_included||[]).map(p=>({label:p,available:!0})),...(e.features_excluded||[]).map(p=>({label:p,available:!1}))],tier:e.tier,plan_id:e.id}}):[],R=Math.max(0,...(a??[]).map(e=>b(e,a)??0));return t.jsxs(i,{className:n.container,children:[t.jsxs(i,{className:n.header,children:[t.jsx(s,{variant:"h2",className:n.headerTitle,children:"Choose the right plan for you"}),f&&t.jsx(W,{cycle:x,onChange:B,maxSavingsPercent:R,sx:{mb:0}})]}),t.jsxs(i,{children:[t.jsx(i,{className:n.multiCards,children:v.map(e=>{var r;return t.jsx(i,{className:n.singleCard,children:t.jsxs(i,{className:n.topCardMobile,children:[e.popular&&t.jsx(i,{className:n.ribbonTop,children:"MOST POPULAR"}),t.jsxs(i,{className:n.incardRight,children:[t.jsxs(i,{className:n.titleAndRequest,children:[t.jsx(i,{className:n.titleRow,children:t.jsx(s,{variant:"h6",children:e.title})}),t.jsxs(i,{children:[t.jsx(s,{className:n.numberReq,children:e.requestsPerMonth}),t.jsx(s,{className:n.reqPerMonthText,children:"Requests/mo."})]})]}),t.jsxs(s,{className:n.priceTag,children:["$",e.cycle==="yearly"&&e.price!==0?e.monthlyEq:e.priceLabel,e.price!==0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"/"}),t.jsx("span",{children:"month"})]})]}),e.cycle==="yearly"&&e.price!==0&&t.jsxs(s,{sx:{fontSize:"13px",color:"#21897E",fontWeight:600},children:["Billed $",e.priceLabel,"/year",e.savingsPercent?` · save ${e.savingsPercent}%`:""]}),x==="yearly"&&e.price===0&&t.jsx(s,{"aria-hidden":!0,sx:{fontSize:"13px",fontWeight:600,visibility:"hidden"},children:" "})]}),t.jsx(j,{disableRipple:!0,className:n.subscribeBtn,onClick:()=>N(e.tier,e.cycle),children:"Subscribe Now"}),t.jsx(i,{className:n.featuresGrid,children:(r=e==null?void 0:e.features)==null?void 0:r.map(o=>t.jsxs(i,{className:n.featureItem,children:[o.available?t.jsx(i,{component:"img",src:_}):t.jsx(i,{component:"img",src:D}),t.jsx(s,{variant:"body1",children:o.label})]},o.label))})]})},e.id)})}),t.jsxs(i,{className:n.bottomCard,children:[t.jsxs(i,{children:[t.jsx(s,{variant:"h4",children:"Not sure which plan suits your needs?"}),t.jsx(s,{variant:"h5",children:"Let us understand your requirements and provide you with a customized plan tailored specifically for you."})]}),t.jsx(j,{disableRipple:!0,className:n.bottomCardBtn,onClick:()=>g(!0),children:"Get a Quote"})]})]}),t.jsx(H,{open:k,onClose:()=>g(!1),defaultApi:u})]})};export{ee as default}; 2//# sourceMappingURL=PlansTabUnsubscribed-CSO6vfli.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.