@brandlab-digital/site-next 3.20.0 → 4.1.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.
Files changed (345) hide show
  1. package/README.md +24 -0
  2. package/dist/contact/client.d.ts +2 -0
  3. package/dist/contact/client.d.ts.map +1 -1
  4. package/dist/contact/client.js +6 -0
  5. package/dist/contact/client.js.map +1 -1
  6. package/dist/contact/form-client.d.ts.map +1 -1
  7. package/dist/contact/form-client.js +5 -1
  8. package/dist/contact/form-client.js.map +1 -1
  9. package/dist/contact/route-handler.d.ts +5 -0
  10. package/dist/contact/route-handler.d.ts.map +1 -1
  11. package/dist/contact/route-handler.js +1 -0
  12. package/dist/contact/route-handler.js.map +1 -1
  13. package/dist/contact/server-entry.d.ts +1 -0
  14. package/dist/contact/server-entry.d.ts.map +1 -1
  15. package/dist/contact/server-entry.js +1 -0
  16. package/dist/contact/server-entry.js.map +1 -1
  17. package/dist/contact/server.d.ts +8 -0
  18. package/dist/contact/server.d.ts.map +1 -1
  19. package/dist/contact/server.js +24 -0
  20. package/dist/contact/server.js.map +1 -1
  21. package/dist/contact/shared.d.ts +2 -0
  22. package/dist/contact/shared.d.ts.map +1 -1
  23. package/dist/contact/shared.js +2 -0
  24. package/dist/contact/shared.js.map +1 -1
  25. package/dist/contact/spam-filter.d.ts +65 -0
  26. package/dist/contact/spam-filter.d.ts.map +1 -0
  27. package/dist/contact/spam-filter.js +347 -0
  28. package/dist/contact/spam-filter.js.map +1 -0
  29. package/dist/contact/spam-places.d.ts +8 -0
  30. package/dist/contact/spam-places.d.ts.map +1 -0
  31. package/dist/contact/spam-places.js +8 -0
  32. package/dist/contact/spam-places.js.map +1 -0
  33. package/dist/instrumentation-client.d.ts +1 -1
  34. package/dist/instrumentation-client.js +1 -1
  35. package/dist/instrumentation-client.js.map +1 -1
  36. package/dist/navigation/index.d.ts +2 -3
  37. package/dist/navigation/index.d.ts.map +1 -1
  38. package/dist/navigation/index.js +2 -3
  39. package/dist/navigation/index.js.map +1 -1
  40. package/dist/next-config.d.ts +1 -17
  41. package/dist/next-config.d.ts.map +1 -1
  42. package/dist/next-config.js +2 -33
  43. package/dist/next-config.js.map +1 -1
  44. package/package.json +4 -33
  45. package/dist/ui-kit/brandlab-skin.d.ts +0 -112
  46. package/dist/ui-kit/brandlab-skin.d.ts.map +0 -1
  47. package/dist/ui-kit/brandlab-skin.js +0 -2
  48. package/dist/ui-kit/brandlab-skin.js.map +0 -1
  49. package/dist/ui-kit/form/copy.d.ts +0 -3
  50. package/dist/ui-kit/form/copy.d.ts.map +0 -1
  51. package/dist/ui-kit/form/copy.js +0 -5
  52. package/dist/ui-kit/form/copy.js.map +0 -1
  53. package/dist/ui-kit/form/dialog.d.ts +0 -24
  54. package/dist/ui-kit/form/dialog.d.ts.map +0 -1
  55. package/dist/ui-kit/form/dialog.js +0 -17
  56. package/dist/ui-kit/form/dialog.js.map +0 -1
  57. package/dist/ui-kit/form/field.d.ts +0 -30
  58. package/dist/ui-kit/form/field.d.ts.map +0 -1
  59. package/dist/ui-kit/form/field.js +0 -11
  60. package/dist/ui-kit/form/field.js.map +0 -1
  61. package/dist/ui-kit/form/index.d.ts +0 -7
  62. package/dist/ui-kit/form/index.d.ts.map +0 -1
  63. package/dist/ui-kit/form/index.js +0 -7
  64. package/dist/ui-kit/form/index.js.map +0 -1
  65. package/dist/ui-kit/form/photo-upload.d.ts +0 -40
  66. package/dist/ui-kit/form/photo-upload.d.ts.map +0 -1
  67. package/dist/ui-kit/form/photo-upload.js +0 -19
  68. package/dist/ui-kit/form/photo-upload.js.map +0 -1
  69. package/dist/ui-kit/form/quote-dialog.d.ts +0 -15
  70. package/dist/ui-kit/form/quote-dialog.d.ts.map +0 -1
  71. package/dist/ui-kit/form/quote-dialog.js +0 -68
  72. package/dist/ui-kit/form/quote-dialog.js.map +0 -1
  73. package/dist/ui-kit/form/quote-form.d.ts +0 -172
  74. package/dist/ui-kit/form/quote-form.d.ts.map +0 -1
  75. package/dist/ui-kit/form/quote-form.js +0 -238
  76. package/dist/ui-kit/form/quote-form.js.map +0 -1
  77. package/dist/ui-kit/form/thank-you.d.ts +0 -40
  78. package/dist/ui-kit/form/thank-you.d.ts.map +0 -1
  79. package/dist/ui-kit/form/thank-you.js +0 -36
  80. package/dist/ui-kit/form/thank-you.js.map +0 -1
  81. package/dist/ui-kit/icon-glyphs.d.ts +0 -41
  82. package/dist/ui-kit/icon-glyphs.d.ts.map +0 -1
  83. package/dist/ui-kit/icon-glyphs.js +0 -138
  84. package/dist/ui-kit/icon-glyphs.js.map +0 -1
  85. package/dist/ui-kit/icon-sprite.d.ts +0 -19
  86. package/dist/ui-kit/icon-sprite.d.ts.map +0 -1
  87. package/dist/ui-kit/icon-sprite.js +0 -44
  88. package/dist/ui-kit/icon-sprite.js.map +0 -1
  89. package/dist/ui-kit/icons.d.ts +0 -50
  90. package/dist/ui-kit/icons.d.ts.map +0 -1
  91. package/dist/ui-kit/icons.js +0 -55
  92. package/dist/ui-kit/icons.js.map +0 -1
  93. package/dist/ui-kit/prefetch.d.ts +0 -59
  94. package/dist/ui-kit/prefetch.d.ts.map +0 -1
  95. package/dist/ui-kit/prefetch.js +0 -63
  96. package/dist/ui-kit/prefetch.js.map +0 -1
  97. package/dist/ui-kit/primitives/badge.d.ts +0 -25
  98. package/dist/ui-kit/primitives/badge.d.ts.map +0 -1
  99. package/dist/ui-kit/primitives/badge.js +0 -21
  100. package/dist/ui-kit/primitives/badge.js.map +0 -1
  101. package/dist/ui-kit/primitives/breadcrumbs.d.ts +0 -27
  102. package/dist/ui-kit/primitives/breadcrumbs.d.ts.map +0 -1
  103. package/dist/ui-kit/primitives/breadcrumbs.js +0 -40
  104. package/dist/ui-kit/primitives/breadcrumbs.js.map +0 -1
  105. package/dist/ui-kit/primitives/button.d.ts +0 -32
  106. package/dist/ui-kit/primitives/button.d.ts.map +0 -1
  107. package/dist/ui-kit/primitives/button.js +0 -8
  108. package/dist/ui-kit/primitives/button.js.map +0 -1
  109. package/dist/ui-kit/primitives/card.d.ts +0 -40
  110. package/dist/ui-kit/primitives/card.d.ts.map +0 -1
  111. package/dist/ui-kit/primitives/card.js +0 -8
  112. package/dist/ui-kit/primitives/card.js.map +0 -1
  113. package/dist/ui-kit/primitives/index.d.ts +0 -16
  114. package/dist/ui-kit/primitives/index.d.ts.map +0 -1
  115. package/dist/ui-kit/primitives/index.js +0 -16
  116. package/dist/ui-kit/primitives/index.js.map +0 -1
  117. package/dist/ui-kit/primitives/layout.d.ts +0 -85
  118. package/dist/ui-kit/primitives/layout.d.ts.map +0 -1
  119. package/dist/ui-kit/primitives/layout.js +0 -52
  120. package/dist/ui-kit/primitives/layout.js.map +0 -1
  121. package/dist/ui-kit/primitives/links.d.ts +0 -74
  122. package/dist/ui-kit/primitives/links.d.ts.map +0 -1
  123. package/dist/ui-kit/primitives/links.js +0 -41
  124. package/dist/ui-kit/primitives/links.js.map +0 -1
  125. package/dist/ui-kit/primitives/lists.d.ts +0 -51
  126. package/dist/ui-kit/primitives/lists.d.ts.map +0 -1
  127. package/dist/ui-kit/primitives/lists.js +0 -34
  128. package/dist/ui-kit/primitives/lists.js.map +0 -1
  129. package/dist/ui-kit/primitives/media-frame.d.ts +0 -33
  130. package/dist/ui-kit/primitives/media-frame.d.ts.map +0 -1
  131. package/dist/ui-kit/primitives/media-frame.js +0 -61
  132. package/dist/ui-kit/primitives/media-frame.js.map +0 -1
  133. package/dist/ui-kit/primitives/media.d.ts +0 -40
  134. package/dist/ui-kit/primitives/media.d.ts.map +0 -1
  135. package/dist/ui-kit/primitives/media.js +0 -9
  136. package/dist/ui-kit/primitives/media.js.map +0 -1
  137. package/dist/ui-kit/primitives/quote-button.d.ts +0 -46
  138. package/dist/ui-kit/primitives/quote-button.d.ts.map +0 -1
  139. package/dist/ui-kit/primitives/quote-button.js +0 -38
  140. package/dist/ui-kit/primitives/quote-button.js.map +0 -1
  141. package/dist/ui-kit/primitives/stat.d.ts +0 -25
  142. package/dist/ui-kit/primitives/stat.d.ts.map +0 -1
  143. package/dist/ui-kit/primitives/stat.js +0 -7
  144. package/dist/ui-kit/primitives/stat.js.map +0 -1
  145. package/dist/ui-kit/repeated-slots.d.ts +0 -153
  146. package/dist/ui-kit/repeated-slots.d.ts.map +0 -1
  147. package/dist/ui-kit/repeated-slots.js +0 -100
  148. package/dist/ui-kit/repeated-slots.js.map +0 -1
  149. package/dist/ui-kit/sections/accordion.d.ts +0 -28
  150. package/dist/ui-kit/sections/accordion.d.ts.map +0 -1
  151. package/dist/ui-kit/sections/accordion.js +0 -14
  152. package/dist/ui-kit/sections/accordion.js.map +0 -1
  153. package/dist/ui-kit/sections/area-map.d.ts +0 -64
  154. package/dist/ui-kit/sections/area-map.d.ts.map +0 -1
  155. package/dist/ui-kit/sections/area-map.js +0 -146
  156. package/dist/ui-kit/sections/area-map.js.map +0 -1
  157. package/dist/ui-kit/sections/before-after.d.ts +0 -59
  158. package/dist/ui-kit/sections/before-after.d.ts.map +0 -1
  159. package/dist/ui-kit/sections/before-after.js +0 -42
  160. package/dist/ui-kit/sections/before-after.js.map +0 -1
  161. package/dist/ui-kit/sections/contact-block.d.ts +0 -77
  162. package/dist/ui-kit/sections/contact-block.d.ts.map +0 -1
  163. package/dist/ui-kit/sections/contact-block.js +0 -23
  164. package/dist/ui-kit/sections/contact-block.js.map +0 -1
  165. package/dist/ui-kit/sections/council-rules.d.ts +0 -64
  166. package/dist/ui-kit/sections/council-rules.d.ts.map +0 -1
  167. package/dist/ui-kit/sections/council-rules.js +0 -46
  168. package/dist/ui-kit/sections/council-rules.js.map +0 -1
  169. package/dist/ui-kit/sections/coverage.d.ts +0 -53
  170. package/dist/ui-kit/sections/coverage.d.ts.map +0 -1
  171. package/dist/ui-kit/sections/coverage.js +0 -57
  172. package/dist/ui-kit/sections/coverage.js.map +0 -1
  173. package/dist/ui-kit/sections/cta-band.d.ts +0 -67
  174. package/dist/ui-kit/sections/cta-band.d.ts.map +0 -1
  175. package/dist/ui-kit/sections/cta-band.js +0 -11
  176. package/dist/ui-kit/sections/cta-band.js.map +0 -1
  177. package/dist/ui-kit/sections/emergency-band.d.ts +0 -60
  178. package/dist/ui-kit/sections/emergency-band.d.ts.map +0 -1
  179. package/dist/ui-kit/sections/emergency-band.js +0 -43
  180. package/dist/ui-kit/sections/emergency-band.js.map +0 -1
  181. package/dist/ui-kit/sections/faqs.d.ts +0 -46
  182. package/dist/ui-kit/sections/faqs.d.ts.map +0 -1
  183. package/dist/ui-kit/sections/faqs.js +0 -39
  184. package/dist/ui-kit/sections/faqs.js.map +0 -1
  185. package/dist/ui-kit/sections/gallery.d.ts +0 -60
  186. package/dist/ui-kit/sections/gallery.d.ts.map +0 -1
  187. package/dist/ui-kit/sections/gallery.js +0 -39
  188. package/dist/ui-kit/sections/gallery.js.map +0 -1
  189. package/dist/ui-kit/sections/hero.d.ts +0 -168
  190. package/dist/ui-kit/sections/hero.d.ts.map +0 -1
  191. package/dist/ui-kit/sections/hero.js +0 -147
  192. package/dist/ui-kit/sections/hero.js.map +0 -1
  193. package/dist/ui-kit/sections/index.d.ts +0 -29
  194. package/dist/ui-kit/sections/index.d.ts.map +0 -1
  195. package/dist/ui-kit/sections/index.js +0 -29
  196. package/dist/ui-kit/sections/index.js.map +0 -1
  197. package/dist/ui-kit/sections/licences.d.ts +0 -95
  198. package/dist/ui-kit/sections/licences.d.ts.map +0 -1
  199. package/dist/ui-kit/sections/licences.js +0 -72
  200. package/dist/ui-kit/sections/licences.js.map +0 -1
  201. package/dist/ui-kit/sections/local-facts.d.ts +0 -107
  202. package/dist/ui-kit/sections/local-facts.d.ts.map +0 -1
  203. package/dist/ui-kit/sections/local-facts.js +0 -44
  204. package/dist/ui-kit/sections/local-facts.js.map +0 -1
  205. package/dist/ui-kit/sections/nearby-areas.d.ts +0 -50
  206. package/dist/ui-kit/sections/nearby-areas.d.ts.map +0 -1
  207. package/dist/ui-kit/sections/nearby-areas.js +0 -49
  208. package/dist/ui-kit/sections/nearby-areas.js.map +0 -1
  209. package/dist/ui-kit/sections/nearby-jobs.d.ts +0 -84
  210. package/dist/ui-kit/sections/nearby-jobs.d.ts.map +0 -1
  211. package/dist/ui-kit/sections/nearby-jobs.js +0 -72
  212. package/dist/ui-kit/sections/nearby-jobs.js.map +0 -1
  213. package/dist/ui-kit/sections/page-header.d.ts +0 -29
  214. package/dist/ui-kit/sections/page-header.d.ts.map +0 -1
  215. package/dist/ui-kit/sections/page-header.js +0 -9
  216. package/dist/ui-kit/sections/page-header.js.map +0 -1
  217. package/dist/ui-kit/sections/price-guide.d.ts +0 -59
  218. package/dist/ui-kit/sections/price-guide.d.ts.map +0 -1
  219. package/dist/ui-kit/sections/price-guide.js +0 -28
  220. package/dist/ui-kit/sections/price-guide.js.map +0 -1
  221. package/dist/ui-kit/sections/price-table.d.ts +0 -42
  222. package/dist/ui-kit/sections/price-table.d.ts.map +0 -1
  223. package/dist/ui-kit/sections/price-table.js +0 -29
  224. package/dist/ui-kit/sections/price-table.js.map +0 -1
  225. package/dist/ui-kit/sections/projects.d.ts +0 -79
  226. package/dist/ui-kit/sections/projects.d.ts.map +0 -1
  227. package/dist/ui-kit/sections/projects.js +0 -69
  228. package/dist/ui-kit/sections/projects.js.map +0 -1
  229. package/dist/ui-kit/sections/proof-strip.d.ts +0 -68
  230. package/dist/ui-kit/sections/proof-strip.d.ts.map +0 -1
  231. package/dist/ui-kit/sections/proof-strip.js +0 -27
  232. package/dist/ui-kit/sections/proof-strip.js.map +0 -1
  233. package/dist/ui-kit/sections/quote-checklist.d.ts +0 -43
  234. package/dist/ui-kit/sections/quote-checklist.d.ts.map +0 -1
  235. package/dist/ui-kit/sections/quote-checklist.js +0 -19
  236. package/dist/ui-kit/sections/quote-checklist.js.map +0 -1
  237. package/dist/ui-kit/sections/rating-chip.d.ts +0 -35
  238. package/dist/ui-kit/sections/rating-chip.d.ts.map +0 -1
  239. package/dist/ui-kit/sections/rating-chip.js +0 -21
  240. package/dist/ui-kit/sections/rating-chip.js.map +0 -1
  241. package/dist/ui-kit/sections/related-services.d.ts +0 -41
  242. package/dist/ui-kit/sections/related-services.d.ts.map +0 -1
  243. package/dist/ui-kit/sections/related-services.js +0 -52
  244. package/dist/ui-kit/sections/related-services.js.map +0 -1
  245. package/dist/ui-kit/sections/reviews-band.d.ts +0 -124
  246. package/dist/ui-kit/sections/reviews-band.d.ts.map +0 -1
  247. package/dist/ui-kit/sections/reviews-band.js +0 -115
  248. package/dist/ui-kit/sections/reviews-band.js.map +0 -1
  249. package/dist/ui-kit/sections/section-sequence.d.ts +0 -41
  250. package/dist/ui-kit/sections/section-sequence.d.ts.map +0 -1
  251. package/dist/ui-kit/sections/section-sequence.js +0 -36
  252. package/dist/ui-kit/sections/section-sequence.js.map +0 -1
  253. package/dist/ui-kit/sections/services-grid.d.ts +0 -82
  254. package/dist/ui-kit/sections/services-grid.d.ts.map +0 -1
  255. package/dist/ui-kit/sections/services-grid.js +0 -90
  256. package/dist/ui-kit/sections/services-grid.js.map +0 -1
  257. package/dist/ui-kit/sections/signature-section.d.ts +0 -42
  258. package/dist/ui-kit/sections/signature-section.d.ts.map +0 -1
  259. package/dist/ui-kit/sections/signature-section.js +0 -14
  260. package/dist/ui-kit/sections/signature-section.js.map +0 -1
  261. package/dist/ui-kit/sections/site-footer-columns.d.ts +0 -12
  262. package/dist/ui-kit/sections/site-footer-columns.d.ts.map +0 -1
  263. package/dist/ui-kit/sections/site-footer-columns.js +0 -63
  264. package/dist/ui-kit/sections/site-footer-columns.js.map +0 -1
  265. package/dist/ui-kit/sections/site-footer.d.ts +0 -66
  266. package/dist/ui-kit/sections/site-footer.d.ts.map +0 -1
  267. package/dist/ui-kit/sections/site-footer.js +0 -49
  268. package/dist/ui-kit/sections/site-footer.js.map +0 -1
  269. package/dist/ui-kit/sections/work-photos.d.ts +0 -15
  270. package/dist/ui-kit/sections/work-photos.d.ts.map +0 -1
  271. package/dist/ui-kit/sections/work-photos.js +0 -24
  272. package/dist/ui-kit/sections/work-photos.js.map +0 -1
  273. package/dist/ui-kit/shell/back-to-top-client.d.ts +0 -9
  274. package/dist/ui-kit/shell/back-to-top-client.d.ts.map +0 -1
  275. package/dist/ui-kit/shell/back-to-top-client.js +0 -8
  276. package/dist/ui-kit/shell/back-to-top-client.js.map +0 -1
  277. package/dist/ui-kit/shell/back-to-top.d.ts +0 -13
  278. package/dist/ui-kit/shell/back-to-top.d.ts.map +0 -1
  279. package/dist/ui-kit/shell/back-to-top.js +0 -14
  280. package/dist/ui-kit/shell/back-to-top.js.map +0 -1
  281. package/dist/ui-kit/shell/call-bar-client.d.ts +0 -8
  282. package/dist/ui-kit/shell/call-bar-client.d.ts.map +0 -1
  283. package/dist/ui-kit/shell/call-bar-client.js +0 -13
  284. package/dist/ui-kit/shell/call-bar-client.js.map +0 -1
  285. package/dist/ui-kit/shell/current-link.d.ts +0 -45
  286. package/dist/ui-kit/shell/current-link.d.ts.map +0 -1
  287. package/dist/ui-kit/shell/current-link.js +0 -54
  288. package/dist/ui-kit/shell/current-link.js.map +0 -1
  289. package/dist/ui-kit/shell/drawer-client.d.ts +0 -22
  290. package/dist/ui-kit/shell/drawer-client.d.ts.map +0 -1
  291. package/dist/ui-kit/shell/drawer-client.js +0 -70
  292. package/dist/ui-kit/shell/drawer-client.js.map +0 -1
  293. package/dist/ui-kit/shell/header-client.d.ts +0 -44
  294. package/dist/ui-kit/shell/header-client.d.ts.map +0 -1
  295. package/dist/ui-kit/shell/header-client.js +0 -59
  296. package/dist/ui-kit/shell/header-client.js.map +0 -1
  297. package/dist/ui-kit/shell/index.d.ts +0 -7
  298. package/dist/ui-kit/shell/index.d.ts.map +0 -1
  299. package/dist/ui-kit/shell/index.js +0 -7
  300. package/dist/ui-kit/shell/index.js.map +0 -1
  301. package/dist/ui-kit/shell/intent-prefetch.d.ts +0 -4
  302. package/dist/ui-kit/shell/intent-prefetch.d.ts.map +0 -1
  303. package/dist/ui-kit/shell/intent-prefetch.js +0 -62
  304. package/dist/ui-kit/shell/intent-prefetch.js.map +0 -1
  305. package/dist/ui-kit/shell/mobile-call-bar.d.ts +0 -25
  306. package/dist/ui-kit/shell/mobile-call-bar.d.ts.map +0 -1
  307. package/dist/ui-kit/shell/mobile-call-bar.js +0 -21
  308. package/dist/ui-kit/shell/mobile-call-bar.js.map +0 -1
  309. package/dist/ui-kit/shell/mobile-drawer.d.ts +0 -41
  310. package/dist/ui-kit/shell/mobile-drawer.d.ts.map +0 -1
  311. package/dist/ui-kit/shell/mobile-drawer.js +0 -41
  312. package/dist/ui-kit/shell/mobile-drawer.js.map +0 -1
  313. package/dist/ui-kit/shell/shell-context.d.ts +0 -3
  314. package/dist/ui-kit/shell/shell-context.d.ts.map +0 -1
  315. package/dist/ui-kit/shell/shell-context.js +0 -5
  316. package/dist/ui-kit/shell/shell-context.js.map +0 -1
  317. package/dist/ui-kit/shell/shell-quote.d.ts +0 -10
  318. package/dist/ui-kit/shell/shell-quote.d.ts.map +0 -1
  319. package/dist/ui-kit/shell/shell-quote.js +0 -13
  320. package/dist/ui-kit/shell/shell-quote.js.map +0 -1
  321. package/dist/ui-kit/shell/site-header.d.ts +0 -55
  322. package/dist/ui-kit/shell/site-header.d.ts.map +0 -1
  323. package/dist/ui-kit/shell/site-header.js +0 -35
  324. package/dist/ui-kit/shell/site-header.js.map +0 -1
  325. package/dist/ui-kit/shell/social-links.d.ts +0 -7
  326. package/dist/ui-kit/shell/social-links.d.ts.map +0 -1
  327. package/dist/ui-kit/shell/social-links.js +0 -12
  328. package/dist/ui-kit/shell/social-links.js.map +0 -1
  329. package/dist/ui-kit/shell/utility-bar.d.ts +0 -33
  330. package/dist/ui-kit/shell/utility-bar.d.ts.map +0 -1
  331. package/dist/ui-kit/shell/utility-bar.js +0 -15
  332. package/dist/ui-kit/shell/utility-bar.js.map +0 -1
  333. package/dist/ui-kit/skin-index.d.ts +0 -4
  334. package/dist/ui-kit/skin-index.d.ts.map +0 -1
  335. package/dist/ui-kit/skin-index.js +0 -3
  336. package/dist/ui-kit/skin-index.js.map +0 -1
  337. package/dist/ui-kit/skin.d.ts +0 -65
  338. package/dist/ui-kit/skin.d.ts.map +0 -1
  339. package/dist/ui-kit/skin.js +0 -60
  340. package/dist/ui-kit/skin.js.map +0 -1
  341. package/dist/ui-kit/structure.css +0 -2546
  342. package/dist/ui-kit/types.d.ts +0 -27
  343. package/dist/ui-kit/types.d.ts.map +0 -1
  344. package/dist/ui-kit/types.js +0 -6
  345. package/dist/ui-kit/types.js.map +0 -1
