axitech-widget 1.0.0-dev.1 → 1.0.0-dev.2
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/dist/{Accident-bb6c065f.js → Accident-1f6ef2c9.js} +1 -1
- package/dist/{Accident-d176e708.mjs → Accident-5754adae.mjs} +1 -1
- package/dist/Modal-7d8352ec.mjs +4 -0
- package/dist/{Modal-00aff61f.js → Modal-a409bf5d.js} +1 -1
- package/dist/{SubmittedSuccessfully-6dc10727.mjs → SubmittedSuccessfully-d7e7aee4.mjs} +1 -1
- package/dist/{SubmittedSuccessfully-116ee2d5.js → SubmittedSuccessfully-f17bd7b8.js} +1 -1
- package/dist/{Unsupported-b22e2595.mjs → Unsupported-43b71131.mjs} +1 -1
- package/dist/{Unsupported-2987252a.js → Unsupported-884e65b7.js} +1 -1
- package/dist/axitech-widget.cjs.js +1 -1
- package/dist/axitech-widget.es.js +1 -1
- package/dist/axitech-widget.umd.js +45 -45
- package/dist/index-ba36653a.js +684 -0
- package/dist/{index-0e0d8bc0.mjs → index-f32c92df.mjs} +250 -161
- package/dist/style.css +1 -1
- package/dist/types/components/base/Address.vue.d.ts +7 -0
- package/dist/types/components/base/GoogleAutocomplete.vue.d.ts +2 -2
- package/dist/types/components/base/Input.vue.d.ts +12 -3
- package/dist/types/components/form/controls/InvolvedPersons.vue.d.ts +8 -6
- package/dist/types/types/overlays.d.ts +4 -3
- package/dist/types/utils/map.d.ts +4 -3
- package/package.json +1 -1
- package/src/components/base/Address.vue +61 -0
- package/src/components/base/GoogleAutocomplete.vue +28 -8
- package/src/components/base/GoogleMap.vue +2 -2
- package/src/components/base/Input.vue +8 -2
- package/src/components/base/PersonCard.vue +1 -1
- package/src/components/base/overlays/DriverSection.vue +2 -8
- package/src/components/base/overlays/SimpleSection.vue +2 -9
- package/src/components/base/overlays/ThirdPartyOverlay.vue +4 -3
- package/src/types/overlays.ts +4 -3
- package/src/utils/map.ts +11 -9
- package/dist/Modal-99ecf514.mjs +0 -4
- package/dist/index-f76ef406.js +0 -684
|
@@ -11153,7 +11153,7 @@ function getDefaultConfig() {
|
|
|
11153
11153
|
};
|
|
11154
11154
|
}
|
|
11155
11155
|
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
11156
|
-
const _sfc_main$
|
|
11156
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
11157
11157
|
__name: "Button",
|
|
11158
11158
|
props: {
|
|
11159
11159
|
type: {},
|
|
@@ -11227,7 +11227,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11227
11227
|
};
|
|
11228
11228
|
}
|
|
11229
11229
|
});
|
|
11230
|
-
const _hoisted_1$
|
|
11230
|
+
const _hoisted_1$F = {
|
|
11231
11231
|
key: 0,
|
|
11232
11232
|
class: "title3-bold font-medium mb-4"
|
|
11233
11233
|
};
|
|
@@ -11238,10 +11238,10 @@ const _hoisted_4$k = {
|
|
|
11238
11238
|
class: "flex flex-col gap-y-4"
|
|
11239
11239
|
};
|
|
11240
11240
|
const _hoisted_5$h = { class: "flex h-12 w-12 items-center justify-center rounded-full" };
|
|
11241
|
-
const _hoisted_6$
|
|
11241
|
+
const _hoisted_6$d = { class: "ml-4" };
|
|
11242
11242
|
const _hoisted_7$a = { class: "body1-bold text-start" };
|
|
11243
11243
|
const _hoisted_8$7 = { class: "body3 text-start text-fontSecondary-500" };
|
|
11244
|
-
const _sfc_main$
|
|
11244
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
11245
11245
|
__name: "StepSelector",
|
|
11246
11246
|
props: {
|
|
11247
11247
|
title: {},
|
|
@@ -11262,7 +11262,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11262
11262
|
}, {
|
|
11263
11263
|
default: withCtx(() => [
|
|
11264
11264
|
createBaseVNode("div", null, [
|
|
11265
|
-
!_ctx.isBackButtonVisible ? (openBlock(), createElementBlock("h2", _hoisted_1$
|
|
11265
|
+
!_ctx.isBackButtonVisible ? (openBlock(), createElementBlock("h2", _hoisted_1$F, toDisplayString(_ctx.title), 1)) : (openBlock(), createBlock(_sfc_main$n, {
|
|
11266
11266
|
key: 1,
|
|
11267
11267
|
type: "ghost",
|
|
11268
11268
|
class: "group mb-4 hover:bg-white",
|
|
@@ -11284,7 +11284,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11284
11284
|
key: card.name,
|
|
11285
11285
|
class: "flex"
|
|
11286
11286
|
}, [
|
|
11287
|
-
createVNode(_sfc_main$
|
|
11287
|
+
createVNode(_sfc_main$n, {
|
|
11288
11288
|
type: "ghost",
|
|
11289
11289
|
class: "items-start p-4 border border-gray-200 rounded-custom w-full",
|
|
11290
11290
|
onClick: ($event) => emit2("onSelect", index2)
|
|
@@ -11297,7 +11297,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11297
11297
|
class: "h-24 w-24 text-primary"
|
|
11298
11298
|
}, null, 8, ["icon", "alt"])
|
|
11299
11299
|
]),
|
|
11300
|
-
createBaseVNode("div", _hoisted_6$
|
|
11300
|
+
createBaseVNode("div", _hoisted_6$d, [
|
|
11301
11301
|
createBaseVNode("h2", _hoisted_7$a, toDisplayString(card.name), 1),
|
|
11302
11302
|
createBaseVNode("p", _hoisted_8$7, toDisplayString(card.description), 1)
|
|
11303
11303
|
])
|
|
@@ -24039,7 +24039,7 @@ var baseMerge = _baseMerge, createAssigner = _createAssigner;
|
|
|
24039
24039
|
createAssigner(function(object, source, srcIndex, customizer) {
|
|
24040
24040
|
baseMerge(object, source, srcIndex, customizer);
|
|
24041
24041
|
});
|
|
24042
|
-
const _sfc_main$
|
|
24042
|
+
const _sfc_main$l = defineComponent({
|
|
24043
24043
|
name: "ControlWrapper",
|
|
24044
24044
|
props: {
|
|
24045
24045
|
id: {
|
|
@@ -24069,7 +24069,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
24069
24069
|
}
|
|
24070
24070
|
return target;
|
|
24071
24071
|
};
|
|
24072
|
-
const _hoisted_1$
|
|
24072
|
+
const _hoisted_1$E = ["id"];
|
|
24073
24073
|
const _hoisted_2$t = {
|
|
24074
24074
|
key: 0,
|
|
24075
24075
|
class: "body1-bold text-negative-500"
|
|
@@ -24082,9 +24082,9 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24082
24082
|
}, [
|
|
24083
24083
|
renderSlot(_ctx.$slots, "default"),
|
|
24084
24084
|
_ctx.error ? (openBlock(), createElementBlock("p", _hoisted_2$t, toDisplayString(_ctx.error), 1)) : createCommentVNode("", true)
|
|
24085
|
-
], 10, _hoisted_1$
|
|
24085
|
+
], 10, _hoisted_1$E)) : createCommentVNode("", true);
|
|
24086
24086
|
}
|
|
24087
|
-
const ControlWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24087
|
+
const ControlWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$d]]);
|
|
24088
24088
|
var root$2 = _root;
|
|
24089
24089
|
var now$3 = function() {
|
|
24090
24090
|
return root$2.Date.now();
|
|
@@ -24656,18 +24656,19 @@ var utc$1 = { exports: {} };
|
|
|
24656
24656
|
})(utc$1);
|
|
24657
24657
|
var utcExports = utc$1.exports;
|
|
24658
24658
|
const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
|
|
24659
|
-
const _hoisted_1$
|
|
24660
|
-
const _hoisted_2$s =
|
|
24659
|
+
const _hoisted_1$D = { class: "w-full" };
|
|
24660
|
+
const _hoisted_2$s = ["for"];
|
|
24661
|
+
const _hoisted_3$k = {
|
|
24661
24662
|
key: 0,
|
|
24662
24663
|
class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"
|
|
24663
24664
|
};
|
|
24664
|
-
const
|
|
24665
|
-
const
|
|
24665
|
+
const _hoisted_4$j = ["placeholder", "name", "type", "autofocus", "data-error"];
|
|
24666
|
+
const _hoisted_5$g = {
|
|
24666
24667
|
key: 1,
|
|
24667
24668
|
class: "grid grid-flow-col gap-2 mt-1 justify-start"
|
|
24668
24669
|
};
|
|
24669
|
-
const
|
|
24670
|
-
const _sfc_main$
|
|
24670
|
+
const _hoisted_6$c = { class: "text-negative font-normal" };
|
|
24671
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24671
24672
|
...{
|
|
24672
24673
|
inheritAttrs: false
|
|
24673
24674
|
},
|
|
@@ -24684,7 +24685,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24684
24685
|
error: { default: "" },
|
|
24685
24686
|
variant: { default: config.value.clientTheme }
|
|
24686
24687
|
},
|
|
24687
|
-
emits: ["update:modelValue"],
|
|
24688
|
+
emits: ["update:modelValue", "clear"],
|
|
24688
24689
|
setup(__props, { emit: emit2 }) {
|
|
24689
24690
|
const props = __props;
|
|
24690
24691
|
const inputVariants = cva("", {
|
|
@@ -24703,17 +24704,21 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24703
24704
|
set: (val) => emit2("update:modelValue", val)
|
|
24704
24705
|
});
|
|
24705
24706
|
const error2 = computed(() => props.error);
|
|
24707
|
+
function clearInput() {
|
|
24708
|
+
input.value = "";
|
|
24709
|
+
emit2("clear");
|
|
24710
|
+
}
|
|
24706
24711
|
return (_ctx, _cache) => {
|
|
24707
|
-
return openBlock(), createElementBlock("div",
|
|
24712
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
24708
24713
|
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
24709
24714
|
key: 0,
|
|
24710
24715
|
for: _ctx.name,
|
|
24711
24716
|
class: normalizeClass({ "text-negative": error2.value, "font-semibold": unref(config).clientTheme === "jaguar" })
|
|
24712
|
-
}, toDisplayString(_ctx.label), 11,
|
|
24717
|
+
}, toDisplayString(_ctx.label), 11, _hoisted_2$s)) : createCommentVNode("", true),
|
|
24713
24718
|
createBaseVNode("div", {
|
|
24714
24719
|
class: normalizeClass(["relative", [{ "mt-1": _ctx.label }, "h-full"]])
|
|
24715
24720
|
}, [
|
|
24716
|
-
_ctx.prefix ? (openBlock(), createElementBlock("div",
|
|
24721
|
+
_ctx.prefix ? (openBlock(), createElementBlock("div", _hoisted_3$k, [
|
|
24717
24722
|
createVNode(unref(Icon), {
|
|
24718
24723
|
icon: _ctx.prefix,
|
|
24719
24724
|
height: "20"
|
|
@@ -24731,13 +24736,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24731
24736
|
type: _ctx.type,
|
|
24732
24737
|
autofocus: _ctx.autofocus,
|
|
24733
24738
|
"data-error": !!error2.value
|
|
24734
|
-
}, _ctx.$attrs), null, 16,
|
|
24739
|
+
}, _ctx.$attrs), null, 16, _hoisted_4$j), [
|
|
24735
24740
|
[vModelDynamic, input.value]
|
|
24736
24741
|
]),
|
|
24737
24742
|
_ctx.clearable && input.value ? (openBlock(), createElementBlock("div", {
|
|
24738
24743
|
key: 1,
|
|
24739
24744
|
class: "absolute inset-y-0 right-0 flex items-center my-auto pr-3 cursor-pointer",
|
|
24740
|
-
onClick:
|
|
24745
|
+
onClick: clearInput
|
|
24741
24746
|
}, [
|
|
24742
24747
|
createVNode(unref(Icon), {
|
|
24743
24748
|
icon: "mdi:close-circle",
|
|
@@ -24746,14 +24751,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24746
24751
|
})
|
|
24747
24752
|
])) : createCommentVNode("", true)
|
|
24748
24753
|
], 2),
|
|
24749
|
-
error2.value ? (openBlock(), createElementBlock("div",
|
|
24754
|
+
error2.value ? (openBlock(), createElementBlock("div", _hoisted_5$g, [
|
|
24750
24755
|
createVNode(unref(Icon), {
|
|
24751
24756
|
icon: "mdi:close-circle",
|
|
24752
24757
|
height: "20px",
|
|
24753
24758
|
width: "20px",
|
|
24754
24759
|
class: "text-negative mt-0.5"
|
|
24755
24760
|
}),
|
|
24756
|
-
createBaseVNode("p",
|
|
24761
|
+
createBaseVNode("p", _hoisted_6$c, toDisplayString(error2.value), 1)
|
|
24757
24762
|
])) : createCommentVNode("", true)
|
|
24758
24763
|
]);
|
|
24759
24764
|
};
|
|
@@ -24763,7 +24768,7 @@ const controlRenderer$i = defineComponent({
|
|
|
24763
24768
|
name: "Location",
|
|
24764
24769
|
components: {
|
|
24765
24770
|
ControlWrapper,
|
|
24766
|
-
WInput: _sfc_main$
|
|
24771
|
+
WInput: _sfc_main$k
|
|
24767
24772
|
},
|
|
24768
24773
|
props: {
|
|
24769
24774
|
...rendererProps()
|
|
@@ -24789,7 +24794,7 @@ const controlRenderer$i = defineComponent({
|
|
|
24789
24794
|
return { min, max, ...control, setFocus, selectedDate };
|
|
24790
24795
|
}
|
|
24791
24796
|
});
|
|
24792
|
-
const _hoisted_1$
|
|
24797
|
+
const _hoisted_1$C = { class: "title4-bold mb-4" };
|
|
24793
24798
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24794
24799
|
const _component_WInput = resolveComponent("WInput");
|
|
24795
24800
|
const _component_ControlWrapper = resolveComponent("ControlWrapper");
|
|
@@ -24800,7 +24805,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24800
24805
|
error: _ctx.control.errors
|
|
24801
24806
|
}), {
|
|
24802
24807
|
default: withCtx(() => [
|
|
24803
|
-
createBaseVNode("h3", _hoisted_1$
|
|
24808
|
+
createBaseVNode("h3", _hoisted_1$C, toDisplayString(_ctx.computedLabel), 1),
|
|
24804
24809
|
createVNode(_component_WInput, {
|
|
24805
24810
|
id: _ctx.control.id + "-input",
|
|
24806
24811
|
type: "datetime-local",
|
|
@@ -25113,23 +25118,24 @@ async function getLocationInfo(location2) {
|
|
|
25113
25118
|
const address = {
|
|
25114
25119
|
latitude: location2.lat(),
|
|
25115
25120
|
longitude: location2.lng(),
|
|
25116
|
-
|
|
25117
|
-
|
|
25121
|
+
formattedAddress: "",
|
|
25122
|
+
addressLine1: "",
|
|
25123
|
+
addressLine2: "",
|
|
25118
25124
|
city: "",
|
|
25119
25125
|
state: "",
|
|
25120
25126
|
country: "",
|
|
25121
|
-
|
|
25127
|
+
postalCode: ""
|
|
25122
25128
|
};
|
|
25123
25129
|
const resp = (_b = (_a = await geoCoder.geocode({
|
|
25124
25130
|
location: { lat: location2.lat(), lng: location2.lng() }
|
|
25125
25131
|
})) == null ? void 0 : _a.results) == null ? void 0 : _b[0];
|
|
25126
25132
|
if (!!resp && ["ROOFTOP", "RANGE_INTERPOLATED", "GEOMETRIC_CENTER"].includes(resp.geometry.location_type)) {
|
|
25127
|
-
address.
|
|
25128
|
-
address.
|
|
25133
|
+
address.formattedAddress = resp.formatted_address;
|
|
25134
|
+
address.addressLine1 = `${((_d2 = (_c = resp.address_components) == null ? void 0 : _c.find(({ types: types2 }) => types2.includes("route"))) == null ? void 0 : _d2.long_name) || ""}, ${((_f = (_e2 = resp.address_components) == null ? void 0 : _e2.find(({ types: types2 }) => types2.includes("street_number"))) == null ? void 0 : _f.long_name) || ""}`;
|
|
25129
25135
|
address.city = ((_h = (_g = resp.address_components) == null ? void 0 : _g.find(({ types: types2 }) => types2.includes("locality"))) == null ? void 0 : _h.long_name) || "";
|
|
25130
25136
|
address.state = ((_j = (_i = resp.address_components) == null ? void 0 : _i.find(({ types: types2 }) => types2.includes("administrative_area_level_1"))) == null ? void 0 : _j.long_name) || "";
|
|
25131
25137
|
address.country = ((_l = (_k = resp.address_components) == null ? void 0 : _k.find(({ types: types2 }) => types2.includes("country"))) == null ? void 0 : _l.long_name) || "";
|
|
25132
|
-
address.
|
|
25138
|
+
address.postalCode = ((_n = (_m = resp.address_components) == null ? void 0 : _m.find(({ types: types2 }) => types2.includes("postal_code"))) == null ? void 0 : _n.long_name) || "";
|
|
25133
25139
|
}
|
|
25134
25140
|
return address;
|
|
25135
25141
|
}
|
|
@@ -25359,7 +25365,7 @@ function useGoogleMaps(componentOrSelector, onPlaceChanged) {
|
|
|
25359
25365
|
placeChanged
|
|
25360
25366
|
};
|
|
25361
25367
|
}
|
|
25362
|
-
const _hoisted_1$
|
|
25368
|
+
const _hoisted_1$B = { role: "status" };
|
|
25363
25369
|
const _hoisted_2$r = /* @__PURE__ */ createBaseVNode("path", {
|
|
25364
25370
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
25365
25371
|
fill: "currentColor"
|
|
@@ -25373,7 +25379,7 @@ const _hoisted_4$i = [
|
|
|
25373
25379
|
_hoisted_3$j
|
|
25374
25380
|
];
|
|
25375
25381
|
const _hoisted_5$f = /* @__PURE__ */ createBaseVNode("span", { class: "sr-only" }, "Loading...", -1);
|
|
25376
|
-
const _sfc_main$
|
|
25382
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
25377
25383
|
__name: "Spinner",
|
|
25378
25384
|
props: {
|
|
25379
25385
|
color: { default: "primary" },
|
|
@@ -25381,7 +25387,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
25381
25387
|
},
|
|
25382
25388
|
setup(__props) {
|
|
25383
25389
|
return (_ctx, _cache) => {
|
|
25384
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25390
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
25385
25391
|
(openBlock(), createElementBlock("svg", {
|
|
25386
25392
|
"aria-hidden": "true",
|
|
25387
25393
|
class: normalizeClass([
|
|
@@ -25397,7 +25403,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
25397
25403
|
};
|
|
25398
25404
|
}
|
|
25399
25405
|
});
|
|
25400
|
-
const _sfc_main$
|
|
25406
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
25401
25407
|
__name: "GoogleAutocomplete",
|
|
25402
25408
|
props: {
|
|
25403
25409
|
address: { default: "" },
|
|
@@ -25435,33 +25441,48 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25435
25441
|
const returnData = {
|
|
25436
25442
|
latitude: 0,
|
|
25437
25443
|
longitude: 0,
|
|
25438
|
-
|
|
25439
|
-
|
|
25444
|
+
formattedAddress: "",
|
|
25445
|
+
addressLine1: "",
|
|
25446
|
+
addressLine2: "",
|
|
25440
25447
|
city: "",
|
|
25441
25448
|
state: "",
|
|
25442
25449
|
country: "",
|
|
25443
|
-
|
|
25450
|
+
postalCode: ""
|
|
25444
25451
|
};
|
|
25445
25452
|
if (!place.address_components) {
|
|
25446
25453
|
return returnData;
|
|
25447
25454
|
}
|
|
25448
|
-
returnData.
|
|
25455
|
+
returnData.addressLine1 = `${getFormatValue(place, "street_number", "short_name")} ${getFormatValue(
|
|
25449
25456
|
place,
|
|
25450
25457
|
"route",
|
|
25451
25458
|
"long_name"
|
|
25452
25459
|
)}`;
|
|
25453
|
-
returnData.city = getFormatValue(place, "postal_town", "long_name");
|
|
25460
|
+
returnData.city = getFormatValue(place, "postal_town", "long_name") || getFormatValue(place, "locality", "long_name") || getFormatValue(place, "administrative_area_level_1", "long_name");
|
|
25454
25461
|
returnData.state = getFormatValue(place, "administrative_area_level_1", "short_name");
|
|
25455
25462
|
returnData.country = getFormatValue(place, "country", "long_name");
|
|
25456
|
-
returnData.
|
|
25463
|
+
returnData.postalCode = getFormatValue(place, "postalCode", "short_name");
|
|
25457
25464
|
if (!((_a = place == null ? void 0 : place.geometry) == null ? void 0 : _a.location)) {
|
|
25458
25465
|
return returnData;
|
|
25459
25466
|
}
|
|
25460
25467
|
returnData.latitude = place.geometry.location.lat();
|
|
25461
25468
|
returnData.longitude = place.geometry.location.lng();
|
|
25462
|
-
returnData.
|
|
25469
|
+
returnData.formattedAddress = place.formatted_address ?? "";
|
|
25463
25470
|
return returnData;
|
|
25464
25471
|
}
|
|
25472
|
+
function clearLocation() {
|
|
25473
|
+
const returnData = {
|
|
25474
|
+
latitude: 0,
|
|
25475
|
+
longitude: 0,
|
|
25476
|
+
formattedAddress: "",
|
|
25477
|
+
addressLine1: "",
|
|
25478
|
+
addressLine2: "",
|
|
25479
|
+
city: "",
|
|
25480
|
+
state: "",
|
|
25481
|
+
country: "",
|
|
25482
|
+
postalCode: ""
|
|
25483
|
+
};
|
|
25484
|
+
emit2("placeChanged", returnData, null);
|
|
25485
|
+
}
|
|
25465
25486
|
watch(inputDiv, () => {
|
|
25466
25487
|
var _a;
|
|
25467
25488
|
const inputElement = (_a = inputDiv.value) == null ? void 0 : _a.getElementsByTagName("input")[0];
|
|
@@ -25496,7 +25517,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25496
25517
|
ref: inputDiv,
|
|
25497
25518
|
class: "w-full h-full"
|
|
25498
25519
|
}, [
|
|
25499
|
-
createVNode(_sfc_main$
|
|
25520
|
+
createVNode(_sfc_main$k, {
|
|
25500
25521
|
modelValue: autocompleteText.value,
|
|
25501
25522
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => autocompleteText.value = $event),
|
|
25502
25523
|
id: "google-autocomplete",
|
|
@@ -25504,14 +25525,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
25504
25525
|
placeholder: _ctx.placeholder,
|
|
25505
25526
|
prefix: _ctx.searchIcon,
|
|
25506
25527
|
class: "md:min-w-[320px] min-h-[2.75rem]",
|
|
25507
|
-
clearable: ""
|
|
25528
|
+
clearable: "",
|
|
25529
|
+
onClear: clearLocation
|
|
25508
25530
|
}, null, 8, ["modelValue", "label", "placeholder", "prefix"])
|
|
25509
25531
|
], 512);
|
|
25510
25532
|
};
|
|
25511
25533
|
}
|
|
25512
25534
|
});
|
|
25513
|
-
const _sfc_main$
|
|
25514
|
-
const _hoisted_1$
|
|
25535
|
+
const _sfc_main$h = {};
|
|
25536
|
+
const _hoisted_1$A = {
|
|
25515
25537
|
width: "121",
|
|
25516
25538
|
height: "120",
|
|
25517
25539
|
viewBox: "0 0 121 120",
|
|
@@ -25523,14 +25545,14 @@ const _hoisted_4$h = [
|
|
|
25523
25545
|
_hoisted_2$q
|
|
25524
25546
|
];
|
|
25525
25547
|
function _sfc_render$b(_ctx, _cache) {
|
|
25526
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
25548
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$A, _hoisted_4$h);
|
|
25527
25549
|
}
|
|
25528
|
-
const Location$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25550
|
+
const Location$1 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$b]]);
|
|
25529
25551
|
const Location$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25530
25552
|
__proto__: null,
|
|
25531
25553
|
default: Location$1
|
|
25532
25554
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
25533
|
-
const _hoisted_1$
|
|
25555
|
+
const _hoisted_1$z = {
|
|
25534
25556
|
key: 0,
|
|
25535
25557
|
class: "w-0 h-0 absolute"
|
|
25536
25558
|
};
|
|
@@ -25543,7 +25565,7 @@ const _hoisted_4$g = {
|
|
|
25543
25565
|
key: 1,
|
|
25544
25566
|
class: "p-6 rounded-b-custom border-gray-200 border-t"
|
|
25545
25567
|
};
|
|
25546
|
-
const _sfc_main$
|
|
25568
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
25547
25569
|
__name: "Modal",
|
|
25548
25570
|
props: {
|
|
25549
25571
|
modelValue: { type: Boolean, default: false },
|
|
@@ -25593,7 +25615,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
25593
25615
|
isOpen.value = false;
|
|
25594
25616
|
}
|
|
25595
25617
|
return (_ctx, _cache) => {
|
|
25596
|
-
return isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25618
|
+
return isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
25597
25619
|
_hoisted_2$p,
|
|
25598
25620
|
createBaseVNode("div", _hoisted_3$i, [
|
|
25599
25621
|
createVNode(Transition, {
|
|
@@ -25614,7 +25636,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
25614
25636
|
class: normalizeClass(["p-4 rounded-t-custom flex justify-between items-center", _ctx.$slots.header ? "border-b border-gray-200" : ""])
|
|
25615
25637
|
}, [
|
|
25616
25638
|
renderSlot(_ctx.$slots, "header"),
|
|
25617
|
-
createVNode(_sfc_main$
|
|
25639
|
+
createVNode(_sfc_main$n, {
|
|
25618
25640
|
onClick: closeModal,
|
|
25619
25641
|
type: "ghost"
|
|
25620
25642
|
}, {
|
|
@@ -25886,8 +25908,8 @@ function useBreakpoints() {
|
|
|
25886
25908
|
isDesktop
|
|
25887
25909
|
};
|
|
25888
25910
|
}
|
|
25889
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-
|
|
25890
|
-
const _hoisted_1$
|
|
25911
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-a663537d"), n2 = n2(), popScopeId(), n2);
|
|
25912
|
+
const _hoisted_1$y = {
|
|
25891
25913
|
class: "w-full",
|
|
25892
25914
|
id: "axitech-google-map"
|
|
25893
25915
|
};
|
|
@@ -25913,7 +25935,7 @@ const _hoisted_8$6 = { class: "rounded-t-custom flex justify-between items-cente
|
|
|
25913
25935
|
const _hoisted_9$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("h3", { class: "title2-bold" }, "Submit collision location", -1));
|
|
25914
25936
|
const _hoisted_10$2 = { class: "flex w-full justify-between gap-4 items-center" };
|
|
25915
25937
|
const _hoisted_11$2 = { class: "w-full h-full" };
|
|
25916
|
-
const _sfc_main$
|
|
25938
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
25917
25939
|
__name: "GoogleMap",
|
|
25918
25940
|
props: {
|
|
25919
25941
|
modelValue: {},
|
|
@@ -25982,11 +26004,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
25982
26004
|
});
|
|
25983
26005
|
return (_ctx, _cache) => {
|
|
25984
26006
|
var _a;
|
|
25985
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26007
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
25986
26008
|
!((_a = location2.value) == null ? void 0 : _a.latitude) ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
25987
26009
|
createVNode(Location$1),
|
|
25988
26010
|
createBaseVNode("div", _hoisted_3$h, [
|
|
25989
|
-
createVNode(_sfc_main$
|
|
26011
|
+
createVNode(_sfc_main$n, {
|
|
25990
26012
|
onClick: _cache[0] || (_cache[0] = ($event) => isMapOpen.value = true)
|
|
25991
26013
|
}, {
|
|
25992
26014
|
default: withCtx(() => [
|
|
@@ -26002,7 +26024,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26002
26024
|
id: "axitech-preview-map"
|
|
26003
26025
|
}, null, 512)
|
|
26004
26026
|
])),
|
|
26005
|
-
createVNode(_sfc_main$
|
|
26027
|
+
createVNode(_sfc_main$g, {
|
|
26006
26028
|
modelValue: isMapOpen.value,
|
|
26007
26029
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isMapOpen.value = $event),
|
|
26008
26030
|
size: "full",
|
|
@@ -26012,15 +26034,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26012
26034
|
var _a2, _b;
|
|
26013
26035
|
return [
|
|
26014
26036
|
isMapLoading.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
|
|
26015
|
-
createVNode(_sfc_main$
|
|
26037
|
+
createVNode(_sfc_main$j, { size: 12 })
|
|
26016
26038
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
26017
26039
|
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
26018
|
-
!isMapLoading.value ? (openBlock(), createBlock(_sfc_main$
|
|
26040
|
+
!isMapLoading.value ? (openBlock(), createBlock(_sfc_main$i, {
|
|
26019
26041
|
key: 0,
|
|
26020
|
-
address: (_a2 = location2.value) == null ? void 0 : _a2.
|
|
26042
|
+
address: (_a2 = location2.value) == null ? void 0 : _a2.formattedAddress,
|
|
26021
26043
|
onPlaceChanged: locationChange
|
|
26022
26044
|
}, null, 8, ["address"])) : createCommentVNode("", true),
|
|
26023
|
-
createVNode(_sfc_main$
|
|
26045
|
+
createVNode(_sfc_main$n, {
|
|
26024
26046
|
class: "p-2",
|
|
26025
26047
|
onClick: confirm,
|
|
26026
26048
|
disabled: !location2.value
|
|
@@ -26030,7 +26052,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26030
26052
|
]),
|
|
26031
26053
|
_: 1
|
|
26032
26054
|
}, 8, ["disabled"]),
|
|
26033
|
-
createVNode(_sfc_main$
|
|
26055
|
+
createVNode(_sfc_main$n, {
|
|
26034
26056
|
class: "p-2 text-fontPrimary bg-secondary border-transparent hover:border-primary",
|
|
26035
26057
|
onClick: cancelLocationSelect
|
|
26036
26058
|
}, {
|
|
@@ -26042,7 +26064,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26042
26064
|
])) : (openBlock(), createElementBlock("div", _hoisted_7$9, [
|
|
26043
26065
|
createBaseVNode("div", _hoisted_8$6, [
|
|
26044
26066
|
_hoisted_9$4,
|
|
26045
|
-
createVNode(_sfc_main$
|
|
26067
|
+
createVNode(_sfc_main$n, {
|
|
26046
26068
|
onClick: cancelLocationSelect,
|
|
26047
26069
|
type: "ghost"
|
|
26048
26070
|
}, {
|
|
@@ -26058,12 +26080,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26058
26080
|
})
|
|
26059
26081
|
]),
|
|
26060
26082
|
createBaseVNode("div", _hoisted_10$2, [
|
|
26061
|
-
!isMapLoading.value ? (openBlock(), createBlock(_sfc_main$
|
|
26083
|
+
!isMapLoading.value ? (openBlock(), createBlock(_sfc_main$i, {
|
|
26062
26084
|
key: 0,
|
|
26063
|
-
address: (_b = location2.value) == null ? void 0 : _b.
|
|
26085
|
+
address: (_b = location2.value) == null ? void 0 : _b.formattedAddress,
|
|
26064
26086
|
onPlaceChanged: locationChange
|
|
26065
26087
|
}, null, 8, ["address"])) : createCommentVNode("", true),
|
|
26066
|
-
createVNode(_sfc_main$
|
|
26088
|
+
createVNode(_sfc_main$n, {
|
|
26067
26089
|
class: "p-2",
|
|
26068
26090
|
onClick: confirm,
|
|
26069
26091
|
disabled: !location2.value
|
|
@@ -26093,15 +26115,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
26093
26115
|
};
|
|
26094
26116
|
}
|
|
26095
26117
|
});
|
|
26096
|
-
const
|
|
26097
|
-
const GoogleMap = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26118
|
+
const GoogleMap_vue_vue_type_style_index_0_scoped_a663537d_lang = "";
|
|
26119
|
+
const GoogleMap = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a663537d"]]);
|
|
26098
26120
|
const controlRenderer$h = defineComponent({
|
|
26099
26121
|
name: "Location",
|
|
26100
26122
|
components: {
|
|
26101
|
-
WButton: _sfc_main$
|
|
26123
|
+
WButton: _sfc_main$n,
|
|
26102
26124
|
Icon,
|
|
26103
26125
|
GoogleMap,
|
|
26104
|
-
Modal: _sfc_main$
|
|
26126
|
+
Modal: _sfc_main$g,
|
|
26105
26127
|
ControlWrapper
|
|
26106
26128
|
},
|
|
26107
26129
|
props: {
|
|
@@ -26130,7 +26152,7 @@ const controlRenderer$h = defineComponent({
|
|
|
26130
26152
|
};
|
|
26131
26153
|
}
|
|
26132
26154
|
});
|
|
26133
|
-
const _hoisted_1$
|
|
26155
|
+
const _hoisted_1$x = { class: "flex flex-col items-start w-full gap-3" };
|
|
26134
26156
|
const _hoisted_2$n = { class: "w-full flex justify-between items-center" };
|
|
26135
26157
|
const _hoisted_3$g = { class: "title4-bold" };
|
|
26136
26158
|
const _hoisted_4$e = {
|
|
@@ -26159,7 +26181,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26159
26181
|
error: _ctx.control.errors
|
|
26160
26182
|
}), {
|
|
26161
26183
|
default: withCtx(() => [
|
|
26162
|
-
createBaseVNode("section", _hoisted_1$
|
|
26184
|
+
createBaseVNode("section", _hoisted_1$x, [
|
|
26163
26185
|
renderSlot(_ctx.$slots, "header", {}, () => {
|
|
26164
26186
|
var _a, _b;
|
|
26165
26187
|
return [
|
|
@@ -26263,7 +26285,7 @@ const renderer$3 = defineComponent({
|
|
|
26263
26285
|
};
|
|
26264
26286
|
}
|
|
26265
26287
|
});
|
|
26266
|
-
const _hoisted_1$
|
|
26288
|
+
const _hoisted_1$w = { class: "accordion w-full" };
|
|
26267
26289
|
const _hoisted_2$m = { class: "flex flex-row gap-2 items-center justify-start" };
|
|
26268
26290
|
const _hoisted_3$f = { class: "body1-bold" };
|
|
26269
26291
|
const _hoisted_4$d = { class: "inner" };
|
|
@@ -26281,7 +26303,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26281
26303
|
"applied-options": _ctx.appliedOptions
|
|
26282
26304
|
}), {
|
|
26283
26305
|
default: withCtx(() => [
|
|
26284
|
-
createBaseVNode("div", _hoisted_1$
|
|
26306
|
+
createBaseVNode("div", _hoisted_1$w, [
|
|
26285
26307
|
createBaseVNode("div", {
|
|
26286
26308
|
class: "w-full flex flex-row justify-between flex-nowrap items-center",
|
|
26287
26309
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.toggleAccordion && _ctx.toggleAccordion(...args), ["prevent"]))
|
|
@@ -26332,8 +26354,8 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
26332
26354
|
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, new Error("Unknown variable dynamic import: " + path)));
|
|
26333
26355
|
});
|
|
26334
26356
|
};
|
|
26335
|
-
const _hoisted_1$
|
|
26336
|
-
const _sfc_main$
|
|
26357
|
+
const _hoisted_1$v = ["innerHTML"];
|
|
26358
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
26337
26359
|
__name: "WidgetIcon",
|
|
26338
26360
|
props: {
|
|
26339
26361
|
icon: {}
|
|
@@ -26349,7 +26371,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
26349
26371
|
return {
|
|
26350
26372
|
type: "component",
|
|
26351
26373
|
icon: markRaw(
|
|
26352
|
-
defineAsyncComponent(() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../claims-widget/components/illustration/Accident.vue": () => import("./Accident-
|
|
26374
|
+
defineAsyncComponent(() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../claims-widget/components/illustration/Accident.vue": () => import("./Accident-5754adae.mjs"), "../claims-widget/components/illustration/Location.vue": () => Promise.resolve().then(() => Location$2), "../claims-widget/components/illustration/SubmittedSuccessfully.vue": () => import("./SubmittedSuccessfully-d7e7aee4.mjs"), "../claims-widget/components/illustration/Unsupported.vue": () => import("./Unsupported-43b71131.mjs") }), `../claims-widget/components/illustration/${icon.replace(".vue", "")}.vue`))
|
|
26353
26375
|
)
|
|
26354
26376
|
};
|
|
26355
26377
|
}
|
|
@@ -26369,7 +26391,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
26369
26391
|
resolvedIcon.value.type === "component" ? (openBlock(), createBlock(resolveDynamicComponent(resolvedIcon.value.icon), { key: 0 })) : resolvedIcon.value.type === "svg" ? (openBlock(), createElementBlock("div", {
|
|
26370
26392
|
key: 1,
|
|
26371
26393
|
innerHTML: resolvedIcon.value.icon
|
|
26372
|
-
}, null, 8, _hoisted_1$
|
|
26394
|
+
}, null, 8, _hoisted_1$v)) : resolvedIcon.value.type === "iconify" ? (openBlock(), createBlock(unref(Icon), {
|
|
26373
26395
|
key: 2,
|
|
26374
26396
|
icon: resolvedIcon.value.icon,
|
|
26375
26397
|
height: "150"
|
|
@@ -26381,7 +26403,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
26381
26403
|
const renderer$2 = defineComponent({
|
|
26382
26404
|
components: {
|
|
26383
26405
|
ControlWrapper,
|
|
26384
|
-
WidgetIcon: _sfc_main$
|
|
26406
|
+
WidgetIcon: _sfc_main$e
|
|
26385
26407
|
},
|
|
26386
26408
|
props: {
|
|
26387
26409
|
...rendererProps()
|
|
@@ -26403,7 +26425,7 @@ const renderer$2 = defineComponent({
|
|
|
26403
26425
|
};
|
|
26404
26426
|
}
|
|
26405
26427
|
});
|
|
26406
|
-
const _hoisted_1$
|
|
26428
|
+
const _hoisted_1$u = { class: "flex flex-col items-center w-full gap-6" };
|
|
26407
26429
|
const _hoisted_2$l = { class: "title4-bold" };
|
|
26408
26430
|
const _hoisted_3$e = { class: "body1 text-fontSecondary-500" };
|
|
26409
26431
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -26415,7 +26437,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26415
26437
|
"applied-options": _ctx.appliedOptions
|
|
26416
26438
|
}), {
|
|
26417
26439
|
default: withCtx(() => [
|
|
26418
|
-
createBaseVNode("section", _hoisted_1$
|
|
26440
|
+
createBaseVNode("section", _hoisted_1$u, [
|
|
26419
26441
|
createVNode(_component_WidgetIcon, {
|
|
26420
26442
|
icon: _ctx.config.icon
|
|
26421
26443
|
}, null, 8, ["icon"]),
|
|
@@ -26430,7 +26452,7 @@ const HeroRenderer = /* @__PURE__ */ _export_sfc(renderer$2, [["render", _sfc_re
|
|
|
26430
26452
|
const controlRenderer$g = defineComponent({
|
|
26431
26453
|
components: {
|
|
26432
26454
|
ControlWrapper,
|
|
26433
|
-
WButton: _sfc_main$
|
|
26455
|
+
WButton: _sfc_main$n
|
|
26434
26456
|
},
|
|
26435
26457
|
props: {
|
|
26436
26458
|
...rendererProps()
|
|
@@ -26472,7 +26494,7 @@ const controlRenderer$g = defineComponent({
|
|
|
26472
26494
|
};
|
|
26473
26495
|
}
|
|
26474
26496
|
});
|
|
26475
|
-
const _hoisted_1$
|
|
26497
|
+
const _hoisted_1$t = { class: "title4-bold mb-4" };
|
|
26476
26498
|
const _hoisted_2$k = {
|
|
26477
26499
|
id: "widget-select-button",
|
|
26478
26500
|
class: "w-full flex flex-row items-center justify-center flex-wrap gap-6"
|
|
@@ -26487,7 +26509,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26487
26509
|
error: _ctx.control.errors
|
|
26488
26510
|
}), {
|
|
26489
26511
|
default: withCtx(() => [
|
|
26490
|
-
createBaseVNode("h3", _hoisted_1$
|
|
26512
|
+
createBaseVNode("h3", _hoisted_1$t, toDisplayString(_ctx.computedLabel), 1),
|
|
26491
26513
|
createBaseVNode("div", _hoisted_2$k, [
|
|
26492
26514
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels, (label, index2) => {
|
|
26493
26515
|
return openBlock(), createBlock(_component_WButton, {
|
|
@@ -26511,7 +26533,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26511
26533
|
}, 16, ["styles", "is-focused", "applied-options", "error"]);
|
|
26512
26534
|
}
|
|
26513
26535
|
const TupleRenderer = /* @__PURE__ */ _export_sfc(controlRenderer$g, [["render", _sfc_render$7]]);
|
|
26514
|
-
const _hoisted_1$
|
|
26536
|
+
const _hoisted_1$s = {
|
|
26515
26537
|
id: "widget-action-card",
|
|
26516
26538
|
class: "bg-gray-100 rounded-custom w-full h-full p-4 flex flex-col gap-3"
|
|
26517
26539
|
};
|
|
@@ -26523,7 +26545,7 @@ const _hoisted_3$d = {
|
|
|
26523
26545
|
const _hoisted_4$c = { class: "content body1 text-fontSecondary-500" };
|
|
26524
26546
|
const _hoisted_5$b = { class: "action" };
|
|
26525
26547
|
const _hoisted_6$8 = ["disabled"];
|
|
26526
|
-
const _sfc_main$
|
|
26548
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
26527
26549
|
__name: "ActionCard",
|
|
26528
26550
|
props: {
|
|
26529
26551
|
icon: {},
|
|
@@ -26535,7 +26557,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
26535
26557
|
emits: ["action"],
|
|
26536
26558
|
setup(__props, { emit: emit2 }) {
|
|
26537
26559
|
return (_ctx, _cache) => {
|
|
26538
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26560
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
26539
26561
|
createBaseVNode("div", _hoisted_2$j, [
|
|
26540
26562
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
|
|
26541
26563
|
_ctx.icon ? (openBlock(), createBlock(unref(Icon), {
|
|
@@ -41946,9 +41968,9 @@ class Compressor extends BasePlugin {
|
|
|
41946
41968
|
this.uppy.removePreProcessor(this.prepareUpload);
|
|
41947
41969
|
}
|
|
41948
41970
|
}
|
|
41949
|
-
const _hoisted_1$
|
|
41971
|
+
const _hoisted_1$r = { class: "title2-bold" };
|
|
41950
41972
|
const _hoisted_2$i = { class: "w-full h-full" };
|
|
41951
|
-
const _sfc_main$
|
|
41973
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
41952
41974
|
__name: "ImageUpload",
|
|
41953
41975
|
props: {
|
|
41954
41976
|
title: {},
|
|
@@ -41996,12 +42018,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
41996
42018
|
emit2("imagesAdded", [...previews.value.values()]);
|
|
41997
42019
|
}
|
|
41998
42020
|
return (_ctx, _cache) => {
|
|
41999
|
-
return openBlock(), createBlock(_sfc_main$
|
|
42021
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
42000
42022
|
size: unref(isMobile) ? "full" : "lg",
|
|
42001
42023
|
title: _ctx.title
|
|
42002
42024
|
}, {
|
|
42003
42025
|
header: withCtx(() => [
|
|
42004
|
-
createBaseVNode("h2", _hoisted_1$
|
|
42026
|
+
createBaseVNode("h2", _hoisted_1$r, toDisplayString(_ctx.title), 1)
|
|
42005
42027
|
]),
|
|
42006
42028
|
default: withCtx(() => [
|
|
42007
42029
|
createBaseVNode("div", _hoisted_2$i, [
|
|
@@ -42017,17 +42039,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
42017
42039
|
};
|
|
42018
42040
|
}
|
|
42019
42041
|
});
|
|
42020
|
-
const _hoisted_1$
|
|
42042
|
+
const _hoisted_1$q = { class: "flex flex-col items-start w-full" };
|
|
42021
42043
|
const _hoisted_2$h = { class: "title4-bold mb-3" };
|
|
42022
42044
|
const _hoisted_3$c = { class: "flex flex-row flex-nowrap w-full justify-start gap-5" };
|
|
42023
|
-
const _sfc_main$
|
|
42045
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
42024
42046
|
__name: "SectionWrapper",
|
|
42025
42047
|
props: {
|
|
42026
42048
|
title: {}
|
|
42027
42049
|
},
|
|
42028
42050
|
setup(__props) {
|
|
42029
42051
|
return (_ctx, _cache) => {
|
|
42030
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
42052
|
+
return openBlock(), createElementBlock("section", _hoisted_1$q, [
|
|
42031
42053
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
42032
42054
|
createBaseVNode("h3", _hoisted_2$h, toDisplayString(_ctx.title), 1)
|
|
42033
42055
|
]),
|
|
@@ -42040,10 +42062,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
42040
42062
|
});
|
|
42041
42063
|
const controlRenderer$f = defineComponent({
|
|
42042
42064
|
components: {
|
|
42043
|
-
WButton: _sfc_main$
|
|
42044
|
-
ActionCard: _sfc_main$
|
|
42045
|
-
ImageUpload: _sfc_main$
|
|
42046
|
-
SectionWrapper: _sfc_main$
|
|
42065
|
+
WButton: _sfc_main$n,
|
|
42066
|
+
ActionCard: _sfc_main$d,
|
|
42067
|
+
ImageUpload: _sfc_main$c,
|
|
42068
|
+
SectionWrapper: _sfc_main$b,
|
|
42047
42069
|
ControlWrapper,
|
|
42048
42070
|
Icon
|
|
42049
42071
|
},
|
|
@@ -42075,7 +42097,7 @@ const controlRenderer$f = defineComponent({
|
|
|
42075
42097
|
};
|
|
42076
42098
|
}
|
|
42077
42099
|
});
|
|
42078
|
-
const _hoisted_1$
|
|
42100
|
+
const _hoisted_1$p = { class: "w-full flex justify-between items-center" };
|
|
42079
42101
|
const _hoisted_2$g = { class: "title4-bold mb-4" };
|
|
42080
42102
|
const _hoisted_3$b = {
|
|
42081
42103
|
key: 1,
|
|
@@ -42099,7 +42121,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42099
42121
|
header: withCtx(() => {
|
|
42100
42122
|
var _a;
|
|
42101
42123
|
return [
|
|
42102
|
-
createBaseVNode("div", _hoisted_1$
|
|
42124
|
+
createBaseVNode("div", _hoisted_1$p, [
|
|
42103
42125
|
createBaseVNode("h3", _hoisted_2$g, toDisplayString(_ctx.imageSectionData.title), 1),
|
|
42104
42126
|
((_a = _ctx.previewImages) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_WButton, {
|
|
42105
42127
|
key: 0,
|
|
@@ -42164,9 +42186,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42164
42186
|
const ImageSectionRenderer = /* @__PURE__ */ _export_sfc(controlRenderer$f, [["render", _sfc_render$6]]);
|
|
42165
42187
|
const controlRenderer$e = defineComponent({
|
|
42166
42188
|
components: {
|
|
42167
|
-
WButton: _sfc_main$
|
|
42168
|
-
ActionCard: _sfc_main$
|
|
42169
|
-
SectionWrapper: _sfc_main$
|
|
42189
|
+
WButton: _sfc_main$n,
|
|
42190
|
+
ActionCard: _sfc_main$d,
|
|
42191
|
+
SectionWrapper: _sfc_main$b,
|
|
42170
42192
|
ControlWrapper,
|
|
42171
42193
|
Icon
|
|
42172
42194
|
},
|
|
@@ -42207,7 +42229,7 @@ const controlRenderer$e = defineComponent({
|
|
|
42207
42229
|
};
|
|
42208
42230
|
}
|
|
42209
42231
|
});
|
|
42210
|
-
const _hoisted_1$
|
|
42232
|
+
const _hoisted_1$o = { class: "w-full flex justify-between items-center" };
|
|
42211
42233
|
const _hoisted_2$f = { class: "title4-bold mb-4" };
|
|
42212
42234
|
const _hoisted_3$a = { class: "flex flex-row gap-3" };
|
|
42213
42235
|
const _hoisted_4$a = { class: "flex flex-row flex-nowrap w-full justify-start gap-5" };
|
|
@@ -42237,7 +42259,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42237
42259
|
class: "!mb-0"
|
|
42238
42260
|
}, {
|
|
42239
42261
|
header: withCtx(() => [
|
|
42240
|
-
createBaseVNode("div", _hoisted_1$
|
|
42262
|
+
createBaseVNode("div", _hoisted_1$o, [
|
|
42241
42263
|
createBaseVNode("h3", _hoisted_2$f, toDisplayString(_ctx.computedLabel), 1),
|
|
42242
42264
|
createVNode(Transition, { name: "slide-up" }, {
|
|
42243
42265
|
default: withCtx(() => [
|
|
@@ -42335,7 +42357,7 @@ const controlRenderer$d = defineComponent({
|
|
|
42335
42357
|
name: "RadioGroupControlRenderer",
|
|
42336
42358
|
components: {
|
|
42337
42359
|
ControlWrapper,
|
|
42338
|
-
WInput: _sfc_main$
|
|
42360
|
+
WInput: _sfc_main$k
|
|
42339
42361
|
},
|
|
42340
42362
|
props: {
|
|
42341
42363
|
...rendererProps()
|
|
@@ -42354,7 +42376,7 @@ const controlRenderer$d = defineComponent({
|
|
|
42354
42376
|
};
|
|
42355
42377
|
}
|
|
42356
42378
|
});
|
|
42357
|
-
const _hoisted_1$
|
|
42379
|
+
const _hoisted_1$n = { class: "title4-bold" };
|
|
42358
42380
|
const _hoisted_2$e = { class: "body1 text-fontSecondary500" };
|
|
42359
42381
|
const _hoisted_3$9 = { class: "mt-5" };
|
|
42360
42382
|
const _hoisted_4$9 = { class: "sr-only" };
|
|
@@ -42372,7 +42394,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42372
42394
|
}), {
|
|
42373
42395
|
default: withCtx(() => [
|
|
42374
42396
|
createBaseVNode("div", null, [
|
|
42375
|
-
createBaseVNode("label", _hoisted_1$
|
|
42397
|
+
createBaseVNode("label", _hoisted_1$n, toDisplayString(_ctx.computedLabel), 1),
|
|
42376
42398
|
createBaseVNode("p", _hoisted_2$e, toDisplayString(_ctx.control.description), 1),
|
|
42377
42399
|
createBaseVNode("fieldset", _hoisted_3$9, [
|
|
42378
42400
|
createBaseVNode("legend", _hoisted_4$9, toDisplayString(_ctx.computedLabel), 1),
|
|
@@ -42418,8 +42440,8 @@ const controlRenderer$c = defineComponent({
|
|
|
42418
42440
|
name: "BooleanControlRenderer",
|
|
42419
42441
|
components: {
|
|
42420
42442
|
ControlWrapper,
|
|
42421
|
-
SectionWrapper: _sfc_main$
|
|
42422
|
-
WInput: _sfc_main$
|
|
42443
|
+
SectionWrapper: _sfc_main$b,
|
|
42444
|
+
WInput: _sfc_main$k
|
|
42423
42445
|
},
|
|
42424
42446
|
props: {
|
|
42425
42447
|
...rendererProps()
|
|
@@ -42434,7 +42456,7 @@ const controlRenderer$c = defineComponent({
|
|
|
42434
42456
|
return { ...control, isChecked, onChange };
|
|
42435
42457
|
}
|
|
42436
42458
|
});
|
|
42437
|
-
const _hoisted_1$
|
|
42459
|
+
const _hoisted_1$m = { class: "sr-only" };
|
|
42438
42460
|
const _hoisted_2$d = { class: "space-y-5" };
|
|
42439
42461
|
const _hoisted_3$8 = { class: "relative flex items-start" };
|
|
42440
42462
|
const _hoisted_4$8 = { class: "flex h-6 items-center" };
|
|
@@ -42461,7 +42483,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42461
42483
|
}),
|
|
42462
42484
|
default: withCtx(() => [
|
|
42463
42485
|
createBaseVNode("fieldset", null, [
|
|
42464
|
-
createBaseVNode("legend", _hoisted_1$
|
|
42486
|
+
createBaseVNode("legend", _hoisted_1$m, toDisplayString(_ctx.computedLabel), 1),
|
|
42465
42487
|
createBaseVNode("div", _hoisted_2$d, [
|
|
42466
42488
|
createBaseVNode("div", _hoisted_3$8, [
|
|
42467
42489
|
createBaseVNode("div", _hoisted_4$8, [
|
|
@@ -42585,6 +42607,84 @@ function useOverlays(contact) {
|
|
|
42585
42607
|
capitaliseName
|
|
42586
42608
|
};
|
|
42587
42609
|
}
|
|
42610
|
+
const _hoisted_1$l = { class: "inner flex flex-col gap-4" };
|
|
42611
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
42612
|
+
__name: "Address",
|
|
42613
|
+
emits: ["place-changed"],
|
|
42614
|
+
setup(__props, { emit: emit2 }) {
|
|
42615
|
+
const address = ref$3({
|
|
42616
|
+
addressLine1: "",
|
|
42617
|
+
addressLine2: "",
|
|
42618
|
+
city: "",
|
|
42619
|
+
state: "",
|
|
42620
|
+
country: "",
|
|
42621
|
+
postalCode: "",
|
|
42622
|
+
latitude: 0,
|
|
42623
|
+
longitude: 0,
|
|
42624
|
+
formattedAddress: ""
|
|
42625
|
+
});
|
|
42626
|
+
function locationChange(place) {
|
|
42627
|
+
address.value = place;
|
|
42628
|
+
}
|
|
42629
|
+
watch(address, (val) => {
|
|
42630
|
+
emit2("place-changed", val);
|
|
42631
|
+
});
|
|
42632
|
+
return (_ctx, _cache) => {
|
|
42633
|
+
return openBlock(), createElementBlock("div", null, [
|
|
42634
|
+
createVNode(_sfc_main$i, {
|
|
42635
|
+
address: address.value.formattedAddress,
|
|
42636
|
+
label: "Address",
|
|
42637
|
+
placeholder: "",
|
|
42638
|
+
"search-icon": "",
|
|
42639
|
+
class: normalizeClass({ "mb-4": !!address.value.formattedAddress }),
|
|
42640
|
+
onPlaceChanged: locationChange
|
|
42641
|
+
}, null, 8, ["address", "class"]),
|
|
42642
|
+
createBaseVNode("div", {
|
|
42643
|
+
class: normalizeClass(["wrapper", { "is-open": !!address.value.formattedAddress }])
|
|
42644
|
+
}, [
|
|
42645
|
+
createBaseVNode("div", _hoisted_1$l, [
|
|
42646
|
+
createVNode(_sfc_main$k, {
|
|
42647
|
+
modelValue: address.value.addressLine1,
|
|
42648
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => address.value.addressLine1 = $event),
|
|
42649
|
+
name: "address_line1",
|
|
42650
|
+
label: "Address line 1 (street address, P.O. box)"
|
|
42651
|
+
}, null, 8, ["modelValue"]),
|
|
42652
|
+
createVNode(_sfc_main$k, {
|
|
42653
|
+
modelValue: address.value.addressLine2,
|
|
42654
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => address.value.addressLine2 = $event),
|
|
42655
|
+
name: "address_line2",
|
|
42656
|
+
label: "Address line 2 (apartment, suite, unit, building, floor)"
|
|
42657
|
+
}, null, 8, ["modelValue"]),
|
|
42658
|
+
createVNode(_sfc_main$k, {
|
|
42659
|
+
modelValue: address.value.city,
|
|
42660
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => address.value.city = $event),
|
|
42661
|
+
name: "City",
|
|
42662
|
+
label: "Town/City"
|
|
42663
|
+
}, null, 8, ["modelValue"]),
|
|
42664
|
+
createVNode(_sfc_main$k, {
|
|
42665
|
+
modelValue: address.value.postalCode,
|
|
42666
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => address.value.postalCode = $event),
|
|
42667
|
+
name: "postal_code",
|
|
42668
|
+
label: "Post code"
|
|
42669
|
+
}, null, 8, ["modelValue"]),
|
|
42670
|
+
createVNode(_sfc_main$k, {
|
|
42671
|
+
modelValue: address.value.state,
|
|
42672
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => address.value.state = $event),
|
|
42673
|
+
name: "state",
|
|
42674
|
+
label: "County/Region"
|
|
42675
|
+
}, null, 8, ["modelValue"]),
|
|
42676
|
+
createVNode(_sfc_main$k, {
|
|
42677
|
+
modelValue: address.value.country,
|
|
42678
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => address.value.country = $event),
|
|
42679
|
+
name: "country",
|
|
42680
|
+
label: "Country"
|
|
42681
|
+
}, null, 8, ["modelValue"])
|
|
42682
|
+
])
|
|
42683
|
+
], 2)
|
|
42684
|
+
]);
|
|
42685
|
+
};
|
|
42686
|
+
}
|
|
42687
|
+
});
|
|
42588
42688
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
42589
42689
|
__name: "DatePicker",
|
|
42590
42690
|
props: {
|
|
@@ -42656,7 +42756,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
42656
42756
|
}
|
|
42657
42757
|
);
|
|
42658
42758
|
return (_ctx, _cache) => {
|
|
42659
|
-
return openBlock(), createBlock(_sfc_main$
|
|
42759
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
42660
42760
|
modelValue: date.value,
|
|
42661
42761
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date.value = $event),
|
|
42662
42762
|
type: "date",
|
|
@@ -46414,7 +46514,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
46414
46514
|
return (_ctx, _cache) => {
|
|
46415
46515
|
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
46416
46516
|
_hoisted_2$b,
|
|
46417
|
-
createVNode(_sfc_main$
|
|
46517
|
+
createVNode(_sfc_main$k, {
|
|
46418
46518
|
modelValue: unref(contactDetails).vehicle.licensePlate,
|
|
46419
46519
|
"onUpdate:modelValue": [
|
|
46420
46520
|
_cache[0] || (_cache[0] = ($event) => unref(contactDetails).vehicle.licensePlate = $event),
|
|
@@ -46428,7 +46528,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
46428
46528
|
error: unref(licensePlateError)
|
|
46429
46529
|
}, null, 8, ["modelValue", "error", "onUpdate:modelValue"]),
|
|
46430
46530
|
_hoisted_3$7,
|
|
46431
|
-
createVNode(_sfc_main$
|
|
46531
|
+
createVNode(_sfc_main$k, {
|
|
46432
46532
|
modelValue: unref(contactDetails).firstName,
|
|
46433
46533
|
"onUpdate:modelValue": [
|
|
46434
46534
|
_cache[1] || (_cache[1] = ($event) => unref(contactDetails).firstName = $event),
|
|
@@ -46438,7 +46538,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
46438
46538
|
name: "firstName",
|
|
46439
46539
|
label: "First name"
|
|
46440
46540
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
46441
|
-
createVNode(_sfc_main$
|
|
46541
|
+
createVNode(_sfc_main$k, {
|
|
46442
46542
|
modelValue: unref(contactDetails).lastName,
|
|
46443
46543
|
"onUpdate:modelValue": [
|
|
46444
46544
|
_cache[2] || (_cache[2] = ($event) => unref(contactDetails).lastName = $event),
|
|
@@ -46448,7 +46548,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
46448
46548
|
name: "lastName",
|
|
46449
46549
|
label: "Last name"
|
|
46450
46550
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
46451
|
-
createVNode(_sfc_main$
|
|
46551
|
+
createVNode(_sfc_main$k, {
|
|
46452
46552
|
modelValue: unref(contactDetails).email,
|
|
46453
46553
|
"onUpdate:modelValue": [
|
|
46454
46554
|
_cache[3] || (_cache[3] = ($event) => unref(contactDetails).email = $event),
|
|
@@ -46467,22 +46567,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
46467
46567
|
onError: unref(setError)
|
|
46468
46568
|
}, null, 8, ["phone", "onPhoneChanged", "onError"]),
|
|
46469
46569
|
_hoisted_4$7,
|
|
46470
|
-
createVNode(_sfc_main$
|
|
46471
|
-
address: unref(contactDetails).address.formatted_address,
|
|
46472
|
-
label: "Address",
|
|
46473
|
-
placeholder: "",
|
|
46474
|
-
"search-icon": "",
|
|
46475
|
-
onPlaceChanged: unref(locationChange)
|
|
46476
|
-
}, null, 8, ["address", "onPlaceChanged"]),
|
|
46570
|
+
createVNode(_sfc_main$a, { onPlaceChanged: unref(locationChange) }, null, 8, ["onPlaceChanged"]),
|
|
46477
46571
|
_hoisted_5$7,
|
|
46478
|
-
createVNode(_sfc_main$
|
|
46572
|
+
createVNode(_sfc_main$k, {
|
|
46479
46573
|
modelValue: unref(contactDetails).insurance.provider,
|
|
46480
46574
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(contactDetails).insurance.provider = $event),
|
|
46481
46575
|
type: "text",
|
|
46482
46576
|
name: "insurance",
|
|
46483
46577
|
label: "Insurance Provider"
|
|
46484
46578
|
}, null, 8, ["modelValue"]),
|
|
46485
|
-
createVNode(_sfc_main$
|
|
46579
|
+
createVNode(_sfc_main$k, {
|
|
46486
46580
|
modelValue: unref(contactDetails).insurance.policy,
|
|
46487
46581
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(contactDetails).insurance.policy = $event),
|
|
46488
46582
|
type: "text",
|
|
@@ -46543,7 +46637,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
46543
46637
|
});
|
|
46544
46638
|
return (_ctx, _cache) => {
|
|
46545
46639
|
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
46546
|
-
createVNode(_sfc_main$
|
|
46640
|
+
createVNode(_sfc_main$k, {
|
|
46547
46641
|
modelValue: unref(contactDetails).firstName,
|
|
46548
46642
|
"onUpdate:modelValue": [
|
|
46549
46643
|
_cache[0] || (_cache[0] = ($event) => unref(contactDetails).firstName = $event),
|
|
@@ -46553,7 +46647,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
46553
46647
|
name: "firstName",
|
|
46554
46648
|
label: "First name"
|
|
46555
46649
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
46556
|
-
createVNode(_sfc_main$
|
|
46650
|
+
createVNode(_sfc_main$k, {
|
|
46557
46651
|
modelValue: unref(contactDetails).lastName,
|
|
46558
46652
|
"onUpdate:modelValue": [
|
|
46559
46653
|
_cache[1] || (_cache[1] = ($event) => unref(contactDetails).lastName = $event),
|
|
@@ -46563,7 +46657,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
46563
46657
|
name: "lastName",
|
|
46564
46658
|
label: "Last name"
|
|
46565
46659
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
46566
|
-
createVNode(_sfc_main$
|
|
46660
|
+
createVNode(_sfc_main$k, {
|
|
46567
46661
|
modelValue: unref(contactDetails).email,
|
|
46568
46662
|
"onUpdate:modelValue": [
|
|
46569
46663
|
_cache[2] || (_cache[2] = ($event) => unref(contactDetails).email = $event),
|
|
@@ -46582,13 +46676,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
46582
46676
|
onError: unref(setError)
|
|
46583
46677
|
}, null, 8, ["phone", "onPhoneChanged", "onError"]),
|
|
46584
46678
|
_hoisted_2$a,
|
|
46585
|
-
createVNode(_sfc_main$
|
|
46586
|
-
address: unref(contactDetails).address.formatted_address,
|
|
46587
|
-
label: "Address",
|
|
46588
|
-
placeholder: "",
|
|
46589
|
-
"search-icon": "",
|
|
46590
|
-
onPlaceChanged: unref(locationChange)
|
|
46591
|
-
}, null, 8, ["address", "onPlaceChanged"])
|
|
46679
|
+
createVNode(_sfc_main$a, { onPlaceChanged: unref(locationChange) }, null, 8, ["onPlaceChanged"])
|
|
46592
46680
|
]);
|
|
46593
46681
|
};
|
|
46594
46682
|
}
|
|
@@ -46640,12 +46728,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
46640
46728
|
address: {
|
|
46641
46729
|
latitude: 0,
|
|
46642
46730
|
longitude: 0,
|
|
46643
|
-
|
|
46644
|
-
|
|
46731
|
+
formattedAddress: "",
|
|
46732
|
+
addressLine1: "",
|
|
46733
|
+
addressLine2: "",
|
|
46645
46734
|
city: "",
|
|
46646
46735
|
state: "",
|
|
46647
46736
|
country: "",
|
|
46648
|
-
|
|
46737
|
+
postalCode: ""
|
|
46649
46738
|
},
|
|
46650
46739
|
type: "witness"
|
|
46651
46740
|
};
|
|
@@ -46721,14 +46810,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
46721
46810
|
emit2("close");
|
|
46722
46811
|
}
|
|
46723
46812
|
return (_ctx, _cache) => {
|
|
46724
|
-
return openBlock(), createBlock(_sfc_main$
|
|
46813
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
46725
46814
|
id: "person-modal",
|
|
46726
46815
|
size: unref(isMobile) ? "full" : "lg",
|
|
46727
46816
|
title: _ctx.title
|
|
46728
46817
|
}, createSlots({
|
|
46729
46818
|
header: withCtx(() => [
|
|
46730
46819
|
createBaseVNode("div", null, [
|
|
46731
|
-
!isTypeSelected.value || !!_ctx.person ? (openBlock(), createElementBlock("h2", _hoisted_1$h, toDisplayString(!!_ctx.person ? `Edit ${thirdParty.value.type} details` : _ctx.title), 1)) : (openBlock(), createBlock(_sfc_main$
|
|
46820
|
+
!isTypeSelected.value || !!_ctx.person ? (openBlock(), createElementBlock("h2", _hoisted_1$h, toDisplayString(!!_ctx.person ? `Edit ${thirdParty.value.type} details` : _ctx.title), 1)) : (openBlock(), createBlock(_sfc_main$n, {
|
|
46732
46821
|
key: 1,
|
|
46733
46822
|
type: "ghost",
|
|
46734
46823
|
class: "items-center",
|
|
@@ -46750,7 +46839,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
46750
46839
|
_ctx.type === "third party" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
46751
46840
|
!isTypeSelected.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
46752
46841
|
(openBlock(true), createElementBlock(Fragment, null, renderList(thirdPartyOptions.value.filter(({ disabled }) => !disabled), (option, index2) => {
|
|
46753
|
-
return openBlock(), createBlock(_sfc_main$
|
|
46842
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
46754
46843
|
key: index2,
|
|
46755
46844
|
type: "ghost",
|
|
46756
46845
|
class: "w-full border border-gray-200 rounded-custom p-4 gap-4",
|
|
@@ -46797,7 +46886,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
46797
46886
|
name: "footer",
|
|
46798
46887
|
fn: withCtx(() => [
|
|
46799
46888
|
createBaseVNode("div", _hoisted_8$4, [
|
|
46800
|
-
createVNode(_sfc_main$
|
|
46889
|
+
createVNode(_sfc_main$n, {
|
|
46801
46890
|
class: "bg-primary text-white action2-bold px-12 flex flex-nowrap gap-2 justify-center items-center",
|
|
46802
46891
|
disabled: isError2.value,
|
|
46803
46892
|
onClick: submit
|
|
@@ -46847,7 +46936,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
46847
46936
|
},
|
|
46848
46937
|
emits: ["edit", "delete"],
|
|
46849
46938
|
setup(__props, { emit: emit2 }) {
|
|
46850
|
-
const Modal = defineAsyncComponent(() => import("./Modal-
|
|
46939
|
+
const Modal = defineAsyncComponent(() => import("./Modal-7d8352ec.mjs"));
|
|
46851
46940
|
const isOpenDeleteModal = ref$3(false);
|
|
46852
46941
|
const isShowMore = ref$3(false);
|
|
46853
46942
|
const icons = {
|
|
@@ -46884,7 +46973,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
46884
46973
|
])
|
|
46885
46974
|
]),
|
|
46886
46975
|
createBaseVNode("div", _hoisted_5$5, [
|
|
46887
|
-
createVNode(_sfc_main$
|
|
46976
|
+
createVNode(_sfc_main$n, { type: "ghost" }, {
|
|
46888
46977
|
default: withCtx(() => [
|
|
46889
46978
|
createVNode(unref(Icon), {
|
|
46890
46979
|
icon: "ci:edit-pencil-line-02",
|
|
@@ -46895,7 +46984,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
46895
46984
|
]),
|
|
46896
46985
|
_: 1
|
|
46897
46986
|
}),
|
|
46898
|
-
createVNode(_sfc_main$
|
|
46987
|
+
createVNode(_sfc_main$n, { type: "ghost" }, {
|
|
46899
46988
|
default: withCtx(() => [
|
|
46900
46989
|
createVNode(unref(Icon), {
|
|
46901
46990
|
icon: "mdi:trash-can-outline",
|
|
@@ -46934,7 +47023,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
46934
47023
|
class: "text-primary",
|
|
46935
47024
|
height: "24px"
|
|
46936
47025
|
}),
|
|
46937
|
-
createBaseVNode("p", _hoisted_12$1, toDisplayString(((_b = _ctx.person.address) == null ? void 0 : _b.
|
|
47026
|
+
createBaseVNode("p", _hoisted_12$1, toDisplayString(((_b = _ctx.person.address) == null ? void 0 : _b.formattedAddress) || "Unknown"), 1)
|
|
46938
47027
|
]),
|
|
46939
47028
|
!!_ctx.person.vehicle ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
46940
47029
|
createVNode(unref(Icon), {
|
|
@@ -46956,7 +47045,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
46956
47045
|
]),
|
|
46957
47046
|
footer: withCtx(() => [
|
|
46958
47047
|
createBaseVNode("div", _hoisted_17$1, [
|
|
46959
|
-
createVNode(_sfc_main$
|
|
47048
|
+
createVNode(_sfc_main$n, {
|
|
46960
47049
|
class: "bg-primary text-white px-12",
|
|
46961
47050
|
onClick: deletePerson
|
|
46962
47051
|
}, {
|
|
@@ -46979,12 +47068,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
46979
47068
|
const controlRenderer$b = defineComponent({
|
|
46980
47069
|
components: {
|
|
46981
47070
|
PersonCard: _sfc_main$4,
|
|
46982
|
-
ActionCard: _sfc_main$
|
|
47071
|
+
ActionCard: _sfc_main$d,
|
|
46983
47072
|
ThirdPartyOverlay: _sfc_main$5,
|
|
46984
|
-
SectionWrapper: _sfc_main$
|
|
47073
|
+
SectionWrapper: _sfc_main$b,
|
|
46985
47074
|
ControlWrapper,
|
|
46986
47075
|
Icon,
|
|
46987
|
-
WButton: _sfc_main$
|
|
47076
|
+
WButton: _sfc_main$n
|
|
46988
47077
|
},
|
|
46989
47078
|
props: {
|
|
46990
47079
|
...rendererProps()
|
|
@@ -47223,7 +47312,7 @@ const InvolvedPersonsRenderer = /* @__PURE__ */ _export_sfc(controlRenderer$b, [
|
|
|
47223
47312
|
const renderer$1 = defineComponent({
|
|
47224
47313
|
components: {
|
|
47225
47314
|
ControlWrapper,
|
|
47226
|
-
WidgetIcon: _sfc_main$
|
|
47315
|
+
WidgetIcon: _sfc_main$e,
|
|
47227
47316
|
Icon
|
|
47228
47317
|
},
|
|
47229
47318
|
props: {
|
|
@@ -47296,7 +47385,7 @@ const UnsupportedStepRenderer = /* @__PURE__ */ _export_sfc(renderer$1, [["rende
|
|
|
47296
47385
|
const renderer = defineComponent({
|
|
47297
47386
|
components: {
|
|
47298
47387
|
ControlWrapper,
|
|
47299
|
-
WidgetIcon: _sfc_main$
|
|
47388
|
+
WidgetIcon: _sfc_main$e,
|
|
47300
47389
|
Icon
|
|
47301
47390
|
},
|
|
47302
47391
|
props: {
|
|
@@ -48832,7 +48921,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48832
48921
|
return (_ctx, _cache) => {
|
|
48833
48922
|
var _a, _b, _c, _d2, _e2;
|
|
48834
48923
|
return openBlock(), createElementBlock("section", _hoisted_1$2, [
|
|
48835
|
-
_ctx.isBackButtonVisible ? (openBlock(), createBlock(_sfc_main$
|
|
48924
|
+
_ctx.isBackButtonVisible ? (openBlock(), createBlock(_sfc_main$n, {
|
|
48836
48925
|
key: 0,
|
|
48837
48926
|
disabled: _ctx.disabled,
|
|
48838
48927
|
class: "group mb-10 ml-0 self-start hover:bg-white",
|
|
@@ -48856,7 +48945,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48856
48945
|
onError,
|
|
48857
48946
|
"validation-mode": validationMode.value
|
|
48858
48947
|
}, null, 8, ["data", "schema", "uischema", "validation-mode"]),
|
|
48859
|
-
((_a = _ctx.options) == null ? void 0 : _a.submit) ? (openBlock(), createBlock(_sfc_main$
|
|
48948
|
+
((_a = _ctx.options) == null ? void 0 : _a.submit) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
48860
48949
|
key: 1,
|
|
48861
48950
|
class: "bg-primary title2-bold text-white w-full flex justify-center flex-nowrap gap-2 items-center",
|
|
48862
48951
|
loading: isLoading.value,
|
|
@@ -48999,7 +49088,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
48999
49088
|
default: withCtx(() => {
|
|
49000
49089
|
var _a2, _b, _c, _d2, _e2, _f, _g, _h, _i;
|
|
49001
49090
|
return [
|
|
49002
|
-
selectedStep.value === 0 ? (openBlock(), createBlock(_sfc_main$
|
|
49091
|
+
selectedStep.value === 0 ? (openBlock(), createBlock(_sfc_main$m, {
|
|
49003
49092
|
key: `${selectedStep.value}-${selectedCard.value.title}`,
|
|
49004
49093
|
cards: selectedCard.value.components,
|
|
49005
49094
|
title: selectedCard.value.title,
|
|
@@ -49381,7 +49470,7 @@ export {
|
|
|
49381
49470
|
CLAIMS_WIDGET_ID as C,
|
|
49382
49471
|
_export_sfc as _,
|
|
49383
49472
|
createStaticVNode as a,
|
|
49384
|
-
_sfc_main$
|
|
49473
|
+
_sfc_main$g as b,
|
|
49385
49474
|
createElementBlock as c,
|
|
49386
49475
|
applyConfig as d,
|
|
49387
49476
|
install as i,
|