@movvjs/svelte-schedule-view 0.0.8 → 0.0.10
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/.svelte-kit/__package__/assets/scss/indie_booking.scss +4 -0
- package/.svelte-kit/__package__/i18n/locales/en.json +122 -123
- package/.svelte-kit/__package__/schedule/BookingInfo.svelte +13 -3
- package/.svelte-kit/__package__/schedule/PhoneNumberInput.svelte +1 -1
- package/.svelte-kit/__package__/schedule/Schedule.svelte +0 -3
- package/.svelte-kit/ambient.d.ts +0 -2
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/assets/scss/indie_booking.scss +4 -0
- package/dist/i18n/locales/en.json +122 -123
- package/dist/schedule/BookingInfo.svelte +13 -3
- package/dist/schedule/PhoneNumberInput.svelte +1 -1
- package/dist/schedule/Schedule.svelte +0 -3
- package/package.json +1 -2
- package/src/lib/assets/scss/indie_booking.scss +4 -0
- package/src/lib/i18n/locales/en.json +122 -123
- package/src/lib/schedule/BookingInfo.svelte +13 -3
- package/src/lib/schedule/PhoneNumberInput.svelte +1 -1
- package/src/lib/schedule/Schedule.svelte +0 -3
- package/sync-assets.sh +1 -1
- package/yarn.lock +0 -5
|
@@ -1544,6 +1544,10 @@ select {
|
|
|
1544
1544
|
color: #383E96;
|
|
1545
1545
|
font-size: 12px;
|
|
1546
1546
|
padding-right: 25px;
|
|
1547
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.133' height='7.41' viewBox='0 0 13.133 7.41'%3E%3Cpath id='ic_expand_more_24px' d='M17.59,8.59l-5.023,4.58L7.543,8.59,6,10l6.566,6,6.566-6Z' transform='translate(-6 -8.59)'/%3E%3C/svg%3E");
|
|
1548
|
+
background-repeat: no-repeat;
|
|
1549
|
+
background-position: right 5px center;
|
|
1550
|
+
background-size: 12px;
|
|
1547
1551
|
min-width: 60px;
|
|
1548
1552
|
text-align: left;
|
|
1549
1553
|
}
|
|
@@ -1,125 +1,124 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
2
|
+
"alert": {
|
|
3
|
+
"confirm": "Confirm",
|
|
4
|
+
"defaultButtonLabel": "Ok",
|
|
5
|
+
"defaultCancelButton": "Cancel",
|
|
6
|
+
"defaultTitle": "Info",
|
|
7
|
+
"failedToUploadFile": "Failed to upload file."
|
|
8
|
+
},
|
|
9
|
+
"booking": {
|
|
10
|
+
"autoPicket": "Auto",
|
|
11
|
+
"bookingInfo": "Booking info",
|
|
12
|
+
"cancel": "Cancel",
|
|
13
|
+
"carInfo": "Requested Model / Seats",
|
|
14
|
+
"contentCopy": "Content Copy",
|
|
15
|
+
"countyCode": "County code",
|
|
16
|
+
"dropOffZone": "Drop-off Zone",
|
|
17
|
+
"extraHours": "Extra hour(s)",
|
|
18
|
+
"extraService": "Extra service",
|
|
19
|
+
"file": "File",
|
|
20
|
+
"fileUpload": "Upload file",
|
|
21
|
+
"firstName": "First name",
|
|
22
|
+
"flight": "Flight",
|
|
23
|
+
"guestName": "Guest Name",
|
|
24
|
+
"hours": "{hour} hour(s)",
|
|
25
|
+
"lastName": "Last name",
|
|
26
|
+
"memo": "Memo",
|
|
27
|
+
"modify": "Modify",
|
|
28
|
+
"noZonesAreAvailableToSelect": "No zones are available to select.",
|
|
29
|
+
"passengerInfo": "Passenger Info",
|
|
30
|
+
"pax": "Pax",
|
|
31
|
+
"pickUpZone": "Pick-up Zone",
|
|
32
|
+
"reservationStatus": "Reservation status",
|
|
33
|
+
"reset": "Reset",
|
|
34
|
+
"save": "Save",
|
|
35
|
+
"schedule": "Schedule",
|
|
36
|
+
"seater": "seater",
|
|
37
|
+
"selectFile": "Select file",
|
|
38
|
+
"selectWaypoint": "Select waypoint",
|
|
39
|
+
"serviceZone": "Service Zone",
|
|
40
|
+
"startTime": "Start time",
|
|
41
|
+
"telNo": "Tel No.",
|
|
42
|
+
"totalPrice": "Total price",
|
|
43
|
+
"translate": "Translate",
|
|
44
|
+
"travelDate": "Travel Date",
|
|
45
|
+
"uploadPicketFile": "Upload Picket File",
|
|
46
|
+
"useTime": "Use time",
|
|
47
|
+
"waypointZone": "Waypoint Zone"
|
|
48
|
+
},
|
|
49
|
+
"bookingStatus": {
|
|
50
|
+
"CANCEL": "CANCELED",
|
|
51
|
+
"CANCEL_REQUEST": "CANCEL_REQ",
|
|
52
|
+
"COMPLETE": "ENDED",
|
|
53
|
+
"FINISH": "FINISHED",
|
|
54
|
+
"ING": "IN_SERVICE",
|
|
55
|
+
"MODIFY_REJECT": "MODIFY_REJECT",
|
|
56
|
+
"MODIFY_REQUEST": "MODIFY_REQ",
|
|
57
|
+
"PENDING": "INQUIRY",
|
|
58
|
+
"PENDING_REJECT": "INQUIRY_REJECT",
|
|
59
|
+
"REQUEST": "STANDBY",
|
|
60
|
+
"RESERV": "CONFIRMED"
|
|
61
|
+
},
|
|
62
|
+
"error": {
|
|
63
|
+
"pleaseEnterGuestName": "Please enter guest name",
|
|
64
|
+
"pleaseEnterTelNumber": "Please enter tel number."
|
|
65
|
+
},
|
|
66
|
+
"extraServiceType": {
|
|
67
|
+
"BABY": "Infant car seat",
|
|
68
|
+
"PICKET": "Meet and greet service"
|
|
69
|
+
},
|
|
70
|
+
"filght": {
|
|
71
|
+
"delayDescription": "Flight delay information is not updated in real-time"
|
|
72
|
+
},
|
|
73
|
+
"flight": {
|
|
74
|
+
"arrivalDate": "Arrival Date",
|
|
75
|
+
"directly": "Flight delay information is not updated in real-time when directly entered.",
|
|
76
|
+
"editManually": "Enter directly",
|
|
77
|
+
"estimatedTimeOfArrival": "Estimated time of arrival",
|
|
78
|
+
"flightNo": "Flight No.",
|
|
79
|
+
"noFlightsWereFound": "No flights were found.",
|
|
80
|
+
"pleaseEnterFlightNo": "Please enter flight No.",
|
|
81
|
+
"pleaseSelectAFlightNo": "Please select a flight No.",
|
|
82
|
+
"pleaseSelectDate": "Please select a date.",
|
|
83
|
+
"selectFlightNo": "Select Flight No.",
|
|
84
|
+
"terminal": "Terminal {number}"
|
|
85
|
+
},
|
|
86
|
+
"placeholder": {
|
|
87
|
+
"enterNameOrAddress": "Please enter name or address"
|
|
88
|
+
},
|
|
89
|
+
"plan": {},
|
|
90
|
+
"schedule": {
|
|
91
|
+
"addPoi": "ADD POI",
|
|
92
|
+
"airport": "Airport",
|
|
93
|
+
"change": "Change",
|
|
94
|
+
"dropOffPoint": "Drop-off Point",
|
|
95
|
+
"finish": "FINISH",
|
|
96
|
+
"pickupPoint": "Pick-up Point",
|
|
97
|
+
"selectAirport": "Select Airport",
|
|
98
|
+
"start": "START",
|
|
99
|
+
"viewPickupPoints": "View pickup points"
|
|
100
|
+
},
|
|
101
|
+
"serviceType": {
|
|
102
|
+
"CHARTER": "Charter",
|
|
103
|
+
"DAY": "Charter 1",
|
|
104
|
+
"ONE_WAY": "Charter 2",
|
|
105
|
+
"PICKUP": "Pick-up",
|
|
106
|
+
"POINT_POINT": "Point to Point",
|
|
107
|
+
"ROUND_TRIP": "Round Trip",
|
|
108
|
+
"SENDING": "Drop-off"
|
|
109
|
+
},
|
|
110
|
+
"toast": {
|
|
111
|
+
"copied": "Copied!",
|
|
112
|
+
"copying": "Copying...",
|
|
113
|
+
"failedToCopy": "Failed to copy"
|
|
114
|
+
},
|
|
115
|
+
"translage": {
|
|
116
|
+
"pleaseSelectSourceLanguage": "Please select source language"
|
|
117
|
+
},
|
|
118
|
+
"translate": {
|
|
119
|
+
"pleaseSelectDifferentLanguage": "Please select different language",
|
|
120
|
+
"pleaseSelectTargetLanguage": "Please select target language",
|
|
121
|
+
"setSourceLanguage": "Set source language",
|
|
122
|
+
"setTargetLanguage": "Set target language"
|
|
123
|
+
}
|
|
125
124
|
}
|
|
@@ -190,6 +190,9 @@ async function copyContents() {
|
|
|
190
190
|
texts.push(`${$t("booking.reservationStatus")} : ${$originalBooking.status}`);
|
|
191
191
|
if ($originalBooking.serviceType === BookingServiceType.day || $originalBooking.serviceType === BookingServiceType.oneWay) {
|
|
192
192
|
texts.push(`${$t("booking.useTime")} : ${$originalBooking.useTime} hour(s)`);
|
|
193
|
+
if ($originalBooking.addTime > 0) {
|
|
194
|
+
texts.push(`${$t("booking.extraHours")} : ${$originalBooking.addTime} hour(s)`);
|
|
195
|
+
}
|
|
193
196
|
}
|
|
194
197
|
const occupantInformationText = $originalBooking.addInfo?.length > 0 ? `
|
|
195
198
|
${$originalBooking.addInfo.map((info, i) => `${i + 1}. ${info.engName || "Empty Name"} (${info.birth || "Empty Birth date"})`).join("\n")}` : "- -";
|
|
@@ -321,7 +324,7 @@ $: {
|
|
|
321
324
|
</div>
|
|
322
325
|
{/if}
|
|
323
326
|
{:else}
|
|
324
|
-
<p class="
|
|
327
|
+
<p class="value-text flight">- -</p>
|
|
325
328
|
{/if}
|
|
326
329
|
{:else}
|
|
327
330
|
<!-- -->
|
|
@@ -484,7 +487,9 @@ $: {
|
|
|
484
487
|
<p class="value-txt">
|
|
485
488
|
{$originalBooking.memo || '- -'}
|
|
486
489
|
</p>
|
|
487
|
-
|
|
490
|
+
{#if $originalBooking.memo}
|
|
491
|
+
<button type="button" class="indie_btn_translation_nor" on:click={() => translation$.open($originalBooking.memo)}>{$t('booking.translate')}</button>
|
|
492
|
+
{/if}
|
|
488
493
|
{:else}
|
|
489
494
|
<textarea bind:value={$copiedBooking.memo} class="modify-textarea" />
|
|
490
495
|
{/if}
|
|
@@ -496,7 +501,12 @@ $: {
|
|
|
496
501
|
<th>{$t('booking.useTime')}</th>
|
|
497
502
|
<td>
|
|
498
503
|
{#if !$isEdit}
|
|
499
|
-
<p class="value-txt">
|
|
504
|
+
<p class="value-txt">
|
|
505
|
+
{$t('booking.hours', { values: { hour: $originalBooking.useTime } })}
|
|
506
|
+
{#if $originalBooking.addTime > 0}
|
|
507
|
+
(+ {$t('booking.hours', { values: { hour: $originalBooking.addTime } })})
|
|
508
|
+
{/if}
|
|
509
|
+
</p>
|
|
500
510
|
{:else}
|
|
501
511
|
<div class="indie_f-row gap">
|
|
502
512
|
<select value={$copiedBooking.useTime} class="indie_select_nor xs3 col" disabled>
|
|
@@ -69,7 +69,7 @@ function onInput(e) {
|
|
|
69
69
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
70
70
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
71
71
|
<li>
|
|
72
|
-
<input type="radio" class="
|
|
72
|
+
<input type="radio" class="indie_radio_flex back" name="f_choice" id="ch_{item.code}" on:click|stopPropagation={() => selectCountryCode(item.code)} />
|
|
73
73
|
<label for="ch_{item.code}">
|
|
74
74
|
<span class="txt">{@html item.boldTitle}</span>
|
|
75
75
|
</label>
|
|
@@ -11,14 +11,12 @@ import { loaders } from "../loaders";
|
|
|
11
11
|
import { alert } from "../alert";
|
|
12
12
|
import { t } from "../i18n";
|
|
13
13
|
import { env } from "../store/env";
|
|
14
|
-
import { jwtDecode } from "jwt-decode";
|
|
15
14
|
import Layout from "../components/Layout.svelte";
|
|
16
15
|
import Map from "./Map.svelte";
|
|
17
16
|
import ServiceZone from "./ServiceZone.svelte";
|
|
18
17
|
import Plan from "./Plan.svelte";
|
|
19
18
|
import BookingInfo from "./BookingInfo.svelte";
|
|
20
19
|
import { Toaster } from "svelte-french-toast";
|
|
21
|
-
import { onMount } from "svelte";
|
|
22
20
|
const { stdt, price, isModifiable } = originalBooking;
|
|
23
21
|
const { price: editPrice, availableDestZones, availableWaypointZones, fullName, selectedPrice } = copiedBooking;
|
|
24
22
|
let on = false;
|
|
@@ -40,7 +38,6 @@ export function init(options) {
|
|
|
40
38
|
isDev
|
|
41
39
|
});
|
|
42
40
|
console.log("init env ==>", $env);
|
|
43
|
-
console.log("user =>", jwtDecode(token.accessToken));
|
|
44
41
|
return {
|
|
45
42
|
open
|
|
46
43
|
};
|
package/.svelte-kit/ambient.d.ts
CHANGED
|
@@ -53,7 +53,6 @@ declare module '$env/static/private' {
|
|
|
53
53
|
export const npm_package_dependencies_dayjs: string;
|
|
54
54
|
export const USER: string;
|
|
55
55
|
export const npm_package_description: string;
|
|
56
|
-
export const npm_package_dependencies_jwt_decode: string;
|
|
57
56
|
export const LS_COLORS: string;
|
|
58
57
|
export const npm_package_scripts_check_watch: string;
|
|
59
58
|
export const npm_package_license: string;
|
|
@@ -191,7 +190,6 @@ declare module '$env/dynamic/private' {
|
|
|
191
190
|
npm_package_dependencies_dayjs: string;
|
|
192
191
|
USER: string;
|
|
193
192
|
npm_package_description: string;
|
|
194
|
-
npm_package_dependencies_jwt_decode: string;
|
|
195
193
|
LS_COLORS: string;
|
|
196
194
|
npm_package_scripts_check_watch: string;
|
|
197
195
|
npm_package_license: string;
|
|
@@ -21,7 +21,7 @@ export const options = {
|
|
|
21
21
|
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<meta name=\"referrer\" content=\"no-referrer\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div>" + body + "</div>\n\t</body>\n</html>\n",
|
|
22
22
|
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
23
23
|
},
|
|
24
|
-
version_hash: "
|
|
24
|
+
version_hash: "zc2dzo"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
|
@@ -1544,6 +1544,10 @@ select {
|
|
|
1544
1544
|
color: #383E96;
|
|
1545
1545
|
font-size: 12px;
|
|
1546
1546
|
padding-right: 25px;
|
|
1547
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.133' height='7.41' viewBox='0 0 13.133 7.41'%3E%3Cpath id='ic_expand_more_24px' d='M17.59,8.59l-5.023,4.58L7.543,8.59,6,10l6.566,6,6.566-6Z' transform='translate(-6 -8.59)'/%3E%3C/svg%3E");
|
|
1548
|
+
background-repeat: no-repeat;
|
|
1549
|
+
background-position: right 5px center;
|
|
1550
|
+
background-size: 12px;
|
|
1547
1551
|
min-width: 60px;
|
|
1548
1552
|
text-align: left;
|
|
1549
1553
|
}
|
|
@@ -1,125 +1,124 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
2
|
+
"alert": {
|
|
3
|
+
"confirm": "Confirm",
|
|
4
|
+
"defaultButtonLabel": "Ok",
|
|
5
|
+
"defaultCancelButton": "Cancel",
|
|
6
|
+
"defaultTitle": "Info",
|
|
7
|
+
"failedToUploadFile": "Failed to upload file."
|
|
8
|
+
},
|
|
9
|
+
"booking": {
|
|
10
|
+
"autoPicket": "Auto",
|
|
11
|
+
"bookingInfo": "Booking info",
|
|
12
|
+
"cancel": "Cancel",
|
|
13
|
+
"carInfo": "Requested Model / Seats",
|
|
14
|
+
"contentCopy": "Content Copy",
|
|
15
|
+
"countyCode": "County code",
|
|
16
|
+
"dropOffZone": "Drop-off Zone",
|
|
17
|
+
"extraHours": "Extra hour(s)",
|
|
18
|
+
"extraService": "Extra service",
|
|
19
|
+
"file": "File",
|
|
20
|
+
"fileUpload": "Upload file",
|
|
21
|
+
"firstName": "First name",
|
|
22
|
+
"flight": "Flight",
|
|
23
|
+
"guestName": "Guest Name",
|
|
24
|
+
"hours": "{hour} hour(s)",
|
|
25
|
+
"lastName": "Last name",
|
|
26
|
+
"memo": "Memo",
|
|
27
|
+
"modify": "Modify",
|
|
28
|
+
"noZonesAreAvailableToSelect": "No zones are available to select.",
|
|
29
|
+
"passengerInfo": "Passenger Info",
|
|
30
|
+
"pax": "Pax",
|
|
31
|
+
"pickUpZone": "Pick-up Zone",
|
|
32
|
+
"reservationStatus": "Reservation status",
|
|
33
|
+
"reset": "Reset",
|
|
34
|
+
"save": "Save",
|
|
35
|
+
"schedule": "Schedule",
|
|
36
|
+
"seater": "seater",
|
|
37
|
+
"selectFile": "Select file",
|
|
38
|
+
"selectWaypoint": "Select waypoint",
|
|
39
|
+
"serviceZone": "Service Zone",
|
|
40
|
+
"startTime": "Start time",
|
|
41
|
+
"telNo": "Tel No.",
|
|
42
|
+
"totalPrice": "Total price",
|
|
43
|
+
"translate": "Translate",
|
|
44
|
+
"travelDate": "Travel Date",
|
|
45
|
+
"uploadPicketFile": "Upload Picket File",
|
|
46
|
+
"useTime": "Use time",
|
|
47
|
+
"waypointZone": "Waypoint Zone"
|
|
48
|
+
},
|
|
49
|
+
"bookingStatus": {
|
|
50
|
+
"CANCEL": "CANCELED",
|
|
51
|
+
"CANCEL_REQUEST": "CANCEL_REQ",
|
|
52
|
+
"COMPLETE": "ENDED",
|
|
53
|
+
"FINISH": "FINISHED",
|
|
54
|
+
"ING": "IN_SERVICE",
|
|
55
|
+
"MODIFY_REJECT": "MODIFY_REJECT",
|
|
56
|
+
"MODIFY_REQUEST": "MODIFY_REQ",
|
|
57
|
+
"PENDING": "INQUIRY",
|
|
58
|
+
"PENDING_REJECT": "INQUIRY_REJECT",
|
|
59
|
+
"REQUEST": "STANDBY",
|
|
60
|
+
"RESERV": "CONFIRMED"
|
|
61
|
+
},
|
|
62
|
+
"error": {
|
|
63
|
+
"pleaseEnterGuestName": "Please enter guest name",
|
|
64
|
+
"pleaseEnterTelNumber": "Please enter tel number."
|
|
65
|
+
},
|
|
66
|
+
"extraServiceType": {
|
|
67
|
+
"BABY": "Infant car seat",
|
|
68
|
+
"PICKET": "Meet and greet service"
|
|
69
|
+
},
|
|
70
|
+
"filght": {
|
|
71
|
+
"delayDescription": "Flight delay information is not updated in real-time"
|
|
72
|
+
},
|
|
73
|
+
"flight": {
|
|
74
|
+
"arrivalDate": "Arrival Date",
|
|
75
|
+
"directly": "Flight delay information is not updated in real-time when directly entered.",
|
|
76
|
+
"editManually": "Enter directly",
|
|
77
|
+
"estimatedTimeOfArrival": "Estimated time of arrival",
|
|
78
|
+
"flightNo": "Flight No.",
|
|
79
|
+
"noFlightsWereFound": "No flights were found.",
|
|
80
|
+
"pleaseEnterFlightNo": "Please enter flight No.",
|
|
81
|
+
"pleaseSelectAFlightNo": "Please select a flight No.",
|
|
82
|
+
"pleaseSelectDate": "Please select a date.",
|
|
83
|
+
"selectFlightNo": "Select Flight No.",
|
|
84
|
+
"terminal": "Terminal {number}"
|
|
85
|
+
},
|
|
86
|
+
"placeholder": {
|
|
87
|
+
"enterNameOrAddress": "Please enter name or address"
|
|
88
|
+
},
|
|
89
|
+
"plan": {},
|
|
90
|
+
"schedule": {
|
|
91
|
+
"addPoi": "ADD POI",
|
|
92
|
+
"airport": "Airport",
|
|
93
|
+
"change": "Change",
|
|
94
|
+
"dropOffPoint": "Drop-off Point",
|
|
95
|
+
"finish": "FINISH",
|
|
96
|
+
"pickupPoint": "Pick-up Point",
|
|
97
|
+
"selectAirport": "Select Airport",
|
|
98
|
+
"start": "START",
|
|
99
|
+
"viewPickupPoints": "View pickup points"
|
|
100
|
+
},
|
|
101
|
+
"serviceType": {
|
|
102
|
+
"CHARTER": "Charter",
|
|
103
|
+
"DAY": "Charter 1",
|
|
104
|
+
"ONE_WAY": "Charter 2",
|
|
105
|
+
"PICKUP": "Pick-up",
|
|
106
|
+
"POINT_POINT": "Point to Point",
|
|
107
|
+
"ROUND_TRIP": "Round Trip",
|
|
108
|
+
"SENDING": "Drop-off"
|
|
109
|
+
},
|
|
110
|
+
"toast": {
|
|
111
|
+
"copied": "Copied!",
|
|
112
|
+
"copying": "Copying...",
|
|
113
|
+
"failedToCopy": "Failed to copy"
|
|
114
|
+
},
|
|
115
|
+
"translage": {
|
|
116
|
+
"pleaseSelectSourceLanguage": "Please select source language"
|
|
117
|
+
},
|
|
118
|
+
"translate": {
|
|
119
|
+
"pleaseSelectDifferentLanguage": "Please select different language",
|
|
120
|
+
"pleaseSelectTargetLanguage": "Please select target language",
|
|
121
|
+
"setSourceLanguage": "Set source language",
|
|
122
|
+
"setTargetLanguage": "Set target language"
|
|
123
|
+
}
|
|
125
124
|
}
|
|
@@ -190,6 +190,9 @@ async function copyContents() {
|
|
|
190
190
|
texts.push(`${$t("booking.reservationStatus")} : ${$originalBooking.status}`);
|
|
191
191
|
if ($originalBooking.serviceType === BookingServiceType.day || $originalBooking.serviceType === BookingServiceType.oneWay) {
|
|
192
192
|
texts.push(`${$t("booking.useTime")} : ${$originalBooking.useTime} hour(s)`);
|
|
193
|
+
if ($originalBooking.addTime > 0) {
|
|
194
|
+
texts.push(`${$t("booking.extraHours")} : ${$originalBooking.addTime} hour(s)`);
|
|
195
|
+
}
|
|
193
196
|
}
|
|
194
197
|
const occupantInformationText = $originalBooking.addInfo?.length > 0 ? `
|
|
195
198
|
${$originalBooking.addInfo.map((info, i) => `${i + 1}. ${info.engName || "Empty Name"} (${info.birth || "Empty Birth date"})`).join("\n")}` : "- -";
|
|
@@ -321,7 +324,7 @@ $: {
|
|
|
321
324
|
</div>
|
|
322
325
|
{/if}
|
|
323
326
|
{:else}
|
|
324
|
-
<p class="
|
|
327
|
+
<p class="value-text flight">- -</p>
|
|
325
328
|
{/if}
|
|
326
329
|
{:else}
|
|
327
330
|
<!-- -->
|
|
@@ -484,7 +487,9 @@ $: {
|
|
|
484
487
|
<p class="value-txt">
|
|
485
488
|
{$originalBooking.memo || '- -'}
|
|
486
489
|
</p>
|
|
487
|
-
|
|
490
|
+
{#if $originalBooking.memo}
|
|
491
|
+
<button type="button" class="indie_btn_translation_nor" on:click={() => translation$.open($originalBooking.memo)}>{$t('booking.translate')}</button>
|
|
492
|
+
{/if}
|
|
488
493
|
{:else}
|
|
489
494
|
<textarea bind:value={$copiedBooking.memo} class="modify-textarea" />
|
|
490
495
|
{/if}
|
|
@@ -496,7 +501,12 @@ $: {
|
|
|
496
501
|
<th>{$t('booking.useTime')}</th>
|
|
497
502
|
<td>
|
|
498
503
|
{#if !$isEdit}
|
|
499
|
-
<p class="value-txt">
|
|
504
|
+
<p class="value-txt">
|
|
505
|
+
{$t('booking.hours', { values: { hour: $originalBooking.useTime } })}
|
|
506
|
+
{#if $originalBooking.addTime > 0}
|
|
507
|
+
(+ {$t('booking.hours', { values: { hour: $originalBooking.addTime } })})
|
|
508
|
+
{/if}
|
|
509
|
+
</p>
|
|
500
510
|
{:else}
|
|
501
511
|
<div class="indie_f-row gap">
|
|
502
512
|
<select value={$copiedBooking.useTime} class="indie_select_nor xs3 col" disabled>
|
|
@@ -69,7 +69,7 @@ function onInput(e) {
|
|
|
69
69
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
70
70
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
71
71
|
<li>
|
|
72
|
-
<input type="radio" class="
|
|
72
|
+
<input type="radio" class="indie_radio_flex back" name="f_choice" id="ch_{item.code}" on:click|stopPropagation={() => selectCountryCode(item.code)} />
|
|
73
73
|
<label for="ch_{item.code}">
|
|
74
74
|
<span class="txt">{@html item.boldTitle}</span>
|
|
75
75
|
</label>
|
|
@@ -11,14 +11,12 @@ import { loaders } from "../loaders";
|
|
|
11
11
|
import { alert } from "../alert";
|
|
12
12
|
import { t } from "../i18n";
|
|
13
13
|
import { env } from "../store/env";
|
|
14
|
-
import { jwtDecode } from "jwt-decode";
|
|
15
14
|
import Layout from "../components/Layout.svelte";
|
|
16
15
|
import Map from "./Map.svelte";
|
|
17
16
|
import ServiceZone from "./ServiceZone.svelte";
|
|
18
17
|
import Plan from "./Plan.svelte";
|
|
19
18
|
import BookingInfo from "./BookingInfo.svelte";
|
|
20
19
|
import { Toaster } from "svelte-french-toast";
|
|
21
|
-
import { onMount } from "svelte";
|
|
22
20
|
const { stdt, price, isModifiable } = originalBooking;
|
|
23
21
|
const { price: editPrice, availableDestZones, availableWaypointZones, fullName, selectedPrice } = copiedBooking;
|
|
24
22
|
let on = false;
|
|
@@ -40,7 +38,6 @@ export function init(options) {
|
|
|
40
38
|
isDev
|
|
41
39
|
});
|
|
42
40
|
console.log("init env ==>", $env);
|
|
43
|
-
console.log("user =>", jwtDecode(token.accessToken));
|
|
44
41
|
return {
|
|
45
42
|
open
|
|
46
43
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movvjs/svelte-schedule-view",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": {
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"dayjs": "^1.11.11",
|
|
54
54
|
"intl-messageformat": "^10.5.12",
|
|
55
|
-
"jwt-decode": "^4.0.0",
|
|
56
55
|
"lodash-es": "^4.17.21",
|
|
57
56
|
"qs": "^6.12.1",
|
|
58
57
|
"sortablejs": "^1.15.2",
|
|
@@ -1544,6 +1544,10 @@ select {
|
|
|
1544
1544
|
color: #383E96;
|
|
1545
1545
|
font-size: 12px;
|
|
1546
1546
|
padding-right: 25px;
|
|
1547
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.133' height='7.41' viewBox='0 0 13.133 7.41'%3E%3Cpath id='ic_expand_more_24px' d='M17.59,8.59l-5.023,4.58L7.543,8.59,6,10l6.566,6,6.566-6Z' transform='translate(-6 -8.59)'/%3E%3C/svg%3E");
|
|
1548
|
+
background-repeat: no-repeat;
|
|
1549
|
+
background-position: right 5px center;
|
|
1550
|
+
background-size: 12px;
|
|
1547
1551
|
min-width: 60px;
|
|
1548
1552
|
text-align: left;
|
|
1549
1553
|
}
|
|
@@ -1,125 +1,124 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
2
|
+
"alert": {
|
|
3
|
+
"confirm": "Confirm",
|
|
4
|
+
"defaultButtonLabel": "Ok",
|
|
5
|
+
"defaultCancelButton": "Cancel",
|
|
6
|
+
"defaultTitle": "Info",
|
|
7
|
+
"failedToUploadFile": "Failed to upload file."
|
|
8
|
+
},
|
|
9
|
+
"booking": {
|
|
10
|
+
"autoPicket": "Auto",
|
|
11
|
+
"bookingInfo": "Booking info",
|
|
12
|
+
"cancel": "Cancel",
|
|
13
|
+
"carInfo": "Requested Model / Seats",
|
|
14
|
+
"contentCopy": "Content Copy",
|
|
15
|
+
"countyCode": "County code",
|
|
16
|
+
"dropOffZone": "Drop-off Zone",
|
|
17
|
+
"extraHours": "Extra hour(s)",
|
|
18
|
+
"extraService": "Extra service",
|
|
19
|
+
"file": "File",
|
|
20
|
+
"fileUpload": "Upload file",
|
|
21
|
+
"firstName": "First name",
|
|
22
|
+
"flight": "Flight",
|
|
23
|
+
"guestName": "Guest Name",
|
|
24
|
+
"hours": "{hour} hour(s)",
|
|
25
|
+
"lastName": "Last name",
|
|
26
|
+
"memo": "Memo",
|
|
27
|
+
"modify": "Modify",
|
|
28
|
+
"noZonesAreAvailableToSelect": "No zones are available to select.",
|
|
29
|
+
"passengerInfo": "Passenger Info",
|
|
30
|
+
"pax": "Pax",
|
|
31
|
+
"pickUpZone": "Pick-up Zone",
|
|
32
|
+
"reservationStatus": "Reservation status",
|
|
33
|
+
"reset": "Reset",
|
|
34
|
+
"save": "Save",
|
|
35
|
+
"schedule": "Schedule",
|
|
36
|
+
"seater": "seater",
|
|
37
|
+
"selectFile": "Select file",
|
|
38
|
+
"selectWaypoint": "Select waypoint",
|
|
39
|
+
"serviceZone": "Service Zone",
|
|
40
|
+
"startTime": "Start time",
|
|
41
|
+
"telNo": "Tel No.",
|
|
42
|
+
"totalPrice": "Total price",
|
|
43
|
+
"translate": "Translate",
|
|
44
|
+
"travelDate": "Travel Date",
|
|
45
|
+
"uploadPicketFile": "Upload Picket File",
|
|
46
|
+
"useTime": "Use time",
|
|
47
|
+
"waypointZone": "Waypoint Zone"
|
|
48
|
+
},
|
|
49
|
+
"bookingStatus": {
|
|
50
|
+
"CANCEL": "CANCELED",
|
|
51
|
+
"CANCEL_REQUEST": "CANCEL_REQ",
|
|
52
|
+
"COMPLETE": "ENDED",
|
|
53
|
+
"FINISH": "FINISHED",
|
|
54
|
+
"ING": "IN_SERVICE",
|
|
55
|
+
"MODIFY_REJECT": "MODIFY_REJECT",
|
|
56
|
+
"MODIFY_REQUEST": "MODIFY_REQ",
|
|
57
|
+
"PENDING": "INQUIRY",
|
|
58
|
+
"PENDING_REJECT": "INQUIRY_REJECT",
|
|
59
|
+
"REQUEST": "STANDBY",
|
|
60
|
+
"RESERV": "CONFIRMED"
|
|
61
|
+
},
|
|
62
|
+
"error": {
|
|
63
|
+
"pleaseEnterGuestName": "Please enter guest name",
|
|
64
|
+
"pleaseEnterTelNumber": "Please enter tel number."
|
|
65
|
+
},
|
|
66
|
+
"extraServiceType": {
|
|
67
|
+
"BABY": "Infant car seat",
|
|
68
|
+
"PICKET": "Meet and greet service"
|
|
69
|
+
},
|
|
70
|
+
"filght": {
|
|
71
|
+
"delayDescription": "Flight delay information is not updated in real-time"
|
|
72
|
+
},
|
|
73
|
+
"flight": {
|
|
74
|
+
"arrivalDate": "Arrival Date",
|
|
75
|
+
"directly": "Flight delay information is not updated in real-time when directly entered.",
|
|
76
|
+
"editManually": "Enter directly",
|
|
77
|
+
"estimatedTimeOfArrival": "Estimated time of arrival",
|
|
78
|
+
"flightNo": "Flight No.",
|
|
79
|
+
"noFlightsWereFound": "No flights were found.",
|
|
80
|
+
"pleaseEnterFlightNo": "Please enter flight No.",
|
|
81
|
+
"pleaseSelectAFlightNo": "Please select a flight No.",
|
|
82
|
+
"pleaseSelectDate": "Please select a date.",
|
|
83
|
+
"selectFlightNo": "Select Flight No.",
|
|
84
|
+
"terminal": "Terminal {number}"
|
|
85
|
+
},
|
|
86
|
+
"placeholder": {
|
|
87
|
+
"enterNameOrAddress": "Please enter name or address"
|
|
88
|
+
},
|
|
89
|
+
"plan": {},
|
|
90
|
+
"schedule": {
|
|
91
|
+
"addPoi": "ADD POI",
|
|
92
|
+
"airport": "Airport",
|
|
93
|
+
"change": "Change",
|
|
94
|
+
"dropOffPoint": "Drop-off Point",
|
|
95
|
+
"finish": "FINISH",
|
|
96
|
+
"pickupPoint": "Pick-up Point",
|
|
97
|
+
"selectAirport": "Select Airport",
|
|
98
|
+
"start": "START",
|
|
99
|
+
"viewPickupPoints": "View pickup points"
|
|
100
|
+
},
|
|
101
|
+
"serviceType": {
|
|
102
|
+
"CHARTER": "Charter",
|
|
103
|
+
"DAY": "Charter 1",
|
|
104
|
+
"ONE_WAY": "Charter 2",
|
|
105
|
+
"PICKUP": "Pick-up",
|
|
106
|
+
"POINT_POINT": "Point to Point",
|
|
107
|
+
"ROUND_TRIP": "Round Trip",
|
|
108
|
+
"SENDING": "Drop-off"
|
|
109
|
+
},
|
|
110
|
+
"toast": {
|
|
111
|
+
"copied": "Copied!",
|
|
112
|
+
"copying": "Copying...",
|
|
113
|
+
"failedToCopy": "Failed to copy"
|
|
114
|
+
},
|
|
115
|
+
"translage": {
|
|
116
|
+
"pleaseSelectSourceLanguage": "Please select source language"
|
|
117
|
+
},
|
|
118
|
+
"translate": {
|
|
119
|
+
"pleaseSelectDifferentLanguage": "Please select different language",
|
|
120
|
+
"pleaseSelectTargetLanguage": "Please select target language",
|
|
121
|
+
"setSourceLanguage": "Set source language",
|
|
122
|
+
"setTargetLanguage": "Set target language"
|
|
123
|
+
}
|
|
125
124
|
}
|
|
@@ -193,6 +193,9 @@
|
|
|
193
193
|
texts.push(`${$t('booking.reservationStatus')} : ${$originalBooking.status}`)
|
|
194
194
|
if ($originalBooking.serviceType === BookingServiceType.day || $originalBooking.serviceType === BookingServiceType.oneWay) {
|
|
195
195
|
texts.push(`${$t('booking.useTime')} : ${$originalBooking.useTime} hour(s)`)
|
|
196
|
+
if ($originalBooking.addTime > 0) {
|
|
197
|
+
texts.push(`${$t('booking.extraHours')} : ${$originalBooking.addTime} hour(s)`)
|
|
198
|
+
}
|
|
196
199
|
}
|
|
197
200
|
const occupantInformationText =
|
|
198
201
|
$originalBooking.addInfo?.length > 0
|
|
@@ -338,7 +341,7 @@
|
|
|
338
341
|
</div>
|
|
339
342
|
{/if}
|
|
340
343
|
{:else}
|
|
341
|
-
<p class="
|
|
344
|
+
<p class="value-text flight">- -</p>
|
|
342
345
|
{/if}
|
|
343
346
|
{:else}
|
|
344
347
|
<!-- -->
|
|
@@ -501,7 +504,9 @@
|
|
|
501
504
|
<p class="value-txt">
|
|
502
505
|
{$originalBooking.memo || '- -'}
|
|
503
506
|
</p>
|
|
504
|
-
|
|
507
|
+
{#if $originalBooking.memo}
|
|
508
|
+
<button type="button" class="indie_btn_translation_nor" on:click={() => translation$.open($originalBooking.memo)}>{$t('booking.translate')}</button>
|
|
509
|
+
{/if}
|
|
505
510
|
{:else}
|
|
506
511
|
<textarea bind:value={$copiedBooking.memo} class="modify-textarea" />
|
|
507
512
|
{/if}
|
|
@@ -513,7 +518,12 @@
|
|
|
513
518
|
<th>{$t('booking.useTime')}</th>
|
|
514
519
|
<td>
|
|
515
520
|
{#if !$isEdit}
|
|
516
|
-
<p class="value-txt">
|
|
521
|
+
<p class="value-txt">
|
|
522
|
+
{$t('booking.hours', { values: { hour: $originalBooking.useTime } })}
|
|
523
|
+
{#if $originalBooking.addTime > 0}
|
|
524
|
+
(+ {$t('booking.hours', { values: { hour: $originalBooking.addTime } })})
|
|
525
|
+
{/if}
|
|
526
|
+
</p>
|
|
517
527
|
{:else}
|
|
518
528
|
<div class="indie_f-row gap">
|
|
519
529
|
<select value={$copiedBooking.useTime} class="indie_select_nor xs3 col" disabled>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
88
88
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
89
89
|
<li>
|
|
90
|
-
<input type="radio" class="
|
|
90
|
+
<input type="radio" class="indie_radio_flex back" name="f_choice" id="ch_{item.code}" on:click|stopPropagation={() => selectCountryCode(item.code)} />
|
|
91
91
|
<label for="ch_{item.code}">
|
|
92
92
|
<span class="txt">{@html item.boldTitle}</span>
|
|
93
93
|
</label>
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
import { t } from '$lib/i18n'
|
|
15
15
|
import type { Locale, Target } from '$lib/types'
|
|
16
16
|
import { env } from '$lib/store/env'
|
|
17
|
-
import { jwtDecode } from 'jwt-decode'
|
|
18
17
|
|
|
19
18
|
import Layout from '$lib/components/Layout.svelte'
|
|
20
19
|
import Map from './Map.svelte'
|
|
@@ -22,7 +21,6 @@
|
|
|
22
21
|
import Plan from './Plan.svelte'
|
|
23
22
|
import BookingInfo from './BookingInfo.svelte'
|
|
24
23
|
import { Toaster } from 'svelte-french-toast'
|
|
25
|
-
import { onMount } from 'svelte'
|
|
26
24
|
|
|
27
25
|
const { stdt, price, isModifiable } = originalBooking
|
|
28
26
|
const { price: editPrice, availableDestZones, availableWaypointZones, fullName, selectedPrice } = copiedBooking
|
|
@@ -57,7 +55,6 @@
|
|
|
57
55
|
})
|
|
58
56
|
|
|
59
57
|
console.log('init env ==>', $env)
|
|
60
|
-
console.log('user =>', jwtDecode(token.accessToken))
|
|
61
58
|
|
|
62
59
|
return {
|
|
63
60
|
open
|
package/sync-assets.sh
CHANGED
package/yarn.lock
CHANGED
|
@@ -1109,11 +1109,6 @@ is-reference@^3.0.0, is-reference@^3.0.1:
|
|
|
1109
1109
|
dependencies:
|
|
1110
1110
|
"@types/estree" "*"
|
|
1111
1111
|
|
|
1112
|
-
jwt-decode@^4.0.0:
|
|
1113
|
-
version "4.0.0"
|
|
1114
|
-
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-4.0.0.tgz#2270352425fd413785b2faf11f6e755c5151bd4b"
|
|
1115
|
-
integrity sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==
|
|
1116
|
-
|
|
1117
1112
|
kleur@^4.1.5:
|
|
1118
1113
|
version "4.1.5"
|
|
1119
1114
|
resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780"
|