1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[1893],{591893:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Q});var n=r(784342),o=r(875593),i=r(667294),s=r.n(i),a=r(45697),l=r.n(a),c=r(175980),u=r(13860),p=r(693773),d=r(472866),f=r(360869),h=r(556261),m=r(74103),y=r(832724),g=r(294184),b=r.n(g),v=r(493619),S=r(200246),k=r.n(S),w=r(230866),C=r(669232),O="https://api.flickr.com/services/rest/?api_key=",I="&format=json&nojsoncallback=1",j="&extras=description%2C+license%2C+date_upload%2C+date_taken%2C+owner_name%2C+geo%2C+tags%2C+machine_tags%2C+path_alias%2C",P="&method=flickr.people.findByUsername",T=r(525717),E=r(69226);function _(e){return _="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)}var A,D,x,z=["currentSlide","slideCount"],M=["currentSlide","slideCount"];function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}function Z(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function N(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=G(e);if(t){var o=G(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return L(this,r)}}function L(e,t){if(t&&("object"===_(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)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var H,q,F,U,Y,X,$=(0,c.Z)((function(){return Promise.all([r.e(8935),r.e(2343)]).then(r.bind(r,752343))})),J=(0,c.Z)((function(){return Promise.all([r.e(2018),r.e(6066)]).then(r.bind(r,446066))})),Q=(0,h.D2)((function(e){return{infiniteScrollWrapper:{textAlign:"center",margin:"0 -5px"},circularProgressWrapper:{textAlign:"center",padding:16}}}))(A=(0,f.Z)({copyStatics:["defaultProps"]})(A=(0,h.XN)((x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,r,o,i=K(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).getAllphotos=function(e,r){var n=t.props,o=n.apiKey,i=n.number,s=n.restrictResults,a="";r&&(a="&page=".concat(r));var l="".concat(O).concat(o).concat("&method=flickr.people.getPublicPhotos&","&user_id=").concat(e).concat(j).concat(I
1).concat(a,"&per_page=").concat(25);E(l).then((function(e){return e.json()})).then((function(e){if(e&&e.photos){var n=e.photos,o=n.page,a=n.perpage,l=n.pages,c=n.photo;if(o&&a&&l&&c){var u=!s||o*e.photos.perpage<i;t.setState({photosToDisplay:r?[].concat(N(t.state.photosToDisplay),N(c)):c,hasMore:!!u&&o<l,page:o})}}else t.setState({hasMore:!1})}))},t.getPhotosByAlbum=function(e,r){var n=t.props,o=n.apiKey,i=n.albumID,s=n.number,a=n.restrictResults,l="";r&&(l="&page=".concat(r));var c="".concat(O).concat(o).concat("&method=flickr.photosets.getPhotos","&photoset_id=").concat(i,"&user_id=").concat(e).concat(j).concat(I).concat(l,"&per_page=").concat(25);E(c).then((function(e){return e.json()})).then((function(e){if(e&&e.photoset){var n=e.photoset,o=n.page,i=n.perpage,l=n.pages,c=n.photo;if(o&&i&&l&&c){var u=!a||o*i<s;t.setState({photosToDisplay:r?[].concat(N(t.state.photosToDisplay),N(c)):c,hasMore:!!u&&o<l,page:o})}}else t.setState({hasMore:!1})}))},t.loadMore=function(){"all"===t.props.photoSelection?t.getAllphotos(t.state.user.id,t.state.page+1):t.getPhotosByAlbum(t.state.user.id,t.state.page+1)},t.state={user:{},photosToDisplay:{},hasMore:!1,page:0},t}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this,t=this.props,r=t.username,n=t.apiKey,o=t.albumID,i=t.photoSelection;if(r&&n){var s="".concat(O).concat(n).concat(P,"&username=").concat(r).concat(I);E(s).then((function(e){return e.json()})).then((function(t){"ok"===t.stat&&(e.setState({user:t.user}),"all"!==i&&o?e.getPhotosByAlbum(t.user.id):e.getAllphotos(t.user.id))}))}}},{key:"componentDidUpdate",value:function(e){var t=this,r=this.props,n=r.username,o=r.apiKey,i=r.photoSelection,s=r.albumID;if(n&&o&&(e.username!==n||e.apiKey!==o)){var a="".concat(O).concat(o).concat(P,"&username=").concat(n).concat(I);E(a).then((function(e){return e.json()})).then((function(e){"ok"===e.stat?(t.setState({user:e.user}),"all"!==i&&s?t.getPhotosByAlbum(e.user.id):t.getAllphotos(e.user.id)):t.setState({photosToDisplay:{}})}))}e.photoSelection===i&&e.albumID===s||("all"===i?this.getAllphotos(this.state.user.id):this.getPhotosByAlbum(this.state.user.id))}},{key:"renderStackGrid",value:function(){var e=this.props,t=e.gutter,r=e.colWidth,n=e.number,o=e.restrictResults,i=this.state.photosToDisplay;if(i&&i.length>0){o&&(i=i.slice(0,n));var a=i.map(this.renderCustomItem);return s().createElement($,{monitorImagesLoaded:!0,columnWidth:parseInt(r,10),duration:480,gutterWidth:parseInt(t,10),gutterHeight:parseInt(t,10),appearDelay:30},a)}return null}},{key:"renderCustomGrid",value:function(){var e=this.props,t=e.tileHeight,r=e.columnNumber,n=e.number,o=e.restrictResults,i=this.state.photosToDisplay;if(i&&i.length>0){o&&(i=i.slice(0,n));var a=i.map(this.renderCustomItem);return s().createElement(y.Z,{cols:parseInt(r,10)||3,cellHeight:parseInt(t,10)||256,style:{margin:"0px",padding:"0px",width:"100%",overflowY:"hidden"}},a)}return null}},{key:"renderCustomList",value:function(){var e=this.props,t=e.number,r=e.restrictResults,n=this.state.photosToDisplay;return n&&n.length>0?(r&&(n=n.slice(0,t)),s().createElement("div",null,n.map(this.renderCustomItem))):null}},{key:"renderCustomCaroussel",value:function(){var e,t=this,r=this.props,n=r.styleClassMap,o=r.slideTime,i=r.number,a=r.relax,l=r.dots,c=r.slidesToShow,u=r.fade,p=r.autoplay,d=r.showArrows,f=r.leftIcon,h=r.rightIcon,m=r.restrictResults,y=this.state.photosToDisplay;y&&y.length>0&&(m&&(y=y.slice(0,i)),e=y);var g=function(e){var t=e.currentSlide,r=e.slideCount,n=Z(e,z);return s().createElement("div",R({},n,{"data-currentslide":t,"data-slidecount":r}),s().createElement("i",{style:{position:"absolute",top:"6px",marginTop:"-"+.35*parseFloat(a.styleValues.carIconSize)+"rem",right:"-"+a.styleValues.arrowSpacement,color:(0,v.o3)(a.styleValues.carIconColor),fontSize:a.styleValues.carIconSize,zIndex:1},className:b()(h&&h.className)},h&&h.content))},S=function(e){var t=e.currentSlide,r=e.slideCount,n=Z(e,M);return s().createElement("div",R({},n,{"data-currentslide":t,"data-slidecount":r}),s().createElement("i",{style:{position:"absolute",top:"6px",left:"-"+a.styleValues.arrowSpacement,marginTop:"-"+.35*parseFloat(a.styleValues.carIconSize)+"rem",color:(0,v.o3)(a.styleValues.carIconColor),fontSize:a.styleValues.carIconSize,zIndex:1},className:b()(f&&f.className)},f&&f.content))};if(e&&e.length>0){var k=e.map(this.renderCustomItem);return(a.editing||a.building)&&(k=k.slice(0,c)),0===k.length?s().createElement("div",null):s().createElement(J,{ref:function(e){return t.slider=e},centerMode:!1,fade:"1"===c&&u,dotsClass:"slick-dots "+n.dots,arrows:d,nextArrow:d&&s().createElement(g,null),prevArrow:d&&s().createElement(S,null),dots:l,infinite:!a.editing&&!a.building,slidesToShow:c,speed:1200,pauseOnHover:!1,autoplaySpeed:1e3*o,autoplay:!a.editing&&!a.building&&p,focusOnSelect:!1,touchThreshold:100},k)}return null}},{key:"renderCustomItem",value:function(e,t){var r=this.props,n=r.renderChildren,o=r.schemaLinks,i=r.imageSize,a=e,l=i?"_".concat(i):"";return s().createElement("div",{key:t,style:{position:"relative",padding:"0px"}},n({links:o,linksData:{result:{id:a.id,dateTaken:a.datetaken,description:a.description._content,title:a.title,latitude:a.latitude,image:"https://farm".concat(a.farm,".staticflickr.com/").concat(a.server,"/").concat(a.id,"_").concat(a.secret).concat(l,".jpg"),longitude:a.longitude,tags:a.tags,linkURL:{options:{url:"https://www.flickr.com/photos/".concat(a.pathalias,"/").concat(a.id)},type:"external"}}},type:"page"}))}},{key:"renderPhotos",value:function(){var e=this.props.mode;return"mosaic"===e?this.renderCustomGrid():"list"===e?this.renderCustomList():"carousel"===e?this.renderCustomCaroussel():"stackGrid"===e?this.renderStackGrid():this.renderCustomGrid()}},{key:"renderMissingConfig",value:function(){return this.props.relax.editing?s().createElement(C.Z,null,"You still haven't configured your Flickr widget! Select the widget and go to the settings tab to fill the Flickr API key and username."):null}},{key:"renderIncorrectConfig",value:function(){return this.props.relax.editing?s().createElement(C.Z,null,"Oups...something went wrong! Select the widget and go to the settings tab to check if the API key and the username are correct."):null}},{key:"render",value:function(){var e=this.props,t=e.relax,r=e.classes,o=e.styleClassMap,i=e.Element,a=e.locale;return(0,n.Z)(null==t?void 0:t.styleValues,a)?this.props.apiKey&&this.props.username?this.state.photosToDisplay.length?s().createElement(i,R({},t,{htmlTag:"div",settings:p.Z,className:o.element}),s().createElement(k(),{id:"flickrresult",className:r.infiniteScrollWrapper,useWindow:!0,initialLoad:!1,pageStart:1,loadMore:this.loadMore,hasMore:this.state.hasMore,threshold:400,loader:s().createElement("div",{key:"CircularProgress",className:r.circularProgressWrapper},s().createElement(w.Z,{size:60}))},this.renderPhotos())):this.renderIncorrectConfig():this.renderMissingConfig():null}}
1])&&W(t.prototype,r),o&&W(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z),x.propTypes={apiKey:l().string,username:l().string,styleClassMap:l().object,children:l().node,relax:l().object,Element:l().func.isRequired,mode:l().string,type:l().string,intl:h.gm.isRequired,localized:l().func.isRequired,number:l().oneOfType([l().string,l().number]),columnNumber:l().oneOfType([l().string,l().number]),tileHeight:l().string,schemaLinks:l().object,renderChildren:l().func.isRequired,imageSize:l().string,dots:l().bool,showArrows:l().bool,fade:l().bool,slidesToShow:l().oneOfType([l().string,l().number]),slideTime:l().oneOfType([l().string,l().number]),autoplay:l().bool,leftIcon:l().object,rightIcon:l().object,photoSelection:l().string,colWidth:l().string,gutter:l().string,albumID:l().string,classes:l().object,restrictResults:l().bool,locale:l().string},x.propsSchema=u.Z,x.settings=p.Z,x.style=d.Z,x.defaultProps=T.Z,H=(D=x).prototype,q="renderCustomItem",F=[m.Z],U=Object.getOwnPropertyDescriptor(D.prototype,"renderCustomItem"),Y=D.prototype,X={},Object.keys(U).forEach((function(e){X[e]=U[e]})),X.enumerable=!!X.enumerable,X.configurable=!!X.configurable,("value"in X||X.initializer)&&(X.writable=!0),X=F.slice().reverse().reduce((function(e,t){return t(H,q,e)||e}),X),Y&&void 0!==X.initializer&&(X.value=X.initializer?X.initializer.call(Y):void 0,X.initializer=void 0),void 0===X.initializer&&(Object.defineProperty(H,q,X),X=null),A=D))||A)||A)||A}}]);
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.