⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
build
/
View File Name :
CorrelationsPage.4e02feddf752bdf7cfe6.js
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[9981],{32429:(oe,N,o)=>{o.r(N),o.d(N,{default:()=>Ue});var f=o(32196),x=o(2543),e=o(96540),b=o(14110),C=o(17172),P=o(91605),R=o(55852),V=o(14578),J=o(39558),O=o(42418),le=o(28389),se=o(19384),S=o(40845),ie=o(39938),Z=o(36830),ce=o(10096),me=o(25249),a=o(44836),de=o(80348),ue=o(52494),fe=o(25469),E=o(49785);const H=(0,e.createContext)(void 0);function ge(r){const[t,n]=(0,e.useState)(0),{pages:l,onSubmit:s,children:c}=r;return e.createElement(H.Provider,{value:{currentPage:t,CurrentPageComponent:l[t],isLastPage:t===l.length-1,nextPage:()=>n(t+1),prevPage:()=>n(t-1),onSubmit:s}},c)}const Y=()=>{const r=(0,e.useContext)(H);if(!r)throw new Error("useWizardContext must be used within a WizardContextProvider");return r};function pe(r){const{navigation:t}=r,{handleSubmit:n}=(0,E.xW)(),{CurrentPageComponent:l,isLastPage:s,nextPage:c,onSubmit:i}=Y(),m=t;return e.createElement("form",{onSubmit:n(d=>{s?i(d):c()})},e.createElement(l,null),e.createElement(m,null))}function G(r){const{defaultValues:t,pages:n,onSubmit:l,navigation:s}=r,c=(0,E.mN)({defaultValues:t});return e.createElement(E.Op,{...c},e.createElement(ge,{pages:n,onSubmit:l},e.createElement(pe,{navigation:s})))}var B=o(40511),z=o(84167),h=o(88575),K=o(10354),Ee=o(21744);const X=(0,e.createContext)({loading:!1,correlation:void 0,readOnly:!1}),k=r=>{const{data:t,children:n}=r;return e.createElement(X.Provider,{value:t},n)},W=()=>(0,e.useContext)(X),M=(r,t)=>t?`${r}_${t.sourceUID}-${t.uid}`:r,ve=r=>({label:(0,f.css)` max-width: ${r.spacing(80)}; `,description:(0,f.css)` max-width: ${r.spacing(80)}; `}),q=()=>{const{register:r,formState:t}=(0,E.xW)(),n=(0,S.of)(ve),{correlation:l,readOnly:s}=W();return e.createElement(e.Fragment,null,e.createElement(z.n,{label:(0,a.t)("correlations.basic-info-form.title","Define correlation label (Step 1 of 3)")},e.createElement(a.x6,{i18nKey:"correlations.basic-info-form.sub-text"},e.createElement("p",null,"Define text that will describe the correlation.")),e.createElement("input",{type:"hidden",...r("config.type")}),e.createElement(h.D,{label:(0,a.t)("correlations.basic-info-form.label-label","Label"),description:(0,a.t)("correlations.basic-info-form.label-description","This name will be used as the label for the correlation. This will show as button text, a menu item, or hover text on a link."),className:n.label,invalid:!!t.errors.label,error:t.errors.label?.message},e.createElement(K.p,{id:M("label",l),...r("label",{required:{value:!0,message:(0,a.t)("correlations.basic-info-form.label-required","This field is required.")}}),readOnly:s,placeholder:(0,a.t)("correlations.basic-info-form.label-placeholder","e.g. Tempo traces")})),e.createElement(h.D,{label:(0,a.t)("correlations.basic-info-form.description-label","Description"),description:(0,a.t)("correlations.basic-info-form.description-description","Optional description with more information about the link"),className:(0,f.cx)(n.description)},e.createElement(Ee.f,{id:M("description",l),...r("description"),readOnly:s}))))};var T=o(10860),_=o(51612),he=o(31193),ye=o(96192),xe=o(95984),I=o(67061),L=o(60029),U=o(56034),be=o(88323),Ce=o(29158),F=o(2864);const De=()=>({removeButton:(0,f.css)({marginTop:"25px"})}),we=r=>{const{index:t,value:n,readOnly:l,remove:s}=r,{control:c,formState:i,register:m,setValue:d,watch:g,getValues:D}=(0,E.xW)(),[w,p]=(0,e.useState)({});m(`config.transformations.${t}.type`,{required:{value:!0,message:(0,a.t)("correlations.transform-row.transform-required","Please select a transformation type")}});const y=(0,E.FH)({name:`config.transformations.${t}.type`,control:c}),v=(0,S.of)(De),j=(0,F.j)();return e.createElement(I.B,{direction:"row",key:n.id,alignItems:"flex-start"},e.createElement(h.D,{label:e.createElement(I.B,{gap:.5},e.createElement(L.J,{htmlFor:`config.transformations.${n.id}-${t}.type`},e.createElement(a.x6,{i18nKey:"correlations.transform-row.type-label"},"Type")),e.createElement(U.m,{content:e.createElement("div",null,e.createElement("p",null,e.createElement(a.x6,{i18nKey:"correlations.transform-row.type-tooltip"},"The type of transformation that will be applied to the source data.")))},e.createElement(V.I,{name:"info-circle",size:"sm"}))),invalid:!!i.errors?.config?.transformations?.[t]?.type,error:i.errors?.config?.transformations?.[t]?.message,validationMessageHorizontalOverflow:!0},e.createElement(be.l6,{value:y,onChange:A=>{if(!l){const u=D()?.config?.transformations?.[t];if(u&&p({expression:u.expression,mapValue:u.mapValue}),A.value){const $=(0,F.h)(A.value);$.expressionDetails.show?d(`config.transformations.${t}.expression`,w?.expression||""):d(`config.transformations.${t}.expression`,""),$.mapValueDetails.show?d(`config.transformations.${t}.mapValue`,w?.mapValue||""):d(`config.transformations.${t}.mapValue`,""),d(`config.transformations.${t}.type`,A.value)}}},options:j,width:25,inputId:`config.transformations.${n.id}-${t}.type`})),e.createElement(h.D,{label:e.createElement(I.B,{gap:.5},e.createElement(L.J,{htmlFor:`config.transformations.${n.id}.field`},e.createElement(a.x6,{i18nKey:"correlations.transform-row.field-label"},"Field")),e.createElement(U.m,{content:e.createElement("div",null,e.createElement("p",null,e.createElement(a.x6,{i18nKey:"correlations.transform-row.field-tooltip"},"Optional. The field to transform. If not specified, the transformation will be applied to the results field.")))},e.createElement(V.I,{name:"info-circle",size:"sm"})))},e.createElement(K.p,{...m(`config.transformations.${t}.field`),readOnly:l,defaultValue:n.field,label:(0,a.t)("correlations.transform-row.field-input","field"),id:`config.transformations.${n.id}.field`})),e.createElement(h.D,{label:e.createElement(I.B,{gap:.5},e.createElement(L.J,{htmlFor:`config.transformations.${n.id}.expression`},e.createElement(a.x6,{i18nKey:"correlations.transform-row.expression-label"},"Expression"),(0,F.h)(g(`config.transformations.${t}.type`)).expressionDetails.required?" *":""),e.createElement(U.m,{content:e.createElement("div",null,e.createElement("p",null,e.createElement(a.x6,{i18nKey:"correlations.transform-row.expression-tooltip"},"Required for regular expression. The expression the transformation will use. Logfmt does not use further specifications.")))},e.createElement(V.I,{name:"info-circle",size:"sm"}))),invalid:!!i.errors?.config?.transformations?.[t]?.expression,error:i.errors?.config?.transformations?.[t]?.expression?.message},e.createElement(K.p,{...m(`config.transformations.${t}.expression`,{required:(0,F.h)(g(`config.transformations.${t}.type`)).expressionDetails.required?(0,a.t)("correlations.transform-row.expression-required","Please define an expression"):void 0}),defaultValue:n.expression,readOnly:l,disabled:!(0,F.h)(g(`config.transformations.${t}.type`)).expressionDetails.show,id:`config.transformations.${n.id}.expression`})),e.createElement(h.D,{label:e.createElement(I.B,{gap:.5},e.createElement(L.J,{htmlFor:`config.transformations.${n.id}.mapValue`},e.createElement(a.x6,{i18nKey:"correlations.transform-row.map-value-label"},"Map value")),e.createElement(U.m,{content:e.createElement("div",null,e.createElement("p",null,e.createElement(a.x6,{i18nKey:"correlations.transform-row.map-value-tooltip"},"Optional. Defines the name of the variable. This is currently only valid for regular expressions with a single, unnamed capture group.")))},e.createElement(V.I,{name:"info-circle",size:"sm"})))},e.createElement(K.p,{...m(`config.transformations.${t}.mapValue`),defaultValue:n.mapValue,readOnly:l,disabled:!(0,F.h)(g(`config.transformations.${t}.type`)).mapValueDetails.show,id:`config.transformations.${n.id}.mapValue`})),!l&&e.createElement("div",{className:v.removeButton},e.createElement(Ce.K,{tooltip:(0,a.t)("correlations.transform-row.remove-tooltip","Remove transformation"),name:"trash-alt",onClick:()=>{s(t)}},e.createElement(a.x6,{i18nKey:"correlations.transform-row.remove-button"},"Remove"))))},Se=r=>({heading:(0,f.css)({fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightRegular})}),Te=r=>{const{control:t,register:n}=(0,E.xW)(),{readOnly:l}=r,s=(0,S.of)(Se);return e.createElement(e.Fragment,null,e.createElement("input",{type:"hidden",...n("id")}),e.createElement(xe.E,{name:"config.transformations",control:t},({fields:c,append:i,remove:m})=>e.createElement(e.Fragment,null,e.createElement(I.B,{direction:"column",alignItems:"flex-start"},e.createElement("div",{className:s.heading},e.createElement(a.x6,{i18nKey:"correlations.transform.heading"},"Transformations")),c.length===0&&e.createElement("div",null,e.createElement(a.x6,{i18nKey:"correlations.transform.no-transform"},"No transformations defined.")),c.length>0&&e.createElement("div",null,c.map((d,g)=>e.createElement(we,{key:g,value:d,index:g,readOnly:l,remove:m}))),!l&&e.createElement(R.$n,{icon:"plus",onClick:()=>i({type:void 0},{shouldFocus:!1}),variant:"secondary",type:"button"},e.createElement(a.x6,{i18nKey:"correlations.transform.add-button"},"Add transformation"))))))},Ie=r=>({label:(0,f.css)` max-width: ${r.spacing(80)}; `,variable:(0,f.css)` font-family: ${r.typography.fontFamilyMonospace}; font-weight: ${r.typography.fontWeightMedium}; `}),ee=()=>{const{control:r,formState:t,register:n,getValues:l}=(0,E.xW)(),s=(0,S.of)(Ie),c=p=>y=>p(y.uid),{correlation:i,readOnly:m}=W(),d=l("config.target"),g=(0,ye.O1)(d,{}).variables.map(p=>p.variableName+(p.fieldPath?`.${p.fieldPath}`:""));function D(){return e.createElement(e.Fragment,null,g.map((p,y)=>e.createElement("span",{className:s.variable,key:y},p,y
e.createElement(h.D,{label:(0,a.t)("correlations.source-form.source-label","Source"),description:(0,a.t)("correlations.source-form.source-description","Results from selected source data source have links displayed in the panel"),htmlFor:"source",invalid:!!t.errors.sourceUID,error:t.errors.sourceUID?.message},e.createElement(_.s,{onChange:c(p),noDefault:!0,current:y,inputId:"source",width:32,disabled:i!==void 0}))}),e.createElement(h.D,{label:(0,a.t)("correlations.source-form.results-label","Results field"),description:(0,a.t)("correlations.source-form.results-description","The link will be shown next to the value of this field"),className:s.label,invalid:!!t.errors?.config?.field,error:t.errors?.config?.field?.message},e.createElement(K.p,{id:M("field",i),...n("config.field",{required:(0,a.t)("correlations.source-form.results-required","This field is required.")}),readOnly:m})),g.length>0&&e.createElement(T.Z,null,e.createElement(T.Z.Heading,null,e.createElement(a.x6,{i18nKey:"correlations.source-form.heading"},"Variables used in the target query")),e.createElement(T.Z.Description,null,e.createElement(a.x6,{i18nKey:"correlations.source-form.description"},"You have used following variables in the target query: ",e.createElement(D,null),e.createElement("br",null),"A data point needs to provide values to all variables as fields or as transformations output to make the correlation button appear in the visualization.",e.createElement("br",null),"Note: Not every variable needs to be explicitly defined below. A transformation such as"," ",e.createElement("span",{className:s.variable},"logfmt")," will create variables for every key/value pair."))),e.createElement(Te,{readOnly:m})))};var Fe=o(16817),$e=o(41987),Pe=o(19347);const Re=({dsUid:r,invalid:t,error:n,name:l})=>{const{value:s,loading:c,error:i}=(0,Fe.A)(async()=>{if(r)return(0,Pe.l)().get(r)},[r]),m=s?.components?.QueryEditor;return e.createElement(h.D,{label:(0,a.t)("correlations.query-editor.query-label","Query"),description:e.createElement("span",null,e.createElement(a.x6,{i18nKey:"correlations.query-editor.query-description"},"Define the query that is run when the link is clicked. You can use"," ",e.createElement("a",{href:"https://grafana.com/docs/grafana/latest/panels-visualizations/configure-data-links/",target:"_blank",rel:"noreferrer"},"variables")," ","to access specific field values.")),invalid:t,error:n},e.createElement(E.xI,{name:l,rules:{validate:{hasQueryEditor:()=>m!==void 0||(0,a.t)("correlations.query-editor.control-rules","The selected target data source must export a query editor.")}},render:({field:{value:d,onChange:g}})=>c?e.createElement(J._,{text:(0,a.t)("correlations.query-editor.loading","Loading query editor...")}):i?e.createElement(O.F,{title:(0,a.t)("correlations.query-editor.error-title","Error loading data source")},e.createElement(a.x6,{i18nKey:"correlations.query-editor.error-text"},"The selected data source could not be loaded.")):s?m?e.createElement(e.Fragment,null,e.createElement(m,{onRunQuery:()=>{},app:$e.Jk.Correlations,onChange:D=>{g(D)},datasource:s,query:d})):e.createElement(O.F,{title:(0,a.t)("correlations.query-editor.query-editor-title","Data source does not export a query editor.")}):e.createElement(O.F,{title:(0,a.t)("correlations.query-editor.data-source-title","No data source selected"),severity:"info"},e.createElement(a.x6,{i18nKey:"correlations.query-editor.data-source-text"},"Please select a target data source first."))}))},te=()=>{const{control:r,formState:t}=(0,E.xW)(),n=c=>i=>c(i.uid),{correlation:l}=W(),s=(0,E.FH)({name:"targetUID"})||l?.targetUID;return e.createElement(e.Fragment,null,e.createElement(z.n,{label:(0,a.t)("correlations.target-form.title","Setup the target for the correlation (Step 2 of 3)")},e.createElement(a.x6,{i18nKey:"correlations.target-form.sub-text"},e.createElement("p",null,"Define what data source the correlation will link to, and what query will run when the correlation is clicked.")),e.createElement(E.xI,{control:r,name:"targetUID",rules:{required:{value:!0,message:(0,a.t)("correlations.target-form.control-rules","This field is required.")}},render:({field:{onChange:c,value:i}})=>e.createElement(h.D,{label:(0,a.t)("correlations.target-form.target-label","Target"),description:(0,a.t)("correlations.target-form.target-description","Specify which data source is queried when the link is clicked"),htmlFor:"target",invalid:!!t.errors.targetUID,error:t.errors.targetUID?.message},e.createElement(_.s,{onChange:n(c),noDefault:!0,current:i,inputId:"target",width:32,disabled:l!==void 0}))}),e.createElement(Re,{name:"config.target",dsUid:s,invalid:!!t.errors?.config?.target,error:t.errors?.config?.target?.message})))};var Ve=o(66864);const re=()=>{const{currentPage:r,prevPage:t,isLastPage:n}=Y(),{readOnly:l,loading:s,correlation:c}=W(),i=!l&&e.createElement(R.$n,{variant:"primary",icon:s?"spinner":"save",type:"submit",disabled:s},c===void 0?(0,a.t)("correlations.navigation-form.add-button","Add"):(0,a.t)("correlations.navigation-form.save-button","Save")),m=e.createElement(R.$n,{variant:"primary",type:"submit"},e.createElement(a.x6,{i18nKey:"correlations.navigation-form.next-button"},"Next"));return e.createElement(Ve.Gy,{justify:"flex-start"},r>0?e.createElement(R.$n,{variant:"secondary",onClick:t},e.createElement(a.x6,{i18nKey:"correlations.navigation-form.back-button"},"Back")):void 0,n?i:m)},Ke=r=>({panelContainer:(0,f.css)` position: relative; padding: ${r.spacing(1)}; margin-bottom: ${r.spacing(2)}; `,infoBox:(0,f.css)` margin-top: 20px; // give space for close button `}),Ae=({onClose:r,onCreated:t})=>{const n=(0,S.of)(Ke),{create:{execute:l,loading:s,error:c,value:i}}=(0,B.lW)();(0,e.useEffect)(()=>{!c&&!s&&i&&t()},[c,s,i,t]);const m={config:{type:"query",target:{},field:""}};return e.createElement(ue._,{className:n.panelContainer},e.createElement(fe.J,{onClick:r}),e.createElement(k,{data:{loading:s,readOnly:!1,correlation:void 0}},e.createElement(G,{defaultValues:m,pages:[q,te,ee],navigation:re,onSubmit:l})))},Ne=({onUpdated:r,correlation:t,readOnly:n=!1})=>{const{update:{execute:l,loading:s,error:c,value:i}}=(0,B.lW)(),m=d=>l({...d,sourceUID:t.sourceUID,uid:t.uid});return(0,e.useEffect)(()=>{!c&&!s&&i&&r()},[c,s,i,r]),e.createElement(k,{data:{loading:s,readOnly:n,correlation:t}},e.createElement(G,{defaultValues:t,pages:[q,te,ee],onSubmit:n?d=>()=>{}:m,navigation:re}))};var Oe=o(7521);const We=({onClick:r,canWriteCorrelations:t})=>t?e.createElement(Oe.A,{title:"You haven't defined any correlation yet.",buttonIcon:"gf-glue",onClick:r,buttonTitle:"Add correlation",proTip:"you can also define correlations via datasource provisioning"}):e.createElement(T.Z,null,e.createElement(T.Z.Heading,null,"There are no correlations configured yet."),e.createElement(T.Z.Description,null,"Please contact your administrator to create new correlations.")),ae=(r,t,n)=>r.values[n].name.localeCompare(t.values[n].name),Q=r=>r.provisioned,Le=(0,f.css)` display: flex; justify-content: center; `;function Ue(){const r=(0,me.C)("correlations"),[t,n]=(0,e.useState)(!1),l=(0,e.useRef)(1),s=u=>{n(u),u&&(0,b.rR)("grafana_correlations_adding_started")},{remove:c,get:{execute:i,...m}}=(0,B.lW)(),d=ce.TP.hasPermission(de.AccessControlAction.DataSourcesWrite),g=(0,e.useCallback)(()=>{(0,b.rR)("grafana_correlations_added"),i({page:l.current}),s(!1)},[i]),D=(0,e.useCallback)(()=>{(0,b.rR)("grafana_correlations_edited"),i({page:l.current})},[i]),w=(0,e.useCallback)(async(u,$)=>{await c.execute(u),(0,b.rR)("grafana_correlations_deleted"),$&&l.current--,i({page:l.current})},[c,i]);(0,e.useEffect)(()=>{i({page:l.current})},[i]);const p=(0,e.useCallback)(({row:{index:u,original:{source:{uid:$},provisioned:je,uid:Je}}})=>!je&&e.createElement(P.e,{"aria-label":(0,a.t)("correlations.list.delete","delete correlation"),onConfirm:()=>w({sourceUID:$,uid:Je},l.current>1&&u===0&&v?.correlations.length===1),closeOnConfirm:!0}),[w]),y=(0,e.useMemo)(()=>[{id:"info",cell:Qe,disableGrow:!0,visible:u=>u.some(Q)},{id:"source",header:(0,a.t)("correlations.list.source","Source"),cell:ne,sortType:ae},{id:"target",header:(0,a.t)("correlations.list.target","Target"),cell:ne,sortType:ae},{id:"label",header:(0,a.t)("correlations.list.label","Label"),sortType:"alphanumeric"},{id:"actions",cell:p,disableGrow:!0,visible:u=>d&&u.some((0,x.negate)(Q))}],[p,d]),v=(0,e.useMemo)(()=>m.value,[m.value]),j=v?.correlations.length===0&&!t&&!m.error,A=d&&v?.correlations?.length!==0&&v!==void 0&&!t&&e.createElement(R.$n,{icon:"plus",onClick:()=>s(!0)},e.createElement(a.x6,{i18nKey:"correlations.add-new"},"Add new"));return e.createElement(Z.Y,{navModel:r,subTitle:e.createElement(e.Fragment,null,e.createElement(a.x6,{i18nKey:"correlations.sub-title"},"Define how data living in different data sources relates to each other. Read more in the"," ",e.createElement("a",{href:"https://grafana.com/docs/grafana/next/administration/correlations/",target:"_blank",rel:"noreferrer"},"documentation",e.createElement(V.I,{name:"external-link-alt"})))),actions:A},e.createElement(Z.Y.Contents,null,e.createElement("div",null,!v&&m.loading&&e.createElement("div",{className:Le},e.createElement(J._,{text:(0,a.t)("correlations.list.loading","loading...")})),j&&e.createElement(We,{canWriteCorrelations:d,onClick:()=>s(!0)}),m.error&&e.createElement(O.F,{severity:"error",title:(0,a.t)("correlations.alert.title","Error fetching correlation data"),topSpacing:2},(0,C.NF)(m.error)&&m.error.data?.message||(0,a.t)("correlations.alert.error-message","An unknown error occurred while fetching correlation data. Please try again.")),t&&e.createElement(Ae,{onClose:()=>s(!1),onCreated:g}),v&&v.correlations.length>=1&&e.createElement(e.Fragment,null,e.createElement(le.j,{renderExpandedRow:u=>e.createElement(Be,{correlation:u,onUpdated:D,readOnly:Q(u)||!d}),columns:y,data:v.correlations,getRowId:u=>`${u.source.uid}-${u.uid}`}),e.createElement(se.d,{currentPage:l.current,numberOfPages:Math.ceil(v.totalCount/v.limit),onNavigate:u=>{i({page:l.current=u})}})))))}function Be({correlation:{source:r,target:t,...n},readOnly:l,onUpdated:s}){return(0,e.useEffect)(()=>(0,b.rR)("grafana_correlations_details_expanded"),[]),e.createElement(Ne,{correlation:{...n,sourceUID:r.uid,targetUID:t.uid},onUpdated:s,readOnly:l})}const ze=r=>({root:(0,f.css)` display: flex; align-items: center; `,dsLogo:(0,f.css)` margin-right: ${r.spacing()}; height: 16px; width: 16px; `}),ne=(0,e.memo)(function({cell:{value:t}}){const n=(0,S.of)(ze);return e.createElement("span",{className:n.root},e.createElement("img",{src:t.meta.info.logos.small,alt:"",className:n.dsLogo}),t.name)},({cell:{value:r}},{cell:{value:t}})=>r.type===t.type&&r.name===t.name),Me=(0,f.css)` white-space: nowrap; `,Qe=(0,e.memo)(function({...t}){return t.row.original.provisioned?e.createElement(ie.E,{text:(0,a.t)("correlations.list.read-only","Read only"),color:"purple",className:Me}):null},(r,t)=>r.row.original.source.readOnly===t.row.original.source.readOnly)},2864:(oe,N,o)=>{o.d(N,{h:()=>e,j:()=>b});var f=o(91890),x=o(44836);function e(C){switch(C){case f.CC.Logfmt:return{label:(0,x.t)("correlations.trans-details.logfmt-label","Logfmt"),value:f.CC.Logfmt,description:(0,x.t)("correlations.trans-details.logfmt-description","Parse provided field with logfmt to get variables"),expressionDetails:{show:!1},mapValueDetails:{show:!1}};case f.CC.Regex:return{label:(0,x.t)("correlations.trans-details.regex-label","Regular expression"),value:f.CC.Regex,description:(0,x.t)("correlations.trans-details.regex-description","Field will be parsed with regex. Use named capture groups to return multiple variables, or a single unnamed capture group to add variable to named map value. Regex is case insensitive."),expressionDetails:{show:!0,required:!0,helpText:(0,x.t)("correlations.trans-details.regex-expression","Use capture groups to extract a portion of the field.")},mapValueDetails:{show:!0,required:!1,helpText:(0,x.t)("correlations.trans-details.regex-map-values","Defines the name of the variable if the capture group is not named.")}};default:return{label:C,value:C,expressionDetails:{show:!1},mapValueDetails:{show:!1}}}}const b=()=>Object.values(f.CC).map(C=>{const P=e(C);return{label:P.label,value:P.value,description:P.description}})}}]); //# sourceMappingURL=CorrelationsPage.4e02feddf752bdf7cfe6.js.map