https://caruso.gr/wp-content/cache/min/1/wp-content/plugins/lets-a…/assets/js/latl.js?ver=1778324494
1(function($){"use strict";let latlApp={init:function(){this.bind();this.dom()},dom:function(){this.form;this.formParent;this.ajaxRunning=!1},bind:function(){document.addEventListener('submit',(event)=>{if(event.target.closest('.latl-form')){event.preventDefault();latlApp.formSubmit.call(event.target,event)}});$(document).on('click','.latl-changer',function(e){e.preventDefault();const linkParent=$(this).closest('.tipi-logged-out-wrap');linkParent.removeClass('latl-active-1 latl-active-2 latl-active-3').addClass('latl-active-'+$(this).data('changer'))});$(document).on('click','.latl-cancel',function(e){e.preventDefault();const linkParent=$(this).closest('.tipi-logged-out-wrap');linkParent.find('.latl-status').attr('class','latl-status').html('');linkParent.removeClass('latl-active-1 latl-active-2 latl-active-3').addClass('latl-active-1')})},formSubmit:function(event){event.preventDefault();latlApp.form=$(this);latlApp.formParent=latlApp.form.closest('.tipi-logged-out');let ajaxFlag=latlApp.form.find('.latl-ajax');if(ajaxFlag.length===0){ajaxFlag=$('<input class="latl-ajax" name="lwa" type="hidden" value="1" />');latlApp.form.prepend(ajaxFlag)} 2if(latlApp.ajaxRunning===!0){return} 3$.ajax({type:'POST',url:latl.ajax_url,data:new URLSearchParams(new FormData(this)).toString(),dataType:'json',beforeSend:function(){latlApp.loadingOn()},success:function(data){latlApp.messageHandler(data);latlApp.loadingOff();if(data.status!=='success'||data.action==='reset'){return} 4setTimeout(function(){location.reload()},300);$(document).trigger('latl_'+data.action,[data,latlApp.form])},error:function(data){latlApp.messageHandler(data);latlApp.loadingOff()},})},loadingOn:function(){latlApp.formParent.addClass('loading').parent().addClass('tipi-spin');latlApp.ajaxRunning=!0},loadingOff:function(){latlApp.formParent.removeClass('loading').parent().removeClass('tipi-spin');setTimeout(function(){latlApp.ajaxRunning=!1},750)},messageHandler:function(data){const statusElement=$('.latl-status');if(data.status==='success'){statusElement.attr('class','latl-status latl-status-confirm').html(data.message)}else{const errorMsg=data.message?data.message:latl.i18n.error;statusElement.attr('class','latl-status latl-status-invalid').html(errorMsg)}}};latlApp.init()})(jQuery)
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.