-
Notifications
You must be signed in to change notification settings - Fork 1
/
ferramenta-templates.html
407 lines (386 loc) · 31.5 KB
/
ferramenta-templates.html
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:100" rel="stylesheet">
<link rel="stylesheet" href="./arquivos/styles.css">
<link rel="shortcut icon" href="/arquivos/logo nextfit.png" />
<script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://kit.fontawesome.com/a366e9213f.js" crossorigin="anonymous"></script>
<title>Ferramenta de Templates</title>
</head>
<body id="body">
<div id="background" style="display: none;"></div>
<div id="popup" style="display: none;">
<p id="XQuit" onclick="fechaPopUp()">X</p>
<p id="titlePopup">O QUE HÁ DE NOVO?</p>
<div id="btns">
<p id="btnPopUp1">Novos retornos de erros</p>
</div>
<div id="textPopup"></div>
</div>
<!-- POPUP DE AJUDA ARGUMENTAÇÃO TEMPLATE -->
<div id="backgroundHelp" style="display: none;"></div>
<div id="popupHelp" style="display: none;">
<p id="XQuitHelp" onclick="fechaPopUpHelp()">X</p>
<p id="titlePopupHelp">Como posso ajudar?</p>
<p id="duvidaRecorrenteTitle">Dúvidas recorrentes</p>
<div class="btnsHelp">
<button id="btnHelp1" onclick="showHelp('help1')">O que é template e contrato?</button>
<button id="btnHelp2" onclick="showHelp('help2')">Como a assinatura é validada?</button>
<button id="btnHelp3" onclick="showHelp('help3')">O que é assinatura eletrônica?</button>
</div>
<br>
<div id="answers1">
</div>
<br>
<p id="pSugestion">Tem alguma sugestão de argumentação?</p>
<a href="https://forms.gle/bjCg1tCn5DRgkxHp7" target="_blank" id="aBtnForm2"><button id="btnForm2"><i class="fa-regular fa-file-lines" id="icon5"></i>GOOGLE FORMS</button></a>
</div>
<!-- POPUP DE VERIFICAÇÃO IF -->
<div id="backgroundHelpIf" style="display: none;"></div>
<div id="popupSeeMoreIf" style="display: none;">
<p id="XQuitHelp" onclick="fechaSeeMoreIf()">X</p>
<p id="titlePopupHelp">Como corrigir um IF mal formatado?</p>
<div class="section-text">
<p id="duvidaRecorrenteTitle">Verifique se o IF possui abertura e fechamento:</p>
<p id="duvidaExplicacao">
Por padrão, o if possui abertura (<<if [ValorAdesao > 0]>>) e fechamento (<</if>>).
Se a estrutura não possuir um desses dois, dá erro.
<br>
- Estrutura correta: <span class="duvidaBold"><<if [ValorAdesao > 0]>> *CONTEÚDO* <</if>></span>
<br>
- Estrutura incorreta (sem fechamento): <span class="duvidaBold"><<if [ValorAdesao > 0]>> *CONTEÚDO*.</span>
</p>
</div>
<hr class="hr-popup">
<div class="section-text">
<p id="duvidaRecorrenteTitle">Verifique a sintaxe:</p>
<p id="duvidaExplicacao">
Se uma abertura ou fechamento estiver escrito incorretamente, isso gera um erro.
Qualquer caractere incorreto na abertura e fechamento podem causar erros.
<br>
- Sintaxe correta: <span class="duvidaBold"><<if [ValorAdesao > 0]>> *CONTEÚDO* <</if>></span>
<br>
- Sintaxe incorreta (fechamento com apenas uma chave final): <<if [ValorAdesao > 0]>> *CONTEÚDO* <span class="duvidaBold"><</if>.</span>
<br>
- Sintaxe incorreta (abertura com apenas uma chave final): <span class="duvidaBold"><<if [ValorAdesao > 0]></span> *CONTEÚDO* <</if>>.
</p>
</div>
<hr class="hr-popup">
<div class="section-text">
<p id="duvidaRecorrenteTitle">Verifique o tamanho:</p>
<p id="duvidaExplicacao">
Se o template <span class="duvidaBold">possuir estruturas mais complexas</span> (com if e foreach dentro da mesma estrutura),
a Ferramenta de Templates <span class="duvidaBold">pode confundir e identificar erros equivocadamente.</span> Considere remover toda a estrutura
complexa e verificar se o erro persiste. É possível que o erro não esteja na estrutura.
</p>
</div>
<hr class="hr-popup">
<div class="section-text2">
<p id="duvidaRecorrenteTitle">Vídeo exemplo mostrando os erros:</p>
<p id="duvidaExplicacao">
Verifique os erros de IF que podem ocorrer, e como corrigi-los:
<a href="https://www.loom.com/share/4a84f25d9c8d4e0c946c51b4256b42dd?sid=60e6d272-d3df-4ca6-8023-365ae35bc59c" target="_blank" class="view-video-help">VISUALIZAR</a>
</p>
</div>
<br>
<p id="pSugestion">Tem alguma sugestão?</p>
<a href="https://forms.gle/bjCg1tCn5DRgkxHp7" target="_blank" id="aBtnForm2"><button id="btnForm2"><i class="fa-regular fa-file-lines" id="icon5"></i>GOOGLE FORMS</button></a>
</div>
<!-- POPUP DE VERIFICAÇÃO ForEach -->
<div id="backgroundHelpForeach" style="display: none;"></div>
<div id="popupSeeMoreForeach" style="display: none;">
<p id="XQuitHelp" onclick="fechaSeeMoreForeach()">X</p>
<p id="titlePopupHelp">Como corrigir um ForEach mal formatado?</p>
<div class="section-text">
<p id="duvidaRecorrenteTitle">Verifique se o ForEach possui abertura e fechamento:</p>
<p id="duvidaExplicacao">
Por padrão, o ForEach possui abertura (<<foreach [modalidade in Modalidades]>>) e fechamento (<</foreach>>).
Se a estrutura não possuir um desses dois, dá erro.
<br>
- Estrutura correta: <span class="duvidaBold"><<foreach [modalidade in Modalidades]>> *CONTEÚDO* <</foreach>></span>
<br>
- Estrutura incorreta (sem fechamento): <span class="duvidaBold"><<foreach [modalidade in Modalidades]>> *CONTEÚDO*.</span>
</p>
</div>
<hr class="hr-popup">
<div class="section-text">
<p id="duvidaRecorrenteTitle">Verifique a sintaxe:</p>
<p id="duvidaExplicacao">
Se uma abertura ou fechamento estiver escrito incorretamente, isso gera um erro.
Qualquer caractere incorreto na abertura e fechamento podem causar erros.
<br>
- Sintaxe correta: <span class="duvidaBold"><<foreach [modalidade in Modalidades]>> *CONTEÚDO* <</foreach>></span>
<br>
- Sintaxe incorreta (fechamento com apenas uma chave final): <<foreach [modalidade in Modalidades]>> *CONTEÚDO* <span class="duvidaBold"><</foreach>.</span>
<br>
- Sintaxe incorreta (abertura com apenas uma chave final): <span class="duvidaBold"><<foreach [modalidade in Modalidades></span> *CONTEÚDO* <</foreach>>.
</p>
</div>
<hr class="hr-popup">
<div class="section-text">
<p id="duvidaRecorrenteTitle">Verifique o tamanho:</p>
<p id="duvidaExplicacao">
Se o template <span class="duvidaBold">possuir estruturas mais complexas</span> (com if e foreach dentro da mesma estrutura),
a Ferramenta de Templates <span class="duvidaBold">pode confundir e identificar erros equivocadamente.</span> Considere remover toda a estrutura
complexa e verificar se o erro persiste. É possível que o erro não esteja na estrutura.
</p>
</div>
<hr class="hr-popup">
<div class="section-text2">
<p id="duvidaRecorrenteTitle">Vídeo exemplo mostrando os erros:</p>
<p id="duvidaExplicacao">
Verifique os erros de ForEach que podem ocorrer, e como corrigi-los:
<a href="https://www.loom.com/share/0d9557373950444fb239f53a6de2c37f" target="_blank" class="view-video-help">VISUALIZAR</a>
</p>
</div>
<br>
<div id="answers1">
</div>
<br>
<p id="pSugestion">Tem alguma sugestão?</p>
<a href="https://forms.gle/bjCg1tCn5DRgkxHp7" target="_blank" id="aBtnForm2"><button id="btnForm2"><i class="fa-regular fa-file-lines" id="icon5"></i>GOOGLE FORMS</button></a>
</div>
<div class="main-container">
<div id="mensagemCopia" style="display: none;"></div>
<div id="mensagemDeErro">
<div id="containerErro">
<p id="message" class="d-flex align-items-center justify-content-center mt-30">Você já adicionou um arquivo.</p>
<div class="text-center">
<button onclick="removeFile()" class="btn btn-danger" id="removeBtn" style="display:none;">Remover Arquivo</button>
<button onclick="closeContainer()" class="btn btn-primary" id="returnBtn" style="display: none;">Voltar</button>
</div>
</div>
</div>
<div class="container mt-5 text-center teste" id="container" >
<div class="rowling">
<label id="labelInput" for="fileInput"><i class="fa-solid fa-file-import" id="icon0"></i>Selecionar .DOCX</label>
<input type="file" id="fileInput" name="fileInput" onchange="showIcon()" accept=".docx"/>
<i class="fa-solid fa-circle-check" id="icon6" style="display: none;"></i>
</div>
<button onclick="renderDocument()" class="btn btn-success mt-3 d-flex justify-content-start" id="btnFormat"><i class="fa-regular fa-pen-to-square" id="icon1"></i>FORMATAR E EDITAR</button>
<!-- Correção do botão -->
<a href="https://www.loom.com/share/d7d81f995bb643f0b2ea4c05b73a4765?sid=9f4e1d55-acd1-44b1-8fb7-21a8afb7bbeb" target="_blank" id="howToUse" class="btn btn-danger justify-content-center align-items-center">
<i class="fa-regular fa-circle-question" id="icon2" aria-hidden="true"></i> COMO USAR?
</a>
<button onclick="clickParaVerificar()" class="btn btn-primary mt-3 d-flex justify-content-start" id="btnVerification" style="display: none;"><i class="fa-solid fa-magnifying-glass" id="icon3"></i>VERIFICAR</button>
<div class="verify-group">
<label class="switch">
<input type="checkbox" id="toggleSwitch">
<span class="slider round"></span>
</label>
<p class="verify-text">Verificação automática</p>
</div>
<div id="output">
</div>
<div id="btnDownloadContainer"></div>
<!--<div id="editor" contenteditable="true" class="border border-secondary rounded p-3 border-color-blue"></div> -->
<textarea id="editor"></textarea>
</div>
<div class="variables-container">
<button id="slideButton" class="btn btn-primary"><i class="fa-solid fa-arrow-right" ></i></button>
<img src="./arquivos/logo nextfit.png" alt="" id="logoNextFit">
<div id="recebeAction"></div>
<h1 class="mt-2 d-flex justify-content-center" id="titleVariable">Templates</h1>
<p class="d-flex justify-content-center" id="subtitleVariable">Configure seu template!</p>
<br>
<div id="searchCamp" class="input-group">
<input type="text" placeholder="Pesquise a variável..." class="form-control" id="inputPesquisa">
</div>
<div class="buttons-form-tutorial">
<div id="googleForms">
<a href="https://forms.gle/bjCg1tCn5DRgkxHp7" target="_blank" id="aBtnForm"><button id="btnForm"><i class="fa-regular fa-file-lines" id="icon5"></i>GOOGLE FORMS</button></a>
</div>
<div id="helpCamp">
<button id="btnHelp" onclick="openPopUpHelp()"><i class="fa-solid fa-lightbulb" id="icon7"></i>PRECISA DE AJUDA?</button>
</div>
</div>
<br>
<!--------------------------------------------------------------------------->
<button class="btn btn-success" id="variaveisDropdownClientes" onclick="mostrarSubMenu('clientes')">DADOS DO CLIENTE <span id="arrowIconClientes" class="arrow-down">❯</span></button>
<div class="container-clientes" id="clientesContainer">
<button class="btn btn meusBotoes" id="clienteNome" onclick="copiarTexto('<<[NomeCliente]>>')" data-mensagem="Exemplo de uso: Fulano da Silva">Nome do cliente</button>
<button class="btn btn meusBotoes" id="clienteCpf" onclick="copiarTexto('<<[CpfCliente]>>')" data-mensagem="Exemplo de uso: 187.553.560-87">CPF do cliente</button>
<button class="btn btn meusBotoes" id="clienteRG" onclick="copiarTexto('<<[RgCliente]>>')" data-mensagem="Exemplo de uso: 23.118.664-2">RG do cliente</button>
<button class="btn btn meusBotoes" id="clienteNasc" onclick="copiarTexto('<<[DataNascimentoCliente]>>')" data-mensagem="Exemplo de uso: 20/08/1992">Data de nascimento do cliente</button>
<button class="btn btn meusBotoes" id="clienteSexo" onclick="copiarTexto('<<[SexoCliente]>>')" data-mensagem="Exemplo de uso: Masculino/Feminino">Sexo do cliente</button>
<button class="btn btn meusBotoes" id="clienteEmail" onclick="copiarTexto('<<[EmailCliente]>>')" data-mensagem="Exemplo de uso: emaildocliente@gmail.com">Email do cliente</button>
<button class="btn btn meusBotoes" id="clienteTel" onclick="copiarTexto('<<[TelefoneCliente]>>')" data-mensagem="Exemplo de uso: (48) 987654321">Telefone do cliente</button>
<button class="btn btn meusBotoes" id="clienteEndereco" onclick="copiarTexto('<<[EnderecoCliente]>>')" data-mensagem="Exemplo de uso: Avenida Tietê">Endereço do cliente</button>
<button class="btn btn meusBotoes" id="clienteNumEndereco" onclick="copiarTexto('<<[NumeroEnderecoCliente]>>')" data-mensagem="Exemplo de uso: 2000">Número do endereço do cliente</button>
<button class="btn btn meusBotoes" id="clienteComp" onclick="copiarTexto('<<[ComplementoEnderecoCliente]>>')" data-mensagem="Exemplo de uso: Sala 203">Complemento do endereço do cliente</button>
<button class="btn btn meusBotoes" id="clienteBairro" onclick="copiarTexto('<<[BairroCliente]>>')" data-mensagem="Exemplo de uso: Centro">Bairro do cliente</button>
<button class="btn btn meusBotoes" id="clienteCEP" onclick="copiarTexto('<<[CepCliente]>>')" data-mensagem="Exemplo de uso: 12345-678">CEP do cliente</button>
<button class="btn btn meusBotoes" id="clienteCidade" onclick="copiarTexto('<<[CidadeCliente]>>')" data-mensagem="Exemplo de uso: Nova Veneza">Cidade do cliente</button>
<button class="btn btn meusBotoes" id="clienteUF" onclick="copiarTexto('<<[UfCliente]>>')" data-mensagem="Exemplo de uso: SC">UF do cliente</button>
</div>
<br>
<hr class="hr-purple">
<!--------------------------------------------------------------------------->
<button class="btn btn-success" id="variaveisDropdownClientes" onclick="mostrarSubMenu('empresa')">DADOS DA EMPRESA <span id="arrowIconEmpresa" class="arrow-down">❯</span></button>
<div class="container-empresa" id="empresaContainer">
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[RazaoSocialFilial]>>')" data-mensagem="Exemplo de uso: Academia de Musculação Fitastic LTDA">Razão social da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[NomeFantasiaFilial]>>')" data-mensagem="Exemplo de uso: Fitastic Academia">Nome fantasia da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<image [LogoFilial]>>')" data-mensagem="Exemplo de uso: Imagem da logo">Logomarca da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[CnpjCpfFilial]>>')" data-mensagem="Exemplo de uso: 31.265.901/0001-39">CPF/CNPJ da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[TelefoneFilial]>>')" data-mensagem="Exemplo de uso: (48) 987654321">Telefone da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[EmailFilial]>>')" data-mensagem="Exemplo de uso: contato@nextfit.com.br">Email da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[EnderecoFilial]>>')" data-mensagem="Exemplo de uso: Avenida Tietê">Endereço da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[NumeroEnderecoFilial]>>')" data-mensagem="Exemplo de uso: 2000">Número do endereço da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ComplementoEnderecoFilial]>>')" data-mensagem="Exemplo de uso: Sala 203">Complemento do endereço da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[BairroFilial]>>')" data-mensagem="Exemplo de uso: Centro">Bairro da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[CepFilial]>>')" data-mensagem="Exemplo de uso: 12345-678">CEP da empresa</button>
<button class="btn btn me usBotoes" onclick="copiarTexto('<<[CidadeFilial]>>')" data-mensagem="Exemplo de uso: Nova Veneza">Cidade da empresa</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[UfFilial]>>')" data-mensagem="Exemplo de uso: SC">UF da empresa</button>
</div>
<br>
<hr class="hr-purple">
<!--------------------------------------------------------------------------->
<button class="btn btn-success" id="variaveisDropdownClientes" onclick="mostrarSubMenu('contrato')">DADOS DE CONTRATO <span id="arrowIconContrato" class="arrow-down">❯</span></button>
<div class="container-contrato" id="contratoContainer">
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DescricaoContrato]>>')" data-mensagem="Exemplo de uso: Musculação 3x semana">Descrição do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DuracaoContrato]>>')" data-mensagem="Exemplo de uso: 12 meses">Duração do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorTotalContrato]>>')" data-mensagem="Exemplo de uso: 199.90">Valor total do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorTotalContratoFormatado]>>')" data-mensagem="Exemplo de uso: 199,90">Valor total do contrato (formatado)</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorAdesao]>>')" data-mensagem="Exemplo de uso: 19.9">Valor de matrícula do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorAdesaoFormatado]>>')" id="matriculaFormatado" data-mensagem="Exemplo de uso: 19,90">Valor de matrícula do contrato (formatado)</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorTotalContratoSemDesconto]>>')" data-mensagem="Exemplo de uso: 150.00">Valor total contrato s/ desconto</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorTotalContratoSemDescontoFormatado]>>')" id="semDescontoFormatado" data-mensagem="Exemplo de uso: 150,00">Valor total contrato s/ desconto (formatado)</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[QuantMaximoSuspensoes]>>')" id="qtdMaxSus" data-mensagem="Exemplo de uso: 2">Quantidade máxima de suspensões do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[QuantMaximoDiasSuspensao]>>')" id="qtdMaxDiasSus" data-mensagem="Exemplo de uso: 30">Quantidade máxima de dias nas suspensões do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DataInicio]>>')" data-mensagem="Exemplo de uso: 01/01/2024">Data de início do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DataValidade]>>')" data-mensagem="Exemplo de uso: 01/02/2024">Data de validade do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DataImpressao]>>')" data-mensagem="Exemplo de uso: 01/01/2024">Data de impressão do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DataImpressaoCompleta]>>')" data-mensagem="Exemplo de uso: 01/01/2024 15:35">Data de impressão do contrato (com hora)</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DataImpressaoFormatada]>>')" data-mensagem="Exemplo de uso: 1 de janeiro de 2024">Data de impressão do contrato (formatada)</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorTotalMedioMensalContrato]>>')" data-mensagem="Exemplo de uso: 99.90">Valor médio mensal do contrato</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ValorTotalMedioMensalContratoFormatado]>>')" data-mensagem="Exemplo de uso: 99,90">Valor médio mensal do contrato (formatado)</button>
</div>
<br>
<hr class="hr-purple">
<!--------------------------------------------------------------------------->
<button class="btn btn-success" id="variaveisDropdownClientes" onclick="mostrarSubMenu('responsavel')">DADOS DO RESPONSÁVEL <span id="arrowIronResponsavel" class="arrow-down">❯</span></button>
<div class="container-responsavel" id="responsavelContainer">
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[TemResponsavel]>>')" data-mensagem="Exemplo de uso: Informa '1' para sim e '0' para não.">Cliente tem responsável?</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[NomeResponsavel]>>')" data-mensagem="Exemplo de uso: Fulano da Silva">Nome do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[CpfResponsavel]>>')" data-mensagem="Exemplo de uso: 191.000.000-00">CPF do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[RgResponsavel]>>')" data-mensagem="Exemplo de uso: 1234567">RG do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[DataNascimentoResponsavel]>>')" data-mensagem="Exemplo de uso: 20/11/1990">Data de nascimento do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[SexoResponsavel]>>')" data-mensagem="Exemplo de uso: Masculino/Feminino">Sexo do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[EmailResponsavel]>>')" data-mensagem="Exemplo de uso: contato@nextfit.com.br">Email do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[TelefoneResponsavel]>>')" data-mensagem="Exemplo de uso: (48) 987654321">Telefone do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[EnderecoResponsavel]>>')" data-mensagem="Exemplo de uso: Avenida Tietê">Endereço do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[NumeroEnderecoResponsavel]>>')" data-mensagem="Exemplo de uso: 2000">Número do endereço do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[ComplementoEnderecoResponsavel]>>')" data-mensagem="Exemplo de uso: Sala 203">Complemento do endereço do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[BairroResponsavel]>>')" data-mensagem="Exemplo de uso: Centro">Bairro do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[CepResponsavel]>>')" data-mensagem="Exemplo de uso: 12345-678">CEP do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[CidadeResponsavel]>>')" data-mensagem="Exemplo de uso: Nova Veneza">Cidade do responsável</button>
<button class="btn btn meusBotoes" onclick="copiarTexto('<<[UfResponsavel]>>')" data-mensagem="Exemplo de uso: SC">UF do responsável</button>
<div id="mensagem" class="escondido"></div>
</div>
<br>
<hr class="hr-purple">
<!--------------------------------------------------------------------------->
<button class="btn btn-dark d-flex justify-content-center" id="variaveisDropdownClientes" onclick="mostrarSubMenuEstrutura('estrutura');">PERSONALIZAÇÃO <span id="arrowIconEstrutura" class="arrow-down">❯</span></button>
<div class="container-estrutura" id="estruturaContainer">
<button id="btnListagem" class="btn btn meusBotoes" onclick="mostrarListagem()" data-mensagem="Estruturas de repetição">Listagem de modalidade <span id="arrowIconListagem" class="arrow-down2">❯</span></button>
<br>
<div id="listagemForeach" style="display: none;">
<p id="forEachP">Para cada modalidade, mostrar:</p>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="nomeModalidade">
<label class="form-check-label" for="">Nome da modalidade</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="limiteAcessos">
<label class="form-check-label" for="">Limite de acessos</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="qtdSessoesSemana">
<label class="form-check-label" for="">Quantidade de sessões por semana</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="diasLiberadosAcesso">
<label class="form-check-label" for="">Dias liberados para acesso</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="horariosLiberadosAcesso">
<label class="form-check-label" for="">Horários liberados para acesso</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="diasHorariosLiberadosAcesso">
<label class="form-check-label" for="">Dias e horários liberados para acesso</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="descTipoModalidade">
<label class="form-check-label" for="">Descrição do tipo de modalidade</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="qtdPacoteAulas">
<label class="form-check-label" for="">Quantidade do pacote de aulas</label>
</div>
<p style="font-size: 20px; margin-top: 20px; font-weight: 500;color: #630070;">Visualização do cliente: (exemplo)</p>
<textarea name="" id="textAreaListagem" cols="77" rows="12" readonly></textarea>
<button class="btn" id="copyBtnList" onclick="copiarTextoList()">Copiar</button>
<hr class="hr-personalizacao">
</div>
<button id="btnListagem" class="btn btn meusBotoes" onclick="mostrarListagemParcelas()" data-mensagem="Estruturas de repetição">Listagem de parcelas <span id="arrowIconListagemParcelas" class="arrow-down2">❯</span></button>
<br>
<div id="listagemForEachParcelas" style="display: none;">
<p id="forEachParcela">Para cada parcela, mostrar:</p>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="valorParcelaFormatado">
<label class="form-check-label" for="">Valor</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="dataVencimento">
<label class="form-check-label" for="">Data de vencimento</label>
</div>
<p style="font-size: 20px; margin-top: 20px; font-weight: 500;color: #630070;">Visualização do cliente: (exemplo)</p>
<textarea name="" id="textAreaListagemParcela" cols="77" rows="4" readonly></textarea>
<button class="btn" id="copyBtnListParcela" onclick="copiarTextoListParcela()">Copiar</button>
<hr class="hr-personalizacao">
</div>
<button id="btnListagem" class="btn btn meusBotoes" onclick="mostrarVerificar()" data-mensagem="Verificações automáticas">Verificações <span id="arrowIconVerificar" class="arrow-down2">❯</span></button>
<div id="verificacaoIf" style="display: none; text-align: center;">
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarTexto(`<<if [TemResponsavel > 0]>>INSIRA CONTEÚDO AQUI<</if>>`)" data-mensagem="Com essa verificação, você pode configurar uma informação adicional apenas para os alunos que possuem responsável financeiro.">Verificar responsável financeiro</button>
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarTexto(`<<if [ValorAdesao > 0]>>INSIRA CONTEÚDO AQUI<</if>>`)" data-mensagem="Com essa verificação, você pode configurar uma informação adicional apenas para os alunos que possuem taxa de adesão/matrícula no contrato.">Verificar taxa de matrícula</button>
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarTexto('<<if [QuantMaximoDiasSuspensao > 0]>>INSIRA CONTEÚDO AQUI<</if>>')" data-mensagem="Com essa verificação, você pode configurar uma informação adicional apenas para os alunos que podem suspender/trancar seus contratos.">Verificar suspensão de contrato</button>
</div>
<button id="btnListagemEstrutura" class="btn btn meusBotoes " onclick="mostrarEstrutura()" data-mensagem="Estruturas prontas de If e Foreach">Estruturas prontas <span id="arrowIconEstruturasProntas" class="arrow-down2">❯</span></button>
<div id="estruturasProntas" style="display: none; text-align: center;">
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarEstruturaForeach()" data-mensagem="Com essa estrutura, você pode mostrar os horários em que o aluno foi matriculado.">ForEach Grade de horários</button>
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarEstruturaTipos()" data-mensagem="Com essa estrutura, você pode configurar o template para funcionar com os 3 tipos de modalidades (Padrão, Agenda - Sessões ou Pacote).">If para tipos de modalidade</button>
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarEstruturaCliente()" data-mensagem="Com essa estrutura, você pode adicionar uma estrutura pronta com informações do aluno.">Estrutura de Cliente</button>
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarEstruturaEmpresa()" data-mensagem="Com essa estrutura, você pode adicionar uma estrutura pronta com informações da empresa.">Estrutura de Empresa</button>
<button id="" style="display: flex;" class="btn btn meusBotoes" onclick="copiarEstruturaResponsavel()" data-mensagem="Com essa estrutura, você pode adicionar uma estrutura pronta com informações do responsável do aluno (caso ele tenha).">Estrutura de Responsável</button>
</div>
<!-- <button class="btn btn meusBotoes" onclick="mostrarVerificar()" data-mensagem="Estrutura de condição">Verificação de informações <span id="arrowIconVerificar" class="arrow-down2">❯</span></button>
<br>
<div id="verificacaoIf" style="display: none;">
<p id="forEachP">Para cada modalidade, mostrar:</p>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="nomeModalidade">
<label class="form-check-label" for="">Nome da modalidade</label>
</div>
<p style="font-size: 20px; margin-top: 20px; font-weight: 500;color: #630070;">Visualização do cliente: (exemplo)</p>
<textarea name="" id="textAreaListagem" cols="60" rows="8" readonly></textarea>
</div>
<div id="mensagem" class="escondido"></div>
</div> -->
<br>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mammoth/1.4.2/mammoth.browser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.5.1/bluebird.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
<script src="./arquivos/script.js"></script>
</body>
</html>