vendor: 4,162 bytes, lines 1-2
1/*! For license information please see defaultGallery.3938598071b7ebbebbf4.js.LICENSE.txt */ 2"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2592],{64388(e,t,n){n.r(t),n.d(t,{default:()=>x});var r=n(68909),i=n(96414),o=n(54175),a=n.n(o),l=n(43241),u=n(75389);function c(e){return c="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},c(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(){var e=b(),t=e.m(m),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,p(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(m=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new w(e,t)},AsyncIterator:y,async:function(e,t,n,i,a){return(r(t)?v:h)(o(e),t,n,i,a)},keys:d,values:p}})()}function p(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(c(e)+" is not iterable")}function d(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function h(e,t,n,r,i){var o=v(e,t,n,r,i);return o.next().then(function(e){return e.done?e.value:o.next()})}function v(e,t,n,r,i){return new y(b().w(e,t,n,r),i||Promise)}function y(e,t){function n(r,i,o,a){try{var l=e[r](i),u=l.value;return u instanceof w?t.resolve(u.v).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(u).then(function(e){l.value=e,o(l)},function(e){return n("throw",e,o,a)})}catch(e){a(e)}}var r;this.next||(g(y.prototype),g(y.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),g(this,"_invoke",function(e,i,o){function a(){return new t(function(t,r){n(e,o,t,r)})}return r=r?r.then(a,a):a()},!0)}function b(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return g(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,l=0,u=e,m.n=n,a}};function p(n,r){for(l=n,u=r,t=0;!f&&c&&!i&&t<s.length;t++){var i,o=s[t],p=m.p,d=o[2];n>3?(i=d===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(l=0,m.v=r,m.n=o[1]):p<d&&(i=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,m.n=d,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,u=d;(t=l<2?e:u)||!f;){o||(l?l<3?(l>1&&(m.n=-1),p(l,u)):m.n=u:m.v=u);try{if(c=2,o){if(l||(i="next"),t=o[i]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=e}else if((t=(f=m.n<0)?u:n.call(r,m))!==a)break}catch(t){o=e,l=1,u=t}finally{c=1}}return{value:t,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(g(t={},r,function(){return this}),t),f=c.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,g(e,i,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,g(f,"constructor",c),g(c,"constructor",u),u.displayName="GeneratorFunction",g(c,i,"GeneratorFunction"),g(f),g(f,i,"Generator"),g(f,r,function(){return this}),g(f,"toString",function(){return"[object Generator]"}),(b=function(){return{w:o,m}})()}function g(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}g=function(e,t,n,r){function o(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},g(e,t,n,r)}function w(e,t){this.v=e,this.k=t}function O(e,t,n,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,i)}function _(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,j(r.key),r)}}function k(e,t,n){return t=I(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,E()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function P(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var S=(0,n(96205).Ay)({resolved:{},chunkName:function(){return"react-image-gallery"},isReady:function(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:function(){return n.e(4121).then(n.bind(n,25845))},requireAsync:function(e){var t=this,n=this.resolve(e);return this.resolved[n]=!1,this.importAsync(e).then(function(e){return t.resolved[n]=!0,e})},requireSync:function(e){var t=this.resolve(e);return n(t)},resolve:function(){return null}},{ssr:!1}),x=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),P(n=k(this,t,[e]),"fallbackImage",u.default.PLACEHOLDER_IMAGE_URL||"https://auctioneersoftware.s3.amazonaws.com/as2_common_assets/no_image.png"),P(n,"gallery",r.createRef()),e.fallbackImage&&(n.fallbackImage=e.fallbackImage),n.state={showVideo:{},currentIndex:0,galleryItems:n.processAttachments(e.attachments,e.defaultMeta,"ALL"),activeMediaFilter:"ALL"},n.onMainImageClick=n.onMainImageClick.bind(n),n.setActiveMediaFilter=n.setActiveMediaFilter.bind(n),n.mediaFilter=n.mediaFilter.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(t,e),n=t,o=[{key:"componentDidUpdate",value:function(e,t){(0,i.isEqual)(e.attachments,this.props.attachments)&&(0,i.isEqual)(e.defaultMeta,this.props.defaultMeta)||this.setState({galleryItems:this.processAttachments(this.props.attachments,this.props.defaultMeta)}),t.activeMediaFilter!==this.state.activeMediaFilter&&this.setState({galleryItems:this.processAttachments(this.props.attachments,this.props.defaultMeta)})}},{key:"onMainImageClick",value:(s=m().mark(function e(){var t,n;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this.props.onMainImageClick)||!this.gallery.current){e.next=6;break}return e.next=4,this.gallery.current.getCurrentIndex();case 4:n=e.sent,t(n);case 6:case"end":return e.stop()}},e,this)}),p=function(){var e=this,t=arguments;return new Promise(function(n,r){var i=s.apply(e,t);function o(e){O(i,n,r,o,a,"next",e)}function a(e){O(i,n,r,o,a,"throw",e)}o(void 0)})},function(){return p.apply(this,arguments)})},{key:"toggleShowVideo",value:function(e){var t;this.setState(function(t){var n;return a()(t,{showVideo:P({},e,{$set:!Boolean(null===(n=t.showVideo)||void 0===n?void 0:n[e])})})}),null===(t=this.gallery.current)||void 0===t||t.pause()}},{key:"onSlide",value:function(e){this.state.currentIndex!==e&&this.setState({currentIndex:e,showVideo:{}})}},{key:"renderVideo",value:function(e){var t=this,n=this.state,i=n.showVideo,o=n.currentIndex;return r.createElement("div",{className:"image-gallery-image",onClick:this.onMainImageClick},e.index===o&&i[e.embedUrl]?r.createElement("div",{className:"video-wrapper"},r.createElement("a",{className:"close-video",onClick:function(n){n.preventDefault(),n.stopPropagation(),t.toggleShowVideo(e.embedUrl)}},r.createElement(l.FontAwesomeIcon,{icon:["fas","times"],title:"Hide"})),r.createElement("iframe",{width:"468",height:"351",src:e.embedUrl,frameBorder:"0",allowFullScreen:!0,loading:"lazy"})):r.createElement("a",{onClick:function(n){n.preventDefault(),n.stopPropagation(),t.toggleShowVideo(e.embedUrl)}},r.createElement("div",{className:"play-button"}),r.createElement("img",{src:e.original,title:"Video",loading:"lazy"}),e.description&&r.createElement("span",{className:"image-gallery-description",style:{right:"0",left:"initial"}},e.description)))}},{key:"renderIframe",value:function(e){var t=this;return r.createElement("div",{className:"image-gallery-image",onClick:this.onMainImageClick},r.createElement("div",{className:"embed-wrapper"},r.createElement("a",{className:"expand-embed",onClick:function(e){e.preventDefault(),e.stopPropagation(),t.onMainImageClick()}},r.createElement(l.FontAwesomeIcon,{icon:["fas","magnifying-glass-plus"],title:"Maximize"})),r.createElement("iframe",{src:e.embedUrl,frameBorder:"0",allowFullScreen:!0,loading:"lazy"})))}},{key:"processAttachments",value:function(e,t,n){var r=this,i=this.props.useLargeImage,o=this.state?this.state.activeMediaFilter:n,a=e.map(function(e,n){var o,a,l;return"video/youtube"===e.asset_metadata.type?{type:"VIDEO",index:n,original:"//img.youtube.com/vi/".concat(e.storage_details.video_id,"/hqdefault.jpg"),thumbnail:e.thumb_image,embedUrl:"https://www.youtube.com/embed/".concat(e.storage_details.video_id,"?autoplay=1&showinfo=0"),renderItem:r.renderVideo.bind(r),originalAlt:"Youtube Video",thumbnailAlt:"Youtube Video"}:"video/vimeo"===e.asset_metadata.type?{type:"VIDEO",index:n,original:e.thumb_image,thumbnail:e.thumb_image,embedUrl:"https://player.vimeo.com/video/".concat(e.storage_details.video_id),renderItem:r.renderVideo.bind(r),originalAlt:"Vimeo Video",thumbnailAlt:"Vimeo Video"}:"text/html"===e.asset_metadata.type?{type:"IFRAME",index:n,original:e.thumb_image,thumbnail:e.thumb_image,embedUrl:null===(l=e.storage_details)||void 0===l?void 0:l.embed_url,renderItem:r.renderIframe.bind(r),originalAlt:"Iframe",thumbnailAlt:"Iframe"}:{type:"PHOTO",index:n,original:i?e.large_image:e.main_image,thumbnail:e.small_image,originalAlt:(null===(o=e.asset_metadata)||void 0===o?void 0:o.alt)||(null==t?void 0:t.alt),thumbnailAlt:(null===(a=e.asset_metadata)||void 0===a?void 0:a.alt)||(null==t?void 0:t.alt)}});return this.props.isFilterable&&"ALL"!==o&&(a=a.filter(function(e){return"PHOTO"
2===o?"VIDEO"!==e.type?e:null:"VIDEO"===e.type?e:null})),0===a.length&&a.push({type:"fallback",index:0,original:this.fallbackImage,thumbnail:this.fallbackImage,originalAlt:null==t?void 0:t.alt,thumbnailAlt:null==t?void 0:t.alt}),a}},{key:"setActiveMediaFilter",value:function(e){e&&this.props.setActiveMediaFilter&&this.props.setActiveMediaFilter(e)}},{key:"mediaFilter",value:function(){var e=this,t=this.props,n=t.isFilterable,i=t.mediaCounts,o=t.activeMediaFilter,a=null!=i?i:{all:0,photo:0,video:0},l=a.all,u=a.photo,c=a.video;return n?r.createElement("div",{className:"filter-controls"},(u>0||c>0)&&r.createElement("span",{onClick:function(){return e.setActiveMediaFilter("ALL")},className:"ALL"===o?"active":""},"All (",l,")"),u>0&&r.createElement("span",{onClick:function(){return e.setActiveMediaFilter("PHOTO")},className:"PHOTO"===o?"active":""},"Photos (",u,")"),c>0&&r.createElement("span",{onClick:function(){return e.setActiveMediaFilter("VIDEO")},className:"VIDEO"===o?"active":""},"Videos (",c,")")):null}},{key:"render",value:function(){var e,t=this.props.imageGalleryProps,n=this.state.galleryItems;return r.createElement(S,f(f({ref:this.gallery,onSlide:this.onSlide.bind(this),items:n,lazyLoad:!0,onErrorImageURL:this.fallbackImage,showPlayButton:!1,showFullscreenButton:!1,renderCustomControls:this.mediaFilter,additionalClass:"filterable",showThumbnails:(null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0)>1},t),{},{onClick:this.onMainImageClick}))}}],o&&_(n.prototype,o),c&&_(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,c,s,p}(r.Component)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.