PageSourceSearch

https://app.searchpilot.com/assets/vite/ExperimentEditApp-CsUXDtiF.js

js searchpilot.com collected 2026-10-02 03:05:50 UTC 4,143 bytes, 2 lines download raw bytes

1import{aA as x,j as s,a$ as E,bm as c}from"./root-Bfop0rm5.js";import{u as g}from"./useSuspenseQuery-BQhhhUjQ.js";import{g as _}from"./RouterProvider-BbsgWugL.js";import{aK as A,H as I,aL as k,aM as w}from"./index-C97ZXgRl.js";import{C as v,P}from"./CreateOrEditTestForm-Uwmrf652.js";import"./queryOptions-BQvTFV_-.js";import"./useMutation-DrGfYVG5.js";import"./hooks-BJhLWX9Q.js";import"./react-select.esm-D4GII4TB.js";import"./Select-49a62830.esm-dhgnyRrL.js";import"./BucketCorrelationChart-1KE-ja91.js";import"./highcharts-react.min-BWR8lYuX.js";import"./ToggleButton-C4P4sMqP.js";import"./react-select-creatable.esm-Do1VQwUK.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"distillery-frontend"};var o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="2303ba1d-c39d-46e0-af91-466b8f34cca5",t._sentryDebugIdIdentifier="sentry-dbid-2303ba1d-c39d-46e0-af91-466b8f34cca5")}catch{}})();const h=_("/$accountSlug/testing/in_section_test/test/$testId"),D=5e3,R=t=>t.testType==="seo"&&t.status==="waiting-for-salt"||t.testType==="linear_full_funnel"&&t.lffSeoExperiment?.status==="waiting-for-salt",G=()=>{const t=x(),o=h.useNavigate(),n=h.useParams(),{data:e,refetch:d}=g({...A(n),refetchInterval:r=>{const i=r.state.data;return i&&R(i)?D:!1}}),{data:u}=g(k()),a=e.section,l=a.account,p=a.type!=="api"?"rules":"split-test",f=()=>{o({to:"/$accountSlug/$sectionSlug/",params:{...n,sectionSlug:a.slug},search:{show_test_end_warning:"",tab:p}})},S=()=>{o({to:"/$accountSlug/testing/in_section_test/section/$sectionSlug/",params:{...n,sectionSlug:a.slug}})},y=async r=>{await w({test_id:r}),d()},m=e.testType==="linear_full_funnel"?e.lffSeoExperiment?.testId:e.testId,b=e.testType==="linear_full_funnel"?e.lffSeoExperiment?.status??"":e.status,T=m!=null&&!P.includes(b)?()=>y(m):void 0;return s.jsxs(s.Fragment,{children:[s.jsx(I,{children:s.jsx("title",{children:"Edit Test | SearchPilot"})}),s.jsxs(E,{children:[s.jsx(c,{label:l.name,href:t.buildLocation({to:"/$accountSlug/dashboard/",params:n}).href}),s.jsx(c,{label:a.name,href:t.buildLocation({to:"/$accountSlug/$sectionSlug/",params:{...n,sectionSlug:a.slug}}).href}),s.jsx(c,{label:"Split Test",href:t.buildLocation({to:"/$accountSlug/$sectionSlug/",params:{...n,sectionSlug:a.slug},search:{tab:p}}).href}),s.jsx(c,{label:"Edit Test",href:"",currentCrumb:!0})]}),s.jsx("main",{className:"ml-auto w-full grow",children:s.jsx("div",{className:"mx-auto mt-5 max-w-7xl px-12",children:s.jsx(v,{accountSlug:l.slug,sectionId:a.id,test:{id:e.testId,sectionId:a.id,name:e.name,notes:e.notes,hasher:e.hasher,hasherParameters:e.hasherParameters,status:e.status,salt:e.salt,saltOverride:e.saltOverride,croParameters:e.croParameters,fullFunnelParameters:e.fullFunnelParameters,testType:e.testType,lffCroExperiment:e.lffCroExperiment,lffSeoExperiment:e.lffSeoExperiment,canBeDeleted:e.canBeDeleted,canBeDeletedReason:e.canBeDeletedReason,hypothesis:e.hypothesis,mainLever:e.mainLever,changeTypeId:e.changeType?.id??"",pageTypeId:e.pageType?.id??"",strongHypothesis:e.strongHypothesis,expectedDirection:e.expectedDirection,experimentMetrics:e.experimentMetrics,primaryAlpha:e.primaryAlpha,latestSaltShakeJob:e.latestSaltShakeJob,latestBucketingAssessmentJob:e.latestBucketingAssessmentJob,tags:e.tags,detectOutliers:e.detectOutliers,isAssociatedWithPageTemplate:e.isAssociatedWithPageTemplate},sectionType:a.type,downloadMethod:l.analyticsConfig?.primaryDataSource.downloadMethod||"unknown",variablesToHashOrCheck:a.variablesToHashOrCheck,hasContentMatcher:a.hasContentMatcher,navigateToSectionDashboard:f,navigateToAddTest:S,onRolloutAPIExperiment:d,onRetriggerSaltShake:T,metricOptions:l.analyticsConfig?.dataSources.map(r=>r.metrics.map(i=>({id:i.id,name:i.name,isPrimary:i.is_primary,dataSource:{id:r.id,downloadMethod:r.downloadMethod}}))).flat()||[],canSeeBucketCorrelationAdvancedDetails:u.canSeeBucketCorrelationAdvancedDetails,isHodgepodgeEnabled:u.isHodgepodgeEnabled})})})]})};export{G as default};
2//# sourceMappingURL=ExperimentEditApp-CsUXDtiF.js.map

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.