import{c as e}from"./vendor-radix-glKlawmm.js";import{i as t}from"./ce1bfd762-Cp6if1Qh.js";import{j as n}from"./vendor-react-AXa6hZO5.js";import{u as o,M as s}from"./vendor-intl-BdADXLLt.js";import{a8 as r,B as i}from"./cec18ad9a-DiLjrOUd.js";const a=Object.freeze(Object.defineProperty({__proto__:null,schemaFilter:function(n,o){function s(s){var r=n,i=s.event.event;if(r&&i){var a=r[i];if(!t(r,a))return s.updateEvent("integrations",e(e({},s.event.integrations),{All:!1,"Segment.io":!0})),s;var l=function(e,t){var n,o;if(!e||!Object.keys(e))return{};var s=e.integrations?Object.keys(e.integrations).filter(function(t){return!1===e.integrations[t]}):[],r=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach(function(e){s.forEach(function(t){e.creationName==t&&r.push(e.name)})}),(null!==(o=t.remotePlugins)&&void 0!==o?o:[]).reduce(function(e,t){return t.settings.subscriptions&&r.includes(t.name)&&t.settings.subscriptions.forEach(function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1}),e},{})}(a,o);s.updateEvent("integrations",e(e(e({},s.event.integrations),null==a?void 0:a.integrations),l))}return s}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:s,alias:s,track:s,identify:s,group:s}}},Symbol.toStringTag,{value:"Module"}));const l=Object.freeze(Object.defineProperty({__proto__:null,UntrustedPromptModal:function({isModalOpen:e,prompt:t,handleDeny:a,handleAllow:l}){const c=o();return n.jsxs(r,{isOpen:e,onClose:()=>a(),modalSize:"xl",autoFocusOnOpen:!1,title:n.jsx("div",{className:"text-md",children:n.jsx(s,{defaultMessage:"Do you trust this prompt?",id:"8GzexEb0Ar"})}),children:[n.jsxs("div",{className:"mt-3 flex flex-col gap-2 text-sm text-text-300",children:[n.jsx("p",{children:n.jsx(s,{defaultMessage:"Malicious conversation content could trick Claude into attempting harmful actions or sharing your data.",id:"me3a2ZTyNE"})}),n.jsx("p",{children:n.jsx(s,{defaultMessage:"<bold>Review this prompt and its length carefully before approving.</bold>",id:"fepA/hMcTZ",values:{bold:e=>n.jsx("span",{className:"font-medium",children:e})}})})]}),n.jsx("div",{className:"mt-4 text-sm font-medium text-text-200",children:n.jsx(s,{defaultMessage:"Prompt ({length, number} characters)",id:"5J779v0w4/",values:{length:t.length}})}),n.jsx("div",{tabIndex:0,role:"region","aria-label":c.formatMessage({defaultMessage:"Prompt preview",id:"NSX5q967/k"}),className:"mt-2 max-h-[40vh] overflow-y-auto whitespace-pre-wrap break-words rounded-lg border-0.5 border-border-300 bg-bg-000 p-3 text-sm text-text-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent-100",children:t}),n.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[n.jsx(i,{size:"sm",autoFocus:!0,onClick:a,children:n.jsx(s,{defaultMessage:"Deny",id:"htvX+Z11l+"})}),n.jsx(i,{size:"sm",variant:"secondary",onClick:l,children:n.jsx(s,{defaultMessage:"Approve",id:"WCaf5CZSTt"})})]})]})}},Symbol.toStringTag,{value:"Module"}));
/*!-----------------------------------------------------------------------------
 * 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
 *-----------------------------------------------------------------------------*/const c=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},language:{defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},Symbol.toStringTag,{value:"Module"}));
/*!-----------------------------------------------------------------------------
 * 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
 *-----------------------------------------------------------------------------*/const d=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},language:{defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],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":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},Symbol.toStringTag,{value:"Module"}));export{l as U,c,a as i,d as l};
