jQuery(document).ready(function(a){if(!localStorage)return;if(!window.dokanPageViewsParams)return;let o=(new Date).toISOString().slice(0,10),e=JSON.parse(localStorage.getItem("dokan_pageview_count"));(null===e||e.today&&e.today!==o)&&(e={today:o,post_ids:[]}),e.post_ids.includes(window.dokanPageViewsParams.post_id)||(a.post(window.dokanPageViewsParams.ajax_url,{action:"dokan_pageview",_ajax_nonce:window.dokanPageViewsParams.nonce,post_id:window.dokanPageViewsParams.post_id}),e.post_ids.push(window.dokanPageViewsParams.post_id),localStorage.setItem("dokan_pageview_count",JSON.stringify(e)))});