PageSourceSearch

https://www.prairiemoon.com/mm5/themes/genesis/branches/production…/dist/4527.1cdca85b1f5e2213ad9a.chunk.js

js prairiemoon.com collected 2026-09-24 09:00:50 UTC 1,544 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_mvps_genesis_quickstart_theme=self.webpackChunk_mvps_genesis_quickstart_theme||[]).push([[4527],{4527:(t,a,i)=>{i.d(a,{AjaxVolumePricing:()=>r});var e=i(1559);class r{#t;#a;containerElement;apiUrl;constructor(t){let{apiUrl:a=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.#a={},this.#t=new e.A(this),this.containerElement=this.#t.isElement("containerElement",t),this.apiUrl=this.#t.isString("apiUrl",a||(window.mivaJS?window.mivaJS.Japi_Url:"")),this.#t.isUrl("apiUrl",this.apiUrl)}async updateContent(t){const a=this.#t.isDefined("productData.product_code",t.product_code),i=t.variant_id?parseInt(t.variant_id,10):0;let e="";if(this.#a[i])e=this.#a[i].template;else{const t=await this.getVolumePricingData(a,i);t&&t.success&&t.data&&(t.data.template&&(e=t.data.template),this.#a[i]={discount_volume:t.data.discount_volume??{},template:e})}this.containerElement.innerHTML=e}async getVolumePricingData(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.#t.isString("getVolumePricingData.productCode",t),""===t)throw new TypeError(`${this.constructor.name} :: Invalid product code provided`);this.#t.isInt("getVolumePricingData.variantId",a);const i=await fetch(this.apiUrl,{body:JSON.stringify({function:"load-volume-pricing",product_code:t,variant_id:a}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw Error(i.statusText);return i.json()}getVariantDataCache(){return this.#a}}}}]);
2//# sourceMappingURL=4527.1cdca85b1f5e2213ad9a.chunk.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.