(window.webpackJsonp=window.webpackJsonp||[]).push([[66,98],{"0cbf7520a50d432f75ff":function(e,t,r){"use strict";var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("1231c8dbfe54b0845df9"),c=r.n(i);function u(){return(u=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}).apply(this,arguments)}function l(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),n||(n=o.createElement("g",{"data-name":"Group 29052"},o.createElement("path",{"data-name":"Rectangle 4719",fill:"none",d:"M0 0h24v24H0z"}),o.createElement("g",{"data-name":"Group 29043",stroke:"#000",strokeWidth:.2},o.createElement("path",{"data-name":"Path 20887",d:"M12 13.69a.284.284 0 01-.122-.028l-9.71-4.56a.285.285 0 010-.516l9.714-4.56a.286.286 0 01.243 0l9.714 4.56a.285.285 0 010 .516l-9.717 4.561a.284.284 0 01-.122.028zM2.957 8.845L12 13.089l9.043-4.244L12 4.601z"}),o.createElement("path",{"data-name":"Path 20888",d:"M11.935 16.567a13.092 13.092 0 01-6.594-1.9.285.285 0 01-.143-.246v-4.045a.286.286 0 01.572 0v3.88a11.846 11.846 0 0012.329 0v-3.817a.286.286 0 01.572 0v3.983a.285.285 0 01-.143.246 13.087 13.087 0 01-6.593 1.899z"}),o.createElement("path",{"data-name":"Path 20889",d:"M20.167 15.341a.285.285 0 01-.285-.285V9.6a.285.285 0 01.57 0v5.456a.285.285 0 01-.285.285z"}),o.createElement("path",{"data-name":"Path 20890",d:"M20.168 17.262a1.24 1.24 0 111.24-1.24h0a1.241 1.241 0 01-1.24 1.24zm0-1.909a.67.67 0 10.67.67h0a.671.671 0 00-.67-.671z"}),o.createElement("path",{"data-name":"Path 20891",d:"M20.2 19.833a2.984 2.984 0 01-1.276-.307.285.285 0 01-.159-.309l.464-2.546a.285.285 0 11.563.09v.013l-.423 2.323a2.058 2.058 0 001.606.008l-.425-2.331a.285.285 0 11.561-.1l.464 2.546a.285.285 0 01-.147.3 2.594 2.594 0 01-1.225.313z"})))))}function f(){return(f=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}).apply(this,arguments)}t.a=function(e){return a.a.createElement(c.a,f({component:l},e))}},"1d950b0bf04fe357eed8":function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("81f38c1a66d31eef5e2f"),c=r("f556096832c8730963ee"),u=r("d5f0084b1c185be2c0b2");function l(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function f(){return(f=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}).apply(this,arguments)}var s=l(i.a,{});function d(e){return a.a.createElement(c.a,f({},e,{title:window.intl.formatMessage(u.a.btnEdit)}),s)}},"41397800910c96ded400":function(e,t,r){"use strict";var n=r("8af190b70a6bc55c6f1b"),o=r.n(n),a=(r("8a2d1b95e05b6a321e74"),r("ff287e4203ba67f8dff7")),i=r.n(a),c=r("a1cf5d6fa4ed65a6ddd5"),u=r.n(c),l=r("99c5d4cdf07f5b40caa6"),f=r.n(l),s=r("3dde4251a4e36fb3d2d7"),d=r.n(s),p=r("f2ef6f6e544aad97aa22"),b=r.n(p),h=r("6a55381db84a511b309a"),y=r.n(h),m=r("331f86f8774175b2781f"),g=r.n(m),v=r("d7dd51e1bf6bfc2c9c3d"),O=r("ab039aecd4a1d4fedc0e"),w=r("a28fc3c963a1d4d1a2e5"),j=r("ab4cb61bcb2dc161defb"),S=r("adc20f99e57c573c589c"),P=r("d95b0cf107403b178365"),E=r("6542cd13fd5dd1bcffd4"),x=r("d75aad1efe48f684d41e"),L=r("d4a1dd3423b7053d26a9"),k=r("6ee7573060c5e56e1662"),A=r("f7623beb8f55ea4fb1c7"),M=r("fe1e11e788c2a6108eab"),C=r("c6163e65008f4255c10c"),I=r("960d2ef73809b9dc9085"),_=r("d7ac8c39d76d518870f7"),T=r("ec0d2e8b249744f6317d"),F=r("c28788a08aabd0faedff"),D=r("8ad7de11c99efb76d567"),N=r("e25cee444e1ed169d51a"),U=r("d47043ff5c05340299d4"),G=r("7c7cb1f89d6a65271352"),R=r("5fbdc7fe4a95e534eee4"),V=r("d782b72bc5b680c7122c"),H=r("865097a3d890bf28732d"),W=r("ff8d360ad8efde3d75ff");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)}function z(){z=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),c=new E(o||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var s={};function d(){}function p(){}function b(){}var h={};u(h,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&r.call(m,a)&&(h=m);var g=b.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var o;n(this,"_invoke",{value:function(n,a){function i(){return new t((function(o,i){!function c(n,o,a,i){var u=f(e[n],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==$(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){c("next",e,a,i)}),(function(e){c("throw",e,a,i)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return c("throw",e,a,i)}))}i(u.arg)}(n,a,o,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(undefined===n)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=undefined,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,s):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}throw new TypeError($(e)+" is not iterable")}return p.prototype=b,n(g,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},v(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function o(){for(;r.length;){var e=r.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=undefined),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=undefined),s}},e}var B=z().mark(Q),Y=z().mark(q);function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(e){var t,r,n,o,a,c,u,l,f;return z().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,t=e.params,r=e.scope,n=R.cc,o=i()(r,"name"),a=i()(r,"isSearch",!1),c=i()(t,"lang"),["page-feed-tour","page-tour"].includes(o)&&(n=R.dc),u=!!i()(t,"a"),s.next=10,Object(V.call)(G.a,n,X(X({},t),{},{scopeName:o,langFeed:c}));case 10:if(f=s.sent,200!==i()(f,"code")){s.next=18;break}return l=i()(f,"data",[]),s.next=16,Object(V.put)(Object(H.k)(l,u,i()(f,"meta.a"),X(X({},t),{},{scopeName:o,isSearch:a})));case 16:s.next=20;break;case 18:return s.next=20,Object(V.put)(Object(H.j)());case 20:s.next=26;break;case 22:return s.prev=22,s.t0=s["catch"](0),s.next=26,Object(V.put)(Object(H.j)());case 26:case"end":return s.stop()}}),B,null,[[0,22]])}function q(){return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(V.all)([Object(V.takeLatest)(W.i,Q)]);case 2:case"end":return e.stop()}}),Y)}var J="app.containers.FeedContainer",ee=Object(O.defineMessages)({notiNoContent:{id:"".concat(J,".notiNoContent"),defaultMessage:"B\u1ea3ng tin ch\u01b0a c\xf3 n\u1ed9i dung"},notiNoContentHashtag:{id:"".concat(J,".notiNoContentHashtag"),defaultMessage:"Kh\xf4ng th\xea\u0309 ti\u0300m th\xe2\u0301y n\xf4\u0323i dung co\u0301 hashtag na\u0300y"},notiNoContentExp:{id:"".concat(J,".notiNoContentExp"),defaultMessage:"Ch\u01b0a co\u0301 n\xf4\u0323i dung ba\u0300i tra\u0309i nghi\xea\u0323m"},notiNoContentTour:{id:"".concat(J,".notiNoContentTour"),defaultMessage:"Kh\xf4ng ti\u0300m th\xe2\u0301y tour phu\u0300 h\u01a1\u0323p"}});r("3cfaddbc49b3b4520d9c"),r("668090c850b581313352"),r("98f11010eed1f30a67e8"),r("c3bf80415d951f17239f"),r("d3a850c4000d77bccc89");var te;i()(window,"intl.locale","");function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(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 oe(e,t,r,n){te||(te="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:te,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==re(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){if(e){if("string"===typeof e)return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(e,t):void 0}}function fe(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}var se=Object(w.b)({feedContainer:Object(N.a)(),feeds:Object(N.c)(),feedFlags:Object(N.b)(),currentUser:Object(E.y)(),scopeStore:Object(N.e)(),scrollState:Object(N.f)(),modalConfirmDelPost:Object(N.d)()});var de=Object(v.connect)(se,(function(e){return{triggerResetFeed:function(){return e(Object(H.c)())},triggerGetListPost:function(t,r){return e(Object(H.i)(t,r))},triggerCreatePostSuccess:function(t,r){return e(Object(H.h)(t,r))},triggerDeletePostSuccess:function(t){return e(Object(H.b)(t))},triggerUpdateInteraction:function(t,r){return e(Object(H.e)(t,r))},triggerOpenModalDetailMedia:function(t,r){return e(Object(k.b)(t,r))},triggerOpenModalDetailExp:function(t,r,n,o,a){return e(Object(k.a)(t,r,n,o,a))},triggerUpdateGivingPoint:function(t,r){return e(Object(H.d)(t,r))},triggerUpdateShowComment:function(t,r){return e(Object(H.f)(t,r))},triggerChangeScrollState:function(t){return e(Object(H.a)(t))},triggerUpdateDeviceBrowserInfo:function(t,r){return e(Object(H.m)(t,r))}}}));t.a=Object(j.compose)(de,n.memo)((function(e){Object(P.b)({key:"feedContainer",reducer:U.a}),Object(S.a)({key:"feedContainer",saga:q});var t=e.scope,r=e.currentUser,a=(e.currentUserInteraction,e.feeds),c=e.feedFlags,l=e.triggerGetListPost,s=e.handleOpenPostEditor,p=e.onSaveIdToLocalStorage,h=e.triggerOpenModalDetailMedia,m=e.triggerOpenModalDetailExp,w=e.triggerCreatePostSuccess,j=e.triggerUpdateGivingPoint,k=e.triggerUpdateShowComment,N=e.triggerResetFeed,G=e.triggerUpdateDeviceBrowserInfo,R=e.onOpenModalTourDetail,V=e.scopeStore,$=Object(v.useSelector)(Object(E.d)()),z=$.currency,B=$.device,Y=$.browser,Z=b()(a)?a.length:0,X=ue(Object(n.useState)({isOpen:!1}),2),K=X[0],Q=X[1],J=ue(Object(n.useState)(),2),te=J[0],re=J[1],ae=Object(v.useDispatch)(),ce=Object(v.useSelector)(Object(A.a)()),le=i()(t,"id",""),fe=i()(t,"name",""),se=i()(t,"isReloadFeed",""),de=i()(r,"lang",""),pe=["page-feed-tour","page-tour"].includes(fe),be="userwall"===fe&&le===i()(r,"id"),he=b()(a)&&0===a.length&&!0===c.isCallApiFirstTime&&!1===c.isLoading,ye=["page-experience","page-feed-tour","page-tour"].includes(fe),me=i()(t,"params",{}),ge=i()(me,"fromDate",!1),ve=i()(me,"toDate",!1),Oe=ge?Object(D.a)(ge,!0):{},we=Object(n.useCallback)((function(e){var t=i()(e,"post",{}),r=i()(e,"interaction",{}),n=i()(e,"action",""),o=i()(e,"postId","");switch(n){case"update_interaction":ae(Object(H.e)(r,o));break;case"deletePost":ae(Object(H.b)(o));break;case"update":ae(Object(H.n)(t));break;case"create":case"share":ae(Object(H.h)(t))}}),[]),je=Object(n.useCallback)((function(e,t){var r={},n=i()(e,"action","");"share_post"!==n||u()(t)||(r.action=n,r.shareInfo=i()(t,"shareInfo",t)),u()(r)||s(r)}),[]),Se=function(e){if(u()(e))return{};var t=i()(e,"after"),r=i()(e,"u"),n=i()(e,"isShare"),o=i()(e,"limit"),a=i()(e,"typfeed"),c=i()(e,"isPageTour"),l=i()(e,"paramTour",{}),f="page-community"===i()(e,"scopeName"),s="page-hashtag"===i()(e,"scopeName");return ie(ie(ie(ie(ie(ie({limit:o||5,lang:de,currency:z},t?{a:t}:{}),a&&a!==W.m?{typfeed:a}:{}),1===n?{isShare:n}:{}),s?{text:le}:{}),c?l:{}),f?{p:r}:ie({},r?{u:r}:{}))},Pe=Object(n.useCallback)((function(){var e="";return"page-hashtag"===fe&&(e="Hashtag"),"page-experience"===fe&&(e="Exp"),pe&&(e="Tour"),0===f()(a)&&!1===c.isLoading?o.a.createElement(O.FormattedMessage,ee["notiNoContent".concat(e)]):""}),[a,c.isLoading,fe,pe]),Ee=Object(n.useCallback)((function(e){var r=i()(e,"id"),n={onClose:function(e){e&&k(r,!1)},onEditPost:we,onDeletePost:function(e){we({postId:e,action:"deletePost"}),m(!1,null,null)},onUpdateInteraction:function(e,t){we({interaction:e,postId:t,action:"update_interaction"})}};m(!0,r,e,n,t)}),[]),xe=Object(n.useCallback)((function(){Q({isOpen:!1})}),[]),Le=Object(n.useCallback)((function(e,t,r){var n,o="post";"postExp"===i()(r,"type")&&(o="postExperience"),n=i()(r,"title",""),Q({modalName:"ModalSharePostActions",isOpen:!0,modalProps:{anchorEl:e,callbacks:{handleOpenPostEditor:s,handleCloseModal:xe,sharePostSuccess:function(e,t){w(e,t)},onClickShareToFeed:function(){return je({action:"share_post",id:t},r)}},itemId:t,itemSlug:n,type:o,postInfo:{id:t,type:i()(r,"type"),ownerId:i()(r,"postOwner.name",""),nameOwner:i()(r,"postOwner.name",""),ownerType:i()(r,"postOwner.type","")}}})}),[]),ke=Object(n.useCallback)((function(e,r){var n=y()(a,{id:r});Q({modalName:"ModalUserActionOnPost",isOpen:!0,modalProps:{parentInfo:{feedScope:i()(t,"name"),type:i()(n,"type",""),id:i()(n,"id",""),ownerId:i()(n,"postOwner.id",""),ownerType:i()(n,"postOwner.type",""),nameOwner:i()(n,"postOwner.name",""),typePostAds:i()(n,"postInfo.type","")},anchorEl:e,callbacks:{handleOpenPostEditor:function(){s({action:"update_post",post:n,postType:L.s[i()(n,"type","postNormal")],userAction:x.g})},handleCloseModal:xe,handleDeletePostSuccess:function(e){we({postId:e})},removeMentionSuccess:function(e){("page-newsfeed"===i()(t,"name")||be)&&we({action:"deletePost",postId:e})},reportPostSuccess:function(e){["page-newsfeed","page-experience"].includes(i()(t,"name"))&&we({action:"deletePost",postId:e})}},isOpen:!0,itemSlug:i()(n,"title","")}})}),[t,be,a]),Ae=Object(n.useCallback)((function(e){Q({modalName:"ModalUsersExpressFeelingContainer",isOpen:!0,modalProps:ie({callbacks:{handleCloseModal:xe}},e)})}),[]),Me=Object(n.useCallback)((function(e){Q({modalName:"ModalUserSharePostContainer",isOpen:!0,modalProps:{callbacks:{handleCloseModal:xe},parentId:e}})}),[]),Ce=Object(n.useCallback)((function(e,t){Q({modalName:"ModalGivingPointContainer",isOpen:!0,modalProps:{postId:e,receiver:t,onClose:xe,callbacks:{givingPointSuccess:function(t){var r=i()(t,"typePoint");r&&j(r,e)}}}})}),[]),Ie=Object(n.useCallback)((function(e){Q({modalName:"ModalListUserGivingPointContainer",isOpen:!0,modalProps:{postId:e,onClose:xe}})}),[]),_e=Object(n.useCallback)((function(e){Q({modalName:"ModalListUserTagging",isOpen:!0,modalProps:{idPost:e,onClose:xe}})}),[]),Te=Object(n.useCallback)((function(e){Q({modalName:"ModalListUserInteractionEvent",isOpen:!0,modalProps:{evenId:e,onClose:xe}})}),[]);Object(n.useEffect)((function(){u()(B)||u()(Y)||G(B,Y)}),[B,Y]),Object(n.useEffect)((function(){(se&&se!==te||!["page-feed-tour"].includes(fe)&&(null!==V&&le!==i()(V,"id","")||null!==V&&fe!==i()(V,"name","")))&&(N(),re(se))}),[se,V,le,fe,te]),Object(n.useEffect)((function(){!i()(ce,"isLoadingDeletePost")&&i()(ce,"isDeletePostSuccess")&&ae(Object(H.l)(!1))}),[ce.isLoadingDeletePost,ce.isDeletePostSuccess]),Object(n.useEffect)((function(){if(!1!==c.isCallApiFirstTime||u()(de)||(["page-community","userwall"].includes(fe)&&!u()(le)&&l(Se({u:le,limit:5,scopeName:fe}),{scope:t,isUserwallOfUserLogin:be,isReset:!0}),["page-newsfeed","page-experience","page-hashtag"].includes(fe)&&l(Se({typfeed:i()(W.o,fe,!1),limit:5,scopeName:fe}),{scope:t,isUserwallOfUserLogin:be})),(!1===c.isCallApiFirstTime&&!u()(de)||!function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o+=1)if(e[r[o]]!==t[r[o]])return!1;return!0}(i()(t,"params",{}),i()(V,"params",{})))&&pe){var e=Se({typfeed:i()(W.o,fe,!1),limit:5,isPageTour:pe,scopeName:fe,paramTour:ie(ie({},me),ge&&ve?{fromDate:i()(Oe,"fromDate"),toDate:i()(Oe,"toDate")}:{})});l(e,{scope:t,isUserwallOfUserLogin:be,isReset:!0})}}),[t,le,fe,c.isCallApiFirstTime,de]);var Fe=g()((function(){if(!1===c.isLoading&&!0===c.canLoadMore&&!u()(de)){var e=Se(ie(ie(ie(ie({},!u()(le)&&["userwall","page-community"].includes(fe)?{u:le}:{}),!0===c.isCallApiFirstTime?{after:i()(c,"after","")}:{}),pe?{paramTour:ie(ie({},me),ge&&ve?{fromDate:i()(Oe,"fromDate"),toDate:i()(Oe,"toDate")}:{})}:{}),{},{typfeed:i()(W.o,fe,!1),limit:5,scopeName:fe,isPageTour:pe}));l(e,{scope:t,isUserwallOfUserLogin:be})}}),[100]);return oe("div",{id:"feed-container"},void 0,b()(a)&&a.length>0&&oe(M.a,{spacing:2},void 0,d()(a,(function(e,n){return oe(F.a,{onUserSawFeed:n+7>=Z?Fe:function(){},numberOfFeeds:Z,feed:e,scope:t,feedIndex:n,currentUser:r,onOpenListComment:k,onOpenModalPostExp:Ee,onOpenModalTourDetail:R,onOpenModalSharePost:Le,onOpenModalActionOnPost:ke,onOpenModalFeelings:Ae,onOpenModalUserSharePost:Me,onOpenModalGivingPoint:Ce,onOpenModalUserGivingPoint:Ie,onOpenModalUserTagging:_e,onOpenModalDetailMedia:h,onSaveIdToLocalStorage:p,onOpenModalUserInteractionEvent:Te},"".concat(e.id,"-").concat(e.uuid))})),!0===c.canLoadMore&&[1].concat(ne(ye?[]:[2])).map((function(e){return oe(I.a,{postType:fe},e)}))),null===a&&!0===c.isLoading&&oe(M.a,{spacing:2},void 0,!1===he&&[1].concat(ne(ye?[]:[2])).map((function(e){return oe(I.a,{postType:fe},e)}))),he&&oe(C.a,{title:Pe()}),oe(_.a,{},void 0,o.a.createElement(T.a,K)))}))},"4776b6de611643fa6cdb":function(e,t,r){"use strict";r.r(t);var n,o=r("4ff9bfeb5065bb5912c7"),a=r("066f665d188a70b1622c"),i=r("70609e1b8ea2a6443ae2"),c=r("dd2a631eb718be5bf266"),u=r("b7f5aa68283ad21ea842"),l=r("85f0fd5a2465da880884"),f=r("38748638497270348dce"),s=r("5f0909b96dd72bca0480"),d=r("79d6175ce56a4b2ad3e5"),p=r("6a5ae948008f5246b7bd"),b=r("7641a98e17ca67383247"),h=r("1ed88e816edd95aca199"),y=r("5c4568507f3d83821588"),m=r("f24cee38b44e88e91732"),g=r("4253386177fb5522c73f"),v=r("9afe7c649c1a42a68fe0"),O=r("57a33c9463c4e8390feb"),w=r("08cb1af91edef3614ac4"),j=r("0cbf7520a50d432f75ff"),S=r("e36e4eb7a9dfbf5dfb40"),P=r("d9553e8028f823710277"),E=r("c9f668d870009c26f861"),x=r("7988254b784de0e9fbe3"),L=r("4f9242e8db9aababa99c"),k=r("b2be1fe3bb2e4fff30b3"),A=r("1d950b0bf04fe357eed8"),M=r("55af187ac3046ee759a0"),C=r("b2970d5f2d3f3208d980"),I=r("e05bbd23fda4e9218dca"),_=r("ab039aecd4a1d4fedc0e"),T="app.containers.WidgetSettingUserIntroduce",F=Object(_.defineMessages)({intro:{id:"".concat(T,".intro"),defaultMessage:"Gi\u1edbi thi\u1ec7u"},btnEdit:{id:"".concat(T,".btnEdit"),defaultMessage:"Ch\u1ec9nh s\u1eeda chi ti\u1ebft"},desc:{id:"".concat(T,".desc"),defaultMessage:"Nh\u1eefng chi ti\u1ebft b\u1ea1n ch\u1ecdn s\u1ebd hi\u1ec3n th\u1ecb c\xf4ng khai nh\u01b0ng kh\xf4ng xu\u1ea5t hi\u1ec7n tr\xean B\u1ea3ng tin."},"in":{id:"".concat(T,".in"),defaultMessage:"t\u1ea1i"},workAt:{id:"".concat(T,".workAt"),defaultMessage:"L\xe0m vi\u1ec7c t\u1ea1i"},studyAt:{id:"".concat(T,".studyAt"),defaultMessage:"H\u1ecdc t\u1ea1i"},liveAt:{id:"".concat(T,".liveAt"),defaultMessage:"S\u1ed1ng t\u1ea1i"},from:{id:"".concat(T,".from"),defaultMessage:"\u0110\u1ebfn t\u1eeb"},customizeYour:{id:"".concat(T,".customizeYour"),defaultMessage:"Tu\u1ef3 ch\u1ec9nh gi\u1edbi thi\u1ec7u v\u1ec1 b\u1ea1n"},workPlace:{id:"".concat(T,".workPlace"),defaultMessage:"N\u01a1i l\xe0m vi\u1ec7c"},education:{id:"".concat(T,".education"),defaultMessage:"H\u1ecdc v\u1ea5n"},currentCity:{id:"".concat(T,".currentCity"),defaultMessage:"Th\xe0nh ph\u1ed1 hi\u1ec7n t\u1ea1i"},homeTown:{id:"".concat(T,".homeTown"),defaultMessage:"Qu\xea qu\xe1n"},btnCancel:{id:"".concat(T,".btnCancel"),defaultMessage:"Hu\u1ef7 b\u1ecf"},btnSave:{id:"".concat(T,".btnSave"),defaultMessage:"L\u01b0u"},btnUpdate:{id:"".concat(T,".btnUpdate"),defaultMessage:"C\u1eadp nh\u1eadt th\xf4ng tin"},seeAll:{id:"".concat(T,".seeAll"),defaultMessage:"Xem t\u1ea5t c\u1ea3"}}),D=r("ff287e4203ba67f8dff7"),N=r.n(D),U=r("3dde4251a4e36fb3d2d7"),G=r.n(U),R=(r("8a2d1b95e05b6a321e74"),r("8af190b70a6bc55c6f1b")),V=r.n(R);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function $(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(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 z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==H(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===H(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||X(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){if(e){if("string"===typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,t):void 0}}function K(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}var Q=function(e){var t=e.open,r=e.closeDialog,n=e.listWork,o=e.listUniversity,a=e.listHighSchool,i=e.listLiving,s=e.listComeFrom,d=e.userId,p=e.fn210,b=e.statusFlags,h=e.triggerSettingIntroduce,y=e.triggerResetState,m=p.reduce((function(e,t){return 1===t.show&&e.push(t.id),e}),[]),g=Z(V.a.useState(m),2),v=g[0],O=g[1];V.a.useEffect((function(){b.isSuccessSettingIntro&&(y(),O(m),r())}),[b.isSuccessSettingIntro]);var w=function(e){return Array.isArray(e)?G()(e,(function(e){return{label:e.name?e.name:e.address,checked:(t=e.id,-1!==v.indexOf(t)),id:e.id};var t})):[]},j=[{type:"work",label:window.intl.formatMessage(B({},F.workPlace)),value:w(n),tab:"work-education"},{type:"univer",label:window.intl.formatMessage(B({},F.education)),value:[].concat($(w(o)),$(w(a))),tab:"work-education"},{type:"yourCity",label:window.intl.formatMessage(B({},F.currentCity)),value:w(i),tab:"live-places"},{type:"hometown",label:window.intl.formatMessage(B({},F.homeTown)),value:w(s),tab:"live-places"}];return V.a.createElement(V.a.Fragment,null,W(M.a,{title:window.intl.formatMessage(B({},F.customizeYour)),dialogProps:{fullWidth:!0,maxWidth:"sm"},dialogContentProps:{dividers:!0},content:V.a.createElement(V.a.Fragment,null,W("div",{style:{paddingLeft:"16px"}},void 0,W(E.a,{paragraph:!0},void 0,window.intl.formatMessage(B({},F.desc))),W(I.a,{},void 0,G()(j,(function(e,t){return W("section",{},t,W(x.a,{gutterBottom:!0},void 0,W("b",{},void 0,e.label)),G()(N()(e,"value"),(function(t,r){return W(f.a,{container:!0,spacing:1},r,W(f.a,{item:!0,xs:!0},void 0,W(C.a,{label:t.label,switchProps:{checked:t.checked,onChange:function(e){return r=t.id,n=v.indexOf(r),o=[],-1===n?o=o.concat(v,r):0===n?o=o.concat(v.slice(1)):n===v.length-1?o=o.concat(v.slice(0,-1)):n>0&&(o=o.concat(v.slice(0,n),v.slice(n+1))),void O(o);var r,n,o}}})),W(f.a,{item:!0},void 0,W(A.a,{component:P.a,to:Object(u.a)(c.a.USER_WALL_ABOUT,{userId:d},{},e.tab)})))})),e.type&&W(L.a,{type:e.type,component:P.a,to:Object(u.a)(c.a.USER_WALL_ABOUT,{userId:d},{},e.tab)}))}))))),actions:V.a.createElement(V.a.Fragment,null,W(V.a.Fragment,{},void 0,W(l.a,{color:"primary",component:P.a,to:Object(u.a)(c.a.USER_WALL_ABOUT,{userId:d})},void 0,W("span",{},void 0,window.intl.formatMessage(B({},F.btnUpdate)))),W(k.a,{variant:"contained",onClick:r},void 0,W("span",{},void 0,window.intl.formatMessage(B({},F.btnCancel)))),W(k.a,{variant:"contained",color:"primary",onClick:function(){h({f_id:v})},loading:!0===b.isLoadingSettingIntro},void 0,W("span",{},void 0,window.intl.formatMessage(B({},F.btnSave)))))),open:t,onClose:r,dialogActionProps:{dividers:!0}}))},q=r("99b06565afc2c5b11e0f"),J=r("d71613cedb1e81659e63"),ee=r("f42f1632cc1cd5dc8d19"),te=r("6542cd13fd5dd1bcffd4"),re=r("98f11010eed1f30a67e8"),ne=r.n(re),oe=r("99c5d4cdf07f5b40caa6"),ae=r.n(oe),ie=r("b6c7cefaf15d6d95450b"),ce=r("bd01be8846a87975d002"),ue=r("62926e984c63a4206656"),le=r("d7dd51e1bf6bfc2c9c3d"),fe=r("d95b0cf107403b178365"),se=r("adc20f99e57c573c589c"),de=r("7edf83707012a871cdfb"),pe={},be=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:pe,t=arguments.length>1?arguments[1]:undefined;return Object(de.a)(e,(function(){t.type}))};function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(){ye=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),c=new E(o||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var s={};function d(){}function p(){}function b(){}var h={};u(h,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&r.call(m,a)&&(h=m);var g=b.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var o;n(this,"_invoke",{value:function(n,a){function i(){return new t((function(o,i){!function c(n,o,a,i){var u=f(e[n],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==he(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){c("next",e,a,i)}),(function(e){c("throw",e,a,i)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return c("throw",e,a,i)}))}i(u.arg)}(n,a,o,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(undefined===n)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=undefined,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,s):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}throw new TypeError(he(e)+" is not iterable")}return p.prototype=b,n(g,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},v(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function o(){for(;r.length;){var e=r.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=undefined),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=undefined),s}},e}var me,ge=ye().mark(ve);function ve(){return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),ge)}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return je(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 je(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(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 Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach((function(t){Ee(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ee(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Oe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t,r,n){me||(me="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:me,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function Le(e){var t=e.nv211,r=e.nv212,n=e.text,o=e.icon;return xe(p.a,{disableGutters:!0},void 0,xe(y.a,{},void 0,xe(s.a,{},void 0,o)),xe(m.a,{primary:xe(V.a.Fragment,{},void 0,r?"".concat(r," ").concat(window.intl.formatMessage(Pe({},F["in"]))," "):n,xe("b",{},void 0,"\xa0",t)),primaryTypographyProps:{variant:"body1"}}))}var ke=xe(y.a,{},void 0,xe(s.a,{},void 0,xe(J.a,{}))),Ae=xe(ee.a,{}),Me=xe(j.a,{}),Ce=xe(j.a,{}),Ie=xe(S.a,{}),_e=xe(q.a,{}),Te=xe(y.a,{},void 0,xe(s.a,{},void 0,xe(J.a,{}))),Fe=xe(ee.a,{}),De=xe(j.a,{}),Ne=xe(j.a,{}),Ue=xe(S.a,{}),Ge=xe(q.a,{});var Re,Ve=Object(R.memo)((function(){Object(fe.b)({key:"widgetSettingUserIntroduce",reducer:be}),Object(se.a)({key:"widgetSettingUserIntroduce",saga:ve});var e=Object(le.useDispatch)(),t=Object(le.useSelector)(Object(te.x)()),r=Object(le.useSelector)(Object(ce.g)()),n=Object(le.useSelector)(Object(ce.d)()),o=N()(r,"about.introduce"),a=N()(r,"about.works",[]),i=N()(r,"userId"),s=N()(r,"alias"),y=function(e){return ne()(a,(function(t){return N()(t,"type")===e}))},j=y(0),S=y(2),P=y(1),E=y(3),x=y(4),L=t===i,k=we(Object(ue.a)(!1),3),A=k[0],M=k[1],C=k[2],I=o||ae()(ne()(j,(function(e){return 1===N()(e,"show")})))>0||ae()(ne()(S,(function(e){return 1===N()(e,"show")})))>0||ae()(ne()(P,(function(e){return 1===N()(e,"show")})))>0||ae()(ne()(E,(function(e){return 1===N()(e,"show")})))>0||ae()(ne()(x,(function(e){return 1===N()(e,"show")})))>0;return V.a.createElement(V.a.Fragment,null,L?xe(f.a,{item:!0,xs:12},void 0,xe(v.a,{showBackground:!0},void 0,xe(w.a,{left:window.intl.formatMessage(Pe({},F.intro)),right:xe(b.a,{MainComponent:h.a,link:Object(u.a)(c.a.USER_WALL_ABOUT,{userId:s||i},null,"overview")}),disabledDivider:!0,shortDivider:!0}),xe(O.a,{},void 0,I&&xe(d.a,{dense:!0},void 0,o&&xe(p.a,{disableGutters:!0},void 0,ke,xe(m.a,{primary:xe(g.a,{variant:"body1",line:3},void 0,o),primaryTypographyProps:{variant:"body1"}})),G()(j,(function(e){return N()(e,"name")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv212:N()(e,"position"),nv211:N()(e,"name"),text:window.intl.formatMessage(Pe({},F.workAt)),icon:Ae})):""})),G()(S,(function(e){return N()(e,"address")&&N()(e,"name")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"name"),text:window.intl.formatMessage(Pe({},F.studyAt)),icon:Me})):""})),G()(P,(function(e){return N()(e,"address")&&N()(e,"name")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"name"),text:window.intl.formatMessage(Pe({},F.studyAt)),icon:Ce})):""})),G()(E,(function(e){return N()(e,"address")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"address"),text:window.intl.formatMessage(Pe({},F.liveAt)),icon:Ie})):""})),G()(x,(function(e){return N()(e,"address")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"address"),text:window.intl.formatMessage(Pe({},F.from)),icon:_e})):""}))),xe(l.a,{variant:"outlined",fullWidth:!0,onClick:M},void 0,window.intl.formatMessage(Pe({},F.btnEdit)))))):V.a.createElement(V.a.Fragment,null,I&&xe(f.a,{item:!0,xs:12},void 0,xe(v.a,{showBackground:!0},void 0,xe(w.a,{left:window.intl.formatMessage(Pe({},F.intro)),right:xe(b.a,{MainComponent:h.a,link:Object(u.a)(c.a.USER_WALL_ABOUT,{userId:s||i})}),disabledDivider:!0,shortDivider:!0}),xe(O.a,{},void 0,xe(d.a,{dense:!0},void 0,o&&xe(p.a,{disableGutters:!0},void 0,Te,xe(m.a,{primary:xe(g.a,{variant:"body1",line:3},void 0,o),primaryTypographyProps:{variant:"body1"}})),G()(j,(function(e){return N()(e,"name")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv212:N()(e,"position"),nv211:N()(e,"name"),text:window.intl.formatMessage(Pe({},F.workAt)),icon:Fe})):""})),G()(S,(function(e){return N()(e,"address")&&N()(e,"name")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"name"),text:window.intl.formatMessage(Pe({},F.studyAt)),icon:De})):""})),G()(P,(function(e){return N()(e,"address")&&N()(e,"name")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"name"),text:window.intl.formatMessage(Pe({},F.studyAt)),icon:Ne})):""})),G()(E,(function(e){return N()(e,"address")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"address"),text:window.intl.formatMessage(Pe({},F.liveAt)),icon:Ue})):""})),G()(x,(function(e){return N()(e,"address")&&1===N()(e,"show")&&(L||"pub"===N()(e,"scope"))?xe(V.a.Fragment,{},N()(e,"id"),xe(Le,{nv211:N()(e,"address"),text:window.intl.formatMessage(Pe({},F.from)),icon:Ge})):""}))))))),A&&xe(Q,{listWork:j,listUniversity:S,listHighSchool:P,listLiving:E,listComeFrom:x,open:A,closeDialog:C,userId:s||i,fn210:a,statusFlags:n,triggerSettingIntroduce:function(t){return e(ie.a.settingIntroduce({reqBody:t}))},triggerResetState:function(){return e(ie.a.resetStatePersonalAbout())}}))})),He=r("fe1e11e788c2a6108eab"),We=r("b16a8d0d729dc803fc3c");function $e(e,t,r,n){Re||(Re="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Re,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var ze=Object(We.a)({Component:i.a,key:"widgetMySites",keyRedux:"MY_SITE"}),Be=Object(We.a)({Component:a.a,key:"widgetMyPages",keyRedux:"MY_PAGE"}),Ye=$e(Ve,{});var Ze=Object(R.memo)((function(){var e=Object(le.useSelector)(Object(ce.g)()),t=N()(e,"userId",""),r=N()(e,"fullName",""),n=N()(e,"alias","");return V.a.createElement(V.a.Fragment,null,$e(He.a,{},void 0,Ye,$e(ze,{id:t,username:n,name:r}),$e(Be,{id:t,name:r})))})),Xe=r("09662bf62970c207db6f"),Ke=r.n(Xe),Qe=r("381ac0a625ffe754ac56"),qe=r.n(Qe),Je=r("c7052349c842c9cb4ae7"),et=r("e3ba3bbabb69073d7a7e"),tt=r("438f36b967b7d2f04ebb"),rt=r("55f20b32a59f966d9dd6"),nt=r("8cff8072d7d561fb067b"),ot=r("5e4c0fba7cba70034413"),at=r("ede546bbfbe7bc8ceb16"),it=r("e141b7784e51d023887d"),ct=r("f4bf31a67f252e210f6e"),ut=r("6ee7573060c5e56e1662"),lt="app/WidgetPhoto/GET_LIST_PHOTO",ft="app/WidgetPhoto/GET_LIST_PHOTO_ERROR",st="app/WidgetPhoto/RESET_STATE";function dt(e){return{type:"app/WidgetPhoto/GET_LIST_PHOTO_SUCCESSFUL",data:e}}function pt(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return{type:ft,error:e}}var bt=r("3aced5b508e7389026da"),ht={listPhoto:[],statusFlags:{isLoading:!0,isSuccess:!1},log:{global:{error:"",warning:"",success:""},debug:{error:""}}},yt=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ht,t=arguments.length>1?arguments[1]:undefined;return Object(de.a)(e,(function(e){switch(t.type){case bt.LOCATION_CHANGE:e.listPhoto=ht.listPhoto,e.statusFlags=ht.statusFlags,e.log=ht.log;break;case lt:e.statusFlags.isLoading=!0,e.statusFlags.isSuccess=!1;break;case"app/WidgetPhoto/GET_LIST_PHOTO_SUCCESSFUL":e.statusFlags.isLoading=!1,e.statusFlags.isSuccess=!0,e.listPhoto=t.data;break;case ft:e.statusFlags.isLoading=!1,e.statusFlags.isSuccess=!1,e.log.global.error=t.error;break;case st:e.statusFlags=ht.statusFlags,e.listPhoto=ht.listPhoto}}))},mt=r("d782b72bc5b680c7122c"),gt=r("5fbdc7fe4a95e534eee4"),vt=r("7c7cb1f89d6a65271352"),Ot=r("a1cf5d6fa4ed65a6ddd5"),wt=r.n(Ot);function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(){St=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),c=new E(o||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var s={};function d(){}function p(){}function b(){}var h={};u(h,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&r.call(m,a)&&(h=m);var g=b.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var o;n(this,"_invoke",{value:function(n,a){function i(){return new t((function(o,i){!function c(n,o,a,i){var u=f(e[n],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==jt(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){c("next",e,a,i)}),(function(e){c("throw",e,a,i)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return c("throw",e,a,i)}))}i(u.arg)}(n,a,o,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(undefined===n)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=undefined,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,s):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}throw new TypeError(jt(e)+" is not iterable")}return p.prototype=b,n(g,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},v(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function o(){for(;r.length;){var e=r.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=undefined),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=undefined),s}},e}var Pt=St().mark(xt),Et=St().mark(Lt);function xt(e){var t,r,n;return St().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,t=e.params,o.next=4,Object(mt.call)(vt.b,gt.mc,t);case 4:return r=o.sent,n=N()(r,"data",[]),o.next=8,Object(mt.put)(dt(n));case 8:o.next=19;break;case 10:if(o.prev=10,o.t0=o["catch"](0),wt()(o.t0.message)){o.next=17;break}return o.next=15,Object(mt.put)(pt(o.t0.message));case 15:o.next=19;break;case 17:return o.next=19,Object(mt.put)(pt(o.t0));case 19:case"end":return o.stop()}}),Pt,null,[[0,10]])}function Lt(){return St().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(mt.takeLatest)(lt,xt);case 2:case"end":return e.stop()}}),Et)}var kt,At=r("a28fc3c963a1d4d1a2e5"),Mt=function(e){return e.widgetPhoto||ht},Ct=function(){return Object(At.a)(Mt,(function(e){return e.statusFlags}))};function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach((function(t){Ft(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ft(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==It(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===It(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dt(){return(Dt=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}).apply(this,arguments)}function Nt(e,t,r,n){kt||(kt="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:kt,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var Ut=Nt(it.a,{});var Gt=function(){Object(fe.b)({key:"widgetPhoto",reducer:yt}),Object(se.a)({key:"widgetPhoto",saga:Lt});var e=Object(le.useSelector)(Object(At.a)(Mt,(function(e){return e.listPhoto}))),t=Object(le.useSelector)(Ct()),r=Object(le.useSelector)(Object(ce.g)()),n=Object(le.useSelector)(Object(te.x)()),o=Object(le.useDispatch)(),a=function(e){return o(function(e){return{type:lt,params:e}}(e))},i=N()(r,"userId",null),l=N()(r,"alias")?N()(r,"alias"):i;return Object(R.useEffect)((function(){i&&!0===t.isLoading&&a({u:i,limit:9,type:1,actor:"user"})}),[i,t.isLoading]),V.a.createElement(V.a.Fragment,null,Nt(v.a,{},void 0,Nt(w.a,{left:Object(rt.a)(Tt({},ct.a.title)),right:t.isSuccess&&e.length>0&&Nt(b.a,{MainComponent:h.a,link:Object(u.a)(c.a.USER_WALL_LIBRARY,{userId:l},null,"photos")})}),Nt(O.a,{},void 0,Nt(f.a,{container:!0,spacing:1},void 0,t.isLoading?G()(Array.from(new Array(9)),(function(e,r){return Nt(f.a,{item:!0,xs:4},r,Nt(ot.a,{isLoading:t.isLoading,style:{paddingTop:"100%",height:0}}))})):!t.isLoading&&ae()(e)>0?G()(e,(function(r,n){return Nt(f.a,{item:!0,xs:4},n,V.a.createElement(at.a,Dt({statusFlags:t,listPhoto:e},r)))})):!t.isLoading&&ae()(e)<=0&&n===i?Nt("div",{style:{display:"flex",justifyContent:"center",width:"100%"}},void 0,Nt(nt.a,{color:"primary",variant:"contained",startIcon:Ut,onClick:function(){return e=!0,t="addImage",r={id:i,type:"user"},n={onClose:function(e){Object.values(e).some((function(e){return!!e}))&&a({u:i,limit:9,type:1,actor:"user"})}},o(Object(ut.d)(e,t,r,n));var e,t,r,n}},void 0,Object(rt.a)(Tt({},ct.a.btnAddImage)))):Nt("div",{style:{paddingTop:"16px",paddingBottom:"16px",display:"flex",justifyContent:"center",width:"100%"}},void 0,Object(rt.a)(Tt({},ct.a.noActivity)))))))},Rt=r("884e334709dc6d3d6614"),Vt=r("dd3e77449d98f9a2cce7"),Ht=r("b12ff039889c1503020f"),Wt=r("f2ef6f6e544aad97aa22"),$t=r.n(Wt),zt=r("ab4cb61bcb2dc161defb"),Bt="app/WidgetRandomListFriend/GET_RANDOM_LIST_FRIEND",Yt="app/WidgetRandomListFriend/GET_RANDOM_LIST_FRIEND_ERROR";function Zt(e){return{type:"app/WidgetRandomListFriend/GET_RANDOM_LIST_FRIEND_SUCCESSFUL",data:e}}function Xt(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return{type:Yt,error:e}}var Kt=Object(_.defineMessages)({friend:{id:"".concat("app.containers.WidgetRandomListFriend",".friend"),defaultMessage:"B\u1ea1n b\xe8"},seeAll:{id:"".concat("app.containers.WidgetRandomListFriend",".seeAll"),defaultMessage:"Xem t\u1ea5t c\u1ea3"}}),Qt={listFriend:[],totalFriend:0,statusFlags:{isLoading:!0,isSuccess:!1},log:{global:{error:"",warning:"",success:""},debug:{error:""}}},qt=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Qt,t=arguments.length>1?arguments[1]:undefined;return Object(de.a)(e,(function(e){switch(t.type){case bt.LOCATION_CHANGE:e.listFriend=Qt.listFriend,e.statusFlags=Qt.statusFlags,e.totalFriend=Qt.totalFriend,e.log=Qt.log;break;case Bt:e.statusFlags.isLoading=!0;break;case"app/WidgetRandomListFriend/GET_RANDOM_LIST_FRIEND_SUCCESSFUL":e.statusFlags.isLoading=!1,e.statusFlags.isSuccess=!0,e.listFriend=t.data.listFriend,e.totalFriend=t.data.totalFriend;break;case Yt:e.statusFlags.isLoading=!1,e.log.global.error=t.error}}))};function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function er(){er=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),c=new E(o||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var s={};function d(){}function p(){}function b(){}var h={};u(h,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&r.call(m,a)&&(h=m);var g=b.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var o;n(this,"_invoke",{value:function(n,a){function i(){return new t((function(o,i){!function c(n,o,a,i){var u=f(e[n],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Jt(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){c("next",e,a,i)}),(function(e){c("throw",e,a,i)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return c("throw",e,a,i)}))}i(u.arg)}(n,a,o,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(undefined===n)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=undefined,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,s):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}throw new TypeError(Jt(e)+" is not iterable")}return p.prototype=b,n(g,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},v(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function o(){for(;r.length;){var e=r.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=undefined),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=undefined),s}},e}var tr=er().mark(or),rr=er().mark(ar),nr=function(e){return e?G()(e,(function(e){return{id:N()(e,"id"),username:N()(e,"fullName",N()(e,"profile.name","")),alias:N()(e,"profile.alias",""),avatar:N()(e,"profile.avatar.frame",N()(e,"profile.avatar.thumb",N()(e,"profile.avatar.path"))),approval:1===N()(e,"profile.approval",0)}})):e};function or(e){var t,r,n;return er().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,t=e.params,o.next=4,Object(mt.call)(vt.a,gt.X,t);case 4:return r=o.sent,n=N()(r,"data",[]),o.next=8,Object(mt.put)(Zt({listFriend:nr(n),totalFriend:N()(r,"meta.total",0)}));case 8:o.next=19;break;case 10:if(o.prev=10,o.t0=o["catch"](0),wt()(o.t0.message)){o.next=17;break}return o.next=15,Object(mt.put)(Xt(o.t0.message));case 15:o.next=19;break;case 17:return o.next=19,Object(mt.put)(Xt(o.t0.data.status.message));case 19:case"end":return o.stop()}}),tr,null,[[0,10]])}function ar(){return er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(mt.takeLatest)(Bt,or);case 2:case"end":return e.stop()}}),rr)}r("3ffdc95b98ff3cb6d937");var ir,cr=function(e){return e.widgetRandomListFriend||Qt},ur=function(){return Object(At.a)(cr,(function(e){return e.statusFlags}))};function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(e,t,r,n){ir||(ir="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:ir,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(r),!0).forEach((function(t){pr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==lr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br=Object(At.b)({listFriend:Object(At.a)(cr,(function(e){return e.listFriend})),totalFriend:Object(At.a)(cr,(function(e){return e.totalFriend})),statusFlags:ur(),userInfo:Object(ce.g)()});var hr=Object(le.connect)(br,(function(e){return{triggerGetRandomListFriend:function(t){return e({type:Bt,params:t})}}})),yr=Object(zt.compose)(hr,R.memo)((function(e){Object(fe.b)({key:"widgetRandomListFriend",reducer:qt}),Object(se.a)({key:"widgetRandomListFriend",saga:ar});var t=e.statusFlags,r=e.totalFriend,n=e.triggerGetRandomListFriend,o=e.listFriend,a=e.userInfo,i=N()(a,"alias")||N()(a,"userId");return Object(R.useEffect)((function(){N()(a,"userId")&&!0===t.isLoading&&n({u:i,limit:6})}),[N()(a,"userId"),t]),$t()(o)&&ae()(o)>0&&fr(f.a,{item:!0,xs:12},void 0,fr(v.a,{},void 0,fr(w.a,{left:"".concat(Object(rt.a)(dr({},Kt.friend))," (").concat(r,")"),right:fr(b.a,{MainComponent:h.a,link:Object(u.a)(c.a.USER_WALL_FRIENDS,{userId:i})})}),fr(d.a,{},void 0,G()(o,(function(e,t){return fr(p.a,{button:!0},t,fr(Rt.a,{},void 0,fr(Vt.a,{id:e.id,type:"user",alias:e.alias,avatar:e.avatar,isActived:e.approval})),fr(m.a,{primary:fr(Ht.a,{id:e.id,type:"user",alias:e.alias,avatar:e.avatar,name:e.username}),primaryTypographyProps:{variant:"body1"}}))})))))})),mr=r("71f4d94258318d5a45f8"),gr=r("e476818709bf621c37a9"),vr=r("70a5fb4220f4e33010bc"),Or=r("be542f7403ecfb7b08fe"),wr="app/WidgetVideoUser/GET_LIST_VIDEO",jr="app/WidgetVideoUser/GET_LIST_VIDEO_FAILED";function Sr(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return{type:jr,message:e}}var Pr={listVideo:{isLoading:!1,data:[]}},Er=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Pr,t=arguments.length>1?arguments[1]:undefined;return Object(de.a)(e,(function(e){switch(t.type){case wr:e.listVideo.isLoading=!0;break;case"app/WidgetVideoUser/GET_LIST_VIDEO_SUCCESS":e.listVideo.isLoading=!1,e.listVideo.data=t.payload;break;case jr:e.listVideo.isLoading=!1;break;case"app/WidgetVideoUser/RESET_STATE":e.listVideo.data=[]}}))},xr=r("b0554d3166c50eb56173"),Lr=r.n(xr);function kr(e){return(kr="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 Ar=Mr().mark(Ir);function Mr(){Mr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(L){u=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof d?t:d,i=Object.create(a.prototype),c=new E(o||[]);return n(i,"_invoke",{value:w(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}e.wrap=l;var s={};function d(){}function p(){}function b(){}var h={};u(h,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(x([])));m&&m!==t&&r.call(m,a)&&(h=m);var g=b.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){var o;n(this,"_invoke",{value:function(n,a){function i(){return new t((function(o,i){!function c(n,o,a,i){var u=f(e[n],e,o);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==kr(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){c("next",e,a,i)}),(function(e){c("throw",e,a,i)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return c("throw",e,a,i)}))}i(u.arg)}(n,a,o,i)}))}return o=o?o.then(i,i):i()}})}function w(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(undefined===n)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=undefined,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,s;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=undefined),t.delegate=null,s):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e||""===e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=undefined,t.done=!0,t};return o.next=o}}throw new TypeError(kr(e)+" is not iterable")}return p.prototype=b,n(g,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},v(O.prototype),u(O.prototype,i,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function o(){for(;r.length;){var e=r.pop();if(e in t)return o.value=e,o.done=!1,o}return o.done=!0,o}},e.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=undefined)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=undefined),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),s}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=undefined),s}},e}function Cr(e){var t=e.params;return Mr().mark((function r(){var e,n;return Mr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(mt.call)(vt.b,gt.mc,t);case 3:return e=r.sent,n=Lr()(e,"data")&&!wt()(e.data)?e.data:[],r.next=7,Object(mt.put)({type:"app/WidgetVideoUser/GET_LIST_VIDEO_SUCCESS",payload:n});case 7:r.next=13;break;case 9:return r.prev=9,r.t0=r["catch"](0),r.next=13,Object(mt.put)(Sr());case 13:case"end":return r.stop()}}),r,null,[[0,9]])}))()}function Ir(){return Mr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(mt.takeLatest)(wr,Cr);case 2:case"end":return e.stop()}}),Ar)}var _r,Tr=Object(At.a)((function(e){return e.widgetVideoUser||Pr}),(function(e){return e.listVideo}));function Fr(e){return(Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(r),!0).forEach((function(t){Ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ur(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Fr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gr(e,t,r,n){_r||(_r="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:_r,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function Rr(){return(Rr=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}).apply(this,arguments)}var Vr=Gr(vr.a,{});var Hr,Wr=Object(R.memo)((function(){Object(fe.b)({key:"widgetVideoUser",reducer:Er}),Object(se.a)({key:"widgetVideoUser",saga:Ir});var e=Object(le.useSelector)(Tr),t=Object(le.useSelector)(Object(ce.g)()),r=Object(le.useSelector)(Object(te.x)()),n=e.isLoading,o=e.data,a=Object(le.useDispatch)(),i=function(e){return a(function(e){return{type:wr,params:e}}(e))},l=N()(t,"userId",null),s=l===r;Object(R.useLayoutEffect)((function(){a({type:"app/WidgetVideoUser/RESET_STATE"})}),[]),Object(R.useEffect)((function(){l&&i({u:l,limit:3,type:0,actor:"user"})}),[l]);var y=Gr(f.a,{item:!0,xs:7},void 0,Gr(mr.a,{width:"100%",isLoading:n}),Gr(mr.a,{width:"50%",isLoading:n}));return V.a.createElement(V.a.Fragment,null,Gr(v.a,{},void 0,Gr(w.a,{left:Object(rt.a)(Nr({},Or.a.title)),right:o.length>0&&Gr(b.a,{MainComponent:h.a,link:Object(u.a)(c.a.USER_WALL_LIBRARY,{userId:N()(t,"alias")||l},null,"videos")})}),Gr(O.a,{},void 0,!0===n?Gr(d.a,{},void 0,G()(Array.from(new Array(2),(function(e,t){return t})),(function(e,t){return Gr(p.a,{disableGutters:!0},t,Gr(f.a,{container:!0,spacing:2},void 0,Gr(f.a,{item:!0,xs:5},void 0,Gr(ot.a,{style:{height:0,paddingTop:"calc(100% * 3 / 4)"},isLoading:n})),y))}))):ae()(o)>0?Gr(d.a,{dense:!0,disablePadding:!0},void 0,G()(o,(function(e){return V.a.createElement(gr.a,Rr({key:N()(e,"id"),listVideo:o},e))}))):!0===s?Gr("div",{style:{textAlign:"center"}},void 0,Gr(nt.a,{color:"primary",variant:"contained",startIcon:Vr,onClick:function(){return e=!0,t="addVideo",r={id:l,type:"user"},n={onClose:function(e){Object.values(e).some((function(e){return!!e}))&&i({u:l,limit:9,type:0,actor:"user"})}},a(Object(ut.d)(e,t,r,n));var e,t,r,n}},void 0,Object(rt.a)(Nr({},Or.a.btnAddVideo)))):Gr("div",{style:{paddingTop:"16px",paddingBottom:"16px",textAlign:"center"}},void 0,Object(rt.a)(Nr({},Or.a.noActivity))))))})),$r=r("2c06ee7354682514cfe1"),zr=r.n($r);function Br(e,t,r,n){Hr||(Hr="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Hr,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function Yr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Zr(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 Zr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(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}var Xr=Br(Gt,{}),Kr=Br(Wr,{}),Qr=Br(yr,{}),qr=Br(Je["default"],{});var Jr,en=Object(R.memo)((function(e){var t=e.userInfo,r=e.userIdLogin,n=Ke()({projectName:"common",featureName:"media",key:"video"}),o=Object(le.useSelector)(Ct()).isLoading,a=Object(le.useSelector)(ur()).isLoading,i=N()(t,"fullName",""),c=N()(t,"cropAvatarWithFrame",""),u=N()(t,"birthday",""),l=N()(t,"userId",""),s=function(){if(!qe()(new Date(u)))return!1;var e=new Date,t=new Date(u);return e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}(),d=Yr(Object(R.useState)(!1),2),p=d[0],b=d[1];return Object(R.useEffect)((function(){var e=zr()([o,a],(function(e){return!1===e}));b(e)}),[o,a]),V.a.createElement(V.a.Fragment,null,!p&&Br(f.a,{container:!0,spacing:2},void 0,Br(f.a,{item:!0,xs:12},void 0,Br(tt.a,{isLoading:!p}))),Br("div",{style:{display:"".concat(p?"block":"none")}},void 0,Br(He.a,{},void 0,r===l&&s&&Br(et.a,{avatar:c,fullname:i}),Xr,n&&Kr,Qr,qr)))})),tn=r("91c074dc5d24616f77ce"),rn=r("d7ac8c39d76d518870f7"),nn=r("41397800910c96ded400"),on=r("95068dfe8c536afd2968"),an=r("7d2ef944336c6961f8c8"),cn=r("7044c789cc9b6cdf3d71"),un=r.n(cn),ln=r("865097a3d890bf28732d"),fn=r("d75aad1efe48f684d41e");function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dn(){return(dn=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}).apply(this,arguments)}function pn(e,t,r,n){Jr||(Jr="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:Jr,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(r),!0).forEach((function(t){yn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return gn(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 gn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gn(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}r.d(t,"PersonalTimeline",(function(){return On}));var vn=pn(an.a,{componentUse:"SidebarLeft",path:"components/3-organisms/Sidebar/Userwall/SidebarLeft"},void 0,pn(Ze,{}));function On(e){var t=Object(le.useDispatch)(),r=un()(),n=e.userInfo,a=e.userIdLogin,i=a===N()(n,"userId"),c=mn(Object(R.useState)(!1),2),u=c[0],l=c[1],f=mn(Object(R.useState)(!1),2),s=f[0],d=f[1],p=mn(Object(R.useState)(!1),2),b=p[0],h=p[1],y=mn(Object(R.useState)(),2),m=y[0],g=y[1],v=mn(Object(R.useState)(!1),2),O=v[0],w=v[1],j=mn(Object(R.useState)({postNormalContent:"",postExpContent:""}),2),S=j[0],P=j[1],E=function(e){var t=e.userAction,r=e.action,n=e.post,o=e.postType,a=e.shareInfo,i={};switch(i.action=r,r){case fn.m:i.post=n,i.userAction=t,i.postType=o;break;case fn.e:i.postType=o,i.userAction=t;break;case fn.i:i.shareInfo=N()(a,"shareInfo",a)}g(i),w(!0)},x=function(e){N()(m,"postType","")===fn.lb||N()(m,"postType","")===fn.mb?P(hn(hn({},S),{},{postNormalContent:e||""})):P(hn(hn({},S),{},{postExpContent:e||""}))},L=function(e){x(e||""),g(),w(!1)};return pn(tn.a,{mainGridProps:{style:{"--spacing-top":"".concat(r.spacing(2),"px")}},sidebarLeft:vn,sidebarRight:pn(an.a,{componentUse:"SidebarRight",path:"components/3-organisms/Sidebar/Userwall/SidebarRight"},void 0,pn(en,{userIdLogin:a,userInfo:n})),mainContent:V.a.createElement(V.a.Fragment,null,i&&pn("div",{style:{marginBottom:"16px"}},void 0,pn(rn.a,{},void 0,pn(o.a,{isVer2:!0,openPostEditor:E,postNormalContent:S.postNormalContent,postExpContent:S.postExpContent,avatar:N()(n,"cropAvatar"),isActived:N()(n,"isApproval"),isCreatingPost:N()(s,"status",!1),typeCreatePost:N()(s,"action",""),isOpenModalEditor:u}))),pn(rn.a,{},void 0,pn(nn.a,{scope:{name:"userwall",id:N()(n,"userId",""),alias:N()(n,"alias","")},callbacksFeedContainer:{setIsHideModalPostEditor:h},handleOpenPostEditor:E})),pn(rn.a,{},void 0,!b&&V.a.createElement(on.a,dn({isOpen:O,isShowShortEditor:!1,onClose:L},m,{isVer2:!0,callbacks:{createPostCallback:function(e,r,n){"create"!==r&&"share"!==r||t(Object(ln.h)(e,n)),"update"===r&&t(Object(ln.n)(e)),L()},handleChangeContentShortPost:x,setIsCreatingPost:d,setIsOpenModalEditor:l}}))))})}t["default"]=Object(R.memo)(On)},"4f9242e8db9aababa99c":function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=(r("8a2d1b95e05b6a321e74"),r("49986b501476c33b42de")),c=r.n(i),u=r("9f48d7eb9d3ec9811975"),l=r("55f20b32a59f966d9dd6"),f=r("1030f45fc7c671142519"),s=r("d5f0084b1c185be2c0b2"),d=["type"];function p(){return(p=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}).apply(this,arguments)}function b(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function h(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var y=c()((function(){return{root:{justifyContent:"flex-start"}}})),m=b(u.a,{color:"inherit"});function g(e){var t={work:Object(l.a)(s.a.work),edu:Object(l.a)(s.a.edu),univer:Object(l.a)(s.a.univer),high:Object(l.a)(s.a.high),live:Object(l.a)(s.a.live),yourCity:Object(l.a)(s.a.yourCity),hometown:Object(l.a)(s.a.hometown),phone:Object(l.a)(s.a.phone),address:Object(l.a)(s.a.address),email:Object(l.a)(s.a.email),socialLink:Object(l.a)(s.a.socialLink),birthday:Object(l.a)(s.a.birthday),gender:Object(l.a)(s.a.gender),relationship:Object(l.a)(s.a.relationship),familyMember:Object(l.a)(s.a.familyMember),yourIntro:Object(l.a)(s.a.yourIntro),nickname:Object(l.a)(s.a.nickname),favoriteQuote:Object(l.a)(s.a.favoriteQuote)},r=y(),n=e.type,o=h(e,d);return a.a.createElement(f.a,p({color:"primary",size:"large",fullWidth:!0,startIcon:m,className:r.root},o),b("span",{},void 0,t[n]||Object(l.a)(s.a.info)))}},"4ff9bfeb5065bb5912c7":function(e,t,r){"use strict";var n=r("6938d226fd372a75cbf9"),o=(r("8a2d1b95e05b6a321e74"),r("8af190b70a6bc55c6f1b")),a=r.n(o),i=r("dd2a631eb718be5bf266"),c=r("b7f5aa68283ad21ea842"),u=r("5744dd475a4940dd3126"),l=r("185339ee939e1e9ef16c"),f=r("bfb211bb4f850fa3f52c"),s=r("f51dbb83c796766fbbaf"),d=r("bb334dbae138f3b590dd"),p=r("c9f668d870009c26f861"),b=r("38748638497270348dce"),h=r("8815ea4f4837487beb39"),y=r("29d73f289b08ec0d2e39"),m=r("c688ba0668ac8f636a4e"),g=r("09662bf62970c207db6f"),v=r.n(g),O=r("536a44cb13a941af5fe8"),w=r("ab039aecd4a1d4fedc0e"),j=r("55f20b32a59f966d9dd6"),S=r("e141b7784e51d023887d"),P=r("99b06565afc2c5b11e0f"),E=r("55a88d154f40eeb3e0e7"),x=r("d9553e8028f823710277"),L=r("a1cf5d6fa4ed65a6ddd5"),k=r.n(L),A=r("ff287e4203ba67f8dff7"),M=r.n(A),C=r("e2c7e6633c04cafaa8ce"),I=r.n(C),_=r("f3b0ff1628e56352bcbf"),T=r.n(_),F=r("d75aad1efe48f684d41e"),D=r("b2be1fe3bb2e4fff30b3"),N=["children","placeholder","color"];function U(){return(U=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}).apply(this,arguments)}function G(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var R=Object(n.styled)("div")((function(e){var t=e.theme;return{fontSize:"inherit",fontWeight:t.typography.fontWeightMedium,outline:"none","&:empty:after":{content:"attr(aria-label)",color:t.palette.text.secondary},overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,wordBreak:"break-word"}}),{name:"StyledTextPlaceholder"});function V(e){var t=e.children,r=e.placeholder,n=e.color,o=G(e,N);return a.a.createElement(R,U({color:n,suppressContentEditableWarning:!0,spellCheck:!0,"aria-label":""!==r?r:"Ha ha, h\xf4m nay b\u1ea1n th\u1ebf n\xe0o?"},o),t)}V.defaultProps={color:"inherit"};var H,W="app.components.ShortPostEditor",$=Object(w.defineMessages)({placeholderNormal:{id:"".concat(W,".placeholderNormal"),defaultMessage:"Haha, H\xf4m nay b\u1ea1n th\u1ebf n\xe0o?"},placeholderExperience:{id:"".concat(W,".placeholderExperience"),defaultMessage:"Chia s\u1ebb tr\u1ea3i nghi\u1ec7m c\u1ee7a b\u1ea3n th\xe2n!"},placeholderSiteCommunity:{id:"".concat(W,".placeholderSiteCommunity"),defaultMessage:"C\u1eadp nh\u1eadt th\xf4ng tin m\u1edbi nh\u1ea5t..."},titleHeaderNormal:{id:"".concat(W,".titleHeaderNormal"),defaultMessage:"T\u1ea1o b\xe0i vi\u1ebft"},titleHeaderExp:{id:"".concat(W,".titleHeaderExp"),defaultMessage:"Chia s\u1ebb tr\u1ea3i nghi\u1ec7m"},btnMedia:{id:"".concat(W,".btnMedia"),defaultMessage:"\u1ea2nh/video"},btnMediaImage:{id:"".concat(W,".btnMediaImage"),defaultMessage:"\u1ea2nh"},btnCheckin:{id:"".concat(W,".btnCheckin"),defaultMessage:"\u0110\u1ecba \u0111i\u1ec3m"},btnFeeling:{id:"".concat(W,".btnFeeling"),defaultMessage:"C\u1ea3m x\xfac"},isCreatingPost:{id:"".concat(W,".isCreatingPost"),defaultMessage:"\u0110ang ta\u0323o ba\u0300i vi\xea\u0301t ...."},isUpdatingPost:{id:"".concat(W,".isUpdatingPost"),defaultMessage:"\u0110ang c\xe2\u0323p nh\xe2\u0323t ba\u0300i vi\xea\u0301t ...."}});function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t,r,n){H||(H="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var u in o)void 0===t[u]&&(t[u]=o[u]);else t||(t=o||{});return{$$typeof:H,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function X(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===z(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,o=f}finally{try{if(!u&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Q(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 Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(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}var q="#5DD2FC",J="#FF7E7E",ee="#FFB321",te=Object(n.styled)(h.a)((function(e){var t=e.theme;return{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,minHeight:t.spacing(5),alignItems:"flex-end",padding:t.spacing(0,.5)}}),{name:"StyledComposePlaceholderToolbar"}),re=Object(n.styled)(f.a)((function(e){return{padding:e.theme.spacing(1.5,2)}}),{name:"StyledComposePlaceholderActions"}),ne=Object(n.styled)(D.a)((function(e){var t=e.theme;return{color:t.palette.text.primary,backgroundColor:"light"===t.palette.type?t.palette.grey[100]:t.palette.background["default"]}}),{name:"StyledButtonAction"}),oe=Object(n.styled)(u.a)((function(e){var t=e.theme,r=e.active;return{textTransform:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0,padding:t.spacing(.75,2.5),backgroundColor:"true"===r&&t.palette.background.paper,color:"true"===r?t.palette.text.primary:"inherit",fontWeight:"true"===r&&t.typography.fontWeightBold,"&:hover":{backgroundColor:"true"===r?t.palette.background["default"]:t.palette.primary.dark}}}),{name:"StyledComposeTab"}),ae=B(O.a,{}),ie=B(d.a,{});t.a=function(e){var t,r=e.avatar,n=e.postType,u=void 0===n?"all":n,f=e.postNormalContent,d=void 0===f?"":f,h=e.postExpContent,g=void 0===h?"":h,O=e.openPostEditor,L=e.postOwner,A=e.isVer2,C=void 0!==A&&A,_=e.isActived,D=void 0!==_&&_,N=e.displayName,U=e.isCreatingPost,G=e.typeCreatingPost,R=e.isOpenModalEditor,H=e.isSite,W=e.isLogin,z=void 0!==W&&W,Y=e.openModalLogin,X=e.userId,Q=K(Object(o.useState)(!(u===(C?F.kb:F.jb))),2),ce=Q[0],ue=Q[1],le=!1===v()({projectName:"common",featureName:"media",key:"video"}),fe=I()(["celebrityPage","organizationPage"],M()(L,"type"))||H,se=ce?d:g,de=function(){!z&&T()(Y)?Y():(ce||ue(!0),"function"===typeof O&&O({postType:C?F.mb:F.lb,userAction:F.g,action:F.e}))},pe=function(){!z&&T()(Y)?Y():(ce&&ue(!1),"function"===typeof O&&O({postType:C?F.kb:F.jb,userAction:F.g,action:F.e}))},be=function(e){if(!z&&T()(Y))Y();else switch(e){case"media":O({postType:C?F.mb:F.lb,userAction:F.a,action:F.e});break;case"location":O({postType:C?F.mb:F.lb,userAction:F.b,action:F.e});break;case"feeling":O({postType:C?F.mb:F.lb,userAction:F.c,action:F.e})}},he="update"===G?a.a.createElement(w.FormattedMessage,$.isUpdatingPost):a.a.createElement(w.FormattedMessage,$.isCreatingPost);return B(l.a,{},void 0,U&&!R?B(s.a,{},void 0,B(p.a,{variant:"body1",gutterBottom:!0},void 0,he),ae):a.a.createElement(a.a.Fragment,null,B(te,{variant:"dense",disableGutters:!0},void 0,"all"===u||u===(C?F.mb:F.lb)?B(oe,{active:ce.toString(),onClick:de},void 0,Object(j.a)(Z({},$.titleHeaderNormal))):"","all"===u||u===F.jb||u===F.kb?B(oe,{active:(!ce).toString(),onClick:pe},void 0,Object(j.a)(Z({},$.titleHeaderExp))):""),B(s.a,{},void 0,B(b.a,{container:!0,spacing:2,alignItems:"center"},void 0,B(b.a,{item:!0},void 0,B(x.a,{to:Object(c.a)(i.a.USER_WALL_TIMELINE,{userId:X})},void 0,B(y.a,{src:r,isActived:D,avatarProps:{alt:Object(j.a)(Z({},m.a.avatarAlt),{name:N||""})||"",thumbConf:{width:40},imgProps:{width:40,height:40}}}))),B(b.a,{item:!0,xs:!0,onClick:ce?de:pe},void 0,B(V,{placeholder:(t=se?se.replace(/<br>/g,"").trim():"",k()(t)||k()(t)||"<p>"!==t.slice(0,3)||"</p>"!==t.slice(-4)?k()(t)?t=ce?fe?Object(j.a)(Z({},$.placeholderSiteCommunity)):Object(j.a)(Z({},$.placeholderNormal)):Object(j.a)(Z({},$.placeholderExperience)):t:(t="".concat(t.substring(3,t.length-4))).replace(F.Cb,""))})))),ce?a.a.createElement(a.a.Fragment,null,ie,B(re,{},void 0,B(b.a,{container:!0,spacing:1,alignItems:"center"},void 0,B(b.a,{item:!0,xs:6,sm:!0},void 0,B(ne,{fullWidth:!0,startIcon:B(S.a,{style:{color:q}}),onClick:function(){return be("media")}},void 0,Object(j.a)(Z({},$[le?"btnMediaImage":"btnMedia"])))),B(b.a,{item:!0,xs:6,sm:!0},void 0,B(ne,{fullWidth:!0,startIcon:B(P.a,{style:{color:J}}),onClick:function(){return be("location")}},void 0,Object(j.a)(Z({},$.btnCheckin)))),B(b.a,{item:!0,xs:6,sm:!0},void 0,B(ne,{fullWidth:!0,startIcon:B(E.a,{style:{color:ee}}),onClick:function(){return be("feeling")}},void 0,Object(j.a)(Z({},$.btnFeeling))))))):""))}},"70a5fb4220f4e33010bc":function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("1231c8dbfe54b0845df9"),c=r.n(i);function u(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var l=u("g",{id:"Group_27936","data-name":"Group 27936",transform:"translate(12659 11725)"},void 0,u("rect",{id:"Rectangle_4413","data-name":"Rectangle 4413",width:"24",height:"24",transform:"translate(-12659 -11725)",fill:"none"}),u("g",{id:"Vector_Smart_Object","data-name":"Vector Smart Object",transform:"translate(-12656 -11721.204)"},void 0,u("g",{id:"Group_27069","data-name":"Group 27069",transform:"translate(0 0.204)"},void 0,u("g",{id:"Rectangle_192","data-name":"Rectangle 192",transform:"translate(0 3.443)"},void 0,u("path",{id:"Path_20122","data-name":"Path 20122",d:"M13.171,17.348H1.1a1.1,1.1,0,0,1-1.1-1.1V6.158a1.1,1.1,0,0,1,1.1-1.1H13.171a1.1,1.1,0,0,1,1.1,1.1V16.251A1.1,1.1,0,0,1,13.171,17.348ZM1.1,5.792a.366.366,0,0,0-.366.366V16.251a.366.366,0,0,0,.366.366H13.171a.367.367,0,0,0,.366-.366V6.158a.367.367,0,0,0-.366-.366Z",transform:"translate(0 -5.061)"})),u("g",{id:"Path_19387","data-name":"Path 19387",transform:"translate(13.51 4.983)"},void 0,u("path",{id:"Path_20123","data-name":"Path 20123",d:"M22.922,16.4a.368.368,0,0,1-.139-.027l-3.759-1.541a.366.366,0,0,1-.226-.338V9.1a.366.366,0,0,1,.226-.338l3.759-1.541a.366.366,0,0,1,.5.338v8.475a.365.365,0,0,1-.162.3A.371.371,0,0,1,22.922,16.4Zm-3.393-2.152,3.027,1.242V8.1l-3.027,1.24Z",transform:"translate(-18.798 -7.191)"})),u("g",{id:"Line_91","data-name":"Line 91",transform:"translate(0.756 0.004)"},void 0,u("path",{id:"Path_20124","data-name":"Path 20124",d:"M8.176.933H1.407a.361.361,0,0,1,0-.723H8.176a.361.361,0,0,1,0,.723Z",transform:"translate(-1.046 -0.21)"})),u("g",{id:"Line_92","data-name":"Line 92",transform:"translate(7.505)"},void 0,u("path",{id:"Path_20125","data-name":"Path 20125",d:"M15.324,4.4a.362.362,0,0,1-.223-.076L10.589.86a.365.365,0,1,1,.445-.58l4.513,3.466a.366.366,0,0,1-.223.656Z",transform:"translate(-10.446 -0.204)"})))));function f(e){return a.a.createElement(c.a,e,l)}},"7988254b784de0e9fbe3":function(e,t,r){"use strict";var n=r("4a683f0a5e64e66a8eb9"),o=r.n(n),a=r("c9f668d870009c26f861"),i=o()((function(e){return{root:{position:"relative",zIndex:0,"&:before":{content:'""',width:e.spacing(3),height:e.spacing(3),backgroundColor:"light"===e.palette.type?"rgba(194, 249, 255, 1)":e.palette.action.focus,borderRadius:"50%",position:"absolute",top:0,left:-e.spacing(1),bottom:0,zIndex:-1}}}}),{name:"AtomTypographyWithCircle"})(a.a);t.a=i},"8ad7de11c99efb76d567":function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return v}));var n=r("cf26932b02b02efcc9b4"),o=r.n(n),a=r("07e1b6f487800450ef49"),i=r.n(a),c=r("6ce736c9458edc34ebeb"),u=r.n(c),l=r("3bda5f9ffd0c3c9904bf"),f=r.n(l),s=r("8e55cc070aae49a69fe9"),d=r.n(s),p=r("0906dffb33e3ccf67736"),b=r.n(p),h=r("181c5334c4d1088ba023"),y=r("9935bc7a27b1daaec5a2"),m=r.n(y),g=function(e,t){var r=Object(h.zonedTimeToUtc)(),n=f()(new Date,"MM/yyyy"),a=u()(n,"/"),c=u()(e,"-"),l=o()(new Date(c[0],c[1]),new Date(a[1],a[0])),s=1===l?new Date(e):new Date,p=Object(h.utcToZonedTime)(m()(s,{day:2}),r),y=b()(p).toISOString(),g=d()(p).toISOString();return 1===l?t?{fromDate:y,toDate:g}:{date:e,fromDate:f()(i()(b()(new Date(c[0],c[1])),1),"yyyy-MM-dd"),toDate:f()(d()(new Date(c[0],c[1])),"yyyy-MM-dd")}:t?{fromDate:Object(h.utcToZonedTime)(s,r).toISOString(),toDate:g}:{date:e,fromDate:f()(new Date,"yyyy-MM-dd"),toDate:f()(d()(new Date),"yyyy-MM-dd")}};function v(e){for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<e;n+=1){var o=Math.floor(Math.random()*r.length);t+=r.charAt(o)}return t}},"9f48d7eb9d3ec9811975":function(e,t,r){"use strict";var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("1231c8dbfe54b0845df9"),c=r.n(i);function u(){return(u=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}).apply(this,arguments)}function l(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),n||(n=o.createElement("g",{"data-name":"Group 28560",fill:"none"},o.createElement("path",{"data-name":"Rectangle 4657",d:"M0 0h24v24H0z"}),o.createElement("g",{"data-name":"Group 28606",stroke:"currentColor"},o.createElement("g",{"data-name":"Ellipse 989",transform:"translate(3 3)"},o.createElement("circle",{cx:9,cy:9,r:9,stroke:"none"}),o.createElement("circle",{cx:9,cy:9,r:8.5})),o.createElement("g",{"data-name":"Group 28559",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("path",{"data-name":"Line 36",d:"M12.5 8v8.382"}),o.createElement("path",{"data-name":"Line 37",d:"M17 12H8"}))))))}function f(){return(f=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}).apply(this,arguments)}t.a=function(e){return a.a.createElement(c.a,f({component:l},e))}},ac8caae976e01be23c04:function(e,t,r){"use strict";var n=r("4a683f0a5e64e66a8eb9"),o=r.n(n),a=r("a6f2dec15e322112205e"),i=r.n(a).a,c=o()((function(e){return{root:{width:42,height:26,padding:0,margin:e.spacing(1)},switchBase:{padding:1,"&$checked":{transform:"translateX(16px)",color:e.palette.common.white,"& + $track":{backgroundColor:e.palette.primary.main,opacity:1,border:"none"}}},thumb:{width:24,height:24},track:{borderRadius:13,border:"1px solid ".concat(e.palette.grey[400]),backgroundColor:e.palette.grey[50],opacity:1,transition:e.transitions.create(["background-color","border"])},checked:{}}}),{name:"AtomSwitchIOS"})(i);t.a=c},b2970d5f2d3f3208d980:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("8af190b70a6bc55c6f1b"),o=r.n(n),a=(r("8a2d1b95e05b6a321e74"),r("25237658ed9cd2890562")),i=r("ac8caae976e01be23c04");function c(){return(c=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}).apply(this,arguments)}function u(e){var t=e.name,r=e.label,n=e.switchProps,u=e.formControlLabelProps;return o.a.createElement(a.a,c({control:o.a.createElement(i.a,c({name:t},n)),label:r},u))}},be542f7403ecfb7b08fe:function(e,t,r){"use strict";var n=r("ab039aecd4a1d4fedc0e"),o="app.containers.WidgetVideo";t.a=Object(n.defineMessages)({title:{id:"".concat(o,".title"),defaultMessage:"Video"},btnAddVideo:{id:"".concat(o,".btnAddVideo"),defaultMessage:"Th\xeam video"},noActivity:{id:"".concat(o,".noActivity"),defaultMessage:"Kh\xf4ng c\xf3 ho\u1ea1t \u0111\u1ed9ng n\xe0o"}})},c7052349c842c9cb4ae7:function(e,t,r){"use strict";r.r(t);var n,o=r("84b03cceffe1d72bc333"),a=r.n(o),i=r("55f20b32a59f966d9dd6"),c=r("38748638497270348dce"),u=r("2f488063efa25c815bac"),l=r("c9f668d870009c26f861"),f=r("9afe7c649c1a42a68fe0"),s=r("57a33c9463c4e8390feb"),d=r("3dde4251a4e36fb3d2d7"),p=r.n(d),b=r("e2c7e6633c04cafaa8ce"),h=r.n(b),y=r("8af190b70a6bc55c6f1b"),m=r("ab4cb61bcb2dc161defb"),g=r("ab039aecd4a1d4fedc0e"),v="app.components.FooterWidget",O=Object(g.defineMessages)({introduce:{id:"".concat(v,".introduce"),defaultMessage:"Gi\u1edbi thi\u1ec7u"},privacy:{id:"".concat(v,".privacy"),defaultMessage:"Quy\u1ec1n ri\xeang t\u01b0"},terms:{id:"".concat(v,".terms"),defaultMessage:"\u0110i\u1ec1u kho\u1ea3n"},cookies:{id:"".concat(v,".cookies"),defaultMessage:"Cookies"},recruitment:{id:"".concat(v,".recruitment"),defaultMessage:"Tuy\u1ebfn d\u1ee5ng"},helpCenter:{id:"".concat(v,".helpCenter"),defaultMessage:"H\u1ed7 tr\u1ee3"},affiliate:{id:"".concat(v,".affiliate"),defaultMessage:"Ti\u1ebfp th\u1ecb li\xean k\u1ebft"},allRightReserved:{id:"".concat(v,".allRightReserved"),defaultMessage:"\u0110\xe3 \u0111\u0103ng k\xfd b\u1ea3n quy\u1ec1n"}});function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===w(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E="https://help.hahalolo.com";t["default"]=Object(m.compose)(y.memo)((function(){var e=window.intl.locale,t=[{path:"".concat("https://www.hahalolo.com").concat(a()("/@5c35fde0d577a740afc809b5")),label:"introduce",target:"_blank"},{path:"".concat(E,"/hc/").concat(e,"/articles/360036293871"),label:"privacy",target:"_blank"},{path:"".concat(E,"/hc/").concat(e,"/articles/360036291411"),label:"terms",target:"_blank"},{path:"".concat(E,"/hc/").concat(e,"/articles/360035943132"),label:"cookies",target:"_blank"},{path:"https://tuyendung.hahalolo.com",label:"recruitment",target:"_blank"},{path:"".concat(E,"/hc/").concat(e),label:"helpCenter",target:"_blank"},{path:"https://affiliate.hahalolo.com",label:"affiliate",target:"_blank"}];return j("div",{},void 0,j(f.a,{},void 0,j(s.a,{},void 0,j(c.a,{container:!0,spacing:1},void 0,p()(t,(function(e,t){return j(c.a,{item:!0},t,j("div",{style:{marginRight:"16px"}},void 0,j(l.a,{variant:"subtitle2"},void 0,j(u.a,{color:"textSecondary",href:e.path,rel:h()(e.path,E)?"nofollow":"noopener",target:e.target||undefined},void 0,Object(i.a)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},O[e.label]))))))}))),j("div",{style:{textAlign:"center",paddingTop:"16px"}},void 0,j(l.a,{variant:"caption",color:"textSecondary"},void 0,"\xa9 Hahalolo 2017. ",Object(i.a)(O.allRightReserved))))))}))},d71613cedb1e81659e63:function(e,t,r){"use strict";var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("1231c8dbfe54b0845df9"),c=r.n(i);function u(){return(u=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}).apply(this,arguments)}function l(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),n||(n=o.createElement("g",{"data-name":"Group 29053"},o.createElement("path",{"data-name":"Rectangle 4400",fill:"none",d:"M0 0h24v24H0z"}),o.createElement("g",{stroke:"currentColor",strokeWidth:.2},o.createElement("path",{"data-name":"Path 20885",d:"M17.821 10.254a5.109 5.109 0 011.125-3.266.312.312 0 00-.036-.4c-.463-.462-.749-.754-.949-.958a12.7 12.7 0 00-.561-.552.313.313 0 00-.415 0 11.976 11.976 0 00-3.854 9.629 4.508 4.508 0 004.434 4.413 4.435 4.435 0 00.257-8.863zm-.257 8.234a3.9 3.9 0 01-3.811-3.833h0a11.422 11.422 0 013.433-8.921c.086.085.184.184.328.331.174.177.412.419.772.781-1.377 2.121-1.117 3.632-1 3.849a.323.323 0 00.281.172 3.81 3.81 0 010 7.621z"}),o.createElement("path",{"data-name":"Path 20886",d:"M6.723 10.255a5.1 5.1 0 011.124-3.267.312.312 0 00-.036-.4c-.462-.462-.748-.753-.948-.957-.265-.27-.386-.393-.562-.553a.314.314 0 00-.415 0 11.979 11.979 0 00-3.856 9.627h0a4.509 4.509 0 004.435 4.413 4.435 4.435 0 00.257-8.863zm-.258 8.233a3.9 3.9 0 01-3.812-3.828h0a11.425 11.425 0 013.434-8.921c.086.085.184.185.329.332.174.177.412.419.771.78-1.377 2.121-1.117 3.632-1 3.849a.324.324 0 00.281.173 3.81 3.81 0 110 7.621z"})))))}function f(){return(f=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}).apply(this,arguments)}t.a=function(e){return a.a.createElement(c.a,f({component:l},e))}},e36e4eb7a9dfbf5dfb40:function(e,t,r){"use strict";var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("1231c8dbfe54b0845df9"),c=r.n(i);function u(){return(u=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}).apply(this,arguments)}function l(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),n||(n=o.createElement("g",{"data-name":"Group 28491"},o.createElement("path",{"data-name":"Rectangle 4527",fill:"none",d:"M0 0h24v24H0z"}),o.createElement("g",{"data-name":"Group 28489"},o.createElement("path",{"data-name":"Path 20400",d:"M17.968 21H6.033a1.624 1.624 0 01-1.615-1.63V9.931a.562.562 0 111.123 0v9.439a.494.494 0 00.491.5h11.936a.494.494 0 00.491-.5V9.931a.562.562 0 111.123 0v9.439A1.624 1.624 0 0117.968 21z"}),o.createElement("path",{"data-name":"Path 20401",d:"M20.438 11.783a.558.558 0 01-.4-.166l-7-7.052a1.47 1.47 0 00-2.088 0l-7 7.052a.559.559 0 01-.8 0 .57.57 0 010-.8l7-7.052a2.59 2.59 0 013.679 0l7 7.052a.57.57 0 010 .8.558.558 0 01-.4.166z"}),o.createElement("path",{"data-name":"Path 20402",d:"M14.265 21H9.729a.567.567 0 01-.567-.567v-5.032a1.774 1.774 0 011.772-1.772h2.131a1.774 1.774 0 011.772 1.772v5.032a.567.567 0 01-.572.567zm-3.969-1.134h3.4v-4.465a.639.639 0 00-.638-.638h-2.126a.639.639 0 00-.638.638z"})))))}function f(){return(f=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}).apply(this,arguments)}t.a=function(e){return a.a.createElement(c.a,f({component:l},e))}},e476818709bf621c37a9:function(e,t,r){"use strict";var n,o=r("6a5ae948008f5246b7bd"),a=r("f24cee38b44e88e91732"),i=r("c9f668d870009c26f861"),c=r("4253386177fb5522c73f"),u=r("17abeacf834dff3c5417"),l=r("a12066e27e1a21338495"),f=r("23e0b687f07c7cc60fb7"),s=r("ab544d1dee66bd380dec"),d=r("81c49aec357d7c94f300"),p=r("3d56bd3e5c9c2b465e47"),b=r("8388d360f7978cc2b20d"),h=r("e87e33fe733922fd8df8"),y=r("6ee7573060c5e56e1662"),m=r("ff287e4203ba67f8dff7"),g=r.n(m),v=r("cd51a03b6ebe80ba7a96"),O=r.n(v),w=(r("8a2d1b95e05b6a321e74"),r("8af190b70a6bc55c6f1b")),j=r.n(w),S=r("d7dd51e1bf6bfc2c9c3d");function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function x(e){return function(e){if(Array.isArray(e))return C(e)}(e)||I(e)||M(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 L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===P(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e){return function(e){if(Array.isArray(e))return e}(e)||I(e)||M(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){if(e){if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}function C(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 I(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t.a=Object(w.memo)((function(e){var t=function(e){return new l.StaticUrl({path:"common/defaults/"}).get(e)},r=e.when,n=e.name,m=e.listVideo,v=g()(e,"thumb",""),w=A(n?O()(n,".")>-1?n.substring(0,O()(n,".")):n:""),P=w[0],M=w.slice(1),C=P?"".concat(P.toUpperCase()).concat(M.join("")):"",I=Object(S.useDispatch)();return j.a.createElement(j.a.Fragment,null,E(o.a,{disableGutters:!0,color:"inherit",underline:"none",onClick:function(){var t=Object(h.e)(m).map((function(t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t);return g()(t,"id")===g()(e,"id")&&(r.selected=!0),r}));I(Object(y.b)(!0,{listMedia:x(t),feature:{showAllInformation:!0,mentionOnImage:!0,fullscreen:!0}}))},style:{cursor:"pointer"}},void 0,E(a.a,{},void 0,E(s.a,{containerProps:{spacing:1},grids:[{children:E(d.a,{media:-1!==v.indexOf("hahalolo.com")?E(b.a,{imgConf:{Component:u.a,src:v,srcAttr:"src",defaultImage:t("noThumbVideo.svg")},ratio:4/3,imageProps:{width:124,height:89},thumbConf:{width:320}}):E(p.a,{imgConf:{Component:u.a,src:v,srcAttr:"src",defaultImage:t("noThumbVideo.svg")},ratio:4/3,imageProps:{width:124,height:89}}),duration:!0}),props:{xs:5}},{children:j.a.createElement(j.a.Fragment,null,E(c.a,{line:3,variant:"subtitle2"},void 0,E("b",{},void 0,C)),E(i.a,{variant:"body2",color:"textSecondary"},void 0,f.a.formatDateDns(new Date(r)))),props:{xs:7}}]}))))}))},ede546bbfbe7bc8ceb16:function(e,t,r){"use strict";var n,o=r("91baf7d955899ecbfee7"),a=r("8388d360f7978cc2b20d"),i=r("a12066e27e1a21338495"),c=r("6938d226fd372a75cbf9"),u=r("e87e33fe733922fd8df8"),l=r("6ee7573060c5e56e1662"),f=r("ff287e4203ba67f8dff7"),s=r.n(f),d=r("8af190b70a6bc55c6f1b"),p=r.n(d),b=r("d7dd51e1bf6bfc2c9c3d");function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,r,o){n||(n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103);var a=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var c=new Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}if(t&&a)for(var l in a)void 0===t[l]&&(t[l]=a[l]);else t||(t=a||{});return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function m(e){return function(e){if(Array.isArray(e))return g(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 g(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 g(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 g(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 v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object(c.styled)("video")((function(e){var t=e.theme;return{display:"block",width:"100%",height:e.size||"100%",objectFit:"cover",objectPosition:"center",cursor:"pointer",backgroundColor:t.palette.common.white}}),{name:"styledVideo"});t.a=Object(d.memo)((function(e){var t=function(e){return new i.StaticUrl({path:"common/defaults/"}).get(e)},r=s()(e,"path",s()(e,"thumb","")),n=2===s()(e,"type",1),c=Object(b.useDispatch)(),f=function(){var t=s()(e,"listPhoto",[]),r=Object(u.e)(t).map((function(t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t);return s()(t,"id")===s()(e,"id")&&(r.selected=!0),r}));c(Object(l.b)(!0,{listMedia:m(r),feature:{showAllInformation:!0,mentionOnImage:!0,fullscreen:!0}}))};return p.a.createElement(p.a.Fragment,null,-1!==r.indexOf("hahalolo.com")?y(a.a,{imgConf:{Component:o.a,src:r,srcAttr:"src",defaultImage:t("noThumbImage.svg")},ratio:1,thumbConf:{width:128},imgCoverProps:{onClick:f}}):n&&y(o.a,{ratio:1,isVideo:!0,src:""!==r?r:t("noThumbVideo.svg"),imgCoverProps:{onClick:f},imageProps:{autoPlay:!0,loop:!0,muted:!0}}))}))},f42f1632cc1cd5dc8d19:function(e,t,r){"use strict";var n,o=r("8af190b70a6bc55c6f1b"),a=r.n(o),i=r("1231c8dbfe54b0845df9"),c=r.n(i);function u(){return(u=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}).apply(this,arguments)}function l(e){return o.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),n||(n=o.createElement("g",{"data-name":"Group 29055"},o.createElement("path",{"data-name":"Rectangle 4586",fill:"none",d:"M0 0h24v24H0z"}),o.createElement("g",{"data-name":"Group 29054"},o.createElement("path",{"data-name":"Path 20893",d:"M20.11 6.583h-3.062v-2.2A1.384 1.384 0 0015.667 3H8.333a1.384 1.384 0 00-1.381 1.383v2.2H3.89A1.892 1.892 0 002 8.473v10.564a1.892 1.892 0 001.889 1.892h16.222A1.892 1.892 0 0022 19.037V8.473a1.892 1.892 0 00-1.89-1.89zm-12.377-2.2a.6.6 0 01.6-.6h7.334a.6.6 0 01.6.6v2.2h-1.014V5.19a.391.391 0 00-.391-.391H9.137a.391.391 0 00-.391.391v1.394H7.733zm1.795 2.2v-1h4.944v1zm-6.747 1.89A1.11 1.11 0 013.89 7.364h16.22a1.11 1.11 0 011.109 1.109v3.623a2.188 2.188 0 01-2.186 2.186h-.42v-1.657a.391.391 0 00-.391-.391h-2.378a.391.391 0 00-.391.391v1.657H8.546v-1.657a.391.391 0 00-.391-.391H5.778a.391.391 0 00-.391.391v1.657h-.42a2.188 2.188 0 01-2.186-2.186zm15.05 4.542v2.923h-1.6v-2.922zm-10.067 0v2.923h-1.6v-2.922zm13.454 6.022a1.11 1.11 0 01-1.108 1.11H3.889a1.11 1.11 0 01-1.108-1.11V14.1a2.96 2.96 0 002.186.963h.42v1.266a.391.391 0 00.391.391h2.378a.391.391 0 00.391-.391v-1.266h6.907v1.266a.391.391 0 00.391.391h2.378a.391.391 0 00.391-.391v-1.266h.42a2.96 2.96 0 002.186-.963v4.937z"})))))}function f(){return(f=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}).apply(this,arguments)}t.a=function(e){return a.a.createElement(c.a,f({component:l},e))}},f4bf31a67f252e210f6e:function(e,t,r){"use strict";var n=r("ab039aecd4a1d4fedc0e"),o="app.containers.WidgetPhotoPage";t.a=Object(n.defineMessages)({title:{id:"".concat(o,".title"),defaultMessage:"H\xecnh \u1ea3nh"},btnAddImage:{id:"".concat(o,".btnAddImage"),defaultMessage:"Th\xeam h\xecnh \u1ea3nh"},seeAll:{id:"".concat(o,".seeAll"),defaultMessage:"Xem t\u1ea5t c\u1ea3"},noActivity:{id:"".concat(o,".noActivity"),defaultMessage:"Kh\xf4ng hi\u1ec3n th\u1ecb ho\u1ea1t \u0111\u1ed9ng n\xe0o"}})}}]);