PageSourceSearch

https://www.kitchenno1.online/_next/static/chunks/pages/tenant-pag…/layout/header-f14588bab0c89897.js

js kitchenno1.online collected 2026-09-24 15:10:37 UTC 4,848 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64689],{94184:function(e,a,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tenant-page/shinwaizakaya/layout/header",function(){return i(92269)}])},92269:function(e,a,i){"use strict";i.r(a);var n=i(85893),s=i(67294),l=i(12802),r=i(51189),o=i(59916),t=i(25142),d=i(24344),c=i(88737),h=i(93967),_=i.n(h),u=i(54331),m=i(84851),v=i(89882),f=i.n(v),x=i(803),p=i(32459);a.default=(0,m.Pi)(e=>{var a,i;let{isShowUser:h=!0}=e,{appConfig:m}=(0,d.s6)(),v=(null==e?void 0:e.indexUrl)?null==e?void 0:e.indexUrl:"/",w=null!==(i=null==e?void 0:e.navigationItems)&&void 0!==i?i:[{key:"order",label:"Order",link:"/order",asPathList:["/checkout","/complete","/store"]},{key:"recent",label:(0,n.jsxs)("span",{children:["Recent ",(0,n.jsx)("span",{className:"l-header-tabs-last-order-".concat(null==m?void 0:m.stylePath),children:"Order"})]}),link:"/recent",asPathList:["/order-detail"]}],{logo:N}=e,{memberInfo:b,isLogin:j}=u.commonStore,[g,k]=(0,s.useState)(!1),[y,S]=(0,s.useState)(!1),P=e=>{let a=w.find(a=>{var i;return e===a.link||(null===(i=a.asPathList)||void 0===i?void 0:i.some(a=>null==e?void 0:e.startsWith(a)))});if("/"===e){var i;return null===(i=w[0])||void 0===i?void 0:i.key}return a?a.key:""},T=(0,x.Z)(),C=(0,d.hU)(),[W,E]=(0,s.useState)(P(T.pathname)),I=(0,n.jsx)(l.Z,{preview:!1,src:N,alt:"".concat(null==m?void 0:m.brandName," brand logo"),
1className:_()({[f().logo_offset]:!h})});(0,s.useEffect)(()=>{var e;let a=P(null===(e=T.asPath)||void 0===e?void 0:e.split("?")[0]);a!==W&&E(a)},[T.asPath]);let O=async e=>{if("recent"!==e.key||(0,c.TS)()||await (0,t.x4)({intercept:!1,closable:!0,loginSuccess:null}),(null==e?void 0:e.target)==="_blank"&&(null==e?void 0:e.link)){window.open(e.link);return}E(e.key),"order"===e.key&&"/store"===T.asPath?T.reload():("recent"===e.key&&(0,p.T0)(),T.push(e.link))},U=async e=>{k(!1),"recent"!==e||(0,c.TS)()||await (0,t.x4)({intercept:!1,closable:!0,loginSuccess:null}),E(e);let a=w.filter(a=>a.key===e);T.push(a[0].link)},J=async()=>{(0,c.TS)()?(S(!0),await T.push("/profile"),S(!1)):(0,t.x4)({intercept:!1,closable:!0})},K=(0,s.useMemo)(()=>{if(C.isPc){if(!j)return"Sign In / Sign Up";if(!(null==b?void 0:b.firstName)&&!(null==b?void 0:b.lastName))return"Customer";let e="";return(null==b?void 0:b.firstName)&&(e=null==b?void 0:b.firstName),(null==b?void 0:b.lastName)&&(e+=" ".concat(null==b?void 0:b.lastName)),e}return j?null:"Sign In"},[C.isPc,null==b?void 0:b.firstName,null==b?void 0:b.lastName,j]);return(0,n.jsx)("header",{className:_()(f().header,"fixed-header",{[f().header_shadow]:!g}),children:(0,n.jsxs)("div",{className:f().header_core,children:[(0,n.jsx)(t.hW,{isShow:C.isMobile,children:(0,n.jsxs)("div",{className:_()(f().navigation_mobile,{[f().navigation_mobile_open]:g}),onClick:()=>{k(!g)},children:[(0,n.jsx)("i",{className:"iconfont icon-menu"}),(0,n.jsx)("i",{className:"iconfont icon-close"})]})}),(0,n.jsxs)("div",{className:f().left_wrap,children:[(0,n.jsx)(t.hW,{isShow:!!N,children:(0,n.jsxs)("div",{className:f().logo,children:[(0,n.jsx)(t.hW,{isShow:!!v,children:(0,n.jsxs)("a",{href:v,children:[" ",I]})}),(0,n.jsx)(t.hW,{isShow:!v,children:I})]})}),(0,n.jsx)(t.hW,{isShow:C.isPc,children:(0,n.jsx)("div",{className:f().navigation,children:(0,n.jsx)("div",{className:f().tabs_wrap,children:(0,n.jsx)(t.mQ,{className:f().tabs,activeKey:W,items:w,onChange:O})})})})]}),(0,n.jsx)("div",{children:(0,n.jsx)(t.hW,{isShow:h,children:(0,n.jsxs)("div",{className:f().user_info,"data-login":!0,onClick:J,children:[(0,n.jsx)(t.hW,{isShow:C.isPc||j,children:(0,n.jsx)("i",{className:"iconfont icon-iuser"})}),K&&(0,n.jsx)("span",{className:f().user_info_text,children:K})]})})}),(0,n.jsx)(t.hW,{isShow:C.isMobile,children:(0,n.jsx)(t.dy,{rootClassName:f().drawer,open:g,onClose:()=>{k(!1)},placement:"left",title:null,closable:!1,children:(0,n.jsx)(o.default,{theme:{token:{colorPrimary:null==m?void 0:null===(a=m.theme)||void 0===a?void 0:a["color-secondary"]}},children:(0,n.jsx)(r.default,{className:f().tabs,activeKey:W,onTabClick:U,tabPosition:"right",items:w})})})})]})})})},89882:function(e){e.exports={header:"header_header__U4Thg",left_wrap:"header_left_wrap__oG0tN",logo:"header_logo__AyJzm",navigation:"header_navigation__JxRrV",tabs_wrap:"header_tabs_wrap___sKq9",tabs:"header_tabs__0Jzqp",user_info:"header_user_info__QtbQ3",user_info_text:"header_user_info_text__Abmqt",header_shadow:"header_header_shadow__hFNVD",header_core:"header_header_core__Jh50s",logo_offset:"header_logo_offset__9sGuK",navigation_mobile:"header_navigation_mobile__6PhmV",navigation_mobile_open:"header_navigation_mobile_open__c1rme",userInfoText:"header_userInfoText__f_MhQ",drawer:"header_drawer__fvuOR","text-animation":"header_text-animation__S15Lj"}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=94184)}),_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.