PageSourceSearch

https://www.mrhandyman.com/brand/_assets/js/o2/opus2.reward-confirmation-loader.054fd8970a2b96addb7c.js

js mrhandyman.com collected 2026-10-03 20:22:56 UTC 2,835 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcrownpeak_opus2=self.webpackChunkcrownpeak_opus2||[]).push([["reward-confirmation-loader"],{"./src/js/opus2/reward/rewardConfirmation.ts"(e,t,n){n.r(t),n.d(t,{RewardConfirmation:()=>o});var i=n(/*! ../util/discovery */"./src/js/opus2/util/discovery.ts");class o{static getInstance(){return o.instance||(o.instance=new o),o.instance}constructor(){this.displayConfirmationDetails()}displayConfirmationDetails(){const e=document.querySelector("#reward-confirmation"),t=sessionStorage.getItem("rewardConfirmation");if(e&&t){const e=JSON.parse(t),{contactInfo:n,specialOffers:i,comment:o}=e;this.updateServiceAddress(e),this.updateContactInfo(n),this.updateSpecialOffers(i),this.updateComment(o)}}updateServiceAddress(e){var t;const n=document.querySelector("#reward_confirmation_address");let o,a=(0,i.getAddressConfirmation)(e);o=a.line1&&a.line2?`${a.line1} ${a.line2}`:a.line1?`${a.line1}`:a.line2?`${a.line2}`:"",o&&n?n.innerHTML=o:null===(t=null==n?void 0:n.closest(".appointment-item"))||void 0===t||t.classList.add("hidden")}testUpdateServiceAddress(){this.updateServiceAddress(JSON.stringify({Address2:"Address 2"}))}updateContactInfo(e){var t;const n=document.querySelector("#reward_confirmation_contact");if(e&&n){n.innerHTML=null==e?void 0:e.name;const t=n.cloneNode(!0);t.innerHTML=null==e?void 0:e.email;const i=n.cloneNode(!0);i.innerHTML=null==e?void 0:e.phone,n.parentNode&&(n.parentNode.appendChild(t),n.parentNode.appendChild(i))}else null===(t=null==n?void 0:n.closest(".appointment-item"))||void 0===t||t.classList.add("hidden")}testUpdateContactInfo(){this.updateContactInfo({name:"FirstName LastName",email:"[email protected]",phone:"1234567890"})}updateSpecialOffers(e){var t,n;const i=document.querySelector("#reward_confirmation_offers");if((null==e?void 0:e.length)>0&&i){const n=document.createElement("ul");let o="";e.forEach(e=>{o+=`<li class="icon-block-text">${e}</li>`}),n.innerHTML=o,null===(t=i.after)||void 0===t||t.call(i,n)}else null===(n=null==i?void 0:i.closest(".appointment-item"))||void 0===n||n.classList.add("hidden")}testUpdateSpecialOffers(){this.updateSpecialOffers(["Test Offer 1","Test Offer 2"])}updateComment(e){var t;const n=document.querySelector("#reward_confirmation_description");e&&n?n.innerHTML=e:null===(t=null==n?void 0:n.closest(".appointment-item"))||void 0===t||t.classList.add("hidden")}testUpdateComment(){this.updateComment("Test Comment")}}globalThis.__RewardConfirmationListenerAdded||(globalThis.__RewardConfirmationListenerAdded=!0,document.addEventListener("DOMContentLoaded",()=>{if(globalThis.__RewardConfirmationInitialized)return;document.querySelector("#reward-confirmation")&&(globalThis.__RewardConfirmationInitialized=!0,o.getInstance())}))}}]);
2//# sourceMappingURL=opus2.reward-confirmation-loader.054fd8970a2b96addb7c.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.