1!function(t) { 2 "function" == typeof define && define.amd ? define("singleListing", t) : t() 3}(function() { 4 "use strict"; 5 var e, i, a, s, n, o, l, r, t, c, d, u, g, p, f, m; 6 MyListing.Helpers.css_escape = function(t) { 7 if (0 == arguments.length) 8 throw new TypeError("`CSS.escape` requires an argument."); 9 for (var e, i = String(t), n = i.length, a = -1, s = "", o = i.charCodeAt(0); ++a < n; ) 10 0 == (e = i.charCodeAt(a)) ? s += "�" : s += 1 <= e && e <= 31 || 127 == e || 0 == a && 48 <= e && e <= 57 || 1 == a && 48 <= e && e <= 57 && 45 == o ? "\\" + e.toString(16) + " " : (0 != a || 1 != n || 45 != e) && (128 <= e || 45 == e || 95 == e || 48 <= e && e <= 57 || 65 <= e && e <= 90 || 97 <= e && e <= 122) ? i.charAt(a) : "\\" + i.charAt(a); 11 return s 12 } 13 , 14 jQuery(function(n) { 15 var i = { 16 postid: n("#case27-post-id").val(), 17 authid: n("#case27-author-id").val() 18 }; 19 function a(e) { 20 var t; 21 (t = e).contents.hide(), 22 t.pagination.hide(), 23 t.loader.show(), 24 n.ajax({ 25 url: CASE27.mylisting_ajax_url + "&action=get_related_listings", 26 type: "GET", 27 dataType: "json", 28 data: { 29 listing_id: i.postid, 30 page: e.page, 31 field_key: e.field_key 32 }, 33 success: function(t) { 34 e.contents.html(t.html), 35 e.pagination.html(t.pagination), 36 e.menu_spinner.hide(), 37 e.counter.html(t.formatted_count).removeClass("hide"), 38 (t = e).loader.hide(), 39 t.contents.fadeIn(150), 40 t.pagination.fadeIn(150), 41 setTimeout(function() { 42 jQuery(".lf-background-carousel").owlCarousel({ 43 margin: 20, 44 items: 1, 45 loop: !0 46 }), 47 jQuery('[data-toggle="tooltip"]').tooltip({ 48 trigger: "hover" 49 }) 50 }, 10) 51 } 52 }) 53 } 54 n(".toggle-tab-type-related_listings").each(function(t, e) { 55 var i = {}; 56 i.menu = n(this), 57 i.id = i.menu.data("section-id"), 58 i.section = n("#listing_tab_" + i.id), 59 i.field_key = i.menu.data("options").field_key, 60 i.loader = i.section.find(".tab-loader"), 61 i.contents = i.section.find(".tab-contents"), 62 i.pagination = i.section.find(".tab-pagination"), 63 i.counter = i.menu.find(".items-counter"), 64 i.menu_spinner = i.menu.find(".tab-spinner"), 65 i.page = 0, 66 a(i), 67 i.pagination.on("click", "a", function(t) { 68 t.preventDefault(), 69 i.page = parseInt(n(this).data("page"), 10) - 1, 70 a(i) 71 }) 72 }) 73 }), 74 jQuery(function(n) { 75 var i = { 76 postid: n("#case27-post-id").val(), 77 authid: n("#case27-author-id").val() 78 }; 79 function a(e) { 80 var t; 81 (t = e).contents.hide(), 82 t.pagination.hide(), 83 t.loader.show(), 84 n.ajax({ 85 url: CASE27.ajax_url + "?action=mylisting_get_products&security=" + CASE27.ajax_nonce, 86 type: "POST", 87 dataType: "json", 88 data: { 89 products: e.products, 90 page: e.page, 91 author_id: i.authid 92 }, 93 success: function(t) { 94 e.contents.html(t.html), 95 e.pagination.html(t.pagination), 96 e.counter.html(t.formatted_count), 97 (t = e).loader.hide(), 98 t.contents.fadeIn(150), 99 t.pagination.fadeIn(150) 100 } 101 }) 102 } 103 n(".toggle-tab-type-store").each(function(t, e) { 104 var i = {}; 105 i.menu = n(this), 106 i.id = i.menu.data("section-id"), 107 i.section = n("#listing_tab_" + i.id), 108 i.loader = i.section.find(".store-loader"), 109 i.contents = i.section.find(".store-contents"), 110 i.pagination = i.section.find(".store-pagination"),
111 i.counter = i.menu.find(".items-counter"), 112 i.products = i.menu.data("options").products, 113 i.page = 0, 114 a(i), 115 i.pagination.on("click", "a", function(t) { 116 t.preventDefault(), 117 i.page = parseInt(n(this).data("page"), 10) - 1, 118 a(i) 119 }) 120 }) 121 }), 122 e = jQuery, 123 t = e(".ml-track-btn"), 124 i = e("#case27-post-id").val(), 125 t.each(function() { 126 e(this).on("click", function() { 127 var t = { 128 listing_id: i, 129 btn_id: e(this).attr("id") 130 }; 131 e.post(CASE27.mylisting_ajax_url + "&action=track_listing_button&security=" + CASE27.ajax_nonce, t, function(t) { 132 t.tracked || console.log("Could not log button click.") 133 }) 134 }) 135 }), 136 a = jQuery, 137 t = a(".add-to-i-cal"), 138 s = a("#case27-post-id").val(), 139 t.on("click", function(t) { 140 t.preventDefault(); 141 var t = a(this) 142 , e = t.data("event-id") 143 , t = t.parents(".event-dates-timeline") 144 , i = t.data("field") 145 , n = t.data("count") 146 , t = t.data("past-count"); 147 a.post(CASE27.mylisting_ajax_url + "&action=download_ical_calendar&security=" + CASE27.ajax_nonce, { 148 listing_id: s, 149 eventindex: e, 150 eventField: i, 151 eventCount: n, 152 eventPastCount: t 153 }, function(t) { 154 var e, i; 155 t.data ? (e = new Blob([t.data],{ 156 type: "text/Calendar" 157 }), 158 t = t.name + ".ics", 159 !!document.documentMode ? window.navigator.msSaveBlob(e, t) : (e = (window.URL || window.webkitURL).createObjectURL(e), 160 (i = a("<a />")).attr("download", t), 161 i.attr("href", e), 162 a("body").append(i), 163 i[0].click(), 164 a("body").remove(i))) : alert("Please try again.") 165 }) 166 }), 167 n = jQuery, 168 o = n(".listing-tab-toggle").first().data("section-id"), 169 n(".listing-tab-toggle").on("click", function(t) { 170 t.preventDefault(), 171 n(".profile-menu li.active").removeClass("active"), 172 n(this).parent().addClass("active"); 173 n(".listing-tab.tab-active"); 174 var t = n(this).data("section-id") 175 , e = (document.body.dataset.activeTab = t, 176 !0 !== MyListing.isListingPreview && history.replaceState(null, null, o === t ? " " : "#" + t), 177 n(".listing-tab#listing_tab_" + MyListing.Helpers.css_escape(t))); 178 setTimeout(function() { 179 e.trigger("mylisting:single:tab-switched"), 180 jQuery(document).trigger("mylisting/single:tab-switched") 181 }, 25) 182 }), 183 (l = jQuery)(".qa-internal-link a").on("click", function(t) { 184 var e = l(this).attr("href") 185 , e = l('.listing-tab-toggle[data-section-id="' + MyListing.Helpers.css_escape(e.substring(1)) + '"]'); 186 e.length && e.click() 187 }), 188 (r = jQuery)(".listing-tab-toggle.toggle-tab-type-main").each(function() { 189 var t = r(this).data("section-id") 190 , t = r(".listing-tab#listing_tab_" + MyListing.Helpers.css_escape(t)); 191 0 === r.trim(t.find(".row").html()).length && r(this).remove() 192 }), 193 t = jQuery, 194 m = window.location.hash.substr(1), 195 u = t(".listing-tab-toggle#listing_tab_" + MyListing.Helpers.css_escape(m) + "_toggle"), 196 (m.length && u.length ? u : t(".listing-tab-toggle")).first().click(), 197 (c = jQuery)(".listing-tab.tab-layout-masonry").on("mylisting:single:tab-switched", function() { 198 if (!c(this).hasClass("pre-init")) 199 return c(this).find(".listing-tab-grid").isotope("layout"); 200 c(this).removeClass("pre-init").find(".listing-tab-grid").isotope(c("body").hasClass("rtl") ? { 201 originLeft: !1 202 } : {}) 203 }), 204 d = MyListing.Helpers.debounce(function() { 205 c(".listing-tab.tab-layout-masonry:not(.pre-init) .listing-tab-grid").isotope("layout") 206 }, 100), 207 c(".listing-tab.tab-layout-masonry .grid-item").each(function(t, e) { 208 new ResizeSensor(e,d) 209 }), 210 jQuery(function(e) { 211 var i, n, a; 212 e("#report-listing-modal").length && (i = e("#report-listing-modal"), 213 n = i.find(".validation-message"), 214 a = e("#case27-post-id").val(), 215 i.find(".report-submit").on("click", function(t) { 216 t.preventDefault(), 217 n.hide(), 218 i.find(".sign-in-box").addClass("cts-processing-login"), 219 e.ajax({ 220 url: CASE27.ajax_url + "?action=report_listing&security=" + CASE27.ajax_nonce, 221 type: "POST", 222 dataType: "json", 223 data: { 224 listing_id: a, 225 content: i.find(".report-content").val() 226 }, 227 success: function(t) { 228 i.find(".sign-in-box").removeClass("cts-processing-login"), 229 "error" === t.status && n.html("<em>" + t.message + "</em>").show(), 230 "success" === t.status && i.find(".report-wrapper").html('<div class="submit-message"><em>' + t.message + "</em></div>") 231 } 232 }) 233 })), 234 e(".comments-list .comment .review-galleries .gallery-item img").on("click", function(t) { 235 t.preventDefault(); 236 var i = [] 237 , n = this 238 , a = 0; 239 e(this).parents(".review-galleries").find(".gallery-item img").each(function(t, e) { 240 if (!e.dataset.fullSizeSrc || !e.dataset.fullSizeWidth || !e.dataset.fullSizeHeight) 241 return !1; 242 e.dataset.fullWidth = e.dataset.fullSizeWidth, 243 e.dataset.fullHeight = e.dataset.fullSizeHeight, 244 i.push({ 245 src: e.dataset.fullSizeSrc, 246 w: e.dataset.fullWidth || 0, 247 h: e.dataset.fullHeight || 0, 248 el: e 249 }), 250 e == n && (a = t) 251 }), 252 new MyListing.PhotoSwipe(i,a) 253 }) 254 }), 255 g = document.querySelector(".listing-main-info"), 256 p = document.querySelector(".main-info-desktop"), 257 f = document.querySelector(".main-info-mobile"), 258 m = window.matchMedia("(max-width: 1200px)"), 259 /* g && p && f && (m.matches && f.appendChild(g), 260 u = function(t) { 261 (t.matches ? f : p).appendChild(g) 262 } 263 , 264 "function" == typeof m.addEventListener ? m.addEventListener("change", u) : m.addListener(u)),*/ 265 jQuery(function(s) { 266 var o = s("#case27-post-id").val(); 267 s(".comments-list-wrapper").each(function(t, e) { 268 var i = (e = s(e)).data("current-page") 269 , n = e.data("page-count") 270 , a = 1 < i ? "lower" : "upper"; 271 e.on("click", ".nav-links .load-more", function(t) { 272 t.preventDefault(), 273 "upper" == a ? i++ : i--, 274 e.addClass("loading-comments"), 275 s.get(CASE27.mylisting_ajax_url, { 276 action: "list_comments", 277 page: i, 278 post_id: o, 279 page_count: n, 280 direction: a 281 }, function(t) { 282 "string" == typeof t && ('<ul class="comments-list"></ul>' === t || t.length < 10 ? e.find(".nav-links .load-more").hide() : e.find("ul.comments-list").append(s(t).children())), 283 e.removeClass("loading-comments"), 284 ("lower" == a && i <= 1 || "upper" == a && n <= i) && e.find(".nav-links .load-more").hide() 285 }) 286 }) 287 }) 288 }), 289 jQuery(function(e) { 290 e(".hide-notification").click(function(t) { 291 t.preventDefault(), 292 e(t.target).parents(".listing-notifications").hide() 293 }) 294 }), 295 jQuery(".listing-tab").one("mylisting:single:tab-switched", function() { 296 jQuery(this).find("ins").each(function(t, e) { 297 "done" !== e.dataset.adsbygoogleStatus && (adsbygoogle = window.adsbygoogle || []).push({}) 298 }) 299 }) 300});
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.