1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59495],{78468:function(e,o,a){"use strict";let n;var i=a(85893),t=a(67294),l=a(25142);let s=()=>{let[e,o]=(0,t.useState)(!1),a=(0,t.useRef)(null);return n={open:e=>{o(!0),a.current=e}},(0,i.jsx)(l.GI,{isOpen:e,onShow:()=>{var e,o;return null===(o=a.current)||void 0===o?void 0:null===(e=o.onShow)||void 0===e?void 0:e.call(o)},onCancel:()=>{var e,o;null===(o=a.current)||void 0===o||null===(e=o.onCancel)||void 0===e||e.call(o)}})};o.Z=()=>({popup:(0,i.jsx)(s,{}),open:e=>null==n?void 0:n.open(e)})},64115:function(e,o,a){"use strict";a.d(o,{Z:function(){return O}});var n=a(85893),i=a(25142),t=a(24344),l=a(67294),s=a(11163),r=a(48347),c=a(72331),d=a(84851),u=a(54331),_=a(75700),h=a.n(_),m=(0,d.Pi)(e=>{let{pageLoading:o}=u.commonStore,a=(0,n.jsx)(c.Z,{});return(0,n.jsx)(r.default,{spinning:o,indicator:a,className:"global_loading",wrapperClassName:"wrap_global_loading",children:(0,n.jsx)("div",{className:h().web_components_layout,children:e.children})})}),p=a(12802),v=a(51189),f=a(59916),x=a(88737),b=a(93967),g=a.n(b),y=a(11429),w=a.n(y),j=a(803),k=a(32459),N=(0,d.Pi)(e=>{var o,a;let{isShowUser:s=!0}=e,{appConfig:r}=(0,t.s6)(),c=(null==e?void 0:e.indexUrl)?null==e?void 0:e.indexUrl:"/",d=null!==(a=null==e?void 0:e.navigationItems)&&void 0!==a?a:[{key:"order",label:"Order",link:"/order",asPathList:["/checkout","/complete","/store"]},{key:"recent",label:"Recent Order",link:"/recent",asPathList:["/order-detail"]}],{logo:_}=e,{memberInfo:h,isLogin:m}=u.commonStore,[b,y]=(0,l.useState)(!1),[N,S]=(0,l.useState)(!1),P=e=>{let o=d.find(o=>{var a;return e===o.link||(null===(a=o.asPathList)||void 0===a?void 0:a.some(o=>null==e?void 0:e.startsWith(o)))});return o?o.key:""},C=(0,j.Z)(),I=(0,t.hU)(),[L,q]=(0,l.useState)(P(C.pathname)),T=(0,n.jsx)(p.Z,{preview:!1,src:_,alt:"logo",className:g()({[w().logo_offset]:!s})});(0,l.useEffect)(()=>{var e;let o=P(null===(e=C.asPath)||void 0===e?void 0:e.split("?")[0]);o!==L&&q(o)},[C.asPath]);let F=async e=>{"recent"!==e.key||(0,x.TS)()||await (0,i.x4)({intercept:!1,closable:!0,loginSuccess:null}),q(e.key),"order"===e.key&&"/store"===C.asPath?C.reload():("recent"===e.key&&(0,k.T0)(),C.push(e.link))},M=async e=>{y(!1),"recent"!==e||(0,x.TS)()||await (0,i.x4)({intercept:!1,closable:!0,loginSuccess:null}),q(e);let o=d.filter(o=>o.key===e);C.push(o[0].link)},Z=async()=>{(0,x.TS)()?(S(!0),await C.push("/profile"),S(!1)):(0,i.x4)({intercept:!1,closable:!0})},W=(0,l.useMemo)(()=>{if(I.isPc){if(!m)return"Sign In";if(!(null==h?void 0:h.firstName)&&!(null==h?void 0:h.lastName))return"Customer";let e="";return(null==h?void 0:h.firstName)&&(e=null==h?void 0:h.firstName),(null==h?void 0:h.lastName)&&(e+=" ".concat(null==h?void 0:h.lastName)),e}return m?null:"Sign In"},[I.isPc,null==h?void 0:h.firstName,null==h?void 0:h.lastName,m]);return(0,n.jsx)("header",{className:g()(w().header,"fixed-header",{[w().header_shadow]:!b}),children:(0,n.jsxs)("div",{className:w().header_core,children:[(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)(i.hW,{isShow:I.isMobile,children:(0,n.jsxs)("div",{className:g()(w().navigation_mobile,{[w().navigation_mobile_open]:b}),onClick:()=>{y(!b)},children:[(0,n.jsx)("i",{className:"iconfont icon-menu"}),(0,n.jsx)("i",{className:"iconfont icon-close"})]})}),(0,n.jsxs)("div",{className:w().left_wrap,children:[(0,n.jsx)(i.hW,{isShow:!!_,children:(0,n.jsxs)("div",{className:w().logo,children:[(0,n.jsx)(i.hW,{isShow:!!c,children:(0,n.jsxs)("a",{href:c,children:[" ",T]})}),(0,n.jsx)(i.hW,{isShow:!c,children:T})]})}),(0,n.jsx)(i.hW,{isShow:I.isPc,children:(0,n.jsx)("div",{className:w().navigation,children:(0,n.jsx)("div",{className:w().tabs_wrap,children:(0,n.jsx)(i.mQ,{className:w().tabs,activeKey:L,items:d,onChange:F})})})})]})]}),(0,n.jsx)("div",{children:(0,n.jsx)(i.hW,{isShow:s,children:(0,n.jsxs)("div",{className:g()(w().user_info,{[w().user_info_button]:!m}),"data-login":!0,onClick:Z,children:[(0,n.jsx)(i.hW,{isShow:I.isPc&&m,children:(0,n.jsx)("i",{className:"iconfont icon-iuser"})}),W&&(0,n.jsx)("span",{className:w().user_info_text,children:W})]})})}),(0,n.jsx)(i.hW,{isShow:I.isMobile,children:(0,n.jsx)(i.dy,{rootClassName:w().drawer,open:b,onClose:()=>{y(!1)},placement:"left",title:null,closable:!1,children:(0,n.jsx)(f.default,{theme:{token:{colorPrimary:null==r?void 0:null===(o=r.theme)||void 0===o?void 0:o["color-secondary"]}},children:(0,n.jsx)(v.default,{className:w().tabs,activeKey:L,onTabClick:M,tabPosition:"right",items:d})})})})]})})}),S=a(222),P=a.n(S),C=a(1184),I=a.n(C),L=a(271),q=a.n(L),T=a(30120);m.Header=N,m.Container=e=>(0,n.jsx)("div",{className:I().layout_container_wrap,children:(0,n.jsx)("div",{className:I().layout_container,children:e.children})}),m.Footer=()=>{let e=(0,s.useRouter)();return(0,n.jsx)("footer",{className:P().footer,children:(0,n.jsxs)("div",{className:P().container,children:[(0,n.jsx)("div",{className:P().logoSection,children:(0,n.jsx)("img",{src:"https://assets.peblla.net/1723183872025dd47ef5c29504f31aaf61a87d4a26a80.png",alt:"Dak Good Logo",className:P().logo})}),(0,n.jsx)("div",{className:P().missionSection,children:(0,n.jsx)("p",{className:P().missionText,children:"Our mission is to spread the joy of hand-battered, double-fried, delicious crispy Korean Fried Chicken."})}),(0,n.jsxs)("div",{className:P().navSection,children:[[{label:"Home",path:"/"},{label:"Menu",path:"/dakgood/menu"},{label:"Catering",path:"/dakgood/catering"},{label:"Locations",path:"/store"}].map((o,a)=>(0,n.jsx)("a",{className:P().navLink,onClick:()=>e.push(o.path),children:o.label},a)),(0,n.jsx)("div",{className:P().socialIcons,children:[{icon:"https://assets.peblla.net/1723196419412cceb857d869c415ea9d66463e5e63f01.png",url:"https://www.facebook.com/dakgood"},{icon:"https://assets.peblla.net/17231964596631e7c377314b94549a69520a3f6324b6a.png",url:"https://www.instagram.com/dakgood"},{icon:"https://assets.peblla.net/17231962177225b8f825a41ef4384829cb427b44da903.png",url:"https://www.yelp.com/dakgood"},{icon:"https://assets.peblla.net/17231960152637e933aa731c94b93a2ce3a9fac332c77.png",url:"https://www.tripadvisor.com/dakgood"}].map((e,o)=>(0,n.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:P().socialIcon,children:(0,n.jsx)("img",{src:e.icon,alt:""})},o))})]})]})})},m.MobileFooter=e=>{let{rootClassName:o}=e,{appConfig:a}=(0,t.s6)();return(0,n.jsxs)("div",{className:"".concat(q().mobile_footer," ").concat(o),children:[(0,n.jsxs)("div",{className:q().copyright,children:["\xa9 Copyright ",T.ou.now().toFormat("yyyy")," - ",null==a?void 0:a.brandName]}),(0,n.jsxs)("div",{className:q().links,children:[(0,n.jsx)("a",{href:"https://www.peblla.com/privacy-policy/",target:"_blank",children:"Privacy Policy"}),(0,n.jsx)("span",{children:"\xa0|\xa0"}),(0,n.jsx)("a",{href:"https://www.peblla.com/terms-of-service/",target:"_blank",children:"Terms of Service"})]}),(0,n.jsxs)("div",{className:q().powered,children:[(0,n.jsx)("span",{children:"Powered By"}),(0,n.jsx)("img",{src:"https://gongcha-dev.ubtbus.top/public/img/peblla_blue.png",alt:""})]})]})};var F=a(47689),M=a(5634),Z=a(78468);let W=e=>{var o,a,r,c;let d=(0,t.hU)(),{appConfig:u}=(0,t.s6)(),{..._}=u,[h,p]=(0,l.useState)(!1),v=(0,s.useRouter)(),f=["/quickly-order/order","/quickly-order/store","/quickly-order/checkout","/quickly-order/complete","/quickly-order/recent","/quickly-order/order-detail","/quickly-order/order-pay"].includes(v.pathname),x=(0,l.useRef)(["/order","/recent","/store","/order-detail","/profile","/checkout"]),b=(0,l.useRef)(["/order","/recent"]),[g,y]=(0,l.useState)(!1),{open:w,popup:j}=(0,Z.Z)();(0,l.useEffect)(()=>{w({onShow:()=>p(!1),onCancel:()=>{p(!0)}})},[]);let k=e=>{var o,a;let n=v.asPath||v.pathname;"/"!==n||(null==u?void 0:null===(a=u.domainList)||void 0===a?void 0:null===(o=a.find(e=>(null==e?void 0:e.domain)===(null==u?void 0:u.domain)))||void 0===o?void 0:o.isOfficialDomain)?e.current=e.current.filter(e=>"/"!==e):e.current.push("/")};(0,l.useEffect)(()=>{k(x),k(b)},[u,v]),(0,l.useEffect)(()=>{var e,o;let a=(e=v.pathname,o="/quickly-order",e.startsWith(o)?e.slice(o.length):e);y((null==d?void 0:d.isMobile)?b.current.includes(a):x.current.some(e=>{if(e.endsWith("/[]")){let o=e.split("/[]")[0];return a.startsWith(o)}return a===e}))},[v.asPath,v.pathname,d,x,b]);let N=(0,l.useMemo)(()=>(null==u?void 0:u.stylePath)==="dakgood"?m.Header:(null==u?void 0:u.stylePath)==="bbqchicken"?F.Z.Header:(null==u?void 0:u.stylePath)==="wnbfactory"?M.Z.Header:i.Ar.Header,[null==u?void 0:u.stylePath]),S=(0,l.useMemo)(()=>(null==u?void 0:u.stylePath)==="bbqchicken"?F.Z.Footer:i.Ar.Footer,[null==u?void 0:u.stylePath]),P=(0,l.useMemo)(()=>h?{}:{position:"fixed",transform:"translateY(1000px)",transition:"bottom 0.5s ease"},[h]);return(null==u?void 0:u.isOpenShopSoon)?(0,n.jsx)(i.MT,{}):(0,n.jsxs)(i.Ar,{children:[f&&(0,n.jsx)("a",{className:"ordering-skip-link",href:"#ordering-main",onClick:e=>{var o;e.preventDefault(),null===(o=document.getElementById("ordering-main"))||void 0===o||o.focus()},children:"Skip to main content"}),(0,n.jsx)(N,{..._,logo:null!==(c=null==u?void 0:u.logoUrl)&&void 0!==c?c:null==u?void 0:u.logo}),(0,n.jsx)(i.Ar.Container,{children:f?(0,n.jsx)("main",{id:"ordering-main",tabIndex:-1,
1children:e.children}):e.children}),(0,n.jsx)(i.q6,{style:{...P,transition:"all .2s"},isOpen:h&&!!(null==u?void 0:null===(o=u.app)||void 0===o?void 0:o.drainageImageStatus)&&g,images:{pc:null==u?void 0:null===(a=u.app)||void 0===a?void 0:a.drainageImageLink,mobile:null==u?void 0:null===(r=u.app)||void 0===r?void 0:r.drainageImageMobileLink}}),j,d.isPc&&(0,n.jsx)(S,{})]})},E=e=>{var o;return null!==(o=null==e?void 0:e.getLayout)&&void 0!==o?o:e=>(0,n.jsx)(W,{children:e})};var O=(e,o)=>{let a=E(o);return e.getLayout||(e.getLayout=a),e}},1184:function(e){e.exports={layout_container_wrap:"container_layout_container_wrap__7xsLY",layout_container:"container_layout_container__68XLh","text-animation":"container_text-animation__QAI4t"}},222:function(e){e.exports={footer:"footer_footer__vC94o",container:"footer_container__Rg0tA",logoSection:"footer_logoSection__RJIhL",logo:"footer_logo__pFD1S",missionSection:"footer_missionSection__vxi3T",missionText:"footer_missionText__HsBTr",navSection:"footer_navSection__Xsq3c",navLink:"footer_navLink__y0Fqy",socialIcons:"footer_socialIcons__Du5zL",socialIcon:"footer_socialIcon__wFwOi","text-animation":"footer_text-animation__fOl_Z"}},11429:function(e){e.exports={header:"header_header__pZ_Sy",left_wrap:"header_left_wrap__2_ncK",logo:"header_logo__XT2Kw",navigation:"header_navigation__Nvw_h",tabs_wrap:"header_tabs_wrap__EqqnY",tabs:"header_tabs__dDJuP",user_info_button:"header_user_info_button__wo6_S",user_info_text:"header_user_info_text__4MabH",user_info:"header_user_info__ED_n_",header_shadow:"header_header_shadow__vilAP",header_core:"header_header_core__ZK8Dz",logo_offset:"header_logo_offset__DRuPM",navigation_mobile:"header_navigation_mobile__QXoe0",navigation_mobile_open:"header_navigation_mobile_open__Oh1yE",userInfoText:"header_userInfoText__sssOS",drawer:"header_drawer__TSURu","text-animation":"header_text-animation__8xqN_"}},75700:function(e){e.exports={web_components_layout:"layout_web_components_layout___hzbw","text-animation":"layout_text-animation__ZPpYA"}},271:function(e){e.exports={mobile_footer:"mobileFooter_mobile_footer__qupXP",copyright:"mobileFooter_copyright__KM8VB",links:"mobileFooter_links__y_NwH",powered:"mobileFooter_powered__lnVQE","text-animation":"mobileFooter_text-animation__o3HQp"}}}]);
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.