1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1ad2ebe4-f5f8-5546-bdf4-e3f02976ca32")}catch(e){}}(); 3import{j as e,O as S,c as re,R as oe,u as o,H as se,b as O,s as A,e as h,r as G,f as ne,E as N,aL as ae,aS as me,m as pe,p as le}from"./index-BibjyPTE.js";import{c as J,W as L,u as $,a as ce,A as de,bx as ue,az as he,by as xe,B as y,ac as fe,bh as ge,bz as je,G as ye,aj as ve,bA as be,ab as Se,bB as Pe,bC as Ee,bD as Te}from"./Breadcrumb-EkcGPuP6.js";import{z as I}from"./index-BUirL_DR.js";import{V as we}from"./index-jJ9-bWWS.js";import{F as Ce}from"./formik.esm-BdcHBANq.js";import{D as Ge}from"./DottedBackground-ByxXXPSg.js";import{g as Oe,b as ke}from"./ResourceCommitPromote-BUButU3l.js";import{g as Re,I as Ie,G as Ae}from"./helpers-SwsE5sot.js";import{u as q}from"./useGuidePermissions-CahCR1HI.js";import{u as Le}from"./useConfirm-CJlpwAWy.js";import{u as z}from"./useAgentHttpClient-D6WK9D1F.js";import{b as V}from"./index-BllNGK-1.js";import{h as Ve,a as _,g as ze}from"./paths-BWPz_M_c.js";import"./index-qYAPjvJR.js";import{g as Be,u as De}from"./gql-DE20YUEL.js";import{M as Fe}from"./Meta-CR0s0B-S.js";import{C as Ke}from"./CenteredSpinner-Cw-HfplT.js";import{I as Me}from"./ItemNotFound-C1S8VUHL.js";import{A as Ne}from"./arrow-right-BxMu1bB5.js";import{u as _e}from"./useQuery-ChrxxERi.js";import{G as We}from"./GuideEditorStepForm-D2ZlTYc_.js";import{u as He,G as Ue}from"./useGuideTemplateVariables-CJj-qmkB.js";import{E as W}from"./ExternalRecipientSelector-CJd083mc.js";import{E as Je}from"./ExternalTenantSelector-RHT_DLUC.js";import{S as $e}from"./SchemaPropertiesAsJsonModal-CR8opHiC.js";import qe from"./square-pen-DnjoYrBz.js";import{G as Qe}from"./GuideToolbarV2PreviewUrl-DJ-9hcfw.js";import{G as v}from"./MessageTypePreviewRenderer-BJyUwWC0.js";import{v as Xe}from"./validateFieldValue-CbeUnfhc.js";import"./UpdateMessageTypeModal-CZx-iamn.js";import{u as Ye}from"./useKnockToast-Co4WD0qW.js";import"./index-BRysSYGQ.js";import"./get-DuPZLZpA.js";import"./index-CZsZYQTi.js";import{f as Ze}from"./helpers-DOEGB2cR.js";import"./index-DXLYvgu0.js";import"./ColorPopoverContent.styles-B8eyq-2a.js";import"./AssetPickerHost-D_r6mCdr.js";import"./ImageUploadMetadataContext-Do2AJgBG.js";import"./TableColumnManager-B1o5SMFm.js";import"./types-3Mxs7ypx.js";import{P as et}from"./PreviewSettings-DdvSyLYn.js";import{P as b}from"./Pane-3oFVsEZv.js";import{u as H}from"./useLocalStorage-4sZ8gRoN.js";import{p as tt}from"./formHelpers-FXshqlws.js";import{f as U}from"./localStorage-ChIflZH5.js";import it from"./panel-left-BgpdUTzY.js";import"./fragments.typegen-CqjmN_fH.js";import"./index-DToj8SII.js";import"./AccountAvatar-iRJn78zS.js";import"./environment-CuwLrmDK.js";import"./useClipboard-B0VW0Njm.js";import"./useAnimatedText-4tQOqGt5.js";import"./fragments-gZyjuvDu.js";import"./useCurrentUser-BfvTNe4N.js";import"./useLazyQuery-DcFJpl-i.js";import"./chevron-right-DJ2xXW7k.js";import"./check-goOWWmpv.js";import"./index-UJmbo33A.js";import"./index-0bv2VSDu.js";import"./index-C4ev2U8w.js";import"./mail-QKnCcR9w.js";import"./slugify-Bf4wVM_c.js";import"./useDotBackground-DbO_waYH.js";import"./react-hotkeys-hook.esm-uGxPHoQD.js";import"./useResourceChangeCounts-CGmb_i7b.js";import"./commits-DU3eqEiB.js";import"./useSubscription-CdUCuNOu.js";import"./cloneDeep-BZde2shh.js";import"./_initCloneObject-rh81Yd20.js";import"./merge-Bpphc1Ck.js";import"./isPlainObject-3rdonpEy.js";import"./_setToString-BqVw3WOv.js";import"./isPlainObject-BuZ6-dWq.js";import"./useWorkflow-CTbtuO4M.js";import"./dates-DjzzusVh.js";import"./git-commit-horizontal-CEI3htyJ.js";import"./gql-CGK4EQDH.js";import"./gql.typegen-CXOZ2V90.js";import"./gql.typegen-mTchMjgM.js";import"./git-pull-request-draft-BlQ-tZwz.js";import"./delete-B6VulfDU.js";import"./navigation-8uFS96WC.js";import"./git-pull-request-DXr6t2Tt.js";import"./constants-DuhbT1ky.js";import"./ProviderBrandmark-DxWLtk72.js";import"./Brandmark-DkUhmZnC.js";import"./puzzle-CVu_6Psr.js";import"./useLeavePrevention-BMnXLqas.js";import"./MessageTypeSchemaField-A4fs5Kve.js";import"./graphql-Bt4ZtNHA.js";import"./external-link-B_mn5IxT.js";
3import"./trash-2-DiganWf-.js";import"./strikethrough-CQ5tL1I4.js";import"./code-CX4Djp09.js";import"./gql.typegen-DLf_pE7q.js";import"./useFlag-DkG6y34j.js";import"./ColorPickerInput-b-WDjedL.js";import"./index-DlyMlN9-.js";import"./ImageUploadButton-BRgMxIs9.js";import"./image-off-BeG-T5D8.js";import"./jsonSchemaValidator-BEChWYzH.js";import"./chevron-up-DqmXsSVk.js";import"./IconPicker-C_rOz2mh.js";import"./bell-dot-B79NaKjK.js";import"./LineClampedText-DFLIQyh1.js";import"./gql.typegen-ChkIV8ce.js";import"./search-slash-Bgm1kNei.js";import"./book-open-check-VvZGV1aV.js";import"./refresh-ccw-y_JS4yjW.js";import"./file-braces-corner-DpFy0LaN.js";import"./eye-off-CK50g1PQ.js";import"./templateVariables-D-PjX9vv.js";import"./variables-ro2rMT_1.js";import"./useWorkflowState-xvV-3Bqv.js";import"./config-S-4tB8sX.js";import"./helpers-EoOUn5m1.js";import"./navigation-off-COP1YBQt.js";import"./mail-x-CUfE6FBd.js";import"./mail-warning-g-RK_oNH.js";import"./mail-check-EmWyJCSp.js";import"./eye-tk9sEj5z.js";import"./mail-open-cKk9ckaT.js";import"./mail-plus-IxfoeYdV.js";import"./mouse-pointer-click-CQBnxY8t.js";import"./archive-BWGxlGoN.js";import"./gql.typegen-CUuZhoGR.js";import"./hooks-B5RLpGIO.js";import"./useObjectSchema-Uu4Jdwpj.js";import"./useTenantSchema-B1MZkVXc.js";import"./useUserSchema-DcHCWuCE.js";import"./labels-B7TByOzP.js";import"./audienceEventOptions-BAu8Wuvb.js";import"./graphqlHelpers-B8h-1hoG.js";import"./recipientPath-DVZVjDJ5.js";import"./clock-r-WPI5e6.js";import"./refresh-cw-BfUIA_92.js";import"./flag-DaPYh-mP.js";import"./mail-minus-CAnAzujQ.js";import"./archive-restore-M0kdx-UJ.js";import"./helpers-4DN8ehN2.js";import"./Primitives-DuG09iZR.js";import"./StepIcon-CNIYxk_K.js";import"./user-round-check-CD_468ve.js";import"./zap-BxvpFNLD.js";import"./smartphone-C7aAn6Yq.js";import"./message-circle-BoS1sUfn.js";import"./hourglass-CCpZgZq4.js";import"./user-DUTo_Hz_.js";import"./shuffle-92jNldRh.js";import"./network-BlL_pOVt.js";import"./file-braces-CHQIYAZx.js";import"./timer-D2MsbS5P.js";import"./useWorkflowPermissions-Bfnjx5YV.js";import"./gql.typegen-CXNcAlMt.js";import"./helpers-DlNQ89fx.js";import"./ExternalObjectSelector-DVCuUWdS.js";import"./ManageExternalObjectModal-7hYGvnni.js";import"./buildRecipientUpsertInput-Dd7qMfEx.js";import"./set-BYHdukiG.js";import"./_baseSet-DyyTPZ25.js";import"./SchemaAddPropertyForm-P8jLgwUd.js";import"./typeMeta-DMrjJHFy.js";import"./brackets-5kztHFXn.js";import"./toggle-left-CDASkx2Q.js";import"./binary-BlnFBEqx.js";import"./hash-CZWT4h2t.js";import"./type-CAeIcp0q.js";import"./ban-DvRnzJWv.js";import"./utils-CRiRZYlJ.js";import"./timezones-BxxwGanW.js";import"./schemaPropertyVisibility-CvQXqUYU.js";import"./recipients-CBmZKwLS.js";import"./useObjectCollections-CLEnhy-_.js";import"./common-Bh2g5KdN.js";import"./TruncatedText-BvE9s4c5.js";import"./ExternalUserSelector-CNr7lCTv.js";import"./ManageExternalUserModal-C6nK8bsf.js";import"./useHiddenUserSchemaPropertyKeys-us4DfkOX.js";import"./gql-6dQBgP9q.js";import"./JsonObjectEditorModal-BWOqP9Oh.js";import"./constants-BcP1QuBI.js";import"./TooltipLabelWithKbd-CXRWdJTK.js";import"./minimize-2-B7nexSD_.js";import"./maximize-2-CT6Wx0qR.js";import"./shrink-BiPGI-uc.js";import"./scan-eye-C0y28jum.js";import"./useIframeThemeSync-D3Fz-nTI.js";import"./previewRequestQueue-t-f775tb.js";import"./heading-1-ByNMX4Gd.js";import"./heading-2-CGIc_7T6.js";import"./heading-3-c2FnuBnE.js";import"./text-quote-C6KPGMvh.js";import"./PropertySelectorMenu-CtiFCBxq.js";import"./use-motion-value--HMAJCCV.js";import"./animate-D63uxMra.js";import"./corner-down-right-KzQFbMwo.js";import"./repeat-ByZnRHmY.js";import"./shield-off-BAuesC87.js";import"./list-tree-DPbtu1iI.js";import"./clipboard-copy-CjaBVJ2t.js";import"./message-square-off-BBcduPxH.js";import"./file-code-corner-BZp7k3PQ.js";import"./languages-ByVwu1BP.js";import"./text-cursor-input-CQ6dZEN2.js";import"./rectangle-horizontal-DdI7at32.js";import"./toggle-right-CLZfyPVf.js";import"./file-down-A5e9ckuo.js";import"./square-check-big-L0btkLEs.js";import"./list-todo-r8KpTzRQ.js";import"./link-2-CWxKks6V.js";import"./palette-B3LreSDw.js";
3import"./PaginationControl-FIBHHrtU.js";import"./gql.typegen-DYWTVK5j.js";import"./sortable.esm-Db5-IM2K.js";import"./pin-DtvjhFCP.js";const rt=({guide:t,environment:i,isDirty:s=!1,onSave:d})=>{const{account:a}=z(),{confirm:p}=Le(),m=q(t),u=!m.manage.isAllowed,l=!u&&t.hasUnpublishedChanges&&t.canBePublished,x=J("commit"),c=Oe(i,a,"Guide"),g=Re({hasManagePermission:m.manage.isAllowed,readOnly:u,guide:t}),P=async()=>{if(!s)return x.onOpen();let w=!1;const j=await p({title:"You have unsaved changes",description:"Would you like to save the changes you made before committing?",confirmButtonLabel:"Save",confirmButtonProps:{color:"accent"},cancelButtonLabel:"Continue without saving",cancelButtonProps:{onClick:()=>{w=!0}}});!j&&!w||(j&&await d?.(),x.onOpen())},T=L({name:"Commit",callback:P,options:{group:"Actions",nameOverride:`${c.action} changes to ${i?.name?.toLowerCase()}`,enabled:l}});return e.jsxs(e.Fragment,{children:[x.isOpen&&e.jsx(ke.Guide,{...x,environment:i,guideKey:t.key}),e.jsx(T.Tooltip,{label:g||e.jsx(T.Kbd,{}),children:e.jsx(S,{size:"1",color:"accent",disabled:!l,leadingIcon:{icon:c.icon,alt:c.action},onClick:P,children:c.action})})]})},ot=({account:t,environment:i,guide:s,rhsActionsRef:d})=>e.jsxs(o,{align:"center",justify:"space-between",py:"2",zIndex:"sticky",px:"4",children:[e.jsxs(o,{alignItems:"center",height:"full",gap:"1_5",style:{flexBasis:"40%"},children:[e.jsx(o,{children:e.jsx(V,{label:"Go back to guide",children:e.jsx(S,{as:O,href:_(t,i,s),icon:{icon:Ne,alt:"Back to guide"},variant:"outline",size:"1"})})}),e.jsxs(o,{gap:"1_5",children:[e.jsx(he,{}),e.jsx(xe,{})]}),e.jsxs(y.Container,{children:[e.jsx(y.Item,{href:ze(t,i),children:"Guides"}),e.jsx(y.Separator,{}),e.jsx(y.Item,{href:_(t,i,s),children:s.name}),e.jsx(y.Separator,{}),e.jsx(y.Item,{children:"Content"})]})]}),e.jsx(o,{alignItems:"center",height:"full",justify:"flex-end",style:{flexBasis:"40%"},children:e.jsx("div",{ref:d})})]}),st=({children:t})=>{const i=re(),{account:s,seat:d}=z(),{environment:a}=$(),p=oe.useRef(null),m=i.query.key,u=Ve(d,"guides:read",a),{data:l,loading:x}=_e(Be,{variables:{environmentId:a?.id,key:m},skip:!m||!a?.id||!u});if(ce({type:"activeGuideKey",value:l?.guide?.key,skip:!l?.guide?.key}),!u)return e.jsx(de,{});if(x)return e.jsx(Ke,{});if(!l?.guide||!l?.defaultGuideGroup)return e.jsx(o,{align:"center",justify:"center",style:{height:"calc(100vh - var(--dev-toolbar-h, 0px))"},children:e.jsx(Me,{account:s,currentEnvironment:a,itemType:"guide"})});const c=l.guide,g=l.defaultGuideGroup;return e.jsxs(e.Fragment,{children:[ue,e.jsx(se,{children:e.jsxs("title",{children:["Guide | ",c.name," | Knock"]})}),e.jsx(Fe,{}),e.jsxs(o,{direction:"column",bg:"surface-2",style:{height:"calc(100vh - var(--dev-toolbar-h, 0px))",position:"relative"},children:[s&&a&&e.jsx(ot,{account:s,environment:a,guide:c,rhsActionsRef:p}),e.jsx(o,{h:"full",style:{overflow:"hidden",position:"relative"},children:t({guide:c,defaultGuideGroup:g,headerRhsActionsRef:p})})]})]})},C=({title:t,state:i,variablePrefix:s,action:d,emptyMessage:a,children:p})=>e.jsxs(h,{children:[e.jsxs(o,{p:"4",borderTop:"px",borderColor:"gray-4",bg:"surface-1",justify:"space-between",direction:"column",gap:"2",children:[e.jsxs(o,{direction:"row",gap:"2",align:"center",justify:"space-between",children:[e.jsx(A,{as:"h4",size:"1",weight:"medium",children:t}),e.jsx(h,{children:d})]}),p]}),Object.keys(i)?.length>0?e.jsx(o,{h:"full",children:e.jsx(o,{direction:"column",pb:"4",w:"full",style:{gap:"2px"},children:Object.entries(i).map(([m,u])=>e.jsx(je,{variableKey:m,variableValue:u,variablePrefix:s},m))})}):a?e.jsx(h,{px:"4",pb:"4",children:e.jsx(A,{as:"span",size:"0",color:"gray",children:a})}):null]}),nt=({guide:t,templateVariables:i,onChangeRecipientId:s,onChangeTenantId:d})=>{const{settingsPath:a}=fe(),p=J("edit-preview-data");return e.jsxs(o,{h:"full",direction:"column",bg:"surface-1",w:"full",style:{overflowY:"auto"},children:[e.jsx(o,{px:"4",py:"3",h:"12",align:"center",justify:"space-between",bg:"surface-1",children:e.jsx(A,{as:"h3",size:"2",weight:"medium",children:"Template variables"})}),e.jsx(C,{title:"Data payload",state:i.data,action:e.jsx(o,{gap:"2",w:"full",align:"center",children:e.jsx(V,{label:"Edit preview data",children:e.jsx(S,{as:O,href:p.openHref,size:"1",variant:"outline",icon:{icon:qe,alt:"Edit preview data"}})})}),emptyMessage:"No data payload to display."}),e.jsx(W.Root,{value:i?.recipient||null,onValueChange:m=>{m?.id&&s(m.id)},defaultType:i?.recipient&&"collection"in i.recipient?"object":"user",defaultIfEmpty:!0,children:e.jsx(C,{title:"Recipient",state:i?.recipient||{},variablePrefix:"recipient",children:e.jsx(W.Selector,{})})}),e.jsx(C,{title:"Tenant",state:i?.tenant||{},variablePrefix:"tenant",action:e.jsx(Je,{value:i.tenant,onValueChange:m=>{d(m?.id??void 0)},clearable:!0})}),e.jsx(C,{title:"Environment variables",state:i.vars,variablePrefix:"vars",action:e.jsx(V,{label:"Edit environment variables",children:e.jsx(S,{as:O,href:a(["variables"]),target:"_blank",icon:{icon:ge,alt:"Set environment variables"},size:"1",color:"gray",variant:"ghost"})})}),p.isOpen&&t?.schema?.id&&e.jsx(h,{style:{position:"absolute"},children:e.jsx($e,{...p,jsonProperties:JSON.stringify(i.data,null,2),schemaId:t.schema.id})})]})},at=({size:t="2",delay:i=1})=>e.jsx(me,{initial:!0,children:e.jsx(pe.div,{initial:{opacity:0}
3,animate:{opacity:1},transition:{delay:i,duration:0},children:e.jsx(le,{color:"accent",size:t})})}),mt=({guide:t,defaultGuideGroup:i,headerRhsActionsRef:s})=>{const d=Ye(),{account:a}=z(),{environment:p}=$(),u=!q(t).manage.isAllowed,[l,x]=H(U("Guides","GuideEditorPage",t.key,"isLeftPaneOpen"),!0),[c,g]=H(U("Guides","GuideEditorPage",t.key,"isRightPaneOpen"),!0),[P,T]=G.useState(a?.translationsDefaultLocaleCode),w=G.useRef(null),[j,k]=G.useState(v.TEMPLATE),[Q,{loading:X}]=ne(De),{templateVariables:B,completions:Y,dispatch:D}=He(t),Z=L({name:"Toggle left pane",callback:()=>x(r=>!r),options:{nameOverride:"Toggle variables pane",group:"View",enableOnContentEditable:!0,ignoredElementWhitelist:["INPUT","TEXTAREA"]}}),ee=L({name:"Toggle right pane",callback:()=>g(r=>!r),options:{nameOverride:"Toggle preview pane",group:"View",enableOnContentEditable:!0,ignoredElementWhitelist:["INPUT","TEXTAREA"]}}),[E]=t.steps,te={stepRef:E?.ref||Ie,schemaVariantKey:E?.schemaVariantKey||"default",fields:E?.fields||[],messageTypeVersion:void 0};return e.jsx(Ce,{innerRef:w,initialValues:te,onSubmit:async(r,n)=>{if(u||!r.messageTypeVersion)return;const F=r.fields.reduce((f,K)=>{const M=Xe(K);return M?[...f,{field:`fields.${K.key}`,message:M}]:f},[]);if(F.length>0)return F.forEach(f=>{n.setFieldError(f.field,f.message)});const ie=tt({ref:r.stepRef,schemaKey:r.messageTypeVersion.key,schemaSemver:Ze(r.messageTypeVersion),schemaVariantKey:r.schemaVariantKey,fields:r.fields}),R=await Q({variables:{input:{guideId:t.id,steps:JSON.stringify([ie])}}});return R.data.result.errors?R.data.result.errors.forEach(f=>{n.setFieldError(f.field,f.message)}):(n.resetForm({values:structuredClone(r),touched:{}}),d({title:"Saved successfully",status:"success",position:"bottom-right"}),R)},validateOnChange:!1,children:r=>e.jsxs(e.Fragment,{children:[e.jsxs(b.Group,{orientation:"horizontal",children:[l&&e.jsxs(e.Fragment,{children:[e.jsx(b.Item,{id:"guide-template-vars",defaultSize:"20%",minSize:"15%",maxSize:"50%",children:e.jsx(nt,{guide:t,templateVariables:B,onChangeRecipientId:n=>{D({type:"selectedRecipientId",payload:n})},onChangeTenantId:n=>{D({type:"selectedTenantId",payload:n})}})}),e.jsx(b.Handle,{})]}),e.jsx(b.Item,{id:"guide-step-form",defaultSize:"40%",minSize:"20%",maxSize:"80%",variant:"transparent",children:e.jsx(o,{w:"full",h:"full",children:e.jsx(We,{isReadOnly:u,guide:t,step:E,form:r,isSaving:X,completions:Y,onMessageTypeVersionChange:({preview:n})=>{k(n?v.TEMPLATE:v.JSON)}})})}),c&&e.jsxs(e.Fragment,{children:[e.jsx(b.Handle,{}),e.jsx(b.Item,{id:"guide-step-preview",defaultSize:"40%",minSize:"20%",maxSize:"80%",children:e.jsx(h,{position:"relative",w:"full",h:"full",children:e.jsx(Ge,{style:{position:"absolute",top:0,left:0,right:0,bottom:0},children:e.jsx(h,{w:"full",h:"full",bg:r.values.messageTypeVersion?.key=="modal"?"alpha-black-6":void 0,children:r.values.messageTypeVersion?e.jsxs(o,{justifyContent:"center",direction:"column",h:"full",children:[e.jsx(et,{localeCode:P||"",onLocaleCodeChange:T,children:e.jsxs(o,{direction:"row",gap:"2",align:"center",children:[e.jsxs(I.Root,{value:j,onValueChange:n=>{n&&k(n)},children:[e.jsx(I.Option,{value:v.TEMPLATE,children:"Preview template"}),e.jsx(I.Option,{value:v.JSON,children:"JSON payload"})]}),e.jsx(Qe,{guideGroup:i,guide:t})]})}),e.jsx(h,{pt:j===v.TEMPLATE?"16":"0",mx:"auto",style:{flex:1,minWidth:"500px"},position:"relative",h:"full",w:"full",children:e.jsx(Ue,{schemaKey:r.values.messageTypeVersion.key,fields:r.values.fields,content:r.values.messageTypeVersion.preview,schemaVariantKey:r.values.schemaVariantKey,previewVariables:B,localeCode:P,previewMode:j,setPreviewMode:k})})]}):E?.schemaKey?e.jsx(h,{mt:"20",mx:"20",children:e.jsx(at,{})}):e.jsx(h,{border:"px",p:"6",bg:"surface-1",borderRadius:"4",boxShadow:"1",mt:"20",mx:"auto",style:{maxWidth:"432px"},children:e.jsx(N,{icon:{icon:ye,"aria-hidden":!0},title:"Select a message type",description:"Select a message type for this guideâs content.",Actions:e.jsx(N.ActionButton,{as:O,href:Ae,variant:"outline",color:"gray",target:"_blank",leadingIcon:{icon:ve,"aria-hidden":!0},children:"Read the docs"})})})})})})})]})]}),s.current&&ae.createPortal(e.jsxs(o,{gap:"2",align:"center",children:[u&&e.jsxs(e.Fragment,{children:[e.jsx(we,{children:"Read only"}),e.jsx(h,{borderLeft:"px",h:"4"})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx(rt,{guide:t,environment:p,isDirty:Object.keys(r.touched).length>0&&r.dirty,onSave:r.submitForm}),e.jsx(h,{borderLeft:"px",h:"4"})]}),e.jsxs(o,{gap:"1",children:[e.jsx(Z.Tooltip,{children:e.jsx(S,{size:"1",variant:l?"outline":"ghost",icon:{icon:it,alt:"Toggle variables pane"},active:l,onClick:()=>x(n=>!n)})}),e.jsx(ee.Tooltip,{children:e.jsx(S,{size:"1",variant:c?"outline":"ghost",icon:{icon:be,alt:"Toggle preview pane"},active:c,onClick:()=>g(n=>!n)})})]})]}),s.current)]})})};mt.getLayout=t=>e.jsx(Se,{children:e.jsx(Pe,{children:e.jsx(Ee,{children:e.jsx(Te,{children:e.jsx(st,{children:i=>G.cloneElement(t,i)})})})})});export{mt as default}; 4 5//# debugId=1ad2ebe4-f5f8-5546-bdf4-e3f02976ca32
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.