1"use strict"; 2function _toConsumableArray(e) { 3 return _arrayWithoutHoles(e) || _iterableToArray(e) || _nonIterableSpread() 4} 5function _nonIterableSpread() { 6 throw new TypeError("Invalid attempt to spread non-iterable instance") 7} 8function _iterableToArray(e) { 9 if (Symbol.iterator in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e)) 10 return Array.from(e) 11} 12function _arrayWithoutHoles(e) { 13 if (Array.isArray(e)) { 14 for (var t = 0, l = Array(e.length); t < e.length; t++) 15 l[t] = e[t]; 16 return l 17 } 18} 19function _classCallCheck(e, t) { 20 if (!(e instanceof t)) 21 throw new TypeError("Cannot call a class as a function") 22} 23function _defineProperties(e, t) { 24 for (var l, r = 0; r < t.length; r++) 25 l = t[r], 26 l.enumerable = l.enumerable || !1, 27 l.configurable = !0, 28 "value"in l && (l.writable = !0), 29 Object.defineProperty(e, l.key, l) 30} 31function _createClass(e, t, l) { 32 return t && _defineProperties(e.prototype, t), 33 l && _defineProperties(e, l), 34 e 35} 36var header, scroll_top, isMacLike = !!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i), isIOS = !!navigator.platform.match(/(iPhone|iPod|iPad)/i), isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/), isFirefox = -1 < navigator.userAgent.toLowerCase().indexOf("firefox"), page_content = $(window), mobile = device.mobile(), tablet = device.tablet(), headerSmall = !1, bufer = 0, buferMax = isSafari ? 10 : isFirefox ? 30 : 200, window_width = $(window).innerWidth(), window_height = $(window).innerHeight(), menu_btn_access = !0, animTime = 250, ease = Power2.out; 37isMacLike && $("body, html").addClass("isMacLike"), 38isSafari && $("body, html").addClass("isSafari"); 39function detectIE() { 40 var e = window.navigator.userAgent 41 , t = e.indexOf("MSIE "); 42 if (0 < t) 43 return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10); 44 var l = e.indexOf("Trident/"); 45 if (0 < l) { 46 var r = e.indexOf("rv:"); 47 return parseInt(e.substring(r + 3, e.indexOf(".", r)), 10) 48 } 49 var a = e.indexOf("Edge/"); 50 return !!(0 < a) && parseInt(e.substring(a + 5, e.indexOf(".", a)), 10) 51} 52detectIE() && $("body").addClass("detectIE"); 53$(document).ready(function() { 54 $(".accordion:not(.termsItem) .top").click(function() { 55 $(this).parent().toggleClass("open"), 56 $(this).parent().hasClass("open") ? $(this).next().stop(!0).slideDown(250) : $(this).next().stop(!0).slideUp(250) 57 }) 58}); 59var calendar, PackagesCalendar = function() { 60 var t = Math.floor 61 , l = Math.abs; 62 function e(t) { 63 _classCallCheck(this, e), 64 this.errorTimer, 65 this.mouseDown = !1, 66 this.mouseDownDate = null, 67 this.mouseDownRange = !1, 68 this.timer = void 0, 69 this.countYears = 5, 70 this.monthsList = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
70November", "December"], 71 this.daysPrefix = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 72 this.parent = $("#" + t), 73 this.notice = this.parent.find(".notice .yellow"), 74 this.dateNow = new Date, 75 this.currentDate = this.getDate(), 76 this.current = { 77 year: this.currentDate.year, 78 month: this.currentDate.monthNumber, 79 countDays: this.getDaysInMonth(this.currentDate.monthNumber, this.currentDate.year), 80 daySelected: [] 81 }, 82 this.thise = this, 83 this.createCalendar(), 84 this.exam = null, 85 this.mounthSlider = null, 86 this.firstRun = !1, 87 $(document).on("change.daysListItem", "#" + t + " .daysListItem input", this.daysListItemClick.bind(this)), 88 $(document).on("click.yearsListItem", "#" + t + " .yearsListItem", this.yearsListItemClick.bind(this)), 89 $(document).on("click.monthsListItem", "#" + t + " .monthsListItem", this.monthsListItemClick.bind(this)), 90 $(document).on("mouseenter.monthsListItem", "#" + t + " .daysListItem", this.mouseenter.bind(this)), 91 $(document).on("mousedown.monthsListItem", "#" + t + " .daysListItem", this.mousedown.bind(this)), 92 $(document).on("mouseup.monthsListItem", this.mouseup.bind(this)) 93 } 94 return _createClass(e, [{ 95 key: "initErrorTimer", 96 value: function() { 97 clearTimeout(this.errorTimer), 98 this.errorTimer = setTimeout(function() { 99 $("#calendar .error").removeClass("error") 100 }, 1e3) 101 } 102 }, { 103 key: "mouseenter", 104 value: function(t) { 105 if (this.mouseDown) { 106 var e = this; 107 this.resetAllSelectedDays(); 108 var r = this.parent.find("input[value='".concat(this.mouseDownDate, "']")).closest(".daysListItem") 109 , a = $(t.target).closest(".daysListItem") 110 , o = l(a.index() - r.index()); 111 3 < o && (o = 3); 112 var n = function() { 113 return a.index() > r.index() ? [r.index(), r.index() + o + 1] : [r.index() - o, r.index() + 1] 114 }() 115 , i = this.parent.find(".daysListItem").slice(n[0], n[1]); 116 i.each(function() { 117 var t = $(this).find("input").val(); 118 $(this).find("input").prop("checked", !0), 119 $(this).addClass("active"), 120 e.current.daySelected.push(t) 121 }), 122 this.mouseDownRange = !0, 123 this.selectDate() 124 } 125 } 126 }, { 127 key: "mousedown", 128 value: function(t) { 129 this.mouseDown = !0, 130 this.mouseDownDate = t.target.closest(".daysListItem").querySelector("input").value 131 } 132 }, { 133 key: "mouseup", 134 value: function() { 135 this.mouseDown && (this.mouseDown = !1, 136 this.mouseDownRange = !1) 137 } 138 }, { 139 key: "resetAllSelectedDays", 140 value: function() { 141 this.current.daySelected = [], 142 this.parent.find(".daysListItem").removeClass("active").find("input").each(function() { 143 $(this).prop("checked", "") 144 }), 145 this.selectDate() 146 } 147 }, { 148 key: "getDiffDays", 149 value: function() { 150 var e = Math.ceil 151 , t = l(new Date(this.current.daySelected[this.current.daySelected.length - 1].replace(/-/g, "/")) - new Date(this.current.daySelected[0].replace(/-/g, "/"))) 152 , r = e(t / 86400000); 153 return r 154 } 155 }, { 156 key: "getDiffMonth", 157 value: function(e, t) { 158 var l; 159 return l = 12 * (t.getFullYear() - e.getFullYear()), 160 l -= e.getMonth(), 161 l += t.getMonth(), 162 0 >= l ? 0 : l 163 } 164 }, { 165 key: "daysListItemClick", 166 value: function(l, e) { 167 var r = new Date($(l.target).data("day")); 168 if (r < this.dateNow) 169 return $(l.target).closest(".daysListItem").addClass("error"), 170 this.initErrorTimer(), 171 !1; 172 if (e) { 173 var a = this.parent.find("input[value='".concat(e, "']")); 174 a.prop("checked", !0) 175 } 176 var o = e ? this.parent.find("input[value='".concat(e, "']")) : $(l.currentTarget) 177 , n = o.prop("checked") 178 , i = o.val(); 179 o.closest(".daysListItem")[n ? "addClass" : "removeClass"]("active"); 180 var s; 181 n ? !this.current.daySelected.includes(i) && this.current.daySelected.push(i) : (s = this.current.daySelected.indexOf(i), 182 0 <= s && this.current.daySelected.splice(s, 1)), 183 this.current.daySelected = this.current.daySelected.sort(function(e, t) { 184 return new Date(e.replace(/-/g, "/")).getTime() - new Date(t.replace(/-/g, "/")).getTime() 185 }); 186 var d = this.getDiffDays(); 187 if (1 <= d) 188 this.resetAllSelectedDays(), 189 n && (this.current.daySelected.includes(i) || this.current.daySelected.push(i), 190 o.closest(".daysListItem").addClass("active")); 191 else { 192 var c = this.current.daySelected[0].replace(/-/g, "/") 193 , u = this.current.daySelected[this.current.daySelected.length - 1].replace(/-/g, "/"); 194 if (n) { 195 if (1 < this.current.daySelected.length) { 196 for (var p = 0; p < d - 1; p++) { 197 var h = new Date(c) 198 , m = this.current.year + "-" + (this.current.month + 1) + "-" + (h.getDate() + p + 1); 199 this.current.daySelected.includes(m) || this.current.daySelected.push(m); 200 var y = this.parent.find(".daysListItem input[value=".concat(m, "]")); 201 y.prop("checked", "checked"), 202 y.closest(".daysListItem").addClass("active") 203 } 204 this.current.daySelected = this.current.daySelected.sort(function(e, t) { 205 return new Date(e.replace(/-/g, "/")).getTime() - new Date(t.replace(/-/g, "/")).getTime() 206 }) 207 } 208 } else if (0 < s && s < this.current.daySelected.length) { 209 var f = _toConsumableArray(this.current.daySelected); 210 this.resetAllSelectedDays(); 211 var g; 212 g = s > t(f.length / 2) ? f[f.length - 1] : f[0], 213 this.current.daySelected.includes(g) || this.current.daySelected.push(g); 214 var v = this.parent.find(".daysListItem input[value=".concat(g, "]")); 215 v.prop("checked", "checked"), 216 v.closest(".daysListItem").addClass("active") 217 } 218 } 219 this.selectDate() 220 } 221 }, {
222 key: "selectDate", 223 value: function() { 224 var e, t = this.parent.next().find("#selectDate span"), l = this.current.daySelected[0], r = this.current.daySelected[this.current.daySelected.length - 1]; 225 if (1 < this.current.daySelected.length) { 226 var a = l.split("-"); 227 e = a[a.length - 1] + " - " + r.split("-").reverse().join(".") 228 } else 229 e = 1 == this.current.daySelected.length ? r.split("-").reverse().join(".") : t.attr("data-text"); 230 t.html(e) 231 } 232 }, { 233 key: "monthsListItemClick", 234 value: function(t) { 235 var e = $(t.currentTarget); 236 if (e.data("index") < this.currentDate.monthNumber && this.current.year <= this.currentDate.year) 237 return $(t.target).closest(".monthsListItem").addClass("error"), 238 this.initErrorTimer(), 239 !1; 240 var l = parseInt(e.attr("data-index")); 241 l != this.current.month && (this.current.month = l, 242 this.createCalendar(l, this.currentDate.year)) 243 } 244 }, { 245 key: "yearsListItemClick", 246 value: function(t) { 247 var e = $(t.currentTarget) 248 , l = parseInt(e.attr("data-val")); 249 if (l != this.current.year) { 250 this.current.year = l; 251 var r = this.current.month; 252 this.current.year <= this.currentDate.year && r < this.currentDate.monthNumber && (r = this.currentDate.monthNumber), 253 this.createCalendar(r, l) 254 } 255 } 256 }, { 257 key: "createCalendar", 258 value: function() { 259 var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : this.currentDate.monthNumber 260 , t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : this.currentDate.year; 261 this.current.month = e, 262 this.current.countDays = this.getDaysInMonth(e + 1, t), 263 this.resetAllSelectedDays(), 264 this.initYears(), 265 this.initMonths(), 266 this.initDays() 267 } 268 }, { 269 key: "getDaysInMonth", 270 value: function(e, t) { 271 return new Date(t,e,0).getDate() 272 } 273 }, { 274 key: "getDate", 275 value: function() { 276 var e = new Date; 277 return { 278 year: e.getUTCFullYear(), 279 dayNumber: e.getUTCDate(), 280 monthNumber: e.getUTCMonth() 281 } 282 } 283 }, { 284 key: "initYears", 285 value: function() { 286 for (var e, t = "", l = 0; l < this.countYears; l++) 287 e = this.currentDate.year + l, 288 t += "<div class=\"yearsListItem".concat(e == this.current.year ? " active" : "", " swiper-slide\" data-index=\"").concat(l, "\" data-val=\"").concat(e, "\">").concat(e, "</div>"); 289 this.parent.find(".yearsList .swiper-wrapper").html(t) 290 } 291 }, { 292 key: "initMonths", 293 value: function() { 294 null !== this.mounthSlider && void 0 !== this.mounthSlider && (this.mounthSlider.destroy(!0, !0), 295 this.mounthSlider = null); 296 for (var e = "", t = 0; 12 > t; t++) 297 e += "<div class=\"monthsListItem".concat(t == this.current.month ? " active" : "", " swiper-slide\" data-index=\"").concat(t, "\" data-val=\"").concat(this.monthsList[t], "\">").concat(this.monthsList[t], "</div>"); 298 this.parent.find(".monthsList .swiper-wrapper").html(e), 299 this.mounthSlider = calendarsMounthSlider() 300 } 301 }, { 302 key: "initDays", 303 value: function() { 304 var e = this; 305 null !== this.exam && void 0 !== this.exam && (this.exam.destroy(!0, !0), 306 this.exam = null); 307 for (var t = "", l = !1, r = new Date(this.current.year,this.current.month,1), a = 0; a < this.current.countDays; a++) { 308 var o = new Date(this.current.year,this.current.month,a + 1) 309 , n = this.current.year + "-" + (this.current.month + 1) + "-" + o.getDate() 310 , i = viewedDates.includes(n); 311 i && (l = !0), 312 t += "<div class=\"daysListItem".concat(i ? " viewed" : "", " swiper-slide\" data-index=\"").concat(a, "\">\n <label>\n <input type=\"checkbox\" name=\"day\" data-day=\"").concat(o, "\" value=\"").concat(n, "\">
312\n <span class='number'>").concat(o.getDate(), "</span>\n <span class='name'>").concat(this.daysPrefix[o.getDay()], "</span>\n </label>\n </div>") 313 } 314 this.parent.find(".daysList .swiper-wrapper").html(t), 315 setTimeout(function() { 316 e.exam = calendarsDaySlider(), 317 e.exam.slideTo(0, 300, function() { 318 console.log("swipe ----- to 0") 319 }) 320 }, 400) 321 } 322 }, { 323 key: "destroy", 324 value: function() { 325 $(document).off("change.daysListItem"), 326 $(document).off("click.yearsListItem") 327 } 328 }, { 329 key: "checkSelected", 330 value: function() { 331 var e = this 332 , t = !1; 333 return this.current.daySelected.length ? (clearTimeout(this.timer), 334 this.parent.closest("#packagesSidebar").find("#selectDate").removeClass("error")) : (t = !0, 335 clearTimeout(this.timer), 336 this.parent.closest("#packagesSidebar").find("#selectDate").addClass("error"), 337 this.timer = setTimeout(function() { 338 e.parent.closest("#packagesSidebar").find("#selectDate").removeClass("error") 339 }, 3e3)), 340 t 341 } 342 }, { 343 key: "getData", 344 value: function() { 345 var e = this.current 346 , t = e.daySelected 347 , l = e.month 348 , r = e.year; 349 return { 350 daySelected: t, 351 month: l, 352 year: r 353 } 354 } 355 }, { 356 key: "click", 357 value: function(t) { 358 $(t.target).closest(".yearsListItem").length || $(t.target).closest(".packagesSidebar").length || $(t.target).closest(".headerSteps").length || $(t.target).hasClass("monthsListItem") || showHideCalendar(!1) 359 } 360 }]), 361 e 362}(); 363$(document).ready(function() { 364 $("#calendar").length 365}); 366function get_responsive(e) { 367 var t, l = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : $(window).innerWidth(), r = !1, a = e.slice(); 368 return a.push(99999999), 369 $.each(a, function(e, o) { 370 return !1 !== r && l <= a[e] && l > r ? (t = e - 1, 371 !1) : void (r = o) 372 }), 373 a[t] 374} 375var responsiveNow, responsiveSteps = [0, 540, 991]; 376function check_resize() { 377 responsiveNow = get_responsive(responsiveSteps), 378 check_resizeDo(responsiveNow), 379 $(window).resize(function() { 380 responsiveNow != get_responsive(responsiveSteps) && (responsiveNow = get_responsive(responsiveSteps), 381 check_resizeDo(responsiveNow)) 382 }) 383} 384function check_resizeDo(e) { 385 switch (e) { 386 case 0: 387 move_to_tablet(); 388 break; 389 case 540: 390 move_to_tablet(); 391 break; 392 case 991: 393 move_to_desktop(); 394 break; 395 default: 396 } 397} 398function toggleMobileMenu() { 399 // Guard clause - exit if menu access is blocked 400 if (!menu_btn_access) return; 401 402 const $menuBtn = $(".menu-btn"); 403 const $headerMenu = $(".header-menu-out"); 404 const $wrapper = $(".wrapper"); 405 const ANIMATION_DURATION = 300; 406 407 // Disable menu access during animation 408 menu_btn_access = false; 409 410 // Toggle menu button state 411 $menuBtn.toggleClass("active"); 412 413 // Handle menu open/close states 414 const isMenuOpen = $menuBtn.hasClass("active"); 415 $headerMenu.toggleClass("active", isMenuOpen); 416 $wrapper.toggleClass("menu-open", isMenuOpen); 417 hold_scroll_page(isMenuOpen); 418 419 // Re-enable menu access after animation 420 setTimeout(() => { 421 menu_btn_access = true; 422 }, ANIMATION_DURATION); 423} 424// todo: remove temp dev url "symbool/" 425function get_photo_galleries() { 426 $('.b-main-look').css('opacity', '0.3'); 427 $.ajax({ 428 url: '/wp-admin/admin-ajax.php', 429 type: 'POST', 430 data: { 'action': 'get_photo_galleries_ajax'}, 431 dataType: 'html', 432 processData: true, 433 contentType : undefined, 434 success: function (html) { 435 if (html) { 436 $('.b-main-look .look-box').html(html); 437 $('.b-main-look .look-box').removeClass('look-v-box'); 438 $('.b-main-look .look-box').removeClass('planning'); 439 setTimeout(function() { testWebP(testWebpCallFunc); }, 500); 440 } else { 441 console.log('Error!'); 442 } 443 } 444 }); 445 $('.b-main-look').css('opacity', '1'); 446 $('.gallery').removeClass('video-gallery').addClass('photo-gallery'); 447} 448 449function get_video_galleries() { 450 $('.b-main-look').css('opacity', '0.3'); 451 $.ajax({ 452 url: '/wp-admin/admin-ajax.php', 453 type: 'POST', 454 data: { 'action': 'get_video_galleries_ajax' }, 455 dataType: 'html', 456 processData: true, 457 contentType : undefined, 458 success: function (html) { 459 if (html) { 460 $('.b-main-look .look-box').html(html); 461 $('.b-main-look .look-box').addClass('look-v-box'); 462 $('.b-main-look .look-box').removeClass('planning'); 463 setTimeout(function() { testWebP(testWebpCallFunc); }, 500); 464 } else { 465 console.log('Error!'); 466 } 467 } 468 }); 469 $('.b-main-look').css('opacity', '1'); 470 $('.gallery').removeClass('photo-gallery').addClass('video-gallery'); 471}
472var cursor, cursorFirstMove = !1, cursorPos = { 473 x: 0, 474 y: 0 475}, customCursor = !0; 476function onDocumentMouseMove(e) { 477 cursorPos.x = e.clientX, 478 cursorPos.y = e.clientY, 479 cursorFirstMove || (cursorFirstMove = !0, 480 $("#cursor").show(0).fadeTo(250, 1), 481 TweenMax.set(cursor, { 482 left: e.clientX, 483 top: e.clientY 484 })); 485 TweenMax.to(cursor, .1, { 486 left: e.clientX, 487 top: e.clientY, 488 ease: Power2.easeOut 489 }) 490} 491var cursorElems = [".look-box .item a"] 492 , cursorLogos = [".drag"] 493 , shiftHoverEl = function(t, e) { 494 var l = t.offsetX 495 , r = t.offsetY 496 , a = e.innerWidth() 497 , o = e.innerHeight(); 498 TweenMax.to(e, .5, { 499 x: (l / a - .5) * 14, 500 y: (r / o - .5) * 14, 501 ease: Power1.out 502 }) 503}; 504$(document).ready(function() { 505 mobile || tablet || !/*!isIpad &&*/ 506 customCursor || (cursor = $("#cursor"), 507 cursor.length || ($("body").append("<div id=\"cursor\" class=\"is-big\"></div>"), 508 cursor = $("#cursor")), 509 document.addEventListener("mousemove", onDocumentMouseMove, !1), 510 $(document).on("mouseenter", cursorElems.join(", "), function() { 511 $("#cursor").addClass("hover") 512 }), 513 $(document).on("mouseleave", cursorElems.join(", "), function() { 514 $("#cursor").removeClass("hover") 515 })) 516}); 517function iPhoneVersion() { 518 var e = window.screen.height 519 , t = window.screen.width; 520 if (414 === t && 896 === e) 521 return "Xmax-Xr"; 522 return 375 === t && 812 === e ? "X-Xs" : 320 === t && 480 === e ? "4" : 375 === t && 667 === e ? "6" : 414 === t && 736 === e ? "6+" : 320 === t && 568 === e ? "5" : 480 >= e ? "2-3" : "none" 523} 524function isIphone() { 525 return !!navigator.userAgent.match(/iPhone/i) 526} 527isIphone() && $("body").addClass("iphone_model_" + iPhoneVersion()); 528function fadeSite() { 529 $(".mainPage").length ? fadeMainPage() : fadeDefaultPage() 530} 531function fadeDefaultPage() { 532 animateFromTo("#header, .wrapper", 2 * timeShowHide / 1e3, {}, { 533 opacity: 1, 534 ease: Power2.easeOut 535 }), 536 $(".page404").length && fade404Page() 537} 538function fadeMainPage() { 539 $("#header, .wrapper").fadeTo(0, 1); 540 var e = 2 541 , t = Power2.easeOut 542 , l = titleTextWrapScrolledBlock.find(".titleText").first(); 543 animateFromTo(l, e, { 544 opacity: 0, 545 y: -100, 546 z: -50 547 }, { 548 opacity: 1, 549 y: 0, 550 z: 0, 551 ease: t 552 }), 553 animateFromTo("#header, #mainPageTopBlock", e / 2, { 554 opacity: 0, 555 y: -100 556 }, { 557 opacity: 1, 558 y: 0, 559 ease: t 560 }, .75 * e) 561} 562function animateFromTo(e, t, l, r) { 563 var a = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0; 564 TweenMax.fromTo(e, t, l, r).delay(a) 565} 566var ajaxCalcAccess = !0 567 , arr_timers_form_input = [] 568 , arr_timers_form_textarea = [] 569 , submitError = !1; 570function createError(e) { 571 create_timer(e), 572 e.closest(".with_line").addClass("error"), 573 e.closest(".with_line").find(".error_text").fadeIn(250) 574} 575function create_timer(e) { 576 var t = e[0].tagName 577 , l = $("form input").index(e) 578 , r = "INPUT" == t ? arr_timers_form_input[l] : arr_timers_form_textarea[l]; 579 clearTimeout(r), 580 arr_timers_form_input[l] = setTimeout(function() { 581 e.parent().removeClass("error"), 582 e.parent().find(".error_text").fadeOut(300) 583 }, 3e3) 584} 585function scrollToErrorInput() { 586 var e, t; 587 $(this).closest(".popup_block").length ? (e = $(this).closest("label").position().top, 588 t = $(".popup_block:visible .popupContent").scrollTop(), 589 (e < t + $("header").innerHeight() || e > t + window.innerHeight) && scrollTo(".popup_block:visible .popupContent", e, .5)) : (e = $(this).closest("label").offset().top, 590 t = $(window).scrollTop(), 591 (e < t + $("header").innerHeight() || e > t + window.innerHeight) && scrollTo("body, html", e - $("header").innerHeight() - 50)) 592} 593var passwd1, passwd2, regNumbers = /\d/gi, regNotNumbers = /\D/gi, regLatin = /[a-z]/gi, regСyrillic = /[а-ÑÑÑÑÒ\s]/gi, regNotCyrText = /[^$а-ÑÑÑÑÒ0-9_-\s]/gi, regNotCyrText2 = /[^$а-ÑÑÑÑÒ\s]/gi, regLatCyrText = /[^$a-zа-ÑÑÑÑÒ'-\s]/gi, regCyrText = /[^$а-ÑÑÑÑÒ'-\s]/gi, regLatCyrTextNumb = /[^$a-zа-ÑÑÑÑÒ0-9'-\s]/gi, regPhone = /[^$0-9(+)-\s]/gi, regWebsite = /(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,63}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?/; 594$(".contact-form").submit(function(t) { 595 t.preventDefault(); 596 var e = $(this) 597 , l = $(this); 598 submitError = !1, 599 l.find(".error").removeClass("error"), 600 l.find(".error_text").remove(), 601 l.find("input, textarea").each(function() { 602 if ("" == $(this).val() && $(this).prop("required") && errorDo.call($(this), "Required"), 603 "email" == $(this).attr("type") && $(this).prop("required")) { 604 var e = $(this).val() 605 , t = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/; 606 e && t.test(e) || (e.length ? errorDo.call($(this), "Incorrect email") : errorDo.call($(this), "Required")) 607 } 608 if (("first_name" == $(this).attr("name") || "last_name" == $(this).attr("name")) && "" == !$(this).val() && (2 > $(this).val().length && errorDo.call($(this), "At least 3 letters"), 609 /\d/gi.test($(this).val().replace(regNotNumbers, "")) && errorDo.call($(this), "Only letters")), 610 "companyWebsite" != $(this).attr("name") || "" != !$(this).val() || regWebsite.test($(this).val()) || errorDo.call($(this), "Invalid address"), 611 "date" == $(this).attr("type") && $(this).prop("required")) { 612 var l = $(this).val() 613 , r = new Date 614 , a = r.getFullYear() 615 , o = r.getMonth() + 1; 616 o = 10 > o ? "0" + o : o; 617 var n = r.getDate(); 618 n = 10 > n ? "0" + n : n; 619 var i = "".concat(a, "-").concat(o, "-").concat(n); 620 console.log(i), 621 console.log("data: " + l + "data now:" + i), 622 l < i && (console.log(l, l),
623 errorDo.call($(this), "Incorrect date")) 624 } 625 if ("tel" == $(this).attr("type")) { 626 var s = $(this).val() 627 , d = s.replace(/\D/g, "") 628 , c = d.length; 629 10 > c && errorDo.call($(this), "Minimum 10 digits"), 630 "" == $(this).val() && $(this).prop("required") && errorDo.call($(this), "Required") 631 } 632 "password" == $(this).attr("name") && $(this).prop("required") && ("" == $(this).val() && $(this).prop("required") ? errorDo.call($(this), "Required") : passwd1 = $(this).val()), 633 "repeat_password" == $(this).attr("name") && $(this).prop("required") && (passwd2 = $(this).val(), 634 "" == $(this).val() && $(this).prop("required") && errorDo.call($(this), "Required"), 635 passwd1 != passwd2 && errorDo.call($(this), "Incrorrect")) 636 }), 637 l.find("textarea").each(function() { 638 "" == $(this).val() && $(this).prop("required") && errorDo.call($(this), "Required") 639 }), 640 l.find("select").each(function() { 641 "" == $(this).val() && $(this).prop("required") && errorDo.call($(this), "Required") 642 }); 643 var r = l.find("input[name=agree]"); 644 if (r.length && !r.prop("checked") && errorDoAgree.call(r, "Required"), 645 !submitError) { 646 var a = l.serialize(); 647 successForm(a, this) 648 } 649 return !1 650}); 651function errorDo(e) { 652 $(this).nextAll(".error_text").remove(), 653 $(this).after("<span class=\"error_text\">" + e + "</span>"), 654 submitError || scrollToErrorInput.call($(this)), 655 submitError = !0, 656 createError($(this)) 657} 658function errorDoAgree(e) { 659 $(this).nextAll(".error_text").remove(), 660 $(this).next().after("<span class=\"error_text\">" + e + "</span>"), 661 submitError || scrollToErrorInput.call($(this)), 662 submitError = !0, 663 createError($(this)) 664} 665function successForm() {} 666function unique(e) { 667 var t = [] 668 , l = !0 669 , r = !1 670 , a = void 0; 671 try { 672 for (var o, n, i = e[Symbol.iterator](); !(l = (o = i.next()).done); l = !0) 673 n = o.value, 674 t.includes(n) || t.push(n) 675 } catch (e) { 676 r = !0, 677 a = e 678 } finally { 679 try { 680 l || null == i["return"] || i["return"]() 681 } finally { 682 if (r) 683 throw a 684 } 685 } 686 return t 687} 688$(document).ready(function() { 689 $(".chzn-select").chosen({ 690 width: "100%", 691 disable_search: !0 692 }), 693 $(".form-style input[name='agree'], .download-product-form input[name='agree']").on("change", function() { 694 var e = $(this).prop("checked") 695 , t = $(this).closest("form") 696 , l = t.find("input[name='agree']") 697 , r = t.find("button"); 698 l.prop("checked", e ? "checked" : ""), 699 r[e ? "removeClass" : "addClass"]("disabled") 700 }) 701}); 702function testWebP(e) { 703 var t = new Image; 704 t.onload = t.onerror = function() { 705 e(2 == t.height) 706 } 707 , 708 t.src = "data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA" 709} 710function changeImgSrc(e) { 711 e.attr("used-webp", !0), 712 e.attr("data-src-default", e.data("src")), 713 e[0].hasAttribute("data-webp") && 0 < e.data("webp").length && e.attr("data-src", e.data("webp")); 714 e[0].hasAttribute("data-webp-retina") && 0 < e.data("webp-retina").length && e.attr("data-retina", e.data("webp-retina")) 715} 716function twenty() { 717 $(".twentytwenty-container").twentytwenty({ 718 default_offset_pct: .5, 719 orientation: "horizontal", 720 no_overlay: !0, 721 move_slider_on_hover: !1, 722 move_with_handle_only: !1, 723 click_to_move: !0 724 }) 725} 726function testWebpCallFunc(e) { 727 $(".lazyWebp:not(.init)").lazy({ 728 visibleOnly: !0, 729 beforeLoad: function(t) { 730 e && changeImgSrc(t), 731 t.addClass("init"), 732 t.hasClass("init") && t.parent().parent().hasClass("item") && t.parent("a").parent(".item").addClass("loaded") 733 }, 734 onError: function(t) { 735 e && "true" == t.attr("used-webp") && (console.log("error load webp image, src =", "\"" + t.attr("data-src") + "\""), 736 t.attr("src", t.attr("data-src-default"))) 737 }, 738 afterLoad: function(e) { 739 $(e).css({ 740 visibility: "visible" 741 }).fadeTo(250, 1), 742 document.getElementById("photo-box-list") && createGalleryGrid() 743 } 744 }), 745 e && $(".swiper-container .swiper-lazy.webp").each(function() { 746 changeImgSrc($(this)) 747 }), 748 initSwiperSliders(), 749 setTimeout(function() { 750 $(".b-main-marquee .lazyWebp:not(.load)").each(function() { 751 e && changeImgSrc($(this)), 752 $(this).attr("src", $(this).attr("data-src")).addClass("load init") 753 }) 754 }, 1e3), 755 $(".b-main-marquee").length && setTimeout(function() { 756 setMarquee() 757 }, 2e3), 758 setTimeout(function() { 759 $(".b-non-wedding .lazyWebp:not(.load)").each(function() { 760 e && changeImgSrc($(this)), 761 $(this).attr("src", $(this).attr("data-src")).addClass("load init") 762 }) 763 }, 1e3), 764 $(".b-non-wedding").length && setTimeout(function() { 765 setMarqueeNoWedding() 766 }, 2e3), 767 setTimeout(function() { 768 $(".b-main-relax .lines .lazyWebp:not(.load)").each(function() { 769 e && changeImgSrc($(this)), 770 $(this).attr("src", $(this).attr("data-src")).addClass("load init") 771 }) 772 }, 1e3), 773 e && $(".b-before-after .lazyWebp").each(function() { 774 changeImgSrc($(this)), 775 $(this).attr("src", $(this).attr("data-src")) 776 }), 777 setTimeout(function() { 778 twenty() 779 }, 200) 780} 781$(document).ready(function() { 782 testWebP(testWebpCallFunc), 783 $(".lazy").lazy({ 784 afterLoad: function(e) { 785 $(e).css({ 786 visibility: "visible" 787 }), 788 $(e).hasClass("noFade") || $(e).fadeTo(250, 1) 789 } 790 }) 791}); 792var popup = { 793 hide_popup_timer: void 0, 794 shift: 100, 795 openModal: !1, 796 timeAnimation: .75, 797 ease: "Power3.easeInOut", 798 easeFast: "Power4.easeInOut", 799 show: function(e, t, l) { 800 var r = this; 801 $(".popup_bg").fadeIn(1 * animTime); 802 var a = $("div.popup_block").filter("." + e) 803 , o = a.hasClass("fullWidth"); 804 a.find(".popupContent").scrollTop(0); 805 var n = 0; 806 if (this.openModal) { 807 var i = $(".popup_block:visible") 808 , s = i.innerWidth(); 809 animateFromTo(i, this.timeAnimation / 2, {}, { 810 y: this.shift / 2, 811 opacity: 0, 812 ease: this.easeFast 813 }), 814 n = 1e3 * this.timeAnimation / 2 815 } 816 this.openCallBuck(e, a), 817 setTimeout(function() { 818 hold_scroll_page(!0), 819 $(".popup_block").removeAttr("style"), 820 $(l).is("a") && t.preventDefault(), 821 clearTimeout(r.hide_popup_timer), 822 a.css("height", ""), 823 a.find(".content_wrap_inner").scrollTop(0), 824 a.stop(!0).show(), 825 hideScrollBar(!0), 826 animateFromTo(a[0], r.timeAnimation, { 827 opacity: 0, 828 y: r.shift 829 }, { 830 opacity: 1, 831 y: 0, 832 ease: r.ease, 833 onComplete: function() { 834 "iframe" == e || "fullCalc" == e ? a.find(".logo").fadeTo(250, 1) : $("body").removeClass("showLogo"), 835 r.openModal = !0, 836 a.find(".content_wrap_inner, .popupWrap").scrollTop(0), 837 a.css("transform", "") 838 } 839 }) 840 }, n) 841 }, 842 hide: function(e) { 843 var t = this; 844 $("body").removeClass("showLogo"); 845 var l = $("div.popup_block").filter("." + e) 846 , r = l.length ? l : $(".popup_block:visible"); 847 r.find(".logo").fadeTo(250, 0); 848 var a = r.innerWidth()
849 , o = r.innerHeight() 850 , n = r.hasClass("fullWidth"); 851 (this.openModal || $(".popup_block:visible").length) && (setTimeout(function() { 852 $(".popup_bg").fadeOut(1 * animTime), 853 hideScrollBar(!1) 854 }, 1e3 * (this.timeAnimation / 2)), 855 animateFromTo(r[0], this.timeAnimation, {}, { 856 opacity: 0, 857 y: this.shift, 858 ease: this.ease, 859 onComplete: function() { 860 r.find(".content_wrap_inner, .popupWrap").scrollTop(0), 861 $(".popup_block").hide(), 862 hold_scroll_page(!1), 863 t.openModal = !1, 864 $(".popup_bg").css("z-index", ""), 865 $("header").css("z-index", "") 866 } 867 })); 868 this.closeCallBuck(r) 869 }, 870 openCallBuck: function(e, t) { 871 switch (e) { 872 case "loginPopup": 873 t.find(".authorizationForm").removeClass("forgotPasswordNow passwordSent"), 874 t.find(".forgotPasswordContent, .forgotDoneText").hide(0); 875 break; 876 default: 877 } 878 }, 879 closeCallBuck: function() {} 880}; 881function hold_all_scroll_page() { 882 var e = !!(0 < arguments.length && arguments[0] !== void 0) && arguments[0]; 883 e ? (window.addEventListener("wheel", holdScroll, { 884 passive: !1 885 }), 886 window.addEventListener("DOMMouseScroll", holdScroll, { 887 passive: !1 888 }), 889 document.addEventListener("touchmove", holdScroll, { 890 passive: !1 891 })) : (window.removeEventListener("wheel", holdScroll, { 892 passive: !1 893 }), 894 window.removeEventListener("DOMMouseScroll", holdScroll, { 895 passive: !1 896 }), 897 document.removeEventListener("touchmove", holdScroll, { 898 passive: !1 899 })) 900} 901function holdScroll(t) { 902 return t = t || window.event, 903 t.preventDefault && t.preventDefault(), 904 t.returnValue = !1, 905 !1 906} 907function hold_scroll_page() { 908 var e = !!(0 < arguments.length && arguments[0] !== void 0) && arguments[0]; 909 e ? (window.addEventListener("wheel", preventDefault, { 910 passive: !1 911 }), 912 window.addEventListener("DOMMouseScroll", preventDefault, { 913 passive: !1 914 }), 915 document.addEventListener("touchmove", preventDefault, { 916 passive: !1 917 })) : (window.removeEventListener("wheel", preventDefault, { 918 passive: !1 919 }), 920 window.removeEventListener("DOMMouseScroll", preventDefault, { 921 passive: !1 922 }), 923 document.removeEventListener("touchmove", preventDefault, { 924 passive: !1 925 })) 926} 927var ts; 928$(document).on("touchstart", function(t) { 929 ts = t.originalEvent.touches[0].clientY 930}); 931function preventDefault(t) { 932 t = t || window.event; 933 var l = $(t.target).closest(".header-menu-out").length ? $(t.target).closest(".header-menu-out") : $(t.target).closest(".mobile_row").length ? $(t.target).closest(".wrap") : $(t.target).closest(".menuMiddle").length ? $(t.target).closest(".menuMiddle") : $(t.target).closest(".searchContent").length ? $(t.target).closest(".searchContent") : $(t.target); 934 var r = $(t.target).closest(".popupContent, .mobile_row, .menuMiddle, .searchContent, .header-menu-out").length || $(t.target).hasClass(".popupContent, .header-menu-out"); 935 if (!r) 936 return t.preventDefault(), 937 t.returnValue = !1, 938 !1; 939 var a = t.deltaY || t.detail || t.wheelDelta; 940 if ("touchmove" == t.type) { 941 var o = t.changedTouches[0] 942 , n = parseInt(o.clientY); 943 ts < n - 5 ? a = -100 : ts > n + 5 && (a = 100) 944 } 945 0 >= a && 0 >= l[0].scrollTop && t.preventDefault(); 946 0 < a && 1 >= l[0].scrollHeight - l[0].clientHeight - l[0].scrollTop && t.preventDefault() 947} 948function hideScrollBar() { 949 var e = !(0 < arguments.length && arguments[0] !== void 0) || arguments[0]; 950 e ? ($("body, html").css("overflow", "hidden"), 951 $("html").css({ 952 paddingRight: getScrollbarWidth() 953 })) : ($("body, html").css("overflow", ""), 954 $("html").css({ 955 paddingRight: "" 956 })) 957} 958function calendarsDaySlider() { 959 return document.getElementById("calendar-popup") ? new Swiper(".daysList",{ 960 slidesPerView: "auto", 961 centerInsufficientSlides: !0, 962 observer: !0, 963 observeParents: !0, 964 spaceBetween: 0, 965 navigation: { 966 nextEl: ".swiper-field .swiper-button-next", 967 prevEl: ".swiper-field .swiper-button-prev" 968 } 969 }) : void 0 970} 971function calendarsMounthSlider() { 972 return document.getElementById("calendar-popup") ? new Swiper(".monthsList",{ 973 slidesPerView: "auto", 974 observer: !0, 975 observeParents: !0, 976 breakpoints: {} 977 }) : void 0 978} 979function calendarPopup() { 980 function e(e) { 981 return 10 > e ? "0".concat(e) : e 982 } 983 if (document.getElementById("calendar-popup") && document.getElementById("select-calendar-data")) { 984 var t = document.getElementById("calendar-popup") 985 , l = t.querySelector(".mock-input") 986 , r = document.getElementById("calendar") 987 , a = document.getElementById("select-calendar-data") 988 , o = t.querySelector("input") 989 , n = t.querySelector(".hover-text"); 990 l.addEventListener("click", function(t) { 991 t.preventDefault(), 992 t.stopPropagation(); 993 var e = 756 <= document.documentElement.offsetWidth; 994 e && popup.show("calendarPopup", t) 995 }), 996 a.addEventListener("click", function() { 997 var t = r.querySelector(".yearsList").querySelector(".active").textContent || null 998 , l = r.querySelector(".monthsList").querySelector(".active").dataset.index || null; 999 if (r.querySelector(".daysList").querySelector(".active")) { 1000 var a = r.querySelector(".daysList").querySelector(".active").querySelector(".number").textContent 1001 , i = "".concat(r.querySelector(".daysList").querySelector(".active").querySelector(".number").textContent).concat(10 > +l + 1 ? "0" + (+l + 1) : +l + 1).concat(t); 1002 if (l && t && a) { 1003 var s = e(a) 1004 , d = e(+l + 1 + ""); 1005 o.value = t + "-" + d + "-" + s, 1006 n.classList.add("up"), 1007 popup.hide("calendarPopup") 1008 } 1009 } 1010 }) 1011 } 1012} 1013$(window).resize(function() { 1014 window_width = $(window).innerWidth(), 1015 window_height = $(window).innerHeight(),
1016 viewportHeight() 1017}), 1018function rnd(e, t) { 1019 var l = Math.round 1020 , r = e - .5 + Math.random() * (t - e + 1); 1021 return r = l(r), 1022 r 1023} 1024function viewportHeight() { 1025 var e = .01 * window.innerHeight; 1026 document.documentElement.style.setProperty("--vh", e + "px") 1027} 1028function getCookie(name) { 1029 let matches = document.cookie.match(new RegExp( 1030 "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" 1031 )); 1032 return matches ? decodeURIComponent(matches[1]) : undefined; 1033} 1034$(document).ready(function() { 1035 var e = 0; 1036 $(window).scroll(function() { 1037 if ($(".line_after_header").hasClass("dontshowagain")) 1038 return !1; 1039 var t = $(window).scrollTop(); 1040 $(".b-packages").length ? 991 < $(window).innerWidth() ? (0 < t ? $(".line_after_header").slideUp() : $(".line_after_header").slideDown(), 1041 e = t) : 0 < t ? $(".line_after_header").slideUp() : !$(".b-packages").length && $(".line_after_header").slideDown() : (0 < t ? $(".line_after_header").slideUp() : $(".line_after_header").slideDown(), 1042 e = t) 1043 }), 1044 $(".b-galleries-top-new-block .b-main-marquee .marquee-wrap").on("click", ".marquee:nth-child(2) .item", function(t) { 1045 t.preventDefault(), 1046 $(".b-galleries-top-new-block .b-main-marquee .marquee-wrap .marquee:nth-child(1) .item").eq($(this).index()).addClass("test").trigger("click") 1047 }), 1048 $(".b-galleries-top-new-block .b-main-marquee .marquee-wrap").on("click", ".marquee:nth-child(3) .item", function(t) { 1049 t.preventDefault(), 1050 $(".b-galleries-top-new-block .b-main-marquee .marquee-wrap .marquee:nth-child(1) .item").eq($(this).index()).addClass("test").trigger("click") 1051 }), 1052 $(".close-line").on("click", function() { 1053 $(".line_after_header").slideUp().addClass("dontshowagain") 1054 }), 1055 $("ul.current").on("click", "label", function() { 1056 $("ul.drop").toggleClass("active") 1057 }), 1058 $("ul.drop").on("click", "label", function() { 1059 $("ul.drop").removeClass("active"), 1060 $("ul.current li").remove(), 1061 $(this).parent("li").clone().appendTo($("ul.current")), 1062 $("ul.current label input").remove() 1063 }), 1064 $(document).mouseup(function(t) { 1065 $("ul.current").is(t.target) || 0 !== $("ul.current").has(t.target).length || $("ul.drop .p-tooltip").is(t.target) || 0 !== $("ul.drop .p-tooltip").has(t.target).length || $("ul.drop").removeClass("active") 1066 }), 1067 viewportHeight(), 1068 $(".for-sticky-bb").stick_in_parent({ 1069 recalc_every: 1 1070 }), 1071 991 >= $(window).innerWidth() && $(".pack-head").stick_in_parent({ 1072 offset_top: $("header").innerHeight() - $(".line_after_header").innerHeight() - 10 1073 }), 1074 $(".customizable-link").on("click", function(t) { 1075 return t.preventDefault(), 1076 $("body,html").animate({ 1077 scrollTop: $(".p-addons").offset().top - 180 1078 }, 1e3), 1079 !1 1080 }), 1081 $(".p-addons-cards").length && $(".p-addons-card").each(function() { 1082 var e = $(this).find(".default-cont .p-addons-card-sett .left").clone(); 1083 e.prependTo($(this).find(".hidden-cont .p-addons-card-sett")) 1084 }), 1085 $(".default-cont .p-addons-card-sett > a").on("click", function() { 1086 $(this).parent().parent().next().addClass("active") 1087 }), 1088 $(".hidden-cont").on("click", ".p-addons-card-sett > a", function() { 1089 $(this).parent().parent().removeClass("active") 1090 }), 1091 // $(".b-main-create").length && $("header").addClass("blurBgMob"), 1092 $(".hasle-scroll").click(function(t) { 1093 return t.preventDefault(), 1094 document.querySelector(".b-before-after") ? ($("body,html").animate({ 1095 scrollTop: $(".b-before-after").offset().top - $("header").innerHeight() 1096 }, 1e3), 1097 !1) : document.querySelector(".what-palnner-do") ? ($("body,html").animate({ 1098 scrollTop: $(".what-palnner-do").offset().top - $("header").innerHeight() 1099 }, 1e3), 1100 !1) : void 0 1101 }), 1102 $(".scroll_to_add-one").click(function(t) { 1103 return t.preventDefault(), 1104 $("body,html").animate({ 1105 scrollTop: $("#ads_one").offset().top - $("header").innerHeight() 1106 }, 1e3), 1107 !1 1108 }), 1109 $(".price > button").click(function(t) { 1110 return t.preventDefault(), 1111 $("body,html").animate({ 1112 scrollTop: $(".b-contact-form").offset().top - $("header").innerHeight() 1113 }, 1e3), 1114 !1 1115 }), 1116 $(".red-scroll").click(function(t) { 1117 return t.preventDefault(), 1118 $("body,html").animate({ 1119 scrollTop: $(".b-before-after").offset().top - $("header").innerHeight() 1120 }, 1e3), 1121 !1 1122 }), 1123 $(".menu-btn").click(toggleMobileMenu); 1124 $(".scroll-bot-btn").click(function(e) { 1125 e.preventDefault(), 1126 scrollTo("body, html", $(".b-main-marquee").offset().top - $("header").outerHeight()) 1127 }), 1128 check_resize(), 1129 $("label.with_line input, label.with_line textarea, .with_hover_text input").focus(function() { 1130 $(this).parents("label").addClass("hover") 1131 }), 1132 $("label.with_line input, label.with_line textarea, .with_hover_text input").blur(function() { 1133 "" == $(this).val() && $(this).parents("label").removeClass("hover") 1134 }),
1135 aos_init(), 1136 setTimeout(function() { 1137 AOS.refreshHard() 1138 }, 1e3), 1139 setTimeout(function() { 1140 AOS.refreshHard() 1141 }, 1500), 1142 setTimeout(function() { 1143 AOS.refreshHard() 1144 }, 2e3), 1145 setTimeout(function() { 1146 AOS.refreshHard() 1147 }, 3e3), 1148 setTimeout(function() { 1149 AOS.refreshHard() 1150 }, 5e3), 1151 setTimeout(function() { 1152 AOS.refreshHard() 1153 }, 1e4), 1154 setTimeout(function() { 1155 AOS.refreshHard() 1156 }, 15e3), 1157 setTimeout(function() { 1158 AOS.refreshHard() 1159 }, 2e4) 1160}); 1161var windowLoad = !1; 1162function move_to_tablet() {} 1163function move_to_desktop() { 1164 hide_mob_menu(), 1165 "undefined" != typeof popup && popup.hide() 1166} 1167function prefix(e) { 1168 return 10 > e ? "0" + e : e 1169} 1170function show_mob_menu() { 1171 var e = 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : 500 1172 , t = 200; 1173 $("header .mobile_row nav li, header .bookDemo, header .lang").each(function() { 1174 $(this).css("transition-delay", t + "ms").attr("data-delay", t), 1175 t += 100 1176 }), 1177 hold_scroll_page(!0), 1178 $("header").addClass("show white"), 1179 setTimeout(function() { 1180 $("header").addClass("open") 1181 }, 50), 1182 setTimeout(function() { 1183 menu_btn_access = !0 1184 }, e) 1185} 1186function hide_mob_menu() { 1187 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : 500; 1188 hold_scroll_page(!1), 1189 $("header").removeClass("open white"), 1190 setTimeout(function() { 1191 $("header").removeClass("show"), 1192 menu_btn_access = !0, 1193 $("header nav li, header .tel_block").removeAttr("data-delay") 1194 }, 700), 1195 $(".menu_btn").removeClass("active") 1196} 1197function navClick(e) { 1198 $("body, html").animate({ 1199 scrollTop: $(".screen").eq(e).offset().top - $("header").innerHeight() 1200 }, 1e3), 1201 hide_mob_menu() 1202} 1203function getScrollbarWidth() { 1204 var e = document.createElement("div"); 1205 e.style.visibility = "hidden", 1206 e.style.overflow = "scroll", 1207 e.style.msOverflowStyle = "scrollbar", 1208 document.body.appendChild(e); 1209 var t = document.createElement("div"); 1210 e.appendChild(t); 1211 var l = e.offsetWidth - t.offsetWidth; 1212 return e.parentNode.removeChild(e), 1213 l 1214} 1215function showMoreNewsItemCard() { 1216 $(".newsGrid.main").append($(".newsGrid.hidden .newsItemCard")); 1217 var e = $(".newsGridBlock .newsGrid.main") 1218 , t = $(".newsGridBlock .newsGrid.hidden") 1219 , l = $(".newsGridBlock .loadMore .mainBtn"); 1220 return !l.hasClass("loading") && void (l.addClass("loading").attr("disabled", "disabled"), 1221 setTimeout(function() { 1222 var t = e.find(".newsItemCard").slice(0, 10).clone(); 1223 t.fadeTo(0, 0), 1224 e.append(t.fadeTo(150, 1)), 1225 l.removeClass("loading").removeAttr("disabled") 1226 }, 1e3)) 1227} 1228if (window.location.pathname.includes('expectations.php')) { 1229 window.scrollTo = function() {}; 1230} else { 1231 function scrollTo(e, t) { 1232 var l = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : 1; 1233 TweenMax.to(e, l, { 1234 scrollTop: t, 1235 ease: "Power2.easeInOut" 1236 }); 1237 } 1238} 1239var aosFadeArrDone = [".parallaxDotsItem:not(.custom)"]; 1240function aos_init() { 1241 setTimeout(function() { 1242 AOS.init({ 1243 duration: 500, 1244 once: !0, 1245 easing: "ease-out-quad", 1246 anchorPlacement: "top-bottom" 1247 }) 1248 }, 500) 1249} 1250function initPopupVideo() { 1251 var e = $("#video_html"); 1252 if (e.find("video").length) 1253 return $("#popupVideo")[0].play(), 1254 !1; 1255 var t = e.data("src") 1256 , l = e.data("poster") 1257 , r = "<video loop autoplay id=\"popupVideo\" controls poster=\"".concat(l, "\">\n <source src=\"").concat(t, "\" type='video/mp4'></source>\n </video>"); 1258 e.append(r), 1259 popupVideoInited = !0 1260} 1261function setDelayTransform(e) { 1262 var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : 300; 1263 $(e).each(function() { 1264 $(this).css("transition-delay", t + "ms").attr("data-delay", t), 1265 t += 100 1266 }) 1267} 1268function copyElements() { 1269 if (document.getElementById("append-content") && document.querySelector(".b-navigation")) { 1270 var e = document.querySelector(".b-navigation") 1271 , t = e.querySelector(".locations-info").cloneNode(!0) 1272 , l = e.querySelector(".shot-with").cloneNode(!0) 1273 , r = document.getElementById("append-content"); 1274 r.append(t, l) 1275 } 1276} 1277function fancyInitView() { 1278 document.querySelector("[data-fancybox=\"gallery\"]") && $("[data-fancybox=\"gallery\"]").fancybox({ 1279 loop: !1, 1280 hash: !1, 1281 infobar: !1, 1282 gutter: 50, 1283 buttons: ["close"], 1284 transitionEffect: "tube", 1285 btnTpl: { 1286 close: "<button data-fancybox-close class=\"fancybox-button fancybox-button--close\" title=\"{{CLOSE}}\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path opacity=\"0.6\" d=\"M10 8L16 2L14 4.76838e-07L8 6L2 0L0 2L6 8L0 14L2 16L8 10L14 16L16 14L10 8Z\" fill=\"white\"/></svg></button>", 1287 arrowLeft: "<button data-fancybox-prev class=\"fancybox-button fancybox-button--arrow_left\" title=\"{{PREV}}\"><div><svg width=\"10\" height=\"16\" viewBox=\"0 0 10 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M-0.000391006 8L8.39961 0L9.59961 1.14286L2.39961 8L9.59961 14.8571L8.39961 16L-0.000391006 8Z\" fill=\"white\"/></svg></div></button>", 1288 arrowRight: "<button data-fancybox-next class=\"fancybox-button fancybox-button--arrow_right\" title=\"{{NEXT}}\"><div><svg width=\"10\" height=\"16\" viewBox=\"0 0 10 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.6 8L1.2 0L0 1.14286L7.2 8L0 14.8571L1.2 16L9.6 8Z\" fill=\"white\"/></svg></div></button>" 1289 } 1290 }) 1291} 1292function fancyInitVideo() { 1293 document.querySelector("[data-fancybox-video=\"video\"]") && $("[data-fancybox-video=\"video\"]").fancybox({ 1294 width: 100, 1295 youtube: { 1296 autoplay: 0, 1297 showinfo: 0 1298 }, 1299 vimeo: { 1300 color: "000" 1301 }, 1302 afterShow: function() { 1303 $("#cursor").hide() 1304 }, 1305 afterClose: function() { 1306 $("#cursor").show() 1307 } 1308 }) 1309} 1310function fadeOut() { 1311 function e(e) { 1312 var t = e.getBoundingClientRect() 1313 , l = { 1314 top: window.pageYOffset + t.top, 1315 bot: window.pageYOffset + t.bottom, 1316 totalH: document.documentElement.clientHeight + window.pageYOffset, 1317 heightY: window.pageYOffset 1318 }; 1319 (l.top >= l.heightY && l.top <= l.totalH || l.bot >= l.heightY && l.bot <= l.totalH) && (e.classList.remove("hide"), 1320 $(e).fadeTo(1e3, 1), 1321 console.log(e.style.opacity)) 1322 } 1323 if (document.querySelector(".photo-item")) { 1324 var t = document.querySelectorAll(".photo-item"); 1325 window.dispatchEvent(new Event("scroll")), 1326 t.forEach(function(t) { 1327 e(t) 1328 }), 1329 window.addEventListener("scroll", function() { 1330 t.forEach(function(t) { 1331 t.classList.contains("hide") && e(t) 1332 }) 1333 }) 1334 } 1335} 1336var createGalleryGrid = function() { 1337 if (document.getElementById("photo-box-list") && document.querySelector(".photo-box")) { 1338 var e = document.querySelector(".photo-box") 1339 , t = new Masonry(e,{ 1340 itemSelector: ".photo-item", 1341 percentPosition: !0 1342 }); 1343 fadeOut() 1344 } 1345}; 1346function closeWatchVideoBlock() { 1347 if (document.getElementById("close-block") && document.getElementById("watch-video-block")) { 1348 var e = document.getElementById("close-block") 1349 , t = document.getElementById("watch-video-block"); 1350 e.addEventListener("click", function() { 1351 t.style.display = "none" 1352 }) 1353 } 1354} 1355function makeHeaderWhite() {} 1356function scrollDown() { 1357 if (document.getElementById("screen-down")) { 1358 var e = document.getElementById("screen-down"); 1359 e.addEventListener("click", function() { 1360 var t = +e.getBoundingClientRect().bottom; 1361 console.log(t), 1362 window.scrollBy({ 1363 top: t, 1364 behavior: "smooth" 1365 }) 1366 }) 1367 } 1368} 1369function openSearchField() { 1370 if (document.getElementById("serach-mobile-field")) { 1371 var t = document.getElementById("serach-mobile-field") 1372 , l = t.querySelector(".contact-form") 1373 , r = l.querySelector(".with_line"); 1374 t.addEventListener("click", function(l) { 1375 console.log(t), 1376 t.classList.contains("open-field") || (l.preventDefault(), 1377 t.classList.add("open-field")) 1378 }) 1379 } 1380} 1381function showplaceLocation() { 1382 function e() { 1383 function i() { 1384 var e = 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : 0; 1385 e >= l.length || setTimeout(function() { 1386 l[e].classList.add("show"), 1387 i(e + 1) 1388 }, 400) 1389 } 1390 r = t.getBoundingClientRect(), 1391 a = window.pageYOffset, 1392 o = window.pageYOffset + document.documentElement.clientHeight, 1393 r.top + window.pageYOffset <= o && r.bottom + window.pageYOffset >= a && (i(), 1394 window.removeEventListener("scroll", e)) 1395 } 1396 if (document.getElementById("in-location")) { 1397 var t = document.getElementById("in-location") 1398 , l = t.querySelectorAll(".place") 1399 , r = t.getBoundingClientRect() 1400 , a = window.pageYOffset 1401 , o = window.pageYOffset + document.documentElement.clientHeight; 1402 window.addEventListener("scroll", e) 1403 } 1404} 1405function toggleFAQ() { 1406 if (document.getElementById("FAQ-list")) { 1407 var e = document.getElementById("FAQ-list") 1408 , t = e.querySelectorAll(".faq-item"); 1409 t.forEach(function(e) { 1410 e.addEventListener("click", function() { 1411 return e.classList.contains("active") ? (e.classList.remove("active"), 1412 $(e).children(".answer").stop(!0).slideUp(250), 1413 !1) : void (t.forEach(function(e) { 1414 e.classList.contains("active") && (e.classList.remove("active"), 1415 $(e).children(".answer").stop(!0).slideUp(250)) 1416 }), 1417 e.classList.add("active"), 1418 $(e).children(".answer").stop(!0).slideDown(250)) 1419 }) 1420 }) 1421 } 1422} 1423function priceSlider() { 1424 if (document.getElementById("pricing-field") && document.getElementById("pricing-conrol-panel")) { 1425 var e = document.getElementById("pricing-field") 1426 , t = document.getElementById("pricing-conrol-panel") 1427 , l = t.children 1428 , r = new Swiper(".pricing-field",{ 1429 slidesPerView: 1, 1430 direction: "horizontal", 1431 spaceBetween: 40, 1432 initialSlide: 1, 1433 autoHeight: true, 1434 noSwipingSelector: 'a, button, div.p-tooltip, div.select-date-price', 1435 navigation: { 1436 nextEl: "#pricing-conrol-panel .swiper-button-next", 1437 prevEl: "#pricing-conrol-panel .swiper-button-prev" 1438 }, 1439 breakpoints: { 1440 991: { 1441 navigation: !1, 1442 pagination: !1 1443 } 1444 } 1445 }); 1446 r.on("activeIndexChange", function() { 1447 l[this.previousIndex].classList.remove("active"), 1448 l[this.activeIndex].focus(), 1449 l[this.activeIndex].classList.add("active") 1450 }), 1451 r.on("resize", function() {
1452 r.update(), 1453 console.log("resize") 1454 }), 1455 Array.from(l).forEach(function(e, t) { 1456 e.addEventListener("click", function() { 1457 r.slideTo(t), 1458 991 >= $(window).innerWidth() ? $("html, body").animate({ 1459 scrollTop: $(".packages-field").offset().top - $("header").innerHeight() + 5 1460 }, 600) : $("html, body").animate({ 1461 scrollTop: $(".packages-field").offset().top - $("header").innerHeight() 1462 }, 600) 1463 }) 1464 }) 1465 } 1466} 1467function scrollMAgic() { 1468 if (document.getElementById("trigger-schene")) { 1469 var e = document.getElementById("trigger-schene") 1470 , t = e.querySelectorAll(".block") 1471 , l = e.querySelector(".title") 1472 , r = e.querySelectorAll(".emodzi") 1473 , a = new ScrollMagic.Controller 1474 , o = TweenMax.to(l, .5, { 1475 css: { 1476 scale: 1, 1477 y: 0, 1478 opacity: 1 1479 }, 1480 ease: Linear.easeNone 1481 }); 1482 new ScrollMagic.Scene({ 1483 triggerElement: l, 1484 offset: -100, 1485 duration: 300, 1486 triggerHook: .9 1487 }).setTween(o).addTo(a), 1488 r.forEach(function(e) { 1489 var t = TweenMax.to(e, .5, { 1490 css: { 1491 x: 0, 1492 y: 0, 1493 scale: 1, 1494 opacity: .4 1495 }, 1496 ease: Linear.easeNone 1497 }); 1498 new ScrollMagic.Scene({ 1499 triggerElement: e, 1500 offset: -100, 1501 duration: 300, 1502 triggerHook: .8 1503 }).setTween(t).addTo(a) 1504 }), 1505 t.forEach(function(t) { 1506 var l = TweenMax.to(t, .5, { 1507 css: { 1508 scale: 1, 1509 y: 0, 1510 opacity: .4 1511 }, 1512 ease: Linear.easeNone 1513 }); 1514 new ScrollMagic.Scene({ 1515 triggerElement: t, 1516 offset: -100, 1517 duration: 300, 1518 triggerHook: .8 1519 }).setTween(l).on("progress", function(l) { 1520 1 == l.progress ? t.classList.add("active") : t.classList.remove("active") 1521 }).addTo(a) 1522 }) 1523 } 1524} 1525function offAOSinFuter() { 1526 if (document.querySelector("[off-foter-aos=\"true\"]") && document.querySelector(".b-contact-form")) { 1527 var e = document.querySelector(".b-contact-form") 1528 , t = e.querySelectorAll(".aos"); 1529 t.forEach(function(e) { 1530 e.classList.remove("aos"), 1531 e.removeAttribute("data-aos") 1532 }) 1533 } 1534} 1535function covarageMobArr() { 1536 if (document.querySelector(".coverage-mob-arr")) { 1537 var e = document.querySelector(".coverage") 1538 , t = e.querySelector(".line") 1539 , l = t.querySelectorAll(".item").length 1540 , r = t.querySelector(".item") 1541 , a = document.querySelector(".coverage-mob-arr"); 1542 a.addEventListener("click", function() { 1543 var e = t.scrollWidth 1544 , r = t.offsetWidth; 1545 t.scrollBy({ 1546 left: e / l, 1547 behavior: "smooth" 1548 }), 1549 setTimeout(function() { 1550 var l = t.scrollLeft 1551 , o = r + l; 1552 console.log(o, e), 1553 o >= e && a.classList.add("disabled") 1554 }, 200) 1555 }), 1556 t.addEventListener("scroll", function() { 1557 var e = t.scrollWidth 1558 , l = t.offsetWidth 1559 , r = t.scrollLeft 1560 , o = l + r; 1561 o >= e && a.classList.add("disabled"), 1562 o < e && a.classList.remove("disabled") 1563 }) 1564 } 1565} 1566function changeinputAttr() { 1567 if (document.getElementById("calendar-popup")) { 1568 var e = document.getElementById("calendar-popup") 1569 , t = e.querySelector("input") 1570 , l = document.documentElement.clientWidth 1571 , r = e.querySelector(".hover-text") 1572 , a = document.querySelector(".isSafari") || !1 1573 , o = e.querySelector("input").value; 1574 console.log(a, r, o), 1575 767 < l ? t.hasAttribute("type", "date") && (o ? r.classList.add("up") : r.classList.remove("up"), 1576 t.removeAttribute("type", "date"), 1577 t.setAttribute("type", "text")) : t.hasAttribute("type", "text") && (!a && r.classList.add("up"), 1578 t.removeAttribute("type", "text"), 1579 t.setAttribute("type", "date")), 1580 window.addEventListener("resize", function() { 1581 l = document.documentElement.clientWidth, 1582 o = e.querySelector("input").value, 1583 767 < l ? t.hasAttribute("type", "date") && (!o && r.classList.remove("up"), 1584 o && r.classList.add("up"), 1585 t.removeAttribute("type", "date"), 1586 t.setAttribute("type", "text")) : t.hasAttribute("type", "text") && (!a && r.classList.add("up"), 1587 o && r.classList.add("up"), 1588 t.removeAttribute("type", "text"), 1589 t.setAttribute("type", "date")) 1590 }) 1591 } 1592} 1593function changeHEaderScroll() { 1594 function e() { 1595 var e = window.pageYOffset; 1596 return e > n ? (t.classList.add("blurBg"), 1597 a && (t.classList.remove("white-theme-header"), 1598 o.forEach(function(e) { 1599 e.style.background = "white" 1600 }), 1601 l.innerHTML = "<svg width=\"125\" height=\"25\" viewBox=\"0 0 125 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 12C0 5.37258 5.25987 0 11.7483 0H12.2517C18.7401 0 24 5.37258 24 12C24 18.6274 18.7401 24 12.2517 24H11.7483C5.25987 24
16010 18.6274 0 12Z\" fill=\"url(#paint0_linear_5592_18247)\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.01835 6.08922C4.79988 5.71104 5.07293 5.23828 5.50983 5.23828H18.5953C19.0352 5.23828 19.3078 5.71673 19.0835 6.09487L18.0587 7.82252H20.1427C20.5777 7.82252 20.851 8.29164 20.6362 8.6698L14.1229 20.1405C13.9063 20.5219 13.3572 20.5239 13.1378 20.1442L11.9595 18.1045L10.746 20.1502C10.5227 20.5267 9.97501 20.5192 9.762 20.1368L3.37249 8.66574C3.16188 8.28763 3.43539 7.82252 3.86835 7.82252H6.01967L5.01835 6.08922ZM6.60227 8.83101H4.61933L10.2699 18.9755L11.3808 17.1027L6.60227 8.83101ZM11.971 16.1077L7.76734 8.83101H16.2875L11.971 16.1077ZM12.5498 17.1095L13.626 18.9725L19.3846 8.83101H17.4605L12.5498 17.1095ZM16.8857 7.82252H7.18474L6.27443 6.24677H17.8204L16.8857 7.82252Z\" fill=\"white\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M76.5819 1H80.2189V7.68482C81.2765 6.3685 82.7209 5.74906 84.4233 5.74906C88.0861 5.74906 90.1238 8.79466 90.1238 12.5887C90.1238 16.8474 87.725 19.7381 84.217 19.7381C82.4888 19.7381 81.0185 19.1187 80.0384 17.6991L80.0641 19.3768H76.5819V1ZM86.4353 12.6146C86.4353 10.1626 85.1972 8.56236 83.2884 8.56236C81.3281 8.56236 80.0899 10.1368 80.0899 12.6404C80.0899 15.2214 81.3023 16.7958 83.2884 16.7958C85.1972 16.7958 86.4353 15.1439 86.4353 12.6146Z\" fill=\"white\"/>\n <path d=\"M36.1132 5.67163C39.1569 5.67163 41.7879 6.83309 41.8911 9.9303H38.4863C38.2799 8.53655 37.4287 8.09778 35.9584 8.09778C34.6687 8.09778 33.8949 8.58817 33.8949 9.4141C33.8949 10.4513 34.8864 10.6545 36.7428 11.0348C36.8726 11.0614 37.
16010067 11.0889 37.145 11.1176C39.5438 11.608 42.3296 12.2274 42.3296 15.2472C42.3296 18.0347 40.0339 19.764 36.2422 19.764C32.9147 19.764 30.0516 18.4476 30 15.0407H33.4822C33.6112 16.6409 34.6429 17.2604 36.3196 17.2604C37.8156 17.2604 38.7442 16.6151 38.7442 15.6085C38.7442 14.5131 37.7362 14.2822 35.9517 13.8734L35.7521 13.8276C35.5431 13.7799 35.3279 13.7334 35.1103 13.6864C32.8573 13.2 30.2837 12.6444 30.2837 9.74963C30.2837 7.14281 32.3989 5.67163 36.1132 5.67163Z\" fill=\"white\"/>\n <path d=\"M51.2572 6.05878L48.3166 15.1181L45.2729 6.05878H41.3264L46.1499 18.7832C46.2015 18.938 46.2531 19.1703 46.2531 19.2994C46.2531 20.4092 45.6083 21.0803 44.3959 21.0803H42.6161V24.1001C43.1318 24.1075 43.4591 24.1128 43.6915 24.1166C43.9266 24.1204 44.0658 24.1227 44.2036 24.124C44.399 24.1259 44.5944 24.1259 45.0666 24.1259C48.3824 24.1259 49.0406 22.3364 50.0877 19.4891L50.148 19.3252L54.9084 6.43899V19.3768H58.5712V12.15C58.5712 10.3433 59.1129 8.6656 61.228 8.6656C62.9562 8.6656 63.2399 9.85287 63.2399 11.2724V19.3768H66.9027V11.8919C66.9027 10.0852 67.5476 8.69141 69.4563 8.69141C71.3393 8.69141 71.5714 9.95611 71.5714 11.4273V19.3768H75.2858V10.4207C75.2858 7.58158 73.7381 5.69744 70.746 5.69744C68.8631 5.69744 67.4444 6.44593 66.3868 7.8913C65.7162 6.42012 64.3749 5.69744 62.6209 5.69744C60.7379 5.69744 59.4224 6.44593 58.3906 7.8913V6.05878H51.2572Z\" fill=\"white\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M97.3805 5.67163C93.2018 5.67163 90.4418 8.48493 90.4418 12.7178C90.4418 16.9765 93.176 19.7898 97.3289 19.7898C101.482 19.7898 104.19 17.0023 104.19 12.7178C104.19 8.48493 101.482 5.67163 97.3805 5.67163ZM97.2773 8.45912C99.315 8.45912 100.527 10.0335 100.527 12.692C100.527 15.4279 99.3408 17.0281 97.3289 17.0281C95.2911 17.0281 94.1046 15.4537 94.1046 12.7178C94.1046 10.0593 95.3169 8.45912 97.2773 8.45912Z\" fill=\"white\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M120.161 6.38782V2.63502H121.499C122.269 2.63502 123.167 2.76317 123.167 3.7334C123.167 4.20937 122.965 4.46565 122.489 4.63041C122.965 4.81347 123.094 5.08807 123.112 5.87524C123.112 6.14983 123.13 6.20475 123.204 6.38782H122.36C122.306 6.22306 122.287 6.16814 122.287 5.87524C122.269 5.12468 122.122 4.97823 121.407 4.97823H121.004V6.38782H120.161ZM121.004 3.31236V4.3192H121.462C122.067 4.3192 122.306 4.17275 122.306 3.80663C122.306 3.45881 122.067 3.31236 121.462 3.31236H121.004Z\" fill=\"white\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M121.572 1.1156C119.684 1.1156 118.163 2.65333 118.163 4.52057C118.163 6.40612 119.684 7.94385 121.572 7.94385C123.46 7.94385 125.018 6.40612 125 4.52057C125 2.63502 123.46 1.1156 121.572 1.1156ZM121.572 1.7014C123.13 1.7014 124.395 2.96454 124.395 4.52057C124.395 6.07661 123.13 7.35805 121.572 7.35805C120.014 7.35805 118.75 6.07661 118.75 4.52057C118.75 2.96454 120.014 1.7014 121.572 1.7014Z\" fill=\"white\"/>\n <path d=\"M105.112 1.52723H108.821L108.821 14.752C108.821 15.9043 109.256 16.7141 110.611 16.7141H111.257V19.7289L110.929 19.7337C110.212 19.7442 110.65 19.7547 109.932 19.7547C107.345 19.7547 105.108 17.7167 105.112 15.317L105.112 1.52723Z\" fill=\"white\"/>\n <path d=\"M112.099 1.52723H115.807V14.752C115.807 15.9043 116.243 16.7141 117.598 16.7141H118.244V19.7289C117.192 19.744 118.07 19.7502 117.792 19.7528C117.594 19.7547 117.397 19.7547 116.919 19.7547C114.332 19.7547 112.095 17.7167 112.099 15.317V1.52723Z\" fill=\"white\"/>\n <defs>\n <linearGradient id=\"paint0_linear_5592_18247\" x1=\"12\" y1=\"0\" x2=\"12\" y2=\"24\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#FDA3A2\"/>\n <stop offset=\"0.354749\" stop-color=\"#FFA89A\"/>\n <stop offset=\"0.623027\" stop-color=\"#FFC07D\"/>\n <stop offset=\"1\" stop-color=\"#FFC079\"/>\n </linearGradient>\n </defs>\n </svg>"), 1602 !1) : e <= n ? (t.classList.remove("blurBg"), 1603 a && (t.classList.add("white-theme-header"), 1604 o.forEach(function(e) { 1605 e.style.background = "black" 1606 }), 1607 l.innerHTML = "<svg width=\"125\" height=\"25\" viewBox=\"0 0 125 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 12C0 5.37258 5.25987 0 11.7483 0H12.2517C18.7401 0 24 5.37258 24 12C24 18.6274 18.7401 24 12.2517 24H11.7483C5.25987 24
16070 18.6274 0 12Z\" fill=\"url(#paint0_linear_5592_18247)\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.01835 6.08922C4.79988 5.71104 5.07293 5.23828 5.50983 5.23828H18.5953C19.0352 5.23828 19.3078 5.71673 19.0835 6.09487L18.0587 7.82252H20.1427C20.5777 7.82252 20.851 8.29164 20.6362 8.6698L14.1229 20.1405C13.9063 20.5219 13.3572 20.5239 13.1378 20.1442L11.9595 18.1045L10.746 20.1502C10.5227 20.5267 9.97501 20.5192 9.762 20.1368L3.37249 8.66574C3.16188 8.28763 3.43539 7.82252 3.86835 7.82252H6.01967L5.01835 6.08922ZM6.60227 8.83101H4.61933L10.2699 18.9755L11.3808 17.1027L6.60227 8.83101ZM11.971 16.1077L7.76734 8.83101H16.2875L11.971 16.1077ZM12.5498 17.1095L13.626 18.9725L19.3846 8.83101H17.4605L12.5498 17.1095ZM16.8857 7.82252H7.18474L6.27443 6.24677H17.8204L16.8857 7.82252Z\" fill=\"white\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M76.5819 1H80.2189V7.68482C81.2765 6.3685 82.7209 5.74906 84.4233 5.74906C88.0861 5.74906 90.1238 8.79466 90.1238 12.5887C90.1238 16.8474 87.725 19.7381 84.217 19.7381C82.4888 19.7381 81.0185 19.1187 80.0384 17.6991L80.0641 19.3768H76.5819V1ZM86.4353 12.6146C86.4353 10.1626 85.1972 8.56236 83.2884 8.56236C81.3281 8.56236 80.0899 10.1368 80.0899 12.6404C80.0899 15.2214 81.3023 16.7958 83.2884 16.7958C85.1972 16.7958 86.4353 15.1439 86.4353 12.6146Z\" fill=\"black\"/>\n <path d=\"M36.1132 5.67163C39.1569 5.67163 41.7879 6.83309 41.8911 9.9303H38.4863C38.2799 8.53655 37.4287 8.09778 35.9584 8.09778C34.6687 8.09778 33.8949 8.58817 33.8949 9.4141C33.8949 10.4513 34.8864 10.6545 36.7428 11.0348C36.8726 11.0614 37.
16070067 11.0889 37.145 11.1176C39.5438 11.608 42.3296 12.2274 42.3296 15.2472C42.3296 18.0347 40.0339 19.764 36.2422 19.764C32.9147 19.764 30.0516 18.4476 30 15.0407H33.4822C33.6112 16.6409 34.6429 17.2604 36.3196 17.2604C37.8156 17.2604 38.7442 16.6151 38.7442 15.6085C38.7442 14.5131 37.7362 14.2822 35.9517 13.8734L35.7521 13.8276C35.5431 13.7799 35.3279 13.7334 35.1103 13.6864C32.8573 13.2 30.2837 12.6444 30.2837 9.74963C30.2837 7.14281 32.3989 5.67163 36.1132 5.67163Z\" fill=\"black\"/>\n <path d=\"M51.2572 6.05878L48.3166 15.1181L45.2729 6.05878H41.3264L46.1499 18.7832C46.2015 18.938 46.2531 19.1703 46.2531 19.2994C46.2531 20.4092 45.6083 21.0803 44.3959 21.0803H42.6161V24.1001C43.1318 24.1075 43.4591 24.1128 43.6915 24.1166C43.9266 24.1204 44.0658 24.1227 44.2036 24.124C44.399 24.1259 44.5944 24.1259 45.0666 24.1259C48.3824 24.1259 49.0406 22.3364 50.0877 19.4891L50.148 19.3252L54.9084 6.43899V19.3768H58.5712V12.15C58.5712 10.3433 59.1129 8.6656 61.228 8.6656C62.9562 8.6656 63.2399 9.85287 63.2399 11.2724V19.3768H66.9027V11.8919C66.9027 10.0852 67.5476 8.69141 69.4563 8.69141C71.3393 8.69141 71.5714 9.95611 71.5714 11.4273V19.3768H75.2858V10.4207C75.2858 7.58158 73.7381 5.69744 70.746 5.69744C68.8631 5.69744 67.4444 6.44593 66.3868 7.8913C65.7162 6.42012 64.3749 5.69744 62.6209 5.69744C60.7379 5.69744 59.4224 6.44593 58.3906 7.8913V6.05878H51.2572Z\" fill=\"black\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M97.3805 5.67163C93.2018 5.67163 90.4418 8.48493 90.4418 12.7178C90.4418 16.9765 93.176 19.7898 97.3289 19.7898C101.482 19.7898 104.19 17.0023 104.19 12.7178C104.19 8.48493 101.482 5.67163 97.3805 5.67163ZM97.2773 8.45912C99.315 8.45912 100.527 10.0335 100.527 12.692C100.527 15.4279 99.3408 17.0281 97.3289 17.0281C95.2911 17.0281 94.1046 15.4537 94.1046 12.7178C94.1046 10.0593 95.3169 8.45912 97.2773 8.45912Z\" fill=\"black\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M120.161 6.38782V2.63502H121.499C122.269 2.63502 123.167 2.76317 123.167 3.7334C123.167 4.20937 122.965 4.46565 122.489 4.63041C122.965 4.81347 123.094 5.08807 123.112 5.87524C123.112 6.14983 123.13 6.20475 123.204 6.38782H122.36C122.306 6.22306 122.287 6.16814 122.287 5.87524C122.269 5.12468 122.122 4.97823 121.407 4.97823H121.004V6.38782H120.161ZM121.004 3.31236V4.3192H121.462C122.067 4.3192 122.306 4.17275 122.306 3.80663C122.306 3.45881 122.067 3.31236 121.462 3.31236H121.004Z\" fill=\"black\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M121.572 1.1156C119.684 1.1156 118.163 2.65333 118.163 4.52057C118.163 6.40612 119.684 7.94385 121.572 7.94385C123.46 7.94385 125.018 6.40612 125 4.52057C125 2.63502 123.46 1.1156 121.572 1.1156ZM121.572 1.7014C123.13 1.7014 124.395 2.96454 124.395 4.52057C124.395 6.07661 123.13 7.35805 121.572 7.35805C120.014 7.35805 118.75 6.07661 118.75 4.52057C118.75 2.96454 120.014 1.7014 121.572 1.7014Z\" fill=\"black\"/>\n <path d=\"M105.112 1.52723H108.821L108.821 14.752C108.821 15.9043 109.256 16.7141 110.611 16.7141H111.257V19.7289L110.929 19.7337C110.212 19.7442 110.65 19.7547 109.932 19.7547C107.345 19.7547 105.108 17.7167 105.112 15.317L105.112 1.52723Z\" fill=\"black\"/>\n <path d=\"M112.099 1.52723H115.807V14.752C115.807 15.9043 116.243 16.7141 117.598 16.7141H118.244V19.7289C117.192 19.744 118.07 19.7502 117.792 19.7528C117.594 19.7547 117.397 19.7547 116.919 19.7547C114.332 19.7547 112.095 17.7167 112.099 15.317V1.52723Z\" fill=\"black\"/>\n <defs>\n <linearGradient id=\"paint0_linear_5592_18247\" x1=\"12\" y1=\"0\" x2=\"12\" y2=\"24\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#FDA3A2\"/>\n <stop offset=\"0.354749\" stop-color=\"#FFA89A\"/>\n <stop offset=\"0.623027\" stop-color=\"#FFC07D\"/>\n <stop offset=\"1\" stop-color=\"#FFC079\"/>\n </linearGradient>\n </defs>\n </svg>"), 1608 !1) : void 0 1609 } 1610 var t = document.querySelector("header") 1611 , l = t.querySelector(".logo > a") 1612 , r = Array.from(l.querySelectorAll("path")) 1613 , a = document.getElementById("white-head") || !1 1614 , o = Array.from(t.querySelector(".menu-btn").querySelectorAll("span")) 1615 , n = t.offsetHeight; 1616 console.log("fist scroll", window.pageYOffset, n), 1617 e(), 1618 window.addEventListener("scroll", e), 1619 document.addEventListener("resize", function() { 1620 n = t.offsetHeight 1621 }) 1622} 1623function injectImgBlock() { 1624 if (document.querySelector("[data-copy=\"true\"]")) { 1625 var e = Array.from(document.querySelectorAll("[data-copy=\"true\"]")); 1626 e.length && e.forEach(function(e) { 1627 var t = e.querySelector("img").cloneNode(!0) 1628 , l = e.nextElementSibling 1629 , r = document.createElement("div"); 1630 r.classList.add("image-mobile", "aos"), 1631 r.dataset.aos = "fade-up", 1632 r.append(t), 1633 l.after(r) 1634 }) 1635 } 1636} 1637function changedLogo() { 1638 if (document.getElementById("white-head")) { 1639 var e = document.querySelector("header") 1640 , t = e.querySelector(".menu-btn") 1641 , l = e.querySelector(".logo > a"); 1642 t.addEventListener("click", function() { 1643 setTimeout(function() { 1644 t.classList.contains("active") ? l.innerHTML = "<svg width=\"93\" height=\"18\" viewBox=\"0 0 93 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M26.3938 1.93018C29.0477 1.93018 31.1885 3.1202 31.2416 5.90277H28.623C28.5169 4.69524 27.703 4.04772 26.2345 4.04772C24.9606 4.04772 24.1999 4.57274 24.1999 5.46526C24.1999 6.34376 25.0814 6.56834 26.7504 6.99356C27.1428 7.09351 27.5787 7.20458 28.0569 7.3378C30.3039 7.96781 31.737 8.82533 31.737 10.9079C31.737 13.8479 29.1184 14.933 26.553 14.933C23.1383 14.933 21.1213 13.3054 21.0859 10.4879H23.8283C23.8814 12.1679 24.996 12.8329 26.6768 12.8329C28.1277 12.8329 29.0123 12.2029 29.0123 11.1704C29.0123 10.2501 28.2635 10.0397 26.0187 9.40888C25.8729 9.36791 25.7208 9.32517 25.5622 9.28034L25.4565 9.25062C23.4429 8.68479 21.5459 8.15171 21.5459 5.65776C21.5459 3.40021 23.4568 1.93018 26.3938 1.93018Z\" fill=\"white\"></path>\n <path d=\"M38.6425 5.62276H41.2433L37.8817 14.618L37.8404 14.7291C37.1221 16.6597 36.6707 17.873 34.3962 17.873C34.0723 17.873 33.9383 17.873 33.8043 17.8718C33.7098 17.8709 33.6152 17.8694 33.4539 17.8668L33.4517 17.8667C33.2924 17.8642 33.0682 17.8606 32.7154 17.8555V15.808H33.9362C34.7678 15.808 35.2101 15.353 35.2101 14.6005C35.2101 14.513 35.1747 14.3555 35.1393 14.2505L31.8308 5.62276H34.5378L36.6255 11.7654L38.6425 5.62276Z\" fill=\"white\"></path>\n <path d=\"M55.9893 8.58033V14.653H53.4415V9.26284C53.4415 8.26532 53.2823 7.4078 51.9907 7.4078C50.6814 7.4078 50.2391 8.35282 50.2391 9.57785V14.653H47.7267V9.15784C47.7267 8.19532 47.5321 7.3903 46.3467 7.3903C44.8959 7.3903 44.5243 8.52782 44.5243 9.75285V14.653H42.012V5.62276H44.4005V6.86529C45.1082 5.88526 46.0105 5.37775 47.3021 5.37775C48.5052 5.37775 49.4252 5.86776 49.8852 6.86529C50.6107 5.88526 51.5838 5.37775 52.8753 5.37775C54.9277 5.37775 55.9893 6.65528 55.9893 8.58033Z\" fill=\"white\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M57.0061 2.19268H59.5008V6.72528C60.2262 5.83276 61.217 5.41276 62.3847 5.41276C64.8971 5.41276 66.2948 7.4778 66.2948 10.0504C66.2948 12.9379 64.6494 14.898 62.2431 14.898C61.0577 14.898 60.0492 14.478 59.3769 13.5154L59.3946 14.653H57.0061V2.19268ZM63.7647 10.0679C63.7647 8.40532 62.9155 7.3203 61.6062 7.3203C60.2616 7.3203 59.4123 8.38782 59.4123 10.0854C59.4123 11.8354 60.2439 12.9029 61.6062 12.9029C62.9155 12.9029 63.7647 11.7829 63.7647 10.0679Z\" fill=\"white\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M66.8864 10.1379C66.8864 7.2678 68.7795 5.36025 71.6458 5.36025C74.4589 5.36025 76.3167 7.2678 76.3167 10.1379C76.3167 13.0429 74.4589 14.933 71.6104 14.933C68.7618 14.933 66.8864 13.0254 66.8864 10.1379ZM73.8043 10.1204C73.8043 8.31782 72.9727 7.2503 71.575 7.2503C70.23
164403 7.2503 69.3988 8.33532 69.3988 10.1379C69.3988 11.9929 70.2127 13.0604 71.6104 13.0604C72.9904 13.0604 73.8043 11.9754 73.8043 10.1204Z\" fill=\"white\"></path>\n <path d=\"M79.8204 2.31434H77.2789L77.2789 11.76C77.2756 13.4038 78.8089 14.7997 80.582 14.7997C81.0741 14.7997 81.5658 14.7925 82.0577 14.7853L82.2823 14.7821V12.717H81.0474C80.119 12.717 79.8204 12.1623 79.8204 11.373L79.8204 2.31434Z\" fill=\"white\"></path>\n <path d=\"M85.4012 2.31434H82.8597L82.8597 11.76C82.8564 13.4038 84.3897 14.7997 86.1628 14.7997C86.4905 14.7997 86.6261 14.7997 86.7616 14.7984C86.8573 14.7975 86.9529 14.796 87.1162 14.7934C87.2775 14.7908 87.5047 14.7872 87.8631 14.7821V12.717H86.6282C85.6998 12.717 85.4012 12.1623 85.4012 11.373L85.4012 2.31434Z\" fill=\"white\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M89.1772 5.64372V3.07315H90.0943C90.6219 3.07315 91.2375 3.16093 91.2375 3.82552C91.2375 4.15154 91.0993 4.32709 90.7727 4.43995C91.0993 4.56534 91.1872 4.75343 91.1998 5.29262C91.1998 5.48071 91.2124 5.51833 91.2626 5.64372H90.6847C90.6471 5.53087 90.6345 5.49325 90.6345 5.29262C90.6219 4.77851 90.5214 4.67819 90.0315 4.67819H89.7551V5.64372H89.1772ZM89.7551 3.53711V4.22678H90.0692C90.4837 4.22678 90.6471 4.12646 90.6471 3.87567C90.6471 3.63743 90.4837 3.53711 90.0692 3.53711H89.7551Z\" fill=\"white\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M87.8079 4.36471C87.8079 3.08569 88.8506 2.03239 90.1446 2.03239C91.4385 2.03239 92.4938 3.07315 92.4938 4.36471C92.5063 5.65626 91.4385 6.70957 90.1446 6.70957C88.8506 6.70957 87.8079 5.65626 87.8079 4.36471ZM92.0792 4.36471C92.0792 3.29886 91.2124 2.43365 90.1446 2.43365C89.0767 2.43365 88.2099 3.29886 88.2099 4.36471C88.2099 5.43056 89.0767 6.30831 90.1446 6.30831C91.2124 6.30831 92.0792 5.43056 92.0792 4.36471Z\" fill=\"white\"></path>\n <path d=\"M0 9C0 4.02944 4.02944 0 9 0H9.38571C14.3563 0 18.3857 4.02944 18.3857 9C18.3857 13.9706 14.3563 18 9.38572 18H9C4.02944 18 0 13.9706 0 9Z\" fill=\"url(#logo_paint0_linear)\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.9665 4.56887C3.80264 4.28523 4.00743 3.93066 4.3351 3.93066H14.1492C14.4791 3.93066 14.6836 4.2895 14.5154 4.5731L13.7467 5.86885H15.3097C15.636 5.86885 15.841 6.22068 15.6799 6.50431L10.7949 15.1073C10.6325 15.3934 10.2207 15.3949 10.0561 15.1101L9.17237 13.5803L8.26225 15.1146C8.09476 15.397 7.68399 15.3914 7.52423 15.1046L2.7321 6.50126C2.57414 6.21767 2.77927 5.86885 3.104 5.86885H4.71749L3.9665 4.56887ZM5.15444 6.62521H3.66723L7.90515 14.2336L8.73833 12.829L5.15444 6.62521ZM9.18101 12.0827L6.02824 6.62521H12.4184L9.18101 12.0827ZM9.61505 12.834L10.4222 14.2313L14.7412 6.62521H13.2981L9.61505 12.834ZM12.867 5.86885H5.59129L4.90856 4.68703H13.5681L12.867 5.86885Z\" fill=\"white\"></path>\n <defs>\n <linearGradient id=\"logo_paint0_linear\" x1=\"9.19286\" y1=\"0\" x2=\"9.19286\" y2=\"18\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#FDA3A2\"></stop>\n <stop offset=\"0.354749\" stop-color=\"#FFA89A\"></stop>\n <stop offset=\"0.623027\" stop-color=\"#FFC07D\"></stop>\n <stop offset=\"1\" stop-color=\"#FFC079\"></stop>\n </linearGradient>\n </defs>\n</svg>" : !e.classList.contains("blurBg") && (console.log("asdsad"), 1645 l.innerHTML = "<svg width=\"93\" height=\"18\" viewBox=\"0 0 93 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M26.3928 1.93018C29.0467 1.93018 31.1875 3.1202 31.2406 5.90277H28.6221C28.5159 4.69524 27.702 4.04772 26.2336 4.04772C24.9597 4.04772 24.1989 4.57274 24.1989 5.46526C24.1989 6.34376 25.0804 6.56834 26.7495 6.99356C27.1418 7.09351 27.5778 7.20458 28.0559 7.3378C30.3029 7.96781 31.736 8.82533 31.736 10.9079C31.736 13.8479 29.1175 14.933 26.552 14.933C23.1373 14.933 21.1203 13.3054 21.085 10.4879H23.8273C23.8804 12.1679 24.9951 12.8329 26.6759 12.8329C28.1267 12.8329 29.0113 12.2029 29.0113 11.1704C29.0113 10.2501 28.2625 10.0397 26.0177 9.40888C25.8719 9.36791 25.7198 9.32517 25.5612 9.28034L25.4555 9.25062C23.442 8.68479 21.545 8.15171 21.545 5.65776C21.545 3.40021 23.4558 1.93018 26.3928 1.93018Z\" fill=\"black\"></path>\n <path d=\"M38.6415 5.62276H41.2424L37.8807 14.618L37.8394 14.7291C37.1211 16.6597 36.6697 17.873 34.3953 17.873C34.0714 17.873 33.9374 17.873 33.8034 17.8718C33.7088 17.8709 33.6142 17.8694 33.4529 17.8668L33.4507 17.8667C33.2914 17.8642 33.0672 17.8606 32.7145 17.8555V15.808H33.9353C34.7668 15.808 35.2091 15.353 35.2091 14.6005C35.2091 14.513 35.1737 14.3555 35.1384 14.2505L31.8298 5.62276H34.5368L36.6246 11.7654L38.6415 5.62276Z\" fill=\"black\"></path>\n <path d=\"M55.9883 8.58033V14.653H53.4405V9.26284C53.4405 8.26532 53.2813 7.4078 51.9897 7.4078C50.6804 7.4078 50.2381 8.35282 50.2381 9.57785V14.653H47.7258V9.15784C47.7258 8.19532 47.5311 7.3903 46.3457 7.3903C44.8949 7.3903 44.5234 8.52782 44.5234 9.75285V14.653H42.011V5.62276H44.3995V6.86529C45.1072 5.88526 46.0096 5.37775 47.3011 5.37775C48.5042 5.37775 49.4243 5.86776 49.8843 6.86529C50.6097 5.88526 51.5828 5.37775 52.8743 5.37775C54.9267 5.37775 55.9883 6.65528 55.9883 8.58033Z\" fill=\"black\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M57.0051 2.19268H59.4998V6.72528C60.2252 5.83276 61.216 5.41276 62.3837 5.41276C64.8961 5.41276 66.2938 7.4778 66.2938 10.0504C66.2938 12.9379 64.6484 14.898 62.2422 14.898C61.0568 14.898 60.0483 14.478 59.3759 13.5154L59.3936 14.653H57.0051V2.19268ZM63.7637 10.0679C63.7637 8.40532 62.9145 7.3203 61.6052 7.3203C60.2606 7.3203 59.4113 8.38782 59.4113 10.0854C59.4113 11.8354 60.2429 12.9029 61.6052 12.9029C62.9145 12.9029 63.7637 11.7829 63.7637 10.0679Z\" fill=\"black\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M66.8854 10.1379C66.8854 7.2678 68.7786 5.36025 71.6448 5.36025C74.4579 5.36025 76.3157 7.2678 76.3157 10.1379C76.3157 13.0429 74.4579 14.933 71.6094
164514.933C68.7609 14.933 66.8854 13.0254 66.8854 10.1379ZM73.8033 10.1204C73.8033 8.31782 72.9717 7.2503 71.574 7.2503C70.2294 7.2503 69.3978 8.33532 69.3978 10.1379C69.3978 11.9929 70.2117 13.0604 71.6094 13.0604C72.9894 13.0604 73.8033 11.9754 73.8033 10.1204Z\" fill=\"black\"></path>\n <path d=\"M79.8194 2.31434H77.2779L77.2779 11.76C77.2747 13.4038 78.8079 14.7997 80.581 14.7997C81.0731 14.7997 81.5648 14.7925 82.0568 14.7853L82.2814 14.7821V12.717H81.0464C80.118 12.717 79.8194 12.1623 79.8194 11.373L79.8194 2.31434Z\" fill=\"black\"></path>\n <path d=\"M85.4002 2.31434H82.8587L82.8587 11.76C82.8555 13.4038 84.3887 14.7997 86.1619 14.7997C86.4895 14.7997 86.6251 14.7997 86.7606 14.7984C86.8563 14.7975 86.952 14.796 87.1152 14.7934C87.2765 14.7908 87.5038 14.7872 87.8622 14.7821V12.717H86.6272C85.6988 12.717 85.4002 12.1623 85.4002 11.373L85.4002 2.31434Z\" fill=\"black\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M89.1763 5.64372V3.07315H90.0933C90.6209 3.07315 91.2365 3.16093 91.2365 3.82552C91.2365 4.15154 91.0983 4.32709 90.7717 4.43995C91.0983 4.56534 91.1863 4.75343 91.1988 5.29262C91.1988 5.48071 91.2114 5.51833 91.2616 5.64372H90.6838C90.6461 5.53087 90.6335 5.49325 90.6335 5.29262C90.6209 4.77851 90.5205 4.67819 90.0305 4.67819H89.7541V5.64372H89.1763ZM89.7541 3.53711V4.22678H90.0682C90.4828 4.22678 90.6461 4.12646 90.6461 3.87567C90.6461 3.63743 90.4828 3.53711 90.0682 3.53711H89.7541Z\" fill=\"black\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M87.8069 4.36471C87.8069 3.08569 88.8496 2.03239 90.1436 2.03239C91.4375 2.03239 92.4928 3.07315 92.4928 4.36471C92.5053 5.65626 91.4375 6.70957 90.1436 6.70957C88.8496 6.70957 87.8069 5.65626 87.8069 4.36471ZM92.0782 4.36471C92.0782 3.29886 91.2114 2.43365 90.1436 2.43365C89.0758 2.43365 88.2089 3.29886 88.2089 4.36471C88.2089 5.43056 89.0758 6.30831 90.1436 6.30831C91.2114 6.30831 92.0782 5.43056 92.0782 4.36471Z\" fill=\"black\"></path>\n <path d=\"M0 9C0 4.02944 4.02944 0 9 0H9.38571C14.3563 0 18.3857 4.02944 18.3857 9C18.3857 13.9706 14.3563 18 9.38572 18H9C4.02944 18 0 13.9706 0 9Z\" fill=\"url(#paint0_linear)\"></path>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.96634 4.56887C3.80249 4.28523 4.00728 3.93066 4.33495 3.93066H14.1491C14.4789 3.93066 14.6834 4.2895 14.5152 4.5731L13.7466 5.86885H15.3096C15.6359 5.86885 15.8408 6.22068 15.6798 6.50431L10.7947 15.1073C10.6323 15.3934 10.2205 15.3949 10.056 15.1101L9.17222 13.5803L8.2621 15.1146C8.09461 15.397 7.68384 15.3914 7.52408 15.1046L2.73195 6.50126C2.57399 6.21767 2.77912 5.86885 3.10384 5.86885H4.71733L3.96634 4.56887ZM5.15428 6.62521H3.66707L7.905 14.2336L8.73818 12.829L5.15428 6.62521ZM9.18086 12.0827L6.02808 6.62521H12.4182L9.18086 12.0827ZM9.6149 12.834L10.4221 14.2313L14.741 6.62521H13.2979L9.6149 12.834ZM12.8669 5.86885H5.59114L4.9084 4.68703H13.5679L12.8669 5.86885Z\" fill=\"#F7F7F7\"></path>\n <defs>\n <linearGradient id=\"paint0_linear\" x1=\"9.19286\" y1=\"0\" x2=\"9.19286\" y2=\"18\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#FDA3A2\"></stop>\n <stop offset=\"0.354749\" stop-color=\"#FFA89A\"></stop>\n <stop offset=\"0.623027\" stop-color=\"#FFC07D\"></stop>\n <stop offset=\"1\" stop-color=\"#FFC079\"></stop>\n </linearGradient>\n </defs>\n </svg>") 1646 }) 1647 }) 1648 } 1649} 1650function showLazyImg() { 1651 window.dispatchEvent(new Event("scroll")) 1652} 1653function scrollBlueBook() { 1654 var t = document.querySelector("header"); 1655 if (t.querySelector(".blue-book") && document.querySelector(".b-contact-form")) { 1656 var l = t.querySelector(".blue-book") 1657 , r = document.querySelector(".b-contact-form"); 1658 l.addEventListener("click", function(l) { 1659 l.preventDefault(); 1660 const menuBtn = document.querySelector('.menu-btn'); 1661 if (menuBtn && menuBtn.classList.contains('active')) { 1662 toggleMobileMenu(); 1663 } 1664 var e = r.getBoundingClientRect().top 1665 , a = t.offsetHeight; 1666 return $("body,html").animate({ 1667 scrollTop: e - a 1668 }, 1e3), 1669 !1 1670 }) 1671 } 1672} 1673function aboutTopBlockHeight() { 1674 function e() { 1675 var e = document.documentElement.clientHeight 1676 , r = l.offsetHeight; 1677 t.style.height = e - r + "px" 1678 } 1679 if (document.querySelector(".about-top")) { 1680 var t = document.querySelector(".about-top") 1681 , l = document.querySelector("header"); 1682 e(), 1683 window.addEventListener("resize", e) 1684 } 1685} 1686function toggleSubNavMobile() { 1687 function e(t) { 1688 t.preventDefault(); 1689 767 < document.documentElement.clientWidth || (r.classList.toggle("show"), 1690 a.classList.toggle("show"), 1691 console.log("triger click")) 1692 } 1693 if (document.querySelector(".header")) { 1694 var t = document.querySelector(".header") 1695 , l = t.querySelector(".has-sub-menu > a") 1696 , r = l.querySelector("svg") 1697 , a = t.querySelector(".sub-menu"); 1698 r.addEventListener("click", e) 1699 } 1700} 1701copyElements(), 1702scrollDown(), 1703openSearchField(), 1704showplaceLocation(), 1705toggleFAQ(), 1706document.addEventListener("DOMContentLoaded", function () { 1707 priceSlider(); 1708}); 1709offAOSinFuter(), 1710covarageMobArr(), 1711fancyInitView(), 1712 1713$(document).ready(function() { 1714 fancyInitVideo(); 1715 $(".b-main-create").length && $("header").addClass("blurBgMob"); 1716}); 1717document.addEventListener("DOMContentLoaded", function() { 1718 scrollMAgic(), 1719 injectImgBlock(), 1720 aboutTopBlockHeight(), 1721 toggleSubNavMobile(), 1722 closeWatchVideoBlock() 1723}), 1724function scrollStickyEl() { 1725 function l() { 1726 var o = window.scrollY 1727 , i = document.documentElement.clientHeight 1728 , c = e.getBoundingClientRect().bottom + o 1729 , r = t.getBoundingClientRect().bottom + o 1730 , a = d.getBoundingClientRect().left 1731 , l = d.offsetHeight; 1732 1024 >= window.innerWidth || (c <= o + l && (d.classList.add("sticky"), 1733 e.after(d), 1734 console.log("1"), 1735 d.style.left = a + "px", 1736 d.style.top = i - 2 * l + "px"), 1737 r <= o + n && d.classList.remove("sticky"), 1738 r - n < o + l && (d.classList.remove("sticky"), 1739 console.log("2"), 1740 d.style.top = r - 4 * l + "px"), 1741 c > o + n && (d.classList.remove("sticky"), 1742 d.removeAttribute("style"), 1743 d.classList.remove("sticky"), 1744 console.log("3"), 1745 e.append(d))) 1746 } 1747 if (document.getElementById("watch-video-block") && document.querySelector(".b-main-event") && document.querySelector(".gallery-grid-colums")) { 1748 console.log("aaaa____"); 1749 var d = document.getElementById("watch-video-block") 1750 , e = document.querySelector(".b-main-event").querySelector(".field ") 1751 , t = document.querySelector(".gallery-grid-colums") 1752 , n = d.getBoundingClientRect().top; 1753 d.getBoundingClientRect().top; 1754 var r = document.querySelector("#watch-video-block").querySelector(".left"); 1755 r.classList.remove("aos", "aos-init"), 1756 r.removeAttribute("data-aos"), 1757 l(), 1758 window.addEventListener("scroll", l),
1759 window.addEventListener("resize", function() { 1760 d.removeAttribute("style"), 1761 d.classList.remove("sticky"), 1762 e.append(d), 1763 l() 1764 }) 1765 } 1766} 1767function blockSetSize() { 1768 if (document.querySelector(".b-galleries") && document.querySelector(".b-info") && document.querySelector(".b-galleries-slider")) { 1769 var e = document.querySelector(".b-galleries") 1770 , t = document.querySelector(".b-galleries-slider") 1771 , l = e.querySelector(".b-info") 1772 , r = l.scrollHeight; 1773 t.style.minHeight = r + "px", 1774 window.addEventListener("resize", function() { 1775 r = l.scrollHeight, 1776 t.style.minHeight = r + "px" 1777 }) 1778 } 1779} 1780blockSetSize(); 1781function AOSHelper(e) { 1782 var t = e.parent 1783 , l = e.query; 1784 try { 1785 var r = function e() { 1786 n = o.getBoundingClientRect(), 1787 i = n.top, 1788 s = n.bottom; 1789 var t = document.documentElement.clientHeight 1790 , l = t / 3; 1791 t -= l; 1792 var r = window.scrollY; 1793 r + t > i + r && (console.log("init top"), 1794 o.classList.add("aos-animate"), 1795 document.removeEventListener("scroll", e)) 1796 }; 1797 if (!document.querySelector(t) || !document.querySelector(l)) 1798 return; 1799 var a = document.querySelector(t) 1800 , o = a.querySelector(l); 1801 if (!o) return; 1802 if (!o.classList.contains("aos")) 1803 return; 1804 if (o.classList.contains("aos-animate")) 1805 return; 1806 if (!o.classList.contains("aos-init")) 1807 return void setTimeout(function() { 1808 AOSHelper({ 1809 parent: t, 1810 query: l 1811 }) 1812 }, 200); 1813 var n = o.getBoundingClientRect() 1814 , i = n.top 1815 , s = n.bottom; 1816 console.log("anchor", o), 1817 document.addEventListener("scroll", r), 1818 r() 1819 } catch (t) { 1820 console.log(t) 1821 } 1822} 1823document.addEventListener("DOMContentLoaded", function() { 1824 AOSHelper({ 1825 parent: ".b-contact-form", 1826 query: "h2.aos" 1827 }), 1828 AOSHelper({ 1829 parent: ".b-contact-form", 1830 query: ".contact-form" 1831 }) 1832}); 1833function initializeMarquee(containerId, itemClass = "item", animationSpeedFactor = 10, longDurationFactor = 20, numClones = 2) { 1834 // Function to initialize a marquee animation for any container element by ID 1835 const container = document.querySelector(`#${containerId}`); 1836 if (!container) return; 1837 1838 const innerContainer = container.querySelector(`.${containerId}`); 1839 if (!innerContainer) return; 1840 1841 const items = container.querySelectorAll(`.${itemClass}`); 1842 if (!items.length) return; 1843 1844 // Calculate total width of all items to set the container width for smooth animation 1845 const calculateTotalWidth = (elements) => { 1846 let totalWidth = 0; 1847 elements.forEach(item => { 1848 totalWidth += item.offsetWidth; 1849 }); 1850 return totalWidth; 1851 }; 1852 // Determine animation speeds based on item width 1853 const animationSpeed = animationSpeedFactor * items.length; 1854 const longDuration = longDurationFactor * items.length; 1855 1856 // Initialize GSAP timeline for infinite scrolling 1857 const timeline = gsap.timeline({ repeat: -1 }); 1858 1859 // Set container width and clone items to enable continuous scroll 1860 const totalWidth = calculateTotalWidth(items); 1861 container.style.width = (numClones + 4) * totalWidth + "px"; 1862 1863 for (let i = 0; i < 2; i++) { 1864 container.insertBefore(innerContainer.cloneNode(true), innerContainer.previousSibling); 1865 } 1866 1867 // Animate each item in the marquee 1868 container.querySelectorAll(`.${containerId}`).forEach(i => { 1869 timeline.to(i, animationSpeed, { 1870 x: -i.offsetWidth, 1871 ease: Linear.easeNone 1872 }, "-=this.time"); 1873 }); 1874 1875 // Function to pause the marquee on hover 1876 const pauseMarquee = () => timeline.duration(longDuration); 1877 1878 // Function to resume the marquee on mouse leave 1879 const resumeMarquee = () => timeline.duration(animationSpeed); 1880 1881 // Attach event listeners for pause/resume on hover 1882 container.addEventListener("mouseenter", pauseMarquee); 1883 container.addEventListener("mouseleave", resumeMarquee); 1884}; 1885function setMarquee() { 1886 // Initialize all marquees 1887 initializeMarquee("marquee1"); 1888 initializeMarquee("marquee2"); 1889 initializeMarquee("marquee3"); 1890 initializeMarquee("marquee4"); 1891 1892 initializeMarquee("marquee6"); 1893 initializeMarquee("marquee7");
1894 // Start video autoplay with delay if .videoAuto elements are found 1895 if ($(".videoAuto").length) { 1896 setTimeout(videoAuto, 1000); 1897 } 1898} 1899// function setMarqueeNoWedding() { 1900// initializeMarquee("marquee1"); 1901// initializeMarquee("marquee2"); 1902// initializeMarquee("marquee3"); 1903// initializeMarquee("marquee4"); 1904// initializeMarquee("marquee5", "item", 55); 1905// initializeMarquee("marquee6"); 1906// } 1907 1908function initSwiperSliders() { 1909 var e = new Swiper(".reviews-slider .swiper-container",{ 1910 lazy: { 1911 loadPrevNext: !0, 1912 loadPrevNextAmount: 5 1913 }, 1914 slidesPerView: 3, 1915 initialSlide: 1, 1916 spaceBetween: 30, 1917 speed: 500, 1918 watchOverflow: !0, 1919 grabCursor: !0, 1920 breakpoints: { 1921 0: { 1922 spaceBetween: 8, 1923 slidesPerView: 1 1924 }, 1925 767: { 1926 spaceBetween: 20, 1927 slidesPerView: 2 1928 }, 1929 992: { 1930 spaceBetween: 30, 1931 slidesPerView: 3 1932 } 1933 } 1934 }) 1935 , t = new Swiper(".galleries-slider .swiper-container",{ 1936 lazy: { 1937 loadPrevNext: !0, 1938 loadPrevNextAmount: 5 1939 }, 1940 slidesPerView: 3, 1941 spaceBetween: 0, 1942 speed: 500, 1943 watchOverflow: !0, 1944 pagination: { 1945 el: ".galleries-slider .swiper-pagination", 1946 clickable: !0 1947 }, 1948 breakpoints: { 1949 0: { 1950 slidesPerView: 1 1951 }, 1952 767: { 1953 slidesPerView: 2 1954 }, 1955 992: { 1956 slidesPerView: 3 1957 } 1958 } 1959 }); 1960 if ($(".slider-desk-gall-1").length && $(".slider-desk-gall-2").length) { 1961 var l = new Swiper(".slider-desk-gall-1 .swiper-container",{ 1962 lazy: { 1963 loadPrevNext: !0, 1964 loadPrevNextAmount: 5 1965 }, 1966 slidesPerView: "auto", 1967 loop: !0, 1968 loopedSlides: 5, 1969 spaceBetween: 22, 1970 speed: 500, 1971 watchOverflow: !0, 1972 allowTouchMove: !1, 1973 navigation: { 1974 nextEl: ".b-before-after .swiper-button-next", 1975 prevEl: ".b-before-after .swiper-button-prev" 1976 }, 1977 breakpoints: { 1978 991: {}, 1979 767: {} 1980 }, 1981 on: { 1982 beforeInit: function(e) { 1983 if (0 != e.$el[0].querySelectorAll(".swiper-slide").length) 1984 for (var t = function(e) { 1985 var t = 0; 1986 return e.$el[0].querySelectorAll(".swiper-slide").forEach(function(e) { 1987 t += e.offsetWidth 1988 }), 1989 t 1990 }; t(e) < window.innerWidth; ) 1991 e.$el[0].querySelectorAll(".swiper-slide").forEach(function(t) { 1992 var l = t.cloneNode(!0); 1993 e.$el[0].querySelectorAll(".swiper-wrapper")[0].appendChild(l) 1994 }) 1995 } 1996 } 1997 }) 1998 , r = new Swiper(".slider-desk-gall-2 .swiper-container",{ 1999 lazy: { 2000 loadPrevNext: !0, 2001 loadPrevNextAmount: 5 2002 }, 2003 slidesPerView: "auto", 2004 loop: !0, 2005 loopedSlides: 5, 2006 spaceBetween: 22, 2007 speed: 500, 2008 watchOverflow: !0, 2009 allowTouchMove: !1, 2010 breakpoints: { 2011 991: {}, 2012 767: {} 2013 }, 2014 on: { 2015 beforeInit: function(e) { 2016 if (0 != e.$el[0].querySelectorAll(".swiper-slide").length) 2017 for (var t = function(e) { 2018 var t = 0; 2019 return e.$el[0].querySelectorAll(".swiper-slide").forEach(function(e) { 2020 t += e.offsetWidth 2021 }), 2022 t 2023 }; t(e) < window.innerWidth; ) 2024 e.$el[0].querySelectorAll(".swiper-slide").forEach(function(t) { 2025 var l = t.cloneNode(!0); 2026 e.$el[0].querySelectorAll(".swiper-wrapper")[0].appendChild(l) 2027 }) 2028 } 2029 } 2030 }); 2031 l.controller.control = r, 2032 r.controller.control = l 2033 } 2034 if ($(".slider-desk-nowedding-1").length && $(".slider-desk-nowedding-2").length && $(".slider-desk-nowedding-3").length) 2035 var a = new Swiper(".slider-desk-nowedding-1 .swiper-container",{ 2036 lazy: { 2037 loadPrevNext: !0, 2038 loadPrevNextAmount: 9 2039 }, 2040 slidesPerView: "auto", 2041 loop: !0, 2042 spaceBetween: 14, 2043 speed: 500, 2044 watchOverflow: !0, 2045 allowTouchMove: !1, 2046 navigation: { 2047 nextEl: ".non-wedding-sliders .swiper-button-next", 2048 prevEl: ".non-wedding-sliders .swiper-button-prev" 2049 }, 2050 breakpoints: { 2051 991: {}, 2052 767: {} 2053 }, 2054 on: { 2055 beforeInit: function(e) { 2056 if (0 != e.$el[0].querySelectorAll(".swiper-slide").length) 2057 for (var t = function(e) { 2058 var t = 0; 2059 return e.$el[0].querySelectorAll(".swiper-slide").forEach(function(e) { 2060 t += e.offsetWidth 2061 }), 2062 t 2063 }; t(e) < window.innerWidth; ) 2064 e.$el[0].querySelectorAll(".swiper-slide").forEach(function(t) { 2065 var l = t.cloneNode(!0); 2066 e.$el[0].querySelectorAll(".swiper-wrapper")[0].appendChild(l) 2067 }) 2068 } 2069 } 2070 }) 2071 , o = new Swiper(".slider-desk-nowedding-2 .swiper-container",{ 2072 lazy: { 2073 loadPrevNext: !0, 2074 loadPrevNextAmount: 9 2075 }, 2076 slidesPerView: "auto", 2077 loop: !0, 2078 spaceBetween: 14, 2079 speed: 500, 2080 watchOverflow: !0, 2081 allowTouchMove: !1, 2082 navigation: { 2083 nextEl: ".non-wedding-sliders .swiper-button-next", 2084 prevEl: ".non-wedding-sliders .swiper-button-prev" 2085 }, 2086 breakpoints: { 2087 991: {}, 2088 767: {} 2089 }, 2090 on: { 2091 beforeInit: function(e) { 2092 if (0 != e.$el[0].querySelectorAll(".swiper-slide").length) 2093 for (var t = function(e) { 2094 var t = 0; 2095 return e.$el[0].querySelectorAll(".swiper-slide").forEach(function(e) { 2096 t += e.offsetWidth 2097 }), 2098 t 2099 }; t(e) < window.innerWidth; ) 2100 e.$el[0].querySelectorAll(".swiper-slide").forEach(function(t) { 2101 var l = t.cloneNode(!0); 2102 e.$el[0].querySelectorAll(".swiper-wrapper")[0].appendChild(l) 2103 }) 2104 } 2105 } 2106 }) 2107 , n = new Swiper(".slider-desk-nowedding-3 .swiper-container",{ 2108 lazy: { 2109 loadPrevNext: !0, 2110 loadPrevNextAmount: 9 2111 }, 2112 slidesPerView: "auto", 2113 loop: !0, 2114 spaceBetween: 14, 2115 speed: 500, 2116 watchOverflow: !0, 2117 allowTouchMove: !1, 2118 navigation: { 2119 nextEl: ".non-wedding-sliders .swiper-button-next", 2120 prevEl: ".non-wedding-sliders .swiper-button-prev" 2121 }, 2122 breakpoints: { 2123 991: {}, 2124 767: {} 2125 }, 2126 on: { 2127 beforeInit: function(e) { 2128 if (0 != e.$el[0].querySelectorAll(".swiper-slide").length) 2129 for (var t = function(e) { 2130 var t = 0; 2131 return e.$el[0].querySelectorAll(".swiper-slide").forEach(function(e) { 2132 t += e.offsetWidth 2133 }), 2134 t 2135 }; t(e) < window.innerWidth; ) 2136 e.$el[0].querySelectorAll(".swiper-slide").forEach(function(t) { 2137 var l = t.cloneNode(!0); 2138 e.$el[0].querySelectorAll(".swiper-wrapper")[0].appendChild(l) 2139 }) 2140 } 2141 } 2142 }) 2143} 2144function calendarNew() { 2145 function e() { 2146 var e = k.getFullYear(); 2147 x.forEach(function(t) { 2148 t.dataset.year = e, 2149 t.textContent = e, 2150 e += 1 2151 }) 2152 } 2153 function t() { 2154 var e = document.createElement("p"); 2155 e.style.width = "100%", 2156 e.style.height = "200px"; 2157 var t = document.createElement("div"); 2158 t.style.position = "absolute", 2159 t.style.top = "0px",
2160 t.style.left = "0px", 2161 t.style.visibility = "hidden", 2162 t.style.width = "200px", 2163 t.style.height = "150px", 2164 t.style.overflow = "hidden", 2165 t.appendChild(e), 2166 document.body.appendChild(t); 2167 var l = e.offsetWidth; 2168 t.style.overflow = "scroll"; 2169 var r = e.offsetWidth; 2170 return l == r && (r = t.clientWidth), 2171 document.body.removeChild(t), 2172 l - r 2173 } 2174 function l(e) { 2175 var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : 0; 2176 return new Swiper(e,{ 2177 lazy: { 2178 loadPrevNext: !0, 2179 loadPrevNextAmount: 4 2180 }, 2181 slidesPerView: 1, 2182 spaceBetween: 0, 2183 grabCursor: !1, 2184 allowTouchMove: !1, 2185 speed: 500, 2186 freeMode: !0, 2187 observer: !0, 2188 observeParents: !0, 2189 initialSlide: t, 2190 breakpoints: {}, 2191 navigation: { 2192 nextEl: ".swiper-button-next", 2193 prevEl: ".swiper-button-prev" 2194 } 2195 }) 2196 } 2197 function r() { 2198 _.update(), 2199 M.update(), 2200 v = t(), 2201 console.log("update") 2202 } 2203 function a() { 2204 var e = new Date(H,E + 1,0).getDate() 2205 , t = 0 === new Date("".concat(H, "/").concat(E + 1, "/01")).getDay() ? 7 : new Date("".concat(H, "/").concat(E + 1, "/01")).getDay() 2206 , l = 0 === new Date("".concat(H, "/").concat(E + 1, "/").concat(e)).getDay() ? 7 : new Date("".concat(H, "/").concat(E + 1, "/").concat(e)).getDay() 2207 , r = new Date(H,E,0).getDate() 2208 , a = !(k.getMonth() != E) 2209 , o = !(k.getFullYear() != H) 2210 , n = !!(k.getMonth() > E) 2211 , s = !!(k.getFullYear() > H) 2212 , d = ""; 2213 if (1 !== t) { 2214 console.log("prevDays", r, "day", t); 2215 for (var c = r - t + 1; c < r; c++) 2216 d += "<div class=\"day unabled hide\"><span>".concat(c + 1, "</span></div>") 2217 } 2218 for (var u, p = 0; p < e; p++) 2219 u = "<div data-date=\"".concat(H, "-").concat(E + 1, "-").concat(p + 1, "\" class=\"day\"><span>").concat(p + 1, "</span></div>"), 2220 a && o && A > p + 1 && (u = "<div class=\"day unabled\"><span>".concat(p + 1, "</span></div>")), 2221 a && o && A == p + 1 && (u = "<div class=\"day current\"><span>".concat(p + 1, "</span></div>")), 2222 o && n && (u = "<div class=\"day unabled\"><span>".concat(p + 1, "</span></div>")), 2223 s && (u = "<div class=\"day unabled\"><span>".concat(p + 1, "</span></div>")), 2224 d += u; 2225 if (7 !== l) 2226 for (var h = 0; h < 7 - l; h++) 2227 d += "<div class=\"day unabled hide\"><span>".concat(h + 1, "</span></div>"); 2228 y.innerHTML = d, 2229 console.log("day", t) 2230 } 2231 function o() { 2232 document.addEventListener("click", function(t) { 2233 var e = t.target.closest(".day[data-date]"); 2234 if (e) { 2235 var l = e.dataset.date || !1; 2236 if (l) { 2237 var r = document.querySelector(".day.chosen[data-date]") || !1; 2238 r && e !== r && r.classList.remove("chosen"), 2239 e.classList.toggle("chosen") 2240 } 2241 } 2242 }) 2243 } 2244 function n() { 2245 var e = 0 < arguments.length && arguments[0] !== void 0 ? arguments[0] : "hide"; 2246 "show" == e && (document.body.style.overflow = "hidden", 2247 L.style.paddingRight = v + "px", 2248 b.style.paddingRight = v + "px", 2249 m.classList.add("show"), 2250 m.classList.add("to_show")), 2251 "hide" == e && (m.classList.remove("show"), 2252 m.classList.remove("to_show"), 2253 m.classList.remove("to_hide"), 2254 document.body.style.overflow = "auto", 2255 L.style.paddingRight = 0, 2256 b.style.paddingRight = 0) 2257 } 2258 function i() { 2259 m.classList.add("to_hide"), 2260 setTimeout(n, 300) 2261 } 2262 function s() { 2263 n("show"), 2264 C && (C = !1, 2265 setTimeout(h, 150)) 2266 } 2267 function d() { 2268 q.addEventListener("click", i) 2269 } 2270 function c() { 2271 f.addEventListener("click", function() { 2272 var e = !!document.querySelector(".day.chosen[data-date]") && document.querySelector(".day.chosen[data-date]").dataset.date 2273 , t = document.querySelector("input[name=\"date\"]") 2274 , l = t.previousElementSibling; 2275 return e ? void (l.classList.add("up"), 2276 t.value = e, 2277 i()) : (console.log("asd"), 2278 l.classList.remove("up"), 2279 t.value = null, 2280 void i()) 2281 }) 2282 } 2283 function u() { 2284 g && g.addEventListener("click", s) 2285 } 2286 function p() { 2287 m.addEventListener("click", function(t) { 2288 t.target.classList.contains("calendar_pop_up") && i() 2289 }) 2290 } 2291 function h() { 2292 _ = l(".swiper.mounth", S.findIndex(function(e) { 2293 return e.dataset.mounth == k.getMonth() 2294 })), 2295 M = l(".swiper.years", x.findIndex(function(e) { 2296 return e.dataset.year == k.getFullYear() 2297 })), 2298 _.on("slideChangeTransitionEnd", function() { 2299 E = +S[this.realIndex].dataset.mounth, 2300 a() 2301 }), 2302 M.on("slideChangeTransitionEnd", function() { 2303 H = +x[this.realIndex].dataset.year, 2304 a() 2305 }), 2306 window.addEventListener("resize", r) 2307 } 2308 if (document.querySelector(".calendar_pop_up")) { 2309 var m = document.querySelector(".calendar_pop_up") 2310 , y = document.querySelector(".calendar_pop_up .days") 2311 , f = m.querySelector(".select_dates") 2312 , g = document.querySelector(".mock-input") || !1 2313 , v = t() 2314 , C = !0 2315 , b = document.querySelector(".header") 2316 , w = document.querySelector("header") 2317 , L = document.querySelector(".wrapper") 2318 , q = m.querySelector(".close_popup_btn") 2319 , S = Array.from(m.querySelectorAll(".swiper.mounth .swiper-slide")) 2320 , x = Array.from(m.querySelectorAll(".swiper.years .swiper-slide")) 2321 , k = new Date 2322 , E = k.getMonth() 2323 , H = k.getFullYear() 2324 , A = k.getDate(); 2325 e(); 2326 var _ = null 2327 , M = null; 2328 a(), 2329 o(), 2330 c(), 2331 u(), 2332 p(), 2333 d() 2334 } 2335} 2336calendarNew();
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.