1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5999],{39008:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/corporate/business-travel/bind-btp",function(){return n(52349)}])},11440:function(e,t,n){"use strict";var r=n(26042),a=n(85893),i=n(97538),o=n(83566),s=n.n(o),c=i.Z.Item,l=i.Z.ErrorList,d=i.Z.List,p=i.Z.Provider,u=i.Z.create,m=i.Z.useForm,f=function(e){return(0,a.jsx)("div",{className:s().wraper,children:(0,a.jsx)(i.Z,(0,r.Z)({},e))})};f.Item=c,f.ErrorList=l,f.List=d,f.Provider=p,f.create=u,f.useForm=m,t.Z=f},3904:function(e,t,n){"use strict";var r=n(26042),a=n(69396),i=n(99534),o=n(85893),s=n(22512),c=n(51024),l=n(39050),d=n.n(l),p=function(e){var t=e.label,n=e.required,l=e.type,p=e.showPasswordPlaceholder,u=(0,i.Z)(e,["label","required","type","showPasswordPlaceholder"]),m=(0,s.Z)().sm;return t&&!m&&"string"==typeof t&&(u.placeholder="".concat(t).concat(n?"*":"")),(0,o.jsxs)("div",{className:d().wrapper,children:[t&&(0,o.jsxs)("div",{className:d().label,children:[t," ",n?"*":""]}),"password"===l?(0,o.jsx)(c.default.Password,(0,a.Z)((0,r.Z)({},u),{placeholder:p?u.placeholder:"",iconRender:function(e){var t;return e?(0,o.jsx)("span",{children:(0,o.jsx)("div",{className:d().openEye})}):(0,o.jsx)("span",{children:(0,o.jsx)("div",{className:d().closeEye})})}})):(0,o.jsx)(c.default,(0,r.Z)({type:l},u))]})},u=function(e){var t=e.label,n=e.required,a=(0,i.Z)(e,["label","required"]);return(0,o.jsxs)("div",{className:d().wrapper,children:[t&&(0,o.jsxs)("div",{className:d().label,children:[t," ",n?"*":""]}),(0,o.jsx)(c.default.TextArea,(0,r.Z)({},a))]})};p.TextArea=u,t.Z=p},66248:function(e,t,n){"use strict";var r=n(85893),a=n(11163),i=n(17248),o=n.n(i),s=n(86073),c=n(94184),l=n.n(c),d=n(57852);t.Z=function(e){var t=e.title,n=e.back,i=e.backFn,c=e.show,p=void 0!==c&&c,u=(0,a.useRouter)(),m=(0,d.Z)();return(0,r.jsxs)("div",{className:l()("h-50px bg-color-fff relative flex justify-center items-center sm:hidden",{hidden:p?!p:m}),children:[(void 0===n?null:n)||(0,r.jsx)("span",{className:"".concat(o().iconBack," py-10px px-15px absolute left-0"),onClick:function(){"function"==typeof i?i():u.back()}}),(0,r.jsx)(s.Z,{className:"text-st line-clamp-1 px-30px",children:t})]})}},52349:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return z},default:function(){return G}});var r=n(26042),a=n(69396),i=n(85893),o=n(47568),s=n(14924),c=n(828),l=n(10092),d=n(67294),p=n(74555),u=n(94184),m=n.n(u),f=n(84482),_=n(46005),h=n(98413),v=n(13284),b=n(11440),B=n(3904),x=n(11163),T=n.n(x),N=n(10268),Z=n(35829),j=n(71729),y=n(84740),C=n(48071),P=n(66248),w=n(23279),k=n.n(w),g=n(14362),I=n(7e3),L=n(57852),E=n(12583),W=n(44946),R=n(4050),D=n.n(R),S={UNBIND:"UNBIND",BIND:"BIND",REBIND:"REBIND"},q=function(e){var t,n=e.dispatch,r=e.data,a=((void 0===r?{}:r)||{}).btpTermsAndConditions,p=void 0===a?{}:a,u=(0,x.useRouter)(),w=u.locale,R=u.query,q=(void 0===R?{}:R)||{},A=q.btpCode,M=q.type,F=void 0===M?"view":M,V=q.shareRefId,O=q.companyName,z=null==A?void 0:A.trim(),G=(0,N.$G)("bindBtp").t,U=(0,N.$G)("common").t,X=(0,L.Z)(),J=(0,c.Z)(b.Z.useForm(),1)[0],Q=(0,d.useState)(!1),$=Q[0],H=Q[1],Y=(0,d.useState)(void 0===O?"":O),K=Y[0],ee=Y[1];(0,d.useEffect)(function(){document.title=G("title")},[G]),(0,d.useEffect)(function(){z&&(E.Z.show(),n({type:"btp/fetchBtpCompanyByCode",payload:{query:{btpCode:z},onSuccess:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).data,t=(e||{}).companyName;ee(void 0===t?"":t),E.Z.hide()},onError:function(){E.Z.hide(),j.Z.alert({content:U("networkTipsTechnicalDifficulty"),okText:U("ok")})}}}))},[z,n,U]);var et,en,er,ea=function(e){return e===I.N0.LOGIN},ei=function(){if((0,g.isWechatMiniProgram)())(0,Z.pageBack)({delta:2});else{var e=(0,y.XW)(C.JT,{locale:w});(0,Z.openUrl)({url:e})}},eo=function(e){if(!e.btpCode){j.Z.alert({content:U("networkTipsTechnicalDifficulty"),okText:U("ok")});return}n({type:"btp/btpManagement",payload:{query:e,onSuccess:function(e){var t=e.data,n=e.requestStatus,r=(void 0===t?{}:t)||{},a=r.statusCode,o=r.message;if(!ea(n))return(0,Z.openLogin)();if(200===a)ei();else if(383002===a)j.Z.alert({content:o,onOk:function(){T().reload()}});
1else if(383004===a)j.Z.confirm({title:G("change.title"),content:G("change.desc"),okText:G("change.confirm"),cancelText:G("change.cancel"),btnType:"custom",onOk:function(){es()}});else if(383003===a){var s=(0,y.XW)(C.Rm,{locale:w});j.Z.alert({content:(0,i.jsx)("div",{children:(0,i.jsx)(v.Z,{data:{value:G("input.errorTips").replace("{href}",s)}})})})}else j.Z.alert({content:o})},onError:function(e){(0,W.Q1)(e)&&j.Z.dialog({content:e,okText:U("ok")})}}})},es=function(){var e={btpCode:z,operationType:S.REBIND,popupAlertShown:!0,shareRefId:V};eo(e,function(e){var t=e.data,n=e.requestStatus,r=(void 0===t?{}:t)||{},a=r.statusCode,i=r.message;if(!ea(n))return(0,Z.openLogin)();200===a?ei():j.Z.alert({content:i})})},ec=(et=(0,o.Z)(function(e,t){return(0,l.__generator)(this,function(e){return t?(H(!1),[2,Promise.resolve()]):(H(!0),[2])})}),function(e,t){return et.apply(this,arguments)}),el=(en=(0,o.Z)(function(){var e,t,n,r,a;return(0,l.__generator)(this,function(i){switch(i.label){case 0:t=(e=J.getFieldsValue(["btpCodeValue","checkTc"])).btpCodeValue,n=e.checkTc,r={btpCode:null==t?void 0:t.trim(),operationType:S.BIND,shareRefId:V},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,J.validateFields()];case 2:if(i.sent(),!n)return[2];return eo(r),[3,4];case 3:return a=i.sent(),console.log("submit failed",a),[3,4];case 4:return[2]}})}),function(){return en.apply(this,arguments)}),ed=(er=(0,o.Z)(function(){var e;return(0,l.__generator)(this,function(t){return"edit"===F?(el(),[2]):(e={btpCode:z,companyName:K,operationType:S.BIND,shareRefId:V,activation:"active"===F},eo(e),[2])})}),function(){return er.apply(this,arguments)});return(0,i.jsx)(f.Z,{type:"normal",containerClass:m()(D().bindBtp,"text-regular"),className:m()(D().bindBtpWrapper,(0,s.Z)({},D().webviewWrapper,X)),children:(0,i.jsxs)("div",{className:D().mainCont,children:[(0,i.jsxs)("div",{type:"normal",className:D().customizStayHeader,children:[(0,i.jsx)("div",{className:"sm:hidden relative z-1",children:(0,i.jsx)(P.Z,{title:G("title"),backFn:Z.pageBack})}),(0,i.jsx)("div",{className:D().pageTitle,children:G("title")}),(0,i.jsx)("div",{className:D().description,children:G("desc")})]}),"edit"===F?(0,i.jsx)(b.Z,{name:"bind-btp-wrapper",form:J,autoComplete:"off",validateTrigger:"onChange",children:(0,i.jsxs)("div",{type:"normal",className:m()(D().bindBtpMain,D().editBtp),children:[(0,i.jsxs)("div",{className:m()(D().btpCodeItem),children:[(0,i.jsx)("div",{className:D().btpCodeLabel,children:G("btpCode")}),(0,i.jsx)(b.Z.Item,{name:"btpCodeValue",rules:[{required:!0,message:G("btpCodePlaceholder")},],children:(0,i.jsx)(B.Z,{allowClear:!0,placeholder:"CP_BTP_",required:!0,maxLength:100})})]}),(0,i.jsxs)("div",{className:D().tcWrapper,children:[(0,i.jsx)(b.Z.Item,{name:"checkTc",rules:[{validator:ec},],valuePropName:"checked",children:(0,i.jsx)(h.Z,{})}),(0,i.jsx)("div",{className:D().tcText,children:(0,i.jsx)(v.Z,{className:"font-medium",data:null==p?void 0:p.termsAndConditions})})]}),$&&(0,i.jsx)("div",{className:D().errorText,children:null==p?void 0:null===(t=p.termsAndConditionsAlertMessage)||void 0===t?void 0:t.value})]})}):(0,i.jsxs)("div",{type:"normal",className:D().bindBtpMain,children:[(0,i.jsxs)("div",{className:D().formItem,children:[(0,i.jsx)("div",{className:D().formLabel,children:G("btpCode")}),(0,i.jsx)("div",{className:D().formValue,children:z})]}),(0,i.jsxs)("div",{className:D().formItem,children:[(0,i.jsx)("div",{className:D().formLabel,children:G("companyName")}),(0,i.jsx)("div",{className:D().formValue,children:K})]})]}),(0,i.jsx)("div",{className:D().btnWrapper,children:(0,i.jsx)(_.Z,{type:"primary",htmlType:"submit",className:m()(D().confirm,"adobe-link"),adobeTrack:{editable:"edit"===F?"BTP Referral Link":"acitve"===F?"BTP Referral Activate":"BTP Referral Page Link Button"},onClick:k()(ed,300),children:G("submit")})})]})})},A=(0,p.$j)(function(e){var t=e.header||{};return(0,r.Z)({},t)})(q),M=n(17620),F=n(85822),V=n(371),O=function(e){var t=(0,V.Xz)().data;return(0,i.jsx)(A,(0,a.Z)((0,r.Z)({},e),{data:t}))};O.model=[M.Z,F.Z];var z=!0,G=O},83566:function(e){e.exports={wraper:"Form_wraper__jC8Fu"}},39050:function(e){e.exports={label:"Input_label__zgvcz",wrapper:"Input_wrapper__6Wace",openEye:"Input_openEye__G_OSW",closeEye:"Input_closeEye__0JPi8"}},17248:function(e){e.exports={iconBack:"MobileBack_iconBack__fSzge"}},4050:function(e){e.exports={bindBtp:"BindBTP_bindBtp__GvwMm",mainCont:"BindBTP_mainCont__lwirW",bindBtpWrapper:"BindBTP_bindBtpWrapper__w0987",webviewWrapper:"BindBTP_webviewWrapper___OChG",bindBtpMain:"BindBTP_bindBtpMain__htA0D",editBtp:"BindBTP_editBtp__Jo93C",btpCodeItem:"BindBTP_btpCodeItem__Y_SaZ",btpCodeLabel:"BindBTP_btpCodeLabel__V7CRq",pageTitle:"BindBTP_pageTitle__LA9Qh",description:"BindBTP_description__hQ7LM",formItem:"BindBTP_formItem__5ABUC",formLabel:"BindBTP_formLabel__LoOUD",formValue:"BindBTP_formValue__umIdW",tcWrapper:"BindBTP_tcWrapper__bdf95",tcText:"BindBTP_tcText__djbjy",errorText:"BindBTP_errorText__lLe6D",btnWrapper:"BindBTP_btnWrapper__Rfboo",confirm:"BindBTP_confirm__eLy2h",errorTips:"BindBTP_errorTips__M6k8e"}}},function(e){e.O(0,[3662,1024,7538,1059,5860,122,9774,2888,179],function(){return e(e.s=39008)}),_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.