PageSourceSearch

https://www.trimworkscarpentry.com/wp-content/themes/arteon/arteon/assets/scripts/arteon.js?ver=1.0.0

js trimworkscarpentry.com collected 2026-10-08 16:47:57 UTC 17,340 bytes, 411 lines download raw bytes

1!(function(e) {
2  function t(a) {
3    if (o[a]) return o[a].exports;
4    var r = (o[a] = { i: a, l: !1, exports: {} });
5    return e[a].call(r.exports, r, r.exports, t), (r.l = !0), r.exports;
6  }
7  var o = {};
8  (t.m = e),
9    (t.c = o),
10    (t.d = function(e, o, a) {
11      t.o(e, o) ||
12        Object.defineProperty(e, o, {
13          configurable: !1,
14          enumerable: !0,
15          get: a
16        });
17    }),
18    (t.n = function(e) {
19      var o =
20        e && e.__esModule
21          ? function() {
22              return e.default;
23            }
24          : function() {
25              return e;
26            };
27      return t.d(o, 'a', o), o;
28    }),
29    (t.o = function(e, t) {
30      return Object.prototype.hasOwnProperty.call(e, t);
31    }),
32    (t.p = ''),
33    t((t.s = 0));
34})([
35  function(e, t) {
36    jQuery(function(e) {
37      'use strict';
38      function t() {
39        e('#wpadminbar').length && (n = e('#wpadminbar').outerHeight());
40      }
41      function o() {
42        e('.m-primary-top-header').length &&
43          ((s = e('.m-primary-top-header').outerHeight()),
44          e('.l-primary-header--sticky, .l-primary-header--absolute').css(
45            'top',
46            s + 'px'
47          ),
48          e('.l-primary-header--default-wrapper').hasClass(
49            'l-primary-header--sticky'
50          ) && e('.l-primary-header').css('top', s + 'px'));
51      }
52      function a() {
53        var t, o;
54        (t = p.is(':visible') ? p : l),
55          (o = t.find('.l-primary-header').outerHeight()),
56          t.height(o),
57          o > 0 && (c = o),
58          t.hasClass('l-primary-header--absolute') &&
59            e('.o-hero__content').css('padding-top', c);
60      }
61      function r() {
62        var t, o, a;
63        (t = e(window).innerHeight()),
64          (a = e('.l-primary-footer').outerHeight()),
65          e('.l-primary-header--default-wrapper').hasClass(
66            'l-primary-header--absolute'
67          ) ||
68          e('.l-primary-header--responsive-wrapper').hasClass(
69            'l-primary-header--absolute'
70          )
71            ? ((o = t - n - s - a), e('.l-main-wrapper').css('min-height', o))
72            : ((o = t - n - s - c - a),
73              e('.l-main-wrapper').css('min-height', o));
74      }
75      function i() {
76        var t, o;
77        (t = e(window).innerHeight()),
78          e('.l-primary-header--default-wrapper').hasClass(
79            'l-primary-header--absolute'
80          ) ||
81          e('.l-primary-header--responsive-wrapper').hasClass(
82            'l-primary-header--absolute'
83          )
84            ? ((o = t - n - s), e('.t-404 .o-hero').css('height', o))
85            : ((o = t - n - s - c), e('.t-404 .o-hero').css('height', o));
86      }
87      var n = 0,
88        s = 0,
89        l = e('.l-primary-header--default-wrapper'),
90        p = e('.l-primary-header--responsive-wrapper'),
91        c = 0;
92      e('#wpadminbar').addClass('neuron-wpadminbar'),
93        t(),
94        o(),
95        a(),
96        r(),
97        i(),
98        e('.l-primary-header--responsive-wrapper').hasClass(
99          'l-primary-header--sticky'
100        ) && e('l-primary-header').css('top', s + 'px');
101      var d;
102      e('.m-header-default-menu li.menu-item-has-children').hover(
103        function() {
104          clearTimeout(d);
105          var t = e(this).children('.sub-menu'),
106            o = e(this).parents('.sub-menu'),
107            a = e(window).width();
108          ((o.length && o.hasClass('sub-menu--left')) ||
109            a - (t.offset().left + t.outerWidth() + 1) < 0) &&
110            t.addClass('sub-menu--left'),
111            t.addClass('active');
112        },
113        function() {
114          var t = e(this).children('.sub-menu');
115          t.removeClass('active'),
116            (d = setTimeout(
117              function() {
118                t.removeClass('sub-menu-left');
119              }.bind(this),
120              250
121            ));
122        }
123      ),
124        e('.menu-item.disabled > a').on('click', function(e) {
125          e.preventDefault();
126        }),
127        e('.menu-item').hasClass('m-mega-menu') &&
128          e('.m-header-default-menu').addClass('m-mega-menu-holder'),
129        e(
130          '<a href="#" class="menu-item-icon"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg></a>'
131        ).insertAfter(
132          '.l-primary-header--responsive__nav .menu-item-has-children > a'
133        ),
134        e('.l-primary-header--responsive__icon').on('click', function(t) {
135          t.stopPropagation(),
136            t.preventDefault(),
137            e('.l-primary-header--responsive__nav').toggleClass('active'),
138            e(
139              '.l-primary-header--responsive__nav .menu-item-has-children > .menu-item-icon'
140            ).removeClass('active'),
141            e('.l-primary-header--responsive__nav')
142              .find('.sub-menu')
143              .slideUp('fast');
144        }),
145        e(
146          '.l-primary-header--responsive__nav .menu-item-has-children > .menu-item-icon'
147        ).on('click', function(t) {
148          t.stopPropagation(),
149            t.preventDefault(),
150            e(this).toggleClass('active');
151          var o = e(this).next('ul'),
152            a = e(this)
153              .closest('ul')
154              .children('li');
155          a
156            .find('.sub-menu')
157            .not(o)
158            .slideUp('fast'),
159            a
160              .find('.menu-item-icon')
161              .not(this)
162              .removeClass('active'),
163            o.slideToggle('fast');
164        }),
165        e('.a-site-search-icon').on('click', function(t) {
166          t.preventDefault(),
167            t.stopPropagation(),
168            e('.m-site-search').addClass('active'),
169            setTimeout(function() {
170              e('.m-site-search__form__input').focus();
171            }, 300);
172        }),
173        e('.m-site-search__close-icon, .m-site-search__overlay').on(
174          'click',
175          function() {
176            e('.m-site-search').removeClass('active');
177          }
178        ),
179        e(document).bind('keydown', function(t) {
180          27 == t.which && e('.m-site-search').removeClass('active');
181        }),
182        e('.a-slidingbar-icon').on('click', function(t) {
183          t.preventDefault(),
184            t.stopPropagation(),
185            e('.o-slidingbar').addClass('active');
186        }),
187        e('.o-slidingbar__close-icon, .o-slidingbar__overlay').on(
188          'click',
189          function() {
190            e('.o-slidingbar').removeClass('active');
191          }
192        ),
193        e(document).bind('keydown', function(t) {
194          27 == t.which && e('.o-slidingbar').removeClass('active');
195        }),
196        e(window).scroll(function() {
197          e(window).scrollTop() > 150
198            ? e('.a-to-top').addClass('a-to-top--active')
199            : e('.a-to-top').removeClass('a-to-top--active');
200        }),
201        e('.a-to-top').click(function() {
202          return e('html, body').animate({ scrollTop: 0 }, 500), !1;
203        }),
204        e(
205          '.sticky .o-blog-post .o-blog-post__content .o-blog-post__meta'
206        ).prepend(
207          '<span class="o-blog-post__sticky a-separator"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bookmark"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>Sticky</span>'
208        ),
209        e('.woocommerce-MyAccount-navigation-link--dashboard a').append(
210          '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>'
211        ),
212        e('.woocommerce-MyAccount-navigation-link--orders a').append(
213          '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-shopping-cart"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>'
214        ),
215        e('.woocommerce-MyAccount-navigation-link--downloads a').append(
216          '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-download"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>'
217        ),
218        e('.woocommerce-MyAccount-navigation-link--edit-address a').append(
219          '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-map-pin"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>'
220        ),
221        e('.woocommerce-MyAccount-navigation-link--edit-account a').append(
222          '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>'
223        ),
224        e('.woocommerce-MyAccount-navigation-link--customer-logout a').append(
225          '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>'
226        ),
227        e(
228          '.p-portfolio-single--sticky-content .p-portfolio-single__content-wrapper'
229        ).theiaStickySidebar({ additionalMarginTop: 42 }),
230        e('.h-lightbox').magnificPopup({
231          delegate: '.h-lightbox-link',
232          type: 'image',
233          tClose: 'Close (Esc)',
234          tLoading: '',
235          gallery: {
236            enabled: !0,
237            tPrev: 'Previous (Left arrow)',
238            tNext: 'Next (Right arrow)',
239            tCounter: '%curr% of %total%'
240          },
241          image: { tError: 'The image can not be loaded.' },
242          mainClass: 'mfp-zoom-in',
243          removalDelay: 300,
244          callbacks: {
245            beforeOpen: function() {
246              e('.lightbox a').each(function() {
247                e(this).attr(
248                  'title',
249                  e(this)
250                    .find('img')
251                    .attr('title')
252                );
253              });
254            },
255            open: function() {
256              (e.magnificPopup.instance.next = function() {
257                var t = this;
258                t.wrap.removeClass('mfp-image-loaded'),
259                  setTimeout(function() {
260                    e.magnificPopup.proto.next.call(t);
261                  }, 120);
262              }),
263                (e.magnificPopup.instance.prev = function() {
264                  var t = this;
265                  t.wrap.removeClass('mfp-image-loaded'),
266                    setTimeout(function() {
267                      e.magnificPopup.proto.prev.call(t);
268                    }, 120);
269                });
270            },
271            imageLoadComplete: function() {
272              var e = this;
273              setTimeout(function() {
274                e.wrap.addClass('mfp-image-loaded');
275              }, 16);
276            }
277          }
278        }),
279        e(window).on('resize', function() {
280          'ontouchstart' in window ||
281            navigator.maxTouchPoints ||
282            (t(), o(), a(), r(), i());
283        }),
284        e(window).load(function() {
285          function t(e) {
286            var t = e.parent().siblings('.masonry'),
287              a = e.data('text'),
288              r = {};
289            r.exclude = [];
290            var i = e.data('filter');
291            i && '*' !== i && (r.filter = i);
292            var n = t.isotope('getFilteredItemElements');
293            n &&
294              (r.exclude = n.map(function(e) {
295                return e.dataset.id;
296              })),
297              jQuery.ajax({
298                type: 'GET',
299                url: window.location.href,
300                data: r,
301                beforeSend: function() {
302                  e.addClass('a-button--loading'),
303                    e
304                      .html(
305                        '<div class="h-rotatingNeuron"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-refresh-cw"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg></div>'
306                      )
307                      .prop('disabled', !0);
308                },
309                success: function(r) {
310                  e.removeClass('a-button--loading');
311                  var n = jQuery(r).find(
312                      '.masonry[data-masonry-id="' + t.data('masonry-id') + '"]'
313                    ),
314                    s = n.find('.selector'),
315                    l = n
316                      .siblings('.load-more-posts-holder')
317                      .find('.load-more-posts').length;
318                  if (
319                    (s.length > 0 &&
320                      (e.html(a).prop('disabled', !1),
321                      t.append(s),
322                      t.isotope('appended', s),
323                      o.sync()),
324                    !l)
325                  ) {
326                    e.parent().hide();
327                    var p = i ? '.' + i : '*';
328                    '*' == p
329                      ? e
330                          .parents('.l-posts-wrapper')
331                          .find('li')
332                          .attr('data-all', !0)
333                      : e
334                          .parents('.l-posts-wrapper')
335                          .find('li[data-filter="' + p + '"]')
336                          .attr('data-all', !0);
337                  }
338                },
339                error: function() {
340                  e.html('No More Posts');
341                }
342              });
343          }
344          var o = new WOW();
345          o.init(),
346            setTimeout(function() {
347              e('.l-primary-header--sticky .l-primary-header').headroom({
348                tolerance: { up: 10, down: 40 },
349                onTop: function() {
350                  e(
351                    '.l-primary-header--sticky--skin .l-primary-header'
352                  ).addClass('l-primary-header--light-skin'),
353                    e('.m-primary-top-header').removeClass(
354                      'm-primary-top-header--hide'
355                    );
356                },
357                onNotTop: function() {
358                  e(
359                    '.l-primary-header--sticky--skin .headroom--not-top'
360                  ).removeClass('l-primary-header--light-skin'),
361                    e('.m-primary-top-header').addClass(
362                      'm-primary-top-header--hide'
363                    );
364                }
365              });
366            }, 50);
367          var a = e('.masonry');
368          e('#filters li').on('click', function() {
369            var t = e(this).attr('data-filter');
370            (a = e(
371              '.masonry[data-masonry-id=' +
372                e('.masonry').data('masonry-id') +
373                ']'
374            )),
375              a.isotope({ filter: t });
376            var o = e(this)
377              .parents('.l-posts-wrapper')
378              .find('.load-more-posts');
379            o.data('filter', t.replace('.', '')),
380              !0 === e(this).data('all')
381                ? o.parent().hide()
382                : o
383                    .html(o.data('text'))
384                    .prop('disabled', !1)
385                    .parent()
386                    .show(),
387              e(this)
388                .addClass('active')
389                .siblings('li')
390                .removeClass('active');
391          }),
392            a.length &&
393              (a.isotope({ layoutMode: 'packery', itemSelector: '.selector' }),
394              e('.load-more-posts').on('click', function(o) {
395                o.preventDefault(), t(e(this));
396              }),
397              window.dispatchEvent(new Event('resize'))),
398            e('#filters li').on('click', function() {
399              setTimeout(function() {
400                window.dispatchEvent(new Event('resize'));
401              }, 400);
402            });
403          var r = e('.fitRows'),
404            i = e('.fitRows.masonry');
405          r.length &&
406            (i.isotope('destroy'),
407            r.isotope({ layoutMode: 'fitRows', itemSelector: '.selector' }));
408        });
409    });
410  }
411]);

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.