forked from bombastictranz/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
7202-5a8b7a062f78e1e3.js.download
1 lines (1 loc) · 20.5 KB
/
7202-5a8b7a062f78e1e3.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7202],{72304:function(e,t,n){n.d(t,{p:function(){return HeldRunsBanner}});var i=n(25237),r=n.n(i),o=n(38716),a=n(20406),l=n(28526),s=n.n(l),c=n(92642),u=n(2784),d=n(49857),p={heldCount:0,startsExpiring:void 0,stepCount:0};function fetchHeldRunsSummary(e){return _fetchHeldRunsSummary.apply(this,arguments)}function _fetchHeldRunsSummary(){return(_fetchHeldRunsSummary=(0,a.Z)(s().mark(function _callee(e){var t,n;return s().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=new URLSearchParams({account_id:e,group_by:"reason",include_shared_with:"false"}),i.prev=1,i.next=4,fetch("/api/zap-history/v2/runs/held-count?".concat(t.toString()));case 4:if(!(n=i.sent).ok){i.next=7;break}return i.abrupt("return",n.json());case 7:c.n_({data:{message:"Got bad server response: ".concat(n.statusText," (").concat(n.status,")"),status:n.status,statusText:n.statusText,text:n.text()},level:"warning"}),i.next=13;break;case 10:i.prev=10,i.t0=i.catch(1),c.n_({message:"A network error occurred: ".concat(i.t0),level:"warning"});case 13:return i.abrupt("return");case 14:case"end":return i.stop()}},_callee,null,[[1,10]])}))).apply(this,arguments)}var f=n(52903),y=r()(function(){return Promise.all([n.e(6314),n.e(4413)]).then(n.bind(n,4413)).then(function(e){return e.Banner})},{ssr:!1,loadableGenerated:{webpack:function(){return[4413]}}});function HeldRunsBanner(){var e,t,n,i=(0,o.X8)(),r=(t=u.useRef(0),(n=(0,d.ZP)(null==i?void 0:i.toString(),{errorRetryInterval:15e3,fetcher:fetchHeldRunsSummary,refreshInterval:function(){return Math.min(12e4,Math.round(15e3*Math.pow(1.2,t.current)))},onSuccess:function(){return t.current++}}).data)?{heldCount:null!==(e=n.total)&&void 0!==e?e:0,startsExpiring:function(e){if(e){var t=new Date(e);return isNaN(t.getTime())?void 0:t}}(n.starts_expiring),stepCount:n.reasons.length+1}:p);return i&&0!==r.heldCount?(0,f.tZ)(y,{accountId:i,heldCount:r.heldCount,startsExpiringOn:r.startsExpiring,stepCount:r.stepCount}):null}},90299:function(e,t,n){n.d(t,{N4:function(){return useConfirm},fy:function(){return ConfirmModalProvider}});var i=n(95235),r=n(81333),o=n(2784),a=n(28952),l=n(66266),s=n(55414),c=n(20110),u=n(52903);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,i.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}function ConfirmModal(e){return(0,u.tZ)(a.u,{ariaLabel:e.title,onClosed:e.onCancel,children:(0,u.BX)(l.hz,{maxWidth:"600px",children:[(0,u.tZ)(l.dE,{align:"center",children:(0,u.tZ)(s.x,{type:"paragraph1Bold",children:e.title})}),(0,u.tZ)(l.nS,{scrollable:!0,children:(0,u.tZ)(s.x,{children:e.description})}),(0,u.BX)(l.bT,{children:[(0,u.tZ)(c.z,{color:"secondary",onClick:e.onCancel,size:"small",children:e.cancelLabel||"Cancel"}),(0,u.tZ)(c.z,{color:"primary",size:"small",onClick:e.onConfirm,children:e.confirmLabel||"Confirm"})]})]})})}var d=o.createContext(void 0);function ConfirmModalProvider(e){var t=e.children,n=o.useState(!1),i=(0,r.Z)(n,2),a=i[0],l=i[1],s=o.useRef(),c=o.useRef(),p=o.useCallback(function(e){return c.current=e,l(!0),new Promise(function(e){s.current=function(t){l(!1),e(t)}})},[]);return(0,u.BX)(d.Provider,{value:p,children:[t,c.current&&a&&(0,u.tZ)(ConfirmModal,_objectSpread(_objectSpread({},c.current),{},{onCancel:function(){var e;return null===(e=s.current)||void 0===e?void 0:e.call(s,!1)},onConfirm:function(){var e;return null===(e=s.current)||void 0===e?void 0:e.call(s,!0)}}))]})}function useConfirm(){var e=o.useContext(d);if(!e)throw Error("`useConfirm` must be used within a `<ConfirmModalProvider>`.");return e}},35424:function(e,t,n){n.d(t,{I:function(){return DefaultErrorMessage},S:function(){return v}});var i=n(96412),r=n(13089),o=n(41701),a=n(80304),l=n(29017),s=n(48200),c=n(95235),u=n(92642),d=n(2784),p=n(20271),f=n(26215),y=n(52903);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 DefaultErrorMessage(e){var t;return(0,y.BX)(p.b,{type:"error",children:[null!==(t=e.reason)&&void 0!==t?t:"An unexpected error occurred."," If this continues, please ",(0,y.tZ)(f.r,{href:"https://zapier.com/app/get-help",children:"contact support"}),"."]})}var b={error:void 0,errorInfo:void 0},v=function(e){(0,a.Z)(ErrorBoundary,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,s.Z)(ErrorBoundary);if(t){var i=(0,s.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function ErrorBoundary(){var e;(0,i.Z)(this,ErrorBoundary);for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return e=n.call.apply(n,[this].concat(r)),(0,c.Z)((0,o.Z)(e),"state",b),e}return(0,r.Z)(ErrorBoundary,[{key:"componentDidCatch",value:function(e,t){var n={contexts:{react:function(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,c.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}({},t)}};u.Tb(e,n),this.setState({error:e,errorInfo:t})}},{key:"render",value:function(){var e=this;if(!this.state.error)return this.props.children;var t="function"==typeof this.props.fallback?this.props.fallback({clearError:function(){return e.setState(b)},error:this.state.error,errorInfo:this.state.errorInfo}):this.props.fallback;return d.isValidElement(t)?t:(0,y.tZ)(DefaultErrorMessage,{})}}]),ErrorBoundary}(d.PureComponent);(0,c.Z)(v,"defaultProps",{children:null})},28726:function(e,t,n){n.d(t,{J:function(){return NotificationProvider},l:function(){return useNotification}});var i=n(95235),r=n(12741),o=n(2784),a=n(74930),l=n.n(a),s=n(28165),c=n(98628),u=n(20271),Notification_useTimer=function(e,t){var n=o.useRef(t),i=o.useRef(t),r=o.useRef();function onClear(){r.current&&clearTimeout(r.current)}function onPause(){onClear(),i.current-=Date.now()-n.current}function onResume(){onClear(),n.current=Date.now(),r.current=setTimeout(e,i.current)}return o.useEffect(function(){return onResume(),function(){onPause()}},[e]),{onClear:onClear,onPause:onPause,onResume:onResume}},d=n(52903),p=(0,s.F4)({"0%":{opacity:0,transform:"translateY(-10px)"},"100%":{opacity:1,transform:"translateY(0)"},"30%":{opacity:0,transform:"translateY(-10px)"}}),f=(0,s.iv)("animation:",c.f.transitionDuration," ease-out ",p,";max-width:90vw;width:700px;;label:Notification--rootStyle;"),Notification_Notification=function(e){var t=e.notification,n=e.onDismiss,i=e.timeout,r=o.useCallback(function(){t.onDismiss&&t.onDismiss(t),n(t.id)},[t,n]),a=Notification_useTimer(o.useCallback(function(){i<=0||i===1/0||r()},[r,i]),i),l=a.onPause,s=a.onResume;return(0,d.tZ)("div",{css:f,onMouseEnter:l,onMouseLeave:s,children:(0,d.tZ)(u.b,{onDismiss:r,type:t.type,children:t.message})})},y={name:"15ba5bw-Notifications--rootStyle",styles:"align-items:center;display:grid;grid-gap:20px;justify-content:center;left:0;position:fixed;top:65px;width:100vw;z-index:1000;label:Notifications--rootStyle;"},Notifications_Notifications=function(e){var t=e.notifications.map(function(t,n){var i;return(0,d.tZ)(Notification_Notification,{index:n,notification:t,onDismiss:e.onDismiss,timeout:null!==(i=t.timeout)&&void 0!==i?i:e.timeout},t.id)});return(0,d.tZ)("section",{css:y,"data-test":"notifications",children:t})};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,i.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}var b=(0,o.createContext)({clearNotification:function(){},createNotification:function(){return""}});function useNotification(){return(0,o.useContext)(b)}function NotificationProvider(e){var t=(0,o.useState)([]),n=t[0],i=t[1],a=(0,o.useCallback)(function(e){i(function(t){return t.filter(function(t){return t.id!==e})})},[]),s=(0,o.useCallback)(function(e){var t=l()("notification-");return i(function(n){return[].concat((0,r.Z)(n),[_objectSpread(_objectSpread({},e),{},{id:t})])}),t},[]),c=e.notificationTimeout||5e3,u=(0,o.useMemo)(function(){return{clearNotification:a,createNotification:s}},[a,s]);return(0,d.BX)(d.HY,{children:[(0,d.tZ)(Notifications_Notifications,{notifications:n,onDismiss:a,timeout:c}),(0,d.tZ)(b.Provider,{value:u,children:e.children})]})}},75405:function(e,t,n){n.d(t,{J2:function(){return RunStepTroubleshootDetailContextProvider},oA:function(){return useRunStepTroubleshootDetailContext}});var i=n(2784),r=n(52903),o=(0,i.createContext)({details:{aiExperimentName:"",guidanceOpened:!1,predictionId:""},setDetails:function(){}});function useRunStepTroubleshootDetailContext(){return(0,i.useContext)(o)}function RunStepTroubleshootDetailContextProvider(e){var t=e.children,n=(0,i.useState)({aiExperimentName:"",guidanceOpened:!1,predictionId:""}),a=n[0],l=n[1],s=(0,i.useCallback)(function(e){l(e)},[]);return(0,r.tZ)(o.Provider,{value:{details:a,setDetails:s},children:t})}},96102:function(e,t,n){n.d(t,{p:function(){return TooltipWrapper},e:function(){return TooltipWrapperTarget}});var i=n(81333),r=n(95235),o=n(2784),a=n(28316),l=n(28165),s=n(91604),c=n(29476),u=n(52903);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,r.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}var d="observe-tooltip-wrapper-target",p=(0,l.iv)("display:block;position:absolute;z-index:",s.C.popover,';[role="tooltip"]{border-radius:10px!important;};label:TooltipWrapper--tooltipWrapperStyle;'),f={name:"1qhva84-TooltipWrapper--hiddenStyle",styles:"display:none;label:TooltipWrapper--hiddenStyle;"};function TooltipWrapperTarget(e){return(0,u.tZ)("div",_objectSpread(_objectSpread({},e),{},{id:d}))}function TooltipWrapper(e){var t,n,r,s,y,b,v,h,m,w=document.getElementById(d),g=o.useRef(null),O=o.useRef(null),P=o.useState(!1),S=(0,i.Z)(P,2),j=S[0],x=S[1],Z=o.useState(new DOMRect),C=(0,i.Z)(Z,2),k=C[0],R=C[1],D=o.useState(new DOMRect),E=(0,i.Z)(D,2),_=E[0],N=E[1];if(o.useEffect(function(){g.current&&R(g.current.getBoundingClientRect()),O.current&&N(O.current.getBoundingClientRect())},[j]),!w)return console.warn("TooltipWrapper: no portal root found. Make sure to add <TooltipWrapperTarget /> to your app."),null;var T=(t=null!==(h=e.position)&&void 0!==h?h:"south",n=window.innerWidth,r=window.innerHeight,b=(s=0,s=t.endsWith("east")?_.right+window.scrollX:t.endsWith("west")?_.left+window.scrollX-k.width:_.left+window.scrollX+_.width/2-k.width/2,y={top:t.startsWith("north")?_.top+window.scrollY-k.height:t.startsWith("south")?_.bottom+window.scrollY:_.top+window.scrollY+_.height/2-k.height/2,left:s}).top,(v=y.left)+k.width>n&&(v=n-k.width),v<0&&(v=0),b<window.scrollY?t.startsWith("north")&&(b=_.bottom+window.scrollY):b+k.height>window.scrollY+r&&t.startsWith("south")&&(b=_.top+window.scrollY-k.height),b+k.height>r+window.scrollY&&(b=r+window.scrollY-k.height),b<window.scrollY&&(b=window.scrollY),(0,l.iv)({top:b,left:v},";label:positionStyles--getPositionStyles;")),I=(0,a.createPortal)((0,u.tZ)("div",{css:[p,T,!j&&f,";label:TooltipWrapper--portal;"],ref:g,hidden:!j,children:(0,u.tZ)(c.u,{allowMultiline:null===(m=e.allowMultiline)||void 0===m||m,ariaHidden:e.ariaHidden,isInteractive:!0,position:null,children:e.content})}),w);return(0,u.BX)(u.HY,{children:[(0,u.tZ)("span",{onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},onTouchStart:function(){return x(function(e){return!e})},ref:O,role:"tooltip",children:e.children}),I]})}},581:function(e,t,n){n.d(t,{i:function(){return useEmitEvent}});var i=n(95235),r=n(2784),o=n(8736),a=n(25760),l=n(87234);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 useEmitEvent(){var e=(0,l.g)(),t=e.userId,n=e.accountId;return{emitEvent:(0,r.useCallback)(function(e){var r=e.eventName,l=void 0===r?a.rw:r,s=e.meta;t&&n&&(0,o.emit)(function(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,i.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}({account_id:n,release_id:"2029ec92f6f6ab2ca5cc2dc222b6c157fa4109a9",system_name:a.KV,timestamp_ms:Date.now()},s),l)},[t,n])}}},52522:function(e,t,n){n.d(t,{CD:function(){return c},c:function(){return Hide},eI:function(){return u},pI:function(){return d},uq:function(){return getResponsiveStyles},w5:function(){return s}});var i,r=n(7328),o=n(95235),a=n(21710),l=n(52903),s={mobile:"@media (min-width: 0)",tablet:"@media (min-width: 660px)",desktop:"@media (min-width: 1024px)"},getResponsiveStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return[(0,o.Z)({},t.mobile,(0,a.iv)(e.mobile)||{}),(0,o.Z)({},t.tablet,(0,a.iv)(e.tablet)||{}),(0,o.Z)({},t.desktop,(0,a.iv)(e.desktop)||{})]},c=getResponsiveStyles({mobile:{display:"inherit",visibility:"visible"},tablet:{display:"none",visibility:"hidden"},desktop:{display:"none",visibility:"hidden"}});getResponsiveStyles({mobile:{display:"none",visibility:"hidden"},tablet:{display:"inherit",visibility:"visible"},desktop:{display:"none",visibility:"hidden"}});var u=getResponsiveStyles({mobile:{display:"none",visibility:"hidden"},tablet:{display:"none",visibility:"hidden"},desktop:{display:"inherit",visibility:"visible"}}),d=getResponsiveStyles({mobile:{display:"none",visibility:"hidden"},tablet:{display:"inherit",visibility:"visible"},desktop:{display:"inherit",visibility:"visible"}});getResponsiveStyles({mobile:{display:"inherit",visibility:"visible"},tablet:{display:"inherit",visibility:"visible"},desktop:{display:"none",visibility:"hidden"}});var hide=function(e){var t=e.above,n=e.below,o=e.query;return(0,a.iv)(i||(i=(0,r.Z)(["\n ","\n ","\n ","\n"])),t&&"@media (min-width: ".concat(t,"px) { display: none; }"),n&&"@media (max-width: ".concat(n,"px) { display: none; }"),o&&"@media ".concat(o," { display: none; }"))};function Hide(e){var t=e.above,n=e.below,i=e.children,r=e.query,o=e.tag,a=void 0===o?"div":o,s=hide({above:t,below:n,query:r});return(0,l.tZ)(a,{css:s,children:i})}},7656:function(e,t,n){n.d(t,{X:function(){return PageLayout}});var i,r=n(95235),o=n(28165),a=n(5632),l=n(2784),s=n(7727),c=n(99029),u=n(38716),d=n(35424),p=n(90299),f=n(28726),y=n(75405),b=n(72304),v=n(96102),h=n(581),m=n(35541),w=n(7328),g=n(60138),O=n(40794),P=n(59712),S=n(52903),j=(0,g.Ps)(i||(i=(0,w.Z)(["\n query FullStoryUser($accountId: ID!) {\n account(id: $accountId) {\n id\n plan {\n id\n name\n }\n }\n currentUser {\n email\n fullName\n id\n roles {\n accountId\n role\n }\n }\n }\n"]))),x=["user@example.com","end-to-end@zapier-test.com"],FullStoryContainer=function(e){var t=e.user;return(0,P.xd)(t),null},FullStory=function(e){var t,n=e.accountId,i=e.disableFullStory,r=(0,l.useState)(),o=r[0],a=r[1],s=(0,O.a)(j,{variables:{accountId:n},skip:!n||i}),c=s.loading,u=s.error,d=s.data,p=null==d?void 0:d.currentUser,f=null==d?void 0:d.account;(0,l.useEffect)(function(){if(p&&f){var e,t,n=p.roles.find(function(e){var t;return e.accountId===(null===(t=f.id)||void 0===t?void 0:t.toString())});a({displayName:p.fullName,email:p.email,fullName:p.fullName,id:p.id,planId_str:null===(e=f.plan)||void 0===e?void 0:e.id,planName_str:null===(t=f.plan)||void 0===t?void 0:t.name,role_str:(null==n?void 0:n.role)||"owner"})}},[null==f?void 0:f.id,null==p?void 0:p.id]);var y=!i&&!c&&!u&&!(null!=p&&null!==(t=p.email)&&void 0!==t&&t.includes("@zapier.com"))&&(null==p?void 0:p.email)&&!x.includes(null==p?void 0:p.email)&&!0;return((0,P.b2)({isDisabled:!y}),y&&o)?(0,S.tZ)(FullStoryContainer,{user:o}):null},Z=n(21710),getResponsiveStyles=function(e){return[(0,r.Z)({},"@media (min-width: 0)",(0,Z.iv)(e.mobile)||{}),(0,r.Z)({},"@media (min-width: 660px)",(0,Z.iv)(e.tablet)||{}),(0,r.Z)({},"@media (min-width: 1024px)",(0,Z.iv)(e.desktop)||{})]};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}getResponsiveStyles({mobile:{display:"inherit",visibility:"visible"},tablet:{display:"none",visibility:"hidden"},desktop:{display:"none",visibility:"hidden"}}),getResponsiveStyles({mobile:{display:"none",visibility:"hidden"},tablet:{display:"inherit",visibility:"visible"},desktop:{display:"none",visibility:"hidden"}}),getResponsiveStyles({mobile:{display:"none",visibility:"hidden"},tablet:{display:"none",visibility:"hidden"},desktop:{display:"inherit",visibility:"visible"}}),getResponsiveStyles({mobile:{display:"none",visibility:"hidden"},tablet:{display:"inherit",visibility:"visible"},desktop:{display:"inherit",visibility:"visible"}}),getResponsiveStyles({mobile:{display:"inherit",visibility:"visible"},tablet:{display:"inherit",visibility:"visible"},desktop:{display:"none",visibility:"hidden"}});var C=getResponsiveStyles({mobile:(0,o.iv)("background-color:",c.w.neutral100,";box-sizing:border-box;min-height:100%;padding:29px 20px 58px 20px;;label:PageLayout--mobile;"),tablet:{name:"pd2drt-PageLayout--tablet",styles:"padding:29px 40px 58px 40px;label:PageLayout--tablet;"},desktop:{name:"2xkdl7-PageLayout--desktop",styles:"padding:29px 40px;label:PageLayout--desktop;"}}),k={name:"17sl3ck-PageLayout--mainStyle",styles:"margin:0 auto;max-width:1120px;label:PageLayout--mainStyle;"};function ErrorFallback(){return(0,S.tZ)("div",{css:C,children:(0,S.tZ)(d.I,{})})}function PageLayout(e){var t,n,i,o=(0,u.X8)(),c=(0,h.i)().emitEvent,w=(0,a.useRouter)(),g=(0,s.Y)();return t=!!(0,u.X8)(),n=(0,a.useRouter)(),l.useEffect(function(){if(n.isReady&&!n.asPath.includes("embed")&&!t){var e="/app/login?next=".concat(encodeURIComponent(n.asPath));n.push(e)}},[t,n]),(0,S.BX)(S.HY,{children:[(0,S.tZ)(m.p,{currentUrl:w.asPath,trackEvent:function(e,t){c({eventName:e,meta:function(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,r.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}({},t)})},children:(0,S.tZ)(d.S,{fallback:ErrorFallback,children:(0,S.tZ)(p.fy,{children:(0,S.tZ)(f.J,{children:(0,S.BX)(y.J2,{children:[(0,S.tZ)(FullStory,{accountId:o,disableFullStory:!(null!=g&&null!==(i=g.byName)&&void 0!==i&&i.analytics)}),!e.hideHeldRunsBanner&&(0,S.tZ)(b.p,{}),(0,S.tZ)("div",{css:C,children:(0,S.tZ)("main",{css:k,children:e.children})})]})})})})}),(0,S.tZ)(v.e,{})]})}},85665:function(e,t,n){n.d(t,{D:function(){return Title}});var i=n(97729),r=n.n(i),o=n(52903);function Title(e){var t=e.children,n=e.title;return(0,o.BX)(o.HY,{children:[(0,o.tZ)(r(),{children:(0,o.tZ)("title",{children:"".concat(n," | Zapier")})}),t]})}}}]);