diff --git a/history-35b7844ed223a47b.js.download b/history-35b7844ed223a47b.js.download new file mode 100644 index 0000000000..8e865e12bf --- /dev/null +++ b/history-35b7844ed223a47b.js.download @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[602],{30982:function(e,t,n){"use strict";var r=n(28165),a=n(2784),o=n(52903),l={name:"3qivvs-TruncatedText--truncatedTextStyle",styles:"box-orient:vertical;-webkit-box-orient:vertical;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:text-bottom;white-space:nowrap;word-wrap:normal;label:TruncatedText--truncatedTextStyle;"},i={name:"20h900-TruncatedText--blockStyle",styles:"display:block;label:TruncatedText--blockStyle;"};t.Z=function(e){var t=e.children,n=e.id,s=e.isBlock,c=e.lines,u=void 0===c?1:c,d=e.title,p=a.Children.toArray(t),h=p.every(function(e){return"string"==typeof(e||"")||"number"==typeof e})?p.join(" "):void 0;return(0,o.tZ)("span",{css:[l,void 0!==s&&s&&i,u>1&&(0,r.iv)("display:-webkit-box;line-clamp:",u,";-webkit-line-clamp:",u,";white-space:inherit;;label:TruncatedText--multiLineStyle;"),";label:TruncatedText--TruncatedText;"],id:n,title:d||h,children:t})}},48377:function(e,t,n){"use strict";n.d(t,{m:function(){return useFilters}});var r=n(95235),a=n(5632),o=n(2784),l=n(25760),i=n(63615),s=n(581),c=n(65626);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0&&("search"===a&&o&&n({eventName:l.rw,meta:{event_action:"select",experiment_flag:!!(null==e?void 0:e.monitor_unified_history_filter),experiment_name:"monitor_unified_history_filter",interaction_goal:"search_zap_history",interaction_name:"zap_history_search",interaction_raw_text:"Search Zap History",option_selected:"search"}}),t.push((0,c.lZ)(t.pathname,i,t.query)))},[n,u,null==e?void 0:e.monitor_unified_history_filter,t]);return{filters:u,handleFilterReset:d,handleFilterChange:p}}},82145:function(e,t,n){"use strict";n.d(t,{R:function(){return getZapTitle}});var r=n(25760);function getZapTitle(e){return"string"==typeof(null==e?void 0:e.title)&&e.title.length>0?e.title:null!=e&&e.id?"".concat(r.E2," (#").concat(e.id,")"):r.E2}},84474:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return History}});var r,a=n(95235),o=n(81333),l=n(21973),i=n(29455),s=n(5632),c=n(2784),u=n(55414),d=n(20110),p=n(53939),h=n(38716),b=n(23360),f=n(13441),m=n(11606),y=n(93273),w=n(16931),g=n(89381),_=n(52522),v=n(65626),Z=n(82792),R=n(25760),O=n(26243),S=n(48751),j=n(32931),k=n(60352),D=n(20406),x=n(12741),P=n(28526),C=n.n(P),T=n(64368),z=n(25237),B=n.n(z),X=n(28165),E=n(57199),A=n(3e3),F=n(99029),q=n(96963),H=n(18672),I=n(47043),M=n(581),N=n(87234),K=n(25522),L=n(44779),G=n(28726),V=n(82269),U=n(17305),W=n(27977),$=n(26215),J=n(23273),Q=n(41273),Y=n(32052),ee=n(63951),et=n(30982),en=n(82145),er=n(52903),ea=["isBack"],eo={name:"190f1d-RunRow--zapInfoStyle",styles:"align-items:center;display:grid;gap:0.25em;grid-template-columns:auto 1fr;@media (max-width: 400px){&>:first-child{display:none;}};label:RunRow--zapInfoStyle;"};function ZapFolder(e){var t,n,r,a,o="/app/zaps/folder/".concat(null!==(t=null===(n=e.run.zap.folder)||void 0===n?void 0:n.id)&&void 0!==t?t:0),l=null!==(r=e.run.zap.folder)&&void 0!==r&&r.isShared?"team":"navFolder";return(0,er.tZ)($.r,{href:o,children:(0,er.BX)("div",{css:eo,children:[(0,er.tZ)("div",{children:(0,er.tZ)(J.J,{name:l,size:24})}),(0,er.tZ)(et.Z,{children:(0,er.tZ)(u.x,{color:"inherit",type:"smallPrint1",children:null===(a=e.run.zap.folder)||void 0===a?void 0:a.title})})]})})}var el={name:"c7tkaj-RunRow--ZapOwner",styles:"display:flex;align-self:center;label:RunRow--ZapOwner;"};function ZapOwner(e){var t,n,r,a;return(0,er.BX)("div",{css:eo,children:[(0,er.tZ)("div",{css:el,children:(0,er.tZ)(Q.q,{name:null!==(t=null===(n=e.run.zapOwner)||void 0===n?void 0:n.name)&&void 0!==t?t:"Unknown",size:25})}),(0,er.tZ)(et.Z,{children:(0,er.tZ)(u.x,{color:"inherit",type:"smallPrint1",children:null!==(r=null===(a=e.run.zapOwner)||void 0===a?void 0:a.name)&&void 0!==r?r:"Unknown"})})]})}var ei={name:"5zo0la-RunRow--RunRow",styles:"grid-area:select;align-self:center;label:RunRow--RunRow;"},es={name:"1drt9ti-RunRow--RunRow",styles:"grid-area:status;label:RunRow--RunRow;"},ec={name:"1djhijs-RunRow--RunRow",styles:"grid-area:title;label:RunRow--RunRow;"},eu={name:"1uy1tcg-RunRow--RunRow",styles:"grid-area:zap-owner;label:RunRow--RunRow;"},ed={name:"twvb4v-RunRow--RunRow",styles:"grid-area:zap-folder;label:RunRow--RunRow;"},ep={name:"m2ookx-RunRow--RunRow",styles:"grid-area:time;label:RunRow--RunRow;"},eh={name:"1e5xz2c-RunRow--RunRow",styles:"grid-area:task-count;label:RunRow--RunRow;"};function RunRow(e){var t,n,r,a=(0,s.useRouter)(),o=(0,m.t)(),l=(0,R.Dk)(e.run.status,e.run.heldReason,e.run.heldStaleAuth);return(0,er.BX)("tr",{children:[(0,er.tZ)("td",{css:ei,onClick:function(){return e.onRunSelect(e.run.id)},children:(0,er.tZ)(q.X,{checked:e.isSelected})}),(0,er.tZ)("td",{css:es,children:(0,er.BX)("div",{style:{gap:"0.25em",display:"flex",alignItems:"center"},children:[(0,er.tZ)(ee.Z,{size:24,status:e.run.status}),l.label]})}),(0,er.tZ)("td",{css:ec,children:(0,er.tZ)(et.Z,{children:(0,er.tZ)($.r,{href:(t=e.run.id,(n=a.query).isBack,r=(0,V.Z)(n,ea),(0,U.formatUrl)({pathname:"/app/history/".concat(t),query:r})),children:(0,er.tZ)(u.x,{color:"inherit",type:"smallPrint1Semibold",children:(0,en.R)(e.run.zap)})})})}),(0,er.tZ)("td",{css:eu,children:(0,er.tZ)(ZapOwner,{run:e.run})}),(0,er.tZ)("td",{css:ed,children:(0,er.tZ)(ZapFolder,{run:e.run})}),(0,er.BX)("td",{css:ep,children:[(0,er.tZ)(_.c,{above:900,children:(0,er.tZ)(u.x,{type:"smallPrint1Semibold",children:"Last run: "})}),(0,er.tZ)(W.Z,{date:e.run.startTime,format:{large:"MMM, DD hh:mm:ss a",medium:"MM/DD HH:mm:ss",small:"MM/DD HH:mm"}[o]})]}),(0,er.BX)("td",{css:eh,children:[(0,er.tZ)(_.c,{above:900,children:(0,er.tZ)(u.x,{type:"smallPrint1Semibold",children:"Tasks used: "})}),(0,er.tZ)(Y.Z,{children:e.run.billableCount})]})]})}var eb=(0,_.uq)({mobile:(0,X.iv)("align-items:center;background-color:",F.w.blue100,";display:grid;grid-template-columns:repeat(1, 1fr);gap:1em;padding:1em;text-align:center;;label:TableActions--mobile;"),desktop:{name:"1t2fy6-TableActions--desktop",styles:"grid-template-columns:1fr auto;text-align:left;label:TableActions--desktop;"}}),ef=(0,_.uq)({mobile:{name:"k1oq5s-TableActions--mobile",styles:"display:grid;gap:1em;grid-template-columns:repeat(1, 1fr);width:100%;label:TableActions--mobile;"},tablet:{name:"p45ks9-TableActions--tablet",styles:"grid-template-columns:repeat(3, 1fr);label:TableActions--tablet;"}});function TableActions(e){if(0===e.selectedRunCount)return null;var t,n,r,a=(t=e.hasSelectedAll,n=e.selectedRunCount,r=e.totalRunCount,t||n===r?"All runs are":1===n?"1 run is":"".concat(n," runs are"));return(0,er.BX)("div",{css:eb,children:[(0,er.BX)(u.x,{children:[a," selected."," ",e.hasSelectedAll?(0,er.tZ)($.r,{onClick:e.onClearSelection,children:"Clear selection."}):(0,er.BX)($.r,{onClick:e.onSelectAll,children:["Select all ",e.totalRunCount," runs matching these filters."]})]}),(0,er.BX)("div",{css:ef,children:[(0,er.tZ)(d.z,{color:"tertiary",hasShadow:!0,iconBefore:"actionPlay",onClick:e.onReplay,size:"small",children:"Replay"}),(0,er.tZ)(d.z,{color:"tertiary",hasShadow:!0,iconBefore:"actionTrash",onClick:e.onDelete,size:"small",children:"Delete"}),(0,er.tZ)(d.z,{color:"tertiary",hasShadow:!0,iconBefore:"arrowBigDown",onClick:e.onDownload,size:"small",children:"Download"})]})]})}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t60,handleFilterReset:e.resetFilters,isFilterEmpty:r,size:"small"})}var clearSelection=function(){b(!1),w([])},selectAllVisibleRuns=function(){w(e.runs.map(function(e){return e.id}))},o=B()(function(){return n.e(8517).then(n.bind(n,38517))},{loadableGenerated:{webpack:function(){return[38517]}}}),c=B()(function(){return n.e(7462).then(n.bind(n,27462))},{loadableGenerated:{webpack:function(){return[27462]}}}),u=B()(function(){return n.e(9766).then(n.bind(n,19766))},{loadableGenerated:{webpack:function(){return[19766]}}}),handleDelete=function handleDelete(){clearSelection(),i({eventName:R.rw,meta:{event_action:"click",interaction_goal:R.X7,interaction_name:"zap_run_opt_in_delete",interaction_raw_text:"Run deleted",option_selected:"delete"}}),e.onDelete(y,h),F(handleDelete,!1)},handleReplay=function handleReplay(){clearSelection(),i({eventName:R.rw,meta:{event_action:"click",interaction_goal:R.X7,interaction_name:"zap_run_opt_in_replay",interaction_raw_text:"Run replay clicked",option_selected:"replay"}}),e.onReplay(y,h),H(handleReplay,!1,U)};return(0,er.BX)(er.HY,{children:[(0,er.tZ)(TableActions,{hasSelectedAll:h,onClearSelection:clearSelection,onDelete:function(){F(handleDelete,!0)},onDownload:function(){q(y.length,h,y)},onReplay:function(){H(handleReplay,!0,U)},onSelectAll:function(){b(!0),selectAllVisibleRuns(),i({eventName:R.rw,meta:{event_action:"click",interaction_goal:R.X7,interaction_name:"zap_run_opt_in_mass_actions_select_all",interaction_raw_text:"All runs selected from mass actions banner",option_selected:"all runs"}})},selectedRunCount:y.length,totalRunCount:e.totalRunCount}),(0,er.tZ)(TableHeader,{hasSelectedAll:h,hasSomeSelected:y.length>0,onSelectAll:function(){if(h||y.length===e.runs.length){clearSelection();return}selectAllVisibleRuns()}}),(0,er.tZ)(TableBody,{onRunSelect:function(e){w(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):[].concat((0,x.Z)(t),[e])})},runs:e.runs,selectedRunIds:y}),(0,er.tZ)(Pagination,{hasNextPage:e.runs.length