import{jsx as t,jsxs as o}from"react/jsx-runtime";import{L as i,B as m,g as p}from"./ui-components-B24mpb8o.js";import{useEditor as n}from"./use-editor-D8T8wKX0.js";import{Eye as c}from"lucide-react";import"clsx";/* empty css                     */import{Link as l}from"@inertiajs/react";import"react";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./editor-provider-CwMLJaUa.js";import"uuid";const X=({changeCustomValues:s})=>{const{editor:e,dispatch:a}=n(),r=(typeof e.editor.selectedElement.content=="object"&&!Array.isArray(e.editor.selectedElement.content)?e.editor.selectedElement.content:{}).api;return e.editor.selectedElement.type==="dynamicWrapper"&&(r==null?void 0:r.length)>0&&t("div",{className:"flex flex-col gap-4",children:o("div",{className:"flex flex-col gap-2",children:[o("div",{className:"flex items-center justify-between",children:[t(i,{children:"API Endpoint"}),t(l,{href:route("frontend.api"),children:t(m,{className:"h-6 w-6 hover:text-blue-500",size:"icon",variant:"outline",children:t(c,{})})})]}),t(p,{children:r})]})})};export{X as default};
