Version Description
Download this release
Release Info
Developer | nko |
Plugin | Visual Portfolio, Photo Gallery & Post Grid |
Version | 1.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.6.5
- assets/admin/css/style.min.css +2 -2
- assets/admin/js/gutenberg-block.min.js +3 -3
- assets/admin/js/mce-dropdown.min.js +2 -2
- assets/admin/js/mce-localize.min.js +1 -1
- assets/admin/js/script.min.js +1 -1
- assets/admin/js/vc-frontend.min.js +2 -2
- assets/css/style.min.css +1 -1
- assets/js/lazysizes-object-fit-cover.min.js +1 -0
- assets/js/script-preview.min.js +2 -2
- assets/js/script.min.js +1 -1
- assets/vendor/lazysizes/lazysizes.min.js +2 -2
- class-visual-portfolio.php +6 -4
- classes/class-admin.php +206 -3
- classes/class-get-portfolio.php +25 -13
- classes/class-images.php +17 -2
- classes/class-shortcode.php +1 -0
- languages/visual-portfolio.pot +179 -167
- readme.md +8 -1
- templates/items-list/pagination/infinite.php +3 -3
- templates/items-list/pagination/load-more.php +3 -3
assets/admin/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.6.
|
4 |
* Author : nK https://nkdev.info
|
5 |
-
*/.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.vp-control{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{-webkit-box-sizing:border-box;box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;-webkit-box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;-webkit-transition:background .2s ease;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;-webkit-transition:-webkit-transform .1s ease;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{-webkit-box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781;box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{-webkit-box-flex:1;-ms-flex:1;flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;-webkit-transition:height .3s;transition:height .3s}.vp-content-source{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;-webkit-box-shadow:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;-webkit-box-flex:0;-ms-flex:0 0 35px;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:0;right:-350px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;-webkit-transition:.15s right;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:0}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:-webkit-box;display:-ms-flexbox;display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;-webkit-transition:.15s margin-right;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;-webkit-transition:.15s visibility, .15s opacity;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db;box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.vp-input{width:100%}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.6.5
|
4 |
* Author : nK https://nkdev.info
|
5 |
+
*/.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-vc.png");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.vp-control{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{-webkit-box-sizing:border-box;box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;-webkit-box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;-webkit-transition:background .2s ease;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;-webkit-transition:-webkit-transform .1s ease;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{-webkit-box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781;box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{-webkit-box-flex:1;-ms-flex:1;flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;-webkit-transition:height .3s;transition:height .3s}.vp-content-source{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;-webkit-box-shadow:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;-webkit-box-flex:0;-ms-flex:0 0 35px;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:0;right:-350px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;-webkit-transition:.15s right;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:0}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:-webkit-box;display:-ms-flexbox;display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;-webkit-transition:.15s margin-right;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;-webkit-transition:.15s visibility, .15s opacity;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{-webkit-box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db;box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.vp-input{width:100%}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}.post-type-vp_lists #slugdiv,.post-type-vp_lists #postcustom{display:none}
|
assets/admin/js/gutenberg-block.min.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get: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,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=59)}([function(e,t){var n=e.exports={version:"2.5.6"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(10),o=n(36),i=n(19),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1),o=n(0),i=n(35),a=n(6),u=n(2),c=function e(t,n,c){var f,s,l,d=t&e.F,p=t&e.G,m=t&e.S,y=t&e.P,h=t&e.B,v=t&e.W,g=p?o:o[n]||(o[n]={}),b=g.prototype,w=p?r:m?r[n]:(r[n]||{}).prototype;p&&(c=n);for(f in c)(s=!d&&w&&void 0!==w[f])&&u(g,f)||(l=s?w[f]:c[f],g[f]=p&&"function"!=typeof w[f]?c[f]:h&&s?i(l,r):v&&w[f]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):y&&"function"==typeof l?i(Function.call,l):l,y&&((g.virtual||(g.virtual={}))[f]=l,t&e.R&&b&&!b[f]&&a(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(3),o=n(15);e.exports=n(4)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var 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.exports=function(e){return"object"===(void 0===e?"undefined":n(e))?null!==e:"function"==typeof e}},function(e,t,n){var r=n(80),o=n(16);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(18)("wks"),o=n(14),i=n(1).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(7);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(s===setTimeout)return setTimeout(e,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function a(){y&&p&&(y=!1,p.length?m=p.concat(m):h=-1,m.length&&u())}function u(){if(!y){var e=o(a);y=!0;for(var t=m.length;t;){for(p=m,m=[];++h<t;)p&&p[h].run();h=-1,t=m.length}p=null,y=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var s,l,d=e.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(e){s=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var p,m=[],y=!1,h=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new c(e,t)),1!==m.length||y||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.prependListener=f,d.prependOnceListener=f,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(18)("keys"),o=n(14);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(0),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(7);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(10),o=n(79),i=n(24),a=n(17)("IE_PROTO"),u=function(){},c=function(){var e,t=n(37)("iframe"),r=i.length;for(t.style.display="none",n(84).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(41),o=n(24);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(3).f,o=n(2),i=n(9)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(9)},function(e,t,n){var r=n(1),o=n(0),i=n(13),a=n(26),u=n(3).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){function n(e,t,n,o,i,a,u,c){if(r(t),!e){var f;if(void 0===t)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,i,a,u,c],l=0;f=new Error(t.replace(/%s/g,function(){return s[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(12))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(2),o=n(33),i=n(17)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(67);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(4)&&!n(11)(function(){return 7!=Object.defineProperty(n(37)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(7),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var 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};t.__esModule=!0;var i=n(74),a=r(i),u=n(89),c=r(u),f="function"==typeof c.default&&"symbol"===o(a.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":o(e)};t.default="function"==typeof c.default&&"symbol"===f(a.default)?function(e){return void 0===e?"undefined":f(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":f(e)}},function(e,t,n){"use strict";var r=n(13),o=n(5),i=n(40),a=n(6),u=n(21),c=n(78),f=n(25),s=n(34),l=n(9)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,y,h,v){c(n,t,m);var g,b,w,O=function(e){if(!d&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E="values"==y,x=!1,T=e.prototype,k=T[l]||T["@@iterator"]||y&&T[y],_=k||O(y),M=y?E?O("entries"):_:void 0,j="Array"==t?T.entries||k:k;if(j&&(w=s(j.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),r||"function"==typeof w[l]||a(w,l,p)),E&&k&&"values"!==k.name&&(x=!0,_=function(){return k.call(this)}),r&&!v||!d&&!x&&T[l]||a(T,l,_),u[t]=_,u[S]=p,y)if(g={values:E?_:O("values"),keys:h?_:O("keys"),entries:M},v)for(b in g)b in T||i(T,b,g[b]);else o(o.P+o.F*(d||x),t,g);return g}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(2),o=n(8),i=n(81)(!1),a=n(17)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),c=0,f=[];for(n in u)n!=a&&r(u,n)&&f.push(n);for(;t.length>c;)r(u,n=t[c++])&&(~i(f,n)||f.push(n));return f}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(41),o=n(24).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(28),o=n(15),i=n(8),a=n(19),u=n(2),c=n(36),f=Object.getOwnPropertyDescriptor;t.f=n(4)?f:function(e,t){if(e=i(e),t=a(t,!0),c)try{return f(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";(function(t){var r=n(29),o=r;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(12))},,,,,,,,,,,,,function(e,t,n){e.exports=n(60)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(61),u=n.n(a),c=n(62),f=n.n(c),s=n(118),l=n.n(s),d=n(119),p=n.n(d),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=window.VPAdminGutenbergVariables,h=wp.i18n.__,v=wp.element,g=v.Component,b=v.Fragment,w=v.RawHTML,O=wp.blocks.registerBlockType,S=wp.components,E=S.Placeholder,x=S.Spinner,T=S.SelectControl,k=S.withAPIData,_=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),m(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.attributes.id!==e.attributes.id||this.props.portfolioLayouts!==e.portfolioLayouts||this.props.className!==e.className}},{key:"render",value:function(){var e=this.props,t=e.portfolioLayouts,n=e.attributes,r=e.setAttributes,o=this.props.className,i=n.id,a=n.ghostkitClassname,c=!1,s=!1;a&&(o=u()(o,a)),t&&t.data&&t.data.success?(c=[{label:h("--- Select layout ---"),value:""}],Object.keys(t.data.response).map(function(e){var n=t.data.response[e];c.push({label:"#"+n.id+" - "+n.title,value:n.id}),i&&parseInt(i,10)===n.id&&(s=n.edit_url)})):i&&(c=[{label:"#"+i,value:i}]);var l=y.preview_url+(y.preview_url.split("?")[1]?"&":"?")+"vp_preview_frame=true&vp_preview_frame_id="+i;return wp.element.createElement("div",{className:o},wp.element.createElement(E,{className:"visual-portfolio-gutenberg-placeholder",icon:wp.element.createElement("img",{className:"visual-portfolio-gutenberg-icon",src:p.a,alt:"visual-portfolio-icon"}),label:h("Visual Portfolio")},!Array.isArray(c)&&wp.element.createElement(x,null),Array.isArray(c)&&c.length&&wp.element.createElement(b,null,s&&wp.element.createElement("a",{href:s,target:"_blank"},h("Edit Layout")),wp.element.createElement(T,{value:i,onChange:function(e){return r({id:e})},options:c})),Array.isArray(c)&&!c.length&&h("No portfolio layouts found.")),i?wp.element.createElement("div",{className:"visual-portfolio-gutenberg-preview"},wp.element.createElement(f.a,{src:l,iframeResizerOptions:{resizedCallback:function(e){e.iframe&&jQuery(e.iframe).css("margin-bottom",-jQuery(e.iframe).height()/2)}}})):"")}}]),t}(g);O("nk/visual-portfolio",{title:"Visual Portfolio",icon:wp.element.createElement("img",{className:"dashicon visual-portfolio-gutenberg-icon",src:l.a,alt:"visual-portfolio-icon"}),category:"common",keywords:["visual portfolio","vp","portfolio"],supports:{anchor:!0,className:!0,html:!1,align:["wide","full"],ghostkitIndents:!0,ghostkitDisplay:!0},attributes:{id:{type:"string"}},edit:k(function(){return{portfolioLayouts:"/visual-portfolio/v1/get_layouts/"}})(_),save:function(e){var t=e.attributes,n=e.className,r=t.id,o="[visual_portfolio";return r&&(o+=' id="'+r+'"'),n&&(o+=' class="'+n+'"'),o+="]",wp.element.createElement(w,null,o)}})},function(e,t,n){var r,o,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};/*!
|
2 |
Copyright (c) 2016 Jed Watson.
|
3 |
Licensed under the MIT License (MIT), see
|
4 |
http://jedwatson.github.io/classnames
|
5 |
*/
|
6 |
-
!function(){"use strict";var a=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)a(e,t[r])}function n(e,t){e[t]=!0}function r(e,t){for(var n in t)c.call(t,n)&&(e[n]=!!t[n])}function o(e,t){for(var n=t.split(f),r=n.length,o=0;o<r;++o)e[n[o]]=!0}function a(e,a){if(a){var u=void 0===a?"undefined":i(a);"string"===u?o(e,a):Array.isArray(a)?t(e,a):"object"===u?r(e,a):"number"===u&&n(e,a)}}function u(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=new e;t(i,r);var a=[];for(var u in i)i[u]&&a.push(u);return a.join(" ")}e.prototype=Object.create(null);var c={}.hasOwnProperty,f=/\s+/;return u}();void 0!==e&&e.exports?e.exports=a:"object"===i(n(32))&&n(32)?(r=[],void 0!==(o=function(){return a}.apply(t,r))&&(e.exports=o)):window.classNames=a}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(63),i=r(o),a=n(68),u=r(a),c=n(69),f=r(c),s=n(73),l=r(s),d=n(99),p=r(d),m=n(107),y=r(m),h=n(108),v=r(h),g=n(113),b=r(g),w=n(114),O=function(e){function t(){var e,n,r,o;(0,u.default)(this,t);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return n=r=(0,l.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.updateIframe=function(e){if(!e.src){var t=e.content||e.children;if(t){var n=r.refs.frame;if(n){var o=n.contentDocument;o&&("string"==typeof t?(o.open(),o.write(t),o.close()):(o.open(),o.write('<div id="iframe-root"></div>'),o.close(),b.default.render(t,o.getElementById("iframe-root"))))}}}},r.injectIframeResizerUrl=function(){if(r.props.iframeResizerUrl){var e=r.refs.frame;if(e){var t=e.contentDocument;if(t){var n=null;if(["head","HEAD","body","BODY","div","DIV"].forEach(function(e){if(!n){var r=t.getElementsByTagName(e);r&&r.length&&(n=r[0])}}),!n)return void console.error("Unable to inject iframe resizer script");var o=document.createElement("script");o.type="text/javascript",o.src=r.props.iframeResizerUrl,n.appendChild(o)}}}},r.onLoad=function(){r.injectIframeResizerUrl()},r.resizeIframe=function(e){var t=r.refs.frame;t&&e.iframeResizerEnable&&(0,w.iframeResizer)(e.iframeResizerOptions,t)},o=n,(0,l.default)(r,o)}return(0,p.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){this.updateIframe(this.props),this.resizeIframe(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.updateIframe(e),this.resizeIframe(e)}},{key:"render",value:function(){var e=this.props,t=e.src,n=e.id,r=e.frameBorder,o=e.className,i=e.style;return y.default.createElement("iframe",{ref:"frame",src:t,id:n,frameBorder:r,className:o,style:i,onLoad:this.onLoad})}}]),t}(y.default.Component);O.propTypes={content:v.default.oneOfType([v.default.string,v.default.element]),src:v.default.string,iframeResizerEnable:v.default.bool,iframeResizerOptions:v.default.object,iframeResizerUrl:v.default.oneOfType([v.default.string,v.default.bool]),id:v.default.string,frameBorder:v.default.number,className:v.default.string,style:v.default.object},O.defaultProps={iframeResizerEnable:!0,iframeResizerOptions:{},iframeResizerUrl:"https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.8/iframeResizer.contentWindow.min.js",frameBorder:0,style:{width:"100%",minHeight:20}},t.default=O},function(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){n(65),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){var r=n(33),o=n(34);n(66)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(5),o=n(0),i=n(11);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(71),__esModule:!0}},function(e,t,n){n(72);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(5);r(r.S+r.F*!n(4),"Object",{defineProperty:n(3).f})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(38),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports={default:n(75),__esModule:!0}},function(e,t,n){n(76),n(85),e.exports=n(26).f("iterator")},function(e,t,n){"use strict";var r=n(77)(!0);n(39)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(20),o=n(16);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),c=r(n),f=u.length;return c<0||c>=f?e?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===f||(a=u.charCodeAt(c+1))<56320||a>57343?e?u.charAt(c):i:e?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(22),o=n(15),i=n(25),a={};n(6)(a,n(9)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(3),o=n(10),i=n(23);e.exports=n(4)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,c=0;u>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(42);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(8),o=n(82),i=n(83);e.exports=function(e){return function(t,n,a){var u,c=r(t),f=o(c.length),s=i(a,f);if(e&&n!=n){for(;f>s;)if((u=c[s++])!=u)return!0}else for(;f>s;s++)if((e||s in c)&&c[s]===n)return e||s||0;return!e&&-1}}},function(e,t,n){var r=n(20),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(20),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){n(86);for(var r=n(1),o=n(6),i=n(21),a=n(9)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var f=u[c],s=r[f],l=s&&s.prototype;l&&!l[a]&&o(l,a,f),i[f]=i.Array}},function(e,t,n){"use strict";var r=n(87),o=n(88),i=n(21),a=n(8);e.exports=n(39)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){n(91),n(96),n(97),n(98),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r="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},o=n(1),i=n(2),a=n(4),u=n(5),c=n(40),f=n(92).KEY,s=n(11),l=n(18),d=n(25),p=n(14),m=n(9),y=n(26),h=n(27),v=n(93),g=n(94),b=n(10),w=n(7),O=n(8),S=n(19),E=n(15),x=n(22),T=n(95),k=n(45),_=n(3),M=n(23),j=k.f,I=_.f,N=T.f,P=o.Symbol,C=o.JSON,R=C&&C.stringify,z=m("_hidden"),A=m("toPrimitive"),F={}.propertyIsEnumerable,L=l("symbol-registry"),D=l("symbols"),H=l("op-symbols"),W=Object.prototype,V="function"==typeof P,B=o.QObject,q=!B||!B.prototype||!B.prototype.findChild,U=a&&s(function(){return 7!=x(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=j(W,t);r&&delete W[t],I(e,t,n),r&&e!==W&&I(W,t,r)}:I,J=function(e){var t=D[e]=x(P.prototype);return t._k=e,t},Y=V&&"symbol"==r(P.iterator)?function(e){return"symbol"==(void 0===e?"undefined":r(e))}:function(e){return e instanceof P},G=function(e,t,n){return e===W&&G(H,t,n),b(e),t=S(t,!0),b(n),i(D,t)?(n.enumerable?(i(e,z)&&e[z][t]&&(e[z][t]=!1),n=x(n,{enumerable:E(0,!1)})):(i(e,z)||I(e,z,E(1,{})),e[z][t]=!0),U(e,t,n)):I(e,t,n)},K=function(e,t){b(e);for(var n,r=v(t=O(t)),o=0,i=r.length;i>o;)G(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?x(e):K(x(e),t)},X=function(e){var t=F.call(this,e=S(e,!0));return!(this===W&&i(D,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(D,e)||i(this,z)&&this[z][e])||t)},$=function(e,t){if(e=O(e),t=S(t,!0),e!==W||!i(D,t)||i(H,t)){var n=j(e,t);return!n||!i(D,t)||i(e,z)&&e[z][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=N(O(e)),r=[],o=0;n.length>o;)i(D,t=n[o++])||t==z||t==f||r.push(t);return r},ee=function(e){for(var t,n=e===W,r=N(n?H:O(e)),o=[],a=0;r.length>a;)!i(D,t=r[a++])||n&&!i(W,t)||o.push(D[t]);return o};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function t(n){this===W&&t.call(H,n),i(this,z)&&i(this[z],e)&&(this[z][e]=!1),U(this,e,E(1,n))};return a&&q&&U(W,e,{configurable:!0,set:t}),J(e)},c(P.prototype,"toString",function(){return this._k}),k.f=$,_.f=G,n(44).f=T.f=Z,n(28).f=X,n(43).f=ee,a&&!n(13)&&c(W,"propertyIsEnumerable",X,!0),y.f=function(e){return J(m(e))}),u(u.G+u.W+u.F*!V,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)m(te[ne++]);for(var re=M(m.store),oe=0;re.length>oe;)h(re[oe++]);u(u.S+u.F*!V,"Symbol",{for:function(e){return i(L,e+="")?L[e]:L[e]=P(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!V,"Object",{create:Q,defineProperty:G,defineProperties:K,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),C&&u(u.S+u.F*(!V||s(function(){var e=P();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(w(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,R.apply(C,r)}}),P.prototype[A]||n(6)(P.prototype,A,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){var r="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},o=n(14)("meta"),i=n(7),a=n(2),u=n(3).f,c=0,f=Object.isExtensible||function(){return!0},s=!n(11)(function(){return f(Object.preventExtensions({}))}),l=function(e){u(e,o,{value:{i:"O"+ ++c,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==(void 0===e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,o)){if(!f(e))return"F";if(!t)return"E";l(e)}return e[o].i},p=function(e,t){if(!a(e,o)){if(!f(e))return!0;if(!t)return!1;l(e)}return e[o].w},m=function(e){return s&&y.NEED&&f(e)&&!a(e,o)&&l(e),e},y=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:m}},function(e,t,n){var r=n(23),o=n(43),i=n(28);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),c=i.f,f=0;u.length>f;)c.call(e,a=u[f++])&&t.push(a);return t}},function(e,t,n){var r=n(42);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r="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},o=n(8),i=n(44).f,a={}.toString,u="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return i(e)}catch(e){return u.slice()}};e.exports.f=function(e){return u&&"[object Window]"==a.call(e)?c(e):i(o(e))}},function(e,t){},function(e,t,n){n(27)("asyncIterator")},function(e,t,n){n(27)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(100),i=r(o),a=n(104),u=r(a),c=n(38),f=r(c);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,f.default)(t)));e.prototype=(0,u.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(101),__esModule:!0}},function(e,t,n){n(102),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(103).set})},function(e,t,n){var r=n(7),o=n(10),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(35)(Function.call,n(45).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(105),__esModule:!0}},function(e,t,n){n(106);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(5);r(r.S,"Object",{create:n(22)})},function(e,t){e.exports=React},function(e,t,n){(function(t){var r="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};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o};e.exports=n(109)(i,!0)}else e.exports=n(112)()}).call(t,n(12))},function(e,t,n){"use strict";(function(t){var r="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},o=n(29),i=n(30),a=n(46),u=n(110),c=n(31),f=n(111);e.exports=function(e,n){function s(e){var t=e&&(M&&e[M]||e[j]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function d(e){this.message=e,this.stack=""}function p(e){function r(r,f,s,l,p,m,y){if(l=l||I,m=m||s,y!==c)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var h=l+":"+s;!o[h]&&u<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,l),o[h]=!0,u++)}return null==f[s]?r?new d(null===f[s]?"The "+p+" `"+m+"` is marked as required in `"+l+"`, but its value is `null`.":"The "+p+" `"+m+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(f,s,l,p,m)}if("production"!==t.env.NODE_ENV)var o={},u=0;var f=r.bind(null,!1);return f.isRequired=r.bind(null,!0),f}function m(e){function t(t,n,r,o,i,a){var u=t[n];if(x(u)!==e)return new d("Invalid "+o+" `"+i+"` of type `"+T(u)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return p(t)}function y(e){function t(t,n,r,o,i){if("function"!=typeof e)return new d("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){return new d("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u<a.length;u++){var f=e(a,u,r,o,i+"["+u+"]",c);if(f instanceof Error)return f}return null}return p(t)}function h(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||I;return new d("Invalid "+o+" `"+i+"` of type `"+_(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return p(t)}function v(e){function n(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(l(a,e[u]))return null;return new d("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?p(n):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull)}function g(e){function t(t,n,r,o,i){if("function"!=typeof e)return new d("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=x(a);if("object"!==u)return new d("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var f in a)if(a.hasOwnProperty(f)){var s=e(a,f,r,o,i+"."+f,c);if(s instanceof Error)return s}return null}return p(t)}function b(e){function n(t,n,r,o,i){for(var a=0;a<e.length;a++){if(null==(0,e[a])(t,n,r,o,i,c))return null}return new d("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(var r=0;r<e.length;r++){var i=e[r];if("function"!=typeof i)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",k(i),r),o.thatReturnsNull}return p(n)}function w(e){function t(t,n,r,o,i){var a=t[n],u=x(a);if("object"!==u)return new d("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var f in e){var s=e[f];if(s){var l=s(a,f,r,o,i+"."+f,c);if(l)return l}}return null}return p(t)}function O(e){function t(t,n,r,o,i){var a=t[n],f=x(a);if("object"!==f)return new d("Invalid "+o+" `"+i+"` of type `"+f+"` supplied to `"+r+"`, expected `object`.");var s=u({},t[n],e);for(var l in s){var p=e[l];if(!p)return new d("Invalid "+o+" `"+i+"` key `"+l+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(a,l,r,o,i+"."+l,c);if(m)return m}return null}return p(t)}function S(t){switch(void 0===t?"undefined":r(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!S(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!S(a[1]))return!1}return!0;default:return!1}}function E(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function x(e){var t=void 0===e?"undefined":r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function T(e){if(void 0===e||null===e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function k(e){var t=T(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function _(e){return e.constructor&&e.constructor.name?e.constructor.name:I}var M="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",I="<<anonymous>>",N={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:function(){return p(o.thatReturnsNull)}(),arrayOf:y,element:function(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){return new d("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return p(t)}(),instanceOf:h,node:function(){function e(e,t,n,r,o){return S(e[t])?null:new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return p(e)}(),objectOf:g,oneOf:v,oneOfType:b,shape:w,exact:O};return d.prototype=Error.prototype,N.checkPropTypes=f,N.PropTypes=N,N}}).call(t,n(12))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
|
7 |
object-assign
|
8 |
(c) Sindre Sorhus
|
9 |
@license MIT
|
10 |
*/
|
11 |
-
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;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 r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,c=r(e),f=1;f<arguments.length;f++){n=Object(arguments[f]);for(var s in n)i.call(n,s)&&(c[s]=n[s]);if(o){u=o(n);for(var l=0;l<u.length;l++)a.call(n,u[l])&&(c[u[l]]=n[u[l]])}}return c}},function(e,t,n){"use strict";(function(t){function r(e,n,r,f,s){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var d;try{i("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",f||"React class",r,l,o(e[l])),d=e[l](n,l,f,r,null,u)}catch(e){d=e}if(a(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",f||"React class",r,l,void 0===d?"undefined":o(d)),d instanceof Error&&!(d.message in c)){c[d.message]=!0;var p=s?s():"";a(!1,"Failed %s type: %s%s",r,d.message,null!=p?p:"")}}}var 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};if("production"!==t.env.NODE_ENV)var i=n(30),a=n(46),u=n(31),c={};e.exports=r}).call(t,n(12))},function(e,t,n){"use strict";var r=n(29),o=n(30),i=n(31);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";e.exports=n(115)},function(e,t,n){t.iframeResizer=n(116),t.iframeResizerContentWindow=n(117)},function(e,t,n){var r,o,i,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};!function(n){"use strict";function u(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function c(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function f(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!q;e+=1)q=window[t[e]+"RequestAnimationFrame"];q||p("setup","RequestAnimationFrame not supported")}function s(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}function l(e){return W+"["+s(e)+"]"}function d(e){return J[e]?J[e].log:L}function p(e,t){h("log",e,t,d(e))}function m(e,t){h("info",e,t,d(e))}function y(e,t){h("warn",e,t,!0)}function h(e,t,n,r){!0===r&&"object"===a(window.console)&&console[e](l(t),n)}function v(e){function t(){function e(){x(P),O(C),M("resizedCallback",P)}n("Height"),n("Width"),T(e,P,"init")}function n(e){var t=Number(J[C]["max"+e]),n=Number(J[C]["min"+e]),r=e.toLowerCase(),o=Number(P[r]);p(C,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,p(C,"Set "+r+" to min value")),o>t&&(o=t,p(C,"Set "+r+" to max value")),P[r]=""+o}function r(e){return N.substr(N.indexOf(":")+H+e)}function o(e){p(C,"MessageCallback passed: {iframe: "+P.iframe.id+", message: "+e+"}"),M("messageCallback",{iframe:P.iframe,message:JSON.parse(e)}),p(C,"--")}function i(){var e=document.body.getBoundingClientRect(),t=P.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}function a(e,t){function n(){k("Send Page Info","pageInfo:"+i(),e,t)}I(n,32,t)}function f(){function e(e,r){function o(){J[n]?a(J[n].iframe,n):t()}["scroll","resize"].forEach(function(t){p(n,e+t+" listener for sendPageInfo"),r(window,t,o)})}function t(){e("Remove ",c)}var n=C;!function(){e("Add ",u)}(),J[n]&&(J[n].stopPageInfo=t)}function s(){J[C]&&J[C].stopPageInfo&&(J[C].stopPageInfo(),delete J[C].stopPageInfo)}function l(e){var t=e.getBoundingClientRect();return w(C),{x:Math.floor(Number(t.left)+Number(B.x)),y:Math.floor(Number(t.top)+Number(B.y))}}function d(e){var t=e?l(P.iframe):{x:0,y:0},n=function(){return{x:Number(P.width)+t.x,y:Number(P.height)+t.y}}();p(C,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?function(){window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):y(C,"Unable to scroll to requested position, window.parentIFrame not found")}():function(){B=n,h(),p(C,"--")}()}function h(){!1!==M("scrollCallback",B)?O(C):S()}function v(e){var t=e.split("#")[1]||"",n=decodeURIComponent(t),r=document.getElementById(n)||document.getElementsByName(n)[0];r?function(){var e=l(r);p(C,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),B={x:e.x,y:e.y},h(),p(C,"--")}():window.top!==window.self?function(){window.parentIFrame?window.parentIFrame.moveToAnchor(t):p(C,"In page link #"+t+" not found and window.parentIFrame not found")}():p(C,"In page link #"+t+" not found")}function M(e,t){return g(C,e,t)}function j(){J[C]&&(J[C].firstRun=!1)}var N=e.data,P={},C=null;"[iFrameResizerChild]Ready"===N?function(){for(var e in J)k("iFrame requested init",_(e),document.getElementById(e),e)}():function(){return W===(""+N).substr(0,V)&&N.substr(V).split(":")[0]in J}()?(P=function(){var e=N.substr(V).split(":");return{iframe:J[e[0]]&&J[e[0]].iframe,id:e[0],height:e[1],width:e[2],type:e[3]}}(),C=G=P.id,J[C]&&(J[C].loaded=!0),!function(){var e=P.type in{true:1,false:1,undefined:1};return e&&p(C,"Ignoring init message from meta parent page"),e}()&&function(e){var t=!0;return J[e]||(t=!1,y(P.type+" No settings for "+e+". Message was: "+N)),t}(C)&&(p(C,"Received: "+N),function(){var e=!0;return null===P.iframe&&(y(C,"IFrame ("+P.id+") not found"),e=!1),e}()&&function(){var t=e.origin,n=J[C]&&J[C].checkOrigin;if(n&&""+t!="null"&&!function(){return n.constructor===Array?function(){var e=0,r=!1;for(p(C,"Checking connection is from allowed list of origins: "+n);e<n.length;e++)if(n[e]===t){r=!0;break}return r}():function(){var e=J[C]&&J[C].remoteHost;return p(C,"Checking connection is from: "+e),t===e}()}())throw new Error("Unexpected message received from: "+t+" for "+P.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(J[C]&&J[C].firstRun&&j(),P.type){case"close":J[C].closeRequestCallback?g(C,"closeRequestCallback",J[C].iframe):b(P.iframe);break;case"message":o(r(6));break;case"scrollTo":d(!1);break;case"scrollToOffset":d(!0);break;case"pageInfo":a(J[C]&&J[C].iframe,C),f();break;case"pageInfoStop":s();break;case"inPageLink":v(r(9));break;case"reset":E(P);break;case"init":t(),M("initCallback",P.iframe);break;default:t()}}())):m(C,"Ignored: "+N)}function g(e,t,n){var r=null,o=null;if(J[e]){if("function"!=typeof(r=J[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function b(e){var t=e.id;p(t,"Removing iFrame: "+t),e.parentNode&&e.parentNode.removeChild(e),g(t,"closedCallback",t),p(t,"--"),delete J[t]}function w(e){null===B&&(B={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop},p(e,"Get page position: "+B.x+","+B.y))}function O(e){null!==B&&(window.scrollTo(B.x,B.y),p(e,"Set page position: "+B.x+","+B.y),S())}function S(){B=null}function E(e){function t(){x(e),k("reset","reset",e.iframe,e.id)}p(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),w(e.id),T(t,e,"reset")}function x(e){function t(t){e.iframe.style[t]=e[t]+"px",p(e.id,"IFrame ("+o+") "+t+" set to "+e[t]+"px")}function n(t){D||"0"!==e[t]||(D=!0,p(o,"Hidden iFrame detected, creating visibility listener"),N())}function r(e){t(e),n(e)}var o=e.iframe.id;J[o]&&(J[o].sizeHeight&&r("height"),J[o].sizeWidth&&r("width"))}function T(e,t,n){n!==t.type&&q?(p(t.id,"Requesting animation frame"),q(e)):e()}function k(e,t,n,r,o){function i(){var o=J[r]&&J[r].targetOrigin;p(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(W+t,o)}function a(){y(r,"["+e+"] IFrame("+r+") not found")}var u=!1;r=r||n.id,J[r]&&(function(){n&&"contentWindow"in n&&null!==n.contentWindow?i():a()}(),function(){function e(){!J[r]||J[r].loaded||u||(u=!0,y(r,"IFrame has not responded within "+J[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}o&&J[r]&&J[r].warningTimeout&&(J[r].msgTimeout=setTimeout(e,J[r].warningTimeout))}())}function _(e){return e+":"+J[e].bodyMarginV1+":"+J[e].sizeWidth+":"+J[e].log+":"+J[e].interval+":"+J[e].enablePublicMethods+":"+J[e].autoResize+":"+J[e].bodyMargin+":"+J[e].heightCalculationMethod+":"+J[e].bodyBackground+":"+J[e].bodyPadding+":"+J[e].tolerance+":"+J[e].inPageLinks+":"+J[e].resizeFrom+":"+J[e].widthCalculationMethod}function M(e,t){function r(){var e=t&&t.id||K.id+F++;return null!==document.getElementById(e)&&(e+=F++),e}function o(){var t=J[s]&&J[s].firstRun,n=J[s]&&J[s].heightCalculationMethod in U;!t&&n&&E({iframe:e,height:0,width:0,type:"init"})}function i(e){if("object"!==(void 0===e?"undefined":a(e)))throw new TypeError("Options is not an object")}function c(e){for(var t in K)K.hasOwnProperty(t)&&(J[s][t]=e.hasOwnProperty(t)?e[t]:K[t])}function f(e){return""===e||"file://"===e?"*":e}var s=function(n){return G=n,""===n&&(e.id=n=r(),L=(t||{}).log,G=n,p(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);!function(){return s in J&&"iFrameResizer"in e}()?(function(t){t=t||{},J[s]={firstRun:!0,iframe:e,remoteHost:e.src.split("/").slice(0,3).join("/")},i(t),c(t),J[s]&&(J[s].targetOrigin=!0===J[s].checkOrigin?f(J[s].remoteHost):"*")}(t),function(){switch(p(s,"IFrame scrolling "+(J[s]&&J[s].scrolling?"enabled":"disabled")+" for "+s),e.style.overflow=!1===(J[s]&&J[s].scrolling)?"hidden":"auto",J[s]&&J[s].scrolling){case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=J[s]?J[s].scrolling:"no"}}(),function(){function t(t){1/0!==J[s][t]&&0!==J[s][t]&&(e.style[t]=J[s][t]+"px",p(s,"Set "+t+" = "+J[s][t]+"px"))}function n(e){if(J[s]["min"+e]>J[s]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),function(){"number"!=typeof(J[s]&&J[s].bodyMargin)&&"0"!==(J[s]&&J[s].bodyMargin)||(J[s].bodyMarginV1=J[s].bodyMargin,J[s].bodyMargin=J[s].bodyMargin+"px")}(),function(t){function r(){k("iFrame.onload",t,e,n,!0),o()}u(e,"load",r),k("init",t,e,n,!0)}(_(s)),function(){Function.prototype.bind&&J[s]&&(J[s].iframe.iFrameResizer={close:b.bind(null,J[s].iframe),resize:k.bind(null,"Window resize","resize",J[s].iframe),moveToAnchor:function(e){k("Move to anchor","moveToAnchor:"+e,J[s].iframe,s)},sendMessage:function(e){e=JSON.stringify(e),k("Send Message","message:"+e,J[s].iframe,s)}})}()):y(s,"Ignored iFrame, already setup.")}function j(e,t){null===Y&&(Y=setTimeout(function(){Y=null,e()},t))}function I(e,t,n){Q[n]||(Q[n]=setTimeout(function(){Q[n]=null,e()},t))}function N(){function e(){for(var e in J)!function(e){function t(t){return"0px"===(J[e]&&J[e].iframe.style[t])}J[e]&&function(e){return null!==e.offsetParent}(J[e].iframe)&&(t("height")||t("width"))&&k("Visibility change","resize",J[e].iframe,e)}(e)}function t(t){p("window","Mutation observed: "+t[0].target+" "+t[0].type),j(e,16)}var n=window.MutationObserver||window.WebKitMutationObserver;n&&function(){var e=document.querySelector("body"),r={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new n(t).observe(e,r)}()}function P(e){function t(){R("Window "+e,"resize")}p("window","Trigger event: "+e),j(t,16)}function C(){function e(){R("Tab Visable","resize")}"hidden"!==document.visibilityState&&(p("document","Trigger event: Visiblity change"),j(e,16))}function R(e,t){for(var n in J)(function(e){return J[e]&&"parent"===J[e].resizeFrom&&J[e].autoResize&&!J[e].firstRun})(n)&&k(e,t,document.getElementById(n),n)}function z(){u(window,"message",v),u(window,"resize",function(){P("resize")}),u(document,"visibilitychange",C),u(document,"-webkit-visibilitychange",C),u(window,"focusin",function(){P("focus")}),u(window,"focus",function(){P("focus")})}function A(){function e(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),M(t,e),r.push(t))}function t(e){e&&e.enablePublicMethods&&y("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var r;return f(),z(),function(o,i){switch(r=[],t(o),void 0===i?"undefined":a(i)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(n,o));break;case"object":e(o,i);break;default:throw new TypeError("Unexpected data type ("+(void 0===i?"undefined":a(i))+")")}return r}}if("undefined"!=typeof window){var F=0,L=!1,D=!1,H="message".length,W="[iFrameSizer]",V=W.length,B=null,q=window.requestAnimationFrame,U={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},J={},Y=null,G="Host Page",K={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){y("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},Q={};window.jQuery&&function(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){function t(t,n){M(n,e)}return this.filter("iframe").each(t).end()}):m("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),o=[],r=A,(i="function"==typeof r?r.apply(t,o):r)!==n&&(e.exports=i)}}()},function(e,t){var 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};!function(t){"use strict";function r(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function o(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function a(e){return de+"["+me+"] "+e}function u(e){le&&"object"===n(window.console)&&console.log(a(e))}function c(e){"object"===n(window.console)&&console.warn(a(e))}function f(){s(),u("Initialising iFrame ("+location.href+")"),l(),m(),p("background",G),p("padding",$),_(),b(),w(),y(),j(),O(),ce=M(),H("init","Init message from host page"),je()}function s(){function e(e){return"true"===e}var n=ue.substr(pe).split(":");me=n[0],K=t!==n[1]?Number(n[1]):K,Z=t!==n[2]?e(n[2]):Z,le=t!==n[3]?e(n[3]):le,fe=t!==n[4]?Number(n[4]):fe,J=t!==n[6]?e(n[6]):J,Q=n[7],ie=t!==n[8]?n[8]:ie,G=n[9],$=n[10],we=t!==n[11]?Number(n[11]):we,ce.enable=t!==n[12]&&e(n[12]),he=t!==n[13]?n[13]:he,ke=t!==n[14]?n[14]:ke}function l(){function e(e,t){return"function"==typeof e&&(u("Setup custom "+t+"CalcMethod"),Ne[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(!function(){var e=window.iFrameResizer;u("Reading data from page: "+JSON.stringify(e)),Me="messageCallback"in e?e.messageCallback:Me,je="readyCallback"in e?e.readyCallback:je,be="targetOrigin"in e?e.targetOrigin:be,ie="heightCalculationMethod"in e?e.heightCalculationMethod:ie,ke="widthCalculationMethod"in e?e.widthCalculationMethod:ke}(),ie=e(ie,"height"),ke=e(ke,"width")),u("TargetOrigin for parent set to: "+be)}function d(e,t){return-1!==t.indexOf("-")&&(c("Negative CSS value ignored for "+e),t=""),t}function p(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,u("Body "+e+' set to "'+n+'"'))}function m(){t===Q&&(Q=K+"px"),p("margin",d("margin",Q))}function y(){document.documentElement.style.height="",document.body.style.height="",u('HTML & body height set to "auto"')}function h(e){var t={add:function(t){function n(){H(e.eventName,e.eventType)}Pe[t]=n,r(window,t,n)},remove:function(e){var t=Pe[e];delete Pe[e],o(window,e,t)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),u(i(e.method)+" event listener: "+e.eventType)}function v(e){h({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),h({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),h({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),h({method:e,eventType:"Input",eventName:"input"}),h({method:e,eventType:"Mouse Up",eventName:"mouseup"}),h({method:e,eventType:"Mouse Down",eventName:"mousedown"}),h({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),h({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),h({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),h({method:e,eventType:"Touch Start",eventName:"touchstart"}),h({method:e,eventType:"Touch End",eventName:"touchend"}),h({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),h({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),h({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),h({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===he&&h({method:e,eventType:"IFrame Resized",eventName:"resize"})}function g(e,t,n,r){return t!==e&&(e in n||(c(e+" is not a valid option for "+r+"CalculationMethod."),e=t),u(r+' calculation method set to "'+e+'"')),e}function b(){ie=g(ie,oe,Re,"height")}function w(){ke=g(ke,Te,ze,"width")}function O(){!0===J?(v("add"),P()):u("Auto Resize disabled")}function S(){u("Disable outgoing messages"),ve=!1}function E(){u("Remove event listener: Message"),o(window,"message",U)}function x(){null!==X&&X.disconnect()}function T(){v("remove"),x(),clearInterval(se)}function k(){S(),E(),!0===J&&T()}function _(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",document.body.appendChild(e)}function M(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function o(e){var r=e.split("#")[1]||e,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];t!==i?function(e){var t=n(e);u("Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y),q(t.y,t.x,"scrollToOffset")}(i):(u("In page link (#"+r+") not found in iFrame, so sending to parent"),q(0,0,"inPageLink","#"+r))}function i(){""!==location.hash&&"#"!==location.hash&&o(location.href)}function a(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&r(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function f(){r(window,"hashchange",i)}function s(){setTimeout(i,te)}return ce.enable?function(){Array.prototype.forEach&&document.querySelectorAll?(u("Setting up location.hash handlers"),a(),f(),s()):c("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}():u("In page linking not enabled"),{findTarget:o}}function j(){u("Enable public methods"),_e.parentIFrame={autoResize:function(e){return!0===e&&!1===J?(J=!0,O()):!1===e&&!0===J&&(J=!1,T()),J},close:function(){q(0,0,"close"),k()},getId:function(){return me},getPageInfo:function(e){"function"==typeof e?(Ie=e,q(0,0,"pageInfo")):(Ie=function(){},q(0,0,"pageInfoStop"))},moveToAnchor:function(e){ce.findTarget(e)},reset:function(){B("parentIFrame.reset")},scrollTo:function(e,t){q(t,e,"scrollTo")},scrollToOffset:function(e,t){q(t,e,"scrollToOffset")},sendMessage:function(e,t){q(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){ie=e,b()},setWidthCalculationMethod:function(e){ke=e,w()},setTargetOrigin:function(e){u("Set targetOrigin: "+e),be=e},size:function(e,t){H("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}}}function I(){0!==fe&&(u("setInterval: "+fe+"ms"),se=setInterval(function(){H("interval","setInterval: "+fe)},Math.abs(fe)))}function N(){function e(e){function t(e){!1===e.complete&&(u("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",a,!1),f.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function n(e){f.splice(f.indexOf(e),1)}function r(e){u("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",a,!1),n(e)}function o(e,n,o){r(e.target),H(n,o+": "+e.target.src,t,t)}function i(e){o(e,"imageLoad","Image loaded")}function a(e){o(e,"imageLoadFailed","Image load failed")}function c(t){H("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var f=[],s=window.MutationObserver||window.WebKitMutationObserver,l=function(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return l=new s(c),u("Create body MutationObserver"),l.observe(e,t),l}();return{disconnect:function(){"disconnect"in l&&(u("Disconnect body MutationObserver"),l.disconnect(),f.forEach(r))}}}function P(){var e=0>fe;window.MutationObserver||window.WebKitMutationObserver?e?I():X=N():(u("MutationObserver not supported in this browser!"),I())}function C(e,t){var n=0;return t=t||document.body,"defaultView"in document&&"getComputedStyle"in document.defaultView?(n=document.defaultView.getComputedStyle(t,null),n=null!==n?n[e]:0):n=function(e){if(/^\d+(px)?$/i.test(e))return parseInt(e,Y);var n=t.style.left,r=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft,t.style.left=n,t.runtimeStyle.left=r,e}(t.currentStyle[e]),parseInt(n,Y)}function R(e){e>Ee/2&&(Ee=2*e,u("Event throttle increased to "+Ee+"ms"))}function z(e,t){for(var n=t.length,r=0,o=0,a=i(e),c=Ce(),f=0;f<n;f++)(r=t[f].getBoundingClientRect()[e]+C("margin"+a,t[f]))>o&&(o=r);return c=Ce()-c,u("Parsed "+n+" HTML elements"),u("Element position calculated in "+c+"ms"),R(c),o}function A(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function F(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&function(){c("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}(),z(e,n)}function L(){return document.querySelectorAll("body *")}function D(e,n,r,o){function i(){return!(e in{init:1,interval:1,size:1})}function a(){return ie in ye||Z&&ke in ye}function c(){u("No change in size detected")}var f,s;!function(){function e(e,t){return!(Math.abs(e-t)<=we)}return f=t!==r?r:Re[ie](),s=t!==o?o:ze[ke](),e(re,f)||Z&&e(xe,s)}()&&"init"!==e?function(){i()&&a()?B(n):e in{interval:1}||c()}():(W(),function(){re=f,xe=s,q(re,xe,e)}())}function H(e,t,n,r){!function(){return Oe&&e in ee}()?(!function(){e in{reset:1,resetPage:1,init:1}||u("Trigger event: "+t)}(),"init"===e?D(e,t,n,r):Ae(e,t,n,r)):u("Trigger event cancelled: "+e)}function W(){Oe||(Oe=!0,u("Trigger event lock on")),clearTimeout(Se),Se=setTimeout(function(){Oe=!1,u("Trigger event lock off"),u("--")},te)}function V(e){re=Re[ie](),xe=ze[ke](),q(re,xe,e)}function B(e){var t=ie;ie=oe,u("Reset trigger event: "+e),W(),V("reset"),ie=t}function q(e,n,r,o,i){!0===ve&&(function(){t===i?i=be:u("Message targetOrigin: "+i)}(),function(){var a=e+":"+n,c=me+":"+a+":"+r+(t!==o?":"+o:"");u("Sending message to host page ("+c+")"),ge.postMessage(de+c,i)}())}function U(t){function n(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function i(){return!(void 0!==e&&e.exports)&&"iFrameResize"in window}function a(){return t.data.split(":")[2]in{true:1,false:1}}function s(){var e=n();e in l?l[e]():i()||a()||c("Unexpected message ("+t.data+")")}var l={init:function(){"interactive"===document.readyState||"complete"===document.readyState?function(){ue=t.data,ge=t.source,f(),ne=!1,setTimeout(function(){ae=!1},te)}():(u("Waiting for page ready"),r(window,"readystatechange",l.initFromParent))},reset:function(){ae?u("Page reset ignored by init"):(u("Page size reset by host page"),V("resetPage"))},resize:function(){H("resizeParent","Parent window requested size check")},moveToAnchor:function(){ce.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();u("PageInfoFromParent called from parent: "+e),Ie(JSON.parse(e)),u(" --")},message:function(){var e=o();u("MessageCallback called from parent: "+e),Me(JSON.parse(e)),u(" --")}};(function(){return de===(""+t.data).substr(0,pe)})()&&function(){!1===ne?s():a()?l.init():u('Ignored message of type "'+n()+'". Received before initialization.')}()}if("undefined"!=typeof window){var J=!0,Y=10,G="",K=0,Q="",X=null,$="",Z=!1,ee={resize:1,click:1},te=128,ne=!0,re=1,oe="bodyOffset",ie=oe,ae=!0,ue="",ce={},fe=32,se=null,le=!1,de="[iFrameSizer]",pe=de.length,me="",ye={max:1,min:1,bodyScroll:1,documentElementScroll:1},he="child",ve=!0,ge=window.parent,be="*",we=0,Oe=!1,Se=null,Ee=16,xe=1,Te="scroll",ke=Te,_e=window,Me=function(){c("MessageCallback function not defined")},je=function(){},Ie=function(){},Ne={height:function(){return c("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return c("Custom width calculation function not defined"),document.body.scrollWidth}},Pe={},Ce=Date.now||function(){return(new Date).getTime()},Re={bodyOffset:function(){return document.body.offsetHeight+C("marginTop")+C("marginBottom")},offset:function(){return Re.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return Ne.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,A(Re))},min:function(){return Math.min.apply(null,A(Re))},grow:function(){return Re.max()},lowestElement:function(){return Math.max(Re.bodyOffset()||Re.documentElementOffset(),z("bottom",L()))},taggedElement:function(){return F("bottom","data-iframe-height")}},ze={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return Ne.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(ze.bodyScroll(),ze.documentElementScroll())},max:function(){return Math.max.apply(null,A(ze))},min:function(){return Math.min.apply(null,A(ze))},rightMostElement:function(){return z("right",L())},taggedElement:function(){return F("right","data-iframe-width")}},Ae=function(e){var t,n,r,o=null,i=0,a=function(){i=Ce(),o=null,r=e.apply(t,n),o||(t=n=null)};return function(){var u=Ce();i||(i=u);var c=Ee-(u-i);return t=this,n=arguments,c<=0||c>Ee?(o&&(clearTimeout(o),o=null),i=u,r=e.apply(t,n),o||(t=n=null)):o||(o=setTimeout(a,c)),r}}(D);r(window,"message",U),function(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}()}}()},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23000%7D%3C/style%3E%3C/defs%3E%3Cpath id='BR' class='cls-1' d='M0 6h7v9H0z'/%3E%3Cpath id='BL' class='cls-1' d='M8 10h7v5H8z'/%3E%3Cpath id='TR' class='cls-1' d='M0 0h7v5H0z'/%3E%3Cpath id='TL' class='cls-1' d='M8 0h7v9H8z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23bbb%7D%3C/style%3E%3C/defs%3E%3Cpath id='BR' class='cls-1' d='M0 6h7v9H0z'/%3E%3Cpath id='BL' class='cls-1' d='M8 10h7v5H8z'/%3E%3Cpath id='TR' class='cls-1' d='M0 0h7v5H0z'/%3E%3Cpath id='TL' class='cls-1' d='M8 0h7v9H8z'/%3E%3C/svg%3E"}]);
|
1 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get: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,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=61)}([function(e,t){var n=e.exports={version:"2.5.6"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(10),o=n(36),i=n(19),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1),o=n(0),i=n(35),a=n(6),u=n(2),c=function e(t,n,c){var f,s,l,d=t&e.F,p=t&e.G,m=t&e.S,y=t&e.P,h=t&e.B,v=t&e.W,g=p?o:o[n]||(o[n]={}),b=g.prototype,w=p?r:m?r[n]:(r[n]||{}).prototype;p&&(c=n);for(f in c)(s=!d&&w&&void 0!==w[f])&&u(g,f)||(l=s?w[f]:c[f],g[f]=p&&"function"!=typeof w[f]?c[f]:h&&s?i(l,r):v&&w[f]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):y&&"function"==typeof l?i(Function.call,l):l,y&&((g.virtual||(g.virtual={}))[f]=l,t&e.R&&b&&!b[f]&&a(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(3),o=n(15);e.exports=n(4)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var 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.exports=function(e){return"object"===(void 0===e?"undefined":n(e))?null!==e:"function"==typeof e}},function(e,t,n){var r=n(82),o=n(16);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(18)("wks"),o=n(14),i=n(1).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(7);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(s===setTimeout)return setTimeout(e,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function a(){y&&p&&(y=!1,p.length?m=p.concat(m):h=-1,m.length&&u())}function u(){if(!y){var e=o(a);y=!0;for(var t=m.length;t;){for(p=m,m=[];++h<t;)p&&p[h].run();h=-1,t=m.length}p=null,y=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var s,l,d=e.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(e){s=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var p,m=[],y=!1,h=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new c(e,t)),1!==m.length||y||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.prependListener=f,d.prependOnceListener=f,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(18)("keys"),o=n(14);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(0),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(7);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(10),o=n(81),i=n(24),a=n(17)("IE_PROTO"),u=function(){},c=function(){var e,t=n(37)("iframe"),r=i.length;for(t.style.display="none",n(86).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(41),o=n(24);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(3).f,o=n(2),i=n(9)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(9)},function(e,t,n){var r=n(1),o=n(0),i=n(13),a=n(26),u=n(3).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){function n(e,t,n,o,i,a,u,c){if(r(t),!e){var f;if(void 0===t)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,i,a,u,c],l=0;f=new Error(t.replace(/%s/g,function(){return s[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(12))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(2),o=n(33),i=n(17)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(69);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(4)&&!n(11)(function(){return 7!=Object.defineProperty(n(37)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(7),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var 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};t.__esModule=!0;var i=n(76),a=r(i),u=n(91),c=r(u),f="function"==typeof c.default&&"symbol"===o(a.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":o(e)};t.default="function"==typeof c.default&&"symbol"===f(a.default)?function(e){return void 0===e?"undefined":f(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":f(e)}},function(e,t,n){"use strict";var r=n(13),o=n(5),i=n(40),a=n(6),u=n(21),c=n(80),f=n(25),s=n(34),l=n(9)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,y,h,v){c(n,t,m);var g,b,w,O=function(e){if(!d&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E="values"==y,x=!1,T=e.prototype,k=T[l]||T["@@iterator"]||y&&T[y],_=k||O(y),M=y?E?O("entries"):_:void 0,j="Array"==t?T.entries||k:k;if(j&&(w=s(j.call(new e)))!==Object.prototype&&w.next&&(f(w,S,!0),r||"function"==typeof w[l]||a(w,l,p)),E&&k&&"values"!==k.name&&(x=!0,_=function(){return k.call(this)}),r&&!v||!d&&!x&&T[l]||a(T,l,_),u[t]=_,u[S]=p,y)if(g={values:E?_:O("values"),keys:h?_:O("keys"),entries:M},v)for(b in g)b in T||i(T,b,g[b]);else o(o.P+o.F*(d||x),t,g);return g}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(2),o=n(8),i=n(83)(!1),a=n(17)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),c=0,f=[];for(n in u)n!=a&&r(u,n)&&f.push(n);for(;t.length>c;)r(u,n=t[c++])&&(~i(f,n)||f.push(n));return f}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(41),o=n(24).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(28),o=n(15),i=n(8),a=n(19),u=n(2),c=n(36),f=Object.getOwnPropertyDescriptor;t.f=n(4)?f:function(e,t){if(e=i(e),t=a(t,!0),c)try{return f(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";(function(t){var r=n(29),o=r;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(12))},,,,,,,,,,,,,,,function(e,t,n){e.exports=n(62)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(63),u=n.n(a),c=n(64),f=n.n(c),s=n(120),l=n.n(s),d=n(121),p=n.n(d),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=window.VPAdminGutenbergVariables,h=wp.i18n.__,v=wp.element,g=v.Component,b=v.Fragment,w=v.RawHTML,O=wp.blocks.registerBlockType,S=wp.components,E=S.Placeholder,x=S.Spinner,T=S.SelectControl,k=S.withAPIData,_=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),m(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.attributes.id!==e.attributes.id||this.props.portfolioLayouts!==e.portfolioLayouts||this.props.className!==e.className}},{key:"render",value:function(){var e=this.props,t=e.portfolioLayouts,n=e.attributes,r=e.setAttributes,o=this.props.className,i=n.id,a=n.ghostkitClassname,c=!1,s=!1;a&&(o=u()(o,a)),t&&t.data&&t.data.success?(c=[{label:h("--- Select layout ---"),value:""}],Object.keys(t.data.response).map(function(e){var n=t.data.response[e];c.push({label:"#"+n.id+" - "+n.title,value:n.id}),i&&parseInt(i,10)===n.id&&(s=n.edit_url)})):i&&(c=[{label:"#"+i,value:i}]);var l=y.preview_url+(y.preview_url.split("?")[1]?"&":"?")+"vp_preview_frame=true&vp_preview_frame_id="+i;return wp.element.createElement("div",{className:o},wp.element.createElement(E,{className:"visual-portfolio-gutenberg-placeholder",icon:wp.element.createElement("img",{className:"visual-portfolio-gutenberg-icon",src:p.a,alt:"visual-portfolio-icon"}),label:h("Visual Portfolio")},!Array.isArray(c)&&wp.element.createElement(x,null),Array.isArray(c)&&c.length&&wp.element.createElement(b,null,s&&wp.element.createElement("a",{href:s,target:"_blank"},h("Edit Layout")),wp.element.createElement(T,{value:i,onChange:function(e){return r({id:e})},options:c})),Array.isArray(c)&&!c.length&&h("No portfolio layouts found.")),i?wp.element.createElement("div",{className:"visual-portfolio-gutenberg-preview"},wp.element.createElement(f.a,{src:l,iframeResizerOptions:{resizedCallback:function(e){e.iframe&&jQuery(e.iframe).css("margin-bottom",-jQuery(e.iframe).height()/2)}}})):"")}}]),t}(g);O("nk/visual-portfolio",{title:"Visual Portfolio",icon:wp.element.createElement("img",{className:"dashicon visual-portfolio-gutenberg-icon",src:l.a,alt:"visual-portfolio-icon"}),category:"common",keywords:["visual portfolio","vp","portfolio"],supports:{anchor:!0,className:!0,html:!1,align:["wide","full"],ghostkitIndents:!0,ghostkitDisplay:!0},attributes:{id:{type:"string"}},edit:k(function(){return{portfolioLayouts:"/visual-portfolio/v1/get_layouts/"}})(_),save:function(e){var t=e.attributes,n=e.className,r=t.id,o="[visual_portfolio";return r&&(o+=' id="'+r+'"'),n&&(o+=' class="'+n+'"'),o+="]",wp.element.createElement(w,null,o)}})},function(e,t,n){var r,o,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};/*!
|
2 |
Copyright (c) 2016 Jed Watson.
|
3 |
Licensed under the MIT License (MIT), see
|
4 |
http://jedwatson.github.io/classnames
|
5 |
*/
|
6 |
+
!function(){"use strict";var a=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)a(e,t[r])}function n(e,t){e[t]=!0}function r(e,t){for(var n in t)c.call(t,n)&&(e[n]=!!t[n])}function o(e,t){for(var n=t.split(f),r=n.length,o=0;o<r;++o)e[n[o]]=!0}function a(e,a){if(a){var u=void 0===a?"undefined":i(a);"string"===u?o(e,a):Array.isArray(a)?t(e,a):"object"===u?r(e,a):"number"===u&&n(e,a)}}function u(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=new e;t(i,r);var a=[];for(var u in i)i[u]&&a.push(u);return a.join(" ")}e.prototype=Object.create(null);var c={}.hasOwnProperty,f=/\s+/;return u}();void 0!==e&&e.exports?e.exports=a:"object"===i(n(32))&&n(32)?(r=[],void 0!==(o=function(){return a}.apply(t,r))&&(e.exports=o)):window.classNames=a}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(65),i=r(o),a=n(70),u=r(a),c=n(71),f=r(c),s=n(75),l=r(s),d=n(101),p=r(d),m=n(109),y=r(m),h=n(110),v=r(h),g=n(115),b=r(g),w=n(116),O=function(e){function t(){var e,n,r,o;(0,u.default)(this,t);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return n=r=(0,l.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.updateIframe=function(e){if(!e.src){var t=e.content||e.children;if(t){var n=r.refs.frame;if(n){var o=n.contentDocument;o&&("string"==typeof t?(o.open(),o.write(t),o.close()):(o.open(),o.write('<div id="iframe-root"></div>'),o.close(),b.default.render(t,o.getElementById("iframe-root"))))}}}},r.injectIframeResizerUrl=function(){if(r.props.iframeResizerUrl){var e=r.refs.frame;if(e){var t=e.contentDocument;if(t){var n=null;if(["head","HEAD","body","BODY","div","DIV"].forEach(function(e){if(!n){var r=t.getElementsByTagName(e);r&&r.length&&(n=r[0])}}),!n)return void console.error("Unable to inject iframe resizer script");var o=document.createElement("script");o.type="text/javascript",o.src=r.props.iframeResizerUrl,n.appendChild(o)}}}},r.onLoad=function(){r.injectIframeResizerUrl()},r.resizeIframe=function(e){var t=r.refs.frame;t&&e.iframeResizerEnable&&(0,w.iframeResizer)(e.iframeResizerOptions,t)},o=n,(0,l.default)(r,o)}return(0,p.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){this.updateIframe(this.props),this.resizeIframe(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.updateIframe(e),this.resizeIframe(e)}},{key:"render",value:function(){var e=this.props,t=e.src,n=e.id,r=e.frameBorder,o=e.className,i=e.style;return y.default.createElement("iframe",{ref:"frame",src:t,id:n,frameBorder:r,className:o,style:i,onLoad:this.onLoad})}}]),t}(y.default.Component);O.propTypes={content:v.default.oneOfType([v.default.string,v.default.element]),src:v.default.string,iframeResizerEnable:v.default.bool,iframeResizerOptions:v.default.object,iframeResizerUrl:v.default.oneOfType([v.default.string,v.default.bool]),id:v.default.string,frameBorder:v.default.number,className:v.default.string,style:v.default.object},O.defaultProps={iframeResizerEnable:!0,iframeResizerOptions:{},iframeResizerUrl:"https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.8/iframeResizer.contentWindow.min.js",frameBorder:0,style:{width:"100%",minHeight:20}},t.default=O},function(e,t,n){e.exports={default:n(66),__esModule:!0}},function(e,t,n){n(67),e.exports=n(0).Object.getPrototypeOf},function(e,t,n){var r=n(33),o=n(34);n(68)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(5),o=n(0),i=n(11);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(72),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(73),__esModule:!0}},function(e,t,n){n(74);var r=n(0).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(5);r(r.S+r.F*!n(4),"Object",{defineProperty:n(3).f})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(38),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports={default:n(77),__esModule:!0}},function(e,t,n){n(78),n(87),e.exports=n(26).f("iterator")},function(e,t,n){"use strict";var r=n(79)(!0);n(39)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(20),o=n(16);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),c=r(n),f=u.length;return c<0||c>=f?e?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===f||(a=u.charCodeAt(c+1))<56320||a>57343?e?u.charAt(c):i:e?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(22),o=n(15),i=n(25),a={};n(6)(a,n(9)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(3),o=n(10),i=n(23);e.exports=n(4)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,c=0;u>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(42);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(8),o=n(84),i=n(85);e.exports=function(e){return function(t,n,a){var u,c=r(t),f=o(c.length),s=i(a,f);if(e&&n!=n){for(;f>s;)if((u=c[s++])!=u)return!0}else for(;f>s;s++)if((e||s in c)&&c[s]===n)return e||s||0;return!e&&-1}}},function(e,t,n){var r=n(20),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(20),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){n(88);for(var r=n(1),o=n(6),i=n(21),a=n(9)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var f=u[c],s=r[f],l=s&&s.prototype;l&&!l[a]&&o(l,a,f),i[f]=i.Array}},function(e,t,n){"use strict";var r=n(89),o=n(90),i=n(21),a=n(8);e.exports=n(39)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(92),__esModule:!0}},function(e,t,n){n(93),n(98),n(99),n(100),e.exports=n(0).Symbol},function(e,t,n){"use strict";var r="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},o=n(1),i=n(2),a=n(4),u=n(5),c=n(40),f=n(94).KEY,s=n(11),l=n(18),d=n(25),p=n(14),m=n(9),y=n(26),h=n(27),v=n(95),g=n(96),b=n(10),w=n(7),O=n(8),S=n(19),E=n(15),x=n(22),T=n(97),k=n(45),_=n(3),M=n(23),j=k.f,I=_.f,N=T.f,P=o.Symbol,C=o.JSON,R=C&&C.stringify,z=m("_hidden"),A=m("toPrimitive"),F={}.propertyIsEnumerable,L=l("symbol-registry"),D=l("symbols"),H=l("op-symbols"),W=Object.prototype,V="function"==typeof P,B=o.QObject,q=!B||!B.prototype||!B.prototype.findChild,U=a&&s(function(){return 7!=x(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=j(W,t);r&&delete W[t],I(e,t,n),r&&e!==W&&I(W,t,r)}:I,J=function(e){var t=D[e]=x(P.prototype);return t._k=e,t},Y=V&&"symbol"==r(P.iterator)?function(e){return"symbol"==(void 0===e?"undefined":r(e))}:function(e){return e instanceof P},G=function(e,t,n){return e===W&&G(H,t,n),b(e),t=S(t,!0),b(n),i(D,t)?(n.enumerable?(i(e,z)&&e[z][t]&&(e[z][t]=!1),n=x(n,{enumerable:E(0,!1)})):(i(e,z)||I(e,z,E(1,{})),e[z][t]=!0),U(e,t,n)):I(e,t,n)},K=function(e,t){b(e);for(var n,r=v(t=O(t)),o=0,i=r.length;i>o;)G(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?x(e):K(x(e),t)},X=function(e){var t=F.call(this,e=S(e,!0));return!(this===W&&i(D,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(D,e)||i(this,z)&&this[z][e])||t)},$=function(e,t){if(e=O(e),t=S(t,!0),e!==W||!i(D,t)||i(H,t)){var n=j(e,t);return!n||!i(D,t)||i(e,z)&&e[z][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=N(O(e)),r=[],o=0;n.length>o;)i(D,t=n[o++])||t==z||t==f||r.push(t);return r},ee=function(e){for(var t,n=e===W,r=N(n?H:O(e)),o=[],a=0;r.length>a;)!i(D,t=r[a++])||n&&!i(W,t)||o.push(D[t]);return o};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function t(n){this===W&&t.call(H,n),i(this,z)&&i(this[z],e)&&(this[z][e]=!1),U(this,e,E(1,n))};return a&&q&&U(W,e,{configurable:!0,set:t}),J(e)},c(P.prototype,"toString",function(){return this._k}),k.f=$,_.f=G,n(44).f=T.f=Z,n(28).f=X,n(43).f=ee,a&&!n(13)&&c(W,"propertyIsEnumerable",X,!0),y.f=function(e){return J(m(e))}),u(u.G+u.W+u.F*!V,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)m(te[ne++]);for(var re=M(m.store),oe=0;re.length>oe;)h(re[oe++]);u(u.S+u.F*!V,"Symbol",{for:function(e){return i(L,e+="")?L[e]:L[e]=P(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!V,"Object",{create:Q,defineProperty:G,defineProperties:K,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),C&&u(u.S+u.F*(!V||s(function(){var e=P();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(w(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,R.apply(C,r)}}),P.prototype[A]||n(6)(P.prototype,A,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(o.JSON,"JSON",!0)},function(e,t,n){var r="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},o=n(14)("meta"),i=n(7),a=n(2),u=n(3).f,c=0,f=Object.isExtensible||function(){return!0},s=!n(11)(function(){return f(Object.preventExtensions({}))}),l=function(e){u(e,o,{value:{i:"O"+ ++c,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==(void 0===e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,o)){if(!f(e))return"F";if(!t)return"E";l(e)}return e[o].i},p=function(e,t){if(!a(e,o)){if(!f(e))return!0;if(!t)return!1;l(e)}return e[o].w},m=function(e){return s&&y.NEED&&f(e)&&!a(e,o)&&l(e),e},y=e.exports={KEY:o,NEED:!1,fastKey:d,getWeak:p,onFreeze:m}},function(e,t,n){var r=n(23),o=n(43),i=n(28);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),c=i.f,f=0;u.length>f;)c.call(e,a=u[f++])&&t.push(a);return t}},function(e,t,n){var r=n(42);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r="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},o=n(8),i=n(44).f,a={}.toString,u="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return i(e)}catch(e){return u.slice()}};e.exports.f=function(e){return u&&"[object Window]"==a.call(e)?c(e):i(o(e))}},function(e,t){},function(e,t,n){n(27)("asyncIterator")},function(e,t,n){n(27)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(102),i=r(o),a=n(106),u=r(a),c=n(38),f=r(c);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,f.default)(t)));e.prototype=(0,u.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(103),__esModule:!0}},function(e,t,n){n(104),e.exports=n(0).Object.setPrototypeOf},function(e,t,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(105).set})},function(e,t,n){var r=n(7),o=n(10),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(35)(Function.call,n(45).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(107),__esModule:!0}},function(e,t,n){n(108);var r=n(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(5);r(r.S,"Object",{create:n(22)})},function(e,t){e.exports=React},function(e,t,n){(function(t){var r="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};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o};e.exports=n(111)(i,!0)}else e.exports=n(114)()}).call(t,n(12))},function(e,t,n){"use strict";(function(t){var r="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},o=n(29),i=n(30),a=n(46),u=n(112),c=n(31),f=n(113);e.exports=function(e,n){function s(e){var t=e&&(M&&e[M]||e[j]);if("function"==typeof t)return t}function l(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function d(e){this.message=e,this.stack=""}function p(e){function r(r,f,s,l,p,m,y){if(l=l||I,m=m||s,y!==c)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var h=l+":"+s;!o[h]&&u<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,l),o[h]=!0,u++)}return null==f[s]?r?new d(null===f[s]?"The "+p+" `"+m+"` is marked as required in `"+l+"`, but its value is `null`.":"The "+p+" `"+m+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(f,s,l,p,m)}if("production"!==t.env.NODE_ENV)var o={},u=0;var f=r.bind(null,!1);return f.isRequired=r.bind(null,!0),f}function m(e){function t(t,n,r,o,i,a){var u=t[n];if(x(u)!==e)return new d("Invalid "+o+" `"+i+"` of type `"+T(u)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return p(t)}function y(e){function t(t,n,r,o,i){if("function"!=typeof e)return new d("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){return new d("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u<a.length;u++){var f=e(a,u,r,o,i+"["+u+"]",c);if(f instanceof Error)return f}return null}return p(t)}function h(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||I;return new d("Invalid "+o+" `"+i+"` of type `"+_(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return p(t)}function v(e){function n(t,n,r,o,i){for(var a=t[n],u=0;u<e.length;u++)if(l(a,e[u]))return null;return new d("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?p(n):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull)}function g(e){function t(t,n,r,o,i){if("function"!=typeof e)return new d("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=x(a);if("object"!==u)return new d("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var f in a)if(a.hasOwnProperty(f)){var s=e(a,f,r,o,i+"."+f,c);if(s instanceof Error)return s}return null}return p(t)}function b(e){function n(t,n,r,o,i){for(var a=0;a<e.length;a++){if(null==(0,e[a])(t,n,r,o,i,c))return null}return new d("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(var r=0;r<e.length;r++){var i=e[r];if("function"!=typeof i)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",k(i),r),o.thatReturnsNull}return p(n)}function w(e){function t(t,n,r,o,i){var a=t[n],u=x(a);if("object"!==u)return new d("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var f in e){var s=e[f];if(s){var l=s(a,f,r,o,i+"."+f,c);if(l)return l}}return null}return p(t)}function O(e){function t(t,n,r,o,i){var a=t[n],f=x(a);if("object"!==f)return new d("Invalid "+o+" `"+i+"` of type `"+f+"` supplied to `"+r+"`, expected `object`.");var s=u({},t[n],e);for(var l in s){var p=e[l];if(!p)return new d("Invalid "+o+" `"+i+"` key `"+l+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(a,l,r,o,i+"."+l,c);if(m)return m}return null}return p(t)}function S(t){switch(void 0===t?"undefined":r(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(S);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!S(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!S(a[1]))return!1}return!0;default:return!1}}function E(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function x(e){var t=void 0===e?"undefined":r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":E(t,e)?"symbol":t}function T(e){if(void 0===e||null===e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function k(e){var t=T(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function _(e){return e.constructor&&e.constructor.name?e.constructor.name:I}var M="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",I="<<anonymous>>",N={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:function(){return p(o.thatReturnsNull)}(),arrayOf:y,element:function(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){return new d("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return p(t)}(),instanceOf:h,node:function(){function e(e,t,n,r,o){return S(e[t])?null:new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return p(e)}(),objectOf:g,oneOf:v,oneOfType:b,shape:w,exact:O};return d.prototype=Error.prototype,N.checkPropTypes=f,N.PropTypes=N,N}}).call(t,n(12))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
|
7 |
object-assign
|
8 |
(c) Sindre Sorhus
|
9 |
@license MIT
|
10 |
*/
|
11 |
+
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;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 r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,c=r(e),f=1;f<arguments.length;f++){n=Object(arguments[f]);for(var s in n)i.call(n,s)&&(c[s]=n[s]);if(o){u=o(n);for(var l=0;l<u.length;l++)a.call(n,u[l])&&(c[u[l]]=n[u[l]])}}return c}},function(e,t,n){"use strict";(function(t){function r(e,n,r,f,s){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var d;try{i("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",f||"React class",r,l,o(e[l])),d=e[l](n,l,f,r,null,u)}catch(e){d=e}if(a(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",f||"React class",r,l,void 0===d?"undefined":o(d)),d instanceof Error&&!(d.message in c)){c[d.message]=!0;var p=s?s():"";a(!1,"Failed %s type: %s%s",r,d.message,null!=p?p:"")}}}var 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};if("production"!==t.env.NODE_ENV)var i=n(30),a=n(46),u=n(31),c={};e.exports=r}).call(t,n(12))},function(e,t,n){"use strict";var r=n(29),o=n(30),i=n(31);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";e.exports=n(117)},function(e,t,n){t.iframeResizer=n(118),t.iframeResizerContentWindow=n(119)},function(e,t,n){var r,o,i,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};!function(n){"use strict";function u(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function c(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function f(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!q;e+=1)q=window[t[e]+"RequestAnimationFrame"];q||p("setup","RequestAnimationFrame not supported")}function s(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}function l(e){return W+"["+s(e)+"]"}function d(e){return J[e]?J[e].log:L}function p(e,t){h("log",e,t,d(e))}function m(e,t){h("info",e,t,d(e))}function y(e,t){h("warn",e,t,!0)}function h(e,t,n,r){!0===r&&"object"===a(window.console)&&console[e](l(t),n)}function v(e){function t(){function e(){x(P),O(C),M("resizedCallback",P)}n("Height"),n("Width"),T(e,P,"init")}function n(e){var t=Number(J[C]["max"+e]),n=Number(J[C]["min"+e]),r=e.toLowerCase(),o=Number(P[r]);p(C,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,p(C,"Set "+r+" to min value")),o>t&&(o=t,p(C,"Set "+r+" to max value")),P[r]=""+o}function r(e){return N.substr(N.indexOf(":")+H+e)}function o(e){p(C,"MessageCallback passed: {iframe: "+P.iframe.id+", message: "+e+"}"),M("messageCallback",{iframe:P.iframe,message:JSON.parse(e)}),p(C,"--")}function i(){var e=document.body.getBoundingClientRect(),t=P.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}function a(e,t){function n(){k("Send Page Info","pageInfo:"+i(),e,t)}I(n,32,t)}function f(){function e(e,r){function o(){J[n]?a(J[n].iframe,n):t()}["scroll","resize"].forEach(function(t){p(n,e+t+" listener for sendPageInfo"),r(window,t,o)})}function t(){e("Remove ",c)}var n=C;!function(){e("Add ",u)}(),J[n]&&(J[n].stopPageInfo=t)}function s(){J[C]&&J[C].stopPageInfo&&(J[C].stopPageInfo(),delete J[C].stopPageInfo)}function l(e){var t=e.getBoundingClientRect();return w(C),{x:Math.floor(Number(t.left)+Number(B.x)),y:Math.floor(Number(t.top)+Number(B.y))}}function d(e){var t=e?l(P.iframe):{x:0,y:0},n=function(){return{x:Number(P.width)+t.x,y:Number(P.height)+t.y}}();p(C,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?function(){window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):y(C,"Unable to scroll to requested position, window.parentIFrame not found")}():function(){B=n,h(),p(C,"--")}()}function h(){!1!==M("scrollCallback",B)?O(C):S()}function v(e){var t=e.split("#")[1]||"",n=decodeURIComponent(t),r=document.getElementById(n)||document.getElementsByName(n)[0];r?function(){var e=l(r);p(C,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),B={x:e.x,y:e.y},h(),p(C,"--")}():window.top!==window.self?function(){window.parentIFrame?window.parentIFrame.moveToAnchor(t):p(C,"In page link #"+t+" not found and window.parentIFrame not found")}():p(C,"In page link #"+t+" not found")}function M(e,t){return g(C,e,t)}function j(){J[C]&&(J[C].firstRun=!1)}var N=e.data,P={},C=null;"[iFrameResizerChild]Ready"===N?function(){for(var e in J)k("iFrame requested init",_(e),document.getElementById(e),e)}():function(){return W===(""+N).substr(0,V)&&N.substr(V).split(":")[0]in J}()?(P=function(){var e=N.substr(V).split(":");return{iframe:J[e[0]]&&J[e[0]].iframe,id:e[0],height:e[1],width:e[2],type:e[3]}}(),C=G=P.id,J[C]&&(J[C].loaded=!0),!function(){var e=P.type in{true:1,false:1,undefined:1};return e&&p(C,"Ignoring init message from meta parent page"),e}()&&function(e){var t=!0;return J[e]||(t=!1,y(P.type+" No settings for "+e+". Message was: "+N)),t}(C)&&(p(C,"Received: "+N),function(){var e=!0;return null===P.iframe&&(y(C,"IFrame ("+P.id+") not found"),e=!1),e}()&&function(){var t=e.origin,n=J[C]&&J[C].checkOrigin;if(n&&""+t!="null"&&!function(){return n.constructor===Array?function(){var e=0,r=!1;for(p(C,"Checking connection is from allowed list of origins: "+n);e<n.length;e++)if(n[e]===t){r=!0;break}return r}():function(){var e=J[C]&&J[C].remoteHost;return p(C,"Checking connection is from: "+e),t===e}()}())throw new Error("Unexpected message received from: "+t+" for "+P.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(J[C]&&J[C].firstRun&&j(),P.type){case"close":J[C].closeRequestCallback?g(C,"closeRequestCallback",J[C].iframe):b(P.iframe);break;case"message":o(r(6));break;case"scrollTo":d(!1);break;case"scrollToOffset":d(!0);break;case"pageInfo":a(J[C]&&J[C].iframe,C),f();break;case"pageInfoStop":s();break;case"inPageLink":v(r(9));break;case"reset":E(P);break;case"init":t(),M("initCallback",P.iframe);break;default:t()}}())):m(C,"Ignored: "+N)}function g(e,t,n){var r=null,o=null;if(J[e]){if("function"!=typeof(r=J[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function b(e){var t=e.id;p(t,"Removing iFrame: "+t),e.parentNode&&e.parentNode.removeChild(e),g(t,"closedCallback",t),p(t,"--"),delete J[t]}function w(e){null===B&&(B={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop},p(e,"Get page position: "+B.x+","+B.y))}function O(e){null!==B&&(window.scrollTo(B.x,B.y),p(e,"Set page position: "+B.x+","+B.y),S())}function S(){B=null}function E(e){function t(){x(e),k("reset","reset",e.iframe,e.id)}p(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),w(e.id),T(t,e,"reset")}function x(e){function t(t){e.iframe.style[t]=e[t]+"px",p(e.id,"IFrame ("+o+") "+t+" set to "+e[t]+"px")}function n(t){D||"0"!==e[t]||(D=!0,p(o,"Hidden iFrame detected, creating visibility listener"),N())}function r(e){t(e),n(e)}var o=e.iframe.id;J[o]&&(J[o].sizeHeight&&r("height"),J[o].sizeWidth&&r("width"))}function T(e,t,n){n!==t.type&&q?(p(t.id,"Requesting animation frame"),q(e)):e()}function k(e,t,n,r,o){function i(){var o=J[r]&&J[r].targetOrigin;p(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(W+t,o)}function a(){y(r,"["+e+"] IFrame("+r+") not found")}var u=!1;r=r||n.id,J[r]&&(function(){n&&"contentWindow"in n&&null!==n.contentWindow?i():a()}(),function(){function e(){!J[r]||J[r].loaded||u||(u=!0,y(r,"IFrame has not responded within "+J[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}o&&J[r]&&J[r].warningTimeout&&(J[r].msgTimeout=setTimeout(e,J[r].warningTimeout))}())}function _(e){return e+":"+J[e].bodyMarginV1+":"+J[e].sizeWidth+":"+J[e].log+":"+J[e].interval+":"+J[e].enablePublicMethods+":"+J[e].autoResize+":"+J[e].bodyMargin+":"+J[e].heightCalculationMethod+":"+J[e].bodyBackground+":"+J[e].bodyPadding+":"+J[e].tolerance+":"+J[e].inPageLinks+":"+J[e].resizeFrom+":"+J[e].widthCalculationMethod}function M(e,t){function r(){var e=t&&t.id||K.id+F++;return null!==document.getElementById(e)&&(e+=F++),e}function o(){var t=J[s]&&J[s].firstRun,n=J[s]&&J[s].heightCalculationMethod in U;!t&&n&&E({iframe:e,height:0,width:0,type:"init"})}function i(e){if("object"!==(void 0===e?"undefined":a(e)))throw new TypeError("Options is not an object")}function c(e){for(var t in K)K.hasOwnProperty(t)&&(J[s][t]=e.hasOwnProperty(t)?e[t]:K[t])}function f(e){return""===e||"file://"===e?"*":e}var s=function(n){return G=n,""===n&&(e.id=n=r(),L=(t||{}).log,G=n,p(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);!function(){return s in J&&"iFrameResizer"in e}()?(function(t){t=t||{},J[s]={firstRun:!0,iframe:e,remoteHost:e.src.split("/").slice(0,3).join("/")},i(t),c(t),J[s]&&(J[s].targetOrigin=!0===J[s].checkOrigin?f(J[s].remoteHost):"*")}(t),function(){switch(p(s,"IFrame scrolling "+(J[s]&&J[s].scrolling?"enabled":"disabled")+" for "+s),e.style.overflow=!1===(J[s]&&J[s].scrolling)?"hidden":"auto",J[s]&&J[s].scrolling){case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=J[s]?J[s].scrolling:"no"}}(),function(){function t(t){1/0!==J[s][t]&&0!==J[s][t]&&(e.style[t]=J[s][t]+"px",p(s,"Set "+t+" = "+J[s][t]+"px"))}function n(e){if(J[s]["min"+e]>J[s]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),function(){"number"!=typeof(J[s]&&J[s].bodyMargin)&&"0"!==(J[s]&&J[s].bodyMargin)||(J[s].bodyMarginV1=J[s].bodyMargin,J[s].bodyMargin=J[s].bodyMargin+"px")}(),function(t){function r(){k("iFrame.onload",t,e,n,!0),o()}u(e,"load",r),k("init",t,e,n,!0)}(_(s)),function(){Function.prototype.bind&&J[s]&&(J[s].iframe.iFrameResizer={close:b.bind(null,J[s].iframe),resize:k.bind(null,"Window resize","resize",J[s].iframe),moveToAnchor:function(e){k("Move to anchor","moveToAnchor:"+e,J[s].iframe,s)},sendMessage:function(e){e=JSON.stringify(e),k("Send Message","message:"+e,J[s].iframe,s)}})}()):y(s,"Ignored iFrame, already setup.")}function j(e,t){null===Y&&(Y=setTimeout(function(){Y=null,e()},t))}function I(e,t,n){Q[n]||(Q[n]=setTimeout(function(){Q[n]=null,e()},t))}function N(){function e(){for(var e in J)!function(e){function t(t){return"0px"===(J[e]&&J[e].iframe.style[t])}J[e]&&function(e){return null!==e.offsetParent}(J[e].iframe)&&(t("height")||t("width"))&&k("Visibility change","resize",J[e].iframe,e)}(e)}function t(t){p("window","Mutation observed: "+t[0].target+" "+t[0].type),j(e,16)}var n=window.MutationObserver||window.WebKitMutationObserver;n&&function(){var e=document.querySelector("body"),r={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new n(t).observe(e,r)}()}function P(e){function t(){R("Window "+e,"resize")}p("window","Trigger event: "+e),j(t,16)}function C(){function e(){R("Tab Visable","resize")}"hidden"!==document.visibilityState&&(p("document","Trigger event: Visiblity change"),j(e,16))}function R(e,t){for(var n in J)(function(e){return J[e]&&"parent"===J[e].resizeFrom&&J[e].autoResize&&!J[e].firstRun})(n)&&k(e,t,document.getElementById(n),n)}function z(){u(window,"message",v),u(window,"resize",function(){P("resize")}),u(document,"visibilitychange",C),u(document,"-webkit-visibilitychange",C),u(window,"focusin",function(){P("focus")}),u(window,"focus",function(){P("focus")})}function A(){function e(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),M(t,e),r.push(t))}function t(e){e&&e.enablePublicMethods&&y("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var r;return f(),z(),function(o,i){switch(r=[],t(o),void 0===i?"undefined":a(i)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(n,o));break;case"object":e(o,i);break;default:throw new TypeError("Unexpected data type ("+(void 0===i?"undefined":a(i))+")")}return r}}if("undefined"!=typeof window){var F=0,L=!1,D=!1,H="message".length,W="[iFrameSizer]",V=W.length,B=null,q=window.requestAnimationFrame,U={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},J={},Y=null,G="Host Page",K={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){y("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},Q={};window.jQuery&&function(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){function t(t,n){M(n,e)}return this.filter("iframe").each(t).end()}):m("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),o=[],r=A,(i="function"==typeof r?r.apply(t,o):r)!==n&&(e.exports=i)}}()},function(e,t){var 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};!function(t){"use strict";function r(e,t,n){"addEventListener"in window?e.addEventListener(t,n,!1):"attachEvent"in window&&e.attachEvent("on"+t,n)}function o(e,t,n){"removeEventListener"in window?e.removeEventListener(t,n,!1):"detachEvent"in window&&e.detachEvent("on"+t,n)}function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function a(e){return de+"["+me+"] "+e}function u(e){le&&"object"===n(window.console)&&console.log(a(e))}function c(e){"object"===n(window.console)&&console.warn(a(e))}function f(){s(),u("Initialising iFrame ("+location.href+")"),l(),m(),p("background",G),p("padding",$),_(),b(),w(),y(),j(),O(),ce=M(),H("init","Init message from host page"),je()}function s(){function e(e){return"true"===e}var n=ue.substr(pe).split(":");me=n[0],K=t!==n[1]?Number(n[1]):K,Z=t!==n[2]?e(n[2]):Z,le=t!==n[3]?e(n[3]):le,fe=t!==n[4]?Number(n[4]):fe,J=t!==n[6]?e(n[6]):J,Q=n[7],ie=t!==n[8]?n[8]:ie,G=n[9],$=n[10],we=t!==n[11]?Number(n[11]):we,ce.enable=t!==n[12]&&e(n[12]),he=t!==n[13]?n[13]:he,ke=t!==n[14]?n[14]:ke}function l(){function e(e,t){return"function"==typeof e&&(u("Setup custom "+t+"CalcMethod"),Ne[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(!function(){var e=window.iFrameResizer;u("Reading data from page: "+JSON.stringify(e)),Me="messageCallback"in e?e.messageCallback:Me,je="readyCallback"in e?e.readyCallback:je,be="targetOrigin"in e?e.targetOrigin:be,ie="heightCalculationMethod"in e?e.heightCalculationMethod:ie,ke="widthCalculationMethod"in e?e.widthCalculationMethod:ke}(),ie=e(ie,"height"),ke=e(ke,"width")),u("TargetOrigin for parent set to: "+be)}function d(e,t){return-1!==t.indexOf("-")&&(c("Negative CSS value ignored for "+e),t=""),t}function p(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,u("Body "+e+' set to "'+n+'"'))}function m(){t===Q&&(Q=K+"px"),p("margin",d("margin",Q))}function y(){document.documentElement.style.height="",document.body.style.height="",u('HTML & body height set to "auto"')}function h(e){var t={add:function(t){function n(){H(e.eventName,e.eventType)}Pe[t]=n,r(window,t,n)},remove:function(e){var t=Pe[e];delete Pe[e],o(window,e,t)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),u(i(e.method)+" event listener: "+e.eventType)}function v(e){h({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),h({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),h({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),h({method:e,eventType:"Input",eventName:"input"}),h({method:e,eventType:"Mouse Up",eventName:"mouseup"}),h({method:e,eventType:"Mouse Down",eventName:"mousedown"}),h({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),h({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),h({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),h({method:e,eventType:"Touch Start",eventName:"touchstart"}),h({method:e,eventType:"Touch End",eventName:"touchend"}),h({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),h({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),h({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),h({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===he&&h({method:e,eventType:"IFrame Resized",eventName:"resize"})}function g(e,t,n,r){return t!==e&&(e in n||(c(e+" is not a valid option for "+r+"CalculationMethod."),e=t),u(r+' calculation method set to "'+e+'"')),e}function b(){ie=g(ie,oe,Re,"height")}function w(){ke=g(ke,Te,ze,"width")}function O(){!0===J?(v("add"),P()):u("Auto Resize disabled")}function S(){u("Disable outgoing messages"),ve=!1}function E(){u("Remove event listener: Message"),o(window,"message",U)}function x(){null!==X&&X.disconnect()}function T(){v("remove"),x(),clearInterval(se)}function k(){S(),E(),!0===J&&T()}function _(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",document.body.appendChild(e)}function M(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),r=e();return{x:parseInt(n.left,10)+parseInt(r.x,10),y:parseInt(n.top,10)+parseInt(r.y,10)}}function o(e){var r=e.split("#")[1]||e,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];t!==i?function(e){var t=n(e);u("Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y),q(t.y,t.x,"scrollToOffset")}(i):(u("In page link (#"+r+") not found in iFrame, so sending to parent"),q(0,0,"inPageLink","#"+r))}function i(){""!==location.hash&&"#"!==location.hash&&o(location.href)}function a(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&r(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function f(){r(window,"hashchange",i)}function s(){setTimeout(i,te)}return ce.enable?function(){Array.prototype.forEach&&document.querySelectorAll?(u("Setting up location.hash handlers"),a(),f(),s()):c("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}():u("In page linking not enabled"),{findTarget:o}}function j(){u("Enable public methods"),_e.parentIFrame={autoResize:function(e){return!0===e&&!1===J?(J=!0,O()):!1===e&&!0===J&&(J=!1,T()),J},close:function(){q(0,0,"close"),k()},getId:function(){return me},getPageInfo:function(e){"function"==typeof e?(Ie=e,q(0,0,"pageInfo")):(Ie=function(){},q(0,0,"pageInfoStop"))},moveToAnchor:function(e){ce.findTarget(e)},reset:function(){B("parentIFrame.reset")},scrollTo:function(e,t){q(t,e,"scrollTo")},scrollToOffset:function(e,t){q(t,e,"scrollToOffset")},sendMessage:function(e,t){q(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){ie=e,b()},setWidthCalculationMethod:function(e){ke=e,w()},setTargetOrigin:function(e){u("Set targetOrigin: "+e),be=e},size:function(e,t){H("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}}}function I(){0!==fe&&(u("setInterval: "+fe+"ms"),se=setInterval(function(){H("interval","setInterval: "+fe)},Math.abs(fe)))}function N(){function e(e){function t(e){!1===e.complete&&(u("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",a,!1),f.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function n(e){f.splice(f.indexOf(e),1)}function r(e){u("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",a,!1),n(e)}function o(e,n,o){r(e.target),H(n,o+": "+e.target.src,t,t)}function i(e){o(e,"imageLoad","Image loaded")}function a(e){o(e,"imageLoadFailed","Image load failed")}function c(t){H("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var f=[],s=window.MutationObserver||window.WebKitMutationObserver,l=function(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return l=new s(c),u("Create body MutationObserver"),l.observe(e,t),l}();return{disconnect:function(){"disconnect"in l&&(u("Disconnect body MutationObserver"),l.disconnect(),f.forEach(r))}}}function P(){var e=0>fe;window.MutationObserver||window.WebKitMutationObserver?e?I():X=N():(u("MutationObserver not supported in this browser!"),I())}function C(e,t){var n=0;return t=t||document.body,"defaultView"in document&&"getComputedStyle"in document.defaultView?(n=document.defaultView.getComputedStyle(t,null),n=null!==n?n[e]:0):n=function(e){if(/^\d+(px)?$/i.test(e))return parseInt(e,Y);var n=t.style.left,r=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft,t.style.left=n,t.runtimeStyle.left=r,e}(t.currentStyle[e]),parseInt(n,Y)}function R(e){e>Ee/2&&(Ee=2*e,u("Event throttle increased to "+Ee+"ms"))}function z(e,t){for(var n=t.length,r=0,o=0,a=i(e),c=Ce(),f=0;f<n;f++)(r=t[f].getBoundingClientRect()[e]+C("margin"+a,t[f]))>o&&(o=r);return c=Ce()-c,u("Parsed "+n+" HTML elements"),u("Element position calculated in "+c+"ms"),R(c),o}function A(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function F(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&function(){c("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}(),z(e,n)}function L(){return document.querySelectorAll("body *")}function D(e,n,r,o){function i(){return!(e in{init:1,interval:1,size:1})}function a(){return ie in ye||Z&&ke in ye}function c(){u("No change in size detected")}var f,s;!function(){function e(e,t){return!(Math.abs(e-t)<=we)}return f=t!==r?r:Re[ie](),s=t!==o?o:ze[ke](),e(re,f)||Z&&e(xe,s)}()&&"init"!==e?function(){i()&&a()?B(n):e in{interval:1}||c()}():(W(),function(){re=f,xe=s,q(re,xe,e)}())}function H(e,t,n,r){!function(){return Oe&&e in ee}()?(!function(){e in{reset:1,resetPage:1,init:1}||u("Trigger event: "+t)}(),"init"===e?D(e,t,n,r):Ae(e,t,n,r)):u("Trigger event cancelled: "+e)}function W(){Oe||(Oe=!0,u("Trigger event lock on")),clearTimeout(Se),Se=setTimeout(function(){Oe=!1,u("Trigger event lock off"),u("--")},te)}function V(e){re=Re[ie](),xe=ze[ke](),q(re,xe,e)}function B(e){var t=ie;ie=oe,u("Reset trigger event: "+e),W(),V("reset"),ie=t}function q(e,n,r,o,i){!0===ve&&(function(){t===i?i=be:u("Message targetOrigin: "+i)}(),function(){var a=e+":"+n,c=me+":"+a+":"+r+(t!==o?":"+o:"");u("Sending message to host page ("+c+")"),ge.postMessage(de+c,i)}())}function U(t){function n(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function i(){return!(void 0!==e&&e.exports)&&"iFrameResize"in window}function a(){return t.data.split(":")[2]in{true:1,false:1}}function s(){var e=n();e in l?l[e]():i()||a()||c("Unexpected message ("+t.data+")")}var l={init:function(){"interactive"===document.readyState||"complete"===document.readyState?function(){ue=t.data,ge=t.source,f(),ne=!1,setTimeout(function(){ae=!1},te)}():(u("Waiting for page ready"),r(window,"readystatechange",l.initFromParent))},reset:function(){ae?u("Page reset ignored by init"):(u("Page size reset by host page"),V("resetPage"))},resize:function(){H("resizeParent","Parent window requested size check")},moveToAnchor:function(){ce.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();u("PageInfoFromParent called from parent: "+e),Ie(JSON.parse(e)),u(" --")},message:function(){var e=o();u("MessageCallback called from parent: "+e),Me(JSON.parse(e)),u(" --")}};(function(){return de===(""+t.data).substr(0,pe)})()&&function(){!1===ne?s():a()?l.init():u('Ignored message of type "'+n()+'". Received before initialization.')}()}if("undefined"!=typeof window){var J=!0,Y=10,G="",K=0,Q="",X=null,$="",Z=!1,ee={resize:1,click:1},te=128,ne=!0,re=1,oe="bodyOffset",ie=oe,ae=!0,ue="",ce={},fe=32,se=null,le=!1,de="[iFrameSizer]",pe=de.length,me="",ye={max:1,min:1,bodyScroll:1,documentElementScroll:1},he="child",ve=!0,ge=window.parent,be="*",we=0,Oe=!1,Se=null,Ee=16,xe=1,Te="scroll",ke=Te,_e=window,Me=function(){c("MessageCallback function not defined")},je=function(){},Ie=function(){},Ne={height:function(){return c("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return c("Custom width calculation function not defined"),document.body.scrollWidth}},Pe={},Ce=Date.now||function(){return(new Date).getTime()},Re={bodyOffset:function(){return document.body.offsetHeight+C("marginTop")+C("marginBottom")},offset:function(){return Re.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return Ne.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,A(Re))},min:function(){return Math.min.apply(null,A(Re))},grow:function(){return Re.max()},lowestElement:function(){return Math.max(Re.bodyOffset()||Re.documentElementOffset(),z("bottom",L()))},taggedElement:function(){return F("bottom","data-iframe-height")}},ze={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return Ne.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(ze.bodyScroll(),ze.documentElementScroll())},max:function(){return Math.max.apply(null,A(ze))},min:function(){return Math.min.apply(null,A(ze))},rightMostElement:function(){return z("right",L())},taggedElement:function(){return F("right","data-iframe-width")}},Ae=function(e){var t,n,r,o=null,i=0,a=function(){i=Ce(),o=null,r=e.apply(t,n),o||(t=n=null)};return function(){var u=Ce();i||(i=u);var c=Ee-(u-i);return t=this,n=arguments,c<=0||c>Ee?(o&&(clearTimeout(o),o=null),i=u,r=e.apply(t,n),o||(t=n=null)):o||(o=setTimeout(a,c)),r}}(D);r(window,"message",U),function(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}()}}()},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23000%7D%3C/style%3E%3C/defs%3E%3Cpath id='BR' class='cls-1' d='M0 6h7v9H0z'/%3E%3Cpath id='BL' class='cls-1' d='M8 10h7v5H8z'/%3E%3Cpath id='TR' class='cls-1' d='M0 0h7v5H0z'/%3E%3Cpath id='TL' class='cls-1' d='M8 0h7v9H8z'/%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23bbb%7D%3C/style%3E%3C/defs%3E%3Cpath id='BR' class='cls-1' d='M0 6h7v9H0z'/%3E%3Cpath id='BL' class='cls-1' d='M8 10h7v5H8z'/%3E%3Cpath id='TR' class='cls-1' d='M0 0h7v5H0z'/%3E%3Cpath id='TL' class='cls-1' d='M8 0h7v9H8z'/%3E%3C/svg%3E"}]);
|
assets/admin/js/mce-dropdown.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(t){function i(n){if(o[n])return o[n].exports;var e=o[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o={};i.m=t,i.c=o,i.d=function(t,o,n){i.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},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,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="",i(i.s=
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.6.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
var o=window,n=o.tinymce,e=o.VPTinyMCEOptions;if(void 0!==e&&e.length){var u=[{text:"",value:""}];Object.keys(e).forEach(function(t){u.push({text:e[t].title,value:e[t].id})}),n.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:"Visual Portfolio",icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'+this.value()+'"]'),this.value("")},values:u,value:""})}}),n.PluginManager.add("visual_portfolio",n.plugins.visual_portfolio)}}});
|
1 |
+
!function(t){function i(n){if(o[n])return o[n].exports;var e=o[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var o={};i.m=t,i.c=o,i.d=function(t,o,n){i.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},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,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="",i(i.s=53)}({53:function(t,i,o){t.exports=o(54)},54:function(t,i){/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.6.5
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
var o=window,n=o.tinymce,e=o.VPTinyMCEOptions;if(void 0!==e&&e.length){var u=[{text:"",value:""}];Object.keys(e).forEach(function(t){u.push({text:e[t].title,value:e[t].id})}),n.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:"Visual Portfolio",icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'+this.value()+'"]'),this.value("")},values:u,value:""})}}),n.PluginManager.add("visual_portfolio",n.plugins.visual_portfolio)}}});
|
assets/admin/js/mce-localize.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(n){function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:e})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=
|
1 |
+
!function(n){function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:e})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=55)}({55:function(n,t,r){n.exports=r(56)},56:function(n,t){}});
|
assets/admin/js/script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=55)}({55:function(e,t,a){e.exports=a(56)},56:function(e,t){function a(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(){h[_.is(":checked")?"show":"hide"]()}var 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},o=jQuery,r=window,l=r.ajaxurl,s=r.VPAdminVariables,c=r.Tooltip,d=r.CodeMirror,p=r.emmetCodeMirror,v=o("body"),m=o(window),u=o('form[name="post"]'),f=o('[name="post_type"]'),g=o("#postID, #post_ID").eq(0).val();v.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"]',function(){this.select()}),v.on("click",".vp-onclick-selection",function(){window.getSelection().selectAllChildren(this)});var h=o("#vp_format_video"),_=o("#post-format-video");h.length&&_.length&&(n(),v.on("change","[name=post_format]",function(){n()}));var y=null,b=void 0;v.on("change input",'.vp-input[name="video_url"]',function(){null!==y&&y.abort();var e=o(this);e.next(".vp-oembed-preview").html(""),clearTimeout(b),b=setTimeout(function(){y=o.ajax({url:l,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:e.val(),nonce:s.nonce},complete:function(t){var a=t.responseJSON;a&&void 0!==a.html&&e.next(".vp-oembed-preview").html(a.html)}})},250)}),void 0!==c&&o('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var e=o(this);new c(this,{placement:e.attr("data-hint-place")||"top",title:e.attr("data-hint"),container:o("body")[0],boundariesElement:"viewport"})}),function(){function e(){var e="",t=o('[name="vp_controls_styles"]'),a=".vp-id-"+g,n=t.val();o('.vp-control-style [type="hidden"]').each(function(){var t=o(this),n=t.closest(".vp-control");if("none"!==n.css("display")){var i=n.find(t.attr("data-style-from")).val();e&&(e+=" "),e+=a+" "+t.attr("data-style-element")+" { "+t.attr("data-style-property")+": "+i+"; }"}}),n!==e&&t.val(e).trigger("vp-fake-change")}function t(e,t){var a=e.find('[data-image-id="'+t+'"]'),n={id:t};return a.find("[data-additional]").each(function(){var e=o(this),t=e.attr("data-additional");if(n[t]=e.html(),"true"===e.attr("data-to-json"))try{n[t]=JSON.parse(n[t])}catch(e){n[t]=""}}),n}function n(e,t){var a=e.find('[data-image-id="'+t+'"]'),n={};return a.find("[data-meta]").each(function(){n[o(this).attr("data-meta")]=o(this).html()}),n}function r(e){var a=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){a.push(t(e,o(this).attr("data-image-id")))});var n=JSON.stringify(a),i=e.children("textarea");n!==i.val()&&i.val(n).change()}function c(e,i){var r=e.children("textarea").attr("name"),l=e.children(".vp-control-gallery-additional-data"),s=l.children(".vp-control-gallery-additional-data-preview"),c=e.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+i+'"]'),d=t(e,i),p=n(e,i);d&&Object.keys(d).forEach(function(n){var i=l.find('[name="'+r+"_additional_"+n+'"], [name="'+r+"_additional_"+n+'[]"]').val(d[n]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var s=[],c=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var i=t(e,o(this).attr("data-image-id"));i&&void 0!==i[n]&&i[n]&&(s=[].concat(a(new Set([].concat(a(s),a(i[n]))))))}),s.forEach(function(e){c.push(new window.Option(e,e,!1,!1))}),i.html(c.length?c:""),i.val(void 0!==d[n]&&d[n]?d[n]:"")}i.trigger("change")}}),s.find(".vp-control-gallery-additional-data-preview-image img").attr("src",c.children("img").attr("src")||""),s.find(".vp-control-gallery-additional-data-preview-name").html(p.filename),s.find(".vp-control-gallery-additional-data-preview-size").html(p.width+"x"+p.height+" ("+p.filesizeHumanReadable+")"),s.find(".vp-control-gallery-additional-data-preview-edit a").attr("href",p.editLink.replace("&","&")),c.siblings().removeClass("active"),c.addClass("active"),l.addClass("active"),E=S.find(".vp-control-gallery-additional-data.active").length}function h(e,t){if(O&&(t=!1,O=!1),s&&s.css_editor_error_notice){var a=!1;if(1===e.length?a=s.css_editor_error_notice.singular.replace("%d","1"):e.length>1&&(a=s.css_editor_error_notice.plural.replace("%d",String(e.length))),a){var n=A.prev("#vp_custom_css_notice");if(n.length||t||(n=o('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),A.before(n)),!n.length)return;var i='<p class="notification-message">'+a+'</p><p><input id="vp_custom_css_notice_prevent" type="checkbox"><label for="vp_custom_css_notice_prevent">'+s.css_editor_error_checkbox+"</label></p>";n.html(i)}else A.prev("#vp_custom_css_notice").remove()}}if("vp_lists"===f.val()&&u.length){var _=o(".vp-content-source"),y=_.find('[name="vp_content_source"]');_.on("click",".vp-content-source__item",function(){var e=o(this).attr("data-content");_.find('[data-content="'+e+'"]').addClass("active").siblings().removeClass("active"),y.val(e).change()}),_.children('[data-content="'+y.val()+'"]').click(),o.fn.conditionize&&u.conditionize(),o(".vp-control-range").each(function(){var e=o(this).find("input"),t=e.filter('[type="hidden"]');e.on("change input",function(a){e.val(o(this).val()),t.trigger("vp-fake-"+a.type)})}),o.fn.wpColorPicker&&o(".vp-color-picker").each(function(){function e(e){if(a)return void(a=!1);clearTimeout(t),t=setTimeout(function(){o(e.target).change()},300)}var t=void 0,a=!0;o(this).data("change",e).wpColorPicker()}),o.fn.imagepicker&&o(".vp-image-picker").imagepicker();var b=o(".vp_list_preview iframe"),w=!1,k=!1,C=o('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",b.attr("src")).insertAfter(u);o.fn.iFrameResize&&b.iFrameResize({interval:10});var x=void 0;u.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(t){var a=o(this);if(!a.closest(".vp-no-reload").length){if(o('[name="'+a.attr("name")+'__style[]"]').length)return void e();var n={name:a.attr("name"),value:a.is("[type=checkbox], [type=radio]")?a.is(":checked"):a.val(),reload:"change"===t.type||"vp-fake-change"===t.type,jQuery:k,$portfolio:w},i=C.find('[name="'+n.name+'"]');i.length||(i=o('<input type="hidden" name="'+n.name+'" />').appendTo(C)),i.attr("value",n.value),m.trigger("vp-preview-change",n),n.reload||e(),!n.reload&&w||(clearTimeout(x),x=setTimeout(function(){k=!1,w=!1,C.submit()},400))}}),b.on("load",function(){k=this.contentWindow.jQuery,w=k(".vp-portfolio"),e()}),m.on("vp-preview-change",function(e,t){if(t.$portfolio)switch(t.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var a=t.name;a=a.substring(3),a=a.replace(/_/g,"-"),t.$portfolio.attr("data-vp-"+a,t.value),t.$portfolio.vpf("init"),t.reload=!1;break;case"vp_filter_align":t.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-"+t.value),t.reload=!1;break;case"vp_pagination_align":t.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-"+t.value),t.reload=!1;break;case"vp_controls_styles":var n=t.$portfolio.closest("html"),i="vp-controls-styles-"+g+"-inline-css",o=n.find("#"+i);o.length||(o=t.jQuery('<style id="'+i+'">'),n.find("body").prepend(o)),o.html(t.value),t.reload=!1;break;case"vp_custom_css":var r=t.$portfolio.closest("html"),l="vp-custom-css-"+g+"-inline-css",s=r.find("#"+l);s.length||(s=t.jQuery('<style id="'+l+'">'),r.find("body").prepend(s)),s.html(t.value),t.reload=!1;break;case"vp_list_name":case"vp_stretch":t.reload=!1}}),v.on("click",".vp-control-image-dropdown",function(e){o(e.target).closest(".vp-control-image-dropdown__content").length||o(this).toggleClass("active")}),v.on("mousedown",function(e){var t=o(e.target).closest(".vp-control-image-dropdown");o(".vp-control-image-dropdown.active").each(function(){this!==t[0]&&o(this).removeClass("active")})}),v.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var e=o(this),t=e.data("picker");if(t){var a=t.select.find('option[value="'+t.select.val()+'"]'),n=a.parent("optgroup"),i=e.closest(".vp-control-image-dropdown"),r=a.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'+r+'" alt="">'),n.length&&i.children(".vp-control-image-dropdown__title").html(n.attr("label")))}});var j=o('[name="vp_list_name"]'),T=o('[name="post_title"]');j.length&&T.length&&(j.on("input",function(){T.val()!==j.val()&&T.val(j.val()).change()}),T.on("input",function(){j.val(T.val())})),o.fn.select2&&o(".vp-select2").each(function(){var e=o(this),t={width:"100%",minimumResultsForSearch:e.hasClass("vp-select2-nosearch")?-1:1,tags:e.hasClass("vp-select2-tags")},a=!!e.attr("data-post-type")&&o(e.attr("data-post-type"));e.closest(".vp-select2-posts-ajax").length&&(t=o.extend({minimumInputLength:1,ajax:{url:l,dataType:"json",delay:250,data:function(e){return{action:"vp_find_posts",q:e.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(e){return{results:!(!e||!e.length)&&e}},cache:!0},escapeMarkup:function(e){return e},templateResult:function(e){if(e.loading)return e.text;var t="";e.title&&(t=e.title);var a="";e.post_type&&(a=e.post_type);var n="";return e.img&&(n="style=\"background-image: url('"+e.img+"');\""),'<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" '+n+'></div><div class="vp-select2-ajax__result-data"><div class="vp-select2-ajax__result-title">'+t+'</div><div class="vp-select2-ajax__result-post-type">'+a+"</div></div></div>"},templateSelection:function(e){return e.title||e.text}},t)),e.closest(".vp-select2-taxonomies-ajax").length&&(t=o.extend({minimumInputLength:1,ajax:{url:l,dataType:"json",delay:250,data:function(e){return{action:"vp_find_taxonomies",q:e.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(e){var t=[];return e&&Object.keys(e).forEach(function(a){t.push({text:a,children:e[a]})}),{results:t}},cache:!0}},t)),e.select2(t).data("select2").$dropdown.addClass("select2-vp-container")});var S=o(".vp-control-gallery"),E=0;if(o.fn.sortable&&(S.each(function(){var e=o(this),t=e.children(".vp-control-gallery-items-default");e.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){r(e)}}),e.on("click",".vp-control-gallery-items-remove",function(t){t.preventDefault(),o(this).parent().remove(),r(e)}),e.on("click",".vp-control-gallery-items-add",function(a){a.preventDefault();var n=e.data("wp-frame");return n?void n.open():wp.media?(n=wp.media({title:"Select or Upload Images",button:{text:"Use this images"},multiple:!0,library:{type:"image"}}),e.data("wp-frame",n),n.on("select",function(){var a=n.state().get("selection").models;a&&a.length&&(a.forEach(function(a){var n=a.changed.url;a.changed.sizes&&a.changed.sizes.thumbnail&&(n=a.changed.sizes.thumbnail.url);var i=t.children().clone();i.attr("data-image-id",a.id),i.children("img").attr("src",n),i.find('[data-meta="width"]').html(a.changed.width),i.find('[data-meta="height"]').html(a.changed.height),i.find('[data-meta="filename"]').html(a.changed.filename),i.find('[data-meta="editLink"]').html(a.changed.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(a.changed.filesizeHumanReadable),e.find(".vp-control-gallery-items-add").before(i)}),r(e))}),void n.open()):void console.error("Can't access wp.media object.")}),e.on("click",".vp-control-gallery-items-img",function(t){t.preventDefault(),c(e,o(this).attr("data-image-id"))});var a=void 0;e.on("change input",".vp-control-gallery-additional-data [name]",function(){clearTimeout(a),a=setTimeout(function(){var t=e.children(".vp-control-gallery-additional-data"),a=e.children("textarea").attr("name"),n=e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(n){var l=e.children(".vp-control-gallery-items").find('[data-image-id="'+n+'"]');t.find('[name*="'+a+'_additional_"]').each(function(){var e=o(this).attr("name").replace(a+"_additional_","").replace("[]",""),t=o(this).val()||"";"object"===(void 0===t?"undefined":i(t))&&(t=JSON.stringify(t)),l.find('[data-additional="'+e+'"]').html(t||"")}),r(e)}},200)})}),S.length)){var z=S.children(".vp-control-gallery-additional-data");o(document).on("mousedown",function(e){if(E){var t=e.target;o(t).closest(".vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container").length||(z.removeClass("active"),S.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").removeClass("active"),E=S.find(".vp-control-gallery-additional-data.active").length)}})}var A=o('[name="vp_custom_css"]'),L=!1,O=!0;if(void 0!==d&&A.length){if(s&&s.classnames){var $=d.hint.css;d.hint.css=function(e){var t=e.getCursor(),a=$(e)||{from:t,to:e.getCursor(),list:[]},n=e.getTokenAt(t);return"top"===n.state.state&&0===n.string.indexOf(".")&&(a={from:d.Pos(t.line,n.start),to:d.Pos(t.line,n.end),list:[]},s.classnames.forEach(function(e){-1!==e.indexOf(n.string)&&a.list.push(e)})),a}}var M=d.fromTextArea(A[0],{mode:"css",theme:"eclipse",indentUnit:4,autoCloseTags:!0,autoCloseBrackets:!0,matchBrackets:!0,foldGutter:!0,lint:{options:{errors:!0,"box-model":!0,"display-property-grouping":!0,"duplicate-properties":!0,"known-properties":!0,"outline-none":!0},onUpdateLinting:function(e,t,a){var n=[];e.forEach(function(e){"error"===e.severity&&n.push(e)}),a.vcLintErrors=n,L||h(a.vcLintErrors,!0)}},lineNumbers:!0,lineWrapping:!0,scrollPastEnd:!0,emmet_active:!0,emmet:!0,styleActiveLine:!0,continueComments:!0,scrollbarStyle:"simple",extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-/":"toggleComment","Cmd-/":"toggleComment","Alt-F":"findPersistent"},gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]});p(M),A.data("CodeMirrorInstance",M),M.on("change",function(){M.save(),A.change()}),M.on("keyup",function(e,t){var a=/^[a-zA-Z]$/.test(t.key);if(!e.state.completionActive||!a){var n=e.getTokenAt(e.getCursor());if("string"!==n.type&&"comment"!==n.type){var i=e.doc.getLine(e.doc.getCursor().line).substr(0,e.doc.getCursor().ch);(a||":"===t.key||" "===t.key&&/:\s+$/.test(i))&&e.showHint({completeSingle:!1})}}})}var P=!1;v.on("click","#publish:not(.disabled)",function(e){if(P=!0,!L){var t=o(this),a=A.length&&A.data("CodeMirrorInstance");a&&a.vcLintErrors&&a.vcLintErrors.length&&(e.preventDefault(),t.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){t.removeClass("disabled button-disabled button-primary-disabled")},1500),h(a.vcLintErrors,!1),o("html,body").animate({scrollTop:o("#vp_custom_css").offset().top-100},300),a.focus(),a.setCursor(a.vcLintErrors[0].from.line))}});var R=u.serialize();o(window).on("beforeunload",function(){return P?void(P=!1):R!==u.serialize()||void 0}),v.on("change","#vp_custom_css_notice_prevent",function(){L=!0,o(this).closest(".notice").slideUp()})}}()}});
|
1 |
+
!function(e){function t(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=57)}({57:function(e,t,a){e.exports=a(58)},58:function(e,t){function a(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(){h[_.is(":checked")?"show":"hide"]()}var 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},o=jQuery,r=window,l=r.ajaxurl,s=r.VPAdminVariables,c=r.Tooltip,d=r.CodeMirror,p=r.emmetCodeMirror,v=o("body"),m=o(window),u=o('form[name="post"]'),f=o('[name="post_type"]'),g=o("#postID, #post_ID").eq(0).val();v.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"]',function(){this.select()}),v.on("click",".vp-onclick-selection",function(){window.getSelection().selectAllChildren(this)});var h=o("#vp_format_video"),_=o("#post-format-video");h.length&&_.length&&(n(),v.on("change","[name=post_format]",function(){n()}));var y=null,b=void 0;v.on("change input",'.vp-input[name="video_url"]',function(){null!==y&&y.abort();var e=o(this);e.next(".vp-oembed-preview").html(""),clearTimeout(b),b=setTimeout(function(){y=o.ajax({url:l,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:e.val(),nonce:s.nonce},complete:function(t){var a=t.responseJSON;a&&void 0!==a.html&&e.next(".vp-oembed-preview").html(a.html)}})},250)}),void 0!==c&&o('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var e=o(this);new c(this,{placement:e.attr("data-hint-place")||"top",title:e.attr("data-hint"),container:o("body")[0],boundariesElement:"viewport"})}),function(){function e(){var e="",t=o('[name="vp_controls_styles"]'),a=".vp-id-"+g,n=t.val();o('.vp-control-style [type="hidden"]').each(function(){var t=o(this),n=t.closest(".vp-control");if("none"!==n.css("display")){var i=n.find(t.attr("data-style-from")).val();e&&(e+=" "),e+=a+" "+t.attr("data-style-element")+" { "+t.attr("data-style-property")+": "+i+"; }"}}),n!==e&&t.val(e).trigger("vp-fake-change")}function t(e,t){var a=e.find('[data-image-id="'+t+'"]'),n={id:t};return a.find("[data-additional]").each(function(){var e=o(this),t=e.attr("data-additional");if(n[t]=e.html(),"true"===e.attr("data-to-json"))try{n[t]=JSON.parse(n[t])}catch(e){n[t]=""}}),n}function n(e,t){var a=e.find('[data-image-id="'+t+'"]'),n={};return a.find("[data-meta]").each(function(){n[o(this).attr("data-meta")]=o(this).html()}),n}function r(e){var a=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){a.push(t(e,o(this).attr("data-image-id")))});var n=JSON.stringify(a),i=e.children("textarea");n!==i.val()&&i.val(n).change()}function c(e,i){var r=e.children("textarea").attr("name"),l=e.children(".vp-control-gallery-additional-data"),s=l.children(".vp-control-gallery-additional-data-preview"),c=e.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+i+'"]'),d=t(e,i),p=n(e,i);d&&Object.keys(d).forEach(function(n){var i=l.find('[name="'+r+"_additional_"+n+'"], [name="'+r+"_additional_"+n+'[]"]').val(d[n]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var s=[],c=[];e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var i=t(e,o(this).attr("data-image-id"));i&&void 0!==i[n]&&i[n]&&(s=[].concat(a(new Set([].concat(a(s),a(i[n]))))))}),s.forEach(function(e){c.push(new window.Option(e,e,!1,!1))}),i.html(c.length?c:""),i.val(void 0!==d[n]&&d[n]?d[n]:"")}i.trigger("change")}}),s.find(".vp-control-gallery-additional-data-preview-image img").attr("src",c.children("img").attr("src")||""),s.find(".vp-control-gallery-additional-data-preview-name").html(p.filename),s.find(".vp-control-gallery-additional-data-preview-size").html(p.width+"x"+p.height+" ("+p.filesizeHumanReadable+")"),s.find(".vp-control-gallery-additional-data-preview-edit a").attr("href",p.editLink.replace("&","&")),c.siblings().removeClass("active"),c.addClass("active"),l.addClass("active"),E=S.find(".vp-control-gallery-additional-data.active").length}function h(e,t){if(O&&(t=!1,O=!1),s&&s.css_editor_error_notice){var a=!1;if(1===e.length?a=s.css_editor_error_notice.singular.replace("%d","1"):e.length>1&&(a=s.css_editor_error_notice.plural.replace("%d",String(e.length))),a){var n=A.prev("#vp_custom_css_notice");if(n.length||t||(n=o('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),A.before(n)),!n.length)return;var i='<p class="notification-message">'+a+'</p><p><input id="vp_custom_css_notice_prevent" type="checkbox"><label for="vp_custom_css_notice_prevent">'+s.css_editor_error_checkbox+"</label></p>";n.html(i)}else A.prev("#vp_custom_css_notice").remove()}}if("vp_lists"===f.val()&&u.length){var _=o(".vp-content-source"),y=_.find('[name="vp_content_source"]');_.on("click",".vp-content-source__item",function(){var e=o(this).attr("data-content");_.find('[data-content="'+e+'"]').addClass("active").siblings().removeClass("active"),y.val(e).change()}),_.children('[data-content="'+y.val()+'"]').click(),o.fn.conditionize&&u.conditionize(),o(".vp-control-range").each(function(){var e=o(this).find("input"),t=e.filter('[type="hidden"]');e.on("change input",function(a){e.val(o(this).val()),t.trigger("vp-fake-"+a.type)})}),o.fn.wpColorPicker&&o(".vp-color-picker").each(function(){function e(e){if(a)return void(a=!1);clearTimeout(t),t=setTimeout(function(){o(e.target).change()},300)}var t=void 0,a=!0;o(this).data("change",e).wpColorPicker()}),o.fn.imagepicker&&o(".vp-image-picker").imagepicker();var b=o(".vp_list_preview iframe"),w=!1,k=!1,C=o('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",b.attr("src")).insertAfter(u);o.fn.iFrameResize&&b.iFrameResize({interval:10});var x=void 0;u.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(t){var a=o(this);if(!a.closest(".vp-no-reload").length){if(o('[name="'+a.attr("name")+'__style[]"]').length)return void e();var n={name:a.attr("name"),value:a.is("[type=checkbox], [type=radio]")?a.is(":checked"):a.val(),reload:"change"===t.type||"vp-fake-change"===t.type,jQuery:k,$portfolio:w},i=C.find('[name="'+n.name+'"]');i.length||(i=o('<input type="hidden" name="'+n.name+'" />').appendTo(C)),i.attr("value",n.value),m.trigger("vp-preview-change",n),n.reload||e(),!n.reload&&w||(clearTimeout(x),x=setTimeout(function(){k=!1,w=!1,C.submit()},400))}}),b.on("load",function(){k=this.contentWindow.jQuery,w=k(".vp-portfolio"),e()}),m.on("vp-preview-change",function(e,t){if(t.$portfolio)switch(t.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var a=t.name;a=a.substring(3),a=a.replace(/_/g,"-"),t.$portfolio.attr("data-vp-"+a,t.value),t.$portfolio.vpf("init"),t.reload=!1;break;case"vp_filter_align":t.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-"+t.value),t.reload=!1;break;case"vp_pagination_align":t.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-"+t.value),t.reload=!1;break;case"vp_controls_styles":var n=t.$portfolio.closest("html"),i="vp-controls-styles-"+g+"-inline-css",o=n.find("#"+i);o.length||(o=t.jQuery('<style id="'+i+'">'),n.find("body").prepend(o)),o.html(t.value),t.reload=!1;break;case"vp_custom_css":var r=t.$portfolio.closest("html"),l="vp-custom-css-"+g+"-inline-css",s=r.find("#"+l);s.length||(s=t.jQuery('<style id="'+l+'">'),r.find("body").prepend(s)),s.html(t.value),t.reload=!1;break;case"vp_list_name":case"vp_stretch":t.reload=!1}}),v.on("click",".vp-control-image-dropdown",function(e){o(e.target).closest(".vp-control-image-dropdown__content").length||o(this).toggleClass("active")}),v.on("mousedown",function(e){var t=o(e.target).closest(".vp-control-image-dropdown");o(".vp-control-image-dropdown.active").each(function(){this!==t[0]&&o(this).removeClass("active")})}),v.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var e=o(this),t=e.data("picker");if(t){var a=t.select.find('option[value="'+t.select.val()+'"]'),n=a.parent("optgroup"),i=e.closest(".vp-control-image-dropdown"),r=a.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'+r+'" alt="">'),n.length&&i.children(".vp-control-image-dropdown__title").html(n.attr("label")))}});var j=o('[name="vp_list_name"]'),T=o('[name="post_title"]');j.length&&T.length&&(j.on("input",function(){T.val()!==j.val()&&T.val(j.val()).change()}),T.on("input",function(){j.val(T.val())})),o.fn.select2&&o(".vp-select2").each(function(){var e=o(this),t={width:"100%",minimumResultsForSearch:e.hasClass("vp-select2-nosearch")?-1:1,tags:e.hasClass("vp-select2-tags")},a=!!e.attr("data-post-type")&&o(e.attr("data-post-type"));e.closest(".vp-select2-posts-ajax").length&&(t=o.extend({minimumInputLength:1,ajax:{url:l,dataType:"json",delay:250,data:function(e){return{action:"vp_find_posts",q:e.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(e){return{results:!(!e||!e.length)&&e}},cache:!0},escapeMarkup:function(e){return e},templateResult:function(e){if(e.loading)return e.text;var t="";e.title&&(t=e.title);var a="";e.post_type&&(a=e.post_type);var n="";return e.img&&(n="style=\"background-image: url('"+e.img+"');\""),'<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" '+n+'></div><div class="vp-select2-ajax__result-data"><div class="vp-select2-ajax__result-title">'+t+'</div><div class="vp-select2-ajax__result-post-type">'+a+"</div></div></div>"},templateSelection:function(e){return e.title||e.text}},t)),e.closest(".vp-select2-taxonomies-ajax").length&&(t=o.extend({minimumInputLength:1,ajax:{url:l,dataType:"json",delay:250,data:function(e){return{action:"vp_find_taxonomies",q:e.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(e){var t=[];return e&&Object.keys(e).forEach(function(a){t.push({text:a,children:e[a]})}),{results:t}},cache:!0}},t)),e.select2(t).data("select2").$dropdown.addClass("select2-vp-container")});var S=o(".vp-control-gallery"),E=0;if(o.fn.sortable&&(S.each(function(){var e=o(this),t=e.children(".vp-control-gallery-items-default");e.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){r(e)}}),e.on("click",".vp-control-gallery-items-remove",function(t){t.preventDefault(),o(this).parent().remove(),r(e)}),e.on("click",".vp-control-gallery-items-add",function(a){a.preventDefault();var n=e.data("wp-frame");return n?void n.open():wp.media?(n=wp.media({title:"Select or Upload Images",button:{text:"Use this images"},multiple:!0,library:{type:"image"}}),e.data("wp-frame",n),n.on("select",function(){var a=n.state().get("selection").models;a&&a.length&&(a.forEach(function(a){var n=a.changed.url;a.changed.sizes&&a.changed.sizes.thumbnail&&(n=a.changed.sizes.thumbnail.url);var i=t.children().clone();i.attr("data-image-id",a.id),i.children("img").attr("src",n),i.find('[data-meta="width"]').html(a.changed.width),i.find('[data-meta="height"]').html(a.changed.height),i.find('[data-meta="filename"]').html(a.changed.filename),i.find('[data-meta="editLink"]').html(a.changed.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(a.changed.filesizeHumanReadable),e.find(".vp-control-gallery-items-add").before(i)}),r(e))}),void n.open()):void console.error("Can't access wp.media object.")}),e.on("click",".vp-control-gallery-items-img",function(t){t.preventDefault(),c(e,o(this).attr("data-image-id"))});var a=void 0;e.on("change input",".vp-control-gallery-additional-data [name]",function(){clearTimeout(a),a=setTimeout(function(){var t=e.children(".vp-control-gallery-additional-data"),a=e.children("textarea").attr("name"),n=e.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(n){var l=e.children(".vp-control-gallery-items").find('[data-image-id="'+n+'"]');t.find('[name*="'+a+'_additional_"]').each(function(){var e=o(this).attr("name").replace(a+"_additional_","").replace("[]",""),t=o(this).val()||"";"object"===(void 0===t?"undefined":i(t))&&(t=JSON.stringify(t)),l.find('[data-additional="'+e+'"]').html(t||"")}),r(e)}},200)})}),S.length)){var z=S.children(".vp-control-gallery-additional-data");o(document).on("mousedown",function(e){if(E){var t=e.target;o(t).closest(".vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container").length||(z.removeClass("active"),S.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").removeClass("active"),E=S.find(".vp-control-gallery-additional-data.active").length)}})}var A=o('[name="vp_custom_css"]'),L=!1,O=!0;if(void 0!==d&&A.length){if(s&&s.classnames){var $=d.hint.css;d.hint.css=function(e){var t=e.getCursor(),a=$(e)||{from:t,to:e.getCursor(),list:[]},n=e.getTokenAt(t);return"top"===n.state.state&&0===n.string.indexOf(".")&&(a={from:d.Pos(t.line,n.start),to:d.Pos(t.line,n.end),list:[]},s.classnames.forEach(function(e){-1!==e.indexOf(n.string)&&a.list.push(e)})),a}}var M=d.fromTextArea(A[0],{mode:"css",theme:"eclipse",indentUnit:4,autoCloseTags:!0,autoCloseBrackets:!0,matchBrackets:!0,foldGutter:!0,lint:{options:{errors:!0,"box-model":!0,"display-property-grouping":!0,"duplicate-properties":!0,"known-properties":!0,"outline-none":!0},onUpdateLinting:function(e,t,a){var n=[];e.forEach(function(e){"error"===e.severity&&n.push(e)}),a.vcLintErrors=n,L||h(a.vcLintErrors,!0)}},lineNumbers:!0,lineWrapping:!0,scrollPastEnd:!0,emmet_active:!0,emmet:!0,styleActiveLine:!0,continueComments:!0,scrollbarStyle:"simple",extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-/":"toggleComment","Cmd-/":"toggleComment","Alt-F":"findPersistent"},gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]});p(M),A.data("CodeMirrorInstance",M),M.on("change",function(){M.save(),A.change()}),M.on("keyup",function(e,t){var a=/^[a-zA-Z]$/.test(t.key);if(!e.state.completionActive||!a){var n=e.getTokenAt(e.getCursor());if("string"!==n.type&&"comment"!==n.type){var i=e.doc.getLine(e.doc.getCursor().line).substr(0,e.doc.getCursor().ch);(a||":"===t.key||" "===t.key&&/:\s+$/.test(i))&&e.showHint({completeSingle:!1})}}})}var P=!1;v.on("click","#publish:not(.disabled)",function(e){if(P=!0,!L){var t=o(this),a=A.length&&A.data("CodeMirrorInstance");a&&a.vcLintErrors&&a.vcLintErrors.length&&(e.preventDefault(),t.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){t.removeClass("disabled button-disabled button-primary-disabled")},1500),h(a.vcLintErrors,!1),o("html,body").animate({scrollTop:o("#vp_custom_css").offset().top-100},300),a.focus(),a.setCursor(a.vcLintErrors[0].from.line))}});var R=u.serialize();o(window).on("beforeunload",function(){return P?void(P=!1):R!==u.serialize()||void 0}),v.on("change","#vp_custom_css_notice_prevent",function(){L=!0,o(this).closest(".notice").slideUp()})}}()}});
|
assets/admin/js/vc-frontend.min.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
!function(e){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}var t={};n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=
|
2 |
* Additional js for frontend VC
|
3 |
*
|
4 |
* Name : Visual Portfolio
|
5 |
-
* Version : 1.6.
|
6 |
* Author : nK https://nkdev.info
|
7 |
*/
|
8 |
var t=window,o=t.vc;jQuery(function(){void 0!==o&&o.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var n=o.$frame[0].contentWindow,t=!!n&&n.jQuery;if(t){var r=t(e.view.el).children(".vp-portfolio");r.length&&void 0!==r.vpf&&r.vpf()}}})})}});
|
1 |
+
!function(e){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}var t={};n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=59)}({59:function(e,n,t){e.exports=t(60)},60:function(e,n){/*!
|
2 |
* Additional js for frontend VC
|
3 |
*
|
4 |
* Name : Visual Portfolio
|
5 |
+
* Version : 1.6.5
|
6 |
* Author : nK https://nkdev.info
|
7 |
*/
|
8 |
var t=window,o=t.vc;jQuery(function(){void 0!==o&&o.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var n=o.$frame[0].contentWindow,t=!!n&&n.jQuery;if(t){var r=t(e.view.el).children(".vp-portfolio");r.length&&void 0!==r.vpf&&r.vpf()}}})})}});
|
assets/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.6.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-portfolio__items{-webkit-transition:.3s height ease-in-out, .3s transform ease-in-out;transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;-webkit-transition:.3s opacity, .3s visibility;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a{display:block;width:100%;height:auto}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:.3s opacity, .3s visibility;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{-webkit-transition:.2s height ease-in-out;transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;-webkit-transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;width:auto}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;-webkit-box-shadow:0 0 7px 2px rgba(0,0,0,0.04);box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;-webkit-transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{-webkit-box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;-webkit-transition:.15s opacity ease-in-out;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{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-portfolio.vp-portfolio__loading::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:100000}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;right:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}img.visual-portfolio-lazyload:not(.lazyloaded){background-color:rgba(171,173,191,0.1)}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.6.5
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{-webkit-box-sizing:border-box;box-sizing:border-box}.vp-portfolio__items{-webkit-transition:.3s height ease-in-out, .3s transform ease-in-out;transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;-webkit-transition:.3s opacity, .3s visibility;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a{display:block;width:100%;height:auto}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:.3s opacity, .3s visibility;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{-webkit-transition:.2s height ease-in-out;transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;-webkit-transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;width:auto}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;-webkit-box-shadow:0 0 7px 2px rgba(0,0,0,0.04);box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;-webkit-transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{-webkit-box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;-webkit-transition:.15s opacity ease-in-out;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{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-portfolio.vp-portfolio__loading::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:100000}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;right:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}img.visual-portfolio-lazyload:not(.lazyloaded){background-color:rgba(171,173,191,0.1)}
|
assets/js/lazysizes-object-fit-cover.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},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,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=47)}({47:function(e,t,n){e.exports=n(48)},48: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){"use strict";if(e.addEventListener){var i=function(t){return e.getComputedStyle(t,null)||{}},r={calculateSize:function(e,t){var n=i(e);if(n&&n.objectFit&&"cover"===n.objectFit){var r=parseInt(e.getAttribute("height")),o=parseInt(e.getAttribute("width"));r&&o/r>e.clientWidth/e.clientHeight&&(t=parseInt(e.clientHeight*o/r,10))}return t}};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/script-preview.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version : 1.6.
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
!function(t){var e=t("#vp_preview > .vp-portfolio");e.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(t){t.preventDefault(),t.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return e.outerHeight(!0)}}}(jQuery)}});
|
1 |
+
!function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=49)}({49:function(t,e,o){t.exports=o(50)},50:function(t,e){/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : 1.6.5
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/
|
6 |
!function(t){var e=t("#vp_preview > .vp-portfolio");e.on("click",".vp-portfolio__item, .vp-portfolio__item a",function(t){t.preventDefault(),t.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return e.outerHeight(!0)}}}(jQuery)}});
|
assets/js/script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=49)}({49:function(t,e,i){t.exports=i(50)},50:function(t,e){function i(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(){_=c.width(),h=c.height()}var r="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},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),a=jQuery,p=window,l=p.VPData,d=p.objectFitImages,v=p.PhotoSwipe,f=p.PhotoSwipeUI_Default,m=l.__,u=l.settingsPopupGallery,c=a(window),_=0,h=0;s(),c.on("resize load orientationchange",s);var w=[320,576,768,992,1200];void 0!==d&&d();var y=function(){function t(e,i){o(this,t);var s=this;s.$item=e;for(var r=e[0].className.split(/\s+/),n=0;n<r.length;n++)r[n]&&/^vp-uid-/.test(r[n])&&(s.uid=r[n].replace(/^vp-uid-/,"")),r[n]&&/^vp-id-/.test(r[n])&&(s.id=r[n].replace(/^vp-id-/,""));if(!s.uid)return void console.error(m.couldnt_retrieve_vp);s.$items_wrap=e.find(".vp-portfolio__items"),s.$pagination=e.find(".vp-portfolio__pagination-wrap"),s.$filter=e.find(".vp-portfolio__filter-wrap"),s.id&&(s.$filter=s.$filter.add(".vp-single-filter.vp-id-"+s.id+" .vp-portfolio__filter-wrap")),s.userOptions=i,s.firstRun=!0,s.init()}return n(t,[{key:"emitEvent",value:function(t,e){e=e?[this].concat(e):[this],this.$item.trigger(t+".vpf.vpf-uid-"+this.uid,e)}},{key:"init",value:function(){var t=this;t.firstRun||t.destroy(),t.destroyed=!1,t.initOptions(),t.initEvents(),t.prepareLazyLoad(),t.initLayout(),t.initCustomColors(),t.initPhotoswipe(),t.emitEvent("init"),t.$item.addClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).addClass("vp-single-filter__ready"),t.initIsotope(),t.initFjGallery(),t.initSwiper(),t.resized(),t.firstRun=!1}},{key:"resized",value:function(){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)}this.emitEvent("resized")}},{key:"destroy",value:function(){var t=this;t.$item.removeClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).removeClass("vp-single-filter__ready"),t.destroyEvents(),t.removeStyle(),t.renderStyle(),t.destroyPhotoswipe(),t.destroyIsotope(),t.destroyFjGallery(),t.destroySwiper(),t.emitEvent("destroy"),t.destroyed=!0}},{key:"addStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]&&(o.stylesList[s]={}),void 0===o.stylesList[s][i]&&(o.stylesList[s][i]={}),void 0===o.stylesList[s][i][t]&&(o.stylesList[s][i][t]={}),o.stylesList[s][i][t]=a.extend(o.stylesList[s][i][t],e),o.emitEvent("addStyle",[t,e,i,o.stylesList])}},{key:"removeStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]||t||(o.stylesList[s]={}),void 0!==o.stylesList[s]&&void 0!==o.stylesList[s][i]&&void 0!==o.stylesList[s][i][t]&&t&&delete o.stylesList[s][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}},{key:"renderStyle",value:function(){var t=this,e=t.uid,i="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[e]&&Object.keys(t.stylesList[e]).forEach(function(o){o&&(i+="@media "+o+" {"),Object.keys(t.stylesList[e][o]).forEach(function(s){i+=".vp-uid-"+e+" "+s+" {",Object.keys(t.stylesList[e][o][s]).forEach(function(r){i+=r+":"+t.stylesList[e][o][s][r]+";"}),i+="}"}),o&&(i+="}")});var o=a("#vp-style-"+e);o.length||(o=a("<style>").attr("id","vp-style-"+e).appendTo("head")),o.html(i),t.emitEvent("renderStyle",[i,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var e=this;e.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(e.userOptions=t);var i=e.$item[0].dataset,o={};Object.keys(i).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[e.firstToLowerCase(t.substring(2))]=i[t])}),e.options=a.extend({},e.defaults,o,e.userOptions),e.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,e,i,o){var s=(o.x-i.x)*(t.y-i.y)-(o.y-i.y)*(t.x-i.x),r=(o.x-i.x)*(e.y-i.y)-(o.y-i.y)*(e.x-i.x),n=(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x),a=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x);return s*r<=0&&n*a<=0}},{key:"initEvents",value:function(){function t(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=_-t.right,s=parseFloat(i.$item.css("margin-left")||0),r=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":r-o})}function e(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=h&&i.loadNewItems(i.options.nextPageUrl,!1,function(){e()})}var i=this,o=".vpf.vpf-uid-"+i.uid;if(i.$item.hasClass("vp-portfolio__stretch")&&(c.on("load"+o+" resize"+o+" orientationchange"+o,function(){t()}),t()),"fly"===i.options.itemsStyle){var s={};c.on("mousemove"+o,function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter"+o+" mouseleave"+o,".vp-portfolio__item",function(t){var e=a(this),o=e[0].getBoundingClientRect(),r=e.find(".vp-portfolio__item-overlay"),n="mouseenter"===t.type,p="0%",l="0%",d={x:t.clientX,y:t.clientY},v=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),m=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),u=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(v||f||m||u)){var c=(o.width/2-d.x+o.left)/(o.width/2),_=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(c)>Math.abs(_)?c>0?m=!0:u=!0:_>0?v=!0:f=!0}v?l="-10"+l:f?l="10"+l:m?p="-10"+p:u&&(p="10"+p),n&&(r.css({transition:"none",transform:"translateX("+p+") translateY("+l+") translateZ(0)"}),r[0].offsetHeight),r.css({transition:".2s transform ease-in-out",transform:"translateX("+(n?"0%":p)+") translateY("+(n?"0%":l)+") translateZ(0)"})})}i.$filter.on("click"+o,".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=a(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.$item.on("click"+o,".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=a(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click"+o,".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(a(this).attr("href"),!0)});var r=void 0,n=250;"infinite"===i.options.pagination&&(c.on("load"+o+" scroll"+o+" resize"+o+" orientationchange"+o,function(){clearTimeout(r),r=setTimeout(function(){e()},60)}),e()),i.$item.on("transitionend"+o,".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=this,e=".vpf.vpf-uid-"+t.uid;t.$item.off(e),t.$filter.off(e),c.off(e),t.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=this,e=window.lazySizesConfig;if(e){var i={"data-vpf-src":e.srcAttr,"data-vpf-sizes":e.sizesAttr,"data-vpf-srcset":e.srcsetAttr};t.$items_wrap.find(".visual-portfolio-lazyload:not(."+e.lazyClass+")").each(function(){var t=a(this);Object.keys(i).forEach(function(e){i[e]&&e!==i[e]&&t.attr(e)&&(t.attr(i[e],t.attr(e)),t.removeAttr(e))}),t.addClass(e.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this,e=t.options.tilesType.split(/[:|]/);return void 0===e[e.length-1]||e[e.length-1]||e.pop(),e}},{key:"initLayout",value:function(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var e=t.getTilesSettings(),i=parseInt(e[0],10)||1;if(e.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:100/i+"%"}),e&&e.length)for(var o=0;o<e.length;o++){var s=e[o].split(","),r=parseFloat(s[0])||1,n=parseFloat(s[1])||1,a=".vp-portfolio__item-wrap";e.length>1&&(a+=":nth-of-type("+e.length+"n+"+(o+1)+")"),r&&1!==r&&t.addStyle(a,{width:100*r/i+"%"}),t.addStyle(a+" .vp-portfolio__item-img-wrap::before",{"margin-top":100*n+"%"})}for(var p=i-1,l=Math.min(w.length-1,p);l>=0;l--)p>0&&void 0!==w[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)"),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)")),p-=1;break;case"masonry":t.addStyle(".vp-portfolio__item-wrap",{width:100/t.options.masonryColumns+"%"});for(var d=t.options.masonryColumns,v=d-1,f=Math.min(w.length-1,v);f>=0;f--)v>0&&void 0!==w[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:100/v+"%"},"screen and (max-width: "+w[f]+"px)"),v-=1;case"justified":break;case"slider":"auto"!==t.options.sliderItemsHeight&&("auto"===t.options.sliderSlidesPerView?t.options.sliderItemsHeight.indexOf("%")===t.options.sliderItemsHeight.length-1?(t.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__item-wrap",{height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.addStyle(".vp-portfolio__item, .vp-portfolio__item-img-wrap, .vp-portfolio__item-img, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img a, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:"100%"})):t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}):(t.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var m=parseInt(t.options.itemsGap,10);if(m&&("tiles"===t.options.layout||"masonry"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-"+m+"px","margin-top":"-"+m+"px"});var u=m+"px";t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-"+u,"margin-top":"-"+u}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var e=a(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'+e+'"]',{"background-color":e+" !important"})}),t.$item.find("[data-vp-text-color]").each(function(){var e=a(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'+e+'"]',{color:e+" !important"})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){var e=this;!e.$items_wrap.isotope||"tiles"!==e.options.layout&&"masonry"!==e.options.layout||(e.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),e.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){var t=this;t.$items_wrap.data("isotope")&&(t.$items_wrap.isotope("destroy"),t.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this;i.$items_wrap.fjGallery&&"justified"===i.options.layout&&(i.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(i.options.itemsGap)||0,rowHeight:parseFloat(i.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(i.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},e),i.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){var t=this;t.$items_wrap.data("fjGallery")&&(t.$items_wrap.fjGallery("destroy"),t.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;if("slider"===e.options.layout&&void 0!==window.Swiper){var i=e.$items_wrap.parent();i.addClass("swiper-container"),e.$items_wrap.addClass("swiper-wrapper"),e.$items_wrap.children().addClass("swiper-slide"),"true"!==e.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'+e.options.sliderArrowsIconPrev+'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="'+e.options.sliderArrowsIconNext+'"></span></div>\n '),"true"!==e.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var o=e.options.sliderSlidesPerView||3,s={};if(!isNaN(o))for(var r=o-1,n=Math.min(w.length-1,r);n>=0;n--)r>0&&void 0!==w[n]&&(s[w[n]]={slidesPerView:r}),r-=1;new window.Swiper(i[0],t||{speed:1e3*(parseFloat(e.options.sliderSpeed)||0),autoHeight:"auto"===e.options.sliderItemsHeight,effect:e.options.sliderEffect||"slide",spaceBetween:parseFloat(e.options.itemsGap)||0,centeredSlides:"true"===e.options.sliderCenteredSlides,freeMode:"true"===e.options.sliderFreeMode,loop:"true"===e.options.sliderLoop,autoplay:parseFloat(e.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(e.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===e.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===e.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===e.options.sliderBulletsDynamic},slidesPerView:o,breakpoints:s,keyboard:!0,grabCursor:!0}),e.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this,e=t.$items_wrap.parent(),i=e[0].swiper;i&&(i.destroy(),e.removeClass("swiper-container"),t.$items_wrap.removeClass("swiper-wrapper"),t.$items_wrap.children().removeClass("swiper-slide"),e.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),t.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){function t(e,i){if(void 0===i)return void(e&&e.itemHolders.length&&e.itemHolders.forEach(function(i){i.item&&i.item.html&&t(e,i.item)}));var o=e.viewportSize.x,s=e.viewportSize.y,r=i.vw/i.vh,n=void 0,p=a(i.container),l=e.options.barsSize,d=0,v=0;l&&(d=l.top&&"auto"!==l.top?l.top:0,v=l.bottom&&"auto"!==l.bottom?l.bottom:0),s-=d+v,n=r>o/s?o:s*r,p.find(".vp-pswp-video").css("max-width",n),p.css({top:d,bottom:v})}var e=this;if(void 0!==v&&e.options.itemsClickAction&&"popup_gallery"===e.options.itemsClickAction&&!e.$item.closest("#vp_preview").length){if(!a(".vp-pswp").length){var i="\n <div class=\"pswp vp-pswp vp-pswp-uid-'}"+e.uid+'" 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 <a class="pswp__button pswp__button--close" title="'+m.pswp_close+'"></a>\n <a class="pswp__button pswp__button--share" title="'+m.pswp_share+'"></a>\n <a class="pswp__button pswp__button--fs" title="'+m.pswp_fs+'"></a>\n <a class="pswp__button pswp__button--zoom" title="'+m.pswp_zoom+'"></a>\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 <a class="pswp__button pswp__button--arrow--left" title="'+m.pswp_prev+'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="'+m.pswp_next+'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ';a("body").append(i)}var o=function(t){var e=a(t).find(".vp-portfolio__item-wrap"),i=[],o=void 0,s=void 0,r=void 0,n=void 0,p=void 0;return e.each(function(){if(o=a(this).find(".vp-portfolio__item-popup"),s=(o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),r=(o.attr("data-vp-popup-video-size")||"1920x1080").split("x"),p=o.attr("data-vp-popup-video"))n={html:p,vw:parseInt(r[0],10),vh:parseInt(r[1],10)};else{n={src:o.attr("data-vp-popup-img"),w:parseInt(s[0],10),h:parseInt(s[1],10)};var t=o.html();t&&(n.title=t),n.el=this;var e=o.attr("data-vp-popup-md-img")||n.src;e&&(s=(o.attr("data-vp-popup-md-img-size")||o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:e,w:parseInt(s[0],10),h:parseInt(s[1],10)}),n.o={src:n.src,w:n.w,h:n.h}}i.push(n)}),i},s=function(i,s,r,n){var p=a(".vp-pswp")[0],l=o(s),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:u.show_close_button,captionEl:u.show_caption,fullscreenEl:u.show_fullscreen_button,zoomEl:u.show_zoom_button,shareEl:u.show_share_button,counterEl:u.show_counter,arrowEl:u.show_arrows,shareButtons:[{id:"facebook",label:m.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:m.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:m.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,galleryUID:e.uid};if(n)if(d.galleryPIDs){for(var c=0;c<l.length;c++)if(l[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!Number.isNaN(d.index)){r&&(d.showAnimationDuration=0);var _=new v(p,f,l,d),h=void 0,w=!1,y=!0,g=void 0;_.listen("beforeResize",function(){h=_.viewportSize.x*window.devicePixelRatio,w&&h<1e3?(w=!1,g=!0):!w&&h>=1e3&&(w=!0,g=!0),g&&!y&&_.invalidateCurrItems(),y&&(y=!1),g=!1}),_.listen("gettingData",function(t,e){e.html||(w?(e.src=e.o.src,e.w=e.o.w,e.h=e.o.h):(e.src=e.m.src,e.w=e.m.w,e.h=e.m.h))}),_.listen("resize",function(){t(this)}),_.listen("afterChange",function(){t(this)}),_.listen("destroy",function(){var t=this;t&&t.itemHolders.length&&t.itemHolders.forEach(function(t){t.el&&a(t.el).find(".vp-pswp-video").remove()})}),_.init()}};e.$item.on("click.vpf.vpf-uid-"+e.uid,".vp-portfolio__item",function(t){t.preventDefault();var i=0,o=this;e.$item.find(".vp-portfolio__item").each(function(t){return this!==o||(i=t,!1)}),s(i,e.$item[0])});var r=function(){var t=window.location.hash.substring(1),e={};if(t.length<5)return e;for(var i=t.split("&"),o=0;o<i.length;o++)if(i[o]){var s=i[o].split("=");s.length<2||(e[s[0]]=s[1])}return e}();r.pid&&r.gid===e.uid&&s(r.pid,e.$item[0],!0,!0)}}},{key:"destroyPhotoswipe",value:function(){var t=this;t.$item.off("click.vpf.vpf-uid-"+t.uid),a(".vp-pswp-uid-"+t.uid).remove()}},{key:"addItems",value:function(t,e){var i=this,o=i.$items_wrap.data("isotope"),s=i.$items_wrap.data("fjGallery"),r=i.$items_wrap.parent()[0].swiper;if(o){if(e){var n=i.$items_wrap.find(".vp-portfolio__item-wrap");i.$items_wrap.isotope("remove",n),i.$items_wrap.prepend(t).isotope("prepended",t)}else i.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){i.initIsotope("layout")},0)}else if(s)e?(i.destroyFjGallery(),i.$items_wrap.find(".vp-portfolio__item-wrap").remove(),i.$items_wrap.prepend(t),i.initFjGallery()):(i.$items_wrap.append(t),i.initFjGallery("appendImages",t));else if(r){e&&r.removeAllSlides();var a=[];t.addClass("swiper-slide").each(function(){a.push(this)}),r.appendSlide(a)}i.emitEvent("addItems",[t,e])}},{key:"removeItems",value:function(t){var e=this;e.$items_wrap.data("isotope")&&e.$items_wrap.isotope("remove",t),e.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,e,i){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),a.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=a(t).filter("#vp-infinite-load-body"),r=s.find(".vp-portfolio.vp-uid-"+o.uid);if(r.length){var n=r.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=a(this),e="";e=t.parent().hasClass("vp-single-filter")?s.find('[class="'+t.parent().attr("class").replace(" vp-single-filter__ready","")+'"] .vp-portfolio__filter-wrap').html():r.find(".vp-portfolio__filter-wrap").html(),t.html(e)}),o.$pagination.length&&o.$pagination.html(r.find(".vp-portfolio__pagination-wrap").html()),o.addItems(a(n),e),o.emitEvent("loadedNewItems",[r,r,t])}var p=r.attr("data-vp-next-page-url");o.options.nextPageUrl=p,o.$item.attr("data-vp-next-page-url",p),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),i&&i()}))}}]),t}(),g=function(t){var e=Array.prototype.slice.call(arguments,1),o=void 0;return this.each(function(){if(void 0===o)if("object"===(void 0===t?"undefined":r(t))||void 0===t)this.vpf||(this.vpf=new y(a(this),t));else if(this.vpf){var s;o=(s=this.vpf)[t].apply(s,i(e))}}),void 0!==o?o:this};g.constructor=y;var b=jQuery.fn.vpf;jQuery.fn.vpf=g,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=b,this},a(".vp-portfolio").vpf(),a(function(){a(".vp-portfolio").vpf()})}});
|
1 |
+
!function(t){function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=51)}({51:function(t,e,i){t.exports=i(52)},52:function(t,e){function i(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(){_=c.width(),h=c.height()}var r="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},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),a=jQuery,p=window,l=p.VPData,d=p.objectFitImages,v=p.PhotoSwipe,f=p.PhotoSwipeUI_Default,m=l.__,u=l.settingsPopupGallery,c=a(window),_=0,h=0;s(),c.on("resize load orientationchange",s);var w=[320,576,768,992,1200];void 0!==d&&d();var y=function(){function t(e,i){o(this,t);var s=this;s.$item=e;for(var r=e[0].className.split(/\s+/),n=0;n<r.length;n++)r[n]&&/^vp-uid-/.test(r[n])&&(s.uid=r[n].replace(/^vp-uid-/,"")),r[n]&&/^vp-id-/.test(r[n])&&(s.id=r[n].replace(/^vp-id-/,""));if(!s.uid)return void console.error(m.couldnt_retrieve_vp);s.$items_wrap=e.find(".vp-portfolio__items"),s.$pagination=e.find(".vp-portfolio__pagination-wrap"),s.$filter=e.find(".vp-portfolio__filter-wrap"),s.id&&(s.$filter=s.$filter.add(".vp-single-filter.vp-id-"+s.id+" .vp-portfolio__filter-wrap")),s.userOptions=i,s.firstRun=!0,s.init()}return n(t,[{key:"emitEvent",value:function(t,e){e=e?[this].concat(e):[this],this.$item.trigger(t+".vpf.vpf-uid-"+this.uid,e)}},{key:"init",value:function(){var t=this;t.firstRun||t.destroy(),t.destroyed=!1,t.initOptions(),t.initEvents(),t.prepareLazyLoad(),t.initLayout(),t.initCustomColors(),t.initPhotoswipe(),t.emitEvent("init"),t.$item.addClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).addClass("vp-single-filter__ready"),t.initIsotope(),t.initFjGallery(),t.initSwiper(),t.resized(),t.firstRun=!1}},{key:"resized",value:function(){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)}this.emitEvent("resized")}},{key:"destroy",value:function(){var t=this;t.$item.removeClass("vp-portfolio__ready"),t.id&&a(".vp-single-filter.vp-id-"+t.id).removeClass("vp-single-filter__ready"),t.destroyEvents(),t.removeStyle(),t.renderStyle(),t.destroyPhotoswipe(),t.destroyIsotope(),t.destroyFjGallery(),t.destroySwiper(),t.emitEvent("destroy"),t.destroyed=!0}},{key:"addStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]&&(o.stylesList[s]={}),void 0===o.stylesList[s][i]&&(o.stylesList[s][i]={}),void 0===o.stylesList[s][i][t]&&(o.stylesList[s][i][t]={}),o.stylesList[s][i][t]=a.extend(o.stylesList[s][i][t],e),o.emitEvent("addStyle",[t,e,i,o.stylesList])}},{key:"removeStyle",value:function(t,e,i){i=i||"";var o=this,s=o.uid;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]||t||(o.stylesList[s]={}),void 0!==o.stylesList[s]&&void 0!==o.stylesList[s][i]&&void 0!==o.stylesList[s][i][t]&&t&&delete o.stylesList[s][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}},{key:"renderStyle",value:function(){var t=this,e=t.uid,i="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[e]&&Object.keys(t.stylesList[e]).forEach(function(o){o&&(i+="@media "+o+" {"),Object.keys(t.stylesList[e][o]).forEach(function(s){i+=".vp-uid-"+e+" "+s+" {",Object.keys(t.stylesList[e][o][s]).forEach(function(r){i+=r+":"+t.stylesList[e][o][s][r]+";"}),i+="}"}),o&&(i+="}")});var o=a("#vp-style-"+e);o.length||(o=a("<style>").attr("id","vp-style-"+e).appendTo("head")),o.html(i),t.emitEvent("renderStyle",[i,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var e=this;e.defaults={layout:"tile",itemsGap:0,tilesType:"3|1,1|",masonryColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,pagination:"load-more"},t&&(e.userOptions=t);var i=e.$item[0].dataset,o={};Object.keys(i).forEach(function(t){t&&"vp"===t.substring(0,2)&&(o[e.firstToLowerCase(t.substring(2))]=i[t])}),e.options=a.extend({},e.defaults,o,e.userOptions),e.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,e,i,o){var s=(o.x-i.x)*(t.y-i.y)-(o.y-i.y)*(t.x-i.x),r=(o.x-i.x)*(e.y-i.y)-(o.y-i.y)*(e.x-i.x),n=(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x),a=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x);return s*r<=0&&n*a<=0}},{key:"initEvents",value:function(){function t(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=_-t.right,s=parseFloat(i.$item.css("margin-left")||0),r=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":r-o})}function e(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=h&&i.loadNewItems(i.options.nextPageUrl,!1,function(){e()})}var i=this,o=".vpf.vpf-uid-"+i.uid;if(i.$item.hasClass("vp-portfolio__stretch")&&(c.on("load"+o+" resize"+o+" orientationchange"+o,function(){t()}),t()),"fly"===i.options.itemsStyle){var s={};c.on("mousemove"+o,function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter"+o+" mouseleave"+o,".vp-portfolio__item",function(t){var e=a(this),o=e[0].getBoundingClientRect(),r=e.find(".vp-portfolio__item-overlay"),n="mouseenter"===t.type,p="0%",l="0%",d={x:t.clientX,y:t.clientY},v=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),m=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),u=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(v||f||m||u)){var c=(o.width/2-d.x+o.left)/(o.width/2),_=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(c)>Math.abs(_)?c>0?m=!0:u=!0:_>0?v=!0:f=!0}v?l="-10"+l:f?l="10"+l:m?p="-10"+p:u&&(p="10"+p),n&&(r.css({transition:"none",transform:"translateX("+p+") translateY("+l+") translateZ(0)"}),r[0].offsetHeight),r.css({transition:".2s transform ease-in-out",transform:"translateX("+(n?"0%":p)+") translateY("+(n?"0%":l)+") translateZ(0)"})})}i.$filter.on("click"+o,".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=a(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.$item.on("click"+o,".vp-pagination .vp-pagination__item a",function(t){t.preventDefault();var e=a(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click"+o,".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(a(this).attr("href"),!0)});var r=void 0,n=250;"infinite"===i.options.pagination&&(c.on("load"+o+" scroll"+o+" resize"+o+" orientationchange"+o,function(){clearTimeout(r),r=setTimeout(function(){e()},60)}),e()),i.$item.on("transitionend"+o,".vp-portfolio__items",function(t){t.currentTarget===t.target&&i.resized()}),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=this,e=".vpf.vpf-uid-"+t.uid;t.$item.off(e),t.$filter.off(e),c.off(e),t.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=this,e=window.lazySizesConfig;if(e){var i={"data-vpf-src":e.srcAttr,"data-vpf-sizes":e.sizesAttr,"data-vpf-srcset":e.srcsetAttr};t.$items_wrap.find(".visual-portfolio-lazyload:not(."+e.lazyClass+")").each(function(){var t=a(this);Object.keys(i).forEach(function(e){i[e]&&e!==i[e]&&t.attr(e)&&(t.attr(i[e],t.attr(e)),t.removeAttr(e))}),t.addClass(e.lazyClass)})}}},{key:"getTilesSettings",value:function(){var t=this,e=t.options.tilesType.split(/[:|]/);return void 0===e[e.length-1]||e[e.length-1]||e.pop(),e}},{key:"initLayout",value:function(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var e=t.getTilesSettings(),i=parseInt(e[0],10)||1;if(e.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:100/i+"%"}),e&&e.length)for(var o=0;o<e.length;o++){var s=e[o].split(","),r=parseFloat(s[0])||1,n=parseFloat(s[1])||1,a=".vp-portfolio__item-wrap";e.length>1&&(a+=":nth-of-type("+e.length+"n+"+(o+1)+")"),r&&1!==r&&t.addStyle(a,{width:100*r/i+"%"}),t.addStyle(a+" .vp-portfolio__item-img-wrap::before",{"margin-top":100*n+"%"})}for(var p=i-1,l=Math.min(w.length-1,p);l>=0;l--)p>0&&void 0!==w[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)"),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:100/p+"%"},"screen and (max-width: "+w[l]+"px)")),p-=1;break;case"masonry":t.addStyle(".vp-portfolio__item-wrap",{width:100/t.options.masonryColumns+"%"});for(var d=t.options.masonryColumns,v=d-1,f=Math.min(w.length-1,v);f>=0;f--)v>0&&void 0!==w[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:100/v+"%"},"screen and (max-width: "+w[f]+"px)"),v-=1;case"justified":break;case"slider":"auto"!==t.options.sliderItemsHeight&&("auto"===t.options.sliderSlidesPerView?t.options.sliderItemsHeight.indexOf("%")===t.options.sliderItemsHeight.length-1?(t.addStyle(".vp-portfolio__items-wrap::before",{content:'""',display:"block",width:"100%","margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__items",{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__item-wrap",{height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.addStyle(".vp-portfolio__item, .vp-portfolio__item-img-wrap, .vp-portfolio__item-img, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img a, .vp-portfolio__item-wrap .vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:"100%"})):t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"auto",height:isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}):(t.addStyle(".vp-portfolio__item-img-wrap::before",{"margin-top":isNaN(t.options.sliderItemsHeight)?t.options.sliderItemsHeight:t.options.sliderItemsHeight+"px"}),t.addStyle(".vp-portfolio__item-img img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item-img",{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__item .vp-portfolio__item-img img",{width:"100%",height:"100%"})))}var m=parseInt(t.options.itemsGap,10);if(m&&("tiles"===t.options.layout||"masonry"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-"+m+"px","margin-top":"-"+m+"px"});var u=m+"px";t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-"+u,"margin-top":"-"+u}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var e=a(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'+e+'"]',{"background-color":e+" !important"})}),t.$item.find("[data-vp-text-color]").each(function(){var e=a(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'+e+'"]',{color:e+" !important"})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){var e=this;!e.$items_wrap.isotope||"tiles"!==e.options.layout&&"masonry"!==e.options.layout||(e.$items_wrap.isotope(t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"masonry",transitionDuration:"0.3s",percentPosition:!0}),e.emitEvent("initIsotope",[t]))}},{key:"destroyIsotope",value:function(){var t=this;t.$items_wrap.data("isotope")&&(t.$items_wrap.isotope("destroy"),t.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this;i.$items_wrap.fjGallery&&"justified"===i.options.layout&&(i.$items_wrap.fjGallery(!1!==t?t:{gutter:parseFloat(i.options.itemsGap)||0,rowHeight:parseFloat(i.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(i.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"},e),i.emitEvent("initFjGallery",[t]))}},{key:"destroyFjGallery",value:function(){var t=this;t.$items_wrap.data("fjGallery")&&(t.$items_wrap.fjGallery("destroy"),t.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;if("slider"===e.options.layout&&void 0!==window.Swiper){var i=e.$items_wrap.parent();i.addClass("swiper-container"),e.$items_wrap.addClass("swiper-wrapper"),e.$items_wrap.children().addClass("swiper-slide"),"true"!==e.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'+e.options.sliderArrowsIconPrev+'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="'+e.options.sliderArrowsIconNext+'"></span></div>\n '),"true"!==e.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var o=e.options.sliderSlidesPerView||3,s={};if(!isNaN(o))for(var r=o-1,n=Math.min(w.length-1,r);n>=0;n--)r>0&&void 0!==w[n]&&(s[w[n]]={slidesPerView:r}),r-=1;new window.Swiper(i[0],t||{speed:1e3*(parseFloat(e.options.sliderSpeed)||0),autoHeight:"auto"===e.options.sliderItemsHeight,effect:e.options.sliderEffect||"slide",spaceBetween:parseFloat(e.options.itemsGap)||0,centeredSlides:"true"===e.options.sliderCenteredSlides,freeMode:"true"===e.options.sliderFreeMode,loop:"true"===e.options.sliderLoop,autoplay:parseFloat(e.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(e.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===e.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===e.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===e.options.sliderBulletsDynamic},slidesPerView:o,breakpoints:s,keyboard:!0,grabCursor:!0}),e.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this,e=t.$items_wrap.parent(),i=e[0].swiper;i&&(i.destroy(),e.removeClass("swiper-container"),t.$items_wrap.removeClass("swiper-wrapper"),t.$items_wrap.children().removeClass("swiper-slide"),e.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),t.emitEvent("destroySwiper"))}},{key:"initPhotoswipe",value:function(){function t(e,i){if(void 0===i)return void(e&&e.itemHolders.length&&e.itemHolders.forEach(function(i){i.item&&i.item.html&&t(e,i.item)}));var o=e.viewportSize.x,s=e.viewportSize.y,r=i.vw/i.vh,n=void 0,p=a(i.container),l=e.options.barsSize,d=0,v=0;l&&(d=l.top&&"auto"!==l.top?l.top:0,v=l.bottom&&"auto"!==l.bottom?l.bottom:0),s-=d+v,n=r>o/s?o:s*r,p.find(".vp-pswp-video").css("max-width",n),p.css({top:d,bottom:v})}var e=this;if(void 0!==v&&e.options.itemsClickAction&&"popup_gallery"===e.options.itemsClickAction&&!e.$item.closest("#vp_preview").length){if(!a(".vp-pswp").length){var i="\n <div class=\"pswp vp-pswp vp-pswp-uid-'}"+e.uid+'" 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 <a class="pswp__button pswp__button--close" title="'+m.pswp_close+'"></a>\n <a class="pswp__button pswp__button--share" title="'+m.pswp_share+'"></a>\n <a class="pswp__button pswp__button--fs" title="'+m.pswp_fs+'"></a>\n <a class="pswp__button pswp__button--zoom" title="'+m.pswp_zoom+'"></a>\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 <a class="pswp__button pswp__button--arrow--left" title="'+m.pswp_prev+'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="'+m.pswp_next+'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ';a("body").append(i)}var o=function(t){var e=a(t).find(".vp-portfolio__item-wrap"),i=[],o=void 0,s=void 0,r=void 0,n=void 0,p=void 0;return e.each(function(){if(o=a(this).find(".vp-portfolio__item-popup"),s=(o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),r=(o.attr("data-vp-popup-video-size")||"1920x1080").split("x"),p=o.attr("data-vp-popup-video"))n={html:p,vw:parseInt(r[0],10),vh:parseInt(r[1],10)};else{n={src:o.attr("data-vp-popup-img"),w:parseInt(s[0],10),h:parseInt(s[1],10)};var t=o.html();t&&(n.title=t),n.el=this;var e=o.attr("data-vp-popup-md-img")||n.src;e&&(s=(o.attr("data-vp-popup-md-img-size")||o.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:e,w:parseInt(s[0],10),h:parseInt(s[1],10)}),n.o={src:n.src,w:n.w,h:n.h}}i.push(n)}),i},s=function(i,s,r,n){var p=a(".vp-pswp")[0],l=o(s),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:u.show_close_button,captionEl:u.show_caption,fullscreenEl:u.show_fullscreen_button,zoomEl:u.show_zoom_button,shareEl:u.show_share_button,counterEl:u.show_counter,arrowEl:u.show_arrows,shareButtons:[{id:"facebook",label:m.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:m.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:m.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!0,tapToToggleControls:!1,showHideOpacity:!0,galleryUID:e.uid};if(n)if(d.galleryPIDs){for(var c=0;c<l.length;c++)if(l[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!Number.isNaN(d.index)){r&&(d.showAnimationDuration=0);var _=new v(p,f,l,d),h=void 0,w=!1,y=!0,g=void 0;_.listen("beforeResize",function(){h=_.viewportSize.x*window.devicePixelRatio,w&&h<1e3?(w=!1,g=!0):!w&&h>=1e3&&(w=!0,g=!0),g&&!y&&_.invalidateCurrItems(),y&&(y=!1),g=!1}),_.listen("gettingData",function(t,e){e.html||(w?(e.src=e.o.src,e.w=e.o.w,e.h=e.o.h):(e.src=e.m.src,e.w=e.m.w,e.h=e.m.h))}),_.listen("resize",function(){t(this)}),_.listen("afterChange",function(){t(this)}),_.listen("destroy",function(){var t=this;t&&t.itemHolders.length&&t.itemHolders.forEach(function(t){t.el&&a(t.el).find(".vp-pswp-video").remove()})}),_.init()}};e.$item.on("click.vpf.vpf-uid-"+e.uid,".vp-portfolio__item",function(t){t.preventDefault();var i=0,o=this;e.$item.find(".vp-portfolio__item").each(function(t){return this!==o||(i=t,!1)}),s(i,e.$item[0])});var r=function(){var t=window.location.hash.substring(1),e={};if(t.length<5)return e;for(var i=t.split("&"),o=0;o<i.length;o++)if(i[o]){var s=i[o].split("=");s.length<2||(e[s[0]]=s[1])}return e}();r.pid&&r.gid===e.uid&&s(r.pid,e.$item[0],!0,!0)}}},{key:"destroyPhotoswipe",value:function(){var t=this;t.$item.off("click.vpf.vpf-uid-"+t.uid),a(".vp-pswp-uid-"+t.uid).remove()}},{key:"addItems",value:function(t,e){var i=this,o=i.$items_wrap.data("isotope"),s=i.$items_wrap.data("fjGallery"),r=i.$items_wrap.parent()[0].swiper;if(o){if(e){var n=i.$items_wrap.find(".vp-portfolio__item-wrap");i.$items_wrap.isotope("remove",n),i.$items_wrap.prepend(t).isotope("prepended",t)}else i.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){i.initIsotope("layout")},0)}else if(s)e?(i.destroyFjGallery(),i.$items_wrap.find(".vp-portfolio__item-wrap").remove(),i.$items_wrap.prepend(t),i.initFjGallery()):(i.$items_wrap.append(t),i.initFjGallery("appendImages",t));else if(r){e&&r.removeAllSlides();var a=[];t.addClass("swiper-slide").each(function(){a.push(this)}),r.appendSlide(a)}i.emitEvent("addItems",[t,e])}},{key:"removeItems",value:function(t){var e=this;e.$items_wrap.data("isotope")&&e.$items_wrap.isotope("remove",t),e.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,e,i){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),a.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=a(t).filter("#vp-infinite-load-body"),r=s.find(".vp-portfolio.vp-uid-"+o.uid);if(r.length){var n=r.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=a(this),e="";e=t.parent().hasClass("vp-single-filter")?s.find('[class="'+t.parent().attr("class").replace(" vp-single-filter__ready","")+'"] .vp-portfolio__filter-wrap').html():r.find(".vp-portfolio__filter-wrap").html(),t.html(e)}),o.$pagination.length&&o.$pagination.html(r.find(".vp-portfolio__pagination-wrap").html()),o.addItems(a(n),e),o.emitEvent("loadedNewItems",[r,r,t])}var p=r.attr("data-vp-next-page-url");o.options.nextPageUrl=p,o.$item.attr("data-vp-next-page-url",p),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),i&&i()}))}}]),t}(),g=function(t){var e=Array.prototype.slice.call(arguments,1),o=void 0;return this.each(function(){if(void 0===o)if("object"===(void 0===t?"undefined":r(t))||void 0===t)this.vpf||(this.vpf=new y(a(this),t));else if(this.vpf){var s;o=(s=this.vpf)[t].apply(s,i(e))}}),void 0!==o?o:this};g.constructor=y;var b=jQuery.fn.vpf;jQuery.fn.vpf=g,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=b,this},a(".vp-portfolio").vpf(),a(function(){a(".vp-portfolio").vpf()})}});
|
assets/vendor/lazysizes/lazysizes.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
/*! lazysizes - v4.0
|
2 |
-
!function(a,b){var c=b(a,a.document);a.lazySizes=c,"object"==typeof module&&module.exports&&(module.exports=c)}(window,function(a,b){"use strict";if(b.getElementsByClassName){var c,d,e=b.documentElement,f=a.Date,g=a.HTMLPictureElement,h="addEventListener",i="getAttribute",j=a[h],k=a.setTimeout,l=a.requestAnimationFrame||k,m=a.requestIdleCallback,n=/^picture$/i,o=["load","error","lazyincluded","_lazyloaded"],p={},q=Array.prototype.forEach,r=function(a,b){return p[b]||(p[b]=new RegExp("(\\s|^)"+b+"(\\s|$)")),p[b].test(a[i]("class")||"")&&p[b]},s=function(a,b){r(a,b)||a.setAttribute("class",(a[i]("class")||"").trim()+" "+b)},t=function(a,b){var c;(c=r(a,b))&&a.setAttribute("class",(a[i]("class")||"").replace(c," "))},u=function(a,b,c){var d=c?h:"removeEventListener";c&&u(a,b),o.forEach(function(c){a[d](c,b)})},v=function(a,d,e,f,g){var h=b.createEvent("CustomEvent");return e||(e={}),e.instance=c,h.initCustomEvent(d,!f,!g,e),a.dispatchEvent(h),h},w=function(b,c){var e;!g&&(e=a.picturefill||d.pf)?e({reevaluate:!0,elements:[b]}):c&&c.src&&(b.src=c.src)},x=function(a,b){return(getComputedStyle(a,null)||{})[b]},y=function(a,b,c){for(c=c||a.offsetWidth;c<d.minSize&&b&&!a._lazysizesWidth;)c=b.offsetWidth,b=b.parentNode;return c},z=function(){var a,c,d=[],e=[],f=d,g=function(){var b=f;for(f=d.length?e:d,a=!0,c=!1;b.length;)b.shift()();a=!1},h=function(d,e){a&&!e?d.apply(this,arguments):(f.push(d),c||(c=!0,(b.hidden?k:l)(g)))};return h._lsFlush=g,h}(),A=function(a,b){return b?function(){z(a)}:function(){var b=this,c=arguments;z(function(){a.apply(b,c)})}},B=function(a){var b,c=0,e=d.throttleDelay,g=d.ricTimeout,h=function(){b=!1,c=f.now(),a()},i=m&&g>49?function(){m(h,{timeout:g}),g!==d.ricTimeout&&(g=d.ricTimeout)}:A(function(){k(h)},!0);return function(a){var d;(a=a===!0)&&(g=33),b||(b=!0,d=e-(f.now()-c),0>d&&(d=0),a||9>d?i():k(i,d))}},C=function(a){var b,c,d=99,e=function(){b=null,a()},g=function(){var a=f.now()-c;d>a?k(g,d-a):(m||e)(e)};return function(){c=f.now(),b||(b=k(g,d))}};!function(){var b,c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};d=a.lazySizesConfig||a.lazysizesConfig||{};for(b in c)b in d||(d[b]=c[b]);a.lazySizesConfig=d,k(function(){d.init&&F()})}();var D=function(){var g,l,m,o,p,y,D,F,G,H,I,J,K,L,M=/^img$/i,N=/^iframe$/i,O="onscroll"in a&&!/
|
1 |
+
/*! lazysizes - v4.1.0 */
|
2 |
+
!function(a,b){var c=b(a,a.document);a.lazySizes=c,"object"==typeof module&&module.exports&&(module.exports=c)}(window,function(a,b){"use strict";if(b.getElementsByClassName){var c,d,e=b.documentElement,f=a.Date,g=a.HTMLPictureElement,h="addEventListener",i="getAttribute",j=a[h],k=a.setTimeout,l=a.requestAnimationFrame||k,m=a.requestIdleCallback,n=/^picture$/i,o=["load","error","lazyincluded","_lazyloaded"],p={},q=Array.prototype.forEach,r=function(a,b){return p[b]||(p[b]=new RegExp("(\\s|^)"+b+"(\\s|$)")),p[b].test(a[i]("class")||"")&&p[b]},s=function(a,b){r(a,b)||a.setAttribute("class",(a[i]("class")||"").trim()+" "+b)},t=function(a,b){var c;(c=r(a,b))&&a.setAttribute("class",(a[i]("class")||"").replace(c," "))},u=function(a,b,c){var d=c?h:"removeEventListener";c&&u(a,b),o.forEach(function(c){a[d](c,b)})},v=function(a,d,e,f,g){var h=b.createEvent("CustomEvent");return e||(e={}),e.instance=c,h.initCustomEvent(d,!f,!g,e),a.dispatchEvent(h),h},w=function(b,c){var e;!g&&(e=a.picturefill||d.pf)?(c&&c.src&&!b[i]("srcset")&&b.setAttribute("srcset",c.src),e({reevaluate:!0,elements:[b]})):c&&c.src&&(b.src=c.src)},x=function(a,b){return(getComputedStyle(a,null)||{})[b]},y=function(a,b,c){for(c=c||a.offsetWidth;c<d.minSize&&b&&!a._lazysizesWidth;)c=b.offsetWidth,b=b.parentNode;return c},z=function(){var a,c,d=[],e=[],f=d,g=function(){var b=f;for(f=d.length?e:d,a=!0,c=!1;b.length;)b.shift()();a=!1},h=function(d,e){a&&!e?d.apply(this,arguments):(f.push(d),c||(c=!0,(b.hidden?k:l)(g)))};return h._lsFlush=g,h}(),A=function(a,b){return b?function(){z(a)}:function(){var b=this,c=arguments;z(function(){a.apply(b,c)})}},B=function(a){var b,c=0,e=d.throttleDelay,g=d.ricTimeout,h=function(){b=!1,c=f.now(),a()},i=m&&g>49?function(){m(h,{timeout:g}),g!==d.ricTimeout&&(g=d.ricTimeout)}:A(function(){k(h)},!0);return function(a){var d;(a=a===!0)&&(g=33),b||(b=!0,d=e-(f.now()-c),0>d&&(d=0),a||9>d?i():k(i,d))}},C=function(a){var b,c,d=99,e=function(){b=null,a()},g=function(){var a=f.now()-c;d>a?k(g,d-a):(m||e)(e)};return function(){c=f.now(),b||(b=k(g,d))}};!function(){var b,c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};d=a.lazySizesConfig||a.lazysizesConfig||{};for(b in c)b in d||(d[b]=c[b]);a.lazySizesConfig=d,k(function(){d.init&&F()})}();var D=function(){var g,l,m,o,p,y,D,F,G,H,I,J,K,L,M=/^img$/i,N=/^iframe$/i,O="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),P=0,Q=0,R=0,S=-1,T=function(a){R--,a&&a.target&&u(a.target,T),(!a||0>R||!a.target)&&(R=0)},U=function(a,c){var d,f=a,g="hidden"==x(b.body,"visibility")||"hidden"!=x(a.parentNode,"visibility")&&"hidden"!=x(a,"visibility");for(F-=c,I+=c,G-=c,H+=c;g&&(f=f.offsetParent)&&f!=b.body&&f!=e;)g=(x(f,"opacity")||1)>0,g&&"visible"!=x(f,"overflow")&&(d=f.getBoundingClientRect(),g=H>d.left&&G<d.right&&I>d.top-1&&F<d.bottom+1);return g},V=function(){var a,f,h,j,k,m,n,p,q,r=c.elements;if((o=d.loadMode)&&8>R&&(a=r.length)){f=0,S++,null==K&&("expand"in d||(d.expand=e.clientHeight>500&&e.clientWidth>500?500:370),J=d.expand,K=J*d.expFactor),K>Q&&1>R&&S>2&&o>2&&!b.hidden?(Q=K,S=0):Q=o>1&&S>1&&6>R?J:P;for(;a>f;f++)if(r[f]&&!r[f]._lazyRace)if(O)if((p=r[f][i]("data-expand"))&&(m=1*p)||(m=Q),q!==m&&(y=innerWidth+m*L,D=innerHeight+m,n=-1*m,q=m),h=r[f].getBoundingClientRect(),(I=h.bottom)>=n&&(F=h.top)<=D&&(H=h.right)>=n*L&&(G=h.left)<=y&&(I||H||G||F)&&(d.loadHidden||"hidden"!=x(r[f],"visibility"))&&(l&&3>R&&!p&&(3>o||4>S)||U(r[f],m))){if(ba(r[f]),k=!0,R>9)break}else!k&&l&&!j&&4>R&&4>S&&o>2&&(g[0]||d.preloadAfterLoad)&&(g[0]||!p&&(I||H||G||F||"auto"!=r[f][i](d.sizesAttr)))&&(j=g[0]||r[f]);else ba(r[f]);j&&!k&&ba(j)}},W=B(V),X=function(a){s(a.target,d.loadedClass),t(a.target,d.loadingClass),u(a.target,Z),v(a.target,"lazyloaded")},Y=A(X),Z=function(a){Y({target:a.target})},$=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}},_=function(a){var b,c=a[i](d.srcsetAttr);(b=d.customMedia[a[i]("data-media")||a[i]("media")])&&a.setAttribute("media",b),c&&a.setAttribute("srcset",c)},aa=A(function(a,b,c,e,f){var g,h,j,l,o,p;(o=v(a,"lazybeforeunveil",b)).defaultPrevented||(e&&(c?s(a,d.autosizesClass):a.setAttribute("sizes",e)),h=a[i](d.srcsetAttr),g=a[i](d.srcAttr),f&&(j=a.parentNode,l=j&&n.test(j.nodeName||"")),p=b.firesLoad||"src"in a&&(h||g||l),o={target:a},p&&(u(a,T,!0),clearTimeout(m),m=k(T,2500),s(a,d.loadingClass),u(a,Z,!0)),l&&q.call(j.getElementsByTagName("source"),_),h?a.setAttribute("srcset",h):g&&!l&&(N.test(a.nodeName)?$(a,g):a.src=g),f&&(h||l)&&w(a,{src:g})),a._lazyRace&&delete a._lazyRace,t(a,d.lazyClass),z(function(){(!p||a.complete&&a.naturalWidth>1)&&(p?T(o):R--,X(o))},!0)}),ba=function(a){var b,c=M.test(a.nodeName),e=c&&(a[i](d.sizesAttr)||a[i]("sizes")),f="auto"==e;(!f&&l||!c||!a[i]("src")&&!a.srcset||a.complete||r(a,d.errorClass)||!r(a,d.lazyClass))&&(b=v(a,"lazyunveilread").detail,f&&E.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,R++,aa(a,b,f,e,c))},ca=function(){if(!l){if(f.now()-p<999)return void k(ca,999);var a=C(function(){d.loadMode=3,W()});l=!0,d.loadMode=3,W(),j("scroll",function(){3==d.loadMode&&(d.loadMode=2),a()},!0)}};return{_:function(){p=f.now(),c.elements=b.getElementsByClassName(d.lazyClass),g=b.getElementsByClassName(d.lazyClass+" "+d.preloadClass),L=d.hFac,j("scroll",W,!0),j("resize",W,!0),a.MutationObserver?new MutationObserver(W).observe(e,{childList:!0,subtree:!0,attributes:!0}):(e[h]("DOMNodeInserted",W,!0),e[h]("DOMAttrModified",W,!0),setInterval(W,999)),j("hashchange",W,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(a){b[h](a,W,!0)}),/d$|^c/.test(b.readyState)?ca():(j("load",ca),b[h]("DOMContentLoaded",W),k(ca,2e4)),c.elements.length?(V(),z._lsFlush()):W()},checkElems:W,unveil:ba}}(),E=function(){var a,c=A(function(a,b,c,d){var e,f,g;if(a._lazysizesWidth=d,d+="px",a.setAttribute("sizes",d),n.test(b.nodeName||""))for(e=b.getElementsByTagName("source"),f=0,g=e.length;g>f;f++)e[f].setAttribute("sizes",d);c.detail.dataAttr||w(a,c.detail)}),e=function(a,b,d){var e,f=a.parentNode;f&&(d=y(a,f,d),e=v(a,"lazybeforesizes",{width:d,dataAttr:!!b}),e.defaultPrevented||(d=e.detail.width,d&&d!==a._lazysizesWidth&&c(a,f,e,d)))},f=function(){var b,c=a.length;if(c)for(b=0;c>b;b++)e(a[b])},g=C(f);return{_:function(){a=b.getElementsByClassName(d.autosizesClass),j("resize",g)},checkElems:g,updateElem:e}}(),F=function(){F.i||(F.i=!0,E._(),D._())};return c={cfg:d,autoSizer:E,loader:D,init:F,uP:w,aC:s,rC:t,hC:r,fire:v,gW:y,rAF:z}}});
|
class-visual-portfolio.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
-
* Version: 1.6.
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
@@ -199,14 +199,16 @@ class Visual_Portfolio {
|
|
199 |
|
200 |
// LazySizes.
|
201 |
if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
|
202 |
-
wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/
|
|
|
203 |
|
|
|
204 |
$vp_deps[] = 'lazysizes';
|
205 |
}
|
206 |
|
207 |
// Visual Portfolio.
|
208 |
-
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.6.
|
209 |
-
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.6.
|
210 |
|
211 |
// Visual Portfolio data.
|
212 |
$data_init = array(
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
+
* Version: 1.6.5
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
199 |
|
200 |
// LazySizes.
|
201 |
if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
|
202 |
+
wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
|
203 |
+
wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array(), '4.1.0', true );
|
204 |
|
205 |
+
$vp_deps[] = 'lazysizes-object-fit-cover';
|
206 |
$vp_deps[] = 'lazysizes';
|
207 |
}
|
208 |
|
209 |
// Visual Portfolio.
|
210 |
+
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.6.5', true );
|
211 |
+
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.6.5' );
|
212 |
|
213 |
// Visual Portfolio data.
|
214 |
$data_init = array(
|
classes/class-admin.php
CHANGED
@@ -149,8 +149,8 @@ class Visual_Portfolio_Admin {
|
|
149 |
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
150 |
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
151 |
|
152 |
-
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.6.
|
153 |
-
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.6.
|
154 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
155 |
}
|
156 |
|
@@ -196,6 +196,8 @@ class Visual_Portfolio_Admin {
|
|
196 |
* Add custom post type
|
197 |
*/
|
198 |
public function add_custom_post_type() {
|
|
|
|
|
199 |
// portfolio items post type.
|
200 |
register_post_type(
|
201 |
'portfolio',
|
@@ -239,7 +241,7 @@ class Visual_Portfolio_Admin {
|
|
239 |
'delete_post' => 'delete_portfolio',
|
240 |
),
|
241 |
'rewrite' => array(
|
242 |
-
'slug' =>
|
243 |
'with_front' => false,
|
244 |
),
|
245 |
'supports' => array(
|
@@ -252,6 +254,13 @@ class Visual_Portfolio_Admin {
|
|
252 |
),
|
253 |
)
|
254 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
register_taxonomy(
|
256 |
'portfolio_category', 'portfolio', array(
|
257 |
'label' => esc_html__( 'Portfolio Categories', 'visual-portfolio' ),
|
@@ -1511,6 +1520,22 @@ class Visual_Portfolio_Admin {
|
|
1511 |
),
|
1512 |
)
|
1513 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1514 |
|
1515 |
/**
|
1516 |
* Pagination
|
@@ -1642,6 +1667,184 @@ class Visual_Portfolio_Admin {
|
|
1642 |
),
|
1643 |
)
|
1644 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1645 |
Visual_Portfolio_Controls::register(
|
1646 |
array(
|
1647 |
'category' => 'pagination',
|
149 |
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
150 |
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
151 |
|
152 |
+
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.6.5', true );
|
153 |
+
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.6.5' );
|
154 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
155 |
}
|
156 |
|
196 |
* Add custom post type
|
197 |
*/
|
198 |
public function add_custom_post_type() {
|
199 |
+
$custom_slug = Visual_Portfolio_Settings::get_option( 'portfolio_slug', 'vp_general', 'portfolio' );
|
200 |
+
|
201 |
// portfolio items post type.
|
202 |
register_post_type(
|
203 |
'portfolio',
|
241 |
'delete_post' => 'delete_portfolio',
|
242 |
),
|
243 |
'rewrite' => array(
|
244 |
+
'slug' => $custom_slug,
|
245 |
'with_front' => false,
|
246 |
),
|
247 |
'supports' => array(
|
254 |
),
|
255 |
)
|
256 |
);
|
257 |
+
|
258 |
+
// fix for paged /portfolio/ page.
|
259 |
+
add_rewrite_rule( '^portfolio/page/([0-9]+)', 'index.php?pagename=portfolio&paged=$matches[1]', 'top' );
|
260 |
+
if ( $custom_slug && 'portfolio' !== $custom_slug ) {
|
261 |
+
add_rewrite_rule( '^' . $custom_slug . '/page/([0-9]+)', 'index.php?pagename=' . $custom_slug . '&paged=$matches[1]', 'top' );
|
262 |
+
}
|
263 |
+
|
264 |
register_taxonomy(
|
265 |
'portfolio_category', 'portfolio', array(
|
266 |
'label' => esc_html__( 'Portfolio Categories', 'visual-portfolio' ),
|
1520 |
),
|
1521 |
)
|
1522 |
);
|
1523 |
+
Visual_Portfolio_Controls::register(
|
1524 |
+
array(
|
1525 |
+
'category' => 'filter',
|
1526 |
+
'type' => 'text',
|
1527 |
+
'label' => esc_html__( 'All button text', 'visual-portfolio' ),
|
1528 |
+
'name' => 'vp_filter_text_all',
|
1529 |
+
'default' => esc_attr__( 'All', 'visual-portfolio' ),
|
1530 |
+
'condition' => array(
|
1531 |
+
array(
|
1532 |
+
'control' => 'vp_filter',
|
1533 |
+
'operator' => '!=',
|
1534 |
+
'value' => 'false',
|
1535 |
+
),
|
1536 |
+
),
|
1537 |
+
)
|
1538 |
+
);
|
1539 |
|
1540 |
/**
|
1541 |
* Pagination
|
1667 |
),
|
1668 |
)
|
1669 |
);
|
1670 |
+
Visual_Portfolio_Controls::register(
|
1671 |
+
array(
|
1672 |
+
'category' => 'pagination',
|
1673 |
+
'type' => 'html',
|
1674 |
+
'label' => esc_html__( 'Texts', 'visual-portfolio' ),
|
1675 |
+
'name' => 'vp_pagination_infinite_texts',
|
1676 |
+
'condition' => array(
|
1677 |
+
array(
|
1678 |
+
'control' => 'vp_pagination_style',
|
1679 |
+
'operator' => '!=',
|
1680 |
+
'value' => 'false',
|
1681 |
+
),
|
1682 |
+
array(
|
1683 |
+
'control' => 'vp_pagination',
|
1684 |
+
'operator' => '==',
|
1685 |
+
'value' => 'infinite',
|
1686 |
+
),
|
1687 |
+
),
|
1688 |
+
)
|
1689 |
+
);
|
1690 |
+
Visual_Portfolio_Controls::register(
|
1691 |
+
array(
|
1692 |
+
'category' => 'pagination',
|
1693 |
+
'type' => 'html',
|
1694 |
+
'label' => esc_html__( 'Texts', 'visual-portfolio' ),
|
1695 |
+
'name' => 'vp_pagination_load_more_texts',
|
1696 |
+
'condition' => array(
|
1697 |
+
array(
|
1698 |
+
'control' => 'vp_pagination_style',
|
1699 |
+
'operator' => '!=',
|
1700 |
+
'value' => 'false',
|
1701 |
+
),
|
1702 |
+
array(
|
1703 |
+
'control' => 'vp_pagination',
|
1704 |
+
'operator' => '==',
|
1705 |
+
'value' => 'load-more',
|
1706 |
+
),
|
1707 |
+
),
|
1708 |
+
)
|
1709 |
+
);
|
1710 |
+
Visual_Portfolio_Controls::register(
|
1711 |
+
array(
|
1712 |
+
'category' => 'pagination',
|
1713 |
+
'type' => 'text',
|
1714 |
+
'name' => 'vp_pagination_infinite_text_load',
|
1715 |
+
'default' => esc_attr__( 'Load more', 'visual-portfolio' ),
|
1716 |
+
'placeholder' => esc_attr__( 'Load more button label', 'visual-portfolio' ),
|
1717 |
+
'hint' => esc_attr__( 'Load more button label', 'visual-portfolio' ),
|
1718 |
+
'hint_place' => 'left',
|
1719 |
+
'condition' => array(
|
1720 |
+
array(
|
1721 |
+
'control' => 'vp_pagination_style',
|
1722 |
+
'operator' => '!=',
|
1723 |
+
'value' => 'false',
|
1724 |
+
),
|
1725 |
+
array(
|
1726 |
+
'control' => 'vp_pagination',
|
1727 |
+
'operator' => '==',
|
1728 |
+
'value' => 'infinite',
|
1729 |
+
),
|
1730 |
+
),
|
1731 |
+
)
|
1732 |
+
);
|
1733 |
+
Visual_Portfolio_Controls::register(
|
1734 |
+
array(
|
1735 |
+
'category' => 'pagination',
|
1736 |
+
'type' => 'text',
|
1737 |
+
'name' => 'vp_pagination_infinite_text_loading',
|
1738 |
+
'default' => esc_attr__( 'Loading more...', 'visual-portfolio' ),
|
1739 |
+
'placeholder' => esc_attr__( 'Loading more button label', 'visual-portfolio' ),
|
1740 |
+
'hint' => esc_attr__( 'Loading more button label', 'visual-portfolio' ),
|
1741 |
+
'hint_place' => 'left',
|
1742 |
+
'condition' => array(
|
1743 |
+
array(
|
1744 |
+
'control' => 'vp_pagination_style',
|
1745 |
+
'operator' => '!=',
|
1746 |
+
'value' => 'false',
|
1747 |
+
),
|
1748 |
+
array(
|
1749 |
+
'control' => 'vp_pagination',
|
1750 |
+
'operator' => '==',
|
1751 |
+
'value' => 'infinite',
|
1752 |
+
),
|
1753 |
+
),
|
1754 |
+
)
|
1755 |
+
);
|
1756 |
+
Visual_Portfolio_Controls::register(
|
1757 |
+
array(
|
1758 |
+
'category' => 'pagination',
|
1759 |
+
'type' => 'text',
|
1760 |
+
'name' => 'vp_pagination_infinite_text_end_list',
|
1761 |
+
'default' => esc_attr__( 'You’ve reached the end of the list', 'visual-portfolio' ),
|
1762 |
+
'placeholder' => esc_attr__( 'End of the list text', 'visual-portfolio' ),
|
1763 |
+
'hint' => esc_attr__( 'End of the list text', 'visual-portfolio' ),
|
1764 |
+
'hint_place' => 'left',
|
1765 |
+
'condition' => array(
|
1766 |
+
array(
|
1767 |
+
'control' => 'vp_pagination_style',
|
1768 |
+
'operator' => '!=',
|
1769 |
+
'value' => 'false',
|
1770 |
+
),
|
1771 |
+
array(
|
1772 |
+
'control' => 'vp_pagination',
|
1773 |
+
'operator' => '==',
|
1774 |
+
'value' => 'infinite',
|
1775 |
+
),
|
1776 |
+
),
|
1777 |
+
)
|
1778 |
+
);
|
1779 |
+
Visual_Portfolio_Controls::register(
|
1780 |
+
array(
|
1781 |
+
'category' => 'pagination',
|
1782 |
+
'type' => 'text',
|
1783 |
+
'name' => 'vp_pagination_load_more_text_load',
|
1784 |
+
'default' => esc_attr__( 'Load more', 'visual-portfolio' ),
|
1785 |
+
'placeholder' => esc_attr__( 'Load more button label', 'visual-portfolio' ),
|
1786 |
+
'hint' => esc_attr__( 'Load more button label', 'visual-portfolio' ),
|
1787 |
+
'hint_place' => 'left',
|
1788 |
+
'condition' => array(
|
1789 |
+
array(
|
1790 |
+
'control' => 'vp_pagination_style',
|
1791 |
+
'operator' => '!=',
|
1792 |
+
'value' => 'false',
|
1793 |
+
),
|
1794 |
+
array(
|
1795 |
+
'control' => 'vp_pagination',
|
1796 |
+
'operator' => '==',
|
1797 |
+
'value' => 'load-more',
|
1798 |
+
),
|
1799 |
+
),
|
1800 |
+
)
|
1801 |
+
);
|
1802 |
+
Visual_Portfolio_Controls::register(
|
1803 |
+
array(
|
1804 |
+
'category' => 'pagination',
|
1805 |
+
'type' => 'text',
|
1806 |
+
'name' => 'vp_pagination_load_more_text_loading',
|
1807 |
+
'default' => esc_attr__( 'Loading more...', 'visual-portfolio' ),
|
1808 |
+
'placeholder' => esc_attr__( 'Loading more button label', 'visual-portfolio' ),
|
1809 |
+
'hint' => esc_attr__( 'Loading more button label', 'visual-portfolio' ),
|
1810 |
+
'hint_place' => 'left',
|
1811 |
+
'condition' => array(
|
1812 |
+
array(
|
1813 |
+
'control' => 'vp_pagination_style',
|
1814 |
+
'operator' => '!=',
|
1815 |
+
'value' => 'false',
|
1816 |
+
),
|
1817 |
+
array(
|
1818 |
+
'control' => 'vp_pagination',
|
1819 |
+
'operator' => '==',
|
1820 |
+
'value' => 'load-more',
|
1821 |
+
),
|
1822 |
+
),
|
1823 |
+
)
|
1824 |
+
);
|
1825 |
+
Visual_Portfolio_Controls::register(
|
1826 |
+
array(
|
1827 |
+
'category' => 'pagination',
|
1828 |
+
'type' => 'text',
|
1829 |
+
'name' => 'vp_pagination_load_more_text_end_list',
|
1830 |
+
'default' => esc_attr__( 'You’ve reached the end of the list', 'visual-portfolio' ),
|
1831 |
+
'placeholder' => esc_attr__( 'End of the list text', 'visual-portfolio' ),
|
1832 |
+
'hint' => esc_attr__( 'End of the list text', 'visual-portfolio' ),
|
1833 |
+
'hint_place' => 'left',
|
1834 |
+
'condition' => array(
|
1835 |
+
array(
|
1836 |
+
'control' => 'vp_pagination_style',
|
1837 |
+
'operator' => '!=',
|
1838 |
+
'value' => 'false',
|
1839 |
+
),
|
1840 |
+
array(
|
1841 |
+
'control' => 'vp_pagination',
|
1842 |
+
'operator' => '==',
|
1843 |
+
'value' => 'load-more',
|
1844 |
+
),
|
1845 |
+
),
|
1846 |
+
)
|
1847 |
+
);
|
1848 |
Visual_Portfolio_Controls::register(
|
1849 |
array(
|
1850 |
'category' => 'pagination',
|
classes/class-get-portfolio.php
CHANGED
@@ -953,17 +953,19 @@ class Visual_Portfolio_Get {
|
|
953 |
}
|
954 |
|
955 |
// Add 'All' active item.
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
|
|
|
|
967 |
|
968 |
// get options for the current filter.
|
969 |
$filter_options = array();
|
@@ -1210,6 +1212,16 @@ class Visual_Portfolio_Get {
|
|
1210 |
switch ( $vp_options['vp_pagination'] ) {
|
1211 |
case 'infinite':
|
1212 |
case 'load-more':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1213 |
visual_portfolio()->include_template( 'items-list/pagination' . $pagination_style_pref . '/' . $vp_options['vp_pagination'], $args );
|
1214 |
visual_portfolio()->include_template_style( 'visual-portfolio-pagination-' . $vp_options['vp_pagination_style'], 'items-list/pagination' . $pagination_style_pref . '/style' );
|
1215 |
break;
|
@@ -1390,7 +1402,7 @@ class Visual_Portfolio_Get {
|
|
1390 |
$tag_pattern =
|
1391 |
'@<(?P<tag>' . $tag . ') # <tag
|
1392 |
(?P<attributes>\s[^>]+)? # attributes, if any
|
1393 |
-
\s*/?> # /> or just >, being lenient here
|
1394 |
@xsi';
|
1395 |
} else {
|
1396 |
$tag_pattern =
|
@@ -1409,7 +1421,7 @@ class Visual_Portfolio_Get {
|
|
1409 |
(
|
1410 |
(?P<quote>[\"\'])(?P<value_quoted>.*?)(?P=quote) # a quoted value
|
1411 |
| # or
|
1412 |
-
(?P<value_unquoted>[^\s"\']+?)(?:\s+|$) # an unquoted value (terminated by whitespace or EOF)
|
1413 |
)
|
1414 |
@xsi';
|
1415 |
|
953 |
}
|
954 |
|
955 |
// Add 'All' active item.
|
956 |
+
if ( $vp_options['vp_filter_text_all'] ) {
|
957 |
+
array_unshift(
|
958 |
+
$terms, array(
|
959 |
+
'filter' => '*',
|
960 |
+
'label' => $vp_options['vp_filter_text_all'],
|
961 |
+
'description' => false,
|
962 |
+
'count' => false,
|
963 |
+
'active' => ! $there_is_active,
|
964 |
+
'url' => remove_query_arg( 'vp_filter', self::get_nopaging_url() ),
|
965 |
+
'class' => 'vp-filter__item' . ( ! $there_is_active ? ' vp-filter__item-active' : '' ),
|
966 |
+
)
|
967 |
+
);
|
968 |
+
}
|
969 |
|
970 |
// get options for the current filter.
|
971 |
$filter_options = array();
|
1212 |
switch ( $vp_options['vp_pagination'] ) {
|
1213 |
case 'infinite':
|
1214 |
case 'load-more':
|
1215 |
+
if ( 'infinite' === $vp_options['vp_pagination'] ) {
|
1216 |
+
$args['text_load'] = $vp_options['vp_pagination_infinite_text_load'];
|
1217 |
+
$args['text_loading'] = $vp_options['vp_pagination_infinite_text_loading'];
|
1218 |
+
$args['text_end_list'] = $vp_options['vp_pagination_infinite_text_end_list'];
|
1219 |
+
} else {
|
1220 |
+
$args['text_load'] = $vp_options['vp_pagination_load_more_text_load'];
|
1221 |
+
$args['text_loading'] = $vp_options['vp_pagination_load_more_text_loading'];
|
1222 |
+
$args['text_end_list'] = $vp_options['vp_pagination_load_more_text_end_list'];
|
1223 |
+
}
|
1224 |
+
|
1225 |
visual_portfolio()->include_template( 'items-list/pagination' . $pagination_style_pref . '/' . $vp_options['vp_pagination'], $args );
|
1226 |
visual_portfolio()->include_template_style( 'visual-portfolio-pagination-' . $vp_options['vp_pagination_style'], 'items-list/pagination' . $pagination_style_pref . '/style' );
|
1227 |
break;
|
1402 |
$tag_pattern =
|
1403 |
'@<(?P<tag>' . $tag . ') # <tag
|
1404 |
(?P<attributes>\s[^>]+)? # attributes, if any
|
1405 |
+
\s*/?> # /> or just >, being lenient here
|
1406 |
@xsi';
|
1407 |
} else {
|
1408 |
$tag_pattern =
|
1421 |
(
|
1422 |
(?P<quote>[\"\'])(?P<value_quoted>.*?)(?P=quote) # a quoted value
|
1423 |
| # or
|
1424 |
+
(?P<value_unquoted>[^\s"\']+?)(?:\s+|$) # an unquoted value (terminated by whitespace or EOF)
|
1425 |
)
|
1426 |
@xsi';
|
1427 |
|
classes/class-images.php
CHANGED
@@ -31,6 +31,9 @@ class Visual_Portfolio_Images {
|
|
31 |
add_filter( 'wp_update_attachment_metadata', 'Visual_Portfolio_Images::generate_attachment_placeholder', 15 );
|
32 |
add_filter( 'wp_generate_attachment_metadata', 'Visual_Portfolio_Images::generate_attachment_placeholder', 15 );
|
33 |
add_filter( 'wp_get_attachment_image_attributes', 'Visual_Portfolio_Images::add_image_placeholders', 15, 3 );
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
/**
|
@@ -196,8 +199,8 @@ class Visual_Portfolio_Images {
|
|
196 |
|
197 |
// lazy placeholder.
|
198 |
if ( $placeholder ) {
|
199 |
-
$attr['data-vpf-src']
|
200 |
-
$attr['src']
|
201 |
}
|
202 |
|
203 |
$attr['class'] .= ' visual-portfolio-lazyload';
|
@@ -214,5 +217,17 @@ class Visual_Portfolio_Images {
|
|
214 |
|
215 |
return $attr;
|
216 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
}
|
218 |
Visual_Portfolio_Images::construct();
|
31 |
add_filter( 'wp_update_attachment_metadata', 'Visual_Portfolio_Images::generate_attachment_placeholder', 15 );
|
32 |
add_filter( 'wp_generate_attachment_metadata', 'Visual_Portfolio_Images::generate_attachment_placeholder', 15 );
|
33 |
add_filter( 'wp_get_attachment_image_attributes', 'Visual_Portfolio_Images::add_image_placeholders', 15, 3 );
|
34 |
+
|
35 |
+
// ignore Jetpack lazy.
|
36 |
+
add_filter( 'jetpack_lazy_images_skip_image_with_atttributes', 'Visual_Portfolio_Images::jetpack_lazy_images_skip_image_with_atttributes', 15, 2 );
|
37 |
}
|
38 |
|
39 |
/**
|
199 |
|
200 |
// lazy placeholder.
|
201 |
if ( $placeholder ) {
|
202 |
+
$attr['data-vpf-src'] = $attr['src'];
|
203 |
+
$attr['src'] = $placeholder;
|
204 |
}
|
205 |
|
206 |
$attr['class'] .= ' visual-portfolio-lazyload';
|
217 |
|
218 |
return $attr;
|
219 |
}
|
220 |
+
|
221 |
+
/**
|
222 |
+
* Undocumented function
|
223 |
+
*
|
224 |
+
* @param boolean $return skip lazy Jetpack.
|
225 |
+
* @param array $attributes image attributes.
|
226 |
+
*
|
227 |
+
* @return boolean
|
228 |
+
*/
|
229 |
+
public static function jetpack_lazy_images_skip_image_with_atttributes( $return, $attributes ) {
|
230 |
+
return isset( $attributes['data-vpf-src'] );
|
231 |
+
}
|
232 |
}
|
233 |
Visual_Portfolio_Images::construct();
|
classes/class-shortcode.php
CHANGED
@@ -50,6 +50,7 @@ class Visual_Portfolio_Shortcode {
|
|
50 |
$atts = shortcode_atts(
|
51 |
array(
|
52 |
'id' => '',
|
|
|
53 |
'align' => 'center',
|
54 |
'show_count' => false,
|
55 |
'class' => '',
|
50 |
$atts = shortcode_atts(
|
51 |
array(
|
52 |
'id' => '',
|
53 |
+
'type' => 'default',
|
54 |
'align' => 'center',
|
55 |
'show_count' => false,
|
56 |
'class' => '',
|
languages/visual-portfolio.pot
CHANGED
@@ -15,19 +15,19 @@ 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:
|
19 |
msgid "Small (VP)"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: dist/visual-portfolio/class-visual-portfolio.php:
|
23 |
msgid "Medium (VP)"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: dist/visual-portfolio/class-visual-portfolio.php:
|
27 |
msgid "Large (VP)"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: dist/visual-portfolio/class-visual-portfolio.php:
|
31 |
msgid "Extra Large (VP)"
|
32 |
msgstr ""
|
33 |
|
@@ -43,563 +43,599 @@ msgstr[1] ""
|
|
43 |
msgid "Update anyway, even though it might break your site?"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
47 |
msgctxt "Post Type General Name"
|
48 |
msgid "Portfolio Items"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
52 |
msgctxt "Post Type Singular Name"
|
53 |
msgid "Portfolio Item"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
57 |
msgid "Visual Portfolio"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
61 |
msgid "Parent Portfolio Item"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
65 |
msgid "Portfolio Items"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
69 |
msgid "View Portfolio Item"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
73 |
msgid "Add New Portfolio Item"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
77 |
msgid "Add New"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
81 |
msgid "Edit Portfolio Item"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
85 |
msgid "Update Portfolio Item"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
89 |
msgid "Search Portfolio Item"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
93 |
msgid "Not Found"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
97 |
msgid "Not found in Trash"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
101 |
msgid "Portfolio Categories"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
105 |
msgid "Categories"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
109 |
msgid "Portfolio Tags"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
113 |
msgid "Tags"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
117 |
msgctxt "Post Type General Name"
|
118 |
msgid "Portfolio Layouts"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
122 |
msgctxt "Post Type Singular Name"
|
123 |
msgid "Portfolio Layout"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
127 |
msgid "Portfolio Layouts"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
131 |
msgid "View Portfolio Layout"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
135 |
msgid "Add New Portfolio Layout"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
139 |
msgid "Edit Portfolio Layout"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
143 |
msgid "Update Portfolio Layout"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
147 |
msgid "Search Portfolio Layout"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
151 |
msgid "Video"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
155 |
msgid "https://"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
159 |
msgid "Ready to add your awesome portfolio?"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
163 |
msgid "Create your first portfolio list!"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
167 |
msgid "Thumbnail"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
171 |
msgid "Shortcode"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
175 |
msgid "Tiles"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
179 |
msgid "Type"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
183 |
msgid "Select tiles type"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
187 |
msgid "Masonry"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
191 |
msgid "Columns"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
195 |
msgid "Justified"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
199 |
msgid "Row height"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
203 |
msgid "Row height tolerance"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
207 |
msgid "Slider"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
211 |
msgid "Effect"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
215 |
msgid "Slide"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
219 |
msgid "Coverflow"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
223 |
msgid "Fade"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
227 |
msgid "Speed (seconds)"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
231 |
msgid "Autoplay (seconds)"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
235 |
msgid "Items height"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
239 |
msgid "Auto"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
243 |
msgid "Static (px)"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
247 |
msgid "Dynamic (%)"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
251 |
msgid "Slides per view"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
255 |
msgid "Custom"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
259 |
msgid "Centered slides"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
263 |
msgid "Loop"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
267 |
msgid "Free scroll"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
271 |
msgid "Show arrows"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
275 |
msgid "Prev arrow icon"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
279 |
msgid "Next arrow icon"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
283 |
msgid "Show bullets"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
287 |
msgid "Dynamic bullets"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
291 |
msgid "Gap"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
295 |
msgid "Items per page"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
299 |
msgid "Stretch"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
303 |
msgid "Break container and display it wide"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
307 |
msgid "Default"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
311 |
msgid "Fly"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
315 |
msgid "Overlay background color"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
319 |
msgid "Overlay text color"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
323 |
msgid "Emerge"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
327 |
msgid "Show title"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
331 |
msgid "Show categories"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
335 |
msgid "Categories count"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
339 |
msgid "Show date"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
343 |
msgid "False"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
347 |
msgid "Show"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
351 |
msgid "Human Format"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
355 |
msgid ""
|
356 |
"Date format
|
357 |
" Example: F j, Y"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
361 |
msgid "Show excerpt"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
365 |
msgid "Excerpt words count"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
369 |
msgid "Show icon"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
373 |
msgid "Standard icon"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
377 |
msgid "Video icon"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
381 |
msgid "Caption align"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
385 |
msgid "Disabled"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
389 |
msgid "URL"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
393 |
msgid "Popup Gallery"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
397 |
msgid "Align"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
401 |
msgid "Center"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
405 |
msgid "Left"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
409 |
msgid "Right"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
413 |
msgid "Show count"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
msgid "Paged"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
421 |
msgid "Load More"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
425 |
msgid "Infinite"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
429 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
msgid "Show numbers"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
437 |
msgid "Data source"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
441 |
msgid "Specific posts"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
445 |
msgid "Excluded posts"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
449 |
msgid "Custom query"
|
450 |
msgstr ""
|
451 |
|
452 |
#. translators: %1$s - escaped url.
|
453 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
454 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
458 |
msgid "Taxonomies"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
462 |
msgid "Taxonomies relation"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
466 |
msgid "OR"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
470 |
msgid "AND"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
474 |
msgid "Order by"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
478 |
msgid "Date"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
482 |
msgid "Title"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
486 |
msgid "ID"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
490 |
msgid "Random"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
494 |
msgid "Order direction"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
498 |
msgid "DESC"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
502 |
msgid "ASC"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
506 |
msgid "Name & Shortcode"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
510 |
msgid "Layout"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
514 |
msgid "Items Style"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
518 |
msgid "Items Click Action"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
522 |
msgid "Filter"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
526 |
msgid "Pagination"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
530 |
msgid "Preview"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
534 |
msgid "Content Source"
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
538 |
msgid "Custom CSS"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
542 |
msgid "Name"
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
546 |
msgid "Place the shortcode where you want to show the portfolio list."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
550 |
msgid "Filter Shortcode"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
554 |
msgid "Place the shortcode where you want to show the filter."
|
555 |
msgstr ""
|
556 |
|
557 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
558 |
msgid "Portfolio"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
562 |
msgid "Post-Based"
|
563 |
msgstr ""
|
564 |
|
565 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
566 |
msgid "Images"
|
567 |
msgstr ""
|
568 |
|
569 |
#. translators: %1$s - escaped url.
|
570 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
571 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
575 |
msgid "Available classes:"
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
579 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
583 |
msgid " - items wrapper."
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
587 |
msgid " - single item wrapper."
|
588 |
msgstr ""
|
589 |
|
590 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
591 |
msgid " - filter wrapper."
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
595 |
msgid " - pagination wrapper."
|
596 |
msgstr ""
|
597 |
|
598 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
599 |
msgid "Specific Posts"
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
603 |
msgid "Custom Query"
|
604 |
msgstr ""
|
605 |
|
@@ -643,12 +679,8 @@ msgstr ""
|
|
643 |
msgid "No items found."
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: dist/visual-portfolio/classes/class-get-portfolio.php:959
|
647 |
-
msgid "All"
|
648 |
-
msgstr ""
|
649 |
-
|
650 |
#. translators: %s - published in human format.
|
651 |
-
#: dist/visual-portfolio/classes/class-get-portfolio.php:
|
652 |
msgid "%s ago"
|
653 |
msgstr ""
|
654 |
|
@@ -739,23 +771,3 @@ msgstr ""
|
|
739 |
#: dist/visual-portfolio/classes/class-vc.php:89
|
740 |
msgid "Design Options"
|
741 |
msgstr ""
|
742 |
-
|
743 |
-
#: dist/visual-portfolio/templates/items-list/pagination/infinite.php:19
|
744 |
-
msgid "Loading..."
|
745 |
-
msgstr ""
|
746 |
-
|
747 |
-
#: dist/visual-portfolio/templates/items-list/pagination/infinite.php:20
|
748 |
-
msgid "No More"
|
749 |
-
msgstr ""
|
750 |
-
|
751 |
-
#: dist/visual-portfolio/templates/items-list/pagination/load-more.php:18
|
752 |
-
msgid "Load more"
|
753 |
-
msgstr ""
|
754 |
-
|
755 |
-
#: dist/visual-portfolio/templates/items-list/pagination/load-more.php:19
|
756 |
-
msgid "Loading more..."
|
757 |
-
msgstr ""
|
758 |
-
|
759 |
-
#: dist/visual-portfolio/templates/items-list/pagination/load-more.php:20
|
760 |
-
msgid "You’ve reached the end of the list"
|
761 |
-
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:281
|
19 |
msgid "Small (VP)"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: dist/visual-portfolio/class-visual-portfolio.php:282
|
23 |
msgid "Medium (VP)"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: dist/visual-portfolio/class-visual-portfolio.php:283
|
27 |
msgid "Large (VP)"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: dist/visual-portfolio/class-visual-portfolio.php:284
|
31 |
msgid "Extra Large (VP)"
|
32 |
msgstr ""
|
33 |
|
43 |
msgid "Update anyway, even though it might break your site?"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: dist/visual-portfolio/classes/class-admin.php:206
|
47 |
msgctxt "Post Type General Name"
|
48 |
msgid "Portfolio Items"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: dist/visual-portfolio/classes/class-admin.php:207
|
52 |
msgctxt "Post Type Singular Name"
|
53 |
msgid "Portfolio Item"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: dist/visual-portfolio/classes/class-admin.php:208, dist/visual-portfolio/classes/class-admin.php:304, dist/visual-portfolio/classes/class-vc.php:65
|
57 |
msgid "Visual Portfolio"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: dist/visual-portfolio/classes/class-admin.php:209, dist/visual-portfolio/classes/class-admin.php:305
|
61 |
msgid "Parent Portfolio Item"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: dist/visual-portfolio/classes/class-admin.php:210
|
65 |
msgid "Portfolio Items"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: dist/visual-portfolio/classes/class-admin.php:211
|
69 |
msgid "View Portfolio Item"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: dist/visual-portfolio/classes/class-admin.php:212
|
73 |
msgid "Add New Portfolio Item"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: dist/visual-portfolio/classes/class-admin.php:213, dist/visual-portfolio/classes/class-admin.php:309
|
77 |
msgid "Add New"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: dist/visual-portfolio/classes/class-admin.php:214
|
81 |
msgid "Edit Portfolio Item"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: dist/visual-portfolio/classes/class-admin.php:215
|
85 |
msgid "Update Portfolio Item"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: dist/visual-portfolio/classes/class-admin.php:216
|
89 |
msgid "Search Portfolio Item"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: dist/visual-portfolio/classes/class-admin.php:217, dist/visual-portfolio/classes/class-admin.php:313
|
93 |
msgid "Not Found"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: dist/visual-portfolio/classes/class-admin.php:218, dist/visual-portfolio/classes/class-admin.php:314
|
97 |
msgid "Not found in Trash"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: dist/visual-portfolio/classes/class-admin.php:266
|
101 |
msgid "Portfolio Categories"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: dist/visual-portfolio/classes/class-admin.php:268, dist/visual-portfolio/classes/class-controls.php:590
|
105 |
msgid "Categories"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: dist/visual-portfolio/classes/class-admin.php:282
|
109 |
msgid "Portfolio Tags"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: dist/visual-portfolio/classes/class-admin.php:284
|
113 |
msgid "Tags"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: dist/visual-portfolio/classes/class-admin.php:302
|
117 |
msgctxt "Post Type General Name"
|
118 |
msgid "Portfolio Layouts"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: dist/visual-portfolio/classes/class-admin.php:303
|
122 |
msgctxt "Post Type Singular Name"
|
123 |
msgid "Portfolio Layout"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: dist/visual-portfolio/classes/class-admin.php:306
|
127 |
msgid "Portfolio Layouts"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: dist/visual-portfolio/classes/class-admin.php:307
|
131 |
msgid "View Portfolio Layout"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: dist/visual-portfolio/classes/class-admin.php:308
|
135 |
msgid "Add New Portfolio Layout"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: dist/visual-portfolio/classes/class-admin.php:310
|
139 |
msgid "Edit Portfolio Layout"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: dist/visual-portfolio/classes/class-admin.php:311
|
143 |
msgid "Update Portfolio Layout"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: dist/visual-portfolio/classes/class-admin.php:312
|
147 |
msgid "Search Portfolio Layout"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: dist/visual-portfolio/classes/class-admin.php:367, dist/visual-portfolio/classes/class-controls.php:602
|
151 |
msgid "Video"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: dist/visual-portfolio/classes/class-admin.php:407
|
155 |
msgid "https://"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: dist/visual-portfolio/classes/class-admin.php:506
|
159 |
msgid "Ready to add your awesome portfolio?"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: dist/visual-portfolio/classes/class-admin.php:507
|
163 |
msgid "Create your first portfolio list!"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: dist/visual-portfolio/classes/class-admin.php:546
|
167 |
msgid "Thumbnail"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: dist/visual-portfolio/classes/class-admin.php:589, dist/visual-portfolio/classes/class-admin.php:2277
|
171 |
msgid "Shortcode"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: dist/visual-portfolio/classes/class-admin.php:645
|
175 |
msgid "Tiles"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: dist/visual-portfolio/classes/class-admin.php:660, dist/visual-portfolio/classes/class-admin.php:1606
|
179 |
msgid "Type"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: dist/visual-portfolio/classes/class-admin.php:661
|
183 |
msgid "Select tiles type"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: dist/visual-portfolio/classes/class-admin.php:780
|
187 |
msgid "Masonry"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: dist/visual-portfolio/classes/class-admin.php:784
|
191 |
msgid "Columns"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: dist/visual-portfolio/classes/class-admin.php:795
|
195 |
msgid "Justified"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: dist/visual-portfolio/classes/class-admin.php:799
|
199 |
msgid "Row height"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: dist/visual-portfolio/classes/class-admin.php:807
|
203 |
msgid "Row height tolerance"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: dist/visual-portfolio/classes/class-admin.php:819
|
207 |
msgid "Slider"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: dist/visual-portfolio/classes/class-admin.php:823
|
211 |
msgid "Effect"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: dist/visual-portfolio/classes/class-admin.php:827
|
215 |
msgid "Slide"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: dist/visual-portfolio/classes/class-admin.php:828
|
219 |
msgid "Coverflow"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: dist/visual-portfolio/classes/class-admin.php:829, dist/visual-portfolio/classes/class-admin.php:1187
|
223 |
msgid "Fade"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: dist/visual-portfolio/classes/class-admin.php:834
|
227 |
msgid "Speed (seconds)"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: dist/visual-portfolio/classes/class-admin.php:843
|
231 |
msgid "Autoplay (seconds)"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: dist/visual-portfolio/classes/class-admin.php:852
|
235 |
msgid "Items height"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: dist/visual-portfolio/classes/class-admin.php:856, dist/visual-portfolio/classes/class-admin.php:895
|
239 |
msgid "Auto"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: dist/visual-portfolio/classes/class-admin.php:857
|
243 |
msgid "Static (px)"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: dist/visual-portfolio/classes/class-admin.php:858
|
247 |
msgid "Dynamic (%)"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: dist/visual-portfolio/classes/class-admin.php:891
|
251 |
msgid "Slides per view"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: dist/visual-portfolio/classes/class-admin.php:896
|
255 |
msgid "Custom"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: dist/visual-portfolio/classes/class-admin.php:927
|
259 |
msgid "Centered slides"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: dist/visual-portfolio/classes/class-admin.php:940
|
263 |
msgid "Loop"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: dist/visual-portfolio/classes/class-admin.php:946
|
267 |
msgid "Free scroll"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: dist/visual-portfolio/classes/class-admin.php:952, dist/visual-portfolio/classes/class-admin.php:1852, dist/visual-portfolio/classes/class-settings.php:139
|
271 |
msgid "Show arrows"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: dist/visual-portfolio/classes/class-admin.php:960, dist/visual-portfolio/classes/class-admin.php:961, dist/visual-portfolio/classes/class-admin.php:1874, dist/visual-portfolio/classes/class-admin.php:1875
|
275 |
msgid "Prev arrow icon"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: dist/visual-portfolio/classes/class-admin.php:973, dist/visual-portfolio/classes/class-admin.php:974, dist/visual-portfolio/classes/class-admin.php:1899, dist/visual-portfolio/classes/class-admin.php:1900
|
279 |
msgid "Next arrow icon"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: dist/visual-portfolio/classes/class-admin.php:984
|
283 |
msgid "Show bullets"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: dist/visual-portfolio/classes/class-admin.php:990
|
287 |
msgid "Dynamic bullets"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: dist/visual-portfolio/classes/class-admin.php:1053
|
291 |
msgid "Gap"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: dist/visual-portfolio/classes/class-admin.php:1065
|
295 |
msgid "Items per page"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: dist/visual-portfolio/classes/class-admin.php:1077
|
299 |
msgid "Stretch"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: dist/visual-portfolio/classes/class-admin.php:1080
|
303 |
msgid "Break container and display it wide"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: dist/visual-portfolio/classes/class-admin.php:1091, dist/visual-portfolio/classes/class-admin.php:1435, dist/visual-portfolio/classes/class-admin.php:1552
|
307 |
msgid "Default"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: dist/visual-portfolio/classes/class-admin.php:1105
|
311 |
msgid "Fly"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: dist/visual-portfolio/classes/class-admin.php:1117, dist/visual-portfolio/classes/class-admin.php:1158, dist/visual-portfolio/classes/class-admin.php:1199
|
315 |
msgid "Overlay background color"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: dist/visual-portfolio/classes/class-admin.php:1130, dist/visual-portfolio/classes/class-admin.php:1171, dist/visual-portfolio/classes/class-admin.php:1212
|
319 |
msgid "Overlay text color"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: dist/visual-portfolio/classes/class-admin.php:1146
|
323 |
msgid "Emerge"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: dist/visual-portfolio/classes/class-admin.php:1254
|
327 |
msgid "Show title"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: dist/visual-portfolio/classes/class-admin.php:1262
|
331 |
msgid "Show categories"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: dist/visual-portfolio/classes/class-admin.php:1268
|
335 |
msgid "Categories count"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: dist/visual-portfolio/classes/class-admin.php:1283
|
339 |
msgid "Show date"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: dist/visual-portfolio/classes/class-admin.php:1287
|
343 |
msgid "False"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: dist/visual-portfolio/classes/class-admin.php:1288
|
347 |
msgid "Show"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: dist/visual-portfolio/classes/class-admin.php:1289
|
351 |
msgid "Human Format"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: dist/visual-portfolio/classes/class-admin.php:1297
|
355 |
msgid ""
|
356 |
"Date format
|
357 |
" Example: F j, Y"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: dist/visual-portfolio/classes/class-admin.php:1309
|
361 |
msgid "Show excerpt"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: dist/visual-portfolio/classes/class-admin.php:1315
|
365 |
msgid "Excerpt words count"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: dist/visual-portfolio/classes/class-admin.php:1330
|
369 |
msgid "Show icon"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: dist/visual-portfolio/classes/class-admin.php:1338, dist/visual-portfolio/classes/class-admin.php:1339
|
373 |
msgid "Standard icon"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: dist/visual-portfolio/classes/class-admin.php:1351, dist/visual-portfolio/classes/class-admin.php:1352
|
377 |
msgid "Video icon"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: dist/visual-portfolio/classes/class-admin.php:1364
|
381 |
msgid "Caption align"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: dist/visual-portfolio/classes/class-admin.php:1417, dist/visual-portfolio/classes/class-admin.php:1429, dist/visual-portfolio/classes/class-admin.php:1546
|
385 |
msgid "Disabled"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: dist/visual-portfolio/classes/class-admin.php:1418, dist/visual-portfolio/classes/class-controls.php:619
|
389 |
msgid "URL"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: dist/visual-portfolio/classes/class-admin.php:1419, dist/visual-portfolio/classes/class-settings.php:104
|
393 |
msgid "Popup Gallery"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: dist/visual-portfolio/classes/class-admin.php:1490, dist/visual-portfolio/classes/class-admin.php:1648
|
397 |
msgid "Align"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: dist/visual-portfolio/classes/class-admin.php:1494, dist/visual-portfolio/classes/class-admin.php:1652, dist/visual-portfolio/classes/class-controls.php:529, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:542, dist/visual-portfolio/classes/class-controls.php:555
|
401 |
msgid "Center"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: dist/visual-portfolio/classes/class-admin.php:1495, dist/visual-portfolio/classes/class-admin.php:1653, dist/visual-portfolio/classes/class-controls.php:532, dist/visual-portfolio/classes/class-controls.php:545, dist/visual-portfolio/classes/class-controls.php:558
|
405 |
msgid "Left"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: dist/visual-portfolio/classes/class-admin.php:1496, dist/visual-portfolio/classes/class-admin.php:1654, dist/visual-portfolio/classes/class-controls.php:535, dist/visual-portfolio/classes/class-controls.php:548, dist/visual-portfolio/classes/class-controls.php:561
|
409 |
msgid "Right"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: dist/visual-portfolio/classes/class-admin.php:1511
|
413 |
msgid "Show count"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: dist/visual-portfolio/classes/class-admin.php:1527
|
417 |
+
msgid "All button text"
|
418 |
+
msgstr ""
|
419 |
+
|
420 |
+
#: dist/visual-portfolio/classes/class-admin.php:1529
|
421 |
+
msgid "All"
|
422 |
+
msgstr ""
|
423 |
+
|
424 |
+
#: dist/visual-portfolio/classes/class-admin.php:1611
|
425 |
msgid "Paged"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: dist/visual-portfolio/classes/class-admin.php:1612
|
429 |
msgid "Load More"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: dist/visual-portfolio/classes/class-admin.php:1613
|
433 |
msgid "Infinite"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: dist/visual-portfolio/classes/class-admin.php:1628
|
437 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: dist/visual-portfolio/classes/class-admin.php:1674, dist/visual-portfolio/classes/class-admin.php:1694
|
441 |
+
msgid "Texts"
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: dist/visual-portfolio/classes/class-admin.php:1715, dist/visual-portfolio/classes/class-admin.php:1784
|
445 |
+
msgid "Load more"
|
446 |
+
msgstr ""
|
447 |
+
|
448 |
+
#: dist/visual-portfolio/classes/class-admin.php:1716, dist/visual-portfolio/classes/class-admin.php:1717, dist/visual-portfolio/classes/class-admin.php:1785, dist/visual-portfolio/classes/class-admin.php:1786
|
449 |
+
msgid "Load more button label"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: dist/visual-portfolio/classes/class-admin.php:1738, dist/visual-portfolio/classes/class-admin.php:1807
|
453 |
+
msgid "Loading more..."
|
454 |
+
msgstr ""
|
455 |
+
|
456 |
+
#: dist/visual-portfolio/classes/class-admin.php:1739, dist/visual-portfolio/classes/class-admin.php:1740, dist/visual-portfolio/classes/class-admin.php:1808, dist/visual-portfolio/classes/class-admin.php:1809
|
457 |
+
msgid "Loading more button label"
|
458 |
+
msgstr ""
|
459 |
+
|
460 |
+
#: dist/visual-portfolio/classes/class-admin.php:1761, dist/visual-portfolio/classes/class-admin.php:1830
|
461 |
+
msgid "You’ve reached the end of the list"
|
462 |
+
msgstr ""
|
463 |
+
|
464 |
+
#: dist/visual-portfolio/classes/class-admin.php:1762, dist/visual-portfolio/classes/class-admin.php:1763, dist/visual-portfolio/classes/class-admin.php:1831, dist/visual-portfolio/classes/class-admin.php:1832
|
465 |
+
msgid "End of the list text"
|
466 |
+
msgstr ""
|
467 |
+
|
468 |
+
#: dist/visual-portfolio/classes/class-admin.php:1922
|
469 |
msgid "Show numbers"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: dist/visual-portfolio/classes/class-admin.php:1986
|
473 |
msgid "Data source"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: dist/visual-portfolio/classes/class-admin.php:1998
|
477 |
msgid "Specific posts"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: dist/visual-portfolio/classes/class-admin.php:2019
|
481 |
msgid "Excluded posts"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: dist/visual-portfolio/classes/class-admin.php:2047
|
485 |
msgid "Custom query"
|
486 |
msgstr ""
|
487 |
|
488 |
#. translators: %1$s - escaped url.
|
489 |
+
#: dist/visual-portfolio/classes/class-admin.php:2049
|
490 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: dist/visual-portfolio/classes/class-admin.php:2075
|
494 |
msgid "Taxonomies"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: dist/visual-portfolio/classes/class-admin.php:2102
|
498 |
msgid "Taxonomies relation"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: dist/visual-portfolio/classes/class-admin.php:2106
|
502 |
msgid "OR"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: dist/visual-portfolio/classes/class-admin.php:2107
|
506 |
msgid "AND"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: dist/visual-portfolio/classes/class-admin.php:2128
|
510 |
msgid "Order by"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: dist/visual-portfolio/classes/class-admin.php:2132
|
514 |
msgid "Date"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: dist/visual-portfolio/classes/class-admin.php:2133, dist/visual-portfolio/classes/class-controls.php:580
|
518 |
msgid "Title"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: dist/visual-portfolio/classes/class-admin.php:2134
|
522 |
msgid "ID"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: dist/visual-portfolio/classes/class-admin.php:2135
|
526 |
msgid "Random"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: dist/visual-portfolio/classes/class-admin.php:2144
|
530 |
msgid "Order direction"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: dist/visual-portfolio/classes/class-admin.php:2148
|
534 |
msgid "DESC"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: dist/visual-portfolio/classes/class-admin.php:2149
|
538 |
msgid "ASC"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: dist/visual-portfolio/classes/class-admin.php:2184
|
542 |
msgid "Name & Shortcode"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: dist/visual-portfolio/classes/class-admin.php:2192
|
546 |
msgid "Layout"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: dist/visual-portfolio/classes/class-admin.php:2200
|
550 |
msgid "Items Style"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: dist/visual-portfolio/classes/class-admin.php:2208
|
554 |
msgid "Items Click Action"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: dist/visual-portfolio/classes/class-admin.php:2216
|
558 |
msgid "Filter"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: dist/visual-portfolio/classes/class-admin.php:2224
|
562 |
msgid "Pagination"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: dist/visual-portfolio/classes/class-admin.php:2233
|
566 |
msgid "Preview"
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: dist/visual-portfolio/classes/class-admin.php:2241
|
570 |
msgid "Content Source"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: dist/visual-portfolio/classes/class-admin.php:2249
|
574 |
msgid "Custom CSS"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: dist/visual-portfolio/classes/class-admin.php:2268
|
578 |
msgid "Name"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: dist/visual-portfolio/classes/class-admin.php:2278
|
582 |
msgid "Place the shortcode where you want to show the portfolio list."
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: dist/visual-portfolio/classes/class-admin.php:2344
|
586 |
msgid "Filter Shortcode"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: dist/visual-portfolio/classes/class-admin.php:2345
|
590 |
msgid "Place the shortcode where you want to show the filter."
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: dist/visual-portfolio/classes/class-admin.php:2412
|
594 |
msgid "Portfolio"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: dist/visual-portfolio/classes/class-admin.php:2418
|
598 |
msgid "Post-Based"
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: dist/visual-portfolio/classes/class-admin.php:2424
|
602 |
msgid "Images"
|
603 |
msgstr ""
|
604 |
|
605 |
#. translators: %1$s - escaped url.
|
606 |
+
#: dist/visual-portfolio/classes/class-admin.php:2443
|
607 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
608 |
msgstr ""
|
609 |
|
610 |
+
#: dist/visual-portfolio/classes/class-admin.php:2479
|
611 |
msgid "Available classes:"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: dist/visual-portfolio/classes/class-admin.php:2482
|
615 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: dist/visual-portfolio/classes/class-admin.php:2483
|
619 |
msgid " - items wrapper."
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: dist/visual-portfolio/classes/class-admin.php:2484
|
623 |
msgid " - single item wrapper."
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: dist/visual-portfolio/classes/class-admin.php:2485
|
627 |
msgid " - filter wrapper."
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: dist/visual-portfolio/classes/class-admin.php:2486
|
631 |
msgid " - pagination wrapper."
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: dist/visual-portfolio/classes/class-admin.php:2546
|
635 |
msgid "Specific Posts"
|
636 |
msgstr ""
|
637 |
|
638 |
+
#: dist/visual-portfolio/classes/class-admin.php:2547
|
639 |
msgid "Custom Query"
|
640 |
msgstr ""
|
641 |
|
679 |
msgid "No items found."
|
680 |
msgstr ""
|
681 |
|
|
|
|
|
|
|
|
|
682 |
#. translators: %s - published in human format.
|
683 |
+
#: dist/visual-portfolio/classes/class-get-portfolio.php:1046
|
684 |
msgid "%s ago"
|
685 |
msgstr ""
|
686 |
|
771 |
#: dist/visual-portfolio/classes/class-vc.php:89
|
772 |
msgid "Design Options"
|
773 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Requires at least: 4.0.0
|
5 |
* Tested up to: 4.9
|
6 |
* Requires PHP: 5.4
|
7 |
-
* Stable tag: 1.6.
|
8 |
* License: GPLv2 or later
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -420,6 +420,13 @@ Available methods:
|
|
420 |
|
421 |
## Changelog ##
|
422 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
= 1.6.4 =
|
424 |
* fixed font-awesome dependency
|
425 |
|
4 |
* Requires at least: 4.0.0
|
5 |
* Tested up to: 4.9
|
6 |
* Requires PHP: 5.4
|
7 |
+
* Stable tag: 1.6.5
|
8 |
* License: GPLv2 or later
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
420 |
|
421 |
## Changelog ##
|
422 |
|
423 |
+
= 1.6.5 =
|
424 |
+
* added options for texts in filter and pagination
|
425 |
+
* fixed paged /portfolio/ page (https://wordpress.org/support/topic/paging-infinite-loading-not-working/)
|
426 |
+
* fixed vertical images quality
|
427 |
+
* fixed conflict with Jetpack lazy
|
428 |
+
* fixed filter shortcode output
|
429 |
+
|
430 |
= 1.6.4 =
|
431 |
* fixed font-awesome dependency
|
432 |
|
templates/items-list/pagination/infinite.php
CHANGED
@@ -15,9 +15,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
<ul class="<?php echo esc_attr( $args['class'] ); ?> vp-pagination__style-default" data-vp-pagination-type="<?php echo esc_attr( $args['type'] ); ?>">
|
16 |
<li class="vp-pagination__item">
|
17 |
<a class="vp-pagination__load-more" href="<?php echo esc_url( $args['next_page_url'] ); ?>">
|
18 |
-
<span><?php echo
|
19 |
-
<span class="vp-pagination__load-more-loading"
|
20 |
-
<span class="vp-pagination__load-more-no-more"><?php echo
|
21 |
</a>
|
22 |
</li>
|
23 |
</ul>
|
15 |
<ul class="<?php echo esc_attr( $args['class'] ); ?> vp-pagination__style-default" data-vp-pagination-type="<?php echo esc_attr( $args['type'] ); ?>">
|
16 |
<li class="vp-pagination__item">
|
17 |
<a class="vp-pagination__load-more" href="<?php echo esc_url( $args['next_page_url'] ); ?>">
|
18 |
+
<span><?php echo esc_html( $args['text_load'] ); ?></span>
|
19 |
+
<span class="vp-pagination__load-more-loading"><span class="vp-spinner"><i></i></span><span class="sr-only"> <?php echo esc_html( $args['text_loading'] ); ?></span></span>
|
20 |
+
<span class="vp-pagination__load-more-no-more"><?php echo esc_html( $args['text_end_list'] ); ?></span>
|
21 |
</a>
|
22 |
</li>
|
23 |
</ul>
|
templates/items-list/pagination/load-more.php
CHANGED
@@ -15,9 +15,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
<ul class="<?php echo esc_attr( $args['class'] ); ?> vp-pagination__style-default" data-vp-pagination-type="<?php echo esc_attr( $args['type'] ); ?>">
|
16 |
<li class="vp-pagination__item">
|
17 |
<a class="vp-pagination__load-more" href="<?php echo esc_url( $args['next_page_url'] ); ?>">
|
18 |
-
<span><?php echo
|
19 |
-
<span class="vp-pagination__load-more-loading"><span class="vp-spinner"><i></i></span><span class="sr-only"> <?php echo
|
20 |
-
<span class="vp-pagination__load-more-no-more"><?php echo
|
21 |
</a>
|
22 |
</li>
|
23 |
</ul>
|
15 |
<ul class="<?php echo esc_attr( $args['class'] ); ?> vp-pagination__style-default" data-vp-pagination-type="<?php echo esc_attr( $args['type'] ); ?>">
|
16 |
<li class="vp-pagination__item">
|
17 |
<a class="vp-pagination__load-more" href="<?php echo esc_url( $args['next_page_url'] ); ?>">
|
18 |
+
<span><?php echo esc_html( $args['text_load'] ); ?></span>
|
19 |
+
<span class="vp-pagination__load-more-loading"><span class="vp-spinner"><i></i></span><span class="sr-only"> <?php echo esc_html( $args['text_loading'] ); ?></span></span>
|
20 |
+
<span class="vp-pagination__load-more-no-more"><?php echo esc_html( $args['text_end_list'] ); ?></span>
|
21 |
</a>
|
22 |
</li>
|
23 |
</ul>
|