1import{_ as At,m as Dt,A as X,r as Ut,B as qt,o as Ht,p as Kt,c as g,b as o,h as N,w as r,I as k,e as x,v as P,q as b,k as O,t as U,x as st,i as A,F as L,f as D,D as Jt,u as Qt,bZ as Pt,z as Wt,j as q,bf as Gt,g as c,s as St}from"./index-GRB8Jcml.js";import{S as Yt,a as Zt,b as Xt,c as at,d as dt,e as J}from"./snap_footer-B9eSqtLO.js";import{S as $t}from"./Cafe24Service-JcfuYLwI.js";import{S as to}from"./StockService-DwJDRniG.js";import{V as oo}from"./vue-draggable-next.esm-bundler-DNdHFEyD.js";import{C as rt}from"./compressor.esm-FeJMiU6q.js";import{S as eo}from"./snap_upgrade_starter-BsZCno11.js";import{S as lo}from"./spinner-CjlHwONo.js";/* empty css */import{_ as Vt}from"./logo_brandsnap_d-CSJi7Hhi.js";import"./UserService-B39Vk0W_.js";const io={name:"SnapMainAdd",components:{draggable:oo,SNAP_MENU:Yt,SNAP_HEADER:Zt,SNAP_FOOTER:Xt,SNAP_UPGRADE_STARTER:eo,SNAP_SPINNER:lo},setup(){const e=Dt({snap_data:[],snap_count:0,dragging:!1,product_name:"",product_url:"",user_name:"",current:1,paramString:"",query:"",data:[],page_size:14,pagedata:[],total:0,modal_popup:!1,modal_for_copy:!1,checkedContents:[],modal_index:-1,modal_photos:[],modal_contents:"",main_type:"",main_auto_scroll:"",main_width:"",main_width_type:"",main_height:"",main_height_mobile:"",main_align:"",main_radius:5,main_radius_mobile:"",main_left_mobile:"",main_title_pc_unuse:"",main_title_mobile_unuse:"",main_title_width_pc:"",main_title_width_mobile:"",main_ratio_pc:"",main_ratio_mobile:"",snap_id:"",deleted_photos:[],deleted_snaps:[],code:"",code_modal:!1,code_body:"",code_contents:"",checked_snaps:[],modal_snap_detail:!1,data_snap_detail:"",new_order:0,updateTrigger:!1,snap_payment_value:0,mall_id:"",is_loading:!1,order:0,current_title:"",text_color_pc:{selectedColor:"",showColorPicker:!1},text_color_mobile:{selectedColor:"",showColorPicker:!1},textbg_color_pc:{selectedColor:"",showColorPicker:!1},textbg_color_mobile:{selectedColor:"",showColorPicker:!1},textbg_opacity_pc:"",textbg_opacity_mobile:"",textbg_radius_pc:"",textbg_radius_mobile:"",right_bottom_link_title_pc:"",right_bottom_link_url_pc:"",right_bottom_link_title_mobile:"",right_bottom_link_url_mobile:"",modal_product:!1,snaps_edit:{id:"",product_name:"",product_option:"",product_info:"",product_url:"",is_video:0,photos:[]},product_search_word:"",product_data:[],product_search_results:[],product_search_loading:!1,product_render_limit:50,product_search_performed:!1,linked_products:[]});e.mall_id=X.getMallId();const t=X.getCookie("snap_payment");e.snap_payment_value=t.payment_value??0;var H=Ut({}),s=Ut({});const pt=Qt();e.snap_count=qt(()=>{let i=0;return e.snap_data.forEach(n=>{n.photos.forEach(a=>{a&&i++})}),i});let _t=()=>{let i='<div id="app-3cuniverse-snap" class="code_'+e.code+`"></div> 2`,n=`<script src="https://snapbox.ai/snap.js">< /script> 3`;n=n.replace(" /","/"),e.current_title="ë©ì¸ì¤ë "+(Number(e.order)+1),e.code_body=n,e.code_contents=i,e.code_modal=!0};const $=i=>{var d;const n=(d=e.snap_data[e.modal_index].photos[i])==null?void 0:d.is_new;(n===void 0||n===!1)&&e.snap_data[e.modal_index].photos[i].id&&e.deleted_photos.push(e.snap_data[e.modal_index].photos[i].id),e.snap_data[e.modal_index].photos.splice(i,1)},tt=i=>{var d;const n=(d=e.snap_data[i])==null?void 0:d.is_new;(n===void 0||n===!1)&&e.snap_data[i].id&&e.deleted_snaps.push(e.snap_data[i].id),e.snap_data.splice(i,1)};let ot=()=>{e.modal_snap_detail=!1,document.getElementsByTagName("body")[0].style.overflow="auto"},Q=i=>{console.log(i),e.checked_photos=[],e.data_snap_detail=i,e.modal_snap_detail=!0,document.getElementsByTagName("body")[0].style.overflow="hidden"};const et=(i,n)=>{if(n=="mobile"){const d=i.title_mobile.split(` 4`);d.length>2&&(i.title_mobile=d.slice(0,2).join(` 5`))}else if(n=="pc"){const d=i.title_pc.split(` 6`);d.length>2&&(i.title_pc=d.slice(0,2).join(` 7`))}},lt=()=>{nt()},it=()=>{e.checked_snaps.length==0&&alert("ë§ì´ì½í ì¸ ìì ì ë¡ëí ì¤ë ì ì íí´ì£¼ì¸ì."),console.log(e.checked_snaps),e.data.forEach(i=>{var d,a,f,_,y,u,p,m,h,V,F,ut,mt,bt,gt,ct,ft,vt,ht,yt,kt,wt;let n=[];if(e.checked_snaps.includes(i[0].id)&&(i.forEach(R=>
7{let j={id:z(),file:R.photo,photo:R.photo,type:"copy",is_video:R.is_video,is_new:!0};n.push(j)}),n.length>0)){let R={},j="";if(e.main_type==="link"&&(i[0].stock_type=="I"?j=(a=(d=i[0])==null?void 0:d.instagram_post)==null?void 0:a.permalink:j=(_=(f=i[0])==null?void 0:f.tags[0])==null?void 0:_.link),i[0].stock_type=="C"){let T=((u=(y=i[0].contents)==null?void 0:y.user_height_weight)==null?void 0:u.weight)??"",I=((m=(p=i[0].contents)==null?void 0:p.user_height_weight)==null?void 0:m.height)??"",E=T+" "+I,M=((h=i[0].creator_tags[0])==null?void 0:h.color)??"",Ot=((V=i[0].creator_tags[0])==null?void 0:V.size)??"",xt=(M+" "+Ot).trim(),Ct=(F=i[0].creator_tags[0])==null?void 0:F.name;R={id:z(),title_pc:Ct,title_mobile:Ct,option_pc:xt,option_mobile:xt,option_s_pc:E,option_s_mobile:E,check_pc_option:!0,contents:"",photo:n[0].photo,photos:n,link:j,is_new:!0}}else if(i[0].stock_type=="S"){let T=((ut=i[0].snap_tags[0])==null?void 0:ut.color)??"",I=((mt=i[0].snap_tags[0])==null?void 0:mt.size)??"",E=(T+" "+I).trim(),M=(bt=i[0].snap_tags[0])==null?void 0:bt.product_name;R={id:z(),title_pc:M,title_mobile:M,option_pc:E,option_mobile:E,option_s_pc:"",option_s_mobile:"",check_pc_option:!0,contents:"",photo:n[0].photo,photos:n,link:j,is_new:!0}}else if(i[0].stock_type=="R"){let T=((gt=i[0].user_content_tag[0])==null?void 0:gt.color)??"",I=((ct=i[0].user_content_tag[0])==null?void 0:ct.size)??"",E=T+" "+I,M=(ft=i[0].user_content_tag[0])==null?void 0:ft.product_name;R={id:z(),title_pc:M,title_mobile:M,option_pc:E,option_mobile:E,option_s_pc:"",option_s_mobile:"",check_pc_option:!0,contents:"",photo:n[0].photo,photos:n,link:j,is_new:!0,is_video:n[0].is_video}}else if(i[0].stock_type=="I"){let T=((ht=(vt=i[0].creator_info)==null?void 0:vt.weight)==null?void 0:ht.weight)??"",I=((kt=(yt=i[0].contents)==null?void 0:yt.creator_info)==null?void 0:kt.height)??"",E=T+" "+I,M=(wt=i[0].creator_info[0])==null?void 0:wt.name;R={id:z(),title_pc:M,title_mobile:M,option_pc:"",option_mobile:"",option_s_pc:E,option_s_mobile:E,check_pc_option:!0,contents:"",photo:n[0].photo,photos:n,is_new:!0,is_video:n[0].is_video,link:j}}e.snap_data.unshift(R)}}),e.checked_snaps=[],console.log(e.snap_data)},K=i=>{e.modal_index=i,e.modal_photos=e.snap_data[i].photos,e.modal_contents=e.snap_data[i].contents,e.modal_popup=!0,document.body.style.overflow="hidden",console.log(e.modal_photos)},W=()=>{console.log(e.main_type)},G=()=>{console.log(e.modal_photos),e.modal_photos.length==0&&e.deleted_snaps.push(e.snap_data[e.modal_index].id),e.snap_data[e.modal_index].photos.length==0?e.snap_data.splice(e.modal_index,1):e.snap_data[e.modal_index].contents=e.modal_contents,e.updateTrigger=!e.updateTrigger,e.modal_popup=!1,document.body.style.overflow="auto"},Y=(i,n)=>{const d=i.target.files[0];if(console.log(d),d.type!="image/png"&&d.type!="image/jpeg"&&d.type!="image/jpg")return alert("ì´ë¯¸ì§ íì¼ì ì íí´ì£¼ì¸ì."),!1;var a=1;d.size>6194304?a=.1:d.size>5194304?a=.2:d.size>4194304?a=.3:d.size>3145728?a=.4:d.size>2097152?a=.5:a=1,new rt(d,{quality:a,success(f){let _={file:f,style:"background-image: url("+URL.createObjectURL(f)+");background-position: center;"};n=="pc"?H.value=_:n=="mobile"&&(s.value=_)},error(f){console.log(f.message)}})},Z=i=>{const n=document.createElement("textarea");n.value=i,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),alert("ì½ëê° ë³µì¬ëììµëë¤.")},l=(i,n)=>{n=="text_color_pc"?e.text_color_pc.selectedColor=i:n=="text_color_mobile"?e.text_color_mobile.selectedColor=i:n=="textbg_color_pc"?e.textbg_color_pc.selectedColor=i:n=="textbg_color_mobile"&&(e.textbg_color_mobile.selectedColor=i)};let C=i=>{var n,d;e.product_render_limit=50,console.log(i),document.body.style.overflow="hidden",e.snaps_edit=i,e.product_search_word="",e.product_search_results=[],e.product_search_performed=!1,e.linked_products=[],(n=i.photos[0])!=null&&n.snap_products&&((d=i.photos[0])==null||d.snap_products.forEach(a=>{var _,y,u;const f={id:(_=a==null?void 0:a.info)==null?void 0:_.id,price:(y=a==null?void 0:a.info)==null?void 0:y.price,small_image:(u=a==null?void 0:a.info)==null?void 0:u.small_image,product_name:a==null?void 0:a.product_name,description:a==null?void 0:a.description,discount_rate:a==null?void 0:a.discount_rate};e.linked_products.push(f)})),e.modal_product=!0,S(),setTimeout(()=>{document.querySelector("#modal_products_link").scrollTo(0,0)},300)},w=()=>{document.body.style.overflow="auto",e.modal_product=!1,e.snaps_edit={id:"",photos:[],product_name:"",product_option:"",product_info:"",product_url:"",is_video:0}},B=i=>{const n=i.target;n.scrollTop+n.clientHeight<n.scrollHeight-200||e.product_render_limit>=e.product_search_results.length||(e.product_render_limit+=50)},S=()=>{e.product_render_limit=50,e.product_search_loading=!0,e.product_search_performed=!0,e.product_data.length>0?(e.product_search_results=e.product_data,e.product_search_loading=!1,e.product_search_performed=!1,e.product_search_word&&(e.product_search_results=e.product_data.filter(i=>i.product_name.toLowerCase().includes(e.product_search_word.toLowerCase())))):$t.productsList().then(i=>{console.log(i),i.data.code==="S"&&(e.product_data=i.data.products,e.product_search_results=e.product_data,e.product_search_word&&(e.product_search_results=e.product_data.filter(n=>n.product_name.toLowerCase().includes(e.product_search_word.toLowerCase())))),e.product_search_loading=!1,e.product_search_performed=!1}).catch(i=>{console.log(i),e.product_search_loading=!1,e.product_search_performed=!1})},v=()=>{var _,y,u;if(console.log(e.linked_products),console.log(e.snaps_edit),!confirm("ì ì¥íìê² ìµëê¹?"))return;const i=(_=e.snaps_edit.photos[0])==null?void 0:_.id,n=(y=e.snaps_edit.photos[0])==null?void 0:y.snap_photo_id,d=(u=e.snaps_edit.photos[0])==null?void 0:u.snap_id;let a=[];
7e.linked_products.forEach(p=>{let m={id:p.id,product_name:p.product_name,description:p.description,discount_rate:p.discount_rate};a.push(m)});const f={snap_file_id:i,snap_photo_id:n,snap_id:d,product_list:JSON.stringify(a)};at.updateLinkProducts(f).then(p=>{console.log(p),p.data.code==="S"?(alert("ì°ê²°ë ìíì´ ì ì¥ëììµëë¤."),nt()):alert(p.data.msg||"ìí ì°ê²° ì ì¥ì ì¤í¨íìµëë¤.")}).catch(p=>{console.log(p),Pt.alertErrorMessage(p,"ìí ì°ê²° ì ì¥ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")})},Ft=i=>{if(e.linked_products.some(d=>d.id===i.id)){alert("ì´ë¯¸ ì°ê²°ë ìíì
ëë¤.");return}e.linked_products.push({...i}),alert(`'${i.product_name}' ìíì´ ì°ê²° 목ë¡ì ì¶ê°ëììµëë¤.`)},Et=i=>{confirm("ì ë§ ì´ ìíì ì°ê²° 목ë¡ìì ìì íìê² ìµëê¹?")&&e.linked_products.splice(i,1)};const Bt=()=>{var _,y,u;let i=X.getCookie("snap_payment");const n=i==null?void 0:i.payment_value;if(n==null||n==-1||n==0&&((_=e.raw_data)==null?void 0:_.length)>0)return alert("ì´ì©ê°ë¥í ì¤ë
ì´ ììµëë¤. ê²°ì í ì´ì©í´ì£¼ì¸ì."),!1;if(!dt(e.snap_data)||!J(e.snap_data))return!1;let f=0;if(e.snap_data.forEach(p=>{p.is_new&&f++}),e.snap_id==null&&f==0){alert("ì¤ë
ì ì¶ê°í´ì£¼ì¸ì.");return}if(confirm("ì ì¥íìê² ìµëê¹?")){e.is_loading=!0;const p=new FormData;(y=e.snap_data)==null||y.forEach((m,h)=>{m.check_pc_option?m.check_pc_option=1:m.check_pc_option=0,m.order=h,m.photos.forEach((V,F)=>{V.type||(V.type="file"),V.order=F})}),e.snap_id&&p.append("snap_id",e.snap_id),e.main_title_pc_unuse=e.main_title_pc_unuse==1?1:0,e.main_title_mobile_unuse=e.main_title_mobile_unuse==1?1:0,p.append("main_title_pc_unuse",e.main_title_pc_unuse===1?1:0),p.append("main_title_mobile_unuse",e.main_title_mobile_unuse===1?1:0),p.append("order",e.order),p.append("main_auto_scroll",e.main_auto_scroll),p.append("main_height",e.main_height),p.append("main_height_mobile",e.main_height_mobile),p.append("main_ratio_pc",e.main_ratio_pc),p.append("main_ratio_mobile",e.main_ratio_mobile),e.main_type&&p.append("main_type",e.main_type),e.main_width_type&&p.append("main_width_type",e.main_width_type),e.main_width&&p.append("main_width",e.main_width),e.main_align&&p.append("main_align",e.main_align),e.main_radius!=null&&p.append("main_radius",e.main_radius),e.main_radius_mobile!=null&&p.append("main_radius_mobile",e.main_radius_mobile),e.main_left_mobile!=null&&p.append("main_left_mobile",e.main_left_mobile),e.main_title_width_pc&&p.append("main_title_width_pc",e.main_title_width_pc),e.main_title_width_mobile&&p.append("main_title_width_mobile",e.main_title_width_mobile),H.value.file&&p.append("main_title_pc",H.value.file),s.value.file&&p.append("main_title_mobile",s.value.file),e.snap_data&&p.append("photos",JSON.stringify(e.snap_data)),p.append("deleted_photos",JSON.stringify(e.deleted_photos)),p.append("deleted_snaps",JSON.stringify(e.deleted_snaps)),p.append("text_color_pc",e.text_color_pc.selectedColor),p.append("text_color_mobile",e.text_color_mobile.selectedColor),p.append("textbg_color_pc",e.textbg_color_pc.selectedColor),p.append("textbg_color_mobile",e.textbg_color_mobile.selectedColor),p.append("textbg_opacity_pc",e.textbg_opacity_pc),p.append("textbg_opacity_mobile",e.textbg_opacity_mobile),p.append("textbg_radius_pc",e.textbg_radius_pc),p.append("textbg_radius_mobile",e.textbg_radius_mobile),p.append("right_bottom_link_title_pc",e.right_bottom_link_title_pc),p.append("right_bottom_link_url_pc",e.right_bottom_link_url_pc),p.append("right_bottom_link_title_mobile",e.right_bottom_link_title_mobile),p.append("right_bottom_link_url_mobile",e.right_bottom_link_url_mobile),(u=e.snap_data)==null||u.forEach((m,h)=>{m.photos.forEach((V,F)=>{console.log("--------------"),V.file?p.append("file_photos["+h+"]["+F+"]",V.file):p.append("file_photos["+h+"]["+F+"]","null")})}),at.uploadMainSnap(p).then(m=>{m.data.code=="S"?(alert("ì ì¥ëììµëë¤."),location.href="/snap-main?tab="+e.order):(e.is_loading=!1,alert(m.data.msg||"ì ì¥ì ì¤í¨íìµëë¤."))}).catch(m=>{console.log(m),e.is_loading=!1,Pt.alertErrorMessage(m,"ì ì¥ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")})}},Mt=i=>{const n=i.target.files;for(let d=0;d<n.length;d++){let a=n[d];if(a)if(a.type==="image/png"||a.type==="image/jpeg"||a.type==="image/jpg")zt(a);else if(a.type.includes("video/")){if(a.type!=="video/mp4")return alert("MP4 íì¼ì
7 ì íí´ì£¼ì¸ì."),!1;if(a.size*95367e-11>20)return alert("20MB ì´íì¸ íì¼ì ì íí´ì£¼ì¸ì."),!1;Rt(a)}else return alert("ì´ë¯¸ì§ ëë ë¹ëì¤ íì¼ì ì íí´ì£¼ì¸ì."),!1}};async function Lt(i){function n(d){return new Promise((a,f)=>{let u=.5;const p=m=>{new rt(d,{quality:m,maxWidth:1080,maxHeight:1920,success(h){h.size>419430.4&&m>.1?(u-=.05,p(u)):a(h)},error(h){f(h)}})};p(u)})}try{const d=await n(i);let a={id:z(),is_video:0,file:d,photo:URL.createObjectURL(d),is_new:!0};e.snap_data[e.modal_index].photos.push(a),J(e.snap_data)}catch(d){console.error("Compression failed:",d)}}async function zt(i){function n(d){return new Promise((a,f)=>{let u=.5;const p=m=>{new rt(d,{quality:m,maxWidth:1080,maxHeight:1920,success(h){h.size>419430.4&&m>.1?(u-=.05,p(u)):a(h)},error(h){f(h)}})};p(u)})}try{const d=await n(i);let a=z(),f=[];f.push({id:a,is_video:0,file:d,photo:URL.createObjectURL(d),is_new:!0});let _={id:a,snap_id:e.snap_id,order:e.new_order++,feed_id:0,check_pc_option:!1,file:d,title_pc:"",title_mobile:"",option_pc:"",option_mobile:"",option_s_pc:"",option_s_mobile:"",contents:"",photo:URL.createObjectURL(d),photos:f,is_new:!0};e.snap_data.push(_),J(e.snap_data)}catch(d){console.error("Compression failed:",d)}}const Rt=async i=>{let n=z(),d=[{id:n,is_video:1,file:i,photo:URL.createObjectURL(i),is_new:!0}],a={id:n,snap_id:e.snap_id,order:e.new_order++,feed_id:0,check_pc_option:!1,file:i,title_pc:"",title_mobile:"",option_pc:"",option_mobile:"",option_s_pc:"",option_s_mobile:"",contents:"",photo:URL.createObjectURL(i),photos:d,is_new:!0};e.snap_data.push(a),dt(e.snap_data),J(e.snap_data)},jt=i=>{const n=i.target.files;for(var d=0;d<n.length;d++){let a=n[d];if(a)if(a.type==="image/png"||a.type==="image/jpeg"||a.type==="image/jpg")Lt(a);else if(a.type.includes("video/")){if(a.type!=="video/mp4")return alert("MP4 íì¼ì ì íí´ì£¼ì¸ì."),!1;if(a.size*95367e-11>20)return alert("20MB ì´íì¸ íì¼ì ì íí´ì£¼ì¸ì."),!1;Nt(a,e.snap_data[e.modal_index].photos)}else return alert("ì´ë¯¸ì§ íì¼ì ì íí´ì£¼ì¸ì."),!1}},Nt=async(i,n)=>{let a={id:z(),is_video:1,file:i,photo:URL.createObjectURL(i),is_new:!0};n.push(a),dt(e.snap_data),J(e.snap_data)},Tt=async i=>{if(!i||i.is_video!==1){alert("ë¹ëì¤ íì¼ì ëí´ìë§ ì¸ë¤ì¼ì ì¬ìì±í ì ììµëë¤.");return}if(!i.snap_photo_id){alert("ìì§ ì ì¥ëì§ ìì íì¼ì ì¸ë¤ì¼ì ì¬ìì±í ì ììµëë¤. 먼ì ì¤ë ì ì ì¥í´ì£¼ì¸ì.");return}if(confirm("ìë¡ì´ ì¸ë¤ì¼ì ìì±íìê² ìµëê¹? (ëìì ë¤ì´ë¡ëë¡ ì¸í´ ìê°ì´ ì¤ë 걸릴 ì ììµëë¤.)")){e.is_loading=!0;try{let n=i.photo;if(n=n.replace("https://www.snapbox.ai","https://snapbox.ai"),!n||typeof n!="string"||!n.startsWith("http"))throw console.error("Invalid video URL for thumbnail regeneration:",n),new Error("ì í¨íì§ ìì ëìì URLì ëë¤. ê´ë¦¬ììê² ë¬¸ìí´ì£¼ì¸ì.");const d=await fetch(n,{mode:"cors"});if(!d.ok){const p=await d.text();throw new Error(`Failed to fetch video: ${d.status} ${d.statusText} - ${p}`)}const a=await d.blob(),f=new File([a],`video_${i.id}.mp4`,{type:a.type});let _=null,y=null;const u=document.createElement("video");await new Promise((p,m)=>{u.onloadedmetadata=()=>{u.currentTime=1},u.onseeked=()=>{const h=document.createElement("canvas"),V=h.getContext("2d");h.width=u.videoWidth,h.height=u.videoHeight,V.drawImage(u,0,0,h.width,h.height),h.toBlob(F=>{F?(y=new File([F],`thumbnail_${i.id}.jpg`,{type:"image/jpeg",lastModified:Date.now()}),_=URL.createObjectURL(F),p()):m("Failed to create thumbnail blob.")},"image/jpeg",.8),URL.revokeObjectURL(u.src)},u.onerror=h=>{console.error("Video element error during thumbnail generation:",h),m("Failed to load video or seek for thumbnail.")},u.src=URL.createObjectURL(f),u.load()}),i.thumbnail=_,i.thumbnail_file=y,i.is_new=!1,alert('ì¸ë¤ì¼ì´ ë¸ë¼ì°ì ìì ìì±ëììµëë¤. "ì ì¥" ë²í¼ì ëë¬ ë³ê²½ ì¬íì ìë²ì ë°ìí´ì£¼ì¸ì.')}catch(n){console.error("Error generating thumbnail in frontend:",n),alert("ì¸ë¤ì¼ ìì± ì¤ ì¤ë¥ê° ë°ìíìµëë¤: "+n.message)}finally{e.is_loading=!1}}};let z=()=>{let i=new Date,n=i.getFullYear()*1e10,d=(i.getMonth()+1)*1e8,a=i.getDate()*1e6,f=i.getHours()*1e4,_=i.getMinutes()*100,y=i.getSeconds(),u=i.getMilliseconds();return n+d+a+f+_+y+u},It=()=>{let i=(e.current-1)*e.page_size;e.pagedata=e.data.slice(i,i+e.page_size),e.checked_snaps=[],console.log(e.pagedata)},nt=()=>{at.mainSnap(e.order).then(i=>{var d,a,f,_,y,u,p;console.log(i.data),e.snap_data=((a=(d=i.data)==null?void 0:d.snap)==null?void 0:a.photo)??[],e.snap_id=(_=(f=i.data)==null?void 0:f.snap)==null?void 0:_.id,e.code=(u=(y=i.data)==null?void 0:y.snap)==null?void 0:u.code,e.snap_data.forEach(m=>{m.check_pc_option==1?m.check_pc_option=!0:m.check_pc_option=!1});let n=(p=i.data)==null?void 0:p.snap_main;if(n){e.main_auto_scroll=n.main_auto_scroll,e.main_type=n.main_type?n.main_type:"popup",e.main_width=n.main_width?n.main_width:"1000",e.main_width_type=n.main_width_type?n.main_width_type:"px",e.main_height=n.main_height??"",e.main_height_mobile=n.main_height_mobile??"",e.main_align=n.main_align?n.main_align:"center",e.main_radius=n.main_radius??5,e.main_radius_mobile=n.main_radius_mobile??0,e.main_left_mobile=n.main_left_mobile??"",n.main_title_pc_unuse==1?e.main_title_pc_unuse=1:e.main_title_pc_unuse=0,n.main_title_mobile_unuse==1?e.main_title_mobile_unuse=1:e.main_title_mobile_unuse=0,e.main_title_width_pc=n.main_title_width_pc??"",e.main_title_width_mobile=n.main_title_width_mobile??"";let m={style:"background-image: url("+n.main_title_pc+");background-position: center;"};H.value=m;let h={style:"background-image: url("+n.main_title_mobile+");background-position: center;"};s.value=h,e.text_color_pc.selectedColor=n.text_color_pc??"#FFFFFF",e.text_color_mobile.selectedColor=n.text_color_mobile??"#FFFFFF",e.textbg_color_pc.selectedColor=n.textbg_color_pc??"transparent",e.textbg_color_mobile.selectedColor=n.textbg_color_mobile??"transparent",e.textbg_opacity_pc=n.textbg_opacity_pc??100,e.textbg_opacity_mobile=n.textbg_opacity_mobile??100,e.textbg_radius_pc=n.textbg_radius_pc??0,e.textbg_radius_mobile=n.textbg_radius_mobile??0,e.right_bottom_link_title_pc=n.right_bottom_link_title_pc??"",e.right_bottom_link_url_pc=n.right_bottom_link_url_pc??"",e.right_bottom_link_title_mobile=n.right_bottom_link_title_mobile??"",e.right_bottom_link_url_mobile=n.right_bottom_link_url_mobile??"",e.main_ratio_pc=n.main_ratio_pc??"10/16",e.main_ratio_mobile=n.main_ratio_mobile??"10/16"}else e.main_type="popup",e.main_width="1000",e.main_width_type="px",e.main_align="center",e.main_title_pc_unuse=1,e.main_title_mobile_unuse=1,e.main_auto_scroll=0,e.text_color_pc.selectedColor="#FFFFFF",e.text_color_mobile.selectedColor="#FFFFFF",e.textbg_color_pc.selectedColor="transparent",e.textbg_color_mobile.selectedColor="transparent",e.textbg_opacity_pc=100,e.textbg_opacity_mobile=100,e.textbg_radius_pc=0,e.textbg_radius_mobile=0,e.right_bottom_link_title_pc="",e.right_bottom_link_url_pc="",e.right_bottom_link_title_mobile="",e.right_bottom_link_url_mobile="",e.main_ratio_pc="10/16",e.main_ratio_mobile="10/16"}).catch(i=>{alert(i.response.data)}),to.readSnapStockStack().then(i=>{var d,a;const n=(d=X.getNickname())==null?void 0:d.toLowerCase();e.data=i.data,e.data.forEach(f=>{f.forEach(_=>{var u;const y=_==null?void 0:_.stock_type;y==="C"?_.tags=_.creator_tags:y==="S"?_.tags=_.snap_tags:y==="R"&&(_.tags=_.user_content_tag),_.tags=(u=_.tags)==null?void 0:u.filter(p=>p.brand.toLowerCase()===n)})}),e.total=e.data.length,e.pagedata=(a=e.data)==null?void 0:a.slice(0,e.page_size)}).catch(i=>{console.log(i)})};return Ht(()=>{console.log("mounted!");let n=Wt().query;n.tab&&(e.order=n.tab),nt()}),{router:pt,main_title_pc:H,main_title_mobile:s,...Kt(e),removePhoto:tt,removeModalPhoto:$,onPhotoChange:Mt,onPhotoPopupChange:jt,save:Bt,onChange:It,showPopup:K,showDetail:Q,closeModal:G,closeSnapModal:ot,upload:it,mainTitleChange:Y,changeMainType:W,showCode:_t,limitLines:et,fetch,changeMainSnap:lt,copyCode:Z,selectColor:l,openProductModal:C,onProductListScroll:B,closeProductModal:w,searchProducts:S,addToLinkedProducts:Ft,removeLinkedProduct:Et,saveLinkedProducts:v,regenerateThumbnail:Tt}}},no={class:"dashboard_body flex flex-col"},so={class:"contents_box w-full flex justify-start grow"},ao={class:"contents_area grow p-8"},ro={class:"con grow"},po={class:"paylist"},_o={class:"dash_form box p-8 bg-white"},uo={class:"flex items-center gap-2"},mo={class:"flex items-center gap-2"},bo={class:"flex items-center gap-2"},go={class:"flex items-center gap-2"},co={class:"flex items-center gap-2"},fo={class:"flex items-center gap-2"},vo={class:"flex gap-5"},ho={class:"flex flex-col"},yo={class:"flex items-center gap-2 h-[30px]"},ko={class:"flex flex-col"},wo={class:"flex items-center gap-2 h-[30px]"},xo={class:"flex items-center gap-2"},Co={class:"flex gap-5"},Uo={class:"flex items-center gap-3"},Po={class:"flex items-center gap-2 cursor-pointer"},So={class:"relative w-8 h-8"},Vo={class:"flex gap-5"},Fo={class:"flex items-center gap-3"},Eo={class:"flex items-center gap-2 cursor-pointer"},Bo={class:"relative w-8 h-8"},Mo={class:"flex items-center gap-2"},Lo={class:"flex items-center gap-2"},zo={class:"flex items-center gap-2"},Ro={class:"flex items-center gap-2"},jo={class:"flex items-center gap-2"},No={class:"flex items-center gap-2"},To={class:"flex items-center gap-2"},Io={class:"flex gap-5"},Oo={class:"flex flex-col"},Ao={class:"flex items-center gap-2 h-[30px]"},Do={class:"flex flex-col"},qo={class:"flex items-center gap-2 h-[30px]"},Ho={class:"flex items-center gap-2"},Ko={class:"flex gap-5"},Jo={class:"flex items-center gap-3"},Qo={class:"flex items-center gap-2 cursor-pointer"},Wo={class:"relative w-8 h-8"},Go={class:"flex gap-5"},Yo={class:"flex items-center gap-3"},Zo={class:"flex items-center gap-2 cursor-pointer"},Xo={class:"relative w-8 h-8"},$o={class:"flex items-center gap-2"},te={class:"flex items-center gap-2"},oe={class:"flex items-center gap-2"},ee={class:"snap_preview"},le={class:"flex items-center justify-between"},ie={class:"quantity"},ne={class:"snaptype"},se={class:"snap_wrap"},ae={"aria-disabled":"false"},de=["src"],re={key:0,loop:"",controls:"",class:"main_videos",style:{width:"100%",height:"100%","object-fit":"cover","background-color":"black","border-radius":"8px"}},pe={class:"btn_popup"},_e=["onClick"],ue=["onClick"],me={style:{position:"absolute",top:"0",left:"0",color:"white","background-color":`rgba( 8 0, 9 0, 10 0, 11 0.5 12 )`,width:"50px","text-align":"center","border-radius":"5px",padding:"5px"}},be=["onClick"],ge={class:"snap_info flex flex-col"},ce=["onUpdate:modelValue","onInput"],fe=["onUpdate:modelValue"],ve=["onUpdate:modelValue"],he=["onUpdate:modelValue"],ye={class:"flex items-center gap-1"},ke=["id","onUpdate:modelValue"],we=["for"],xe=["onUpdate:modelValue","onInput"],Ce=["onUpdate:modelValue"],Ue=["onUpdate:modelValue"],Pe={class:"upload-container",style:{display:"flex","flex-direction":"column","align-items":"center"}},Se={class:"box mt-10"},Ve={class:"flex items-end justify-between"},Fe={key:0,class:"pt-[80px] pb-[50px] text-center text-gray-400 flex flex-col gap-5"},Ee={class:"listview grid grid-cols-7 gap-2 mt-10"},Be=["id","value"],Me=["src","onClick"],Le=["onClick"],ze={class:"pagination mb-5"},Re={class:"mt-10 mb-5 grid grid-cols-none text-center max-w-[250px] mx-auto"},je={class:"modal_layer",id:"modal_layer"},Ne={class:"modal_box"},Te={class:"modal_box_header"},Ie={class:"modal_box_contents"},Oe={style:{"margin-bottom":"20px"}},Ae={class:"w-full p-2 h-[100px] border border-solid border-gray-300 mt-3"},De={style:{display:"flex","justify-content":"center"}},qe={class:"w-full p-2 h-[100px] border border-solid border-gray-300 mt-3"},He={style:{display:"flex","justify-content":"center"}},Ke={style:{"margin-left":"10px"}},Je={class:"modal_layer",id:"snap_popup"},Qe={class:"modal_box !max-w-[800px]"},We={class:"modal_box_contents"},Ge={class:"listview grid-cols-none"}
12,Ye={id:"sortable02",class:"scroll_view pb-2 ui-sortable"},Ze=["onClick"],Xe=["src"],$e={key:1,loop:"",controls:"",class:"modal_videos",style:{width:"100%",height:"100%","object-fit":"cover","background-color":"black","border-radius":"8px","z-index":"1"}},tl={class:"my-3"},ol={class:"grid grid-cols gap-3"},el={class:"modal_layer",id:"modal_products_link"},ll={class:"modal_box max-w-[700px] flex flex-col",style:{"max-height":"90vh",height:"auto"}},il={class:"modal_box_header sticky top-0 z-10 bg-white"},nl={class:"relative mb-4"},sl={key:0,controls:"",class:"h-48 object-cover w-full h-[400px] mb-4"},al=["src"],dl={key:1},rl=["src"],pl={class:"mt-4 mb-6"},_l={key:0,class:"text-center py-4 text-gray-400 border border-dashed border-gray-300 rounded-md"},ul={key:1,class:"border border-solid border-gray-200 rounded-md"},ml=["src"],bl={class:"flex-1"},gl={class:"text-md mt-1"},cl=["onUpdate:modelValue"],fl={class:"text-md mt-1"},vl=["onUpdate:modelValue"],hl={class:"text-md mt-1"},yl=["onUpdate:modelValue"],kl=["onUpdate:modelValue"],wl=["onClick"],xl={class:"border-t border-solid border-gray-300 pt-4"},Cl={class:"border-b border-solid border-gray-300 pb-2 flex items-center"},Ul={class:"mt-4"},Pl={key:0,class:"text-center py-4"},Sl={key:1,class:"text-center py-4 text-gray-400"},Vl={key:2},Fl=["onClick"],El={class:"flex items-center"},Bl=["src"],Ml={class:"flex-1"},Ll={class:"font-medium"},zl={class:"text-gray-500 text-sm mt-1"},Rl={class:"text-center flex justify-center space-x-3 p-4 border-t border-solid border-gray-200 bg-white sticky bottom-0 z-10"},jl={class:"modal_layer",id:"modal_layer",style:{width:"100%"}},Nl={class:"modal_box !max-w-[800px]"},Tl={class:"modal_box_header"},Il={class:"modal_box_contents"},Ol={class:"w-full flex flex-col gap-5 mb-5"},Al={class:"listview grid grid-cols-6 gap-2"},Dl=["src"],ql={class:"tablearea"},Hl=["href"],Kl={ref:"videoThumbnailer",style:{display:"none"}},Jl={ref:"canvasThumbnailer",style:{display:"none"}};function Ql(e,t,H,s,pt,_t){var W,G,Y,Z;const $=q("SNAP_HEADER"),tt=q("SNAP_MENU"),ot=q("SNAP_UPGRADE_STARTER"),Q=q("draggable"),et=q("a-pagination"),lt=q("SNAP_FOOTER"),it=q("SNAP_SPINNER"),K=Gt("hls");return c(),g(L,null,[o("div",no,[N($),o("div",so,[N(tt),o("div",ao,[o("div",ro,[o("div",null,[o("div",po,[r(o("input",{type:"radio",name:"checkSnap",id:"paylist00",checked:"","onUpdate:modelValue":t[0]||(t[0]=l=>e.order=l),value:"0",onChange:t[1]||(t[1]=(...l)=>s.changeMainSnap&&s.changeMainSnap(...l))},null,544),[[k,e.order]]),t[105]||(t[105]=o("label",{for:"paylist00",style:{"font-size":"24px"}},"ë©ì¸ì¤ë
1",-1)),r(o("input",{type:"radio",name:"checkSnap",id:"paylist01","onUpdate:modelValue":t[2]||(t[2]=l=>e.order=l),value:"1",onChange:t[3]||(t[3]=(...l)=>s.changeMainSnap&&s.changeMainSnap(...l))},null,544),[[k,e.order]]),t[106]||(t[106]=o("label",{for:"paylist01",style:{"font-size":"24px"}},"ë©ì¸ì¤ë
2",-1)),r(o("input",{type:"radio",name:"checkSnap",id:"paylist02","onUpdate:modelValue":t[4]||(t[4]=l=>e.order=l),value:"2",onChange:t[5]||(t[5]=(...l)=>s.changeMainSnap&&s.changeMainSnap(...l))},null,544),[[k,e.order]]),t[107]||(t[107]=o("label",{for:"paylist02",style:{"font-size":"24px"}},"ë©ì¸ì¤ë
3",-1))]),t[108]||(t[108]=o("h2",null,[x(" ì¬ì´í¸ì ë§ê² 커ì¤í°ë§ì´ì§ì´ ê°ë¥í ì¤ë
ë°ì¤ ì
ëë¤. ë§í¬í/íì
íì ì ííì¬ ì¬ì©í´ë³´ì¸ì."),o("br"),x(" ë§í¬í : ì¤ë
í°ì¹ ì, ì¤ì íì ë§í¬ë¡ ì´ëë©ëë¤."),o("br"),x(" íì
í : ìì¸ì¤ë
ê³¼ ëì¼í ííë¡, ì¤ë
í°ì¹ ì, ì¬ë¬ì¥ì ì¤ë
ì ë³´ì¬ì¤ëë¤. ")],-1))]),t[188]||(t[188]=o("br",null,null,-1)),t[189]||(t[189]=o("br",null,null,-1)),N(ot),r(o("div",null,[o("div",_o,[t[174]||(t[174]=o("div",{class:"font-bold text-lg mb-3"}," PC íë©´ ëìì¸ ì¤ì ",-1)),o("table",null,[o("tbody",null,[o("tr",null,[t[111]||(t[111]=o("th",{style:{width:"240px"}}," ê°ë¡ì¬ì´ì¦ (PC) ",-1)),o("td",null,[o("div",uo,[r(o("input",{type:"text","onUpdate:modelValue":t[6]||(t[6]=l=>e.main_width=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_width,void 0,{lazy:!0}]]),r(o("input",{type:"radio",id:"mainsnap_width_px",name:"mainsnap_width",value:"px",style:{"margin-left":"10px"},"onUpdate:modelValue":t[7]||(t[7]=l=>e.main_width_type=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[k,e.main_width_type]]),t[109]||(t[109]=o("label",{for:"mainsnap_width_px"},"px",-1)),r(o("input",{type:"radio",id:"mainsnap_width_per",name:"mainsnap_width",value:"%","onUpdate:modelValue":t[8]||(t[8]=l
12=>e.main_width_type=l)},null,512),[[k,e.main_width_type]]),t[110]||(t[110]=o("label",{for:"mainsnap_width_per"},"%",-1))])])]),o("tr",null,[t[114]||(t[114]=o("th",null,"ì¢ì°ìëì¤í¬ë¡¤ (PC)",-1)),o("td",null,[o("div",mo,[r(o("input",{type:"radio",id:"mainsnap_scroll_on",name:"mainsnap_scroll",value:"1","onUpdate:modelValue":t[9]||(t[9]=l=>e.main_auto_scroll=l)},null,512),[[k,e.main_auto_scroll]]),t[112]||(t[112]=o("label",{for:"mainsnap_scroll_on"},"ì¤ì í¨",-1)),r(o("input",{type:"radio",id:"mainsnap_scroll_off",name:"mainsnap_scroll",value:"0","onUpdate:modelValue":t[10]||(t[10]=l=>e.main_auto_scroll=l)},null,512),[[k,e.main_auto_scroll]]),t[113]||(t[113]=o("label",{for:"mainsnap_scroll_off"},"ì¤ì ìí¨",-1))])])]),o("tr",null,[t[116]||(t[116]=o("th",null,"ì¸ë¡ì¬ì´ì¦ (PC)",-1)),o("td",null,[o("div",bo,[r(o("input",{type:"text","onUpdate:modelValue":t[11]||(t[11]=l=>e.main_height=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_height,void 0,{lazy:!0}]]),t[115]||(t[115]=x("px "))])])]),o("tr",null,[t[121]||(t[121]=o("th",null,"ì¤ë
ë¹ì¨ (PC)",-1)),o("td",null,[o("div",go,[r(o("input",{type:"radio",id:"main_ratio_pc_10x16",name:"main_ratio_pc",value:"10/16","onUpdate:modelValue":t[12]||(t[12]=l=>e.main_ratio_pc=l)},null,512),[[k,e.main_ratio_pc]]),t[117]||(t[117]=o("label",{for:"main_ratio_pc_10x16"},"10:16",-1)),r(o("input",{type:"radio",id:"main_ratio_pc_9x16",name:"main_ratio_pc",value:"9/16","onUpdate:modelValue":t[13]||(t[13]=l=>e.main_ratio_pc=l)},null,512),[[k,e.main_ratio_pc]]),t[118]||(t[118]=o("label",{for:"main_ratio_pc_9x16"},"9:16",-1)),r(o("input",{type:"radio",id:"main_ratio_pc_1x1",name:"main_ratio_pc",value:"1/1","onUpdate:modelValue":t[14]||(t[14]=l=>e.main_ratio_pc=l)},null,512),[[k,e.main_ratio_pc]]),t[119]||(t[119]=o("label",{for:"main_ratio_pc_1x1"},"1:1",-1)),r(o("input",{type:"radio",id:"main_ratio_pc_4x5",name:"main_ratio_pc",value:"4/5","onUpdate:modelValue":t[15]||(t[15]=l=>e.main_ratio_pc=l)},null,512),[[k,e.main_ratio_pc]]),t[120]||(t[120]=o("label",{for:"main_ratio_pc_4x5"},"4:5",-1))])])]),o("tr",null,[t[124]||(t[124]=o("th",null,"ìì ¯ ì ë ¬ (PC)",-1)),o("td",null,[o("div",co,[r(o("input",{type:"radio",id:"mainsnap_align_center",name:"mainsnap_align",value:"center","onUpdate:modelValue":t[16]||(t[16]=l=>e.main_align=l)},null,512),[[k,e.main_align]]),t[122]||(t[122]=o("label",{for:"mainsnap_align_center"},"ê°ì´ë°ì ë ¬",-1)),r(o("input",{type:"radio",id:"mainsnap_align_left",name:"mainsnap_align",value:"left","onUpdate:modelValue":t[17]||(t[17]=l=>e.main_align=l)},null,512),[[k,e.main_align]]),t[123]||(t[123]=o("label",{for:"mainsnap_align_left"},"ì¢ì¸¡ì ë ¬",-1))])])]),o("tr",null,[t[126]||(t[126]=o("th",null,"ë¼ì´ë (PC)",-1)),o("td",null,[o("div",fo,[r(o("input",{type:"text","onUpdate:modelValue":t[18]||(t[18]=l=>e.main_radius=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_radius,void 0,{lazy:!0}]]),t[125]||(t[125]=x("px "))])])]),o("tr",null,[t[131]||(t[131]=o("th",null,"ë©ì¸ íì´í (PC)",-1)),o("td",null,[o("div",vo,[o("div",ho,[o("div",yo,[r(o("input",{type:"radio",id:"mainsnap_title_pcoff","onUpdate:modelValue":t[19]||(t[19]=l=>e.main_title_pc_unuse=l),value:"1"},null,512),[[k,e.main_title_pc_unuse]]),t[127]||(t[127]=o("label",{for:"mainsnap_title_pcoff"},"기본 ì´ë¯¸ì§",-1))]),t[128]||(t[128]=o("div",{class:"thumb"},[o("img",{src:Vt})],-1))]),o("div",ko,[o("div",wo,[r(o("input",{type:"radio",id:"mainsnap_title_pcoff02",name:"mainsnap_title_pcoff","onUpdate:modelValue":t[20]||(t[20]=l=>e.main_title_pc_unuse=l),value:"0"},null,512),[[k,e.main_title_pc_unuse]]),t[129]||(t[129]=o("label",{for:"mainsnap_title_pcoff02"},"íì¼ì í",-1)),o("input",{type:"file",class:"mainsnap_title",id:"mainsnap_title_pc",onChange:t[21]||(t[21]=l=>s.mainTitleChange(l,"pc"))},null,32),t[130]||(t[130]=o("label",{for:"mainsnap_title_pc"},"íì¼ì í",-1))]),o("div",{class:"thumb",style:O([this.main_title_pc.style,{width:"166px"}])},null,4)])])])]),o("tr",null,[t[133]||(t[133]=o("th",null,"ë©ì¸ íì´í ê°ë¡ì¬ì´ì¦ (PC)",-1)),o("td",null,[o("div",xo,[r(o("input",{type:"text","onUpdate:modelValue":t[22]||(t[22]=l=>e.main_title_width_pc=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_title_width_pc,void 0,{lazy:!0}]]),t[132]||(t[132]=x("px "))])])]),o("tr",null,[t[136]||(t[136]=o("th",null,"í
ì¤í¸ 컬ë¬(PC)",-1)),o("td",null,[o("div",Co,[o("div",Uo,[o("div",{class:"w-8 h-8 rounded-full bg-[#FF4747] cursor-pointer",onClick:t[23]||(t[23]=l=>s.selectColor("#FF4747","text_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#3B82F6] cursor-pointer",onClick:t[24]||(t[24]=l=>s.selectColor("#3B82F6","text_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#10B981] cursor-pointer",onClick:t[25]||(t[25]=l=>s.selectColor("#10B981","text_color_pc"))}
12),o("div",{class:"w-8 h-8 rounded-full bg-[#F59E0B] cursor-pointer",onClick:t[26]||(t[26]=l=>s.selectColor("#F59E0B","text_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#8B5CF6] cursor-pointer",onClick:t[27]||(t[27]=l=>s.selectColor("#8B5CF6","text_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#EC4899] cursor-pointer",onClick:t[28]||(t[28]=l=>s.selectColor("#EC4899","text_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-black cursor-pointer",onClick:t[29]||(t[29]=l=>s.selectColor("#000000","text_color_pc"))}),t[135]||(t[135]=o("div",{class:"text-gray-400 mx-2"}," | ",-1)),o("label",Po,[o("div",So,[r(o("input",{type:"color","onUpdate:modelValue":t[30]||(t[30]=l=>e.text_color_pc.selectedColor=l),onInput:t[31]||(t[31]=(...l)=>e.updateColor&&e.updateColor(...l)),class:"absolute w-8 h-8 opacity-0 cursor-pointer"},null,544),[[b,e.text_color_pc.selectedColor]]),o("div",{class:"w-8 h-8 rounded-full",style:O({backgroundColor:e.text_color_pc.selectedColor})},null,4)]),t[134]||(t[134]=o("span",{class:"text-sm text-gray-600"},"ì¬ì©ì ì§ì ",-1))])])])])]),o("tr",null,[t[139]||(t[139]=o("th",null,"í
ì¤í¸ ë°°ê²½ 컬ë¬(PC)",-1)),o("td",null,[o("div",Vo,[o("div",Fo,[o("div",{class:"w-8 h-8 rounded-full bg-[#FF4747] cursor-pointer",onClick:t[32]||(t[32]=l=>s.selectColor("#FF4747","textbg_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#3B82F6] cursor-pointer",onClick:t[33]||(t[33]=l=>s.selectColor("#3B82F6","textbg_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#10B981] cursor-pointer",onClick:t[34]||(t[34]=l=>s.selectColor("#10B981","textbg_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#F59E0B] cursor-pointer",onClick:t[35]||(t[35]=l=>s.selectColor("#F59E0B","textbg_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#8B5CF6] cursor-pointer",onClick:t[36]||(t[36]=l=>s.selectColor("#8B5CF6","textbg_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#EC4899] cursor-pointer",onClick:t[37]||(t[37]=l=>s.selectColor("#EC4899","textbg_color_pc"))}),o("div",{class:"w-8 h-8 rounded-full bg-black cursor-pointer",onClick:t[38]||(t[38]=l=>s.selectColor("#000000","textbg_color_pc"))}),t[138]||(t[138]=o("div",{class:"text-gray-400 mx-2"}," | ",-1)),o("label",Eo,[o("div",Bo,[r(o("input",{type:"color","onUpdate:modelValue":t[39]||(t[39]=l=>e.textbg_color_pc.selectedColor=l),onInput:t[40]||(t[40]=(...l)=>e.updateColor&&e.updateColor(...l)),class:"absolute w-8 h-8 opacity-0 cursor-pointer"},null,544),[[b,e.textbg_color_pc.selectedColor]]),o("div",{class:"w-8 h-8 rounded-full",style:O({backgroundColor:e.textbg_color_pc.selectedColor})},null,4)]),t[137]||(t[137]=o("span",{class:"text-sm text-gray-600"},"ì¬ì©ì ì§ì ",-1))]),o("button",{class:"text-sm text-gray-600",onClick:t[41]||(t[41]=l=>e.textbg_color_pc.selectedColor="transparent")}," í¬ëª
íê² ")])])])]),o("tr",null,[t[141]||(t[141]=o("th",null,"í
ì¤í¸ ë°°ê²½ í¬ëª
ë (PC)",-1)),o("td",null,[o("div",Mo,[r(o("input",{type:"text","onUpdate:modelValue":t[42]||(t[42]=l=>e.textbg_opacity_pc=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.textbg_opacity_pc,void 0,{lazy:!0}]]),t[140]||(t[140]=x("% "))])])]),o("tr",null,[t[143]||(t[143]=o("th",null,"í
ì¤í¸ ë°°ê²½ ë¼ì´ë (PC)",-1)),o("td",null,[o("div",Lo,[r(o("input",{type:"text","onUpdate:modelValue":t[43]||(t[43]=l=>e.textbg_radius_pc=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.textbg_radius_pc,void 0,{lazy:!0}]]),t[142]||(t[142]=x("px "))])])]),o("tr",null,[t[144]||(t[144]=o("th",null,"ì¤ë¥¸ìª½ íë¨ ë§í¬ (PC)",-1)),o("td",null,[o("div",zo,[r(o("input",{type:"text","onUpdate:modelValue":t[44]||(t[44]=l=>e.right_bottom_link_title_pc=l),placeholder:"í
ì¤í¸"},null,512),[[b,e.right_bottom_link_title_pc,void 0,{lazy:!0}]]),r(o("input",{type:"text","onUpdate:modelValue":t[45]||(t[45]=l=>e.right_bottom_link_url_pc=l),style:{width:"50%"},placeholder:"URL"},null,512),[[b,e.right_bottom_link_url_pc,void 0,{lazy:!0}]])])])])])]),t[175]||(t[175]=o("div",{class:"font-bold text-lg mt-8 mb-3"}," MOBILE íë©´ ëìì¸ ì¤ì ",-1)),o("table",null,[o("tbody",null,[o("tr",null,[t[146]||(t[146]=o("th",{style:{width:"240px"}}," ì¸ë¡ì¬ì´ì¦ (MOBILE) ",-1)),o("td",null,[o("div",Ro,[r(o("input",{type:"text","onUpdate:modelValue":t[46]||(t[46]=l=>e.main_height_mobile=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_height_mobile,void 0,{lazy:!0}]]),t[145]||(t[145]=x("px "))])])]),o("tr",null,[t[151]||(t[151]=o("th",null,"ì¤ë
ë¹ì¨ (MOBILE)",-1)),o("td",null,[o("div",jo,[r(o("input",{type:"radio",id:"main_ratio_mobile_10x16",name:"main_ratio_mobile",value:"10/16","onUpdate:modelValue":t[47]||(t[47]=l=>e.main_ratio_mobile=l)},null,512),[[k,e.main_ratio_mobile]]),t[147]||(t[147]=o("label",{for:"main_ratio_mobile_10x16"},"10:16",-1)),r(o("input",{type:"radio",id:"main_ratio_mobile_9x16",name:"main_ratio_mobile",value:"9/16","onUpdate:modelValue":t[48]||(t[48]=l=>e.main_ratio_mobile=l)},null,512),[[k,e.main_ratio_mobile]]),t[148]||(t[148]=o("label",{for:"main_ratio_mobile_9x16"},"9:16",-1)),r(o("input",{type:"radio",id:"main_ratio_mobile_1x1",name:"main_ratio_mobile",value:"1/1","onUpdate:modelValue":t[49]||(t[49]=l=>e.main_ratio_mobile=l)},null,512),[[k,e.main_ratio_mobile]]),t[149]||(t[149]=o("label",{for:"main_ratio_mobile_1x1"},"1:1",-1)),r(o("input",{type:"radio",id:"main_ratio_mobile_4x5",name:"main_ratio_mobile",value:"4/5","onUpdate:modelValue":t[50]||(t[50]=l=>e.main_ratio_mobile=l)},null,512),[[k,e.main_ratio_mobile]]),t[150]||(t[150]=o("label",{for:"main_ratio_mobile_4x5"},"4:5",-1))])])]),o("tr",null,[t[153]||(t[153]=o("th",null,"ì¤ë
ë¼ì´ë (MOBILE)",-1)),o("td",null,[o("div",No,[r(o("input",{type:"text","onUpdate:modelValue":t[51]||(t[51]=l=>e.main_radius_mobile=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_radius_mobile,void 0,{lazy:!0}]]),t[152]||(t[152]=x("px "))])])]),o("tr",null,[t[155]||(t[155]=o("th",null,"ì¢ì¸¡ë§ì§ (MOBILE)",-1)),o("td",null,[o("div",To,[r(o("input",{type:"text","onUpdate:modelValue":t[52]||(t[52]=l=>e.main_left_mobile=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_left_mobile,void 0,{lazy:!0}]]),t[154]||(t[154]=x("px "))])])]),o("tr",null,[t[160]||(t[160]=o("th",null,"ë©ì¸ íì´í (MOBILE)",-1)),o("td",null,[o("div",Io,[o("div",Oo,[o("div",Ao,[r(o("input",{type:"radio",id:"mainsnap_title_moff",name:"mainsnap_title_moff","onUpdate:modelValue":t[53]||(t[53]=l=>e.main_title_mobile_unuse=l),value:"1"},null,512),[[k,e.main_title_mobile_unuse]]),t[156]||(t[156]=o("label",{for:"mainsnap_title_moff"},"기본 ì´ë¯¸ì§",-1))]),t[157]||(t[157]=o("div",{class:"thumb"},[o("img",{src:Vt})],-1))]),o("div",Do,[o("div",qo,[r(o("input",{type:"radio",id:"mainsnap_title_moff02",name:"mainsnap_title_moff","onUpdate:modelValue":t[54]||(t[54]=l=>e.main_title_mobile_unuse=l),value:"0"},null,512),[[k,e.main_title_mobile_unuse]]),t[158]||(t[158]=o("label",{for:"mainsnap_title_moff02"},"íì¼ì í",-1)),o("input",{type:"file",class:"mainsnap_title",id:"mainsnap_title_m",onCh
12ange:t[55]||(t[55]=l=>s.mainTitleChange(l,"mobile"))},null,32),t[159]||(t[159]=o("label",{for:"mainsnap_title_m"},"íì¼ì í",-1))]),o("div",{class:"thumb",style:O(this.main_title_mobile.style)},null,4)])])])]),o("tr",null,[t[162]||(t[162]=o("th",null,"ë©ì¸ íì´í ê°ë¡ì¬ì´ì¦ (MOBILE)",-1)),o("td",null,[o("div",Ho,[r(o("input",{type:"text","onUpdate:modelValue":t[56]||(t[56]=l=>e.main_title_width_mobile=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.main_title_width_mobile,void 0,{lazy:!0}]]),t[161]||(t[161]=x("px "))])])]),o("tr",null,[t[165]||(t[165]=o("th",null,"í
ì¤í¸ 컬ë¬(MOBILE)",-1)),o("td",null,[o("div",Ko,[o("div",Jo,[o("div",{class:"w-8 h-8 rounded-full bg-[#FF4747] cursor-pointer",onClick:t[57]||(t[57]=l=>s.selectColor("#FF4747","text_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#3B82F6] cursor-pointer",onClick:t[58]||(t[58]=l=>s.selectColor("#3B82F6","text_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#10B981] cursor-pointer",onClick:t[59]||(t[59]=l=>s.selectColor("#10B981","text_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#F59E0B] cursor-pointer",onClick:t[60]||(t[60]=l=>s.selectColor("#F59E0B","text_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#8B5CF6] cursor-pointer",onClick:t[61]||(t[61]=l=>s.selectColor("#8B5CF6","text_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#EC4899] cursor-pointer",onClick:t[62]||(t[62]=l=>s.selectColor("#EC4899","text_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-black cursor-pointer",onClick:t[63]||(t[63]=l=>s.selectColor("#000000","text_color_mobile"))}),t[164]||(t[164]=o("div",{class:"text-gray-400 mx-2"}," | ",-1)),o("label",Qo,[o("div",Wo,[r(o("input",{type:"color","onUpdate:modelValue":t[64]||(t[64]=l=>e.text_color_mobile.selectedColor=l),onInput:t[65]||(t[65]=(...l)=>e.updateColor&&e.updateColor(...l)),class:"absolute w-8 h-8 opacity-0 cursor-pointer"},null,544),[[b,e.text_color_mobile.selectedColor]]),o("div",{class:"w-8 h-8 rounded-full",style:O({backgroundColor:e.text_color_mobile.selectedColor})},null,4)]),t[163]||(t[163]=o("span",{class:"text-sm text-gray-600"},"ì¬ì©ì ì§ì ",-1))])])])])]),o("tr",null,[t[168]||(t[168]=o("th",null,"í
ì¤í¸ ë°°ê²½ 컬ë¬(MOBILE)",-1)),o("td",null,[o("div",Go,[o("div",Yo,[o("div",{class:"w-8 h-8 rounded-full bg-[#FF4747] cursor-pointer",onClick:t[66]||(t[66]=l=>s.selectColor("#FF4747","textbg_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#3B82F6] cursor-pointer",onClick:t[67]||(t[67]=l=>s.selectColor("#3B82F6","textbg_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#10B981] cursor-pointer",onClick:t[68]||(t[68]=l=>s.selectColor("#10B981","textbg_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#F59E0B] cursor-pointer",onClick:t[69]||(t[69]=l=>s.selectColor("#F59E0B","textbg_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#8B5CF6] cursor-pointer",onClick:t[70]||(t[70]=l=>s.selectColor("#8B5CF6","textbg_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-[#EC4899] cursor-pointer",onClick:t[71]||(t[71]=l=>s.selectColor("#EC4899","textbg_color_mobile"))}),o("div",{class:"w-8 h-8 rounded-full bg-black cursor-pointer",onClick:t[72]||(t[72]=l=>s.selectColor("#000000","textbg_color_mobile"))}),t[167]||(t[167]=o("div",{class:"text-gray-400 mx-2"}," | ",-1)),o("label",Zo,[o("div",Xo,[r(o("input",{type:"color","onUpdate:modelValue":t[73]||(t[73]=l=>e.textbg_color_mobile.selectedColor=l),onInput:t[74]||(t[74]=(...l)=>e.updateColor&&e.updateColor(...l)),class:"absolute w-8 h-8 opacity-0 cursor-pointer"},null,544),[[b,e.textbg_color_mobile.selectedColor]]),o("div",{class:"w-8 h-8 rounded-full",style:O({backgroundColor:e.textbg_color_mobile.selectedColor})},null,4)]),t[166]||(t[166]=o("span",{class:"text-sm text-gray-600"},"ì¬ì©ì ì§ì ",-1))]),o("button",{class:"text-sm text-gray-600",onClick:t[75]||(t[75]=l=>e.textbg_color_mobile.selectedColor="transparent")}," í¬ëª
íê² ")])])])]),o("tr",null,[t[170]||(t[170]=o("th",null,"í
ì¤í¸ ë°°ê²½ í¬ëª
ë (MOBILE)",-1)),o("td",null,[o("div",$o,[r(o("input",{type:"text","onUpdate:modelValue":t[76]||(t[76]=l=>e.textbg_opacity_mobile=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.textbg_opacity_mobile,void 0,{lazy:!0}]]),t[169]||(t[169]=x("% "))])])]),o("tr",null,[t[172]||(t[172]=o("th",null,"í
ì¤í¸ ë°°ê²½ ë¼ì´ë (MOBILE)",-1)),o("td",null,[o("div",te,[r(o("input",{type:"text","onUpdate:modelValue":t[77]||(t[77]=l=>e.textbg_radius_mobile=l),oninput:"this.value = this.value.replace(/[^0-9]/g,'');"},null,512),[[b,e.textbg_radius_mobile,void 0,{lazy:!0}]]),t[171]||(t[171]=x("px "))])])]),o("tr",null,[t[173]||(t[173]=o("th",null,"ì¤ë¥¸ìª½ íë¨ ë§í¬ (MOBILE)",-1)),o("td",null,[o("div",oe,[r(o("input",{type:"text","onUpdate:modelValue":t[78]||(t[78]=l=>e.right_bottom_link_title_mobile=l),placeholder:"í
ì¤í¸"},null,512),[[b,e.right_bottom_link_title_mobile,void 0,{lazy:!0}]]),r(o("input",{type:"text","onUpdate:modelValue":t[79]||(t[79]=l=>e.right_bottom_link_url_mobile=l),style:{width:"50%"},placeholder:"URL"},null,512),[[b,e.right_bottom_link_url_mobile,void 0,{lazy:!0}]])])])])])])]),o("div",ee,[o("div",le,[o("div",ie,U(e.snap_count),1),r(o("button",{type:"button",class:"btn_basic bg_pink !py-2 !px-5 !rounded-md",onClick:t[80]||(t[80]=(...l)=>s.showCode&&s.showCode(...l))}," ì½ë보기 ",512),[[P,e.snap_id!=null]])]),o("div",ne,[r(o("input",{type:"radio",id:"snaptype_link",
12name:"snaptype","onUpdate:modelValue":t[81]||(t[81]=l=>e.main_type=l),value:"link",onChange:t[82]||(t[82]=(...l)=>s.changeMainType&&s.changeMainType(...l))},null,544),[[k,e.main_type]]),t[176]||(t[176]=o("label",{for:"snaptype_link"},"ë§í¬í",-1)),r(o("input",{type:"radio",id:"snaptype_popup",name:"snaptype","onUpdate:modelValue":t[83]||(t[83]=l=>e.main_type=l),value:"popup",onChange:t[84]||(t[84]=(...l)=>s.changeMainType&&s.changeMainType(...l))},null,544),[[k,e.main_type]]),t[177]||(t[177]=o("label",{for:"snaptype_popup"},"íì
í",-1))]),o("div",se,[N(Q,{class:"snap_slide sortable",list:e.snap_data},{default:st(()=>[(c(!0),g(L,null,D(e.snap_data,(l,C)=>{var w,B,S;return c(),g("div",{class:"snap_feed",key:l.id+"-"+e.updateTrigger},[o("a",ae,[((w=l.photos[0])==null?void 0:w.is_video)===0?(c(),g("img",{key:0,src:l.photos.length>0?l.photos[0].photo:"",style:{width:"100%",height:"100%","object-fit":"cover","background-color":"white","border-radius":"8px"}},null,8,de)):((B=l.photos[0])==null?void 0:B.is_video)===1?(c(),g(L,{key:1},[l.photos.length?r((c(),g("video",re,t[178]||(t[178]=[x(" íì¬ ë¸ë¼ì°ì ìì ì§ìëì§ ìë íìì
ëë¤. ")]))),[[K,l.photos[0].photo]]):A("",!0)],64)):A("",!0),o("div",pe,[e.mall_id=="nepro88"||e.mall_id=="josephandstacey"||e.mall_id=="pajar2024"||e.mall_id=="bmtcrash"||e.mall_id=="bluemt01"||e.mall_id=="sfootwear01"||e.mall_id=="
12kuchishop"?r((c(),g("button",{key:0,type:"button",onClick:v=>s.openProductModal(l)}," ìí ",8,_e)),[[P,l.is_new!=!0]]):A("",!0),o("button",{type:"button",onClick:v=>s.showPopup(C),style:{"margin-left":"5px"}}," í¸ì§ ",8,ue)])]),o("label",me,U((S=l.photos)==null?void 0:S.length)+"ì¥",1),o("button",{type:"button",class:"btn_delete",onClick:v=>s.removePhoto(C)},t[179]||(t[179]=[o("i",{class:"fa-solid fa-xmark fa-xl drop-shadow-md text-white"},null,-1)]),8,be),o("div",ge,[t[180]||(t[180]=o("div",{class:"text-sm text-gray-500"}," MOBILE ì
ë ¥ ",-1)),r(o("textarea",{placeholder:"íì´í","onUpdate:modelValue":v=>l.title_mobile=v,onInput:v=>s.limitLines(l,"mobile")},null,40,ce),[[b,l.title_mobile]]),r(o("input",{type:"text",placeholder:"ìµì
","onUpdate:modelValue":v=>l.option_mobile=v},null,8,fe),[[b,l.option_mobile]]),r(o("input",{type:"text",placeholder:"ìµì
S","onUpdate:modelValue":v=>l.option_s_mobile=v},null,8,ve),[[b,l.option_s_mobile]]),r(o("input",{type:"text",placeholder:"ë§í¬","onUpdate:modelValue":v=>l.link=v},null,8,he),[[b,l.link]])]),o("div",ye,[r(o("input",{type:"checkbox",id:"pc_input_btn"+C,"onUpdate:modelValue":v=>l.check_pc_option=v},null,8,ke),[[St,l.check_pc_option]]),o("label",{for:"pc_input_btn"+C},"PC ì¶ê°ì
ë ¥",8,we)]),o("div",{class:"snap_info",id:"pc_input",style:O(l.check_pc_option?"display: flex":"display:none")},[r(o("textarea",{placeholder:"íì´í","onUpdate:modelValue":v=>l.title_pc=v,onInput:v=>s.limitLines(l,"pc")},null,40,xe),[[b,l.title_pc]]),r(o("input",{type:"text",placeholder:"ìµì
","onUpdate:modelValue":v=>l.option_pc=v},null,8,Ce),[[b,l.option_pc]]),r(o("input",{type:"text",placeholder:"ìµì
S","onUpdate:modelValue":v=>l.option_s_pc=v},null,8,Ue),[[b,l.option_s_pc]])],4)])}),128)),o("div",null,[o("div",Pe,[t[181]||(t[181]=o("span",{style:{"margin-bottom":"5px","text-align":"center",width:"70px"}},[x("ì¬ì§ ëë"),o("br"),x(" ëìì ì¶ê°")],-1)),o("input",{type:"file",class:"btn_snapfeed_file",multiple:"",onChange:t[85]||(t[85]=(...l)=>s.onPhotoChange&&s.onPhotoChange(...l)),ref:"file_snap",id:"file_snap",style:{display:"none"}},null,544),t[182]||(t[182]=o("label",{for:"file_snap"},[o("i",{class:"fa-solid fa-plus text-white","aria-hidden":"true"})],-1))])])]),_:1},8,["list"])])]),o("div",Se,[o("div",Ve,[t[184]||(t[184]=o("div",null,[o("h2",{class:"text-lg"},"ë§ì´ì½í
ì¸ ì¶ê°"),o("p",null," ì¤ë
ì ì
ë¡ëí ì½í
ì¸ ë¥¼ ì í í, ì¬ë¦¬ê¸°ë²í¼ì ëë¬ì£¼ì¸ì. ")],-1)),o("div",null,[o("button",{type:"button",class:"flex items-center gap-2 btn_BK py-2 px-5 rounded-md",onClick:t[86]||(t[86]=(...l)=>s.upload&&s.upload(...l))},t[183]||(t[183]=[o("i",{class:"fa-solid fa-arrow-up",style:{color:"white"}},null,-1),x("ì¤ë
ì ì¬ë¦¬ê¸° ")]))])]),e.data.length==0?(c(),g("div",Fe,t[185]||(t[185]=[o("i",{class:"fa-regular fa-folder fa-2xl"},null,-1),o("div",null,"구매íì ë§ì´ì½í
ì¸ ê° ììµëë¤.",-1)]))):A("",!0),e.data.length>0?(c(),g(L,{key:1},[o("div",Ee,[(c(!0),g(L,null,D(this.pagedata,l=>{var C,w,B,S;return c(),g("div",{class:"listview_con",key:l.id},[r(o("input",{type:"checkbox",id:(C=l[0])==null?void 0:C.id,name:"snap_feed",value:(w=l[0])==null?void 0:w.id,"onUpdate:modelValue":t[87]||(t[87]=v=>e.checked_snaps=v)},null,8,Be),[[St,e.checked_snaps]]),o("label",null,[((B=l[0])==null?void 0:B.is_video)===0?(c(),g("img",{key:0,src:l[0].photo,class:"rounded-b-lg",style:{cursor:"pointer"},onClick:v=>s.showDetail(l)},null,8,Me)):((S=l[0])==null?void 0:S.is_video)===1?r((c(),g("video",{key:1,loop:"",controls:"",class:"main_videos",style:{width:"100%",height:"100%","object-fit":"cover","background-color":"black",cursor:"pointer"},onClick:v=>s.showDetail(l)},t[186]||(t[186]=[x(" íì¬ ë¸ë¼ì°ì ìì ì§ìëì§ ìë íìì
ëë¤. ")]),8,Le)),[[K,l[0].photo]]):A("",!0)])])}),128))]),r(o("ul",ze,[o("li",null,[N(et,{current:e.current,"onUpdate:current":t[88]||(t[88]=l=>e.current=l),onChange:s.onChange,total:e.total,defaultPageSize:e.page_size,showSizeChanger:!1,class:"custom-pagination px-3 py-1.5",href:"#","aria-label":"Previous"},{default:st(()=>t[187]||(t[187]=[o("span",{"aria-hidden":"true"},"«",-1)])),_:1},8,["current","onChange","total","defaultPageSize"])])],512),[[P,e.total>0]])],64)):A("",!0)]),o("div",Re,[o("button",{type:"button",class:"btn_basic btn_BK w-full",onClick:t[89]||(t[89]=(...l)=>s.save&&s.save(...l))}," ì ì¥ ")])],512),[[P,e.snap_payment_value>=1]])]),N(lt)])])]),r(o("div",je,[o("div",Ne,[o("div",Te,[o("h3",null,U(e.current_title)+" ì½ë",1),o("a",{onClick:t[90]||(t[90]=l=>e.code_modal=!1)},t[190]||(t[190]=[o("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),o("div",Ie,[r(o("div",Oe,[t[191]||(t[191]=o("div",null,"ìë ì½ë를 ë³µì¬íì¬ seoì ë°ëììì ë£ì´ì£¼ì¸ì.",-1)),o("div",Ae,U(e.code_body),1),o("div",De,[o("div",null,[o("button",{type:"button",class:"btn_basic btn_cancel",style:{"margin-top":"20px"},onClick:t[91]||(t[91]=l=>s.copyCode(e.code_body))}," ë³µì¬ ")])])],512),[[P,e.mall_id==null]]),t[192]||(t[192]=o("div",null,"ìë ì½ë를 ë³µì¬íì¬ ë©ì¸íì´ì§ì ë£ì´ì£¼ì¸ì.",-1)),o("div",qe,U(e.code_contents),1)]),o("div",He,[o("div",null,[o("button",{type:"button",class:"btn_basic btn_cancel",onClick:t[92]||(t[92]=l=>s.copyCode(e.code_contents))}," ë³µì¬ ")]),o("div",Ke,[o("button",{type:"button",class:"btn_basic btn_BK",onClick:t[93]||(t[93]=l=>e.code_modal=!1)}," íì¸ ")])])])],512),[[P,e.code_modal]]),r(o("div",Je,[o("div",Qe,[t[196]||(t[196]=o("div",{class:"modal_box_header"},[o("h3",null,"ì¤ë
í¸ì§")],-1)),o("div",We,[o("div",Ge,[o("ul",Ye,[N(Q,{style:{display:"inline-flex"},list:e.modal_photos},{default:st(()=>[(c(!0),g(L,null,D(e.modal_photos,(l,C)=>(c(),g("li",{class:"mr-3",key:l.id}
12,[o("button",{type:"button",class:"btn_delete",style:{top:"24px","z-index":"999"},onClick:w=>s.removeModalPhoto(C)},t[193]||(t[193]=[o("i",{class:"fa-solid fa-xmark fa-lg drop-shadow-lg text-white"},null,-1)]),8,Ze),l.is_video===0?(c(),g("img",{key:0,src:l.photo,alt:"",style:{"object-fit":"cover"}},null,8,Xe)):l.is_video===1?r((c(),g("video",$e,t[194]||(t[194]=[x(" íì¬ ë¸ë¼ì°ì ìì ì§ìëì§ ìë íìì
ëë¤. ")]))),[[K,l.photo]]):A("",!0)]))),128)),o("li",null,[o("input",{type:"file",class:"btn_snapfeed_file",multiple:"",onChange:t[94]||(t[94]=(...l)=>s.onPhotoPopupChange&&s.onPhotoPopupChange(...l)),ref:"file_popup_snap",id:"file_popup_snap",style:{display:"none"}},null,544),t[195]||(t[195]=o("label",{for:"file_popup_snap"},[o("i",{class:"fa-solid fa-plus text-white"})],-1))])]),_:1},8,["list"])])]),o("div",tl,[r(o("textarea",{class:"resize-none p-2 w-full rounded-md h-[100px]",placeholder:"ê¸ì ìì±í´ì£¼ì¸ì.","onUpdate:modelValue":t[95]||(t[95]=l=>e.modal_contents=l)},null,512),[[b,e.modal_contents]])]),o("div",ol,[o("button",{type:"button",class:"btn_basic btn_BK",onClick:t[96]||(t[96]=(...l)=>s.closeModal&&s.closeModal(...l))}," ì ì¥ ")])])])],512),[[P,e.modal_popup]]),r(o("div",el,[o("div",ll,[o("div",il,[t[198]||(t[198]=o("h3",null,"ìíì°ê²°",-1)),o("a",{onClick:t[97]||(t[97]=l=>e.modal_product=!1),class:"relative top-0 left-32 p-2"},t[197]||(t[197]=[o("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),o("div",{class:"modal_box_contents flex-1 overflow-y-auto p-4",style:{"min-height":"200px","max-height":"calc(90vh - 140px)"},onScroll:t[101]||(t[101]=(...l)=>s.onProductListScroll&&s.onProductListScroll(...l))},[o("div",nl,[((W=e.snaps_edit.photos[0])==null?void 0:W.is_video)===1?(c(),g("video",sl,[o("source",{src:(G=e.snaps_edit.photos[0])==null?void 0:G.photo,type:"video/mp4"},null,8,al),t[199]||(t[199]=x(" Your browser does not support the video tag. "))])):(c(),g("div",dl,[o("img",{src:(Y=e.snaps_edit.photos[0])==null?void 0:Y.photo,class:"h-48 object-contain w-full mb-4"},null,8,rl)])),o("div",pl,[t[202]||(t[202]=o("div",{class:"font-medium text-lg mb-2"}," ì°ê²°ë ìí ëª©ë¡ ",-1)),e.linked_products.length===0?(c(),g("div",_l,t[200]||(t[200]=[o("div",null,"ì°ê²°ë ìíì´ ììµëë¤.",-1)]))):(c(),g("div",ul,[(c(!0),g(L,null,D(e.linked_products,(l,C)=>(c(),g("div",{key:C,class:"flex items-center p-3 border-b border-solid border-gray-200 last:border-b-0"},[o("img",{src:l.small_image,alt:"ìí ì´ë¯¸ì§",class:"w-12 h-12 object-cover rounded mr-3"},null,8,ml),o("div",bl,[o("div",gl,[r(o("input",{type:"text",style:{height:"30px",width:"80%"},placeholder:"ìíëª
",class:"px-3 py-2","onUpdate:modelValue":w=>l.product_name=w},null,8,cl),[[b,l.product_name]])]),o("div",fl,[r(o("input",{type:"text",style:{height:"30px",width:"80%"},placeholder:"ìíì¤ëª
",class:"px-3 py-2","onUpdate:modelValue":w=>l.description=w},null,8,vl),[[b,l.description]])]),o("div",hl,[r(o("input",{type:"number",style:{height:"30px",width:"39.5%"},class:"px-3 py-2",placeholder:"í ì¸ì¨ (ì«ìë§ ì
ë ¥)","onUpdate:modelValue":w=>l.discount_rate=w},null,8,yl),[[b,l.discount_rate]]),r(o("input",{type:"text",style:{height:"30px",width:"39.5%","margin-left":"1%"},class:"bg-gray-100 text-gray-500 border border-gray-300 rounded px-3 py-2 cursor-not-allowed focus:outline-none focus:ring-0",readonly:"",placeholder:"ê°ê²©","onUpdate:modelValue":w=>l.price=w},null,8,kl),[[b,l.price]])])]),o("button",{onClick:w=>s.removeLinkedProduct(C),class:"text-red-500 hover:text-red-700 transition ml-2"},t[201]||(t[201]=[o("i",{class:"fa-solid fa-trash"},null,-1)]),8,wl)]))),128))]))]),o("div",xl,[t[204]||(t[204]=o("div",{class:"font-medium text-lg mb-2"},"ìí ê²ì",-1)),o("div",Cl,[r(o("input",{type:"text",placeholder:"ìíëª
, ìíë²í¸ ê²ì",class:"w-full","onUpdate:modelValue":t[98]||(t[98]=l=>e.product_search_word=l),onKeyup:t[99]||(t[99]=Jt((...l)=>s.searchProducts&&s.searchProducts(...l),["enter"])),style:{border:"none"}},null,544),[[b,e.product_search_word]]),o("button",{type:"button",onClick:t[100]||(t[100]=(...l)=>s.searchProducts&&s.searchProducts(...l)),class:"ml-2"},t[203]||(t[203]=[o("i",{class:"fa-solid fa-magnifying-glass fa-lg"},null,-1)]))])]),o("div",Ul,[e.product_search_loading?(c(),g("div",Pl,t[205]||(t[205]=[o("div",null,"ê²ì ì¤...",-1)]))):e.product_search_results.length===0&&e.product_search_performed?(c(),g("div",Sl,t[206]||(t[206]=[o("div",null,"ê²ì ê²°ê
12³¼ê° ììµëë¤.",-1)]))):(c(),g("div",Vl,[(c(!0),g(L,null,D(e.product_search_results.slice(0,e.product_render_limit),(l,C)=>(c(),g("div",{key:C,class:"border-b border-solid border-gray-200 py-3 px-2 cursor-pointer hover:bg-gray-100",onClick:w=>s.addToLinkedProducts(l)},[o("div",El,[o("img",{src:l.small_image,alt:"ìí ì´ë¯¸ì§",class:"w-12 h-12 object-cover rounded mr-3"},null,8,Bl),o("div",Ml,[o("div",Ll,U(l.product_name),1),o("div",zl,U(l.price?l.price.toLocaleString()+"ì":"ê°ê²© ì ë³´ ìì"),1)]),t[207]||(t[207]=o("button",{class:"text-blue-500 hover:text-blue-700 transition ml-2"},[o("i",{class:"fa-solid fa-plus"})],-1))])],8,Fl))),128))]))])])],32),o("div",Rl,[o("button",{type:"button",class:"btn_basic btn_cancel",onClick:t[102]||(t[102]=l=>s.closeProductModal())}," ì·¨ì "),o("button",{type:"button",class:"btn_basic btn_BK",onClick:t[103]||(t[103]=(...l)=>s.saveLinkedProducts&&s.saveLinkedProducts(...l))}," ì ì¥í기 ")])])],512),[[P,e.modal_product]]),t[218]||(t[218]=o("div",{class:"modal",id:"progressModal",style:{display:"none"}},[o("div",{class:"modal-content"},[o("h4",null,"Uploading..."),o("progress",{id:"uploadProgress",value:"0",max:"100"})])],-1)),r(o("div",jl,[o("div",Nl,[o("div",Tl,[t[209]||(t[209]=o("h3",null,"ë§ì´ì½í
ì¸ ìì¸ë³´ê¸°",-1)),o("a",{onClick:t[104]||(t[104]=(...l)=>s.closeSnapModal&&s.closeSnapModal(...l))},t[208]||(t[208]=[o("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),o("div",Il,[o("div",Ol,[o("div",Al,[(c(!0),g(L,null,D(e.data_snap_detail,(l,C)=>(c(),g("div",{class:"listview_con",key:C},[o("img",{src:l.photo},null,8,Dl)]))),128))]),o("div",ql,[(c(!0),g(L,null,D((Z=e.data_snap_detail[0])==null?void 0:Z.tags,(l,C)=>{var w,B,S,v;return c(),g("table",{class:"w-full",key:C},[t[217]||(t[217]=o("colgroup",null,[o("col",{width:"120px"}),o("col",{width:"auto"})],-1)),o("tbody",null,[o("tr",null,[t[210]||(t[210]=o("th",null,"ë§í¬",-1)),o("td",null,[o("a",{href:l.link},U(l.link.length>50?l.link.substring(0,50)+"...":l.link),9,Hl)])]),o("tr",null,[t[211]||(t[211]=o("th",null,"ìíëª
",-1)),o("td",null,U(l.name?l.name:l.product_name),1)]),r(o("tr",null,[t[212]||(t[212]=o("th",null,"ê°ê²©",-1)),o("td",null,U(l.price),1)],512),[[P,e.data_snap_detail[0].stock_type==="S"]]),r(o("tr",null,[t[213]||(t[213]=o("th",null,"í¤",-1)),o("td",null,U((B=(w=e.data_snap_detail[0].contents)==null?void 0:w.user_height_weight)==null?void 0:B.height),1)],512),[[P,e.data_snap_detail[0].stock_type==="C"]]),r(o("tr",null,[t[214]||(t[214]=o("th",null,"몸무ê²",-1)),o("td",null,U((v=(S=e.data_snap_detail[0].contents)==null?void 0:S.user_height_weight)==null?void 0:v.weight),1)],512),[[P,e.data_snap_detail[0].stock_type==="C"]]),o("tr",null,[t[215]||(t[215]=o("th",null,"ìì",-1)),o("td",null,U(l.color),1)]),o("tr",null,[t[216]||(t[216]=o("th",null,"ì¬ì´ì¦",-1)),o("td",null,U(l.size),1)])])])}),128))])])])])],512),[[P,e.modal_snap_detail]]),N(it,{loading:e.is_loading,"dark-background":e.useDarkBackground},null,8,["loading","dark-background"]),o("video",Kl,null,512),o("canvas",Jl,null,512)],64)}const ni=At(io,[["render",Ql]]);export{ni 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.