1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9483],{45473:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w,gotoBrand:()=>x});var r=n(54568),a=n(99680);n(7620);var o=n(29266),l=n(13446),c=n(36448),i=n(16787),d=n(20215),s=n(76996),h=n(34582),m=n(43158),u=n(53050),p=n(34068);function x(e,t){try{let n=new URLSearchParams;n.append("brand_id",t),n.append("brand_domain",e),n.append("logout","0"),window.location.replace(decodeURIComponent("/merchant_login_proxy?"+n.toString()))}catch(e){}}let g=()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(u.w,{routeName:"",icon:null,children:(0,r.jsx)(l.VStack,{alignItems:"stretch",gap:"xl",children:[,,,].fill(null).map(j)})}),t[0]=e):e=t[0],e},b=()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(l.Box,{position:"relative",width:"30px",height:"30px",color:"neutral.050",background:"neutral.100",borderRadius:"lg",children:(0,r.jsx)(l.AbsoluteCenter,{width:"14px",height:"14px",children:(0,r.jsx)(c.F,{weight:"bold"})})}),t[0]=e):e=t[0],e},_=async()=>(0,s.Hv)(),w=e=>{let t,n,c,s=(0,a.c)(6),{onCreateBrand:w}=e,{data:j,isLoading:f}=(0,o.Ay)("brands",_);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.lR.get(i.cy.brandId)||"",s[0]=t):t=s[0];let k=t;return s[1]===Symbol.for("react.memo_cache_sentinel")?(n=h.A.gettext("åæè³å ¶ä»åç"),s[1]=n):n=s[1],s[2]!==j?.data||s[3]!==f||s[4]!==w?(c=(0,r.jsx)(p.Q,{title:n,routeName:"switch-brand",children:f?(0,r.jsx)(g,{}):(0,r.jsxs)(r.Fragment,{children:[j?.data.map(e=>{let t=(0,m.Ql)(e.logo.src,50,50);return t?(0,r.jsx)(u.w,{routeName:"create-new-brand",icon:(0,r.jsx)(l.Avatar,{width:"32px",height:"32px",name:e.name,...t}),onClick:t=>{t.stopPropagation(),x(e.domain,e.id)},forceActive:k===e.id,children:e.name},e.id):null}),(0,r.jsx)(u.w,{routeName:"create-new-brand",icon:(0,r.jsx)(b,{}),onClick:e=>{e.stopPropagation(),w()},children:h.A.gettext("æ°å¢åçå®ç¶²")},(0,d.A)("menu-link-"))]})}),s[2]=j?.data,s[3]=f,s[4]=w,s[5]=c):c=s[5],c};function j(){return(0,r.jsx)(l.Skeleton,{height:"24px",startColor:"neutral.050",endColor:"neutral.080"},(0,d.A)("skeleton-"))}}}]); 2//# sourceMappingURL=https://mypinzap.com/static/chunks/menu-components.2807d408c0dfa52c.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.