1import{_ as ke,m as xe,A as W,o as Se,p as Ce,c as m,b as t,h as P,w as r,v as b,I as j,e as w,D as Y,q as g,t as C,i as M,F as V,f as L,x as G,u as Ue,j as R,bf as Pe,g as f,s as J}from"./index-GRB8Jcml.js";import{S as je,a as Ae,b as Ve,c as k}from"./snap_footer-B9eSqtLO.js";import{S as Re}from"./StockService-DwJDRniG.js";import{S as Me}from"./Cafe24Service-JcfuYLwI.js";/* empty css */import{S as Le}from"./snap_upgrade_starter-BsZCno11.js";import{S as Ee}from"./spinner-CjlHwONo.js";import{C as ze}from"./compressor.esm-FeJMiU6q.js";import"./UserService-B39Vk0W_.js";const Oe={name:"SnapList",components:{SNAP_MENU:je,SNAP_HEADER:Ae,SNAP_UPGRADE_STARTER:Le,SNAP_FOOTER:Ve,SNAP_SPINNER:Ee},setup(){const e=xe({data:[],current:1,current_mycontents:1,page_size:12,total:0,pagedata:[],search_words:"",code_modal:!1,code_header:"",code_body:"",code_contents:"",deleted_files:[],snap_count:0,mycontents:{data:[],page_data:[],page_size:12,current:1,total:0,checked:[]},modal_addsnaps:!1,modal_editsnaps:!1,modal_mysnaps:!1,modal_product:!1,snaps_add:[],snaps_edit:{id:"",photo:"",product_name:"",product_option:"",product_info:"",product_url:"",is_video:0,thumbnail:"",thumbnail_file:null,thumbnail_preview:null},changed_orders:[],mall_id:null,code_guide:"ìë ì½ë를 ë³µì¬íì¬ ì¤ë ìì¹´ì´ë¸ íì´ì§ì ë£ì´ì£¼ì¸ì.",snap_payment_value:0,is_loading:!1,snap_page_tab:0,snap_page_data:[],show_snap_setting_modal:!1,plus_icon:1,dash_line:1,product_search_word:"",product_data:[],product_search_results:[],product_search_loading:!1,product_search_performed:!1,linked_products:[]}),o=W.getCookie("snap_payment");e.snap_payment_value=o.payment_value;const F=Ue();document.body.style.overflow="auto";let p=l=>{document.body.style.overflow="hidden",e.snaps_edit=l,e.product_search_word="",e.product_search_results=[],e.product_search_performed=!1,e.linked_products=[],l.snap_products&&l.snap_products.forEach(n=>{var d,_,i;const a={id:(d=n==null?void 0:n.info)==null?void 0:d.id,price:(_=n==null?void 0:n.info)==null?void 0:_.price,small_image:(i=n==null?void 0:n.info)==null?void 0:i.small_image,product_name:n==null?void 0:n.product_name,description:n==null?void 0:n.description,discount_rate:n==null?void 0:n.discount_rate};e.linked_products.push(a)}),e.modal_product=!0,s(),setTimeout(()=>{document.querySelector("#modal_products_link").scrollTo(0,0)},300)},H=()=>{document.body.style.overflow="auto",e.modal_product=!1,e.snaps_edit={id:"",photo:"",product_name:"",product_option:"",product_info:"",product_url:"",is_video:0,thumbnail:"",thumbnail_file:null,thumbnail_preview:null}},K=()=>{if(e.search_words.trim()===""){e.data=[...e.search_data],e.total=e.data.length,e.current=1,e.pagedata=e.data.slice(0,e.page_size);return}e.data=e.search_data.filter(l=>{var n,a;return((n=l.product_name)==null?void 0:n.includes(e.search_words))||((a=l.product_url)==null?void 0:a.includes(e.search_words))}),e.total=e.data.length,e.current=1,e.pagedata=e.data.slice(0,e.page_size)},O=l=>{e.pagedata.forEach(a=>{a.checked=!1});let n=(l-1)*e.page_size;e.pagedata=e.data.slice(n,n+e.page_size)},N=l=>{const n=e.changed_orders.find(a=>a.id===l.id);n?n.order=l.order:e.changed_orders.push({id:l.id,order:l.order}),console.log(e.changed_orders)},D=l=>{var n,a;if(e.snap_page_tab=l,e.snap_page_data[l]){e.data=(n=e.snap_page_data[l])==null?void 0:n.photos,console.log(e.data),e.total=e.data.length,e.search_data=e.data,e.pagedata=e.data.slice(0,e.page_size);const d=(a=e.snap_page_data[l])==null?void 0:a.code;if(d){let _='<div id="app-3cuniverse-snap" class="code_'+d+`"></div> 2`,i=`<script src="https://snapbox.ai/snap.js">< /script> 3`;i=i.replace(" /","/"),e.code_body=i,e.code_contents=_}}else e.data=[],e.total=0,e.search_data=[],e.pagedata=[],e.code_body="",e.code_contents=""},E=l=>{let n=(l-1)*e.mycontents.page_size;e.mycontents.page_data=e.mycontents.data.slice(n,n+e.mycontents.page_size)},T=l=>{console.log(l.target.checked),e.pagedata.forEach(n=>{n.checked=l.target.checked})},B=()=>{if(e.data.length==0){alert("ì¤ë ì ë±ë¡í´ì£¼ì¸ì.");return}if(!confirm("ì ì¥íìê² ìµëê¹?"))return;let l={orders:JSON.stringify(e.changed_orders)};k.updateSnapArchiveOrders(l).then(n=>{console.log(n),n.data.code==="S"&&A()}).catch(n=>{console.log(n)})},U=()=>
3{if(e.deleted_files.length==0){alert("ìì í ì¤ë
ì ì íí´ì£¼ì¸ì.");return}if(!confirm("ìì íìê² ìµëê¹?"))return;const l={deleted_files:JSON.stringify(e.deleted_files)};k.deleteSnapArchive(l).then(n=>{console.log(n),n.data.code==="S"&&(e.current=1,A())}).catch(n=>{console.log(n)})},s=()=>{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(l=>l.product_name.toLowerCase().includes(e.product_search_word.toLowerCase())))):Me.productsList().then(l=>{console.log(l),l.data.code==="S"&&(e.product_data=l.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(l=>{console.log(l),e.product_search_loading=!1,e.product_search_performed=!1})},v=()=>{if(console.log(e.linked_products),!confirm("ì ì¥íìê² ìµëê¹?"))return;const l=e.snaps_edit.id,n=e.snaps_edit.snap_photo_id,a=e.snaps_edit.snap_id;let d=[];e.linked_products.forEach(i=>{let u={id:i.id,product_name:i.product_name,description:i.description,discount_rate:i.discount_rate};d.push(u)});const _={snap_file_id:l,snap_photo_id:n,snap_id:a,product_list:JSON.stringify(d)};k.updateLinkProducts(_).then(i=>{console.log(i),i.data.code==="S"&&(alert("ì°ê²°ë ìíì´ ì ì¥ëììµëë¤."),A())}).catch(i=>{console.log(i)})},c=l=>{if(e.linked_products.some(a=>a.id===l.id)){alert("ì´ë¯¸ ì°ê²°ë ìíì
ëë¤.");return}console.log(l),l.description="",e.linked_products.push({...l}),alert(`'${l.product_name}' ìíì´ ì°ê²° 목ë¡ì ì¶ê°ëììµëë¤.`)},Q=l=>{confirm("ì ë§ ì´ ìíì ì°ê²° 목ë¡ìì ìì íìê² ìµëê¹?")&&e.linked_products.splice(l,1)};const X=()=>{e.is_loading=!0;const l=new FormData;l.append("plus_icon",e.plus_icon),l.append("dash_line",e.dash_line),k.settingDetail(l).then(n=>{n.data.code=="S"&&(e.show_snap_setting_modal=!1,alert("ì ì¥ëììµëë¤."),A())}).catch(n=>{console.error(n),alert("ì ì¥ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}).finally(()=>{e.is_loading=!1})},ee=()=>{k.getDetailSetting().then(l=>{const n=l.data.snap_setting;e.plus_icon=(n==null?void 0:n.plus_icon)??1,e.dash_line=(n==null?void 0:n.dash_line)??1,e.show_snap_setting_modal=!0}).catch(l=>{console.error(l),alert("ì¤ì ì 보를 ë¶ë¬ì¤ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")})},te=()=>{if(e.data.length==0){alert("ì¤ë
ì ë±ë¡í´ì£¼ì¸ì.");return}e.code_modal=!0},oe=()=>{e.modal_addsnaps=!0,document.body.style.overflow="hidden"},le=()=>{e.modal_mysnaps=!0,document.body.style.overflow="auto"},se=()=>{e.snaps_edit.thumbnail_preview&&URL.revokeObjectURL(e.snaps_edit.thumbnail_preview),e.modal_editsnaps=!1,document.body.style.overflow="auto",e.snaps_edit={id:"",photo:"",product_name:"",product_option:"",product_info:"",product_url:"",is_video:0,thumbnail:"",thumbnail_file:null,thumbnail_preview:null}},ne=()=>{e.modal_addsnaps=!1,document.body.style.overflow="auto"},$=()=>{e.modal_mysnaps=!1,document.body.style.overflow="auto"},ae=()=>{console.log(e.mycontents.checked),e.mycontents.checked.forEach(l=>{console.log(l);const n=(l==null?void 0:l.stock_type)??0;let a=[];n==="C"?a=l.creator_tags:n==="S"?a=l.snap_tags:n==="R"&&(a=l.user_content_tag);const d=a[0]??null;let _={id:l.id,is_video:l.is_video,file:null,photo:l.photo,product_name:d==null?void 0:d.product_name,product_url:d==null?void 0:d.link,product_option:d==null?void 0:d.size,product_info:"",thumbnail:l.thumbnail||null};e.snaps_add.find(u=>u.id===l.id)||e.snaps_add.push(_)}),$()},de=async l=>{if(console.log(l),!l||l.is_video!==1){alert("ë¹ëì¤ íì¼ì ëí´ìë§ ì¸ë¤ì¼ì ìì±í ì ììµëë¤.");return}if(l.is_new){alert("ìì§ ì ì¥ëì§ ìì íì¼ì ì¸ë¤ì¼ì ìì±í ì ììµëë¤. 먼ì ì ì¥í´ì£¼ì¸ì.");return}if(confirm("ìë¡ì´ ì¸ë¤ì¼ì ìì±íìê² ìµëê¹? (ëìì ë¤ì´ë¡ëë¡ ì¸í´ ìê°ì´ ì¤ë 걸릴 ì ììµëë¤.)")){e.is_loading=!0;try{let n=l.photo;n=n.replace("https://www.snapbox.ai","https://snapbox.ai");const a=await fetch(n);if(!a.ok)throw new Error(`Failed to fetch video: ${a.statusText}`);const d=await a.blob(),_=new File([d],`video_${l.id}.mp4`,{type:d.type});let i=null;const u=document.createElement("video"),h=document.createElement("canvas"),y=h.getContext("2d");u.preload="metadata",u.src=URL.createObjectURL(_),u.currentTime=1,await new Promise((x,q)=>{u.onseeked=()=>{h.width=u.videoWidth,h.height=u.videoHeight,y.drawImage(u,0,0,h.width,h.height),h.toBlob(z=>
3{z?(i=new File([z],`thumbnail_${l.id}.jpg`,{type:"image/jpeg",lastModified:Date.now()}),x()):q("Failed to create thumbnail blob.")},"image/jpeg",.8)},u.onerror=z=>{console.error("Error loading or seeking video for thumbnail:",z),q("Failed to load video for thumbnail.")},u.readyState>=2?u.onseeked():u.load()});const S=new FormData;i&&S.append("thumbnail",i),S.append("id",l.id),S.append("product_name",l.product_name||""),S.append("product_option",l.product_option||""),S.append("product_info",l.product_info||""),S.append("product_url",l.product_url||""),k.updateSnapArchive(S).then(x=>{console.log(x),x.data.code==="S"&&(alert("ì¸ë¤ì¼ ìì±ì´ ìë£ëììµëë¤."),location.reload())}).catch(x=>{console.log(x),alert("ì¸ë¤ì¼ ì
ë°ì´í¸ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")})}catch(n){console.error("Error generating thumbnail in frontend:",n),alert("ì¸ë¤ì¼ ìì± ì¤ ì¤ë¥ê° ë°ìíìµëë¤: "+n.message)}finally{e.is_loading=!1}}};let ie=l=>{e.snaps_edit.thumbnail_preview&&URL.revokeObjectURL(e.snaps_edit.thumbnail_preview),e.snaps_edit={...l,thumbnail_file:null,thumbnail_preview:null},e.modal_editsnaps=!0,document.body.style.overflow="hidden"};const re=l=>{const n=l.target.files[0];if(!n)return;if(!n.type.startsWith("image/")){alert("ì´ë¯¸ì§ íì¼ë§ ì
ë¡ë ê°ë¥í©ëë¤.");return}const a=5*1024*1024;if(n.size>a){alert("íì¼ í¬ê¸°ë 5MB ì´íì¬ì¼ í©ëë¤.");return}const d=URL.createObjectURL(n);e.snaps_edit.thumbnail_file=n,e.snaps_edit.thumbnail_preview=d,console.log("ì¸ë¤ì¼ ì
ë¡ëë¨:",n.name)},pe=()=>{if(!confirm("ì¸ë¤ì¼ì ì ê±°íìê² ìµëê¹?"))return;e.snaps_edit.thumbnail_preview&&URL.revokeObjectURL(e.snaps_edit.thumbnail_preview),e.snaps_edit.thumbnail_file=null,e.snaps_edit.thumbnail_preview=null,e.snaps_edit.thumbnail=null;const l=document.getElementById("thumbnail_upload");l&&(l.value=""),console.log("ì¸ë¤ì¼ ì ê±°ë¨")},ue=()=>{if(!confirm("ìì íìê² ìµëê¹?"))return;const l=new FormData;
3l.append("id",e.snaps_edit.id),l.append("product_name",e.snaps_edit.product_name||""),l.append("product_option",e.snaps_edit.product_option||""),l.append("product_info",e.snaps_edit.product_info||""),l.append("product_url",e.snaps_edit.product_url||""),e.snaps_edit.thumbnail_file&&l.append("thumbnail",e.snaps_edit.thumbnail_file),e.snaps_edit.thumbnail===null&&!e.snaps_edit.thumbnail_file&&l.append("remove_thumbnail",1),k.updateSnapArchive(l).then(n=>{console.log(n),n.data.code==="S"&&(alert("ìì ëììµëë¤."),location.reload())}).catch(n=>{console.log(n)})},ce=l=>{const n=document.createElement("textarea");n.value=l,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),alert("ì½ëê° ë³µì¬ëììµëë¤.")},_e=()=>{var _;if(!confirm("ë±ë¡íìê² ìµëê¹?"))return;let l=5;e.snap_payment_value>=2&&(l=10),e.mall_id==="ari240201"&&(l=2e3);let n=0;if(e.data.forEach(i=>{i.is_video===1&&n++}),e.snaps_add.forEach(i=>{i.is_video===1&&n++}),n>l)return alert("ìì íì¼ì ìµë "+l+"ê°ê¹ì§ë§ ë±ë¡ì´ ê°ë¥í©ëë¤. íì¬ "+e.snaps_add.length+"ê° ë±ë¡ëììµëë¤."),!1;e.is_loading=!0;const a=new FormData,d=((_=e.snap_page_data[e.snap_page_tab])==null?void 0:_.id)??0;a.append("snap_id",d),e.snaps_add.forEach((i,u)=>{a.append(`file_photos[${u}][id]`,i.id),a.append(`file_photos[${u}][is_video]`,i.is_video),a.append(`file_photos[${u}][file]`,i.file),a.append(`file_photos[${u}][photo]`,i.photo),i.thumbnail_file&&a.append(`file_photos[${u}][thumbnail_file]`,i.thumbnail_file),a.append(`file_photos[${u}][product_name]`,i.product_name??""),a.append(`file_photos[${u}][product_option]`,i.product_option??""),a.append(`file_photos[${u}][product_info]`,i.product_info??""),a.append(`file_photos[${u}][product_url]`,i.product_url??"")}),k.uploadSnapArchive(a).then(i=>{i.data.code=="S"&&location.reload()}).catch(i=>{e.is_loading=!1,alert(i.response.data)})};function me(l){return new Promise((n,a)=>{let i=.5;const u=h=>{new ze(l,{quality:h,maxWidth:1080,maxHeight:1920,success(y){y.size>524288&&h>.1?(i-=.05,u(i)):n(y)},error(y){a(y)}})};u(i)})}let fe=async l=>{e.is_loading=!0;const n=l.target.files;for(const a of n)if(be(a))try{const d=await me(a);let i={id:I(),is_video:0,file:d,photo:URL.createObjectURL(d),thumbnail:null,thumbnail_file:null};e.snaps_add.push(i)}catch(d){console.error("Compression failed:",d),alert("ì´ë¯¸ì§ ìì¶ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}else if(ge(a)){if(a.type!=="video/mp4"&&a.type!=="video/quicktime"){alert("MP4 ëë MOV íì¼ì
3 ì íí´ì£¼ì¸ì.");continue}if(a.size>Z)alert(`ìì íì¼ í¬ê¸°ë ${Z/(1024*1024)}MB ì´íì¬ì¼ í©ëë¤.`);else try{await he(a)}catch(d){console.error("Video thumbnail generation failed: ",d),alert("ëìì ì¸ë¤ì¼ ìì± ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")}}else alert("ì´ë¯¸ì§ ëë ë¹ëì¤ íì¼ì ì íí´ì£¼ì¸ì.");e.is_loading=!1,l.target.value=""};const be=l=>l.type==="image/png"||l.type==="image/jpeg"||l.type==="image/jpg",Z=20*1024*1024,ge=l=>l.type.includes("video/"),he=async l=>new Promise((n,a)=>{const d=document.createElement("video"),_=document.createElement("canvas"),i=_.getContext("2d");d.preload="metadata",d.src=URL.createObjectURL(l),d.currentTime=1,d.onloadedmetadata=()=>{d.currentTime=1},d.onseeked=()=>{_.width=d.videoWidth,_.height=d.videoHeight,i.drawImage(d,0,0,_.width,_.height),_.toBlob(u=>{if(u){const h=new File([u],`thumbnail_${l.name.split(".")[0]}.jpg`,{type:"image/jpeg",lastModified:Date.now()}),y=URL.createObjectURL(u);let x={id:I(),is_video:1,file:l,photo:URL.createObjectURL(l),thumbnail:y,thumbnail_file:h};e.snaps_add.push(x),n(x)}else a("Failed to create thumbnail blob.");URL.revokeObjectURL(d.src)},"image/jpeg",.8)},d.onerror=u=>{console.error("Error loading or seeking video for thumbnail:",u);let y={id:I(),is_video:1,file:l,photo:URL.createObjectURL(l),thumbnail:null,thumbnail_file:null};e.snaps_add.push(y),n(y),URL.revokeObjectURL(d.src)},d.readyState>=2?d.onseeked():d.load()});let I=()=>{let l=new Date,n=l.getFullYear()*1e10,a=(l.getMonth()+1)*1e8,d=l.getDate()*1e6,_=l.getHours()*1e4,i=l.getMinutes()*100,u=l.getSeconds(),h=l.getMilliseconds();return n+a+d+_+i+u+h},ve=l=>{e.snaps_add=e.snaps_add.filter(n=>n.id!==l)},A=()=>{k.snapArchive().then(l=>{var n,a;if(console.log(l.data),e.snap_page_data=l.data.snap_archive,e.snap_page_data.length>0){e.data=(n=e.snap_page_data[e.snap_page_tab])==null?void 0:n.photos,e.total=e.data.length,e.search_data=e.data,e.pagedata=e.data.slice(0,e.page_size);const d=(a=e.snap_page_data[e.snap_page_tab])==null?void 0:a.code;if(d){let _='<div id="app-3cuniverse-snap" class="code_'+d+`"></div> 4`,i=`<script src="https://snapbox.ai/snap.js">< /script> 5`;i=i.replace(" /","/"),e.code_body=i,e.code_contents=_}}}).catch(l=>{console.log(l)})},ye=(l,n)=>{const a=new FormData;a.append("id",l),a.append("video_auto_play",n),k.updateVideoAutoPlay(a).then(d=>{console.log(d);const _=e.data.find(i=>i.id===l);_&&(_.video_auto_play=n),alert("ìëì¬ì ì¤ì ì´ ì ì©ëììµëë¤.")}).catch(d=>{console.log(d)})},we=()=>{Re.readSnapStockStack().then(l=>{let n=l.data;console.log(n),e.mycontents.data=[],n.forEach(a=>{a.forEach(d=>{d.is_video===0&&e.mycontents.data.push(d)})}),e.mycontents.page_data=e.mycontents.data.slice(0,e.mycontents.page_size),e.mycontents.total=e.mycontents.data.length}).catch(l=>{console.log(l)})};return Se(()=>{if(console.log("mounted!"),e.mall_id=W.getMallId(),e.snap_payment_value<1)return!1;A(),we()}),{router:F,...Ce(e),onChange:O,deleteArchive:U,checkAll:T,onPhotoChange:fe,clickAddSnap:oe,clickMySnaps:le,closeAddSnap:ne,closeEditSnap:se,closeMySnaps:$,fetchData:A,save:_e,update:ue,search:K,removeSnap:ve,changeOrder:N,onChangeMycontents:E,addFromMycontents:ae,saveOrder:B,openDetailModal:ie,showCodeModal:te,clickToSetting:ee,copyCode:ce,changeSnapTab:D,saveSnapSetting:X,openProductModal:p,searchProducts:s,addToLinkedProducts:c,removeLinkedProduct:Q,closeProductModal:H,saveLinkedProducts:v,handleThumbnailUpload:re,removeThumbnail:pe,updateAutoPlay:ye,regenerateThumbnail:de}}},Ne={class:"dashboard_body flex flex-col"},De={class:"contents_box w-full flex justify-start grow"},Te={class:"contents_area grow p-8"},Be={class:"con grow"},Ie={class:"paylist"},Fe={for:"paylist01",style:{"font-size":"20px"}},He={for:"paylist02",style:{"font-size":"20px"}},Ke={class:"flex gap-2"},$e={class:"box flex items-center justify-between mb-5"},Ze={class:"border-b border-solid border-gray-300 pb-0"},qe={class:"box"},We={class:"flex justify-between items-center py-3"},Ye={class:"flex items-center gap-1"},Ge={class:"font-bold text-lg"},Je={class:"grid grid-cols-2 gap-2"},Qe={class:"pt-[80px] pb-[50px] text-center text-gray-400 flex flex-col gap-5"},Xe={class:"w-full"},et={key:0,width:"200px"},tt=["value"],ot=["onUpdate:modelValue","onChange"],lt={class:"flex justify-center"}
5,st=["onClick"],nt=["src"],at=["src","autoplay"],dt=["onClick"],it={class:"toggle"},rt=["id","checked","onChange"],pt=["for"],ut=["onClick"],ct={class:"underline !text-black"},_t=["href"],mt={class:"pagination mb-5"},ft={class:"modal_layer",id:"modal_layer"},bt={class:"modal_box"},gt={class:"modal_box_header"},ht={class:"modal_box_contents"},vt={class:"w-full p-2 h-[100px] border border-solid border-gray-300 mt-3"},yt={style:{display:"flex","justify-content":"center"}},wt={class:"w-full p-2 h-[100px] border border-solid border-gray-300 mt-3"},kt={style:{display:"flex","justify-content":"center"}},xt={class:"modal_layer",id:"modal_add"},St={class:"modal_box max-w-[1000px]"},Ct={class:"modal_box_header"},Ut={class:"modal_box_contents"},Pt={class:"flex gap-2"},jt={class:"pt-[80px] pb-[50px] text-center text-gray-400 flex flex-col gap-2"},At={class:"listview grid grid-cols-6 gap-2 mt-10"},Vt=["onClick"],Rt={key:0,loop:"",autoplay:"",muted:"",controls:"",class:"h-56 object-cover",style:{width:"100%","object-fit":"cover","border-radius":"8px"}},Mt={key:1},Lt=["src"],Et={class:"snap_info",style:{"margin-top":"10px"}},zt=["onUpdate:modelValue"],Ot={class:"mt-1"},Nt=["onUpdate:modelValue"],Dt={class:"mt-1"},Tt=["onUpdate:modelValue"],Bt={class:"mt-1"},It=["onUpdate:modelValue"],Ft={class:"modal_layer fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center p-4 z-50",id:"modal_add"},Ht={class:"modal_box bg-white rounded-lg shadow-2xl w-full max-w-lg mx-auto overflow-hidden flex flex-col max-h-[90vh]"},Kt={class:"modal_box_header flex justify-between items-center border-b border-gray-200 flex-shrink-0"},$t={class:"flex-grow overflow-y-auto space-y-6"},Zt={class:"modal_box_contents"},qt={class:"relative mb-4"},Wt={key:0,controls:"",class:"h-96 object-cover w-full rounded-md"},Yt={key:1},Gt=["src"],Jt={class:"snap_info space-y-4"},Qt={class:"px-6 py-4 bg-gray-50 border-t border-gray-200 text-right flex-shrink-0"},Xt={class:"modal_layer",id:"modal_products_link"},eo={class:"modal_box max-w-[700px] flex flex-col",style:{"max-height":"90vh",height:"auto"}},to={class:"modal_box_header sticky top-0 z-10 bg-white"},oo={class:"modal_box_contents flex-1 overflow-y-auto p-4",style:{"min-height":"200px","max-height":"calc(90vh - 140px)"}},lo={class:"relative mb-4"},so={key:0,controls:"",class:"h-48 object-cover w-full h-[400px] mb-4"},no={key:1},ao=["src"],io={class:"mt-4 mb-6"},ro={key:0,class:"text-center py-4 text-gray-400 border border-dashed border-gray-300 rounded-md"},po={key:1,class:"border border-solid border-gray-200 rounded-md"},uo=["src"],co={class:"flex-1"},_o={class:"text-md mt-1"},mo=["onUpdate:modelValue"],fo={class:"text-md mt-1"},bo=["onUpdate:modelValue"],go={class:"text-md mt-1"},ho=["onUpdate:modelValue"],vo=["onUpdate:modelValue"],yo=["onClick"],wo={class:"border-t border-solid border-gray-300 pt-4"},ko={class:"border-b border-solid border-gray-300 pb-2 flex items-center"},xo={class:"mt-4"},So={key:0,class:"text-center py-4"},Co={key:1,class:"text-center py-4 text-gray-400"},Uo={key:2},Po=["onClick"],jo={class:"flex items-center"},Ao=["src"],Vo={class:"flex-1"},Ro={class:"font-medium"},Mo={class:"text-gray-500 text-sm mt-1"},Lo={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"},Eo={class:"modal_layer",id:"modal_my"},zo={class:"modal_box max-w-[1000px]"},Oo={class:"modal_box_header"},No={class:"modal_box_contents"},Do={class:"pt-[80px] pb-[50px] text-center text-gray-400 flex flex-col gap-5"},To={class:"listview grid grid-cols-6 gap-2 mt-10"},Bo=["id","value"],Io=["for"],Fo=["src"],Ho=["src"],Ko={class:"pagination mb-5"},$o={class:"modal_layer",id:"snap_setting_modal"},Zo={class:"modal_box max-w-[500px]"},qo={class:"modal_box_header"},Wo={class:"modal_box_contents p-6"},Yo={class:"mb-4"},Go={class:"flex gap-5"},Jo={class:"flex items-center"},Qo={class:"flex items-center"},Xo={class:"flex gap-5"},el={class:"flex items-center"},tl={class:"flex items-center"},ol={class:"modal_box_footer flex justify-center gap-4 p-4"};function ll(e,o,F,p,H,K){const O=R("SNAP_HEADER"),N=R("SNAP_MENU"),D=R("SNAP_UPGRADE_STARTER"),E=R("a-pagination"),T=R("SNAP_FOOTER"),B=R("SNAP_SPINNER"),U=Pe("hls");return f(),m(V,null,[t("div",Ne,[P(O),t("div",De,[P(N),t("div",Te,[t("div",Be,[o[72]||(o[72]=t("div",{class:"contents_title flex justify-between",style:{"margin-bottom":"30px"}}
5,[t("div",null,[t("h1",null,"ì¤ë
ìì¹´ì´ë¸"),t("h2",null," ì¼í몰 ë´ html íì´ì§ ìì± í ì½ë를 ì½ì
í´ì£¼ì¸ì. ")]),t("div",{class:"btn_kakao"},[t("a",{href:"http://pf.kakao.com/_Uxkwpxj",target:"_blank"},"ì¹´ì¹´ì¤ìë´")])],-1)),P(D),r(t("div",null,[t("div",Ie,[r(t("input",{type:"radio",name:"checkSnap",id:"paylist00",checked:"","onUpdate:modelValue":o[0]||(o[0]=s=>e.snap_page_tab=s),value:"0",onChange:o[1]||(o[1]=s=>p.changeSnapTab(0))},null,544),[[j,e.snap_page_tab]]),o[49]||(o[49]=t("label",{for:"paylist00",style:{"font-size":"20px"}},"ìì¹´ì´ë¸1",-1)),r(t("input",{type:"radio",name:"checkSnap",id:"paylist01","onUpdate:modelValue":o[2]||(o[2]=s=>e.snap_page_tab=s),value:"1",onChange:o[3]||(o[3]=s=>p.changeSnapTab(1))},null,544),[[j,e.snap_page_tab]]),r(t("label",Fe,"ìì¹´ì´ë¸2",512),[[b,e.snap_page_data.length>0]]),r(t("input",{type:"radio",name:"checkSnap",id:"paylist02","onUpdate:modelValue":o[4]||(o[4]=s=>e.snap_page_tab=s),value:"2",onChange:o[5]||(o[5]=s=>p.changeSnapTab(2))},null,544),[[j,e.snap_page_tab]]),r(t("label",He,"ìì¹´ì´ë¸3",512),[[b,e.snap_page_data.length>1]])]),t("div",Ke,[t("button",{type:"button",class:"py-2 px-5 btn_BK rounded-md flex gap-2 items-center",onClick:o[6]||(o[6]=s=>p.router.push("snap-page-setting"))},o[50]||(o[50]=[t("i",{class:"fa-solid fa-gear text-white"},null,-1),w("ì¤ë
ìì¹´ì´ë¸ ì¤ì ")]))]),o[51]||(o[51]=t("br",null,null,-1))],512),[[b,e.snap_payment_value>=1]]),r(t("div",$e,[t("div",Ze,[r(t("input",{type:"text",placeholder:"ìíëª
",class:"w-[500px]","onUpdate:modelValue":o[7]||(o[7]=s=>e.search_words=s),onKeyup:o[8]||(o[8]=Y(s=>p.search(),["enter"])),style:{border:"none"}},null,544),[[g,e.search_words]]),t("button",{type:"button",onClick:o[9]||(o[9]=s=>p.search())},o[52]||(o[52]=[t("i",{class:"fa-solid fa-magnifying-glass fa-lg"},null,-1)]))])],512),[[b,e.snap_payment_value>=1]]),r(t("div",null,[t("div",qe,[t("div",We,[t("div",Ye,[o[53]||(o[53]=t("div",null,"ì´",-1)),t("div",Ge,C(e.total),1),o[54]||(o[54]=t("div",null,"ê±´",-1)),t("button",{type:"button",class:"btn_basic border border-solid border-gray-300 !py-2 !px-5 !rounded-lg h-10",onClick:o[10]||(o[10]=s=>p.saveOrder())}," ììì ì¥ "),r(t("button",{type:"button",class:"btn_tabletop btn_cancel w-16 h-10 text-base rounded-lg leading-tight",onClick:o[11]||(o[11]=s=>p.deleteArchive())}," ìì ",512),[[b,e.data]]),o[55]||(o[55]=t("label",{class:"text-gray-500 ml-2"},"ìëì¬ìì ì½í
ì¸ 4-8ê°ë¹ íëì ì½í
ì¸ ë§ ì¤ì í´ ì£¼ì¸ì.",-1))]),t("div",Je,[t("button",{type:"button",class:"btn_basic bg_pink !py-2 !px-5 !rounded-md",onClick:o[12]||(o[12]=s=>p.showCodeModal())}," ì½ë보기 "),t("button",{type:"button",class:"btn_tabletop btn_BK w-24 h-10 rounded-lg text-base",onClick:o[13]||(o[13]=s=>p.clickAddSnap())}," ì¤ë
ë±ë¡ ")])]),r(t("div",Qe,o[56]||(o[56]=[t("i",{class:"fa-regular fa-folder fa-2xl"},null,-1),t("div",null,"ì½í
ì¸ ê° ììµëë¤.",-1)]),512),[[b,e.data.length===0]]),t("div",null,[r(t("table",Xe,[t("colgroup",null,[o[57]||(o[57]=t("col",{width:"40px"},null,-1)),o[58]||(o[58]=t("col",{width:"100px"},null,-1)),o[59]||(o[59]=t("col",{width:"100px"},null,-1)),o[60]||(o[60]=t("col",{width:"auto"},null,-1)),o[61]||(o[61]=t("col",{width:"200px"},null,-1)),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=="
5kuchishop"||e.mall_id=="thenofficial"?(f(),m("col",et)):M("",!0),o[62]||(o[62]=t("col",{width:"200px"},null,-1)),o[63]||(o[63]=t("col",{width:"120px"},null,-1))]),t("tbody",null,[t("tr",null,[o[64]||(o[64]=t("th",null,null,-1)),o[65]||(o[65]=t("th",null,"ìì",-1)),o[66]||(o[66]=t("th",null,"ì¤ë
ì´ë¯¸ì§",-1)),o[67]||(o[67]=t("th",null,"ìíëª
",-1)),o[68]||(o[68]=t("th",null,"ì ë³´(@ìì´ë ëë 기í)",-1)),o[69]||(o[69]=t("th",null,"ìì ìëì¬ì",-1)),r(t("th",null," ìíì°ê²° ",512),[[b,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=="kuchishop"||e.mall_id=="thenofficial"]]),o[70]||(o[70]=t("th",null,"ë§í¬",-1))]),(f(!0),m(V,null,L(e.pagedata,(s,v)=>(f(),m("tr",{key:v},[t("td",null,[r(t("input",{type:"checkbox","onUpdate:modelValue":o[14]||(o[14]=c=>e.deleted_files=c),value:s.id},null,8,tt),[[J,e.deleted_files]])]),t("td",null,[r(t("input",{type:"text",class:"border border-solid w-[60px] py-1 px-1","onUpdate:modelValue":c=>s.order=c,oninput:"this.value = this.value.replace(/[ã±-ã
|ã
-ã
£|ê°-í£]/g, '' );",onChange:c=>p.changeOrder(s)},null,40,ot),[[g,s.order,void 0,{lazy:!0}]])]),t("td",lt,[t("div",{class:"snapimg w-[100px]",style:{cursor:"pointer"},onClick:c=>p.openDetailModal(s)},[s.is_video===0?(f(),m("img",{key:0,src:s.photo,alt:""},null,8,nt)):M("",!0),s.is_video===1?r((f(),m("video",{key:1,src:s.photo,alt:"",style:{height:"100%"},controls:"",loop:"",autoplay:s.video_auto_play,muted:""},null,8,at)),[[U,s.photo]]):M("",!0)],8,st)]),t("td",{class:"underline",onClick:c=>p.openDetailModal(s)},C(s.product_name),9,dt),t("td",null,C(s.product_option),1),t("td",null,[r(t("div",it,[t("input",{type:"checkbox",role:"switch",id:"toggle_radio_"+s.id,class:"toggle_radio",checked:s.video_auto_play===1,onChange:c=>p.updateAutoPlay(s.id,c.target.checked)},null,40,rt),t("label",{for:"toggle_radio_"+s.id},null,8,pt)],512),[[b,s.is_video===1]])]),r(t("td",null,[t("button",{type:"button",class:"underline",onClick:c=>p.openProductModal(s)}," ìíì°ê²° ",8,ut)],512),[[b,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=="
5kuchishop"||e.mall_id=="thenofficial"]]),t("td",ct,[t("a",{href:s.product_url,target:"_blank"},C(s.product_url),9,_t)])]))),128))])],512),[[b,e.total>0]])]),t("div",null,[r(t("ul",mt,[t("li",null,[P(E,{href:"#","aria-label":"Previous",current:e.current,"onUpdate:current":o[15]||(o[15]=s=>e.current=s),onChange:p.onChange,total:e.total,defaultPageSize:e.page_size,showSizeChanger:!1,class:"custom-pagination px-3 py-1.5"},{default:G(()=>o[71]||(o[71]=[t("span",{"aria-hidden":"true"},"«",-1)])),_:1},8,["current","onChange","total","defaultPageSize"])])],512),[[b,e.total>0]])])])],512),[[b,e.snap_payment_value>=1]]),P(T)])])]),r(t("div",ft,[t("div",bt,[t("div",gt,[o[74]||(o[74]=t("h3",null,"ì¤ë
ìì¹´ì´ë¸ ì½ë",-1)),t("a",{onClick:o[16]||(o[16]=s=>e.code_modal=!1)},o[73]||(o[73]=[t("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),t("div",ht,[r(t("div",null,[t("div",null,[o[75]||(o[75]=t("div",null," ìë ì½ë를 ë³µì¬íì¬ seoì ë°ëììì ë£ì´ì£¼ì¸ì. ",-1)),t("div",vt,C(e.code_body),1)]),t("div",yt,[t("div",null,[t("button",{type:"button",class:"btn_basic btn_cancel",style:{"margin-top":"20px"},onClick:o[17]||(o[17]=s=>p.copyCode(e.code_body))}," ë³µì¬ ")])])],512),[[b,e.mall_id==null]]),o[76]||(o[76]=t("div",{class:"mt-5"}," ìë ì½ë를 ë³µì¬íì¬ ì¤ë
ìì¹´ì´ë¸ íì´ì§ì ë£ì´ì£¼ì¸ì. ",-1)),t("div",wt,C(e.code_contents),1)]),t("div",kt,[t("div",null,[t("button",{type:"button",class:"btn_basic btn_cancel",onClick:o[18]||(o[18]=s=>p.copyCode(e.code_contents))}," ë³µì¬ ")]),t("div",null,[t("button",{type:"button",class:"btn_basic btn_BK",style:{"margin-left":"10px"},onClick:o[19]||(o[19]=s=>e.code_modal=!1)}," íì¸ ")])])])],512),[[b,e.code_modal]]),r(t("div",xt,[t("div",St,[t("div",Ct,[o[78]||(o[78]=t("h3",null,"ì¤ë
ë±ë¡",-1)),t("a",{onClick:o[20]||(o[20]=s=>p.closeAddSnap())},o[77]||(o[77]=[t("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),t("div",Ut,[t("div",Pt,[t("button",{type:"button",class:"btn_icon btn_basic border border-solid border-gray-300 !py-2 !px-5 !rounded-md h-10 flex items-center justify-center",onClick:o[21]||(o[21]=s=>p.clickMySnaps())},o[79]||(o[79]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}
5)],-1),w(" ë§ì´ì½í
ì¸ ë¶ë¬ì¤ê¸° ")])),t("input",{type:"file",multiple:"",onChange:o[22]||(o[22]=(...s)=>p.onPhotoChange&&p.onPhotoChange(...s)),ref:"file_snap",id:"file_snap",accept:"image/png, image/jpeg, image/jpg, video/mp4, video/quicktime",style:{display:"none"}},null,544),t("button",{type:"button",class:"btn_icon btn_basic border border-solid border-gray-300 !py-2 !px-5 !rounded-md h-10 flex items-center justify-center",onClick:o[23]||(o[23]=s=>e.$refs.file_snap.click())},o[80]||(o[80]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})],-1),w(" ì§ì ë±ë¡ ")])),t("input",{type:"file",id:"fileInput",style:{display:"none"},onChange:o[24]||(o[24]=(...s)=>p.onPhotoChange&&p.onPhotoChange(...s))},null,32)]),r(t("div",jt,o[81]||(o[81]=[t("i",{class:"fa-regular fa-folder fa-2xl"},null,-1),t("div",null,"ë±ë¡ë ì¤ë
ì´ ììµëë¤.",-1)]),512),[[b,e.snaps_add.length===0]]),t("div",null,[t("div",At,[(f(!0),m(V,null,L(e.snaps_add,(s,v)=>(f(),m("div",{key:v,class:"relative"},[t("div",{class:"absolute top-0 right-0 p-2",style:{"z-index":"100"},onClick:c=>p.removeSnap(s.id)},o[82]||(o[82]=[t("a",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-8"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])],-1)]),8,Vt),s.is_video===1?r((f(),m("video",Rt,o[83]||(o[83]=[w(" Your browser does not support the video tag. ")]))),[[U,s.photo]]):(f(),m("div",Mt,[t("img",{src:s.photo,alt:"",style:{"object-fit":"cover",width:"100%"},class:"h-56 object-cover"},null,8,Lt)])),t("div",Et,[t("div",null,[r(t("input",{type:"text","onUpdate:modelValue":c=>s.product_option=c,placeholder:"ì ë³´(@ìì´ë ëë 기í)",class:"border border-solid py-1 px-1 w-full text-md"},null,8,zt),[[g,s.product_option]])]),t("div",Ot,[r(t("input",{type:"text","onUpdate:modelValue":c=>s.product_name=c,placeholder:"ìíëª
",class:"border border-solid py-1 px-1 w-full text-md"},null,8,Nt),[[g,s.product_name]])]),t("div",Dt,[r(t("input",{type:"text","onUpdate:modelValue":c=>s.product_info=c,placeholder:"ìíì¤ëª
",class:"border border-solid py-1 px-1 w-full text-md"},null,8,Tt),[[g,s.product_info]])]),t("div",Bt,[r(t("input",{type:"text","onUpdate:modelValue":c=>s.product_url=c,placeholder:"ìíURL",class:"border border-solid py-1 px-1 w-full text-md"},null,8,It),[[g,s.product_url]])])])]))),128))])])]),t("div",{class:"text-center",onClick:o[25]||(o[25]=s=>p.save())},o[84]||(o[84]=[t("button",{type:"button",class:"btn_basic btn_BK"},"ë±ë¡",-1)]))])],512),[[b,e.modal_addsnaps]]),r(t("div",Ft,[t("div",Ht,[t("div",Kt,[o[86]||(o[86]=t("h3",{class:"text-xl font-semibold text-gray-800"}," ì¤ë
ìì ",-1)),t("button",{onClick:o[26]||(o[26]=s=>p.closeEditSnap()),class:"p-2 text-gray-500 hover:text-gray-700 transition-colors duration-200"},o[85]||(o[85]=[t("i",{class:"fa-solid fa-xmark fa-xl"},null,-1)]))]),t("div",$t,[t("div",Zt,[t("div",qt,[e.snaps_edit.is_video===1?r((f(),m("video",Wt,o[87]||(o[87]=[w(" Your browser does not support the video tag. ")]))),[[U,e.snaps_edit.photo]]):(f(),m("div",Yt,[t("img",{src:e.snaps_edit.photo,class:"h-96 object-cover w-full rounded-md"},null,8,Gt)]))]),t("div",Jt,[t("div",null,[o[88]||(o[88]=t("label",{for:"product_option",class:"block text-md font-medium text-gray-700 mb-1"},"ì ë³´(@ìì´ë ëë 기í)",-1)),r(t("input",{id:"product_option",type:"text","onUpdate:modelValue":o[27]||(o[27]=s=>e.snaps_edit.product_option=s),placeholder:"ì: 175cm, 65kg",class:"border border-solid py-2 px-3 w-full text-md rounded-md focus:ring-blue-500 focus:border-blue-500"},null,512),[[g,e.snaps_edit.product_option]])]),t("div",null,[o[89]||(o[89]=t("label",{for:"product_name",class:"block text-md font-medium text-gray-700 mb-1"},"ìíëª
",-1)),r(t("input",{id:"product_name",type:"text","onUpdate:modelValue":o[28]||(o[28]=s=>e.snaps_edit.product_name=s),class:"border border-solid py-2 px-3 w-full text-md rounded-md focus:ring-blue-500 focus:border-blue-500"},null,512),[[g,e.snaps_edit.product_name]])]),t("div",null,[o[90]||(o[90]=t("label",{for:"product_info",class:"block text-md font-medium text-gray-700 mb-1"},"ìíì¤ëª
",-1)),r(t("input",{id:"product_info",type:"text","onUpdate:modelValue":o[29]||(o[29]=s=>e.snaps_edit.product_info=s),placeholder:"ì: ë©´ 100%, ì¤ë²ì¬ì´ì¦ í",class:"border border-solid py-2 px-3 w-full text-md rounded-md focus:ring-blue-500 focus:border-blue-500"},null,512),[[g,e.snaps_edit.product_info]])]),t("div",null,[o[91]||(o[91]=t("label",{for:"product_url",class:"block text-md font-medium text-gray-700 mb-1"},"ìíURL",-1)),r(t("input",{id:"product_url",type:"text","onUpdate:modelValue":o[30]||(o[30]=s=>e.snaps_edit.product_url=s),placeholder:"ì: https://shop.com/item123",class:"border border-solid py-2 px-3 w-full text-md rounded-md focus:ring-blue-500 focus:border-blue-500"},null,512),[[g,e.snaps_edit.product_url]])])])])]),t("div",Qt,[t("button",{type:"button",class:"btn_basic btn_BK text-white font-semibold py-2 px-4 roun
5ded-md transition-colors duration-200 w-full",onClick:o[31]||(o[31]=s=>p.update())}," ì ì¥ ")])])],512),[[b,e.modal_editsnaps]]),r(t("div",Xt,[t("div",eo,[t("div",to,[o[93]||(o[93]=t("h3",null,"ìíì°ê²°",-1)),t("a",{onClick:o[32]||(o[32]=s=>p.closeProductModal()),class:"relative top-0 left-32 p-2"},o[92]||(o[92]=[t("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),t("div",oo,[t("div",lo,[e.snaps_edit.is_video===1?r((f(),m("video",so,o[94]||(o[94]=[w(" Your browser does not support the video tag. ")]))),[[U,e.snaps_edit.photo]]):(f(),m("div",no,[t("img",{src:e.snaps_edit.photo,class:"h-48 object-contain w-full mb-4"},null,8,ao)])),t("div",io,[o[97]||(o[97]=t("div",{class:"font-medium text-lg mb-2"}," ì°ê²°ë ìí ëª©ë¡ ",-1)),e.linked_products.length===0?(f(),m("div",ro,o[95]||(o[95]=[t("div",null,"ì°ê²°ë ìíì´ ììµëë¤.",-1)]))):(f(),m("div",po,[(f(!0),m(V,null,L(e.linked_products,(s,v)=>(f(),m("div",{key:v,class:"flex items-center p-3 border-b border-solid border-gray-200 last:border-b-0"},[t("img",{src:s.small_image,alt:"ìí ì´ë¯¸ì§",class:"w-12 h-12 object-cover rounded mr-3"},null,8,uo),t("div",co,[t("div",_o,[r(t("input",{type:"text",style:{height:"30px",width:"80%"},placeholder:"ìíëª
",class:"px-3 py-2","onUpdate:modelValue":c=>s.product_name=c},null,8,mo),[[g,s.product_name]])]),t("div",fo,[r(t("input",{type:"text",style:{height:"30px",width:"80%"},placeholder:"ìíì¤ëª
",class:"px-3 py-2","onUpdate:modelValue":c=>s.description=c},null,8,bo),[[g,s.description]])]),t("div",go,[r(t("input",{type:"number",style:{height:"30px",width:"39.5%"},class:"px-3 py-2",placeholder:"í ì¸ì¨ (ì«ìë§ ì
ë ¥)","onUpdate:modelValue":c=>s.discount_rate=c},null,8,ho),[[g,s.discount_rate]]),r(t("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":c=>s.price=c},null,8,vo),[[g,s.price]])])]),t("button",{onClick:c=>p.removeLinkedProduct(v),class:"text-red-500 hover:text-red-700 transition ml-2"},o[96]||(o[96]=[t("i",{class:"fa-solid fa-trash"},null,-1)]),8,yo)]))),128))]))]),t("div",wo,[o[99]||(o[99]=t("div",{class:"font-medium text-lg mb-2"}," ìí ê²ì ",-1)),t("div",ko,[r(t("input",{type:"text",placeholder:"ìíëª
, ìíë²í¸ ê²ì",class:"w-full","onUpdate:modelValue":o[33]||(o[33]=s=>e.product_search_word=s),onKeyup:o[34]||(o[34]=Y((...s)=>p.searchProducts&&p.searchProducts(...s),["enter"])),style:{border:"none"}},null,544),[[g,e.product_search_word]]),t("button",{type:"button",onClick:o[35]||(o[35]=(...s)=>p.searchProducts&&p.searchProducts(...s)),class:"ml-2"},o[98]||(o[98]=[t("i",{class:"fa-solid fa-magnifying-glass fa-lg"},null,-1)]))])]),t("div",xo,[e.product_search_loading?(f(),m("div",So,o[100]||(o[100]=[t("div",null,"ê²ì ì¤...",-1)]))):e.product_search_results.length===0&&e.product_search_performed?(f(),m("div",Co,o[101]||(o[101]=[t("div",null,"ê²ì ê²°ê³¼ê° ììµëë¤.",-1)]))):(f(),m("div",Uo,[(f(!0),m(V,null,L(e.product_search_results,(s,v)=>(f(),m("div",{key:v,class:"border-b border-solid border-gray-200 py-3 px-2 cursor-pointer hover:bg-gray-100",onClick:c=>p.addToLinkedProducts(s)},[t("div",jo,[t("img",{src:s.small_image,alt:"ìí ì´ë¯¸ì§",class:"w-12 h-12 object-cover rounded mr-3"},null,8,Ao),t("div",Vo,[t("div",Ro,C(s.product_name),1),t("div",Mo,C(s.price?s.price.toLocaleString()+"ì":"ê°ê²© ì ë³´ ìì"),1)]),o[102]||(o[102]=t("button",{class:"text-blue-500 hover:text-blue-700 transition ml-2"},[t("i",{class:"fa-solid fa-plus"})],-1))])],8,Po))),128))]))])])]),t("div",Lo,[t("button",{type:"button",class:"btn_basic btn_cancel",onClick:o[36]||(o[36]=s=>p.closeProductModal())}," ì·¨ì "),t("button",{type:"button",class:"btn_basic btn_BK",onClick:o[37]||(o[37]=(...s)=>p.saveLinkedProducts&&p.saveLinkedProducts(...s))}," ì ì¥í기 ")])])],512),[[b,e.modal_product]]),r(t("div",Eo,[t("div",zo,[t("div",Oo,[o[104]||(o[104]=t("h3",null,"ë§ì´ì½í
ì¸ ",-1)),t("a",{onClick:o[38]||(o[38]=s=>p.closeMySnaps())},o[103]||(o[103]=[t("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),t("div",No,[r(t("div",Do,o[105]||(o[105]=[t("i",{class:"fa-regular fa-folder fa-2xl"},null,-1),t("div",null,"ì½í
ì¸ ê° ììµëë¤.",-1)]),512),[[b,e.mycontents.data.length===0]]),t("div",null,[r(t("div",To,[(f(!0),m(V,null,L(e.mycontents.page_data,s=>(f(),m("div",{class:"listview_con",key:s.id},[r(t("input",{type:"checkbox",id:"img01"+s.id,value:s,"onUpdate:modelValue":o[39]||(o[39]=v=>e.mycontents.checked=v)},null,8,Bo),[[J,e.mycontents.checked]]),t("label",{class:"snapimg",for:"img01"+s.id},[s.is_video===0?(f(),m("img",{key:0,src:s.photo,alt:""},null,8,Fo)):M("",!0),s.is_video===1?r((f(),m("video",{key:1,src:s.photo,alt:""},null,8,Ho)),[[U,s.photo]]):M("",!0)],8,Io)]))),128))],512),[[b,e.mycontents.data.length>0]]),t("div",null,[r(t("ul",Ko,[t("li",null,[P(E,{href:"#","aria-label":"Previous",current:e.mycontents.current,"onUpdate:current":o[40]||(o[40]=s=>e.mycontents.current=s),onChange:p.onChangeMycontents,total:e.mycontents.total,defaultPageSize:e.mycontents.page_size,showSizeChanger:!1,class:"custom-pagination px-3 py-1.5"},{default:G(()=>o[106]||(o[106]=[t("span",{"aria-hidden":"true"},"«",-1)])),_:1},8,["current","onChange","total","defaultPageSize"])])],512),[[b,e.total>0]])])])]),t("div",{class:"text-center",onClick:o[41]||(o[41]=s=>p.addFromMycontents())},o[107]||(o[107]=[t("button",{type:"button",class:"btn_basic btn_BK"},"ë±ë¡",-1)]))])],512),[[b,e.modal_mysnaps]]),r(t("div",$o,[t("div",Zo,[t("div",qo,[o[109]||(o[109]=t("h3",null,"ì¤ë
ìì¹´ì´ë¸ ëìì¸ ì¤ì ",-1)),t("a",{onClick:o[42]||(o[42]=s=>e.show_snap_setting_modal=!1)},o[108]||(o[108]=[t("i",{class:"fa-solid fa-xmark fa-2xl"},null,-1)]))]),t("div",Wo,[t("div",null,[t("div",Yo,[o[112]||(o[112]=t("label",{class:"block mb-2"},"íë¬ì¤ ìì´ì½ ë
¸ì¶",-1)),t("div",Go,[t("label",Jo,[r(t("input",{type:"radio","onUpdate:modelValue":o[43]||(o[43]=s=>e.plus_icon=s),value:1,class:"mr-2"},null,512),[[j,e.plus_icon]]),o[110]||(o[110]=w(" On "))]),t("label",Qo,[r(t("input",{type:"radio","onUpdate:modelValue":o[44]||(o[44]=s=>e.plus_icon=s),value:0,class:"mr-2"},null,512),[[j,e.plus_icon]]),o[111]||(o[111]=w(" Off "))])])]),t("div",null,[o[115]||(o[115]=t("label",{class:"block mb-2"},"ì¤ì ë
¸ì¶",-1)),t("div",Xo,[t("label",el,[r(t("input",{type:"radio","onUpdate:modelValue":o[45]||(o[45]=s=>e.dash_line=s),value:1,class:"mr-2"}
5,null,512),[[j,e.dash_line]]),o[113]||(o[113]=w(" On "))]),t("label",tl,[r(t("input",{type:"radio","onUpdate:modelValue":o[46]||(o[46]=s=>e.dash_line=s),value:0,class:"mr-2"},null,512),[[j,e.dash_line]]),o[114]||(o[114]=w(" Off "))])])])])]),t("div",ol,[t("button",{type:"button",class:"btn_basic btn_cancel",onClick:o[47]||(o[47]=s=>e.show_snap_setting_modal=!1)}," ì·¨ì "),t("button",{type:"button",class:"btn_basic btn_BK",onClick:o[48]||(o[48]=(...s)=>p.saveSnapSetting&&p.saveSnapSetting(...s))}," ì ì¥ ")])])],512),[[b,e.show_snap_setting_modal]])]),P(B,{loading:e.is_loading},null,8,["loading"])],64)}const _l=ke(Oe,[["render",ll]]);export{_l 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.