PageSourceSearch

https://www.dmvflorida.org/assets/PriceDisplay.astro_astro_type_script_index_0_lang.Ddqw5lgo.js

js dmvflorida.org collected 2026-09-25 20:28:02 UTC 3,873 bytes, 1 lines download raw bytes

1import{i as e,n as t,r as n,t as r}from"./utils.Amd34JDg.js";var i=function(e){return[`e22fe4f6-4323-409c-92dd-7c08c821261d`,`0dad57b7-4eb3-471c-afd2-08dcc2a21c47`,`13509931-13e2-46ee-905d-08dcc1506fac`,`a4911fd3-f74c-46d4-9f62-4c01edead7fc`,`374dcca8-6e4f-4a7c-afd1-08dcc2a21c47`,`b9e7cf2f-5685-4abf-e556-08dbbf5f0502`,`66cd0a37-37e9-4862-abb2-e7a40b05d99b`,`a3c362b1-2ec4-4f5b-8048-0c941ededb14`,`c45e1c36-e744-451c-afd3-08dcc2a21c47`,`36c6f161-3616-47b8-5138-08dce85ffe3c`,`3275a493-fc68-497a-5137-08dce85ffe3c`,`81c5a7d6-d147-4a19-697e-08ddc4610f64`,`103ca87b-1886-43de-80de-08de10c8b3ba`,`23d1e52e-1d85-4742-57e1-08de290cbe51`,`d3b75655-8ab1-4820-e3b4-08ddcaa816ee`,`ab206f8f-788f-4eba-c501-08de26a33947`].includes(e)},a=`https://api.certus.com/Products/api/v2/Public`,o=`false`,s=`false`,c=`dmvflorida.org`,l=`27f7b897-8c1f-4a42-8e22-021f7773f2e1`,u=`productsData`,d=null,f=new Set,p=!1;function m(e){let t=e.pricing;return{...e,tags:e.tags?[...e.tags]:[],pricing:{...t,priceAfterDiscount:(t.discountAmount??0)>0?Math.round((t.price-t.discountAmount)*100)/100:t.price,coupon:t.discountSource===`Coupon`?n(`_up4cc`):null}}}function h(e){d=e,sessionStorage.setItem(u,JSON.stringify(e));for(let t of f)t(e)}function g(t,i,u,d={}){let f=t&&!d.testPrice?`&testPrice=${t}`:``,p=i&&!d.groupId?`&groupId=${i}`:d.groupId?`&groupId=${l}`:``,_=n(`_up4cc`),v=`${a}/GetProductsBy/?host=${c}${f}${p}${u&&!d.coupon?`&couponcode=${u}`:_?`&couponcode=${_}`:``}&unpublished=${o}&fullSiteBuild=${s}`;fetch(v).then(e=>e.ok?e.json():null).then(n=>{if(n)if(n.errors){let e=n.errors;e?.testPrice&&(r(`_up4tp`),console.log(`Calling API with default testPrice!`)),e?.groupId&&(r(`_up4gid`),console.log(`Calling API with default groupId!`)),g(t,i,u,{testPrice:!!e?.testPrice,groupId:!!e?.groupId})}else{let r=n,a=!0,o=!0,s=r.some(e=>e.pricing?.typePricing?.toLowerCase()===t?.toLowerCase());t&&s?e(`_up4tp`,t.toLowerCase(),30):t&&!d.testPrice&&e(`_up4tp`,t.toLowerCase());let c=r.some(e=>e.pricing?.groupId?.toLowerCase()===i?.toLowerCase()||e.pricing?.groupId?.toLowerCase()===l.toLowerCase());(i||d.groupId)&&c?i&&!d.groupId?e(`_up4gid`,i.toLowerCase(),30):d.groupId&&e(`_up4gid`,l.toLowerCase(),30):d.groupId||(a=!1,console.log(`Calling API with default groupId!`),g(t,i,u,{groupId:!0}));let f=r.some(e=>e.pricing?.discountSource===`Coupon`);u&&f&&!d.coupon?e(`_up4cc`,u.toLowerCase(),30):!d.coupon&&_&&(o=!1,console.log(`Calling API with cookie coupon!`),g(t,i,u,{coupon:!0})),a&&o&&h(r.map(m))}}).catch(e=>console.error(`[pricing-store]`,e))}function _(e){f.add(e),d&&e(d)}function v(){if(p)return;p=!0,e(`unpublished`,`0`);let r=t(`tp`)||n(`_up4tp`)||null,i=t(`gid`)||t(`lgr`)||n(`_up4gid`)||l,a=t(`cc`)||n(`_up4cc`)||null,o=sessionStorage.getItem(u);o&&h(JSON.parse(o)),g(r,i,a)}function y(e,t){let n=e.dataset.pid;if(!n)return;let r=t.find(e=>e.id.toLowerCase()===n.toLowerCase());if(!r)return;let a=r.pricing,o=i(n)?a.price+(a.agencyFee??0):a.price,s=a.discountAmount?o-a.discountAmount:o;if(e.classList.contains(`price`)){let[t,n]=s.toFixed(2).split(`.`);e.getElementsByClassName(`dollars`)[0].innerHTML=t;let r=e.getElementsByClassName(`cents`)[0];r.innerHTML=n,r.classList.toggle(`display-none`,n===`00`),e.classList.add(`shown`)}else if(e.classList.contains(`price-display`))e.innerHTML=`$`+s.toFixed(2).replace(`.00`,``);else if(e.classList.contains(`regular-price`)){e.innerHTML=`$`+o.toFixed(2).replace(`.00`,``);let t=!a.discountAmount;e.classList.toggle(`display-none`,t),e.closest(`.regular-price-display`)?.classList.toggle(`display-none`,t)}else if(e.classList.contains(`savings-amount`)){e.innerHTML=`$`+(a.discountAmount??0).toFixed(2).replace(`.00`,``);let t=!a.discountAmount;e.classList.toggle(`display-none`,t),e.closest(`.savings-display`)?.classList.toggle(`display-none`,t)}}function b(){document.querySelectorAll(`[data-pid]`).forEach(e=>{_(t=>y(e,t))}),v()}b();

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.