1import{_ as ct,m as pt,A as _t,o as xe,a as gt,r as T,B as ft,p as yt,c as d,b as e,h as z,w as p,v as m,D as bt,q as S,e as x,t as u,i as g,n as v,F as w,f as C,d as ve,x as mt,k as xt,s as L,y as I,j as J,g as i}from"./index-GRB8Jcml.js";import{S as k}from"./Cafe24Service-JcfuYLwI.js";import{S as W}from"./DropshippingService-CPqH3B7B.js";import{S as vt,a as ht,b as wt}from"./snap_footer-B9eSqtLO.js";import{S as kt}from"./spinner-CjlHwONo.js";/* empty css */import{C as St}from"./compressor.esm-FeJMiU6q.js";import"./UserService-B39Vk0W_.js";const Ct={name:"ProjectPage",components:{SNAP_MENU:vt,SNAP_HEADER:ht,SNAP_FOOTER:wt,SNAP_SPINNER:kt},setup(){const t=pt({search_words:"",page_data:[],selected_data:[],raw_data:[],modal:!1,alert_display:!1,alert_confirm:!1,product_fee_rate:0,page_size:10,total:0,current:1,tab:"ì ì²´",select_items:[],is_loading:!1,categories:[],stock_open_id:null,isCategoryOpen:!1,selectedCategoryName:"ì ì²´",selectedCategoryNo:null,categoryBreadcrumb:[{name:"ì ì²´",id:"root"}],isSupplyStatusOpen:!1,selectedSupplyStatus:"ì ì²´",isSupplyPriceOpen:!1,selectedSupplyPrice:"ì ì²´",isOpenitem:!1,modal_review:!1,review_tab:"list",current_review_product:null,review_list:[],review_form_rating:5,review_form_title:"",review_form_content:"",review_form_photos:[],review_deleted_photos:[],review_is_editing:!1,review_editing_id:null,mall_id:"",modal_product_detail:!1,current_detail_product:null,sale_rounds:[],current_round:null,upcoming_round:null,round_form:{id:null,title:"",started_at:"",ended_at:""},round_tick:0,show_all_reviews:!1,product_detail_tab:"individual",discount_enabled:!1,snap_discount_rate:null,brand_setting:{creator_fee_rate:0,brand_discount_enabled:!1,brand_discount_rate:0}});t.mall_id=_t.getMallId();let r=o=>{const l=o.drop_status??(B(o)==="ON"?"T":"F"),n=o.product_fee_rate??0;t.current_detail_product={...o,discount_enabled:o.discount_enabled==="T",snap_discount_rate:o.discount_rate,delivery_min_days:o.delivery_min_days??2,delivery_max_days:o.delivery_max_days??3,free_shipping_enabled:o.free_shipping_enabled==="T",free_shipping_threshold:o.free_shipping_threshold??null,drop_status_on:l==="T",product_fee_rate:n,_original_drop_status:l,_original_fee_rate:n},t.product_detail_tab="individual",ae.value=!1,A(),M(o.id),Ke(o.id)};const oe=o=>{t.round_tick;const l=o==null?void 0:o.sale_rounds;if(!l||l.length===0)return null;const n=Date.now(),c=b=>b?new Date(String(b).replace(" ","T")).getTime():0,_=l.find(b=>c(b.started_at)<=n&&c(b.ended_at)>=n);return _?{text:"íì "+K(_.ended_at),cls:"bg-rose-50 text-rose-700"}:l.filter(b=>c(b.started_at)>n).sort((b,P)=>c(b.started_at)-c(P.started_at))[0]?{text:"ì¤íìì ",cls:"bg-amber-50 text-amber-700"}:{text:"í매ì¢
ë£",cls:"bg-gray-100 text-gray-500"}},a=o=>{if(!o)return null;const l=new Date(String(o).replace(" ","T"));return isNaN(l.getTime())?null:l},q=o=>o?String(o).replace(" ","T").slice(0,16):"",Q=o=>o?String(o).replace("T"," ")+":00":"",X=o=>o==="active"?"í매ì¤":o==="scheduled"?"ìì ":"ì¢
ë£",K=o=>{t.round_tick;const l=a(o);if(!l)return"";let n=Math.floor((l.getTime()-Date.now())/1e3);if(n<=0)return"ì¢
ë£";const c=Math.floor(n/86400);n-=c*86400;const _=Math.floor(n/3600);n-=_*3600;const y=Math.floor(n/60),b=n-y*60;return c>0?c+"ì¼ "+_+"ìê°":_>0?_+"ìê° "+y+"ë¶":y>0?y+"ë¶ "+b+"ì´":b+"ì´"},H=()=>{const o=Date.now();let l=null,n=null;t.sale_rounds.forEach(c=>{const _=a(c.started_at),y=a(c.ended_at);!_||!y||(_.getTime()>o?(c.state="scheduled",(!n||_<a(n.started_at))&&(n=c)):y.getTime()<o?c.state="ended":(c.state="active",l=c))}),t.current_round=l,t.upcoming_round=n},M=o=>{o&&k.saleRounds(o).then(l=>{l.data.code==="S"&&(t.sale_rounds=l.data.rounds||[],H())}).catch(l=>{console.log(l)})},A=()=>{t.round_form={id:null,title:"",started_at:"",ended_at:""}},G=o=>{t.round_form={id:o.id,title:o.title||"",started_at:q(o.started_at),ended_at:q(o.ended_at)}},s=()=>
1{if(!t.current_detail_product)return;if(!t.round_form.started_at||!t.round_form.ended_at){alert("ììì¼ìì ì¢
ë£ì¼ì를 모ë ì
ë ¥í´ì£¼ì¸ì.");return}if(t.round_form.started_at>=t.round_form.ended_at){alert("ì¢
ë£ì¼ìë ììì¼ìë³´ë¤ ë¤ì¬ì¼ í©ëë¤.");return}const o={cafe24_product_id:t.current_detail_product.id,title:t.round_form.title,started_at:Q(t.round_form.started_at),ended_at:Q(t.round_form.ended_at)};(t.round_form.id?k.updateSaleRound(t.round_form.id,o):k.createSaleRound(o)).then(n=>{alert(n.data.msg),n.data.code==="S"&&(A(),M(t.current_detail_product.id))}).catch(n=>{console.log(n),alert("ì²ë¦¬ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")})},f=o=>{confirm(o.round_no+"ì°¨ íì í매 기ê°ì ìì íìê² ìµëê¹?")&&k.deleteSaleRound(o.id).then(l=>{alert(l.data.msg),l.data.code==="S"&&(t.round_form.id===o.id&&A(),M(t.current_detail_product.id))}).catch(l=>{console.log(l),alert("ì²ë¦¬ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")})};let N=null;xe(()=>{N=setInterval(()=>{t.round_tick++,t.sale_rounds.length>0&&H()},1e3),W.snapboxCategories().then(o=>{var l;Y.value=((l=o.data)==null?void 0:l.data)||[]}).catch(()=>{})}),gt(()=>{N&&clearInterval(N)});let h=()=>{t.modal_product_detail=!1,document.body.style.overflow="auto",t.current_detail_product=null,t.show_all_reviews=!1},he=()=>{t.isCategoryOpen=!t.isCategoryOpen,t.isCategoryOpen||(t.categoryBreadcrumb=[{name:"ì ì²´",id:"root"}])},we=()=>{const o=t.categoryBreadcrumb[t.categoryBreadcrumb.length-1];return o.id==="root"?t.categories.filter(n=>n.parent_category_no===1).map(n=>({...n,hasChildren:t.categories.some(c=>c.parent_category_no===n.category_no)})):t.categories.filter(n=>n.parent_category_no===o.id).map(n=>({...n,hasChildren:t.categories.some(c=>c.parent_category_no===n.category_no)}))},ke=o=>{t.selectedCategoryName=o.category_name,t.selectedCategoryNo=o.category_no,t.isCategoryOpen=!1,t.categoryBreadcrumb=[{name:"ì ì²´",id:"root"}],F()},Se=o=>{t.categoryBreadcrumb.push({name:o.category_name,id:o.category_no})},Ce=o=>{var n;const l=(n=t.$refs)==null?void 0:n.categoryDropdown;l&&!l.contains(o.target)&&(t.isCategoryOpen=!1,t.categoryBreadcrumb=[{name:"ì ì²´",id:"root"}])},Ne=()=>{t.categoryBreadcrumb.length>1&&t.categoryBreadcrumb.pop()},Oe=o=>{t.categoryBreadcrumb=t.categoryBreadcrumb.slice(0,o+1)},Z=o=>{const l=t.categories.find(_=>_.category_no===o);if(!l)return[];let n=[l.id];return t.categories.filter(_=>_.parent_category_no===o).forEach(_=>{n=n.concat(Z(_.category_no))}),n},$=()=>{if(t.selectedCategoryNo===null)return t.raw_data;const o=Z(t.selectedCategoryNo);return t.raw_data.filter(l=>{if(!l.category_id)return!1;try{let n;return Array.isArray(l.category_id)?n=l.category_id:n=JSON.parse(l.category_id),n.some(c=>o.includes(c))}catch{return!1}})},Pe=()=>{t.selectedCategoryName="ì ì²´",t.selectedCategoryNo=null,t.isCategoryOpen=!1,t.categoryBreadcrumb=[{name:"ì ì²´",id:"root"}],F()},Re=()=>{t.isSupplyStatusOpen=!t.isSupplyStatusOpen},De=o=>{t.selectedSupplyStatus=o,t.isSupplyStatusOpen=!1,F()},je=()=>{t.isSupplyPriceOpen=!t.isSupplyPriceOpen},Te=o=>{t.selectedSupplyPrice=o,t.isSupplyPriceOpen=!1,F()},Fe=()=>{let o=$();return t.selectedSupplyStatus!=="ì ì²´"&&(t.selectedSupplyStatus==="ê³µê¸ìí ON"?o=o.filter(n=>B(n)==="ON"):t.selectedSupplyStatus==="ê³µê¸ìí OFF"&&(o=o.filter(n=>B(n)==="OFF"))),["ì ì²´",...o.map(n=>n.product_fee_rate).filter(n=>n!=null&&n>0).filter((n,c,_)=>_.indexOf(n)===c).sort((n,c)=>n-c).map(n=>`${n}%`)]},F=()=>{let o=$();if(t.selectedSupplyStatus!=="ì ì²´"&&(t.selectedSupplyStatus==="ê³µê¸ìí ON"?o=o.filter(l=>B(l)==="ON"):t.selectedSupplyStatus==="ê³µê¸ìí OFF"&&(o=o.filter(l=>B(l)==="OFF"))),t.selectedSupplyPrice!=="ì ì²´"){const l=parseInt(t.selectedSupplyPrice.replace("%",""));o=o.filter(n=>n.product_fee_rate===l)}t.search_words.trim()===""?t.selected_data=o:t.selected_data=o.filter(l=>l.product_name.includes(t.search_words)),t.page_data=t.selected_data.slice(0,t.page_size),t.current=1},Me=o=>{t.tab=o,t.select_items=[],F()},le=()=>{let o=(t.current-1)*t.page_size;t.page_data=t.selected_data.slice(o,o+t.page_size)};function Ae(o){return confirm("ì¹´í24 ë¡ê·¸ì¸ ì°ëìê°ì´ ë§ë£ëì´ ìí목ë¡ì ê°ì ¸ì¬ ì ììµëë¤. ì¹´í24ìì ë¤ì ë¡ê·¸ì¸ íì ì¤ë
ë°ì¤ ì± ê´ë¦¬ë¥¼ ì¤íí´ì£¼ì¸ì. ì¹´í24 ë¡ê·¸ì¸ íì´ì§ë¡ ì´ëíìê² ìµëê¹? ")&&(location.href=o),!1}async function D(o=!0){t.is_loading=!0;const l=t.current,n=await k.productsList(),{products:c}=n.data;t.raw_data=c;const _=await k.readCategory();t.categories=_.data;const y=await W.dropshipper();if(t.dropshipper_list=y.data.dropshipper,t.select_items=[],o){F();const b=Math.max(1,Math.ceil(t.selected_data.length/t.page_size));t.current=Math.min(l||1,b),le()}else t.selected_data=c,t.page_data=t.raw_data.slice(0,t.page_size),t.current=1;t.is_loading=!1}let Be=()=>
1{confirm("ìíì ê°ì ¸ì¤ìê² ìµëê¹?")!=!1&&(t.is_loading=!0,k.insertProducts().then(o=>{console.log(o),t.is_loading=!1;const{code:l,msg:n,url:c}=o.data||{};if(l==="F"&&n==="invalid access token")return Ae(c);alert(n),D()}).catch(o=>{t.is_loading=!1,console.log(o)}))},Ve=()=>{t.modal=!1,document.body.style.overflow="auto"},Ee=()=>{t.modal=!0,document.body.style.overflow="hidden"},Ue=()=>{t.product_fee_rate<1?t.product_fee_rate=1:t.product_fee_rate>99&&(t.product_fee_rate=99)},ne=o=>o!=null&&o.product_fee_rate&&o.product_fee_rate>0?Number(o.product_fee_rate):Number(t.brand_setting.creator_fee_rate)||0,Le=o=>((o==null?void 0:o.discount_enabled)==="T"||(o==null?void 0:o.discount_enabled)===!0)&&(o!=null&&o.discount_rate)&&Number(o.discount_rate)>0?Number(o.discount_rate):t.brand_setting.brand_discount_enabled&&t.brand_setting.brand_discount_rate&&Number(t.brand_setting.brand_discount_rate)||0,ze=o=>{const l=ne(o);if(!l)return"0";const n=o.mobile_discount_price||o.pc_discount_price||o.price||0,c=Le(o),_=c?Math.round(n*(c/100)):0,y=n-_;return Math.round(y*(l/100)).toLocaleString()+"ì"},B=o=>o.drop_status!==null&&o.drop_status!==void 0?o.drop_status==="T"?"ON":"OFF":o.display==="T"&&o.selling==="T"&&o.info!==null?"ON":"OFF",Ie=()=>{if(t.selected_data.length===0)return;const o=t.selected_data.map(n=>n.id);o.every(n=>t.select_items.includes(n))?t.select_items=t.select_items.filter(n=>!o.includes(n)):t.select_items=[...t.select_items,...o.filter(n=>!t.select_items.includes(n))]};const ae=T(!1),O=T([]),ee=T(!1),te=T("[]"),Je=o=>{const l=O.value.indexOf(o);l>-1?O.value.splice(l,1):O.value.push(o)},Ke=o=>{O.value=[],ee.value=!1,te.value="[]",k.productSnapboxCategories({select_items:[o]}).then(l=>{var c;const n=(((c=l.data)==null?void 0:c.data)||[])[0];O.value=(n==null?void 0:n.category_ids)||[],te.value=JSON.stringify([...O.value].sort()),ee.value=!0}).catch(()=>{})},re=T(!1),V=T(!1),Y=T([]),E=T([]),He=ft(()=>E.value.filter(o=>o.category_ids.length>0).length),de=()=>{re.value=!1,E.value=[]},Ge=(o,l)=>{const n=o.category_ids.indexOf(l);n>-1?o.category_ids.splice(n,1):o.category_ids.push(l)},Ye=o=>{E.value.forEach(l=>{l.category_ids.includes(o)||l.category_ids.push(o)})},ie=o=>{W.snapboxCategories().then(l=>{var n;Y.value=((n=l.data)==null?void 0:n.data)||[]}).catch(()=>{Y.value=[]}),E.value=(o||[]).map(l=>({id:l.id,product_name:l.product_name,category_ids:[]})),re.value=!0},We=()=>{V.value||(V.value=!0,k.saveSnapboxCategories({items:E.value.map(o=>({product_id:o.id,category_ids:o.category_ids}))}).then(o=>{var l,n;if(((l=o.data)==null?void 0:l.code)!=="S"){V.value=!1,alert(((n=o.data)==null?void 0:n.msg)||"ì¹´í
ê³ ë¦¬ ì ì¥ì ì¤í¨íìµëë¤.");return}return k.updateDropStatus({select_items:t.select_items,drop_status:"T"}).then(c=>{var _,y;V.value=!1,((_=c.data)==null?void 0:_.code)==="S"?(de(),alert("ì¹´í
ê³ ë¦¬ ì ì¥ í ê³µê¸ìíê° ë³ê²½ëììµëë¤."),D()):alert(((y=c.data)==null?void 0:y.msg)||"ê³µê¸ìí ë³ê²½ì ì¤í¨íìµëë¤.")})}).catch(()=>{V.value=!1,alert("ì¹´í
ê³ ë¦¬ ì ì¥ì ì¤í¨íìµëë¤.")}))};let qe=o=>{if(t.select_items.length==0){alert("ìíì ì íí´ì£¼ì¸ì.");return}if(confirm("ì íí ìíì ê³µê¸ìí를 ë³ê²½íìê² ìµëê¹?")==!1)return;let l={select_items:t.select_items,drop_status:o};k.updateDropStatus(l).then(n=>{var c;if(((c=n.data)==null?void 0:c.code)==="NEED_CATEGORY"){ie(n.data.products);return}alert("ê³µê¸ìíê° ë³ê²½ëììµëë¤."),D()}).catch(n=>{alert(n.response.data)})},Qe=()=>{if(t.select_items.length==0){alert("ìíì ì íí´ì£¼ì¸ì.");return}if(confirm("ì íí ìíì ììë£ë¥¼ ë³ê²½íìê² ìµëê¹?")==!1)return;console.log("state.product_fee_rate:",t.product_fee_rate);let o={select_items:t.select_items,product_fee_rate:t.product_fee_rate,isOpenitem:t.isOpenitem};k.updateProductFeeRate(o).then(l=>{console.log(l),alert("ì íí ìíì ììë£ê° ë³ê²½ëììµëë¤."),D()}).catch(l=>{alert(l.response.data)})},Xe=()=>{if(confirm("ìì¸íì´ì§ë¥¼ ê°ì ¸ì¤ìê² ìµëê¹?")==!1)return;t.is_loading=!0;let o={product_ids:t.select_items};k.getDetail(o).then(l=>{console.log(l),t.is_loading=!1,D()}).catch(l=>{t.is_loading=!1,alert(l.response.data)})};xe(()=>{console.log("mounted!"),D(),Ze(),document.addEventListener("click",Ce)});let Ze=()=>{W.setting().then(o=>{var l,n;if(((l=o.data)==null?void 0:l.code)==="S"&&((n=o.data)!=null&&n.data)){const c=o.data.data;t.brand_setting={creator_fee_rate:Number(c.creator_fee_rate)||0,brand_discount_enabled:!!c.brand_discount_enabled,brand_discount_rate:Number(c.brand_discount_rate)||0}}}).catch(()=>{})},$e=o=>{t.current_review_product=o,t.review_list=o.review||[],t.modal_review=!0,document.body.style.overflow="hidden"},ue=()=>{t.modal_review=!1,document.body.style.overflow="auto",ce()},ce=()=>{t.review_form_rating=5,t.review_form_title="",t.review_form_content="",t.review_form_photos=[],t.review_deleted_photos=[],t.review_is_editing=!1,t.review_editing_id=null,t.review_tab="list"},et=o=>{t.review_is_editing=!0,t.review_editing_id=o.id,t.review_form_rating=parseInt(o.rating),t.review_form_title=o.title||"",t.review_form_content=o.content,o.photo&&o.photo.length>0?t.review_form_photos=o.photo.map(l=>
1({photo:l.photo,id:l.id,existing:!0})):t.review_form_photos=[],t.review_deleted_photos=[],t.review_tab="add"},tt=o=>{confirm("ì´ ë¦¬ë·°ë¥¼ ìì íìê² ìµëê¹?")&&(t.is_loading=!0,k.deleteReview(o).then(l=>{t.is_loading=!1,l.data.code==="S"&&(alert("ë¦¬ë·°ê° ìì ëììµëë¤."),D())}).catch(l=>{var n;t.is_loading=!1,alert(((n=l.response)==null?void 0:n.data)||"ì¤ë¥ê° ë°ìíìµëë¤.")}))},rt=o=>{const l=o.target.files;let n=10-t.review_form_photos.length;l.length+t.review_form_photos.length>10&&alert("리뷰 ì¬ì§ì ìµë 10ì¥ê¹ì§ ê°ë¥í©ëë¤.");for(var c=0;c<n;c++){let y=l[c];if(y){if(!y.type.startsWith("image/")){alert("ì´ë¯¸ì§ íì¼ì ì íí´ì£¼ì¸ì.");continue}var _=1;y.size>6194304?_=.1:y.size>5194304?_=.2:y.size>4194304?_=.3:y.size>3145728?_=.4:y.size>2097152&&(_=.5),new St(y,{quality:_,success(b){let P={file:b,photo:URL.createObjectURL(b)};t.review_form_photos.push(P)},error(b){console.log(b.message)}})}}},st=o=>{const l=t.review_form_photos[o];l.existing&&l.id&&t.review_deleted_photos.push(l.id),t.review_form_photos.splice(o,1)},ot=()=>{if(!t.review_form_title.trim()){alert("리뷰 ì 목ì ì
ë ¥í´ì£¼ì¸ì.");return}if(!t.review_form_content.trim()){alert("리뷰 ë´ì©ì ì
ë ¥í´ì£¼ì¸ì.");return}const o=new FormData;o.append("product_id",t.current_review_product.id),o.append("title",t.review_form_title),o.append("content",t.review_form_content),o.append("rating",t.review_form_rating),t.review_is_editing&&(o.append("review_id",t.review_editing_id),t.review_deleted_photos.length>0&&o.append("deleted_photos",JSON.stringify(t.review_deleted_photos))),t.review_form_photos.forEach(l=>{l.file&&o.append("photos[]",l.file)}),t.is_loading=!0,k.saveReview(o).then(l=>{t.is_loading=!1,l.data.code==="S"&&(alert(t.review_is_editing?"ë¦¬ë·°ê° ìì ëììµëë¤.":"ë¦¬ë·°ê° ë±ë¡ëììµëë¤."),ce(),ue(),D())}).catch(l=>{var n;t.is_loading=!1,alert(((n=l.response)==null?void 0:n.data)||"ì¤ë¥ê° ë°ìíìµëë¤.")})},lt=async()=>{var _e,ge,fe,ye,be,me;if(!t.current_detail_product){alert("ìí ì ë³´ê° ììµëë¤.");return}if(t.current_detail_product.discount_enabled&&(!t.current_detail_product.snap_discount_rate||t.current_detail_product.snap_discount_rate<0||t.current_detail_product.snap_discount_rate>100)){alert("í ì¸ì¨ì 0~100 ì¬ì´ì ê°ì ì
ë ¥í´ì£¼ì¸ì.");return}const o=Number(t.current_detail_product.delivery_min_days),l=Number(t.current_detail_product.delivery_max_days);if(Number(o)<1||Number(l)<1){alert("ë°°ì¡ì¼ì 1 ì´ìì ì«ì를 ì
ë ¥í´ì£¼ì¸ì.");return}if(o>=l){alert("ìµë ë°°ì¡ì¼ì ìµì ë°°ì¡ì¼ë³´ë¤ í¬ê² ì¤ì í´ì£¼ì¸ì.");return}const n=Number(t.current_detail_product.product_fee_rate||0);if(n<0||n>99){alert("ììë£ì¨ì 0~99 ì¬ì´ë¡ ì
ë ¥í´ì£¼ì¸ì.");return}const c=t.current_detail_product.delivery_fee,_=c===""||c==null?null:Number(c);if(_!==null&&(isNaN(_)||_<0)){alert("ë°°ì¡ë¹ë 0 ì´ìì ì«ìë¡ ì
ë ¥í´ì£¼ì¸ì.");return}const y=_!==null&&_>0&&!!t.current_detail_product.free_shipping_enabled;let b=null;if(y){const R=t.current_detail_product.free_shipping_threshold;if(b=Number(R),!R||isNaN(b)||b<=0){alert("무ë£ë°°ì¡ 기ì¤ê¸ì¡ì 0ë³´ë¤ í° ì«ìë¡ ì
ë ¥í´ì£¼ì¸ì.");return}}const P=Number((_e=t.brand_setting)==null?void 0:_e.creator_fee_rate)||0,U=n>0?n:P;if(t.current_detail_product.drop_status_on&&U<=0){alert("ê³µê¸ ONì¼ë¡ íë ¤ë©´ ìí ììë£ì¨ ëë ë¸ëë 기본 ììë£ì¨ ì¤ íëë 0ë³´ë¤ ì»¤ì¼ í©ëë¤.");return}const j=t.current_detail_product.id,se=t.current_detail_product.drop_status_on?"T":"F",dt=t.current_detail_product._original_drop_status,it=t.current_detail_product._original_fee_rate,pe=ee.value&&JSON.stringify([...O.value].sort())!==te.value;if(pe&&O.value.length===0&&se==="T"){alert("ê³µê¸ ì¤ì¸ ìíì ì¤ë
ë°ì¤ ì¹´í
ê³ ë¦¬ë¥¼ ìµì 1ê° ì§ì í´ì¼ í©ëë¤.");return}let ut={product_id:j,product_code:t.current_detail_product.product_code,discount_enabled:t.current_detail_product.discount_enabled,snap_discount_rate:t.current_detail_product.discount_enabled?t.current_detail_product.snap_discount_rate:null,delivery_min_days:o,delivery_max_days:l,delivery_fee:_,free_shipping_enabled:y,free_shipping_threshold:b,delivery_text:((ge=t.current_detail_product.delivery_text)==null?void 0:ge.trim())||null};t.is_loading=!0;try{if(await k.saveProductDetail(ut),n!==it&&await k.updateProductFeeRate({select_items:[j],product_fee_rate:n,isOpenitem:t.current_detail_product.open_item==="T"}),pe){const R=await k.saveSnapboxCategories({items:[{product_id:j,category_ids:O.value}]});if(((fe=R.data)==null?void 0:fe.code)!=="S"){t.is_loading=!1,alert(((ye=R.data)==null?void 0:ye.msg)||"ì¹´í
ê³ ë¦¬ ì ì¥ì ì¤í¨íìµëë¤.");return}}if(se!==dt){const R=await k.updateDropStatus({select_items:[j],drop_status:se});if(((be=R.data)==null?void 0:be.code)==="NEED_CATEGORY"){t.is_loading=!1,h(),t.select_items=[j],ie(R.data.products);return}}t.is_loading=!1,alert("ì ì¥ëììµëë¤."),h(),D()}catch(R){t.is_loading=!1,alert(((me=R.response)==null?void 0:me.data)||"ì ì¥ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}};const nt=o=>{t.stock_open_id=t.stock_open_id===o.id?null:o.id},at=o=>{if(!o.options)return[];let l;try{l=JSON.parse(o.options)}catch{return[]}if(!Array.isArray(l))return[];const n=["id","variant_code","price","display","selling","use_inventory","display_soldout","stock","item_options","amount","quantity","discount_price","bundle","components"];return l.map(c=>{const _=Object.keys(c).filter(j=>!n.includes(j)).map(j=>c[j]).join(" / "),y=c.use_inventory==="T",b=c.stock===void 0?null:c.stock;let P,U;return y?b!==null&&b<=0?(P="íì ",U=!0):(P="í매ì¤",U=!1):(P="무ì í",U=!1),{id:c.id,label:_,stock:b,status:P,soldout:U}})};return{...yt(t),roundStateLabel:X,remainText:K,listRoundBadge:oe,fetchSaleRounds:M,resetRoundForm:A,editRound:G,saveRound:s,deleteRound:f,clickTab:Me,searchClick:F,onChange:le,fetchProducts:Be,closeModal:Ve,showModal:Ee,validateSupplyPrice:Ue,getDetail
1:Xe,toggleCategoryDropdown:he,getCurrentCategoryLevel:we,handleCategorySelect:ke,handleCategoryBack:Ne,handleBreadcrumbClick:Oe,navigateToSubCategory:Se,getAllSubCategoryIds:Z,filterByCategory:$,selectAllCategories:Pe,calculateSupplyPrice:ze,getEffectiveFeeRate:ne,getSupplyStatusText:B,toggleSelectAll:Ie,updateDropStatus:qe,detail_cafe24_open:ae,detail_categories:O,toggleDetailCategory:Je,snapcat_open:re,snapcat_saving:V,snapcat_list:Y,snapcat_targets:E,snapcatDoneCount:He,closeSnapCat:de,toggleSnapCat:Ge,applySnapCatToAll:Ye,saveSnapCatAndTurnOn:We,updateProductFeeRate:Qe,toggleSupplyStatusDropdown:Re,handleSupplyStatusSelect:De,toggleSupplyPriceDropdown:je,handleSupplyPriceSelect:Te,getSupplyPriceOptions:Fe,openReviewModal:$e,closeReviewModal:ue,editReview:et,deleteReview:tt,onReviewPhotoChange:rt,removeReviewFormPhoto:st,saveReview:ot,openProductDetailModal:r,closeProductDetailModal:h,saveProductSettings:lt,toggleStockView:nt,stockOptions:at}}},Nt={class:"dashboard_body flex flex-col"},Ot={class:"contents_box w-full flex justify-start grow"},Pt={class:"contents_area grow p-8"},Rt={class:"con grow"},Dt={class:"contents_title flex items-end justify-between !mb-6"},jt={class:"flex gap-2"},Tt={class:"bg-white border-2 border-dashed border-gray-200 rounded-xl mb-6"},Ft={class:"py-20 px-6 text-center"},Mt={class:"bg-white border border-gray-200 rounded-xl shadow-sm mb-4 px-4"},At={class:"flex items-center gap-3 py-1"},Bt={class:"grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_400px] gap-5 items-start"},Vt={class:"bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden min-w-0"},Et={class:"px-5 py-4 border-b border-gray-200 flex flex-wrap gap-3 justify-between items-center"},Ut={class:"flex items-center gap-2 text-sm text-gray-600"},Lt={class:"inline-flex items-center px-3 py-1 bg-gray-100 rounded-full"},zt={class:"ml-1 font-semibold text-gray-900"},It={class:"inline-flex items-center px-3 py-1 bg-blue-50 text-blue-700 rounded-full"},Jt={class:"ml-1 font-semibold"},Kt={key:0,class:"inline-flex items-center px-3 py-1 bg-gray-900 text-white rounded-full"},Ht={class:"ml-1 font-semibold"},Gt={class:"flex flex-wrap gap-2"},Yt={class:"px-5 py-3 border-b border-gray-200 bg-gray-50/70"},Wt={class:"flex flex-wrap gap-2"},qt={class:"relative",ref:"categoryDropdown"},Qt={class:"text-gray-700 font-medium"},Xt={class:"absolute z-50 w-80 mt-1 bg-white border border-gray-200 rounded-md shadow-lg"},Zt={class:"px-4 py-3 bg-gray-50 border-b border-gray-200"},$t={class:"flex items-center space-x-2"},er={class:"flex items-center space-x-1 text-sm text-gray-600"},tr=["onClick"],rr={key:0,class:"fa-solid fa-chevron-right text-xs text-gray-400 mx-1"},sr={class:"max-h-80 overflow-y-auto"},or={key:0,class:"w-full flex items-center hover:bg-blue-50 transition-colors group"},lr={key:1,class:"border-t border-gray-200"},nr=["onClick"],ar={class:"text-gray-700 group-hover:text-blue-600"},dr=["onClick"],ir={key:2,class:"px-4 py-3 text-gray-500 text-center"},ur={class:"relative"},cr={class:"text-gray-700 font-medium"},pr={class:"absolute z-50 w-40 mt-1 bg-white border border-gray-200 rounded-md shadow-lg"},_r=["onClick"],gr={class:"text-gray-700 group-hover:text-blue-600"},fr={class:"relative",ref:"supplyStatusDropdown"},yr={class:"text-gray-700 font-medium"},br={class:"absolute z-50 w-40 mt-1 bg-white border border-gray-200 rounded-md shadow-lg"},mr=["onClick"],xr={class:"text-gray-700 group-hover:text-blue-600"},vr={class:"px-4 py-2.5 border-b border-gray-200 bg-gray-50/70 flex items-center gap-3 text-xs font-semibold text-gray-500 uppercase tracking-wide border-l-2 border-l-transparent"},hr=["checked"],wr={class:"divide-y divide-gray-100"},kr=["onClick"],Sr=["value"],Cr={class:"flex-shrink-0 rounded-md overflow-hidden bg-gray-100 product-thumb-wrap",style:{width:"48px",height:"48px"}},Nr=["src"],Or={class:"flex-1 min-w-0"},Pr={class:"text-xs text-gray-500 truncate"},Rr={class:"text-sm font-medium text-gray-900 truncate"},Dr={class:"w-12 flex-shrink-0 flex justify-center"},jr={class:"text-right flex-shrink-0 w-24"},Tr={class:"text-sm font-semibold text-gray-900"},Fr={class:"text-xs text-gray-500"},Mr=["onClick"],Ar=["onClick"],Br={key:0,class:"px-4 py-3 bg-amber-50/60 border-l-2 border-l-amber-400"},Vr={class:"text-xs font-semibold text-gray-600 mb-2"},Er={key:0,class:"ml-2 text-amber-600"},Ur={key:0,class:"w-full text-xs"},Lr={class:"py-1 pr-2 text-gray-800"},zr={key:1,class:"text-xs text-gray-700"},Ir={key:0,class:"py-16 text-center text-sm text-gray-500"},Jr={class:"border-t border-gray-200 py-4 flex justify-center"},Kr={class:"pagination !mt-0"},Hr={class:"lg:sticky lg:top-5 lg:self-start"},Gr={key:0,class:"bg-white border-2 border-dashed border-gray-200 rounded-xl py-20 px-6 text-center"},Yr={key:1,class:"bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden"},Wr={class:"flex items-center justify-between px-5 py-4 border-b border-gray-200"},qr={class:"min-w-0"},Qr={class:"text-xs text-gray-500 mt-0.5 truncate"},Xr={class:"p-5 space-y-5 bg-gray-50/40"},Zr={class:"flex items-start gap-3 bg-white border border-gray-200 rounded-lg p-3"},$r={class:"w-16 h-16 bg-gray-100 rounded-lg flex-shrink-0 overflow-hidden"},es=["src","alt"],ts={class:"flex-1 min-w-0"},rs={class:"text-sm font-medium text-gray-900 mb-1.5 leading-snug",style:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},ss={class:"text-base font-bold text-gray-900"},os={class:"bg-white border border-gray-200 rounded-lg divide-y divide-gray-100 overflow-hidden"},ls={class:"flex justify-between text-sm px-3.5 py-2.5"},ns={class:"font-medium text-gray-900"},as={key:0,class:"flex justify-between text-sm px-3.5 py-2.5"},ds={class:"font-medium text-gray-900"},is={key:1,class:"flex justify-between items-center text-sm px-3.5 py-2.5"},us={class:"font-semibold text-red-600"},cs={class:"flex justify-between items-center text-sm px-3.5 py-2.5"},ps={class:"flex justify-between text-sm px-3.5 py-2.5"},_s={class:"font-medium text-gray-900"},gs={key:2,class:"flex justify-between text-sm px-3.5 py-2.5"},fs={class:"font-medium text-gray-900"},ys={key:3,class:"flex justify-between text-sm px-3.5 py-2.5"},bs={class:"font-medium text-gray-900"},ms={class:"flex items-center gap-2 mb-2 px-1"},xs={key:0,class:"ml-auto text-[11px] text-rose-600 font-medium"},vs={class:"bg-white border border-gray-200 rounded-lg p-3"},hs={class:"flex flex-wrap gap-1.5"},ws=["onClick"],ks={class:"bg-white border border-gray-200 rounded-lg divide-y divide-gray-100 overflow-hidden"},Ss={class:"flex justify-between text-sm px-3.5 py-2.5"},Cs={class:"font-medium text-gray-900"},Ns={class:"flex justify-between items-center px-3.5 py-3"},Os={class:"flex items-center gap-2.5"},Ps={class:"relative inline-flex items-center cursor-pointer"},Rs={class:"px-3.5 py-3"},Ds={class:"flex justify-between items-center"},js={class:"relative inline-flex items-center cursor-pointer"},Ts={class:"mt-3"},Fs={class:"flex items-center gap-2"},Ms={class:"px-3.5 py-3"},As={class:"flex justify-between items-center mb-2"},Bs={key:0,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-rose-50 text-rose-700"},Vs={key:1,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-amber-50 text-amber-700"},Es={key:2,class:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-600"},Us={key:0,class:"mb-3 border border-gray-200 rounded-md divide-y divide-gray-100"},Ls={class:"min-w-0"},zs={class:"text-xs font-medium text-gray-900 truncate"},Is={key:0},Js={class:"text-[11px] text-gray-500"},Ks={class:"flex items-center gap-1.5 shrink-0"},Hs=["onClick"],Gs=["onClick"],Ys={class:"flex flex-col gap-2"},Ws={class:"round-date-field"},qs={class:"round-date-field"},Qs={class:"flex gap-2"},Xs={class:"px-3.5 py-3"},Zs={class:"flex items-center gap-2"},$s={class:"px-3.5 py-3"},eo={class:"flex items-center gap-2"},to={class:"mt-3"},ro={class:"flex justify-between items-center"},so={class:"relative inline-flex items-center cursor-pointer"},oo={class:"mt-3"},lo={class:"flex items-center gap-2"},no={class:"px-3.5 py-3 bg-gray-50"},ao={class:"flex justify-between items-center mb-2.5"},io={class:"text-base font-bold text-gray-900"},uo={class:"flex items-center gap-2"},co={class:"px-5 py-12 text-center"},po={class:"border-t border-gray-200 px-5 py-3 bg-white"},_o={class:"modal_layer",id:"modal",style:{width:"100%"}},go={class:"modal_box !max-w-[400px] rounded-xl shadow-lg"},fo={class:"modal_box_header flex items-center justify-between p-6 border-b"},yo={class:"modal_box_body p-6"},bo={class:"mb-4"},mo={class:"mb-4 pt-4 border-t border-gray-200"},xo={class:"mb-3"},vo={class:"flex items-center cursor-pointer"},ho={class:"modal_box_footer p-6 border-t"},wo={class:"btn_area"},ko={class:"modal_layer",style:{width:"100%"}},So={class:"modal_box !max-w-[900px] rounded-xl shadow-lg"},Co={class:"modal_box_header flex items-center justify-between p-6 border-b"},No={class:"flex items-center gap-4"},Oo={class:"text-sm text-gray-500"},Po={class:"border-b border-gray-200"},Ro={class:"flex"},Do={key:0,class:"absolute bottom-0 left-0 w-full h-0.5 bg-blue-600"},jo={key:0,class:"absolute bottom-0 left-0 w-full h-0.5 bg-blue-600"},To={class:"modal_box_contents p-6 max-h-[65vh] overflow-y-auto"},Fo={key:0,class:"text-center py-16"},Mo={key:1,class:"space-y-4"},Ao={class:"flex items-start justify-between mb-3"},Bo={class:"flex-1"},Vo={class:"flex items-center gap-1 mb-2"},Eo=["src"],Uo={class:"text-sm text-gray-600 ml-2"}
1,Lo={class:"font-semibold text-lg text-gray-800 mb-1"},zo={class:"text-xs text-gray-400"},Io={class:"flex gap-2 ml-4"},Jo=["onClick"],Ko=["onClick"],Ho={class:"text-gray-700 mb-3 leading-relaxed"},Go={key:0,class:"flex gap-2 flex-wrap"},Yo=["src"],Wo={class:"space-y-5"},qo={class:"flex items-center gap-2"},Qo=["src","onClick"],Xo={class:"ml-3 text-gray-600 font-medium"},Zo={class:"flex gap-3 flex-wrap"},$o=["src"],el=["onClick"],tl={class:"modal_box_footer p-6 border-t bg-gray-50 flex justify-end gap-3"},rl={class:"modal_layer",style:{width:"100%"}},sl={class:"h-full flex flex-col"},ol={class:"flex items-center justify-between px-6 py-4 border-b border-gray-200"},ll={class:"min-w-0"},nl={key:0,class:"text-xs text-gray-500 mt-0.5 truncate"},al={class:"border-b border-gray-200"},dl={class:"flex"},il={key:0,class:"absolute bottom-0 left-0 w-full h-0.5 bg-gray-900"},ul={key:0,class:"absolute bottom-0 left-0 w-full h-0.5 bg-gray-900"},cl={class:"flex-1 overflow-y-auto bg-gray-50/40"},pl={key:0,class:"px-5 py-5 space-y-6"},_l={class:"flex items-start gap-3 bg-white border border-gray-200 rounded-xl p-3"},gl={class:"w-20 h-20 bg-gray-100 rounded-lg flex-shrink-0 overflow-hidden"},fl=["src","alt"],yl={class:"flex-1 min-w-0"},bl={class:"text-sm font-medium text-gray-900 mb-2 leading-snug",style:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},ml={class:"text-base font-bold text-gray-900"},xl={class:"bg-white border border-gray-200 rounded-xl divide-y divide-gray-100 overflow-hidden"},vl={class:"flex justify-between items-center text-sm px-4 py-3"},hl={class:"font-medium text-gray-900"},wl={key:0,class:"flex justify-between items-center text-sm px-4 py-3"},kl={class:"font-medium text-gray-900"},Sl={key:1,class:"flex justify-between items-center text-sm px-4 py-3"},Cl={class:"font-semibold text-red-600"},Nl={class:"flex justify-between items-center text-sm px-4 py-3"},Ol={class:"flex justify-between items-center text-sm px-4 py-3"},Pl={class:"font-medium text-gray-900"},Rl={key:2,class:"flex justify-between items-center text-sm px-4 py-3"},Dl={class:"font-medium text-gray-900"},jl={key:3,class:"flex justify-between items-center text-sm px-4 py-3"},Tl={class:"font-medium text-gray-900"},Fl={class:"bg-white border border-gray-200 rounded-xl divide-y divide-gray-100 overflow-hidden"},Ml={class:"flex justify-between items-center text-sm px-4 py-3"},Al={class:"font-medium text-gray-900"},Bl={class:"flex justify-between items-center text-sm px-4 py-3"},Vl={class:"flex justify-between items-center text-sm px-4 py-3"},El={class:"font-medium text-gray-900"},Ul={class:"px-4 py-3.5"},Ll={class:"flex justify-between items-center"},zl={class:"relative inline-flex items-center cursor-pointer"},Il={class:"mt-3 space-y-2"},Jl={class:"flex items-center gap-2"},Kl={class:"px-4 py-3.5"},Hl={class:"flex items-center gap-2 mb-1.5"},Gl={key:0,class:"px-4 py-3.5 bg-gray-50"},Yl={class:"flex justify-between items-center"},Wl={class:"text-sm text-gray-700"},ql={class:"text-xs text-gray-500 ml-1"},Ql={class:"text-base font-bold text-gray-900"},Xl={class:"px-6 py-16 text-center"},Zl={class:"border-t border-gray-200 px-5 py-3 bg-white"},$l={class:"popup_layer"},en={class:"alert"},tn={class:"msg"},rn={class:"btn_area"},sn={class:"sc-head"},on={class:"sc-body"},ln={key:0,class:"sc-bulk"},nn={class:"sc-chips"},an=["onClick"],dn={class:"sc-item-name"},un={class:"sc-chips"},cn=["onClick"],pn={class:"sc-foot"},_n={class:"sc-count"},gn={class:"sc-foot-btns"},fn=["disabled"];function yn(t,r,oe,a,q,Q){var G;const X=J("SNAP_HEADER"),K=J("SNAP_MENU"),H=J("a-pagination"),M=J("SNAP_FOOTER"),A=J("SNAP_SPINNER");return i(),d(w,null,[e("div",Nt,[z(X),e("div",Ot,[z(K),e("div",Pt,[e("div",Rt,[e("div",Dt,[r[81]||(r[81]=e("h1",null,"ìíì¡°í",-1)),p(e("div",jt,[e("button",{type:"button",class:"px-4 py-2 text-sm font-medium text-white bg-gray-900 rounded-lg hover:bg-gray-800 transition-colors whitespace-nowrap",onClick:r[0]||(r[0]=s=>a.fetchProducts())}
1," ìí ê°ì ¸ì¤ê¸° ")],512),[[m,t.raw_data.length>0]])]),p(e("div",Tt,[e("div",Ft,[r[82]||(r[82]=e("div",{class:"inline-flex items-center justify-center w-16 h-16 bg-gray-50 rounded-full mb-4"},[e("i",{class:"fa-regular fa-folder-open text-gray-400 text-2xl"})],-1)),r[83]||(r[83]=e("h3",{class:"text-base font-semibold text-gray-800 mb-1"}," ìì§ ë±ë¡ë ìíì´ ììµëë¤ ",-1)),r[84]||(r[84]=e("p",{class:"text-sm text-gray-500 mb-6"}," ì¹´í24ìì ìíì ê°ì ¸ì ììíì¸ì. ",-1)),e("button",{type:"button",class:"btn_basic btn_BK",onClick:r[1]||(r[1]=s=>a.fetchProducts())}," ì¹´í24 ìí ê°ì ¸ì¤ê¸° ")])],512),[[m,t.is_loading==!1&&t.raw_data.length==0]]),p(e("div",Mt,[e("div",At,[r[85]||(r[85]=e("i",{class:"fa-solid fa-magnifying-glass text-gray-400"},null,-1)),p(e("input",{type:"text",placeholder:"ìíëª
ì¼ë¡ ê²ì",class:"grow text-sm py-3",style:{border:"none",outline:"none",background:"transparent"},"onUpdate:modelValue":r[2]||(r[2]=s=>t.search_words=s),onKeyup:r[3]||(r[3]=bt(s=>a.searchClick(),["enter"]))},null,544),[[S,t.search_words]]),e("button",{type:"button",class:"px-4 py-1.5 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md transition-colors",onClick:r[4]||(r[4]=s=>a.searchClick())}," ê²ì ")])],512),[[m,t.raw_data.length>0]]),p(e("div",Bt,[e("div",Vt,[e("div",Et,[e("div",Ut,[e("span",Lt,[r[86]||(r[86]=x(" ì´ ")),e("strong",zt,u(t.raw_data.length),1),r[87]||(r[87]=x(" ê±´ "))]),e("span",It,[r[88]||(r[88]=x(" ê²ìê²°ê³¼ ")),e("strong",Jt,u(t.selected_data.length),1),r[89]||(r[89]=x(" ê±´ "))]),t.select_items.length>0?(i(),d("span",Kt,[r[90]||(r[90]=x(" ì í ")),e("strong",Ht,u(t.select_items.length),1),r[91]||(r[91]=x(" ê° "))])):g("",!0)]),e("div",Gt,[e("button",{type:"button",class:"btn_tabletop btn_table whitespace-nowrap",onClick:r[5]||(r[5]=s=>a.showModal())}," ììë£ ì¤ì "),e("button",{type:"button",class:"btn_tabletop btn_cancel whitespace-nowrap",onClick:r[6]||(r[6]=s=>a.getDetail())}," ìì¸íì´ì§ ê°ì ¸ì¤ê¸° "),e("button",{type:"button",class:"btn_tabletop btn_BK whitespace-nowrap",onClick:r[7]||(r[7]=s=>a.updateDropStatus("T"))}," ê³µê¸ ON "),e("button",{type:"button",class:"btn_tabletop btn_cancel whitespace-nowrap",onClick:r[8]||(r[8]=s=>a.updateDropStatus("F"))}," ê³µê¸ OFF ")])]),e("div",Yt,[e("div",Wt,[e("div",qt,[e("button",{onClick:r[9]||(r[9]=(...s)=>a.toggleCategoryDropdown&&a.toggleCategoryDropdown(...s)),class:"px-4 py-2 bg-white border border-gray-300 rounded-md shadow-sm flex items-center justify-between hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 min-w-[140px]"},[e("span",Qt,u(t.selectedCategoryName),1),e("i",{class:v(["fa-solid fa-chevron-down text-gray-400 ml-2 transition-transform duration-200",{"rotate-180":t.isCategoryOpen}])},null,2)]),p(e("div",Xt,[e("div",Zt,[e("div",$t,[t.categoryBreadcrumb.length>1?(i(),d("button",{key:0,onClick:r[10]||(r[10]=(...s)=>a.handleCategoryBack&&a.handleCategoryBack(...s)),class:"p-1 hover:bg-gray-200 rounded transition-colors"},r[92]||(r[92]=[e("i",{class:"fa-solid fa-arrow-left text-gray-600"},null,-1)]))):g("",!0),e("div",er,[(i(!0),d(w,null,C(t.categoryBreadcrumb,(s,f)=>(i(),d(w,{key:f},[e("button",{onClick:N=>a.handleBreadcrumbClick(f),class:"hover:text-blue-600 transition-colors"},u(s.name),9,tr),f<t.categoryBreadcrumb.length-1?(i(),d("i",rr)):g("",!0)],64))),128))])])]),e("div",sr,[t.categoryBreadcrumb.length===1?(i(),d("div",or,[e("button",{onClick:r[11]||(r[11]=s=>a.selectAllCategories()),class:"flex-1 px-4 py-3 text-left"},r[93]||(r[93]=[e("span",{class:"text-gray-700 group-hover:text-blue-600 font-medium"}," ì ì²´ ",-1)]))])):g("",!0),t.categoryBreadcrumb.length===1?(i(),d("div",lr)):g("",!0),(i(!0),d(w,null,C(a.getCurrentCategoryLevel(),s=>(i(),d("div",{key:s.category_no,class:"w-full flex items-center hover:bg-blue-50 transition-colors group"},[e("button",{onClick:f=>a.handleCategorySelect(s),class:"flex-1 px-4 py-3 text-left"},[e("span",ar,u(s.category_name),1)],8,nr),s.hasChildren?(i(),d("button",{key:0,onClick:f=>a.navigateToSubCategory(s),class:"px-3 py-3"},r[94]||(r[94]=[e("i",{class:"fa-solid fa-chevron-right text-gray-400 group-hover:text-blue-500"},null,-1)]),8,dr)):g("",!0)]))),128)),a.getCurrentCategoryLevel().length===0?(i(),d("div",ir," íì ì¹´í
ê³ ë¦¬ê° ììµëë¤ ")):g("",!0)])],512),[[m,t.isCategoryOpen]])],512),e("div",ur,[e("button",{onClick:r[12]||(r[12]=(...s)=>a.toggleSupplyPriceDropdown&&a.toggleSupplyPriceDropdown(...s)),class:"px-4 py-2 bg-white border border-gray-300 rounded-md shadow-sm flex items-center justify-between hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 min-w-[140px]"},[e("span",cr,u(t.selectedSupplyPrice),1),e("i",{class:v(["fa-solid fa-chevron-down text-gray-400 ml-2 transition-transform duration-200",{"rotate-180":t.isSupplyPriceOpen}])},null,2)]),p(e("div",pr,[(i(!0),d(w,null,C(a.getSupplyPriceOptions(),s=>(i(),d("div",{key:s,class:"w-full flex items-center hover:bg-blue-50 transition-colors group"},[e("button",{onClick:f=>a.handleSupplyPriceSelect(s),class:"flex-1 px-4 py-3 text-left"},[e("span",gr,u(s),1)],8,_r)]))),128))],512),[[m,t.isSupplyPriceOpen]])]),e("div",fr,[e("button",{onClick:r[13]||(r[13]=(...s)=>a.toggleSupplyStatusDropdown&&a.toggleSupplyStatusDropdown(...s)),class:"px-4 py-2 bg-white border border-gray-300 rounded-md shadow-sm flex items-center justify-between hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 min-w-[140px]"},[e("span",yr,u(t.selectedSupplyStatus),1),e("i",{class:v(["fa-solid fa-chevron-down text-gray-400 ml-2 transition-transform duration-200",{"rotate-180":t.isSupplyStatusOpen}])},null,2)]),p(e("div",br,[(i(),d(w,null,C(["ì ì²´","ê³µê¸ìí ON","ê³µê¸ìí OFF"],s=>e("div",{key:s,class:"w-full flex items-center hover:bg-blue-50 transition-colors group"},[e("button",{onClick:f=>a.handleSupplyStatusSelect(s),class:"flex-1 px-4 py-3 text-left"},[e("span",xr,u(s),1)],8,mr)])),64))],512),[[m,t.isSupplyStatusOpen]])],512)]),g("",!0)]),g("",!0),e("div",vr,[e("input",{type:"checkbox",checked:t.selected_data.length>0&&t.selected_data.every(s=>
1t.select_items.includes(s.id)),onClick:r[22]||(r[22]=(...s)=>a.toggleSelectAll&&a.toggleSelectAll(...s)),class:"cursor-pointer flex-shrink-0"},null,8,hr),r[110]||(r[110]=ve('<div style="width:48px;" class="flex-shrink-0" data-v-25f03b4a></div><div class="flex-1 min-w-0" data-v-25f03b4a>ìí</div><div class="flex-shrink-0 w-12 text-center" data-v-25f03b4a>ê³µê¸</div><div class="text-right flex-shrink-0 w-24" data-v-25f03b4a>ê°ê²© / ììë£</div><div style="width:24px;" class="flex-shrink-0" data-v-25f03b4a></div>',5))]),e("div",wr,[(i(!0),d(w,null,C(t.page_data,s=>{var f,N;return i(),d(w,{key:s.id},[e("div",{class:v(["flex items-center gap-3 px-4 py-3 cursor-pointer transition-colors border-l-2",((f=t.current_detail_product)==null?void 0:f.id)===s.id?"bg-blue-50/40 border-l-gray-900":"hover:bg-gray-50 border-l-transparent"]),onClick:h=>a.openProductDetailModal(s)},[p(e("input",{type:"checkbox","onUpdate:modelValue":r[23]||(r[23]=h=>t.select_items=h),value:s.id,onClick:r[24]||(r[24]=I(()=>{},["stop"])),class:"cursor-pointer flex-shrink-0"},null,8,Sr),[[L,t.select_items]]),e("div",Cr,[r[111]||(r[111]=ve('<div class="product-thumb-empty" data-v-25f03b4a><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" data-v-25f03b4a><rect x="3" y="3" width="18" height="18" rx="2" ry="2" data-v-25f03b4a></rect><circle cx="8.5" cy="8.5" r="1.5" data-v-25f03b4a></circle><polyline points="21 15 16 10 5 21" data-v-25f03b4a></polyline></svg></div>',1)),s.list_image?(i(),d("img",{key:0,src:s.list_image,class:"w-full h-full object-cover",onError:r[25]||(r[25]=h=>h.target.style.display="none")},null,40,Nr)):g("",!0)]),e("div",Or,[e("div",Pr,u(s.product_code),1),e("div",Rr,u(s.product_name),1)]),e("div",Dr,[e("span",{class:v(["inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",a.getSupplyStatusText(s)==="ON"?"bg-emerald-50 text-emerald-700":"bg-gray-100 text-gray-600"])},u(a.getSupplyStatusText(s)),3)]),e("div",jr,[e("div",Tr,u((N=(s==null?void 0:s.mobile_discount_price)||(s==null?void 0:s.pc_discount_price)||(s==null?void 0:s.price))==null?void 0:N.toLocaleString("ko-KR"))+"ì ",1),e("div",Fr," ììë£ "+u(a.getEffectiveFeeRate(s))+"% ("+u(a.calculateSupplyPrice(s))+") ",1)]),e("button",{onClick:I(h=>a.toggleStockView(s),["stop"]),class:v(["px-2 py-1 text-xs font-medium rounded border transition-colors flex-shrink-0",t.stock_open_id===s.id?"bg-gray-900 text-white border-gray-900":"text-gray-600 border-gray-300 hover:bg-gray-100"]),title:"ì¤ì¬ê³ 보기 (ìì)"}," ì¬ê³ ",10,Mr),e("button",{onClick:I(h=>a.openReviewModal(s),["stop"]),class:"p-1.5 text-gray-400 hover:text-gray-700 hover:bg-gray-100 rounded transition-colors flex-shrink-0",title:"리뷰 ê´ë¦¬"},r[112]||(r[112]=[e("i",{class:"fa-regular fa-star"},null,-1)]),8,Ar)],10,kr),t.stock_open_id===s.id?(i(),d("div",Br,[e("div",Vr,[r[113]||(r[113]=x(" ì¤ì¬ê³ (DB 기ì¤) ")),a.stockOptions(s).length===0&&s.use_inventory!=="T"?(i(),d("span",Er,"â» ì¬ê³ ê´ë¦¬ 미ì¬ì© ìí (무ì í í매)")):g("",!0)]),a.stockOptions(s).length>0?(i(),d("table",Ur,[r[114]||(r[114]=e("thead",null,[e("tr",{class:"text-left text-gray-500"},[e("th",{class:"py-1 pr-2 font-medium"},"ìµì
"),e("th",{class:"py-1 pr-2 font-medium w-20 text-right"},"ì¬ê³ "),e("th",{class:"py-1 font-medium w-24"},"ìí")])],-1)),e("tbody",null,[(i(!0),d(w,null,C(a.stockOptions(s),h=>(i(),d("tr",{key:h.id,class:"border-t border-amber-100"},[e("td",Lr,u(h.label),1),e("td",{class:v(["py-1 pr-2 text-right font-semibold",h.stock!==null&&h.stock<=0?"text-red-600":"text-gray-900"])},u(h.stock===null?"-":h.stock),3),e("td",{class:v(["py-1",h.soldout?"text-red-600":"text-emerald-600"])},u(h.status),3)]))),128))])])):(i(),d("div",zr,[r[115]||(r[115]=x(" ë¨ì¼ ìí â ì¬ê³ : ")),e("b",{class:v(s.stock!==null&&s.stock<=0?"text-red-600":"")},u(s.stock===null?"-":s.stock),3)]))])):g("",!0)],64)}),128)),t.page_data.length===0?(i(),d("div",Ir," ê²ì ê²°ê³¼ê° ììµëë¤ ")):g("",!0)]),p(e("div",Jr,[e("ul",Kr,[e("li",null,[z(H,{current:t.current,"onUpdate:current":r[26]||(r[26]=s=>t.current=s),onChange:a.onChange,total:t.selected_data.length,defaultPageSize:t.page_size,showSizeChanger:!1,class:"custom-pagination px-3 py-1.5",href:"#","aria-label":"Previous"},{default:mt(()=>r[116]||(r[116]=[e("span",{"aria-hidden":"true"},"«",-1)])),_:1},8,["current","onChange","total","defaultPageSize"])])])],512),[[m,t.page_data.length>0]])]),e("aside",Hr,[t.current_detail_product?(i(),d("div",Yr,[e("div",Wr,[e("div",qr,[r[118]||(r[118]=e("h2",{class:"text-base font-semibold text-gray-900"}," ìí ìì¸ ",-1)),e("p",Qr,u(t.current_detail_product.product_code),1)]),e("button",{onClick:r[27]||(r[27]=(...s)=>a.closeProductDetailModal&&a.closeProductDetailModal(...s)),class:"p-2 -mr-2 hover:bg-gray-100 rounded-full text-gray-400 hover:text-gray-700 transition-colors"},r[119]||(r[119]=[e("i",{class:"fa-solid fa-xmark text-lg"},null,-1)]))]),g("",!0),p(e("div",Xr,[e("div",Zr,[e("div",$r,[e("img",{src:t.current_detail_product.detail_image,alt:t.current_detail_product.product_name,class:"w-full h-full object-cover"},null,8,es)]),e("div",ts,[e("p",rs,u(t.current_detail_product.product_name),1),e("p",ss,u((t.current_detail_product.mobile_discount_price||t.current_detail_product.pc_discount_price||t.current_detail_product.price).toLocaleStr
1ing())+"ì ",1)])]),e("section",null,[e("button",{type:"button",class:"w-full flex items-center gap-2 mb-2 px-1",onClick:r[30]||(r[30]=s=>a.detail_cafe24_open=!a.detail_cafe24_open)},[r[123]||(r[123]=e("span",{class:"w-1 h-3 bg-blue-500 rounded-full"},null,-1)),r[124]||(r[124]=e("h3",{class:"text-xs font-semibold text-gray-700 uppercase tracking-wide"}," ì¹´í24 ì ë³´ ",-1)),(i(),d("svg",{class:"w-3.5 h-3.5 text-gray-400 ml-auto transition-transform",style:xt({transform:a.detail_cafe24_open?"rotate(180deg)":"rotate(0deg)"}),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},r[122]||(r[122]=[e("polyline",{points:"6 9 12 15 18 9"},null,-1)]),4))]),p(e("dl",os,[e("div",ls,[r[125]||(r[125]=e("dt",{class:"text-gray-500"}," ìíì½ë ",-1)),e("dd",ns,u(t.current_detail_product.product_code),1)]),t.current_detail_product.retail_price?(i(),d("div",as,[r[126]||(r[126]=e("dt",{class:"text-gray-500"}," ìë¹ìê°ê²© ",-1)),e("dd",ds,u(t.current_detail_product.retail_price.toLocaleString())+"ì ",1)])):g("",!0),t.current_detail_product.retail_price&&(t.current_detail_product.mobile_discount_price||t.current_detail_product.pc_discount_price||t.current_detail_product.price)<t.current_detail_product.retail_price?(i(),d("div",is,[r[127]||(r[127]=e("dt",{class:"text-gray-500"}," í ì¸ì¨ ",-1)),e("dd",us,u(Math.round((1-(t.current_detail_product.mobile_discount_price||t.current_detail_product.pc_discount_price||t.current_detail_product.price)/t.current_detail_product.retail_price)*100))+"% ",1)])):g("",!0),e("div",cs,[r[128]||(r[128]=e("dt",{class:"text-gray-500"}," í매ìí ",-1)),e("dd",null,[e("span",{class:v(["inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",t.current_detail_product.selling==="T"?"bg-emerald-50 text-emerald-700":"bg-gray-100 text-gray-600"])},u(t.current_detail_product.selling==="T"?"í매ì¤":"íì "),3)])]),e("div",ps,[r[129]||(r[129]=e("dt",{class:"text-gray-500"}," íë§¤ê° ",-1)),e("dd",_s,u(t.current_detail_product.price.toLocaleString())+"ì ",1)]),t.current_detail_product.pc_discount_price?(i(),d("div",gs,[r[130]||(r[130]=e("dt",{class:"text-gray-500"}," PC í ì¸ê° ",-1)),e("dd",fs,u(t.current_detail_product.pc_discount_price.toLocaleString())+"ì ",1)])):g("",!0),t.current_detail_product.mobile_discount_price?(i(),d("div",ys,[r[131]||(r[131]=e("dt",{class:"text-gray-500"}," 모ë°ì¼ í ì¸ê° ",-1)),e("dd",bs,u(t.current_detail_product.mobile_discount_price.toLocaleString())+"ì ",1)])):g("",!0)],512),[[m,a.detail_cafe24_open]])]),e("section",null,[e("div",ms,[r[132]||(r[132]=e("span",{class:"w-1 h-3 bg-violet-500 rounded-full"},null,-1)),r[133]||(r[133]=e("h3",{class:"text-xs font-semibold text-gray-700 uppercase tracking-wide"}," ì¹´í
ê³ ë¦¬ ",-1)),a.detail_categories.length===0?(i(),d("span",xs," 미ì§ì ")):g("",!0)]),e("div",vs,[e("div",hs,[(i(!0),d(w,null,C(a.snapcat_list,s=>(i(),d("button",{key:"d-"+s.id,type:"button",class:v(["px-2.5 py-1 rounded-full text-xs border transition",a.detail_categories.includes(s.id)?"bg-gray-900 text-white border-gray-900 font-semibold":"bg-white text-gray-600 border-gray-200 hover:border-gray-400"]),onClick:f=>a.toggleDetailCategory(s.id)},u(s.name),11,ws))),128))]),r[134]||(r[134]=e("p",{class:"mt-2.5 text-[11px] text-gray-400"}," ê³µê¸ì ì¼ë ¤ë©´ ì¹´í
ê³ ë¦¬ê° íë ì´ì íìí©ëë¤. ì ì¥ ì í¨ê» ë°ìë©ëë¤. ",-1))])]),e("section",null,[r[160]||(r[160]=e("div",{class:"flex items-center gap-2 mb-2 px-1"},[e("span",{class:"w-1 h-3 bg-emerald-500 rounded-full"}),e("h3",{class:"text-xs font-semibold text-gray-700 uppercase tracking-wide"}," ì¤ë
ë°ì¤ ì¤ì ")],-1)),e("div",ks,[e("div",Ss,[r[135]||(r[135]=e("span",{class:"text-gray-500"},"ë±ë¡ì¼",-1)),e("span",Cs,u(t.current_detail_product.created_date),1)]),e("div",Ns,[r[137]||(r[137]=e("span",{class:"text-sm font-medium text-gray-800"},"ê³µê¸ ìí",-1)),e("div",Os,[e("span",{class:v(["inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",t.current_detail_product.drop_status_on?"bg-emerald-50 text-emerald-700":"bg-gray-100 text-gray-600"])},u(t.current_detail_product.drop_status_on?"ON":"OFF"),3),e("label",Ps,[p(e("input",{type:"checkbox",class:"sr-only peer","onUpdate:modelValue":r[31]||(r[31]=s=>t.current_detail_product.drop_status_on=s)},null,512),[[L,t.current_detail_product.drop_status_on]]),r[136]||(r[136]=e("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-gray-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-gray-900"},null,-1))])])]),e("div",Rs,[e("div",Ds,[r[139]||(r[139]=e("span",{class:"text-sm font-medium text-gray-800"},"í ì¸ì¨ ì¤ì ",-1)),e("label",js,[p(e("input",{type:"checkbox",class:"sr-only peer","onUpdate:modelValue":r[32]||(r[32]=s=>t.current_detail_product.discount_enabled=s)},null,512),[[L,t.current_detail_product.discount_enabled]]),r[138]||(r[138]=e("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-gray-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-gray-900"},null,-1))])]),p(e("div",Ts,[e("div",Fs,[p(e("input",{type:"number","onUpdate:modelValue":r[33]||(r[33]=s=>t.current_detail_product.snap_discount_rate=s),class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"í ì¸ì¨",min:"0",max:"100"},null,512),[[S,t.current_detail_product.snap_discount_rate]]),r[140]||(r[140]=e("span",{class:"text-sm text-gray-500"},"%",-1))])],512),[[m,t.current_detail_product.discount_enabled]])]),e("div",Ms,[e("div",As,[r[141]||(r[141]=e("span",{class:"text-sm font-medium text-gray-800"}
1,"íì í매 기ê°",-1)),t.current_round?(i(),d("span",Bs,"íë§¤ì¤ Â· "+u(a.remainText(t.current_round.ended_at)),1)):t.upcoming_round?(i(),d("span",Vs,"ì¤íìì ")):(i(),d("span",Es,"ììí매"))]),r[144]||(r[144]=e("p",{class:"text-xs text-gray-500 mb-2"}," 기ê°ì ë±ë¡íë©´ í매 íì´ì§ì íì´ë¨¸ê° íìëê³ , ì¢
ë£ íìë êµ¬ë§¤ê° ì°¨ë¨ë©ëë¤. ë±ë¡íì§ ìì¼ë©´ ììí매ì
ëë¤. ",-1)),t.sale_rounds.length>0?(i(),d("div",Us,[(i(!0),d(w,null,C(t.sale_rounds,s=>(i(),d("div",{key:s.id,class:"flex items-center justify-between px-2.5 py-2"},[e("div",Ls,[e("div",zs,[x(u(s.round_no)+"ì°¨",1),s.title?(i(),d("span",Is," · "+u(s.title),1)):g("",!0)]),e("div",Js,u(s.started_at)+" ~ "+u(s.ended_at),1)]),e("div",Ks,[e("span",{class:v(["text-[11px] px-1.5 py-0.5 rounded",{"bg-rose-50 text-rose-700":s.state==="active","bg-amber-50 text-amber-700":s.state==="scheduled","bg-gray-100 text-gray-500":s.state==="ended"}])},u(a.roundStateLabel(s.state)),3),e("button",{type:"button",class:"text-[11px] text-gray-500 hover:text-gray-900 underline",onClick:f=>a.editRound(s)}," ìì ",8,Hs),s.state==="scheduled"?(i(),d("button",{key:0,type:"button",class:"text-[11px] text-rose-500 hover:text-rose-700 underline",onClick:f=>a.deleteRound(s)}," ìì ",8,Gs)):g("",!0)])]))),128))])):g("",!0),e("div",Ys,[p(e("input",{type:"text","onUpdate:modelValue":r[34]||(r[34]=s=>t.round_form.title=s),class:"w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ì°¨ì ì´ë¦ (ì í) ì: ì¬ë¦ 공구 1ì°¨",maxlength:"100"},null,512),[[S,t.round_form.title]]),e("div",Ws,[r[142]||(r[142]=e("label",{class:"round-date-label"},"ìì",-1)),p(e("input",{type:"datetime-local","onUpdate:modelValue":r[35]||(r[35]=s=>t.round_form.started_at=s),class:"round-date-input"},null,512),[[S,t.round_form.started_at]])]),e("div",qs,[r[143]||(r[143]=e("label",{class:"round-date-label"},"ì¢
ë£",-1)),p(e("input",{type:"datetime-local","onUpdate:modelValue":r[36]||(r[36]=s=>t.round_form.ended_at=s),class:"round-date-input"},null,512),[[S,t.round_form.ended_at]])]),e("div",Qs,[e("button",{type:"button",class:"flex-1 px-3 py-2 text-sm font-medium text-white bg-gray-900 rounded-md hover:bg-gray-800",onClick:r[37]||(r[37]=(...s)=>a.saveRound&&a.saveRound(...s))},u(t.round_form.id?"ì°¨ì ìì ":"ì°¨ì ë±ë¡"),1),t.round_form.id?(i(),d("button",{key:0,type:"button",class:"px-3 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded-md hover:bg-gray-200",onClick:r[38]||(r[38]=(...s)=>a.resetRoundForm&&a.resetRoundForm(...s))}," ì·¨ì ")):g("",!0)])])]),e("div",Xs,[r[148]||(r[148]=e("span",{class:"block text-sm font-medium text-gray-800 mb-2"},"ë°°ì¡ì¼ ì¤ì ",-1)),e("div",Zs,[p(e("input",{type:"number","onUpdate:modelValue":r[39]||(r[39]=s=>t.current_detail_product.delivery_min_days=s),class:"w-14 px-2 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ìµì",min:"0"},null,512),[[S,t.current_detail_product.delivery_min_days]]),r[145]||(r[145]=e("span",{class:"text-sm text-gray-500"},"ì¼",-1)),r[146]||(r[146]=e("span",{class:"text-gray-300 mx-1"},"~",-1)),p(e("input",{type:"number","onUpdate:modelValue":r[40]||(r[40]=s=>t.current_detail_product.delivery_max_days=s),class:"w-14 px-2 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ìµë",min:"0"},null,512),[[S,t.current_detail_product.delivery_max_days]]),r[147]||(r[147]=e("span",{class:"text-sm text-gray-500"},"ì¼",-1))]),p(e("input",{type:"text","onUpdate:modelValue":r[41]||(r[41]=s=>t.current_detail_product.delivery_text=s),class:"mt-2 w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ë°°ì¡ ìë´ ë¬¸êµ¬ (ì í) ì: 5ì 20ì¼ ì¼ê´ ë°ì¡",maxlength:"100"},null,512),[[S,t.current_detail_product.delivery_text]]),r[149]||(r[149]=e("p",{class:"mt-1 text-xs text-gray-500"}," 문구를 ì
ë ¥íë©´ Nì¼~Nì¼ ëì ë¬¸êµ¬ê° ë
¸ì¶ë©ëë¤. ",-1))]),e("div",$s,[r[155]||(r[155]=e("span",{class:"block text-sm font-medium text-gray-800 mb
1-2"},"ë°°ì¡ë¹",-1)),e("div",eo,[p(e("input",{type:"number","onUpdate:modelValue":r[42]||(r[42]=s=>t.current_detail_product.delivery_fee=s),class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ë°°ì¡ë¹",min:"0",step:"100"},null,512),[[S,t.current_detail_product.delivery_fee,void 0,{number:!0}]]),r[150]||(r[150]=e("span",{class:"text-sm text-gray-500"},"ì",-1))]),r[156]||(r[156]=e("p",{class:"mt-1 text-xs text-gray-500"}," ë¹ìëë©´ 무ë£ë°°ì¡ì¼ë¡ ì²ë¦¬ë©ëë¤. ",-1)),p(e("div",to,[e("div",ro,[r[152]||(r[152]=e("span",{class:"text-sm font-medium text-gray-800"},"무ë£ë°°ì¡ 기ì¤ê¸ì¡",-1)),e("label",so,[p(e("input",{type:"checkbox",class:"sr-only peer","onUpdate:modelValue":r[43]||(r[43]=s=>t.current_detail_product.free_shipping_enabled=s)},null,512),[[L,t.current_detail_product.free_shipping_enabled]]),r[151]||(r[151]=e("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-gray-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-gray-900"},null,-1))])]),p(e("div",oo,[e("div",lo,[p(e("input",{type:"number","onUpdate:modelValue":r[44]||(r[44]=s=>t.current_detail_product.free_shipping_threshold=s),class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ì: 50000",min:"0",step:"1000"},null,512),[[S,t.current_detail_product.free_shipping_threshold,void 0,{number:!0}]]),r[153]||(r[153]=e("span",{class:"text-sm text-gray-500"},"ì ì´ì",-1))]),r[154]||(r[154]=e("p",{class:"mt-1 text-xs text-gray-500"}," í´ë¹ ìí 구매ê¸ì¡ì´ 기ì¤ê¸ì¡ ì´ìì´ë©´ ë°°ì¡ë¹ê° 무ë£ì
ëë¤. ",-1))],512),[[m,t.current_detail_product.free_shipping_enabled]])],512),[[m,Number(t.current_detail_product.delivery_fee)>0]])]),e("div",no,[e("div",ao,[r[157]||(r[157]=e("span",{class:"text-sm font-medium text-gray-800"},"ì
ë¬ ììë£",-1)),e("span",io,u(a.calculateSupplyPrice(t.current_detail_product)),1)]),e("div",uo,[p(e("input",{type:"number","onUpdate:modelValue":r[45]||(r[45]=s=>t.current_detail_product.product_fee_rate=s),class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent bg-white",placeholder:"ììë£ì¨",min:"0",max:"99"},null,512),[[S,t.current_detail_product.product_fee_rate,void 0,{number:!0}]]),r[158]||(r[158]=e("span",{class:"text-sm text-gray-500"},"%",-1))]),r[159]||(r[159]=e("p",{class:"text-xs text-gray-500 mt-1.5"}," ì
ë¬ ì§ê¸ ììë£ì¨ ",-1))])])])],512),[[m,t.product_detail_tab==="individual"]]),p(e("div",co,r[161]||(r[161]=[e("div",{class:"inline-flex items-center justify-center w-12 h-12 bg-gray-100 rounded-full mb-3"},[e("i",{class:"fa-solid fa-gear text-gray-400"})],-1),e("p",{class:"text-sm font-medium text-gray-700 mb-1"}," ê³µíµì¤ì ",-1),e("p",{class:"text-xs text-gray-400"}," ì ì²´ ìíì ì¼ê´ ì ì©ëë ì¤ì ììì
ëë¤. ",-1)]),512),[[m,t.product_detail_tab==="common"]]),p(e("div",po,[e("button",{type:"button",class:"w-full bg-gray-900 hover:bg-gray-800 text-white font-medium py-2.5 px-4 rounded-lg transition-colors",onClick:r[46]||(r[46]=(...s)=>a.saveProductSettings&&a.saveProductSettings(...s))}," ì ì¥í기 ")],512),[[m,t.product_detail_tab==="individual"]])])):(i(),d("div",Gr,r[117]||(r[117]=[e("div",{class:"inline-flex items-center justify-center w-14 h-14 bg-gray-50 rounded-full mb-3"},[e("i",{class:"fa-solid fa-hand-pointer text-gray-400 text-xl"})],-1),e("p",{class:"text-sm font-medium text-gray-700 mb-1"}," ìíì ì ííì¸ì ",-1),e("p",{class:"text-xs text-gray-500"},[x(" ì¼ìª½ 목ë¡ìì ìíì í´ë¦íë©´"),e("br"),x(" ìì¸ ì¤ì ì í ì ììµëë¤. ")],-1)])))])],512),[[m,t.raw_data.length>0]])]),z(M)])])]),p(e("div",_o,[e("div",go,[e("div",fo,[r[163]||(r[163]=e("h3",{class:"text-xl font-bold"},"ììë£ ì¤ì ",-1)),e("button",{onClick:r[47]||(r[47]=(...s)=>a.closeModal&&a.closeModal(...s)),class:"text-gray-400 hover:text-gray-600 transition-colors"},r[162]||(r[162]=[e("i",{class:"fa-solid fa-xmark fa-lg"},null,-1)]))]),e("div",yo,[e("div",bo,[r[164]||(r[164]=e("label",{class:"block text-gray-700 text-sm font-bold mb-2"},"ììë£ ì¤ì (%)",-1)),p(e("input",{type:"number",class:"w-full px-3 py-2 border border-gray-300 rounded-md",placeholder:"ì
ë¬ ì§ê¸ ììë£ë¥¼ ì
ë ¥íì¸ì",min:"1",max:"100","onUpdate:modelValue":r[48]||(r[48]=s=>t.product_fee_rate=s),onBlur:r[49]||(r[49]=(...s)=>a.validateSupplyPrice&&a.validateSupplyPrice(...s))},null,544),[[S,t.product_fee_rate]])]),e("div",mo,[r[166]||(r[166]=e("label",{class:"block text-gray-700 text-sm font-bold mb-2"},"ìëí 공구 모ë ê³µê° ì¤ì ",-1)),e("div",xo,[e("label",vo,[p(e("input",{type:"checkbox","onUpdate:modelValue":r[50]||(r[50]=s=>t.isOpenitem=s),class:"mr-2 w-4 h-4"},null,512),[[L,t.isOpenitem]]),r[165]||(r[165]=e("span",{class:"text-sm text-gray-600"}
1,"모ëìê² ê³µê°",-1))])])])]),e("div",ho,[e("div",wo,[e("button",{type:"button",class:"btn_success",onClick:r[51]||(r[51]=(...s)=>a.closeModal&&a.closeModal(...s))}," ì·¨ì "),e("button",{type:"button",class:"btn_next btn_success",onClick:r[52]||(r[52]=s=>a.updateProductFeeRate())}," íì¸ ")])])])],512),[[m,t.modal]]),p(e("div",ko,[e("div",So,[e("div",Co,[e("div",No,[r[167]||(r[167]=e("h3",{class:"text-xl font-bold"},"리뷰 ê´ë¦¬",-1)),e("span",Oo,u((G=t.current_review_product)==null?void 0:G.product_name),1)]),e("button",{onClick:r[53]||(r[53]=(...s)=>a.closeReviewModal&&a.closeReviewModal(...s)),class:"text-gray-400 hover:text-gray-600 transition-colors"},r[168]||(r[168]=[e("i",{class:"fa-solid fa-xmark fa-lg"},null,-1)]))]),e("div",Po,[e("div",Ro,[e("button",{onClick:r[54]||(r[54]=s=>t.review_tab="list"),class:v(["flex-1 px-6 py-4 text-center font-medium transition-colors relative",t.review_tab==="list"?"text-blue-600 bg-blue-50":"text-gray-600 hover:bg-gray-50"])},[r[169]||(r[169]=x(" 리뷰 ëª©ë¡ ")),t.review_tab==="list"?(i(),d("span",Do)):g("",!0)],2),e("button",{onClick:r[55]||(r[55]=s=>t.review_tab="add"),class:v(["flex-1 px-6 py-4 text-center font-medium transition-colors relative",t.review_tab==="add"?"text-blue-600 bg-blue-50":"text-gray-600 hover:bg-gray-50"])},[x(u(t.review_is_editing?"리뷰 ìì ":"리뷰 ì¶ê°")+" ",1),t.review_tab==="add"?(i(),d("span",jo)):g("",!0)],2)])]),e("div",To,[p(e("div",null,[t.review_list.length===0?(i(),d("div",Fo,r[170]||(r[170]=[e("i",{class:"fa-regular fa-star fa-3x text-gray-300 mb-4"},null,-1),e("p",{class:"text-gray-500 mb-2"},"ë±ë¡ë ë¦¬ë·°ê° ììµëë¤",-1),e("p",{class:"text-sm text-gray-400"}," 리뷰를 ì¶ê°íì¬ ê³ ê° ì íì¨ì ëì¬ë³´ì¸ì ",-1)]))):(i(),d("div",Mo,[(i(!0),d(w,null,C(t.review_list,s=>(i(),d("div",{key:s.id,class:"border border-gray-200 rounded-lg p-5 hover:shadow-md transition-shadow"},[e("div",Ao,[e("div",Bo,[e("div",Vo,[(i(),d(w,null,C(5,f=>e("img",{key:f,src:f<=s.rating?"/icon_star.png":"/icon_review.png",alt:"ë³",class:"w-4 h-4"},null,8,Eo)),64)),e("span",Uo,u(s.rating)+"ì ",1)]),e("h4",Lo,u(s.title),1),e("p",zo,u(s.created_at),1)]),e("div",Io,[e("button",{onClick:f=>a.editReview(s),class:"px-3 py-1.5 text-sm text-blue-600 hover:bg-blue-50 border border-blue-200 rounded-md transition-colors"}," ìì ",8,Jo),e("button",{onClick:f=>a.deleteReview(s.id),class:"px-3 py-1.5 text-sm text-red-600 hover:bg-red-50 border border-red-200 rounded-md transition-colors"}," ìì ",8,Ko)])]),e("p",Ho,u(s.content),1),s.photo&&s.photo.length>0?(i(),d("div",Go,[(i(!0),d(w,null,C(s.photo,(f,N)=>(i(),d("div",{key:N,class:"w-20 h-20 rounded-md overflow-hidden border border-gray-200"},[e("img",{src:f.photo,alt:"리뷰 ì¬ì§",class:"w-full h-full object-cover"},null,8,Yo)]))),128))])):g("",!0)]))),128))]))],512),[[m,t.review_tab==="list"]]),p(e("div",Wo,[e("div",null,[r[171]||(r[171]=e("label",{class:"block text-sm font-semibold text-gray-700 mb-3"},[x(" ë³ì "),e("span",{class:"text-red-500"},"*")],-1)),e("div",qo,[(i(),d(w,null,C(5,s=>e("img",{key:s,src:s<=t.review_form_rating?"/icon_star.png":"/icon_review.png",onClick:f=>t.review_form_rating=s,alt:"ë³",class:"w-8 h-8 cursor-pointer hover:scale-110 transition-transform"},null,8,Qo)),64)),e("span",Xo,u(t.review_form_rating)+"ì ",1)])]),e("div",null,[r[172]||(r[172]=e("label",{class:"block text-sm font-semibold text-gray-700 mb-3"},[x(" 리뷰 ì 목 "),e("span",{class:"text-red-500"},"*")],-1)),p(e("input",{type:"text","onUpdate:modelValue":r[56]||(r[56]=s=>t.review_form_title=s),placeholder:"리뷰 ì 목ì ì
ë ¥í´ì£¼ì¸ì",maxlength:"100",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"},null,512),[[S,t.review_form_title]])]),e("div",null,[r[173]||(r[173]=e("label",{class:"block text-sm font-semibold text-gray-700 mb-3"},[x(" 리뷰 ë´ì© "),e("span",{class:"text-red-500"},"*")],-1)),p(e("textarea",{"onUpdate:modelValue":r[57]||(r[57]=s=>t.review_form_content=s),placeholder:"ìíì ëí 리뷰를 ìì±í´ì£¼ì¸ì",rows:"6",class:"w-full px-4 py-3 border border-gray-300 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"},null,512),[[S,t.review_form_content]])]),e("div",null,[r[176]||(r[176]=e("label",{class:"block text-sm font-semibold text-gray-700 mb-3"},[x(" 리뷰 ì¬ì§ "),e("span",{class:"text-xs text-gray-500 font-normal"}
1,"(ìµë 10ì¥)")],-1)),e("div",Zo,[(i(!0),d(w,null,C(t.review_form_photos,(s,f)=>(i(),d("div",{key:f,class:"relative w-24 h-24 rounded-lg overflow-hidden border-2 border-gray-200 hover:border-blue-400 transition-colors"},[e("img",{src:s.photo,alt:"리뷰 ì¬ì§",class:"w-full h-full object-cover"},null,8,$o),e("button",{type:"button",onClick:N=>a.removeReviewFormPhoto(f),class:"absolute -top-2 -right-2 w-6 h-6 bg-red-500 text-white rounded-full hover:bg-red-600 transition-colors shadow-md flex items-center justify-center"},r[174]||(r[174]=[e("i",{class:"fa-solid fa-xmark text-xs"},null,-1)]),8,el)]))),128)),t.review_form_photos.length<10?(i(),d("div",{key:0,onClick:r[58]||(r[58]=s=>t.$refs.reviewPhotoInput.click()),class:"w-24 h-24 border-2 border-dashed border-gray-300 rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-blue-400 hover:bg-blue-50 transition-all"},r[175]||(r[175]=[e("i",{class:"fa-solid fa-plus text-2xl text-gray-400 mb-1"},null,-1),e("span",{class:"text-xs text-gray-500"},"ì¬ì§ ì¶ê°",-1)]))):g("",!0)]),e("input",{type:"file",ref:"reviewPhotoInput",onChange:r[59]||(r[59]=(...s)=>a.onReviewPhotoChange&&a.onReviewPhotoChange(...s)),multiple:"",accept:"image/*",style:{display:"none"}},null,544)])],512),[[m,t.review_tab==="add"]])]),e("div",tl,[e("button",{type:"button",onClick:r[60]||(r[60]=(...s)=>a.closeReviewModal&&a.closeReviewModal(...s)),class:"px-6 py-2.5 bg-white text-gray-700 font-medium border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors"}," ì·¨ì "),t.review_tab==="add"?(i(),d("button",{key:0,type:"button",onClick:r[61]||(r[61]=(...s)=>a.saveReview&&a.saveReview(...s)),class:"px-6 py-2.5 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 transition-colors"},u(t.review_is_editing?"ìì ìë£":"리뷰 ë±ë¡"),1)):g("",!0)])])],512),[[m,t.modal_review]]),p(e("div",rl,[e("div",{class:"fixed inset-0 bg-black bg-opacity-50 z-40 transition-opacity",onClick:r[62]||(r[62]=(...s)=>a.closeProductDetailModal&&a.closeProductDetailModal(...s))}),e("div",{class:v(["fixed top-0 right-0 h-full w-full max-w-md bg-white shadow-2xl z-50 transform transition-transform duration-300",t.modal_product_detail?"translate-x-0":"translate-x-full"]),onClick:r[72]||(r[72]=I(()=>{},["stop"]))},[e("div",sl,[e("div",ol,[e("div",ll,[r[177]||(r[177]=e("h2",{class:"text-base font-semibold text-gray-900"}," ìí ìì¸ ",-1)),t.current_detail_product?(i(),d("p",nl,u(t.current_detail_product.product_code),1)):g("",!0)]),e("button",{onClick:r[63]||(r[63]=(...s)=>a.closeProductDetailModal&&a.closeProductDetailModal(...s)),class:"p-2 -mr-2 hover:bg-gray-100 rounded-full text-gray-400 hover:text-gray-700 transition-colors"},r[178]||(r[178]=[e("i",{class:"fa-solid fa-xmark text-lg"},null,-1)]))]),e("div",al,[e("div",dl,[e("button",{onClick:r[64]||(r[64]=s=>t.product_detail_tab="common"),class:v(["flex-1 px-6 py-3 text-center text-sm font-medium transition-colors relative",t.product_detail_tab==="common"?"text-gray-900":"text-gray-500 hover:text-gray-700"])},[r[179]||(r[179]=x(" ê³µíµì¤ì ")),t.product_detail_tab==="common"?(i(),d("span",il)):g("",!0)],2),e("button",{onClick:r[65]||(r[65]=s=>t.product_detail_tab="individual"),class:v(["flex-1 px-6 py-3 text-center text-sm font-medium transition-colors relative",t.product_detail_tab==="individual"?"text-gray-900":"text-gray-500 hover:text-gray-700"])},[r[180]||(r[180]=x(" ê°ë³ì¤ì ")),t.product_detail_tab==="individual"?(i(),d("span",ul)):g("",!0)],2)])]),e("div",cl,[t.current_detail_product?p((i(),d("div",pl,[e("div",_l,[e("div",gl,[e("img",{src:t.current_detail_product.detail_image,alt:t.current_detail_product.product_name,class:"w-full h-full object-cover"},null,8,fl)]),e("div",yl,[e("p",bl,u(t.current_detail_product.product_name),1),e("p",ml,u((t.current_detail_product.mobile_discount_price||t.current_detail_product.pc_discount_price||t.current_detail_product.price).toLocaleString())+"ì ",1)])]),e("section",null,[r[188]||(r[188]=e("div",{class:"flex items-center gap-2 mb-2.5 px-1"},[e("span",{class:"w-1 h-3.5 bg-blue-500 rounded-full"}),e("h3",{class:"text-sm font-semibold text-gray-800"}
1," ì¹´í24 ì ë³´ ")],-1)),e("dl",xl,[e("div",vl,[r[181]||(r[181]=e("dt",{class:"text-gray-500"},"ìíì½ë",-1)),e("dd",hl,u(t.current_detail_product.product_code),1)]),t.current_detail_product.retail_price?(i(),d("div",wl,[r[182]||(r[182]=e("dt",{class:"text-gray-500"},"ìë¹ìê°ê²©",-1)),e("dd",kl,u(t.current_detail_product.retail_price.toLocaleString())+"ì ",1)])):g("",!0),t.current_detail_product.retail_price&&(t.current_detail_product.mobile_discount_price||t.current_detail_product.pc_discount_price||t.current_detail_product.price)<t.current_detail_product.retail_price?(i(),d("div",Sl,[r[183]||(r[183]=e("dt",{class:"text-gray-500"},"í ì¸ì¨",-1)),e("dd",Cl,u(Math.round((1-(t.current_detail_product.mobile_discount_price||t.current_detail_product.pc_discount_price||t.current_detail_product.price)/t.current_detail_product.retail_price)*100))+"% ",1)])):g("",!0),e("div",Nl,[r[184]||(r[184]=e("dt",{class:"text-gray-500"},"í매ìí",-1)),e("dd",null,[e("span",{class:v(["inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",t.current_detail_product.selling==="T"?"bg-emerald-50 text-emerald-700":"bg-gray-100 text-gray-600"])},u(t.current_detail_product.selling==="T"?"í매ì¤":"íì "),3)])]),e("div",Ol,[r[185]||(r[185]=e("dt",{class:"text-gray-500"},"í매ê°",-1)),e("dd",Pl,u(t.current_detail_product.price.toLocaleString())+"ì ",1)]),t.current_detail_product.pc_discount_price?(i(),d("div",Rl,[r[186]||(r[186]=e("dt",{class:"text-gray-500"},"PC í ì¸ê°",-1)),e("dd",Dl,u(t.current_detail_product.pc_discount_price.toLocaleString())+"ì ",1)])):g("",!0),t.current_detail_product.mobile_discount_price?(i(),d("div",jl,[r[187]||(r[187]=e("dt",{class:"text-gray-500"},"모ë°ì¼ í ì¸ê°",-1)),e("dd",Tl,u(t.current_detail_product.mobile_discount_price.toLocaleString())+"ì ",1)])):g("",!0)])]),e("section",null,[r[203]||(r[203]=e("div",{class:"flex items-center gap-2 mb-2.5 px-1"},[e("span",{class:"w-1 h-3.5 bg-emerald-500 rounded-full"}),e("h3",{class:"text-sm font-semibold text-gray-800"}," ì¤ë
ë°ì¤ ì¤ì ")],-1)),e("div",Fl,[e("div",Ml,[r[189]||(r[189]=e("span",{class:"text-gray-500"},"ë±ë¡ì¼",-1)),e("span",Al,u(t.current_detail_product.created_date),1)]),e("div",Bl,[r[190]||(r[190]=e("span",{class:"text-gray-500"},"ê³µê¸ìí",-1)),e("span",{class:v(["inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",a.getSupplyStatusText(t.current_detail_product)==="ON"?"bg-emerald-50 text-emerald-700":"bg-gray-100 text-gray-600"])},u(a.getSupplyStatusText(t.current_detail_product)),3)]),e("div",Vl,[r[191]||(r[191]=e("span",{class:"text-gray-500"},"ì¤íìì´í
",-1)),e("span",El,u(t.current_detail_product.open_item==="T"?"ON":"OFF"),1)]),e("div",Ul,[e("div",Ll,[r[193]||(r[193]=e("span",{class:"text-sm font-medium text-gray-800"},"í ì¸ì¨ ì¤ì ",-1)),e("label",zl,[p(e("input",{type:"checkbox",class:"sr-only peer","onUpdate:modelValue":r[66]||(r[66]=s=>t.current_detail_product.discount_enabled=s)},null,512),[[L,t.current_detail_product.discount_enabled]]),r[192]||(r[192]=e("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-gray-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-gray-900"},null,-1))])]),p(e("div",Il,[e("div",Jl,[p(e("input",{type:"number","onUpdate:modelValue":r[67]||(r[67]=s=>t.current_detail_product.snap_discount_rate=s),class:"flex-1 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"í ì¸ì¨ ì
ë ¥",min:"0",max:"100"},null,512),[[S,t.current_detail_product.snap_discount_rate]]),r[194]||(r[194]=e("span",{class:"text-sm text-gray-500"},"%",-1))]),r[195]||(r[195]=e("p",{class:"text-xs text-gray-500"}," ì ì©ë í ì¸ì¨ë¡ ìµì¢
í매ê°ê° ê³ì°ë©ëë¤. ",-1))],512),[[m,t.current_detail_product.discount_enabled]])]),e("div",Kl,[r[199]||(r[199]=e("span",{class:"block text-sm font-medium text-gray-800 mb
1-3"},"ë°°ì¡ì¼ ì¤ì ",-1)),e("div",Hl,[p(e("input",{type:"number","onUpdate:modelValue":r[68]||(r[68]=s=>t.current_detail_product.delivery_min_days=s),class:"w-16 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ìµì",min:"0"},null,512),[[S,t.current_detail_product.delivery_min_days]]),r[196]||(r[196]=e("span",{class:"text-sm text-gray-500"},"ì¼",-1)),r[197]||(r[197]=e("span",{class:"text-gray-300 mx-1"},"~",-1)),p(e("input",{type:"number","onUpdate:modelValue":r[69]||(r[69]=s=>t.current_detail_product.delivery_max_days=s),class:"w-16 px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ìµë",min:"0"},null,512),[[S,t.current_detail_product.delivery_max_days]]),r[198]||(r[198]=e("span",{class:"text-sm text-gray-500"},"ì¼",-1))]),r[200]||(r[200]=e("p",{class:"text-xs text-gray-500"}," ìí ë°°ì¡ì ììëë 기ê°ì ì¤ì í©ëë¤. ",-1)),p(e("input",{type:"text","onUpdate:modelValue":r[70]||(r[70]=s=>t.current_detail_product.delivery_text=s),class:"mt-3 w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-900 focus:border-transparent",placeholder:"ë°°ì¡ ìë´ ë¬¸êµ¬ (ì í) ì: 5ì 20ì¼ ì¼ê´ ë°ì¡",maxlength:"100"},null,512),[[S,t.current_detail_product.delivery_text]]),r[201]||(r[201]=e("p",{class:"mt-1 text-xs text-gray-500"}," 문구를 ì
ë ¥íë©´ Nì¼~Nì¼ ëì ë¬¸êµ¬ê° ë
¸ì¶ë©ëë¤. ",-1))]),t.current_detail_product.product_fee_rate?(i(),d("div",Gl,[e("div",Yl,[e("span",Wl,[r[202]||(r[202]=x(" ì
ë¬ ììë£ ")),e("span",ql,"("+u(t.current_detail_product.product_fee_rate)+"%)",1)]),e("span",Ql,u(a.calculateSupplyPrice(t.current_detail_product)),1)])])):g("",!0)])])],512)),[[m,t.product_detail_tab==="individual"]]):g("",!0),p(e("div",Xl,r[204]||(r[204]=[e("div",{class:"inline-flex items-center justify-center w-12 h-12 bg-gray-100 rounded-full mb-3"},[e("i",{class:"fa-solid fa-gear text-gray-400"})],-1),e("p",{class:"text-sm font-medium text-gray-700 mb-1"}," ê³µíµì¤ì ",-1),e("p",{class:"text-xs text-gray-400"}," ì ì²´ ìíì ì¼ê´ ì ì©ëë ì¤ì ììì
ëë¤. ",-1)]),512),[[m,t.product_detail_tab==="common"]])]),p(e("div",Zl,[e("button",{type:"button",class:"w-full bg-gray-900 hover:bg-gray-800 text-white font-medium py-3 px-4 rounded-lg transition-colors",onClick:r[71]||(r[71]=(...s)=>a.saveProductSettings&&a.saveProductSettings(...s))}," ì ì¥í기 ")],512),[[m,t.product_detail_tab==="individual"&&t.current_detail_product]])])],2)],512),[[m,t.modal_product_detail]]),p(e("div",$l,[e("div",en,[e("h1",null,[r[205]||(r[205]=x(" ì림 ")),e("button",{type:"button",class:"btn_close",onClick:r[73]||(r[73]=s=>t.alert_display=!1)}," ë«ê¸° ")]),e("div",tn,u(t.msg),1),e("div",rn,[p(e("button",{type:"button",class:"btn_success",onClick:r[74]||(r[74]=s=>t.alert_display=!1)}," ì·¨ì ",512),[[m,t.alert_confirm]]),e("button",{type:"button",class:"btn_next btn_success",onClick:r[75]||(r[75]=(...s)=>t.clickConfirm&&t.clickConfirm(...s))}," íì¸ ")])])],512),[[m,t.alert_display]]),z(A,{loading:t.is_loading,"dark-background":t.useDarkBackground},null,8,["loading","dark-background"]),a.snapcat_open?(i(),d("div",{key:0,class:"sc-dim",onClick:r[80]||(r[80]=(...s)=>a.closeSnapCat&&a.closeSnapCat(...s))},[e("div",{class:"sc-modal",onClick:r[79]||(r[79]=I(()=>{},["stop"]))},[e("div",sn,[r[207]||(r[207]=e("div",null,[e("h3",{class:"sc-title"},"ì¤ë
ë°ì¤ ì¹´í
ê³ ë¦¬ ì§ì "),e("p",{class:"sc-sub"}," ê³µê¸ì ì¼ë ¤ë©´ ì¹´í
ê³ ë¦¬ê° íìí©ëë¤. ì
ë¬ ìí찾기ìì ì´ ë¶ë¥ë¡ ìíì ì°¾ìµëë¤. ")],-1)),e("button",{type:"button",class:"sc-x",onClick:r[76]||(r[76]=(...s)=>a.closeSnapCat&&a.closeSnapCat(...s)),"aria-label":"ë«ê¸°"},r[206]||(r[206]=[e("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[e("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),e("line",{x1:"18",y1:"6",x2:"6",y2:"18"})],-1)]))]),e("div",on,[a.snapcat_targets.length>1?(i(),d("div",ln,[r[208]||(r[208]=e("span",{class:"sc-bulk-label"},"ì ì²´ ì¼ê´ ì ì©",-1)),e("div",nn,[(i(!0),d(w,null,C(a.snapcat_list,s=>(i(),d("button",{key:"bulk-"+s.id,type:"button",class:"sc-chip",onClick:f=>a.applySnapCatToAll(s.id)},u(s.name),9,an))),128))])])):g("",!0),(i(!0),d(w,null,C(a.snapcat_targets,s=>(i(),d("div",{key:s.id,class:"sc-item"},[e("div",dn,u(s.product_name),1),e("div",un,[(i(!0),d(w,null,C(a.snapcat_list,f=>(i(),d("button",{key:s.id+"-"+f.id,type:"button",class:v(["sc-chip",{"is-on":s.category_ids.includes(f.id)}]),onClick:N=>a.toggleSnapCat(s,f.id)},u(f.name),11,cn))),128))])]))),128))]),e("div",pn,[e("span",_n,u(a.snapcatDoneCount)+" / "+u(a.snapcat_targets.length)+" ì§ì ë¨ ",1),e("div",gn,[e("button",{type:"button",class:"sc-btn-ghost",onClick:r[77]||(r[77]=(...s)=>a.closeSnapCat&&a.closeSnapCat(...s))}," ì·¨ì "),e("button",{type:"button",class:"sc-btn-primary",disabled:a.snapcatDoneCount!==a.snapcat_targets.length||a.snapcat_saving,onClick:r[78]||(r[78]=(...s)=>a.saveSnapCatAndTurnOn&&a.saveSnapCatAndTurnOn(...s))},u(a.snapcat_saving?"ì ì¥ ì¤...":"ì ì¥íê³ ê³µê¸ ON"),9,fn)])])])])):g("",!0)],64)}const Cn=ct(Ct,[["render",yn],["__scopeId","data-v-25f03b4a"]]);export{Cn 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.