PageSourceSearch

https://acties.uzafoundation.be/assets/PrivateAllProducts-ChIF7iuV.js

js uzafoundation.be collected 2026-10-07 22:52:36 UTC 43,169 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppSpinner-DDmMHhZ_.js","assets/index-DuKjXEJz.js","assets/index-DY-sP-Wx.css","assets/AppSpinner-CO7qFeDR.css"])))=>i.map(i=>d[i]);
2import{s as Gt,ab as Yt,_ as An,u as Rn,X as Pn,I as In,W as Bn,aP as Tn,m as ae,bF as Nn,ae as zn,g as ye,a as A,t as N,b as D,c as Ze,w as Fe,l as Ft,e as ke,F as kt,f as et,r as Vt,K as jn,bG as Ln,L as Mn,o as U,a1 as Fn,d as kn,q as be}from"./index-DuKjXEJz.js";import{u as Vn}from"./ProductStore-4SYaH2kH.js";import{u as Hn}from"./useRoles-qYN7t69G.js";import Xn from"./PrivateAllProductsItem-Byqvj7CY.js";import"./useProduct-CZTO0VsY.js";(function(){try{var w=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};w.SENTRY_RELEASE={id:"f072d59245c5c30cc2f9dc5a76f942dc019904ca"};var R=new w.Error().stack;R&&(w._sentryDebugIds=w._sentryDebugIds||{},w._sentryDebugIds[R]="6c15b720-27b4-4027-adab-326fe846ee34",w._sentryDebugIdIdentifier="sentry-dbid-6c15b720-27b4-4027-adab-326fe846ee34")}catch{}})();var _e={exports:{}},Gn=_e.exports,Ht;function Yn(){return Ht||(Ht=1,(function(w,R){(function(S,b){b(R)})(Gn,function(S){var b,Z,ee="smooth-dnd-container-instance",I="smooth-dnd-draggable-wrapper",ie="animated",Y="__smooth_dnd_draggable_translation_value",q="__smooth_dnd_draggable_visibility_value",K="smooth-dnd-ghost",O="smooth-dnd-container",le="smooth-dnd-extra-size-for-insertion",te="smooth-dnd-stretcher-element",k="smooth-dnd-stretcher-instance",V="smooth-dnd-disable-touch-action",J="smooth-dnd-no-user-select",xe="smooth-dnd-prevent-auto-scroll-class",se="smooth-dnd-drop-preview-default-class",ue="smooth-dnd-drop-preview-inner-class",B="smooth-dnd-drop-preview-constant-class",T="smooth-dnd-drop-preview-flex-container-class",W=Object.freeze({containerInstance:ee,defaultGroupName:"@@smooth-dnd-default-group@@",wrapperClass:I,defaultGrabHandleClass:"smooth-dnd-default-grap-handle",animationClass:ie,translationValue:Y,visibilityValue:q,ghostClass:K,containerClass:O,extraSizeForInsertion:le,stretcherElementClass:te,stretcherElementInstance:k,isDraggableDetached:"smoth-dnd-is-draggable-detached",disbaleTouchActions:V,noUserSelectClass:J,preventAutoScrollClass:xe,dropPlaceholderDefaultClass:se,dropPlaceholderInnerClass:ue,dropPlaceholderWrapperClass:B,dropPlaceholderFlexContainerClass:T}),z={groupName:void 0,behaviour:"move",orientation:"vertical",getChildPayload:void 0,animationDuration:250,autoScrollEnabled:!0,shouldAcceptDrop:void 0,shouldAnimateDrop:void 0};function $(e){return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e){return(function(t){if(Array.isArray(t)){for(var n=0,o=new Array(t.length);n<t.length;n++)o[n]=t[n];return o}})(e)||(function(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)})(e)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance")})()}(Z=b||(b={})).x="x",Z.y="y",Z.xy="xy";function tt(e,t,n){return n==="x"?{left:Math.max(e.left,t.left),top:e.top,right:Math.min(e.right,t.right),bottom:e.bottom}:{left:e.left,top:Math.max(e.top,t.top),right:e.right,bottom:Math.min(e.bottom,t.bottom)}}function $t(e){var t=window.getComputedStyle(e),n=t.overflow;if(n==="auto"||n==="scroll")return b.xy;var o=t["overflow-x"],r=o==="auto"||o==="scroll",i=t["overflow-y"],u=i==="auto"||i==="scroll";return r&&u?b.xy:r?b.x:u?b.y:null}function nt(e,t){var n=window.getComputedStyle(e),o=n.overflow,r=n["overflow-".concat(t)];return o==="auto"||o==="scroll"||r==="auto"||r==="scroll"}var Ut=function(e,t){return{left:Math.max(e.left,t.left),top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom)}},ot=function(e){var t=e.getBoundingClientRect(),n={left:t.left,right:t.right,top:t.top,bottom:t.bottom};
2if(De(e,"x")&&!Ee(e,"x")){var o=n.right-n.left;n.right=n.right+e.scrollWidth-o}if(De(e,"y")&&!Ee(e,"y")){var r=n.bottom-n.top;n.bottom=n.bottom+e.scrollHeight-r}return n},Ee=function(e,t){var n=window.getComputedStyle(e),o=n.overflow,r=n["overflow-".concat(t)];return o==="auto"||o==="scroll"||o==="hidden"||r==="auto"||r==="scroll"||r==="hidden"},De=function(e,t){return t==="x"?e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight},rt=function(e,t){var n=e,o=t||ot(e);for(n=e.parentElement;n;)De(n,"x")&&Ee(n,"x")&&(o=tt(o,n.getBoundingClientRect(),"x")),De(n,"y")&&Ee(n,"y")&&(o=tt(o,n.getBoundingClientRect(),"y")),n=n.parentElement;return o},Kt=function(e,t){for(var n=e;n;){if(n[ee]){var o=(function(){var r=n[ee];if(t.some(function(i){return i===r}))return{v:r}})();if($(o)==="object")return o.v}n=n.parentElement}return null},ce=function(e,t){for(var n=e;n;){if(n.matches(t))return n;n=n.parentElement}return null},He=function(e,t){return-1<e.className.split(" ").map(function(n){return n}).indexOf(t)},M=function(e,t){if(e){var n=e.className.split(" ").filter(function(o){return o});n.indexOf(t)===-1&&(n.unshift(t),e.className=n.join(" "))}},Se=function(e,t){if(e){var n=e.className.split(" ").filter(function(o){return o&&o!==t});e.className=n.join(" ")}},Jt=function(e,t){return e.removeChild(e.children[t])},Qt=function(e,t,n){n>=e.children.length?e.appendChild(t):e.insertBefore(t,e.children[n])},Zt=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():window.document.selection&&window.document.selection.empty()},at=function(e){if(e){var t=window.getComputedStyle(e);if(t)return t.cursor}return null};function Xe(e){return!(e.bottom<=e.top||e.right<=e.left)}function it(e){var t=e.element,n=e.draggables;return function(o,r){var i=o,u=i.removedIndex,s=i.addedIndex,d=i.droppedElement,a=null;if(u!==null&&(a=Jt(t,u),n.splice(u,1)),s!==null){var l=window.document.createElement("div");l.className="".concat(I),l.appendChild(a&&a.firstElementChild?a.firstElementChild:d),Qt(t,l,s),s>=n.length?n.push(l):n.splice(s,0,l)}r&&r(o)}}var en=Object.freeze({domDropHandler:it,reactDropHandler:function(){return{handler:function(){return function(e,t){t&&t(e)}}}}}),tn={size:"offsetWidth",distanceToParent:"offsetLeft",translate:"transform",begin:"left",end:"right",dragPosition:"x",scrollSize:"scrollWidth",offsetSize:"offsetWidth",scrollValue:"scrollLeft",scale:"scaleX",setSize:"width",setters:{translate:function(e){return"translate3d(".concat(e,"px, 0, 0)")}}},nn={size:"offsetHeight",distanceToParent:"offsetTop",translate:"transform",begin:"top",end:"bottom",dragPosition:"y",scrollSize:"scrollHeight",offsetSize:"offsetHeight",scrollValue:"scrollTop",scale:"scaleY",setSize:"height",setters:{translate:function(e){return"translate3d(0,".concat(e,"px, 0)")}}};function on(e,t,n){e[le]=0;var o=(function(a){return{get:function(l,c){return l[a[c]||c]},set:function(l,c,f){l[a[c]]=a.setters[c]?a.setters[c](f):f}}})(t==="horizontal"?tn:nn),r={translation:0};function i(){u(e),(function(a){var l=a.getBoundingClientRect();r.scaleX=a.offsetWidth?(l.right-l.left)/a.offsetWidth:1,r.scaleY=a.offsetHeight?(l.bottom-l.top)/a.offsetHeight:1})(e)}function u(a){r.rect=ot(a);var l=rt(a,r.rect);Xe(l)&&(r.lastVisibleRect=r.visibleRect),r.visibleRect=l}function s(a){var l=a;if(l.tagName){var c=l.getBoundingClientRect();
2return t==="vertical"?c.bottom-c.top:c.right-c.left}return o.get(a,"size")*o.get(r,"scale")}function d(a){return o.get(a,"dragPosition")}return window.addEventListener("resize",function(){u(e)}),setTimeout(function(){i()},10),{getSize:s,getContainerRectangles:function(){return{rect:r.rect,visibleRect:r.visibleRect,lastVisibleRect:r.lastVisibleRect}},getBeginEndOfDOMRect:function(a){return{begin:o.get(a,"begin"),end:o.get(a,"end")}},getBeginEndOfContainer:function(){return{begin:o.get(r.rect,"begin")+r.translation,end:o.get(r.rect,"end")+r.translation}},getBeginEndOfContainerVisibleRect:function(){return{begin:o.get(r.visibleRect,"begin")+r.translation,end:o.get(r.visibleRect,"end")+r.translation}},getBeginEnd:function(a){var l=(function(c){return(o.get(c,"distanceToParent")+(c[Y]||0))*o.get(r,"scale")})(a)+(o.get(r.rect,"begin")+r.translation)-o.get(e,"scrollValue");return{begin:l,end:l+s(a)*o.get(r,"scale")}},getAxisValue:d,setTranslation:function(a,l){l?o.set(a.style,"translate",l):a.style.removeProperty("transform"),a[Y]=l},getTranslation:function(a){return a[Y]},setVisibility:function(a,l){a[q]!==void 0&&a[q]===l||(l?a.style.removeProperty("visibility"):a.style.visibility="hidden",a[q]=l)},isVisible:function(a){return a[q]===void 0||a[q]},isInVisibleRect:function(a,l){var c=r.visibleRect,f=c.left,g=c.top,p=c.right,y=c.bottom;y-g<2&&(y=g+30);var h=r.rect;return t==="vertical"?a>h.left&&a<h.right&&g<l&&l<y:f<a&&a<p&&l>h.top&&l<h.bottom},setSize:function(a,l){o.set(a,"setSize",l)},getTopLeftOfElementBegin:function(a){var l=0;return{top:t==="horizontal"?(l=a,r.rect.top):(l=r.rect.left,a),left:l}},getScrollSize:function(a){return o.get(a,"scrollSize")},getScrollValue:function(a){return o.get(a,"scrollValue")},setScrollValue:function(a,l){return o.set(a,"scrollValue",l)},invalidate:i,invalidateRects:function(){u(e)},getPosition:function(a){return d(a)},setBegin:function(a,l){o.set(a,"begin",l)}}}function lt(e,t,n){var o,r,i,u=n.left,s=n.right,d=n.top,a=n.bottom,l=e.x,c=e.y;if(l<u||s<l||c<d||a<c)return null;i=t==="x"?(o=u,r=s,l):(o=d,r=a,c);var f=r-o,g=400<f?100:f/4;return r-i<g?{direction:"end",speedFactor:(g-(r-i))/g}:i-o<g?{direction:"begin",speedFactor:(g-(i-o))/g}:null}function Ce(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"y",n=null,o=null,r=null,i=null;return{animate:function(u,s){r=u,i=s,(function d(){n===null&&(n=requestAnimationFrame(function(a){o===null&&(o=a);var l=a-o;o=a;var c,f,g,p=l/1e3*i;f=t,g=p=r==="begin"?0-p:p,(c=e)&&(c!==window?f==="x"?c.scrollLeft+=g:c.scrollTop+=g:f==="x"?c.scrollBy(g,0):c.scrollBy(0,g)),n=null,d()}))})()},stop:function(){n!==null&&(cancelAnimationFrame(n),n=null),o=null}}}function rn(e){return function(){return rt(e,e.getBoundingClientRect())}}var H,Oe,E,an=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1500,n=e.reduce(function(o,r){var i=(function(u){for(var s=[],d=u.element;d;){var a=$t(d);if(a&&!He(d,xe)){var l={};switch(a){case b.xy:l.x={animator:Ce(d,"x")},l.y={animator:Ce(d,"y")};break;case b.x:l.x={animator:Ce(d,"x")};break;case b.y:l.y={animator:Ce(d,"y")}}s.push({axisAnimations:l,getRect:rn(d),scrollerElement:d})}d=d.parentElement}return s})(r).filter(function(u){return!o.find(function(s){return s.scrollerElement===u.scrollerElement})});return[].concat(Ve(o),Ve(i))},[]);return function(o){var r=o.draggableInfo;if(o.reset)n.forEach(function(s){s.axisAnimations.x&&s.axisAnimations.x.animator.stop(),s.axisAnimations.y&&s.axisAnimations.y.animator.stop()});else if(r){(function(s,d){s.forEach(function(a){var l=a.axisAnimations,c=(0,a.getRect)();l.x&&(l.x.scrollParams=lt(d,"x",c),a.cachedRect=c),l.y&&(l.y.scrollParams=lt(d,"y",c),a.cachedRect=c)})})(n,r.mousePosition),n.forEach(function(s){var d=s.axisAnimations,a=d.x,l=d.y;if(a)if(a.scrollParams){var c=a.scrollParams,f=c.direction,g=c.speedFactor;a.animator.animate(f,g*t)}else a.animator.stop();if(l)if(l.scrollParams){var p=l.scrollParams,y=p.direction,h=p.speedFactor;l.animator.animate(y,h*t)}else l.animator.stop()});var i=n.filter(function(s){return s.cachedRect});if(i.length&&1<i.length){var u=(function(s,d){for(var a=document.elementFromPoint(d.x,d.y);a;){var l=s.find(function(c){return c.scrollerElement===a});if(l)return l;a=a.parentElement}return null})(i,r.mousePosition);
2u&&i.forEach(function(s){s!==u&&(s.axisAnimations.x&&s.axisAnimations.x.animator.stop(),s.axisAnimations.y&&s.axisAnimations.y.animator.stop())})}}}};typeof window<"u"&&((H=Element)&&H.prototype&&!H.prototype.matches&&(H.prototype.matches=H.prototype.matchesSelector||H.prototype.mozMatchesSelector||H.prototype.msMatchesSelector||H.prototype.oMatchesSelector||H.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1<n}),(Oe=Node||Element)&&Oe.prototype&&Oe.prototype.firstElementChild==null&&Object.defineProperty(Oe.prototype,"firstElementChild",{get:function(){for(var e,t=this.childNodes,n=0;e=t[n++];)if(e.nodeType===1)return e;return null}}),Array.prototype.some||(Array.prototype.some=function(e){if(this==null)throw new TypeError("Array.prototype.some called on null or undefined");if(typeof e!="function")throw new TypeError;for(var t=Object(this),n=t.length>>>0,o=2<=arguments.length?arguments[1]:void 0,r=0;r<n;r++)if(r in t&&e.call(o,t[r],r,t))return!0;return!1}));var st={overflow:"hidden",display:"block"},ut={height:"100%",display:"table-cell","vertical-align":"top"},ln=(x(E={},".".concat(O),{position:"relative","min-height":"30px","min-width":"30px"}),x(E,".".concat(O,".horizontal"),{display:"table"}),x(E,".".concat(O,".horizontal > .").concat(te),{display:"inline-block"}),x(E,".".concat(O,".horizontal > .").concat(I),ut),x(E,".".concat(O,".vertical > .").concat(I),st),x(E,".".concat(I),{"box-sizing":"border-box"}),x(E,".".concat(I,".horizontal"),ut),x(E,".".concat(I,".vertical"),st),x(E,".".concat(I,".animated"),{transition:"transform ease"}),x(E,".".concat(K),{"box-sizing":"border-box"}),x(E,".".concat(K,".animated"),{transition:"all ease-in-out"}),x(E,".".concat(K," *"),{"pointer-events":"none"}),x(E,".".concat(V," *"),{"touch-action":"none","-ms-touch-action":"none"}),x(E,".".concat(J),{"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"}),x(E,".".concat(ue),{flex:"1"}),x(E,".".concat(O,".horizontal > .").concat(B),{height:"100%",overflow:"hidden",display:"table-cell","vertical-align":"top"}),x(E,".".concat(O,".vertical > .").concat(B),{overflow:"hidden",display:"block",width:"100%"}),x(E,".".concat(T),{width:"100%",height:"100%",display:"flex","justify-content":"stretch","align-items":"stretch"}),x(E,".".concat(se),{"background-color":"rgba(150, 150, 150, 0.1)",border:"1px solid #ccc"}),E);function Ge(e){return Object.keys(e).reduce(function(t,n){var o=e[n];return $(o)==="object"?"".concat(t).concat(n,"{").concat(Ge(o),"}"):"".concat(t).concat(n,":").concat(o,";")},"")}function ct(e){if(e&&typeof window<"u"){var t=window.document.head||window.document.getElementsByTagName("head")[0],n=window.document.createElement("style"),o=Ge({"body *":{cursor:"".concat(e," !important")}});return n.type="text/css",n.styleSheet?n.styleSheet.cssText=o:n.appendChild(window.document.createTextNode(o)),t.appendChild(n),n}return null}var ne,Ae,sn=["mousedown","touchstart"],Re=["mousemove","touchmove"],Pe=["mouseup","touchend"],C=null,X=null,_=null,m=null,j=[],G=!1,Ie=!1,de=!1,Be=!1,oe=null,L=null,fe=null,ge=null,dt=(ne=null,Ae=!1,{start:function(){Ae||(Ae=!0,(function e(){ne=requestAnimationFrame(function(){C.forEach(function(t){return t.layout.invalidateRects()}),setTimeout(function(){ne!==null&&e()},50)})})())},stop:function(){ne!==null&&(cancelAnimationFrame(ne),ne=null),Ae=!1}}),un=typeof window<"u"&&!!(window.navigator.userAgent.match(/Android/i)||window.navigator.userAgent.match(/webOS/i)||window.navigator.userAgent.match(/iPhone/i)||window.navigator.userAgent.match(/iPad/i)||window.navigator.userAgent.match(/iPod/i)||window.navigator.userAgent.match(/BlackBerry/i)||window.navigator.userAgent.match(/Windows Phone/i));function cn(){typeof window<"u"&&sn.forEach(function(e){window.document.addEventListener(e,fn,{passive:!1})})}function ft(){return m&&m.ghostParent?m.ghostParent:X&&X.parentElement||window.document.body}var pe,Ye,gt,Te,qe,We,dn=(Te=null,qe=1,We=5,function(e,t,n){pe=ze(e),gt=n,(Ye=typeof t=="number"?t:un?200:0)&&(Te=setTimeout(vt,Ye)),Re.forEach(function(o){return window.document.addEventListener(o,pt)},{passive:!1}),Pe.forEach(function(o){return window.document.addEventListener(o,mt)},{passive:!1}),window.document.addEventListener("drag",ht,{passive:!1})});function pt(e){var t=ze(e),n=t.clientX,o=t.clientY;if(Ye)(Math.abs(pe.clientX-n)>We||Math.abs(pe.clientY-o)>We)&&Ne();else if(Math.abs(pe.clientX-n)>qe||Math.abs(pe.clientY-o)>qe)return vt()}function mt(){Ne()}function ht(){Ne()}function Ne(){clearTimeout(Te),Re.forEach(function(e){return window.document.removeEventListener(e,pt)},{passive:!1}),Pe.forEach(function(e){return window.document.removeEventListener(e,mt)},{passive:!1}),window.document.removeEventListener("drag",ht,{passive:!1})}function vt(){clearTimeout(Te),Ne(),gt()}function fn(e){var t=ze(e);if(!G&&(t.button===void 0||t.button===0)&&(X=ce(t.target,"."+I))){var n=ce(X,"."+O),o=j.filter(function(s){return s.element===n})[0],r=o.getOptions().dragHandleSelector,i=o.getOptions().nonDragAreaSelector,u=!0;
2r&&!ce(t.target,r)&&(u=!1),i&&ce(t.target,i)&&(u=!1),u&&(o.layout.invalidate(),M(window.document.body,V),M(window.document.body,J),window.document.addEventListener("mouseup",function s(){Se(window.document.body,V),Se(window.document.body,J),window.document.removeEventListener("mouseup",s)})),u&&dn(t,o.getOptions().dragBeginDelay,function(){Zt(),Dt(t,at(e.target)),Re.forEach(function(s){window.document.addEventListener(s,yt,{passive:!1})}),Pe.forEach(function(s){window.document.addEventListener(s,$e,{passive:!1})})})}}function yt(e){e.preventDefault();var t=ze(e);if(m){var n=m.container.getOptions();n.behaviour==="contain"?(function(o){var r,i,u,s,d=o.clientX,a=o.clientY,l=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"vertical",c=m.container.layout.getBeginEndOfContainerVisibleRect();s=l==="vertical"?(r=a,i="y",u="top",m.size.offsetHeight):(r=d,i="x",u="left",m.size.offsetWidth);var f=c.begin,g=c.end-s,p=Math.max(f,Math.min(g,r+_.positionDelta[u]));_.topLeft[i]=p,m.position[i]=Math.max(c.begin,Math.min(c.end,r+_.centerDelta[i])),m.mousePosition[i]=Math.max(c.begin,Math.min(c.end,r)),m.position[i]<c.begin+s/2&&(m.position[i]=c.begin+2),m.position[i]>c.end-s/2&&(m.position[i]=c.end-2)})(t,n.orientation):fe?fe==="y"?(_.topLeft.y=t.clientY+_.positionDelta.top,m.position.y=t.clientY+_.centerDelta.y,m.mousePosition.y=t.clientY):fe==="x"&&(_.topLeft.x=t.clientX+_.positionDelta.left,m.position.x=t.clientX+_.centerDelta.x,m.mousePosition.x=t.clientX):(_.topLeft.x=t.clientX+_.positionDelta.left,_.topLeft.y=t.clientY+_.positionDelta.top,m.position.x=t.clientX+_.centerDelta.x,m.position.y=t.clientY+_.centerDelta.y,m.mousePosition.x=t.clientX,m.mousePosition.y=t.clientY),Je(),(Be=!oe(m))&&gn()}else Dt(t,at(e.target))}var me,bt,_t,re,gn=(me=wt,_t=!(bt=20),re=null,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];re&&clearTimeout(re),_t&&!re?me.call.apply(me,[null].concat(t)):re=setTimeout(function(){re=null,me.call.apply(me,[null].concat(t))},bt)});function wt(){Be&&(Be=!1,xt(m,C))}function $e(){Re.forEach(function(e){window.document.removeEventListener(e,yt,{passive:!1})}),Pe.forEach(function(e){window.document.removeEventListener(e,$e,{passive:!1})}),L({reset:!0}),ge&&((function(e){e&&typeof window<"u"&&(window.document.head||window.document.getElementsByTagName("head")[0]).removeChild(e)})(ge),ge=null),m&&(dt.stop(),wt(),de=!0,(function(e){function t(){Se(_.ghost,"animated"),_.ghost.style.transitionDuration=null,ft().removeChild(_.ghost),e()}function n(h,v,F){var Qe=h.top,he=h.left;M(_.ghost,"animated"),F&&M(_.ghost.firstElementChild,F),_.topLeft.x=he,_.topLeft.y=Qe,Je(v),setTimeout(function(){t()},v+20)}function o(h,v){M(_.ghost,"animated"),Je(h,.9,!0),setTimeout(function(){v()},h+20)}if(m.targetElement){var r=j.filter(function(h){return h.element===m.targetElement})[0];!(y=r.getOptions()).shouldAnimateDrop||y.shouldAnimateDrop(m.container.getOptions(),m.payload)?n(r.getDragResult().shadowBeginEnd.rect,Math.max(150,r.getOptions().animationDuration/2),r.getOptions().dropClass):t()}else{var i=j.filter(function(h){return h===m.container})[0];if(i){var u=i.getOptions(),s=u.behaviour,d=u.removeOnDropOut;if(s!=="move"&&s!=="contain"||!Ie&&d||!i.getDragResult())o(i.getOptions().animationDuration,t);else{var a=i.layout.getContainerRectangles();if(!Xe(a.visibleRect)&&Xe(a.lastVisibleRect))n({top:a.lastVisibleRect.top,left:a.lastVisibleRect.left},i.getOptions().animationDuration,i.getOptions().dropClass);else{var l=i.getDragResult(),c=l.removedIndex,f=l.elementSize,g=i.layout;i.getTranslateCalculator({dragResult:{removedIndex:c,addedIndex:c,elementSize:f,pos:void 0,shadowBeginEnd:void 0}});var p=0<c?g.getBeginEnd(i.draggables[c-1]).end:g.getBeginEndOfContainer().begin;n(g.getTopLeftOfElementBegin(p),i.getOptions().animationDuration,i.getOptions().dropClass)}}}else o(z.animationDuration,t)}var y})(function(){Et(G=!1);for(var e=C||[],t=e.shift();t!==void 0;)t.handleDrop(m),t=e.shift();oe=fe=m=_=X=C=null,de=!1}))}function ze(e){return e.touches?e.touches[0]:e}function xt(e,t){var n=!1;t.forEach(function(o){var r=o.handleDrag(e);n=!!r.containerBoxChanged||!1,r.containerBoxChanged=!1}
2),n&&(n=!1,requestAnimationFrame(function(){j.forEach(function(o){o.layout.invalidateRects(),o.onTranslated()})}))}function Ue(e){var t=e,n=null;return function(o){return!(n!==null||!G||de)&&(n=requestAnimationFrame(function(){G&&!de&&(xt(o,t),L({draggableInfo:o})),n=null}),!0)}}function Ke(e,t){return e.getOptions().autoScrollEnabled?an(t,e.getScrollMaxSpeed()):function(n){return null}}function Et(e){j.forEach(function(t){var n=e?t.getOptions().onDragStart:t.getOptions().onDragEnd;if(n){var o={isSource:t===m.container,payload:m.payload};t.isDragRelevant(m.container,m.payload)?o.willAcceptDrop=!0:o.willAcceptDrop=!1,n(o)}})}function Dt(e,t){if(X!==null){G=!0;var n=j.filter(function(o){return X.parentElement===o.element})[0];n.setDraggables(),fe=n.getOptions().lockAxis?n.getOptions().lockAxis.toLowerCase():null,m=(function(o){var r=j.filter(function(d){return o.parentElement===d.element})[0],i=r.draggables.indexOf(o),u=r.getOptions().getGhostParent,s=o.getBoundingClientRect();return{container:r,element:o,size:{offsetHeight:s.bottom-s.top,offsetWidth:s.right-s.left},elementIndex:i,payload:r.getOptions().getChildPayload?r.getOptions().getChildPayload(i):void 0,targetElement:null,position:{x:0,y:0},groupName:r.getOptions().groupName,ghostParent:u?u():null,invalidateShadow:null,mousePosition:null,relevantContainers:null}})(X),_=(function(o,r,i,u){var s=r.x,d=r.y,a=o.getBoundingClientRect(),l=a.left,c=a.top,f=a.right,g=a.bottom,p=Ut(i.layout.getContainerRectangles().visibleRect,a),y=p.left+(p.right-p.left)/2,h=p.top+(p.bottom-p.top)/2,v=o.cloneNode(!0);return v.style.zIndex="1000",v.style.boxSizing="border-box",v.style.position="fixed",v.style.top="0px",v.style.left="0px",v.style.transform=null,v.style.removeProperty("transform"),i.shouldUseTransformForGhost()?v.style.transform="translate3d(".concat(l,"px, ").concat(c,"px, 0)"):(v.style.top="".concat(c,"px"),v.style.left="".concat(l,"px")),v.style.width=f-l+"px",v.style.height=g-c+"px",v.style.overflow="visible",v.style.transition=null,v.style.removeProperty("transition"),v.style.pointerEvents="none",v.style.userSelect="none",i.getOptions().dragClass?setTimeout(function(){M(v.firstElementChild,i.getOptions().dragClass);var F=window.getComputedStyle(v.firstElementChild).cursor;ge=ct(F)}):ge=ct(u),M(v,i.getOptions().orientation||"vertical"),M(v,K),{ghost:v,centerDelta:{x:y-s,y:h-d},positionDelta:{left:l-s,top:c-d},topLeft:{x:l,y:c}}})(X,{x:e.clientX,y:e.clientY},m.container,t),m.position={x:e.clientX+_.centerDelta.x,y:e.clientY+_.centerDelta.y},m.mousePosition={x:e.clientX,y:e.clientY},C=j.filter(function(o){return o.isDragRelevant(n,m.payload)}),m.relevantContainers=C,oe=Ue(C),L&&L({reset:!0,draggableInfo:void 0}),L=Ke(n,C),C.forEach(function(o){return o.prepareDrag(o,C)}),Et(!0),oe(m),ft().appendChild(_.ghost),dt.start()}}var je=null;function Je(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:0,t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1,n=2<arguments.length&&arguments[2]!==void 0&&arguments[2],o=_,r=o.ghost,i=o.topLeft,u=i.x,s=i.y,d=!m.container||m.container.shouldUseTransformForGhost(),a=d?"translate3d(".concat(u,"px,").concat(s,"px, 0)"):null;if(t!==1&&(a=a?"".concat(a," scale(").concat(t,")"):"scale(".concat(t,")")),0<e)return _.ghost.style.transitionDuration=e+"ms",void requestAnimationFrame(function(){a&&(r.style.transform=a),d||(r.style.left=u+"px",r.style.top=s+"px"),je=null,n&&(r.style.opacity="0")});je===null&&(je=requestAnimationFrame(function(){a&&(r.style.transform=a),d||(r.style.left=u+"px",r.style.top=s+"px"),je=null,n&&(r.style.opacity="0")}))}function pn(){if(G&&!Ie&&!de){Be=!(Ie=!0);var e=Object.assign({},m,{targetElement:null,position:{x:Number.MAX_SAFE_INTEGER,y:Number.MAX_SAFE_INTEGER},mousePosition:{x:Number.MAX_SAFE_INTEGER,y:Number.MAX_SAFE_INTEGER}});C.forEach(function(t){t.handleDrag(e)}),m.targetElement=null,m.cancelDrop=!0,$e(),Ie=!1}}typeof window<"u"&&(function(){if(typeof window<"u"){var e=window.document.head||window.document.getElementsByTagName("head")[0],t=window.document.createElement("style");t.id="smooth-dnd-style-definitions";var n=Ge(ln);
2t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(window.document.createTextNode(n)),e.appendChild(t)}})();var Le=(cn(),{register:function(e){(function(t){j.push(t),G&&m&&t.isDragRelevant(m.container,m.payload)&&(C.push(t),t.prepareDrag(t,C),L&&L({reset:!0,draggableInfo:void 0}),L=Ke(t,C),oe=Ue(C),t.handleDrag(m))})(e)},unregister:function(e){(function(t){if(j.splice(j.indexOf(t),1),G&&m){m.container===t&&t.fireRemoveElement(),m.targetElement===t.element&&(m.targetElement=null);var n=C.indexOf(t);-1<n&&(C.splice(n,1),L&&L({reset:!0,draggableInfo:void 0}),L=Ke(t,C),oe=Ue(C))}})(e)},isDragging:function(){return G},cancelDrag:pn});function St(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:z.animationDuration;t?(M(e,ie),e.style.transitionDuration=n+"ms"):(Se(e,ie),e.style.removeProperty("transition-duration"))}function Ct(e){var t=[];return Array.prototype.forEach.call(e.children,function(n){if(n.nodeType===Node.ELEMENT_NODE){var o=n;He(n,I)||(o=(function(r){if(P.wrapChild){var i=window.document.createElement("div");return i.className="".concat(I),r.parentElement.insertBefore(i,r),i.appendChild(r),i}return r})(n)),o[Y]=0,t.push(o)}else e.removeChild(n)}),t}function mn(e){var t=e.layout;return function(n,o){var r=2<arguments.length&&arguments[2]!==void 0&&arguments[2];return(function i(u,s,d,a){var l=4<arguments.length&&arguments[4]!==void 0&&arguments[4];if(a<d)return d;if(d===a){var c=t.getBeginEnd(u[d]),f=c.begin,g=c.end;return l?s<(g+f)/2?d:d+1:d}var p=Math.floor((a+d)/2),y=t.getBeginEnd(u[p]),h=y.begin,v=y.end;return s<h?i(u,s,d,p-1,l):v<s?i(u,s,p+1,a,l):l?s<(v+h)/2?p:p+1:p})(n,o,0,n.length-1,r)}}function hn(e){var t=e.element,n=e.draggables,o=e.layout,r=e.getOptions,i=(function(s){var d=s.element,a=s.draggables,l=s.layout;return function(){a.forEach(function(c){St(c,!1),l.setTranslation(c,0),l.setVisibility(c,!0)}),d[k]&&(d[k].parentNode.removeChild(d[k]),d[k]=null)}})({element:t,draggables:n,layout:o}),u=(P.dropHandler||it)({element:t,draggables:n,layout:o,getOptions:r});return function(s,d){var a=d.addedIndex,l=d.removedIndex,c=2<arguments.length&&arguments[2]!==void 0&&arguments[2];if(i(),!s.cancelDrop&&(s.targetElement||r().removeOnDropOut||c)){var f={removedIndex:l,addedIndex:a!==null?l!==null&&l<a?a-1:a:null,payload:s.payload};u(f,r().onDrop)}}}function Ot(e){var t=e.element,n=e.getOptions,o=null;return function(r){var i=r.draggableInfo,u=o;return o==null&&i.container.element===t&&n().behaviour!=="copy"&&(u=o=i.elementIndex),{removedIndex:u}}}function At(e){var t=e.draggables,n=e.layout;return function(o){var r=o.dragResult;r.removedIndex!==null&&n.setVisibility(t[r.removedIndex],!1)}}function Rt(e){var t=e.element,n=e.layout;return function(o){var r=o.draggableInfo,i=document.elementFromPoint(r.position.x,r.position.y);if(i){var u=Kt(i,r.relevantContainers);if(u&&u.element===t)return{pos:n.getPosition(r.position)}}return{pos:null}}}function Pt(e){var t=e.layout,n=null;return function(o){var r=o.draggableInfo;return o.dragResult.pos===null?n=null:{elementSize:n=n||t.getSize(r.size)}}}function It(e){var t=e.element;return function(n){var o=n.draggableInfo,r=n.dragResult;(function(i,u){var s=!(2<arguments.length&&arguments[2]!==void 0)||arguments[2];u&&s?i.targetElement=u:i.targetElement===u&&(i.targetElement=null)})(o,t,!!r.pos)}}function vn(){return function(e){return e.dragResult.pos!==null?{addedIndex:0}:{addedIndex:null}}}function yn(e){var t=e.layout,n=null;return function(o){var r=o.dragResult.addedIndex;if(r===n)return null;n=r;var i=t.getBeginEndOfContainer(),u=i.begin;return i.end,{shadowBeginEnd:{rect:t.getTopLeftOfElementBegin(u)}}}}function bn(e){var t=e.layout,n=e.element,o=e.getOptions,r=null;return function(i){var u=i.dragResult,s=u.elementSize,d=u.shadowBeginEnd,a=u.addedIndex,l=u.dropPlaceholderContainer,c=o();if(c.dropPlaceholder){var f=typeof c.dropPlaceholder=="boolean"?{}:c.dropPlaceholder,g=f.animationDuration,p=f.className,y=f.showOnTop;if(a===null)return l&&r!==null&&n.removeChild(l),r=null,{dropPlaceholderContainer:void 0};if(!l){var h=document.createElement("div"),v=document.createElement("div");v.className=T,h.className="".concat(ue," ").concat(p||se),(l=document.createElement("div")).className="".concat(B),l.style.position="absolute",g!==void 0&&(l.style.transition="all ".concat(g,"ms ease")),l.appendChild(v),v.appendChild(h),t.setSize(l.style,s+"px"),l.style.pointerEvents="none",y?n.appendChild(l):n.insertBefore(l,n.firstElementChild)}return r!==a&&d.dropArea&&t.setBegin(l.style,d.dropArea.begin-t.getBeginEndOfContainer().begin+"px"),r=a,{dropPlaceholderContainer:l}}
2return null}}function _n(e){var t=Tt(e);return function(n){var o=n.draggableInfo,r=n.dragResult;return o.invalidateShadow?t({draggableInfo:o,dragResult:r}):null}}function wn(e){var t=(function(n){var o=n.draggables,r=mn({layout:n.layout});return function(i){var u=i.dragResult,s=u.shadowBeginEnd,d=u.pos;if(s)return s.begin+s.beginAdjustment<=d&&s.end>=d?null:d<s.begin+s.beginAdjustment?r(o,d):d>s.end?r(o,d)+1:o.length;var a=r(o,d,!0);return a!==null?a:o.length}})(e);return function(n){var o=n.dragResult,r=null;return o.pos!==null&&(r=t({dragResult:o}))===null&&(r=o.addedIndex),{addedIndex:r}}}function xn(){var e=null;return function(t){var n=t.dragResult,o=n.addedIndex,r=n.shadowBeginEnd;o!==e&&e!==null&&r&&(r.beginAdjustment=0),e=o}}function En(e){var t=e.element,n=e.draggables,o=e.layout,r=e.getOptions,i=null;return function(u){var s=u.dragResult,d=s.addedIndex,a=s.removedIndex,l=s.elementSize;if(a===null){if(d!==null){if(!i){var c=o.getBeginEndOfContainer();c.end=c.begin+o.getSize(t);var f=o.getScrollSize(t)>o.getSize(t)?c.begin+o.getScrollSize(t)-o.getScrollValue(t):c.end,g=0<n.length?o.getBeginEnd(n[n.length-1]).end-n[n.length-1][Y]:c.begin;if(f<g+l){(i=window.document.createElement("div")).className=te+" "+r().orientation;var p=0<n.length?l+g-f:l;return o.setSize(i.style,"".concat(p,"px")),t.appendChild(i),t[k]=i,{containerBoxChanged:!0}}}}else if(i){o.setTranslation(i,0);var y=i;return i=null,t.removeChild(y),{containerBoxChanged:!(t[k]=null)}}}}}function Bt(e){var t=e.draggables,n=e.layout,o=null,r=null;return function(i){var u=i.dragResult,s=u.addedIndex,d=u.removedIndex,a=u.elementSize;if(s!==o||d!==r){for(var l=0;l<t.length;l++)if(l!==d){var c=t[l],f=0;d!==null&&d<l&&(f-=a),s!==null&&s<=l&&(f+=a),n.setTranslation(c,f)}return{addedIndex:o=s,removedIndex:r=d}}}}function Tt(e){var t=e.draggables,n=e.layout,o=null;return function(r){var i=r.draggableInfo,u=r.dragResult,s=u.addedIndex,d=u.removedIndex,a=u.elementSize,l=u.pos,c=u.shadowBeginEnd;if(l===null)return{shadowBeginEnd:o=null};if(s===null||!i.invalidateShadow&&s===o)return null;var f=s-1,g=Number.MIN_SAFE_INTEGER,p=0,y=0,h=null,v=null;if(f===d&&f--,-1<f){var F=n.getSize(t[f]);if(v=n.getBeginEnd(t[f]),a<F){var Qe=(F-a)/2;g=v.end-Qe}else g=v.end;p=v.end}else v={end:n.getBeginEndOfContainer().begin},p=n.getBeginEndOfContainer().begin;var he=Number.MAX_SAFE_INTEGER,ve=s;if(ve===d&&ve++,ve<t.length){var Mt=n.getSize(t[ve]);if(h=n.getBeginEnd(t[ve]),a<Mt){var Cn=(Mt-a)/2;he=h.begin+Cn}else he=h.begin;y=h.begin}else h={begin:n.getContainerRectangles().rect.end},y=n.getContainerRectangles().rect.end-n.getContainerRectangles().rect.begin;var On=v&&h?n.getTopLeftOfElementBegin(v.end):null;return o=s,{shadowBeginEnd:{dropArea:{begin:p,end:y},begin:g,end:he,rect:On,beginAdjustment:c?c.beginAdjustment:0}}}}function Dn(){var e=null;return function(t){var n=t.dragResult,o=n.pos,r=n.addedIndex,i=n.shadowBeginEnd;if(o!==null){if(r!=null&&e===null){if(o<i.begin){var u=o-i.begin-5;i.beginAdjustment=u}e=r}}else e=null}}function Nt(e){var t=e.getOptions,n=!1,o=t();return function(r){var i=!!r.dragResult.pos;i!==n&&((n=i)?o.onDragEnter&&o.onDragEnter():o.onDragLeave&&o.onDragLeave())}}function zt(e){var t=e.getOptions,n=null,o=t();return function(r){var i=r.dragResult,u=i.addedIndex,s=i.removedIndex,d=r.draggableInfo,a=d.payload,l=d.element;if(o.onDropReady&&u!==null&&n!==u){var c=n=u;s!==null&&s<u&&c--,o.onDropReady({addedIndex:c,removedIndex:s,payload:a,element:l?l.firstElementChild:void 0})}}}function jt(e){return e.getOptions().behaviour==="drop-zone"?Lt(e)(Ot,At,Rt,Pt,It,vn,yn,Nt,zt):Lt(e)(Ot,At,Rt,Pt,It,_n,wn,xn,En,Bt,Tt,bn,Dn,Nt,zt)}function Lt(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n.map(function(u){return u(e)}),i=null;return function(u){return i=r.reduce(function(s,d){return Object.assign(s,d({draggableInfo:u,dragResult:s}))},i||{addedIndex:null,removedIndex:null,elementSize:null,pos:null,shadowBeginEnd:null})}}}function Sn(e){return function(t){var n=Object.assign({},z,t),o=null,r=null,i=(function(f,g){var p=Ct(f),y=g();return M(f,"".concat(O," ").concat(y.orientation)),{element:f,draggables:p,getOptions:g,layout:on(f,y.orientation,y.animationDuration)}})(e,c),u=jt(i),s=hn(i),d=(function(f,g){var p=[];
2function y(){p&&(p.forEach(function(h){return h.removeEventListener("scroll",g)}),window.removeEventListener("scroll",g))}return(function(){for(var h=f;h;)(nt(h,"x")||nt(h,"y"))&&p.push(h),h=h.parentElement})(),{dispose:function(){y(),p=null},start:function(){p&&(p.forEach(function(h){return h.addEventListener("scroll",g)}),window.addEventListener("scroll",g))},stop:y}})(e,function(){i.layout.invalidateRects(),a()});function a(){r!==null&&(r.invalidateShadow=!0,o=u(r),r.invalidateShadow=!1)}function l(f,g){for(var p=Ct(g),y=0;y<p.length;y++)f[y]=p[y];for(var h=0;h<f.length-p.length;h++)f.pop()}function c(){return n}return{element:e,draggables:i.draggables,isDragRelevant:(function(f){var g=f.element,p=f.getOptions;return function(y,h){var v=p();if(v.shouldAcceptDrop)return v.shouldAcceptDrop(y.getOptions(),h);var F=y.getOptions();return v.behaviour!=="copy"&&ce(g,"."+I)!==y.element&&(y.element===g||!(!F.groupName||F.groupName!==v.groupName))}})(i),layout:i.layout,dispose:function(f){d.dispose(),(function(g){P.wrapChild&&Array.prototype.forEach.call(g.children,function(p){p.nodeType===Node.ELEMENT_NODE&&He(p,I)&&(g.insertBefore(p.firstElementChild,p),g.removeChild(p))})})(f.element)},prepareDrag:function(f,g){var p=f.element,y=i.draggables;l(y,p),f.layout.invalidateRects(),y.forEach(function(h){return St(h,!0,c().animationDuration)}),d.start()},handleDrag:function(f){return o=u(r=f)},handleDrop:function(f){d.stop(),o&&o.dropPlaceholderContainer&&e.removeChild(o.dropPlaceholderContainer),r=null,u=jt(i),s(f,o),o=null},fireRemoveElement:function(){s(r,Object.assign({},o,{addedIndex:null}),!0),o=null},getDragResult:function(){return o},getTranslateCalculator:function(f){return Bt(i)(f)},onTranslated:function(){a()},setDraggables:function(){l(i.draggables,e)},getScrollMaxSpeed:function(){return P.maxScrollSpeed},shouldUseTransformForGhost:function(){return P.useTransformForGhost===!0},getOptions:c,setOptions:function(f){var g=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1];n=g===!1?Object.assign({},z,f):Object.assign({},z,n,f)}}}}var P=function(e,t){var n=Sn(e)(t);return e[ee]=n,Le.register(n),{dispose:function(){Le.unregister(n),n.dispose(n)},setOptions:function(o,r){n.setOptions(o,r)}}};function Me(e,t,n){Object.defineProperty(e,n,{set:function(o){t[n]=o},get:function(){return t[n]}})}P.wrapChild=!0,P.cancelDrag=function(){Le.cancelDrag()},P.isDragging=function(){return Le.isDragging()};function Q(e,t){return console.warn('default export is deprecated. please use named export "smoothDnD"'),P(e,t)}Q.cancelDrag=function(){P.cancelDrag()},Q.isDragging=function(){return P.isDragging()},Me(Q,P,"useTransformForGhost"),Me(Q,P,"maxScrollSpeed"),Me(Q,P,"wrapChild"),Me(Q,P,"dropHandler"),S.smoothDnD=P,S.constants=W,S.dropHandlers=en,S.default=Q,Object.defineProperty(S,"__esModule",{value:!0})})})(_e,_e.exports)),_e.exports}var we=Yn();function qt(w){return w?typeof w=="string"||typeof w=="object"&&(typeof w.value=="string"||typeof w.value=="function"||typeof w.value=="object"):!0}function Wt(w,R){const S=w.$props.tag;if(S){if(typeof S=="string"){const b={value:S};return R&&(b.props={class:R}),b}else if(typeof S=="object"){const b={value:S.value||"div",props:S.props||{}};return R&&(b.props.class?Array.isArray(b.props.class)?b.props.class.push(R):b.props.class=[R,b.props.class]:b.props.class=R),b}}return{value:"div"}}we.smoothDnD.dropHandler=we.dropHandlers.reactDropHandler().handler;we.smoothDnD.wrapChild=!1;const Xt={"drag-start":"onDragStart","drag-end":"onDragEnd",drop:"onDrop","drag-enter":"onDragEnter","drag-leave":"onDragLeave","drop-ready":"onDropReady"};var qn=Gt({name:"Container",mounted(){const w=Object.assign({},this.$props);for(const R in Xt)w[Xt[R]]=S=>{this.$emit(R,S)};this.containerElement=this.$refs.container||this.$el,this.container=we.smoothDnD(this.containerElement,w)},unmounted(){if(this.container)try{this.container.dispose()}catch{}},emits:["drop","drag-start","drag-end","drag-enter","drag-leave","drop-ready"],props:{orientation:{type:String,default:"vertical"},removeOnDropOut:{type:Boolean,default:!1},autoScrollEnabled:{type:Boolean,default:!0},animationDuration:{type:Number,default:250},behaviour:String,groupName:String,dragHandleSelector:String,nonDragAreaSelector:String,lockAxis:String,dragClass:String,dropClass:String,dragBeginDelay:Number,getChildPayload:Function,shouldAnimateDrop:Function,shouldAcceptDrop:Function,getGhostParent:Function,dropPlaceholder:[Object,Boolean],tag:{validator:qt,default:"div"}},render(){const w=Wt(this);return Yt(w.value,Object.assign({},{ref:"container"},w.props),this.$slots.default())}}),Wn=Gt({name:"Draggable",props:{tag:{validator:qt,default:"div"}},render:function(){const w=Wt(this,we.constants.wrapperClass);return Yt(w.value,Object.assign({},w.props),this.$slots.default())}});const $n={class:"page__head"},Un={class:"title__h2 bold"},Kn={key:0,class:"page__loading"},Jn={class:"card page__empty"},Qn={class:"bold title__empty"},Zn={class:"text__empty"},eo={class:"products__help"},to=["aria-label"],no={class:"table__caption"},oo={class:"table__thead"},ro={class:"table__tr table__tr--naked",role:"rowgroup"},ao={class:"table__th table__visible",role:"columnheader"},io={class:"table__th",role:"columnheader"},lo={class:"table__th",role:"columnheader"},so={class:"table__th",role:"columnheader"},uo={class:"table__th",role:"columnheader"},co={class:"table__th",role:"columnheader"},fo={__name:"PrivateAllProducts",props:{projectSlug:{required:!0,type:String}},setup(w){const R=jn(()=>Mn(()=>import("./AppSpinner-DDmMHhZ_.js"),__vite__mapDeps([0,1,2,3]))),S=w,{t:b}=Rn(),{push:Z}=Pn(),{authUser:ee}=In(Bn()),{getProject:I,patchProject:ie}=Tn(),{getProducts:Y}=Vn(),{isSuperAdmin:q,isKoalect:K}=Hn(),{project:O}=I({id:S.projectSlug}),{products:le,loader:te}=Y({query:ae(()=>({project_id:be.get(O.value,"id"),"sort_by_field[field]":"created_at","sort_by_field[direction]":"asc"}))});Nn({title:ae(()=>O.value?`${b("literal.products")} / ${be.get(O.value,"name","")}`:null)});const k=ae(()=>be.get(O.value,"settings.products_display_order",[])),V=ae(()=>le.value.map(B=>{const T=k.value.find(W=>W.product_id===B.id);return Object.assign(B,{display_on_page:be.get(T,"display_on_page",B.display_on_page)})}
2)),J=ae(()=>be.get(O.value,"campaign.project_display_settings.product_creation",!1)),xe=ae(()=>O.value?q.value||K.value||O.value.isAuthorized(ee.value):null),se=B=>Z({name:"PrivateEditProduct",params:{productId:B.id}}),ue=({addedIndex:B,removedIndex:T})=>{Ln(le.value,T,B);const W=V.value.map(z=>({product_id:z.id,display_on_page:z.display_on_page}));ie({id:S.projectSlug,params:{settings:{products_display_order:W}}}),document.body.className=document.body.className.split(" ").filter(z=>z.indexOf("dnd")<0).join(" ")};return zn(xe,B=>{B===!1&&Z({name:"Project"})},{immediate:!0}),(B,T)=>{const W=Vt("router-link"),z=Vt("fa-icon");return U(),ye("div",null,[A("div",$n,[A("h2",Un,N(D(b)("literal.products")),1),V.value.length&&J.value?(U(),Ze(W,{key:0,class:"btn btn__size--small btn__color--primary",to:{name:"PrivateNewProduct"}},{default:Fe(()=>[et(N(D(b)("literal.create_new_product")),1)]),_:1})):Ft("",!0)]),D(te)?(U(),ye("div",Kn,[ke(D(R))])):!V.value.length&&!D(te)?(U(),ye(kt,{key:1},[A("section",Jn,[A("h3",Qn,N(D(b)("literal.you_dont_have_any_product_yet")),1),A("p",Zn,N(D(b)("literal.before_you_start_selling_products_first_you_have_to_create_them")),1),J.value?(U(),Ze(W,{key:0,class:"btn btn__empty btn__size--small btn__color--primary",to:{name:"PrivateNewProduct"}},{default:Fe(()=>[et(N(D(b)("literal.create_new_product")),1)]),_:1})):Ft("",!0)]),A("p",eo,[ke(z,{class:"margin__r--6",icon:["fal","circle-info"]}),et(" "+N(D(b)("literal.learn_more_about_products")),1)])],64)):(U(),ye("table",{key:2,class:"table",width:"100%",role:"table","aria-label":D(b)("literal.overview_of_project_products")},[A("caption",no,N(D(b)("literal.overview_of_project_products")),1),A("thead",oo,[A("tr",ro,[T[1]||(T[1]=A("th",{class:"table__th table__visible",role:"columnheader"},null,-1)),A("th",ao,N(D(b)("literal.title")),1),A("th",io,N(D(b)("literal.price")),1),A("th",lo,N(D(b)("literal.quantity_ordered")),1),A("th",so,N(D(b)("literal.stock")),1),A("th",uo,N(D(b)("literal.created_by")),1),A("th",co,N(D(b)("literal.display_on_page")),1),T[2]||(T[2]=A("th",{class:"table__th table__visible",role:"columnheader"},null,-1))])]),ke(D(qn),{class:"card table__tbody",orientation:"vertical","lock-axis":"y","drag-handle-selector":".table__grip",tag:"tbody",onDrop:T[0]||(T[0]=$=>ue($))},{default:Fe(()=>[(U(!0),ye(kt,null,Fn(V.value,($,x)=>(U(),Ze(D(Wn),{class:"table__tr table__hover",tag:"tr",key:`table_tr_${x}`,onClick:kn(Ve=>se($),["prevent"])},{default:Fe(()=>[ke(D(Xn),{product:$},null,8,["product"])]),_:2},1032,["onClick"]))),128))]),_:1})],8,to))])}}},yo=An(fo,[["__scopeId","data-v-8af552d1"]]);export{yo 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.