import{j as e}from"./vendor-react-Dp9pL_Wn.js";import{u as t}from"./vendor-intl-D2wGIp4M.js";import{ED as n}from"./index-CBEPphRm.js";import{B as s,c as a}from"./vendor-ant-cds-bBedrtIN.js";import{ab as o,aS as r}from"./c6eedc03a-CsEFTfjy.js";function i({allHref:a,allLabel:o,name:r,nameAriaLabel:i,onRename:l}){const c=t(),{isEditing:d,editValue:p,setEditValue:m,optimisticLabel:u,inputRef:f,startEdit:g,submitEdit:x,cancelEdit:b,handleBlur:h}=n(l,r),v=u??r;return e.jsxs("div",{className:"text-secondary flex max-w-[480px] min-w-0 items-center",children:[e.jsx(s,{variant:"ghost",size:"sm",href:a,className:"-ml-1 min-w-0 shrink df-link-card",children:e.jsx("span",{className:"min-w-0 truncate font-base-bold",children:o})}),e.jsx("span",{className:"opacity-50 px-0.5","aria-hidden":!0,children:"/"}),d?e.jsx("div",{className:"flex h-7 max-w-full items-center rounded-md bg-bg-000 px-1.5 ring-1 ring-inset ring-accent-100",children:e.jsx("input",{ref:f,type:"text",value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{e.stopPropagation(),e.nativeEvent.isComposing||("Enter"===e.key?(e.preventDefault(),x()):"Escape"===e.key&&(e.preventDefault(),b()))},onBlur:h,className:"min-w-[3rem] max-w-full border-none bg-transparent font-base-bold text-text-000 outline-none [field-sizing:content] focus:border-transparent focus:outline-none focus:ring-0",style:{outline:"none",boxShadow:"none"},"aria-label":i??c.formatMessage({defaultMessage:"Name",id:"HAlOn1ZsuY"})})}):l?e.jsx("button",{type:"button",onClick:g,className:"min-w-0 truncate rounded-md px-1.5 py-1 text-left font-base-bold text-text-100 transition-colors hover:bg-fill-ghost-hover","aria-label":c.formatMessage({defaultMessage:"Rename {name}",id:"NZmMEEjudP"},{name:v}),children:v}):e.jsx("span",{className:"min-w-0 truncate pl-1.5 font-base-bold text-text-100",children:v})]})}function l({href:t,ddActionName:n,title:s,titleEnd:i,description:l,footer:c,overlay:d}){const p=o();return e.jsxs("div",{className:"group relative h-full transition-transform duration-base ease-out has-[a:active]:scale-[0.98] has-[a:active]:duration-fast",children:[e.jsxs(r,{href:t,"data-primary":!0,className:a("flex h-full w-full flex-col gap-md rounded-card bg-surface-1 p-lg shadow-card-ring [--cds-ring-inner:1px] [--cds-ring-outer:0px] group-hover:bg-surface-2","outline-none focus-visible:shadow-focus","[scroll-margin-top:var(--list-header-scroll-offset)]","df-link-card"),"data-dd-action-name":n,children:[e.jsxs("div",{className:"flex items-center overflow-hidden pr-10",children:[e.jsx("div",{className:"truncate text-body font-medium text-primary",children:s}),i]}),e.jsx("div",{className:"line-clamp-3 flex-grow text-body text-secondary",children:l}),e.jsx("div",{className:"mt-auto flex justify-between text-footnote text-muted",children:c})]}),e.jsx("div",{className:a("absolute right-3 top-3 z-10",p?"opacity-100":"opacity-0 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100 has-[[aria-expanded=true]]:opacity-100"),children:d})]})}
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/var c={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}};const d=Object.freeze(Object.defineProperty({__proto__:null,conf:c,language:{defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}},Symbol.toStringTag,{value:"Module"}));export{i as E,l as G,d as p};
