{"id":16,"date":"2025-04-17T14:56:17","date_gmt":"2025-04-17T14:56:17","guid":{"rendered":"https:\/\/proposta.ag9.com.br\/?p=16"},"modified":"2025-04-17T14:56:51","modified_gmt":"2025-04-17T14:56:51","slug":"formulario","status":"publish","type":"post","link":"https:\/\/proposta.ag9.com.br\/?p=16","title":{"rendered":"Formul\u00e1rio"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"16\" class=\"elementor elementor-16\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6811c5f e-con-full e-flex e-con e-parent\" data-id=\"6811c5f\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3f9950f2 elementor-widget elementor-widget-image\" data-id=\"3f9950f2\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png\" title=\"\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-468a4487 elementor-widget elementor-widget-html\" data-id=\"468a4487\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\r\n    const dominioAtual = window.location.origin;\r\n    const urlsModelo = {\r\n        modelo01: `${dominioAtual}\/proposta-foto`,\r\n        modelo02: `${dominioAtual}\/proposta-foto2`\r\n    };\r\n<\/script>\r\n\r\n<style>\r\n    .formProposta {\r\n        width: 25vw;\r\n        background: rgba(255, 255, 255, 0.05);\r\n        padding: 20px;\r\n        border-radius: 10px;\r\n        border: 1px solid rgba(255,255,255,0.1);\r\n    }\r\n    \r\n    @media(max-width:1366px){\r\n        .formProposta{\r\n            width: 35vw;\r\n        }\r\n    }\r\n    \r\n    @media(max-width:1024px){\r\n        .formProposta{\r\n            width: 90vw;\r\n        }\r\n    }\r\n\r\n    input,\r\n    label {\r\n        margin-bottom: 5px;\r\n    }\r\n\r\n    label {\r\n        color: rgba(255, 255, 255, 0.6);\r\n    }\r\n\r\n    input {\r\n        width: 100%;\r\n        height: 32px;\r\n        font-size: 16px;\r\n        padding: 5px;\r\n        font-family: Sans-Serif;\r\n        background-color: rgba(255, 255, 255, 0.15);\r\n        border-radius: 5px;\r\n        border: 1px solid rgba(0, 0, 0, 0.3);\r\n        color: rgba(255, 255, 255, 0.6);\r\n    }\r\n\r\n    .btn-gerador {\r\n        cursor: pointer;\r\n        padding: 12px;\r\n        width: 100%;\r\n        background: linear-gradient(to right, #fabf00, #ff268c);\r\n        border-radius: 5px;\r\n        font-weight: 700;\r\n        font-size: 18px;\r\n        color: #000;\r\n        border: 0px solid rgba(0, 0, 0, 0.3);\r\n        text-align: center;\r\n        align-self: center;\r\n    }\r\n\r\n    a {\r\n        color: #fff !important;\r\n    }\r\n\r\n    .modelos {\r\n        display: flex;\r\n        flex-direction: row;\r\n        gap: 5px;\r\n        justify-content: space-between;\r\n        margin-bottom: 30px;\r\n    }\r\n\r\n    .modelo {\r\n        width: 100%;\r\n        height: auto;\r\n        border-radius: 10px !important;\r\n        overflow: hidden;\r\n        cursor: pointer;\r\n        border: 2px solid transparent;\r\n    }\r\n\r\n    .modelo.selecionado {\r\n        border: 2px solid #fabf00;\r\n    }\r\n    \r\n    #linkGerado {\r\n        margin-top: 10px;\r\n        color: #000!important;\r\n    }\r\n<\/style>\r\n\r\n<div class='formProposta'>\r\n    <form id=\"formProposta\">\r\n        <label for=\"cliente\">Nome do Cliente:<\/label><br>\r\n        <input type=\"text\" id=\"cliente\" name=\"cliente\" required><br>\r\n\r\n        <label for=\"envio\">Data de Envio:<\/label><br>\r\n        <input type=\"date\" id=\"envio\" name=\"envio\" required><br>\r\n\r\n        <label for=\"validade\">Validade (dias):<\/label><br>\r\n        <input type=\"number\" id=\"validade\" name=\"validade\" required><br><br>\r\n\r\n        <label for=\"valorPlanoUm\">Valor do Plano 1:<\/label><br>\r\n        <input type=\"number\" id=\"valorPlanoUm\" name=\"valorPlanoUm\" required><br>\r\n\r\n        <label for=\"valorPlanoDois\">Valor do Plano 2:<\/label><br>\r\n        <input type=\"number\" id=\"valorPlanoDois\" name=\"valorPlanoDois\" required><br>\r\n\r\n        <label for=\"valorPlanoTres\">Valor do Plano 3:<\/label><br>\r\n        <input type=\"number\" id=\"valorPlanoTres\" name=\"valorPlanoTres\" required><br><br>\r\n\r\n        <label>Modelo:<\/label><br>\r\n\r\n        <div class='modelos'>\r\n            <img class='modelo' src='\/wp-content\/uploads\/2024\/09\/modelo01.jpg' data-modelo=\"modelo01\" onclick=\"selecionarModelo(this)\">\r\n            <img class='modelo' src='\/wp-content\/uploads\/2024\/09\/modelo02.jpg' data-modelo=\"modelo02\" onclick=\"selecionarModelo(this)\">\r\n        <\/div>\r\n\r\n        <button type=\"button\" class=\"btn-gerador\" onclick=\"gerarLink()\">GERAR PROPOSTA<\/button>\r\n    <\/form>\r\n\r\n    <p id=\"linkGerado\"><\/p>\r\n<\/div>\r\n\r\n<script>\r\n    let modeloSelecionado = '';\r\n\r\n    function selecionarModelo(elemento) {\r\n        document.querySelectorAll('.modelo').forEach(img => img.classList.remove('selecionado'));\r\n        elemento.classList.add('selecionado');\r\n        modeloSelecionado = elemento.getAttribute('data-modelo');\r\n    }\r\n\r\n    function formatarDataParaBrasileiro(data) {\r\n        const [ano, mes, dia] = data.split('-');\r\n        return `${dia}\/${mes}\/${ano}`;\r\n    }\r\n\r\n   function gerarLink() {\r\n    const cliente = document.getElementById('cliente').value;\r\n    const envio = document.getElementById('envio').value;\r\n    const validade = document.getElementById('validade').value;\r\n    const valorPlanoUm = document.getElementById('valorPlanoUm').value;\r\n    const valorPlanoDois = document.getElementById('valorPlanoDois').value;\r\n    const valorPlanoTres = document.getElementById('valorPlanoTres').value;\r\n\r\n    const envioFormatado = formatarDataParaBrasileiro(envio);\r\n\r\n    if (!modeloSelecionado) {\r\n        alert('Por favor, selecione um modelo de proposta.');\r\n        return;\r\n    }\r\n\r\n    const urlBase = urlsModelo[modeloSelecionado];\r\n    const url = `${urlBase}?cliente=${encodeURIComponent(cliente)}&envio=${encodeURIComponent(envioFormatado)}&validade=${encodeURIComponent(validade)}&valorPlanoUm=${encodeURIComponent(valorPlanoUm)}&valorPlanoDois=${encodeURIComponent(valorPlanoDois)}&valorPlanoTres=${encodeURIComponent(valorPlanoTres)}`;\r\n\r\n    const linkGerado = document.getElementById('linkGerado');\r\n    linkGerado.innerHTML = `<a href=\"${url}\" target=\"_blank\" id=\"linkProposta\">ACESSAR PROPOSTA<\/a>`;\r\n\r\n    const link = document.getElementById('linkProposta');\r\n    \r\n    if (modeloSelecionado === 'modelo01') {\r\n        linkGerado.style.backgroundColor = 'red';\r\n    } else if (modeloSelecionado === 'modelo02') {\r\n        linkGerado.style.backgroundColor = 'green';\r\n    }\r\n    \r\n    linkGerado.style.padding = '12px 10px';\r\n    linkGerado.style.borderRadius = '5px';\r\n    linkGerado.style.border = '1px solid rgba(0,0,0,0.3)';\r\n    linkGerado.style.width = '100%';\r\n    linkGerado.style.fontWeight = '700';\r\n    linkGerado.style.fontSize = '18px';\r\n    linkGerado.style.textAlign = 'center';\r\n\r\n    linkGerado.style.color = '#000000';\r\n}\r\n<\/script>\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Nome do Cliente: Data de Envio: Validade (dias): Valor do Plano 1: Valor do Plano 2: Valor do Plano 3: Modelo: GERAR PROPOSTA<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_canvas","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Formul\u00e1rio - Proposta AG9<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/proposta.ag9.com.br\/?p=16\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Formul\u00e1rio - Proposta AG9\" \/>\n<meta property=\"og:description\" content=\"Nome do Cliente: Data de Envio: Validade (dias): Valor do Plano 1: Valor do Plano 2: Valor do Plano 3: Modelo: GERAR PROPOSTA\" \/>\n<meta property=\"og:url\" content=\"https:\/\/proposta.ag9.com.br\/?p=16\" \/>\n<meta property=\"og:site_name\" content=\"Proposta AG9\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-17T14:56:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-17T14:56:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/proposta.ag9.com.br\/?p=16\",\"url\":\"https:\/\/proposta.ag9.com.br\/?p=16\",\"name\":\"Formul\u00e1rio - Proposta AG9\",\"isPartOf\":{\"@id\":\"https:\/\/proposta.ag9.com.br\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/proposta.ag9.com.br\/?p=16#primaryimage\"},\"image\":{\"@id\":\"https:\/\/proposta.ag9.com.br\/?p=16#primaryimage\"},\"thumbnailUrl\":\"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png\",\"datePublished\":\"2025-04-17T14:56:17+00:00\",\"dateModified\":\"2025-04-17T14:56:51+00:00\",\"author\":{\"@id\":\"https:\/\/proposta.ag9.com.br\/#\/schema\/person\/3f698bfa9cb4615658d20835054f43e9\"},\"breadcrumb\":{\"@id\":\"https:\/\/proposta.ag9.com.br\/?p=16#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/proposta.ag9.com.br\/?p=16\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/proposta.ag9.com.br\/?p=16#primaryimage\",\"url\":\"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png\",\"contentUrl\":\"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/proposta.ag9.com.br\/?p=16#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/proposta.ag9.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Formul\u00e1rio\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/proposta.ag9.com.br\/#website\",\"url\":\"https:\/\/proposta.ag9.com.br\/\",\"name\":\"Proposta AG9\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/proposta.ag9.com.br\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/proposta.ag9.com.br\/#\/schema\/person\/3f698bfa9cb4615658d20835054f43e9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/proposta.ag9.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f40f396e7f327628f98ca1f98f5b682ccf01181d35a8878fb22f90edaa0f37d1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f40f396e7f327628f98ca1f98f5b682ccf01181d35a8878fb22f90edaa0f37d1?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/proposta.ag9.com.br\"],\"url\":\"https:\/\/proposta.ag9.com.br\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Formul\u00e1rio - Proposta AG9","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/proposta.ag9.com.br\/?p=16","og_locale":"pt_BR","og_type":"article","og_title":"Formul\u00e1rio - Proposta AG9","og_description":"Nome do Cliente: Data de Envio: Validade (dias): Valor do Plano 1: Valor do Plano 2: Valor do Plano 3: Modelo: GERAR PROPOSTA","og_url":"https:\/\/proposta.ag9.com.br\/?p=16","og_site_name":"Proposta AG9","article_published_time":"2025-04-17T14:56:17+00:00","article_modified_time":"2025-04-17T14:56:51+00:00","og_image":[{"url":"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/proposta.ag9.com.br\/?p=16","url":"https:\/\/proposta.ag9.com.br\/?p=16","name":"Formul\u00e1rio - Proposta AG9","isPartOf":{"@id":"https:\/\/proposta.ag9.com.br\/#website"},"primaryImageOfPage":{"@id":"https:\/\/proposta.ag9.com.br\/?p=16#primaryimage"},"image":{"@id":"https:\/\/proposta.ag9.com.br\/?p=16#primaryimage"},"thumbnailUrl":"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png","datePublished":"2025-04-17T14:56:17+00:00","dateModified":"2025-04-17T14:56:51+00:00","author":{"@id":"https:\/\/proposta.ag9.com.br\/#\/schema\/person\/3f698bfa9cb4615658d20835054f43e9"},"breadcrumb":{"@id":"https:\/\/proposta.ag9.com.br\/?p=16#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/proposta.ag9.com.br\/?p=16"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/proposta.ag9.com.br\/?p=16#primaryimage","url":"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png","contentUrl":"https:\/\/proposta.ag9.com.br\/wp-content\/plugins\/elementor\/assets\/images\/placeholder.png"},{"@type":"BreadcrumbList","@id":"https:\/\/proposta.ag9.com.br\/?p=16#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/proposta.ag9.com.br\/"},{"@type":"ListItem","position":2,"name":"Formul\u00e1rio"}]},{"@type":"WebSite","@id":"https:\/\/proposta.ag9.com.br\/#website","url":"https:\/\/proposta.ag9.com.br\/","name":"Proposta AG9","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/proposta.ag9.com.br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/proposta.ag9.com.br\/#\/schema\/person\/3f698bfa9cb4615658d20835054f43e9","name":"admin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/proposta.ag9.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f40f396e7f327628f98ca1f98f5b682ccf01181d35a8878fb22f90edaa0f37d1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f40f396e7f327628f98ca1f98f5b682ccf01181d35a8878fb22f90edaa0f37d1?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/proposta.ag9.com.br"],"url":"https:\/\/proposta.ag9.com.br\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":4,"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/proposta.ag9.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}