1"use strict";(self.webpackChunkm2o_ts=self.webpackChunkm2o_ts||[]).push([[9748],{59438:(e,a,t)=>{t.r(a),t.d(a,{default:()=>b});var s=t(99584),n=t(50208),c=t(99504),l=t(16940),i=t(97652),r=t(21912),_=t(7564),d=t(59472),o=t(58788),m=t(1916),P=t(90872),S=t(7204);const p="List_listWrapper__2vp4K",N="List_header__rSv1X",C="List_list__19-gZ",u="List_useParentButton__-09eE",T="List_breadcrumbs__StlVe";var I=t(30160),R=t(33832),U=t(23520),h=t(70920),O=t(55984);const E="CustomPlan_custom__qUZaa",y="CustomPlan_header__4AqR3",L="CustomPlan_modal__6Qza2",x="CustomPlan_button__ZxHsI",j="CustomPlan_contacts__-SsnK",A="CustomPlan_contactsItem__IgYxG",M="CustomPlan_icon__7PrZq";var B=t(97884);const v=()=>{const[e,a,t]=(0,h.c)();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:E,children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("p",{className:y,children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_HEADER")}),(0,B.jsx)("p",{children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_TEXT")})]}),(0,B.jsx)("p",{children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_LINK")}),(0,B.jsx)(r.q,{id:"plan-contact-us",color:r.q.COLOR.SECONDARY,className:x,onClick:a,children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CONTACT_US")})]}),(0,B.jsxs)(O.c,{className:L,open:e,onCancel:t,onClose:t,title:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_POPUP.TITLE"),footer:null,children:[(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_POPUP.TEXT"),(0,B.jsxs)("div",{className:j,children:[(0,B.jsxs)("a",{href:"mailto:".concat((0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_POPUP.CONTACT_EMAIL")),className:A,children:[(0,B.jsx)(r.us,{icon:U.Y.faEnvelope,style:U.O.solid,className:M}),(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_POPUP.CONTACT_EMAIL")]}),(0,B.jsxs)("a",{href:"tel:".concat((0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_POPUP.CONTACT_PHONE")),className:A,children:[(0,B.jsx)(r.us,{icon:U.Y.faPhone,style:U.O.solid,className:M}),(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CUSTOM_POPUP.CONTACT_PHONE")]})]})]})]})};var k=t(96236);const b=()=>
1{const[e,a]=(0,s.useState)(null),t=(0,n.w1)(o.ky),U=(0,n.w1)(S.S8),h=(0,n.w1)(o.uM),O=(0,n.w1)(o.wV),E=(0,n.w1)(o.uA),y=!!(0,n.w1)(o.ky),L=(0,n.OY)(),x=(0,s.useCallback)((async e=>{t&&t.planId&&t.planId!==e.id?L((0,d.gt)(e,U,(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("p",{children:(0,m.t)("M_USER.SUBSCRIPTION.CONFIRM_NEW.TEXT_1")}),(0,B.jsx)("p",{children:(0,m.t)("M_USER.SUBSCRIPTION.CONFIRM_NEW.TEXT_2",{help:(0,B.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:R.nL.planChangeHelp,className:"link",children:(0,m.t)("M_USER.SUBSCRIPTION.CONFIRM_NEW.HELP")},"help")})})]}))):a(e)}),[t,a,L,U]),j=(0,s.useCallback)((()=>a(null)),[a]),A=(0,s.useCallback)((()=>i.c.push(P.SY.user.company.plan.current(U))),[U]),M=(0,s.useCallback)((()=>{(async()=>{await L((0,d.Cg)({planUsage:R.G8.PARENT,useBalance:!0})),A(),L((0,_.i2)((0,m.t)("M_USER.SUBSCRIPTION.SHARE_UPDATED")))})()}),[L,A]);return(0,B.jsxs)("div",{className:p,children:[y&&(0,B.jsx)(c.c,{items:[{title:(0,B.jsx)(l.Af,{to:P.SY.user.company.plan.current(U),children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.TITLE_CURRENT")})},{title:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CHANGE_PLAN_TITLE")}],className:T}),(0,B.jsx)("div",{className:N,children:E&&(0,B.jsx)(r.q,{id:"plan-use-parent",color:r.q.COLOR.SECONDARY,onClick:M,className:u,children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.USE_PARENT")})}),(0,B.jsxs)(r._g,{loading:h,children:[(0,B.jsx)("div",{className:C,children:O.map((e=>(0,B.jsx)(I.c,{selected:!!t&&t.planId===e.id,item:e,onSelect:x},e.id)))}),(0,B.jsx)(v,{}),!!e&&(0,B.jsx)(k.c,{plan:e,currentPlan:t||void 0,onClose:j,onSelect:A})]})]})}},52708:(e,a,t)=>{t.d(a,{c:()=>d});var s=t(99584),n=t(21912),c=t(23520),l=t(10612),i=t(98072),r=t(97884);const _=e=>{let{item:a}=e;return(0,r.jsx)(r.Fragment,{children:a.features.map((e=>(0,r.jsxs)("div",{className:i.c.feature,children:[(0,r.jsx)(n.us,{icon:c.Y.faCheck,style:c.O.regular,className:i.c.check}),(0,r.jsx)("div",{children:e.name.replace("${softLimit}",String((0,l.iG)(e.softLimit||0)||""))})]},e.id)))})},d=(0,s.memo)(_)},30160:(e,a,t)=>{t.d(a,{c:()=>P});var s=t(99584),n=t(56472),c=t.n(n),l=t(75500),i=t(10612),r=t(21912),_=t(1916),d=t(98072),o=t(52708),m=t(97884);const P=e=>{let{selected:a,item:t,onSelect:n,className:P,isPopular:S,showSelectButton:p}=e;const N=(0,s.useCallback)((()=>n(t)),[t,n]);return(0,m.jsxs)("div",{className:c()(d.c.item,S&&d.c.itemPopular,P),children:[a&&(0,m.jsxs)("div",{className:d.c.current,children:[(0,m.jsx)(l.c.Ribbon,{color:"#31cb85",text:(0,_.t)("M_USER.SUBSCRIPTION.PLAN.CURRENT")})," "]}),S&&(0,m.jsx)("span",{className:d.c.popularSign,children:(0,_.t)("M_USER.SUBSCRIPTION.PLAN.POPULAR")}),(0,m.jsx)("div",{className:d.c.title,children:t.name}),(0,m.jsx)("div",{className:d.c.planDescription,children:t.description}),(0,m.jsx)("div",{className:d.c.price,children:"$".concat((0,i.iG)(t.price))}),(0,m.jsx)("div",{className:d.c.perMonth,children:(0,_.t)("M_USER.SUBSCRIPTION.PLAN.PER_MONTH")}),(0,m.jsx)("div",{className:d.c.description,children:(0,m.jsx)(o.c,{item:t})}),(p||!a)&&(0,m.jsx)(r.q,{id:"plan-list-item-select-".concat(t.id),className:d.c.select,color:r.q.COLOR.SECONDARY,onClick:N,children:(0,_.t)("M_USER.SUBSCRIPTION.PLAN.SELECT")})]},t.id)}},96236:(e,a,t)=>{t.d(a,{c:()=>u});var s=t(99584),n=t(55984),c=t(87076),l=t(64424),i=t(50208),r=t(21912),_=t(59472),d=t(18572),o=t(21508),m=t(1916);const P={payment:"PlanSelectPaymentType_payment__RfUQJ",details:"PlanSelectPaymentType_details__seZ2H",editDetails:"PlanSelectPaymentType_editDetails__lRnHi",label:"PlanSelectPaymentType_label__JIOhl",planName:"PlanSelectPaymentType_planName__5AazE",actions:"PlanSelectPaymentType_actions__ldkmd",paymentMethod:"PlanSelectPaymentType_paymentMethod__+fNWw"};var S=t(69096),p=t(33832),N=t(97884);const C={payment:{paymentType:p.ch.account,useBalance:!0}},u=e=>{let{onClose:a,onSelect:t,plan:u,currentPlan:T}=e;T&&(C.payment.paymentType=T.paymentType||p.ch.account,C.payment.paymentCardId=T.paymentCardId,C.payment.useBalance=T.useBalance);const I=(0,i.w1)(d.YJ),R=(0,s.useCallback)((e=>{try{(0,l.aY)(e,S.c,!0,{companyRemainingBudget:I,cost:u.price})}catch(a){return(0,l.IP)(a)}return{}}),[I,u.price]),U=(0,i.OY)(),h=(0,s.useCallback)((async(e,a)=>{let{setSubmitting:s}=a;await U((0,_.Cg)(((e,a,t)=>{let{payment:s}=e;const n={updatedAt:t?t.updatedAt:void 0,status:t?t.status:"active",planUsage:p.G8.HIERARCHY,planId:a.id,useBalance:!0};return s.paymentType===p.ch.account?n.paymentType=void 0:(n.paymentType=s.paymentType,s.paymentType===p.ch.creditCard&&(n.paymentCardId=s.paymentCardId,n.useBalance=s.useBalance)),n})(e,u,T))),s(!1),t()}),[U,T,u,t]);return(0,N.jsx)(n.c,{width:640,open:!0,onCancel:a,footer:null,title:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.PAYMENT_METHOD_TITLE"),centered:!0,children:(0,N.jsx)("div",{children:(0,N.jsxs)("div",{className:P.payment,children:[(0,N.jsxs)("div",{className:P.details,children:[(0,N.jsx)("div",{className:P.label,children:(0,m.t)("M_USER.SUBSCRIPTION.PLAN.CURRENT_PLAN")}),(0,N.jsx)("div",{className:P.planName,children:"".concat(u.name," ").concat((0,m.t)("M_USER.SUBSCRIPTION.PLAN.TITLE_CURRENT")," - $").concat(u.price).concat((0,m.t)("M_USER.SUBSCRIPTION.PLAN.PER_MONTH"))})]}),(0,N.jsx)(l.QJ,{initialValues:C,onSubmit:h,validate:R,children:e=>{let{submitForm:t,isSubmitting:s}=e;
1return(0,N.jsxs)(l.QF,{children:[(0,N.jsx)(o.c,{compact:!0,type:"plan",className:P.paymentMethod}),(0,N.jsxs)(c.c,{justify:"flex-end",gap:8,className:P.actions,children:[(0,N.jsx)(r.q,{id:"cancel-plan-payment-method",className:P.addCardsButton,color:r.q.COLOR.LIGHT_GRAY,onClick:a,children:(0,m.t)("BUTTON.CANCEL")}),(0,N.jsx)(r.q,{id:"save-plan-payment-method",className:P.addCardsButton,color:r.q.COLOR.SECONDARY,onClick:t,disabled:s,children:(0,m.t)("BUTTON.SAVE_CHANGES")})]})]})}})]})})})}},98072:(e,a,t)=>{t.d(a,{c:()=>s});const s={item:"PlanListItem_item__U-+Nd",itemPopular:"PlanListItem_itemPopular__jQy2C",price:"PlanListItem_price__HoXb0",title:"PlanListItem_title__n4kZw",planDescription:"PlanListItem_planDescription__+qmmW",popularSign:"PlanListItem_popularSign__Vxd0S",perMonth:"PlanListItem_perMonth__DBH5y",feature:"PlanListItem_feature__rvOeX",check:"PlanListItem_check__ZqCjk",select:"PlanListItem_select__57LsI",current:"PlanListItem_current__UFHoB",currentIcon:"PlanListItem_currentIcon__+ycuh",icon:"PlanListItem_icon__WdrQh"}}}]);
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.