/*! For license information please see 171.d31e2a1e.js.LICENSE.txt */
"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[171],{88563:(e,t,r)=>{var o=r(53397),s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},s(e,t)};var l=function(){return l=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},l.apply(this,arguments)};var i="Pixel",n="Percent",c={unit:n,value:.8};function a(e){return"number"==typeof e?{unit:n,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:i,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:n,value:parseFloat(e)}:c:c}var d=function(e){function t(t){var r=e.call(this,t)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:"string"==typeof r.props.scrollableTarget?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget,null)},r.onStart=function(e){r.lastScrollTop||(r.dragging=!0,e instanceof MouseEvent?r.startY=e.pageY:e instanceof TouchEvent&&(r.startY=e.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(e){r.dragging&&(e instanceof MouseEvent?r.currentY=e.pageY:e instanceof TouchEvent&&(r.currentY=e.touches[0].pageY),r.currentY<r.startY||(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),r.currentY-r.startY>1.5*r.maxPullDownDistance||r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")}))},r.onScrollListener=function(e){"function"==typeof r.props.onScroll&&setTimeout((function(){return r.props.onScroll&&r.props.onScroll(e)}),0);var t=r.props.height||r._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;r.actionTriggered||((r.props.inverse?r.isElementAtTop(t,r.props.scrollThreshold):r.isElementAtBottom(t,r.props.scrollThreshold))&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=t.scrollTop)},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},r.throttledOnScrollListener=function(e,t,r,o){var s,l=!1,i=0;function n(){s&&clearTimeout(s)}function c(){var c=this,a=Date.now()-i,d=arguments;function u(){i=Date.now(),r.apply(c,d)}l||(o&&!s&&u(),n(),void 0===o&&a>e?u():!0!==t&&(s=setTimeout(o?function(){s=void 0}:u,void 0===o?e-a:e)))}return"boolean"!=typeof t&&(o=r,r=t,t=void 0),c.cancel=function(){n(),l=!0},c}(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return function(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?l(l({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var r=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,o=a(t);return o.unit===i?e.scrollTop<=o.value+r-e.scrollHeight+1:e.scrollTop<=o.value/100+r-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var r=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,o=a(t);return o.unit===i?e.scrollTop+r>=e.scrollHeight-o.value:e.scrollTop+r>=o.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=l({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),s=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return o.createElement("div",{style:s,className:"infinite-scroll-component__outerdiv"},o.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&o.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},o.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(o.Component);t.A=d},6786:(e,t,r)=>{r.d(t,{Cl:()=>n,Cy:()=>v,EE:()=>a,G_:()=>d,Mu:()=>m,OO:()=>u,Rz:()=>i,UA:()=>h,dZ:()=>c,eF:()=>_,hI:()=>l,i$:()=>s,xC:()=>p});var o=r(97380);let s=function(e){return e.SORT="SORT",e.PRICE="PRICE",e.CLASS="CLASS",e.DEVICE="DEVICE",e}({}),l=function(e){return e.STATUS="STATUS",e.SORT="SORT",e}({}),i=function(e){return e.STATUS="STATUS",e.SORT="SORT",e}({});const n={COMMON:0,PRICE_ASC:1,PRICE_DESC:2,SCORE_DESC:3,TIME_DESC:4},c={ALL:0,PAY:1,FREE:2},a={ALL:0,DISCOUNT:2,SHELVES:1,PRE_SHELVES:3,REMOVE:4},d={COMMON:0,ADDED:3,PRICE_ASC:1,PRICE_DESC:2},u={ALL:0,BOOKING:1,UNBOOKING:2},_={HOT:0,NEW:1,EARLY:2},h={1:"pico_developer_genre_sports,pico_developer_genre_simulation",2:"pico_developer_genre_action,pico_developer_genre_shooting",3:"pico_developer_genre_adventure,pico_developer_genre_puzzle",4:"pico_developer_genre_casual,pico_developer_genre_relaxation",5:"pico_developer_genre_space,pico_developer_genre_explore",6:"pico_developer_genre_rpg",7:"pico_developer_genre_strategy",8:"pico_developer_genre_racing",9:"pico_developer_genre_cartoon",10:"pico_developer_genre_scifi",11:"pico_developer_genre_horror",12:"pico_developer_genre_video",13:"pico_developer_genre_music",14:"pico_developer_genre_social",15:"pico_developer_genre_education",16:"pico_developer_genre_news"},p={[s.SORT]:[{id:n.COMMON,label:"store_vr_select_sort_values_1",checked:!0},{id:n.SCORE_DESC,label:"store_vr_select_sort_values_2",checked:!1},{id:n.PRICE_ASC,label:"store_vr_select_sort_values_3",checked:!1},{id:n.PRICE_DESC,label:"store_vr_select_sort_values_4",checked:!1},{id:n.TIME_DESC,label:"select_sort_values_5",checked:!1}],[s.PRICE]:[{id:c.ALL,label:"all_price",checked:!0},{id:c.PAY,label:"store_vr_select_prices_values_2",checked:!1},{id:c.FREE,label:"store_vr_select_prices_values_3",checked:!1}],[s.CLASS]:[{id:0,label:"select_category_values_0",checked:!0},{id:1,label:"select_category_values_1",checked:!1},{id:2,label:"select_category_values_2",checked:!1},{id:3,label:"select_category_values_3",checked:!1},{id:4,label:"select_category_values_4",checked:!1},{id:5,label:"select_category_values_5",checked:!1},{id:6,label:"select_category_values_6",checked:!1},{id:7,label:"select_category_values_7",checked:!1},{id:8,label:"select_category_values_8",checked:!1},{id:9,label:"select_category_values_9",checked:!1},{id:10,label:"select_category_values_10",checked:!1},{id:11,label:"select_category_values_11",checked:!1},{id:12,label:"select_category_values_12",checked:!1},{id:13,label:"select_category_values_13",checked:!1},{id:14,label:"select_category_values_14",checked:!1},{id:15,label:"select_category_values_15",checked:!1},{id:16,label:"select_category_values_16",checked:!1}],[s.DEVICE]:[]},m={[l.STATUS]:[{id:a.ALL,label:"store_vr_select_subscribe_status_values_1",checked:!0},{id:a.DISCOUNT,label:"select_wish_status_values_2",checked:!1},{id:a.PRE_SHELVES,label:"select_wish_status_values_3",checked:!1},{id:a.SHELVES,label:"select_wish_status_values_4",checked:!1}],[l.SORT]:[{id:d.COMMON,label:"store_vr_select_sort_values_1",checked:!0},{id:d.ADDED,label:"select_wish_sort_values_2",checked:!1},{id:d.PRICE_ASC,label:"store_vr_select_sort_values_3",checked:!1},{id:d.PRICE_DESC,label:"store_vr_select_sort_values_4",checked:!1}]},v=((0,o.A)((0,o.A)({},p),{},{[s.SORT]:p[s.SORT].filter((e=>e.id!==n.SCORE_DESC))}),(0,o.A)((0,o.A)({},p),{},{[s.SORT]:p[s.SORT].filter((e=>e.id!==n.SCORE_DESC))}),{[i.STATUS]:[{id:u.ALL,label:"store_vr_select_subscribe_status_values_1",checked:!0},{id:u.BOOKING,label:"store_vr_select_subscribe_status_values_2",checked:!1},{id:u.UNBOOKING,label:"store_vr_select_subscribe_status_values_3",checked:!1}],[i.SORT]:[{id:_.HOT,label:"store_vr_select_subscribe_sorts_values_1",checked:!0},{id:_.NEW,label:"store_vr_select_subscribe_sorts_values_2",checked:!1},{id:_.EARLY,label:"store_vr_select_subscribe_sorts_values_3",checked:!1}]})},70686:(e,t,r)=>{r.d(t,{A:()=>B});r(43109);var o=r(71603),s=r.n(o),l=r(25232),i=r(52949),n=r.n(i),c=r(53397),a=r(73861),d=r(6786),u=r(57981),_=r(85728),h=(r(60873),r(93719)),p=r.n(h),m=r(92247),v="filter-select-box-mQq9YI",f="fit-parent-AZwBvP",g="with-max-min-width-cR4xqq",b="select-view-BJy8If",S="select-value-P89Lep",E="select-icon-vFArCO",C="is-open-L1RvCi",T="highlight-OUdQMH",y="select-popover-udPGdc",A="radio-options-box-ygMGa7",O="option-radio-e43JUi",L="option-c2lOUH",R="checked-TUtd5O",k="check-options-box-Djbcfg",w="options-check-qR4NYr",x="extra-box-O8SHxx",D="extra-btn-q3ukO5",N=r(82065);const I=p().Group;var M=({options:e,type:t,checkedList:r=[0],onChange:o})=>{const s=(0,u.A)(),[i]=(0,l.fn)(_.A),[n,a]=(0,c.useState)(r),h=(0,c.useMemo)((()=>e.map(((e,t)=>({value:e.id,label:s(e.label)})))),[]);return(0,N.jsxs)("div",{className:k,children:[(0,N.jsx)(I,{style:{paddingRight:`${i.scrollWidth+8}px`},className:w,value:n,options:h,onChange:(e,t)=>{let r=[...e];const o=r[r.length-1],s=r.findIndex((e=>0===e));0!==o&&0!==r.length||(r=[0]),0!==o&&s>-1&&r.splice(s,1),a(r)}}),(0,N.jsxs)("div",{className:x,children:[(0,N.jsx)(m.A,{type:"modalCancel",className:D,borderRadius:"32px",height:"32px",onClick:()=>{a([0])},children:s("store_vr_reset")}),(0,N.jsx)(m.A,{type:"primary",height:"32px",borderRadius:"32px",className:D,onClick:()=>{const r=[],l=[];n.forEach((t=>{r.push(d.UA[t]),l.push(s(e[t].label))})),o(r.join(","),t,l,n)},children:s("store_vr_ensure")})]})]})},P=(r(88487),r(23917)),Y=r.n(P);const H=({info:e,labelNs:t="pico_store_vr",checkedList:r})=>{const o=(0,u.A)(),s=n()(L,{[R]:Number(r[0])===e.id});return(0,N.jsx)(Y(),{value:`${e.id}-${e.label}-${e.deviceNumber}`,className:O,children:(0,N.jsxs)("span",{className:s,children:[(0,N.jsx)("span",{children:o(e.label,{ns:t})}),Number(r[0])===e.id&&(0,N.jsx)(a.A.CheckedIcon,{})]})})},U=Y().Group,j=({type:e,options:t,labelNs:r="pico_store_vr",fitParentWidth:o=!1,isRadio:i=!0,className:h,onChange:p})=>{const m=(0,u.A)(),[L]=(0,l.fn)(_.A),[R,k]=(0,c.useState)(!1),[w,x]=(0,c.useState)((()=>{const e=t.filter((e=>e.checked))[0];return m(e.label,{ns:r})})),[D,I]=(0,c.useState)((()=>[t.filter((e=>e.checked))[0].id])),[P,Y]=(0,c.useState)(w),[j,B]=(0,c.useState)(!1),F=n()("filter-select-box",v,h),V=n()(E,{[C]:j}),$=(0,c.useMemo)((()=>JSON.stringify(w)===JSON.stringify(P)),[P,w]);(0,c.useEffect)((()=>{if(e===d.i$.SORT&&(1===Number(D[0])||2===Number(D[0]))){const e=t.filter((e=>e.checked))[0],o=m(e.label,{ns:r});x(o),Y(o),I((()=>[t.filter((e=>e.checked))[0].id]))}}),[t]);return(0,N.jsx)("div",{className:F,children:(0,N.jsx)(s(),{className:y,popupVisible:R,position:"br",trigger:"click",getPopupContainer:()=>document.getElementsByClassName("filter-select-box")[0],content:i?(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(U,{className:A,onChange:t=>{const o=t.split("-"),[s,l,i]=o;x(m(l,{ns:r})),I([s]),k(!1),B(!1),p(s,e,i)},style:{paddingRight:`${L.scrollWidth+8}px`},children:t.map((e=>(0,N.jsx)(H,{info:e,labelNs:r,checkedList:D,className:O},e.id)))})}):(0,N.jsx)(M,{options:t,type:e,checkedList:D,onChange:(e,t,r,o)=>{I([...o]),x(r.join("/")),p(e,t),B(!1),k(!1)}}),onVisibleChange:e=>{B(e),k(e)},style:{transform:"translateY(-4px)"},children:(0,N.jsxs)("div",{className:n()(b,$?"":T,o?f:g),onClick:()=>{k(!R)},children:[(0,N.jsx)("span",{className:S,children:w}),(0,N.jsx)(a.A.SelectIcon,{className:V,fill:"currentColor"})]})})})};var B=(0,c.memo)(j)},81497:(e,t,r)=>{r.d(t,{W:()=>_});var o=r(97380),s=r(52949),l=r.n(s),i=r(53397),n=r(6786),c=r(70686),a=r(75491),d=r(60339),u=r(82065);const _=({overrideWrapperStyle:e,fetchData:t,filterType:r="common_section"})=>{const[s,_]=(0,i.useState)(!1),h=(0,i.useRef)({sort:{},filter:{}}),p=(0,i.useRef)("A8110"),[m,v]=(0,i.useState)([]),[f,g]=(0,i.useState)({});(0,i.useEffect)((()=>{"coming_soon"===r?(g(n.Cy),v([n.Rz.STATUS,n.Rz.SORT]),_(!0)):a.Ay.GetModelList().then((e=>{const t=[];e.data.forEach(((e,r)=>{const o={id:r,deviceNumber:e.device_number,label:e.name,checked:e.device_number===p.current};t.push(o)})),n.xC.DEVICE=t,g((0,o.A)({},n.xC)),v([n.i$.DEVICE,n.i$.CLASS,n.i$.PRICE,n.i$.SORT]),_(!0)}))}),[r]);const b=(e,s,l="")=>{if("coming_soon"===r){if(s===n.Rz.STATUS)switch(Number(e)){case n.OO.ALL:h.current.filter={};break;case n.OO.BOOKING:h.current.filter={filter_booking_status:"true"};break;case n.OO.UNBOOKING:h.current.filter={filter_booking_status:"false"}}if(s===n.Rz.SORT)switch(Number(e)){case n.eF.HOT:h.current.sort={offer_opt_in_count:"2"};break;case n.eF.NEW:h.current.sort={offer_start_timestamp:"2"};break;case n.eF.EARLY:h.current.sort={estimate_publish_timestamp:"1"}}null==t||t(1,h.current)}else{if(s===n.i$.SORT)switch(Number(e)){case n.Cl.PRICE_ASC:case n.Cl.PRICE_DESC:h.current.sort={price:String(e)};break;case n.Cl.TIME_DESC:h.current.sort={first_publish_timestamp:"2"};break;case n.Cl.SCORE_DESC:h.current.sort={user_rating:"2"};break;default:h.current.sort={}}else if(s===n.i$.PRICE)switch(Number(e)){case n.dZ.PAY:g(n.xC),h.current.filter=(0,o.A)((0,o.A)({},h.current.filter),{},{filter_free_to_play:"false"});break;case n.dZ.FREE:const e=JSON.parse(JSON.stringify(n.xC));e.SORT.splice(2,2),g(e),h.current.sort.price&&(h.current.sort={}),h.current.filter=(0,o.A)((0,o.A)({},h.current.filter),{},{filter_free_to_play:"true"});break;default:g(n.xC),delete h.current.filter.filter_free_to_play}else s===n.i$.CLASS&&(h.current.filter.filter_genres=e);s===n.i$.DEVICE&&(p.current=l),null==t||t(1,h.current,p.current)}};return(0,u.jsx)("div",{className:d.A["filter-menu-box"],style:e,children:s&&m.length>0&&m.map((e=>(0,u.jsx)(c.A,{className:l()(d.A["menu-item"],d.A[`menu-item_${m.length}`]),type:e,options:f[e],isRadio:e!==n.i$.CLASS,onChange:b},e)))})}},60339:(e,t)=>{t.A={"home-page-content":"home-page-content-dbqVTF",homePageContent:"home-page-content-dbqVTF","tile-home-view":"tile-home-view-gFB_2P",tileHomeView:"tile-home-view-gFB_2P","filter-box":"filter-box-U_iXCT",filterBox:"filter-box-U_iXCT",title:"title-YIoiAM",divider:"divider-dzWlvL","wish-edit-btn":"wish-edit-btn-ErTVAr",wishEditBtn:"wish-edit-btn-ErTVAr","infinite-box":"infinite-box-tq0sAC",infiniteBox:"infinite-box-tq0sAC","tile-goods-item":"tile-goods-item-pazku0",tileGoodsItem:"tile-goods-item-pazku0","empty-wish-list":"empty-wish-list-H6IwPj",emptyWishList:"empty-wish-list-H6IwPj","empty-page":"empty-page-KoVbwf",emptyPage:"empty-page-KoVbwf","recommend-title":"recommend-title-eEdrsM",recommendTitle:"recommend-title-eEdrsM","recommend-list":"recommend-list-cfON6n",recommendList:"recommend-list-cfON6n","filter-menu-box":"filter-menu-box-UL1fUu",filterMenuBox:"filter-menu-box-UL1fUu","menu-item_2":"menu-item_2-kXnvmW",menuItem2:"menu-item_2-kXnvmW","menu-item_3":"menu-item_3-XFupAE",menuItem3:"menu-item_3-XFupAE","menu-item_4":"menu-item_4-HP5y39",menuItem4:"menu-item_4-HP5y39","menu-item":"menu-item-DAHM1A",menuItem:"menu-item-DAHM1A","load-bottom":"load-bottom-pIQ3tJ",loadBottom:"load-bottom-pIQ3tJ"}}}]);