tripstorekrabi-shared 1.25.2 → 1.25.3
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/booking.js +7 -7
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -182,28 +182,28 @@ export function getOperatorSignature(operatorName, contact) {
|
|
|
182
182
|
|
|
183
183
|
if (contact && contact.phoneNumber) {
|
|
184
184
|
const cleanPhone = contact.phoneNumber.replace(/[^\d+]/g, '');
|
|
185
|
-
signature += `<br
|
|
185
|
+
signature += `<br><a href="tel:${cleanPhone}">Call our office</a>`;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
if (contact && contact.email) {
|
|
189
|
-
signature += `<br
|
|
189
|
+
signature += `<br><a href="mailto:${contact.email}">Send email</a>`;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
if (contact && contact.respondNumber) {
|
|
193
193
|
const cleanRespond = contact.respondNumber.replace(/\D/g, '');
|
|
194
|
-
signature += `<br
|
|
194
|
+
signature += `<br><a href="https://wa.me/${cleanRespond}">Chat on WhatsApp</a>`;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
if (contact && contact.whatsappNumber) {
|
|
198
198
|
const cleanWhatsapp = contact.whatsappNumber.replace(/\D/g, '');
|
|
199
|
-
signature += `<br
|
|
199
|
+
signature += `<br><a href="https://wa.me/${cleanWhatsapp}">Call on WhatsApp</a>`;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
signature += `<br
|
|
202
|
+
signature += `<br><a href="https://t.me/tripstorekrabi_bot">Chat in Telegram</a>`;
|
|
203
203
|
|
|
204
|
-
signature += `<br
|
|
204
|
+
signature += `<br><a href="line://ti/p/@cjs7975w">Chat on LINE</a>`;
|
|
205
205
|
|
|
206
|
-
signature += `<br
|
|
206
|
+
signature += `<br><a href="https://m.me/tripstorekrabi">Message on Facebook</a>`;
|
|
207
207
|
|
|
208
208
|
return signature;
|
|
209
209
|
}
|