File size: 48,357 Bytes
1dfa051 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 | <!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FFID Pilot</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect width='24' height='24' fill='%232e7daf'/><text x='12' y='16' fill='white' font-family='Arial' font-size='12' text-anchor='middle'>F</text></svg>">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/lucide@latest"></script>
<script>
// Define Tailwind configuration with custom colors
tailwind.config = {
theme: {
fontFamily: {
sans: ['Inter', 'sans-serif']
},
extend: {
colors: {
brand: {
50: '#f0f7ff',
100: '#e0f0ff',
200: '#b9deff',
300: '#7bc5ff',
400: '#34a5ff',
500: '#0a88f7',
600: '#0066cc',
700: '#0152ae',
800: '#004382',
900: '#002d59',
},
accent: {
50: '#faf5ff',
100: '#f3e8ff',
200: '#e9d5ff',
300: '#d8b4fe',
400: '#c084fc',
500: '#a855f7',
600: '#9333ea',
700: '#7e22ce',
800: '#6b21a8',
900: '#581c87',
},
surface: {
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#1e293b',
900: '#0f172a',
},
},
borderRadius: {
'4xl': '28px',
}
}
}
}
// Define custom CSS classes
const customStyles = `
:root {
--radius: 14px;
}
body {
@apply bg-surface-100 text-surface-900;
}
.sidebar-shadow {
box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.08);
}
.custom-scrollbar::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.draggable-item {
@apply p-3 mb-2 flex items-center text-left w-full bg-white rounded-lg border border-surface-200 hover:bg-surface-50 cursor-move active:bg-surface-100 transition-colors;
}
canvas {
background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
background-size: 16px 16px;
}
.node {
@apply overflow-hidden border bg-white rounded-lg w-40 shadow-sm hover:shadow-md transition-all;
}
.node-trigger {
@apply border-brand-400 border-l-4;
}
.node-action {
@apply border-accent-400 border-l-4;
}
.node-logic {
@apply border-brand-700 border-l-4;
}
.node-data {
@apply border-accent-700 border-l-4;
}
.node-handle {
@apply w-3 h-3 rounded-full bg-surface-300 border border-surface-400;
}
`;
// Append custom styles to document head
const style = document.createElement('style');
style.innerHTML = customStyles;
document.head.appendChild(style);
</script>
<style>
/* Custom node styling */
.node-header {
@apply py-2 px-4
}
.trigger-bg {
background-color: rgba(0, 102, 204, 0.1);
}
.action-bg {
background-color: rgba(147, 51, 234, 0.1);
}
</style>
</head>
<body>
<!-- Top bar structure -->
<div id="login-page" class="min-h-screen flex">
<!-- Auth Container -->
<div class="w-full max-w-xl m-auto bg-white rounded-2xl p-8 py-12 shadow-xl">
<div class="flex flex-col items-center mb-10">
<div class="w-20 h-20 bg-brand-500 rounded-2xl flex items-center justify-center mb-6">
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3.5 5.5l1.5 1.5l2.5 -2.5" />
<path d="M3 17l2 -2l1 1" />
<path d="M10 5h9" />
<path d="M10 9h9" />
<path d="M10 13h9" />
<path d="M10 17h9" />
</svg>
</div>
<h1 class="text-4xl font-bold text-brand-600 text-center">FFID Pilot</h1>
<p class="text-surface-500 mt-2 text-center">Automações de fluxo para disparos de campanhas</p>
</div>
<form class="space-y-6">
<div>
<label for="email" class="block text-sm font-medium text-surface-700 mb-1">Email</label>
<input
type="email"
id="email"
placeholder="voce@empresa.com"
class="w-full rounded-lg py-3 px-4 border border-surface-300 focus:border-brand-400 focus:ring-2 focus:ring-blue-100 transition-colors">
</div>
<div>
<label for="password" class="block text-sm font-medium text-surface-700 mb-1">Senha</label>
<input
type="password"
id="password"
placeholder="••••••••"
class="w-full rounded-lg py-3 px-4 border border-surface-300 focus:border-brand-400 focus:ring-2 focus:ring-blue-100 transition-colors">
</div>
<div class="flex items-center justify-between text-sm">
<div class="flex items-center">
<input
type="checkbox"
id="remember-me"
class="w-4 h-4 rounded border-surface-300 focus:ring-brand-400 text-brand-600">
<label for="remember-me" class="ml-2 text-surface-600">Lembrar minha sessão</label>
</div>
<a href="#" class="font-medium text-brand-600 hover:text-brand-800">Esqueceu sua senha?</a>
</div>
<button
type="button"
onclick="showMainApp()"
class="w-full bg-brand-500 hover:bg-brand-600 text-white font-semibold rounded-lg py-3 px-6 flex items-center justify-center transition-colors shadow-sm hover:shadow-md">
Entrar na plataforma
<svg class="ml-2 w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M5 12l14 0" />
<path d="M13 18l6 -6" />
<path d="M13 6l6 6" />
</svg>
</button>
<p class="pt-5 text-center text-surface-500 text-sm">
© 2023 FFID Pilot. Acessando a API em
<span class="font-mono text-brand-500">api.ffid.com.br</span>
</p>
</form>
</div>
</div>
<div id="app" class="hidden min-h-screen flex flex-col">
<!-- Top Bar -->
<header class="bg-white shadow-sm py-3 px-4">
<div class="flex items-center justify-between">
<div class="flex items-center">
<button class="p-2 mr-2 rounded-lg hover:bg-surface-100 transition-colors lg:hidden" onclick="toggleSidebar()">
<svg class="w-5 h-5" id="menu-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
<h1 class="flex items-center text-xl font-semibold hidden md:flex">
<div class="w-8 h-8 bg-brand-500 rounded-xl flex items-center justify-center mr-3">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3.5 5.5l1.5 1.5l2.5 -2.5" />
<path d="M3 17l2 -2l1 1" />
<path d="M10 5h9" />
<path d="M10 9h9" />
<path d="M10 13h9" />
<path d="M10 17h9" />
</svg>
</div>
FFID Pilot
</h1>
</div>
<div class="relative flex-1 max-w-lg">
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
<svg class="w-4 h-4 text-surface-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
</svg>
</div>
<input
type="text"
placeholder="Buscar fluxos, campanhas, templates..."
class="w-full bg-surface-100 rounded-full py-2 pl-10 pr-4 text-sm border border-surface-300 focus:border-brand-300 focus:ring-1 focus:ring-blue-100 transition-colors">
</div>
<div class="flex items-center gap-4">
<button
data-tooltip-label="Ajuda"
class="group p-2 rounded-lg hover:bg-surface-100 transition-colors relative">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<div class="absolute -bottom-10 left-0 hidden group-hover:block bg-surface-800 text-xs text-white py-1 px-2 rounded whitespace-nowrap">
Ajuda
</div>
</button>
<button
data-tooltip-label="Notificações"
class="group p-2 rounded-lg hover:bg-surface-100 transition-colors relative">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path>
</svg>
<div class="absolute w-2 h-2 rounded-full bg-red-500 -top-1 right-0 border-2 border-white"></div>
<div class="absolute -bottom-10 left-0 hidden group-hover:block bg-surface-800 text-xs text-white py-1 px-2 rounded whitespace-nowrap">
Notificações
</div>
</button>
<div class="group flex items-center cursor-pointer ml-2">
<div class="flex relative">
<img class="w-9 h-9 rounded-full object-cover" src="data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='6' r='4' fill='%230066cc'/%3e%3cpath d='M15 15c0-3-3-5-5-5s-5 2-5 5' fill='%23e0f0ff'/%3e%3c/svg%3e" alt="User Settings">
<div class="absolute -bottom-1 -right-1 w-4 h-4 bg-brand-500 rounded-full border-2 border-white flex items-center justify-center p-0.5">
<svg class="text-white w-3" viewBox="0 0 20 20" fill="currentColor">
<path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z" />
</svg>
</div>
</div>
<div class="ml-2 text-sm hidden md:block">
<div class="font-medium text-surface-900">Carlos Teixeira</div>
<div class="text-surface-500">Administrador</div>
</div>
</div>
</div>
</div>
</header>
<div class="flex flex-1 overflow-hidden">
<!-- Sidebar -->
<aside id="sidebar" class="bg-white sidebar-shadow w-64 shrink-0 h-full flex flex-col py-3 transition-all max-lg:-ml-64 lg:ml-0">
<div class="px-4 mb-6">
<div class="font-medium text-xs uppercase tracking-wider text-surface-500 mb-3 px-2">
Menu Principal
</div>
<nav>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg bg-brand-50 text-brand-600 transition-colors group">
<svg class="w-5 h-5 mr-2 group-hover:opacity-80" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3 12l2 -2m0 0l7 -7l7 7m-7 -7v10" />
<path d="M5 10v10a1 1 0 0 0 1 1h3m10 -12l2 2m-2 -2v10a1 1 0 0 1 -1 1h-3m-6 0a1 1 0 0 0 1 -1v-4a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1m-6 0h6" />
</svg>
Dashboard
</a>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg text-surface-800 border border-brand-200 bg-brand-500/10">
<svg class="w-5 h-5 mr-2 text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9.825 15h-3.5a1 1 0 0 1 -.866 -1.5l4.5 -7.5a1 1 0 0 1 1.731 1l-1.673 2.79" />
<path d="M14.17 15h1.5a1 1 0 0 0 .89 -1.474l-3.342 -5.974a1 1 0 0 0 -1.79 0l-.842 1.5" />
<path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" />
</svg>
Fluxos
</a>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg hover:bg-surface-100 text-surface-700 transition-colors group">
<svg class="w-5 h-5 mr-2 group-hover:text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M14 6l7 7l-4 4" />
<path d="M5.828 18.172a2.828 2.828 0 0 0 4 0l10.586 -10.586a2 2 0 0 0 0 -2.829l-1.171 -1.171a2 2 0 0 0 -2.829 0l-10.586 10.586a2.828 2.828 0 0 0 0 4z" />
<path d="M4 20l1.768 -1.768" />
</svg>
Campanhas
</a>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg hover:bg-surface-100 text-surface-700 transition-colors group">
<svg class="w-5 h-5 mr-2 group-hover:text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M12 3l8 4.5v9l-8 4.5l-8 -4.5v-9l8 -4.5" />
<path d="M12 12l8 -4.5" />
<path d="M8.2 9.8l7.6 -4.6" />
<path d="M12 12v9" />
<path d="M12 12l-8 -4.5" />
</svg>
Públicos
</a>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg hover:bg-surface-100 text-surface-700 transition-colors group">
<svg class="w-5 h-5 mr-2 group-hover:text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M7 3m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" />
<path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" />
<path d="M11 11v3" />
<path d="M11 16v3" />
<path d="M8 16v3" />
<path d="M16 13v4" />
</svg>
Templates
</a>
</nav>
</div>
<div class="px-4 mb-6">
<div class="font-medium text-xs uppercase tracking-wider text-surface-500 mb-3 px-2">
Configurações
</div>
<nav>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg hover:bg-surface-100 text-surface-700 transition-colors group">
<svg class="w-5 h-5 mr-2 group-hover:text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
<path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" />
</svg>
Configurações
</a>
<a href="#"
class="font-medium flex items-center py-2 px-3 my-1 rounded-lg hover:bg-surface-100 hover:text-red-600 text-surface-700 transition-colors group">
<svg class="w-5 h-5 mr-2 group-hover:text-red-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" />
<path d="M7 12h14l-3 -3m0 6l3 -3" />
</svg>
Sair da conta
</a>
</nav>
</div>
<div class="mt-auto px-4 pt-3 border-t border-surface-200">
<div class="text-center text-xs">
<div class="text-surface-600 mb-1">Conectado à API FFID</div>
<div class="flex items-center text-surface-500 justify-center">
<span class="w-2 h-2 rounded-full bg-green-500 mr-2"></span>
Sistema operacional normal
</div>
</div>
</div>
</aside>
<!-- Main Content Area -->
<main class="flex-1 flex flex-col overflow-hidden custom-scrollbar">
<div class="flex-1 overflow-y-auto">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-6 mb-8">
<div>
<h2 class="text-2xl md:text-3xl font-bold text-surface-900">Criar novo fluxo</h2>
<p class="text-surface-500 mt-1">Arraste e solte elementos para construir seu fluxo de automação</p>
</div>
<div class="flex gap-2">
<button class="px-4 py-2.5 flex items-center rounded-lg bg-surface-200 text-surface-700 hover:bg-surface-300 transition-colors">
Salvar como rascunho
</button>
<button class="px-4 py-2.5 flex items-center gap-2 rounded-lg bg-brand-500 hover:bg-brand-600 text-white transition-colors">
Publicar fluxo
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" />
<path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M14 4l0 4l-6 0l0 -4" />
</svg>
</button>
</div>
</div>
<!-- Workflow Builder -->
<div class="bg-white rounded-2xl border border-surface-300 overflow-hidden">
<!-- Toolbar -->
<div class="border-b border-surface-300 bg-surface-50 flex justify-between items-center px-5 py-2">
<div class="flex items-center gap-1">
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M12 20l-7 -7a4 4 0 0 1 6.5 -6a.9 .9 0 0 0 1 0a4 4 0 0 1 6.5 6l-7 7" />
</svg>
</button>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M15 6l.01 0" />
<path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4" />
<path d="M13.5 6.5l4 4" />
</svg>
</button>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" />
<path d="M20.385 3.385a2.099 2.099 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" />
<path d="M16 5l3 3" />
</svg>
</button>
<div class="w-px h-6 bg-surface-300 mx-2"></div>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M15 6l.01 0" />
<path d="M3 12l4 -6.5m4 0l4 6.5m4 0l.5 -4" />
<path d="M14 18l-.01 0" />
<path d="M10 12h4" />
</svg>
</button>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M19 16l-2 3h4l-2 3" />
<path d="M9 5h-3a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2 -2v-6.5" />
<path d="M3 10h11" />
<path d="M7 15l1.5 2" />
<path d="M16 10v4h2" />
</svg>
</button>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M21 12a9 9 0 1 1 -18 0a9 9 0 0 1 18 0z" />
<path d="M6 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M12 18h.01" />
<path d="M9.5 15h5" />
<path d="M10 6l4 6l-4 6" />
</svg>
</button>
</div>
<div class="flex items-center gap-1">
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 4h6a2 2 0 0 1 2 2v14l-5 -3l-5 3v-14a2 2 0 0 1 2 -2" />
</svg>
</button>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0" />
<path d="M6 21v-2a4 4 0 0 1 4 -4h4" />
<path d="M12.5 17h6" />
<path d="M16 15l2.5 2.5m0 -2.5l-2.5 2.5" />
</svg>
</button>
<button class="p-2 rounded-md bg-surface-200 text-surface-800 flex items-center gap-1">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M12 20l-3 1v-8.5l-8 -5v-.5a8 8 0 0 1 16 0v5" />
<path d="M12 20v-3a3 3 0 0 0 -2.824 -2.995l-.176 -.005h-1a3 3 0 0 0 -2.995 2.824l-.005 .176a3 3 0 0 0 2.824 2.995l.176 .005h1a2 2 0 0 1 2 2v3" fill="currentColor"/>
</svg>
100%
</button>
<div class="flex gap-1">
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 6v-3h-12v3" />
<path d="M4 10l5 2" />
<path d="M20 10l-5 2" />
<path d="M4 18l5 -2" />
<path d="M20 18l-5 -2" />
</svg>
</button>
<button class="p-2 rounded-md hover:bg-surface-200 text-surface-600 transition-colors">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M4 20l14 0" />
</svg>
</button>
<button class="p-2 rounded-md bg-surface-200 text-surface-900 font-medium">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 6l6 0" />
<path d="M9 12l6 0" />
<path d="M9 18l6 0" />
</svg>
</button>
</div>
</div>
</div>
<!-- Editor Area -->
<div class="flex-1 flex min-h-[500px] lg:flex-row flex-col">
<!-- Palette -->
<div class="w-full lg:w-64 border-r border-surface-300 bg-surface-50 shadow-inner flex flex-col">
<div class="p-3 border-b border-surface-300 bg-surface-100 flex">
<input
type="text"
placeholder="Buscar elementos..."
class="w-full py-1.5 px-3 text-sm rounded-lg bg-white border border-surface-300 focus:border-brand-400 focus:ring-1 focus:ring-blue-100 transition-colors">
</div>
<div class="flex-1 overflow-y-auto p-4">
<div class="mb-5">
<h3 class="font-medium text-surface-900 mb-2 flex items-center gap-2 text-sm">
<span class="block w-3 h-3 rounded bg-brand-500"></span>
Disparadores
</h3>
<div id="trigger-palette" class="space-y-2">
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-brand-500/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9.5 2a2.5 2.5 0 0 1 2 4a7 7 0 0 1 4.5 6v3a4 4 0 1 1 -8 0v-3a7 7 0 0 1 4.5 -6a2.5 2.5 0 0 1 2 -4z" />
<path d="M11.25 17c.5.5 1 .5 1.5 0" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Webhook</div>
<div class="text-xs text-surface-500">Dispara ao receber ativação HTTP</div>
</div>
</div>
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-brand-500/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M4 4m0 1a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1z" />
<path d="M7 9h1m1 0h1m-3 0v1m-1 3h1m1 0h1m-3 0v1m5 -7h4v4h-4z" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Agendamento</div>
<div class="text-xs text-surface-500">Dispara em data/hora específica</div>
</div>
</div>
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-brand-500/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" />
<path d="M3 3v4.5m0 0l4.5 -4m-4.5 4l4.5 4" />
<path d="M3 12v4.5m0 0l4.5 4m-4.5 -4l4.5 -4" />
<path d="M21 9h-4.5a1.5 1.5 0 0 1 0 -3h3" />
<path d="M3 12h4.5a1.5 1.5 0 0 1 0 3h-3" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Entrada por Segmento</div>
<div class="text-xs text-surface-500">Dispara para públicos específicos</div>
</div>
</div>
</div>
</div>
<div class="mb-5">
<h3 class="font-medium text-surface-900 mb-2 flex items-center gap-2 text-sm">
<span class="block w-3 h-3 rounded bg-accent-500"></span>
Ações
</h3>
<div id="action-palette" class="space-y-2">
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-accent-500/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-accent-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3 8l6 3l4 -3l7 3v7a2 2 0 0 1 -2 2h-9a2 2 0 0 1 -2 -2v-5" />
<path d="M8 7l4 -1l4 1" />
<path d="M18 4l-3 1" />
<path d="M19 5v4l-1 1" />
<path d="M3 7l1 4" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Enviar Email</div>
<div class="text-xs text-surface-500">Envio via provedor integrado</div>
</div>
</div>
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-accent-500/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-accent-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9.5 3h5a1.5 1.5 0 0 1 1.5 1.5v12a1.5 1.5 0 0 1 -1.5 1.5h-5a1.5 1.5 0 0 1 -1.5 -1.5v-12a1.5 1.5 0 0 1 1.5 -1.5" />
<path d="M8 7l2.5 2.5l.5 -.5" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Enviar WhatsApp</div>
<div class="text-xs text-surface-500">Utilizando WhatsApp Business API</div>
</div>
</div>
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-accent-500/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-accent-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z" />
<path d="M8 10l8 0" />
<path d="M8 14l4 0" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Enviar SMS</div>
<div class="text-xs text-surface-500">Mensagens de texto via plugável</div>
</div>
</div>
</div>
</div>
<div>
<h3 class="font-medium text-surface-900 mb-2 flex items-center gap-2 text-sm">
<span class="block w-3 h-3 rounded bg-brand-700/80"></span>
Fluxo de trabalho
</h3>
<div class="space-y-2">
<div class="draggable-item" draggable="true">
<div class="w-7 h-7 rounded-lg bg-brand-700/10 flex items-center justify-center mr-2 shrink-0">
<svg class="w-4 h-4 text-brand-700" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M4 5a1 1 0 0 1 .3 -.714a6 6 0 0 1 8.213 -.176l.351 .328a4 4 0 0 0 5.272 0l.249 -.227c.61 -.483 1.527 -.097 1.61 .676l.005 .113v9a1 1 0 0 1 -.3 .714a6 6 0 0 1 -8.213 .176l-.351 -.328a4 4 0 0 0 -5.136 -.114v.1a1 1 0 0 1 -1.993 .117l-.007 -.117v-9z" />
<path d="M8 6a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" />
<path d="M12 5l0 6" />
</svg>
</div>
<div>
<div class="font-medium text-sm">Requisição HTTP</div>
<div class="text-xs text-surface-500">Integre qualquer API externa</div>
</div>
</div>
</div>
</div>
</div>
<div class="mt-auto p-3 bg-surface-100 border-t border-surface-300 text-center text-xs text-surface-500">
6 integrações disponíveis
</div>
</div>
<!-- Canvas -->
<div class="flex-1 overflow-auto relative custom-scrollbar">
<div class="flex h-full">
<!-- Mini-map -->
<div class="w-40 shrink-0 hidden md:block bg-surface-50 border-l border-surface-300 overflow-auto custom-scrollbar">
<div class="p-2 sticky top-0 bg-surface-100 border-b border-surface-200 text-center text-xs font-medium">
Mini-mapa
</div>
<div class="p-4">
<div class="bg-white border border-surface-300 rounded relative" style="height: 120px"></div>
<div class="mt-4">
<h4 class="text-xs font-medium text-surface-700 mb-1">Estados do fluxo:</h4>
<div class="space-y-1">
<div class="flex items-center text-xs">
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
<span>Ativo (3)</span>
</div>
<div class="flex items-center text-xs">
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
<span>Pausado (1)</span>
</div>
<div class="flex items-center text-xs">
<div class="w-3 h-3 rounded-full bg-orange-500 mr-2"></div>
<span>Rascunho (2)</span>
</div>
</div>
</div>
</div>
</div>
<!-- Flow Area -->
<div class="flex-1 overflow-auto bg-surface-200">
<div id="flow-canvas" class="relative flex justify-center items-center min-h-[600px] p-8">
<!-- Notice for Editor -->
<div class="absolute top-8 text-center max-w-md">
<svg class="w-12 h-12 text-surface-300 mx-auto" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M7 16v4" />
<path d="M17 10v-2l-5 -1" />
<path d="M9 9l0 .01" />
<path d="M8 13l2 -1" />
<path d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M4 12l3 0" />
<path d="M4 8l3 0" />
<path d="M4 16l3 0" />
</svg>
<h3 class="text-xl font-medium text-surface-600 mt-4">Canvas do fluxo</h3>
<p class="text-surface-500 mt-2">
Comece arrastando elementos da paleta para criar sua automação
</p>
</div>
<!-- Demo workflow for visualization -->
<div class="hidden lg:block absolute top-[120px] left-[280px] transform scale-90 origin-top-left">
<!-- Sample Trigger -->
<div class="node w-44 node-trigger">
<div class="node-header bg-brand-500/10 flex justify-between items-center p-2">
<div class="flex items-center gap-1">
<svg class="w-4 h-4 text-brand-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9.5 2a2.5 2.5 0 0 1 2 4a7 7 0 0 1 4.5 6v3a4 4 0 1 1 -8 0v-3a7 7 0 0 1 4.5 -6a2.5 2.5 0 0 1 2 -4z" />
<path d="M11.25 17c.5.5 1 .5 1.5 0" />
</svg>
<span class="text-xs font-medium">Webhook Trigger</span>
</div>
<button class="p-1 rounded-md text-surface-500 hover:bg-surface-500/10">
<svg class="w-3 h-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 12l-6 6m0 -6l6 6" />
</svg>
</button>
</div>
<div class="p-3 bg-white">
<div class="text-xs text-surface-500 flex flex-wrap gap-0.5">
<span class="bg-surface-100 rounded-full px-2 py-0.5">url-exemplo</span>
</div>
</div>
<div class="absolute bottom-3 right-3">
<div class="node-handle"></div>
</div>
</div>
<!-- Sample Action -->
<div class="node w-56 node-action transform left-[220px] top-[120px] absolute">
<div class="node-header bg-accent-500/10 flex justify-between items-center p-2">
<div class="flex items-center gap-1">
<svg class="w-4 h-4 text-accent-500" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9.5 3h5a1.5 1.5 0 0 1 1.5 1.5v12a1.5 1.5 0 0 1 -1.5 1.5h-5a1.5 1.5 0 0 1 -1.5 -1.5v-12a1.5 1.5 0 0 1 1.5 -1.5" />
<path d="M8 7l2.5 2.5l.5 -.5" />
</svg>
<span class="text-xs font-medium">Enviar WhatsApp</span>
</div>
<button class="p-1 rounded-md text-surface-500 hover:bg-surface-500/10">
<svg class="w-3 h-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 12l-6 6m0 -6l6 6" />
</svg>
</button>
</div>
<div class="p-3 bg-white">
<div class="text-xs text-surface-500 flex flex-wrap gap-0.5">
<span class="bg-surface-100 rounded-full px-2 py-0.5">mensagem-boas-vindas</span>
<span class="bg-surface-100 rounded-full px-2 py-0.5">atualizacoes</span>
</div>
</div>
<div class="absolute bottom-3 right-3">
<div class="node-handle"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Inspector Panel -->
<div class="w-80 hidden xl:block bg-surface-50 border-l border-surface-300 overflow-auto custom-scrollbar">
<div class="p-3 sticky top-0 bg-surface-100 border-b border-surface-200 text-center">
<h3 class="text-sm font-medium">Propriedades</h3>
</div>
<div class="p-4">
<div class="mb-5">
<h4 class="text-sm font-medium text-surface-700 mb-2">Nó Selecionado</h4>
<p class="text-sm text-surface-500">Nenhum nó selecionado</p>
</div>
<div class="mb-5">
<h4 class="text-sm font-medium text-surface-700 mb-2">Nome do Fluxo</h4>
<input
type="text"
placeholder="Dê um nome ao fluxo"
class="w-full py-1.5 px-3 text-sm rounded-lg bg-white border border-surface-300 focus:border-brand-400 focus:ring-1 focus:ring-blue-100 transition-colors">
</div>
<div class="mb-5">
<h4 class="text-sm font-medium text-surface-700 mb-2">Status do Fluxo</h4>
<div class="flex gap-2">
<button class="flex-1 py-1.5 text-xs rounded-lg border border-surface-300 text-surface-700 bg-white
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=daopapp/pilot" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |