treege 3.0.0-beta.40 → 3.0.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DefaultInputs-8yJMEyMh.js → DefaultInputs-xMZhO-ry.js} +372 -371
- package/dist/ThemeContext-Ejgu9Mwr.js +1 -1
- package/dist/{editor-DWJ95r4g.js → editor-sMVFoMxL.js} +290 -290
- package/dist/editor.js +1 -1
- package/dist/main.js +2 -2
- package/dist/renderer.js +1 -1
- package/package.json +7 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, E as t, F as n, I as r, L as i, N as a, P as o, T as s, j as c, k as l, t as u } from "./ThemeContext-Ejgu9Mwr.js";
|
|
2
|
-
import { $ as d, A as f, B as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as ee, N as te, P as x, Q as ne, R as S, U as C, V as re, W as w, X as ie, Y as T, Z as ae, _ as oe, at as E, c as D, et as O, it as k, j as se, k as ce, nt as A, o as le, p as ue, q as de, rt as fe, t as pe, tt as j, v as me, z as he } from "./DefaultInputs-
|
|
2
|
+
import { $ as d, A as f, B as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as ee, N as te, P as x, Q as ne, R as S, U as C, V as re, W as w, X as ie, Y as T, Z as ae, _ as oe, at as E, c as D, et as O, it as k, j as se, k as ce, nt as A, o as le, p as ue, q as de, rt as fe, t as pe, tt as j, v as me, z as he } from "./DefaultInputs-xMZhO-ry.js";
|
|
3
3
|
import { Background as ge, BackgroundVariant as _e, BaseEdge as ve, Controls as ye, EdgeLabelRenderer as be, Handle as xe, MiniMap as Se, NodeResizer as Ce, Panel as we, Position as Te, ReactFlow as Ee, ReactFlowProvider as De, addEdge as Oe, getBezierPath as ke, useEdges as Ae, useNodes as je, useNodesInitialized as Me, useReactFlow as M, useStore as Ne } from "@xyflow/react";
|
|
4
4
|
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
5
5
|
import { useForm as Pe } from "@tanstack/react-form";
|
|
@@ -16,11 +16,11 @@ import Lt from "@dagrejs/dagre";
|
|
|
16
16
|
import { useTheme as Rt } from "next-themes";
|
|
17
17
|
//#region src/editor/assets/img/treege-black.svg
|
|
18
18
|
var zt = "data:image/svg+xml,%3csvg%20width='462'%20height='144'%20viewBox='0%200%20462%20144'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1809_3434)'%3e%3cpath%20d='M137%2041.34L116.57%206C116.22%205.39399%20115.717%204.89037%20115.112%204.53942C114.507%204.18847%20113.82%204.00247%20113.12%204H38.83C38.1303%204.00247%2037.4434%204.18847%2036.838%204.53942C36.2326%204.89037%2035.7299%205.39399%2035.38%206L15%2041.34C14.6495%2041.947%2014.4647%2042.6355%2014.4641%2043.3365C14.4635%2044.0374%2014.6471%2044.7262%2014.9965%2045.3339C15.3459%2045.9416%2015.8488%2046.4467%2016.455%2046.7988C17.0611%2047.1509%2017.7491%2047.3375%2018.45%2047.34H133.53C134.233%2047.341%20134.923%2047.157%20135.532%2046.8063C136.141%2046.4557%20136.647%2045.9508%20136.999%2045.3426C137.35%2044.7343%20137.536%2044.0441%20137.536%2043.3415C137.536%2042.6388%20137.351%2041.9485%20137%2041.34V41.34Z'%20fill='%2311D3B4'/%3e%3cpath%20d='M92.48%20140.64H113.1C113.805%20140.643%20114.498%20140.459%20115.109%20140.108C115.72%20139.757%20116.228%20139.251%20116.58%20138.64L151.39%2078.3401C151.741%2077.7316%20151.926%2077.0413%20151.926%2076.3386C151.926%2075.636%20151.74%2074.9458%20151.389%2074.3375C151.037%2073.7293%20150.531%2073.2244%20149.922%2072.8738C149.313%2072.5231%20148.623%2072.3391%20147.92%2072.3401H92.48C91.4191%2072.3401%2090.4017%2072.7615%2089.6516%2073.5117C88.9014%2074.2618%2088.48%2075.2792%2088.48%2076.3401V136.64C88.48%20137.701%2088.9014%20138.718%2089.6516%20139.469C90.4017%20140.219%2091.4191%20140.64%2092.48%20140.64Z'%20fill='%23007EF6'/%3e%3cpath%20d='M59.48%2072.3201H3.99999C3.29819%2072.3208%202.60893%2072.5061%202.00143%2072.8575C1.39392%2073.2089%200.88955%2073.7139%200.538962%2074.3218C0.188375%2074.9298%200.00390931%2075.6193%200.00408949%2076.3211C0.00426966%2077.0229%200.189089%2077.7123%200.539989%2078.3201L35.38%20138.66C35.7299%20139.266%2036.2326%20139.77%2036.838%20140.121C37.4434%20140.472%2038.1302%20140.658%2038.83%20140.66H59.48C60.5409%20140.66%2061.5583%20140.239%2062.3084%20139.489C63.0586%20138.738%2063.48%20137.721%2063.48%20136.66V76.3101C63.4773%2075.2509%2063.0547%2074.2361%2062.3049%2073.4881C61.555%2072.7401%2060.5391%2072.3201%2059.48%2072.3201V72.3201Z'%20fill='%230164A8'/%3e%3c/g%3e%3cpath%20d='M207.52%20106.96C202.272%20106.96%20198.368%20105.584%20195.808%20102.832C193.312%20100.08%20192.064%2096.336%20192.064%2091.6V70.48H185.632V60.496H192.064V50.704L205.024%2046.864V60.496H216.544L215.776%2070.48H205.024V90.736C205.024%2093.232%20205.6%2094.96%20206.752%2095.92C207.904%2096.816%20209.696%2097.264%20212.128%2097.264C213.92%2097.264%20215.776%2096.944%20217.696%2096.304V105.232C216.288%20105.808%20214.752%20106.224%20213.088%20106.48C211.424%20106.8%20209.568%20106.96%20207.52%20106.96ZM224.347%20106V60.496H236.347L236.923%2065.2C238.971%2063.92%20241.499%2062.768%20244.507%2061.744C247.579%2060.656%20250.587%2059.92%20253.531%2059.536V69.328C251.803%2069.584%20249.915%2069.968%20247.867%2070.48C245.819%2070.992%20243.867%2071.568%20242.011%2072.208C240.155%2072.848%20238.587%2073.52%20237.307%2074.224V106H224.347ZM281.997%20106.96C274.125%20106.96%20267.885%20105.008%20263.277%20101.104C258.669%2097.136%20256.365%2091.152%20256.365%2083.152C256.365%2075.92%20258.285%2070.192%20262.125%2065.968C266.029%2061.68%20271.821%2059.536%20279.501%2059.536C286.541%2059.536%20291.917%2061.392%20295.629%2065.104C299.405%2068.752%20301.292%2073.552%20301.292%2079.504V87.76H268.365C269.069%2091.408%20270.733%2093.904%20273.357%2095.248C276.045%2096.592%20279.821%2097.264%20284.685%2097.264C287.117%2097.264%20289.581%2097.04%20292.077%2096.592C294.637%2096.144%20296.813%2095.568%20298.605%2094.864V104.08C296.493%20105.04%20294.029%20105.744%20291.213%20106.192C288.397%20106.704%20285.325%20106.96%20281.997%20106.96ZM268.365%2079.792H289.965V77.296C289.965%2074.672%20289.197%2072.624%20287.661%2071.152C286.125%2069.616%20283.533%2068.848%20279.885%2068.848C275.597%2068.848%20272.589%2069.712%20270.861%2071.44C269.197%2073.168%20268.365%2075.952%20268.365%2079.792ZM334.028%20106.96C326.156%20106.96%20319.916%20105.008%20315.308%20101.104C310.7%2097.136%20308.396%2091.152%20308.396%2083.152C308.396%2075.92%20310.316%2070.192%20314.156%2065.968C318.06%2061.68%20323.852%2059.536%20331.532%2059.536C338.572%2059.536%20343.948%2061.392%20347.66%2065.104C351.436%2068.752%20353.324%2073.552%20353.324%2079.504V87.76H320.396C321.1%2091.408%20322.764%2093.904%20325.388%2095.248C328.076%2096.592%20331.852%2097.264%20336.716%2097.264C339.148%2097.264%20341.612%2097.04%20344.108%2096.592C346.668%2096.144%20348.844%2095.568%20350.636%2094.864V104.08C348.524%20105.04%20346.06%20105.744%20343.244%20106.192C340.428%20106.704%20337.356%20106.96%20334.028%20106.96ZM320.396%2079.792H341.996V77.296C341.996%2074.672%20341.228%2072.624%20339.692%2071.152C338.156%2069.616%20335.564%2068.848%20331.916%2068.848C327.628%2068.848%20324.62%2069.712%20322.892%2071.44C321.228%2073.168%20320.396%2075.952%20320.396%2079.792ZM381.547%20122.896C378.155%20122.896%20374.667%20122.672%20371.083%20122.224C367.563%20121.776%20364.587%20121.136%20362.155%20120.304V110.608C364.715%20111.44%20367.723%20112.08%20371.179%20112.528C374.635%20113.04%20377.867%20113.296%20380.875%20113.296C385.291%20113.296%20388.491%20113.04%20390.475%20112.528C392.459%20112.08%20393.451%20111.248%20393.451%20110.032C393.451%20109.008%20393.003%20108.304%20392.107%20107.92C391.275%20107.536%20389.483%20107.344%20386.731%20107.344H374.347C366.219%20107.344%20362.155%20104.336%20362.155%2098.32C362.155%2096.464%20362.667%2094.768%20363.691%2093.232C364.715%2091.696%20366.347%2090.48%20368.587%2089.584C363.403%2086.96%20360.811%2082.544%20360.811%2076.336C360.811%2070.448%20362.635%2066.192%20366.283%2063.568C369.931%2060.88%20375.339%2059.536%20382.507%2059.536C383.979%2059.536%20385.579%2059.664%20387.307%2059.92C389.099%2060.112%20390.443%2060.304%20391.339%2060.496H408.427L408.139%2068.656H400.939C402.923%2070.512%20403.915%2073.104%20403.915%2076.432C403.915%2081.104%20402.443%2084.848%20399.499%2087.664C396.555%2090.416%20392.203%2091.792%20386.443%2091.792C385.419%2091.792%20384.427%2091.76%20383.467%2091.696C382.571%2091.568%20381.643%2091.44%20380.683%2091.312C378.763%2091.568%20377.131%2092.016%20375.787%2092.656C374.507%2093.296%20373.867%2094.16%20373.867%2095.248C373.867%2096.72%20375.179%2097.456%20377.803%2097.456H390.667C395.275%2097.456%20398.827%2098.512%20401.323%20100.624C403.819%20102.672%20405.067%20105.68%20405.067%20109.648C405.067%20114.128%20403.051%20117.456%20399.019%20119.632C394.987%20121.808%20389.163%20122.896%20381.547%20122.896ZM382.603%2084.496C386.443%2084.496%20389.099%2083.856%20390.571%2082.576C392.107%2081.232%20392.875%2078.992%20392.875%2075.856C392.875%2072.72%20392.107%2070.448%20390.571%2069.04C389.099%2067.632%20386.443%2066.928%20382.603%2066.928C378.955%2066.928%20376.331%2067.632%20374.731%2069.04C373.131%2070.384%20372.331%2072.656%20372.331%2075.856C372.331%2078.8%20373.067%2080.976%20374.539%2082.384C376.075%2083.792%20378.763%2084.496%20382.603%2084.496ZM439.028%20106.96C431.156%20106.96%20424.916%20105.008%20420.308%20101.104C415.7%2097.136%20413.396%2091.152%20413.396%2083.152C413.396%2075.92%20415.316%2070.192%20419.156%2065.968C423.06%2061.68%20428.852%2059.536%20436.532%2059.536C443.572%2059.536%20448.948%2061.392%20452.66%2065.104C456.436%2068.752%20458.324%2073.552%20458.324%2079.504V87.76H425.396C426.1%2091.408%20427.764%2093.904%20430.388%2095.248C433.076%2096.592%20436.852%2097.264%20441.716%2097.264C444.148%2097.264%20446.612%2097.04%20449.108%2096.592C451.668%2096.144%20453.844%2095.568%20455.636%2094.864V104.08C453.524%20105.04%20451.06%20105.744%20448.244%20106.192C445.428%20106.704%20442.356%20106.96%20439.028%20106.96ZM425.396%2079.792H446.996V77.296C446.996%2074.672%20446.228%2072.624%20444.692%2071.152C443.156%2069.616%20440.564%2068.848%20436.916%2068.848C432.628%2068.848%20429.62%2069.712%20427.892%2071.44C426.228%2073.168%20425.396%2075.952%20425.396%2079.792Z'%20fill='black'/%3e%3cdefs%3e%3cclipPath%20id='clip0_1809_3434'%3e%3crect%20width='151.93'%20height='136.64'%20fill='white'%20transform='translate(0%204)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Bt = "data:image/svg+xml,%3csvg%20width='462'%20height='144'%20viewBox='0%200%20462%20144'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2_65)'%3e%3cpath%20d='M137%2041.34L116.57%206C116.22%205.39399%20115.717%204.89037%20115.112%204.53942C114.507%204.18847%20113.82%204.00247%20113.12%204H38.83C38.1302%204.00247%2037.4434%204.18847%2036.838%204.53942C36.2326%204.89037%2035.7299%205.39399%2035.38%206L15%2041.34C14.6495%2041.947%2014.4647%2042.6355%2014.4641%2043.3365C14.4635%2044.0374%2014.6471%2044.7262%2014.9965%2045.3339C15.3459%2045.9416%2015.8488%2046.4467%2016.4549%2046.7988C17.061%2047.1509%2017.749%2047.3375%2018.45%2047.34H133.53C134.233%2047.341%20134.923%2047.157%20135.532%2046.8063C136.141%2046.4557%20136.647%2045.9508%20136.999%2045.3426C137.35%2044.7343%20137.536%2044.0441%20137.536%2043.3415C137.536%2042.6388%20137.351%2041.9485%20137%2041.34Z'%20fill='%2311D3B4'/%3e%3cpath%20d='M92.48%20140.64H113.1C113.805%20140.643%20114.498%20140.459%20115.109%20140.108C115.72%20139.757%20116.228%20139.25%20116.58%20138.64L151.39%2078.34C151.741%2077.7315%20151.926%2077.0412%20151.926%2076.3385C151.926%2075.6359%20151.74%2074.9457%20151.389%2074.3374C151.037%2073.7292%20150.531%2073.2243%20149.922%2072.8737C149.313%2072.523%20148.623%2072.339%20147.92%2072.34H92.48C91.4191%2072.34%2090.4017%2072.7614%2089.6516%2073.5116C88.9014%2074.2617%2088.48%2075.2791%2088.48%2076.34V136.64C88.48%20137.701%2088.9014%20138.718%2089.6516%20139.468C90.4017%20140.219%2091.4191%20140.64%2092.48%20140.64Z'%20fill='%23007EF6'/%3e%3cpath%20d='M59.48%2072.32H4C3.2982%2072.3207%202.60894%2072.5061%202.00143%2072.8574C1.39393%2073.2088%200.889558%2073.7138%200.53897%2074.3218C0.188382%2074.9297%200.00391694%2075.6192%200.00409712%2076.321C0.00427729%2077.0228%200.189097%2077.7122%200.539997%2078.32L35.38%20138.66C35.7299%20139.266%2036.2326%20139.77%2036.838%20140.121C37.4434%20140.472%2038.1302%20140.658%2038.83%20140.66H59.48C60.5409%20140.66%2061.5583%20140.239%2062.3084%20139.488C63.0586%20138.738%2063.48%20137.721%2063.48%20136.66V76.31C63.4773%2075.2509%2063.0548%2074.236%2062.3049%2073.488C61.555%2072.7401%2060.5391%2072.32%2059.48%2072.32Z'%20fill='%230164A8'/%3e%3c/g%3e%3cpath%20d='M207.52%20106.96C202.272%20106.96%20198.368%20105.584%20195.808%20102.832C193.312%20100.08%20192.064%2096.336%20192.064%2091.6V70.48H185.632V60.496H192.064V50.704L205.024%2046.864V60.496H216.544L215.776%2070.48H205.024V90.736C205.024%2093.232%20205.6%2094.96%20206.752%2095.92C207.904%2096.816%20209.696%2097.264%20212.128%2097.264C213.92%2097.264%20215.776%2096.944%20217.696%2096.304V105.232C216.288%20105.808%20214.752%20106.224%20213.088%20106.48C211.424%20106.8%20209.568%20106.96%20207.52%20106.96ZM224.347%20106V60.496H236.347L236.923%2065.2C238.971%2063.92%20241.499%2062.768%20244.507%2061.744C247.579%2060.656%20250.587%2059.92%20253.531%2059.536V69.328C251.803%2069.584%20249.915%2069.968%20247.867%2070.48C245.819%2070.992%20243.867%2071.568%20242.011%2072.208C240.155%2072.848%20238.587%2073.52%20237.307%2074.224V106H224.347ZM281.997%20106.96C274.125%20106.96%20267.885%20105.008%20263.277%20101.104C258.669%2097.136%20256.365%2091.152%20256.365%2083.152C256.365%2075.92%20258.285%2070.192%20262.125%2065.968C266.029%2061.68%20271.821%2059.536%20279.501%2059.536C286.541%2059.536%20291.917%2061.392%20295.629%2065.104C299.405%2068.752%20301.292%2073.552%20301.292%2079.504V87.76H268.365C269.069%2091.408%20270.733%2093.904%20273.357%2095.248C276.045%2096.592%20279.821%2097.264%20284.685%2097.264C287.117%2097.264%20289.581%2097.04%20292.077%2096.592C294.637%2096.144%20296.813%2095.568%20298.605%2094.864V104.08C296.493%20105.04%20294.029%20105.744%20291.213%20106.192C288.397%20106.704%20285.325%20106.96%20281.997%20106.96ZM268.365%2079.792H289.965V77.296C289.965%2074.672%20289.197%2072.624%20287.661%2071.152C286.125%2069.616%20283.533%2068.848%20279.885%2068.848C275.597%2068.848%20272.589%2069.712%20270.861%2071.44C269.197%2073.168%20268.365%2075.952%20268.365%2079.792ZM334.028%20106.96C326.156%20106.96%20319.916%20105.008%20315.308%20101.104C310.7%2097.136%20308.396%2091.152%20308.396%2083.152C308.396%2075.92%20310.316%2070.192%20314.156%2065.968C318.06%2061.68%20323.852%2059.536%20331.532%2059.536C338.572%2059.536%20343.948%2061.392%20347.66%2065.104C351.436%2068.752%20353.324%2073.552%20353.324%2079.504V87.76H320.396C321.1%2091.408%20322.764%2093.904%20325.388%2095.248C328.076%2096.592%20331.852%2097.264%20336.716%2097.264C339.148%2097.264%20341.612%2097.04%20344.108%2096.592C346.668%2096.144%20348.844%2095.568%20350.636%2094.864V104.08C348.524%20105.04%20346.06%20105.744%20343.244%20106.192C340.428%20106.704%20337.356%20106.96%20334.028%20106.96ZM320.396%2079.792H341.996V77.296C341.996%2074.672%20341.228%2072.624%20339.692%2071.152C338.156%2069.616%20335.564%2068.848%20331.916%2068.848C327.628%2068.848%20324.62%2069.712%20322.892%2071.44C321.228%2073.168%20320.396%2075.952%20320.396%2079.792ZM381.547%20122.896C378.155%20122.896%20374.667%20122.672%20371.083%20122.224C367.563%20121.776%20364.587%20121.136%20362.155%20120.304V110.608C364.715%20111.44%20367.723%20112.08%20371.179%20112.528C374.635%20113.04%20377.867%20113.296%20380.875%20113.296C385.291%20113.296%20388.491%20113.04%20390.475%20112.528C392.459%20112.08%20393.451%20111.248%20393.451%20110.032C393.451%20109.008%20393.003%20108.304%20392.107%20107.92C391.275%20107.536%20389.483%20107.344%20386.731%20107.344H374.347C366.219%20107.344%20362.155%20104.336%20362.155%2098.32C362.155%2096.464%20362.667%2094.768%20363.691%2093.232C364.715%2091.696%20366.347%2090.48%20368.587%2089.584C363.403%2086.96%20360.811%2082.544%20360.811%2076.336C360.811%2070.448%20362.635%2066.192%20366.283%2063.568C369.931%2060.88%20375.339%2059.536%20382.507%2059.536C383.979%2059.536%20385.579%2059.664%20387.307%2059.92C389.099%2060.112%20390.443%2060.304%20391.339%2060.496H408.427L408.139%2068.656H400.939C402.923%2070.512%20403.915%2073.104%20403.915%2076.432C403.915%2081.104%20402.443%2084.848%20399.499%2087.664C396.555%2090.416%20392.203%2091.792%20386.443%2091.792C385.419%2091.792%20384.427%2091.76%20383.467%2091.696C382.571%2091.568%20381.643%2091.44%20380.683%2091.312C378.763%2091.568%20377.131%2092.016%20375.787%2092.656C374.507%2093.296%20373.867%2094.16%20373.867%2095.248C373.867%2096.72%20375.179%2097.456%20377.803%2097.456H390.667C395.275%2097.456%20398.827%2098.512%20401.323%20100.624C403.819%20102.672%20405.067%20105.68%20405.067%20109.648C405.067%20114.128%20403.051%20117.456%20399.019%20119.632C394.987%20121.808%20389.163%20122.896%20381.547%20122.896ZM382.603%2084.496C386.443%2084.496%20389.099%2083.856%20390.571%2082.576C392.107%2081.232%20392.875%2078.992%20392.875%2075.856C392.875%2072.72%20392.107%2070.448%20390.571%2069.04C389.099%2067.632%20386.443%2066.928%20382.603%2066.928C378.955%2066.928%20376.331%2067.632%20374.731%2069.04C373.131%2070.384%20372.331%2072.656%20372.331%2075.856C372.331%2078.8%20373.067%2080.976%20374.539%2082.384C376.075%2083.792%20378.763%2084.496%20382.603%2084.496ZM439.028%20106.96C431.156%20106.96%20424.916%20105.008%20420.308%20101.104C415.7%2097.136%20413.396%2091.152%20413.396%2083.152C413.396%2075.92%20415.316%2070.192%20419.156%2065.968C423.06%2061.68%20428.852%2059.536%20436.532%2059.536C443.572%2059.536%20448.948%2061.392%20452.66%2065.104C456.436%2068.752%20458.324%2073.552%20458.324%2079.504V87.76H425.396C426.1%2091.408%20427.764%2093.904%20430.388%2095.248C433.076%2096.592%20436.852%2097.264%20441.716%2097.264C444.148%2097.264%20446.612%2097.04%20449.108%2096.592C451.668%2096.144%20453.844%2095.568%20455.636%2094.864V104.08C453.524%20105.04%20451.06%20105.744%20448.244%20106.192C445.428%20106.704%20442.356%20106.96%20439.028%20106.96ZM425.396%2079.792H446.996V77.296C446.996%2074.672%20446.228%2072.624%20444.692%2071.152C443.156%2069.616%20440.564%2068.848%20436.916%2068.848C432.628%2068.848%20429.62%2069.712%20427.892%2071.44C426.228%2073.168%20425.396%2075.952%20425.396%2079.792Z'%20fill='white'/%3e%3cdefs%3e%3cclipPath%20id='clip0_2_65'%3e%3crect%20width='151.93'%20height='136.64'%20fill='white'%20transform='translate(0%204)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Vt = ({ theme: e = "dark" }) => /* @__PURE__ */ P("div", {
|
|
19
|
-
className: "absolute top-5 left-5 z-50 select-none",
|
|
19
|
+
className: "tg:absolute tg:top-5 tg:left-5 tg:z-50 tg:select-none",
|
|
20
20
|
children: /* @__PURE__ */ P("img", {
|
|
21
21
|
src: e === "dark" ? Bt : zt,
|
|
22
22
|
alt: "Treege",
|
|
23
|
-
className: "relative h-14 w-auto drop-shadow-[0_0px_35px] drop-shadow-blue-600"
|
|
23
|
+
className: "tg:relative tg:h-14 tg:w-auto tg:drop-shadow-[0_0px_35px] tg:drop-shadow-blue-600"
|
|
24
24
|
})
|
|
25
25
|
}), Ht = (e) => {
|
|
26
26
|
let t = je(), n = Ae();
|
|
@@ -94,12 +94,12 @@ var zt = "data:image/svg+xml,%3csvg%20width='462'%20height='144'%20viewBox='0%20
|
|
|
94
94
|
function Gt({ className: e, children: t, ...n }) {
|
|
95
95
|
return /* @__PURE__ */ F(Nt.Root, {
|
|
96
96
|
"data-slot": "scroll-area",
|
|
97
|
-
className: E("relative", e),
|
|
97
|
+
className: E("tg:relative", e),
|
|
98
98
|
...n,
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ P(Nt.Viewport, {
|
|
101
101
|
"data-slot": "scroll-area-viewport",
|
|
102
|
-
className: "size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
102
|
+
className: "tg:size-full tg:rounded-[inherit] tg:outline-none tg:transition-[color,box-shadow] tg:focus-visible:outline-1 tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50",
|
|
103
103
|
children: t
|
|
104
104
|
}),
|
|
105
105
|
/* @__PURE__ */ P(Kt, {}),
|
|
@@ -111,11 +111,11 @@ function Kt({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
111
111
|
return /* @__PURE__ */ P(Nt.ScrollAreaScrollbar, {
|
|
112
112
|
"data-slot": "scroll-area-scrollbar",
|
|
113
113
|
orientation: t,
|
|
114
|
-
className: E("flex touch-none select-none p-px transition-colors", t === "vertical" && "h-full w-2.5 border-l border-l-transparent", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", e),
|
|
114
|
+
className: E("tg:flex tg:touch-none tg:select-none tg:p-px tg:transition-colors", t === "vertical" && "tg:h-full tg:w-2.5 tg:border-l tg:border-l-transparent", t === "horizontal" && "tg:h-2.5 tg:flex-col tg:border-t tg:border-t-transparent", e),
|
|
115
115
|
...n,
|
|
116
116
|
children: /* @__PURE__ */ P(Nt.ScrollAreaThumb, {
|
|
117
117
|
"data-slot": "scroll-area-thumb",
|
|
118
|
-
className: "relative flex-1 rounded-full bg-border"
|
|
118
|
+
className: "tg:relative tg:flex-1 tg:rounded-full tg:bg-border"
|
|
119
119
|
})
|
|
120
120
|
});
|
|
121
121
|
}
|
|
@@ -185,7 +185,7 @@ var qt = {
|
|
|
185
185
|
}
|
|
186
186
|
let n = t.filter((t) => t.logicalOperator === e.AND).length, r = t.filter((t) => t.logicalOperator === e.OR).length;
|
|
187
187
|
return n > 0 && r === 0 ? `${t.length} ${x("editor.conditionalEdge.conditionsAnd")}` : r > 0 && n === 0 ? `${t.length} ${x("editor.conditionalEdge.conditionsOr")}` : `${t.length} ${x("editor.conditionalEdge.conditionsMixed")}`;
|
|
188
|
-
}, ue = () => f?.isFallback ? "var(--
|
|
188
|
+
}, ue = () => f?.isFallback ? "var(--treege-chart-4)" : S ? "var(--treege-chart-2)" : "var(--treege-chart-3)";
|
|
189
189
|
return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(ve, {
|
|
190
190
|
path: p,
|
|
191
191
|
markerEnd: l,
|
|
@@ -196,7 +196,7 @@ var qt = {
|
|
|
196
196
|
strokeWidth: S ? 2 : u?.strokeWidth
|
|
197
197
|
}
|
|
198
198
|
}), /* @__PURE__ */ P(be, { children: /* @__PURE__ */ P("div", {
|
|
199
|
-
className: "nodrag nopan absolute",
|
|
199
|
+
className: "nodrag nopan tg:absolute",
|
|
200
200
|
style: {
|
|
201
201
|
pointerEvents: "all",
|
|
202
202
|
transform: `translate(-50%, -50%) translate(${m}px,${_}px)`
|
|
@@ -209,35 +209,35 @@ var qt = {
|
|
|
209
209
|
children: /* @__PURE__ */ F(k, {
|
|
210
210
|
variant: S ? "default" : "secondary",
|
|
211
211
|
size: "xs",
|
|
212
|
-
className: E("transition-[filter]", S ? "hover:bg-primary hover:brightness-125" : "hover:bg-secondary hover:brightness-90"),
|
|
212
|
+
className: E("tg:transition-[filter]", S ? "tg:hover:bg-primary tg:hover:brightness-125" : "tg:hover:bg-secondary tg:hover:brightness-90"),
|
|
213
213
|
onClick: D,
|
|
214
|
-
children: [/* @__PURE__ */ P(St, { className: "h-3 w-3" }), S ? le() : x("editor.conditionalEdge.defineCondition")]
|
|
214
|
+
children: [/* @__PURE__ */ P(St, { className: "tg:h-3 tg:w-3" }), S ? le() : x("editor.conditionalEdge.defineCondition")]
|
|
215
215
|
})
|
|
216
216
|
}), /* @__PURE__ */ P(ae, {
|
|
217
|
-
className: "w-96 p-1",
|
|
217
|
+
className: "tg:w-96 tg:p-1",
|
|
218
218
|
align: "center",
|
|
219
219
|
onClick: (e) => e.stopPropagation(),
|
|
220
220
|
children: /* @__PURE__ */ P(Gt, {
|
|
221
|
-
className: "flex max-h-150 flex-col p-3",
|
|
221
|
+
className: "tg:flex tg:max-h-150 tg:flex-col tg:p-3",
|
|
222
222
|
children: /* @__PURE__ */ P("form", {
|
|
223
223
|
onSubmit: (e) => {
|
|
224
224
|
e.preventDefault(), e.stopPropagation();
|
|
225
225
|
},
|
|
226
226
|
children: /* @__PURE__ */ F("div", {
|
|
227
|
-
className: "grid gap-5",
|
|
227
|
+
className: "tg:grid tg:gap-5",
|
|
228
228
|
children: [
|
|
229
229
|
/* @__PURE__ */ F("div", {
|
|
230
|
-
className: "space-y-2",
|
|
230
|
+
className: "tg:space-y-2",
|
|
231
231
|
children: [/* @__PURE__ */ P("h4", {
|
|
232
|
-
className: "font-medium leading-none",
|
|
232
|
+
className: "tg:font-medium tg:leading-none",
|
|
233
233
|
children: x("editor.conditionalEdge.displayConditions")
|
|
234
234
|
}), /* @__PURE__ */ P("p", {
|
|
235
|
-
className: "text-muted-foreground text-sm",
|
|
235
|
+
className: "tg:text-muted-foreground tg:text-sm",
|
|
236
236
|
children: x("editor.conditionalEdge.displayConditionsDesc")
|
|
237
237
|
})]
|
|
238
238
|
}),
|
|
239
239
|
/* @__PURE__ */ F("div", {
|
|
240
|
-
className: "grid gap-4",
|
|
240
|
+
className: "tg:grid tg:gap-4",
|
|
241
241
|
children: [
|
|
242
242
|
/* @__PURE__ */ P(oe, {
|
|
243
243
|
name: "label",
|
|
@@ -258,19 +258,19 @@ var qt = {
|
|
|
258
258
|
/* @__PURE__ */ P(oe, {
|
|
259
259
|
name: "isFallback",
|
|
260
260
|
children: (e) => /* @__PURE__ */ P(A, { children: /* @__PURE__ */ F("div", {
|
|
261
|
-
className: "flex items-center gap-3 rounded-lg border bg-muted/20 p-3",
|
|
261
|
+
className: "tg:flex tg:items-center tg:gap-3 tg:rounded-lg tg:border tg:bg-muted/20 tg:p-3",
|
|
262
262
|
children: [/* @__PURE__ */ P(fe, {
|
|
263
263
|
id: e.name,
|
|
264
264
|
checked: e.state.value,
|
|
265
265
|
onCheckedChange: (t) => e.handleChange(t)
|
|
266
266
|
}), /* @__PURE__ */ F("div", {
|
|
267
|
-
className: "flex flex-col gap-1",
|
|
267
|
+
className: "tg:flex tg:flex-col tg:gap-1",
|
|
268
268
|
children: [/* @__PURE__ */ P(d, {
|
|
269
269
|
htmlFor: e.name,
|
|
270
|
-
className: "cursor-pointer font-medium",
|
|
270
|
+
className: "tg:cursor-pointer tg:font-medium",
|
|
271
271
|
children: x("editor.conditionalEdge.fallbackPath")
|
|
272
272
|
}), /* @__PURE__ */ P(j, {
|
|
273
|
-
className: "text-xs",
|
|
273
|
+
className: "tg:text-xs",
|
|
274
274
|
children: x("editor.conditionalEdge.fallbackPathDesc")
|
|
275
275
|
})]
|
|
276
276
|
})]
|
|
@@ -282,16 +282,16 @@ var qt = {
|
|
|
282
282
|
children: (t) => {
|
|
283
283
|
let n = t.form.getFieldValue("isFallback");
|
|
284
284
|
return /* @__PURE__ */ F("div", {
|
|
285
|
-
className: "space-y-3",
|
|
285
|
+
className: "tg:space-y-3",
|
|
286
286
|
children: [/* @__PURE__ */ P(d, {
|
|
287
|
-
className: n ? "text-muted-foreground" : "",
|
|
287
|
+
className: n ? "tg:text-muted-foreground" : "",
|
|
288
288
|
children: x("editor.conditionalEdge.conditions")
|
|
289
289
|
}), /* @__PURE__ */ F("div", {
|
|
290
|
-
className: "space-y-2",
|
|
290
|
+
className: "tg:space-y-2",
|
|
291
291
|
children: [t.state.value?.map((r, i) => /* @__PURE__ */ F("div", {
|
|
292
|
-
className: "space-y-2",
|
|
292
|
+
className: "tg:space-y-2",
|
|
293
293
|
children: [/* @__PURE__ */ F("div", {
|
|
294
|
-
className: "space-y-2 rounded-lg border bg-muted/30 p-3",
|
|
294
|
+
className: "tg:space-y-2 tg:rounded-lg tg:border tg:bg-muted/30 tg:p-3",
|
|
295
295
|
children: [
|
|
296
296
|
/* @__PURE__ */ P(oe, {
|
|
297
297
|
name: `conditions[${i}].field`,
|
|
@@ -304,7 +304,7 @@ var qt = {
|
|
|
304
304
|
onValueChange: (t) => e.handleChange(t),
|
|
305
305
|
children: [/* @__PURE__ */ P(v, {
|
|
306
306
|
id: `field-${i}`,
|
|
307
|
-
className: "w-full",
|
|
307
|
+
className: "tg:w-full",
|
|
308
308
|
children: /* @__PURE__ */ P(T, { placeholder: x("editor.conditionalEdge.selectField") })
|
|
309
309
|
}), /* @__PURE__ */ P(C, { children: te.length === 0 ? /* @__PURE__ */ P(h, {
|
|
310
310
|
value: "none",
|
|
@@ -322,7 +322,7 @@ var qt = {
|
|
|
322
322
|
})] })
|
|
323
323
|
}),
|
|
324
324
|
/* @__PURE__ */ F("div", {
|
|
325
|
-
className: "flex gap-2",
|
|
325
|
+
className: "tg:flex tg:gap-2",
|
|
326
326
|
children: [/* @__PURE__ */ P(oe, {
|
|
327
327
|
name: `conditions[${i}].operator`,
|
|
328
328
|
children: (e) => /* @__PURE__ */ F(A, { children: [/* @__PURE__ */ P(d, {
|
|
@@ -365,7 +365,7 @@ var qt = {
|
|
|
365
365
|
}), /* @__PURE__ */ P(oe, {
|
|
366
366
|
name: `conditions[${i}].value`,
|
|
367
367
|
children: (e) => /* @__PURE__ */ F(A, {
|
|
368
|
-
className: "w-full",
|
|
368
|
+
className: "tg:w-full",
|
|
369
369
|
children: [/* @__PURE__ */ P(d, {
|
|
370
370
|
htmlFor: `value-${i}`,
|
|
371
371
|
children: x("editor.conditionalEdge.value")
|
|
@@ -384,23 +384,23 @@ var qt = {
|
|
|
384
384
|
type: "button",
|
|
385
385
|
variant: "ghost",
|
|
386
386
|
size: "sm",
|
|
387
|
-
className: "w-full",
|
|
387
|
+
className: "tg:w-full",
|
|
388
388
|
onClick: () => {
|
|
389
389
|
t.removeValue(i), re().then();
|
|
390
390
|
},
|
|
391
|
-
children: [/* @__PURE__ */ P(L, { className: "mr-1 h-4 w-4" }), x("editor.conditionalEdge.removeCondition")]
|
|
391
|
+
children: [/* @__PURE__ */ P(L, { className: "tg:mr-1 tg:h-4 tg:w-4" }), x("editor.conditionalEdge.removeCondition")]
|
|
392
392
|
})
|
|
393
393
|
]
|
|
394
394
|
}), t.state.value && i < t.state.value.length - 1 && /* @__PURE__ */ P(oe, {
|
|
395
395
|
name: `conditions[${i}].logicalOperator`,
|
|
396
396
|
children: (t) => /* @__PURE__ */ P("div", {
|
|
397
|
-
className: "flex justify-center",
|
|
397
|
+
className: "tg:flex tg:justify-center",
|
|
398
398
|
children: /* @__PURE__ */ F(g, {
|
|
399
399
|
disabled: n,
|
|
400
400
|
value: t.state.value || e.AND,
|
|
401
401
|
onValueChange: (e) => t.handleChange(e),
|
|
402
402
|
children: [/* @__PURE__ */ P(v, {
|
|
403
|
-
className: "h-9 w-32 font-semibold",
|
|
403
|
+
className: "tg:h-9 tg:w-32 tg:font-semibold",
|
|
404
404
|
children: /* @__PURE__ */ P(T, {})
|
|
405
405
|
}), /* @__PURE__ */ F(C, { children: [/* @__PURE__ */ P(h, {
|
|
406
406
|
value: e.AND,
|
|
@@ -417,7 +417,7 @@ var qt = {
|
|
|
417
417
|
type: "button",
|
|
418
418
|
variant: "outline",
|
|
419
419
|
size: "sm",
|
|
420
|
-
className: "w-full",
|
|
420
|
+
className: "tg:w-full",
|
|
421
421
|
onClick: () => {
|
|
422
422
|
t.pushValue({
|
|
423
423
|
field: te[0]?.nodeId ?? "",
|
|
@@ -426,7 +426,7 @@ var qt = {
|
|
|
426
426
|
value: ""
|
|
427
427
|
}), re().then();
|
|
428
428
|
},
|
|
429
|
-
children: [/* @__PURE__ */ P(I, { className: "mr-2 h-4 w-4" }), x("editor.conditionalEdge.addCondition")]
|
|
429
|
+
children: [/* @__PURE__ */ P(I, { className: "tg:mr-2 tg:h-4 tg:w-4" }), x("editor.conditionalEdge.addCondition")]
|
|
430
430
|
})]
|
|
431
431
|
})]
|
|
432
432
|
});
|
|
@@ -435,13 +435,13 @@ var qt = {
|
|
|
435
435
|
]
|
|
436
436
|
}),
|
|
437
437
|
/* @__PURE__ */ F("div", {
|
|
438
|
-
className: "flex justify-end gap-2 pt-2",
|
|
438
|
+
className: "tg:flex tg:justify-end tg:gap-2 tg:pt-2",
|
|
439
439
|
children: [/* @__PURE__ */ F(k, {
|
|
440
440
|
type: "button",
|
|
441
441
|
size: "sm",
|
|
442
442
|
variant: "outline",
|
|
443
443
|
onClick: se,
|
|
444
|
-
children: [/* @__PURE__ */ P(L, { className: "mr-1 h-4 w-4" }), x("common.clear")]
|
|
444
|
+
children: [/* @__PURE__ */ P(L, { className: "tg:mr-1 tg:h-4 tg:w-4" }), x("common.clear")]
|
|
445
445
|
}), /* @__PURE__ */ P(k, {
|
|
446
446
|
type: "button",
|
|
447
447
|
size: "sm",
|
|
@@ -590,7 +590,7 @@ var qt = {
|
|
|
590
590
|
onClick: d,
|
|
591
591
|
onMouseDown: d,
|
|
592
592
|
onPointerDown: d,
|
|
593
|
-
className: E("nodrag nopan w-full truncate bg-transparent outline-none placeholder:text-muted-foreground/40", r)
|
|
593
|
+
className: E("nodrag nopan tg:w-full tg:truncate tg:bg-transparent tg:outline-none tg:placeholder:text-muted-foreground/40", r)
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
596
|
//#endregion
|
|
@@ -611,7 +611,7 @@ function q({ className: e, sideOffset: t = 4, ...n }) {
|
|
|
611
611
|
return /* @__PURE__ */ P(B.Portal, { children: /* @__PURE__ */ P(B.Content, {
|
|
612
612
|
"data-slot": "dropdown-menu-content",
|
|
613
613
|
sideOffset: t,
|
|
614
|
-
className: E("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in", e),
|
|
614
|
+
className: E("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:data-[state=closed]:zoom-out-95 tg:data-[state=open]:zoom-in-95 tg:data-[side=bottom]:slide-in-from-top-2 tg:data-[side=left]:slide-in-from-right-2 tg:data-[side=right]:slide-in-from-left-2 tg:data-[side=top]:slide-in-from-bottom-2 tg:z-50 tg:max-h-(--radix-dropdown-menu-content-available-height) tg:min-w-[8rem] tg:origin-(--radix-dropdown-menu-content-transform-origin) tg:overflow-y-auto tg:overflow-x-hidden tg:rounded-md tg:border tg:bg-popover tg:p-1 tg:text-popover-foreground tg:shadow-md tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", e),
|
|
615
615
|
...n
|
|
616
616
|
}) });
|
|
617
617
|
}
|
|
@@ -626,7 +626,7 @@ function Y({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
626
626
|
"data-slot": "dropdown-menu-item",
|
|
627
627
|
"data-inset": t,
|
|
628
628
|
"data-variant": n,
|
|
629
|
-
className: E("data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
|
|
629
|
+
className: E("tg:data-[variant=destructive]:*:[svg]:!text-destructive tg:relative tg:flex tg:cursor-default tg:select-none tg:items-center tg:gap-2 tg:rounded-sm tg:px-2 tg:py-1.5 tg:text-sm tg:outline-hidden tg:focus:bg-accent tg:focus:text-accent-foreground tg:data-[disabled]:pointer-events-none tg:data-[inset]:pl-8 tg:data-[variant=destructive]:text-destructive tg:data-[disabled]:opacity-50 tg:data-[variant=destructive]:focus:bg-destructive/10 tg:data-[variant=destructive]:focus:text-destructive tg:dark:data-[variant=destructive]:focus:bg-destructive/20 tg:[&_svg:not([class*='size-'])]:size-4 tg:[&_svg:not([class*='text-'])]:text-muted-foreground tg:[&_svg]:pointer-events-none tg:[&_svg]:shrink-0", e),
|
|
630
630
|
...r
|
|
631
631
|
});
|
|
632
632
|
}
|
|
@@ -634,14 +634,14 @@ function en({ className: e, inset: t, ...n }) {
|
|
|
634
634
|
return /* @__PURE__ */ P(B.Label, {
|
|
635
635
|
"data-slot": "dropdown-menu-label",
|
|
636
636
|
"data-inset": t,
|
|
637
|
-
className: E("px-1.5 py-1 font-medium text-muted-foreground text-xs data-[inset]:pl-7", e),
|
|
637
|
+
className: E("tg:px-1.5 tg:py-1 tg:font-medium tg:text-muted-foreground tg:text-xs tg:data-[inset]:pl-7", e),
|
|
638
638
|
...n
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
function tn({ className: e, ...t }) {
|
|
642
642
|
return /* @__PURE__ */ P(B.Separator, {
|
|
643
643
|
"data-slot": "dropdown-menu-separator",
|
|
644
|
-
className: E("
|
|
644
|
+
className: E("tg:-mx-1 tg:my-1 tg:h-px tg:bg-border", e),
|
|
645
645
|
...t
|
|
646
646
|
});
|
|
647
647
|
}
|
|
@@ -657,8 +657,8 @@ var nn = ({ nodeId: e, className: t }) => {
|
|
|
657
657
|
children: /* @__PURE__ */ P("button", {
|
|
658
658
|
type: "button",
|
|
659
659
|
"aria-label": a("editor.nodeActionsSheet.editNode"),
|
|
660
|
-
className: E("nodrag nopan absolute top-2 right-2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-md opacity-60 transition-all hover:text-[--treege-color-primary] hover:opacity-100", t),
|
|
661
|
-
children: /* @__PURE__ */ P(ct, { className: "h-3.5 w-3.5" })
|
|
660
|
+
className: E("nodrag nopan tg:absolute tg:top-2 tg:right-2 tg:flex tg:h-6 tg:w-6 tg:cursor-pointer tg:items-center tg:justify-center tg:rounded-md tg:opacity-60 tg:transition-all tg:hover:text-[--treege-color-primary] tg:hover:opacity-100", t),
|
|
661
|
+
children: /* @__PURE__ */ P(ct, { className: "tg:h-3.5 tg:w-3.5" })
|
|
662
662
|
})
|
|
663
663
|
}), /* @__PURE__ */ F(q, {
|
|
664
664
|
align: "end",
|
|
@@ -681,15 +681,15 @@ var nn = ({ nodeId: e, className: t }) => {
|
|
|
681
681
|
]
|
|
682
682
|
})]
|
|
683
683
|
});
|
|
684
|
-
}, rn = Mt("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3", {
|
|
684
|
+
}, rn = Mt("tg:inline-flex tg:w-fit tg:shrink-0 tg:items-center tg:justify-center tg:gap-1 tg:overflow-hidden tg:rounded-full tg:border tg:border-transparent tg:px-2 tg:py-0.5 tg:text-xs tg:font-medium tg:whitespace-nowrap tg:transition-[color,box-shadow] tg:focus-visible:border-ring tg:focus-visible:ring-[3px] tg:focus-visible:ring-ring/50 tg:aria-invalid:border-destructive tg:aria-invalid:ring-destructive/20 tg:dark:aria-invalid:ring-destructive/40 tg:[&>svg]:pointer-events-none tg:[&>svg]:size-3", {
|
|
685
685
|
defaultVariants: { variant: "default" },
|
|
686
686
|
variants: { variant: {
|
|
687
|
-
blue: "bg-blue-500 text-white dark:bg-blue-600",
|
|
688
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
689
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
690
|
-
outline: "border-foreground/30 text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
691
|
-
purple: "bg-purple-600 hover:bg-purple-700 text-white",
|
|
692
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90"
|
|
687
|
+
blue: "tg:bg-blue-500 tg:text-white tg:dark:bg-blue-600",
|
|
688
|
+
default: "tg:border-transparent tg:bg-primary tg:text-primary-foreground tg:[a&]:hover:bg-primary/90",
|
|
689
|
+
destructive: "tg:border-transparent tg:bg-destructive tg:text-white tg:[a&]:hover:bg-destructive/90 tg:focus-visible:ring-destructive/20 tg:dark:focus-visible:ring-destructive/40 tg:dark:bg-destructive/60",
|
|
690
|
+
outline: "tg:border-foreground/30 tg:text-foreground tg:[a&]:hover:bg-accent tg:[a&]:hover:text-accent-foreground",
|
|
691
|
+
purple: "tg:bg-purple-600 tg:hover:bg-purple-700 tg:text-white",
|
|
692
|
+
secondary: "tg:border-transparent tg:bg-secondary tg:text-secondary-foreground tg:[a&]:hover:bg-secondary/90"
|
|
693
693
|
} }
|
|
694
694
|
});
|
|
695
695
|
function an({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
@@ -702,13 +702,13 @@ function an({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
|
702
702
|
var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
703
703
|
/* @__PURE__ */ P(Ce, {}),
|
|
704
704
|
/* @__PURE__ */ P("div", {
|
|
705
|
-
className: "
|
|
705
|
+
className: "tg:-top-3.5 tg:absolute tg:left-6",
|
|
706
706
|
children: /* @__PURE__ */ F(an, {
|
|
707
|
-
className: "max-w-50 bg-chart-2",
|
|
708
|
-
children: [/* @__PURE__ */ P(Le, { className: "
|
|
707
|
+
className: "tg:max-w-50 tg:bg-chart-2",
|
|
708
|
+
children: [/* @__PURE__ */ P(Le, { className: "tg:!w-3 tg:!h-3" }), /* @__PURE__ */ P($t, {
|
|
709
709
|
nodeId: t,
|
|
710
710
|
label: e?.label,
|
|
711
|
-
className: "min-w-0 flex-1 text-xs text-white placeholder:text-white/60"
|
|
711
|
+
className: "tg:min-w-0 tg:flex-1 tg:text-xs tg:text-white tg:placeholder:text-white/60"
|
|
712
712
|
})]
|
|
713
713
|
})
|
|
714
714
|
}),
|
|
@@ -888,8 +888,8 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
888
888
|
onClick: (e) => {
|
|
889
889
|
e.defaultPrevented || a(!0);
|
|
890
890
|
},
|
|
891
|
-
className: "flex h-6! w-6! cursor-pointer items-center justify-center rounded-sm transition-colors hover:bg-primary/80!",
|
|
892
|
-
children: /* @__PURE__ */ P(I, { className: "h-4 w-4 text-primary-foreground" })
|
|
891
|
+
className: "tg:flex tg:h-6! tg:w-6! tg:cursor-pointer tg:items-center tg:justify-center tg:rounded-sm tg:transition-colors tg:hover:bg-primary/80!",
|
|
892
|
+
children: /* @__PURE__ */ P(I, { className: "tg:h-4 tg:w-4 tg:text-primary-foreground" })
|
|
893
893
|
}), /* @__PURE__ */ F(G, {
|
|
894
894
|
open: i,
|
|
895
895
|
onOpenChange: a,
|
|
@@ -897,19 +897,19 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
897
897
|
asChild: !0,
|
|
898
898
|
children: /* @__PURE__ */ P("span", {
|
|
899
899
|
"aria-hidden": !0,
|
|
900
|
-
className: "
|
|
900
|
+
className: "tg:-translate-x-1/2 tg:pointer-events-none tg:absolute tg:bottom-0 tg:left-1/2 tg:h-0 tg:w-0"
|
|
901
901
|
})
|
|
902
902
|
}), /* @__PURE__ */ F(q, {
|
|
903
903
|
align: "center",
|
|
904
904
|
side: "bottom",
|
|
905
|
-
className: "treege-scrollbar max-h-80",
|
|
905
|
+
className: "treege-scrollbar tg:max-h-80",
|
|
906
906
|
children: [
|
|
907
907
|
/* @__PURE__ */ F(J, { children: [/* @__PURE__ */ P(en, { children: r("editor.selectNodeType.options.input") }), Object.values(X).map((t) => /* @__PURE__ */ F(Y, {
|
|
908
908
|
onClick: () => n(e, {
|
|
909
909
|
data: { type: t },
|
|
910
910
|
type: l.input
|
|
911
911
|
}),
|
|
912
|
-
className: "capitalize",
|
|
912
|
+
className: "tg:capitalize",
|
|
913
913
|
children: [/* @__PURE__ */ P(Z(t), {}), t]
|
|
914
914
|
}, t))] }),
|
|
915
915
|
/* @__PURE__ */ P(tn, {}),
|
|
@@ -918,7 +918,7 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
918
918
|
data: { type: t },
|
|
919
919
|
type: l.ui
|
|
920
920
|
}),
|
|
921
|
-
className: "capitalize",
|
|
921
|
+
className: "tg:capitalize",
|
|
922
922
|
children: [/* @__PURE__ */ P(Z(t), {}), t]
|
|
923
923
|
}, t))] }),
|
|
924
924
|
/* @__PURE__ */ P(tn, {}),
|
|
@@ -954,21 +954,21 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
954
954
|
},
|
|
955
955
|
type: "input"
|
|
956
956
|
}, c = a(n.label, r), l = t(o), u = /* @__PURE__ */ F("div", {
|
|
957
|
-
className: "flex items-center gap-1 text-[10px] text-muted-foreground capitalize [&>svg]:size-3",
|
|
957
|
+
className: "tg:flex tg:items-center tg:gap-1 tg:text-[10px] tg:text-muted-foreground tg:capitalize tg:[&>svg]:size-3",
|
|
958
958
|
children: [/* @__PURE__ */ P(Z(i), {}), i]
|
|
959
959
|
});
|
|
960
960
|
if (i === "hidden") {
|
|
961
961
|
let e = n.defaultValue?.type === "static" ? n.defaultValue.staticValue : void 0, t = n.defaultValue?.type === "reference" ? n.defaultValue.referenceField : void 0, r = Array.isArray(e) ? e.join(", ") : typeof e == "boolean" ? String(e) : e ?? (t ? `→ ${t}` : "");
|
|
962
962
|
return /* @__PURE__ */ F("div", {
|
|
963
|
-
className: "pointer-events-none flex select-none flex-col gap-1 text-sm",
|
|
963
|
+
className: "tg:pointer-events-none tg:flex tg:select-none tg:flex-col tg:gap-1 tg:text-sm",
|
|
964
964
|
children: [
|
|
965
965
|
u,
|
|
966
966
|
/* @__PURE__ */ P("span", {
|
|
967
|
-
className: "truncate font-medium",
|
|
967
|
+
className: "tg:truncate tg:font-medium",
|
|
968
968
|
children: c || l
|
|
969
969
|
}),
|
|
970
970
|
/* @__PURE__ */ P("span", {
|
|
971
|
-
className: "truncate text-muted-foreground text-xs",
|
|
971
|
+
className: "tg:truncate tg:text-muted-foreground tg:text-xs",
|
|
972
972
|
children: r || "—"
|
|
973
973
|
})
|
|
974
974
|
]
|
|
@@ -978,7 +978,7 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
978
978
|
if (!d) return null;
|
|
979
979
|
let f = a(n.helperText, r), p = s(n, r);
|
|
980
980
|
return /* @__PURE__ */ F("div", {
|
|
981
|
-
className: E("pointer-events-none flex select-none flex-col gap-1", i === "submit" && "items-center"),
|
|
981
|
+
className: E("tg:pointer-events-none tg:flex tg:select-none tg:flex-col tg:gap-1", i === "submit" && "tg:items-center"),
|
|
982
982
|
children: [u, /* @__PURE__ */ P(d, {
|
|
983
983
|
node: o,
|
|
984
984
|
value: pn(i),
|
|
@@ -1008,23 +1008,23 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1008
1008
|
onClick: s,
|
|
1009
1009
|
children: /* @__PURE__ */ F(an, {
|
|
1010
1010
|
variant: "default",
|
|
1011
|
-
className: "nodrag nopan cursor-pointer px-1.5 py-0 text-[10px] capitalize [&>svg]:size-2.5",
|
|
1011
|
+
className: "nodrag nopan tg:cursor-pointer tg:px-1.5 tg:py-0 tg:text-[10px] tg:capitalize tg:[&>svg]:size-2.5",
|
|
1012
1012
|
children: [
|
|
1013
|
-
/* @__PURE__ */ P(d, { className: "mt-0.5" }),
|
|
1013
|
+
/* @__PURE__ */ P(d, { className: "tg:mt-0.5" }),
|
|
1014
1014
|
u || o("editor.selectNodeType.nodeType"),
|
|
1015
1015
|
/* @__PURE__ */ P(Ue, {})
|
|
1016
1016
|
]
|
|
1017
1017
|
})
|
|
1018
1018
|
}), /* @__PURE__ */ F(q, {
|
|
1019
1019
|
align: "start",
|
|
1020
|
-
className: "treege-scrollbar max-h-80",
|
|
1020
|
+
className: "treege-scrollbar tg:max-h-80",
|
|
1021
1021
|
onClick: s,
|
|
1022
1022
|
children: [
|
|
1023
1023
|
/* @__PURE__ */ F(J, { children: [/* @__PURE__ */ P(en, { children: o("editor.selectNodeType.options.input") }), hn.map((e) => {
|
|
1024
1024
|
let r = Z(e);
|
|
1025
1025
|
return /* @__PURE__ */ F(Y, {
|
|
1026
1026
|
onClick: () => p(l.input, e),
|
|
1027
|
-
className: E("capitalize", t === l.input && e === n && "bg-accent"),
|
|
1027
|
+
className: E("tg:capitalize", t === l.input && e === n && "tg:bg-accent"),
|
|
1028
1028
|
children: [/* @__PURE__ */ P(r, {}), e]
|
|
1029
1029
|
}, e);
|
|
1030
1030
|
})] }),
|
|
@@ -1033,14 +1033,14 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1033
1033
|
let r = Z(e);
|
|
1034
1034
|
return /* @__PURE__ */ F(Y, {
|
|
1035
1035
|
onClick: () => p(l.ui, e),
|
|
1036
|
-
className: E("capitalize", t === l.ui && e === n && "bg-accent"),
|
|
1036
|
+
className: E("tg:capitalize", t === l.ui && e === n && "tg:bg-accent"),
|
|
1037
1037
|
children: [/* @__PURE__ */ P(r, {}), e]
|
|
1038
1038
|
}, e);
|
|
1039
1039
|
})] }),
|
|
1040
1040
|
/* @__PURE__ */ P(tn, {}),
|
|
1041
1041
|
/* @__PURE__ */ F(J, { children: [/* @__PURE__ */ P(en, { children: o("common.other") }), /* @__PURE__ */ F(Y, {
|
|
1042
1042
|
onClick: () => p(l.flow),
|
|
1043
|
-
className: E(t === l.flow && "bg-accent"),
|
|
1043
|
+
className: E(t === l.flow && "tg:bg-accent"),
|
|
1044
1044
|
children: [/* @__PURE__ */ P(f, {}), o("editor.selectNodeType.options.flow")]
|
|
1045
1045
|
})] })
|
|
1046
1046
|
]
|
|
@@ -1070,11 +1070,11 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1070
1070
|
e.key === "Enter" && (e.preventDefault(), h());
|
|
1071
1071
|
}, v = (e) => e.stopPropagation();
|
|
1072
1072
|
return /* @__PURE__ */ F("div", {
|
|
1073
|
-
className: "nodrag nopan my-1 flex flex-col gap-0.5",
|
|
1073
|
+
className: "nodrag nopan tg:my-1 tg:flex tg:flex-col tg:gap-0.5",
|
|
1074
1074
|
children: [p.map((e, t) => {
|
|
1075
1075
|
let n = u(e.label) || e.value || "—", r = `${e.value || "opt"}-${t}`;
|
|
1076
1076
|
return /* @__PURE__ */ P("div", {
|
|
1077
|
-
className: "truncate text-muted-foreground text-xs",
|
|
1077
|
+
className: "tg:truncate tg:text-muted-foreground tg:text-xs",
|
|
1078
1078
|
children: n
|
|
1079
1079
|
}, r);
|
|
1080
1080
|
}), /* @__PURE__ */ F(ie, {
|
|
@@ -1087,22 +1087,22 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1087
1087
|
type: "button",
|
|
1088
1088
|
variant: "link",
|
|
1089
1089
|
size: "xs",
|
|
1090
|
-
className: "w-fit p-0! focus-visible:border-transparent! focus-visible:ring-0!",
|
|
1091
|
-
children: [/* @__PURE__ */ P(I, { className: "size-3" }), u("editor.inputNodeForm.addOption")]
|
|
1090
|
+
className: "tg:w-fit tg:p-0! tg:focus-visible:border-transparent! tg:focus-visible:ring-0!",
|
|
1091
|
+
children: [/* @__PURE__ */ P(I, { className: "tg:size-3" }), u("editor.inputNodeForm.addOption")]
|
|
1092
1092
|
})
|
|
1093
1093
|
}), /* @__PURE__ */ P(ae, {
|
|
1094
1094
|
align: "start",
|
|
1095
|
-
className: "w-64 p-3",
|
|
1095
|
+
className: "tg:w-64 tg:p-3",
|
|
1096
1096
|
onClick: v,
|
|
1097
1097
|
children: /* @__PURE__ */ F("form", {
|
|
1098
1098
|
onSubmit: h,
|
|
1099
|
-
className: "flex flex-col gap-2",
|
|
1099
|
+
className: "tg:flex tg:flex-col tg:gap-2",
|
|
1100
1100
|
children: [
|
|
1101
1101
|
/* @__PURE__ */ F("div", {
|
|
1102
|
-
className: "flex flex-col gap-1",
|
|
1102
|
+
className: "tg:flex tg:flex-col tg:gap-1",
|
|
1103
1103
|
children: [/* @__PURE__ */ P(d, {
|
|
1104
1104
|
htmlFor: `${e}-option-label`,
|
|
1105
|
-
className: "text-xs",
|
|
1105
|
+
className: "tg:text-xs",
|
|
1106
1106
|
children: u("editor.inputNodeForm.optionLabel")
|
|
1107
1107
|
}), /* @__PURE__ */ P(O, {
|
|
1108
1108
|
id: `${e}-option-label`,
|
|
@@ -1113,10 +1113,10 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1113
1113
|
})]
|
|
1114
1114
|
}),
|
|
1115
1115
|
/* @__PURE__ */ F("div", {
|
|
1116
|
-
className: "flex flex-col gap-1",
|
|
1116
|
+
className: "tg:flex tg:flex-col tg:gap-1",
|
|
1117
1117
|
children: [/* @__PURE__ */ P(d, {
|
|
1118
1118
|
htmlFor: `${e}-option-value`,
|
|
1119
|
-
className: "text-xs",
|
|
1119
|
+
className: "tg:text-xs",
|
|
1120
1120
|
children: u("editor.inputNodeForm.optionValue")
|
|
1121
1121
|
}), /* @__PURE__ */ P(O, {
|
|
1122
1122
|
id: `${e}-option-value`,
|
|
@@ -1141,7 +1141,7 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1141
1141
|
return /* @__PURE__ */ P(an, {
|
|
1142
1142
|
variant: t ? "destructive" : "outline",
|
|
1143
1143
|
asChild: !0,
|
|
1144
|
-
className: "nodrag nopan cursor-pointer px-1.5 py-0 text-[10px] capitalize [&>svg]:size-2.5",
|
|
1144
|
+
className: "nodrag nopan tg:cursor-pointer tg:px-1.5 tg:py-0 tg:text-[10px] tg:capitalize tg:[&>svg]:size-2.5",
|
|
1145
1145
|
children: /* @__PURE__ */ P("button", {
|
|
1146
1146
|
type: "button",
|
|
1147
1147
|
onClick: (r) => {
|
|
@@ -1151,7 +1151,7 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1151
1151
|
})
|
|
1152
1152
|
});
|
|
1153
1153
|
}, xn = ({ children: e, inGroup: t, isSubmit: n }) => /* @__PURE__ */ P("div", {
|
|
1154
|
-
className: E("react-flow__node__wrapper relative", t && "in-group", n && "submit-type"),
|
|
1154
|
+
className: E("react-flow__node__wrapper tg:relative", t && "in-group", n && "submit-type"),
|
|
1155
1155
|
children: e
|
|
1156
1156
|
}), Sn = Tt((e) => {
|
|
1157
1157
|
let { id: t, isConnectable: n, parentId: r, selected: i, type: a } = e, o = e.type === "input" ? e.data : void 0, s = e.type === "ui" ? e.data : void 0, c = o?.type ?? s?.type, l = o?.type === "submit", u = !i && !!o?.type;
|
|
@@ -1174,10 +1174,10 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1174
1174
|
nodeId: t,
|
|
1175
1175
|
label: e.data?.label,
|
|
1176
1176
|
placeholder: o?.name,
|
|
1177
|
-
className: E("py-1", a === "ui" && "capitalize")
|
|
1177
|
+
className: E("tg:py-1", a === "ui" && "tg:capitalize")
|
|
1178
1178
|
}),
|
|
1179
1179
|
/* @__PURE__ */ F("div", {
|
|
1180
|
-
className: "mb-1 flex gap-1",
|
|
1180
|
+
className: "tg:mb-1 tg:flex tg:gap-1",
|
|
1181
1181
|
children: [/* @__PURE__ */ P(_n, {
|
|
1182
1182
|
nodeId: t,
|
|
1183
1183
|
nodeType: a,
|
|
@@ -1262,27 +1262,27 @@ var on = Tt(({ data: e, id: t }) => /* @__PURE__ */ F(N, { children: [
|
|
|
1262
1262
|
children: [
|
|
1263
1263
|
/* @__PURE__ */ F(he, { children: [/* @__PURE__ */ P(p, { children: s("editor.changeNodeTypeDialog.title") }), /* @__PURE__ */ P(b, { children: s("editor.changeNodeTypeDialog.description") })] }),
|
|
1264
1264
|
/* @__PURE__ */ P(Gt, {
|
|
1265
|
-
className: "max-h-80",
|
|
1265
|
+
className: "tg:max-h-80",
|
|
1266
1266
|
children: /* @__PURE__ */ P(oe, {
|
|
1267
1267
|
value: l,
|
|
1268
1268
|
onValueChange: u,
|
|
1269
|
-
className: "gap-2 pr-2",
|
|
1269
|
+
className: "tg:gap-2 tg:pr-2",
|
|
1270
1270
|
children: c.map((e) => {
|
|
1271
1271
|
let t = e.data, n = y(t), r = g(e.target);
|
|
1272
1272
|
return /* @__PURE__ */ F(d, {
|
|
1273
1273
|
htmlFor: `keep-${e.id}`,
|
|
1274
|
-
className: "flex cursor-pointer items-start gap-3 rounded-lg border bg-muted/20 p-3",
|
|
1274
|
+
className: "tg:flex tg:cursor-pointer tg:items-start tg:gap-3 tg:rounded-lg tg:border tg:bg-muted/20 tg:p-3",
|
|
1275
1275
|
children: [/* @__PURE__ */ P(me, {
|
|
1276
1276
|
id: `keep-${e.id}`,
|
|
1277
1277
|
value: e.id,
|
|
1278
|
-
className: "mt-1"
|
|
1278
|
+
className: "tg:mt-1"
|
|
1279
1279
|
}), /* @__PURE__ */ F("div", {
|
|
1280
|
-
className: "flex flex-col gap-1",
|
|
1280
|
+
className: "tg:flex tg:flex-col tg:gap-1",
|
|
1281
1281
|
children: [/* @__PURE__ */ P("span", {
|
|
1282
|
-
className: "font-medium",
|
|
1282
|
+
className: "tg:font-medium",
|
|
1283
1283
|
children: r
|
|
1284
1284
|
}), /* @__PURE__ */ P("span", {
|
|
1285
|
-
className: "text-muted-foreground text-xs",
|
|
1285
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
1286
1286
|
children: n
|
|
1287
1287
|
})]
|
|
1288
1288
|
})]
|
|
@@ -1491,23 +1491,23 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1491
1491
|
size: "sm",
|
|
1492
1492
|
disabled: !e?.apiKey,
|
|
1493
1493
|
children: [
|
|
1494
|
-
/* @__PURE__ */ P(xt, { className: "h-4 w-4 text-[#13d3b4]" }),
|
|
1494
|
+
/* @__PURE__ */ P(xt, { className: "tg:h-4 tg:w-4 tg:text-[#13d3b4]" }),
|
|
1495
1495
|
" ",
|
|
1496
1496
|
c("editor.aiGenerator.buttonLabel")
|
|
1497
1497
|
]
|
|
1498
1498
|
})
|
|
1499
1499
|
}), /* @__PURE__ */ F(_, {
|
|
1500
|
-
className: "sm:max-w-[550px]!",
|
|
1500
|
+
className: "tg:sm:max-w-[550px]!",
|
|
1501
1501
|
children: [
|
|
1502
1502
|
/* @__PURE__ */ F(he, { children: [/* @__PURE__ */ P(p, { children: c("editor.aiGenerator.title") }), /* @__PURE__ */ P(b, { children: c("editor.aiGenerator.titleDescription") })] }),
|
|
1503
1503
|
/* @__PURE__ */ F("div", {
|
|
1504
|
-
className: "grid gap-4 py-4",
|
|
1504
|
+
className: "tg:grid tg:gap-4 tg:py-4",
|
|
1505
1505
|
children: [/* @__PURE__ */ F("div", {
|
|
1506
|
-
className: "grid gap-2",
|
|
1506
|
+
className: "tg:grid tg:gap-2",
|
|
1507
1507
|
children: [
|
|
1508
1508
|
/* @__PURE__ */ P("label", {
|
|
1509
1509
|
htmlFor: "ai-prompt",
|
|
1510
|
-
className: "font-medium text-sm",
|
|
1510
|
+
className: "tg:font-medium tg:text-sm",
|
|
1511
1511
|
children: c("editor.aiGenerator.description")
|
|
1512
1512
|
}),
|
|
1513
1513
|
/* @__PURE__ */ P(le, {
|
|
@@ -1519,25 +1519,25 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1519
1519
|
},
|
|
1520
1520
|
rows: 6,
|
|
1521
1521
|
disabled: o,
|
|
1522
|
-
className: "resize-none"
|
|
1522
|
+
className: "tg:resize-none"
|
|
1523
1523
|
}),
|
|
1524
1524
|
/* @__PURE__ */ P("p", {
|
|
1525
|
-
className: "text-muted-foreground text-xs",
|
|
1525
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
1526
1526
|
children: c("editor.aiGenerator.keyboardShortcut").replace("{cmdEnter}", "⌘ Enter").replace("{ctrlEnter}", "Ctrl Enter")
|
|
1527
1527
|
})
|
|
1528
1528
|
]
|
|
1529
1529
|
}), !e?.apiKey && /* @__PURE__ */ F("div", {
|
|
1530
|
-
className: "rounded-md bg-muted p-3 text-sm",
|
|
1530
|
+
className: "tg:rounded-md tg:bg-muted tg:p-3 tg:text-sm",
|
|
1531
1531
|
children: [/* @__PURE__ */ P("p", {
|
|
1532
|
-
className: "font-medium",
|
|
1532
|
+
className: "tg:font-medium",
|
|
1533
1533
|
children: c("editor.aiGenerator.aiNotConfigured")
|
|
1534
1534
|
}), /* @__PURE__ */ F("p", {
|
|
1535
|
-
className: "mt-1 text-muted-foreground text-xs",
|
|
1535
|
+
className: "tg:mt-1 tg:text-muted-foreground tg:text-xs",
|
|
1536
1536
|
children: [
|
|
1537
1537
|
c("editor.aiGenerator.aiNotConfiguredDesc").replace("{code}", ""),
|
|
1538
1538
|
" ",
|
|
1539
1539
|
/* @__PURE__ */ P("code", {
|
|
1540
|
-
className: "rounded bg-background px-1 py-0.5",
|
|
1540
|
+
className: "tg:rounded tg:bg-background tg:px-1 tg:py-0.5",
|
|
1541
1541
|
children: "aiConfig"
|
|
1542
1542
|
})
|
|
1543
1543
|
]
|
|
@@ -1552,7 +1552,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1552
1552
|
}), /* @__PURE__ */ P(k, {
|
|
1553
1553
|
onClick: l,
|
|
1554
1554
|
disabled: o || !i.trim() || !e?.apiKey,
|
|
1555
|
-
children: o ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(at, { className: "h-4 w-4 animate-spin" }), c("editor.aiGenerator.generating")] }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(xt, { className: "h-4 w-4 text-[--treege-color-primary]" }), c("editor.aiGenerator.generate")] })
|
|
1555
|
+
children: o ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(at, { className: "tg:h-4 tg:w-4 tg:animate-spin" }), c("editor.aiGenerator.generating")] }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(xt, { className: "tg:h-4 tg:w-4 tg:text-[--treege-color-primary]" }), c("editor.aiGenerator.generate")] })
|
|
1556
1556
|
})] })
|
|
1557
1557
|
]
|
|
1558
1558
|
})]
|
|
@@ -1612,7 +1612,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1612
1612
|
};
|
|
1613
1613
|
}, [_]), /* @__PURE__ */ F(we, {
|
|
1614
1614
|
position: "top-right",
|
|
1615
|
-
className: "flex gap-2",
|
|
1615
|
+
className: "tg:flex tg:gap-2",
|
|
1616
1616
|
children: [
|
|
1617
1617
|
/* @__PURE__ */ P(Ln, {
|
|
1618
1618
|
aiConfig: i,
|
|
@@ -1651,11 +1651,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1651
1651
|
align: "start",
|
|
1652
1652
|
children: [
|
|
1653
1653
|
/* @__PURE__ */ P(en, {
|
|
1654
|
-
className: "font-normal",
|
|
1654
|
+
className: "tg:font-normal",
|
|
1655
1655
|
children: /* @__PURE__ */ F("div", {
|
|
1656
|
-
className: "flex flex-col gap-1",
|
|
1656
|
+
className: "tg:flex tg:flex-col tg:gap-1",
|
|
1657
1657
|
children: [/* @__PURE__ */ P("span", {
|
|
1658
|
-
className: "text-muted-foreground text-xs",
|
|
1658
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
1659
1659
|
children: "Flow ID"
|
|
1660
1660
|
}), /* @__PURE__ */ F("button", {
|
|
1661
1661
|
onClick: async () => {
|
|
@@ -1665,10 +1665,10 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1665
1665
|
V.error(p("editor.actionsPanel.copyFailed"));
|
|
1666
1666
|
}
|
|
1667
1667
|
},
|
|
1668
|
-
className: "flex items-center gap-2 font-mono text-muted-foreground transition-colors hover:text-primary",
|
|
1668
|
+
className: "tg:flex tg:items-center tg:gap-2 tg:font-mono tg:text-muted-foreground tg:transition-colors tg:hover:text-primary",
|
|
1669
1669
|
type: "button",
|
|
1670
|
-
children: [/* @__PURE__ */ P(Ye, { className: "h-3 w-3" }), /* @__PURE__ */ P("span", {
|
|
1671
|
-
className: "truncate text-xs",
|
|
1670
|
+
children: [/* @__PURE__ */ P(Ye, { className: "tg:h-3 tg:w-3" }), /* @__PURE__ */ P("span", {
|
|
1671
|
+
className: "tg:truncate tg:text-xs",
|
|
1672
1672
|
children: l
|
|
1673
1673
|
})]
|
|
1674
1674
|
})]
|
|
@@ -1695,9 +1695,9 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1695
1695
|
onClick: () => {
|
|
1696
1696
|
a([]), o([]), V.success(p("editor.actionsPanel.clearSuccess"), { description: p("editor.actionsPanel.clearSuccessDesc") });
|
|
1697
1697
|
},
|
|
1698
|
-
className: "text-destructive focus:text-destructive",
|
|
1698
|
+
className: "tg:text-destructive tg:focus:text-destructive",
|
|
1699
1699
|
children: [
|
|
1700
|
-
/* @__PURE__ */ P(vt, { className: "text-destructive" }),
|
|
1700
|
+
/* @__PURE__ */ P(vt, { className: "tg:text-destructive" }),
|
|
1701
1701
|
" ",
|
|
1702
1702
|
p("editor.actionsPanel.clear")
|
|
1703
1703
|
]
|
|
@@ -1707,7 +1707,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1707
1707
|
/* @__PURE__ */ P("input", {
|
|
1708
1708
|
type: "file",
|
|
1709
1709
|
accept: "application/json,.json",
|
|
1710
|
-
className: "hidden",
|
|
1710
|
+
className: "tg:hidden",
|
|
1711
1711
|
ref: f,
|
|
1712
1712
|
onChange: h
|
|
1713
1713
|
})
|
|
@@ -1725,11 +1725,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1725
1725
|
value: e,
|
|
1726
1726
|
onValueChange: t,
|
|
1727
1727
|
children: [/* @__PURE__ */ P(v, {
|
|
1728
|
-
className: "uppercase",
|
|
1728
|
+
className: "tg:uppercase",
|
|
1729
1729
|
children: /* @__PURE__ */ P(T, { placeholder: "" })
|
|
1730
1730
|
}), /* @__PURE__ */ P(C, { children: /* @__PURE__ */ P(w, { children: Object.values(Bn).map((e) => /* @__PURE__ */ P(h, {
|
|
1731
1731
|
value: e,
|
|
1732
|
-
className: "uppercase",
|
|
1732
|
+
className: "tg:uppercase",
|
|
1733
1733
|
children: e
|
|
1734
1734
|
}, e)) }) })]
|
|
1735
1735
|
}), $ = () => {
|
|
@@ -1762,13 +1762,13 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1762
1762
|
e.preventDefault(), e.stopPropagation();
|
|
1763
1763
|
},
|
|
1764
1764
|
children: /* @__PURE__ */ F("div", {
|
|
1765
|
-
className: "grid gap-6",
|
|
1765
|
+
className: "tg:grid tg:gap-6",
|
|
1766
1766
|
children: [/* @__PURE__ */ F("div", {
|
|
1767
|
-
className: "flex items-end gap-2",
|
|
1767
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
1768
1768
|
children: [/* @__PURE__ */ P(a, {
|
|
1769
1769
|
name: "label",
|
|
1770
1770
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
1771
|
-
className: "flex-1",
|
|
1771
|
+
className: "tg:flex-1",
|
|
1772
1772
|
children: [/* @__PURE__ */ P(d, {
|
|
1773
1773
|
htmlFor: t.name,
|
|
1774
1774
|
children: i("editor.flowNodeForm.label")
|
|
@@ -1826,11 +1826,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1826
1826
|
e.preventDefault(), e.stopPropagation();
|
|
1827
1827
|
},
|
|
1828
1828
|
children: /* @__PURE__ */ F("div", {
|
|
1829
|
-
className: "flex items-end gap-2",
|
|
1829
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
1830
1830
|
children: [/* @__PURE__ */ P(i, {
|
|
1831
1831
|
name: "label",
|
|
1832
1832
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
1833
|
-
className: "flex-1",
|
|
1833
|
+
className: "tg:flex-1",
|
|
1834
1834
|
children: [/* @__PURE__ */ P(d, {
|
|
1835
1835
|
htmlFor: t.name,
|
|
1836
1836
|
children: "Label"
|
|
@@ -1885,7 +1885,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
});
|
|
1887
1887
|
return /* @__PURE__ */ P("div", { children: /* @__PURE__ */ F("div", {
|
|
1888
|
-
className: "grid gap-6",
|
|
1888
|
+
className: "tg:grid tg:gap-6",
|
|
1889
1889
|
children: [
|
|
1890
1890
|
/* @__PURE__ */ P(o, {
|
|
1891
1891
|
name: "url",
|
|
@@ -1895,7 +1895,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1895
1895
|
children: r("editor.httpConfigForm.apiUrl")
|
|
1896
1896
|
}),
|
|
1897
1897
|
/* @__PURE__ */ F("div", {
|
|
1898
|
-
className: "flex gap-2",
|
|
1898
|
+
className: "tg:flex tg:gap-2",
|
|
1899
1899
|
children: [/* @__PURE__ */ P(O, {
|
|
1900
1900
|
id: e.name,
|
|
1901
1901
|
name: e.name,
|
|
@@ -1903,14 +1903,14 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1903
1903
|
onBlur: e.handleBlur,
|
|
1904
1904
|
onChange: ({ target: t }) => e.handleChange(t.value),
|
|
1905
1905
|
placeholder: r("editor.httpConfigForm.apiUrlPlaceholder"),
|
|
1906
|
-
className: "flex-1"
|
|
1906
|
+
className: "tg:flex-1"
|
|
1907
1907
|
}), /* @__PURE__ */ F(G, { children: [/* @__PURE__ */ P(K, {
|
|
1908
1908
|
asChild: !0,
|
|
1909
1909
|
children: /* @__PURE__ */ P(k, {
|
|
1910
1910
|
type: "button",
|
|
1911
1911
|
variant: "outline",
|
|
1912
1912
|
size: "icon",
|
|
1913
|
-
children: /* @__PURE__ */ P(bt, { className: "h-4 w-4" })
|
|
1913
|
+
children: /* @__PURE__ */ P(bt, { className: "tg:h-4 tg:w-4" })
|
|
1914
1914
|
})
|
|
1915
1915
|
}), /* @__PURE__ */ P(q, {
|
|
1916
1916
|
align: "end",
|
|
@@ -1923,12 +1923,12 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1923
1923
|
e.handleChange(r + n);
|
|
1924
1924
|
},
|
|
1925
1925
|
children: /* @__PURE__ */ F("div", {
|
|
1926
|
-
className: "flex flex-col",
|
|
1926
|
+
className: "tg:flex tg:flex-col",
|
|
1927
1927
|
children: [/* @__PURE__ */ P("span", {
|
|
1928
|
-
className: "font-medium",
|
|
1928
|
+
className: "tg:font-medium",
|
|
1929
1929
|
children: t.label
|
|
1930
1930
|
}), /* @__PURE__ */ P("span", {
|
|
1931
|
-
className: "text-muted-foreground text-xs",
|
|
1931
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
1932
1932
|
children: `{{${t.nodeId}}}`
|
|
1933
1933
|
})]
|
|
1934
1934
|
})
|
|
@@ -1974,19 +1974,19 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
1974
1974
|
})] })
|
|
1975
1975
|
}),
|
|
1976
1976
|
/* @__PURE__ */ F("div", {
|
|
1977
|
-
className: "space-y-4",
|
|
1977
|
+
className: "tg:space-y-4",
|
|
1978
1978
|
children: [/* @__PURE__ */ P("h4", {
|
|
1979
|
-
className: "font-semibold text-sm",
|
|
1979
|
+
className: "tg:font-semibold tg:text-sm",
|
|
1980
1980
|
children: r("editor.httpConfigForm.headers")
|
|
1981
1981
|
}), /* @__PURE__ */ P(o, {
|
|
1982
1982
|
name: "headers",
|
|
1983
1983
|
mode: "array",
|
|
1984
1984
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
1985
|
-
className: "space-y-2",
|
|
1985
|
+
className: "tg:space-y-2",
|
|
1986
1986
|
children: [e.state.value?.map((t, n) => {
|
|
1987
1987
|
let i = `headers[${n}]`;
|
|
1988
1988
|
return /* @__PURE__ */ F("div", {
|
|
1989
|
-
className: "flex items-start gap-2",
|
|
1989
|
+
className: "tg:flex tg:items-start tg:gap-2",
|
|
1990
1990
|
children: [
|
|
1991
1991
|
/* @__PURE__ */ P(o, {
|
|
1992
1992
|
name: `headers[${n}].key`,
|
|
@@ -2011,7 +2011,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2011
2011
|
onClick: () => {
|
|
2012
2012
|
e.removeValue(n);
|
|
2013
2013
|
},
|
|
2014
|
-
children: /* @__PURE__ */ P(L, { className: "h-4 w-4" })
|
|
2014
|
+
children: /* @__PURE__ */ P(L, { className: "tg:h-4 tg:w-4" })
|
|
2015
2015
|
})
|
|
2016
2016
|
]
|
|
2017
2017
|
}, i);
|
|
@@ -2025,7 +2025,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2025
2025
|
value: ""
|
|
2026
2026
|
});
|
|
2027
2027
|
},
|
|
2028
|
-
children: [/* @__PURE__ */ P(I, { className: "mr-2 h-4 w-4" }), r("editor.httpConfigForm.addHeader")]
|
|
2028
|
+
children: [/* @__PURE__ */ P(I, { className: "tg:mr-2 tg:h-4 tg:w-4" }), r("editor.httpConfigForm.addHeader")]
|
|
2029
2029
|
})]
|
|
2030
2030
|
})
|
|
2031
2031
|
})]
|
|
@@ -2036,11 +2036,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2036
2036
|
sendAllFormValues: e.values.sendAllFormValues
|
|
2037
2037
|
}),
|
|
2038
2038
|
children: ({ method: e, sendAllFormValues: t }) => Un.includes(e || "") && /* @__PURE__ */ F("div", {
|
|
2039
|
-
className: "space-y-4",
|
|
2039
|
+
className: "tg:space-y-4",
|
|
2040
2040
|
children: [/* @__PURE__ */ P(o, {
|
|
2041
2041
|
name: "sendAllFormValues",
|
|
2042
2042
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
2043
|
-
className: "flex items-center space-x-2",
|
|
2043
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
2044
2044
|
children: [/* @__PURE__ */ P(D, {
|
|
2045
2045
|
id: e.name,
|
|
2046
2046
|
checked: e.state.value,
|
|
@@ -2054,7 +2054,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2054
2054
|
name: "body",
|
|
2055
2055
|
children: (e) => /* @__PURE__ */ F(A, { children: [
|
|
2056
2056
|
/* @__PURE__ */ F("div", {
|
|
2057
|
-
className: "mb-2 flex items-center justify-between",
|
|
2057
|
+
className: "tg:mb-2 tg:flex tg:items-center tg:justify-between",
|
|
2058
2058
|
children: [/* @__PURE__ */ P(d, {
|
|
2059
2059
|
htmlFor: e.name,
|
|
2060
2060
|
children: r("editor.httpConfigForm.requestBody")
|
|
@@ -2065,7 +2065,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2065
2065
|
variant: "ghost",
|
|
2066
2066
|
size: "sm",
|
|
2067
2067
|
disabled: t,
|
|
2068
|
-
children: [/* @__PURE__ */ P(bt, { className: "mr-2 h-4 w-4" }), r("editor.httpConfigForm.insertVariable")]
|
|
2068
|
+
children: [/* @__PURE__ */ P(bt, { className: "tg:mr-2 tg:h-4 tg:w-4" }), r("editor.httpConfigForm.insertVariable")]
|
|
2069
2069
|
})
|
|
2070
2070
|
}), /* @__PURE__ */ P(q, {
|
|
2071
2071
|
align: "end",
|
|
@@ -2078,12 +2078,12 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2078
2078
|
e.handleChange(r + n), a().then();
|
|
2079
2079
|
},
|
|
2080
2080
|
children: /* @__PURE__ */ F("div", {
|
|
2081
|
-
className: "flex flex-col",
|
|
2081
|
+
className: "tg:flex tg:flex-col",
|
|
2082
2082
|
children: [/* @__PURE__ */ P("span", {
|
|
2083
|
-
className: "font-medium",
|
|
2083
|
+
className: "tg:font-medium",
|
|
2084
2084
|
children: t.label
|
|
2085
2085
|
}), /* @__PURE__ */ P("span", {
|
|
2086
|
-
className: "text-muted-foreground text-xs",
|
|
2086
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
2087
2087
|
children: `{{${t.nodeId}}}`
|
|
2088
2088
|
})]
|
|
2089
2089
|
})
|
|
@@ -2106,10 +2106,10 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2106
2106
|
})
|
|
2107
2107
|
}),
|
|
2108
2108
|
/* @__PURE__ */ F("div", {
|
|
2109
|
-
className: "space-y-4",
|
|
2109
|
+
className: "tg:space-y-4",
|
|
2110
2110
|
children: [
|
|
2111
2111
|
/* @__PURE__ */ P("h4", {
|
|
2112
|
-
className: "font-semibold text-sm",
|
|
2112
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2113
2113
|
children: r("editor.httpConfigForm.responseConfiguration")
|
|
2114
2114
|
}),
|
|
2115
2115
|
/* @__PURE__ */ P(o, {
|
|
@@ -2131,10 +2131,10 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2131
2131
|
] })
|
|
2132
2132
|
}),
|
|
2133
2133
|
/* @__PURE__ */ F("div", {
|
|
2134
|
-
className: "space-y-4",
|
|
2134
|
+
className: "tg:space-y-4",
|
|
2135
2135
|
children: [
|
|
2136
2136
|
/* @__PURE__ */ P("h5", {
|
|
2137
|
-
className: "font-medium text-sm",
|
|
2137
|
+
className: "tg:font-medium tg:text-sm",
|
|
2138
2138
|
children: r("editor.httpConfigForm.mapToOptions")
|
|
2139
2139
|
}),
|
|
2140
2140
|
/* @__PURE__ */ P(o, {
|
|
@@ -2196,10 +2196,10 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2196
2196
|
]
|
|
2197
2197
|
}),
|
|
2198
2198
|
/* @__PURE__ */ F("div", {
|
|
2199
|
-
className: "space-y-4",
|
|
2199
|
+
className: "tg:space-y-4",
|
|
2200
2200
|
children: [
|
|
2201
2201
|
/* @__PURE__ */ P("h4", {
|
|
2202
|
-
className: "font-semibold text-sm",
|
|
2202
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2203
2203
|
children: r("editor.httpConfigForm.behavior")
|
|
2204
2204
|
}),
|
|
2205
2205
|
/* @__PURE__ */ P(s, {
|
|
@@ -2209,7 +2209,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2209
2209
|
children: (t) => {
|
|
2210
2210
|
let n = !!e?.trim(), i = n ? t.state.value : !0;
|
|
2211
2211
|
return !n && t.state.value !== !0 && t.handleChange(!0), /* @__PURE__ */ F("div", {
|
|
2212
|
-
className: "flex items-center space-x-2",
|
|
2212
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
2213
2213
|
children: [/* @__PURE__ */ P(D, {
|
|
2214
2214
|
id: t.name,
|
|
2215
2215
|
checked: i,
|
|
@@ -2217,7 +2217,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2217
2217
|
onCheckedChange: (e) => t.handleChange(e)
|
|
2218
2218
|
}), /* @__PURE__ */ P(d, {
|
|
2219
2219
|
htmlFor: t.name,
|
|
2220
|
-
className: n ? "" : "text-muted-foreground",
|
|
2220
|
+
className: n ? "" : "tg:text-muted-foreground",
|
|
2221
2221
|
children: r("editor.httpConfigForm.fetchOnMount")
|
|
2222
2222
|
})]
|
|
2223
2223
|
});
|
|
@@ -2227,7 +2227,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2227
2227
|
/* @__PURE__ */ P(o, {
|
|
2228
2228
|
name: "showLoading",
|
|
2229
2229
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
2230
|
-
className: "flex items-center space-x-2",
|
|
2230
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
2231
2231
|
children: [/* @__PURE__ */ P(D, {
|
|
2232
2232
|
id: e.name,
|
|
2233
2233
|
checked: e.state.value,
|
|
@@ -2270,7 +2270,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2270
2270
|
}
|
|
2271
2271
|
});
|
|
2272
2272
|
return /* @__PURE__ */ P("div", { children: /* @__PURE__ */ F("div", {
|
|
2273
|
-
className: "grid gap-6",
|
|
2273
|
+
className: "tg:grid tg:gap-6",
|
|
2274
2274
|
children: [
|
|
2275
2275
|
/* @__PURE__ */ P(c, {
|
|
2276
2276
|
name: "url",
|
|
@@ -2280,7 +2280,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2280
2280
|
children: a("editor.submitConfigForm.apiUrl")
|
|
2281
2281
|
}),
|
|
2282
2282
|
/* @__PURE__ */ F("div", {
|
|
2283
|
-
className: "flex gap-2",
|
|
2283
|
+
className: "tg:flex tg:gap-2",
|
|
2284
2284
|
children: [/* @__PURE__ */ P(O, {
|
|
2285
2285
|
id: e.name,
|
|
2286
2286
|
name: e.name,
|
|
@@ -2288,14 +2288,14 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2288
2288
|
onBlur: e.handleBlur,
|
|
2289
2289
|
onChange: ({ target: t }) => e.handleChange(t.value),
|
|
2290
2290
|
placeholder: a("editor.submitConfigForm.apiUrlPlaceholder"),
|
|
2291
|
-
className: "flex-1"
|
|
2291
|
+
className: "tg:flex-1"
|
|
2292
2292
|
}), /* @__PURE__ */ F(G, { children: [/* @__PURE__ */ P(K, {
|
|
2293
2293
|
asChild: !0,
|
|
2294
2294
|
children: /* @__PURE__ */ P(k, {
|
|
2295
2295
|
type: "button",
|
|
2296
2296
|
variant: "outline",
|
|
2297
2297
|
size: "icon",
|
|
2298
|
-
children: /* @__PURE__ */ P(bt, { className: "h-4 w-4" })
|
|
2298
|
+
children: /* @__PURE__ */ P(bt, { className: "tg:h-4 tg:w-4" })
|
|
2299
2299
|
})
|
|
2300
2300
|
}), /* @__PURE__ */ P(q, {
|
|
2301
2301
|
align: "end",
|
|
@@ -2308,12 +2308,12 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2308
2308
|
e.handleChange(r + n);
|
|
2309
2309
|
},
|
|
2310
2310
|
children: /* @__PURE__ */ F("div", {
|
|
2311
|
-
className: "flex flex-col",
|
|
2311
|
+
className: "tg:flex tg:flex-col",
|
|
2312
2312
|
children: [/* @__PURE__ */ P("span", {
|
|
2313
|
-
className: "font-medium",
|
|
2313
|
+
className: "tg:font-medium",
|
|
2314
2314
|
children: t.label
|
|
2315
2315
|
}), /* @__PURE__ */ P("span", {
|
|
2316
|
-
className: "text-muted-foreground text-xs",
|
|
2316
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
2317
2317
|
children: `{{${t.nodeId}}}`
|
|
2318
2318
|
})]
|
|
2319
2319
|
})
|
|
@@ -2355,19 +2355,19 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2355
2355
|
})] })
|
|
2356
2356
|
}),
|
|
2357
2357
|
/* @__PURE__ */ F("div", {
|
|
2358
|
-
className: "space-y-4",
|
|
2358
|
+
className: "tg:space-y-4",
|
|
2359
2359
|
children: [/* @__PURE__ */ P("h4", {
|
|
2360
|
-
className: "font-semibold text-sm",
|
|
2360
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2361
2361
|
children: a("editor.submitConfigForm.headers")
|
|
2362
2362
|
}), /* @__PURE__ */ P(c, {
|
|
2363
2363
|
name: "headers",
|
|
2364
2364
|
mode: "array",
|
|
2365
2365
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
2366
|
-
className: "space-y-2",
|
|
2366
|
+
className: "tg:space-y-2",
|
|
2367
2367
|
children: [e.state.value?.map((t, n) => {
|
|
2368
2368
|
let r = `headers[${n}]`;
|
|
2369
2369
|
return /* @__PURE__ */ F("div", {
|
|
2370
|
-
className: "flex items-start gap-2",
|
|
2370
|
+
className: "tg:flex tg:items-start tg:gap-2",
|
|
2371
2371
|
children: [
|
|
2372
2372
|
/* @__PURE__ */ P(c, {
|
|
2373
2373
|
name: `headers[${n}].key`,
|
|
@@ -2392,7 +2392,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2392
2392
|
onClick: () => {
|
|
2393
2393
|
e.removeValue(n);
|
|
2394
2394
|
},
|
|
2395
|
-
children: /* @__PURE__ */ P(L, { className: "h-4 w-4" })
|
|
2395
|
+
children: /* @__PURE__ */ P(L, { className: "tg:h-4 tg:w-4" })
|
|
2396
2396
|
})
|
|
2397
2397
|
]
|
|
2398
2398
|
}, r);
|
|
@@ -2406,7 +2406,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2406
2406
|
value: ""
|
|
2407
2407
|
});
|
|
2408
2408
|
},
|
|
2409
|
-
children: [/* @__PURE__ */ P(I, { className: "mr-2 h-4 w-4" }), a("editor.submitConfigForm.addHeader")]
|
|
2409
|
+
children: [/* @__PURE__ */ P(I, { className: "tg:mr-2 tg:h-4 tg:w-4" }), a("editor.submitConfigForm.addHeader")]
|
|
2410
2410
|
})]
|
|
2411
2411
|
})
|
|
2412
2412
|
})]
|
|
@@ -2417,11 +2417,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2417
2417
|
sendAllFormValues: e.values.sendAllFormValues
|
|
2418
2418
|
}),
|
|
2419
2419
|
children: ({ method: e, sendAllFormValues: t }) => Gn.includes(e || "") && /* @__PURE__ */ F("div", {
|
|
2420
|
-
className: "space-y-4",
|
|
2420
|
+
className: "tg:space-y-4",
|
|
2421
2421
|
children: [/* @__PURE__ */ P(c, {
|
|
2422
2422
|
name: "sendAllFormValues",
|
|
2423
2423
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
2424
|
-
className: "flex items-center space-x-2",
|
|
2424
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
2425
2425
|
children: [/* @__PURE__ */ P(D, {
|
|
2426
2426
|
id: e.name,
|
|
2427
2427
|
checked: e.state.value,
|
|
@@ -2435,7 +2435,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2435
2435
|
name: "body",
|
|
2436
2436
|
children: (e) => /* @__PURE__ */ F(A, { children: [
|
|
2437
2437
|
/* @__PURE__ */ F("div", {
|
|
2438
|
-
className: "mb-2 flex items-center justify-between",
|
|
2438
|
+
className: "tg:mb-2 tg:flex tg:items-center tg:justify-between",
|
|
2439
2439
|
children: [/* @__PURE__ */ P(d, {
|
|
2440
2440
|
htmlFor: e.name,
|
|
2441
2441
|
children: a("editor.submitConfigForm.requestBody")
|
|
@@ -2446,7 +2446,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2446
2446
|
variant: "ghost",
|
|
2447
2447
|
size: "sm",
|
|
2448
2448
|
disabled: t,
|
|
2449
|
-
children: [/* @__PURE__ */ P(bt, { className: "mr-2 h-4 w-4" }), a("editor.submitConfigForm.insertVariable")]
|
|
2449
|
+
children: [/* @__PURE__ */ P(bt, { className: "tg:mr-2 tg:h-4 tg:w-4" }), a("editor.submitConfigForm.insertVariable")]
|
|
2450
2450
|
})
|
|
2451
2451
|
}), /* @__PURE__ */ P(q, {
|
|
2452
2452
|
align: "end",
|
|
@@ -2459,12 +2459,12 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2459
2459
|
e.handleChange(r + n), s().then();
|
|
2460
2460
|
},
|
|
2461
2461
|
children: /* @__PURE__ */ F("div", {
|
|
2462
|
-
className: "flex flex-col",
|
|
2462
|
+
className: "tg:flex tg:flex-col",
|
|
2463
2463
|
children: [/* @__PURE__ */ P("span", {
|
|
2464
|
-
className: "font-medium",
|
|
2464
|
+
className: "tg:font-medium",
|
|
2465
2465
|
children: t.label
|
|
2466
2466
|
}), /* @__PURE__ */ P("span", {
|
|
2467
|
-
className: "text-muted-foreground text-xs",
|
|
2467
|
+
className: "tg:text-muted-foreground tg:text-xs",
|
|
2468
2468
|
children: `{{${t.nodeId}}}`
|
|
2469
2469
|
})]
|
|
2470
2470
|
})
|
|
@@ -2487,10 +2487,10 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2487
2487
|
})
|
|
2488
2488
|
}),
|
|
2489
2489
|
/* @__PURE__ */ F("div", {
|
|
2490
|
-
className: "space-y-4",
|
|
2490
|
+
className: "tg:space-y-4",
|
|
2491
2491
|
children: [
|
|
2492
2492
|
/* @__PURE__ */ P("h4", {
|
|
2493
|
-
className: "font-semibold text-sm",
|
|
2493
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2494
2494
|
children: a("editor.submitConfigForm.postSubmission")
|
|
2495
2495
|
}),
|
|
2496
2496
|
/* @__PURE__ */ P(c, {
|
|
@@ -2512,11 +2512,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2512
2512
|
] })
|
|
2513
2513
|
}),
|
|
2514
2514
|
/* @__PURE__ */ F("div", {
|
|
2515
|
-
className: "flex items-center gap-2",
|
|
2515
|
+
className: "tg:flex tg:items-center tg:gap-2",
|
|
2516
2516
|
children: [/* @__PURE__ */ P(c, {
|
|
2517
2517
|
name: "successMessage",
|
|
2518
2518
|
children: (e) => /* @__PURE__ */ F(A, {
|
|
2519
|
-
className: "flex-1",
|
|
2519
|
+
className: "tg:flex-1",
|
|
2520
2520
|
children: [
|
|
2521
2521
|
/* @__PURE__ */ P(d, {
|
|
2522
2522
|
htmlFor: e.name,
|
|
@@ -2544,11 +2544,11 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2544
2544
|
})]
|
|
2545
2545
|
}),
|
|
2546
2546
|
/* @__PURE__ */ F("div", {
|
|
2547
|
-
className: "flex items-center gap-2",
|
|
2547
|
+
className: "tg:flex tg:items-center tg:gap-2",
|
|
2548
2548
|
children: [/* @__PURE__ */ P(c, {
|
|
2549
2549
|
name: "errorMessage",
|
|
2550
2550
|
children: (e) => /* @__PURE__ */ F(A, {
|
|
2551
|
-
className: "flex-1",
|
|
2551
|
+
className: "tg:flex-1",
|
|
2552
2552
|
children: [
|
|
2553
2553
|
/* @__PURE__ */ P(d, {
|
|
2554
2554
|
htmlFor: e.name,
|
|
@@ -2578,14 +2578,14 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2578
2578
|
]
|
|
2579
2579
|
}),
|
|
2580
2580
|
/* @__PURE__ */ F("div", {
|
|
2581
|
-
className: "space-y-4",
|
|
2581
|
+
className: "tg:space-y-4",
|
|
2582
2582
|
children: [/* @__PURE__ */ P("h4", {
|
|
2583
|
-
className: "font-semibold text-sm",
|
|
2583
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2584
2584
|
children: a("editor.submitConfigForm.behavior")
|
|
2585
2585
|
}), /* @__PURE__ */ P(c, {
|
|
2586
2586
|
name: "showLoading",
|
|
2587
2587
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
2588
|
-
className: "flex items-center space-x-2",
|
|
2588
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
2589
2589
|
children: [/* @__PURE__ */ P(D, {
|
|
2590
2590
|
id: e.name,
|
|
2591
2591
|
checked: e.state.value,
|
|
@@ -2614,14 +2614,14 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2614
2614
|
variant: "outline",
|
|
2615
2615
|
role: "combobox",
|
|
2616
2616
|
"aria-expanded": p,
|
|
2617
|
-
className: E("w-full justify-between font-normal", l),
|
|
2617
|
+
className: E("tg:w-full tg:justify-between tg:font-normal", l),
|
|
2618
2618
|
children: [/* @__PURE__ */ P("span", {
|
|
2619
|
-
className: "truncate",
|
|
2619
|
+
className: "tg:truncate",
|
|
2620
2620
|
children: b && S ? S.label : i
|
|
2621
|
-
}), /* @__PURE__ */ P(We, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
2621
|
+
}), /* @__PURE__ */ P(We, { className: "tg:ml-2 tg:h-4 tg:w-4 tg:shrink-0 tg:opacity-50" })]
|
|
2622
2622
|
})
|
|
2623
2623
|
}), /* @__PURE__ */ P(ae, {
|
|
2624
|
-
className: "w-full p-0",
|
|
2624
|
+
className: "tg:w-full tg:p-0",
|
|
2625
2625
|
align: "start",
|
|
2626
2626
|
children: /* @__PURE__ */ F(ce, {
|
|
2627
2627
|
shouldFilter: !1,
|
|
@@ -2636,16 +2636,16 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2636
2636
|
onSelect: () => {
|
|
2637
2637
|
r?.(""), m(!1), g("");
|
|
2638
2638
|
},
|
|
2639
|
-
className: "mt-1 text-muted-foreground",
|
|
2640
|
-
children: [/* @__PURE__ */ P(L, { className: "mr-2 h-4 w-4" }), s]
|
|
2639
|
+
className: "tg:mt-1 tg:text-muted-foreground",
|
|
2640
|
+
children: [/* @__PURE__ */ P(L, { className: "tg:mr-2 tg:h-4 tg:w-4" }), s]
|
|
2641
2641
|
}) }),
|
|
2642
2642
|
/* @__PURE__ */ F(se, { children: [re && /* @__PURE__ */ F(te, {
|
|
2643
2643
|
value: `__create__${h}`,
|
|
2644
2644
|
onSelect: () => {
|
|
2645
2645
|
h.trim() && (r?.(h.trim()), m(!1), g(""));
|
|
2646
2646
|
},
|
|
2647
|
-
className: "text-primary",
|
|
2648
|
-
children: [/* @__PURE__ */ P(I, { className: "mr-2 h-4 w-4" }), o(h)]
|
|
2647
|
+
className: "tg:text-primary",
|
|
2648
|
+
children: [/* @__PURE__ */ P(I, { className: "tg:mr-2 tg:h-4 tg:w-4" }), o(h)]
|
|
2649
2649
|
}), e.filter((e) => {
|
|
2650
2650
|
let t = h.toLowerCase();
|
|
2651
2651
|
return e.label.toLowerCase().includes(t) || (e.value?.toLowerCase() ?? "").includes(t);
|
|
@@ -2654,7 +2654,7 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2654
2654
|
onSelect: () => w(e?.value || ""),
|
|
2655
2655
|
children: [/* @__PURE__ */ P(Ve, {
|
|
2656
2656
|
"aria-hidden": "true",
|
|
2657
|
-
className: E("mr-2 h-4 w-4", b && _(e.value) === y ? "opacity-100" : "opacity-0")
|
|
2657
|
+
className: E("tg:mr-2 tg:h-4 tg:w-4", b && _(e.value) === y ? "tg:opacity-100" : "tg:opacity-0")
|
|
2658
2658
|
}), e.label]
|
|
2659
2659
|
}, e.value ?? e.label ?? t))] })
|
|
2660
2660
|
] })]
|
|
@@ -2724,13 +2724,13 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2724
2724
|
e && (t(e), a(!1));
|
|
2725
2725
|
};
|
|
2726
2726
|
return /* @__PURE__ */ F("div", {
|
|
2727
|
-
className: "relative",
|
|
2727
|
+
className: "tg:relative",
|
|
2728
2728
|
children: [
|
|
2729
2729
|
/* @__PURE__ */ P("input", {
|
|
2730
2730
|
ref: n,
|
|
2731
2731
|
type: "file",
|
|
2732
2732
|
accept: "image/*",
|
|
2733
|
-
className: "hidden",
|
|
2733
|
+
className: "tg:hidden",
|
|
2734
2734
|
onChange: l
|
|
2735
2735
|
}),
|
|
2736
2736
|
/* @__PURE__ */ F(ie, {
|
|
@@ -2740,36 +2740,36 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2740
2740
|
asChild: !0,
|
|
2741
2741
|
children: e ? /* @__PURE__ */ P("button", {
|
|
2742
2742
|
type: "button",
|
|
2743
|
-
className: "h-9 w-9 cursor-pointer overflow-hidden rounded-md border border-input",
|
|
2743
|
+
className: "tg:h-9 tg:w-9 tg:cursor-pointer tg:overflow-hidden tg:rounded-md tg:border tg:border-input",
|
|
2744
2744
|
"aria-label": c("editor.inputNodeForm.optionImageReplace"),
|
|
2745
2745
|
children: /* @__PURE__ */ P("img", {
|
|
2746
2746
|
src: e,
|
|
2747
2747
|
alt: "",
|
|
2748
|
-
className: "h-full w-full object-cover"
|
|
2748
|
+
className: "tg:h-full tg:w-full tg:object-cover"
|
|
2749
2749
|
})
|
|
2750
2750
|
}) : /* @__PURE__ */ P(k, {
|
|
2751
2751
|
type: "button",
|
|
2752
2752
|
variant: "outline",
|
|
2753
2753
|
size: "icon",
|
|
2754
2754
|
"aria-label": c("editor.inputNodeForm.optionImageAdd"),
|
|
2755
|
-
children: /* @__PURE__ */ P(tt, { className: "h-4 w-4" })
|
|
2755
|
+
children: /* @__PURE__ */ P(tt, { className: "tg:h-4 tg:w-4" })
|
|
2756
2756
|
})
|
|
2757
2757
|
}), /* @__PURE__ */ F(ae, {
|
|
2758
2758
|
align: "start",
|
|
2759
|
-
className: "w-64 space-y-3 p-3",
|
|
2759
|
+
className: "tg:w-64 tg:space-y-3 tg:p-3",
|
|
2760
2760
|
children: [
|
|
2761
2761
|
/* @__PURE__ */ F(k, {
|
|
2762
2762
|
type: "button",
|
|
2763
2763
|
variant: "outline",
|
|
2764
2764
|
size: "sm",
|
|
2765
|
-
className: "w-full",
|
|
2765
|
+
className: "tg:w-full",
|
|
2766
2766
|
onClick: () => n.current?.click(),
|
|
2767
|
-
children: [/* @__PURE__ */ P(yt, { className: "mr-2 h-4 w-4" }), c("editor.inputNodeForm.optionImageUpload")]
|
|
2767
|
+
children: [/* @__PURE__ */ P(yt, { className: "tg:mr-2 tg:h-4 tg:w-4" }), c("editor.inputNodeForm.optionImageUpload")]
|
|
2768
2768
|
}),
|
|
2769
2769
|
/* @__PURE__ */ P(ue, {}),
|
|
2770
2770
|
/* @__PURE__ */ F("div", {
|
|
2771
|
-
className: "flex items-center gap-2",
|
|
2772
|
-
children: [/* @__PURE__ */ P(rt, { className: "h-4 w-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ P(O, {
|
|
2771
|
+
className: "tg:flex tg:items-center tg:gap-2",
|
|
2772
|
+
children: [/* @__PURE__ */ P(rt, { className: "tg:h-4 tg:w-4 tg:shrink-0 tg:text-muted-foreground" }), /* @__PURE__ */ P(O, {
|
|
2773
2773
|
placeholder: c("editor.inputNodeForm.optionImageUrlPlaceholder"),
|
|
2774
2774
|
value: o,
|
|
2775
2775
|
onChange: (n) => {
|
|
@@ -2794,9 +2794,9 @@ var Ln = ({ aiConfig: e, onGenerate: t }) => {
|
|
|
2794
2794
|
onClick: (e) => {
|
|
2795
2795
|
e.stopPropagation(), t("");
|
|
2796
2796
|
},
|
|
2797
|
-
className: "
|
|
2797
|
+
className: "tg:-top-1 tg:-right-1 tg:absolute tg:flex tg:h-4 tg:w-4 tg:cursor-pointer tg:items-center tg:justify-center tg:rounded-full tg:bg-destructive tg:text-destructive-foreground",
|
|
2798
2798
|
"aria-label": c("editor.inputNodeForm.optionImageRemove"),
|
|
2799
|
-
children: /* @__PURE__ */ P(L, { className: "h-3 w-3" })
|
|
2799
|
+
children: /* @__PURE__ */ P(L, { className: "tg:h-3 tg:w-3" })
|
|
2800
2800
|
})
|
|
2801
2801
|
]
|
|
2802
2802
|
});
|
|
@@ -2861,14 +2861,14 @@ var or = () => {
|
|
|
2861
2861
|
e.preventDefault(), e.stopPropagation();
|
|
2862
2862
|
},
|
|
2863
2863
|
children: /* @__PURE__ */ F("div", {
|
|
2864
|
-
className: "grid gap-6",
|
|
2864
|
+
className: "tg:grid tg:gap-6",
|
|
2865
2865
|
children: [
|
|
2866
2866
|
/* @__PURE__ */ F("div", {
|
|
2867
|
-
className: "flex items-end gap-2",
|
|
2867
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
2868
2868
|
children: [/* @__PURE__ */ P(u, {
|
|
2869
2869
|
name: "label",
|
|
2870
2870
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
2871
|
-
className: "flex-1",
|
|
2871
|
+
className: "tg:flex-1",
|
|
2872
2872
|
children: [/* @__PURE__ */ P(d, {
|
|
2873
2873
|
htmlFor: t.name,
|
|
2874
2874
|
children: o("editor.inputNodeForm.label")
|
|
@@ -2892,11 +2892,11 @@ var or = () => {
|
|
|
2892
2892
|
})]
|
|
2893
2893
|
}),
|
|
2894
2894
|
!(s || c) && n?.data?.type !== "file" && /* @__PURE__ */ F("div", {
|
|
2895
|
-
className: "flex items-end gap-2",
|
|
2895
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
2896
2896
|
children: [/* @__PURE__ */ P(u, {
|
|
2897
2897
|
name: "placeholder",
|
|
2898
2898
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
2899
|
-
className: "flex-1",
|
|
2899
|
+
className: "tg:flex-1",
|
|
2900
2900
|
children: [/* @__PURE__ */ P(d, {
|
|
2901
2901
|
htmlFor: t.name,
|
|
2902
2902
|
children: o("editor.inputNodeForm.placeholder")
|
|
@@ -2919,11 +2919,11 @@ var or = () => {
|
|
|
2919
2919
|
})]
|
|
2920
2920
|
}),
|
|
2921
2921
|
!(s || c) && /* @__PURE__ */ F("div", {
|
|
2922
|
-
className: "flex items-end gap-2",
|
|
2922
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
2923
2923
|
children: [/* @__PURE__ */ P(u, {
|
|
2924
2924
|
name: "helperText",
|
|
2925
2925
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
2926
|
-
className: "flex-1",
|
|
2926
|
+
className: "tg:flex-1",
|
|
2927
2927
|
children: [/* @__PURE__ */ P(d, {
|
|
2928
2928
|
htmlFor: t.name,
|
|
2929
2929
|
children: o("editor.inputNodeForm.helperText")
|
|
@@ -2947,26 +2947,26 @@ var or = () => {
|
|
|
2947
2947
|
}),
|
|
2948
2948
|
n?.data?.type === "http" && /* @__PURE__ */ F(rr, {
|
|
2949
2949
|
defaultOpen: !0,
|
|
2950
|
-
className: "flex w-full max-w-[350px] flex-col gap-2",
|
|
2950
|
+
className: "tg:flex tg:w-full tg:max-w-[350px] tg:flex-col tg:gap-2",
|
|
2951
2951
|
children: [/* @__PURE__ */ P(ir, {
|
|
2952
2952
|
asChild: !0,
|
|
2953
2953
|
children: /* @__PURE__ */ F("div", {
|
|
2954
|
-
className: "flex items-center justify-between gap-4",
|
|
2954
|
+
className: "tg:flex tg:items-center tg:justify-between tg:gap-4",
|
|
2955
2955
|
children: [/* @__PURE__ */ P("h4", {
|
|
2956
|
-
className: "font-semibold text-sm",
|
|
2956
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2957
2957
|
children: o("editor.inputNodeForm.httpConfiguration")
|
|
2958
2958
|
}), /* @__PURE__ */ F(k, {
|
|
2959
2959
|
variant: "ghost",
|
|
2960
2960
|
size: "icon",
|
|
2961
|
-
className: "size-8",
|
|
2961
|
+
className: "tg:size-8",
|
|
2962
2962
|
children: [/* @__PURE__ */ P(We, {}), /* @__PURE__ */ P("span", {
|
|
2963
|
-
className: "sr-only",
|
|
2963
|
+
className: "tg:sr-only",
|
|
2964
2964
|
children: o("common.toggle")
|
|
2965
2965
|
})]
|
|
2966
2966
|
})]
|
|
2967
2967
|
})
|
|
2968
2968
|
}), /* @__PURE__ */ P(ar, {
|
|
2969
|
-
className: "flex flex-col gap-4",
|
|
2969
|
+
className: "tg:flex tg:flex-col tg:gap-4",
|
|
2970
2970
|
children: /* @__PURE__ */ P(u, {
|
|
2971
2971
|
name: "httpConfig",
|
|
2972
2972
|
children: (e) => /* @__PURE__ */ P(Wn, {
|
|
@@ -2979,26 +2979,26 @@ var or = () => {
|
|
|
2979
2979
|
})]
|
|
2980
2980
|
}),
|
|
2981
2981
|
s && /* @__PURE__ */ F(rr, {
|
|
2982
|
-
className: "flex w-full max-w-[350px] flex-col gap-2",
|
|
2982
|
+
className: "tg:flex tg:w-full tg:max-w-[350px] tg:flex-col tg:gap-2",
|
|
2983
2983
|
children: [/* @__PURE__ */ P(ir, {
|
|
2984
2984
|
asChild: !0,
|
|
2985
2985
|
children: /* @__PURE__ */ F("div", {
|
|
2986
|
-
className: "flex items-center justify-between gap-4",
|
|
2986
|
+
className: "tg:flex tg:items-center tg:justify-between tg:gap-4",
|
|
2987
2987
|
children: [/* @__PURE__ */ P("h4", {
|
|
2988
|
-
className: "font-semibold text-sm",
|
|
2988
|
+
className: "tg:font-semibold tg:text-sm",
|
|
2989
2989
|
children: o("editor.inputNodeForm.submitConfiguration")
|
|
2990
2990
|
}), /* @__PURE__ */ F(k, {
|
|
2991
2991
|
variant: "ghost",
|
|
2992
2992
|
size: "icon",
|
|
2993
|
-
className: "size-8",
|
|
2993
|
+
className: "tg:size-8",
|
|
2994
2994
|
children: [/* @__PURE__ */ P(We, {}), /* @__PURE__ */ P("span", {
|
|
2995
|
-
className: "sr-only",
|
|
2995
|
+
className: "tg:sr-only",
|
|
2996
2996
|
children: o("common.toggle")
|
|
2997
2997
|
})]
|
|
2998
2998
|
})]
|
|
2999
2999
|
})
|
|
3000
3000
|
}), /* @__PURE__ */ P(ar, {
|
|
3001
|
-
className: "flex flex-col gap-4",
|
|
3001
|
+
className: "tg:flex tg:flex-col tg:gap-4",
|
|
3002
3002
|
children: /* @__PURE__ */ P(u, {
|
|
3003
3003
|
name: "submitConfig",
|
|
3004
3004
|
children: (e) => /* @__PURE__ */ P(Kn, {
|
|
@@ -3013,7 +3013,7 @@ var or = () => {
|
|
|
3013
3013
|
n?.data?.type === "file" && /* @__PURE__ */ P(u, {
|
|
3014
3014
|
name: "multiple",
|
|
3015
3015
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
3016
|
-
className: "flex items-center space-x-2",
|
|
3016
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
3017
3017
|
children: [/* @__PURE__ */ P(D, {
|
|
3018
3018
|
id: e.name,
|
|
3019
3019
|
checked: e.state.value,
|
|
@@ -3026,38 +3026,38 @@ var or = () => {
|
|
|
3026
3026
|
}),
|
|
3027
3027
|
i && /* @__PURE__ */ F(rr, {
|
|
3028
3028
|
defaultOpen: !0,
|
|
3029
|
-
className: "flex w-full max-w-[350px] flex-col gap-2",
|
|
3029
|
+
className: "tg:flex tg:w-full tg:max-w-[350px] tg:flex-col tg:gap-2",
|
|
3030
3030
|
children: [/* @__PURE__ */ P(ir, {
|
|
3031
3031
|
asChild: !0,
|
|
3032
3032
|
children: /* @__PURE__ */ F("div", {
|
|
3033
|
-
className: "flex items-center justify-between gap-4",
|
|
3033
|
+
className: "tg:flex tg:items-center tg:justify-between tg:gap-4",
|
|
3034
3034
|
children: [/* @__PURE__ */ P("h4", {
|
|
3035
|
-
className: "font-semibold text-sm",
|
|
3035
|
+
className: "tg:font-semibold tg:text-sm",
|
|
3036
3036
|
children: o("editor.inputNodeForm.options")
|
|
3037
3037
|
}), /* @__PURE__ */ F(k, {
|
|
3038
3038
|
variant: "ghost",
|
|
3039
3039
|
size: "icon",
|
|
3040
|
-
className: "size-8",
|
|
3040
|
+
className: "tg:size-8",
|
|
3041
3041
|
children: [/* @__PURE__ */ P(We, {}), /* @__PURE__ */ P("span", {
|
|
3042
|
-
className: "sr-only",
|
|
3042
|
+
className: "tg:sr-only",
|
|
3043
3043
|
children: o("common.toggle")
|
|
3044
3044
|
})]
|
|
3045
3045
|
})]
|
|
3046
3046
|
})
|
|
3047
3047
|
}), /* @__PURE__ */ F(ar, {
|
|
3048
|
-
className: "flex flex-col gap-4",
|
|
3048
|
+
className: "tg:flex tg:flex-col tg:gap-4",
|
|
3049
3049
|
children: [
|
|
3050
3050
|
/* @__PURE__ */ P(u, {
|
|
3051
3051
|
name: "options",
|
|
3052
3052
|
mode: "array",
|
|
3053
3053
|
children: (t) => /* @__PURE__ */ F("div", {
|
|
3054
|
-
className: "space-y-2",
|
|
3054
|
+
className: "tg:space-y-2",
|
|
3055
3055
|
children: [t.state.value?.map((r, i) => {
|
|
3056
3056
|
let a = `options[${i}]`;
|
|
3057
3057
|
return /* @__PURE__ */ F("div", {
|
|
3058
|
-
className: "flex flex-col gap-2",
|
|
3058
|
+
className: "tg:flex tg:flex-col tg:gap-2",
|
|
3059
3059
|
children: [/* @__PURE__ */ F("div", {
|
|
3060
|
-
className: "flex items-start gap-2",
|
|
3060
|
+
className: "tg:flex tg:items-start tg:gap-2",
|
|
3061
3061
|
children: [
|
|
3062
3062
|
n?.data?.type === "radio" && /* @__PURE__ */ P(u, {
|
|
3063
3063
|
name: `options[${i}].image`,
|
|
@@ -3094,7 +3094,7 @@ var or = () => {
|
|
|
3094
3094
|
onClick: () => {
|
|
3095
3095
|
t.removeValue(i), l().then();
|
|
3096
3096
|
},
|
|
3097
|
-
children: /* @__PURE__ */ P(L, { className: "h-4 w-4" })
|
|
3097
|
+
children: /* @__PURE__ */ P(L, { className: "tg:h-4 tg:w-4" })
|
|
3098
3098
|
})
|
|
3099
3099
|
]
|
|
3100
3100
|
}), (n?.data?.type === "radio" || n?.data?.type === "checkbox") && /* @__PURE__ */ P(u, {
|
|
@@ -3128,7 +3128,7 @@ var or = () => {
|
|
|
3128
3128
|
n?.data?.type === "select" && /* @__PURE__ */ P(u, {
|
|
3129
3129
|
name: "multiple",
|
|
3130
3130
|
children: (e) => /* @__PURE__ */ F("div", {
|
|
3131
|
-
className: "flex items-center space-x-2",
|
|
3131
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
3132
3132
|
children: [/* @__PURE__ */ P(D, {
|
|
3133
3133
|
id: e.name,
|
|
3134
3134
|
checked: e.state.value,
|
|
@@ -3149,7 +3149,7 @@ var or = () => {
|
|
|
3149
3149
|
onValueChange: (t) => e.handleChange(t),
|
|
3150
3150
|
children: [/* @__PURE__ */ P(v, {
|
|
3151
3151
|
id: e.name,
|
|
3152
|
-
className: "w-full",
|
|
3152
|
+
className: "tg:w-full",
|
|
3153
3153
|
children: /* @__PURE__ */ P(T, {})
|
|
3154
3154
|
}), /* @__PURE__ */ F(C, { children: [/* @__PURE__ */ P(h, {
|
|
3155
3155
|
value: "default",
|
|
@@ -3164,31 +3164,31 @@ var or = () => {
|
|
|
3164
3164
|
})]
|
|
3165
3165
|
}),
|
|
3166
3166
|
!s && /* @__PURE__ */ F(rr, {
|
|
3167
|
-
className: "flex w-full max-w-[350px] flex-col gap-2",
|
|
3167
|
+
className: "tg:flex tg:w-full tg:max-w-[350px] tg:flex-col tg:gap-2",
|
|
3168
3168
|
children: [/* @__PURE__ */ P(ir, {
|
|
3169
3169
|
asChild: !0,
|
|
3170
3170
|
children: /* @__PURE__ */ F("div", {
|
|
3171
|
-
className: "flex items-center justify-between gap-4",
|
|
3171
|
+
className: "tg:flex tg:items-center tg:justify-between tg:gap-4",
|
|
3172
3172
|
children: [/* @__PURE__ */ P("h4", {
|
|
3173
|
-
className: "font-semibold text-sm",
|
|
3173
|
+
className: "tg:font-semibold tg:text-sm",
|
|
3174
3174
|
children: o("editor.inputNodeForm.validation")
|
|
3175
3175
|
}), /* @__PURE__ */ F(k, {
|
|
3176
3176
|
variant: "ghost",
|
|
3177
3177
|
size: "icon",
|
|
3178
|
-
className: "size-8",
|
|
3178
|
+
className: "tg:size-8",
|
|
3179
3179
|
children: [/* @__PURE__ */ P(We, {}), /* @__PURE__ */ P("span", {
|
|
3180
|
-
className: "sr-only",
|
|
3180
|
+
className: "tg:sr-only",
|
|
3181
3181
|
children: o("common.toggle")
|
|
3182
3182
|
})]
|
|
3183
3183
|
})]
|
|
3184
3184
|
})
|
|
3185
3185
|
}), /* @__PURE__ */ F(ar, {
|
|
3186
|
-
className: "flex flex-col gap-6",
|
|
3186
|
+
className: "tg:flex tg:flex-col tg:gap-6",
|
|
3187
3187
|
children: [
|
|
3188
3188
|
/* @__PURE__ */ P(u, {
|
|
3189
3189
|
name: "required",
|
|
3190
3190
|
children: (e) => /* @__PURE__ */ P(A, { children: /* @__PURE__ */ F("div", {
|
|
3191
|
-
className: "flex items-center space-x-2",
|
|
3191
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
3192
3192
|
children: [/* @__PURE__ */ P(D, {
|
|
3193
3193
|
id: e.name,
|
|
3194
3194
|
checked: e.state.value,
|
|
@@ -3202,7 +3202,7 @@ var or = () => {
|
|
|
3202
3202
|
(n?.data?.type === "date" || n?.data?.type === "daterange") && /* @__PURE__ */ P(u, {
|
|
3203
3203
|
name: "disablePast",
|
|
3204
3204
|
children: (e) => /* @__PURE__ */ P(A, { children: /* @__PURE__ */ F("div", {
|
|
3205
|
-
className: "flex items-center space-x-2",
|
|
3205
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
3206
3206
|
children: [/* @__PURE__ */ P(D, {
|
|
3207
3207
|
id: e.name,
|
|
3208
3208
|
checked: e.state.value,
|
|
@@ -3225,11 +3225,11 @@ var or = () => {
|
|
|
3225
3225
|
})] })
|
|
3226
3226
|
}),
|
|
3227
3227
|
/* @__PURE__ */ F("div", {
|
|
3228
|
-
className: "flex items-end gap-2",
|
|
3228
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
3229
3229
|
children: [/* @__PURE__ */ P(u, {
|
|
3230
3230
|
name: "errorMessage",
|
|
3231
3231
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
3232
|
-
className: "flex-1",
|
|
3232
|
+
className: "tg:flex-1",
|
|
3233
3233
|
children: [/* @__PURE__ */ P(d, {
|
|
3234
3234
|
htmlFor: t.name,
|
|
3235
3235
|
children: o("editor.inputNodeForm.errorMessage")
|
|
@@ -3255,26 +3255,26 @@ var or = () => {
|
|
|
3255
3255
|
})]
|
|
3256
3256
|
}),
|
|
3257
3257
|
!s && /* @__PURE__ */ F(rr, {
|
|
3258
|
-
className: "flex w-full max-w-[350px] flex-col gap-2",
|
|
3258
|
+
className: "tg:flex tg:w-full tg:max-w-[350px] tg:flex-col tg:gap-2",
|
|
3259
3259
|
children: [/* @__PURE__ */ P(ir, {
|
|
3260
3260
|
asChild: !0,
|
|
3261
3261
|
children: /* @__PURE__ */ F("div", {
|
|
3262
|
-
className: "flex items-center justify-between gap-4",
|
|
3262
|
+
className: "tg:flex tg:items-center tg:justify-between tg:gap-4",
|
|
3263
3263
|
children: [/* @__PURE__ */ P("h4", {
|
|
3264
|
-
className: "font-semibold text-sm",
|
|
3264
|
+
className: "tg:font-semibold tg:text-sm",
|
|
3265
3265
|
children: o("editor.inputNodeForm.advancedConfiguration")
|
|
3266
3266
|
}), /* @__PURE__ */ F(k, {
|
|
3267
3267
|
variant: "ghost",
|
|
3268
3268
|
size: "icon",
|
|
3269
|
-
className: "size-8",
|
|
3269
|
+
className: "tg:size-8",
|
|
3270
3270
|
children: [/* @__PURE__ */ P(We, {}), /* @__PURE__ */ P("span", {
|
|
3271
|
-
className: "sr-only",
|
|
3271
|
+
className: "tg:sr-only",
|
|
3272
3272
|
children: o("common.toggle")
|
|
3273
3273
|
})]
|
|
3274
3274
|
})]
|
|
3275
3275
|
})
|
|
3276
3276
|
}), /* @__PURE__ */ F(ar, {
|
|
3277
|
-
className: "flex flex-col gap-6",
|
|
3277
|
+
className: "tg:flex tg:flex-col tg:gap-6",
|
|
3278
3278
|
children: [/* @__PURE__ */ P(u, {
|
|
3279
3279
|
name: "name",
|
|
3280
3280
|
children: (e) => /* @__PURE__ */ F(A, { children: [
|
|
@@ -3336,7 +3336,7 @@ var or = () => {
|
|
|
3336
3336
|
e.handleChange(n.length > 0 ? n : null);
|
|
3337
3337
|
}
|
|
3338
3338
|
})] }) : t === "checkbox" ? /* @__PURE__ */ P(A, { children: /* @__PURE__ */ F("div", {
|
|
3339
|
-
className: "flex items-center space-x-2",
|
|
3339
|
+
className: "tg:flex tg:items-center tg:space-x-2",
|
|
3340
3340
|
children: [/* @__PURE__ */ P(D, {
|
|
3341
3341
|
id: e.name,
|
|
3342
3342
|
checked: !!e.state.value,
|
|
@@ -3447,9 +3447,9 @@ var or = () => {
|
|
|
3447
3447
|
children: (e) => /* @__PURE__ */ F(A, { children: [
|
|
3448
3448
|
/* @__PURE__ */ P(d, { children: o("editor.inputNodeForm.objectMapping") }),
|
|
3449
3449
|
/* @__PURE__ */ F("div", {
|
|
3450
|
-
className: "space-y-2",
|
|
3450
|
+
className: "tg:space-y-2",
|
|
3451
3451
|
children: [e.state.value?.map((t, n) => /* @__PURE__ */ F("div", {
|
|
3452
|
-
className: "flex items-center gap-2",
|
|
3452
|
+
className: "tg:flex tg:items-center tg:gap-2",
|
|
3453
3453
|
children: [
|
|
3454
3454
|
/* @__PURE__ */ P(u, {
|
|
3455
3455
|
name: `defaultValue.objectMapping[${n}].sourceKey`,
|
|
@@ -3460,7 +3460,7 @@ var or = () => {
|
|
|
3460
3460
|
})
|
|
3461
3461
|
}),
|
|
3462
3462
|
/* @__PURE__ */ P("span", {
|
|
3463
|
-
className: "text-muted-foreground",
|
|
3463
|
+
className: "tg:text-muted-foreground",
|
|
3464
3464
|
children: "→"
|
|
3465
3465
|
}),
|
|
3466
3466
|
/* @__PURE__ */ P(u, {
|
|
@@ -3478,21 +3478,21 @@ var or = () => {
|
|
|
3478
3478
|
onClick: () => {
|
|
3479
3479
|
e.removeValue(n), l().then();
|
|
3480
3480
|
},
|
|
3481
|
-
children: /* @__PURE__ */ P(L, { className: "h-4 w-4" })
|
|
3481
|
+
children: /* @__PURE__ */ P(L, { className: "tg:h-4 tg:w-4" })
|
|
3482
3482
|
})
|
|
3483
3483
|
]
|
|
3484
3484
|
}, `mapping-${n}`)), /* @__PURE__ */ F(k, {
|
|
3485
3485
|
type: "button",
|
|
3486
3486
|
variant: "outline",
|
|
3487
3487
|
size: "sm",
|
|
3488
|
-
className: "w-full",
|
|
3488
|
+
className: "tg:w-full",
|
|
3489
3489
|
onClick: () => {
|
|
3490
3490
|
e.pushValue({
|
|
3491
3491
|
sourceKey: "",
|
|
3492
3492
|
targetKey: ""
|
|
3493
3493
|
}), l().then();
|
|
3494
3494
|
},
|
|
3495
|
-
children: [/* @__PURE__ */ P(I, { className: "mr-2 h-4 w-4" }), o("editor.inputNodeForm.addMapping")]
|
|
3495
|
+
children: [/* @__PURE__ */ P(I, { className: "tg:mr-2 tg:h-4 tg:w-4" }), o("editor.inputNodeForm.addMapping")]
|
|
3496
3496
|
})]
|
|
3497
3497
|
}),
|
|
3498
3498
|
/* @__PURE__ */ P(j, { children: o("editor.inputNodeForm.objectMappingDesc") })
|
|
@@ -3524,13 +3524,13 @@ var or = () => {
|
|
|
3524
3524
|
e.preventDefault(), e.stopPropagation();
|
|
3525
3525
|
},
|
|
3526
3526
|
children: /* @__PURE__ */ P("div", {
|
|
3527
|
-
className: "grid gap-6",
|
|
3527
|
+
className: "tg:grid tg:gap-6",
|
|
3528
3528
|
children: /* @__PURE__ */ F("div", {
|
|
3529
|
-
className: "flex items-end gap-2",
|
|
3529
|
+
className: "tg:flex tg:items-end tg:gap-2",
|
|
3530
3530
|
children: [/* @__PURE__ */ P(i, {
|
|
3531
3531
|
name: "label",
|
|
3532
3532
|
children: (t) => /* @__PURE__ */ F(A, {
|
|
3533
|
-
className: "flex-1",
|
|
3533
|
+
className: "tg:flex-1",
|
|
3534
3534
|
children: [/* @__PURE__ */ P(d, {
|
|
3535
3535
|
htmlFor: t.name,
|
|
3536
3536
|
children: "Label"
|
|
@@ -3606,18 +3606,18 @@ var or = () => {
|
|
|
3606
3606
|
} : e)]), t(""), i(!1), V.success("Group created", { description: `The group "${e.trim()}" has been created successfully.` });
|
|
3607
3607
|
};
|
|
3608
3608
|
return /* @__PURE__ */ F("div", {
|
|
3609
|
-
className: "space-y-2",
|
|
3609
|
+
className: "tg:space-y-2",
|
|
3610
3610
|
children: [/* @__PURE__ */ P(d, {
|
|
3611
3611
|
htmlFor: f,
|
|
3612
3612
|
children: u("editor.selectNodeGroup.group")
|
|
3613
3613
|
}), /* @__PURE__ */ F("div", {
|
|
3614
|
-
className: "flex gap-2",
|
|
3614
|
+
className: "tg:flex tg:gap-2",
|
|
3615
3615
|
children: [/* @__PURE__ */ F(g, {
|
|
3616
3616
|
value: c,
|
|
3617
3617
|
onValueChange: m,
|
|
3618
3618
|
children: [/* @__PURE__ */ P(v, {
|
|
3619
3619
|
id: f,
|
|
3620
|
-
className: "flex-1",
|
|
3620
|
+
className: "tg:flex-1",
|
|
3621
3621
|
children: /* @__PURE__ */ P(T, { placeholder: u("editor.selectNodeGroup.noGroup") })
|
|
3622
3622
|
}), /* @__PURE__ */ P(C, { children: /* @__PURE__ */ F(w, { children: [/* @__PURE__ */ P(h, {
|
|
3623
3623
|
value: "none",
|
|
@@ -3635,27 +3635,27 @@ var or = () => {
|
|
|
3635
3635
|
variant: "outline",
|
|
3636
3636
|
size: "icon",
|
|
3637
3637
|
title: "Create a new group",
|
|
3638
|
-
children: /* @__PURE__ */ P(dt, { className: "h-4 w-4" })
|
|
3638
|
+
children: /* @__PURE__ */ P(dt, { className: "tg:h-4 tg:w-4" })
|
|
3639
3639
|
})
|
|
3640
3640
|
}), /* @__PURE__ */ P(ae, {
|
|
3641
|
-
className: "w-80",
|
|
3641
|
+
className: "tg:w-80",
|
|
3642
3642
|
align: "end",
|
|
3643
3643
|
disablePortal: !0,
|
|
3644
3644
|
children: /* @__PURE__ */ F("div", {
|
|
3645
|
-
className: "space-y-4",
|
|
3645
|
+
className: "tg:space-y-4",
|
|
3646
3646
|
children: [
|
|
3647
3647
|
/* @__PURE__ */ F("div", {
|
|
3648
|
-
className: "space-y-2",
|
|
3648
|
+
className: "tg:space-y-2",
|
|
3649
3649
|
children: [/* @__PURE__ */ P("h4", {
|
|
3650
|
-
className: "font-medium leading-none",
|
|
3650
|
+
className: "tg:font-medium tg:leading-none",
|
|
3651
3651
|
children: u("editor.selectNodeGroup.newGroup")
|
|
3652
3652
|
}), /* @__PURE__ */ P("p", {
|
|
3653
|
-
className: "text-muted-foreground text-sm",
|
|
3653
|
+
className: "tg:text-muted-foreground tg:text-sm",
|
|
3654
3654
|
children: u("editor.selectNodeGroup.newGroupDescription")
|
|
3655
3655
|
})]
|
|
3656
3656
|
}),
|
|
3657
3657
|
/* @__PURE__ */ F("div", {
|
|
3658
|
-
className: "space-y-2",
|
|
3658
|
+
className: "tg:space-y-2",
|
|
3659
3659
|
children: [/* @__PURE__ */ P(d, {
|
|
3660
3660
|
htmlFor: p,
|
|
3661
3661
|
children: u("editor.selectNodeGroup.groupName")
|
|
@@ -3671,7 +3671,7 @@ var or = () => {
|
|
|
3671
3671
|
})]
|
|
3672
3672
|
}),
|
|
3673
3673
|
/* @__PURE__ */ F("div", {
|
|
3674
|
-
className: "flex justify-end gap-2",
|
|
3674
|
+
className: "tg:flex tg:justify-end tg:gap-2",
|
|
3675
3675
|
children: [/* @__PURE__ */ P(k, {
|
|
3676
3676
|
variant: "outline",
|
|
3677
3677
|
size: "sm",
|
|
@@ -3722,24 +3722,24 @@ var or = () => {
|
|
|
3722
3722
|
},
|
|
3723
3723
|
disabled: s,
|
|
3724
3724
|
children: [/* @__PURE__ */ P(v, {
|
|
3725
|
-
className: "w-full capitalize",
|
|
3725
|
+
className: "tg:w-full tg:capitalize",
|
|
3726
3726
|
id: u,
|
|
3727
3727
|
children: /* @__PURE__ */ P(T, { placeholder: c("editor.selectNodeType.nodeType") })
|
|
3728
3728
|
}), /* @__PURE__ */ P(C, {
|
|
3729
|
-
className: "treege-scrollbar max-h-80",
|
|
3729
|
+
className: "treege-scrollbar tg:max-h-80",
|
|
3730
3730
|
children: s ? /* @__PURE__ */ P(w, { children: /* @__PURE__ */ P(h, {
|
|
3731
3731
|
value: l.group,
|
|
3732
3732
|
children: c("editor.selectNodeType.options.group")
|
|
3733
3733
|
}) }) : /* @__PURE__ */ F(N, { children: [
|
|
3734
3734
|
/* @__PURE__ */ F(w, { children: [/* @__PURE__ */ P(y, { children: c("editor.selectNodeType.options.input") }), lr.map((e) => /* @__PURE__ */ F(h, {
|
|
3735
3735
|
value: e,
|
|
3736
|
-
className: "capitalize",
|
|
3736
|
+
className: "tg:capitalize",
|
|
3737
3737
|
children: [/* @__PURE__ */ P(Z(e), {}), e]
|
|
3738
3738
|
}, e))] }),
|
|
3739
3739
|
/* @__PURE__ */ P(de, {}),
|
|
3740
3740
|
/* @__PURE__ */ F(w, { children: [/* @__PURE__ */ P(y, { children: c("editor.selectNodeType.options.ui") }), ur.map((e) => /* @__PURE__ */ F(h, {
|
|
3741
3741
|
value: e,
|
|
3742
|
-
className: "capitalize",
|
|
3742
|
+
className: "tg:capitalize",
|
|
3743
3743
|
children: [/* @__PURE__ */ P(Z(e), {}), e]
|
|
3744
3744
|
}, e))] }),
|
|
3745
3745
|
/* @__PURE__ */ P(de, {}),
|
|
@@ -3768,19 +3768,19 @@ function pr({ ...e }) {
|
|
|
3768
3768
|
function mr({ className: e, ...t }) {
|
|
3769
3769
|
return /* @__PURE__ */ P(Pt.Overlay, {
|
|
3770
3770
|
"data-slot": "sheet-overlay",
|
|
3771
|
-
className: E("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", e),
|
|
3771
|
+
className: E("tg:data-[state=closed]:fade-out-0 tg:data-[state=open]:fade-in-0 tg:fixed tg:inset-0 tg:z-50 tg:bg-black/50 tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in", e),
|
|
3772
3772
|
...t
|
|
3773
3773
|
});
|
|
3774
3774
|
}
|
|
3775
3775
|
function hr({ className: e, children: t, side: n = "right", ...r }) {
|
|
3776
3776
|
return /* @__PURE__ */ F(pr, { children: [/* @__PURE__ */ P(mr, {}), /* @__PURE__ */ F(Pt.Content, {
|
|
3777
3777
|
"data-slot": "sheet-content",
|
|
3778
|
-
className: E("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
3778
|
+
className: E("tg:fixed tg:z-50 tg:flex tg:flex-col tg:gap-4 tg:bg-background tg:shadow-lg tg:transition tg:ease-in-out tg:data-[state=closed]:animate-out tg:data-[state=open]:animate-in tg:data-[state=closed]:duration-300 tg:data-[state=open]:duration-500", n === "right" && "tg:data-[state=closed]:slide-out-to-right tg:data-[state=open]:slide-in-from-right tg:inset-y-0 tg:right-0 tg:h-full tg:w-3/4 tg:border-l tg:sm:max-w-sm", n === "left" && "tg:data-[state=closed]:slide-out-to-left tg:data-[state=open]:slide-in-from-left tg:inset-y-0 tg:left-0 tg:h-full tg:w-3/4 tg:border-r tg:sm:max-w-sm", n === "top" && "tg:data-[state=closed]:slide-out-to-top tg:data-[state=open]:slide-in-from-top tg:inset-x-0 tg:top-0 tg:h-auto tg:border-b", n === "bottom" && "tg:data-[state=closed]:slide-out-to-bottom tg:data-[state=open]:slide-in-from-bottom tg:inset-x-0 tg:bottom-0 tg:h-auto tg:border-t", e),
|
|
3779
3779
|
...r,
|
|
3780
3780
|
children: [t, /* @__PURE__ */ F(Pt.Close, {
|
|
3781
|
-
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
3782
|
-
children: [/* @__PURE__ */ P(Ct, { className: "size-4" }), /* @__PURE__ */ P("span", {
|
|
3783
|
-
className: "sr-only",
|
|
3781
|
+
className: "tg:absolute tg:top-4 tg:right-4 tg:rounded-xs tg:opacity-70 tg:ring-offset-background tg:transition-opacity tg:hover:opacity-100 tg:focus:outline-hidden tg:focus:ring-2 tg:focus:ring-ring tg:focus:ring-offset-2 tg:disabled:pointer-events-none tg:data-[state=open]:bg-secondary",
|
|
3782
|
+
children: [/* @__PURE__ */ P(Ct, { className: "tg:size-4" }), /* @__PURE__ */ P("span", {
|
|
3783
|
+
className: "tg:sr-only",
|
|
3784
3784
|
children: "Close"
|
|
3785
3785
|
})]
|
|
3786
3786
|
})]
|
|
@@ -3789,28 +3789,28 @@ function hr({ className: e, children: t, side: n = "right", ...r }) {
|
|
|
3789
3789
|
function gr({ className: e, ...t }) {
|
|
3790
3790
|
return /* @__PURE__ */ P("div", {
|
|
3791
3791
|
"data-slot": "sheet-header",
|
|
3792
|
-
className: E("flex flex-col gap-1.5 p-4", e),
|
|
3792
|
+
className: E("tg:flex tg:flex-col tg:gap-1.5 tg:p-4", e),
|
|
3793
3793
|
...t
|
|
3794
3794
|
});
|
|
3795
3795
|
}
|
|
3796
3796
|
function _r({ className: e, ...t }) {
|
|
3797
3797
|
return /* @__PURE__ */ P("div", {
|
|
3798
3798
|
"data-slot": "sheet-footer",
|
|
3799
|
-
className: E("mt-auto flex flex-col gap-2 p-4", e),
|
|
3799
|
+
className: E("tg:mt-auto tg:flex tg:flex-col tg:gap-2 tg:p-4", e),
|
|
3800
3800
|
...t
|
|
3801
3801
|
});
|
|
3802
3802
|
}
|
|
3803
3803
|
function vr({ className: e, ...t }) {
|
|
3804
3804
|
return /* @__PURE__ */ P(Pt.Title, {
|
|
3805
3805
|
"data-slot": "sheet-title",
|
|
3806
|
-
className: E("font-semibold text-foreground", e),
|
|
3806
|
+
className: E("tg:font-semibold tg:text-foreground", e),
|
|
3807
3807
|
...t
|
|
3808
3808
|
});
|
|
3809
3809
|
}
|
|
3810
3810
|
function yr({ className: e, ...t }) {
|
|
3811
3811
|
return /* @__PURE__ */ P(Pt.Description, {
|
|
3812
3812
|
"data-slot": "sheet-description",
|
|
3813
|
-
className: E("text-muted-foreground text-sm", e),
|
|
3813
|
+
className: E("tg:text-muted-foreground tg:text-sm", e),
|
|
3814
3814
|
...t
|
|
3815
3815
|
});
|
|
3816
3816
|
}
|
|
@@ -3826,20 +3826,20 @@ var br = () => {
|
|
|
3826
3826
|
e || d();
|
|
3827
3827
|
},
|
|
3828
3828
|
children: /* @__PURE__ */ F(hr, {
|
|
3829
|
-
className: "flex flex-col gap-0",
|
|
3829
|
+
className: "tg:flex tg:flex-col tg:gap-0",
|
|
3830
3830
|
children: [
|
|
3831
3831
|
/* @__PURE__ */ F(gr, { children: [/* @__PURE__ */ F(vr, { children: [
|
|
3832
3832
|
l("editor.nodeActionsSheet.editNode"),
|
|
3833
3833
|
" ",
|
|
3834
3834
|
/* @__PURE__ */ P("span", {
|
|
3835
|
-
className: "font-light text-muted-foreground text-xs",
|
|
3835
|
+
className: "tg:font-light tg:text-muted-foreground tg:text-xs",
|
|
3836
3836
|
children: e?.id
|
|
3837
3837
|
})
|
|
3838
3838
|
] }), /* @__PURE__ */ P(yr, { children: u || "\xA0" })] }),
|
|
3839
3839
|
/* @__PURE__ */ P(Gt, {
|
|
3840
|
-
className: "flex min-h-0 flex-1 flex-col px-4",
|
|
3840
|
+
className: "tg:flex tg:min-h-0 tg:flex-1 tg:flex-col tg:px-4",
|
|
3841
3841
|
children: /* @__PURE__ */ F("div", {
|
|
3842
|
-
className: "space-y-6 py-4",
|
|
3842
|
+
className: "tg:space-y-6 tg:py-4",
|
|
3843
3843
|
children: [
|
|
3844
3844
|
/* @__PURE__ */ P(dr, {}),
|
|
3845
3845
|
/* @__PURE__ */ P(cr, {}),
|
|
@@ -3852,7 +3852,7 @@ var br = () => {
|
|
|
3852
3852
|
})
|
|
3853
3853
|
}),
|
|
3854
3854
|
/* @__PURE__ */ P(_r, {
|
|
3855
|
-
className: "flex items-end border-t",
|
|
3855
|
+
className: "tg:flex tg:items-end tg:border-t",
|
|
3856
3856
|
children: /* @__PURE__ */ P(k, {
|
|
3857
3857
|
variant: "ghost",
|
|
3858
3858
|
size: "icon",
|
|
@@ -3939,7 +3939,7 @@ var br = () => {
|
|
|
3939
3939
|
let { theme: t = "system" } = Rt();
|
|
3940
3940
|
return /* @__PURE__ */ P(Ft, {
|
|
3941
3941
|
theme: t,
|
|
3942
|
-
className: "toaster group",
|
|
3942
|
+
className: "toaster tg:group",
|
|
3943
3943
|
style: {
|
|
3944
3944
|
"--normal-bg": "var(--treege-popover)",
|
|
3945
3945
|
"--normal-border": "var(--treege-border)",
|