PageSourceSearch

https://www.luckymeal.io/_next/static/chunks/6683.e65d514f98373a9c.js

js luckymeal.io collected 2026-09-24 14:04:59 UTC 7,219 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6683],{2180:(e,t,n)=>{function a(e){if(e&&e.success)return e.data}function o(e){return(null==e?void 0:e.success)?e.data:null}n.d(t,{sE:()=>o,sI:()=>a})},15842:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(23458),o=n(62150),r=n(97569);function i(){let{isLoggedIn:e}=(0,r.default)(),{fetchWithAuth:t}=(0,o.A)();return(0,a.I)({queryKey:["place","my-info"],queryFn:()=>t("".concat("https://api.luckymeal.io","/api/place/users/me"),{method:"GET",headers:{"Content-Type":"application/json"}}),enabled:e,throwOnError:!1})}},53307:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(23458),o=n(62150);function r(e){let{fetchWithAuth:t}=(0,o.A)();return(0,a.I)({queryKey:["place",e,"employees"],queryFn:()=>t("".concat("https://api.luckymeal.io","/api/place/places/").concat(e,"/employees"),{method:"GET",headers:{"Content-Type":"application/json"}}),enabled:!!e})}},54387:(e,t,n)=>{n.d(t,{I:()=>c});var a=n(1275),o=n(25700),r=n(27896),i=n(7696);let l={toolbarType:r.Kk.NAVIGATION,showArrow:!0,showReloadButton:!0,visibleTitle:!1,title:"",isPresentAfterPageLoad:!1,...i.p},s={android:{showTitle:!0,hideToolbarOnScroll:!1,viewStyle:o.gk.FULL_SCREEN,startAnimation:o.kM.FADE_IN,exitAnimation:o.kM.FADE_OUT},iOS:{closeButtonText:o.At.CLOSE,viewStyle:o.GC.FULL_SCREEN,animationEffect:o.E9.COVER_VERTICAL,enableBarsCollapsing:!1,enableReadersMode:!1}};class c{static isApp(){return a.Capacitor.isNativePlatform()}static isAndroid(){return"android"===a.Capacitor.getPlatform()}async open(){if(this.url){if(!c.isApp())return void window.open(this.url,"_blank","noopener,noreferrer");if(this.inAppView)return void await this.openInAppView();c.isAndroid()?await this.openForAndroid():await this.openForIOS()}}async openInAppView(){try{await r.Nb.openWebView({url:this.url,...l})}catch(e){c.isAndroid()?await this.openForAndroid():await this.openForIOS()}}async openForAndroid(){try{await Promise.race([o.Nb.openInSystemBrowser({url:this.url,options:s}),new Promise((e,t)=>setTimeout(()=>t(Error("System browser open timeout")),c.SYSTEM_BROWSER_TIMEOUT_MS))])}catch(e){try{await o.Nb.close().catch(()=>{}),await o.Nb.openInExternalBrowser({url:this.url})}catch(e){window.location.href=this.url}}}async openForIOS(){try{await o.Nb.openInSystemBrowser({url:this.url,options:s})}catch(e){try{await o.Nb.openInExternalBrowser({url:this.url})}catch(e){window.location.href=this.url}}}createClickHandler(){return async e=>{e&&e.preventDefault(),await this.open()}}createLinkClickHandler(e){return async t=>{null==e||e(t),c.isApp()&&(t.preventDefault(),await this.open())}}getLinkTarget(){return c.isApp()?"_self":"_blank"}isValidUrl(){try{return new URL(this.url),!0}catch(e){return!1}}constructor(e,t={}){var n;this.url=e,this.inAppView=null!=(n=t.inAppView)&&n}}c.SYSTEM_BROWSER_TIMEOUT_MS=1500},62150:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(69177),o=n(33067),r=n(70096),i=n(97569);function l(){let{setIsLoggedIn:e,setAccessToken:t,setRefreshToken:n,clearLoginStatus:l,reset:s}=(0,i.default)(),{refreshPushTokenWithToken:c}=(0,r.G)(),u=(0,a.useCallback)(async()=>{let{accessToken:e}=(0,i.getSessionTokens)();e&&c(e,"place")},[c]),{fetch:p,fetchWithAuth:d}=(0,o.A)({getSessionTokens:i.getSessionTokens,getAccountInfo:()=>({accountId:(0,i.getSessionTokens)().accountId,type:"PLACE"}),setIsLoggedIn:t=>e(t),setAccessToken:e=>t(e),setRefreshToken:e=>n(e),clearLoginStatus:l,resetSession:s,buildRenewBody:(e,t)=>({placeAcc:e,placeRfs:t,type:"PLACE"}),buildAuthHeader:e=>({place_acc:e}),renewUrl:"".concat("https://api.luckymeal.io","/api/place/auth/token/renew"),onTokenRefresh:u});return{fetch:p,fetchWithAuth:d}}},66683:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var a=n(30573),o=n(13277),r=n(69177),i=n(79952),l=n(84943),s=n(82256),c=n(54387),u=n(95345),p=n(84505),d=n(52098),h=n(15283),A=n(18523),y=n(24911),m=n(93598),w=n(51756),f=n(24098),E=n(11090),S=n(90352),C=n(19642),k=n(17533),T=n(6057),I=n(56456);function _(){var e,t,n,_,v;let b=(0,o.useRouter)(),L=(0,o.useSearchParams)(),{currentPlaceId:P}=(0,i.usePlaceStore)(),R=(0,l.A)(),g=(0,S.AR)(L.get("preview")),M=(0,r.useMemo)(()=>new Date,[]),N=g&&"under-construction"!==g?(0,C.t)(g,M):null,{data:O,isLoading:D}=(0,h.WD)(P,{enabled:!g&&!!P}),V=(null==O?void 0:O.revealed)===!0,B=g?"under-construction"===g:!V,F=!g&&!!P&&D,[U,x]=(0,r.useState)(E.SW),[j,G]=(0,r.useState)(!1),[K,W]=(0,r.useState)(!1),q=(0,E.$$)(M),Y=(0,E.Z2)(U,M),H=null!=(e=Y.at(-1))?e:q,Q=null!=(t=Y.at(0))?t:q,$=!N&&!B,{data:Z}=(0,h.UL)(P,{enabled:$}),{data:z,isLoading:J}=(0,h.if)(P,q.year,q.month,{enabled:$}),{data:X,isLoading:ee}=(0,h.Uj)(P,(0,E.KB)(H),(0,E.KB)(Q),{enabled:$}
1),et=null!=(n=null==N?void 0:N.seller)?n:(0,f.ID)(Z),en=null!=(_=null==N?void 0:N.summary)?_:z?(0,f.mC)({res:z,year:q.year,month:q.month}):{year:q.year,month:q.month,expectedNetAmount:0,expectedSalesAmount:0,payOutDate:null},ea=null!=(v=null==N?void 0:N.months)?v:(0,f.Ml)(null!=X?X:[],et);(0,r.useEffect)(()=>{!N&&P&&void 0!==Z&&(0,u.RU)("view_place_settlement",{settlement_step:function(e){switch(e){case"APPROVAL_REQUIRED":return 1;case"PARTIALLY_APPROVED":case"KYC_REQUIRED":case"APPROVED":return 2;default:return 0}}(null==Z?void 0:Z.status),has_settlement_info:!!Z,place_id:P})},[Z,P]);let eo=async()=>{if(!K){W(!0);try{let e=N?[N.detail]:await Promise.all(ea.map(async e=>{let t=await d.r.getSettlementHistory(P,e.year,e.month);return(0,f.O7)({res:t,year:e.year,month:e.month,isCurrentMonth:!1,seller:et})}));await (0,w.R)({months:e,fileName:"정산내역_".concat((0,E.PS)(U))})}catch(e){(0,y.rQ)("다운로드를 실패했어요. 잠시 후 다시 시도해주세요.")}finally{W(!1)}}},er=()=>{new c.I("https://boatneck-echo-394.notion.site/2e5ffa41338780b781dfdc510106f90f?source=copy_link",{inAppView:!0}).open()};return F?(0,a.jsx)(p.A,{fullScreen:!0}):B?(0,a.jsx)(I.d,{onClickCustomerCenter:()=>m.c.showMessenger(),onPrev:()=>b.back()}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.u,{isLoading:$&&(J||ee),months:ea,periodLabel:(0,E.PS)(U),seller:et,summary:en,onClickCustomerCenter:()=>m.c.showMessenger(),onClickDownload:eo,onClickEditSeller:()=>{if(!(N?"ADMIN"===N.role:!0===R))return void A.p.show({title:"관리자만 정산 정보를 설정할 수 있어요",description:"가게 관리자에게 요청해 주세요.",confirmText:"확인"});b.push(s.f.PLACE_SETTLEMENT_SETTING)},onClickGuide:er,onClickKycConfirm:()=>b.push(s.f.PLACE_VERIFY_GUIDE),onClickMonth:e=>{let t=(0,E.KB)({year:e.year,month:e.month});b.push("".concat(s.f.PLACE_SETTLEMENT,"/").concat(t))},onClickPeriod:()=>G(!0),onClickSummary:()=>b.push("".concat(s.f.PLACE_SETTLEMENT,"/").concat((0,E.KB)(q))),onClickTaxGuide:er,onPrev:()=>b.back()}),(0,a.jsx)(k.P,{chips:(0,E._A)({today:M,joinedAt:null}),period:U,quickDetailResolver:e=>(0,E.W8)({year:e,today:M,joinedAt:null}),selectableMonths:(0,E.MI)({today:M,joinedAt:null}),visible:j,onApply:e=>{x(e),G(!1)},onClose:()=>G(!1),onReset:()=>x(E.SW)})]})}},84943:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(53307),o=n(79952),r=n(15842),i=n(2180);function l(){var e;let{currentPlaceId:t}=(0,o.usePlaceStore)(),{data:n}=(0,r.A)(),{data:l}=(0,a.A)(t),s=(0,i.sI)(n),c=(0,i.sI)(l);if(!s||!c)return null;let u=null==(e=c.find(e=>e.id===s.id))?void 0:e.grade;return u?"ADMIN"===u:null}}}]);

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.