@@ -0,0 +1,347 @@
1
+ import { BRANDLAB_SPAM_FILTER_PLACE_NAMES } from './spam-places.js';
2
+ export const BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS = [
3
+ 'pitch-marketing',
4
+ 'pitch-reviews',
5
+ 'pitch-estimating',
6
+ 'pitch-outreach',
7
+ 'pitch-email-lure',
8
+ 'pitch-lure',
9
+ 'pitch-site',
10
+ 'messaging-link',
11
+ 'lookalike-letters',
12
+ 'known-sender',
13
+ ];
14
+ export const BRANDLAB_CONTACT_WEAK_SPAM_SIGNALS = ['link', 'overseas-phone', 'foreign-suburb'];
15
+ /** The fewest milliseconds between the form rendering and its submission (3 s); anything faster is dropped silently. */
16
+ export const BRANDLAB_CONTACT_MIN_FILL_MS = 3_000;
17
+ /**
18
+ * SHA-256 of known spam sender addresses (trimmed, lower case). Hashes only: never store a raw address.
19
+ * The first two came from AA Tree's 2 November review-selling wave (its own filter, PR #57, replaced by this one).
20
+ */
21
+ export const BRANDLAB_CONTACT_KNOWN_SPAM_SENDER_HASHES = Object.freeze([
22
+ '8d1b3f54b80e318ec48be6f7a75fb1d0c04fd9969aa40e2d97057936b2cf4c7c',
23
+ '4afca3f9ea7339d1a9d52029913be62780a99069f06893e414a9b44f254d6d91',
24
+ ]);
25
+ const STRONG = new Set(BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS);
26
+ const PITCH_SIGNALS = [
27
+ 'pitch-marketing', 'pitch-reviews', 'pitch-estimating', 'pitch-outreach', 'pitch-email-lure', 'pitch-lure',
28
+ ];
29
+ /** Letters with no Australian English use: mathematical, full-width, enclosed and small-capital forms. */
30
+ const LOOKALIKE_CHARACTERS = /[\u{1D400}-\u{1D7FF}A-Za-zⒶ-ⓩᴀ-ᴫɐ-ʯℂℊ-ℓℕℙ-ℝℤℬℭℯ-ℱℳℴ]/u;
31
+ const LATIN_LETTER = /[A-Za-z]/;
32
+ const CYRILLIC_OR_GREEK_LETTER = /[Ͱ-ϿЀ-ӿ]/;
33
+ const PITCH_PATTERNS = {
34
+ 'pitch-marketing': [
35
+ /\bseo\b/,
36
+ /\bsearch engine optimi[sz]/,
37
+ /\b(?:first|1st|top) page (?:of|on) google\b/,
38
+ /\bpage (?:1|one) (?:of|on) google\b/,
39
+ /\b(?:google|search|website|organic) rankings?\b/,
40
+ /\brank(?:ing)? (?:higher|better|#?1|first|on (?:the )?(?:first page|google))/,
41
+ /\borganic traffic\b/,
42
+ /\bbacklinks?\b/,
43
+ /\bdomain authority\b/,
44
+ /\b(?:website|site|seo|free) audit\b/,
45
+ /\bdigital marketing (?:agency|services|expert|specialist|strateg)/,
46
+ /\blead generation\b/,
47
+ /\b(?:more|qualified|exclusive) leads (?:for|to) your\b/,
48
+ /\bboost your (?:online |google |local )?(?:presence|visibility|sales|rankings?|traffic)\b/,
49
+ /\b(?:redesign|revamp) (?:of )?your (?:website|site)\b/,
50
+ /\bai (?:chat ?bot|agent|receptionist|voice|assistant|calling|automation)/,
51
+ /\b(?:google (?:my )?business|business) profile (?:optimi[sz]|management|ranking)/,
52
+ /\bsocial media (?:marketing|management)\b/,
53
+ /\bweb ?(?:design|development) (?:services|agency|company)\b/,
54
+ /\b(?:not (?:well )?optimi[sz]ed|optimi[sz]ed) for google\b/,
55
+ /\bissue report (?:with|&|and) screenshot/,
56
+ /\b(?:seo|ranking) report\b|\baudit report (?:&|and) proposal\b/,
57
+ /\bup in the (?:google )?rankings\b/,
58
+ /\bimprove (?:these|your) search results\b/,
59
+ /\bredesign mock-?up\b/,
60
+ /\bmock-?up for you\b/,
61
+ /\bhow your (?:site|website) could look\b/,
62
+ ],
63
+ 'pitch-reviews': [
64
+ /\b(?:buy|purchase|get) (?:real |genuine |positive )?(?:google |5[- ]star |five[- ]star )reviews\b/,
65
+ /\b(?:5|five)[- ]star (?:google )?reviews (?:for|to) your\b/,
66
+ /\b(?:remove|delete|deleting|removing|removal of) (?:any |all |the |your )?(?:previous |old |bad |negative |fake )+reviews\b/,
67
+ /\bnegative reviews (?:removed|deleted|removal)\b/,
68
+ /\breviews? expert team\b/,
69
+ /\breviews from local guides\b/,
70
+ /\blocal guides?\b.{0,60}\breviews\b/,
71
+ /\bincrease your (?:google )?(?:reviews|rating)\b/,
72
+ ],
73
+ 'pitch-estimating': [
74
+ /\b(?:quantity |material |construction )?take-?offs?\b/,
75
+ /\bestimating (?:services|firm|company|team|support)\b/,
76
+ /\bcost estimat(?:ing|ion|or) (?:services|firm|company)\b/,
77
+ /\boutsourced? estimat/,
78
+ /\bwe (?:provide|assist|offer|deliver|specialise|specialize|convert|prepare)\b.{0,120}\b(?:take-?offs?|estimat\w*|bills? of quantities|material (?:lists?|counts?|breakdowns?)|labou?r (?:cost )?breakdowns?)/,
79
+ /\b(?:remote|rapid) (?:estimating|estimates|take-?offs?)\b/,
80
+ /\bitemi[sz]ed (?:excel )?material lists?\b|\bline-item material counts?\b/,
81
+ /\bplans into\b.{0,40}\bexcel\b/,
82
+ /\b(?:assist|support|help) (?:construction businesses|trade contractors)\b/,
83
+ /\btender (?:drawings|pricing|quotes)\b.{0,60}\b(?:like us to|on your desk|out the door|pricing up)\b|\bsupport with project measurements\b/,
84
+ /\boverflow during busy\b/,
85
+ ],
86
+ 'pitch-outreach': [
87
+ /\bare you the (?:business )?owner\b/,
88
+ /\bwho (?:handles|manages|looks after|is in charge of) your (?:marketing|website|seo|online|advertising)\b/,
89
+ /\bi(?:'m| am) reaching out (?:to|from|because|on behalf|regarding)\b/,
90
+ /\bwe help (?:local |small |australian )?(?:businesses|companies|contractors|tradies|trades(?:people|men)?|plumbers|builders|electricians|roofers|landscapers|arborists)\b/,
91
+ /\bwhite[- ]label\b/,
92
+ /\boutsourc(?:e|ing) (?:your|services|solutions)\b/,
93
+ /\bvirtual assistants?\b/,
94
+ /\b(?:our|my) (?:agency|company|team|firm) (?:can help|specialises|specializes|helps|offers|provides)\b/,
95
+ /\bfree (?:trial|demo|strategy (?:call|session)|consultation call)\b/,
96
+ /\b(?:book|schedule) a (?:quick |short |free )?(?:call|demo|meeting) (?:with me|here|at)\b/,
97
+ /\b(?:reply|respond) (?:with )?["']?stop["']? to (?:opt out|unsubscribe)\b/,
98
+ /\bunsubscribe\b/,
99
+ /\bnot relevant\? reply\b/,
100
+ /\b(?:i|we) won'?t contact you again\b/,
101
+ /\b\$?\d+ off your first order\b/,
102
+ /\bdomain(?: name)?\b.{0,60}\b(?:currently )?available for (?:sale|purchase)\b/,
103
+ /\bbefore listing it publicly\b/,
104
+ ],
105
+ 'pitch-email-lure': [
106
+ /\breach (?:me|us) (?:via|by|through|at|on) (?:my |our )?e-?mail\b/,
107
+ /\bcontact (?:me|us) (?:only )?(?:via|by|through) (?:my |our )?e-?mail\b/,
108
+ /\breply (?:to|via|by) (?:this |my |our )?e-?mail (?:for|if|to get|to receive)\b/,
109
+ /\be-?mail (?:me|us) (?:for|to get|to receive) (?:more |the |a |our )?(?:details|info|information|pricing|proposal|price list|samples?|portfolio|case stud)/,
110
+ /\bkindly (?:reply|respond|revert|get back)\b/,
111
+ /\bdrop (?:me|us) (?:a line|an e-?mail)\b/,
112
+ /\b(?:i'?m|i am) interested in your services\b.{0,40}\b(?:reach|contact|e-?mail) me\b/,
113
+ /\binformation about your services, design options, pricing\b/,
114
+ ],
115
+ 'pitch-lure': [
116
+ /\bon behalf of\b.{0,40}\blawyer\b/,
117
+ /\bshare with your team for review and assessment\b/,
118
+ /\bwhether you are accepting new work\b/,
119
+ /\bprovide the details required to prepare a full proposal\b/,
120
+ ],
121
+ };
122
+ const MESSAGING_LINK = /\b(?:wa\.me\/|api\.whatsapp\.com|chat\.whatsapp\.com|t\.me\/|telegram\.me\/)/;
123
+ const MESSAGING_MENTION = /\b(?:whats ?app|telegram)\b/;
124
+ const URL_PATTERN = /\bhttps?:\/\/|\bwww\.|\b[a-z0-9-]+\.(?:com|net|org|io|co|agency|biz|info|online|site|xyz|ai|app|me|us|uk|in|pk|bd|ph|ng|store|tech|digital|marketing|solutions|services)\b/;
125
+ const EMAIL_PATTERN = /[^\s@]+@[^\s@]+\.[^\s@]+/g;
126
+ const INTERNATIONAL_NUMBER = /(?:\+|\b00)\s?(\d[\d\s().-]{6,18}\d)/g;
127
+ const AUSTRALIAN_STATES = new Set(['nsw', 'vic', 'qld', 'sa', 'wa', 'tas', 'nt', 'act', 'au', 'aus', 'australia']);
128
+ const ABBREVIATIONS = {
129
+ nth: 'north', sth: 'south', st: 'saint', mt: 'mount', pt: 'point', pk: 'park', hts: 'heights', stn: 'station',
130
+ };
131
+ /** Whole values that are clearly not Australian. Only unambiguous names: no place that also exists here (Manila NSW). */
132
+ const FOREIGN_PLACES = new Set([
133
+ 'india', 'pakistan', 'bangladesh', 'nigeria', 'philippines', 'usa', 'us', 'united states', 'america', 'uk',
134
+ 'united kingdom', 'england', 'scotland', 'ireland', 'canada', 'singapore', 'malaysia', 'indonesia', 'vietnam',
135
+ 'thailand', 'nepal', 'sri lanka', 'kenya', 'ghana', 'egypt', 'uae', 'dubai', 'abu dhabi', 'qatar', 'saudi arabia',
136
+ 'dhaka', 'chittagong', 'karachi', 'lahore', 'islamabad', 'delhi', 'new delhi', 'mumbai', 'bangalore', 'bengaluru',
137
+ 'kolkata', 'chennai', 'hyderabad', 'pune', 'jaipur', 'ahmedabad', 'lagos', 'abuja', 'nairobi', 'cairo', 'cebu',
138
+ 'quezon city', 'makati', 'jakarta', 'kuala lumpur', 'hanoi', 'ho chi minh', 'bangkok', 'kathmandu', 'colombo',
139
+ 'london', 'manchester', 'birmingham', 'new york', 'los angeles', 'chicago', 'houston', 'miami', 'seattle',
140
+ 'san francisco', 'las vegas', 'california', 'florida', 'toronto', 'vancouver', 'new jersey',
141
+ ]);
142
+ /** Values a real customer types when the suburb does not apply. */
143
+ const HARMLESS_VALUES = new Set(['na', 'n a', 'nil', 'none', 'tba', 'tbc', 'no', 'ok', 'x']);
144
+ const KEYBOARD_RUNS = ['qwer', 'wert', 'erty', 'asdf', 'sdfg', 'dfgh', 'fghj', 'ghjk', 'hjkl', 'zxcv', 'xcvb', 'cvbn', 'vbnm'];
145
+ let placeIndex;
146
+ function placesByLength() {
147
+ if (placeIndex)
148
+ return placeIndex;
149
+ placeIndex = new Map();
150
+ for (const name of BRANDLAB_SPAM_FILTER_PLACE_NAMES) {
151
+ const list = placeIndex.get(name.length) ?? [];
152
+ list.push(name);
153
+ placeIndex.set(name.length, list);
154
+ }
155
+ return placeIndex;
156
+ }
157
+ function editDistanceWithin(a, b, limit) {
158
+ if (Math.abs(a.length - b.length) > limit)
159
+ return false;
160
+ let previous = Array.from({ length: b.length + 1 }, (_, index) => index);
161
+ for (let i = 1; i <= a.length; i += 1) {
162
+ const current = [i];
163
+ let rowMin = i;
164
+ for (let j = 1; j <= b.length; j += 1) {
165
+ const cost = a[i - 1] === b[j - 1] ? 0 : 1;
166
+ const value = Math.min(previous[j] + 1, current[j - 1] + 1, previous[j - 1] + cost);
167
+ current.push(value);
168
+ rowMin = Math.min(rowMin, value);
169
+ }
170
+ if (rowMin > limit)
171
+ return false;
172
+ previous = current;
173
+ }
174
+ return previous[b.length] <= limit;
175
+ }
176
+ /** True when the text is, or is a typo of, a Sydney or Central Coast place. */
177
+ function nearKnownPlace(text) {
178
+ const limit = text.length >= 8 ? 2 : text.length >= 4 ? 1 : 0;
179
+ const index = placesByLength();
180
+ for (let length = text.length - limit; length <= text.length + limit; length += 1) {
181
+ for (const name of index.get(length) ?? []) {
182
+ if (name === text || (limit > 0 && editDistanceWithin(text, name, limit)))
183
+ return true;
184
+ }
185
+ }
186
+ return false;
187
+ }
188
+ function looksRandom(word) {
189
+ if (word.length < 4)
190
+ return false;
191
+ if (!/[aeiouy]/.test(word))
192
+ return true;
193
+ if (/[^aeiouy]{5,}/.test(word))
194
+ return true;
195
+ if (/(.)\1{3,}/.test(word))
196
+ return true;
197
+ if (KEYBOARD_RUNS.some((run) => word.includes(run)))
198
+ return true;
199
+ const vowels = word.replace(/[^aeiouy]/g, '').length;
200
+ return word.length >= 6 && vowels / word.length < 0.2;
201
+ }
202
+ /**
203
+ * Whether a typed suburb is clearly not an Australian place or is random characters. Typos of Sydney and Central
204
+ * Coast places, abbreviations ("Nth Ryde", "St Ives", "Mt Druitt"), postcodes, state names and any ordinary-looking
205
+ * word (an interstate town) all pass: only a foreign place, a two-letter code that is not a state, or keyboard mash
206
+ * counts.
207
+ */
208
+ export function isClearlyForeignOrRandomSuburb(value) {
209
+ const normalized = value
210
+ .normalize('NFKD')
211
+ .replace(/[̀-ͯ]/g, '')
212
+ .toLowerCase()
213
+ .replace(/[^a-z0-9\s]/g, ' ')
214
+ .replace(/\s+/g, ' ')
215
+ .trim();
216
+ if (!normalized || HARMLESS_VALUES.has(normalized))
217
+ return false;
218
+ if (FOREIGN_PLACES.has(normalized))
219
+ return true;
220
+ const words = normalized
221
+ .split(' ')
222
+ .filter((word) => !AUSTRALIAN_STATES.has(word) && !/^\d{3,4}$/.test(word))
223
+ .map((word) => ABBREVIATIONS[word] ?? word);
224
+ if (words.length === 0)
225
+ return false;
226
+ if (words.some((word) => /\d/.test(word)))
227
+ return false;
228
+ const text = words.join(' ');
229
+ if (FOREIGN_PLACES.has(text))
230
+ return true;
231
+ if (normalized.length === 2)
232
+ return !AUSTRALIAN_STATES.has(normalized);
233
+ if (nearKnownPlace(text) || words.some((word) => word.length >= 4 && nearKnownPlace(word)))
234
+ return false;
235
+ return words.every((word) => looksRandom(word) || word.length < 4) && words.some(looksRandom);
236
+ }
237
+ function normalizedText(value) {
238
+ return value
239
+ .normalize('NFKC')
240
+ .toLowerCase()
241
+ .replace(/[‘’ʼ]/g, "'")
242
+ .replace(/\s+/g, ' ');
243
+ }
244
+ function hasLookalikeLetters(value) {
245
+ if (LOOKALIKE_CHARACTERS.test(value))
246
+ return true;
247
+ return value.split(/[\s.,!?;:()"'/-]+/).some((word) => LATIN_LETTER.test(word) && CYRILLIC_OR_GREEK_LETTER.test(word));
248
+ }
249
+ function overseasNumber(text) {
250
+ for (const match of text.matchAll(INTERNATIONAL_NUMBER)) {
251
+ const digits = (match[1] ?? '').replace(/\D/g, '');
252
+ if (digits.length >= 8 && !digits.startsWith('61'))
253
+ return true;
254
+ }
255
+ return false;
256
+ }
257
+ async function sha256Hex(value) {
258
+ const digest = await globalThis.crypto.subtle.digest('SHA-256', new TextEncoder().encode(value));
259
+ return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, '0')).join('');
260
+ }
261
+ /** The fields the filter reads, by their contract key (the form's field name), never an HTML id. */
262
+ export function contactSpamFieldsOf(fields) {
263
+ const text = [];
264
+ let email;
265
+ let suburb;
266
+ for (const field of fields) {
267
+ if (field.role === 'email' || field.kind === 'email')
268
+ email ??= field.name;
269
+ else if (field.role === 'location') {
270
+ if (field.name.toLowerCase() === 'suburb')
271
+ suburb = field.name;
272
+ }
273
+ else if (field.role !== 'phone' && field.kind !== 'phone' && field.kind !== 'checkbox' && field.kind !== 'select') {
274
+ text.push(field.name);
275
+ }
276
+ }
277
+ return { text, ...(email ? { email } : {}), ...(suburb ? { suburb } : {}) };
278
+ }
279
+ /**
280
+ * Scores one enquiry. `values` are the validated field values by field name; `fields` names which to read
281
+ * (contactSpamFieldsOf). Pure apart from hashing the sender address.
282
+ */
283
+ export async function assessBrandlabContactSpam(values, fields, options = {}) {
284
+ const found = new Set();
285
+ const raw = fields.text.map((name) => values[name] ?? '').filter(Boolean).join('\n');
286
+ const text = normalizedText(raw);
287
+ const withoutEmails = text.replace(EMAIL_PATTERN, ' ');
288
+ // A pitch usually trips several distinct phrases; each one past the first in a category counts as one more
289
+ // signal, so a pure pitch with no link or odd suburb is still caught, while one phrase alone never blocks.
290
+ let extraPitchHits = 0;
291
+ for (const [signal, patterns] of Object.entries(PITCH_PATTERNS)) {
292
+ const hits = patterns.filter((pattern) => pattern.test(text)).length;
293
+ if (hits > 0)
294
+ found.add(signal);
295
+ extraPitchHits += Math.max(0, hits - 1);
296
+ }
297
+ for (const phrase of options.extraPhrases ?? []) {
298
+ if (typeof phrase === 'string' ? text.includes(normalizedText(phrase)) : phrase.test(raw))
299
+ found.add('pitch-site');
300
+ }
301
+ if (MESSAGING_LINK.test(withoutEmails) || (MESSAGING_MENTION.test(text) && overseasNumber(text))) {
302
+ found.add('messaging-link');
303
+ }
304
+ if (hasLookalikeLetters(raw))
305
+ found.add('lookalike-letters');
306
+ const email = fields.email ? values[fields.email]?.trim().toLowerCase() : undefined;
307
+ if (email) {
308
+ const hash = await sha256Hex(email);
309
+ if (BRANDLAB_CONTACT_KNOWN_SPAM_SENDER_HASHES.includes(hash) || options.knownSenderHashes?.includes(hash)) {
310
+ found.add('known-sender');
311
+ }
312
+ }
313
+ if (URL_PATTERN.test(withoutEmails))
314
+ found.add('link');
315
+ if (overseasNumber(text))
316
+ found.add('overseas-phone');
317
+ const suburb = fields.suburb ? values[fields.suburb] : undefined;
318
+ if (suburb && isClearlyForeignOrRandomSuburb(suburb))
319
+ found.add('foreign-suburb');
320
+ for (const ignored of options.ignoreSignals ?? [])
321
+ found.delete(ignored);
322
+ if (!PITCH_SIGNALS.some((signal) => found.has(signal)))
323
+ extraPitchHits = 0;
324
+ const order = [...BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS, ...BRANDLAB_CONTACT_WEAK_SPAM_SIGNALS];
325
+ const signals = order.filter((signal) => found.has(signal));
326
+ const strong = signals.filter((signal) => STRONG.has(signal)).length;
327
+ return Object.freeze({
328
+ blocked: strong >= 1 && signals.length + extraPitchHits >= 2,
329
+ signals: Object.freeze(signals),
330
+ });
331
+ }
332
+ /**
333
+ * Whether the form was sent too soon after it rendered: both stamps are the visitor's own clock (`formStartedAt` when
334
+ * the form's submission controller was created, `submittedAt` when it was sent), so clock skew cancels out. A form
335
+ * without the start stamp (an older client or a hand-built form) is never dropped by this check.
336
+ */
337
+ export function submittedTooFast(startedAt, submittedAt, minFillMs) {
338
+ if (!(minFillMs > 0) || !startedAt)
339
+ return false;
340
+ const started = Date.parse(startedAt);
341
+ const submitted = Date.parse(submittedAt);
342
+ if (!Number.isFinite(started) || !Number.isFinite(submitted))
343
+ return false;
344
+ const elapsed = submitted - started;
345
+ return elapsed >= 0 && elapsed < minFillMs;
346
+ }
347
+ //# sourceMappingURL=spam-filter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spam-filter.js","sourceRoot":"","sources":["../../src/contact/spam-filter.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAA;AAEnE,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,iBAAiB;IACjB,eAAe;IACf,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;CACN,CAAA;AAEV,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAU,CAAA;AAMvG,wHAAwH;AACxH,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,CAAA;AAEjD;;;GAGG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAsB,MAAM,CAAC,MAAM,CAAC;IACxF,kEAAkE;IAClE,kEAAkE;CACnE,CAAC,CAAA;AAmBF,MAAM,MAAM,GAAG,IAAI,GAAG,CAAS,oCAAoC,CAAC,CAAA;AACpE,MAAM,aAAa,GAAyC;IAC1D,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY;CAC3G,CAAA;AAED,0GAA0G;AAC1G,MAAM,oBAAoB,GACxB,uDAAuD,CAAA;AACzD,MAA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,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB,EAAE,WAAmB,EAAE,SAAiB;IACxF,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAA;IAChD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;IACzC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1E,MAAM,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;IACnC,OAAO,OAAO,IAAI,CAAC,IAAI,OAAO,GAAG,SAAS,CAAA;AAC5C,CAAC","sourcesContent":["/**\n * The shared contact-form spam filter (4.1.0; Romie, 5 November 2026). Human-typed sales pitches pass the honeypot,\n * same-site and format checks, so the route scores what the enquiry says.\n *\n * Signals are strong (a sales pitch, a messaging link, look-alike letters, a known spam sender) or weak (a link, an\n * overseas number in the message, a suburb that is clearly not Australian or is random characters). An enquiry is\n * blocked only when at least one strong signal and at least two signals in all match (two different pitch phrases\n * count as two): weak signals add to a strong\n * one but never block on their own or together, and a genuine enquiry that trips one signal is delivered exactly as\n * before, with nothing added to the email. A blocked enquiry gets the normal silent success: the visitor sees the\n * thank-you, nothing is sent and `contact_form` does not fire. The route logs one redacted line (site and signals).\n *\n * The suburb signal reads only a location field whose key is `suburb`: a full street address is never scored.\n */\nimport type { ContactFieldDefinition } from './shared.js'\nimport { BRANDLAB_SPAM_FILTER_PLACE_NAMES } from './spam-places.js'\n\nexport const BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS = [\n 'pitch-marketing',\n 'pitch-reviews',\n 'pitch-estimating',\n 'pitch-outreach',\n 'pitch-email-lure',\n 'pitch-lure',\n 'pitch-site',\n 'messaging-link',\n 'lookalike-letters',\n 'known-sender',\n] as const\n\nexport const BRANDLAB_CONTACT_WEAK_SPAM_SIGNALS = ['link', 'overseas-phone', 'foreign-suburb'] as const\n\nexport type BrandlabContactSpamSignal =\n | (typeof BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS)[number]\n | (typeof BRANDLAB_CONTACT_WEAK_SPAM_SIGNALS)[number]\n\n/** The fewest milliseconds between the form rendering and its submission (3 s); anything faster is dropped silently. */\nexport const BRANDLAB_CONTACT_MIN_FILL_MS = 3_000\n\n/**\n * SHA-256 of known spam sender addresses (trimmed, lower case). Hashes only: never store a raw address.\n * The first two came from AA Tree's 2 November review-selling wave (its own filter, PR #57, replaced by this one).\n */\nexport const BRANDLAB_CONTACT_KNOWN_SPAM_SENDER_HASHES: readonly string[] = Object.freeze([\n '8d1b3f54b80e318ec48be6f7a75fb1d0c04fd9969aa40e2d97057936b2cf4c7c',\n '4afca3f9ea7339d1a9d52029913be62780a99069f06893e414a9b44f254d6d91',\n])\n\nexport interface BrandlabContactSpamFilterOptions {\n /** Extra sales-pitch phrases for this site (case-insensitive text or a RegExp); a match is the strong `pitch-site`. */\n readonly extraPhrases?: readonly (string | RegExp)[]\n /** Extra known spam senders, as SHA-256 hex of the trimmed, lower-case address. */\n readonly knownSenderHashes?: readonly string[]\n /** Signals this site does not count (to relax a rule). */\n readonly ignoreSignals?: readonly BrandlabContactSpamSignal[]\n /** The minimum fill time in milliseconds; 0 turns the check off. Defaults to BRANDLAB_CONTACT_MIN_FILL_MS. */\n readonly minFillMs?: number\n}\n\nexport interface BrandlabContactSpamAssessment {\n readonly blocked: boolean\n /** Every signal found, strong ones first, in a fixed order. */\n readonly signals: readonly BrandlabContactSpamSignal[]\n}\n\nconst STRONG = new Set<string>(BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS)\nconst PITCH_SIGNALS: readonly BrandlabContactSpamSignal[] = [\n 'pitch-marketing', 'pitch-reviews', 'pitch-estimating', 'pitch-outreach', 'pitch-email-lure', 'pitch-lure',\n]\n\n/** Letters with no Australian English use: mathematical, full-width, enclosed and small-capital forms. */\nconst LOOKALIKE_CHARACTERS =\n /[\\u{1D400}-\\u{1D7FF}A-Za-zⒶ-ⓩᴀ-ᴫɐ-ʯℂℊ-ℓℕℙ-ℝℤℬℭℯ-ℱℳℴ]/u\nconst LATIN_LETTER = /[A-Za-z]/\nconst CYRILLIC_OR_GREEK_LETTER = /[Ͱ-ϿЀ-ӿ]/\n\nconst PITCH_PATTERNS: Readonly<Record<string, readonly RegExp[]>> = {\n 'pitch-marketing': [\n /\\bseo\\b/,\n /\\bsearch engine optimi[sz]/,\n /\\b(?:first|1st|top) page (?:of|on) google\\b/,\n /\\bpage (?:1|one) (?:of|on) google\\b/,\n /\\b(?:google|search|website|organic) rankings?\\b/,\n /\\brank(?:ing)? (?:higher|better|#?1|first|on (?:the )?(?:first page|google))/,\n /\\borganic traffic\\b/,\n /\\bbacklinks?\\b/,\n /\\bdomain authority\\b/,\n /\\b(?:website|site|seo|free) audit\\b/,\n /\\bdigital marketing (?:agency|services|expert|specialist|strateg)/,\n /\\blead generation\\b/,\n /\\b(?:more|qualified|exclusive) leads (?:for|to) your\\b/,\n /\\bboost your (?:online |google |local )?(?:presence|visibility|sales|rankings?|traffic)\\b/,\n /\\b(?:redesign|revamp) (?:of )?your (?:website|site)\\b/,\n /\\bai (?:chat ?bot|agent|receptionist|voice|assistant|calling|automation)/,\n /\\b(?:google (?:my )?business|business) profile (?:optimi[sz]|management|ranking)/,\n /\\bsocial media (?:marketing|management)\\b/,\n /\\bweb ?(?:design|development) (?:services|agency|company)\\b/,\n /\\b(?:not (?:well )?optimi[sz]ed|optimi[sz]ed) for google\\b/,\n /\\bissue report (?:with|&|and) screenshot/,\n /\\b(?:seo|ranking) report\\b|\\baudit report (?:&|and) proposal\\b/,\n /\\bup in the (?:google )?rankings\\b/,\n /\\bimprove (?:these|your) search results\\b/,\n /\\bredesign mock-?up\\b/,\n /\\bmock-?up for you\\b/,\n /\\bhow your (?:site|website) could look\\b/,\n ],\n 'pitch-reviews': [\n /\\b(?:buy|purchase|get) (?:real |genuine |positive )?(?:google |5[- ]star |five[- ]star )reviews\\b/,\n /\\b(?:5|five)[- ]star (?:google )?reviews (?:for|to) your\\b/,\n /\\b(?:remove|delete|deleting|removing|removal of) (?:any |all |the |your )?(?:previous |old |bad |negative |fake )+reviews\\b/,\n /\\bnegative reviews (?:removed|deleted|removal)\\b/,\n /\\breviews? expert team\\b/,\n /\\breviews from local guides\\b/,\n /\\blocal guides?\\b.{0,60}\\breviews\\b/,\n /\\bincrease your (?:google )?(?:reviews|rating)\\b/,\n ],\n 'pitch-estimating': [\n /\\b(?:quantity |material |construction )?take-?offs?\\b/,\n /\\bestimating (?:services|firm|company|team|support)\\b/,\n /\\bcost estimat(?:ing|ion|or) (?:services|firm|company)\\b/,\n /\\boutsourced? estimat/,\n /\\bwe (?:provide|assist|offer|deliver|specialise|specialize|convert|prepare)\\b.{0,120}\\b(?:take-?offs?|estimat\\w*|bills? of quantities|material (?:lists?|counts?|breakdowns?)|labou?r (?:cost )?breakdowns?)/,\n /\\b(?:remote|rapid) (?:estimating|estimates|take-?offs?)\\b/,\n /\\bitemi[sz]ed (?:excel )?material lists?\\b|\\bline-item material counts?\\b/,\n /\\bplans into\\b.{0,40}\\bexcel\\b/,\n /\\b(?:assist|support|help) (?:construction businesses|trade contractors)\\b/,\n /\\btender (?:drawings|pricing|quotes)\\b.{0,60}\\b(?:like us to|on your desk|out the door|pricing up)\\b|\\bsupport with project measurements\\b/,\n /\\boverflow during busy\\b/,\n ],\n 'pitch-outreach': [\n /\\bare you the (?:business )?owner\\b/,\n /\\bwho (?:handles|manages|looks after|is in charge of) your (?:marketing|website|seo|online|advertising)\\b/,\n /\\bi(?:'m| am) reaching out (?:to|from|because|on behalf|regarding)\\b/,\n /\\bwe help (?:local |small |australian )?(?:businesses|companies|contractors|tradies|trades(?:people|men)?|plumbers|builders|electricians|roofers|landscapers|arborists)\\b/,\n /\\bwhite[- ]label\\b/,\n /\\boutsourc(?:e|ing) (?:your|services|solutions)\\b/,\n /\\bvirtual assistants?\\b/,\n /\\b(?:our|my) (?:agency|company|team|firm) (?:can help|specialises|specializes|helps|offers|provides)\\b/,\n /\\bfree (?:trial|demo|strategy (?:call|session)|consultation call)\\b/,\n /\\b(?:book|schedule) a (?:quick |short |free )?(?:call|demo|meeting) (?:with me|here|at)\\b/,\n /\\b(?:reply|respond) (?:with )?[\"']?stop[\"']? to (?:opt out|unsubscribe)\\b/,\n /\\bunsubscribe\\b/,\n /\\bnot relevant\\? reply\\b/,\n /\\b(?:i|we) won'?t contact you again\\b/,\n /\\b\\$?\\d+ off your first order\\b/,\n /\\bdomain(?: name)?\\b.{0,60}\\b(?:currently )?available for (?:sale|purchase)\\b/,\n /\\bbefore listing it publicly\\b/,\n ],\n 'pitch-email-lure': [\n /\\breach (?:me|us) (?:via|by|through|at|on) (?:my |our )?e-?mail\\b/,\n /\\bcontact (?:me|us) (?:only )?(?:via|by|through) (?:my |our )?e-?mail\\b/,\n /\\breply (?:to|via|by) (?:this |my |our )?e-?mail (?:for|if|to get|to receive)\\b/,\n /\\be-?mail (?:me|us) (?:for|to get|to receive) (?:more |the |a |our )?(?:details|info|information|pricing|proposal|price list|samples?|portfolio|case stud)/,\n /\\bkindly (?:reply|respond|revert|get back)\\b/,\n /\\bdrop (?:me|us) (?:a line|an e-?mail)\\b/,\n /\\b(?:i'?m|i am) interested in your services\\b.{0,40}\\b(?:reach|contact|e-?mail) me\\b/,\n /\\binformation about your services, design options, pricing\\b/,\n ],\n 'pitch-lure': [\n /\\bon behalf of\\b.{0,40}\\blawyer\\b/,\n /\\bshare with your team for review and assessment\\b/,\n /\\bwhether you are accepting new work\\b/,\n /\\bprovide the details required to prepare a full proposal\\b/,\n ],\n}\n\nconst MESSAGING_LINK = /\\b(?:wa\\.me\\/|api\\.whatsapp\\.com|chat\\.whatsapp\\.com|t\\.me\\/|telegram\\.me\\/)/\nconst MESSAGING_MENTION = /\\b(?:whats ?app|telegram)\\b/\nconst URL_PATTERN =\n /\\bhttps?:\\/\\/|\\bwww\\.|\\b[a-z0-9-]+\\.(?:com|net|org|io|co|agency|biz|info|online|site|xyz|ai|app|me|us|uk|in|pk|bd|ph|ng|store|tech|digital|marketing|solutions|services)\\b/\nconst EMAIL_PATTERN = /[^\\s@]+@[^\\s@]+\\.[^\\s@]+/g\nconst INTERNATIONAL_NUMBER = /(?:\\+|\\b00)\\s?(\\d[\\d\\s().-]{6,18}\\d)/g\n\nconst AUSTRALIAN_STATES = new Set(['nsw', 'vic', 'qld', 'sa', 'wa', 'tas', 'nt', 'act', 'au', 'aus', 'australia'])\nconst ABBREVIATIONS: Readonly<Record<string, string>> = {\n nth: 'north', sth: 'south', st: 'saint', mt: 'mount', pt: 'point', pk: 'park', hts: 'heights', stn: 'station',\n}\n/** Whole values that are clearly not Australian. Only unambiguous names: no place that also exists here (Manila NSW). */\nconst FOREIGN_PLACES = new Set([\n 'india', 'pakistan', 'bangladesh', 'nigeria', 'philippines', 'usa', 'us', 'united states', 'america', 'uk',\n 'united kingdom', 'england', 'scotland', 'ireland', 'canada', 'singapore', 'malaysia', 'indonesia', 'vietnam',\n 'thailand', 'nepal', 'sri lanka', 'kenya', 'ghana', 'egypt', 'uae', 'dubai', 'abu dhabi', 'qatar', 'saudi arabia',\n 'dhaka', 'chittagong', 'karachi', 'lahore', 'islamabad', 'delhi', 'new delhi', 'mumbai', 'bangalore', 'bengaluru',\n 'kolkata', 'chennai', 'hyderabad', 'pune', 'jaipur', 'ahmedabad', 'lagos', 'abuja', 'nairobi', 'cairo', 'cebu',\n 'quezon city', 'makati', 'jakarta', 'kuala lumpur', 'hanoi', 'ho chi minh', 'bangkok', 'kathmandu', 'colombo',\n 'london', 'manchester', 'birmingham', 'new york', 'los angeles', 'chicago', 'houston', 'miami', 'seattle',\n 'san francisco', 'las vegas', 'california', 'florida', 'toronto', 'vancouver', 'new jersey',\n])\n/** Values a real customer types when the suburb does not apply. */\nconst HARMLESS_VALUES = new Set(['na', 'n a', 'nil', 'none', 'tba', 'tbc', 'no', 'ok', 'x'])\nconst KEYBOARD_RUNS = ['qwer', 'wert', 'erty', 'asdf', 'sdfg', 'dfgh', 'fghj', 'ghjk', 'hjkl', 'zxcv', 'xcvb', 'cvbn', 'vbnm']\n\nlet placeIndex: Map<number, string[]> | undefined\nfunction placesByLength(): Map<number, string[]> {\n if (placeIndex) return placeIndex\n placeIndex = new Map()\n for (const name of BRANDLAB_SPAM_FILTER_PLACE_NAMES) {\n const list = placeIndex.get(name.length) ?? []\n list.push(name)\n placeIndex.set(name.length, list)\n }\n return placeIndex\n}\n\nfunction editDistanceWithin(a: string, b: string, limit: number): boolean {\n if (Math.abs(a.length - b.length) > limit) return false\n let previous = Array.from({ length: b.length + 1 }, (_, index) => index)\n for (let i = 1; i <= a.length; i += 1) {\n const current = [i]\n let rowMin = i\n for (let j = 1; j <= b.length; j += 1) {\n const cost = a[i - 1] === b[j - 1] ? 0 : 1\n const value = Math.min(previous[j]! + 1, current[j - 1]! + 1, previous[j - 1]! + cost)\n current.push(value)\n rowMin = Math.min(rowMin, value)\n }\n if (rowMin > limit) return false\n previous = current\n }\n return previous[b.length]! <= limit\n}\n\n/** True when the text is, or is a typo of, a Sydney or Central Coast place. */\nfunction nearKnownPlace(text: string): boolean {\n const limit = text.length >= 8 ? 2 : text.length >= 4 ? 1 : 0\n const index = placesByLength()\n for (let length = text.length - limit; length <= text.length + limit; length += 1) {\n for (const name of index.get(length) ?? []) {\n if (name === text || (limit > 0 && editDistanceWithin(text, name, limit))) return true\n }\n }\n return false\n}\n\nfunction looksRandom(word: string): boolean {\n if (word.length < 4) return false\n if (!/[aeiouy]/.test(word)) return true\n if (/[^aeiouy]{5,}/.test(word)) return true\n if (/(.)\\1{3,}/.test(word)) return true\n if (KEYBOARD_RUNS.some((run) => word.includes(run))) return true\n const vowels = word.replace(/[^aeiouy]/g, '').length\n return word.length >= 6 && vowels / word.length < 0.2\n}\n\n/**\n * Whether a typed suburb is clearly not an Australian place or is random characters. Typos of Sydney and Central\n * Coast places, abbreviations (\"Nth Ryde\", \"St Ives\", \"Mt Druitt\"), postcodes, state names and any ordinary-looking\n * word (an interstate town) all pass: only a foreign place, a two-letter code that is not a state, or keyboard mash\n * counts.\n */\nexport function isClearlyForeignOrRandomSuburb(value: string): boolean {\n const normalized = value\n .normalize('NFKD')\n .replace(/[̀-ͯ]/g, '')\n .toLowerCase()\n .replace(/[^a-z0-9\\s]/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim()\n if (!normalized || HARMLESS_VALUES.has(normalized)) return false\n if (FOREIGN_PLACES.has(normalized)) return true\n const words = normalized\n .split(' ')\n .filter((word) => !AUSTRALIAN_STATES.has(word) && !/^\\d{3,4}$/.test(word))\n .map((word) => ABBREVIATIONS[word] ?? word)\n if (words.length === 0) return false\n if (words.some((word) => /\\d/.test(word))) return false\n const text = words.join(' ')\n if (FOREIGN_PLACES.has(text)) return true\n if (normalized.length === 2) return !AUSTRALIAN_STATES.has(normalized)\n if (nearKnownPlace(text) || words.some((word) => word.length >= 4 && nearKnownPlace(word))) return false\n return words.every((word) => looksRandom(word) || word.length < 4) && words.some(looksRandom)\n}\n\nfunction normalizedText(value: string): string {\n return value\n .normalize('NFKC')\n .toLowerCase()\n .replace(/[‘’ʼ]/g, \"'\")\n .replace(/\\s+/g, ' ')\n}\n\nfunction hasLookalikeLetters(value: string): boolean {\n if (LOOKALIKE_CHARACTERS.test(value)) return true\n return value.split(/[\\s.,!?;:()\"'/-]+/).some(\n (word) => LATIN_LETTER.test(word) && CYRILLIC_OR_GREEK_LETTER.test(word),\n )\n}\n\nfunction overseasNumber(text: string): boolean {\n for (const match of text.matchAll(INTERNATIONAL_NUMBER)) {\n const digits = (match[1] ?? '').replace(/\\D/g, '')\n if (digits.length >= 8 && !digits.startsWith('61')) return true\n }\n return false\n}\n\nasync function sha256Hex(value: string): Promise<string> {\n const digest = await globalThis.crypto.subtle.digest('SHA-256', new TextEncoder().encode(value))\n return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, '0')).join('')\n}\n\n/** The fields the filter reads, by their contract key (the form's field name), never an HTML id. */\nexport function contactSpamFieldsOf(fields: readonly Pick<ContactFieldDefinition, 'name' | 'role' | 'kind'>[]): {\n text: readonly string[]\n email?: string\n suburb?: string\n} {\n const text: string[] = []\n let email: string | undefined\n let suburb: string | undefined\n for (const field of fields) {\n if (field.role === 'email' || field.kind === 'email') email ??= field.name\n else if (field.role === 'location') {\n if (field.name.toLowerCase() === 'suburb') suburb = field.name\n } else if (field.role !== 'phone' && field.kind !== 'phone' && field.kind !== 'checkbox' && field.kind !== 'select') {\n text.push(field.name)\n }\n }\n return { text, ...(email ? { email } : {}), ...(suburb ? { suburb } : {}) }\n}\n\n/**\n * Scores one enquiry. `values` are the validated field values by field name; `fields` names which to read\n * (contactSpamFieldsOf). Pure apart from hashing the sender address.\n */\nexport async function assessBrandlabContactSpam(\n values: Readonly<Record<string, string | undefined>>,\n fields: ReturnType<typeof contactSpamFieldsOf>,\n options: BrandlabContactSpamFilterOptions = {},\n): Promise<BrandlabContactSpamAssessment> {\n const found = new Set<BrandlabContactSpamSignal>()\n const raw = fields.text.map((name) => values[name] ?? '').filter(Boolean).join('\\n')\n const text = normalizedText(raw)\n const withoutEmails = text.replace(EMAIL_PATTERN, ' ')\n\n // A pitch usually trips several distinct phrases; each one past the first in a category counts as one more\n // signal, so a pure pitch with no link or odd suburb is still caught, while one phrase alone never blocks.\n let extraPitchHits = 0\n for (const [signal, patterns] of Object.entries(PITCH_PATTERNS)) {\n const hits = patterns.filter((pattern) => pattern.test(text)).length\n if (hits > 0) found.add(signal as BrandlabContactSpamSignal)\n extraPitchHits += Math.max(0, hits - 1)\n }\n for (const phrase of options.extraPhrases ?? []) {\n if (typeof phrase === 'string' ? text.includes(normalizedText(phrase)) : phrase.test(raw)) found.add('pitch-site')\n }\n if (MESSAGING_LINK.test(withoutEmails) || (MESSAGING_MENTION.test(text) && overseasNumber(text))) {\n found.add('messaging-link')\n }\n if (hasLookalikeLetters(raw)) found.add('lookalike-letters')\n const email = fields.email ? values[fields.email]?.trim().toLowerCase() : undefined\n if (email) {\n const hash = await sha256Hex(email)\n if (BRANDLAB_CONTACT_KNOWN_SPAM_SENDER_HASHES.includes(hash) || options.knownSenderHashes?.includes(hash)) {\n found.add('known-sender')\n }\n }\n if (URL_PATTERN.test(withoutEmails)) found.add('link')\n if (overseasNumber(text)) found.add('overseas-phone')\n const suburb = fields.suburb ? values[fields.suburb] : undefined\n if (suburb && isClearlyForeignOrRandomSuburb(suburb)) found.add('foreign-suburb')\n\n for (const ignored of options.ignoreSignals ?? []) found.delete(ignored)\n if (!PITCH_SIGNALS.some((signal) => found.has(signal))) extraPitchHits = 0\n const order = [...BRANDLAB_CONTACT_STRONG_SPAM_SIGNALS, ...BRANDLAB_CONTACT_WEAK_SPAM_SIGNALS] as const\n const signals = order.filter((signal) => found.has(signal))\n const strong = signals.filter((signal) => STRONG.has(signal)).length\n return Object.freeze({\n blocked: strong >= 1 && signals.length + extraPitchHits >= 2,\n signals: Object.freeze(signals),\n })\n}\n\n/**\n * Whether the form was sent too soon after it rendered: both stamps are the visitor's own clock (`formStartedAt` when\n * the form's submission controller was created, `submittedAt` when it was sent), so clock skew cancels out. A form\n * without the start stamp (an older client or a hand-built form) is never dropped by this check.\n */\nexport function submittedTooFast(startedAt: string, submittedAt: string, minFillMs: number): boolean {\n if (!(minFillMs > 0) || !startedAt) return false\n const started = Date.parse(startedAt)\n const submitted = Date.parse(submittedAt)\n if (!Number.isFinite(started) || !Number.isFinite(submitted)) return false\n const elapsed = submitted - started\n return elapsed >= 0 && elapsed < minFillMs\n}\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sydney and Central Coast place names (suburbs, regions, councils and their alternate names) from site-core's
3
+ * geography registry, lower case with letters and spaces only. The contact spam filter uses them so a typed suburb
4
+ * that is a near miss of a real place ("Wahrooonga", "Nth Ryde") never counts as random characters. Generated from
5
+ * `nswSuburbCentres` and the registries; regenerate when the registry grows.
6
+ */
7
+ export declare const BRANDLAB_SPAM_FILTER_PLACE_NAMES: readonly string[];
8
+ //# sourceMappingURL=spam-places.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spam-places.d.ts","sourceRoot":"","sources":["../../src/contact/spam-places.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,EAAE,SAAS,MAAM,EAE7D,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sydney and Central Coast place names (suburbs, regions, councils and their alternate names) from site-core's
3
+ * geography registry, lower case with letters and spaces only. The contact spam filter uses them so a typed suburb
4
+ * that is a near miss of a real place ("Wahrooonga", "Nth Ryde") never counts as random characters. Generated from
5
+ * `nswSuburbCentres` and the registries; regenerate when the registry grows.
6
+ */
7
+ export const BRANDLAB_SPAM_FILTER_PLACE_NAMES = Object.freeze('abbotsbury|abbotsford|acacia gardens|agnes banks|airds|alexandria|alfords point|alison|allambie heights|allawah|ambarvale|angus|annandale|annangrove|appin|arcadia|arncliffe|arndell park|artarmon|ashbury|ashcroft|ashfield|asquith|auburn|audley|austral|avalon beach|avoca beach|badgerys creek|balgowlah|balgowlah heights|balmain|balmain east|bangor|banksia|banksmeadow|bankstown|bankstown aerodrome|bar point|barangaroo|barden ridge|bardia|bardwell park|bardwell valley|bargo|barker|bass hill|bateau bay|baulkham hills|bayside council|bayview|beacon hill|beaconsfield|beaumont hills|beecroft|belfield|belimbla park|bella vista|bellevue hill|belmore|beloon|belrose|bensville|berala|berambing|berkeley vale|berkshire park|berowra|berowra heights|berowra waters|berrilee|beverley park|beverly hills|bexley|bexley north|bickley vale|bidwill|bilgola beach|bilgola plateau|bilpin|bimlow|bindook|birchgrove|birrabang|birrong|blackett|blackheath|blacktown|blacktown city council|blackwall|blair athol|blairmount|blakehurst|blaxland|blaxlands ridge|bligh park|blue bay|blue haven|blue labyrinth|blue mountains|blue mountains city council|blue mountains nsw|bondi|bondi beach|bondi junction|bonnet bay|bonnie vale|bonnyrigg|bonnyrigg heights|booker bay|bossley park|botany|bouddi|bow bowing|bowen mountain|box head|box hill|bradbury|bradfield|breakfast point|brereton|brighton le sands|brightonlesands|bringelly|bronte|brooklyn|brookvale|brownlow hill|budgewoi|budgewoi peninsula|buff point|bullaburra|bundeena|bungarribee|burragorang valley|burramoko|burraneer|burwood|burwood council|burwood heights|busby|bushells ridge|buxton|cabarita|cabramatta|cabramatta west|caddens|calga|cambridge gardens|cambridge park|camden|camden council|camden park|camden south|camellia|cammeray|campbelltown|campbelltown city council|camperdown|campsie|canada bay|canley heights|canley vale|canoelands|canterbury|canterbury bankstown council|canton beach|caringbah|caringbah south|carlingford|carlton|carmarthen|carnes hill|carramar|carss park|cartwright|castle cove|castle hill|castlecrag|castlereagh|casula|catherine field|cattai|cawdor|cecil hills|cecil park|cedar brush creek|centennial park|central coast|central coast council|central colo|central macdonald|central mangrove|chain valley bay|charmhaven|chatswood|chatswood west|cheero point|cheltenham|cherrybrook|chester hill|chifley|chippendale|chipping norton|chiswick|chittaway bay|chittaway point|chullora|church point|city of canada bay council|city of parramatta council|city of ryde|city of sydney|city of sydney council|claremont meadows|clarendon|clareville|claymore|clemton park|clontarf|clovelly|clyde|coasters retreat|cobbitty|cogra bay|colebee|collaroy|collaroy plateau|colo|colo heights|colongra|colyton|como|concord|concord west|condell park|connells point|constitution hill|coogee|copacabana|cornwallis|cottage point|couridjah|cowan|cranebrook|crangan bay|cremorne|cremorne point|cromer|cronulla|crows nest|croydon|croydon park|cumberland council|cumberland reach|curl curl|currans hill|currawong beach|daceyville|daleys point|dangar island|darling point|darlinghurst|darlington|davidson|davistown|dawes point|dean park|dee why|denham court|denistone|denistone east|denistone west|dharruk|dolans bay|dolls point|doonside|dooralong|double bay|douglas park|dover heights|doyalson|doyalson north|drummoyne|duffys forest|dulwich hill|dundas|dundas valley|dural|durren durren|eagle vale|earlwood|east gosford|east hills|east killara|east kurrajong|east lindfield|east ryde|eastern creek|eastern suburbs|eastern suburbs sydney|eastgardens|eastlakes|eastwood|ebenezer|edensor park|edgecliff|edmondson park|elanora heights|elderslie|elizabeth bay|elizabeth hills|ellis lane|elvina bay|emerton|empire bay|emu heights|emu plains|enfield|engadine|englorie park|enmore|epping|erina|erina heights|ermington|erskine park|erskineville|eschol park|ettalong beach|eveleigh|fairfield|fairfield city council|fairfield east|fairfield heights|fairfield west|fairlight|faulconbridge|fernances|fiddletown|five dock|forest glen|forest lodge|forestville|forresters beach|fountaindale|frazer park|freemans|freemans reach|frenchs forest|freshwater|gables|galston|garie|georges hall|georges river council|gilead|girraween|gladesville|glebe|gledswood hills|glen alpine|glenbrook|glendenning|glenfield|glenhaven|glenmore|glenmore park|glenning valley|glenorie|glenwood|glenworth valley|glossodia|goarra|gordon|gorokan|gosford|govetts|grantham farm|granville|grasmere|grays point|great mackerel beach|green point|green valley|greenacre|greendale|greenfield park|greengrove|greenhills beach|greenwich|gregory hills|greystanes|grose vale|grose wold|guildford|guildford west|gunderman|gwandalan|gymea|gymea bay|haberfield|halekulani|halloran|hamlyn terrace|hammondville|hardys bay|harrington park|harris park|hassall grove|hawkesbury city council|hawkesbury heights|haymarket|hazelbrook|heathcote|hebersham|heckenberg|henley|higher macdonald|hills district|hillsdale|hinchinbrook|hobartville|holgate|holroyd|holsworthy|homebush|homebush west|horningsea park|hornsby|hornsby heights|hornsby shire council|horsfield bay|horsley park|hoxton park|hunters hill|hunters hill council|huntingwood|huntleys cove|huntleys point|hurlstone park|hurstville|hurstville grove|illawong|ingar|ingleburn|ingleside|inner city sydney|inner west|inner west council|inner west sydney|jamison valley|jamisontown|jannali|jibbon|jilliby|jooriland|jordan springs|kangaroo point|kangy angy|kanwal|kareela|kariong|kariwoga|katoomba|kearns|kedumba|kellyville|kellyville ridge|kemps creek|kensington|kenthurst|kentlyn|kiar|killara|killarney heights|killarney vale|killcare|killcare heights|kincumber|kincumber south|kingfisher shores|kings langley|kings park|kingsford|kingsgrove|kingswood|kirkham|kirrawee|kirribilli|kogarah|kogarah bay|koolewong|kowmung|ku ring gai chase|kulnura|kuringgai chase|kuringgai council|kurmond|kurnell|kurraba point|kurrajong|kurrajong heights|kurrajong hills|kyeemagh|kyle bay|la perouse|lake haven|lake macquarie city council|lake munmorah|lakemba|lakesland|lalor park|lane cove|lane cove council|lane cove north|lane cove west|lansdowne|lansvale|lapstone|laughtondale|lavender bay|lawson|leets vale|leichhardt|lemon tree|len waters estate|leonay|leppington|lethbridge park|leumeah|leura|lewisham|liberty grove|lidcombe|lilli pilli|lilyfield|linden|lindfield|linley point|lisarow|little bay|little jilliby|little wobby|liverpool|liverpool city council|llandilo|loftus|londonderry|long jetty|long point|longueville|lovett bay|lower macdonald|lower mangrove|lower north shore|lower portland|lucas heights|luddenham|lugarno|lurnea|macarthur|macarthur region|macmasters beach|macquarie fields|macquarie links|macquarie park|magenta|maianbar|malabar|maldon|mangrove creek|mangrove mountain|manly|manly vale|mannering park|maraylya|marayong|mardi|marley|marlow|maroota|maroubra|marrickville|marsden park|marsfield|mascot|massif ridge|matcham|matraville|mays hill|mccarrs creek|mcgraths hill|mcmahons point|meadowbank|medlow bath|megalong valley|mellong|melonba|melrose park|menai|menangle|menangle park|merrylands|merrylands west|middle cove|middle dural|middleton grange|miller|millers point|milperra|milsons passage|milsons point|minchinbury|minto|minto heights|miranda|mogo creek|mona vale|monterey|moonee|mooney mooney|mooney mooney creek|moore park|moorebank|morning bay|mortdale|mortlake|mosman|mosman municipal council|mount annan|mount colah|mount druitt|mount elliot|mount hunter|mount irvine|mount kuring gai|mount kuringgai|mount lewis|mount portal|mount pritchard|mount riverview|mount tomah|mount vernon|mount victoria|mount white|mount wilson|mountain lagoon|mowbray park|mulgoa|mulgrave|narara|narellan|narellan vale|naremburn|narrabeen|narraweena|narrow neck|narwee|nattai|nelson|neutral bay|newington|newport|newtown|niagara park|nirimba fields|norah head|noraville|normanhurst|north avoca|north balgowlah|north bondi|north curl curl|north epping|north gosford|north kellyville|north manly|north narrabeen|north parramatta|north richmond|north rocks|north ryde|north shore|north shore sydney|north st marys|north strathfield|north sydney|north sydney council|north turramurra|north wahroonga|north willoughby|northbridge|northern beaches|northern beaches council|northern beaches sydney|northmead|northwood|norwest|oakdale|oakhurst|oakville|oatlands|oatley|old guildford|old toongabbie|oran park|orangeville|orchard hills|ourimbah|oxford falls|oxley park|oyster bay|paddington|padstow|padstow heights|pagewood|palm beach|palm grove|palmdale|palona|panania|parklea|parramatta|patonga|peakhurst|peakhurst heights|pearl beach|peats ridge|pemulwuy|pendle hill|pennant hills|penrith|penrith city council|penshurst|perrys crossing|petersham|pheasants nest|phegans bay|phillip bay|picketts valley|picnic point|picton|pitt town|pitt town bottoms|pittwater|pleasure point|plumpton|point clare|point frederick|point piper|point wolstoncroft|port botany|port hacking|potts hill|potts point|prairiewood|prestons|pretty beach|prospect|punchbowl|putney|pymble|pyrmont|quakers hill|queens park|queenscliff|raby|ramsgate|ramsgate beach|randwick|randwick city council|ravensdale|razorback|redfern|regents park|regentville|revesby|revesby heights|rhodes|richards|richmond|richmond lowlands|riverstone|riverview|riverwood|rockdale|rocklily ridge|rocky point|rodd point|rookwood|rooty hill|ropes crossing|rose bay|rosebery|rosehill|roselands|rosemeadow|roseville|roseville chase|rossmore|rouse hill|rozelle|ruse|rushcutters bay|russell lea|rydalmere|ryde|ryde and macquarie park|ryde area|sackville|sackville north|sadleir|san remo|sandringham|sandy point|sans souci|saratoga|scheyville|schofields|scotland island|seaforth|sefton|seven hills|shalvey|shanes park|shelly beach|silverdale|silverwater|singletons mill|smeaton grange|smithfield|somersby|south coogee|south granville|south hurstville|south maroota|south penrith|south turramurra|south wentworthville|south west sydney|south western sydney|south windsor|spencer|spring farm|springfield|springwood|st albans|st andrews|st clair|st george|st helens park|st huberts island|st ives|st ives chase|st johns park|st leonards|st marys|st peters|stanhope gardens|stanmore|strathfield|strathfield council|strathfield south|summer hill|summerland point|sun valley|surry hills|sutherland|sutherland shire|sutherland shire council|sydenham|sydney|sydney cbd|sydney city|sydney olympic park|sydney south west|sylvania|sylvania waters|tacoma|tacoma south|tahmoor|tallawong|tamarama|taren point|tascott|telopea|tempe|ten mile hollow|tennyson|tennyson point|terrey hills|terrigal|tesselate hill|the devils wilderness|the entrance|the entrance north|the hills district|the hills shire council|the oaks|the ponds|the rocks|the slopes|theresa park|thirlmere|thornleigh|toongabbie|toowoon bay|toukley|tregear|tuggerah|tuggerawong|tumbi umbi|turramurra|turrella|uloola|ultimo|umina beach|upper colo|upper macdonald|upper mangrove|upper north shore|valley heights|varroville|vaucluse|villawood|vineyard|voyager point|wadalba|wagstaffe|wahroonga|waitara|wakeley|wallacia|wallarah|wamberal|wareemba|warnervale|warragamba|warrawee|warriewood|warrimoo|warumbul|warwick farm|watanobbi|waterfall|waterloo|watsons bay|wattamolla|wattle grove|waverley|waverley council|waverton|webbs creek|wedderburn|wendoree park|wentworth falls|wentworth point|wentworthville|werombi|werrington|werrington county|werrington downs|west gosford|west hoxton|west pennant hills|west pymble|west ryde|western sydney|westleigh|westmead|wetherill park|whalan|whale beach|wheeler heights|wheeny creek|wilberforce|wiley park|willmot|willoughby|willoughby city council|willoughby east|wilton|windsor|windsor downs|winmalee|winston hills|wisemans ferry|wolli creek|wollondilly shire council|wollstonecraft|womerah|wondabyne|woodbine|woodcroft|woodford|woodpark|woollahra|woollahra municipal council|woolloomooloo|woolooware|woolwich|woongarrah|woronora|woronora heights|woy woy|woy woy bay|wrights creek|wybung|wyoming|wyong|wyong creek|wyongah|yagoona|yanderra|yarramalong|yarramundi|yarrawarrah|yattalunga|yellow rock|yenabilli|yennora|yerranderie|yowie bay|zetland'.split('|'));
8
+ //# sourceMappingURL=spam-places.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spam-places.js","sourceRoot":"","sources":["../../src/contact/spam-places.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAsB,MAAM,CAAC,MAAM,CAC9E,+4XAA+4X,CAAC,KAAK,CAAC,GAAG,CAAC,CAC35X,CAAA","sourcesContent":["/**\n * Sydney and Central Coast place names (suburbs, regions, councils and their alternate names) from site-core's\n * geography registry, lower case with letters and spaces only. The contact spam filter uses them so a typed suburb\n * that is a near miss of a real place (\"Wahrooonga\", \"Nth Ryde\") never counts as random characters. Generated from\n * `nswSuburbCentres` and the registries; regenerate when the registry grows.\n */\nexport const BRANDLAB_SPAM_FILTER_PLACE_NAMES: readonly string[] = Object.freeze(\n 'abbotsbury|abbotsford|acacia gardens|agnes banks|airds|alexandria|alfords point|alison|allambie heights|allawah|ambarvale|angus|annandale|annangrove|appin|arcadia|arncliffe|arndell park|artarmon|ashbury|ashcroft|ashfield|asquith|auburn|audley|austral|avalon beach|avoca beach|badgerys creek|balgowlah|balgowlah heights|balmain|balmain east|bangor|banksia|banksmeadow|bankstown|bankstown aerodrome|bar point|barangaroo|barden ridge|bardia|bardwell park|bardwell valley|bargo|barker|bass hill|bateau bay|baulkham hills|bayside council|bayview|beacon hill|beaconsfield|beaumont hills|beecroft|belfield|belimbla park|bella vista|bellevue hill|belmore|beloon|belrose|bensville|berala|berambing|berkeley vale|berkshire park|berowra|berowra heights|berowra waters|berrilee|beverley park|beverly hills|bexley|bexley north|bickley vale|bidwill|bilgola beach|bilgola plateau|bilpin|bimlow|bindook|birchgrove|birrabang|birrong|blackett|blackheath|blacktown|blacktown city council|blackwall|blair athol|blairmount|blakehurst|blaxland|blaxlands ridge|bligh park|blue bay|blue haven|blue labyrinth|blue mountains|blue mountains city council|blue mountains nsw|bondi|bondi beach|bondi junction|bonnet bay|bonnie vale|bonnyrigg|bonnyrigg heights|booker bay|bossley park|botany|bouddi|bow bowing|bowen mountain|box head|box hill|bradbury|bradfield|breakfast point|brereton|brighton le sands|brightonlesands|bringelly|bronte|brooklyn|brookvale|brownlow hill|budgewoi|budgewoi peninsula|buff point|bullaburra|bundeena|bungarribee|burragorang valley|burramoko|burraneer|burwood|burwood council|burwood heights|busby|bushells ridge|buxton|cabarita|cabramatta|cabramatta west|caddens|calga|cambridge gardens|cambridge park|camden|camden council|camden park|camden south|camellia|cammeray|campbelltown|campbelltown city council|camperdown|campsie|canada bay|canley heights|canley vale|canoelands|canterbury|canterbury bankstown council|canton beach|caringbah|caringbah south|carlingford|carlton|carmarthen|carnes hill|carramar|carss park|cartwright|castle cove|castle hill|castlecrag|castlereagh|casula|catherine field|cattai|cawdor|cecil hills|cecil park|cedar brush creek|centennial park|central coast|central coast council|central colo|central macdonald|central mangrove|chain valley bay|charmhaven|chatswood|chatswood west|cheero point|cheltenham|cherrybrook|chester hill|chifley|chippendale|chipping norton|chiswick|chittaway bay|chittaway point|chullora|church point|city of canada bay council|city of parramatta council|city of ryde|city of sydney|city of sydney council|claremont meadows|clarendon|clareville|claymore|clemton park|clontarf|clovelly|clyde|coasters retreat|cobbitty|cogra bay|colebee|collaroy|collaroy plateau|colo|colo heights|colongra|colyton|como|concord|concord west|condell park|connells point|constitution hill|coogee|copacabana|cornwallis|cottage point|couridjah|cowan|cranebrook|crangan bay|cremorne|cremorne point|cromer|cronulla|crows nest|croydon|croydon park|cumberland council|cumberland reach|curl curl|currans hill|currawong beach|daceyville|daleys point|dangar island|darling point|darlinghurst|darlington|davidson|davistown|dawes point|dean park|dee why|denham court|denistone|denistone east|denistone west|dharruk|dolans bay|dolls point|doonside|dooralong|double bay|douglas park|dover heights|doyalson|doyalson north|drummoyne|duffys forest|dulwich hill|dundas|dundas valley|dural|durren durren|eagle vale|earlwood|east gosford|east hills|east killara|east kurrajong|east lindfield|east ryde|eastern creek|eastern suburbs|eastern suburbs sydney|eastgardens|eastlakes|eastwood|ebenezer|edensor park|edgecliff|edmondson park|elanora heights|elderslie|elizabeth bay|elizabeth hills|ellis lane|elvina bay|emerton|empire bay|emu heights|emu plains|enfield|engadine|englorie park|enmore|epping|erina|erina heights|ermington|erskine park|erskineville|eschol park|ettalong beach|eveleigh|fairfield|fairfield city council|fairfield east|fairfield heights|fairfield west|fairlight|faulconbridge|fernances|fiddletown|five dock|forest glen|forest lodge|forestville|forresters beach|fountaindale|frazer park|freemans|freemans reach|frenchs forest|freshwater|gables|galston|garie|georges hall|georges river council|gilead|girraween|gladesville|glebe|gledswood hills|glen alpine|glenbrook|glendenning|glenfield|glenhaven|glenmore|glenmore park|glenning valley|glenorie|glenwood|glenworth valley|glossodia|goarra|gordon|gorokan|gosford|govetts|grantham farm|granville|grasmere|grays point|great mackerel beach|green point|green valley|greenacre|greendale|greenfield park|greengrove|greenhills beach|greenwich|gregory hills|greystanes|grose vale|grose wold|guildford|guildford west|gunderman|gwandalan|gymea|gymea bay|haberfield|halekulani|halloran|hamlyn terrace|hammondville|hardys bay|harrington park|harris park|hassall grove|hawkesbury city council|hawkesbury heights|haymarket|hazelbrook|heathcote|hebersham|heckenberg|henley|higher macdonald|hills district|hillsdale|hinchinbrook|hobartville|holgate|holroyd|holsworthy|homebush|homebush west|horningsea park|hornsby|hornsby heights|hornsby shire council|horsfield bay|horsley park|hoxton park|hunters hill|hunters hill council|huntingwood|huntleys cove|huntleys point|hurlstone park|hurstville|hurstville grove|illawong|ingar|ingleburn|ingleside|inner city sydney|inner west|inner west council|inner west sydney|jamison valley|jamisontown|jannali|jibbon|jilliby|jooriland|jordan springs|kangaroo point|kangy angy|kanwal|kareela|kariong|kariwoga|katoomba|kearns|kedumba|kellyville|kellyville ridge|kemps creek|kensington|kenthurst|kentlyn|kiar|killara|killarney heights|killarney vale|killcare|killcare heights|kincumber|kincumber south|kingfisher shores|kings langley|kings park|kingsford|kingsgrove|kingswood|kirkham|kirrawee|kirribilli|kogarah|kogarah bay|koolewong|kowmung|ku ring gai chase|kulnura|kuringgai chase|kuringgai council|kurmond|kurnell|kurraba point|kurrajong|kurrajong heights|kurrajong hills|kyeemagh|kyle bay|la perouse|lake haven|lake macquarie city council|lake munmorah|lakemba|lakesland|lalor park|lane cove|lane cove council|lane cove north|lane cove west|lansdowne|lansvale|lapstone|laughtondale|lavender bay|lawson|leets vale|leichhardt|lemon tree|len waters estate|leonay|leppington|lethbridge park|leumeah|leura|lewisham|liberty grove|lidcombe|lilli pilli|lilyfield|linden|lindfield|linley point|lisarow|little bay|little jilliby|little wobby|liverpool|liverpool city council|llandilo|loftus|londonderry|long jetty|long point|longueville|lovett bay|lower macdonald|lower mangrove|lower north shore|lower portland|lucas heights|luddenham|lugarno|lurnea|macarthur|macarthur region|macmasters beach|macquarie fields|macquarie links|macquarie park|magenta|maianbar|malabar|maldon|mangrove creek|mangrove mountain|manly|manly vale|mannering park|maraylya|marayong|mardi|marley|marlow|maroota|maroubra|marrickville|marsden park|marsfield|mascot|massif ridge|matcham|matraville|mays hill|mccarrs creek|mcgraths hill|mcmahons point|meadowbank|medlow bath|megalong valley|mellong|melonba|melrose park|menai|menangle|menangle park|merrylands|merrylands west|middle cove|middle dural|middleton grange|miller|millers point|milperra|milsons passage|milsons point|minchinbury|minto|minto heights|miranda|mogo creek|mona vale|monterey|moonee|mooney mooney|mooney mooney creek|moore park|moorebank|morning bay|mortdale|mortlake|mosman|mosman municipal council|mount annan|mount colah|mount druitt|mount elliot|mount hunter|mount irvine|mount kuring gai|mount kuringgai|mount lewis|mount portal|mount pritchard|mount riverview|mount tomah|mount vernon|mount victoria|mount white|mount wilson|mountain lagoon|mowbray park|mulgoa|mulgrave|narara|narellan|narellan vale|naremburn|narrabeen|narraweena|narrow neck|narwee|nattai|nelson|neutral bay|newington|newport|newtown|niagara park|nirimba fields|norah head|noraville|normanhurst|north avoca|north balgowlah|north bondi|north curl curl|north epping|north gosford|north kellyville|north manly|north narrabeen|north parramatta|north richmond|north rocks|north ryde|north shore|north shore sydney|north st marys|north strathfield|north sydney|north sydney council|north turramurra|north wahroonga|north willoughby|northbridge|northern beaches|northern beaches council|northern beaches sydney|northmead|northwood|norwest|oakdale|oakhurst|oakville|oatlands|oatley|old guildford|old toongabbie|oran park|orangeville|orchard hills|ourimbah|oxford falls|oxley park|oyster bay|paddington|padstow|padstow heights|pagewood|palm beach|palm grove|palmdale|palona|panania|parklea|parramatta|patonga|peakhurst|peakhurst heights|pearl beach|peats ridge|pemulwuy|pendle hill|pennant hills|penrith|penrith city council|penshurst|perrys crossing|petersham|pheasants nest|phegans bay|phillip bay|picketts valley|picnic point|picton|pitt town|pitt town bottoms|pittwater|pleasure point|plumpton|point clare|point frederick|point piper|point wolstoncroft|port botany|port hacking|potts hill|potts point|prairiewood|prestons|pretty beach|prospect|punchbowl|putney|pymble|pyrmont|quakers hill|queens park|queenscliff|raby|ramsgate|ramsgate beach|randwick|randwick city council|ravensdale|razorback|redfern|regents park|regentville|revesby|revesby heights|rhodes|richards|richmond|richmond lowlands|riverstone|riverview|riverwood|rockdale|rocklily ridge|rocky point|rodd point|rookwood|rooty hill|ropes crossing|rose bay|rosebery|rosehill|roselands|rosemeadow|roseville|roseville chase|rossmore|rouse hill|rozelle|ruse|rushcutters bay|russell lea|rydalmere|ryde|ryde and macquarie park|ryde area|sackville|sackville north|sadleir|san remo|sandringham|sandy point|sans souci|saratoga|scheyville|schofields|scotland island|seaforth|sefton|seven hills|shalvey|shanes park|shelly beach|silverdale|silverwater|singletons mill|smeaton grange|smithfield|somersby|south coogee|south granville|south hurstville|south maroota|south penrith|south turramurra|south wentworthville|south west sydney|south western sydney|south windsor|spencer|spring farm|springfield|springwood|st albans|st andrews|st clair|st george|st helens park|st huberts island|st ives|st ives chase|st johns park|st leonards|st marys|st peters|stanhope gardens|stanmore|strathfield|strathfield council|strathfield south|summer hill|summerland point|sun valley|surry hills|sutherland|sutherland shire|sutherland shire council|sydenham|sydney|sydney cbd|sydney city|sydney olympic park|sydney south west|sylvania|sylvania waters|tacoma|tacoma south|tahmoor|tallawong|tamarama|taren point|tascott|telopea|tempe|ten mile hollow|tennyson|tennyson point|terrey hills|terrigal|tesselate hill|the devils wilderness|the entrance|the entrance north|the hills district|the hills shire council|the oaks|the ponds|the rocks|the slopes|theresa park|thirlmere|thornleigh|toongabbie|toowoon bay|toukley|tregear|tuggerah|tuggerawong|tumbi umbi|turramurra|turrella|uloola|ultimo|umina beach|upper colo|upper macdonald|upper mangrove|upper north shore|valley heights|varroville|vaucluse|villawood|vineyard|voyager point|wadalba|wagstaffe|wahroonga|waitara|wakeley|wallacia|wallarah|wamberal|wareemba|warnervale|warragamba|warrawee|warriewood|warrimoo|warumbul|warwick farm|watanobbi|waterfall|waterloo|watsons bay|wattamolla|wattle grove|waverley|waverley council|waverton|webbs creek|wedderburn|wendoree park|wentworth falls|wentworth point|wentworthville|werombi|werrington|werrington county|werrington downs|west gosford|west hoxton|west pennant hills|west pymble|west ryde|western sydney|westleigh|westmead|wetherill park|whalan|whale beach|wheeler heights|wheeny creek|wilberforce|wiley park|willmot|willoughby|willoughby city council|willoughby east|wilton|windsor|windsor downs|winmalee|winston hills|wisemans ferry|wolli creek|wollondilly shire council|wollstonecraft|womerah|wondabyne|woodbine|woodcroft|woodford|woodpark|woollahra|woollahra municipal council|woolloomooloo|woolooware|woolwich|woongarrah|woronora|woronora heights|woy woy|woy woy bay|wrights creek|wybung|wyoming|wyong|wyong creek|wyongah|yagoona|yanderra|yarramalong|yarramundi|yarrawarrah|yattalunga|yellow rock|yenabilli|yennora|yerranderie|yowie bay|zetland'.split('|'),\n)\n"]}
@@ -37,7 +37,7 @@ export declare function installPhoneClickListener(options: {
37
37
  }): () => void;
38
38
  /**
39
39
  * The single delegated listener for lead calls to action: a click on an
40
- * element carrying `data-bl-cta` (the ui-kit `QuoteButton`) sends one
40
+ * element carrying `data-bl-cta` (a site's quote button) sends one
41
41
  * `lead_cta_click` with its cta id and its `data-bl-cta-placement`. Elements
42
42
  * without an id or with a placement outside `LEAD_CTA_PLACEMENTS` send nothing.
43
43
  * Rapid repeats of the same call to action on the same page are de-duplicated
@@ -160,7 +160,7 @@ function leadCtaPlacementValue(value) {
160
160
  }
161
161
  /**
162
162
  * The single delegated listener for lead calls to action: a click on an
163
- * element carrying `data-bl-cta` (the ui-kit `QuoteButton`) sends one
163
+ * element carrying `data-bl-cta` (a site's quote button) sends one
164
164
  * `lead_cta_click` with its cta id and its `data-bl-cta-placement`. Elements
165
165
  * without an id or with a placement outside `LEAD_CTA_PLACEMENTS` send nothing.
166
166
  * Rapid repeats of the same call to action on the same page are de-duplicated