1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6232],{65533:function(e,t,a){"use strict";a.d(t,{Z:function(){return _}});var i=a(59499),r=a(27361),n=a.n(r),s=a(67294),o=a(42238),l=a.n(o),c=a(51192),p=a(63723),d=a(85893);var m=e=>{let{viewText:t,isShow:a,downloadUrl:i}=e;return a?(0,d.jsxs)(h,{children:[(0,d.jsx)(u,{src:(0,p.g)("img/icons/kp_icon_app_80x80.png")}),(0,d.jsxs)(w,{children:[(0,d.jsx)(x,{children:"KING POWER"}),(0,d.jsx)(y,{children:"King Power Click Co., Ltd."})]}),(0,d.jsx)(g,{href:i,target:"_blank",children:t})]}):null};const h=c.ZP.div.withConfig({displayName:"AppBanner__AppBannerLayout",componentId:"sc-1itdepo-0"})(["width:100%;height:80px;background:#f2f2f2;position:relative;"]),u=c.ZP.img.withConfig({displayName:"AppBanner__AppLogo",componentId:"sc-1itdepo-1"})(["width:60px;margin:10px;display:inline-table;"]),w=c.ZP.div.withConfig({displayName:"AppBanner__AppDetail",componentId:"sc-1itdepo-2"})(["display:inline-block;width:100%;max-width:180px;position:absolute;top:25px;left:80px;"]),x=c.ZP.div.withConfig({displayName:"AppBanner__AppName",componentId:"sc-1itdepo-3"})(["font-size:14px;font-weight:200px;position:relative;"]),y=c.ZP.div.withConfig({displayName:"AppBanner__AppOrganize",componentId:"sc-1itdepo-4"})(["font-size:12px;position:relative;margin-top:-3px;"]),g=c.ZP.a.withConfig({displayName:"AppBanner__AppView",componentId:"sc-1itdepo-5"})(["color:#0b56a4;position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:14px;font-weight:200px;text-decoration:none;"]);var v=a(55141),f=a.n(v);function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?j(Object(a),!0).forEach((function(t){(0,i.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var _=e=>{const t=class extends s.Component{constructor(){super(...arguments),(0,i.Z)(this,"render",(()=>{const t="mobile"===n()(this.props,"userAgent.device.type"),a=this.props.intl.formatMessage({id:"common.common.view_app"}),i={Android:"https://play.google.com/store/apps/details?id=".concat(f().androidAppId),iOS:"https://itunes.apple.com/us/app/king-power-shopping/id".concat(f().iOSAppId),Huawei:"https://appgallery.huawei.com/#/app/".concat(f().huaweiAppId)};return(0,d.jsxs)("div",{children:[(0,d.jsx)(m,{isShow:t,viewText:a,downloadUrl:i[(()=>{switch(n()(this.props,"userAgent.os.name")){case"Android":return"Huawei"===n()(this.props,"userAgent.device.vendor")?"Huawei":"Android";case"iOS":return"iOS"}})()]}),(0,d.jsx)(e,b({},this.props))]})}))}static async getInitialProps(t){let a;const{req:i}=t,r=l()(i?n()(i,"headers[user-agent]"):n()(navigator,"userAgent"));return"function"===typeof e.getInitialProps&&(a=await e.getInitialProps(t)),b(b({},a),{},{userAgent:r})}};return t}},29022:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return U}});var i=a(59499),r=a(46020),n=a.n(r),s=a(30381),o=a.n(s),l=a(11163),c=a(84059),p=a(67294),d=a(21597),m=a(51192),h=a(77682),u=a(37708),w=a(85893);var x,y,g=e=>{let{targetDate:t,isHiddenDay:a=!1,isHiddenHour:i=!1,setEndDeal:r,setStartDeal:n}=e;const s=()=>{const e=+new Date(t)-+new Date;if(e<=0)return a?{hrs:"00",mins:"00",secs:"00"}:i?{mins:"00",secs:"00"}:{days:"00",hrs:"00",mins:"00",secs:"00"};const r=Math.floor(e/864e5),n=Math.floor(e/36e5%24),s=Math.floor(e/6e4%60),o=Math.floor(e/1e3%60),l=r>99?99:(0,u.Iq)(r),c=(0,u.Iq)(n),p=(0,u.Iq)(s),d=(0,u.Iq)(o);return a?{hrs:c,mins:p,secs:d}:i?{mins:p,secs:d}:{days:"".concat(l,"d"),hrs:c,mins:p,secs:d}},{0:o,1:l}=(0,p.useState)(s());return(0,p.useEffect)((()=>{setTimeout((()=>{l(s())}),1e3)}),[o]),(0,p.useEffect)((()=>{const{days:e,hrs:t,mins:s,secs:l}=o;a&&"00"===t&&"00"===s&&"00"===l||i&&"00"===s&&"00"===l?(null===n||void 0===n?void 0:n())||null===r||void 0===r||r():a||"00"!==e||"00"!==t||"00"!==s||"00"!==l||(null===n||void 0===n?void 0:n())||null===r||void 0===r||r()}),[o,a]),(0,w.jsx)(w.Fragment,{children:Object.entries(o).map((e=>
1{let[t,a]=e;return(0,w.jsx)("span",{children:"secs"!==t?a+":":a},t)}))})},v=a(73669),f=a(5458),j=a(94315),b=a(63723),_=a(28324),O=a(19444),M=a(65533),P=a(57617),z=a(4271),S=a(44797),N=a(49982),Z=a(71383),D=a(25801),I=a.n(D),k=a(40839),A=a(84442);const C=(0,m.ZP)(I()).withConfig({displayName:"CaptureQrCodeModal__WrapperModalStyled",componentId:"sc-1bw80z1-0"})([".modal-dialog{position:absolute;z-index:10040;top:50%;left:50%;transform:translate(-50%,-50%) !important;display:flex;justify-content:center;","}.modal-content{width:fit-content;box-shadow:0px 6px 16px rgba(0,0,0,0.12);border-radius:4px;border:unset;","}"],A.eq.mobile(x||(x=(0,Z.Z)(["\n top: 0;\n left: 0;\n width: 100%;\n margin: 0;\n transform: translate(0%, 0%) !important;\n\n "]))),A.eq.mobile(y||(y=(0,Z.Z)(["\n width: 100%;\n "])))),q=m.ZP.div.withConfig({displayName:"CaptureQrCodeModal__WrapperHeaderStyled",componentId:"sc-1bw80z1-1"})(["text-align:center;font-size:20px;line-height:28px;font-family:",";color:",";"],k.dv,h.zM.getContentColor("onForeground","high")),T=m.ZP.div.withConfig({displayName:"CaptureQrCodeModal__WrapperModalBodyStyled",componentId:"sc-1bw80z1-2"})(["padding:24px;display:flex;flex-direction:column;"]);var E=e=>{let{isShow:t}=e;return(0,w.jsx)(p.Fragment,{children:(0,w.jsx)(C,{id:"payment_qr-promptpay-image-save-alert-dialog",show:t,backdrop:!0,dialogClassName:"modal-dialog-flight-box-status",children:(0,w.jsx)(T,{children:(0,w.jsx)(q,{children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-image-save",defaultMessage:"Saved image successfully"})})})})})},B=a(7598),H=a(84709),V=a(36872),F=a(92580);function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Q(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?R(Object(a),!0).forEach((function(t){(0,i.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):R(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var W=function(e){return(0,w.jsxs)("svg",Q(Q({width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:[(0,w.jsx)("path",{d:"M24.606 14.543l-.021.001-.02.002c-1.06.083-2.146.269-3.206.62-1.523.5-3.08 1.388-4.174 2.816-1.1 1.413-1.564 3.154-1.603 4.782V36.36l-.005.177c-.007.327-.018.763.022 1.186.13 1.878.718 3.84 1.958 5.447A8.382 8.382 0 0 0 20.36 45.5c1.829.947 3.852 1.219 5.701 1.21l9.757-.001h19.608l.085-.01h.001c.018 0 .263-.022.497-.096a1.762 1.762 0 0 0 1.045-.866l.08-.153.042-.167a1.75 1.75 0 0 0-.241-1.393c-.139-.213-.315-.382-.346-.411l-.005-.004-.006-.007-.006-.006a8133.59 8133.59 0 0 0-3.874-3.729c-1.507-1.45-3.014-2.9-4.52-4.353v-5.433c0-2.019 0-4.037.002-6.055V23.984a11.472 11.472 0 0 0-.549-3.212c-.555-1.732-1.632-3.385-3.218-4.495-1.853-1.315-4.089-1.747-6.106-1.757H26.108c-.483-.033-.964-.006-1.338.014l-.164.009z",stroke:"#fff",strokeWidth:"2.992"}),(0,w.jsx)("path",{d:"M24.681 16.037c.458-.023.916-.057 1.374-.022 4.081.004 8.163 0 12.245.001 1.834.01 3.733.405 5.251 1.483 1.28.894 2.183 2.256 2.656 3.732a9.97 9.97 0 0 1 .477 2.794c-.004 4.04.001 8.083-.003 12.124 2.949 2.844 5.903 5.682 8.853 8.524.098.097.23.223.192.375-.071.137-.25.15-.385.165-9.762-.002-19.523 0-29.284 0-1.714.01-3.472-.245-5.01-1.042a6.886 6.886 0 0 1-2.304-1.912c-1.026-1.33-1.54-2.997-1.653-4.657-.04-.409-.02-.82-.013-1.23V22.8c.034-1.387.43-2.798 1.292-3.904.86-1.125 2.128-1.873 3.457-2.31a12.143 12.143 0 0 1 2.855-.549z",stroke:"#1A3663",strokeWidth:"2.992"}),(0,w.jsx)("rect",{x:"19.561",y:"18.495",width:"24.946",height:"24.946",rx:"5.984",fill:"#1A3663"}),(0,w.jsx)("path",{d:"M24.682 16.037c.457-.023.916-.057 1.373-.022 4.081.004 8.163 0 12.245.001 1.834.01 3.733.405 5.251 1.483 1.28.894 2.184 2.256 2.656 3.732a9.97 9.97 0 0 1 .477 2.794c-.004 4.041.001 8.083-.002 12.124 2.948 2.844 5.902 5.682 8.852 8.524.098.097.23.223.192.375-.07.137-.25.15-.385.165-9.761-.002-19.523 0-29.284 0-1.714.01-3.472-.245-5.01-1.042a6.886 6.886 0 0 1-2.304-1.912c-1.026-1.33-1.54-2.997-1.653-4.657-.04-.409-.019-.82-.012-1.23V22.8c.033-1.387.43-2.798 1.291-3.904.86-1.125 2.128-1.873 3.458-2.31a12.142 12.142 0 0 1 2.855-.549zm-1.716 3.753c-.647.21-1.243.619
1-1.614 1.196a3.51 3.51 0 0 0-.534 2v5.907h5.156v-2.82c-.006-.465.201-.941.585-1.214.386-.279.88-.352 1.347-.34h2.349c.004-1.645-.001-3.29.003-4.934-1.78-.006-3.558 0-5.336-.003a4.847 4.847 0 0 0-1.956.208zm10.764-.21c-.008 1.645-.002 3.291-.002 4.937.829.001 1.66 0 2.49 0 .442.003.909.1 1.261.384.35.276.535.728.53 1.169 0 .94-.01 1.881-.005 2.822 1.72.002 3.441 0 5.161 0V22.89a3.744 3.744 0 0 0-.233-1.405 2.739 2.739 0 0 0-1.308-1.47c-.783-.407-1.694-.511-2.563-.435-1.777-.002-3.554.005-5.33-.002zM20.82 32.32v6.235c.014.493.111.993.349 1.431.283.537.766.95 1.312 1.203.787.368 1.673.48 2.534.442h5.242c0-1.645.002-3.29 0-4.935h-2.49c-.442-.001-.909-.1-1.261-.384-.35-.278-.534-.73-.529-1.172v-2.82H20.82zm17.178.202c-.005.887 0 1.775 0 2.661.013.379-.084.778-.346 1.062-.293.309-.731.443-1.148.438-.959-.004-1.918.005-2.876-.005-.022.214-.005.429-.01.645-.002 1.411.003 2.822-.003 4.234.407.016.815.003 1.222.007 4.076-.003 8.152.005 12.228-.004-1.752-1.76-3.515-3.506-5.268-5.265-1.272-1.252-2.517-2.533-3.799-3.773z",fill:"#fff"}),(0,w.jsx)("path",{d:"M37.997 32.522c1.283 1.24 2.526 2.522 3.797 3.773 1.753 1.759 3.517 3.505 5.269 5.265-4.076.009-8.152.001-12.228.004-.409-.004-.816.009-1.223-.007.007-1.412 0-2.823.003-4.235.005-.215-.012-.431.01-.644.96.01 1.918 0 2.876.005.418.005.857-.13 1.149-.438.262-.284.359-.683.345-1.062 0-.888-.004-1.775.001-2.661h.001z",fill:"#54A69A"})]}))},L=function(e){return(0,w.jsxs)("svg",Q(Q({width:"74",height:"24",viewBox:"0 0 74 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:[(0,w.jsx)("path",{d:"M47.14 4.406a.447.447 0 0 1-.304-.102.355.355 0 0 1-.116-.288.369.369 0 0 1 .126-.3.553.553 0 0 1 .366-.112c.16-.015.32.033.447.133a.478.478 0 0 1 .14.363v.958l.412-1.116h.292l.407 1.116V3.654h.653v2.323h-.657v-.065l-.553-1.482-.559 1.487v.062h-.653V4.406zm.187-.223a.292.292 0 0 0 0-.349.195.195 0 0 0-.147-.06.205.205 0 0 0-.151.06.283.283 0 0 0 0 .35.205.205 0 0 0 .15.06.196.196 0 0 0 .152-.057l-.004-.004zM51.396 5.913a.375.375 0 0 1-.12-.3.348.348 0 0 1 .122-.275.447.447 0 0 1 .303-.112V4.89a.558.558 0 0 0-.033-.214.181.181 0 0 0-.124-.101.93.93 0 0 0-.264-.028c-.112 0-.242 0-.388.013-.147.013-.27.019-.363.034v-.2a.786.786 0 0 1 .205-.577c.138-.138.369-.207.692-.207a.95.95 0 0 1 .172.014c.053.01.104.02.15.031a.928.928 0 0 0 .249.038c.06 0 .122-.009.18-.029a.549.549 0 0 0 .172-.111l.176.273a.603.603 0 0 1-.404.155 1.035 1.035 0 0 1-.33-.05.995.995 0 0 0-.297-.047.415.415 0 0 0-.416.446c.16 0 .276-.009.348-.009a2.35 2.35 0 0 1 .528.047c.117.023.221.087.294.18.075.116.11.253.1.391v.588c0 .33-.194.495-.582.495a.56.56 0 0 1-.37-.109zm.491-.121a.25.25 0 0 0 .058-.177.235.235 0 0 0-.058-.173.199.199 0 0 0-.147-.059.208.208 0 0 0-.151.06.23.23 0 0 0-.06.172.247.247 0 0 0 .06.177.202.202 0 0 0 .15.062.193.193 0 0 0 .148-.06v-.002zM51.07 2.964a.613.613 0 0 0 .156-.073.643.643 0 0 0 .144-.112.347.347 0 0 1-.271-.111.371.371 0 0 1-.085-.24.359.359 0 0 1 .247-.345.412.412 0 0 1 .168-.023.489.489 0 0 1 .335.111.35.35 0 0 1 .12.27.429.429 0 0 1-.085.282.62.62 0 0 1-.207.162c.266-.017.455-.079.565-.188a.73.73 0 0 0 .19-.479h.464a.834.834 0 0 1-.357.67c-.25.158-.544.236-.84.222h-.549l.005-.146zm.48-.388a.223.223 0 0 0 .051-.154.223.223 0 0 0-.051-.153.177.177 0 0 0-.137-.056.169.169 0 0 0-.133.059.249.249 0 0 0 0 .302.169.169 0 0 0 .133.06.177.177 0 0 0 .137-.058zM53.83 4.923a.428.428 0 0 1 .144-.324c.12-.1.274-.148.43-.137a.584.584 0 0 1 .374.111.404.404 0 0 1 .019.58.436.436 0 0 1-.311.112v.5h.49a.237.237 0 0 0 .265-.27V4.345a.516.516 0 0 0-.15-.376.577.577 0 0 0-.434-.154.872.872 0 0 0-.447.111.581.581 0 0 0-.261.324h-.236a.78.78 0 0 1 .362-.467c.222-.123.474-.182.728-.171.273-.012.543.052.782.183a.608.608 0 0 1 .303.557v1.126a.475.475 0 0 1-.137.385.636.636 0 0 1-.417.111H53.83v-1.05zm.764.12a.24.24 0 0 0 .06-.175.246.246 0 0 0-.06-.176.198.198 0 0 0-.15-.063.196.196 0 0 0-.148.063.255.255 0 0 0-.057.176.249.249 0 0 0 .057.175.198.198 0 0 0 .149.06.2.2 0 0 0 .15-.06zM59.319 3.654v2.323h-.592a2.183 2.183 0 0 0-.282-.357 1.419 1.419 0 0 0-.43-.31v.167a.538.538 0 0 1-.148.406.663.663 0 0 1-.465.14.453.453 0 0 1-.52-.482c0-.116.04-.229.112-.32a.559.559 0 0 1 .37-.18v-.635a.447.447 0 0 1-.305-.102.356.356 0 0 1-.124-.288.37.37 0 0 1 .126-.3.552.552 0 0 1 .367-.112c.16-.015.32.033.446.133a.477.477 0 0 1 .14.363v.995c.141.05.274.12.396.208.097.066.183.146.257.238V3.644l.652.01zm-1.99 2.12a.285.285 0 0 0 .033-.157v-.404a.307.307 0 0 0-.284.319c-.003.07.012.14.043.204a.127.
1127 0 0 0 .112.081.112.112 0 0 0 .094-.043h.002zm-.08-1.587a.204.204 0 0 0 .152.06.196.196 0 0 0 .147-.06.292.292 0 0 0 0-.35.196.196 0 0 0-.147-.06.204.204 0 0 0-.151.06.283.283 0 0 0 0 .35zM60.827 5.879a.557.557 0 0 1-.133-.393V3.654h.653v1.589a.48.48 0 0 1 .307.093.334.334 0 0 1 .117.276.375.375 0 0 1-.128.3.56.56 0 0 1-.369.112c-.209 0-.359-.052-.447-.145zm.627-.086a.246.246 0 0 0 .06-.177.23.23 0 0 0-.06-.172.207.207 0 0 0-.15-.06.201.201 0 0 0-.148.06.236.236 0 0 0-.059.172.25.25 0 0 0 .059.177.195.195 0 0 0 .148.062.202.202 0 0 0 .15-.062zM63.14 4.406a.447.447 0 0 1-.304-.102.356.356 0 0 1-.12-.288.372.372 0 0 1 .126-.3.56.56 0 0 1 .367-.112c.16-.015.32.033.447.133a.477.477 0 0 1 .132.367v.958l.412-1.115h.293l.408 1.115V3.654h.652v2.323h-.648v-.065l-.558-1.482-.56 1.482v.063h-.647V4.406zm.188-.223a.296.296 0 0 0 0-.349.197.197 0 0 0-.149-.06.2.2 0 0 0-.15.06.283.283 0 0 0 0 .35.2.2 0 0 0 .15.06.198.198 0 0 0 .149-.058v-.003zM66.597 5.213c0-.213.132-.362.395-.446a.716.716 0 0 1-.31-.223.585.585 0 0 1-.124-.376.506.506 0 0 1 .172-.423.757.757 0 0 1 .48-.136.646.646 0 0 1 .385.1.323.323 0 0 1 .14.273.38.38 0 0 1-.112.29.457.457 0 0 1-.326.112.764.764 0 0 1-.086-.009.216.216 0 0 0 .13.19.61.61 0 0 0 .278.062h.249v.274h-.28a.308.308 0 0 0-.253.098.365.365 0 0 0-.083.244v.52h.567a.283.283 0 0 0 .223-.075.328.328 0 0 0 .068-.223v-1.81h.654v1.843a.556.556 0 0 1-.06.284.343.343 0 0 1-.196.15c-.123.034-.252.05-.38.045h-1.53v-.764zm.782-1.043a.24.24 0 0 0 .06-.175.246.246 0 0 0-.06-.177.213.213 0 0 0-.3 0 .246.246 0 0 0-.06.177.238.238 0 0 0 .06.175.218.218 0 0 0 .3 0zM67.883 3.103a.433.433 0 0 1-.124-.335.403.403 0 0 1 .15-.335c.129-.09.273-.159.425-.202l.15-.045a.262.262 0 0 0 .129-.086.19.19 0 0 0 .043-.112h.364c-.005.191-.081.31-.223.357l-.405.13a.936.936 0 0 0-.111.05c-.036.021-.053.038-.05.051a.267.267 0 0 1 .094-.021.273.273 0 0 1 .236.103c.045.063.068.139.065.216a.304.304 0 0 1-.125.25.447.447 0 0 1-.292.095.46.46 0 0 1-.326-.116zM68.36 3c.033-.04.05-.09.047-.143a.184.184 0 0 0-.047-.132.167.167 0 0 0-.181-.036.152.152 0 0 0-.051.036.187.187 0 0 0-.045.132.206.206 0 0 0 .045.143.146.146 0 0 0 .111.05.16.16 0 0 0 .121-.05zM52.748 12.86c-.655.52-1.59.78-2.806.78h-2.33v4.151h-2.323V6.795h4.804c1.107 0 1.99.276 2.65.828.658.551.987 1.407.987 2.565.002 1.26-.325 2.15-.982 2.672zM50.96 9.008c-.298-.238-.713-.357-1.245-.356h-2.103V11.8h2.107c.534 0 .949-.128 1.245-.384.295-.255.444-.662.446-1.219-.001-.555-.15-.952-.446-1.189h-.004zM58.175 11.446a3.47 3.47 0 0 0 .854-.18c.307-.125.46-.321.46-.588 0-.324-.112-.547-.353-.669-.242-.121-.581-.184-1.037-.184-.512 0-.874.121-1.087.363-.165.21-.27.46-.304.725h-2.06c.045-.692.245-1.26.602-1.705.566-.696 1.54-1.044 2.92-1.045a5.345 5.345 0 0 1 2.394.515c.698.344 1.047.992 1.047 1.945v3.626c0 .252.004.557.014.914.016.271.058.455.127.552a.77.77 0 0 0 .315.236v.305h-2.323a2.214 2.214 0 0 1-.135-.446c-.026-.14-.046-.3-.06-.479-.3.314-.646.58-1.026.791-.48.26-1.018.392-1.564.384-.744 0-1.359-.204-1.843-.613-.484-.408-.727-.987-.727-1.736 0-.973.39-1.677 1.17-2.112.427-.236 1.056-.406 1.888-.508l.728-.091zm1.306.965c-.131.08-.27.146-.413.2-.188.062-.38.11-.575.141l-.486.087c-.34.043-.671.138-.982.282a.939.939 0 0 0-.5.878c0 .354.104.608.31.766.215.16.48.243.749.235.458.003.907-.132 1.288-.387.393-.261.597-.737.612-1.43l-.003-.772zM68.74 8.119l-2.656 9.68h-2.177l.599-2.767-2.123-6.916h2.325l1.005 2.929.757-2.932 2.27.006z",fill:"#1A3663"}),(0,w.jsx)("path",{d:"M72.218.78v22.44H1.782V.78h70.436zM73 0H1v24h72V0z",fill:"#1A3663"}),(0,w.jsx)("path",{d:"M20.4 10.957c-.583 0-1.007.22-1.272.661a3.044 3.044 0 0 0-.396 1.596c0 .595.132 1.093.396 1.496.265.402.685.601 1.262.597.631 0 1.064-.236 1.3-.71.239-.493.36-1.035.352-1.583 0-.52-.085-.947-.255-1.28-.268-.518-.73-.777-1.387-.777zM36.015 10.99c-.67 0-1.13.327-1.377.982-.145.43-.213.884-.199 1.338-.01.38.058.756.2 1.108.25.583.708.873 1.376.873a1.386 1.386 0 0 0 1.125-.558c.298-.372.447-.925.447-1.658a3.023 3.023 0 0 0-.2-1.156c-.248-.62-.706-.93-1.372-.929z",fill:"#1A3663"}),(0,w.jsx)("path",{d:"M5.098 6.795v11.003h39.215V6.795H5.097zm7.351 5.195c-.382.446-.967.67-1.754.67H8.237v3.262H7.172V9.664h1.066v2.113h2.106c.475 0 .86-.1 1.157-.3.295-.199.444-.55.446-1.056 0-.568-.213-.953-.639-1.155a2.312 2.312 0 0 0-.962-.163H7.172v-.9h3.52c.698 0 1.26.195 1.688.582.427.387.641.931.642 1.63a2.347 2.347 0 0 1-.573 1.575zm4.737-.797a2.122 2.122 0 0 0-.157-.02c-.046-.005-.101 0-.158 0-.486 0-.858.152-1.117.459-.256.293-.395.67-.391 1.058v3.235h-.968v-5.63h.916v.97c.075-.188.26-.419.552-.69a1.446 1.446 0 0 1 1.012-.407h.092l.224.02-.005 1.005zm5.193 4.042c-.447.591-1.14.887-2.08.887-.784 0-1.406-.26-1.867-.781-.461-.52-.691-1.224-.69-2.108 0-.945.242-1.697.728-2.257.485-.56 1.138-.84 1.957-.84a2.597 2.597 0 0 1 1.861.724c.508.482.761 1.193.761 2.132 0 .903-.223 1.65-.67 2.243zm9.68.687h-1.006v-3.904c0-.372-.096-.63-.287-.772a1.146 1.146 0 0 0-.698-.211 1.401 1.401 0 0 0-.978.374c-.273.249-.41.664-.41 1.244v3.273h-.98V12.25c0-.382-.047-.66-.14-.836-.147-.262-.42-.394-.82-.394-.372.004-.729.153-.993.415-.297.277-.446.778-.446 1.503v2.984h-.965v-5.627h.955v.8c.178-.232.388-.437.623-.61.32-.214.697-.325 1.081-.32.458 0 .826.111 1.104.335.18.154.326.344.43.557.192-.282.451-.511.755-.67.302-.15.636-.226.974-.222.771 0 1.297.273 1.575.82.149.293.224.69.224 1.187l.002 3.75zm5.536-.306c-.411.332-.925.508-1.453.5a2.013 2.013 0 0 1-1.091-.279 2.51 2.51 0 0 1-.577-.54v2.032h-.963V10.32h.943v.746c.172-.236.388-.437.635-.593a2.073 2.073 0 0 1 1.148-.316 2.183 2.183 0 0 1 1.66.733c.455.489.683 1.187.682 2.094 0 1.226-.328 2.103-.984 2.631zm4.295-4.549h-.916v3.672c0 .197.068.329.204.395.12.046.247.065.375.057h.15c.053
10 .116-.005.187-.016v.75a2.144 2.144 0 0 1-.345.068 3.217 3.217 0 0 1-.389.022c-.447 0-.752-.112-.916-.335a1.48 1.48 0 0 1-.24-.88v-3.733h-.782v-.772H40v-1.57h.974v1.57h.916v.772z",fill:"#1A3663"})]}))};const Y=(0,m.ZP)(V.im).withConfig({displayName:"promptpay__PaymentWrapper",componentId:"sc-gcbzpn-0"})([""]),K=e=>{const{orderId:t}=e,a=(0,S.YB)(),i=(0,l.useRouter)(),{productSubtotalPrice:r,productDiscountPrice:s,subTotalPrice:d,shippingDiscountPrice:m,shippingFeePrice:u,shippingSubtotalPrice:x,orderDiscountPrice:y,grandTotalPrice:_,totalQty:O,paymentType:M,isMemberActive:P,caratBurn:N,orderSubtotal:Z,cartItemsSummaryDeparture:D,cartItemsSummaryArrival:I,cartItemsSummaryDelivery:k,isDisabledPayment:A,hasDelivery:C,promptPayInfo:q,isLoading:T,checkTransactionQrPromptpayStatus:V,isShowModalExpiredQrPromptpay:R,openModalExpiredQrPromptpay:Q,closeModalExpiredQrPromptpay:K,chargeQrPromptpay:U,validateToRepaymentPage:X,isLoadingChargeQrPromptpay:G,timePlace:J,orderStatusDisplay:$}=(0,H.SW)(),{0:ee,1:te}=(0,p.useState)(!1),{0:ae,1:ie}=(0,p.useState)(!1),{0:re,1:ne}=(0,p.useState)(0),se=(0,p.useRef)(null),oe=(0,p.useRef)();(0,p.useEffect)((()=>{i.beforePopState((e=>{let{url:a,as:i,options:r}=e;return!i.includes("/checkout/payment")||(window.location.href="/checkout/repayment?orderId=".concat(t),!1)}))}),[i]),(0,p.useEffect)((()=>{"ORDERED"!==$?T||U():i.push("/checkout/complete?orderId=".concat(t))}),[T,$,i]),(0,p.useEffect)((()=>(oe.current=setInterval((()=>{ne((e=>e+1)),re+1<360&&q?V(t,q.transactionId):(Q(),clearInterval(oe.current))}),5e3),()=>clearInterval(oe.current))),[q,re]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(F.R,{isLoading:G||T}),(0,w.jsx)("div",{className:(0,j.Z)("tw-sticky tw-top-0 tw-w-full tw-h-10 tw-bg-base-atv-primarydark-state-press tw-z-[100]"),children:(0,w.jsx)("div",{className:"tw-flex tw-justify-center tw-items-center tw-h-full tw-space-x-4",children:(0,w.jsx)(h.ZT,{type:"Subtitle.Subtitle1",variant:"onAlwaysWhite",level:"high",id:(0,h.Ox)("payment_qr-promptpay-expire-in-text"),children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-expire-in",defaultMessage:"Expires in {expireTime}",values:{expireTime:(null===q||void 0===q?void 0:q.expiryTime)&&(0,w.jsx)(g,{targetDate:o().unix(null===q||void 0===q?void 0:q.expiryTime).toDate(),isHiddenHour:!0,setEndDeal:()=>{Q(),clearInterval(oe.current)}})}})})})}),(0,w.jsx)(E,{isShow:ee}),(0,w.jsx)(Y,{children:(0,w.jsxs)("div",{className:"tw-grid tw-grid-cols-12 tw-pt-6 tw-gap-4 tablet-and-mobile:tw-pt-0 tablet-and-mobile:tw-gap-0",children:[(0,w.jsx)("div",{className:"tw-col-span-8 tw-bg-foreground-01dp tw-rounded tablet-and-mobile:tw-col-span-12",children:(0,w.jsxs)("div",{className:"tw-flex tw-flex-col tw-justify-start tw-items-center tw-gap-6 tw-p-6 tablet-and-mobile:tw-p-0 tablet-and-mobile:tw-pb-3 tablet-and-mobile:tw-py-3 tablet-and-mobile:tw-gap-3",children:[(0,w.jsxs)("div",{className:(0,j.Z)("tw-pr-2 tw-py-2 tw-justify-center tw-items-center tw-gap-1 tw-flex"),children:[(0,w.jsx)("div",{className:(0,j.Z)("tw-flex tw-items-center tw-justify-center tw-p-[8px]"),children:(0,w.jsx)("img",{src:(0,b.g)("img/icons/v2/icon40/ic_awaitingpayment_flat_40.svg"),alt:"Awaiting Payment",height:"40",width:"40"})}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-inline-flex tw-flex-col tw-justify-center tw-items-start tw-gap-1 tw-pr-2"),children:[(0,w.jsx)(h.ZT,{variant:"primary",type:"Heading.Heading3",id:(0,h.Ox)("payment_qr-promptpay-waiting-title-text"),children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-waiting-title",defaultMessage:"Waiting for payment"})}),(0,w.jsx)(h.ZT,{type:"Subtitle.Subtitle2",id:(0,h.Ox)("payment_qr-promptpay-waiting-description-text"),children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-waiting-description",defaultMessage:"Pay within {expireDate}",values:{expireDate:J?o().unix(J).add(30,"minutes").format("DD MMM YYYY, HH:mm"):""}})})]})]}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-flex-col tw-justify-start tw-items-center tw-gap-4 tw-flex tw-w-full"),children:[(0,w.jsx)("div",{ref:se,className:(0,j.Z)("tw-flex-col tw-justify-start tw-items-start tw-inline-flex"),children:(0,w.jsxs)("div",{className:"tw-bg-foreground-01dp tw-flex-col tw-justify-center tw-items-center tw-inline-flex tw-py-3 tw-px-4 tw-gap-3 tw-border-[1px] tw-border-solid tw-rounded tw-border-foreground-secondary tw-w-[354px] tablet-and-mobile:tw-w-full",children:[(0,w.jsx)(L,{}),(null===q||void 0===q?void 0:q.qrRawData)&&(0,w.jsxs)("div",{className:"tw-relative",children:[(0,w.jsx)("div",{className:"tw-absolute tw-inset-[70px]",children:(0,w.jsx)(W,{})}),(0,w.jsx)(c.tv,{value:null===q||void 0===q?void 0:q.qrRawData,size:204,height:204,level:"L",includeMargin:!1})]}),(0,w.jsxs)("div",{className:"h-14 tw-flex tw-flex-col tw-items-center justify-center items-center ",children:[(0,w.jsx)(h.ZT,{type:"Subtitle.Subtitle2",variant:"onForeground",level:"high",children:(0,w.jsx)(f.ZP,{ids:{priceId:"total-price"},price:_,suffix:null===a||void 0===a?void 0:a.formatMessage({id:"general_thb",defaultMessage:"THB"})})}),(0,w.jsx)(h.ZT,{type:"Body.Body2",id:(0,h.Ox)("payment_qr-promptpay-company-name-text"),variant:"onForeground",level:"medium",children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-company-name",defaultMessage:"How to pay"})}),(0,w.jsxs)(h.ZT,{type:"Body.Body2",id:(0,h.Ox)("order_order-no-text"),variant:"onForeground",level:"medium",children:[(0,w.jsx)(v._,{id:"order_order-no",defaultMessage:"ORDER NO"})," "+t]})]}),(0,w.jsx)("div",{"data-html2canvas-ignore":"true",className:"w-36 inline-flex justify-center items-center gap-2",children:(0,w.jsx)(h.zx,{type:"submit",size:"small",variant:"primary",id:"continue-button",docked:!0,onClick:()=>{se.current&&(n()(se.current,{scale:2,useCORS:!0}).then((e=>{te(!0),setTimeout((()=>{te(!1)}),2500);const t=e.toDataURL("image/png"),a=document.createElement("a");a.setAttribute("download","qr_code.png"),a.setAttribute("href",t),a.click()}
1)),z.f4.savePromptpayButton())},children:(0,w.jsx)(v._,{id:"button_save-qr-code",defaultMessage:"SAVE QR CODE"})})})]})}),(0,w.jsxs)("div",{className:"tw-flex-col tw-justify-start tw-items-start tw-inline-flex tw-py-4 tw-gap-4 tw-border-gray-200 tw-border-solid tw-border-b tw-border-0 tablet-and-mobile:tw-mx-6",children:[(0,w.jsx)(h.ZT,{type:"Body.Body2",id:(0,h.Ox)("payment_qr-promptpay-how-to-title-text"),variant:"onForeground",level:"medium",children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-title",defaultMessage:"How to pay"})}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-h-14 tw-py-1 tw-inline-flex tw-rounded-lg tw-justify-start tw-items-start tw-gap-3"),children:[(0,w.jsx)("img",{src:(0,b.g)("img/icons/v2/icon128/ic_mobilebanking_flat_128.svg"),alt:"mobile banking",height:"48",width:"48"}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-h-9 tw-inline-flex tw-flex-col tw-justify-start tw-items-start tw-gap-1"),children:[(0,w.jsx)(h.ZT,{type:"Overline.Overline",id:(0,h.Ox)("payment_qr-promptpay-how-to-title-one-text"),children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-title-one",defaultMessage:"1. Open mobile banking app"})}),(0,w.jsx)(h.ZT,{className:(0,j.Z)("tw-pl-[10px]"),type:"Caption.Caption",id:(0,h.Ox)("payment_qr-promptpay-how-to-description-one-text"),variant:"onForeground",level:"medium",children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-description-one",defaultMessage:"Select SCAN menu."})})]})]}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-h-14 tw-py-1 tw-inline-flex tw-rounded-lg tw-justify-start tw-items-start tw-gap-3"),children:[(0,w.jsx)("img",{src:(0,b.g)("img/icons/v2/icon128/ic_scanqrcode_flat_128.svg"),alt:"scan qr code",height:"48",width:"48"}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-h-9 tw-inline-flex tw-flex-col tw-justify-start tw-items-start tw-gap-1"),children:[(0,w.jsx)(h.ZT,{type:"Overline.Overline",id:(0,h.Ox)("payment_qr-promptpay-how-to-title-two-text"),children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-title-two",defaultMessage:"1. Open mobile banking app"})}),(0,w.jsx)(h.ZT,{className:(0,j.Z)("tw-pl-[10px]"),type:"Caption.Caption",id:(0,h.Ox)("payment_qr-promptpay-how-to-description-two-text"),variant:"onForeground",level:"medium",children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-description-two",defaultMessage:"Select SCAN menu."})})]})]}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-h-14 tw-py-1 tw-inline-flex tw-rounded-lg tw-justify-start tw-items-start tw-gap-3"),children:[(0,w.jsx)("img",{src:(0,b.g)("img/icons/v2/icon128/ic_success_flat_128.svg"),alt:"mobile",height:"48",width:"48"}),(0,w.jsxs)("div",{className:(0,j.Z)("tw-h-9 tw-inline-flex tw-flex-col tw-justify-start tw-items-start tw-gap-1"),children:[(0,w.jsx)(h.ZT,{type:"Overline.Overline",id:(0,h.Ox)("payment_qr-promptpay-how-to-title-three-text"),children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-title-three",defaultMessage:"1. Open mobile banking app"})}),(0,w.jsx)(h.ZT,{className:(0,j.Z)("tw-pl-[10px]"),type:"Caption.Caption",id:(0,h.Ox)("payment_qr-promptpay-how-to-description-three-text"),variant:"onForeground",level:"medium",children:(0,w.jsx)(v._,{id:"payment_qr-promptpay-how-to-description-three",defaultMessage:"Select SCAN menu."})})]})]})]}),(0,w.jsx)(h.zx,{type:"submit",variant:"secondary",id:"continue-button",onClick:()=>(z.f4.changePaymentInformationButton(),void X(t)),children:(0,w.jsx)(v._,{id:"button_change-payment",defaultMessage:"Change payment"})}),(0,w.jsx)("div",{className:"tw-w-[315px] tw-flex tw-justify-center tablet-and-mobile:tw-px-6 tablet-and-mobile:tw-w-full",children:(0,w.jsx)(h.ZT,{type:"Body.Body2",variant:"onForeground",level:"medium",align:"center",id:(0,h.Ox)("order_failed-contact-text"),children:(0,w.jsx)(v._,{id:"order_failed-contact",defaultMessage:"If you need immediate assistance, please contact {link_cs} or call {link_1631}.",values:{link_1631:(0,w.jsx)("a",{href:"tel:1631",children:"1631"}),link_cs:(0,w.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),link_026778899:(0,w.jsx)("a",{href:"tel:026778899",children:"026778899"})}})})})]})]})}),(0,w.jsx)("div",{className:"tw-col-span-4 tablet-and-mobile:tw-col-span-12",children:(0,w.jsx)(B.vZ,{numItems:O,productSubtotal:r,productDiscount:s,subTotal:d,shippingDiscount:m,shippingFee:u,shippinFeeSubtotal:x,orderDiscount:y,grandTotal:_,isMemberActive:P,caratBurn:N,orderSubtotal:Z,paymentType:M,intl:a,handleClickShowMoreSummary:()=>{ie((e=>!e))},cartItemsSummaryArrival:I,cartItemsSummaryDeparture:D,cartItemsSummaryDelivery:k,isShowMoreSummary:ae,isDisabledPayment:A,hasDelivery:C,id:"order-summary-repayment",isDisabledCashWallet:!1})})]})}),(0,w.jsx)(h.IX,{disabledSecondaryButton:!0,show:R,icon:(0,b.g)("img/icons/v2/icon128/ic_unsuccess_flat_128.svg"),onPrimaryClick:()=>{K(),i.push("/order/".concat(t))},primaryButtonText:(0,w.jsx)(v._,{id:"button_ok",defaultMessage:"ok"}),titleText:(0,w.jsx)(v._,{id:"order_this-order-has-cancelled",defaultMessage:"This order has cancelled."}),descriptionText:(0,w.jsx)("div",{className:"tw-text-balance tw-text-center",children:(0,w.jsx)(v._,{id:"order_message-cancelled-description",defaultMessage:"Your order no. {orderNumber} time out to payment. If you need help, please contact King Power Contact Centre by tel. 1631 (Thailand only) or email to us by [email protected].",values:{orderNumber:t}})})})]})};K.getInitialProps=async e=>{let{store:t,query:a,req:i}=e;const{orderId:r}=a;return r&&await t.dispatch(N.Yo.loadOrder(r)),{orderId:r}};var U=(0,d.compose)((0,_.Z)(null,null),S.ZP,P.Z,M.Z,O.Z)(K)},36826:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment/promptpay",function(){return a(29022)}])}},function(e){e.O(0,[296,8329,5443,6306,6811,5801,9260,4134,6432,322,2238,3826,1451,4059,4416,8324,3281,4599,3463,1447,4941,4871,4709,7598,9774,2888,179],(function(){return t=36826,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.