forked from bombastictranz/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path407-f86c306e06b34776.js.download
629 lines (607 loc) · 213 KB
/
407-f86c306e06b34776.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[407],{22193:function(e,t,n){"use strict";n(32456),n(21910);var i=n(32559);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i.useLocalStorage}}),n(99375),n(10841);var a=n(76209);Object.defineProperty(t,"nB",{enumerable:!0,get:function(){return a.useLink}}),n(55453)},32456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(98671);Object.defineProperty(t,"useCurrentAccountId",{enumerable:!0,get:function(){return i.useCurrentAccountId}}),Object.defineProperty(t,"CurrentAccountIdProvider",{enumerable:!0,get:function(){return i.CurrentAccountIdProvider}})},98671:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentAccountIdProvider=t.useCurrentAccountId=void 0;let s=o(n(2784)),l=n(32559),u=s.createContext(void 0);t.useCurrentAccountId=()=>s.useContext(u),t.CurrentAccountIdProvider=e=>{let[t,n]=l.useLocalStorage("currentAccountId");return s.useEffect(()=>{e.currentAccountId&&t!==e.currentAccountId&&n(e.currentAccountId)},[e.currentAccountId,t,n]),s.default.createElement(u.Provider,{value:t},e.children)}},10841:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21865);Object.defineProperty(t,"useFirstEvent",{enumerable:!0,get:function(){return i.default}})},21865:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(2784);t.default=(e,t)=>{let[n,a]=i.useState(!1),[o,s]=i.useState(null),l=i.useCallback(e=>s(e),[]);return i.useEffect(()=>{if(o&&!n){let onEvent=()=>{},removeListeners=()=>e.forEach(e=>o.removeEventListener(e,onEvent));return onEvent=()=>{n||(a(!0),t(),removeListeners())},e.forEach(e=>o.addEventListener(e,onEvent)),removeListeners}return()=>{}},[o,e,t,n]),l}},76209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28649);Object.defineProperty(t,"LinkProvider",{enumerable:!0,get:function(){return i.LinkProvider}}),Object.defineProperty(t,"useLink",{enumerable:!0,get:function(){return i.useLink}})},28649:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkProvider=t.useLink=void 0;let a=i(n(2784)),o=a.default.createContext({routeTo:null});t.useLink=()=>a.default.useContext(o),t.LinkProvider=({children:e,routeTo:t})=>e?a.default.createElement(o.Provider,{value:{routeTo:t}},a.default.Children.only(e)):null},32559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(48984);Object.defineProperty(t,"useLocalStorage",{enumerable:!0,get:function(){return i.default}})},48984:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(76635),a=n(2784),o=n(96570),parseReadValue=e=>{try{return JSON.parse(e)}catch(e){console.warn("Could not parse value read from localStorage.")}return e},readValue=e=>{if(o.isBrowser())try{return window.localStorage.getItem(e)}catch(t){console.warn(`Could not read "${e}" from localStorage.`)}},stringifyWriteValue=e=>{try{return e&&i.isObject(e)?JSON.stringify(e):e}catch(e){console.warn("Could not stringify value before writing it to localStorage.")}return e},writeValue=(e,t)=>{if(o.isBrowser())try{window.localStorage.setItem(e,t)}catch(t){console.warn(`Could not write "${e}" to localStorage.`)}};t.default=e=>{let[t,n]=a.useState(()=>{let t=readValue(e);return t?parseReadValue(t):t});return a.useEffect(()=>{let t=readValue(e);n(t?parseReadValue(t):t)},[e]),a.useEffect(()=>{let n=stringifyWriteValue(t);writeValue(e,n)},[e,t]),[t,n]}},99375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(29871);Object.defineProperty(t,"usePrevious",{enumerable:!0,get:function(){return i.default}})},29871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(2784);t.default=e=>{let t=i.useRef();return i.useEffect(()=>{t.current=e},[e]),t.current}},21910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(54526);Object.defineProperty(t,"useSessionStorage",{enumerable:!0,get:function(){return i.default}})},54526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(76635),a=n(2784),o=n(96570),parseReadValue=e=>{try{return JSON.parse(e)}catch(e){console.warn("Could not parse value read from sessionStorage.",e)}return e},readValue=e=>{if(o.isBrowser())try{return window.sessionStorage.getItem(e)}catch(t){console.warn(`Could not read "${e}" from sessionStorage.`,t)}},stringifyWriteValue=e=>{try{return e&&i.isObject(e)?JSON.stringify(e):e}catch(e){console.warn("Could not stringify value before writing it to sessionStorage.",e)}return e},writeValue=(e,t)=>{if(o.isBrowser())try{window.sessionStorage.setItem(e,t)}catch(t){console.warn(`Could not write "${e}" to sessionStorage.`,t)}};t.default=e=>{let[t,n]=a.useState(()=>{let t=readValue(e);return t?parseReadValue(t):t});return a.useEffect(()=>{let t=readValue(e);n(t?parseReadValue(t):t)},[e]),a.useEffect(()=>{let n=stringifyWriteValue(t);writeValue(e,n)},[e,t]),[t,n]}},55453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(48736);Object.defineProperty(t,"useTrackPropChanges",{enumerable:!0,get:function(){return i.default}})},48736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(2784),a=n(76635);t.default=function({onTrackChanges:e,propsToTrack:t}){let n=i.useRef(a.reduce(t,(e,t,n)=>(e[n]={initialValue:t,currentValue:t,wasChanged:!1},e),{}));i.useEffect(()=>{a.each(t,(e,t)=>{let i=n.current[t];i.currentValue!==e&&(n.current[t]={initialValue:i.initialValue,currentValue:e,wasChanged:!0})})},[t]),i.useEffect(()=>()=>e(n.current),[e])}},96570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0,t.isBrowser=()=>"undefined"!=typeof window},3269:function(e,t,n){"use strict";n.d(t,{DN:function(){return readCookieCategories},Lx:function(){return canWriteCookieCategory}});var i=n(59251);let a=["C0001","C0002","C0004"],o=Object.entries({essential:"C0001",analytics:"C0002",marketing:"C0004"}).reduce((e,t)=>{let n=t[0],i=t[1];return e[i]=n,e},{}),readCookieCategoriesFromCookie=()=>{let e=(0,i.v)("OptanonConsent"),t=new URLSearchParams(e).get("groups")||"",n=t.split(",").map(e=>e.split(":")).filter(([e])=>!!e).filter(([,e])=>"1"===e).map(([e])=>e);return n},getActiveCategoryCodes=()=>{let e=("undefined"!=typeof window?window.OnetrustActiveGroups:"")||"",t=e.split(/\s*,\s*/).filter(Boolean),n=t.length>0?t:readCookieCategoriesFromCookie();return[...new Set(["C0001",...n])].sort()},readCookieCategories=()=>{let e=getActiveCategoryCodes(),t=a.reduce((t,n)=>(t[n]=e.includes(n),t),{}),n=Object.entries(t).reduce((e,[t,n])=>{let i=o[t];return e[i]=n,e},{});return{byCode:t,byName:n}},canWriteCookieCategory=e=>{if("essential"===e)return!0;let t=readCookieCategories();return!!t.byName[e]}},7727:function(e,t,n){"use strict";n.d(t,{Y:function(){return useCookieConsent}});var i=n(2784),a=n(3269);let useCookieConsent=()=>{let[e,t]=(0,i.useState)(()=>(0,a.DN)());return(0,i.useEffect)(()=>{let e="zapier.cookie-consent",onConsentChanged=()=>{t((0,a.DN)())};return window.addEventListener(e,onConsentChanged),()=>{window.removeEventListener(e,onConsentChanged)}}),e}},35541:function(e,t,n){"use strict";let i,a;n.d(t,{p:function(){return UniversalLayout}});var o,s={};n.r(s),n.d(s,{Component:function(){return Component},shouldRender:function(){return shouldRender}});var l={};n.r(l),n.d(l,{Component:function(){return BannerMessage_Component},shouldRender:function(){return BannerMessage_shouldRender}});var u={};n.r(u),n.d(u,{Component:function(){return CompaniesTrialEnded_Component},shouldRender:function(){return CompaniesTrialEnded_shouldRender}});var c={};n.r(c),n.d(c,{Component:function(){return CompaniesTrialing_Component},shouldRender:function(){return CompaniesTrialing_shouldRender}});var d={};n.r(d),n.d(d,{Component:function(){return ProfessionalTrialEnded_Component},shouldRender:function(){return ProfessionalTrialEnded_shouldRender}});var p={};n.r(p),n.d(p,{Component:function(){return ProfessionalTrialing_Component},shouldRender:function(){return ProfessionalTrialing_shouldRender}});var h={};n.r(h),n.d(h,{Component:function(){return RefreshRequired_Component},shouldRender:function(){return RefreshRequired_shouldRender}});var f={};n.r(f),n.d(f,{Component:function(){return TeamsDowngraded_Component},shouldRender:function(){return TeamsDowngraded_shouldRender}});var g={};n.r(g),n.d(g,{Component:function(){return TeamsTrialEnded_Component},shouldRender:function(){return TeamsTrialEnded_shouldRender}});var m={};n.r(m),n.d(m,{Component:function(){return OverdueInvoice_Component},shouldRender:function(){return OverdueInvoice_shouldRender}});var v={};n.r(v),n.d(v,{Component:function(){return TeamsTrialing_Component},shouldRender:function(){return TeamsTrialing_shouldRender}});var b={};n.r(b),n.d(b,{Component:function(){return UnlimitedAccount_Component},shouldRender:function(){return UnlimitedAccount_shouldRender}});var y=n(28165),x=n(77293),C=n(2784);let U="undefined"==typeof window||"Deno"in window;function noop(){}function isValidTimeout(e){return"number"==typeof e&&e>=0&&e!==1/0}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function parseFilterArgs(e,t,n){return isQueryKey(e)?[{...t,queryKey:e},n]:[e||{},t]}function matchQuery(e,t){let{type:n="all",exact:i,fetchStatus:a,predicate:o,queryKey:s,stale:l}=e;if(isQueryKey(s)){if(i){if(t.queryHash!==hashQueryKeyByOptions(s,t.options))return!1}else{if(!partialDeepEqual(t.queryKey,s))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(void 0===a||a===t.state.fetchStatus)&&(!o||!!o(t))}function matchMutation(e,t){let{exact:n,fetching:i,predicate:a,mutationKey:o}=e;if(isQueryKey(o)){if(!t.options.mutationKey)return!1;if(n){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(o))return!1}else{if(!partialDeepEqual(t.options.mutationKey,o))return!1}}return("boolean"!=typeof i||"loading"===t.state.status===i)&&(!a||!!a(t))}function hashQueryKeyByOptions(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||hashQueryKey;return n(e)}function hashQueryKey(e){return JSON.stringify(e,(e,t)=>isPlainObject(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function partialDeepEqual(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!partialDeepEqual(e[n],t[n]))}function shallowEqualObjects(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(hasObjectPrototype(n)&&n.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return Array.isArray(e)}function sleep(e){return new Promise(t=>{setTimeout(t,e)})}function scheduleMicrotask(e){sleep(0).then(e)}function replaceData(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function replaceEqualDeep(e,t){if(e===t)return e;let n=isPlainArray(e)&&isPlainArray(t);if(n||isPlainObject(e)&&isPlainObject(t)){let i=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{},l=0;for(let i=0;i<o;i++){let o=n?i:a[i];s[o]=replaceEqualDeep(e[o],t[o]),s[o]===e[o]&&l++}return i===o&&l===i?e:s}return t}(e,t):t}let w=function(){let e=[],t=0,notifyFn=e=>{e()},batchNotifyFn=e=>{e()},schedule=n=>{t?e.push(n):scheduleMicrotask(()=>{notifyFn(n)})},flush=()=>{let t=e;e=[],t.length&&scheduleMicrotask(()=>{batchNotifyFn(()=>{t.forEach(e=>{notifyFn(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||flush()}return n},batchCalls:e=>(...t)=>{schedule(()=>{e(...t)})},schedule,setNotifyFunction:e=>{notifyFn=e},setBatchNotifyFunction:e=>{batchNotifyFn=e}}}();let Subscribable=class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};let k=new class extends Subscribable{constructor(){super(),this.setup=e=>{if(!U&&window.addEventListener){let listener=()=>e();return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),()=>{window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},S=["online","offline"],O=new class extends Subscribable{constructor(){super(),this.setup=e=>{if(!U&&window.addEventListener){let listener=()=>e();return S.forEach(e=>{window.addEventListener(e,listener,!1)}),()=>{S.forEach(e=>{window.removeEventListener(e,listener)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(null!=e?e:"online")!=="online"||O.isOnline()}let CancelledError=class CancelledError{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function isCancelledError(e){return e instanceof CancelledError}function createRetryer(e){let t,n,i,a=!1,o=0,s=!1,l=new Promise((e,t)=>{n=e,i=t}),shouldPause=()=>!k.isFocused()||"always"!==e.networkMode&&!O.isOnline(),resolve=i=>{s||(s=!0,null==e.onSuccess||e.onSuccess(i),null==t||t(),n(i))},reject=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),i(n))},pause=()=>new Promise(n=>{t=e=>{let t=s||!shouldPause();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,s||null==e.onContinue||e.onContinue()}),run=()=>{let t;if(!s){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(resolve).catch(t=>{var n,i;if(s)return;let l=null!=(n=e.retry)?n:3,u=null!=(i=e.retryDelay)?i:defaultRetryDelay,c="function"==typeof u?u(o,t):u,d=!0===l||"number"==typeof l&&o<l||"function"==typeof l&&l(o,t);if(a||!d){reject(t);return}o++,null==e.onFail||e.onFail(o,t),sleep(c).then(()=>{if(shouldPause())return pause()}).then(()=>{a?reject(t):run()})})}};return canFetch(e.networkMode)?run():pause().then(run),{promise:l,cancel:t=>{s||(reject(new CancelledError(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?l:Promise.resolve()},cancelRetry:()=>{a=!0},continueRetry:()=>{a=!1}}}let QueryObserver=class QueryObserver extends Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let a=this.hasListeners();a&&shouldFetchOptionally(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return!e.keepPreviousData&&(void 0!==e.placeholderData?n.isPlaceholderData:this.getCurrentResult()!==n)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),U||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))return;let e=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!U&&!1!==this.options.enabled&&isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||k.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n;let i=this.currentQuery,a=this.options,o=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,u=e!==i,c=u?e.state:this.currentQueryInitialState,d=u?this.currentResult:this.previousQueryResult,{state:p}=e,{dataUpdatedAt:h,error:f,errorUpdatedAt:g,fetchStatus:m,status:v}=p,b=!1,y=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&shouldFetchOnMount(e,t),s=n&&shouldFetchOptionally(e,i,t,a);(o||s)&&(m=canFetch(e.options.networkMode)?"fetching":"paused",h||(v="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!p.dataUpdatedAt&&null!=d&&d.isSuccess&&"error"!==v)n=d.data,h=d.dataUpdatedAt,v=d.status,b=!0;else if(t.select&&void 0!==p.data){if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),n=replaceData(null==o?void 0:o.data,n,t),this.selectResult=n,this.selectError=null}catch(e){this.selectError=e}}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&"loading"===v){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==l?void 0:l.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(v="success",n=replaceData(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(f=this.selectError,n=this.selectResult,g=Date.now(),v="error");let x="fetching"===m,C="loading"===v,U="error"===v,w={status:v,fetchStatus:m,isLoading:C,isSuccess:"success"===v,isError:U,isInitialLoading:C&&x,data:n,dataUpdatedAt:h,error:f,errorUpdatedAt:g,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:U&&0===p.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:b,isRefetchError:U&&0!==p.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove};return w}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,shallowEqualObjects(n,t))return;this.currentResult=n;let i={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;let i=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(e=>{let n=this.currentResult[e]!==t[e];return n&&i.has(e)})})()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){w.batch(()=>{var t,n,i,a,o,s,l,u;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(i=(a=this.options).onSettled)||i.call(a,this.currentResult.data,null)):e.onError&&(null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(l=(u=this.options).onSettled)||l.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}};function shouldFetchOnMount(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,n){if(!1!==t.enabled){let i="function"==typeof n?n(e):n;return"always"===i||!1!==i&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,n,i){return!1!==n.enabled&&(e!==t||!1===i.enabled)&&(!n.suspense||"error"!==e.state.status)&&isStale(e,n)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}var T=n(43100);let L=T.useSyncExternalStore,_=C.createContext((a=!1,{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a})),useQueryErrorResetBoundary=()=>C.useContext(_),A=C.createContext(void 0),P=C.createContext(!1);function getQueryClientContext(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=A),window.ReactQueryClientContext):A)}let useQueryClient=({context:e}={})=>{let t=C.useContext(getQueryClientContext(e,C.useContext(P)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},QueryClientProvider=({client:e,children:t,context:n,contextSharing:i=!1})=>{C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let a=getQueryClientContext(n,i);return C.createElement(P.Provider,{value:!n&&i},C.createElement(a.Provider,{value:e},t))},I=C.createContext(!1),useIsRestoring=()=>C.useContext(I);I.Provider;let ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.useErrorBoundary)&&!t.isReset()&&(e.retryOnMount=!1)},useClearResetErrorBoundary=e=>{C.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:i})=>{var a;return e.isError&&!t.isReset()&&!e.isFetching&&(a=[e.error,i],"function"==typeof n?n(...a):!!n)},ensureStaleTime=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},willFetch=(e,t)=>e.isLoading&&e.isFetching&&!t,shouldSuspend=(e,t,n)=>(null==e?void 0:e.suspense)&&willFetch(t,n),fetchOptimistic=(e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)});function useQuery(e,t,n){let i=parseQueryArgs(e,t,n);return function(e,t){let n=useQueryClient({context:e.context}),i=useIsRestoring(),a=useQueryErrorResetBoundary(),o=n.defaultQueryOptions(e);o._optimisticResults=i?"isRestoring":"optimistic",o.onError&&(o.onError=w.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=w.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=w.batchCalls(o.onSettled)),ensureStaleTime(o),ensurePreventErrorBoundaryRetry(o,a),useClearResetErrorBoundary(a);let[s]=C.useState(()=>new t(n,o)),l=s.getOptimisticResult(o);if(L(C.useCallback(e=>{let t=i?()=>void 0:s.subscribe(w.batchCalls(e));return s.updateResult(),t},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),C.useEffect(()=>{s.setOptions(o,{listeners:!1})},[o,s]),shouldSuspend(o,l,i))throw fetchOptimistic(o,s,a);if(getHasError({result:l,errorResetBoundary:a,useErrorBoundary:o.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return o.notifyOnChangeProps?l:s.trackResult(l)}(i,QueryObserver)}let E=C.createContext(void 0),useCurrentAccountId=()=>C.useContext(E);var M=n(8736),__rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let emitUserInteractionEvent=async e=>{var{interaction_name:t="call_to_action"}=e,n=__rest(e,["interaction_name"]);return await (0,M.emit)(Object.assign(Object.assign({},n),{absolute_url:window.location.pathname,interaction_name:t,referrer:document.referrer,system_name:"design_system"}),"web_analytics.tracking.user_interaction.UserInteractionEvent")},isEmptyObject=e=>null==e||"object"==typeof e&&0===Object.keys(e).length;var R=n(22193),j=n(1037);let getHostname=e=>{var t;let n=e?e.hostname:null===(t=null==window?void 0:window.location)||void 0===t?void 0:t.hostname;return n||""},F={production:"https://design-system-bff.zapier.com",staging:"https://design-system-bff.zapier-staging.com",localhost:"http://localhost:8000"},getServerUrl=()=>{let e=getHostname();if(e.endsWith("zapier.com"))return F.production;if(e.endsWith("zapier-staging.com"));else if("localhost"===e)return F.localhost;return F.staging},D={href:"/app/settings/billing",icon:{selected:"miscWallet",unselected:"miscWallet"},text:"Usage"},B={href:"/app/move-zaps/",icon:{selected:"arrowBigRight",unselected:"arrowBigRight"},text:"Move Zaps"},$=[{href:"/app/settings/profile",icon:{selected:"navCog",unselected:"navCog"},text:"Settings"},{href:"/logout",icon:"arrowExit",text:"Log Out"}],N={topBarMenu:[{heroArea:{heading:"Zapier Automation Platform",subheading:"No-code automation across 6,000+ apps",submenu:[{text:"How it works",description:"Learn the basics",href:"/how-it-works"},{text:"Security",description:"Trusted by 2M+ businesses",href:"/security"},{text:"Features",description:"Build flexible workflows",href:"/features"},{text:"App integrations",description:"Explore 6,000+ app connections",href:"/apps"}]},promoArea:{header:{heading:"What's new",href:void 0,subheading:""},submenu:[{text:"Tables",href:"/tables",icon:"navTable",description:"No-code databases built for Zaps",tag:void 0},{text:"Interfaces",href:"/interfaces",icon:"navInterfaces",description:"Custom pages to power your Zaps",tag:"Beta"},{text:"Chatbots",href:"/ai/chatbot",icon:"miscAiChatbot",description:"Easy to build, no code required",tag:"Beta"},{description:"Access our latest AI-powered features",href:"/ai",icon:"miscAI",text:"AI features",tag:"Beta"}]},text:"Product",variant:"variant-a",bottomLinks:[{text:"Explore app integrations",icon:{selected:"actionExplore",unselected:"actionExplore"},href:"/apps"},{text:"Join Zapier Early Access",icon:"miscBoltAlt",href:"/early-access"}]},{text:"Solutions",variant:"variant-c",submenu:[{text:"By use case",href:null,icon:{selected:"navBriefcase",unselected:"navBriefcase"},submenu:[{text:"Lead management",href:"/lead-management"},{text:"Sales pipeline",href:"/sales-pipeline-management"},{text:"Marketing campaigns",href:"/marketing-campaigns"},{text:"Customer support",href:"/customer-support-management"},{text:"Data management",href:"/data-management"},{text:"Project management",href:"/project-management"},{text:"Tickets and incidents",href:"/ticket-incident-management"}]},{text:"By app",href:null,icon:{selected:"miscList",unselected:"miscList"},submenu:[{text:"Salesforce",href:"/apps/salesforce/integrations "},{text:"Microsoft Dynamics CRM",href:"/apps/microsoft-dynamics-crm/integrations"},{text:"HubSpot",href:"/apps/hubspot/integrations"},{text:"Marketo",href:"/apps/marketo/integrations"},{text:"Slack",href:"/apps/slack/integrations"},{text:"Microsoft Teams",href:"/apps/microsoft-teams/integrations"},{text:"Zendesk",href:"/apps/zendesk/integrations"},{text:"Jira Software Cloud",href:"/apps/jira-software-cloud/integrations"},{text:"Jira Service Management",href:"/apps/jira-service-management/integrations"}]},{text:"By team",href:null,icon:{selected:"personGroup",unselected:"personGroup"},submenu:[{text:"Marketing",href:"/solutions/marketing"},{text:"Leaders",href:"/solutions/leaders"},{text:"IT",href:"/solutions/it"},{text:"Sales operations",href:"/solutions/sales"}]},{text:"By company size",href:null,icon:{selected:"navExplore",unselected:"navExplore"},submenu:[{text:"Startups",href:"/solutions/startups"},{text:"Small and medium businesses",href:"/solutions/smb"},{text:"Enterprise",href:"/solutions/enterprise"}]}],bottomLinks:[{text:"Explore app integrations",icon:{selected:"actionExplore",unselected:"actionExplore"},href:"/apps"},{text:"Join Zapier Early Access",icon:"miscBoltAlt",href:"/early-access"}],promoArea:[{type:"article-stub",text:"How Zapier Zaps",href:"/l/lead-management-automation-canvas",imageUrl:"https://res.cloudinary.com/zapier-media/image/upload/q_auto/f_auto/v1695750563/Navigation/Logged%20Out/Frame_12120_ef7x6o.png",description:"How Zapier’s RevOps team automates lead management",altText:"Person icon with workflow graphic"},{type:"article-stub",text:"How Zapier Uses AI",href:"/resources/webinar/leaders-using-ai",imageUrl:"https://res.cloudinary.com/zapier-media/image/upload/q_auto/f_auto/v1695750563/Navigation/Logged%20Out/Mask_group_aprx5j.png",description:"Using AI & Zapier in Marketing, Sales, & RevOps",altText:"Graphic that shows webhooks, ChatGPT, and Slack apps connected"}]},{text:"Resources & Support",variant:"variant-b",submenu:[{text:"By team",href:null,icon:{selected:"personGroup",unselected:"personGroup"},submenu:[{text:"Marketing",href:"/resources/marketing"},{text:"Leaders",href:"/resources/leaders"},{text:"IT",href:"/resources/it"},{text:"Sales operations",href:"/resources/sales"}]},{text:"Learn more",href:null,icon:{selected:"miscLearn",unselected:"miscLearn"},submenu:[{text:"Blog",href:"/blog/"},{text:"Zapier Learn",href:"https://learn.zapier.com"},{text:"Events and webinars",href:"/resources/events"},{text:"Customer stories",href:"/customer-stories"},{text:"Zapier guides",href:"/resources/guides"}]},{text:"Get help",href:null,icon:{selected:"navHelp",unselected:"navHelp"},submenu:[{text:"Help Center",href:"/help"},{text:"Community",href:"https://community.zapier.com/"},{text:"Hire an Expert",href:"/experts"},{text:"Support Services",href:"/l/support-services"},{text:"Contact Support",href:"/get-help"}]}],bottomLinks:[{text:"Explore app integrations",icon:{selected:"actionExplore",unselected:"actionExplore"},href:"/apps"},{text:"Join Zapier Early Access",icon:"miscBoltAlt",href:"/early-access"}],promoArea:[{type:"article-stub",text:"Zapier quick-start guide",href:"/learn/zapier-quick-start-guide",imageUrl:"https://cdn.zapier.com/storage/photos/8d754b5e8481fdd190dd7b1cf7738a8d.png",description:"Create your first Zap with ease",altText:"A simplified user interface design representing a portion of Zapier's platform. There's a vertical menu of platform options. At the top is a dominant orange button with text inside that reads \"Create Zap.\" Beneath the button is a stack of menu icons to represent Zapier's dashboard and zaps."},{type:"link-list",text:"Developer resources",href:null,links:[{text:"Developer Platform",href:"/developer-platform"},{text:"Build an integration",href:"/developer-platform/integrations"},{text:"Embed an integration",href:"/developer-platform/embed-tools"},{text:"Integration Partner Program",href:"/developer-platform/partner-program"},{text:"Documentation",href:"https://platform.zapier.com"}]}]},{variant:"link",text:"Pricing",href:"/pricing"}],callToAction:{href:"https://zapier.com/l/contact-sales",text:"Contact Sales"}},useQueryTopNav=({currentAccountId:e,customUserId:t})=>{let[n,i]=(0,C.useState)(!0),[a,o]=(0,C.useState)(N);return(0,C.useEffect)(()=>{let n=!0;return async function(){let a=getServerUrl(),s=`${a}/api/v3/navigation-data/topbar`;try{i(!0);let a=await fetch(s,{credentials:"include",headers:{"x-current-account-id":(null==e?void 0:e.toString())||"","x-customuser-id":(null==t?void 0:t.toString())||""}});if(!a.ok)throw Error("Response was not OK");if(n){let e=await a.json(),{data:t}=e;isEmptyObject(t)||o(t),i(!1)}}catch(e){n&&o(N)}finally{n&&i(!1)}}(),()=>{n=!1}},[e,t]),{isLoading:n,topNav:a}},z="/sign-up/",H="/app/login",Q="#mainContent",prepareSessionData=e=>{var t,n,i;let a=null===(n=null===(t=e.roles)||void 0===t?void 0:t.find(t=>t.account_id===e.current_account_id))||void 0===n?void 0:n.role,o={customUserId:e.id,bannerMessage:e.banner_message,currentAccountId:e.current_account_id,isLoggedIn:e.is_logged_in,isStaff:e.is_staff,email:e.email,currentUserRole:a,hasSeenNotifications:{jobsCta:null===(i=e.has_seen_notifications)||void 0===i?void 0:i.jobs_cta}};return o};async function fetchSessionData(e){let t=await fetch(`${e}/api/v4/session`,{credentials:"include"});if(!t.ok)throw Error("Network response was not ok");let n=await t.json();return prepareSessionData(n)}let q=["session"],useQuerySession=()=>{let{sessionData:e,apiHostname:t}=useUniversalNavContext(),n=useQuery({queryKey:q,queryFn:()=>fetchSessionData(t),enabled:!e,initialData:e,staleTime:1e4});return Object.assign(Object.assign({},n),{isLoading:n.isInitialLoading})},Z=(0,C.createContext)({apiHostname:"",canForceSidebarOpen:!1,canTopbarFitBackToAppButton:!1,canTopbarFitLinks:!1,currentAccountId:void 0,currentUrl:"",isCreateMenuOpen:!1,isLoadingLoggedIn:!0,isLoadingTopNav:!0,isLoggedIn:!1,isOnAppPage:!1,isInAppExperience:!1,isSearchFullWidth:!0,isSidebarControlledByTopbar:!1,isSidebarForcedOpen:!1,isSidebarOpenedByTopbar:!1,isSidebarRendered:!1,onToggleSidebarVisibility:()=>{},setIsCreateMenuOpen:()=>{},setIsSidebarForcedOpen:()=>{},setIsSidebarOpenedByTopbar:()=>{},setIsSidebarRendered:()=>{},shouldRenderCallToAction:!1,shouldRenderSearch:!0,shouldRenderSidebar:!1,shouldRenderAccessibleSidebar:!1,shouldRenderTopbarLinks:!1,shouldRenderTOS:!1,shouldRenderUniversalNav:!0,sidebarWidth:0,topbarSize:"medium",topNavData:{},getFullyQualifiedURL:e=>e||void 0}),useUniversalNavContext=()=>(0,C.useContext)(Z),isCurrentUrlAnAuthPage=e=>e.includes("/login")||e.includes("/sign-up")||e.includes("/oauth/authorize"),isCurrentUrlAnAppPage=(e,t)=>t?"in-app"===t:e.includes("/app/"),isCurrentUrlAnOnboardingPage=e=>e.includes("/app/onboarding"),shouldRenderSidebarForRoute=({currentUrl:e,mode:t})=>isCurrentUrlAnAppPage(e,t)&&!isCurrentUrlAnAuthPage(e)&&!isCurrentUrlAnOnboardingPage(e),shouldRenderTopbarLinksForRoute=({currentUrl:e,mode:t})=>!isCurrentUrlAnAppPage(e,t)&&!isCurrentUrlAnAuthPage(e),getShouldRenderSidebar=({isLoggedIn:e,canTopbarFitLinks:t,currentUrl:n,isSidebarControlledByTopbar:i,isSidebarOpenedByTopbar:a,isCreateMenuOpen:o,mode:s})=>!!o||(i?a:s&&"navigation"===s?!1===t:!!(s&&"in-app"===s&&e||e&&shouldRenderSidebarForRoute({currentUrl:n,mode:s})||!t&&shouldRenderTopbarLinksForRoute({currentUrl:n,mode:s}))),getShouldRenderAccessibleSidebar=({isLoggedIn:e,canTopbarFitLinks:t,currentUrl:n,isSidebarControlledByTopbar:i,isSidebarOpenedByTopbar:a,mode:o})=>i?!a:o&&"navigation"===o?!1===t:(!o||"in-app"!==o||!e||!t)&&!!(e&&shouldRenderSidebarForRoute({currentUrl:n,mode:o})&&!t||!t&&shouldRenderTopbarLinksForRoute({currentUrl:n,mode:o})),getShouldRenderSearch=({currentUrl:e})=>!(isCurrentUrlAnAuthPage(e)||isCurrentUrlAnOnboardingPage(e)),getShouldRenderTopbarToggle=({isSidebarControlledByTopbar:e,isLoggedIn:t,currentUrl:n,mode:i})=>!!e&&(!!t||shouldRenderTopbarLinksForRoute({currentUrl:n,mode:i})),getSidebarWidth=({canForceSidebarOpen:e,isSidebarForcedOpen:t,isSidebarRendered:n,isSidebarControlledByTopbar:i})=>!n||i?0:e&&t?300:70,UniversalNavProvider=e=>{let{data:t}=useQuerySession(),n=useCurrentAccountId()||(null==t?void 0:t.currentAccountId),{isLoading:i,topNav:a}=useQueryTopNav({currentAccountId:n,customUserId:null==t?void 0:t.customUserId}),{accountData:o,accountsListData:s,currentUrl:l,mode:u,sessionData:c,shouldRenderTOS:d,urlPathPrefix:p}=e,h=isCurrentUrlAnAppPage(l,u),f=isCurrentUrlAnAppPage(l,u)&&!1===isCurrentUrlAnOnboardingPage(l)&&!1===isCurrentUrlAnAuthPage(l),{isSearchFullWidth:g,isSidebarControlledByTopbar:m,canForceSidebarOpen:v,canTopbarFitBackToAppButton:b,canTopbarFitLinks:y,topbarSize:x}=(0,j.Oh)({"(min-width: 0px)":{isSidebarControlledByTopbar:!0,isSearchFullWidth:!0,canForceSidebarOpen:!1,canTopbarFitBackToAppButton:!1,canTopbarFitLinks:!1,topbarSize:"small"},"(min-width: 450px)":{canTopbarFitBackToAppButton:isEmptyObject(a.callToAction),topbarSize:"small"},"(min-width: 800px)":{canTopbarFitBackToAppButton:!0,topbarSize:"medium"},"(min-width: 1040px)":{isSidebarControlledByTopbar:!1,isSearchFullWidth:!1,canTopbarFitLinks:!0},"(min-width: 1280px)":{canForceSidebarOpen:shouldRenderSidebarForRoute({currentUrl:l,mode:u})}}),U=y&&shouldRenderTopbarLinksForRoute({currentUrl:l,mode:u}),[w,k]=(0,C.useState)(!1),S=!!t&&t.isLoggedIn,[O,T]=(0,C.useState)(!1),[L,_]=(0,R._)("UniversalNav:isSidebarForcedOpen");(0,C.useEffect)(()=>{null==L&&_(!0)},[L,_]);let[A,P]=(0,C.useState)(!1),I=getShouldRenderSidebar({isLoggedIn:S,canTopbarFitLinks:y,currentUrl:l,isSidebarControlledByTopbar:m,isSidebarOpenedByTopbar:O,isCreateMenuOpen:w,mode:u}),E=getShouldRenderAccessibleSidebar({isLoggedIn:S,canTopbarFitLinks:y,currentUrl:l,isSidebarControlledByTopbar:m,isSidebarOpenedByTopbar:O,mode:u}),M=getShouldRenderSearch({currentUrl:l}),F=getShouldRenderTopbarToggle({isSidebarControlledByTopbar:m,isLoggedIn:S,currentUrl:l}),D=F?()=>{emitUserInteractionEvent({event_action:"click",option_selected:"UniversalTopbar SidebarVisibilityToggle"}),T(!O)}:void 0,B=getSidebarWidth({canForceSidebarOpen:v,isSidebarForcedOpen:L,isSidebarRendered:A,isSidebarControlledByTopbar:m}),$=(0,C.useCallback)(e=>e&&p&&e.startsWith("/")?p+e:e||void 0,[p]),N={accountUsageData:o,accountsListData:s,currentAccountId:n,isLoadingTopNav:i,canTopbarFitBackToAppButton:b,canTopbarFitLinks:y,canForceSidebarOpen:v,currentUrl:l,isCreateMenuOpen:w,isLoadingLoggedIn:!t,isLoggedIn:S,isOnAppPage:h,isInAppExperience:f,isSearchFullWidth:g,isSidebarControlledByTopbar:m,isSidebarOpenedByTopbar:O,isSidebarForcedOpen:!!v&&!!A&&L,isSidebarRendered:A,mode:u,onToggleSidebarVisibility:D,sessionData:c,setIsCreateMenuOpen:k,setIsSidebarOpenedByTopbar:T,setIsSidebarForcedOpen:_,setIsSidebarRendered:P,shouldRenderCallToAction:!isCurrentUrlAnOnboardingPage(l),shouldRenderSearch:M,shouldRenderSidebar:I,shouldRenderAccessibleSidebar:E,shouldRenderTopbarLinks:U,shouldRenderTOS:d,shouldRenderUniversalNav:!0,sidebarWidth:B,topbarSize:x,topNavData:a,urlPathPrefix:p,getFullyQualifiedURL:$,apiHostname:e.apiHostname||""};return C.createElement(Z.Provider,{value:N},e.children)},groupPlansByPlanType=e=>{let t=[];for(let n of["Free","Starter","Professional","Team","Company"]){let i=e.filter(e=>e.plan_type===n).sort((e,t)=>e.actions-t.actions).map(e=>({id:e.id,name:e.name,interval:e.interval,amount:e.amount,type:e.plan_type,isInPlanGroup:!e.off_plan_group,actions:e.actions}));t.push({planType:n,plans:i})}return t},useQueryPlans=e=>{let{apiHostname:t}=useUniversalNavContext(),n=useQuery({queryKey:["accountPlans",e],queryFn:async()=>{let n=`${t}/api/v3/accounts/${e}/plans`,i=await fetch(n,{credentials:"include"});if(!i.ok)throw Error("Network response was not ok");let a=await i.json();return a.objects},enabled:!!e,select:groupPlansByPlanType});return Object.assign(Object.assign({},n),{isLoading:n.isInitialLoading})},formatAccountsPlanData=e=>({interval:e.interval,planType:e.plan_type,actions:e.actions,meteredPricingTiers:e.metered_pricing_tiers.map(([e,t])=>({numTasks:e,pricePerTask:t}))}),useQueryAccountPlan=(e,t)=>{let{apiHostname:n}=useUniversalNavContext(),i=useQuery({queryKey:["accountPlan",e,t],queryFn:async()=>{if(!e||!t)throw Error("Missing either accountId or planId");let i=await fetch(`${n}/api/v3/accounts/${encodeURIComponent(e)}/plans/${encodeURIComponent(t)}`,{credentials:"include"});if(!i.ok)throw Error("Network response was not ok");let a=await i.json();return a},select:formatAccountsPlanData,enabled:!!e&&!!t});return Object.assign(Object.assign({},i),{isLoading:i.isInitialLoading})},prepareAccountData=e=>{let t=e.plan_info,n={id:e.id,name:e.name,currency:e.currency,plan:{amount:t.amount,hasMeteredBilling:t.metered_task_pricing,id:t.id,name:t.name,interval:t.interval},isTrialing:e.is_trialing,trialEndDate:e.trial_end_date,isTrialingTeams:e.is_trialing_teams,teamTrialEndDate:e.teams_trial_end_date,teamsTrialAutoUpgrade:e.teams_trial_auto_upgrade,isTrialingCompanies:e.is_trialing_companies,companiesTrialEndDate:e.companies_trial_end_date,companiesTrialAutoUpgrade:e.companies_trial_auto_upgrade,isTeamAccount:e.is_team_account,teamAccountEndDate:e.team_account_end_date,isCompanyAccount:e.is_company_account,isUnlimited:e.is_unlimited,firstKnownUpgradeDate:e.first_known_upgrade_date,hasOverdueInvoice:e.has_overdue_invoice};return n},useQueryAccount=e=>{let{accountData:t,apiHostname:n}=useUniversalNavContext(),i=useQuery({queryKey:["account",e],queryFn:async()=>{if(!e)throw Error("No currentAccountId specified.");let t=await fetch(`${n}/api/v4/accounts/${encodeURIComponent(e)}`,{credentials:"include"});if(!t.ok)throw Error("Network response was not ok");let i=await t.json();return i},select:prepareAccountData,enabled:!t&&!!e,initialData:t});return Object.assign(Object.assign({},i),{isLoading:i.isInitialLoading})},prepareAccountUsageData=e=>({id:e.id,periodEnd:e.period_end,tasks:{limit:e.limit.action_limit,total:e.zap_metrics.total_tasks},zaps:{limit:e.limit.zap_limit,on:e.zap_metrics.zap_on_count}}),useQueryAccountUsage=e=>{let{apiHostname:t}=useUniversalNavContext(),n=useQuery({queryKey:["accountUsage",e],queryFn:async()=>{if(!e)throw Error("currentAccountId is not available");let n=await fetch(`${t}/api/v4/accounts/${encodeURIComponent(e)}/usage`,{credentials:"include"});if(!n.ok)throw Error("Network response was not ok");return await n.json()},select:prepareAccountUsageData,enabled:!!e});return Object.assign(Object.assign({},n),{isLoading:n.isInitialLoading})},getNextPlan=(e,t,n={})=>{var i,a,o,s,l,u,c;let d;let p=null!==(a=null!==(i=n.nextPlanInterval)&&void 0!==i?i:t.interval)&&void 0!==a?a:"year",h=null!==(s=null!==(o=n.nextPlanType)&&void 0!==o?o:t.plan_type)&&void 0!==s?s:"Free",f=null!==(l=e.findIndex(e=>e.planType===h))&&void 0!==l?l:0;for(let n=f;n<e.length&&!d;n++)d=null===(c=null===(u=e[n])||void 0===u?void 0:u.plans)||void 0===c?void 0:c.find(e=>e.actions>t.total_actions&&e.actions>t.actions_used&&e.interval===p);return d},useAlertBannerData=()=>{var e,t,n;let{data:i,isLoading:a,isError:o}=useQuerySession(),{data:s,isLoading:l,isError:u}=useQueryAccount(null==i?void 0:i.currentAccountId),{data:c,isLoading:d,isError:p}=useQueryPlans(null==i?void 0:i.currentAccountId),{data:h,isLoading:f,isError:g}=useQueryAccountUsage(null==i?void 0:i.currentAccountId),{data:m,isLoading:v,isError:b}=useQueryAccountPlan(null==i?void 0:i.currentAccountId,null===(e=null==s?void 0:s.plan)||void 0===e?void 0:e.id),y=null===(n=null===(t=Array.from(c||[]))||void 0===t?void 0:t.find(e=>e.planType===(null==s?void 0:s.plan.name)))||void 0===n?void 0:n.plans.find(e=>e.id===(null==s?void 0:s.plan.id)),x=!!i&&!!s&&!!c&&!!h&&!!y&&!!m;if(l||a||d||f||v)return{isError:!1,isLoading:!0,data:void 0};if(u||o||p||g||b)return{isError:!0,isLoading:!1,data:void 0};if(!x)return{isError:!1,isLoading:!1,data:void 0};let C={actions_used:h.tasks.total,interval:m.interval,plan_type:m.planType,total_actions:m.actions},U={isAuthenticated:i.isLoggedIn,currentUser:i,currentAccount:{id:s.id,currency:s.currency,currentUserRole:i.currentUserRole,firstKnownUpgradeDate:s.firstKnownUpgradeDate,isUnlimited:s.isUnlimited,hasOverdueInvoice:s.hasOverdueInvoice,periodEndDate:h.periodEnd,isTrialing:s.isTrialing,trialEndDate:s.trialEndDate,isTeamAccount:s.isTeamAccount,isTrialingTeams:s.isTrialingTeams,teamAccountEndDate:s.teamAccountEndDate,teamsTrialAutoUpgrade:s.teamsTrialAutoUpgrade,teamTrialEndDate:s.teamTrialEndDate,isCompanyAccount:s.isCompanyAccount,isTrialingCompanies:s.isTrialingCompanies,companiesTrialEndDate:s.companiesTrialEndDate,companiesTrialAutoUpgrade:s.companiesTrialAutoUpgrade,plan:y},possiblePlans:c,nextPlan:getNextPlan(c,C,{nextPlanInterval:"year"}),nextTeamPlan:getNextPlan(c,C,{nextPlanType:"Team"}),nextCompanyPlan:getNextPlan(c,C,{nextPlanInterval:"year",nextPlanType:"Company"})};return{data:U,isLoading:!1,isError:!1}};var W=n(26215),V=n(20271);let K="annualUpsellDismissedOn",calculateAnnualSavingsAmount=e=>{var t;let{currentAccount:n}=e,i=n.plan,a=null===(t=e.possiblePlans.find(e=>e.planType===i.type))||void 0===t?void 0:t.plans.find(e=>e.name===i.name&&"year"===e.interval),o=i.amount||0,s=((null==a?void 0:a.amount)||o)/12;return(o-s)/o},shouldRender=e=>{let{currentAccount:{plan:t}}=e,n="year"!==t.interval&&t.isInPlanGroup,i=null!==localStorage.getItem(K);return!i&&!!n&&calculateAnnualSavingsAmount(e)>0},Component=function(e){let{getFullyQualifiedURL:t}=useUniversalNavContext(),[n,i]=(0,C.useState)(localStorage.getItem(K));(0,C.useEffect)(()=>{null!==n&&localStorage.setItem(K,n)},[n]);let{data:a}=e,o=a.currentAccount.plan,s=calculateAnnualSavingsAmount(a),l=`${Math.floor(100*s)}%`,u=encodeURI(`/app/checkout/change/${o.name.toLowerCase()}`),c=(0,x.U)("span",null,`Save ${l} when you `,(0,x.U)(W.r,{href:t(u),onClick:()=>{e.trackEvent("clicked annual billing nudge")}},"switch to an annual subscription"));return n?null:(0,x.U)(V.b,{layout:e.layout,title:c,type:"info",onDismiss:()=>{i(new Date().toUTCString())}})};var G=n(39479);let J=(0,G.B)("BannerMessage",{content:y.iv`
display: inline-block;
// Reset styles lifted from @zapier/style-encapsulation package.
* {
all: unset;
box-sizing: border-box;
-webkit-text-fill-color: currentColor;
}
strong {
font-weight: 700;
}
em {
font-style: italic;
}
a {
cursor: pointer;
text-decoration: underline;
}
`}),BannerMessage_shouldRender=e=>!!e.currentUser.bannerMessage,BannerMessage_Component=function(e){let t=(0,x.U)("div",{css:J.content,dangerouslySetInnerHTML:{__html:e.data.currentUser.bannerMessage}});return(0,x.U)(V.b,{ariaLive:"polite",layout:e.layout,title:t,type:"info"})};var X=n(68516);let Y="Pro (2,000 Tasks)",buildUpgradeUrl=e=>{let t=(e.currentPlanName||"").toLowerCase(),n=(e.upgradePlanName||"").toLowerCase(),i=t&&n?`/app/checkout/upgrade/${t}/${n}?interval=${e.interval||"month"}`:"/app/pricing";return encodeURI(i)},getProfessionalPlanData=(e,t)=>{var n;let i=null===(n=e.find(e=>"Professional"===e.planType))||void 0===n?void 0:n.plans.find(e=>e.name===Y&&"year"===e.interval),a=buildUpgradeUrl({currentPlanName:t.plan.name,upgradePlanName:(null==i?void 0:i.name)||Y,interval:t.plan.interval}),o=((null==i?void 0:i.amount)||0)/12;return{professionalUpgradeUrl:a,professionalPlanAmount:o}},CompaniesTrialEnded_shouldRender=e=>{let{isCompanyAccount:t,companiesTrialEndDate:n}=e.currentAccount;if(!n||t)return!1;let i=(0,X.wG)(n)<new Date;return i&&7>=(0,X.Cp)(n)},CompaniesTrialEnded_Component=function(e){var t;let{getFullyQualifiedURL:n}=useUniversalNavContext(),{data:i}=e,{currentAccount:a}=i,o=buildUpgradeUrl({currentPlanName:a.plan.name,upgradePlanName:null===(t=i.nextCompanyPlan)||void 0===t?void 0:t.name,interval:a.plan.interval});return(0,x.U)(V.b,{layout:e.layout,title:"Your Company trial has ended",type:"info"},(0,x.U)(W.r,{href:n(o),onClick:()=>{e.trackEvent("company-trial-ended-upgrade-clicked",{profileId:i.currentUser.customUserId})}},"Upgrade")," ","to keep using our advanced administrative and security controls. Still have questions?"," ",(0,x.U)(W.r,{href:n("/app/get-help"),onClick:()=>{e.trackEvent("company-trial-ended-support-extend-trial-clicked",{profileId:i.currentUser.customUserId})}},"Contact us")," ")};var ee=n(56666),et=n(13888),en=n.n(et),er=n(60138);let ei={icon:"UnitedStates",id:"USD",multiplier:1,name:"USD",symbol:"$",zeroDecimal:!1};er.ZP`
query currencyQuery {
currencies {
id
icon
multiplier
name
symbol
zeroDecimal
}
}
`,(o=i||(i={})).up="up",o.down="down",o.default="default";let roundNumberByStrategy=(e,t)=>{let n;switch(t){case i.up:n=Math.ceil;break;case i.down:n=Math.floor;break;case i.default:default:n=Math.round}return n(e)},relativeRound=(e,t=3)=>{if(!e)return 0;let n=Math.floor(Math.log10(Math.abs(e)))-t,i=Math[e<0?"floor":"ceil"](e/Math.pow(10,n));return parseFloat((i*Math.pow(10,n)).toPrecision(12))},formatPrice=(e,{roundingStrategy:t,maxDecimals:n=2,minDecimals:i=0,useRelativeRounding:a=!1,isPriceGivenAsCents:o=!0}={})=>{let s=a?relativeRound(e):e,l=o?s/100:s;t&&n<=2&&(l=roundNumberByStrategy(l,t));let u=l%1!=0;return l.toLocaleString(void 0,{maximumFractionDigits:n,minimumFractionDigits:0===i&&u?2:i})},formatPriceWithCurrencySymbol=(e,t,n="$")=>e>=0?`${n}${formatPrice(e,t)}`:`–${n}${formatPrice(Math.abs(e),t)}`,formatPriceToBeInCurrency=(e,t=ei,n=!0,i={})=>{let a=e*t.multiplier;return n?formatPriceWithCurrencySymbol(a,i,t.symbol):formatPrice(a,i)};var ea=C.createElement;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){(0,ee.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let Price=({children:e,currency:t=ei,maxDecimals:n=2,minDecimals:a=0,symbolFontSize:o="inherit",isLocalized:s=!1,roundingStrategy:l})=>{let u=function(e,t){let{isLocalized:n,currency:a,roundingStrategy:o}=t,s=_objectSpread(_objectSpread({},en()(t,["minDecimals","maxDecimals"])),{},{useRelativeRounding:!1});return a.zeroDecimal&&(s.isPriceGivenAsCents=!n,s.roundingStrategy=null!=o?o:i.default),n?formatPrice(e,s):formatPriceToBeInCurrency(e,a,!1,s)}(Math.abs(e),{currency:t,isLocalized:s,maxDecimals:n,minDecimals:a,roundingStrategy:l});return ea("span",{style:{alignItems:"center",display:"inline-flex"}},e<0&&ea("span",null,"-"),ea("span",{style:{fontSize:o}},t.symbol),ea("span",null,`${u} ${(null==t?void 0:t.symbol)==="$"?t.name:""}`.trim()))},CompaniesTrialing_shouldRender=e=>{let{currentAccount:t}=e;return t.isTrialingCompanies&&t.companiesTrialEndDate&&t.currentUserRole&&["owner","admin","super_admin"].includes(t.currentUserRole)},CompaniesTrialing_Component=function(e){var t,n,i,a;let{getFullyQualifiedURL:o}=useUniversalNavContext(),{data:s,currency:l}=e,{currentAccount:u}=s,{companiesTrialEndDate:c,companiesTrialAutoUpgrade:d}=u,p=(0,X.Cp)(c),h=`${p} ${1===p?"day":"days"} left in your Company trial`,f=((null===(t=s.nextCompanyPlan)||void 0===t?void 0:t.amount)||0)/12,g=(0,X.wG)(c).toLocaleString("en-US",{month:"short",day:"numeric"}).replace(/([a-z]+)/i,"$1."),m=(0,x.U)(W.r,{href:o("/app/settings/billing")},"Edit trial payment settings"),v=d?(0,x.U)("p",null,"You will be billed and charged ",(0,x.U)(Price,{currency:l},f),"/month "," at the end of your trial. ",m):(0,x.U)("p",null,`On ${g}, you’ll lose access to Company plan features and be downgraded to a ${null!==(a=null===(i=null===(n=s.currentAccount)||void 0===n?void 0:n.plan)||void 0===i?void 0:i.type)&&void 0!==a?a:"Free"} plan. `,m);return(0,x.U)(V.b,{layout:e.layout,title:h,type:"info"},v)},ProfessionalTrialEnded_shouldRender=e=>{let{currentAccount:t}=e,{isTrialing:n,trialEndDate:i}=t;return!n&&!!i&&0===t.plan.amount&&14>=(0,X.Cp)(i)},ProfessionalTrialEnded_Component=function(e){let{getFullyQualifiedURL:t}=useUniversalNavContext(),{data:n,currency:i}=e,{currentAccount:a}=n,{professionalUpgradeUrl:o,professionalPlanAmount:s}=getProfessionalPlanData(n.possiblePlans,a),l=s>0&&(0,x.U)("span",null,"for as low as ",(0,x.U)(Price,{currency:i},s),"/month");return(0,x.U)(V.b,{layout:e.layout,title:"Your Professional trial has ended",type:"info"},(0,x.U)(C.Fragment,null,(0,x.U)(W.r,{href:t(o),onClick:()=>{e.trackEvent("Trial: clicked banner",{in_trial:!1})}},"Upgrade"),"\xa0",l," to keep using multi-step Zaps, filters, premium apps, and more"))},ProfessionalTrialing_shouldRender=(e,t=!1)=>{let{isTrialing:n,trialEndDate:i}=e.currentAccount;return!!n&&!!i&&!t},ProfessionalTrialing_Component=function(e){let{data:t,currency:n}=e,{currentAccount:i,possiblePlans:a}=t,{getFullyQualifiedURL:o}=useUniversalNavContext(),{trialEndDate:s}=i,l=(0,X.Cp)(s),u=1===l?"day":"days",{professionalUpgradeUrl:c,professionalPlanAmount:d}=getProfessionalPlanData(a,i),onClickLink=()=>{e.trackEvent("Trial: clicked banner")};return(0,x.U)(V.b,{layout:e.layout,title:"Welcome to your Professional trial!",type:"info"},(0,x.U)("p",null,`You have ${l} ${u} to try Zapier’s `,(0,x.U)(W.r,{href:o("/help/account/billing-pricing/understand-your-zapier-premium-trial"),onClick:onClickLink},"paid features"),"."," ",(0,x.U)(C.Fragment,null,(0,x.U)(W.r,{href:c,onClick:onClickLink},"Upgrade")," ","anytime",d>0&&(0,x.U)("span",null," ","for as low as ",(0,x.U)(Price,{currency:n},d),"/month."))))},eo=Date.now(),RefreshRequired_shouldRender=()=>{let e=(Date.now()-eo)/1e3/60/60;return e>24},RefreshRequired_Component=function(){return(0,x.U)(V.b,{ariaLive:"polite",layout:"banner",title:"A new version of Zapier is available",type:"info"},(0,x.U)("p",null,(0,x.U)("button",{type:"button",css:{textDecoration:"underline"},onClick:()=>window.location.reload()},"Refresh now")," ","to get the latest version"))},TeamsDowngraded_shouldRender=e=>{let{isTeamAccount:t,teamAccountEndDate:n}=e.currentAccount;return!t&&!!n&&7>=(0,X.Cp)(n)},TeamsDowngraded_Component=function(e){let onUpgrade=()=>{e.trackEvent("clicked teams downgraded banner")};return(0,x.U)(V.b,{layout:e.layout,title:"You’ve recently canceled your Team plan",type:"info"},(0,x.U)(W.r,{href:"/app/checkout/upgrade-to-team",onClick:()=>onUpgrade()},"Upgrade"),"\xa0to regain your access to unlimited users, shared app connections, premier support, and more")},TeamsTrialEnded_shouldRender=e=>{let{isTeamAccount:t,teamTrialEndDate:n}=e.currentAccount;return!t&&!!n&&7>=(0,X.Cp)(n)},TeamsTrialEnded_Component=function(e){var t;let{getFullyQualifiedURL:n}=useUniversalNavContext(),{data:i}=e,{currentAccount:a}=i,o=buildUpgradeUrl({currentPlanName:a.plan.name,upgradePlanName:null===(t=i.nextTeamPlan)||void 0===t?void 0:t.name,interval:a.plan.interval});return(0,x.U)(V.b,{layout:e.layout,title:"Your Team trial has ended",type:"info"},(0,x.U)(W.r,{href:n(o)},"Upgrade"),"\xa0to keep your access to unlimited users, shared app connections, premier support, and more")};var es=n(59251),el=n(3269);let eu={category:null,domain:"domain",expires:"expires",maxAge:"max-age",path:"path",sameSite:"samesite",secure:"secure"},formatCookieOptionName=e=>eu[e]||e,ec={category:null,domain:void 0,expires:e=>new Date(e).toUTCString(),maxAge:void 0,path:void 0,sameSite:void 0,secure:e=>void 0},formatCookieOptionValue=(e,t)=>ec[e]?ec[e](t):t,stringifyOptions=e=>Object.entries(e).filter(([e,t])=>"category"!==e&&!1!==t).map(([e,t])=>{let n=formatCookieOptionName(e),i=formatCookieOptionValue(e,t);return void 0===i?`; ${n}`:`; ${n}=${i}`},[]).join("").trim(),writeCookie=(e,t,n)=>{if("undefined"==typeof document)return!1;try{let i=encodeURIComponent(e),a=encodeURIComponent(t),o=stringifyOptions(n);if((0,el.Lx)(n.category))return document.cookie=`${i}=${a}${o}`.trim(),!0;console.warn(`writeCookie :: Could not write cookie ${e} in unconsented category ${n.category}.`)}catch(t){console.error(`writeCookie :: Could not write cookie ${e}.`,t)}return!1},OverdueInvoice_shouldRender=(e,t=!1)=>{let{currentAccount:n}=e,i=(0,es.v)("dismissedOverdueInvoiceBanner");return(null==n?void 0:n.hasOverdueInvoice)&&"true"!==i},OverdueInvoice_Component=function(e){let[t,n]=(0,C.useState)(!1),[i,a]=(0,C.useState)(!1),{data:o}=e,{currentAccount:s}=o,l=o.currentAccount.periodEndDate,u=s.currentUserRole&&["owner","super_admin"].includes(s.currentUserRole);(0,C.useEffect)(()=>{n(window.location.pathname.includes("checkout/invoice/pay"))},[]);let expiryDate=()=>{if(l)return l;let e=new Date;return e.setDate(e.getDate()+30),e};if(i||t)return null;let c=(0,x.U)("span",null,"There was a problem with your last payment."," ",u?(0,x.U)(W.r,{href:"/app/settings/billing"},"Fix it now"):(0,x.U)(C.Fragment,null,"Please have an account owner update the payment information."));return(0,x.U)(V.b,{onDismiss:()=>{writeCookie("dismissedOverdueInvoiceBanner","true",{category:"essential",expires:expiryDate()}),a(!0)},layout:e.layout,title:c,type:"error"})},TeamsTrialing_shouldRender=e=>e.currentAccount.isTrialingTeams,TeamsTrialing_Component=function(e){var t,n,i,a,o;let{getFullyQualifiedURL:s}=useUniversalNavContext(),{data:l,currency:u}=e,{currentAccount:c}=l,d=c.teamsTrialAutoUpgrade,p=c.currentUserRole&&["owner","admin","super_admin"].includes(c.currentUserRole),h=null!==(n=null===(t=l.nextTeamPlan)||void 0===t?void 0:t.amount)&&void 0!==n?n:-1,f=c.plan.interval,g="year"===f,m=g?h/12:h,v=c.teamTrialEndDate?(0,X.Cp)(c.teamTrialEndDate):0,b=(0,X.wG)(c.teamTrialEndDate).toLocaleString("en-US",{month:"short",day:"numeric"}).replace(/([a-z]+)/i,"$1."),y=(0,x.U)(W.r,{href:s("/app/settings/billing")},"Edit trial payment settings"),C=c.teamTrialEndDate?`${v} ${1===v?"day":"days"} left in your Team trial`:"You are on a Team trial",U=d?(0,x.U)("p",null,"You will be billed and charged ",m<0?"":(0,x.U)("span",null,(0,x.U)(Price,{currency:u},m),"/month",g?" (paid annually)":""),". ",p?y:null):(0,x.U)("p",null,(c.teamTrialEndDate?`On ${b}, `:"At the end of your trial, ")+`you’ll lose access to Team plan features and be downgraded to a ${null!==(o=null===(a=null===(i=l.currentAccount)||void 0===i?void 0:i.plan)||void 0===a?void 0:a.type)&&void 0!==o?o:"Free"} plan. `,p?y:null);return(0,x.U)(V.b,{layout:e.layout,title:C,type:"info"},U)},UnlimitedAccount_shouldRender=e=>e.currentAccount.isUnlimited,UnlimitedAccount_Component=function(){return null},ed=[h,l,b,c,u,v,g,m,f,p,d,s],useAlertBanner=()=>{var e;let[t,n]=(0,C.useState)(Date.now()),[i,a]=(0,C.useState)(!1);(0,C.useEffect)(()=>{setTimeout(()=>{n(Date.now())},18e6)},[t]),(0,C.useEffect)(()=>{a(window.location.pathname.includes("team-account-setup"))},[]);let{isLoading:o,isError:s,data:l}=useAlertBannerData(),u=o||s||!l?void 0:null===(e=ed.find(e=>e.shouldRender(l,i)))||void 0===e?void 0:e.Component;return{data:l,Component:u,isLoading:o}},formatCurrenciesData=e=>e.map(e=>({id:e.id,name:e.name,icon:e.icon,multiplier:e.multiplier,symbol:e.symbol,zeroDecimal:e.zero_decimal})),useQueryGetCurrencies=()=>{let{apiHostname:e}=useUniversalNavContext(),t=useQuery({queryKey:["getCurrencies"],queryFn:async()=>{let t=await fetch(`${e}/api/v4/currencies/rates`,{credentials:"include"});if(!t.ok)throw Error("Network response was not ok");let n=await t.json();return n.objects},select:formatCurrenciesData});return t},AlertBanner=e=>{let{Component:t,data:n}=useAlertBanner(),{data:i,isLoading:a,isError:o}=useQueryGetCurrencies();if(!t||a||o||!n||!i)return null;let s=i.find(e=>e.name===(null==n?void 0:n.currentAccount.currency));return(0,x.U)(t,{data:n,currency:s,layout:"banner",trackEvent:e.trackEvent})};var ep=n(52676),eh=n(99029),ef=n(3e3);let eg={root:y.iv`
display: grid;
grid-template-columns: 100%;
gap: 10px;
justify-items: center;
${ef.ZT.smallPrint3};
text-align: center;
@media screen and (min-width: 650px) {
gap: 20px;
}
`,title:y.iv`
color: ${eh.w.neutral800};
${ef.ZT.paragraph3Bold};
`,links:y.iv`
display: flex;
flex-wrap: wrap;
justify-content: center;
`,link:y.iv`
${ef.ZT.paragraph3}
// Increase hit size.
display: block;
padding: 0px;
margin: 0px 10px;
white-space: nowrap;
flex: none;
color: ${eh.w.neutral700};
cursor: pointer;
text-decoration: none;
&:hover,
&:focus {
color: ${eh.w.blue};
outline: none;
}
@media screen and (max-width: 768px) {
margin: 0px 6px;
}
`},em=["0–9",..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")],AlphabeticAppNav=({baseUrl:e="/find-apps/",title:t="Apps by Title"})=>{let{getFullyQualifiedURL:n}=useUniversalNavContext(),i=em.map(t=>{let i=`${e}/${t.toLowerCase()}`.replace("//","/").replace("–","-");return(0,x.U)("li",{key:t},(0,x.U)(W.r,{ariaLabel:`${t} — Apps beginning with ${t}`,color:null,css:eg.link,href:n(i)},t))});return(0,x.U)("section",{css:eg.root},(0,x.U)("h2",{css:eg.title},t),(0,x.U)("ul",{css:eg.links},i))};var ev=n(18672),ZapierLogo_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let eb=(0,G.B)("ZapierLogo",{root:{display:"block"}}),getLogo=e=>{var{variant:t}=e,n=ZapierLogo_rest(e,["variant"]);return"wordmark-horizontal-inverse"===t?(0,x.U)("svg",{css:eb.root,width:n.width,height:n.height,"data-testid":"ZapierLogo",viewBox:"0 0 244 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,x.U)("path",{d:"M57.1877 45.2253L57.1534 45.1166L78.809 25.2914V15.7391H44.0663V25.2914H64.8181L64.8524 25.3829L43.4084 45.2253V54.7775H79.1579V45.2253H57.1877Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M100.487 14.8297C96.4797 14.8297 93.2136 15.434 90.6892 16.6429C88.3376 17.6963 86.3568 19.4321 85.0036 21.6249C83.7091 23.8321 82.8962 26.2883 82.6184 28.832L93.1602 30.3135C93.5415 28.0674 94.3042 26.4754 95.4482 25.5373C96.7486 24.5562 98.3511 24.0605 99.9783 24.136C102.118 24.136 103.67 24.7079 104.634 25.8519C105.59 26.9959 106.076 28.5803 106.076 30.6681V31.7091H95.9401C90.7807 31.7091 87.0742 32.8531 84.8206 35.1411C82.5669 37.429 81.442 40.4492 81.4458 44.2014C81.4458 48.0452 82.5707 50.9052 84.8206 52.7813C87.0704 54.6574 89.8999 55.5897 93.3089 55.5783C97.5379 55.5783 100.791 54.1235 103.067 51.214C104.412 49.426 105.372 47.3793 105.887 45.2024H106.27L107.723 54.7546H117.275V30.5651C117.275 25.5659 115.958 21.6936 113.323 18.948C110.688 16.2024 106.409 14.8297 100.487 14.8297ZM103.828 44.6475C102.312 45.9116 100.327 46.5408 97.8562 46.5408C95.8199 46.5408 94.4052 46.1843 93.6121 45.4712C93.2256 45.1338 92.9182 44.7155 92.7116 44.246C92.505 43.7764 92.4043 43.2671 92.4166 42.7543C92.3941 42.2706 92.4702 41.7874 92.6403 41.3341C92.8104 40.8808 93.071 40.4668 93.4062 40.1174C93.7687 39.7774 94.1964 39.5145 94.6633 39.3444C95.1303 39.1743 95.6269 39.1006 96.1231 39.1278H106.093V39.7856C106.113 40.7154 105.919 41.6374 105.527 42.4804C105.134 43.3234 104.553 44.0649 103.828 44.6475Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M175.035 15.7391H163.75V54.7833H175.035V15.7391Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M241.666 15.7391C238.478 15.7391 235.965 16.864 234.127 19.1139C232.808 20.7307 231.805 23.1197 231.118 26.2809H230.787L229.311 15.7391H219.673V54.7775H230.958V34.7578C230.958 32.2335 231.549 30.2982 232.731 28.9521C233.914 27.606 236.095 26.933 239.275 26.933H243.559V15.7391H241.666Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M208.474 17.0147C205.839 15.4474 202.516 14.6657 198.504 14.6695C192.189 14.6695 187.247 16.4675 183.678 20.0634C180.109 23.6593 178.324 28.6166 178.324 34.9352C178.233 38.7553 179.067 42.5407 180.755 45.9689C182.3 49.0238 184.706 51.5592 187.676 53.2618C190.666 54.9892 194.222 55.8548 198.344 55.8586C201.909 55.8586 204.887 55.3095 207.278 54.2113C209.526 53.225 211.483 51.6791 212.964 49.7211C214.373 47.7991 215.42 45.6359 216.053 43.3377L206.329 40.615C205.92 42.1094 205.132 43.4728 204.041 44.5732C202.943 45.6714 201.103 46.2206 198.521 46.2206C195.451 46.2206 193.163 45.3416 191.657 43.5837C190.565 42.3139 189.878 40.5006 189.575 38.1498H216.201C216.31 37.0515 216.367 36.1306 216.367 35.387V32.9561C216.432 29.6903 215.757 26.4522 214.394 23.4839C213.118 20.7799 211.054 18.5248 208.474 17.0147ZM198.178 23.9758C202.754 23.9758 205.349 26.2275 205.963 30.731H189.775C190.032 29.2284 190.655 27.8121 191.589 26.607C193.072 24.8491 195.268 23.972 198.178 23.9758Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M169.515 0.00366253C168.666 -0.0252113 167.82 0.116874 167.027 0.421484C166.234 0.726094 165.511 1.187 164.899 1.77682C164.297 2.3723 163.824 3.08658 163.512 3.87431C163.2 4.66204 163.055 5.50601 163.086 6.35275C163.056 7.20497 163.201 8.05433 163.514 8.84781C163.826 9.64129 164.299 10.3619 164.902 10.9646C165.505 11.5673 166.226 12.0392 167.02 12.3509C167.814 12.6626 168.663 12.8074 169.515 12.7762C170.362 12.8082 171.206 12.6635 171.994 12.3514C172.782 12.0392 173.496 11.5664 174.091 10.963C174.682 10.3534 175.142 9.63077 175.446 8.83849C175.75 8.04621 175.89 7.20067 175.859 6.35275C175.898 5.50985 175.761 4.66806 175.456 3.88115C175.151 3.09424 174.686 2.37951 174.09 1.78258C173.493 1.18565 172.779 0.719644 171.992 0.414327C171.206 0.109011 170.364 -0.0288946 169.521 0.00938803L169.515 0.00366253Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M146.201 14.6695C142.357 14.6695 139.268 15.8764 136.935 18.2902C135.207 20.0786 133.939 22.7479 133.131 26.2981H132.771L131.295 15.7563H121.657V66H132.942V45.3054H133.354C133.698 46.6852 134.181 48.0267 134.795 49.3093C135.75 51.3986 137.316 53.1496 139.286 54.3314C141.328 55.446 143.629 56.0005 145.955 55.9387C150.68 55.9387 154.277 54.0988 156.748 50.419C159.219 46.7392 160.455 41.6046 160.455 35.0153C160.455 28.6509 159.259 23.6689 156.869 20.0691C154.478 16.4694 150.922 14.6695 146.201 14.6695ZM147.345 42.9602C146.029 44.8668 143.97 45.8201 141.167 45.8201C140.012 45.8735 138.86 45.6507 137.808 45.1703C136.755 44.6898 135.832 43.9656 135.116 43.0574C133.655 41.2233 132.927 38.7122 132.931 35.5243V34.7807C132.931 31.5432 133.659 29.0646 135.116 27.3448C136.572 25.625 138.59 24.7747 141.167 24.7937C144.02 24.7937 146.092 25.6994 147.385 27.5107C148.678 29.322 149.324 31.8483 149.324 35.0896C149.332 38.4414 148.676 41.065 147.356 42.9602H147.345Z",fill:"#FFFDF9"}),(0,x.U)("path",{d:"M39.0441 45.2253H0V54.789H39.0441V45.2253Z",fill:"#FF4F00"})):(0,x.U)("svg",{css:eb.root,width:n.width,height:n.height,"data-testid":"ZapierLogo",viewBox:"0 0 244 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,x.U)("path",{d:"M57.1877 45.2253L57.1534 45.1166L78.809 25.2914V15.7391H44.0663V25.2914H64.8181L64.8524 25.3829L43.4084 45.2253V54.7775H79.1579V45.2253H57.1877Z",fill:"#201515"}),(0,x.U)("path",{d:"M100.487 14.8297C96.4797 14.8297 93.2136 15.434 90.6892 16.6429C88.3376 17.6963 86.3568 19.4321 85.0036 21.6249C83.7091 23.8321 82.8962 26.2883 82.6184 28.832L93.1602 30.3135C93.5415 28.0674 94.3042 26.4754 95.4482 25.5373C96.7486 24.5562 98.3511 24.0605 99.9783 24.136C102.118 24.136 103.67 24.7079 104.634 25.8519C105.59 26.9959 106.076 28.5803 106.076 30.6681V31.7091H95.9401C90.7807 31.7091 87.0742 32.8531 84.8206 35.1411C82.5669 37.429 81.442 40.4492 81.4458 44.2014C81.4458 48.0452 82.5707 50.9052 84.8206 52.7813C87.0704 54.6574 89.8999 55.5897 93.3089 55.5783C97.5379 55.5783 100.791 54.1235 103.067 51.214C104.412 49.426 105.372 47.3793 105.887 45.2024H106.27L107.723 54.7546H117.275V30.5651C117.275 25.5659 115.958 21.6936 113.323 18.948C110.688 16.2024 106.409 14.8297 100.487 14.8297ZM103.828 44.6475C102.312 45.9116 100.327 46.5408 97.8562 46.5408C95.8199 46.5408 94.4052 46.1843 93.6121 45.4712C93.2256 45.1338 92.9182 44.7155 92.7116 44.246C92.505 43.7764 92.4043 43.2671 92.4166 42.7543C92.3941 42.2706 92.4702 41.7874 92.6403 41.3341C92.8104 40.8808 93.071 40.4668 93.4062 40.1174C93.7687 39.7774 94.1964 39.5145 94.6633 39.3444C95.1303 39.1743 95.6269 39.1006 96.1231 39.1278H106.093V39.7856C106.113 40.7154 105.919 41.6374 105.527 42.4804C105.134 43.3234 104.553 44.0649 103.828 44.6475Z",fill:"#201515"}),(0,x.U)("path",{d:"M175.035 15.7391H163.75V54.7833H175.035V15.7391Z",fill:"#201515"}),(0,x.U)("path",{d:"M241.666 15.7391C238.478 15.7391 235.965 16.864 234.127 19.1139C232.808 20.7307 231.805 23.1197 231.119 26.2809H230.787L229.311 15.7391H219.673V54.7775H230.959V34.7578C230.959 32.2335 231.55 30.2982 232.732 28.9521C233.914 27.606 236.095 26.933 239.275 26.933H243.559V15.7391H241.666Z",fill:"#201515"}),(0,x.U)("path",{d:"M208.473 17.0147C205.839 15.4474 202.515 14.6657 198.504 14.6695C192.189 14.6695 187.247 16.4675 183.678 20.0634C180.108 23.6593 178.324 28.6166 178.324 34.9352C178.233 38.7553 179.067 42.5407 180.755 45.9689C182.3 49.0238 184.706 51.5592 187.676 53.2618C190.665 54.9892 194.221 55.8548 198.344 55.8586C201.909 55.8586 204.887 55.3095 207.278 54.2113C209.526 53.225 211.483 51.6791 212.964 49.7211C214.373 47.7991 215.42 45.6359 216.052 43.3377L206.329 40.615C205.919 42.1094 205.131 43.4728 204.041 44.5732C202.942 45.6714 201.102 46.2206 198.521 46.2206C195.451 46.2206 193.163 45.3416 191.657 43.5837C190.564 42.3139 189.878 40.5006 189.575 38.1498H216.201C216.31 37.0515 216.367 36.1306 216.367 35.387V32.9561C216.431 29.6903 215.757 26.4522 214.394 23.4839C213.118 20.7799 211.054 18.5248 208.473 17.0147ZM198.178 23.9758C202.754 23.9758 205.348 26.2275 205.962 30.731H189.775C190.032 29.2284 190.655 27.8121 191.588 26.607C193.072 24.8491 195.268 23.972 198.178 23.9758Z",fill:"#201515"}),(0,x.U)("path",{d:"M169.515 0.00366253C168.666 -0.0252113 167.82 0.116874 167.027 0.421484C166.234 0.726094 165.511 1.187 164.899 1.77682C164.297 2.3723 163.824 3.08658 163.512 3.87431C163.2 4.66204 163.055 5.50601 163.086 6.35275C163.056 7.20497 163.201 8.05433 163.514 8.84781C163.826 9.64129 164.299 10.3619 164.902 10.9646C165.505 11.5673 166.226 12.0392 167.02 12.3509C167.814 12.6626 168.663 12.8074 169.515 12.7762C170.362 12.8082 171.206 12.6635 171.994 12.3514C172.782 12.0392 173.496 11.5664 174.091 10.963C174.682 10.3534 175.142 9.63077 175.446 8.83849C175.75 8.04621 175.89 7.20067 175.859 6.35275C175.898 5.50985 175.761 4.66806 175.456 3.88115C175.151 3.09424 174.686 2.37951 174.09 1.78258C173.493 1.18565 172.779 0.719644 171.992 0.414327C171.206 0.109011 170.364 -0.0288946 169.521 0.00938803L169.515 0.00366253Z",fill:"#201515"}),(0,x.U)("path",{d:"M146.201 14.6695C142.357 14.6695 139.268 15.8764 136.935 18.2902C135.207 20.0786 133.939 22.7479 133.131 26.2981H132.771L131.295 15.7563H121.657V66H132.942V45.3054H133.354C133.698 46.6852 134.181 48.0267 134.795 49.3093C135.75 51.3986 137.316 53.1496 139.286 54.3314C141.328 55.446 143.629 56.0005 145.955 55.9387C150.68 55.9387 154.277 54.0988 156.748 50.419C159.219 46.7392 160.455 41.6046 160.455 35.0153C160.455 28.6509 159.259 23.6689 156.869 20.0691C154.478 16.4694 150.922 14.6695 146.201 14.6695ZM147.345 42.9602C146.029 44.8668 143.97 45.8201 141.167 45.8201C140.012 45.8735 138.86 45.6507 137.808 45.1703C136.755 44.6898 135.832 43.9656 135.116 43.0574C133.655 41.2233 132.927 38.7122 132.931 35.5243V34.7807C132.931 31.5432 133.659 29.0646 135.116 27.3448C136.572 25.625 138.59 24.7747 141.167 24.7937C144.02 24.7937 146.092 25.6994 147.385 27.5107C148.678 29.322 149.324 31.8483 149.324 35.0896C149.332 38.4414 148.676 41.065 147.356 42.9602H147.345Z",fill:"#201515"}),(0,x.U)("path",{d:"M39.0441 45.2253H0V54.789H39.0441V45.2253Z",fill:"#FF4F00"}))},ZapierLogo=({color:e="zapier",height:t=70,variant:n="wordmark-horizontal",width:i=279})=>getLogo({color:e,height:t,variant:n,width:i}),ey={root:y.iv`
display: flex;
flex-wrap: wrap;
align-items: center;
column-gap: 5px;
cursor: default;
user-select: none;
`,cell:y.iv`
flex-grow: 1;
flex-shrink: 0;
text-align: center;
display: flex;
flex-direction: row;
align-items: center;
`},Branding=()=>(0,x.U)("div",{css:ey.root,"data-testid":"branding"},(0,x.U)(ev.T,null,"Zapier"),(0,x.U)("div",{"aria-hidden":!0,css:ey.cell},(0,x.U)(ZapierLogo,{width:81,height:22}))),ex={flexDirection:"--UniversalFooter__HelpfulLinks-flex-direction",justifyContent:"--UniversalFooter__HelpfulLinks-justify-content"},eC={root:y.iv`
display: flex;
flex-direction: var(${ex.flexDirection}, column);
justify-content: var(${ex.justifyContent}, center);
text-align: center;
flex-wrap: wrap;
column-gap: 12.5px;
row-gap: 10px;
`,link:y.iv`
${ef.ZT.paragraph3Semibold};
color: ${eh.w.neutral700} !important;
// For browsers that don't yet support Flexbox gap
padding: 0 5px;
white-space: nowrap;
cursor: pointer;
text-decoration: none;
&:hover,
&:focus {
color: ${eh.w.blue} !important;
outline: none;
}
`},HelpfulLinks=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext(),{links:n=[{text:"Pricing",href:"/pricing"},{text:"Help",href:"/help"},{text:"Developer Platform",href:"/platform"},{text:"Press",href:"/press"},{text:"Jobs",href:"/jobs/"},{text:"Zapier for Companies",href:"/teams-companies"},{text:"Templates",href:"/templates"}]}=e,i=n.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(W.r,{color:null,css:eC.link,href:t(e.href)},e.text)));return(0,x.U)("ul",{css:eC.root},i)},eU={color:eh.w.zapier,svg:'<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M576 1344q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm512 123q2 28-17 48-18 21-47 21H889q-25 0-43-16.5t-20-41.5q-22-229-184.5-391.5T250 902q-25-2-41.5-20T192 839V704q0-29 21-47 17-17 43-17h5q160 13 306 80.5T826 902q114 113 181.5 259t80.5 306zm512 2q2 27-18 47-18 20-46 20h-143q-26 0-44.5-17.5T1329 1476q-12-215-101-408.5t-231.5-336-336-231.5T252 398q-25-1-42.5-19.5T192 335V192q0-28 20-46 18-18 44-18h3q262 13 501.5 120T1186 542q187 186 294 425.5t120 501.5z"/></svg>',href:"/blog/feeds/latest/",title:"Subscribe to our blog"},ew={root:y.iv`
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
`,cell:y.iv`
flex-grow: 1;
flex-shrink: 0;
text-align: center;
`,title:y.iv`
${ef.ZT.smallPrint1Semibold};
color: ${eh.w.neutral700};
white-space: nowrap;
`,icons:y.iv`
display: flex;
width: min-content;
margin: 0 auto;
`,iconItem:y.iv`
margin-right: 10px;
&:last-of-type {
margin-right: 0;
}
`,icon:e=>y.iv`
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 100%;
background-color: ${eh.w.neutral500};
&:hover,
&:focus {
background-color: ${e.color};
outline: none;
}
`,iconSvg:y.iv`
width: 16px;
height: 16px;
fill: ${eh.w.neutral100};
> svg {
width: inherit;
height: inherit;
}
`},SocialIcon=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext();return(0,x.U)(W.r,{ariaLabel:e.title,title:e.title,color:null,css:ew.icon(e),"data-testid":e.title,href:t(e.href)},(0,x.U)("span",{css:ew.iconSvg,dangerouslySetInnerHTML:{__html:e.svg}}))},ek=[{color:"#3b5998",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 264 512"><path d="M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"/></svg>',href:"http://www.facebook.com/ZapierApp?utm_source=zapier.com&utm_medium=referral&utm_campaign=zapier",title:"Follow us on Facebook"},{color:"#0976b4",svg:'<svg viewBox="0 0 44 40" xmlns="http://www.w3.org/2000/svg"><path d="M44 40h-9.725V25.938c0-3.68-1.52-6.193-4.866-6.193-2.558 0-3.981 1.696-4.643 3.33-.249.586-.21 1.403-.21 2.22V40h-9.634s.124-24.909 0-27.173h9.634v4.265c.57-1.865 3.648-4.526 8.56-4.526C39.211 12.566 44 16.474 44 24.89V40zM5.18 9.428h-.063C2.013 9.428 0 7.351 0 4.718 0 2.034 2.072 0 5.239 0c3.164 0 5.11 2.029 5.171 4.71 0 2.633-2.007 4.718-5.23 4.718zm-4.07 3.399h8.576V40H1.11V12.827z" fill-rule="evenodd"/></svg>',href:"http://www.linkedin.com/company/zapier/?utm_source=zapier.com&utm_medium=referral&utm_campaign=zapier",title:"Follow us on LinkedIn"},eU,{color:"#00aced",svg:'<svg viewBox="0 0 48 40" xmlns="http://www.w3.org/2000/svg"><path d="M48 4.735a19.235 19.235 0 0 1-5.655 1.59A10.076 10.076 0 0 0 46.675.74a19.395 19.395 0 0 1-6.257 2.447C38.627 1.225 36.066 0 33.231 0c-5.435 0-9.844 4.521-9.844 10.098 0 .791.085 1.56.254 2.3C15.456 11.974 8.2 7.96 3.34 1.842a10.281 10.281 0 0 0-1.33 5.083c0 3.502 1.738 6.593 4.38 8.405a9.668 9.668 0 0 1-4.462-1.26v.124c0 4.894 3.395 8.977 7.903 9.901a9.39 9.39 0 0 1-2.595.356 9.523 9.523 0 0 1-1.854-.18c1.254 4.01 4.888 6.932 9.199 7.01-3.37 2.71-7.618 4.325-12.23 4.325-.795 0-1.58-.047-2.35-.139C4.359 38.327 9.537 40 15.096 40c18.115 0 28.019-15.385 28.019-28.73 0-.439-.009-.878-.026-1.308A20.211 20.211 0 0 0 48 4.735" fill-rule="evenodd"/></svg>',href:"https://twitter.com/?utm_source=zapier.com&utm_medium=referral&utm_campaign=zapier#!/zapier",title:"Follow @zapier on Twitter"},{color:"#e52d27",svg:'<svg viewBox="0 0 48 34" xmlns="http://www.w3.org/2000/svg"><path d="M19.044 23.27l-.002-13.582 12.97 6.814-12.968 6.768zM47.52 7.334s-.47-3.33-1.908-4.798C43.786.61 41.74.601 40.803.49 34.086 0 24.011 0 24.011 0h-.022S13.914 0 7.197.49c-.939.11-2.983.12-4.81 2.045C.948 4.003.48 7.334.48 7.334S0 11.247 0 15.158v3.668c0 3.912.48 7.823.48 7.823s.468 3.331 1.907 4.798c1.827 1.926 4.225 1.866 5.293 2.067C11.52 33.885 24 34 24 34s10.086-.015 16.803-.505c.938-.113 2.983-.122 4.809-2.048 1.438-1.467 1.908-4.798 1.908-4.798s.48-3.91.48-7.823v-3.668c0-3.911-.48-7.824-.48-7.824z" fill-rule="evenodd"/></svg>',href:"http://www.youtube.com/user/ZapierApp/videos?utm_source=zapier.com&utm_medium=referral&utm_campaign=zapier",title:"See helpful Zapier videos on Youtube"}],SocialIcons=({icons:e=ek,title:t="Follow us"})=>{let n=e.map(e=>(0,x.U)("li",{key:e.title,css:ew.iconItem},(0,x.U)(SocialIcon,Object.assign({},e))));return(0,x.U)("div",{css:ew.root},(0,x.U)("div",{css:ew.cell},(0,x.U)("h2",{css:ew.title},t)),(0,x.U)("div",{css:ew.cell},(0,x.U)("ul",{css:ew.icons},n)))},eS={justifyContent:"--UniversalFooter__HelpfulLinks-justify-content"},eO={root:y.iv`
${ef.ZT.smallPrint1Semibold};
color: ${eh.w.neutral700};
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: var(${eS.justifyContent}, center);
row-gap: 10px;
`,copyright:y.iv`
margin-right: 10px;
`,links:y.iv`
display: inherit;
align-items: inherit;
justify-content: inherit;
white-space: nowrap;
`,linkItem:y.iv`
border-left: 1px solid ${eh.w.neutral400};
&:first-of-type {
border-left: none;
}
`,link:(e=!1)=>y.iv`
// Increase hit area and separate.
padding: ${e?"0":"5px"} 10px;
color: ${eh.w.neutral700} !important;
text-decoration: none;
&:hover,
&:focus {
color: ${eh.w.blue} !important;
outline: none;
}
`},ZapierMeta=({links:e=[{text:"Manage cookies",className:"ot-sdk-show-settings",style:{display:"none"}},{text:"Legal",href:"/legal"},{text:"Privacy",href:"/privacy"}]})=>{let{getFullyQualifiedURL:t}=useUniversalNavContext(),n=e.map(e=>{let n=e.href?(0,x.U)(W.r,{css:eO.link(!1),color:null,href:t(e.href)},e.text):(0,x.U)("button",{className:e.className,css:eO.link(!0),style:e.style,type:"button"},e.text);return(0,x.U)("li",{key:e.text,css:eO.linkItem},n)});return(0,x.U)("div",{css:eO.root},(0,x.U)("p",{css:eO.copyright},"\xa9 ",new Date().getFullYear()," Zapier Inc."),(0,x.U)("ul",{css:eO.links},n))},eT=y.iv`
display: grid;
grid-template-columns: 100%;
row-gap: ${"1px"};
`,eL=y.iv`
display: block;
// Increase hit state
padding: 3px 0;
cursor: pointer;
color: ${eh.w.neutral700};
text-decoration: none;
&:hover,
&:focus {
color: ${eh.w.blue};
outline: none;
}
`,e_=y.iv`
display: block;
width: 100%;
margin-bottom: ${"1px"};
${eL};
text-decoration: underline;
// Dynamically change content when the details
// element is opened and closed.
details:not([open]) &::before {
content: 'Show more';
}
details[open] &::before {
content: 'Show less';
}
`,eA={root:y.iv``,title:y.iv`
${ef.ZT.paragraph3};
font-weight: 700;
color: ${eh.w.neutral700};
margin-bottom: 10px;
`,links:y.iv`
${ef.ZT.paragraph3};
${eT};
// Prevent users from accidentally selecting
// text when interacting with details. I don't
// see a need for them to be able to copy the
// link text to their clipboards.
user-select: none;
`,linksList:y.iv`
${eT};
`,link:y.iv`
${eL};
`,moreLinks:y.iv`
position: relative;
`,moreLinksInner:y.iv`
${eT};
`,moreLinksToggle:y.iv`
// Hides default icon on details element
&::-webkit-details-marker {
display: none;
}
${e_};
// When details is open, the faux toggle will render
// (so that it renders at the bottom of the list),
// and the summary will be hidden but render over top
// of it so it's still clickable.
details[open] > & {
position: absolute;
bottom: 0;
opacity: 0;
}
`,moreLinksFauxToggle:y.iv`
${e_};
`},LinksList=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext(),n=e.links.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(W.r,{css:eA.link,color:null,href:t(e.href)},e.text)));return(0,x.U)("ul",{css:eA.linksList},n)},MoreLinks=e=>(0,x.U)("details",{css:eA.moreLinks,open:e.isExpanded},(0,x.U)("summary",{"aria-label":"Toggle more links",css:eA.moreLinksToggle,onClick:e.onToggleExpanded}),(0,x.U)("div",{css:eA.moreLinksInner},(0,x.U)(LinksList,{links:e.links}),(0,x.U)("span",{"aria-hidden":!0,css:eA.moreLinksFauxToggle}))),LinksSection=({links:e,onToggleExpanded:t,title:n,initiallyShownCount:i=5,isExpanded:a})=>{let o=e.length>i&&(0,x.U)(MoreLinks,{links:e.slice(i),isExpanded:a,onToggleExpanded:t});return(0,x.U)("section",{css:eA.root},(0,x.U)("h2",{css:eA.title},n),(0,x.U)("div",{css:eA.links},(0,x.U)(LinksList,{links:e.slice(0,i)}),o))},eP={title:"Top Searches",links:[{text:"Slack Integrations",href:"/apps/slack/integrations"},{text:"Salesforce Integrations",href:"/apps/salesforce/integrations"},{text:"HubSpot CRM Integrations",href:"/apps/hubspot-crm/integrations"},{text:"PayPal Integrations",href:"/apps/paypal/integrations"},{text:"Asana Integrations",href:"/apps/asana/integrations"},{text:"Stripe Integrations",href:"/apps/stripe/integrations"},{text:"GitHub Integrations",href:"/apps/github/integrations"},{text:"Trello Integrations",href:"/apps/trello/integrations"},{text:"Todoist Integrations",href:"/apps/todoist/integrations"},{text:"Xero Integrations",href:"/apps/xero/integrations"},{text:"Zapier Integrations",href:"/apps/zapier/integrations"},{text:"Facebook Groups Integrations",href:"/apps/facebook-groups/integrations"},{text:"JIRA Integrations",href:"/apps/jira/integrations"},{text:"Pipedrive Integrations",href:"/apps/pipedrive/integrations"},{text:"Zendesk Integrations",href:"/apps/zendesk/integrations"},{text:"Google Analytics Integrations",href:"/apps/google-analytics/integrations"},{text:"HipChat Integrations",href:"/apps/hipchat/integrations"},{text:"MailChimp Integrations",href:"/apps/mailchimp/integrations"},{text:"Shopify Integrations",href:"/apps/shopify/integrations"},{text:"Intercom Integrations",href:"/apps/intercom/integrations"},{text:"GitLab Integrations",href:"/apps/gitlab/integrations"},{text:"Magento 2.X Integrations",href:"/apps/magento-v2/integrations"},{text:"Google Drive Integrations",href:"/apps/google-drive/integrations"},{text:"WooCommerce Integrations",href:"/apps/woocommerce/integrations"},{text:"Basecamp 3 Integrations",href:"/apps/basecamp3/integrations"}]},eI={title:"Popular Apps",links:[{text:"Dropbox",href:"/apps/dropbox/integrations"},{text:"Google Sheets",href:"/apps/google-sheets/integrations"},{text:"DocuSign",href:"/apps/docusign/integrations"},{text:"WordPress",href:"/apps/wordpress/integrations"},{text:"Office 365",href:"/apps/office-365/integrations"},{text:"QuickBooks Online",href:"/apps/quickbooks/integrations"},{text:"Mixpanel",href:"/apps/mixpanel/integrations"},{text:"RingCentral",href:"/apps/ringcentral/integrations"},{text:"Zoho CRM",href:"/apps/zoho-crm/integrations"},{text:"HubSpot",href:"/apps/hubspot/integrations"},{text:"Microsoft Teams",href:"/apps/microsoft-teams/integrations"},{text:"Eventbrite",href:"/apps/eventbrite/integrations"},{text:"Box",href:"/apps/box/integrations"},{text:"Evernote Business",href:"/apps/evernote-business/integrations"},{text:"LinkedIn",href:"/apps/linkedin/integrations"},{text:"Marketo",href:"/apps/marketo/integrations"},{text:"SugarCRM",href:"/apps/sugarcrm/integrations"},{text:"Twilio",href:"/apps/twilio/integrations"},{text:"Infusionsoft",href:"/apps/infusionsoft/integrations"},{text:"Google Forms",href:"/apps/google-forms/integrations"},{text:"SurveyMonkey",href:"/apps/surveymonkey/integrations"},{text:"Campaign Monitor",href:"/apps/campaign-monitor/integrations"},{text:"Pardot",href:"/apps/pardot/integrations"},{text:"Microsoft Dynamics CRM",href:"/apps/microsoft-dynamics/integrations"}]},eE={title:"Trending Apps",links:[{text:"Twitch",href:"/apps/twitch/integrations"},{text:"Printful",href:"/apps/printful/integrations"},{text:"Microsoft To-Do",href:"/apps/microsoft-todo/integrations"},{text:"Microsoft Outlook",href:"/apps/microsoft-outlook/integrations"},{text:"Medium",href:"/apps/medium/integrations"},{text:"Unbounce",href:"/apps/unbounce/integrations"},{text:"Freshdesk",href:"/apps/freshdesk/integrations"},{text:"Airtable",href:"/apps/airtable/integrations"},{text:"Expensify",href:"/apps/expensify/integrations"},{text:"Insightly",href:"/apps/insightly/integrations"},{text:"PagerDuty",href:"/apps/pagerduty/integrations"},{text:"Podio",href:"/apps/podio/integrations"},{text:"Wunderlist",href:"/apps/wunderlist/integrations"},{text:"Square",href:"/apps/square/integrations"},{text:"Datadog",href:"/apps/datadog/integrations"},{text:"Toggl",href:"/apps/toggl/integrations"},{text:"ClickFunnels",href:"/apps/clickfunnels/integrations"},{text:"Rocket.Chat",href:"/apps/rocketchat/integrations"},{text:"Firebase",href:"/apps/firebase/integrations"},{text:"Cisco Spark",href:"/apps/cisco-spark/integrations"},{text:"MINDBODY",href:"/apps/mindbody/integrations"},{text:"Harvest",href:"/apps/harvest/integrations"},{text:"Smartsheet",href:"/apps/smartsheet/integrations"},{text:"Teamwork Desk",href:"/apps/teamwork-desk/integrations"},{text:"Yammer",href:"/apps/yammer/integrations"},{text:"Typeform",href:"/apps/typeform/integrations"},{text:"Autotask",href:"/apps/autotask/integrations"},{text:"Wrike",href:"/apps/wrike/integrations"},{text:"Help Scout",href:"/apps/help-scout/integrations"},{text:"Braintree",href:"/apps/braintree/integrations"}]},eM={title:"Top Apps by Category",links:[{text:"Project Management",href:"/apps/categories/project-management"},{text:"Calendar",href:"/apps/categories/calendar"},{text:"Email",href:"/apps/categories/email"},{text:"CRM (Customer Relationship Management)",href:"/apps/categories/crm"},{text:"Marketing Automation",href:"/apps/categories/marketing"},{text:"Notes",href:"/apps/categories/notes"},{text:"Accounting",href:"/apps/categories/accounting"},{text:"Social Media Marketing",href:"/apps/categories/social-marketing"},{text:"Online Courses",href:"/apps/categories/education"},{text:"Contact Management",href:"/apps/categories/contacts"},{text:"Forms & Surveys",href:"/apps/categories/forms"},{text:"Scheduling & Booking",href:"/apps/categories/scheduling"},{text:"Task Management",href:"/apps/categories/todo-lists"},{text:"Databases",href:"/apps/categories/databases"},{text:"Call Tracking",href:"/apps/categories/call-tracking"},{text:"Documents",href:"/apps/categories/documents"},{text:"Fax",href:"/apps/categories/fax"},{text:"Files",href:"/apps/categories/files"},{text:"Customer Support",href:"/apps/categories/customer-support"},{text:"Team Collaboration",href:"/apps/categories/team-collaboration"},{text:"Spreadsheets",href:"/apps/categories/spreadsheets"},{text:"Website Builders",href:"/apps/categories/cms"},{text:"Ecommerce",href:"/apps/categories/ecommerce"},{text:"Event Management",href:"/apps/categories/event-management"}]},eR={title:"Our Best Content",links:[{text:"Best Video Conferencing Apps",href:"/blog/best-video-conferencing-apps"},{text:"Best Email Apps",href:"/blog/best-email-app/"},{text:"Best CRM Apps",href:"/learn/crm/best-crm-app/"},{text:"Best Note Taking Apps",href:"/blog/best-note-taking-apps/"},{text:"Best Calendar Apps",href:"/blog/best-calendar-apps/"},{text:"Best Meeting Scheduler Apps",href:"/blog/best-meeting-scheduler-apps/"},{text:"Best Todo List Apps",href:"/blog/best-todo-list-apps/"},{text:"Best Powerpoint Alternatives",href:"/blog/best-powerpoint-alternatives/"},{text:"Best Spreadsheet & Excel Alternatives",href:"/blog/best-spreadsheet-excel-alternative/"},{text:"Best Time Tracking Apps",href:"/blog/best-time-tracking-apps/"},{text:"Best eCommerce Shopping Cart Software",href:"/blog/best-ecommerce-shopping-cart-software/"},{text:"Best Survey Apps",href:"/learn/forms-surveys/best-survey-apps/"},{text:"Best Online Form Builder Software",href:"/learn/forms-surveys/best-online-form-builder-software/"},{text:"Best Digital Signature Apps",href:"/blog/best-digital-signature-apps/"},{text:"Best Team Chat App",href:"/blog/best-team-chat-app/"},{text:"Workato vs. Zapier",href:"/l/workato-vs-zapier/"}]},ej="(min-width: 650px)",eF="(min-width: 980px)",eD={root:y.iv`
background-color: ${eh.w.neutral100};
padding: 30px;
@media ${"(max-width: 980px)"} {
padding: 20px;
}
`,simplifiedNav:y.iv`
display: flex;
justify-content: center;
justify-items: center;
`,grid:e=>y.iv`
display: grid;
grid-template-rows: auto;
grid-template-columns: 100%;
grid-template-areas:
${e.shouldRenderAlphabetNav?'"alphabetNav"':""}
${e.shouldRenderSeoLinks?'"seoLinks"':""}
"helpfulLinks"
"socialIcons"
"branding"
"zapierMeta";
justify-items: center;
align-items: center;
gap: 30px;
max-width: 1200px;
margin: 0 auto;
@media ${ej} {
grid-template-columns: max-content 1fr;
grid-template-areas:
${e.shouldRenderAlphabetNav?'"alphabetNav alphabetNav"':""}
${e.shouldRenderSeoLinks?'"seoLinks seoLinks"':""}
"helpfulLinks helpfulLinks"
"socialIcons socialIcons"
"branding zapierMeta";
}
@media ${eF} {
grid-template-columns: max-content 1fr;
grid-template-areas:
${e.shouldRenderAlphabetNav?'"alphabetNav alphabetNav"':""}
${e.shouldRenderSeoLinks?'"seoLinks seoLinks"':""}
"socialIcons helpfulLinks"
"branding zapierMeta";
}
`,branding:y.iv`
grid-area: branding;
@media ${ej} {
justify-self: start;
}
`,helpfulLinks:y.iv`
grid-area: helpfulLinks;
width: 100%;
display: flex;
justify-content: center;
@media ${ej} {
${ex.flexDirection}: row;
}
@media ${eF} {
justify-content: flex-end;
${ex.justifyContent}: flex-end;
}
`,alphabetNav:y.iv`
grid-area: alphabetNav;
@media ${ej} {
max-width: none;
}
`,seoLinks:y.iv`
grid-area: seoLinks;
width: 100%;
`,socialIcons:y.iv`
grid-area: socialIcons;
@media ${eF} {
justify-self: start;
}
`,zapierMeta:y.iv`
grid-area: zapierMeta;
@media ${ej} {
justify-self: end;
${eS.justifyContent}: flex-end;
}
`,linksSections:y.iv`
display: grid;
grid-template-columns: 100%;
text-align: center;
column-gap: 10px;
row-gap: 20px;
@media (min-width: 420px) {
text-align: left;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
`},LinksSections=e=>{let[t,n]=(0,C.useState)(!1),toggleAreSectionsExpanded=()=>{n(!t)};return(0,x.U)("div",{css:eD.linksSections},e.sections.map(e=>(0,x.U)(LinksSection,{key:e.title+t,title:e.title,links:e.links,isExpanded:t,onToggleExpanded:toggleAreSectionsExpanded})))},UniversalFooter=e=>{let t=e.shouldRenderAlphabetNav&&(0,x.U)("div",{css:eD.alphabetNav},(0,x.U)(AlphabeticAppNav,null)),n=e.shouldRenderSeoLinks&&(0,x.U)("div",{css:eD.seoLinks},(0,x.U)(LinksSections,{sections:[eP,eI,eE,eM,eR]}));return(0,x.U)("footer",{css:eD.root,role:"contentinfo","data-testid":"universalFooter"},e.showSimplifiedFooter?(0,x.U)("div",{css:eD.simplifiedNav},(0,x.U)(ZapierMeta,{links:[{text:"Legal",href:"/legal"},{text:"Privacy",href:"/privacy"},{text:"Manage cookies",className:"ot-sdk-show-settings",style:{display:"none"}}]})):(0,x.U)("div",{css:eD.grid(e)},(0,x.U)("div",{css:eD.helpfulLinks},(0,x.U)(HelpfulLinks,null)),t,n,(0,x.U)("div",{css:eD.socialIcons},(0,x.U)(SocialIcons,null)),(0,x.U)("div",{css:eD.branding},(0,x.U)(Branding,null)),(0,x.U)("div",{css:eD.zapierMeta},(0,x.U)(ZapierMeta,null))))},eB=console;let Removable=class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:U?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}};let Query=class Query extends Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||eB,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,i=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let n=replaceData(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(noop).catch(noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,i,a,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let s=function(){if("function"==typeof AbortController)return new AbortController}(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};addSignalProperty(l);let u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};addSignalProperty(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=u.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(o=u.fetchOptions)?void 0:o.meta});let onError=e=>{if(isCancelledError(e)&&e.silent||this.dispatch({type:"error",error:e}),!isCancelledError(e)){var t,n,i,a;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(i=(a=this.cache.config).onSettled)||i.call(a,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=createRetryer({fn:u.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,i,a;if(void 0===e){onError(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(i=(a=this.cache.config).onSettled)||i.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,i;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let a=e.error;if(isCancelledError(a)&&a.revert&&this.revertState)return{...this.revertState};return{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),w.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}};let QueryCache=class QueryCache extends Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;let a=t.queryKey,o=null!=(i=t.queryHash)?i:hashQueryKeyByOptions(a,t),s=this.get(o);return s||(s=new Query({cache:this,logger:e.getLogger(),queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){w.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=parseFilterArgs(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>matchQuery(n,e))}findAll(e,t){let[n]=parseFilterArgs(e,t);return Object.keys(n).length>0?this.queries.filter(e=>matchQuery(n,e)):this.queries}notify(e){w.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){w.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){w.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}};let Mutation=class Mutation extends Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||eB,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,i,a,o,s,l,u,c,d,p,h,f,g,m,v,b,y,x;let C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,h,this.state.variables,this.state.context,this)),await (null==(n=(i=this.options).onSuccess)?void 0:n.call(i,h,this.state.variables,this.state.context)),await (null==(a=(o=this.mutationCache.config).onSettled)?void 0:a.call(o,h,null,this.state.variables,this.state.context,this)),await (null==(s=(l=this.options).onSettled)?void 0:s.call(l,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),await (null==(g=(m=this.options).onError)?void 0:g.call(m,e,this.state.variables,this.state.context)),await (null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await (null==(y=(x=this.options).onSettled)?void 0:y.call(x,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),w.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}};let MutationCache=class MutationCache extends Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let i=new Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){w.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>matchMutation(e,t))}findAll(e){return this.mutations.filter(t=>matchMutation(e,t))}notify(e){w.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return w.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(noop)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}};function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}let e$=new class{constructor(e={}){this.queryCache=e.queryCache||new QueryCache,this.mutationCache=e.mutationCache||new MutationCache,this.logger=e.logger||eB,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=k.subscribe(()=>{k.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=O.subscribe(()=>{O.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=parseFilterArgs(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let i=parseQueryArgs(e,t,n),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let i=this.queryCache.find(e),a=null==i?void 0:i.state.data,o="function"==typeof t?t(a):t;if(void 0===o)return;let s=parseQueryArgs(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return w.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=parseFilterArgs(e,t),i=this.queryCache;w.batch(()=>{i.findAll(n).forEach(e=>{i.remove(e)})})}resetQueries(e,t,n){let[i,a]=parseFilterArgs(e,t,n),o=this.queryCache,s={type:"active",...i};return w.batch(()=>(o.findAll(i).forEach(e=>{e.reset()}),this.refetchQueries(s,a)))}cancelQueries(e,t,n){let[i,a={}]=parseFilterArgs(e,t,n);void 0===a.revert&&(a.revert=!0);let o=w.batch(()=>this.queryCache.findAll(i).map(e=>e.cancel(a)));return Promise.all(o).then(noop).catch(noop)}invalidateQueries(e,t,n){let[i,a]=parseFilterArgs(e,t,n);return w.batch(()=>{var e,t;if(this.queryCache.findAll(i).forEach(e=>{e.invalidate()}),"none"===i.refetchType)return Promise.resolve();let n={...i,type:null!=(e=null!=(t=i.refetchType)?t:i.type)?e:"active"};return this.refetchQueries(n,a)})}refetchQueries(e,t,n){let[i,a]=parseFilterArgs(e,t,n),o=w.batch(()=>this.queryCache.findAll(i).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:i.refetchPage}})})),s=Promise.all(o).then(noop);return null!=a&&a.throwOnError||(s=s.catch(noop)),s}fetchQuery(e,t,n){let i=parseQueryArgs(e,t,n),a=this.defaultQueryOptions(i);void 0===a.retry&&(a.retry=!1);let o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(noop).catch(noop)}fetchInfiniteQuery(e,t,n){let i=parseQueryArgs(e,t,n);return i.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,i,a,o,s,l;let u;let c=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,d=null==(i=e.fetchOptions)?void 0:null==(a=i.meta)?void 0:a.fetchMore,p=null==d?void 0:d.pageParam,h=(null==d?void 0:d.direction)==="forward",f=(null==d?void 0:d.direction)==="backward",g=(null==(o=e.state.data)?void 0:o.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],v=m,b=!1,addSignalProperty=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?b=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{b=!0}),e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),buildNewPages=(e,t,n,i)=>(v=i?[t,...v]:[...v,t],i?[n,...e]:[...e,n]),fetchPage=(t,n,i,a)=>{if(b)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:i,meta:e.options.meta};addSignalProperty(o);let s=y(o),l=Promise.resolve(s).then(e=>buildNewPages(t,i,e,a));return l};if(g.length){if(h){let t=void 0!==p,n=t?p:getNextPageParam(e.options,g);u=fetchPage(g,t,n)}else if(f){let t=void 0!==p,n=t?p:null==(l=e.options).getPreviousPageParam?void 0:l.getPreviousPageParam(g[0],g);u=fetchPage(g,t,n,!0)}else{v=[];let t=void 0===e.options.getNextPageParam,n=!c||!g[0]||c(g[0],0,g);u=n?fetchPage([],t,m[0]):Promise.resolve(buildNewPages([],m[0],g[0]));for(let n=1;n<g.length;n++)u=u.then(i=>{let a=!c||!g[n]||c(g[n],n,g);if(a){let a=t?m[n]:getNextPageParam(e.options,i);return fetchPage(i,t,a)}return Promise.resolve(buildNewPages(i,m[n],g[n]))})}}else u=fetchPage([]);let x=u.then(e=>({pages:e,pageParams:v}));return x}}},this.fetchQuery(i)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(noop).catch(noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>hashQueryKey(e)===hashQueryKey(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>partialDeepEqual(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>hashQueryKey(e)===hashQueryKey(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>partialDeepEqual(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=hashQueryKeyByOptions(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}},UniversalLayoutQueryContainer=({children:e})=>C.createElement(QueryClientProvider,{client:e$},e);var eN=n(20110),ez=n(98628),eH=n(87593),eQ=n(23273);let eq=(0,G.B)("MenuCollapseButton",{root:y.iv`
width: 44px;
height: 44px;
border-radius: 40px;
display: flex;
align-items: center;
justify-content: center;
color: ${eh.w.neutral600};
transition: ${ez.f.transitionValue};
&:hover,
&:focus {
background-color: none;
color: ${eh.w.neutral800};
}
`});var MenuCollapseButton_MenuCollapseButton=({ariaExpanded:e=!1,ariaLabel:t,icon:n="navMenu",label:i="Menu",onClick:a})=>(0,x.U)(eH.p,{content:i,position:"east",shouldCorrectPosition:!1,showTooltipOnTouchDevices:!1},()=>(0,x.U)("button",{type:"button","aria-expanded":e,"aria-label":t||i,css:eq.root,onClick:e=>{a&&a(e)}},(0,x.U)(eQ.J,{name:n,size:24}))),eZ=n(37168);let eW=(0,G.B)("SkipLink",{root:{fontSize:10,textTransform:"uppercase",display:"block",color:eh.w.gray80,opacity:0,pointerEvents:"none",textDecoration:"none","&:focus":{opacity:1,outline:"none"}}});var SkipLink_SkipLink=({href:e=Q,text:t="Skip to content"})=>(0,x.U)(W.r,{ariaLabel:"Skip to main content",css:eW.root,href:e},t),eV=n(38137);let eK={root:(0,y.iv)({display:"flex",gap:30}),link:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint1Medium),{textDecoration:"none",display:"flex",alignItems:"center",gap:6,color:eh.w.neutral800,"&:hover":{color:eh.w.zapier,textDecoration:"none"},"&:focus":{outline:`1px solid ${eh.w.blue}`,outlineOffset:"1px",textDecoration:"none"}}))},MegaMenuFooter=e=>{let{links:t}=e,handleEvent=(t,n)=>{emitUserInteractionEvent({event_action:n,option_selected:`MegaNavFooter: ${t}`}),"click"===n&&e.onCloseMenu&&e.onCloseMenu()};return(0,x.U)("ul",{css:eK.root},null==t?void 0:t.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(W.r,{color:null,css:eK.link,href:e.href||void 0,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover"),target:e.target},e.icon&&(0,x.U)(eQ.J,{name:"object"==typeof e.icon?e.icon.selected:e.icon,size:14}),e.text))))};var eG=n(37260),eJ=n(30826);let HeadingLevel=({children:e})=>{let{level:t}=(0,eJ.useHeadingLevel)(),n=(0,eG.u)(t+1,1,6);return C.createElement(eJ.HeadingLevelProvider,{level:n},e)};var eX=n(28067);let eY=(0,G.B)("Arrow",{root:(0,y.iv)({opacity:0,height:16,marginLeft:0,marginTop:2,position:"absolute",transition:`opacity 100ms ${ez.f.transitionTimingFunction}, margin 150ms ${ez.f.transitionTimingFunction}`})}),ArrowLinkIcon=()=>(0,x.U)("span",{css:eY.root,"data-tag":"arrow-icon-wrapper"},(0,x.U)(eQ.J,{name:"arrowBigRight",size:14})),e0={root:(0,y.iv)({display:"flex",flexDirection:"column",gap:30,fontWeight:"initial",minHeight:373}),heading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.pageHeader9),{display:"flex",flexDirection:"column",color:eh.w.earth,fontSize:"30px",lineHeight:"24px",letterSpacing:"1px"})),subheading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint1),{color:eh.w.neutral700,display:"block",marginTop:8})),groupsContainer:(0,y.iv)({display:"flex",gap:"50px"}),groupHeading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.sectionHeader3Semibold),{color:eh.w.neutral500,fontSize:"14px",letterSpacing:"1px",marginBottom:"10px"})),linkList:(0,y.iv)({display:"flex",flexDirection:"column",gap:"20px"}),linkContainer:(0,y.iv)({textDecoration:"none",display:"flex",gap:"10px",alignItems:"center",'&:hover [data-tag="link-heading"]':{color:eh.w.zapier,textDecoration:"none"},'&:hover [data-tag="link-description"]':{textDecoration:"underline"},'&:hover [data-tag="arrow-icon-wrapper"]':{marginLeft:4,opacity:1},"&:focus":{outline:`1px solid ${eh.w.blue}`}}),iconContainer:(0,y.iv)({display:"flex",justifyContent:"center",alignItems:"center",width:38,height:38,borderRadius:"9px",backgroundColor:eh.w.cream}),linkHeading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.paragraph3Medium),{height:"26px",lineHeight:"30px",color:eh.w.earth})),linkDescription:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint3),{lineHeight:"20px",color:eh.w.neutral700}))},MegaMenuProductLeftV2=({heading:e,onCloseMenu:t,subheading:n,submenu:i})=>{let{getFullyQualifiedURL:a}=useUniversalNavContext(),handleEvent=(e,n)=>{emitUserInteractionEvent({event_action:n,option_selected:`Product tab Left: ${e}`}),"click"===n&&t&&t()};return(0,x.U)("div",{css:e0.root},(0,x.U)("header",null,(0,x.U)(HeadingLevel,null,(0,x.U)(eX.X,{css:e0.heading},e)),(0,x.U)("span",{css:e0.subheading},n)),(0,x.U)("div",{css:e0.groupsContainer},i.map(e=>{var t;return(0,x.U)("div",{key:e.text},(0,x.U)(HeadingLevel,null,(0,x.U)(eX.X,{css:e0.groupHeading},e.text)),(0,x.U)("ul",{css:e0.linkList},null===(t=e.submenu)||void 0===t?void 0:t.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(W.r,{color:null,css:e0.linkContainer,href:a(e.href),target:e.target,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover")},e.icon&&(0,x.U)("div",{css:e0.iconContainer},(0,x.U)(eQ.J,{color:"brand",name:e.icon,size:19})),(0,x.U)("div",{css:{display:"flex",flexDirection:"column"}},(0,x.U)("span",{css:e0.linkHeading,"data-tag":"link-heading"},e.text),(0,x.U)("span",{css:e0.linkDescription,"data-tag":"link-description"},e.description,(0,x.U)(ArrowLinkIcon,null))))))))})))},e1=(0,G.B)("SubMenuHeading",{root:(0,y.iv)({textDecoration:"none",color:eh.w.inherit,outline:"none","&:hover > p, &:focus > p":{textDecoration:"underline"},"&:hover > p > span, &:focus > p > span":{marginLeft:4,opacity:1}}),headingWrapper:(0,y.iv)({display:"flex",gap:8,alignItems:"end",marginBottom:10}),headingText:(0,y.iv)(Object.assign({},ef.ZT.subHeader5Bold)),description:e=>(0,y.iv)(Object.assign(Object.assign({paddingLeft:e?"28px":0},ef.ZT.paragraph3),{color:eh.w.neutral700,maxWidth:202,position:"relative",transition:`text-decoration 100ms ${ez.f.transitionTimingFunction}`})),icon:(0,y.iv)({color:eh.w.inherit,fontSize:20,lineHeight:"20px"})}),SubMenuHeading=e=>{let{link:t}=e,{getFullyQualifiedURL:n}=useUniversalNavContext(),handleEvent=(t,n,i)=>{i&&(emitUserInteractionEvent({event_action:n,option_selected:`MegaMenuSubmenuLink: ${t}`}),"click"===n&&e.onCloseMenu&&e.onCloseMenu())},i=t.href?W.r:"span";return(0,x.U)(HeadingLevel,null,(0,x.U)(eX.X,null,(0,x.U)(i,{css:e1.root,color:null,href:t.href?n(t.href):void 0,target:t.target,onClick:()=>handleEvent(t.text,"click",!!t.href),onMouseEnter:()=>handleEvent(t.text,"hover",!!t.href)},(0,x.U)("div",{css:e1.headingWrapper},t.icon&&(0,x.U)("span",{css:e1.icon,"data-testid":"heading-icon"},(0,x.U)(eQ.J,{name:"object"==typeof t.icon?t.icon.selected:t.icon,size:20})),(0,x.U)("span",{css:e1.headingText},t.text)),t.description&&(0,x.U)("p",{css:e1.description(!!t.icon),"data-testid":"heading-description"},t.description,(0,x.U)(ArrowLinkIcon,null)))))},e2=(0,G.B)("SubMenuList",{root:(0,y.iv)({display:"flex",flexDirection:"column"}),item:Object.assign(Object.assign({marginBottom:"10px"},ef.ZT.paragraph3),{"&:last-child":{marginBottom:0},"&:focus-within":{outline:`1px solid ${eh.w.blue}`}}),link:(0,y.iv)(Object.assign(Object.assign({color:eh.w.neutral700},ef.ZT.paragraph3),{position:"relative",textDecoration:"none",transition:`text-decoration 100ms ${ez.f.transitionTimingFunction}`,"&:hover":{textDecoration:"underline"},"&:hover > span":{marginLeft:4,opacity:1},"&:focus":{outline:"none"}}))}),SubMenuList=e=>{let{submenu:t}=e,{getFullyQualifiedURL:n}=useUniversalNavContext(),handleEvent=(t,n)=>{emitUserInteractionEvent({event_action:n,option_selected:`MegaMenuSubmenuLink: ${t}`}),"click"===n&&e.onCloseMenu&&e.onCloseMenu()};return(0,x.U)("ul",{css:e2.root},t.map((e,t)=>(0,x.U)("li",{css:e2.item,key:`${e.text}-${t}`},(0,x.U)(W.r,{css:e2.link,color:null,href:n(e.href)||void 0,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover"),target:e.target},e.text,(0,x.U)(ArrowLinkIcon,null)))))},e4=(0,G.B)("MegaMenuSubmenu",{root:(0,y.iv)({color:eh.w.earth,display:"grid",gap:"7%",gridTemplateColumns:"repeat(3, minmax(0px, max-content))",gridTemplateRows:"auto",height:"100%"}),groupContainer:(0,y.iv)({display:"flex",flexDirection:"column",gap:"35px"}),group:(0,y.iv)({color:eh.w.inherit,"&:hover, &:focus, &:focus-within":{color:eh.w.zapier}}),listWrapper:e=>(0,y.iv)({paddingLeft:e?"28px":0})}),MegaMenuSubmenu=e=>{let{links:t,variant:n}=e,i=(0,C.useMemo)(()=>"variant-c"===n&&t.length>3?[...t.slice(0,2),t.slice(2)]:t,[t]);return(0,x.U)("ul",{css:e4.root},i.map(t=>Array.isArray(t)?(0,x.U)("li",{key:n},(0,x.U)("ul",{css:e4.groupContainer},t.map(t=>(0,x.U)("li",{key:t.text,css:e4.group},(0,x.U)(SubMenuHeading,{link:t,onCloseMenu:e.onCloseMenu}),t.submenu&&(0,x.U)("div",{css:e4.listWrapper(!!t.icon)},(0,x.U)(SubMenuList,{submenu:t.submenu,onCloseMenu:e.onCloseMenu})))))):(0,x.U)("li",{key:t.text,css:e4.group},(0,x.U)("div",{role:t.submenu?"group":"presentation"},(0,x.U)(SubMenuHeading,{link:t,onCloseMenu:e.onCloseMenu}),t.submenu&&(0,x.U)("div",{css:e4.listWrapper(!!t.icon)},(0,x.U)(SubMenuList,{submenu:t.submenu,onCloseMenu:e.onCloseMenu}))))))};var e3=n(37365);let e5={root:(0,y.iv)(Object.assign(Object.assign({color:eh.w.neutral800,display:"flex",flexDirection:"column",position:"relative",maxWidth:400},ef.ZT.smallPrint1Bold),{"@media (hover: hover)":{"&:hover p":{textDecoration:"underline"},"&:hover a":{textDecoration:"none"},"&:hover p > span":{marginLeft:4,opacity:1},"&:focus-within":{outline:`1px solid ${eh.w.blue}`},"&:focus-within > a":{textDecoration:"none"}}})),title:(0,y.iv)({display:"block",marginBottom:20,textDecoration:"none",color:eh.w.neutral800,outline:"none",borderBottom:"none","&:hover":{textDecoration:"none",color:eh.w.neutral800},"&:focus":{textDecoration:"none",color:eh.w.neutral800},"&::before":{content:'""',position:"absolute",zIndex:1,top:0,right:0,bottom:0,left:0}}),imageContainer:(0,y.iv)({display:"flex",alignItems:"center",gap:16}),description:(0,y.iv)(Object.assign({transition:`text-decoration 100ms ${ez.f.transitionTimingFunction}`,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden"},ef.ZT.smallPrint1))},ArticlePromo=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext(),handleEvent=(t,n)=>{emitUserInteractionEvent({event_action:n,option_selected:`ArticlePromo: ${t}`}),"click"===n&&e.onCloseMenu&&e.onCloseMenu()};return(0,x.U)("article",{css:e5.root},(0,x.U)(HeadingLevel,null,(0,x.U)(eX.X,null,(0,x.U)(W.r,{color:null,css:e5.title,href:t(e.href)||void 0,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover"),target:e.target},e.text))),(0,x.U)("div",{css:e5.imageContainer},(0,x.U)(e3.E,{alt:e.altText,borderRadius:0,src:e.imageUrl,width:100}),(0,x.U)("p",{css:e5.description},e.description,(0,x.U)(ArrowLinkIcon,null))))};var e6=n(55414),e7=n(53939);let e9={root:(0,y.iv)(Object.assign({color:eh.w.neutral800},ef.ZT.smallPrint1Bold)),listItem:(0,y.iv)({marginBottom:8,"&:last-of-type":{marginBottom:0}}),link:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint1),{color:eh.w.neutral800,transition:`text-decoration 100ms ${ez.f.transitionTimingFunction}`,textDecoration:"none","&:hover":{textDecoration:"underline",color:eh.w.neutral800},"&:hover > span":{marginLeft:4,opacity:1},"&:focus":{outline:`1px solid ${eh.w.blue}`,color:eh.w.neutral800}}))},ListPromo=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext(),handleEvent=(t,n)=>{emitUserInteractionEvent({event_action:n,option_selected:`ListPromo: ${t}`}),"click"===n&&e.onCloseMenu&&e.onCloseMenu()};return(0,x.U)("section",{css:e9.root},e.text&&(0,x.U)(HeadingLevel,null,(0,x.U)(eX.X,null,(0,x.U)(e6.x,{type:"smallPrint1Bold"},e.text)),(0,x.U)(e7.L,{height:20})),(0,x.U)("ul",null,e.links.map(e=>(0,x.U)("li",{key:e.text,css:e9.listItem},(0,x.U)(W.r,{color:null,css:e9.link,href:t(e.href)||void 0,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover"),target:e.target},e.text,(0,x.U)(ArrowLinkIcon,null))))))},e8={root:(0,y.iv)({display:"flex",flexDirection:"column"}),divider:(0,y.iv)({backgroundColor:eh.w.neutral500,height:1,margin:"20px 0","&:last-of-type":{display:"none"}})},Promo=e=>{let{promo:t}=e;return t?(0,x.U)("div",{css:e8.root,"data-testid":"promo"},t.map((t,n)=>(0,x.U)(C.Fragment,{key:`${t.type}-${n}`},"article-stub"===t.type?(0,x.U)(ArticlePromo,Object.assign({},t,{onCloseMenu:e.onCloseMenu})):(0,x.U)(ListPromo,Object.assign({},t,{onCloseMenu:e.onCloseMenu})),(0,x.U)("hr",{css:e8.divider})))):null},te=(0,G.B)("StaticProductLeft",{root:(0,y.iv)({display:"flex",columnGap:"30px"}),image:(0,y.iv)({width:250,height:230}),textContainer:(0,y.iv)({display:"flex",flexDirection:"column",marginTop:23}),heading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.pageHeader9),{display:"flex",flexDirection:"column",color:eh.w.earth,lineHeight:"24px"})),subheading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint1),{color:eh.w.neutral700,display:"block",marginTop:8})),divider:(0,y.iv)({margin:"16px 0",height:1,backgroundColor:eh.w.neutral300,width:380}),linksContainer:(0,y.iv)({display:"grid",gridTemplateColumns:"max-content max-content",gap:"9px 50px","@media screen and (min-width: 1080px)":{gap:"9px 60px"}}),linkContainer:(0,y.iv)({textDecoration:"none",display:"flex",flexDirection:"column",'&:hover [data-tag="link-heading"]':{color:eh.w.zapier,textDecoration:"none"},'&:hover [data-tag="link-description"]':{textDecoration:"underline"},'&:hover [data-tag="arrow-icon-wrapper"]':{marginLeft:4,opacity:1},"&:focus":{outline:`1px solid ${eh.w.blue}`}}),linkHeading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.paragraph3Semibold),{textDecoration:"none",color:eh.w.earth,lineHeight:"30px"})),linkDescription:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint3),{textDecoration:"none",color:eh.w.neutral700,lineHeight:"20px"}))});var MegaMenu_VariantAMegaMenuLeft=({heading:e,onCloseMenu:t,subheading:n,submenu:i})=>{let{getFullyQualifiedURL:a}=useUniversalNavContext(),handleEvent=(e,n)=>{emitUserInteractionEvent({event_action:n,option_selected:`Product tab Left: ${e}`}),"click"===n&&t&&t()};return(0,x.U)("div",{css:te.root},(0,x.U)(e3.E,{alt:"A simplified user interface design representing a portion of Zapier's platform. There's a vertical menu of platform options. At the top is a dominant orange button with text inside that reads 'Create Zap.' Beneath the button is a stack of menu icons to represent dashboard, Zaps, and Transfers.",css:te.image,src:"https://cdn.zapier.com/storage/photos/39bccc5dc95c6dd96978b7b5635467a8.png"}),(0,x.U)("div",{css:te.textContainer},(0,x.U)("header",null,(0,x.U)(HeadingLevel,null,(0,x.U)(eX.X,{css:te.heading},e)),(0,x.U)("span",{css:te.subheading},n)),(0,x.U)("hr",{css:te.divider}),(0,x.U)("ul",{css:te.linksContainer},i.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(W.r,{color:null,css:te.linkContainer,href:a(e.href),target:e.target,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover")},(0,x.U)("span",{css:te.linkHeading,"data-tag":"link-heading"},e.text),(0,x.U)("span",{css:te.linkDescription,"data-tag":"link-description"},e.description,(0,x.U)(ArrowLinkIcon,null))))))))};let tt=(0,G.B)("StaticProductRight",{root:(0,y.iv)({display:"flex",flexDirection:"column",marginRight:1,width:300,fontWeight:"initial"}),header:(0,y.iv)({display:"flex",flexDirection:"column",textDecoration:"none"}),linkHeader:(0,y.iv)({'&:hover [data-tag="heading"]':{color:eh.w.zapier,textDecoration:"none"},'&:hover [data-tag="subheading"]':{textDecoration:"underline"},'&:hover [data-tag="arrow-icon-wrapper"]':{marginLeft:4,opacity:1},"&:focus":{outline:`1px solid ${eh.w.blueJeans}`}}),heading:({isV2:e})=>(0,y.iv)(Object.assign(Object.assign({},ef.ZT.pageHeader9),{color:eh.w.earth,lineHeight:"24px",fontSize:e?"30px":"24px",fontWeight:e?600:400})),subheading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint1),{color:eh.w.neutral700,display:"block",marginTop:8})),divider:(0,y.iv)({margin:"16px 0",height:1,backgroundColor:eh.w.neutral300}),linkContainer:({isV2:e})=>(0,y.iv)({display:"flex",columnGap:e?6:10,marginBottom:e?18:8,textDecoration:"none",color:eh.w.earth,'&:hover [data-tag="link-heading"]':{color:eh.w.zapier,textDecoration:"none"},'&:hover [data-tag="link-icon"]':{color:eh.w.zapier},'&:hover [data-tag="tag-label"]':{textDecoration:"none"},'&:hover [data-tag="link-description"]':{textDecoration:"underline"},'&:hover [data-tag="arrow-icon-wrapper"]':{marginLeft:4,opacity:1,color:eh.w.neutral700},"&:focus":{outline:`1px solid ${eh.w.blue}`}}),linkIcon:(0,y.iv)({marginTop:5}),linkTextContainer:(0,y.iv)({display:"flex",flexDirection:"column"}),linkHeading:({isV2:e})=>(0,y.iv)(Object.assign(Object.assign({},ef.ZT.paragraph3Semibold),{lineHeight:"30px",fontWeight:e?500:600})),linkHeadingRow:(0,y.iv)({display:"flex",alignItems:"center",lineHeight:"30px",fontWeight:500}),descriptionWrapper:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint3),{lineHeight:"20px"})),linkDescription:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint3),{color:eh.w.neutral700,lineHeight:"20px"})),tagLabel:({isV2:e})=>(0,y.iv)(Object.assign(Object.assign({},ef.ZT.base),{marginLeft:e?"6px":"8px",fontSize:"10px",lineHeight:"14px",fontWeight:e?700:600,padding:"2px 6px",borderRadius:100,backgroundColor:eh.w.lavender,textDecoration:"none"}))});var MegaMenu_MegaMenuProductRight=({header:e,isV2:t,submenu:n,onCloseMenu:i})=>{let{getFullyQualifiedURL:a}=useUniversalNavContext(),handleEvent=(e,t)=>{emitUserInteractionEvent({event_action:t,option_selected:`Product tab Right: ${e}`}),"click"===t&&i&&i()};return(0,x.U)("div",{css:tt.root},(0,x.U)(()=>e.href?(0,x.U)(W.r,{color:null,css:[tt.header,tt.linkHeader],href:a(e.href),target:e.target,onClick:()=>handleEvent("Early Access Program heading","click"),onMouseEnter:()=>handleEvent("Early Access Program heading","hover")},(0,x.U)("span",{css:tt.heading({isV2:t}),"data-tag":"heading"},e.heading),e.subheading&&(0,x.U)("div",null,(0,x.U)("span",{css:tt.subheading,"data-tag":"subheading"},e.subheading,(0,x.U)(ArrowLinkIcon,null)))):(0,x.U)("header",{css:tt.header},(0,x.U)("span",{css:tt.heading({isV2:t}),"data-tag":"heading"},e.heading),(0,x.U)("div",null,(0,x.U)("span",{css:tt.subheading,"data-tag":"subheading"},e.subheading))),null),(0,x.U)("hr",{css:tt.divider}),(0,x.U)("ul",null,n.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(W.r,{color:null,css:tt.linkContainer({isV2:t}),href:a(e.href),target:e.target,onClick:()=>handleEvent(e.text,"click"),onMouseEnter:()=>handleEvent(e.text,"hover")},(0,x.U)("span",{css:tt.linkIcon,"data-tag":"link-icon"},(0,x.U)(eQ.J,{name:e.icon,size:18})),(0,x.U)("div",{css:tt.linkTextContainer},(0,x.U)("div",{css:tt.linkHeadingRow},(0,x.U)("span",{css:tt.linkHeading({isV2:t}),"data-tag":"link-heading"},e.text),e.tag&&(0,x.U)("span",{css:tt.tagLabel({isV2:t}),"data-tag":"tag-label"},e.tag)),(0,x.U)("div",{css:tt.descriptionWrapper},(0,x.U)("span",{css:tt.linkDescription,"data-tag":"link-description"},e.description),(0,x.U)(ArrowLinkIcon,null))))))))};let tn=(0,eV.F)("MegaMenu",["footerWidth","gridTemplateAreas","gridTemplateColumns","leftBackgroundColor","rightBackgroundColor"]),tr=(0,G.B)("MegaMenu",{root:e=>[y.iv`
${tn.footerWidth}: 90%;
${tn.gridTemplateAreas}: 'left-padding left-content right-content right-padding'
'left-padding footer right-content right-padding';
${tn.gridTemplateColumns}: minmax(20px, 1fr) minmax(613.33px, 780px) minmax(306.66px, 380px) minmax(20px, 1fr);
${tn.leftBackgroundColor}: ${eh.w.neutral100};
${tn.rightBackgroundColor}: ${eh.w.neutral200};
&[data-layout='variant-a'] {
${tn.footerWidth}: 100%;
${tn.gridTemplateAreas}: 'left-padding left-content right-content right-padding'
'lower-left footer footer footer';
${tn.gridTemplateColumns}: minmax(20px, 1fr) minmax(613.33px, 810px) minmax(306.66px, 350px) minmax(20px, 1fr);
${tn.leftBackgroundColor}: ${eh.w.neutral200};
${tn.rightBackgroundColor}: ${eh.w.neutral100};
}
&[data-layout='product-2'] {
${tn.footerWidth}: 100%;
${tn.gridTemplateAreas}: 'left-padding left-content right-content right-padding'
'lower-left footer footer footer';
${tn.gridTemplateColumns}: minmax(20px, 1fr) minmax(613.33px, 810px) minmax(306.66px, 350px) minmax(20px, 1fr);
${tn.leftBackgroundColor}: ${eh.w.neutral100};
${tn.rightBackgroundColor}: ${eh.w.neutral200};
}
`,(0,y.iv)({backgroundColor:`var(${tn.leftBackgroundColor})`,border:`1px solid ${eh.w.neutral400}`,position:"absolute",top:70,left:0,right:0,minHeight:"100%",width:"100%",display:`${e?"block":"none"}`})],megaMenuWrapper:(0,y.iv)({display:"grid",gridTemplateColumns:`var(${tn.gridTemplateColumns})`,gridTemplateRows:"1fr auto",gridTemplateAreas:`var(${tn.gridTemplateAreas})`,minHeight:410}),submenu:(0,y.iv)({gridArea:"left-content"}),submenuLinksContainer:e=>(0,y.iv)({padding:"product-2"===e?"33px 0 29px":"variant-a"===e?"30px 0 20px":"30px 15px 40px 0"}),promotionsContainer:e=>(0,y.iv)({background:`var(${tn.rightBackgroundColor})`,padding:"product-2"===e?"33px 0 40px 40px":"variant-a"===e?"53px 0 40px 40px":"40px 0 40px 40px",gridArea:"right-content",display:"flex",alignItems:"variant-a"===e?"center":"normal"}),footerContainer:(0,y.iv)({boxShadow:`inset 0 1px ${eh.w.neutral300}`,gridArea:"footer",width:`var(${tn.footerWidth})`,padding:"20px 2px",backgroundColor:eh.w.neutral100}),lowerLeftPadding:{gridArea:"lower-left",backgroundColor:eh.w.neutral100,boxShadow:`inset 0 1px ${eh.w.neutral300}`},rightColumn:(0,y.iv)({gridArea:"right-padding",backgroundColor:`var(${tn.rightBackgroundColor})`})});var MegaMenu_MegaMenu=({id:e,isMenuOpen:t,navigationItem:n,onCloseMenu:i})=>{let Wrapper=({leftContent:a,rightContent:o})=>(0,x.U)("div",{css:tr.root(t),"data-layout":n.variant,id:e},(0,x.U)("div",{css:tr.megaMenuWrapper},(0,x.U)("div",{css:tr.submenu},(0,x.U)("div",{css:tr.submenuLinksContainer(n.variant)},a)),(0,x.U)("div",{css:tr.promotionsContainer(n.variant)},o),(0,x.U)("div",{css:tr.footerContainer},(0,x.U)(MegaMenuFooter,{links:n.bottomLinks,onCloseMenu:i})),(0,x.U)("div",{css:tr.lowerLeftPadding}),(0,x.U)("div",{css:tr.rightColumn})));switch(n.variant){case"variant-a":return(0,x.U)(Wrapper,{leftContent:(0,x.U)(MegaMenu_VariantAMegaMenuLeft,{heading:n.heroArea.heading,onCloseMenu:i,subheading:n.heroArea.subheading,submenu:n.heroArea.submenu}),rightContent:(0,x.U)(MegaMenu_MegaMenuProductRight,{header:n.promoArea.header,isV2:!1,submenu:n.promoArea.submenu,onCloseMenu:i})});case"product-2":return(0,x.U)(Wrapper,{leftContent:(0,x.U)(MegaMenuProductLeftV2,{heading:n.heroArea.heading,subheading:n.heroArea.subheading,submenu:n.heroArea.submenu}),rightContent:(0,x.U)(MegaMenu_MegaMenuProductRight,{header:n.promoArea.header,isV2:!0,submenu:n.promoArea.submenu,onCloseMenu:i})});case"variant-b":case"variant-c":return(0,x.U)(Wrapper,{leftContent:(0,x.U)(MegaMenuSubmenu,{links:n.submenu,onCloseMenu:i,variant:n.variant}),rightContent:(0,x.U)(Promo,{promo:n.promoArea,onCloseMenu:i})});default:return null}};let ti=(0,G.B)("UniversalTopbarLink",{root:e=>[(0,y.iv)(Object.assign(Object.assign({paddingRight:e?"42px":18,display:"flex",alignItems:"center",color:eh.w.neutral700},ef.ZT.paragraph3),{"&:hover, &:focus, &:focus-within":{fontWeight:600},'&[data-position="actions-menu"]':{paddingRight:0}}))],link:e=>[(0,y.iv)(Object.assign(Object.assign({color:eh.w.inherit,display:"flex",flexDirection:"column",alignItems:"center",height:70,lineHeight:"70px"},ef.ZT.base),{cursor:"pointer",textDecoration:"none",position:"relative","&:visited":{color:"inherit"},"&:focus":{outline:"none"},"&:focus-within > span":{"&::before":{backgroundColor:eh.w.neutral300}},"&::after":{content:"attr(data-text)",height:0,visibility:"hidden",overflow:"hidden",userSelect:"none",pointerEvents:"none",fontWeight:600},"&::before":{content:'""',height:6,width:0,fontWeight:600,position:"absolute",color:eh.w.zapier,borderBottom:"6px solid",bottom:0,left:0,zIndex:10,transition:`width 200ms ${ez.f.transitionTimingFunction}`},'&[data-selected="true"]':{"&::before":{width:e?"calc(100% + 17px)":"100%"}}}))],linkInner:e=>(0,y.iv)({display:"flex",alignItems:"center",gap:"5px",transformStyle:"preserve-3d",height:"100%",position:"relative","&::before":{content:'""',position:"absolute",top:20,right:e?"-28px":"-10px",bottom:20,left:"-10px",transform:"translateZ(-1px)",borderRadius:4,height:32}}),caret:e=>[(0,y.iv)({transition:ez.f.transitionValue,position:"absolute",top:23,right:"-24px",display:"flex",alignItems:"center",justifyContent:"center",height:24,width:24}),e&&(0,ep.Q)("menu-open",{transform:"rotate(-180deg)"})]});var UniversalTopbar_UniversalTopbarLink=({ariaControls:e,ariaLabel:t,children:n,isCallToAction:i=!1,isMenuOpen:a,navigationItem:o,onCloseMenu:s,position:l,role:u,toggleMenu:c,icon:d})=>{let{getFullyQualifiedURL:p}=useUniversalNavContext(),h=null==e?void 0:e.replace(/[^\w]/g,""),f="link"!==o.variant,handleEvent=e=>{let t="";t="click"===e?`${a?"Closing":"Opening"} UniversalLayout DynamicTopBar: ${f?n:o.href}`:`UniversalLayout DynamicTopBar: ${f?n:o.href}`,emitUserInteractionEvent({event_action:e,option_selected:t})},g="actions-menu"===l?"span":"li";return"link"===o.variant?(0,x.U)(g,{css:ti.root(!1),"data-position":l,"data-testid":"topbar-link",role:u},i?(0,x.U)(eN.z,{href:p(o.href),color:"secondary",size:"xsmall"},n):(0,x.U)(W.r,{color:null,css:ti.link(!1,i),"data-text":o.text+(d?"-----":""),"data-selected":!1,href:p(o.href),target:o.target,onClick:()=>{handleEvent("click"),c&&!o.href&&c()},onMouseEnter:()=>handleEvent("hover"),"aria-controls":h,"aria-expanded":void 0,ariaLabel:t},(0,x.U)("span",{css:ti.linkInner(!1)},d&&(0,x.U)(eQ.J,{name:d,size:22}),n))):(0,x.U)(g,{css:ti.root(!0),"data-position":l,"data-testid":"topbar-link",role:u},(0,x.U)("button",{css:ti.link(!0),"data-text":n,"data-selected":a,onClick:()=>{handleEvent("click"),c&&c()},onMouseEnter:()=>handleEvent("hover"),"aria-controls":h,"aria-expanded":a},(0,x.U)("span",{css:ti.linkInner(!0)},n,(0,x.U)("span",{css:ti.caret(a)},(0,x.U)(eQ.J,{isBlock:!0,name:"arrowSmallDown",size:16})))),(0,x.U)(MegaMenu_MegaMenu,{id:h||"",isMenuOpen:a||!1,key:(a||"false").toString(),navigationItem:o,onCloseMenu:s}))},ta=n(36897),BrandButton_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};function BrandButton(e){var{color:t="brand",size:n="small"}=e,i=BrandButton_rest(e,["color","size"]);return"brand-nav"===t?(0,x.U)(ta.Y,{color:"brand-nav",iconBefore:i.iconBefore||"formAdd",size:"medium"},(0,x.U)(ev.T,null,i.children||"Create a Zap")):(0,x.U)(ta.Y,Object.assign({color:t,size:n},i))}let to=(0,G.B)("AccountActions",{signupButton:{minWidth:100}});var UniversalTopbar_AccountActions=({shouldRenderSignIn:e,shouldRenderSignUp:t,loginHref:n=H,signupHref:i=z})=>{let{getFullyQualifiedURL:a}=useUniversalNavContext();return(0,x.U)(C.Fragment,null,e&&(0,x.U)(UniversalTopbar_UniversalTopbarLink,{ariaControls:void 0,role:"none",navigationItem:{variant:"link",href:a(n)||"",text:"Log in"},position:"actions-menu"},"Log in"),t&&(0,x.U)("div",{css:to.signupButton},(0,x.U)(BrandButton,{href:i,id:"universalnav-signup",isFullWidth:!0,onClick:()=>{emitUserInteractionEvent({interaction_name:"universalnav-signup",event_action:"click",option_selected:"Sign up"})}},"Sign up")))},ts=n(45897),tl=n(35080),tu=n(22211),tc=n(42126),td=n(95945),TypeaheadInput_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let tp=(0,G.B)("TypeaheadInput",{clearSelectionButton:y.iv`
align-items: center;
cursor: pointer;
display: flex;
height: 100%;
justify-content: center;
width: 100%;
&:hover,
&:focus {
color: ${eh.w.neutral600};
transition: ${ez.f.transitionValue};
}
`}),ClearSelectionButton=({clearSelection:e})=>(0,x.U)("button",{type:"button",css:tp.clearSelectionButton,onClick:e,title:"Clear Selection"},(0,x.U)(eQ.J,{canAcceptPointerEvents:!1,name:"x",size:20})),InputIcon=e=>e.renderIcon&&e.selectedItem?e.renderIcon(e.selectedItem,e.getLabelForItem):(0,x.U)(eQ.J,{name:"magnifyingGlass",size:e.iconSize}),TypeaheadInput=e=>{var{size:t="small"}=e,n=TypeaheadInput_rest(e,["size"]);let i=n.selectedItem&&!n.isDisabled;return(0,x.U)(tc.o,Object.assign({},(0,td.j)(n.getInputProps({ariaLabelledBy:n.ariaLabelledBy,autoComplete:n.autoComplete,onFocus:n.onFocus})),{ariaLabel:n.ariaLabel,autoComplete:"off",canClickIconAfter:i,disabledText:n.disabledText,isDisabled:n.isDisabled,isErrored:n.isErrored,placeholder:n.placeholder,renderIconAfter:({iconSize:e,isFocused:t,isHovered:a})=>i?(0,x.U)(ClearSelectionButton,{clearSelection:n.clearSelection,isFocused:t,isHovered:a}):n.iconEndName&&(0,x.U)(eQ.J,{name:n.iconEndName,size:e}),renderIconBefore:({iconSize:e})=>n.isBusy?(0,x.U)("span",{style:{width:e}},(0,x.U)(tu.$,null)):(0,x.U)(InputIcon,Object.assign({},n,{iconSize:e})),size:t}))};var Typeahead_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let dedupeAndTrimWhitespace=e=>e.replace(/(\s+)/g," ").trim(),th=(0,G.B)("Typeahead",{root:()=>[{position:"relative"}]});let Typeahead=class Typeahead extends C.Component{constructor(){super(...arguments),this.itemToString=e=>e?this.props.getLabelForItem(e):"",this.stateReducer=(e,t)=>this.props.keepInputValueOnBlur&&(t.type===ts.ZP.stateChangeTypes.blurInput||t.type===ts.ZP.stateChangeTypes.mouseUp)?Object.assign(Object.assign({},t),{inputValue:e.inputValue}):t}render(){let{props:e}=this;return(0,x.U)(ts.ZP,{id:e.id,initialSelectedItem:e.selectedItem||e.initialSelectedItem,inputId:e.inputId,inputValue:e.inputValue,itemToString:this.itemToString,labelId:e.labelId,onChange:e.onChange,onInputValueChange:e.onInputValueChange,selectedItem:e.selectedItem,stateReducer:this.stateReducer},({clearSelection:t,getInputProps:n,getItemProps:i,getMenuProps:a,getRootProps:o,highlightedIndex:s,inputId:l,inputValue:u,isOpen:c,openMenu:d,selectedItem:p})=>{e.setClearSelection&&e.setClearSelection(t);let h=e.labelId||null,f=o({"aria-labelledby":h,refKey:"innerRef"}),{innerRef:g}=f,m=Typeahead_rest(f,["innerRef"]),v=e.filterItems(u,e.items,e.getLabelForItem,e.showEmptyList||!1),b=c&&v.length>0,y=e.showErrorOnNoResults&&u&&0===v.length||e.isErrored;return(0,x.U)("div",Object.assign({},m,{css:th.root(),ref:g}),(0,x.U)(TypeaheadInput,{ariaLabel:e.ariaLabel,ariaLabelledBy:h,autoComplete:e.autoComplete,clearSelection:t,disabledText:e.disabledText,getInputProps:n,getLabelForItem:e.getLabelForItem,iconEndName:e.iconEndName,inputValue:u,isBusy:e.isBusy,isDisabled:e.isDisabled,isErrored:!!y,onFocus:e.openOnFocus?d:void 0,placeholder:e.placeholder,renderIcon:e.renderIcon,selectedItem:p,size:e.size}),b&&e.renderFloatingMenu({ariaLabel:e.menuAriaLabel,getItemProps:i,getKeyForItem:e.getKeyForItem,getLabelForItem:e.getLabelForItem,getMenuProps:a,highlightedIndex:s,items:v,renderIcon:e.renderIcon}))})}};Typeahead.defaultProps={filterItems:(e,t,n,i=!1)=>{if(i||!e)return t;let a=e.toLowerCase();return t.filter(e=>n(e).toLowerCase().includes(dedupeAndTrimWhitespace(a)))},isDisabled:!1,openOnFocus:!1,renderFloatingMenu:e=>(0,x.U)(tl.A,Object.assign({},e)),showEmptyList:!1,showErrorOnNoResults:!1};let tf=new WeakMap,simpleDebounce=(e,t)=>(...n)=>{clearTimeout(tf.get(e));let i=setTimeout(()=>{e(...n)},t);tf.set(e,i)},useAppSearchData_dedupeAndTrimWhitespace=e=>e.replace(/(\s+)/g," ").trim(),useAppSearchData=({limit:e,searchDebounceDelay:t,excludeUpcoming:n,includeIsAppAdmin:i,includeIsAppCollaborator:a,apiHostname:o,onResultsUpdate:s})=>{let[l,u]=(0,C.useState)(""),c=useAppSearchData_dedupeAndTrimWhitespace(l),[d,p]=(0,C.useState)(!1),[h,f]=(0,C.useState)([]);return(0,C.useEffect)(()=>{if(""===c){f([]);return}(async function(){let t=new URLSearchParams;t.append("limit",(e||20).toString()),t.append("title_search",c),n&&t.append("exclude_upcoming",n.toString()),i&&t.append("including_is_app_admin",i.toString()),a&&t.append("including_is_app_collaborator",a.toString());try{p(!0);let e=await fetch(`${o}/api/v4/apps?${t.toString()}`);if(!e.ok)throw Error("Response was not OK");let n=await e.json(),i=n.results.map(e=>({id:e.id,canonicalId:e.canonical_id,slug:e.slug,name:e.name,currentImplementation:{id:e.current_implementation_id},images:e.images}));f(i),s&&s(l,i),p(!1)}catch(e){p(!1)}})()},[n,i,a,e,c]),{loading:d,onSearch:simpleDebounce(e=>{u(useAppSearchData_dedupeAndTrimWhitespace(e))},t||0),searchQuery:useAppSearchData_dedupeAndTrimWhitespace(l),apps:h}};var tg=n(64476);let tm=(0,G.B)("ServiceTypeahead",{serviceIcon:y.iv`
&[data-disabled] {
opacity: 0.6;
}
`}),tv={disabled:!0,name:"No search results found."},ServiceTypeahead_dedupeAndTrimWhitespace=e=>e.replace(/(\s+)/g," ").trim(),ServiceTypeahead=({apiHostname:e,ariaLabel:t,disabledText:n,id:i,initialSelectedItem:a,inputId:o,isDisabled:s,labelId:l,menuAriaLabel:u,onChange:c,placeholder:d,setClearSelection:p,size:h,slugFilter:f,excludeUpcoming:g=!0,includeIsAppAdmin:m=!0,includeIsAppCollaborator:v=!0,onResultsUpdate:b=()=>{},renderFloatingMenu:y=e=>(0,x.U)(tl.A,Object.assign({},e)),resultsLimit:C=4})=>{let getIconUrlForItem=e=>e.images.url_32x32,getLabelForItem=e=>e.name,{apps:U,loading:w,onSearch:k,searchQuery:S}=useAppSearchData({limit:C,searchDebounceDelay:300,excludeUpcoming:g,includeIsAppAdmin:m,includeIsAppCollaborator:v,apiHostname:e||"",onResultsUpdate:b}),O=f?U.filter(e=>e.slug!==f):U,T=!1===w&&S.length>0&&0===O.length;return(0,x.U)(Typeahead,{ariaLabel:t,autoComplete:"off",disabledText:n,getLabelForItem:getLabelForItem,id:i,initialSelectedItem:a,inputId:o,isBusy:w,isDisabled:s,items:w||""===S?[]:T?[tv]:O,labelId:l,menuAriaLabel:u,onChange:c,onInputValueChange:e=>k(ServiceTypeahead_dedupeAndTrimWhitespace(e)),placeholder:d,renderFloatingMenu:e=>y(Object.assign(Object.assign({},e),{visibleItems:C})),renderIcon:e=>e&&e.images?(0,x.U)("span",{css:tm.serviceIcon,"data-disabled":s?"":void 0},(0,x.U)(tg.A,{ariaHidden:!0,serviceName:getLabelForItem(e),size:30,src:getIconUrlForItem(e)})):null,setClearSelection:p,showEmptyList:!0,size:h})},tb=(0,G.B)("SearchTogglerOutOfApp",{root:y.iv`
width: 40px;
height: 40px;
border-radius: 40px;
display: flex;
align-items: center;
justify-content: center;
color: ${eh.w.neutral600};
transition: ${ez.f.transitionValue};
&:hover,
&:focus {
background-color: transparent;
color: ${eh.w.neutral800};
}
`});var UniversalTopbar_SearchTogglerOutOfApp=e=>(0,x.U)(eH.p,{content:e.label,position:"south",shouldCorrectPosition:!1,showTooltipOnTouchDevices:!1},()=>(0,x.U)("label",{"aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel,css:tb.root,htmlFor:e.id},(0,x.U)(eQ.J,{name:e.isSearching?"formX":"magnifyingGlass",size:24})));let ty=(0,G.B)("SearchForm",{root:({isSearching:e})=>[{display:"grid",gridTemplateColumns:"1fr auto",gap:10,width:e?"100%":"auto",maxWidth:500}]});var UniversalTopbar_SearchForm=e=>{let{apiHostname:t}=useUniversalNavContext(),[n]=(0,eZ.O)({onClickOutside:()=>e.onClose()}),{routeTo:i}=(0,R.nB)(),handleChange=e=>{let{location:t}=window,n=t.origin.includes("localhost")||t.origin.includes("zapier-staging"),a=t.origin.startsWith("https://zapier.com");if(e&&e.slug){let o=`/apps/${e.slug}/integrations`;emitUserInteractionEvent({interaction_name:"universalNavServiceTypeahead",event_action:"click",option_selected:e.slug}),i?i(o):n||a?t.href=`${t.origin}${o}`:t.href=`https://zapier.com${o}`}};return(0,x.U)("div",{css:ty.root(e),role:"form"},(0,x.U)("div",{onKeyUp:t=>{"Escape"===t.key&&e.onClose()},ref:n},(0,x.U)(ServiceTypeahead,{apiHostname:t,ariaLabel:"Search Apps",excludeUpcoming:!1,id:"universalNavServiceTypeahead",inputId:e.searchInputId,menuAriaLabel:"List of available apps",onChange:e=>handleChange(e),placeholder:"Search by App",resultsLimit:8})),(0,x.U)(UniversalTopbar_SearchTogglerOutOfApp,{ariaHidden:!0,ariaLabel:"Close search",isSearching:!0}))};let tx=(0,G.B)("SearchTogglerInApp",{root:y.iv`
height: 40px;
border-radius: 40px;
display: flex;
align-items: center;
gap: 5px;
margin-right: 10px;
justify-content: center;
color: ${eh.w.neutral800};
&:hover,
&:focus {
background-color: transparent;
color: ${eh.w.neutral800};
${ef.ZT.paragraph3Bold};
}
`});var UniversalTopbar_SearchTogglerInApp=e=>(0,x.U)("label",{css:tx.root,htmlFor:e.id},(0,x.U)(eQ.J,{name:e.isSearching?"formX":"magnifyingGlass",size:24}),"small"!==e.size?"Search":(0,x.U)(ev.T,null,"Search")),UniversalTopbar_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let tC=(0,G.B)("UniversalTopbar",{root:[{display:"flex",justifyContent:"center",backgroundColor:`${eh.w.neutral100}`,position:"relative",borderBottom:`1px solid ${eh.w.neutral300}`}],header:({hasSidebar:e})=>[(0,y.iv)({width:"100%",maxWidth:"1200px",height:60,padding:"0 22px 0 10px",display:"grid",gridTemplateColumns:"max-content auto max-content",alignItems:"stretch",gap:"5px",backgroundColor:eh.w.neutral100,"@media (min-width: 450px)":{height:70,padding:"0 20px",gap:"0"}}),e&&(0,ep.Q)("has-sidebar",(0,y.iv)({maxWidth:"none",paddingLeft:"10px"}))],group:(0,y.iv)({display:"grid",gridAutoFlow:"column",alignItems:"center",justifySelf:"flex-end",gap:"5px","@media (min-width: 450px)":{gap:"17px"}}),mainNavigationContent:[{display:"flex",alignItems:"stretch",marginLeft:25}],searchForm:(e,{isSearching:t})=>[{position:"absolute",top:0,right:0,bottom:0,left:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",transition:ez.f.transitionValue,opacity:0,pointerEvents:"none",transform:"scaleX(0)"},t&&(0,ep.Q)("searching",{opacity:1,pointerEvents:"auto",transform:"scaleX(1)"}),e.isSearchFullWidth&&(0,ep.Q)("fullWidth",{backgroundColor:`${eh.w.neutral100}`,padding:"0 10px"})],linkButton:(0,y.iv)({"& span":Object.assign(Object.assign({},ef.ZT.paragraph3),{fontWeight:"normal",color:eh.w.neutral800})}),searchToggler:({isSearching:e})=>[{marginRight:-7,transition:ez.f.transitionValue},e&&(0,ep.Q)("hidden",{opacity:.2,pointerEvents:"none"})],navLinksList:e=>[Object.assign({display:"grid"},e.links&&{gridTemplateColumns:`repeat(${e.links.length+1}, max-content)`}),e.isSearching&&(0,ep.Q)("searching",{opacity:0})],logoLinksWrapper:{position:"relative"},skipLink:{position:"absolute",top:"100%",whiteSpace:"nowrap"}}),Links=e=>{var t;let[n,i]=(0,C.useState)(""),[a,o]=(0,C.useState)(null),[s]=(0,eZ.O)({onClickOutside:()=>i("")}),toggleMegaMenu=e=>{n===e?(a instanceof HTMLElement&&a.focus(),i("")):(a instanceof HTMLElement&&o(document.activeElement),i(e))},closeMenu=()=>i(""),handleEscape=e=>{"Escape"===e.key&&(a instanceof HTMLElement&&a.focus(),i(""))};(0,C.useEffect)(()=>(document.addEventListener("keydown",handleEscape,{capture:!1}),()=>{document.removeEventListener("keydown",handleEscape,{capture:!1})}));let l=null===(t=e.links)||void 0===t?void 0:t.map(e=>(0,x.U)(UniversalTopbar_UniversalTopbarLink,{ariaControls:e.text,isMenuOpen:n===e.text,key:e.text,navigationItem:e,onCloseMenu:closeMenu,position:"navigation",toggleMenu:()=>toggleMegaMenu(e.text)},e.text));return l?(0,x.U)("nav",{"aria-label":"Site Links",id:"site-nav",ref:s},(0,x.U)("ul",{css:tC.navLinksList(e)},l)):null};var UniversalTopbar_UniversalTopbar=e=>{var t,{isSearchFullWidth:n,links:i,logoAriaLabel:a="Go to the Zapier Homepage",logoHref:o="/",onLogoClick:s=()=>{},selectedHref:l="",shouldRenderLogo:u=!0,size:c="medium",skipLinkHref:d=Q,renderAccountMenu:p=e=>(0,x.U)(UniversalTopbar_AccountActions,{selectedHref:e.selectedHref,shouldRenderSignIn:"small"!==e.size,shouldRenderSignUp:!0,size:e.size}),renderNotifications:h=()=>null,renderSearchForm:f=e=>(0,x.U)(UniversalTopbar_SearchForm,{isSearching:e.isSearching,onClose:e.onClose,searchInputId:e.searchInputId})}=e,g=UniversalTopbar_rest(e,["isSearchFullWidth","links","logoAriaLabel","logoHref","onLogoClick","selectedHref","shouldRenderLogo","size","skipLinkHref","renderAccountMenu","renderNotifications","renderSearchForm"]);let{currentUrl:m,getFullyQualifiedURL:v,shouldRenderCallToAction:b,topNavData:y,isInAppExperience:U}=useUniversalNavContext(),w=void 0!==y.linksInApp,k=Object.assign({isSearchFullWidth:n,links:i,logoAriaLabel:a,logoHref:o,onLogoClick:s,renderAccountMenu:p,renderNotifications:h,renderSearchForm:f,selectedHref:l,shouldRenderLogo:u,size:c,skipLinkHref:d},g),S=k.renderSidebar&&k.renderSidebar(k),O="universal-nav-app-search",[T,L]=(0,C.useState)(!1),_=k.renderSearchForm({isSearching:T,searchInputId:O,onClose:()=>{L(!1)}}),[A]=(0,eZ.O)({onClickOutside:e=>{k.onClickOutside&&k.onClickOutside(e)}}),P=v(`${null===(t=y.callToAction)||void 0===t?void 0:t.href}?demo_source=cs_nav_header_${m}`)||"",I=U&&w?(0,x.U)(UniversalTopbar_SearchTogglerInApp,{id:O,isSearching:!1,size:k.size}):(0,x.U)(UniversalTopbar_SearchTogglerOutOfApp,{id:O,isSearching:!1});return(0,x.U)("div",{css:tC.root,ref:e=>A(e)},(0,x.U)("div",{css:tC.header({hasSidebar:!!S}),"data-testid":"universalTopbar",onClick:k.onClick},(0,x.U)("div",{css:tC.group},S,k.shouldRenderLogo&&(0,x.U)("header",{css:tC.logoLinksWrapper},(0,x.U)("a",{"aria-label":k.logoAriaLabel,href:v(k.logoHref),onClick:k.onLogoClick},(0,x.U)(ZapierLogo,Object.assign({},{width:105,height:28}))),(0,x.U)("div",{css:tC.skipLink},(0,x.U)(SkipLink_SkipLink,{href:k.skipLinkHref})))),(0,x.U)("div",{css:tC.mainNavigationContent},i&&i.length>0&&(0,x.U)(Links,Object.assign({},k,{isSearching:T,links:i})),(0,x.U)("div",{"aria-label":"Search apps",css:tC.searchForm(k,{isSearching:T}),onBlur:()=>{L(!1)},onFocus:()=>{L(!0),emitUserInteractionEvent({interaction_name:O,event_action:"in_view",option_selected:"Universal Nav Search opened"})},role:"form"},_)),(0,x.U)("div",{"aria-label":"Manage your account and search apps",css:tC.group,role:"form"},!!_&&(0,x.U)("div",{css:tC.searchToggler({isSearching:T}),"data-testid":"searchToggler"},I),U&&y.linksInApp&&y.linksInApp.map(e=>(0,x.U)(UniversalTopbar_UniversalTopbarLink,{navigationItem:Object.assign(Object.assign({variant:"link"},y.callToAction),{href:e.href,text:"medium"===c?e.text:""}),position:"actions-menu",isCallToAction:!1,icon:e.icon,ariaLabel:e.text,key:e.text},"medium"===c?e.text:"")),y.callToAction&&"small"!==k.size&&b&&(0,x.U)(UniversalTopbar_UniversalTopbarLink,{navigationItem:Object.assign(Object.assign({variant:"link"},y.callToAction),{href:P}),position:"actions-menu",isCallToAction:U&&w},y.callToAction.text),k.renderAccountMenu(k))))},TopbarLoadingState_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let tU=(0,G.B)("TopbarLoadingState",{root:[{display:"flex",justifyContent:"center",backgroundColor:`${eh.w.neutral100}`,position:"relative",borderBottom:`1px solid ${eh.w.neutral300}`}],header:(0,y.iv)({width:"100%",maxWidth:"1200px",height:60,padding:"0 10px 0 59px",display:"grid",gridTemplateColumns:"max-content auto max-content",alignItems:"stretch",gap:"5px",backgroundColor:eh.w.neutral100,"@media (min-width: 450px)":{height:70,padding:"0 20px 0 71px",gap:"0"},"@media (min-width: 1040px)":{paddingLeft:"20px"}}),group:(0,y.iv)({display:"grid",gridAutoFlow:"column",alignItems:"center",justifySelf:"flex-end",gap:"5px","@media (min-width: 450px)":{gap:"17px"}}),mainNavigationContent:[{display:"flex",alignItems:"stretch",marginLeft:25}],logoLinksWrapper:{position:"relative"},skipLink:{position:"absolute",top:"100%",whiteSpace:"nowrap"}});var TopbarLoadingState_TopbarLoadingState=e=>{var t,{logoAriaLabel:n="Go to the Zapier Homepage",logoHref:i="/",onLogoClick:a=()=>{},selectedHref:o="",shouldRenderHiddenMenu:s=!0,shouldRenderLogo:l=!0,size:u="medium",skipLinkHref:c=Q,renderAccountMenu:d=e=>(0,x.U)(UniversalTopbar_AccountActions,{selectedHref:e.selectedHref,shouldRenderSignIn:"small"!==e.size,shouldRenderSignUp:!0,size:e.size}),renderNotifications:p=()=>null,renderSearchForm:h=e=>(0,x.U)(UniversalTopbar_SearchForm,{isSearching:e.isSearching,onClose:e.onClose,searchInputId:e.searchInputId})}=e,f=TopbarLoadingState_rest(e,["logoAriaLabel","logoHref","onLogoClick","selectedHref","shouldRenderHiddenMenu","shouldRenderLogo","size","skipLinkHref","renderAccountMenu","renderNotifications","renderSearchForm"]);let g=Object.assign({shouldRenderHiddenMenu:s,logoAriaLabel:n,logoHref:i,onLogoClick:a,renderAccountMenu:d,renderNotifications:p,renderSearchForm:h,selectedHref:o,shouldRenderLogo:l,size:u,skipLinkHref:c},f),{getFullyQualifiedURL:m}=useUniversalNavContext();return(0,x.U)("div",{css:tU.root},(0,x.U)("div",{css:tU.header,"data-testid":"universalTopbar-loading-state"},(0,x.U)("div",{css:tU.group},l&&(0,x.U)("header",{css:tU.logoLinksWrapper},(0,x.U)("a",{"aria-label":n,href:m(i),onClick:a},(0,x.U)(ZapierLogo,Object.assign({},{width:105,height:28}))),(0,x.U)("div",{css:tU.skipLink},(0,x.U)(SkipLink_SkipLink,{href:c})))),(0,x.U)("div",{css:tU.mainNavigationContent},s?(0,x.U)(ev.T,null,(0,x.U)("nav",{"aria-label":"Site Links",id:"site-nav"},(0,x.U)("ul",null,null===(t=null==N?void 0:N.topBarMenu)||void 0===t?void 0:t.map(e=>(0,x.U)(UniversalTopbar_UniversalTopbarLink,{key:e.text,navigationItem:e},e.text))))):(0,x.U)(e7.L,null)),(0,x.U)("div",{"aria-label":"Manage your account and search apps",css:tU.group,role:"form"},d(g))))};let tw={root:(0,y.iv)({display:"flex",flexDirection:"column",gap:"12px",margin:"5px 0px",borderRadius:"12px",padding:"20px 15px",backgroundColor:eh.w.blue100,"&:focus, &:hover":{backgroundColor:eh.w.cream,"& .offsite-icon svg":{color:eh.w.brand}},"&:focus":{outline:`2px solid ${eh.w.brand}`}}),header:(0,y.iv)({display:"flex",alignItems:"center",gap:"12px"}),heading:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.paragraph3Medium),{color:eh.w.neutral700})),link:(0,y.iv)({marginLeft:"auto",color:eh.w.neutral800}),description:(0,y.iv)(Object.assign(Object.assign({},ef.ZT.smallPrint1),{color:eh.w.neutral700}))},Callout=({description:e,heading:t,href:n,icon:i,target:a})=>{let{getFullyQualifiedURL:o}=useUniversalNavContext();return(0,x.U)("a",{css:tw.root,href:o(n),"aria-label":`Navigate to ${t}`,target:a,onClick:()=>{emitUserInteractionEvent({event_action:"click",option_selected:`UniversalSidebar Callout ${n}`})}},(0,x.U)("div",null,(0,x.U)("div",{css:tw.header},i&&(0,x.U)(eQ.J,{ariaHidden:!0,name:i}),(0,x.U)("span",{css:tw.heading},t),(0,x.U)("div",{css:tw.link,className:"offsite-icon"},(0,x.U)(eQ.J,{ariaHidden:!0,name:"arrowOffsite",size:24})))),(0,x.U)("span",{css:tw.description},e))};var tk=n(96369),tS=n(15504),UniversalSidebar_UniversalSidebarSubheaderButton=e=>(0,x.U)("div",{className:"sidebar-create-menu-button"},(0,x.U)(BrandButton,Object.assign({ariaLabel:e.text,iconBefore:e.iconName,hasShadow:!0,href:e.href,isFullWidth:!0},e.isCollapsed&&{color:"brand-nav"},{onClick:e.onClick,size:"medium"}),!e.isCollapsed&&e.text));let MenuStyles=({topbarSize:e})=>(0,y.iv)({display:"flex",flexDirection:"column",gap:"8px",maxHeight:"inherit",border:"1px solid transparent",boxSizing:"border-box",overflow:"auto",padding:"10px",width:"medium"===e?"275px":"260px",left:"3px",top:"30px",minWidth:"150px",outline:"none"}),tO=(0,y.iv)({display:"flex",gap:"10px",padding:"0.286rem 0.571rem",borderRadius:"6px",outline:"none",cursor:"pointer",fontSize:"1.072rem",position:"relative",alignItems:"center",columnGap:"10px",color:"inherit",textDecoration:"none","&:focus, &:hover":{backgroundColor:eh.w.cream},"& span":{transition:"none"}}),CreationItem=({description:e,href:t,icon:n,iconFilled:i,id:a,tag:o,target:s,title:l})=>{let[u,c]=(0,C.useState)(!1),{getFullyQualifiedURL:d}=useUniversalNavContext();return(0,x.U)("a",{css:tO,href:d(t),id:a,target:s,onFocus:()=>c(!0),onBlur:()=>c(!1),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onClick:()=>{emitUserInteractionEvent({event_action:"click",option_selected:`UniversalSidebar CreateDropdown: ${l}`})}},(0,x.U)(eQ.J,{name:u?i:n,size:28,color:u?"brand":"neutral800"}),(0,x.U)("div",{css:{display:"flex",flexDirection:"column"}},(0,x.U)("div",{css:{display:"flex",alignItems:"center"}},(0,x.U)(e6.x,{type:"paragraph3Medium"},l),o&&(0,x.U)(C.Fragment,null,(0,x.U)(e7.L,{width:10}),(0,x.U)(tk.S,{size:"small",color:"lavender"},o))),(0,x.U)(e6.x,{type:"smallPrint1"},e)))},CreateDropdown=({isCollapsed:e,items:t})=>{let{isCreateMenuOpen:n,setIsCreateMenuOpen:i,topbarSize:a}=useUniversalNavContext(),o=(0,C.useRef)(null);return(0,x.U)("div",{ref:o,style:{position:"relative"}},(0,x.U)(UniversalSidebar_UniversalSidebarSubheaderButton,{iconName:"formAdd",isCollapsed:e,onClick:e=>{e.stopPropagation(),emitUserInteractionEvent({event_action:"click",option_selected:`UniversalSidebar CreateDropdown ${n?"close":"open"}`}),i(!n)},text:"Create"}),n&&(0,x.U)(tS.f,{borderColor:"transparent",borderRadius:10,onClickOutside:e=>{o&&o.current&&!o.current.contains(e.target)&&i(!1)}},(0,x.U)("div",{css:MenuStyles({topbarSize:a})},t.map(e=>(0,x.U)(CreationItem,Object.assign({},e,{key:e.id}))))))};var tT=n(29476);let hashString=e=>{let t=0,n=0;for(n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return Math.abs(t).toString(16)},createUniqueClassName=(e,t)=>{let n=hashString("universal-nav"+e+t);return`${e}__${t}-${n}`},tL=createUniqueClassName("UniversalNavLink","tooltip"),t_=`.${tL}`,tA=createUniqueClassName("UniversalNavLink","navIcon"),tP=`.${tA}`,tI=createUniqueClassName("UniversalNavLink","externalIcon"),tE=`.${tI}`,tM=(0,G.B)("UniversalNavLink",{root:(e,t)=>[(0,ep.Q)("",Object.assign(Object.assign(Object.assign({},ef.ZT.paragraph3Medium),{color:eh.w.neutral800,display:"flex",position:"relative",minHeight:50,padding:10,borderRadius:3,whiteSpace:"nowrap",width:"100%",transition:`${ez.f.transitionValue}, font-weight 0s, width 0s`,textDecoration:"none","&:hover, &:focus":{transition:"none",color:eh.w.neutral800,backgroundColor:eh.w.neutral200,outline:"none"},[tP]:{color:eh.w.neutral600},[`&:hover ${tP}, &:focus ${tP}`]:{transition:"none",color:eh.w.neutral800}}),e.isSidebar&&Object.assign(Object.assign({},ef.ZT.paragraph3Medium),{borderRadius:15,color:eh.w.neutral700,outline:"solid 2px transparent","&:hover, &:focus":{transition:"none",backgroundColor:eh.w.cream,outline:"solid 2px transparent"},"&:focus":Object.assign(Object.assign({},ef.ZT.paragraph3Bold),{outlineOffset:"-1px",outline:`solid 2px ${eh.w.brand}`}),[tP]:{color:eh.w.neutral800},[`&:hover ${tP}, &:focus ${tP}`]:{transition:"none"}}))),!t&&(0,ep.Q)("textOnly",{paddingLeft:15,paddingRight:15}),e.isSelected&&(0,ep.Q)("selected",Object.assign(Object.assign(Object.assign({},ef.ZT.paragraph3Bold),{color:eh.w.blue,backgroundColor:eh.w.blue10,[tP]:{color:eh.w.blue}}),e.isSidebar&&{color:eh.w.neutral800,backgroundColor:eh.w.cream,[tP]:{color:eh.w.brand}})),!1===e.isCollapsed&&{},e.isCollapsed&&(0,ep.Q)("collapsed",{width:50,left:2}),{[t_]:{opacity:0,pointerEvents:"none",transition:"opacity 0.1s ease-in-out","@media (hover: none)":{display:"none"}},[`&:hover ${t_}, &:focus ${t_}`]:{opacity:1,pointerEvents:"auto"}},{[tE]:{opacity:0},[`&:hover ${tE}, &:focus ${tE}`]:{opacity:.5}}],layout:{display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",gap:20,alignItems:"center",overflow:"hidden",width:"100%"},v3Layout:{display:"flex",gap:10,alignItems:"center",overflow:"hidden",width:"100%",paddingLeft:3},text:{'&[aria-hidden="true"]':{opacity:0}}});var UniversalNavLink_UniversalNavLink=({href:e,text:t,icon:n,isCollapsed:i=!1,isExternal:a=!1,isSelected:o=!1,isSidebar:s,isV3Link:l=!1,onClick:u,role:c,tag:d,target:p,renderBeforeText:h=e=>e.icon&&(0,x.U)("span",{className:tA},(0,x.U)(eQ.J,{isBlock:!0,name:e.icon,size:l?24:30}))})=>{let{getFullyQualifiedURL:f}=useUniversalNavContext(),g=i&&(0,x.U)("span",{className:tL},(0,x.U)(tT.u,{position:"east"},t)),m=h&&h({href:e,text:t,icon:n,isCollapsed:i,isExternal:a,isSelected:o,isSidebar:s,onClick:u,role:c,target:p,renderBeforeText:h});return(0,x.U)(W.r,{color:null,css:tM.root({isSidebar:s,isCollapsed:i,isSelected:o},!!m),href:f(e),onClick:e=>{e.currentTarget.blur(),u&&u(e)},role:c,target:p||"_self"},(0,x.U)("span",{css:l?tM.v3Layout:tM.layout},m,(0,x.U)("span",{"aria-hidden":i,css:tM.text},t),d&&(0,x.U)(tk.S,{size:"small",color:"lavender"},d),a&&!i&&(0,x.U)("span",{className:tI},(0,x.U)(eQ.J,{isBlock:!0,name:"arrowOffsite",size:18}))),g)};let tR=[{href:"/app/dashboard",icon:{selected:"navDashboardFill",unselected:"navDashboard"},text:"Dashboard"},{href:"/app/zaps",icon:{selected:"miscBoltAltFill",unselected:"miscBoltAlt"},text:"Zaps"},{href:"/app/transfers",icon:{selected:"arrowConnect",unselected:"arrowConnect"},text:"Transfers"},{href:"https://tables.zapier.com/app/tables?utm_campaign=zpr-gbl-nua-evr-product_sidenav-prd&utm_medium=product&utm_source=zapier",icon:{selected:"navTableFill",unselected:"navTable"},text:"Tables"},{href:"https://interfaces.zapier.com/interfaces?utm_campaign=zpr-gbl-nua-evr-product_sidenav-prd&utm_medium=product&utm_source=zapier/",icon:{selected:"navInterfacesFill",unselected:"navInterfaces"},text:"Interfaces (beta)"},{href:"/app/connections",icon:{selected:"navAppsFill",unselected:"navApps"},text:"Apps"},{href:"/app/history",icon:{selected:"miscClockFill",unselected:"miscClock"},text:"Zap History"},{href:"/help",icon:{selected:"navHelpFill",unselected:"navHelp"},text:"Get Help"}],useQuerySidebar=()=>{let{getFullyQualifiedURL:e}=useUniversalNavContext(),[t,n]=(0,C.useState)(tR),{data:i}=useQuerySession();return(0,C.useEffect)(()=>{let e=!0;return async function(){var t,a,o;let s=getServerUrl(),l=`${s}/api/v3/navigation-data/sidebar`,u=(null===(t=null==i?void 0:i.currentAccountId)||void 0===t?void 0:t.toString())||"",c=(null===(a=null==i?void 0:i.isStaff)||void 0===a?void 0:a.toString())||"",d=(null===(o=null==i?void 0:i.customUserId)||void 0===o?void 0:o.toString())||"";try{let t=await fetch(l,{credentials:"include",headers:{"x-is-staff":c,"x-current-account-id":u,"x-customuser-id":d}});if(!t.ok)throw Error("Response was not OK");if(e){let e=await t.json(),{data:i}=e;n(i)}}catch(t){e&&n(tR)}}(),()=>{e=!1}},[e,i]),{sideNavData:t}},tj=(0,G.B)("UniversalSidebarError",{toggle:Object.assign(Object.assign({},ef.ZT.smallPrint1),{color:eh.w.error,cursor:"pointer",padding:"3px 0",borderBottom:"1px solid transparent",transition:ez.f.transitionValue,"&:hover, &:focus":{borderBottomColor:eh.w.error}}),message:{color:eh.w.error,marginTop:10,padding:10,border:`1px solid ${eh.w.gray20}`,borderRadius:5,font:"14px/18px monospace"}});var UniversalSidebar_UniversalSidebarError=e=>(0,x.U)("details",null,(0,x.U)("summary",{css:tj.toggle},"Oh no, something went wrong!"),(0,x.U)("pre",{css:tj.message},e.children)),ProgressBar_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let tF=(0,G.B)("ProgressBar",{root:(0,y.iv)({position:"relative",height:5,borderRadius:2.5,backgroundColor:eh.w.neutral300}),progress:e=>[(0,y.iv)({height:"inherit",borderRadius:"inherit",position:"absolute",top:0,left:0,maxWidth:"100%",transition:`all ${ez.f.transitionDuration} ease-in-out`,backgroundColor:eh.w[e]})]}),ProgressBar=e=>{var{max:t=1,min:n=0,color:i="blue"}=e,a=ProgressBar_rest(e,["max","min","color"]);let o=(0,eG.u)(a.value,n,t),s=t-n,l=(o-n)/s,u=`${100*l}%`;return(0,x.U)("div",{css:tF.root},(0,x.U)("div",{css:tF.progress(i),"data-testid":"progress",style:{width:u}}))},tD=["","k","M","B","T",""],isNumber=e=>"number"==typeof e&&!Number.isNaN(e),abbreviateNumber=e=>{if(!e||e<1&&e>-1)return isNumber(e)?e.toString():null;let t=Math.floor(Math.log(Math.abs(e))/Math.log(1e3)),n=tD[Math.min(t,tD.length)],i=String(Math.abs(e)/Math.pow(1e3,t)).substring(0,3),a=i.endsWith(".")?i.slice(0,-1):i;return`${e<0?"-":""}${a}${n}`},tB=(0,G.B)("UsageBar",{root:{display:"block",paddingTop:"10px"},text:{display:"grid",gap:20,gridTemplateColumns:"auto 1fr",marginBottom:5},label:Object.assign(Object.assign({},ef.ZT.smallPrint1Semibold),{color:eh.w.neutral700}),amounts:Object.assign(Object.assign({},ef.ZT.smallPrint1Medium),{textAlign:"right",color:eh.w.neutral700})}),formatNumber=e=>{let t=e>9999?abbreviateNumber(e):e.toLocaleString();return"string"==typeof t?t:"Error"};var UniversalSidebarUsage_UsageBar=e=>{let t=e.max===1/0?"Unlimited":`${formatNumber(e.value)} / ${formatNumber(e.max)}`;return(0,x.U)("figure",{css:tB.root},(0,x.U)("p",{"aria-label":`Used ${e.value} of ${e.max} ${e.label}`,css:tB.text},(0,x.U)("span",{"aria-hidden":!0,css:tB.label},e.label),(0,x.U)("span",{"aria-hidden":!0,css:tB.amounts},t)),e.max!==1/0&&(0,x.U)(ProgressBar,{max:e.max,value:e.value}))};let t$=(0,G.B)("UniversalSidebarUsage",{root:{display:"grid",gap:10,whiteSpace:"nowrap"},header:Object.assign(Object.assign({display:"grid",gridTemplateColumns:"auto 1fr",gap:20,alignItems:"center"},ef.ZT.base),{fontSize:16,fontWeight:600,color:eh.w.gray80}),planName:Object.assign(Object.assign({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},ef.ZT.paragraph3Medium),{color:eh.w.neutral700}),content:{margin:"0 5px"},usages:{display:"grid",gap:5,marginBottom:5},resetInfo:Object.assign(Object.assign({display:"grid",gap:10},ef.ZT.smallPrint1Medium),{gridTemplateRows:"1fr auto",paddingTop:"10px",color:eh.w.neutral700}),managePlanLink:{fontWeight:600,textDecoration:"underline","&:hover, &:focus":{color:eh.w.blue,outline:"none"}}}),Usages=e=>{let t=e.isPlanMetered&&e.numTasks>e.numFreeTasksMax;return(0,x.U)("div",{css:t$.usages},(0,x.U)(UniversalSidebarUsage_UsageBar,{label:e.isPlanMetered?"Included Tasks":"Tasks",max:e.isPlanMetered?e.numFreeTasksMax:e.numTasksMax,value:e.isPlanMetered?Math.min(e.numTasks,e.numFreeTasksMax):e.numTasks}),t&&(0,x.U)(UniversalSidebarUsage_UsageBar,{label:"Extra Tasks",max:e.numTasksMax-e.numFreeTasksMax,value:e.numTasks-e.numFreeTasksMax}),(0,x.U)(UniversalSidebarUsage_UsageBar,{label:"Zaps",max:e.numZapsMax,value:e.numZaps}))};var UniversalSidebarUsage_UniversalSidebarUsage=({numTasks:e,numTasksMax:t,numZaps:n,numZapsMax:i,resetDate:a,children:o,trialPlanName:s,trialPlanEndDate:l,isPlanMetered:u=!1,numFreeTasksMax:c=0,managePlanHref:d="/app/settings/billing",managePlanLabel:p="Manage plan",title:h="Usage"})=>{let{getFullyQualifiedURL:f}=useUniversalNavContext(),g=(0,X.lF)(Date.now(),a,!1);return(0,x.U)("section",{css:t$.root},(0,x.U)("div",{css:t$.header},(0,x.U)(eQ.J,{name:"miscWallet",size:30}),(0,x.U)("h3",{css:t$.planName},s?`${s} plan (Trial)`:h)),(0,x.U)("div",{css:t$.content},(0,x.U)(Usages,Object.assign({},{isPlanMetered:u,numFreeTasksMax:c,numTasks:e,numTasksMax:t,numZaps:n,numZapsMax:i})),(0,x.U)("p",{css:t$.resetInfo},(0,x.U)("span",null,s&&l?`Trial ends on ${(0,X.o0)(l,"default")}`:`Monthly usage resets in ${g}`),(0,x.U)(W.r,{href:f(d)},p))),o)};let tN=(0,y.iv)({border:`1px solid ${eh.w.neutral300}`,marginTop:10,marginBottom:10}),Divider=()=>(0,x.U)("hr",{css:tN});var tz=n(17712);let isLinkSelected=(e,t)=>{let n;if(t.startsWith("/"))return(0,tz._b)(e).endsWith((0,tz._b)(t));try{n=new URL(t)}catch(n){return(0,tz._b)(e).endsWith((0,tz._b)(t))}let i=n.hostname;return"zapier.com"===i||"zapier-staging.com"===i?(0,tz._b)(e).endsWith((0,tz._b)(n.pathname)):i.split(".").length>2?e.includes(i):(0,tz._b)(e).endsWith((0,tz._b)(t))},LinksV2=e=>{var t;return C.createElement(C.Fragment,null,null===(t=e.links)||void 0===t?void 0:t.map(t=>{let n=isLinkSelected(t.href||"",e.selectedHref),i=t.icon;return"object"==typeof i&&(i=n?i.selected:i.unselected),C.createElement("li",{key:t.text},C.createElement(UniversalNavLink_UniversalNavLink,{href:t.href,icon:i,isCollapsed:e.isCollapsed,isSelected:n,isSidebar:!0,text:t.text}))}))},LinksV3=e=>C.createElement(C.Fragment,null,e.links.map((t,n)=>C.createElement(C.Fragment,{key:n},C.createElement("li",{"aria-hidden":"true",key:n},C.createElement(Divider,null)),null==t?void 0:t.map(t=>{let n=isLinkSelected(t.href||"",e.selectedHref),i=n?t.iconFilled:t.icon;return C.createElement("li",{key:t.text},C.createElement(UniversalNavLink_UniversalNavLink,{href:t.href,icon:i,isCollapsed:e.isCollapsed,isSelected:n,isSidebar:!0,isV3Link:!0,text:t.text,tag:t.tag}))}))),e.renderCallout&&C.createElement("li",{key:"callout"},C.createElement(Divider,null),e.renderCallout()));var UniversalSidebar_InAppLinks=({isCollapsed:e,links:t,renderCallout:n,selectedHref:i})=>{let a=Array.isArray(t[0])?C.createElement(LinksV3,{isCollapsed:e,links:t,renderCallout:n,selectedHref:i}):C.createElement(LinksV2,{isCollapsed:e,links:t,selectedHref:i});return a};let tH=(0,G.B)("UniversalSidebarSubmenu",{summary:[y.iv`
display: block;
border-radius: 15px;
color: ${eh.w.neutral700};
&:hover,
&:focus {
color: ${eh.w.neutral700};
background-color: ${eh.w.cream};
}
&:focus {
outline: solid 2px ${eh.w.brand};
}
outline: solid 2px transparent;
transition: ${ez.f.transitionValue};
`,y.iv`
/* Hides default icon on details element */
&::-webkit-details-marker {
display: none;
}
/* Hide default icon from IE. */
&::before {
display: none;
}
`],summaryInner:y.iv`
${ef.ZT.paragraph3Medium};
line-height: 20px;
cursor: pointer;
display: grid;
grid-template-columns: 1fr auto;
gap: 20px;
align-items: center;
min-height: 50px;
padding: 10px 15px;
white-space: nowrap;
width: 100%;
transition: ${ez.f.transitionValue};
`,caret:y.iv`
transition: ${ez.f.transitionValue};
[open] & {
transform: rotate(-180deg);
}
`,list:y.iv`
display: grid;
grid-template-columns: 100%;
gap: 5px;
padding: 10px 0;
`,link:y.iv`
${ef.ZT.paragraph3Medium};
display: block;
border-radius: 3px;
color: ${eh.w.neutral700};
line-height: 20px;
padding: 10px 15px;
text-decoration: none;
color: ${eh.w.neutral700};
outline: solid 2px transparent;
transition: ${ez.f.transitionValue};
&:hover,
&:focus {
background-color: ${eh.w.cream};
text-decoration: none;
}
&:hover {
outline: solid 2px transparent;
}
&:focus {
outline: solid 2px ${eh.w.brand};
}
`,linkInner:y.iv`
transform: translateY(1px);
padding-left: 16px;
`,linkTitle:y.iv`
display: block;
text-decoration: none;
outline: none;
`,linkDescription:y.iv`
display: block;
color: ${eh.w.neutral700};
margin-top: 5px;
font-size: 12px;
line-height: 15px;
text-decoration: none;
outline: none;
`}),SubmenuLink=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext();return(0,x.U)(W.r,{color:null,css:tH.link,href:e.href?t(e.href):void 0},(0,x.U)("div",{css:tH.linkInner},(0,x.U)("p",{css:tH.linkTitle},e.text),e.description&&(0,x.U)("p",{css:tH.linkDescription},e.description)))};var UniversalSidebarSubmenu_UniversalSidebarSubmenu=e=>{let t=e.links.map(e=>(0,x.U)("li",{key:e.text},(0,x.U)(SubmenuLink,Object.assign({},e)),e.submenu&&(0,x.U)("ul",null,e.submenu.map(e=>(0,x.U)("li",{key:e.text,style:{paddingLeft:"16px"}},(0,x.U)(SubmenuLink,Object.assign({},e)))))));return(0,x.U)("details",null,(0,x.U)("summary",{css:tH.summary},(0,x.U)("div",{css:tH.summaryInner},(0,x.U)("span",null,e.text),(0,x.U)("span",{css:tH.caret},(0,x.U)(eQ.J,{isBlock:!0,name:"arrowSmallDown",size:24})))),(0,x.U)("ul",{css:tH.list},t))},UniversalSidebar_OutOfAppLinks=({isCollapsed:e,navigationItems:t})=>C.createElement(C.Fragment,null,t.map(t=>{let n;if("link"===t.variant&&(n=C.createElement(UniversalNavLink_UniversalNavLink,{href:t.href,isCollapsed:e,isSelected:!1,isSidebar:!0,text:t.text})),"variant-a"===t.variant){let e=t.heroArea.submenu.map(e=>({href:e.href||null,text:e.text})),i={href:t.promoArea.header.href||null,text:t.promoArea.header.heading,submenu:t.promoArea.submenu.map(e=>({href:e.href||null,text:e.tag?`${e.text} (${e.tag})`:e.text}))},a=[...e,i];n=C.createElement(UniversalSidebarSubmenu_UniversalSidebarSubmenu,{links:a,text:t.text})}if("product-2"===t.variant){let e=t.heroArea.submenu.map(e=>{var t;let n=null===(t=e.submenu)||void 0===t?void 0:t.map(e=>Object.assign(Object.assign({},e),{description:void 0})),i=e.text[0].toUpperCase()+e.text.slice(1).toLowerCase();return{href:null,submenu:n,text:i}}),i={href:t.promoArea.header.href||null,text:t.promoArea.header.heading,submenu:t.promoArea.submenu.map(e=>({href:e.href||null,text:e.tag?`${e.text} (${e.tag})`:e.text}))},a=[...e,i];n=C.createElement(UniversalSidebarSubmenu_UniversalSidebarSubmenu,{links:a,text:t.text})}return("variant-b"===t.variant||"variant-c"===t.variant)&&(n=C.createElement(UniversalSidebarSubmenu_UniversalSidebarSubmenu,{links:t.submenu,text:t.text})),n?C.createElement("li",{key:t.text},n):null}));let tQ=(0,G.B)("UniversalSidebar",{root:({isCollapsed:e,isFullWidth:t,isShadowed:n})=>[{position:"relative",display:"flex",flexDirection:"column",backgroundColor:eh.w.neutral100,padding:"30px 10px 0 10px",willChange:"transform, width"},!t&&(0,ep.Q)("constrainedWidth",{width:300,maxWidth:"100vw"}),!t&&(0,ep.Q)("bordered",{"&::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,width:1,backgroundColor:eh.w.gray20}}),n&&(0,ep.Q)("shadowed",{"&::after":{content:'""',position:"absolute",top:0,left:"100%",bottom:0,width:10,pointerEvents:"none",background:`linear-gradient(
90deg,
rgba(0, 0, 0, 0.10) 0%,
rgba(0, 0, 0, 0.03) 50%,
rgba(0, 0, 0, 0.00) 100%
)`}}),e&&(0,ep.Q)("collapsed",{width:70,overflow:"visible"})],header:{flex:"none"},content:({isCollapsed:e,isV3:t})=>[{overflow:"auto",paddingTop:t?5:20,paddingBottom:5,flexBasis:"auto",flexShrink:1,flexGrow:0,scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"}},e&&(0,ep.Q)("collapsed",{overflow:"visible"})],links:({isCollapsed:e,isV3:t})=>[Object.assign({alignContent:"start",display:"grid",gap:t?5:10,listStyle:"none"},!e&&{padding:"0 2px"})],footer:{flex:"none",paddingBottom:20}});var UniversalSidebar_UniversalSidebar=({inAppLinks:e,isCollapsed:t=!1,isFullWidth:n=!0,isShadowed:i,isV3:a=!1,onClick:o,onMouseEnter:s,onMouseLeave:l,outOfAppLinks:u,renderCallout:c,renderFooter:d=()=>null,renderSubheader:p,selectedHref:h=""})=>{let f=p&&p(),g=f&&(0,x.U)("div",{css:tQ.header},f),m=d(),v=m&&(0,x.U)("div",{css:tQ.footer,role:"region"},(0,x.U)(Divider,null),m);return(0,x.U)("nav",Object.assign({"aria-label":"Site Links",css:tQ.root({isCollapsed:t,isFullWidth:n,isShadowed:i}),"data-testid":"universalSidebar"},{onClick:o,onMouseEnter:s,onMouseLeave:l}),g,(0,x.U)("div",{css:tQ.content({isCollapsed:t,isV3:a})},(0,x.U)("ul",{css:tQ.links({isCollapsed:t,isV3:a})},u?(0,x.U)(UniversalSidebar_OutOfAppLinks,{isCollapsed:t,navigationItems:u}):(0,x.U)(UniversalSidebar_InAppLinks,{isCollapsed:t,links:e,renderCallout:c,selectedHref:h}))),v)},UniversalSidebarContainer_rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n};let infinitize=e=>-1===e?1/0:e,MaybeCta=e=>{let t=0===e.planAmount,n=e.numTasks/e.numTasksMax>=.8,i=e.numZaps/e.numZapsMax>=.8;return t||n||i?(0,x.U)(eN.z,{color:"secondary",href:e.upgradeLink,isFullWidth:!0,size:"small"},"Upgrade plan"):null},tq=(0,G.B)("UniversalSidebarContainer",{footerWrapper:{overflow:"hidden",padding:10},tOSWrapper:{whiteSpace:"initial",background:eh.w.neutral200,border:`1px solid ${eh.w.neutral300}`,borderRadius:10,padding:15},tOSHeader:{display:"flex",justifyContent:"space-between",marginBottom:20},tOSHeading:{display:"flex",alignItems:"center"},tOSDismissalIconButton:{display:"flex",alignItems:"center","&:focus":{outline:`1px solid ${eh.w.blue}`}},tOSDismissalButton:{color:`${eh.w.blue}`,textDecoration:"underline","&:focus":{outline:`1px solid ${eh.w.blue}`}}}),MaybeTOS=()=>{let e="design-system-tos-notification-2022-11-15",t=localStorage.getItem("versionOfTermsDismissed")===e,handleDismiss=()=>{localStorage.setItem("versionOfTermsDismissed",e)},{getFullyQualifiedURL:n,shouldRenderTOS:i}=useUniversalNavContext();return i&&!1===t?(0,x.U)(C.Fragment,null,(0,x.U)(Divider,null),(0,x.U)("div",{css:tq.tOSWrapper},(0,x.U)("div",{css:tq.tOSHeader},(0,x.U)("div",{css:tq.tOSHeading},(0,x.U)(eQ.J,{ariaHidden:!0,color:"blueJeans",name:"alertInfoFill",size:18}),(0,x.U)(HeadingLevel,null,(0,x.U)(e6.x,{margin:"0 0 0 5px",tag:eX.X,type:"smallPrint1Semibold"},"Updated Terms"))),(0,x.U)("button",{"aria-label":"Dismiss notification",css:tq.tOSDismissalIconButton,onClick:handleDismiss,type:"button"},(0,x.U)(eQ.J,{ariaHidden:!0,color:"neutral800",name:"formX",size:24}))),(0,x.U)(e6.x,{tag:"p",type:"smallPrint1"},"We updated the"," ",(0,x.U)(W.r,{href:n("/legal/terms-of-service")},"Zapier Terms of Service")," ","on November 15, 2022. For existing users, these updated terms will be effective beginning on December 15, 2022. By continuing to use Zapier, you agree to these updated terms."," ",(0,x.U)("button",{css:tq.tOSDismissalButton,type:"button",onClick:handleDismiss},"Dismiss")))):null},FooterWrapper=({children:e})=>(0,x.U)("div",{css:tq.footerWrapper},e);var UniversalSidebar_UniversalSidebarContainer=e=>{var t,{currentAccountId:n}=e,i=UniversalSidebarContainer_rest(e,["currentAccountId"]);let{getFullyQualifiedURL:a}=useUniversalNavContext(),{data:o,isError:s}=useQueryAccount(n),{data:l,isError:u}=useQueryAccountUsage(n),{data:c,isError:d}=useQueryAccountPlan(n,null===(t=null==o?void 0:o.plan)||void 0===t?void 0:t.id),{sideNavData:p}=useQuerySidebar(),h=(0,x.U)(UniversalNavLink_UniversalNavLink,{href:D.href,icon:"object"==typeof D.icon?D.icon.selected:D.icon,isCollapsed:i.isCollapsed,isSelected:isLinkSelected(D.href||"",i.selectedHref),isSidebar:!0,text:D.text}),f=Array.isArray(p),g=!f&&p.createOptions?(0,x.U)(CreateDropdown,{isCollapsed:i.isCollapsed,items:p.createOptions}):(0,x.U)(UniversalSidebar_UniversalSidebarSubheaderButton,{href:a("/webintent/create-zap?entry-point-method=make_a_zap_call_to_action"),iconName:"formAdd",isCollapsed:i.isCollapsed,text:"Create Zap"}),m=!f&&!i.isCollapsed&&p.callout;return(0,x.U)(UniversalSidebar_UniversalSidebar,Object.assign({},i,{inAppLinks:f?p:p.itemGroups,isV3:!f,renderCallout:m?()=>(0,x.U)(Callout,Object.assign({},p.callout)):void 0,onClick:()=>emitUserInteractionEvent({event_action:"click",option_selected:"UniversalSidebar CreateZapButton"}),renderFooter:()=>{if(!o)return null;if(i.isCollapsed)return h;if(s||d||u)return(0,x.U)(C.Fragment,null,h,(0,x.U)(FooterWrapper,null,(0,x.U)(UniversalSidebar_UniversalSidebarError,null,"An error has occurred"),(0,x.U)(MaybeTOS,null)));if(!l||!c)return null;let{plan:e,isTrialing:t,trialEndDate:n,isTrialingTeams:p,teamTrialEndDate:f,isTrialingCompanies:g,companiesTrialEndDate:m}=o,{meteredPricingTiers:v}=c,b=v&&v.find(e=>0===e.pricePerTask),y=b?b.numTasks:0,U={isPlanMetered:e.hasMeteredBilling,numTasks:l.tasks.total,numFreeTasksMax:y,numTasksMax:infinitize(l.tasks.limit),numZaps:l.zaps.on,numZapsMax:infinitize(l.zaps.limit)},w=p?f:g?m:n;return(0,x.U)(FooterWrapper,null,(0,x.U)(UniversalSidebarUsage_UniversalSidebarUsage,Object.assign({},U,{resetDate:l.periodEnd,title:`${e.name} Plan`,trialPlanName:p?"Team":g?"Company":t?"Professional":void 0,trialPlanEndDate:null!=w?w:void 0}),(0,x.U)(MaybeCta,Object.assign({},U,{planAmount:e.amount,upgradeLink:a("/app/pricing")})),(0,x.U)(MaybeTOS,null)))},renderSubheader:()=>g}))};let prepareAccountsListData=(e,t)=>{let n=e.results,i=t.objects,a=n.map(e=>{let t=e.logo_url,n=e.name;if(!1===e.plan_info.allow_teams){n=e.owner.name;let a=i.find(t=>t.id===e.owner.id);a&&(t=a.photo_url)}return{id:e.id,normalizedImageUrl:t,normalizedName:n}}),o=Object.values(a).filter(e=>void 0===e).length>0;if(o)throw Error("Invalid input JSON");return a};async function fetchData(e){let t=await fetch(`${e}/api/v4/accounts?limit=9999`,{credentials:"include"}),n=await fetch(`${e}/api/v3/profiles`,{credentials:"include"});if(!t.ok||!n.ok)throw Error("Network response was not ok");let i=await t.json(),a=await n.json();return prepareAccountsListData(i,a)}let useQueryAccountsList=()=>{let{accountsListData:e,apiHostname:t}=useUniversalNavContext(),n=useQuery({queryKey:["accounts"],queryFn:()=>fetchData(t),enabled:!e,initialData:e});return Object.assign(Object.assign({},n),{isLoading:n.isInitialLoading})};var tZ=n(41273);let tW=createUniqueClassName("AccountsMenu","details"),tV=(0,G.B)("AccountsMenu",{root:{position:"relative"},accounts:{borderBottom:`1px solid ${eh.w.neutral300}`,marginBottom:10,paddingBottom:10,overflow:"auto",maxHeight:"calc(60px * 3.5)"},summary:{position:"relative",display:"block",cursor:"pointer",transition:ez.f.transitionValue,"&::-webkit-details-marker":{display:"none"}},menuContainer:{padding:10,width:300},email:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"0 10px"},ef.ZT.smallPrint1Semibold),{color:eh.w.neutral600,marginBottom:10}),emailText:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}}),renderAccountSwitchMenu=(e,t,n,i)=>(0,x.U)("div",{css:tV.accounts},e.map(e=>{let a=e.id===t;return(0,x.U)(UniversalNavLink_UniversalNavLink,{href:e.accountSwitcherUrl,isSelected:a,key:e.id,onClick:t=>{n&&n(e,t),i(!1)},renderBeforeText:()=>(0,x.U)("div",{css:tV.avatar},(0,x.U)(tZ.q,{isBlock:!0,isSelected:a,name:e.name,shouldLazilyLoad:!1,size:40,url:e.imageUrl})),role:"menuitem",text:e.name})})),renderMenuLinks=(e,t)=>e.map(e=>(0,x.U)(UniversalNavLink_UniversalNavLink,{href:e.href,icon:"object"==typeof e.icon?e.icon.selected:e.icon,key:e.text,onClick:()=>t(!1),role:"menuitem",text:e.text,target:e.target})),tK={id:-1,name:"⋯",accountSwitcherUrl:"/"};var AccountsMenu_AccountsMenu=({accounts:e,email:t,currentAccountId:n,hasWhiteBackground:i,menuLabel:a="Accounts Settings",menuLinks:o=$,onAccountClick:s,size:l="medium"})=>{let[u,c]=(0,C.useState)(!1),[d]=(0,eZ.O)({onClickOutside:()=>c(!1)}),p=e.find(e=>e.id===n)||tK;return(0,x.U)("div",{css:tV.root},(0,x.U)("details",{className:tW,"data-testid":"accountsMenu",open:u,ref:e=>d(e)},(0,x.U)("summary",{"aria-haspopup":"menu","aria-label":a,css:tV.summary,"data-testid":"accounts-menu-summary",onClick:e=>{e.preventDefault(),c(!u)},tabIndex:0},(0,x.U)(eH.p,{content:p.name,isBlock:!0,position:"west",shouldCorrectPosition:!1,tooltipId:"tooltip-accounts-menu"},({childProps:e})=>(0,x.U)("div",Object.assign({},(0,td.v)(e)),(0,x.U)(tZ.q,{isBlock:!0,isInteractive:!0,isSelected:u,name:p.name,shouldLazilyLoad:!1,size:"small"===l?25:40,url:p.imageUrl})))),(0,x.U)(tS.f,{align:"right",hasWhiteBackground:i,position:"south",borderRadius:10},(0,x.U)("div",{css:tV.menuContainer,role:"menu"},(0,x.U)("div",{css:tV.email},(0,x.U)("span",{css:tV.emailText},t)),e.length>1&&renderAccountSwitchMenu(e,n,s,c),renderMenuLinks(o,c)))))},AccountsMenu_AccountsMenuContainer=e=>{let{getFullyQualifiedURL:t}=useUniversalNavContext(),{data:n}=useQueryAccountsList(),{data:i}=useQuerySession(),a=(n||[]).map(e=>({id:e.id,name:e.normalizedName,imageUrl:e.normalizedImageUrl,accountSwitcherUrl:t(`/switch-account?account=${e.id}&next=${window.location.href}`)})),o=[...$.map(e=>Object.assign(Object.assign({},e),{href:t(e.href)||null}))];a.length>1&&o.unshift(B);let s=(null==i?void 0:i.email)||"";return(0,x.U)(AccountsMenu_AccountsMenu,Object.assign({accounts:a,email:s,menuLinks:o},e))};let tG=[{shouldRender:e=>e.currentUrl.includes("/login"),makeRenderer:e=>t=>{let n=e.currentUrl.includes("/reauthenticate");return C.createElement(UniversalTopbar_AccountActions,{selectedHref:e.currentUrl,shouldRenderSignIn:!1,shouldRenderSignUp:!n,signupHref:e.signupHref,size:t.size})}},{shouldRender:e=>e.currentUrl.includes("/sign-up"),makeRenderer:e=>t=>C.createElement(UniversalTopbar_AccountActions,{loginHref:e.loginHref,selectedHref:e.currentUrl,shouldRenderSignIn:!0,shouldRenderSignUp:!1,size:t.size})},{shouldRender:e=>e.currentUrl.includes("/onboarding"),makeRenderer:()=>()=>null},{shouldRender:e=>e.isLoggedIn,makeRenderer:e=>t=>{let n=!e.currentUrl.includes("/app/")&&e.canTopbarFitBackToAppButton&&C.createElement(Z.Consumer,null,e=>C.createElement(BrandButton,{href:e.getFullyQualifiedURL("/app/zaps"),id:"back-to-app"},"My Zaps"));return C.createElement(C.Fragment,null,n,C.createElement(AccountsMenu_AccountsMenuContainer,{currentAccountId:e.currentAccountId,size:t.size}))}},{shouldRender:e=>!e.isLoggedIn&&e.isLoadingLoggedIn,makeRenderer:()=>()=>C.createElement("div",{"data-testid":"accounts-loader"},C.createElement(tu.$,{color:"black"}))}];var utils_findAccountsMenuRenderer=e=>{let t=tG.find(t=>t.shouldRender(e));return t&&t.makeRenderer(e)};let tJ=[{shouldRender:e=>!e.isLoggedIn||e.currentUrl.includes("/onboarding"),makeRenderer:()=>()=>null},{shouldRender:e=>e.isLoggedIn,makeRenderer:e=>t=>e.renderNotifications(t)}];var utils_findNotificationsRenderer=e=>{let t=tJ.find(t=>t.shouldRender(e));return t&&t.makeRenderer(e)};let hasBody=()=>"undefined"!=typeof document&&!!document.body;var hooks_useUnscrollableBody=({shouldAllowScroll:e})=>{(0,C.useEffect)(()=>(hasBody()&&(document.body.style.overflow=e?"":"hidden"),()=>{hasBody()&&(document.body.style.overflow="")}),[e])};let tX="My Zaps",tY="Log in",t0="Sign up",t1=(0,G.B)("UniversalNav",{root:({isV3TopbarResponse:e,shouldHeaderStickToTop:t})=>[y.iv`
position: sticky;
z-index: ${950};
top: -${60}px;
@media (min-width: 450px) {
top: -${70}px;
}
`,e&&y.iv`
// - Styles 'My Zaps' button: https://gitlab.com/zapier/design-systems/design-system/-/blob/main/packages/universal-layout/src/universal-nav/utils/findAccountsMenuRenderer.tsx#L47-52
& #back-to-app {
border-radius: 40px;
&::before {
border-radius: 42px;
}
& span {
${ef.ZT.paragraph1Semibold};
color: ${eh.w.neutral100};
line-height: 24px;
}
}
// - Styles 'Sign up' button: https://gitlab.com/zapier/design-systems/design-system/-/blob/main/packages/universal-layout/src/universal-nav/components/UniversalTopbar/AccountActions.tsx#L84-91
& #universalnav-signup {
border-radius: 40px;
&::before {
border-radius: 42px;
}
& span {
${ef.ZT.paragraph1Semibold};
color: ${eh.w.neutral100};
line-height: 24px;
}
}
`,t&&(0,ep.Q)("stuck-to-top",y.iv`
top: 0;
`)],sidebarCtaButtons:y.iv`
display: grid;
grid-template-columns: 1fr fr;
gap: 10px;
`,forceMenuCollapseButton:y.iv`
margin-left: 5px;
`,sidebarWrapper:({isFixed:e,isFullWidth:t})=>[y.iv`
position: absolute;
display: flex;
align-items: stretch;
// Push beneath UniversalTopbar border so the border is seen.
margin-top: 1px;
top: 100%;
left: 0;
height: 100vh;
will-change: height;
transition: height 300ms linear;
`,e&&!t&&y.iv`
position: fixed;
top: 0;
bottom: 0;
height: auto;
`,t&&y.iv`
width: 100%;
`]}),copyQueryString=(e,t)=>(0,tz.Sr)(t,(0,tz.k)(e),!0),Sidebar=e=>{var t;let{getFullyQualifiedURL:n,shouldRenderAccessibleSidebar:i,setIsCreateMenuOpen:a}=useUniversalNavContext(),[o,s]=(0,C.useState)(!0),l="small"===e.size,u=!l&&!e.isSidebarForcedOpen&&!e.isSidebarControlledByTopbar&&o,c={isCollapsed:u,isFullWidth:l,isShadowed:l||!e.isSidebarForcedOpen&&!u,onClick:e.onClick,onMouseEnter:()=>{window.matchMedia("(hover: hover)").matches&&s(!1)},onMouseLeave:()=>{window.matchMedia("(hover: hover)").matches&&(s(!0),a(!1))},selectedHref:e.currentUrl,skipLinkHref:e.skipLinkHref},d=e.isLoggedIn&&e.currentAccountId&&(e.isOnAppPage||e.shouldRenderTopbarLinks);hooks_useUnscrollableBody({shouldAllowScroll:!l&&!c.isShadowed||i});let p=n(`${null===(t=e.callToAction)||void 0===t?void 0:t.href}?demo_source=cs_nav_header_${e.currentUrl}`)||"",handleCallToActionClick=e=>{emitUserInteractionEvent({event_action:"click",option_selected:`UniversalDynamicTopbar: ${e}`})},h=n("/app/zaps"),f=n(e.loginHref),g=n(e.signupHref),m=d?(0,x.U)(UniversalSidebar_UniversalSidebarContainer,Object.assign({},c,{currentAccountId:e.currentAccountId})):(0,x.U)(UniversalSidebar_UniversalSidebar,Object.assign({},c,{outOfAppLinks:e.links,renderFooter:()=>{if("small"===e.size&&!u){if(!e.isLoggedIn)return(0,x.U)("div",{css:t1.sidebarCtaButtons},e.callToAction&&(0,x.U)(eN.z,{color:"secondary",href:p,onClick:()=>{var t;return handleCallToActionClick(`${null===(t=e.callToAction)||void 0===t?void 0:t.text} to ${p}`)},size:"small"},e.callToAction.text),(0,x.U)(eN.z,{color:"secondary",href:f,size:"small",onClick:()=>handleCallToActionClick(`${tY} ${f}`)},tY),(0,x.U)(eN.z,{color:"primary",href:g,size:"small",onClick:()=>handleCallToActionClick(`${t0} ${g}
)}`)},t0));if(e.isLoggedIn&&!e.isOnAppPage)return(0,x.U)("div",{css:t1.sidebarCtaButtons},e.callToAction&&(0,x.U)(eN.z,{color:"secondary",href:p,isFullWidth:!0,size:"medium",onClick:()=>{var t;return handleCallToActionClick(`${null===(t=e.callToAction)||void 0===t?void 0:t.text} to ${p}`)}},e.callToAction.text),(0,x.U)(eN.z,{color:"primary-alt",href:h,isFullWidth:!0,size:"medium",onClick:()=>handleCallToActionClick(`${tX} ${h}`)},tX))}return null}})),v={height:e.height};return(0,x.U)("div",{css:t1.sidebarWrapper({isFixed:e.isFixed,isFullWidth:l}),style:v},m)},UniversalNav=({renderNotifications:e=()=>null,skipLinkHref:t=Q})=>{var n;let{canTopbarFitBackToAppButton:i,canForceSidebarOpen:a,currentAccountId:o,currentUrl:s,isLoadingTopNav:l,isOnAppPage:u,isSearchFullWidth:c,isSidebarForcedOpen:d,isSidebarControlledByTopbar:p,isSidebarOpenedByTopbar:h,mode:f,onToggleSidebarVisibility:g,setIsSidebarForcedOpen:m,setIsSidebarOpenedByTopbar:v,setIsSidebarRendered:b,shouldRenderCallToAction:y,shouldRenderSearch:U,shouldRenderSidebar:w,shouldRenderAccessibleSidebar:k,shouldRenderTopbarLinks:S,topbarSize:O,topNavData:T}=useUniversalNavContext(),{data:L,isLoading:_}=useQuerySession(),A=null!==(n=null==L?void 0:L.isLoggedIn)&&void 0!==n&&n,P=shouldRenderTopbarLinksForRoute({currentUrl:s,mode:f});(0,C.useEffect)(()=>(b(w),()=>{b(!1)}),[b,w]);let I=l?[{text:"",href:"",variant:"link"}]:T.topBarMenu,E=copyQueryString(s,H),M=copyQueryString(s,z),R=utils_findAccountsMenuRenderer({canTopbarFitBackToAppButton:i,currentAccountId:o,currentUrl:s,isLoadingLoggedIn:_,isLoggedIn:A,loginHref:E,signupHref:M}),j=utils_findNotificationsRenderer({currentUrl:s,isLoggedIn:A,renderNotifications:e}),F=U?void 0:()=>void 0,[D,B]=(0,C.useState)(1/0),$=(0,C.useRef)(null);(0,C.useEffect)(()=>{let setNavBottom=()=>{$.current&&B($.current.getBoundingClientRect().bottom)};return setNavBottom(),document.addEventListener("scroll",setNavBottom,{capture:!0}),window.addEventListener("resize",setNavBottom,{capture:!0}),()=>{document.removeEventListener("scroll",setNavBottom,{capture:!0}),window.removeEventListener("resize",setNavBottom,{capture:!0})}},[]);let closeSidebar=()=>{v(!1)},closeSidebarOnTriggerClick=e=>{var t;let n=e.target,i=null===(t=n.parentElement)||void 0===t?void 0:t.classList.contains("sidebar-create-menu-button"),a=n.closest('a, button, label, [role="button"]');h&&a&&!i&&closeSidebar()},renderSidebar=e=>{let n=d?"Close Sidebar":"Open Sidebar",i=d?"formX":"navMenu",l=g?(0,x.U)(MenuCollapseButton_MenuCollapseButton,{ariaExpanded:h,icon:h?"formX":"navMenu",label:"Menu",onClick:g}):a?(0,x.U)("div",{css:t1.forceMenuCollapseButton},(0,x.U)(MenuCollapseButton_MenuCollapseButton,{ariaExpanded:d,icon:i,label:n,onClick:()=>m(!d)})):null,c=I||[],f=w&&(0,x.U)(Sidebar,{callToAction:y?T.callToAction:void 0,currentAccountId:o,currentUrl:s,height:`calc(100vh - ${Math.max(0,D)}px)`,isFixed:!1,isLoggedIn:A,isOnAppPage:u,isSidebarControlledByTopbar:p,isSidebarForcedOpen:d,links:c,loginHref:E,onClick:closeSidebarOnTriggerClick,shouldRenderTopbarLinks:S,signupHref:M,size:e.size||O,skipLinkHref:t}),v=k&&(0,x.U)(ev.T,null,(0,x.U)("div",{"data-testid":"hidden-sidebar"},(0,x.U)(Sidebar,{currentAccountId:o,currentUrl:s,height:`calc(100vh - ${Math.max(0,D)}px)`,isFixed:D<=0,isLoggedIn:A,isOnAppPage:u,isSidebarControlledByTopbar:p,isSidebarForcedOpen:d,links:c||[],loginHref:E,onClick:closeSidebarOnTriggerClick,shouldRenderTopbarLinks:S,signupHref:M,size:e.size||O,skipLinkHref:t})));return(l||f)&&(0,x.U)(C.Fragment,null,l,f,v)},[N,q]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{q(!0)},[]),(0,x.U)("div",{css:t1.root({isV3TopbarResponse:!!T.linksInApp,shouldHeaderStickToTop:P}),key:N?"has-mounted":"has-not-mounted",ref:$},l?(0,x.U)(TopbarLoadingState_TopbarLoadingState,{isSearchFullWidth:c,links:S?I:[],onClick:closeSidebarOnTriggerClick,onClickOutside:closeSidebar,renderAccountMenu:R,renderSearchForm:F,renderSidebar:renderSidebar,selectedHref:s,size:O,skipLinkHref:t}):(0,x.U)(UniversalTopbar_UniversalTopbar,{isSearchFullWidth:c,links:S?I:[],onClick:closeSidebarOnTriggerClick,onClickOutside:closeSidebar,renderAccountMenu:R,renderNotifications:j,renderSearchForm:F,renderSidebar:renderSidebar,selectedHref:s,size:O,skipLinkHref:t}))},t2={root:y.iv`
display: block;
`,alertBanner:y.iv`
&:empty {
display: none;
}
`,grid:y.iv`
min-height: 100vh;
display: grid;
grid-template-columns: 100%;
grid-template-rows: auto 1fr auto;
grid-template-areas:
'head'
'main'
'foot';
gap: 0;
`,gridWithSidebar:e=>y.iv`
grid-template-columns: ${e}px 1fr;
grid-template-areas:
'head head'
'.... main'
'.... foot';
`,head:e=>[y.iv`
grid-area: head;
// Stickiness is handled by UniversalNav but needs
// to be reinforced here to work properly.
position: sticky;
z-index: ${950};
top: -${60}px;
@media (min-width: 450px) {
top: -${70}px;
}
`,e&&(0,ep.Q)("stuck-to-top",y.iv`
top: 0;
`)],main:y.iv`
grid-area: main;
position: relative;
`,foot:y.iv`
grid-area: foot;
`},UniversalLayoutInner=e=>{let{sidebarWidth:t}=useUniversalNavContext(),n=shouldRenderTopbarLinksForRoute({currentUrl:e.currentUrl,mode:e.mode});return(0,x.U)("div",{css:t2.root},e.renderAlertBanner&&(0,x.U)("div",{css:t2.alertBanner,"data-testid":"UniversalLayoutAlertBanner"},e.renderAlertBanner(e)),(0,x.U)("div",{css:[t2.grid,t&&t2.gridWithSidebar(t)]},e.renderHeader&&(0,x.U)("div",{css:t2.head(n)},e.renderHeader(e)),(0,x.U)("main",{css:t2.main,id:e.mainContentId},e.children),e.renderFooter&&(0,x.U)("div",{css:t2.foot},e.renderFooter(e))))},UniversalLayout=({children:e,currentUrl:t,trackEvent:n,accountData:i,accountsListData:a,apiHostname:o="",mainContentId:s="mainContent",mode:l,sessionData:u,shouldRenderAlphabetNav:c,shouldRenderSeoLinks:d,shouldRenderTOS:p,showSimplifiedFooter:h,urlPathPrefix:f,renderAlertBanner:g=e=>(0,x.U)(AlertBanner,{trackEvent:e.trackEvent}),renderNotifications:m=()=>null,renderHeader:v=e=>(0,x.U)(UniversalNav,{renderNotifications:e.renderNotifications,skipLinkHref:`#${e.mainContentId}`}),renderFooter:b=e=>(0,x.U)(UniversalFooter,{shouldRenderAlphabetNav:e.shouldRenderAlphabetNav,shouldRenderSeoLinks:e.shouldRenderSeoLinks,showSimplifiedFooter:e.showSimplifiedFooter})})=>(0,x.U)(UniversalLayoutQueryContainer,null,(0,x.U)(UniversalNavProvider,{accountData:i,accountsListData:a,currentUrl:t,urlPathPrefix:f,sessionData:u,mode:l,shouldRenderTOS:p,apiHostname:o},(0,x.U)(UniversalLayoutInner,Object.assign({},{children:e,currentUrl:t,trackEvent:n,accountData:i,accountsListData:a,apiHostname:o,mainContentId:s,mode:l,sessionData:u,shouldRenderAlphabetNav:c,shouldRenderSeoLinks:d,shouldRenderTOS:p,showSimplifiedFooter:h,urlPathPrefix:f,renderAlertBanner:g,renderNotifications:m,renderHeader:v,renderFooter:b}))))},11280:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserAgentContext=void 0;var a=i(n(2784)),o="undefined"!=typeof window?navigator.userAgent:"";t.UserAgentContext=a.default.createContext(o)},64714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11280);Object.defineProperty(t,"UserAgentContext",{enumerable:!0,get:function(){return i.UserAgentContext}})},1037:function(e,t,n){"use strict";n(17042);var i=n(17860);Object.defineProperty(t,"Oh",{enumerable:!0,get:function(){return i.useMediaProps}}),n(64714)},17042:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(41738),t)},41738:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return s},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.responsiveStylesFn=t.responsiveStyles=void 0;var a=["small","medium","large","xlarge"];function responsiveStyles(e,t){var n=a.filter(function(n){return t.hasOwnProperty(n)&&a.indexOf(e)>=a.indexOf(n)}).map(function(e){return t[e]});return n.length>0?i(n,[{label:e}]):[]}t.responsiveStyles=responsiveStyles,t.responsiveStylesFn=function(e){return function(t){return responsiveStyles(t,e)}}},56619:function(e,t,n){"use strict";var i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return s};Object.defineProperty(t,"__esModule",{value:!0}),t.findMatchingQueries=t.parseQuery=void 0;var a=n(76635);t.parseQuery=function(e){return e.split("and").map(function(e){return e.trim()}).map(function(e){return e.replace(/[()]/g,"")}).reduce(function(e,t){var n=i(t.split(":"),2),a=n[0],o=void 0===a?"":a,s=n[1];return e[o.trim()]=parseInt(void 0===s?"":s,10),e},{})},t.findMatchingQueries=function(e,n){return a.reduce(n,function(n,i){var a=t.parseQuery(i);return n[i]=[e.width>=(a["min-width"]||0),e.width<=(a["max-width"]||1/0)].every(Boolean),n},{})},t.default=t.findMatchingQueries},67618:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={phone:"phone",phablet:"phablet",tablet:"tablet",desktop:"desktop"},containsAnyUa=function(e){return function(t){if("string"!=typeof t)return!1;var n=t.toLowerCase();return e.map(function(e){return e.toLowerCase()}).some(function(e){return n.includes(e)})}},i=containsAnyUa(["ipad","kfapwi"]),a=containsAnyUa(["nexus"]),o=containsAnyUa(["iphone","mobile"]);t.default=function(e){return i(e)?{deviceType:n.tablet,width:660}:a(e)?{deviceType:n.phablet,width:420}:o(e)?{deviceType:n.phone,width:320}:{deviceType:n.desktop,width:1024}}},17860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56619);Object.defineProperty(t,"findMatchingQueries",{enumerable:!0,get:function(){return i.default}});var a=n(67618);Object.defineProperty(t,"guessUserAgentInfo",{enumerable:!0,get:function(){return a.default}});var o=n(30328);Object.defineProperty(t,"useMediaProps",{enumerable:!0,get:function(){return o.default}})},30328:function(e,t,n){"use strict";var i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return s},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(76635),l=n(2784),u=n(64714),c=o(n(56619)),d=o(n(67618)),mergeProps=function(e){return s.defaultsDeep.apply(void 0,a([{}],e.reverse()))},computeInitialPropsFromUserAgent=function(e,t){var n=d.default(e),i=Object.keys(t),a=c.default(n,i);return mergeProps(i.filter(function(e){return a[e]}).map(function(e){return t[e]}))};t.default=function(e){var t=computeInitialPropsFromUserAgent(l.useContext(u.UserAgentContext),e),n=i(l.useState(t),2),a=n[0],o=n[1];return l.useEffect(function(){var t=Object.keys(e).map(function(t){return{query:t,mediaQueryList:null==window?void 0:window.matchMedia(t),props:e[t]}}),computeProps=function(){var e=mergeProps(t.filter(function(e){var t;return null===(t=null==e?void 0:e.mediaQueryList)||void 0===t?void 0:t.matches}).map(function(e){return e.props}));s.isEqual(e,a)||o(e)};return t.forEach(function(e){var t;(null===(t=null==e?void 0:e.mediaQueryList)||void 0===t?void 0:t.addListener)&&e.mediaQueryList.addListener(computeProps)}),computeProps(),function(){t.forEach(function(e){var t;(null===(t=null==e?void 0:e.mediaQueryList)||void 0===t?void 0:t.removeListener)&&e.mediaQueryList.removeListener(computeProps)})}},[e,a]),a}},49432:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},60091:function(e,t,n){var i=n(13940),a=n(41225),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&a(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},13940:function(e,t,n){var i=n(83043);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},62034:function(e,t,n){var i=n(65067),a=n(95882);e.exports=function baseFlatten(e,t,n,o,s){var l=-1,u=e.length;for(n||(n=a),s||(s=[]);++l<u;){var c=e[l];t>0&&n(c)?t>1?baseFlatten(c,t-1,n,o,s):i(s,c):o||(s[s.length]=c)}return s}},13324:function(e,t,n){var i=n(17297),a=n(33812);e.exports=function(e,t){t=i(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[a(t[n++])];return n&&n==o?e:void 0}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},92602:function(e,t,n){var i=n(93759),a=n(95041);e.exports=function(e,t){return i(e,t,function(t,n){return a(e,n)})}},93759:function(e,t,n){var i=n(13324),a=n(82857),o=n(17297);e.exports=function(e,t,n){for(var s=-1,l=t.length,u={};++s<l;){var c=t[s],d=i(e,c);n(d,c)&&a(u,o(c,e),d)}return u}},82857:function(e,t,n){var i=n(60091),a=n(17297),o=n(39045),s=n(29259),l=n(33812);e.exports=function(e,t,n,u){if(!s(e))return e;t=a(t,e);for(var c=-1,d=t.length,p=d-1,h=e;null!=h&&++c<d;){var f=l(t[c]),g=n;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(c!=p){var m=h[f];void 0===(g=u?u(m,f,h):void 0)&&(g=s(m)?m:o(t[c+1])?[]:{})}i(h,f,g),h=h[f]}return e}},86532:function(e,t,n){var i=n(86874),a=n(83043),o=n(23059),s=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},17297:function(e,t,n){var i=n(86152),a=n(21401),o=n(54452),s=n(66188);e.exports=function(e,t){return i(e)?e:a(e,t)?[e]:o(s(e))}},83043:function(e,t,n){var i=n(38761),a=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},29097:function(e,t,n){var i=n(35676),a=n(43114),o=n(75251);e.exports=function(e){return o(a(e,void 0,i),e+"")}},1369:function(e,t,n){var i=n(17297),a=n(79631),o=n(86152),s=n(39045),l=n(61158),u=n(33812);e.exports=function(e,t,n){t=i(t,e);for(var c=-1,d=t.length,p=!1;++c<d;){var h=u(t[c]);if(!(p=null!=e&&n(e,h)))break;e=e[h]}return p||++c!=d?p:!!(d=null==e?0:e.length)&&l(d)&&s(h,d)&&(o(e)||a(e))}},95882:function(e,t,n){var i=n(50857),a=n(79631),o=n(86152),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||a(e)||!!(s&&e&&e[s])}},21401:function(e,t,n){var i=n(86152),a=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||a(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},77777:function(e,t,n){var i=n(30733);e.exports=function(e){var t=i(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},43114:function(e,t,n){var i=n(49432),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,l=a(o.length-t,0),u=Array(l);++s<l;)u[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(u),i(e,this,c)}}},75251:function(e,t,n){var i=n(86532),a=n(97787)(i);e.exports=a},97787:function(e){var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var a=t(),o=16-(a-i);if(i=a,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},54452:function(e,t,n){var i=n(77777),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,function(e,n,i,a){t.push(i?a.replace(o,"$1"):n||e)}),t});e.exports=s},33812:function(e,t,n){var i=n(4795),a=1/0;e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},86874:function(e){e.exports=function(e){return function(){return e}}},35676:function(e,t,n){var i=n(62034);e.exports=function(e){return(null==e?0:e.length)?i(e,1):[]}},95041:function(e,t,n){var i=n(20187),a=n(1369);e.exports=function(e,t){return null!=e&&a(e,t,i)}},23059:function(e){e.exports=function(e){return e}},30733:function(e,t,n){var i=n(96738);function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var memoized=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=memoized.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return memoized.cache=a.set(i,o)||a,o};return memoized.cache=new(memoize.Cache||i),memoized}memoize.Cache=i,e.exports=memoize},13888:function(e,t,n){var i=n(92602),a=n(29097)(function(e,t){return null==e?{}:i(e,t)});e.exports=a},74930:function(e,t,n){var i=n(66188),a=0;e.exports=function(e){var t=++a;return i(e)+t}},20452:function(e,t,n){"use strict";/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i=n(2784),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useState,s=i.useEffect,l=i.useLayoutEffect,u=i.useDebugValue;function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),a=i[0].inst,c=i[1];return l(function(){a.value=n,a.getSnapshot=t,r(a)&&c({inst:a})},[e,n,t]),s(function(){return r(a)&&c({inst:a}),e(function(){r(a)&&c({inst:a})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},41701:function(e,t,n){"use strict";function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return _assertThisInitialized}})},96412:function(e,t,n){"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return _classCallCheck}})},13089:function(e,t,n){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}n.d(t,{Z:function(){return _createClass}})},48200:function(e,t,n){"use strict";function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return _getPrototypeOf}})},80304:function(e,t,n){"use strict";function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}n.d(t,{Z:function(){return _inherits}})},29017:function(e,t,n){"use strict";n.d(t,{Z:function(){return _possibleConstructorReturn}});var i=n(34280),a=n(41701);function _possibleConstructorReturn(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}}}]);