PageSourceSearch

https://selzee.com/build/assets/Index-DJYadD5l.js

js selzee.com collected 2026-09-24 19:58:14 UTC 45,921 bytes, 1 lines download raw bytes

vendor: 33,967 bytes, line 1
1import{n as Xt,_ as en,m as ee,q as Ke,o as Ze,a as Qe,V as Dt,b as k,c as M,e as C,t as ue,p as Je,d as Se,u as et,g as St,D as Ct,G as tn,v as nn,E as on,F as tt,r as nt,i as ie,f as rn,x as an,N as ln,j as ot,k as Tt}from"./app-DPZW85wG.js";import It from"./GalleryCard-C-CcSADd.js";import{X as sn}from"./x-BD3EosX5.js";import"./preload-helper-I4rgV-VL.js";import"./posthog-CQgXCQ7b.js";import"./PlatformPreview-ORL6PULd.js";import"./NativeCaption.vue_vue_type_script_setup_true_lang-BNbGHEQ2.js";import"./index-BD412rf6.js";import"./utils-C8nBGPD0.js";import"./loader-circle-CVCleWy-.js";import"./image-C6LATE-b.js";import"./Button-CchWSylj.js";import"./offerWords-CRxiSPqH.js";import"./thumbs-up-Be0mGis5.js";import"./share-2-tqqfYxK4.js";import"./send-OncIORAZ.js";import"./ellipsis-DXRKg6Bj.js";import"./Badge-Wr_2euRu.js";import"./funnelReveal-BwuaJYVq.js";const un=Xt("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);const dn=Xt("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);function cn(o,e,n){return(e=gn(e))in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function ae(){return ae=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)({}).hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},ae.apply(null,arguments)}function Ot(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),n.push.apply(n,t)}return n}function ne(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ot(Object(n),!0).forEach(function(t){cn(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function fn(o,e){if(o==null)return{};var n,t,i=hn(o,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(t=0;t<r.length;t++)n=r[t],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(o,n)&&(i[n]=o[n])}return i}function hn(o,e){if(o==null)return{};var n={};for(var t in o)if({}.hasOwnProperty.call(o,t)){if(e.indexOf(t)!==-1)continue;n[t]=o[t]}return n}function pn(o,e){if(typeof o!="object"||!o)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var t=n.call(o,e);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function gn(o){var e=pn(o,"string");return typeof e=="symbol"?e:e+""}function ht(o){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(o)}var mn="1.15.7";function re(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var le=re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ne=re(/Edge/i),xt=re(/firefox/i),Oe=re(/safari/i)&&!re(/chrome/i)&&!re(/android/i),bt=re(/iP(ad|od|hone)/i),Bt=re(/chrome/i)&&re(/android/i),Yt={capture:!1,passive:!1};function E(o,e,n){o.addEventListener(e,n,!le&&Yt)}function w(o,e,n){o.removeEventListener(e,n,!le&&Yt)}function $e(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function Ht(o){return o.host&&o!==document&&o.host.nodeType&&o.host!==o?o.host:o.parentNode}function Z(o,e,n,t){if(o){n=n||document;do{if(e!=null&&(e[0]===">"?o.parentNode===n&&$e(o,e):$e(o,e))||t&&o===n)return o;if(o===n)break}while(o=Ht(o))}return null}var Pt=/\s+/g;function z(o,e,n){if(o&&e)if(o.classList)o.classList[n?"add":"remove"](e);else{var t=(" "+o.className+" ").replace(Pt," ").replace(" "+e+" "," ");o.className=(t+(n?" "+e:"")).replace(Pt," ")}}function p(o,e,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),e===void 0?n:n[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=n+(typeof n=="string"?"":"px")}}function _e(o,e){var n="";if(typeof o=="string")n=o;else do{var t=p(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!e&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Lt(o,e,n){if(o){var t=o.getElementsByTagName(e),i=0,r=t.length;if(n)for(;i<r;i++)n(t[i],i);return t}return[]}function te(){var o=document.scrollingElement;return o||document.documentElement}function A(o,e,n,t,i){if(!(!o.getBoundingClientRect&&o!==window)){var r,a,l,s,u,c,f;if(o!==window&&o.parentNode&&o!==te()?(r=o.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,c=r.height,f=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||n)&&o!==window&&(i=i||o.parentNode,!le))do if(i&&i.getBoundingClientRect&&(p(i,"transform")!=="none"||n&&p(i,"position")!=="static")){var y=i.getBoundingClientRect();a-=y.top+parseInt(p(i,"border-top-width")),l-=y.left+parseInt(p(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(t&&o!==window){var S=_e(i||o),_=S&&S.a,D=S&&S.d;S&&(a/=D,l/=_,f/=_,c/=D,s=a+c,u=l+f)}return{top:a,left:l,bottom:s,right:u,width:f,height:c}}}function At(o,e,n){for(var t=fe(o,!0),i=A(o)[e];t;){var r=A(t)[n],a=void 0;if(a=i>=r,!a)return t;if(t===te())break;t=fe(t,!1)}return!1}function Ee(o,e,n,t){for(var i=0,r=0,a=o.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==g.ghost&&(t||a[r]!==g.dragged)&&Z(a[r],n.draggable,o,!1)){if(i===e)return a[r];i++}r++}return null}function yt(o,e){for(var n=o.lastElementChild;n&&(n===g.ghost||p(n,"display")==="none"||e&&!$e(n,e));)n=n.previousElementSibling;return n||null}function V(o,e){var n=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==g.clone&&(!e||$e(o,e))&&n++;return n}function kt(o){var e=0,n=0,t=te();if(o)do{var i=_e(o),r=i.a,a=i.d;e+=o.scrollLeft*r,n+=o.scrollTop*a}while(o!==t&&(o=o.parentNode));return[e,n]}function vn(o,e){for(var n in o)if(o.hasOwnProperty(n)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===o[n][t])return Number(n)}return-1}function fe(o,e){if(!o||!o.getBoundingClientRect)return te();var n=o,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=p(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return te();if(t||e)return n;t=!0}}while(n=n.parentNode);return te()}function bn(o,e){if(o&&e)for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function it(o,e){return Math.round(o.top)===Math.round(e.top)&&Math.round(o.left)===Math.round(e.left)&&Math.round(o.height)===Math.round(e.height)&&Math.round(o.width)===Math.round(e.width)}var xe;function jt(o,e){return function(){if(!xe){var n=arguments,t=this;n.length===1?o.call(t,n[0]):o.apply(t,n),xe=setTimeout(function(){xe=void 0},e)}}}function yn(){clearTimeout(xe),xe=void 0}function Gt(o,e,n){o.scrollLeft+=e,o.scrollTop+=n}function $t(o){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(o).cloneNode(!0):n?n(o).clone(!0)[0]:o.cloneNode(!0)}function zt(o,e,n){var t={};return Array.from(o.children).forEach(function(i){var r,a,l,s;if(!(!Z(i,e.draggable,o,!1)||i.animated||i===n)){var u=A(i);t.left=Math.min((r=t.left)!==null&&r!==void 0?r:1/0,u.left),t.top=Math.min((a=t.top)!==null&&a!==void 0?a:1/0,u.top),t.right=Math.max((l=t.right)!==null&&l!==void 0?l:-1/0,u.right),t.bottom=Math.max((s=t.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var G="Sortable"+new Date().getTime();function wn(){var o=[],e;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(i){if(!(p(i,"display")==="none"||i===g.ghost)){o.push({target:i,rect:A(i)});var r=ne({},o[o.length-1].rect);if(i.thisAnimationDuration){var a=_e(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(vn(o,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var r=!1,a=0;o.forEach(function(l){var s=0,u=l.target,c=u.fromRect,f=A(u),y=u.prevFromRect,S=u.prevToRect,_=l.rect,D=_e(u,!0);D&&(f.top-=D.f,f.left-=D.e),u.toRect=f,u.thisAnimationDuration&&it(y,f)&&!it(c,f)&&(_.top-f.top)/(_.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(s=En(_,y,S,i.options)),it(f,c)||(u.prevFromRect=c,u.prevToRect=f,s||(s=i.options.animation),i.animate(u,_,f,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),o=[]},animate:function(t,i,r,a){if(a){p(t,"transition",""),p(t,"transform","");var l=_e(this.el),s=l&&l.a,u=l&&l.d,c=(i.left-r.left)/(s||1),f=(i.top-r.top)/(u||1);t.animatingX=!!c,t.animatingY=!!f,p(t,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=_n(t),p(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),p(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){p(t,"transition",""),p(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function _n(o){return o.offsetWidth}function En(o,e,n,t){return Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*t.animation}var ve=[],rt={initializeByDefault:!0},Me={mount:function(e){for(var n in rt)rt.hasOwnProperty(n)&&!(n in e)&&(e[n]=rt[n]);ve.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ve.push(e)},pluginEvent:function(e,n,t){var i=this;this.eventCanceled=!1,t.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ve.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][r]&&n[a.pluginName][r](ne({sortable:n},t)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](ne({sortable:n},t)))})},initializePlugins:function(e,n,t,i){ve.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,n,e.options);u.sortable=e,u.options=e.options,e[s]=u,ae(t,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,n){var t={};return ve.forEach(function(i){typeof i.eventProperties=="function"&&ae(t,i.eventProperties.call(n[i.pluginName],e))}),t},modifyOption:function(e,n,t){var i;return ve.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(e[r.pluginName],t))}),i}};function Dn(o){var e=o.sortable,n=o.rootEl,t=o.name,i=o.targetEl,r=o.cloneEl,a=o.toEl,l=o.fromEl,s=o.oldIndex,u=o.newIndex,c=o.oldDraggableIndex,f=o.newDraggableIndex,y=o.originalEvent,S=o.putSortable,_=o.extraEventProperties;if(e=e||n&&n[G],!!e){var D,L=e.options,U="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!le&&!Ne?D=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(D=document.createEvent("Event"),D.initEvent(t,!0,!0)),D.to=a||n,D.from=l||n,D.item=i||n,D.clone=r,D.oldIndex=s,D.newIndex=u,D.oldDraggableIndex=c,D.newDraggableIndex=f,D.originalEvent=y,D.pullMode=S?S.lastPutMode:void 0;var x=ne(ne({},_),Me.getEventProperties(t,e));for(var Y in x)D[Y]=x[Y];n&&n.dispatchEvent(D),L[U]&&L[U].call(e,D)}}var Sn=["evt"],j=function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.evt,r=fn(t,Sn);Me.pluginEvent.bind(g)(e,n,ne({dragEl:d,parentEl:O,ghostEl:v,rootEl:T,nextEl:me,lastDownEl:He,cloneEl:I,cloneHidden:ce,dragStarted:Ce,putSortable:R,activeSortable:g.active,originalEvent:i,oldIndex:we,oldDraggableIndex:Pe,newIndex:W,newDraggableIndex:de,hideGhostForTarget:qt,unhideGhostForTarget:Kt,cloneNowHidden:function(){ce=!0},cloneNowShown:function(){ce=!1},dispatchSortableEvent:function(l){H({sortable:n,name:l,originalEvent:i})}},r))};function H(o){Dn(ne({putSortable:R,cloneEl:I,targetEl:d,rootEl:T,oldIndex:we,oldDraggableIndex:Pe,newIndex:W,newDraggableIndex:de},o))}var d,O,v,T,me,He,I,ce,we,W,Pe,de,Re,R,ye=!1,ze=!1,We=[],pe,K,at,lt,Nt,Mt,Ce,be,Ae,ke=!1,Xe=!1,Le,B,st=[],pt=!1,Ue=[],qe=typeof document<"u",Be=bt,Ft=Ne||le?"cssFloat":"float",Cn=qe&&!Bt&&!bt&&"draggable"in document.createElement("div"),Wt=(function(){if(qe){if(le)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}})(),Ut=function(e,n){var t=p(e),i=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=Ee(e,0,n),a=Ee(e,1,n),l=r&&p(r),s=a&&p(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+A(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&t[Ft]==="none"||a&&t[Ft]==="none"&&u+c>i)?"vertical":"horizontal"},Tn=function(e,n,t){var i=t?e.left:e.top,r=t?e.right:e.bottom,a=t?e.width:e.height,l=t?n.left:n.top,s=t?n.right:n.bottom,u=t?n.width:n.height;return i===l||r===s||i+a/2===l+u/2},In=function(e,n){var t;return We.some(function(i){var r=i[G].options.emptyInsertThreshold;if(!(!r||yt(i))){var a=A(i),l=e>=a.left-r&&e<=a.right+r,s=n>=a.top-r&&n<=a.bottom+r;if(l&&s)return t=i}}),t},Vt=function(e){function n(r,a){return function(l,s,u,c){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||f))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(l,s,u,c),a)(l,s,u,c);var y=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===y||r.join&&r.indexOf(y)>-1}}var t={},i=e.group;(!i||ht(i)!="object")&&(i={name:i}),t.name=i.name,t.checkPull=n(i.pull,!0),t.checkPut=n(i.put),t.revertClone=i.revertClone,e.group=t},qt=function(){!Wt&&v&&p(v,"display","none")},Kt=function(){!Wt&&v&&p(v,"display","")};qe&&!Bt&&document.addEventListener("click",function(o){if(ze)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),ze=!1,!1},!0);var ge=function(e){if(d){e=e.touches?e.touches[0]:e;var n=In(e.clientX,e.clientY);if(n){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[G]._onDragOver(t)}}},On=function(e){d&&d.parentNode[G]._isOutsideThisEl(e.target)};function g(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=ae({},e),o[G]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ut(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:g.supportPointer!==!1&&"PointerEvent"in window&&(!Oe||bt),emptyInsertThreshold:5};Me.initializePlugins(this,o,n);for(var t in n)!(t in e)&&(e[t]=n[t]);Vt(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:Cn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?E(o,"pointerdown",this._onTapStart):(E(o,"mousedown",this._onTapStart),E(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(o,"dragover",this),E(o,"dragenter",this)),We.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ae(this,wn())}g.prototype={constructor:g,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(be=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(Rn(t),!d&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Oe&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Z(s,i.draggable,t,!1),!(s&&s.animated)&&He!==s)){if(we=V(s),Pe=V(s,i.draggable),typeof c=="function"){if(c.call(this,e,s,this)){H({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),j("filter",n,{evt:e}),r&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Z(u,f.trim(),t,!1),f)return H({sortable:n,rootEl:f,name:"filter",targetEl:s,fromEl:t,toEl:t}),j("filter",n,{evt:e}),!0}),c)){r&&e.preventDefault();return}i.handle&&!Z(u,i.handle,t,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,t){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(t&&!d&&t.parentNode===r){var u=A(t);if(T=r,d=t,O=d.parentNode,me=d.nextSibling,He=t,Re=a.group,g.dragged=d,pe={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},Nt=pe.clientX-u.left,Mt=pe.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",s=function(){if(j("delayEnded",i,{evt:e}),g.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!xt&&i.nativeDraggable&&(d.draggable=!0),i._triggerDragStart(e,n),H({sortable:i,name:"choose",originalEvent:e}),z(d,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){Lt(d,c.trim(),ut)}),E(l,"dragover",ge),E(l,"mousemove",ge),E(l,"touchmove",ge),a.supportPointer?(E(l,"pointerup",i._onDrop),!this.nativeDraggable&&E(l,"pointercancel",i._onDrop)):(E(l,"mouseup",i._onDrop),E(l,"touchend",i._onDrop),E(l,"touchcancel",i._onDrop)),xt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),j("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ne||le))){if(g.eventCanceled){this._onDrop();return}a.supportPointer?(E(l,"pointerup",i._disableDelayedDrag),E(l,"pointercancel",i._disableDelayedDrag)):(E(l,"mouseup",i._disableDelayedDrag),E(l,"touchend",i._disableDelayedDrag),E(l,"touchcancel",i._disableDelayedDrag)),E(l,"mousemove",i._delayedDragTouchMoveHandler),E(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&E(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&ut(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._disableDelayedDrag),w(e,"touchend",this._disableDelayedDrag),w(e,"touchcancel",this._disableDelayedDrag),w(e,"pointerup",this._disableDelayedDrag),w(e,"pointercancel",this._disableDelayedDrag),w(e,"mousemove",this._delayedDragTouchMoveHandler),w(e,"touchmove",this._delayedDragTouchMoveHandler),w(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):n?E(document,"touchmove",this._onTouchMove):E(document,"mousemove",this._onTouchMove):(E(d,"dragend",this),E(T,"dragstart",this._onDragStart));try{document.selection?je(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ye=!1,T&&d){j("dragStarted",this,{evt:n}),this.nativeDraggable&&E(document,"dragover",On);var t=this.options;!e&&z(d,t.dragClass,!1),z(d,t.ghostClass,!0),g.active=this,e&&this._appendGhost(),H({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(K){this._lastX=K.clientX,this._lastY=K.clientY,qt();for(var e=document.elementFromPoint(K.clientX,K.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(K.clientX,K.clientY),e!==n);)n=e;if(d.parentNode[G]._isOutsideThisEl(e),n)do{if(n[G]){var t=void 0;if(t=n[G]._onDragOver({clientX:K.clientX,clientY:K.clientY,target:e,rootEl:n}),t&&!this.options.dragoverBubble)break}e=n}while(n=Ht(n));Kt()}},_onTouchMove:function(e){if(pe){var n=this.options,t=n.fallbackTolerance,i=n.fallbackOffset,r=e.touches?e.touches[0]:e,a=v&&_e(v,!0),l=v&&a&&a.a,s=v&&a&&a.d,u=Be&&B&&kt(B),c=(r.clientX-pe.clientX+i.x)/(l||1)+(u?u[0]-st[0]:0)/(l||1),f=(r.clientY-pe.clientY+i.y)/(s||1)+(u?u[1]-st[1]:0)/(s||1);if(!g.active&&!ye){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(v){a?(a.e+=c-(at||0),a.f+=f-(lt||0)):a={a:1,b:0,c:0,d:1,e:c,f};var y="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");p(v,"webkitTransform",y),p(v,"mozTransform",y),p(v,"msTransform",y),p(v,"transform",y),at=c,lt=f,K=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!v){var e=this.options.fallbackOnBody?document.body:T,n=A(d,!0,Be,!0,e),t=this.options;if(Be){for(B=e;p(B,"position")==="static"&&p(B,"transform")==="none"&&B!==document;)B=B.parentNode;B!==document.body&&B!==document.documentElement?(B===document&&(B=te()),n.top+=B.scrollTop,n.left+=B.scrollLeft):B=te(),st=kt(B)}v=d.cloneNode(!0),z(v,t.ghostClass,!1),z(v,t.fallbackClass,!0),z(v,t.dragClass,!0),p(v,"transition",""),p(v,"transform",""),p(v,"box-sizing","border-box"),p(v,"margin",0),p(v,"top",n.top),p(v,"left",n.left),p(v,"width",n.width),p(v,"height",n.height),p(v,"opacity","0.8"),p(v,"position",Be?"absolute":"fixed"),p(v,"zIndex","100000"),p(v,"pointerEvents","none"),g.ghost=v,e.appendChild(v),p(v,"transform-origin",Nt/parseInt(v.style.width)*100+"% "+Mt/parseInt(v.style.height)*100+"%")}},_onDragStart:function(e,n){var t=this,i=e.dataTransfer,r=t.options;if(j("dragStart",this,{evt:e}),g.eventCanceled){this._onDrop();return}j("setupClone",this),g.eventCanceled||(I=$t(d),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),z(I,this.options.chosenClass,!1),g.clone=I),t.cloneId=je(function(){j("clone",t),!g.eventCanceled&&(t.options.removeCloneOnHide||T.insertBefore(I,d),t._hideClone(),H({sortable:t,name:"clone"}))}),!n&&z(d,r.dragClass,!0),n?(ze=!0,t._loopId=setInterval(t._emulateDragOver,50)):(w(document,"mouseup",t._onDrop),w(document,"touchend",t._onDrop),w(document,"touchcancel",t._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(t,i,d)),E(document,"drop",t),p(d,"transform","translateZ(0)")),ye=!0,t._dragStartId=je(t._dragStarted.bind(t,n,e)),E(document,"selectstart",t),Ce=!0,window.getSelection().removeAllRanges(),Oe&&p(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,t=e.target,i,r,a,l=this.options,s=l.group,u=g.active,c=Re===s,f=l.sort,y=R||u,S,_=this,D=!1;if(pt)return;function L(De,Qt){j(De,_,ne({evt:e,isOwner:c,axis:S?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:f,fromSortable:y,target:t,completed:x,onMove:function(Et,Jt){return Ye(T,n,d,i,Et,A(Et),e,Jt)},changed:Y},Qt))}function U(){L("dragOverAnimationCapture"),_.captureAnimationState(),_!==y&&y.captureAnimationState()}function x(De){return L("dragOverCompleted",{insertion:De}),De&&(c?u._hideClone():u._showClone(_),_!==y&&(z(d,R?R.options.ghostClass:u.options.ghostClass,!1),z(d,l.ghostClass,!0)),R!==_&&_!==g.active?R=_:_===g.active&&R&&(R=null),y===_&&(_._ignoreWhileAnimating=t),_.animateAll(function(){L("dragOverAnimationComplete"),_._ignoreWhileAnimating=null}),_!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(t===d&&!d.animated||t===n&&!t.animated)&&(be=null),!l.dragoverBubble&&!e.rootEl&&t!==document&&(d.parentNode[G]._isOutsideThisEl(e.target),!De&&ge(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),D=!0}function Y(){W=V(d),de=V(d,l.draggable),H({sortable:_,name:"change",toEl:n,newIndex:W,newDraggableIndex:de,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=Z(t,l.draggable,n,!0),L("dragOver"),g.eventCanceled)return D;if(d.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||_._ignoreWhileAnimating===t)return x(!1);if(ze=!1,u&&!l.disabled&&(c?f||(a=O!==T):R===this||(this.lastPutMode=Re.checkPull(this,u,d,e))&&s.checkPut(this,u,d,e))){if(S=this._getDirection(e,t)==="vertical",i=A(d),L("dragOverValid"),g.eventCanceled)return D;if(a)return O=T,U(),this._hideClone(),L("revert"),g.eventCanceled||(me?T.insertBefore(d,me):T.appendChild(d)),x(!0);var F=yt(n,l.draggable);if(!F||kn(e,S,this)&&!F.animated){if(F===d)return x(!1);if(F&&n===e.target&&(t=F),t&&(r=A(t)),Ye(T,n,d,i,t,r,e,!!t)!==!1)return U(),F&&F.nextSibling?n.insertBefore(d,F.nextSibling):n.appendChild(d),O=n,Y(),x(!0)}else if(F&&An(e,S,this)){var q=Ee(n,0,l,!0);if(q===d)return x(!1);if(t=q,r=A(t),Ye(T,n,d,i,t,r,e,!1)!==!1)return U(),n.insertBefore(d,q),O=n,Y(),x(!0)}else if(t.parentNode===n){r=A(t);var X=0,oe,he=d.parentNode!==n,N=!Tn(d.animated&&d.toRect||i,t.animated&&t.toRect||r,S),Q=S?"top":"left",J=At(t,"top","top")||At(d,"top","top"),se=J?J.scrollTop:void 0;be!==t&&(oe=r[Q],ke=!1,Xe=!N&&l.invertSwap||he),X=Nn(e,t,r,S,N?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Xe,be===t);var m;if(X!==0){var b=V(d);do b-=X,m=O.children[b];while(m&&(p(m,"display")==="none"||m===v))}if(X===0||m===t)return x(!1);be=t,Ae=X;var h=t.nextElementSibling,$=!1;$=X===1;var Fe=Ye(T,n,d,i,t,r,e,$);if(Fe!==!1)return(Fe===1||Fe===-1)&&($=Fe===1),pt=!0,setTimeout(Pn,30),U(),$&&!h?n.appendChild(d):t.parentNode.insertBefore(d,$?h:t),J&&Gt(J,0,se-J.scrollTop),O=d.parentNode,oe!==void 0&&!Xe&&(Le=Math.abs(oe-A(t)[Q])),Y(),x(!0)}if(n.contains(d))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",ge),w(document,"mousemove",ge),w(document,"touchmove",ge)},_offUpEvents:function(){var e=this.el.ownerDocument;w(e,"mouseup",this._onDrop),w(e,"touchend",this._onDrop),w(e,"pointerup",this._onDrop),w(e,"pointercancel",this._onDrop),w(e,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(e){var n=this.el,t=this.options;if(W=V(d),de=V(d,t.draggable),j("drop",this,{evt:e}),O=d&&d.parentNode,W=V(d),de=V(d,t.draggable),g.eventCanceled){this._nulling();return}ye=!1,Xe=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gt(this.cloneId),gt(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Oe&&p(document.body,"user-select",""),p(d,"transform",""),e&&(Ce&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),v&&v.parentNode&&v.parentNode.removeChild(v),(T===O||R&&R.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),d&&(this.nativeDraggable&&w(d,"dragend",this),ut(d),d.style["will-change"]="",Ce&&!ye&&z(d,R?R.options.ghostClass:this.options.ghostClass,!1),z(d,this.options.chosenClass,!1),H({sortable:this,name:"unchoose",toEl:O,newIndex:null,newDraggableIndex:null,originalEvent:e}),T!==O?(W>=0&&(H({rootEl:O,name:"add",toEl:O,fromEl:T,originalEvent:e}),H({sortable:this,name:"remove",toEl:O,originalEvent:e}),H({rootEl:O,name:"sort",toEl:O,fromEl:T,originalEvent:e}),H({sortable:this,name:"sort",toEl:O,originalEvent:e})),R&&R.save()):W!==we&&W>=0&&(H({sortable:this,name:"update",toEl:O,originalEvent:e}),H({sortable:this,name:"sort",toEl:O,originalEvent:e})),g.active&&((W==null||W===-1)&&(W=we,de=Pe),H({sortable:this,name:"end",toEl:O,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){j("nulling",this),T=d=O=v=me=I=He=ce=pe=K=Ce=W=de=we=Pe=be=Ae=R=Re=g.dragged=g.ghost=g.clone=g.active=null;var e=this.el;Ue.forEach(function(n){e.contains(n)&&(n.checked=!0)}),Ue.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),xn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,t=this.el.children,i=0,r=t.length,a=this.options;i<r;i++)n=t[i],Z(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||Fn(n));return e},sort:function(e,n){var t={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];Z(l,this.options.draggable,i,!1)&&(t[r]=l)},this),n&&this.captureAnimationState(),e.forEach(function(r){t[r]&&(i.removeChild(t[r]),i.appendChild(t[r]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Z(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var t=this.options;if(n===void 0)return t[e];var i=Me.modifyOption(this,e,n);typeof i<"u"?t[e]=i:t[e]=n,e==="group"&&Vt(t)},destroy:function(){j("destroy",this);var e=this.el;e[G]=null,w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart),w(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),We.splice(We.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ce){if(j("hideClone",this),g.eventCanceled)return;p(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),ce=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(ce){if(j("showClone",this),g.eventCanceled)return;d.parentNode==T&&!this.options.group.revertClone?T.insertBefore(I,d):me?T.insertBefore(I,me):T.appendChild(I),this.options.group.revertClone&&this.animate(d,I),p(I,"display",""),ce=!1}}};function xn(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function Ye(o,e,n,t,i,r,a,l){var s,u=o[G],c=u.options.onMove,f;return window.CustomEvent&&!le&&!Ne?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=o,s.dragged=n,s.draggedRect=t,s.related=i||e,s.relatedRect=r||A(e),s.willInsertAfter=l,s.originalEvent=a,o.dispatchEvent(s),c&&(f=c.call(u,s,a)),f}function ut(o){o.draggable=!1}function Pn(){pt=!1}function An(o,e,n){var t=A(Ee(n.el,0,n.options,!0)),i=zt(n.el,n.options,v),r=10;return e?o.clientX<i.left-r||o.clientY<t.top&&o.clientX<t.right:o.clientY<i.top-r||o.clientY<t.bottom&&o.clientX<t.left}function kn(o,e,n){var t=A(yt(n.el,n.options.draggable)),i=zt(n.el,n.options,v),r=10;return e?o.clientX>i.right+r||o.clientY>t.bottom&&o.clientX>t.left:o.clientY>i.bottom+r||o.clientX>t.right&&o.clientY>t.top}function Nn(o,e,n,t,i,r,a,l){var s=t?o.clientY:o.clientX,u=t?n.height:n.width,c=t?n.top:n.left,f=t?n.bottom:n.right,y=!1;if(!a){if(l&&Le<u*i){if(!ke&&(Ae===1?s>c+u*r/2:s<f-u*r/2)&&(ke=!0),ke)y=!0;else if(Ae===1?s<c+Le:s>f-Le)return-Ae}else if(s>c+u*(1-i)/2&&s<f-u*(1-i)/2)return Mn(e)}return y=y||a,y&&(s<c+u*r/2||s>f-u*r/2)?s>c+u/2?1:-1:0}function Mn(o){return V(d)<V(o)?1:-1}function Fn(o){for(var e=o.tagName+o.className+o.src+o.href+o.textContent,n=e.length,t=0;n--;)t+=e.charCodeAt(n);return t.toString(36)}function Rn(o){Ue.length=0;for(var e=o.getElementsByTagName("input"),n=e.length;n--;){var t=e[n];t.checked&&Ue.push(t)}}function je(o){return setTimeout(o,0)}function gt(o){return clearTimeout(o)}qe&&E(document,"touchmove",function(o){(g.active||ye)&&o.cancelable&&o.preventDefault()});g.utils={on:E,off:w,css:p,find:Lt,is:function(e,n){return!!Z(e,n,e,!1)},extend:bn,throttle:jt,closest:Z,toggleClass:z,clone:$t,index:V,nextTick:je,cancelNextTick:gt,detectDirection:Ut,getChild:Ee,expando:G};g.get=function(o){return o[G]};g.mount=function(){for(var o=arguments.length,e=new Array(o),n=0;n<o;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(g.utils=ne(ne({}
1,g.utils),t.utils)),Me.mount(t)})};g.create=function(o,e){return new g(o,e)};g.version=mn;var P=[],Te,mt,vt=!1,dt,ct,Ve,Ie;function Xn(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return o.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):this.options.supportPointer?E(document,"pointermove",this._handleFallbackAutoScroll):t.touches?E(document,"touchmove",this._handleFallbackAutoScroll):E(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),Rt(),Ge(),yn()},nulling:function(){Ve=mt=Te=vt=Ie=dt=ct=null,P.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var i=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(r,a);if(Ve=n,t||this.options.forceAutoScrollFallback||Ne||le||Oe){ft(n,this.options,l,t);var s=fe(l,!0);vt&&(!Ie||r!==dt||a!==ct)&&(Ie&&Rt(),Ie=setInterval(function(){var u=fe(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Ge()),ft(n,i.options,u,t)},10),dt=r,ct=a)}else{if(!this.options.bubbleScroll||fe(l,!0)===te()){Ge();return}ft(n,this.options,fe(l,!1),!1)}}},ae(o,{pluginName:"scroll",initializeByDefault:!0})}function Ge(){P.forEach(function(o){clearInterval(o.pid)}),P=[]}function Rt(){clearInterval(Ie)}var ft=jt(function(o,e,n,t){if(e.scroll){var i=(o.touches?o.touches[0]:o).clientX,r=(o.touches?o.touches[0]:o).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=te(),u=!1,c;mt!==n&&(mt=n,Ge(),Te=e.scroll,c=e.scrollFn,Te===!0&&(Te=fe(n,!0)));var f=0,y=Te;do{var S=y,_=A(S),D=_.top,L=_.bottom,U=_.left,x=_.right,Y=_.width,F=_.height,q=void 0,X=void 0,oe=S.scrollWidth,he=S.scrollHeight,N=p(S),Q=S.scrollLeft,J=S.scrollTop;S===s?(q=Y<oe&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),X=F<he&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(q=Y<oe&&(N.overflowX==="auto"||N.overflowX==="scroll"),X=F<he&&(N.overflowY==="auto"||N.overflowY==="scroll"));var se=q&&(Math.abs(x-i)<=a&&Q+Y<oe)-(Math.abs(U-i)<=a&&!!Q),m=X&&(Math.abs(L-r)<=a&&J+F<he)-(Math.abs(D-r)<=a&&!!J);if(!P[f])for(var b=0;b<=f;b++)P[b]||(P[b]={});(P[f].vx!=se||P[f].vy!=m||P[f].el!==S)&&(P[f].el=S,P[f].vx=se,P[f].vy=m,clearInterval(P[f].pid),(se!=0||m!=0)&&(u=!0,P[f].pid=setInterval((function(){t&&this.layer===0&&g.active._onTouchMove(Ve);var h=P[this.layer].vy?P[this.layer].vy*l:0,$=P[this.layer].vx?P[this.layer].vx*l:0;typeof c=="function"&&c.call(g.dragged.parentNode[G],$,h,o,Ve,P[this.layer].el)!=="continue"||Gt(P[this.layer].el,$,h)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&y!==s&&(y=fe(y,!1)));vt=u}},30),Zt=function(e){var n=e.originalEvent,t=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(n){var u=t||r;l();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);s(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:t}))}};function wt(){}wt.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var i=Ee(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Zt};ae(wt,{pluginName:"revertOnSpill"});function _t(){}_t.prototype={onSpill:function(e){var n=e.dragEl,t=e.putSortable,i=t||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Zt};ae(_t,{pluginName:"removeOnSpill"});g.mount(new Xn);g.mount(_t,wt);const Bn={class:"gl-page"},Yn={class:"gl-head"},Hn={class:"gl-title"},Ln={class:"gl-head-actions"},jn={class:"gl-modes",role:"group","aria-label":"How to view the gallery"},Gn=["aria-pressed"],$n=["aria-pressed"],zn={key:0,class:"gl-admin"},Wn={key:0,class:"gl-admin-body"},Un={class:"gl-admin-filters"},Vn={class:"gl-pool"},qn=["src","alt"],Kn={class:"gl-pool-meta"},Zn={class:"gl-pool-brand"},Qn={class:"gl-pool-beat"},Jn={class:"gl-pool-actions"},eo=["data-testid","onClick"],to=["onClick"],no={key:0,class:"gl-empty"},oo={key:1,class:"gl-feed","data-testid":"gallery-feed"},io=["data-item-id"],ro={key:0,class:"gl-owner"},ao={key:0,class:"gl-flag"},lo=["onClick"],so=["onClick"],uo=["data-item-id","data-testid","aria-label","onClick"],co=["src","alt"],fo={key:0,class:"gl-cell-flag"},ho={key:3,class:"gl-empty","data-testid":"gallery-empty"},po={key:4,class:"gl-empty"},go=["aria-label"],mo={class:"gl-modal-body"},vo={__name:"Index",props:{collection:{type:Object,required:!0},items:{type:Array,required:!0},next_cursor:{type:String,default:null},view:{type:String,default:"feed"},is_admin:{type:Boolean,default:!1},candidates:{type:Object,default:null},filters:{type:Object,default:null}},setup(o){const e=o,n=Tt(()=>route("gallery.index",{collection:e.collection.slug})),t=ee([...e.items]),i=ee(e.next_cursor),r=ee(!1);let a=!1;Ke(()=>e.items,m=>{a||(t.value=[...m],i.value=e.next_cursor)});function l(){r.value||!i.value||(r.value=!0,a=!0,ot.get(n.value,{cursor:i.value,view:c.value},{only:["items","next_cursor"],preserveState:!0,preserveScroll:!0,preserveUrl:!0,replace:!0,onSuccess:m=>{const b=new Set(t.value.map(h=>h.id));t.value.push(...m.props.items.filter(h=>!b.has(h.id))),i.value=m.props.next_cursor},onFinish:()=>{r.value=!1,a=!1}}))}const s=ee(null);let u=null;Ze(()=>{u=new IntersectionObserver(m=>{m.some(b=>b.isIntersecting)&&l()},{rootMargin:"600px 0px"}),s.value&&u.observe(s.value)}),Qe(()=>u?.disconnect()),Ke(s,m=>{u?.disconnect(),m&&u&&u.observe(m)});const c=ee(e.view==="feed"?"feed":"grid");function f(m){if(c.value===m)return;c.value=m;const b=new URL(window.location.href);m==="feed"?b.searchParams.set("view","feed"):b.searchParams.delete("view");const h=window.history.state;h?.page&&(h.page={...h.page,url:b.pathname+b.search,props:{...h.page.props,view:m}}),window.history.replaceState(h,"",b)}const y=ee(null),S=Tt(()=>t.value.find(m=>m.id===y.value)??null);function _(m){y.value=m.id,window.history.pushState({galleryItem:m.id},"",m.url)}function D(){y.value!==null&&window.history.back()}function L(m){y.value=m.state?.galleryItem??null}function U(m){m.key==="Escape"&&D()}Ze(()=>{window.addEventListener("popstate",L),window.addEventListener("keydown",U)}),Qe(()=>{window.removeEventListener("popstate",L),window.removeEventListener("keydown",U)});const x=ee(!1),Y=ee(e.filters?.brand??""),F=ee(e.filters?.state??"");function q(){ot.get(n.value,{view:c.value==="feed"?"feed":void 0,brand:Y.value||void 0,state:F.value||void 0},{preserveState:!0,preserveScroll:!0,replace:!0})}function X(m,b,h={}){ot.post(route(`admin.gallery.${m}`,b),h,{preserveScroll:!0})}const oe=m=>X("publish",{collection:e.collection.slug},{employee_id:m.employee_id,record_id:m.record_id}),he=m=>X("dismiss",{collection:e.collection.slug},{employee_id:m.employee_id,record_id:m.record_id}),N=ee(null);let Q=null;function J(){const m=[...N.value.querySelectorAll("[data-item-id]")].map(b=>Number(b.dataset.itemId));X("reorder",{collection:e.collection.slug},{ids:m})}function se(){Q?.destroy(),Q=null,!(!e.is_admin||c.value!=="grid"||!N.value)&&(Q=g.create(N.value,{animation:150,handle:".gl-drag",ghostClass:"gl-cell--ghost",onEnd:J}))}return Ze(()=>Dt(se)),Ke([c,()=>e.is_admin,()=>t.value.length],()=>Dt(se)),Qe(()=>Q?.destroy()),(m,b)=>(k(),M("div",Bn,[C("header",Yn,[C("div",null,[C("h1",Hn,ue(o.collection.title),1),b[5]||(b[5]=C("p",{class:"gl-sub"},"Real outputs, from real brands.",-1))]),C("div",Ln,[C("div",jn,[C("button",{type:"button",class:Je(["gl-mode",{"gl-mode--on":c.value==="feed"}]),"aria-pressed":c.value==="feed","data-testid":"gallery-view-feed",onClick:b[0]||(b[0]=h=>f("feed"))},[Se(et(dn),{size:16}),b[6]||(b[6]=St(" Feed",-1))],10,Gn),C("button",{type:"button",class:Je(["gl-mode",{"gl-mode--on":c.value==="grid"}]),"aria-pressed":c.value==="grid","data-testid":"gallery-view-grid",onClick:b[1]||(b[1]=h=>f("grid"))},[Se(et(un),{size:16}),b[7]||(b[7]=St(" Grid",-1))],10,$n)])])]),o.is_admin?(k(),M("section",zn,[C("button",{type:"button",class:"gl-admin-toggle","data-testid":"gallery-curate",onClick:b[2]||(b[2]=h=>x.value=!x.value)}
1,ue(x.value?"Close":"Curate")+" · "+ue(o.candidates?.items?.length??0)+" candidates ",1),x.value?(k(),M("div",Wn,[C("div",Un,[Ct(C("input",{"onUpdate:modelValue":b[3]||(b[3]=h=>Y.value=h),type:"search",class:"gl-input",placeholder:"Brand","data-testid":"gallery-filter-brand",onKeyup:nn(q,["enter"])},null,544),[[tn,Y.value]]),Ct(C("select",{"onUpdate:modelValue":b[4]||(b[4]=h=>F.value=h),class:"gl-input","data-testid":"gallery-filter-state",onChange:q},[...b[8]||(b[8]=[C("option",{value:""},"Everything",-1),C("option",{value:"new"},"Not triaged",-1),C("option",{value:"published"},"Published",-1),C("option",{value:"hidden"},"Hidden",-1)])],544),[[on,F.value]]),C("button",{type:"button",class:"gl-btn",onClick:q},"Filter")]),C("ul",Vn,[(k(!0),M(tt,null,nt(o.candidates?.items??[],h=>(k(),M("li",{key:h.record_id,class:"gl-pool-item"},[C("img",{src:h.image_url,alt:`${h.brand} ${h.beat} ad`,class:"gl-pool-img",loading:"lazy"},null,8,qn),C("div",Kn,[C("p",Zn,ue(h.brand),1),C("p",Qn,ue(h.beat)+" · "+ue(h.state),1)]),C("div",Jn,[C("button",{type:"button",class:"gl-btn gl-btn--go","data-testid":`gallery-publish-${h.record_id}`,onClick:$=>oe(h)},ue(h.state==="published"?"Re-publish":"Publish"),9,eo),C("button",{type:"button",class:"gl-btn",onClick:$=>he(h)},"Dismiss",8,to)])]))),128))]),(o.candidates?.items?.length??0)===0?(k(),M("p",no,"Nothing left to triage here.")):ie("",!0)])):ie("",!0)])):ie("",!0),c.value==="feed"?(k(),M("div",oo,[(k(!0),M(tt,null,nt(t.value,h=>(k(),M("div",{key:h.id,class:"gl-feed-row","data-item-id":h.id},[Se(It,{item:h},null,8,["item"]),o.is_admin?(k(),M("div",ro,[h.hidden?(k(),M("span",ao,"Hidden")):ie("",!0),C("button",{type:"button",class:"gl-btn",onClick:$=>X(h.hidden?"unhide":"hide",{item:h.id})},ue(h.hidden?"Show":"Hide"),9,lo),C("button",{type:"button",class:"gl-btn",onClick:$=>X("resync",{item:h.id})},"Re-sync",8,so)])):ie("",!0)],8,io))),128))])):(k(),M("div",{key:2,ref_key:"orderable",ref:N,class:"gl-grid","data-testid":"gallery-grid"},[(k(!0),M(tt,null,nt(t.value,h=>(k(),M("button",{key:h.id,type:"button",class:Je(["gl-cell",{"gl-drag":o.is_admin}]),"data-item-id":h.id,"data-testid":`gallery-cell-${h.id}`,"aria-label":`Open ${h.brand}'s ad`,onClick:$=>_(h)},[C("img",{src:h.image_url,alt:`${h.brand} ad`,class:"gl-cell-img",loading:"lazy"},null,8,co),o.is_admin&&h.hidden?(k(),M("span",fo,"Hidden")):ie("",!0)],10,uo))),128))],512)),t.value.length===0?(k(),M("p",ho," Nothing here yet. ")):ie("",!0),C("div",{ref_key:"sentinel",ref:s,class:"gl-sentinel","aria-hidden":"true"},null,512),r.value?(k(),M("p",po,"Loading…")):ie("",!0),(k(),rn(ln,{to:"body"},[S.value?(k(),M("div",{key:0,class:"gl-modal",role:"dialog","aria-modal":"true","aria-label":`${S.value.brand}'s ad`,"data-testid":"gallery-modal",onClick:an(D,["self"])},[C("button",{type:"button",class:"gl-modal-close","aria-label":"Close","data-testid":"gallery-modal-close",onClick:D},[Se(et(sn),{size:20})]),C("div",mo,[Se(It,{item:S.value},null,8,["item"])])],8,go)):ie("",!0)]))]))}},Bo=en(vo,[["__scopeId","data-v-cf24c544"]]);export{Bo 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.