forked from Romeo-Rosete/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2436-2dcdabe686a3339a.js.download
1 lines (1 loc) · 6.79 KB
/
2436-2dcdabe686a3339a.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2436],{34476:function(e,r){r.Z=function(e){return"number"==typeof e&&e<1e10&&(e*=1e3),new Date(e)}},89284:function(e,r){r.Z=function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return null}}},25522:function(e,r,t){t.d(r,{I:function(){return NoRunsSurface}});var n=t(95235),o=t(28165),a=t(2784),s=t(3e3),i=t(99029),l=t(23273),c=t(55414),u=t(26215),p=t(20110),d=t(99570),f=t(52903);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}var h=(0,o.iv)(s.ZT.paragraph1ShortBold," color:",i.w.neutral800,";font-weight:600;;label:NoRunsSurface--title;"),m={name:"1oggyiy-NoRunsSurface--wrapper",styles:"margin:auto;label:NoRunsSurface--wrapper;"},y={name:"9v71j5-NoRunsSurface--actionButtonWrapper",styles:"margin-top:20px;width:100%;label:NoRunsSurface--actionButtonWrapper;"},b={name:"gr2c6i-NoRunsSurface--buttonWrapper",styles:"width:175px;label:NoRunsSurface--buttonWrapper;"},g={name:"x59utk-NoRunsSurface--textWrapper",styles:"align-items:center;display:grid;grid-gap:5px;justify-content:center;justify-items:center;padding:35px;label:NoRunsSurface--textWrapper;"},_={name:"1dmdjfn-NoRunsSurface--surfaceWrapper",styles:"display:flex;width:550px;label:NoRunsSurface--surfaceWrapper;"},w={name:"1yfvptc-NoRunsSurface--surfaceWrapperSmall",styles:"width:auto;label:NoRunsSurface--surfaceWrapperSmall;"},v=(0,o.iv)("background-color:",i.w.neutral100,";border:1px solid ",i.w.neutral400,';display:inline-block;font-family:"Consolas","Liberation Mono",Courier,monospace;font-size:13px;line-height:1em;padding:2px 5px;text-transform:none;;label:NoRunsSurface--code;'),O={name:"1kg1vjp-NoRunsSurface--localTextWrapper",styles:"text-align:center;label:NoRunsSurface--localTextWrapper;"};function Content(e){if(e.hasError){var r=e.isFilterEmpty?"This error has been reported, and our team will look into it shortly.":"Adjust your filters and try again.",t=e.isFilterEmpty?function(){return document.location.reload()}:e.handleFilterReset;return(0,f.BX)("div",{css:g,children:[(0,f.tZ)(l.J,{color:"blueJeans",name:"alertTriangle",size:25}),(0,f.tZ)(c.x,{type:"paragraph1Bold",children:"There was an unexpected error"}),(0,f.BX)(c.x,{color:"neutral800",textAlign:"center",type:"smallPrint1",children:[r," If this continues, please"," ",(0,f.tZ)(u.r,{href:"https://zapier.com/app/get-help",children:"contact support"}),"."]}),(0,f.tZ)("div",{css:y,children:(0,f.tZ)(p.z,{hasShadow:!0,isFullWidth:!0,onClick:t,size:"small",children:e.isFilterEmpty?"Reload page":"Clear filters"})})]})}return e.isFilterEmpty?(0,f.BX)("div",{css:g,children:[(0,f.tZ)(l.J,{color:"blueJeans",name:"miscClock",size:25}),(0,f.tZ)("p",{css:h,children:"Your Zaps have not run yet"}),(0,f.tZ)("span",{css:b,children:(0,f.tZ)(p.z,{hasShadow:!0,href:"/webintent/create-zap",isFullWidth:!0,size:"small",children:"Create Zap"})}),(0,f.BX)(c.x,{color:"neutral800",type:"paragraph3",children:["or"," ",(0,f.tZ)("style",{children:"\n .LinkExample--customClass {\n color: #2c3266 !important;\n }\n "}),(0,f.tZ)(u.r,{color:null,className:"LinkExample--customClass",href:"/explore",children:"explore Zap templates"})]})]}):(0,f.BX)("div",{css:g,children:[(0,f.tZ)(l.J,{color:"blueJeans",name:"magnifyingGlass",size:25}),(0,f.tZ)("p",{css:h,children:"No results found"}),e.isOutOfRetentionPeriod&&(0,f.BX)(c.x,{color:"neutral800",type:"smallPrint1",children:["Zap runs are only retained for 60 days."," "]}),(0,f.tZ)(c.x,{color:"neutral800",type:"smallPrint1",children:"Adjust your filters and try again."}),(0,f.tZ)("div",{css:y,children:(0,f.tZ)(p.z,{hasShadow:!0,isFullWidth:!0,onClick:e.handleFilterReset,size:"small",children:"Clear filters"})})]})}function NoRunsSurface(e){return(0,f.BX)(a.Fragment,{children:[(0,f.tZ)("div",{css:m,children:(0,f.tZ)("span",{css:[_,"small"===e.size&&w,";label:NoRunsSurface--NoRunsSurface;"],children:(0,f.tZ)(d.T,{backgroundColor:"neutral200",children:(0,f.tZ)(Content,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){(0,n.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({},e))})})}),window.location.host.includes("localhost")&&!e.hasError&&(0,f.tZ)("div",{css:O,children:(0,f.BX)(c.x,{color:"neutral800",children:["Try enabling ",(0,f.tZ)("code",{css:v,children:"stream tasks into es sync"})," and"," ",(0,f.tZ)("code",{css:v,children:"bulk stream tasks into es"})," switch on switch on ",(0,f.tZ)(u.r,{href:"/nexus/gargoyle/",children:"/nexus/gargoyle/"}),"."]})})]})}},63615:function(e,r,t){t.d(r,{V:function(){return useFlags}});var n,o=t(7328),a=t(60138),s=t(40794),i=t(2784),l=t(59712),c=t(87234),u=(0,a.Ps)(n||(n=(0,o.Z)(["\n query Flags($customuserId: ID!, $isStaff: Boolean) {\n flags(customuserId: $customuserId, isStaff: $isStaff) {\n editor_custom_error_handling_phase_1\n monitor_account_audit_log\n monitor_ai_error_message\n monitor_held_runs_resolution\n monitor_predictive_task_graph\n monitor_unified_history_filter\n monitor_zaps_with_errors\n observe_run_details_error_alert\n observe_run_history_v2\n use_new_exporter_zap_runs\n zap_run_request_logs\n team_observe_alert_rules_api\n observe_alerts_mvp\n }\n }\n"])));function useFlags(){var e=(0,c.g)(),r=e.accountId,t=e.userId,n=e.isStaff,o=(0,s.a)(u,{skip:!r||!t,variables:{customuserId:t,isStaff:n}}),a=o.data,p=o.loading,d=null==a?void 0:a.flags;return(0,i.useEffect)(function(){!p&&d&&(0,l.kW)("setUserVars",d)},[p,d]),{accountId:r,flags:d,isFlagsLoading:p}}},81692:function(e,r,t){t.d(r,{C:function(){return omit},G:function(){return omitBy}});var n=t(81333),o=t(95235);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){(0,o.Z)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function omitBy(e,r){var t=_objectSpread({},e);return Object.entries(t).forEach(function(e){var o=(0,n.Z)(e,2),a=o[0];return r(o[1],a)&&delete t[a]}),t}var omit=function(e,r){var t=_objectSpread({},e);return r.forEach(function(e){return delete t[e]}),t}}}]);