1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1724],{17696:(e,t,n)=>{"use strict";n.d(t,{Bh:()=>c,Iy:()=>l,MZ:()=>d,uB:()=>u,xo:()=>s});var i=n(37876),r=n(56557),a=n.n(r),o=n(35003);function s(e,t,n,i){window.setTimeout(()=>{window.gtag&&window.gtag("event",e,{ad_category:t,ad_position_name:n,ad_ID:i})},1e3)}function l(e){var t;let n=e.startsWith("qzapp://")?e.replace("qzapp://","https://"):e;if(null==(t=window.appInfo)?void 0:t.os)try{if("iOS"===window.appInfo.os)if(!e.startsWith("qzapp://"))return void window.webkit.messageHandlers.openUrl.postMessage(e);else{window.location.href=n;return}if("Android"===window.appInfo.os&&window.AppInfo)return void window.AppInfo.openUrl(e)}catch(e){console.error(e)}window.open(n,"_blank")}let c=(e,t,n)=>e.sort((e,i)=>e[t]===i[t]?e[n]-i[n]:e[t]-i[t]),d=e=>e.replace(/-/g,"").replace(/(.)$/,e=>e.toLowerCase()),u=(e,t,n)=>{let r=a()(),s=a()(t).add(null!=n?n:0,"minute").diff(r,"second");if(s<=0)return" 00:00:00 ";let l=Math.floor(s/3600),c=Math.floor(s%3600/60),d=String(l).padStart(2,"0"),u=String(c).padStart(2,"0"),h=String(s%60).padStart(2,"0");return(0,i.jsxs)(i.Fragment,{children:[e("qr-expired-counting-pre"),(0,i.jsx)(o.A,{variant:"caption",sx:{color:"primary.main",fontSize:14,fontWeight:900},children:" ".concat(d,":").concat(u,":").concat(h," ")}),e("qr-expired-counting-suf")]})}},20735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>v,default:()=>A});var i=n(37876),r=n(59152),a=n(14232);n(89099);var o=n(55751),s=n(42993),l=n(35003),c=n(28902),d=n(30509),u=n(78329),h=n(98917),p=n(80170),x=n(17696),f=n(18157),g=n(56557),b=n.n(g);n(99427);var w=n(95338),m=n(33491),v=!0;function A(){let{t:e}=(0,r.Bd)(),[t,n]=(0,a.useState)(null),[h,g]=(0,a.useState)(0),[v,A]=(0,a.useState)(null),[j,y]=(0,a.useState)(0);async function k(){try{var e;let{data:t}=await f.A.home.qr();n(t||[]),g((null==t||null==(e=t[0])?void 0:e.id)||0)}catch(e){n([])}}return(0,a.useEffect)(()=>{k();let e=setInterval(()=>{y(e=>e+1)},1e3);return()=>clearInterval(e)},[]),(0,i.jsxs)(d.YW,{title:e("brand-name"),sx:{px:2.25},children:[t?t.length?(0,i.jsx)(s.A,{sx:{mb:10,gap:1},children:t.map((t,n)=>{let r=b()(),a=b()(t.receiptDate).diff(r,"minute"),f=(null==t?void 0:t.discardMinutes)===0?0:null==t?void 0:t.discardMinutes,v=(0,x.uB)(e,t.receiptDate,f);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.A,{className:h===t.id?"expanded":"",onClick:()=>{var e;g(h===(e=t.id)?0:e)},sx:{"&.expanded .qr-box":{height:"340px",border:"1px solid #e4e4e4",borderBottom:0,transitionDuration:"0.5s","&::after":{content:'""',width:"100%",height:"1px",position:"absolute",bottom:0,right:0,borderBottom:"2px dashed #e4e4e4"}}},children:[(0,i.jsxs)(o.A,{className:"qr-box",sx:{width:"100%",height:0,bgcolor:"white",borderRadius:2,overflow:"hidden",transitionDuration:"0.5s",position:"relative",borderColor:"white",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,i.jsx)(d.VE,{src:w.A.src,size:50,origin:!0,sx:{position:"absolute",top:-1,right:-1}}),(0,i.jsx)(o.A,{sx:{position:"relative",margin:"auto",background:"center/contain no-repeat url(data:image/jpg;base64,".concat(t.qrcode,")"),width:280,aspectRatio:1},children:a&&f&&a<-f?(0,i.jsx)(o.A,{sx:{p:3,bgcolor:"#000000e6",color:"white",borderRadius:1,position:"absolute",top:0,bottom:0,left:0,right:0,m:"auto",width:"fit-content",height:"fit-content"},children:(0,i.jsx)(l.A,{variant:"subtitle1",sx:{wordBreak:"keep-all",whiteSpace:"break-spaces",textAlign:"center"},children:e("receipt-expired")})}):a&&a>10?(0,i.jsx)(o.A,{sx:{p:2.25,bgcolor:"primary.main",color:"white",borderRadius:1,position:"absolute",top:0,bottom:0,left:0,right:0,m:"auto",width:"fit-content",height:"fit-content"},children:(0,i.jsx)(l.A,{variant:"subtitle1",textAlign:"center",whiteSpace:"break-spaces",children:a>20?e("receipt-not-yet"):a<=20&&a>10?e("receipt-counting",{min:a-10}):e("receipt-soon")})}):null}),f&&a>=-f&&a<=10?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.A,{variant:"span",children:v}),(0,i.jsx)(l.A,{variant:"span",sx:{color:"grey.200",fontSize:"10px",paddingBottom:2.5},children:e("qr-expired-info")})]}):null]}),(0,i.jsx)(o.A,{id:t.id,sx:{bgcolor:"white",borderRadius:2,border:"1px solid #e4e4e4",borderTop:0,py:2,px:2.5},children:(0,i.jsxs)(s.A,{children:[(0,i.jsxs)(s.A,{gap:.5,position:"relative",children:[(0,i.jsx)(l.A,{variant:"subtitle1",sx:{width:"calc(100% - 40px)",wordBreak:"keep-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:+(h!==t.id),WebkitBoxOrient:"vertical"},children:t.name}),(0,i.jsx)(l.A,{variant:"body2",color:"grey.100",children:t.subTitle}),(0,i.jsx)(c.A,{sx:{position:"absolute",top:0,right:0,border:"1px solid #FF006E",borderRadius:"100%",width:36,height:36},onClick:()=>{t.menuId&&router.push({pathname:"/shop/buy/".concat(encode(t.menuId)),query:{source:"my-qr"}})},children:(0,i.jsx)(d.VE,{src:m.A.src,size:16,origin:!0})})]}),(0,i.jsxs)(s.A,{sx:{height:h===t.id?"auto":0,transitionDuration:"0.5s",overflow:"hidden",gap:.5,mt:.5},children:[(0,i.jsx)(l.A,{variant:"caption",fontSize:11,children:t.branch}),(0,i.jsxs)(s.A,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(l.A,{variant:"body2",noWrap:!0,children:e("unit-qty")}),(0,i.jsx)(l.A,{variant:"body1",noWrap:!0,children:" ".concat(t.buyCount," ").concat(e("count-unit"))})]}),(0,i.jsxs)(s.A,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(l.A,{variant:"body2",noWrap:!0,children:e("orderer-info")}),(0,i.jsx)(l.A,{variant:"body1",noWrap:!0,children:"".concat(t.customerFullname," ").concat(t.customerMobile?t.customerMobile.replace(/(\d{2,3})(\d{3,4})(\d{4})/,"$1-$2-$3"):"")})]}),(0,i.jsxs)(s.A,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(l.A,{variant:"body2",noWrap:!0,children:e("receive-time")}),(0,i.jsx)(l.A,{variant:"body1",noWrap:!0,children:(0,p.UG)(t.receiptDate,"yyyy/MM/dd HH:mm")||"-"})]}),(0,i.jsxs)(s.A,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(l.A,{variant:"body2",noWrap:!0,children:e("receive-number")}),(0,i.jsx)(l.A,{variant:"body1",noWrap:!0,children:t.receiptNumber})]})]})]})})]},t.id),0===n?(0,i.jsx)(u.A,{location:"myqr",sx:{borderRadius:2}}):""]})})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{location:"myqr",sx:{borderRadius:2}}),(0,i.jsx)(o.A,{sx:{color:"grey.300",py:2,textAlign:"center"},children:e("no-data")})]}):(0,i.jsx)(d.Rh,{}),(0,i.jsx)(d.JY,{open:!!v,onClose:()=>A(null),footer:{label:e("close"),sx:{color:"grey.100"},onClick:()=>A(null)},sx:{p:0,borderRadius:"8px 8px 0 0",overflow:"hidden"},children:(0,i.jsx)("img",{src:(null==v?void 0:v.image)||"",style:{padding:"16px",width:"100%"},alt:"receipt-zone"})})]})}A.getLayout=function(e){return(0,i.jsx)(h.A,{sx:{bgcolor:"grey.600"},header:{title:"my-qr-ticket",back:!0},disabledBottomNav:!0,children:e})}}
1,22472:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mypage/qr-list",function(){return n(20735)}])},26445:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(68211);n(45948),n(99742);let r=new Map,a=new Map,o=(0,i.A)("get","/api/v1/ad/:id",{uselessAuth:!0}),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==e?void 0:e.language)?String(e.language):"undefined"!=typeof navigator&&navigator.language?navigator.language:"ko-KR"},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(String(e||""),"::").concat(s(t))},c=()=>{if(r.size<=100)return;let e=Date.now();for(let[t,n]of r.entries())e-n.cachedAt>3e4&&r.delete(t);if(r.size<=100)return;let t=r.size-100;[...r.entries()].sort((e,t)=>e[1].cachedAt-t[1].cachedAt).slice(0,t).forEach(e=>{let[t]=e;return r.delete(t)})},d={ad:{category:async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=l(t,n),s=(e=>{let t=r.get(e);if(!t)return null;let n=t.ttlMs||3e4;return Date.now()-t.cachedAt>n?(r.delete(e),null):t.response})(i);if(s)return s;let d=a.get(i);if(d)return d;let u=o(e,t,n).then(e=>{let t={status:null==e?void 0:e.status,data:null==e?void 0:e.data};return r.set(i,{response:t,cachedAt:Date.now(),ttlMs:3e4}),c(),t}).catch(e=>{var t;let n={status:(null==e?void 0:e.status)||(null==e||null==(t=e.response)?void 0:t.status)||500,data:null};return r.set(i,{response:n,cachedAt:Date.now(),ttlMs:3e5}),c(),n}).finally(()=>{a.delete(i)});return a.set(i,u),u}}}},33491:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i={src:"/_next/static/media/arrow-dash-right.2db364fd.svg",height:16,width:15,blurWidth:0,blurHeight:0}},43143:(e,t,n)=>{"use strict";n.d(t,{FG:()=>a,Ld:()=>r,VS:()=>i,o7:()=>o});let i="band_banner",r="ad_express",a="ad_click",o="festival_click"},78329:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(37876),r=n(14232),a=n(26445),o=n(17696),s=n(43143),l=n(55751);function c(e){let{location:t,sx:n}=e,[c,d]=(0,r.useState)(),[u,h]=(0,r.useState)(),[p,x]=(0,r.useState)(),[f,g]=(0,r.useState)(!1),b="".concat(c,"_").concat(s.VS,"_").concat(t);(0,r.useEffect)(()=>{f&&c&&(0,o.xo)(s.Ld,s.VS,b,c)},[c]);let w=(0,r.useCallback)(()=>{window&&f&&c&&u&&((0,o.Iy)(u),(0,o.xo)(s.FG,s.VS,b,c))},[f,c,u]),m=(0,r.useCallback)(async()=>{try{let e=await a.A.ad.category(null,s.VS,{});if(200===e.status){let t=e.data;d("ad_".concat(t.id)),h(t.link),x(t.imageUrl),g(!0)}}catch(e){}},[]);return(0,r.useEffect)(()=>{m()},[m]),f?(0,i.jsx)(l.A,{className:"ad ".concat(b),"data-id":c,sx:{width:"100%",height:"16.75vw",background:"center/cover no-repeat url(".concat(p,")"),bgcolor:"grey.400",...n},onClick:w}):(0,i.jsx)(i.Fragment,{})}},95338:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i={src:"/_next/static/media/signature.73ff0b43.svg",height:51,width:52,blurWidth:0,blurHeight:0}},98917:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var i=n(37876),r=n(18847),a=n.n(r),o=n(14232),s=n(55751),l=n(42993),c=n(51900),d=n(92135),u=n(99427),h=n(59152),p=n(17696),x=n(26445),f=n(43143),g=n(54175);function b(e){let{}=e,{t}=(0,h.Bd)(),[n,r]=(0,o.useState)(""),[a,c]=(0,o.useState)(""),[d,u]=(0,o.useState)(""),b="splash",w="".concat(n,"_").concat(b);(0,o.useEffect)(()=>{n&&(0,p.xo)(f.Ld,b,w,n)},[n]);let m=(0,o.useCallback)(()=>{window&&n&&a&&((0,p.Iy)(a),(0,p.xo)(f.FG,b,w,n))},[n,a]),v=async()=>{try{let e=await x.A.ad.category(null,b,{});if(200===e.status){let t=e.data;r("ad-".concat(t.id)),c(t.link),u(t.imageUrl)}}catch(e){}};return(0,o.useEffect)(()=>{v()},[]),(0,i.jsx)(s.A,{sx:{position:"fixed",top:0,left:0,width:"100vw",zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:"#ffffff",backfaceVisibility:"hidden",transform:"translateZ(0)"},className:"qz-ad-splash",children:(0,i.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",textAlign:"center",flex:1,width:"100%",gap:"80px"},children:[(0,i.jsx)(l.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"},children:(0,i.jsx)("img",{src:g.A.src,alt:"Queenssmile",width:180})}),(0,i.jsx)(s.A,{sx:{m:4.25,mt:0,borderRadius:1,width:"calc(100% - 68px)",height:"102vw",background:n?"center/cover no-repeat url(".concat(d,")"):""},onClick:m})]})})}let w=a()(()=>Promise.all([n.e(3362),n.e(871),n.e(3716),n.e(9668),n.e(9463),n.e(6749),n.e(5591),n.e(2810)]).then(n.bind(n,22810)),{loadableGenerated:{webpack:()=>[22810]},ssr:!1}),m=a()(()=>Promise.all([n.e(871),n.e(3716),n.e(9668),n.e(9463),n.e(5591),n.e(4812)]).then(n.bind(n,4812)),{loadableGenerated:{webpack:()=>[4812]},ssr:!1}),v=e=>{let{header:t,disabledHeader:n,disabledBottomNav:r,children:a,useUploader:h,sx:p}=e,[x,f]=(0,o.useState)(!0),{height:g}=(0,d.lW)(),{enqueueSnackbar:v,closeSnackbar:A}=(0,u.dh)();return(0,o.useEffect)(()=>{window.alert=e=>{let t=v(""+e,{disableWindowBlurListener:!0});setTimeout(()=>A(t),2e3)}},[v,A]),(0,o.useEffect)(()=>{let e=setTimeout(()=>{f(!1)},3e3);return()=>clearTimeout(e)},[]),(0,i.jsxs)(s.A,{sx:{...p},children:[(0,i.jsxs)(l.A,{direction:"column",sx:{maxWidth:"425px",mx:"auto",minHeight:"100vh"},children:[!n&&(0,i.jsx)(w,{...t,noGap:!0}),(0,i.jsx)(s.A,{className:"scrollBox",sx:{width:"100%",flexGrow:1,height:"0",overflow:"auto",...c.f9},children:a}),r?null:(0,i.jsx)(m,{})]}),x&&(0,i.jsx)(b,{})]})}}},e=>{e.O(0,[871,3716,9668,5895,9463,8974,5591,636,6593,8792],()=>e(e.s=22472)),_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.