PageSourceSearch

https://www.accessorize.com/on/demandware.static/Sites-accessorize…/js/powerreviews/PRTrackerLoader.js

js accessorize.com collected 2026-10-03 20:31:44 UTC 7,236 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmnsn=self.webpackChunkmnsn||[]).push([[5707,6619],{54200:function(t,r,e){function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}function i(t){var r=function(t){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(r)?r:r+""}function c(t,r){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},c(t,r)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}e.r(r),e.d(r,{default:function(){return s}});var s=function(t){!function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&c(t,r)}(s,t);var r,e,i=function(t){var r=a();return function(){var e,n=u(t);if(r){var i=u(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,r){if(r&&("object"==o(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}(s);function s(){return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return r=s,e=[{key:"initState",value:function(){this.setLibraryUrl(),this.setLoadingChecks(),this.loadLibrary()}},{key:"setLibraryUrl",value:function(){this.libraryUrl="https://ui.powerreviews.com/stable/4.1/ui.js"}}
1,{key:"setLoadingChecks",value:function(){this.loadingChecks=["isLibraryLoaded"]}},{key:"isScrollAfterSubmitEnabled",value:function(){return this.options.isScrollAfterSubmit}},{key:"execLibraryActions",value:function(){this.isScrollAfterSubmitEnabled()&&(this.options.config.on_submit=function(){window.scrollTo(0,0)}),window.pwr("render",this.options.config)}},{key:"doOrderTrack",value:function(){try{var t=window.POWERREVIEWS.tracker.createTracker({merchantGroupId:this.options.config.merchant_group_id}),r={merchantGroupId:this.options.config.merchant_group_id,merchantId:this.options.config.merchant_id,locale:this.options.config.locale,marketingOptIn:!0,userEmail:this.options.customerEmail,userFirstName:this.options.userFirstName,userLastName:this.options.userLastName,orderId:this.options.orderNo,orderItems:this.options.orderItems};this.options.config.merchantUserId&&(r.merchantUserId=this.options.config.merchantUserId),t.trackCheckout(r)}catch(t){console.warn(t)}}},{key:"loadScript",value:function(t){return new Promise(function(r,e){var o=document.createElement("script");o.type="text/javascript",o.onload=r,o.onerror=e,o.src=t,document.head.append(o)})}},{key:"loadLibrary",value:function(){var t=this;if(window.pwr||window.POWERREVIEWS)return this.markLibraryLoaded();this.loadScript(this.libraryUrl).then(function(){t.markLibraryLoaded()}).catch(function(){console.error("PowerReviews library has not been loaded")})}},{key:"isReady",value:function(){var t=this;return this.loadingChecks.every(function(r){return r.split("|").some(function(r){return t[r]})})}},{key:"markLibraryLoaded",value:function(){this.isLibraryLoaded=!0,this.initLibrary()}},{key:"initLibrary",value:function(){this.isReady()&&(window.pwr=window.pwr||function(){(pwr.q=pwr.q||[]).push(arguments)},this.execLibraryActions())}}],e&&n(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),s}(e(91076).A)},20:function(t,r,e){function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}function i(t){var r=function(t){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(r)?r:r+""}function c(t,r){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},c(t,r)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}e.r(r),e.d(r,{default:function(){return s}});var s=function(t){!function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&c(t,r)}(s,t);var r,e,i=function(t){var r=a();return function(){var e,n=u(t);if(r){var i=u(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,r){if(r&&("object"==o(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}(s);function s(){return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return r=s,e=[{key:"setLibraryUrl",value:function(){this.libraryUrl="https://static.powerreviews.com/t/v1/tracker.js"}},{key:"execLibraryActions",value:function(){try{var t=window.POWERREVIEWS.tracker.createTracker({merchantGroupId:this.options.config.merchant_group_id}),r={merchantGroupId:this.options.config.merchant_group_id,merchantId:this.options.config.merchant_id,locale:this.options.config.locale,marketingOptIn:!0,userEmail:this.options.config.userEmail,userFirstName:window.firstName||this.options.config.userFirstName,userLastName:window.lastName||this.options.config.userLastName,orderId:this.options.config.orderId,orderItems:this.options.config.orderItems};this.options.config.merchantUserId&&(r.merchantUserId=this.options.config.merchantUserId),t.trackCheckout(r)}catch(t){console.warn(t)}}}],e&&n(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),s}(e(54200).default)}}]);

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.