1"use strict";(self.webpackChunkawesomescreenshot_website=self.webpackChunkawesomescreenshot_website||[]).push([[717],{10912:(e,n,r)=>{r.d(n,{Z:()=>v});r(85624);var t=r(71577),a=(r(50626),r(48086)),i=r(86664),s=r(67294),l=r(71853),o=r(4976),c=r(54465),u=r(56262),d=r(5551),p=r(85893);function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;o=!1}else for(;!(o=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);o=!0);}catch(e){c=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return f(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var h=(0,c.J)("pk_live_dEyUjlPXO4pAhgsnnuUwrbEm"),y=function(e){e.workspaceID,e.planName;var n=e.afterPay,r=e.type,c=e.refreshSecret,u=m((0,s.useState)(!1),2),d=u[0],f=u[1],h=m((0,s.useState)(!1),2),y=h[0],v=h[1],x=(0,i.useStripe)(),j=(0,i.useElements)();return(0,p.jsx)("div",{className:"checkout-form",children:(0,p.jsxs)("form",{onSubmit:function(e){e.preventDefault(),v(!0),"updateCard"===r?x.confirmSetup({elements:j,redirect:"if_required"}).then((function(e){if(e.error)throw e.error;e.setupIntent.id;var r=e.setupIntent.payment_method;(0,o.oED)(r).then((function(e){v(!1),n&&n()}))})).catch((function(e){e.message&&a.ZP.error(e.message,5),"validation_error"!==e.type&&c(),v(!1)})):x.confirmPayment({elements:j,redirect:"if_required"}).then((function(e){if(e.error)throw e.error;var r=e.paymentIntent.id,t=e.paymentIntent.payment_method;(0,o.GpV)(r,t).then((function(e){v(!1),n&&n()}))})).catch((function(e){e.message&&a.ZP.error(e.message,5),"validation_error"!==e.type&&c(),v(!1)}))},children:[d&&"changeCard"===r&&(0,p.jsx)("div",{style:{marginBottom:"10px"},children:"This will replace your current saved card"}),(0,p.jsx)(i.PaymentElement,{options:{fields:{billingDetails:{email:"auto",address:"auto"}},terms:{card:"never"},wallets:{applePay:"never",googlePay:"never"}},onReady:function(){f(!0)}}),!d&&(0,p.jsx)("div",{className:"loading-area",style:{height:"58px"},children:(0,p.jsx)(l.Z,{})}),d&&(0,p.jsx)("div",{className:"btn-area",children:(0,p.jsx)(t.Z,{type:"primary",htmlType:"submit",size:"large",loading:y,disabled:!d,children:function(){switch(r){case"updateCard":return"Update";case"addCard":return"Add";case"renew":return"Renew";case"resubscribe":return"Resubscribe";case"transfer":return"Transfer";default:return"Pay"}}()})})]})})};const v=(0,u.$j)((function(e){return{theme:e.userSetting.theme}}),{})((function(e){var n=e.planName,r=e.afterPay,t=e.theme,a=e.promotionCode,c=e.type,u=m((0,s.useState)(null),2),f=u[0],v=u[1];function x(){v(null),"updateCard"===c?(0,o.GY)().then((function(e){v(e.secret)})):(0,o.R9S)(n,a).then((function(e){v(e.secret)}))}(0,s.useEffect)((function(){x()}),[]);var j={appearance:d.Pp[t],clientSecret:f};return(0,p.jsx)("div",{className:"personal-stripe-element",children:f?(0,p.jsx)(i.Elements,{stripe:h,options:j,children:(0,p.jsx)(y,{planName:n||"",afterPay:r,type:c,refreshSecret:x})}):(0,p.jsx)(l.Z,{})})}))},73844:(e,n,r)=>{r.r(n),r.d(n,{default:()=>J});r(16154);var t=r(47933),a=(r(50626),r(48086)),i=(r(47386),r(48889)),s=(r(81817),r(27279)),l=(r(70390),r(86664)),o=r(54465),c=r(31955),u=r(67294),d=r(56262),p=r(65538),m=r(94958),f=r(55087),h=r(4976),y=r(7991),v=r(6386),x=r(10912),j=r(61401),b=r(85893);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function N(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};
1n%2?N(Object(r),!0).forEach((function(n){w(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function w(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!==g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===g(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _(e){var n=e.planName,r=e.afterPay,t=e.theme,a=e.promotionCode;return(0,b.jsxs)("div",{className:"personal-pay-panel",children:[(0,b.jsx)("div",{className:"title",children:"Payment"}),(0,b.jsx)("div",{className:"content",children:(0,b.jsx)(x.Z,{planName:n,afterPay:r,theme:t,promotionCode:a})})]})}const C=function(e){return(0,b.jsx)(j.Z,{visible:e.visible,onCancel:e.onCancel,children:(0,b.jsx)(_,P(P({},e),{},{closeModal:e.onCancel}))})};var S=r(25754),k=r(26950),E=(r(91324),r(45777)),T=(r(85624),r(71577)),D=(r(87057),r(67618)),I=r(47481);function O(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;o=!1}else for(;!(o=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);o=!0);}catch(e){c=!0,a=e}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return U(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}const A=function(e){var n=O((0,u.useState)((function(){return e.currentTeamNum})),2),r=n[0],t=n[1],a=e.plan,i=e.upgradeInfo;(0,u.useEffect)((function(){t(e.currentTeamNum)}),[e.currentTeamNum]);var s=i.CurrentPlan,l=function(e){if(""==s.PlanName)return{text:"Get started",isDisabled:!1};var n={};if("basic"===e)n=i.Personal;else if("professional"===e)n=i.Pro;else if("team"===e)n=i.Team;else if("free"===e)return{text:"Free to use",isDisabled:!0};return n.CanUpgrade?"basic"===e||"professional"===e?n.CanUpgrade2Monthly&&n.CanUpgrade2Yearly?{text:"Upgrade",isDisabled:!1}:n.CanUpgrade2Yearly&&!n.CanUpgrade2Monthly?s.PlanName===e?{text:"Change to yearly",isForceYear:!0,isDisabled:!1}:{text:"Upgrade",isForceYear:!0,isDisabled:!1}:{text:"Upgrade",isDisabled:!0}:"team"===e?i.CurrentPlan.Cap<r?{text:"Upgrade",isDisabled:!1}:i.CurrentPlan.Cap===r?"Monthly"===s.Interval?{text:"Change to yearly",isForceYear:!0,isDisabled:!1}:{text:"Your plan",isDisabled:!0}:{text:"Upgrade",isDisabled:!0}:void 0:i.CurrentPlan.PlanName===e?{text:"Your plan",isDisabled:!0}:{text:"Upgrade",isDisabled:!0}}(a.type),o=function(n){if(""!=s.PlanName)"Apple"!==s.PaymentMethod||"Change to yearly"!==l.text?(e.handleChoose(n,r,"Change to yearly"===l.text||!0===l.isForceYear),(0,D.I1)("click upgrade button",{event_category:"pricing"})):window.location="https://apps.apple.com/account/subscriptions";else{var t=window.location,a=t.origin,i=t.pathname;window.location.href="/user/login?redirect=".concat(a).concat(i)}},c=(a.type,""),d=(0,D.IT)(),p="free"===s.PlanName&&"professional"===a.type?"best-value":"";return"team"===a.type?"month"===e.purchaseType?a.EnableDiscount[r]:a.EnableDiscount_y[r]:"month"===e.purchaseType?a.EnableDiscount:a.EnableDiscount_y,(0,b.jsxs)("div",{className:"plan-item ".concat(a.type," ").concat(p," ").concat(s.PlanName===a.type?"current":""),id:"team"===a.type?"team-plan":"",children:["professional"!==s.PlanName&&"team"!==s.PlanName&&"professional"===a.type&&d&&(0,b.jsxs)("div",{className:"pro-tip",children:[(0,b.jsx)("div",{className:"title",children:"ð¡Suggested"}),(0,b.jsxs)("div",{className:"content",children:["Upgrade to Professional plan for unlimited recordings and hosting",(0,b.jsx)("br",{})]})]}),"free"!==s.PlanName&&s.PlanName===a.type&&(0,b.jsx)("div",{className:"your-plan",children:(0,b.jsx)("div",{className:"current-plan",children:"CURRENT PLAN"})}),"free"===s.PlanName&&"professional"===a.type&&(0,b.jsx)("div",{className:"your-plan",children:(0,b.jsx)("div",{className:"current-plan",children:"BEST VALUE"})}),(0,b.jsxs)("div",{className:"info-box ".concat(c),children:[(0,b.jsx)("div",{className:"discount-tip"}),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"type",children:[(0,b.jsx)("span",{children:a.displayName}),"professional"===a.type&&(0,b.jsxs)("div",{className:"icons",children:[(0,b.jsx)(I.dG,{})," + ",(0,b.jsx)(I.K,{})]}),"basic"===a.type&&(0,b.jsx)("div",{className:"icons",children:(0,b.jsx)(I.K,{})})]}),(0,b.jsx)("div",{className:"plan-tip",children:a.tip}),(0,b.jsx)("div",{className:"price",children:"team"===a.type?(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"price-num",children:[(0,b.jsx)("div",{className:"price-tag",children:(0,b.jsx)(I.fY,{})}),"month"===e.purchaseType?a.price[r]:a.price_y[r]]})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"original-price-num",children:"$6/Month"}),(0,b.jsxs)("div",{className:"price-num",children:[(0,b.jsxs)("div",{className:"price-num-text",children:["month"===e.purchaseType?"$"+a.price:"$"+a.price_y,"year"==e.purchaseType&&a.price>0&&(0,b.jsxs)("div",{className:"year-price",children:["$",a.price]})]}),(0,b.jsx)("span",{className:"price-duration",children:"/ month"})]})]})}),(0,b.jsx)("div",{className:"button-area",children:function(e){return"Your plan"===e.text?(0,b.jsx)(T.Z,{type:"primary",className:"choose-btn",disabled:e.isDisabled,onClick:o.bind(null,a.type),children:"Upgrade"}):"Change to yearly"===e.text?(0,b.jsxs)("div",{className:"change-to-yearly",children:[(0,b.jsx)("div",{className:"tip",children:"You're paying monthly"}),(0,b.jsx)(T.Z,{type:"primary",className:"choose-btn",disabled:e.isDisabled,onClick:o.bind(null,a.type),children:e.text})]}):(0,b.jsx)(T.Z,{type:"primary",className:"choose-btn",disabled:e.isDisabled,onClick:o.bind(null,a.type),children:e.text})}(l)})]})]}),(0,b.jsx)("div",{className:"sep"}),(0,b.jsxs)("div",{className:"feature-box",children:[(0,b.jsx)("div",{className:"feature-title",children:"Screenshots"}),(0,b.jsx)("div",{className:"feature-section",children:(0,b.jsx)("ul",{className:"feature-list",children:a.features.screenshot.map((function(e,n){return(0,b.jsx)("li",{children:(0,b.jsxs)("div",{className:"feature-item",children:[(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:e.replace(/(Unlimited|All)/gi,"<b>$&</b>")}}),"Save screenshots to:"===e&&(0,b.jsx)("div",{className:"integrations-container",children:a.features.integrations_cs.map((function(e){return(0,b.jsx)(E.Z,{title:e.displayName,children:(0,b.jsx)("div",{className:"integration-item small ".concat(e.name)}
1)},e.name)}))})]})},n)}))})}),(0,b.jsxs)("div",{className:"feature-section",children:[(0,b.jsx)("div",{className:"feature-title",children:"Video Recordings"}),(0,b.jsx)("ul",{className:"feature-list",children:a.features.record.map((function(e,n){return(0,b.jsx)("li",{children:(0,b.jsx)("div",{className:"feature-item",children:"string"===e.type?(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text.replace(/(Unlimited|All|4k)/gi,"<b>$&</b>")}}):(0,b.jsxs)("div",{className:"feature-link",children:[(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text.replace(/(Unlimited|All|4k)/gi,"<b>$&</b>")}}),(0,b.jsxs)("div",{className:"feature-preview ".concat(e.preview),children:[(0,b.jsx)("div",{className:"text",children:"local"===e.preview?'Local Recordings: temporarily stored under "My Local Recordings", can be further saved to your local disk.':"Cloud Recordings: automatically saved to your account, can be shared instantly and also downloadable."}),(0,b.jsx)("div",{className:"pic"})]})]})})},n)}))}),("free"===a.type||"basic"===a.type)&&(0,b.jsxs)("div",{className:"extra",children:[(0,b.jsxs)("div",{className:"extra-item",children:[(0,b.jsxs)("div",{className:"extra-title",children:["For Screenshots Saved to ",(0,b.jsx)("br",{})," Local (Your Computer)"]}),(0,b.jsx)("ul",{children:(0,b.jsx)("li",{className:"list-item",children:"Unlimited screenshots"})})]}),(0,b.jsxs)("div",{className:"extra-item",children:[(0,b.jsxs)("div",{className:"extra-title",children:["For Recordings Saved to ",(0,b.jsx)("br",{})," Local (Your Computer)"]}),(0,b.jsxs)("ul",{children:[(0,b.jsx)("li",{className:"list-item",children:"Up to 5 mins per recording"}),(0,b.jsx)("li",{className:"list-item",children:"Unlimited recordings"})]})]})]})]}),a.features.integrations_cp.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"feature-title",children:"Integrations"}),(0,b.jsx)("div",{className:"integrations-container",children:a.features.integrations_cp.map((function(e){return(0,b.jsx)(E.Z,{title:e.displayName,children:(0,b.jsx)("div",{className:"integration-item ".concat(e.name)})},e.name)}))})]})]})]})};var Z=r(96974),L=r(63173),F=r(51447),M=r(30817);var Y={loadWorkspaces:F.Pf};const R=(0,d.$j)((function(e){return{workspaceIDList:e.workspace.myWorkspaceIDList,myWorkspaceHash:e.workspace.myWorkspaceHash,isLoading:e.workspace.isLoading,userInfo:e.user.info,isUserLoading:e.user.isLoading}}),Y)((function(e){var n=e.isLoading,r=e.workspaceIDList,t=e.myWorkspaceHash,a=e.userInfo,i=e.isUserLoading,s=e.loadWorkspaces,l=(0,Z.s0)(),o=(0,M.Z)().get("promotionCode");function c(){return r.filter((function(e){return t[e].ownerUID===a.uid}))}return(0,u.useEffect)((function(){s()}),[]),(0,b.jsx)("div",{className:"plan-page-workspace-list",children:!n&&!i&&c().length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"list-title",children:"My Workspaces"}),(0,b.jsx)("div",{className:"workspace-list-container",children:c().map((function(e){var n=t[e];return(0,b.jsxs)("div",{className:"workspace-list-item",children:[(0,b.jsxs)("div",{className:"workspace-name",children:[(0,b.jsx)(L.Z,{text:n.name,width:"180px"}),"lite"===n.plan?(0,b.jsx)("span",{className:"plan-badge",children:"Lite"}):(0,b.jsx)("span",{className:"plan-badge premium",children:"Premium"})]}),(0,b.jsx)(T.Z,{style:{width:"200px"},block:!0,onClick:function(){!function(e){l("/workspace/setting/"+e.id+"?tab=billing"+(o?"&promotionCode="+o:""))}(n)},children:"Manage"})]},e)}))})]})})}));var $,B=r(93053),W=r(5551),G=r(79993);function H(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,i,s,l=[],o=!0,c=!1;try{if(i=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;o=!1}else for(;!(o=(t=i.call(r)).done)&&(l.push(t.value),l.length!==n);o=!0);}catch(e){c=!0,a=e}
1finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}(e,n)||V(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,n){if(e){if("string"==typeof e)return K(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,n):void 0}}function K(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var X=s.Z.Panel;var z={loadUserInfo:f.Lk,loadPlans:m.Z};const J=(0,d.$j)((function(e){return{user:e.user,plan:e.plan,cap:e.user.premium.currentPlan?e.user.premium.currentPlan.Cap:5}}),z)((function(e){var n=e.loadUserInfo,r=e.user,d=e.plan,m=e.loadPlans,f=e.cap,x=q((0,u.useState)("year"),2),j=x[0],g=x[1],N=q((0,u.useState)(5),2),P=N[0],w=N[1],_=q((0,u.useState)(""),2),E=_[0],T=_[1],O=q((0,u.useState)(!1),2),U=O[0],Z=O[1],L=q((0,u.useState)(!1),2),F=L[0],Y=L[1],V=q((0,u.useState)(!1),2),K=V[0],z=V[1],J=q((0,u.useState)(null),2),Q=J[0],ee=J[1],ne=q((0,u.useState)(!1),2),re=ne[0],te=ne[1],ae=q((0,u.useState)("success"),2),ie=ae[0],se=ae[1],le=q((0,u.useState)("year"),2),oe=le[0],ce=le[1],ue=q((0,u.useState)(!1),2),de=ue[0],pe=ue[1],me=q((0,u.useState)(!1),2),fe=me[0],he=me[1],ye=q((0,u.useState)("personal"),2),ve=ye[0],xe=ye[1],je=q((0,u.useState)(!1),2),be=je[0],ge=je[1],Ne=q((0,u.useState)({which:"",planText:"",needCreate:!1,price_m:"",coupon:null,planOverviewBtnText:"Pay Now"}),2),Pe=Ne[0],we=Ne[1];(0,p.u)("Pricing");var _e=(0,u.useRef)(),Ce=(0,u.useRef)(),Se=(0,M.Z)(),ke=Se.get("promotionCode"),Ee=Se.get("from")||"",Te=c.Z.get("screenshot_personal_uid");function De(){_e.current&&_e.current.close()}function Ie(e,r){he(!0),(0,h.e$B)(E,r,e,ke).then((function(){Z(!1),te(!1),he(!1),m(ke),n(!0)}),(function(e){te(!1),he(!1),i.Z.error({title:"Payment Failed",content:e+" Please try a different card or contact your card issuer.",okText:"Got it"})}))}function Oe(e,n){var r="";"team"===Pe.type?r="team_plan_"+P+("month"===e?"m":""):"basic"===Pe.type?r="premium_plan"+("month"===e?"m":""):"professional"===Pe.type&&(r="pro_plan"+("month"===e?"m":"")),ce(e),g(e),T(r),ee(null),n||Ue(r)}function Ue(e){(0,h.qQg)(e,ke).then((function(e){ee(e)}))}function Ae(e){xe(e)}function Ze(e,n,t){var a=r.premium.upgradeInfo;if(t=t||"Yearly"===a.CurrentPlan.Interval&&"PayPal"===a.CurrentPlan.PaymentMethod,"basic"===e){var i="Basic (1 user)",s=a.Personal.Coupon,l=a.Personal.NeedCreate,o="premium_plan";o=t?"premium_plan":"premium_plan"+("month"===j?"m":"")}else if("professional"===e)i="Professional (1 user)",s=a.Pro.Coupon,l=a.Pro.NeedCreate,o=t?"pro_plan":"pro_plan"+("month"===j?"m":"");else if("team"===e){i="Team ("+n+" users)";var c=Le["team_plan_"+n+"m"].Price;s=a.Team.Coupon,l=a.Team.NeedCreate,o=t?"team_plan_"+n:"team_plan_"+n+("month"===j?"m":"")}var u={currentChoose:e,currentTeamNum:n,planText:i,needCreate:l,price_m:c||"",coupon:s,planOverviewBtnText:"Upgrade",currentPlanName:o};u.isForceYear=!!t,we({type:e,planText:i,needCreate:l,price_m:c||"",coupon:s,planOverviewBtnText:"Upgrade",isForceYear:t}),T(o),w(n),ee(null),Z(!0),Ue(o)}(0,u.useEffect)((function(){(0,D.ve)("strip-checkout","https://checkout.stripe.com/checkout.js",(function(){pe(!0)})),n(),m(ke),"undefined"!=typeof StripeCheckout&&(_e.current=StripeCheckout.configure({key:"pk_live_dEyUjlPXO4pAhgsnnuUwrbEm",image:"https://www.awesomescreenshot.com/images/logo_128.png",locale:"auto",email:/privaterelay.appleid.com/.test(r.info.mail)?"":r.info.mail,token:function(e){Ce.current=e,"Paypal"===r.premium.currentPlan.PaymentMethod?(0,h.oH9)().then((function(){Ie("1",e)}),(function(){Ie("0",e)})):Ie("1",e)},closed:function(){Ce.current&&te(!1)}})),window.addEventListener("popstate",De,!1);try{var e=window.location.href.match(/\?success=(.*)$/);e&&("true"===(e=e[1])?(se("success"),z(!0)):i.Z.error({title:"Payment Failed",content:"Your payment didnât go through. Please check your card
1information then try again.",okText:"Got it"}));var t=window.location.href.match(/from=(.*)$/);if(t)var a=t[1];else a="website";a&&setTimeout((function(){(0,h.tM0)(a)}),1e3)}catch(e){}return function(){window.removeEventListener("popstate",De,!1)}}),[]),(0,u.useEffect)((function(){var e,n;("professional"==(null===(e=r.premium.upgradeInfo)||void 0===e?void 0:e.CurrentPlan.PlanName)&&null!==(n=r.premium.upgradeInfo)&&void 0!==n&&n.CurrentPlan.IsWorkspace||(null==Ee?void 0:Ee.indexOf("workspace"))>=0)&&xe("workspace")}),[r]),(0,u.useEffect)((function(){w(f)}),[f]);var Le=d.plans;function Fe(e,n,r){if("free"===e)return 0;if("basic"===e)return r?Le.premium_planm.OriginPrice:Le.premium_planm.Price;if("professional"===e)return r?Le.pro_planm.OriginPrice:Le.pro_planm.Price;if("team"===e){var t="team_plan_"+n+"m";return r?Le[t].OriginPrice:Le[t].Price}return"workspace-lite"===e?0:"workspace-premium"===e?Le.workspace_plan_m.Price:void 0}function Me(e,n,r){if("free"===e)return 0;if("basic"===e)return r?Le.premium_plan.OriginPrice:Le.premium_plan.Price;if("professional"===e)return r?Le.pro_plan.OriginPrice:Le.pro_plan.Price;if("team"===e){var t="team_plan_"+n;return r?Le[t].OriginPrice:Le[t].Price}return"workspace-lite"===e?0:"workspace-premium"===e?Le.workspace_plan.Price:void 0}function Ye(e,n){if("basic"===e)return{m:Le.premium_planm.EnableDiscount,y:Le.premium_plan.EnableDiscount};if("professional"===e)return{m:Le.pro_planm.EnableDiscount,y:Le.pro_plan.EnableDiscount};if("team"===e){var r="team_plan_"+n;return{m:Le["team_plan_"+n+"m"].EnableDiscount,y:Le[r].EnableDiscount}}}var Re=H(W.uK);Le.premium_plan&&Re.forEach((function(e){if("free"===e.type)e.EnableDiscount=!1,e.EnableDiscount_y=!1;else if("team"!==e.type){var n=Ye(e.type);e.EnableDiscount=n.m,e.EnableDiscount_y=n.y}else e.EnableDiscount={},e.EnableDiscount_y={},W.ai.forEach((function(n){var r=Ye("team",n);e.EnableDiscount[n]=r.m,e.EnableDiscount_y[n]=r.y}));if("team"!==e.type)e.price=Fe(e.type),e.price_y=(0,D.MW)(Me(e.type)),e.price_o=Fe(e.type,0,!0),e.price_y_o=(0,D.MW)(Me(e.type,0,!0));else if("team"===e.type){var r={},t={},a={},i={};W.ai.forEach((function(e){r[e]=Fe("team",e),t[e]=(0,D.MW)(Me("team",e)),a[e]=Fe("team",e,!0),i[e]=(0,D.MW)(Me("team",e,!0))})),e.price=r,e.price_y=t,e.price_o=a,e.price_y_o=i}}));var $e=H(W.iv);Le.workspace_plan&&$e.forEach((function(e){e.price=Fe(e.type),e.price_y=(0,D.MW)(Me(e.type))}));var Be=(0,b.jsxs)("div",{className:"plan-page",children:[(0,b.jsxs)("div",{className:"main",children:[(0,b.jsx)("div",{className:"title",children:"Pick a plan that suits your needs"}),(0,b.jsx)("div",{className:"title-tip",children:"All prices listed below are in USD."}),!d.isLoading&&!r.isLoading&&de&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"plan-switcher",children:[(0,b.jsxs)("div",{className:"switch-item ".concat("personal"===ve?"selected":""),onClick:function(){Ae("personal")},children:[(0,b.jsx)("div",{className:"type-title",children:"For individuals"}),(0,b.jsx)("div",{className:"desc",children:"Faster screenshots, quicker recordings, easier life"})]}),(0,b.jsxs)("div",{className:"switch-item ".concat("workspace"===ve?"selected":""),onClick:function(){Ae("workspace")},children:[(0,b.jsx)("div",{className:"type-title",children:"For teams"}),(0,b.jsx)("div",{className:"desc",children:"Collaborate with your team anytime, anywhere"})]})]}),"workspace"===ve&&Te&&(0,b.jsx)(R,{}),(0,b.jsx)("div",{className:"period-radio",children:(0,b.jsxs)(t.ZP.Group,{defaultValue:j,onChange:function(e){Oe(e.target.value,!0)},children:[(0,b.jsxs)(t.ZP,{value:"year",children:["Billed annually"," ",(0,b.jsx)("span",{className:"highlight",children:"(20% Savings)"})," "]}),(0,b.jsx)(t.ZP,{value:"month",children:"Billed monthly "})]})}),(0,b.jsx)("div",{className:"plan-container",children:"personal"===ve?(0,b.jsx)("div",{className:"plan-box",children:Re.map((function(e){return(0,b.jsx)(A,{plan:e,purchaseType:oe,currentTeamNum:P,upgradeInfo:r.premium.upgradeInfo,handleChoose:Ze},e.type)}))}):(0,b.jsx)("div",{className:"plan-box",children:$e.map((function(e){return(0,b.jsx)(B.Z,{plan:e,purchaseType:oe,isTeamPlan:"team"===r.premium.currentPlan.PlanName&&r.premium.currentPlan.OwnerUID===r.premium.currentPlan.UID,currentTeamNum:P,upgradeInfo:r.premium.upgradeInfo,handleChoose:Ze},e.type)}))})}),(0,b.jsx)(S.Z,{visible:U,planText:Pe.planText,title:"Billing overview",handleCancel:function(){Z(!1)},handlePay:function(e){"PayPal"===e?(te(!0),(0,h.GMb)(E,this.promotionCode).then((function(e){e.URL&&(window.location.href=e.URL)})).catch((function(){te(!1)}))):Pe.needCreate?ge(!0):(te(!0),(0,h.BBL)(E).then((function(){n(!0),Z(!1),te(!1),a.ZP.success("Your plan has been upgraded to "+Pe.planText+" successfully!")}),(function(e){te(!1),i.Z.error({title:"Payment Failed",content:e+" Please try a different card or contact your card
1issuer.",okText:"Got it"})})))},handleBillingPeriodChange:Oe,btnText:Pe.planOverviewBtnText,currentChoose:Pe.type,billingPeriod:j,upgradeCostInfo:Q,isForceYear:Pe.isForceYear,isUpgradeBtnLoading:re,isShowOverviewLoading:fe,handleApplePay:function(e){var r=this;he(!0),(0,h.tRN)({stripeEmail:e.billing_details.email,name:e.billing_details.name,paymentMethod:e.id,planName:E,promotionCode:ke}).then((function(){Z(!1),he(!1),m(r.promotionCode),n(!0)})).catch((function(e){he(!1),i.Z.error({title:"Payment Failed",content:e+" Please try a different card or contact your card issuer.",okText:"Got it"})}))}}),(0,b.jsx)(y.Z,{visible:F,handleCancel:function(){Y(!1)},handleCancelPlanSuccess:function(){n(),Ce.current=null,Z(!0)}}),(0,b.jsx)(v.Z,{visible:K,handleCancel:function(){z(!1)},type:ie}),(0,b.jsx)(C,{visible:be,onCancel:function(){ge(!1)},afterPay:function(){ge(!1),Z(!1),n(!0)},planName:E,promotionCode:ke})]})]}),!d.isLoading&&!r.isLoading&&de&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"faq-area",children:(0,b.jsxs)("div",{className:"faq",children:[(0,b.jsx)("div",{className:"title",children:"FAQs"}),(0,b.jsx)(s.Z,{ghost:!0,expandIconPosition:"right",expandIcon:function(e){var n=e.isActive;return(0,b.jsx)(I.e0,{rotate:n?270:90})},children:W.SF.map((function(e){return(0,b.jsx)(X,{className:"faq-header",header:e.header,children:(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}})},e.header)}))})]})}),(0,b.jsx)("div",{className:"contact",children:(0,b.jsxs)("div",{className:"contact-win",children:[(0,b.jsx)("div",{className:"pic"}),(0,b.jsx)("div",{className:"form-area",children:(0,b.jsx)(k.z,{})})]})})]})]});return G.Z.isSafari()?(0,b.jsx)(l.Elements,{stripe:(!$&&G.Z.isSafari()&&($=(0,o.J)("pk_live_dEyUjlPXO4pAhgsnnuUwrbEm")),$),children:Be}):(0,b.jsx)(b.Fragment,{children:Be})}))}}]);
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.