Visual Portfolio, Photo Gallery & Post Grid - Version 2.10.1

Version Description

Download this release

Release Info

Developer nko
Plugin Icon 128x128 Visual Portfolio, Photo Gallery & Post Grid
Version 2.10.1
Comparing to
See all releases

Code changes from version 2.10.0 to 2.10.1

Files changed (62) hide show
  1. assets/admin/js/elementor.js +1 -1
  2. assets/admin/js/elementor.min.js +1 -1
  3. assets/admin/js/mce-dropdown.js +1 -1
  4. assets/admin/js/mce-dropdown.min.js +1 -1
  5. assets/admin/js/mce-localize.min.js +1 -1
  6. assets/admin/js/script.js +1 -1
  7. assets/admin/js/script.min.js +1 -1
  8. assets/admin/js/vc-frontend.js +1 -1
  9. assets/admin/js/vc-frontend.min.js +1 -1
  10. assets/css/lazyload-rtl.min.css +1 -0
  11. assets/css/lazyload.min.css +1 -0
  12. assets/css/main-rtl.min.css +1 -1
  13. assets/css/main.min.css +1 -1
  14. assets/images/logo-dark.svg +11 -0
  15. assets/images/logo-white.svg +11 -0
  16. assets/js/images-lazy-loading.js +0 -96
  17. assets/js/images-lazy-loading.min.js +0 -1
  18. assets/js/items-style-fly.min.js +1 -1
  19. assets/js/layout-grid.min.js +1 -1
  20. assets/js/layout-justified.min.js +1 -1
  21. assets/js/layout-masonry.min.js +1 -1
  22. assets/js/layout-slider.min.js +1 -1
  23. assets/js/layout-tiles.min.js +1 -1
  24. assets/js/lazyload.js +47 -0
  25. assets/js/lazyload.min.js +1 -0
  26. assets/js/lazysizes-config.js +15 -0
  27. assets/js/lazysizes-config.min.js +1 -0
  28. assets/js/lazysizes-object-fit-cover.min.js +1 -1
  29. assets/js/main.js +0 -16
  30. assets/js/main.min.js +1 -1
  31. assets/js/pagination-minimal-paged.min.js +1 -1
  32. assets/js/plugin-fancybox.min.js +1 -1
  33. assets/js/plugin-fj-gallery.min.js +1 -1
  34. assets/js/plugin-isotope.min.js +1 -1
  35. assets/js/plugin-photoswipe.min.js +1 -1
  36. assets/js/plugin-swiper.min.js +1 -1
  37. assets/js/popup-gallery.js +2 -1
  38. assets/js/popup-gallery.min.js +1 -1
  39. assets/js/preview.js +1 -1
  40. assets/js/preview.min.js +1 -1
  41. class-visual-portfolio.php +6 -50
  42. classes/class-admin.php +5 -5
  43. classes/class-assets.php +31 -15
  44. classes/class-custom-post-type.php +2 -2
  45. classes/class-elementor-widget.php +2 -2
  46. classes/class-get-portfolio.php +210 -135
  47. classes/class-gutenberg.php +3 -3
  48. classes/class-images.php +402 -134
  49. classes/class-migration.php +24 -1
  50. classes/class-preview.php +2 -2
  51. classes/class-settings.php +9 -4
  52. classes/class-supported-themes.php +1 -1
  53. classes/class-tinymce.php +1 -1
  54. classes/class-vc.php +1 -1
  55. gutenberg/components/controls-render/index.js +1 -1
  56. gutenberg/custom-post-meta.min.js +1 -1
  57. gutenberg/index.min.js +2 -2
  58. gutenberg/layouts-editor.min.js +2 -2
  59. languages/visual-portfolio.pot +94 -82
  60. readme.md +9 -1
  61. templates/items-list/items-style/emerge/image.php +1 -1
  62. templates/items-list/wrapper-start.php +1 -11
assets/admin/js/elementor.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for Elementor
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 2.10.0
6
  * Author : nK https://nkdev.info
7
  */
8
  import { throttle } from 'throttle-debounce';
2
  * Additional js for Elementor
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 2.10.1
6
  * Author : nK https://nkdev.info
7
  */
8
  import { throttle } from 'throttle-debounce';
assets/admin/js/elementor.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=255)}({255:function(e,t,n){e.exports=n(256)},256:function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(4),i=window,u=i.elementorFrontend,a=i.VPAdminElementorVariables,f=window.jQuery,c=f(window);f(window).on("elementor/frontend/init",(function(e){if(a){var t=e.target;c.on("resize",Object(r.throttle)(300,Object(o.a)(n))),u.hooks.addAction("frontend/element_ready/visual-portfolio.default",(function(e){var t=f(e).find(".visual-portfolio-elementor-preview"),r=t.find("iframe"),o=t.attr("data-id"),i="".concat(a.preview_url+(a.preview_url.split("?")[1]?"&":"?"),"vp_preview_frame=true&vp_preview_type=elementor&vp_preview_frame_id=").concat(o);r.attr("src",i),f.fn.iFrameResize&&r.iFrameResize({onInit:function(){n()}})}))}function n(){var e=t.jQuery(t.document).width();t.jQuery.find(".visual-portfolio-elementor-preview iframe").forEach((function(t){var n=f(t),r=n.parent().width();n.css({width:e}),t.iFrameResizer&&(t.iFrameResizer.sendMessage({name:"resize",width:r}),t.iFrameResizer.resize())}))}}))},3:function(e,t,n){var r,o,i,u;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}u=function(e){"use strict";function t(e,t,n,r){var o,i=!1,u=0;function a(){o&&clearTimeout(o)}function f(){for(var f=arguments.length,c=new Array(f),l=0;l<f;l++)c[l]=arguments[l];var d=this,p=Date.now()-u;function s(){u=Date.now(),n.apply(d,c)}function v(){o=void 0}i||(r&&!o&&s(),a(),void 0===r&&p>e?s():!0!==t&&(o=setTimeout(r?v:s,void 0===r?e-p:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),f.cancel=function(){a(),i=!0},f}e.debounce=function(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===a(t)&&void 0!==e?u(t):(o=[t],void 0===(i="function"==typeof(r=u)?r.apply(t,o):r)||(e.exports=i))},4:function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r}}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=257)}({257:function(e,t,n){e.exports=n(258)},258:function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(4),i=window,u=i.elementorFrontend,a=i.VPAdminElementorVariables,f=window.jQuery,c=f(window);f(window).on("elementor/frontend/init",(function(e){if(a){var t=e.target;c.on("resize",Object(r.throttle)(300,Object(o.a)(n))),u.hooks.addAction("frontend/element_ready/visual-portfolio.default",(function(e){var t=f(e).find(".visual-portfolio-elementor-preview"),r=t.find("iframe"),o=t.attr("data-id"),i="".concat(a.preview_url+(a.preview_url.split("?")[1]?"&":"?"),"vp_preview_frame=true&vp_preview_type=elementor&vp_preview_frame_id=").concat(o);r.attr("src",i),f.fn.iFrameResize&&r.iFrameResize({onInit:function(){n()}})}))}function n(){var e=t.jQuery(t.document).width();t.jQuery.find(".visual-portfolio-elementor-preview iframe").forEach((function(t){var n=f(t),r=n.parent().width();n.css({width:e}),t.iFrameResizer&&(t.iFrameResizer.sendMessage({name:"resize",width:r}),t.iFrameResizer.resize())}))}}))},3:function(e,t,n){var r,o,i,u;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}u=function(e){"use strict";function t(e,t,n,r){var o,i=!1,u=0;function a(){o&&clearTimeout(o)}function f(){for(var f=arguments.length,c=new Array(f),l=0;l<f;l++)c[l]=arguments[l];var d=this,p=Date.now()-u;function s(){u=Date.now(),n.apply(d,c)}function v(){o=void 0}i||(r&&!o&&s(),a(),void 0===r&&p>e?s():!0!==t&&(o=setTimeout(r?v:s,void 0===r?e-p:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),f.cancel=function(){a(),i=!0},f}e.debounce=function(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===a(t)&&void 0!==e?u(t):(o=[t],void 0===(i="function"==typeof(r=u)?r.apply(t,o):r)||(e.exports=i))},4:function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r}}});
assets/admin/js/mce-dropdown.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.10.0
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.10.1
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
assets/admin/js/mce-dropdown.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=257)}({257:function(t,e,n){t.exports=n(258)},258:function(t,e){
2
  /*!
3
  * Name : Visual Portfolio
4
  * Version : @@plugin_version
1
+ !function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=259)}({259:function(t,e,n){t.exports=n(260)},260:function(t,e){
2
  /*!
3
  * Name : Visual Portfolio
4
  * Version : @@plugin_version
assets/admin/js/mce-localize.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=259)}({259:function(e,t,n){e.exports=n(260)},260:function(e,t){}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=261)}({261:function(e,t,n){e.exports=n(262)},262:function(e,t){}});
assets/admin/js/script.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.10.0
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.10.1
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
assets/admin/js/script.min.js CHANGED
@@ -1 +1 @@
1
- !function(n){var e={};function t(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(o,r,function(e){return n[e]}.bind(null,r));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=261)}({261:function(n,e,t){n.exports=t(262)},262:function(n,e,t){"use strict";t.r(e);var o=t(3),r=t(4),i=window,c=i.jQuery,u=i.ajaxurl,l=i.VPAdminVariables,a=c("body");a.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"], [name="vp_sort_shortcode"]',(function(){this.select()})),a.on("click",".vp-onclick-selection",(function(){window.getSelection().selectAllChildren(this)})),a.on("copy cut",".vp-onclick-selection",(function(n){var e=window.getSelection().toString().replace(/[\n\r]+/g,"");n.originalEvent.clipboardData.setData("text/plain",e),n.originalEvent.preventDefault()}));var f=c("#vp_format_video"),p=c("#post-format-video"),d=null;function v(n){null!==d&&d===n||(d=n,f[n?"show":"hide"]())}f.length&&p.length&&(v(p.is(":checked")),a.on("change","[name=post_format]",(function(){v(p.is(":checked"))})));var s=null,m=function(n){s=c.ajax({url:u,method:"POST",dataType:"json",data:{action:"vp_find_oembed",q:n.val(),nonce:l.nonce},complete:function(e){var t=e.responseJSON;t&&void 0!==t.html&&n.next(".vp-oembed-preview").html(t.html)}})};m=Object(o.debounce)(300,Object(r.a)(m)),a.on("change input",'.vp-input[name="_vp_format_video_url"]',(function(){null!==s&&s.abort();var n=c(this);n.next(".vp-oembed-preview").html(""),m(n)}))},3:function(n,e,t){var o,r,i,c;function u(n){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}c=function(n){"use strict";function e(n,e,t,o){var r,i=!1,c=0;function u(){r&&clearTimeout(r)}function l(){for(var l=arguments.length,a=new Array(l),f=0;f<l;f++)a[f]=arguments[f];var p=this,d=Date.now()-c;function v(){c=Date.now(),t.apply(p,a)}function s(){r=void 0}i||(o&&!r&&v(),u(),void 0===o&&d>n?v():!0!==e&&(r=setTimeout(o?s:v,void 0===o?n-d:n)))}return"boolean"!=typeof e&&(o=t,t=e,e=void 0),l.cancel=function(){u(),i=!0},l}n.debounce=function(n,t,o){return void 0===o?e(n,t,!1):e(n,o,!1!==t)},n.throttle=e,Object.defineProperty(n,"__esModule",{value:!0})},"object"===u(e)&&void 0!==n?c(e):(r=[e],void 0===(i="function"==typeof(o=c)?o.apply(e,r):o)||(n.exports=i))},4:function(n,e,t){"use strict";e.a=function(n){var e=[],t=null,o=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];e=r,t||(t=requestAnimationFrame((function(){t=null,n.apply(void 0,e)})))};return o.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},o}}});
1
+ !function(n){var e={};function t(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(o,r,function(e){return n[e]}.bind(null,r));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=263)}({263:function(n,e,t){n.exports=t(264)},264:function(n,e,t){"use strict";t.r(e);var o=t(3),r=t(4),i=window,c=i.jQuery,u=i.ajaxurl,l=i.VPAdminVariables,a=c("body");a.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"], [name="vp_sort_shortcode"]',(function(){this.select()})),a.on("click",".vp-onclick-selection",(function(){window.getSelection().selectAllChildren(this)})),a.on("copy cut",".vp-onclick-selection",(function(n){var e=window.getSelection().toString().replace(/[\n\r]+/g,"");n.originalEvent.clipboardData.setData("text/plain",e),n.originalEvent.preventDefault()}));var f=c("#vp_format_video"),p=c("#post-format-video"),d=null;function v(n){null!==d&&d===n||(d=n,f[n?"show":"hide"]())}f.length&&p.length&&(v(p.is(":checked")),a.on("change","[name=post_format]",(function(){v(p.is(":checked"))})));var s=null,m=function(n){s=c.ajax({url:u,method:"POST",dataType:"json",data:{action:"vp_find_oembed",q:n.val(),nonce:l.nonce},complete:function(e){var t=e.responseJSON;t&&void 0!==t.html&&n.next(".vp-oembed-preview").html(t.html)}})};m=Object(o.debounce)(300,Object(r.a)(m)),a.on("change input",'.vp-input[name="_vp_format_video_url"]',(function(){null!==s&&s.abort();var n=c(this);n.next(".vp-oembed-preview").html(""),m(n)}))},3:function(n,e,t){var o,r,i,c;function u(n){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}c=function(n){"use strict";function e(n,e,t,o){var r,i=!1,c=0;function u(){r&&clearTimeout(r)}function l(){for(var l=arguments.length,a=new Array(l),f=0;f<l;f++)a[f]=arguments[f];var p=this,d=Date.now()-c;function v(){c=Date.now(),t.apply(p,a)}function s(){r=void 0}i||(o&&!r&&v(),u(),void 0===o&&d>n?v():!0!==e&&(r=setTimeout(o?s:v,void 0===o?n-d:n)))}return"boolean"!=typeof e&&(o=t,t=e,e=void 0),l.cancel=function(){u(),i=!0},l}n.debounce=function(n,t,o){return void 0===o?e(n,t,!1):e(n,o,!1!==t)},n.throttle=e,Object.defineProperty(n,"__esModule",{value:!0})},"object"===u(e)&&void 0!==n?c(e):(r=[e],void 0===(i="function"==typeof(o=c)?o.apply(e,r):o)||(n.exports=i))},4:function(n,e,t){"use strict";e.a=function(n){var e=[],t=null,o=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];e=r,t||(t=requestAnimationFrame((function(){t=null,n.apply(void 0,e)})))};return o.cancel=function(){t&&(cancelAnimationFrame(t),t=null)},o}}});
assets/admin/js/vc-frontend.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 2.10.0
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 2.10.1
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
assets/admin/js/vc-frontend.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=263)}({263:function(e,t,n){e.exports=n(264)},264:function(e,t){
2
  /*!
3
  * Additional js for frontend VC
4
  *
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=265)}({265:function(e,t,n){e.exports=n(266)},266:function(e,t){
2
  /*!
3
  * Additional js for frontend VC
4
  *
assets/css/lazyload-rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ :root{--vp-lazyload-images__background: linear-gradient(-70deg, rgba(140, 140, 140, 0) 42%, rgba(140, 140, 140, .05) 50%, rgba(140, 140, 140, 0) 58%);--vp-lazyload-images__background-color: rgba(140, 140, 140, .05);--vp-lazyload-images__animation-duration: 3s;--vp-lazyload-transition-duration: .3s;--vp-lazyload-transition-easing: ease-in-out}img.vp-lazyload,img.vp-lazyloaded,img.vp-lazypreload,img.vp-lazyloading{opacity:0;-webkit-transition:var(--vp-lazyload-transition-duration) opacity;-o-transition:var(--vp-lazyload-transition-duration) opacity;transition:var(--vp-lazyload-transition-duration) opacity;will-change:opacity}img.vp-lazyloaded{opacity:1}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:var(--vp-lazyload-images__background);background-color:var(--vp-lazyload-images__background-color);background-position:100% 50%;background-size:500% 100%;-webkit-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;-o-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;-webkit-transition:none;-o-transition:none;transition:none;-webkit-animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:0% 50%}100%{background-position:100% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:0% 50%}100%{background-position:100% 50%}}
assets/css/lazyload.min.css ADDED
@@ -0,0 +1 @@
 
1
+ :root{--vp-lazyload-images__background: linear-gradient(-70deg, rgba(140, 140, 140, 0) 42%, rgba(140, 140, 140, .05) 50%, rgba(140, 140, 140, 0) 58%);--vp-lazyload-images__background-color: rgba(140, 140, 140, .05);--vp-lazyload-images__animation-duration: 3s;--vp-lazyload-transition-duration: .3s;--vp-lazyload-transition-easing: ease-in-out}img.vp-lazyload,img.vp-lazyloaded,img.vp-lazypreload,img.vp-lazyloading{opacity:0;-webkit-transition:var(--vp-lazyload-transition-duration) opacity;-o-transition:var(--vp-lazyload-transition-duration) opacity;transition:var(--vp-lazyload-transition-duration) opacity;will-change:opacity}img.vp-lazyloaded{opacity:1}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-lazyload-images__background);background-color:var(--vp-lazyload-images__background-color);background-position:0% 50%;background-size:500% 100%;-webkit-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;-o-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;-webkit-transition:none;-o-transition:none;transition:none;-webkit-animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}
assets/css/main-rtl.min.css CHANGED
@@ -1 +1 @@
1
- :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%;--vp-images-lazy__background: linear-gradient(-70deg, rgba(140, 140, 140, 0) 42%, rgba(140, 140, 140, .05) 50%, rgba(140, 140, 140, 0) 58%);--vp-images-lazy__background-color: rgba(140, 140, 140, .05);--vp-images-lazy__animation-duration: 3s}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:right;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;left:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-right:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-right:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;right:50%;width:20px;height:20px;margin-top:45px;margin-right:-10px}.vp-portfolio__preloader svg{display:block;width:100%;height:100%}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;right:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-right:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}img.vp-lazyload{opacity:1;-webkit-transition:var(--vp-transition-duration) opacity;-o-transition:var(--vp-transition-duration) opacity;transition:var(--vp-transition-duration) opacity;will-change:opacity}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:var(--vp-images-lazy__background);background-color:var(--vp-images-lazy__background-color);background-position:100% 50%;background-size:500% 100%;-webkit-transition:var(--vp-transition-duration) var(--vp-transition-duration) opacity,var(--vp-transition-duration) var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) var(--vp-transition-duration) opacity,var(--vp-transition-duration) var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) var(--vp-transition-duration) opacity,var(--vp-transition-duration) var(--vp-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;-webkit-transition:none;-o-transition:none;transition:none;-webkit-animation:vp-lazyload-placeholder var(--vp-images-lazy__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-images-lazy__animation-duration) linear infinite}.vp-portfolio__item-img-lazyloading img.vp-lazyload,.vp-portfolio__thumbnail-img-lazyloading img.vp-lazyload{opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:0% 50%}100%{background-position:100% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:0% 50%}100%{background-position:100% 50%}}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-right:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}
1
+ :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:right;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;left:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-right:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-right:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;right:50%;width:20px;height:20px;margin-top:45px;margin-right:-10px}.vp-portfolio__preloader svg{display:block;width:100%;height:100%}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;right:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-right:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-right:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}
assets/css/main.min.css CHANGED
@@ -1 +1 @@
1
- :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%;--vp-images-lazy__background: linear-gradient(-70deg, rgba(140, 140, 140, 0) 42%, rgba(140, 140, 140, .05) 50%, rgba(140, 140, 140, 0) 58%);--vp-images-lazy__background-color: rgba(140, 140, 140, .05);--vp-images-lazy__animation-duration: 3s}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;right:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-left:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-left:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:20px;height:20px;margin-top:45px;margin-left:-10px}.vp-portfolio__preloader svg{display:block;width:100%;height:100%}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;left:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-left:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}img.vp-lazyload{opacity:1;-webkit-transition:var(--vp-transition-duration) opacity;-o-transition:var(--vp-transition-duration) opacity;transition:var(--vp-transition-duration) opacity;will-change:opacity}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-images-lazy__background);background-color:var(--vp-images-lazy__background-color);background-position:0% 50%;background-size:500% 100%;-webkit-transition:var(--vp-transition-duration) var(--vp-transition-duration) opacity,var(--vp-transition-duration) var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) var(--vp-transition-duration) opacity,var(--vp-transition-duration) var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) var(--vp-transition-duration) opacity,var(--vp-transition-duration) var(--vp-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;-webkit-transition:none;-o-transition:none;transition:none;-webkit-animation:vp-lazyload-placeholder var(--vp-images-lazy__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-images-lazy__animation-duration) linear infinite}.vp-portfolio__item-img-lazyloading img.vp-lazyload,.vp-portfolio__thumbnail-img-lazyloading img.vp-lazyload{opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-left:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
1
+ :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;right:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-left:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-left:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:20px;height:20px;margin-top:45px;margin-left:-10px}.vp-portfolio__preloader svg{display:block;width:100%;height:100%}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;left:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-left:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-left:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
assets/images/logo-dark.svg ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="20" height="20" rx="10" fill="black" />
3
+ <path d="M11.5062 13.9L14.0488 6.59998H11.6894L9.39999 13.9H11.5062Z" fill="url(#vpf_logo_paint0_linear)" />
4
+ <path d="M8.54255 13.9L5.99999 6.59998H8.35932L10.6488 13.9H8.54255Z" fill="white" />
5
+ <defs>
6
+ <linearGradient id="vpf_logo_paint0_linear" x1="12.9" y1="6.59998" x2="6.59999" y2="15.4" gradientUnits="userSpaceOnUse">
7
+ <stop offset="0" stop-color="white" />
8
+ <stop offset="1" stop-color="white" stop-opacity="0" />
9
+ </linearGradient>
10
+ </defs>
11
+ </svg>
assets/images/logo-white.svg ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="20" height="20" rx="10" fill="white" />
3
+ <path d="M11.5062 13.9L14.0488 6.59998H11.6894L9.39999 13.9H11.5062Z" fill="url(#vpf_logo_paint0_linear)" />
4
+ <path d="M8.54255 13.9L5.99999 6.59998H8.35932L10.6488 13.9H8.54255Z" fill="black" />
5
+ <defs>
6
+ <linearGradient id="vpf_logo_paint0_linear" x1="12.9" y1="6.59998" x2="6.59999" y2="15.4" gradientUnits="userSpaceOnUse">
7
+ <stop offset="0" stop-color="black" />
8
+ <stop offset="1" stop-color="black" stop-opacity="0" />
9
+ </linearGradient>
10
+ </defs>
11
+ </svg>
assets/js/images-lazy-loading.js DELETED
@@ -1,96 +0,0 @@
1
- /*
2
- * Visual Portfolio images lazy load.
3
- */
4
- const {
5
- jQuery: $,
6
- objectFitImages,
7
- } = window;
8
-
9
- const $doc = $( document );
10
-
11
- // enable object-fit
12
- if ( 'undefined' !== typeof objectFitImages ) {
13
- // ofi and lazysizes conflicted, so we need to run lazysizes
14
- // first and then run ofi polyfill.
15
- objectFitImages( '.vp-portfolio img:not(.vp-lazyload)' );
16
-
17
- $doc.on( 'lazybeforeunveil', ( e ) => {
18
- const $img = $( e.target );
19
-
20
- if ( $img.hasClass( 'vp-lazyload' ) ) {
21
- $img.one( 'load', () => {
22
- objectFitImages( $img[ 0 ] );
23
- } );
24
- }
25
- } );
26
- }
27
-
28
- // Lazyloaded - remove preloader images placeholder effect.
29
- $doc.on( 'lazybeforeunveil', ( e ) => {
30
- const $img = $( e.target );
31
-
32
- if ( $img.hasClass( 'vp-lazyload' ) ) {
33
- $img.closest( '.vp-portfolio__item-img' ).addClass( 'vp-portfolio__item-img-lazyloading' );
34
- $img.closest( '.vp-portfolio__thumbnail-img' ).addClass( 'vp-portfolio__thumbnail-img-lazyloading' );
35
- }
36
- } );
37
- $doc.on( 'lazyloaded', ( e ) => {
38
- const $img = $( e.target );
39
-
40
- if ( $img.hasClass( 'vp-lazyload' ) ) {
41
- $img.closest( '.vp-portfolio__item-img-lazyloading' ).removeClass( 'vp-portfolio__item-img-lazyloading' );
42
- $img.closest( '.vp-portfolio__thumbnail-img-lazyloading' ).removeClass( 'vp-portfolio__thumbnail-img-lazyloading' );
43
- }
44
- } );
45
-
46
- // Extend VP class.
47
- $doc.on( 'extendClass.vpf', ( event, VP ) => {
48
- if ( 'vpf' !== event.namespace ) {
49
- return;
50
- }
51
-
52
- /**
53
- * Prepare image for Lazyload
54
- *
55
- * We need to add lazyload class and attributes from global config of lazysizes.
56
- * This need because some 3rd-party themes/plugins may change it and it will be conflicted with our config.
57
- * Related topic: https://wordpress.org/support/topic/since-the-last-update-i-cant-see-image-featured-of-posts/#post-10519096.
58
- */
59
- VP.prototype.prepareLazyLoad = function() {
60
- const self = this;
61
- const config = window.lazySizes && window.lazySizes.cfg ? window.lazySizes.cfg : window.lazySizesConfig;
62
-
63
- if ( config ) {
64
- const attrsToReplace = {
65
- 'data-src': config.srcAttr,
66
- 'data-sizes': config.sizesAttr,
67
- 'data-srcset': config.srcsetAttr,
68
- };
69
-
70
- self.$items_wrap.add( self.$slider_thumbnails_wrap )
71
- .find( `img.vp-lazyload:not(.${ config.lazyClass }), picture.vp-lazyload img:not(.${ config.lazyClass })` ).each( function() {
72
- const $item = $( this );
73
-
74
- Object.keys( attrsToReplace ).forEach( ( attr ) => {
75
- if ( attrsToReplace[ attr ] && attr !== attrsToReplace[ attr ] && $item.attr( attr ) ) {
76
- $item.attr( attrsToReplace[ attr ], $item.attr( attr ) );
77
- $item.removeAttr( attr );
78
- }
79
- } );
80
-
81
- // We need to add our class to support 3rd-party plugins, that adds
82
- // WebP support using <picture> tags (for example Imagify).
83
- $item.addClass( `vp-lazyload ${ config.lazyClass }` );
84
- } );
85
- }
86
- };
87
- } );
88
-
89
- // Init lazy loading on start and after new items loaded.
90
- $doc.on( 'init.vpf endLoadingNewItems.vpf', ( event, self ) => {
91
- if ( 'vpf' !== event.namespace ) {
92
- return;
93
- }
94
-
95
- self.prepareLazyLoad();
96
- } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/images-lazy-loading.min.js DELETED
@@ -1 +0,0 @@
1
- !function(t){var o={};function e(a){if(o[a])return o[a].exports;var n=o[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=o,e.d=function(t,o,a){e.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,o){if(1&o&&(t=e(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var n in t)e.d(a,n,function(o){return t[o]}.bind(null,n));return a},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},e.p="",e(e.s=221)}({221:function(t,o,e){t.exports=e(222)},222:function(t,o){var e=window,a=e.jQuery,n=e.objectFitImages,i=a(document);void 0!==n&&(n(".vp-portfolio img:not(.vp-lazyload)"),i.on("lazybeforeunveil",(function(t){var o=a(t.target);o.hasClass("vp-lazyload")&&o.one("load",(function(){n(o[0])}))}))),i.on("lazybeforeunveil",(function(t){var o=a(t.target);o.hasClass("vp-lazyload")&&(o.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading"),o.closest(".vp-portfolio__thumbnail-img").addClass("vp-portfolio__thumbnail-img-lazyloading"))})),i.on("lazyloaded",(function(t){var o=a(t.target);o.hasClass("vp-lazyload")&&(o.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading"),o.closest(".vp-portfolio__thumbnail-img-lazyloading").removeClass("vp-portfolio__thumbnail-img-lazyloading"))})),i.on("extendClass.vpf",(function(t,o){"vpf"===t.namespace&&(o.prototype.prepareLazyLoad=function(){var t=window.lazySizes&&window.lazySizes.cfg?window.lazySizes.cfg:window.lazySizesConfig;if(t){var o={"data-src":t.srcAttr,"data-sizes":t.sizesAttr,"data-srcset":t.srcsetAttr};this.$items_wrap.add(this.$slider_thumbnails_wrap).find("img.vp-lazyload:not(.".concat(t.lazyClass,"), picture.vp-lazyload img:not(.").concat(t.lazyClass,")")).each((function(){var e=a(this);Object.keys(o).forEach((function(t){o[t]&&t!==o[t]&&e.attr(t)&&(e.attr(o[t],e.attr(t)),e.removeAttr(t))})),e.addClass("vp-lazyload ".concat(t.lazyClass))}))}})})),i.on("init.vpf endLoadingNewItems.vpf",(function(t,o){"vpf"===t.namespace&&o.prepareLazyLoad()}))}});
 
assets/js/items-style-fly.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=223)}({223:function(t,e,n){t.exports=n(224)},224:function(t,e){var n=window.jQuery,o=n(window);function r(t,e,n,o){var r=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),i=(o.x-n.x)*(e.y-n.y)-(o.y-n.y)*(e.x-n.x),a=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x),f=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x);return 0>=r*i&&0>=a*f}n(document).on("initEvents.vpf",(function(t,e){if("vpf"===t.namespace&&"fly"===e.options.itemsStyle){var i=".vpf-uid-".concat(e.uid),a={};o.on("mousemove".concat(i),(function(t){a={x:t.clientX,y:t.clientY}})),e.$item.on("mouseenter".concat(i," mouseleave").concat(i),".vp-portfolio__item",(function(t){var e=n(this),o=e[0].getBoundingClientRect(),i=e.find(".vp-portfolio__item-overlay"),f="mouseenter"===t.type,c="0%",u="0%",l={x:t.clientX,y:t.clientY},s=r({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},l,a),y=r({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},l,a),p=r({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},l,a),d=r({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},l,a);if(!(s||y||p||d)){var x=(o.width/2-l.x+o.left)/(o.width/2),v=(o.height/2-l.y+o.top)/(o.height/2);Math.abs(x)>Math.abs(v)?0<x?p=!0:d=!0:0<v?s=!0:y=!0}s?u="-100.1%":y?u="100.1%":p?c="-100.1%":d&&(c="100.1%"),f&&(i.css({transition:"none",transform:"translateX(".concat(c,") translateY(").concat(u,") translateZ(0)")}),i[0].offsetHeight),i.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(f?"0%":c,") translateY(").concat(f?"0%":u,") translateZ(0)")})}))}})),n(document).on("destroyEvents.vpf",(function(t,e){if("vpf"===t.namespace&&"fly"===e.options.itemsStyle){var n=".vpf-uid-".concat(e.uid);o.off("mousemove".concat(n)),e.$item.off("mouseenter".concat(n," mouseleave").concat(n))}}))}});
1
+ !function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=221)}({221:function(t,e,n){t.exports=n(222)},222:function(t,e){var n=window.jQuery,o=n(window);function r(t,e,n,o){var r=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),i=(o.x-n.x)*(e.y-n.y)-(o.y-n.y)*(e.x-n.x),a=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x),f=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x);return 0>=r*i&&0>=a*f}n(document).on("initEvents.vpf",(function(t,e){if("vpf"===t.namespace&&"fly"===e.options.itemsStyle){var i=".vpf-uid-".concat(e.uid),a={};o.on("mousemove".concat(i),(function(t){a={x:t.clientX,y:t.clientY}})),e.$item.on("mouseenter".concat(i," mouseleave").concat(i),".vp-portfolio__item",(function(t){var e=n(this),o=e[0].getBoundingClientRect(),i=e.find(".vp-portfolio__item-overlay"),f="mouseenter"===t.type,c="0%",u="0%",l={x:t.clientX,y:t.clientY},s=r({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},l,a),y=r({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},l,a),p=r({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},l,a),d=r({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},l,a);if(!(s||y||p||d)){var x=(o.width/2-l.x+o.left)/(o.width/2),v=(o.height/2-l.y+o.top)/(o.height/2);Math.abs(x)>Math.abs(v)?0<x?p=!0:d=!0:0<v?s=!0:y=!0}s?u="-100.1%":y?u="100.1%":p?c="-100.1%":d&&(c="100.1%"),f&&(i.css({transition:"none",transform:"translateX(".concat(c,") translateY(").concat(u,") translateZ(0)")}),i[0].offsetHeight),i.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(f?"0%":c,") translateY(").concat(f?"0%":u,") translateZ(0)")})}))}})),n(document).on("destroyEvents.vpf",(function(t,e){if("vpf"===t.namespace&&"fly"===e.options.itemsStyle){var n=".vpf-uid-".concat(e.uid);o.off("mousemove".concat(n)),e.$item.off("mouseenter".concat(n," mouseleave").concat(n))}}))}});
assets/js/layout-grid.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var i={};function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(i){return t[i]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=225)}({225:function(t,i,e){t.exports=e(226)},226:function(t,i){var e=window.jQuery,o=window.VPData.screenSizes;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var n=window.Isotope.LayoutMode.create("vpRows").prototype;n.measureColumns=function(){if(this.items=this.isotope.filteredItems,this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&window.getSize(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;var e=this.containerWidth+this.gutter,o=e/this.columnWidth,n=this.columnWidth-e%this.columnWidth;o=Math[n&&1>n?"round":"floor"](o),this.cols=Math.max(o,1)},n.getContainerWidth=function(){var t=!!this._getOption&&this._getOption("fitWidth")?this.element.parentNode:this.element,i=window.getSize(t);this.containerWidth=i&&i.innerWidth},n._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this.horizontalColIndex=0,this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns()},n._getItemLayoutPosition=function(t){t.getSize();var i=t.size.outerWidth%this.columnWidth,e=Math[i&&1>i?"round":"ceil"](t.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);var o=this.horizontalColIndex%this.cols;o=1<e&&o+e>this.cols?0:o;var n=t.size.outerWidth&&t.size.outerHeight;this.horizontalColIndex=n?o+e:this.horizontalColIndex;var r=t.size.outerWidth+this.gutter;0!==this.x&&1===this.horizontalColIndex&&(this.x=0,this.y=this.maxY);var s={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=r,s},n._getContainerSize=function(){return{height:this.maxY}}}e(document).on("initOptions.vpf",(function(t,i){"vpf"===t.namespace&&(i.defaults.gridColumns=3,i.options.gridColumns||(i.options.gridColumns=i.defaults.gridColumns),i.options.gridImagesAspectRatio||(i.options.gridImagesAspectRatio=i.defaults.gridImagesAspectRatio))})),e(document).on("initLayout.vpf",(function(t,i){if("vpf"===t.namespace&&"grid"===i.options.layout){var e=function(t){var i="",e="";if(t&&/:/g.test(t)){var o=t.split(":");i=o[0],e=o[1]}return[i,e]}(i.options.gridImagesAspectRatio);e&&e[0]&&e[1]&&i.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap::before",{"padding-top":"".concat(e[1]/e[0]*100,"%")}),i.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i.options.gridColumns,"%")});for(var n=i.options.gridColumns-1,r=Math.min(o.length-1,n);0<=r;r-=1)0<n&&void 0!==o[r]&&i.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/n,"%")},"screen and (max-width: ".concat(o[r],"px)")),n-=1}})),e(document).on("beforeInitIsotope.vpf",(function(t,i,e){"vpf"===t.namespace&&"grid"===i.options.layout&&(e.layoutMode="vpRows")}))}});
1
+ !function(t){var i={};function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(i){return t[i]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=223)}({223:function(t,i,e){t.exports=e(224)},224:function(t,i){var e=window.jQuery,o=window.VPData.screenSizes;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var n=window.Isotope.LayoutMode.create("vpRows").prototype;n.measureColumns=function(){if(this.items=this.isotope.filteredItems,this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&window.getSize(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;var e=this.containerWidth+this.gutter,o=e/this.columnWidth,n=this.columnWidth-e%this.columnWidth;o=Math[n&&1>n?"round":"floor"](o),this.cols=Math.max(o,1)},n.getContainerWidth=function(){var t=!!this._getOption&&this._getOption("fitWidth")?this.element.parentNode:this.element,i=window.getSize(t);this.containerWidth=i&&i.innerWidth},n._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this.horizontalColIndex=0,this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns()},n._getItemLayoutPosition=function(t){t.getSize();var i=t.size.outerWidth%this.columnWidth,e=Math[i&&1>i?"round":"ceil"](t.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);var o=this.horizontalColIndex%this.cols;o=1<e&&o+e>this.cols?0:o;var n=t.size.outerWidth&&t.size.outerHeight;this.horizontalColIndex=n?o+e:this.horizontalColIndex;var r=t.size.outerWidth+this.gutter;0!==this.x&&1===this.horizontalColIndex&&(this.x=0,this.y=this.maxY);var s={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=r,s},n._getContainerSize=function(){return{height:this.maxY}}}e(document).on("initOptions.vpf",(function(t,i){"vpf"===t.namespace&&(i.defaults.gridColumns=3,i.options.gridColumns||(i.options.gridColumns=i.defaults.gridColumns),i.options.gridImagesAspectRatio||(i.options.gridImagesAspectRatio=i.defaults.gridImagesAspectRatio))})),e(document).on("initLayout.vpf",(function(t,i){if("vpf"===t.namespace&&"grid"===i.options.layout){var e=function(t){var i="",e="";if(t&&/:/g.test(t)){var o=t.split(":");i=o[0],e=o[1]}return[i,e]}(i.options.gridImagesAspectRatio);e&&e[0]&&e[1]&&i.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap::before",{"padding-top":"".concat(e[1]/e[0]*100,"%")}),i.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i.options.gridColumns,"%")});for(var n=i.options.gridColumns-1,r=Math.min(o.length-1,n);0<=r;r-=1)0<n&&void 0!==o[r]&&i.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/n,"%")},"screen and (max-width: ".concat(o[r],"px)")),n-=1}})),e(document).on("beforeInitIsotope.vpf",(function(t,i,e){"vpf"===t.namespace&&"grid"===i.options.layout&&(e.layoutMode="vpRows")}))}});
assets/js/layout-justified.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=227)}({227:function(e,t,n){e.exports=n(228)},228:function(e,t){(0,window.jQuery)(document).on("initOptions.vpf",(function(e,t){"vpf"===e.namespace&&(t.defaults.justifiedRowHeight=250,t.defaults.justifiedRowHeightTolerance=.25,t.options.justifiedRowHeight||(t.options.justifiedRowHeight=t.defaults.justifiedRowHeight),t.options.justifiedRowHeightTolerance||(t.options.justifiedRowHeightTolerance=t.defaults.justifiedRowHeightTolerance))}))}});
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=225)}({225:function(e,t,n){e.exports=n(226)},226:function(e,t){(0,window.jQuery)(document).on("initOptions.vpf",(function(e,t){"vpf"===e.namespace&&(t.defaults.justifiedRowHeight=250,t.defaults.justifiedRowHeightTolerance=.25,t.options.justifiedRowHeight||(t.options.justifiedRowHeight=t.defaults.justifiedRowHeight),t.options.justifiedRowHeightTolerance||(t.options.justifiedRowHeightTolerance=t.defaults.justifiedRowHeightTolerance))}))}});
assets/js/layout-masonry.min.js CHANGED
@@ -1 +1 @@
1
- !function(o){var t={};function n(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return o[e].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=o,n.c=t,n.d=function(o,t,e){n.o(o,t)||Object.defineProperty(o,t,{enumerable:!0,get:e})},n.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,t){if(1&t&&(o=n(o)),8&t)return o;if(4&t&&"object"==typeof o&&o&&o.__esModule)return o;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:o}),2&t&&"string"!=typeof o)for(var r in o)n.d(e,r,function(t){return o[t]}.bind(null,r));return e},n.n=function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(t,"a",t),t},n.o=function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},n.p="",n(n.s=229)}({229:function(o,t,n){o.exports=n(230)},230:function(o,t){var n=window.jQuery,e=window.VPData.screenSizes;n(document).on("initOptions.vpf",(function(o,t){"vpf"===o.namespace&&(t.defaults.masonryColumns=3,t.options.masonryColumns||(t.options.masonryColumns=t.defaults.masonryColumns),t.options.masonryImagesAspectRatio||(t.options.masonryImagesAspectRatio=t.defaults.masonryImagesAspectRatio))})),n(document).on("initLayout.vpf",(function(o,t){if("vpf"===o.namespace&&"masonry"===t.options.layout){var n=function(o){var t="",n="";if(o&&/:/g.test(o)){var e=o.split(":");t=e[0],n=e[1]}return[t,n]}(t.options.masonryImagesAspectRatio);n&&n[0]&&n[1]&&t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap::before",{"padding-top":"".concat(n[1]/n[0]*100,"%")}),t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/t.options.masonryColumns,"%")});for(var r=t.options.masonryColumns-1,a=Math.min(e.length-1,r);0<=a;a-=1)0<r&&void 0!==e[a]&&t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(e[a],"px)")),r-=1}}))}});
1
+ !function(o){var t={};function n(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return o[e].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=o,n.c=t,n.d=function(o,t,e){n.o(o,t)||Object.defineProperty(o,t,{enumerable:!0,get:e})},n.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,t){if(1&t&&(o=n(o)),8&t)return o;if(4&t&&"object"==typeof o&&o&&o.__esModule)return o;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:o}),2&t&&"string"!=typeof o)for(var r in o)n.d(e,r,function(t){return o[t]}.bind(null,r));return e},n.n=function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(t,"a",t),t},n.o=function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},n.p="",n(n.s=227)}({227:function(o,t,n){o.exports=n(228)},228:function(o,t){var n=window.jQuery,e=window.VPData.screenSizes;n(document).on("initOptions.vpf",(function(o,t){"vpf"===o.namespace&&(t.defaults.masonryColumns=3,t.options.masonryColumns||(t.options.masonryColumns=t.defaults.masonryColumns),t.options.masonryImagesAspectRatio||(t.options.masonryImagesAspectRatio=t.defaults.masonryImagesAspectRatio))})),n(document).on("initLayout.vpf",(function(o,t){if("vpf"===o.namespace&&"masonry"===t.options.layout){var n=function(o){var t="",n="";if(o&&/:/g.test(o)){var e=o.split(":");t=e[0],n=e[1]}return[t,n]}(t.options.masonryImagesAspectRatio);n&&n[0]&&n[1]&&t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap::before",{"padding-top":"".concat(n[1]/n[0]*100,"%")}),t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/t.options.masonryColumns,"%")});for(var r=t.options.masonryColumns-1,a=Math.min(e.length-1,r);0<=a;a-=1)0<r&&void 0!==e[a]&&t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/r,"%")},"screen and (max-width: ".concat(e[a],"px)")),r-=1}}))}});
assets/js/layout-slider.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t){var o={};function i(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=o,i.d=function(t,o,e){i.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,o){if(1&o&&(t=i(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var n in t)i.d(e,n,function(o){return t[o]}.bind(null,n));return e},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},i.p="",i(i.s=231)}({231:function(t,o,i){t.exports=i(232)},232:function(t,o,i){"use strict";i.r(o);var e=i(28),n=i.n(e);(0,window.jQuery)(document).on("initLayout.vpf",(function(t,o){"vpf"===t.namespace&&"slider"===o.options.layout&&(["items","thumbnails"].forEach((function(t){var i="items"===t?o.options.sliderItemsHeight:o.options.sliderThumbnailsHeight,e="items"===t?o.options.sliderItemsMinHeight:0,r=t.replace(/s$/g,"");if("auto"!==i)if(i=n()(i)?"".concat(i,"px"):i,e&&o.isPreview()&&/vh/.test(e)&&(e=0),"auto"===("items"===t?o.options.sliderSlidesPerView:o.options.sliderThumbnailsPerView)){var p="auto";"items"===t&&"fade"===o.options.sliderEffect&&(p="100%"),i.indexOf("%")===i.length-1?(o.addStyle(".vp-portfolio__".concat(t,"-wrap::before"),{content:'""',display:"block",width:"100%","margin-top":i}),o.addStyle(".vp-portfolio__".concat(t),{position:"absolute",top:0,left:0,right:0,bottom:0}),o.addStyle(".vp-portfolio__".concat(r,"-wrap"),{width:"auto",height:"true"===o.options.sliderBullets?"calc( 100% - 25px )":"100%"}),o.addStyle(".vp-portfolio__".concat(r,", .vp-portfolio__").concat(r,"-img-wrap, .vp-portfolio__").concat(r,"-img, .vp-portfolio__").concat(r,"-wrap .vp-portfolio__").concat(r," .vp-portfolio__").concat(r,"-img a, .vp-portfolio__").concat(r,"-wrap .vp-portfolio__").concat(r," .vp-portfolio__").concat(r,"-img img"),{width:p,height:"100%"}),e&&o.addStyle(".vp-portfolio__".concat(t,"-wrap"),{"min-height":e})):(o.addStyle(".vp-portfolio__".concat(r,"-wrap"),{width:"auto"}),o.addStyle(".vp-portfolio__".concat(r," .vp-portfolio__").concat(r,"-img img"),{width:p,height:i}),e&&o.addStyle(".vp-portfolio__".concat(r," .vp-portfolio__").concat(r,"-img img"),{"min-height":e}))}else o.addStyle(".vp-portfolio__".concat(r,"-img-wrap::before"),{"margin-top":i}),o.addStyle(".vp-portfolio__".concat(r,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),o.addStyle(".vp-portfolio__".concat(r,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),o.addStyle(".vp-portfolio__".concat(r," .vp-portfolio__").concat(r,"-img img"),{width:"100%",height:"100%"}),e&&o.addStyle(".vp-portfolio__".concat(r,"-img-wrap"),{"min-height":e})})),o.options.sliderThumbnailsGap&&o.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(o.options.sliderThumbnailsGap,"px")}))}))},28:function(t,o,i){"use strict";
2
  /*!
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
  *
1
+ !function(t){var o={};function i(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=o,i.d=function(t,o,e){i.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,o){if(1&o&&(t=i(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var n in t)i.d(e,n,function(o){return t[o]}.bind(null,n));return e},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},i.p="",i(i.s=229)}({229:function(t,o,i){t.exports=i(230)},230:function(t,o,i){"use strict";i.r(o);var e=i(28),n=i.n(e);(0,window.jQuery)(document).on("initLayout.vpf",(function(t,o){"vpf"===t.namespace&&"slider"===o.options.layout&&(["items","thumbnails"].forEach((function(t){var i="items"===t?o.options.sliderItemsHeight:o.options.sliderThumbnailsHeight,e="items"===t?o.options.sliderItemsMinHeight:0,r=t.replace(/s$/g,"");if("auto"!==i)if(i=n()(i)?"".concat(i,"px"):i,e&&o.isPreview()&&/vh/.test(e)&&(e=0),"auto"===("items"===t?o.options.sliderSlidesPerView:o.options.sliderThumbnailsPerView)){var p="auto";"items"===t&&"fade"===o.options.sliderEffect&&(p="100%"),i.indexOf("%")===i.length-1?(o.addStyle(".vp-portfolio__".concat(t,"-wrap::before"),{content:'""',display:"block",width:"100%","margin-top":i}),o.addStyle(".vp-portfolio__".concat(t),{position:"absolute",top:0,left:0,right:0,bottom:0}),o.addStyle(".vp-portfolio__".concat(r,"-wrap"),{width:"auto",height:"true"===o.options.sliderBullets?"calc( 100% - 25px )":"100%"}),o.addStyle(".vp-portfolio__".concat(r,", .vp-portfolio__").concat(r,"-img-wrap, .vp-portfolio__").concat(r,"-img, .vp-portfolio__").concat(r,"-wrap .vp-portfolio__").concat(r," .vp-portfolio__").concat(r,"-img a, .vp-portfolio__").concat(r,"-wrap .vp-portfolio__").concat(r," .vp-portfolio__").concat(r,"-img img"),{width:p,height:"100%"}),e&&o.addStyle(".vp-portfolio__".concat(t,"-wrap"),{"min-height":e})):(o.addStyle(".vp-portfolio__".concat(r,"-wrap"),{width:"auto"}),o.addStyle(".vp-portfolio__".concat(r," .vp-portfolio__").concat(r,"-img img"),{width:p,height:i}),e&&o.addStyle(".vp-portfolio__".concat(r," .vp-portfolio__").concat(r,"-img img"),{"min-height":e}))}else o.addStyle(".vp-portfolio__".concat(r,"-img-wrap::before"),{"margin-top":i}),o.addStyle(".vp-portfolio__".concat(r,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),o.addStyle(".vp-portfolio__".concat(r,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),o.addStyle(".vp-portfolio__".concat(r," .vp-portfolio__").concat(r,"-img img"),{width:"100%",height:"100%"}),e&&o.addStyle(".vp-portfolio__".concat(r,"-img-wrap"),{"min-height":e})})),o.options.sliderThumbnailsGap&&o.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(o.options.sliderThumbnailsGap,"px")}))}))},28:function(t,o,i){"use strict";
2
  /*!
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
  *
assets/js/layout-tiles.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=233)}({233:function(t,e,o){t.exports=o(234)},234:function(t,e){var o=window.jQuery,n=window.VPData.screenSizes;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var i=window.Isotope.LayoutMode.modes.masonry;if(i){var r=i.prototype.measureColumns;i.prototype.measureColumns=function(){var t=!0;if(!this.columnWidth){var e=o(this.element).closest('.vp-portfolio[data-vp-layout="tiles"]');if(e.length&&e[0].vpf){this.getContainerWidth();for(var i=e[0].vpf.getTilesSettings(),a=parseInt(i[0],10)||1,p=a-1,l=Math.min(n.length-1,p);0<=l;l-=1)0<p&&void 0!==n[l]&&window.innerWidth<=n[l]&&(a=p),p-=1;a&&(this.columnWidth=this.containerWidth/a,this.columnWidth+=this.gutter,this.cols=a,t=!1)}}t&&r.call(this)}}}o(document).on("extendClass.vpf",(function(t,e){"vpf"===t.namespace&&(e.prototype.getTilesSettings=function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t})})),o(document).on("initOptions.vpf",(function(t,e){"vpf"===t.namespace&&(e.defaults.tilesType="3|1,1|",e.options.tilesType||(e.options.tilesType=e.defaults.tilesType))})),o(document).on("initLayout.vpf",(function(t,e){if("vpf"===t.namespace&&"tiles"===e.options.layout){var o=e.getTilesSettings(),i=parseInt(o[0],10)||1;if(o.shift(),e.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i,"%")}),o&&o.length)for(var r=0;r<o.length;r+=1){var a=o[r].split(","),p=parseFloat(a[0])||1,l=parseFloat(a[1])||1,s=".vp-portfolio__item-wrap";1<o.length&&(s+=":nth-of-type(".concat(o.length,"n+").concat(r+1,")")),p&&1!==p&&e.addStyle(s,{width:"".concat(100*p/i,"%")}),e.addStyle("".concat(s," .vp-portfolio__item-img-wrap::before"),{"padding-top":"".concat(100*l,"%")})}for(var c=i-1,d=Math.min(n.length-1,c);0<=d;d-=1)0<c&&void 0!==n[d]&&(e.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(n[d],"px)")),e.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(n[d],"px)"))),c-=1}}))}});
1
+ !function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=231)}({231:function(t,e,o){t.exports=o(232)},232:function(t,e){var o=window.jQuery,n=window.VPData.screenSizes;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var i=window.Isotope.LayoutMode.modes.masonry;if(i){var r=i.prototype.measureColumns;i.prototype.measureColumns=function(){var t=!0;if(!this.columnWidth){var e=o(this.element).closest('.vp-portfolio[data-vp-layout="tiles"]');if(e.length&&e[0].vpf){this.getContainerWidth();for(var i=e[0].vpf.getTilesSettings(),a=parseInt(i[0],10)||1,p=a-1,l=Math.min(n.length-1,p);0<=l;l-=1)0<p&&void 0!==n[l]&&window.innerWidth<=n[l]&&(a=p),p-=1;a&&(this.columnWidth=this.containerWidth/a,this.columnWidth+=this.gutter,this.cols=a,t=!1)}}t&&r.call(this)}}}o(document).on("extendClass.vpf",(function(t,e){"vpf"===t.namespace&&(e.prototype.getTilesSettings=function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t})})),o(document).on("initOptions.vpf",(function(t,e){"vpf"===t.namespace&&(e.defaults.tilesType="3|1,1|",e.options.tilesType||(e.options.tilesType=e.defaults.tilesType))})),o(document).on("initLayout.vpf",(function(t,e){if("vpf"===t.namespace&&"tiles"===e.options.layout){var o=e.getTilesSettings(),i=parseInt(o[0],10)||1;if(o.shift(),e.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i,"%")}),o&&o.length)for(var r=0;r<o.length;r+=1){var a=o[r].split(","),p=parseFloat(a[0])||1,l=parseFloat(a[1])||1,s=".vp-portfolio__item-wrap";1<o.length&&(s+=":nth-of-type(".concat(o.length,"n+").concat(r+1,")")),p&&1!==p&&e.addStyle(s,{width:"".concat(100*p/i,"%")}),e.addStyle("".concat(s," .vp-portfolio__item-img-wrap::before"),{"padding-top":"".concat(100*l,"%")})}for(var c=i-1,d=Math.min(n.length-1,c);0<=d;d-=1)0<c&&void 0!==n[d]&&(e.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(n[d],"px)")),e.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(n[d],"px)"))),c-=1}}))}});
assets/js/lazyload.js ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Visual Portfolio images lazy load.
3
+ */
4
+ const {
5
+ jQuery: $,
6
+ objectFitImages,
7
+ } = window;
8
+
9
+ const $doc = $( document );
10
+
11
+ // enable object-fit
12
+ if ( 'undefined' !== typeof objectFitImages ) {
13
+ // ofi and lazysizes conflicted, so we need to run lazysizes
14
+ // first and then run ofi polyfill.
15
+ objectFitImages( '.vp-portfolio img:not(.vp-lazyload)' );
16
+
17
+ $doc.on( 'lazybeforeunveil', ( e ) => {
18
+ const $img = $( e.target );
19
+
20
+ if ( $img.closest( '.vp-portfolio' ).length ) {
21
+ $img.one( 'load', () => {
22
+ objectFitImages( $img[ 0 ] );
23
+ } );
24
+ }
25
+ } );
26
+ }
27
+
28
+ // Lazyloaded - remove preloader images placeholder effect.
29
+ $doc.on( 'lazybeforeunveil', ( e ) => {
30
+ const $img = $( e.target );
31
+
32
+ $img.closest( '.vp-portfolio__item-img' ).addClass( 'vp-portfolio__item-img-lazyloading' );
33
+ $img.closest( '.vp-portfolio__thumbnail-img' ).addClass( 'vp-portfolio__thumbnail-img-lazyloading' );
34
+
35
+ /**
36
+ * Remove <noscript> tag.
37
+ * Some of optimization plugin make something, that killed our styles with noscript tag.
38
+ * Related topic: https://wordpress.org/support/topic/visual-portfolio-and-sg-optimizer-dont-play-well/
39
+ */
40
+ $img.prev( 'noscript' ).remove();
41
+ } );
42
+ $doc.on( 'lazyloaded', ( e ) => {
43
+ const $img = $( e.target );
44
+
45
+ $img.closest( '.vp-portfolio__item-img-lazyloading' ).removeClass( 'vp-portfolio__item-img-lazyloading' );
46
+ $img.closest( '.vp-portfolio__thumbnail-img-lazyloading' ).removeClass( 'vp-portfolio__thumbnail-img-lazyloading' );
47
+ } );
assets/js/lazyload.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(o){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return o[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:n})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,e){if(1&e&&(o=t(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var r in o)t.d(n,r,function(e){return o[e]}.bind(null,r));return n},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,"a",e),e},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.p="",t(t.s=233)}({233:function(o,e,t){o.exports=t(234)},234:function(o,e){var t=window,n=t.jQuery,r=t.objectFitImages,i=n(document);void 0!==r&&(r(".vp-portfolio img:not(.vp-lazyload)"),i.on("lazybeforeunveil",(function(o){var e=n(o.target);e.closest(".vp-portfolio").length&&e.one("load",(function(){r(e[0])}))}))),i.on("lazybeforeunveil",(function(o){var e=n(o.target);e.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading"),e.closest(".vp-portfolio__thumbnail-img").addClass("vp-portfolio__thumbnail-img-lazyloading"),e.prev("noscript").remove()})),i.on("lazyloaded",(function(o){var e=n(o.target);e.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading"),e.closest(".vp-portfolio__thumbnail-img-lazyloading").removeClass("vp-portfolio__thumbnail-img-lazyloading")}))}});
assets/js/lazysizes-config.js ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Visual Portfolio images lazy load.
3
+ */
4
+ window.lazySizesConfig = window.lazySizesConfig || {};
5
+
6
+ window.lazySizesConfig = {
7
+ ...window.lazySizesConfig,
8
+ lazyClass: 'vp-lazyload',
9
+ loadedClass: 'vp-lazyloaded',
10
+ preloadClass: 'vp-lazypreload',
11
+ loadingClass: 'vp-lazyloading',
12
+ srcAttr: 'data-src',
13
+ srcsetAttr: 'data-srcset',
14
+ sizesAttr: 'data-sizes',
15
+ };
assets/js/lazysizes-config.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=235)}({235:function(e,t,r){e.exports=r(236)},236:function(e,t){function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig=n(n({},window.lazySizesConfig),{},{lazyClass:"vp-lazyload",loadedClass:"vp-lazyloaded",preloadClass:"vp-lazypreload",loadingClass:"vp-lazyloading",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes"})}});
assets/js/lazysizes-object-fit-cover.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=235)}({235:function(e,t,n){e.exports=n(236)},236:function(e,t){!function(e,t){var n=function n(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,(function(e,t,n){if(e.addEventListener){var r={calculateSize:function(t,n){var r,i=(r=t,e.getComputedStyle(r,null)||{});if(i&&i.objectFit&&"cover"===i.objectFit){var o=parseInt(t.getAttribute("height"),10),u=parseInt(t.getAttribute("width"),10);o&&u/o>t.clientWidth/t.clientHeight&&(n=parseInt(t.clientHeight*u/o,10))}return n}};n.objectFitCover=r,t.addEventListener("lazybeforesizes",(function(e){if(!e.defaultPrevented&&e.detail.instance===n){var t=e.target;e.detail.width=r.calculateSize(t,e.detail.width)}}))}}))}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=237)}({237:function(e,t,n){e.exports=n(238)},238:function(e,t){!function(e,t){var n=function n(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,(function(e,t,n){if(e.addEventListener){var r={calculateSize:function(t,n){var r,i=(r=t,e.getComputedStyle(r,null)||{});if(i&&i.objectFit&&"cover"===i.objectFit){var o=parseInt(t.getAttribute("height"),10),u=parseInt(t.getAttribute("width"),10);o&&u/o>t.clientWidth/t.clientHeight&&(n=parseInt(t.clientHeight*u/o,10))}return n}};n.objectFitCover=r,t.addEventListener("lazybeforesizes",(function(e){if(!e.defaultPrevented&&e.detail.instance===n){var t=e.target;e.detail.width=r.calculateSize(t,e.detail.width)}}))}}))}});
assets/js/main.js CHANGED
@@ -170,8 +170,6 @@ class VP {
170
 
171
  self.destroyed = false;
172
 
173
- self.removeNoscriptTags( self.$items_wrap );
174
-
175
  // init options
176
  self.initOptions();
177
 
@@ -585,18 +583,6 @@ class VP {
585
  self.emitEvent( 'destroyEvents' );
586
  }
587
 
588
- /**
589
- * Remove <noscript> tags.
590
- * Some optimization plugin make something, that killed our styles with noscript tag.
591
- * Related topic: https://wordpress.org/support/topic/visual-portfolio-and-sg-optimizer-dont-play-well/
592
- *
593
- * @param {object} $items items to work with
594
- */
595
- // eslint-disable-next-line class-methods-use-this
596
- removeNoscriptTags( $items ) {
597
- $items.find( 'noscript' ).remove();
598
- }
599
-
600
  /**
601
  * Init layout
602
  */
@@ -645,8 +631,6 @@ class VP {
645
  addItems( $items, removeExisting, $newVP ) {
646
  const self = this;
647
 
648
- self.removeNoscriptTags( $items );
649
-
650
  self.emitEvent( 'addItems', [ $items, removeExisting, $newVP ] );
651
  }
652
 
170
 
171
  self.destroyed = false;
172
 
 
 
173
  // init options
174
  self.initOptions();
175
 
583
  self.emitEvent( 'destroyEvents' );
584
  }
585
 
 
 
 
 
 
 
 
 
 
 
 
 
586
  /**
587
  * Init layout
588
  */
631
  addItems( $items, removeExisting, $newVP ) {
632
  const self = this;
633
 
 
 
634
  self.emitEvent( 'addItems', [ $items, removeExisting, $newVP ] );
635
  }
636
 
assets/js/main.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var i={};function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(i){return t[i]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=237)}({237:function(t,i,e){t.exports=e(238)},238:function(t,i,e){"use strict";e.r(i);var o=e(3),n=e(4);function s(t){return(s="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})(t)}function r(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,o.key,o)}}var a=window,l=a.jQuery,c=a.VPData.__,f=l(window);function p(){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 v={},d=!1,u=!1;function h(){if(clearTimeout(u),d){var t=l(".vp-portfolio__ready");if(t.length){var i=!1;t.each((function(){var t=this.vpf;if(t){var e=v[t.uid]||"none";v[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===e&&"visible"===v[t.uid]&&(i=!0)}})),i&&p()}else d=!1;u=setTimeout(h,500)}}l(document).on("inited.vpf",(function(t){"vpf"===t.namespace&&(d=!0,h())}));var m=function(){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(c.couldnt_retrieve_vp)}var i,e,o;return i=t,(e=[{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.removeNoscriptTags(this.$items_wrap),this.initOptions(),this.initEvents(),this.initLayout(),this.initCustomColors(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__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(){p(),this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this;this.$items_wrap.imagesLoaded&&this.$items_wrap.imagesLoaded((function(){t.emitEvent("imagesLoaded")}))}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__ready")),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,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=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach((function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach((function(n){e+=".vp-uid-".concat(i," ").concat(n," {"),Object.keys(t.stylesList[i][o][n]).forEach((function(s){e+="".concat(s,":").concat(t.stylesList[i][o][n][s],";")})),e+="}"})),o&&(e+="}")}));var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach((function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])})),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=window.innerWidth-t.right,n=parseFloat(i.$item.css("margin-left")||0),s=parseFloat(i.$item.css("margin-right")||0);i.$item.css({marginLeft:n-e,marginRight:s-o,maxWidth:"none",width:"auto"})}function n(){var e=i.$item[0].getBoundingClientRect();0<e.bottom&&e.bottom-250<=window.innerHeight&&i.loadNewItems(i.options.nextPageUrl,!1,(function(){clearTimeout(t),t=setTimeout((function(){n()}),300)}))}i.$item.hasClass("vp-portfolio__stretch")&&!i.isPreview()&&(f.on("load".concat(e," resize").concat(e," orientationchange").concat(e),(function(){o()})),o()),i.$item.on("focus".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").addClass("vp-portfolio__item-focus")})),i.$item.on("blur".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").removeClass("vp-portfolio__item-focus")})),i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$sort.on("click".concat(e),".vp-sort .vp-sort__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$filter.add(i.$sort).on("change".concat(e),".vp-filter select, .vp-sort select",(function(){var t=l(this),e=t.val(),o=t.find('[value="'.concat(e,'"]'));o.length&&i.loadNewItems(o.attr("data-vp-url"),!0)})),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",(function(t){t.preventDefault();var e=l(this),o=e.closest(".vp-pagination");if((!o.hasClass("vp-pagination__no-more")||"paged"===i.options.pagination)&&(i.loadNewItems(e.attr("href"),"paged"===i.options.pagination),"paged"===i.options.pagination&&o.hasClass("vp-pagination__scroll-top"))){var n=l("#wpadminbar"),s=window.pageYOffset||document.documentElement.scrollTop,r=i.$item.offset().top;o.attr("data-vp-pagination-scroll-top")&&(r-=parseInt(o.attr("data-vp-pagination-scroll-top"),10)||0),n.length&&"fixed"===n.css("position")&&(r-=n.outerHeight()),s>(r=Math.max(0,r))&&window.scrollTo({top:r,behavior:"smooth"})}})),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",(function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)})),"infinite"===i.options.pagination&&(f.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),(function(){clearTimeout(t),t=setTimeout((function(){n()}),60)})),n()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",(function(t){t.currentTarget===t.target&&i.resized()})),i.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),f.off(t),this.emitEvent("destroyEvents")}},{key:"removeNoscriptTags",value:function(t){t.find("noscript").remove()}},{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=l(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=l(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.removeNoscriptTags(t),this.emitEvent("addItems",[t,i,e])}},{key:"removeItems",value:function(t){this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;if(!o.loading&&t&&o.href!==t){var n={method:"POST",url:t,data:{vpf_ajax_call:!0},complete:function(n){var s=n.responseText;o.href=t,o.replaceItems(s,i,e)}};o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t,n]),l.ajax(n)}}},{key:"replaceItems",value:function(t,i,e){if(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var o=l(t).filter("#vp-infinite-load-body"),n=o.find(".vp-portfolio.vp-uid-".concat(this.uid));if(n.length){var s=n.find(".vp-portfolio__items").html();n.hasClass("vp-portfolio-not-found")?(this.$item.find(".vp-portfolio__items-wrap").before(n.find(".vp-notice").clone()),this.$item.addClass("vp-portfolio-not-found")):(this.$item.find(".vp-notice").remove(),this.$item.removeClass("vp-portfolio-not-found")),this.$filter.length&&this.$filter.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)})),this.$sort.length&&this.$sort.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():n.find(".vp-portfolio__sort-wrap").html(),t.html(i)})),this.$pagination.length&&this.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),this.addItems(l(s),i,n),this.emitEvent("loadedNewItems",[n,i,t]),e&&e()}var r=n.attr("data-vp-next-page-url");this.options.nextPageUrl=r,this.$item.attr("data-vp-next-page-url",r),this.$item.removeClass("vp-portfolio__loading"),this.loading=!1,this.emitEvent("endLoadingNewItems"),this.imagesLoaded(),this.initCustomColors()}}}])&&r(i.prototype,e),o&&r(i,o),t}();l(".elementor").length&&l(document).on("init.vpf addItems.vpf",(function(t,i){"vpf"===t.namespace&&i.$item.find(".vp-portfolio__item a").each((function(){/\.(png|jpe?g|gif|svg)(\?.*)?$/i.test(this.href)&&l(this).attr("data-elementor-open-lightbox","no")}))})),l(document).trigger("extendClass.vpf",[m]);var y=function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];var n;return this.each((function(){if(void 0===n)if("object"===s(t)||void 0===t)this.vpf||(this.vpf=new m(l(this),t));else if(this.vpf){var i;n=(i=this.vpf)[t].apply(i,e)}})),void 0!==n?n:this};y.constructor=m;var g=l.fn.vpf;l.fn.vpf=y,l.fn.vpf.noConflict=function(){return l.fn.vpf=g,this},l(".vp-portfolio").vpf(),l((function(){l(".vp-portfolio").vpf()}));var _=Object(o.throttle)(200,Object(n.a)((function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})));window.MutationObserver?new window.MutationObserver(_).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",(function(){_()}))},3:function(t,i,e){var o,n,s,r;function a(t){return(a="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})(t)}r=function(t){"use strict";function i(t,i,e,o){var n,s=!1,r=0;function a(){n&&clearTimeout(n)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,v=Date.now()-r;function d(){r=Date.now(),e.apply(p,c)}function u(){n=void 0}s||(o&&!n&&d(),a(),void 0===o&&v>t?d():!0!==i&&(n=setTimeout(o?u:d,void 0===o?t-v:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),l.cancel=function(){a(),s=!0},l}t.debounce=function(t,e,o){return void 0===o?i(t,e,!1):i(t,o,!1!==e)},t.throttle=i,Object.defineProperty(t,"__esModule",{value:!0})},"object"===a(i)&&void 0!==t?r(i):(n=[i],void 0===(s="function"==typeof(o=r)?o.apply(i,n):o)||(t.exports=s))},4:function(t,i,e){"use strict";i.a=function(t){var i=[],e=null,o=function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];i=n,e||(e=requestAnimationFrame((function(){e=null,t.apply(void 0,i)})))};return o.cancel=function(){e&&(cancelAnimationFrame(e),e=null)},o}}});
1
+ !function(t){var i={};function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(i){return t[i]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=239)}({239:function(t,i,e){t.exports=e(240)},240:function(t,i,e){"use strict";e.r(i);var o=e(3),n=e(4);function s(t){return(s="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})(t)}function r(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,o.key,o)}}var a=window,l=a.jQuery,c=a.VPData.__,f=l(window);function p(){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 v={},d=!1,u=!1;function h(){if(clearTimeout(u),d){var t=l(".vp-portfolio__ready");if(t.length){var i=!1;t.each((function(){var t=this.vpf;if(t){var e=v[t.uid]||"none";v[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===e&&"visible"===v[t.uid]&&(i=!0)}})),i&&p()}else d=!1;u=setTimeout(h,500)}}l(document).on("inited.vpf",(function(t){"vpf"===t.namespace&&(d=!0,h())}));var m=function(){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(c.couldnt_retrieve_vp)}var i,e,o;return i=t,(e=[{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.initOptions(),this.initEvents(),this.initLayout(),this.initCustomColors(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__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(){p(),this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this;this.$items_wrap.imagesLoaded&&this.$items_wrap.imagesLoaded((function(){t.emitEvent("imagesLoaded")}))}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__ready")),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,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=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach((function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach((function(n){e+=".vp-uid-".concat(i," ").concat(n," {"),Object.keys(t.stylesList[i][o][n]).forEach((function(s){e+="".concat(s,":").concat(t.stylesList[i][o][n][s],";")})),e+="}"})),o&&(e+="}")}));var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach((function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])})),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=window.innerWidth-t.right,n=parseFloat(i.$item.css("margin-left")||0),s=parseFloat(i.$item.css("margin-right")||0);i.$item.css({marginLeft:n-e,marginRight:s-o,maxWidth:"none",width:"auto"})}function n(){var e=i.$item[0].getBoundingClientRect();0<e.bottom&&e.bottom-250<=window.innerHeight&&i.loadNewItems(i.options.nextPageUrl,!1,(function(){clearTimeout(t),t=setTimeout((function(){n()}),300)}))}i.$item.hasClass("vp-portfolio__stretch")&&!i.isPreview()&&(f.on("load".concat(e," resize").concat(e," orientationchange").concat(e),(function(){o()})),o()),i.$item.on("focus".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").addClass("vp-portfolio__item-focus")})),i.$item.on("blur".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").removeClass("vp-portfolio__item-focus")})),i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$sort.on("click".concat(e),".vp-sort .vp-sort__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$filter.add(i.$sort).on("change".concat(e),".vp-filter select, .vp-sort select",(function(){var t=l(this),e=t.val(),o=t.find('[value="'.concat(e,'"]'));o.length&&i.loadNewItems(o.attr("data-vp-url"),!0)})),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",(function(t){t.preventDefault();var e=l(this),o=e.closest(".vp-pagination");if((!o.hasClass("vp-pagination__no-more")||"paged"===i.options.pagination)&&(i.loadNewItems(e.attr("href"),"paged"===i.options.pagination),"paged"===i.options.pagination&&o.hasClass("vp-pagination__scroll-top"))){var n=l("#wpadminbar"),s=window.pageYOffset||document.documentElement.scrollTop,r=i.$item.offset().top;o.attr("data-vp-pagination-scroll-top")&&(r-=parseInt(o.attr("data-vp-pagination-scroll-top"),10)||0),n.length&&"fixed"===n.css("position")&&(r-=n.outerHeight()),s>(r=Math.max(0,r))&&window.scrollTo({top:r,behavior:"smooth"})}})),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",(function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)})),"infinite"===i.options.pagination&&(f.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),(function(){clearTimeout(t),t=setTimeout((function(){n()}),60)})),n()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",(function(t){t.currentTarget===t.target&&i.resized()})),i.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),f.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=l(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=l(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,e){var o=this;if(!o.loading&&t&&o.href!==t){var n={method:"POST",url:t,data:{vpf_ajax_call:!0},complete:function(n){var s=n.responseText;o.href=t,o.replaceItems(s,i,e)}};o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t,n]),l.ajax(n)}}},{key:"replaceItems",value:function(t,i,e){if(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var o=l(t).filter("#vp-infinite-load-body"),n=o.find(".vp-portfolio.vp-uid-".concat(this.uid));if(n.length){var s=n.find(".vp-portfolio__items").html();n.hasClass("vp-portfolio-not-found")?(this.$item.find(".vp-portfolio__items-wrap").before(n.find(".vp-notice").clone()),this.$item.addClass("vp-portfolio-not-found")):(this.$item.find(".vp-notice").remove(),this.$item.removeClass("vp-portfolio-not-found")),this.$filter.length&&this.$filter.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)})),this.$sort.length&&this.$sort.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():n.find(".vp-portfolio__sort-wrap").html(),t.html(i)})),this.$pagination.length&&this.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),this.addItems(l(s),i,n),this.emitEvent("loadedNewItems",[n,i,t]),e&&e()}var r=n.attr("data-vp-next-page-url");this.options.nextPageUrl=r,this.$item.attr("data-vp-next-page-url",r),this.$item.removeClass("vp-portfolio__loading"),this.loading=!1,this.emitEvent("endLoadingNewItems"),this.imagesLoaded(),this.initCustomColors()}}}])&&r(i.prototype,e),o&&r(i,o),t}();l(".elementor").length&&l(document).on("init.vpf addItems.vpf",(function(t,i){"vpf"===t.namespace&&i.$item.find(".vp-portfolio__item a").each((function(){/\.(png|jpe?g|gif|svg)(\?.*)?$/i.test(this.href)&&l(this).attr("data-elementor-open-lightbox","no")}))})),l(document).trigger("extendClass.vpf",[m]);var y=function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];var n;return this.each((function(){if(void 0===n)if("object"===s(t)||void 0===t)this.vpf||(this.vpf=new m(l(this),t));else if(this.vpf){var i;n=(i=this.vpf)[t].apply(i,e)}})),void 0!==n?n:this};y.constructor=m;var _=l.fn.vpf;l.fn.vpf=y,l.fn.vpf.noConflict=function(){return l.fn.vpf=_,this},l(".vp-portfolio").vpf(),l((function(){l(".vp-portfolio").vpf()}));var g=Object(o.throttle)(200,Object(n.a)((function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})));window.MutationObserver?new window.MutationObserver(g).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",(function(){g()}))},3:function(t,i,e){var o,n,s,r;function a(t){return(a="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})(t)}r=function(t){"use strict";function i(t,i,e,o){var n,s=!1,r=0;function a(){n&&clearTimeout(n)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,v=Date.now()-r;function d(){r=Date.now(),e.apply(p,c)}function u(){n=void 0}s||(o&&!n&&d(),a(),void 0===o&&v>t?d():!0!==i&&(n=setTimeout(o?u:d,void 0===o?t-v:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),l.cancel=function(){a(),s=!0},l}t.debounce=function(t,e,o){return void 0===o?i(t,e,!1):i(t,o,!1!==e)},t.throttle=i,Object.defineProperty(t,"__esModule",{value:!0})},"object"===a(i)&&void 0!==t?r(i):(n=[i],void 0===(s="function"==typeof(o=r)?o.apply(i,n):o)||(t.exports=s))},4:function(t,i,e){"use strict";i.a=function(t){var i=[],e=null,o=function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];i=n,e||(e=requestAnimationFrame((function(){e=null,t.apply(void 0,i)})))};return o.cancel=function(){e&&(cancelAnimationFrame(e),e=null)},o}}});
assets/js/pagination-minimal-paged.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=239)}({239:function(e,n,t){e.exports=t(240)},240:function(e,n){var t=window.jQuery;t(document).on("init.vpf loadedNewItems.vpf",(function(e,n){if("vpf"===e.namespace&&"paged"===n.options.pagination&&n.$pagination.children(".vp-pagination__style-minimal").length){var r=n.$pagination.find(".vp-pagination__item-active"),i=r.find("img");i.length||(i=t('<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="">'),r.prepend(i)),i.css({width:i.height()})}}))}});
1
+ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=241)}({241:function(e,n,t){e.exports=t(242)},242:function(e,n){var t=window.jQuery;t(document).on("init.vpf loadedNewItems.vpf",(function(e,n){if("vpf"===e.namespace&&"paged"===n.options.pagination&&n.$pagination.children(".vp-pagination__style-minimal").length){var r=n.$pagination.find(".vp-pagination__item-active"),i=r.find("img");i.length||(i=t('<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="">'),r.prepend(i)),i.css({width:i.height()})}}))}});
assets/js/plugin-fancybox.min.js CHANGED
@@ -1 +1 @@
1
- !function(o){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return o[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:n})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,e){if(1&e&&(o=t(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var r in o)t.d(n,r,function(e){return o[e]}.bind(null,r));return n},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,"a",e),e},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.p="",t(t.s=241)}({241:function(o,e,t){o.exports=t(242)},242:function(o,e){var t,n=window.jQuery,r=window,s=r.VPData,c=r.VPPopupAPI,u=s.__,a=s.settingsPopupGallery;void 0!==n.fancybox&&c&&(c.vendor="fancybox",c.open=function(o,e,r){var s=[];o.forEach((function(o){"embed"===o.type&&o.src?s.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height}}):"embed"===o.type&&o.embed?s.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height}}):s.push({type:"image",src:o.src,el:o.el,opts:{width:o.width,height:o.height,srcset:o.srcset,caption:o.caption,thumb:o.srcSmall}})}));var c=[];a.show_zoom_button&&c.push("zoom"),a.show_fullscreen_button&&c.push("fullScreen"),a.show_slideshow&&c.push("slideShow"),a.show_thumbs&&c.push("thumbs"),a.show_share_button&&c.push("share"),a.show_download_button&&c.push("download"),a.show_close_button&&c.push("close");var i={closeExisting:!0,loop:!0,arrows:a.show_arrows,infobar:a.show_counter,smallBtn:!1,toolbar:"auto",buttons:c,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent:function(o){return!("image"!==o.type||!a.click_to_zoom)&&"zoom"},lang:"wordpress",i18n:{wordpress:{CLOSE:u.fancybox_close,NEXT:u.fancybox_next,PREV:u.fancybox_prev,ERROR:u.fancybox_error,PLAY_START:u.fancybox_play_start,PLAY_STOP:u.fancybox_play_stop,FULL_SCREEN:u.fancybox_full_screen,THUMBS:u.fancybox_thumbs,DOWNLOAD:u.fancybox_download,SHARE:u.fancybox_share,ZOOM:u.fancybox_zoom}},beforeClose:function(){t=!1}};r&&r.emitEvent("beforeInitFancybox",[i,s,e]),t=n.fancybox.open(s,i,e),r&&r.emitEvent("initFancybox",[i,s,e,t])},c.close=function(){t&&(t.close(),t=!1)})}});
1
+ !function(o){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return o[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:n})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,e){if(1&e&&(o=t(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var r in o)t.d(n,r,function(e){return o[e]}.bind(null,r));return n},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,"a",e),e},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.p="",t(t.s=243)}({243:function(o,e,t){o.exports=t(244)},244:function(o,e){var t,n=window.jQuery,r=window,s=r.VPData,c=r.VPPopupAPI,u=s.__,a=s.settingsPopupGallery;void 0!==n.fancybox&&c&&(c.vendor="fancybox",c.open=function(o,e,r){var s=[];o.forEach((function(o){"embed"===o.type&&o.src?s.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height}}):"embed"===o.type&&o.embed?s.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height}}):s.push({type:"image",src:o.src,el:o.el,opts:{width:o.width,height:o.height,srcset:o.srcset,caption:o.caption,thumb:o.srcSmall}})}));var c=[];a.show_zoom_button&&c.push("zoom"),a.show_fullscreen_button&&c.push("fullScreen"),a.show_slideshow&&c.push("slideShow"),a.show_thumbs&&c.push("thumbs"),a.show_share_button&&c.push("share"),a.show_download_button&&c.push("download"),a.show_close_button&&c.push("close");var i={closeExisting:!0,loop:!0,arrows:a.show_arrows,infobar:a.show_counter,smallBtn:!1,toolbar:"auto",buttons:c,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent:function(o){return!("image"!==o.type||!a.click_to_zoom)&&"zoom"},lang:"wordpress",i18n:{wordpress:{CLOSE:u.fancybox_close,NEXT:u.fancybox_next,PREV:u.fancybox_prev,ERROR:u.fancybox_error,PLAY_START:u.fancybox_play_start,PLAY_STOP:u.fancybox_play_stop,FULL_SCREEN:u.fancybox_full_screen,THUMBS:u.fancybox_thumbs,DOWNLOAD:u.fancybox_download,SHARE:u.fancybox_share,ZOOM:u.fancybox_zoom}},beforeClose:function(){t=!1}};r&&r.emitEvent("beforeInitFancybox",[i,s,e]),t=n.fancybox.open(s,i,e),r&&r.emitEvent("initFancybox",[i,s,e,t])},c.close=function(){t&&(t.close(),t=!1)})}});
assets/js/plugin-fj-gallery.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=243)}({243:function(e,t,o){e.exports=o(244)},244:function(e,t){var o=window.jQuery;o(document).on("extendClass.vpf",(function(e,t){"vpf"===e.namespace&&(t.prototype.initFjGallery=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=this;if(o.$items_wrap.fjGallery&&"justified"===o.options.layout){var r=!1!==e?e:{gutter:{horizontal:parseFloat(o.options.itemsGap)||0,vertical:""!==o.options.itemsGapVertical?parseFloat(o.options.itemsGapVertical)||0:parseFloat(o.options.itemsGap)||0},rowHeight:parseFloat(o.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(o.options.justifiedRowHeightTolerance)||0,calculateItemsHeight:!0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"};o.emitEvent("beforeInitFjGallery",[r,t]),o.$items_wrap.fjGallery(r,t),o.emitEvent("initFjGallery",[r,t])}},t.prototype.destroyFjGallery=function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))})})),o(document).on("addItems.vpf",(function(e,t,o,r){"vpf"===e.namespace&&(t.$items_wrap.data("fjGallery")&&(r?(t.destroyFjGallery(),t.$items_wrap.find(".vp-portfolio__item-wrap").remove(),t.$items_wrap.prepend(o),t.initFjGallery()):(t.$items_wrap.append(o),t.initFjGallery("appendImages",o))))})),o(document).on("init.vpf",(function(e,t){"vpf"===e.namespace&&t.initFjGallery()})),o(document).on("imagesLoaded.vpf",(function(e,t){"vpf"===e.namespace&&t.initFjGallery()})),o(document).on("destroy.vpf",(function(e,t){"vpf"===e.namespace&&t.destroyFjGallery()}))}});
1
+ !function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=245)}({245:function(e,t,o){e.exports=o(246)},246:function(e,t){var o=window.jQuery;o(document).on("extendClass.vpf",(function(e,t){"vpf"===e.namespace&&(t.prototype.initFjGallery=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=this;if(o.$items_wrap.fjGallery&&"justified"===o.options.layout){var r=!1!==e?e:{gutter:{horizontal:parseFloat(o.options.itemsGap)||0,vertical:""!==o.options.itemsGapVertical?parseFloat(o.options.itemsGapVertical)||0:parseFloat(o.options.itemsGap)||0},rowHeight:parseFloat(o.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(o.options.justifiedRowHeightTolerance)||0,calculateItemsHeight:!0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"};o.emitEvent("beforeInitFjGallery",[r,t]),o.$items_wrap.fjGallery(r,t),o.emitEvent("initFjGallery",[r,t])}},t.prototype.destroyFjGallery=function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))})})),o(document).on("addItems.vpf",(function(e,t,o,r){"vpf"===e.namespace&&(t.$items_wrap.data("fjGallery")&&(r?(t.destroyFjGallery(),t.$items_wrap.find(".vp-portfolio__item-wrap").remove(),t.$items_wrap.prepend(o),t.initFjGallery()):(t.$items_wrap.append(o),t.initFjGallery("appendImages",o))))})),o(document).on("init.vpf",(function(e,t){"vpf"===e.namespace&&t.initFjGallery()})),o(document).on("imagesLoaded.vpf",(function(e,t){"vpf"===e.namespace&&t.initFjGallery()})),o(document).on("destroy.vpf",(function(e,t){"vpf"===e.namespace&&t.destroyFjGallery()}))}});
assets/js/plugin-isotope.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=245)}({245:function(t,e,o){t.exports=o(246)},246:function(t,e,o){"use strict";o.r(e);var n=o(3),i=o(4),r=window.jQuery,p=r(window),s=r(document),a=["tiles","masonry","grid"];s.on("extendClass.vpf",(function(t,e){"vpf"===t.namespace&&(e.prototype.initIsotope=function(t){if(this.$items_wrap.isotope&&a.includes(this.options.layout)){var e="rtl"===getComputedStyle(this.$items_wrap[0]).direction,o=t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0,originLeft:!e,resize:!1};this.emitEvent("beforeInitIsotope",[o]),this.$items_wrap.isotope(o),this.emitEvent("initIsotope",[o])}},e.prototype.destroyIsotope=function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))})})),s.on("addItems.vpf",(function(t,e,o,n){if("vpf"===t.namespace&&e.$items_wrap.data("isotope")){if(n){var i=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",i),e.$items_wrap.prepend(o).isotope("prepended",o)}else e.$items_wrap.append(o).isotope("appended",o);setTimeout((function(){e.initIsotope("layout")}),0)}})),s.on("removeItems.vpf",(function(t,e,o){"vpf"===t.namespace&&(e.$items_wrap.data("isotope")&&e.$items_wrap.isotope("remove",o))})),s.on("init.vpf",(function(t,e){"vpf"===t.namespace&&e.initIsotope()})),s.on("imagesLoaded.vpf",(function(t,e){"vpf"===t.namespace&&e.initIsotope("layout")})),s.on("destroy.vpf",(function(t,e){"vpf"===t.namespace&&e.destroyIsotope()})),s.on("initEvents.vpf",(function(t,e){if("vpf"===t.namespace&&e.$items_wrap.isotope&&a.includes(e.options.layout)){var o=".vpf-uid-".concat(e.uid);p.on("resize".concat(o),Object(n.throttle)(100,Object(i.a)((function(){e.$items_wrap.isotope("layout")}))))}})),s.on("destroyEvents.vpf",(function(t,e){if("vpf"===t.namespace&&a.includes(e.options.layout)){var o=".vpf-uid-".concat(e.uid);p.off("resize".concat(o))}})),s.on("vc-full-width-row",Object(n.debounce)(150,Object(i.a)((function(t,e){r(e).find(".vp-portfolio").each((function(){this.vpf&&this.vpf.initIsotope&&(this.vpf.$items_wrap.data("isotope")&&this.vpf.initIsotope("layout"))}))}))))},3:function(t,e,o){var n,i,r,p;function s(t){return(s="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})(t)}p=function(t){"use strict";function e(t,e,o,n){var i,r=!1,p=0;function s(){i&&clearTimeout(i)}function a(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var c=this,l=Date.now()-p;function d(){p=Date.now(),o.apply(c,u)}function v(){i=void 0}r||(n&&!i&&d(),s(),void 0===n&&l>t?d():!0!==e&&(i=setTimeout(n?v:d,void 0===n?t-l:t)))}return"boolean"!=typeof e&&(n=o,o=e,e=void 0),a.cancel=function(){s(),r=!0},a}t.debounce=function(t,o,n){return void 0===n?e(t,o,!1):e(t,n,!1!==o)},t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})},"object"===s(e)&&void 0!==t?p(e):(i=[e],void 0===(r="function"==typeof(n=p)?n.apply(e,i):n)||(t.exports=r))},4:function(t,e,o){"use strict";e.a=function(t){var e=[],o=null,n=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e=i,o||(o=requestAnimationFrame((function(){o=null,t.apply(void 0,e)})))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n}}});
1
+ !function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=247)}({247:function(t,e,o){t.exports=o(248)},248:function(t,e,o){"use strict";o.r(e);var n=o(3),i=o(4),r=window.jQuery,p=r(window),s=r(document),a=["tiles","masonry","grid"];s.on("extendClass.vpf",(function(t,e){"vpf"===t.namespace&&(e.prototype.initIsotope=function(t){if(this.$items_wrap.isotope&&a.includes(this.options.layout)){var e="rtl"===getComputedStyle(this.$items_wrap[0]).direction,o=t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0,originLeft:!e,resize:!1};this.emitEvent("beforeInitIsotope",[o]),this.$items_wrap.isotope(o),this.emitEvent("initIsotope",[o])}},e.prototype.destroyIsotope=function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))})})),s.on("addItems.vpf",(function(t,e,o,n){if("vpf"===t.namespace&&e.$items_wrap.data("isotope")){if(n){var i=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",i),e.$items_wrap.prepend(o).isotope("prepended",o)}else e.$items_wrap.append(o).isotope("appended",o);setTimeout((function(){e.initIsotope("layout")}),0)}})),s.on("removeItems.vpf",(function(t,e,o){"vpf"===t.namespace&&(e.$items_wrap.data("isotope")&&e.$items_wrap.isotope("remove",o))})),s.on("init.vpf",(function(t,e){"vpf"===t.namespace&&e.initIsotope()})),s.on("imagesLoaded.vpf",(function(t,e){"vpf"===t.namespace&&e.initIsotope("layout")})),s.on("destroy.vpf",(function(t,e){"vpf"===t.namespace&&e.destroyIsotope()})),s.on("initEvents.vpf",(function(t,e){if("vpf"===t.namespace&&e.$items_wrap.isotope&&a.includes(e.options.layout)){var o=".vpf-uid-".concat(e.uid);p.on("resize".concat(o),Object(n.throttle)(100,Object(i.a)((function(){e.$items_wrap.isotope("layout")}))))}})),s.on("destroyEvents.vpf",(function(t,e){if("vpf"===t.namespace&&a.includes(e.options.layout)){var o=".vpf-uid-".concat(e.uid);p.off("resize".concat(o))}})),s.on("vc-full-width-row",Object(n.debounce)(150,Object(i.a)((function(t,e){r(e).find(".vp-portfolio").each((function(){this.vpf&&this.vpf.initIsotope&&(this.vpf.$items_wrap.data("isotope")&&this.vpf.initIsotope("layout"))}))}))))},3:function(t,e,o){var n,i,r,p;function s(t){return(s="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})(t)}p=function(t){"use strict";function e(t,e,o,n){var i,r=!1,p=0;function s(){i&&clearTimeout(i)}function a(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var c=this,l=Date.now()-p;function d(){p=Date.now(),o.apply(c,u)}function v(){i=void 0}r||(n&&!i&&d(),s(),void 0===n&&l>t?d():!0!==e&&(i=setTimeout(n?v:d,void 0===n?t-l:t)))}return"boolean"!=typeof e&&(n=o,o=e,e=void 0),a.cancel=function(){s(),r=!0},a}t.debounce=function(t,o,n){return void 0===n?e(t,o,!1):e(t,n,!1!==o)},t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})},"object"===s(e)&&void 0!==t?p(e):(i=[e],void 0===(r="function"==typeof(n=p)?n.apply(e,i):n)||(t.exports=r))},4:function(t,e,o){"use strict";e.a=function(t){var e=[],o=null,n=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e=i,o||(o=requestAnimationFrame((function(){o=null,t.apply(void 0,e)})))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n}}});
assets/js/plugin-photoswipe.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=247)}({247:function(t,e,o){t.exports=o(248)},248:function(t,e,o){"use strict";o.r(e);var n=o(28),i=o.n(n);function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function s(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var p=window.jQuery,c=window,a=c.VPData,l=c.VPPopupAPI,u=c.PhotoSwipe,d=c.PhotoSwipeUI_Default,w=a.__,_=a.settingsPopupGallery;function f(t,e){if(void 0!==e){var o,n=t.viewportSize.x,i=t.viewportSize.y,r=e.vw/e.vh,s=p(e.container),c=t.options.barsSize,a=0,l=0;c&&(a=c.top&&"auto"!==c.top?c.top:0,l=c.bottom&&"auto"!==c.bottom?c.bottom:0),o=r>n/(i-=a+l)?n:i*r;var u=s.find(".vp-pswp-video");u.css("max-width",o),u.children().css({paddingBottom:"".concat(e.vh/e.vw*100,"%")}),s.css({top:a,bottom:l})}else t&&t.itemHolders.length&&t.itemHolders.forEach((function(e){e.item&&e.item.html&&f(t,e.item)}))}if(u&&l){var v;if(!p(".vp-pswp").length){var h='\n <div class="pswp vp-pswp'.concat(_.click_to_zoom?"":" vp-pswp-no-zoom",'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <button class="pswp__button pswp__button--close" title="').concat(w.pswp_close,'"></button>\n <button class="pswp__button pswp__button--share" title="').concat(w.pswp_share,'"></button>\n <button class="pswp__button pswp__button--fs" title="').concat(w.pswp_fs,'"></button>\n <button class="pswp__button pswp__button--zoom" title="').concat(w.pswp_zoom,'"></button>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <button class="pswp__button pswp__button--arrow--left" title="').concat(w.pswp_prev,'"></button>\n <button class="pswp__button pswp__button--arrow--right" title="').concat(w.pswp_next,'"></button>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');p("body").append(h)}l.vendor="photoswipe",l.open=function(t,e,o){var n=[];t.forEach((function(t){"embed"===t.type?n.push({html:'<div class="vp-pswp-video"><div>'.concat(t.embed,"</div></div>"),vw:t.width||0,vh:t.height||0}):n.push(function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(e){s(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({src:t.src,el:t.el,w:t.width||0,h:t.height||0,title:t.caption,o:{src:t.src,w:t.width||0,h:t.height||0}},t.srcMedium?{m:{src:t.srcMedium,w:t.srcMediumWidth||0,h:t.srcMediumHeight||0},msrc:t.srcMedium}:{}))}));var c=p(".vp-pswp"),a=c[0],l={captionAndToolbarShowEmptyCaptions:!1,closeEl:_.show_close_button,captionEl:!0,fullscreenEl:_.show_fullscreen_button,zoomEl:_.show_zoom_button,shareEl:_.show_share_button,counterEl:_.show_counter,arrowEl:_.show_arrows,shareButtons:[{id:"facebook",label:w.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:w.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:w.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],getImageURLForShare:function(){var e=t[v.getCurrentIndex()];return"image"===e.type&&e.src?e.src:v.currItem.src||""},getPageURLForShare:function(){var e=t[v.getCurrentIndex()];return"image"===e.type&&e.src?e.src:window.location.href},getTextForShare:function(){var e=t[v.getCurrentIndex()];if(e.caption){var o=p(e.caption);if(o.filter(".vp-portfolio__item-popup-title").length)return o.filter(".vp-portfolio__item-popup-title").text();if(o.filter(".vp-portfolio__item-popup-description").length)return o.filter(".vp-portfolio__item-popup-description").text()}return""},bgOpacity:1,tapToClose:!1,tapToToggleControls:!0,showHideOpacity:!0,history:!1,getThumbBoundsFn:function(t){if(!n[t]||!n[t].el)return!1;var e=p(n[t].el).find("img")[0];if(!e)return!1;var o=e.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,r=parseFloat(c.css("top"))||0;return{x:o.left,y:o.top+i-r,w:o.width,h:o.height}},getDoubleTapZoom:function(t,e){return t?_.click_to_zoom?1:e.initialZoomLevel:.7>e.initialZoomLevel?1:1.5}};if(l.index=parseInt(e,10),i()(l.index)){var h;v=new u(a,d,n,l);var m,b=!1,g=!0;v.listen("beforeResize",(function(){h=v.viewportSize.x*window.devicePixelRatio,b&&1e3>h?(b=!1,m=!0):!b&&1e3<=h&&(b=!0,m=!0),m&&!g&&v.invalidateCurrItems(),g&&(g=!1),m=!1})),v.listen("gettingData",(function(t,e){e.html||(b&&e.o?(e.o.src&&(e.src=e.o.src),e.o.w&&(e.w=e.o.w),e.o.h&&(e.h=e.o.h)):e.m&&(e.m.src&&(e.src=e.m.src),e.m.w&&(e.w=e.m.w),e.m.h&&(e.h=e.m.h)))})),v.listen("imageLoadComplete",(function(t,e){if(1>e.h||1>e.w){var o=new Image;o.onload=function(){e.w=o.width,e.h=o.height,v.invalidateCurrItems(),v.updateSize(!0)},o.src=e.src}})),v.listen("resize",(function(){f(this)})),v.listen("afterChange",(function(){f(this)})),v.listen("beforeChange",(function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach((function(e){if(e.el&&e.index!==t){var o=p(e.el).find(".vp-pswp-video iframe");o.length&&o.attr("src",o.attr("src"))}}))}})),v.listen("destroy",(function(){this&&this.itemHolders.length&&this.itemHolders.forEach((function(t){t.el&&p(t.el).find(".vp-pswp-video").remove()})),v=!1})),o&&o.emitEvent("beforeInitPhotoSwipe",[l,n,e,v]),v.init(),o&&o.emitEvent("initPhotoSwipe",[l,n,e,v])}},l.close=function(){v&&(v.close(),v=!1)}}},28:function(t,e,o){"use strict";
2
  /*!
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
  *
1
+ !function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=249)}({249:function(t,e,o){t.exports=o(250)},250:function(t,e,o){"use strict";o.r(e);var n=o(28),i=o.n(n);function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function s(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var p=window.jQuery,c=window,a=c.VPData,l=c.VPPopupAPI,u=c.PhotoSwipe,d=c.PhotoSwipeUI_Default,w=a.__,_=a.settingsPopupGallery;function f(t,e){if(void 0!==e){var o,n=t.viewportSize.x,i=t.viewportSize.y,r=e.vw/e.vh,s=p(e.container),c=t.options.barsSize,a=0,l=0;c&&(a=c.top&&"auto"!==c.top?c.top:0,l=c.bottom&&"auto"!==c.bottom?c.bottom:0),o=r>n/(i-=a+l)?n:i*r;var u=s.find(".vp-pswp-video");u.css("max-width",o),u.children().css({paddingBottom:"".concat(e.vh/e.vw*100,"%")}),s.css({top:a,bottom:l})}else t&&t.itemHolders.length&&t.itemHolders.forEach((function(e){e.item&&e.item.html&&f(t,e.item)}))}if(u&&l){var v;if(!p(".vp-pswp").length){var h='\n <div class="pswp vp-pswp'.concat(_.click_to_zoom?"":" vp-pswp-no-zoom",'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <button class="pswp__button pswp__button--close" title="').concat(w.pswp_close,'"></button>\n <button class="pswp__button pswp__button--share" title="').concat(w.pswp_share,'"></button>\n <button class="pswp__button pswp__button--fs" title="').concat(w.pswp_fs,'"></button>\n <button class="pswp__button pswp__button--zoom" title="').concat(w.pswp_zoom,'"></button>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <button class="pswp__button pswp__button--arrow--left" title="').concat(w.pswp_prev,'"></button>\n <button class="pswp__button pswp__button--arrow--right" title="').concat(w.pswp_next,'"></button>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');p("body").append(h)}l.vendor="photoswipe",l.open=function(t,e,o){var n=[];t.forEach((function(t){"embed"===t.type?n.push({html:'<div class="vp-pswp-video"><div>'.concat(t.embed,"</div></div>"),vw:t.width||0,vh:t.height||0}):n.push(function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(e){s(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({src:t.src,el:t.el,w:t.width||0,h:t.height||0,title:t.caption,o:{src:t.src,w:t.width||0,h:t.height||0}},t.srcMedium?{m:{src:t.srcMedium,w:t.srcMediumWidth||0,h:t.srcMediumHeight||0},msrc:t.srcMedium}:{}))}));var c=p(".vp-pswp"),a=c[0],l={captionAndToolbarShowEmptyCaptions:!1,closeEl:_.show_close_button,captionEl:!0,fullscreenEl:_.show_fullscreen_button,zoomEl:_.show_zoom_button,shareEl:_.show_share_button,counterEl:_.show_counter,arrowEl:_.show_arrows,shareButtons:[{id:"facebook",label:w.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:w.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:w.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],getImageURLForShare:function(){var e=t[v.getCurrentIndex()];return"image"===e.type&&e.src?e.src:v.currItem.src||""},getPageURLForShare:function(){var e=t[v.getCurrentIndex()];return"image"===e.type&&e.src?e.src:window.location.href},getTextForShare:function(){var e=t[v.getCurrentIndex()];if(e.caption){var o=p(e.caption);if(o.filter(".vp-portfolio__item-popup-title").length)return o.filter(".vp-portfolio__item-popup-title").text();if(o.filter(".vp-portfolio__item-popup-description").length)return o.filter(".vp-portfolio__item-popup-description").text()}return""},bgOpacity:1,tapToClose:!1,tapToToggleControls:!0,showHideOpacity:!0,history:!1,getThumbBoundsFn:function(t){if(!n[t]||!n[t].el)return!1;var e=p(n[t].el).find("img")[0];if(!e)return!1;var o=e.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,r=parseFloat(c.css("top"))||0;return{x:o.left,y:o.top+i-r,w:o.width,h:o.height}},getDoubleTapZoom:function(t,e){return t?_.click_to_zoom?1:e.initialZoomLevel:.7>e.initialZoomLevel?1:1.5}};if(l.index=parseInt(e,10),i()(l.index)){var h;v=new u(a,d,n,l);var m,b=!1,g=!0;v.listen("beforeResize",(function(){h=v.viewportSize.x*window.devicePixelRatio,b&&1e3>h?(b=!1,m=!0):!b&&1e3<=h&&(b=!0,m=!0),m&&!g&&v.invalidateCurrItems(),g&&(g=!1),m=!1})),v.listen("gettingData",(function(t,e){e.html||(b&&e.o?(e.o.src&&(e.src=e.o.src),e.o.w&&(e.w=e.o.w),e.o.h&&(e.h=e.o.h)):e.m&&(e.m.src&&(e.src=e.m.src),e.m.w&&(e.w=e.m.w),e.m.h&&(e.h=e.m.h)))})),v.listen("imageLoadComplete",(function(t,e){if(1>e.h||1>e.w){var o=new Image;o.onload=function(){e.w=o.width,e.h=o.height,v.invalidateCurrItems(),v.updateSize(!0)},o.src=e.src}})),v.listen("resize",(function(){f(this)})),v.listen("afterChange",(function(){f(this)})),v.listen("beforeChange",(function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach((function(e){if(e.el&&e.index!==t){var o=p(e.el).find(".vp-pswp-video iframe");o.length&&o.attr("src",o.attr("src"))}}))}})),v.listen("destroy",(function(){this&&this.itemHolders.length&&this.itemHolders.forEach((function(t){t.el&&p(t.el).find(".vp-pswp-video").remove()})),v=!1})),o&&o.emitEvent("beforeInitPhotoSwipe",[l,n,e,v]),v.init(),o&&o.emitEvent("initPhotoSwipe",[l,n,e,v])}},l.close=function(){v&&(v.close(),v=!1)}}},28:function(t,e,o){"use strict";
2
  /*!
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
  *
assets/js/plugin-swiper.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var i={};function t(r){if(i[r])return i[r].exports;var s=i[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var s in e)t.d(r,s,function(i){return e[i]}.bind(null,s));return r},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=249)}({249:function(e,i,t){e.exports=t(250)},250:function(e,i,t){"use strict";t.r(i);var r=t(28),s=t.n(r),n=window.jQuery,o=window.VPData.screenSizes;n(document).on("extendClass.vpf",(function(e,i){"vpf"===e.namespace&&(i.prototype.initSwiper=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this;if("slider"===i.options.layout&&void 0!==window.Swiper){var t=i.$items_wrap.parent();t.addClass("swiper-container"),i.$items_wrap.addClass("swiper-wrapper"),i.$items_wrap.children().addClass("swiper-slide");var r=i.options.sliderSlidesPerView||3,n={};if("fade"===i.options.sliderEffect&&(r=1),s()(r)){for(var a=r,l=Math.min(o.length-1,a-1);0<=l;l-=1)0<a&&void 0!==o[l]&&(n[o[l]+1]={slidesPerView:a}),a-=1;r=a||1}"fade"===(e=e||{speed:1e3*(parseFloat(i.options.sliderSpeed)||0),autoHeight:"auto"===i.options.sliderItemsHeight,effect:i.options.sliderEffect||"slide",spaceBetween:parseFloat(i.options.itemsGap)||0,centeredSlides:"true"===i.options.sliderCenteredSlides,freeMode:"true"===i.options.sliderFreeMode,freeModeSticky:"true"===i.options.sliderFreeModeSticky,loop:"true"===i.options.sliderLoop,autoplay:0<parseFloat(i.options.sliderAutoplay)&&{delay:1e3*parseFloat(i.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===i.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===i.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===i.options.sliderBulletsDynamic,renderBullet:function(e,i){return'<span class="'.concat(i,'" data-bullet-index="').concat(e,'" data-bullet-number="').concat(e+1,'"></span>')}},mousewheel:"true"===i.options.sliderMousewheel,slidesPerView:r,breakpoints:n,breakpointsInverse:!0,keyboard:!0,grabCursor:!0}).effect&&(e.fadeEffect={crossFade:!0}),0===e.speed&&(e.speed=1);var p=0;if(e.on={transitionEnd:function(){0===p?(p=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===p&&(p=2,this.slideReset())}},i.emitEvent("beforeInitSwiper",[e]),i.$slider_thumbnails_wrap.length){var d=i.$slider_thumbnails_wrap.parent();d.addClass("swiper-container"),i.$slider_thumbnails_wrap.addClass("swiper-wrapper"),i.$slider_thumbnails_wrap.children().addClass("swiper-slide");var u=i.options.sliderThumbnailsPerView||8,c={};if(s()(u)){for(var f=u,w=Math.min(o.length-1,f-1);0<=w;w-=1)0<f&&void 0!==o[w]&&(c[o[w]+1]={slidesPerView:f}),f-=1;u=f||1}var m=new window.Swiper(d[0],{autoHeight:"auto"===i.options.sliderThumbnailsHeight,effect:"slide",spaceBetween:parseFloat(i.options.sliderThumbnailsGap)||0,loop:!1,freeMode:!0,freeModeSticky:!0,loopedSlides:5,slidesPerView:u,breakpoints:c,breakpointsInverse:!0,keyboard:!0,grabCursor:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});e.thumbs={swiper:m}}new window.Swiper(t[0],e),"true"===i.options.sliderAutoplayHoverPause&&0<parseFloat(i.options.sliderAutoplay)&&(i.$item.on("mouseenter.vpf-uid-".concat(i.uid),".swiper-container",(function(){t[0].swiper.autoplay.stop()})),i.$item.on("mouseleave.vpf-uid-".concat(i.uid),".swiper-container",(function(){t[0].swiper.autoplay.start()}))),i.emitEvent("initSwiper",[e])}},i.prototype.destroySwiper=function(){var e=this.$items_wrap.parent(),i=!!this.$slider_thumbnails_wrap.length&&this.$slider_thumbnails_wrap.parent(),t=e[0].swiper,r=!!i&&i[0].swiper,s=!1;r&&(r.destroy(),i.removeClass("swiper-container"),this.$slider_thumbnails_wrap.removeClass("swiper-wrapper"),this.$slider_thumbnails_wrap.children().removeClass("swiper-slide"),s=!0),t&&(t.destroy(),e.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),e.find(".vp-portfolio__items-bullets").removeClass("swiper-pagination-clickable swiper-pagination-bullets-dynamic").removeAttr("style").html(""),s=!0),s&&this.emitEvent("destroySwiper")})})),n(document).on("addItems.vpf",(function(e,i,t,r,s){if("vpf"===e.namespace){var n=i.$items_wrap.parent()[0].swiper;if(n){r&&n.removeAllSlides();var o=[];t.addClass("swiper-slide").each((function(){o.push(this)})),n.appendSlide(o);var a=!!i.$slider_thumbnails_wrap.length&&i.$slider_thumbnails_wrap.parent()[0].swiper;if(a){r&&a.removeAllSlides();var l=[];s.find(".vp-portfolio__thumbnails > .vp-portfolio__thumbnail-wrap").clone().addClass("swiper-slide").each((function(){l.push(this)})),a.appendSlide(l)}}}})),n(document).on("init.vpf",(function(e,i){"vpf"===e.namespace&&i.initSwiper()})),n(document).on("destroy.vpf",(function(e,i){"vpf"===e.namespace&&i.destroySwiper()}))},28:function(e,i,t){"use strict";
2
  /*!
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
  *
1
+ !function(e){var i={};function t(r){if(i[r])return i[r].exports;var s=i[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var s in e)t.d(r,s,function(i){return e[i]}.bind(null,s));return r},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=251)}({251:function(e,i,t){e.exports=t(252)},252:function(e,i,t){"use strict";t.r(i);var r=t(28),s=t.n(r),n=window.jQuery,o=window.VPData.screenSizes;n(document).on("extendClass.vpf",(function(e,i){"vpf"===e.namespace&&(i.prototype.initSwiper=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this;if("slider"===i.options.layout&&void 0!==window.Swiper){var t=i.$items_wrap.parent();t.addClass("swiper-container"),i.$items_wrap.addClass("swiper-wrapper"),i.$items_wrap.children().addClass("swiper-slide");var r=i.options.sliderSlidesPerView||3,n={};if("fade"===i.options.sliderEffect&&(r=1),s()(r)){for(var a=r,l=Math.min(o.length-1,a-1);0<=l;l-=1)0<a&&void 0!==o[l]&&(n[o[l]+1]={slidesPerView:a}),a-=1;r=a||1}"fade"===(e=e||{speed:1e3*(parseFloat(i.options.sliderSpeed)||0),autoHeight:"auto"===i.options.sliderItemsHeight,effect:i.options.sliderEffect||"slide",spaceBetween:parseFloat(i.options.itemsGap)||0,centeredSlides:"true"===i.options.sliderCenteredSlides,freeMode:"true"===i.options.sliderFreeMode,freeModeSticky:"true"===i.options.sliderFreeModeSticky,loop:"true"===i.options.sliderLoop,autoplay:0<parseFloat(i.options.sliderAutoplay)&&{delay:1e3*parseFloat(i.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===i.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===i.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===i.options.sliderBulletsDynamic,renderBullet:function(e,i){return'<span class="'.concat(i,'" data-bullet-index="').concat(e,'" data-bullet-number="').concat(e+1,'"></span>')}},mousewheel:"true"===i.options.sliderMousewheel,slidesPerView:r,breakpoints:n,breakpointsInverse:!0,keyboard:!0,grabCursor:!0}).effect&&(e.fadeEffect={crossFade:!0}),0===e.speed&&(e.speed=1);var p=0;if(e.on={transitionEnd:function(){0===p?(p=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===p&&(p=2,this.slideReset())}},i.emitEvent("beforeInitSwiper",[e]),i.$slider_thumbnails_wrap.length){var d=i.$slider_thumbnails_wrap.parent();d.addClass("swiper-container"),i.$slider_thumbnails_wrap.addClass("swiper-wrapper"),i.$slider_thumbnails_wrap.children().addClass("swiper-slide");var u=i.options.sliderThumbnailsPerView||8,c={};if(s()(u)){for(var f=u,w=Math.min(o.length-1,f-1);0<=w;w-=1)0<f&&void 0!==o[w]&&(c[o[w]+1]={slidesPerView:f}),f-=1;u=f||1}var m=new window.Swiper(d[0],{autoHeight:"auto"===i.options.sliderThumbnailsHeight,effect:"slide",spaceBetween:parseFloat(i.options.sliderThumbnailsGap)||0,loop:!1,freeMode:!0,freeModeSticky:!0,loopedSlides:5,slidesPerView:u,breakpoints:c,breakpointsInverse:!0,keyboard:!0,grabCursor:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});e.thumbs={swiper:m}}new window.Swiper(t[0],e),"true"===i.options.sliderAutoplayHoverPause&&0<parseFloat(i.options.sliderAutoplay)&&(i.$item.on("mouseenter.vpf-uid-".concat(i.uid),".swiper-container",(function(){t[0].swiper.autoplay.stop()})),i.$item.on("mouseleave.vpf-uid-".concat(i.uid),".swiper-container",(function(){t[0].swiper.autoplay.start()}))),i.emitEvent("initSwiper",[e])}},i.prototype.destroySwiper=function(){var e=this.$items_wrap.parent(),i=!!this.$slider_thumbnails_wrap.length&&this.$slider_thumbnails_wrap.parent(),t=e[0].swiper,r=!!i&&i[0].swiper,s=!1;r&&(r.destroy(),i.removeClass("swiper-container"),this.$slider_thumbnails_wrap.removeClass("swiper-wrapper"),this.$slider_thumbnails_wrap.children().removeClass("swiper-slide"),s=!0),t&&(t.destroy(),e.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),e.find(".vp-portfolio__items-bullets").removeClass("swiper-pagination-clickable swiper-pagination-bullets-dynamic").removeAttr("style").html(""),s=!0),s&&this.emitEvent("destroySwiper")})})),n(document).on("addItems.vpf",(function(e,i,t,r,s){if("vpf"===e.namespace){var n=i.$items_wrap.parent()[0].swiper;if(n){r&&n.removeAllSlides();var o=[];t.addClass("swiper-slide").each((function(){o.push(this)})),n.appendSlide(o);var a=!!i.$slider_thumbnails_wrap.length&&i.$slider_thumbnails_wrap.parent()[0].swiper;if(a){r&&a.removeAllSlides();var l=[];s.find(".vp-portfolio__thumbnails > .vp-portfolio__thumbnail-wrap").clone().addClass("swiper-slide").each((function(){l.push(this)})),a.appendSlide(l)}}}})),n(document).on("init.vpf",(function(e,i){"vpf"===e.namespace&&i.initSwiper()})),n(document).on("destroy.vpf",(function(e,i){"vpf"===e.namespace&&i.destroySwiper()}))},28:function(e,i,t){"use strict";
2
  /*!
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
  *
assets/js/popup-gallery.js CHANGED
@@ -195,7 +195,8 @@ $( document ).on( 'extendClass.vpf', ( event, VP ) => {
195
  }
196
 
197
  // click action
198
- self.$item.on( `click.vpf-uid-${ self.uid }`, '.vp-portfolio__item a.vp-portfolio__item-meta, .vp-portfolio__item .vp-portfolio__item-img > a, .vp-portfolio__item .vp-portfolio__item-meta-title > a', function( e ) {
 
199
  const $this = $( this );
200
 
201
  if ( ! $this.closest( '.vp-portfolio__item-wrap' ).find( '.vp-portfolio__item-popup' ).length ) {
195
  }
196
 
197
  // click action
198
+ // `a.vp-portfolio__item-overlay` added as fallback for old templates, used in themes.
199
+ self.$item.on( `click.vpf-uid-${ self.uid }`, '.vp-portfolio__item a.vp-portfolio__item-meta, .vp-portfolio__item .vp-portfolio__item-img > a, .vp-portfolio__item .vp-portfolio__item-meta-title > a, .vp-portfolio__item a.vp-portfolio__item-overlay', function( e ) {
200
  const $this = $( this );
201
 
202
  if ( ! $this.closest( '.vp-portfolio__item-wrap' ).find( '.vp-portfolio__item-popup' ).length ) {
assets/js/popup-gallery.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function i(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(o,r,function(t){return e[t]}.bind(null,r));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=251)}({251:function(e,t,i){e.exports=i(252)},252:function(e,t){var i=window.jQuery,o=window.VPData.settingsPopupGallery,r={vendor:!1,vendors:[{vendor:"youtube",embedUrl:"https://www.youtube.com/embed/{{video_id}}",pattern:/(https?:\/\/)?(www.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(?:embed\/|v\/|watch\?v=|watch\?list=(.*)&v=|watch\?(.*[^&]&)v=)?((\w|-){11})(&list=(\w+)&?)?/,patternIndex:6},{vendor:"vimeo",embedUrl:"https://player.vimeo.com/video/{{video_id}}",pattern:/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,patternIndex:3}],init:function(){},open:function(){},close:function(){},parseVideo:function(e){var t=!1;return r.vendors.forEach((function(i){if(!t){var o=e.match(i.pattern),r=!(!o||!o[i.patternIndex])&&o[i.patternIndex];if(r)if(i.embedCallback)t=i.embedCallback(e,o);else{var p=i.embedUrl;p=(p=(p=p.replace(/{{video_id}}/g,r)).replace(/{{video_url}}/g,e)).replace(/{{video_url_encoded}}/g,encodeURIComponent(e));var n=i.width||1920,a=i.height||1080;t={vendor:i.vendor,id:r,embed:'<iframe width="'.concat(n,'" height="').concat(a,'" src="').concat(p,'" scrolling="no" frameborder="0" allowTransparency="true" allow="autoplay; fullscreen; encrypted-media" allowfullscreen></iframe>'),embedUrl:p,url:e,width:n,height:a}}}})),t||{vendor:"unknown",id:e,url:e,embedUrl:e,embed:'<iframe width="1920" height="1080" src="'.concat(e,'" scrolling="no" frameborder="0" allowTransparency="true" allow="autoplay; fullscreen; encrypted-media" allowfullscreen></iframe>')}},parseGallery:function(e){var t,o,p,n,a,l=[];return e.find(".vp-portfolio__item-wrap:not(.swiper-slide-duplicate):not(.swiper-slide-duplicate-active)").each((function(){if((t=i(this).find(".vp-portfolio__item-popup"))&&t.length){if(o=(t.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n=t.attr("data-vp-popup-video"),a=!1,n&&(a=r.parseVideo(n)),a)p={type:"embed",el:this,src:a.embedUrl,embed:a.embed,width:a.width||1920,height:a.height||1080};else{p={type:"image",el:this,src:t.attr("data-vp-popup-img"),srcset:t.attr("data-vp-popup-img-srcset"),width:parseInt(o[0],10),height:parseInt(o[1],10)};var e=t.attr("data-vp-popup-sm-img")||p.src;if(e){var c=(t.attr("data-vp-popup-sm-img-size")||t.attr("data-vp-popup-img-size")||"1920x1080").split("x");p.srcSmall=e,p.srcSmallWidth=parseInt(c[0],10),p.srcSmallHeight=parseInt(c[1],10)}var d=t.attr("data-vp-popup-md-img")||p.src;if(d){var s=(t.attr("data-vp-popup-md-img-size")||t.attr("data-vp-popup-img-size")||"1920x1080").split("x");p.srcMedium=d,p.srcMediumWidth=parseInt(s[0],10),p.srcMediumHeight=parseInt(s[1],10)}var u=t.children(".vp-portfolio__item-popup-title").get(0),f=t.children(".vp-portfolio__item-popup-description").get(0);(u||f)&&(p.caption=(u?u.outerHTML:"")+(f?f.outerHTML:""))}l.push(p)}})),l}};function p(e){return/(.png|.jpg|.jpeg|.gif|.tiff|.bmp|.webp)$/.test(e.href.toLowerCase().split("?")[0].split("#")[0])}function n(e){var t=i(e),o=e.childNodes[0],r=t.next("figcaption");return"NOSCRIPT"===o.nodeName&&e.childNodes[1]&&(o=e.childNodes[1]),!r.length&&t.parent(".gallery-icon").length&&(r=t.parent(".gallery-icon").next("figcaption")),(r=r.html())&&(r='<div class="vp-portfolio__item-popup-description">'.concat(r,"</div>")),{type:"image",el:o,linkEl:e,src:e.href,caption:r}}window.VPPopupAPI=r,i(document).on("extendClass.vpf",(function(e,t){"vpf"===e.namespace&&(t.prototype.initPopupGallery=function(){var e=this;e.options.itemsClickAction&&"popup_gallery"===e.options.itemsClickAction&&(e.isPreview()||e.$item.on("click.vpf-uid-".concat(e.uid),".vp-portfolio__item a.vp-portfolio__item-meta, .vp-portfolio__item .vp-portfolio__item-img > a, .vp-portfolio__item .vp-portfolio__item-meta-title > a",(function(t){var o=i(this);if(o.closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item-popup").length){t.preventDefault();var p=-1,n=o.closest(".vp-portfolio__item")[0];e.$item.find(".vp-portfolio__item-wrap:not(.swiper-slide-duplicate):not(.swiper-slide-duplicate-active) .vp-portfolio__item-popup").each((function(e){-1===p&&i(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item")[0]===n&&(p=e)})),0>p&&(p=0);var a=r.parseGallery(e.$item);r.open(a,p,e)}})))},t.prototype.destroyPopupGallery=function(){this.options.itemsClickAction&&"popup_gallery"===this.options.itemsClickAction&&(this.$item.off("click.vpf-uid-".concat(this.uid)),this.emitEvent("destroyPopupGallery"))})})),i(document).on("init.vpf",(function(e,t){"vpf"===e.namespace&&t.initPopupGallery()})),i(document).on("destroy.vpf",(function(e,t){"vpf"===e.namespace&&t.destroyPopupGallery()})),o.enable_on_wordpress_images&&i(document).on("click","\n .wp-block-image > a,\n .wp-block-image > figure > a,\n .wp-block-gallery .blocks-gallery-item > figure > a,\n .wp-block-media-text > figure > a,\n .gallery .gallery-icon > a,\n figure.wp-caption > a,\n figure.tiled-gallery__item > a,\n p > a\n ",(function(e){if(this.childNodes.length){var t=this.childNodes[0];if("NOSCRIPT"===t.nodeName&&this.childNodes[1]&&(t=this.childNodes[1]),("IMG"===t.nodeName||"PICTURE"===t.nodeName)&&p(this)){e.preventDefault();var o=i(this),a=[],l=n(this),c=o.closest(".wp-block-gallery, .gallery, .tiled-gallery__gallery"),d=0;if(c.length){var s=c.find(".blocks-gallery-item > figure > a, .gallery-icon > a, figure.tiled-gallery__item > a"),u=0;s.each((function(){p(this)&&(this===l.linkEl&&(d=u),a.push(n(this)),u+=1)}))}else a.push(l);r.open(a,d)}}}))}});
1
+ !function(e){var t={};function i(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(o,r,function(t){return e[t]}.bind(null,r));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=253)}({253:function(e,t,i){e.exports=i(254)},254:function(e,t){var i=window.jQuery,o=window.VPData.settingsPopupGallery,r={vendor:!1,vendors:[{vendor:"youtube",embedUrl:"https://www.youtube.com/embed/{{video_id}}",pattern:/(https?:\/\/)?(www.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(?:embed\/|v\/|watch\?v=|watch\?list=(.*)&v=|watch\?(.*[^&]&)v=)?((\w|-){11})(&list=(\w+)&?)?/,patternIndex:6},{vendor:"vimeo",embedUrl:"https://player.vimeo.com/video/{{video_id}}",pattern:/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,patternIndex:3}],init:function(){},open:function(){},close:function(){},parseVideo:function(e){var t=!1;return r.vendors.forEach((function(i){if(!t){var o=e.match(i.pattern),r=!(!o||!o[i.patternIndex])&&o[i.patternIndex];if(r)if(i.embedCallback)t=i.embedCallback(e,o);else{var p=i.embedUrl;p=(p=(p=p.replace(/{{video_id}}/g,r)).replace(/{{video_url}}/g,e)).replace(/{{video_url_encoded}}/g,encodeURIComponent(e));var n=i.width||1920,a=i.height||1080;t={vendor:i.vendor,id:r,embed:'<iframe width="'.concat(n,'" height="').concat(a,'" src="').concat(p,'" scrolling="no" frameborder="0" allowTransparency="true" allow="autoplay; fullscreen; encrypted-media" allowfullscreen></iframe>'),embedUrl:p,url:e,width:n,height:a}}}})),t||{vendor:"unknown",id:e,url:e,embedUrl:e,embed:'<iframe width="1920" height="1080" src="'.concat(e,'" scrolling="no" frameborder="0" allowTransparency="true" allow="autoplay; fullscreen; encrypted-media" allowfullscreen></iframe>')}},parseGallery:function(e){var t,o,p,n,a,l=[];return e.find(".vp-portfolio__item-wrap:not(.swiper-slide-duplicate):not(.swiper-slide-duplicate-active)").each((function(){if((t=i(this).find(".vp-portfolio__item-popup"))&&t.length){if(o=(t.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n=t.attr("data-vp-popup-video"),a=!1,n&&(a=r.parseVideo(n)),a)p={type:"embed",el:this,src:a.embedUrl,embed:a.embed,width:a.width||1920,height:a.height||1080};else{p={type:"image",el:this,src:t.attr("data-vp-popup-img"),srcset:t.attr("data-vp-popup-img-srcset"),width:parseInt(o[0],10),height:parseInt(o[1],10)};var e=t.attr("data-vp-popup-sm-img")||p.src;if(e){var c=(t.attr("data-vp-popup-sm-img-size")||t.attr("data-vp-popup-img-size")||"1920x1080").split("x");p.srcSmall=e,p.srcSmallWidth=parseInt(c[0],10),p.srcSmallHeight=parseInt(c[1],10)}var d=t.attr("data-vp-popup-md-img")||p.src;if(d){var s=(t.attr("data-vp-popup-md-img-size")||t.attr("data-vp-popup-img-size")||"1920x1080").split("x");p.srcMedium=d,p.srcMediumWidth=parseInt(s[0],10),p.srcMediumHeight=parseInt(s[1],10)}var u=t.children(".vp-portfolio__item-popup-title").get(0),f=t.children(".vp-portfolio__item-popup-description").get(0);(u||f)&&(p.caption=(u?u.outerHTML:"")+(f?f.outerHTML:""))}l.push(p)}})),l}};function p(e){return/(.png|.jpg|.jpeg|.gif|.tiff|.bmp|.webp)$/.test(e.href.toLowerCase().split("?")[0].split("#")[0])}function n(e){var t=i(e),o=e.childNodes[0],r=t.next("figcaption");return"NOSCRIPT"===o.nodeName&&e.childNodes[1]&&(o=e.childNodes[1]),!r.length&&t.parent(".gallery-icon").length&&(r=t.parent(".gallery-icon").next("figcaption")),(r=r.html())&&(r='<div class="vp-portfolio__item-popup-description">'.concat(r,"</div>")),{type:"image",el:o,linkEl:e,src:e.href,caption:r}}window.VPPopupAPI=r,i(document).on("extendClass.vpf",(function(e,t){"vpf"===e.namespace&&(t.prototype.initPopupGallery=function(){var e=this;e.options.itemsClickAction&&"popup_gallery"===e.options.itemsClickAction&&(e.isPreview()||e.$item.on("click.vpf-uid-".concat(e.uid),".vp-portfolio__item a.vp-portfolio__item-meta, .vp-portfolio__item .vp-portfolio__item-img > a, .vp-portfolio__item .vp-portfolio__item-meta-title > a, .vp-portfolio__item a.vp-portfolio__item-overlay",(function(t){var o=i(this);if(o.closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item-popup").length){t.preventDefault();var p=-1,n=o.closest(".vp-portfolio__item")[0];e.$item.find(".vp-portfolio__item-wrap:not(.swiper-slide-duplicate):not(.swiper-slide-duplicate-active) .vp-portfolio__item-popup").each((function(e){-1===p&&i(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item")[0]===n&&(p=e)})),0>p&&(p=0);var a=r.parseGallery(e.$item);r.open(a,p,e)}})))},t.prototype.destroyPopupGallery=function(){this.options.itemsClickAction&&"popup_gallery"===this.options.itemsClickAction&&(this.$item.off("click.vpf-uid-".concat(this.uid)),this.emitEvent("destroyPopupGallery"))})})),i(document).on("init.vpf",(function(e,t){"vpf"===e.namespace&&t.initPopupGallery()})),i(document).on("destroy.vpf",(function(e,t){"vpf"===e.namespace&&t.destroyPopupGallery()})),o.enable_on_wordpress_images&&i(document).on("click","\n .wp-block-image > a,\n .wp-block-image > figure > a,\n .wp-block-gallery .blocks-gallery-item > figure > a,\n .wp-block-media-text > figure > a,\n .gallery .gallery-icon > a,\n figure.wp-caption > a,\n figure.tiled-gallery__item > a,\n p > a\n ",(function(e){if(this.childNodes.length){var t=this.childNodes[0];if("NOSCRIPT"===t.nodeName&&this.childNodes[1]&&(t=this.childNodes[1]),("IMG"===t.nodeName||"PICTURE"===t.nodeName)&&p(this)){e.preventDefault();var o=i(this),a=[],l=n(this),c=o.closest(".wp-block-gallery, .gallery, .tiled-gallery__gallery"),d=0;if(c.length){var s=c.find(".blocks-gallery-item > figure > a, .gallery-icon > a, figure.tiled-gallery__item > a"),u=0;s.each((function(){p(this)&&(this===l.linkEl&&(d=u),a.push(n(this)),u+=1)}))}else a.push(l);r.open(a,d)}}}))}});
assets/js/preview.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.10.0
4
  * Author : nK https://nkdev.info
5
  */
6
  const $ = window.jQuery;
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.10.1
4
  * Author : nK https://nkdev.info
5
  */
6
  const $ = window.jQuery;
assets/js/preview.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=253)}({253:function(e,t,n){e.exports=n(254)},254:function(e,t){
2
  /*!
3
  * Name : Visual Portfolio
4
  * Version : @@plugin_version
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=255)}({255:function(e,t,n){e.exports=n(256)},256:function(e,t){
2
  /*!
3
  * Name : Visual Portfolio
4
  * Version : @@plugin_version
class-visual-portfolio.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Visual Portfolio, Posts & Image Gallery
4
  * Description: Modern gallery and portfolio plugin with advanced layouts editor. Clean and powerful gallery styles with enormous settings in the Gutenberg block.
5
- * Version: 2.10.0
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
@@ -89,7 +89,7 @@ class Visual_Portfolio {
89
  $this->plugin_path = plugin_dir_path( __FILE__ );
90
  $this->plugin_url = plugin_dir_url( __FILE__ );
91
 
92
- if ( in_array( 'visual-portfolio-pro/class-visual-portfolio-pro.php', (array) get_option( 'active_plugins', array() ), true ) ) {
93
  $this->pro_plugin_path = plugin_dir_path( WP_PLUGIN_DIR . '/visual-portfolio-pro/class-visual-portfolio-pro.php' );
94
  $this->pro_plugin_url = plugin_dir_url( WP_PLUGIN_DIR . '/visual-portfolio-pro/class-visual-portfolio-pro.php' );
95
  }
@@ -99,9 +99,6 @@ class Visual_Portfolio {
99
 
100
  // include helper files.
101
  $this->include_dependencies();
102
-
103
- // register images sizes.
104
- $this->add_image_sizes();
105
  }
106
 
107
  /**
@@ -118,49 +115,6 @@ class Visual_Portfolio {
118
  flush_rewrite_rules();
119
  }
120
 
121
- /**
122
- * Add image sizes.
123
- */
124
- public function add_image_sizes() {
125
- $sm = Visual_Portfolio_Settings::get_option( 'sm', 'vp_images' );
126
- $md = Visual_Portfolio_Settings::get_option( 'md', 'vp_images' );
127
- $lg = Visual_Portfolio_Settings::get_option( 'lg', 'vp_images' );
128
- $xl = Visual_Portfolio_Settings::get_option( 'xl', 'vp_images' );
129
- $sm_popup = Visual_Portfolio_Settings::get_option( 'sm_popup', 'vp_images' );
130
- $md_popup = Visual_Portfolio_Settings::get_option( 'md_popup', 'vp_images' );
131
- $xl_popup = Visual_Portfolio_Settings::get_option( 'xl_popup', 'vp_images' );
132
-
133
- // custom image sizes.
134
- add_image_size( 'vp_sm', $sm, 9999 );
135
- add_image_size( 'vp_md', $md, 9999 );
136
- add_image_size( 'vp_lg', $lg, 9999 );
137
- add_image_size( 'vp_xl', $xl, 9999 );
138
- add_image_size( 'vp_sm_popup', $sm_popup, 9999 );
139
- add_image_size( 'vp_md_popup', $md_popup, 9999 );
140
- add_image_size( 'vp_xl_popup', $xl_popup, 9999 );
141
-
142
- add_filter( 'image_size_names_choose', array( $this, 'image_size_names_choose' ) );
143
- }
144
-
145
- /**
146
- * Custom image sizes
147
- *
148
- * @param array $sizes - registered image sizes.
149
- *
150
- * @return array
151
- */
152
- public function image_size_names_choose( $sizes ) {
153
- return array_merge(
154
- $sizes,
155
- array(
156
- 'vp_sm' => esc_html__( 'Small (VP)', 'visual-portfolio' ),
157
- 'vp_md' => esc_html__( 'Medium (VP)', 'visual-portfolio' ),
158
- 'vp_lg' => esc_html__( 'Large (VP)', 'visual-portfolio' ),
159
- 'vp_xl' => esc_html__( 'Extra Large (VP)', 'visual-portfolio' ),
160
- )
161
- );
162
- }
163
-
164
  /**
165
  * Include dependencies
166
  */
@@ -174,8 +128,11 @@ class Visual_Portfolio {
174
  require_once $this->plugin_path . 'classes/class-templates.php';
175
  require_once $this->plugin_path . 'classes/class-parse-blocks.php';
176
  require_once $this->plugin_path . 'classes/class-assets.php';
177
- require_once $this->plugin_path . 'classes/class-images.php';
 
 
178
  require_once $this->plugin_path . 'classes/class-settings.php';
 
179
  require_once $this->plugin_path . 'classes/class-rest.php';
180
  require_once $this->plugin_path . 'classes/class-get-portfolio.php';
181
  require_once $this->plugin_path . 'classes/class-gutenberg.php';
@@ -190,7 +147,6 @@ class Visual_Portfolio {
190
  require_once $this->plugin_path . 'classes/class-vc.php';
191
  require_once $this->plugin_path . 'classes/class-elementor.php';
192
  require_once $this->plugin_path . 'classes/class-supported-themes.php';
193
- require_once $this->plugin_path . 'classes/class-breakpoints.php';
194
  require_once $this->plugin_path . 'classes/class-wpml.php';
195
 
196
  // Migration run after all features.
2
  /**
3
  * Plugin Name: Visual Portfolio, Posts & Image Gallery
4
  * Description: Modern gallery and portfolio plugin with advanced layouts editor. Clean and powerful gallery styles with enormous settings in the Gutenberg block.
5
+ * Version: 2.10.1
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
89
  $this->plugin_path = plugin_dir_path( __FILE__ );
90
  $this->plugin_url = plugin_dir_url( __FILE__ );
91
 
92
+ if ( function_exists( 'visual_portfolio_pro' ) ) {
93
  $this->pro_plugin_path = plugin_dir_path( WP_PLUGIN_DIR . '/visual-portfolio-pro/class-visual-portfolio-pro.php' );
94
  $this->pro_plugin_url = plugin_dir_url( WP_PLUGIN_DIR . '/visual-portfolio-pro/class-visual-portfolio-pro.php' );
95
  }
99
 
100
  // include helper files.
101
  $this->include_dependencies();
 
 
 
102
  }
103
 
104
  /**
115
  flush_rewrite_rules();
116
  }
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  /**
119
  * Include dependencies
120
  */
128
  require_once $this->plugin_path . 'classes/class-templates.php';
129
  require_once $this->plugin_path . 'classes/class-parse-blocks.php';
130
  require_once $this->plugin_path . 'classes/class-assets.php';
131
+ require_once $this->plugin_path . 'classes/class-breakpoints.php';
132
+
133
+ // this settings class order is required.
134
  require_once $this->plugin_path . 'classes/class-settings.php';
135
+ require_once $this->plugin_path . 'classes/class-images.php';
136
  require_once $this->plugin_path . 'classes/class-rest.php';
137
  require_once $this->plugin_path . 'classes/class-get-portfolio.php';
138
  require_once $this->plugin_path . 'classes/class-gutenberg.php';
147
  require_once $this->plugin_path . 'classes/class-vc.php';
148
  require_once $this->plugin_path . 'classes/class-elementor.php';
149
  require_once $this->plugin_path . 'classes/class-supported-themes.php';
 
150
  require_once $this->plugin_path . 'classes/class-wpml.php';
151
 
152
  // Migration run after all features.
classes/class-admin.php CHANGED
@@ -42,9 +42,9 @@ class Visual_Portfolio_Admin {
42
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
43
  );
44
 
45
- wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '2.10.0', true );
46
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
47
- wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', array(), '2.10.0' );
48
  wp_style_add_data( 'visual-portfolio-admin', 'rtl', 'replace' );
49
  wp_style_add_data( 'visual-portfolio-admin', 'suffix', '.min' );
50
  }
@@ -58,8 +58,8 @@ class Visual_Portfolio_Admin {
58
  );
59
 
60
  if ( 'vp_lists' === get_post_type() ) {
61
- wp_enqueue_script( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.js', array( 'jquery' ), '2.10.0', true );
62
- wp_enqueue_style( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.css', array(), '2.10.0' );
63
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'rtl', 'replace' );
64
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'suffix', '.min' );
65
 
@@ -105,7 +105,7 @@ class Visual_Portfolio_Admin {
105
  // phpcs:ignore
106
  if ( 'visual_portfolio_go_pro' === $_GET['page'] ) {
107
  // phpcs:ignore
108
- wp_redirect( 'https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=admin_page&utm_content=2.10.0' );
109
  exit();
110
  }
111
  }
42
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
43
  );
44
 
45
+ wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '2.10.1', true );
46
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
47
+ wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', array(), '2.10.1' );
48
  wp_style_add_data( 'visual-portfolio-admin', 'rtl', 'replace' );
49
  wp_style_add_data( 'visual-portfolio-admin', 'suffix', '.min' );
50
  }
58
  );
59
 
60
  if ( 'vp_lists' === get_post_type() ) {
61
+ wp_enqueue_script( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.js', array( 'jquery' ), '2.10.1', true );
62
+ wp_enqueue_style( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.css', array(), '2.10.1' );
63
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'rtl', 'replace' );
64
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'suffix', '.min' );
65
 
105
  // phpcs:ignore
106
  if ( 'visual_portfolio_go_pro' === $_GET['page'] ) {
107
  // phpcs:ignore
108
+ wp_redirect( 'https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=admin_page&utm_content=2.10.1' );
109
  exit();
110
  }
111
  }
classes/class-assets.php CHANGED
@@ -33,7 +33,7 @@ class Visual_Portfolio_Assets {
33
  add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_head_assets' ), 9 );
34
 
35
  add_action( 'template_redirect', array( $this, 'popup_custom_styles' ) );
36
- add_action( 'template_redirect', array( $this, 'popup_for_default_wordpress_images' ) );
37
 
38
  add_action( 'wp_footer', array( $this, 'wp_enqueue_foot_assets' ) );
39
 
@@ -98,11 +98,11 @@ class Visual_Portfolio_Assets {
98
  foreach ( self::$stored_assets[ $type ] as $name => $data ) {
99
  if ( isset( $data['value'] ) && $data['value'] ) {
100
  if ( 'script' === $type ) {
101
- wp_enqueue_script( $name, '', array(), '2.10.0', true );
102
  } elseif ( is_string( $data['value'] ) ) {
103
- visual_portfolio()->include_template_style( $name, $data['value'], array(), '2.10.0' );
104
  } else {
105
- wp_enqueue_style( $name, '', array(), '2.10.0' );
106
  }
107
 
108
  self::$stored_assets[ $type ]['value'] = false;
@@ -164,11 +164,6 @@ class Visual_Portfolio_Assets {
164
  self::store_used_assets( 'visual-portfolio-custom-scrollbar', true, 'script' );
165
  self::store_used_assets( 'visual-portfolio-custom-scrollbar', true, 'style' );
166
 
167
- // Images Lazy Loading.
168
- if ( Visual_Portfolio_Settings::get_option( 'lazy_loading', 'vp_images' ) ) {
169
- self::store_used_assets( 'visual-portfolio-images-lazy-loading', true, 'script' );
170
- }
171
-
172
  // Items Style.
173
  if ( $options['items_style'] ) {
174
  $items_style_pref = '';
@@ -190,6 +185,11 @@ class Visual_Portfolio_Assets {
190
  );
191
  }
192
 
 
 
 
 
 
193
  // Popup.
194
  if ( 'popup_gallery' === $options['items_click_action'] ) {
195
  self::enqueue_popup_assets();
@@ -259,7 +259,7 @@ class Visual_Portfolio_Assets {
259
  $dynamic_styles = Visual_Portfolio_Controls_Dynamic_CSS::get( $options );
260
  $controls_css_handle = 'vp-dynamic-styles-' . $options['id'];
261
 
262
- wp_register_style( $controls_css_handle, false, array(), '2.10.0' );
263
  wp_enqueue_style( $controls_css_handle );
264
  wp_add_inline_style( $controls_css_handle, $dynamic_styles ? $dynamic_styles : ' ' );
265
 
@@ -288,6 +288,16 @@ class Visual_Portfolio_Assets {
288
  }
289
  }
290
 
 
 
 
 
 
 
 
 
 
 
291
  /**
292
  * Register scripts that will be used in the future when portfolio will be printed.
293
  */
@@ -349,6 +359,7 @@ class Visual_Portfolio_Assets {
349
  // LazySizes.
350
  if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
351
  wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
 
352
  wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array(), '5.2.2', true );
353
  }
354
 
@@ -384,6 +395,7 @@ class Visual_Portfolio_Assets {
384
  'visual-portfolio' => array( 'assets/css/main.min.css', $vp_style_deps ),
385
  'visual-portfolio-noscript' => array( 'assets/css/noscript.min.css', array( 'visual-portfolio' ) ),
386
  'visual-portfolio-elementor' => array( 'assets/css/elementor.min.css', array( 'visual-portfolio' ) ),
 
387
  'visual-portfolio-custom-scrollbar' => array( 'assets/css/custom-scrollbar.min.css', array( 'simplebar' ) ),
388
  'visual-portfolio-layout-justified' => array( 'assets/css/layout-justified.min.css', array( 'visual-portfolio' ) ),
389
  'visual-portfolio-layout-slider' => array( 'assets/css/layout-slider.min.css', array( 'visual-portfolio', 'swiper' ) ),
@@ -395,7 +407,7 @@ class Visual_Portfolio_Assets {
395
  );
396
 
397
  foreach ( $vp_styles as $name => $data ) {
398
- wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.10.0' );
399
  wp_style_add_data( $name, 'rtl', 'replace' );
400
  wp_style_add_data( $name, 'suffix', '.min' );
401
  }
@@ -434,11 +446,12 @@ class Visual_Portfolio_Assets {
434
  'simplebar',
435
  ),
436
  ),
437
- 'visual-portfolio-images-lazy-loading' => array(
438
- 'assets/js/images-lazy-loading.min.js',
439
  array(
440
  'jquery',
441
  'lazysizes-object-fit-cover',
 
442
  'lazysizes',
443
  ),
444
  ),
@@ -514,7 +527,7 @@ class Visual_Portfolio_Assets {
514
  );
515
 
516
  foreach ( $vp_scripts as $name => $data ) {
517
- wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.10.0', true );
518
  }
519
 
520
  do_action( 'vpf_after_assets_register' );
@@ -535,10 +548,13 @@ class Visual_Portfolio_Assets {
535
  /**
536
  * Add popup for default WordPress images.
537
  */
538
- public function popup_for_default_wordpress_images() {
539
  if ( Visual_Portfolio_Settings::get_option( 'enable_on_wordpress_images', 'vp_popup_gallery' ) ) {
540
  self::enqueue_popup_assets();
541
  }
 
 
 
542
  }
543
 
544
  /**
33
  add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_head_assets' ), 9 );
34
 
35
  add_action( 'template_redirect', array( $this, 'popup_custom_styles' ) );
36
+ add_action( 'template_redirect', array( $this, 'assets_for_default_wordpress_images' ) );
37
 
38
  add_action( 'wp_footer', array( $this, 'wp_enqueue_foot_assets' ) );
39
 
98
  foreach ( self::$stored_assets[ $type ] as $name => $data ) {
99
  if ( isset( $data['value'] ) && $data['value'] ) {
100
  if ( 'script' === $type ) {
101
+ wp_enqueue_script( $name, '', array(), '2.10.1', true );
102
  } elseif ( is_string( $data['value'] ) ) {
103
+ visual_portfolio()->include_template_style( $name, $data['value'], array(), '2.10.1' );
104
  } else {
105
+ wp_enqueue_style( $name, '', array(), '2.10.1' );
106
  }
107
 
108
  self::$stored_assets[ $type ]['value'] = false;
164
  self::store_used_assets( 'visual-portfolio-custom-scrollbar', true, 'script' );
165
  self::store_used_assets( 'visual-portfolio-custom-scrollbar', true, 'style' );
166
 
 
 
 
 
 
167
  // Items Style.
168
  if ( $options['items_style'] ) {
169
  $items_style_pref = '';
185
  );
186
  }
187
 
188
+ // Images Lazy Loading.
189
+ if ( Visual_Portfolio_Settings::get_option( 'lazy_loading', 'vp_images' ) ) {
190
+ self::enqueue_lazyload_assets();
191
+ }
192
+
193
  // Popup.
194
  if ( 'popup_gallery' === $options['items_click_action'] ) {
195
  self::enqueue_popup_assets();
259
  $dynamic_styles = Visual_Portfolio_Controls_Dynamic_CSS::get( $options );
260
  $controls_css_handle = 'vp-dynamic-styles-' . $options['id'];
261
 
262
+ wp_register_style( $controls_css_handle, false, array(), '2.10.1' );
263
  wp_enqueue_style( $controls_css_handle );
264
  wp_add_inline_style( $controls_css_handle, $dynamic_styles ? $dynamic_styles : ' ' );
265
 
288
  }
289
  }
290
 
291
+ /**
292
+ * Enqueue lazyload assets.
293
+ *
294
+ * @return void
295
+ */
296
+ public static function enqueue_lazyload_assets() {
297
+ self::store_used_assets( 'visual-portfolio-lazyload', true, 'script' );
298
+ self::store_used_assets( 'visual-portfolio-lazyload', true, 'style' );
299
+ }
300
+
301
  /**
302
  * Register scripts that will be used in the future when portfolio will be printed.
303
  */
359
  // LazySizes.
360
  if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
361
  wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
362
+ wp_register_script( 'lazysizes-config', visual_portfolio()->plugin_url . 'assets/js/lazysizes-config.min.js', array(), '2.10.1', true );
363
  wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array(), '5.2.2', true );
364
  }
365
 
395
  'visual-portfolio' => array( 'assets/css/main.min.css', $vp_style_deps ),
396
  'visual-portfolio-noscript' => array( 'assets/css/noscript.min.css', array( 'visual-portfolio' ) ),
397
  'visual-portfolio-elementor' => array( 'assets/css/elementor.min.css', array( 'visual-portfolio' ) ),
398
+ 'visual-portfolio-lazyload' => array( 'assets/css/lazyload.min.css', array() ),
399
  'visual-portfolio-custom-scrollbar' => array( 'assets/css/custom-scrollbar.min.css', array( 'simplebar' ) ),
400
  'visual-portfolio-layout-justified' => array( 'assets/css/layout-justified.min.css', array( 'visual-portfolio' ) ),
401
  'visual-portfolio-layout-slider' => array( 'assets/css/layout-slider.min.css', array( 'visual-portfolio', 'swiper' ) ),
407
  );
408
 
409
  foreach ( $vp_styles as $name => $data ) {
410
+ wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.10.1' );
411
  wp_style_add_data( $name, 'rtl', 'replace' );
412
  wp_style_add_data( $name, 'suffix', '.min' );
413
  }
446
  'simplebar',
447
  ),
448
  ),
449
+ 'visual-portfolio-lazyload' => array(
450
+ 'assets/js/lazyload.min.js',
451
  array(
452
  'jquery',
453
  'lazysizes-object-fit-cover',
454
+ 'lazysizes-config',
455
  'lazysizes',
456
  ),
457
  ),
527
  );
528
 
529
  foreach ( $vp_scripts as $name => $data ) {
530
+ wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.10.1', true );
531
  }
532
 
533
  do_action( 'vpf_after_assets_register' );
548
  /**
549
  * Add popup for default WordPress images.
550
  */
551
+ public function assets_for_default_wordpress_images() {
552
  if ( Visual_Portfolio_Settings::get_option( 'enable_on_wordpress_images', 'vp_popup_gallery' ) ) {
553
  self::enqueue_popup_assets();
554
  }
555
+ if ( 'full' === Visual_Portfolio_Settings::get_option( 'lazy_loading', 'vp_images' ) ) {
556
+ self::enqueue_lazyload_assets();
557
+ }
558
  }
559
 
560
  /**
classes/class-custom-post-type.php CHANGED
@@ -248,7 +248,7 @@ class Visual_Portfolio_Custom_Post_Type {
248
  if ( ! is_blog_installed() ) {
249
  return;
250
  }
251
- if ( get_option( 'visual_portfolio_updated_caps' ) === '2.10.0' ) {
252
  return;
253
  }
254
 
@@ -325,7 +325,7 @@ class Visual_Portfolio_Custom_Post_Type {
325
  $wp_roles->add_cap( 'administrator', $cap );
326
  }
327
 
328
- update_option( 'visual_portfolio_updated_caps', '2.10.0' );
329
  }
330
 
331
  /**
248
  if ( ! is_blog_installed() ) {
249
  return;
250
  }
251
+ if ( get_option( 'visual_portfolio_updated_caps' ) === '2.10.1' ) {
252
  return;
253
  }
254
 
325
  $wp_roles->add_cap( 'administrator', $cap );
326
  }
327
 
328
+ update_option( 'visual_portfolio_updated_caps', '2.10.1' );
329
  }
330
 
331
  /**
classes/class-elementor-widget.php CHANGED
@@ -33,9 +33,9 @@ class Visual_Portfolio_Elementor_Widget extends \Elementor\Widget_Base {
33
 
34
  if ( $this->is_preview_mode() ) {
35
  wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.min.js', '', '4.2.11', true );
36
- wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '2.10.0', true );
37
 
38
- wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '2.10.0' );
39
  wp_style_add_data( 'visual-portfolio-elementor', 'rtl', 'replace' );
40
  wp_style_add_data( 'visual-portfolio-elementor', 'suffix', '.min' );
41
  }
33
 
34
  if ( $this->is_preview_mode() ) {
35
  wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.min.js', '', '4.2.11', true );
36
+ wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '2.10.1', true );
37
 
38
+ wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '2.10.1' );
39
  wp_style_add_data( 'visual-portfolio-elementor', 'rtl', 'replace' );
40
  wp_style_add_data( 'visual-portfolio-elementor', 'suffix', '.min' );
41
  }
classes/class-get-portfolio.php CHANGED
@@ -210,13 +210,13 @@ class Visual_Portfolio_Get {
210
  }
211
 
212
  /**
213
- * Print portfolio by post ID or options
214
  *
215
  * @param array $atts options for portfolio list to print.
216
  *
217
- * @return string
218
  */
219
- public static function get( $atts = array() ) {
220
  if ( ! is_array( $atts ) ) {
221
  return '';
222
  }
@@ -224,7 +224,7 @@ class Visual_Portfolio_Get {
224
  $options = self::get_options( $atts );
225
 
226
  if ( ! $options ) {
227
- return '';
228
  }
229
 
230
  do_action( 'vpf_before_get_output', $options );
@@ -239,9 +239,6 @@ class Visual_Portfolio_Get {
239
  // Add ID to class.
240
  $class .= ' vp-id-' . $options['id'];
241
 
242
- // Insert styles and scripts.
243
- Visual_Portfolio_Assets::enqueue( $options );
244
-
245
  // Add custom class.
246
  if ( isset( $atts['class'] ) ) {
247
  $class .= ' ' . $atts['class'];
@@ -297,14 +294,10 @@ class Visual_Portfolio_Get {
297
  break;
298
  }
299
 
 
300
  $start_page = self::get_current_page_number();
301
-
302
- // stupid hack as wp_reset_postdata() function is not working for me...
303
- $old_post = $GLOBALS['post'];
304
-
305
- $is_images = 'images' === $options['content_source'];
306
-
307
- $is_social = 'social-stream' === $options['content_source'];
308
 
309
  if ( $is_images || $is_social ) {
310
  $query_opts = self::get_query_params( $options, false, $options['id'] );
@@ -318,6 +311,9 @@ class Visual_Portfolio_Get {
318
  // Get query params.
319
  $query_opts = self::get_query_params( $options, false, $options['id'] );
320
 
 
 
 
321
  // get Post List.
322
  $portfolio_query = new WP_Query( $query_opts );
323
 
@@ -334,36 +330,9 @@ class Visual_Portfolio_Get {
334
  $options['max_pages'] = $max_pages;
335
  $options['next_page_url'] = $next_page_url;
336
 
337
- $is_preview = self::is_preview();
338
-
339
- // No items found.
340
- if ( ( ( $is_social || $is_images ) && empty( $query_opts['images'] ) ) || isset( $portfolio_query ) && ! $portfolio_query->have_posts() ) {
341
-
342
- // Don't display any output if no items found (works on frontend only).
343
- if ( ! $is_preview && 'notice' !== $options['no_items_action'] ) {
344
- return '';
345
- }
346
-
347
- ob_start();
348
-
349
- $class .= ' vp-portfolio-not-found';
350
-
351
- ?>
352
- <div class="<?php echo esc_attr( $class ); ?>">
353
- <?php
354
- self::notice( $options['no_items_notice'] );
355
- ?>
356
- </div>
357
- <?php
358
-
359
- $return = ob_get_contents();
360
- ob_end_clean();
361
- return $return;
362
- }
363
-
364
- ob_start();
365
-
366
- // prepare data-attributes.
367
  $data_attrs = array(
368
  'data-vp-layout' => $options['layout'],
369
  'data-vp-items-style' => $options['items_style'],
@@ -494,32 +463,6 @@ class Visual_Portfolio_Get {
494
  $data_attrs = apply_filters( 'vpf_extend_portfolio_data_attributes', $data_attrs, $options, $style_options );
495
  $class = apply_filters( 'vpf_extend_portfolio_class', $class, $options, $style_options );
496
 
497
- do_action( 'vpf_before_wrapper_start', $options, $style_options );
498
-
499
- visual_portfolio()->include_template(
500
- 'items-list/wrapper-start',
501
- array(
502
- 'options' => $options,
503
- 'style_options' => $style_options,
504
- 'data_attrs' => $data_attrs,
505
- 'class' => $class,
506
- )
507
- );
508
-
509
- do_action( 'vpf_after_wrapper_start', $options, $style_options );
510
-
511
- // Top Layout elements.
512
- self::print_layout_elements( 'top', $options );
513
-
514
- // Prepare thumbnails.
515
- $slider_thumbnails = array();
516
-
517
- ?>
518
- <div class="vp-portfolio__items-wrap">
519
- <?php
520
-
521
- do_action( 'vpf_before_items_wrapper_start', $options, $style_options );
522
-
523
  $items_class = 'vp-portfolio__items vp-portfolio__items-style-' . $options['items_style'];
524
 
525
  if ( isset( $style_options['show_overlay'] ) && $style_options['show_overlay'] ) {
@@ -532,17 +475,9 @@ class Visual_Portfolio_Get {
532
 
533
  $items_class = apply_filters( 'vpf_extend_portfolio_items_class', $items_class, $options, $style_options );
534
 
535
- visual_portfolio()->include_template(
536
- 'items-list/items-wrapper-start',
537
- array(
538
- 'options' => $options,
539
- 'style_options' => $style_options,
540
- 'class' => $items_class,
541
- )
542
- );
543
-
544
- do_action( 'vpf_after_items_wrapper_start', $options, $style_options );
545
-
546
  $each_item_args = array(
547
  'uid' => '',
548
  'post_id' => '',
@@ -563,23 +498,17 @@ class Visual_Portfolio_Get {
563
  'filter' => '',
564
  'video' => '',
565
  'image_id' => '',
 
 
566
  'image_allowed_html' => array(
567
- 'noscript' => array(),
568
- 'img' => array(
569
- 'src' => array(),
570
- 'srcset' => array(),
571
- 'sizes' => array(),
572
- 'alt' => array(),
573
- 'class' => array(),
574
- 'width' => array(),
575
- 'height' => array(),
576
-
577
- // Lazyload support.
578
- 'loading' => array(),
579
- 'data-src' => array(),
580
- 'data-sizes' => array(),
581
- 'data-srcset' => array(),
582
- 'data-no-lazy' => array(),
583
  ),
584
  ),
585
  'img_size_popup' => $img_size_popup,
@@ -590,6 +519,7 @@ class Visual_Portfolio_Get {
590
  'opts' => $style_options,
591
  'vp_opts' => $options,
592
  );
 
593
 
594
  if ( ( $is_images || $is_social ) &&
595
  isset( $query_opts['images'] ) &&
@@ -659,9 +589,7 @@ class Visual_Portfolio_Get {
659
 
660
  $args = apply_filters( 'vpf_image_item_args', $args, $img );
661
 
662
- $slider_thumbnails[] = $args['image_id'];
663
-
664
- self::each_item( $args );
665
  }
666
  } elseif ( isset( $portfolio_query ) ) {
667
  while ( $portfolio_query->have_posts() ) {
@@ -756,68 +684,219 @@ class Visual_Portfolio_Get {
756
 
757
  $args = apply_filters( 'vpf_post_item_args', $args, $args['post_id'] );
758
 
759
- $slider_thumbnails[] = $args['image_id'];
760
-
761
- self::each_item( $args );
762
  }
763
 
764
  $portfolio_query->reset_postdata();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
  }
766
 
767
- do_action( 'vpf_before_items_wrapper_end', $options, $style_options );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
768
 
769
  visual_portfolio()->include_template(
770
- 'items-list/items-wrapper-end',
771
  array(
772
  'options' => $options,
773
  'style_options' => $style_options,
 
 
774
  )
775
  );
776
 
777
- do_action( 'vpf_after_items_wrapper_end', $options, $style_options );
778
 
779
- // Slider arrows and bullets.
780
- if ( 'slider' === $options['layout'] ) {
781
- if ( $options['slider_arrows'] ) {
782
- visual_portfolio()->include_template(
783
- 'items-list/layouts/slider/arrows',
784
- array(
785
- 'options' => $options,
786
- 'style_options' => $style_options,
787
- )
788
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
789
  }
790
- if ( $options['slider_bullets'] ) {
791
- visual_portfolio()->include_template(
792
- 'items-list/layouts/slider/bullets',
793
- array(
794
- 'options' => $options,
795
- 'style_options' => $style_options,
796
- )
797
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798
  }
799
- }
800
 
801
- ?>
802
  </div>
803
  <?php
804
 
805
- // Slider thumbnails.
 
 
806
  if ( 'slider' === $options['layout'] && $options['slider_thumbnails'] ) {
 
 
 
 
 
 
 
 
807
  visual_portfolio()->include_template(
808
  'items-list/layouts/slider/thumbnails',
809
  array(
810
  'options' => $options,
811
  'style_options' => $style_options,
812
  'thumbnails' => $slider_thumbnails,
813
- 'img_size' => $img_size,
814
  )
815
  );
816
  }
817
 
818
- // Bottom Layout elements.
 
 
819
  self::print_layout_elements( 'bottom', $options );
820
 
 
 
 
821
  do_action( 'vpf_before_wrapper_end', $options, $style_options );
822
 
823
  visual_portfolio()->include_template(
@@ -832,10 +911,6 @@ class Visual_Portfolio_Get {
832
 
833
  do_action( 'vpf_after_get_output', $options, $style_options );
834
 
835
- // stupid hack as wp_reset_postdata() function is not working for some reason...
836
- // phpcs:ignore
837
- $GLOBALS['post'] = $old_post;
838
-
839
  $return = ob_get_contents();
840
  ob_end_clean();
841
 
@@ -1816,7 +1891,7 @@ class Visual_Portfolio_Get {
1816
  $is_posts = 'post-based' === $args['vp_opts']['content_source'] || 'portfolio' === $args['vp_opts']['content_source'];
1817
 
1818
  // prepare image.
1819
- $args['image'] = Visual_Portfolio_Images::get_attachment_image( $args['image_id'], $args['img_size'], false, '', true );
1820
 
1821
  // fallback for old templates versions.
1822
  $args['image_noscript'] = '';
@@ -1876,7 +1951,7 @@ class Visual_Portfolio_Get {
1876
 
1877
  // No Image.
1878
  if ( ! $args['image'] && $args['no_image'] ) {
1879
- $args['image'] = Visual_Portfolio_Images::get_attachment_image( $args['no_image'], $args['img_size'], false, '', true );
1880
  }
1881
 
1882
  // Class.
210
  }
211
 
212
  /**
213
+ * Prepare config, that will be used for output.
214
  *
215
  * @param array $atts options for portfolio list to print.
216
  *
217
+ * @return array|bool
218
  */
219
+ public static function get_output_config( $atts = array() ) {
220
  if ( ! is_array( $atts ) ) {
221
  return '';
222
  }
224
  $options = self::get_options( $atts );
225
 
226
  if ( ! $options ) {
227
+ return false;
228
  }
229
 
230
  do_action( 'vpf_before_get_output', $options );
239
  // Add ID to class.
240
  $class .= ' vp-id-' . $options['id'];
241
 
 
 
 
242
  // Add custom class.
243
  if ( isset( $atts['class'] ) ) {
244
  $class .= ' ' . $atts['class'];
294
  break;
295
  }
296
 
297
+ $is_preview = self::is_preview();
298
  $start_page = self::get_current_page_number();
299
+ $is_images = 'images' === $options['content_source'];
300
+ $is_social = 'social-stream' === $options['content_source'];
 
 
 
 
 
301
 
302
  if ( $is_images || $is_social ) {
303
  $query_opts = self::get_query_params( $options, false, $options['id'] );
311
  // Get query params.
312
  $query_opts = self::get_query_params( $options, false, $options['id'] );
313
 
314
+ // stupid hack as wp_reset_postdata() function is not working for some reason...
315
+ $old_post = $GLOBALS['post'];
316
+
317
  // get Post List.
318
  $portfolio_query = new WP_Query( $query_opts );
319
 
330
  $options['max_pages'] = $max_pages;
331
  $options['next_page_url'] = $next_page_url;
332
 
333
+ /**
334
+ * Prepare data-attributes.
335
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
336
  $data_attrs = array(
337
  'data-vp-layout' => $options['layout'],
338
  'data-vp-items-style' => $options['items_style'],
463
  $data_attrs = apply_filters( 'vpf_extend_portfolio_data_attributes', $data_attrs, $options, $style_options );
464
  $class = apply_filters( 'vpf_extend_portfolio_class', $class, $options, $style_options );
465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  $items_class = 'vp-portfolio__items vp-portfolio__items-style-' . $options['items_style'];
467
 
468
  if ( isset( $style_options['show_overlay'] ) && $style_options['show_overlay'] ) {
475
 
476
  $items_class = apply_filters( 'vpf_extend_portfolio_items_class', $items_class, $options, $style_options );
477
 
478
+ /**
479
+ * Prepare each item args.
480
+ */
 
 
 
 
 
 
 
 
481
  $each_item_args = array(
482
  'uid' => '',
483
  'post_id' => '',
498
  'filter' => '',
499
  'video' => '',
500
  'image_id' => '',
501
+ // wp_kses allowed attributes for image
502
+ // extended in class-images for lazyloading support.
503
  'image_allowed_html' => array(
504
+ 'img' => array(
505
+ 'src' => array(),
506
+ 'srcset' => array(),
507
+ 'sizes' => array(),
508
+ 'alt' => array(),
509
+ 'class' => array(),
510
+ 'width' => array(),
511
+ 'height' => array(),
 
 
 
 
 
 
 
 
512
  ),
513
  ),
514
  'img_size_popup' => $img_size_popup,
519
  'opts' => $style_options,
520
  'vp_opts' => $options,
521
  );
522
+ $items = array();
523
 
524
  if ( ( $is_images || $is_social ) &&
525
  isset( $query_opts['images'] ) &&
589
 
590
  $args = apply_filters( 'vpf_image_item_args', $args, $img );
591
 
592
+ $items[] = $args;
 
 
593
  }
594
  } elseif ( isset( $portfolio_query ) ) {
595
  while ( $portfolio_query->have_posts() ) {
684
 
685
  $args = apply_filters( 'vpf_post_item_args', $args, $args['post_id'] );
686
 
687
+ $items[] = $args;
 
 
688
  }
689
 
690
  $portfolio_query->reset_postdata();
691
+
692
+ // stupid hack as wp_reset_postdata() function is not working for some reason...
693
+ // phpcs:ignore
694
+ $GLOBALS['post'] = $old_post;
695
+ }
696
+
697
+ $notices = array();
698
+
699
+ // No items found notice.
700
+ if ( empty( $items ) ) {
701
+ $class .= ' vp-portfolio-not-found';
702
+
703
+ // Don't display any output if no items found (works on frontend only).
704
+ if ( $options['no_items_notice'] && ( $is_preview || 'notice' === $options['no_items_action'] ) ) {
705
+ $notices[] = $options['no_items_notice'];
706
+ }
707
+ }
708
+
709
+ $result = array(
710
+ 'options' => $options,
711
+ 'style_options' => $style_options,
712
+ 'class' => $class,
713
+ 'data_attrs' => $data_attrs,
714
+ 'items_class' => $items_class,
715
+ 'items' => $items,
716
+ 'notices' => $notices,
717
+ 'img_size_popup' => $img_size_popup,
718
+ 'img_size_md_popup' => $img_size_md_popup,
719
+ 'img_size_sm_popup' => $img_size_sm_popup,
720
+ 'img_size' => $img_size,
721
+ );
722
+
723
+ return $result;
724
+ }
725
+
726
+ /**
727
+ * Print portfolio by post ID or options
728
+ *
729
+ * @param array $atts options for portfolio list to print.
730
+ *
731
+ * @return string
732
+ */
733
+ public static function get( $atts = array() ) {
734
+ $config = self::get_output_config( $atts );
735
+
736
+ if ( ! $config ) {
737
+ return '';
738
  }
739
 
740
+ $options = $config['options'];
741
+ $style_options = $config['style_options'];
742
+ $data_attrs = $config['data_attrs'];
743
+ $class = $config['class'];
744
+ $items = $config['items'];
745
+ $items_class = $config['items_class'];
746
+ $notices = $config['notices'];
747
+
748
+ // Insert styles and scripts.
749
+ Visual_Portfolio_Assets::enqueue( $options );
750
+
751
+ // No items found.
752
+ if ( empty( $items ) ) {
753
+ if ( empty( $notices ) ) {
754
+ return '';
755
+ }
756
+
757
+ ob_start();
758
+
759
+ ?>
760
+ <div class="<?php echo esc_attr( $class ); ?>">
761
+ <?php
762
+ foreach ( $notices as $notice ) {
763
+ self::notice( $notice );
764
+ }
765
+ ?>
766
+ </div>
767
+ <?php
768
+
769
+ return ob_get_clean();
770
+ }
771
+
772
+ ob_start();
773
+
774
+ /**
775
+ * Wrapper start.
776
+ */
777
+ do_action( 'vpf_before_wrapper_start', $options, $style_options );
778
 
779
  visual_portfolio()->include_template(
780
+ 'items-list/wrapper-start',
781
  array(
782
  'options' => $options,
783
  'style_options' => $style_options,
784
+ 'data_attrs' => $data_attrs,
785
+ 'class' => $class,
786
  )
787
  );
788
 
789
+ do_action( 'vpf_after_wrapper_start', $options, $style_options );
790
 
791
+ /**
792
+ * Top layout elements.
793
+ */
794
+ self::print_layout_elements( 'top', $options );
795
+
796
+ /**
797
+ * Items wrap.
798
+ */
799
+ ?>
800
+ <div class="vp-portfolio__items-wrap">
801
+ <?php
802
+
803
+ /**
804
+ * Items wrapper start.
805
+ */
806
+ do_action( 'vpf_before_items_wrapper_start', $options, $style_options );
807
+
808
+ visual_portfolio()->include_template(
809
+ 'items-list/items-wrapper-start',
810
+ array(
811
+ 'options' => $options,
812
+ 'style_options' => $style_options,
813
+ 'class' => $items_class,
814
+ )
815
+ );
816
+
817
+ do_action( 'vpf_after_items_wrapper_start', $options, $style_options );
818
+
819
+ /**
820
+ * Each item.
821
+ */
822
+ if ( is_array( $items ) && ! empty( $items ) ) {
823
+ foreach ( $items as $item_args ) {
824
+ self::each_item( $item_args );
825
+ }
826
  }
827
+
828
+ /**
829
+ * Items wrapper end.
830
+ */
831
+ do_action( 'vpf_before_items_wrapper_end', $options, $style_options );
832
+
833
+ visual_portfolio()->include_template(
834
+ 'items-list/items-wrapper-end',
835
+ array(
836
+ 'options' => $options,
837
+ 'style_options' => $style_options,
838
+ )
839
+ );
840
+
841
+ do_action( 'vpf_after_items_wrapper_end', $options, $style_options );
842
+
843
+ // Slider arrows and bullets.
844
+ if ( 'slider' === $options['layout'] ) {
845
+ if ( $options['slider_arrows'] ) {
846
+ visual_portfolio()->include_template(
847
+ 'items-list/layouts/slider/arrows',
848
+ array(
849
+ 'options' => $options,
850
+ 'style_options' => $style_options,
851
+ )
852
+ );
853
+ }
854
+ if ( $options['slider_bullets'] ) {
855
+ visual_portfolio()->include_template(
856
+ 'items-list/layouts/slider/bullets',
857
+ array(
858
+ 'options' => $options,
859
+ 'style_options' => $style_options,
860
+ )
861
+ );
862
+ }
863
  }
 
864
 
865
+ ?>
866
  </div>
867
  <?php
868
 
869
+ /**
870
+ * Carousel thumbnails.
871
+ */
872
  if ( 'slider' === $options['layout'] && $options['slider_thumbnails'] ) {
873
+ $slider_thumbnails = array();
874
+
875
+ if ( is_array( $items ) && ! empty( $items ) ) {
876
+ foreach ( $items as $item_args ) {
877
+ $slider_thumbnails[] = $item_args['image_id'];
878
+ }
879
+ }
880
+
881
  visual_portfolio()->include_template(
882
  'items-list/layouts/slider/thumbnails',
883
  array(
884
  'options' => $options,
885
  'style_options' => $style_options,
886
  'thumbnails' => $slider_thumbnails,
887
+ 'img_size' => $config['img_size'],
888
  )
889
  );
890
  }
891
 
892
+ /**
893
+ * Bottom layout elements.
894
+ */
895
  self::print_layout_elements( 'bottom', $options );
896
 
897
+ /**
898
+ * Wrapper end.
899
+ */
900
  do_action( 'vpf_before_wrapper_end', $options, $style_options );
901
 
902
  visual_portfolio()->include_template(
911
 
912
  do_action( 'vpf_after_get_output', $options, $style_options );
913
 
 
 
 
 
914
  $return = ob_get_contents();
915
  ob_end_clean();
916
 
1891
  $is_posts = 'post-based' === $args['vp_opts']['content_source'] || 'portfolio' === $args['vp_opts']['content_source'];
1892
 
1893
  // prepare image.
1894
+ $args['image'] = Visual_Portfolio_Images::get_attachment_image( $args['image_id'], $args['img_size'], false, '' );
1895
 
1896
  // fallback for old templates versions.
1897
  $args['image_noscript'] = '';
1951
 
1952
  // No Image.
1953
  if ( ! $args['image'] && $args['no_image'] ) {
1954
+ $args['image'] = Visual_Portfolio_Images::get_attachment_image( $args['no_image'], $args['img_size'], false, '' );
1955
  }
1956
 
1957
  // Class.
classes/class-gutenberg.php CHANGED
@@ -173,14 +173,14 @@ class Visual_Portfolio_Gutenberg_Block {
173
  'visual-portfolio-gutenberg',
174
  plugins_url( '../gutenberg/index.min.js', __FILE__ ),
175
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'jquery' ),
176
- '2.10.0',
177
  true
178
  );
179
  wp_enqueue_style(
180
  'visual-portfolio-gutenberg',
181
  plugins_url( '../gutenberg/style.min.css', __FILE__ ),
182
  array(),
183
- '2.10.0'
184
  );
185
  wp_style_add_data( 'visual-portfolio-gutenberg', 'rtl', 'replace' );
186
  wp_style_add_data( 'visual-portfolio-gutenberg', 'suffix', '.min' );
@@ -200,7 +200,7 @@ class Visual_Portfolio_Gutenberg_Block {
200
  'visual-portfolio-gutenberg-custom-post-meta',
201
  plugins_url( '../gutenberg/custom-post-meta.min.js', __FILE__ ),
202
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'wp-plugins', 'jquery' ),
203
- '2.10.0',
204
  true
205
  );
206
 
173
  'visual-portfolio-gutenberg',
174
  plugins_url( '../gutenberg/index.min.js', __FILE__ ),
175
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'jquery' ),
176
+ '2.10.1',
177
  true
178
  );
179
  wp_enqueue_style(
180
  'visual-portfolio-gutenberg',
181
  plugins_url( '../gutenberg/style.min.css', __FILE__ ),
182
  array(),
183
+ '2.10.1'
184
  );
185
  wp_style_add_data( 'visual-portfolio-gutenberg', 'rtl', 'replace' );
186
  wp_style_add_data( 'visual-portfolio-gutenberg', 'suffix', '.min' );
200
  'visual-portfolio-gutenberg-custom-post-meta',
201
  plugins_url( '../gutenberg/custom-post-meta.min.js', __FILE__ ),
202
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'wp-plugins', 'jquery' ),
203
+ '2.10.1',
204
  true
205
  );
206
 
classes/class-images.php CHANGED
@@ -20,13 +20,113 @@ class Visual_Portfolio_Images {
20
  */
21
  public static $image_processing = false;
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  /**
24
  * Visual_Portfolio_Images constructor.
25
  */
26
  public static function construct() {
27
- add_action( 'init', 'Visual_Portfolio_Images::allow_lazy_attributes' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  add_filter( 'kses_allowed_protocols', 'Visual_Portfolio_Images::kses_allowed_protocols', 15 );
29
- add_filter( 'wp_get_attachment_image_attributes', 'Visual_Portfolio_Images::add_image_placeholders', 15, 3 );
30
 
31
  // ignore Jetpack lazy.
32
  add_filter( 'jetpack_lazy_images_skip_image_with_attributes', 'Visual_Portfolio_Images::jetpack_lazy_images_skip_image_with_attributes', 15, 2 );
@@ -54,45 +154,56 @@ class Visual_Portfolio_Images {
54
  }
55
 
56
  /**
57
- * Init hooks.
 
 
 
 
58
  */
59
- public static function is_enabled() {
60
- // check for AMP endpoint.
61
- if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
62
- return false;
63
  }
64
 
65
- // check plugin settings.
66
- $enabled = Visual_Portfolio_Settings::get_option( 'lazy_loading', 'vp_images' );
67
- if ( ! $enabled ) {
68
- return false;
69
- }
 
 
 
 
 
 
70
 
71
- // disable using filter.
72
- if ( ! apply_filters( 'vpf_images_lazyload', true ) ) {
73
- return false;
74
- }
75
 
76
- return true;
77
  }
78
 
79
  /**
80
- * Allow attributes of Lazy Load for wp_kses.
 
 
 
 
81
  */
82
- public static function allow_lazy_attributes() {
83
- global $allowedposttags;
84
-
85
- if ( $allowedposttags ) {
86
- foreach ( $allowedposttags as $key => & $tags ) {
87
- if ( 'img' === $key ) {
88
- $tags['data-src'] = true;
89
- $tags['data-sizes'] = true;
90
- $tags['data-srcset'] = true;
91
- $tags['data-no-lazy'] = true;
92
- $tags['loading'] = true;
93
- }
94
- }
95
- }
 
96
  }
97
 
98
  /**
@@ -107,6 +218,197 @@ class Visual_Portfolio_Images {
107
  return $protocols;
108
  }
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  /**
111
  * Get attachment image wrapper.
112
  *
@@ -114,35 +416,19 @@ class Visual_Portfolio_Images {
114
  * @param string|array $size image size.
115
  * @param bool $icon icon.
116
  * @param string|array $attr image attributes.
117
- * @param bool $lazyload use lazyload tags.
118
  *
119
  * @return string
120
  */
121
  public static function get_attachment_image( $attachment_id, $size = 'thumbnail', $icon = false, $attr = '', $lazyload = true ) {
122
  $mime_type = get_post_mime_type( $attachment_id );
123
- $lazyload = self::is_enabled() && $lazyload;
124
- $noscript = '';
125
 
126
  // Prevent usage of resized GIFs, since GIFs animated only in full size.
127
  if ( $mime_type && 'image/gif' === $mime_type ) {
128
  $size = 'full';
129
  }
130
 
131
- if ( $lazyload ) {
132
- $noscript = apply_filters( 'vpf_wp_get_attachment_image', false, $attachment_id, $size, $attr, false );
133
-
134
- if ( ! $noscript ) {
135
- $noscript = wp_get_attachment_image( $attachment_id, $size, $icon, $attr );
136
- }
137
-
138
- if ( $noscript ) {
139
- $noscript = '<noscript>' . $noscript . '</noscript>';
140
- }
141
- }
142
-
143
- if ( $lazyload ) {
144
- self::$image_processing = true;
145
- }
146
 
147
  $image = apply_filters( 'vpf_wp_get_attachment_image', false, $attachment_id, $size, $attr, $lazyload );
148
 
@@ -150,11 +436,9 @@ class Visual_Portfolio_Images {
150
  $image = wp_get_attachment_image( $attachment_id, $size, $icon, $attr );
151
  }
152
 
153
- if ( $lazyload ) {
154
- self::$image_processing = false;
155
- }
156
 
157
- return $noscript . $image;
158
  }
159
 
160
  /**
@@ -166,10 +450,6 @@ class Visual_Portfolio_Images {
166
  * @return string
167
  */
168
  public static function get_image_placeholder( $width = 1, $height = 1 ) {
169
- if ( ! self::is_enabled() ) {
170
- return false;
171
- }
172
-
173
  if ( ! (int) $width || ! (int) $height ) {
174
  return false;
175
  }
@@ -186,7 +466,10 @@ class Visual_Portfolio_Images {
186
  $escape_search = array( '<', '>', '#', '"' );
187
  $escape_replace = array( '%3c', '%3e', '%23', '\'' );
188
 
189
- return 'data:image/svg+xml;base64,' . str_replace( $escape_search, $escape_replace, $placeholder );
 
 
 
190
  }
191
 
192
  /**
@@ -218,99 +501,84 @@ class Visual_Portfolio_Images {
218
  }
219
 
220
  /**
221
- * Add placeholder for Visual Portfolio images.
222
  *
223
- * @param array $attr Attributes for the image markup.
224
- * @param WP_Post $attachment Image attachment post.
225
- * @param string|array $size Requested size. Image size or array of width and height values
226
- * (in that order). Default 'thumbnail'.
227
  *
228
  * @return array
229
  */
230
- public static function add_image_placeholders( $attr, $attachment, $size ) {
231
- if ( ! self::is_enabled() ) {
232
- return $attr;
233
- }
234
 
235
- // Is string.
236
- if ( ! is_string( $size ) ) {
237
- return $attr;
238
  }
239
 
240
- // Use only when called class method get_attachment_image.
241
- if ( ! self::$image_processing ) {
242
- return $attr;
243
- }
244
-
245
- // Lazyload already added.
246
- if ( strpos( $attr['class'], 'lazyload' ) !== false || isset( $attr['data-src'] ) ) {
247
- return $attr;
248
- }
249
-
250
- // Get attachment id.
251
- $attachment_id = null;
252
-
253
- if ( isset( $attachment->ID ) ) {
254
- $attachment_id = $attachment->ID;
255
- } elseif ( isset( $attachment['ID'] ) ) {
256
- $attachment_id = $attachment['ID'];
257
- }
258
-
259
- // Default Placeholder.
260
- $placeholder = false;
261
- $placeholder_w = isset( $attr['width'] ) ? $attr['width'] : false;
262
- $placeholder_h = isset( $attr['height'] ) ? $attr['height'] : false;
263
 
264
- if ( ! $placeholder_w || ! $placeholder_h ) {
265
- // The right Image Placeholder.
266
- $metadata = get_post_meta( $attachment_id, '_wp_attachment_metadata', true );
267
-
268
- // generate placeholder.
269
- if ( isset( $metadata['sizes'][ $size ] ) && isset( $metadata['sizes'][ $size ]['width'] ) && isset( $metadata['sizes'][ $size ]['height'] ) ) {
270
- $placeholder_w = $metadata['sizes'][ $size ]['width'];
271
- $placeholder_h = $metadata['sizes'][ $size ]['height'];
272
- } elseif ( isset( $metadata['width'] ) && isset( $metadata['height'] ) ) {
273
- $placeholder_w = $metadata['width'];
274
- $placeholder_h = $metadata['height'];
 
 
 
 
275
  }
276
  }
277
 
278
- if ( $placeholder_w && $placeholder_h ) {
279
- $placeholder = self::get_image_placeholder( $placeholder_w, $placeholder_h );
280
- }
281
-
282
- // Prevent WP Rocket lazy loading.
283
- if ( defined( 'WP_ROCKET_VERSION' ) ) {
284
- $attr['data-no-lazy'] = '1';
285
- }
286
 
287
- // Prevent WP Smush lazy loading.
288
- if ( class_exists( 'WP_Smush' ) || class_exists( 'Smush\WP_Smush' ) ) {
289
- $attr['class'] .= ' no-lazyload';
 
 
 
 
 
 
 
 
290
  }
291
 
292
- // Prevent Native lazy loading.
293
- $attr['loading'] = 'eager';
 
294
 
295
- // lazy placeholder.
296
- if ( $placeholder ) {
297
- $attr['data-src'] = $attr['src'];
298
- $attr['src'] = $placeholder;
299
  }
300
 
301
- $attr['class'] .= ' vp-lazyload';
302
-
303
- // Src Set and Sizes.
304
- if ( isset( $attr['sizes'] ) ) {
305
- $attr['data-sizes'] = 'auto';
306
- unset( $attr['sizes'] );
307
- }
308
- if ( isset( $attr['srcset'] ) ) {
309
- $attr['data-srcset'] = $attr['srcset'];
310
- unset( $attr['srcset'] );
311
- }
312
 
313
- return $attr;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  }
315
 
316
  /**
20
  */
21
  public static $image_processing = false;
22
 
23
+ /**
24
+ * Allow Visual Portfolio images to use lazyload.
25
+ *
26
+ * @var bool
27
+ */
28
+ public static $allow_vp_lazyload = false;
29
+
30
+ /**
31
+ * Allow WordPress images to use lazyload.
32
+ *
33
+ * @var bool
34
+ */
35
+ public static $allow_wp_lazyload = false;
36
+
37
  /**
38
  * Visual_Portfolio_Images constructor.
39
  */
40
  public static function construct() {
41
+ add_action( 'wp', 'Visual_Portfolio_Images::init_lazyload' );
42
+
43
+ self::add_image_sizes();
44
+ }
45
+
46
+ /**
47
+ * Add image sizes.
48
+ */
49
+ public static function add_image_sizes() {
50
+ $sm = Visual_Portfolio_Settings::get_option( 'sm', 'vp_images' );
51
+ $md = Visual_Portfolio_Settings::get_option( 'md', 'vp_images' );
52
+ $lg = Visual_Portfolio_Settings::get_option( 'lg', 'vp_images' );
53
+ $xl = Visual_Portfolio_Settings::get_option( 'xl', 'vp_images' );
54
+ $sm_popup = Visual_Portfolio_Settings::get_option( 'sm_popup', 'vp_images' );
55
+ $md_popup = Visual_Portfolio_Settings::get_option( 'md_popup', 'vp_images' );
56
+ $xl_popup = Visual_Portfolio_Settings::get_option( 'xl_popup', 'vp_images' );
57
+
58
+ // custom image sizes.
59
+ add_image_size( 'vp_sm', $sm, 9999 );
60
+ add_image_size( 'vp_md', $md, 9999 );
61
+ add_image_size( 'vp_lg', $lg, 9999 );
62
+ add_image_size( 'vp_xl', $xl, 9999 );
63
+ add_image_size( 'vp_sm_popup', $sm_popup, 9999 );
64
+ add_image_size( 'vp_md_popup', $md_popup, 9999 );
65
+ add_image_size( 'vp_xl_popup', $xl_popup, 9999 );
66
+
67
+ add_filter( 'image_size_names_choose', 'Visual_Portfolio_Images::image_size_names_choose' );
68
+ }
69
+
70
+ /**
71
+ * Custom image sizes
72
+ *
73
+ * @param array $sizes - registered image sizes.
74
+ *
75
+ * @return array
76
+ */
77
+ public static function image_size_names_choose( $sizes ) {
78
+ return array_merge(
79
+ $sizes,
80
+ array(
81
+ 'vp_sm' => esc_html__( 'Small (VP)', 'visual-portfolio' ),
82
+ 'vp_md' => esc_html__( 'Medium (VP)', 'visual-portfolio' ),
83
+ 'vp_lg' => esc_html__( 'Large (VP)', 'visual-portfolio' ),
84
+ 'vp_xl' => esc_html__( 'Extra Large (VP)', 'visual-portfolio' ),
85
+ )
86
+ );
87
+ }
88
+
89
+ /**
90
+ * Init Lazyload
91
+ */
92
+ public static function init_lazyload() {
93
+ // Don't lazy load for feeds, previews and admin side.
94
+ if ( is_feed() || is_preview() || is_admin() ) {
95
+ return;
96
+ }
97
+
98
+ // Don't add on AMP endpoint.
99
+ if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
100
+ return;
101
+ }
102
+
103
+ self::$allow_vp_lazyload = ! ! Visual_Portfolio_Settings::get_option( 'lazy_loading', 'vp_images' );
104
+ self::$allow_wp_lazyload = 'full' === Visual_Portfolio_Settings::get_option( 'lazy_loading', 'vp_images' );
105
+
106
+ // Check for plugin settings.
107
+ if ( ! self::$allow_vp_lazyload && ! self::$allow_wp_lazyload ) {
108
+ return;
109
+ }
110
+
111
+ // disable using filter.
112
+ if ( ! apply_filters( 'vpf_images_lazyload', true ) ) {
113
+ return;
114
+ }
115
+
116
+ if ( self::$allow_wp_lazyload ) {
117
+ add_filter( 'the_content', 'Visual_Portfolio_Images::add_image_placeholders', 9999 );
118
+ add_filter( 'post_thumbnail_html', 'Visual_Portfolio_Images::add_image_placeholders', 9999 );
119
+ add_filter( 'get_avatar', 'Visual_Portfolio_Images::add_image_placeholders', 9999 );
120
+ add_filter( 'widget_text', 'Visual_Portfolio_Images::add_image_placeholders', 9999 );
121
+ add_filter( 'get_image_tag', 'Visual_Portfolio_Images::add_image_placeholders', 9999 );
122
+ }
123
+ add_filter( 'wp_get_attachment_image_attributes', 'Visual_Portfolio_Images::process_image_attributes', 9999 );
124
+
125
+ add_action( 'wp_kses_allowed_html', 'Visual_Portfolio_Images::allow_lazy_attributes' );
126
+ add_filter( 'vpf_image_item_args', 'Visual_Portfolio_Images::vp_kses_allow_lazy_attributes', 15 );
127
+ add_filter( 'vpf_post_item_args', 'Visual_Portfolio_Images::vp_kses_allow_lazy_attributes', 15 );
128
  add_filter( 'kses_allowed_protocols', 'Visual_Portfolio_Images::kses_allowed_protocols', 15 );
129
+ add_action( 'wp_head', 'Visual_Portfolio_Images::add_nojs_fallback' );
130
 
131
  // ignore Jetpack lazy.
132
  add_filter( 'jetpack_lazy_images_skip_image_with_attributes', 'Visual_Portfolio_Images::jetpack_lazy_images_skip_image_with_attributes', 15, 2 );
154
  }
155
 
156
  /**
157
+ * Allow attributes of Lazy Load for wp_kses.
158
+ *
159
+ * @param array $allowed_tags The allowed tags and their attributes.
160
+ *
161
+ * @return array
162
  */
163
+ public static function allow_lazy_attributes( $allowed_tags ) {
164
+ if ( ! isset( $allowed_tags['img'] ) ) {
165
+ return $allowed_tags;
 
166
  }
167
 
168
+ // But, if images are allowed, ensure that our attributes are allowed!
169
+ $img_attributes = array_merge(
170
+ $allowed_tags['img'],
171
+ array(
172
+ 'data-src' => 1,
173
+ 'data-sizes' => 1,
174
+ 'data-srcset' => 1,
175
+ 'data-no-lazy' => 1,
176
+ 'loading' => 1,
177
+ )
178
+ );
179
 
180
+ $allowed_tags['img'] = $img_attributes;
 
 
 
181
 
182
+ return $allowed_tags;
183
  }
184
 
185
  /**
186
+ * Allow attributes of Lazy Load for wp_kses used in vp images.
187
+ *
188
+ * @param array $args vp item args.
189
+ *
190
+ * @return array
191
  */
192
+ public static function vp_kses_allow_lazy_attributes( $args ) {
193
+ $args['image_allowed_html']['noscript'] = array();
194
+
195
+ $args['image_allowed_html']['img'] = array_merge(
196
+ $args['image_allowed_html']['img'],
197
+ array(
198
+ 'loading' => array(),
199
+ 'data-src' => array(),
200
+ 'data-sizes' => array(),
201
+ 'data-srcset' => array(),
202
+ 'data-no-lazy' => array(),
203
+ )
204
+ );
205
+
206
+ return $args;
207
  }
208
 
209
  /**
218
  return $protocols;
219
  }
220
 
221
+ /**
222
+ * Add image placeholders.
223
+ *
224
+ * @param string $content Content.
225
+ * @return string
226
+ */
227
+ public static function add_image_placeholders( $content ) {
228
+ // This is a pretty simple regex, but it works.
229
+ $content = preg_replace_callback( '#<(img)([^>]+?)(>(.*?)</\\1>|[\/]?>)#si', 'Visual_Portfolio_Images::process_image', $content );
230
+
231
+ return $content;
232
+ }
233
+
234
+ /**
235
+ * Returns true when a given array of attributes contains attributes or class signifying lazy images.
236
+ * should not process the image.
237
+ *
238
+ * @param array $attributes all available image attributes.
239
+ *
240
+ * @return bool
241
+ */
242
+ public static function should_skip_image_with_blocked_attributes( $attributes ) {
243
+ // Check for blocked classes.
244
+ if ( ! empty( $attributes['class'] ) ) {
245
+ $blocked_classes = array(
246
+ 'lazyload',
247
+ 'skip-lazy',
248
+ 'gazette-featured-content-thumbnail',
249
+ );
250
+
251
+ /**
252
+ * Allow plugins and themes to tell lazy images to skip an image with a given class.
253
+ */
254
+ $blocked_classes = apply_filters( 'vpf_lazyload_images_blocked_classes', $blocked_classes );
255
+
256
+ if ( ! is_array( $blocked_classes ) || empty( $blocked_classes ) ) {
257
+ return false;
258
+ }
259
+
260
+ foreach ( $blocked_classes as $class ) {
261
+ if ( false !== strpos( $attributes['class'], $class ) ) {
262
+ return true;
263
+ }
264
+ }
265
+ }
266
+
267
+ $blocked_attributes = array(
268
+ 'data-skip-lazy',
269
+ 'data-src',
270
+ );
271
+
272
+ foreach ( $blocked_attributes as $attr ) {
273
+ if ( isset( $attributes[ $attr ] ) ) {
274
+ return true;
275
+ }
276
+ }
277
+
278
+ // Skip lazy load from VPF images if option disabled.
279
+ if ( ! self::$allow_vp_lazyload && self::$image_processing ) {
280
+ return true;
281
+ }
282
+
283
+ // Skip lazy load from WordPress images if option disabled.
284
+ if ( ! self::$allow_wp_lazyload && ! self::$image_processing ) {
285
+ return true;
286
+ }
287
+
288
+ /**
289
+ * Allow plugins and themes to conditionally skip processing an image via its attributes.
290
+ */
291
+ if ( apply_filters( 'vpf_lazyload_skip_image_with_attributes', false, $attributes ) ) {
292
+ return true;
293
+ }
294
+
295
+ return false;
296
+ }
297
+
298
+ /**
299
+ * Processes images in content by acting as the preg_replace_callback.
300
+ *
301
+ * @param array $matches Matches.
302
+ *
303
+ * @return string The image with updated lazy attributes.
304
+ */
305
+ public static function process_image( $matches ) {
306
+ $old_attributes_str = $matches[2];
307
+ $old_attributes_kses_hair = wp_kses_hair( $old_attributes_str, wp_allowed_protocols() );
308
+
309
+ if ( empty( $old_attributes_kses_hair['src'] ) ) {
310
+ return $matches[0];
311
+ }
312
+
313
+ $old_attributes = self::flatten_kses_hair_data( $old_attributes_kses_hair );
314
+
315
+ // If we didn't add lazy attributes, just return the original image source.
316
+ if ( ! empty( $old_attributes['class'] ) && false !== strpos( $old_attributes['class'], 'vp-lazyload' ) ) {
317
+ return $matches[0];
318
+ }
319
+
320
+ $new_attributes = self::process_image_attributes( $old_attributes );
321
+ $new_attributes_str = self::build_attributes_string( $new_attributes );
322
+
323
+ return sprintf( '<noscript>%1$s</noscript><img %2$s>', $matches[0], $new_attributes_str );
324
+ }
325
+
326
+ /**
327
+ * Given an array of image attributes, updates the `src`, `srcset`, and `sizes` attributes so
328
+ * that they load lazily.
329
+ *
330
+ * @param array $attributes Attributes.
331
+ *
332
+ * @return array The updated image attributes array with lazy load attributes.
333
+ */
334
+ public static function process_image_attributes( $attributes ) {
335
+ if ( empty( $attributes['src'] ) ) {
336
+ return $attributes;
337
+ }
338
+
339
+ if ( self::should_skip_image_with_blocked_attributes( $attributes ) ) {
340
+ return $attributes;
341
+ }
342
+
343
+ // Default Placeholder.
344
+ $placeholder = false;
345
+ $placeholder_w = isset( $attributes['width'] ) ? $attributes['width'] : false;
346
+ $placeholder_h = isset( $attributes['height'] ) ? $attributes['height'] : false;
347
+
348
+ // Trying to get image size from metadata.
349
+ if ( ! $placeholder_w || ! $placeholder_h ) {
350
+ $image_id = self::attributes_to_image_id( $attributes );
351
+ $metadata = get_post_meta( $image_id, '_wp_attachment_metadata', true );
352
+
353
+ if ( isset( $metadata['width'] ) && isset( $metadata['height'] ) ) {
354
+ $placeholder_w = $metadata['width'];
355
+ $placeholder_h = $metadata['height'];
356
+ }
357
+ }
358
+
359
+ if ( $placeholder_w && $placeholder_h ) {
360
+ $placeholder = self::get_image_placeholder( $placeholder_w, $placeholder_h );
361
+ }
362
+
363
+ $attributes['data-src'] = $attributes['src'];
364
+
365
+ if ( isset( $attributes['srcset'] ) ) {
366
+ $attributes['data-srcset'] = $attributes['srcset'];
367
+
368
+ if ( $placeholder ) {
369
+ $attributes['srcset'] = $placeholder;
370
+ } else {
371
+ unset( $attributes['srcset'] );
372
+ }
373
+
374
+ // In case if the image doesn't have `srcset`, we need to add placeholder to `src`.
375
+ } elseif ( $placeholder ) {
376
+ $attributes['src'] = $placeholder;
377
+ }
378
+
379
+ if ( isset( $attributes['sizes'] ) ) {
380
+ unset( $attributes['sizes'] );
381
+ }
382
+
383
+ $attributes['data-sizes'] = 'auto';
384
+
385
+ // Prevent Native lazy loading.
386
+ $attributes['loading'] = 'eager';
387
+
388
+ // Add custom classname.
389
+ $attributes['class'] = sprintf( '%s vp-lazyload', empty( $attributes['class'] ) ? '' : $attributes['class'] );
390
+
391
+ // Prevent WP Rocket lazy loading.
392
+ if ( defined( 'WP_ROCKET_VERSION' ) ) {
393
+ $attributes['data-no-lazy'] = '1';
394
+ }
395
+
396
+ // Prevent WP Smush lazy loading.
397
+ if ( class_exists( 'WP_Smush' ) || class_exists( 'Smush\WP_Smush' ) ) {
398
+ $attributes['class'] .= ' no-lazyload';
399
+ }
400
+
401
+ /**
402
+ * Allow plugins and themes to override the attributes on the image before the content is updated.
403
+ *
404
+ * One potential use of this filter is for themes that set `height:auto` on the `img` tag.
405
+ * With this filter, the theme could get the width and height attributes from the
406
+ * $attributes array and then add a style tag that sets those values as well, which could
407
+ * minimize reflow as images load.
408
+ */
409
+ return apply_filters( 'vpf_lazyload_images_new_attributes', $attributes );
410
+ }
411
+
412
  /**
413
  * Get attachment image wrapper.
414
  *
416
  * @param string|array $size image size.
417
  * @param bool $icon icon.
418
  * @param string|array $attr image attributes.
419
+ * @param bool $lazyload DEPRECATED use lazyload tags.
420
  *
421
  * @return string
422
  */
423
  public static function get_attachment_image( $attachment_id, $size = 'thumbnail', $icon = false, $attr = '', $lazyload = true ) {
424
  $mime_type = get_post_mime_type( $attachment_id );
 
 
425
 
426
  // Prevent usage of resized GIFs, since GIFs animated only in full size.
427
  if ( $mime_type && 'image/gif' === $mime_type ) {
428
  $size = 'full';
429
  }
430
 
431
+ self::$image_processing = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
432
 
433
  $image = apply_filters( 'vpf_wp_get_attachment_image', false, $attachment_id, $size, $attr, $lazyload );
434
 
436
  $image = wp_get_attachment_image( $attachment_id, $size, $icon, $attr );
437
  }
438
 
439
+ self::$image_processing = false;
 
 
440
 
441
+ return $image;
442
  }
443
 
444
  /**
450
  * @return string
451
  */
452
  public static function get_image_placeholder( $width = 1, $height = 1 ) {
 
 
 
 
453
  if ( ! (int) $width || ! (int) $height ) {
454
  return false;
455
  }
466
  $escape_search = array( '<', '>', '#', '"' );
467
  $escape_replace = array( '%3c', '%3e', '%23', '\'' );
468
 
469
+ return apply_filters(
470
+ 'vpf_lazyload_image_placeholder',
471
+ 'data:image/svg+xml;base64,' . str_replace( $escape_search, $escape_replace, $placeholder )
472
+ );
473
  }
474
 
475
  /**
501
  }
502
 
503
  /**
504
+ * Flatter KSES hair data.
505
  *
506
+ * @param array $attributes Attributes.
 
 
 
507
  *
508
  * @return array
509
  */
510
+ private static function flatten_kses_hair_data( $attributes ) {
511
+ $flattened_attributes = array();
 
 
512
 
513
+ foreach ( $attributes as $name => $attribute ) {
514
+ $flattened_attributes[ $name ] = $attribute['value'];
 
515
  }
516
 
517
+ return $flattened_attributes;
518
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
519
 
520
+ /**
521
+ * Build attributes string.
522
+ *
523
+ * @param array $attributes Attributes.
524
+ *
525
+ * @return string
526
+ */
527
+ private static function build_attributes_string( $attributes ) {
528
+ $string = array();
529
+
530
+ foreach ( $attributes as $name => $value ) {
531
+ if ( '' === $value ) {
532
+ $string[] = sprintf( '%s', $name );
533
+ } else {
534
+ $string[] = sprintf( '%s="%s"', $name, esc_attr( $value ) );
535
  }
536
  }
537
 
538
+ return implode( ' ', $string );
539
+ }
 
 
 
 
 
 
540
 
541
+ /**
542
+ * Tries to convert an attachment IMG attr into a post object.
543
+ *
544
+ * @param array $attributes image attributes.
545
+ *
546
+ * @return int|bool
547
+ */
548
+ private static function attributes_to_image_id( $attributes ) {
549
+ // Get ID from class.
550
+ if ( isset( $attributes['class'] ) && preg_match( '/wp-image-(\d*)/i', $attributes['class'], $match ) ) {
551
+ return $match[1];
552
  }
553
 
554
+ if ( isset( $attributes['src'] ) ) {
555
+ // Remove the thumbnail size.
556
+ $src = preg_replace( '~-[0-9]+x[0-9]+(?=\..{2,6})~', '', $attributes['src'] );
557
 
558
+ return attachment_url_to_postid( $src );
 
 
 
559
  }
560
 
561
+ return false;
562
+ }
 
 
 
 
 
 
 
 
 
563
 
564
+ /**
565
+ * Adds JavaScript to check if the current browser supports JavaScript as well as some styles to hide lazy
566
+ * images when the browser does not support JavaScript.
567
+ */
568
+ public static function add_nojs_fallback() {
569
+ ?>
570
+ <style type="text/css">
571
+ /* If html does not have either class, do not show lazy loaded images. */
572
+ html:not(.vp-lazyload-enabled):not(.js) .vp-lazyload {
573
+ display: none;
574
+ }
575
+ </style>
576
+ <script>
577
+ document.documentElement.classList.add(
578
+ 'vp-lazyload-enabled'
579
+ );
580
+ </script>
581
+ <?php
582
  }
583
 
584
  /**
classes/class-migration.php CHANGED
@@ -18,7 +18,7 @@ class Visual_Portfolio_Migrations {
18
  *
19
  * @var string
20
  */
21
- protected $version = '2.10.0';
22
 
23
  /**
24
  * Initial version.
@@ -71,6 +71,10 @@ class Visual_Portfolio_Migrations {
71
  */
72
  public function get_migrations() {
73
  return array(
 
 
 
 
74
  array(
75
  'version' => '2.0.0',
76
  'cb' => array( $this, 'v_2_0_0' ),
@@ -82,6 +86,25 @@ class Visual_Portfolio_Migrations {
82
  );
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  /**
86
  * 1. Change Portfolio content source to Post with custom post type Portfolio
87
  * 2. Change filters, sort and pagination to layout-elements.
18
  *
19
  * @var string
20
  */
21
+ protected $version = '2.10.1';
22
 
23
  /**
24
  * Initial version.
71
  */
72
  public function get_migrations() {
73
  return array(
74
+ array(
75
+ 'version' => '2.10.0',
76
+ 'cb' => array( $this, 'v_2_10_0' ),
77
+ ),
78
  array(
79
  'version' => '2.0.0',
80
  'cb' => array( $this, 'v_2_0_0' ),
86
  );
87
  }
88
 
89
+ /**
90
+ * Move popup title and description settings to single Layouts.
91
+ */
92
+ public function v_2_10_0() {
93
+ $options = get_option( 'vp_images' );
94
+
95
+ if ( ! isset( $options['lazy_loading'] ) ) {
96
+ return;
97
+ }
98
+
99
+ if ( 'off' === $options['lazy_loading'] || ! $options['lazy_loading'] ) {
100
+ $options['lazy_loading'] = '';
101
+ } else {
102
+ $options['lazy_loading'] = 'vp';
103
+ }
104
+
105
+ update_option( 'vp_images', $options );
106
+ }
107
+
108
  /**
109
  * 1. Change Portfolio content source to Post with custom post type Portfolio
110
  * 2. Change filters, sort and pagination to layout-elements.
classes/class-preview.php CHANGED
@@ -232,7 +232,7 @@ class Visual_Portfolio_Preview {
232
 
233
  // Enqueue assets.
234
  wp_enqueue_script( 'iframe-resizer-content', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.contentWindow.min.js', array(), '4.2.11', true );
235
- wp_enqueue_script( 'visual-portfolio-preview', visual_portfolio()->plugin_url . 'assets/js/preview.min.js', array( 'jquery', 'iframe-resizer-content' ), '2.10.0', true );
236
 
237
  // Post data for script.
238
  wp_localize_script(
@@ -275,7 +275,7 @@ class Visual_Portfolio_Preview {
275
  Visual_Portfolio_Assets::enqueue( $options );
276
 
277
  // Custom styles.
278
- visual_portfolio()->include_template_style( 'visual-portfolio-preview', 'preview/style', array(), '2.10.0' );
279
 
280
  // Output template.
281
  visual_portfolio()->include_template(
232
 
233
  // Enqueue assets.
234
  wp_enqueue_script( 'iframe-resizer-content', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.contentWindow.min.js', array(), '4.2.11', true );
235
+ wp_enqueue_script( 'visual-portfolio-preview', visual_portfolio()->plugin_url . 'assets/js/preview.min.js', array( 'jquery', 'iframe-resizer-content' ), '2.10.1', true );
236
 
237
  // Post data for script.
238
  wp_localize_script(
275
  Visual_Portfolio_Assets::enqueue( $options );
276
 
277
  // Custom styles.
278
+ visual_portfolio()->include_template_style( 'visual-portfolio-preview', 'preview/style', array(), '2.10.1' );
279
 
280
  // Output template.
281
  visual_portfolio()->include_template(
classes/class-settings.php CHANGED
@@ -263,9 +263,14 @@ class Visual_Portfolio_Settings {
263
  array(
264
  'name' => 'lazy_loading',
265
  'label' => esc_html__( 'Lazy Loading', 'visual-portfolio' ),
266
- 'desc' => esc_html__( 'Enable', 'visual-portfolio' ),
267
- 'type' => 'checkbox',
268
- 'default' => 'on',
 
 
 
 
 
269
  ),
270
 
271
  array(
@@ -481,7 +486,7 @@ class Visual_Portfolio_Settings {
481
  <h3>' . esc_html__( 'PRO Feature', 'visual-portfolio' ) . '</h3>
482
  <div>
483
  <p>' . esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ) . '</p>
484
- <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.10.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
485
  </div>
486
  </div>
487
  ',
263
  array(
264
  'name' => 'lazy_loading',
265
  'label' => esc_html__( 'Lazy Loading', 'visual-portfolio' ),
266
+ 'desc' => esc_html__( 'Enable lazy loading for Visual Portfolio layouts only or for the whole website.', 'visual-portfolio' ),
267
+ 'type' => 'radio',
268
+ 'default' => 'vp',
269
+ 'options' => array(
270
+ '' => esc_html__( 'Disabled', 'visual-portfolio' ),
271
+ 'vp' => esc_html__( 'Visual Portfolio only', 'visual-portfolio' ),
272
+ 'full' => esc_html__( 'All images', 'visual-portfolio' ),
273
+ ),
274
  ),
275
 
276
  array(
486
  <h3>' . esc_html__( 'PRO Feature', 'visual-portfolio' ) . '</h3>
487
  <div>
488
  <p>' . esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ) . '</p>
489
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.10.1">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
490
  </div>
491
  </div>
492
  ',
classes/class-supported-themes.php CHANGED
@@ -74,7 +74,7 @@ class Visual_Portfolio_Supported_Themes {
74
  public function wp_enqueue_scripts() {
75
  $theme_compat = $this->get_theme_compatibility_style();
76
  if ( $theme_compat ) {
77
- wp_enqueue_style( $theme_compat['name'], $theme_compat['url'], array(), '2.10.0' );
78
  wp_style_add_data( $theme_compat['name'], 'rtl', 'replace' );
79
  wp_style_add_data( $theme_compat['name'], 'suffix', '.min' );
80
  }
74
  public function wp_enqueue_scripts() {
75
  $theme_compat = $this->get_theme_compatibility_style();
76
  if ( $theme_compat ) {
77
+ wp_enqueue_style( $theme_compat['name'], $theme_compat['url'], array(), '2.10.1' );
78
  wp_style_add_data( $theme_compat['name'], 'rtl', 'replace' );
79
  wp_style_add_data( $theme_compat['name'], 'suffix', '.min' );
80
  }
classes/class-tinymce.php CHANGED
@@ -70,7 +70,7 @@ class Visual_Portfolio_TinyMCE {
70
  return;
71
  }
72
 
73
- wp_enqueue_script( 'visual-portfolio-tinymce-localize', visual_portfolio()->plugin_url . 'assets/admin/js/mce-localize.min.js', array(), '2.10.0', true );
74
  wp_localize_script( 'visual-portfolio-tinymce-localize', 'VPTinyMCEOptions', $data_tiny_mce );
75
  }
76
  }
70
  return;
71
  }
72
 
73
+ wp_enqueue_script( 'visual-portfolio-tinymce-localize', visual_portfolio()->plugin_url . 'assets/admin/js/mce-localize.min.js', array(), '2.10.1', true );
74
  wp_localize_script( 'visual-portfolio-tinymce-localize', 'VPTinyMCEOptions', $data_tiny_mce );
75
  }
76
  }
classes/class-vc.php CHANGED
@@ -35,7 +35,7 @@ class Visual_Portfolio_VC {
35
  */
36
  public function admin_enqueue_scripts( $page ) {
37
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
38
- wp_enqueue_script( 'visual-portfolio-vc-frontend', visual_portfolio()->plugin_url . 'assets/admin/js/vc-frontend.min.js', array( 'jquery' ), '2.10.0', true );
39
  }
40
  }
41
 
35
  */
36
  public function admin_enqueue_scripts( $page ) {
37
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
38
+ wp_enqueue_script( 'visual-portfolio-vc-frontend', visual_portfolio()->plugin_url . 'assets/admin/js/vc-frontend.min.js', array( 'jquery' ), '2.10.1', true );
39
  }
40
  }
41
 
gutenberg/components/controls-render/index.js CHANGED
@@ -463,7 +463,7 @@ ControlsRender.Control = function( props ) {
463
  { renderControlHelp ? (
464
  <p>{ renderControlHelp }</p>
465
  ) : '' }
466
- <ProNote.Button target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&amp;utm_medium=link&amp;utm_campaign=block_settings&amp;utm_content=2.10.0">
467
  { __( 'Read More', 'visual-portfolio' ) }
468
  </ProNote.Button>
469
  </ProNote>
463
  { renderControlHelp ? (
464
  <p>{ renderControlHelp }</p>
465
  ) : '' }
466
+ <ProNote.Button target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&amp;utm_medium=link&amp;utm_campaign=block_settings&amp;utm_content=2.10.1">
467
  { __( 'Read More', 'visual-portfolio' ) }
468
  </ProNote.Button>
469
  </ProNote>
gutenberg/custom-post-meta.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=265)}({265:function(e,t,n){e.exports=n(275)},266:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=wp.i18n.__,f=wp.compose,p=f.withInstanceId,s=f.compose,m=wp.data,d=m.withSelect,b=m.withDispatch,y=wp.element,v=y.Fragment,h=y.Component,w=wp.components,_=w.PanelRow,g=w.FocalPointPicker,P=wp.hooks.addFilter,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,n,u,l=a(f);function f(){return o(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.thumbnailData,o=e.updateMeta,r="";if(n&&(r=n.source_url,n.mime_type&&"image/gif"===n.mime_type||(n.media_details&&n.media_details.sizes&&n.media_details.sizes["post-thumbnail"]?r=n.media_details.sizes["post-thumbnail"].source_url:n.media_details&&n.media_details.sizes&&n.media_details.sizes.thumbnail&&(r=n.media_details.sizes.thumbnail.source_url))),!r)return null;var i=t("_vp_image_focal_point");return i&&i.x&&i.y||(i={x:"0.5",y:"0.5"}),wp.element.createElement("div",{className:"vpf-post-image-focal-point-panel"},wp.element.createElement(_,null,wp.element.createElement("p",{className:"description"},c("Focal point will be used in Visual Portfolio layouts only.","@@text_domain"))),wp.element.createElement(_,null,wp.element.createElement(g,{url:r,value:i,onChange:function(e){o("_vp_image_focal_point",e)}})))}}])&&r(t.prototype,n),u&&r(t,u),f}(h),j=s([d((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getMedia,o=t("featured_media"),r=t("meta")||{};return{thumbnailData:o?n(o):null,getMeta:function(e){return r[e]}}})),b((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),p])(O);P("editor.PostFeaturedImage","vpf/post-featured-image-focal-point",(function(e){return function(t){return wp.element.createElement(v,null,wp.element.createElement(j,null),wp.element.createElement(e,t))}}))},275:function(e,t,n){"use strict";n.r(t);var o=n(3),r=n(4);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=wp.i18n.__,m=wp.compose,d=m.withInstanceId,b=m.compose,y=wp.data,v=y.withSelect,h=y.withDispatch,w=wp.element.Component,_=wp.components,g=_.PanelRow,P=_.TextControl,O=wp.editPost.PluginDocumentSettingPanel,j=wp.plugins.registerPlugin,S=window,x=S.jQuery,E=S.ajaxurl,M=S.VPGutenbergMetaVariables,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,i,c=l(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).state={oembedQuery:"",oembedHTML:""},t.maybePrepareOembed=Object(o.debounce)(300,Object(r.a)(t.maybePrepareOembed.bind(f(t)))),t}return t=p,(n=[{key:"componentDidMount",value:function(){this.maybePrepareOembed()}},{key:"componentDidUpdate",value:function(){this.maybePrepareOembed()}},{key:"maybePrepareOembed",value:function(){var e=this,t=this.state,n=t.oembedQuery,o=t.oembedHTML,r=this.props,i=r.getMeta;if("video"===(0,r.getPostFormat)()){var a=i("_vp_format_video_url");n!==a&&(this.oembedAjax&&this.oembedAjax.abort&&this.oembedAjax.abort(),n||!o?this.oembedAjax=x.ajax({url:E,method:"POST",dataType:"json",data:{action:"vp_find_oembed",q:a,nonce:M.nonce},complete:function(t){var n=t.responseJSON,o={oembedQuery:a,oembedHTML:""};n&&void 0!==n.html&&(o.oembedHTML=n.html),e.setState(o),e.oembedAjax=null}}):this.setState({oembedHTML:""}))}}},{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.getPostFormat,o=e.updateMeta,r=this.state.oembedHTML;return"video"!==n()?null:wp.element.createElement(O,{name:"VPVideo",title:s("Video","@@text_domain"),icon:wp.element.createElement("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M19.25 10C19.25 15.1086 15.1086 19.25 10 19.25C4.89137 19.25 0.75 15.1086 0.75 10C0.75 4.89137 4.89137 0.75 10 0.75C15.1086 0.75 19.25 4.89137 19.25 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("path",{d:"M8 12.6326V7.36671C8.00011 7.30082 8.01856 7.23618 8.05342 7.17955C8.08828 7.12293 8.13826 7.0764 8.19812 7.04485C8.25798 7.0133 8.32552 6.99789 8.39367 7.00023C8.46181 7.00257 8.52805 7.02258 8.58544 7.05816L12.8249 9.69035C12.8786 9.72358 12.9228 9.76933 12.9534 9.82337C12.984 9.87742 13 9.93803 13 9.99963C13 10.0612 12.984 10.1218 12.9534 10.1759C12.9228 10.2299 12.8786 10.2757 12.8249 10.3089L8.58544 12.9418C8.52805 12.9774 8.46181 12.9974 8.39367 12.9998C8.32552 13.0021 8.25798 12.9867 8.19812 12.9551C8.13826 12.9236 8.08828 12.8771 8.05342 12.8204C8.01856 12.7638 8.00011 12.6992 8 12.6333V12.6326Z",fill:"currentColor"})),className:"vpf-meta-video-panel"},wp.element.createElement(g,null,wp.element.createElement("p",{className:"description"},s("Video will be used in Visual Portfolio layouts only. Full list of supported links","@@text_domain")," ",wp.element.createElement("a",{href:"https://visualportfolio.co/documentation/portfolio-items/video-portfolio-item/#supported-video-vendors",target:"_blank",rel:"noopener noreferrer"},s("see here","@@text_domain")))),wp.element.createElement(g,null,wp.element.createElement(P,{label:s("Video URL","@@text_domain"),value:t("_vp_format_video_url")||"",onChange:function(e){o("_vp_format_video_url",e)},type:"url",placeholder:"https://"})),wp.element.createElement(g,null,wp.element.createElement("div",{className:"vp-oembed-preview",dangerouslySetInnerHTML:{__html:r}})))}}])&&a(t.prototype,n),i&&a(t,i),p}(w);j("vp-video",{render:b([v((function(e){return{getMeta:function(t){return(e("core/editor").getEditedPostAttribute("meta")||{})[t]},getPostFormat:function(){return e("core/editor").getEditedPostAttribute("format")}}})),h((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),d])(C)});n(266)},3:function(e,t,n){var o,r,i,a;function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a=function(e){"use strict";function t(e,t,n,o){var r,i=!1,a=0;function u(){r&&clearTimeout(r)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,s=Date.now()-a;function m(){a=Date.now(),n.apply(p,c)}function d(){r=void 0}i||(o&&!r&&m(),u(),void 0===o&&s>e?m():!0!==t&&(r=setTimeout(o?d:m,void 0===o?e-s:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),l.cancel=function(){u(),i=!0},l}e.debounce=function(e,n,o){return void 0===o?t(e,n,!1):t(e,o,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===u(t)&&void 0!==e?a(t):(r=[t],void 0===(i="function"==typeof(o=a)?o.apply(t,r):o)||(e.exports=i))},4:function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,o=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];t=r,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o}}});
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=267)}({267:function(e,t,n){e.exports=n(277)},268:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=wp.i18n.__,f=wp.compose,p=f.withInstanceId,s=f.compose,m=wp.data,d=m.withSelect,b=m.withDispatch,y=wp.element,v=y.Fragment,h=y.Component,w=wp.components,_=w.PanelRow,g=w.FocalPointPicker,P=wp.hooks.addFilter,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,n,u,l=a(f);function f(){return o(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.thumbnailData,o=e.updateMeta,r="";if(n&&(r=n.source_url,n.mime_type&&"image/gif"===n.mime_type||(n.media_details&&n.media_details.sizes&&n.media_details.sizes["post-thumbnail"]?r=n.media_details.sizes["post-thumbnail"].source_url:n.media_details&&n.media_details.sizes&&n.media_details.sizes.thumbnail&&(r=n.media_details.sizes.thumbnail.source_url))),!r)return null;var i=t("_vp_image_focal_point");return i&&i.x&&i.y||(i={x:"0.5",y:"0.5"}),wp.element.createElement("div",{className:"vpf-post-image-focal-point-panel"},wp.element.createElement(_,null,wp.element.createElement("p",{className:"description"},c("Focal point will be used in Visual Portfolio layouts only.","@@text_domain"))),wp.element.createElement(_,null,wp.element.createElement(g,{url:r,value:i,onChange:function(e){o("_vp_image_focal_point",e)}})))}}])&&r(t.prototype,n),u&&r(t,u),f}(h),j=s([d((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getMedia,o=t("featured_media"),r=t("meta")||{};return{thumbnailData:o?n(o):null,getMeta:function(e){return r[e]}}})),b((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),p])(O);P("editor.PostFeaturedImage","vpf/post-featured-image-focal-point",(function(e){return function(t){return wp.element.createElement(v,null,wp.element.createElement(j,null),wp.element.createElement(e,t))}}))},277:function(e,t,n){"use strict";n.r(t);var o=n(3),r=n(4);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=wp.i18n.__,m=wp.compose,d=m.withInstanceId,b=m.compose,y=wp.data,v=y.withSelect,h=y.withDispatch,w=wp.element.Component,_=wp.components,g=_.PanelRow,P=_.TextControl,O=wp.editPost.PluginDocumentSettingPanel,j=wp.plugins.registerPlugin,S=window,x=S.jQuery,E=S.ajaxurl,M=S.VPGutenbergMetaVariables,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,i,c=l(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).state={oembedQuery:"",oembedHTML:""},t.maybePrepareOembed=Object(o.debounce)(300,Object(r.a)(t.maybePrepareOembed.bind(f(t)))),t}return t=p,(n=[{key:"componentDidMount",value:function(){this.maybePrepareOembed()}},{key:"componentDidUpdate",value:function(){this.maybePrepareOembed()}},{key:"maybePrepareOembed",value:function(){var e=this,t=this.state,n=t.oembedQuery,o=t.oembedHTML,r=this.props,i=r.getMeta;if("video"===(0,r.getPostFormat)()){var a=i("_vp_format_video_url");n!==a&&(this.oembedAjax&&this.oembedAjax.abort&&this.oembedAjax.abort(),n||!o?this.oembedAjax=x.ajax({url:E,method:"POST",dataType:"json",data:{action:"vp_find_oembed",q:a,nonce:M.nonce},complete:function(t){var n=t.responseJSON,o={oembedQuery:a,oembedHTML:""};n&&void 0!==n.html&&(o.oembedHTML=n.html),e.setState(o),e.oembedAjax=null}}):this.setState({oembedHTML:""}))}}},{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.getPostFormat,o=e.updateMeta,r=this.state.oembedHTML;return"video"!==n()?null:wp.element.createElement(O,{name:"VPVideo",title:s("Video","@@text_domain"),icon:wp.element.createElement("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M19.25 10C19.25 15.1086 15.1086 19.25 10 19.25C4.89137 19.25 0.75 15.1086 0.75 10C0.75 4.89137 4.89137 0.75 10 0.75C15.1086 0.75 19.25 4.89137 19.25 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("path",{d:"M8 12.6326V7.36671C8.00011 7.30082 8.01856 7.23618 8.05342 7.17955C8.08828 7.12293 8.13826 7.0764 8.19812 7.04485C8.25798 7.0133 8.32552 6.99789 8.39367 7.00023C8.46181 7.00257 8.52805 7.02258 8.58544 7.05816L12.8249 9.69035C12.8786 9.72358 12.9228 9.76933 12.9534 9.82337C12.984 9.87742 13 9.93803 13 9.99963C13 10.0612 12.984 10.1218 12.9534 10.1759C12.9228 10.2299 12.8786 10.2757 12.8249 10.3089L8.58544 12.9418C8.52805 12.9774 8.46181 12.9974 8.39367 12.9998C8.32552 13.0021 8.25798 12.9867 8.19812 12.9551C8.13826 12.9236 8.08828 12.8771 8.05342 12.8204C8.01856 12.7638 8.00011 12.6992 8 12.6333V12.6326Z",fill:"currentColor"})),className:"vpf-meta-video-panel"},wp.element.createElement(g,null,wp.element.createElement("p",{className:"description"},s("Video will be used in Visual Portfolio layouts only. Full list of supported links","@@text_domain")," ",wp.element.createElement("a",{href:"https://visualportfolio.co/documentation/portfolio-items/video-portfolio-item/#supported-video-vendors",target:"_blank",rel:"noopener noreferrer"},s("see here","@@text_domain")))),wp.element.createElement(g,null,wp.element.createElement(P,{label:s("Video URL","@@text_domain"),value:t("_vp_format_video_url")||"",onChange:function(e){o("_vp_format_video_url",e)},type:"url",placeholder:"https://"})),wp.element.createElement(g,null,wp.element.createElement("div",{className:"vp-oembed-preview",dangerouslySetInnerHTML:{__html:r}})))}}])&&a(t.prototype,n),i&&a(t,i),p}(w);j("vp-video",{render:b([v((function(e){return{getMeta:function(t){return(e("core/editor").getEditedPostAttribute("meta")||{})[t]},getPostFormat:function(){return e("core/editor").getEditedPostAttribute("format")}}})),h((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),d])(C)});n(268)},3:function(e,t,n){var o,r,i,a;function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a=function(e){"use strict";function t(e,t,n,o){var r,i=!1,a=0;function u(){r&&clearTimeout(r)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,s=Date.now()-a;function m(){a=Date.now(),n.apply(p,c)}function d(){r=void 0}i||(o&&!r&&m(),u(),void 0===o&&s>e?m():!0!==t&&(r=setTimeout(o?d:m,void 0===o?e-s:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),l.cancel=function(){u(),i=!0},l}e.debounce=function(e,n,o){return void 0===o?t(e,n,!1):t(e,o,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===u(t)&&void 0!==e?a(t):(r=[t],void 0===(i="function"==typeof(o=a)?o.apply(t,r):o)||(e.exports=i))},4:function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,o=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];t=r,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o}}});
gutenberg/index.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=267)}([function(e,t){e.exports=React},function(e,t,n){e.exports=n(85)()},function(e,t,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
@@ -39,4 +39,4 @@ function so(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try
39
  object-assign
40
  (c) Sindre Sorhus
41
  @license MIT
42
- */var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var h=0;h<a.length;h++)r.call(n,a[h])&&(l[a[h]]=n[a[h]])}}return l}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,o,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var i=n(214),o=n(215);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=t.base?r[0]+t.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:m(d,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,g=0;function m(e,t){var n,i,o;if(t.singleton){var r=g++;n=f||(f=c(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=c(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=r}}}},function(e,t,n){"use strict";n.r(t);var i=n(79),o=n.n(i)()(!1);o.push([e.i,'.visual-portfolio-gutenberg-preview{position:relative;min-height:40px;overflow:hidden}.visual-portfolio-gutenberg-preview iframe{width:100%;max-width:none;margin:0}.visual-portfolio-gutenberg-preview-loading{min-height:150px}.visual-portfolio-gutenberg-preview-loading::after{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;background-color:rgba(139,139,150,0.1)}.visual-portfolio-gutenberg-preview-loading iframe{opacity:0}.visual-portfolio-gutenberg-preview-loading>.visual-portfolio-gutenberg-preview-inner{position:absolute}.visual-portfolio-gutenberg-preview-loading>.components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translateX(-50%) translateY(-50%);z-index:10}\n',""]),t.default=o},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.changed-attributes","vpf/editor/changed-attributes/live-reload",(function(e){if(!e.$framePortfolio)return e;var t=!1;return Object.keys(e.attributes).forEach((function(n){var i=e.attributes[n];switch(n){case"tiles_type":case"masonry_columns":case"masonry_images_aspect_ratio":case"grid_columns":case"grid_images_aspect_ratio":case"justified_row_height":case"justified_row_height_tolerance":case"slider_effect":case"slider_speed":case"slider_autoplay":case"slider_autoplay_hover_pause":case"slider_centered_slides":case"slider_loop":case"slider_free_mode":case"slider_free_mode_sticky":case"slider_bullets_dynamic":case"items_gap":case"items_gap_vertical":e.$framePortfolio.attr("data-vp-".concat(n.replace(/_/g,"-")),i),e.$framePortfolio.vpf("init");break;case"items_style_default__align":case"items_style_fade__align":case"items_style_fly__align":case"items_style_emerge__align":var o="";["left","center","right","top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"].forEach((function(e){o+="".concat(o?" ":"","vp-portfolio__item-align-").concat(e)})),e.$framePortfolio.find(".vp-portfolio__item-overlay").removeClass(o).addClass("vp-portfolio__item-align-".concat(i));break;case"filter_align":e.$framePortfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(i));break;case"sort_align":e.$framePortfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(i));break;case"pagination_align":e.$framePortfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(i));break;case"list_name":case"stretch":case"custom_css":break;default:t=t||e.reload}})),i(i({},e),{},{reload:t})}))},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"getPortfolioLayouts",(function(){return l}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return c})),n.d(o,"setPortfolioLayouts",(function(){return u}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return d}));var s={};n.r(s),n.d(s,"getPortfolioLayouts",(function(){return f}));var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PORTFOLIO_LAYOUTS":return!e.layouts.length&&t.layouts&&t.layouts.length&&(e.layouts=t.layouts),e}return e};function l(e){return e.layouts}function c(e){return{type:"API_FETCH",request:e}}function u(e){return{type:"SET_PORTFOLIO_LAYOUTS",layouts:e}}var h=wp.apiFetch;function d(e){var t=e.request;return h(t).catch((function(e){return!(!e||!e.error||"no_layouts_found"!==e.error_code)&&{response:[],error:!1,success:!0}})).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}var p=regeneratorRuntime.mark(f);function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/visual-portfolio/v1/get_layouts/",t.next=3,c({path:"/visual-portfolio/v1/get_layouts/"});case 3:return e=t.sent,t.abrupt("return",u(e));case 5:case"end":return t.stop()}}),p)}(0,wp.data.registerStore)("visual-portfolio",{reducer:a,selectors:i,actions:o,controls:r,resolvers:s})},function(e,t,n){e.exports=n(268)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(273)},function(e,t){function n(e){var t=0;if(0==e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}function i(e,t){t=t||62;var n,i=[],o="",r=e<0?"-":"";function s(e){return"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]}for(e=Math.abs(e);e>=t;)n=e%t,e=Math.floor(e/t),i.push(s(n));e>0&&i.push(s(e));for(var a=i.length-1;a>=0;a--)o+=i[a];return r+o}t.bitwise=n,t.binaryTransfer=i,t.unique=function(e){return i(n(e),61).replace("-","Z")},t.random=function(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",i=e||8,o=0;o<i;o++){var r=Math.floor(Math.random()*t.length);n+=t.substring(r,r+1)}return n}},function(e,t){(0,wp.hooks.addFilter)("vpf.editor.controls-on-change","vpf/editor/controls-on-change/classic-icon-with-overlay",(function(e,t,n,i){return"items_style_default__show_icon"===t.name&&n&&!i.items_style_default__bg_color&&(e.items_style_default__bg_color="#000",e.items_style_default__text_color="#fff"),e}))},function(e,t){var n=wp.hooks.addFilter;n("vpf.editor.controls-on-change","vpf/editor/controls-on-change/link-rel",(function(e,t,n,i){return"items_click_action_url_target"===t.name&&("_blank"!==n||i.items_click_action_url_rel||(e.items_click_action_url_rel="noopener noreferrer"),"_blank"!==n&&"noopener noreferrer"===i.items_click_action_url_rel&&(e.items_click_action_url_rel="")),e}))},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.controls-render-data","vpf/editor/controls-render-data/customize-controls",(function(e){return"stretch"!==e.name||window.VPSavedLayoutVariables||(e=i(i({},e),{},{skip:!0})),e}))},,function(e,t,n){"use strict";n.r(t);var i=n(17),o=(n(217),n(218)),r=n.n(o);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=wp.hooks.addFilter,g=wp.element.Component,m=wp.compose.createHigherOrderComponent,v=wp.data.withSelect,b={};f("editor.BlockEdit","vpf/editor/unique-block-id",m((function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,t);var n,i,o,s=u(h);function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=(e=s.call.apply(s,[this].concat(n))).props,r=o.attributes,l=o.clientId;return l&&r.block_id&&void 0===b[r.block_id]&&(b[r.block_id]=l),e.maybeCreateBlockId=e.maybeCreateBlockId.bind(d(e)),e}return n=h,(i=[{key:"componentDidMount",value:function(){this.maybeCreateBlockId()}},{key:"componentDidUpdate",value:function(){this.maybeCreateBlockId()}},{key:"maybeCreateBlockId",value:function(){if("visual-portfolio/block"===this.props.blockName){var e=this.props,t=e.setAttributes,n=e.attributes,i=e.clientId,o=n.block_id;if(!o||b[o]!==i){for(var s="",a=10;!s||void 0!==b[s]&&b[s]!==i&&0<a;)s=r.a.unique(i),a-=1;s&&void 0===b[s]&&(b[s]=i),s!==o&&t({block_id:s})}}}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&l(n.prototype,i),o&&l(n,o),h}(g);return v((function(e,t){return{blockName:t.name}}))(t)}),"withUniqueBlockId"));n(269);var y=n(2),w=n.n(y),x=n(18),S=wp.i18n.__,C=wp.hooks.addFilter,k=wp.element,E=k.RawHTML,$=k.Fragment,_=wp.components,A=_.BaseControl,O=_.ButtonGroup,L=_.Button,R=_.TextControl;C("vpf.editor.controls-render","vpf/editor/controls-render/customize-controls",(function(e,t){if("items_count"===t.name){var n=t.description,i=t.attributes,o=t.onChange,r=!!n&&wp.element.createElement(E,null,n),s=w()("vpf-control-wrap","vpf-control-wrap-".concat(t.type)),a=parseInt(Object(x.a)(t.name,i),10);e=wp.element.createElement(A,{label:t.label,help:r,className:s},wp.element.createElement("div",null,wp.element.createElement(O,null,wp.element.createElement(L,{isSmall:!0,isPrimary:-1!==a,isPressed:-1!==a,onClick:function(){-1===a&&o(parseFloat(t.default||6))}},S("Custom Count","@@text_domain")),wp.element.createElement(L,{isSmall:!0,isPrimary:-1===a,isPressed:-1===a,onClick:function(){-1!==a&&window.confirm(S("Be careful, the output of all your items can adversely affect the performance of your site, this option may be helpful for image galleries.","@@text_domain"))&&o(-1)}},S("All Items","@@text_domain")))),-1!==a?wp.element.createElement($,null,wp.element.createElement("br",null),wp.element.createElement(R,{type:"number",min:t.min,max:t.max,step:t.step,value:a,onChange:function(e){return o(parseFloat(e))}})):"")}return e}));n(270),n(271);var T=n(82),M=n(81);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(r,e);var t,n,i,o=j(r);function r(){return P(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){return null}}])&&F(t.prototype,n),i&&F(t,i),r}(wp.element.Component),W=wp.element.RawHTML,H=window.VPGutenbergVariables.controls,V=Object.keys(H.layout.options).map((function(e){var t=H.layout.options[e];return{isDefault:H.layout.default===t.value,name:t.value,attributes:{layout:t.value},title:t.title,icon:t.icon?{foreground:"#2540CC",src:wp.element.createElement(W,null,t.icon)}:null}}))||[],U=wp.blocks.createBlock,G={from:[{type:"block",blocks:["core/gallery"],isMatch:function(e){return e&&e.images&&e.images.length},transform:function(e){var t=e.className,n=e.images.map((function(e){return{id:parseInt(e.id,10),imgUrl:e.fullUrl,imgThumbnailUrl:e.url,title:e.caption}}));return U("visual-portfolio/block",{content_source:"images",items_count:-1,layout:"masonry",items_style_fly__align:"bottom-center",masonry_columns:parseInt(e.columns,10)||3,items_click_action:"none"===e.linkTo?"false":"url",images:n,className:t})}},{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.className,n=e.postLayout,i=e.columns,o=void 0===i?3:i,r=e.postsToShow,s=void 0===r?6:r,a=e.displayPostContent,l=e.displayPostContentRadio,c=e.excerptLength,u=e.displayPostDate,h=e.orderBy,d=void 0===h?"date":h,p=e.order,f=void 0===p?"desc":p,g=e.categories;return U("visual-portfolio/block",{content_source:"post-based",posts_source:"post",posts_order_by:d,posts_order_direction:f,posts_taxonomies:!!g&&[g],items_count:s,layout:"grid",grid_columns:"grid"===n?o:1,items_style:"default",items_style_default__show_categories:!1,items_style_default__show_date:u?"true":"false",items_style_default__show_excerpt:a,items_style_default__excerpt_words_count:"full_post"===l?100:c,items_style_default__align:"left",items_style_default__show_read_more:a?"true":"false",className:t})}}]};function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=wp.i18n.__,Q=wp.blocks,J=Q.registerBlockType,Z=Q.getCategories,ee=T.name,te=Z().some((function(e){return"media"===e.slug}));J(ee,q(q({},T),{},{category:te?T.category:"common",title:X("Visual Portfolio","@@text_domain"),description:X("Display galleries, posts and portfolio grids.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement(i.a,{width:"20",height:"20"})},keywords:[X("gallery","@@text_domain"),X("images","@@text_domain"),X("vpf","@@text_domain")],ghostkit:{supports:{styles:!0,spacings:!0,display:!0,scrollReveal:!0}},variations:V,edit:M.a,save:z,transforms:G}));var ne=n(83),ie=n(46),oe=n(45);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?he(e):t}function he(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=wp.i18n.__,fe=wp.element,ge=fe.Component,me=fe.Fragment,ve=wp.components,be=ve.Placeholder,ye=ve.Spinner,we=ve.PanelBody,xe=ve.Button,Se=wp.data.withSelect,Ce=wp.blockEditor.InspectorControls,ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(s,e);var t,n,o,r=ce(s);function s(){var e;se(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).getSelector=e.getSelector.bind(he(e)),e}return t=s,(n=[{key:"getSelector",value:function(){var e=this.props,t=e.portfolioLayouts,n=e.setAttributes,i=e.attributes.id,o=!1,r=!1;return t?(o={"":pe("--- Select Layout ---","@@text_domain")},Object.keys(t).forEach((function(e){var n=t[e];o[" ".concat(n.id)]="".concat(n.title," (#").concat(n.id,")"),i&&parseInt(i,10)===n.id&&(r=n.edit_url)}))):i&&(o=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({}," ".concat(i),"#".concat(i))),wp.element.createElement(me,null,o?"":wp.element.createElement(ye,null),o&&Object.keys(o).length?wp.element.createElement("div",{className:"vpf-component-layout-select"},wp.element.createElement(oe.a,{value:i?" ".concat(i):"",onChange:function(e){return n({id:"".concat(parseInt(e,10))})},options:o}),r?wp.element.createElement(xe,{href:r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement("path",{d:"M16.0545 12.4545C15.9456 12.7013 15.9131 12.9751 15.9613 13.2405C16.0094 13.5059 16.1359 13.7508 16.3245 13.9436L16.3736 13.9927C16.5258 14.1447 16.6465 14.3252 16.7288 14.5238C16.8112 14.7225 16.8536 14.9354 16.8536 15.1505C16.8536 15.3655 16.8112 15.5784 16.7288 15.7771C16.6465 15.9757 16.5258 16.1562 16.3736 16.3082C16.2217 16.4603 16.0412 16.581 15.8425 16.6634C15.6439 16.7457 15.431 16.7881 15.2159 16.7881C15.0009 16.7881 14.7879 16.7457 14.5893 16.6634C14.3906 16.581 14.2102 16.4603 14.0582 16.3082L14.0091 16.2591C13.8163 16.0705 13.5714 15.9439 13.3059 15.8958C13.0405 15.8477 12.7668 15.8802 12.52 15.9891C12.278 16.0928 12.0716 16.265 11.9263 16.4845C11.7809 16.704 11.7029 16.9613 11.7018 17.2245V17.3636C11.7018 17.7976 11.5294 18.2138 11.2225 18.5207C10.9157 18.8276 10.4994 19 10.0655 19C9.63146 19 9.21525 18.8276 8.90837 18.5207C8.60149 18.2138 8.42909 17.7976 8.42909 17.3636V17.29C8.42276 17.0192 8.3351 16.7565 8.17751 16.5362C8.01992 16.3159 7.79969 16.1481 7.54545 16.0545C7.29868 15.9456 7.02493 15.9131 6.75952 15.9613C6.4941 16.0094 6.24919 16.1359 6.05636 16.3245L6.00727 16.3736C5.8553 16.5258 5.67483 16.6465 5.47617 16.7288C5.27752 16.8112 5.06459 16.8536 4.84955 16.8536C4.6345 16.8536 4.42157 16.8112 4.22292 16.7288C4.02426 16.6465 3.84379 16.5258 3.69182 16.3736C3.53967 16.2217 3.41898 16.0412 3.33663 15.8425C3.25428 15.6439 3.21189 15.431 3.21189 15.2159C3.21189 15.0009 3.25428 14.7879 3.33663 14.5893C3.41898 14.3906 3.53967 14.2102 3.69182 14.0582L3.74091 14.0091C3.92953 13.8163 4.05606 13.5714 4.10419 13.3059C4.15231 13.0405 4.11982 12.7668 4.01091 12.52C3.90719 12.278 3.73498 12.0716 3.51547 11.9263C3.29596 11.7809 3.03873 11.7029 2.77545 11.7018H2.63636C2.20237 11.7018 1.78616 11.5294 1.47928 11.2225C1.1724 10.9157 1 10.4994 1 10.0655C1 9.63146 1.1724 9.21525 1.47928 8.90837C1.78616 8.60149 2.20237 8.42909 2.63636 8.42909H2.71C2.98081 8.42276 3.24346 8.3351 3.46379 8.17751C3.68412 8.01992 3.85195 7.79969 3.94545 7.54545C4.05437 7.29868 4.08686 7.02493 4.03873 6.75952C3.99061 6.4941 3.86408 6.24919 3.67545 6.05636L3.62636 6.00727C3.47422 5.8553 3.35352 5.67483 3.27118 5.47617C3.18883 5.27752 3.14644 5.06459 3.14644 4.84955C3.14644 4.6345 3.18883 4.42157 3.27118 4.22292C3.35352 4.02426 3.47422 3.84379 3.62636 3.69182C3.77834 3.53967 3.95881 3.41898 4.15746 3.33663C4.35611 3.25428 4.56905 3.21189 4.78409 3.21189C4.99913 3.21189 5.21207 3.25428 5.41072 3.33663C5.60937 3.41898 5.78984 3.53967 5.94182 3.69182L5.99091 3.74091C6.18374 3.92953 6.42865 4.05606 6.69406 4.10419C6.95948 4.15231 7.23322 4.11982 7.48 4.01091H7.54545C7.78745 3.90719 7.99383 3.73498 8.1392 3.51547C8.28457 3.29596 8.36259 3.03873 8.36364 2.77545V2.63636C8.36364 2.20237 8.53604 1.78616 8.84292 1.47928C9.14979 1.1724 9.56601 1 10 1C10.434 1 10.8502 1.1724 11.1571 1.47928C11.464 1.78616 11.6364 2.20237 11.6364 2.63636V2.71C11.6374 2.97328 11.7154 3.23051 11.8608 3.45002C12.0062 3.66953 12.2126 3.84174 12.4545 3.94545C12.7013 4.05437 12.9751 4.08686 13.2405 4.03873C13.5059 3.99061 13.7508 3.86408 13.9436 3.67545L13.9927 3.62636C14.1447 3.47422 14.3252 3.35352 14.5238 3.27118C14.7225 3.18883 14.9354 3.14644 15.1505 3.14644C15.3655 3.14644 15.5784 3.18883 15.7771 3.27118C15.9757 3.35352 16.1562 3.47422 16.3082 3.62636C16.4603 3.77834 16.581 3.95881 16.6634 4.15746C16.7457 4.35611 16.7881 4.56905 16.7881 4.78409C16.7881 4.99913 16.7457 5.21207 16.6634 5.41072C16.581 5.60937 16.4603 5.78984 16.3082 5.94182L16.2591 5.99091C16.0705 6.18374 15.9439 6.42865 15.8958 6.69406C15.8477 6.95948 15.8802 7.23322 15.9891 7.48V7.54545C16.0928 7.78745 16.265 7.99383 16.4845 8.1392C16.704 8.28457 16.9613 8.36259 17.2245 8.36364H17.3636C17.7976 8.36364 18.2138 8.53604 18.5207 8.84292C18.8276 9.14979 19 9.56601 19 10C19 10.434 18.8276 10.8502 18.5207 11.1571C18.2138 11.464 17.7976 11.6364 17.3636 11.6364H17.29C17.0267 11.6374 16.7695 11.7154 16.55 11.8608C16.3305 12.0062 16.1583 12.2126 16.0545 12.4545V12.4545Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))):""):"",o&&!Object.keys(o).length?pe("No saved layouts found."):"")}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.clientId,o=this.props.className,r=t.id,s=t.ghostkitClassname;return s&&(o=w()(o,s)),wp.element.createElement(me,null,wp.element.createElement(Ce,null,wp.element.createElement(we,null,this.getSelector())),wp.element.createElement("div",{className:o},r?wp.element.createElement(ie.a,{attributes:{content_source:"saved",id:r},clientId:n}):wp.element.createElement(be,{className:"vpf-setup-wizard-saved",icon:wp.element.createElement(i.a,{width:"20",height:"20"}),label:pe("Saved Visual Portfolio","@@text_domain")},this.getSelector())))}}])&&ae(t.prototype,n),o&&ae(t,o),s}(ge),Ee=Se((function(e){return{portfolioLayouts:e("visual-portfolio").getPortfolioLayouts()}}))(ke);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Re(this,n)}}function Re(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(r,e);var t,n,i,o=Le(r);function r(){return _e(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){return null}}])&&Ae(t.prototype,n),i&&Ae(t,i),r}(wp.element.Component),Ie=wp.element.RawHTML,Pe=[{attributes:{id:{type:"string"}},ghostkit:{supports:{spacings:!0,display:!0,scrollReveal:!0}},supports:{anchor:!0,className:!0,html:!1,align:["wide","full"]},save:function(e){var t=e.attributes,n=t.id,i=t.className,o="[visual_portfolio";return n&&(o+=' id="'.concat(n,'"')),i&&(o+=' class="'.concat(i,'"')),o+="]",wp.element.createElement(Ie,null,o)}}];function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne=wp.i18n.__,Be=wp.blocks,ze=Be.registerBlockType,We=Be.getCategories,He=ne.name,Ve=We().some((function(e){return"media"===e.slug})),Ue=De(De({},ne),{},{category:Ve?ne.category:"common",title:Ne("Visual Portfolio Saved","@@text_domain"),description:Ne("Display saved Visual Portfolio layouts.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"9",y:"8",width:"5",height:"6"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"url(#paint0_linear)"})),wp.element.createElement("g",{mask:"url(#mask0)"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"currentColor"})),wp.element.createElement("path",{d:"M8.90795 14L6.9923 8.49994H8.76989L10.4948 14H8.90795Z",fill:"currentColor"}),wp.element.createElement("path",{d:"M19 16.2222C19 16.6937 18.8104 17.1459 18.4728 17.4793C18.1352 17.8127 17.6774 18 17.2 18H2.8C2.32261 18 1.86477 17.8127 1.52721 17.4793C1.18964 17.1459 1 16.6937 1 16.2222V3.77778C1 3.30628 1.18964 2.8541 1.52721 2.5207C1.86477 2.1873 2.32261 2 2.8 2H7.3L9.1 4.66667H17.2C17.6774 4.66667 18.1352 4.85397 18.4728 5.18737C18.8104 5.52076 19 5.97295 19 6.44444V16.2222Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"paint0_linear",x1:"12.191",y1:"8.49994",x2:"7.44436",y2:"15.1301",gradientUnits:"userSpaceOnUse"},wp.element.createElement("stop",null),wp.element.createElement("stop",{offset:"1",stopOpacity:"0"}))))},keywords:[Ne("saved","@@text_domain"),Ne("portfolio","@@text_domain"),Ne("vpf","@@text_domain")],ghostkit:{supports:{styles:!0,spacings:!0,display:!0,scrollReveal:!0}},edit:Ee,save:Me,transforms:{from:[{type:"shortcode",tag:"visual_portfolio",attributes:{id:{type:"string",shortcode:function(e){return e.named.id}},className:{type:"string",shortcode:function(e){return e.named.class}}}}]}});ze(He,Ue),ze("nk/visual-portfolio",De(De({},Ue),{},{name:"nk/visual-portfolio",supports:De(De({},Ue.supports),{},{inserter:!1}),deprecated:Pe})),(0,wp.blocks.registerBlockCollection)("visual-portfolio",{title:"Visual Portfolio",icon:wp.element.createElement(i.a,{width:"20",height:"20"})})}]);
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=269)}([function(e,t){e.exports=React},function(e,t,n){e.exports=n(85)()},function(e,t,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
39
  object-assign
40
  (c) Sindre Sorhus
41
  @license MIT
42
+ */var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var h=0;h<a.length;h++)r.call(n,a[h])&&(l[a[h]]=n[a[h]])}}return l}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,o,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var i=n(214),o=n(215);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=t.base?r[0]+t.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:m(d,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,g=0;function m(e,t){var n,i,o;if(t.singleton){var r=g++;n=f||(f=c(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=c(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=r}}}},function(e,t,n){"use strict";n.r(t);var i=n(79),o=n.n(i)()(!1);o.push([e.i,'.visual-portfolio-gutenberg-preview{position:relative;min-height:40px;overflow:hidden}.visual-portfolio-gutenberg-preview iframe{width:100%;max-width:none;margin:0}.visual-portfolio-gutenberg-preview-loading{min-height:150px}.visual-portfolio-gutenberg-preview-loading::after{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;background-color:rgba(139,139,150,0.1)}.visual-portfolio-gutenberg-preview-loading iframe{opacity:0}.visual-portfolio-gutenberg-preview-loading>.visual-portfolio-gutenberg-preview-inner{position:absolute}.visual-portfolio-gutenberg-preview-loading>.components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translateX(-50%) translateY(-50%);z-index:10}\n',""]),t.default=o},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.changed-attributes","vpf/editor/changed-attributes/live-reload",(function(e){if(!e.$framePortfolio)return e;var t=!1;return Object.keys(e.attributes).forEach((function(n){var i=e.attributes[n];switch(n){case"tiles_type":case"masonry_columns":case"masonry_images_aspect_ratio":case"grid_columns":case"grid_images_aspect_ratio":case"justified_row_height":case"justified_row_height_tolerance":case"slider_effect":case"slider_speed":case"slider_autoplay":case"slider_autoplay_hover_pause":case"slider_centered_slides":case"slider_loop":case"slider_free_mode":case"slider_free_mode_sticky":case"slider_bullets_dynamic":case"items_gap":case"items_gap_vertical":e.$framePortfolio.attr("data-vp-".concat(n.replace(/_/g,"-")),i),e.$framePortfolio.vpf("init");break;case"items_style_default__align":case"items_style_fade__align":case"items_style_fly__align":case"items_style_emerge__align":var o="";["left","center","right","top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"].forEach((function(e){o+="".concat(o?" ":"","vp-portfolio__item-align-").concat(e)})),e.$framePortfolio.find(".vp-portfolio__item-overlay").removeClass(o).addClass("vp-portfolio__item-align-".concat(i));break;case"filter_align":e.$framePortfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(i));break;case"sort_align":e.$framePortfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(i));break;case"pagination_align":e.$framePortfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(i));break;case"list_name":case"stretch":case"custom_css":break;default:t=t||e.reload}})),i(i({},e),{},{reload:t})}))},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"getPortfolioLayouts",(function(){return l}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return c})),n.d(o,"setPortfolioLayouts",(function(){return u}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return d}));var s={};n.r(s),n.d(s,"getPortfolioLayouts",(function(){return f}));var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PORTFOLIO_LAYOUTS":return!e.layouts.length&&t.layouts&&t.layouts.length&&(e.layouts=t.layouts),e}return e};function l(e){return e.layouts}function c(e){return{type:"API_FETCH",request:e}}function u(e){return{type:"SET_PORTFOLIO_LAYOUTS",layouts:e}}var h=wp.apiFetch;function d(e){var t=e.request;return h(t).catch((function(e){return!(!e||!e.error||"no_layouts_found"!==e.error_code)&&{response:[],error:!1,success:!0}})).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}var p=regeneratorRuntime.mark(f);function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/visual-portfolio/v1/get_layouts/",t.next=3,c({path:"/visual-portfolio/v1/get_layouts/"});case 3:return e=t.sent,t.abrupt("return",u(e));case 5:case"end":return t.stop()}}),p)}(0,wp.data.registerStore)("visual-portfolio",{reducer:a,selectors:i,actions:o,controls:r,resolvers:s})},function(e,t,n){e.exports=n(270)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(275)},function(e,t){function n(e){var t=0;if(0==e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}function i(e,t){t=t||62;var n,i=[],o="",r=e<0?"-":"";function s(e){return"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]}for(e=Math.abs(e);e>=t;)n=e%t,e=Math.floor(e/t),i.push(s(n));e>0&&i.push(s(e));for(var a=i.length-1;a>=0;a--)o+=i[a];return r+o}t.bitwise=n,t.binaryTransfer=i,t.unique=function(e){return i(n(e),61).replace("-","Z")},t.random=function(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",i=e||8,o=0;o<i;o++){var r=Math.floor(Math.random()*t.length);n+=t.substring(r,r+1)}return n}},function(e,t){(0,wp.hooks.addFilter)("vpf.editor.controls-on-change","vpf/editor/controls-on-change/classic-icon-with-overlay",(function(e,t,n,i){return"items_style_default__show_icon"===t.name&&n&&!i.items_style_default__bg_color&&(e.items_style_default__bg_color="#000",e.items_style_default__text_color="#fff"),e}))},function(e,t){var n=wp.hooks.addFilter;n("vpf.editor.controls-on-change","vpf/editor/controls-on-change/link-rel",(function(e,t,n,i){return"items_click_action_url_target"===t.name&&("_blank"!==n||i.items_click_action_url_rel||(e.items_click_action_url_rel="noopener noreferrer"),"_blank"!==n&&"noopener noreferrer"===i.items_click_action_url_rel&&(e.items_click_action_url_rel="")),e}))},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.controls-render-data","vpf/editor/controls-render-data/customize-controls",(function(e){return"stretch"!==e.name||window.VPSavedLayoutVariables||(e=i(i({},e),{},{skip:!0})),e}))},,function(e,t,n){"use strict";n.r(t);var i=n(17),o=(n(217),n(218)),r=n.n(o);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=wp.hooks.addFilter,g=wp.element.Component,m=wp.compose.createHigherOrderComponent,v=wp.data.withSelect,b={};f("editor.BlockEdit","vpf/editor/unique-block-id",m((function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,t);var n,i,o,s=u(h);function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=(e=s.call.apply(s,[this].concat(n))).props,r=o.attributes,l=o.clientId;return l&&r.block_id&&void 0===b[r.block_id]&&(b[r.block_id]=l),e.maybeCreateBlockId=e.maybeCreateBlockId.bind(d(e)),e}return n=h,(i=[{key:"componentDidMount",value:function(){this.maybeCreateBlockId()}},{key:"componentDidUpdate",value:function(){this.maybeCreateBlockId()}},{key:"maybeCreateBlockId",value:function(){if("visual-portfolio/block"===this.props.blockName){var e=this.props,t=e.setAttributes,n=e.attributes,i=e.clientId,o=n.block_id;if(!o||b[o]!==i){for(var s="",a=10;!s||void 0!==b[s]&&b[s]!==i&&0<a;)s=r.a.unique(i),a-=1;s&&void 0===b[s]&&(b[s]=i),s!==o&&t({block_id:s})}}}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&l(n.prototype,i),o&&l(n,o),h}(g);return v((function(e,t){return{blockName:t.name}}))(t)}),"withUniqueBlockId"));n(271);var y=n(2),w=n.n(y),x=n(18),S=wp.i18n.__,C=wp.hooks.addFilter,k=wp.element,E=k.RawHTML,$=k.Fragment,_=wp.components,A=_.BaseControl,O=_.ButtonGroup,L=_.Button,R=_.TextControl;C("vpf.editor.controls-render","vpf/editor/controls-render/customize-controls",(function(e,t){if("items_count"===t.name){var n=t.description,i=t.attributes,o=t.onChange,r=!!n&&wp.element.createElement(E,null,n),s=w()("vpf-control-wrap","vpf-control-wrap-".concat(t.type)),a=parseInt(Object(x.a)(t.name,i),10);e=wp.element.createElement(A,{label:t.label,help:r,className:s},wp.element.createElement("div",null,wp.element.createElement(O,null,wp.element.createElement(L,{isSmall:!0,isPrimary:-1!==a,isPressed:-1!==a,onClick:function(){-1===a&&o(parseFloat(t.default||6))}},S("Custom Count","@@text_domain")),wp.element.createElement(L,{isSmall:!0,isPrimary:-1===a,isPressed:-1===a,onClick:function(){-1!==a&&window.confirm(S("Be careful, the output of all your items can adversely affect the performance of your site, this option may be helpful for image galleries.","@@text_domain"))&&o(-1)}},S("All Items","@@text_domain")))),-1!==a?wp.element.createElement($,null,wp.element.createElement("br",null),wp.element.createElement(R,{type:"number",min:t.min,max:t.max,step:t.step,value:a,onChange:function(e){return o(parseFloat(e))}})):"")}return e}));n(272),n(273);var T=n(82),M=n(81);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(r,e);var t,n,i,o=j(r);function r(){return P(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){return null}}])&&F(t.prototype,n),i&&F(t,i),r}(wp.element.Component),W=wp.element.RawHTML,H=window.VPGutenbergVariables.controls,V=Object.keys(H.layout.options).map((function(e){var t=H.layout.options[e];return{isDefault:H.layout.default===t.value,name:t.value,attributes:{layout:t.value},title:t.title,icon:t.icon?{foreground:"#2540CC",src:wp.element.createElement(W,null,t.icon)}:null}}))||[],U=wp.blocks.createBlock,G={from:[{type:"block",blocks:["core/gallery"],isMatch:function(e){return e&&e.images&&e.images.length},transform:function(e){var t=e.className,n=e.images.map((function(e){return{id:parseInt(e.id,10),imgUrl:e.fullUrl,imgThumbnailUrl:e.url,title:e.caption}}));return U("visual-portfolio/block",{content_source:"images",items_count:-1,layout:"masonry",items_style_fly__align:"bottom-center",masonry_columns:parseInt(e.columns,10)||3,items_click_action:"none"===e.linkTo?"false":"url",images:n,className:t})}},{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.className,n=e.postLayout,i=e.columns,o=void 0===i?3:i,r=e.postsToShow,s=void 0===r?6:r,a=e.displayPostContent,l=e.displayPostContentRadio,c=e.excerptLength,u=e.displayPostDate,h=e.orderBy,d=void 0===h?"date":h,p=e.order,f=void 0===p?"desc":p,g=e.categories;return U("visual-portfolio/block",{content_source:"post-based",posts_source:"post",posts_order_by:d,posts_order_direction:f,posts_taxonomies:!!g&&[g],items_count:s,layout:"grid",grid_columns:"grid"===n?o:1,items_style:"default",items_style_default__show_categories:!1,items_style_default__show_date:u?"true":"false",items_style_default__show_excerpt:a,items_style_default__excerpt_words_count:"full_post"===l?100:c,items_style_default__align:"left",items_style_default__show_read_more:a?"true":"false",className:t})}}]};function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=wp.i18n.__,Q=wp.blocks,J=Q.registerBlockType,Z=Q.getCategories,ee=T.name,te=Z().some((function(e){return"media"===e.slug}));J(ee,q(q({},T),{},{category:te?T.category:"common",title:X("Visual Portfolio","@@text_domain"),description:X("Display galleries, posts and portfolio grids.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement(i.a,{width:"20",height:"20"})},keywords:[X("gallery","@@text_domain"),X("images","@@text_domain"),X("vpf","@@text_domain")],ghostkit:{supports:{styles:!0,spacings:!0,display:!0,scrollReveal:!0}},variations:V,edit:M.a,save:z,transforms:G}));var ne=n(83),ie=n(46),oe=n(45);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?he(e):t}function he(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=wp.i18n.__,fe=wp.element,ge=fe.Component,me=fe.Fragment,ve=wp.components,be=ve.Placeholder,ye=ve.Spinner,we=ve.PanelBody,xe=ve.Button,Se=wp.data.withSelect,Ce=wp.blockEditor.InspectorControls,ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(s,e);var t,n,o,r=ce(s);function s(){var e;se(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).getSelector=e.getSelector.bind(he(e)),e}return t=s,(n=[{key:"getSelector",value:function(){var e=this.props,t=e.portfolioLayouts,n=e.setAttributes,i=e.attributes.id,o=!1,r=!1;return t?(o={"":pe("--- Select Layout ---","@@text_domain")},Object.keys(t).forEach((function(e){var n=t[e];o[" ".concat(n.id)]="".concat(n.title," (#").concat(n.id,")"),i&&parseInt(i,10)===n.id&&(r=n.edit_url)}))):i&&(o=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({}," ".concat(i),"#".concat(i))),wp.element.createElement(me,null,o?"":wp.element.createElement(ye,null),o&&Object.keys(o).length?wp.element.createElement("div",{className:"vpf-component-layout-select"},wp.element.createElement(oe.a,{value:i?" ".concat(i):"",onChange:function(e){return n({id:"".concat(parseInt(e,10))})},options:o}),r?wp.element.createElement(xe,{href:r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement("path",{d:"M16.0545 12.4545C15.9456 12.7013 15.9131 12.9751 15.9613 13.2405C16.0094 13.5059 16.1359 13.7508 16.3245 13.9436L16.3736 13.9927C16.5258 14.1447 16.6465 14.3252 16.7288 14.5238C16.8112 14.7225 16.8536 14.9354 16.8536 15.1505C16.8536 15.3655 16.8112 15.5784 16.7288 15.7771C16.6465 15.9757 16.5258 16.1562 16.3736 16.3082C16.2217 16.4603 16.0412 16.581 15.8425 16.6634C15.6439 16.7457 15.431 16.7881 15.2159 16.7881C15.0009 16.7881 14.7879 16.7457 14.5893 16.6634C14.3906 16.581 14.2102 16.4603 14.0582 16.3082L14.0091 16.2591C13.8163 16.0705 13.5714 15.9439 13.3059 15.8958C13.0405 15.8477 12.7668 15.8802 12.52 15.9891C12.278 16.0928 12.0716 16.265 11.9263 16.4845C11.7809 16.704 11.7029 16.9613 11.7018 17.2245V17.3636C11.7018 17.7976 11.5294 18.2138 11.2225 18.5207C10.9157 18.8276 10.4994 19 10.0655 19C9.63146 19 9.21525 18.8276 8.90837 18.5207C8.60149 18.2138 8.42909 17.7976 8.42909 17.3636V17.29C8.42276 17.0192 8.3351 16.7565 8.17751 16.5362C8.01992 16.3159 7.79969 16.1481 7.54545 16.0545C7.29868 15.9456 7.02493 15.9131 6.75952 15.9613C6.4941 16.0094 6.24919 16.1359 6.05636 16.3245L6.00727 16.3736C5.8553 16.5258 5.67483 16.6465 5.47617 16.7288C5.27752 16.8112 5.06459 16.8536 4.84955 16.8536C4.6345 16.8536 4.42157 16.8112 4.22292 16.7288C4.02426 16.6465 3.84379 16.5258 3.69182 16.3736C3.53967 16.2217 3.41898 16.0412 3.33663 15.8425C3.25428 15.6439 3.21189 15.431 3.21189 15.2159C3.21189 15.0009 3.25428 14.7879 3.33663 14.5893C3.41898 14.3906 3.53967 14.2102 3.69182 14.0582L3.74091 14.0091C3.92953 13.8163 4.05606 13.5714 4.10419 13.3059C4.15231 13.0405 4.11982 12.7668 4.01091 12.52C3.90719 12.278 3.73498 12.0716 3.51547 11.9263C3.29596 11.7809 3.03873 11.7029 2.77545 11.7018H2.63636C2.20237 11.7018 1.78616 11.5294 1.47928 11.2225C1.1724 10.9157 1 10.4994 1 10.0655C1 9.63146 1.1724 9.21525 1.47928 8.90837C1.78616 8.60149 2.20237 8.42909 2.63636 8.42909H2.71C2.98081 8.42276 3.24346 8.3351 3.46379 8.17751C3.68412 8.01992 3.85195 7.79969 3.94545 7.54545C4.05437 7.29868 4.08686 7.02493 4.03873 6.75952C3.99061 6.4941 3.86408 6.24919 3.67545 6.05636L3.62636 6.00727C3.47422 5.8553 3.35352 5.67483 3.27118 5.47617C3.18883 5.27752 3.14644 5.06459 3.14644 4.84955C3.14644 4.6345 3.18883 4.42157 3.27118 4.22292C3.35352 4.02426 3.47422 3.84379 3.62636 3.69182C3.77834 3.53967 3.95881 3.41898 4.15746 3.33663C4.35611 3.25428 4.56905 3.21189 4.78409 3.21189C4.99913 3.21189 5.21207 3.25428 5.41072 3.33663C5.60937 3.41898 5.78984 3.53967 5.94182 3.69182L5.99091 3.74091C6.18374 3.92953 6.42865 4.05606 6.69406 4.10419C6.95948 4.15231 7.23322 4.11982 7.48 4.01091H7.54545C7.78745 3.90719 7.99383 3.73498 8.1392 3.51547C8.28457 3.29596 8.36259 3.03873 8.36364 2.77545V2.63636C8.36364 2.20237 8.53604 1.78616 8.84292 1.47928C9.14979 1.1724 9.56601 1 10 1C10.434 1 10.8502 1.1724 11.1571 1.47928C11.464 1.78616 11.6364 2.20237 11.6364 2.63636V2.71C11.6374 2.97328 11.7154 3.23051 11.8608 3.45002C12.0062 3.66953 12.2126 3.84174 12.4545 3.94545C12.7013 4.05437 12.9751 4.08686 13.2405 4.03873C13.5059 3.99061 13.7508 3.86408 13.9436 3.67545L13.9927 3.62636C14.1447 3.47422 14.3252 3.35352 14.5238 3.27118C14.7225 3.18883 14.9354 3.14644 15.1505 3.14644C15.3655 3.14644 15.5784 3.18883 15.7771 3.27118C15.9757 3.35352 16.1562 3.47422 16.3082 3.62636C16.4603 3.77834 16.581 3.95881 16.6634 4.15746C16.7457 4.35611 16.7881 4.56905 16.7881 4.78409C16.7881 4.99913 16.7457 5.21207 16.6634 5.41072C16.581 5.60937 16.4603 5.78984 16.3082 5.94182L16.2591 5.99091C16.0705 6.18374 15.9439 6.42865 15.8958 6.69406C15.8477 6.95948 15.8802 7.23322 15.9891 7.48V7.54545C16.0928 7.78745 16.265 7.99383 16.4845 8.1392C16.704 8.28457 16.9613 8.36259 17.2245 8.36364H17.3636C17.7976 8.36364 18.2138 8.53604 18.5207 8.84292C18.8276 9.14979 19 9.56601 19 10C19 10.434 18.8276 10.8502 18.5207 11.1571C18.2138 11.464 17.7976 11.6364 17.3636 11.6364H17.29C17.0267 11.6374 16.7695 11.7154 16.55 11.8608C16.3305 12.0062 16.1583 12.2126 16.0545 12.4545V12.4545Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))):""):"",o&&!Object.keys(o).length?pe("No saved layouts found."):"")}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.clientId,o=this.props.className,r=t.id,s=t.ghostkitClassname;return s&&(o=w()(o,s)),wp.element.createElement(me,null,wp.element.createElement(Ce,null,wp.element.createElement(we,null,this.getSelector())),wp.element.createElement("div",{className:o},r?wp.element.createElement(ie.a,{attributes:{content_source:"saved",id:r},clientId:n}):wp.element.createElement(be,{className:"vpf-setup-wizard-saved",icon:wp.element.createElement(i.a,{width:"20",height:"20"}),label:pe("Saved Visual Portfolio","@@text_domain")},this.getSelector())))}}])&&ae(t.prototype,n),o&&ae(t,o),s}(ge),Ee=Se((function(e){return{portfolioLayouts:e("visual-portfolio").getPortfolioLayouts()}}))(ke);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Re(this,n)}}function Re(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(r,e);var t,n,i,o=Le(r);function r(){return _e(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){return null}}])&&Ae(t.prototype,n),i&&Ae(t,i),r}(wp.element.Component),Ie=wp.element.RawHTML,Pe=[{attributes:{id:{type:"string"}},ghostkit:{supports:{spacings:!0,display:!0,scrollReveal:!0}},supports:{anchor:!0,className:!0,html:!1,align:["wide","full"]},save:function(e){var t=e.attributes,n=t.id,i=t.className,o="[visual_portfolio";return n&&(o+=' id="'.concat(n,'"')),i&&(o+=' class="'.concat(i,'"')),o+="]",wp.element.createElement(Ie,null,o)}}];function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne=wp.i18n.__,Be=wp.blocks,ze=Be.registerBlockType,We=Be.getCategories,He=ne.name,Ve=We().some((function(e){return"media"===e.slug})),Ue=De(De({},ne),{},{category:Ve?ne.category:"common",title:Ne("Visual Portfolio Saved","@@text_domain"),description:Ne("Display saved Visual Portfolio layouts.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"9",y:"8",width:"5",height:"6"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"url(#paint0_linear)"})),wp.element.createElement("g",{mask:"url(#mask0)"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"currentColor"})),wp.element.createElement("path",{d:"M8.90795 14L6.9923 8.49994H8.76989L10.4948 14H8.90795Z",fill:"currentColor"}),wp.element.createElement("path",{d:"M19 16.2222C19 16.6937 18.8104 17.1459 18.4728 17.4793C18.1352 17.8127 17.6774 18 17.2 18H2.8C2.32261 18 1.86477 17.8127 1.52721 17.4793C1.18964 17.1459 1 16.6937 1 16.2222V3.77778C1 3.30628 1.18964 2.8541 1.52721 2.5207C1.86477 2.1873 2.32261 2 2.8 2H7.3L9.1 4.66667H17.2C17.6774 4.66667 18.1352 4.85397 18.4728 5.18737C18.8104 5.52076 19 5.97295 19 6.44444V16.2222Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"paint0_linear",x1:"12.191",y1:"8.49994",x2:"7.44436",y2:"15.1301",gradientUnits:"userSpaceOnUse"},wp.element.createElement("stop",null),wp.element.createElement("stop",{offset:"1",stopOpacity:"0"}))))},keywords:[Ne("saved","@@text_domain"),Ne("portfolio","@@text_domain"),Ne("vpf","@@text_domain")],ghostkit:{supports:{styles:!0,spacings:!0,display:!0,scrollReveal:!0}},edit:Ee,save:Me,transforms:{from:[{type:"shortcode",tag:"visual_portfolio",attributes:{id:{type:"string",shortcode:function(e){return e.named.id}},className:{type:"string",shortcode:function(e){return e.named.class}}}}]}});ze(He,Ue),ze("nk/visual-portfolio",De(De({},Ue),{},{name:"nk/visual-portfolio",supports:De(De({},Ue.supports),{},{inserter:!1}),deprecated:Pe})),(0,wp.blocks.registerBlockCollection)("visual-portfolio",{title:"Visual Portfolio",icon:wp.element.createElement(i.a,{width:"20",height:"20"})})}]);
gutenberg/layouts-editor.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=272)}([function(e,t){e.exports=React},function(e,t,n){e.exports=n(85)()},function(e,t,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
@@ -39,4 +39,4 @@ function so(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try
39
  object-assign
40
  (c) Sindre Sorhus
41
  @license MIT
42
- */var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var h=0;h<a.length;h++)r.call(n,a[h])&&(l[a[h]]=n[a[h]])}}return l}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,o,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var i=n(214),o=n(215);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=t.base?r[0]+t.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:m(d,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,g=0;function m(e,t){var n,i,o;if(t.singleton){var r=g++;n=f||(f=c(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=c(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=r}}}},function(e,t,n){"use strict";n.r(t);var i=n(79),o=n.n(i)()(!1);o.push([e.i,'.visual-portfolio-gutenberg-preview{position:relative;min-height:40px;overflow:hidden}.visual-portfolio-gutenberg-preview iframe{width:100%;max-width:none;margin:0}.visual-portfolio-gutenberg-preview-loading{min-height:150px}.visual-portfolio-gutenberg-preview-loading::after{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;background-color:rgba(139,139,150,0.1)}.visual-portfolio-gutenberg-preview-loading iframe{opacity:0}.visual-portfolio-gutenberg-preview-loading>.visual-portfolio-gutenberg-preview-inner{position:absolute}.visual-portfolio-gutenberg-preview-loading>.components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translateX(-50%) translateY(-50%);z-index:10}\n',""]),t.default=o},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.changed-attributes","vpf/editor/changed-attributes/live-reload",(function(e){if(!e.$framePortfolio)return e;var t=!1;return Object.keys(e.attributes).forEach((function(n){var i=e.attributes[n];switch(n){case"tiles_type":case"masonry_columns":case"masonry_images_aspect_ratio":case"grid_columns":case"grid_images_aspect_ratio":case"justified_row_height":case"justified_row_height_tolerance":case"slider_effect":case"slider_speed":case"slider_autoplay":case"slider_autoplay_hover_pause":case"slider_centered_slides":case"slider_loop":case"slider_free_mode":case"slider_free_mode_sticky":case"slider_bullets_dynamic":case"items_gap":case"items_gap_vertical":e.$framePortfolio.attr("data-vp-".concat(n.replace(/_/g,"-")),i),e.$framePortfolio.vpf("init");break;case"items_style_default__align":case"items_style_fade__align":case"items_style_fly__align":case"items_style_emerge__align":var o="";["left","center","right","top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"].forEach((function(e){o+="".concat(o?" ":"","vp-portfolio__item-align-").concat(e)})),e.$framePortfolio.find(".vp-portfolio__item-overlay").removeClass(o).addClass("vp-portfolio__item-align-".concat(i));break;case"filter_align":e.$framePortfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(i));break;case"sort_align":e.$framePortfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(i));break;case"pagination_align":e.$framePortfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(i));break;case"list_name":case"stretch":case"custom_css":break;default:t=t||e.reload}})),i(i({},e),{},{reload:t})}))},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"getPortfolioLayouts",(function(){return l}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return c})),n.d(o,"setPortfolioLayouts",(function(){return u}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return d}));var s={};n.r(s),n.d(s,"getPortfolioLayouts",(function(){return f}));var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PORTFOLIO_LAYOUTS":return!e.layouts.length&&t.layouts&&t.layouts.length&&(e.layouts=t.layouts),e}return e};function l(e){return e.layouts}function c(e){return{type:"API_FETCH",request:e}}function u(e){return{type:"SET_PORTFOLIO_LAYOUTS",layouts:e}}var h=wp.apiFetch;function d(e){var t=e.request;return h(t).catch((function(e){return!(!e||!e.error||"no_layouts_found"!==e.error_code)&&{response:[],error:!1,success:!0}})).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}var p=regeneratorRuntime.mark(f);function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/visual-portfolio/v1/get_layouts/",t.next=3,c({path:"/visual-portfolio/v1/get_layouts/"});case 3:return e=t.sent,t.abrupt("return",u(e));case 5:case"end":return t.stop()}}),p)}(0,wp.data.registerStore)("visual-portfolio",{reducer:a,selectors:i,actions:o,controls:r,resolvers:s})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(274)},,function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"getBlockData",(function(){return d}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return p})),n.d(o,"setBlockData",(function(){return f})),n.d(o,"updateBlockData",(function(){return g}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return v}));n(217);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=window.VPSavedLayoutVariables;var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:c.data},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_BLOCK_DATA":if(t.data)return e?a(a({},e),{},{data:t.data}):t;break;case"UPDATE_BLOCK_DATA":if(t.data&&e)return a(a({},e),{},{data:a(a({},e.data),t.data)})}return e},h=window.VPSavedLayoutVariables;function d(e){return e.data||h.data}function p(e){return{type:"API_FETCH",request:e}}function f(e){return{type:"SET_BLOCK_DATA",data:e}}function g(e){return{type:"UPDATE_BLOCK_DATA",data:e}}var m=wp.apiFetch;function v(e){var t=e.request;return m(t).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}(0,wp.data.registerStore)("visual-portfolio/saved-layout-data",{reducer:u,selectors:i,actions:o,controls:r});var b=n(81);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=window.jQuery,T=wp.blocks,M=T.registerBlockType,I=T.createBlock,P=wp.plugins.registerPlugin,F=wp.i18n.__,D=wp.apiFetch,j=wp.element,N=j.Fragment,B=j.Component,z=wp.components.PanelBody,W=wp.data,H=W.withSelect,V=W.withDispatch,U=wp.blockEditor.InspectorControls,G=wp.compose.compose,K=function(e){$(n,e);var t=A(n);function n(){return C(this,n),t.apply(this,arguments)}return E(n,[{key:"onShortcodeClick",value:function(e){window.getSelection().selectAllChildren(e.target)}},{key:"onShortcodeCopy",value:function(e){var t=window.getSelection().toString().replace(/[\n\r]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.postId,n=e.blockData,i=e.updateBlockData,o=e.clientId;return wp.element.createElement(N,null,wp.element.createElement(U,null,wp.element.createElement(z,{title:F("Shortcodes","@@text_domain")},wp.element.createElement("p",null,F("To output this saved layout and its components you can use the following shortcodes:")),wp.element.createElement("p",null,F("Layout:","@@text_domain"),wp.element.createElement("br",null),wp.element.createElement("code",{role:"button",tabIndex:"0","aria-hidden":"true",onClick:this.onShortcodeClick,onCopy:this.onShortcodeCopy,onCut:this.onShortcodeCopy},'[visual_portfolio id="',t,'"]')),wp.element.createElement("p",null,F("Filter (optional):","@@text_domain"),wp.element.createElement("br",null),wp.element.createElement("code",{role:"button",tabIndex:"0","aria-hidden":"true",onClick:this.onShortcodeClick,onCopy:this.onShortcodeCopy,onCut:this.onShortcodeCopy},'[visual_portfolio_filter id="',t,'"]')),wp.element.createElement("p",null,F("Sort (optional):","@@text_domain"),wp.element.createElement("br",null),wp.element.createElement("code",{role:"button",tabIndex:"0","aria-hidden":"true",onClick:this.onShortcodeClick,onCopy:this.onShortcodeCopy,onCut:this.onShortcodeCopy},'[visual_portfolio_sort id="',t,'"]')))),wp.element.createElement(b.a,{attributes:x(x({},n),{},{block_id:n.id||o}),setAttributes:function(e){i(e)},clientId:o}))}}]),n}(B),q=G([H((function(e){var t=e("visual-portfolio/saved-layout-data").getBlockData();return{postId:e("core/editor").getCurrentPostId(),blockData:t}})),V((function(e){return{updateBlockData:function(t){e("visual-portfolio/saved-layout-data").updateBlockData(t)}}}))])(K);M("visual-portfolio/saved-editor",{title:F("Visual Portfolio Editor","@@text_domain"),description:F("Edit saved Visual Portfolio layouts.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"9",y:"8",width:"5",height:"6"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"url(#paint0_linear)"})),wp.element.createElement("g",{mask:"url(#mask0)"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"currentColor"})),wp.element.createElement("path",{d:"M8.90795 14L6.9923 8.49994H8.76989L10.4948 14H8.90795Z",fill:"currentColor"}),wp.element.createElement("path",{d:"M19 16.2222C19 16.6937 18.8104 17.1459 18.4728 17.4793C18.1352 17.8127 17.6774 18 17.2 18H2.8C2.32261 18 1.86477 17.8127 1.52721 17.4793C1.18964 17.1459 1 16.6937 1 16.2222V3.77778C1 3.30628 1.18964 2.8541 1.52721 2.5207C1.86477 2.1873 2.32261 2 2.8 2H7.3L9.1 4.66667H17.2C17.6774 4.66667 18.1352 4.85397 18.4728 5.18737C18.8104 5.52076 19 5.97295 19 6.44444V16.2222Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"paint0_linear",x1:"12.191",y1:"8.49994",x2:"7.44436",y2:"15.1301",gradientUnits:"userSpaceOnUse"},wp.element.createElement("stop",null),wp.element.createElement("stop",{offset:"1",stopOpacity:"0"}))))},category:"common",supports:{html:!1,className:!1,customClassName:!1,anchor:!1,inserter:!1},edit:q,save:function(){return null}});var Y=function(e){$(n,e);var t=A(n);function n(){return C(this,n),t.apply(this,arguments)}return E(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isSavingPost,n=e.isAutosavingPost;this.defaultBlockData=!1,this.editorRefreshTimeout=!1,this.wasSavingPost=t,this.wasAutosavingPost=n,this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){this.changeToVisualMode(),this.addBlock(),this.alwaysSelectBlock(),this.checkIfPostEdited(),this.saveMetaOnPostUpdate()}},{key:"changeToVisualMode",value:function(){var e=this.props,t=e.editorSettings,n=e.editorMode,i=e.switchEditorMode;t.richEditingEnabled&&"text"===n&&i()}},{key:"addBlock",value:function(){if(!this.blocksRestoreBusy){var e=this.props,t=e.resetBlocks,n=e.insertBlocks,i=e.blocks;1===i.length&&i[0]&&"visual-portfolio/saved-editor"===i[0].name||(this.blocksRestoreBusy=!0,t([]),n(I("visual-portfolio/saved-editor")),this.blocksRestoreBusy=!1)}}},{key:"alwaysSelectBlock",value:function(){var e=this.props,t=e.selectedBlock,n=e.blocks,i=e.selectBlock;if(!(t&&"visual-portfolio/saved-editor"===t.name||R(".editor-post-title__block.is-selected").length)){var o="";n.forEach((function(e){"visual-portfolio/saved-editor"===e.name&&(o=e.clientId)})),o&&i(o)}}},{key:"checkIfPostEdited",value:function(){var e=this,t=this.props,n=t.isSavingPost,i=t.isAutosavingPost,o=t.blockData,r=t.editPost;o&&Object.keys(o).length&&(n||i||!this.defaultBlockData?this.defaultBlockData=JSON.stringify(o):(clearTimeout(this.editorRefreshTimeout),this.editorRefreshTimeout=setTimeout((function(){e.defaultBlockData!==JSON.stringify(o)&&r({edited:new Date})}),150)))}},{key:"saveMetaOnPostUpdate",value:function(){var e=this.props,t=e.isSavingPost,n=e.isAutosavingPost,i=e.postId,o=e.blockData,r=this.wasSavingPost&&!t&&!this.wasAutosavingPost;if(this.wasSavingPost=t,this.wasAutosavingPost=n,r){var s={};Object.keys(o).forEach((function(e){s["vp_".concat(e)]=o[e]})),D({path:"/visual-portfolio/v1/update_layout/",method:"POST",data:{data:s,post_id:i}}).catch((function(e){console.log(e)}))}}},{key:"render",value:function(){return null}}]),n}(B);P("vpf-saved-layouts-editor",{render:G(H((function(e){var t=e("core/editor"),n=t.isSavingPost,i=t.isAutosavingPost,o=t.getCurrentPostId,r=t.getEditorSettings,s=e("core/block-editor"),a=s.getSelectedBlock,l=s.getBlocks,c=e("core/edit-post").getEditorMode,u=e("visual-portfolio/saved-layout-data").getBlockData;return{isSavingPost:n(),isAutosavingPost:i(),selectedBlock:a(),editorSettings:r(),editorMode:c(),blocks:l(),postId:o(),blockData:u()}})),V((function(e){var t=e("core/block-editor");return{selectBlock:t.selectBlock,insertBlocks:t.insertBlocks,resetBlocks:t.resetBlocks,editPost:e("core/editor").editPost,switchEditorMode:e("core/edit-post").switchEditorMode}})))(Y)})}]);
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=274)}([function(e,t){e.exports=React},function(e,t,n){e.exports=n(85)()},function(e,t,n){var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
39
  object-assign
40
  (c) Sindre Sorhus
41
  @license MIT
42
+ */var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var h=0;h<a.length;h++)r.call(n,a[h])&&(l[a[h]]=n[a[h]])}}return l}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,o,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var i=n(214),o=n(215);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=t.base?r[0]+t.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:m(d,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,g=0;function m(e,t){var n,i,o;if(t.singleton){var r=g++;n=f||(f=c(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=c(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=r}}}},function(e,t,n){"use strict";n.r(t);var i=n(79),o=n.n(i)()(!1);o.push([e.i,'.visual-portfolio-gutenberg-preview{position:relative;min-height:40px;overflow:hidden}.visual-portfolio-gutenberg-preview iframe{width:100%;max-width:none;margin:0}.visual-portfolio-gutenberg-preview-loading{min-height:150px}.visual-portfolio-gutenberg-preview-loading::after{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;background-color:rgba(139,139,150,0.1)}.visual-portfolio-gutenberg-preview-loading iframe{opacity:0}.visual-portfolio-gutenberg-preview-loading>.visual-portfolio-gutenberg-preview-inner{position:absolute}.visual-portfolio-gutenberg-preview-loading>.components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translateX(-50%) translateY(-50%);z-index:10}\n',""]),t.default=o},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.changed-attributes","vpf/editor/changed-attributes/live-reload",(function(e){if(!e.$framePortfolio)return e;var t=!1;return Object.keys(e.attributes).forEach((function(n){var i=e.attributes[n];switch(n){case"tiles_type":case"masonry_columns":case"masonry_images_aspect_ratio":case"grid_columns":case"grid_images_aspect_ratio":case"justified_row_height":case"justified_row_height_tolerance":case"slider_effect":case"slider_speed":case"slider_autoplay":case"slider_autoplay_hover_pause":case"slider_centered_slides":case"slider_loop":case"slider_free_mode":case"slider_free_mode_sticky":case"slider_bullets_dynamic":case"items_gap":case"items_gap_vertical":e.$framePortfolio.attr("data-vp-".concat(n.replace(/_/g,"-")),i),e.$framePortfolio.vpf("init");break;case"items_style_default__align":case"items_style_fade__align":case"items_style_fly__align":case"items_style_emerge__align":var o="";["left","center","right","top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"].forEach((function(e){o+="".concat(o?" ":"","vp-portfolio__item-align-").concat(e)})),e.$framePortfolio.find(".vp-portfolio__item-overlay").removeClass(o).addClass("vp-portfolio__item-align-".concat(i));break;case"filter_align":e.$framePortfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(i));break;case"sort_align":e.$framePortfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(i));break;case"pagination_align":e.$framePortfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(i));break;case"list_name":case"stretch":case"custom_css":break;default:t=t||e.reload}})),i(i({},e),{},{reload:t})}))},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"getPortfolioLayouts",(function(){return l}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return c})),n.d(o,"setPortfolioLayouts",(function(){return u}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return d}));var s={};n.r(s),n.d(s,"getPortfolioLayouts",(function(){return f}));var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PORTFOLIO_LAYOUTS":return!e.layouts.length&&t.layouts&&t.layouts.length&&(e.layouts=t.layouts),e}return e};function l(e){return e.layouts}function c(e){return{type:"API_FETCH",request:e}}function u(e){return{type:"SET_PORTFOLIO_LAYOUTS",layouts:e}}var h=wp.apiFetch;function d(e){var t=e.request;return h(t).catch((function(e){return!(!e||!e.error||"no_layouts_found"!==e.error_code)&&{response:[],error:!1,success:!0}})).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}var p=regeneratorRuntime.mark(f);function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/visual-portfolio/v1/get_layouts/",t.next=3,c({path:"/visual-portfolio/v1/get_layouts/"});case 3:return e=t.sent,t.abrupt("return",u(e));case 5:case"end":return t.stop()}}),p)}(0,wp.data.registerStore)("visual-portfolio",{reducer:a,selectors:i,actions:o,controls:r,resolvers:s})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(276)},,function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"getBlockData",(function(){return d}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return p})),n.d(o,"setBlockData",(function(){return f})),n.d(o,"updateBlockData",(function(){return g}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return v}));n(217);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=window.VPSavedLayoutVariables;var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:c.data},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_BLOCK_DATA":if(t.data)return e?a(a({},e),{},{data:t.data}):t;break;case"UPDATE_BLOCK_DATA":if(t.data&&e)return a(a({},e),{},{data:a(a({},e.data),t.data)})}return e},h=window.VPSavedLayoutVariables;function d(e){return e.data||h.data}function p(e){return{type:"API_FETCH",request:e}}function f(e){return{type:"SET_BLOCK_DATA",data:e}}function g(e){return{type:"UPDATE_BLOCK_DATA",data:e}}var m=wp.apiFetch;function v(e){var t=e.request;return m(t).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}(0,wp.data.registerStore)("visual-portfolio/saved-layout-data",{reducer:u,selectors:i,actions:o,controls:r});var b=n(81);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=window.jQuery,T=wp.blocks,M=T.registerBlockType,I=T.createBlock,P=wp.plugins.registerPlugin,F=wp.i18n.__,D=wp.apiFetch,j=wp.element,N=j.Fragment,B=j.Component,z=wp.components.PanelBody,W=wp.data,H=W.withSelect,V=W.withDispatch,U=wp.blockEditor.InspectorControls,G=wp.compose.compose,K=function(e){$(n,e);var t=A(n);function n(){return C(this,n),t.apply(this,arguments)}return E(n,[{key:"onShortcodeClick",value:function(e){window.getSelection().selectAllChildren(e.target)}},{key:"onShortcodeCopy",value:function(e){var t=window.getSelection().toString().replace(/[\n\r]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.postId,n=e.blockData,i=e.updateBlockData,o=e.clientId;return wp.element.createElement(N,null,wp.element.createElement(U,null,wp.element.createElement(z,{title:F("Shortcodes","@@text_domain")},wp.element.createElement("p",null,F("To output this saved layout and its components you can use the following shortcodes:")),wp.element.createElement("p",null,F("Layout:","@@text_domain"),wp.element.createElement("br",null),wp.element.createElement("code",{role:"button",tabIndex:"0","aria-hidden":"true",onClick:this.onShortcodeClick,onCopy:this.onShortcodeCopy,onCut:this.onShortcodeCopy},'[visual_portfolio id="',t,'"]')),wp.element.createElement("p",null,F("Filter (optional):","@@text_domain"),wp.element.createElement("br",null),wp.element.createElement("code",{role:"button",tabIndex:"0","aria-hidden":"true",onClick:this.onShortcodeClick,onCopy:this.onShortcodeCopy,onCut:this.onShortcodeCopy},'[visual_portfolio_filter id="',t,'"]')),wp.element.createElement("p",null,F("Sort (optional):","@@text_domain"),wp.element.createElement("br",null),wp.element.createElement("code",{role:"button",tabIndex:"0","aria-hidden":"true",onClick:this.onShortcodeClick,onCopy:this.onShortcodeCopy,onCut:this.onShortcodeCopy},'[visual_portfolio_sort id="',t,'"]')))),wp.element.createElement(b.a,{attributes:x(x({},n),{},{block_id:n.id||o}),setAttributes:function(e){i(e)},clientId:o}))}}]),n}(B),q=G([H((function(e){var t=e("visual-portfolio/saved-layout-data").getBlockData();return{postId:e("core/editor").getCurrentPostId(),blockData:t}})),V((function(e){return{updateBlockData:function(t){e("visual-portfolio/saved-layout-data").updateBlockData(t)}}}))])(K);M("visual-portfolio/saved-editor",{title:F("Visual Portfolio Editor","@@text_domain"),description:F("Edit saved Visual Portfolio layouts.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"9",y:"8",width:"5",height:"6"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"url(#paint0_linear)"})),wp.element.createElement("g",{mask:"url(#mask0)"},wp.element.createElement("path",{d:"M11.1409 14L13.0565 8.49994H11.2789L9.55397 14H11.1409Z",fill:"currentColor"})),wp.element.createElement("path",{d:"M8.90795 14L6.9923 8.49994H8.76989L10.4948 14H8.90795Z",fill:"currentColor"}),wp.element.createElement("path",{d:"M19 16.2222C19 16.6937 18.8104 17.1459 18.4728 17.4793C18.1352 17.8127 17.6774 18 17.2 18H2.8C2.32261 18 1.86477 17.8127 1.52721 17.4793C1.18964 17.1459 1 16.6937 1 16.2222V3.77778C1 3.30628 1.18964 2.8541 1.52721 2.5207C1.86477 2.1873 2.32261 2 2.8 2H7.3L9.1 4.66667H17.2C17.6774 4.66667 18.1352 4.85397 18.4728 5.18737C18.8104 5.52076 19 5.97295 19 6.44444V16.2222Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"paint0_linear",x1:"12.191",y1:"8.49994",x2:"7.44436",y2:"15.1301",gradientUnits:"userSpaceOnUse"},wp.element.createElement("stop",null),wp.element.createElement("stop",{offset:"1",stopOpacity:"0"}))))},category:"common",supports:{html:!1,className:!1,customClassName:!1,anchor:!1,inserter:!1},edit:q,save:function(){return null}});var Y=function(e){$(n,e);var t=A(n);function n(){return C(this,n),t.apply(this,arguments)}return E(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isSavingPost,n=e.isAutosavingPost;this.defaultBlockData=!1,this.editorRefreshTimeout=!1,this.wasSavingPost=t,this.wasAutosavingPost=n,this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){this.changeToVisualMode(),this.addBlock(),this.alwaysSelectBlock(),this.checkIfPostEdited(),this.saveMetaOnPostUpdate()}},{key:"changeToVisualMode",value:function(){var e=this.props,t=e.editorSettings,n=e.editorMode,i=e.switchEditorMode;t.richEditingEnabled&&"text"===n&&i()}},{key:"addBlock",value:function(){if(!this.blocksRestoreBusy){var e=this.props,t=e.resetBlocks,n=e.insertBlocks,i=e.blocks;1===i.length&&i[0]&&"visual-portfolio/saved-editor"===i[0].name||(this.blocksRestoreBusy=!0,t([]),n(I("visual-portfolio/saved-editor")),this.blocksRestoreBusy=!1)}}},{key:"alwaysSelectBlock",value:function(){var e=this.props,t=e.selectedBlock,n=e.blocks,i=e.selectBlock;if(!(t&&"visual-portfolio/saved-editor"===t.name||R(".editor-post-title__block.is-selected").length)){var o="";n.forEach((function(e){"visual-portfolio/saved-editor"===e.name&&(o=e.clientId)})),o&&i(o)}}},{key:"checkIfPostEdited",value:function(){var e=this,t=this.props,n=t.isSavingPost,i=t.isAutosavingPost,o=t.blockData,r=t.editPost;o&&Object.keys(o).length&&(n||i||!this.defaultBlockData?this.defaultBlockData=JSON.stringify(o):(clearTimeout(this.editorRefreshTimeout),this.editorRefreshTimeout=setTimeout((function(){e.defaultBlockData!==JSON.stringify(o)&&r({edited:new Date})}),150)))}},{key:"saveMetaOnPostUpdate",value:function(){var e=this.props,t=e.isSavingPost,n=e.isAutosavingPost,i=e.postId,o=e.blockData,r=this.wasSavingPost&&!t&&!this.wasAutosavingPost;if(this.wasSavingPost=t,this.wasAutosavingPost=n,r){var s={};Object.keys(o).forEach((function(e){s["vp_".concat(e)]=o[e]})),D({path:"/visual-portfolio/v1/update_layout/",method:"POST",data:{data:s,post_id:i}}).catch((function(e){console.log(e)}))}}},{key:"render",value:function(){return null}}]),n}(B);P("vpf-saved-layouts-editor",{render:G(H((function(e){var t=e("core/editor"),n=t.isSavingPost,i=t.isAutosavingPost,o=t.getCurrentPostId,r=t.getEditorSettings,s=e("core/block-editor"),a=s.getSelectedBlock,l=s.getBlocks,c=e("core/edit-post").getEditorMode,u=e("visual-portfolio/saved-layout-data").getBlockData;return{isSavingPost:n(),isAutosavingPost:i(),selectedBlock:a(),editorSettings:r(),editorMode:c(),blocks:l(),postId:o(),blockData:u()}})),V((function(e){var t=e("core/block-editor");return{selectBlock:t.selectBlock,insertBlocks:t.insertBlocks,resetBlocks:t.resetBlocks,editPost:e("core/editor").editPost,switchEditorMode:e("core/edit-post").switchEditorMode}})))(Y)})}]);
languages/visual-portfolio.pot CHANGED
@@ -15,22 +15,6 @@ msgstr ""
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
 
18
- #: dist/visual-portfolio/class-visual-portfolio.php:156
19
- msgid "Small (VP)"
20
- msgstr ""
21
-
22
- #: dist/visual-portfolio/class-visual-portfolio.php:157
23
- msgid "Medium (VP)"
24
- msgstr ""
25
-
26
- #: dist/visual-portfolio/class-visual-portfolio.php:158
27
- msgid "Large (VP)"
28
- msgstr ""
29
-
30
- #: dist/visual-portfolio/class-visual-portfolio.php:159
31
- msgid "Extra Large (VP)"
32
- msgstr ""
33
-
34
  #: dist/visual-portfolio/classes/class-admin.php:90, dist/visual-portfolio/classes/class-admin.php:122
35
  msgid "Go Pro"
36
  msgstr ""
@@ -155,7 +139,7 @@ msgstr ""
155
  msgid "Free Scroll Sticky"
156
  msgstr ""
157
 
158
- #: dist/visual-portfolio/classes/class-admin.php:506, dist/visual-portfolio/classes/class-admin.php:2724, dist/visual-portfolio/classes/class-settings.php:387
159
  msgid "Display Arrows"
160
  msgstr ""
161
 
@@ -171,7 +155,7 @@ msgstr ""
171
  msgid "Mousewheel Control"
172
  msgstr ""
173
 
174
- #: dist/visual-portfolio/classes/class-admin.php:535, dist/visual-portfolio/classes/class-settings.php:427
175
  msgid "Display Thumbnails"
176
  msgstr ""
177
 
@@ -247,7 +231,7 @@ msgstr ""
247
  msgid "Caption Links Hover Color"
248
  msgstr ""
249
 
250
- #: dist/visual-portfolio/classes/class-admin.php:770, dist/visual-portfolio/classes/class-admin.php:832, dist/visual-portfolio/classes/class-admin.php:883, dist/visual-portfolio/classes/class-admin.php:992, dist/visual-portfolio/classes/class-admin.php:1358, dist/visual-portfolio/classes/class-admin.php:1525, dist/visual-portfolio/classes/class-admin.php:2099, dist/visual-portfolio/classes/class-admin.php:2432, dist/visual-portfolio/classes/class-settings.php:481
251
  msgid "PRO Feature"
252
  msgstr ""
253
 
@@ -512,7 +496,7 @@ msgstr ""
512
  msgid "Uploaded"
513
  msgstr ""
514
 
515
- #: dist/visual-portfolio/classes/class-admin.php:1526, dist/visual-portfolio/classes/class-settings.php:483
516
  msgid "Social feeds such as Instagram, Youtube, Flickr, Twitter, etc..."
517
  msgstr ""
518
 
@@ -618,7 +602,7 @@ msgstr ""
618
  msgid "Caption Align"
619
  msgstr ""
620
 
621
- #: dist/visual-portfolio/classes/class-admin.php:1995
622
  msgid "Disabled"
623
  msgstr ""
624
 
@@ -786,83 +770,83 @@ msgstr ""
786
  msgid "Current Query"
787
  msgstr ""
788
 
789
- #: dist/visual-portfolio/classes/class-assets.php:550
790
  msgid "Couldn't retrieve Visual Portfolio ID."
791
  msgstr ""
792
 
793
- #: dist/visual-portfolio/classes/class-assets.php:552
794
  msgid "Close (Esc)"
795
  msgstr ""
796
 
797
- #: dist/visual-portfolio/classes/class-assets.php:553, dist/visual-portfolio/classes/class-assets.php:571
798
  msgid "Share"
799
  msgstr ""
800
 
801
- #: dist/visual-portfolio/classes/class-assets.php:554
802
  msgid "Toggle fullscreen"
803
  msgstr ""
804
 
805
- #: dist/visual-portfolio/classes/class-assets.php:555
806
  msgid "Zoom in/out"
807
  msgstr ""
808
 
809
- #: dist/visual-portfolio/classes/class-assets.php:556
810
  msgid "Previous (arrow left)"
811
  msgstr ""
812
 
813
- #: dist/visual-portfolio/classes/class-assets.php:557
814
  msgid "Next (arrow right)"
815
  msgstr ""
816
 
817
- #: dist/visual-portfolio/classes/class-assets.php:558
818
  msgid "Share on Facebook"
819
  msgstr ""
820
 
821
- #: dist/visual-portfolio/classes/class-assets.php:559
822
  msgid "Tweet"
823
  msgstr ""
824
 
825
- #: dist/visual-portfolio/classes/class-assets.php:560
826
  msgid "Pin it"
827
  msgstr ""
828
 
829
- #: dist/visual-portfolio/classes/class-assets.php:562
830
  msgid "Close"
831
  msgstr ""
832
 
833
- #: dist/visual-portfolio/classes/class-assets.php:563
834
  msgid "Next"
835
  msgstr ""
836
 
837
- #: dist/visual-portfolio/classes/class-assets.php:564
838
  msgid "Previous"
839
  msgstr ""
840
 
841
- #: dist/visual-portfolio/classes/class-assets.php:565
842
  msgid "The requested content cannot be loaded. <br /> Please try again later."
843
  msgstr ""
844
 
845
- #: dist/visual-portfolio/classes/class-assets.php:566
846
  msgid "Start slideshow"
847
  msgstr ""
848
 
849
- #: dist/visual-portfolio/classes/class-assets.php:567
850
  msgid "Pause slideshow"
851
  msgstr ""
852
 
853
- #: dist/visual-portfolio/classes/class-assets.php:568
854
  msgid "Full screen"
855
  msgstr ""
856
 
857
- #: dist/visual-portfolio/classes/class-assets.php:569
858
  msgid "Thumbnails"
859
  msgstr ""
860
 
861
- #: dist/visual-portfolio/classes/class-assets.php:570
862
  msgid "Download"
863
  msgstr ""
864
 
865
- #: dist/visual-portfolio/classes/class-assets.php:572
866
  msgid "Zoom"
867
  msgstr ""
868
 
@@ -1034,31 +1018,47 @@ msgstr ""
1034
  msgid "Select Layout"
1035
  msgstr ""
1036
 
1037
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1713
1038
  msgid "Default sorting"
1039
  msgstr ""
1040
 
1041
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1714
1042
  msgid "Sort by date (newest)"
1043
  msgstr ""
1044
 
1045
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1715
1046
  msgid "Sort by date (oldest)"
1047
  msgstr ""
1048
 
1049
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1716
1050
  msgid "Sort by title (A-Z)"
1051
  msgstr ""
1052
 
1053
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1717
1054
  msgid "Sort by title (Z-A)"
1055
  msgstr ""
1056
 
1057
  #. translators: %s - published in human format.
1058
- #: dist/visual-portfolio/classes/class-get-portfolio.php:1829
1059
  msgid "%s ago"
1060
  msgstr ""
1061
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1062
  #: dist/visual-portfolio/classes/class-rest.php:73
1063
  msgid "Sorry, you are not allowed to read saved layouts data."
1064
  msgstr ""
@@ -1075,7 +1075,7 @@ msgstr ""
1075
  msgid "Settings"
1076
  msgstr ""
1077
 
1078
- #: dist/visual-portfolio/classes/class-settings.php:139, dist/visual-portfolio/classes/class-settings.php:312
1079
  msgid "Popup Gallery"
1080
  msgstr ""
1081
 
@@ -1119,7 +1119,7 @@ msgstr ""
1119
  msgid "Responsive Breakpoints"
1120
  msgstr ""
1121
 
1122
- #: dist/visual-portfolio/classes/class-settings.php:203, dist/visual-portfolio/classes/class-settings.php:305
1123
  msgid "Extra Large"
1124
  msgstr ""
1125
 
@@ -1128,7 +1128,7 @@ msgstr ""
1128
  msgid "Sets the breakpoint on extra large screen sizes (Default: %1$spx)."
1129
  msgstr ""
1130
 
1131
- #: dist/visual-portfolio/classes/class-settings.php:215, dist/visual-portfolio/classes/class-settings.php:298, dist/visual-portfolio/classes/class-settings.php:332
1132
  msgid "Large"
1133
  msgstr ""
1134
 
@@ -1137,7 +1137,7 @@ msgstr ""
1137
  msgid "Sets the breakpoint on large screen sizes (Default: %1$spx)."
1138
  msgstr ""
1139
 
1140
- #: dist/visual-portfolio/classes/class-settings.php:227, dist/visual-portfolio/classes/class-settings.php:291, dist/visual-portfolio/classes/class-settings.php:325
1141
  msgid "Medium"
1142
  msgstr ""
1143
 
@@ -1146,7 +1146,7 @@ msgstr ""
1146
  msgid "Sets the breakpoint on medium screen sizes (Default: %1$spx)."
1147
  msgstr ""
1148
 
1149
- #: dist/visual-portfolio/classes/class-settings.php:239, dist/visual-portfolio/classes/class-settings.php:284, dist/visual-portfolio/classes/class-settings.php:318
1150
  msgid "Small"
1151
  msgstr ""
1152
 
@@ -1169,123 +1169,131 @@ msgid "Lazy Loading"
1169
  msgstr ""
1170
 
1171
  #: dist/visual-portfolio/classes/class-settings.php:266
1172
- msgid "Enable"
1173
  msgstr ""
1174
 
1175
- #: dist/visual-portfolio/classes/class-settings.php:273
1176
- msgid "Image Sizes"
 
 
 
 
1177
  msgstr ""
1178
 
1179
  #: dist/visual-portfolio/classes/class-settings.php:278
 
 
 
 
1180
  msgid "Layouts"
1181
  msgstr ""
1182
 
1183
- #: dist/visual-portfolio/classes/class-settings.php:279
1184
  msgid "Image sizes used in portfolio layouts."
1185
  msgstr ""
1186
 
1187
- #: dist/visual-portfolio/classes/class-settings.php:313
1188
  msgid "Image sizes used in popup gallery images."
1189
  msgstr ""
1190
 
1191
  #. translators: %s: regenerate thumbnails url.
1192
- #: dist/visual-portfolio/classes/class-settings.php:340
1193
  msgid "After publishing your changes, new image sizes may not be shown until you <a href=\"%s\" target=\"_blank\">Regenerate Thumbnails</a>."
1194
  msgstr ""
1195
 
1196
- #: dist/visual-portfolio/classes/class-settings.php:348
1197
  msgid "Vendor Script"
1198
  msgstr ""
1199
 
1200
- #: dist/visual-portfolio/classes/class-settings.php:351
1201
  msgid "Fancybox"
1202
  msgstr ""
1203
 
1204
- #: dist/visual-portfolio/classes/class-settings.php:352
1205
  msgid "PhotoSwipe"
1206
  msgstr ""
1207
 
1208
- #: dist/visual-portfolio/classes/class-settings.php:360
1209
  msgid "WordPress Images"
1210
  msgstr ""
1211
 
1212
- #: dist/visual-portfolio/classes/class-settings.php:361
1213
  msgid "Enable popup for WordPress images and galleries."
1214
  msgstr ""
1215
 
1216
- #: dist/visual-portfolio/classes/class-settings.php:369
1217
  msgid "Deep Linking"
1218
  msgstr ""
1219
 
1220
- #: dist/visual-portfolio/classes/class-settings.php:370
1221
  msgid "Makes URL automatically change to reflect the current opened popup, and you can easily link directly to that image or video."
1222
  msgstr ""
1223
 
1224
- #: dist/visual-portfolio/classes/class-settings.php:377
1225
  msgid "Use Deep Linking URL to Share Images"
1226
  msgstr ""
1227
 
1228
- #: dist/visual-portfolio/classes/class-settings.php:378
1229
  msgid "Check to share Deep Linking URLs when sharing images. When disabled, all galleries will share direct links to image files."
1230
  msgstr ""
1231
 
1232
- #: dist/visual-portfolio/classes/class-settings.php:388
1233
  msgid "Arrows to navigate between images."
1234
  msgstr ""
1235
 
1236
- #: dist/visual-portfolio/classes/class-settings.php:394
1237
  msgid "Display Images Counter"
1238
  msgstr ""
1239
 
1240
- #: dist/visual-portfolio/classes/class-settings.php:395
1241
  msgid "On the top left corner will be showed images counter."
1242
  msgstr ""
1243
 
1244
- #: dist/visual-portfolio/classes/class-settings.php:401
1245
  msgid "Display Zoom Button"
1246
  msgstr ""
1247
 
1248
- #: dist/visual-portfolio/classes/class-settings.php:407
1249
  msgid "Display Fullscreen Button"
1250
  msgstr ""
1251
 
1252
- #: dist/visual-portfolio/classes/class-settings.php:413
1253
  msgid "Display Share Button"
1254
  msgstr ""
1255
 
1256
- #: dist/visual-portfolio/classes/class-settings.php:419
1257
  msgid "Display Close Button"
1258
  msgstr ""
1259
 
1260
- #: dist/visual-portfolio/classes/class-settings.php:433
1261
  msgid "Display Download Button"
1262
  msgstr ""
1263
 
1264
- #: dist/visual-portfolio/classes/class-settings.php:439
1265
  msgid "Display Slideshow"
1266
  msgstr ""
1267
 
1268
- #: dist/visual-portfolio/classes/class-settings.php:447
1269
  msgid "Click to Zoom"
1270
  msgstr ""
1271
 
1272
- #: dist/visual-portfolio/classes/class-settings.php:455
1273
  msgid "Background Color"
1274
  msgstr ""
1275
 
1276
- #: dist/visual-portfolio/classes/class-settings.php:463
1277
  msgid "Pages iFrame Custom CSS"
1278
  msgstr ""
1279
 
1280
- #: dist/visual-portfolio/classes/class-settings.php:464
1281
  msgid "When you display pages in popup iframe, you may not need some page elements like header and footer. Hide it using custom CSS with classname `.vp-popup-iframe`."
1282
  msgstr ""
1283
 
1284
- #: dist/visual-portfolio/classes/class-settings.php:484
1285
  msgid "Read More"
1286
  msgstr ""
1287
 
1288
- #: dist/visual-portfolio/classes/class-settings.php:505
1289
  msgid "Visual Portfolio Settings"
1290
  msgstr ""
1291
 
@@ -1305,6 +1313,10 @@ msgstr ""
1305
  msgid "This feature available in PRO plugin only"
1306
  msgstr ""
1307
 
 
 
 
 
1308
  #: dist/visual-portfolio/templates/items-list/item-parts/meta-author.php:32
1309
  msgid "Author"
1310
  msgstr ""
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  #: dist/visual-portfolio/classes/class-admin.php:90, dist/visual-portfolio/classes/class-admin.php:122
19
  msgid "Go Pro"
20
  msgstr ""
139
  msgid "Free Scroll Sticky"
140
  msgstr ""
141
 
142
+ #: dist/visual-portfolio/classes/class-admin.php:506, dist/visual-portfolio/classes/class-admin.php:2724, dist/visual-portfolio/classes/class-settings.php:392
143
  msgid "Display Arrows"
144
  msgstr ""
145
 
155
  msgid "Mousewheel Control"
156
  msgstr ""
157
 
158
+ #: dist/visual-portfolio/classes/class-admin.php:535, dist/visual-portfolio/classes/class-settings.php:432
159
  msgid "Display Thumbnails"
160
  msgstr ""
161
 
231
  msgid "Caption Links Hover Color"
232
  msgstr ""
233
 
234
+ #: dist/visual-portfolio/classes/class-admin.php:770, dist/visual-portfolio/classes/class-admin.php:832, dist/visual-portfolio/classes/class-admin.php:883, dist/visual-portfolio/classes/class-admin.php:992, dist/visual-portfolio/classes/class-admin.php:1358, dist/visual-portfolio/classes/class-admin.php:1525, dist/visual-portfolio/classes/class-admin.php:2099, dist/visual-portfolio/classes/class-admin.php:2432, dist/visual-portfolio/classes/class-settings.php:486
235
  msgid "PRO Feature"
236
  msgstr ""
237
 
496
  msgid "Uploaded"
497
  msgstr ""
498
 
499
+ #: dist/visual-portfolio/classes/class-admin.php:1526, dist/visual-portfolio/classes/class-settings.php:488
500
  msgid "Social feeds such as Instagram, Youtube, Flickr, Twitter, etc..."
501
  msgstr ""
502
 
602
  msgid "Caption Align"
603
  msgstr ""
604
 
605
+ #: dist/visual-portfolio/classes/class-admin.php:1995, dist/visual-portfolio/classes/class-settings.php:270
606
  msgid "Disabled"
607
  msgstr ""
608
 
770
  msgid "Current Query"
771
  msgstr ""
772
 
773
+ #: dist/visual-portfolio/classes/class-assets.php:566
774
  msgid "Couldn't retrieve Visual Portfolio ID."
775
  msgstr ""
776
 
777
+ #: dist/visual-portfolio/classes/class-assets.php:568
778
  msgid "Close (Esc)"
779
  msgstr ""
780
 
781
+ #: dist/visual-portfolio/classes/class-assets.php:569, dist/visual-portfolio/classes/class-assets.php:587
782
  msgid "Share"
783
  msgstr ""
784
 
785
+ #: dist/visual-portfolio/classes/class-assets.php:570
786
  msgid "Toggle fullscreen"
787
  msgstr ""
788
 
789
+ #: dist/visual-portfolio/classes/class-assets.php:571
790
  msgid "Zoom in/out"
791
  msgstr ""
792
 
793
+ #: dist/visual-portfolio/classes/class-assets.php:572
794
  msgid "Previous (arrow left)"
795
  msgstr ""
796
 
797
+ #: dist/visual-portfolio/classes/class-assets.php:573
798
  msgid "Next (arrow right)"
799
  msgstr ""
800
 
801
+ #: dist/visual-portfolio/classes/class-assets.php:574
802
  msgid "Share on Facebook"
803
  msgstr ""
804
 
805
+ #: dist/visual-portfolio/classes/class-assets.php:575
806
  msgid "Tweet"
807
  msgstr ""
808
 
809
+ #: dist/visual-portfolio/classes/class-assets.php:576
810
  msgid "Pin it"
811
  msgstr ""
812
 
813
+ #: dist/visual-portfolio/classes/class-assets.php:578
814
  msgid "Close"
815
  msgstr ""
816
 
817
+ #: dist/visual-portfolio/classes/class-assets.php:579
818
  msgid "Next"
819
  msgstr ""
820
 
821
+ #: dist/visual-portfolio/classes/class-assets.php:580
822
  msgid "Previous"
823
  msgstr ""
824
 
825
+ #: dist/visual-portfolio/classes/class-assets.php:581
826
  msgid "The requested content cannot be loaded. <br /> Please try again later."
827
  msgstr ""
828
 
829
+ #: dist/visual-portfolio/classes/class-assets.php:582
830
  msgid "Start slideshow"
831
  msgstr ""
832
 
833
+ #: dist/visual-portfolio/classes/class-assets.php:583
834
  msgid "Pause slideshow"
835
  msgstr ""
836
 
837
+ #: dist/visual-portfolio/classes/class-assets.php:584
838
  msgid "Full screen"
839
  msgstr ""
840
 
841
+ #: dist/visual-portfolio/classes/class-assets.php:585
842
  msgid "Thumbnails"
843
  msgstr ""
844
 
845
+ #: dist/visual-portfolio/classes/class-assets.php:586
846
  msgid "Download"
847
  msgstr ""
848
 
849
+ #: dist/visual-portfolio/classes/class-assets.php:588
850
  msgid "Zoom"
851
  msgstr ""
852
 
1018
  msgid "Select Layout"
1019
  msgstr ""
1020
 
1021
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1788
1022
  msgid "Default sorting"
1023
  msgstr ""
1024
 
1025
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1789
1026
  msgid "Sort by date (newest)"
1027
  msgstr ""
1028
 
1029
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1790
1030
  msgid "Sort by date (oldest)"
1031
  msgstr ""
1032
 
1033
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1791
1034
  msgid "Sort by title (A-Z)"
1035
  msgstr ""
1036
 
1037
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1792
1038
  msgid "Sort by title (Z-A)"
1039
  msgstr ""
1040
 
1041
  #. translators: %s - published in human format.
1042
+ #: dist/visual-portfolio/classes/class-get-portfolio.php:1904
1043
  msgid "%s ago"
1044
  msgstr ""
1045
 
1046
+ #: dist/visual-portfolio/classes/class-images.php:81
1047
+ msgid "Small (VP)"
1048
+ msgstr ""
1049
+
1050
+ #: dist/visual-portfolio/classes/class-images.php:82
1051
+ msgid "Medium (VP)"
1052
+ msgstr ""
1053
+
1054
+ #: dist/visual-portfolio/classes/class-images.php:83
1055
+ msgid "Large (VP)"
1056
+ msgstr ""
1057
+
1058
+ #: dist/visual-portfolio/classes/class-images.php:84
1059
+ msgid "Extra Large (VP)"
1060
+ msgstr ""
1061
+
1062
  #: dist/visual-portfolio/classes/class-rest.php:73
1063
  msgid "Sorry, you are not allowed to read saved layouts data."
1064
  msgstr ""
1075
  msgid "Settings"
1076
  msgstr ""
1077
 
1078
+ #: dist/visual-portfolio/classes/class-settings.php:139, dist/visual-portfolio/classes/class-settings.php:317
1079
  msgid "Popup Gallery"
1080
  msgstr ""
1081
 
1119
  msgid "Responsive Breakpoints"
1120
  msgstr ""
1121
 
1122
+ #: dist/visual-portfolio/classes/class-settings.php:203, dist/visual-portfolio/classes/class-settings.php:310
1123
  msgid "Extra Large"
1124
  msgstr ""
1125
 
1128
  msgid "Sets the breakpoint on extra large screen sizes (Default: %1$spx)."
1129
  msgstr ""
1130
 
1131
+ #: dist/visual-portfolio/classes/class-settings.php:215, dist/visual-portfolio/classes/class-settings.php:303, dist/visual-portfolio/classes/class-settings.php:337
1132
  msgid "Large"
1133
  msgstr ""
1134
 
1137
  msgid "Sets the breakpoint on large screen sizes (Default: %1$spx)."
1138
  msgstr ""
1139
 
1140
+ #: dist/visual-portfolio/classes/class-settings.php:227, dist/visual-portfolio/classes/class-settings.php:296, dist/visual-portfolio/classes/class-settings.php:330
1141
  msgid "Medium"
1142
  msgstr ""
1143
 
1146
  msgid "Sets the breakpoint on medium screen sizes (Default: %1$spx)."
1147
  msgstr ""
1148
 
1149
+ #: dist/visual-portfolio/classes/class-settings.php:239, dist/visual-portfolio/classes/class-settings.php:289, dist/visual-portfolio/classes/class-settings.php:323
1150
  msgid "Small"
1151
  msgstr ""
1152
 
1169
  msgstr ""
1170
 
1171
  #: dist/visual-portfolio/classes/class-settings.php:266
1172
+ msgid "Enable lazy loading for Visual Portfolio layouts only or for the whole website."
1173
  msgstr ""
1174
 
1175
+ #: dist/visual-portfolio/classes/class-settings.php:271
1176
+ msgid "Visual Portfolio only"
1177
+ msgstr ""
1178
+
1179
+ #: dist/visual-portfolio/classes/class-settings.php:272
1180
+ msgid "All images"
1181
  msgstr ""
1182
 
1183
  #: dist/visual-portfolio/classes/class-settings.php:278
1184
+ msgid "Image Sizes"
1185
+ msgstr ""
1186
+
1187
+ #: dist/visual-portfolio/classes/class-settings.php:283
1188
  msgid "Layouts"
1189
  msgstr ""
1190
 
1191
+ #: dist/visual-portfolio/classes/class-settings.php:284
1192
  msgid "Image sizes used in portfolio layouts."
1193
  msgstr ""
1194
 
1195
+ #: dist/visual-portfolio/classes/class-settings.php:318
1196
  msgid "Image sizes used in popup gallery images."
1197
  msgstr ""
1198
 
1199
  #. translators: %s: regenerate thumbnails url.
1200
+ #: dist/visual-portfolio/classes/class-settings.php:345
1201
  msgid "After publishing your changes, new image sizes may not be shown until you <a href=\"%s\" target=\"_blank\">Regenerate Thumbnails</a>."
1202
  msgstr ""
1203
 
1204
+ #: dist/visual-portfolio/classes/class-settings.php:353
1205
  msgid "Vendor Script"
1206
  msgstr ""
1207
 
1208
+ #: dist/visual-portfolio/classes/class-settings.php:356
1209
  msgid "Fancybox"
1210
  msgstr ""
1211
 
1212
+ #: dist/visual-portfolio/classes/class-settings.php:357
1213
  msgid "PhotoSwipe"
1214
  msgstr ""
1215
 
1216
+ #: dist/visual-portfolio/classes/class-settings.php:365
1217
  msgid "WordPress Images"
1218
  msgstr ""
1219
 
1220
+ #: dist/visual-portfolio/classes/class-settings.php:366
1221
  msgid "Enable popup for WordPress images and galleries."
1222
  msgstr ""
1223
 
1224
+ #: dist/visual-portfolio/classes/class-settings.php:374
1225
  msgid "Deep Linking"
1226
  msgstr ""
1227
 
1228
+ #: dist/visual-portfolio/classes/class-settings.php:375
1229
  msgid "Makes URL automatically change to reflect the current opened popup, and you can easily link directly to that image or video."
1230
  msgstr ""
1231
 
1232
+ #: dist/visual-portfolio/classes/class-settings.php:382
1233
  msgid "Use Deep Linking URL to Share Images"
1234
  msgstr ""
1235
 
1236
+ #: dist/visual-portfolio/classes/class-settings.php:383
1237
  msgid "Check to share Deep Linking URLs when sharing images. When disabled, all galleries will share direct links to image files."
1238
  msgstr ""
1239
 
1240
+ #: dist/visual-portfolio/classes/class-settings.php:393
1241
  msgid "Arrows to navigate between images."
1242
  msgstr ""
1243
 
1244
+ #: dist/visual-portfolio/classes/class-settings.php:399
1245
  msgid "Display Images Counter"
1246
  msgstr ""
1247
 
1248
+ #: dist/visual-portfolio/classes/class-settings.php:400
1249
  msgid "On the top left corner will be showed images counter."
1250
  msgstr ""
1251
 
1252
+ #: dist/visual-portfolio/classes/class-settings.php:406
1253
  msgid "Display Zoom Button"
1254
  msgstr ""
1255
 
1256
+ #: dist/visual-portfolio/classes/class-settings.php:412
1257
  msgid "Display Fullscreen Button"
1258
  msgstr ""
1259
 
1260
+ #: dist/visual-portfolio/classes/class-settings.php:418
1261
  msgid "Display Share Button"
1262
  msgstr ""
1263
 
1264
+ #: dist/visual-portfolio/classes/class-settings.php:424
1265
  msgid "Display Close Button"
1266
  msgstr ""
1267
 
1268
+ #: dist/visual-portfolio/classes/class-settings.php:438
1269
  msgid "Display Download Button"
1270
  msgstr ""
1271
 
1272
+ #: dist/visual-portfolio/classes/class-settings.php:444
1273
  msgid "Display Slideshow"
1274
  msgstr ""
1275
 
1276
+ #: dist/visual-portfolio/classes/class-settings.php:452
1277
  msgid "Click to Zoom"
1278
  msgstr ""
1279
 
1280
+ #: dist/visual-portfolio/classes/class-settings.php:460
1281
  msgid "Background Color"
1282
  msgstr ""
1283
 
1284
+ #: dist/visual-portfolio/classes/class-settings.php:468
1285
  msgid "Pages iFrame Custom CSS"
1286
  msgstr ""
1287
 
1288
+ #: dist/visual-portfolio/classes/class-settings.php:469
1289
  msgid "When you display pages in popup iframe, you may not need some page elements like header and footer. Hide it using custom CSS with classname `.vp-popup-iframe`."
1290
  msgstr ""
1291
 
1292
+ #: dist/visual-portfolio/classes/class-settings.php:489
1293
  msgid "Read More"
1294
  msgstr ""
1295
 
1296
+ #: dist/visual-portfolio/classes/class-settings.php:510
1297
  msgid "Visual Portfolio Settings"
1298
  msgstr ""
1299
 
1313
  msgid "This feature available in PRO plugin only"
1314
  msgstr ""
1315
 
1316
+ #: dist/visual-portfolio/templates/items-list/wrapper-start.php:34
1317
+ msgid "Visual Portfolio, Posts & Image Gallery for WordPress"
1318
+ msgstr ""
1319
+
1320
  #: dist/visual-portfolio/templates/items-list/item-parts/meta-author.php:32
1321
  msgid "Author"
1322
  msgstr ""
readme.md CHANGED
@@ -5,7 +5,7 @@
5
  * Requires at least: 5.4
6
  * Tested up to: 5.6
7
  * Requires PHP: 5.5.9
8
- * Stable tag: 2.10.0
9
  * License: GPLv2 or later
10
  * License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
11
 
@@ -289,6 +289,14 @@ For more information, feel free to visit [Visual Portfolio official website](htt
289
 
290
  ## Changelog ##
291
 
 
 
 
 
 
 
 
 
292
  = 2.10.0 =
293
 
294
  * added new Query setting to select multiple post types
5
  * Requires at least: 5.4
6
  * Tested up to: 5.6
7
  * Requires PHP: 5.5.9
8
+ * Stable tag: 2.10.1
9
  * License: GPLv2 or later
10
  * License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
11
 
289
 
290
  ## Changelog ##
291
 
292
+ = 2.10.1 =
293
+
294
+ * added setting to enable lazy loading for all images on site (not only for Visual Portfolio)
295
+ * changed preloader logo svg to img tag
296
+ * fixed wrong path for Pro templates
297
+ * fixed wrong name of link template
298
+ * fixed popup gallery for old deprecated overlay class
299
+
300
  = 2.10.0 =
301
 
302
  * added new Query setting to select multiple post types
templates/items-list/items-style/emerge/image.php CHANGED
@@ -29,6 +29,6 @@ $link_data = array(
29
  <?php echo wp_kses( $args['image'], $args['image_allowed_html'] ); ?>
30
  <div class="vp-portfolio__item-img-overlay"></div>
31
 
32
- <?php visual_portfolio()->include_template( 'global/link-утв', $link_data ); ?>
33
  </div>
34
  </div>
29
  <?php echo wp_kses( $args['image'], $args['image_allowed_html'] ); ?>
30
  <div class="vp-portfolio__item-img-overlay"></div>
31
 
32
+ <?php visual_portfolio()->include_template( 'global/link-end', $link_data ); ?>
33
  </div>
34
  </div>
templates/items-list/wrapper-start.php CHANGED
@@ -31,16 +31,6 @@ if ( ! defined( 'ABSPATH' ) ) {
31
  >
32
  <div class="vp-portfolio__preloader-wrap">
33
  <div class="vp-portfolio__preloader">
34
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
35
- <rect width="20" height="20" rx="10" fill="black" />
36
- <path d="M11.5062 13.9L14.0488 6.59998H11.6894L9.39999 13.9H11.5062Z" fill="url(#vpf_logo_paint0_linear)" />
37
- <path d="M8.54255 13.9L5.99999 6.59998H8.35932L10.6488 13.9H8.54255Z" fill="white" />
38
- <defs>
39
- <linearGradient id="vpf_logo_paint0_linear" x1="12.9" y1="6.59998" x2="6.59999" y2="15.4" gradientUnits="userSpaceOnUse">
40
- <stop offset="0" stop-color="white" />
41
- <stop offset="1" stop-color="white" stop-opacity="0" />
42
- </linearGradient>
43
- </defs>
44
- </svg>
45
  </div>
46
  </div>
31
  >
32
  <div class="vp-portfolio__preloader-wrap">
33
  <div class="vp-portfolio__preloader">
34
+ <img src="<?php echo esc_url( visual_portfolio()->plugin_url . 'assets/images/logo-dark.svg' ); ?>" alt="<?php echo esc_attr__( 'Visual Portfolio, Posts & Image Gallery for WordPress', 'visual-portfolio' ); ?>" width="20" height="20">
 
 
 
 
 
 
 
 
 
 
35
  </div>
36
  </div>