PageSourceSearch

https://drivingteacher.co.kr/_next/static/chunks/pages/event/univ-private-4f704d3957cf5917.js

js drivingteacher.co.kr collected 2026-10-01 15:25:10 UTC 4,653 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85699],{66307:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/univ-private",function(){return n(1043)}])},1043:function(e,t,n){"use strict";n.r(t);var s=n(31549),a=n(44194),i=n(52407),l=n(73840),o=n(87771),r=n(71416),c=n.n(r),u=n(95051),d=n.n(u),x=n(18053),p=n(88997),m=n(57148),f=n(12242),h=n(29806),g=n(35510),j=n(94706);let v=()=>{let{coupon_code:e}=(0,x.useRouter)().query;return(0,l.QnE)(e)};t.default=()=>{let{data:e}=v(),[t,n]=(0,a.useState)(""),{data:r,isLoading:u}=(0,l.kB3)(t),y=(0,x.useRouter)(),{user:N,isLoading:w}=(0,l.pgb)(),{openToast:b}=(0,o.pm)(),[,_]=(0,f._)("last-unreceived-coupon-code","",{initializeWithValue:!1}),[B,S]=(0,a.useState)(!1),[k,L]=(0,a.useState)(!1),E=(0,g.yR)({kakaoChannelAgree:"not-needed",marketingAgree:"required",notificationAgree:"required"}),A=E.some(e=>e.isLoading);(0,a.useEffect)(()=>{if(!e)return;let{discount:{academyId:t}}=e;n(t)},[e]);let C=async()=>{var n;if(!N||B)return;let s=new Date;s.setDate(s.getDate()+7),s.setHours(23,59,59,999),i.g.유입.univPrivateCouponReceive((null==e?void 0:e.schoolName)||"",t,(0,p.o)(null!==(n=null==e?void 0:e.discount.discountPrice)&&void 0!==n?n:0),(0,m.p)(s,"yyyy-MM-dd")),S(!0),await N.addCoupon({couponCode:null==e?void 0:e.get(),expirationDate:s}),await y.replace("/academy/".concat(t)),b({title:"".concat(null==r?void 0:r.name," 할인 쿠폰이 발급되었습니다.")}),S(!1)},F=async e=>{if(!N){null==e||e.stopPropagation();return}E.every(e=>e.initialState)?C():L(!0)};if((0,a.useEffect)(()=>{N&&!A&&!B&&r&&F()},[N,E,r]),!e||!r)return null;let{schoolName:W}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c(),{children:(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n              @font-face {\n                font-family: 'SBAggroB';\n                src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/SBAggroB.woff') format('woff');\n                font-weight: normal;\n                font-style: normal;\n              }\n            "}})}),(w||B||u||A)&&(0,s.jsx)(h.g,{}),(0,s.jsx)("div",{style:{fontFamily:"SBAggroB"}}),(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)(o.LZ,{className:"h-[40px]"}),(0,s.jsx)("p",{className:"text-Pink-300 text-16-normal-bold",children:"초특급 할인 쿠폰 증정!"}),(0,s.jsx)(o.LZ,{className:"h-[4px]"}),(0,s.jsxs)("h1",{className:"text-24-bold",children:[r.name," ",(0,p.o)(e.discount.discountPrice)," 할인 쿠폰"]}),(0,s.jsx)(o.LZ,{className:"h-[4px]"}),(0,s.jsxs)("p",{className:"text-14-normal-medium text-Gray-500",children:[r.name," 운전학원 전용 쿠폰입니다."]}),(0,s.jsx)(o.LZ,{className:"h-[34px]"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute-justify-center top-0 flex h-[53px] w-[calc(100%-4px)] items-center justify-center rounded-t-[20px] bg-[#FF66B1]",children:(0,s.jsxs)("p",{className:"text-14-normal-medium text-White-100",children:[W," 학생 할인 쿠폰 대상자입니다!"]})}),(0,s.jsx)("p",{className:"absolute-justify-center absolute top-[96px] whitespace-nowrap text-[20px] leading-[20px] text-White-100",style:{fontFamily:"SBAggroB"},children:r.name}),(0,s.jsx)("p",{className:"absolute-justify-center absolute top-[132px] whitespace-nowrap text-[44px] leading-[44px] text-White-100",style:{fontFamily:"SBAggroB"},children:e.discount.discountAmount}),(0,s.jsxs)("p",{className:"absolute-justify-center text-14-normal-bold absolute top-[184px] whitespace-nowrap text-[#F1F1EE] opacity-60",children:[r.name," 운전학원 전용 쿠폰"]}),(0,s.jsx)("div",{className:"absolute-justify-center absolute bottom-[32px]",children:(0,s.jsx)(g.xg,{onSubmit:C,onReject:()=>{(null==e?void 0:e.code)&&_(null==e?void 0:e.code),y.replace("/")},open:k,onOpenChange:L,children:(0,s.jsx)(j.NeedLoginBottomSheet,{children:(0,s.jsx)(o.Wv,{onClick:F,styles:"filled-black",label:(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)("p",{className:"text-16-normal-bold text-whte",children:"지금 쿠폰 받기"}),(0,s.jsx)(o.JO,{icon:"download-outlined",size:20,className:"fill-White-100"})]})})})})}),(0,s.jsx)(d(),{src:"/events/univ-private/coupon.png",alt:"univ-private-1",width:780,height:1023,className:"h-[341px] w-[260px]"})]})]})]})}},87771:function(e,t,n){"use strict";n.d(t,{JO:function(){return a.J},LZ:function(){return i.L},Wv:function(){return s.W},pm:function(){return l.p}});var s=n(44974),a=n(65675),i=n(3750),l=n(619)}},function(e){e.O(0,[12242,92888,49774,40179],function(){return e(e.s=66307)}),_N_E=e.O()}]);
2//# sourceMappingURL=univ-private-4f704d3957cf5917.js.map

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.