(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{347:()=>{},866:e=>{e.exports={style:{fontFamily:"'Outfit', 'Outfit Fallback'",fontStyle:"normal"},className:"__className_ed3508"}},1469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getImageProps:function(){return i}});let a=r(8229),s=r(8883),l=r(3063),n=a._(r(1193));function i(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let o=l.Image},1950:(e,t,r)=>{"use strict";r.d(t,{CQ:()=>a,PA:()=>l,ZK:()=>n,wx:()=>s,xK:()=>i});let a={name:{en:"GRAMII",ko:"그래미"},logoPath:"/images/gramii_logo.png",contactEmail:"gramii0505@gmail.com",accountHolder:"김수민(그래미)",siteUrl:"https://gramii.co.kr",address:"서울특별시 강서구 공항대로 426",businessNumber:"572-05-03128",mailOrderLicense:"제2025-서울강서-1815호",kakaoTalkUrl:"http://pf.kakao.com/_aIRrn"},s={default:{bank:"카카오뱅크",accountNumber:"3333-09-7616546",accountHolder:"김수민"},tax:{bank:"KB 국민은행",accountNumber:"444401-01-499150",accountHolder:"김수민(그래미)"}},l={pending:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-300",in_progress:"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-300",processing:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300",partial:"bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-300",completed:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300",canceled:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300",refunded:"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-200"},n={pending:"#FBBF24",in_progress:"#22D3EE",processing:"#3B82F6",partial:"#818CF8",completed:"#22C55E",canceled:"#EF4444",refunded:"#6B7280"},i={pending:"대기중",in_progress:"진행중",processing:"처리중",completed:"완료됨",partial:"부분완료됨",canceled:"주문취소",cancelled:"주문취소"}},2335:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var a=r(5155),s=r(2115),l=r(866),n=r.n(l);r(347);var i=r(3568),o=r(2688),d=r(7049),c=r(6874),u=r.n(c),x=r(6766),g=r(1950);let m=e=>{let{onOpenTermsModal:t}=e;return(0,a.jsx)("footer",{className:"w-full bg-gray-900 text-gray-400",children:(0,a.jsx)("div",{className:"px-[40px] py-12",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-between",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(u(),{href:"/",className:"inline-block mb-6",children:(0,a.jsx)("div",{className:"relative h-12 w-28",children:(0,a.jsx)(x.default,{src:g.CQ.logoPath,alt:"".concat(g.CQ.name.en," Logo"),fill:!0,style:{objectFit:"contain"}})})}),(0,a.jsx)("p",{className:"font-semibold text-white",children:g.CQ.name.ko}),(0,a.jsxs)("div",{className:"text-sm flex flex-wrap gap-x-4 gap-y-1",children:[(0,a.jsxs)("p",{children:["주소 : ",g.CQ.address]}),(0,a.jsxs)("p",{children:["사업자등록번호 : ",g.CQ.businessNumber]}),(0,a.jsxs)("p",{children:["통신판매 : ",g.CQ.mailOrderLicense]}),(0,a.jsxs)("p",{children:["이메일 : ",g.CQ.contactEmail]})]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500 pt-4",children:["Copyright 2024. ",g.CQ.name.en,". All rights reserved."]})]}),(0,a.jsx)("div",{className:"mt-8 md:mt-0",children:(0,a.jsx)("ul",{className:"flex space-x-6 text-sm",children:(0,a.jsx)("li",{children:(0,a.jsx)("button",{onClick:t,className:"hover:text-white",children:"이용약관 및 개인정보처리방침"})})})})]})})})},h=e=>{let{isOpen:t,onClose:r}=e,[l,n]=(0,s.useState)("로딩 중..."),i="".concat(g.CQ.name.ko,"(").concat(g.CQ.name.en,")");return((0,s.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/이용약관.txt");if(!e.ok)throw Error("이용약관 파일을 불러올 수 없습니다.");let t=await e.text();t=t.replace(/그래미\(GRAMII\)/g,i).replace(/https:\/\/gramii\.co\.kr/g,g.CQ.siteUrl),n(t)}catch(e){console.error(e),n("이용약관을 불러오는 데 실패했습니다.")}};t&&e()},[t,i]),(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return t?(document.body.style.overflow="hidden",window.addEventListener("keydown",e)):document.body.style.overflow="unset",()=>{document.body.style.overflow="unset",window.removeEventListener("keydown",e)}},[t,r]),t)?(0,a.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-60 z-50 flex justify-center items-center p-4",onClick:r,children:(0,a.jsxs)("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-2xl w-full max-w-4xl h-[80vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"flex justify-between items-center p-5 border-b border-gray-200 dark:border-gray-700",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-800 dark:text-white",children:"이용약관 및 개인정보처리방침"}),(0,a.jsx)("button",{onClick:r,className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300","aria-label":"Close modal",children:(0,a.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsx)("div",{className:"overflow-y-auto p-6 text-sm text-gray-600 dark:text-gray-300 leading-relaxed",children:(0,a.jsx)("div",{className:"prose prose-sm sm:prose-base max-w-none dark:prose-invert text-gray-700 dark:text-gray-300",children:(0,a.jsx)("pre",{className:"whitespace-pre-wrap font-sans",children:l})})})]})}):null};function f(e){let{children:t}=e,[r,l]=(0,s.useState)(!1);return(0,a.jsx)("html",{lang:"en",children:(0,a.jsxs)("body",{className:"".concat(n().className," dark:bg-gray-900 flex flex-col min-h-screen"),children:[(0,a.jsxs)(d.N,{children:[(0,a.jsx)(i.l$,{position:"top-center",reverseOrder:!1}),(0,a.jsxs)(o.G,{children:[(0,a.jsx)("main",{className:"flex-grow",children:t}),(0,a.jsx)(m,{onOpenTermsModal:()=>l(!0)})]})]}),(0,a.jsx)(h,{isOpen:r,onClose:()=>l(!1)})]})})}},2688:(e,t,r)=>{"use strict";r.d(t,{G:()=>i,c:()=>n});var a=r(5155),s=r(2115);let l=(0,s.createContext)(void 0),n=()=>{let e=(0,s.useContext)(l);if(!e)throw Error("useSidebar must be used within a SidebarProvider");return e},i=e=>{let{children:t}=e,[r,n]=(0,s.useState)(!0),[i,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)(!1),[u,x]=(0,s.useState)(!1),[g,m]=(0,s.useState)(null),[h,f]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=()=>{let e=window.innerWidth<768;c(e),e||o(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,a.jsx)(l.Provider,{value:{isExpanded:!d&&r,isMobileOpen:i,isHovered:u,activeItem:g,openSubmenu:h,toggleSidebar:()=>{n(e=>!e)},toggleMobileSidebar:()=>{o(e=>!e)},setIsHovered:x,setActiveItem:m,toggleSubmenu:e=>{f(t=>t===e?null:e)}},children:t})}},5217:(e,t,r)=>{Promise.resolve().then(r.bind(r,2335))},6766:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var a=r(1469),s=r.n(a)},7049:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,N:()=>n});var a=r(5155),s=r(2115);let l=(0,s.createContext)(void 0),n=e=>{let{children:t}=e,[r,n]=(0,s.useState)("light"),[i,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n(localStorage.getItem("theme")||"light"),o(!0)},[]),(0,s.useEffect)(()=>{i&&(localStorage.setItem("theme",r),"dark"===r?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[r,i]),(0,a.jsx)(l.Provider,{value:{theme:r,toggleTheme:()=>{n(e=>"light"===e?"dark":"light")}},children:t})},i=()=>{let e=(0,s.useContext)(l);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}}},e=>{var t=t=>e(e.s=t);e.O(0,[8871,7690,3568,3063,6874,8441,1684,7358],()=>t(5217)),_N_E=e.O()}]);