document.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. - AdSerializer
  2. /**
  3. * Escapes a string for use in a regular expression.
  4. */
  5. static escape(text: string): string
  6. /**
  7. * Regex for redacted phone numbers with extra info for Baan-kaidee (TO BE REMOVED).
  8. */
  9. const PHONE_PLACEHOLDER_NUMBER: RegExp = /\[redacted phone number\](#{0,1}\(([()_\-+\d ]*)\)){0,1}/;
  10. PHONE_NUMBER_REGEX_BAAN_KAIDEE
  11. PHONE_NUMBER_REGEX_WITH
  12. /**
  13. Renders a description text with placeholders in it
  14. for phone numbers and e-mail addresses.
  15. The placeholders are replaced with links. Phone number
  16. placeholders get a link that opens a dialog with
  17. the phone number in it and the e-mail addresses
  18. get replaced with a link that brings the contact
  19. form into focus.
  20. */
  21. class DescriptionText extends React.Component<Props, State>
  22. /**
  23. * Build time settings.
  24. * Those settings are replaced with their value when the bundle is built and are not changed after the bundle is built.
  25. * WARNING: ALL OF THE VARIABLES HERE ARE PUBLICLY AVAILABLE. DO NOT INCLUDE SECRETS HERE.
  26. */
  27. const getBuildSettings = () =>
  28. /**
  29. * Single Setting Dialog for desktop version.
  30. */
  31. var SingleSettingDialog = function SingleSettingDialog(props)
  32. /**
  33. * Method to call when the e-mail is sent.
  34. */
  35. onSendEmailClick?: (
  36. /**
  37. * Attempts to preload the form fields with previously values from the
  38. * session storage. Sanitizes for `name, email, phone, message` fields.
  39. */
  40. const filterAndSanitize = (values: Values): Object =>
  41. /**
  42. * Stick element after scroll passed the element. "scrollTop < element.scrollTop + element.height"
  43. * If neither stickBefore, nor stickAfter is specified the element will stick when "scrollTop > element.scrollTop + element.height"
  44. */
  45. +stickAfter?
  46. /**
  47. * Zoom levels for the layer.
  48. */
  49. zoomLevels: ZoomLevelType