1/*! For license information please see payments.e645f8e982.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunklawinsidercontracts||=[]).push([[9970],{2583(e,t,n){n.d(t,{Qt:()=>D,Ay:()=>Y,In:()=>A,ju:()=>T});var r=n(6942),i=n.n(r),a=n(9869),c=n(2109),o=n(4918),s="ZOPDrfuPtb",l="_s1C6D9Ebl",d="jWmkt359mc",u="ZfT5HAB5x2",p="GQTkoEqPJ_",m="MlG2xkUn4e",h="Ztcd780i88",f="K7Y6wqDvTx",g="JI8L5KrVqI",y=n(8028),v=n(5391),b=n(9028),N=n(9698);const E={month:"mo",year:"yr"},C={day:"numeric",month:"short"};function A(e){const t=new Date;return t.setDate(t.getDate()+e),t.toLocaleDateString(void 0,C)}function D(){return(0,N.Y)("span",{"aria-hidden":"true",className:"fnN0unzFTK",children:"â"})}const _={description:"Install the Law Insider Word Add-in, powered by SimpleAI, and go unlimited across all three products",logo:"/images/common/simple-ai-logo.svg",logoAlt:"SimpleAI",name:"Pro",products:[{description:"Unlimited chats: draft, review, and research in your browser",highlighted:!0,mobileDescription:"Draft, review & redline",name:"AI Assistant"},{description:"Unlimited searches and downloads across 5M+ contracts",logo:"/images/common/logo.svg",mobileDescription:"Database search ⢠200M+ clauses",name:"Law Insider"},{description:"Unlimited MS Word Add-in: redline, risk review, playbooks",logo:"/images/common/simple-ai-logo.svg",mobileDescription:"MS Word Add-in",name:"SimpleAI"}],stripTitle:"Unlimited access to all three"};function T(e=c.fs){var t;const{currency:n,discountRawPrices:r,products:i,rawPrices:s,shouldShowIntroductoryPrice:l,trialPeriods:d,trialPrices:u}=(0,a.useContext)(y.A),p=i[e];if(!p)return null;const m=l(e),h=m?d[e]:0,f=m?u[e]:null,g=Math.max(null!=(t=r?.[e])?t:s[e],0);return{interval:p.interval,intervalShort:E[p.interval]||p.interval,price:(0,o.vv)(g,n),trialDays:h,trialFree:m&&0===f,trialPrice:m?(0,o.vv)(f,n):null}}function P({checked:e,highlighted:t,logo:n,name:r}){return e?(0,N.Y)("i",{className:"check green"}):t?(0,N.Y)("span",{className:"jDPPqWNOth text-nowrap",children:(0,N.Y)(b.A,{showIcon:!0,children:r})}):(0,N.Y)("img",{alt:r,className:"uj4qDcHG_m",src:n})}function I({checkout:e,products:t,title:n}){return(0,N.FD)("div",{className:i()("DZGjeaOa_T",{[l]:t.every(({checked:e})=>e)}),children:[e&&(0,N.Y)("b",{className:"sdPW22EnVS",children:n}),(0,N.Y)("dl",{className:"no-margin",children:t.map(({checked:e,description:t,highlighted:n,logo:r,mobileDescription:i,name:a})=>(0,N.FD)("div",{children:[(0,N.Y)("dt",{className:"no-margin",children:(0,N.Y)(P,{checked:e,highlighted:n,logo:r,name:a})}),(0,N.FD)("dd",{className:"no-margin",children:[(0,N.Y)("span",{className:"iVMAzBPbCs",children:t}),(0,N.Y)("span",{className:"AfaCeWLlAP",children:i})]})]},a))})]})}function k({checkout:e,offer:t,priceInfo:n}){const r=t.dueToday||t.trialPrice||t.price;return t.trialDays?(0,N.FD)("div",{className:"b4e2LJ4tdx",children:[(0,N.FD)("p",{className:h,children:[e&&(0,N.Y)("span",{className:p,children:"Due today"}),(0,N.Y)("span",{className:f,children:(0,N.Y)("b",{children:r})}),(0,N.FD)("span",{className:d,children:["today",n]}),(0,N.Y)("span",{className:`${d} ${u}`,children:"·"}),(0,N.FD)("span",{className:d,children:["then ",t.price," per ",t.interval]})]}),e&&(0,N.FD)("p",{className:"wYOo91JINg",children:["Card required · first payment ",t.price," on"," ",A(t.trialDays)," · cancel any time before"]})]}):(0,N.FD)("p",{className:h,children:[e&&(0,N.Y)("span",{className:p,children:"Due today"}),(0,N.Y)("span",{className:f,children:(0,N.Y)("b",{children:r})}),(0,N.FD)("span",{children:["/",t.intervalShort]}),e&&(0,N.FD)(N.FK,{children:[(0,N.Y)("span",{className:`${d} ${u}`,children:"·"}),(0,N.FD)("span",{className:d,children:["due today",n]})]})]})}function w({offer:e,planName:t}){return(0,N.FD)("span",{className:"hH58LM1CuK text-nowrap",children:[t,e.trialDays>0&&(0,N.FD)(N.FK,{children:[(0,N.FD)("span",{className:"eQwpGPAT8w",children:[" ","· ",e.trialFree&&"FREE ",e.trialDays,"-DAY TRIAL"]}),(0,N.FD)("span",{className:"EeoP493VCh",children:[(0,N.Y)("span",{"aria-hidden":"true",children:"·"}),e.trialFree&&(0,N.Y)("span",{className:"BsnAeru5Nu",children:"FREE"}),(0,N.FD)("span",{children:[e.trialDays," DAYS"]})]})]})]})}function S(){return(0,N.FD)("details",{className:"uwjK3zPe5B",children:[(0,N.FD)("summary",{children:[(0,N.FD)("b",{children:[30,"-day money-back guarantee"]})," ·"," ",(0,N.Y)("span",{className:"CfiyHNGHnA",children:"see terms"})]}
2),(0,N.FD)("p",{children:["Not right for you? Contact"," ",(0,N.Y)("a",{href:c.A.CONTACT_SUPPORT,...c.Js,children:"support"})," ","within ",30," days of your first payment for a full refund."]})]})}function Y({action:e,checkout:t=!1,className:n,consent:r,moneyBackGuarantee:a=!0,offer:c,onAction:o,options:l,plan:d=_,priceAction:u,priceInfo:p,security:h,usageExhausted:f=!1}){const y=T(),b=c||y,{description:E,logo:C,logoAlt:A,mobileDescription:P,name:Y,products:F,stripTitle:R}=d,x=Boolean(b.trialDays);let O=`Upgrade to ${Y}`;return x&&(O=b.trialFree?"Start free trial":"Start trial"),(0,N.FD)("section",{className:i()("ANb_3sUxCi","text-left",n,{[s]:t,[g]:f}),children:[(0,N.FD)("div",{className:"iYCe9Xom8V",children:[(0,N.Y)("img",{alt:A,className:m,src:C}),(0,N.Y)(w,{offer:b,planName:Y})]}),(0,N.Y)("div",{className:"Wdgr4TCn37",children:x?(0,N.FD)(N.FK,{children:[(0,N.Y)("span",{className:"highlight-price",children:b.trialFree?"FREE":b.trialPrice}),(0,N.FD)("span",{children:[b.trialDays,"-day trial · card required"]})]}):(0,N.Y)("img",{alt:A,className:m,src:C})}),(0,N.Y)("p",{className:"O8MtmyZfi4",children:E}),(0,N.FD)("div",{className:"vM_9DryNG2",children:[(0,N.Y)("p",{className:"W_GiY6t_jP no-margin",children:P||(b.trialFree?`Unlimited AI Assistant, database and the Word Add-in. Card required, nothing charged for ${b.trialDays} days.`:"Unlimited AI Assistant, database search and the Word Add-in.")}),(0,N.Y)(I,{checkout:t,products:F,title:R}),l&&(0,N.Y)("div",{className:"Mzo4Zn9lif",children:l}),(0,N.FD)("div",{className:"bUpmE0KdMJ",children:[(0,N.Y)(k,{checkout:t,offer:b,priceInfo:p}),u&&(0,N.Y)("div",{className:"NpHrGNjlR7",children:u})]}),h,r&&(0,N.Y)("div",{className:"ixsYHQ3Ptm",children:r}),(0,N.Y)("div",{className:"HVZXPnlIVR",children:e||(0,N.FD)(v.A,{fullwidth:!0,raised:!0,className:"gz3y2W0PJn",size:"lg",onClick:o,children:[O,x&&(0,N.Y)(D,{})]})})]}),(b.trialFree||a)&&(0,N.FD)("div",{className:"_9uHWXNV657 text-center",children:[b.trialFree&&(0,N.FD)("div",{children:[(0,N.Y)("i",{className:"check green"})," Nothing charged for"," ",b.trialDays," days"]}),a&&(0,N.FD)("div",{children:[(0,N.Y)("i",{className:"check green"})," ",(0,N.Y)(S,{})]})]})]})}},6710(e,t,n){n.d(t,{G:()=>m,A:()=>f});var r=n(6942),i=n.n(r),a=n(4843),c=n(9869),o=n(2109),s=n(1818),l=n(8028),d=n(5549),u=n(4681),p=n(9698);const m={ADVANCED_SEARCH:"Advanced Search",CLAUSE_FINDER:"ClauseFinder⢠AI Search",COPY_AND_DOWNLOAD:"Copy & Download",ENHANCED_ROLE_BASED_ACCESS:"Enhance Role Based Access Controls",INTEGRATION_GPT:"Chat with Law Insider GPT",LISTS:"Save Clauses to Lists",MULTIPLE_ENVIRONMENTS:"Multiple Environments",NEWSLETTER:"Premium Resources & Newsletter",PRIVATE_CONTRACT_LIBRARIES:"Private Contract Libraries",SHARED_PRIVATE_LIBRARIES:"Shared Private Libraries",SSO_OKTA_INTEGRATION:"SSO/Okta Integration (Coming Soon)",SUPPORT:"24/7 Support",TEAM:"Add Your Team",TEAM_ANNUAL_FREE_MEMBER:"First Additional Team Member Free",UNLIMITED_ADMIN_USERS:"Unlimited Admin Users",UNLIMITED_BROWSING:"Unlimited Browsing",UNLIMITED_CLAUSE_LISTS:"Unlimited Clause Lists",UNLIMITED_SEARCH:"Unlimited Search & Browse",UNLIMITED_SECURE_LIBRARIES:"Unlimited Secure Libraries",USAGE_HISTORY:"Audit Log/Usage History"},h=(e,t)=>{const n=Math.round(e.length/t);return Array.from({length:t},(t,r)=>e.slice(r*n,(r+1)*n))};function f({caption:e=null,className:t,columns:n=2,features:r=[m.UNLIMITED_BROWSING,m.ADVANCED_SEARCH,m.COPY_AND_DOWNLOAD,m.LISTS,m.TEAM,m.NEWSLETTER],featuresToOverwrite:f,isEnterprisePlan:g,isProPlan:y,itemTitleTag:v="span",showTryPremiumLabel:b=!0}){let N=r;const[E]=(0,a.fp)(u.p9),{minTrialValues:C}=(0,c.useContext)(l.A),{formattedMinPrice:A,isTrialAvailable:D,minTrialPeriod:_}=C(),T=v;return y&&(N=o.tW["tier-4"]),g&&(N=o.tW["tier-5"]),y||g||(N=o.tW["tier-0"]),o.qx?(0,p.FD)(p.FK,{children:[e,(0,p.Y)("div",{className:i()(t,"features-list"),children:h(f||N,n).map(e=>(0,p.Y)("ul",{className:"list-unstyled",children:e.map(e=>{const t=Array.isArray(e)?e[0]:e,n=Array.isArray(e)&&!e[1];return(0,p.FD)("li",{title:t,children:[(0,p.Y)("i",{className:n?"close-red":"check green"})," ",n?(0,p.FD)(p.FK,{children:[(0,p.Y)(T,{children:(0,p.Y)("s",{children:t})})," ","(Annual Only)"]}):(0,p.Y)(T,{children:t})]},t)})},e[0]))}),b&&(0,p.Y)("p",{className:"green",children:(0,p.FD)("b",{children:[(0,s.uZ)(E?.trialUsed)||!D?`Plans starting at ${A} per month.`:`Try Premium - Starting at ${A} for ${_} days.`," ","Cancel anytime."]})})]}):(0,p.Y)("div",{className:"kAkHhoOjrL row-flex flex-justify-center flex-align-center",children:(0,p.Y)(d.A,{})})}},2466(e,t,n){n.d(t,{A:()=>d});var r=n(9869),i=n(5809),a=n(6410),c=n(8028),o=n(7399),s=n(6660),l=n(9698);function d({showLabel:e}){const{geo:{country:t}}=(0,r.useContext)(i.A),{currency:n,subscriptionState:d,updateCurrency:u}=(0,r.useContext)(c.A),p=o.A.SHOW_CURRENCY.get(),m=!!d?.currency,h=o.A.CURRENCY.get({ignoreDefault:!0})||a.xh[t.toLowerCase()];(0,r.useEffect)(()=>{p&&h&&!m&&o.A.CURRENCY.set(h)},[h,m,p]);const f=a.M3[n]?n:"usd";return p?(0,l.FD)("label",{"aria-label":m?"Please contact support if you want to change your currency":null,className:"tooltip-top-right",htmlFor:"currency",role:m?"tooltip":null,children:[e&&(0,l.FD)(l.FK,{children:[(0,l.Y)("b",{children:"Currency:"})," "]}),(0,l.Y)("select",{className:"currency-selector",disabled:m,id:"currency",value:f,onChange:({target:{value:e}})=>{u(e),(0,s.s)("currency_change",{value:e})},children:Object.keys(a.M3).map(e=>(0,l.Y)("option",{value:e,children:e.toUpperCase()},e))})]}):null}}
2,5177(e,t,n){n.r(t),n.d(t,{default:()=>Ne});var r=n(6540),i=n(5556);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,c,o=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||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 d(e){return d="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},d(e)}var u=function(e,t,n){var i=!!n,a=r.useRef(n);r.useEffect(function(){a.current=n},[n]),r.useEffect(function(){if(!i||!e)return function(){};var n=function(){if(a.current)return a.current.apply(a,arguments)};return e.on(t,n),function(){e.off(t,n)}},[i,t,e,a])},p=function(e){var t=r.useRef(e);return r.useEffect(function(){t.current=e},[e]),t.current},m=function(e){return null!==e&&"object"===d(e)},h="[object Object]",f=function e(t,n){if(!m(t)||!m(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var i=Object.prototype.toString.call(t)===h;if(i!==(Object.prototype.toString.call(n)===h))return!1;if(!i&&!r)return t===n;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(var o={},s=0;s<a.length;s+=1)o[a[s]]=!0;for(var l=0;l<c.length;l+=1)o[c[l]]=!0;var d=Object.keys(o);if(d.length!==a.length)return!1;var u=t,p=n;return d.every(function(t){return e(u[t],p[t])})},g=function(e,t,n){return m(e)?Object.keys(e).reduce(function(r,i){var a=!m(t)||!f(e[i],t[i]);return n.includes(i)?r:a?s(s({},r||{}),{},c({},i,e[i])):r},null):null},y="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;if(null===e||m(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;throw new Error(n)},b=r.createContext(null);b.displayName="ElementsContext";var N=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},E=function(e){var t=e.stripe,n=e.options,i=e.children,a=r.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;if(function(e){return m(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return v(e,t)})};var n=v(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}}(t)},[t]),c=l(r.useState(function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(n):null}}),2),o=c[0],s=c[1];r.useEffect(function(){var e=!0,t=function(e){s(function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}})};return"async"!==a.tag||o.stripe?"sync"!==a.tag||o.stripe||t(a.stripe):a.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[a,o,n]);var d=p(t);r.useEffect(function(){},[d,t]);var u=p(n);return r.useEffect(function(){if(o.elements){var e=g(n,u,["clientSecret","fonts"]);e&&o.elements.update(e)}},[n,u,o.elements]),r.useEffect(function(){var e;
2(e=o.stripe)&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.8.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.8.0",url:"https://stripe.com/docs/stripe-js/react"}))},[o.stripe]),r.createElement(b.Provider,{value:o},i)};E.propTypes={stripe:i.any,options:i.object},i.func.isRequired;var C=r.createContext(null);C.displayName="CheckoutContext";var A=function(e){var t=r.useContext(C),n=r.useContext(b);if(t){if(n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."));return t}return N(n,e)},D=["mode"],_=function(e,t,n){var a,c="".concat((a=e).charAt(0).toUpperCase()+a.slice(1),"Element"),o=t?function(e){A("mounts <".concat(c,">"));var t=e.id,n=e.className;return r.createElement("div",{id:t,className:n})}:function(t){var n,i=t.id,a=t.className,o=t.options,s=void 0===o?{}:o,d=t.onBlur,m=t.onFocus,h=t.onReady,f=t.onChange,y=t.onEscape,v=t.onClick,b=t.onLoadError,N=t.onLoaderStart,E=t.onNetworksChange,C=t.onConfirm,_=t.onCancel,T=t.onShippingAddressChange,P=t.onShippingRateChange,I=t.onSavedPaymentMethodRemove,k=t.onSavedPaymentMethodUpdate,w=t.onAvailablePaymentMethodsChange,S=A("mounts <".concat(c,">")),Y="elements"in S?S.elements:null,F="checkoutState"in S?S.checkoutState:null,R="success"===(null==F?void 0:F.type)||"loading"===(null==F?void 0:F.type)?F.sdk:null,x=l(r.useState(null),2),O=x[0],L=x[1],M=r.useRef(null),U=r.useRef(null);u(O,"blur",d),u(O,"focus",m),u(O,"escape",y),u(O,"click",v),u(O,"loaderror",b),u(O,"loaderstart",N),u(O,"networkschange",E),u(O,"confirm",C),u(O,"cancel",_),u(O,"shippingaddresschange",T),u(O,"shippingratechange",P),u(O,"savedpaymentmethodremove",I),u(O,"savedpaymentmethodupdate",k),u(O,"availablepaymentmethodschange",w),u(O,"change",f),h&&(n="expressCheckout"===e?h:function(){h(O)}),u(O,"ready",n),r.useLayoutEffect(function(){if(null===M.current&&null!==U.current&&(Y||R)){var t=null;if(R){var n=R,r=R;switch(e){case"paymentForm":t=r.createForm(s);break;case"payment":t=n.createPaymentElement(s);break;case"address":if(!("mode"in s))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var i=s.mode,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(s,D);if("shipping"===i)t=n.createShippingAddressElement(a);else{if("billing"!==i)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=n.createBillingAddressElement(a)}break;case"expressCheckout":t=n.createExpressCheckoutElement(s);break;case"currencySelector":t=R.createCurrencySelectorElement();break;case"taxId":t=n.createTaxIdElement(s);break;case"contactDetails":t=n.createContactDetailsElement();break;case"terms":t=n.createTermsElement(s);break;default:throw new Error("<".concat(c,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else Y&&(t=Y.create(e,s));M.current=t,L(t),t&&t.mount(U.current)}},[Y,R,s]);var H=p(s);return r.useEffect(function(){if(M.current){var e=g(s,H,["paymentRequest"]);e&&"update"in M.current&&M.current.update(e)}},[s,H]),r.useLayoutEffect(function(){return function(){if(M.current&&"function"==typeof M.current.destroy)try{M.current.destroy(),M.current=null}catch(e){}}},[]),r.createElement("div",{id:i,className:a,ref:U})};return o.propTypes={id:i.string,className:i.string,onChange:i.func,onBlur:i.func,onFocus:i.func,onReady:i.func,onEscape:i.func,onClick:i.func,onLoadError:i.func,onLoaderStart:i.func,onNetworksChange:i.func,onConfirm:i.func,onCancel:i.func,onShippingAddressChange:i.func,onShippingRateChange:i.func,onSavedPaymentMethodRemove:i.func,onSavedPaymentMethodUpdate:i.func,onAvailablePaymentMethodsChange:i.func,options:i.object},o.displayName=c,o.__elementType=e,o},T="undefined"==typeof window;r.createContext(null).displayName="EmbeddedCheckoutProviderContext",_("auBankAccount",T),_("card",T),_("cardNumber",T),_("cardExpiry",T),_("cardCvc",T),_("currencySelector",T),_("iban",T);var P=_("payment",T),I=(_("expressCheckout",T),_("paymentRequestButton",T),_("linkAuthentication",T),_("contactDetails",T),_("address",T),_("shippingAddress",T),_("paymentMethodMessaging",T),_("taxId",T),_("issuingCardNumberDis
2play",T),_("issuingCardCvcDisplay",T),_("issuingCardExpiryDisplay",T),_("issuingCardPinDisplay",T),_("issuingCardCopyButton",T),_("terms",T),n(9170)),k=n(6942),w=n.n(k),S=n(4843),Y=n(9869),F=n(2109),R=n(4918),x=n(4929),O=n(7071),L=n(1818),M=n(3544),U=n(5809),H=n(2583),j=n(9698);function K({className:e}){return(0,j.Y)("i",{className:`payment-icon ${e}`})}var B=n(8847),G=n(2466),q=n(8028),W=n(6367),V=n(1539),$=n(7399),z=n(5391),J=n(4699),Q=n(2970),Z=n(847),X=n(5549),ee=n(6402),te=n(1897),ne=n(6660),re=n(4681);const ie={[F.uq.GOOGLE_PAY]:"google-pay",[F.uq.APPLE_PAY]:"apple-pay"},ae=new Set(["jcb","discover","diners","unionpay"]),ce=[["Vorys","/images/reviews/vorys.png"],["Trembly Law Firm","/images/reviews/trembly-law-firm.png"],["Alphabet",(0,M.mY)("company_logos/alphabet-min.svg")],["Humana",(0,M.mY)("company_logos/humana-min.svg")],["Dentons",(0,M.mY)("company_logos/dentons.svg")],["DuPont",(0,M.mY)("company_logos/dupont-min.svg")]];function oe(){return(0,j.FD)("div",{className:"plan-checkout__security",children:[(0,j.FD)("div",{className:"plan-checkout__security-logos",children:[(0,j.Y)("img",{alt:"SOC 2 Type II Compliant",src:"/images/common/compliance-soc-2-type-2.png"}),(0,j.Y)("img",{alt:"TX-RAMP Compliant",src:"/images/common/compliance-tx-ramp.png"}),(0,j.Y)("img",{alt:"GDPR Compliant",className:"plan-checkout__gdpr-logo",src:"/images/common/compliance-gdpr.png"})]}),(0,j.FD)("div",{children:[(0,j.Y)("b",{children:"Your documents are never used to train models."}),(0,j.FD)("ul",{children:[(0,j.FD)("li",{children:[(0,j.Y)("i",{className:"check green"})," Never shared with third parties"]}),(0,j.FD)("li",{children:[(0,j.Y)("i",{className:"check green"})," Deletable at any time"]}),(0,j.FD)("li",{children:[(0,j.Y)("i",{className:"check green"})," SOC 2 Type II · TX-RAMP · GDPR"]})]}),(0,j.Y)("a",{href:"https://trust.simpledocs.com/",...F.Js,children:"See more in our Trust Center â"})]})]})}function se({className:e,testimonialRef:t}){return(0,j.FD)("figure",{ref:t,className:e,children:[(0,j.Y)("blockquote",{children:"âSimpleAI helps our lawyers draft, review and analyze contracts more efficiently while maintaining the security and governance our firm requires.â"}),(0,j.FD)("figcaption",{children:[(0,j.FD)("div",{className:"plan-checkout__testimonial-attribution",children:[(0,j.Y)("img",{alt:"Brian Donato",className:"plan-checkout__testimonial-portrait",src:"/images/reviews/brian-donato.webp"}),(0,j.FD)("span",{children:[(0,j.Y)("b",{children:"Brian Donato"}),(0,j.Y)("br",{}),"Chief Information Officer, Vorys"]})]}),(0,j.Y)("img",{alt:"Vorys",className:"plan-checkout__testimonial-logo",src:"/images/reviews/vorys.png"})]})]})}function le(){return(0,j.FD)("div",{className:"plan-checkout__proof",children:[(0,j.Y)("b",{children:"Trusted by 10,000+ customers"}),(0,j.Y)("div",{children:ce.map(([e,t])=>(0,j.Y)("img",{alt:e,src:t},e))})]})}function de(){const[e]=(0,S.fp)(re.p9);return(0,j.FD)("div",{className:"card-element margin-b-1",children:["An invoice will be emailed to ",e.email," with ACH, wire transfer and other payment options within 60 minutes."]})}function ue({onStripeElementsReady:e}){const t=(n=r.useContext(b),N(n,"calls useElements()")).elements;var n;return(0,j.Y)(P,{onReady:()=>e(t)})}function pe({invoiceMethod:e,onStripeElementsReady:t,paymentMethodType:n,stripe:r}){const{debug:i}=(0,Y.useContext)(U.A),{shouldUpdateCard:a,subscriptionState:{source:c,subscription:o},updateShouldUpdateCard:s}=(0,Y.useContext)(q.A),l=o?.paymentIntent?.error;if(e)return(0,j.Y)(de,{});if(a)return(0,j.Y)("div",{className:"card-element",children:(0,j.Y)(E,{options:{amount:0,appearance:{variables:{colorDanger:I.D5,colorPrimary:I.P0}},currency:"usd",mode:"subscription",paymentMethodConfiguration:i?"pmc_1Pxz9vGLuDgQd044Cd7hloMf":"pmc_1Pxz9qGLuDgQd044FCbga09V",paymentMethodCreation:"manual",setupFutureUsage:"off_session"},stripe:r,children:(0,j.Y)(ue,{onStripeElementsReady:t})})});if(n===F.uq.INVOICE)return(0,j.Y)("div",{className:"card-element",children:"You currently have manual billing enabled."});if(!c)return null;
2const{expMonth:d,expYear:u,last4:p,name:m,type:h,wallet:f}=c,g=ie[h];return(0,j.FD)(j.FK,{children:[(0,j.FD)("div",{className:"card-element card-element-static row-flex flex-justify-center flex-align-center",children:[(0,j.FD)("span",{children:[g&&(0,j.Y)("span",{style:{paddingRight:"5px"},children:(0,j.Y)(K,{className:g})}),f&&(0,j.Y)("span",{style:{borderRight:"1px solid",marginRight:"5px",padding:"0 5px 0 5px"},children:f}),(0,j.FD)("span",{children:[m,p&&` â¢â¢â¢â¢ ${p}`]}),d&&u&&(0,j.FD)("span",{children:[" ","Expires ",String(d).padStart(2,"0"),"/",u]})]}),(0,j.Y)(z.A,{style:{marginLeft:"4px"},onClick:()=>s(!0),children:"Change"})]}),l&&(0,j.FD)("div",{className:"row-flex flex-justify-center flex-align-center",style:{color:I.D5,paddingTop:"10px"},children:[(0,j.Y)("i",{className:"icon icon-warning-red"}),l,(0,j.Y)(z.A,{onClick:()=>s(!0),children:"Update Card"})]})]})}function me({couponForm:e,hideCouponForm:t,invoiceMethod:n,onStripeElementsReady:r,paymentMethodType:i,stripe:a}){return(0,j.Y)(J.A,{children:(0,j.FD)("div",{className:"payments-container-blue form-container",children:[(0,j.Y)(pe,{invoiceMethod:n,paymentMethodType:i,stripe:a,onStripeElementsReady:r}),t||i===F.uq.INVOICE?null:e]})})}function he(e){return{email:e?.email||void 0,name:[e?.firstName,e?.lastName].filter(Boolean).join(" ")||void 0,phone:e?.phone||void 0}}function fe({content:e}){return(0,j.Y)("span",{"aria-label":e,className:"tooltip-flat tooltip-top",role:"tooltip",style:{marginLeft:"0.25rem"},children:"â"})}function ge({children:e,planType:t,price:n}
2){const{products:r,renderPrice:i}=(0,Y.useContext)(q.A),{interval:a}=r[t];return(0,j.FD)("div",{className:"checkout-item membership-price-item",children:[(0,j.FD)("div",{className:"membership-price-label",children:[(0,j.Y)("b",{className:"no-margin-b",children:"Your membership"}),(0,j.Y)("b",{children:i(n,!1,!1,n)})]}),(0,j.FD)("span",{className:"text-right font-sm",children:["/",a]}),e]})}function ye({incomingInvoice:e,incomingInvoiceLoading:t,planTypeToEstimate:n}){var r,i,a,c;const{renderPrice:o}=(0,Y.useContext)(q.A),s=n.includes("month")?"month":"year",{adminPriceInfo:l,freeTeamUserPriceInfo:d,teamPriceInfo:u}=(e=>{if(!e?.length)return{};const t=e.find(e=>0===e.quantity&&e.amount>0),n=e.find(e=>e.quantity>0&&e.amount>0);return{adminPriceInfo:t,freeTeamUserPriceInfo:e.find(e=>1===e.quantity&&0===e.amount&&e.description.includes("Tier 2")),teamPriceInfo:n}})(e?.priceBreakdown);return t?(0,j.Y)("div",{className:"checkout-item membership-price-item loading-pricing-state"}):e?.priceBreakdown?.length?(0,j.FD)(ge,{planType:n,price:l?.amount,children:[d?.quantity&&(0,j.FD)(j.FK,{children:[(0,j.FD)("div",{className:"membership-price-label margin-top-1",children:[(0,j.Y)("b",{children:1===d.quantity?"First team member":`${d.quantity} team members`}),(0,j.Y)("b",{children:o(0,!1,!1,0)})]}),(0,j.FD)("div",{className:"membership-price-label font-sm",children:[(0,j.Y)("span",{className:"color-grey-dark",children:"Free with annual Pro access"}),(0,j.Y)("span",{children:"/year"})]})]}),u?.quantity?(0,j.FD)(j.FK,{children:[(0,j.FD)("div",{className:"membership-price-label margin-top-1",children:[(0,j.FD)("b",{children:["Additional members (",u.quantity,")"]}),(0,j.Y)("b",{children:o(u.amount,!1,!1,u.amount)})]}),(0,j.FD)("div",{className:"membership-price-label font-sm",children:[(0,j.FD)("span",{className:"color-grey-dark",children:[o((null!=(r=u.amount)?r:0)/(null!=(i=u.quantity)?i:1),!1,!1,(null!=(a=u.amount)?a:0)/(null!=(c=u.quantity)?c:1))," ","per member"]}),(0,j.FD)("span",{children:["/",s]})]})]}):null]}):null}function ve({loading:e,onPlanChange:t,planType:n,teamQty:r=1}){const i=r-1,{currency:a,products:c,rawPrices:o,regularPriceForPlanType:s}=(0,Y.useContext)(q.A),{group:l,interval:d,tier:u}=c[n],[,p]=(0,S.fp)(V._O),m=(0,L.Dk)(c,"year",u,l),h=(0,L.Dk)(c,"month",u,l),f="year"===d,g=f?h:m;if(!g)return null;const y=o[m]+W.i[m]*i,v=o[h]+W.i[h]*i,b="team"===l?Math.abs(y-12*v):s(m)-o[m],N=Math.round(o[m]/12);return(0,j.FD)("div",{className:"plan-checkout__interval-switch",children:[(0,j.Y)(Q.A,{"aria-label":"Use annual plan",checked:f,disabled:e||!b,onChange:()=>{t?.(g),p(f?"month":"year")}}),(0,j.FD)("span",{children:[!e&&b>0&&(0,j.FD)(j.FK,{children:[(0,j.FD)("b",{children:["Save ",(0,R.vv)(b,a)]})," ·"," "]}),"annual plan · ",(0,R.vv)(N,a),"/mo billed annually"]})]})}function be({isTeamDialog:e}){const[t,n]=(0,S.fp)(V.zq),[r]=(0,S.fp)(re.h1);return(0,Y.useEffect)(()=>()=>n(!1),[n]),e||r?null:(0,j.Y)("div",{className:"plan-checkout__add-users",children:(0,j.Y)(Q.A,{checked:t,onChange:()=>n(e=>!e),children:"Add team members (in the next step)"})})}function Ne({annualOnly:e=!1,children:t,consentInputs:r,couponForm:i,defaultButtonText:a,disabled:c=!1,formattedPrice:o,formattedTax:s,isTeamDialog:l,isUpdateBillingDialog:d,isUpgradeDialog:u,loading:p,mobileTitle:m,onBack:h,onPlanChange:f,onSubmit:g,planType:y,teamQty:v,title:b}){const[N,E]=(0,Y.useState)(null),{keys:{STRIPE_KEY:C}}=(0,Y.useContext)(U.A),[A]=(0,S.fp)(re.p9),{currency:D,discountRawPrices:_,isRecurringPlanType:T,isSubscriptionStateRetrieved:P,loadSubscriptionState:I,products:k,rawPrices:M,shouldShowIntroductoryPrice:K,shouldUpdateCard:W,subscriptionState:{isFree:J,paymentMethodType:Q,planType:ie,source:ce,team:de},trialPeriods:ue,trialPrices:pe,updateShouldUpdateCard:ge}=(0,Y.useContext)(q.A),[Ne]=(0,S.fp)(V.eF),Ee=(0,H.ju)(y),Ce=(0,Y.useRef)(null),Ae=(0,Y.useRef)(null),De=(0,Y.useRef)(null),[_e,Te]=(0,Y.useState)(()=>Boolean(Ne)||Boolean((0,x.vA)().coupon)),[Pe,Ie]=(0,Y.useState)(!1),ke=ue[y],[we]=(0,Y.useState)(()=>(0,x.vA)().method===F.uq.INVOICE),[Se,Ye]=(0,Y.useState)(!1),[Fe,Re]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{A&&!P&&I()},[P,I,A]),(0,Y.useEffect)(()=>{ge(!A||P&&!ce&&Q!==F.uq.INVOICE)},[P,Q,ce,ge,A]),(0,Y.useEffect)(()=>()=>ge(!1),[ge]),(0,Y.useLayoutEffect)(()=>{const e=()=>{const e=Ce.current?.getBoundingClientRect(),t=Ae.current?.getBoundingClientRect(),n=De.current?.scrollHeight;if(!e||!t||!n)return;const r=t.right<=e.left;Ie(r&&e.height-t.height>=n+16)};e();
2const t=[Ce.current,Ae.current,De.current].filter(Boolean);if(!window.ResizeObserver||0===t.length)return;const n=new ResizeObserver(e);for(const e of t)n.observe(e);return()=>n.disconnect()},[]),(0,Y.useEffect)(()=>{!Fe&&!Se&&C&&W&&async function(e){if(void 0===window.stripe___with_key){Ye(!0);const{error:t}=await(0,O.k0)("https://js.stripe.com/v3/");if(t)throw t;window.stripe___with_key=new window.Stripe(e),Ye(!1)}Re(window.stripe___with_key)}(C)},[Se,W,Fe,C]);const xe=K(y)?pe[y]:_[y];(0,Y.useEffect)(()=>{N&&function({amount:e,currency:t,stripeElements:n,user:r}){n.update({amount:e,currency:t});const i=n.getElement("payment");i?.update({defaultValues:{billingDetails:he(r)}}),i?.focus()}({amount:xe,currency:D,stripeElements:N,user:A})},[D,xe,N,A]),(0,Y.useEffect)(()=>{J&&(0,ne.s)("begin_checkout",{currency:D,items:[{item_id:y}],value:(0,R.b2)(M[y])})},[J,M,y,D]);const Oe=k[y],{incomingInvoice:Le,incomingInvoiceLoading:Me}=(({couponId:e,enabled:t=!0,planType:n,teamQty:r,trialPeriodDays:i=0,trialPrice:a})=>{const{products:c}=(0,Y.useContext)(q.A),[o,s]=(0,Y.useState)(null),[l,d]=(0,Y.useState)(!0),{group:u,plan:p}=c[n]||{};return(0,Y.useEffect)(()=>{t&&async function(){const t=await(0,B.i3)(p,{coupon:e||void 0,group:u,nextInvoice:!0,quantity:r,trialPeriodDays:i,trialPrice:a});t?.success&&s(t),d(!1)}()},[r,e,t,u,p,i,a]),{incomingInvoice:o,incomingInvoiceLoading:l}})({couponId:Ne?.id,enabled:v,planType:y,teamQty:v,trialPeriodDays:ke,trialPrice:K(y)&&pe[y]}),Ue=(0,Y.useCallback)(e=>{e.preventDefault(),g({createPaymentMethod:(e,t)=>async function({amount:e,currency:t,invoiceMethod:r,stripe:i,stripeElements:a,user:c}){if(r)return{confirmPayment:()=>{},failPayment:()=>{},id:null,type:F.uq.INVOICE};a.update({amount:e,currency:t});const{error:o}=await a.submit();if(o)throw o;const{error:s,paymentMethod:l}=await i.createPaymentMethod({elements:a,params:{billing_details:he(c)}});if(s)throw s;if("usd"!==t&&ae.has(l?.card?.brand))throw new Error("JCB, Discover, Diners Club, and UnionPay cards can only be charged in USD.");const d=l?.id;if($.A.FORCE_EMAIL_CONFIRMATION_BEFORE_PAYMENT.get()){const{default:e}=await n.e(8300).then(n.bind(n,5793));await e(c)}return{confirmPayment:async function(e){if(e){const t="payment_intent"===e.type?i.confirmPayment:i.confirmSetup,n=await t({clientSecret:e.clientSecret,confirmParams:{return_url:window.location.href},elements:a,redirect:"if_required"});if(n.error)throw n.error}},failPayment:()=>{},id:d,type:l.type}}({amount:null!=e?e:xe,currency:D,invoiceMethod:we,stripe:Fe,stripeElements:N,user:A||t})})},[D,g,we,Fe,N,A,xe]),He=ie===F.x1;let je=null;if(a){const e=He?"Contact Support to Update":a;je=(0,j.Y)(Z.A,{raised:!0,className:"pay-button btn-lg text-center full-width",disabled:p||c||He||!we&&W&&(!Fe||!N),onClick:Ue,children:p?(0,j.Y)(X.A,{}):(0,j.FD)(j.FK,{children:[e,Ee?.trialDays>0&&(0,j.Y)(H.Qt,{})]})})}const Ke=T(y),Be=K(y)&&Ke&&J;if(A&&!P)return(0,j.Y)(ee.A,{});const Ge="free"===y?(0,j.Y)(ee.A,{}):(0,j.Y)(me,{hideCouponForm:!0,invoiceMethod:we,paymentMethodType:Q,stripe:Fe,onStripeElementsReady:E});if(d)return(0,j.FD)(j.FK,{children:[(0,j.Y)("div",{className:"billing",children:(0,j.FD)("div",{className:"billing__inner",children:[t,Ge,(0,j.Y)("div",{className:"payment-info row-flex flex-between",children:(0,j.Y)(G.A,{})})]})}),je]});let qe=null;l||de?.isAdmin&&u?qe=(0,j.Y)(ye,{incomingInvoice:Le,incomingInvoiceLoading:Me,loading:p,planTypeToEstimate:y}):Be||(qe=(0,j.Y)(be,{isTeamDialog:l}));const We=Boolean(Ee.trialDays),Ve=`${We?`${Ee.trialPrice} today ⢠then ${Ee.price} per ${Ee.interval}`:`${Ee.price}/${Ee.intervalShort}`}${Ke?" ⢠cancel any time ⢠30-day money-back guarantee":""}.`,$e=J?We?"Not ready to start your trial?":"Not ready to upgrade?":"Back",ze=function(e){if("tier-4"===e.tier)return;const t=V.p_[e.tier];return{description:V.ie[e.tier],logo:"/images/common/legacy-logo.svg",logoAlt:`${t} logo`,mobileDescription:V.ie[e.tier],name:t,products:V.WK[e.tier].map(e=>({checked:!0,description:e,mobileDescription:e,name:e})),stripTitle:"Plan details"}}(Oe),Je=o?{...Ee,dueToday:o}:Ee,Qe=$.A.ENABLE_TAX.get()&&s&&s!==(0,R.vv)(0,D)?(0,j.Y)(fe,{content:`Includes tax amount of ${s}`}):null,Ze=(0,j.FD)(j.FK,{children:[qe,!e&&!(0,L.vF)(Oe)&&(0,j.Y)(ve,{loading:p,planType:y,teamQty:v,onPlanChange:f}),i&&Q!==F.uq.INVOICE&&(0,j.FD)("div",{className:"plan-checkout__coupon",children:[(0,j.FD)("button",{"aria-expanded":Boolean(_e||Ne),className:"plan-checkout__coupon-toggle",type:"button",onClick:()=>Te(e=>!e),children:["Add promo code",(0,j.Y)("span",{"aria-hidden":"true",children:"â¾"})]}),(_e||Ne)&&i]})]});return(0,j.FD)("div",{className:w()("plan-checkout",{"plan-checkout--has-back":h}),children:[b&&(0,j.FD)("header",{className:"plan-checkout__header",children:[(0,j.FD)("div",{children:[(0,j.FD)(te.A,{children:[(0,j.Y)("span",{className:"plan-checkout__desktop-title",children:b}),(0,j.Y)("span",{className:"plan-checkout__mobile-title",children:m})]}),(0,j.Y)("p",{children:Ve})]}),h&&(0,j.FD)(z.A,{className:"plan-checkout__back",onClick:h,children:[(0,j.Y)("span",{className:"hidden-xs",children:$e}),(0,j.Y)("span",{className:"visible-xs",children:"Back"})]})]}),(0,j.FD)("div",{className:"plan-checkout__payment-column",children:[(0,j.FD)("section",{ref:Ae,className:"plan-checkout__payment",children:[(0,j.FD)("div",{className:"plan-checkout__payment-header",children:[(0,j.Y)("span",{className:"plan-checkout__eyebrow",children:"Payment"}),(0,j.Y)("div",{className:"plan-checkout__account",children:t})]}),(0,j.Y)("div",{className:"plan-checkout__billing",children:Ge})]}),(0,j.Y)(se,{className:w()("plan-checkout__testimonial",{"plan-checkout__testimonial--hidden":!Pe}),testimonialRef:De})]}),(0,j.Y)("div",{ref:Ce,className:"plan-checkout__offer-column",children:(0,j.Y)(H.Ay,{checkout:!0,action:(0,j.Y)("span",{"aria-label":He?"Contact Support to Downgrade":null,className:"tooltip-top full-width",role:"tooltip",style:{lineHeight:"1.3"},children:je}),className:"plan-checkout__offer",consent:r,moneyBackGuarantee:Ke,offer:Je,options:Ze,plan:ze,priceAction:(0,j.Y)(G.A,{}),priceInfo:Qe,security:(0,j.Y)(oe,{})})}),(0,j.Y)(le,{})]})}},139(e,t,n){n.d(t,{A:()=>f});var r=n(6942),i=n.n(r),a=n(9869),c=n(4929),o=n(7563),s=n(8847),l=n(8028),d=n(3843),u=n(5391),p=n(6660),m=n(4681),h=n(9698);function f({className:e,initialPlanType:t,isLink:n,onClick:r,source:f=d.YH.UPGRADE_BUTTON,title:g,...y}){const{subscriptionState:v}=(0,a.useContext)(l.A),[b,N]=(0,a.useState)(!1),E=(0,a.useCallback)(async e=>{N(!0),(0,o.Dh)({action:d.Jw.UPGRADE,details:{initialPlanType:t},showView:!0,source:f,view:e})},[t,f]);return(0,a.useEffect)(()=>{const e=function(){const e=(0,m.wz)(),{checkoutDialog:t,coupon:n,teamData:r,upgrade:i}=(0,c.vA)();return n&&void 0===r&&void 0===t?e?d.al.SELECT_PLAN:d.al.SIGN_UP:void 0!==i?d.al.UPGRADE_PACKAGE:null}();e&&E(e)},[E]),(0,s.TK)(b,v),(0,h.Y)(u.A,{className:i()(e,{"btn-link":n}),"data-action":d.pM.RECLICK,onClick:(0,a.useCallback)(e=>{r(e,()=>{t&&(0,p.s)("dialog",{action:"submit",name:`get_started_${t}`}),(0,o.$7)("submit",d.Tt.PREMIUM.toLowerCase()),E(d.al.UPGRADE_PACKAGE)})},[t,r,E]),...y,children:g})}},4611(e,t,n){n.d(t,{createSubscription:()=>o,subscriptionStateToState:()=>s});var r=n(2109),i=n(8847),a=n(6151),c=n(4681);async function o(e,t,{confirmPayment:n,failPayment:a,id:o,type:s},l,d,u,p){if(!e)throw new Error("Missing plan while creating subscription.");
2if(!n&&!o)throw new Error("Unable to confirm payment intent.");const m=await fetch((0,i.Lp)("subscriptions",{group:p}),{body:JSON.stringify({coupon:t,experiment_ids:Object.entries(sessionStorage).filter(([e])=>e?.startsWith("varify-experiment-")).map(([e,t])=>{const n=Number.parseInt(e.split("-").pop(),10),{variationId:r}=JSON.parse(t);return`${n}:${r}`}),method:s,plan:e,token:o,trial_period:l>0?l:null,trial_price:d>0?d:null,...!1===u?{recurring:u}:{}}),credentials:"same-origin",method:"POST"});if(!m.ok){let e;a();try{({error:e}=await m.json())}catch{e="Failed to upgrade your account."}const t=new Error(e);throw t.alertParams=r.XG,t}const h=(0,i.CL)(await m.json());return await(n?.(h.subscription.paymentIntent)),h.subscription.paymentIntent=null,(0,c.TK)({plan:e,subscription:h.userSubscription}),h}function s(e,t){const{isFree:n,subscription:r}=e,i={subscriptionState:e};return n||r?.discount&&Object.assign(i,(0,a.XE)(i.rawPrices||t.rawPrices,r.discount,!0,t.products)),i}},6367(e,t,n){n.d(t,{i:()=>H,A:()=>z});var r=n(9170),i=n(6942),a=n.n(i),c=n(4843),o=n(9869),s=n(2109),l=n(4918),d=n(1818),u=n(7071),p=n(3544),m=n(7563),h=n(9698);function f({showLabel:e}
2){return(0,h.FD)("div",{className:a()("YlOXBdw8Lt","row-flex flex-align-center gap-10"),children:[e&&(0,h.FD)("div",{className:"FteTBlevME",children:[(0,h.Y)("span",{"aria-label":"SSL Encrypted Payments",className:"tooltip-bottom-left",role:"tooltip",children:(0,h.Y)("i",{className:a()("icon icon-lock-black","GGEk8JGBQp")})}),"Secure Payments"]}),(0,h.Y)("div",{className:"MbMv4aEbIF",children:["amex","visa","mastercard","discover","jcb","diners-club","union-pay"].map(e=>(0,h.Y)("img",{alt:e,height:18,loading:"lazy",src:`/images/payment/${e}.svg`,width:28},e))})]})}var g=n(2466),y=n(8028),v=n(139),b=n(7752);function N({className:e,currency:t,price:n,visible:r=!0}){return r&&(0,h.FD)("span",{className:a()("_BfrxT1CiH",e),children:["Save ",(0,l.vv)(n,t)," per user."]})}var E=n(6710),C="_Udp9FKjLB",A="qwpF5R_wZL",D="G5jYvLithJ",_=n(3843),T=n(1539),P=n(5391),I=n(4681);function k({children:e,price:t}){return(0,h.FD)(h.FK,{children:[e&&(0,h.Y)("div",{className:"title-sm",children:e}),(0,h.Y)("div",{className:"margin-b-1 price-wrapper",children:(0,h.Y)("div",{className:"format-amount",children:t})})]})}function w({bottomSection:e,button:t,description:n,isEnterprisePlan:r,isPremiumPlan:i,isProPlan:o,isSelectPlanDialog:l,planType:d,price:u,tier:f,title:g,topLabel:y}){const[v]=(0,c.fp)(I.N6),[N]=(0,c.fp)(I.p9),[w]=(0,c.fp)(I.zq),S=v&&!("team"===N?.subscription?.group)&&!w,Y=!r&&S&&!l&&"tier-4"===f,F=Y?(0,h.Y)(P.A,{raised:!0,className:"margin-top-1 btn-lg",onClick:()=>{i&&(window.location.href=s.A.CHAT),o&&(0,m.Dh)({action:_.Jw.TRY_SUBSCRIPTION,details:{initialPlanType:d},showView:!0,source:_.YH.AUTH,view:_.al.UPGRADE_PACKAGE})},children:(0,h.Y)("b",{children:"Try for Free"})}):t,R=Y?(0,h.Y)(b.A,{className:"sKQW2mY3Tf",source:"pricing-plan",url:(0,p.zf)(s.A.CALENDLY_LAWINSIDER_SIMPLEAI_DEMO_LINK,{utm_content:"pricing-plan"}),children:"Book a Demo"}):null,x=Boolean(R)||r||!S,O="tier-4"===f?"/images/common/simple-ai-logo.svg":null;return(0,h.FD)("div",{className:"plan-column plan-column-v2",children:[(0,h.FD)("div",{className:"plan-info",children:[(0,h.Y)("b",{className:"plan-title-experimental",children:O?(0,h.Y)("img",{alt:g,className:a()("YEIUCQAc_o",{[C]:"tier-0"===f}),src:O}):g}),(0,h.Y)("p",{className:"plan-description",children:n}),y]}),(0,h.Y)(k,{price:u}),(0,h.Y)("div",{className:a()("full-width",r&&"margin-b-3"),children:F}),x&&(0,h.Y)("div",{className:a()("kX16dDsg_0",{[D]:r||!S,[A]:!S&&!r}),children:R}),(0,h.Y)(E.A,{caption:r?(0,h.Y)("b",{children:"Everything in SimpleAI, plus:"}):null,columns:1,featuresToOverwrite:T.WK[f],isEnterprisePlan:r,isProPlan:!i,showTryPremiumLabel:!1}),e]})}function S({button:e,description:t,isSelectPlanDialog:n,planType:r,price:i,title:a,topLabel:c}){const{products:s}=(0,o.useContext)(y.A),{tier:l}=s[r],d="tier-0"===l,u="tier-4"===l;return(0,h.Y)(w,{button:e,description:t,isPremiumPlan:d,isProPlan:u,isSelectPlanDialog:n,planType:r,price:i,tier:l,title:a,topLabel:c})}var Y="BSfZlU9g1k",F=n(6660);const R={month:"MONTHLY",year:"ANNUAL"};function x({annualSavings:e,className:t}){const[n,r]=(0,c.fp)(T._O);return(0,o.useEffect)(()=>{r("month")},[r]),(0,h.Y)("div",{className:a()("P6CKjhiR1F",t),children:["year","month"].map(t=>(0,h.FD)(P.A,{className:a()("Vyqgh7FPY0",{[Y]:t===n}),onClick:()=>{(0,F.s)("switch_plan_period",{value:R[t]}),r(t)},children:[R[t],"year"===t&&e>0&&(0,h.FD)("span",{className:"regular-text",children:["(SAVE UP TO ",e,"%)"]})]},t))})}var O=n(7399),L=n(2199),M=n(7065),U=n(9028);const H={[s.xT]:Number.parseInt(4900,10),[s.HL]:Number.parseInt(5900,10),[s.uP]:Number.parseInt(29900,10),[s.cz]:Number.parseInt(49900,10)},j="WELCOME10",K={applicable_plans:[],duration_in_months:12,percent:10};function B({className:e,isLink:t,isRecurring:n,isSelectPlanDialog:r,planType:i,raised:a,size:s="lg",source:l,titleProp:d}){const[u]=(0,c.fp)(I.el),[p]=(0,c.fp)(I.aQ),{products:m,shouldShowIntroductoryPrice:f}=(0,o.useContext)(y.A),{tier:g}=m[i]||{},b="tier-0"===g&&p,N="tier-4"===g&&u;let E;return E=n?f(i)&&!b?"Start Trial":b?"Switch to Premium":N?"Upgrade to Pro":"Buy Now":"Buy Now",(0,h.Y)(G,{Component:v.A,action:_.Jw.TRY_SUBSCRIPTION,className:e,initialPlanType:i,isLink:t,isSelectPlanDialog:r,outlined:!a&&!t,raised:a,size:t?void 0:s,source:l,title:d||E})}function G({Component:e,action:t,disabled:n,isSelectPlanDialog:r,...i}){const{initialPlanType:a}=i,{currency:d,rawPrices:u}=(0,o.useContext)(y.A),[,p]=(0,c.fp)(m.vT);return(0,h.Y)(e,{"data-action":_.pM.RECLICK,onClick:(0,o.useCallback)((e,n)=>{(0,F.s)("add_to_cart",{currency:d,items:[{item_id:a}],value:(0,l.b2)(u[a])}),(0,I.h2)()!==s.rZ.NON_REGISTERED||r?(p(_.Tt.PREMIUM),n()):(0,m.Dh)({action:t,details:{initialPlanType:a},e,showView:!0,source:_.YH.PRICING_PAGE,view:_.al.CONTINUE_WITH_EMAIL})},[t,a,r,p,d,u]),...i})}function q({planType:e,subtitle:t}){const{currency:n,discountRawPrices:r,products:i,regularPriceForPlanType:a,renderedPrices:c,shouldShowIntroductoryPrice:u,trialPeriods:p,trialPrices:m}=(0,o.useContext)(y.A),{interval:f}=i[e];if(u(e)){const t=0===m[e]?(0,h.Y)("span",{className:"price-container highlight-price",children:"FREE"}):(0,l.vv)(m[e],n,!0),r="month"===f?T.Nt:T.sg;return(0,h.FD)(h.FK,{children:[t," ",(0,h.FD)("div",{className:"row-price",children:[(0,h.FD)("div",{className:"row-price__trial",children:[p[e]," Day Trial"]}
2),(0,h.FD)("div",{className:"row-price__discount",children:["Then ",c[e]," ",r]})]})]})}return(0,h.FD)(h.FK,{children:[(0,l.vv)((0,d.ZC)(r[e],f,!0),n,!0,2),(0,h.FD)("div",{className:"row-price",children:[(0,h.FD)("div",{className:"row-price__trial",children:[T.E4[e]?.planHeading," ",(0,h.Y)(N,{className:"discount-badge-sm",currency:n,price:a(e)-r[e],visible:[s.Ih,s.C7].includes(e)})]}),(0,h.Y)("div",{className:"row-price__discount",children:u(e)?t:T.E4[e]?.planSubHeading})]})]})}function W({description:e,descriptivePeriodSubtitle:t,isSelectPlanDialog:n,perPeriodSubtitle:r,planType:i,raised:a,source:u,tierLimits:p,topLabel:m}){const[f]=(0,c.fp)(I.N6),{currency:g,products:v,rawPrices:b,recurringPlans:N,shouldShowIntroductoryPrice:E}=(0,o.useContext)(y.A),[C]=(0,c.fp)(I.p9),[A]=(0,c.fp)(I.zq),D="team"===C?.subscription?.group;(0,o.useEffect)(()=>{f&&(0,F.s)("view_item",{currency:g,items:[{item_id:i}],value:(0,l.b2)(b[i])})},[g,i,f,b]);const _=!1!==N[i],{tier:P}=v[i]||{},k=C?.subscription?.tier,w=C?.subscription?.group?(0,d.wZ)(C.subscription):void 0,Y=!n&&!f&&!D&&"tier-0"===k&&"tier-4"===P;return(0,h.Y)(S,{button:(0,h.FD)(h.FK,{children:[f&&!D&&!A&&(0,h.Y)(B,{className:"margin-top-1",isRecurring:_,isSelectPlanDialog:n,planType:i,raised:a,source:u}),Y&&(0,h.Y)(L.A,{raised:!0,className:"margin-top-1",href:`${s.A.ACCOUNT}?${s.uB.upgradeToPro}=1`,size:"lg",children:"Upgrade"}),!f&&n&&(0,h.Y)("div",{className:"margin-top-1",children:w===i?(0,h.Y)("b",{className:"margin-top-1 selected-plan-label",children:"This is your plan"}):(0,h.Y)(B,{raised:!0,className:"margin-top-1",isRecurring:_,isSelectPlanDialog:n,planType:i,source:u})})]}),description:e,hasTeam:D,isFree:f,isRecurring:_,isSelectPlanDialog:n,planType:i,price:(0,h.Y)(q,{showSaving:!0,planType:i,subtitle:E(i)?r:t}),tierLimits:p,title:T.UD[P],topLabel:m})}function V(){const{applyDiscount:e,currency:t,discount:{id:n},shouldShowIntroductoryPrice:i}=(0,o.useContext)(y.A),[a,p]=(0,o.useState)(!1),[m]=(0,c.fp)(I.p9),f=Boolean(n),[g,v]=(0,c.fp)(T.eF),[b]=(0,c.fp)(I.N6),N=b&&(0,d.uZ)(m?.trialUsed)&&!i(s.xw),E=(0,o.useCallback)(async t=>{const{target:n}=t,{checked:r}=n;if(p(!0),r){const t=await fetch(`/api/payments/coupon/${j}`,{credentials:"same-origin",method:"GET"});if(t.ok){const n=await t.json();e(n),v(n),(0,u.xE)("Your promo code has been applied!")}else e({amount:null,id:null,percent:null}),(0,u.xE)(`No such promo code: ${j}`)}else e({amount:null,id:null,percent:null}),v(null);p(!1)},[e,v]);return N||n?(0,h.Y)("div",{className:"coupon-checkbox-container",style:a?{color:r.LW}:null,children:(0,h.FD)(M.A,{checked:f,disabled:a,onChange:E,children:[(0,h.FD)("b",{children:["Use promo code: ",null!=n?n:j]})," ",(0,h.Y)("span",{children:`(Apply this promo code and ${(0,l.id)(null!=g?g:K,t)})`})]})}):null}function $(){return(0,h.Y)("div",{style:{fontSize:14,fontWeight:"bold",minHeight:"42px"},children:"Contact sales for pricing"})}function z({group:e="individual",isSelectPlanDialog:t,isSignUpFlow:n,showBg:r=!1,showTitle:i=!1}){const[l,v]=(0,o.useState)(!0),{discountRawPrices:N,products:E}=(0,o.useContext)(y.A),[C]=(0,c.fp)(T._O),[A]=(0,c.fp)(I.N6),D=(0,O._)(O.A.PRICING_PRODUCTS_SHOW_PREMIUM_PRODUCT),k=Object.keys(T.E4).filter(t=>{const n=E[t];if(!n)return!1;const{group:r,interval:i,tier:a}=n;return!(!(0,d.a4)()&&"tier-4"===a||!D&&"tier-0"===a||r!==e||"month"!==i&&"year"!==i)}),S=k.filter(e=>E[e].interval===C).map(e=>T.E4[e]),Y=function(e,t,n){const r={};for(const i of e){const{interval:e,tier:a}=n[i],c=t[i];r[a]||(r[a]={annualCost:0,monthlyCost:0}),"month"===e?r[a].monthlyCost=12*c:"year"===e&&(r[a].annualCost=c)}let i=0;for(const{annualCost:e,monthlyCost:t}of Object.values(r))if(t>0){const n=(t-e)/t*100;n>i&&(i=n)}return Math.floor(i)}(k,N,E);(0,o.useEffect)(()=>(0,u.DS)(()=>{v(!1)}),[]);const F=t&&!A;return S[0]?(0,h.Y)("div",{className:a()({"pricing text-center":!t,"top-header-bg":r,"top-header-bg--padding":i}),children:(0,h.FD)("div",{className:"container-fluid",children:[i&&(0,h.FD)(h.FK,{children:[(0,h.Y)("h1",{className:"section-title",children:(0,h.Y)(U.A,{children:"AI-Powered Contracts"})}),(0,h.Y)("img",{alt:"Powered by simple docs",className:"powered-by-logo",src:"/images/common/powered-by-simple-docs-grey.svg"})]}),(0,h.FD)("div",{className:a()({"loading-pricing-state":l}),children:[(0,h.FD)("section",{className:"dark-blue-gradient-card margin-b-1",children:[!F&&(0,h.Y)("h2",{className:"title-vertical-line light-title grey-bordered-card__title color-white",children:(0,h.Y)("span",{className:"title-vertical-line__inner",children:"Trusted by 10,000+ Customers Worldwide"})}),(0,h.Y)(x,{annualSavings:Y}),(0,h.Y)(V,{}),(0,h.FD)("div",{className:a()("pricing-plan pricing-plan-v2",{"pricing-plan-v2--select-plan":t}),children:[S.map(e=>(0,h.Y)(W,{raised:!0,description:e.planDescription,isSelectPlanDialog:t,...e},e.planType)),!t&&(0,h.Y)(w,{isEnterprisePlan:!0,button:(0,h.Y)(b.A,{raised:!0,className:"margin-top-1 btn-lg",dialogTitle:"Schedule Your Enterprise Demo",url:(0,p.zf)(s.A.CALENDLY_LAWINSI
2DER_SIMPLEAI_DEMO_LINK,{utm_content:"enterprise"}),children:"Contact Sales"}),description:T.ie["tier-5"],price:(0,h.Y)($,{}),tier:"tier-5",title:"Enterprise"})]})]}),!t&&(0,h.FD)("div",{className:"row-flex flex-align-center flex-justify-center gap-10",children:[(0,h.Y)(f,{})," ",(0,h.Y)(g.A,{showLabel:!0})]}),n&&(0,h.FD)("b",{className:"select-plan__free-account",children:["Not ready to start a trial?"," ",(0,h.Y)(P.A,{outlined:!0,onClick:()=>{(0,m.$7)("submit",_.Tt.FREE.toLowerCase()),(0,m.Dh)({forced:!0,view:_.al.PROFILE_INFO_DIALOG})},children:"Continue with free account"})]})]})]})}):null}z.selector="plans-table"},7065(e,t,n){n.d(t,{A:()=>b});var r=n(9698),i=n(9869),a=n(6540),c=n(1635),o=n(1468),s={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},l={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},d={ANIM_END_LATCH_MS:250},u=function(e){function t(n){var r=e.call(this,(0,c.Cl)((0,c.Cl)({},t.defaultAdapter),n))||this;return r.currentCheckState=l.TRANSITION_STATE_INIT,r.currentAnimationClass="",r.animEndLatchTimer=0,r.enableAnimationEndHandler=!1,r}return(0,c.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.currentCheckState=this.determineCheckState(),this.updateAriaChecked(),this.adapter.addClass(s.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(s.DISABLED):this.adapter.removeClass(s.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass),e.enableAnimationEndHandler=!1},d.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState()},t.prototype.transitionCheckState=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState,t=this.determineCheckState();if(e!==t){this.updateAriaChecked();var n=s.SELECTED;t===l.TRANSITION_STATE_UNCHECKED?this.adapter.removeClass(n):this.adapter.addClass(n),this.currentAnimationClass.length>0&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(e,t),this.currentCheckState=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass.length>0&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},t.prototype.determineCheckState=function(){var e=l.TRANSITION_STATE_INDETERMINATE,t=l.TRANSITION_STATE_CHECKED,n=l.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass=function(e,n){var r=l.TRANSITION_STATE_INIT,i=l.TRANSITION_STATE_CHECKED,a=l.TRANSITION_STATE_UNCHECKED,c=t.cssClasse
2s,o=c.ANIM_UNCHECKED_CHECKED,s=c.ANIM_UNCHECKED_INDETERMINATE,d=c.ANIM_CHECKED_UNCHECKED,u=c.ANIM_CHECKED_INDETERMINATE,p=c.ANIM_INDETERMINATE_CHECKED,m=c.ANIM_INDETERMINATE_UNCHECKED;switch(e){case r:return n===a?"":n===i?p:m;case a:return n===i?o:s;case i:return n===a?d:u;default:return n===i?p:m}},t.prototype.updateAriaChecked=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(l.ARIA_CHECKED_ATTR,l.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(l.ARIA_CHECKED_ATTR)},t}(o.I),p=n(9376),m=n(3189),h=n(3725);u.prototype.installPropertyChangeHooks_=()=>{};const f=(0,p.a0)(function(e,t){const{renderToggle:n,id:a,toggleRootProps:c,rootEl:o,checkboxEl:s}=(e=>{const t=(0,p.Bi)("checkbox",e),{renderToggle:n,toggleRootProps:r,id:a}=(0,h.T)({...e,id:t}),{foundation:c,...o}=(0,p.P5)({props:e,elements:{rootEl:!0,checkboxEl:!0},foundation:({rootEl:e,checkboxEl:t,getProps:n})=>new u({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),setNativeControlAttr:(e,n)=>t.setProp(e,n),removeNativeControlAttr:e=>t.removeProp(e),isIndeterminate:()=>!!n().indeterminate,isChecked:()=>{var e;return void 0!==n().checked?!!n().checked:!(null==(e=t.ref)||!e.checked)},hasNativeControl:()=>!!t.ref,setNativeControlDisabled:e=>t.setProp("disabled",e),forceLayout:()=>{var t;return null==(t=e.ref)?void 0:t.offsetWidth},isAttachedToDOM:()=>!0})}),{rootEl:s,checkboxEl:l}=o,d=(0,i.useCallback)(()=>{l.ref&&(l.ref.indeterminate=!!e.indeterminate),window.requestAnimationFrame(()=>{c.handleChange()})},[e.indeterminate,c,l.ref]);return(0,i.useEffect)(()=>{d()},[d]),s.setProp("onAnimationEnd",t=>{var n;null==(n=e.onAnimationEnd)||n.call(e,t),c.handleAnimationEnd()},!0),l.setProp("onChange",t=>{var n;null==(n=e.onChange)||n.call(e,t),d()},!0),{foundation:c,renderToggle:n,toggleRootProps:r,id:a,...o}})(e),{children:l,className:d,label:m,style:f,indeterminate:b,inputRef:N,foundationRef:E,...C}=e;return n((0,r.FD)(g,{...o.props({checked:C.checked,indeterminate:b,...c}),ref:(0,p.Px)(o.reactRef,t),children:[(0,r.Y)("input",{...s.props({...C,className:"mdc-checkbox__native-control"}),type:"checkbox",ref:(0,p.Px)(s.reactRef,N,t),id:a}),(0,r.Y)(v,{}),(0,r.Y)(y,{})]}))}),g=(0,m.zu)({surface:!1,unbounded:!0})(a.forwardRef(function(e,t){const n=(0,i.useContext)(p.YO),a=(0,i.useContext)(p.ag),{disabled:c,checked:o,indeterminate:s,...l}=e,d=(0,p.UP)(e,["mdc-checkbox",{"mdc-data-table__row-checkbox":n&&!a,"mdc-data-table__header-row-checkbox":a,"mdc-checkbox--disabled":c,"mdc-checkbox--selected":o||s}]);return(0,r.Y)(p.vw,{...l,className:d,ref:t})})),y=a.memo(function(){return(0,r.Y)("div",{className:"mdc-checkbox__ripple"})}),v=a.memo(()=>(0,r.FD)("div",{className:"mdc-checkbox__background",children:[(0,r.Y)("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24",children:(0,r.Y)("path",{className:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})}),(0,r.Y)("div",{className:"mdc-checkbox__mixedmark"})]})),b=f},4699(e,t,n){n.d(t,{A:()=>a});var r=n(9698),i=n(9376);const a=(0,i.a0)(function(e,t){const{z:n=0,transition:a=!1,wrap:c,...o}=e,s=(0,i.UP)(e,[`mdc-elevation--z${n}`,{"mdc-elevation-transition":a}]);return c?(0,i.Tp)({...o,className:s,ref:t}):(0,r.Y)(i.vw,{...o,ref:t,className:s})})},2970(e,t,n){n.d(t,{A:()=>E});var r,i,a=n(9698),c=n(6540),o=n(9869),s=n(9376),l=n(3725),d=n(1635),u=n(1468),p=new WeakMap,m=function(e){function t(t){var n=e.call(this,t)||this;return n.unobserves=new Set,n}return(0,d.C6)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unobserve()},t.prototype.observe=function(e,t){var n,r,i=this,a=[];try{for(var c=(0,d.Ju)(Object.keys(t)),o=c.next();!o.done;o=c.next()){var s=o.value,l=t[s].bind(this);a.push(this.observeProperty(e,s,l))}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}var u=function(){var e,t;try{for(var n=(0,d.Ju)(a),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}i.unobserves.delete(u)};return this.unobserves.add(u),u},t.prototype.observeProperty=function(e,t,n){return function(e,t,n){var r=function(e,t){var n=new Map;p.has(e)||p.set(e,{isEnabled:!0,getObservers:function(e){var t=n.get(e)||[];return n.has(e)||n.set(e,t),t},installedProperties:new Set});var r=p.get(e);if(r.installedProperties.has(t))return r;var i=function(e,t){for(var n,r=e;r&&!(n=Object.getOwnPropertyDescriptor(r,t));)r=Object.getPrototypeOf(r);return n}(e,t)||{configurable:!0,enumerable:!0,value:e[t],writable:!0},a=(0,d.Cl)({},i),c=i.get,o=i.set;if("value"in i){delete a.value,delete a.writable;var s=i.value;c=function(){return s},i.writable&&(o=function(e){s=e})}return c&&(a.get=function(){return c.call(this)}),o&&(a.set=function(e){var n,i,a=c?c.call(this):e;if(o.call(this,e),r.isEnabled&&(!c||e!==a))try{for(var s=(0,d.Ju)(r.getObservers(t)),l=s.next();!l.done;l=s.next())(0,l.value)(e,a)}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}),r.installedProperties.add(t),Object.defineProperty(e,t,a),r}(e,t),i=r.getObservers(t);return i.push(n),function(){i.splice(i.indexOf(n),1)}}
2(e,t,n)},t.prototype.setObserversEnabled=function(e,t){!function(e,t){var n=p.get(e);n&&(n.isEnabled=t)}(e,t)},t.prototype.unobserve=function(){var e,t;try{for(var n=(0,d.Ju)((0,d.fX)([],(0,d.zs)(this.unobserves))),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(u.I);!function(e){e.PROCESSING="mdc-switch--processing",e.SELECTED="mdc-switch--selected",e.UNSELECTED="mdc-switch--unselected"}(r||(r={})),function(e){e.RIPPLE=".mdc-switch__ripple"}(i||(i={}));var h=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=n.handleClick.bind(n),n}return(0,d.C6)(t,e),t.prototype.init=function(){this.observe(this.adapter.state,{disabled:this.stopProcessingIfDisabled,processing:this.stopProcessingIfDisabled})},t.prototype.handleClick=function(){this.adapter.state.disabled||(this.adapter.state.selected=!this.adapter.state.selected)},t.prototype.stopProcessingIfDisabled=function(){this.adapter.state.disabled&&(this.adapter.state.processing=!1)},t}(m);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,d.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.observe(this.adapter.state,{disabled:this.onDisabledChange,processing:this.onProcessingChange,selected:this.onSelectedChange})},t.prototype.initFromDOM=function(){this.setObserversEnabled(this.adapter.state,!1),this.adapter.state.selected=this.adapter.hasClass(r.SELECTED),this.onSelectedChange(),this.adapter.state.disabled=this.adapter.isDisabled(),this.adapter.state.processing=this.adapter.hasClass(r.PROCESSING),this.setObserversEnabled(this.adapter.state,!0),this.stopProcessingIfDisabled()},t.prototype.onDisabledChange=function(){this.adapter.setDisabled(this.adapter.state.disabled)},t.prototype.onProcessingChange=function(){this.toggleClass(this.adapter.state.processing,r.PROCESSING)},t.prototype.onSelectedChange=function(){this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,r.SELECTED),this.toggleClass(!this.adapter.state.selected,r.UNSELECTED)},t.prototype.toggleClass=function(e,t){e?this.adapter.addClass(t):this.adapter.removeClass(t)}}(h);const f=(0,s.a0)(function(e,t){const{renderToggle:n,id:r,toggleRootProps:i,rootEl:d,selected:u}=(e=>{const{renderToggle:t,toggleRootProps:n,id:r}=(0,l.T)(e),[i,a]=c.useState(!1),[d,u]=c.useState(!1),[p,m]=c.useState(!1),{foundation:f,...g}=(0,s.P5)({props:e,elements:{rootEl:!0},foundation:({rootEl:t})=>new h({addClass:e=>t.addClass(e),hasClass:e=>t.hasClass(e),isDisabled:()=>e.disabled,removeClass:e=>t.removeClass(e),setAriaChecked:e=>{var n;return null==(n=t.ref)?void 0:n.setAttribute("aria-checked",e)},setDisabled:e=>{t.setProp("disabled",e)},state:{disabled:i,processing:d,selected:p}})}),{rootEl:y}=g;return(0,o.useEffect)(()=>{void 0!==e.checked&&m(e.checked)},[e.checked]),(0,o.useEffect)(()=>{void 0!==e.defaultChecked&&m(e.defaultChecked)},[e.defaultChecked]),(0,o.useEffect)(()=>{void 0!==e.disabled&&a(e.disabled)},[e.disabled]),(0,o.useEffect)(()=>{void 0!==e.processing&&u(e.processing)},[e.processing]),y.setProp("onClick",t=>{var n;m(e=>!e),null==(n=e.onClick)||n.call(e,t),y.setProp("checked",p),f.handleClick()},!0),{foundation:f,renderToggle:t,toggleRootProps:n,id:r,disabled:i,selected:p,processing:d,...g}})(e),{children:p,className:m,disabled:f,label:N,...E}=e,C=(0,s.UP)(i,["mdc-switch",{"mdc-switch--unselected":!u,"mdc-switch--selected":u}]);return n((0,a.FD)(s.vw,{...d.props({...i,className:C}),ref:(0,s.Px)(d.reactRef,t),disabled:f,tag:"button",type:"button",role:"switch","aria-checked":u??E["aria-checked"],"aria-label":N,id:r,element:d,...E,children:[(0,a.Y)(g,{}),(0,a.FD)(y,{children:[(0,a.Y)("div",{className:"mdc-switch__shadow",children:(0,a.Y)("div",{className:"mdc-elevation-overlay"})}),(0,a.Y)(b,{}),(0,a.Y)(v,{})]}),(0,a.Y)("span",{className:"mdc-switch__focus-ring-wrapper",children:(0,a.Y)("div",{className:"mdc-switch__focus-ring"})})]}))}),g=c.memo(function(){return(0,a.Y)("div",{className:"mdc-switch__track"})}),y=c.memo(function({children:e}){return(0,a.Y)("div",{className:"mdc-switch__handle-track",children:(0,a.Y)("div",{className:"mdc-switch__handle",children:e})})}),v=c.memo(function(){return(0,a.FD)("div",{className:"mdc-switch__icons",children:[(0,a.Y)("svg",{className:"mdc-switch__icon mdc-switch__icon--on",viewBox:"0 0 24 24",children:(0,a.Y)("path",{d:"M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"})}),(0,a.Y)("svg",{className:"mdc-switch__icon mdc-switch__icon--off",viewBox:"0 0 24 24",children:(0,a.Y)("path",{d:"M20 13H4v-2h16v2z"})})]})}),b=c.memo(function(){return(0,a.Y)("div",{className:"mdc-switch__ripple"})});function N({onChange:e,onClick:t,...n},r){return(0,a.Y)(f,{...n,ref:r,onClick:n=>{if(t?.(n),e){const{target:t}=n;t.checked="true"!==n.currentTarget.getAttribute("aria-checked"),e(n)}}})}const E=(0,o.forwardRef)(N)},3725(e,t,n){n.d(t,{T:()=>u});var r=n(9698),i=n(9376),a=n(1635),c=n(1468),o={ROOT:"mdc-form-field"},s={LABEL_SELECTOR:".mdc-form-field > label"},l=function(e){function t(n){var r=e.call(this,(0,a.Cl)((0,a.Cl)({},t.defaultAdapter),n))||this;return r.click=function(){r.handleClick()},r}
2return(0,a.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(c.I);const d=(0,i.a0)(function(e,t){var n;n=e,(0,i.P5)({props:n,elements:{},foundation:()=>new l({registerInteractionHandler:(e,t)=>{},deregisterInteractionHandler:(e,t)=>{},activateInputRipple:()=>{},deactivateInputRipple:()=>{}})});const{alignEnd:a,foundationRef:c,noWrap:o,spaceBetween:s,...d}=e,u=(0,i.UP)(e,["mdc-form-field",{"mdc-form-field--align-end":a,"mdc-form-field--nowrap":o,"mdc-form-field--space-between":s}]);return(0,r.Y)(i.vw,{...d,ref:t,className:u})});function u(e){const{className:t,style:n,rootProps:a,label:c,children:o,disabled:s}=e,l=e.label||e.children,u=(0,i.Bi)("toggle-",e),p=l?{disabled:s}:{className:t,style:n,disabled:s,...a};return{id:u,renderToggle:e=>l?(0,r.FD)(d,{...a,className:t,style:n,children:[e,(0,r.FD)("label",{id:u+"label",htmlFor:u,children:[c,o]})]}):e,toggleRootProps:p}}}}]); 3//# sourceMappingURL=payments.e645f8e982.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.