PageSourceSearch

https://proparcel.com/static/js/reports/price_report_client.js?v=2025-11-10-01

js proparcel.com collected 2026-09-24 14:51:45 UTC 1,890 bytes, 50 lines download raw bytes

1// Price Report Client Helpers
2;(function(){
3	'use strict';
4	// Menü yenileme (Sorgularım)
5	document.addEventListener('DOMContentLoaded', function(){
6		try { window.__ppPopulateMyQueriesMenu && window.__ppPopulateMyQueriesMenu(); } catch(_) {}
7		// "Sorgularım" açılırken listeyi tazeleyelim
8			const btn = document.getElementById('myQueriesBtn');
9			if (btn) {
10				const refresh = () => { try { window.__ppPopulateMyQueriesMenu && window.__ppPopulateMyQueriesMenu(); } catch(_) {} };
11				btn.addEventListener('mouseenter', refresh, { passive: true });
12				btn.addEventListener('click', function(e){ refresh(); }, { passive: true });
13			}
14	});
15	// Dışa aktarılmış yardımcılar
16		window.ppPriceReport = {
17			refreshSavedList: function(){ try { window.__ppPopulateMyQueriesMenu && window.__ppPopulateMyQueriesMenu(); } catch(_) {} },
18			openSavedById: function(id){
19					const raw = localStorage.getItem('pp_saved_queries_v1');
20					if (!raw) return;
21					const list = JSON.parse(raw) || [];
22					const item = list.find(x => String(x.id) === String(id));
23					if (!item) return;
24
25					// Öncelik: V2 veri snapshot'ı varsa V2 raporu aç
26					if (item.reportData) {
27						// V3 rapor şablonu opener üzerinden bu değişkenleri okuyor
28						try { window.lastParcelResponse = item.reportData; } catch(_) {}
29						try { window.data_general = item.reportData; } catch(_) {}
30						const w3 = window.open('/reports/analysis-report-v4.html', '_blank');
31						if (w3) {
32							try { window.__ppReportV3FinalWindow = w3; } catch(_) {}
33						}
34						return;
35					}
36
37					// Fallback: Eski kayıtlar için V1 HTML snapshot'ını aç
38					if (item.html) {
39						const w = window.open('', '_blank');
40						if (w) {
41								w.document.open();
42								w.document.write(item.html);
43								w.document.close();
44						}
45					}
46			}
47		};
48})(); 
49
50

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.