PageSourceSearch

https://nosearch.com/_next/static/chunks/pages/membership/payment/checkout-21651cdd21b92ef3.js

js nosearch.com collected 2026-10-04 14:54:09 UTC 10,080 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5707],{25123:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/membership/payment/checkout",function(){return c(76104)}])},7410:function(g,b,a){"use strict";a.d(b,{e:function(){return n}});var c=a(94776),d=a.n(c),h=a(82066),i=a(42056),j=a(66091);function k(c,d,e,f,g,h,i){try{var a=c[h](i),b=a.value}catch(j){e(j);return}a.done?d(b):Promise.resolve(b).then(f,g)}function l(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var e,f,m=(f=(e=d().mark(function a(){var b;return d().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,j.TR.from("membership").select("type, price, metaInfo").order("price",{ascending:!0});case 2:return b=a.sent.data,a.abrupt("return",o({data:b}));case 4:case"end":return a.stop()}},a)}),function(){var a=this,b=arguments;return new Promise(function(d,f){var g=e.apply(a,b);function c(a){k(g,d,f,c,h,"next",a)}function h(a){k(g,d,f,c,h,"throw",a)}c(void 0)})}),function(){return f.apply(this,arguments)}),n=function(a){return(0,h.useQuery)("membership",function(){return m()},function(d){for(var a=1;a<arguments.length;a++){var c=null!=arguments[a]?arguments[a]:{},b=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),b.forEach(function(a){l(d,a,c[a])})}return d}({cacheTime:i.ig,staleTime:i.ig},a))};function o(i){var a=i.data,d={};if(a&&a.length>0){var b=!0,e=!1,f=void 0;try{for(var g,c=a[Symbol.iterator]();!(b=(g=c.next()).done);b=!0){var h=g.value;d[h.type]=h}}catch(j){e=!0,f=j}finally{try{b||null==c.return||c.return()}finally{if(e)throw f}}}return d}},16352:function(d,b,a){"use strict";a.d(b,{DR:function(){return l}});var c=a(94776),e=a.n(c),f=a(82066),g=a(50913),h=a(18085);function i(c,d,e,f,g,h,i){try{var a=c[h](i),b=a.value}catch(j){e(j);return}a.done?d(b):Promise.resolve(b).then(f,g)}function j(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function k(){var a;return(k=(a=e().mark(function a(){var b;return e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,h.OB.get("/user/profile");case 2:return b=a.sent.data,a.abrupt("return",b);case 4:case"end":return a.stop()}},a)}),function(){var b=this,c=arguments;return new Promise(function(e,f){var g=a.apply(b,c);function d(a){i(g,e,f,d,h,"next",a)}function h(a){i(g,e,f,d,h,"throw",a)}d(void 0)})})).apply(this,arguments)}function l(c){var l,b=(0,g.O)().accessToken,a=(0,f.useQuery)(["/user/profile",void 0===b?"":b],function(){return function(){return k.apply(this,arguments)}()},function(d){for(var a=1;a<arguments.length;a++){var c=null!=arguments[a]?arguments[a]:{},b=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),b.forEach(function(a){j(d,a,c[a])})}return d}({retry:0},c)),d=a.data,e=a.isLoading,h=a.isSuccess,i=a.isError;return{userProfile:d,isLoading:e,isSuccess:h,isError:i}}},24459:function(c,b,a){"use strict";a.d(b,{U:function(){return f}});var d=a(5632),e=a(7410),f=function(){var b,a=(0,d.useRouter)().query,j=a.membershipType,k=a.redirectURI,l=a.redirectionType,m=a.errorMessage,c=j,n=(0,e.e)(),f=n.data,g=null!==(b=(void 0===f?{}:f)[c])&& void 0!==b?b:{},h=g.metaInfo,o=g.price,i=(null!=h?h:{}).orderName;return{membershipTypeString:c,redirectURI:k,redirectionType:l,errorMessage:m,price:o,orderName:void 0===i?"":i}}},76104:function(e,b,a){"use strict";a.r(b),a.d(b,{"default":function(){return A}});var d=a(94776),f=a.n(d),g=a(52322);function h(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function i(b,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),a&&k(b,a)}
1function j(a){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(a)}function k(a,b){return(k=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a})(a,b)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function m(a,b,c){return(m=l()?Reflect.construct:function(d,e,b){var a=[null];a.push.apply(a,e);var c=new(Function.bind.apply(d,a));return b&&k(c,b.prototype),c}).apply(null,arguments)}function c(a){var b="function"==typeof Map?new Map:void 0;return(c=function(a){var d;if(null===a||(d=a,-1===Function.toString.call(d).indexOf("[native code]")))return a;if("function"!=typeof a)throw new TypeError("Super expression must either be null or a function");if(void 0!==b){if(b.has(a))return b.get(a);b.set(a,c)}function c(){return m(a,arguments,j(this).constructor)}return c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),k(c,a)})(a)}function n(a){var b=l();return function(){var c,d=j(a);if(b){var e=j(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return function(b,a){if(a&&("object"==typeof a||"function"==typeof a))return a;if(void 0!==a)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(b)}(this,c)}}var o=null;function p(a){return window[a]}var q=function(a){i(b,a);var c=n(b);function b(d){var a;return h(this,b),(a=c.call(this,"[TossPayments SDK] ".concat(d," is not available"))).name="NamespaceNotAvailableError",a}return b}(c(Error)),r=function(a){i(b,a);var c=n(b);function b(d){var a;return h(this,b),(a=c.call(this,"[TossPayments SDK] Failed to load script: [".concat(d,"]"))).name="ScriptLoadFailedError",a}return b}(c(Error));function s(c){var b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:{},a=b.src;return"undefined"==typeof window?Promise.resolve({}):(function(a,b){var c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:{};return null!=o?o:o=new Promise(function(g,j){try{var f,h=function(){null!=p(b)?g(p(b)):j(new q(b))},i=function(){j(new r(a))};if("undefined"==typeof window||"undefined"==typeof document)return g(null);if(null!=p(b))return g(p(b));var d=document.querySelector('script[src="'.concat(a,'"]'));null!=d&&(d.removeEventListener("load",h),d.removeEventListener("error",i),null===(f=d.parentElement)|| void 0===f||f.removeChild(d));var e=document.createElement("script");e.src=a,e.addEventListener("load",h),e.addEventListener("error",i),null!=c.priority&&(e.fetchPriority=c.priority),document.head.appendChild(e)}catch(k){j(k);return}}).catch(function(a){return o=null,Promise.reject(a)})})(void 0===a?"https://js.tosspayments.com/v2/standard":a,"TossPayments").then(function(a){return a(c)})}var t=a(2784),u=a(30254),v=a(16352),w=a(41708),x=a(24459);function y(c,d,e,f,g,h,i){try{var a=c[h](i),b=a.value}catch(j){e(j);return}a.done?d(b):Promise.resolve(b).then(f,g)}function z(a){return function(){var b=this,c=arguments;return new Promise(function(e,f){var g=a.apply(b,c);function d(a){y(g,e,f,d,h,"next",a)}function h(a){y(g,e,f,d,h,"throw",a)}d(void 0)})}}var A=function(){var i=w.TQ?"test_gck_vZnjEJeQVxez99qv0oXYrPmOoBN0":"live_gck_5OWRapdA8dQaqJoeyBN93o1zEqZK",a=(0,v.DR)().userProfile,b=null!=a?a:{},l=b.nickname,m=b.email,c=(0,x.U)(),j=c.price,n=c.orderName,d=(0,t.useState)(!1),o=d[0],p=d[1],e=(0,t.useState)(null),k=e[0],q=e[1],h=(0,t.useState)({currency:"KRW",value:0}),r=h[0],y=h[1];return(0,t.useEffect)(function(){y({currency:"KRW",value:j})},[j]),(0,t.useEffect)(function(){function a(){return(a=z(f().mark(function a(){var b,c;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,s(i);case 2:q(c=(b=a.sent).widgets({customerKey:"@@ANONYMOUS"}));case 5:case"end":return a.stop()}},a)}))).apply(this,arguments)}!function(){return a.apply(this,arguments)}()},[i]),(0,t.useEffect)(function(){function a(){return(a=z(f().mark(function a(){return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(null==k||o)){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,k.setAmount(r);case 4:return a.next=6,Promise.all([k.renderPaymentMethods({selector:"#payment-method",variantKey:"membership"}),k.renderAgreement({selector:"#agreement",variantKey:"AGREEMENT"}),]);case 6:p(!0);case 7:case"end":return a.stop()}},a)}))).apply(this,arguments)}!function(){return a.apply(this,arguments)}()},[k]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(u.Z,{text:"\uC774\uC6A9\uAD8C \uACB0\uC81C",showBackButton:!0,showTextLogo:!1,showSearchButton:!1,showMyPageButton:!1}),(0,g.jsxs)("div",{className:"mx-auto pc:w-[80rem] pc:px-[3rem] pc:py-[9rem]",children:[(0,g.jsx)("p",{className:"px-[3rem] text-display-d-2 text-gray-900 mobile:hidden",children:"\uC774\uC6A9\uAD8C \uACB0\uC81C"}),(0,g.jsx)("div",{id:"payment-method"}),(0,g.jsx)("div",{id:"agreement"}),(0,g.jsx)("div",{className:"cursor-pointer rounded-[1rem] bg-primary py-[1.3rem] text-center text-heading-6 font-bold text-white pc:mx-[3rem] mobile:fixed mobile:bottom-[2rem] mobile:left-1/2 mobile:w-[calc(100%_-_4rem)] mobile:-translate-x-1/2",onClick:z(f().mark(function a(){return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,null==k?void 0:k.requestPayment({orderId:window.btoa(Math.random().toString()).slice(0,20),orderName:n,customerName:l,customerEmail:m,successUrl:window.location.origin+"/membership/payment/success"+window.location.search,failUrl:window.location.origin+"/membership/payment/failure"+window.location.search});case 2:case"end":return a.stop()}},a)})),children:"\uACB0\uC81C\uD558\uAE30"})]})]})}}},function(a){a.O(0,[9774,2888,179],function(){return a(a.s=25123)}),_N_E=a.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.