1import{a as p,v as R,x as a,j as e,B as u,y as d,H as c,q as s,f,I as h,i as L,G as V,L as _,Q as C,b as B}from"./@vue-4474Gfnj.js";import{l as b,u as I}from"./@inertiajs-7zqq8wgj.js";import E from"./Master-8hrKjlJk.js";import"./qs-C7saBnVC.js";import"./side-channel-BLCytySV.js";import"./es-errors-B3qLL4WI.js";import"./object-inspect--bXPCECa.js";import"./side-channel-list-BCZJqq54.js";import"./side-channel-map-D4vBmt7j.js";import"./get-intrinsic-DvtG1oIa.js";import"./es-object-atoms-BR76m4z7.js";import"./math-intrinsics-DP1tGiab.js";import"./gopd-C1lCZ5Qs.js";import"./es-define-property-D_7cP-M3.js";import"./has-symbols-BaUvM3gb.js";import"./get-proto-MZ3MALak.js";import"./dunder-proto-C6VzgWTX.js";import"./call-bind-apply-helpers-C9UlVOU4.js";import"./function-bind-CHqF18-c.js";import"./hasown-DwiY0sux.js";import"./call-bound-B0s5y60d.js";import"./side-channel-weakmap-Kf8cPeRJ.js";import"./axios-DjWHqwoD.js";import"./lodash-es-DY0-vtN4.js";import"./laravel-precognition-BqdyoEeO.js";import"./Header-CHiIfWKN.js";import"./app-B3xOPy74.js";import"./laravel-vite-plugin-DEL3ZhID.js";import"./@iconify-DROonR5K.js";import"./vue-fast-marquee-CkwowO8X.js";import"./InfoMarq-ch0ch5gJ.js";import"./Footer-BnNAS5OO.js";/* empty css */const N={class:"red-box-cus container mx-auto px-2 pb-4"},$={class:"max-w-3xl mx-auto"},M={class:"flex w-1/2 mb-5 gap-2"},O={class:"border p-3 mb-4"},U={class:"flex items-center gap-2"},K={key:0,class:"break-all text-sm text-white"},P={key:1,class:"text-sm text-gray-500"},j={key:0,class:"copy-toast text-white"},q={class:"form-group-full mb-2 flex items-center gap-4"},A={class:"form-group-full mb-2 flex items-center gap-4"},Ct={__name:"Refcomm",setup(F){var v,x,y,w,k;const g=I(),S=((y=(x=(v=g.props)==null?void 0:v.auth)==null?void 0:x.user)==null?void 0:y.loginid)??((k=(w=g.props)==null?void 0:w.user)==null?void 0:k.loginid)??"",l=B(()=>`${window.location.origin}/ref/${S}`),i=p(new Date().toISOString().slice(0,10)),n=p(new Date().toISOString().slice(0,10)),r=p("");function D(){const o=l.value;if(navigator.clipboard&&navigator.clipboard.writeText){navigator.clipboard.writeText(o).then(()=>{r.value="Copied",setTimeout(()=>r.value="",2e3)});return}const t=document.createElement("input");t.value=o,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),r.value="Copied",setTimeout(()=>r.value="",2e3)}function T(){const o=new URLSearchParams({startDate:i.value,endDate:n.value});window.location.href=`/refcomm?${o.toString()}`}return(o,t)=>(s(),R(E,{title:"Referral Commission"},{default:a(()=>[e("div",N,[t[9]||(t[9]=e("div",{class:"text-center mb-6 border-b-2 border-neutral-800"},[e("h1",{class:"text-3xl font-bold maincolor p-2 inline-block"},"KOMISI REFERRAL")],-1)),e("div",$,[e("div",M,[u(d(b),{class:"btn-cus bg-gray-600 hover:bg-gray-400",href:o.route("refdata")},{default:a(()=>[...t[2]||(t[2]=[c("Data",-1)])]),_:1},8,["href"]),u(d(b),{class:"btn-cus bg-yellow-500 !text-black",href:o.route("refcomm")},{default:a(()=>[...t[3]||(t[3]=[c("Komisi",-1)])]),_:1},8,["href"]),u(d(b),{class:"btn-cus bg-gray-600 hover:bg-gray-400",href:o.route("refreg")},{default:a(()=>[...t[4]||(t[4]=[c("Daftar",-1)])]),_:1},8,["href"])]),e("fieldset",O,[t[5]||(t[5]=e("legend",{class:"px-2 text-white"},"Link Referral:",-1)),e("div",U,[l.value?(s(),f("label",K,h(l.value),1)):(s(),f("span",P,"-")),e("button",{class:"btn-cus bg-white !text-black ml-auto cursor-pointer",onClick:D,type:"button"},"Copy")]),r.value?(s(),f("div",j,h(r.value),1)):L("",!0)]),e("form",{onSubmit:V(T,["prevent"])},[e("div",q,[t[6]||(t[6]=e("label",{class:"control-label text-gray-200"},"Tanggal awal :",-1)),_(e("input",{type:"date","onUpdate:modelValue":t[0]||(t[0]=m=>i.value=m),class:"form-control btn-cus !text-black !w-full"},null,512),[[C,i.value]])]),e("div",A,[t[7]||(t[7]=e("label",{class:"control-label text-gray-200"},"Tanggal akhir :",-1)),_(e("input",{type:"date","onUpdate:modelValue":t[1]||(t[1]=m=>n.value=m),class:"form-control btn-cus !text-black !w-full"},null,512),[[C,n.value]])]),t[8]||(t[8]=e("div",{class:"form-group-full text-center"},[e("button",{type:"submit",class:"btn btn-cus w-1/2 btn-blue"},"Cari")],-1))],32)])])]),_:1}))}};export{Ct 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.