1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4900],{2130:function(e,t,n){n.d(t,{O:function(){return r},q:function(){return i}});var i=6e5,r=18e5},92495:function(e,t,n){n.d(t,{F:function(){return i}});var i=function(e){var t,n=(null==e?void 0:null===(t=e.get)||void 0===t?void 0:t.call(e,"stipop-token"))||"";if(n)return n;try{var i=JSON.parse(localStorage.getItem("stipop-login")||"{}");return(null==i?void 0:i.token)||""}catch(r){return""}}},90033:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(50029),r=n(87794),o=n.n(r),a=n(67294),s=n(19521),c=n(9669),p=n.n(c),u=n(23095),l=n(2859),d=n(19872),f=n(31567),h=n(66069),g=n(85893),m=a.memo(function(e){var t=e.endDate,n=e.t,i=(0,a.useState)("00:00:00"),r=i[0],o=i[1];return(0,a.useEffect)(function(){if(t){var e=new Date(t).getTime(),n=setInterval(function(){var t=e-Date.now();if(t<=0){o("00:00:00"),clearInterval(n);return}var i=String(Math.floor(t/36e5)).padStart(2,"0"),r=String(Math.floor(t%36e5/6e4)).padStart(2,"0"),a=String(Math.floor(t%6e4/1e3)).padStart(2,"0");o("".concat(i,":").concat(r,":").concat(a))},1e3);return function(){return clearInterval(n)}}},[t]),(0,g.jsx)(g.Fragment,{children:n("purchase.time",{time:r})})}),x={regular:{ko:["â©6,600","â©19,000","â©29,000","â©55,000"],ja:["\xa5800","\xa52,000","\xa53,000","\xa55,500"],en:["$4.99","$12.99","$19.99","$35.99"]},event:{ko:["â©3,300","â©9,900","â©14,000","â©25,000"],ja:["\xa5400","\xa51,000","\xa51,500","\xa52,800"],en:["$2.49","$6.49","$9.99","$17.99"]}},v=function(e,t,n){var i=x[n?"event":"regular"];return(i[e]||i.en)[t-1]},w=function(e){var t,n,r=e.token,s=e.info,c=e.open,x=e.setOpen,w=e.url,E=(0,a.useContext)(h.UserLanguageContext),$=(0,f.$)("translation",{keyPrefix:"chat"}).t,N=(0,a.useState)(!1),V=N[0],D=N[1],H=(0,a.useState)(!1),A=H[0],F=H[1],T=(0,a.useState)(null),L=T[0],O=T[1],W=(0,a.useState)(0),M=W[0],q=W[1],B=(0,a.useState)("00:00:00");B[0],B[1];var J=(0,l.J)(u.Hs);(0,a.useEffect)(function(){G(),D(!0)},[]),(0,a.useEffect)(function(){V&&d.ZP.track("Page View",{page_name:"coin-purchase",remainder:null==s?void 0:s.coin})},[V]),(0,a.useEffect)(function(){F(c)},[c]);var U=(t=(0,i.Z)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J;case 2:return n=e.sent,e.next=5,p().post("".concat(u.H,"/v4/pay/stripe/checkout"),{email:null==s?void 0:s.userEmail,tier:t,url:w},{headers:{apikey:u.$h,token:r}}).then(function(e){var t=e.data;n.redirectToCheckout({sessionId:t.body.sessionId})});case 5:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),G=(n=(0,i.Z)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p().get("".concat(u.H,"/v4/pay/coin/product"),{headers:{apikey:u.$h,token:r}}).then(function(e){var t=e.data,n=t.body.saleInfo;O(n),q(Date.now()>=new Date(n.startDate)&&Date.now()<=new Date(n.endDate)&&n.maxCnt>t.body.salePurchaseCount?n.maxCnt-t.body.salePurchaseCount:0)});case 2:case"end":return e.stop()}},e)})),function(){return n.apply(this,arguments)});return(0,g.jsx)(b,{children:(0,g.jsxs)(y,{$animation:A,event:M,children:[(0,g.jsx)(I,{src:"https://img.stipop.io/image/stipop/icon/close-icon.png",onClick:function(){x(null)}}),(0,g.jsxs)(j,{children:[(0,g.jsx)("img",{src:"https://img.stipop.io/image/stipop/image/chat-logo-image.png",alt:""}),"Stipop"]}),(0,g.jsx)(z,{mHeight:20}),(0,g.jsx)(k,{event:M,children:M?"".concat($("purchase.event title-1"),"\n").concat($("purchase.event title-2")):$("purchase.title")}),(0,g.jsx)(z,{height:14,mHeight:3}),(0,g.jsx)(S,{event:M,children:M?(0,g.jsx)(m,{endDate:null==L?void 0:L.endDate,t:$}):$("purchase.subtitle")}),(0,g.jsx)(z,{height:33,mHeight:15}),(0,g.jsx)(P,{children:[1,2,3,4].map(function(e,t){return(0,g.jsxs)(_,{event:M,children:[(0,g.jsxs)("div",{id:"pass",children:[(0,g.jsx)("img",{id:"coin",src:"https://img.stipop.io/image/stipop/icon/chat/chat-coin-icon.png",alt:""}),1===e?100:2===e?300:3===e?500:"1,000"," ",$("purchase.passes"),3===e&&(0,g.jsx)(C,{children:"Best"}),(3===e||4===e)&&(0,g.jsx)("img",{id:"bonus",src:"https://img.stipop.io/image/stipop/icon/chat/chat-coin".concat(3===e?"-50":"-200","-icon.png"),alt:""})]}),(0,g.jsxs)("div",{style:{display:"flex",alignItems:"center",columnGap:"10
1px"},children:[M?(0,g.jsx)("div",{id:"event-btn",children:v(E[0],e,!1)}):(0,g.jsx)(g.Fragment,{}),(0,g.jsxs)("div",{id:"btn",onClick:function(){return U(e)},children:[M?"":(0,g.jsx)("img",{src:"https://img.stipop.io/image/stipop/icon/chat/chat-coin-button-box-icon.png",alt:""}),(0,g.jsx)("span",{children:v(E[0],e,!!M)})]})]})]},t)})}),M?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(z,{height:8,mHeight:12}),(0,g.jsx)("div",{style:{width:"100%",textAlign:"center",color:"#3e3e3e",fontWeight:600},children:$("purchase.max purchase",{n:M})})]}):(0,g.jsx)(g.Fragment,{}),(0,g.jsx)(z,{height:16,mHeight:12}),(0,g.jsx)(Z,{style:{fontStyle:"italic"},children:$("purchase.you have",{pass:null==s?void 0:s.coin})}),(0,g.jsx)(z,{height:6,mHeight:2}),(0,g.jsx)(Z,{children:(0,g.jsxs)("div",{children:[$("purchase.by purchasing-1"),(0,g.jsx)("a",{href:"https://stipop.com/en/terms",target:"_blank",children:(0,g.jsx)("span",{children:$("purchase.by purchasing-2")})}),"."]})}),(0,g.jsx)(z,{mHeight:40})]})})},b=s.ZP.div.withConfig({displayName:"VipPass__Wrapper",componentId:"sc-kwmgep-0"})(["width:100dvw;height:100dvh;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.3);position:fixed;left:0;top:0;z-index:100;"]),y=s.ZP.div.withConfig({displayName:"VipPass__VipBox",componentId:"sc-kwmgep-1"})(["width:424px;border-radius:40px;color:#fff;background:",";padding:70px 49px;box-sizing:border-box;position:relative;@media (max-width:","){width:100dvw;border-radius:40px 40px 0 0;background-color:#000;position:absolute;bottom:",";transition:bottom 0.3s ease-in-out;padding:26px 24px;}"],function(e){return e.event?"linear-gradient(168deg, #e89da3 9.27%, #f7f7f7 50.71%, #4a8f7b 81.33%)":"#000"},function(e){return e.theme.bp.web},function(e){return e.$animation?0:"-100%"}),j=s.ZP.div.withConfig({displayName:"VipPass__Logo",componentId:"sc-kwmgep-2"})(["width:100%;font-size:14px;font-weight:700;display:flex;justify-content:center;align-items:center;column-gap:8px;margin-bottom:6px;img{width:24px;height:24px;flex-shrink:0;}@media (min-width:","){display:none;}"],function(e){return e.theme.bp.web}),k=s.ZP.div.withConfig({displayName:"VipPass__Title",componentId:"sc-kwmgep-3"})(["width:100%;height:",";display:flex;justify-content:center;align-items:center;font-size:22px;font-weight:",";line-height:29px;color:",";text-align:center;flex-shrink:0;white-space:pre-line;@media (min-width:","){font-size:",";}"],function(e){return e.event?"auto":"32px"},function(e){return e.event?800:300},function(e){return e.event?"#ff2d55":"#fff"},function(e){return e.theme.bp.web},function(e){return e.event?"22px":"28px"}),S=s.ZP.div.withConfig({displayName:"VipPass__SubTitle",componentId:"sc-kwmgep-4"})(["width:100%;height:21px;display:flex;justify-content:center;align-items:center;font-size:14px;font-weight:500;line-height:22px;color:",";@media (min-width:","){font-size:18px;}"],function(e){return e.event?"#ff6f8b":"#9b9b9b"},function(e){return e.theme.bp.web}),P=s.ZP.div.withConfig({displayName:"VipPass__PassWrapper",componentId:"sc-kwmgep-5"})(["width:100%;padding:22px 20px;box-sizing:border-box;border-radius:16px;color:#fff;background-color:#1d1c21;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:16px;flex-shrink:0;"]),_=s.ZP.div.withConfig({displayName:"VipPass__PassItem",componentId:"sc-kwmgep-6"})(["width:100%;display:flex;justify-content:space-between;align-items:center;#pass{display:flex;align-items:center;column-gap:4px;font-size:14px;font-weight:600;line-height:20px;position:relative;span{font-size:14px;font-weight:500;color:#ff4500;line-height:20px;}#coin{width:28px;height:28px;filter:brightness(0) invert(1);}#bonus{height:11px;margin-bottom:1px;}}#event-btn{height:16px;font-size:10px;font-weight:400;color:#aeaeae;border:1px solid #aeaeae;border-radius:4px;padding:0 2px;box-sizing:border-box;text-decoration:line-through;}#btn{width:64px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:6px;font-size:13px;font-weight:600;line-height:22px;padding-top:1px;box-sizing:border-box;
1cursor:pointer;position:relative;background-color:",";&:hover{background-color:",";}span{z-index:1;}img{width:100%;height:100%;position:absolute;}}"],function(e){return e.event?"#ff2d55":"transparent"},function(e){return e.event?"#ff2d55":"#ff5c1f"}),C=s.ZP.div.withConfig({displayName:"VipPass__Best",componentId:"sc-kwmgep-7"})(["width:26px;height:9px;display:flex;justify-content:center;align-items:center;font-size:8px;background-color:#fff;color:#000;border-radius:20px;position:absolute;left:32px;top:-6px;"]),I=s.ZP.img.withConfig({displayName:"VipPass__Close",componentId:"sc-kwmgep-8"})(["width:24px;height:24px;position:absolute;top:29px;right:29px;cursor:pointer;filter:brightness(0) invert(1);"]),Z=s.ZP.div.withConfig({displayName:"VipPass__Text",componentId:"sc-kwmgep-9"})(["width:100%;font-size:12px;font-weight:400;color:#b4b4b4;display:flex;justify-content:center;align-items:center;span{color:#ff4500;}"]),z=s.ZP.div.withConfig({displayName:"VipPass__SpaceResponsive",componentId:"sc-kwmgep-10"})(["height:","px;flex-shrink:0;@media (max-width:","){height:","px;}"],function(e){return e.height},function(e){return e.theme.bp.web},function(e){return e.$mHeight})},2859:function(e,t,n){n.d(t,{J:function(){return g}});var i,r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null},s=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var i=document.head||document.body;if(!i)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(n),n},c=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"4.2.0",startTime:t})},p=null,u=null,l=null,d=function(e,t,n){if(null===e)return null;var i=e.apply(void 0,t);return c(i,n),i},f=!1,h=function(){return i||(i=(null!==p?p:(p=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var n,i=a();i?i&&null!==l&&null!==u&&(i.removeEventListener("load",l),i.removeEventListener("error",u),null===(n=i.parentNode)||void 0===n||n.removeChild(i),i=s(null)):i=s(null),l=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},u=function(){t(Error("Failed to load Stripe.js"))},i.addEventListener("load",l),i.addEventListener("error",u)}catch(r){t(r);return}})).catch(function(e){return p=null,Promise.reject(e)})).catch(function(e){return i=null,Promise.reject(e)}))};Promise.resolve().then(function(){return h()}).catch(function(e){f||console.warn(e)});var g=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f=!0;var i=Date.now();return h().then(function(e){return d(e,t,i)})}},52587:function(e,t,n){n.d(t,{Z:function(){return i}});function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}},27812:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(52587),r=n(2937);function o(e){return function(e){if(Array.isArray(e))return(0,i.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,r.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2937:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(52587);function r(e,t){if(e){if("string"==typeof e)return(0,i.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,i.Z)(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.