PageSourceSearch

https://www.tollmans.co.il/static/js/common.js?v=325

js tollmans.co.il collected 2026-09-28 13:19:50 UTC 127,253 bytes, 1,792 lines download raw bytes

1 /*! Image Map Resizer (imageMapResizer.min.js ) - v1.0.10 - 2019-04-10
2 *  Desc: Resize HTML imageMap to scaled image.
3 *  Copyright: (c) 2019 David J. Bradshaw - [email protected]
4 *  License: MIT
5 */
6
7!function(){"use strict";function r(){function e(){var r={width:u.width/u.naturalWidth,height:u.height/u.naturalHeight},a={width:parseInt(window.getComputedStyle(u,null).getPropertyValue("padding-left"),10),height:parseInt(window.getComputedStyle(u,null).getPropertyValue("padding-top"),10)};i.forEach(function(e,t){var n=0;o[t].coords=e.split(",").map(function(e){var t=1==(n=1-n)?"width":"height";return a[t]+Math.floor(Number(e)*r[t])}).join(",")})}function t(e){return e.coords.replace(/ *, */g,",").replace(/ +/g,",")}function n(){clearTimeout(d),d=setTimeout(e,250)}function r(e){return document.querySelector('img[usemap="'+e+'"]')}var a=this,o=null,i=null,u=null,d=null;"function"!=typeof a._resize?(o=a.getElementsByTagName("area"),i=Array.prototype.map.call(o,t),u=r("#"+a.name)||r(a.name),a._resize=e,u.addEventListener("load",e,!1),window.addEventListener("focus",e,!1),window.addEventListener("resize",n,!1),window.addEventListener("readystatechange",e,!1),document.addEventListener("fullscreenchange",e,!1),u.width===u.naturalWidth&&u.height===u.naturalHeight||e()):a._resize()}function e(){function t(e){e&&(!function(e){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("MAP"!==e.tagName.toUpperCase())throw new TypeError("Expected <MAP> tag, found <"+e.tagName+">.")}(e),r.call(e),n.push(e))}var n;return function(e){switch(n=[],typeof e){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(e||"map"),t);break;case"object":t(e);break;default:throw new TypeError("Unexpected data type ("+typeof e+").")}return n}}"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e():window.imageMapResize=e(),"jQuery"in window&&(window.jQuery.fn.imageMapResize=function(){return this.filter("map").each(r).end()})}();
8
9
10
11
12/* https://trello.com/c/J4rd0RtT */
13window.addEventListener('DOMContentLoaded', showCookiesModal);
14function showCookiesModal() {
15    if (jQuery('#cookies_modal').length) {	
16		let now = Math.floor(Date.now() / 1000);
17        let lastTime = localStorage.getItem('tlmns_cookies_consent');
18		if (lastTime != null) {
19			lastTime = parseInt(lastTime);
20		}
21        if (lastTime == null || lastTime <= now - (60^60*24*365)) {
22            setTimeout(() => {           
23				let open = openCloseModal('cookies_modal', 'open', true);
24            }, 3000);
25        }
26    }
27}
28/* https://trello.com/c/J4rd0RtT */
29
30
31jQuery(document).on('submit', '.milan_box_form_contact', function(ev) {
32
33    ev.preventDefault();
34
35    elmobj = jQuery(this);
36    elmobj.find('.milanmsg_gen_error').html('');  
37    var mail = elmobj.find('input[name="email"]').val();
38    var name = elmobj.find('input[name="fname"]').val();
39    var phone = elmobj.find('input[name="phone"]').val();
40    var form_type = elmobj.find('input[name="form_type"]').val();
41
42    // var reason = elmobj.find('select[name="reason"]').val(); // Temp - Uncomment later
43    elmobj.find('.milanmsg').html('');
44
45    var isThereError = false;
46    if (name.length == 0) {
47        elmobj.find('.milanmsg_fname').html(elmobj.find('.milanmsg_fname').data('err1'));
48        isThereError = true;
49    }
50
51    var orderId='';
52    if(form_type=='cancellation'){
53
54        orderId=elmobj.find('input[name="order_id"]').val();
55
56        if (orderId.length==0) {
57            elmobj.find('.milanmsg_order_id').html(elmobj.find('.milanmsg_order_id').data('err1'));
58            isThereError = true;
59        } else {
60            var orderIdstest = /^\d+$/.test(orderId);
61            if (orderId.length != 6 || !orderIdstest) {
62                elmobj.find('.milanmsg_order_id').html(elmobj.find('.milanmsg_order_id').data('err2'));
63                isThereError = true;
64            }
65        }
66
67    }
68    
69    if (phone.length != 10) {
70        elmobj.find('.milanmsg_phone').html(elmobj.find('.milanmsg_phone').data('err1'));
71            isThereError = true;
72    }
73    var isphone = /^\d+$/.test(phone);
74
75    if (phone.length>0 && !isphone ) {
76        elmobj.find('.milanmsg_phone').html(elmobj.find('.milanmsg_phone').data('err2'));
77        isThereError = true;
78    }
79    if (mail.length == 0) {
80        elmobj.find('.milanmsg_mail').html(elmobj.find('.milanmsg_mail').data('err1'));
81        isThereError = true;
82    }
83    if (mail.length > 0 && !email_verify2(mail)) {
84        elmobj.find('.milanmsg_mail').html(elmobj.find('.milanmsg_mail').data('err2'));
85        isThereError = true;
86    }
87
88    if(elmobj.find('textarea[name="messege"]').length>0){
89        var txt = elmobj.find('textarea[name="messege"]').val();
90            if (txt.length == 0 || txt.length > 150) {
91            elmobj.find('.milanmsg_message').html(elmobj.find('.milanmsg_message').data('err1'));
92            isThereError = true;
93        }
94    }
95    
96    if(elmobj.find('textarea[name="messege"]').length>0){
97        var txt = elmobj.find('textarea[name="messege"]').val();
98            if (txt.length == 0 || txt.length > 150) {
99            elmobj.find('.milanmsg_message').html(elmobj.find('.milanmsg_message').data('err1'));
100            isThereError = true;
101        }
102    }
103
104    if (isThereError) {
105        elmobj.find('.milanmsg').html(elmobj.find('.milanmsg').data('err1'));   
106        ev.preventDefault();
107        return;
108    } else {
109    
110        if (typeof grecaptcha.enterprise.execute !== 'undefined' && typeof recaptcha_public !== 'undefined') { 
111
112            grecaptcha.enterprise.execute(recaptcha_public, {
113
114                action: 'submit'
115                
116            }).then(function(token) {
117                elmobj.append('<input name="token" type="hidden" value="'+token+'">');
118                elmobj[0].submit();
119            });
120            
121        } else {
122            elmobj.find('.milanmsg').html('חלה שגיאה אנא רעננו ונסו שנית');
123            ev.preventDefault();
124            return; 
125        }
126    }
127
128});
129
130
131jQuery(document).on('submit', '.milan_box_form.dada-new-form, .milan_box_form.fp_form, .milan_box_form.video_form', function(ev) {
132
133    ev.preventDefault();
134
135    elmobj = jQuery(this);
136    var fname       = elmobj.find('.fname').val();
137    var phone       = elmobj.find('.phone').val();
138    var mail        = elmobj.find('.email').val();
139    var newsletter  = elmobj.find('input[name="agree"]').is(':checked');
140    var page_id     = elmobj.find('input[name="page_id"]').val();
141    var lang        = elmobj.find('input[name="sitelang"]').val();
142    var inforu      = elmobj.find('input[name="inforu"]').length;
143    var form_type   = elmobj.find('input[name="form_type"]').length ? elmobj.find('input[name="form_type"]').val() : 'dada-new';
144
145    // Reset Error Message
146    elmobj.find('.milanmsg').html('');
147
148    if (fname.length == 0) {
149        elmobj.find('.milanmsg').html('<p>יש למלא שדה שם מלא</p>');
150        ev.preventDefault();
151        return;
152    }
153
154    if( /[^a-zA-Zא-ת0-9'-]/.test( fname.replaceAll(' ', '') ) ) {
155        elmobj.find('.milanmsg').append('<p>שם מלא מכיל תווים לא חוקיים</p>');
156        ev.preventDefault();
157        return;
158    }
159
160    if (phone.length == 0 || phone.length != 10) {
161        elmobj.find('.milanmsg').html('<p>
161יש להזין מספר טלפון תקין</p>');
162        return;
163    }
164
165    var phone_numbertest = /^\d+$/.test(phone);
166    if (!phone_numbertest) {
167        elmobj.find('.milanmsg').html('<p>יש להזין את שדה הטלפון אך ורק בספרות</p>');
168        return;
169    }
170
171    if (mail.length == 0) {
172        elmobj.find('.milanmsg').html('<p>יש למלא שדה מייל</p>');
173        return;
174    }
175
176    if (mail.length > 0 && !email_verify2(mail)) {
177        elmobj.find('.milanmsg').html('<p>יש לוודא תקינות כתובת המייל</p>');
178        return;
179    }
180
181    if (!newsletter) {
182        elmobj.find('.milanmsg').html('<p>חובה לסמן אישור דיוור</p>');
183        return;
184    }
185
186    elmobj.find('.milanmsg').html('<p>שולח אנא המתינו...</p>');
187
188
189    if (typeof grecaptcha.enterprise.execute !== 'undefined' && typeof recaptcha_public !== 'undefined') { 
190
191        grecaptcha.enterprise.execute(recaptcha_public, {
192
193            action: 'submit'
194            
195        }).then(function(token) {
196
197            let data = {
198                'action': 'dada_new_send_form',
199                // 'pll_load_front': 'true',
200                'fname': fname,
201                'mail': mail,
202                'phone': phone,
203                'newsletter': newsletter,
204                'page_id': page_id,
205                'lang': lang,
206                'inforu': inforu,
207                'form_type': form_type,
208                'token': token
209            };
210
211
212            jQuery.ajax({
213                type: 'POST',
214                url: woData.ajaxURL,
215                dataType: 'json',
216                data: data,
217                success: function(responseObj, status, jqFObj) {
218
219                    if (typeof responseObj.status !== 'undefined' && responseObj.status == 'success') {
220
221                        var ident = 'Dada';
222                        if (form_type == 'freshpaint') {
223                            ident = 'Fresh Paint';
224                        }
225                        if (form_type == 'video_page') {
226                            ident = 'video_page';
227                        }
228
229                        if (form_type == 'styling') {
230                            ident = 'Styling';
231                            elmobj.find('.form-submit').remove();
232                            elmobj.find('.milanmsg').addClass('success').html('<p>פרטיך התקבלו בהצלחה</p>');
233                        } else if (form_type == 'video_page') {
234                            elmobj.find('.form-submit').remove();
235                            elmobj.find('.milanmsg').addClass('success').html('<p>פרטיך התקבלו בהצלחה</p>');
236                        } else {        
237                            jQuery('.dada-new .contact-us-wrapper > .container .content-wrapper > .image-wrapper').css('margin', '24px 0 40px').after('<h4 class="milan_box_form_title">תודה רבה.<br>ניצור איתך קשר בקרוב.</h4>');
238                            jQuery('.milan_box_form, .dada-new .contact-us-wrapper > .container .content-wrapper > .title-wrapper, .dada-new .contact-us-wrapper > .container .content-wrapper > .subtitle-wrapper').hide();
239                    
240                            let msg = 'תודה רבה.<br>ניצור איתך קשר בקרוב.';
241                            if (jQuery('html').attr('dir') != 'rtl') {
242                                msg = 'Thank you<br>We will contact you soon.';
243                            }
244
245                            jQuery('.freshpaint2025_contact_content').html('<h4 role="alert" class="msg_success">'+msg+'</h4>');
246                            jQuery('.freshpaint .content-wrapper').html('<h4 class="milan_box_form_title">'+msg+'</h4>');
247                            jQuery('.dada-new-form').parent().html('<h4 class="milan_box_form_title">'+msg+'</h4>');
248               
249                        }
250
251                        // facebook event
252                        fbq('track', 'Lead', {
253                            content_category: 'יצירת קשר ',
254                            content_name: ident
255                        });
256
257                        pushThanskPvPixel();
258
259                    } else {
260                        elmobj.find('.milanmsg').html('<p>חלה שגיאה. אנא נסו שוב.</p>');
261                    }
262                    ev.preventDefault();
263                },
264                error: function(param1, param2) {
265                    elmobj.find('.milanmsg').html('<p>חלה שגיאה. אנא נסו שוב.</p>');
266                },
267                timeout: 20000
268            });
269        });
270
271    } else {
272        elmobj.find('.milanmsg').html('<p>חלה שגיאה. אנא נסו שוב.</p>');
273    }
274
275    ev.preventDefault();
276
277});
278
279jQuery(document).on('submit', '.milan_box_form:not(.dada-new-form):not(.fp_form):not(.video_form)', function(ev) {
280
281    ev.preventDefault();
282
283    elmobj = jQuery(this);
284    var mail = elmobj.find('input[name="email"]').val();
285    var name = elmobj.find('input[name="fname"]').val();
286    var phone = elmobj.find('input[name="phone"]').val();
287    var newsletter  = elmobj.find('input[name="agree"]').is(':checked');
288    elmobj.find('.milanmsg').html('');
289    var isThereError = false;
290    if (name.length == 0) {
291        elmobj.find('.milanmsg').append('<p>יש למלא שדה שם מלא</p>');
292        isThereError = true;
293    }
294    if( /[^a-zA-Zא-ת0-9'-]/.test( name.replaceAll(' ', '') ) ) {
295        elmobj.find('.milanmsg').append('<p>שם מלא מכיל תווים לא חוקיים</p>');
296        isThereError = true;
297        }
298
299    if (phone.length != 10) {
300        elmobj.find('.milanmsg').append('<p>יש להזין מספר טלפון תקין</p>');
301        isThereError = true;
302    }
303    var phone_numberstest = /^\d+$/.test(phone);
304    if (!phone_numberstest) {
305        elmobj.find('.milanmsg').append('<p>יש להזין את שדה הטלפון אך ורק בספרות</p>');
306        isThereError = true;
307    }
308    if (mail.length == 0) {
309        elmobj.find('.milanmsg').append('<p>יש למלא שדה מייל</p>');
310        isThereError = true;
311    }
312    if (mail.length > 0 && !email_verify2(mail)) {
313        elmobj.find('.milanmsg').append('<p>יש לוודא תקינות כתובת המייל</p>');
314        isThereError = true;
315    }
316    if (!newsletter) {
317        elmobj.find('.milanmsg').append('<p>חובה לאשר אישור דיוור</p>');
318        isThereError = true;
319    }
320
321    if (isThereError) {
322        return;
323    } else {
324    
325        if (typeof grecaptcha.enterprise.execute !== 'undefined' && typeof recaptcha_public !== 'undefined') { 
326
327            grecaptcha.enterprise.execute(recaptcha_public, {
328
329                action: 'submit'
330                
331            }).then(function(token) {
332                elmobj.append('<input name="token" type="hidden" value="'+token+'">');
333                elmobj[0].submit();
334            });
335            
336        }  else {
337            elmobj.find('.milanmsg').html('<p>חלה שגיאה אנא רעננו ונסו שנית</p>');
338            return;
339        }
340    }
341});
342
343
344
345
346/* notice */
347let currentDialog = false;
348function openDialog(id = '') {
349	if (!id || currentDialog || currentModal)
350		return false;
351	
352	let dialog = document.getElementById(id);
353	dialog.showModal();
354	currentDialog = dialog;
355
356    dialog.addEventListener('close', function() {
357        let cid = currentDialog.id;
358        currentDialog = false;
359        jQuery(document).trigger('dialog_closed_' + cid);
360    });
361
362	return true;
363}
364
365function closeDialog() {
366
367	if (!currentDialog) {
368		return;
369	}
370	currentDialog.close();
371}
372
373window.addEventListener('DOMContentLoaded', showNoticeDialog);
374function showNoticeDialog() {
375	if (jQuery('#notice_popup').length) {
376		let now = Math.floor(Date.now() / 1000);
377		let lastTime = localStorage.getItem('tlmns_note');
378		if (lastTime != null) {
379			lastTime = parseInt(lastTime);
380		}
381		if (lastTime == null || lastTime <= now - 86400) {
382			setTimeout(() => {           
383				let open = openDialog('notice_popup');
384				if(open) {
385					localStorage.setItem('tlmns_note', now);
386				}
387			}, 1000);
388		}
389	}
390}
391
392jQuery(document).on('click', '.close_dialog', function(e) {
393	e.preventDefault();
394	if (currentDialog) {
395		closeDialog();
396	}
397});
398
399/*  home instagram */
400
401jQuery(document).on('click', '.v4_inst_grid a', function(e) {
402	e.preventDefault();
403    instaOwl.trigger('to.owl.carousel', jQuery(this).data('ind'))
404    openCloseModal('insta_modal', 'open');
405});
406
407
408jQuery(document).on('keyup', function(e) {
409
410    if (currentModal == 'insta_modal') {
411        let dir = false;
412        if (e.key == 'ArrowRight') {
413            dir = woIsRTL ? 'prev' : 'next';
414        } else if (e.key == 'ArrowLeft') {
415            dir = woIsRTL ? 'next' : 'prev';
416        }
417
418        if (dir) {
419            instaOwl.trigger(dir+'.owl.carousel')
420        }
421    }
422});
423
424let instaOwl;
425jQuery(document).ready(function() {
426    if (jQuery('.insta_carousel.owl-carousel').length > 0) {
427        instaOwl = jQuery('.insta_carousel.owl-carousel').owlCarousel({
428            rtl: woIsRTL,
429            mouseDrag: false,
430            touchDrag: true,
431            pullDrag: false,
432            freeDrag: false,
433            dots: false,
434            loop: false,
435            nav: true,
436            margin: 50,
437            gap: 50,
438            items: 1,
439            navSpeed: 0,
440           // autoWidth: false,
441            autoplay: false,
442            slideSpeed: 0,
443            smartSpeed: 0
444        });
445
446        instaOwl.on('changed.owl.carousel', function(event) {
447            jQuery('.insta_carousel.owl-carousel video').each(function() {
448                jQuery(this)[0].pause();
449            });
450            let cu = event.item.index;
451            let vid = jQuery('.insta_carousel.owl-carousel .owl-item').eq(cu).find('video');
452            if (vid.length)  {
453                vid[0].currentTime = 0;
454                vid[0].play();
455            }
456        });
457
458    }
459});
460
461
462
463
464/* modals */
465let currentModal = false;
466function openCloseModal(id = '', act = 'open') {
467	
468	let t = jQuery('#'+id);
469
470	if (!t.length || currentDialog)
471		return false;
472
473	if (act=='open' && currentModal)
474		return false;
475
476	if (act=='close' && !currentModal)
477		return false;
478
479	if (act == 'open') {
480		t.addClass('on');
481		jQuery('body').addClass(id+'_on');
482		setTimeout(() => {
483			t.find('.close_modal').focus();
484		}, 500);
485		currentModal = id;
486	} else {
487		t.removeClass('on');
488		jQuery('body').removeClass(id+'_on');
489		currentModal = false;
490	}
491
492	return true;
493}
494
495jQuery(document).on('keyup','.modalstopper, .modal a, .modal button, .modal input', function(e) {
496    let t = jQuery(this).parents('.signup_modal');
497    if( e.key == 'Tab' && typeof jQuery(this).attr('tabindex')!='undefined'){ 
498        if(jQuery(this).hasClass('modalstopper2')){
499            t.find('.close_modal').focus();
500        }else{ 
501            t.find('.modalstopper2').focus();
502        }
503    } 
504});
505
506jQuery(document).on('keyup', function(e) {
507    if (currentModal && e.key == 'Escape') {
508		openCloseModal(currentModal, 'close');
509    }
510});
511
512jQuery(document).on('click', '.close_modal', function(e) {
513	e.preventDefault();
514    /* https://trello.com/c/J4rd0RtT */
515	if (jQuery(this).hasClass('set_cookies_consent')) {
516		let now = Math.floor(Date.now() / 1000);
517		localStorage.setItem('tlmns_cookies_consent', now);
518		openCloseModal('cookies_modal', 'close');
519	} else if (currentModal) {
520		openCloseModal(currentModal, 'close');
521	}
522    /* https://trello.com/c/J4rd0RtT */
523});
524
525window.addEventListener('DOMContentLoaded', showSaleModal);
526function showSaleModal() {
527    if (jQuery('#sale_modal').length) {	
528		let now = Math.floor(Date.now() / 1000);
529        let lastTime = localStorage.getItem('tlmns_sale_mod');
530		if (lastTime != null) {
531			lastTime = parseInt(lastTime);
532		}
533        if (lastTime == null || lastTime <= now - 86400) {
534            setTimeout(() => {           
535				let open = openCloseModal('sale_modal', 'open');
536				if (open) {
537					localStorage.setItem('tlmns_sale_mod', now);
538				}
539            }, 6000);
540        }
541    }
542}
543
544/* signup modal */
545window.addEventListener('load', showSignupModal);
546function showSignupModal() {
547    if (jQuery('#signup_modal').length) {
548		let now = Math.floor(Date.now() / 1000);
549        let lastTime = localStorage.getItem('tlmns_signup');
550		if (lastTime != null) {
551			lastTime = parseInt(lastTime);
552		}
553        if (lastTime == null || lastTime <= now - 86400) {
554            setTimeout(() => {           
555				let open = openCloseModal('signup_modal', 'open');
556				if (open) {
557					localStorage.setItem('tlmns_signup', now);
558					get_signup_version();
559				}
560            }, 6000);
561        }
562    }
563}
564
565let isSignupAjax = false;
566jQuery(document).on('submit', '.tollmans_signup_form', function(e) {
567  
568    e.preventDefault();
569
570    if (isSignupAjax)
571        return false;
572
573	isSignupAjax = true;
574
575    elmobj = jQuery(this);
576    let messageHandler = elmobj.find('.milanmsg');
577    
578    if (isAjaxingNlForm) {
579        return false;
580    }
581
582    messageHandler.html('');
583
584    var mail = elmobj.find('input[name="email"]').val(),
585        phone = elmobj.find('input[name="phone"]').val(),
586        name = elmobj.find('input[name="fname"]').val(),
587        newsletter = elmobj.find('input[name="newsletter"]').is(':checked');
588
589    var isThereError = false;
590    if (name.length == 0) {
591        messageHandler.html(messageHandler.data('fullname'));
592        isThereError = true;
593    }
594
595    if (mail.length == 0 && !isThereError) {
596        messageHandler.html(messageHandler.data('mailempty'));
597        isThereError = true;
598    }
599
600    if (mail.length > 0 && !acini_email_verify(mail) && !isThereError) {
601        messageHandler.html(messageHandler.data('mailvalid'));
602        isThereError = true;
603    }
604
605    console.log('isPhone', elmobj.find('input[name="phone"]').length)
606    if(elmobj.find('input[name="phone"]').length) {
607		if (phone.length == 0  && !isThereError) {
608            console.log('phoneNotFound')
609            messageHandler.html(messageHandler.data('phoneempty'));
610			isThereError = true;
611		}
612		if (phone.length != 10  && !isThereError) {
613            console.log('phoneNotValid1')
614            messageHandler.html(messageHandler.data('phonevalid'));
615			isThereError = true;
616		}
617		var isphone = /^\d+$/.test(phone);
618		if (phone.length>0 && !isphone && !isThereError) {
619            console.log('phoneNotValid2')
620            messageHandler.html(messageHandler.data('phonevalid'));
621			isThereError = true;
622		}
623	}
624
625    if (!newsletter && !isThereError) {
626        messageHandler.html(messageHandler.data('agree'));
627        isThereError = true;
628    }
629
630    if (isThereError) {
631        isSignupAjax = false;
632        return;
633    }
634
635    elmobj.find('.form-submit').hide();
636    elmobj.find('.loader').show();
637
638    if (typeof grecaptcha.enterprise.execute !== 'undefined' && typeof recaptcha_public !== 'undefined') { 
639
640        grecaptcha.enterprise.execute(recaptcha_public, {
641
642            action: 'submit'
643            
644        }).then(function(token) {
645
646            let serialize = elmobj.serialize();
647            serialize += '&token=' + token;
648
649            jQuery.ajax({
650                type: 'POST',
651                url: woData.ajaxURL,
652                dataType: 'json',
653                data: serialize,
654                success: function(responseObj, status, jqFObj) {
655                    if (!responseObj.error) {
656                        elmobj.find('.submit_wrapper').remove();
657                        messageHandler.html(messageHandler.data('success')).addClass('success');
658                        localStorage.setItem('tlmns_signup',  Math.floor(Date.now() / 1000) + 31449600); // show in a year
659                        isSignupAjax = false;
660                    }else{
661                        messageHandler.html(messageHandler.data('ajaxerror'));
662                        elmobj.find('.form-submit').show();
663                        elmobj.find('.loader').hide();
664                        isSignupAjax = false;
665                    }
666                },
667                error: function(param1, param2) {
668                    jQuery('.form-submit').show();
669                    jQuery('.loader').hide();
670                    messageHandler.html(messageHandler.data('ajaxerror'));
671                    isSignupAjax = false;
672                },
673                timeout: 20000
674            });
675        });
676
677    } else {
678        jQuery('.form-submit').show();
679        jQuery('.loader').hide();
680        messageHandler.html(messageHandler.data('ajaxerror'));
681        isSignupAjax = false;
682    }
683  
684});
685/*https://trello.com/c/M5lEHMrH/*/
686
687let signup_version = 1;
688function get_signup_version() {
689	jQuery.ajax({
690		type: 'POST',
691		url: woData.ajaxURL,
692		data: {
693			action: 'tollmans_get_signup_form_ver'
694		},
695		success: function(responseObj, status, jqFObj) {
696			signup_version = responseObj;
697			jQuery('#signup_form #version').val(responseObj);
698			if (responseObj == 2) {
699				jQuery('.signup_phone').remove();
700			}
701			return responseObj;
702		},
703		error: function(param1, param2) {
704		},
705		timeout: 20000
706	});
707}
708
709
710/* https://trello.com/c/t4Ege04S */
711let isAjaxingNlForm = false;
712jQuery(document).on('submit', '.footer_nl_form', function (e) {
713    
714    e.preventDefault();
715
716    let f = jQuery(this);
717    let messageHandler = f.find('.footer_nl_form_message');
718    if (isAjaxingNlForm) {
719        return false;
720    }
721
722    messageHandler.html('');
723
724    let field = f.find('input[name="email"]');
725    let val = field.val();
726    if (val.length === 0) {
727        messageHandler.html(messageHandler.data('email_missing'));
728        field.focus();
729        return;
730    }
731    if (!acini_email_verify(val)) {
732        messageHandler.html(messageHandler.data('email_error'));
733        field.focus();
734        return;
735    }
736
737    field = f.find('input[name="agree"]');
738    if (!field.is(':checked')) {
739        messageHandler.html(messageHandler.data('agree_terms'));
740        field.focus();
741        return;
742    }
743
744    messageHandler.html(messageHandler.data('ajaxing'));
745
746    isAjaxingNlForm = true;
747
748    if (typeof grecaptcha.enterprise.execute !== 'undefined' && typeof recaptcha_public !== 'undefined') { 
749
750        grecaptcha.enterprise.execute(recaptcha_public, {
751
752            action: 'submit'
753            
754        }).then(function(token) {
755
756            let serialize = f.serialize();
757            serialize += '&token=' + token;
758
759            jQuery.ajax({
760                type: 'POST',
761                url: woData.ajaxURL,
762                dataType: 'json',
763                data: serialize,
764                success: function (r, status, jqFObj) {
765                    if (r.error) {
766                        messageHandler.html(r.message);
767                        setTimeout(function () {
768                            isAjaxingNlForm = false;
769                        }, 3000);
770                    } else {
771                        messageHandler.html(r.message).addClass('success');
772                        f.find('button, input').prop('disabled', true);
773                    }
774                },
775                error: function (param1, param2) {
776                    messageHandler.html(messageHandler.data('ajax_error'));
777                    setTimeout(function () {
778                        isAjaxingNlForm = false;
779                    }, 1000);
780                },
781                timeout: 20000
782            });
783        });
784    } else {
785        messageHandler.html(messageHandler.data('ajax_error'));
786        setTimeout(function () {
787            isAjaxingNlForm = false;
788        }, 1000);
789    }
790
791});
792
793jQuery(document).on('focus keyup paste change','.input__field' ,function(){
794    var v=jQuery(this).val();
795    if(v.trim() !== '' ) {
796          jQuery( this).addClass('input--filled' );
797    }
798});
799jQuery(document).on('blur','.input__field' ,function(){
800    var v=jQuery(this).val();
801    if(v.trim() === '' ) {
802          jQuery( this).removeClass('input--filled' );
803    }
804}); 
805/* https://trello.com/c/t4Ege04S */
806
807//# sourceMappingURL=imageMapResizer.map
808/* beny */
809jQuery(document).ready(function() {
810    if (jQuery(".owl-carousel-present").length > 0) {
811      projOwl = jQuery(".owl-carousel-present").owlCarousel({
812          rtl: woIsRTL,
813          mouseDrag: true,
814          touchDrag: true,
815          pullDrag: false,
816          freeDrag: false,
817          dots: true,
818          loop: true,
819          nav: false,
820          items: 1,
821      });
822    
823    }
824
825});
826/* beny */
827
828
829function acini_email_verify(mail){
830	if (mail.length==0)
831		return false;
832	 var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,6})$/;
833	   if(reg.test(mail) == false) {      
834	      return false;
835	   }
836	   return true;
837}
838
839
840///////////// home v4 ////////////////////
841
842jQuery(document).on('click','.v4_search_close',function(e){
843    e.preventDefault();
844    jQuery('.search_modal').removeClass('active');
845    jQuery('.v4_search_icon').focus();
846    
847});
848jQuery(document).on('click','.search_modal_clear',function(e){
849    e.preventDefault();
850    jQuery('.search_modal_in > input').val('');
851    jQuery('.search_modal_in > input').focus();
852     
853     jQuery('.search_modal').removeClass('search_modal_filled2');
854});
855jQuery(document).on('click','.v4_search_icon',function(e){
856    e.preventDefault();
857    jQuery('.search_modal').addClass('active');
858    jQuery('.v4_search_close').focus();
859});
860jQuery(document).on('keyup paste click change','.search_modal_in > input',function(e){
861
862    var v =jQuery(this).val();
863    if(v.length>0){
864        jQuery('.search_modal').addClass('search_modal_filled');
865        jQuery('.search_modal').addClass('search_modal_filled2');
866    }else{
867        jQuery('.search_modal').removeClass('search_modal_filled');
868        jQuery('.search_modal').removeClass('search_modal_filled2');
869    } 
870});
871
872
873function showprojectImages(){
874    jQuery('.more_projects_in_item').each(function(){
875        jQuery(this).addClass('active');
876
877    });
878}
879 jQuery(document).ready(function() {
880
881    let arrows = ['<img src="' + woData.staticURL + 'images/p_left.svg" alt="Previous">','<img src="' + woData.staticURL + 'images/p_right.svg" alt="Next">'];
882    if (woIsRTL) {
883        arrows = ['<img src="' + woData.staticURL + 'images/p_right.svg" alt="הקודם">','<img src="' + woData.staticURL + 'images/p_left.svg" alt="הבא">'];
884    }
885    if(jQuery('.owl-carousel-gallery').length>0){
886        var projTempOwl= jQuery('.owl-carousel-gallery').owlCarousel({
887
888             items :1,
889             rtl: woIsRTL,
890             dots: false,
891             nav: true,
892             navText: arrows,
893             autoplay: false,
894             autoplaySpeed: 2200,
895             loop: true,
896             margin: 0
897         });
898
899/*
900        projTempOwl.on('changed.owl.carousel', function(event) {
901            //  var page = event.item.index-1;    
902            //  if(page==0){
903            //      page=1;
904            //  }
905
906            // Get the real index with loop
907            // Reference - https://github.com/OwlCarousel2/OwlCarousel2/issues/686
908            if (event.item) {
909                var index = event.item.index - 1;
910                var count = event.item.count;
911                if (index > count) {
912                    index -= count;
913                }
914                if (index <= 0) {
915                    index += count;
916                }
917                
918                var item_id = jQuery('.owl-carousel-gallery .owl-item.active > div').data('itemid');
919                console.log('item_id ' + item_id);
920                jQuery('.gallery_status').find('span').html(item_id);
921            
922            
923            // jQuery('.gallery_status').find('span').html(page);
924        });
925         
926        */
927    }
928
929    // Get the item id on the clicked next or prev
930    jQuery(document).on('click', '.owl-carousel-gallery.owl-carousel .owl-nav .owl-next, .owl-carousel-gallery.owl-carousel .owl-nav .owl-prev', function() {
931        // Get the active item id
932        var item_id = jQuery('.owl-carousel-gallery .owl-item.active > div').data('itemid');
933        jQuery('.gallery_status').find('span').html(item_id);
934    });
935
936     if(jQuery('.more_projects_in_item').length>0){
937         
938        setTimeout(showprojectImages,2000);
939    }
940
941
942
943    if (jQuery(".owl-carousel-homev4").length > 0) {
944        jQuery(".owl-carousel-homev4").owlCarousel({
945            rtl: woIsRTL,
946            dots: false,
947            loop: true,
948            nav: true,
949            items: 1,
950            responsive : {
951                0 : {
952                    nav: false,
953                    dots: true
954                },
955                850 : {
956                    nav: true,
957                    dots: false
958                }
959            }
960        });
961      
962    } 
963    if (jQuery(".owl-carousel-proms").length > 0) {
964        jQuery(".owl-carousel-proms").owlCarousel({
965            rtl: woIsRTL,
966            dots: false,
967            loop: true,
968            nav: true,
969            items: 1,
970            responsive : {
971                0 : {
972                    nav: false,
973                    dots: true
974                },
975                850 : {
976                    nav: true,
977                    dots: false
978                }
979            }
980        });
981      
982    } 
983    if (jQuery(".owl-carousel-homegallery").length > 0) {
984        jQuery(".owl-carousel-homegallery").owlCarousel({
985            rtl: woIsRTL,
986            margin: 20,
987            dots: false,
988            autoWidth: true,
989            center: true,
990            loop: true,
991            nav: true,
992            items: 2,
993            responsive : {
994                0 : {
995                    rtl: !woIsRTL,
996                    margin: 11,
997                       autoWidth: true,
998                       center: false,
999                    nav: false,
1000                 },
1001                850 : {
1002                    rtl: woIsRTL,
1003                    margin: 20,
1004                       autoWidth: true,
1005                       center: true,
1006                    nav: true,
1007                 }
1008            }
1009        });
1010      
1011    } 
1012  
1013});
1014///////////// home v4 ////////////////////
1015///////////////////////// rosh 2020 ///////////////
1016 var roshowl=null;
1017 jQuery(document).ready(function() {
1018       if(jQuery('img[usemap]').length>0){
1019                 jQuery('map').imageMapResize();
1020           //ImageMap('img[usemap]', 500);
1021             setTimeout(function () {
1022 			doImgMapMarkers();
1023                        
1024		}, 4000);
1025             setTimeout(function () {
1026 			doImgMapMarkers();
1027                        
1028		}, 6000);
1029         }
1030         
1031             if (jQuery(".owl-carousel-rosh").length > 0) {
1032        roshowl = jQuery(".owl-carousel-rosh").owlCarousel({
1033            rtl: woIsRTL,
1034            mouseDrag: false,
1035            touchDrag: false,
1036            pullDrag: false,
1037            freeDrag: false,
1038            dots: false,
1039            loop: true,
1040            nav: false,
1041            items: 1,
1042        });
1043        jQuery('.projectToggle').click(function(e) {
1044            e.preventDefault();
1045            if (jQuery(this).data('id') == 'r') {
1046                projOwl.trigger('prev.owl.carousel');
1047            } else {
1048                projOwl.trigger('next.owl.carousel');
1049            }
1050        });
1051      
1052    }
1053    
1054       jQuery('a[href*="api.whatsapp"]').click(function(e) {
1055           
1056                          console.log('here');
1057                          console.log(!jQuery(this).hasClass('clickedpv'));
1058           if(!jQuery(this).hasClass('clickedpv')){
1059                pushThanskPvPixelConversionThanks();
1060 
1061                jQuery(this).addClass('clickedpv');
1062                jQuery(this).trigger('click');
1063                return;
1064           }
1065           
1066        });
1067    
1068       jQuery('a[href*="tel:"]').click(function(e) {
1069           
1070                          console.log('here');
1071                          console.log(!jQuery(this).hasClass('clickedpv'));
1072           if(!jQuery(this).hasClass('clickedpv')){
1073                pushThanskPvPixelConversionThanks();
1074 
1075                jQuery(this).addClass('clickedpv');
1076                jQuery(this).trigger('click');
1077                return;
1078           }
1079           
1080        });
1081    if(jQuery('.roshproduct').length>0){
1082        setTimeout(function(){
1083            jQuery('.roshproducts').each(function(){
1084                var max=0;
1085                var p=jQuery(this);
1086                p.find('.roshproduct').each(function(){
1087                   var h=jQuery(this).height();
1088                   if(h>max){
1089                       max=h;
1090                   }
1091                    //jQuery(this).height(h);
1092                });
1093             
1094                p.find('.roshproduct').height(max);
1095            });
1096        },4000);
1097        
1098    }
1099    
1100  
1101});
1102jQuery(document).on('click','.roshtoggleinfo',function(e){
1103    e.preventDefault();
1104    
1105    jQuery('.roshlist_itemin_text').removeClass('active');
1106    jQuery(this).parent().find('.roshlist_itemin_text').addClass('active');
1107    
1108    
1109});
1110jQuery(document).on('click','.roshtoggleinfo_close',function(e){
1111    e.preventDefault();
1112    
1113    jQuery('.roshlist_itemin_text').removeClass('active');
1114     
1115    
1116});
1117jQuery(document).on('click','.roshcoord',function(e){
1118    e.preventDefault();
1119    var id=jQuery(this).data('product');
1120
1121    console.log(id);
1122 
1123 console.log(jQuery(this).parents('.rosh_carou_item').length);
1124    
1125    if(jQuery(this).parents('.rosh_carou_item').length>0){
1126           jQuery(this).parents('.rosh_carou_item').find('.roshcoord.current').removeClass('current');
1127        jQuery(this).parents('.rosh_carou_item').find('.roshproduct_d.current').removeClass('current');
1128
1129        jQuery(this).parents('.rosh_carou_item').find('.roshproduct_d[data-id="'+id+'"]').addClass('current');
1130        jQuery(this).addClass('current');
1131        
1132        
1133           jQuery('html, body').animate({
1134                    scrollTop: jQuery(this).parents('.rosh_carou_item').find('.roshproduct_d[data-id="'+id+'"]').offset().top-200
1135                }, 300);
1136                
1137                
1138    }else{
1139            jQuery(this).parents('.roshlist_item').find('.roshcoord.current').removeClass('current');
1140    jQuery(this).parents('.roshlist_item').find('.roshproduct.current').removeClass('current');
1141    
1142    jQuery(this).parents('.roshlist_item').find('.roshproduct[data-id="'+id+'"]').addClass('current');
1143    jQuery(this).addClass('current');
1144    
1145        
1146    
1147    
1148    }
1149    
1150});
1151jQuery(document).on('click','.roshprevnext,.roshprevnext_text',function(e){
1152    e.preventDefault();
1153    var a=jQuery(this).data('a');
1154  if (a == 'right') {
1155                roshowl.trigger('prev.owl.carousel');
1156            } else {
1157                roshowl.trigger('next.owl.carousel');
1158            }
1159});
1160
1161var isCurrentLoaded=false;
1162function doImgMapMarkers() {
1163      
1164    	jQuery('.roshcode').each(function () {
1165            var key = 0;
1166            var indAll= jQuery(this).find('area').length;
1167            var_counter_for_area = jQuery(this).find('area').length;
1168            jQuery(this).find('area').each(function () {
1169                    var a = jQuery(this);
1170                    var p = a.parents('.roshcode');
1171                    var c = a.parents('.roshlist_item');
1172                    if (typeof a.attr('coords') != 'undefined') {
1173                        if(key==0){
1174                        p.find('.roshcoord').remove();
1175                    }
1176                            var coords = a.attr('coords');
1177                            var h = a.attr('href');
1178                            var alt = a.attr('alt');
1179                            coords = coords.split(',');
1180                            var x = coords[0];
1181                            var y = coords[1];
1182                            
1183                            if(x==0 && y==0){
1184                                   coords = a.attr('data-coords');
1185                                    coords = coords.split(',');
1186                             x = coords[0];
1187                             y = coords[1];
1188                            }
1189
1190                            if(key==0){
1191                            //if(indAll>1 && key==0){
1192                               c.find('.roshproduct[data-id="'+alt+'"]').addClass('current');
1193                           }
1194                            var html = '<a class="roshcoord '+(key==0 ? 'current' :'')+' roshtoggleproduct" href="#" data-product="' + alt + '" data-l="' + x + '" data-id="coord' + key+'"';
1195                            //var html = '<a class="roshcoord '+(indAll>1 && key==0 ? 'current' :'')+' roshtoggleproduct" href="#" data-product="' + alt + '" data-l="' + x + '" data-id="coord' + key+'"';
1196                            html += ' title="' + alt + '" style="top:' + y + 'px;left:' + x + 'px;"  >';
1197                            if (var_counter_for_area > 1)
1198                                html +=(key+1);
1199                            html += '</a>';
1200                            p.append(html);
1201
1202
1203
1204                            var item = p.find('.roshcoord[data-id="coord' + key + '"]');
1205                            var w = item.width() / 2;
1206                            var h = item.height() / 2;
1207                            item.css({
1208                                    'left': (x - w) + 'px',
1209                                    'top': (y - h) + 'px'
1210                            });
1211
1212                            setTimeout(function () {
1213                                    item.addClass('loaded');
1214                            }, 50 * +key * 2, item)
1215                            // console.log('coords', coords);
1216
1217
1218                            key++;
1219                    }
1220
1221            });
1222
1223
1224
1225        });
1226        
1227        /*
1228    if(!isCurrentLoaded && jQuery('.roshproduct_d.current').length>0){
1229        jQuery('.rosh_carou_item').each(function(){
1230            
1231            
1232         
1233        var id=jQuery(this).find('.roshproduct_d.current').data('id');
1234        var elmB=jQuery(this).find('.roshproduct_d.current').parents('.roshcode');
1235        
1236        console.log('id',id);
1237        console.log('elmB',elmB);
1238        elmB.find('.roshcoord[data-product="'+id+'"]').addClass('current');
1239        
1240        });
1241        isCurrentLoaded = true;
1242    }
1243     */
1244}
1245 /////////////////////// rosh 2020 ///////////////
1246var projOwl = null;
1247let projPlayers = [];
1248
1249function pauseAllVids() {
1250    projPlayers.forEach((player) => {
1251        player.pause();
1252    });
1253}
1254
1255jQuery(document).ready(function() {
1256    if (jQuery(".owl-carousel-project").length > 0) {
1257        projOwl = jQuery(".owl-carousel-project").owlCarousel({
1258            rtl: woIsRTL,
1259            loop: true,
1260            dots: false,
1261            nav: false,
1262            items: 1,
1263            responsive: {
1264                0: {
1265                    dots: true,
1266                },
1267                850: {
1268                    dots: false,
1269                }
1270            }
1271        });
1272        jQuery('.projectToggle').click(function(e) {
1273            e.preventDefault();
1274            if (jQuery(this).data('id') == 'r') {
1275                projOwl.trigger('prev.owl.carousel');
1276            } else {
1277                projOwl.trigger('next.owl.carousel');
1278            }
1279        });
1280
1281        let projVids =  document.querySelectorAll('iframe.stream-player');
1282        projVids.forEach((iframe) => {
1283            projPlayers.push(Stream(iframe));
1284        });
1285
1286        
1287        projOwl.on('translated.owl.carousel', function(e) {
1288            pauseAllVids();
1289        });
1290
1291    }
1292    if (jQuery(".owl-carousel-home").length > 0) {
1293        jQuery(".owl-carousel-home").owlCarousel({
1294            autoplay: true,
1295            rtl: true,
1296            dots: false,
1297            loop: true,
1298            nav: false,
1299            items: 1
1300        });
1301    }
1302    if (jQuery(".owl-carousel-widding").length > 0) {
1303        jQuery(".owl-carousel-widding").owlCarousel({
1304            rtl: woIsRTL,
1305            dots: false,
1306            navText: ['<img alt="button" src="' + woCurrentTemplate + '/images/arrow_right.svg" />', '<img alt="button" src="' + woCurrentTemplate + '/images/arrow_left.svg" />'],
1307            nav: true,
1308            items: 1,
1309            responsive: {
1310                0: {
1311                    dots: true,
1312                    nav: false,
1313                },
1314                850: {
1315                    dots: false,
1316                    nav: true
1317                }
1318            }
1319        });
1320    }
1321});
1322var villCurr = 0;
1323var villLength = 0;
1324var cookieNameBottomLeft = 'wf8dfsavcr3h';
1325jQuery(document).ready(function() {
1326    var cookieArrscookieNameBottomLeft = jQuery.cookie(cookieNameBottomLeft);
1327    if (typeof cookieArrscookieNameBottomLeft == 'undefined' && jQuery('.left_form_sticky').length > 0) {
1328        setTimeout(function() {
1329            jQuery('.left_form_sticky').addClass('active');
1330            jQuery('.left_form_sticky').addClass('active');
1331            jQuery.cookie(cookieNameBottomLeft, 'asdusdfyuh', {
1332                expires: 1,
1333                path: '/'
1334            });
1335        }, 15000, cookieNameBottomLeft);
1336    }
1337    jQuery('.left_form_sticky_close').click(function() {
1338        jQuery('.left_form_sticky').removeClass('active');
1339    });
1340    jQuery('.toggleImageOutlet').click(function(w) {
1341        w.preventDefault();
1342        var src = jQuery(this).attr('href');
1343        jQuery('.outletgallery').find('img').attr('src', src);
1344    });
1345    var myConfObj = {
1346        iframeMouseOver: false
1347    }
1348    if (jQuery('#dada_video').length > 0) {
1349        window.addEventListener('blur', function() {
1350            if (myConfObj.iframeMouseOver) {
1351                fbq('track', 'Lead', {
1352                    content_category: 'דאדא - צפייה בסיור וירטואלי'
1353                });
1354            }
1355        });
1356        document.getElementById('dada_video').addEventListener('mouseover', function() {
1357            myConfObj.iframeMouseOver = true;
1358        });
1359        document.getElementById('dada_video').addEventListener('mouseout', function() {
1360            myConfObj.iframeMouseOver = false;
1361        });
1362    }
1363    jQuery('#dada_download').click(function() {
1364        fbq('track', 'Lead', {
1365            content_category: 'דאדא הורדת PDF '
1366        });
1367    });
1368    
1369    jQuery('.milanobtn').click(function(e) {
1370        e.preventDefault();
1371        var vid = document.getElementById("milanovideo_player");
1372        vid.play();
1373        jQuery(this).parents('.milano_box_video').addClass('playingvideo');
1374    });
1375    villLength = jQuery('.villa_slider_carou').find('li').length;
1376    if (villLength > 0) {
1377        dovillresize();
1378        jQuery(window).resize(dovillresize);
1379        jQuery('.villa_slider_button').click(function(e) {
1380            var a = jQuery(this).data('a');
1381            if (a == 'left') {
1382                var t = villCurr + 1;
1383                var ww = jQuery(window).width();
1384                var skip = 3;
1385                if (ww <= 910) {
1386                    skip = 0;
1387                }
1388                if (t < villLength - skip) {
1389                    villSliderMove(t);
1390                }
1391            } else {
1392                var t = villCurr - 1;
1393                if (t >= 0) {
1394                    villSliderMove(t);
1395                }
1396            }
1397            e.preventDefault();
1398        });
1399    }
1400    jQuery('.showformbutton').click(function(e) {
1401        jQuery('.villa_box_form').addClass('active');
1402        jQuery('.villadada-closer').addClass('active');
1403        jQuery('.mav_v_address').addClass('inactive');
1404        jQuery('.map_v_o').addClass('inactive');
1405        e.preventDefault();
1406    });
1407    jQuery('.villadada-closer').click(function(e) {
1408        jQuery('.villa_box_form').removeClass('active');
1409        jQuery('.villadada-closer').removeClass('active');
1410        jQuery('.mav_v_address').removeClass('inactive');
1411        jQuery('.map_v_o').removeClass('inactive');
1412        e.preventDefault();
1413    });
1414});
1415
1416function dovillresize() {
1417    var ww = jQuery(window).width();
1418    var w = jQuery('.villadada_box').width();
1419    if (ww <= 910) {
1420        villLength = jQuery('.mobile .villa_slider_carou').find('li').length;
1421        jQuery('.villa_iamges_b_in').find('li').css({
1422            'width': w + 'px'
1423        });
1424    } else {
1425        villLength = jQuery('.desktop .villa_slider_carou').find('li').length;
1426        jQuery('.villa_iamges_b_in').find('li').attr('style', '');
1427    }
1428}
1429
1430function villSliderMove(t) {
1431    var ww = jQuery(window).width();
1432    var skip = 3;
1433    if (ww <= 910) {
1434        skip = 0;
1435    }
1436    var w = jQuery('.villa_slider_carou').find('li[data-o="' + (t + skip) + '"]').width();
1437    if (ww <= 910) {
1438        var w = jQuery('.villadada_box').width();
1439    }
1440    w = parseInt(w) + 30;
1441    console.log('w', w);
1442    console.log('ww', ww);
1443    console.log('t', t);
1444    jQuery('.villa_slider_carou').css({
1445        'right': -1 * t * w + 'px'
1446    });
1447    villCurr = t;
1448}
1449var elmobj = false;
1450var cookieName = 'shu1dfsqwhrwe';
1451jQuery(document).ready(function() {
1452    var cookieArrs = jQuery.cookie(cookieName);
1453    if (typeof cookieArrs == 'undefined' && jQuery('.nlpopup').length > 0) {
1454        setTimeout(function() {
1455            jQuery('.nlpopup').addClass('active');
1456            jQuery('.nlpopupcontent').addClass('active');
1457            jQuery('.nlclose').focus();
1458            jQuery.cookie(cookieName, 'asdusdfyuh', {
1459                expires: 7,
1460                path: '/'
1461            });
1462        }, 10000, cookieArrs);
1463    }
1464    jQuery('.nlclose').click(function() {
1465        jQuery('.nlpopup').removeClass('active');
1466        jQuery('.nlpopupcontent').removeClass('active');
1467    });
1468    jQuery('.showformbutton2').click(function(e) {
1469        jQuery('.nlpopupv').addClass('active');
1470        jQuery('.nlpopupcontentv').addClass('active');
1471        e.preventDefault();
1472    });
1473    jQuery('.popupvclose').click(function(e) {
1474        jQuery('.nlpopupv').removeClass('active');
1475        jQuery('.nlpopupcontentv').removeClass('active');
1476        e.preventDefault();
1477    });
1478
1479    if (BrowserDetect.browser == 'Explorer' && BrowserDetect.version <= 9) {
1480        jQuery('.input').each(function() {
1481            jQuery(this).val(jQuery(this).attr('placeholder'));
1482            jQuery(this).focusin(function() {
1483                if (jQuery(this).val() == jQuery(this).attr('placeholder'))
1484                    jQuery(this).val('');
1485            });
1486            jQuery(this).focusout(function() {
1487                if (jQuery(this).val() == '')
1488                    jQuery(this).val(jQuery(this).attr('placeholder'));
1489            });
1490        });
1491        jQuery('.textarea').each(function() {
1492            jQuery(this).val(jQuery(this).attr('placeholder'));
1493            jQuery(this).focusin(function() {
1494                if (jQuery(this).val() == jQuery(this).attr('placeholder'))
1495                    jQuery(this).val('');
1496            });
1497            jQuery(this).focusout(function() {
1498                if (jQuery(this).val() == '')
1499                    jQuery(this).val(jQuery(this).attr('placeholder'));
1500            });
1501        });
1502    }
1503});
1504
1505function email_verify2(mail) {
1506    if (mail.length == 0)
1507        return false;
1508    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
1509    if (reg.test(mail) == false) {
1510        return false;
1511    }
1512    return true;
1513}
1514
1515function getMsg(str, iserror) {
1516    if (iserror)
1517        elmobj.find('.rep_msg').addClass('redtext');
1518    else
1519        elmobj.find('.rep_msg').removeClass('redtext');
1520    elmobj.find('.rep_msg').html(elmobj.find('.rep_msg').data(str));
1521}
1522
1523jQuery(document).on('submit', '.villa_box_form', function(ev) {
1524
1525    elmobj = jQuery(this);
1526    var fname = elmobj.find('.fname').val();
1527    var phone = elmobj.find('.phone').val();
1528    var mail = elmobj.find('.email').val();
1529    var lang = elmobj.find('.lang').val();
1530    var messege = elmobj.find('.messege').val();
1531    if (mail.length == 0) {
1532        getMsg('mandatory_not_full', true);
1533        ev.preventDefault();
1534        return;
1535    }
1536    if (phone.length == 0) {
1537        getMsg('mandatory_not_full', true);
1538        ev.preventDefault();
1539        return;
1540    }
1541    if (fname.length == 0) {
1542        getMsg('mandatory_not_full', true);
1543        ev.preventDefault();
1544        return;
1545    }
1546    if (mail.length > 0 && !email_verify2(mail)) {
1547        getMsg('verifymail', true);
1548        ev.preventDefault();
1549        return;
1550    }
1551    getMsg('ajaxing', false);
1552    jQuery.ajax({
1553        type: 'GET',
1554        url: woData.ajaxURL,
1555        dataType: 'html',
1556        data: {
1557            'action': 'villdada_register',
1558            'pll_load_front': 'true',
1559            'fname': fname,
1560            'mail': mail,
1561            'phone': phone,
1562            'lang': lang,
1563            'messege': messege
1564        },
1565        success: function(responseObj, status, jqFObj) {
1566            ajaxRecievedvilla_box_form(responseObj, status, jqFObj);
1567            ev.preventDefault();
1568        },
1569        error: function(param1, param2) {
1570            getMsg('ajax_error', true);
1571        },
1572        timeout: 20000
1573    });
1574    ev.preventDefault();
1575
1576});
1577
1578function ajaxRecievedvilla_box_form(responseObj, status, jqFObj) {
1579    if (responseObj == 'success') {
1580        fbq('track', 'Lead', {
1581            content_category: 'Dadaמטבחי ',
1582            content_name: 'תיאום פגישה וילה דאדא'
1583        });
1584        
1585        pushThanskPvPixel();
1586        getMsg('success', false);
1587    } else
1588        getMsg('fail', true);
1589}
1590
1591jQuery(document).ready(function() {
1592    jQuery('.designpoptoggle').click(function() {
1593        if (!jQuery('.designer_popup').hasClass('active')) {
1594            jQuery('.designer_popup').removeClass('zero');
1595            setTimeout(function() {
1596                jQuery('.designer_popup').addClass('active');
1597            }, 300);
1598        } else {
1599            jQuery('.designer_popup').removeClass('active');
1600            setTimeout(function() {
1601                jQuery('.designer_popup').addClass('zero');
1602            }, 300);
1603        }
1604    });
1605    if (jQuery('.contact-showroom').length > 0) {
1606        resizeCont();
1607        jQuery(window).resize(resizeCont);
1608    }
1609    jQuery('.menu_toggle').click(function() {
1610        var ho = jQuery(this).data('hov');
1611        if (!jQuery(this).hasClass('active')) {
1612            jQuery('.menu_outer').addClass('active');
1613            jQuery('.mob_mask').addClass('active');
1614            jQuery('.menu_outer_outer').addClass('active');
1615            jQuery(this).addClass('active');
1616            jQuery(this).find('.open_menu').removeClass('active');
1617            jQuery(this).find('.close_menu').addClass('active');
1618        } else {
1619            jQuery('.menu_outer').removeClass('active');
1620            jQuery('.mob_mask').removeClass('active');
1621            jQuery('.menu_outer_outer').removeClass('active');
1622            jQuery(this).removeClass('active');
1623            jQuery(this).find('.open_menu').addClass('active');
1624            jQuery(this).find('.close_menu').removeClass('active');
1625        }
1626    });
1627});
1628
1629function resizeCont() {
1630    var h = jQuery('.contact-showroom').parent().height();
1631    jQuery('.contact-showroom').height(h - 102);
1632}
1633var vidplayer = null;
1634jQuery(document).ready(function() {
1635    vidplayer = document.getElementById("lbviedeopplayer");
1636    jQuery('.togglevideoplay').click(dovidclicked);
1637    jQuery('.vidlightbox-closer').click(dovidcloseLightbox);
1638});
1639
1640function dovidclicked(ev) {
1641    jQuery('.vid_page_mask').addClass('active').removeClass('inactive');
1642    jQuery('.vid_page_content').addClass('active').removeClass('inactive');
1643    jQuery('.vid_page_content_inner').html(videocontent);
1644    ev.preventDefault();
1645}
1646
1647function dovidcloseLightbox() {
1648    jQuery('.vid_page_mask').removeClass('active').addClass('inactive');
1649    jQuery('.vid_page_content').removeClass('active').addClass('inactive');
1650    jQuery('.vid_page_content_inner').html('');
1651}
1652
1653var gallStart = 0;
1654var gallLength = 0;
1655var lbWidth = 1040;
1656var lbHeight = 1050;
1657var lbWidthper = 55;
1658var lbHeightper = 80;
1659var bxgallery = null;
1660 
1661    
1662    var mw_carousle_demo = null;
1663jQuery(document).ready(function() {
1664    if (jQuery(".mw_carousle_demo").length > 0) {
1665        mw_carousle_demo = jQuery(".mw_carousle_demo_owl").owlCarousel({
1666            rtl: woIsRTL,
1667            navText: ['',''],
1668            dots: true,
1669            nav: true,
1670            items: 1
1671        });
1672   
1673    }
1674    
1675    
1676    gallLength = jQuery('.mw_carousle_demo').find('img').length;
1677    if (gallLength > 0) {
1678     /*   bxgallery = jQuery('.bxslider_gallery').bxSlider({
1679            nextText: 'next',
1680            prevText: 'prev',
1681            prevSelector: '.lb_bx-left',
1682            nextSelector: '.lb_bx-right',
1683            pager: true
1684        });*/
1685        jQuery('.collectionLoadLB').click(dolbclicked);
1686        jQuery('.lightbox-closer').click(docloseLightbox);
1687    }
1688});
1689
1690function dolbclicked() {
1691    var start = jQuery(this).parent().data('start');
1692  //  bxgallery.goToSlide(parseInt(start));
1693  //to.owl.carousel
1694  
1695  
1696  mw_carousle_demo.trigger('to.owl.carousel', [parseInt(start),10]);
1697    jQuery('.col_page_mask').addClass('active').removeClass('inactive');
1698    jQuery('.col_page_content').addClass('active').removeClass('inactive');
1699}
1700
1701function docloseLightbox() {
1702    jQuery('.col_page_mask').removeClass('active').addClass('inactive');
1703    jQuery('.col_page_content').removeClass('active').addClass('inactive');
1704}
1705
1706/* Dada New */
1707jQuery(document).on('ready', function() {
1708
1709    if (jQuery('.owl-carousel.slider-wrapper').length > 0) {
1710
1711        jQuery('.owl-carousel.slider-wrapper').each(function(){
1712            let prfx= jQuery(this).parents('.kitchen-collections-white').length>0 ? '_white' : '';
1713            jQuery(this).owlCarousel({
1714                loop: true,
1715                margin: 20,
1716                nav: true,
1717                rtl: woIsRTL,
1718                dots: false,
1719                autoWidth: true,
1720                navText: ['<img src="' + woData.staticURL + '/images/dada-prev-button'+prfx+'.png" alt="Prev Button">', '<img src="' + woData.staticURL + '/images/dada-next-button'+prfx+'.png" alt="Next Button">'],
1721                responsive:{
1722                    0: {
1723                        items: 1,
1724                        margin: 0,
1725                        autoWidth: false,
1726                        navText: ['<img src="' + woData.staticURL + '/images/dada-prev-button-mobile.png" alt="Prev Button">', '<img src="' + woData.staticURL + '/images/dada-next-button-mobile.png" alt="Next Button">'],
1727                    },
1728                    1024: {
1729                        items: 3,
1730                    },
1731                }
1732            });
1733
1734        });
1735   
1736    }
1737
1738    jQuery(document).on('click', '.dada-new a[href^="#"]', function (event) {
1739        event.preventDefault();
1740
1741        if (jQuery(window).width() < 1024) {
1742            jQuery('html, body').animate({
1743                scrollTop: jQuery(jQuery.attr(this, 'href')).offset().top - 200
1744            }, 2000);
1745        } else {
1746            jQuery('html, body').animate({
1747                scrollTop: jQuery(jQuery.attr(this, 'href')).offset().top - 400
1748            }, 2000);
1749        }
1750    });
1751
1752    var dada_maxHeight = 0;
1753
1754    jQuery('.dada-new .three-promotions-wrapper .promotions-wrapper .single-promotion > .content-wrapper p').each(function() {
1755        var thisH = jQuery(this).height();
1756        if (thisH > dada_maxHeight) { dada_maxHeight = thisH; }
1757    });
1758
1759    jQuery('.dada-new .three-promotions-wrapper .promotions-wrapper .single-promotion > .content-wrapper p').height(dada_maxHeight);
1760});
1761/* Dada New */
1762
1763 /*!
1764 * jQuery Cookie Plugin v1.3.1
1765 * https://github.com/carhartl/jquery-cookie
1766 *
1767 * Copyright 2013 Klaus Hartl
1768 * Released under the MIT license
1769 */
1770!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){var e=/\+/g;function i(t){return t}function n(t){return decodeURIComponent(t.replace(e," "))}function s(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return o.json?JSON.parse(t):t}catch(t){}}var o=t.cookie=function(e,r,a){if(void 0!==r){if("number"==typeof(a=t.extend({},o.defaults,a)).expires){var l=a.expires,d=a.expires=new Date;d.setDate(d.getDate()+l)}return r=o.json?JSON.stringify(r):String(r),document.cookie=[o.raw?e:encodeURIComponent(e),"=",o.raw?r:encodeURIComponent(r),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var c=o.raw?i:n,g=document.cookie.split("; "),h=e?void 0:{},u=0,v=g.length;u<v;u++){var p=g[u].split("="),f=c(p.shift()),x=c(p.join("="));if(e&&e===f){h=s(x);break}e||(h[f]=s(x))}return h};o.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!0)}});var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser",this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version",this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(t){for(var e=0;e<t.length;e++){var i=t[e].string,n=t[e].prop;if(this.versionSearchString=t[e].versionSearch||t[e].identity,i){if(-1!=i.indexOf(t[e].subString))return t[e].identity}else if(n)return t[e].identity}},searchVersion:function(t){var e=t.indexOf(this.versionSearchString);if(-1!=e)return parseFloat(t.substring(e+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera",versionSearch:"Version"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init(),function(t){var e={},n={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSli
1770des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(s){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(s)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},n,s),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:v()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({float:"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",p()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&E(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&C(),o.settings.controls&&T(),o.settings.auto&&o.settings.autoControls&&y(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var n=e.find("img, iframe").length;if(0!=n){var s=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++s==n&&i()}).each(function(){this.complete&&t(this).load()})})}else i()},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),n=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(n)}o.loader.remove(),m(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(u()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",R),o.settings.auto&&o.settings.autoStart&&O(),o.settings.ticker&&H(),o.settings.pager&&A(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&N()},u=function(){var e=0,n=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var s=1==o.settings.moveSlides?o.active.index:o.active.index*S();for(n=o.children.eq(s),i=1;i<=o.settings.maxSlides-1;i++)n=s+i>=o.children.length?n.add(o.children.eq(i-1)):n.add(o.children.eq(s+i))}else n=o.children.eq(o.active.index);else n=o.children;return"vertical"==o.settings.mode?(n.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),e},v=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},p=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/S();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},S=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},m=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(
1770),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides;e=o.children.eq(i).position(),b(-e.top,"reset",0)}}else e=o.children.eq(o.active.index*S()).position(),o.active.index==x()-1&&(o.active.last=!0),null!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))},b=function(t,e,i,n){if(o.usingCSS){var s="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,s),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),q()})):"reset"==e?r.css(o.animProp,s):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,s),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(n.resetValue,"reset",0),L()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){q()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(n.resetValue,"reset",0),L()})}},w=function(){for(var e="",i=x(),n=0;i>n;n++){var s="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(s=o.settings.buildPager(n),o.pagerEl.addClass("bx-custom-pager")):(s=n+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+s+"</a></div>"}o.pagerEl.html(e)},C=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},T=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",P),o.controls.prev.bind("click",k),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},y=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",z),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),D(o.settings.autoStart?"stop":"start")},E=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");null!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},P=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},k=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},z=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),n=parseInt(i.attr("data-slide-index"));n!=o.active.index&&r.goToSlide(n),e.preventDefault()},A=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),void o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i)):(o.pagerEl.find("a").removeClass("active"),void o.pagerEl.each(function(i,n){t(n).find("a").eq(e).addClass("active")}))},q=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*S()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},D=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},O=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},H=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});
1770var i=o.settings.speed/e,n="horizontal"==o.settings.mode?"left":"top",s=i*(e-Math.abs(parseInt(r.css(n))));L(s)}),L()},L=function(t){speed=t||o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var n="horizontal"==o.settings.mode?-e.left:-e.top,s="horizontal"==o.settings.mode?-i.left:-i.top;b(n,"ticker",speed,{resetValue:s})},N=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",V)},V=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",j),o.viewport.bind("touchend",B)}},j=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),n=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if((3*i>n&&o.settings.preventDefaultSwipeX||3*n>i&&o.settings.preventDefaultSwipeY)&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var s=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;s=o.touch.originalPos.left+r}else r=e.changedTouches[0].pageY-o.touch.start.y,s=o.touch.originalPos.top+r;b(s,"reset",0)}},B=function(t){o.viewport.unbind("touchmove",j);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode)(n=Math.abs(o.touch.start.x-o.touch.end.x))>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto());else{var n=0;"horizontal"==o.settings.mode?(n=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(n=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&n>0||o.active.last&&0>n)?b(i,"reset",200):Math.abs(n)>=o.settings.swipeThreshold?(0>n?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",B)},R=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&A(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=u()&&o.viewport.animate({height:u()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),q()});else{o.settings.adaptiveHeight&&o.viewport.height()!=u()&&o.viewport.animate({height:u()},o.settings.adaptiveHeightSpeed);var n=0,s={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode)s=(l=o.children.eq(o.children.length-1)).position(),n=o.viewport.width()-l.outerWidth();else{var a=o.children.length-o.settings.minSlides;s=o.children.eq(a).position()}else if(o.carousel&&o.active.last&&"prev"==i){var l,d=1==o.settings.moveSlides?o.settings.maxSlides-S():(x()-1)*S()-(o.children.length-o.settings.maxSlides);s=(l=r.children(".bx-clone").eq(d)).position()}else if("next"==i&&0==o.active.index)s=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*S();s=o.children.eq(c).position()}if(void 0!==s){var g="horizontal"==o.settings.mode?-(s.left-n):-s.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&D("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&D("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(p()),o.viewport.css("height",u()),o.settings.ticker||m(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),A(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){null!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),null!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",R))},r.reloadSlider=function(t){null!=t&&(s=t),r.destroySlider(),d()},d(),this}}(jQuery);
1771
1772 /**
1773 * Copyright (c) 2020, Travis Clarke (https://www.travismclarke.com/)
1774 *
1775 * This source code is licensed under the Apache-2.0 license found in the
1776 * LICENSE file in the root directory of this source tree.
1777 */
1778!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).ImageMap=t()}(this,(function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var t="load",n="usemap",r="coords",o=function(){function o(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.selector=e instanceof Array?e:document.querySelectorAll(e),"complete"!==document.readyState?window.addEventListener(t,this.update.bind(this)):this.update(),window.addEventListener("resize",this.debounce(this.update,
1778n).bind(this))}var a,i,u;return a=o,i=[{key:"update",value:function(){for(var e=this.selector,r=0;r<e.length;r++){var o=e[r];if(void 0===o.getAttribute(n))return;var a=o.cloneNode();a.addEventListener(t,this.handleImageLoad(o.offsetWidth,o.offsetHeight)),a.src=o.src}}},{key:"debounce",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];window.clearTimeout(t),t=window.setTimeout((function(t){return e.apply(t,a)}),r,n)}}},{key:"handleImageLoad",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(a){for(var i=a.target.width,u=a.target.height,c=a.target.getAttribute(n).replace(/^#/,""),d=document.querySelectorAll(o.genAreaSelector(c)),l=function(n){var o=d[n],a=(o.dataset[r]=o.dataset[r]||o.getAttribute(r)).split(","),c=a.map((function(n,r){return Number(r%2==0?a[r]/i*e:a[r]/u*t)}));o.setAttribute(r,c.toString())},f=0;f<d.length;f++)l(f)}}}],u=[{key:"genAreaSelector",value:function(e){return'map[name="'.concat(e,'"] area')}}],i&&e(a.prototype,i),u&&e(a,u),o}();function a(e,t){return new o(e,t)}return a.VERSION="2.0.1",a}));
1779
1780/**
1781 * Owl carousel
vendor: 9,453 bytes, lines 1782-1792
1782 * @version 2.3.4
1783 * @author Bartosz Wojciechowski
1784 * @author David Deutsch
1785 * @license The MIT License (MIT)
1786 * @todo Lazy Load Icon
1787 * @todo prevent animationend bubling
1788 * @todo itemsScaleUp
1789 * @todo Test Zepto
1790 * @todo stagePadding calculate wrong active classes
1791 */
1792!function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(n.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(n.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",h="";for(r/=1;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),h=i[e[e.length-1]][0].outerHTML+h,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(h).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return t(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){t<=e&&t>s&&(s=Number(t))}),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;
vendor: 5,726 bytes, line 1792
17923!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},n.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},n.prototype.onDragEnd=function(e){var s=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&"mouseup"===e.type&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy(function(t,a){return"left"===i&&e>a-30&&e<a+30?n=t:"right"===i&&e>a-o-30&&e<a-o+30?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==s?r[t+1]:a-o)&&(n="left"===i?t+1:t),-1===n},this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},n.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=s:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,n=1,o=e-1;return e===s?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))}
vendor: 28,754 bytes, line 1792
1792,n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&s-n>0&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===s?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},n.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t<i;case">":return s?t<i:t>i;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},h=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),l=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(l)}),this.register({type:n.Type.Event,name:e}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[h]&&this.settings[h].call(this,l)),l},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===s&&(this._states.current[e]=0),this._states.current[e]++},this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,s){return t.inArray(i,this._states.tags[e.name])===s},this)))},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},o))})),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},i.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&undefined!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy(function(){this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("srcset",r):((n=new Image).onload=t.proxy(function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(s){this._core=s,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var n=this;t(e).on("load",function(){n._core.settings.autoHeight&&n.update()}),t(e).resize(function(){n._core.settings.autoHeight&&(null!=n._intervalId&&clearTimeout(n._intervalId),n._intervalId=setTimeout(function(){n.update()},250))})};i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,function(e,i){o.push(t(i).height())}),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,i){var s,n,o=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",h="",l=this._core.settings,c=function(i){s=l.lazyLoad?t("<div/>",{class:"owl-video-tn "+h,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},s.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},s.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},s.Defaults,this._core.options)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},s.prototype.read=function(){return(new Date).getTime()-this._time},s.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},s.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},s.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},s.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t('<button role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy(function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)},this)),this._overrides)this._core[e]=t.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<s;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,i){return t.start<=e&&t.end>=e},this)).pop()},e.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(s){this._core=s,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,function(t,e){return t===s?e:null}).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);undefined!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(t){var e=t("<support>").get(0).style,i="Webkit Moz O ms".split(" "),s={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},n=function(){return!!a("transform")},o=function(){return!!a("perspective")},r=function(){return!!a("animation")};function a(s,n){var o=!1,r=s.charAt(0).toUpperCase()+s.slice(1);return t.each((s+" "+i.join(r+" ")+r).split(" "),function(t,i){if(undefined!==e[i])return o=!n||i,!1}),o}function h(t){return a(t,!0)}(function(){return!!a("transition")}
1792)()&&(t.support.transition=new String(h("transition")),t.support.transition.end=s.transition.end[t.support.transition]),r()&&(t.support.animation=new String(h("animation")),t.support.animation.end=s.animation.end[t.support.animation]),n()&&(t.support.transform=new String(h("transform")),t.support.transform3d=o())}(window.Zepto||window.jQuery,window,document);

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.