Merge branch 'develop' into feature/CASH-152-ajc

This commit is contained in:
Adam Caouette 2025-03-11 14:24:12 -04:00
commit 43e5181f2a
7 changed files with 31 additions and 9 deletions

11
package-lock.json generated
View file

@ -8,6 +8,7 @@
"name": "Safelite", "name": "Safelite",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"@iframe-resizer/child": "^5.3.3",
"axios": "^0.23.0", "axios": "^0.23.0",
"bootstrap": "^5.3.3", "bootstrap": "^5.3.3",
"core-js": "^3.38.1", "core-js": "^3.38.1",
@ -2162,6 +2163,16 @@
"dev": true, "dev": true,
"license": "BSD-3-Clause" "license": "BSD-3-Clause"
}, },
"node_modules/@iframe-resizer/child": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/@iframe-resizer/child/-/child-5.3.3.tgz",
"integrity": "sha512-A+avzzQ6R5AaK0RQ/v0sxrN/S7zeS0U7TE/Jcc2Wln0gpVHpkEMHLOYVBAS2ho8ZA6yhbyZeNoDCh3RMtCp14w==",
"license": "GPL-3.0",
"funding": {
"type": "individual",
"url": "https://iframe-resizer.com/pricing/"
}
},
"node_modules/@isaacs/cliui": { "node_modules/@isaacs/cliui": {
"version": "8.0.2", "version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",

View file

@ -11,6 +11,7 @@
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
"@iframe-resizer/child": "^5.3.3",
"axios": "^0.23.0", "axios": "^0.23.0",
"bootstrap": "^5.3.3", "bootstrap": "^5.3.3",
"core-js": "^3.38.1", "core-js": "^3.38.1",

View file

@ -61,11 +61,11 @@
<div class="col-12"> <div class="col-12">
<div <div
v-if="showDonationSuccess" v-if="showDonationSuccess"
class="d-flex justify-content-center align-items-center btn-success w-100 mb-2" class="d-flex justify-content-center align-items-center btn-success w-100"
v-html="DonationThanksAlertWidget"></div> v-html="DonationThanksAlertWidget"></div>
</div> </div>
</div> </div>
<div class="row px-4"> <div class="row px-4 mt-2">
<div class="col"> <div class="col">
<alert <alert
v-if="showDonationError" v-if="showDonationError"
@ -142,7 +142,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.donation-block { .donation-block {
padding: 1rem 0; padding: 1rem 0 0 0;
background-color: $gray-100; background-color: $gray-100;
border-radius: 0; border-radius: 0;

View file

@ -206,6 +206,7 @@ export default {
isItac: Boolean, isItac: Boolean,
isNoComp: Boolean, isNoComp: Boolean,
isExpandedOnLoad: Boolean, isExpandedOnLoad: Boolean,
isMSRFeeApplicable: Boolean,
}, },
data() { data() {
return { return {
@ -852,9 +853,6 @@ export default {
isCashItacNoComp() { isCashItacNoComp() {
return !this.isInsurance || this.isITAC || this.isNoComp; return !this.isInsurance || this.isITAC || this.isNoComp;
}, },
getIsMSRFeeApplicableFromStore() {
return this.$store.getters.order.isMSRFeeApplicable;
},
mobileFeeCartItemName() { mobileFeeCartItemName() {
return this.getCmsContent("MobileServiceTextWidget", "Text"); return this.getCmsContent("MobileServiceTextWidget", "Text");
}, },
@ -871,7 +869,7 @@ export default {
(mobileFeeLineItem?.sellingPrice ?? 0); (mobileFeeLineItem?.sellingPrice ?? 0);
if (mobileTotal > 0) { if (mobileTotal > 0) {
if (this.getIsMSRFeeApplicableFromStore) { if (this.isMSRFeeApplicable) {
showMobileFeeCartItem = this.isCashItacNoComp; showMobileFeeCartItem = this.isCashItacNoComp;
} else { } else {
showMobileFeeCartItem = true; showMobileFeeCartItem = true;

View file

@ -62,7 +62,8 @@
:shouldHideRecalibration="shouldHideRecalibration" :shouldHideRecalibration="shouldHideRecalibration"
:isExpandedOnLoad="false" :isExpandedOnLoad="false"
:isItac="isItac" :isItac="isItac"
:isNoComp="isNoComp" /> :isNoComp="isNoComp"
:isMSRFeeApplicable="isMSRFeeApplicable" />
<div class="mt-3" v-if="DisplayFosterLove"> <div class="mt-3" v-if="DisplayFosterLove">
<donationBlock <donationBlock
@ -423,6 +424,9 @@ export default {
damageInfo() { damageInfo() {
return this.submittedOrder?.damage; return this.submittedOrder?.damage;
}, },
isMSRFeeApplicable() {
return this.submittedOrder?.isMSRFeeApplicable;
},
isInsurance() { isInsurance() {
return this.submittedOrder?.payment?.isInsurance; return this.submittedOrder?.payment?.isInsurance;
}, },

View file

@ -36,7 +36,8 @@
:shouldHideRecalibration="shouldHideRecalibration" :shouldHideRecalibration="shouldHideRecalibration"
:isItac="isItac" :isItac="isItac"
:isNoComp="isNoComp" :isNoComp="isNoComp"
:isExpandedOnLoad="false" /> :isExpandedOnLoad="false"
:isMSRFeeApplicable="isMSRFeeApplicable" />
<hr /> <hr />
@ -689,6 +690,9 @@ export default {
damageInfo() { damageInfo() {
return this.$store.getters.damage; return this.$store.getters.damage;
}, },
isMSRFeeApplicable() {
return this.$store.getters.order.isMSRFeeApplicable;
},
isInsurance() { isInsurance() {
return this.hasSubmittedOrder() return this.hasSubmittedOrder()
? this.getSubmittedOrder()?.payment.isInsurance ? this.getSubmittedOrder()?.payment.isInsurance

View file

@ -21,6 +21,10 @@ import {
getSubTotal, getSubTotal,
getSalesTax, getSalesTax,
} from "@/helpers/cart-and-payment-helper.js"; } from "@/helpers/cart-and-payment-helper.js";
// iframeResizer IS loaded into the page and necessary for the package to
// to auto scale the iFrame this page is loaded in
// Do not remove despite showing as "unused" CASH-309
import iframeResizer from "@iframe-resizer/child";
export default { export default {
name: "payment-pia-return", name: "payment-pia-return",