PageSourceSearch

https://transnusa.co.id/_nuxt/CyZmRnUQ.js

js transnusa.co.id collected 2026-10-04 02:13:58 UTC 19,602 bytes, 1 lines download raw bytes

1import{_ as Q,a as Z}from"./DvMRuQhr.js";import{_ as ee}from"./DD0o8Okc.js";import{u as te,r as y,f as q,g as H,I as oe,A,c as v,o as p,a as e,b as x,i as o,w as ne,j as G,B as N,t as U,F,k as L,m as le,T as ae,G as se,s as W,p as E,C as Y,D as R,J as re,E as ie,z as O}from"./BsPDJMot.js";import{_ as de}from"./DjjGb2WR.js";import{u as J}from"./B1ENDjmF.js";import{u as X}from"./B7JVLDHN.js";import{_ as ue}from"./BKhBBbFz.js";import{_ as ce}from"./B-gng95S.js";import{_ as me}from"./FSLWGB1S.js";import"./u7oVW6lP.js";import"./DRhmzE9v.js";import"./DlAUqK2U.js";const pe=["value","placeholder"],fe={key:0,class:"absolute w-72 top-full left-0 mt-2 bg-white rounded-lg shadow-lg p-4 z-50"},ge={class:"flex justify-between items-center mb-4"},ve={class:"font-medium"},ye={class:"grid grid-cols-7 gap-1"},be=["onClick"],he={__name:"field-datepickerr-view",props:{modelValue:{type:Date,default:null},placeholder:{type:String,default:null},minDate:{type:Date,default:null}},emits:["update:modelValue"],setup(D,{emit:P}){const{t:k,locale:w}=te(),r=D,f=r.placeholder??k("common.selectDate"),b=P,h=y(null),i=y(r.modelValue||new Date),m=y(!1),c=["Su","Mo","Tu","We","Th","Fr","Sa"],V=n=>n?n.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",l=n=>n.toLocaleDateString("en-US",{year:"numeric",month:"long"}),B=q(()=>{const n=i.value.getFullYear(),s=i.value.getMonth(),a=new Date(n,s,1),u=new Date(n,s+1,0),g=[];for(let _=0;_<a.getDay();_++)g.unshift(new Date(n,s,-_));for(let _=1;_<=u.getDate();_++)g.push(new Date(n,s,_));const z=42-g.length;for(let _=1;_<=z;_++)g.push(new Date(n,s+1,_));return g}),$=n=>n.getMonth()===i.value.getMonth(),C=(n,s)=>!n||!s?!1:n.toDateString()===s.toDateString(),M=()=>{i.value=new Date(i.value.getFullYear(),i.value.getMonth()-1)},I=()=>{i.value=new Date(i.value.getFullYear(),i.value.getMonth()+1)},j=n=>{r.minDate&&n<r.minDate||$(n)&&(b("update:modelValue",n),m.value=!1)},T=()=>{m.value=!m.value},d=n=>{h.value&&!h.value.contains(n.target)&&(m.value=!1)},t=n=>{n.key==="Escape"&&m.value&&(m.value=!1)};return H(()=>{document.addEventListener("click",d),document.addEventListener("keydown",t)}),oe(()=>{document.removeEventListener("click",d),document.removeEventListener("keydown",t)}),A(()=>r.modelValue,n=>{n&&(i.value=new Date(n))}),(n,s)=>{const a=ee;return p(),v("div",{ref_key:"datePickerRef",ref:h,class:"relative select-none"},[e("input",{readonly:"",type:"text",value:V(D.modelValue),placeholder:o(f),class:"w-full rounded-lg py-1 pt-2 px-3 rounded-lg focus:outline-none cursor-pointer",onClick:T},null,8,pe),e("div",{class:"absolute pt-2 right-3 top-1/2 -translate-y-1/2",onClick:T},[x(a,{icon:["fas","calendar-day"],class:"text-[#0f1b72]"})]),x(ae,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:ne(()=>[o(m)?(p(),v("div",fe,[e("div",ge,[e("div",{onClick:N(M,["stop","prevent"]),class:"p-1"},[x(a,{icon:["fas","chevron-left"],class:"text-[#0f1b72]"})]),e("span",ve,U(l(o(i))),1),e("div",{onClick:N(I,["stop","prevent"]),class:"p-1"},[x(a,{icon:["fas","chevron-right"],class:"text-[#0f1b72]"})])]),e("div",ye,[(p(),v(F,null,L(c,u=>e("div",{key:u,class:"w-8 h-8 flex items-center justify-center text-sm font-medium text-gray-700"},U(u),1)),64)),(p(!0),v(F,null,L(o(B),u=>(p(),v("div",{key:u.getTime(),class:le(["w-8 h-8 flex items-center justify-center text-sm",[$(u)?"hover:bg-blue-50 cursor-pointer":"text-gray-300",C(u,D.modelValue)?"bg-blue-500 text-white rounded-full":"",D.minDate&&u<D.minDate.setHours(0,0,0,0)?"opacity-50 cursor-not-allowed":"",$(u)?"":"pointer-events-none"]]),onClick:N(g=>j(u),["stop"])},U(u.getDate()),11,be))),128))])])):G("",!0)]),_:1})],512)}}},xe={class:"grid md:grid-cols-2 gap-3"},we={__name:"field-datepicker-range-view",props:{modelValue:{type:Object,default:()=>({departure:null,return:null})}},emits:["update:modelValue"],setup(D,{emit:P}){const k=D,w=P,r=se({begin:k.modelValue.begin,end:k.modelValue.end});return A(r,f=>{w("update:modelValue",{begin:f.begin,end:f.end})},{deep:!0}),A(()=>k.modelValue,f=>{r.begin=f.begin,r.end=f.end},{deep:!0}),A(()=>r.begin,f=>{r.end&&f>r.end&&(r.end=null)}),(f,b)=>{const h=he;return p(),v("div",xe,[x(h,{class:"border rounded-lg",modelValue:o(r).begin,"onUpdate:modelValue":b[0]||(b[0]=i=>o(r).begin=i),placeholder:"Begin at","min-date":new Date},null,8,["modelValue","min-date"]),x(h,{class:"border rounded-lg",modelValue:o(r).end,"onUpdate:modelValue":b[1]||(b[1]=i=>o(r).end=i),placeholder:"End at","min-date":o(r).begin},null,8,["modelValue","min-date"])])}}},_e={class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50"},De={class:"bg-white rounded-lg p-6 w-full max-w-3xl max-h-[90vh] overflow-y-auto"},ke={class:"flex justify-between items-center mb-4"},Ce={class:"text-xl font-bold"},Ve={class:"grid grid-cols-3 gap-3"},$e={class:"grid grid-cols-3 col-span-3 gap-3"},Ue={class:"col-span-3"},Pe={class:"grid grid-cols-2 gap-3 col-span-3"},Me={class:"relative"},Se={class:"relative"},Ee={key:0,class:"grid grid-cols-2 gap-3 col-span-3"},Ie={class:"col-span-2"},Te={class:"relative"},Fe=["label"],Le=["value"],Be={class:"relative"},je=["label"],Re=["value","disabled"],Ae={class:"relative"},ze={class:"col-span-3"},Oe={class:"col-span-3"},Ne={class:"mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-lg hover:border-gray-400"},qe={class:"space-y-2 text-center"},Ge={key:0,class:"text-gray-600"},Ye=["src"],He={class:"col-span-3 flex justify-center space-x-2 items-center pt-4"},We=["disabled"],Je={__name:"promotions-view",props:{editData:{type:Object,default:null},form:{type:String}},emits:["close","updated","created"],setup(D,{expose:P,emit:k}){const{$notify:w}=W(),{auth:r}=J(),{baseURL:f}=X(),b=k,h=y(null),i=y([]),m=y(!1),c=D,V=q(()=>!!c.editData),l=y({type:"hotel",name:"",from:"",to:"",content:"",region:"en",description:"",thumbnail:"",between:{begin:null,end:null},price:"",category:"hotel",url:"",title:""}),B=async()=>{try{m.value=!0;const d=await fetch(`${f}/airports`,{headers:{"X-Device-Id":r.deviceId}});if(!d.ok)throw new Error("Failed to fetch airports");const t=await d.json();i.value=t.data.sort((n,s)=>n.name.localeCompare(s.name))}catch(d){console.error("Error fetching airports:",d)}finally{m.value=!1}},$=q(()=>i.value.reduce((d,t)=>(d[t.country_name]||(d[t.country_name]=[]),d[t.country_name].push(t),d),{})),C=y(null),M=()=>{l.value={type:"hotel",name:"",from:"",to:"",content:"",region:"en",currency:"USD",description:"",thumbnail:"",between:{begin:null,end:null},price:0,category:"hotel",url:"",title:""},C.value=null,h.value&&(h.value.value="")},I=()=>{c.editData&&c.form==="edit"?(l.value={...c.editData},l.value.between={begin:new Date(c.editData.period_begin_at),end:new Date(c.editData.period_end_at)},l.value.price=c.editData.begin_price_at,c.editData.thumbnail&&(C.value=c.editData.thumbnail,l.value.thumbnail=null)):M()};A(()=>c.editData,()=>{I()},{immediate:!0}),H(async()=>{await B(),I()});const j=async d=>{const t=d.target.files[0];if(!t)return;
1if(!["image/png","image/jpeg","image/gif","image/webp"].includes(t.type)){w.add({title:"Invalid File",message:"Please upload only PNG, JPG, GIF, or WEBP images",type:"error"});return}if(t.size>10*1024*1024){w.add({title:"File Too Large",message:"File size should not exceed 10MB",type:"error"});return}try{const s=await new Promise(a=>{const u=new FileReader;u.onload=g=>a(g.target.result),u.readAsDataURL(t)});l.value.thumbnail=s,C.value=URL.createObjectURL(t)}catch(s){console.error("Error processing image:",s),w.add({title:"Error",message:"Failed to process image. Please try again.",type:"error"})}},T=async()=>{try{if(m.value=!0,l.value.category==="flight"){if(l.value.period_begin_at=l.value.between.begin,l.value.period_end_at=l.value.between.end,!l.value.from||!l.value.to){w.add({title:"Validation Error",message:"Please select both origin and destination airports",type:"error"});return}if(!l.value.price){w.add({title:"Validation Error",message:"Please enter a starting price",type:"error"});return}}const d=`${f}/contents/promotions${c.editData?`/${c.editData.id}`:""}`,t=c.editData?"PUT":"POST",n=await fetch(d,{method:t,headers:{"Content-Type":"application/json","X-Device-Id":r.deviceId,Authorization:`Bearer ${r.getToken()}`},body:JSON.stringify(l.value)});if(!n.ok){const s=await n.json().catch(()=>({}));let a=`Failed to  ${c.editData?"update":"create"} promotion`;throw s&&s.meta&&s.meta.message&&(a=s.meta.message),new Error(a)}w.add({title:"Success",message:`Promotion ${c.editData?"updated":"created"} successfully`,type:"success"}),M(),b(c.editData?"updated":"created"),b("close")}catch(d){w.add({title:"Error",message:d.message||`Failed to asdasd ${c.editData?"update":"create"} promotion`,type:"error"})}finally{m.value=!1}};return P({reset:M}),(d,t)=>{const n=we,s=de;return p(),v("div",_e,[e("div",De,[e("div",ke,[e("h2",Ce,U(o(V)?"Edit":"Add")+" Promotions",1),e("button",{onClick:t[0]||(t[0]=a=>d.$emit("close")),class:"text-gray-500 hover:text-gray-700"},"✕")]),e("form",{onSubmit:N(T,["prevent"]),class:"space-y-4"},[e("div",Ve,[e("div",$e,[e("div",Ue,[t[12]||(t[12]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Title",-1)),E(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>o(l).title=a),type:"text",maxlength:"128",required:"",class:"w-full px-3 pt-2 py-1 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"},null,512),[[Y,o(l).title]])])]),e("div",Pe,[e("div",null,[t[15]||(t[15]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Category",-1)),e("div",Me,[E(e("select",{"onUpdate:modelValue":t[2]||(t[2]=a=>o(l).category=a),class:"appearance-none w-full pl-3 pr-10 pt-2 py-1 bg-white border border-gray-300 rounded-lg text-gray-700 focus:outline-none focus:ring-2 focus:ring-green-500 cursor-pointer"},t[13]||(t[13]=[e("option",{value:"hotel"},"Hotel",-1),e("option",{value:"flight"},"Flights",-1),e("option",{value:"partner-offers"},"Partner Offers",-1),e("option",{value:"product-offers"},"Product Offers",-1)]),512),[[R,o(l).category]]),t[14]||(t[14]=e("div",{class:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none"},[e("svg",{class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1))])]),e("div",null,[t[18]||(t[18]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Region (Language)",-1)),e("div",Se,[E(e("select",{"onUpdate:modelValue":t[3]||(t[3]=a=>o(l).region=a),class:"appearance-none w-full pl-3 pr-10 pt-2 py-1 bg-white border border-gray-300 rounded-lg text-gray-700 focus:outline-none focus:ring-2 focus:ring-green-500 cursor-pointer"},t[16]||(t[16]=[e("option",{value:"en"},"English",-1),e("option",{value:"id"},"Indonesia",-1),e("option",{value:"cn"},"China",-1),e("option",{value:"my"},"Malaysia",-1)]),512),[[R,o(l).region]]),t[17]||(t[17]=e("div",{class:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none"},[e("svg",{class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1))])])]),o(l).category==="flight"?(p(),v("div",Ee,[e("div",Ie,[x(n,{modelValue:o(l).between,"onUpdate:modelValue":t[4]||(t[4]=a=>o(l).between=a)},null,8,["modelValue"])]),e("div",null,[t[21]||(t[21]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"From",-1)),e("div",Te,[E(e("select",{"onUpdate:modelValue":t[5]||(t[5]=a=>o(l).from=a),required:"",class:"appearance-none w-full pl-3 pr-10 pt-2 py-1 bg-white border border-gray-300 rounded-lg text-gray-700 focus:outline-none focus:ring-2 focus:ring-green-500 cursor-pointer"},[t[19]||(t[19]=e("option",{value:""},"Select departure airport",-1)),(p(!0),v(F,null,L(o($),(a,u)=>(p(),v("optgroup",{key:u,label:u},[(p(!0),v(F,null,L(a,g=>(p(),v("option",{key:g.id,value:g.code},U(g.name),9,Le))),128))],8,Fe))),128))],512),[[R,o(l).from]]),t[20]||(t[20]=e("div",{class:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none"},[e("svg",{class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1))])]),e("div",null,[t[24]||(t[24]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"To",-1)),e("div",Be,[E(e("select",{"onUpdate:modelValue":t[6]||(t[6]=a=>o(l).to=a),required:"",class:"appearance-none w-full pl-3 pr-10 pt-2 py-1 bg-white border border-gray-300 rounded-lg text-gray-700 focus:outline-none focus:ring-2 focus:ring-green-500 cursor-pointer"},[t[22]||(t[22]=e("option",{value:""},"Select arrival airport",-1)),(p(!0),v(F,null,L(o($),(a,u)=>(p(),v("optgroup",{key:u,label:u},[(p(!0),v(F,null,L(a,g=>(p(),v("option",{key:g.id,value:g.code,disabled:g.id===o(l).from},U(g.name),9,Re))),128))],8,je))),128))],512),[[R,o(l).to]]),t[23]||(t[23]=e("div",{class:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none"},[e("svg",{class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1))])]),e("div",null,[t[25]||(t[25]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Starting Price",-1)),E(e("input",{"onUpdate:modelValue":t[7]||(t[7]=a=>o(l).price=a),type:"number",required:"",min:"0",class:"w-full px-3 pt-2 py-1 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"},null,512),[[Y,o(l).price]])]),e("div",null,[t[28]||(t[28]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Currency",-1)),e("div",Ae,[E(e("select",{"onUpdate:modelValue":t[8]||(t[8]=a=>o(l).currency=a),class:"appearance-none w-full pl-3 pr-10 pt-2 py-1 bg-white border border-gray-300 rounded-lg text-gray-700 focus:outline-none focus:ring-2 focus:ring-green-500 cursor-pointer"},t[26]||(t[26]=[re('<option value="USD">USD</option><option value="IDR">IDR</option><option value="CNY">CNY</option><option value="MYR">MYR</option><option value="AUD">AUD</option>',5)]),512),[[R,o(l).currency]]),t[27]||(t[27]=e("div",{class:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none"},[e("svg",{class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1))])])])):G("",!0),e("div",ze,[t[29]||(t[29]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Content",-1)),x(s,{modelValue:o(l).content,"onUpdate:modelValue":t[9]||(t[9]=a=>o(l).content=a),height:"250px",placeholder:"Write your promotion content here..."},null,8,["modelValue"])]),e("div",Oe,[t[31]||(t[31]=e("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"Thumbnail",-1)),e("div",Ne,[e("div",qe,[o(C)?(p(),v("img",{key:1,src:o(C),alt:"Preview",class:"mx-auto max-h-40 rounded-lg"},null,8,Ye)):(p(),v("div",Ge,t[30]||(t[30]=[e("svg",{class:"mx-auto h-12 w-12",stroke:"currentColor",fill:"none",viewBox:"0 0 48 48"},[e("path",{d:"M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4-4m4-4h8m-4-4v8m-12 4h.02","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),e("p",{class:"mt-1"},"Drop files here or click to upload",-1),e("p",{class:"text-xs text-gray-500"},"PNG, JPG, GIF, WEBP up to 10MB",-1)]))),e("input",{type:"file",accept:"image/*",onChange:j,class:"hidden",ref_key:"fileInput",ref:h}
1,null,544),e("button",{type:"button",onClick:t[10]||(t[10]=a=>d.$refs.fileInput.click()),class:"text-sm text-green-600 hover:text-green-500"},U(o(C)?"Change file":"Select file"),1)])])]),e("div",He,[e("button",{type:"button",onClick:t[11]||(t[11]=a=>d.$emit("close")),class:"px-12 pt-2 py-1 border border-gray-300 rounded-md hover:bg-gray-50"},"Cancel"),e("button",{type:"submit",disabled:o(m),class:"px-12 pt-2 py-1 bg-green-600 text-white rounded-md hover:bg-green-700 disabled:opacity-50"},U(o(m)?"Saving...":"Save"),9,We)])])],32)])])}}},Xe={class:"container mx-auto max-w-[1300px] px-12 mt-10 pb-10"},Ke={class:"border rounded-2xl p-3 py-7 shadow-md"},Qe={class:"flex justify-between items-center px-5"},Ze={class:"flex justify-between items-center space-x-3 px-5 mt-5"},et={class:"flex space-x-3 items-center"},pt={__name:"promotions",setup(D){const{$notify:P}=W(),{auth:k}=J(),{baseURL:w}=X(),r=y(null),f=y(!1),b=y(null),h=y(""),i=y(null),m=y("all"),c=y({all:"All Category",hotel:"Hotel",flight:"Flights","partner-offers":"Partner Offers","product-offers":"Product Offers"}),V=y("all"),l=y({all:"All Region",en:"English",id:"Indonesia",cn:"China",my:"Malaysia"}),B=()=>{b.value=null,i.value="new"},$=n=>{b.value=n,f.value=!0},C=async()=>{try{await $fetch(`${w}/contents/promotions/${b.value.id}`,{method:"DELETE",headers:{"Content-Type":"application/json","X-Device-Id":k.deviceId,Authorization:`Bearer ${k.getToken()}`}}),r.value.refresh(),P.add({title:"Success",message:"Promotion successfully deleted"}),b.value=null,f.value=!1}catch(n){console.error("Delete failed:",n)}},M=n=>{b.value=n,i.value="edit"},I=()=>{i.value=null},j=()=>{r.value.refresh()},T=()=>{r.value.refresh()},d=q(()=>{const n={};return m.value!=="all"&&(n.category=m.value),V.value!=="all"&&(n.region=V.value),n}),t=y({thumbnail:{text:"Thumbnail",type:"thumbnail",maxWidth:200},title:{text:"Title",description:"content",html:!0,truncate:200},category:{text:"Category",type:"enum",list:{data:{flight:"Flight",hotel:"Hotel","product-offers":"Product Offers","partner-offers":"Partner Offers"}}},region:{text:"Region",type:"enum",list:{data:{id:"Indonesia",my:"Malaysia",cn:"China",en:"English"}}}});return(n,s)=>{const a=Q,u=Je,g=ue,z=ce,_=me,K=Z;return p(),v("div",Xe,[e("div",Ke,[x(a,{modelValue:o(f),"onUpdate:modelValue":s[0]||(s[0]=S=>O(f)?f.value=S:null),onConfirm:C},null,8,["modelValue"]),o(i)?(p(),ie(u,{key:0,form:o(i),"edit-data":o(b),onClose:I,onCreated:j,onUpdated:T},null,8,["form","edit-data"])):G("",!0),e("div",Qe,[s[4]||(s[4]=e("div",null,[e("div",{class:"font-[600] text-lg leading-3"},"Promotions"),e("div",null,"Manage Promotions")],-1)),e("div",null,[x(g,{icon:"plus",text:"Add Promotions",onClick:B})])]),e("div",Ze,[e("div",et,[x(z,{modelValue:o(m),"onUpdate:modelValue":s[1]||(s[1]=S=>O(m)?m.value=S:null),items:o(c)},null,8,["modelValue","items"]),x(z,{modelValue:o(V),"onUpdate:modelValue":s[2]||(s[2]=S=>O(V)?V.value=S:null),items:o(l)},null,8,["modelValue","items"])]),e("div",null,[x(_,{modelValue:o(h),"onUpdate:modelValue":s[3]||(s[3]=S=>O(h)?h.value=S:null)},null,8,["modelValue"])])]),x(K,{ref_key:"promotionsTableRef",ref:r,class:"mt-10",index:!0,query:o(d),search:o(h),onDelete:$,onEdit:M,url:`${o(w)}/contents/promotions?data=full`,columns:o(t)},null,8,["query","search","url","columns"])])])}}};export{pt 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.