adp-web-components 0.0.13 → 0.0.15
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/cjs/{loader-baf2418b.js → Loading-20e4ef35.js} +9 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +3 -4
- package/dist/cjs/distributor-lookup.cjs.entry.js +3 -4
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +1046 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +5 -5
- package/dist/cjs/form-input.cjs.entry.js +2 -2
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2 -2
- package/dist/cjs/{index-d4b5214c.js → index-97b8da6d.js} +289 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +3 -4
- package/dist/cjs/shift-components.cjs.js +2 -2
- package/dist/cjs/vehicle-lookup.cjs.entry.js +133 -0
- package/dist/collection/collection-manifest.json +6 -5
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -1
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +2 -2
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -1
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +3 -3
- package/dist/collection/components/form-input/form-input.js +1 -1
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -1
- package/dist/collection/components/paint-thickness/paint-thickness.js +3 -3
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +1 -1
- package/dist/collection/components/service-history/service-history.css +1 -1
- package/dist/collection/components/service-history/service-history.js +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +3 -3
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +244 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +1 -1
- package/dist/collection/components/warranty-details/warranty-details.css +1 -1
- package/dist/collection/components/warranty-details/warranty-details.js +1 -1
- package/dist/collection/global/lib/validate-vin.js +62 -0
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/dynamic-redeem.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/general-inquiry-form.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-05871c28.js +5 -0
- package/dist/components/p-23551e81.js +5 -0
- package/dist/components/p-325b6857.js +5 -0
- package/dist/components/{p-50f73226.js → p-3bf0339d.js} +1 -1
- package/dist/components/p-514c4736.js +5 -0
- package/dist/components/{p-2b0cc0c6.js → p-8385e385.js} +1 -1
- package/dist/components/p-be0a5ab5.js +5 -0
- package/dist/components/p-c8eef708.js +5 -0
- package/dist/components/p-da533bd7.js +5 -0
- package/dist/components/p-e46b126e.js +5 -0
- package/dist/components/p-f1ffc23d.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.d.ts +11 -0
- package/dist/components/vehicle-lookup.js +5 -0
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/{loader-027b88af.js → Loading-d050617c.js} +9 -1
- package/dist/esm/dead-stock-lookup.entry.js +3 -4
- package/dist/esm/distributor-lookup.entry.js +3 -4
- package/dist/esm/dynamic-claim_6.entry.js +1037 -0
- package/dist/esm/dynamic-redeem.entry.js +5 -5
- package/dist/esm/form-input.entry.js +2 -2
- package/dist/esm/general-inquiry-form.entry.js +2 -2
- package/dist/esm/{index-ef54644b.js → index-ff1dab22.js} +289 -8
- package/dist/esm/loader.js +3 -3
- package/dist/esm/manufacturer-lookup.entry.js +3 -4
- package/dist/esm/shift-components.js +3 -3
- package/dist/esm/vehicle-lookup.entry.js +129 -0
- package/dist/shift-components/{p-894e7518.entry.js → p-15e82b1a.entry.js} +1 -1
- package/dist/shift-components/p-1a727cfd.entry.js +5 -0
- package/dist/shift-components/p-2bb4415e.entry.js +5 -0
- package/dist/shift-components/p-3f3b41b4.entry.js +5 -0
- package/dist/shift-components/{p-8e818568.entry.js → p-4c3f2850.entry.js} +1 -1
- package/dist/shift-components/p-4ca95c3d.entry.js +5 -0
- package/dist/shift-components/p-65939a2f.js +5 -0
- package/dist/shift-components/p-8b198a04.entry.js +5 -0
- package/dist/shift-components/p-d577db71.entry.js +5 -0
- package/dist/shift-components/p-f37b60d5.js +6 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +23 -0
- package/dist/types/components.d.ts +37 -0
- package/dist/types/global/lib/validate-vin.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +2 -91
- package/dist/cjs/Loading-ee1a2ceb.js +0 -16
- package/dist/cjs/dynamic-claim.cjs.entry.js +0 -306
- package/dist/cjs/image-expansion-a9c9c6f7.js +0 -77
- package/dist/cjs/paint-thickness.cjs.entry.js +0 -118
- package/dist/cjs/service-history.cjs.entry.js +0 -103
- package/dist/cjs/vehicle-accessories.cjs.entry.js +0 -122
- package/dist/cjs/vehicle-specification.cjs.entry.js +0 -98
- package/dist/cjs/vehicleInformation-35c470fc.js +0 -52
- package/dist/cjs/warranty-details.cjs.entry.js +0 -257
- package/dist/components/p-4dc47f5f.js +0 -5
- package/dist/components/p-8375923d.js +0 -5
- package/dist/components/p-a454210b.js +0 -5
- package/dist/esm/Loading-61648252.js +0 -14
- package/dist/esm/dynamic-claim.entry.js +0 -302
- package/dist/esm/image-expansion-08c4bf0d.js +0 -73
- package/dist/esm/paint-thickness.entry.js +0 -114
- package/dist/esm/service-history.entry.js +0 -99
- package/dist/esm/vehicle-accessories.entry.js +0 -118
- package/dist/esm/vehicle-specification.entry.js +0 -94
- package/dist/esm/vehicleInformation-f7290628.js +0 -50
- package/dist/esm/warranty-details.entry.js +0 -253
- package/dist/shift-components/p-65e6ab8e.js +0 -5
- package/dist/shift-components/p-6b21ce2d.entry.js +0 -5
- package/dist/shift-components/p-7d85e912.entry.js +0 -5
- package/dist/shift-components/p-7f258017.entry.js +0 -5
- package/dist/shift-components/p-9653e992.entry.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-c4fad245.js +0 -5
- package/dist/shift-components/p-ca1e2e5b.entry.js +0 -5
- package/dist/shift-components/p-d1b9cd93.entry.js +0 -5
- package/dist/shift-components/p-d5ff7544.js +0 -5
- package/dist/shift-components/p-d6f40c8d.entry.js +0 -5
- package/dist/shift-components/p-e05acce1.entry.js +0 -5
- package/dist/shift-components/p-e97316d2.js +0 -6
- package/dist/shift-components/p-faa8070a.entry.js +0 -5
- package/dist/shift-components/p-feb3df85.entry.js +0 -5
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index = require('./index-d4b5214c.js');
|
|
10
|
-
const cn = require('./cn-f559f9e5.js');
|
|
11
|
-
const loader = require('./loader-baf2418b.js');
|
|
12
|
-
const vehicleInformation = require('./vehicleInformation-35c470fc.js');
|
|
13
|
-
|
|
14
|
-
const loaderSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIKICAgIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1sb2FkZXIiPgogICAgPHBhdGggZD0iTTEyIDJ2NCIgLz4KICAgIDxwYXRoIGQ9Im0xNi4yIDcuOCAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTE4IDEyaDQiIC8+CiAgICA8cGF0aCBkPSJtMTYuMiAxNi4yIDIuOSAyLjkiIC8+CiAgICA8cGF0aCBkPSJNMTIgMTh2NCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgMTkuMSAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTIgMTJoNCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgNC45IDIuOSAyLjkiIC8+Cjwvc3ZnPg==';
|
|
15
|
-
|
|
16
|
-
function Loading({ isLoading }) {
|
|
17
|
-
return (index.h("div", { class: cn.cn('loading-spinner absolute', { hide: !isLoading }) },
|
|
18
|
-
index.h("img", { class: "spin", src: loaderSvg })));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const checkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxwYXRoIGZpbGw9IiMwYjM1MjEiCiAgICAgICAgZD0iTTI1NiA1MTJBMjU2IDI1NiAwIDEgMCAyNTYgMGEyNTYgMjU2IDAgMSAwIDAgNTEyek0zNjkgMjA5TDI0MSAzMzdjLTkuNCA5LjQtMjQuNiA5LjQtMzMuOSAwbC02NC02NGMtOS40LTkuNC05LjQtMjQuNiAwLTMzLjlzMjQuNi05LjQgMzMuOSAwbDQ3IDQ3TDMzNSAxNzVjOS40LTkuNCAyNC42LTkuNCAzMy45IDBzOS40IDI0LjYgMCAzMy45eiIgLz4KPC9zdmc+';
|
|
22
|
-
|
|
23
|
-
const xMarkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KICAgIDxwYXRoIGZpbGw9IiM1ODE1MWMiCiAgICAgICAgZD0iTTI1NiA1MTJBMjU2IDI1NiAwIDEgMCAyNTYgMGEyNTYgMjU2IDAgMSAwIDAgNTEyek0xNzUgMTc1YzkuNC05LjQgMjQuNi05LjQgMzMuOSAwbDQ3IDQ3IDQ3LTQ3YzkuNC05LjQgMjQuNi05LjQgMzMuOSAwczkuNCAyNC42IDAgMzMuOWwtNDcgNDcgNDcgNDdjOS40IDkuNCA5LjQgMjQuNiAwIDMzLjlzLTI0LjYgOS40LTMzLjkgMGwtNDctNDctNDcgNDdjLTkuNCA5LjQtMjQuNiA5LjQtMzMuOSAwcy05LjQtMjQuNiAwLTMzLjlsNDctNDctNDctNDdjLTkuNC05LjQtOS40LTI0LjYgMC0zMy45eiIgLz4KPC9zdmc+';
|
|
24
|
-
|
|
25
|
-
function StatusCard({ desc, className, from, to, state = 'idle', icon = true }) {
|
|
26
|
-
return (index.h("div", { class: cn.cn('card', className, `${state}-card`) },
|
|
27
|
-
icon && state === 'reject' && index.h("img", { src: xMarkSvg }),
|
|
28
|
-
icon && state === 'warning' && index.h("img", { src: xMarkSvg }),
|
|
29
|
-
icon && state === 'success' && index.h("img", { src: checkSvg }),
|
|
30
|
-
from && (index.h("p", { class: "no-padding" },
|
|
31
|
-
index.h("span", { class: "font-semibold pr-1" }, "From:"),
|
|
32
|
-
" ",
|
|
33
|
-
desc)),
|
|
34
|
-
to && (index.h("p", { class: "no-padding" },
|
|
35
|
-
index.h("span", { class: "font-semibold pr-1" }, "To:"),
|
|
36
|
-
" ",
|
|
37
|
-
desc)),
|
|
38
|
-
!from && !to && index.h("p", { class: state === 'idle' ? 'no-padding' : '' }, desc)));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function CardsContainer({ warranty, isAuthorized, unInvoicedByBrokerName }) {
|
|
42
|
-
return (index.h("div", { class: "warranty-tags mx-auto pt-3" },
|
|
43
|
-
index.h(StatusCard, { state: isAuthorized ? 'success' : 'reject', desc: isAuthorized ? 'Authorized' : 'Unauthorized' }),
|
|
44
|
-
index.h(StatusCard, { state: warranty.hasActiveWarranty ? 'success' : 'reject', desc: warranty.hasActiveWarranty ? 'Has Active Warranty' : "Doesn't Have Active Warranty" }),
|
|
45
|
-
unInvoicedByBrokerName && index.h(StatusCard, { className: 'span-entire-2nd-row', state: 'warning', icon: true, desc: `Warranty is not Active because this Vehicle is not Invoiced by the following Trusted Business Partner: ${unInvoicedByBrokerName}` }),
|
|
46
|
-
warranty.warrantyStartDate && index.h(StatusCard, { state: (warranty === null || warranty === void 0 ? void 0 : warranty.hasActiveWarranty) ? 'success' : 'reject', icon: false, from: true, desc: warranty.warrantyStartDate }),
|
|
47
|
-
warranty.warrantyEndDate && index.h(StatusCard, { state: (warranty === null || warranty === void 0 ? void 0 : warranty.hasActiveWarranty) ? 'success' : 'reject', icon: false, to: true, desc: warranty.warrantyEndDate })));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function SSCTable({ ssc }) {
|
|
51
|
-
return (index.h("div", { class: "wrapper-table" },
|
|
52
|
-
index.h("div", { class: "header" }, "SSC Campings"),
|
|
53
|
-
index.h("div", { class: "ssc-table-container" },
|
|
54
|
-
index.h("table", { class: "ssc-table" },
|
|
55
|
-
index.h("thead", null,
|
|
56
|
-
index.h("tr", null,
|
|
57
|
-
index.h("th", null, "Code"),
|
|
58
|
-
index.h("th", null, "Description"),
|
|
59
|
-
index.h("th", null, "Repair Status"),
|
|
60
|
-
index.h("th", null, "OP-Codes"),
|
|
61
|
-
index.h("th", null, "Part Number"))),
|
|
62
|
-
index.h("tbody", null, ssc.map(sscItem => (index.h("tr", { class: "transition", key: sscItem.sscCode },
|
|
63
|
-
index.h("td", null, sscItem.sscCode),
|
|
64
|
-
index.h("td", null, sscItem.description),
|
|
65
|
-
index.h("td", null,
|
|
66
|
-
index.h("div", { class: "table-cell-container" },
|
|
67
|
-
index.h("img", { class: "table-status-icon", src: sscItem.repaired ? checkSvg : xMarkSvg }),
|
|
68
|
-
" ", sscItem === null || sscItem === void 0 ? void 0 :
|
|
69
|
-
sscItem.repairDate)),
|
|
70
|
-
index.h("td", null, sscItem.opCode),
|
|
71
|
-
index.h("td", null,
|
|
72
|
-
index.h("div", { class: "table-cell-container table-cell-parts-container" }, !!sscItem.parts.length
|
|
73
|
-
? sscItem.parts.map(part => (index.h("div", { key: part.partNumber, class: part.isAvailable ? 'success' : 'reject' }, part.partNumber)))
|
|
74
|
-
: '...'))))))))));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const warrantyDetailsCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.collapse{visibility:collapse}.absolute{left:0;position:absolute;top:0}.relative{position:relative}.sticky{position:sticky}.mx-auto{margin-left:auto;margin-right:auto}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:0;height:0!important}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.border{border-width:1px}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pr-1{padding-right:4px}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.font-semibold{font-weight:600}.transition{transition:all;transition-duration:.3s;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-1000{transition-duration:1s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.success-card{background:#d0e7de;background-color:#d0e7de;border-color:#a2d0bb!important;border-color:#a2d0bb;color:#0b3521}.reject-card{background:#f7d7d8;background-color:#f7d7d8;border-color:#f2aeb5!important;border-color:#f2aeb5;color:#58151c}:host{all:initial!important;display:block}*{font-family:Arial}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn .3s ease-in forwards;opacity:0}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fade-out{animation:fadeIn .3s ease-in forwards;opacity:1}.spin{animation:spin 2s linear infinite}.loading-spinner{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;transition:all;transition-duration:.1s;width:100%}.loading-spinner img{height:40px;width:40px}.warranty{overflow:hidden;position:relative;transition:all;transition-duration:.3s}.hide{opacity:0}.card{border:1px solid;border-radius:6px;flex-shrink:0;gap:8px;padding:8px 12px}.card,.card p{align-items:center;display:flex}.card p{flex:1 1 0%;font-size:16px;height:25px;margin:0;padding-left:50px}.card p.no-padding{padding-left:4px}.card img{height:25px;width:25px}.recaptcha-response{border:1px solid;border-radius:8px;font-size:20px;margin:16px auto 0;padding:8px 16px;width:-moz-fit-content;width:fit-content}.warning-card{background:#fcf8e3;border-color:#faebcc!important;color:#8a6d3b}.span-entire-2nd-row{grid-column:1/3;grid-row:2/3}.warranty-tags{display:grid;gap:12px;grid-template-columns:1fr 1fr;max-width:1000px}.pt-3,.py-3{padding-top:12px}.pb-3,.py-3{padding-bottom:12px}.pt-4,.py-4{padding-top:16px}.pb-4,.py-4{padding-bottom:16px}.max-w-500{max-width:500px}.mt-4,.my-4{margin-bottom:16px;margin-top:16px}.warranty *{box-sizing:border-box}.wrapper-table{border:1px solid #d6d8dc;border-radius:4px;display:flex;flex-direction:column;margin-top:12px;max-height:70vh;overflow:hidden}.ssc-table-container{flex:1 1 0%;height:0;overflow:auto}.wrapper-table .header{align-items:center;background:#e1e3e5;color:#383c43;display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;width:100%}.ssc-table{border-collapse:collapse;overflow:auto;position:relative;width:100%}.ssc-table thead{background-color:#fff;font-weight:700;position:sticky;top:0}.ssc-table td,.ssc-table th{border-bottom:1px solid #d6d8dc;padding:10px 20px;text-align:center;transition:all;transition-duration:.3s;white-space:nowrap}.ssc-table tr:hover{background:#f4f4f4}.ssc-table tr:last-child td{border:none}.table-cell-container{align-items:center;display:flex;gap:8px;justify-content:center;width:100%}.table-cell-parts-container{flex-wrap:wrap}.table-cell-parts-container div{border-radius:4px;font-size:14px;padding:4px 8px}.table-cell-parts-container div.success{background:#d0e7de}.table-cell-parts-container div.reject{background:#f7d7d8}.table-status-icon{height:20px;width:20px}.warranty-vin{font-size:20px;padding-top:4px;text-align:center}.recaptcha-container{display:flex;justify-content:center;overflow:hidden}.static{position:static}.min-h-\\[100px\\]{min-height:100px}.py-4{padding-bottom:1rem;padding-top:1rem}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";
|
|
78
|
-
const WarrantyDetailsStyle0 = warrantyDetailsCss;
|
|
79
|
-
|
|
80
|
-
let mockData = {};
|
|
81
|
-
const WarrantyDetails = class {
|
|
82
|
-
constructor(hostRef) {
|
|
83
|
-
index.registerInstance(this, hostRef);
|
|
84
|
-
this.baseUrl = '';
|
|
85
|
-
this.unauthorizedSscLookupBaseUrl = '';
|
|
86
|
-
this.isDev = false;
|
|
87
|
-
this.showSsc = false;
|
|
88
|
-
this.queryString = '';
|
|
89
|
-
this.unauthorizedSscLookupQueryString = '';
|
|
90
|
-
this.recaptchaKey = '';
|
|
91
|
-
this.showWarranty = false;
|
|
92
|
-
this.cityId = null;
|
|
93
|
-
this.cityIntegrationId = null;
|
|
94
|
-
this.companyId = null;
|
|
95
|
-
this.companyIntegrationId = null;
|
|
96
|
-
this.companyBranchId = null;
|
|
97
|
-
this.companyBranchIntegrationId = null;
|
|
98
|
-
this.userId = null;
|
|
99
|
-
this.brandIntegrationId = null;
|
|
100
|
-
this.customerName = null;
|
|
101
|
-
this.customerPhone = null;
|
|
102
|
-
this.customerEmail = null;
|
|
103
|
-
this.loadingStateChange = undefined;
|
|
104
|
-
this.loadedResponse = undefined;
|
|
105
|
-
this.state = 'idle';
|
|
106
|
-
this.externalVin = null;
|
|
107
|
-
this.errorMessage = null;
|
|
108
|
-
this.showRecaptcha = false;
|
|
109
|
-
this.unInvoicedByBrokerName = null;
|
|
110
|
-
this.vehicleInformation = undefined;
|
|
111
|
-
this.checkingUnauthorizedSSC = false;
|
|
112
|
-
this.recaptchaRes = null;
|
|
113
|
-
this.headers = {};
|
|
114
|
-
}
|
|
115
|
-
handleSettingData(response) {
|
|
116
|
-
var _a, _b, _c;
|
|
117
|
-
if (response.warranty === null)
|
|
118
|
-
response.warranty = {
|
|
119
|
-
warrantyEndDate: '',
|
|
120
|
-
warrantyStartDate: '',
|
|
121
|
-
hasActiveWarranty: false,
|
|
122
|
-
hasExtendedWarranty: false,
|
|
123
|
-
extendedWarrantyEndDate: '',
|
|
124
|
-
extendedWarrantyStartDate: '',
|
|
125
|
-
};
|
|
126
|
-
if (response.ssc === null)
|
|
127
|
-
response.ssc = [];
|
|
128
|
-
this.unInvoicedByBrokerName = null;
|
|
129
|
-
if (((_a = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
|
|
130
|
-
this.unInvoicedByBrokerName = response.saleInformation.broker.brokerName;
|
|
131
|
-
this.vehicleInformation = response;
|
|
132
|
-
}
|
|
133
|
-
async handleInitializingRecaptcha(vin, scopedTimeoutRef) {
|
|
134
|
-
var _a;
|
|
135
|
-
if (((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.isAuthorized) === false && this.showSsc && this.recaptchaKey !== '') {
|
|
136
|
-
grecaptcha.reset();
|
|
137
|
-
await new Promise(r => setTimeout(r, 400));
|
|
138
|
-
this.recaptchaIntervalRef = setInterval(async () => {
|
|
139
|
-
var _a;
|
|
140
|
-
const recaptchaResponse = grecaptcha.getResponse();
|
|
141
|
-
if (recaptchaResponse) {
|
|
142
|
-
clearInterval(this.recaptchaIntervalRef);
|
|
143
|
-
if (this.isDev) {
|
|
144
|
-
this.checkingUnauthorizedSSC = true;
|
|
145
|
-
this.showRecaptcha = false;
|
|
146
|
-
await new Promise(r => setTimeout(r, 3000));
|
|
147
|
-
this.checkingUnauthorizedSSC = false;
|
|
148
|
-
const hasPendingSSC = Math.random() < 0.5 ? false : true;
|
|
149
|
-
this.recaptchaRes = {
|
|
150
|
-
hasSSC: hasPendingSSC,
|
|
151
|
-
message: hasPendingSSC ? 'This Vehicle has a Pending SSC' : 'No Pending SSC',
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
this.checkingUnauthorizedSSC = true;
|
|
156
|
-
this.showRecaptcha = false;
|
|
157
|
-
///
|
|
158
|
-
const response = await fetch(`${this.unauthorizedSscLookupBaseUrl}${vin}/${(_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.sscLogId}?${this.unauthorizedSscLookupQueryString}`, {
|
|
159
|
-
signal: this.abortController.signal,
|
|
160
|
-
headers: Object.assign(Object.assign({}, this.headers), { 'Ssc-Recaptcha-Token': recaptchaResponse }),
|
|
161
|
-
});
|
|
162
|
-
const vinResponse = await response.json();
|
|
163
|
-
if (vinResponse && this.networkTimeoutRef === scopedTimeoutRef) {
|
|
164
|
-
this.checkingUnauthorizedSSC = false;
|
|
165
|
-
const hasPendingSSC = vinResponse.sscLookupStatus === 1;
|
|
166
|
-
this.recaptchaRes = {
|
|
167
|
-
hasSSC: hasPendingSSC,
|
|
168
|
-
message: hasPendingSSC ? 'This Vehicle has a Pending SSC' : 'No Pending SSC',
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
else
|
|
172
|
-
throw new Error('Wrong response format');
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}, 500);
|
|
176
|
-
this.showRecaptcha = true;
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
this.showRecaptcha = false;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
async setData(newData, headers = {}) {
|
|
183
|
-
this.recaptchaRes = null;
|
|
184
|
-
this.headers = headers;
|
|
185
|
-
clearTimeout(this.networkTimeoutRef);
|
|
186
|
-
clearInterval(this.recaptchaIntervalRef);
|
|
187
|
-
if (this.abortController)
|
|
188
|
-
this.abortController.abort();
|
|
189
|
-
this.abortController = new AbortController();
|
|
190
|
-
let scopedTimeoutRef;
|
|
191
|
-
const isVinRequest = typeof newData === 'string';
|
|
192
|
-
const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
|
|
193
|
-
this.externalVin = vin;
|
|
194
|
-
try {
|
|
195
|
-
if (!vin || vin.trim().length === 0) {
|
|
196
|
-
this.state = 'idle';
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
if (this.state === 'data' || this.state === 'error') {
|
|
200
|
-
this.state = (this.state + '-loading');
|
|
201
|
-
}
|
|
202
|
-
else
|
|
203
|
-
this.state = 'loading';
|
|
204
|
-
await new Promise(r => {
|
|
205
|
-
scopedTimeoutRef = setTimeout(r, 600);
|
|
206
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
207
|
-
});
|
|
208
|
-
const vehicleResponse = isVinRequest ? await vehicleInformation.getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
209
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
210
|
-
if (!vehicleResponse)
|
|
211
|
-
throw new Error('Wrong response format');
|
|
212
|
-
this.handleSettingData(vehicleResponse);
|
|
213
|
-
this.handleInitializingRecaptcha(vin, scopedTimeoutRef);
|
|
214
|
-
}
|
|
215
|
-
this.errorMessage = null;
|
|
216
|
-
this.state = 'data';
|
|
217
|
-
}
|
|
218
|
-
catch (error) {
|
|
219
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
220
|
-
return;
|
|
221
|
-
this.state = 'error';
|
|
222
|
-
this.vehicleInformation = null;
|
|
223
|
-
this.errorMessage = error.message;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
227
|
-
await this.setData(requestedVin, headers);
|
|
228
|
-
}
|
|
229
|
-
async componentDidLoad() {
|
|
230
|
-
if (this.recaptchaKey !== '') {
|
|
231
|
-
const script = document.createElement('script');
|
|
232
|
-
script.src = 'https://www.google.com/recaptcha/api.js';
|
|
233
|
-
script.async = true;
|
|
234
|
-
script.defer = true;
|
|
235
|
-
script.onload = () => console.log('reCAPTCHA script loaded');
|
|
236
|
-
document.head.appendChild(script);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
async setMockData(newMockData) {
|
|
240
|
-
mockData = newMockData;
|
|
241
|
-
}
|
|
242
|
-
async loadingListener() {
|
|
243
|
-
if (this.loadingStateChange)
|
|
244
|
-
this.loadingStateChange(this.state.includes('loading'));
|
|
245
|
-
}
|
|
246
|
-
render() {
|
|
247
|
-
var _a, _b, _c, _d, _e;
|
|
248
|
-
return (index.h(index.Host, { key: '3c8f75a5285bcae20b14896f48219478873dc56f' }, index.h("div", { key: 'b87f7c2301163f6a8a59ea30005bf5fdce3084b3', class: "min-h-[100px] warranty" }, index.h("div", { key: '2e9eca00ba1b2b5a362966ce7bec90118a255be4' }, index.h(Loading, { key: 'e0dcf745ea9409ffd55f54a2b304bf448f00981d', isLoading: this.state.includes('loading') }), index.h("div", { key: 'ae2feac973e3ddfc3e8b38f1887f1f3ff2da0393', class: "transition duration-700", style: { transform: this.state.includes('loading') || this.state === 'idle' ? 'scale(0)' : 'scale(1)', opacity: this.state.includes('loading') ? '0' : '1' } }, (this.showSsc || this.showWarranty) && (index.h("div", { key: 'd27ea304918aad5f6fc6acce7ea4b4da89be5d7b', style: { color: !!this.errorMessage ? 'red' : 'black' }, class: "warranty-vin" }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin)), ['error', 'error-loading'].includes(this.state) && (index.h("div", { key: '1f797e76bb68d350ff3b071a11d94cd72f031569', class: "py-4" }, index.h(StatusCard, { key: '4f674cc1259a7628bb565f737575108ef1882569', desc: this.errorMessage, className: "mx-auto reject-card max-w-500" }), ' ')), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (index.h(CardsContainer, { key: '7c47e8a2c5dd921af1df7f8d2453a3897709dde3', isAuthorized: (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName, warranty: (_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.warranty })), index.h("div", { key: '250484f60f45bc8470c074056cbd567017fb1fcd', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, index.h("slot", { key: '4e728a717fdc8b34a6c861a40ff0cf7ec9dacf95' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (index.h("div", { key: 'aa3134245674835812a638b4d8ccf6da1baafc13', class: cn.cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.recaptchaRes.message)), this.checkingUnauthorizedSSC && (index.h("div", { key: '33c4511869c04b4780285f35e19efee5362b6240', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, index.h("div", { key: '69c77e7eff03943790b00030068ec3b25c86fb25' }, index.h("strong", { key: 'a6b3cf9c81dc0cf5dcad68189827428511eb289f' }, "Checking TMC")), index.h("img", { key: '812b2eb0ca00baa596ccf6e6e5e4943dccc89159', class: "spin", src: loader.loaderSvg }))), this.showSsc && ['data', 'data-loading'].includes(this.state) && ((_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.ssc) !== null && !!((_e = this.vehicleInformation) === null || _e === void 0 ? void 0 : _e.ssc.length) && (index.h(SSCTable, { key: 'be4c7f932929fc7aff56eb3fb6c45e5d2bd3ff1d', ssc: this.vehicleInformation.ssc })))))));
|
|
249
|
-
}
|
|
250
|
-
get el() { return index.getElement(this); }
|
|
251
|
-
static get watchers() { return {
|
|
252
|
-
"state": ["loadingListener"]
|
|
253
|
-
}; }
|
|
254
|
-
};
|
|
255
|
-
WarrantyDetails.style = WarrantyDetailsStyle0;
|
|
256
|
-
|
|
257
|
-
exports.warranty_details = WarrantyDetails;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,t)=>t in e,o=(e,t)=>(0,console.error)(e,t),s=new Map,r="http://www.w3.org/1999/xlink",i="undefined"!=typeof window?window:{},c=i.document||{head:{}},f=i.HTMLElement||class{},u={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,p=[],d=[],m=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&u.t?v(y):u.raf(y))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},y=()=>{w(p),w(d),(h=p.length>0)&&u.raf(y)},v=e=>Promise.resolve(undefined).then(e),b=m(d,!0),$=e=>{const t=new URL(e,u.l);return t.origin!==i.location.origin?t.href:t.pathname},g=e=>u.l=e,S={},j=e=>"object"==(e=typeof e)||"function"===e;((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>C,unwrapErr:()=>M});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var x,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l=String(l)),s&&r?i[i.length-1].o+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,D);const f=A(e,null);return f.i=t,i.length>0&&(f.u=i),f.h=o,f},A=(e,t)=>({t:0,p:e,o:t,m:null,u:null,i:null,h:null}),_={},D={forEach:(e,t)=>e.map(H).forEach(t),map:(e,t)=>e.map(H).map(t).map(N)},H=e=>({vattrs:e.i,vchildren:e.u,vkey:e.h,vname:e.v,vtag:e.p,vtext:e.o}),N=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),P(e.vtag,t,...e.vchildren||[])}const t=A(e.vtag,e.vtext);return t.i=e.vattrs,t.u=e.vchildren,t.h=e.vkey,t.v=e.vname,t},R=(e,t,n)=>{const l=e;return{emit:e=>U(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},U=(e,t,n)=>{const l=u.ce(t,n);return e.dispatchEvent(l),l},F=new WeakMap,L=e=>"sc-"+e.$,W=(e,t,n,o,s,c)=>{if(n!==o){let f=l(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,l=V(n),s=V(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((f||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?f=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}let i=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,i=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(i?e.removeAttributeNS(r,t):e.removeAttribute(t)):(!f||4&c||s)&&!l&&(o=!0===o?"":o,i?e.setAttributeNS(r,t,o):e.setAttribute(t,o))}else if(t="-"===t[2]?t.slice(3):l(i,a)?a.slice(2):a[2]+t.slice(3),n||o){const l=t.endsWith(z);t=t.replace(B,""),n&&u.rel(e,t,n,l),o&&u.ael(e,t,o,l)}}},q=/\s/,V=e=>e?e.split(q):[],z="Capture",B=new RegExp(z+"$"),G=(e,t,n)=>{const l=11===t.m.nodeType&&t.m.host?t.m.host:t.m,o=e&&e.i||S,s=t.i||S;for(const e of I(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.t);for(const e of I(Object.keys(s)))W(l,e,o[e],s[e],n,t.t)};function I(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var J=!1,K=!1,Q=(e,t,n)=>{const l=t.u[n];let o,s,r=0;if(null!==l.o)o=l.m=c.createTextNode(l.o);else{if(K||(K="svg"===l.p),o=l.m=c.createElementNS(K?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.p),K&&"foreignObject"===l.p&&(K=!1),G(null,l,K),o.getRootNode().querySelector("body"),l.u)for(r=0;r<l.u.length;++r)s=Q(e,l,r),s&&o.appendChild(s);"svg"===l.p?K=!1:"foreignObject"===o.tagName&&(K=!0)}return o["s-hn"]=x,o},T=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Q(null,n,o),r&&(l[o].m=r,te(i,r,t)))},X=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;ee(t),e&&e.remove()}}},Y=(e,t,n=!1)=>e.p===t.p&&(!!n||e.h===t.h),Z=(e,t,n=!1)=>{const l=t.m=e.m,o=e.u,s=t.u,r=t.p,i=t.o;null===i?(K="svg"===r||"foreignObject"!==r&&K,("slot"!==r||J)&&G(e,t,K),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,f=0,u=0,a=t.length-1,h=t[0],p=t[a],d=l.length-1,m=l[0],w=l[d];for(;i<=a&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--a];else if(null==m)m=l[++c];else if(null==w)w=l[--d];else if(Y(h,m,o))Z(h,m,o),h=t[++i],m=l[++c];else if(Y(p,w,o))Z(p,w,o),p=t[--a],w=l[--d];else if(Y(h,w,o))Z(h,w,o),te(e,h.m,p.m.nextSibling),h=t[++i],w=l[--d];else if(Y(p,m,o))Z(p,m,o),te(e,p.m,h.m),p=t[--a],m=l[++c];else{for(f=-1,u=i;u<=a;++u)if(t[u]&&null!==t[u].h&&t[u].h===m.h){f=u;break}f>=0?(r=t[f],r.p!==m.p?s=Q(t&&t[c],n,f):(Z(r,m,o),t[f]=void 0,s=r.m),m=l[++c]):(s=Q(t&&t[c],n,c),m=l[++c]),s&&te(h.m.parentNode,s,h.m)}i>a?T(e,null==l[d+1]?null:l[d+1].m,n,l,c,d):c>d&&X(t,i,a)})(l,o,t,s,n):null!==s?(null!==e.o&&(l.textContent=""),T(l,null,t,s,0,s.length-1)):!n&&null!==o&&X(o,0,o.length-1),K&&"svg"===r&&(K=!1)):e.o!==i&&(l.data=i)},ee=e=>{e.i&&e.i.ref&&e.i.ref(null),e.u&&e.u.map(ee)},te=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ne=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},le=(e,t)=>{if(e.t|=16,!(4&e.t))return ne(e,e.j),b((()=>oe(e,t)));e.t|=512},oe=(e,t)=>{const n=e.$hostElement$,l=n;if(!l)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return se(void 0,(()=>ie(e,l,t)))},se=(e,t)=>re(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),re=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ie=async(e,t,n)=>{var l;const o=e.$hostElement$,r=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.t,o=((e,t)=>{var n;const l=L(t),o=s.get(l);if(e=11===e.nodeType?e:c,o)if("string"==typeof o){let s,r=F.get(e=e.head||e);if(r||F.set(e,r=new Set),!r.has(l)){{s=c.createElement("style"),s.innerHTML=o;const l=null!=(n=u.O)?n:function(){var e,t,n;return null!=(n=null==(t=null==(e=c.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?n:void 0}();if(null!=l&&s.setAttribute("nonce",l),!(1&t.t))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(a){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.t&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.t&&(s.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ce(e,t,o,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>fe(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},ce=(e,t,n,l)=>{try{t=t.render(),e.t&=-17,e.t|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||A(null,null),r=(i=t)&&i.p===_?t:P(null,null,t);var i;if(x=l.tagName,n&&r.i)for(const e of Object.keys(r.i))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.i[e]=l[e]);r.p=null,r.t|=4,e.C=r,r.m=s.m=l.shadowRoot||l,J=!!(1&o.t),Z(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},fe=e=>{const t=e.$hostElement$,n=t,l=e.j;64&e.t||(e.t|=64,he(t),ae(n,"componentDidLoad"),e.M(t),l||ue()),e.S&&(e.S(),e.S=void 0),512&e.t&&v((()=>le(e,!1))),e.t&=-517},ue=()=>{he(c.documentElement),v((()=>U(i,"appload",{detail:{namespace:"shift-components"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},he=e=>e.classList.add("hydrated"),pe=(e,t)=>{var l,s;const r=e.prototype;if(t.P||t.A||e.watchers){e.watchers&&!t.A&&(t.A=e.watchers);const i=Object.entries(null!=(l=t.P)?l:{});i.map((([e,[l]])=>{(31&l||32&l)&&Object.defineProperty(r,e,{get(){return t=e,n(this)._.get(t);var t},set(l){((e,t,l,s)=>{const r=n(e),i=e,c=r._.get(t),f=r.t,u=i;var a,h;h=s.P[t][0],l=null==(a=l)||j(a)?a:4&h?"false"!==a&&(""===a||!!a):1&h?String(a):a;const p=Number.isNaN(c)&&Number.isNaN(l);if(l!==c&&!p){if(r._.set(t,l),s.A&&128&f){const e=s.A[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){o(e,i)}}))}2==(18&f)&&le(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})}));{const l=new Map;r.attributeChangedCallback=function(e,o,s){u.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.t;if(r&&!(8&r)&&128&r&&s!==o){const n=this,l=null==(i=t.A)?void 0:i[e];null==l||l.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.A)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},de=(e,l)=>{const o={t:l[0],$:l[1]};o.P=l[2],o.A=e.A;let r=!1;return Object.assign(e.prototype,{__registerHost(){((e,n)=>{const l={t:0,$hostElement$:e,k:n,_:new Map};l.D=new Promise((e=>l.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(this,o)},connectedCallback(){r||(n(this),r=!0),(e=>{if(!(1&u.t)){const t=n(e),l=t.k,o=()=>{};if(1&t.t)(null==t?void 0:t.H)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ne(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.t)&&(t.t|=32,l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.t|=128)),l&&l.style)){let e;"string"==typeof l.style&&(e=l.style);const t=L(n);if(!s.has(t)){const l=()=>{};((e,t,n)=>{let l=s.get(e);a&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,s.set(e,l)})(t,e,!!(1&n.t)),l()}}const o=t.j,r=()=>le(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,l)}o()}})(this)},disconnectedCallback(){(async()=>{1&u.t||n(this)})()},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open"})}}),e.is=o.$,pe(e,o)},me=e=>u.O=e,we=e=>Object.assign(u,e);export{f as H,me as a,we as b,_ as c,R as d,$ as g,P as h,de as p,g as s}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
var t=Object.defineProperty;((I,n)=>{for(var i in n)t(I,i,{get:n[i],enumerable:!0})})({},{err:()=>n,map:()=>i,ok:()=>I,unwrap:()=>r,unwrapErr:()=>e});var I=t=>({isOk:!0,isErr:!1,value:t}),n=t=>({isOk:!1,isErr:!0,value:t});function i(t,i){if(t.isOk){const n=i(t.value);return n instanceof Promise?n.then((t=>I(t))):I(n)}if(t.isErr)return n(t.value);throw"should never get here"}var r=t=>{if(t.isOk)return t.value;throw t.value},e=t=>{if(t.isErr)return t.value;throw t.value},o=(t,I,...n)=>{let i=null,r=null,e=!1,o=!1;const a=[],u=I=>{for(let r=0;r<I.length;r++)i=I[r],Array.isArray(i)?u(i):null!=i&&"boolean"!=typeof i&&((e="function"!=typeof t&&!("object"==(n=typeof(n=i))||"function"===n))&&(i=String(i)),e&&o?a[a.length-1].t+=i:a.push(e?l(null,i):i),o=e);var n};if(u(n),I){I.key&&(r=I.key);{const t=I.className||I.class;t&&(I.class="object"!=typeof t?t:Object.keys(t).filter((I=>t[I])).join(" "))}}if("function"==typeof t)return t(null===I?{}:I,a,g);const c=l(t,null);return c.I=I,a.length>0&&(c.i=a),c.o=r,c},l=(t,I)=>({l:0,u:t,t:I,v:null,i:null,I:null,o:null}),g={forEach:(t,I)=>t.map(a).forEach(I),map:(t,I)=>t.map(a).map(I).map(u)},a=t=>({vattrs:t.I,vchildren:t.i,vkey:t.o,vname:t.C,vtag:t.u,vtext:t.t}),u=t=>{if("function"==typeof t.vtag){const I={...t.vattrs};return t.vkey&&(I.key=t.vkey),t.vname&&(I.name=t.vname),o(t.vtag,I,...t.vchildren||[])}const I=l(t.vtag,t.vtext);return I.I=t.vattrs,I.i=t.vchildren,I.o=t.vkey,I.C=t.vname,I};const c="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIKICAgIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1sb2FkZXIiPgogICAgPHBhdGggZD0iTTEyIDJ2NCIgLz4KICAgIDxwYXRoIGQ9Im0xNi4yIDcuOCAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTE4IDEyaDQiIC8+CiAgICA8cGF0aCBkPSJtMTYuMiAxNi4yIDIuOSAyLjkiIC8+CiAgICA8cGF0aCBkPSJNMTIgMTh2NCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgMTkuMSAyLjktMi45IiAvPgogICAgPHBhdGggZD0iTTIgMTJoNCIgLz4KICAgIDxwYXRoIGQ9Im00LjkgNC45IDIuOSAyLjkiIC8+Cjwvc3ZnPg==";export{o as h,c as l}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import{p as e,H as a,h as i,c as t}from"./p-4dc47f5f.js";import{c}from"./p-98d9e7ab.js";const d=e(class extends a{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.closeModal=async()=>{this.isOpened=!1,this.item=null,await new Promise((e=>setTimeout(e,500))),this.canceledItems=[],this.unInvoicedByBrokerName=null,this.input.value="",this.isLoading=!1,this.input.readOnly=!1},this.qrCodeKeyDown=async e=>{if("Enter"===e.key){if(!this.confirmServiceCancellation||!this.confirmUnInvoicedTBPVehicles)return;if(e.preventDefault(),!(null==this?void 0:this.handleScanner))return;const a=this.input.value;this.input.value="",this.isLoading=!0,this.input.readOnly=!0,this.handleScanner(a)}},this.onValueChanges=e=>{this.handleQrChanges&&this.handleQrChanges(e.target.value)},this.vin="",this.item=null,this.canceledItems=null,this.unInvoicedByBrokerName=null,this.handleScanner=void 0,this.handleQrChanges=void 0,this.confirmServiceCancellation=!1,this.confirmUnInvoicedTBPVehicles=!1,this.internalVin="",this.isOpened=!1,this.internalItem=null,this.internalCanceledItem=null,this.isLoading=!1,this.loadingStateChange=void 0}onIsLoadingChange(e){this.loadingStateChange&&this.loadingStateChange(e)}async componentDidLoad(){this.input=this.el.shadowRoot.querySelector(".dynamic-claim-processor .qr-input"),this.dynamicClaimProcessor=this.el.shadowRoot.querySelector(".dynamic-claim-processor"),this.confirmUnInvoicedTBPVehicles=null===this.unInvoicedByBrokerName}focusInput(){setTimeout((()=>{this.input.focus()}),100)}async changeInternalCanceledItem(e){this.internalCanceledItem=e,this.confirmServiceCancellation=!(this.internalCanceledItem.length>0)}async changeConfirmUnInvoicedTBPVehicles(e){this.confirmUnInvoicedTBPVehicles=null===e}async changeInternalVin(e){this.internalVin=e}async changeInternalItem(e){this.isOpened=!!e,e&&(this.internalItem=e),e?(this.closeModalListenerRef=e=>"Escape"===e.key&&this.quite(),window.addEventListener("keydown",this.closeModalListenerRef),await new Promise((e=>setTimeout(e,300))),this.input.focus()):(window.removeEventListener("keydown",this.closeModalListenerRef),this.quite())}async quite(){this.closeModal()}async getQrValue(){return this.input.value}render(){var e,a,d,o,n;const s=!this.confirmServiceCancellation||!this.confirmUnInvoicedTBPVehicles;return s||this.focusInput(),i(t,{key:"7ea18e4fadefc9890b6346a56c29a2057ff4dae5"},i("div",{key:"facbf1dcacb0f5bf7ced03c1d71173144c8a4e60",class:c("dynamic-claim-processor",(null==this?void 0:this.isOpened)&&"active")},i("svg",{key:"efab69b4fd0fc8bda536a4a723a8db6e445fdb2a",id:"dynamic-claim-processor-close-icon",onClick:this.closeModal,viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"d0a0ac68fcd60f48d4300a174990b122dd9868fb",id:"SVGRepo_bgCarrier","stroke-width":"0"}),i("g",{key:"eca5bf7b0719fc86ac0f886e90260463624b07b9",id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),i("g",{key:"f34e7075df7ba0fa672831e0de3ba9d024633982",id:"SVGRepo_iconCarrier"},i("path",{key:"c24ef4a14d9ecc07e29b9196fc8f13caf9c9bf7c",d:"M3 21.32L21 3.32001",stroke:"#000000","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{key:"2be1d7b1a861a3ffc7dbe158f4791719b1cd8d72",d:"M3 3.32001L21 21.32",stroke:"#000000","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),i("div",{key:"b9a4abea36a13d0e796ce95e89bd2bccfe6d47b0",class:"dynamic-claim-processor-wrapper"},i("div",{key:"720c7b9b1de4b22fd0928d6b5eb79a38193c8468",class:"dynamic-claim-processor-info-box"},i("div",{key:"cb5e4a0b8596c5c782aafb78228e31728c6f1a55",class:"dynamic-claim-processor-info-box-header"},i("strong",{key:"62a593462b321dcea73c093e415d0dbd8b9d6bd5",class:"dynamic-claim-header-vin"},null==this?void 0:this.internalVin)),i("div",{key:"1a5ff709581b8f18971379f30314fe835a31eb3b",class:"dynamic-claim-processor-info-box-body"},i("table",{key:"6d61ff99ccba84dc53b59b8564c4ad035b95372b",class:"border-separate"},i("tr",{key:"990674c386c2d9cec2f5122caa0b09ef96a44523"},i("th",{key:"1002adc8b12ddeea1e8032f1da12b5af21c83e8b"},"Service Type"),i("td",{key:"89b9426749a50067df55db904e78fc6521e2e09e"},null===(e=null==this?void 0:this.internalItem)||void 0===e?void 0:e.type),i("th",{key:"4f74393f4ee9f5a367cbef81aadcbbf61c690a0d"},"Name"),i("td",{key:"c789f80b5aeefd3e979d16e7a0f4ea2fdce93ed1"},null===(a=null==this?void 0:this.internalItem)||void 0===a?void 0:a.name)),i("tr",{key:"b54cd591800861e59da162b88b6a244b379bacd6"},i("th",{key:"a434d8772d60bff1f576163c2858b93ae03fce46"},"Activation Date"),i("td",{key:"5e8650d609cc9c8c2b3d0331ba3bf864be344e38"},null===(d=null==this?void 0:this.internalItem)||void 0===d?void 0:d.activatedAt),i("th",{key:"981e8ae49a3ac15f4a9541f014f2f20ae619d87d"},"Expiry Date"),i("td",{key:"1b75bce9817ca071211029622e6315ff6c95363a"},null===(o=null==this?void 0:this.internalItem)||void 0===o?void 0:o.expiresAt)),i("tr",{key:"7b92c9d3f1cde8bfe98315bde7e0b7954d341cb7"},i("th",{key:"624e7be8fcd535a702e1ec182224fdd1cb129d36"},"Menu Code"),i("td",{key:"24ee026cc9cfb1700d0842a12e30cbf56fa57608"},null===(n=null==this?void 0:this.internalItem)||void 0===n?void 0:n.menuCode))))),i("div",{key:"76c5666102384f3d11d0c584ee5c101d9e6888a2",style:{flex:"1",width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-evenly"}},(null==this?void 0:this.internalCanceledItem)&&Array.isArray(this.internalCanceledItem)&&!!this.internalCanceledItem.length&&i("div",{key:"1ca55d23fe8e2bfc4102532df847e4ddda998acc",class:"admonition warning"},i("p",{key:"7851d8d8b29cec199ee0466aa6963323ac245d1d",class:"admonition-title"},"Warning"),i("div",{key:"086e2d19996bb9cec86fbc1c3a6d508cb2d87b1a",style:{padding:"0 30px"}},i("p",{key:"3645a5f3a7caa44370a9ca68e2fd7771490eb66f",class:"my-4"},"the following Services Are still 'Pending' and they will be marked as 'Cancelled'"),i("ul",{key:"3184c6806f652ff1e18f5060fc7c529f52e42644",class:"dynamic-claim-processor-to-be-cancelled-list my-4 pl-10 list-disc"},this.internalCanceledItem.map((({name:e})=>i("li",{id:e},e)))),i("div",{key:"b16e20211bbdf3655d2b6baba0479024aef04c86",class:"cancel-confirmation-box"},i("label",{key:"6107738c56955193fe9ff0b20d9d13a1d63359a4"},i("input",{key:"6487d57080dfe0fdc6330a2100a10451a5db417c",type:"checkbox",class:"confirm-cancellation-input m-[3px] ml-1",onChange:()=>{this.confirmServiceCancellation=!this.confirmServiceCancellation}})," ","Confirm Marking the above services as 'Cancelled'")))),this.unInvoicedByBrokerName&&i("div",{key:"da07af777aa9bb41a431a937784c973e90ca2fc4",class:"admonition warning"},i("p",{key:"94f42d9732ab343fd81dc5ba5c67570ee5a503be",class:"admonition-title"},"Warning"),i("div",{key:"03add06584426d108d3a7827ffefde6905cea542",style:{padding:"0 30px"}},i("p",{key:"faa3390b9483ffcf1813cb98d0c6b30d6116562e",class:"my-4"},"This Vehicle is not yet invoiced by the following Trusted Business Partner:"),i("div",{key:"11d799db5ac38c1400fbe6d144f9f7279d61c22b"},i("strong",{key:"9a22678bc79691244974f316d7fc8a197583f905"},this.unInvoicedByBrokerName)),i("div",{key:"a13f1c55bf8c3bed0ba5a76ef787ea93c39c375e",class:"cancel-confirmation-box"},i("label",{key:"9ae25e9d5dbfa9f1b1390bf8c22d3f67d2c89209"},i("input",{key:"719b0152957d6d4e6dffbfdc1ce4ef8796c53f88",type:"checkbox",class:"confirm-cancellation-input m-[3px] ml-1",onChange:()=>{this.confirmUnInvoicedTBPVehicles=!this.confirmUnInvoicedTBPVehicles}})," ","Confirm Claiming without Trusted Business Partner Invoice")))),i("div",{key:"951942abe6995ed155f2d9800bb572e8a19c4068",class:c("dynamic-claim-processor-progress",(!this.confirmServiceCancellation||!this.confirmUnInvoicedTBPVehicles)&&"disabled")},i("div",{key:"997c6a843683801155f88e8d8c64318e1f87f5ca",id:"scan-invoice-step",class:c("dynamic-claim-processor-progress-step",this.isLoading&&"processing")},i("div",{key:"ecaea7fa9458d6800f97f289723b3609b0b7b728",style:{position:"relative",width:"130px",height:"130px",display:"block",margin:"auto",marginTop:"15px"}},i("div",{key:"7e6454f31cb82c63a4bbb10a8b7dc1be6d7fac6b",style:{position:"absolute"},class:"scan-invoice-wrapper flex flex-col gap-1 justify-center items-center"},i("svg",{key:"333521e33e644e25d3e1f28949fab5f2a6c0e5b0",fill:"#3071a9",height:"100px",width:"100px",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",stroke:"#ffffff"},i("g",{key:"95eaad08a062318e9f9db4317b96306b86642139",id:"SVGRepo_bgCarrier","stroke-width":"0"}),i("g",{key:"f78e536c8cc0d32a16a0424cc7f098d73286b479",id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),i("g",{key:"b65a4b29d75d883532f86634d9bd531f09cf7ead",id:"SVGRepo_iconCarrier"},i("g",{key:"d9410f0ce81c453360349412cf2f8b62f762ba11"},i("g",{key:"c7c64f4dc942e2de8fb851e6bdcf45022e672510"},i("path",{key:"4f4b628c4255d179519e2b953e59a17c6a924c1a",d:"M354.338,34.205h-61.71c-3.354-9.93-12.752-17.102-23.8-17.102h-17.547C243.359,6.451,230.813,0,217.521,0 s-25.839,6.451-33.76,17.102h-17.547c-11.048,0-20.446,7.172-23.8,17.102H80.701c-18.566,0-33.67,15.105-33.67,33.67v359.148 c0,18.566,15.105,33.67,33.67,33.67h171.023c4.427,0,8.017-3.589,8.017-8.017c0-4.427-3.589-8.017-8.017-8.017H80.701 c-9.725,0-17.637-7.912-17.637-17.637V67.875c0-9.725,7.912-17.637,17.637-17.637h60.394v26.188c0,4.427,3.589,8.017,8.017,8.017 H285.93c4.427,0,8.017-3.589,8.017-8.017V50.238h60.391c9.725,0,17.637,7.912,17.637,17.637v230.881 c0,4.427,3.589,8.017,8.017,8.017c4.427,0,8.017-3.589,8.017-8.017V67.875C388.008,49.309,372.904,34.205,354.338,34.205z M277.914,68.409H157.129V42.252c0-0.011,0.001-0.02,0.001-0.031c0-0.005-0.001-0.011-0.001-0.015 c0.009-5.004,4.08-9.071,9.085-9.071h21.846c2.854,0,5.493-1.517,6.929-3.985c4.781-8.213,13.204-13.117,22.532-13.117 s17.751,4.904,22.532,13.117c1.435,2.467,4.075,3.985,6.929,3.985h21.846c4.999,0,9.067,4.059,9.085,9.055 c0,0.011-0.001,0.02-0.001,0.031c0,0.021,0.003,0.041,0.003,0.062V68.409z"}))),i("g",{key:"d8dfaa272dc038f9a409a07f20a376872e2c49d6"},i("g",{key:"92a785053a4a484d4cfa3dcba2d6501f4d95bd63"},i("path",{key:"98f1da5fa072e2208f083f8bf6780e6dea4608e6",d:"M251.722,410.455H97.269V84.443h17.64c4.427,0,8.017-3.589,8.017-8.017s-3.589-8.017-8.017-8.017H89.253 c-4.427,0-8.017,3.589-8.017,8.017v342.046c0,4.427,3.589,8.017,8.017,8.017h162.47c4.427,0,8.017-3.589,8.017-8.017 C259.739,414.044,256.15,410.455,251.722,410.455z"}))),i("g",{key:"f3dca4bd971490fedd8a3b12046ef4bc0920215e"},i("g",{key:"0218794dd99ca2f80f474ff0c9e1371a14011a54"},i("path",{key:"5664c682ebf85609e55fb91ae9150ec0b790282d",d:"M345.787,68.409h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.637v214.311 c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017V76.426C353.804,71.999,350.214,68.409,345.787,68.409z"}))),i("g",{key:"0ff24162a3500fcfbe933af6b7954fc1a7c4116d"},i("g",{key:"780cb9811d541c8a662f7e6328a0caeb294b23e1"},i("path",{key:"8144a520d72cdcbe909f81abee08e811b112a793",d:"M371.44,324.944c-51.572,0-93.528,41.956-93.528,93.528S319.869,512,371.44,512s93.528-41.956,93.528-93.528 S423.012,324.944,371.44,324.944z M371.44,495.967c-42.731,0-77.495-34.764-77.495-77.495s34.764-77.495,77.495-77.495 s77.495,34.764,77.495,77.495S414.172,495.967,371.44,495.967z"}))),i("g",{key:"3b908924f2df6e7025a3913c7998a1a13290a6b9"},i("g",{key:"efa92cfff7cf13fbba841173d6f24a3632d56c40"},i("path",{key:"11b0a430b9558b213e2c018245d199a7b4f71a26",d:"M217.607,34.205h-0.086c-4.427,0-7.974,3.589-7.974,8.017c0,4.427,3.631,8.017,8.059,8.017 c4.427,0,8.017-3.589,8.017-8.017C225.624,37.794,222.035,34.205,217.607,34.205z"}))),i("g",{key:"b4701864f89c78d3b34ad264058f90ffb355a57d"},i("g",{key:"112007561eda64334264db3140b2b9d1a171ae05"},i("path",{key:"bdc48e97205b19f455f2567a1e21ef2791f082f8",d:"M419.865,387.15c-3.13-3.131-8.207-3.131-11.337,0l-54.19,54.19l-28.536-28.536c-3.131-3.131-8.207-3.131-11.337,0 c-3.131,3.131-3.131,8.207,0,11.337l34.205,34.205c1.565,1.565,3.617,2.348,5.668,2.348s4.103-0.782,5.668-2.348l59.858-59.858 C422.995,395.356,422.995,390.28,419.865,387.15z"}))),i("g",{key:"cc19dded6610b3c38df00eb86690ef5da6646311"},i("g",{key:"38f73ff945164d99ba4ca5572eea6e3da41ab83e"},i("path",{key:"31f531ce112abddd9155c612347a550133dccbbe",d:"M182.781,177.309v-32.338c11.295,1.934,18.171,7.688,18.171,11.889c0,4.427,3.589,8.017,8.017,8.017 s8.017-3.589,8.017-8.017c0-14.171-14.492-25.621-34.205-28.092v-1.036c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 v1.036c-19.713,2.47-34.205,13.92-34.205,28.092c0,20.074,18.829,27.788,34.205,32.461v32.338 c-11.295-1.934-18.171-7.688-18.171-11.889c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 c0,14.171,14.492,25.621,34.205,28.092v1.036c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017v-1.036 c19.713-2.47,34.205-13.92,34.205-28.092C216.985,189.697,198.157,181.982,182.781,177.309z M166.747,172.411 c-13.524-4.713-18.171-8.963-18.171-15.551c0-2.535,2.236-5.335,6.134-7.68c3.294-1.982,7.473-3.415,12.037-4.198V172.411z M194.818,217.45c-3.294,1.982-7.473,3.415-12.037,4.198v-27.429c13.524,4.713,18.171,8.963,18.171,15.551 C200.952,212.306,198.716,215.105,194.818,217.45z"}))),i("g",{key:"a11875702a3fc98e0acfbbcb4af12eb4493af258"},i("g",{key:"10d753a00196f287b6afc85869870c8a762b8015"},i("path",{key:"c095ad4acfeaaea83205afdb5c3c482ec9d772ac",d:"M294.48,136.818h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,136.818,294.48,136.818z"}))),i("g",{key:"d4445fed4d88d0442843a878bcac6e69fe9b74d3"},i("g",{key:"64d604d7670df1e7508bcde262d4077504081522"},i("path",{key:"e96d7331677e226f88e751233077a4c272acde8f",d:"M277.378,171.023h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h25.653 c4.427,0,8.017-3.589,8.017-8.017S281.805,171.023,277.378,171.023z"}))),i("g",{key:"ed7b2e50d6ba9a1300d6acf05043f3fa0181703c"},i("g",{key:"e25d13f88c01cf40a2d6986d8a7c91f9cbdf880f"},i("path",{key:"4a62c6e4880d9554a88d2dcf2b9da4c72f91ad61",d:"M294.48,205.228h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,205.228,294.48,205.228z"}))),i("g",{key:"9031c38f7ad634a20d16d46bee109910605ada47"},i("g",{key:"9151c7dea666703b37d470f11c4a27790da99bca"},i("path",{key:"b36cf4ac3fad4be56317a2605be087a46212d9bb",d:"M157.662,282.188H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,282.188,157.662,282.188z"}))),i("g",{key:"6ce2c120f503b02241a11803ee643df17be742bf"},i("g",{key:"5342f6b2940cb61841045992b398410344cbe771"},i("path",{key:"6a11df9eea892fbb3fa4540e63745d2e65644e7f",d:"M157.662,350.597H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,350.597,157.662,350.597z"}))),i("g",{key:"9bd5c72fc4972da0eb431165939082b6b9918320"},i("g",{key:"01f2799a580fa6ff6837f24c0c45841b0ae80133"},i("path",{key:"281da0da97a271db4c8e1439ed889fdab1e41e89",d:"M157.662,316.393H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,316.393,157.662,316.393z"}))),i("g",{key:"eeab8100ba66288719c9bd25daf4dccddca387ef"},i("g",{key:"1502a6ebd3c6fbe19a033e68ca784230313ecd2e"},i("path",{key:"15f0c1e838090236060dbc44c88ff80b4a5be707",d:"M294.48,282.188H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,282.188,294.48,282.188z"}))),i("g",{key:"670e313fe53a0daf241bccc62713f98e13a0eaea"},i("g",{key:"db5b79634178045e411db9e17e98c3f1705422f3"},i("path",{key:"3e0cf63bb723b972a46ac206657425e5c5f03228",d:"M268.827,350.597h-76.96c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h76.96 c4.427,0,8.017-3.589,8.017-8.017S273.254,350.597,268.827,350.597z"}))),i("g",{key:"b24cb217593c420ad1ac7e387e803582b0690a0f"},i("g",{key:"cf67f96250fddb8c8392701dba0d4867d2d551a5"},i("path",{key:"b7e3b2da13a756848cf0b951fbf0b8a79d78efba",d:"M294.48,316.393H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,316.393,294.48,316.393z"}))))),i("div",{key:"08e454bab5a674a9ace140604e6f6defe3a057df"},"Scan the Invoice")),i("div",{key:"173d145e54f7b549428fc380acc545fc9a427fd6",style:{position:"absolute"},class:"loading-wrapper"},i("div",{key:"c799a9adecb8bcadc046109048de438125b6f90d",class:c("lds-ripple",this.isLoading&&"active")},i("div",{key:"46c014c57c7b7aaf6f91cf6987f0aa8c16689b42"}),i("div",{key:"a85c595f48215b5f400c6f69dd84447649c2c693"})),i("div",{key:"b74cb5e6630b1b4abdee266fc1341392da488ecb",class:c("lds-ripple-loading",this.isLoading&&"active")},"Processing ..."))),i("input",{key:"39add573de99d4e402f1d0fa887ad5755cbcf1d1",class:"qr-input",spellcheck:"false",onInput:this.onValueChanges,onKeyDown:this.qrCodeKeyDown,onBlur:()=>this.input.focus(),autocomplete:"off",disabled:s,placeholder:"",autofocus:!0,style:{marginTop:"20px",padding:"10px 0px",fontSize:"16px"}})))))))}get el(){return this}static get watchers(){return{isLoading:["onIsLoadingChange"],canceledItems:["changeInternalCanceledItem"],unInvoicedByBrokerName:["changeConfirmUnInvoicedTBPVehicles"],vin:["changeInternalVin"],item:["changeInternalItem"]}}static get style(){return'*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.outline{outline-style:solid}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host{all:initial!important;display:block}*{box-sizing:content-box;margin:revert;padding:revert}.dynamic-claim-processor{align-items:center;background:#fff;display:flex;flex-direction:row;font-family:Arial;height:100%;justify-content:center;left:0;opacity:0;position:fixed;top:0;transform:translateY(0) scale(110%);transition:.4s;visibility:hidden;width:100%;z-index:999999999999999}.dynamic-claim-processor.active{opacity:1;transform:translateY(0) scale(100%);visibility:visible}.dynamic-claim-processor-wrapper{align-items:center;display:flex;flex:1;flex-direction:column;height:100%;justify-content:space-between;overflow:auto;padding:50px}.dynamic-claim-processor .qr-input{background:none;border:none;border-bottom:1px solid #ddd;color:#424242;font-size:14px;outline:none;padding:7px;text-align:center;width:100%}.dynamic-claim-processor-info-box{background:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);color:#424242;font-size:14px;margin-top:50px;padding:0;width:100%}.dynamic-claim-processor-info-box-header{background:#f6f6f6;border:1px solid #ededed;padding:7px 0;text-align:center}.dynamic-claim-processor-info-box table{width:100%}.dynamic-claim-processor-info-box table td,.dynamic-claim-processor-info-box table th{border-bottom:1px solid #ededed;padding:5px;text-align:center;text-align:left}.dynamic-claim-processor-progress{align-items:center;display:flex;flex-direction:row;gap:30px;justify-content:space-evenly;margin-bottom:16px;margin-top:10px;width:100%}.dynamic-claim-processor-progress .dynamic-claim-processor-progress-step{background:#f4f4f4;border:1px solid #d4d4d4;border-bottom:5px double #3071a9;border-radius:5px;box-shadow:0 0 4px 2px #eee;color:#3071a9;flex:1;margin-top:0;padding:15px;text-align:center}.lds-ripple{display:inline-block;height:80px;left:50%;left:0;margin-left:12px;position:relative;top:55px;top:0;width:80px}.lds-ripple,.lds-ripple div{box-sizing:border-box}.lds-ripple-loading.active,.lds-ripple.active{opacity:1!important;visibility:visible!important}.lds-ripple div{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #3071a9;border-radius:50%;opacity:1;position:absolute;z-index:10}.lds-ripple div:nth-child(2){animation-delay:-.5s}.loading-wrapper,.scan-invoice-wrapper{transition:.4s}.dynamic-claim-processor-progress-step.processing .scan-invoice-wrapper,.loading-wrapper{opacity:0;transform:scale(70%)}.dynamic-claim-processor-progress-step.processing .loading-wrapper{opacity:1;transform:scale(100%)}@keyframes lds-ripple{0%{height:8px;left:36px;opacity:0;top:36px;width:8px}4.9%{height:8px;left:36px;opacity:0;top:36px;width:8px}5%{height:8px;left:36px;opacity:1;top:36px;width:8px}to{height:80px;left:0;opacity:0;top:0;width:80px}}#dynamic-claim-processor-close-icon{cursor:pointer;height:20px;position:absolute;right:50px;top:20px;transition:.5s;width:20px}#dynamic-claim-processor-close-icon:hover{transform:rotate(180deg) scale(150%)}.admonition-title{background-color:#ff91001a;font-size:13px;font-weight:700;margin:0;padding:10px 5px}.admonition-title:before{background-color:#ff9100;content:"";display:inline-block;height:20px;margin-right:5px;-webkit-mask-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z"/></svg>\');vertical-align:sub;width:20px}.admonition{background-color:var(--md-admonition-bg-color);border:.075rem solid #ff9100;border-radius:.2rem;box-shadow:0 .2rem .5rem #0000000d,0 0 .05rem #0000001a;color:var(--md-admonition-fg-color);display:flow-root;margin:15px 0 0;padding:0;page-break-inside:avoid;transition:box-shadow 125ms;width:100%}.cancel-confirmation-box{background:#f8f8f8;border:1px solid #e1e1e1;border-radius:5px;font-weight:700;margin-bottom:10px;padding:10px 25px}.dynamic-claim-processor-progress.disabled{opacity:.6}.static{position:static}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.m-\\[3px\\]{margin:3px}.my-4{margin-bottom:1rem;margin-top:1rem}.ml-1{margin-left:.25rem}.border-separate{border-collapse:separate}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.pl-10{padding-left:2.5rem}'}},[1,"dynamic-redeem",{vin:[1],item:[16],canceledItems:[16],unInvoicedByBrokerName:[1,"un-invoiced-by-broker-name"],handleScanner:[16],handleQrChanges:[16],loadingStateChange:[16],confirmServiceCancellation:[32],confirmUnInvoicedTBPVehicles:[32],internalVin:[32],isOpened:[32],internalItem:[32],internalCanceledItem:[32],isLoading:[32],quite:[64],getQrValue:[64]},void 0,{isLoading:["onIsLoadingChange"],canceledItems:["changeInternalCanceledItem"],unInvoicedByBrokerName:["changeConfirmUnInvoicedTBPVehicles"],vin:["changeInternalVin"],item:["changeInternalItem"]}]);function o(){"undefined"!=typeof customElements&&["dynamic-redeem"].forEach((e=>{"dynamic-redeem"===e&&(customElements.get(e)||customElements.define(e,d))}))}o();export{d as D,o as d}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import { h } from './index-ef54644b.js';
|
|
6
|
-
import { l as loaderSvg } from './loader-027b88af.js';
|
|
7
|
-
import { c as cn } from './cn-cc419b94.js';
|
|
8
|
-
|
|
9
|
-
function Loading({ isLoading }) {
|
|
10
|
-
return (h("div", { class: cn('size-full transition-all z-50 duration-100 flex items-center justify-center pointer-events-none absolute ', { 'opacity-0': !isLoading }) },
|
|
11
|
-
h("img", { class: "animate-spin-2s size-[40px]", src: loaderSvg })));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { Loading as L };
|