@syntify/office 0.1.16-beta.1 → 0.1.16-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * @license MIT licensed
5
5
  *
6
6
  * Copyright (C) 2018 Varun A P
7
- */var Hg=$s.exports,yg;function qg(){return yg||(yg=1,function(d){(function(E,u){d.exports?d.exports=u():E.Toastify=u()})(Hg,function(E){var u=function(_){return new u.lib.init(_)},j="1.12.0";u.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},u.lib=u.prototype={toastify:j,constructor:u,init:function(_){return _||(_={}),this.options={},this.toastElement=null,this.options.text=_.text||u.defaults.text,this.options.node=_.node||u.defaults.node,this.options.duration=_.duration===0?0:_.duration||u.defaults.duration,this.options.selector=_.selector||u.defaults.selector,this.options.callback=_.callback||u.defaults.callback,this.options.destination=_.destination||u.defaults.destination,this.options.newWindow=_.newWindow||u.defaults.newWindow,this.options.close=_.close||u.defaults.close,this.options.gravity=_.gravity==="bottom"?"toastify-bottom":u.defaults.gravity,this.options.positionLeft=_.positionLeft||u.defaults.positionLeft,this.options.position=_.position||u.defaults.position,this.options.backgroundColor=_.backgroundColor||u.defaults.backgroundColor,this.options.avatar=_.avatar||u.defaults.avatar,this.options.className=_.className||u.defaults.className,this.options.stopOnFocus=_.stopOnFocus===void 0?u.defaults.stopOnFocus:_.stopOnFocus,this.options.onClick=_.onClick||u.defaults.onClick,this.options.offset=_.offset||u.defaults.offset,this.options.escapeMarkup=_.escapeMarkup!==void 0?_.escapeMarkup:u.defaults.escapeMarkup,this.options.ariaLive=_.ariaLive||u.defaults.ariaLive,this.options.style=_.style||u.defaults.style,_.backgroundColor&&(this.options.style.background=_.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var _=document.createElement("div");_.className="toastify on "+this.options.className,this.options.position?_.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(_.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):_.className+=" toastify-right",_.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var A in this.options.style)_.style[A]=this.options.style[A];if(this.options.ariaLive&&_.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)_.appendChild(this.options.node);else if(this.options.escapeMarkup?_.innerText=this.options.text:_.innerHTML=this.options.text,this.options.avatar!==""){var q=document.createElement("img");q.src=this.options.avatar,q.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?_.appendChild(q):_.insertAdjacentElement("afterbegin",q)}if(this.options.close===!0){var G=document.createElement("button");G.type="button",G.setAttribute("aria-label","Close"),G.className="toast-close",G.innerHTML="&#10006;",G.addEventListener("click",(function(tt){tt.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var et=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&et>360?_.insertAdjacentElement("afterbegin",G):_.appendChild(G)}if(this.options.stopOnFocus&&this.options.duration>0){var J=this;_.addEventListener("mouseover",function(tt){window.clearTimeout(_.timeOutValue)}),_.addEventListener("mouseleave",function(){_.timeOutValue=window.setTimeout(function(){J.removeElement(_)},J.options.duration)})}if(typeof this.options.destination<"u"&&_.addEventListener("click",(function(tt){tt.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&_.addEventListener("click",(function(tt){tt.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var $t=M("x",this.options),F=M("y",this.options),R=this.options.position=="left"?$t:"-"+$t,ut=this.options.gravity=="toastify-top"?F:"-"+F;_.style.transform="translate("+R+","+ut+")"}return _},showToast:function(){this.toastElement=this.buildToast();var _;if(typeof this.options.selector=="string"?_=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?_=this.options.selector:_=document.body,!_)throw"Root element is not defined";var A=u.defaults.oldestFirst?_.firstChild:_.lastChild;return _.insertBefore(this.toastElement,A),u.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(_){_.className=_.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),_.parentNode&&_.parentNode.removeChild(_),this.options.callback.call(_),u.reposition()}).bind(this),400)}},u.reposition=function(){for(var _={top:15,bottom:15},A={top:15,bottom:15},q={top:15,bottom:15},G=document.getElementsByClassName("toastify"),et,J=0;J<G.length;J++){H(G[J],"toastify-top")===!0?et="toastify-top":et="toastify-bottom";var $t=G[J].offsetHeight;et=et.substr(9,et.length-1);var F=15,R=window.innerWidth>0?window.innerWidth:screen.width;R<=360?(G[J].style[et]=q[et]+"px",q[et]+=$t+F):H(G[J],"toastify-left")===!0?(G[J].style[et]=_[et]+"px",_[et]+=$t+F):(G[J].style[et]=A[et]+"px",A[et]+=$t+F)}return this};function M(_,A){return A.offset[_]?isNaN(A.offset[_])?A.offset[_]:A.offset[_]+"px":"0px"}function H(_,A){return!_||typeof A!="string"?!1:!!(_.className&&_.className.trim().split(/\s+/gi).indexOf(A)>-1)}return u.lib.init.prototype=u.lib,u})}($s)),$s.exports}qg();const mg=new Intl.NumberFormat("id-ID"),Yg=(d=0)=>typeof d=="string"?mg.format(parseInt(d)):typeof d=="number"?mg.format(d):0;var As={exports:{}},Kg=As.exports,wg;function Gg(){return wg||(wg=1,function(d,E){(function(u,j){d.exports=j()})(Kg,function(){var u=1e3,j=6e4,M=36e5,H="millisecond",_="second",A="minute",q="hour",G="day",et="week",J="month",$t="quarter",F="year",R="date",ut="Invalid Date",tt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,mt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,wt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var S=["th","st","nd","rd"],x=T%100;return"["+T+(S[(x-20)%10]||S[x]||S[0])+"]"}},Ct=function(T,S,x){var $=String(T);return!$||$.length>=S?T:""+Array(S+1-$.length).join(x)+T},Gt={s:Ct,z:function(T){var S=-T.utcOffset(),x=Math.abs(S),$=Math.floor(x/60),w=x%60;return(S<=0?"+":"-")+Ct($,2,"0")+":"+Ct(w,2,"0")},m:function T(S,x){if(S.date()<x.date())return-T(x,S);var $=12*(x.year()-S.year())+(x.month()-S.month()),w=S.clone().add($,J),I=x-w<0,D=S.clone().add($+(I?-1:1),J);return+(-($+(x-w)/(I?w-D:D-w))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:J,y:F,w:et,d:G,D:R,h:q,m:A,s:_,ms:H,Q:$t}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},Et="en",At={};At[Et]=wt;var Mt="$isDayjsObject",he=function(T){return T instanceof re||!(!T||!T[Mt])},ve=function T(S,x,$){var w;if(!S)return Et;if(typeof S=="string"){var I=S.toLowerCase();At[I]&&(w=I),x&&(At[I]=x,w=I);var D=S.split("-");if(!w&&D.length>1)return T(D[0])}else{var K=S.name;At[K]=S,w=K}return!$&&w&&(Et=w),w||!$&&Et},W=function(T,S){if(he(T))return T.clone();var x=typeof S=="object"?S:{};return x.date=T,x.args=arguments,new re(x)},B=Gt;B.l=ve,B.i=he,B.w=function(T,S){return W(T,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var re=function(){function T(x){this.$L=ve(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Mt]=!0}var S=T.prototype;return S.parse=function(x){this.$d=function($){var w=$.date,I=$.utc;if(w===null)return new Date(NaN);if(B.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(tt);if(D){var K=D[2]-1||0,ft=(D[7]||"0").substring(0,3);return I?new Date(Date.UTC(D[1],K,D[3]||1,D[4]||0,D[5]||0,D[6]||0,ft)):new Date(D[1],K,D[3]||1,D[4]||0,D[5]||0,D[6]||0,ft)}}return new Date(w)}(x),this.init()},S.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==ut},S.isSame=function(x,$){var w=W(x);return this.startOf($)<=w&&w<=this.endOf($)},S.isAfter=function(x,$){return W(x)<this.startOf($)},S.isBefore=function(x,$){return this.endOf($)<W(x)},S.$g=function(x,$,w){return B.u(x)?this[$]:this.set(w,x)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(x,$){var w=this,I=!!B.u($)||$,D=B.p(x),K=function(Ft,kt){var Wt=B.w(w.$u?Date.UTC(w.$y,kt,Ft):new Date(w.$y,kt,Ft),w);return I?Wt:Wt.endOf(G)},ft=function(Ft,kt){return B.w(w.toDate()[Ft].apply(w.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(kt)),w)},gt=this.$W,bt=this.$M,_t=this.$D,ie="set"+(this.$u?"UTC":"");switch(D){case F:return I?K(1,0):K(31,11);case J:return I?K(1,bt):K(0,bt+1);case et:var ye=this.$locale().weekStart||0,oe=(gt<ye?gt+7:gt)-ye;return K(I?_t-oe:_t+(6-oe),bt);case G:case R:return ft(ie+"Hours",0);case q:return ft(ie+"Minutes",1);case A:return ft(ie+"Seconds",2);case _:return ft(ie+"Milliseconds",3);default:return this.clone()}},S.endOf=function(x){return this.startOf(x,!1)},S.$set=function(x,$){var w,I=B.p(x),D="set"+(this.$u?"UTC":""),K=(w={},w[G]=D+"Date",w[R]=D+"Date",w[J]=D+"Month",w[F]=D+"FullYear",w[q]=D+"Hours",w[A]=D+"Minutes",w[_]=D+"Seconds",w[H]=D+"Milliseconds",w)[I],ft=I===G?this.$D+($-this.$W):$;if(I===J||I===F){var gt=this.clone().set(R,1);gt.$d[K](ft),gt.init(),this.$d=gt.set(R,Math.min(this.$D,gt.daysInMonth())).$d}else K&&this.$d[K](ft);return this.init(),this},S.set=function(x,$){return this.clone().$set(x,$)},S.get=function(x){return this[B.p(x)]()},S.add=function(x,$){var w,I=this;x=Number(x);var D=B.p($),K=function(bt){var _t=W(I);return B.w(_t.date(_t.date()+Math.round(bt*x)),I)};if(D===J)return this.set(J,this.$M+x);if(D===F)return this.set(F,this.$y+x);if(D===G)return K(1);if(D===et)return K(7);var ft=(w={},w[A]=j,w[q]=M,w[_]=u,w)[D]||1,gt=this.$d.getTime()+x*ft;return B.w(gt,this)},S.subtract=function(x,$){return this.add(-1*x,$)},S.format=function(x){var $=this,w=this.$locale();if(!this.isValid())return w.invalidDate||ut;var I=x||"YYYY-MM-DDTHH:mm:ssZ",D=B.z(this),K=this.$H,ft=this.$m,gt=this.$M,bt=w.weekdays,_t=w.months,ie=w.meridiem,ye=function(kt,Wt,pe,Fe){return kt&&(kt[Wt]||kt($,I))||pe[Wt].slice(0,Fe)},oe=function(kt){return B.s(K%12||12,kt,"0")},Ft=ie||function(kt,Wt,pe){var Fe=kt<12?"AM":"PM";return pe?Fe.toLowerCase():Fe};return I.replace(mt,function(kt,Wt){return Wt||function(pe){switch(pe){case"YY":return String($.$y).slice(-2);case"YYYY":return B.s($.$y,4,"0");case"M":return gt+1;case"MM":return B.s(gt+1,2,"0");case"MMM":return ye(w.monthsShort,gt,_t,3);case"MMMM":return ye(_t,gt);case"D":return $.$D;case"DD":return B.s($.$D,2,"0");case"d":return String($.$W);case"dd":return ye(w.weekdaysMin,$.$W,bt,2);case"ddd":return ye(w.weekdaysShort,$.$W,bt,3);case"dddd":return bt[$.$W];case"H":return String(K);case"HH":return B.s(K,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return Ft(K,ft,!0);case"A":return Ft(K,ft,!1);case"m":return String(ft);case"mm":return B.s(ft,2,"0");case"s":return String($.$s);case"ss":return B.s($.$s,2,"0");case"SSS":return B.s($.$ms,3,"0");case"Z":return D}return null}(kt)||D.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(x,$,w){var I,D=this,K=B.p($),ft=W(x),gt=(ft.utcOffset()-this.utcOffset())*j,bt=this-ft,_t=function(){return B.m(D,ft)};switch(K){case F:I=_t()/12;break;case J:I=_t();break;case $t:I=_t()/3;break;case et:I=(bt-gt)/6048e5;break;case G:I=(bt-gt)/864e5;break;case q:I=bt/M;break;case A:I=bt/j;break;case _:I=bt/u;break;default:I=bt}return w?I:B.a(I)},S.daysInMonth=function(){return this.endOf(J).$D},S.$locale=function(){return At[this.$L]},S.locale=function(x,$){if(!x)return this.$L;var w=this.clone(),I=ve(x,$,!0);return I&&(w.$L=I),w},S.clone=function(){return B.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},T}(),Te=re.prototype;return W.prototype=Te,[["$ms",H],["$s",_],["$m",A],["$H",q],["$W",G],["$M",J],["$y",F],["$D",R]].forEach(function(T){Te[T[1]]=function(S){return this.$g(S,T[0],T[1])}}),W.extend=function(T,S){return T.$i||(T(S,re,W),T.$i=!0),W},W.locale=ve,W.isDayjs=he,W.unix=function(T){return W(1e3*T)},W.en=At[Et],W.Ls=At,W.p={},W})}(As)),As.exports}var Zg=Gg();const bg=zg(Zg);function Xg(d){if(d)return bg(d).format("YYYY-MM-DD").toString()}function Jg(d){if(d)return bg(d).format("YYYY-MM-DD HH:mm").toString()}const jg=["id"],Qg={id:"table-collection"},t_=["onClick","onContextmenu"],e_={key:0,class:"synt-badge-tabel"},n_={key:1,class:"synt-badge-tabel"},r_={key:2,class:"synt-badge-tabel"},i_={key:4,class:"synt-badge-tabel"},o_={key:0,class:"synt-loading"},u_={key:1,class:"synt-table-empty"},s_={class:"synt-office-collection-table-footer"},a_={class:"synt-office-collection-table-footer-start"},l_={class:"synt-office-collection-table-footer-end"},f_={class:"synt-office-collection-table-footer-meta"},c_={class:"synt-office-collection-font-bold"},h_={class:"synt-office-collection-font-bold"},p_={class:"synt-office-collection-font-bold"},d_={class:"synt-office-collection-paginate-wrapper"},g_=["disabled"],__=["disabled"],v_=br(a.defineComponent({__name:"OfficeCollectionTable",props:{items:{},model:{},query:{},meta:{},isLoading:{type:Boolean}},setup(d){const E=d,u=_g.useRouter(),j=a.computed(()=>E.model.definition.replace(":","_").replace("/","")),M=a.ref({visible:!1,x:0,y:0,id:null});function H(){return E.query.page>1?E.query.page*E.query.limit-E.query.limit+1:E.meta.total===0?0:1}function _(){return E.meta.total>E.query.page*E.query.limit?E.query.page*E.query.limit:E.meta.total}function A(F,R){var ut;(ut=E.model.excludes)!=null&&ut.includes("edit")||(F.preventDefault(),M.value={visible:!0,x:F.pageX,y:F.pageY,id:R})}function q(){M.value.visible&&(M.value.visible=!1)}function G(F){const R=`${E.model.collection.path}/${F}`;window.open(R,"_blank"),q()}function et(F){var ut;if((ut=E.model.excludes)!=null&&ut.includes("edit"))return;const R=`${E.model.collection.path}/${F}`;u.push(R),q()}function J(F){const R=`${location.origin}/user/${F}`;navigator.clipboard.writeText(R).then(()=>{console.log("Link copied:",R)}).catch(ut=>{console.error("Failed to copy:",ut)}),q()}function $t(F){return F=="success"?"text-green-100 bg-green-600 border-green-700":F=="danger"?"text-red-100 bg-red-600 border-red-700":F=="warning"?"text-yellow-900 bg-yellow-500 border-yellow-600":"text-black bg-gray-200 border-gray-300"}return a.onMounted(()=>{window.addEventListener("click",q)}),a.onBeforeUnmount(()=>{window.removeEventListener("click",q)}),(F,R)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{id:j.value,class:"synt-office-collection-table-wrapper"},[a.renderSlot(F.$slots,"default",{},void 0,!0),a.createElementVNode("table",Qg,[a.createElementVNode("thead",null,[a.createElementVNode("tr",null,[R[6]||(R[6]=a.createElementVNode("th",null,"No",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.model.collection.columns,(ut,tt)=>(a.openBlock(),a.createElementBlock("th",{key:tt},a.toDisplayString(ut.name),1))),128)),a.renderSlot(F.$slots,"th",{},void 0,!0)])]),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.items,(ut,tt)=>{var mt;return a.openBlock(),a.createElementBlock("tr",{key:tt,class:a.normalizeClass({"synt-cursor-pointer":!((mt=F.model.excludes)!=null&&mt.includes("edit"))}),onClick:a.withModifiers(wt=>et(ut.id),["prevent"]),onContextmenu:a.withModifiers(wt=>A(wt,ut.id),["prevent"])},[a.createElementVNode("td",null,a.toDisplayString(tt+1),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.model.collection.columns,(wt,Ct)=>(a.openBlock(),a.createElementBlock("td",{key:Ct},[wt.type=="currency"?(a.openBlock(),a.createElementBlock("div",e_,a.toDisplayString(a.unref(Yg)(ut[wt.handle])),1)):wt.type=="date"?(a.openBlock(),a.createElementBlock("div",n_,a.toDisplayString(a.unref(Xg)(ut[wt.handle])),1)):wt.type=="datetime"?(a.openBlock(),a.createElementBlock("div",r_,a.toDisplayString(a.unref(Jg)(ut[wt.handle])),1)):wt.type=="choice"?(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass(["synt-badge-tabel-color",$t(wt.choices[ut[wt.handle]].color)]),style:a.normalizeStyle(["success","danger","warning"].includes(wt.choices[ut[wt.handle]].color)?void 0:{backgroundColor:wt.choices[ut[wt.handle]].color})},a.toDisplayString(wt.choices[ut[wt.handle]].name),7)):(a.openBlock(),a.createElementBlock("div",i_,a.toDisplayString(ut[wt.handle]),1))]))),128)),a.renderSlot(F.$slots,"td",{item:ut},void 0,!0)],42,t_)}),128))])]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[M.value.visible?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({top:`${M.value.y}px`,left:`${M.value.x}px`}),class:"synt-open-tab"},[a.createElementVNode("ul",null,[a.createElementVNode("li",{class:"synt-open-tab-option",onClick:R[0]||(R[0]=ut=>et(M.value.id))},R[7]||(R[7]=[a.createElementVNode("i",{class:"synt-open-tab-option-icon fa-solid fa-up-right-and-down-left-from-center"},null,-1),a.createElementVNode("span",null,"Open as tab",-1)])),a.createElementVNode("li",{class:"synt-open-tab-option",onClick:R[1]||(R[1]=ut=>G(M.value.id))},R[8]||(R[8]=[a.createElementVNode("i",{class:"synt-open-tab-option-icon fa-solid fa-arrow-up-right-from-square"},null,-1),a.createElementVNode("span",null,"Open in new tab",-1)])),a.createElementVNode("li",{class:"synt-open-tab-option",onClick:R[2]||(R[2]=ut=>J(M.value.id))},R[9]||(R[9]=[a.createElementVNode("i",{class:"synt-open-tab-option-icon fa-solid fa-paperclip"},null,-1),a.createElementVNode("span",null,"Copy link",-1)]))])],4)):a.createCommentVNode("",!0)]),_:1}),F.isLoading?(a.openBlock(),a.createElementBlock("div",o_,R[10]||(R[10]=[a.createElementVNode("i",{class:"synt-loading-icon fa-solid fa-spinner"},null,-1)]))):a.createCommentVNode("",!0),!F.items.length&&!F.isLoading?(a.openBlock(),a.createElementBlock("div",u_,R[11]||(R[11]=[a.createElementVNode("div",{class:"synt-table-empty-text"},"Tidak ada data untuk ditampilkan",-1)]))):a.createCommentVNode("",!0)],8,jg),a.createElementVNode("div",s_,[a.createElementVNode("div",a_,[R[13]||(R[13]=a.createElementVNode("span",{class:"synt-office-collection-table-footer-tampilkan"},"Tampilkan",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":R[3]||(R[3]=ut=>F.query.limit=ut),class:"synt-office-collection-table-footer-select"},R[12]||(R[12]=[a.createElementVNode("option",{value:10},"10",-1),a.createElementVNode("option",{value:20},"20",-1),a.createElementVNode("option",{value:60},"60",-1),a.createElementVNode("option",{value:100},"100",-1)]),512),[[a.vModelSelect,F.query.limit]])]),a.createElementVNode("div",l_,[a.createElementVNode("div",f_,[a.createElementVNode("span",c_,a.toDisplayString(H()),1),R[14]||(R[14]=a.createTextVNode(" - ")),a.createElementVNode("span",h_,a.toDisplayString(_()),1),R[15]||(R[15]=a.createTextVNode(" dari ")),a.createElementVNode("span",p_,a.toDisplayString(F.meta.total),1)]),a.createElementVNode("div",d_,[a.createElementVNode("button",{type:"button",class:"synt-office-collection-btn-paginate",onClick:R[4]||(R[4]=ut=>F.query.page-=1),disabled:!F.meta.hasPrev||F.isLoading},R[16]||(R[16]=[a.createElementVNode("i",{class:"fa-solid fa-angle-left"},null,-1)]),8,g_),a.createElementVNode("button",{type:"button",class:"synt-office-collection-btn-paginate",onClick:R[5]||(R[5]=ut=>F.query.page+=1),disabled:!F.meta.hasNext||F.isLoading},R[17]||(R[17]=[a.createElementVNode("i",{class:"fa-solid fa-angle-right"},null,-1)]),8,__)])])])],64))}}),[["__scopeId","data-v-04113258"]]);var xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y_(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Hi={exports:{}};/**
7
+ */var Hg=$s.exports,yg;function qg(){return yg||(yg=1,function(d){(function(E,u){d.exports?d.exports=u():E.Toastify=u()})(Hg,function(E){var u=function(_){return new u.lib.init(_)},j="1.12.0";u.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},u.lib=u.prototype={toastify:j,constructor:u,init:function(_){return _||(_={}),this.options={},this.toastElement=null,this.options.text=_.text||u.defaults.text,this.options.node=_.node||u.defaults.node,this.options.duration=_.duration===0?0:_.duration||u.defaults.duration,this.options.selector=_.selector||u.defaults.selector,this.options.callback=_.callback||u.defaults.callback,this.options.destination=_.destination||u.defaults.destination,this.options.newWindow=_.newWindow||u.defaults.newWindow,this.options.close=_.close||u.defaults.close,this.options.gravity=_.gravity==="bottom"?"toastify-bottom":u.defaults.gravity,this.options.positionLeft=_.positionLeft||u.defaults.positionLeft,this.options.position=_.position||u.defaults.position,this.options.backgroundColor=_.backgroundColor||u.defaults.backgroundColor,this.options.avatar=_.avatar||u.defaults.avatar,this.options.className=_.className||u.defaults.className,this.options.stopOnFocus=_.stopOnFocus===void 0?u.defaults.stopOnFocus:_.stopOnFocus,this.options.onClick=_.onClick||u.defaults.onClick,this.options.offset=_.offset||u.defaults.offset,this.options.escapeMarkup=_.escapeMarkup!==void 0?_.escapeMarkup:u.defaults.escapeMarkup,this.options.ariaLive=_.ariaLive||u.defaults.ariaLive,this.options.style=_.style||u.defaults.style,_.backgroundColor&&(this.options.style.background=_.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var _=document.createElement("div");_.className="toastify on "+this.options.className,this.options.position?_.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(_.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):_.className+=" toastify-right",_.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var A in this.options.style)_.style[A]=this.options.style[A];if(this.options.ariaLive&&_.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)_.appendChild(this.options.node);else if(this.options.escapeMarkup?_.innerText=this.options.text:_.innerHTML=this.options.text,this.options.avatar!==""){var q=document.createElement("img");q.src=this.options.avatar,q.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?_.appendChild(q):_.insertAdjacentElement("afterbegin",q)}if(this.options.close===!0){var G=document.createElement("button");G.type="button",G.setAttribute("aria-label","Close"),G.className="toast-close",G.innerHTML="&#10006;",G.addEventListener("click",(function(tt){tt.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var et=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&et>360?_.insertAdjacentElement("afterbegin",G):_.appendChild(G)}if(this.options.stopOnFocus&&this.options.duration>0){var J=this;_.addEventListener("mouseover",function(tt){window.clearTimeout(_.timeOutValue)}),_.addEventListener("mouseleave",function(){_.timeOutValue=window.setTimeout(function(){J.removeElement(_)},J.options.duration)})}if(typeof this.options.destination<"u"&&_.addEventListener("click",(function(tt){tt.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&_.addEventListener("click",(function(tt){tt.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var $t=M("x",this.options),F=M("y",this.options),R=this.options.position=="left"?$t:"-"+$t,ut=this.options.gravity=="toastify-top"?F:"-"+F;_.style.transform="translate("+R+","+ut+")"}return _},showToast:function(){this.toastElement=this.buildToast();var _;if(typeof this.options.selector=="string"?_=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?_=this.options.selector:_=document.body,!_)throw"Root element is not defined";var A=u.defaults.oldestFirst?_.firstChild:_.lastChild;return _.insertBefore(this.toastElement,A),u.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(_){_.className=_.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),_.parentNode&&_.parentNode.removeChild(_),this.options.callback.call(_),u.reposition()}).bind(this),400)}},u.reposition=function(){for(var _={top:15,bottom:15},A={top:15,bottom:15},q={top:15,bottom:15},G=document.getElementsByClassName("toastify"),et,J=0;J<G.length;J++){H(G[J],"toastify-top")===!0?et="toastify-top":et="toastify-bottom";var $t=G[J].offsetHeight;et=et.substr(9,et.length-1);var F=15,R=window.innerWidth>0?window.innerWidth:screen.width;R<=360?(G[J].style[et]=q[et]+"px",q[et]+=$t+F):H(G[J],"toastify-left")===!0?(G[J].style[et]=_[et]+"px",_[et]+=$t+F):(G[J].style[et]=A[et]+"px",A[et]+=$t+F)}return this};function M(_,A){return A.offset[_]?isNaN(A.offset[_])?A.offset[_]:A.offset[_]+"px":"0px"}function H(_,A){return!_||typeof A!="string"?!1:!!(_.className&&_.className.trim().split(/\s+/gi).indexOf(A)>-1)}return u.lib.init.prototype=u.lib,u})}($s)),$s.exports}qg();const mg=new Intl.NumberFormat("id-ID"),Yg=(d=0)=>typeof d=="string"?mg.format(parseInt(d)):typeof d=="number"?mg.format(d):0;var As={exports:{}},Kg=As.exports,wg;function Gg(){return wg||(wg=1,function(d,E){(function(u,j){d.exports=j()})(Kg,function(){var u=1e3,j=6e4,M=36e5,H="millisecond",_="second",A="minute",q="hour",G="day",et="week",J="month",$t="quarter",F="year",R="date",ut="Invalid Date",tt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,mt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,wt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var S=["th","st","nd","rd"],x=T%100;return"["+T+(S[(x-20)%10]||S[x]||S[0])+"]"}},Ct=function(T,S,x){var $=String(T);return!$||$.length>=S?T:""+Array(S+1-$.length).join(x)+T},Gt={s:Ct,z:function(T){var S=-T.utcOffset(),x=Math.abs(S),$=Math.floor(x/60),w=x%60;return(S<=0?"+":"-")+Ct($,2,"0")+":"+Ct(w,2,"0")},m:function T(S,x){if(S.date()<x.date())return-T(x,S);var $=12*(x.year()-S.year())+(x.month()-S.month()),w=S.clone().add($,J),I=x-w<0,D=S.clone().add($+(I?-1:1),J);return+(-($+(x-w)/(I?w-D:D-w))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:J,y:F,w:et,d:G,D:R,h:q,m:A,s:_,ms:H,Q:$t}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},Et="en",At={};At[Et]=wt;var Mt="$isDayjsObject",he=function(T){return T instanceof re||!(!T||!T[Mt])},ve=function T(S,x,$){var w;if(!S)return Et;if(typeof S=="string"){var I=S.toLowerCase();At[I]&&(w=I),x&&(At[I]=x,w=I);var D=S.split("-");if(!w&&D.length>1)return T(D[0])}else{var K=S.name;At[K]=S,w=K}return!$&&w&&(Et=w),w||!$&&Et},W=function(T,S){if(he(T))return T.clone();var x=typeof S=="object"?S:{};return x.date=T,x.args=arguments,new re(x)},B=Gt;B.l=ve,B.i=he,B.w=function(T,S){return W(T,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var re=function(){function T(x){this.$L=ve(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Mt]=!0}var S=T.prototype;return S.parse=function(x){this.$d=function($){var w=$.date,I=$.utc;if(w===null)return new Date(NaN);if(B.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(tt);if(D){var K=D[2]-1||0,ft=(D[7]||"0").substring(0,3);return I?new Date(Date.UTC(D[1],K,D[3]||1,D[4]||0,D[5]||0,D[6]||0,ft)):new Date(D[1],K,D[3]||1,D[4]||0,D[5]||0,D[6]||0,ft)}}return new Date(w)}(x),this.init()},S.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==ut},S.isSame=function(x,$){var w=W(x);return this.startOf($)<=w&&w<=this.endOf($)},S.isAfter=function(x,$){return W(x)<this.startOf($)},S.isBefore=function(x,$){return this.endOf($)<W(x)},S.$g=function(x,$,w){return B.u(x)?this[$]:this.set(w,x)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(x,$){var w=this,I=!!B.u($)||$,D=B.p(x),K=function(Ft,kt){var Wt=B.w(w.$u?Date.UTC(w.$y,kt,Ft):new Date(w.$y,kt,Ft),w);return I?Wt:Wt.endOf(G)},ft=function(Ft,kt){return B.w(w.toDate()[Ft].apply(w.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(kt)),w)},gt=this.$W,bt=this.$M,_t=this.$D,ie="set"+(this.$u?"UTC":"");switch(D){case F:return I?K(1,0):K(31,11);case J:return I?K(1,bt):K(0,bt+1);case et:var ye=this.$locale().weekStart||0,oe=(gt<ye?gt+7:gt)-ye;return K(I?_t-oe:_t+(6-oe),bt);case G:case R:return ft(ie+"Hours",0);case q:return ft(ie+"Minutes",1);case A:return ft(ie+"Seconds",2);case _:return ft(ie+"Milliseconds",3);default:return this.clone()}},S.endOf=function(x){return this.startOf(x,!1)},S.$set=function(x,$){var w,I=B.p(x),D="set"+(this.$u?"UTC":""),K=(w={},w[G]=D+"Date",w[R]=D+"Date",w[J]=D+"Month",w[F]=D+"FullYear",w[q]=D+"Hours",w[A]=D+"Minutes",w[_]=D+"Seconds",w[H]=D+"Milliseconds",w)[I],ft=I===G?this.$D+($-this.$W):$;if(I===J||I===F){var gt=this.clone().set(R,1);gt.$d[K](ft),gt.init(),this.$d=gt.set(R,Math.min(this.$D,gt.daysInMonth())).$d}else K&&this.$d[K](ft);return this.init(),this},S.set=function(x,$){return this.clone().$set(x,$)},S.get=function(x){return this[B.p(x)]()},S.add=function(x,$){var w,I=this;x=Number(x);var D=B.p($),K=function(bt){var _t=W(I);return B.w(_t.date(_t.date()+Math.round(bt*x)),I)};if(D===J)return this.set(J,this.$M+x);if(D===F)return this.set(F,this.$y+x);if(D===G)return K(1);if(D===et)return K(7);var ft=(w={},w[A]=j,w[q]=M,w[_]=u,w)[D]||1,gt=this.$d.getTime()+x*ft;return B.w(gt,this)},S.subtract=function(x,$){return this.add(-1*x,$)},S.format=function(x){var $=this,w=this.$locale();if(!this.isValid())return w.invalidDate||ut;var I=x||"YYYY-MM-DDTHH:mm:ssZ",D=B.z(this),K=this.$H,ft=this.$m,gt=this.$M,bt=w.weekdays,_t=w.months,ie=w.meridiem,ye=function(kt,Wt,pe,Fe){return kt&&(kt[Wt]||kt($,I))||pe[Wt].slice(0,Fe)},oe=function(kt){return B.s(K%12||12,kt,"0")},Ft=ie||function(kt,Wt,pe){var Fe=kt<12?"AM":"PM";return pe?Fe.toLowerCase():Fe};return I.replace(mt,function(kt,Wt){return Wt||function(pe){switch(pe){case"YY":return String($.$y).slice(-2);case"YYYY":return B.s($.$y,4,"0");case"M":return gt+1;case"MM":return B.s(gt+1,2,"0");case"MMM":return ye(w.monthsShort,gt,_t,3);case"MMMM":return ye(_t,gt);case"D":return $.$D;case"DD":return B.s($.$D,2,"0");case"d":return String($.$W);case"dd":return ye(w.weekdaysMin,$.$W,bt,2);case"ddd":return ye(w.weekdaysShort,$.$W,bt,3);case"dddd":return bt[$.$W];case"H":return String(K);case"HH":return B.s(K,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return Ft(K,ft,!0);case"A":return Ft(K,ft,!1);case"m":return String(ft);case"mm":return B.s(ft,2,"0");case"s":return String($.$s);case"ss":return B.s($.$s,2,"0");case"SSS":return B.s($.$ms,3,"0");case"Z":return D}return null}(kt)||D.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(x,$,w){var I,D=this,K=B.p($),ft=W(x),gt=(ft.utcOffset()-this.utcOffset())*j,bt=this-ft,_t=function(){return B.m(D,ft)};switch(K){case F:I=_t()/12;break;case J:I=_t();break;case $t:I=_t()/3;break;case et:I=(bt-gt)/6048e5;break;case G:I=(bt-gt)/864e5;break;case q:I=bt/M;break;case A:I=bt/j;break;case _:I=bt/u;break;default:I=bt}return w?I:B.a(I)},S.daysInMonth=function(){return this.endOf(J).$D},S.$locale=function(){return At[this.$L]},S.locale=function(x,$){if(!x)return this.$L;var w=this.clone(),I=ve(x,$,!0);return I&&(w.$L=I),w},S.clone=function(){return B.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},T}(),Te=re.prototype;return W.prototype=Te,[["$ms",H],["$s",_],["$m",A],["$H",q],["$W",G],["$M",J],["$y",F],["$D",R]].forEach(function(T){Te[T[1]]=function(S){return this.$g(S,T[0],T[1])}}),W.extend=function(T,S){return T.$i||(T(S,re,W),T.$i=!0),W},W.locale=ve,W.isDayjs=he,W.unix=function(T){return W(1e3*T)},W.en=At[Et],W.Ls=At,W.p={},W})}(As)),As.exports}var Zg=Gg();const bg=zg(Zg);function Xg(d){if(d)return bg(d).format("YYYY-MM-DD").toString()}function Jg(d){if(d)return bg(d).format("YYYY-MM-DD HH:mm").toString()}const jg=["id"],Qg={id:"table-collection"},t_=["onClick","onContextmenu"],e_={key:0,class:"synt-badge-tabel"},n_={key:1,class:"synt-badge-tabel"},r_={key:2,class:"synt-badge-tabel"},i_={key:4,class:"synt-badge-tabel"},o_={key:0,class:"synt-loading"},u_={key:1,class:"synt-table-empty"},s_={class:"synt-office-collection-table-footer"},a_={class:"synt-office-collection-table-footer-start"},l_={class:"synt-office-collection-table-footer-end"},f_={class:"synt-office-collection-table-footer-meta"},c_={class:"synt-office-collection-font-bold"},h_={class:"synt-office-collection-font-bold"},p_={class:"synt-office-collection-font-bold"},d_={class:"synt-office-collection-paginate-wrapper"},g_=["disabled"],__=["disabled"],v_=br(a.defineComponent({__name:"OfficeCollectionTable",props:{items:{},model:{},query:{},meta:{},isLoading:{type:Boolean}},setup(d){const E=d,u=_g.useRouter(),j=a.computed(()=>E.model.definition.replace(":","_").replace("/","")),M=a.ref({visible:!1,x:0,y:0,id:null});function H(){return E.query.page>1?E.query.page*E.query.limit-E.query.limit+1:E.meta.total===0?0:1}function _(){return E.meta.total>E.query.page*E.query.limit?E.query.page*E.query.limit:E.meta.total}function A(F,R){var ut;(ut=E.model.excludes)!=null&&ut.includes("edit")||(F.preventDefault(),M.value={visible:!0,x:F.pageX,y:F.pageY,id:R})}function q(){M.value.visible&&(M.value.visible=!1)}function G(F){const R=`${E.model.collection.path}/${F}`;window.open(R,"_blank"),q()}function et(F){var ut;if((ut=E.model.excludes)!=null&&ut.includes("edit"))return;const R=`${E.model.collection.path}/${F}`;u.push(R),q()}function J(F){const R=`${location.origin}/user/${F}`;navigator.clipboard.writeText(R).then(()=>{console.log("Link copied:",R)}).catch(ut=>{console.error("Failed to copy:",ut)}),q()}function $t(F){return F=="success"?"text-green-100 bg-green-600 border-green-700":F=="danger"?"text-red-100 bg-red-600 border-red-700":F=="warning"?"text-yellow-900 bg-yellow-500 border-yellow-600":"text-black bg-gray-200 border-gray-300"}return a.onMounted(()=>{window.addEventListener("click",q)}),a.onBeforeUnmount(()=>{window.removeEventListener("click",q)}),(F,R)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{id:j.value,class:"synt-office-collection-table-wrapper"},[a.renderSlot(F.$slots,"default",{},void 0,!0),a.createElementVNode("table",Qg,[a.createElementVNode("thead",null,[a.createElementVNode("tr",null,[R[6]||(R[6]=a.createElementVNode("th",null,"No",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.model.collection.columns,(ut,tt)=>(a.openBlock(),a.createElementBlock("th",{key:tt},a.toDisplayString(ut.name),1))),128)),a.renderSlot(F.$slots,"th",{},void 0,!0)])]),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.items,(ut,tt)=>{var mt;return a.openBlock(),a.createElementBlock("tr",{key:tt,class:a.normalizeClass({"synt-cursor-pointer":!((mt=F.model.excludes)!=null&&mt.includes("edit"))}),onClick:a.withModifiers(wt=>et(ut.id),["prevent"]),onContextmenu:a.withModifiers(wt=>A(wt,ut.id),["prevent"])},[a.createElementVNode("td",null,a.toDisplayString(tt+1),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.model.collection.columns,(wt,Ct)=>(a.openBlock(),a.createElementBlock("td",{key:Ct},[wt.type=="currency"?(a.openBlock(),a.createElementBlock("div",e_,a.toDisplayString(a.unref(Yg)(ut[wt.handle])),1)):wt.type=="date"?(a.openBlock(),a.createElementBlock("div",n_,a.toDisplayString(a.unref(Xg)(ut[wt.handle])),1)):wt.type=="datetime"?(a.openBlock(),a.createElementBlock("div",r_,a.toDisplayString(a.unref(Jg)(ut[wt.handle])),1)):wt.type=="choice"?(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass(["w-fit top-1 py-1 px-2 rounded-lg flex justify-center items-center gap-2",$t(wt.choices[ut[wt.handle]].color)]),style:a.normalizeStyle(["success","danger","warning"].includes(wt.choices[ut[wt.handle]].color)?void 0:{backgroundColor:wt.choices[ut[wt.handle]].color})},a.toDisplayString(wt.choices[ut[wt.handle]].name),7)):(a.openBlock(),a.createElementBlock("div",i_,a.toDisplayString(ut[wt.handle]),1))]))),128)),a.renderSlot(F.$slots,"td",{item:ut},void 0,!0)],42,t_)}),128))])]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[M.value.visible?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle({top:`${M.value.y}px`,left:`${M.value.x}px`}),class:"synt-open-tab"},[a.createElementVNode("ul",null,[a.createElementVNode("li",{class:"synt-open-tab-option",onClick:R[0]||(R[0]=ut=>et(M.value.id))},R[7]||(R[7]=[a.createElementVNode("i",{class:"synt-open-tab-option-icon fa-solid fa-up-right-and-down-left-from-center"},null,-1),a.createElementVNode("span",null,"Open as tab",-1)])),a.createElementVNode("li",{class:"synt-open-tab-option",onClick:R[1]||(R[1]=ut=>G(M.value.id))},R[8]||(R[8]=[a.createElementVNode("i",{class:"synt-open-tab-option-icon fa-solid fa-arrow-up-right-from-square"},null,-1),a.createElementVNode("span",null,"Open in new tab",-1)])),a.createElementVNode("li",{class:"synt-open-tab-option",onClick:R[2]||(R[2]=ut=>J(M.value.id))},R[9]||(R[9]=[a.createElementVNode("i",{class:"synt-open-tab-option-icon fa-solid fa-paperclip"},null,-1),a.createElementVNode("span",null,"Copy link",-1)]))])],4)):a.createCommentVNode("",!0)]),_:1}),F.isLoading?(a.openBlock(),a.createElementBlock("div",o_,R[10]||(R[10]=[a.createElementVNode("i",{class:"synt-loading-icon fa-solid fa-spinner"},null,-1)]))):a.createCommentVNode("",!0),!F.items.length&&!F.isLoading?(a.openBlock(),a.createElementBlock("div",u_,R[11]||(R[11]=[a.createElementVNode("div",{class:"synt-table-empty-text"},"Tidak ada data untuk ditampilkan",-1)]))):a.createCommentVNode("",!0)],8,jg),a.createElementVNode("div",s_,[a.createElementVNode("div",a_,[R[13]||(R[13]=a.createElementVNode("span",{class:"synt-office-collection-table-footer-tampilkan"},"Tampilkan",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":R[3]||(R[3]=ut=>F.query.limit=ut),class:"synt-office-collection-table-footer-select"},R[12]||(R[12]=[a.createElementVNode("option",{value:10},"10",-1),a.createElementVNode("option",{value:20},"20",-1),a.createElementVNode("option",{value:60},"60",-1),a.createElementVNode("option",{value:100},"100",-1)]),512),[[a.vModelSelect,F.query.limit]])]),a.createElementVNode("div",l_,[a.createElementVNode("div",f_,[a.createElementVNode("span",c_,a.toDisplayString(H()),1),R[14]||(R[14]=a.createTextVNode(" - ")),a.createElementVNode("span",h_,a.toDisplayString(_()),1),R[15]||(R[15]=a.createTextVNode(" dari ")),a.createElementVNode("span",p_,a.toDisplayString(F.meta.total),1)]),a.createElementVNode("div",d_,[a.createElementVNode("button",{type:"button",class:"synt-office-collection-btn-paginate",onClick:R[4]||(R[4]=ut=>F.query.page-=1),disabled:!F.meta.hasPrev||F.isLoading},R[16]||(R[16]=[a.createElementVNode("i",{class:"fa-solid fa-angle-left"},null,-1)]),8,g_),a.createElementVNode("button",{type:"button",class:"synt-office-collection-btn-paginate",onClick:R[5]||(R[5]=ut=>F.query.page+=1),disabled:!F.meta.hasNext||F.isLoading},R[17]||(R[17]=[a.createElementVNode("i",{class:"fa-solid fa-angle-right"},null,-1)]),8,__)])])])],64))}}),[["__scopeId","data-v-9dbc03d7"]]);var xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y_(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Hi={exports:{}};/**
8
8
  * @license
9
9
  * Lodash <https://lodash.com/>
10
10
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntify/office",
3
- "version": "0.1.16-beta.1",
3
+ "version": "0.1.16-beta.2",
4
4
  "description": "Office of Syntify Applications",
5
5
  "main": "dist/syntify-office.umd.js",
6
6
  "module": "dist/syntify-office.es.js",