PageSourceSearch

https://prizmagroup.ru/cache/js/00e81b7cd101857aafa76466ca355b30.js

js prizmagroup.ru collected 2026-10-04 23:22:23 UTC 23,682 bytes, 70 lines download raw bytes

1$(document).on('submit','form.ajax',function(){return diafan_ajax.init(this)});function error_position(k,form){var input=$("input[name="+k+"], textarea[name="+k+"], select[name="+k+"]",form),error=$(".error_"+k,form);if(error.css("position")!=="absolute")
2return;var off=input.offset();off.top+=input.outerHeight();off.left+=5;error.offset(off)}
3var diafan_ajax={before:{},success:{},tag:!1,options:{manager:!0,},init:function(form){this.tag=$("input[name=module]",form).val()+"_"+$("input[name=action]",form).val();if(this.before[this.tag]&&this.before[this.tag](form)===!1){return!1}
4$('input:submit',form).attr('disabled','disabled');$('.errors').hide();$('.error_input').removeClass('error_input');if(!$('input[name=ajax]',form).length){$(form).append('<input type="hidden" name="ajax" value="1">')}
5var pageUrl=window.location.href;var formData=$(form).serializeArray();function getUTMParams(){var utm={};var urlParams=new URLSearchParams(window.location.search);['source','medium','campaign','term','content'].forEach(function(key){var value=urlParams.get('utm_'+key);if(value){utm['utm_'+key]=value}});return utm}
6var utmParams=getUTMParams();for(var key in utmParams){if(utmParams.hasOwnProperty(key)){formData.push({name:key,value:utmParams[key]})}}
7formData.push({name:'page_url',value:pageUrl});sendWebhook(formData);if(!this.options.manager){console.log('manger')
8$(form).trigger('order_ajax_submit.before',[form,1]);this.onSubmitBefore(form,1);$(form).ajaxSubmit({success:function(result,statusText,xhr,form){diafan_ajax.result(form,result);$(document).trigger('order_ajax_submit.after',[form,0]);diafan_ajax.manager.onSubmitAfter(form,0);$(document).trigger('order_ajax_submit.after_last',[form]);diafan_ajax.manager.onSubmitAfterLast(form)}})}else this.manager.addForm(form);$(":text, :password, input[type=email], input[type=tel], textarea, select, :radio, :checkbox",form).change(function(){if($('body').attr('name')){$(".error_"+$('body').attr('name').replace(/\[|\]/gi,""),form).hide()}
9$(this).removeClass('error_input')});return!1},result:function(form,result){$('input:submit',form).removeAttr('disabled');try{var response=$.parseJSON(result)}catch(err){$('body').append(result);$('.diafan_div_error').css('left',$(window).width()/2-$('.diafan_div_error').width()/2);$('.diafan_div_error').css('top',$(window).height()/2-$('.diafan_div_error').height()/2+$(document).scrollTop());$('.diafan_div_error_overlay').css('height',$('body').height());return!1}
10if(response.log){console.log(response.log)}
11if(response.profiler){$(".devoloper_profiling[ajax]").remove();$(".devoloper_profiler[ajax]").remove();$('body').append(prepare(response.profiler));delete response.profiler}
12if(this.success[this.tag]&&this.success[this.tag](form,response)===!1){return!1}
13var captcha_update=$(form).find("input[name='captcha_update']").val();if(response.captcha){if(response.captcha=="recaptcha"){var c=$('.js_captcha',form).find('div').first();grecaptcha.reset(recaptcha[c.attr("id")])}else{$(".captcha",form).html(prepare(response.captcha)).show()}}
14if(!captcha_update&&response.errors){$.each(response.errors,function(k,val){if(k==0){if(!$(".error",form).length){$(form).parent().find(".error").addClass("error_message").html(prepare(val)).show()}else{$(".error",form).addClass("error_message").html(prepare(val)).show()}}else{var input=$("input[name="+k+"], textarea[name="+k+"], select[name="+k+"]",form);$(".error_"+k,form).addClass("error_message").html(prepare(val)).show();if(input.length){input.addClass('error_input').addClass('focus_input');error_position(k,form)}}});$('.focus_input:first',form).focus();$('.focus_input').removeClass('focus_input')}
15if(response.result&&response.result=='success'){$(form).clearForm();$(form).find('.inpattachment input:file').each(function(){if($(this).parents('.inpattachment').is(":hidden")){var clone=$(this).parents('.inpattachment');clone.before(clone.clone(!0));clone.prev('.inpattachment').show();var name=str_replace('hide_','',clone.prev('.inpattachment').find('input').val('').attr("name"),0);clone.prev('.inpattachment').find('input').val('').attr("name",name)}else{$(this).parents('.inpattachment').remove()}});$('input:file',form).removeClass('last');$('input:file',form).val('');if($('.inpimages',form).length){$('.images').text('')}}
16if(response.add){$('.'+$(form).attr("id")).append(prepare(response.add)).show();$(".error:empty").hide()}
17if(response.redirect){window.location=prepare(response.redirect)}
18if(response.curLoc){var curLoc=prepare(response.curLoc);diafan_ajax.set_location(curLoc)}
19if(response.set_location){diafan_ajax.set_location($(form).attr("action"))}
20if(response.data){$.each(response.data,function(k,val){if(k=="form"){k=form}
21if(val){if(response.replace){$(k).replaceWith(prepare(val)).show()}else{$(k).contents().remove();$(k).append(prepare(val)).show()}}else{if(response.replace){$(k).replaceWith('').show()}else{$(k).hide()}}});$(".error:empty").hide()}
22if(response.attachments){$.each(response.attachments,function(k,val){$(form).find(".attachment[name='"+k+"']").remove();$(form).find(".inpattachment input[name='"+k+"']").parents('.inpattachment').remove();$(form).find(".inpattachment input[name='hide_"+k+"']").parents('.inpattachment').before(prepare(val));$(form).find(".attachment[name='"+k+"']").show();if($(form).find(".inpattachment input[name='hide_"+k+"']").attr("max")>$(form).find(".attachment[name='"+k+"']").length){var clone=$(form).find("input[name='hide_"+k+"']").parents('.inpattachment');clone.before(clone.clone(!0));clone.prev('.inpattachment').show();clone.prev('.inpattachment').find('input').val('').attr("name",k)}})}
23if(response.images){$.each(response.images,function(k,val){$(form).find("input[name='"+k+"']").val('');$(form).find("input[name='"+k+"']").parents('div').first().find('.image').remove();if(val==!1){val=''}
24$(form).find("input[name='"+k+"']").before(prepare(val))})}
25if(response.hash){$('input[name=check_hash_user]').val(response.hash)}
26if(response.js){$.each(response.js,function(k,val){if(val){if(val.src)val.src=prepare(val.src);if(val.func)val.func=prepare(val.func);diafan_ajax.manager.addScript(val.src,val.func)}})}
27if(response.css){$.each(response.css,function(k,val){if(val){diafan_ajax.manager.addCSS(prepare(val))}})}
28var ajax_errors=$('.diafan_errors[ajax_errors]'),diafan_errors=$('.diafan_errors:not([ajax_errors])');if(ajax_errors.length){var c=$('a[diafan_errors]').length+1;$('a[ajax_errors]').each(function(){if($(this).closest('.diafan_errors').length)return!0;$(this).removeAttr('ajax_errors').attr('diafan_errors','').attr('href','#error'+c).text('[ERROR'+c+']');$(this).next('.diafan_errors').find('a[ajax_errors]').eq(0).removeAttr('ajax_errors').attr('name','error'+c);c=c+1});if(diafan_errors.length){diafan_errors.find('table tr').after(ajax_errors.find('table tr'));ajax_errors.remove();$('.diafan_div_error').css('left',$(window).width()/2-$('.diafan_div_error').width()/2);$('.diafan_div_error').css('top',$(window).height()/2-$('.diafan_div_error').height()/2+$(document).scrollTop());$('.diafan_div_error_overlay').css('height',$('body').height())}else{ajax_errors.appendTo('body');$('.diafan_div_error').css('left',$(window).width()/2-$('.diafan_div_error').width()/2);$('.diafan_div_error').css('top',$(window).height()/2-$('.diafan_div_error').height()/2+$(document).scrollTop());$('.diafan_div_error_overlay').css('height',$('body').height());ajax_errors.removeAttr('ajax_errors');if(window.base_path===undefined){window.base_path=''}
29diafan_ajax.manager.addScript(window.base_path+'adm/js/admin.errors.js')}}
30return!1},manager:{order:[],count:function(){var count=0;this.order.forEach(function(item,index,list){count++});return count},curForm:{},flag_busy:!1,addForm:function(form){this.order.push(form);this.run();return this},onSubmitBefore:function(form,order_count){},onSubmitAfter:function(form,order_count){},onSubmitAfterLast:function(form){},onSubmitError:function(form,errorThrown){},run:function(){var count=this.count();if(!this.flag_busy&&count>0){this.flag_busy=!this.flag_busy;this.curForm=this.order.shift();$(this.curForm).trigger('order_ajax_submit.before',[this.curForm,count]);this.onSubmitBefore(this.curForm,count);console.log('success');$(this.curForm).ajaxSubmit({async:!0,beforeSubmit:function(arr,form,options){return!0},success:function(result,statusText,xhr,form){diafan_ajax.result(form,result);var current_count=diafan_ajax.manager.count();$(document).trigger('order_ajax_submit.after',[form,current_count]);diafan_ajax.manager.onSubmitAfter(form,current_count);if(current_count<=0){$(document).trigger('order_ajax_submit.after_last',[form]);diafan_ajax.manager.onSubmitAfterLast(form)}}
30,error:function(xhr,statusText,errorThrown){$(document).trigger('order_ajax_submit.error',[diafan_ajax.manager.curForm,errorThrown]);diafan_ajax.manager.onSubmitError(diafan_ajax.manager.curForm,errorThrown)},complete:function(xhr,statusText){diafan_ajax.manager.curForm={};diafan_ajax.manager.flag_busy=!1;if(diafan_ajax.manager.count()>0){diafan_ajax.manager.run()}},})}
31return this},js_view:[],inArray:function(array,value){return $.inArray(array,value)},addScript:function(src,init_func){src=src||'';init_func=init_func||'';if(src&&!$('script[src="'+src+'"]').length&&this.inArray(this.js_view,src)===-1){this.js_view.push(src);$._cachedScript(src).done(function(script,textStatus){})}else if(init_func&&typeof window[init_func]=='function'){window[init_func]()}
32return this},addCSS:function(src){src=src||'';if(src&&!$('link[href="'+src+'"][type="text/css"]').length){$('head').append('<link rel="stylesheet" href="'+src+'" type="text/css" rel="stylesheet" charset="utf-8">')}
33return this},isEmpty:function(obj){for(var key in obj){return!1}
34return!0},},set_location:function(curLoc){curLoc=curLoc.replace(window.location.protocol+"//"+window.location.host+"/",'');try{history.pushState(null,null,"/"+curLoc);return!0}catch(e){}
35curLoc=curLoc.replace(/[\#|\?|\.](.*?)$/gi,'');var parts=curLoc.split(/\s*\/\s*/),part='';while(parts.length){part=parts.pop().replace(/[^\w]*/,'');if(!part)continue;window.chHashFlag=!0;location.hash='#'+part;break}
36return!1},}
37function sendWebhook(data){$.ajax({url:'/sendForm.php',type:'POST',data:JSON.stringify(data),contentType:'application/json',success:function(response){console.log('Данные успешно отправлены на sendForm.php:',response)},error:function(xhr,status,error){console.error('Ошибка при отправке на sendForm.php:',error)}})}
38if([].indexOf){diafan_ajax.manager.inArray=function(array,value){return array.indexOf(value)}}else{diafan_ajax.manager.inArray=function(array,value){for(var i=0;i<array.length;i++){if(array[i]===value)return i}
39return-1}}
40jQuery._cachedScript=function(url,options){options=$.extend(options||{},{dataType:"script",cache:!1,url:url,});return jQuery.ajax(options)};(function($){$.fn.hasEvent=function(eventType,func){if(!this.length||!eventType)return!1;eventType=eventType.split(/\s*\.\s*/);namespace=eventType[1]||!1;eventType=eventType[0];func=func||!1;var result=!1,events=$._data(this.get(0),'events');if(events)$.each(events,function(event,value){if(event!=eventType)return!0;if(namespace||func){if(value)$.each(value,function(k,val){if(!val)return!0;if(namespace&&namespace!=val.namespace)return!0;if(func&&val.handler!=func)return!0;result=!0;return!1})}else result=!0;return!1});return result}})(jQuery);var defer_loading={options:{container:window,emergence:{async:!0,debounce:250,},timeout:3000,},_core:{flag_init:!1,defer_id:0,objects:function(){return $('form input[name="defer"]').filter(':not([loading=true])')},prepare_async:function(form){if(!form.length)return form;this.defer_id++;form.attr("defer_id",this.defer_id).append('<input type="hidden" name="ajax_async" value="1">').find('input').filter('[name^="attributes"]').each(function(){var name=$(this).attr("name").replace(/^attributes/gi,"attributes["+defer_loading._core.defer_id+"]");$(this).attr("name",name)});return form},before_submit:function(event,form,count){if($(form).length&&$(form).attr('loading')=='true'&&$(form).find('input[name="defer"]').eq(0).length){var defer_ids={};$(form).find('[name ^= attributes]').each(function(){var attributes=$(this).attr('name').split(/\[([^\]]*)\]/g);if(attributes.length!=5)return!0;var defer_id=attributes[1].replace(/\D+/g,"");if(!defer_id||defer_ids[defer_id])return!0;defer_ids[defer_id]=!0;var fm=$('form[defer_id="'+defer_id+'"]');if(!fm.length)return!0;fm.delay(defer_loading.options.timeout).hide(0)});$(form).delay(defer_loading.options.timeout).hide(0)}},after_submit:function(event,form){var objects=defer_loading._core.objects();if(!objects.length){defer_loading.destroy()}else{if(objects.filter('[value="async"]').length||objects.filter('[value="sync"]').length){defer_loading.load()}else if(!objects.filter('[value="emergence"]').length){defer_loading.destroy()}}},viewport:function(container){var offset=$(container).offset()||{top:0,left:0};container=container||defer_loading.options.container;return{x:$(container).scrollLeft(),y:$(container).scrollTop(),left:offset.left,top:offset.top,width:$(container).outerWidth(!0),height:$(container).outerHeight(!0),}},in_viewport:function(owner,subject){var comparison=function(a1,a2,b1,b2){a1=a1||0;a2=a2||0;b1=b1||0;b2=b2||0;var buf=0;if(a1>a2){buf=a1;a1=a2;a2=buf}
41if(b1>b2){buf=b1;b1=b2;b2=buf}
42if(a1>b2)return-2;if(a2<b1)return 2;if(a1>b1&&a2>=b2)return-1;if(a1<=b1&&a2<b2)return 1;if(a1>=b1&&a2<=b2)return 0;return 0},vertical=comparison(owner.y,(owner.y+owner.height),subject.top,(subject.top+subject.height));horizontal=comparison(owner.x,(owner.x+owner.width),subject.left,(subject.left+subject.width));return(vertical>-2&&vertical<2&&horizontal>-2&&horizontal<2)},},init:function(){if(this._core.flag_init||!this._core.objects().length)return!1;this._core.flag_init=!0;if(!$(document).hasEvent('order_ajax_submit.before',this._core.before_submit)){$(document).on('order_ajax_submit.before',this._core.before_submit)}
43if(!$(document).hasEvent('order_ajax_submit.after_last',this._core.after_submit)){$(document).on('order_ajax_submit.after_last',this._core.after_submit)}
44if(!$(this.options.container).hasEvent('scroll',this.emergence)){$(this.options.container).on('scroll',{async:this.options.emergence.async},this.emergence.debounce(this.options.emergence.debounce))}
45if(!$(this.options.container).hasEvent('resize',this.emergence)){$(this.options.container).on('resize',{async:this.options.emergence.async},this.emergence.debounce(this.options.emergence.debounce))}
46if(!$(document).hasEvent("submit",defer_loading.event)){$(document).on('submit','form.js_block_defer_form',this.event)}
47this.load();this.load_in_viewport(!0);return!0},destroy:function(){if(!this._core.flag_init)return!1;$(this.options.container).off('scroll',this.emergence);$(this.options.container).off('resize',this.emergence);$(document).off('order_ajax_submit.after_last',this._core.after_submit);$(document).off('order_ajax_submit.before',this._core.before_submit);this._core.flag_init=!1;return!0},load:function(){var form=$();$('form input[name="defer"][value="async"]').each(function(){defer_loading._core.defer_id++;if(!form.length){form=defer_loading._core.prepare_async($(this).attr("loading","true").closest('form')).attr("loading","true")}else{defer_loading._core.prepare_async($(this).attr("loading","true").closest('form')).attr("loading","true").find('input').filter('[name^="attributes"]').appendTo(form)}});if(form.length)form.submit();$('form input[name="defer"][value="sync"]').each(function(){$(this).attr("loading","true").closest('form').attr("loading","true").submit()})},load_in_viewport:function(async){async=async||!1;var viewport=defer_loading._core.viewport(),vp={};if(async){var form=$();$('form input[name="defer"][value="emergence"]').filter(':not([loading=true])').each(function(){var fm=$(this).closest('form');vp=defer_loading._core.viewport(fm);if(!defer_loading._core.in_viewport(viewport,vp))return!0;$(this).attr("loading","true");defer_loading._core.prepare_async(fm).attr("loading","true");if(!form.length){form=fm}else{fm.find('input').filter('[name^="attributes"]').appendTo(form)}});if(form.length)form.submit()}else{$('form input[name="defer"][value="emergence"]').filter(':not([loading=true])').each(function(){var fm=$(this).closest('form');vp=defer_loading._core.viewport(fm);if(!defer_loading._core.in_viewport(viewport,vp))return!0;$(this).attr("loading","true");fm.attr("loading","true");fm.submit()})}
48return this},emergence:function(event){var async=!1;
48if(event!==undefined&&event.data!==undefined&&"async" in event.data){async=event.data.async}
49defer_loading.load_in_viewport(async)},event:function(e){$(this).attr("loading","true").find('input[name="defer"][value="event"]').attr("loading","true");return!1},}
50Function.prototype.defer=function(timeout,obj,args){var that=this;return setTimeout(function(){that.apply(obj,args||[])},timeout)};Function.prototype.debounce=function(delay,obj){var fn=this,timer;return function(){var args=arguments,that=this;clearTimeout(timer);timer=setTimeout(function(){fn.apply(obj||that,args)},delay)}};$(window).on('load',function(e){$(document).on('order_ajax_submit.after_last',function(event,form){var init_func='init_main';if(init_func&&typeof window[init_func]=='function'){window[init_func]()}
51defer_loading.init()});defer_loading.init()});var diafan_cookie={get:function(name){if(!this.isEnable()){return!1}
52var matches=document.cookie.match(new RegExp("(?:^|; )"+name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return matches?decodeURIComponent(matches[1]):undefined},set:function(name,value,options){if(!this.isEnable()){return!1}
53options=options||{};var expires=options.expires;if(typeof expires=="number"&&expires){var d=new Date();d.setTime(d.getTime()+expires*1000);expires=options.expires=d}
54if(expires&&expires.toUTCString){options.expires=expires.toUTCString()}
55value=encodeURIComponent(value);var updatedCookie=name+"="+value;for(var propName in options){updatedCookie+="; "+propName;var propValue=options[propName];if(propValue!==!0){updatedCookie+="="+propValue}}
56document.cookie=updatedCookie},delete:function(name){if(!this.isEnable()){return!1}
57setCookie(name,"",{expires:-1})},isEnable:function(){if(navigator.cookieEnabled){return!0}
58return!1}}
59$(document).on('click','.error_message',function(){$(this).hide()});$(document).on('change',".inpfiles",function(){var inpattachment=$(this).parents('.inpattachment');if(!$(this).attr("max")||$(this).parents('form').find('input[name="'+$(this).attr("name")+'"], .attachment[name="'+$(this).attr("name")+'"]').length<$(this).attr("max")){var clone=$(this).parents('form').find('input[name="hide_'+$(this).attr("name")+'"]').parents('.inpattachment');clone.before(clone.clone(!0));clone.prev('.inpattachment').show().find('input').val('').attr("name",$(this).attr("name"))}
60if(!inpattachment.find(".inpattachment_delete").length){inpattachment.append(' <a href="javascript:void(0)" class="inpattachment_delete">x</a>')}});$(document).on('click',".inpattachment_delete",function(){var inpattachment=$(this).parents('.inpattachment');var input=inpattachment.find('.inpfiles');var last_input=input.parents('form').find('input[name="'+input.attr("name")+'"]').last();if(last_input.val()){var clone=$(this).parents('form').find('input[name="hide_'+input.attr("name")+'"]').parents('.inpattachment');clone.before(clone.clone(!0));clone.prev('.inpattachment').show().find('input').val('').attr("name",input.attr("name"))}
61inpattachment.remove();return!1});$(document).on('click',".attachment_delete",function(){var attachment=$(this).parents('.attachment');attachment.find("input[name='hide_attachment_delete[]']").attr("name","attachment_delete[]");attachment.hide().removeClass('attachment');var last_input=attachment.parents('form').find('input[name="'+attachment.attr("name")+'"]').last();if(!last_input.length||last_input.val()){var clone=$(this).parents('form').find("input[name='hide_"+attachment.attr("name")+"']").parents('.inpattachment');clone.before(clone.clone(!0));clone.prev('.inpattachment').show();clone.prev('.inpattachment').find('input').val('').attr("name",attachment.attr("name"))}
62return!1});$(document).on('change',".inpimages",function(){var form=$(this).parents('form');var self=$(this);form.ajaxSubmit({dataType:'json',data:{ajax:1,images_param_id:self.attr('param_id'),images_prefix:self.attr('prefix'),action:'upload_image'},beforeSubmit:function(a,form,o){$('.errors').hide()},success:function(response){if(response.hash){$('input[name=check_hash_user]').val(response.hash)}
63if(response.data){self.prev('.images').html(prepare(response.data));self.val('')}
64if(response.errors){$.each(response.errors,function(k,val){form.find(".error"+(k!=0?"_"+k:'')).html(prepare(val)).show()})}}})});$(document).on('click',".image_delete",function(){var image=$(this).parents('.image');var form=$(this).parents('form');$.ajax({url:window.location.href,type:'POST',dataType:'json',data:{module:form.find('input[name=module]').val(),action:'delete_image',ajax:!0,element_id:form.find('input[name=id]').val(),tmpcode:form.find('input[name=tmpcode]').val(),id:image.find('img').attr('image_id'),check_hash_user:$('input[name=check_hash_user]').val()},success:(function(response){if(response.hash){$('input[name=check_hash_user]').val(response.hash)}})});image.remove();return!1});$(".timecalendar").each(function(){var st=$(this).attr('showtime');if(st&&st.match(/true/i)){$(this).datetimepicker({dateFormat:'dd.mm.yy',timeFormat:'hh:mm'});new IMask(this,{mask:'00.00.0000 00:00',})}else{$(this).datepicker({dateFormat:'dd.mm.yy'});new IMask(this,{mask:'00.00.0000',})}});$(document).on('keydown','input[type=number], input.number',function(evt){evt=(evt)?evt:((window.event)?event:null);if(evt){var elem=(evt.target)?evt.target:(evt.srcElement?evt.srcElement:null);
64if(elem){var charCode=evt.charCode?evt.charCode:(evt.which?evt.which:evt.keyCode);if((charCode<32)||(charCode>44&&charCode<47)||(charCode>95&&charCode<106)||(charCode>47&&charCode<58)||charCode==188||charCode==191||charCode==190||charCode==110){return!0}else{return!1}}}});$('.js_mask').each(function(){new IMask(this,{mask:$(this).attr('mask'),})});$(".error:empty").hide();$(document).on('click','a[rel=large_image]',function(){var self=$(this);window.open(self.attr("href"),'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+(self.attr("width")*1+40)+',height='+(self.attr("height")*1+40));return!1});function prepare(string){string=str_replace('&lt;','<',string);string=str_replace('&gt;','>',string);string=str_replace('&amp;','&',string);return string}
65function str_replace(search,replace,subject,count){f=[].concat(search),r=[].concat(replace),s=subject,ra=r instanceof Array,sa=s instanceof Array;s=[].concat(s);if(count){this.window[count]=0}
66for(i=0,sl=s.length;i<sl;i++){if(s[i]===''){continue}
67for(j=0,fl=f.length;j<fl;j++){temp=s[i]+'';repl=ra?(r[j]!==undefined?r[j]:''):r[0];s[i]=(temp).split(f[j]).join(repl);if(count&&s[i]!==temp){this.window[count]+=(temp.length-s[i].length)/f[j].length}}}
68return sa?s:s[0]}
69function get_selected(element,parent){var option=(typeof element=='string')?$(element+" option:first-child",parent):$("option:first-child",element);$(element,parent).find("option").each(function(){if($(this).attr("selected")==="selected"){option=$(this);return!1}});return option}
70$(".faq__title").click(function(){const $item=$(this).closest(".faq__item");$item.toggleClass("active").find(".faq__content").slideToggle();$item.siblings(".faq__item").removeClass("active").find(".faq__content").slideUp()})

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.