PageSourceSearch

https://www.gigaserver.cz/js/cart.min.js?upd=1790158021

js gigaserver.cz collected 2026-09-25 07:02:05 UTC 22,697 bytes, 102 lines download raw bytes

1window.scriptInits=window.scriptInits||[];window.scriptInits.push((function(){let autoClicked=!1;$('#check-domains-btn').on('click',(()=>{if($('#check-domains-btn').prop('disabled')!==!1){autoClicked=!1;return}
2NO_USER_domainName=$('#domain-name').val();if(NO_USER_domainName.length){NO_USER_domainName=NO_USER_domainName.toLowerCase();NO_USER_domainName=NO_USER_domainName.replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"')}
3NO_USER_currentUuid=null;NO_USER_othersCurrentUuid=null;testDomain(autoClicked);autoClicked=!1}));$('.js-del-cart-item').on('click',(function(){deleteItem($(this).data('id'))}));$('.js-custom-handle').on('change',(function(){const $this=$(this);const closest=typeof $this.data('closest')==='undefined'?'fieldset':$this.data('closest');evalHandle($this.prop('checked'),$this.closest(closest))}));$('.js-check-handle').on('change',function(){const handle=$(this).val();if(handle.length<2){return}
4$.ajax({url:`/cart/check-handle-existence/${handle}`,success(){showAlert('Tento identifikátor již existuje, zvolte prosím jiný, nebo jej importujte.')},error(data){if(data.status===404){}else if(data.status===400){showAlert('Identifikátor má neplatný formát. Může obsahovat pouze čísla, písmena a pomlčky. Identifikátor nesmí začínat ani končit pomlčkou a nesmí mít 2 za sebou.')}else{showAlert('U ověřování identifikátoru se vyskytla neočekávaná chyba.')}}})});$('#corr-differs').on('change',(function(){showOptionalContact($(this),$('#cc-fields'))}));$('#owner-differs').on('change',(function(){showOptionalContact($(this),$('#owner-fields'))}));$('.js-cart-period').on('selectmenuchange',(function(){const $this=$(this);changePeriod($this.data('cart-id'),$this.val(),1)}));$('.js-cart-status').on('selectmenuchange',(function(){const $this=$(this);$.ajax({url:`/cart/change-status/${$this.data('cart-id')}/${$this.val()}`,type:'POST',beforeSend(xhr){xhr.setRequestHeader('X-CSRF-Token',getCookie('csrfToken'))},complete(){window.location.reload()}})}));$('.js-cart-hosting-select').on('selectmenuchange',(function(){const $this=$(this);const parentId=parseInt($this.data('parent'));const val=parseInt($this.val());const domain=$this.data('domain');if(!isNaN(parentId)&&!isNaN(val)&&domain!==''&&typeof domain!=="undefined"){$.ajax({url:`/cart/add-item/${val}/${domain}/12/${parentId}`,type:'POST',beforeSend(xhr){xhr.setRequestHeader('X-CSRF-Token',getCookie('csrfToken'))},complete(){window.location.reload()}})}else{showAlert('Došlo k neočekávané chybě.')}}));$('#order-account-id').on('change',(function(){const accId=$(this).val();if(isNaN(parseInt(accId))||parseInt(accId)===0||(accId.includes('-')&&isAdmin)){$(this).val('');showAlert('Číslo účtu má neplatný formát. Může obsahovat pouze čísla.');customerSelectAcc(0,!1);return}
5customerSelectAcc(accId,!0)}));const billFieldsDiv=$('#bc-fields');const billSelect=billFieldsDiv.find('.js-cart-contact-select').find('select');const corrFieldsDiv=$('#cc-fields');const corrSelect=corrFieldsDiv.find('.js-cart-contact-select').find('select');const ownerFieldsDiv=$('#owner-fields');const ownerSelect=ownerFieldsDiv.find('.js-cart-contact-select').find('select');billSelect.on('change',(function(){evalContact($(this).val(),billFieldsDiv)}));corrSelect.on('change',(function(){evalContact($(this).val(),corrFieldsDiv)}));ownerSelect.on('change',(function(){evalContact($(this).val(),ownerFieldsDiv)}));$('.js-cart-import-contact-handle').on('change',(function(){const $this=$(this);const parent=$this.closest('.js-cart-import-contact');const currentHandle=$this.val();checkHandle(parent,currentHandle)}));$('.js-cart-import-contact-resend-authid').on('click',(function(){const parent=$(this).closest('.js-cart-import-contact');const handleField=parent.find('.js-cart-import-contact-handle');const currentHandle=handleField.val();if(currentHandle.length<1){showAlert('Není možné přeposlat Auth-ID, protože není vyplněný CZ kontakt.','warning');setTimeout(()=>{handleField.trigger('focus')},0);return}
6checkHandle(parent,currentHandle,'resend')}));$('#unlink-vat-doc').on('click',(function(){const vatDoc=$(this).closest('.js-vat-doc');const div=$(this).closest('.form-group');const inputDiv=vatDoc.find('.js-vat-doc-input');$.ajax({url:'/cart/remove-vat-doc',type:'POST',beforeSend(xhr){xhr.setRequestHeader('X-CSRF-Token',getCookie('csrfToken'))},success(){div.remove();inputDiv.removeClass('d-none')}})}));$('.cart-continue').on('click',(function(e){checkCartDomains(e,$(this).attr('href'))}));if(typeof domain==='string'&&domain.length>0){$('#domain-name').val(domain);if(window.foreignGuestDomainCheckDelay!==!0&&!(/bot|crawl|spider|BingPreview|meta/i.test(navigator.userAgent))){autoClicked=!0;$('#check-domains-btn').trigger('click')}}
7$('#customer-copy').on('click',(()=>{$('#bc-name').val($('#user-name').html());$('#bc-email').val($('#user-mail').html());$('#bc-phone').val($('#user-phone').html())}));$('#order-submit-btn').on('click',(()=>{const chkbx=$('#agreed');if(chkbx.prop('checked')!==!0){chkbx.parent().addClass('unchecked')}}));$('#cart-coupon-btn').on('click',(()=>{useCoupon()}));$('#premium-order-submit').on('click',(()=>{submitPremiumOrder()}));$('#premium-order-form').on('submit',((e)=>{e.preventDefault();submitPremiumOrder()}));$('#cart-add-item-form').find('#service-type-id').on('change',(function(){evalCustomItemType($(this).val())}));$('#domains-show-over-btn').on('click',(()=>{const element=$('.js-domains-sec-over');if(element.hasClass('d-none')){element.removeClass('d-none');if(NO_USER_isChecked===!0){$('#domains-show-over').addClass('d-none');checkBulk(!0)}}else{element.addClass('d-none')}}));$('.js-open-mojeid-modal').on('click',(()=>
7{$('#modal-mojeid').modal('show')}));const showNote=$('#js-show-note');const note=$('.note');showNote.on('change',(()=>{if(showNote.is(':checked')){note.removeClass('d-none')}else{note.addClass('d-none')}}));if($('#prevent-sending').length>0){$('#prevent-sending').on('click',()=>{updatePreventSending()});setTimeout(()=>{updatePreventSending()},1)}
8$('.js-service-type-listener').on('change',function(){const priceListener=$('.js-price-listener');priceListener.removeAttr('placeholder');priceListener.attr('required',!1);const $this=$(this);if(typeof prices[$this.val()]==="undefined"){priceListener.attr('required',!0)}else{priceListener.attr('placeholder',prices[$this.val()])}
9priceListener.trigger('change')});$('.js-price-listener').on('change',function(){const $this=$(this);$this.parent().find('.form-text').remove();if($this.val().length>0&&typeof $this.attr('placeholder')!=="undefined"&&$this.attr('placeholder').length!==0){$this.parent().append('<div class="form-text text-muted is-16" style="color:red;">Cena bude statická!</div>')}});$('.js-enable-date').on('change',function(){if($(this).is(':checked')){$('#delivery-date').attr('disabled',!1);$('#invoice-type').attr('disabled',!0).val(2)}else{$('#delivery-date').attr('disabled',!0);$('#invoice-type').attr('disabled',!1).val(1)}});$('.js-check-unit').on('change',function(){if($(this).val()==='5'){$('#first-period').attr('disabled',!1)}else{$('#first-period').attr('disabled',!0)}});
9if($('#cart-items-parent').length>0){setTimeout(()=>{$('#cart-items-parent').find('.selectmenu').selectmenu()},10)}
10setTimeout(()=>{$('#corr-differs').trigger('change');$('#owner-differs').trigger('change');if(billSelect.length>0&&billSelect.val()!==null&&billSelect.val().length>0){evalContact(billSelect.val(),billFieldsDiv)}
11if(corrSelect.length>0&&corrSelect.val()!==null&&corrSelect.val().length>0){evalContact(corrSelect.val(),corrFieldsDiv)}
12if(ownerSelect.length>0&&ownerSelect.val()!==null&&ownerSelect.val().length>0){evalContact(ownerSelect.val(),ownerFieldsDiv)}
13if(/\/cart\/user\?/.test(window.location.href)&&getParameterByName('reset')==='1'){$('#modal-password').modal('show')}},1)}));function checkHandle(parent,handle,type='withConfirmation'){const authIdField=parent.find('.js-cart-import-contact-authid');const handleField=parent.find('.js-cart-import-contact-handle');authIdField.attr('readonly',!1).attr('placeholder','');handleField.removeClass('is-invalid');if(handle.length<1){return}
14const contactType=handleField.data('type');$.ajax({url:`/cart/check-handle-for-import/${handle}`,success(response){if(response==='auth_id_not_needed'){showAlert(`Již jste autorizován - nemusíte pro CZ kontakt ${handle} zadávat Auth-ID`,'success');authIdField.attr('readonly',!0);authIdField.attr('placeholder','Již jste autorizován');return}
15if(type==='withConfirmation'){customConfirm({title:'Odeslání Auth-ID',message:`Chcete odeslat Auth-ID pro CZ kontakt <strong>${handle}</strong> na e-mail kontaktu?`},()=>{sendAuthId(handle,contactType)})}else{sendAuthId(handle,contactType)}},error(){handleField.addClass('is-invalid')}})}
16function sendAuthId(handle,type){$.ajax({url:`/cart/send-auth-id/${handle}/${type}`,success(){showAlert('Auth-ID bylo úspěšně odesláno na e-mail handlu.','success')},error(data){if(data.status===429){showAlert(`Posíláte požadavky moc rychle. Zkuste to prosím znovu za ${data.responseText} sekund.`)}else if(data.status===403){showAlert('Počet zaslání hesla pro stejný kontakt byl vyčerpán. Zkuste to prosím později anebo zkontrolujte e-mail včetně složky SPAM.')}else if(data.status===409){showAlert(`Auth-ID nebylo odesláno, protože tento kontakt nelze použít pro některé aukční domény v košíku. (${data.responseText})`)}else if(data.status!==404){showAlert('Došlo k neočekávané chybě, zkuste to prosím později.')}}})}
17function updatePreventSending(){if($('#prevent-sending').is(':checked')){$('#created').attr('disabled','disabled');$('#date-tax').attr('disabled','disabled');$('#payment-date').attr('disabled','disabled');return}
18$('#created').removeAttr('disabled');$('#date-tax').removeAttr('disabled');$('#payment-date').removeAttr('disabled')}
19function showOptionalContact(checkbox,parent){const select=parent.find('.js-cart-contact-select').find('select');if(checkbox.prop('checked')===!0){parent.removeClass('d-none');select.prop('required',!0);select.find('option[value=""]').prop('disabled',!0);parent.find('.js-cart-relation').addClass('d-none');if(select.val()!==null&&select.val().length>0){evalContact(select.val(),parent)}
20return}
21parent.addClass('d-none');select.prop('required',!1);select.find('option[value=""]').prop('disabled',!1);select.val('');parent.find('.js-new-fields').addClass('d-none');parent.find('.js-cart-data').addClass('d-none');parent.find('.js-cart-import-contact').addClass('d-none');parent.find('.js-cart-required').find('input').prop('required',!1)}
22function evalCustomItemType(type){const input=$('#cart-add-item-form').find('#preconfidence');if(type===""){input.prop('required',!0);input.closest('.form-group').removeClass('d-none')}else{input.prop('required',!1);input.closest('.form-group').addClass('d-none')}}
23function checkCartDomains(e,link){e.preventDefault();$.ajax({url:'/cart/check',type:'POST',beforeSend(xhr){xhr.setRequestHeader('X-CSRF-Token',getCookie('csrfToken'))},success(){window.location.href=link},error(xhr){switch(xhr.status){case 404:showAlert('Všechny obsazené domény musí mít zvolenou operaci');break;case 412:showAlert('Domény s koncovkami .jajsem.in nebo .toje.in nelze objednat samostatně - zvolte prosím tarif');break;default:showAlert('Došlo k neznámé chybě');break}
24return!1}})}
25function evalContact(val,parent){if(val===''){return!1}
26const newFields=parent.find('.js-new-fields');const dataDiv=parent.find('.js-cart-data');const importDiv=parent.find('.js-cart-import-contact');const corrCheckbox=$('.js-corr-checkbox');if(corrCheckbox.hasClass('d-none')){corrCheckbox.removeClass('d-none')}
27parent.find('.js-cart-relation').removeClass('d-none');if(parseInt(val)===-2){if(newFields.hasClass('d-none')){newFields.removeClass('d-none')}
28newFields.find('input').attr('readonly',!1);if(!dataDiv.hasClass('d-none')){dataDiv.addClass('d-none')}
29if(!importDiv.hasClass('d-none')){importDiv.addClass('d-none')}
30parent.find('.js-cart-required').find('input').prop('required',!0);importDiv.find('.js-cart-required').find('input').prop('required',!1);parent.find('.js-email').prop('type','email');return}
31if(parseInt(val)===-1){if(!dataDiv.hasClass('d-none')){dataDiv.addClass('d-none')}
32if(importDiv.hasClass('d-none')){importDiv.removeClass('d-none')}
33newFields.find('input').attr('readonly',!0);parent.find('.js-email').prop('type','text');parent.find('.js-cart-required').find('input').prop('required',!1);importDiv.find('.js-cart-required').find('input').prop('required',!0);parent.find('.js-is-company').prop('checked',!1);const fieldsDiv=parent.find('.js-new-fields');if(!fieldsDiv.hasClass('d-none')){fieldsDiv.addClass('d-none')}
34return}
35newFields.find('input').attr('readonly',!0);parent.find('.js-email').prop('type','text');parent.find('.js-cart-required').find('input').prop('required',!1);parent.find('.js-is-company').prop('checked',!1);evalCompany(!1,parent);evalHandle(!1,parent);showContact(val,parent)}
36function evalHandle(val,parent){const inputDiv=parent.find('.js-handle');const input=inputDiv.find('input');if(val===!0){if(inputDiv.hasClass('d-none')){inputDiv.removeClass('d-none')}
37input.prop('required',!0);return}
38if(!inputDiv.hasClass('d-none')){inputDiv.addClass('d-none')}
39if($('.js-custom-handle').prop('checked')){$('.js-custom-handle').prop('checked',!1)}
40input.prop('required',!1)}
41function showContact(id,parent){if(typeof NO_USER_contacts[id]==='object'&&!$.isEmptyObject(NO_USER_contacts[id])){let html='<dl class="row ml-80px">';html+=`<dt class="col-4">ID:</dt><dd class="col-8">${id}</dd>`;if(typeof NO_USER_contacts[id].handle==='string'&&NO_USER_contacts[id].handle.length>0){html+=`<dt class="col-4">CZ kontakt:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].handle)}</dd>`}
42if(typeof NO_USER_contacts[id].name==='string'&&NO_USER_contacts[id].name.length>0){html+=`<dt class="col-4">Jméno:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].name)}</dd>`}
43if(typeof NO_USER_contacts[id].email==='string'&&NO_USER_contacts[id].email.length>0){html+=`<dt class="col-4">E-mail:</dt><dd class="col-8">${NO_USER_contacts[id].email}</dd>`}
44if(typeof NO_USER_contacts[id].phone==='string'&&NO_USER_contacts[id].phone.length>0){html+=`<dt class="col-4">Telefon:</dt><dd class="col-8">${NO_USER_contacts[id].phone}</dd>`}
45if(typeof NO_USER_contacts[id].company==='string'&&NO_USER_contacts[id].company.length>0){html+=`<dt class="col-4">Společnost:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].company)}</dd>`}
46if(typeof NO_USER_contacts[id].ico==='string'&&NO_USER_contacts[id].ico.length>0){html+=`<dt class="col-4">IČO:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].ico)}</dd>`}
47if(typeof NO_USER_contacts[id].dic==='string'&&NO_USER_contacts[id].dic.length>0){html+=`<dt class="col-4">DIČ:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].dic)}</dd>`}
48if(typeof NO_USER_contacts[id].street==='string'&&NO_USER_contacts[id].street.length>0){html+=`<dt class="col-4">Adresa:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].street)}</dd>`}
49if(typeof NO_USER_contacts[id].city==='string'&&NO_USER_contacts[id].city.length>0){html+=`<dt class="col-4">Obec:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].city)}</dd>`}
50if(typeof NO_USER_contacts[id].post_code==='string'&&NO_USER_contacts[id].post_code.length>0){html+=`<dt class="col-4">PSČ:</dt><dd class="col-8">${escapeHtml(NO_USER_contacts[id].post_code)}</dd>`}
51if(typeof NO_USER_contacts[id].country==='string'&&NO_USER_contacts[id].country.length>0){html+=`<dt class="col-4">Země:</dt><dd class="col-8">${countries[NO_USER_contacts[id]['country']]}</dd>`}
52if(typeof NO_USER_contacts[id].bank_account==='string'&&NO_USER_contacts[id].bank_account.length>0){html+=`<dt class="col-4">Typ platby:</dt><dd class="col-8">${NO_USER_contacts[id].bank_account === 'sk' ? 'v € na slovenský účet' : 'v CZK na český účet'}</dd>`}
53if(typeof NO_USER_contacts[id].paper_invoices==='string'&&NO_USER_contacts[id].paper_invoices.length>0){html+=`<dt class="col-4">Papírové faktury:</dt><dd class="col-8">${parseInt(NO_USER_contacts[id]['paper_invoices']) === 1 ? 'Ano' : 'NE'}</dd>`}
54html+='</dl>';const div=parent.find('.js-cart-data');const importDiv=parent.find('.js-cart-import-contact');const fieldsDiv=parent.find('.js-new-fields');div.html(html);if(div.hasClass('d-none')){div.removeClass('d-none')}
55if(!importDiv.hasClass('d-none')){importDiv.addClass('d-none')}
56if(!fieldsDiv.hasClass('d-none')){fieldsDiv.addClass('d-none')}
57return}
58showAlert('Nepodařilo se načíst zvolený kontakt')}
59function customerSelectAcc(val,valid){const div=$('#customer-form');const fieldset=$('#bc-fields');const ccFieldset=$('#cc-fields');
59const billSelectDiv=fieldset.find('.js-cart-contact-select');const corrSelectDiv=ccFieldset.find('.js-cart-contact-select');const billSelect=billSelectDiv.find('select');const corrSelect=corrSelectDiv.find('select');const newFields=fieldset.find('.js-new-fields');const ccNewFields=ccFieldset.find('.js-new-fields');const billData=fieldset.find('.js-cart-data');const corrData=ccFieldset.find('.js-cart-data');const billImportData=fieldset.find('.js-cart-import-contact');const corrImportData=ccFieldset.find('.js-cart-import-contact');let html=`<option value="" selected="selected" disabled="disabled">Vyberte kontakt</option>${isAdmin === true ? '' : '<option value="-2">Nový kontakt</option><option value="-1">Importovat kontakt</option>'}`;let corrHtml=`<option value="" selected="selected">Vyberte kontakt</option>${isAdmin === true ? '' : '<option value="-2">Nový kontakt</option><option value="-1">Importovat kontakt</option>'}`;const corrCheckDiv=$('.js-corr-checkbox');const corrCheckbox=corrCheckDiv.find('input');const relationSelect=fieldset.find('.js-cart-relation');if(valid){div.removeClass('d-none');if(!ccFieldset.hasClass('d-none')){ccFieldset.addClass('d-none')}
60corrCheckbox.prop('checked',!1);corrSelect.prop('required',!1);corrSelect.find('option[value=""]').prop('disabled',!1)}else{div.addClass('d-none')}
61if(parseInt(val)===-1){relationSelect.removeClass('d-none');billSelect.html(html);billSelect.val(-2);corrSelect.html(corrHtml);corrSelect.val(-2);if(!billData.hasClass('d-none')){billData.addClass('d-none')}
62if(!corrData.hasClass('d-none')){corrData.addClass('d-none')}
63if(!billImportData.hasClass('d-none')){billImportData.addClass('d-none')}
64if(!corrImportData.hasClass('d-none')){corrImportData.addClass('d-none')}
65if(newFields.hasClass('d-none')){newFields.removeClass('d-none')}
66newFields.find('input').attr('readonly',!1);if(ccNewFields.hasClass('d-none')){ccNewFields.removeClass('d-none')}
67if(corrCheckDiv.hasClass('d-none')){corrCheckDiv.removeClass('d-none')}
68return}
69relationSelect.addClass('d-none');$.ajax({url:`/contacts/get-all/${val}`,success(response){NO_USER_contacts=response;$.each(NO_USER_contacts,((i,e)=>{if(e.deleted!==null){return}
70let first=!0;let string=`${(e.is_locked ? 'Skrytý ' : '') + i}: `;if(typeof e.handle==='string'&&e.handle.length>0){first=!1;string+=escapeHtml(e.handle)}
71if(typeof e.name==='string'&&e.name.length>0){if(first===!0){first=!1}else{string+=', '}
72string+=escapeHtml(e.name)}
73if(typeof e.email==='string'&&e.email.length>0){if(first===!0){first=!1}else{string+=', '}
74string+=e.email}
75if(typeof e.phone==='string'&&e.phone.length>0){if(first===!0){first=!1}else{string+=', '}
76string+=e.phone}
77if(typeof e.company==='string'&&e.company.length>0){if(first===!0){first=!1}else{string+=', '}
78string+=escapeHtml(e.company)}
79if(typeof e.ico==='string'&&e.ico.length>0){if(first===!0){first=!1}else{string+=', '}
80string+=escapeHtml(e.ico)}
81if(typeof e.dic==='string'&&e.dic.length>0){if(first===!0){first=!1}else{string+=', '}
82string+=escapeHtml(e.dic)}
83if(typeof e.street==='string'&&e.street.length>0){if(first===!0){first=!1}else{string+=', '}
84string+=escapeHtml(e.street)}
85if(typeof e.city==='string'&&e.city.length>0){if(first===!0){first=!1}else{string+=', '}
86string+=escapeHtml(e.city)}
87if(typeof e.post_code==='string'&&e.post_code.length>0){if(first===!0){first=!1}else{string+=', '}
88string+=escapeHtml(e.post_code)}
89if(typeof e.country==='string'&&e.country.length>0){if(first===!0){first=!1}else{string+=', '}
90string+=e.country}
91if(typeof e.email==='string'&&e.email.length>0&&typeof e.phone==='string'&&e.phone.length>0){html+=`<option value="${i}">${string}</option>`}
92corrHtml+=`<option value="${i}">${string}</option>`}));billSelect.html(html);billSelect.val('');corrSelect.html(corrHtml);corrSelect.val('');if(!newFields.hasClass('d-none')){newFields.addClass('d-none')}
93if(billSelectDiv.hasClass('d-none')){billSelectDiv.removeClass('d-none')}
94if(corrSelectDiv.hasClass('d-none')){corrSelectDiv.removeClass('d-none')}
95if(!corrCheckDiv.hasClass('d-none')){corrCheckDiv.addClass('d-none')}
96if(!billData.hasClass('d-none')){billData.addClass('d-none')}
97if(!corrData.hasClass('d-none')){corrData.addClass('d-none')}
98if(!billImportData.hasClass('d-none')){billImportData.addClass('d-none')}
99if(!corrImportData.hasClass('d-none')){corrImportData.addClass('d-none')}},error(){showAlert('Došlo k chybě. Pokud se bude chyba opakovat, doporučujeme znovu načíst stránku. V případě, že přesto narazíte na chybu, kontaktujte naši zákaznickou podporu.')}})}
100function submitPremiumOrder(){const domainFull=$('#premium-title').val();$.ajax({url:'/cart/premium-order',type:'POST',data:{'title':domainFull,'service_type_id':$('#premium-type-id').val(),'email':$('#premium-email').val(),'status':$('#premium-status').val()},beforeSend(xhr){xhr.setRequestHeader('X-CSRF-Token',getCookie('csrfToken'))},success(response){if(response.length>10&&response.length<200){showAlert(response,'success')}else{showAlert('Poptávka byla úspěšně odeslána. Budeme Vás kontaktovat.','success')}
101const tld=domainFull.substring(domainFull.indexOf('.')+1);const tr=$(`#domain-check-result-${tld.replace('.', '-')}`);tr.find('.col-action').html('');
101$('#modal-premium-order').modal('hide')},error(response){if(response.responseText.length>10&&response.responseText.length<200){showAlert(response.responseText)}else{showAlert('Nepodařilo se odeslat poptávku.')}}})}
102function useCoupon(){const coupon=$('#coupon').val();const csrfToken=getCookie('csrfToken');$.ajax({url:'/cart/use-coupon',type:'POST',data:{'coupon':coupon},beforeSend(xhr){xhr.setRequestHeader('X-CSRF-Token',csrfToken)},success(){window.location.reload()},error(){showAlert('Kupón se nepodařilo aplikovat - zkontrolujte, že je zadán správně. V případě potřeby kontaktujte naši zákaznickou podporu')}})}

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.