").append(a.replace(cr, "")).find(e) : a) }), this }, p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (a, b) { p.fn[b] = function (a) { return this.on(b, a) } }), p.each(["get", "post"], function (a, c) { p[c] = function (a, d, e, f) { return p.isFunction(d) && (f = f || e, e = d, d = b), p.ajax({ type: c, url: a, data: d, success: e, dataType: f }) } }), p.extend({ getScript: function (a, c) { return p.get(a, b, c, "script") }, getJSON: function (a, b, c) { return p.get(a, b, c, "json") }, ajaxSetup: function (a, b) { return b ? cB(a, p.ajaxSettings) : (b = a, a = p.ajaxSettings), cB(a, b), a }, ajaxSettings: { url: cj, isLocal: cn.test(ck[1]), global: !0, type: "GET", contentType: "application/x-www-form-urlencoded; charset=UTF-8", processData: !0, async: !0, accepts: { xml: "application/xml, text/xml", html: "text/html", text: "text/plain", json: "application/json, text/javascript", "*": cx }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText" }, converters: { "* text": a.String, "text html": !0, "text json": p.parseJSON, "text xml": p.parseXML }, flatOptions: { context: !0, url: !0 } }, ajaxPrefilter: cz(cv), ajaxTransport: cz(cw), ajax: function (a, c) { function y(a, c, f, i) { var k, s, t, u, w, y = c; if (v === 2) return; v = 2, h && clearTimeout(h), g = b, e = i || "", x.readyState = a > 0 ? 4 : 0, f && (u = cC(l, x, f)); if (a >= 200 && a < 300 || a === 304) l.ifModified && (w = x.getResponseHeader("Last-Modified"), w && (p.lastModified[d] = w), w = x.getResponseHeader("Etag"), w && (p.etag[d] = w)), a === 304 ? (y = "notmodified", k = !0) : (k = cD(l, u), y = k.state, s = k.data, t = k.error, k = !t); else { t = y; if (!y || a) y = "error", a < 0 && (a = 0) } x.status = a, x.statusText = "" + (c || y), k ? o.resolveWith(m, [s, y, x]) : o.rejectWith(m, [x, y, t]), x.statusCode(r), r = b, j && n.trigger("ajax" + (k ? "Success" : "Error"), [x, l, k ? s : t]), q.fireWith(m, [x, y]), j && (n.trigger("ajaxComplete", [x, l]), --p.active || p.event.trigger("ajaxStop")) } typeof a == "object" && (c = a, a = b), c = c || {}; var d, e, f, g, h, i, j, k, l = p.ajaxSetup({}, c), m = l.context || l, n = m !== l && (m.nodeType || m instanceof p) ? p(m) : p.event, o = p.Deferred(), q = p.Callbacks("once memory"), r = l.statusCode || {}, t = {}, u = {}, v = 0, w = "canceled", x = { readyState: 0, setRequestHeader: function (a, b) { if (!v) { var c = a.toLowerCase(); a = u[c] = u[c] || a, t[a] = b } return this }, getAllResponseHeaders: function () { return v === 2 ? e : null }, getResponseHeader: function (a) { var c; if (v === 2) { if (!f) { f = {}; while (c = cm.exec(e)) f[c[1].toLowerCase()] = c[2] } c = f[a.toLowerCase()] } return c === b ? null : c }, overrideMimeType: function (a) { return v || (l.mimeType = a), this }, abort: function (a) { return a = a || w, g && g.abort(a), y(0, a), this } }; o.promise(x), x.success = x.done, x.error = x.fail, x.complete = q.add, x.statusCode = function (a) { if (a) { var b; if (v < 2) for (b in a) r[b] = [r[b], a[b]]; else b = a[x.status], x.always(b) } return this }, l.url = ((a || l.url) + "").replace(cl, "").replace(cp, ck[1] + "//"), l.dataTypes = p.trim(l.dataType || "*").toLowerCase().split(s), l.crossDomain == null && (i = ct.exec(l.url.toLowerCase()), l.crossDomain = !(!i || i[1] == ck[1] && i[2] == ck[2] && (i[3] || (i[1] === "http:" ? 80 : 443)) == (ck[3] || (ck[1] === "http:" ? 80 : 443)))), l.data && l.processData && typeof l.data != "string" && (l.data = p.param(l.data, l.traditional)), cA(cv, l, c, x); if (v === 2) return x; j = l.global, l.type = l.type.toUpperCase(), l.hasContent = !co.test(l.type), j && p.active++ === 0 && p.event.trigger("ajaxStart"); if (!l.hasContent) { l.data && (l.url += (cq.test(l.url) ? "&" : "?") + l.data, delete l.data), d = l.url; if (l.cache === !1) { var z = p.now(), A = l.url.replace(cs, "$1_=" + z); l.url = A + (A === l.url ? (cq.test(l.url) ? "&" : "?") + "_=" + z : "") } } (l.data && l.hasContent && l.contentType !== !1 || c.contentType) && x.setRequestHeader("Content-Type", l.contentType), l.ifModified && (d = d || l.url, p.lastModified[d] && x.setRequestHeader("If-Modified-Since", p.lastModified[d]), p.etag[d] && x.setRequestHeader("If-None-Match", p.etag[d])), x.setRequestHeader("Accept", l.dataTypes[0] && l.accepts[l.dataTypes[0]] ? l.accepts[l.dataTypes[0]] + (l.dataTypes[0] !== "*" ? ", " + cx + "; q=0.01" : "") : l.accepts["*"]); for (k in l.headers) x.setRequestHeader(k, l.headers[k]); if (!l.beforeSend || l.beforeSend.call(m, x, l) !== !1 && v !== 2) { w = "abort"; for (k in { success: 1, error: 1, complete: 1 }) x[k](l[k]); g = cA(cw, l, c, x); if (!g) y(-1, "No Transport"); else { x.readyState = 1, j && n.trigger("ajaxSend", [x, l]), l.async && l.timeout > 0 && (h = setTimeout(function () { x.abort("timeout") }, l.timeout)); try { v = 1, g.send(t, y) } catch (B) { if (v < 2) y(-1, B); else throw B } } return x } return x.abort() }, active: 0, lastModified: {}, etag: {} }); var cE = [], cF = /\?/, cG = /(=)\?(?=&|$)|\?\?/, cH = p.now(); p.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { var a = cE.pop() || p.expando + "_" + cH++; return this[a] = !0, a } }), p.ajaxPrefilter("json jsonp", function (c, d, e) { var f, g, h, i = c.data, j = c.url, k = c.jsonp !== !1, l = k && cG.test(j), m = k && !l && typeof i == "string" && !(c.contentType || "").indexOf("application/x-www-form-urlencoded") && cG.test(i); if (c.dataTypes[0] === "jsonp" || l || m) return f = c.jsonpCallback = p.isFunction(c.jsonpCallback) ? c.jsonpCallback() : c.jsonpCallback, g = a[f], l ? c.url = j.replace(cG, "$1" + f) : m ? c.data = i.replace(cG, "$1" + f) : k && (c.url += (cF.test(j) ? "&" : "?") + c.jsonp + "=" + f), c.converters["script json"] = function () { return h || p.error(f + " was not called"), h[0] }, c.dataTypes[0] = "json", a[f] = function () { h = arguments }, e.always(function () { a[f] = g, c[f] && (c.jsonpCallback = d.jsonpCallback, cE.push(f)), h && p.isFunction(g) && g(h[0]), h = g = b }), "script" }), p.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /javascript|ecmascript/ }, converters: { "text script": function (a) { return p.globalEval(a), a } } }), p.ajaxPrefilter("script", function (a) { a.cache === b && (a.cache = !1), a.crossDomain && (a.type = "GET", a.global = !1) }), p.ajaxTransport("script", function (a) { if (a.crossDomain) { var c, d = e.head || e.getElementsByTagName("head")[0] || e.documentElement; return { send: function (f, g) { c = e.createElement("script"), c.async = "async", a.scriptCharset && (c.charset = a.scriptCharset), c.src = a.url, c.onload = c.onreadystatechange = function (a, e) { if (e || !c.readyState || /loaded|complete/.test(c.readyState)) c.onload = c.onreadystatechange = null, d && c.parentNode && d.removeChild(c), c = b, e || g(200, "success") }, d.insertBefore(c, d.firstChild) }, abort: function () { c && c.onload(0, 1) } } } }); var cI, cJ = a.ActiveXObject ? function () { for (var a in cI) cI[a](0, 1) } : !1, cK = 0; p.ajaxSettings.xhr = a.ActiveXObject ? function () { return !this.isLocal && cL() || cM() } : cL, function (a) { p.extend(p.support, { ajax: !!a, cors: !!a && "withCredentials" in a }) }(p.ajaxSettings.xhr()), p.support.ajax && p.ajaxTransport(function (c) { if (!c.crossDomain || p.support.cors) { var d; return { send: function (e, f) { var g, h, i = c.xhr(); c.username ? i.open(c.type, c.url, c.async, c.username, c.password) : i.open(c.type, c.url, c.async); if (c.xhrFields) for (h in c.xhrFields) i[h] = c.xhrFields[h]; c.mimeType && i.overrideMimeType && i.overrideMimeType(c.mimeType), !c.crossDomain && !e["X-Requested-With"] && (e["X-Requested-With"] = "XMLHttpRequest"); try { for (h in e) i.setRequestHeader(h, e[h]) } catch (j) { } i.send(c.hasContent && c.data || null), d = function (a, e) { var h, j, k, l, m; try { if (d && (e || i.readyState === 4)) { d = b, g && (i.onreadystatechange = p.noop, cJ && delete cI[g]); if (e) i.readyState !== 4 && i.abort(); else { h = i.status, k = i.getAllResponseHeaders(), l = {}, m = i.responseXML, m && m.documentElement && (l.xml = m); try { l.text = i.responseText } catch (a) { } try { j = i.statusText } catch (n) { j = "" } !h && c.isLocal && !c.crossDomain ? h = l.text ? 200 : 404 : h === 1223 && (h = 204) } } } catch (o) { e || f(-1, o) } l && f(h, j, l, k) }, c.async ? i.readyState === 4 ? setTimeout(d, 0) : (g = ++cK, cJ && (cI || (cI = {}, p(a).unload(cJ)), cI[g] = d), i.onreadystatechange = d) : d() }, abort: function () { d && d(0, 1) } } } }); var cN, cO, cP = /^(?:toggle|show|hide)$/, cQ = new RegExp("^(?:([-+])=|)(" + q + ")([a-z%]*)$", "i"), cR = /queueHooks$/, cS = [cY], cT = { "*": [function (a, b) { var c, d, e, f = this.createTween(a, b), g = cQ.exec(b), h = f.cur(), i = +h || 0, j = 1; if (g) { c = +g[2], d = g[3] || (p.cssNumber[a] ? "" : "px"); if (d !== "px" && i) { i = p.css(f.elem, a, !0) || c || 1; do e = j = j || ".5", i = i / j, p.style(f.elem, a, i + d), j = f.cur() / h; while (j !== 1 && j !== e) } f.unit = d, f.start = i, f.end = g[1] ? i + (g[1] + 1) * c : c } return f }] }; p.Animation = p.extend(cW, { tweener: function (a, b) { p.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" "); var c, d = 0, e = a.length; for (; d < e; d++)c = a[d], cT[c] = cT[c] || [], cT[c].unshift(b) }, prefilter: function (a, b) { b ? cS.unshift(a) : cS.push(a) } }), p.Tween = cZ, cZ.prototype = { constructor: cZ, init: function (a, b, c, d, e, f) { this.elem = a, this.prop = c, this.easing = e || "swing", this.options = b, this.start = this.now = this.cur(), this.end = d, this.unit = f || (p.cssNumber[c] ? "" : "px") }, cur: function () { var a = cZ.propHooks[this.prop]; return a && a.get ? a.get(this) : cZ.propHooks._default.get(this) }, run: function (a) { var b, c = cZ.propHooks[this.prop]; return this.options.duration ? this.pos = b = p.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : this.pos = b = a, this.now = (this.end - this.start) * b + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : cZ.propHooks._default.set(this), this } }, cZ.prototype.init.prototype = cZ.prototype, cZ.propHooks = { _default: { get: function (a) { var b; return a.elem[a.prop] == null || !!a.elem.style && a.elem.style[a.prop] != null ? (b = p.css(a.elem, a.prop, !1, ""), !b || b === "auto" ? 0 : b) : a.elem[a.prop] }, set: function (a) { p.fx.step[a.prop] ? p.fx.step[a.prop](a) : a.elem.style && (a.elem.style[p.cssProps[a.prop]] != null || p.cssHooks[a.prop]) ? p.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now } } }, cZ.propHooks.scrollTop = cZ.propHooks.scrollLeft = { set: function (a) { a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now) } }, p.each(["toggle", "show", "hide"], function (a, b) { var c = p.fn[b]; p.fn[b] = function (d, e, f) { return d == null || typeof d == "boolean" || !a && p.isFunction(d) && p.isFunction(e) ? c.apply(this, arguments) : this.animate(c$(b, !0), d, e, f) } }), p.fn.extend({ fadeTo: function (a, b, c, d) { return this.filter(bZ).css("opacity", 0).show().end().animate({ opacity: b }, a, c, d) }, animate: function (a, b, c, d) { var e = p.isEmptyObject(a), f = p.speed(b, c, d), g = function () { var b = cW(this, p.extend({}, a), f); e && b.stop(!0) }; return e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g) }, stop: function (a, c, d) { var e = function (a) { var b = a.stop; delete a.stop, b(d) }; return typeof a != "string" && (d = c, c = a, a = b), c && a !== !1 && this.queue(a || "fx", []), this.each(function () { var b = !0, c = a != null && a + "queueHooks", f = p.timers, g = p._data(this); if (c) g[c] && g[c].stop && e(g[c]); else for (c in g) g[c] && g[c].stop && cR.test(c) && e(g[c]); for (c = f.length; c--;)f[c].elem === this && (a == null || f[c].queue === a) && (f[c].anim.stop(d), b = !1, f.splice(c, 1)); (b || !d) && p.dequeue(this, a) }) } }), p.each({ slideDown: c$("show"), slideUp: c$("hide"), slideToggle: c$("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function (a, b) { p.fn[a] = function (a, c, d) { return this.animate(b, a, c, d) } }), p.speed = function (a, b, c) { var d = a && typeof a == "object" ? p.extend({}, a) : { complete: c || !c && b || p.isFunction(a) && a, duration: a, easing: c && b || b && !p.isFunction(b) && b }; d.duration = p.fx.off ? 0 : typeof d.duration == "number" ? d.duration : d.duration in p.fx.speeds ? p.fx.speeds[d.duration] : p.fx.speeds._default; if (d.queue == null || d.queue === !0) d.queue = "fx"; return d.old = d.complete, d.complete = function () { p.isFunction(d.old) && d.old.call(this), d.queue && p.dequeue(this, d.queue) }, d }, p.easing = { linear: function (a) { return a }, swing: function (a) { return .5 - Math.cos(a * Math.PI) / 2 } }, p.timers = [], p.fx = cZ.prototype.init, p.fx.tick = function () { var a, b = p.timers, c = 0; for (; c < b.length; c++)a = b[c], !a() && b[c] === a && b.splice(c--, 1); b.length || p.fx.stop() }, p.fx.timer = function (a) { a() && p.timers.push(a) && !cO && (cO = setInterval(p.fx.tick, p.fx.interval)) }, p.fx.interval = 13, p.fx.stop = function () { clearInterval(cO), cO = null }, p.fx.speeds = { slow: 600, fast: 200, _default: 400 }, p.fx.step = {}, p.expr && p.expr.filters && (p.expr.filters.animated = function (a) { return p.grep(p.timers, function (b) { return a === b.elem }).length }); var c_ = /^(?:body|html)$/i; p.fn.offset = function (a) { if (arguments.length) return a === b ? this : this.each(function (b) { p.offset.setOffset(this, a, b) }); var c, d, e, f, g, h, i, j, k, l, m = this[0], n = m && m.ownerDocument; if (!n) return; return (e = n.body) === m ? p.offset.bodyOffset(m) : (d = n.documentElement, p.contains(d, m) ? (c = m.getBoundingClientRect(), f = da(n), g = d.clientTop || e.clientTop || 0, h = d.clientLeft || e.clientLeft || 0, i = f.pageYOffset || d.scrollTop, j = f.pageXOffset || d.scrollLeft, k = c.top + i - g, l = c.left + j - h, { top: k, left: l }) : { top: 0, left: 0 }) }, p.offset = { bodyOffset: function (a) { var b = a.offsetTop, c = a.offsetLeft; return p.support.doesNotIncludeMarginInBodyOffset && (b += parseFloat(p.css(a, "marginTop")) || 0, c += parseFloat(p.css(a, "marginLeft")) || 0), { top: b, left: c } }, setOffset: function (a, b, c) { var d = p.css(a, "position"); d === "static" && (a.style.position = "relative"); var e = p(a), f = e.offset(), g = p.css(a, "top"), h = p.css(a, "left"), i = (d === "absolute" || d === "fixed") && p.inArray("auto", [g, h]) > -1, j = {}, k = {}, l, m; i ? (k = e.position(), l = k.top, m = k.left) : (l = parseFloat(g) || 0, m = parseFloat(h) || 0), p.isFunction(b) && (b = b.call(a, c, f)), b.top != null && (j.top = b.top - f.top + l), b.left != null && (j.left = b.left - f.left + m), "using" in b ? b.using.call(a, j) : e.css(j) } }, p.fn.extend({ position: function () { if (!this[0]) return; var a = this[0], b = this.offsetParent(), c = this.offset(), d = c_.test(b[0].nodeName) ? { top: 0, left: 0 } : b.offset(); return c.top -= parseFloat(p.css(a, "marginTop")) || 0, c.left -= parseFloat(p.css(a, "marginLeft")) || 0, d.top += parseFloat(p.css(b[0], "borderTopWidth")) || 0, d.left += parseFloat(p.css(b[0], "borderLeftWidth")) || 0, { top: c.top - d.top, left: c.left - d.left } }, offsetParent: function () { return this.map(function () { var a = this.offsetParent || e.body; while (a && !c_.test(a.nodeName) && p.css(a, "position") === "static") a = a.offsetParent; return a || e.body }) } }), p.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function (a, c) { var d = /Y/.test(c); p.fn[a] = function (e) { return p.access(this, function (a, e, f) { var g = da(a); if (f === b) return g ? c in g ? g[c] : g.document.documentElement[e] : a[e]; g ? g.scrollTo(d ? p(g).scrollLeft() : f, d ? f : p(g).scrollTop()) : a[e] = f }, a, e, arguments.length, null) } }), p.each({ Height: "height", Width: "width" }, function (a, c) { p.each({ padding: "inner" + a, content: c, "": "outer" + a }, function (d, e) { p.fn[e] = function (e, f) { var g = arguments.length && (d || typeof e != "boolean"), h = d || (e === !0 || f === !0 ? "margin" : "border"); return p.access(this, function (c, d, e) { var f; return p.isWindow(c) ? c.document.documentElement["client" + a] : c.nodeType === 9 ? (f = c.documentElement, Math.max(c.body["scroll" + a], f["scroll" + a], c.body["offset" + a], f["offset" + a], f["client" + a])) : e === b ? p.css(c, d, e, h) : p.style(c, d, e, h) }, c, g ? e : b, g, null) } }) }), a.jQuery = a.$ = p, typeof define == "function" && define.amd && define.amd.jQuery && define("jquery", [], function () { return p }) })(window); //Location JS function TimeBasedPopup() { $(".btnClickForTime").click(), $("#myModalForTime").css("display", "flex"), setCookie("isDisplayTimePopup", !0, 365) } function getWeekDays(e, t, o, a) { var i, n; "Monday" == t ? 1 == e ? i = "Monday" : 2 == e ? i = "понедельник" : 3 == e && (i = "Дүйсенбі") : "Tuesday" == t ? 1 == e ? i = "Tuesday" : 2 == e ? i = "вторник" : 3 == e && (i = "Сейсенбі") : "Wednesday" == t ? 1 == e ? i = "Wednesday" : 2 == e ? i = "среда" : 3 == e && (i = "Сәрсенбі") : "Thursday" == t ? 1 == e ? i = "Thursday" : 2 == e ? i = "Четверг" : 3 == e && (i = "Бейсенбі") : "Friday" == t ? 1 == e ? i = "Friday" : 2 == e ? i = "пятница" : 3 == e && (i = "Жұма") : "Saturday" == t && (1 == e ? i = "Saturday" : 2 == e ? i = "суббота" : 3 == e && (i = "Сенбі")), "Monday" == o ? 1 == e ? n = "Monday" : 2 == e ? n = "понедельник" : 3 == e && (n = "Дүйсенбі") : "Tuesday" == o ? 1 == e ? n = "Tuesday" : 2 == e ? n = "вторник" : 3 == e && (n = "Сейсенбі") : "Wednesday" == o ? 1 == e ? n = "Wednesday" : 2 == e ? n = "среда" : 3 == e && (n = "Сәрсенбі") : "Thursday" == o ? 1 == e ? n = "Thursday" : 2 == e ? n = "Четверг" : 3 == e && (n = "Бейсенбі") : "Friday" == o ? 1 == e ? n = "Friday" : 2 == e ? n = "пятница" : 3 == e && (n = "Жұма") : "Saturday" == o && (1 == e ? n = "Saturday" : 2 == e ? n = "суббота" : 3 == e && (n = "Сенбі")), $("#divLocationDetails").find(".WorkingStartDay").html(i.slice(0, 3) + " - " + n.slice(0, 3) + " " + a) } function GetLocations(e) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/Default.aspx/GetLocation", dataType: "json", success: function (t) { var o = t.d.split("#*"), a = o[0], i = o[1]; $("#divLocation a").remove(); for (var n = 0; n < JSON.parse(a).length; n++)if (1 == e) { JSON.parse(a)[n].LocationName; var s = JSON.parse(a)[n].ID, d = document.getElementById("divLocation"); (r = document.createElement("a")).setAttribute("href", "#"), r.AutoPostBack = !0, 1 == s ? 1 == i ? r.innerText = "Nur-sultan" : 2 == i ? r.innerText = "Нур-султан" : 3 == i && (r.innerText = "Нұр-сұлтан") : 2 == s && (1 == i ? r.innerText = "Almaty" : 2 == i ? r.innerText = "Алматы" : 3 == i && (r.innerText = "Алматы")), r.setAttribute("data-id", s), d.appendChild(r) } else { JSON.parse(a)[n].LocationName, s = JSON.parse(a)[n].ID, d = document.getElementById("divLocation1"); var r, c = document.createElement("li"); (r = document.createElement("a")).setAttribute("href", "#"), r.setAttribute("data-id", s), r.AutoPostBack = !0, 1 == s ? 1 == i ? r.innerText = "Nur-sultan" : 2 == i ? r.innerText = "Нур-султан" : 3 == i && (r.innerText = "Нұр-сұлтан") : 2 == s && (1 == i ? r.innerText = "Almaty" : 2 == i ? r.innerText = "Алматы" : 3 == i && (r.innerText = "Алматы")), c.appendChild(r), d.appendChild(c) } } }) } function ChatDetails(e, t) { var o = { whatsapp: e, call: t, call_to_action: "Message us", button_color: "#FF6550", position: "right", order: "whatsapp,call" }, a = document.location.protocol, i = a + "//static.getbutton.io", n = document.createElement("script"); n.type = "text/javascript", n.async = !0, n.src = i + "/widget-send-button/js/init.js", n.onload = function () { WhWidgetSendButton.init("getbutton.io", a, o) }; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(n, s) } function setCookie(e, t, o) { var a = ""; if (o) { var i = new Date; i.setTime(i.getTime() + 31536e6), a = "; expires=" + i.toUTCString() } document.cookie = e + "=" + (t || "") + a + "; path=/" } function getCookie(e) { for (var t = e + "=", o = document.cookie.split(";"), a = 0; a < o.length; a++) { for (var i = o[a]; " " == i.charAt(0);)i = i.substring(1, i.length); if (0 == i.indexOf(t)) return i.substring(t.length, i.length) } return null } function eraseCookie(e) { document.cookie = e + "=; Max-Age=-99999999;" } $(document).ready(function () { $(".searchicon").click(function (e) { e.stopPropagation(), $(".midpart").hide(), $("#navigation").hide(), $(".search").toggle(100) }), $(".doticon").click(function (e) { e.stopPropagation(), $(".search").hide(), $("#navigation").hide(), $(".midpart").toggle(100) }), $(".header-menu-slide").click(function (e) { e.stopPropagation(), $(".search").hide(), $(".midpart").hide() }), document.referrer.indexOf(window.location.hostname) < 0 && (setCookie("IspopupDisplay", !1, 365), setCookie("isDisplayTimePopup", !1, 365)); var e = 0, t = getCookie("LocationID"); e = null == t || "" == t || "0" == t ? 1 : t, GetLocations(0), $.ajax({ type: "POST", contentType: "application/json", url: "/Default.aspx/GetDetailsByLocation", dataType: "json", data: "{'locationid': '" + e + "'}", success: function (t) { if (JSON.parse(t.d).length > 0) { if (setCookie("LocationID", e, 365), "" == getCookie("IspopupDisplay") || null == getCookie("IspopupDisplay") || "false" == getCookie("IspopupDisplay")) { var o = window.location.pathname; 1 != JSON.parse(t.d)[0].Status || "/ru/home" != o.toLowerCase() && "/kz/home" != o.toLowerCase() && "/en/home" != o.toLowerCase() || ($(".btnClick").click(), $("#myModal").css("display", "flex"), setCookie("IspopupDisplay", !0, 365)) } var a = JSON.parse(t.d)[0].LangID; 1 == e ? 1 == a ? $("#LocationName").text("Nur-Sultan") : 2 == a ? $("#LocationName").text("Нур-султан") : 3 == a && $("#LocationName").text("Нұр-сұлтан") : 2 == e && (1 == a ? $("#LocationName").text("Almaty") : 2 == a ? $("#LocationName").text("Алматы") : 3 == a && $("#LocationName").text("Алматы")); var i = JSON.parse(t.d)[0].StorePhone1, n = JSON.parse(t.d)[0].StorePhone2, s = JSON.parse(t.d)[0].StorePhone3, d = JSON.parse(t.d)[0].StoreAddress; $("#divLocationDetails").find(".txtAddress").text(d), $("#divLocationDetails").find(".Phone1").text(i), $("#divLocationDetails").find(".Phone2").text(n), $("#divLocationDetails").find(".Phone3").text(s); var r = JSON.parse(t.d)[0].StartDay, c = JSON.parse(t.d)[0].EndDay, l = JSON.parse(t.d)[0].Starttime + " " + JSON.parse(t.d)[0].Endtime; $("#ForDeskTopView").find(".ViewAddressLocationbase").text(d), $("#ForMobileView").find(".ViewAddressLocationbase").text(d); var p, u = document.getElementById("StoreMobileNumber1"), m = document.getElementById("StoreMobileNumber"), h = $("#hdnIsMobile").val(); if ("" != i) (f = document.createElement("a")).setAttribute("href", "tel: +" + i), f.innerText = "+" + i, f.AutoPostBack = !0, f.appendChild(document.createElement("br")), "1" == h ? m.appendChild(f) : u.appendChild(f); if ("" != n) (f = document.createElement("a")).setAttribute("href", "tel: +" + n), f.innerText = "+" + n, f.AutoPostBack = !0, f.appendChild(document.createElement("br")), "1" == h ? m.appendChild(f) : u.appendChild(f); if ("" != s) (f = document.createElement("a")).setAttribute("href", "tel: +" + s), f.innerText = "+" + s, f.AutoPostBack = !0, "1" == h ? m.appendChild(f) : u.appendChild(f); if (getWeekDays(a, r, c, l), 1 == a ? p = "Sunday" : 2 == a ? p = "Воскресенье" : 3 == a && (p = "Жексенбі"), null != JSON.parse(t.d)[0].SundayStartTime) { var y = p + " " + JSON.parse(t.d)[0].SundayStartTime + " " + JSON.parse(t.d)[0].SundayEndTime; $("#divLocationDetails").find(".SundayStartTime").html(y) } var f, T = JSON.parse(t.d)[0].Logo, S = document.getElementById("logo"); (f = document.createElement("img")).setAttribute("src", "/Content/PopupLogo/" + T), S.appendChild(f), $("#Description").find(".DescriptionDetails").html(JSON.parse(t.d)[0].Details), ChatDetails(JSON.parse(t.d)[0].WhatsAppNumber, JSON.parse(t.d)[0].CallNumber) } else $(".contect_detail ul").hide() } }), $.ajax({ type: "POST", contentType: "application/json", url: "/Default.aspx/GetPopupOnLoad", dataType: "json", data: "{'locationid': '" + e + "'}", success: function (e) { if (JSON.parse(e.d).length > 0 && ("" == getCookie("isDisplayTimePopup") || null == getCookie("isDisplayTimePopup") || "false" == getCookie("isDisplayTimePopup"))) { var t = parseInt(JSON.parse(e.d)[0].PopupTime), o = JSON.parse(e.d)[0].Details; $("#divDetailsForTime").html(o), $("#PopTitleMsgForTime").text(JSON.parse(e.d)[0].Title), setTimeout(function () { TimeBasedPopup() }, 1e3 * t) } } }) }), $(document).on("click", ".btnClick", function () { GetLocations(1) }), $(document).on("click", "#divLocation a", function () { $("#btnclose").click(), setCookie("LocationID", $(this).attr("data-id"), 365); var e = window.location.href.split("/"); 0 == e[2].indexOf("localhost") || 0 == e[2].indexOf("27.109.4.58") ? window.location.href = "http://" + e[2] : window.location.href = "https://" + e[2] }), $(document).on("click", "#divLocation1 li a", function () { setCookie("LocationID", $(this).attr("data-id"), 365); var e = window.location.href.split("/"); 0 == e[2].indexOf("localhost") || 0 == e[2].indexOf("27.109.4.58") ? window.location.href = "http://" + e[2] : window.location.href = "https://" + e[2] }), $(document).on("click", "#btnclose", function () { $("#myModal").css("display", "none") }), $(document).on("click", "#btncloseForTime", function () { $("#myModalForTime").css("display", "none") });