1"use strict";(self.webpackChunktrf_frontend=self.webpackChunktrf_frontend||[]).push([[4266],{63536(e,s,t){t.d(s,{A:()=>a});t(96540);var n=t(74848);const a=({classes:e,imgSrc:s,title:t,subtitle:a,subtitleClasses:c,children:r,showBeta:l})=>(0,n.jsx)("div",{className:`action-bar ${e}`,children:(0,n.jsx)("div",{className:"action-bar__inner",children:(0,n.jsxs)("div",{className:"action-bar__body",children:[s&&(0,n.jsx)("div",{className:"action-bar__icon",children:(0,n.jsx)("div",{className:"image",style:{backgroundImage:`url(${s})`}})}),(0,n.jsx)("div",{className:"action-bar__content",children:(0,n.jsxs)("div",{className:"action-bar__content__header",children:[(0,n.jsxs)("div",{className:"d-flex align-items-center",children:[(0,n.jsx)("h3",{className:"action-bar__title",children:t}),l&&(0,n.jsx)("div",{className:"action-bar__beta-btn",children:"Beta"})]}),(0,n.jsx)("span",{className:`action-bar__subtitle ${c}`,children:a})]})}),(0,n.jsx)("div",{className:"action-bar__actions text-right",children:r})]})})})},64776(e,s,t){t.d(s,{A:()=>x});var n=t(96540),a=t(71929),c=t(7547),r=t(36347),l=t(34174),i=t(40364),o=t(57546),d=t(61409),u=t(71468),m=t(49376),h=t(74848);const p=({onCancel:e,reloadData:s})=>{const t=(0,c.t2)(),a=(0,c.HH)(),[r,i]=(0,n.useState)(!1),[p,b]=(0,n.useState)(null),[x,j]=(0,n.useState)(null),f=(0,u.wA)(),y=(e,s)=>{i(!1),e.retrieveSetupIntent(s).then(({setupIntent:e})=>{if(e)switch(e.status){case"succeeded":j("Success! Your payment method has been saved."),v(e);break;case"processing":j("Processing payment details. We'll update you when processing is complete."),v(e);break;case"requires_payment_method":i(!1),j("Failed to process payment details. Please try another payment method.")}})},v=e=>{N({payment_method_id:e.payment_method,payment_method_types:e.payment_method_types})},{mutate:N}=(0,o.U)(l.En,{onSuccess:t=>{d.oR.success(t.message),s&&f((0,m.yS)({data:Object.assign({},t.data.data.user)})),setTimeout(()=>{e()},500)}});return(0,h.jsxs)("form",{className:"p-3 my-2",onSubmit:async e=>{if(e.preventDefault(),!t||!a)return;i(!0);const s=await t.confirmSetup({elements:a,confirmParams:{return_url:window.location.href},redirect:"if_required"});var n;(s&&s.setupIntent&&s.setupIntent.client_secret&&y(t,s.setupIntent.client_secret),s&&s.error&&s.error.message)&&(i(!1),b(null==s||null==(n=s.error)?void 0:n.message))},children:[p&&(0,h.jsxs)("div",{className:"alert alert-danger font-weight-bold text-center py-4",children:[" ",(0,h.jsx)("strong",{children:"Oh snap!"})," ",p]}),x&&(0,h.jsx)("div",{className:"alert alert-success font-weight-bold text-center py-4",children:x}),(0,h.jsx)(c.He,{}),(0,h.jsxs)("div",{className:"card-button-container d-flex justify-content-between align-items-center mt-4",children:[(0,h.jsx)("button",{disabled:!t||r,className:"submit btn btn-rounded btn-trf-yellow btn-130",children:r?"Please wait":"Submit"}),(0,h.jsx)("button",{type:"button",className:"btn btn-trf-secondary btn-trf-secondary2 btn-rounded btn-130",onClick:()=>{e()},children:"Cancel"})]})]})},b=(0,r.c)(i.c.STRIPE_KEY),x=({onCancel:e,reloadData:s,setIsLoading:t})=>{const{fetchData:r}=(0,a.A)(),[i,o]=(0,n.useState)("");(0,n.useEffect)(()=>{t(!0),(async()=>{try{const e=await r((0,l.t_)());e&&e.data&&(o(e.data.data.client_secret),t(!1))}catch(e){t(!1),console.error(e)}})()},[]);const d={clientSecret:i};return i?(0,h.jsx)(c.S8,{stripe:b,options:d,children:(0,h.jsx)("div",{className:"book-applicant__credit-card-form open",children:(0,h.jsx)(p,{onCancel:e,reloadData:s})})},i):null}},42582(e,s,t){t.d(s,{A:()=>f});var n=t(96540),a=t(61784),c=t(63536),r=t(10355),l=t(2543),i=t(13838),o=t(57546),d=t(61409),u=t(34174),m=t(71468),h=t(8225),p=t(50289),b=t(27043),x=t(64776),j=t(74848);const f=e=>{var s,t,f,y,v,N,_,g,w;const[A,C]=(0,n.useState)(!1),k=(0,m.d4)(e=>e.userDetail.data),[S,E]=(0,n.useState)(),[F,Y]=(0,n.useState)({}),[O,L]=(0,n.useState)(""),[q,R]=(0,n.useState)(null),[T,M]=(0,n.useState)(0),[P,D]=(0,n.useState)(0),[I,H]=(0,n.useState)("");(0,n.useEffect)(()=>{var s,t;if(null!=k&&null!=(s=k.credit_card)&&s.last_four_digits||C(!0),"Australia"===(null==k||null==(t=k.business_country)?void 0:t.name)){const s=(parseFloat(e.subscription.amount)/1.1).toString();M(parseFloat(s)),D(.1)}else M(parseFloat(e.subscription.amount)),D(0)},[]);const B=()=>{let e=0;const s=T+$();return e=F&&F.stripeAmountOff?F.stripeAmountOff>0?F.stripeAmountOff/100:0:F&&F.stripePercentOff?s*F.stripePercentOff/100:0,e},$=()=>T*P;(0,n.useEffect)(()=>{L("")},[]);const{mutate:U,isPending:G}=(0,o.U)(u.rz,{onSuccess:async e=>
1{p.queryClient.invalidateQueries({queryKey:["getPermissions"]}),d.oR.success("Your account has been upgraded!"),setTimeout(function(){localStorage.removeItem("authMe"),window.location.reload()},2e3)},onError:e=>{var s;null!=e&&null!=(s=e.response)&&null!=(s=s.data)&&s.message?(H(e.response.data.message),d.oR.error(e.response.data.message)):H("")}}),{mutate:z,isPending:V}=(0,o.U)(u.Vk,{onSuccess:async e=>{e.data.data.valid?Y({coupon:e,stripeCouponId:e.data.data.id,stripeCurrency:e.data.data.currency,stripeAmountOff:e.data.data.amount_off,stripePercentOff:e.data.data.percent_off,stripeDescription:e.data.data.description}):R(e.data.message)}});return(0,j.jsxs)(a.A,{show:!0,onHide:e.onClose,className:"checkout-modal",children:[(0,j.jsxs)("div",{className:"checkout-modal__header",children:[(0,j.jsx)("div",{className:"checkout-modal__header__text",children:"Checkout"}),(0,j.jsx)("div",{className:"checkout-modal__header__icon",children:(0,j.jsx)("div",{children:(0,j.jsx)("span",{role:"button",onClick:e.onClose,children:(0,j.jsx)(h.h,{})})})})]}),!(0,l.isEmpty)(I)&&(0,j.jsx)("div",{className:"alert alert-danger font-weight-bold text-center py-2 mb-5",children:I}),(0,j.jsx)(a.A.Body,{children:(0,j.jsxs)("div",{className:"row checkout-modal__body",children:[(0,j.jsxs)("div",{className:"col-md-5 checkout-modal__body__left",children:[(0,j.jsx)("div",{children:(0,j.jsx)("div",{className:"checkout-modal__body__subheader",children:"Payment Method"})}),(0,j.jsx)("div",{children:(0,j.jsxs)(b.A,{loading:S,children:[!A&&(0,j.jsx)("div",{className:"action-bar",children:null!=k&&null!=(s=k.credit_card)&&s.last_four_digits?(0,j.jsx)(c.A,{title:`${null==k||null==(t=k.credit_card)?void 0:t.brand.toUpperCase()} - ${null==k||null==(f=k.credit_card)?void 0:f.last_four_digits}`,subtitle:"This card is currently active on your account",subtitleClasses:"",children:(0,j.jsx)(r.A,{url:"",onClick:()=>C(!0),className:"btn btn-rounded btn-info",children:"Update Card"})}):(0,j.jsx)(c.A,{title:"N/A",subtitle:"You current have not added a credit card",subtitleClasses:"",children:(0,j.jsx)(r.A,{url:"",onClick:()=>C(!0),className:"btn btn-rounded btn-trf-yellow",children:"Add Card"})})}),A&&(0,j.jsx)(x.A,{onCancel:()=>{C(!1)},reloadData:!0,setIsLoading:E})]})})]}),(0,j.jsx)("div",{className:"vertical-divider"}),(0,j.jsxs)("div",{className:"col-md-5 checkout-modal__body__right",children:[(0,j.jsx)("div",{className:"checkout-modal__body__subheader",children:"Order Details"}),(0,j.jsxs)("div",{className:"cart-summary",children:[(0,j.jsx)("div",{}),(0,j.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,j.jsxs)("div",{className:"cart-summary__text text-capitalize",children:["MONTHLY"===e.subscription.frequency&&(0,j.jsx)(j.Fragment,{children:"Monthly"}),"YEARLY"===e.subscription.frequency&&(0,j.jsx)(j.Fragment,{children:"Yearly"})," Subscription"]}),(0,j.jsxs)("div",{className:"cart-summary__amount",children:[(null==(y=e.subscription)||null==(y=y.currency)?void 0:y.symbol)||"A$",parseFloat(T.toString()).toFixed(0),"/","MONTHLY"===e.subscription.frequency&&(0,j.jsx)(j.Fragment,{children:"month"}),"YEARLY"===e.subscription.frequency&&(0,j.jsx)(j.Fragment,{children:"year"})]})]}),P>0&&(0,j.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,j.jsx)("div",{className:"cart-summary__text",children:"GST"}),(0,j.jsxs)("div",{className:"cart-summary__amount",children:[" ",(null==(v=e.subscription)||null==(v=v.currency)?void 0:v.symbol)||"A$",$().toFixed(2)]})]})]}),(0,j.jsx)("div",{className:"divider"}),(0,j.jsxs)("div",{className:"d-flex justify-content-between ",children:[(0,j.jsx)("div",{className:"total-amount",children:"Total"}),(0,j.jsxs)("div",{className:"total-amount",children:[(null==(N=e.subscription)||null==(N=N.currency)?void 0:N.symbol)||"A$",(T+$()-B()).toFixed(2)]})]}),"YEARLY"!==e.subscription.frequency&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{children:"Have a promo code?"}),(0,j.jsxs)("div",{children:[(0,j.jsx)(i.ZQ,{name:"",label:"",placeholder:"Enter coupon code",value:O,onChangeText:(e,s)=>L(s)}),q&&(0,j.jsx)("div",{className:"form-control-feedback my-0 alert text-danger p-0",children:(0,j.jsx)("small",{children:q})}),(0,j.jsx)("button",{type:"button",className:"btn btn-rounded btn-small mt-2 btn-70 "+((0,l.isEmpty)(O)?"":"btn-trf-outline-black btn-rounded btn-rounded-new--dark"),onClick:()=>{R(null),O&&z({code:O,type:"client-contra-subscription"})},disabled:!!(0,l.isEmpty)(O)||V,children:V?"Loading...":"Submit"}),!(0,l.isEmpty)(F)&&!(0,l.isEmpty)(F.coupon)&&(0,j.jsxs)("div",{className:"book-applicant__fees d-flex justify-content-end align-items-center pr-2 mr-1",children:[(0,j.jsx)("div",{className:"d-flex align-items-center py-3 pl-1",children:(0,j.jsx)("button",{type:"button",onClick:()=>{Y({}),L("")}
1,className:"btn btn-trf-secondary btn-trf-secondary2 btn-rounded btn-xs text-danger mr-3",children:"Delete"})}),(0,j.jsxs)("div",{className:"py-3 coupon-success",children:["Coupon applied for ",F.stripeDescription," -",(null==(_=e.subscription)||null==(_=_.currency)?void 0:_.symbol)||"A$",B().toFixed(2)]})]})]})]}),(0,j.jsxs)("div",{className:"checkout-modal__footer",children:[(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"checkout-modal__footer__btn",children:[(0,j.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-2",onClick:()=>e.onClose(),children:"CANCEL"}),(0,j.jsxs)("button",{type:"submit",className:"btn btn-trf-yellow btn-rounded text-uppercase",onClick:()=>{H(""),U({code:e.subscription.code,plan:e.subscription.product_id,name:"client",coupon:(0,l.isEmpty)(F)||(0,l.isEmpty)(F.coupon)?null:O})},disabled:G||!(null!=k&&null!=(g=k.credit_card)&&g.last_four_digits),children:["CONFIRM & PAY",G&&(0,j.jsx)("i",{className:"fa fa-spinner fa-pulse ml-2"})]})]})}),(0,j.jsxs)("div",{className:"checkout-modal__footer__text",children:["Your subscription will renew automatically every"," ","MONTHLY"===e.subscription.frequency&&(0,j.jsx)(j.Fragment,{children:"month"}),"YEARLY"===e.subscription.frequency&&(0,j.jsx)(j.Fragment,{children:"year"})," as one payment of"," ",(null==(w=e.subscription)||null==(w=w.currency)?void 0:w.symbol)||"A$",e.subscription.amount,'. Cancel it anytime from your subscription settings. By clicking "Confirm and pay" you agree to the Terms and Conditions.']})]})]})]})})]})}},10355(e,s,t){t.d(s,{A:()=>l});var n=t(40644),a=(t(96540),t(3433)),c=t(74848);const r=["url","target","children"],l=e=>{let{url:s,target:t="",children:l}=e,i=(0,n.A)(e,r);return(0,c.jsx)(a.N_,Object.assign({to:s,target:t},i,{children:l}))}},85948(e,s,t){t.d(s,{g:()=>a,u:()=>c});var n=t(55029);const a=()=>(0,n.Jt)("subscription/list"),c=()=>(0,n.Jt)("subscription/get-details/client")},94266(e,s,t){t.r(s),t.d(s,{default:()=>b});var n=t(96540),a=t(71468),c=t(27043),r=t(42582),l=t(35988),i=t(85948),o=t(67834),d=t(13838);const u=[{feature:"Commission on completed jobs",core:"20%",plus:"15%"},{feature:"Book creators",core:!0,plus:!0},{feature:"Pay creators via Credit Card or Bank Transfer",core:!0,plus:!0},{feature:"Creator Analytics",core:!1,plus:!0},{feature:"Support",core:"Email",plus:"Chat"}];var m=t(61784),h=t(74848);const p=({onClose:e})=>((0,n.useEffect)(()=>{const e=document.createElement("script");e.src="https://js.hsforms.net/forms/shell.js",document.body.appendChild(e),e.addEventListener("load",()=>{window.hbspt&&window.hbspt.forms.create({region:"na1",portalId:"22162729",formId:"3462415e-291a-4b2b-bfe0-05afc53f84cc",target:"#hubspotForm",cssClass:"YOUR-FORM-CLASS"})})},[]),(0,h.jsx)(m.A,{show:!0,className:"campaign-collab-modal campaign-modal",onHide:()=>e(!1),children:(0,h.jsx)(m.A.Body,{children:(0,h.jsxs)("div",{className:"modal__container",children:[(0,h.jsx)("button",{type:"button",className:"close",onClick:()=>e(!1)}),(0,h.jsx)("div",{className:"modal__container pt-3 pb-3",children:(0,h.jsx)("div",{id:"hubspotForm",className:"hubspotFormCustom"})})]})})})),b=()=>{const e=(0,a.d4)(e=>e.userDetail.data),[s,t]=(0,n.useState)(!1),[m,b]=(0,n.useState)(),[x,j]=(0,n.useState)({}),[f,y]=(0,n.useState)(),[v,N]=(0,n.useState)(!0),[_,g]=(0,n.useState)(!0),[w,A]=(0,n.use
1State)(!1),[C,k]=(0,n.useState)(),[S,E]=(0,n.useState)(!1);(0,n.useEffect)(()=>{(async()=>{N(!0);try{const e=await(0,i.g)();b(e.data)}catch(e){console.error("Error fetching data:",e)}finally{N(!1)}})()},[]),(0,n.useEffect)(()=>{(async()=>{g(!0);try{const e=await(0,i.u)();j(e.data.subscriptionDetails)}catch(e){console.error("Error fetching data:",e)}finally{g(!1)}})()},[]);const F=s=>{var t;return"Australia"===(null==e||null==(t=e.business_country)?void 0:t.name)?(parseFloat(s)/1.1).toFixed(0):parseFloat(s).toFixed(0)};return(0,h.jsxs)("div",{className:"trf-subscription",children:[(0,h.jsxs)("div",{className:"trf-subscription__container",children:[(0,h.jsx)("div",{className:"trf-subscription__header",children:(0,h.jsx)("h1",{children:"Subscriptions"})}),(0,h.jsx)("div",{className:"trf-subscription__matchie-banner",children:(0,h.jsx)(d.F$,{})}),(0,h.jsx)(d.cG,{}),(0,h.jsxs)("div",{className:"trf-subscription__content",children:[(0,h.jsx)(d.o5,{as:"h2",variant:"title3",weight:"500",children:"Work with model and actors"}),(0,h.jsx)(d.o5,{as:"p",variant:"copy",children:"Upgrade to supercharge your model and actor bookings."}),(0,h.jsxs)("div",{className:"row row d-flex justify-content-between align-items-stretch flex-row-reverse g-2 mt-4",children:[(0,h.jsx)("div",{className:"col-md-6",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsx)("div",{className:"col-md-12",children:(0,h.jsxs)(c.A,{loading:v||_,children:[!e.is_pro&&m&&m.length>0&&m.map(s=>{var n,a,c;return(0,h.jsx)("div",{className:"subscription-plan",children:(0,h.jsxs)("div",{className:"row d-flex justify-content-between align-items-center",children:[(0,h.jsxs)("div",{className:"col-6",children:[(0,h.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,h.jsx)("p",{className:"subscription-name",children:s.frequency}),"YEARLY"===s.frequency&&(0,h.jsx)("p",{className:"subscription-badge",children:"BEST VALUE"})]}),(0,h.jsxs)("p",{className:"subscription-price",children:[(null==(n=s.currency)?void 0:n.symbol)||"A$",F(s.amount),"/","MONTHLY"===s.frequency&&(0,h.jsx)(h.Fragment,{children:"month"}),"YEARLY"===s.frequency&&(0,h.jsx)(h.Fragment,{children:"year"})]}),(0,h.jsxs)("p",{className:"subscription-details",children:[(null==(a=s.currency)?void 0:a.symbol)||"A$",F(s.amount)," every"," ","YEARLY"===s.frequency&&(0,h.jsx)(h.Fragment,{children:"12 months"})," ","MONTHLY"===s.frequency&&(0,h.jsx)(h.Fragment,{children:"month"}),"Australia"===(null==e||null==(c=e.business_country)?void 0:c.name)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("br",{}),"*GST and local taxes may apply"," "]})]})]}),(0,h.jsx)("div",{className:"col-6 text-right",children:x&&0===Object.keys(x).length&&(0,h.jsx)("button",{type:"button",className:"btn btn-trf-yellow btn-rounded",onClick:()=>(e=>{y(e),t(!0)})(s),children:"Upgrade"})})]})},s.product_id)}),e.is_pro?Object.keys(x).map(s=>{var t,n,a;const c=x[s];return(0,h.jsx)("div",{className:"subscription-plan",children:(0,h.jsxs)("div",{className:"row d-flex justify-content-between align-items-center",children:[(0,h.jsxs)("div",{className:"col-6",children:[(0,h.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,h.jsx)("p",{className:"subscription-name",children:c.frequency}),"YEARLY"===c.frequency&&(0,h.jsx)("p",{className:"subscription-badge",children:"BEST VALUE"})]}),(0,h.jsxs)("p",{className:"subscription-price",children:[(null==(t=c.currency)?void 0:t.symbol)||"A$",F(c.amount),"/","MONTHLY"===c.frequency&&(0,h.jsx)(h.Fragment,{children:"month"}),"YEARLY"===c.frequency&&(0,h.jsx)(h.Fragment,{children:"year"})]}),(0,h.jsxs)("p",{className:"subscription-details",children:[(null==(n=c.currency)?void 0:n.symbol)||"A$",F(c.amount)," every"," ","YEARLY"===c.frequency&&(0,h.jsx)(h.Fragment,{children:"12 months"})," ","MONTHLY"===c.frequency&&(0,h.jsx)(h.Fragment,{children:"month"}),"Australia"===(null==e||null==(a=e.business_country)?void 0:a.name)&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("br",{}),"*GST and local taxes may apply"," "]})]})]}),(0,h.jsxs)("div",{className:"col-6 text-left",children:[!c.canceled_at&&(0,h.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase",onClick:()=>{A(!0),k(c)},children:"CANCEL SUBSCRIPTION"}),(0,h.jsx)("p",{className:"mt-3 expire-text",children:x[c.code].message})]})]})},c.master_subscription_id)}):(0,h.jsx)(h.Fragment,{})]})})})}),(0,h.jsx)("div",{className:"col-md-6",children:(0,h.jsxs)("div",{className:"subscription-benefit-container h-100 mt-4 mt-md-0",children:[(0,h.jsxs)("div",{className:"row heading",children:[(0,h.jsx)("div",{className:"col-8",children:"\xa0"}),(0,h.jsx)("div",{className:"col-2 text-center",children:"Core"}),(0,h.jsx)("div",{className:"col-2 text-center",children:(0,h.jsxs)("div",{className:"d-flex justify-content-start align-items-center",children:[(0,h.jsx)(o.h,{}),(0,h.jsx)("div",{className:"ml-1",children:"Plus"})]})})]}),u.map((e,s)=>(0,h.jsxs)("div",{className:"row item",children:[(0,h.jsx)("div",{className:"col-8",children:e.feature}),(0,h.jsxs)("div",{className:"col-2 text-center",children:[!0===e.core&&(0,h.jsx)("i",{className:"fa fa-check"}),!1===e.core&&(0,h.jsx)("i",{className:"fa fa-close"}),"string"==typeof e.core&&(0,h.jsx)("span",{children:e.core})]}),(0,h.jsxs)("div",{className:"col-2 text-center",children:[!0===e.plus&&(0,h.jsx)("i",{className:"fa fa-check"}),!1===e.plus&&(0,h.jsx)("i",{className:"fa fa-close"}),"string"==typeof e.plus&&(0,h.jsx)("span",{children:e.plus})]})]},s))]})})]})]})]}),s&&f?(0,h.jsx)(r.A,{onClose:()=>t(!1),subscription:f}):"",w&&(0,h.jsx)(l.H,{show:w,closeModal:()=>A(!1),subscriptionData:C}),S&&(0,h.jsx)(p,{onClose:E})]})}},35988(e,s,t){t.d(s,{H:()=>p});var n=t(61784),a=t(95093),c=t.n(a),r=t(34174),l=t(57546),i=t(40364),o=t(96540),d=t(49394),u=t
1(49376),m=t(71468),h=t(74848);const p=e=>{const s=(0,m.wA)(),t=(0,d.IF)(e=>e.userDetail),a=i.c.CDN_PATH,[p,b]=(0,o.useState)(1),{mutate:x,isPending:j}=(0,l.U)(r.M2,{onSuccess:async e=>{s({type:u.lB,payload:Object.assign({},t,{data:Object.assign({},t.data,{is_pro:!1})})}),b(2)}}),f=()=>{1===p?e.closeModal():window.location.reload()};return(0,h.jsxs)(n.A,{show:e.show,className:"cancel-subscription-modal",children:[(0,h.jsx)(n.A.Body,{children:(0,h.jsxs)("div",{className:"modal__container",children:[(0,h.jsx)("button",{type:"button",className:"close",onClick:()=>f()}),1===p&&(0,h.jsx)("img",{className:"action-icon",src:a+"/svg/campaigns/icons/icon-multiply-incircle.svg",alt:"Cancel",title:"Cancel"}),2===p&&(0,h.jsx)("img",{className:"action-icon",src:a+"/svg/campaigns/icons/icon-check-circle.svg",alt:"check",title:"check"}),1===p&&(0,h.jsxs)("h5",{className:"modal-heading",children:["Are you sure you want to cancel ",(0,h.jsx)("br",{}),"your subscription"]}),2===p&&(0,h.jsx)("h5",{className:"modal-heading",children:"Your subscription has been cancelled"}),2===p&&(0,h.jsxs)("p",{className:"modal-sub-heading",children:["*your plan is paid until ",c()(e.subscriptionData.ends_at).format("MMM D, YYYY")," so you will still have acess to PRO features until then"]})]})}),(0,h.jsx)(n.A.Footer,{children:(0,h.jsxs)("div",{className:`d-flex justify-content-${1===p?"between":"center"} align-items-center w-100`,children:[1===p&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{type:"button",className:"btn-trf-outline-black btn-rounded text-uppercase mr-2",onClick:()=>f(),children:"Back"}),(0,h.jsxs)("button",{type:"button",className:"btn btn-rounded btn-trf-yellow",onClick:x,disabled:j,children:["Cancel Subscription",j?(0,h.jsx)("span",{children:(0,h.jsx)("i",{className:"ml-2 fa fa-spinner fa-pulse"})}):null]})]}),2===p&&(0,h.jsx)("button",{type:"button",className:"btn btn-yellow btn-rounded text-uppercase",onClick:()=>f(),children:"Got It"})]})})]})}},67834(e,s,t){t.d(s,{h:()=>l});var n,a,c=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},r.apply(null,arguments)}var l=function(e){return c.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 18 18"},e),n||(n=c.createElement("path",{fill:"#192FB1",fillRule:"evenodd",d:"M7.333 13.733c0-3.535 2.914-6.4 6.509-6.4h2.711c.8 0 1.447.637 1.447 1.422 0 .786-.648 1.422-1.447 1.422h-2.712c-1.996 0-3.615 1.592-3.615 3.556v2.845c0 .785-.648 1.422-1.447 1.422a1.434 1.434 0 0 1-1.446-1.422z",clipRule:"evenodd"})),a||(a=c.createElement("path",{fill:"#192FB1",fillRule:"evenodd",d:"M10.667 4.267c0 3.535-2.818 6.4-6.295 6.4H1.399A1.41 1.41 0 0 1 0 9.245a1.41 1.41 0 0 1 1.4-1.422h2.972c1.931 0 3.497-1.592 3.497-3.556V1.423A1.41 1.41 0 0 1 9.27 0a1.41 1.41 0 0 1 1.398 1.423z",clipRule:"evenodd"})))};t.p}}]);
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.