PageSourceSearch

https://www.porcelainenamel.com/wp-content/plugins/visual-portfoli…/assets/js/main.js?ver=a2d567cc36b0f51832ed

js porcelainenamel.com collected 2026-09-24 20:17:30 UTC 13,599 bytes, 1 lines download raw bytes

1(()=>{"use strict";var t={n:i=>{var e=i&&i.__esModule?()=>i.default:()=>i;return t.d(e,{a:e}),e},d:(i,e)=>{for(var o in e)t.o(e,o)&&!t.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:e[o]})},o:(t,i)=>Object.prototype.hasOwnProperty.call(t,i)};const i=window.jQuery;var e=t.n(i);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var i=function(t){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var e=i.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(i)?i:i+""}var __=window.VPData.__,a=e()(window);function r(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}var l={},v=!1,d=!1,p=!1;function c(){if(clearTimeout(d),v){var t=e()(".vp-portfolio__ready");if(t.length){var i=!1;t.each(function(){var t=this.vpf;if(t){var e=l[t.uid]||"none";l[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===e&&"visible"===l[t.uid]&&(i=!0)}}),i&&r()}else v=!1;d=setTimeout(c,500)}}e()(document).on("inited.vpf",function(t){"vpf"===t.namespace&&(v=!0,c())}),document.addEventListener("keydown",function(t){t.metaKey||t.altKey||t.ctrlKey||(p=!0)},!0),document.addEventListener("mousedown",function(){p=!1},!0),document.addEventListener("pointerdown",function(){p=!1},!0),document.addEventListener("touchstart",function(){p=!1},!0);var f=function(){return t=function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.$item=i;for(var o=i[0].className.split(/\s+/),n=0;n<o.length;n+=1)o[n]&&/^vp-uid-/.test(o[n])&&(this.uid=o[n].replace(/^vp-uid-/,"")),o[n]&&/^vp-id-/.test(o[n])&&(this.id=o[n].replace(/^vp-id-/,""));this.uid?(this.href=window.location.href,this.$items_wrap=i.find(".vp-portfolio__items"),this.$slider_thumbnails_wrap=i.find(".vp-portfolio__thumbnails"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.$sort=i.find(".vp-portfolio__sort-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.id&&(this.$sort=this.$sort.add(".vp-single-sort.vp-id-".concat(this.id," .vp-portfolio__sort-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(__.couldnt_retrieve_vp)},i=[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.$item.addClass("vp-portfolio__ready"),this.initOptions(),this.initEvents(),this.initLayout(),this.initCustomColors(),this.emitEvent("init"),this.id&&(e()(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready").parent(".vp-portfolio__layout-elements").addClass("vp-portfolio__layout-elements__ready"),e()(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__ready").parent(".vp-portfolio__layout-elements").addClass("vp-portfolio__layout-elements__ready")),this.resized(),this.imagesLoaded(),this.emitEvent("inited"),this.firstRun=!1}},{key:"isPreview",value:function(){return!!this.$item.closest("#vp_preview").length}},{key:"resized",value:function(){r(),this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this;this.$items_wrap.imagesLoaded&&this.$items_wrap.imagesLoaded().progress(function(){t.emitEvent("imagesLoaded")})}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&(e()(".vp-single-filter.vp-id-".concat(this.id
1)).removeClass("vp-single-filter__ready").parent(".vp-portfolio__layout-elements").removeClass("vp-portfolio__layout-elements__ready"),e()(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__ready").parent(".vp-portfolio__layout-elements").removeClass("vp-portfolio__layout-elements__ready")),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,o){o=o||"";var n=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[n]&&(this.stylesList[n]={}),void 0===this.stylesList[n][o]&&(this.stylesList[n][o]={}),void 0===this.stylesList[n][o][t]&&(this.stylesList[n][o][t]={}),this.stylesList[n][o][t]=e().extend(this.stylesList[n][o][t],i),this.emitEvent("addStyle",[t,i,o,this.stylesList])}},{key:"removeStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]||t||(this.stylesList[o]={}),void 0!==this.stylesList[o]&&void 0!==this.stylesList[o][e]&&void 0!==this.stylesList[o][e][t]&&t&&delete this.stylesList[o][e][t],this.emitEvent("removeStyle",[t,i,this.stylesList])}},{key:"renderStyle",value:function(){var t=this,i=this.uid,o="";this.stylesList||(this.stylesList={}),void 0!==this.stylesList[i]&&Object.keys(this.stylesList[i]).forEach(function(e){e&&(o+="@media ".concat(e," {")),Object.keys(t.stylesList[i][e]).forEach(function(n){var s=".vp-uid-".concat(i),a="".concat(s," ").concat(n);a=a.replace(/, |,/g,", ".concat(s," ")),o+="".concat(a," {"),Object.keys(t.stylesList[i][e][n]).forEach(function(s){o+="".concat(s,":").concat(t.stylesList[i][e][n][s],";")}),o+="}"}),e&&(o+="}")});var n=e()("#vp-style-".concat(i));n.length||(n=e()("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),n.html(o),this.emitEvent("renderStyle",[o,this.stylesList,n])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;this.defaults={layout:"tile",itemsGap:0,pagination:"load-more"},t&&(this.userOptions=t);var o=this.$item[0].dataset,n={};Object.keys(o).forEach(function(t){t&&"vp"===t.substring(0,2)&&(n[i.firstToLowerCase(t.substring(2))]=o[t])}),this.options=e().extend({},this.defaults,n,this.userOptions),this.emitEvent("initOptions")}},{key:"initEvents",value:function(){var t=this,i=".vpf-uid-".concat(t.uid);function o(){var i=t.$item[0].getBoundingClientRect(),e=i.left,o=window.innerWidth-i.right,n=parseFloat(t.$item.css("margin-left")||0),s=parseFloat(t.$item.css("margin-right")||0);t.$item.css({marginLeft:n-e,marginRight:s-o,maxWidth:"none",width:"auto"})}t.$item.hasClass("vp-portfolio__stretch")&&!t.isPreview()&&(a.on("load".concat(i," resize").concat(i," orientationchange").concat(i),function(){o()}),o()),t.$item.on("focus".concat(i),".vp-portfolio__item a",function(){var t=e()(this).closest(".vp-portfolio__item");t.addClass("vp-portfolio__item-focus"),p&&t.addClass("vp-portfolio__item-focus-visible")}),t.$item.on("blur".concat(i),".vp-portfolio__item a",function(){e()(this).closest(".vp-portfolio__item").removeClass("vp-portfolio__item-focus vp-portfolio__item-focus-visible")}),t.$filter.on("click".concat(i),".vp-filter .vp-filter__item a",function(i){i.preventDefault();var o=e()(this);t.loading||o.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),t.loadNewItems(o.attr("href"),!0)}),t.$sort.on("click".concat(i),".vp-sort .vp-sort__item a",function(i){i.preventDefault();var o=e()(this);t.loading||o.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),t.loadNewItems(o.attr("href"),!0)}),t.$filter.add(t.$sort).on("change".concat(i),".vp-filter select, .vp-sort select",function(){var i=e()(this),o=i.val(),n=i.find('[value="'.concat(o,'"][data-vp-url]'));n.length&&t.loadNewItems(n.attr("data-vp-url"),!0)}),t.$item.on("click".concat(i),".vp-pagination .vp-pagination__item a",function(i){i.preventDefault();var o=e()(this),n=o.closest(".vp-pagination");n.hasClass("vp-pagination__no-more")&&"paged"!==t.options.pagination||(t.loadNewItems(o.attr("href"),"paged"===t.options.pagination),function(i){if("paged"===t.options.pagination&&i.hasClass("vp-pagination__scroll-top")){var o=e()("#wpadminbar"),n=window.pageYOffset||document.documentElement.scrollTop,s=t.$item.offset().top;i.attr("data-vp-pagination-scroll-top")&&(s-=parseInt(i.attr("data-vp-pagination-scroll-top"),10)||0),o.length&&"fixed"===o.css("position")&&(s-=o.outerHeight()),n>(s=Math.max(0,s))&&window.scrollTo({top:s,behavior:"smooth"})}}(n))}),t.$item.on("click".concat(i),".vp-portfolio__items .vp-portfolio__item-meta-category a",function(i){i.preventDefault(),i.stopPropagation(),t.loadNewItems(e()(this).attr("href"),!0)}),t.$item.on("transitionend".concat(i),".vp-portfolio__items",function(i){i.currentTarget===i.target&&t.resized()}),t.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),this.$sort.off(t),a.off(t),this.emitEvent("destroyEvents")}},{key:"initLayout",value:function(){this.emitEvent("initLayout"),this.renderStyle()}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var i=e()(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})}),t.$item.find("[data-vp-text-color]").each(function(){var i=e()(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"addItems",value:function(t,i,e){this.emitEvent("addItems",[t,i,e])}},{key:"removeItems",value:function(t){this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,o){var n=this,s=n.options.randomSeed;if((!n.loading||void 0!==n.loading.readyState)&&t&&n.href!==t){n.loading&&n.loading.readyState&&n.loading.abort&&n.loading.abort();var a={method:"POST",url:t,data:{vpf_ajax_call:!0,vpf_random_seed:void 0!==s&&s},complete:function(e){var s=e.responseText;n.href=t,n.replaceItems(s,i,o)}};n.loading=!0,n.$item.addClass("vp-portfolio__loading"),n.emitEvent("startLoadingNewItems",[t,a]),n.loading=e().ajax(a)}}},{key:"replaceItems",value:function(t,i,o){if(t){var n=e()((new window.DOMParser).parseFromString(t,"text/html").body),s=n.find(".vp-portfolio.vp-uid-".concat(this.uid));if(s.length){var a=s.find(".vp-portfolio__items").html(),r=s.hasClass("vp-portfolio-not-found");this.$item.find(".vp-notice").remove(),r?(this.$item.find(".vp-portfolio__items-wrap").before(s.find(".vp-notice").clone()),this.$item.addClass("vp-portfolio-not-found")):this.$item.removeClass("vp-portfolio-not-found"),this.$filter.length&&this.$filter.each(function(){var t,i=e()(this);t=i.parent().hasClass("vp-single-filter")?n.find('[class="'.concat(i.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():s.find(".vp-portfolio__filter-wrap").html(),i.html(t)}),this.$sort.length&&this.$sort.each(function(){var t,i=e()(this);t=i.parent().hasClass("vp-single-sort")?n.find('[class="'.concat(i.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():s.find(".vp-portfolio__sort-wrap").html(),i.html(t)}),this.$pagination.length&&this.$pagination.html(s.find(".vp-portfolio__pagination-wrap").html()),this.addItems(e()(a),i,s),this.emitEvent("loadedNewItems",[s,i,t]),o&&o()}var l=s.attr("data-vp-next-page-url");this.options.nextPageUrl=l,this.$item.attr("data-vp-next-page-url",l),s.length||(this.href=!1),this.$item.removeClass("vp-portfolio__loading"),this.loading=!1,this.emitEvent("endLoadingNewItems"),this.imagesLoaded(),this.initCustomColors()}}}
1],i&&n(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}();e()(document).trigger("extendClass.vpf",[f]);var h=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];var a;return this.each(function(){if(void 0===a)if("object"===o(t)||void 0===t)this.vpf||(this.vpf=new f(e()(this),t));else if(this.vpf){var i;a=(i=this.vpf)[t].apply(i,n)}}),void 0!==a?a:this};h.constructor=f;var u=e().fn.vpf;e().fn.vpf=h,e().fn.vpf.noConflict=function(){return e().fn.vpf=u,this},e()(function(){e()(".vp-portfolio").vpf()});var m,y,_,g,w=function(t,i,e){var o,n=e||{},s=n.noTrailing,a=void 0!==s&&s,r=n.noLeading,l=void 0!==r&&r,v=n.debounceMode,d=void 0===v?void 0:v,p=!1,c=0;function f(){o&&clearTimeout(o)}function h(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];var r=this,v=Date.now()-c;function h(){c=Date.now(),i.apply(r,n)}function u(){o=void 0}p||(l||!d||o||h(),f(),void 0===d&&v>t?l?(c=Date.now(),a||(o=setTimeout(d?u:h,t))):h():!0!==a&&(o=setTimeout(d?u:h,void 0===d?t-v:t)))}return h.cancel=function(t){var i=(t||{}).upcomingOnly,e=void 0!==i&&i;f(),p=!e},h}(200,(m=function(){e()(".vp-portfolio:not(.vp-portfolio__ready)").vpf()},y=[],_=null,(g=function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];y=i,_||(_=requestAnimationFrame(function(){_=null,m.apply(void 0,y)}))}).cancel=function(){_&&(cancelAnimationFrame(_),_=null)},g));window.MutationObserver?new window.MutationObserver(w).observe(document.documentElement,{childList:!0,subtree:!0}):e()(document).on("DOMContentLoaded DOMNodeInserted load",function(){w()})})();

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.