PageSourceSearch

https://fooqs.com/skins/user/rwd_shoper_9/js/user.js?sci=399

js fooqs.com collected 2026-10-08 23:03:53 UTC 165,206 bytes, 503 lines download raw bytes

1console.log("sc_dev-ok");
2$('document').ready(function(){  
3  
4  $('.hometext').hide();
5	$('#axreadmore').click(function(){
6		//alert($('#akapit_ukrywany:visible'));
7			if($('.hometext').is(':visible')){
8				$('.hometext').hide();
9				$('#axreadmore').html('Czytaj więcej');
10			}
11			else{
12				$('.hometext').show();
13				$('#axreadmore').html('Czytaj mniej');
14				}
15	});
16  
17  
18   $('#payment_3:checked').removeAttr('checked');
19   $('#payment_7').attr('checked', 'checked');
20  
21  		$(".menu-trigger").click(function(){
22   			$('#box_menu .innerbox').slideToggle();
23            var menut = $(".menu-trigger i");
24          	if($(menut).hasClass("fa-angle-down")){
25               $(menut).removeClass("fa-angle-down");
26              	$(menut).addClass("fa-angle-up");
27            }
28          	else{
29                
30              	$(menut).removeClass("fa-angle-up"); 
31              	$(menut).addClass("fa-angle-down");
32            }
33 		});
34
35     
36var ttt =  $('[id^=category_][class=current]').parent();
37
38  
39  $('.shop_product_list .menu-mobile-li a, .shop_product .menu-mobile-li a').click(function(){
40    console.log('menu-click');
41    setTimeout(function () {
42      $('.menu-list li.current_parent, .menu-list li.current').each(function(){
43          var cat_id = $(this).attr('id').replace(/[^0-9]/g,'');
44          $('#rwd-menu li.has-children[data-category-id='+cat_id+']').click().addClass('own_active');
45      });
46    }, 500);
47  });
48  /*
49  mobileLanguageMenu();
50  mobileCurrencyMenu();
51  */
52});
53
54//create mobile Language menu
55/*
56function mobileLanguageMenu() {	
57    var windowWidth = $(window).width();
58    if(windowWidth<=480){
59        var menuOriginal = $('#box_languages');
60        var menuNew = $('#box_languages_mobile');
61            //menuNew.append('<div class="dropdown-toggle"><span>Language</span> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.00016 11.3333C7.8127 11.3333 7.64603 11.2707 7.52096 11.1458L3.521 7.14578C3.25016 6.89578 3.25016 6.45825 3.521 6.20825C3.771 5.93742 4.2085 5.93742 4.4585 6.20825L8.00016 9.72912L11.521 6.20825C11.771 5.93742 12.2085 5.93742 12.4585 6.20825C12.7294 6.45825 12.7294 6.89578 12.4585 7.14578L8.4585 11.1458C8.3335 11.2707 8.16683 11.3333 8.00016 11.3333Z" fill="white"/></svg></div>');
62            menuNew.append('<ul class="dropdown-menu"></ul>');                
63             
64            var menuUl = menuNew.find('ul');
65            
66            menuOriginal.find('li').each(function() {
67                var menuTitle = $(this).text();
68                var menuURL = $(this).find('a').attr('href');
69                var menuIMG = $(this).find('img').attr('src');
70                menuUl.append('<li><a href="'+menuURL+'"><img src="'+menuIMG+'">&nbsp;&nbsp; '+menuTitle+'</a></li>');
71            });
72    }
73    $('#box_languages_mobile .dropdown-toggle').click(function() {
74      $('#box_languages_mobile .dropdown-menu').toggleClass('open').slideToggle(200);
75    });
76}
77
78//create mobile Curreny menu
79function mobileCurrencyMenu() {	
80    var windowWidth = $(window).width();
81    if(windowWidth<=480){
82        var menuOriginal = $('#box_currencies');
83        var menuNew = $('#box_currency_mobile');
84        
85        //menuNew.append('<div class="dropdown-toggle"><span>Currency</span> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.00016 11.3333C7.8127 11.3333 7.64603 11.2707 7.52096 11.1458L3.521 7.14578C3.25016 6.89578 3.25016 6.45825 3.521 6.20825C3.771 5.93742 4.2085 5.93742 4.4585 6.20825L8.00016 9.72912L11.521 6.20825C11.771 5.93742 12.2085 5.93742 12.4585 6.20825C12.7294 6.45825 12.7294 6.89578 12.4585 7.14578L8.4585 11.1458C8.3335 11.2707 8.16683 11.3333 8.00016 11.3333Z" fill="white"/></svg></div>');
86        menuNew.append('<ul class="dropdown-menu"></ul>');                
87          
88        var menuUl = menuNew.find('ul');
89        
90        menuOriginal.find('option').each(function() {
91            var menuTitle = $(this).text();
92            var menuURL = $(this).val();
93            menuUl.append('<li><a href="'+menuURL+'">'+menuTitle+'</a></li>');
94        });
95        
96    }
97    $('#box_currency_mobile .dropdown-toggle').click(function() {
98      $('#box_currency_mobile .dropdown-menu').toggleClass('open').slideToggle(200);
99    });
100}
101*/
102$(document).ready(function() {
103    if($('.shop_product .stocks').length > 0) {
104    var scChooseElement = $('.option_select select');
105    var newText = scChooseElement.attr('data-choose');
106    var scChooseOption = $('.option_select select option:first-child');
107    setTimeout(function() {
108      scChooseOption.text(newText);
109    }, 2500); 
110    }
111      setTimeout(function() {
112    var scLang = this.Shop.lang.name;
113        console.log(scLang);
114       if (scLang == "de_DE") { 
115        this.Shop.lang.common = {
116    product_vote_alert: 'Fehler beim Senden der Bewertung.',
117    product_stock_select: 'auswählen',
118    product_stock_download_error: 'Fehler beim Herunterladen der Produktinformationen.',
119    product_select_stock: 'Produktvariante auswählen.',
120    product_select_optionfile: 'Erforderliche Dateien auswählen',
121    product_select_optiontext: 'Erforderliche Textfelder ausfüllen',
122    product_select_optionradio: 'Erforderliche Felder ausfüllen/wählen',
123    product_select_optionselect: 'Erforderliche Optionen ausfüllen',
124    product_select_optioncheckbox: 'Erforderliche Kontrollkästchen ausfüllen',
125    product_select_optioncolor: 'Farbe auswählen',
126    maps_position_error: 'Kein Zugriff auf Informationen zu Ihrem Standort.',
127    file_too_big: 'Ausgewählte Datei überschreitet das Limit von {size} MB.',
128    search: 'Im Geschäft suchen',
129    view_rwd_version: 'Responsive Version anzeigen',
130    view_desktop_version: 'Vollversion der Website anzeigen',
131    close: 'schließen',
132    recaptchaRequired: 'Recaptcha-Feld nicht ausgefüllt',
133    request: {
134        get_error: 'Fehler beim Importieren von Daten. Versuchen Sie es später erneut',
135        send_error: 'Fehler beim Senden von Änderungen. Versuchen Sie es später erneut',
136        parse_error: 'Fehler beim Speichern von Änderungen. Ungültiger Wert',
137        unexpected_error: 'Unerwarteter Fehler'
138    },
139    full_screen: 'Vollbild',
140    alert: 'Benachrichtigung des Geschäfts',
141    remove: 'entfernen',
142    basket_discount: 'Gesamt (nach Rabatt)',
143    email: 'E-Mail-Adresse',
144    discount: 'im Angebot',
145    newP: 'neues Produkt',
146    select: 'auswählen',
147    loading: 'laden',
148    ok: 'ok',
149    offline: 'Keine Verbindung zum Internet',
150    offline_long: 'Es werden keine Änderungen gespeichert, und einige Informationen können veraltet sein.',
151    empty: 'leer'
152};
153
154      }   
155        if (scLang == "nl_NL") { 
156    this.Shop.lang.common = {
157        product_vote_alert: 'Fout bij het verzenden van de beoordeling.',
158        product_stock_select: 'selecteren',
159        product_stock_download_error: 'Fout bij het downloaden van productinformatie.',
160        product_select_stock: 'Productvariant selecteren.',
161        product_select_optionfile: 'Vereiste bestanden selecteren',
162        product_select_optiontext: 'Vereiste tekstvelden invullen',
163        product_select_optionradio: 'Vereiste velden invullen/selecteren',
164        product_select_optionselect: 'Vereiste opties invullen',
165        product_select_optioncheckbox: 'Vereiste selectievakjes invullen',
166        product_select_optioncolor: 'Kleur selecteren',
167        maps_position_error: 'Geen toegang tot uw locatie-informatie.',
168        file_too_big: 'Het geselecteerde bestand overschrijdt de limiet van {size} MB.',
169        search: 'Zoeken in de winkel',
170        view_rwd_version: 'Responsive versie weergeven',
171        view_desktop_version: 'Volledige versie van de website weergeven',
172        close: 'sluiten',
173        recaptchaRequired: 'Recaptcha-veld niet ingevuld',
174        request: {
175            get_error: 'Fout bij het importeren van gegevens. Probeer het later opnieuw',
176            send_error: 'Fout bij het verzenden van wijzigingen. Probeer het later opnieuw',
177            parse_error: 'Fout bij het opslaan van wijzigingen. Ongeldige waarde',
178            unexpected_error: 'Onverwachte fout'
179        },
180        full_screen: 'Volledig scherm',
181        alert: 'Winkelmelding',
182        remove: 'verwijderen',
183        basket_discount: 'Totaal (na korting)',
184        email: 'E-mailadres',
185        discount: 'in de aanbieding',
186        newP: 'nieuw product',
187        select: 'selecteren',
188        loading: 'laden',
189        ok: 'oké',
190        offline: 'Geen internetverbinding',
191        offline_long: 'Wijzigingen worden niet opgeslagen en sommige informatie kan verouderd zijn.',
192        empty: 'leeg'
193    };
194}
195
196        
197if (scLang == "fr_FR") {
198       this.Shop.lang.common = {
199    product_vote_alert: 'Erreur lors de l\'envoi du vote.',
200    product_stock_select: 'choisir',
201    product_stock_download_error: 'Erreur lors du téléchargement des informations sur le produit.',
202    product_select_stock: 'Sélectionnez la variante du produit.',
203    product_select_optionfile: 'Sélectionnez les fichiers requis',
204    product_select_optiontext: 'Remplissez les champs de texte requis',
205    product_select_optionradio: 'Remplissez/choisissez les champs requis',
206    product_select_optionselect: 'Remplissez les options requises',
207    product_select_optioncheckbox: 'Remplissez les cases à cocher requises',
208    product_select_optioncolor: 'Choisissez la couleur',
209    maps_position_error: 'Pas d\'accès aux informations sur votre position.',
210    file_too_big: 'Le fichier sélectionné dépasse la limite de {size} Mo.',
211    search: 'Rechercher dans le magasin',
212    view_rwd_version: 'Voir la version responsive',
213    view_desktop_version: 'Voir la version complète du site',
214    close: 'fermer',
215    recaptchaRequired: 'Champ Recaptcha non rempli',
216    request: {
217        get_error: 'Erreur lors de l\'importation des données. Réessayez plus tard',
218        send_error: 'Erreur lors de l\'envoi des changements. Réessayez plus tard',
219        parse_error: 'Erreur lors de l\'enregistrement des changements. Valeur non valide',
220        unexpected_error: 'Erreur inattendue'
221    },
222    full_screen: 'plein écran',
223    alert: 'Notification du magasin',
224    remove: 'supprimer',
225    basket_discount: 'total (après réduction)',
226    email: 'Adresse e-mail',
227    discount: 'étiquette en solde',
228    newP: 'nouveau produit',
229    select: 'sélectionner',
230    loading: 'chargement',
231    ok: 'ok',
232    offline: 'Vous n\'êtes pas connecté à Internet',
233    offline_long: 'Aucun changement ne sera enregistré, et certaines informations peuvent être obsolètes.',
234    empty: 'vide'
235};
236 
237      }
238        if (scLang == "es_ES") { 
239    this.Shop.lang.common = {
240        product_vote_alert: 'Error al enviar la valoración.',
241        product_stock_select: 'seleccionar',
242        product_stock_download_error: 'Error al descargar la información del producto.',
243        product_select_stock: 'Seleccionar variante del producto.',
244        product_select_optionfile: 'Seleccionar archivos requeridos',
245        product_select_optiontext: 'Rellenar los campos de texto requeridos',
246        product_select_optionradio: 'Completar/seleccionar los campos requeridos',
247        product_select_optionselect: 'Completar las opciones requeridas',
248        product_select_optioncheckbox: 'Completar las casillas requeridas',
249        product_select_optioncolor: 'Seleccionar color',
250        maps_position_error: 'No se puede acceder a la información de su ubicación.',
251        file_too_big: 'El archivo seleccionado supera el límite de {size} MB.',
252        search: 'Buscar en la tienda',
253        view_rwd_version: 'Ver versión responsive',
254        view_desktop_version: 'Ver versión completa del sitio web',
255        close: 'cerrar',
256        recaptchaRequired: 'Campo Recaptcha no completado',
257        request: {
258            get_error: 'Error al importar datos. Inténtelo de nuevo más tarde',
259            send_error: 'Error al enviar los cambios. Inténtelo de nuevo más tarde',
260            parse_error: 'Error al guardar los cambios. Valor no válido',
261            unexpected_error: 'Error inesperado'
262        },
263        full_screen: 'Pantalla completa',
264        alert: 'Notificación de la tienda',
265        remove: 'eliminar',
266        basket_discount: 'Total (después del descuento)',
267        email: 'Correo electrónico',
268        discount: 'en oferta',
269        newP: 'nuevo producto',
270        select: 'seleccionar',
271        loading: 'cargando',
272        ok: 'ok',
273        offline: 'Sin conexión a internet',
274        offline_long: 'No se guardarán los cambios y alguna información podría estar desactualizada.',
275        empty: 'vacío'
276    };
277}
278
279    if (scLang == "cs_CZ") {
280             this.Shop.lang.ajaxbasket = {
281            submit_error: 'Error while adding product to the cart.',
282            product_added: 'Úspěšně přidáno do košíku:',
283            continue_shopping: 'Pokračovat v nákupu',
284            goto_basket: 'Přejít do košíku',
285            product_name: '{name} ({quantity} {unit})',
286            basket_items: 'Products in cart: {count}. Total order amount: {sum}.',
287            quantity: 'Quantity',
288            netto_label: 'Net price',
289            brutto_label: 'Gross price',
290            basket_value: 'Cart value',
291            basket_value_discount: 'Cart value (after discount)',
292            products_number: 'Number of products in the cart',
293            free_shipping_empty: 'Free shipping ({shippingName}) on orders of {shippingAmount} and more.',
294            free_shipping_higher: 'Order higher than {shippingAmount} - you get a free shipping ({shippingName}).',
295            free_shipping_equal: 'Order for {shippingAmount} - you get a free shipping ({shippingName}).',
296            free_shipping_lower: 'You need another {shippingAmount} for free shipping ({shippingName}).'
297             }
298             
299             this.Shop.lang.common = {
300    product_vote_alert: 'Chyba při odesílání hlasu.',
301    product_stock_select: 'vybrat',
302    product_stock_download_error: 'Chyba při stahování informací o produktu.',
303    product_select_stock: 'Vyberte variantu produktu.',
304    product_select_optionfile: 'Vyberte požadované soubory',
305    product_select_optiontext: 'Vyplňte požadovaná textová pole',
306    product_select_optionradio: 'Vyplňte/vyberte požadovaná pole',
307    product_select_optionselect: 'Vyplňte požadované možnosti',
308    product_select_optioncheckbox: 'Vyplňte požadované zaškrtávací políčka',
309    product_select_optioncolor: 'Vyberte barvu',
310    maps_position_error: 'Není přístup k informacím o vaší poloze.',
311    file_too_big: 'Vybraný soubor překračuje limit {size} MB.',
312    search: 'Hledat ve obchodě',
313    view_rwd_version: 'Zobrazit responzivní verzi',
314    view_desktop_version: 'Zobrazit plnou verzi stránky',
315    close: 'zavřít',
316    recaptchaRequired: 'Pole Recaptcha není vyplněno',
317    request: {
318        get_error: 'Chyba při importu dat. Zkuste to znovu za chvíli',
319        send_error: 'Chyba při odesílání změn. Zkuste to znovu za chvíli',
320        parse_error: 'Chyba při ukládání změn. Neplatná hodnota',
321        unexpected_error: 'Neočekávaná chyba'
322    },
323    full_screen: 'celá obrazovka',
324    alert: 'Oznámení obchodu',
325    remove: 'odebrat',
326    basket_discount: 'celkem (po slevě)',
327    email: 'Emailová adresa',
328    discount: 'štítek ve výprodeji',
329    newP: 'nový produkt štítek',
330    select: 'vybrat',
331    loading: 'načítání',
332    ok: 'ok',
333    offline: 'Nejste připojeni k internetu',
334    offline_long: 'Žádné změny nebudou uloženy a některé informace mohou být zastaralé.',
335    empty: 'prázdný'
336};
337
338   } 
339       }, 1000);   
340  });
341
342
343
344
345
346/*top bar start*/
347$(document).ready(function() {
348   var scBoxCurencies = $("#box_currencies");
349  
350    if (scBoxCurencies.length > 0) {
351      
352      var resizeTimer;
353$(window).resize(function() {
354    clearTimeout(resizeTimer);
355    resizeTimer = setTimeout(function() {
356        
357        if ($(window).width() < 767) {
358            console.log("Szerokość mniejsza niż 767px");
359          
360             
361        var scBoxLanguages = $("#box_languages");
362        var scTopBarMove = $('#sc_move');
363
364        if (scBoxCurencies.length > 0) {
365
366            scBoxCurencies.appendTo(scTopBarMove);
367            $('#box_currencies_select option').each(function() {
368                var scLangValue = $(this).val().replace('?currency=', '');
369                $(this).text(scLangValue);
370
371            });
372
373        }
374
375
376        if (scBoxLanguages.length > 0) {
377          	const newItem = $("li.selected", scBoxLanguages).clone();
378			newItem.addClass("current");
379			$("li.selected", scBoxLanguages).removeClass("selected");
380			$("ul", scBoxLanguages).prepend(newItem);
381          
382            scBoxLanguages.appendTo(scTopBarMove);
383          /* $('#box_languages ul').after('<div class="sc_click" id="sc_show"> <img src="https://fooqs.com/public/assets/sc-arrow.png"/></div>'); */
384          	$("li.current a", scBoxLanguages).on("click touch", function (event) {
385				event.preventDefault();
386				$("#box_languages li:not(.current)").toggleClass("sc_display");
387			});
388          
389            $("#sc_show").on('click touch',function() {
390                $("#box_languages li:not(.current)").toggleClass("sc_display");
391            });
392
393        }
394
395        }
396    }, 250); // Czas opóźnienia w milisekundach
397});
398      
399    
400    }
401
402});
403
404/*top bar end shopcademy.pl*/
405
406$('document').ready(function () {
407	if(($('#box_contact').length > 0) || $('body.shop_product').length > 0) {
408        var script = document.createElement('script');
409        script.src = 'https://fooqs.com/upload/OnisoftFormularzeKontaktowe/OnisoftShoperKontakt_saas_v1.0.1.prod.js?v2';
410        script.async = true;
411        script.onload = function () {
412			//console.log('OnisoftFormularzeKontaktowe - loaded');
413			
414			if($('#box_contact').length > 0) {
415				//uruchomienie instancji aplikacji
416				$kappInst = new OnisoftShoperKontak('https://srv6.shoperowo.pl/foogs.com/');
417				$kappInst.loadOptions({cdebug : true,appName: 'Zaawansowane formularze kontaktowe'});
418				$('#box_contact .innerbox form').remove();
419				
420				let formData = $kappInst.initKontaktForm();
421				if(formData != ''){
422					$('#box_contact .innerbox').append(formData);
423				}
424			}
425			
426			if($('body.shop_product').length > 0) {
427				//console.log('OnisoftFormularzeKontaktowe - loaded product');
428				//uruchomienie instancji aplikacji
429				$kappInst = new OnisoftShoperKontak('https://srv6.shoperowo.pl/foogs.com/');
430				$kappInst.loadOptions({cdebug : true,appName: 'Zaawansowane formularze kontaktowe'});
431				
432				let formData = $kappInst.initProductKontaktForm();
433				if(formData != '') {
434					$('body').append(formData);
435				}
436			}
437        }
438		
439		document.head.appendChild(script);	
440	}
441});
442
443!function(){Shop.include({selectorFunctions:{webowaVideoProductGallery:{selector:"#box_productfull",options:{config:{position:3,photoSizeThumbnail:120},player:{autoplay:!1,mute:!0}},domready:function(e){const a=this;if("undefined"==typeof shoper)return void setTimeout(function(){a.domready(e)},100);const i=new t(shoper,e);i.setSettings($.extend({},this.options,"undefined"!=typeof webowaVideoProductGallery?webowaVideoProductGallery:{})),i.initialize()}}}});class e{autoplay=null;mute=null;position=null;constructor(e,a){if(this.id=t.newGuid(),this.type=e,this.src=a,this.cover=null,this.name=this.description=$("h1.name[itemprop='name']").text().trim(),"youtube"===this.type)this.cover=`${t.youTube.thumbnailUri}${this.src}/sddefault.jpg`}setCover(e){return e&&0!=e.trim().length?(this.cover=e.trim(),this):this}setName(e){return e&&0!=e.trim().length?(this.name=e.trim(),this):this}setDescription(e){return e&&0!=e.trim().length?(this.description=e.trim(),this):this}setAutoplay(e){return!e||"0"!==e.trim()&&"1"!==e.trim()||(this.autoplay="1"==e.trim()),this}setMute(e){return!e||"0"!==e.trim()&&"1"!==e.trim()||(this.mute="1"==e.trim()),this}setPosition(e){return/^\d+$/.test(e)?(this.position=parseInt(e),this):this}thumbnail(){return"youtube"===this.type?`${t.youTube.thumbnailUri}${this.src}/default.jpg`:this.cover}image(){return this.cover}uri(){switch(this.type){case"youtube":return`${t.youTube.uri}watch?v=${this.src}`;case"vimeo":return`${t.vimeo.uri}${this.src}`;default:return this.src}}}class t{static appName="videoProductGallery";static youTube={uri:"https://www.youtube.com/",thumbnailUri:"https://img.youtube.com/vi/"};static vimeo={uri:"https://vimeo.com/",player:"https://player.vimeo.com/"};settings={debug:!1,config:{position:99999,photoSizeThumbnail:120}
443,player:{autoplay:!1,mute:!0},i18n:{thumbnailXofY:"Thumbnail %s of %s. %s. Press Enter or Space to open the selected photo in fullscreen view.",mustConsentUseCookies:"To view the video, you need to allow the use of cookies.",giveConsent:"Allow cookies"}};shortCode=new r;mainImage=null;smallGallery=null;constructor(e,t){this.shoper=e,this.element=t}static log(e){}static warning(e,...t){replace(/{(\d+)}/g,(e,a)=>void 0!==t[a]?t[a]:e)}static newGuid(){return Math.random().toString(36).substr(2,9)}setSettings(e){const a="Invalid value in parameter {0} (required: {1}, default: {2})";void 0!==e.debug&&(this.isBoolean(e.debug)?this.settings.debug=e.debug:t.warning(a,"debug","boolean",this.settings.debug)),void 0!==e.config.position&&(this.isInteger(e.config.position)&&e.config.position>0?this.settings.config.position=e.config.position:t.warning(a,"config.position","integer",this.settings.config.position)),void 0!==e.config.photoSizeThumbnail&&(this.isInteger(e.config.photoSizeThumbnail)&&e.config.photoSizeThumbnail>0?this.settings.config.photoSizeThumbnail=e.photoSizeThumbnail:t.warning(a,"config.photoSizeThumbnail","integer",this.settings.config.photoSizeThumbnail)),void 0!==e.player.autoplay&&(this.isBoolean(e.player.autoplay)?this.settings.player.autoplay=e.player.autoplay:t.warning(a,"player.autoplay","boolean",this.settings.player.autoplay)),void 0!==e.player.mute&&(this.isBoolean(e.player.mute)?this.settings.player.mute=e.player.mute:t.warning(a,"player.mute","boolean",this.settings.player.mute)),void 0!==e.i18n&&(this.settings.i18n=e.i18n)}initialize(){return this.shortCode.result().length?(this.mainImage=new a(this),this.mainImage.exists()?(this.smallGallery=new n(this),this.mainPlaylist=new o(this),this.galleryPlaylist=new s(this),this.sdk(),this.events(),this.gallery(),t.log(this),!0):(t.log("main image not exists",this),!1)):(t.log("short code not exists",this),!1)}appendScript(e,t){let a=document.createElement("script");a.src=e,void 0!==t&&(a.onload=t),document.body.append(a)}sdk(){const e=this.shoper,a=this;window.onYouTubeIframeAPIReady=function(){a.mainPlaylist.onYouTubeIframeAPIReady(),a.galleryPlaylist.onYouTubeIframeAPIReady()},void 0!==e.gallery&&void 0!==e.gallery.initialize&&(e.gallery.initialize($("[data-gallery='true']")),t.log("sdk: Gallery")),void 0!==e.imageslider&&(e.imageslider.initialize({container:this.smallGallery.element}),t.log("sdk: ImageSlider")),void 0!==e.selectorFunctions&&void 0!==e.selectorFunctions.minigalleryhover&&($(e.selectorFunctions.minigalleryhover.selector).each(function(){e.selectorFunctions.minigalleryhover.load($(this),e)}),t.log("sdk: MiniGalleryHover"))}events(){const e=this;this.smallGallery.list().each(function(t){const a=$(this),i=$("a",a);a.hasClass("webowa-video-thumbnail")?(a.on("mouseenter",function(){e.mainPlaylist.videoDisplay(i.data("webowa-id"),i.data("webowa-type"),i.data("webowa-uri"),i.data("webowa-cover"),i.data("webowa-src"),i.data("webowa-autoplay"),i.data("webowa-mute"))}),0==t&&a.trigger("mouseenter")):a.on("mouseenter",function(t){e.mainPlaylist.imageDisplay($(this))}),i.on("click",function(a){a.preventDefault(),e.triggerGallery(t+1)})})}triggerGallery(e){if(2===this.mainImage.version)location.hash="galleryName=productGallery,imageNumber="+e}gallery(){const e=this;let t=null;this.hasSdk1()&&(t=new MutationObserver(t=>{e.galleryPlaylist.videoDisplay($(".shop-gallery .shop-gallery-img"))}));new MutationObserver(a=>{const i="img[src*='?video=']:not(.webowa-video-cover)";if(e.hasSdk1())a.forEach(a=>{a.addedNodes.forEach(a=>{1===a.nodeType&&a.classList.contains("shop-gallery")&&(e.mainPlaylist.stop(),e.galleryPlaylist.correctThumbnails($(a)),t.observe(a.querySelector(".shop-gallery-img"),{attributes:!0,attributeFilter:["src"]}))}),a.removedNodes.forEach(a=>{1===a.nodeType&&a.classList.contains("shop-gallery")&&(e.galleryPlaylist.clear(),t.disconnect())})}),$(`.shop-gallery ${i}`).each(function(){e.galleryPlaylist.videoDisplay($(this))});else if(e.hasSdk2()){a.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&t.classList.contains("js__gallery_new")&&(e.mainPlaylist.stop(),$(".js__gallery_new").on("previousImage nextImage",function(){e.galleryPlaylist.stop()}))}
443),t.removedNodes.forEach(t=>{1===t.nodeType&&t.classList.contains("js__gallery_new")&&e.galleryPlaylist.clear()})});const t=$(`.js__gallery_new ${i}`);t.length&&t.each(function(){e.galleryPlaylist.videoDisplay($(this))})}}).observe(document.body,{childList:!0,subtree:!0})}hasSdk1(){return 1==this.mainImage.version}hasSdk2(){return 2==this.mainImage.version}isBoolean(e){return"boolean"==typeof e}isInteger(e){return"number"==typeof e}isObject(e){return"object"==typeof e}}class a{constructor(e){this.app=e,this.element=$(".productimg .mainimg",this.app.element),this.version=this.image().hasClass("js__open-gallery")?2:1;const t=$("a",this.element);t&&this.fixSingleImage(t);const a=$("<p>").text(this.app.settings.i18n.mustConsentUseCookies),i=$("<button>",{class:"btn btn-red"}).text(this.app.settings.i18n.giveConsent);i.on("click",function(e){e.preventDefault(),e.stopPropagation(),$("a[href='#cookies-settings']").trigger("click")}),this.play=$("<a>",{href:"",target:"_blank",class:"webowa-video-play"}),this.play.on("click",function(e){e.stopPropagation()}),this.play.append(a),$("a[href='#cookies-settings']")&&this.play.append(i),this.element.append(this.play),this.loader=$("<div>",{class:"webowa-video-loader"}),this.element.append(this.loader)}fixSingleImage(e){$("link",e).appendTo(this.element);const t=$("img",e);t.addClass("productimg").appendTo(this.element),2==this.version&&t.attr("data-gallery-name-to-open",t.attr("data-gallery-name-to-open")).removeAttr("data-gallery-name"),e.remove()}exists(){return!(0==this.element.length)}image(){return $("img",this.element)}video(){return $(".webowa-video-container",this.element)}show(){this.image().removeClass("none")}hide(){this.image().addClass("none"),this.video().addClass("none")}get about(){return{src:this.image().attr("src"),name:this.image().attr("alt")}}hasDefault(){return!(-1==this.about.src.indexOf("_productGfx___overlay"))}}class i{storage={};static prefix="playlist";constructor(e){this.app=e}onBeforeLoad(e){}onLoad(e){}instance(e,t,a,i,s,o,r,n){if(!this.exists(e)){const h=l.factory(this.app,this,e,t,a,i,s,o,r,n);if(!h)return null;this.storage[e]=h}return this.storage[e]}exists(e){return void 0!==this.storage[e]}get(e){return this.storage[e]}clear(){this.storage={}}onIframeAPIReady(e){const t=this;Object.keys(this.storage).filter(a=>t.storage[a]&&t.storage[a]instanceof e).forEach(function(e){t.get(e).afterCreate()})}onYouTubeIframeAPIReady(){this.onIframeAPIReady(d)}onVimeoIframeAPIReady(){this.onIframeAPIReady(p)}stop(e){const t=this;Object.keys(this.storage).filter(a=>e!=a&&t.get(a).load).forEach(function(e){t.get(e).pause()})}}class s extends i{static prefix="webowa-video-gallery";onBeforeLoad(e){e.parentElement.addClass("webowa-loading").removeClass("webowa-cover")}onLoad(e){this.app.hasSdk1()&&shoper.gallery.reposition($(".shop-gallery"),$(".shop-gallery .webowa-video-container")),e.parentElement.addClass("webowa-ready").removeClass("webowa-cover").removeClass("webowa-loading"),e.element.removeClass("none")}parseUri(e){const t=/\?video=webowa-video-main-(.*)/.exec(e);return t?t[1]:""}videoDisplay(e){const a=e.parent(),i=e.attr("src").replace(location.origin,""),o=this.parseUri(i),r=$("a[href='"+i+"']",this.app.smallGallery.list());if(a.attr("data-webowa-video")==o)return;if(a.attr("data-webowa-video",o),this.reset(a),!r||!r.parent().hasClass("webowa-video-thumbnail"))return!1;e.addClass("webowa-video-cover"),a.addClass("webowa-video-gallery").addClass("webowa-cover").removeClass("webowa-loading").removeClass("webowa-ready"),this.app.hasSdk1()&&a.closest(".shop-gallery-inner").addClass("webowa-video-gallery-container"),$("<a>",{href:r.data("webowa-uri"),target:"_blank",class:"webowa-video-play"}).appendTo(a);const n=this.instance(`${s.prefix}-${t.newGuid()}`,e.parent(),r.data("webowa-type"),r.data("webowa-uri"),r.data("webowa-cover"),r.data("webowa-src"),!1,!0);if(!n.load)return!1;this.onLoad(n)}reset(e){this.app.hasSdk1()&&e.closest(".shop-gallery-inner").removeClass("webowa-video-gallery-container"),$(".webowa-video-play",e).remove(),$(".webowa-video-container",e).remove(),e.removeClass("webowa-video-image").removeClass("webowa-cover").removeClass("webowa-loading").removeClass("webowa-ready")}
443correctThumbnails(e){const t=this;$(".shop-gallery-item-preview[data-href*='?video='] img",e).each(function(){const e=$(this).parent();if(!$("a[href='"+$(this).attr("src").replace(location.origin,"")+"']",t.app.smallGallery.list()))return!1;e.addClass("webowa-video-gallery-thumbnail")})}}class o extends i{static prefix="webowa-video-main";constructor(e){super(),this.app=e,this.mainImage=e.mainImage}onBeforeLoad(e){e.display&&this.mainImage.element.addClass("webowa-loading").removeClass("webowa-cover")}onLoad(e){e.display&&e.playlist.videoDisplay(e.id,null,null,null,null,null,null,!0)}videoDisplay(e,t,a,i,s,o,r,n){const l=this.instance(e,this.mainImage.element,t,a,i,s,o,r);l&&(void 0===n&&(l.display=!0),l.display&&(this.reset(e),void 0===n&&(1==this.mainImage.version&&this.mainImage.image().attr("src",i),this.mainImage.play.attr("href",a)),this.mainImage.element.addClass("webowa-video-image").addClass("webowa-cover").removeClass("webowa-loading").removeClass("webowa-ready"),l.load&&(this.mainImage.element.addClass("webowa-ready").removeClass("webowa-cover").removeClass("webowa-loading"),l.element.removeClass("none"),l.autoplay&&l.play())))}imageDisplay(e){this.mainImage.element.removeClass("webowa-video-image").removeClass("webowa-cover").removeClass("webowa-loading").removeClass("webowa-ready"),1==this.mainImage.version&&this.mainImage.image().attr("src",$("link",e).attr("href")),this.reset()}reset(e){const t=this;this.stop(e),Object.keys(this.storage).filter(t=>e!=t).forEach(function(e){t.get(e).turnOff()})}}
443class r{constructor(){this.storage=[],this.element=$("#box_description .resetcss"),this.search()}findElements(){if(!this.element)return!1;const e=$("*",this.element).filter(function(){return/\[(video|youtube|vimeo)="([^"]+)"(?:\s+[\w-]+="[^"]*")*\]/.test($(this).text().trim())});return e.length?e:[]}parseElement(e){const t=(e=e.trim()).match(/\[(video|youtube|vimeo)="([^"]+)"/);return!!t&&{source:e,type:t[1],src:t[2],getAttr:t=>{const a=e.match(new RegExp(`${t}="([^"]*)"`,"i"));return a?a[1]:null}}}isValid(e){return e.src?this.result().map(e=>e.src).includes(e.src)?(t.log(e.source+" duplicate src",e.source),!1):["video","vimeo"].includes(e.type)&&!e.getAttr("cover")?(t.log(e.source+" required cover",e.source),!1):!this.result().map(e=>e.cover).includes(e.getAttr("cover"))||(t.log(e.source+" duplicate cover",e.source),!1):(t.log(e.source+" required src"),!1)}search(){const t=this.findElements();if(!t.length)return!1;const a=this;return t.each(function(){const t=a.parseElement($(this).text());if(!a.isValid(t))return null;const i=new e(t.type,t.src);i.setCover(t.getAttr("cover")),i.setName(t.getAttr("name")),i.setDescription(t.getAttr("description")),i.setAutoplay(t.getAttr("autoplay")),i.setMute(t.getAttr("mute")),i.setPosition(t.getAttr("position")),a.storage.push(i)}),t.remove(),this.storage.reverse(),!0}result(){return this.storage}}class n{constructor(e){this.app=e,this.element=$(".productimg .smallgallery",this.app.element),this.position=e.settings.config.position,this.listExists()||this.create(),this.clone();const a=this;this.app.shortCode.result().forEach(function(e){a.append(a.video(a.newIdentifier(),e),e.position||a.position),t.log("append video")}),this.ariaLabel()}clone(){const e=this.element.clone();e.addClass("webowa-smallgallery"),this.element.after(e),this.element.remove(),this.element=e}exists(){return!(0==this.element.length)}list(){return $("ul li",this.element)}listExists(){return!(0==this.length())}length(){return this.list().length}newIdentifier(){if(0==this.length())return 1;const e=$("a",this.list()).map(function(e){return parseInt($(this).attr("id").replace("prodimg",""))});return Math.max(...e.get())+1}create(){const e=$("<div>",{class:"innersmallgallery"}),a=$("<ul>",{class:"r--l-flex r--l-flex-wrap"});return e.append(a),this.element.append(e),this.app.mainImage.hasDefault()||(this.append(this.image(this.newIdentifier(),this.app.mainImage.about.src,this.app.mainImage.about.name),99999),t.log("append default image")),!0}append(e,t){const a=this.list().filter(".webowa-video-thumbnail[data-webowa-position='"+t+"']:first").get(0)||this.list().get(t-1);a?$(a).before(e):$("ul",this.element).append(e),1==this.length()?this.element.addClass("none"):this.length()>1&&this.element.removeClass("none")}thumbnail(e,t,a,i,s,o,r){const n=$("<li>",{class:"r--l-flex r--l-flex-vcenter"}),l=$("<a>",{id:"prodimg"+e,href:o,title:t,class:"gallery","aria-label":""});n.append(l),$("<link>",{itemprop:i,href:r}).appendTo(l);const h=$("<img>",{src:s,alt:t,"data-img-name":o}).attr("width",this.app.settings.config.photoSizeThumbnail).attr("height",this.app.settings.config.photoSizeThumbnail);return l.append(h),this.app.hasSdk1()?l.attr("data-gallery","true").attr("data-gallery-list",$("h1.name[itemprop='name']").text().trim()):this.app.hasSdk2()&&(l.addClass("js__gallery-anchor-image"),h.addClass("js__open-gallery").attr("data-gallery-name","productGallery").attr("data-image-description",t).attr("data-image-announcement",a)),n}image(e,t,a){const i=this.thumbnail(e,a,a,"image",t,t,t);return i.addClass("webowa-thumbnail-image"),i}video(e,t){const a=this.thumbnail(e,t.name,t.description,"video",t.thumbnail(),`${t.image()}?video=${o.prefix}-${t.id}`,t.uri());a.addClass("webowa-video-thumbnail");let i=t.autoplay||this.app.settings.player.autoplay,s=t.mute||this.app.settings.player.mute;return i&&!s&&(s=!0),a.attr("data-webowa-position",t.position||this.app.settings.config.position),$("a",a).attr("data-webowa-id",`${o.prefix}-${t.id}`).attr("data-webowa-type",t.type).attr("data-webowa-uri",t.uri()).attr("data-webowa-cover",t.image()).attr("data-webowa-src",t.src).attr("data-webowa-autoplay",i).attr("data-webowa-mute",s),a}ariaLabel(){const e=this;this.list().each(function(t){const a=$(this),i=$("a",a),s=$("img",a).data("image-announcement"),o=e.app.settings.i18n.thumbnailXofY.replace("%s",t+1).replace("%s",e.length()).replace("%s",s);i.attr("aria-label",o)})}}class l{element=null;display=!0;load=!1;triggeredByScript=!1;constructor(e,t,a,i,s,o,r,n,l){this.app=e,this.playlist=t,this.parentElement=a,this.id=i,this.uri=s,this.cover=o,this.src=r,this.autoplay=n,this.mute=l,this.create()}static factory(e,t,a,i,s,o,r,n,l,c){switch(s){case"video":return new h(e,t,i,a,o,r,n,l,c);case"youtube":return new d(e,t,i,a,o,r,n,l,c);case"vimeo":return new p(e,t,i,a,o,r,n,l,c)}return!1}setAutoplay(e){this.triggeredByScript?this.triggeredByScript=!1:(this.triggeredByScript=!1,this.autoplay=e)}turnOff(){this.element.addClass("none"),this.display=!1}create(){this.parentElement.append(this._create()),this.afterCreate()}afterCreate(){}ready(){this.load=!0,this.element.addClass("webowa-video-container"),this.mute&&this._mute(),this.playlist.onLoad(this)}mute(){if(!this.load)return!1;this.triggeredByScript=!0,this._mute()}_mute(){}play(){if(!this.load)return!1;this.triggeredByScript=!0,this._play()}_play(){}pause(){if(!this.load)return!1;this.triggeredByScript=!0,this._pause()}_pause(){}}class h extends l{_create(){const e=this;return this.playlist.onBeforeLoad(this),this.element=$("<video>",{id:this.id,poster:this.cover,controls:"",disablepictureinpicture:"",disableremoteplayback:"",preload:this.autoplay?"auto":"metadata",autoplay:this.autoplay,muted:this.mute,class:"none"}).append($("<source>",{src:this.src,type:"video/mp4"})),this.element.on("loadedmetadata",function(t){e.ready()}),this.element.on("play",function(){e.setAutoplay(!0)}),this.element.on("pause",function(){e.setAutoplay(!1)}),this.element}_play(){this.element.get(0).play()}_pause(){this.element.get(0).pause()}}class p extends l{player=null;_create(){return this.element=$("<div>",{id:this.id}),this.element}afterCreate(){const e=this;window.customerPrivacy.onMarketingConsentGranted(function(){if(e.playlist.onBeforeLoad(e),"undefined"==typeof Vimeo)return e.app.appendScript(`${t.vimeo.player}api/player.js`,function(){e.app.mainPlaylist.onVimeoIframeAPIReady(),e.app.galleryPlaylist.onVimeoIframeAPIReady()}),!0;e.player=new Vimeo.Player(e.id,{id:e.src}),e.player.ready().then(function(t){e.player=new Vimeo.Player($(`#${e.id} iframe`).get(0)),e.ready()}),e.player.on("play",function(){e.setAutoplay(!0)}),e.player.on("pause",function(){e.setAutoplay(!1)})})}_mute(){this.player.setVolume(0)}_play(){this.player.play()}_pause(){this.player.pause()}}class d extends l{player=null;_create(){return this.element=$("<div>",{id:this.id}),this.element}afterCreate(){const e=this;window.customerPrivacy.onMarketingConsentGranted(function(){if(e.playlist.onBeforeLoad(e),"undefined"==typeof YT)return e.app.appendScript(`${t.youTube.uri}iframe_api`),!0;new YT.Player(e.id,{videoId:e.src,events:{onReady:function(t){e.player=t.target,e.element=$("#"+e.id),e.ready()},onStateChange:function(t){t.data==YT.PlayerState.PLAYING?e.setAutoplay(!0):t.data==YT.PlayerState.PAUSED&&e.setAutoplay(!1)}}})})}_mute(){this.player.mute()}_play(){this.player.playVideo()}_pause(){1==this.player.getPlayerState()&&this.player.pauseVideo()}}}();
444
445!function(){Shop.include({selectorFunctions:{webowaRelatedProductsCartPopup:{selector:"body",options:{},domready:function(e){const s=this;if("undefined"==typeof shoper||"undefined"==typeof frontAPI)return void setTimeout(function(){s.domready(e)},100);new t(shoper,frontAPI).setSettings($.extend({},this.options,"undefined"!=typeof webowaRelatedProductsCartPopup?webowaRelatedProductsCartPopup:{}))}}}});class t{static appName="videoProductGallery";settings={debug:!1,config:{layout:"grid",source:"related",limit:50,grid:[2,2,2,3,4],imageWith:300,imageHeight:300,price:!0,addToBasket:!0},i18n:{relatedProducts:"Related products",goToProduct:"Go to product",price:"Price",regularPrice:"Regular price",lowestPrice:"Lowest price",lowestPriceDuring30D
445ays:"The lowest price during 30 days prior to the reduction",addToCart:"Add to cart"}};modal=null;constructor(t,e){this.shoper=t,this.frontAPI=e;const a=this;t.addEvent("cart:add:ajax",(t,e)=>{let o;if(e=e.get(0),a.modal&&a.modal.self.destroyModal(),e.classList.contains("form-basket")){const t=e.querySelector("input[name='product_id']");if(!t)return;o=t.value}else{const t=e.closest(".product[data-product-id]");if(!t)return;o=t.dataset.productId}new s(a.frontAPI,a.settings.config.source,this.settings.config.limit).initialize(o,t=>{a.initialize(t)})})}static log(t){}static warning(t,...e){replace(/{(\d+)}/g,(t,s)=>void 0!==e[s]?e[s]:t)}setSettings(e){const a="Invalid value in parameter {0} (required: {1}, default: {2})";void 0!==e.debug&&(this.isBoolean(e.debug)?this.settings.debug=e.debug:t.warning(a,"debug","boolean",this.settings.debug)),void 0!==e.config&&(void 0!==e.config.layout&&(o.TYPES.includes(e.config.layout)?this.settings.config.layout=e.config.layout:t.warning(a,"config.layout","string",this.settings.config.layout)),void 0!==e.config.source&&(s.TYPES.includes(e.config.source)?this.settings.config.source=e.config.source:t.warning(a,"config.source","string",this.settings.config.source)),void 0!==e.config.limit&&(this.isInteger(e.config.limit)&&e.config.limit>0&&e.config.limit<=50?this.settings.config.limit=e.limit:t.warning(a,"config.limit","integer",this.settings.config.limit)),void 0!==e.config.grid&&(this.isArray(e.config.grid)&&e.config.grid>0?this.settings.config.grid=e.config.grid:t.warning(a,"config.grid","array",this.settings.config.grid)),void 0!==e.config.imageWith&&(this.isInteger(e.config.imageWith)&&e.config.imageWith>0?this.settings.config.imageWith=e.imageWith:t.warning(a,"config.imageWith","integer",this.settings.config.imageWith)),void 0!==e.config.imageHeight&&(this.isInteger(e.config.imageHeight)?this.settings.config.imageHeight=e.config.imageHeight:t.warning(a,"config.imageHeight","integer",this.settings.config.imageHeight)),void 0!==e.config.price&&(this.isBoolean(e.config.price)?this.settings.config.price=e.config.price:t.warning(a,"config.price","boolean",this.settings.config.price)),void 0!==e.config.addToCart&&(this.isBoolean(e.config.addToCart)?this.settings.config.addToCart=e.config.addToCart:t.warning(a,"config.addToCart","boolean",this.settings.config.addToCart))),void 0!==e.i18n&&(this.settings.i18n=e.i18n)}initialize(t){this.appendStyle(),this.modal=new e(this.shoper.ajaxbasket.modal),this.createBox(t)&&(this.modal.turnOnScroll().reposition(),this.sdk())}appendStyle(){const t=document.createElement("style");t.textContent=".box.webowa-products.webowa-products-grid{width:100%}.box.webowa-products.webowa-products-grid .products{display:grid!important;column-gap:20px}.box.webowa-products.webowa-products-grid .products::after,.box.webowa-products.webowa-products-grid .products::before{display:none!important}.box.webowa-products.webowa-products-grid .products .product{width:100%}.box.webowa-products.webowa-products-grid .products.webowa-xs-1{grid-template-columns:repeat(1,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xs-2{grid-template-columns:repeat(2,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xs-3{grid-template-columns:repeat(3,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xs-4{grid-template-columns:repeat(4,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xs-5{grid-template-columns:repeat(5,1fr)}@media screen and (min-width:576px){.box.webowa-products.webowa-products-grid .products.webowa-sm-1{grid-template-columns:repeat(1,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-sm-2{grid-template-columns:repeat(2,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-sm-3{grid-template-columns:repeat(3,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-sm-4{grid-template-columns:repeat(4,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-sm-5{grid-template-columns:repeat(5,1fr)}}@media screen and (min-width:768px){.box.webowa-products.webowa-products-grid .products .product{width:260px}.box.webowa-products.webowa-products-grid .products.webowa-md-1{grid-template-columns:repeat(1,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-md-2{grid-template-columns:repeat(2,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-md-3{grid-template-columns:repeat(3,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-md-4{grid-template-columns:repeat(4,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-md-5{grid-template-columns:repeat(5,1fr)}}@media screen and (min-width:992px){.box.webowa-products.webowa-products-grid .products.webowa-lg-1{grid-template-columns:repeat(1,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-lg-2{grid-template-columns:repeat(2,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-lg-3{grid-template-columns:repeat(3,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-lg-4{grid-template-columns:repeat(4,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-lg-5{grid-template-columns:repeat(5,1fr)}}@media screen and (min-width:1200px){.box.webowa-products.webowa-products-grid .products.webowa-xl-1{grid-template-columns:repeat(1,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xl-2{grid-template-columns:repeat(2,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xl-3{grid-template-columns:repeat(3,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xl-4{grid-template-columns:repeat(4,1fr)}.box.webowa-products.webowa-products-grid .products.webowa-xl-5{grid-template-columns:repeat(5,1fr)}}.box.webowa-products.webowa-products-carousel .product .productnamewrap{margin:10px 0;height:60px;overflow:hidden}.box.webowa-products.webowa-products-carousel .innerbox{max-width:100%}@media screen and (min-width:768px){.box.webowa-products.webowa-products-carousel .innerbox{max-width:90vw}}@media screen and (min-width:1200px){.box.webowa-products.webowa-products-carousel .innerbox{max-width:1080px}}",document.body.append(t)}createBox(t){const e=this.modal.bodySelector(".ajax-basket-container");if(!e)return!1;const s=new a(this.settings.i18n.relatedProducts),n=o.factory(this.settings.config,this.settings.i18n,this.settings.config.layout,t);return s.element.classList.add("webowa-products","webowa-products-"+this.settings.config.layout),this.settings.config.layout!=o.CAROUSEL?s.content(n):s.slider(n),e.after(s.nodeElement()),!0}sdk(){Shop.AddToCart.include({options:{selectors:{form:".modal .basket form[method=post][action], .modal form.basket[method=post][action]"}}}),shoper.addtocart.initialize(),this.settings.config.layout==o.CAROUSEL&&document.querySelectorAll(".modal .box.slider").forEach(t=>{shoper.selectorFunctions.boxslider.load($(t),shoper)})}isBoolean(t){return"boolean"==typeof t}isInteger(t){return"number"==typeof t}isArray(t){return Array.isArray(t)}}class e{constructor(t){this.self=t,this.object=t.object;const e=this;$(window).on("resize",function(){e.reposition()})}getElement(){return this.object.container.get(0)}getHeader(){return this.object.header.get(0)}getBody(){return this.object.body.get(0)}getFooter(){return this.object.footer.get(0)}reposition(){const t=this.self._calculatePosition();return t?(this.getElement().style.top=t.top+"px",this.getElement().style.left=t.left+"px",this):this}turnOnScroll(){const t=this.#t(this.getHeader())+this.#t(this.getFooter());return this.getBody().style.overflowY="auto",this.getBody().style.maxHeight=`calc(100vh - 50px - ${t}px)`,this}bodySelector(t){return this.getBody().querySelector(t)}#t(t){const e=getComputedStyle(t);return t.offsetHeight+parseFloat(e.marginTop)+parseFloat(e.marginBottom)}}class s{static RELATED="related";static CATEGORY="category";static PROMO="promo";static NEW="new";static POTD="potd";static MAIN="main";static TYPES=[this.RELATED,this.CATEGORY,this.PROMO,this.NEW,this.POTD,this.MAIN];constructor(t,e,s){this.frontAPI=t,this.source=e,this.limit=s}initialize(t,e){const a=this;switch(this.source){case s.RELATED:this.frontAPI.getProductRelated(function(t){t.count&&e(t.list)}
445,{urlParams:"?limit="+this.limit,id:t});break;case s.PROMO:this.frontAPI.getPromotionProducts(function(s){const a=s.list.filter(e=>e.id!=t);a.length&&e(a)},{urlParams:"?limit="+this.limit});break;case s.NEW:this.frontAPI.getNewProducts(function(s){const a=s.list.filter(e=>e.id!=t);a.length&&e(a)},{urlParams:"?limit="+this.limit});break;case s.POTD:this.frontAPI.getPotdProducts(function(s){const a=s.list.filter(e=>e.id!=t);a.length&&e(a)},{urlParams:"?limit="+this.limit});break;case s.MAIN:this.frontAPI.getMainProducts(function(s){const a=s.list.filter(e=>e.id!=t);a.length&&e(a)},{urlParams:"?limit="+this.limit});break;case s.CATEGORY:this.frontAPI.getProduct(function(o){if(a.source===s.CATEGORY)a.frontAPI.getProductsFromCategory(function(s){const a=s.list.filter(e=>e.id!=t);a.length&&e(a)},{urlParams:"?limit="+this.limit,id:o.category.id})},{id:t});break;default:return Error(`Type "${type}" is not defined`)}}}class a{element=null;constructor(t){const e=document.createElement("div");e.classList.add("box"),e.append(this.#e(t)),this.element=e}#e(t){const e=document.createElement("div");e.classList.add("boxhead");const s=document.createElement("span");s.textContent=t,e.append(s);const a=document.createElement("img");return a.src="/libraries/images/1px.gif",a.alt="",a.classList.add("px1"),a.ariaHidden="true",s.prepend(a),e}#s(t){Array.isArray(t)||(t=[t]);const e=document.createElement("div");return e.classList.add("innerbox"),e.append(...t),e}content(t){return this.element.append(this.#s(t.nodeElement())),this}slider(t){return this.element.classList.add("slider","loading"),this.content(t),this}nodeElement(){return this.element}}class o{static LIST="list";static GRID="grid";static CAROUSEL="carousel";static TYPES=[this.LIST,this.GRID,this.CAROUSEL];element=null;constructor(t,e,s){this.config=t,this.i18n=e,this.element=document.createElement("div")}nodeElement(){return this.element}static factory(t,e,s,a){switch(s){case this.LIST:return new d(t,e,a);case this.GRID:return new i(t,e,a);case this.CAROUSEL:return new n(t,e,a);default:return Error(`Type "${s}" is not defined`)}}}class n extends o{constructor(t,e,s){super(t,e,s),this.element=[],s.forEach((s,a)=>{this.element.push(new r(t,e).create(s,a))})}}class i extends o{constructor(t,e,s){super(t,e,s);const[a,o,n,i,d]=t.grid;this.element.classList.add("products","products_extended","viewphot","webowa-xs-"+a,"webowa-sm-"+o,"webowa-md-"+n,"webowa-lg-"+i,"webowa-xl-"+d),s.forEach((s,a)=>{this.element.append(new p(t,e).create(s,a))})}}class d extends o{constructor(t,e,s){super(t,e,s),this.element.classList.add("product-related"),s.forEach((s,a)=>{this.element.append(new l(t,e).create(s,a))})}}class c{constructor(t,e){this.config=t,this.i18n=e}}class r extends c{create(t,e){const s=document.createElement("div");s.dataset.productId=t.id,s.dataset.category=t.category.name||null,s.dataset.producer=t.producer?t.producer.name:null,s.classList.add("product"),s.classList.add("row"),s.classList.add("center");const a=document.createElement("a");return a.href=t.url,a.title=t.name,a.ariaLabel=`${this.i18n.goToProduct} ${t.name}`,a.classList.add("row"),a.append(this.#a(t,this.#o(t))),a.append(this.#n(t)),s.append(a),this.config.price&&s.append(this.#i(t)),this.config.addToBasket&&t.can_buy&&s.append(this.#d(t)),s}#o(t){return`/environment/cache/images/300_300_productGfx_${t.main_image}/${t.main_image_filename}?overlay=1`}#a(t,e){const s=document.createElement("span");s.classList.add("boximgsize"),s.classList.add("row");const a=document.createElement("img");a.src=e,a.alt=t.name,a.dataset.src=e,s.append(a);const o=document.createElement("noscript");s.append(o);const n=document.createElement("img");return n.src=e,n.alt=t.name,o.append(n),s}#n(t){const e=document.createElement("div");e.classList.add("productnamewrap"),e.classList.add("row");const s=document.createElement("span");return s.classList.add("productname"),s.textContent=t.name,e.append(s),e}#i(t){const e=document.createElement("div");e.classList.add("price"),e.classList.add("price_extended"),e.classList.add("row");const s=document.createElement("p");e.append(s);const a=document.createElement("em");if(a.textContent=t.price.gross.final,s.append(a),t.price.gross.promo){const s=document.createElement("p");s.classList.add("price__regular"),s.textContent=this.i18n.regularPrice+": ",e.append(s);const a=document.createElement("del");a.classList.add("price__inactive"),a.textContent=t.price.gross.base,s.append(a);const o=document.createElement("div");o.classList.add("f-row"),o.classList.add("clear"),o.classList.add("price__omnibus"),o.textContent=this.i18n.lowestPrice+": ",e.append(o);const n=document.createElement("strong");n.classList.add("price__inactive"),n.textContent=t.historical_lowest_price,o.append(n)}return e}#d(t){const e=document.createElement("form");e.classList.add("basket"),e.classList.add("basket-box"),e.action="/pl/basket/add/post",e.method="post";const s=document.createElement("fieldset");e.append(s);const a=document.createElement("div");a.classList.add("shaded_inputwrap"),s.append(a);const o=document.createElement("input");o.type="text",o.name="quantity",o.value="1",o.classList.add("short"),o.classList.add("center"),a.append(o);const n=document.createElement("span");n.classList.add("unit"),n.textContent=t.unit.name,s.append(n);const i=document.createElement("input");i.type="hidden",i.name="stock_id",i.value=t.stockId,s.append(i);const d=document.createElement("button");d.type="submit",d.ariaLabel=`${this.i18n.addToCart} ${t.name}`,d.classList.add("addtobasket"),d.classList.add("btn"),d.classList.add("btn-red"),s.append(d);const c=document.createElement("img");
445c.src="/libraries/images/1px.gif",c.alt="",c.classList.add("px1"),d.append(c);const r=document.createElement("span");return r.textContent=this.i18n.addToCart,d.append(r),e}}class p extends c{create(t,e){const s=document.createElement("div");s.dataset.productId=t.id,s.dataset.category=t.category.name||null,s.dataset.producer=t.producer?t.producer.name:null,s.classList.add("product"),s.classList.add("product_view-extended"),s.classList.add("product-main-wrap"),this.config.price&&s.classList.add("product_with-lowest-price");const a=document.createElement("div");return a.classList.add("product-inner-wrap"),a.append(this.#a(t,this.#o(t))),a.append(this.#n(t)),(this.config.price||this.config.addToBasket&&t.can_buy)&&a.append(this.#d(t)),s.append(a),s}#o(t){return`/environment/cache/images/300_300_productGfx_${t.main_image}/${t.main_image_filename}?overlay=1`}#a(t,e){const s=document.createElement("a");s.href=t.url,s.title=t.name,s.rel="dofollow",s.ariaLabel=`${this.i18n.goToProduct} ${t.name}`,s.classList.add("prodimage"),s.classList.add("f-row");const a=document.createElement("span");a.classList.add("f-grid-12"),a.classList.add("img-wrap"),a.classList.add("replace-img-list"),s.append(a);const o=document.createElement("img");o.src=e,o.width=this.config.imageWith,o.height=this.config.imageHeight,o.alt=t.name,o.dataset.src=e,o.dataset.alt=e,a.append(o);const n=document.createElement("noscript");a.append(n);const i=document.createElement("img");return i.src=e,i.width=300,i.height=300,i.alt=t.name,n.append(i),s}#n(t){const e=document.createElement("a");e.href=t.url,e.classList.add("prodname"),e.classList.add("f-row");const s=document.createElement("span");return s.classList.add("productname"),s.textContent=t.name,e.append(s),e}#d(t){const e=document.createElement("div");return e.classList.add("product__basket"),this.config.price&&e.append(this.#i(t)),this.config.addToBasket&&t.can_buy&&e.append(this.#c(t)),e}#i(t){const e=document.createElement("div");e.classList.add("price"),e.classList.add("f-row");const s=document.createElement("span");s.textContent=this.i18n.price+":",e.append(s);const a=document.createElement("p");e.append(a);const o=document.createElement("em");o.textContent=t.price.gross.final,a.append(o);const n=document.createElement("div");if(n.classList.add("price__additional-info"),e.append(n),t.price.gross.promo){const s=document.createElement("p");s.classList.add("price__regular"),s.textContent=this.i18n.regularPrice+": ",e.append(s);const a=document.createElement("del");a.classList.add("price__inactive"),a.textContent=t.price.gross.base,s.append(a);const o=document.createElement("div");o.classList.add("f-row"),o.classList.add("clear"),o.classList.add("price__omnibus"),o.textContent=this.i18n.lowestPrice+": ",e.append(o);const n=document.createElement("strong");n.classList.add("js__omnibus-price-gross"),n.classList.add("price__inactive"),n.textContent=t.historical_lowest_price,o.append(n)}return e}#c(t){const e=document.createElement("div");return e.classList.add("buttons"),e.classList.add("f-row"),e.append(this.#r(t)),e}#r(t){const e=document.createElement("form");e.classList.add("basket"),e.action="/pl/basket/add/post",e.method="post";const s=document.createElement("fieldset");e.append(s);const a=document.createElement("div");a.classList.add("shaded_inputwrap"),s.append(a);const o=document.createElement("input");o.type="text",o.name="quantity",o.value="1",o.classList.add("short"),o.classList.add("center"),a.append(o);const n=document.createElement("span");n.classList.add("unit"),n.textContent=t.unit.name,s.append(n);const i=document.createElement("input");i.type="hidden",i.name="stock_id",i.value=t.stockId,s.append(i);const d=document.createElement("button");d.type="submit",d.ariaLabel=`${this.i18n.addToCart} ${t.name}`,d.classList.add("addtobasket"),d.classList.add("btn"),d.classList.add("btn-red"),s.append(d);const c=document.createElement("img");c.src="/libraries/images/1px.gif",c.alt="",c.classList.add("px1"),d.append(c);const r=document.createElement("span");return r.textContent=this.i18n.addToCart,d.append(r),e}}class l extends c{create(t,e){const s=document.createElement("div");s.dataset.productId=t.id,s.dataset.category=t.category.name||null,s.dataset.producer=t.producer?t.producer.name:null,s.classList.add("product"),s.classList.add("product_extended"),s.classList.add("row"),s.classList.add(e%2?"odd":"even");const a=document.createElement("div");a.classList.add("f-row"),a.append(this.#p(t)),s.append(a);const o=document.createElement("div");return o.append(this.#a(t,this.#o(t))),o.append(this.#n(t)),(this.config.price||this.config.addToBasket&&t.can_buy)&&o.append(this.#d(t)),a.append(o),s}#o(t){return`/environment/cache/images/300_300_productGfx_${t.main_image}/${t.main_image_filename}?overlay=1`}#a(t,e){const s=document.createElement("a");s.href=t.url,s.title=t.name,s.classList.add("details"),s.classList.add("f-grid-2");const a=document.createElement("img");return a.src=e,a.width=this.config.imageWith,a.height=this.config.imageHeight,a.alt=t.name,s.append(a),s}#p(t){const e=document.createElement("h3");e.classList.add("rwd-show-medium"),e.classList.add("rwd-hide-full");const s=document.createElement("a");s.href=t.url,s.title=t.name,e.append(s);const a=document.createElement("span");return a.classList.add("productname"),a.setAttribute("itemprop","isRelatedTo"),a.textContent=t.name,e}#n(t){const e=document.createElement("div");e.classList.add("f-grid-6"),e.classList.add("rwd-hide-medium");const s=document.createElement("a");s.href=t.url,s.title=t.name,s.classList.add("details"),s.classList.add("row"),e.append(s);const a=document.createElement("span");return a.classList.add("productname"),a.textContent=t.name,s.append(a),e}#d(t){const e=document.createElement("div");return e.classList.add("f-grid-4"),e.classList.add("text-right"),this.config.price&&e.append(this.#i(t)),this.config.addToBasket&&e.append(this.#c(t)),e}#i(t){const e=document.createElement("div");e.classList.add("price");const s=document.createElement("span");s.classList.add("label-price"),s.textContent=this.i18n.price+":",e.append(s);const a=document.createElement("em");if(a.textContent=t.price.gross.final,e.append(a),t.price.gross.promo){const s=document.createElement("p");s.classList.add("price__regular"),s.textContent=this.i18n.regularPrice+": ",e.append(s);const a=document.createElement("del");a.classList.add("price__inactive"),a.textContent=t.price.gross.base,s.append(a);const o=document.createElement("div");o.classList.add("f-row"),o.classList.add("clear"),o.textContent=this.i18n.lowestPriceDuring30D
445ays+": ",e.append(o);const n=document.createElement("strong");n.classList.add("js__omnibus-price-gross"),n.classList.add("price__inactive"),n.textContent=t.historical_lowest_price,o.append(n)}return e}#c(t){const e=document.createElement("div");return e.classList.add("basket"),e.append(this.#r(t)),e}#r(t){const e=document.createElement("form");e.classList.add("basket"),e.action="/pl/basket/add/post",e.method="post";const s=document.createElement("fieldset");e.append(s);const a=document.createElement("div");a.classList.add("shaded_inputwrap"),s.append(a);const o=document.createElement("input");o.type="text",o.name="quantity",o.value="1",o.classList.add("short"),o.classList.add("center"),a.append(o);const n=document.createElement("span");n.classList.add("unit"),n.textContent=t.unit.name,s.append(n);const i=document.createElement("input");i.type="hidden",i.name="stock_id",i.value=t.stockId,s.append(i);const d=document.createElement("button");d.type="submit",d.ariaLabel=`${this.i18n.addToCart} ${t.name}`,d.classList.add("addtobasket"),d.classList.add("btn"),d.classList.add("btn-red"),s.append(d);const c=document.createElement("img");c.src="/libraries/images/1px.gif",c.alt="",c.classList.add("px1"),d.append(c);const r=document.createElement("span");return r.textContent=this.i18n.addToCart,d.append(r),e}}}();
446
447Shop.include({selectorFunctions:{webowaGoogleReviews:{selector:"body",options:{},domready:function(t){var e="https://",g=(domainName="trust.reviews/",this.badgeLeft(e,domainName),document.createElement("script"));g.src=e+"cdn."+domainName+"widget/embed.min.js",g.defer=!0,document.body.append(g)},anchor:function(t,e){var g=document.createElement("span"),r=(g.textContent="Trust.Reviews",document.createElement("a"));return r.href=t+e,r.target="_blank",r.classList.add("trcr"),r.textContent="Powered by ",r.style.display="none",r.append(g),r},badgeLeft:function(t,e){var g=document.createElement("div"),t=(g.id="tr-badge",g.dataset.id="7783",g.dataset.view="badge",g.dataset.lang=document.documentElement.lang,g.classList.add("tr-widget"),g.append(this.anchor(t,e)),document.body.append(g),document.createElement("style"));t.textContent="#tr-badge .rplg-badge-cnt{right:-10px !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn{flex-direction:column;width:100px}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score{margin:0 !important;text-align:center !important;font-size:12px !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-rating{display:flex;flex-direction:column;align-items:center;padding:5px 0}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-rating .rplg-biz-score{margin-right:0 !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-rating .rplg-stars svg{width:12px !important;height:12px !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-based{text-align:center !important;font-size:12px !important}#tr-badge .rplg .rplg-badge-fixed{top:calc(50% - (172px / 2));bottom:unset !important;z-index:1 !important}#tr-badge .rplg .rplg-trim{white-space:normal !important}@media screen and (max-width:766px){#tr-badge .rplg .rplg-badge-fixed{top:calc(50% - (56px / 2));bottom:unset !important}#tr-badge .rplg .rplg-biz-rating.rplg-biz-google .rplg-biz-score{display:none !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn{flex-direction:column;width:62px;padding:10px 5px !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-rating{padding-bottom:0}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-rating .rplg-stars svg{width:8px !important;height:8px !important;margin-right:2px !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-rating .rplg-stars svg:last-child{margin-right:0 !important}#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score .rplg-biz-based,#tr-badge .rplg-badge-cnt .rplg-badge2 .rplg-badge2-btn .rplg-badge2-score>div:first-child{display:none !important}#tr-badge .rplg-badge-cnt .rplg-badge2 svg{width:40px;height:40px}}",document.body.append(t)}}}});
448
449Shop.include({
450    selectorFunctions : {
451        webowaDeliveryLogo: {
452            selector: ".delivery-container .delivery",
453            domready: function (element) {
454				element = element.get(0);
455            		
456                element.addEventListener("click", (event) => {
457                	if (!event.target.classList.contains("delivery")) {
458                		return;
459                	}
460                	
461                	element.querySelector('label').click();
462                });
463			}
464		}
465	}
466});
467
468Shop.include({
469    selectorFunctions : {
470        webowaYouTubeResponsive: {
471            selector: ".fr-view iframe[src*='youtube.com']",
472            domready: function (element) {
473				element = element.get(0);
474            		
475                const wrap = document.createElement("div");
476                wrap.classList.add("youtube-embed");
477                
478                element.before(wrap);
479                wrap.append(element);
480			}
481		},
482        webowaGoogleMapsResponsive: {
483            selector: ".fr-view iframe[src*='google.com/maps']",
484            domready: function (element) {
485				element = element.get(0);
486            		
487                const wrap = document.createElement("div");
488                wrap.classList.add("map-embed");
489                
490                element.before(wrap);
491                wrap.append(element);
492			}
493		}
494	}
495});
496
497!function(){Shop.include({selectorFunctions:{webowaSearchConfigratorBasic:{selector:"body",options:{selectors:[],insert:"before",categoryId:0,fields:[],textTitle:null,textButton:"Search",requiredValues:!0,autoSubmit:!1},domready:function(e){const o=this;if("undefined"==typeof Shop||"undefined"==typeof frontAPI)return void setTimeout(()=>{o.domready(e)},100);const r=new t(this.options);r.setOptions(webowaSearchConfigratorBasic),r.initialize(e.get(0))}}}});class t{category=null;container=null;button=null;constructor(t){this.options=t}setOptions(t){Object.assign(this.options,t)}initialize(t){let e=!1,o=!1;for(const t of this.options.selectors)if(o=document.querySelector(t.selector),o){e=t;break}if(e){if("category"==e.type&&e.restriction.length>0)if(t.classList.contains("shop_product_list")){if(!this.checkAllowCategory(e.restriction,parseInt(Shop.pageId)))return}else{if(!t.classList.contains("shop_product"))return;
497{const t=frontAPI.getProduct({id:Shop.pageId});if(void 0!==t.error_description)return;if(!this.checkAllowCategory(e.restriction,t.category.id))return}}this.run(o)}}checkAllowCategory(t,e){if(t.includes(e))return!0;let o=!1;for(;e>0;){var r=frontAPI.getCategory({id:e});if(void 0!==r.error_description)break;if(t.includes(r.parent_id)){o=!0;break}e=r.parent_id}return o}run(t){if(0==this.options.categoryId||0==this.options.fields.length)return;let e;if(this.category=e=frontAPI.getCategory({id:this.options.categoryId}),void 0!==e.error_description||!e.has_children)return;e.fields=this.options.fields,e.childrens=this.getCategoryChildrens(e.category_id);const o=document.createElement("style");o.textContent=".webowa-search-configurator.loading{height:auto}.webowa-search-configurator.loading::after{top:calc(50% - 13px);left:calc(50% - 13px)}.webowa-search-configurator .innerbox{border:1px solid #d8d8d8;border-radius:5px;padding:10px}.webowa-search-configurator select{border-color:#d8d8d8;border-radius:5px;padding-left:10px}.webowa-search-configurator select:focus-visible{outline:0}.webowa-search-configurator button{width:100%;border-radius:5px;line-height:26px}.webowa-search-configurator button.btn-disabled{background-color:#d8d8d8;border-color:#d8d8d8;color:#fff;cursor:default}@media screen and (max-width:1200px){.webowa-search-configurator .f-row{display:flex;flex-wrap:wrap;gap:10px}.webowa-search-configurator .f-row::after,.webowa-search-configurator .f-row::before{display:none}.webowa-search-configurator .f-row [class*=grid]{float:unset;flex-basis:calc(50% - 5px);width:auto;margin-left:0}.webowa-search-configurator .f-row [class*=grid]:nth-child(1){order:1}.webowa-search-configurator .f-row [class*=grid]:nth-child(2){order:3}.webowa-search-configurator .f-row [class*=grid]:nth-child(3){order:2}.webowa-search-configurator .f-row [class*=grid]:nth-child(4){order:4}}@media screen and (min-width:1201px){.webowa-search-configurator{margin-bottom:0}.webowa-search-configurator .innerbox{border-width:2px}.webowa-search-configurator select{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAJCAYAAADtj3ZXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACmSURBVHgBhc7BDcIwDAVQ/7IDUiUOXYETOcIEZANgAkagmyA2CCzQawUXRugN0RUQNjUSB1ontRTJifx+jId3xUTk+AZ2eagbGqmndyUzU365lmjXi0qIlt17w8AqFaCQRA7av8DzTH9U2J0iE6l0kzEIYDsLtzv0okChBlgb9OE01Kdv/xuIBcTgH7YCADqL0N6CA2wEUAyauB8Qg8nSgNa7TWrmA7JtZ+n/EdQzAAAAAElFTkSuQmCC) no-repeat 95% 50%;border-color:#e94f37;border-width:2px;color:#878786}.webowa-search-configurator select:hover{background:#e94f37 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAJCAYAAADtj3ZXAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABSSURBVHgBjY0LCQAwCAWNsghrtCqLsEaLYhSnoDAEPw9ERO8EIhpcVzo0wndbygYBJVgJFLRM0M9YCRy4/kUqCMFKUIKJ4LTAQNAHA0EfdIIUfGo02UatJ9xHAAAAAElFTkSuQmCC) no-repeat 95% 50%;color:#fff}.webowa-search-configurator button{border-color:#d8d8d8!important;border-width:2px!important}.webowa-search-configurator button:hover{border-color:#444!important}}body.shop_product .webowa-search-configurator,body.shop_product_list .webowa-search-configurator{margin-bottom:20px}",document.body.append(o);const r=this.createContainer();switch(this.options.insert){case"before":t.before(r);break;case"after":t.after(r);break;case"prepend":t.prepend(r);break;case"append":t.append(r)}}createContainer(){let t;if(this.container=t=document.createElement("div"),t.classList.add("box"),t.classList.add("webowa-search-configurator"),this.options.textTitle){const e=document.createElement("div");e.classList.add("boxhead"),t.append(e);const o=document.createElement("span");o.textContent=this.options.textTitle,e.append(o);const r=document.createElement("img");r.src="/libraries/images/1px.gif",r.alt="",r.classList.add("px1"),o.prepend(r)}const e=document.createElement("div");return e.classList.add("innerbox"),e.append(this.createForm()),t.append(e),t}createForm(){const t=this;let e=[];const o=document.createElement("div");o.classList.add("f-row"),this.category.fields.forEach((r,a)=>{const i=document.createElement("div");i.classList.add("f-grid-"+r.size),o.append(i);const n=document.createElement("select");n.name=`category_${this.category.category_id}_${a}`,n.dataset.index=a,n.addEventListener("change",o=>
497{t.onChange(e,o.target)}),0!=a&&(n.disabled=!0),i.append(n),e.push(n);const s=document.createElement("option");s.value="",s.textContent=r.label,n.append(s),0==a&&this.category.childrens.forEach(e=>{n.append(t.createOption(e))})});const r=document.createElement("div");let a;return r.classList.add("f-grid-2"),o.append(r),this.button=a=document.createElement("button"),a.classList.add("btn"),a.classList.add("btn-red"),a.textContent=this.options.textButton,a.onclick=()=>{a.disabled||this.submit(e)},r.append(a),this.disableButton(),o}createOption(t){const e=document.createElement("option");return e.value=t.category_id,e.dataset.url=t.url,e.textContent=t.translation.name,e}onChange(t,e){const o=this,r=parseInt(e.dataset.index)+1;if(void 0===t[r])return e.value?(this.enableButton(),void this.autoSubmit()):void this.disableButton();for(let e=r;e<t.length;e++)t[e].disabled=!0,t[e].querySelectorAll("option").forEach(t=>{t.value&&t.remove()});if(!e.value)return void this.disableButton();this.container.classList.add("loading");const a=this.getCategoryChildrens(e.value);if(a.forEach(e=>{t[r].append(o.createOption(e))}),this.container.classList.remove("loading"),0==a.length)return this.enableButton(),void this.autoSubmit();t[r].disabled=!1,this.disableButton()}disableButton(){this.options.requiredValues&&(this.button.classList.remove("btn-red"),this.button.classList.add("btn-disabled"),this.button.disabled=!0)}enableButton(){this.options.requiredValues&&(this.button.classList.remove("btn-disabled"),this.button.classList.add("btn-red"),this.button.disabled=!1)}autoSubmit(){this.options.autoSubmit&&this.button.click()}submit(t){let e=this.category.url;t.forEach(t=>{t.value&&(e=t.querySelector('option[value="'+t.value+'"]').dataset.url)}),location.href=e}getCategoryChildrens(t){let e,o,r=[],a=0;for(;!(a++,o=frontAPI.getCategoryChildrens({urlParams:`?page=${a}&limit=50`,id:t}),void 0!==o.error_description||(r=r.concat(o.list),e=o.pages,a>=e)););return r}}}();
498
499!function(){Shop.include({selectorFunctions:{webowaProductQuantityButtons:{selector:"body.shop_product, body.shop_basket",options:{product:!1,basket:!0,step:{integer:1,float:1}},domready:function(e){const n=this;if("undefined"==typeof Shop||"undefined"==typeof frontAPI)return void setTimeout(()=>{n.domready(e)},100);const o=new t(this.options);e.hasClass("shop_product")&&this.options.product?o.product(e.get(0)):e.hasClass("shop_basket")&&this.options.basket&&o.basket(e.get(0))}}}});class t{constructor(t){this.options=t,this.appendStyle()}setOptions(t){Object.assign(this.options,t)}appendStyle(){const t=document.createElement("style");t.textContent=".webowa-quantity-buttons{white-space:nowrap}.webowa-quantity-buttons .webowa-quantity-decrement,.webowa-quantity-buttons .webowa-quantity-increment{width:20px;height:40px;margin-bottom:4px;border:1px solid #d8d8d8;background-color:#fff}.webowa-quantity-buttons .webowa-quantity-decrement{border-right:0}.webowa-quantity-buttons .webowa-quantity-increment{border-left:0}.webowa-quantity-buttons input::-webkit-inner-spin-button,.webowa-quantity-buttons input::-webkit-outer-spin-button{-webkit-appearance:none}.webowa-quantity-buttons input[type=number]{-moz-appearance:textfield}form .quantity_wrap .webowa-quantity-buttons input.short{width:calc(40% - 40px)!important}.productlist.webowa-quantity-buttons-table tbody tr td.quantity{width:calc(6em + 40px)}",document.body.append(t)}product(t){const e=t.querySelector('.addtobasket-container .quantity_wrap .number-wrap input[name="quantity"]');if(e){var n=frontAPI.getProduct({id:Shop.pageId});this.build(e,n.unit.floating_point)}}basket(t){const e=t.querySelector(".productlist");e&&(e.classList.add("webowa-quantity-buttons-table"),frontAPI.getBasketInfo().products.forEach(e=>{const n=t.querySelector(`.productlist tr[data-id="${e.id}"] input[name^="quantity_"]`);n&&this.build(n,e.unit.floating_point)}))}build(t,e){const n=this;t.parentElement.classList.add("webowa-quantity-buttons");const o=document.createElement("button");o.classList.add("webowa-quantity-decrement"),o.textContent="-",o.addEventListener("click",o=>
499{o.preventDefault(),n.valueDecrement(t,e)}),t.before(o);const a=document.createElement("button");a.classList.add("webowa-quantity-increment"),a.textContent="+",a.addEventListener("click",o=>{o.preventDefault(),n.valueIncrement(t,e)}),t.after(a)}valueDecrement(t,e){t.value=e?this.valueDecrementFloat(t):this.valueDecrementInteger(t),t.dispatchEvent(new Event("change")),t.dispatchEvent(new Event("keydown"))}valueDecrementInteger(t){let e=parseInt(t.value);return isNaN(e)||(e-=this.options.step.integer),(isNaN(e)||e<=0)&&(e=1),e}valueDecrementFloat(t){let e=parseFloat(t.value.replace(",","."));return isNaN(e)||(e=Math.floor(Math.round(100*(e/this.options.step.float+Number.EPSILON))/100)*this.options.step.float,e=Math.round(100*(e-this.options.step.float+Number.EPSILON))/100),(isNaN(e)||e<=0)&&(e=this.options.step.float),e}valueIncrement(t,e){t.value=e?this.valueIncrementFloat(t):this.valueIncrementInteger(t),t.dispatchEvent(new Event("change")),t.dispatchEvent(new Event("keydown"))}valueIncrementInteger(t){let e=parseInt(t.value);return isNaN(e)?e=1:e+=this.options.step.integer,e}valueIncrementFloat(t){let e=parseFloat(t.value.replace(",","."));return isNaN(e)||(e=Math.floor(Math.round(100*(e/this.options.step.float+Number.EPSILON))/100)*this.options.step.float,e=Math.round(100*(e+this.options.step.float+Number.EPSILON))/100),(isNaN(e)||e<=0)&&(e=this.options.step.float),e}}}();
500
501Shop.include({selectorFunctions:{webowaAutomaticBasketRecalculation:{selector:"body.shop_basket",options:{delay:1e3},timeout:null,domready:function(t){t=t.get(0);const e=this,o=t.querySelector("#recalc button");o&&t.querySelectorAll('.productlist input[name^="quantity_"]').forEach(t=>{t.addEventListener("change",()=>{e.redirect(o)}),t.addEventListener("keydown",()=>{e.redirect(o)})})},redirect:function(t){this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{t.click()},this.options.delay)}}}});
502
503!function(){Shop.include({selectorFunctions:{webowaFormProject:{selector:"body",options:{selectors:["#shop_infopage17 .main"],recaptcha:null,images:[]},i18n:{en:{pageTitle:"Custom project? Let's do it!",pageRate:"{0} based on {1} reviews",pageDescription:"Your motorcycle deserves an individual approach. Get a quote tailored to you and your idea. Our specialists will provide professional advice and comprehensive execution. This will be YOUR project!",formTitle:"Tell us a few details...",formDescription:"Fill in the form and we’ll get back to you faster than you can fasten your helmet",name:"First name",surname:"Last name",email:"Email",phone:"Phone",motorcycleInformation:"Motorcycle information",brand:"Brand",model:"Model",year:"Year",color:"Color",motorcycleCondition:"Motorcycle condition",yesOption:"Yes",noOption:"No",oldStickersRemovedQuestion:"Have all old stickers been removed?",paintworkFairingsDamagedQuestion:"Is the paint or fairings damaged? (cracks, scratches, chips)",projectAssumptions:"Project assumptions",projectOnCurrentPaintQuestion:"Should the project be done on the current motorcycle paint?",noChangeColorFoil:"No, we are changing the color with wrap",styleFeelProject:"Project style / mood (you can select multiple options)",sportyOption:"Sporty",militaryOption:"Military",geometricOption:"Geometric",racingOption:"Racing",aggressiveOption:"Aggressive",retroOption:"Retro",minimalistOption:"Minimalist",inspiredOption:"Inspired (e.g. Gulf, Red Bull, Rossi, Martini)",otherDescribeBelowOption:"Other (describe below)",description:"Description...",describeVisionProject:"Describe your project vision",exampleWantProjectLookLike:"e.g. I want the design to look like this...",inspirations:"Inspiration",attachReferencePhotos:"Attach reference images (motorcycles, graphics, patterns, colors)",photosMessage:"The maximum size of a single attachment is 10 MB, and the total size of all uploaded files must not exceed 30 MB",allowedOnlyPhotosExtension:"Only JPG and PNG image formats are allowed",add:"Add",finishing:"Finish",whatFinishShouldVeneerHaveQuestion:"What finish should the wrap have?",smooth:"Gloss",metallic:"Metallic",matte:"Matte",fluoride:"Fluorescent",pearl:"Pearl",additionalElements:"Additional elements",doYouWantComplementProjectDedicatedAddonsQuestion:"Do you want to enhance the project with dedicated add-ons?",tankpad:"Tank pad",rimStickers:"Rim stickers",cappad:"Cappad",startingNumber:"Race number",budgetTransportation:"Budget and transport",whatYourEstimatedBudgetQuestion:"What is your estimated budget for the project?",wouldYouLikeUseOurTransportQuestion:"Do you want to use the motorcycle transport service?",consentsAndArrangements:"Agreements and confirmations",haveYouReadOurRegulationsQuestion:'Have you read and accepted our <a href="https://fooqs.com/en_US/i/Wrapping-policy/148" class="text-blue" target="_blank"><strong>terms and conditions</strong></a>?',doYouAgreeStartVisualizationAfterPaymentQuestion:"Do you agree to start the visualization after paying the deposit?",advancePaymentAmountWillIndicatedResponseForm:"The deposit amount will be specified in the response to the formz",letsGetWork:"Let's go!",formWarning:"The form contains errors",fieldRequired:"Required field",incorectEmail:"Invalid email address format",incorectCharLimit:"Maximum {0} characters",onlyPhotosAllowed:"Only JPG and PNG images are allowed",maximumSingleFile:"Maximum file size 10 MB",maximumAllFiles:"Maximum total file size 30 MB",errorSendMessage:"Something went wrong and the message was not sent. Please try again later",sendMessage:"The email has been sent. Thank y
503ou",noIWouldLikeToReceiveMoreDetailsAndAQuoteForTheFullServiceFirst:"No. I would like to receive more details and a quote for the full service first.",additionalInformation:'<p style="margin-top:0;">Once the project has been approved, we begin preparing a detailed visual design. At this stage, our graphic designer stays in close contact with the customer, discussing each element of the design to ensure the final result fully meets their expectations.</p><p>The next step <strong>is to deliver the motorcycle to our headquarters on the agreed date</strong>. This allows us to precisely fit the graphics to every part of the motorcycle, taking into account body contours, bends, fairing joints, and other unique shapes. Thanks to this process, we can perfectly align the design, maintain complete symmetry, and guarantee the highest quality finish.</p><p style="margin-bottom:0;">Throughout the entire project, we remain in <strong>regular contact with the customer</strong>. We provide ongoing updates on the progress of the work and share photos and reports from each stage of the process, giving the customer full insight into the project from start to finish.</p>'},pl:{pageTitle:"Indywidualny projekt? Let's do it!",pageRate:"{0} na podstawie {1} opinii",pageDescription:"Twój motocykl zasługuje na indywidualne podejście. Zgarnij wycenę dopasowaną do Ciebie i twojego pomysłu.<br>Nasi specjaliści zadbają o profesjonalne doradztwo oraz kompleksową realizację.<br>To będzie TWÓJ projekt!",formTitle:"Zdradź nam kilka szczegółów...",formDescription:"Wypełnij formularz, a odezwiemy się szybciej, niż zdążysz zapiąć kask",name:"Imię",surname:"Nazwisko",email:"Email",phone:"Telefon",motorcycleInformation:"Informacje o motocyklu",brand:"Marka",model:"Model",year:"Rocznik",color:"Kolor",motorcycleCondition:"Stan motocykla",yesOption:"Tak",noOption:"Nie",oldStickersRemovedQuestion:"Czy wszystkie stare naklejki zostały usunięte?",paintworkFairingsDamagedQuestion:"Czy lakier lub owiewki są uszkodzone? (pęknięcia, rysy, odpryski)",projectAssumptions:"Założenia projektu",projectOnCurrentPaintQuestion:"Czy projekt wykonujemy na obecnym lakierze motocykla?",noChangeColorFoil:"Nie, zmieniamy kolor folią",styleFeelProject:"Styl, klimat projektu (możesz zaznaczyć wiele opcji)",sportyOption:"Sportowy",militaryOption:"Militarny",geometricOption:"Geometryczny",racingOption:"Racingowy",aggressiveOption:"Agresywny",retroOption:"Retro",minimalistOption:"Minimalistyczny",inspiredOption:"Inspirowany (np. Gulf, RedBull, Rossi, Martini)",otherDescribeBelowOption:"Inne (opisz poniżej)",description:"Opis...",describeVisionProject:"Opisz twoje wyobrażenie projektu",exampleWantProjectLookLike:"np. Chcę żeby projekt wyglądał tak i tak...",inspirations:"Inspiracje",attachReferencePhotos:"Załącz zdjęcia referencyjne (motocykle, grafiki, wzory, kolory)",photosMessage:"Dopuszczalny maksymalny rozmiar pojedynczego załącznika wynosi 10 MB, natomiast łączny rozmiar wszystkich przesłanych plików nie może przekroczyć 30 MB.",allowedOnlyPhotosExtension:"Dozwolone są tylko zdjęcia w formacie JPG oraz PNG",add:"Dodaj",finishing:"Wykończenie",whatFinishShouldVeneerHaveQuestion:"Jakie wykończenie ma mieć okleina",smooth:"Gładkie (Gloss)",metallic:"Metaliczne",matte:"Matowe",fluoride:"Fluorowe",pearl:"Perłowe",additionalElements:"Dodatkowe elementy",doYouWantComplementProjectDedicatedAddonsQuestion:"Czy chcesz uzupełnić projekt o dedykowane dodatki?",tankpad:"Tankpad",rimStickers:"Naklejki na felgi",cappad:"Cappad",startingNumber:"Numer startowy",budgetTransportation:"Budżet i transport",whatYourEstimatedBudgetQuestion:"Jaki jest twój przewidywany budżet na realizację?",wouldYouLikeUseOurTransportQuestion:"Czy chcesz skorzystać z usługi transportu motocykla?",consentsAndArrangements:"Zgody i ustalenia",haveYouReadOurRegulationsQuestion:'Czy zapoznałeś/aś się z naszym <a href="https://fooqs.com/pl/i/Oklejanie-regulamin/143" class="text-blue" target="_blank"><strong>regulaminem</strong></a> i go akceptujesz?',doYouAgreeStartVisualizationAfterPaymentQuestion:"Czy zgadzasz się na rozpoczęcie wizualizacji po wpłacie zaliczki?",advancePaymentAmountWillIndicatedResponseForm:"Kwota zaliczki zostanie wskazana w odpowiedzi na formularz",letsGetWork:"Do dzieła!",formWarning:"Formularz zawiera błędy.",fieldRequired:"Pole wymagane",incorectEmail:"Nieprawidłowy format adresu e-mail",incorectCharLimit:"Maksymalnie {0} znaków",onlyPhotosAllowed:"Dozwolone są tylko zdjęcia w formacie JPG oraz PNG",maximumSingleFile:"Maksymalny rozmiar pojedynczego pliku 10 MB",maximumAllFiles:"Maksymalny rozmiar wszystkich plików 30 MB",errorSendMessage:"Coś poszło nie tak i wiadomość nie została wysłana. Spróbuj ponownie za chwilę.",sendMessage:"E-mail został wysłany. Dziękujemy.",noIWouldLikeToReceiveMoreDetailsAndAQuoteForTheFullServiceFirst:"Nie. Chcę na tym etapie poznać szczegóły oraz uzyskać wycenę całej usługi.",additionalInformation:'<p style="margin-top:0;">Po zatwierdzeniu projektu przystępujemy do przygotowania szczegółowej wizualizacji. Na tym etapie grafik pozostaje w stałym kontakcie z klientem, konsultując kolejne elementy projektu, aby finalny wzór w pełni odpowiadał jego oczekiwaniom.</p><p>Następnie <strong>konieczne jest dostarczenie motocykla do siedziby naszej firmy, w umówionym terminie</strong>. Pozwala to precyzyjnie dopasować grafikę do wszystkich elementów motocykla, uwzględniając przetłoczenia, załamania, łączenia owiewek oraz inne charakterystyczne kształty. Dzięki temu możemy idealnie rozplanować wzór, zachować pełną symetrię oraz zagwarantować najwyższą jakość wykonania.</p><p style="margin-bottom:0;">Przez cały proces realizacji pozostajemy w <strong>stałym kontakcie z klientem</strong>. Na bieżąco przekazujemy informacje o postępach prac, a także udostępniamy zdjęcia i relacje z k
503olejnych etapów realizacji, dzięki czemu klient ma pełny wgląd w przebieg projektu.</p>'}},app:null,domready:function(){if("undefined"==typeof shoper){const e=this;return void setTimeout(()=>{e.domready()},1e3)}let t,i=$.extend({},this.options,"undefined"!=typeof webowaFormProject?webowaFormProject:{});for(const e of i.selectors)if(t=document.querySelector(e),t)break;t&&(this.app=new e(i,this.i18n),this.app.initialize(t)&&(this.appendRecaptcha(),this.appendStyle(),$(".owl-carousel").owlCarousel({items:1,loop:!0,nav:!0,dots:!1,autoplay:!0})))},appendRecaptcha:function(){const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js",document.body.append(e)},appendStyle:function(){const e=document.createElement("style");e.textContent='.webowa-form-project .d-flex{display:flex!important}.webowa-form-project .align-items-center{align-items:center!important}.webowa-form-project .align-items-end{align-items:flex-end!important}.webowa-form-project .display-mobile{display:none}.webowa-form-project .display-desktop{display:block}.webowa-form-project .m-0{margin:0!important}.webowa-form-project .mt-0{margin-top:0!important}.webowa-form-project .mb-0{margin-bottom:0!important}.webowa-form-project .m-1{margin:.5rem!important}.webowa-form-project .mt-1{margin-top:.5rem!important}.webowa-form-project .mb-1{margin-bottom:.5rem!important}.webowa-form-project .m-2{margin:1rem!important}.webowa-form-project .mt-2{margin-top:1rem!important}.webowa-form-project .mb-2{margin-bottom:1rem!important}.webowa-form-project .m-3{margin:1.5rem!important}.webowa-form-project .mt-3{margin-top:1.5rem!important}.webowa-form-project .mb-3{margin-bottom:1.5rem!important}.webowa-form-project .m-4{margin:2rem!important}.webowa-form-project .mt-4{margin-top:2rem!important}.webowa-form-project .mb-4{margin-bottom:2rem!important}.webowa-form-project .m-5{margin:2.5rem!important}.webowa-form-project .mt-5{margin-top:2.5rem!important}.webowa-form-project .mb-5{margin-bottom:2.5rem!important}.webowa-form-project .m-6{margin:3rem!important}.webowa-form-project .mt-6{margin-top:3rem!important}.webowa-form-project .mb-6{margin-bottom:3rem!important}.webowa-form-project .m-7{margin:3.5rem!important}.webowa-form-project .mt-7{margin-top:3.5rem!important}.webowa-form-project .mb-7{margin-bottom:3.5rem!important}.webowa-form-project .m-8{margin:4rem!important}.webowa-form-project .mt-8{margin-top:4rem!important}.webowa-form-project .mb-8{margin-bottom:4rem!important}.webowa-form-project .m-9{margin:4.5rem!important}.webowa-form-project .mt-9{margin-top:4.5rem!important}.webowa-form-project .mb-9{margin-bottom:4.5rem!important}.webowa-form-project .m-10{margin:5rem!important}.webowa-form-project .mt-10{margin-top:5rem!important}.webowa-form-project .mb-10{margin-bottom:5rem!important}.webowa-form-project .font-italic{font-style:italic!important}.webowa-form-project .text-center{text-align:center}.webowa-form-project .text-gray{color:#6c757d!important}.webowa-form-project .text-blue{color:#0276bd!important}.webowa-form-project input:not([type=checkbox]){width:100%}.webowa-form-project .input .checkbox-wrap{margin-right:.5em}.webowa-form-project .input label{font-size:12px;line-height:18px}.webowa-form-project select.error{background-color:#fff3f3;border-color:#d5310d;color:#666}.webowa-form-project ul{margin:0!important;padding:0!important;list-style:none!important}.webowa-form-project form{position:relative}.webowa-form-project form.form-loading{height:200px;overflow:hidden}.webowa-form-project form.form-loading::before{content:\'\';position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-color:#fff;background-image:url(\'data:image/svg+xml,<svg stroke="%23000000FF" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><circle cx="12" cy="12" r="9.5" fill="none" stroke-width="3" stroke-linecap="round"><animate attributeName="stroke-dasharray" dur="1.5s" calcMode="spline" values="0 150;42 150;42 150;42 150" keyTimes="0;0.475;0.95;1" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" repeatCount="indefinite"/><animate attributeName="stroke-dashoffset" dur="1.5s" calcMode="spline" values="0;-16;-59;-59" keyTimes="0;0.475;0.95;1" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;
5030.42,0,0.58,1" repeatCount="indefinite"/></circle><animateTransform attributeName="transform" type="rotate" dur="2s" values="0 12 12;360 12 12" repeatCount="indefinite"/></g></svg>\');background-repeat:no-repeat;background-position:center;background-size:96px 96px}.webowa-form-project form button{background-color:#e3000f!important;border-color:#e3000f!important;color:#fff!important;font-size:25px;font-weight:700;text-transform:uppercase}.webowa-form-project form button:hover{background-color:#444!important;border-color:#444!important}@media screen and (max-width:767px){.webowa-form-project .d-flex{flex-direction:column!important}.webowa-form-project .display-mobile{display:block}.webowa-form-project .display-desktop{display:none}}.webowa-form-project .google-rating{display:flex;gap:10px;align-items:center}.webowa-form-project .google-rating .gr-stars{display:inline-flex;gap:2px}.webowa-form-project .google-rating .gr-star-0,.webowa-form-project .google-rating .gr-star-0-5,.webowa-form-project .google-rating .gr-star-1{width:15px;height:15px;background-size:contain}.webowa-form-project .google-rating .gr-star-0{background-image:url(\'data:image/svg+xml,<svg width="500" height="500" viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="500" height="500" fill="%23DCDCE6"/><path d="M250 48L300.046 201.932H462L330.977 297.068L381.023 451L250 355.865L118.977 451L169.023 297.068L38 201.932H199.954L250 48Z" fill="white"/></svg>\')}.webowa-form-project .google-rating .gr-star-0-5{background-image:url(\'data:image/svg+xml,<svg width="500" height="500" viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="500" height="500" fill="%23DCDCE6"/><rect width="250" height="500" fill="%2300B67A"/><path d="M250 48L300.046 201.932H462L330.977 297.068L381.023 451L250 355.865L118.977 451L169.023 297.068L38 201.932H199.954L250 48Z" fill="white"/></svg>\')}.webowa-form-project .google-rating .gr-star-1{background-image:url(\'data:image/svg+xml,<svg width="500" height="500" viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="500" height="500" fill="%23DCDCE6"/><rect width="500" height="500" fill="%2300B67A"/><path d="M250 48L300.046 201.932H462L330.977 297.068L381.023 451L250 355.865L118.977 451L169.023 297.068L38 201.932H199.954L250 48Z" fill="white"/></svg>\')}.webowa-form-project .google-rating .gr-text{font-size:12px}.webowa-form-project .image-uploader{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:15px}.webowa-form-project .image-uploader input{opacity:0!important;width:0!important;height:0!important}.webowa-form-project .image-uploader .image-uploader-handler{display:flex;flex-direction:column;justify-content:center;align-items:center;border:2px dashed #d8d8d8;aspect-ratio:4/3;cursor:pointer;text-align:center;padding:15px}.webowa-form-project .image-uploader small{font-size:11px}.webowa-form-project .image-uploader .image-uploader-file{position:relative;display:flex;justify-content:center;align-items:center;border:2px solid #d8d8d8;aspect-ratio:4/3}.webowa-form-project .image-uploader .image-uploader-file img{max-width:100%;max-height:100%}.webowa-form-project .image-uploader .image-remove{--svg-close:url(\'data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 122.88 122.88" style="enable-background:new 0 0 122.88 122.88" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><g><path class="st0" d="M1.63,97.99l36.55-36.55L1.63,24.89c-2.17-2.17-2.17-5.73,0-7.9L16.99,1.63c2.17-2.17,5.73-2.17,7.9,0 l36.55,36.55L97.99,1.63c2.17-2.17,5.73-2.17,7.9,0l15.36,15.36c2.17,2.17,2.17,5.73,0,7.9L84.7,61.44l36.55,36.55 c2.17,2.17,2.17,5.73,0,7.9l-15.36,15.36c-2.17,2.17-5.73,2.17-7.9,0L61.44,84.7l-36.55,36.55c-2.17,2.17-5.73,2.17-7.9,0 L1.63,105.89C-0.54,103.72-0.54,100.16,1.63,97.99L1.63,97.99z"/></g></svg>\');position:absolute;top:7px;right:7px;z-index:1;width:20px;height:20px;background-color:#111;-webkit-mask:var(--svg-close);mask:var(--svg-close);cursor:pointer}@media screen and (max-width:1000px){.webowa-form-project .image-uploader{grid-template-columns:1fr 1fr 1fr}}@media screen and (max-width:767px){.webowa-form-project .image-uploader{grid-template-columns:1fr 1fr}}@media screen and (max-width:576px){.webowa-form-project .image-uploader{grid-template-columns:1fr}}.webowa-form-project .owl-carousel{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.webowa-form-project .owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.webowa-form-project .owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.webowa-form-project .owl-carousel .owl-stage-outer{position:relative;overflow:hidden;
503-webkit-transform:translate3d(0,0,0)}.webowa-form-project .owl-carousel .owl-item,.webowa-form-project .owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.webowa-form-project .owl-carousel .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.webowa-form-project .owl-carousel .owl-item img{display:block;width:100%}.webowa-form-project .owl-carousel .owl-dots.disabled,.webowa-form-project .owl-carousel .owl-nav.disabled{display:none}.webowa-form-project .owl-carousel .owl-dot,.webowa-form-project .owl-carousel .owl-nav .owl-next,.webowa-form-project .owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.webowa-form-project .owl-carousel .owl-nav button.owl-next,.webowa-form-project .owl-carousel .owl-nav button.owl-prev,.webowa-form-project .owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.webowa-form-project .owl-carousel.owl-loaded{display:block}.webowa-form-project .owl-carousel.owl-loading{opacity:0;display:block}.webowa-form-project .owl-carousel.owl-hidden{opacity:0}
503.webowa-form-project .owl-carousel.owl-refresh .owl-item{visibility:hidden}.webowa-form-project .owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.webowa-form-project .owl-carousel.owl-grab{cursor:move;cursor:grab}.webowa-form-project .owl-carousel.owl-rtl{direction:rtl}.webowa-form-project .owl-carousel.owl-rtl .owl-item{float:right}.webowa-form-project .no-js .owl-carousel{display:block}.webowa-form-project .owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.webowa-form-project .owl-carousel .owl-animated-in{z-index:0}.webowa-form-project .owl-carousel .owl-animated-out{z-index:1}.webowa-form-project .owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.webowa-form-project .owl-height{transition:height .5s ease-in-out}.webowa-form-project .owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.webowa-form-project .owl-carousel .owl-item .owl-lazy:not([src]),.webowa-form-project .owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.webowa-form-project .owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.webowa-form-project .owl-theme .owl-nav{margin-top:10px;text-align:center;-webkit-tap-highlight-color:transparent}.webowa-form-project .owl-theme .owl-nav [class*=owl-]{color:#fff;font-size:14px;margin:5px;padding:4px 7px;background:#d6d6d6;display:inline-block;cursor:pointer;border-radius:3px}.webowa-form-project .owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.webowa-form-project .owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.webowa-form-project .owl-theme .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent}.webowa-form-project .owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.webowa-form-project .owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#d6d6d6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.webowa-form-project .owl-theme .owl-dots .owl-dot.active span,.webowa-form-project .owl-theme .owl-dots .owl-dot:hover span{background:#869791}.webowa-form-project .owl-theme .owl-nav button{position:absolute;top:calc(50% - 19.5px);width:39px;height:39px;margin:0!important;background-color:rgba(216,216,216,.5)!important;background-position:center center!important;background-repeat:no-repeat!important;border-radius:0!important}.webowa-form-project .owl-theme .owl-nav button span{display:none!important}.webowa-form-project .owl-theme .owl-nav button.owl-prev{left:-20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAANCAYAAABlyXS1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzczMjE5MzIwNTI4MTFFMzg5NUZFRjI2NTJGRDg1OTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzczMjE5MzMwNTI4MTFFMzg5NUZFRjI2NTJGRDg1OTIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDNzMyMTkzMDA1MjgxMUUzODk1RkVGMjY1MkZEODU5MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDNzMyMTkzMTA1MjgxMUUzODk1RkVGMjY1MkZEODU5MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuH6Cm0AAAA5SURBVHjaYvj//z8DNqyvr49bAkTjlMCQRJZAkUSXgEtikwBL4pIgrJOgnQRdS9CfBEMIWQFAgAEA8a/9M1vwk+0AAAAASUVORK5CYII=)}.webowa-form-project .owl-theme .owl-nav button.owl-next{right:-20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAANCAYAAABlyXS1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i
50377u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkUxNTBBREFGRkYzMTFFMkE4QUU5MUU3MEIyMDRGMjIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkUxNTBBREJGRkYzMTFFMkE4QUU5MUU3MEIyMDRGMjIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCRTE1MEFEOEZGRjMxMUUyQThBRTkxRTcwQjIwNEYyMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCRTE1MEFEOUZGRjMxMUUyQThBRTkxRTcwQjIwNEYyMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnLhoGgAAAA9SURBVHjaYtDX1/8PBAzYMJjApQDOwKYAhYOuAMMoZAVYHQJTwIDLpSAFpOnEaSdO1+L0J84Qwhe2AAEGAM8X/TMJM9kNAAAAAElFTkSuQmCC)}',document.body.append(e)}}}}),window.webowaFormProjectOnSubmit=function(){shoper.selectorFunctions.webowaFormProject.app.sendForm()};class e{googleRating=null;uploader=null;uploaderTotalSize=0;successMessage=null;warningMessage=null;errorMessage=null;constructor(e,t){this.options=e,this.lang=document.documentElement.lang,this.i18n=t[this.lang],void 0===this.i18n&&(this.lang="en",this.i18n=t.en)}initialize(e){const t=e.querySelector(".centercol");if(!t)return!1;const i=t.querySelector(".box_infopage");if(!i)return!1;const o=t.querySelector(".resetcss");return!!o&&(this.preparingView(e,t,i,o),this.buildView(o),!0)}preparingView(e,t,i,o){this.displayNone(e.querySelector(".leftcol")),this.displayNone(e.querySelector(".rightcol")),this.displayNone(i.querySelector(".boxhead")),this.removeClass(t,"s-grid-9"),this.addClass(t,"s-grid-12"),o.innerHTML=""}buildView(e){const t=document.createElement("div");t.classList.add("grid"),t.classList.add("webowa-form-project"),t.append(this.buildHeader()),t.append(this.buildHeaderMobile()),t.append(this.buildSuccessMessage()),t.append(this.buildWarningMessage()),t.append(this.buildErrorMessage()),t.append(this.buildForm()),t.append(this.additionalInformation()),e.append(t),this.buildGoogleRating()}buildHeader(){const e=this,t=this.createRow(["d-flex"]);return t.append(function(){const t=e.createColumn(6,["mb-5"]);t.append(e.createH1(e.i18n.pageTitle,["mt-0","mb-2"])),e.googleRating=document.createElement("div"),t.append(e.googleRating),t.append(e.createParagraph(e.i18n.pageDescription,["mb-8"]));const i=document.createElement("div");return i.classList.add("display-desktop"),i.append(e.createH1(e.i18n.formTitle,["mb-1"])),i.append(e.createParagraph(e.i18n.formDescription,["m-0"])),t.append(i),t}()),t.append(function(){const t=e.createColumn(6,["mb-5"]),i=document.createElement("div");i.classList.add("owl-carousel"),i.classList.add("owl-theme"),t.append(i);for(const t of e.options.images){const e=document.createElement("div");e.classList.add("item"),i.append(e);const o=document.createElement("img");o.src=t,e.append(o)}return t}()),t}buildGoogleRating(e){const t=document.querySelector(".rplg-biz-score"),i=document.querySelector(".rplg-biz-based-text");if(!t||!i){if(void 0===e){}if(e>10)return;const t=this;return void setTimeout(()=>{t.buildGoogleRating(e++)},1e3)}let o=i.textContent.match(/(\d+)/);if(!o)return;this.addClasses(this.googleRating,["google-rating","mb-4"]);const s=document.createElement("div");s.classList.add("gr-stars"),this.googleRating.append(s);for(let e of this.splitRating(t.textContent)){.5==e&&(e="0-5");const t=document.createElement("div");t.classList.add("gr-star-"+e),s.append(t)}const n=document.createElement("div");n.classList.add("gr-text"),n.innerHTML=this.i18n.pageRate.replace("{0}","<strong>"+t.textContent+"</strong>").replace("{1}","<strong>"+o[0]+"</strong>"),this.googleRating.append(n)}splitRating(e){let t=Math.ceil(2*parseFloat(e))/2;const i=Array(5).fill(0);for(let e=0;e<5&&t>0;e++){const o=Math.min(1,t);i[e]=o,t-=o}return i}buildHeaderMobile(){const e=this.createRow(["mb-5","display-mobile"]),t=this.createColumn(12);
503return t.append(this.createH1(this.i18n.formTitle,["mb-1"])),t.append(this.createParagraph(this.i18n.formDescription,["m-0"])),e.append(t),e}buildSuccessMessage(){return this.successMessage=this.createMessage("success")}buildWarningMessage(){return this.warningMessage=this.createMessage("warning")}buildErrorMessage(){return this.errorMessage=this.createMessage("error")}buildForm(){const e=this,t=document.createElement("form");return t.id="webowa-form-project",t.noValidate=!0,t.onsubmit=t=>{t.preventDefault(),e.validForm(t.target)?(grecaptcha.reset(),grecaptcha.execute()):e.showWarningMessage(e.i18n.formWarning)},function(t){const i=e.createRow();t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createTextField("name",e.i18n.name,!0,[new c,new l(255)])),i.append(o);const s=e.createColumn(6,["mb-2"]);s.append(e.createTextField("surname",e.i18n.surname,!0,[new c,new l(255)])),i.append(s);const a=e.createRow(["mb-3"]);t.append(a);const r=e.createColumn(6,["mb-2"]);r.append(e.createEmailField("mail",e.i18n.email,!0,[new c,new n,new l(255)])),a.append(r);const p=e.createColumn(6,["mb-2"]);p.append(e.createTextField("phone",e.i18n.phone,!0,[new c,new l(255)])),a.append(p)}(t),t.append(this.createH2(this.i18n.motorcycleInformation,["mt-0","mb-1"])),function(t){const i=e.createRow();t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createTextField("brand",e.i18n.brand,!1,[new l(255)])),i.append(o);const s=e.createColumn(6,["mb-2"]);s.append(e.createTextField("model",e.i18n.model,!1,[new l(255)])),i.append(s);const n=e.createRow(["mb-3"]);t.append(n);const a=e.createColumn(6,["mb-2"]);a.append(e.createEmailField("year",e.i18n.year,!1,[new l(255)])),n.append(a);const r=e.createColumn(6,["mb-2"]);r.append(e.createTextField("color",e.i18n.color,!1,[new l(255)])),n.append(r)}(t),t.append(this.createH2(this.i18n.motorcycleCondition,["mt-0","mb-1"])),function(t){const i=e.createRow(["mb-3"]);t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createParagraph(e.i18n.oldStickersRemovedQuestion,["mt-0","mb-1"])),o.append(e.createDropdownField("oldStickersRemoved",{Nie:e.i18n.noOption,Tak:e.i18n.yesOption})),i.append(o);const s=e.createColumn(6,["mb-2"]);s.append(e.createParagraph(e.i18n.paintworkFairingsDamagedQuestion,["mt-0","mb-1"])),s.append(e.createDropdownField("paintworkFairingsDamaged",{Nie:e.i18n.noOption,Tak:e.i18n.yesOption})),i.append(s)}(t),t.append(this.createH2(this.i18n.projectAssumptions,["mt-0","mb-1"])),function(t){const i=e.createRow(["mb-2"]);t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createParagraph(e.i18n.projectOnCurrentPaintQuestion,["mt-0","mb-1"])),o.append(e.createDropdownField("projectOnCurrentPaint",{Tak:e.i18n.yesOption,Nie:e.i18n.noChangeColorFoil})),i.append(o),t.append(e.createParagraph(e.i18n.styleFeelProject,["mt-0","mb-1"]));const s={Sportowy:e.i18n.sportyOption,Militarny:e.i18n.militaryOption,Geometryczny:e.i18n.geometricOption,Racingowy:e.i18n.racingOption,Agresywny:e.i18n.aggressiveOption,Retro:e.i18n.retroOption,Minimalistyczny:e.i18n.minimalistOption,Inspirowany:e.i18n.inspiredOption,Inne:e.i18n.otherDescribeBelowOption};let n,a=0;for(const i in s){a%4==0&&(n=e.createRow(),t.append(n));const o=e.createColumn(a%4==3?4:2);o.append(e.createMultipleCheckbox("styleFeelProject",i,s[i])),n.append(o),a++}const r=e.createRow(["mt-1","none"]);t.append(r);const c=e.createColumn(6);c.append(e.createTextField("styleFeelProjectDescription",e.i18n.description,!1,[new p("styleFeelProject","Inne"),new l(999)],{form:t,field:"styleFeelProject",value:"Inne"})),r.append(c);const h=e.createRow(["mt-3","mb-3"]);t.append(h);const d=e.createColumn(6,["mb-2"]);d.append(e.createParagraph(e.i18n.describeVisionProject,["mt-0","mb-0"])),d.append(e.createParagraph(e.i18n.exampleWantProjectLookLike,["mt-0","mb-1","font-italic","text-gray"])),d.append(e.createTextField("describeVisionProject",e.i18n.description,!1,[new l(999)])),h.append(d)}(t),t.append(this.createH2(this.i18n.inspirations,["mt-0","mb-1"])),function(t){const i=e.createRow(["mb-3"]);t.append(i);const o=e.createColumn(12,["mb-2"]);o.append(e.createParagraph(e.i18n.attachReferencePhotos,["mt-0","mb-1"])),o.append(e.createFilesUploader("inspirations")),i.append(o)}(t),t.append(this.createH2(this.i18n.finishing,["mt-0","mb-1"])),function(t){const i=e.createRow(["mb-3"]);t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createParagraph(e.i18n.whatFinishShouldVeneerHaveQuestion,["mt-0","mb-1"])),i.append(o);const s=e.createRow();o.append(s);const n=e.createColumn(12);s.append(n);const a={"Gładkie":e.i18n.smooth,Metaliczne:e.i18n.metallic,Matowe:e.i18n.matte,Fluorowe:e.i18n.fluoride,"Perłowe":e.i18n.pearl};let r,l=0;for(const t in a){l%2==0&&(r=e.createRow(),n.append(r));const i=e.createColumn(6);i.append(e.createMultipleCheckbox("finishing",t,a[t])),r.append(i),l++}}(t),t.append(this.createH2(this.i18n.additionalElements,["mt-0","mb-1"])),function(t){const i=e.createRow();t.append(i);const o=e.createColumn(6);o.append(e.createParagraph(e.i18n.doYouWantComplementProjectDedicatedAddonsQuestion,["mt-0","mb-1"])),i.append(o);const s=e.createRow();o.append(s);const n=e.createColumn(12);s.append(n);const a={Tankpad:e.i18n.tankpad,Naklejki_na_felgi:e.i18n.rimStickers,Cappad:e.i18n.cappad,Numer_startowy:e.i18n.startingNumber,Inne:e.i18n.otherDescribeBelowOption};let r,c=0;for(const t in a){c%2==0&&(r=e.createRow(),n.append(r));const i=e.createColumn(6);i.append(e.createMultipleCheckbox("additionalElements",t,a[t])),r.append(i),c++}const h=e.createRow(["mt-1","none"]);t.append(h);const d=e.createColumn(6);d.append(e.createTextField("additionalElementsDescription",e.i18n.description,!1,[new p("additionalElements","Inne"),new l(999)],{form:t,field:"additionalElements",value:"Inne"})),h.append(d)}(t),t.append(this.createH2(this.i18n.budgetTransportation,["mt-5","mb-1"])),function(t){const i=e.createRow(["mb-3"]);t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createParagraph(e.i18n.whatYourEstimatedBudgetQuestion,["mt-0","mb-1"])),o.append(e.createTextField("budget",e.i18n.description,!1,[new l(255)])),i.append(o);const s=e.createColumn(6,["mb-2"]);s.append(e.createParagraph(e.i18n.wouldYouLikeUseOurTransportQuestion,["mt-0","mb-1"])),s.append(e.createDropdownField("transport",{Nie:e.i18n.noOption,Tak:e.i18n.yesOption})),i.append(s)}(t),t.append(this.createH2(this.i18n.consentsAndArrangements,["mt-0","mb-1"])),function(t){const i=e.createRow(["mb-3","d-flex","align-items-end"]);t.append(i);const o=e.createColumn(6,["mb-2"]);o.append(e.createParagraph(e.i18n.haveYouReadOurRegulationsQuestion+"*",["mt-0","mb-1"])),o.append(e.createDropdownField("consent1",{Nie:e.i18n.noOption,Tak:e.i18n.yesOption},[new r])),i.append(o);const s=e.createColumn(6,["mb-2"]);s.append(e.createParagraph(e.i18n.doYouAgreeStartVisualizationAfterPaymentQuestion+"*",["mt-0","mb-0"])),s.append(e.createParagraph(e.i18n.advancePaymentAmountWillIndicatedResponseForm,["mt-0","mb-1","font-italic","text-gray"])),s.append(e.createDropdownField("consent2",{Nie:e.i18n.noOption,Tak:e.i18n.yesOption,Nie_Chce_na_tym_etapie_poznac_szczegoly:e.i18n.noIWouldLikeToReceiveMoreDetailsAndAQuoteForTheFullServiceFirst},[new a(["Tak","Nie_Chce_na_tym_etapie_poznac_szczegoly"])])),i.append(s)}(t),t.append(this.createGoogleReCaptcha()),function(t){const i=e.createRow();t.append(i);const o=e.createColumn(12,["text-center"]);o.append(e.createSubmit(t,e.i18n.letsGetWork)),i.append(o)}(t),t}rebuildForm(){const e=document.getElementById("webowa-form-project"),t=document.getElementById("webowa-form-project-additional-information"),i=e.parentElement;e&&e.remove(),t&&t.remove(),i.append(this.buildForm()),i.append(this.additionalInformation())}additionalInformation(){const e=document.createElement("div");return e.id="webowa-form-project-additional-information",e.style.padding="15px",e.style.fontSize="19px",e.style.lineHeight=1.3,e.style.border="1px solid #d8d8d8",e.innerHTML=this.i18n.additionalInformation,e}displayNone(e){e&&(e.style.display="none")}addClass(e,t){e&&e.classList.add(t)}addClasses(e,t){if(e&&void 0!==t)for(const i of t)e.classList.add(i)}removeClass(e,t){e&&e.classList.remove(t)}createRow(e){const t=document.createElement("div");return t.classList.add("f-row"),this.addClasses(t,e),t}createColumn(e,t){const i=document.createElement("div");return i.classList.add("f-grid-"+e),this.addClasses(i,t),i}createH1(e,t){const i=document.createElement("h1");return i.textContent=e,this.addClasses(i,t),i}createH2(e,t){const i=document.createElement("h2");return i.textContent=e,this.addClasses(i,t),i}createParagraph(e,t){const i=document.createElement("p");return i.innerHTML=e,this.addClasses(i,t),i}createMessage(e){const t=document.createElement("div");t.classList.add("alert-"+e),t.classList.add("alert"),t.classList.add("mb-2"),t.classList.add("none");const i=document.createElement("div");return i.classList.add("row"),t.append(i),i.append(this.createParagraph("Example message.",["m-0"])),t}createTextField(e,t,i,o,s){const n=this;void 0===i&&(i=!1);const a=document.createElement("input");if(a.type="text",a.id=e,a.name=e,a.placeholder=t+(i?"*":""),a.validation=function(e,t){return n.fieldValidator(e,t,o)},void 0!==s){const e=s.form.querySelector('input[name="'+s.field+'[]"][value="'+s.value+'"]');e&&(e.onchange=()=>{const t=a.closest(".f-row");e.checked?t.classList.remove("none"):t.classList.add("none")})}return a}createEmailField(e,t,i,o){const s=this;void 0===i&&(i=!1);const n=document.createElement("input");return n.type="email",n.id=e,n.name=e,n.placeholder=t+(i?"*":""),n.validation=function(e,t){return s.fieldValidator(e,t,o)},n}createDropdownField(e,t,i){const o=this,s=document.createElement("select");s.id=e,s.name=e,s.validation=function(e,t){return o.fieldValidator(e,t,i)};for(const e in t){const i=document.createElement("option");i.value=e,i.text=t[e],s.append(i)}return s}createMultipleCheckbox(e,t,i,o){const s=document.createElement("div");s.classList.add("input");const n=document.createElement("span");n.classList.add("checkbox-wrap"),s.append(n);const a=document.createElement("input");a.type="checkbox",a.id=e+"_"+t,a.name=e+"[]",a.value=t,a.classList.add("checkbox"),n.append(a);const r=document.createElement("label");r.setAttribute("for",a.id),n.append(r);const l=document.createElement("label");return l.setAttribute("for",a.id),l.textContent=i,s.append(l),s}createFilesUploader(e,t){const i=this;this.uploader=document.createElement("div"),this.uploader.classList.add("image-uploader");const o=document.createElement("input");o.type="file",o.multiple=!0,o.accept="image/jpg, image/jpeg, image/png",o.onchange=s=>{let n=[];for(const s of o.files){switch(s.type.toLowerCase()){case"image/jpg":case"image/jpeg":case"image/png":break;default:n.push(`${s.name}: ${i.i18n.onlyPhotosAllowed}`);continue}const o=s.size/1024/1024;o>10?n.push(`${s.name}: ${i.i18n.maximumSingleFile}`):i.uploaderTotalSize+o>30?n.push(`${s.name}: ${i.i18n.maximumAllFiles}`):(i.uploaderTotalSize+=o,i.createFilePreview(e,s,t))}o.value=null,n.length>0&&shoper.alert(n.join("<br>"),Shop.lang.common.alert)};const s=document.createElement("div");s.classList.add("image-uploader-handler"),s.onclick=()=>{o.dispatchEvent(new MouseEvent("click"))},s.append(o),this.uploader.append(s);const n=document.createElement("span");n.classList.add("mb-1"),n.textContent="+ "+this.i18n.add,s.append(n);const a=document.createElement("small");return a.classList.add("text-gray"),a.textContent=this.i18n.photosMessage,s.append(a),this.uploader}createFilePreview(e,t,i){const o=this;var s=new DataTransfer;s.items.add(t);const n=document.createElement("div");n.classList.add("image-uploader-file");const a=document.createElement("input");a.type="file",a.name=e+"[]",a.files=s.files,a.validation=function(e,t){return o.fieldValidator(e,t,i)},n.append(a);const r=document.createElement("img");r.src=URL.createObjectURL(t),n.append(r);const l=document.createElement("span");l.classList.add("image-remove"),l.onclick=()=>{o.uploaderTotalSize-=t.size/1024/1024,n.remove()},n.append(l),this.uploader.append(n)}createGoogleReCaptcha(){const e=document.createElement("div");return e.id="recaptcha",e.dataset.sitekey=this.options.recaptcha,e.dataset.callback="webowaFormProjectOnSubmit",e.dataset.size="invisible",e.classList.add("g-recaptcha"),e}createSubmit(e,t){const i=document.createElement("button");
vendor: 16,384 bytes, line 503
503return i.type="submit",i.name="send",i.textContent=t,i.classList.add("btn"),i.classList.add("btn-red"),i}fieldValidator(e,t,i){let o=[];if(void 0!==i)for(const s of i){s.setI18N(this.i18n);const i=s.valid(e,t);if(!0!==i){o.push(i);break}}return 0==o.length||o}validForm(e){let t=!0;this.addClass(this.successMessage,["none"]),this.addClass(this.warningMessage,["none"]),this.addClass(this.errorMessage,["none"]);const i=new FormData(e),o=[];for(const[e,t]of i.entries())if(e.endsWith("[]")){const i=e.slice(0,-2);o[i]||(o[i]=[]),o[i].push(t)}else o[e]=t;for(var s of i.keys()){const n=e.querySelector('input[name="'+s+'"]')||e.querySelector('select[name="'+s+'"]');if(!n)continue;const a=i.get(s),r=!("validation"in n)||"function"!=typeof n.validation||n.validation(a,o),l=n.id+"_error";this.clearFieldError(n,l),!0!==r&&(t=!1,this.showFieldError(n,l,r))}return t}sendForm(){const e=this,t=document.getElementById("webowa-form-project");t.classList.add("form-loading"),t.scrollIntoView({behavior:"smooth"}),fetch("https://fooqs.webowa.eu/{0}/form/project?_={1}".replace("{0}",this.lang).replace("{1}",Date.now()),{method:"POST",body:new FormData(t)}).then(function(e){return e.ok?e.json():Promise.reject(e)}).then(function(i){if("success"==i.status)e.showSuccessMessage(e.i18n.sendMessage),e.rebuildForm();else if("warning"==i.status){for(const o in i.errors){const s=t.querySelector('input[name="'+o+'"]')||t.querySelector('select[name="'+o+'"]'),n=s.id+"_error";e.showFieldError(s,n,i.errors[o])}e.showWarningMessage(e.i18n.formWarning)}else"error"==i.status&&e.showErrorMessage(e.i18n.errorSendMessage);t.classList.remove("form-loading")}).catch(function(i){t.classList.remove("form-loading"),e.showErrorMessage(e.i18n.errorSendMessage)})}buildErrorList(e,t){const i=document.createElement("ul");i.id=e,i.classList.add("error");for(const e of t){const t=document.createElement("li");t.textContent=e,i.append(t)}return i}clearFieldError(e,t){e.classList.remove("error");const i=document.getElementById(t);i&&i.remove()}showFieldError(e,t,i){e.classList.add("error"),e.after(this.buildErrorList(t,i))}showSuccessMessage(e){this.successMessage.querySelector("p").textContent=e,this.successMessage.classList.remove("none"),this.successMessage.scrollIntoView({behavior:"smooth"})}showWarningMessage(e){this.warningMessage.querySelector("p").textContent=e,this.warningMessage.classList.remove("none"),this.warningMessage.scrollIntoView({behavior:"smooth"})}showErrorMessage(e){this.errorMessage.querySelector("p").textContent=e,this.errorMessage.classList.remove("none"),this.errorMessage.scrollIntoView({behavior:"smooth"})}}var t,i,o;!function(e,t,i,o){function s(t,i){this.settings=null,this.options=e.extend({},s.Defaults,i),this.$element=e(t),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"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,i){this._handlers[i]=e.proxy(this[i],this)},this)),e.each(s.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(s.Workers,e.proxy(function(t,i){this._pipe.push({filter:i.filter,run:e.proxy(i.run,this)})},this)),this.setup(),this.initialize()}s.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:t,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"},s.Width={Default:"default",Inner:"inner",Outer:"outer"},s.Type={Event:"event",State:"state"},s.Plugins={},s.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.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(e){var t=this.settings.margin||"",i=!this.settings.autoWidth,o=this.settings.rtl,s={width:"auto","margin-left":o?t:"","margin-right":o?"":t};!i&&this.$stage.children().css(s),e.css=s}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,o=this._items.length,s=!this.settings.autoWidth,n=[];for(e.items={merge:!1,width:t};o--;)i=this._mergers[o],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=i>1||e.items.merge,n[o]=s?t*i:this._items[o].width();this._widths=n}},{filter:["items","settings"],run:function(){var t=[],i=this._items,o=this.settings,s=Math.max(2*o.items,4),n=2*Math.ceil(i.length/2),a=o.loop&&i.length?o.rewind?s:Math.max(s,n):0,r="",l="";for(a/=2;a>0;)t.push(this.normalize(t.length/2,!0)),r+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),l=i[t[t.length-1]][0].outerHTML+l,a-=1;this._clones=t,e(r).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,i=-1,o=0,s=0,n=[];++i<t;)o=n[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,n.push(o+s*e);this._coordinates=n}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,o=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],o.eq(t).css(e.css);else i&&(e.css.width=e.items.width,o.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,i,o,s=this.settings.rtl?1:-1,n=2*this.settings.stagePadding,a=this.coordinates(this.current())+n,r=a+this.width()*s,l=[];for(i=0,o=this._coordinates.length;i<o;i++)e=this._coordinates[i-1]||0,t=Math.abs(this._coordinates[i])+n*s,(this.op(e,"<=",a)&&this.op(e,">",r)||this.op(t,"<",a)&&this.op(t,">",r))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],s.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},s.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return e(t)}),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)},s.prototype.initialize=function(){var e,t,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:o,i=this.$element.children(t).width(),e.length&&i<=0&&this.preloadAutoWidthImages(e));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},s.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},s.prototype.setup=function(){var t=this.viewport(),i=this.options.responsive,o=-1,s=null;i?(e.each(i,function(e){e<=t&&e>o&&(o=Number(e))}),"function"==typeof(s=e.extend({},this.options,i[o])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+o))):s=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=o,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},s.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},s.prototype.update=function(){for(var t=0,i=this._pipe.length,o=e.proxy(function(e){return this[e]},this._invalidated),s={};t<i;)(this._invalidated.all||e.grep(this._pipe[t].filter,o).length>0)&&this._pipe[t].run(s),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},s.prototype.width=function(e){switch(e=e||s.Width.Default){case s.Width.Inner:case s.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},s.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")},s.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},s.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")))},s.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.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",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},s.prototype.onDragStart=function(t){var o=null;3!==t.which&&(e.support.transform?o={x:(o=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===o.length?12:4],y:o[16===o.length?13:5]}:(o=this.$stage.position(),o={x:this.settings.rtl?o.left+this.$stage.width()-this.width()+this.settings.margin:o.left,y:o.top}),this.is("animating")&&(e.support.transform?this.animate(o.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=o,this._drag.stage.current=o,this._drag.pointer=this.pointer(t),e(i).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(i).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var o=this.difference(this._drag.pointer,this.pointer(t));e(i).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(o.x)<Math.abs(o.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},s.prototype.onDragMove=function(e){var t=null,i=null,o=null,s=this.difference(this._drag.pointer,this.pointer(e)),n=this.difference(this._drag.stage.start,s);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,n.x=((n.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),o=this.settings.pullDrag?-1*s.x/5:0,n.x=Math.max(Math.min(n.x,t+o),i+o)),this._drag.stage.current=n,this.animate(n.x))},s.prototype.onDragEnd=function(t){var o=this.difference(this._drag.pointer,this.pointer(t)),s=this._drag.stage.current,n=o.x>0^this.settings.rtl?"left":"right";e(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==o.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(s.x,0!==o.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(Math.abs(o.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},s.prototype.closest=function(t,i){var s=-1,n=this.width(),a=this.coordinates();return this.settings.freeDrag||e.each(a,e.proxy(function(e,r){return"left"===i&&t>r-30&&t<r+30?s=e:"right"===i&&t>r-n-30&&t<r-n+30?s=e+1:this.op(t,"<",r)&&this.op(t,">",a[e+1]!==o?a[e+1]:r-n)&&(s="left"===i?e+1:e),-1===s},this)),this.settings.loop||(this.op(t,">",a[this.minimum()])?s=t=this.minimum():this.op(t,"<",a[this.maximum()])&&(s=t=this.maximum())),s},s.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},s.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},s.prototype.current=function(e){if(e===o)return this._current;if(0===this._items.length)return o;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==o&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},s.prototype.reset=function(e){(e=this.normalize(e))!==o&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},s.prototype.normalize=function(e,t){var i=this._items.length,s=t?0:this._clones.length;return!this.isNumeric(e)||i<1?e=o:(e<0||e>=i+s)&&(e=((e-s/2)%i+i)%i+s/2),e},s.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},s.prototype.maximum=function(e){var t,i,o,s=this.settings,n=this._coordinates.length;if(s.loop)n=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){if(t=this._items.length)for(i=this._items[--t
vendor: 6,798 bytes, line 503
503].width(),o=this.$element.width();t--&&!((i+=this._items[t].width()+this.settings.margin)>o););n=t+1}else n=s.center?this._items.length-1:this._items.length-s.items;return e&&(n-=this._clones.length/2),Math.max(n,0)},s.prototype.minimum=function(e){return e?0:this._clones.length/2},s.prototype.items=function(e){return e===o?this._items.slice():(e=this.normalize(e,!0),this._items[e])},s.prototype.mergers=function(e){return e===o?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},s.prototype.clones=function(t){var i=this._clones.length/2,s=i+this._items.length,n=function(e){return e%2==0?s+e/2:i-(e+1)/2};return t===o?e.map(this._clones,function(e,t){return n(t)}):e.map(this._clones,function(e,i){return e===t?n(i):null})},s.prototype.speed=function(e){return e!==o&&(this._speed=e),this._speed},s.prototype.coordinates=function(t){var i,s=1,n=t-1;return t===o?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(s=-1,n=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[n]||0))/2*s):i=this._coordinates[n]||0,i=Math.ceil(i))},s.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(e,t){var i=this.current(),o=null,s=e-this.relative(i),n=(s>0)-(s<0),a=this._items.length,r=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>a/2&&(s+=-1*n*a),(o=(((e=i+s)-r)%a+a)%a+r)!==e&&o-s<=l&&o-s>0&&(i=o-s,e=o,this.reset(i))):this.settings.rewind?e=(e%(l+=1)+l)%l:e=Math.max(r,Math.min(l,e)),this.speed(this.duration(i,e,t)),this.current(e),this.isVisible()&&this.update()},s.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},s.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},s.prototype.onTransitionEnd=function(e){if(e!==o&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},s.prototype.viewport=function(){var o;return this.options.responsiveBaseElement!==t?o=e(this.options.responsiveBaseElement).width():t.innerWidth?o=t.innerWidth:i.documentElement&&i.documentElement.clientWidth&&(o=i.documentElement.clientWidth),o},s.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.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")},s.prototype.add=function(t,i){var s=this.relative(this._current);i=i===o?this._items.length:this.normalize(i,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:i}),t=this.prepare(t),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[s]&&this.reset(this._items[s].index()),this.invalidate("items"),this.trigger("added",{content:t,position:i})},s.prototype.remove=function(e){(e=this.normalize(e,!0))!==o&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},s.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,i){this.enter("pre-loading"),i=e(i),e(new Image).one("load",e.proxy(function(e){i.attr("src",e.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))},s.prototype.destroy=function(){for(var o in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(i).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[o].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")},s.prototype.op=function(e,t,i){var o=this.settings.rtl;switch(t){case"<":return o?e>i:e<i;case">":return o?e<i:e>i;case">=":return o?e<=i:e>=i;case"<=":return o?e>=i:e<=i}},s.prototype.on=function(e,t,i,o){e.addEventListener?e.addEventListener(t,i,o):e.attachEvent&&e.attachEvent("on"+t,i)},s.prototype.off=function(e,t,i,o){e.removeEventListener?e.removeEventListener(t,i,o):e.detachEvent&&e.detachEvent("on"+t,i)},s.prototype.trigger=function(t,i,o,n,a){var r={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,o],function(e){return e}).join("-").toLowerCase()),c=e.Event([t,"owl",o||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},r,i));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(c)}),this.register({type:s.Type.Event,name:t}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},s.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]===o&&(this._states.current[t]=0),this._states.current[t]++},this))},s.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},s.prototype.register=function(t){if(t.type===s.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var i=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!i||!i.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:i.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===s.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].
vendor: 19,764 bytes, line 503
503concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(i,o){return e.inArray(i,this._states.tags[t.name])===o},this)))},s.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},s.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},s.prototype.pointer=function(e){var i={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i},s.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},s.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=e(this),n=o.data("owl.carousel");n||(n=new s(this,"object"==typeof t&&t),o.data("owl.carousel",n),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){n.register({type:s.Type.Event,name:i}),n.$element.on(i+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([i]),n[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},n))})),"string"==typeof t&&"_"!==t.charAt(0)&&n[t].apply(n,i)})},e.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),t=window.Zepto||window.jQuery,i=window,document,o=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)},o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.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())},o.prototype.destroy=function(){var e,t;for(e in i.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o,function(e,t){var i=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var i=this._core.settings,o=i.center&&Math.ceil(i.items/2)||i.items,s=i.center&&-1*o||0,n=(t.property&&undefined!==t.property.value?t.property.value:this._core.current())+s,a=this._core.clones().length,r=e.proxy(function(e,t){this.load(t)},this);for(i.lazyLoadEager>0&&(o+=i.lazyLoadEager,i.loop&&(n-=i.lazyLoadEager,o++));s++<o;)this.load(a/2+this._core.relative(n)),a&&e.each(this._core.clones(this._core.relative(n)),r),n++}},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(i){var o=this._core.$stage.children().eq(i),s=o&&o.find(".owl-lazy");!s||e.inArray(o.get(0),this._loaded)>-1||(s.each(e.proxy(function(i,o){var s,n=e(o),a=t.devicePixelRatio>1&&n.attr("data-src-retina")||n.attr("data-src")||n.attr("data-srcset");this._core.trigger("load",{element:n,url:a},"lazy"),n.is("img")?n.one("load.owl.lazy",e.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:a},"lazy")},this)).attr("src",a):n.is("source")?n.one("load.owl.lazy",e.proxy(function(){this._core.trigger("loaded",{element:n,url:a},"lazy")},this)).attr("srcset",a):((s=new Image).onload=e.proxy(function(){n.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:n,url:a},"lazy")},this),s.src=a)},this)),this._loaded.push(o.get(0)))},i.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(e,t){var i=function(o){this._core=o,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;e(t).on("load",function(){s._core.settings.autoHeight&&s.update()}),e(t).resize(function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout(function(){s.update()},250))})};i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){var t=this._core._current,i=t+this._core.settings.items,o=this._core.settings.lazyLoad,s=this._core.$stage.children().toArray().slice(t,i),n=[],a=0;e.each(s,function(t,i){n.push(e(i).height())}),(a=Math.max.apply(null,n))<=1&&o&&this._previousHeight&&(a=this._previousHeight),this._previousHeight=a,this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(e,t,i){var o=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,e(t.content)))}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var i=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",o=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),s=e.attr("data-width")||this._core.settings.videoWidth,n=e.attr("data-height")||this._core.settings.videoHeight,a=e.attr("href");if(!a)throw new Error("Missing video URL.");if((o=a.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(o[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(o[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}o=o[6],this._videos[a]={type:i,id:o,width:s,height:n},t.attr("data-video",a),this.thumbnail(e,this._videos[a])},o.prototype.thumbnail=function(t,i){var o,s,n=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",a=t.find("img"),r="src",l="",c=this._core.settings,p=function(i){o=c.lazyLoad?e("<div/>",{class:"owl-video-tn "+l,srcType:i}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),t.after(o),t.after('<div class="owl-video-play-icon"></div>')};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:n})),this._core.settings.lazyLoad&&(r="data-src",l="owl-lazy"),a.length)return p(a.attr(r)),a.remove(),!1;"youtube"===i.type?(s="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",p(s)):"vimeo"===i.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){s=e[0].thumbnail_large,p(s)}}):"vzaar"===i.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){s=e.framegrab_url,p(s)}})},o.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")},o.prototype.play=function(t){var i,o=e(t.target).closest("."+this._core.settings.itemClass),s=this._videos[o.attr("data-video")],n=s.width||"100%",a=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),o=this._core.items(this._core.relative(o.index())),this._core.reset(o.index()),(i=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",a),i.attr("width",n),"youtube"===s.type?i.attr("src","//www.youtube.com/embed/"+s.id+"?autoplay=1&rel=0&v="+s.id):"vimeo"===s.type?i.attr("src","//player.vimeo.com/video/"+s.id+"?autoplay=1"):"vzaar"===s.type&&i.attr("src","//view.vzaar.com/"+s.id+"/player?autoplay=true"),e(i).wrap('<div class="owl-video-frame" />').insertAfter(o.find(".owl-video")),this._playing=o.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,i,o){var s=function(t){this.core=t,this.core.options=e.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=o,this.next=o,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,i=e.proxy(this.clear,this),o=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),o.one(e.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(a)),n&&s.one(e.support.animation.end,i).addClass("animated owl-animated-in").addClass(n))}},s.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(e,t,i){var o=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,i){e.namespace&&this.play(t,i)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype._next=function(o){this._call=t.setTimeout(e.proxy(this._next,this,o),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(o||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return(new Date).getTime()-this._time},o.prototype.play=function(i,o){var s;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,s=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%i-s,this._timeout=i,this._call=t.setTimeout(e.proxy(this._next,this,o),i-s)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},o.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e){"use strict";var t=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":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.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":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)};t.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},t.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=e("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[e('<button role="button">').addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?e(i.dotsContainer):e("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy(function(t){var o=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(o,i.dotsSpeed)},this)),this._overrides)this._core[t]=e.proxy(this[t],this)},t.prototype.destroy=function(){var e,t,i,o,s;for(e in s=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&s.navContainer?this._controls[t].html(""):this._controls[t].remove();for(o in this.overides)this._core[o]=this._overrides[o];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.prototype.update=function(){var e,t,i=this._core.clones().length/2,o=i+this._core.items().length,s=this._core.maximum(!0),n=this._core.settings,a=n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],e=i,t=0,0;e<o;e++){if(t>=a||0===t){if(this._pages.push({start:Math.min(s,e-i),end:e-i+a-1}),Math.min(s,e-i)===s)break;t=0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var t,i=this._core.settings,o=this._core.items().length<=i.items,s=this._core.relative(this._core.current()),n=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||o),i.nav&&(this._controls.$previous.toggleClass("disabled",!n&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||o),i.dots&&(t=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(t){var i=this._core.settings;
503t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},t.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},t.prototype.getPosition=function(t){var i,o,s=this._core.settings;return"page"==s.slideBy?(i=e.inArray(this.current(),this._pages),o=this._pages.length,t?++i:--i,i=this._pages[(i%o+o)%o].start):(i=this._core.relative(this._core.current()),o=this._core.items().length,t?i+=s.slideBy:i-=s.slideBy),i},t.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},t.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},t.prototype.to=function(t,i,o){var s;!o&&this._pages.length?(s=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,i)):e.proxy(this._overrides.to,this._core)(t,i)},e.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(e,t){"use strict";var i=function(o){this._core=o,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":e.proxy(function(i){if(i.namespace&&"position"===i.property.name){var o=this._core.items(this._core.relative(this._core.current())),s=e.map(this._hashes,function(e,t){return e===o?t:null}).join();if(!s||t.location.hash.slice(1)===s)return;t.location.hash=s}},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(e){var i=t.location.hash.substring(1),o=this._core.$stage.children(),s=this._hashes[i]&&o.index(this._hashes[i]);undefined!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,o;for(i in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(e){function t(t,i){var n=!1,a=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+s.join(a+" ")+a).split(" "),function(e,t){if(undefined!==o[t])return n=!i||t,!1}),n}function i(e){return t(e,!0)}var o=e("<support>").get(0).style,s="Webkit Moz O ms".split(" "),n={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},a=function(){return!!t("transform")},r=function(){return!!t("perspective")},l=function(){return!!t("animation")};(function(){return!!t("transition")})()&&(e.support.transition=new String(i("transition")),e.support.transition.end=n.transition.end[e.support.transition]),l()&&(e.support.animation=new String(i("animation")),e.support.animation.end=n.animation.end[e.support.animation]),a()&&(e.support.transform=new String(i("transform")),e.support.transform3d=r())}(window.Zepto||window.jQuery,window,document);class s{i18n=null;setI18N(e){this.i18n=e}}class n extends s{valid(e,t){return!!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||this.i18n.incorectEmail}}class a extends s{constructor(e){super(),this.values=e}valid(e,t){return e=e.trim(),!!this.values.includes(e)||this.i18n.fieldRequired}}class r extends s{valid(e,t){return"Tak"==(e=e.trim())||this.i18n.fieldRequired}}class l extends s{constructor(e){super(),this.max=e}valid(e,t){return!((e=e.trim()).length>this.max)||this.i18n.incorectCharLimit.replace("{0}",this.max)}}class c extends s{valid(e,t){return 0!=(e=e.trim()).length||this.i18n.fieldRequired}}class p extends s{constructor(e,t){super(),this.field=e,this.value=t}valid(e,t){return e=e.trim(),void 0===t[this.field]||!t[this.field].includes(this.value)||0!=e.length||this.i18n.fieldRequired}}}();

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.