PageSourceSearch

https://www.wowple.com/_nuxt/bwUUCi1B.js

js wowple.com collected 2026-10-02 00:35:54 UTC 27,931 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D01_u2Yj.js","./B7lTcWLE.js","./entry.DgOxuhhz.css"])))=>i.map(i=>d[i]);
2import{f as ce,g as de,H as oe,o as l,c,a as e,t as n,l as i,e as v,F as L,G as $,B as N,m as F,A as Q,r as x,D as ue,s as Ge,v as Te,x as Ce,q as Me,k as ee,Q as $e,J as Se,$ as Be,w as E,d as M,K as De,ad as te,M as Pe,aH as Ee,T as Fe,U as je,V as Ae,Y as Ue,X as Ie,E as He,_ as Ye}from"./B7lTcWLE.js";import{_ as Oe}from"./CD_lHf65.js";import{_ as Re}from"./C0zBP92y.js";import{_ as Ve}from"./CNfNPT-2.js";import{_ as ze}from"./rH8ginVy.js";import{l as Ke}from"./O7ZJede9.js";import{u as qe}from"./BdHRgecS.js";import{u as Je}from"./vw9Uwsqt.js";import{u as Qe}from"./BI9Yyq_F.js";import{i as Xe,a as We}from"./DPTfgbNA.js";const Ze={class:"space-y-4"},et={class:"rounded-xl bg-gray-50 px-4 py-3"},tt={class:"text-sm font-semibold text-gray-800"},ot={class:"mt-1 text-xs text-gray-500"},st={class:"space-y-2"},it={class:"text-xs font-bold text-gray-600"},nt={class:"grid grid-cols-1 gap-2"},rt=["onClick"],at={class:"min-w-0"},lt={class:"block truncate text-sm font-semibold text-gray-900"},ct={key:0,class:"mt-0.5 block truncate text-xs text-gray-400"},dt={class:"space-y-2"},ut={class:"text-xs font-bold text-gray-600"},pt={key:0,class:"rounded-xl border border-amber-100 bg-amber-50 px-4 py-3 text-sm text-amber-700"},ht={key:1,class:"grid grid-cols-2 gap-2"},gt=["onClick"],xt={class:"truncate text-sm font-semibold text-gray-900"},yt={class:"flex gap-2 pt-1"},mt=["disabled"],ft=ce({__name:"GoodsDuplicateForm",props:{branches:{},spaces:{},source:{},saving:{type:Boolean}},emits:["submit","cancel"],setup(G,{emit:S}){const w=G,o=S,{t:g}=de(),y=x(null),m=x(null),b=ue(()=>w.spaces.filter(f=>f.branchNo===y.value));oe(y,()=>{m.value=b.value[0]?.spaceNo??null}),oe(()=>w.source,f=>{if(!f)return;const p=w.spaces.find(_=>_.spaceNo===f.spaceNo);y.value=f.branchNo??p?.branchNo??w.branches[0]?.branchNo??null,m.value=w.spaces.some(_=>_.spaceNo===f.spaceNo&&_.branchNo===y.value)?f.spaceNo:b.value[0]?.spaceNo??null},{immediate:!0});function X(){m.value!=null&&o("submit",m.value)}return(f,p)=>{const _=Ve;return l(),c("div",Ze,[e("div",et,[e("p",tt,n(G.source?.productNm),1),e("p",ot,n(i(g)("host.pgGoodsList.duplicateTargetDesc")),1)]),e("div",st,[e("label",it,[v(n(i(g)("host.pgGoodsRegister.selectBranchLabel")),1),p[1]||(p[1]=e("span",{class:"text-wowple-500"},"*",-1))]),e("div",nt,[(l(!0),c(L,null,$(G.branches,d=>(l(),c("button",{key:d.branchNo,type:"button",class:N(["flex items-center justify-between rounded-xl border px-4 py-3 text-left transition",i(y)===d.branchNo?"border-wowple-400 bg-wowple-50/60 ring-2 ring-wowple-100":"border-gray-200 bg-white hover:border-wowple-200 hover:bg-gray-50"]),onClick:W=>y.value=d.branchNo},[e("span",at,[e("span",lt,n(d.branchNm),1),d.address?(l(),c("span",ct,n(d.address),1)):F("",!0)]),e("span",{class:N(["ml-3 flex h-5 w-5 shrink-0 items-center justify-center rounded-full",i(y)===d.branchNo?"bg-wowple-500 text-white":"border border-gray-200 text-transparent"])},[...p[2]||(p[2]=[e("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"20 6 9 17 4 12"})],-1)])],2)],10,rt))),128))])]),e("div",dt,[e("label",ut,[v(n(i(g)("host.pgGoodsRegister.selectSpaceLabel")),1),p[3]||(p[3]=e("span",{class:"text-wowple-500"},"*",-1))]),i(b).length?(l(),c("div",ht,[(l(!0),c(L,null,$(i(b),d=>(l(),c("button",{key:d.spaceNo,type:"button",class:N(["flex items-center justify-between rounded-xl border px-4 py-3 text-left transition",i(m)===d.spaceNo?"border-wowple-400 bg-wowple-50/60 ring-2 ring-wowple-100":"border-gray-200 bg-white hover:border-wowple-200 hover:bg-gray-50"]),onClick:W=>m.value=d.spaceNo},[e("span",xt,n(d.spaceNm),1),e("span",{class:N(["ml-2 flex h-5 w-5 shrink-0 items-center justify-center rounded-full",i(m)===d.spaceNo?"bg-wowple-500 text-white":"border border-gray-200 text-transparent"])},[...p[4]||(p[4]=[e("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"20 6 9 17 4 12"})],-1)])],2)],10,gt))),128))])):(l(),c("div",pt,n(i(g)("host.pgGoodsRegister.n
2oSpaceInBranchNote")),1))]),e("div",yt,[e("button",{type:"button",disabled:G.saving||i(m)==null,class:"h-btn-save flex-1",onClick:X},[G.saving?(l(),Q(_,{key:0,width:"14",height:"14",class:"animate-spin"})):F("",!0),v(" "+n(G.saving?i(g)("host.pgGoodsDetail.registeringLabel"):i(g)("host.pgGoodsList.duplicateSubmit")),1)],8,mt),e("button",{type:"button",class:"flex-1 rounded-xl border border-gray-200 px-4 py-3 text-sm font-semibold text-gray-600 hover:bg-gray-50 transition",onClick:p[0]||(p[0]=d=>o("cancel"))},n(i(g)("host.cancel")),1)])])}}}),vt=Object.assign(ft,{__name:"GoodsDuplicateForm"}),bt={class:"flex items-center justify-between"},wt={class:"text-xl font-bold text-gray-900"},_t={class:"mt-0.5 text-sm text-gray-500"},kt={key:0,class:"space-y-8"},Lt={class:"space-y-2.5 pt-3"},Nt={key:1,class:"rounded-3xl border border-dashed border-gray-200 bg-white px-6 py-16 text-center"},Gt={class:"text-base font-bold text-gray-800"},Tt={class:"mx-auto mt-1.5 max-w-sm text-sm leading-relaxed text-gray-400"},Ct={key:2,class:"space-y-8"},Mt={class:"flex items-center gap-2 pb-2 border-b border-gray-100"},$t={class:"text-sm font-bold text-gray-800"},St={class:"text-xs text-gray-400"},Bt=["onClick"],Dt={class:"pl-4 pr-4 pt-3.5 pb-3.5"},Pt={class:"flex items-start gap-3"},Et={class:"flex-1 min-w-0"},Ft={class:"flex items-center gap-1.5 flex-wrap mb-1"},jt={class:"rounded-md bg-gray-100 px-2 py-0.5 text-[10px] font-semibold text-gray-500"},At=["onClick"],Ut={class:"text-[14px] font-bold text-gray-900 truncate leading-tight"},It={class:"flex items-center gap-1 flex-shrink-0 mt-0.5"},Ht=["onClick"],Yt=["onClick"],Ot={class:"mt-2.5 flex flex-wrap gap-1.5"},Rt=["innerHTML"],Vt={key:0,class:"mt-2 flex items-center gap-1 text-xs text-gray-400 truncate"},zt={key:3,class:"rounded-2xl border border-dashed border-gray-200 bg-white px-6 py-14 text-center"},Kt={class:"text-sm font-semibold text-gray-500"},qt={class:"mt-1 text-xs text-gray-400"},Jt={class:"relative z-10 flex max-h-[86vh] w-full max-w-[460px] flex-col overflow-hidden rounded-3xl bg-white shadow-[0_20px_60px_rgba(0,0,0,0.25)]"},Qt={class:"flex items-start justify-between gap-3 border-b border-gray-100 px-6 pt-5 pb-4"},Xt={class:"min-w-0"},Wt={class:"text-[12px] text-gray-400"},Zt={class:"mt-0.5 text-[19px] font-bold leading-snug text-gray-900"},eo=["aria-label"],to={class:"flex-1 overflow-y-auto px-6 py-5"},oo={"data-vsbs-no-drag":"",class:"flex max-h-[86vh] flex-col"},so={class:"flex items-start justify-between gap-3 border-b border-gray-100 px-5 pt-1 pb-3"},io={class:"min-w-0"},no={class:"text-[12px] text-gray-400"},ro={class:"mt-0.5 text-[18px] font-bold leading-snug text-gray-900"},ao=["aria-label"],lo={class:"flex-1 overflow-y-auto px-5 py-4"},co=ce({__name:"index",async setup(G){let S,w;const{t:o}=de();qe({title:o("host.pgGoodsList.pageTitle"),noindex:!0});const{show:g}=Ge(),{confirm:y,alert:m}=Te(),{withActionLoading:b}=Je(),{apiGetHostProducts:X,apiToggleProductUse:f,apiDeleteProduct:p,apiDuplicateProduct:_,apiSortProducts:d,apiGetHostSpaces:W}=([S,w]=Ce(()=>He(()=>import("./D01_u2Yj.js"),__vite__mapDeps([0,1,2]),import.meta.url)),S=await S,w(),S),se=Me(),j=Qe(),H=x(!0),A=x([]),ie=x(!0),pe=ue(()=>{const t=j.selectedId!==null?A.value.filter(r=>r.branchNo===j.selectedId):A.value,s=new Map;for(const r of t)s.has(r.spaceNo)||s.set(r.spaceNo,{spaceNm:r.spaceNm??"-",branchNm:r.branchNm??"",items:[]}),s.get(r.spaceNo).items.push(r);return[...s.entries()].map(([r,h])=>({spaceNo:r,...h}))}),Y=x([]);async function O(){H.value=!0;const[t,s]=await Promise.all([X().catch(()=>null),W().catch(()=>null),j.fetchBranches().catch(()=>null)]);A.value=t?.result_data??[],Y.value=(s?.result_data??[]).map(r=>({spaceNo:r.spaceNo,spaceNm:r.spaceNm,branchNo:r.branchNo})),ie.value=Y.value.length>0,H.value=!1}ee(O);async function ne(){if(!ie.value){await y(o("host.pgGoodsList.confirmNeedSpaceFirst"),{type:"warning",confirmText:o("host.registerSpace"),cancelText:o("host.cancel")})&&se.push("/host/spaces/register");return}se.push("/host/goods/register")}async function he(t){if(!await y(t.useYn==="Y"?o("host.pgGoodsList.confirmDeactivate"):o("host.pgGoodsList.confirmActivate"),{type:"warning",confirmText:o("host.pgGoodsList.confirmChangeAction"),cancelText:o("host.cancel")}))return;const r=t.useYn==="Y";(await b(()=>f(t.productNo).catch(()=>null)))?.result_cd==="0000"?(g(o(r?"host.pgGoodsList.toastDeactivated":"host.pgGoodsList.toastActivated"),"success"),O()):g(o("host.pgGoodsList.toastChangeFailed"),"error")}const B=x(!1),U=x(null),R=x(!1),I=x(!1);
2$e(()=>B.value&&I.value,()=>{B.value=!1},"goodsDupDesktop");let V=null;function re(t){I.value=t.matches}ee(()=>{V=window.matchMedia("(min-width: 1024px)"),I.value=V.matches,V.addEventListener("change",re)}),Se(()=>{V?.removeEventListener("change",re)});function ge(t){U.value=t,B.value=!0}function k(){B.value=!1}function xe(t){t||k()}async function ae(t){if(U.value){R.value=!0;try{(await b(()=>_(U.value.productNo,t).catch(()=>null)))?.result_cd==="0000"?(k(),await m(o("host.pgGoodsList.toastDuplicated"),{type:"success"}),await O()):g(o("host.pgGoodsList.toastDuplicateFailed"),"error")}finally{R.value=!1}}}async function ye(t){if(!await y(o("host.pgGoodsList.confirmDeleteProduct",{name:t.productNm}),{type:"error",title:o("host.pgGoodsList.deleteTitle"),confirmText:o("host.delete"),cancelText:o("host.cancel")}))return;(await b(()=>p(t.productNo).catch(()=>null)))?.result_cd==="0000"?(await O(),await m(o("host.pgGoodsList.toastDeleted"),{type:"success"})):g(o("host.pgGoodsList.toastDeleteFailed"),"error")}const z=x([]);function me(t){const s=z.value.indexOf(t);s>=0?z.value.splice(s,1):z.value.push(t)}function Z(t){return z.value.includes(t)}const D=x([]);oe(pe,t=>{const s=t.map(r=>{const h=D.value.find(T=>T.spaceNo===r.spaceNo),J=h?.items.map(T=>T.productNo).join(",")===r.items.map(T=>T.productNo).join(",");return{spaceNo:r.spaceNo,spaceNm:r.spaceNm,branchNm:r.branchNm,items:J&&h?h.items:[...r.items]}});D.value=s},{immediate:!0,flush:"sync"});const le=x(!1);ee(()=>Be(()=>{le.value=!0}));async function fe(t){if(!le.value)return;const s=D.value.find(h=>h.spaceNo===t);if(!s)return;const r=[];for(const h of D.value)r.push(...h.items);A.value=r,await b(()=>d(s.items.map(h=>h.productNo)).catch(()=>g(o("host.pgGoodsList.toastSortFailed"),"error")))}const K={TIME:{color:"#2563EB",bg:"#EFF6FF"},PACKAGE:{color:"#7C3AED",bg:"#F5F3FF"},OFFICE:{color:"#0891B2",bg:"#ECFEFF"},STAY:{color:"#B45309",bg:"#FFFBEB"}};function ve(t){return{TIME:o("host.pgGoodsList.priceTypeTime"),PACKAGE:o("host.pgGoodsList.priceTypePackage"),OFFICE:o("host.pgGoodsList.priceTypeOffice"),STAY:o("host.pgGoodsList.priceTypeStay")}[t]??t}function be(t){return{REALTIME:o("host.pgGoodsList.payMethodRealtime"),HOST_APPROVAL:o("host.pgGoodsList.payMethodHostApproval")}[t]??t}function q(t){return!t||t<=0?"-":t>=60?o("host.pgGoodsList.hoursUnit",{n:t/60}):o("host.pgGoodsList.minutesUnit",{n:t})}function P(t){return t>0?o("common.currency",{amount:t.toLocaleString("ko-KR")}):"-"}function we(t){if(t.priceType==="TIME"){if(!t.basicPrice)return o("host.pgGoodsList.priceNotSet");const s=q(t.basicSaleTimeUnit||60);return`${P(t.basicPrice)} / ${s}`}if(t.priceType==="PACKAGE"){if(!t.packagePrice)return o("host.pgGoodsList.priceNotSet");const s=Xe(t)?"":` (${We(t)})`;return`${P(t.packagePrice)}${s}`}if(t.priceType==="OFFICE"){if(!t.officePrice)return o("host.pgGoodsList.priceNotSet");const s=t.officeDivision==="MONTHLY"?o("host.pgGoodsList.unitMonthShort"):o("host.pgGoodsList.unitDay");return`${P(t.officePrice)} / ${s}`}return t.priceType==="STAY"?t.basicPrice?t.stayType==="DAYTIME"?`${P(t.basicPrice)} / ${o("host.pgGoodsList.dayUse")} (${q(t.stayUseHours)})`:`${P(t.basicPrice)} / ${o("host.pgGoodsList.perNight")}`:o("host.pgGoodsList.priceNotSet"):"-"}
2const _e={clock:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',clock_off:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="15" y1="15" x2="12" y2="12"/></svg>',list:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>',info:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>
2',login:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg>',logout:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" y1="12" x2="9" y2="12"/></svg>',moon:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>',calendar:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
2',time_rng:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 8 14"/></svg>',users:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>',user_plus:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></svg>',zap:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>
2',zap_off:'<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="12.41 6.75 13 2 10.57 4.92"/><polyline points="18.57 12.91 21 10 15.66 10"/><polyline points="8 8 3 14 12 14 11 22 16 16"/><line x1="1" y1="1" x2="23" y2="23"/></svg>'};function ke(t){const s=[];if(t.priceType==="TIME"&&(t.basicMinTimeUnit>0&&s.push({icon:"clock",text:o("host.pgGoodsList.minTime",{time:q(t.basicMinTimeUnit)})}),t.basicMaxTimeUnit>0?s.push({icon:"clock_off",text:o("host.pgGoodsList.maxTime",{time:q(t.basicMaxTimeUnit)})}):s.push({icon:"clock_off",text:o("host.pgGoodsList.noMaxLimit"),dimmed:!0})),t.priceType==="OFFICE"){const r=t.officeDivision==="MONTHLY"?o("host.pgGoodsList.unitMonths"):o("host.pgGoodsList.unitDay");t.officeMinUnit>0&&s.push({icon:"list",text:o("host.pgGoodsList.minUnitCount",{value:t.officeMinUnit,unit:r})}),t.officeMaxUnit>0&&t.officeMaxUnit!==t.officeMinUnit&&s.push({icon:"list",text:o("host.pgGoodsList.maxUnitCount",{value:t.officeMaxUnit,unit:r})}),t.officePolicy&&s.push({icon:"info",text:t.officePolicy.slice(0,20)+(t.officePolicy.length>20?"…":"")})}return t.priceType==="STAY"&&(t.stayType==="OVERNIGHT"?(t.stayCheckInTime&&s.push({icon:"login",text:o("host.pgGoodsList.checkInTime",{time:t.stayCheckInTime})}),t.stayCheckOutTime&&s.push({icon:"logout",text:o("host.pgGoodsList.checkOutTime",{time:t.stayCheckOutTime})}),t.stayMinNight>1&&s.push({icon:"moon",text:o("host.pgGoodsList.minNights",{n:t.stayMinNight})}),t.stayMaxNight&&t.stayMaxNight<30&&s.push({icon:"calendar",text:o("host.pgGoodsList.maxNights",{n:t.stayMaxNight})})):t.stayDaytimeStart&&t.stayDaytimeEnd&&s.push({icon:"time_rng",text:o("host.pgGoodsList.usageTimeRange",{start:t.stayDaytimeStart,end:t.stayDaytimeEnd})})),t.peopleCnt>0&&s.push({icon:"users",text:o("host.pgGoodsList.standardPeople",{n:t.peopleCnt})}),t.extraPeopleYn==="Y"&&t.extraPrice>0&&s.push({icon:"user_plus",text:o("host.pgGoodsList.extraPersonPrice",{price:P(t.extraPrice)})}),t.sameDayReserveYn==="Y"?s.push({icon:"zap",text:o("host.pgGoodsList.sameDayAvailable")}):s.push({icon:"zap_off",text:o("host.pgGoodsList.sameDayUnavailable"),dimmed:!0}),s}return(t,s)=>{const r=Oe,h=Re,J=vt,T=Ie,Le=Ue,Ne=ze;return l(),Q(Ne,null,{default:E(()=>[M(r,{show:i(H)},null,8,["show"]),e("div",bt,[e("div",null,[e("h1",wt,n(i(o)("host.pgGoodsList.pageTitle")),1),e("p",_t,n(i(o)("host.pgGoodsList.pageSubtitle")),1)]),e("button",{type:"button",onClick:ne,class:"flex items-center gap-2 rounded-xl bg-gradient-to-r from-wowple-500 to-wowple-600 px-5 py-2.5 text-sm font-bold text-white shadow-md shadow-wowple-200 hover:shadow-lg hover:-translate-y-0.5 active:scale-95 transition-all"},[s[0]||(s[0]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),v(" "+n(i(o)("host.addGoods")),1)])]),i(H)?(l(),c("div",kt,[(l(),c(L,null,$(2,u=>e("section",{key:u,class:"animate-pulse"},[s[2]||(s[2]=e("div",{class:"flex items-center gap-2 pb-2 border-b border-gray-100"},[e("div",{class:"h-6 w-6 rounded-lg bg-gray-100"}),e("div",{class:"h-3.5 w-24 rounded bg-gray-100"}),e("div",{class:"ml-auto h-3 w-20 rounded bg-gray-100"})],-1)),e("div",Lt,[(l(),c(L,null,$(2,a=>e("div",{key:a,class:"rounded-2xl bg-white ring-1 ring-gray-100 p-4"},[...s[1]||(s[1]=[e("div",{class:"flex items-center gap-3"},[e("div",{class:"h-10 w-10 shrink-0 rounded-xl bg-gray-100"}),e("div",{class:"flex-1 space-y-2"},[e("div",{class:"h-4 w-1/3 rounded bg-gray-100"}),e("div",{class:"h-3 w-1/2 rounded bg-gray-100"})])],-1)])])),64))])])),64))])):i(A).length?i(D).length?(l(),c("div",Ct,[(l(!0),c(L,null,$(i(D),u=>(l(),c("section",{key:u.spaceNo},[e("div",Mt,[s[6]||(s[6]=e("div",{class:"flex h-6 w-6 items-center justify-center rounded-lg bg-wowple-50 flex-shrink-0"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"#6366f1","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),e("polyline",{points:"9 22 9 12 15 12 15 22"})])],-1)),e("span",$t,n(u.spaceNm),1),e("span",St,n(u.branchNm),1),e("button",{type:"button",class:"ml-auto flex items-center gap-1.5 text-xs text-gray-400 hover:text-gray-600 transition-colors",onClick:a=>me(u.spaceNo)},[e("span",null,n(Z(u.spaceNo)?i(o)("host.pgGoodsList.itemCount",{count:u.items.length}):`${i(o)("host.pgGoodsList.itemCount",{count:u.items.length})} · ${i(o)("host.pgGoodsList.dragToReorder")}`),1),(l(),c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",class:N([Z(u.spaceNo)?"-rotate-90":"","transition-transform duration-200"])},[...s[5]||(s[5]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)])],2))],8,Bt)]),De(e("div",null,[M(i(Ke),{modelValue:u.items,"onUpdate:modelValue":a=>u.items=a,onEnd:a=>fe(u.spaceNo),handle:".drag-handle",animation:280,easing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)","ghost-class":"drag-ghost","chosen-class":"drag-chosen","drag-class":"drag-moving",class:"space-y-2.5 pt-3"},{default:E(()=>[(l(!0),c(L,null,$(u.items,a=>(l(),c("article",{key:a.productNo,class:N(["relative rounded-2xl bg-white overflow-hidden ring-1 ring-gray-100 shadow-sm hover:shadow-md hover:ring-gray-200 transition-all",a.useYn!=="Y"?"opacity-50":""])},[e("div",{class:"absolute left-0 top-0 bottom-0 w-1 rounded-l-2xl",style:te(`background:${K[a.priceType]?.color??"#ccc"}`)},null,4),e("div",Dt,[e("div",Pt,[s[7]||(s[7]=e("div",{class:"drag-handle mt-1 flex-shrink-0 cursor-grab active:cursor-grabbing text-gray-300 hover:text-gray-400 transition-colors touch-none"}
2,[e("svg",{width:"12",height:"18",viewBox:"0 0 12 18",fill:"currentColor"},[e("circle",{cx:"3.5",cy:"3.5",r:"1.5"}),e("circle",{cx:"8.5",cy:"3.5",r:"1.5"}),e("circle",{cx:"3.5",cy:"9",r:"1.5"}),e("circle",{cx:"8.5",cy:"9",r:"1.5"}),e("circle",{cx:"3.5",cy:"14.5",r:"1.5"}),e("circle",{cx:"8.5",cy:"14.5",r:"1.5"})])],-1)),e("div",Et,[e("div",Ft,[e("span",{class:"rounded-md px-2 py-0.5 text-[10px] font-bold tracking-wide",style:te(`color:${K[a.priceType]?.color??"#666"};background:${K[a.priceType]?.bg??"#f5f5f5"}`)},[v(n(ve(a.priceType))+" ",1),a.priceType==="STAY"&&a.stayType?(l(),c(L,{key:0},[v(" · "+n(a.stayType==="OVERNIGHT"?i(o)("host.pgGoodsList.oneNightBadge"):i(o)("host.pgGoodsList.dayUse")),1)],64)):F("",!0)],4),e("span",jt,n(be(a.paymentMethod)),1),e("button",{type:"button",onClick:C=>he(a),class:N(["rounded-md px-2 py-0.5 text-[10px] font-bold transition-all",a.useYn==="Y"?"bg-emerald-50 text-emerald-600 hover:bg-emerald-100":"bg-gray-100 text-gray-400 hover:bg-gray-200"])},n(a.useYn==="Y"?`● ${i(o)("host.pgGoodsList.inUseStatus")}`:`○ ${i(o)("host.inactive")}`),11,At)]),e("p",Ut,n(a.productNm),1),e("p",{class:"mt-0.5 text-[13px] font-bold",style:te(`color:${K[a.priceType]?.color??"#6366f1"}`)},n(we(a)),5)]),e("div",It,[M(h,{to:`/host/goods/${a.productNo}`,draggable:"false",class:"rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-[11px] font-semibold text-gray-600 hover:bg-gray-50 transition whitespace-nowrap"},{default:E(()=>[v(n(i(o)("host.edit")),1)]),_:1},8,["to"]),e("button",{type:"button",draggable:"false",onClick:Pe(C=>ge(a),["stop"]),class:"rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-[11px] font-semibold text-gray-500 hover:bg-gray-50 transition"},n(i(o)("host.pgGoodsList.duplicateAction")),9,Ht),e("button",{type:"button",draggable:"false",onClick:C=>ye(a),class:"rounded-lg border border-red-100 bg-white px-2.5 py-1.5 text-[11px] font-semibold text-red-400 hover:bg-red-50 hover:text-red-600 transition"},n(i(o)("host.delete")),9,Yt)])]),e("div",Ot,[(l(!0),c(L,null,$(ke(a),C=>(l(),c("span",{key:C.text,class:N(["flex items-center gap-1 rounded-md px-2 py-1 text-[11px] font-medium",C.dimmed?"bg-gray-50 text-gray-400":"bg-gray-50 text-gray-600"])},[e("span",{class:"flex-shrink-0 opacity-50",innerHTML:_e[C.icon]??""},null,8,Rt),v(" "+n(C.text),1)],2))),128))]),a.memo?(l(),c("p",Vt,[s[8]||(s[8]=e("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"text-gray-300 flex-shrink-0"},[e("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),e("line",{x1:"16",y1:"17",x2:"8",y2:"17"})],-1)),v(" "+n(a.memo),1)])):F("",!0)])],2))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onEnd"])],512),[[Ee,!Z(u.spaceNo)]])]))),128))])):(l(),c("div",zt,[e("p",Kt,n(i(o)("host.pgGoodsList.filterEmptyTitle")),1),e("p",qt,n(i(o)("host.pgGoodsList.filterEmptyDesc")),1)])):(l(),c("div",Nt,[s[4]||(s[4]=e("div",{class:"mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-3xl bg-gradient-to-br from-wowple-50 to-gray-100"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",stroke:"#FF404B","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"}),e("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})])],-1)),e("p",Gt,n(i(o)("host.pgGoodsList.emptyTitle")),1),e("p",Tt,n(i(o)("host.pgGoodsList.emptyDesc")),1),e("button",{type:"button",onClick:ne,class:"mt-6 inline-flex items-center gap-2 rounded-xl bg-wowple-500 px-6 py-3 text-sm font-bold text-white shadow-[0_4px_14px_rgba(255,64,75,0.30)] transition-all hover:bg-wowple-600 active:scale-95"},[s[3]||(s[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),v(" "+n(i(o)("host.pgGoodsList.addFirstProduct")),1)])])),(l(),Q(Fe,{to:"body"},[M(je,{"enter-active-class":"transition-opacity duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:E(()=>[i(B)&&i(I)?(l(),c("div",{key:0,class:"fixed inset-0 z-[200] flex items-center justify-center px-4",role:"dialog","aria-modal":"true",onKeydown:Ae(k,["esc"])},[e("div",{class:"absolute inset-0 bg-black/50 backdrop-blur-[2px]",onClick:k}),e("div",Jt,[e("div",Qt,[e("div",Xt,[e("p",Wt,n(i(o)("host.pgGoodsList.duplicateAction")),1),e("p",Zt,n(i(o)("host.pgGoodsList.duplicateTargetTitle")),1)]),e("button",{type:"button","aria-label":i(o)("host.pgBranchHoliday.close"),class:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gray-100 hover:bg-gray-200",onClick:k},[...s[9]||(s[9]=[e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#999","stroke-width":"2.5","stroke-linecap":"round"},[e("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,eo)]),e("div",to,[M(J,{branches:i(j).branches,spaces:i(Y),source:i(U),saving:i(R),onSubmit:ae,onCancel:k},null,8,["branches","spaces","source","saving"])])])],32)):F("",!0)]),_:1})])),M(Le,null,{default:E(()=>[i(I)?F("",!0):(l(),Q(T,{key:0,"model-value":i(B),"history-key":"goodsDupl
2icateForm","can-swipe-close":!0,"can-backdrop-close":!0,"onUpdate:modelValue":xe},{default:E(()=>[e("div",oo,[e("div",so,[e("div",io,[e("p",no,n(i(o)("host.pgGoodsList.duplicateAction")),1),e("p",ro,n(i(o)("host.pgGoodsList.duplicateTargetTitle")),1)]),e("button",{type:"button","aria-label":i(o)("host.pgBranchHoliday.close"),class:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gray-100",onClick:k},[...s[10]||(s[10]=[e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#999","stroke-width":"2.5","stroke-linecap":"round"},[e("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,ao)]),e("div",lo,[M(J,{branches:i(j).branches,spaces:i(Y),source:i(U),saving:i(R),onSubmit:ae,onCancel:k},null,8,["branches","spaces","source","saving"])])])]),_:1},8,["model-value"]))]),_:1})]),_:1})}}}),wo=Ye(co,[["__scopeId","data-v-d2a1ab98"]]);export{wo as default};

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.