1"use strict"; 2 3function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } 4 5!function (e) { 6 var r = {}; 7 8 function t(o) { 9 if (r[o]) return r[o].exports; 10 var n = r[o] = { 11 i: o, 12 l: !1, 13 exports: {} 14 }; 15 return e[o].call(n.exports, n, n.exports, t), n.l = !0, n.exports; 16 } 17 18 t.m = e, t.c = r, t.d = function (e, r, o) { 19 t.o(e, r) || Object.defineProperty(e, r, { 20 enumerable: !0, 21 get: o 22 }); 23 }, t.r = function (e) { 24 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { 25 value: "Module" 26 }), Object.defineProperty(e, "__esModule", { 27 value: !0 28 }); 29 }, t.t = function (e, r) { 30 if (1 & r && (e = t(e)), 8 & r) return e; 31 if (4 & r && "object" == _typeof(e) && e && e.__esModule) return e; 32 var o = Object.create(null); 33 if (t.r(o), Object.defineProperty(o, "default", { 34 enumerable: !0, 35 value: e 36 }), 2 & r && "string" != typeof e) for (var n in e) { 37 t.d(o, n, function (r) { 38 return e[r]; 39 }.bind(null, n)); 40 } 41 return o; 42 }, t.n = function (e) { 43 var r = e && e.__esModule ? function () { 44 return e.default; 45 } : function () { 46 return e; 47 }; 48 return t.d(r, "a", r), r; 49 }, t.o = function (e, r) { 50 return Object.prototype.hasOwnProperty.call(e, r); 51 }, t.p = "", t(t.s = 102); 52}({ 53 102: function _(e, r, t) { 54 e.exports = t(103); 55 }, 56 103: function _(e, r, t) { 57 "use strict"; 58 59 t.r(r); 60 var o = t(20); 61 62 (function (e) { 63 parseInt(e.user_id, 10) && sessionStorage.orderId ? document.body.classList.add("logged-in") : document.body.classList.remove("logged-in"); 64 var r = document.querySelectorAll(".myorder a"); 65 r && r.forEach(function (r) { 66 e.login_order_id ? r.href = drupalSettings.utilityNav.myOrderBasePath.concat(e.login_order_id) : r.classList.add("u-hide"); 67 }); 68 })({ 69 user_id: o.a.getUserCookie(), 70 login_order_id: o.a.getOrderCookie() 71 }); 72 }, 73 20: function _(e, r, t) { 74 "use strict"; 75 76 function o(e) { 77 var r = document.cookie; 78 if ("" === r) return null; 79 var t = r.split("; ").find(function (r) { 80 return r.startsWith("".concat(e, "=")); 81 }); 82 return t ? t.split("=")[1] : null; 83 } 84 85 r.a = { 86 isLoggedIn: function isLoggedIn() { 87 var e = o("order"), 88 r = e ? parseInt(e, 10) : 0; 89 return !Number.isNaN(r) && r > 1; 90 }, 91 getUserCookie: function getUserCookie() { 92 return o("user"); 93 }, 94 getOrderCookie: function getOrderCookie() { 95 return o("order"); 96 }, 97 getCookie: o 98 }; 99 } 100});
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.