PageSourceSearch

https://app.searchpilot.com/assets/vite/VariableEditApp-CkuBhyBX.js

js searchpilot.com collected 2026-09-24 17:41:54 UTC 2,632 bytes, 2 lines download raw bytes

1import{aA as m,q as u,j as e,a$ as p,bm as o,A as x}from"./root-C9LVyve2.js";import{u as b}from"./useSuspenseQuery-Cdwzuijc.js";import{g as f}from"./RouterProvider-BasQyeSe.js";import{am as h,an as g,H as j}from"./index-BbbtkjlU.js";import{E as v}from"./ExampleURLDropdown-Bq7P5h9X.js";import{V as y}from"./VariablesForm-CHBj9NL7.js";import"./queryOptions-BQvTFV_-.js";import"./useMutation-CBnyrxiv.js";import"./hooks-Dmcz0DDD.js";import"./HighlightedCode-BIN8JY2s.js";import"./index-DPxt4TBf.js";import"./powershell-bYSXOky-.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 s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="9a3e194c-854b-4064-ad3d-1a155c25c428",t._sentryDebugIdIdentifier="sentry-dbid-9a3e194c-854b-4064-ad3d-1a155c25c428")}catch{}})();const S=f("/$accountSlug/$sectionSlug/variable/$variableId"),D=()=>{const t=m(),s=S.useParams(),{data:a}=b(h(s)),r=a.section,n=r.account,l=u(),c=g(),d=r.type!=="api"?"values":"split-test";return e.jsxs(e.Fragment,{children:[e.jsx(j,{children:e.jsx("title",{children:"Edit Value | SearchPilot"})}),e.jsxs(p,{children:[e.jsx(o,{label:n.name,href:t.buildLocation({to:"/$accountSlug/dashboard/",params:s}).href}),e.jsx(o,{label:r.name,href:t.buildLocation({to:"/$accountSlug/$sectionSlug/",params:s}).href}),e.jsx(o,{label:"Values",href:t.buildLocation({to:"/$accountSlug/$sectionSlug/",params:s,search:{tab:d}}).href}),e.jsx(o,{label:a.name,href:"",currentCrumb:!0})]}),e.jsxs("main",{className:"ml-auto w-full grow",children:[e.jsxs("div",{className:"mx-auto flex max-w-7xl flex-row items-center px-12",children:[e.jsxs("h1",{className:"text-sp-neutral-900 p-2 text-4xl",children:["Edit Value: ",a.name]}),e.jsx("div",{className:"ml-auto mr-4",children:e.jsx(v,{exampleUrls:r.exampleUrls})})]}),e.jsxs("div",{className:"mx-auto mt-5 max-w-7xl px-12",children:[a.isAssociatedWithPageTemplate?e.jsx(x,{variant:"info",className:"mb-4",message:"This value is associated with a Page Template and cannot be edited."}):null,e.jsx(y,{exampleURLId:r.exampleUrls[0].id,variable:{pk:a.id,section_id:r.id,name:a.name,description:a.description,extractor:a.extractor,converters:a.converters},sectionType:r.type,disabled:a.isAssociatedWithPageTemplate,saveForm:i=>c.mutateAsync({url:a.editUrl,variableId:a.id,name:i.name,description:i.description,extractor:i.extractor,converters:i.converters},{onSuccess:()=>{l.success("Value Saved")}})})]})]})]})};export{D as default};
2//# sourceMappingURL=VariableEditApp-CkuBhyBX.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.