PageSourceSearch

https://static.scale.com/dashboard.scale.com/rrvqttTwFdiikV-VvVU_R…/bulba_generic_project-efaa3ee8f0aa0b32.js

js scale.com collected 2026-09-24 08:46:32 UTC 35,117 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76144],{945781:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return n.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return a.Z},debounce:function(){return i.Z},deprecatedPropType:function(){return deprecatedPropType},isMuiElement:function(){return s.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return l.Z},requirePropFactory:function(){return requirePropFactory},setRef:function(){return d.Z},unstable_useId:function(){return h.Z},unsupportedProp:function(){return unsupportedProp},useControlled:function(){return u.Z},useEventCallback:function(){return f.Z},useForkRef:function(){return p.Z},useIsFocusVisible:function(){return x.Z}});var n=r(909940),o=r(857079),a=r(624794),i=r(185608);function deprecatedPropType(e,t){return function(){return null}}var s=r(824972),c=r(857346),l=r(793942);function requirePropFactory(e){return function(){return null}}var d=r(320858);function unsupportedProp(e,t,r,n,o){return null}var u=r(834954),f=r(279590),p=r(720103),h=r(376780),x=r(367511)},595364:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(945781)},774629:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/corp/ops/bulba_generic_project",function(){return r(184219)}])},871146:function(e,t,r){"use strict";r.d(t,{zx:function(){return s.Z},l0:function(){return Form},o2:function(){return d.Z},rW:function(){return design_system_InputRadio},oH:function(){return c.Z},__:function(){return l.Z},Ph:function(){return u.Z},gx:function(){return f.Z}});var n=r(667488),o=r(367915),a=r.n(o),i=r(885115),s=r(532895),c=r(804463),l=r(415028),d=r(773361),design_system_InputRadio=e=>(0,n.jsxs)("label",{className:"jsx-1dfc60408a67f394 checkbox-label",children:[(0,n.jsx)("input",{type:"radio",...e,className:"jsx-1dfc60408a67f394 "+(e&&null!=e.className&&e.className||"option-input radio")}),(0,n.jsx)(a(),{id:"1dfc60408a67f394",children:'@-webkit-keyframes click-wave{0%{height:14px;width:14px;opacity:.35;position:relative}100%{height:26px;width:26px;margin-left:-8px;margin-top:-8px;opacity:0}}@-moz-keyframes click-wave{0%{height:14px;width:14px;opacity:.35;position:relative}100%{height:26px;width:26px;margin-left:-8px;margin-top:-8px;opacity:0}}@-o-keyframes click-wave{0%{height:14px;width:14px;opacity:.35;position:relative}100%{height:26px;width:26px;margin-left:-8px;margin-top:-8px;opacity:0}}@keyframes click-wave{0%{height:14px;width:14px;opacity:.35;position:relative}100%{height:26px;width:26px;margin-left:-8px;margin-top:-8px;opacity:0}}.option-input.jsx-1dfc60408a67f394{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none;appearance:none;position:relative;right:0;bottom:0;left:0;height:14px;width:14px;-webkit-transition:all.15s ease-out 0s;-moz-transition:all.15s ease-out 0s;-o-transition:all.15s ease-out 0s;transition:all.15s ease-out 0s;background:#fff;border:none;color:#fff;cursor:pointer;display:inline-block;margin-right:.5rem;outline:none;position:relative;z-index:1000;margin:0;margin-bottom:-2px;margin-right:4px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:1px solid#f1f1f1;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1)}.option-input.jsx-1dfc60408a67f394:hover{background:#f9f9f9;border-color:transparent}.option-input.jsx-1dfc60408a67f394:checked{background:var(--link-color);-webkit-box-shadow:0 0px 4px 0 var(--link-color);-moz-box-shadow:0 0px 4px 0 var(--link-color);box-shadow:0 0px 4px 0 var(--link-color);border-color:transparent}.option-input.jsx-1dfc60408a67f394:checked::before{height:6px;width:6px;
1-webkit-border-radius:100px;-moz-border-radius:100px;border-radius:100px;position:absolute;left:3px;top:3px;content:"";background:white;display:inline-block;text-align:center;line-height:16px}.option-input.jsx-1dfc60408a67f394:checked::after{-webkit-animation:click-wave.3s;-moz-animation:click-wave.3s;-o-animation:click-wave.3s;animation:click-wave.3s;background:var(--link-color);-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;content:"";display:block;position:relative;z-index:100}.option-input.radio.jsx-1dfc60408a67f394{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.option-input.radio.jsx-1dfc60408a67f394::after{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}'})]}),u=r(62022),f=r(966080),p=r(784272),h=r.n(p);let Form=class Form extends i.Component{render(){let{mode:e,children:t,...r}=this.props;return(0,n.jsxs)("form",{...r,className:"jsx-c7a642aba060a1bc "+(("vertical"===e||"grid"===e?e:"horizontal")||""),children:[t,(0,n.jsx)(a(),{id:"c7a642aba060a1bc",children:"form.jsx-c7a642aba060a1bc{display:grid;width:100%;grid-column-gap:10px;grid-row-gap:20px;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;grid-column-end:1;max-width:500px;line-height:2}form.horizontal.jsx-c7a642aba060a1bc{grid-template-columns:140px auto;grid-row-gap:20px}form.vertical.jsx-c7a642aba060a1bc{grid-template-columns:100%;grid-gap:20px}form.grid.jsx-c7a642aba060a1bc{grid-template-columns:auto auto;grid-gap:20px}"})]})}};Form.propTypes={mode:h().string},Form.defaultProps={mode:"horizontal"}},773361:function(e,t,r){"use strict";r.d(t,{Z:function(){return design_system_InputCheckbox}});var n=r(667488),o=r(367915),a=r.n(o);r(885115);var design_system_InputCheckbox=e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"checkbox",...e,className:"jsx-8ca4645870bc1fd5 "+(e&&null!=e.className&&e.className||"option-input")}),(0,n.jsx)(a(),{id:"8ca4645870bc1fd5",children:'.option-input.jsx-8ca4645870bc1fd5{background:#fff;width:14px;height:14px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:1px solid#f1f1f1;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);position:relative;display:inline-block;-webkit-transition:all 150ms ease-out;-moz-transition:all 150ms ease-out;-o-transition:all 150ms ease-out;transition:all 150ms ease-out;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;outline:none}.option-input.jsx-8ca4645870bc1fd5:hover:not(:disabled){background:#f9f9f9}.option-input.jsx-8ca4645870bc1fd5:disabled{-webkit-appearance:checkbox;-moz-appearance:checkbox;-ms-appearance:checkbox;appearance:checkbox;cursor:default}.option-input.jsx-8ca4645870bc1fd5:checked:not(:disabled){background:var(--link-color);border:1px solid var(--link-color);-webkit-box-shadow:0 0px 4px 0 var(--link-color);-moz-box-shadow:0 0px 4px 0 var(--link-color);box-shadow:0 0px 4px 0 var(--link-color)}.option-input.jsx-8ca4645870bc1fd5:checked:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MSA2MiI+ICA8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjguNzQgMzguMzVjLTMuOS0zLjYtMTAuMjEtMTAuMi0xNC40Mi0xNC40LTQuMi0zLjkxLTYuOS0uNjEtMTIgNC44LTUuNzEgNS43IDAgOC43IDguMSAxNi44MWwxNC43MiAxNC43MmM1LjQgNC44IDkuOS0yLjQgMTcuMTEtOS4zMWwyOS40My0yOS43M2M5LjMxLTkuMDEgMTEuNDEtOS4wMSAzLjktMTYuMjItNi42LTYuOS02LjMtNi45LTE2LjgxIDMuOS00LjggNC41LTI4LjUzIDI4LjUzLTMwLjAzIDI5LjQ0eiIvPjwvc3ZnPg==);font-size:12px;line-height:12px;width:10px;height:10px;position:absolute;left:1px;display:inline-block;text-align:center;z-index:1;-webkit-animation:grow 250ms ease-out 1 forwards;-moz-animation:grow 250ms ease-out 1 forwards;-o-animation:grow 250ms ease-out 1 forwards;animation:grow 250ms ease-out 1 forwards}.option-input.jsx-8ca4645870bc1fd5:checked:after{content:"";background:var(--link-color);-webkit-border-radius:100px;-moz-border-radius:100px;border-radius:100px;display:block;position:absolute;top:0;left:0;right:0;bottom:0;-webkit-animation:wave 500ms ease-out 1 forwards;-moz-animation:wave 500ms ease-out 1 forwards;-o-animation:wave 500ms ease-out 1 forwards;animation:wave 500ms ease-out 1 forwards}@-webkit-keyframes wave{0%{opacity:.35;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:0;-webkit-transform:scale(2.4);transform:scale(2.4)}}@-moz-keyframes wave{0%{opacity:.35;-moz-transform:scale(1);transform:scale(1)}100%{opacity:0;-moz-transform:scale(2.4);transform:scale(2.4)}}@-o-keyframes wave{0%{opacity:.35;-o-transform:scale(1);transform:scale(1)}100%{opacity:0;-o-transform:scale(2.4);transform:scale(2.4)}}@keyframes wave{0%{opacity:.35;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}100%{opacity:0;-webkit-transform:scale(2.4);-moz-transform:scale(2.4);
1-o-transform:scale(2.4);transform:scale(2.4)}}@-webkit-keyframes grow{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}50%{opacity:1}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes grow{0%{opacity:0;-moz-transform:scale(.5);transform:scale(.5)}50%{opacity:1}100%{opacity:1;-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes grow{0%{opacity:0;-o-transform:scale(.5);transform:scale(.5)}50%{opacity:1}100%{opacity:1;-o-transform:scale(1);transform:scale(1)}}@keyframes grow{0%{opacity:0;-webkit-transform:scale(.5);-moz-transform:scale(.5);-o-transform:scale(.5);transform:scale(.5)}50%{opacity:1}100%{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}'})]})},415028:function(e,t,r){"use strict";r.d(t,{Z:function(){return design_system_Label}});var n=r(667488),o=r(367915),a=r.n(o);r(885115);var i=r(661869),s=r.n(i),design_system_Label=e=>{let{top:t,bold:r,align:o="left",style:i,className:c,children:l}=e,d=s()(o,{bold:r,top:t});return(0,n.jsxs)("label",{style:i,className:"jsx-c82652cecf7d1534 "+(c||d||""),children:[l,(0,n.jsx)(a(),{id:"c82652cecf7d1534",children:"label.jsx-c82652cecf7d1534{font-weight:normal;font-size:.9rem;line-height:2.2;display:block;cursor:pointer}label.left.jsx-c82652cecf7d1534{text-align:left}label.right.jsx-c82652cecf7d1534{text-align:right}label.bold.jsx-c82652cecf7d1534{font-weight:bold}label.top.jsx-c82652cecf7d1534{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start}"})]})}},62022:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(667488),o=r(367915),a=r.n(o),i=r(747910),s=r.n(i),c=r(885115),l=r(661869),d=r.n(l);let Select=class Select extends c.Component{render(){let e=s().omit(this.props,"onChange","blurOnChange","fullWidth","size","className");return(0,n.jsxs)("div",{className:"jsx-5113511efabfdfca "+(d()("wrapper",this.props.size,this.props.className,{full:!!this.props.fullWidth})||""),children:[(0,n.jsx)("select",{ref:this.selectRef,onChange:this.onChange,...e,className:"jsx-5113511efabfdfca "+(e&&null!=e.className&&e.className||""),children:this.props.children}),(0,n.jsx)(a(),{id:"5113511efabfdfca",children:'select.jsx-5113511efabfdfca{background-color:#f5f4f9;-webkit-border-radius:var(--border-radius);-moz-border-radius:var(--border-radius);border-radius:var(--border-radius);font-size:14px;font-family:var(--font-family);-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;border:0;padding-right:28px;cursor:pointer;height:26px;color:var(--color-form-input)}select.jsx-5113511efabfdfca:disabled{color:#999;pointer-events:none}.wrapper.jsx-5113511efabfdfca{display:inline-block;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;position:relative;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.wrapper.jsx-5113511efabfdfca::before{position:absolute;border:4px solid transparent;border-bottom:4px solid#636e7d;content:" ";display:block}.wrapper.jsx-5113511efabfdfca::after{position:absolute;border:4px solid transparent;border-top:4px solid#636e7d;content:" ";display:block}.full.jsx-5113511efabfdfca{width:100%}.full.jsx-5113511efabfdfca select.jsx-5113511efabfdfca{width:100%}.md.jsx-5113511efabfdfca select.jsx-5113511efabfdfca{height:30px;padding:0 28px 0 10px}.md.jsx-5113511efabfdfca::before{right:10px;top:4px}.md.jsx-5113511efabfdfca::after{right:10px;bottom:4px}.sm.jsx-5113511efabfdfca select.jsx-5113511efabfdfca{height:24px;padding:0 20px 0 6px}.sm.jsx-5113511efabfdfca::before{right:6px;top:2px}.sm.jsx-5113511efabfdfca::after{right:6px;bottom:2px}'})]})}constructor(e){super(e),this.onChange=e=>{this.props.onChange&&(this.props.onChange(e),this.props.blurOnChange&&this.selectRef.current.blur())},this.selectRef=c.createRef()}};Select.defaultProps={size:"md",fullWidth:!1};var u=Select},693988:function(e,t,r){"use strict";r.d(t,{$:function(){return Section}});var n=r(667488),o=r(367915),a=r.n(o);r(885115);var i=r(92109);let Section=e=>{let{children:t,...r}=e;return(0,n.jsxs)("div",{className:"jsx-33f18670c1e8578b",children:[(0,n.jsx)(i.Z,{...r,children:t}),(0,n.jsx)(a(),{id:"33f18670c1e8578b",children:"div.jsx-33f18670c1e8578b .section{overflow:inherit}"})]})}},595908:function(e,t,r){"use strict";var n=r(747910),o=r.n(n),a=r(885115),i=r(663752);t.Z=e=>{let[t,r]=(0,a.useState)([]),[n,s]=(0,a.useState)(null),[c,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let fetchData=async()=>
1{l(!0);try{let t=await (0,i.ZP)(null,"corp-api/batch-actions/list",{query:e});r(t),l(!1),s(!1)}catch(e){s(e),l(!1)}};o().isEmpty(e)||fetchData()},[e]),{batches:t,error:n,isLoading:c}}},92109:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(667488),o=r(367915),a=r.n(o),i=r(916533),s=r.n(i),c=r(885115),l=r(924966),d=r(479930),u=r(634722),f=(0,r(357565).P)({reloadable:!0})(e=>{var t,r,o;let getCacheKey=e=>"hideablesection/".concat(e,"/hidden"),[i,f]=(0,c.useState)(null!==(r=null!==(t=e.forceHidden)&&void 0!==t?t:s().get(getCacheKey(e.name)))&&void 0!==r&&r),p=(0,c.useRef)(null),h=(0,c.useRef)(null),x=null===(o=e.enableLink)||void 0===o||o;(0,c.useEffect)(()=>{var t,r;f(null!==(r=null!==(t=e.forceHidden)&&void 0!==t?t:s().get(getCacheKey(e.name)))&&void 0!==r&&r)},[e.forceHidden,e.name]),(0,c.useEffect)(()=>{p.current&&window.location.hash==="#".concat(encodeURIComponent(e.name))&&p.current.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),h.current&&e.containZoom&&h.current.addEventListener("wheel",e=>{e.ctrlKey&&e.preventDefault()})}),(0,c.useEffect)(()=>{e.linterSelected&&toggleHidden()},[]);let copyUrl=()=>{let t=window.location.href.split("#")[0];(0,d.v)("".concat(t,"#").concat(e.sectionId),{excludeOuterQuotes:!0})},toggleHidden=()=>{let t=!i;f(t),s().set(getCacheKey(e.name),t)};return e.children?(0,n.jsxs)("div",{ref:p,className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section",children:[e.sectionId?(0,n.jsxs)("div",{onClick:toggleHidden,className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section-header",children:[(0,n.jsx)("em",{style:{minWidth:24,paddingRight:0},className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]]),children:(0,n.jsx)(l.GN,{icon:i?"caret-right":"caret-down",size:"sm"})}),e.nameStatusIcon&&(0,n.jsx)(l.GN,{style:{paddingRight:"6px"},icon:e.nameStatusIcon.icon||"circle",color:e.nameStatusIcon.color}),(0,n.jsxs)("div",{className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section-title",children:[e.name,(0,n.jsx)("em",{onClick:e=>{e.stopPropagation(),copyUrl()},style:{marginLeft:8},className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]]),children:(0,n.jsx)(l.GN,{icon:"link",size:"xs"})})]})]}):(0,n.jsxs)("div",{onClick:toggleHidden,className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section-header",children:[(0,n.jsx)("em",{style:{minWidth:24,paddingRight:0},className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]]),children:(0,n.jsx)(l.GN,{icon:i?"caret-right":"caret-down",size:"sm"})}),e.nameStatusIcon&&(0,n.jsx)(l.GN,{style:{paddingRight:"6px"},icon:e.nameStatusIcon.icon||"circle",color:e.nameStatusIcon.color}),(0,n.jsxs)("div",{className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section-title",children:[e.name,x&&(0,n.jsx)("em",{onClick:t=>{t.stopPropagation(),p.current&&(p.current.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),(0,u.VF)("".concat(window.location.pathname,"#").concat(encodeURIComponent(e.name)),void 0,{shallow:!0}))},className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" pl-3",children:(0,n.jsx)(l.GN,{icon:"link",size:"xs"})})]})]}),e.keepMounted?(0,n.jsx)("div",{ref:h,style:{display:i?"none":"block"},className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section-body",children:e.children}):!i&&(0,n.jsx)("div",{ref:h,className:a().dynamic([["13c0c50e657a638b",[e.showOverflow?"":"overflow: hidden;"]]])+" section-body",children:e.children}),(0,n.jsx)(a(),{id:"13c0c50e657a638b",dynamic:[e.showOverflow?"":"overflow: hidden;"],children:".section.__jsx-style-dynamic-selector{margin:16px 0;border:1px solid rgba(0,0,0,.05);-webkit-border-radius:var(--border-radius);-moz-border-radius:var(--border-radius);border-radius:var(--border-radius);".concat(e.showOverflow?"":"overflow: hidden;","\n        }.section-header.__jsx-style-dynamic-selector{padding:12px 8px;font-weight:bold;font-size:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:background.2s;-moz-transition:background.2s;-o-transition:background.2s;transition:background.2s}.section-header.__jsx-style-dynamic-selector:hover{background:var(--color-RemoGray01)}
1.section-header.__jsx-style-dynamic-selector:hover .section-title.__jsx-style-dynamic-selector path{fill:var(--color-RemoGray20)}.section-header.__jsx-style-dynamic-selector:not(:hover) .section-title.__jsx-style-dynamic-selector path{fill:white}.section-header.__jsx-style-dynamic-selector .section-title.__jsx-style-dynamic-selector{display:inline-block}.section-header.__jsx-style-dynamic-selector .section-title.__jsx-style-dynamic-selector:hover path{fill:var(--color-RemoGray50)!important}.section-header.__jsx-style-dynamic-selector em.__jsx-style-dynamic-selector{display:inline-block}.section-body.__jsx-style-dynamic-selector{padding:16px}")})]}):null})},74750:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(667488),o=r(367915),a=r.n(o),i=r(885115),s=r(245987);let SectionTitle=class SectionTitle extends i.Component{render(){return(0,n.jsxs)("div",{className:"jsx-3d598c44eb364d94 header",children:[(0,n.jsx)("div",{className:"jsx-3d598c44eb364d94 title",children:(0,n.jsxs)(s.H2,{children:[this.props.icon," ",this.props.title]})}),(0,n.jsx)("div",{className:"jsx-3d598c44eb364d94",children:this.props.children}),(0,n.jsx)(a(),{id:"3d598c44eb364d94",children:".header.jsx-3d598c44eb364d94{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-bottom:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}"})]})}};var c=SectionTitle},184219:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return bulba_generic_project}});var n=r(667488),o=r(885115),a=r(720),i=r(866506),s=r(728219),c=r(238169),l=r(955292),d=r(78631),u=r(610375),ops_OpsRoot=e=>(0,n.jsx)(c.Z,{children:(0,n.jsxs)(d.aH,{client:u.X,children:[(0,n.jsx)(l.Z,{title:"Ops"}),(0,n.jsx)(s.VK,{forceRefresh:!0,basename:"corp",children:(0,n.jsx)(i.Z,{children:(0,n.jsx)(a.Z,{user:e.user,children:e.children})})})]})}),f=r(74750),p=r(693988),h=r(903521),x=r(871146),b=r(595908),m=r(663752),g=r(82393),j=r(888965),y=r(27875);let v={minWidth:"100px",padding:"4px 8px",border:"1px solid #aaa"},w={borderRadius:"4px",padding:"1px 8px",backgroundColor:"#eee"},k=[{id:"6463e58315d308d12ddb5385",name:"Google Bard — [email protected]",sourceProject:{id:"66988cf72889215e417a8c48",name:"GENERIC_TEMPLATE"}},{id:"651cacc71df36808ab1c4077",name:"GCP Vertex — [email protected]",sourceProject:{id:"66e0ab293a18670ccd4420fd",name:"CLOUD GENERIC_TEMPLATE"}}];var Bulba_MoveBatch=()=>{let[e,t]=(0,o.useState)({}),{batches:r,error:a,isLoading:i}=(0,b.Z)(e),[s,c]=(0,o.useState)(!1),[l,d]=(0,o.useState)(!1),[u,f]=(0,o.useState)(),[p,_]=(0,o.useState)(!1),[z,S]=(0,o.useState)(),[N,O]=(0,o.useState)(k[0]),[C,P]=(0,o.useState)(),[M,Z]=(0,o.useState)(),[I,T]=(0,o.useState)(!1),[E,D]=(0,o.useState)(!1),[L,A]=(0,o.useState)(!1),[R,B]=(0,o.useState)(!1),[F,G]=(0,o.useState)([]),[H,W]=(0,o.useState)();async function moveBatch(){_(!0);try{let e=await (0,y.Y_)("bulbaGenericProjectMoveBatch",{batchId:null==C?void 0:C.value,projectId:null==M?void 0:M.value,dryRun:!1});W(e.id)}catch(e){(0,m.vj)(e,{handleHttp:!0})}_(!1)}async function handleBatchSelection(e){if(c(!0),P(e),f(void 0),Z(null),T(!1),D(!1),A(!1),B(!1),G([]),e)try{let t=await (0,m.ZP)(null,"corp-api/bulba-generic-project/analyze-batch",{method:"POST",body:{batchId:e.value}});f(t)}catch(e){(0,m.vj)(e,{handleHttp:!0})}c(!1)}async function handleProjectSelection(e){if(d(!0),Z(e),T(!1),D(!1),A(!1),B(!1),G([]),C&&e)try{let t=await (0,m.ZP)(null,"corp-api/bulba-generic-project/analyze-project",{method:"POST",body:{batchId:C.value,projectId:e.value}});T(t.batchOK),D(t.templateOK),A(t.statusOK),B(t.bugIdOK),G(t.projectKeys)}catch(e){(0,m.vj)(e,{handleHttp:!0})}d(!1)}return(0,o.useEffect)(()=>{t({project:N.sourceProject.id})},[N]),(0,o.useEffect)(()=>{S(r.map(e=>({label:e.name,value:e._id})))},[r]),(0,n.jsxs)("div",{className:"root",children:[(0,n.jsx)("section",{children:(0,n.jsx)(h.Z,{text:'\n### Description: \nM
1ove a batch from a "Generic Project" to another project between the same customer.\n##### Author: Mathias Efron\n---\n'})}),(0,n.jsx)("br",{}),(0,n.jsxs)("section",{style:{maxWidth:"500px"},children:[(0,n.jsx)(x.__,{children:"Customer:"}),(0,n.jsx)(j.Z,{options:k.map(e=>({value:e.id,label:e.name})),onChange:function(e){let{value:t}=e,r=k.find(e=>e.id===t);if(!r)throw Error("customer (".concat(t,") not found"));O(r)},value:{value:N.id,label:N.name}})]}),(0,n.jsx)("br",{}),(0,n.jsxs)("section",{children:[(0,n.jsx)(x.__,{style:{cursor:"default"},children:"Source Project:"}),(0,n.jsx)("strong",{children:N.sourceProject.name})," ",function(){let e="https://dashboard.scale.com/corp/qm/queue/".concat(N.sourceProject.id);return(0,n.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:e,children:N.sourceProject.id})}()]}),(0,n.jsx)("br",{}),(0,n.jsxs)("section",{style:{maxWidth:"500px"},children:[(0,n.jsx)(x.__,{children:"Batch:"}),a?"Error fetching batches, please try again later... (".concat(a,"}"):i?"Loading batches...":(0,n.jsx)(j.Z,{value:C,disabled:!r.length||s||l||p,onChange:handleBatchSelection,options:z})]}),u?(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Batch:"})," ",function(){let e="https://dashboard.scale.com/corp/lookup/".concat(null==C?void 0:C.value);return(0,n.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:e,children:null==C?void 0:C.value})}()]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Task count:"})," ",u.taskCount]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Sample task:"})," ",function(){let e="https://dashboard.scale.com/corp/lookup/".concat(null==u?void 0:u.sampleTask.id);return(0,n.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:e,children:null==u?void 0:u.sampleTask.id})}()]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Created at:"})," ",u.batch.createdAt]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Status:"})," ",(0,n.jsx)("code",{style:w,children:u.batch.status})]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Bug ID:"})," ",function(){let e="https://partnerissuetracker.corp.google.com/u/0/issues/".concat(null==u?void 0:u.batch.bugId);return(0,n.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:e,children:null==u?void 0:u.batch.bugId})}()]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Template variables:"}),(0,n.jsx)("table",{children:(0,n.jsx)("tbody",{children:Object.entries(u.sampleTask.templateVariables).map(e=>{let[t,r]=e;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{style:v,children:t}),(0,n.jsx)("td",{style:v,children:r})]},t)})})})]})]}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)("br",{}),(0,n.jsxs)("section",{children:[(0,n.jsx)(x.__,{children:"Target Project:"}),(0,n.jsx)(g.Z,{disabled:s||l||p||!C,value:M,customer:N.id,onChange:handleProjectSelection})]}),F.length&&I?(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Batch is valid ✅ "})}),(0,n.jsxs)("li",{children:["After you click ",(0,n.jsx)("code",{style:w,children:"MOVE BATCH"})," batch"," ",(0,n.jsx)("strong",{children:null==C?void 0:C.label})," (",null==C?void 0:C.value,") and all its"," ",(0,n.jsxs)("strong",{children:[null==u?void 0:u.taskCount," tasks"]})," will be moved from project"," ",(0,n.jsx)("strong",{children:N.sourceProject.name})," (",N.sourceProject.id,") to"," ",(0,n.jsx)("strong",{children:null==M?void 0:M.label})]})]}):(0,n.jsx)(n.Fragment,{}),F.length&&!I?(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Batch is not valid ❌"})}),!E&&(0,n.jsx)("li",{children:"Please check that the template variables keys match the ones on the target project"}),!E&&(0,n.jsxs)("li",{children:["Target project template variables:",(0,n.jsx)("table",{children:F.map(e=>(0,n.jsx)("tr",{children:(0,n.jsx)("td",{style:v,children:e})},e))})]}),!L&&(0,n.jsx)("li",{children:'Batch status should not be "staging"'}),!R&&(0,n.jsxs)("li",{children:["Batch is missing Bug ID in metadata: ",(0,n.jsx)("code",{style:w,children:"metadata.bug_id"})]})]}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)("br",{}),(0,n.jsx)(x.zx,{primary:!0,disabled:!C||!M||s||l||!I||p,requireConfirmation:!0,onClick:moveBatch,children:C?s?"Analyzing batch...":M?l?"Analyzing project...":I?"Move batch":I?p?"Moving batch...":"Something went wrong - please reload the page":"Select a target project":"Select a target project":"Select a batch"}),H&&(0,n.jsxs)("h4",{children:["Your corp job has started. Corp Job ID: ",H]})]})},ops_BulbaGenericProjectPage=()=>(0,n.jsxs)("div",{className:"root",children:[(0,n.jsx)(f.Z,{title:"Bulba Generic Project"}),(0,n.jsx)(p.$,{name:"Move Batch",forceHidden:!1,children:(0,n.jsx)(Bulba_MoveBatch,{})})]}),bulba_generic_project=e=>(0,n.jsx)(ops_OpsRoot,{user:e.user,children:(0,n.jsx)(ops_BulbaGenericProjectPage,{})})},479930:function(e,t,r){"use strict";r.d(t,{v:function(){return copyToClipboard}});let copyToClipboard=function(e){var t;let{excludeOuterQuotes:r=!1,copyRaw:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n?e:JSON.stringify(e),a=r&&!n?o.slice(1,-1):o;(null===(t=navigator.clipboard)||void 0===t?void 0:t.writeText)?navigator.clipboard.writeText(a).catch(()=>{copyViaTextarea(a)}):copyViaTextarea(a)};function copyViaTextarea(e){let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},27875:function(e,t,r){"use strict";r.d(t,{OX:function(){return fetchCorpJob},Ps:function(){return invokeDynamicCorpJob},Y_:function(){return invokeAsyncCorpJob},wO:function(){return invokeCorpJob}});var n=r(663752);async function invokeCorpJob(e,t){let r=await (0,n.ZP)(null,"corp-api/jobs/".concat(e),{method:"POST",body:{name:e,input:JSON.stringify(t),metadata:{reason:"Invoked from ".concat(window.location.href)},isAsync:!1}});return r}async function invokeAsyncCorpJob(e,t){let r=await (0,n.ZP)(null,"corp-api/jobs/".concat(e),{method:"POST",body:{name:e,input:JSON.stringify(t),metadata:{reason:"Invoked from ".concat(window.location.href)},isAsync:!0}});return r}let invokeDynamicCorpJob=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,i=await (0,n.ZP)(null,"corp-api/".concat(a?"toolbox/".concat(e):"jobs/".concat(e,"-dynamicCorpJob")),{method:"POST",body:{name:e,input:JSON.stringify(t),metadata:{reason:"Used Dynamic Corp Page"}
1,isAsync:r,isPoll:o}});return i};async function fetchCorpJob(e){return(0,n.ZP)(null,"corp-api/jobs/job/".concat(e))}},712002:function(e,t,r){"use strict";function requiredArgs(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return requiredArgs}})},940755:function(e,t,r){"use strict";function toInteger(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{Z:function(){return toInteger}})},270679:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return addDays}});var n=r(940755),o=r(645809),a=r(712002);function addDays(e,t){(0,a.Z)(2,arguments);var r=(0,o.default)(e),i=(0,n.Z)(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}},667414:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return isAfter}});var n=r(645809),o=r(712002);function isAfter(e,t){(0,o.Z)(2,arguments);var r=(0,n.default)(e),a=(0,n.default)(t);return r.getTime()>a.getTime()}},190536:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return subDays}});var n=r(270679),o=r(712002),a=r(940755);function subDays(e,t){(0,o.Z)(2,arguments);var r=(0,a.Z)(t);return(0,n.default)(e,-r)}},645809:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return toDate}});var n=r(851207),o=r(712002);function toDate(e){(0,o.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},998885:function(e,t,r){"use strict";r.d(t,{Z:function(){return FuzzySearch}});let Helper=class Helper{static getDescendantProperty(e,t,r=[]){let n,o,a,i,s,c;if(t){if(-1===(a=t.indexOf("."))?n=t:(n=t.slice(0,a),o=t.slice(a+1)),null!=(i=e[n])){if(o||"string"!=typeof i&&"number"!=typeof i){if("[object Array]"===Object.prototype.toString.call(i))for(s=0,c=i.length;s<c;s++)Helper.getDescendantProperty(i[s],o,r);else o&&Helper.getDescendantProperty(i,o,r)}else r.push(i)}}else r.push(e);return r}};let FuzzySearch=class FuzzySearch{constructor(e=[],t=[],r={}){Array.isArray(t)||(r=t,t=[]),this.haystack=e,this.keys=t,this.options=Object.assign({caseSensitive:!1,sort:!1},r)}search(e=""){if(""===e)return this.haystack;let t=[];for(let r=0;r<this.haystack.length;r++){let n=this.haystack[r];if(0===this.keys.length){let r=FuzzySearch.isMatch(n,e,this.options.caseSensitive);r&&t.push({item:n,score:r})}else for(let r=0;r<this.keys.length;r++){let o=Helper.getDescendantProperty(n,this.keys[r]),a=!1;for(let r=0;r<o.length;r++){let i=FuzzySearch.isMatch(o[r],e,this.options.caseSensitive);if(i){a=!0,t.push({item:n,score:i});break}}if(a)break}}return this.options.sort&&t.sort((e,t)=>e.score-t.score),t.map(e=>e.item)}static isMatch(e,t,r){e=String(e),t=String(t),r||(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase());let n=FuzzySearch.nearestIndexesFor(e,t);return!!n&&(e===t?1:n.length>1?2+(n[n.length-1]-n[0]):2+n[0])}static nearestIndexesFor(e,t){let r=t.split(""),n=[],o=FuzzySearch.indexesOfFirstLetter(e,t);return o.forEach((t,o)=>{let a=t+1;n[o]=[t];for(let t=1;t<r.length;t++){let i=r[t];if(-1===(a=e.indexOf(i,a))){n[o]=!1;break}n[o].push(a),a++}}),!!(n=n.filter(e=>!1!==e)).length&&n.sort((e,t)=>1===e.length?e[0]-t[0]:(e=e[e.length-1]-e[0])-(t=t[t.length-1]-t[0]))[0]}static indexesOfFirstLetter(e,t){let r=t[0];return e.split("").map((e,t)=>e===r&&t).filter(e=>!1!==e)}}},711417:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function equal(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var i,s,c,l;if(e.constructor!==a.constructor)return!1;if(Array.isArray(e)){if((i=e.length)!=a.length)return!1;for(s=i;0!=s--;)if(!equal(e[s],a[s]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;for(l=e.entries();!(s=l.next()).done;)if(!equal(s.value[1],a.get(s.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((i=e.length)!=a.length)return!1;for(s=i;0!=s--;)if(e[s]!==a[s])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(s=i;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(t&&e instanceof Element)return!1;for(s=i;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!e.$$typeof)&&!equal(e[c[s]],a[c[s]]))return!1;return!0}return e!=e&&a!=a}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},913334:function(e,t,r){var n=r(812858).default;function _interopRequireWildcard(t,r){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esMo
1dule)return e;var r,i,s={__proto__:null,default:e};if(null===e||"object"!=n(e)&&"function"!=typeof e)return s;if(r=t?a:o){if(r.has(e))return r.get(e);r.set(e,s)}for(var c in e)"default"!==c&&({}).hasOwnProperty.call(e,c)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(i.get||i.set)?r(s,c,i):s[c]=e[c]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(t,r)}e.exports=_interopRequireWildcard,e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[23890,99218,28041,75095,605,54464,21637,67138,98703,12100,23532,40907,57753,49430,94209,82393,49774,92888,40179],function(){return e(e.s=774629)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.