XML 22 R6.htm IDEA: XBRL DOCUMENT v3.22.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities    
Net loss $ (310,487) $ (111,142)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 122,201 50,724
Share-based compensation 198,119 150,323
Amortization of deferred and prepaid sales commission costs 50,068 33,398
Amortization of debt discount and issuance costs 2,232 32,082
Loss on early extinguishment of debt 0 1,736
Repayment of convertible senior notes attributable to debt discount 0 (10,131)
Reduction of operating lease right-of-use assets 9,857 8,778
Unrealized loss (gain) on investments 98,045 (34,361)
Provision for bad debt 7,103 3,743
Other 1,736 70
Changes in assets and liabilities:    
Accounts receivable (27,832) (26,589)
Deferred and prepaid sales commission costs (108,349) (86,378)
Prepaid expenses and other assets (1,984) 6,562
Accounts payable 28,494 3,490
Accrued and other liabilities 20,147 24,912
Deferred revenue 30,594 23,359
Operating lease liabilities (10,271) (9,105)
Net cash provided by operating activities 109,673 61,471
Cash flows from investing activities    
Purchases of property and equipment (15,489) (14,385)
Capitalized internal-use software (26,232) (19,600)
Purchases of intangible assets and long-term investments (3,990) (9,623)
Net cash used in investing activities (45,711) (43,608)
Cash flows from financing activities    
Payments for repurchase or redemption of convertible senior notes 0 (333,632)
Payments for repurchase of common stock (25,004) 0
Proceeds from issuance of stock in connection with stock plans 10,889 18,857
Payments for taxes related to net share settlement of equity awards (3,182) (11,566)
Payment for contingent consideration for business acquisition (1,538) (3,600)
Repayment of financing obligations (3,092) (2,295)
Net cash used in financing activities (21,927) (332,236)
Effect of exchange rate changes (2,700) (183)
Net increase (decrease) in cash, cash equivalents, and restricted cash 39,335 (314,556)
Cash, cash equivalents, and restricted cash    
Beginning of period 267,162 639,853
End of period 306,497 325,297
Supplemental disclosure of cash flow data:    
Cash paid for interest 220 203
Cash paid for income taxes, net of refunds 1,717 369
Non-cash investing and financing activities    
Equipment and capitalized internal-use software purchased and unpaid at period end $ 9,599 $ 7,333