@commentkit/comment-kit 1.6.0 → 2.0.0
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/CHANGELOG.md +281 -597
- package/README.md +334 -154
- package/SECURITY.md +47 -46
- package/dist/node/THIRD_PARTY_NOTICES.txt +56 -0
- package/dist/node/browser.js +17 -0
- package/dist/node/cli/api.js +226 -0
- package/dist/node/cli/bin.js +18 -0
- package/dist/node/cli/credentials.js +268 -0
- package/dist/node/cli/doctor.js +725 -0
- package/dist/node/cli/format.js +54 -0
- package/dist/node/cli/init.js +372 -0
- package/dist/node/cli/main.js +519 -0
- package/dist/node/cli/mcp.js +114 -0
- package/dist/node/cli/open.js +20 -0
- package/dist/node/plugins/astro-B5y1Gtbf.js +31 -0
- package/dist/node/plugins/astro.js +26 -0
- package/dist/node/plugins/git-BIXLbL3f.js +92 -0
- package/dist/node/plugins/jsx-Bg4BdSph.js +7958 -0
- package/dist/node/plugins/next.js +48 -0
- package/dist/node/plugins/options-THop1K92.js +71 -0
- package/dist/node/plugins/transform-CKiAuSbk.js +1155 -0
- package/dist/node/plugins/vite-BdAYUW10.js +74 -0
- package/dist/node/plugins/vite.js +1 -0
- package/dist/node/plugins/webpack-R2U2DLlY.js +35 -0
- package/dist/node/plugins/webpack-loader.cjs +21 -0
- package/dist/node/plugins/webpack-loader.js +18 -0
- package/dist/node/plugins/webpack.js +1 -0
- package/dist/node/shared/endpoint.js +26 -0
- package/dist/node/shared/format.js +63 -0
- package/dist/node/types/astro.d.ts +11 -0
- package/dist/node/types/next.d.ts +34 -0
- package/dist/node/types/options.d.ts +59 -0
- package/dist/node/types/vite.d.ts +11 -0
- package/dist/node/types/webpack-loader.d.ts +22 -0
- package/dist/node/types/webpack.d.ts +27 -0
- package/dist/npm/THIRD_PARTY_NOTICES.txt +6 -6
- package/dist/npm/chunks/AgentSend-DxRJIYiz.js +68 -0
- package/dist/npm/chunks/Checklist-CnlfeSbc.js +282 -0
- package/dist/npm/chunks/Composer-B1bBVszY.js +725 -0
- package/dist/npm/chunks/Guest-vvNPz8h-.js +267 -0
- package/dist/npm/chunks/MarkupEditor-VCOXh9d2.js +338 -0
- package/dist/npm/chunks/Panel-F37vIL1K.js +1206 -0
- package/dist/npm/chunks/Settings-BGoZS2iV.js +231 -0
- package/dist/npm/chunks/Shortcuts-B2OMvczr.js +62 -0
- package/dist/npm/chunks/StyleEditor-CJ_d8Huf.js +46 -0
- package/dist/npm/chunks/StylePanel-yQzHHlY7.js +199 -0
- package/dist/npm/chunks/TaskFields-fmy6_HtK.js +289 -0
- package/dist/npm/chunks/ThreadCard-D51slKST.js +1113 -0
- package/dist/npm/chunks/Viewer-BOBadqmC.js +111 -0
- package/dist/npm/chunks/{agent-BDMQtOzH.js → agent-C1OQzBAm.js} +9 -9
- package/dist/npm/chunks/{anchor-BsradQhn.js → anchor-BsQNVkHj.js} +108 -85
- package/dist/npm/chunks/{ar-8tPch6W4.js → ar-CAJ3XT8e.js} +69 -19
- package/dist/npm/chunks/card-bits-CAnzrqx3.js +53 -0
- package/dist/npm/chunks/{client-EFTWxHbJ.js → client-kNAo2TTG.js} +282 -290
- package/dist/npm/chunks/confetti-CkBdSu19.js +49 -0
- package/dist/npm/chunks/context-B8UAzve0.js +20 -0
- package/dist/npm/chunks/context-BuMl7A07.js +48 -0
- package/dist/npm/chunks/{de-C63897uD.js → de-Dl18G48t.js} +60 -18
- package/dist/npm/chunks/dialog-GO04oC3D.js +3 -0
- package/dist/npm/chunks/dpop-U48QIQd7.js +96 -0
- package/dist/npm/chunks/drafts-B0ctr1g9.js +21 -0
- package/dist/npm/chunks/{es-CI2bSpvB.js → es-Dxk79lS9.js} +60 -18
- package/dist/npm/chunks/extension-CKFpPWmi.js +62 -0
- package/dist/npm/chunks/{extension-BST6LH1q.js → extension-E81hWyiT.js} +20 -12
- package/dist/npm/chunks/files-DyD5BZgp.js +114 -0
- package/dist/npm/chunks/{fr-rsVe-Lqk.js → fr-8BebGKYD.js} +118 -76
- package/dist/npm/chunks/{hi-cvwbSaWP.js → hi-BIN6Yy_p.js} +61 -19
- package/dist/npm/chunks/{i18n-C4v0M-6z.js → i18n-DOBt8e9U.js} +91 -56
- package/dist/npm/chunks/identify-CN-3xzqL.js +106 -0
- package/dist/npm/chunks/{it-C8tnV0BF.js → it-Cr6EwpPQ.js} +79 -37
- package/dist/npm/chunks/{ja-BWxDfC2f.js → ja-Iy3s5aur.js} +58 -16
- package/dist/npm/chunks/late-words-B2bmZceJ.js +12 -0
- package/dist/npm/chunks/live-CelVeZfP.js +85 -0
- package/dist/npm/chunks/locale-D8Q4Q2Nt.js +26 -0
- package/dist/npm/chunks/{nl-DNQ6eCht.js → nl-B84WHqqe.js} +61 -19
- package/dist/npm/chunks/page-key-DepmJzC1.js +62 -0
- package/dist/npm/chunks/{pick-CLyOdjnD.js → pick-yTyqtxN0.js} +45 -44
- package/dist/npm/chunks/pkce-ChKGSW_4.js +8 -0
- package/dist/npm/chunks/placement-BF_HOUDD.js +74 -0
- package/dist/npm/chunks/privacy-BWUGlHw5.js +57 -0
- package/dist/npm/chunks/{pt-BR-CkG7vpU2.js → pt-BR-DOkdlfoe.js} +60 -18
- package/dist/npm/chunks/{realtime-DIo-Wth4.js → realtime-C79zF50C.js} +14 -12
- package/dist/npm/chunks/report-CrIqQZDI.js +44 -0
- package/dist/npm/chunks/show-BgVC8gWY.js +97 -0
- package/dist/npm/chunks/signin-Dd1rb2BP.js +75 -0
- package/dist/npm/chunks/{source-CS7C6wJA.js → source-pXVve2Cx.js} +1 -1
- package/dist/npm/chunks/src-BTMy4Gyc.js +208 -0
- package/dist/npm/chunks/start-DtVlpt7p.js +1878 -0
- package/dist/npm/chunks/states-sfTbjZz8.js +3 -0
- package/dist/npm/chunks/upload-MgPYqPyE.js +42 -0
- package/dist/npm/chunks/uploads-D49mywwz.js +1146 -0
- package/dist/npm/chunks/wrap-Bl0gbnFa.js +69 -0
- package/dist/npm/chunks/{zh-CN-BKuZOLBE.js → zh-CN-Z5fQCb7G.js} +59 -17
- package/dist/npm/element.js +58 -21
- package/dist/npm/headless.js +7 -3
- package/dist/npm/index.js +3 -3
- package/dist/npm/react.js +18 -11
- package/dist/npm/svelte.js +28 -12
- package/dist/npm/types/adapters/react.d.ts +4 -1
- package/dist/npm/types/adapters/svelte.d.ts +4 -1
- package/dist/npm/types/adapters/vue.d.ts +35 -2
- package/dist/npm/types/anchor/index.d.ts +19 -0
- package/dist/npm/types/capture/privacy.d.ts +14 -0
- package/dist/npm/types/core/api.d.ts +20 -1
- package/dist/npm/types/core/auth.d.ts +40 -21
- package/dist/npm/types/core/client.d.ts +60 -4
- package/dist/npm/types/core/page-key.d.ts +42 -0
- package/dist/npm/types/core/types.d.ts +87 -4
- package/dist/npm/types/element.d.ts +17 -7
- package/dist/npm/types/headless.d.ts +2 -1
- package/dist/npm/types/index.d.ts +16 -6
- package/dist/npm/vue.js +44 -9
- package/package.json +88 -14
- package/dist/npm/chunks/AgentSend-2JPDseOo.js +0 -63
- package/dist/npm/chunks/Checklist-BpDXQebo.js +0 -257
- package/dist/npm/chunks/Composer-CAyj-c8e.js +0 -677
- package/dist/npm/chunks/Guest-ZdFmTcXI.js +0 -187
- package/dist/npm/chunks/MarkupEditor-BFplZwFy.js +0 -332
- package/dist/npm/chunks/Panel-BhZ4XRDR.js +0 -861
- package/dist/npm/chunks/Settings-SPG9EHUZ.js +0 -204
- package/dist/npm/chunks/Shortcuts-C28HVDw6.js +0 -58
- package/dist/npm/chunks/StyleEditor-ByZMtq10.js +0 -43
- package/dist/npm/chunks/StylePanel-Iwhce2tE.js +0 -197
- package/dist/npm/chunks/TaskFields-BsP_fVJg.js +0 -273
- package/dist/npm/chunks/ThreadCard-BzVZdDCb.js +0 -1030
- package/dist/npm/chunks/Viewer-CqtGrdD8.js +0 -108
- package/dist/npm/chunks/card-bits-Bna-g3Py.js +0 -124
- package/dist/npm/chunks/confetti-DTKpwF3O.js +0 -40
- package/dist/npm/chunks/drafts-akdBsOd0.js +0 -50
- package/dist/npm/chunks/extension-D-V3utTm.js +0 -53
- package/dist/npm/chunks/live-BCpJVBeN.js +0 -33
- package/dist/npm/chunks/report-BBrT3r89.js +0 -27
- package/dist/npm/chunks/src-C4FsVoUp.js +0 -148
- package/dist/npm/chunks/start-i9M-r3aH.js +0 -1800
- package/dist/npm/chunks/upload-DSv7EyBD.js +0 -41
- package/dist/npm/chunks/uploads-I01kdqQF.js +0 -1103
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var e = "iframe,[data-commentkit],[data-commentkit-host],[data-commentkit-ui],[data-commentkit-panel],[data-commentkit-redact],[data-html2canvas-ignore],input[type=\"password\"],input[type=\"hidden\"],input[type=\"email\" i],input[type=\"tel\" i]," + [
|
|
2
|
+
"current-password",
|
|
3
|
+
"new-password",
|
|
4
|
+
"one-time-code",
|
|
5
|
+
"email",
|
|
6
|
+
"tel",
|
|
7
|
+
"street-address",
|
|
8
|
+
"address-line1",
|
|
9
|
+
"address-line2",
|
|
10
|
+
"address-line3",
|
|
11
|
+
"postal-code",
|
|
12
|
+
"name",
|
|
13
|
+
"given-name",
|
|
14
|
+
"family-name",
|
|
15
|
+
"username",
|
|
16
|
+
"bday",
|
|
17
|
+
"organization"
|
|
18
|
+
].map((e) => `[autocomplete~="${e}" i]`).join(",") + "," + [
|
|
19
|
+
"cc-",
|
|
20
|
+
"tel-",
|
|
21
|
+
"bday-"
|
|
22
|
+
].map((e) => `[autocomplete^="${e}" i],[autocomplete*=" ${e}" i]`).join(","), t = "input,textarea,select", n = `${t},[contenteditable]:not([contenteditable="false" i])`, r = {
|
|
23
|
+
redact: [],
|
|
24
|
+
strict: !1
|
|
25
|
+
};
|
|
26
|
+
function i(e = [], t) {
|
|
27
|
+
r.redact = e.filter(c), r.strict = t === "strict", r.selector = void 0;
|
|
28
|
+
}
|
|
29
|
+
var a = (e) => e ? e === "strict" : r.strict;
|
|
30
|
+
function o(t, i) {
|
|
31
|
+
return !t && i === void 0 ? r.selector ?? (r.selector = o(r.redact, r.strict)) : [
|
|
32
|
+
e,
|
|
33
|
+
...i ? [n] : [],
|
|
34
|
+
...(t ?? []).filter(c)
|
|
35
|
+
].join(",");
|
|
36
|
+
}
|
|
37
|
+
function s(t, n = e) {
|
|
38
|
+
try {
|
|
39
|
+
let e = t;
|
|
40
|
+
for (; e;) {
|
|
41
|
+
if (e.closest(n)) return !0;
|
|
42
|
+
let t = e.getRootNode();
|
|
43
|
+
e = t instanceof ShadowRoot ? t.host : null;
|
|
44
|
+
}
|
|
45
|
+
return !1;
|
|
46
|
+
} catch {
|
|
47
|
+
return !0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function c(e) {
|
|
51
|
+
try {
|
|
52
|
+
return document.createDocumentFragment().querySelector(e), !0;
|
|
53
|
+
} catch {
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export { s as a, o as c, i, e as n, a as o, n as r, c as s, t };
|
|
@@ -17,7 +17,7 @@ var e = {
|
|
|
17
17
|
attach: "Anexar um arquivo",
|
|
18
18
|
screenshot: "Captura de tela",
|
|
19
19
|
screenshotIncluded: "Uma captura do que você está vendo é incluída automaticamente.",
|
|
20
|
-
screenshotRemove: "
|
|
20
|
+
screenshotRemove: "Remover a captura",
|
|
21
21
|
screenshotAdd: "Incluir a captura",
|
|
22
22
|
markup: "Desenhar na captura",
|
|
23
23
|
markupDone: "Pronto",
|
|
@@ -25,7 +25,7 @@ var e = {
|
|
|
25
25
|
tool_arrow: "Seta",
|
|
26
26
|
tool_rect: "Retângulo",
|
|
27
27
|
tool_pen: "Caneta",
|
|
28
|
-
tool_blur: "
|
|
28
|
+
tool_blur: "Pixelar",
|
|
29
29
|
tool_text: "Texto",
|
|
30
30
|
markupTextPrompt: "O que a nota deve dizer?",
|
|
31
31
|
undo: "Desfazer",
|
|
@@ -41,8 +41,9 @@ var e = {
|
|
|
41
41
|
signIn: "Continuar",
|
|
42
42
|
signInMember: "Entrar",
|
|
43
43
|
signOut: "Sair",
|
|
44
|
-
popupBlocked: "Seu navegador bloqueou a janela de login.
|
|
44
|
+
popupBlocked: "Seu navegador bloqueou a janela de login. Tente de novo ou permita pop-ups neste site.",
|
|
45
45
|
signInCancelled: "O login foi fechado antes de terminar. Seu comentário continua aqui.",
|
|
46
|
+
insecureContext: "O login só funciona em um endereço seguro (https). Peça à equipe do site o link https desta página.",
|
|
46
47
|
sent: "Enviado! A equipe já foi avisada.",
|
|
47
48
|
sentGuest: "Enviado! Vamos te mandar um e-mail quando alguém responder.",
|
|
48
49
|
thisPage: "Esta página",
|
|
@@ -50,6 +51,7 @@ var e = {
|
|
|
50
51
|
notifications: "Notificações",
|
|
51
52
|
nothingHere: "Ainda não há feedback nesta página.",
|
|
52
53
|
nothingHereHint: "Clique em Comentar e depois em qualquer parte da página.",
|
|
54
|
+
nothingHereHintTouch: "Toque em Comentar e depois em qualquer parte da página.",
|
|
53
55
|
nothingAnywhere: "Ainda não há feedback neste site.",
|
|
54
56
|
noMatch: "Nenhum feedback corresponde à sua busca ou aos filtros.",
|
|
55
57
|
clearFilters: "Limpar filtros",
|
|
@@ -66,8 +68,8 @@ var e = {
|
|
|
66
68
|
resolveHint: "Marcar como corrigido",
|
|
67
69
|
reopen: "Reabrir",
|
|
68
70
|
markInProgress: "Começar a trabalhar",
|
|
69
|
-
markInReview: "
|
|
70
|
-
closeThread: "Fechar sem
|
|
71
|
+
markInReview: "Marcar como pronto para revisão",
|
|
72
|
+
closeThread: "Fechar sem corrigir",
|
|
71
73
|
reviewAsk: "A equipe acha que já está corrigido. Ficou certo para você?",
|
|
72
74
|
looksGood: "Ficou bom — resolver",
|
|
73
75
|
notYet: "Ainda não — responder",
|
|
@@ -92,6 +94,7 @@ var e = {
|
|
|
92
94
|
delete: "Excluir",
|
|
93
95
|
edit: "Editar",
|
|
94
96
|
edited: "editado",
|
|
97
|
+
teamOnly: "Só a equipe",
|
|
95
98
|
save: "Salvar",
|
|
96
99
|
mute: "Desativar notificações",
|
|
97
100
|
unmute: "Ativar notificações",
|
|
@@ -105,7 +108,7 @@ var e = {
|
|
|
105
108
|
retry: "Tentar de novo",
|
|
106
109
|
loadingThread: "Carregando a conversa…",
|
|
107
110
|
readOnlyReply: "Você pode ler esta conversa, mas as respostas estão desativadas no momento.",
|
|
108
|
-
noReplyAccess: "Você pode ler
|
|
111
|
+
noReplyAccess: "Você pode ler esta conversa, mas não tem permissão para responder.",
|
|
109
112
|
notOnPage: "Não encontrado nesta página",
|
|
110
113
|
more: "Mais",
|
|
111
114
|
allStatuses: "Todos",
|
|
@@ -148,6 +151,8 @@ var e = {
|
|
|
148
151
|
peopleHere_one: "{n} pessoa aqui",
|
|
149
152
|
markupTextAdd: "Adicionar nota",
|
|
150
153
|
includeDiagnostics: "Incluir detalhes técnicos para ajudar o desenvolvedor",
|
|
154
|
+
diagnosticsSee: "Ver o que é incluído",
|
|
155
|
+
diagnosticsEmpty: "Nada foi registrado nesta página ainda.",
|
|
151
156
|
filters: "Filtros",
|
|
152
157
|
assignedToMe: "Atribuído a mim",
|
|
153
158
|
assigneeFilter: "Atribuído a",
|
|
@@ -164,10 +169,10 @@ var e = {
|
|
|
164
169
|
guestExplain: "Vamos enviar um código de 6 dígitos para o seu e-mail. Seu comentário é publicado assim que você digitar o código.",
|
|
165
170
|
guestName: "Seu nome",
|
|
166
171
|
guestEmail: "Seu e-mail",
|
|
167
|
-
shareExpired: "Este link de
|
|
172
|
+
shareExpired: "Este link de revisão expirou. Peça um novo à equipe.",
|
|
168
173
|
verifyTitle: "Confira seu e-mail",
|
|
169
174
|
verifyBody: "Digite o código de 6 dígitos para publicar seu comentário. Enviamos para {email}.",
|
|
170
|
-
verifyLookFor: "Procure um e-mail da CommentKit: “
|
|
175
|
+
verifyLookFor: "Procure um e-mail da CommentKit: “Seu código para {website}”. Se não estiver lá, confira o spam.",
|
|
171
176
|
signInLinkTitle: "Que bom ver você de novo em {project}",
|
|
172
177
|
signInLinkBody: "Continue para ver o feedback e responder. Vamos enviar um código de 6 dígitos para o seu e-mail para confirmar que é você.",
|
|
173
178
|
notNow: "Agora não",
|
|
@@ -176,6 +181,14 @@ var e = {
|
|
|
176
181
|
verifyResend: "Enviar um novo código",
|
|
177
182
|
verifyResent: "Enviamos um novo código. Ele pode levar um minuto para chegar.",
|
|
178
183
|
verifyWait: "Espere um minuto antes de pedir outro código.",
|
|
184
|
+
guestCodesPaused: "Este site enviou códigos demais hoje. Tente de novo amanhã ou peça ajuda à equipe.",
|
|
185
|
+
notLive: "Escolha um plano para usar os comentários no seu site publicado.",
|
|
186
|
+
fileImagesOnly: "Este site aceita apenas imagens.",
|
|
187
|
+
tooBig: "Isso é grande demais para enviar. Tente um comentário mais curto ou um arquivo menor.",
|
|
188
|
+
finishTitle: "Enviar seu comentário?",
|
|
189
|
+
finishBody: "Você abriu o link do e-mail com o seu código. Toque no botão para publicar o comentário que você escreveu neste site.",
|
|
190
|
+
finishSend: "Enviar meu comentário",
|
|
191
|
+
finishExpired: "Este link não funciona mais. Os links do e-mail com o código funcionam uma vez, por 10 minutos. Se o seu comentário ainda estiver esperando, digite o código na página onde você o escreveu.",
|
|
179
192
|
verifyWrong: "Esse código não está certo. Confira o e-mail ou peça um novo código.",
|
|
180
193
|
verifyDifferent: "Usar outro e-mail",
|
|
181
194
|
verifyExpired: "Este código não é mais válido. Seu comentário continua salvo neste dispositivo.",
|
|
@@ -197,11 +210,12 @@ var e = {
|
|
|
197
210
|
resolvedToast: "{ref} resolvido.",
|
|
198
211
|
undoTooLate: "Não dá mais para desfazer. Reabra {ref} se ainda precisar de ajustes.",
|
|
199
212
|
guestIntro: "Seu nome e e-mail, para que a equipe possa responder. Não precisa de conta.",
|
|
200
|
-
guestPrivacy: "Seu nome, e-mail e
|
|
213
|
+
guestPrivacy: "Seu nome, e-mail, comentários, a captura de tela e dados básicos do navegador vão para a equipe responsável por este site e para a CommentKit, que opera esta ferramenta de comentários para essa equipe.",
|
|
201
214
|
guestPrivacyLink: "Aviso de privacidade",
|
|
215
|
+
guestPrivacySite: "Aviso de privacidade de {website}",
|
|
202
216
|
guestNameMissing: "Digite seu nome para a equipe saber quem escreveu isto.",
|
|
203
217
|
guestEmailInvalid: "Confira seu e-mail, por exemplo nome@empresa.com.",
|
|
204
|
-
verifyLinkExpired: "Este link de
|
|
218
|
+
verifyLinkExpired: "Este link de revisão expirou. Peça um novo a quem o enviou. Seu comentário está salvo neste dispositivo.",
|
|
205
219
|
verifyRemoved: "A equipe removeu seu acesso a este site. Peça para adicionarem você de novo.",
|
|
206
220
|
writeAgain: "Escrever de novo",
|
|
207
221
|
pendingNote: "Seu comentário está esperando o código que enviamos para {email}.",
|
|
@@ -211,12 +225,13 @@ var e = {
|
|
|
211
225
|
serverError: "Algo deu errado no CommentKit. Tente de novo em instantes.",
|
|
212
226
|
noAccess: "Você não tem acesso ao feedback deste site. Peça à equipe para convidar você de novo.",
|
|
213
227
|
originNotAllowed: "Ainda não é possível enviar feedback deste endereço. Peça à equipe para adicioná-lo ao projeto.",
|
|
214
|
-
forbidden: "Você não tem permissão para fazer isso.",
|
|
228
|
+
forbidden: "Você não tem permissão para fazer isso. Peça à equipe se precisar.",
|
|
215
229
|
tooFast: "Muitas ações de uma vez. Aguarde um momento e tente de novo.",
|
|
216
230
|
sentWithoutScreenshot: "Enviado, mas sem a captura de tela: não foi possível enviá-la.",
|
|
217
231
|
sentWithoutFiles: "Enviado, mas alguns arquivos não puderam ser anexados. Você pode adicioná-los em uma resposta.",
|
|
218
232
|
replyFailed: "Sua resposta ainda não foi enviada. Ela continua aqui, então você pode tentar de novo.",
|
|
219
233
|
taskDetails: "Detalhes da tarefa",
|
|
234
|
+
taskDetailsSet: "Detalhes da tarefa adicionados",
|
|
220
235
|
priority: "Prioridade",
|
|
221
236
|
priority_none: "Sem prioridade",
|
|
222
237
|
priority_low: "Baixa",
|
|
@@ -235,9 +250,9 @@ var e = {
|
|
|
235
250
|
formatCode: "Código",
|
|
236
251
|
reopenedToast: "{ref} está aberto de novo.",
|
|
237
252
|
editedToast: "Comentário atualizado.",
|
|
238
|
-
editConflict: "
|
|
253
|
+
editConflict: "Outra pessoa editou isto agora há pouco. A versão dela está aparecendo agora, então faça sua alteração de novo.",
|
|
239
254
|
threadDeleted: "{ref} excluído.",
|
|
240
|
-
detailCreated: "
|
|
255
|
+
detailCreated: "Publicado em",
|
|
241
256
|
detailResolved: "Resolvido em",
|
|
242
257
|
detailPage: "Página",
|
|
243
258
|
detailBrowser: "Navegador",
|
|
@@ -263,8 +278,9 @@ var e = {
|
|
|
263
278
|
results_one: "{n} resultado",
|
|
264
279
|
results: "{n} resultados",
|
|
265
280
|
resultsMore: "{n}+ resultados",
|
|
281
|
+
firstPageThreads: "Mostrando os primeiros {n} comentários desta página",
|
|
266
282
|
showMore: "Mostrar mais",
|
|
267
|
-
livePaused: "
|
|
283
|
+
livePaused: "Sem conexão. O feedback novo aparece quando você se reconectar.",
|
|
268
284
|
clearSearch: "Limpar busca",
|
|
269
285
|
filtersOn_one: "{n} filtro ativo",
|
|
270
286
|
filtersOn: "{n} filtros ativos",
|
|
@@ -297,6 +313,7 @@ var e = {
|
|
|
297
313
|
nextImage: "Próxima imagem",
|
|
298
314
|
attachments: "Anexos",
|
|
299
315
|
openImage: "Abrir {name}",
|
|
316
|
+
openImageMore: "Abrir {name} e mais {n}",
|
|
300
317
|
uploading: "Enviando {name}",
|
|
301
318
|
retryUpload: "Tentar enviar {name} de novo",
|
|
302
319
|
uploadFailedShort: "Este arquivo não foi enviado.",
|
|
@@ -316,7 +333,7 @@ var e = {
|
|
|
316
333
|
checklist: "Checklist",
|
|
317
334
|
description: "Descrição",
|
|
318
335
|
checklistProgress: "{n} de {total} feitos",
|
|
319
|
-
checklistAdd: "Adicione um item
|
|
336
|
+
checklistAdd: "Adicione um item",
|
|
320
337
|
removeItem: "Remover {item}",
|
|
321
338
|
addChecklist: "Adicionar um checklist",
|
|
322
339
|
checklistShort_one: "{done}/{n} feito",
|
|
@@ -337,8 +354,8 @@ var e = {
|
|
|
337
354
|
previousThread: "Anterior",
|
|
338
355
|
nextThread: "Próximo",
|
|
339
356
|
showOnPage: "Mostrar na página",
|
|
340
|
-
doubleClickHint: "
|
|
341
|
-
spot_element: "Em um
|
|
357
|
+
doubleClickHint: "Para fechar a caixa de entrada, pressione Esc ou clique duas vezes na página.",
|
|
358
|
+
spot_element: "Em um ponto",
|
|
342
359
|
spot_region: "Em uma área",
|
|
343
360
|
spot_text: "Em um texto selecionado",
|
|
344
361
|
spot_page: "Na página inteira",
|
|
@@ -361,6 +378,31 @@ var e = {
|
|
|
361
378
|
styleDone: "Pronto",
|
|
362
379
|
stylePrevious: "Valor anterior de {property}",
|
|
363
380
|
styleNext: "Próximo valor de {property}",
|
|
364
|
-
styleEdit: "Editar as mudanças de estilo sugeridas"
|
|
381
|
+
styleEdit: "Editar as mudanças de estilo sugeridas",
|
|
382
|
+
shortcutsSetting: "Atalhos de uma tecla",
|
|
383
|
+
shortcutsSettingHint: "Use C, J, K, E e ? para comentar, navegar entre os comentários e resolvê-los. Desative se eles atrapalharem seu leitor de tela ou outras ferramentas.",
|
|
384
|
+
movePin: "Mover marcador",
|
|
385
|
+
movePinHint: "Clique no novo ponto para este comentário, ou vá até ele com Tab e pressione Enter · Esc para cancelar",
|
|
386
|
+
movePinHintTouch: "Toque no novo ponto para este comentário",
|
|
387
|
+
unread: "Não lido",
|
|
388
|
+
otherKind: "{actor} fez uma alteração",
|
|
389
|
+
unitKB: "{n} KB",
|
|
390
|
+
unitMB: "{n} MB",
|
|
391
|
+
unitGB: "{n} GB",
|
|
392
|
+
signOff: "Aprovação da página",
|
|
393
|
+
signOffAsk: "Gostou de como esta página ficou?",
|
|
394
|
+
signOffApprove: "Aprovar esta página",
|
|
395
|
+
signOffAgain: "Aprovar de novo",
|
|
396
|
+
signOffNote: "Adicionar uma nota (opcional)",
|
|
397
|
+
signOffDone: "Aprovada. A equipe já foi avisada.",
|
|
398
|
+
signOffMine: "Você aprovou esta página em {date}.",
|
|
399
|
+
signOffBy: "Aprovada por {name}",
|
|
400
|
+
signOffByMore: "Aprovada por {name} e mais {n} pessoas",
|
|
401
|
+
signOffByMore_one: "Aprovada por {name} e mais {n} pessoa",
|
|
402
|
+
signOffNewFeedback: "Chegaram comentários novos depois que esta página foi aprovada.",
|
|
403
|
+
signOffNewCommit: "Esta página mudou desde que foi aprovada.",
|
|
404
|
+
signOffOpen: "{n} comentários desta página ainda estão abertos. Você pode aprovar mesmo assim.",
|
|
405
|
+
signOffOpen_one: "{n} comentário desta página ainda está aberto. Você pode aprovar mesmo assim.",
|
|
406
|
+
signOffWithdraw: "Retirar a aprovação"
|
|
365
407
|
};
|
|
366
408
|
export { e as default };
|
|
@@ -2469,7 +2469,7 @@ var r = /* @__PURE__ */ n(((e, t) => {
|
|
|
2469
2469
|
})());
|
|
2470
2470
|
})), i = /* @__PURE__ */ e({ connect: () => a });
|
|
2471
2471
|
async function a(e) {
|
|
2472
|
-
let { default: n } = await Promise.resolve().then(() => /* @__PURE__ */ t(r(), 1)), i = new n(e.key, {
|
|
2472
|
+
let { default: n } = await Promise.resolve().then(() => /* @__PURE__ */ t(r(), 1)), i = !1, a = new n(e.key, {
|
|
2473
2473
|
wsHost: e.host,
|
|
2474
2474
|
wsPort: e.port,
|
|
2475
2475
|
wssPort: e.port,
|
|
@@ -2481,19 +2481,21 @@ async function a(e) {
|
|
|
2481
2481
|
transport: "ajax",
|
|
2482
2482
|
endpoint: "/unused",
|
|
2483
2483
|
customHandler: (t, n) => {
|
|
2484
|
-
e.authorize(t.socketId, t.channelName).then((e) => n(null, e), (
|
|
2484
|
+
e.authorize(t.socketId, t.channelName).then((e) => n(null, e), (t) => {
|
|
2485
|
+
n(t, null), !(t?.code !== "realtime_full" || i) && (i = !0, a.disconnect(), e.onPresence?.(0), e.onTeam?.([]), e.onState?.("off"));
|
|
2486
|
+
});
|
|
2485
2487
|
}
|
|
2486
2488
|
}
|
|
2487
|
-
}),
|
|
2488
|
-
|
|
2489
|
-
let
|
|
2489
|
+
}), o = a.subscribe(`presence-ck.project.${e.projectId}`);
|
|
2490
|
+
o.bind("feedback.changed", (t) => e.onFeedback(t));
|
|
2491
|
+
let s = () => e.onPresence?.(o.members?.count ?? 0);
|
|
2490
2492
|
for (let e of [
|
|
2491
2493
|
"pusher:subscription_succeeded",
|
|
2492
2494
|
"pusher:member_added",
|
|
2493
2495
|
"pusher:member_removed"
|
|
2494
|
-
])
|
|
2496
|
+
]) o.bind(e, s);
|
|
2495
2497
|
if (e.onTeam) {
|
|
2496
|
-
let t =
|
|
2498
|
+
let t = a.subscribe(`presence-ck.team.${e.projectId}`), n = () => {
|
|
2497
2499
|
let n = [];
|
|
2498
2500
|
t.members?.each((e) => {
|
|
2499
2501
|
let t = typeof e.info?.name == "string" ? e.info.name.slice(0, 120) : "";
|
|
@@ -2511,15 +2513,15 @@ async function a(e) {
|
|
|
2511
2513
|
"pusher:member_removed"
|
|
2512
2514
|
]) t.bind(e, n);
|
|
2513
2515
|
}
|
|
2514
|
-
return
|
|
2516
|
+
return a.subscribe(`private-ck.inbox.${e.inbox}`).bind("inbox.changed", (t) => {
|
|
2515
2517
|
(t.project_id == null || String(t.project_id) === String(e.projectId)) && e.onInbox(t.unread);
|
|
2516
|
-
}),
|
|
2517
|
-
t === "connected" ? e.onState?.("on") : (t === "unavailable" || t === "failed" || t === "disconnected") && e.onState?.("lost");
|
|
2518
|
+
}), a.connection?.bind("state_changed", ({ current: t }) => {
|
|
2519
|
+
i || (t === "connected" ? e.onState?.("on") : (t === "unavailable" || t === "failed" || t === "disconnected") && e.onState?.("lost"));
|
|
2518
2520
|
}), {
|
|
2519
2521
|
disconnect: () => {
|
|
2520
|
-
|
|
2522
|
+
a.disconnect(), e.onPresence?.(0), e.onTeam?.([]);
|
|
2521
2523
|
},
|
|
2522
|
-
reconnect: () => i.connect()
|
|
2524
|
+
reconnect: () => void (i || a.connect())
|
|
2523
2525
|
};
|
|
2524
2526
|
}
|
|
2525
2527
|
export { i as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { d as e, i as t, n } from "./client-kNAo2TTG.js";
|
|
2
|
+
// src/core/report.ts
|
|
3
|
+
var r = 0;
|
|
4
|
+
function i(r, i) {
|
|
5
|
+
try {
|
|
6
|
+
let a = r?.project;
|
|
7
|
+
if (typeof a != "string" || !e.test(a)) return;
|
|
8
|
+
o((typeof r.endpoint == "string" ? r.endpoint : n).replace(/\/+$/, ""), a, t, i, "start");
|
|
9
|
+
} catch {}
|
|
10
|
+
}
|
|
11
|
+
var a = (e) => e.replace(/(https?:\/\/[^\s?#)]+)[?#][^\s)]*/g, "$1");
|
|
12
|
+
function o(e, t, n, i, a = "crash", o, c) {
|
|
13
|
+
if (r >= 3 || typeof fetch != "function") return;
|
|
14
|
+
r++;
|
|
15
|
+
let l = i instanceof Error ? i : Error(String(i)), u = `${e}/api/v1/client-errors`, d = c?.access && c.access.expiresAt > Date.now() ? c.access.token : null;
|
|
16
|
+
if (!d) return s(u, n, l, a, o, {}, t);
|
|
17
|
+
c.proof("POST", u, d).then((e) => ({
|
|
18
|
+
Authorization: `DPoP ${d}`,
|
|
19
|
+
DPoP: e
|
|
20
|
+
}), () => ({})).then((e) => s(u, n, l, a, o, e, t));
|
|
21
|
+
}
|
|
22
|
+
function s(e, t, n, r, i, o, s) {
|
|
23
|
+
try {
|
|
24
|
+
fetch(e, {
|
|
25
|
+
method: "POST",
|
|
26
|
+
keepalive: !0,
|
|
27
|
+
credentials: "omit",
|
|
28
|
+
headers: {
|
|
29
|
+
"Content-Type": "application/json",
|
|
30
|
+
"X-CommentKit-SDK": t,
|
|
31
|
+
...o
|
|
32
|
+
},
|
|
33
|
+
body: JSON.stringify({
|
|
34
|
+
key: s,
|
|
35
|
+
version: t,
|
|
36
|
+
kind: r,
|
|
37
|
+
message: a(`${n.name}: ${n.message}`).slice(0, 300),
|
|
38
|
+
stack: a(n.stack ?? "").slice(0, 2e3),
|
|
39
|
+
...i ? { nonce: i } : {}
|
|
40
|
+
})
|
|
41
|
+
}).catch(() => void 0);
|
|
42
|
+
} catch {}
|
|
43
|
+
}
|
|
44
|
+
export { o as reportCrash, i as reportStart };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { a as e, i as t, n, r } from "./src-BTMy4Gyc.js";
|
|
2
|
+
import { i, l as a, v as o } from "./client-kNAo2TTG.js";
|
|
3
|
+
import { n as s } from "./page-key-DepmJzC1.js";
|
|
4
|
+
// src/core/show.ts
|
|
5
|
+
var c;
|
|
6
|
+
function l() {
|
|
7
|
+
if (/[?&]ck(_thread)?(=|&|$)/.test(location.search)) return !0;
|
|
8
|
+
try {
|
|
9
|
+
return !!sessionStorage.getItem("commentkit:share");
|
|
10
|
+
} catch {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
a(s);
|
|
15
|
+
var u = (e) => e.disabled_reason === "version_blocked", d = (e) => e.disabled_reason === "not_live", f = (e) => {
|
|
16
|
+
let t = e.state.get().session;
|
|
17
|
+
return !!t && t.role !== "guest";
|
|
18
|
+
};
|
|
19
|
+
async function p(n, i, a, o, p, _, v = () => void 0) {
|
|
20
|
+
let y = (c ?? (c = l())) || a;
|
|
21
|
+
if (u(i)) return v(), null;
|
|
22
|
+
let b = d(i);
|
|
23
|
+
if (b && !n.auth.hasSession() && !t()) return v(), null;
|
|
24
|
+
if (!i.enabled && !y && !b) return null;
|
|
25
|
+
s.ignore(i.pages?.ignored_query_params);
|
|
26
|
+
let x = import("./start-DtVlpt7p.js").then((e) => e.t), S = x.then((e) => e.setLocale(n.options.locale));
|
|
27
|
+
if (x.catch(() => void 0), S.catch(() => void 0), await n.auth.completeRedirect().catch(() => !1), t() && await import("./extension-E81hWyiT.js").then((e) => e.extensionHandoff(n.auth)).catch(() => !1), _ && i.enabled && await import("./identify-CN-3xzqL.js").then((e) => e.identify(n, _, null, !0)).catch(() => !1), await n.loadSession().catch(() => null), n.state.get().session || m(n.options.project), b && !f(n)) return v(), null;
|
|
28
|
+
let C = await x, { installDiagnostics: w, mountWidget: T } = C;
|
|
29
|
+
if (b && Object.assign(C.en, (await import("./late-words-B2bmZceJ.js").then((e) => e.n)).LATE), await S, o()) return null;
|
|
30
|
+
let E = w({
|
|
31
|
+
console: i.features.console_capture,
|
|
32
|
+
network: i.features.network_capture,
|
|
33
|
+
endpoint: n.endpoint
|
|
34
|
+
}), D = () => {
|
|
35
|
+
p(), e(!1);
|
|
36
|
+
}, O;
|
|
37
|
+
try {
|
|
38
|
+
O = T(n, () => (h([r() + 1, Date.now()]), D()), D);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
throw E(), e;
|
|
41
|
+
}
|
|
42
|
+
let k = setTimeout(h, 3e4, null), A = g(n, y, p, v), j = n.state.get().config, M = n.state.subscribe((e) => {
|
|
43
|
+
e.config && e.config !== j && s.ignore((j = e.config).pages?.ignored_query_params);
|
|
44
|
+
});
|
|
45
|
+
return n.emit("ready", { session: n.state.get().session }), Object.assign(() => {
|
|
46
|
+
clearTimeout(k), A(), M();
|
|
47
|
+
for (let e of [O, E]) try {
|
|
48
|
+
e();
|
|
49
|
+
} catch (e) {
|
|
50
|
+
console.warn("[CommentKit] hide() failed.", e);
|
|
51
|
+
}
|
|
52
|
+
}, { attach: () => O.attach?.() });
|
|
53
|
+
}
|
|
54
|
+
function m(e) {
|
|
55
|
+
let t = `commentkit:draft:v2:${e}:`;
|
|
56
|
+
try {
|
|
57
|
+
for (let e = localStorage.length - 1; e >= 0; e--) {
|
|
58
|
+
let n = localStorage.key(e);
|
|
59
|
+
n?.startsWith(t) && n.includes("~", t.length) && localStorage.removeItem(n);
|
|
60
|
+
}
|
|
61
|
+
} catch {}
|
|
62
|
+
}
|
|
63
|
+
function h(e) {
|
|
64
|
+
try {
|
|
65
|
+
e ? localStorage.setItem(n, JSON.stringify(e)) : localStorage.removeItem(n);
|
|
66
|
+
} catch {}
|
|
67
|
+
}
|
|
68
|
+
function g(e, t, n, r) {
|
|
69
|
+
let i = Date.now(), a = () => {
|
|
70
|
+
document.visibilityState === "hidden" || Date.now() - i < 15e3 || (i = Date.now(), e.loadConfig().then((i) => {
|
|
71
|
+
u(i) || d(i) && !f(e) ? (n(), r()) : i.enabled || t || d(i) || n();
|
|
72
|
+
}, () => void 0));
|
|
73
|
+
}, o = setInterval(a, 6e4);
|
|
74
|
+
return document.addEventListener("visibilitychange", a), () => {
|
|
75
|
+
clearInterval(o), document.removeEventListener("visibilitychange", a);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function _(e, t) {
|
|
79
|
+
let n = e.state.get().config;
|
|
80
|
+
if (n && (u(n) || d(n))) return;
|
|
81
|
+
let r = t instanceof o;
|
|
82
|
+
console.warn(r ? `[CommentKit] The widget could not start: ${t.message} (${t.code}). See https://commentkit.dev/docs/errors#${t.code}` : "[CommentKit] The widget could not start; your page is not affected. See https://commentkit.dev/docs/troubleshooting", t), r && e.emit("error", { error: t }), (!r || t.status >= 500) && e.reportCrash(t, "start");
|
|
83
|
+
}
|
|
84
|
+
function v(e, t) {
|
|
85
|
+
import("./report-CrIqQZDI.js").then((n) => n.reportStart(e, t)).catch(() => void 0);
|
|
86
|
+
}
|
|
87
|
+
var y = "See https://commentkit.dev/docs/";
|
|
88
|
+
function b(e, ...t) {
|
|
89
|
+
let [n, r] = t, a = {
|
|
90
|
+
key: `init() needs your publishable project key, which starts with pk_live_ or pk_test_ (${n ? "the one given is not one" : "none was given"}), so the widget stays off. Copy it from Setup in your CommentKit project and pass it as init({ project: "pk_live_…" }) or data-project="pk_live_…". ${y}quickstart`,
|
|
91
|
+
copy: `CommentKit was added twice: version ${String(n)} is already running on this page, so this copy (${i}) stays off. Add it once, with either the npm package or the script tag, not both. ${y}troubleshooting`,
|
|
92
|
+
project: `init() was called again with another project (${String(n)}) while ${String(r)} is running; the first one stays. Call destroy() on every handle of the first one before starting another project. ${y}troubleshooting`,
|
|
93
|
+
cooling: `The widget is hidden for a few hours on this browser after 3 crashes in a row. Cmd/Ctrl+Shift+K or show() brings it back now. ${y}troubleshooting`
|
|
94
|
+
};
|
|
95
|
+
console.warn(`[CommentKit] ${a[e]}`);
|
|
96
|
+
}
|
|
97
|
+
export { b as explain, _ as failed, m as forgetSignedIn, p as mount, v as reportStart };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { b as e } from "./client-kNAo2TTG.js";
|
|
2
|
+
import { r as t } from "./page-key-DepmJzC1.js";
|
|
3
|
+
import { t as n } from "./pkce-ChKGSW_4.js";
|
|
4
|
+
import { t as r } from "./locale-D8Q4Q2Nt.js";
|
|
5
|
+
// src/core/signin.ts
|
|
6
|
+
function i(e = navigator.userAgent) {
|
|
7
|
+
return /FBAN|FBAV|Instagram|Line\/|WhatsApp|Snapchat|LinkedInApp|Slack|Twitter|MicroMessenger|; wv\)|GSA\//i.test(e);
|
|
8
|
+
}
|
|
9
|
+
var a = "popup=yes,width=460,height=680,left=120,top=80", o = 500, s = 6e5, c = (e) => `commentkit:pkce:${e.projectKey}`;
|
|
10
|
+
function l() {
|
|
11
|
+
return (document.querySelector("[data-commentkit-host]")?.shadowRoot?.querySelector(".ck-root"))?.getAttribute("lang") || r();
|
|
12
|
+
}
|
|
13
|
+
async function u(t, r) {
|
|
14
|
+
let o = e(48), s = e(24), c = await n(o), u = r.mode ?? "auto", d = u === "redirect" || u === "auto" && i(), h = t.signInLink, g = l(), _ = f(t, c, s, r.share ?? null, d ? location.href : null, h, g);
|
|
15
|
+
if (d) return t.signInLink = null, p(t, _, o, s);
|
|
16
|
+
let v = window.open(_.toString(), "commentkit-signin", a);
|
|
17
|
+
if (!v) return u === "auto" ? (t.signInLink = null, p(t, f(t, c, s, r.share ?? null, location.href, h, g), o, s)) : "popup_blocked";
|
|
18
|
+
t.signInLink = null;
|
|
19
|
+
let y = await m(t, v, s);
|
|
20
|
+
return y ? await t.exchange(y, o) ? "signed_in" : "failed" : "cancelled";
|
|
21
|
+
}
|
|
22
|
+
async function d(e) {
|
|
23
|
+
let n = new URL(location.href), r = n.searchParams.get("ck_code"), i = n.searchParams.get("ck_state");
|
|
24
|
+
if (!r || !i) return !1;
|
|
25
|
+
history.replaceState(history.state, "", t(location.href, /^ck_(code|state)$/));
|
|
26
|
+
let a = null;
|
|
27
|
+
try {
|
|
28
|
+
a = JSON.parse(sessionStorage.getItem(c(e)) ?? "null"), sessionStorage.removeItem(c(e));
|
|
29
|
+
} catch {
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
32
|
+
return !a?.verifier || a.state !== i ? !1 : e.exchange(r, a.verifier);
|
|
33
|
+
}
|
|
34
|
+
function f(e, t, n, r, i, a = null, o = l()) {
|
|
35
|
+
let s = new URL(e.authorize ?? "/widget/connect", e.endpoint), c = a ? new URL("guest", s) : s;
|
|
36
|
+
return c.search = new URLSearchParams({
|
|
37
|
+
key: e.projectKey,
|
|
38
|
+
origin: e.origin,
|
|
39
|
+
code_challenge: t,
|
|
40
|
+
code_challenge_method: "S256",
|
|
41
|
+
state: n,
|
|
42
|
+
locale: o,
|
|
43
|
+
...r ? { share: r } : {},
|
|
44
|
+
...i ? { return_to: i } : {}
|
|
45
|
+
}).toString(), a && (c.hash = `signin=${encodeURIComponent(a)}`), c;
|
|
46
|
+
}
|
|
47
|
+
function p(e, t, n, r) {
|
|
48
|
+
try {
|
|
49
|
+
sessionStorage.setItem(c(e), JSON.stringify({
|
|
50
|
+
verifier: n,
|
|
51
|
+
state: r
|
|
52
|
+
}));
|
|
53
|
+
} catch {
|
|
54
|
+
return "failed";
|
|
55
|
+
}
|
|
56
|
+
return location.assign(t.toString()), "redirecting";
|
|
57
|
+
}
|
|
58
|
+
function m(e, t, n) {
|
|
59
|
+
let r = [new URL(e.endpoint).origin, new URL(e.authorize ?? e.endpoint).origin];
|
|
60
|
+
return new Promise((e) => {
|
|
61
|
+
let i = !1, a = Date.now(), c = (t) => {
|
|
62
|
+
i || (i = !0, window.removeEventListener("message", l), clearInterval(d), e(t));
|
|
63
|
+
}, l = (e) => {
|
|
64
|
+
if (e.source !== t || !r.includes(e.origin)) return;
|
|
65
|
+
let i = e.data;
|
|
66
|
+
i?.type === "commentkit:auth" && i.state === n && typeof i.code == "string" && c(i.code);
|
|
67
|
+
};
|
|
68
|
+
window.addEventListener("message", l);
|
|
69
|
+
let u = null, d = setInterval(() => {
|
|
70
|
+
if (Date.now() - a > s) return c(null);
|
|
71
|
+
t.closed && (u ?? (u = Date.now())), u !== null && Date.now() - u > 1e3 && c(null);
|
|
72
|
+
}, o);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export { f as authorizeUrl, d as completeRedirect, u as signIn, l as widgetLocale };
|