Your IP : 216.73.216.229


Current Path : /home/jeromecohp/www/plugins/system/fs_grid/element/fs_grid/app/
Upload File :
Current File : /home/jeromecohp/www/plugins/system/fs_grid/element/fs_grid/app/grid.min.js

/*! YOOtheme Pro v4.0.13 | https://yootheme.com */

(function(d,f){"use strict";function u(e){return h(f.observeResize,e,"resize")}function b(e){return h(f.observeMutation,e)}function h(e,t,n){return{observe:e,handler(){this.$emit(n)},...t}}b({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),u({target:({$el:e})=>[e,...f.children(e)]});function g(e){return m(e,"top","bottom")}function C(e){const t=[];for(const n of e){const s=m(n,"left","right");for(let r=0;r<s.length;r++)t[r]=t[r]?t[r].concat(s[r]):s[r]}return f.isRtl?t.reverse():t}function m(e,t,n){const s=[[]];for(const r of e){if(!f.isVisible(r))continue;let o=c(r);for(let a=s.length-1;a>=0;a--){const i=s[a];if(!i[0]){i.push(r);break}let l;if(i[0].offsetParent===r.offsetParent?l=c(i[0]):(o=c(r,!0),l=c(i[0],!0)),o[t]>=l[n]-1&&o[t]!==l[t]){s.push([r]);break}if(o[n]-1>l[t]||o[t]===l[t]){i.push(r);break}if(a===0){s.unshift([r]);break}}}return s}function c(e,t=!1){let{offsetTop:n,offsetLeft:s,offsetHeight:r,offsetWidth:o}=e;return t&&([n,s]=f.offsetPosition(e)),{top:n,left:s,bottom:n+r,right:s+o}}d.component("GridChecked",{args:"classes",props:{classes:"list"},data:{classes:""},observe:u({target:({$el:e})=>[e,...e.children]}),update:{read(){return{rows:g(Array.from(this.$el.children))}},write({rows:e}){var t;for(let n=0;n<e.length;n++)for(let s=0;s<e[0].length;s++){const r=n%2^s%2;let o=(t=e[n][s])==null?void 0:t.firstElementChild;f.isTag(o==null?void 0:o.firstElementChild,"a")&&(o=o.firstElementChild),f.toggleClass(o,this.classes[0],!r),f.toggleClass(o,this.classes[1],r)}},events:["resize"]}})})(UIkit,UIkit.util);