")[0],h=e.each;c.style.cssText="background-color:rgba(1,1,1,.5)",g.rgba=c.style.backgroundColor.indexOf("rgba")>-1,h(d,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),u.fn=e.extend(u.prototype,{parse:function(r,a,s,l){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(a),a=t);var _=this,g=e.type(r),c=this._rgba=[];return a!==t&&(r=[r,a,s,l],g="array"),"string"===g?this.parse(n(r)||o._default):"array"===g?(h(d.rgba.props,function(e,t){c[t.idx]=i(r[t.idx],t)}),this):"object"===g?(r instanceof u?h(d,function(e,t){r[t.cache]&&(_[t.cache]=r[t.cache].slice())}):h(d,function(t,n){var o=n.cache;h(n.props,function(e,t){if(!_[o]&&n.to){if("alpha"===e||null==r[e])return;_[o]=n.to(_._rgba)}_[o][t.idx]=i(r[e],t,!0)}),_[o]&&e.inArray(null,_[o].slice(0,3))<0&&(_[o][3]=1,n.from&&(_._rgba=n.from(_[o])))}),this):void 0},is:function(e){var t=u(e),i=!0,n=this;return h(d,function(e,r){var o,a=t[r.cache];return a&&(o=n[r.cache]||r.to&&r.to(n._rgba)||[],h(r.props,function(e,t){return null!=a[t.idx]?i=a[t.idx]===o[t.idx]:void 0})),i}),i},_space:function(){var e=[],t=this;return h(d,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var n=u(e),r=n._space(),o=d[r],a=0===this.alpha()?u("transparent"):this,s=a[o.cache]||o.to(a._rgba),l=s.slice();return n=n[o.cache],h(o.props,function(e,r){var o=r.idx,a=s[o],u=n[o],d=_[r.type]||{};null!==u&&(null===a?l[o]=u:(d.mod&&(u-a>d.mod/2?a+=d.mod:a-u>d.mod/2&&(a-=d.mod)),l[o]=i((u-a)*t+a,r)))}),this[r](l)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=u(t)._rgba;return u(e.map(i,function(e,t){return(1-n)*r[t]+n*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,d.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,r=e[1]/255,o=e[2]/255,a=e[3],s=Math.max(n,r,o),l=Math.min(n,r,o),u=s-l,d=s+l,_=.5*d;return t=l===s?0:n===s?60*(r-o)/u+360:r===s?60*(o-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5>=_?u/d:u/(2-d),[Math.round(t)%360,i,_,null==a?1:a]},d.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],o=e[3],a=.5>=n?n*(1+i):n+i-n*i,s=2*n-a;return[Math.round(255*r(s,a,t+1/3)),Math.round(255*r(s,a,t)),Math.round(255*r(s,a,t-1/3)),o]},h(d,function(n,r){var o=r.props,a=r.cache,l=r.to,d=r.from;u.fn[n]=function(n){if(l&&!this[a]&&(this[a]=l(this._rgba)),n===t)return this[a].slice();var r,s=e.type(n),_="array"===s||"object"===s?n:arguments,g=this[a].slice();return h(o,function(e,t){var n=_["object"===s?e:t.idx];null==n&&(n=g[t.idx]),g[t.idx]=i(n,t)}),d?(r=u(d(g)),r[a]=g,r):u(g)},h(o,function(t,i){u.fn[t]||(u.fn[t]=function(r){var o,a=e.type(r),l="alpha"===t?this._hsla?"hsla":"rgba":n,u=this[l](),d=u[i.idx];return"undefined"===a?d:("function"===a&&(r=r.call(this,d),a=e.type(r)),null==r&&i.empty?this:("string"===a&&(o=s.exec(r),o&&(r=d+parseFloat(o[2])*("+"===o[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),u.hook=function(t){var i=t.split(" ");h(i,function(t,i){e.cssHooks[i]={set:function(t,r){var o,a,s="";if("transparent"!==r&&("string"!==e.type(r)||(o=n(r)))){if(r=u(o||r),!g.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===i?t.parentNode:t;(""===s||"transparent"===s)&&a&&a.style;)try{s=e.css(a,"backgroundColor"),a=a.parentNode}catch(l){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{t.style[i]=r}catch(l){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=u(t.elem,i),t.end=u(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},u.hook(a),e.cssHooks.borderColor={expand:function(e){var t={};return h(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},o=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),!function(e){function t(){try{var i=this===document?e(this):e(this).contents()}catch(n){return!1}i.mousemove(function(t){e.mlp={x:t.pageX,y:t.pageY}}),i.find("iframe").on("load",t)}e.mlp={x:0,y:0},e(t),e.fn.ismouseover=function(){var t=!1;return this.eq(0).each(function(){var i=e(this).is("iframe")?e(this).contents().find("body"):e(this),n=i.offset();t=n.left<=e.mlp.x&&n.left+i.outerWidth()>e.mlp.x&&n.top<=e.mlp.y&&n.top+i.outerHeight()>e.mlp.y}),t}}(jQuery);var g_ugYoutubeAPI=new UGYoutubeAPI,g_ugVimeoAPI=new UGVimeoAPI,g_ugHtml5MediaAPI=new UGHtml5MediaAPI,g_ugSoundCloudAPI=new UGSoundCloudAPI,g_ugWistiaAPI=new UGWistiaAPI;jQuery.fn.unitegallery=function(e){var t=jQuery(this),i="#"+t.attr("id");if(!e)var e={};var n=new UniteGalleryMain;n.run(i,e);var r=new UG_API(n);return r}; if(typeof g_ugFunctions != "undefined") g_ugFunctions.registerTheme("tiles"); else jQuery(document).ready(function(){g_ugFunctions.registerTheme("tiles")}); /** * Grid gallery theme */ function UGTheme_tiles(){ var t = this; var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper; var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper; var g_functions = new UGFunctions(), g_objTileDesign = new UGTileDesign(); var g_options = { theme_enable_preloader: true, //enable preloader circle theme_preloading_height: 200, //the height of the preloading div, it show before the gallery theme_preloader_vertpos: 100, //the vertical position of the preloader theme_gallery_padding: 0, //the horizontal padding of the gallery from the sides theme_appearance_order: "normal", //normal, shuffle, keep - the appearance order of the tiles. applying only to columns type theme_auto_open:null //auto open lightbox at start }; var g_defaults = { gallery_width: "100%" }; //temp variables var g_temp = { showPreloader: false }; /** * Init the theme */ function initTheme(gallery, customOptions){ g_gallery = gallery; //set default options g_options = jQuery.extend(g_options, g_defaults); //set custom options g_options = jQuery.extend(g_options, customOptions); modifyOptions(); //set gallery options g_gallery.setOptions(g_options); g_gallery.setFreestyleMode(); g_objects = gallery.getObjects(); //get some objects for local use g_objGallery = jQuery(gallery); g_objWrapper = g_objects.g_objWrapper; //init objects g_tiles.init(gallery, g_options); g_lightbox.init(gallery, g_options); g_objTileDesign = g_tiles.getObjTileDesign(); } /** * modift options */ function modifyOptions(){ if(g_options.theme_enable_preloader == true) g_temp.showPreloader = true; switch(g_options.theme_appearance_order){ default: case "normal": break; case "shuffle": g_gallery.shuffleItems(); break; case "keep": g_options.tiles_keep_order = true; break; } } /** * set gallery html elements */ function setHtml(){ //add html elements g_objWrapper.addClass("ug-theme-tiles"); g_objWrapper.append("
"); //add preloader if(g_temp.showPreloader == true){ g_objWrapper.append(""); g_objPreloader = g_objWrapper.children(".ug-tiles-preloader"); g_objPreloader.fadeTo(0,0); } g_objTilesWrapper = g_objWrapper.children(".ug-tiles-wrapper"); //set padding if(g_options.theme_gallery_padding) g_objWrapper.css({ "padding-left":g_options.theme_gallery_padding+"px", "padding-right":g_options.theme_gallery_padding+"px" }); g_tiles.setHtml(g_objTilesWrapper); g_lightbox.putHtml(); } /** * actually run the theme */ function actualRun(){ //set preloader mode if(g_objPreloader){ g_objPreloader.fadeTo(0,1); g_objWrapper.height(g_options.theme_preloading_height); g_functions.placeElement(g_objPreloader, "center", g_options.theme_preloader_vertpos); } initEvents(); g_tiles.run(); g_lightbox.run(); } /** * run the theme */ function runTheme(){ setHtml(); actualRun(); } /** * init size of the thumbs panel */ function initThumbsPanel(){ //set size: var objGallerySize = g_gallery.getSize(); if(g_temp.isVertical == false) g_objPanel.setWidth(objGallerySize.width); else g_objPanel.setHeight(objGallerySize.height); g_objPanel.run(); } /** * on tile click - open lightbox */ function onTileClick(data, objTile){ objTile = jQuery(objTile); var objItem = g_objTileDesign.getItemByTile(objTile); var index = objItem.index; g_lightbox.open(index); } /** * before items request: hide items, show preloader */ function onBeforeReqestItems(){ g_objTilesWrapper.hide(); if(g_objPreloader){ g_objPreloader.show(); var preloaderSize = g_functions.getElementSize(g_objPreloader); var galleryHeight = preloaderSize.bottom + 30; g_objWrapper.height(galleryHeight); } } /** * open lightbox at start if needed */ function onLightboxInit(){ if(g_options.theme_auto_open !== null){ g_lightbox.open(g_options.theme_auto_open); g_options.theme_auto_open = null; } } /** * init buttons functionality and events */ function initEvents(){ //remove preloader on tiles first placed if(g_objPreloader){ g_gallery.onEvent(g_tiles.events.TILES_FIRST_PLACED, function(){ g_objWrapper.height("auto"); g_objPreloader.hide(); }); } jQuery(g_objTileDesign).on(g_objTileDesign.events.TILE_CLICK, onTileClick); g_objGallery.on(g_gallery.events.GALLERY_BEFORE_REQUEST_ITEMS, onBeforeReqestItems); jQuery(g_lightbox).on(g_lightbox.events.LIGHTBOX_INIT, onLightboxInit); } /** * destroy the theme */ this.destroy = function(){ jQuery(g_objTileDesign).off(g_objTileDesign.events.TILE_CLICK); g_gallery.destroyEvent(g_tiles.events.TILES_FIRST_PLACED); g_objGallery.off(g_gallery.events.GALLERY_BEFORE_REQUEST_ITEMS); jQuery(g_lightbox).off(g_lightbox.events.LIGHTBOX_INIT); g_tiles.destroy(); g_lightbox.destroy(); } /** * run the theme setting */ this.run = function(){ runTheme(); } /** * add items */ this.addItems = function(){ g_tiles.runNewItems(); } /** * init */ this.init = function(gallery, customOptions){ initTheme(gallery, customOptions); } } /* CookieConsent v2.8.0 https://www.github.com/orestbida/cookieconsent Author Orest Bida Released under the MIT License */ (function(){var kb=function(eb){var e={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},m={},g,t={},C=null,K=!1,Q=!1,na=!1,Ca=!1,oa=!1,v,Y,U,pa,Da,Ea,Fa=!1,Z=!0,Sa="",V=[],xa=!1,Ga,Ha=[],Ta=[],Ia=[],Ua=!1,qa,Ja,Ka=[],ja=[],R=[],I=[],ya=[],ra=document.documentElement,L,sa,x,aa, ta,W,S,T,ba,E,M,ua,ka,la,y,ca,da,ea,fa,Va=function(a){function b(n){return(a||document).querySelectorAll('a[data-cc="'+n+'"], button[data-cc="'+n+'"]')}function c(n,p){n.preventDefault?n.preventDefault():n.returnValue=!1;m.accept(p);m.hideSettings();m.hide()}for(var d=b("c-settings"),f=b("accept-all"),l=b("accept-necessary"),q=b("accept-selection"),h=0;h1&&u.push(e.virtualSize-r)}if(0===u.length&&(u=[0]),0!==a.spaceBetween){const s=e.isHorizontal()&&n?"marginLeft":t("marginRight");c.filter(((e,t)=>!a.cssMode||t!==c.length-1)).css({[s]:`${x}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween;const t=e-r;u=u.map((e=>e<0?-f:e>t?t+g:e))}if(a.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)})),e-=a.spaceBetween,e {r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return w({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const i=this;let r=e;return i.params.loop&&(r+=i.loopedSlides),i.slideTo(r,t,s,a)},slideNext:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{animating:i,enabled:r,params:n}=a;if(!r)return a;let l=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex0&&o(u(t));const a=e.children(`.${s.slidePrevClass}`);a.length>0&&o(u(a))}}function p(){const e=r();if(!t||t.destroyed)return;const s=t.params.lazy.scrollingElement?d(t.params.lazy.scrollingElement):d(e),a=s[0]===e,i=a?e.innerWidth:s[0].offsetWidth,l=a?e.innerHeight:s[0].offsetHeight,o=t.$el.offset(),{rtlTranslate:u}=t;let h=!1;u&&(o.left-=t.$el[0].scrollLeft);const m=[[o.left,o.top],[o.left+t.width,o.top],[o.left,o.top+t.height],[o.left+t.width,o.top+t.height]];for(let e=0;e'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var s=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return i('
');
var gMargin = (settings.vertical) ? 'margin-left' : 'margin-top';
$slide.parent().find('.lSPager').css(gMargin, settings.galleryMargin + 'px');
refresh.createPager();
}
setTimeout(function () {
refresh.init();
}, 0);
},
setHeight: function (ob, fade) {
var obj = null,
$this = this;
if (settings.loop) {
obj = ob.children('.lslide ').first();
} else {
obj = ob.children().first();
}
var setCss = function () {
var tH = obj.outerHeight(),
tP = 0,
tHT = tH;
if (fade) {
tH = 0;
tP = ((tHT) * 100) / elSize;
}
ob.css({
'height': tH + 'px',
'padding-bottom': tP + '%'
});
};
setCss();
if (obj.find('img').length) {
if ( obj.find('img')[0].complete) {
setCss();
if (!interval) {
$this.auto();
}
}else{
obj.find('img').on('load', function () {
setTimeout(function () {
setCss();
if (!interval) {
$this.auto();
}
}, 100);
});
}
}else{
if (!interval) {
$this.auto();
}
}
},
active: function (ob, t) {
if (this.doCss() && settings.mode === 'fade') {
$slide.addClass('on');
}
var sc = 0;
if (scene * settings.slideMove < length) {
ob.removeClass('active');
if (!this.doCss() && settings.mode === 'fade' && t === false) {
ob.fadeOut(settings.speed);
}
if (t === true) {
sc = scene;
} else {
sc = scene * settings.slideMove;
}
//t === true ? sc = scene : sc = scene * settings.slideMove;
var l, nl;
if (t === true) {
l = ob.length;
nl = l - 1;
if (sc + 1 >= l) {
sc = nl;
}
}
if (settings.loop === true && settings.mode === 'slide') {
//t === true ? sc = scene - $el.find('.clone.left').length : sc = scene * settings.slideMove;
if (t === true) {
sc = scene - $el.find('.clone.left').length;
} else {
sc = scene * settings.slideMove;
}
if (t === true) {
l = ob.length;
nl = l - 1;
if (sc + 1 === l) {
sc = nl;
} else if (sc + 1 > l) {
sc = 0;
}
}
}
if (!this.doCss() && settings.mode === 'fade' && t === false) {
ob.eq(sc).fadeIn(settings.speed);
}
ob.eq(sc).addClass('active');
} else {
ob.removeClass('active');
ob.eq(ob.length - 1).addClass('active');
if (!this.doCss() && settings.mode === 'fade' && t === false) {
ob.fadeOut(settings.speed);
ob.eq(sc).fadeIn(settings.speed);
}
}
},
move: function (ob, v) {
if (settings.rtl === true) {
v = -v;
}
if (this.doCss()) {
if (settings.vertical === true) {
ob.css({
'transform': 'translate3d(0px, ' + (-v) + 'px, 0px)',
'-webkit-transform': 'translate3d(0px, ' + (-v) + 'px, 0px)'
});
} else {
ob.css({
'transform': 'translate3d(' + (-v) + 'px, 0px, 0px)',
'-webkit-transform': 'translate3d(' + (-v) + 'px, 0px, 0px)',
});
}
} else {
if (settings.vertical === true) {
ob.css('position', 'relative').animate({
top: -v + 'px'
}, settings.speed, settings.easing);
} else {
ob.css('position', 'relative').animate({
left: -v + 'px'
}, settings.speed, settings.easing);
}
}
var $thumb = $slide.parent().find('.lSPager').find('li');
this.active($thumb, true);
},
fade: function () {
this.active($children, false);
var $thumb = $slide.parent().find('.lSPager').find('li');
this.active($thumb, true);
},
slide: function () {
var $this = this;
refresh.calSlide = function () {
if (w > elSize) {
slideValue = $this.slideValue();
$this.active($children, false);
if ((slideValue) > w - elSize - settings.slideMargin) {
slideValue = w - elSize - settings.slideMargin;
} else if (slideValue < 0) {
slideValue = 0;
}
$this.move($el, slideValue);
if (settings.loop === true && settings.mode === 'slide') {
if (scene >= (length - ($el.find('.clone.left').length / settings.slideMove))) {
$this.resetSlide($el.find('.clone.left').length);
}
if (scene === 0) {
$this.resetSlide($slide.find('.lslide').length);
}
}
}
};
refresh.calSlide();
},
resetSlide: function (s) {
var $this = this;
$slide.find('.lSAction a').addClass('disabled');
setTimeout(function () {
scene = s;
$slide.css('transition-duration', '0ms');
slideValue = $this.slideValue();
$this.active($children, false);
plugin.move($el, slideValue);
setTimeout(function () {
$slide.css('transition-duration', settings.speed + 'ms');
$slide.find('.lSAction a').removeClass('disabled');
}, 50);
}, settings.speed + 100);
},
slideValue: function () {
var _sV = 0;
if (settings.autoWidth === false) {
_sV = scene * ((slideWidth + settings.slideMargin) * settings.slideMove);
} else {
_sV = 0;
for (var i = 0; i < scene; i++) {
_sV += (parseInt($children.eq(i).width()) + settings.slideMargin);
}
}
return _sV;
},
slideThumb: function () {
var position;
switch (settings.currentPagerPosition) {
case 'left':
position = 0;
break;
case 'middle':
position = (elSize / 2) - (thumbWidth / 2);
break;
case 'right':
position = elSize - thumbWidth;
}
var sc = scene - $el.find('.clone.left').length;
var $pager = $slide.parent().find('.lSPager');
if (settings.mode === 'slide' && settings.loop === true) {
if (sc >= $pager.children().length) {
sc = 0;
} else if (sc < 0) {
sc = $pager.children().length;
}
}
var thumbSlide = sc * ((thumbWidth + settings.thumbMargin)) - (position);
if ((thumbSlide + elSize) > pagerWidth) {
thumbSlide = pagerWidth - elSize - settings.thumbMargin;
}
if (thumbSlide < 0) {
thumbSlide = 0;
}
this.move($pager, thumbSlide);
},
auto: function () {
if (settings.auto) {
clearInterval(interval);
interval = setInterval(function () {
$el.goToNextSlide();
}, settings.pause);
}
},
pauseOnHover: function(){
var $this = this;
if (settings.auto && settings.pauseOnHover) {
$slide.on('mouseenter', function(){
$(this).addClass('ls-hover');
$el.pause();
settings.auto = true;
});
$slide.on('mouseleave',function(){
$(this).removeClass('ls-hover');
if (!$slide.find('.lightSlider').hasClass('lsGrabbing')) {
$this.auto();
}
});
}
},
touchMove: function (endCoords, startCoords) {
$slide.css('transition-duration', '0ms');
if (settings.mode === 'slide') {
var distance = endCoords - startCoords;
var swipeVal = slideValue - distance;
if ((swipeVal) >= w - elSize - settings.slideMargin) {
if (settings.freeMove === false) {
swipeVal = w - elSize - settings.slideMargin;
} else {
var swipeValT = w - elSize - settings.slideMargin;
swipeVal = swipeValT + ((swipeVal - swipeValT) / 5);
}
} else if (swipeVal < 0) {
if (settings.freeMove === false) {
swipeVal = 0;
} else {
swipeVal = swipeVal / 5;
}
}
this.move($el, swipeVal);
}
},
touchEnd: function (distance) {
$slide.css('transition-duration', settings.speed + 'ms');
if (settings.mode === 'slide') {
var mxVal = false;
var _next = true;
slideValue = slideValue - distance;
if ((slideValue) > w - elSize - settings.slideMargin) {
slideValue = w - elSize - settings.slideMargin;
if (settings.autoWidth === false) {
mxVal = true;
}
} else if (slideValue < 0) {
slideValue = 0;
}
var gC = function (next) {
var ad = 0;
if (!mxVal) {
if (next) {
ad = 1;
}
}
if (!settings.autoWidth) {
var num = slideValue / ((slideWidth + settings.slideMargin) * settings.slideMove);
scene = parseInt(num) + ad;
if (slideValue >= (w - elSize - settings.slideMargin)) {
if (num % 1 !== 0) {
scene++;
}
}
} else {
var tW = 0;
for (var i = 0; i < $children.length; i++) {
tW += (parseInt($children.eq(i).width()) + settings.slideMargin);
scene = i + ad;
if (tW >= slideValue) {
break;
}
}
}
};
if (distance >= settings.swipeThreshold) {
gC(false);
_next = false;
} else if (distance <= -settings.swipeThreshold) {
gC(true);
_next = false;
}
$el.mode(_next);
this.slideThumb();
} else {
if (distance >= settings.swipeThreshold) {
$el.goToPrevSlide();
} else if (distance <= -settings.swipeThreshold) {
$el.goToNextSlide();
}
}
},
enableDrag: function () {
var $this = this;
if (!isTouch) {
var startCoords = 0,
endCoords = 0,
isDraging = false;
$slide.find('.lightSlider').addClass('lsGrab');
$slide.on('mousedown', function (e) {
if (w < elSize) {
if (w !== 0) {
return false;
}
}
if ($(e.target).attr('class') !== ('lSPrev') && $(e.target).attr('class') !== ('lSNext')) {
startCoords = (settings.vertical === true) ? e.pageY : e.pageX;
isDraging = true;
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnValue = false;
}
// ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
$slide.scrollLeft += 1;
$slide.scrollLeft -= 1;
// *
$slide.find('.lightSlider').removeClass('lsGrab').addClass('lsGrabbing');
clearInterval(interval);
}
});
$(window).on('mousemove', function (e) {
if (isDraging) {
endCoords = (settings.vertical === true) ? e.pageY : e.pageX;
$this.touchMove(endCoords, startCoords);
}
});
$(window).on('mouseup', function (e) {
if (isDraging) {
$slide.find('.lightSlider').removeClass('lsGrabbing').addClass('lsGrab');
isDraging = false;
endCoords = (settings.vertical === true) ? e.pageY : e.pageX;
var distance = endCoords - startCoords;
if (Math.abs(distance) >= settings.swipeThreshold) {
$(window).on('click.ls', function (e) {
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnValue = false;
}
e.stopImmediatePropagation();
e.stopPropagation();
$(window).off('click.ls');
});
}
$this.touchEnd(distance);
}
});
}
},
enableTouch: function () {
var $this = this;
if (isTouch) {
var startCoords = {},
endCoords = {};
$slide.on('touchstart', function (e) {
endCoords = e.originalEvent.targetTouches[0];
startCoords.pageX = e.originalEvent.targetTouches[0].pageX;
startCoords.pageY = e.originalEvent.targetTouches[0].pageY;
clearInterval(interval);
});
$slide.on('touchmove', function (e) {
if (w < elSize) {
if (w !== 0) {
return false;
}
}
var orig = e.originalEvent;
endCoords = orig.targetTouches[0];
var xMovement = Math.abs(endCoords.pageX - startCoords.pageX);
var yMovement = Math.abs(endCoords.pageY - startCoords.pageY);
if (settings.vertical === true) {
if ((yMovement * 3) > xMovement) {
e.preventDefault();
}
$this.touchMove(endCoords.pageY, startCoords.pageY);
} else {
if ((xMovement * 3) > yMovement) {
e.preventDefault();
}
$this.touchMove(endCoords.pageX, startCoords.pageX);
}
});
$slide.on('touchend', function () {
if (w < elSize) {
if (w !== 0) {
return false;
}
}
var distance;
if (settings.vertical === true) {
distance = endCoords.pageY - startCoords.pageY;
} else {
distance = endCoords.pageX - startCoords.pageX;
}
$this.touchEnd(distance);
});
}
},
build: function () {
var $this = this;
$this.initialStyle();
if (this.doCss()) {
if (settings.enableTouch === true) {
$this.enableTouch();
}
if (settings.enableDrag === true) {
$this.enableDrag();
}
}
$(window).on('focus', function(){
$this.auto();
});
$(window).on('blur', function(){
clearInterval(interval);
});
$this.pager();
$this.pauseOnHover();
$this.controls();
$this.keyPress();
}
};
plugin.build();
refresh.init = function () {
refresh.chbreakpoint();
if (settings.vertical === true) {
if (settings.item > 1) {
elSize = settings.verticalHeight;
} else {
elSize = $children.outerHeight();
}
$slide.css('height', elSize + 'px');
} else {
elSize = $slide.outerWidth();
}
if (settings.loop === true && settings.mode === 'slide') {
refresh.clone();
}
refresh.calL();
if (settings.mode === 'slide') {
$el.removeClass('lSSlide');
}
if (settings.mode === 'slide') {
refresh.calSW();
refresh.sSW();
}
setTimeout(function () {
if (settings.mode === 'slide') {
$el.addClass('lSSlide');
}
}, 1000);
if (settings.pager) {
refresh.createPager();
}
if (settings.adaptiveHeight === true && settings.vertical === false) {
$el.css('height', $children.eq(scene).outerHeight(true));
}
if (settings.adaptiveHeight === false) {
if (settings.mode === 'slide') {
if (settings.vertical === false) {
plugin.setHeight($el, false);
}else{
plugin.auto();
}
} else {
plugin.setHeight($el, true);
}
}
if (settings.gallery === true) {
plugin.slideThumb();
}
if (settings.mode === 'slide') {
plugin.slide();
}
if (settings.autoWidth === false) {
if ($children.length <= settings.item) {
$slide.find('.lSAction').hide();
} else {
$slide.find('.lSAction').show();
}
} else {
if ((refresh.calWidth(false) < elSize) && (w !== 0)) {
$slide.find('.lSAction').hide();
} else {
$slide.find('.lSAction').show();
}
}
};
$el.goToPrevSlide = function () {
if (scene > 0) {
settings.onBeforePrevSlide.call(this, $el, scene);
scene--;
$el.mode(false);
if (settings.gallery === true) {
plugin.slideThumb();
}
} else {
if (settings.loop === true) {
settings.onBeforePrevSlide.call(this, $el, scene);
if (settings.mode === 'fade') {
var l = (length - 1);
scene = parseInt(l / settings.slideMove);
}
$el.mode(false);
if (settings.gallery === true) {
plugin.slideThumb();
}
} else if (settings.slideEndAnimation === true) {
$el.addClass('leftEnd');
setTimeout(function () {
$el.removeClass('leftEnd');
}, 400);
}
}
};
$el.goToNextSlide = function () {
var nextI = true;
if (settings.mode === 'slide') {
var _slideValue = plugin.slideValue();
nextI = _slideValue < w - elSize - settings.slideMargin;
}
if (((scene * settings.slideMove) < length - settings.slideMove) && nextI) {
settings.onBeforeNextSlide.call(this, $el, scene);
scene++;
$el.mode(false);
if (settings.gallery === true) {
plugin.slideThumb();
}
} else {
if (settings.loop === true) {
settings.onBeforeNextSlide.call(this, $el, scene);
scene = 0;
$el.mode(false);
if (settings.gallery === true) {
plugin.slideThumb();
}
} else if (settings.slideEndAnimation === true) {
$el.addClass('rightEnd');
setTimeout(function () {
$el.removeClass('rightEnd');
}, 400);
}
}
};
$el.mode = function (_touch) {
if (settings.adaptiveHeight === true && settings.vertical === false) {
$el.css('height', $children.eq(scene).outerHeight(true));
}
if (on === false) {
if (settings.mode === 'slide') {
if (plugin.doCss()) {
$el.addClass('lSSlide');
if (settings.speed !== '') {
$slide.css('transition-duration', settings.speed + 'ms');
}
if (settings.cssEasing !== '') {
$slide.css('transition-timing-function', settings.cssEasing);
}
}
} else {
if (plugin.doCss()) {
if (settings.speed !== '') {
$el.css('transition-duration', settings.speed + 'ms');
}
if (settings.cssEasing !== '') {
$el.css('transition-timing-function', settings.cssEasing);
}
}
}
}
if (!_touch) {
settings.onBeforeSlide.call(this, $el, scene);
}
if (settings.mode === 'slide') {
plugin.slide();
} else {
plugin.fade();
}
if (!$slide.hasClass('ls-hover')) {
plugin.auto();
}
setTimeout(function () {
if (!_touch) {
settings.onAfterSlide.call(this, $el, scene);
}
}, settings.speed);
on = true;
};
$el.play = function () {
$el.goToNextSlide();
settings.auto = true;
plugin.auto();
};
$el.pause = function () {
settings.auto = false;
clearInterval(interval);
};
$el.refresh = function () {
refresh.init();
};
$el.getCurrentSlideCount = function () {
var sc = scene;
if (settings.loop) {
var ln = $slide.find('.lslide').length,
cl = $el.find('.clone.left').length;
if (scene <= cl - 1) {
sc = ln + (scene - cl);
} else if (scene >= (ln + cl)) {
sc = scene - ln - cl;
} else {
sc = scene - cl;
}
}
return sc + 1;
};
$el.getTotalSlideCount = function () {
return $slide.find('.lslide').length;
};
$el.goToSlide = function (s) {
if (settings.loop) {
scene = (s + $el.find('.clone.left').length - 1);
} else {
scene = s;
}
$el.mode(false);
if (settings.gallery === true) {
plugin.slideThumb();
}
};
$el.destroy = function () {
if ($el.lightSlider) {
$el.goToPrevSlide = function(){};
$el.goToNextSlide = function(){};
$el.mode = function(){};
$el.play = function(){};
$el.pause = function(){};
$el.refresh = function(){};
$el.getCurrentSlideCount = function(){};
$el.getTotalSlideCount = function(){};
$el.goToSlide = function(){};
$el.lightSlider = null;
refresh = {
init : function(){}
};
$el.parent().parent().find('.lSAction, .lSPager').remove();
$el.removeClass('lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right').removeAttr('style').unwrap().unwrap();
$el.children().removeAttr('style');
$children.removeClass('lslide active');
$el.find('.clone').remove();
$children = null;
interval = null;
on = false;
scene = 0;
}
};
setTimeout(function () {
settings.onSliderLoad.call(this, $el);
}, 10);
$(window).on('resize orientationchange', function (e) {
setTimeout(function () {
if (e.preventDefault) {
e.preventDefault();
} else {
e.returnValue = false;
}
refresh.init();
}, 200);
});
return this;
};
}(jQuery));
/*! For license information please see main.js.LICENSE.txt */
(()=>{var __webpack_modules__={3894:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var o=n(5785),i=n(5671),r=n(3144),a=n(9340),s=n(3930),c=n(1120);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n
');t.appendChild((0,l.Bv)(n))}if(this.options.default_style.icon_shadow){var o="width: ".concat(this.options.default_style.icon_size,"px;");o+="height: ".concat(this.options.default_style.icon_size,"px;"),o+="left: 0;",o+="top: ".concat(this.options.default_style.icon_size/2,"px;");var i='');t.appendChild((0,l.Bv)(i))}}return t}},{key:"createCSSRules",value:function(t){var e="";if(e+="left: ".concat(this.options.x,"%;"),e+="top: ".concat(this.options.y,"%;"),this.options.default_style.use_icon){if(e+="width: ".concat(this.options.default_style.icon_size,"px;"),e+="height: ".concat(this.options.default_style.icon_size,"px;"),"library"===this.options.default_style.icon_type){var n=(0,l.oo)(t.icon_fill)||{r:0,b:0,g:0};e+="fill: rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(t.opacity,");")}var o,i;o=-this.options.default_style.icon_size/2,i=this.options.default_style.icon_is_pin?-this.options.default_style.icon_size:-this.options.default_style.icon_size/2,e+="margin-top: ".concat(i,"px;"),e+="margin-left: ".concat(o,"px;"),this.options.default_style.icon_is_pin?e+="transform-origin: 50% 100%;":e+="transform-origin: 50% 50%;"}if(!this.options.default_style.use_icon){e+="width: ".concat(this.options.width,"px;"),e+="height: ".concat(this.options.height,"px;");var r=(0,l.oo)(t.background_color)||{r:0,b:0,g:0},a=(0,l.oo)(t.border_color)||{r:0,b:0,g:0};e+="opacity: ".concat(t.opacity,";"),e+="border-radius: ".concat(t.border_radius,"px;"),e+="background: rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(t.background_opacity,");"),e+="border-width: ".concat(t.border_width,"px;"),e+="border-style: ".concat(t.border_style,";"),e+="border-color: rgba(".concat(a.r,", ").concat(a.g,", ").concat(a.b,", ").concat(t.border_opacity,");"),e+="margin-top: ".concat(-this.options.width/2,"px;"),e+="margin-left: ".concat(-this.options.height/2,"px;")}e+="filter: ";var s,c=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(t.parent_filters);try{for(c.s();!(s=c.n()).done;){var p=s.value;e+="".concat(p.name,"(").concat(p.value,") ")}}catch(t){c.e(t)}finally{c.f()}return e+";"}},{key:"getWidth",value:function(){return.01}},{key:"getHeight",value:function(){return.01}}]),p}(c.Z)},7423:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var o=n(5671),i=n(3144),r=n(9340),a=n(3930),s=n(1120);function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n
","")),"change-artboard"===this.objects[id].options.actions.click&&this.store.dispatch("changeArtboard",{artboardId:this.objects[id].options.actions.artboard,zoomOut:!0}),ImageMapPro.trigger({type:Client_consts__WEBPACK_IMPORTED_MODULE_12__.x4,payload:{map:this.store.state.general.name,object:this.objects[id].options.title}}))}}]),ObjectController}()},3542:()=>{window.ImageMapPro={},window.ImageMapPro.instances=[]},144:(t,e,n)=>{"use strict";n.d(e,{CW:()=>a,Le:()=>u,Uv:()=>r,WW:()=>p,_9:()=>l,dv:()=>i,p5:()=>o,tk:()=>c,zJ:()=>s});var o="artboard",i="spot",r="rect",a="oval",s="poly",c="text",l="svg",u="svg-single",p="group"},9997:(t,e,n)=>{"use strict";n.d(e,{Bv:()=>u,C6:()=>y,Cd:()=>c,DC:()=>p,HH:()=>w,M7:()=>h,YM:()=>s,Yo:()=>l,ZB:()=>r,hj:()=>d,k$:()=>i,mp:()=>f,oo:()=>a,po:()=>_,t7:()=>b,tq:()=>g});var o=n(1002),i=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))},r=function t(e){e=e||{};for(var n=1;n'),t+='
'),t+='
')),"color"===this.store.getArtboard().background_type&&(t+=''),t+=''),t+='')),"none"===this.store.getArtboard().background_type&&(t+=''),t+="
\n
i&&(e.push(t[n]),o=n);return ot.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||nn.prototype._containsPoint.call(this,t,!0)}}),sn=Ke.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=oi(t)?t:t.features;if(o){for(i=0,e=o.length;i
",
"type": "Paragraph"
},
{
"boxModel": {
"height": 44,
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": "0",
"left": "0",
"right": "0",
"top": "0"
},
"width": "auto"
},
"id": "e1b39748-2cff-4e76-a2d6-3f7e559b0ad7",
"newTab": false,
"other": {
"classes": "btn-mapa",
"css": "",
"id": ""
},
"script": "",
"style": {
"backgroundColor": "#008eaa",
"borderRadius": 50,
"color": "#ffffff",
"display": "inline-block",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"fontWeight": 700,
"lineHeight": 44
},
"text": dadesCosta["27"].immobles + " ",
"type": "Button",
"url": dadesCosta["27"].url
}
],
"tooltip_style": {
"background_opacity": 0,
"border_radius": 0,
"offset_x": -3,
"offset_y": 4,
"padding": 0,
"position": "right",
"width": 145
},
"type": "poly",
"width": 6.11867698790752,
"x": 69.1751674437212,
"x_image_background": 67.8049686413764,
"y": 34.9652321922858,
"y_image_background": 34.9652321922858
},
{
"actions": {
"click": "follow-link",
"link": dadesCosta["28"].url,
"open_link_in_new_window": false
},
"default_style": {
"background_opacity": 0
},
"height": 9.0347531778412,
"id": "f52f7f34-bbcc-4fa1-a72b-abc50be5c456",
"mouseover_style": {
"background_opacity": 0,
"stroke_color": "#008eaa",
"stroke_opacity": 1,
"stroke_width": 4
},
"points": [
{
"x": 28.7160399327045,
"y": 0
},
{
"x": 87.4852758136707,
"y": 11.8936606083259
},
{
"x": 59.380465350474,
"y": 41.8037291166447
},
{
"x": 56.1908309041347,
"y": 53.4138282510918
},
{
"x": 73.3937378284482,
"y": 66.1606641206928
},
{
"x": 100,
"y": 72.7954286798497
},
{
"x": 67.0960746642147,
"y": 100
},
{
"x": 39.4407466439273,
"y": 90.3063025465123
},
{
"x": 21.7932475348076,
"y": 83.1377483449258
},
{
"x": 9.13254163351111,
"y": 59.9799279226724
},
{
"x": 0.299397290504528,
"y": 45.7172788852933
},
{
"x": 0,
"y": 35.1196533554375
},
{
"x": 6.28221336317116,
"y": 23.0748795453801
}
],
"title": "Poly - Costa Valenciana",
"tooltip_content": [
{
"boxModel": {
"height": "auto",
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": 10,
"left": 10,
"right": 10,
"top": 10
},
"width": "auto"
},
"id": "71c97ea1-1698-4c7c-a4cd-5e2c37abfde1",
"other": {
"classes": "text-mapa",
"css": "",
"id": ""
},
"style": {
"color": "#008eaa",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 16,
"lineHeight": 22,
"textAlign": "center"
},
"text": "Costa Valenciana",
"type": "Paragraph"
},
{
"boxModel": {
"height": 44,
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": "0",
"left": "0",
"right": "0",
"top": "0"
},
"width": "auto"
},
"id": "e1b39748-2cff-4e76-a2d6-3f7e559b0ad7",
"newTab": false,
"other": {
"classes": "btn-mapa",
"css": "",
"id": ""
},
"script": "",
"style": {
"backgroundColor": "#008eaa",
"borderRadius": 50,
"color": "#ffffff",
"display": "inline-block",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"fontWeight": 700,
"lineHeight": 44
},
"text": dadesCosta["28"].immobles + " ",
"type": "Button",
"url": dadesCosta["28"].url
}
],
"tooltip_style": {
"background_opacity": 0,
"border_radius": 0,
"offset_y": -1,
"padding": 0,
"position": "right",
"width": 145
},
"type": "poly",
"width": 3.93212223911117,
"x": 68.179721397111,
"x_image_background": 67.8049686413764,
"y": 42.4645116765619,
"y_image_background": 34.9652321922858
},
{
"actions": {
"click": "follow-link",
"link": dadesCosta["26"].url,
"open_link_in_new_window": false
},
"default_style": {
"background_opacity": 0
},
"height": 8.841059602649,
"id": "5e9c94c7-dd85-4d38-a04e-84b773e7a3b9",
"mouseover_style": {
"background_opacity": 0,
"stroke_color": "#008eaa",
"stroke_opacity": 1,
"stroke_width": 4
},
"points": [
{
"x": 88.9830501855575,
"y": 0
},
{
"x": 100,
"y": 28.4644194756554
},
{
"x": 97.1751412429378,
"y": 35.5805243445693
},
{
"x": 90.9604520877177,
"y": 36.3295880149813
},
{
"x": 75.988699130855,
"y": 41.1985018726592
},
{
"x": 54.8022598870056,
"y": 50.936329588015
},
{
"x": 40.112993136799,
"y": 57.6779026217229
},
{
"x": 35.5932201183497,
"y": 62.1722846441948
},
{
"x": 34.4632768361582,
"y": 72.2846441947565
},
{
"x": 32.2033896098751,
"y": 85.7677902621723
},
{
"x": 21.468926333039,
"y": 100
},
{
"x": 19.7740112994351,
"y": 94.3820224719101
},
{
"x": 0,
"y": 76.7790262172285
},
{
"x": 6.21468926553681,
"y": 71.9101123595505
},
{
"x": 11.2994355798319,
"y": 44.1947565543071
},
{
"x": 9.88700564971754,
"y": 37.4531835205992
},
{
"x": 17.2316384180792,
"y": 28.8389513108614
},
{
"x": 24.5762715173907,
"y": 28.8389513108614
},
{
"x": 31.3559322033898,
"y": 22.0973782771535
},
{
"x": 45.1977400026778,
"y": 15.3558052434457
},
{
"x": 63.2768367097753,
"y": 9.73782771535578
},
{
"x": 82.2033899408251,
"y": 0
}
],
"title": "Poly - Costa Dorada",
"tooltip_content": [
{
"boxModel": {
"height": "auto",
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": 10,
"left": 10,
"right": 10,
"top": 10
},
"width": "auto"
},
"id": "71c97ea1-1698-4c7c-a4cd-5e2c37abfde1",
"other": {
"classes": "text-mapa",
"css": "",
"id": ""
},
"style": {
"color": "#008eaa",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 16,
"lineHeight": 22,
"textAlign": "center"
},
"text": "Costa Daurada",
"type": "Paragraph"
},
{
"boxModel": {
"height": 44,
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": "0",
"left": "0",
"right": "0",
"top": "0"
},
"width": "auto"
},
"id": "e1b39748-2cff-4e76-a2d6-3f7e559b0ad7",
"newTab": false,
"other": {
"classes": "btn-mapa",
"css": "",
"id": ""
},
"script": "",
"style": {
"backgroundColor": "#008eaa",
"borderRadius": 50,
"color": "#ffffff",
"display": "inline-block",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"fontWeight": 700,
"lineHeight": 44
},
"text": dadesCosta["26"].immobles + " ",
"type": "Button",
"url": dadesCosta["26"].url
}
],
"tooltip_style": {
"background_opacity": 0,
"border_radius": 0,
"offset_x": 6,
"offset_y": -8,
"padding": 0,
"position": "bottom",
"width": 130
},
"type": "poly",
"width": 7.93731146631532,
"x": 73.5737224720956,
"x_image_background": 73.5737224720956,
"y": 28.1131345231012,
"y_image_background": 28.2786974370085
},
{
"actions": {
"click": "follow-link",
"link": dadesCosta["25"].url,
"open_link_in_new_window": false
},
"default_style": {
"background_opacity": 0
},
"height": 6.25827814569537,
"id": "178aa141-9d71-4f60-b480-e00bb1db71a9",
"mouseover_style": {
"background_opacity": 0,
"stroke_color": "#008eaa",
"stroke_opacity": 1,
"stroke_width": 4
},
"points": [
{
"x": 59.5348837209303,
"y": 0
},
{
"x": 42.7906976744186,
"y": 11.1111111111111
},
{
"x": 37.2093023255815,
"y": 18.5185185185185
},
{
"x": 28.372093023256,
"y": 19.5767195767196
},
{
"x": 13.0232558139534,
"y": 45.5026455026455
},
{
"x": 0,
"y": 52.9100529100529
},
{
"x": 18.1395348837209,
"y": 91.005291005291
},
{
"x": 16.7441860465117,
"y": 100
},
{
"x": 25.5813953488373,
"y": 98.4126984126984
},
{
"x": 50.6976756900683,
"y": 69.8412698412698
},
{
"x": 54.4186046511628,
"y": 60.3174603174603
},
{
"x": 69.3023255813955,
"y": 50.7936507936508
},
{
"x": 78.6046511627906,
"y": 47.6190476190476
},
{
"x": 90.2325581395348,
"y": 40.2116402116402
},
{
"x": 100,
"y": 35.4497354497354
},
{
"x": 96.279069767442,
"y": 23.8095238095238
},
{
"x": 80.9302325581394,
"y": 16.931216931217
}
],
"title": "Poly - Costa del Garraf",
"tooltip_content": [
{
"boxModel": {
"height": "auto",
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": 10,
"left": 10,
"right": 10,
"top": 10
},
"width": "auto"
},
"id": "71c97ea1-1698-4c7c-a4cd-5e2c37abfde1",
"other": {
"classes": "text-mapa",
"css": "",
"id": ""
},
"style": {
"color": "#008eaa",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 16,
"lineHeight": 22,
"textAlign": "center"
},
"text": "Costa del Garraf",
"type": "Paragraph"
},
{
"boxModel": {
"height": 44,
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": "0",
"left": "0",
"right": "0",
"top": "0"
},
"width": "auto"
},
"id": "e1b39748-2cff-4e76-a2d6-3f7e559b0ad7",
"newTab": false,
"other": {
"classes": "btn-mapa",
"css": "",
"id": ""
},
"script": "",
"style": {
"backgroundColor": "#008eaa",
"borderRadius": 50,
"color": "#ffffff",
"display": "inline-block",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"fontWeight": 700,
"lineHeight": 44
},
"text": dadesCosta["25"].immobles + " ",
"type": "Button",
"url": dadesCosta["25"].url
}
],
"tooltip_style": {
"auto_width": false,
"background_opacity": 0,
"border_radius": 0,
"offset_x": 5,
"offset_y": -7,
"padding": 0,
"position": "bottom",
"width": 130
},
"type": "poly",
"width": 4.82068351767738,
"x": 80.6948777235352,
"x_image_background": 80.6948777235352,
"y": 24.8283659069743,
"y_image_background": 24.8283659069743
},
{
"actions": {
"click": "follow-link",
"link": dadesCosta["24"].url,
"open_link_in_new_window": false
},
"default_style": {
"background_opacity": 0
},
"height": 4.88538737894408,
"id": "bf7b7dae-f17f-4b8f-92a3-e780592b0bd6",
"mouseover_style": {
"background_opacity": 0,
"stroke_color": "#008eaa",
"stroke_opacity": 1,
"stroke_width": 4
},
"points": [
{
"x": 0,
"y": 57.2519083969466
},
{
"x": 37.6470588235294,
"y": 29.7709923664122
},
{
"x": 64.1176470588235,
"y": 0
},
{
"x": 100,
"y": 43.5114503816794
},
{
"x": 63.5294117647059,
"y": 83.206106870229
},
{
"x": 51.1764705882353,
"y": 96.9465648854962
},
{
"x": 43.5294117647059,
"y": 100
},
{
"x": 41.7647058823529,
"y": 89.3129770992366
},
{
"x": 40,
"y": 83.969465648855
},
{
"x": 21.7647058823529,
"y": 75.5725190839695
},
{
"x": 15.8823529411765,
"y": 68.7022900763359
}
],
"title": "Poly - Costa del Maresme",
"tooltip_content": [
{
"boxModel": {
"height": "auto",
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": 10,
"left": 10,
"right": 10,
"top": 10
},
"width": "auto"
},
"id": "71c97ea1-1698-4c7c-a4cd-5e2c37abfde1",
"other": {
"classes": "text-mapa",
"css": "",
"id": ""
},
"style": {
"color": "#008eaa",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 16,
"lineHeight": 22,
"textAlign": "center"
},
"text": "Costa del Maresme",
"type": "Paragraph"
},
{
"boxModel": {
"height": 44,
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": "0",
"left": "0",
"right": "0",
"top": "0"
},
"width": "auto"
},
"id": "e1b39748-2cff-4e76-a2d6-3f7e559b0ad7",
"newTab": false,
"other": {
"classes": "btn-mapa",
"css": "",
"id": ""
},
"script": "",
"style": {
"backgroundColor": "#008eaa",
"borderRadius": 50,
"color": "#ffffff",
"display": "inline-block",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"fontWeight": 700,
"lineHeight": 44
},
"text": dadesCosta["24"].immobles + " ",
"type": "Button",
"url": dadesCosta["24"].url
}
],
"tooltip_style": {
"auto_width": false,
"background_opacity": 0,
"border_radius": 0,
"offset_x": 7,
"offset_y": -6,
"padding": 0,
"position": "bottom",
"width": 130
},
"type": "poly",
"width": 4.29292929292929,
"x": 83.6662462022569,
"x_image_background": 83.6662462022569,
"y": 21.9892155338324,
"y_image_background": 21.9892155338324
},
{
"actions": {
"click": "follow-link",
"link": dadesCosta["23"].url,
"open_link_in_new_window": false
},
"default_style": {
"background_opacity": 0
},
"height": 9.07284768211921,
"id": "544e7198-1f28-4898-abaa-233f7b808de2",
"mouseover_style": {
"background_opacity": 0,
"stroke_color": "#008eaa",
"stroke_opacity": 1,
"stroke_width": 4
},
"points": [
{
"x": 0,
"y": 76.6423357664234
},
{
"x": 8.88144954945082,
"y": 73.3576642335766
},
{
"x": 31.488775675326,
"y": 37.5912408759124
},
{
"x": 19.3777081078928,
"y": 30.6569343065693
},
{
"x": 24.2221351348659,
"y": 7.29927007299272
},
{
"x": 45.9235912917068,
"y": 2.55474452554745
},
{
"x": 70.2536749495037,
"y": 0
},
{
"x": 100,
"y": 5.1094890510949
},
{
"x": 92.9302903886169,
"y": 19.3430656934307
},
{
"x": 96.1010291785458,
"y": 55.4746378170535
},
{
"x": 76.7034279270754,
"y": 86.8613138686131
},
{
"x": 50.8664837832183,
"y": 100
}
],
"title": "Poly - Costa Brava",
"tooltip_content": [
{
"boxModel": {
"height": "auto",
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": 10,
"left": 10,
"right": 10,
"top": 10
},
"width": "auto"
},
"id": "71c97ea1-1698-4c7c-a4cd-5e2c37abfde1",
"other": {
"classes": "text-mapa",
"css": "",
"id": ""
},
"style": {
"color": "#008eaa",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"lineHeight": 22,
"textAlign": "center"
},
"text": "Costa Brava",
"type": "Paragraph"
},
{
"boxModel": {
"height": 44,
"margin": {
"bottom": 0,
"left": 0,
"right": 0,
"top": 0
},
"padding": {
"bottom": "0",
"left": "0",
"right": "0",
"top": "0"
},
"width": "auto"
},
"id": "e1b39748-2cff-4e76-a2d6-3f7e559b0ad7",
"newTab": false,
"other": {
"classes": "btn-mapa",
"css": "",
"id": ""
},
"script": "",
"style": {
"backgroundColor": "#008eaa",
"borderRadius": 50,
"color": "#ffffff",
"display": "inline-block",
"fontFamily": "DIN Pro,sans-serif",
"fontSize": 15,
"fontWeight": 700,
"lineHeight": 44
},
"text": dadesCosta["23"].immobles + " ",
"type": "Button",
"url": dadesCosta["23"].url
}
],
"tooltip_style": {
"auto_width": false,
"background_opacity": 0,
"border_radius": 0,
"offset_x": -4,
"offset_y": 1,
"padding": 0,
"position": "right",
"width": 130
},
"type": "poly",
"width": 2.89128892553614,
"x": 86.450926302997,
"x_image_background": 86.6078787283258,
"y": 14.9762690462024,
"y_image_background": 15.1087193773282
}
],
"height": 776,
"image_url": "/Images/mapa-islas.webp",
"title": "Mapa espanya",
"alt": "Mapa espanya",
"use_image_size": true,
"width": 1146
}
],
"general": {
"name": "MAPA ESPANYA"
},
"id": "08b8ed66-ac79-468f-9fa4-c121c07f6d55",
"tooltips": {
"tooltip_animation": "grow"
},
"version": "6.0.5"
})
};
//MapaHome(dadesCostes);
setTimeout(function () {
if(document.getElementsByClassName("imp-image") && document.getElementsByClassName("imp-image")[0]){
document.getElementsByClassName("imp-image")[0].title = "Mapa PRIMERAS LÍNEAS DE MAR";
document.getElementsByClassName("imp-image")[0].alt = "Mapa PRIMERAS LÍNEAS DE MAR";
}
}, 300);