1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1640],{70502:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getRenderPropValue=void 0;var a=function(e){return e?"function"==typeof e?e():e:null};n.getRenderPropValue=a},62443:function(e,n,a){"use strict";var t=a(4149),o=a(15626);n.Z=void 0;var r=t(a(93120)),i=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var a=u(n);if(a&&a.has(e))return a.get(e);var t={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(t,i,l):t[i]=e[i]}return t.default=e,a&&a.set(e,t),t}(a(67294)),l=t(a(94055)),c=a(31929),s=a(70502),d=a(53683);function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,a=new WeakMap;return(u=function(e){return e?a:n})(e)}var m=function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>n.indexOf(t)&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)0>n.indexOf(t[o])&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]]);return a},f=i.forwardRef(function(e,n){var a,t=e.prefixCls,o=e.title,u=e.content,f=m(e,["prefixCls","title","content"]),_=i.useContext(c.ConfigContext).getPrefixCls,v=_("popover",t),p=_();return i.createElement(l.default,(0,r.default)({},f,{prefixCls:v,ref:n,overlay:i.createElement(i.Fragment,null,o&&i.createElement("div",{className:"".concat(v,"-title")},(0,s.getRenderPropValue)(o)),i.createElement("div",{className:"".concat(v,"-inner-content")},(0,s.getRenderPropValue)(u))),transitionName:(0,d.getTransitionName)(p,"zoom-big",f.transitionName)}))});f.displayName="Popover",f.defaultProps={placement:"top",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},n.Z=f},52182:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/corporate/famex/deal-detail",function(){return a(67314)}])},93703:function(e,n,a){"use strict";var t=a(26042),o=a(69396),r=a(99534),i=a(85893),l=a(91075),c=function(e){var n=e.className,a=(0,r.Z)(e,["className"]),c=(0,o.Z)((0,t.Z)({},a),{className:n});return(0,i.jsx)(l.Z,(0,t.Z)({},c))};c.Link=l.Z.Link,n.Z=c},97089:function(e,n,a){"use strict";var t=a(26042),o=a(69396),r=a(99534),i=a(85893),l=a(67294),c=a(1825),s=a(94184),d=a.n(s),u=a(69108),m=a.n(u),f=a(74736),_=function(e){var n=e.onClose,a=e.visible,s=e.logo,u=e.title,_=e.hasTitle,v=e.bodyStyle,p=e.className,h=e.headerClassName,x=e.maskClosable,b=(0,r.Z)(e,["onClose","visible","logo","title","hasTitle","bodyStyle","className","headerClassName","maskClosable"]),T=function(e){e.stopPropagation(),n()},k=(0,l.useRef)(!1);return(0,l.useEffect)(function(){a?(k.current=Array.from(document.body.classList).includes("overflow-hidden"),document.body.classList.add("h-auto","overflow-hidden"),document.documentElement.classList.add("overflow-hidden")):k.current||(document.body.classList.remove("h-auto","overflow-hidden"),document.documentElement.classList.remove("overflow-hidden"))},[a]),(0,l.useEffect)(function(){return function(){k.current||(document.body.classList.remove("h-auto","overflow-hidden"),document.documentElement.classList.remove("overflow-hidden"))}},[]),(0,i.jsx)(c.Z,(0,o.Z)((0,t.Z)({style:{transform:null},bodyStyle:void 0===v?{}:v,width:"100%",visible:a,closable:!1,maskClosable:void 0!==x&&x,className:"".concat(m().wrapper," ").concat(void 0===p?"":p),title:(void 0===_||_)&&((0,f.kK)(s)?(0,i.jsxs)("div",{className:d()("w-screen min-h-54px px-32px relative flex justify-center items-center",void 0===h?"":h),children:[(0,i.jsx)("span",{className:d()(m().iconBack,"absolute left-0 p-10px"),onClick:T}),(0,i.jsx)("span",{className:"truncate",children:u})]}):(0,i.jsxs)("div",{className:"h-60px px-15px relative flex items-center justify-between sl-drawer-title",children:[s,(0,i.jsx)("span",{className:"date-drawer-close-icon p-10px ".concat(m().iconClose),onClick:T})]})),onClose:T},b),{children:e.children}))};n.Z=l.memo(_)},98413:function(e,n,a){"use strict";a.d(n,{j:function(){return _}});var t=a(14924),o=a(26042),r=a(69396),i=a(99534),l=a(85893),c=a(31059),s=a(94184),d=a.n(s),u=a(67784),m=a.n(u),f={brand:"brand"},_={square:"square",circle:"circle"},v=function(e){var n,a=e.theme,s=e.className,u=e.adobeTrack,v=void 0===u?{}:u,p=e.shape,h=e.disable,x=e.disabled,b=(0,i.Z)(e,["theme","className","adobeTrack","shape","disable","disabled"]),T={};return(null==v?void 0:v.editable)&&(T["data-track-button-name"]=null==v?void 0:v.editable),(0,l.jsx)("div",(0,r.Z)((0,o.Z)({className:d()([s,m().wraper,(n={},(0,t.Z)(n,m().brand,a===f.brand),(0,t.Z)(n,m().square,p===_.square),(0,t.Z)(n,m().circle,p===_.circle),n),(null==v?void 0:v.editable)?"adobe-link":"",])},T),{children:(0,l.jsx)(c.default,(0,r.Z)((0,o.Z)({},b),{disabled:null!=x?x:h}))}))};v.Group=c.default.Group,n.Z=v},11440:function(e,n,a){"use strict";var t=a(26042),o=a(85893),r=a(97538),i=a(83566),l=a.n(i),c=r.Z.Item,s=r.Z.ErrorList,d=r.Z.List,u=r.Z.Provider,m=r.Z.create,f=r.Z.useForm,_=function(e){return(0,o.jsx)("div",{className:l().wraper,children:(0,o.jsx)(r.Z,(0,t.Z)({},e))})};_.Item=c,_.ErrorList=s,_.List=d,_.Provider=u,_.create=m,_.useForm=f,n.Z=_},12583:function(e,n,a){"use strict";var t=a(85893),o=a(73935),r=a(94184),i=a.n(r),l=a(75978),c=a(74736),s=a(9279),d=a.n(s),u=a(69922),m=a.n(u),f=a(89548);function _(e){var n=e.visible,a=e.className;return n?(0,t.jsxs)("div",{className:i()(m().componentWrapper,a),children:[(0,t.jsx)("div",{className:m().imgWrapper,children:_.config.image}),e.children]}):(0,t.jsx)(t.Fragment,{children:e.children})}_.config={id:"global-loading-wrapper",container:null,image:(0,t.jsx)(l.Z,{data:{src:"".concat(d().envParam.staticPublicPath,"imgs/loading/").concat((0,f.tq)()?"loading2022":"loading_v1_2022",".gif")},alt:"loadingImage",width:(0,f.tq)()?60:195,height:(0,f.tq)()?60:25})},_.show=function(){if((0,c.kK)(document.getElementById(_.config.id))){var e=document.createElement("div");e.id=_.config.id,document.body.appendChild(e)}(0,c.kK)(_.config.container)&&(_.config.container=(0,t.jsx)("div",{className:m().wrapper,children:_.config.image})),o.render(_.config.container,document.getElementById(_.config.id))},_.hide=function(){var e=document.getElementById(_.config.id);(0,c.kK)(e)||(o.unmountComponentAtNode(e),document.body.removeChild(e))},n.Z=_},62434:function(e,n,a){"use strict";var t=a(26042),o=a(85893),r=a(62443),i={color:"#333333",background:"#F8F8F8",border:"1px solid #E8E8E8",boxShadow:"0 1px 2px 0 rgba(0,0,0,0.08);"},l=function(e){return(0,o.jsx)(r.Z,(0,t.Z)({overlayInnerStyle:i,getPopupContainer:function(e){return e.parentElement}},e))};n.Z=l},50459:function(e,n,a){"use strict";var t=a(14924),o=a(85893),r=a(94184),i=a.n(r),l=a(86073),c=a(97089),s=a(10268),d=a(23199),u=a.n(d),m=a(67294),f=a(62434),_=a(88754),v=function(e){var n=e.type,a=e.index,r=e.sectionIndex,d=void 0===r?0:r,v=e.modalTitle,p=void 0===v?"":v,h=e.earnTokenText,x=e.tokenNum,b=void 0===x?"":x,T=e.tokenContent,k=void 0===T?"":T,N=e.earnPrefixText,g=void 0===N?"":N,w=e.earnSuffixText,j=void 0===w?"":w,C=e.earnPrefix,Z=e.earnSuffix,I=(0,_.Z)(),E=(0,s.$G)("famex").t,D=(0,m.useState)({}),M=D[0],S=D[1],y=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),k&&S({visible:!0,selectedEarnTips:"Token-".concat(d,"-").concat(a)})},O=function(){S({visible:!1})};(0,m.useEffect)(function(){I.sm&&S({visible:!1})},[I.sm]);var L=function(){var e={title:p||E("redeemTokens"),earnPrefix:C||E("requiredToken"),earnSuffix:Z,earnNum:b,moreTips:k};return(0,o.jsxs)("div",{className:u().earnModalMain,children:[(null==e?void 0:e.title)&&(0,o.jsx)("div",{className:u().earnModalTitle,children:null==e?void 0:e.title}),(0,o.jsxs)("div",{className:u().earnModalCont,children:[(null==e?void 0:e.earnPrefix)&&(0,o.jsx)("div",{className:u().earnModalText,children:null==e?void 0:e.earnPrefix}),(0,o.jsx)("div",{className:i()(u().tokenIcon)}),(0,o.jsx)("div",{className:u().earnModalNum,children:null==e?void 0:e.earnNum}),(null==e?void 0:e.earnSuffix)&&(0,o.jsx)("div",{className:u().earnModalText,children:null==e?void 0:e.earnSuffix})]}),(null==e?void 0:e.moreTips)&&(0,o.jsx)("div",{className:u().earnModalTips,children:e.moreTips})]})};return(0,o.jsxs)("div",{className:u().famexEarnToken,children:[b>=0&&(0,o.jsxs)(f.Z,{className:u().earnTokenBlock,overlayClassName:u().earnTokenOverlay,placement:"bottomLeft",content:L(),getPopupContainer:function(){return document.body},destroyTooltipOnHide:!0,visible:!!I.sm&&!!k&&void 0,children:[(0,o.jsx)("div",{className:i()(u().textBlock,"whitespace-nowrap",(0,t.Z)({},u().offerTextBlock,"offer"===n)),children:(void 0===h?"":h)||E("redeem")}),(0,o.jsxs)("div",{className:u().tokenBlock,onClick:I.sm?function(){return null}:y,children:[g&&(0,o.jsx)(l.Z,{className:u().earnPrefix,children:g}),(0,o.jsx)("div",{className:u().tokenIcon}),(0,o.jsx)(l.Z,{className:u().token,children:b||0}),j&&(0,o.jsx)(l.Z,{className:u().earnSuffix,children:j}),k&&(0,o.jsx)("div",{className:i()(u().icon,(0,t.Z)({},u().iconUp,M.selectedEarnTips==="Token-".concat(d,"-").concat(a)))})]})]}),(null==M?void 0:M.visible)&&(0,o.jsx)(c.Z,{maskClosable:!0,placement:"bottom",className:u().earnModal,width:"100%",height:"272px",logo:(0,o.jsx)("div",{}),visible:M.visible,onClose:O,children:L()})]})};n.Z=v},67314:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSP:function(){return er},default:function(){return ei}});var t=a(85893),o=a(828),r=a(67294),i=a(74555),l=a(10268),c=a(47556),s=a(22512),d=a(98413),u=a(71729),m=a(11163),f=a.n(m),_=a(13284),v=a(22195),p=a(11440),h=a(35829),x={src:"/fe-static/sl-fe-revamp-prod//_next/static/media/[email protected]",height:180,width:270,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAQAAADSmGXeAAAAWUlEQVR42h2Fuw2AMBDFjj4lNetQsAFTUDAGC1GlZwIkJO6JLnwS0iMeJ2xZFjiUEDQgWnslmzsL9MhYMGutYminQScdVmKESPQHw7MzmFeOXhJ/38TbSvwAyuE8C4CxgM4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},b=a(63027),T=a(12583),k=a(48071),N=a(85518),g=a(58118),w=a(28615),j=a(14924),C=a(75978),Z=a(94184),I=a.n(Z),E=a(97089),D=a(84740),M=a(26042),S=a(69396),y=a(93703),O=a(62047),L=a.n(O),R=function(e){var n=e.dealMetadataInfos,a=void 0===n?[]:n,o=y.Z.Link,i=(0,r.useRef)(),l=(0,r.useState)("#tabModule0"),c=l[0],d=l[1],u=(0,r.useState)({}),m=u[0],f=u[1],v=(0,s.Z)().sm,p=function(e){var n="#tabModule".concat(e);d(n),window.history.pushState(null,"",n)},h=function(e,n){var a=(e||{}).contents,o=void 0===a?[]:a;return v&&"#tabModule".concat(n)!==c?null:(0,t.jsx)("div",{className:L().productTabCont,id:"tabModule"+n,children:null==o?void 0:o.map(function(e,n){var a,r,i=e||{},l=i.contentTitle,c=i.contentText,s=i.image,d=(null==e?void 0:e[n+1])||{},u=d.contentTitle,v=d.contentText,p=d.image,h=!1,x=(0,g.bL)(c),b=(0,g.bL)(v);return n<(null==o?void 0:o.length)-1&&(s&&!x&&u||s&&!x&&!u&&!p&&b||x&&!u&&p||s&&!x&&!u&&p||!s&&!x
1)&&(h=!0),(0,t.jsxs)("div",{className:I()(L().tabSubModule,(a={},(0,j.Z)(a,L().first,0===n),(0,j.Z)(a,L().last,n===o.length-1),(0,j.Z)(a,L().noborder,h),a)),children:[!!l&&(0,t.jsx)("div",{className:L().tabSubTitle,children:l}),!!s&&!m[s]&&(0,t.jsx)(C.Z,{className:L().tabSubImage,data:{src:s},onError:function(){f((0,S.Z)((0,M.Z)({},m),(0,j.Z)({},s,s)))}}),!!x&&(0,t.jsx)(_.Z,{className:L().tabSubCont,data:c})]},n)})},n)};return(0,t.jsxs)("div",{className:L().productTabsWrap,ref:i,children:[(null==a?void 0:a.length)>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sm:hidden",children:(0,t.jsx)(y.Z,{className:L().productTabList,affix:!0,targetOffset:50,onChange:function(e){e&&d(e)},children:a.map(function(e,n){return(0,t.jsx)(o,{href:"#tabModule"+n,title:(0,t.jsx)("span",{className:I()(L().tabTitle,(0,j.Z)({},L().activeTabTitle,c==="#tabModule".concat(n))),children:e.title})},n)})})}),(0,t.jsx)("div",{className:L().productTabListWebsite,children:a.map(function(e,n){return(0,t.jsx)("span",{onClick:function(){p(n)},className:I()(L().tabItem,(0,j.Z)({},L().activeTabItem,c==="#tabModule".concat(n))),children:e.title},n)})})]}),a.map(function(e,n){return h(e,n)})]})},F=a(47568),A=a(10092),P=a(23279),B=a.n(P),H=a(83900),U=a.n(H),W=a(88731),G=a.n(W),V=a(74736),z=a(39917),q=a.n(z),X=a(44946),Y=function(e){var n,a=e.hasChild,o=e.data,i=e.form,c=e.dispatch,s=e.goMarket,d=void 0===s?V.ZT:s,_=e.tokenEnough,p=e.renderProtocal,x=e.refreshDealDetail,b=void 0===x?V.ZT:x,N=(void 0===o?{}:o)||{},C=N.button,Z=void 0===C?{}:C,E=N.sellingFamexTokens,y=void 0===E?0:E,O=N.dealType,L=N.applicableHotelInfos,R=void 0===L?[]:L,P=N.cancellationPolicy,H=(0,m.useRouter)(),W=H.locale,z=H.query,Y=z.dealCode,Q=z.kolId,K=void 0===Q?"":Q,J=z.userName,$=void 0===J?"":J,ee=(0,l.$G)("famexMarket").t,en=(0,l.$G)("common").t,ea=(0,r.useState)(!1),et=ea[0],eo=ea[1],er=(0,r.useState)(!1),ei=er[0],el=er[1],ec=(0,r.useState)((null==Z?void 0:Z.name)||""),es=ec[0],ed=ec[1],eu=!(null==Z?void 0:Z.clickable)||ei,em=function(e){var n=e.message;u.Z.confirm({content:void 0===n?"":n,okText:ee("viewOtherRewards"),cancelText:ee("back"),onOk:function(){d()},onCancel:function(){b()}})},ef=function(){if(Y)return{dealCode:Y,amount:1,unionId:U().get(G().UNION_ID),dealType:O,kolId:K,userName:$,businessUnits:(R||[]).map(function(e){return e.hotelCode}),cancellationPolicy:P}},e_=function(e){(0,g.rI)({locale:e,webQuery:{addChildBack:!0}})},ev=function(e){var n=ef();eo(!0),T.Z.show(),c({type:"".concat(v.u,"/famexCreateOrder"),payload:{query:(0,S.Z)((0,M.Z)({},n),{famexTokens:e||y}),onShowMFA:function(){T.Z.hide()},onSuccess:function(e){var n=(e||{}).data||{},a=n.statusCode,t=n.tradeId,o=n.message,r=n.updatedFamexTokens;T.Z.hide(),eo(!1);var i="";switch(a){case w.om.SUCCESS:i=k.U.replace("{locale}",W),f().replace({pathname:i,query:(0,S.Z)((0,M.Z)({},z),{tradeId:t})});break;case w.om.NOT_ENOUGH:case w.om.MAX_NUMBER:em({message:o});break;case w.om.SOLD_OUT:u.Z.confirm({content:ee("soldOutModal"),okText:ee("viewRewards"),cancelText:ee("back"),onOk:function(){d()}}),ed(ee("soldOut")),el(!0);break;case w.om.UNDER_CARRIAGE:u.Z.confirm({content:o,okText:ee("viewRewards"),cancelText:ee("back"),onOk:function(){d()}}),ed(ee("outSoldButton")),el(!0);break;case w.om.LOGIN_INVALID:u.Z.confirm({content:ee("login.invalid.tips"),cancelText:ee("back"),okText:ee("login.invalid.ok"),onOk:function(){(0,h.openLogin)()}});break;case w.om.GC_CONDITION:u.Z.confirm({content:o||ee("onlyGC"),okText:ee("viewOtherRewards"),cancelText:ee("back"),onOk:function(){d()}});break;case w.om.FAMEX_TOKENS_PAY_NO_CHILD:u.Z.confirm({content:o,okText:ee("addChild"),cancelText:ee("back"),onOk:function(){e_(W)}});break;case w.om.FAMEX_TOKENS_NOT_ENOUGH:u.Z.confirm({content:o,okText:ee("viewOtherRewards"),cancelText:ee("back"),onOk:function(){d()},onCancel:function(){b()}});break;case w.om.FAMEX_TOKENS_CHANGE:u.Z.confirm({content:o,okText:en("confirm"),cancelText:en("cancel"),onOk:function(){ev(r)},onCancel:function(){b()}});break;case w.om.FAMEX_USER_EXIT:u.Z.confirm({content:o,okText:ee("joinNow"),cancelText:ee("back"),onOk:function(){(0,g.Fx)(W)}});break;default:u.Z.confirm({content:o,cancelText:en("cancel"),okText:en("confirm")})}},onError:function(e){eo(!1),T.Z.hide(),(0,X.Q1)(e)&&u.Z.confirm({content:en("errorNetworkNone"),okText:en("confirm"),cancelText:en("cancel"),onCancel:function(){b()}})}}})},ep=(n=(0,F.Z)(function(){var e,n,a;return(0,A.__generator)(this,function(e){switch(e.label){case 0:if(et||!(null==Z?void 0:Z.clickable)||ei)return[2];if(!(0,h.getLoginStatus)())return[2,(0,h.openLogin)()];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.validateFields()];case 2:return(null==(n=e.sent())?void 0:n.protocal)&&u.Z.confirm({content:ee("detail.redeem.confirmTip"),cancelText:en("cancel"),okText:en("confirm"),className:q().confirmModal,onOk:function(){ev()},onCancel:function(){b()}}),[3,4];case 3:return a=e.sent(),console.log("form.validate error",a),[3,4];case 4:return[2]}})}),function(){return n.apply(this,arguments)}),eh=function(){var e=(0,D.XW)(k.Ym,{locale:W});(0,h.openUrl)({url:e})};return(0,t.jsxs)("div",{className:q().redeemWrap,children:[(0,t.jsxs)("div",{className:q().redeemHeader,children:[(0,t.jsx)("div",{className:q().redeemTitle,children:ee("findRewards")}
1),(0,t.jsxs)("div",{className:q().redeemAmount,children:[ee("redeem")," ",(0,t.jsx)("span",{className:q().tokenNum,children:y})]}),(0,t.jsx)("div",{className:q().redeemLine}),(!a||!_)&&(0,t.jsx)("div",{className:q().redeemTipsContainer,children:a?_?null:(0,t.jsxs)("div",{className:I()(q().dealTips),children:[(0,t.jsx)("div",{className:I()(q().tips,"text-regular"),children:ee("handNoTokenTips")}),(0,t.jsx)("div",{className:I()(q().action,"text-medium","text-right"),onClick:eh,children:ee("earnTokens")})]}):(0,t.jsx)("div",{className:I()(q().dealTips),children:(0,t.jsx)("div",{className:I()(q().tips,"text-regular"),children:ee("haveNoChildTips")})})})]}),(0,t.jsx)("div",{className:"sm:hidden",children:a?_?(0,t.jsxs)("div",{className:I()(q().redeemBtn,(0,j.Z)({},q().redeemBtnDisable,eu)),onClick:B()(ep,300),children:[(0,t.jsx)("div",{children:es}),!eu&&(0,t.jsx)("div",{className:I()(q().tokenNum,"text-bold"),children:y})]}):null:(0,t.jsx)("div",{className:q().redeemBtn,onClick:B()(function(){return e_(W)},300),children:ee("addChildToRedeem")})}),(0,t.jsx)("div",{className:"hidden sm:block",children:a?_?(0,t.jsxs)(t.Fragment,{children:[p(),(0,t.jsx)("div",{className:I()(q().redeemBtn,(0,j.Z)({},q().redeemBtnDisable,eu)),onClick:B()(ep,300),children:(0,t.jsx)("div",{children:es})})]}):null:(0,t.jsx)("div",{className:q().redeemBtn,onClick:B()(function(){return e_(W)},300),children:ee("addChildToRedeem")})})]})},Q=a(50459),K=a(33591),J=a.n(K),$=function(e){var n,a=e.productDetail,o=void 0===a?{}:a,i=e.hasChild,c=e.tokenEnough,s=e.dispatch,d=e.form,u=e.goMarket,f=e.renderProtocal,v=e.refreshDealDetail,p=(0,r.useState)(!0),x=p[0],b=p[1],T=(0,r.useState)(!1),N=T[0],g=T[1],Z=(0,r.useState)(),M=Z[0],S=Z[1],y=(0,r.useState)(!1),O=y[0],L=y[1],F=(0,r.useRef)(),A=(0,l.$G)("famexMarket").t,P=(0,l.$G)("famex").t,B=(0,m.useRouter)().locale,H=(0,r.useRef)(),U=o||{},W=U.classificationType,G=U.dynamicValue,V=U.dealName,z=U.voucherInfos,q=void 0===z?[]:z,X=U.areaGroup,K=U.applicableHotelInfos,$=void 0===K?[]:K,ee=U.dealDeliveryOption,en=void 0===ee?"":ee,ea=U.dealDescription,et=void 0===ea?"":ea,eo=U.reserveDaysText,er=void 0===eo?"":eo,ei=U.sellingFamexTokens,el=void 0===ei?"":ei,ec=U.dealFamexTokensContent,es=void 0===ec?"":ec;(0,r.useEffect)(function(){(null==H?void 0:H.current)&&(null==H?void 0:H.current.clientHeight)>100&&(b(!1),L(!0))},[H]);var ed=function(e){g(!0),S(e)},eu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=e.voucherName,o=e.num,r=e.fromDate,i=e.toDate,l=e.voucherPeriodType;return(0,t.jsxs)("div",{className:J().productItemCont,children:[(0,t.jsxs)("div",{className:I()(J().productItemText,J().productItemTitle),children:[(0,t.jsx)("div",{className:I()(J().voucherName,"text-bold"),children:W===w.kQ.SINGLE?V:a}),W===w.kQ.BUNDLE&&!N&&(0,t.jsxs)("div",{className:J().productNum,children:["x ",o]})]}),(0,t.jsx)("div",{className:J().productItemText,children:X===w.bH.CROSS?(0,t.jsx)("div",{className:J().crossUnit,children:A("crossUnit")}):$.map(function(e){return e.hotelName})}),en!==w.hE.DELIVERY_ONLY&&(l===w.jA?(0,t.jsx)("div",{className:J().productItemText,children:A("expiredDate",{dynamicValue:G})}):r&&i&&(0,t.jsx)("div",{className:J().productItemText,children:A("expired",{fromDate:r,toDate:i})})),er&&(0,t.jsx)("div",{className:J().productItemText,children:er}),(0,t.jsx)(Q.Z,{type:"redeem",earnTokenText:A("detail.redeem"),index:n,tokenNum:el,tokenContent:es}),W===w.kQ.BUNDLE&&q&&q.length>1&&n>=0&&(0,t.jsx)("div",{className:J().productItemMore,onClick:function(){return ed(e)},children:P("viewMore")})]},n)},em=function(){var e=(0,D.XW)(k.Ym,{locale:B});(0,h.openUrl)({url:e})};return(0,t.jsxs)("div",{className:J().dealHeader,children:[(0,t.jsxs)("div",{className:J().dealHeaderLeft,children:[(0,t.jsx)("div",{className:J().dealThumbnail,children:(0,t.jsx)(C.Z,{data:{src:null==o?void 0:o.dealThumbnail},showType:"bg"})}),W===w.kQ.SINGLE?(0,t.jsx)("div",{className:J().singleDetailIntro,children:eu(q&&q[0],0)}):(0,t.jsxs)("div",{className:J().bundleDetailIntro,children:[(0,t.jsx)("div",{className:I()(J().bundleName,"text-bold"),children:V}),(0,t.jsxs)("div",{className:J().bundleDesc,children:[(0,t.jsx)("div",{className:J().bundleDescTitle,children:A("bundleDetail")}),(0,t.jsx)("div",{className:J().bundleDescCont,ref:H,children:et&&(0,t.jsx)(_.Z,{className:I()(J().bundleRichText,x?J().showDesc:J().hideDesc),data:et})}),O&&(0,t.jsx)("div",{className:I()(J().bundleDescAction,(0,j.Z)({},J().arrowUp,x)),onClick:function(){b(!x)}})]}),(null==q?void 0:q.length)>0&&(0,t.jsx)("div",{className:I()(J().bundleVch,(null==q?void 0:q.length)===1?J().bundleOneVch:J().bundleMoreVch),children:q.map(function(e,n){return eu(e,n)})})]})]}),(0,t.jsx)(Y,{dispatch:s,form:d,hasChild:i,data:o,goMarket:u,tokenEnough:c,renderProtocal:f,refreshDealDetail:v}),(!i||!c)&&(0,t.jsxs)("div",{className:J().dealTipsWrap,children:[!i&&(0,t.jsx)("div",{className:I()(J().dealTips),children:(0,t.jsx)("div",{className:I()(J().tips,"text-regular"),children:A("haveNoChildTips")})}),!c&&(0,t.jsxs)("div",{className:I()(J().dealTips,J().tokenDealTips),children:[(0,t.jsx)("div",{className:I()(J().tips,"text-regular"),children:A("handNoTokenTips")}),(0,t.jsx)("div",{className:I()(J().action,"text-medium"),onClick:em,children:A("earnTokens")})]})]}),N&&(0,t.jsx)(E.Z,{className:J().bundleDrawerWrap,visible:N,maskClosable:!0,onClose:function(){g(!1),S()},placement:"bottom",width:"100%",height:"80vh",children:(0,t.jsxs)("div",{className:J().bundleDrawerCont,ref:F,children:[(0,t.jsxs)("div",{className:J().bundleDrawerHead,children:[eu(M,-1),(0,t.jsx)("div",{className:J().bundleCloseBtn,onClick:function(){g(!1),S()}})]}),(null==M?void 0:null===(n=M.voucherMetadataInfos)||void 0===n?void 0:n.length)>0&&(0,t.jsx)(R,{dealMetadataInfos:null==M?void 0:M.voucherMetadataInfos,displayInDrawer:!0,getContainer:function(){return null==F?void 0:F.current}})]})})]})},ee=a(56979),en=a.n(ee),ea=function(e){var n,a=e.dispatch,i=e.productDetail,j=void 0===i?{}:i,C=e.hasChild,Z=e.tokenEnough,I=(0,c.Z)(),E=(0,m.useRouter)(),D=E.query,M=void 0===D?{}:D,S=E.locale,y=M.dealCode,O=M.from,L=(0,s.Z)().sm,F=(0,o.Z)(p.Z.useForm(),1)[0],A=(0,l.$G)("famexMarket").t,P=(0,l.$G)("common").t,B=(0,r.useState)({}),H=B[0],U=B[1],W=(0,r.useRef)(),G=(0,r.useState)(!1),V=G[0],z=G[1],q=j||{},X=q.classificationType,Q=q.voucherInfos,K=void 0===Q?[]:Q,J=q.dealMetadataInfos,ee=function(){T.Z.show(),a({type:"".concat(v.u,"/getFamexProductDetail"),payload:{query:{dealCode:y},onSuccess:function(e){var n=e.data,a=void 0===n?{}:n;T.Z.hide(),z(!0);var t=a.display,o=a.dealName,r=a.dealStatus,i=void 0===r?"":r,l=void 0===o?"":o;i===w.wZ.LOGIN_INVALID?u.Z.confirm({content:A("login.invalid.tips"),cancelText:A("back"),okText:A("login.invalid.ok"),onOk:function(){(0,h.openLogin)()}}):t&&i!==w.wZ.INACTIVE&&i!==w.wZ.UNDER_CARRIAGE&&i!==w.wZ.NO_RECORD?i===w.wZ.SUCCESS||i===w.wZ.GC_CONDITION?U({}):i===w.wZ.SELLING_START_PERIOD_RESTRICTION?u.Z.confirm({content:A("willStart"),okText:A("goAndSee"),onOk:function(){(0,h.pageBack)()}}):i===w.wZ.FAMEX_USER_EXIT?u.Z.confirm({content:A("notJoinFamex"),okText:A("joinNow"),cancelText:A("back"),onOk:function(){(0,g.Fx)(S)}}):i!==w.wZ.INVENTORY_SOLD_OUT&&i!==w.wZ.BUY_MAXIMUM_LIMIT&&i!==w.wZ.FAMEX_TOKENS_NOT_ENOUGH&&i!==w.wZ.FAMEX_TOKENS_PAY_NO_CHILD&&U({showFail:!0,failMessage:P("networkTipsTechnicalDifficulty"),buttonText:P("tryAgain")}):(l=A("outSoldButton"),U({showFail:!0,failMessage:A("noRecord"),failImg:x,buttonText:A("moreVoucher.points"),callback:ea})),document.title=l},onError:function(){z(!0),T.Z.hide(),U({showFail:!0,failMessage:P("networkTipsTechnicalDifficulty"),buttonText:P("tryAgain")})}}})},ea=function(){if(L||(null==M?void 0:M.from)!=="market"){var e=k.n7.replace("{locale}",S);f().replace({pathname:e,query:M})}else(0,h.pageBack)()};(0,r.useEffect)(function(){T.Z.show(),I&&y&&((0,g.dJ)(),ee())},[I,y]),(0,r.useEffect)(function(){var e=function(e){var n,a,t,o,r;(e.persisted||((null==window?void 0:null===(n=window.performance)||void 0===n?void 0:null===(a=n.navigation)||void 0===a?void 0:a.type)===2||(null==performance?void 0:null===(t=performance.getEntriesByType)||void 0===t?void 0:null===(o=t.call(performance,"navigation"))||void 0===o?void 0:null===(r=o[0])||void 0===r?void 0:r.type)==="back_forward")&&N.Dt)&&ee()};return window.addEventListener("pageshow",e),function(){window.removeEventListener("pageshow",e)}},[]);var et=function(){return(0,t.jsx)("div",{ref:W,children:(0,t.jsx)(p.Z,{form:F,className:en().protocalWrap,children:(0,t.jsx)(p.Z.Item,{name:"protocal",validateTrigger:"onSubmit",rules:[{validator:function(e,n){if(!n){var a,t=null==W?void 0:null===(a=W.current)||void 0===a?void 0:a.offsetTop;return window.scrollTo(0,t+20),Promise.reject(A("protocalErr"))}return Promise.resolve()}},],valuePropName:"checked",children:(0,t.jsxs)("div",{className:en().protocalItem,children:[(0,t.jsx)(d.Z,{theme:"brand",className:en().protocalCheckbox}),(0,t.jsx)("div",{className:en().tcWrapper,children:(0,t.jsx)(_.Z,{className:"font-medium",data:A("eVoucher.protocal")})})]})})})})};return(null==H?void 0:H.showFail)?(0,t.jsx)(b.Z,{className:en().noResultCls,message:null==H?void 0:H.failMessage,extranelImgUrl:null==H?void 0:H.failImg,showButton:!!(null==H?void 0:H.buttonText),buttonText:null==H?void 0:H.buttonText,onClick:(null==H?void 0:H.callback)||ee}):V&&(0,t.jsxs)("div",{className:en().famexProductDetail,children:[(0,t.jsx)($,{productDetail:j,hasChild:C,tokenEnough:Z,from:O,dispatch:a,form:F,goMarket:ea,renderProtocal:et,refreshDealDetail:ee}),X===w.kQ.SINGLE&&(0,t.jsx)(R,{dealMetadataInfos:void 0===J?[]:J}),X===w.kQ.BUNDLE&&(null==K?void 0:K.length)===1&&(0,t.jsx)(R,{dealMetadataInfos:(null===(n=K[0])||void 0===n?void 0:n.voucherMetadataInfos)||[]}),(0,t.jsxs)("div",{className:"sm:hidden",children:[Z&&et(),Z&&(0,t.jsx)(Y,{dispatch:a,form:F,dealCode:y,hasChild:C,data:j,goMarket:ea,refreshDealDetail:ee})]})]})},et=(0,i.$j)(function(e){return e[v.u]||{}})(ea),eo=function(){return(0,t.jsx)(et,{})};eo.model=[v.Z];var er=!0,ei=eo},83900:function(e,n,a){"use strict";var t=a(62307).sk;function o(){return new Date().getTime()}function r(e,n,a){var t=JSON.stringify(a);try{e.setItem(n,t)}catch(r){try{"QuotaExceededError"===r.name&&(e.clear(),e.setItem(n,t))}catch(o){console.log(o)}}}function i(e,n){try{return JSON.parse(e.getItem(n))}catch(a){return null}}e.exports={get:function(e){if(t)return null;var n,a=window.localStorage,r=window.sessionStorage;if(e)return i(r,e)||function(){var n=i(a,e);if(n){if(0===n.expires||n.expires+n.createTime>=o())return n.data;a.removeItem(e)}return null}()},set:function(e,n,a){var t=window.localStorage,i=window.sessionStorage,l=o();-1===(a=a||0)?r(i,e,n):r(t,e,{expires:a,createTime:l,data:n})},remove:function(e){window.localStorage.removeItem(e)},clear:function(){window.localStorage.clear()},size:function(){return window.localStorage.size()}}},88754:function(e,n,a){"use strict";var t=a(828),o=a(67294),r=a(18446),i=a.n(r),l=a(23493),c=a.n(l),s=a(66476);function d(){return Object.keys(s).reduce(function(e,n){return e[n]=!1,e},{})}function u(){return Object.entries(s).reduce(function(e,n){var a=(0,t.Z)(n,2),o=a[0],r=a[1];return"print"===o?(e[o]=!1,e):(e[o]=window.innerWidth>=parseInt(r),e)},{})}var m={listeners:new Set,currentMatches:d(),initialized:!1,boundUpdateScreenMatches:null,
1subscribe:function(e){var n=this;return this.listeners.add(e),this.initialized||this.initialize(),function(){n.listeners.delete(e),0===n.listeners.size&&n.cleanup()}},initialize:function(){this.currentMatches=u(),this.boundUpdateScreenMatches=c()(this.updateScreenMatches.bind(this),100,{leading:!0,trailing:!0}),window.addEventListener("resize",this.boundUpdateScreenMatches),window.addEventListener("orientationchange",this.boundUpdateScreenMatches),this.initialized=!0},cleanup:function(){window.removeEventListener("resize",this.boundUpdateScreenMatches),window.removeEventListener("orientationchange",this.boundUpdateScreenMatches),this.initialized=!1,this.boundUpdateScreenMatches.cancel&&this.boundUpdateScreenMatches.cancel()},updateScreenMatches:function(){var e=u();i()(this.currentMatches,e)||(this.currentMatches=e,this.notifyListeners())},notifyListeners:function(){var e=this;this.listeners.forEach(function(n){n(e.currentMatches)})}};n.Z=function(){var e=(0,o.useState)(function(){return m.initialized?m.currentMatches:d()}),n=e[0],a=e[1];return(0,o.useEffect)(function(){return m.initialized||m.initialize(),a(function(e){return i()(e,m.currentMatches)?e:m.currentMatches}),m.subscribe(function(e){a(e)})},[]),n}},69108:function(e){e.exports={wrapper:"BaseDrawer_wrapper__YrZDz",iconClose:"BaseDrawer_iconClose__p1mT5",iconBack:"BaseDrawer_iconBack__ah3Pt"}},67784:function(e){e.exports={wraper:"CheckBox_wraper__GbOVe",square:"CheckBox_square__CAk9R",circle:"CheckBox_circle__YRSzj",brand:"CheckBox_brand__ymZyU"}},83566:function(e){e.exports={wraper:"Form_wraper__jC8Fu"}},69922:function(e){e.exports={wrapper:"Loading_wrapper__BPPxK",componentWrapper:"Loading_componentWrapper__rj0H1",imgWrapper:"Loading_imgWrapper__d_ClT"}},33591:function(e){e.exports={dealHeader:"Header_dealHeader__sqZI2",dealThumbnail:"Header_dealThumbnail__X_S9Y",dealLabel:"Header_dealLabel__y8eCY",dealHeaderLeft:"Header_dealHeaderLeft__OTqaX",singleDetailIntro:"Header_singleDetailIntro__Tandq",productItemTitle:"Header_productItemTitle__JIktC",productItemText:"Header_productItemText___Gupf",voucherName:"Header_voucherName__gV7WG",bundleDetailIntro:"Header_bundleDetailIntro__23ECF",bundleName:"Header_bundleName__wsFmY",bundleDesc:"Header_bundleDesc__s_lcm",bundleDescTitle:"Header_bundleDescTitle__0TZb5",bundleRichText:"Header_bundleRichText__emt_S",showDesc:"Header_showDesc__bvo3i",hideDesc:"Header_hideDesc__kWGqz",bundleDescCont:"Header_bundleDescCont__WczRp",bundleDescAction:"Header_bundleDescAction__be0bJ",arrowUp:"Header_arrowUp__PC6LU",bundleVch:"Header_bundleVch__IUsdD",bundleMoreVch:"Header_bundleMoreVch__CiBmJ",productItemCont:"Header_productItemCont__6yWrT",bundleOneVch:"Header_bundleOneVch__ixILk",productItemMore:"Header_productItemMore___uJq3",dealTipsWrap:"Header_dealTipsWrap__zhnQ4",dealTips:"Header_dealTips__zor5u",tips:"Header_tips__Jsd7w",action:"Header_action__mPbfh",bundleDrawerWrap:"Header_bundleDrawerWrap__dnoyv",bundleDrawerHead:"Header_bundleDrawerHead__5lIrQ",bundleCloseBtn:"Header_bundleCloseBtn__IBqrK"}},39917:function(e){e.exports={redeemWrap:"Redeem_redeemWrap__Iaq9t",redeemHeader:"Redeem_redeemHeader__SZITk",redeemTitle:"Redeem_redeemTitle__oPXJz",redeemLine:"Redeem_redeemLine__P3hcp",redeemAmount:"Redeem_redeemAmount__IMYqu",tokenNum:"Redeem_tokenNum__rnsOA",redeemTipsContainer:"Redeem_redeemTipsContainer__nnp1z",tips:"Redeem_tips__vitfF",redeemBtn:"Redeem_redeemBtn__xOsIK",redeemBtnDisable:"Redeem_redeemBtnDisable__NpvLB",action:"Redeem_action__h0_lF",confirmModal:"Redeem_confirmModal__8xY32"}},62047:function(e){e.exports={productTabsWrap:"Tabs_productTabsWrap__2KCue",productTabList:"Tabs_productTabList__n4CJZ",productTabItem:"Tabs_productTabItem__YGhCG",tabTitle:"Tabs_tabTitle__TXK_k",activeTabTitle:"Tabs_activeTabTitle__HG_Nm",productTabListWebsite:"Tabs_productTabListWebsite__wxh4r",tabItem:"Tabs_tabItem__2P1tZ",activeTabItem:"Tabs_activeTabItem__upBMZ",productTabCont:"Tabs_productTabCont__2kVGh",tabSubModule:"Tabs_tabSubModule__lM0gq",first:"Tabs_first__FIoSu",last:"Tabs_last__CjKVZ",noborder:"Tabs_noborder__j0W7o",tabSubCont:"Tabs_tabSubCont__IV0M3",tabSubImage:"Tabs_tabSubImage__zeBFB",tabSubTitle:"Tabs_tabSubTitle__T6BFc"}},56979:function(e){e.exports={famexProductDetail:"DealDetail_famexProductDetail__5ps5D",protocalWrap:"DealDetail_protocalWrap__1rvZP",tcWrapper:"DealDetail_tcWrapper__sOCPK",protocalItem:"DealDetail_protocalItem__X3GHy",protocalCheckbox:"DealDetail_protocalCheckbox__0WWjn",no
1ResultCls:"DealDetail_noResultCls__QLO_D"}},23199:function(e){e.exports={earnTokenBlock:"FamexEarnToken_earnTokenBlock___TYj8",textBlock:"FamexEarnToken_textBlock__Ds3St",offerTextBlock:"FamexEarnToken_offerTextBlock__MVW_E",tokenBlock:"FamexEarnToken_tokenBlock__8hEg0",earnSuffix:"FamexEarnToken_earnSuffix__zIdR_",earnPrefix:"FamexEarnToken_earnPrefix__Qe766",tokenIcon:"FamexEarnToken_tokenIcon__F8X9o",token:"FamexEarnToken_token__siGEv",icon:"FamexEarnToken_icon__8u1vI",iconUp:"FamexEarnToken_iconUp__g5X7o",earnModal:"FamexEarnToken_earnModal__eJ7W5",earnModalMain:"FamexEarnToken_earnModalMain__rb3xa",earnModalTitle:"FamexEarnToken_earnModalTitle___mi9d",earnModalCont:"FamexEarnToken_earnModalCont__Nmjbz",earnModalText:"FamexEarnToken_earnModalText__uXoOa",earnModalNum:"FamexEarnToken_earnModalNum__Lw6Q_",earnModalTips:"FamexEarnToken_earnModalTips__wo30Y",earnTokenOverlay:"FamexEarnToken_earnTokenOverlay___bhBH"}}},function(e){e.O(0,[3662,7538,1059,4332,4470,8739,9774,2888,179],function(){return e(e.s=52182)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.