adp-web-components 0.0.11
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/LICENSE +21 -0
- package/dist/cjs/Loading-ee1a2ceb.js +16 -0
- package/dist/cjs/app-globals-3813fb46.js +9 -0
- package/dist/cjs/cn-f559f9e5.js +2588 -0
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +103 -0
- package/dist/cjs/distributor-lookup.cjs.entry.js +109 -0
- package/dist/cjs/dynamic-claim.cjs.entry.js +306 -0
- package/dist/cjs/dynamic-redeem.cjs.entry.js +145 -0
- package/dist/cjs/form-input.cjs.entry.js +36 -0
- package/dist/cjs/general-inquiry-form.cjs.entry.js +2280 -0
- package/dist/cjs/image-expansion-a9c9c6f7.js +77 -0
- package/dist/cjs/index-d4b5214c.js +1331 -0
- package/dist/cjs/index.cjs.js +6 -0
- package/dist/cjs/loader-baf2418b.js +9 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +109 -0
- package/dist/cjs/paint-thickness.cjs.entry.js +131 -0
- package/dist/cjs/partInformation-2a6a018b.js +34 -0
- package/dist/cjs/service-history.cjs.entry.js +116 -0
- package/dist/cjs/shift-components.cjs.js +29 -0
- package/dist/cjs/vehicle-accessories.cjs.entry.js +135 -0
- package/dist/cjs/vehicle-specification.cjs.entry.js +111 -0
- package/dist/cjs/vehicleInformation-4c1dcaf2.js +52 -0
- package/dist/cjs/warranty-details.cjs.entry.js +281 -0
- package/dist/collection/collection-manifest.json +23 -0
- package/dist/collection/components/dynamic-claim/dynamic-claim.css +1 -0
- package/dist/collection/components/dynamic-claim/dynamic-claim.js +521 -0
- package/dist/collection/components/dynamic-claim/icons/cancelled.svg +8 -0
- package/dist/collection/components/dynamic-claim/icons/expired.svg +9 -0
- package/dist/collection/components/dynamic-claim/icons/pending.svg +9 -0
- package/dist/collection/components/dynamic-claim/icons/processed.svg +9 -0
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.css +1 -0
- package/dist/collection/components/dynamic-redeem/dynamic-redeem.js +334 -0
- package/dist/collection/components/form-input/form-input.css +1 -0
- package/dist/collection/components/form-input/form-input.js +209 -0
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.css +1 -0
- package/dist/collection/components/general-inquiry-form/general-inquiry-form.js +46 -0
- package/dist/collection/components/paint-thickness/paint-thickness.css +1 -0
- package/dist/collection/components/paint-thickness/paint-thickness.js +323 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +294 -0
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -0
- package/dist/collection/components/part-lookup/distributor-lookup.js +299 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -0
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +317 -0
- package/dist/collection/components/parts/Loading.js +10 -0
- package/dist/collection/components/service-history/service-history.css +1 -0
- package/dist/collection/components/service-history/service-history.js +306 -0
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.css +1 -0
- package/dist/collection/components/vehicle-accessories/vehicle-accessories.js +327 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.css +1 -0
- package/dist/collection/components/vehicle-specification/vehicle-specification.js +301 -0
- package/dist/collection/components/warranty-details/assets/check.svg +4 -0
- package/dist/collection/components/warranty-details/assets/loader.svg +11 -0
- package/dist/collection/components/warranty-details/assets/x-mark.svg +4 -0
- package/dist/collection/components/warranty-details/components/CardsContainer.js +9 -0
- package/dist/collection/components/warranty-details/components/Loading.js +10 -0
- package/dist/collection/components/warranty-details/components/SSCTable.js +13 -0
- package/dist/collection/components/warranty-details/components/StatusCard.js +11 -0
- package/dist/collection/components/warranty-details/warranty-details.css +1 -0
- package/dist/collection/components/warranty-details/warranty-details.js +709 -0
- package/dist/collection/global/api/partInformation.js +30 -0
- package/dist/collection/global/api/vehicleInformation.js +48 -0
- package/dist/collection/global/assets/eye.svg +5 -0
- package/dist/collection/global/assets/loader.svg +11 -0
- package/dist/collection/global/lib/cn.js +9 -0
- package/dist/collection/global/lib/form-hook.js +118 -0
- package/dist/collection/global/lib/image-expansion.js +69 -0
- package/dist/collection/global/lib/utils.js +7 -0
- package/dist/collection/global/types/components.js +1 -0
- package/dist/collection/global/types/part-information.js +1 -0
- package/dist/collection/global/types/vehicle-information.js +5 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/templates/mock-data.js +4132 -0
- package/dist/collection/templates/parts/mock-data.js +221 -0
- package/dist/collection/templates/vehicle-lookup.js +218 -0
- package/dist/collection/templates/warranty-mock-data.js +2982 -0
- package/dist/components/dead-stock-lookup.d.ts +11 -0
- package/dist/components/dead-stock-lookup.js +5 -0
- package/dist/components/distributor-lookup.d.ts +11 -0
- package/dist/components/distributor-lookup.js +5 -0
- package/dist/components/dynamic-claim.d.ts +11 -0
- package/dist/components/dynamic-claim.js +5 -0
- package/dist/components/dynamic-redeem.d.ts +11 -0
- package/dist/components/dynamic-redeem.js +5 -0
- package/dist/components/form-input.d.ts +11 -0
- package/dist/components/form-input.js +5 -0
- package/dist/components/general-inquiry-form.d.ts +11 -0
- package/dist/components/general-inquiry-form.js +5 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +5 -0
- package/dist/components/manufacturer-lookup.d.ts +11 -0
- package/dist/components/manufacturer-lookup.js +5 -0
- package/dist/components/p-2b0cc0c6.js +5 -0
- package/dist/components/p-4dc47f5f.js +5 -0
- package/dist/components/p-50f73226.js +5 -0
- package/dist/components/p-5df9bc5f.js +5 -0
- package/dist/components/p-8375923d.js +5 -0
- package/dist/components/p-98d9e7ab.js +5 -0
- package/dist/components/p-a454210b.js +5 -0
- package/dist/components/p-d265c109.js +5 -0
- package/dist/components/p-d5ff7544.js +5 -0
- package/dist/components/paint-thickness.d.ts +11 -0
- package/dist/components/paint-thickness.js +5 -0
- package/dist/components/service-history.d.ts +11 -0
- package/dist/components/service-history.js +5 -0
- package/dist/components/vehicle-accessories.d.ts +11 -0
- package/dist/components/vehicle-accessories.js +5 -0
- package/dist/components/vehicle-specification.d.ts +11 -0
- package/dist/components/vehicle-specification.js +5 -0
- package/dist/components/warranty-details.d.ts +11 -0
- package/dist/components/warranty-details.js +5 -0
- package/dist/esm/Loading-61648252.js +14 -0
- package/dist/esm/app-globals-8befa224.js +7 -0
- package/dist/esm/cn-cc419b94.js +2586 -0
- package/dist/esm/dead-stock-lookup.entry.js +99 -0
- package/dist/esm/distributor-lookup.entry.js +105 -0
- package/dist/esm/dynamic-claim.entry.js +302 -0
- package/dist/esm/dynamic-redeem.entry.js +141 -0
- package/dist/esm/form-input.entry.js +32 -0
- package/dist/esm/general-inquiry-form.entry.js +2276 -0
- package/dist/esm/image-expansion-08c4bf0d.js +73 -0
- package/dist/esm/index-ef54644b.js +1302 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/loader-027b88af.js +7 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/manufacturer-lookup.entry.js +105 -0
- package/dist/esm/paint-thickness.entry.js +127 -0
- package/dist/esm/partInformation-73ece994.js +32 -0
- package/dist/esm/service-history.entry.js +112 -0
- package/dist/esm/shift-components.js +24 -0
- package/dist/esm/vehicle-accessories.entry.js +131 -0
- package/dist/esm/vehicle-specification.entry.js +107 -0
- package/dist/esm/vehicleInformation-f1081f83.js +50 -0
- package/dist/esm/warranty-details.entry.js +277 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/shift-components/index.esm.js +4 -0
- package/dist/shift-components/p-15f86441.entry.js +5 -0
- package/dist/shift-components/p-1ae3a61f.entry.js +5 -0
- package/dist/shift-components/p-517b3e04.js +5 -0
- package/dist/shift-components/p-5df9bc5f.js +5 -0
- package/dist/shift-components/p-65e6ab8e.js +5 -0
- package/dist/shift-components/p-894e7518.entry.js +5 -0
- package/dist/shift-components/p-8c261972.entry.js +5 -0
- package/dist/shift-components/p-8e818568.entry.js +5 -0
- package/dist/shift-components/p-98d9e7ab.js +5 -0
- package/dist/shift-components/p-9bd4471c.entry.js +5 -0
- package/dist/shift-components/p-9f790b14.entry.js +5 -0
- package/dist/shift-components/p-a21e2e2e.js +5 -0
- package/dist/shift-components/p-c113792c.entry.js +5 -0
- package/dist/shift-components/p-d265c109.js +5 -0
- package/dist/shift-components/p-d5ff7544.js +5 -0
- package/dist/shift-components/p-dc9845ed.entry.js +5 -0
- package/dist/shift-components/p-e32b0798.entry.js +5 -0
- package/dist/shift-components/p-e97316d2.js +6 -0
- package/dist/shift-components/p-f759c597.entry.js +5 -0
- package/dist/shift-components/p-feb3df85.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +5 -0
- package/dist/types/components/dynamic-claim/dynamic-claim.d.ts +48 -0
- package/dist/types/components/dynamic-redeem/dynamic-redeem.d.ts +34 -0
- package/dist/types/components/form-input/form-input.d.ts +14 -0
- package/dist/types/components/general-inquiry-form/general-inquiry-form.d.ts +21 -0
- package/dist/types/components/paint-thickness/paint-thickness.d.ts +28 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +25 -0
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -0
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +24 -0
- package/dist/types/components/parts/Loading.d.ts +5 -0
- package/dist/types/components/service-history/service-history.d.ts +23 -0
- package/dist/types/components/vehicle-accessories/vehicle-accessories.d.ts +28 -0
- package/dist/types/components/vehicle-specification/vehicle-specification.d.ts +22 -0
- package/dist/types/components/warranty-details/components/CardsContainer.d.ts +8 -0
- package/dist/types/components/warranty-details/components/Loading.d.ts +5 -0
- package/dist/types/components/warranty-details/components/SSCTable.d.ts +6 -0
- package/dist/types/components/warranty-details/components/StatusCard.d.ts +10 -0
- package/dist/types/components/warranty-details/warranty-details.d.ts +51 -0
- package/dist/types/components.d.ts +388 -0
- package/dist/types/global/api/partInformation.d.ts +19 -0
- package/dist/types/global/api/vehicleInformation.d.ts +33 -0
- package/dist/types/global/lib/cn.d.ts +2 -0
- package/dist/types/global/lib/form-hook.d.ts +54 -0
- package/dist/types/global/lib/image-expansion.d.ts +9 -0
- package/dist/types/global/lib/utils.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +4 -0
- package/dist/types/global/types/part-information.d.ts +30 -0
- package/dist/types/global/types/vehicle-information.d.ts +162 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/loader/cdn.js +5 -0
- package/loader/index.cjs.js +5 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +5 -0
- package/loader/index.js +6 -0
- package/loader/package.json +11 -0
- package/package.json +61 -0
- package/readme.md +104 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"components/dynamic-redeem/dynamic-redeem.js",
|
|
4
|
+
"components/dynamic-claim/dynamic-claim.js",
|
|
5
|
+
"components/form-input/form-input.js",
|
|
6
|
+
"components/general-inquiry-form/general-inquiry-form.js",
|
|
7
|
+
"components/paint-thickness/paint-thickness.js",
|
|
8
|
+
"components/part-lookup/dead-stock-lookup.js",
|
|
9
|
+
"components/part-lookup/distributor-lookup.js",
|
|
10
|
+
"components/part-lookup/manufacturer-lookup.js",
|
|
11
|
+
"components/service-history/service-history.js",
|
|
12
|
+
"components/vehicle-accessories/vehicle-accessories.js",
|
|
13
|
+
"components/vehicle-specification/vehicle-specification.js",
|
|
14
|
+
"components/warranty-details/warranty-details.js"
|
|
15
|
+
],
|
|
16
|
+
"compiler": {
|
|
17
|
+
"name": "@stencil/core",
|
|
18
|
+
"version": "4.22.3",
|
|
19
|
+
"typescriptVersion": "5.5.4"
|
|
20
|
+
},
|
|
21
|
+
"collections": [],
|
|
22
|
+
"bundles": []
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,: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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! 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}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.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))}.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;flex:1 1 0!important;flex-shrink:0!important;width:100%!important}*{box-sizing:content-box;font-family:Arial;margin:revert;padding:revert}.dynamic-claim-wrapper{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);overflow:hidden;padding:0;position:relative}.dynamic-claim-header{background:#f6f6f6;border:1px solid #ededed;padding:15px 0;text-align:center}.dynamic-claim-header-vin{display:inline-block;transition:.4s}.idle .dynamic-claim-header-vin,.loading .dynamic-claim-header-vin{opacity:0;transform:scale(150%);visibility:hidden}.dynamic-claim-body{display:flex;overflow-x:scroll;padding:100px 30px;transition:scrollbar-color .5s ease}.idle .dynamic-claim-body,.loading .dynamic-claim-body{pointer-events:none}.dynamic-claim-wrapper ::-webkit-scrollbar{height:10px;width:10px}.dynamic-claim-wrapper ::-webkit-scrollbar-track{background:#f6f6f6;border-radius:5px;border-top:1px solid #dcdcdc;border-top-left-radius:0;border-top-right-radius:0}.idle .dynamic-claim-body::-webkit-scrollbar-thumb,.loading .dynamic-claim-body::-webkit-scrollbar-thumb{background:transparent}.dynamic-claim-wrapper ::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px}.dynamic-claim-wrapper ::-webkit-scrollbar-thumb:hover{background:#a1a1a1}.dynamic-claim-progress-lane,.loading-lane{align-items:center;background-color:#f2f2f2;border:1px solid #ddd;border-radius:10px;display:flex;flex:1;flex-direction:row;height:10px;justify-content:space-around;position:relative}.idle .dynamic-claim-progress-lane,.loading .dynamic-claim-progress-lane{background-color:transparent;border:1px solid transparent}.loading-lane{position:absolute;visibility:hidden;width:calc(100% - 60px)}.loading .loading-lane{visibility:visible}.dynamic-claim-progress-bar{background-image:linear-gradient(180deg,#428bca,#3071a9);border:1px solid #ddd;border-radius:10px;height:10px;left:0;position:absolute;transition:all;transition-duration:.5s;transition-timing-function:ease-in-out;width:0;z-index:0}.idle .dynamic-claim-progress-bar,.loading .dynamic-claim-progress-bar{opacity:0;width:0!important}.dynamic-claim-item{align-items:center;display:flex;flex-direction:column;font-size:14px;gap:5px;min-width:250px}.popup-position-ref{bottom:0;display:flex;height:0;justify-content:center;position:absolute;width:0}.popup-container{position:fixed;z-index:100}.dynamic-claim-item-popup-info{background-color:#f9f9f9;border:1px solid #ddd;border-radius:5px;color:#282828;opacity:0;padding:20px;transition:.4s;visibility:hidden;width:auto}.dynamic-claim-item-popup-info-triangle.show,.dynamic-claim-item-popup-info.show{opacity:1;visibility:visible}.dynamic-claim-item-popup-info table{border-collapse:collapse;width:100%}.dynamic-claim-item-popup-info table td,.dynamic-claim-item-popup-info table th{border-bottom:1px solid #ddd;padding:10px 50px 10px 10px;text-align:left;white-space:nowrap}.dynamic-claim-item-popup-info table td{font-weight:400}.dynamic-claim-item-popup-info .claim-button{justify-content:center;margin:15px auto auto;width:80%}.dynamic-claim-item-popup-info-triangle{display:flex;justify-content:center;opacity:0;position:relative;transform:translateY(-9px);transition:.4s;visibility:hidden;width:100%;z-index:101}.dynamic-claim-item-popup-info-triangle-up{border-bottom:10px solid #ddd}.dynamic-claim-item-popup-info-triangle-up,.dynamic-claim-item-popup-info-triangle-up2{border-left:10px solid transparent;border-right:10px solid transparent;height:0;position:absolute;width:0}.dynamic-claim-item-popup-info-triangle-up2{border-bottom:10px solid #f9f9f9;margin-top:1px}.dynamic-claim-item-header{align-items:center;cursor:pointer;display:flex;flex-direction:column;height:3em;line-height:1em;padding:10px 0;position:relative;transition:.4s}.dynamic-claim-item-header.load-animation{animation:item-header-fade-in .65s ease forwards}@keyframes item-header-fade-in{0%{opacity:0;transform:translateY(-5px) scale(70%)}to{opacity:1;transform:translateY(0) scale(100%)}}.dynamic-claim-item-header span{font-weight:700}.dynamic-claim-item-header img{transition:.4s}.dynamic-claim-item-header:hover>img{transform:rotate(1turn) scale(125%)}.idle .dynamic-claim-item-header,.loading .dynamic-claim-item-header{opacity:0;transform:translateY(-5px) scale(70%)}.dynamic-claim-item-footer{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;height:4.5em;line-height:1.5em;margin:0;overflow:hidden;padding:0 20px;text-align:center;text-overflow:ellipsis;transition:.4s}.dynamic-claim-item-footer.load-animation{animation:item-footer-fade-in .65s ease forwards}@keyframes item-footer-fade-in{0%{opacity:0;transform:translateY(5px) scale(70%);visibility:hidden}to{opacity:1;transform:translateY(0) scale(100%);visibility:visible}}.idle .dynamic-claim-item-footer,.loading .dynamic-claim-item-footer{opacity:0;transform:translateY(5px) scale(70%);visibility:hidden}.dynamic-claim-item-circle{background-color:#a1a1a1;border:5px double #ececec;border-radius:50%;height:18px;transition:.4s;width:18px;z-index:1}.dynamic-claim-item-circle.load-animation{animation:item-circle-fade-in .65s ease forwards}@keyframes item-circle-fade-in{0%{opacity:0;transform:scale(150%);visibility:hidden}to{opacity:1;transform:scale(100%);visibility:visible}}.idle .dynamic-claim-item-circle,.loading .dynamic-claim-item-circle{opacity:0;transform:scale(150%);visibility:hidden}.dynamic-claim-item.processed .dynamic-claim-item-circle{background-color:#3071a9}.dynamic-claim-item.processed .dynamic-claim-item-header{color:#3071a9}.dynamic-claim-item.expired .dynamic-claim-item-circle{background-color:#282828}.dynamic-claim-item.expired .dynamic-claim-item-headaer{color:#282828}.dynamic-claim-item.cancelled .dynamic-claim-item-circle{background-color:#a80000}.dynamic-claim-item.cancelled .dynamic-claim-item-header{color:#a80000}.dynamic-claim-item.pending .dynamic-claim-item-circle{background-color:#00a300}.dynamic-claim-item.pending .dynamic-claim-item-header{color:#00a300}.dynamic-claim-loading-slider{border-radius:4px;height:10px;left:0;overflow-x:hidden;position:relative;position:absolute;top:0;width:100%}.dynamic-claim-loading-slider-line{background:#ddd;height:10px;opacity:0;position:absolute;width:150%}.dynamic-claim-loading-slider-subline{background-image:linear-gradient(180deg,#428bca,#3071a9);height:10px;position:absolute}.dynamic-claim-wrapper.loading .dynamic-claim-inc{animation:dynamic-claim-increase 2.5s ease infinite}.dynamic-claim-wrapper.loading .dynamic-claim-dec{animation:dynamic-claim-decrease 2.5s ease 1s infinite}@keyframes dynamic-claim-increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes dynamic-claim-decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}.dynamic-claim-button{align-items:center;border:none;border-radius:5px;color:#fff;cursor:pointer;display:flex;font-weight:700;gap:3px;outline:none;padding:0 10px 0 0;transition:.3s}.dynamic-claim-button svg{transition:.2s}.claim-button{stroke:#27ae60;fill:#27ae60;background-color:transparent;border:1px solid #27ae60;color:#27ae60}.claim-button circle{fill:#2ecc71}.claim-button:hover{stroke:#fff;fill:#fff;background-color:#2ecc71;color:#fff}.claim-button:hover circle{fill:#fff}.claim-button:active{background-color:#27ae60}.claim-button:active svg{transform:scale(125%)}.cancel-button{stroke:#c0392b;fill:#c0392b;background-color:transparent;border:1px solid #c0392b;color:#c0392b}.cancel-button circle{fill:#c0392b;transition:.1s}.cancel-button:hover{stroke:#fff;fill:#fff;background-color:#e74c3c;color:#fff}.cancel-button:hover circle{fill:#fff}.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}
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import cn from "../../global/lib/cn";
|
|
7
|
+
import expiredIcon from "./icons/expired.svg";
|
|
8
|
+
import pendingIcon from "./icons/pending.svg";
|
|
9
|
+
import cancelledIcon from "./icons/cancelled.svg";
|
|
10
|
+
import processedIcon from "./icons/processed.svg";
|
|
11
|
+
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
12
|
+
let mockData = {};
|
|
13
|
+
const icons = {
|
|
14
|
+
expired: expiredIcon,
|
|
15
|
+
pending: pendingIcon,
|
|
16
|
+
processed: processedIcon,
|
|
17
|
+
cancelled: cancelledIcon,
|
|
18
|
+
};
|
|
19
|
+
export class DynamicClaim {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.pendingItemHighlighted = false;
|
|
22
|
+
this.onMouseLeave = () => {
|
|
23
|
+
clearTimeout(this.timeoutRef);
|
|
24
|
+
this.popupClasses = '';
|
|
25
|
+
this.timeoutRef = setTimeout(() => {
|
|
26
|
+
this.activePopupIndex = null;
|
|
27
|
+
}, 400);
|
|
28
|
+
};
|
|
29
|
+
this.onMouseEnter = (dynamicClaimItemHeader, idx) => {
|
|
30
|
+
clearTimeout(this.timeoutRef);
|
|
31
|
+
this.activePopupIndex = idx;
|
|
32
|
+
this.timeoutRef = setTimeout(() => {
|
|
33
|
+
const positionRef = dynamicClaimItemHeader.querySelector('.popup-position-ref');
|
|
34
|
+
this.popupPositionRef = positionRef;
|
|
35
|
+
this.calculatePopupPos(this.el.shadowRoot);
|
|
36
|
+
this.popupClasses = 'show';
|
|
37
|
+
}, 50);
|
|
38
|
+
};
|
|
39
|
+
this.baseUrl = undefined;
|
|
40
|
+
this.isDev = false;
|
|
41
|
+
this.queryString = '';
|
|
42
|
+
this.isIdle = true;
|
|
43
|
+
this.popupClasses = '';
|
|
44
|
+
this.externalVin = null;
|
|
45
|
+
this.activePopupIndex = null;
|
|
46
|
+
this.vehicleInformation = undefined;
|
|
47
|
+
this.errorMessage = null;
|
|
48
|
+
this.isLoading = false;
|
|
49
|
+
this.loadingStateChange = undefined;
|
|
50
|
+
this.loadedResponse = undefined;
|
|
51
|
+
}
|
|
52
|
+
async componentDidLoad() {
|
|
53
|
+
this.dynamicClaimBody = this.el.shadowRoot.querySelector('.dynamic-claim-body');
|
|
54
|
+
this.dynamicRedeem = this.el.shadowRoot.getElementById('dynamic-redeem');
|
|
55
|
+
this.dynamicClaimProgressBar = this.el.shadowRoot.querySelector('.dynamic-claim-progress-bar');
|
|
56
|
+
}
|
|
57
|
+
async setMockData(newMockData) {
|
|
58
|
+
mockData = newMockData;
|
|
59
|
+
}
|
|
60
|
+
async setData(newData) {
|
|
61
|
+
clearTimeout(this.networkTimeoutRef);
|
|
62
|
+
if (this.abortController)
|
|
63
|
+
this.abortController.abort();
|
|
64
|
+
this.abortController = new AbortController();
|
|
65
|
+
let scopedTimeoutRef;
|
|
66
|
+
const isVinRequest = typeof newData === 'string';
|
|
67
|
+
const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
|
|
68
|
+
this.externalVin = vin;
|
|
69
|
+
try {
|
|
70
|
+
if (!vin || vin.trim().length === 0) {
|
|
71
|
+
this.isIdle = true;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.isLoading = true;
|
|
75
|
+
this.isIdle = false;
|
|
76
|
+
await new Promise(r => {
|
|
77
|
+
scopedTimeoutRef = setTimeout(r, 1000);
|
|
78
|
+
this.networkTimeoutRef = scopedTimeoutRef;
|
|
79
|
+
});
|
|
80
|
+
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }) : newData;
|
|
81
|
+
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
82
|
+
if (!vehicleResponse)
|
|
83
|
+
throw new Error('Wrong response format');
|
|
84
|
+
if (!Array.isArray(vehicleResponse.serviceItems))
|
|
85
|
+
throw new Error('No Service Available');
|
|
86
|
+
this.vehicleInformation = vehicleResponse;
|
|
87
|
+
}
|
|
88
|
+
this.errorMessage = null;
|
|
89
|
+
this.isLoading = false;
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
93
|
+
return;
|
|
94
|
+
this.isLoading = false;
|
|
95
|
+
this.vehicleInformation = null;
|
|
96
|
+
this.errorMessage = error.message;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async fetchData(requestedVin = this.externalVin) {
|
|
100
|
+
await this.setData(requestedVin);
|
|
101
|
+
}
|
|
102
|
+
onLoadingChange(newValue) {
|
|
103
|
+
if (this.loadingStateChange)
|
|
104
|
+
this.loadingStateChange(newValue);
|
|
105
|
+
this.setLoadingUi(newValue);
|
|
106
|
+
}
|
|
107
|
+
async setLoadingUi(isLoading) {
|
|
108
|
+
if (!isLoading) {
|
|
109
|
+
this.dynamicClaimProgressBar.style.width = '0';
|
|
110
|
+
await new Promise(r => setTimeout(r, 200));
|
|
111
|
+
this.updateProgressBar();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
updateProgressBar() {
|
|
115
|
+
var _a;
|
|
116
|
+
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
117
|
+
if (serviceItems.filter(x => x.status === 'pending').length === 0) {
|
|
118
|
+
if (serviceItems.length === 0)
|
|
119
|
+
this.dynamicClaimProgressBar.style.width = '0%';
|
|
120
|
+
else
|
|
121
|
+
this.dynamicClaimProgressBar.style.width = '100%';
|
|
122
|
+
this.dynamicClaimBody.scrollTo({
|
|
123
|
+
left: this.dynamicClaimBody.scrollWidth,
|
|
124
|
+
behavior: 'smooth',
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
const firstPendingItem = serviceItems.find(x => x.status === 'pending');
|
|
129
|
+
const firstPendingItemIndex = serviceItems.indexOf(firstPendingItem) + 1;
|
|
130
|
+
const firstPendingItemRef = this.dynamicClaimBody.getElementsByClassName('dynamic-claim-item')[firstPendingItemIndex - 1];
|
|
131
|
+
this.dynamicClaimProgressBar.style.width = (firstPendingItemIndex / serviceItems.length - 1 / (serviceItems.length * 2)) * 100 + '%';
|
|
132
|
+
this.dynamicClaimBody.scrollTo({
|
|
133
|
+
left: firstPendingItemRef.offsetLeft - firstPendingItemRef.clientWidth * 3,
|
|
134
|
+
behavior: 'smooth',
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
resetProgressBar() {
|
|
139
|
+
setTimeout(() => {
|
|
140
|
+
this.updateProgressBar();
|
|
141
|
+
}, 100);
|
|
142
|
+
}
|
|
143
|
+
windowScrollListener(newValue) {
|
|
144
|
+
if (newValue) {
|
|
145
|
+
this.scrollListenerRef = () => this.calculatePopupPos(this.el.shadowRoot);
|
|
146
|
+
window.addEventListener('scroll', this.scrollListenerRef);
|
|
147
|
+
this.dynamicClaimBody.addEventListener('scroll', this.scrollListenerRef);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
window.removeEventListener('scroll', this.scrollListenerRef);
|
|
151
|
+
this.dynamicClaimBody.removeEventListener('scroll', this.scrollListenerRef);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
calculatePopupPos(root) {
|
|
155
|
+
const popupPositionRef = root.querySelector('.popup-position-ref');
|
|
156
|
+
let { x, y } = popupPositionRef.getBoundingClientRect();
|
|
157
|
+
const popupContainer = popupPositionRef.querySelector('.popup-container');
|
|
158
|
+
const { width } = popupContainer.getBoundingClientRect();
|
|
159
|
+
const popupInfo = popupContainer.querySelector('.dynamic-claim-item-popup-info');
|
|
160
|
+
const windowWidth = window.innerWidth; // Get the viewport's width
|
|
161
|
+
popupContainer.style.top = `${y}px`;
|
|
162
|
+
popupContainer.style.left = `${x - width / 2}px`;
|
|
163
|
+
const offsetFromLeft = x - width / 2; // Distance from left side of the viewport
|
|
164
|
+
const offsetFromRight = windowWidth - (x + width / 2); // Distance from right side of the viewport
|
|
165
|
+
let movingNeeded = 0;
|
|
166
|
+
let horizontalMargin = 16;
|
|
167
|
+
if (offsetFromRight < horizontalMargin)
|
|
168
|
+
movingNeeded = offsetFromRight - horizontalMargin;
|
|
169
|
+
else if (offsetFromLeft < horizontalMargin)
|
|
170
|
+
movingNeeded = Math.abs(offsetFromLeft - horizontalMargin);
|
|
171
|
+
popupInfo.style.transform = `translateX(${movingNeeded}px)`;
|
|
172
|
+
}
|
|
173
|
+
removeLoadAnimationClass(event) {
|
|
174
|
+
const component = event.target;
|
|
175
|
+
component.classList.remove('load-animation');
|
|
176
|
+
}
|
|
177
|
+
async completeClaim() {
|
|
178
|
+
var _a;
|
|
179
|
+
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
180
|
+
const item = this.cachedClaimItem;
|
|
181
|
+
const serviceDataClone = JSON.parse(JSON.stringify(serviceItems));
|
|
182
|
+
const index = serviceItems.indexOf(item);
|
|
183
|
+
const pendingItemsBefore = serviceDataClone.slice(0, index).filter(x => x.status === 'pending');
|
|
184
|
+
serviceDataClone[index].status = 'processed';
|
|
185
|
+
pendingItemsBefore.forEach(function (otherItem) {
|
|
186
|
+
otherItem.status = 'cancelled';
|
|
187
|
+
});
|
|
188
|
+
this.pendingItemHighlighted = false;
|
|
189
|
+
const vehicleDataClone = JSON.parse(JSON.stringify(this.vehicleInformation));
|
|
190
|
+
vehicleDataClone.serviceItems = serviceDataClone;
|
|
191
|
+
this.vehicleInformation = JSON.parse(JSON.stringify(vehicleDataClone));
|
|
192
|
+
}
|
|
193
|
+
claim(item) {
|
|
194
|
+
var _a;
|
|
195
|
+
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
196
|
+
const vinDataClone = JSON.parse(JSON.stringify(serviceItems));
|
|
197
|
+
const index = serviceItems.indexOf(item);
|
|
198
|
+
//Find other items before this item that have status 'pending'
|
|
199
|
+
let pendingItemsBefore = vinDataClone.slice(0, index).filter(x => x.status === 'pending');
|
|
200
|
+
this.cachedClaimItem = item;
|
|
201
|
+
if (item.maximumMileage === null) {
|
|
202
|
+
pendingItemsBefore = [];
|
|
203
|
+
}
|
|
204
|
+
this.onMouseLeave();
|
|
205
|
+
this.openRedeem(item, pendingItemsBefore);
|
|
206
|
+
}
|
|
207
|
+
async handleRedeemScanner() {
|
|
208
|
+
if (this.isDev) {
|
|
209
|
+
this.dynamicRedeem.handleScanner = async (_) => {
|
|
210
|
+
await new Promise(r => setTimeout(r, 500));
|
|
211
|
+
this.dynamicRedeem.quite();
|
|
212
|
+
this.completeClaim();
|
|
213
|
+
this.dynamicRedeem.handleScanner = null;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
this.dynamicRedeem.handleScanner = async (code) => {
|
|
218
|
+
try {
|
|
219
|
+
const vehicleInformation = this.vehicleInformation;
|
|
220
|
+
const payload = {
|
|
221
|
+
vin: vehicleInformation.vin,
|
|
222
|
+
brandIntegrationID: vehicleInformation.identifiers.brandIntegrationID,
|
|
223
|
+
invoice: code,
|
|
224
|
+
saleInformation: vehicleInformation.saleInformation,
|
|
225
|
+
serviceItem: this.dynamicRedeem.item,
|
|
226
|
+
cancelledServiceItems: this.dynamicRedeem.canceledItems,
|
|
227
|
+
};
|
|
228
|
+
const response = await fetch('/api/vehicle/swift-claim', {
|
|
229
|
+
method: 'POST',
|
|
230
|
+
headers: {
|
|
231
|
+
'Content-Type': 'application/json',
|
|
232
|
+
},
|
|
233
|
+
body: JSON.stringify(payload),
|
|
234
|
+
});
|
|
235
|
+
const data = await response.json();
|
|
236
|
+
if (!data.Success) {
|
|
237
|
+
alert(data.Message);
|
|
238
|
+
this.dynamicRedeem.quite();
|
|
239
|
+
this.dynamicRedeem.handleScanner = null;
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
this.dynamicRedeem.quite();
|
|
243
|
+
this.completeClaim();
|
|
244
|
+
this.dynamicRedeem.handleScanner = null;
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
console.error(error);
|
|
248
|
+
alert('Request failed please try again later');
|
|
249
|
+
this.dynamicRedeem.quite();
|
|
250
|
+
this.dynamicRedeem.handleScanner = null;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
openRedeem(item, oldItems) {
|
|
256
|
+
var _a, _b, _c, _d, _e;
|
|
257
|
+
const vehicleInformation = this.vehicleInformation;
|
|
258
|
+
this.dynamicRedeem.vin = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.vin;
|
|
259
|
+
this.dynamicRedeem.item = item;
|
|
260
|
+
this.dynamicRedeem.canceledItems = oldItems;
|
|
261
|
+
if (((_a = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
|
|
262
|
+
this.dynamicRedeem.unInvoicedByBrokerName = (_e = (_d = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _d === void 0 ? void 0 : _d.broker) === null || _e === void 0 ? void 0 : _e.brokerName;
|
|
263
|
+
else
|
|
264
|
+
this.dynamicRedeem.unInvoicedByBrokerName = null;
|
|
265
|
+
this.handleRedeemScanner();
|
|
266
|
+
}
|
|
267
|
+
createPopup(item) {
|
|
268
|
+
return (h("div", { class: "popup-position-ref" }, h("div", { class: "popup-container" }, h("div", { class: cn('dynamic-claim-item-popup-info-triangle', this.popupClasses) }, h("div", { class: "dynamic-claim-item-popup-info-triangle-up" }), h("div", { class: "dynamic-claim-item-popup-info-triangle-up2" })), h("div", { class: cn('dynamic-claim-item-popup-info', this.popupClasses) }, h("table", null, h("tbody", null, h("tr", null, h("th", null, "Service Type:"), h("td", null, item.type.charAt(0).toUpperCase() + item.type.slice(1))), h("tr", null, h("th", null, "Activation Date"), h("td", null, item.activatedAt)), h("tr", null, h("th", null, "Expiry Date"), h("td", null, item.expiresAt)), h("tr", null, h("th", null, "Claimed At"), h("td", null, item.redeemDate)), h("tr", null, h("th", null, "Redeeming Dealer"), h("td", null, item.dealerName)), h("tr", null, h("th", null, "Invoice Number"), h("td", null, item.invoiceNumber)), h("tr", null, h("th", null, "WIP"), h("td", null, item.wip)), h("tr", null, h("th", null, "Menu Code"), h("td", null, item.menuCode)))), item.status === 'pending' && (h("button", { onClick: () => this.claim(item), class: "dynamic-claim-button claim-button" }, h("svg", { width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "stroke-width": "0" }), h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", null, h("circle", { cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), h("span", null, "Claim")))))));
|
|
269
|
+
}
|
|
270
|
+
render() {
|
|
271
|
+
var _a, _b;
|
|
272
|
+
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
273
|
+
return (h(Host, { key: '69015f288435250b4aa463712cccce2170ee94cb' }, h("dynamic-redeem", { key: '1b304bc3204e4647d50c8272de19d946924ab612', id: "dynamic-redeem" }), h("div", { key: '6bc9e818c42a534eb72a333b25223539fc091531', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: '584e4380f4eb890cc6695291858eba95d9fa1e56', class: "dynamic-claim-header" }, h("strong", { key: 'a4a2e927c9fcc1bd92a1b8a90784145f67a09490', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && h("span", { key: '6166bb327b7bcd7a8f91a5f38914073862dc7d8f', style: { color: 'red' } }, this.errorMessage), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: 'ded5c343882c16009dc2060ce09e3010aa2377cc', class: "dynamic-claim-body" }, h("div", { key: '2658f01a11bd29d449d33354a50b684272eff43a', class: "loading-lane" }, h("div", { key: '9b4136a86be3d26b2400d679e2f8906a12ad63a1', class: "dynamic-claim-loading-slider" }, h("div", { key: 'e5683ba9359f20e88b2e3e4b120bc0c9206b597c', class: "dynamic-claim-loading-slider-line" }), h("div", { key: '502bac6c4f2c7f22cc9c01bd2ee101ab5b615947', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: 'b262ef4ae0abf92657c60a31e67a93ba2ed0b9a4', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: 'b46adda04f3b05c15bb101b9a26d66f47e9c3079', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
|
|
274
|
+
let statusClass = '';
|
|
275
|
+
if (item.status === 'pending') {
|
|
276
|
+
if (serviceItems.findIndex(i => i.status === 'pending') === idx)
|
|
277
|
+
statusClass = item.status;
|
|
278
|
+
}
|
|
279
|
+
else
|
|
280
|
+
statusClass = item.status;
|
|
281
|
+
return (h("div", { key: item.name, class: cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, h("img", { src: icons[item.status], alt: "status icon" }), h("span", null, item.status.charAt(0).toUpperCase() + item.status.slice(1)), this.activePopupIndex === idx && this.createPopup(item)), h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
|
|
282
|
+
}), h("div", { key: '395e563bc4188ffb8a320f80f4ea57bf173bf9ec', class: "dynamic-claim-progress-bar" }))))));
|
|
283
|
+
}
|
|
284
|
+
static get is() { return "dynamic-claim"; }
|
|
285
|
+
static get encapsulation() { return "shadow"; }
|
|
286
|
+
static get originalStyleUrls() {
|
|
287
|
+
return {
|
|
288
|
+
"$": ["dynamic-claim.css"]
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
static get styleUrls() {
|
|
292
|
+
return {
|
|
293
|
+
"$": ["dynamic-claim.css"]
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
static get properties() {
|
|
297
|
+
return {
|
|
298
|
+
"baseUrl": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"mutable": false,
|
|
301
|
+
"complexType": {
|
|
302
|
+
"original": "string",
|
|
303
|
+
"resolved": "string",
|
|
304
|
+
"references": {}
|
|
305
|
+
},
|
|
306
|
+
"required": false,
|
|
307
|
+
"optional": false,
|
|
308
|
+
"docs": {
|
|
309
|
+
"tags": [],
|
|
310
|
+
"text": ""
|
|
311
|
+
},
|
|
312
|
+
"attribute": "base-url",
|
|
313
|
+
"reflect": false
|
|
314
|
+
},
|
|
315
|
+
"isDev": {
|
|
316
|
+
"type": "boolean",
|
|
317
|
+
"mutable": false,
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "boolean",
|
|
320
|
+
"resolved": "boolean",
|
|
321
|
+
"references": {}
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"optional": false,
|
|
325
|
+
"docs": {
|
|
326
|
+
"tags": [],
|
|
327
|
+
"text": ""
|
|
328
|
+
},
|
|
329
|
+
"attribute": "is-dev",
|
|
330
|
+
"reflect": false,
|
|
331
|
+
"defaultValue": "false"
|
|
332
|
+
},
|
|
333
|
+
"queryString": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"mutable": false,
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "string",
|
|
338
|
+
"resolved": "string",
|
|
339
|
+
"references": {}
|
|
340
|
+
},
|
|
341
|
+
"required": false,
|
|
342
|
+
"optional": false,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [],
|
|
345
|
+
"text": ""
|
|
346
|
+
},
|
|
347
|
+
"attribute": "query-string",
|
|
348
|
+
"reflect": false,
|
|
349
|
+
"defaultValue": "''"
|
|
350
|
+
},
|
|
351
|
+
"loadingStateChange": {
|
|
352
|
+
"type": "unknown",
|
|
353
|
+
"mutable": false,
|
|
354
|
+
"complexType": {
|
|
355
|
+
"original": "(isLoading: boolean) => void",
|
|
356
|
+
"resolved": "(isLoading: boolean) => void",
|
|
357
|
+
"references": {}
|
|
358
|
+
},
|
|
359
|
+
"required": false,
|
|
360
|
+
"optional": true,
|
|
361
|
+
"docs": {
|
|
362
|
+
"tags": [],
|
|
363
|
+
"text": ""
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"loadedResponse": {
|
|
367
|
+
"type": "unknown",
|
|
368
|
+
"mutable": false,
|
|
369
|
+
"complexType": {
|
|
370
|
+
"original": "(response: VehicleInformation) => void",
|
|
371
|
+
"resolved": "(response: VehicleInformation) => void",
|
|
372
|
+
"references": {
|
|
373
|
+
"VehicleInformation": {
|
|
374
|
+
"location": "import",
|
|
375
|
+
"path": "~types/vehicle-information",
|
|
376
|
+
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"optional": true,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": ""
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
static get states() {
|
|
390
|
+
return {
|
|
391
|
+
"isIdle": {},
|
|
392
|
+
"popupClasses": {},
|
|
393
|
+
"externalVin": {},
|
|
394
|
+
"activePopupIndex": {},
|
|
395
|
+
"vehicleInformation": {},
|
|
396
|
+
"errorMessage": {},
|
|
397
|
+
"isLoading": {}
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
static get methods() {
|
|
401
|
+
return {
|
|
402
|
+
"setMockData": {
|
|
403
|
+
"complexType": {
|
|
404
|
+
"signature": "(newMockData: MockJson<VehicleInformation>) => Promise<void>",
|
|
405
|
+
"parameters": [{
|
|
406
|
+
"name": "newMockData",
|
|
407
|
+
"type": "{ [key: string]: VehicleInformation; }",
|
|
408
|
+
"docs": ""
|
|
409
|
+
}],
|
|
410
|
+
"references": {
|
|
411
|
+
"Promise": {
|
|
412
|
+
"location": "global",
|
|
413
|
+
"id": "global::Promise"
|
|
414
|
+
},
|
|
415
|
+
"MockJson": {
|
|
416
|
+
"location": "import",
|
|
417
|
+
"path": "~types/components",
|
|
418
|
+
"id": "src/global/types/components.ts::MockJson"
|
|
419
|
+
},
|
|
420
|
+
"VehicleInformation": {
|
|
421
|
+
"location": "import",
|
|
422
|
+
"path": "~types/vehicle-information",
|
|
423
|
+
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"return": "Promise<void>"
|
|
427
|
+
},
|
|
428
|
+
"docs": {
|
|
429
|
+
"text": "",
|
|
430
|
+
"tags": []
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"setData": {
|
|
434
|
+
"complexType": {
|
|
435
|
+
"signature": "(newData: VehicleInformation | string) => Promise<void>",
|
|
436
|
+
"parameters": [{
|
|
437
|
+
"name": "newData",
|
|
438
|
+
"type": "string | VehicleInformation",
|
|
439
|
+
"docs": ""
|
|
440
|
+
}],
|
|
441
|
+
"references": {
|
|
442
|
+
"Promise": {
|
|
443
|
+
"location": "global",
|
|
444
|
+
"id": "global::Promise"
|
|
445
|
+
},
|
|
446
|
+
"VehicleInformation": {
|
|
447
|
+
"location": "import",
|
|
448
|
+
"path": "~types/vehicle-information",
|
|
449
|
+
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
450
|
+
},
|
|
451
|
+
"ReturnType": {
|
|
452
|
+
"location": "global",
|
|
453
|
+
"id": "global::ReturnType"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"return": "Promise<void>"
|
|
457
|
+
},
|
|
458
|
+
"docs": {
|
|
459
|
+
"text": "",
|
|
460
|
+
"tags": []
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"fetchData": {
|
|
464
|
+
"complexType": {
|
|
465
|
+
"signature": "(requestedVin?: string) => Promise<void>",
|
|
466
|
+
"parameters": [{
|
|
467
|
+
"name": "requestedVin",
|
|
468
|
+
"type": "string",
|
|
469
|
+
"docs": ""
|
|
470
|
+
}],
|
|
471
|
+
"references": {
|
|
472
|
+
"Promise": {
|
|
473
|
+
"location": "global",
|
|
474
|
+
"id": "global::Promise"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"return": "Promise<void>"
|
|
478
|
+
},
|
|
479
|
+
"docs": {
|
|
480
|
+
"text": "",
|
|
481
|
+
"tags": []
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"completeClaim": {
|
|
485
|
+
"complexType": {
|
|
486
|
+
"signature": "() => Promise<void>",
|
|
487
|
+
"parameters": [],
|
|
488
|
+
"references": {
|
|
489
|
+
"Promise": {
|
|
490
|
+
"location": "global",
|
|
491
|
+
"id": "global::Promise"
|
|
492
|
+
},
|
|
493
|
+
"VehicleInformation": {
|
|
494
|
+
"location": "import",
|
|
495
|
+
"path": "~types/vehicle-information",
|
|
496
|
+
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"return": "Promise<void>"
|
|
500
|
+
},
|
|
501
|
+
"docs": {
|
|
502
|
+
"text": "",
|
|
503
|
+
"tags": []
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
static get elementRef() { return "el"; }
|
|
509
|
+
static get watchers() {
|
|
510
|
+
return [{
|
|
511
|
+
"propName": "isLoading",
|
|
512
|
+
"methodName": "onLoadingChange"
|
|
513
|
+
}, {
|
|
514
|
+
"propName": "vehicleInformation",
|
|
515
|
+
"methodName": "resetProgressBar"
|
|
516
|
+
}, {
|
|
517
|
+
"propName": "popupClasses",
|
|
518
|
+
"methodName": "windowScrollListener"
|
|
519
|
+
}];
|
|
520
|
+
}
|
|
521
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g stroke-width="0" />
|
|
3
|
+
<g stroke-linecap="round" stroke-linejoin="round" />
|
|
4
|
+
<g>
|
|
5
|
+
<circle cx="12" cy="12" r="8" fill-opacity="0.24" fill="#a80000" stroke="#a80000" />
|
|
6
|
+
<path d="M18 18L6 6" stroke-width="1.2" stroke="#a80000" />
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g stroke-width="0" />
|
|
3
|
+
<g stroke-linecap="round" stroke-linejoin="round" />
|
|
4
|
+
<g>
|
|
5
|
+
<circle cx="12" cy="12" r="8" fill-opacity="0.24" fill="black" stroke="black" />
|
|
6
|
+
<path d="M16 16L8 8" stroke-width="1.2" stroke="black" />
|
|
7
|
+
<path d="M16 8L8 16" stroke-width="1.2" stroke="black" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g stroke-width="0" />
|
|
3
|
+
<g stroke-linecap="round" stroke-linejoin="round" />
|
|
4
|
+
<g>
|
|
5
|
+
<circle cx="12" cy="12" r="8" fill-opacity="0.24" fill="#a1a1a1" stroke="#a1a1a1" />
|
|
6
|
+
<rect x="9.5" y="8" width="2" height="8" fill="#a1a1a1" />
|
|
7
|
+
<rect x="12.5" y="8" width="2" height="8" fill="#a1a1a1" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g stroke-width="0" />
|
|
3
|
+
<g stroke-linecap="round" stroke-linejoin="round" />
|
|
4
|
+
<g>
|
|
5
|
+
<circle cx="12" cy="12" r="8" fill-opacity="0.24" fill="#3071a9" stroke="#3071a9" />
|
|
6
|
+
<path d="M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6" stroke="#3071a9"
|
|
7
|
+
stroke-width="1.2" />
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,: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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;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-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--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;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! 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}
|