7268c45b by Jeff Balicki

emails

1 parent ad31dfdd
Showing 82 changed files with 2513 additions and 753 deletions
......@@ -35,9 +35,24 @@
/*
* Welcome Panel
*/
.welcome-panel .welcome-panel-column,
.welcome-panel .welcome-panel-column:first-child {
padding: 0 0 0 2%;
.wpcf7-welcome-panel .welcome-panel-close {
left: 10px;
right: auto;
padding: 10px 21px 10px 15px;
}
.wpcf7-welcome-panel .welcome-panel-close::before {
right: 0;
left: auto;
}
.wpcf7-welcome-panel .welcome-panel-content {
margin-right: 13px;
}
.wpcf7-welcome-panel .welcome-panel-column {
float: right;
padding: 0 0 0 2%;
}
/*
......
......@@ -359,30 +359,26 @@ ul.config-error li {
/*
* Welcome Panel
*/
.welcome-panel .welcome-panel-column,
.welcome-panel .welcome-panel-column:first-child {
width: 48%;
padding: 0 2% 0 0;
margin: 0 0 1em 0;
}
@media screen and (max-width: 870px) {
.welcome-panel .welcome-panel-column,
.welcome-panel .welcome-panel-column:first-child {
display: block;
float: none;
width: 100%;
}
.wpcf7-welcome-panel {
position: relative;
overflow: auto;
margin: 16px 0;
padding: 23px 10px 0;
border: 1px solid #c3c4c7;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
background: #fff;
font-size: 13px;
line-height: 1.7;
}
.welcome-panel h3 {
.wpcf7-welcome-panel h3 {
font-size: 16px;
font-weight: 600;
line-height: 2.1em;
margin: 1em 0 1.2em;
}
.welcome-panel h3 .dashicons {
.wpcf7-welcome-panel h3 .dashicons {
position: relative;
top: -2px;
display: inline-block;
......@@ -391,12 +387,75 @@ ul.config-error li {
font-size: 40px;
}
.welcome-panel p a {
.wpcf7-welcome-panel p {
color: #646970;
}
.wpcf7-welcome-panel p a {
font-weight: bold;
}
.welcome-panel-close {
.wpcf7-welcome-panel .welcome-panel-close {
position: absolute;
z-index: 2;
top: 10px;
right: 10px;
padding: 10px 15px 10px 21px;
font-size: 13px;
line-height: 1.23076923; /* Chrome rounding, needs to be 16px equivalent */
text-decoration: none;
}
.wpcf7-welcome-panel .welcome-panel-close::before {
background: 0 0;
color: #787c82;
content: "\f153";
display: block;
font: normal 16px/20px dashicons;
speak: never;
height: 20px;
text-align: center;
width: 20px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: absolute;
top: 8px;
left: 0;
transition: all .1s ease-in-out;
}
.wpcf7-welcome-panel .welcome-panel-content {
display: block;
margin-left: 13px;
max-width: 1500px;
min-height: auto;
}
.wpcf7-welcome-panel .welcome-panel-column-container {
clear: both;
position: relative;
}
.wpcf7-welcome-panel .welcome-panel-column {
display: block;
width: 48%;
min-width: 200px;
float: left;
padding: 0 2% 0 0;
margin: 0 0 1em 0;
}
@media screen and (max-width: 870px) {
.wpcf7-welcome-panel .welcome-panel-column {
display: block;
float: none;
width: 100%;
}
}
.wpcf7-welcome-panel .welcome-panel-column p {
margin-top: 7px;
color: #3c434a;
}
/*
......
......@@ -200,7 +200,7 @@ function wpcf7_welcome_panel() {
$columns[] = new WPCF7_WelcomePanelColumn_Integration();
}
$classes = 'welcome-panel';
$classes = 'wpcf7-welcome-panel';
$vers = (array) get_user_meta( get_current_user_id(),
'wpcf7_hide_welcome_panel_on', true
......@@ -211,7 +211,7 @@ function wpcf7_welcome_panel() {
}
?>
<div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>">
<div id="wpcf7-welcome-panel" class="<?php echo esc_attr( $classes ); ?>">
<?php wp_nonce_field( 'wpcf7-welcome-panel-nonce', 'welcomepanelnonce', false ); ?>
<a class="welcome-panel-close" href="<?php echo esc_url( menu_page_url( 'wpcf7', false ) ); ?>"><?php echo esc_html( __( 'Dismiss', 'contact-form-7' ) ); ?></a>
......
......@@ -7,7 +7,7 @@
}
$( function() {
var welcomePanel = $( '#welcome-panel' );
var welcomePanel = $( '#wpcf7-welcome-panel' );
var updateWelcomePanel;
updateWelcomePanel = function( visible ) {
......
!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var c in r)e.o(r,c)&&!e.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:r[c]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.element,r=window.wp.i18n,c=window.wp.blocks,n=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 242.5 239.46"},(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip-path",transform:"translate(1.72)"},(0,t.createElement)("circle",{className:"cls-1",cx:"119.73",cy:"119.73",r:"116.15",fill:"none"}))),(0,t.createElement)("g",{id:"Layer_2","data-name":"Layer 2"},(0,t.createElement)("g",{id:"Layer_1","data-name":"Layer 1"},(0,t.createElement)("g",{className:"cls-2",clipPath:"url(#clip-path)"},(0,t.createElement)("circle",{className:"cls-3",cx:"121.45",cy:"119.73",r:"116.15",fill:"#33c6f4"}),(0,t.createElement)("path",{className:"cls-4",d:"M239.32,167.79c-53.41-24-108.37-91.46-113-94.55s-10.84.77-10.84.77c-3.87-6.19-10.06.77-10.06.77C76.77,123.55.14,170.11.14,170.11S36.94,237.79,122,237.79C208.48,237.79,239.32,167.79,239.32,167.79Z",transform:"translate(1.72)",fill:"#1b447e"}),(0,t.createElement)("path",{className:"cls-5",d:"M67.48,116.58s15.48-7,12.38,4.65-15.48,28.64-11.61,29.41S83,140.58,86.06,142.12s5.42.78,3.87,6.2-3.1,9.29,0,9.29,5.42-7,9.29-13.94,10.06-3.87,12.38-1.55,9.29,15.49,14.71,13.94,8.51-8.52,6.19-24,1.55-20.12,1.55-20.12,4.64-2.32,13.16,8.51,24,27.09,26.31,26.32-10.83-17.8-7.74-19.35,15.48,2.32,21.68,7.74c0,0,2.12,8.87,2.12.36L126.31,73.24,115.47,74l-10.06.77S80.64,111.94,67.48,116.58Z",transform:"translate(1.72)",fill:"#fff"}),(0,t.createElement)("path",{className:"cls-6",d:"M239.32,170.11c-53.41-24-108.37-93.78-113-96.87s-10.84.77-10.84.77c-3.87-6.19-10.06.77-10.06.77C76.77,123.55.14,170.11.14,170.11",transform:"translate(1.72)",fill:"none",stroke:"#221e1f",strokeMiterlimit:"10",strokeWidth:"8px"})),(0,t.createElement)("circle",{className:"cls-6",cx:"121.45",cy:"119.73",r:"116.15",fill:"none",stroke:"#1b447e",strokeMiterlimit:"10",strokeWidth:"8px"})))),a=window.wp.apiFetch,o=e.n(a),l=window.wp.compose,s=window.wp.components;const i=new Map;o()({path:"contact-form-7/v1/contact-forms?per_page=20"}).then((e=>{Object.entries(e).forEach((([e,t])=>{i.set(t.id,t)}))}));var m={from:[{type:"shortcode",tag:"contact-form-7",attributes:{id:{type:"integer",shortcode:function(e){var t=e.named.id;return parseInt(t)}},title:{type:"string",shortcode:function(e){return e.named.title}}}}],to:[{type:"block",blocks:["core/shortcode"],transform:function(e){return(0,c.createBlock)("core/shortcode",{text:'[contact-form-7 id="'.concat(e.id,'" title="').concat(e.title,'"]')})}}]};(0,c.registerBlockType)("contact-form-7/contact-form-selector",{title:(0,r.__)("Contact Form 7","contact-form-7"),description:(0,r.__)("Insert a contact form you have created with Contact Form 7.","contact-form-7"),category:"widgets",attributes:{id:{type:"integer"},title:{type:"string"}},icon:n,transforms:m,edit:function e({attributes:c,setAttributes:n}){if(!i.size&&!c.id)return(0,t.createElement)("div",{className:"components-placeholder"},(0,t.createElement)("p",null,(0,r.__)("No contact forms were found. Create a contact form first.","contact-form-7")));const a=Array.from(i.values(),(e=>({value:e.id,label:e.title})));if(c.id)a.length||a.push({value:c.id,label:c.title});else{const e=a[0];c={id:parseInt(e.value),title:e.label}}const o=`contact-form-7-contact-form-selector-${(0,l.useInstanceId)(e)}`;return(0,t.createElement)("div",{className:"components-placeholder"},(0,t.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},(0,r.__)("Select a contact form:","contact-form-7")),(0,t.createElement)(s.SelectControl,{id:o,options:a,value:c.id,onChange:e=>n({id:parseInt(e),title:i.get(parseInt(e)).title})}))},save:function(e){var r=e.attributes;return(0,t.createElement)("div",null,'[contact-form-7 id="',r.id,'" title="',r.title,'"]')}})}();
\ No newline at end of file
!function(){"use strict";var t,e={n:function(t){var c=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(c,{a:c}),c},d:function(t,c){for(var r in c)e.o(c,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:c[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},c=window.wp.element,r=window.wp.apiFetch,o=e.n(r),n=window.wp.i18n,a=window.wp.blocks,l=(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 242.5 239.46"},(0,c.createElement)("defs",null,(0,c.createElement)("clipPath",{id:"clip-path",transform:"translate(1.72)"},(0,c.createElement)("circle",{className:"cls-1",cx:"119.73",cy:"119.73",r:"116.15",fill:"none"}))),(0,c.createElement)("g",{id:"Layer_2","data-name":"Layer 2"},(0,c.createElement)("g",{id:"Layer_1","data-name":"Layer 1"},(0,c.createElement)("g",{className:"cls-2",clipPath:"url(#clip-path)"},(0,c.createElement)("circle",{className:"cls-3",cx:"121.45",cy:"119.73",r:"116.15",fill:"#33c6f4"}),(0,c.createElement)("path",{className:"cls-4",d:"M239.32,167.79c-53.41-24-108.37-91.46-113-94.55s-10.84.77-10.84.77c-3.87-6.19-10.06.77-10.06.77C76.77,123.55.14,170.11.14,170.11S36.94,237.79,122,237.79C208.48,237.79,239.32,167.79,239.32,167.79Z",transform:"translate(1.72)",fill:"#1b447e"}),(0,c.createElement)("path",{className:"cls-5",d:"M67.48,116.58s15.48-7,12.38,4.65-15.48,28.64-11.61,29.41S83,140.58,86.06,142.12s5.42.78,3.87,6.2-3.1,9.29,0,9.29,5.42-7,9.29-13.94,10.06-3.87,12.38-1.55,9.29,15.49,14.71,13.94,8.51-8.52,6.19-24,1.55-20.12,1.55-20.12,4.64-2.32,13.16,8.51,24,27.09,26.31,26.32-10.83-17.8-7.74-19.35,15.48,2.32,21.68,7.74c0,0,2.12,8.87,2.12.36L126.31,73.24,115.47,74l-10.06.77S80.64,111.94,67.48,116.58Z",transform:"translate(1.72)",fill:"#fff"}),(0,c.createElement)("path",{className:"cls-6",d:"M239.32,170.11c-53.41-24-108.37-93.78-113-96.87s-10.84.77-10.84.77c-3.87-6.19-10.06.77-10.06.77C76.77,123.55.14,170.11.14,170.11",transform:"translate(1.72)",fill:"none",stroke:"#221e1f",strokeMiterlimit:"10",strokeWidth:"8px"})),(0,c.createElement)("circle",{className:"cls-6",cx:"121.45",cy:"119.73",r:"116.15",fill:"none",stroke:"#1b447e",strokeMiterlimit:"10",strokeWidth:"8px"})))),i=window.wp.compose,s=window.wp.components,m={from:[{type:"shortcode",tag:"contact-form-7",attributes:{id:{type:"integer",shortcode:t=>{let{named:{id:e}}=t;return parseInt(e)}},title:{type:"string",shortcode:t=>{let{named:{title:e}}=t;return e}}}}],to:[{type:"block",blocks:["core/shortcode"],transform:t=>(0,a.createBlock)("core/shortcode",{text:`[contact-form-7 id="${t.id}" title="${t.title}"]`})}]};window.wpcf7=null!==(t=window.wpcf7)&&void 0!==t?t:{},o()({path:"contact-form-7/v1/contact-forms?per_page=20"}).then((t=>{window.wpcf7.contactForms=t})),(0,a.registerBlockType)("contact-form-7/contact-form-selector",{title:(0,n.__)("Contact Form 7","contact-form-7"),description:(0,n.__)("Insert a contact form you have created with Contact Form 7.","contact-form-7"),category:"widgets",attributes:{id:{type:"integer"},title:{type:"string"}},icon:l,transforms:m,edit:function t(e){let{attributes:r,setAttributes:o}=e;const a=new Map;if(Object.entries(window.wpcf7.contactForms).forEach((t=>{let[e,c]=t;a.set(c.id,c)})),!a.size&&!r.id)return(0,c.createElement)("div",{className:"components-placeholder"},(0,c.createElement)("p",null,(0,n.__)("No contact forms were found. Create a contact form first.","contact-form-7")));const l=Array.from(a.values(),(t=>({value:t.id,label:t.title})));if(r.id)l.length||l.push({value:r.id,label:r.title});else{const t=l[0];r={id:parseInt(t.value),title:t.label}}const m=`contact-form-7-contact-form-selector-${(0,i.useInstanceId)(t)}`;return(0,c.createElement)("div",{className:"components-placeholder"},(0,c.createElement)("label",{htmlFor:m,className:"components-placeholder__label"},(0,n.__)("Select a contact form:","contact-form-7")),(0,c.createElement)(s.SelectControl,{id:m,options:l,value:r.id,onChange:t=>o({id:parseInt(t),title:a.get(parseInt(t)).title})}))},save:t=>{var e,r,o,n;let{attributes:a}=t;return a={id:null!==(e=a.id)&&void 0!==e?e:null===(r=window.wpcf7.contactForms[0])||void 0===r?void 0:r.id,title:null!==(o=a.title)&&void 0!==o?o:null===(n=window.wpcf7.contactForms[0])||void 0===n?void 0:n.title},(0,c.createElement)("div",null,'[contact-form-7 id="',a.id,'" title="',a.title,'"]')}})}();
\ No newline at end of file
......
!function(){"use strict";var e=function(e){return Math.abs(parseInt(e,10))};const t=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t&&e.classList.remove(r),t};var n=function(e,t,n){var r=new CustomEvent("wpcf7".concat(t),{bubbles:!0,detail:n});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(r)};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o=function(e){var t=wpcf7.api,n=t.root,r=t.namespace,a=void 0===r?"contact-form-7/v1":r;return i.reduceRight((function(e,t){return function(n){return t(n,e)}}),(function(e){var t,r,o=e.url,i=e.path,s=e.endpoint,u=e.headers,l=e.body,f=e.data,p=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["url","path","endpoint","headers","body","data"]);"string"==typeof s&&(t=a.replace(/^\/|\/$/g,""),i=(r=s.replace(/^\//,""))?t+"/"+r:t),"string"==typeof i&&(-1!==n.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),o=n+i),delete(u=c({Accept:"application/json, */*;q=0.1"},u))["X-WP-Nonce"],f&&(l=JSON.stringify(f),u["Content-Type"]="application/json");var d={code:"fetch_error",message:"You are probably offline."},w={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||i||window.location.href,c(c({},p),{},{headers:u,body:l})).then((function(e){return Promise.resolve(e).then((function(e){if(e.status>=200&&e.status<300)return e;throw e})).then((function(e){if(204===e.status)return null;if(e&&e.json)return e.json().catch((function(){throw w}));throw w}))}),(function(){throw d}))}))(e)},i=[];function s(e,r={}){if(wpcf7.blocked)return u(e),void t(e,"submitting");const a=new FormData(e);r.submitter&&r.submitter.name&&a.append(r.submitter.name,r.submitter.value);const c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(a,(e=>{const t=e[0],n=e[1];return!t.match(/^_/)&&{name:t,value:n}})).filter((e=>!1!==e)),formData:a},i=t=>{const n=document.createElement("li");n.setAttribute("id",t.error_id),t.idref?n.insertAdjacentHTML("beforeend",`<a href="#${t.idref}">${t.message}</a>`):n.insertAdjacentText("beforeend",t.message),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(n)},s=t=>{const n=e.querySelector(t.into),r=n.querySelector(".wpcf7-form-control");r.classList.add("wpcf7-not-valid"),r.setAttribute("aria-describedby",t.error_id);const a=document.createElement("span");a.setAttribute("class","wpcf7-not-valid-tip"),a.setAttribute("aria-hidden","true"),a.insertAdjacentText("beforeend",t.message),n.appendChild(a),n.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),r.closest(".use-floating-validation-tip")&&(r.addEventListener("focus",(e=>{a.setAttribute("style","display: none")})),a.addEventListener("mouseover",(e=>{a.setAttribute("style","display: none")})))};o({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:a,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((r=>{const a=t(e,r.status);return c.status=r.status,c.apiResponse=r,["invalid","unaccepted","spam","aborted"].includes(a)?n(e,a,c):["sent","failed"].includes(a)&&n(e,`mail${a}`,c),n(e,"submit",c),r})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&(t.invalid_fields.forEach(i),t.invalid_fields.forEach(s)),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}o.use=function(e){i.unshift(e)},o.use(((e,r)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:r,detail:a}=e.wpcf7;u(r),n(r,"beforesubmit",a),t(r,"submitting")}return r(e)}));const u=e=>{e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.wpcf7.parent.querySelector(".screen-reader-response ul").innerText="",e.querySelectorAll(".wpcf7-not-valid-tip").forEach((e=>{e.remove()})),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid")})),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function l(e){var r=new FormData(e),a={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(r,(function(e){var t=e[0],n=e[1];return!t.match(/^_/)&&{name:t,value:n}})).filter((function(e){return!1!==e})),formData:r};o({endpoint:"contact-forms/".concat(e.wpcf7.id,"/refill"),method:"GET",wpcf7:{endpoint:"refill",form:e,detail:a}}).then((function(r){e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,t(e,"mail_sent")):t(e,"init"),a.apiResponse=r,n(e,"reset",a)})).catch((function(e){return console.error(e)}))}o.use((function(e,n){if(e.wpcf7&&"refill"===e.wpcf7.endpoint){var r=e.wpcf7,a=r.form;r.detail,u(a),t(a,"resetting")}return n(e)}));var f=function(e,t){var n=function(n){var r=t[n];e.querySelectorAll('input[name="'.concat(n,'"]')).forEach((function(e){e.value=""})),e.querySelectorAll("img.wpcf7-captcha-".concat(n)).forEach((function(e){e.setAttribute("src",r)}));var a=/([0-9]+)\.(png|gif|jpeg)$/.exec(r);a&&e.querySelectorAll('input[name="_wpcf7_captcha_challenge_'.concat(n,'"]')).forEach((function(e){e.value=a[1]}))};for(var r in t)n(r)},p=function(e,t){var n=function(n){var r=t[n][0],a=t[n][1];e.querySelectorAll(".wpcf7-form-control-wrap.".concat(n)).forEach((function(e){e.querySelector('input[name="'.concat(n,'"]')).value="",e.querySelector(".wpcf7-quiz-label").textContent=r,e.querySelector('input[name="_wpcf7_quiz_answer_'.concat(n,'"]')).value=a}))};for(var r in t)n(r)};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(t){const n=new FormData(t);t.wpcf7={id:e(n.get("_wpcf7")),status:t.getAttribute("data-status"),pluginVersion:n.get("_wpcf7_version"),locale:n.get("_wpcf7_locale"),unitTag:n.get("_wpcf7_unit_tag"),containerPost:e(n.get("_wpcf7_container_post")),parent:t.closest(".wpcf7")},t.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),function(e){e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((function(t){t.addEventListener("change",(function(t){var n=t.target.getAttribute("name");e.querySelectorAll('input[type="checkbox"][name="'.concat(n,'"]')).forEach((function(e){e!==t.target&&(e.checked=!1)}))}))}))}(t),function(e){e.querySelectorAll(".has-free-text").forEach((function(t){var n=t.querySelector("input.wpcf7-free-text"),r=t.querySelector('input[type="checkbox"], input[type="radio"]');n.disabled=!r.checked,e.addEventListener("change",(function(e){n.disabled=!r.checked,e.target===r&&r.checked&&n.focus()}))}))}(t),function(e){e.querySelectorAll(".wpcf7-validates-as-url").forEach((function(e){e.addEventListener("change",(function(t){var n=e.value.trim();n&&!n.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==n.indexOf(".")&&(n="http://"+(n=n.replace(/^\/+/,""))),e.value=n}))}))}(t),function(e){if(e.querySelector(".wpcf7-acceptance")&&!e.classList.contains("wpcf7-acceptance-as-validation")){var t=function(){var t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((function(e){if(t&&!e.classList.contains("optional")){var n=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&n.checked||!e.classList.contains("invert")&&!n.checked)&&(t=!1)}})),e.querySelectorAll(".wpcf7-submit").forEach((function(e){e.disabled=!t}))};t(),e.addEventListener("change",(function(e){t()})),e.addEventListener("wpcf7reset",(function(e){t()}))}}(t),function(t){var n=function(t,n){var r=e(t.getAttribute("data-starting-value")),a=e(t.getAttribute("data-maximum-value")),c=e(t.getAttribute("data-minimum-value")),o=t.classList.contains("down")?r-n.value.length:n.value.length;t.setAttribute("data-current-value",o),t.innerText=o,a&&a<n.value.length?t.classList.add("too-long"):t.classList.remove("too-long"),c&&n.value.length<c?t.classList.add("too-short"):t.classList.remove("too-short")},a=function(e){e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({init:!1},e),t.querySelectorAll(".wpcf7-character-count").forEach((function(r){var a=r.getAttribute("data-target-name"),c=t.querySelector('[name="'.concat(a,'"]'));c&&(c.value=c.defaultValue,n(r,c),e.init&&c.addEventListener("keyup",(function(e){n(r,c)})))}))};a({init:!0}),t.addEventListener("wpcf7reset",(function(e){a()}))}(t),window.addEventListener("load",(e=>{wpcf7.cached&&t.reset()})),t.addEventListener("reset",(e=>{wpcf7.reset(t)})),t.addEventListener("submit",(e=>{const n=e.submitter;wpcf7.submit(t,{submitter:n}),e.preventDefault()})),t.addEventListener("wpcf7submit",(e=>{e.detail.apiResponse.captcha&&f(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&p(t,e.detail.apiResponse.quiz)})),t.addEventListener("wpcf7reset",(e=>{e.detail.apiResponse.captcha&&f(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&p(t,e.detail.apiResponse.quiz)}))}document.addEventListener("DOMContentLoaded",(e=>{var t;if("undefined"==typeof wpcf7)return void console.error("wpcf7 is not defined.");if(void 0===wpcf7.api)return void console.error("wpcf7.api is not defined.");if("function"!=typeof window.fetch)return void console.error("Your browser doesn't support window.fetch().");if("function"!=typeof window.FormData)return void console.error("Your browser doesn't support window.FormData().");const n=document.querySelectorAll(".wpcf7 > form");"function"==typeof n.forEach?(wpcf7={init:w,submit:s,reset:l,...null!==(t=wpcf7)&&void 0!==t?t:{}},n.forEach((e=>wpcf7.init(e)))):console.error("Your browser doesn't support NodeList.forEach().")}))}();
\ No newline at end of file
!function(){"use strict";const e=e=>Math.abs(parseInt(e,10)),t=(e,t)=>{const r=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["payment_required","payment-required"]]);r.has(t)&&(t=r.get(t)),Array.from(r.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const n=e.getAttribute("data-status");return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),n&&n!==t&&e.classList.remove(n),t},r=(e,t,r)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:r});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=e=>{const{root:t,namespace:r="contact-form-7/v1"}=wpcf7.api;return a.reduceRight(((e,t)=>r=>t(r,e)),(e=>{let n,a,{url:c,path:s,endpoint:o,headers:i,body:l,data:p,...d}=e;"string"==typeof o&&(n=r.replace(/^\/|\/$/g,""),a=o.replace(/^\//,""),s=a?n+"/"+a:n),"string"==typeof s&&(-1!==t.indexOf("?")&&(s=s.replace("?","&")),s=s.replace(/^\//,""),c=t+s),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const u={code:"fetch_error",message:"You are probably offline."},f={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||s||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw f}));throw f}))),(()=>{throw u}))}))(e)},a=[];function c(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wpcf7.blocked)return s(e),void t(e,"submitting");const c=new FormData(e);a.submitter&&a.submitter.name&&c.append(a.submitter.name,a.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],r=e[1];return!t.match(/^_/)&&{name:t,value:r}})).filter((e=>!1!==e)),formData:c},i=t=>{const r=document.createElement("li");r.setAttribute("id",t.error_id),t.idref?r.insertAdjacentHTML("beforeend",`<a href="#${t.idref}">${t.message}</a>`):r.insertAdjacentText("beforeend",t.message),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(r)},l=t=>{const r=e.querySelector(t.into),n=r.querySelector(".wpcf7-form-control");n.classList.add("wpcf7-not-valid"),n.setAttribute("aria-describedby",t.error_id);const a=document.createElement("span");a.setAttribute("class","wpcf7-not-valid-tip"),a.setAttribute("aria-hidden","true"),a.insertAdjacentText("beforeend",t.message),r.appendChild(a),r.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),n.closest(".use-floating-validation-tip")&&(n.addEventListener("focus",(e=>{a.setAttribute("style","display: none")})),a.addEventListener("mouseover",(e=>{a.setAttribute("style","display: none")})))};n({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((n=>{const a=t(e,n.status);return o.status=n.status,o.apiResponse=n,["invalid","unaccepted","spam","aborted"].includes(a)?r(e,a,o):["sent","failed"].includes(a)&&r(e,`mail${a}`,o),r(e,"submit",o),n})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&(t.invalid_fields.forEach(i),t.invalid_fields.forEach(l)),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}n.use=e=>{a.unshift(e)},n.use(((e,n)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:n,detail:a}=e.wpcf7;s(n),r(n,"beforesubmit",a),t(n,"submitting")}return n(e)}));const s=e=>{e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.wpcf7.parent.querySelector(".screen-reader-response ul").innerText="",e.querySelectorAll(".wpcf7-not-valid-tip").forEach((e=>{e.remove()})),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid")})),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function o(e){const a=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(a,(e=>{const t=e[0],r=e[1];return!t.match(/^_/)&&{name:t,value:r}})).filter((e=>!1!==e)),formData:a};n({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((n=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,t(e,"mail_sent")):t(e,"init"),c.apiResponse=n,r(e,"reset",c)})).catch((e=>console.error(e)))}n.use(((e,r)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:r,detail:n}=e.wpcf7;s(r),t(r,"resetting")}return r(e)}));const i=(e,t)=>{for(const r in t){const n=t[r];e.querySelectorAll(`input[name="${r}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${r}`).forEach((e=>{e.setAttribute("src",n)}));const a=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);a&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${r}"]`).forEach((e=>{e.value=a[1]}))}},l=(e,t)=>{for(const r in t){const n=t[r][0],a=t[r][1];e.querySelectorAll(`.wpcf7-form-control-wrap.${r}`).forEach((e=>{e.querySelector(`input[name="${r}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${r}"]`).value=a}))}};function p(t){const r=new FormData(t);t.wpcf7={id:e(r.get("_wpcf7")),status:t.getAttribute("data-status"),pluginVersion:r.get("_wpcf7_version"),locale:r.get("_wpcf7_locale"),unitTag:r.get("_wpcf7_unit_tag"),containerPost:e(r.get("_wpcf7_container_post")),parent:t.closest(".wpcf7")},t.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const r=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${r}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(t),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const r=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');r.disabled=!n.checked,e.addEventListener("change",(e=>{r.disabled=!n.checked,e.target===n&&n.checked&&r.focus()}))}))})(t),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let r=e.value.trim();r&&!r.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==r.indexOf(".")&&(r=r.replace(/^\/+/,""),r="http://"+r),e.value=r}))}))})(t),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const r=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&r.checked||!e.classList.contains("invert")&&!r.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(t),(t=>{const r=(t,r)=>{const n=e(t.getAttribute("data-starting-value")),a=e(t.getAttribute("data-maximum-value")),c=e(t.getAttribute("data-minimum-value")),s=t.classList.contains("down")?n-r.value.length:r.value.length;t.setAttribute("data-current-value",s),t.innerText=s,a&&a<r.value.length?t.classList.add("too-long"):t.classList.remove("too-long"),c&&r.value.length<c?t.classList.add("too-short"):t.classList.remove("too-short")},n=e=>{e={init:!1,...e},t.querySelectorAll(".wpcf7-character-count").forEach((n=>{const a=n.getAttribute("data-target-name"),c=t.querySelector(`[name="${a}"]`);c&&(c.value=c.defaultValue,r(n,c),e.init&&c.addEventListener("keyup",(e=>{r(n,c)})))}))};n({init:!0}),t.addEventListener("wpcf7reset",(e=>{n()}))})(t),window.addEventListener("load",(e=>{wpcf7.cached&&t.reset()})),t.addEventListener("reset",(e=>{wpcf7.reset(t)})),t.addEventListener("submit",(e=>{const r=e.submitter;wpcf7.submit(t,{submitter:r}),e.preventDefault()})),t.addEventListener("wpcf7submit",(e=>{e.detail.apiResponse.captcha&&i(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&l(t,e.detail.apiResponse.quiz)})),t.addEventListener("wpcf7reset",(e=>{e.detail.apiResponse.captcha&&i(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&l(t,e.detail.apiResponse.quiz)}))}document.addEventListener("DOMContentLoaded",(e=>{var t;if("undefined"==typeof wpcf7)return void console.error("wpcf7 is not defined.");if(void 0===wpcf7.api)return void console.error("wpcf7.api is not defined.");if("function"!=typeof window.fetch)return void console.error("Your browser doesn't support window.fetch().");if("function"!=typeof window.FormData)return void console.error("Your browser doesn't support window.FormData().");const r=document.querySelectorAll(".wpcf7 > form");"function"==typeof r.forEach?(wpcf7={init:p,submit:c,reset:o,...null!==(t=wpcf7)&&void 0!==t?t:{}},r.forEach((e=>wpcf7.init(e)))):console.error("Your browser doesn't support NodeList.forEach().")}))}();
\ No newline at end of file
......
<?php
/**
* Pipe-related classes.
*
* @link https://contactform7.com/selectable-recipient-with-pipes/
*/
/**
* Class representing a pair of pipe.
*/
class WPCF7_Pipe {
public $before = '';
......@@ -19,6 +28,10 @@ class WPCF7_Pipe {
}
}
/**
* Class representing a list of pipes.
*/
class WPCF7_Pipes {
private $pipes = array();
......@@ -40,18 +53,12 @@ class WPCF7_Pipes {
) );
foreach ( $this->pipes as $pipe ) {
$before_canonical = wpcf7_canonicalize( $pipe->before, array(
'strto' => 'as-is',
) );
list( $before, $after ) = array_map(
function ( $item ) {
return wpcf7_canonicalize( $item, array(
'strto' => 'as-is',
) );
},
array( $pipe->before, $pipe->after )
);
if ( $input_canonical === $before ) {
return $after;
if ( $input_canonical === $before_canonical ) {
return $pipe->after;
}
}
......
Contact Form 7 WordPress Plugin, 2007-2021 Takayuki Miyoshi
Contact Form 7 is distributed under the terms of the GNU GPL
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact Form 7 WordPress Plugin bundles the following third-party resources:
The official icon designed by Cheung Vong
https://contactform7.com/2020/04/08/new-official-logo/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
Contact Form 7 WordPress Plugin, 2007-2022 Takayuki Miyoshi
Contact Form 7 is distributed under the terms of the GNU GPL
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact Form 7 WordPress Plugin bundles the following third-party resources:
The official icon designed by Cheung Vong
https://contactform7.com/2020/04/08/new-official-logo/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
......
......@@ -43,6 +43,7 @@ class WPCF7 {
self::load_module( 'count' );
self::load_module( 'date' );
self::load_module( 'disallowed-list' );
self::load_module( 'doi-helper' );
self::load_module( 'file' );
self::load_module( 'flamingo' );
self::load_module( 'hidden' );
......
......@@ -3,6 +3,7 @@
wpcf7_include_module_file( 'constant-contact/service.php' );
wpcf7_include_module_file( 'constant-contact/contact-post-request.php' );
wpcf7_include_module_file( 'constant-contact/contact-form-properties.php' );
wpcf7_include_module_file( 'constant-contact/doi.php' );
add_action(
......@@ -96,9 +97,27 @@ function wpcf7_constant_contact_submit( $contact_form, $result ) {
return;
}
if ( $email = $request_builder->get_email_address()
and $service->email_exists( $email ) ) {
return;
$email = $request_builder->get_email_address();
if ( $email ) {
if ( $service->email_exists( $email ) ) {
return;
}
$token = null;
do_action_ref_array( 'wpcf7_doi', array(
'wpcf7_constant_contact',
array(
'email_to' => $email,
'properties' => $request_builder->to_array(),
),
&$token,
) );
if ( isset( $token ) ) {
return;
}
}
$service->create_contact( $request_builder->to_array() );
......
<?php
/**
* Double Opt-In Helper-related functions
*
* @link https://contactform7.com/doi-helper/
*/
add_action(
'doihelper_init',
'wpcf7_constant_contact_doi_register_agent',
10, 0
);
/**
* Registers wpcf7_constant_contact as an agent.
*/
function wpcf7_constant_contact_doi_register_agent() {
if ( ! function_exists( 'doihelper_register_agent' ) ) {
return;
}
doihelper_register_agent( 'wpcf7_constant_contact', array(
'optin_callback' => apply_filters(
'wpcf7_constant_contact_doi_optin_callback',
'wpcf7_constant_contact_doi_default_optin_callback'
),
'email_callback' => apply_filters(
'wpcf7_constant_contact_doi_email_callback',
'wpcf7_constant_contact_doi_default_email_callback'
),
) );
}
/**
* Default optin_callback function.
*/
function wpcf7_constant_contact_doi_default_optin_callback( $properties ) {
$service = WPCF7_ConstantContact::get_instance();
if ( $service->is_active() ) {
$service->create_contact( $properties );
}
}
/**
* Default email_callback function.
*/
function wpcf7_constant_contact_doi_default_email_callback( $args ) {
if ( ! isset( $args['token'] ) or ! isset( $args['email_to'] ) ) {
return;
}
$site_title = wp_specialchars_decode(
get_bloginfo( 'name' ),
ENT_QUOTES
);
$link = add_query_arg(
array( 'doitoken' => $args['token'] ),
home_url()
);
$to = $args['email_to'];
$subject = sprintf(
/* translators: %s: blog name */
__( 'Opt-in confirmation from %s', 'contact-form-7' ),
$site_title
);
$message = sprintf(
/* translators: 1: blog name, 2: confirmation link */
__( 'Hello,
This is a confirmation email sent from %1$s.
We have received your submission to our web form, according to which you have allowed us to add you to our contact list. But, the process has not yet been completed. To complete it, please click the following link.
%2$s
If it was not your intention, or if you have no idea why you received this message, please do not click on the link, and ignore this message. We will never collect or use your personal data without your clear consent.
Sincerely,
%1$s', 'contact-form-7' ),
$site_title,
$link
);
wp_mail( $to, $subject, $message );
}
<?php
/**
* Double Opt-In Helper module
*
* @link https://contactform7.com/doi-helper/
*/
add_action( 'wpcf7_doi', 'wpcf7_doihelper_start_session', 10, 3 );
/**
* Starts a double opt-in session.
*/
function wpcf7_doihelper_start_session( $agent_name, $args, &$token ) {
if ( isset( $token ) ) {
return;
}
if ( ! function_exists( 'doihelper_start_session' ) ) {
return;
}
$submission = WPCF7_Submission::get_instance();
if ( ! $submission ) {
return;
}
$contact_form = $submission->get_contact_form();
$do_doi = ! array_filter(
$contact_form->additional_setting( 'doi', false ),
function ( $setting ) {
return in_array( $setting, array( 'off', 'false', '0' ), true );
}
);
$do_doi = apply_filters( 'wpcf7_do_doi', $do_doi, $agent_name, $args );
if ( ! $do_doi ) {
return;
}
$token = doihelper_start_session( $agent_name, $args );
}
document.addEventListener("DOMContentLoaded",(e=>{var t;wpcf7_recaptcha={...null!==(t=wpcf7_recaptcha)&&void 0!==t?t:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=e=>{const{action:t,func:n,params:a}=e;grecaptcha.execute(c,{action:t}).then((e=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:t,token:e}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((e=>console.error(e)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(e=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const e=wpcf7.submit;wpcf7.submit=(t,c={})=>{o({action:a,func:e,params:[t,c]})}}document.addEventListener("wpcf7grecaptchaexecuted",(e=>{const t=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c<t.length;c++)t[c].setAttribute("value",e.detail.token)}))}));
\ No newline at end of file
document.addEventListener("DOMContentLoaded",(t=>{var e;wpcf7_recaptcha={...null!==(e=wpcf7_recaptcha)&&void 0!==e?e:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=t=>{const{action:e,func:n,params:a}=t;grecaptcha.execute(c,{action:e}).then((t=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:e,token:t}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((t=>console.error(t)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(t=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const t=wpcf7.submit;wpcf7.submit=function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o({action:a,func:t,params:[e,c]})}}document.addEventListener("wpcf7grecaptchaexecuted",(t=>{const e=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c<e.length;c++)e[c].setAttribute("value",t.detail.token)}))}));
\ No newline at end of file
......
<?php
/**
* Double Opt-In Helper-related functions
*
* @link https://contactform7.com/doi-helper/
*/
add_action(
'doihelper_init',
'wpcf7_sendinblue_doi_register_agent',
10, 0
);
/**
* Registers wpcf7_sendinblue as an agent.
*/
function wpcf7_sendinblue_doi_register_agent() {
if ( ! function_exists( 'doihelper_register_agent' ) ) {
return;
}
doihelper_register_agent( 'wpcf7_sendinblue', array(
'optin_callback' => apply_filters(
'wpcf7_sendinblue_doi_optin_callback',
'wpcf7_sendinblue_doi_default_optin_callback'
),
'email_callback' => apply_filters(
'wpcf7_sendinblue_doi_email_callback',
'wpcf7_sendinblue_doi_default_email_callback'
),
) );
}
/**
* Default optin_callback function.
*/
function wpcf7_sendinblue_doi_default_optin_callback( $properties ) {
$service = WPCF7_Sendinblue::get_instance();
if ( ! $service->is_active() ) {
return;
}
if ( ! empty( $properties['contact'] ) ) {
$contact_id = $service->create_contact( $properties['contact'] );
if ( $contact_id and ! empty( $properties['email'] ) ) {
$service->send_email( $properties['email'] );
}
}
}
/**
* Default email_callback function.
*/
function wpcf7_sendinblue_doi_default_email_callback( $args ) {
if ( ! isset( $args['token'] ) or ! isset( $args['email_to'] ) ) {
return;
}
$site_title = wp_specialchars_decode(
get_bloginfo( 'name' ),
ENT_QUOTES
);
$link = add_query_arg(
array( 'doitoken' => $args['token'] ),
home_url()
);
$to = $args['email_to'];
$subject = sprintf(
/* translators: %s: blog name */
__( 'Opt-in confirmation from %s', 'contact-form-7' ),
$site_title
);
$message = sprintf(
/* translators: 1: blog name, 2: confirmation link */
__( 'Hello,
This is a confirmation email sent from %1$s.
We have received your submission to our web form, according to which you have allowed us to add you to our contact list. But, the process has not yet been completed. To complete it, please click the following link.
%2$s
If it was not your intention, or if you have no idea why you received this message, please do not click on the link, and ignore this message. We will never collect or use your personal data without your clear consent.
Sincerely,
%1$s', 'contact-form-7' ),
$site_title,
$link
);
wp_mail( $to, $subject, $message );
}
......@@ -2,6 +2,7 @@
wpcf7_include_module_file( 'sendinblue/service.php' );
wpcf7_include_module_file( 'sendinblue/contact-form-properties.php' );
wpcf7_include_module_file( 'sendinblue/doi.php' );
add_action( 'wpcf7_init', 'wpcf7_sendinblue_register_service', 1, 0 );
......@@ -69,65 +70,83 @@ function wpcf7_sendinblue_submit( $contact_form, $result ) {
$attributes = wpcf7_sendinblue_collect_parameters();
if ( empty( $attributes['EMAIL'] ) and empty( $attributes['SMS'] ) ) {
return;
}
$contact_params = apply_filters(
'wpcf7_sendinblue_contact_parameters',
array(
'email' => $attributes['EMAIL'],
'attributes' => (object) $attributes,
'listIds' => (array) $prop['contact_lists'],
'updateEnabled' => false,
)
$params = array(
'contact' => array(),
'email' => array(),
);
$contact_id = $service->create_contact( $contact_params );
if ( ! $contact_id ) {
return;
if ( ! empty( $attributes['EMAIL'] ) or ! empty( $attributes['SMS'] ) ) {
$params['contact'] = apply_filters(
'wpcf7_sendinblue_contact_parameters',
array(
'email' => $attributes['EMAIL'],
'attributes' => (object) $attributes,
'listIds' => (array) $prop['contact_lists'],
'updateEnabled' => false,
)
);
}
if ( ! $prop['enable_transactional_email'] or ! $prop['email_template'] ) {
return;
if ( $prop['enable_transactional_email'] and $prop['email_template'] ) {
$first_name = isset( $attributes['FIRSTNAME'] )
? trim( $attributes['FIRSTNAME'] )
: '';
$last_name = isset( $attributes['LASTNAME'] )
? trim( $attributes['LASTNAME'] )
: '';
if ( $first_name or $last_name ) {
$email_to_name = sprintf(
/* translators: 1: first name, 2: last name */
_x( '%1$s %2$s', 'personal name', 'contact-form-7' ),
$first_name,
$last_name
);
} else {
$email_to_name = '';
}
$params['email'] = apply_filters(
'wpcf7_sendinblue_email_parameters',
array(
'templateId' => absint( $prop['email_template'] ),
'to' => array(
array(
'name' => $email_to_name,
'email' => $attributes['EMAIL'],
),
),
'params' => (object) $attributes,
'tags' => array( 'Contact Form 7' ),
)
);
}
$first_name = isset( $attributes['FIRSTNAME'] )
? trim( $attributes['FIRSTNAME'] )
: '';
if ( is_email( $attributes['EMAIL'] ) ) {
$token = null;
$last_name = isset( $attributes['LASTNAME'] )
? trim( $attributes['LASTNAME'] )
: '';
do_action_ref_array( 'wpcf7_doi', array(
'wpcf7_sendinblue',
array(
'email_to' => $attributes['EMAIL'],
'properties' => $params,
),
&$token,
) );
if ( $first_name or $last_name ) {
$email_to_name = sprintf(
/* translators: 1: first name, 2: last name */
_x( '%1$s %2$s', 'personal name', 'contact-form-7' ),
$first_name,
$last_name
);
} else {
$email_to_name = '';
if ( isset( $token ) ) {
return;
}
}
$email_params = apply_filters(
'wpcf7_sendinblue_email_parameters',
array(
'templateId' => absint( $prop['email_template'] ),
'to' => array(
array(
'name' => $email_to_name,
'email' => $attributes['EMAIL'],
),
),
'params' => (object) $attributes,
'tags' => array( 'Contact Form 7' ),
)
);
if ( ! empty( $params['contact'] ) ) {
$contact_id = $service->create_contact( $params['contact'] );
$service->send_email( $email_params );
if ( $contact_id and ! empty( $params['email'] ) ) {
$service->send_email( $params['email'] );
}
}
}
......
......@@ -3,8 +3,8 @@ Contributors: takayukister
Donate link: https://contactform7.com/donate/
Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
Requires at least: 5.7
Tested up to: 5.8
Stable tag: 5.5.3
Tested up to: 5.9
Stable tag: 5.5.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
......@@ -77,6 +77,10 @@ Do you have questions or issues with Contact Form 7? Use these support channels
For more information, see [Releases](https://contactform7.com/category/releases/).
= 5.5.4 =
[https://contactform7.com/contact-form-7-554/](https://contactform7.com/contact-form-7-554/)
= 5.5.3 =
[https://contactform7.com/contact-form-7-553/](https://contactform7.com/contact-form-7-553/)
......
......@@ -7,10 +7,10 @@ Author: Takayuki Miyoshi
Author URI: https://ideasilo.wordpress.com/
Text Domain: contact-form-7
Domain Path: /languages/
Version: 5.5.3
Version: 5.5.4
*/
define( 'WPCF7_VERSION', '5.5.3' );
define( 'WPCF7_VERSION', '5.5.4' );
define( 'WPCF7_REQUIRED_WP_VERSION', '5.7' );
......
......@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: contact form 7, contact form 7 module, post, custom post, form to post, contact form 7 to post, contact form 7 extension
Requires at least: 4.7
Requires PHP: 5.6
Tested up to: 5.8.2
Tested up to: 5.8.3
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
......@@ -543,6 +543,10 @@ The following have contributed to bug fixes, documentation, and/or translations
As of now there is no special upgrade notes, simply follow the normal plugin update process.
== Change Log ==
= 5.4.6 =
* fix json-error on existing post meta-fields.
* fix submitted post checkbox in post editor.
* fix loading of default posts for loggedout users.
= 5.4.5 =
* fix quick edit form table css/warning msg/filter.
* fix factory source setup on initial admin page.
......
......@@ -535,18 +535,18 @@ class Cf7_2_Post_Admin {
}
?>
<span>Form:&nbsp;</span>
<input id="cf72post_submitted" type="checkbox" value="submitted" <?=$checked?>/>
<input class="cf72post-submitted" type="checkbox" value="submitted" <?=$checked?>/>
<label for="cf7_2_post_submitted">submitted.</label>
<p><em>Uncheck to flag this submission as un-submitted.</em> This will reload this post into the form when the its author logs in again.</p>
<input type="hidden" id="cf72post_submitted_hidden" name="cf7_2_post_submitted" value="<?= $submitted?>" <?= $hidden?>/>
<input type="hidden" id="cf72post-submitted-hidden" name="cf7_2_post_submitted" value="<?= $submitted?>" <?= $hidden?>/>
<script type="text/javascript">
(function( $ ) {
$(document).ready(function(){
$('#cf72post_submitted').on('change', function(){
$('input.cf72post-submitted').on('change', function(){
if( $(this).is(':checked') ){
$('#cf72post_submitted_hidden').val('yes');
$('#cf72post-submitted-hidden').val('yes');
}else{
$('#cf72post_submitted_hidden').val('no');
$('#cf72post-submitted-hidden').val('no');
}
});
});
......
......@@ -16,7 +16,7 @@
* Plugin Name: Post My CF7 Form
* Plugin URI: http://wordpress.syllogic.in
* Description: This plugin enables the mapping of your CF7 forms to custom posts.
* Version: 5.4.5
* Version: 5.4.6
* Author: Aurovrata V.
* Author URI: http://syllogic.in
* License: GPL-2.0+
......@@ -29,7 +29,7 @@
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'CF7_2_POST_VERSION', '5.4.5' );
define( 'CF7_2_POST_VERSION', '5.4.6' );
/**
* The code that runs during plugin activation.
......
......@@ -547,16 +547,19 @@ class CF72Post_Mapping_Factory {
if(is_user_logged_in()){ //let's see if this form is already mapped for this user
$user = wp_get_current_user();
$args['author'] = $user->ID;
}
}else $args = array();
$args = apply_filters('cf7_2_post_filter_user_draft_form_query', $args, $mapper->post_properties['type'], $mapper->cf7_key);
$posts_array = get_posts( $args );
// debug_msg($args, "looking for posts.... found, ".sizeof($posts_array));
if(!empty($posts_array)){
$post = $posts_array[0];
$load_saved_values = true;
$field_and_values['map_post_id']= $post->ID;
wp_reset_postdata();
if(!empty($args)){
$posts_array = get_posts( $args );
// debug_msg($args, "looking for posts.... found, ".sizeof($posts_array));
if(!empty($posts_array)){
$post = $posts_array[0];
$load_saved_values = true;
$field_and_values['map_post_id']= $post->ID;
wp_reset_postdata();
}
}
//we now need to load the save meta field values
......@@ -1036,6 +1039,7 @@ class CF72Post_Mapping_Factory {
$html = '';
$select = '<option value="">'.__('Select a field','post-my-contact-form-7').'</option>'.PHP_EOL;
foreach($metas as $row){
if(empty(trim($row->meta_key))) continue; /** @since 5.4.6 */
if( 0=== strpos( $row->meta_key, '_') &&
/**
* filter plugin specific (internal) meta fields starting with '_'. By defaults these are skiupped by this plugin.
......
......@@ -798,10 +798,16 @@ abstract class Form_2_Post_Mapper {
'post_status'=> $post_status,
'post_title' => $post_title
);
$post_id = '';
/** @since 5.5 integrate Stripe payment */
$post_id = false;
if ( empty( $_POST['_wpcf7_stripe_payment_intent'] )) {
$post_id = get_transient( $_POST['_cf72post_nonce'] );
}
$is_update = false;
if(isset($_POST['_map_post_id']) && !empty($_POST['_map_post_id'])){
$post_id = $_POST['_map_post_id']; //this is an existing post being updated
}
if(!empty($post_id)){
$wp_post = get_post($post_id);
$post['post_status'] = $post_status;
$post['post_author'] = $wp_post->post_author;
......
......@@ -403,7 +403,7 @@ class Cf7_2_Post_Public {
}
/**
* Map author to hidden field on form load.
*
* Hooked to 'wpcf7_form_hidden_fields'
*@since 3.9.0
*@param array $param array of hidden fields
*@return array array of hidden fields
......
......@@ -18,11 +18,17 @@ use Nextend\Framework\Plugin;
/*
jQuery.getJSON('https://www.googleapis.com/webfonts/v1/webfonts?sort=alpha&key=AIzaSyBIzBtder0-ef5a6kX-Ri9IfzVwFu21PGw').done(function(data){
var f = [];
for(var i = 0; i < data.items.length; i++){
f.push(data.items[i].family);
}
console.log(JSON.stringify(f));
var f = [];
for(var i = 0; i < data.items.length; i++){
f.push(data.items[i].family);
}
var fontString='';
f.forEach(function(font){
fontString+= font+'\n';
});
console.log(fontString);
});
*/
......
......@@ -17,9 +17,9 @@ Alatsi
Aldrich
Alef
Alegreya
Alegreya SC
Alegreya Sans
Alegreya Sans SC
Alegreya SC
Aleo
Alex Brush
Alfa Slab One
......@@ -29,21 +29,22 @@ Alike Angular
Allan
Allerta
Allerta Stencil
Allison
Allura
Almarai
Almendra
Almendra Display
Almendra SC
Alumni Sans
Amarante
Amaranth
Amatic SC
Amatica SC
Amethysta
Amiko
Amiri
Amita
Anaheim
Andada
Andada Pro
Andika
Andika New Basic
Angkor
......@@ -61,6 +62,7 @@ Architects Daughter
Archivo
Archivo Black
Archivo Narrow
Are You Serious
Aref Ruqaa
Arima Madurai
Arimo
......@@ -78,6 +80,7 @@ Assistant
Astloch
Asul
Athiti
Atkinson Hyperlegible
Atma
Atomic Age
Aubrey
......@@ -89,31 +92,24 @@ Averia Gruesa Libre
Averia Libre
Averia Sans Libre
Averia Serif Libre
Azeret Mono
B612
B612 Mono
Bad Script
Bahiana
Bahianita
Bai Jamjuree
Bakbak One
Ballet
Baloo
Baloo 2
Baloo Bhai
Baloo Bhai 2
Baloo Bhaijaan
Baloo Bhaina
Baloo Bhaijaan 2
Baloo Bhaina 2
Baloo Chettan
Baloo Chettan 2
Baloo Da
Baloo Da 2
Baloo Paaji
Baloo Paaji 2
Baloo Tamma
Baloo Tamma 2
Baloo Tammudu
Baloo Tammudu 2
Baloo Thambi
Baloo Thambi 2
Balsamiq Sans
Balthazar
......@@ -128,7 +124,7 @@ Baskervville
Battambang
Baumans
Bayon
Be Vietnam
Be Vietnam Pro
Bebas Neue
Belgrano
Bellefair
......@@ -139,6 +135,7 @@ BenchNine
Benne
Bentham
Berkshire Swash
Besley
Beth Ellen
Bevan
Big Shoulders Display
......@@ -153,6 +150,8 @@ Bilbo
Bilbo Swash Caps
BioRhyme
BioRhyme Expanded
Birthstone
Birthstone Bounce
Biryani
Bitter
Black And White Picture
......@@ -163,6 +162,7 @@ Bodoni Moda
Bokor
Bona Nova
Bonbon
Bonheur Royale
Boogaloo
Bowlby One
Bowlby One SC
......@@ -196,6 +196,8 @@ Cantarell
Cantata One
Cantora One
Capriola
Caramel
Carattere
Cardo
Carme
Carrois Gothic
......@@ -219,6 +221,7 @@ Chau Philomene One
Chela One
Chelsea Market
Chenla
Cherish
Cherry Cream Soda
Cherry Swash
Chewy
......@@ -235,6 +238,8 @@ Codystar
Coiny
Combo
Comfortaa
Comforter
Comforter Brush
Comic Neue
Coming Soon
Commissioner
......@@ -246,6 +251,7 @@ Convergence
Cookie
Copse
Corben
Corinthia
Cormorant
Cormorant Garamond
Cormorant Infant
......@@ -261,13 +267,16 @@ Crafty Girls
Creepster
Crete Round
Crimson Pro
Crimson Text
Croissant One
Crushed
Cuprum
Cute Font
Cutive
Cutive Mono
DM Mono
DM Sans
DM Serif Display
DM Serif Text
Damion
Dancing Script
Dangrek
......@@ -287,31 +296,24 @@ Dhurjati
Didact Gothic
Diplomata
Diplomata SC
DM Mono
DM Sans
DM Serif Display
DM Serif Text
Do Hyeon
Dokdo
Domine
Donegal One
Dongle
Doppio One
Dorsa
Dosis
DotGothic16
Dr Sugiyama
Droid Sans
Droid Sans Mono
Droid Serif
Duru Sans
Dynalight
EB Garamond
Eagle Lake
East Sea Dokdo
Eater
EB Garamond
Economica
Eczar
Ek Mukta
El Messiri
Electrolize
Elsie
......@@ -327,14 +329,17 @@ Encode Sans Semi Expanded
Engagement
Englebert
Enriqueta
Ephesis
Epilogue
Erica One
Esteban
Estonia
Euphoria Script
Ewert
Exo
Exo 2
Expletus Sans
Explora
Fahkwang
Fanwood Text
Farro
......@@ -360,6 +365,10 @@ Fjalla One
Fjord One
Flamenco
Flavors
Fleur De Leah
Flow Block
Flow Circular
Flow Rounded
Fondamento
Fontdiner Swanky
Forum
......@@ -375,6 +384,9 @@ Frijole
Fruktur
Fugaz One
Fuggles
Fuzzy Bubbles
GFS Didot
GFS Neohellenic
Gabriela
Gaegu
Gafata
......@@ -384,14 +396,16 @@ Galindo
Gamja Flower
Gayathri
Gelasio
Gemunu Libre
Genos
Gentium Basic
Gentium Book Basic
Geo
Georama
Geostar
Geostar Fill
Germania One
GFS Didot
GFS Neohellenic
Gideon Roman
Gidugu
Gilda Display
Girassol
......@@ -399,6 +413,8 @@ Give You Glory
Glass Antiqua
Glegoo
Gloria Hallelujah
Glory
Gluten
Goblin One
Gochi Hand
Goldman
......@@ -406,21 +422,27 @@ Gorditas
Gothic A1
Gotu
Goudy Bookletter 1911
Gowun Batang
Gowun Dodum
Graduate
Grand Hotel
Grandstander
Gravitas One
Great Vibes
Grechen Fuemen
Grenze
Grenze Gotisch
Grey Qo
Griffy
Gruppo
Gudea
Gugi
Gupter
Gurajada
Gwendolyn
Habibi
Hachi Maru Pop
Hahmlet
Halant
Hammersmith One
Hanalei
......@@ -435,6 +457,7 @@ Henny Penny
Hepta Slab
Herr Von Muellerhoff
Hi Melody
Hina Mincho
Hind
Hind Guntur
Hind Madurai
......@@ -443,24 +466,32 @@ Hind Vadodara
Holtwood One SC
Homemade Apple
Homenaje
Ibarra Real Nova
Hurricane
IBM Plex Mono
IBM Plex Sans
IBM Plex Sans Arabic
IBM Plex Sans Condensed
IBM Plex Sans Devanagari
IBM Plex Sans Hebrew
IBM Plex Sans KR
IBM Plex Sans Thai
IBM Plex Sans Thai Looped
IBM Plex Serif
Iceberg
Iceland
IM Fell Double Pica
IM Fell Double Pica SC
IM Fell DW Pica
IM Fell DW Pica SC
IM Fell Double Pica
IM Fell Double Pica SC
IM Fell English
IM Fell English SC
IM Fell French Canon
IM Fell French Canon SC
IM Fell Great Primer
IM Fell Great Primer SC
Ibarra Real Nova
Iceberg
Iceland
Imbue
Imperial Script
Imprima
Inconsolata
Inder
......@@ -469,8 +500,10 @@ Inika
Inknut Antiqua
Inria Sans
Inria Serif
Inspiration
Inter
Irish Grover
Island Moments
Istok Web
Italiana
Italianno
......@@ -498,6 +531,10 @@ Just Another Hand
Just Me Again Down Here
K2D
Kadwa
Kaisei Decol
Kaisei HarunoUmi
Kaisei Opti
Kaisei Tokumin
Kalam
Kameron
Kanit
......@@ -516,12 +553,16 @@ Kenia
Khand
Khmer
Khula
Kings
Kirang Haerang
Kite One
Kiwi Maru
Klee One
Knewave
Kodchasan
KoHo
Kodchasan
Koh Santepheap
Kolker Brush
Kosugi
Kosugi Maru
Kotta One
......@@ -571,6 +612,7 @@ Libre Baskerville
Libre Caslon Display
Libre Caslon Text
Libre Franklin
Licorice
Life Savers
Lilita One
Lily Script One
......@@ -587,13 +629,20 @@ Londrina Sketch
Londrina Solid
Long Cang
Lora
Love Light
Love Ya Like A Sister
Loved by the King
Lovers Quarrel
Luckiest Guy
Lusitana
Lustria
Luxurious Roman
Luxurious Script
M PLUS 1
M PLUS 1 Code
M PLUS 1p
M PLUS 2
M PLUS Code Latin
M PLUS Rounded 1c
Ma Shan Zheng
Macondo
......@@ -625,12 +674,14 @@ Mate
Mate SC
Maven Pro
McLaren
Mea Culpa
Meddon
MedievalSharp
Medula One
Meera Inimai
Megrim
Meie Script
Meow Script
Merienda
Merienda One
Merriweather
......@@ -649,9 +700,12 @@ Miriam Libre
Mirza
Miss Fajardose
Mitr
Mochiy Pop One
Mochiy Pop P One
Modak
Modern Antiqua
Mogra
Mohave
Molengo
Molle
Monda
......@@ -659,10 +713,14 @@ Monofett
Monoton
Monsieur La Doulaise
Montaga
Montagu Slab
MonteCarlo
Montez
Montserrat
Montserrat Alternates
Montserrat Subrayada
Moo Lah Lah
Moon Dance
Moul
Moulpali
Mountains of Christmas
......@@ -676,10 +734,11 @@ Mukta
Mukta Mahee
Mukta Malar
Mukta Vaani
Muli
Mulish
Murecho
MuseoModerno
Mystery Quest
NTR
Nanum Brush Script
Nanum Gothic
Nanum Gothic Coding
......@@ -702,17 +761,189 @@ Nosifer
Notable
Nothing You Could Do
Noticia Text
Noto Kufi Arabic
Noto Music
Noto Naskh Arabic
Noto Nastaliq Urdu
Noto Rashi Hebrew
Noto Sans
Noto Sans Adlam
Noto Sans Adlam Unjoined
Noto Sans Anatolian Hieroglyphs
Noto Sans Arabic
Noto Sans Armenian
Noto Sans Avestan
Noto Sans Balinese
Noto Sans Bamum
Noto Sans Bassa Vah
Noto Sans Batak
Noto Sans Bengali
Noto Sans Bhaiksuki
Noto Sans Brahmi
Noto Sans Buginese
Noto Sans Buhid
Noto Sans Canadian Aboriginal
Noto Sans Carian
Noto Sans Caucasian Albanian
Noto Sans Chakma
Noto Sans Cham
Noto Sans Cherokee
Noto Sans Coptic
Noto Sans Cuneiform
Noto Sans Cypriot
Noto Sans Deseret
Noto Sans Devanagari
Noto Sans Display
Noto Sans Duployan
Noto Sans Egyptian Hieroglyphs
Noto Sans Elbasan
Noto Sans Elymaic
Noto Sans Georgian
Noto Sans Glagolitic
Noto Sans Gothic
Noto Sans Grantha
Noto Sans Gujarati
Noto Sans Gunjala Gondi
Noto Sans Gurmukhi
Noto Sans HK
Noto Sans Hanifi Rohingya
Noto Sans Hanunoo
Noto Sans Hatran
Noto Sans Hebrew
Noto Sans Imperial Aramaic
Noto Sans Indic Siyaq Numbers
Noto Sans Inscriptional Pahlavi
Noto Sans Inscriptional Parthian
Noto Sans JP
Noto Sans Javanese
Noto Sans KR
Noto Sans Kaithi
Noto Sans Kannada
Noto Sans Kayah Li
Noto Sans Kharoshthi
Noto Sans Khmer
Noto Sans Khojki
Noto Sans Khudawadi
Noto Sans Lao
Noto Sans Lepcha
Noto Sans Limbu
Noto Sans Linear A
Noto Sans Linear B
Noto Sans Lisu
Noto Sans Lycian
Noto Sans Lydian
Noto Sans Mahajani
Noto Sans Malayalam
Noto Sans Mandaic
Noto Sans Manichaean
Noto Sans Marchen
Noto Sans Masaram Gondi
Noto Sans Math
Noto Sans Mayan Numerals
Noto Sans Medefaidrin
Noto Sans Meetei Mayek
Noto Sans Meroitic
Noto Sans Miao
Noto Sans Modi
Noto Sans Mongolian
Noto Sans Mono
Noto Sans Mro
Noto Sans Multani
Noto Sans Myanmar
Noto Sans N Ko
Noto Sans Nabataean
Noto Sans New Tai Lue
Noto Sans Newa
Noto Sans Nushu
Noto Sans Ogham
Noto Sans Ol Chiki
Noto Sans Old Hungarian
Noto Sans Old Italic
Noto Sans Old North Arabian
Noto Sans Old Permic
Noto Sans Old Persian
Noto Sans Old Sogdian
Noto Sans Old South Arabian
Noto Sans Old Turkic
Noto Sans Oriya
Noto Sans Osage
Noto Sans Osmanya
Noto Sans Pahawh Hmong
Noto Sans Palmyrene
Noto Sans Pau Cin Hau
Noto Sans Phags Pa
Noto Sans Phoenician
Noto Sans Psalter Pahlavi
Noto Sans Rejang
Noto Sans Runic
Noto Sans SC
Noto Sans Samaritan
Noto Sans Saurashtra
Noto Sans Sharada
Noto Sans Shavian
Noto Sans Siddham
Noto Sans Sinhala
Noto Sans Sogdian
Noto Sans Sora Sompeng
Noto Sans Soyombo
Noto Sans Sundanese
Noto Sans Syloti Nagri
Noto Sans Symbols
Noto Sans Symbols 2
Noto Sans Syriac
Noto Sans TC
Noto Sans Tagalog
Noto Sans Tagbanwa
Noto Sans Tai Le
Noto Sans Tai Tham
Noto Sans Tai Viet
Noto Sans Takri
Noto Sans Tamil
Noto Sans Tamil Supplement
Noto Sans Telugu
Noto Sans Thaana
Noto Sans Thai
Noto Sans Thai Looped
Noto Sans Tifinagh
Noto Sans Tirhuta
Noto Sans Ugaritic
Noto Sans Vai
Noto Sans Wancho
Noto Sans Warang Citi
Noto Sans Yi
Noto Sans Zanabazar Square
Noto Serif
Noto Serif Ahom
Noto Serif Armenian
Noto Serif Balinese
Noto Serif Bengali
Noto Serif Devanagari
Noto Serif Display
Noto Serif Dogra
Noto Serif Ethiopic
Noto Serif Georgian
Noto Serif Grantha
Noto Serif Gujarati
Noto Serif Gurmukhi
Noto Serif Hebrew
Noto Serif JP
Noto Serif KR
Noto Serif Kannada
Noto Serif Khmer
Noto Serif Lao
Noto Serif Malayalam
Noto Serif Myanmar
Noto Serif Nyiakeng Puachue Hmong
Noto Serif SC
Noto Serif Sinhala
Noto Serif TC
Noto Serif Tamil
Noto Serif Tangut
Noto Serif Telugu
Noto Serif Thai
Noto Serif Tibetan
Noto Serif Yezidi
Noto Traditional Nushu
Nova Cut
Nova Flat
Nova Mono
......@@ -721,7 +952,6 @@ Nova Round
Nova Script
Nova Slim
Nova Square
NTR
Numans
Nunito
Nunito Sans
......@@ -731,8 +961,10 @@ Offside
Oi
Old Standard TT
Oldenburg
Ole
Oleo Script
Oleo Script Swash Caps
Oooh Baby
Open Sans
Open Sans Condensed
Oranienbaum
......@@ -743,6 +975,7 @@ Orienta
Original Surfer
Oswald
Otomanopee One
Outfit
Over the Rainbow
Overlock
Overlock SC
......@@ -752,15 +985,23 @@ Ovo
Oxanium
Oxygen
Oxygen Mono
PT Mono
PT Sans
PT Sans Caption
PT Sans Narrow
PT Serif
PT Serif Caption
Pacifico
Padauk
Palanquin
Palanquin Dark
Palette Mosaic
Pangolin
Paprika
Parisienne
Passero One
Passion One
Passions Conflict
Pathway Gothic One
Patrick Hand
Patrick Hand SC
......@@ -771,6 +1012,7 @@ Paytone One
Peddana
Peralta
Permanent Marker
Petemoss
Petit Formal Script
Petrona
Philosopher
......@@ -795,6 +1037,7 @@ Port Lligat Sans
Port Lligat Slab
Potta One
Pragati Narrow
Praise
Prata
Preahvihear
Press Start 2P
......@@ -804,13 +1047,8 @@ Prociono
Prompt
Prosto One
Proza Libre
PT Mono
PT Sans
PT Sans Caption
PT Sans Narrow
PT Serif
PT Serif Caption
Public Sans
Puppies Play
Puritan
Purple Purse
Qahiri
......@@ -822,6 +1060,7 @@ Questrial
Quicksand
Quintessential
Qwigley
Qwitcher Grypen
Racing Sans One
Radley
Rajdhani
......@@ -832,16 +1071,21 @@ Ramabhadra
Ramaraja
Rambla
Rammetto One
Rampart One
Ranchers
Rancho
Ranga
Rasa
Rationale
Ravi Prakash
Readex Pro
Recursive
Red Hat Display
Red Hat Mono
Red Hat Text
Red Rose
Redacted
Redacted Script
Redressed
Reem Kufi
Reenie Beanie
......@@ -852,11 +1096,13 @@ Ribeye
Ribeye Marrow
Righteous
Risque
Road Rage
Roboto
Roboto Condensed
Roboto Mono
Roboto Slab
Rochester
Rock 3D
Rock Salt
RocknRoll One
Rokkitt
......@@ -868,8 +1114,8 @@ Rouge Script
Rowdies
Rozha One
Rubik
Rubik Beastly
Rubik Mono One
Rubik One
Ruda
Rufina
Ruge Boogie
......@@ -879,6 +1125,7 @@ Ruslan Display
Russo One
Ruthie
Rye
STIX Two Text
Sacramento
Sahitya
Sail
......@@ -891,17 +1138,17 @@ Salsa
Sanchez
Sancreek
Sansita
Sansita One
Sansita Swashed
Sarabun
Sarala
Sarina
Sarpanch
Sassy Frass
Satisfy
Sawarabi Gothic
Sawarabi Mincho
Scada
Scheherazade
Scheherazade New
Schoolbell
Scope One
Seaweed Script
......@@ -913,12 +1160,16 @@ Sevillana
Seymour One
Shadows Into Light
Shadows Into Light Two
Shalimar
Shanti
Share
Share Tech
Share Tech Mono
Shippori Antique
Shippori Antique B1
Shippori Mincho
Shippori Mincho B1
Shizuru
Shojumaru
Short Stack
Shrikhand
......@@ -936,6 +1187,7 @@ Slabo 13px
Slabo 27px
Slackey
Smokum
Smooch
Smythe
Sniglet
Snippet
......@@ -948,7 +1200,9 @@ Sonsie One
Sora
Sorts Mill Goudy
Source Code Pro
Source Sans 3
Source Sans Pro
Source Serif 4
Source Serif Pro
Space Grotesk
Space Mono
......@@ -959,6 +1213,7 @@ Spectral SC
Spicy Rice
Spinnaker
Spirax
Spline Sans
Squada One
Sree Krushnadevaraya
Sriracha
......@@ -968,11 +1223,12 @@ Stalemate
Stalinist One
Stardos Stencil
Stick
Stick No Bills
Stint Ultra Condensed
Stint Ultra Expanded
STIX Two Math
Stoke
Strait
Style Script
Stylish
Sue Ellen Francisco
Suez One
......@@ -1003,6 +1259,7 @@ Text Me One
Texturina
Thasadith
The Girl Next Door
The Nautigal
Tienne
Tillana
Timmana
......@@ -1021,6 +1278,7 @@ Truculenta
Trykker
Tulpen One
Turret Road
Twinkle Star
Ubuntu
Ubuntu Condensed
Ubuntu Mono
......@@ -1034,6 +1292,8 @@ UnifrakturMaguntia
Unkempt
Unlock
Unna
Urbanist
VT323
Vampiro One
Varela
Varela Round
......@@ -1050,16 +1310,19 @@ Volkhov
Vollkorn
Vollkorn SC
Voltaire
VT323
Vujahday Script
Waiting for the Sunrise
Wallpoet
Walter Turncoat
Warnes
Waterfall
Wellfleet
Wendy One
WindSong
Wire One
Work Sans
Xanh Mono
Yaldevi
Yanone Kaffeesatz
Yantramanav
Yatra One
......@@ -1069,14 +1332,25 @@ Yeseva One
Yesteryear
Yomogi
Yrsa
Yuji Boku
Yuji Hentaigana Akari
Yuji Hentaigana Akebono
Yuji Mai
Yuji Syuku
Yusei Magic
ZCOOL KuaiLe
ZCOOL QingKe HuangYou
ZCOOL XiaoWei
Zen Antique
Zen Antique Soft
Zen Dots
Zen Kaku Gothic Antique
Zen Kaku Gothic New
Zen Kurenaido
Zen Loop
Zen Maru Gothic
Zen Old Mincho
Zen Tokyo Zoo
Zeyad
Zeyada
Zhi Mang Xing
Zilla Slab
......
......@@ -97,6 +97,9 @@ class ImageEdit {
}
$extension = 'png';
break;
case IMAGETYPE_WEBP:
$extension = 'webp';
break;
}
if (!$extension) {
return $originalImageUrl;
......@@ -142,6 +145,9 @@ class ImageEdit {
$image = $rotated;
}
}
} else if ($extension == 'webp') {
//@TODO: should we need to care about rotation?
$image = @imagecreatefromwebp($imagePath);
}
if (isset($image) && $image) {
......@@ -159,6 +165,10 @@ class ImageEdit {
imagepng($image, $targetFile);
} else if ($extension == 'jpg') {
imagejpeg($image, $targetFile, $quality);
} else if ($extension == 'webp') {
imagesavealpha($image, true);
imagealphablending($image, false);
imagewebp($image, $targetFile, $quality);
}
imagedestroy($image);
......@@ -173,7 +183,7 @@ class ImageEdit {
}
if ($rotated || $originalWidth != $targetWidth || $originalHeight != $targetHeight) {
$newImage = imagecreatetruecolor($targetWidth, $targetHeight);
if ($extension == 'png') {
if ($extension == 'png' || $extension == 'webp') {
imagesavealpha($newImage, true);
imagealphablending($newImage, false);
$transparent = imagecolorallocatealpha($newImage, 255, 255, 255, 127);
......@@ -199,6 +209,8 @@ class ImageEdit {
imagepng($newImage, $targetFile);
} else if ($extension == 'jpg') {
imagejpeg($newImage, $targetFile, $quality);
} else if ($extension == 'webp') {
imagewebp($newImage, $targetFile, $quality);
}
imagedestroy($newImage);
......@@ -272,6 +284,9 @@ class ImageEdit {
}
$extension = 'png';
break;
case IMAGETYPE_WEBP:
$extension = 'webp';
break;
}
if (!$extension) {
return $originalImageUrl;
......@@ -311,6 +326,9 @@ class ImageEdit {
$image = $rotated;
}
}
} else if ($extension == 'webp') {
//@TODO: should we need to care about rotation?
$image = @imagecreatefromwebp($imagePath);
}
if ($image) {
......@@ -320,7 +338,7 @@ class ImageEdit {
$targetHeight = $originalHeight * $scale;
if ((isset($rotated) && $rotated) || $originalWidth != $targetWidth || $originalHeight != $targetHeight) {
$newImage = imagecreatetruecolor($targetWidth, $targetHeight);
if ($extension == 'png') {
if ($extension == 'png' || $extension == 'webp') {
imagesavealpha($newImage, true);
imagealphablending($newImage, false);
$transparent = imagecolorallocatealpha($newImage, 255, 255, 255, 127);
......@@ -342,6 +360,8 @@ class ImageEdit {
imagepng($newImage, $targetFile);
} else if ($extension == 'jpg') {
imagejpeg($newImage, $targetFile, $quality);
} else if ($extension == 'webp') {
imagewebp($newImage, $targetFile, $quality);
}
imagedestroy($newImage);
......@@ -414,6 +434,7 @@ class ImageEdit {
'jpg' => 'jpg',
'jpeg' => 'jpg',
'gif' => 'gif',
'webp' => 'webp',
'svg' => 'svg'
);
$extension = strtolower($extension);
......@@ -546,6 +567,9 @@ class ImageEdit {
case IMAGETYPE_PNG:
$extension = 'png';
break;
case IMAGETYPE_WEBP:
$extension = 'webp';
break;
}
if (!$extension) {
return $originalImageUrl;
......@@ -595,6 +619,14 @@ class ImageEdit {
$image = $rotated;
}
}
} else if ($extension == 'webp') {
//@TODO: should we need to care about rotation?
$image = @imagecreatefromwebp($imagePath);
if (!imageistruecolor($image)) {
imagepalettetotruecolor($image);
imagealphablending($image, true);
imagesavealpha($image, true);
}
}
if ($image) {
......
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2021-10-16 08:50+0200\n"
"PO-Revision-Date: 2021-11-02 14:26+0100\n"
"POT-Creation-Date: 2021-11-16 15:36+0100\n"
"PO-Revision-Date: 2021-11-16 18:37+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
......@@ -1456,6 +1456,9 @@ msgstr ""
msgid "JavaScript callbacks"
msgstr "Callbacks JavaScript"
msgid "Loading animation waiting time"
msgstr "Tiempo de espera de animación de pre-carga"
msgid "Post IDs"
msgstr "ID del artículo"
......@@ -1804,7 +1807,7 @@ msgid "Cache variations"
msgstr "Variaciones del cache"
msgid "Reverse"
msgstr "Reverso"
msgstr "Orden inverso"
msgid "You can make your slides appear in the slider in a reversed order."
msgstr "Puedes hacer que tu slides aparezcan en un orden inverso."
......@@ -3861,13 +3864,6 @@ msgstr "Cuando no esté visible"
msgid "You can pause the video when the visitor scrolls away from the slider"
msgstr "Puedes pausar el video cuando el usuario se desplaza fuera del slider"
msgid "Private video"
msgstr "Video privado"
msgid ""
"Turn it on to remove the admin warning that your video is not accessible."
msgstr "Actívalo para ocultar la advertencia si el video no se puede acceder."
msgid "Display"
msgstr "Pantalla"
......@@ -5695,6 +5691,12 @@ msgstr "Limite de submenu"
msgid "No limit"
msgstr "Sin límite"
msgid "Hide empty categories"
msgstr "Ocultar categorías vacías"
msgid "Yes"
msgstr "Si"
msgid "Downloadable"
msgstr "Descargable"
......@@ -6102,6 +6104,77 @@ msgstr "Antes de"
msgid "Animation duration"
msgstr "Duración de la animación"
msgid "Countdown"
msgstr "Contador"
msgid "Days"
msgstr "Días"
msgid "Hours"
msgstr "Horas"
msgid "Minutes"
msgstr "Minutos"
msgid "Seconds"
msgstr "Segundos"
msgid "Use slide schedule"
msgstr "Usar fecha del slide"
msgid "You can use the \"Unpublished on\" date of the slide itself."
msgstr "Puedes usar la opción \"Despublicar en\" del propio slide."
msgid "Use Slide Schedule"
msgstr "Usar fecha del slide"
msgid "Go to Slide → Content tab and set the Unpublish on date for the slide."
msgstr ""
"Para establecer una fecha para despublicar el slide deber ir a Slide > "
"Contenido."
msgid ""
"Displays the days, hours, minutes and seconds texts under the counter "
"numbers. To display the labels in your own language, translate the texts in "
"the language files."
msgstr ""
"Muestra el texto \"Días\", \"Horas\", \"Minutos\" y \"Segundos\" debajo de "
"los números del contador."
msgid "Gap"
msgstr "Espaciado"
msgid "Creates vertical and horizontal distance between the counter elements."
msgstr ""
"Crea un espacio vertical u horizontal entre los elementos del contador."
msgid "Tablet style"
msgstr "Estilo para tableta"
msgid "Set custom Gap and Column for tablet."
msgstr "Fija el espaciado y la columna para tabletas."
msgid "Mobile style"
msgstr "Estilo para móvil"
msgid "Set custom Gap and Column for mobile."
msgstr "Fija el espaciado y la columna para dispositivos móviles."
msgid "Action when ends"
msgstr "Acción cuando finaliza"
msgid "No action"
msgstr "No hacer nada"
msgid "Hide layer"
msgstr "Ocultar capa"
msgid "Redirect to URL"
msgstr "Redirigir a la URL"
msgid "Choose what happens after the counter reached zero."
msgstr "Selecciona lo que ocurre cuando el contador alcanza el cero."
msgid "Circle 1"
msgstr "Círculo 1"
......@@ -6321,9 +6394,6 @@ msgstr ""
msgid "iframe url"
msgstr "url iframe"
msgid "Yes"
msgstr "Si"
msgid "You can disable the scroll on the iframe content."
msgstr "Puedes desactivar el desplazamiento para el contenido del iframe."
......@@ -6691,6 +6761,14 @@ msgstr "Color de la pista"
msgid "Bar color"
msgstr "Color de la barra"
#~ msgid "Private video"
#~ msgstr "Video privado"
#~ msgid ""
#~ "Turn it on to remove the admin warning that your video is not accessible."
#~ msgstr ""
#~ "Actívalo para ocultar la advertencia si el video no se puede acceder."
#~ msgctxt "Default Google font charset for admin"
#~ msgid "latin"
#~ msgstr "latín"
......@@ -6891,9 +6969,6 @@ msgstr "Color de la barra"
#~ "visible cuando el navegador cargar el slider. En la mayoría de los casos "
#~ "esto no sugerimos desactivar <b>Desvanecer al cargar</b>."
#~ msgid "Loading animation"
#~ msgstr "Animación de pre-carga"
#~ msgid "Spinner"
#~ msgstr "Spinner"
......@@ -6935,12 +7010,6 @@ msgstr "Color de la barra"
#~ msgid "Optimize layer images"
#~ msgstr "Optimizar imágenes de capa"
#~ msgid "Tablet scale"
#~ msgstr "Escala en tableta"
#~ msgid "Mobile scale"
#~ msgstr "Escala móvil"
#~ msgid "Adaptive"
#~ msgstr "Adaptativo"
......
......@@ -2,19 +2,19 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2021-11-11 15:39+0100\n"
"POT-Creation-Date: 2022-01-13 13:55+0100\n"
"PO-Revision-Date: 2020-03-10 19:30+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: ;n2_;n2_e;n2_n:1,2;n2_en:1,2;n2_x:1,2c;n2_ex:1,2c\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: en\n"
"X-Poedit-Flags-xgettext: --no-location\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: Framework/Asset/Builder/cache\n"
......@@ -1076,13 +1076,19 @@ msgstr ""
msgid "Set"
msgstr ""
msgid "Up"
msgid "Edit"
msgstr ""
msgid "Insert group"
msgid "Group"
msgstr ""
msgid "Group"
msgid "Edit slider"
msgstr ""
msgid "Up"
msgstr ""
msgid "Insert group"
msgstr ""
msgid "Move to trash"
......@@ -1127,6 +1133,24 @@ msgstr ""
msgid "delete this slide"
msgstr ""
msgid "Max width"
msgstr ""
msgid "Margin"
msgstr ""
msgid "top"
msgstr ""
msgid "right"
msgstr ""
msgid "bottom"
msgstr ""
msgid "left"
msgstr ""
msgid "Animations"
msgstr ""
......@@ -1446,9 +1470,6 @@ msgstr ""
msgid "Align"
msgstr ""
msgid "Margin"
msgstr ""
msgid "Puts a fix margin around your slider."
msgstr ""
......@@ -1956,9 +1977,6 @@ msgstr ""
msgid "Color end"
msgstr ""
msgid "Max width"
msgstr ""
msgid "Position"
msgstr ""
......@@ -2262,9 +2280,6 @@ msgstr ""
msgid "Scale down"
msgstr ""
msgid "Edit"
msgstr ""
msgid "Static overlay"
msgstr ""
......@@ -2316,7 +2331,7 @@ msgstr ""
msgid "Drop images here"
msgstr ""
msgid "Edit slider"
msgid "Search Project"
msgstr ""
msgid "View trash"
......@@ -2343,9 +2358,29 @@ msgstr ""
msgid "Export"
msgstr ""
msgid "Show"
msgstr ""
#, php-format
msgid "Showing %s to %s of %s projects"
msgstr ""
msgid "No projects to show"
msgstr ""
msgid "New project"
msgstr ""
msgid "Sorry we couldn’t find any matches"
msgstr ""
msgid "Please try searching with another term."
msgstr ""
#, php-format
msgid "Showing %s results for %s."
msgstr ""
msgid "Module"
msgstr ""
......@@ -4338,6 +4373,9 @@ msgstr ""
msgid "Fan 3"
msgstr ""
msgid "Fan 4"
msgstr ""
msgid "Hills"
msgstr ""
......@@ -4380,6 +4418,24 @@ msgstr ""
msgid "Waves"
msgstr ""
msgid "Columns 1"
msgstr ""
msgid "Columns 2"
msgstr ""
msgid "Paper 1"
msgstr ""
msgid "Paper 2"
msgstr ""
msgid "Paper 3"
msgstr ""
msgid "Paper 4"
msgstr ""
msgid "2 Colors"
msgstr ""
......@@ -5067,6 +5123,12 @@ msgstr ""
msgid "No limit"
msgstr ""
msgid "Hide empty categories"
msgstr ""
msgid "Yes"
msgstr ""
msgid "Downloadable"
msgstr ""
......@@ -5463,6 +5525,69 @@ msgstr ""
msgid "Animation duration"
msgstr ""
msgid "Countdown"
msgstr ""
msgid "Days"
msgstr ""
msgid "Hours"
msgstr ""
msgid "Minutes"
msgstr ""
msgid "Seconds"
msgstr ""
msgid "Use slide schedule"
msgstr ""
msgid "You can use the \"Unpublished on\" date of the slide itself."
msgstr ""
msgid "Use Slide Schedule"
msgstr ""
msgid "Go to Slide → Content tab and set the Unpublish on date for the slide."
msgstr ""
msgid "Displays the days, hours, minutes and seconds texts under the counter numbers. To display the labels in your own language, translate the texts in the language files."
msgstr ""
msgid "Gap"
msgstr ""
msgid "Creates vertical and horizontal distance between the counter elements."
msgstr ""
msgid "Tablet style"
msgstr ""
msgid "Set custom Gap and Column for tablet."
msgstr ""
msgid "Mobile style"
msgstr ""
msgid "Set custom Gap and Column for mobile."
msgstr ""
msgid "Action when ends"
msgstr ""
msgid "No action"
msgstr ""
msgid "Hide layer"
msgstr ""
msgid "Redirect to URL"
msgstr ""
msgid "Choose what happens after the counter reached zero."
msgstr ""
msgid "Circle 1"
msgstr ""
......@@ -5662,9 +5787,6 @@ msgstr ""
msgid "iframe url"
msgstr ""
msgid "Yes"
msgstr ""
msgid "You can disable the scroll on the iframe content."
msgstr ""
......
......@@ -36,7 +36,8 @@ abstract class AbstractControllerAdmin extends AbstractAdminController {
'exportAllUrl' => $this->getUrlDashboardExportAll($groupID),
'ajaxUrl' => $this->getAjaxUrlSlidesCreate(),
'previewUrl' => $this->getUrlPreviewIndex(0),
'importUrl' => $this->getUrlImport($groupID)
'importUrl' => $this->getUrlImport($groupID),
'paginationUrl' => $this->getUrlPaginator()
);
Js::addInline("new _N2.ManageSliders('" . $groupID . "', " . json_encode($options) . ", " . json_encode(SmartSlider3Info::shouldSkipLicenseModal()) . ");");
......
......@@ -53,6 +53,10 @@ class SliderAnimations extends AbstractSliderTab {
}
protected function layerAnimations() {
/**
* Used for field removal: /animations/layer-animations
*/
}
protected function layerParallax() {
......
<?php
\Nextend\Framework\Localization\Localization::addJS(array("%s or newer required for this feature.","Above %s pixels.","Action","Activate","Activate Smart Slider 3 Pro","Activation is required to unlock all features!","Add animation","Add keyframe","Add Layer","Add post","Adjust","Advanced","Align (Absolute)","All layers, all devices","All layers, current device","An event you use to trigger layer animation(s) with","Animated heading","Animation","Animation tab","Are you sure?","Area","Arrows","Audio","Auto","Autoplay duration","Backward","Before After","Below %s pixels.","Between %s and %s pixels.","Block","Bottom","Boxed","Button","Cancel","Caption","Carousel","Center","Change group","Change slider type","Changing your slider type is irreversible. After changing your slider type, <b>you will lose all slider type related settings</b>.","Child layers","Choose folder","Choose images","Circle counter","Clean HTML","Clear device specific settings","Clear guides","Close","Column","Content","Content List - One Per Line","Content tab","Convert","Convert to slide","Copy","Copy slide to","Counter","Create","Create a New Project","Create group","Create new project","Current layer, all devices","Current layer, current device","Current path","Dashboard","Data","Delete","Delete permanently","delete these slides","delete this slide","delete this slider","Deleted.","Desktop","Direction","Disabled","Done","Drop files here","Duplicate","Edit","Edit generator","Edit Slider","Editor settings","Empty","empty the trash","Enabled","Event name","Examples","Filter","Find image","Find link","Forward","Full page","Full width","General","Go Pro","Go to slide","Go to slide ID","Got it","Group","Group created","Group name","Groups","Guide settings","Heading","Height","Hide on","Highlighted heading","HTML","Icon","Icon not found","Icons","Iframe","Image","Image area","Image box","Image field can not be empty!","Input","Insert","Insert a slider into your content","Insert group","Join more than 120,000 subscribers and get access to the latest slider templates, tips, tutorials and other exclusive contents directly to your inbox.","Join The Smart Slider 3 Community","Joomla module","Keyboard shortcuts","Keyframe","Landscape","Laptop","Large desktop","Large mobile","Large tablet","Layer","Layer Animation - Basic","Layer Animation - Reveal","Layer design options affect every device. If you need to make responsive adjustments, look for the options with the device icon.","Layer List","Layer(s)","Layout","Left","Lightbox","List","Load style","Loop","Loops %s and returns to starting slide.","Loops %s and stops before starting slide.","Middle","Mobile","Move (Absolute)","Move to trash","My project","Name","Next slide","No","No file selected.","Notice","Numeric keys","Off","On","Oops, Something Went Wrong","Open docs","Open/Close","or import your own files","Orientation","Outer %s","Overwrite preset","Parent","Parent directory","Paste","Pick the align point of the child layer!","Pick the align point of the parent layer!","Pick the parent layer!","Play animations","Please fill the name field!","Please select a Post first!","Portrait","Posts","Preset","Preset deleted.","Preset saved.","Preview","Previous slide","Pro","Progress bar","Project type","Publish","Records","Redo","Register Smart Slider 3 Pro on this domain to enable auto update, slider templates and slide library.","Remove animations","Remove HTML","Remove line breaks","Remove links","Rename","Reset style to default","Respect words","Result","Right","Round to 5px","Row","Ruler","Save","Save as","Save as New","Save style as new preset","Saved.","Scroll to","Scroll to alias","Scrolls to the bottom of the page.","Scrolls to the top of the page.","Search","Search keyword","Select","Select A Slider","Select image","Select Slider","Select the slider you want to insert.","Set","Set as first","Settings","Show/Hide in editor","Showcase","Simple","Size","Skip","Slide","Slide event","Slide height","Slide ID","Slide index","slide index: 2 %s direction: backward","slide index: 5 %s direction: forward","Slide title","Slide width","Slider","Slider alias","Slider alias set at Slider settings > General","Slider type","Smart Slider 3 activated!","Smart snap","Special Zero","Split by Chars","Start a new project from scratch and build exactly what you’ve imagined. You can easily customize every pixels and create anything with layers.","Start with a Template","Start with a template and make it your own with the innovative drag and drop interface. You can choose from hundreds of premade templates.","Static","Strict","Style tab","Subscribe","Success","Switches %s slide(s).","Switches to the %s. slide.","Switches to the fifth slide as if the next arrow was pressed","Switches to the second slide as if the previous arrow was pressed","Switches to the slide with the #2 ID as if the previous arrow was pressed","Switches to the slide with the #5 ID as if the next arrow was pressed","Tablet","Text","Text animation in","Text animation out","The changes you made will be lost if you navigate away from this page.","The deletion is irreversible, and it's not possible to recover %s.","The image is empty","Theme","There is no layer available to be parent of the current layer!","This block is not available in the free version. %s","This section requires activated Pro version.","This slide is hidden on the following devices: %s","Timeline","Titles - One Per Line","Top","Top and bottom","Transition","Undo","Unexpected response","Unpublish","Up","Upgrade to Pro","URL","Use default selector","Use Joomla selector","Use our powerful visual editor, or simply import one of our existing template.","Video","View","What do you want to create today?","Width","You can use any jQuery selector to scroll to a specific element on the page. Example: \"#pricing\" scrolls to the element with the id of \"pricing\".","You can use presets to save style settings for later use. Clicking on any preset will load its styling to your current layer, and the previous style settings will be lost.","You have not created any presets for this layer yet.","You're about to %s. "));
\ No newline at end of file
\Nextend\Framework\Localization\Localization::addJS(array("%s or newer required for this feature.","Above %s pixels.","Action","Activate","Activate Smart Slider 3 Pro","Activation is required to unlock all features!","Add animation","Add keyframe","Add Layer","Add post","Adjust","Advanced","Align (Absolute)","All layers, all devices","All layers, current device","An event you use to trigger layer animation(s) with","Animated heading","Animation","Animation tab","Are you sure?","Area","Arrows","Audio","Auto","Autoplay duration","Backward","Before After","Below %s pixels.","Between %s and %s pixels.","Block","bottom","Bottom","Boxed","Button","Cancel","Caption","Carousel","Center","Change group","Change slider type","Changing your slider type is irreversible. After changing your slider type, <b>you will lose all slider type related settings</b>.","Child layers","Choose folder","Choose images","Circle counter","Clean HTML","Clear device specific settings","Clear guides","Close","Column","Content","Content List - One Per Line","Content tab","Convert","Convert to slide","Copy","Copy slide to","Countdown","Counter","Create","Create a New Project","Create group","Create new project","Current layer, all devices","Current layer, current device","Current path","Dashboard","Data","Days","Delete","Delete permanently","delete these slides","delete this slide","delete this slider","Deleted.","Desktop","Direction","Disabled","Done","Drop files here","Duplicate","Edit","Edit generator","Edit slider","Edit Slider","Editor settings","Empty","empty the trash","Enabled","Event name","Examples","Filter","Find image","Find link","Forward","Full page","Full width","General","Go Pro","Go to slide","Go to slide ID","Got it","Group","Group created","Group name","Groups","Guide settings","Heading","Height","Hide on","Highlighted heading","Hours","HTML","Icon","Icon not found","Icons","Iframe","Image","Image area","Image box","Image field can not be empty!","Input","Insert","Insert a slider into your content","Insert group","Join more than 120,000 subscribers and get access to the latest slider templates, tips, tutorials and other exclusive contents directly to your inbox.","Join The Smart Slider 3 Community","Joomla module","Keyboard shortcuts","Keyframe","Landscape","Laptop","Large desktop","Large mobile","Large tablet","Layer","Layer Animation - Basic","Layer Animation - Reveal","Layer design options affect every device. If you need to make responsive adjustments, look for the options with the device icon.","Layer List","Layer(s)","Layout","left","Left","Lightbox","List","Load style","Loop","Loops %s and returns to starting slide.","Loops %s and stops before starting slide.","Margin","Max width","Middle","Minutes","Mobile","Move (Absolute)","Move to trash","My project","Name","Next slide","No","No file selected.","None","Notice","Numeric keys","Off","On","Oops, Something Went Wrong","Open docs","Open/Close","or import your own files","Orientation","Outer %s","Overwrite preset","Padding","Parent","Parent directory","Paste","Pick the align point of the child layer!","Pick the align point of the parent layer!","Pick the parent layer!","Play animations","Please fill the name field!","Please select a Post first!","Portrait","Posts","Preset","Preset deleted.","Preset saved.","Preview","Previous slide","Pro","Progress bar","Project type","Publish","Records","Redo","Register Smart Slider 3 Pro on this domain to enable auto update, slider templates and slide library.","Remove animations","Remove HTML","Remove line breaks","Remove links","Rename","Reset style to default","Respect words","Result","right","Right","Round to 5px","Row","Ruler","Save","Save as","Save as New","Save style as new preset","Saved.","Scroll to","Scroll to alias","Scrolls to the bottom of the page.","Scrolls to the top of the page.","Search","Search keyword","Seconds","Select","Select A Slider","Select image","Select Slider","Select the slider you want to insert.","Set","Set as first","Settings","Show/Hide in editor","Showcase","Simple","Size","Skip","Slide","Slide event","Slide height","Slide ID","Slide index","slide index: 2 %s direction: backward","slide index: 5 %s direction: forward","Slide title","Slide width","Slider","Slider alias","Slider alias set at Slider settings > General","Slider type","Smart Slider 3 activated!","Smart snap","Special Zero","Split by Chars","Start a new project from scratch and build exactly what you’ve imagined. You can easily customize every pixels and create anything with layers.","Start with a Template","Start with a template and make it your own with the innovative drag and drop interface. You can choose from hundreds of premade templates.","Static","Strict","Style tab","Subscribe","Success","Switches %s slide(s).","Switches to the %s. slide.","Switches to the fifth slide as if the next arrow was pressed","Switches to the second slide as if the previous arrow was pressed","Switches to the slide with the #2 ID as if the previous arrow was pressed","Switches to the slide with the #5 ID as if the next arrow was pressed","Tablet","Text","Text animation in","Text animation out","The changes you made will be lost if you navigate away from this page.","The deletion is irreversible, and it's not possible to recover %s.","The image is empty","Theme","There is no layer available to be parent of the current layer!","This block is not available in the free version. %s","This section requires activated Pro version.","This slide is hidden on the following devices: %s","Timeline","Titles - One Per Line","top","Top","Top and bottom","Transition","Undo","Unexpected response","Unpublish","Up","Upgrade to Pro","URL","Use default selector","Use Joomla selector","Use our powerful visual editor, or simply import one of our existing template.","Video","View","What do you want to create today?","Width","You can use any jQuery selector to scroll to a specific element on the page. Example: \"#pricing\" scrolls to the element with the id of \"pricing\".","You can use presets to save style settings for later use. Clicking on any preset will load its styling to your current layer, and the previous style settings will be lost.","You have not created any presets for this layer yet.","You're about to %s. "));
\ No newline at end of file
......
......@@ -10,9 +10,18 @@ class AbstractButtonLabel extends AbstractButton {
protected $icon = '';
protected $iconBefore = "";
protected $iconBeforeClass = "";
protected function getContent() {
$content = '';
$content = '<span class="' . $this->baseClass . '__label">' . $this->getLabel() . '</span>';
if (!empty($this->iconBefore)) {
$content .= '<i class="' . $this->iconBefore . ' ' . $this->itemBeforeClass . '"></i>';
}
$content .= '<span class="' . $this->baseClass . '__label">' . $this->getLabel() . '</span>';
if (!empty($this->icon)) {
$content .= '<i class="' . $this->icon . '"></i>';
......@@ -41,4 +50,14 @@ class AbstractButtonLabel extends AbstractButton {
public function setIcon($icon) {
$this->icon = $icon;
}
/**
* @param string $icon
* @param string $extraClass
*/
public function setIconBefore($icon, $extraClass = "") {
$this->iconBefore = $icon;
$this->itemBeforeClass = $extraClass;
}
}
\ No newline at end of file
......
......@@ -222,7 +222,6 @@ class LayerWindowSettingsSlide extends AbstractLayerWindowSettings {
'layerslide-backgroundImageBlur',
'layerslide-backgroundMode',
'layerslide-background-notice-image',
'layerslide-backgroundBlurFit'
)
);
$fieldImage = new FieldImageResponsive($rowImage, 'slide-backgroundImage', n2_('Slide background'), '', $slideBackgroundAttr);
......@@ -259,10 +258,10 @@ class LayerWindowSettingsSlide extends AbstractLayerWindowSettings {
)
));
new NumberSlider($rowImage, 'slide-backgroundBlurFit', n2_('Background blur'), 7, array(
'unit' => 'px',
'min'=> 7,
'max' => 50,
'wide'=>3
'unit' => 'px',
'min' => 7,
'max' => 50,
'wide' => 3
));
new NumberSlider($rowImage, 'slide-backgroundImageOpacity', n2_('Opacity'), 100, array(
......
......@@ -92,6 +92,14 @@ class BlockSliderBox extends AbstractBlock {
/**
* @return int
*/
public function getOrdering() {
return $this->slider['ordering'];
}
/**
* @return int
*/
public function getGroupID() {
return $this->groupID;
}
......
......@@ -12,7 +12,8 @@ use Nextend\Framework\Sanitize;
<div class="n2_slider_manager__box n2_slider_box<?php echo $this->isGroup() ? ' n2_slider_box--group' : ' n2_slider_box--slider'; ?>"
data-group="<?php echo $this->isGroup() ? '1' : '0'; ?>"
data-title="<?php echo Sanitize::esc_attr($this->getSliderTitle()); ?>"
data-sliderid="<?php echo $this->getSliderID(); ?>">
data-sliderid="<?php echo $this->getSliderID(); ?>"
data-ordering="<?php echo $this->getOrdering(); ?>">
<?php
$thumbnailUrl = Sanitize::esc_attr($this->getThumbnail());
......
......@@ -12,15 +12,28 @@ namespace Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderManag
$this->displayOrderBy();
$this->displayBulkActions();
$this->displayCreateGroup();
$this->displayTrash();
$this->displayBulkActions();
?>
</div>
<div class="n2_slider_manager__action_bar_right">
<?php
$this->displayTrash();
?>
<?php if ($this->sliderManager->getGroupID() == 0) { ?>
<div class="n2_slider_manager__search">
<div class="n2_slider_manager__search_icon n2_slider_manager__search_icon--magnifier">
<i class="ssi_16 ssi_16--magnifier"></i>
</div>
<div class="n2_slider_manager__search_icon n2_slider_manager__search_icon--abort">
<i class="ssi_16 ssi_16--circularremove"></i>
</div>
<form class="n2_slider_manager__search_form" autocomplete="off">
<input type="text" name="kw" class="n2_slider_manager__search_input" value="" placeholder="<?php echo n2_('Search Project'); ?>" tabindex="-1">
</form>
</div>
<?php } ?>
</div>
</div>
......
......@@ -41,7 +41,9 @@ class BlockActionBar extends AbstractBlock {
$blockButton = new BlockButtonPlain($this);
$blockButton->setUrl($this->getUrlTrash());
$blockButton->setLabel(n2_('View trash'));
$blockButton->addClass('n2_slider_trash');
$blockButton->setSmall();
$blockButton->setIconBefore('ssi_16 ssi_16--delete', 'n2_slider_icon--blue');
$blockButton->setTabIndex(-1);
$blockButton->display();
}
......@@ -58,37 +60,54 @@ class BlockActionBar extends AbstractBlock {
$blockButton = new BlockButtonPlain($this);
$blockButton->setLabel(n2_('Order by'));
$blockButton->setIcon('ssi_16 ssi_16--selectarrow');
$blockButton->setIconBefore('ssi_16 ssi_16--order', 'n2_slider_icon--blue');
$blockButton->addClass('n2_slider_order');
$blockButton->setSmall();
$blockOrderBy->setButton($blockButton);
$manualOrder = new BlockFloatingMenuItem($this);
$manualOrder->setLabel(n2_('Manual order'));
$manualOrder->setIsActive($orderBy == 'ordering' && $orderByDirection == 'ASC');
$manualOrder->setUrl($this->getUrlDashboardOrderBy('ordering', 'ASC'));
$manualOrder->addAttribute('data-ordering', 'ordering');
$manualOrder->addAttribute('data-orderdirection', 'ASC');
$manualOrder->addClass('n2_floating_menu__item-order');
$manualOrder->setUrl('#');
$blockOrderBy->addMenuItem($manualOrder);
$orderAZ = new BlockFloatingMenuItem($this);
$orderAZ->setLabel(n2_('A-Z'));
$orderAZ->setIsActive($orderBy == 'title' && $orderByDirection == 'ASC');
$orderAZ->setUrl($this->getUrlDashboardOrderBy('title', 'ASC'));
$orderAZ->addAttribute('data-ordering', 'title');
$orderAZ->addAttribute('data-orderdirection', 'ASC');
$orderAZ->addClass('n2_floating_menu__item-order');
$orderAZ->setUrl('#');
$blockOrderBy->addMenuItem($orderAZ);
$orderZA = new BlockFloatingMenuItem($this);
$orderZA->setLabel(n2_('Z-A'));
$orderZA->setIsActive($orderBy == 'title' && $orderByDirection == 'DESC');
$orderZA->setUrl($this->getUrlDashboardOrderBy('title', 'DESC'));
$orderZA->addAttribute('data-ordering', 'title');
$orderZA->addAttribute('data-orderdirection', 'DESC');
$orderZA->addClass('n2_floating_menu__item-order');
$orderZA->setUrl('#');
$blockOrderBy->addMenuItem($orderZA);
$orderNewest = new BlockFloatingMenuItem($this);
$orderNewest->setLabel(n2_('Newest first'));
$orderNewest->setIsActive($orderBy == 'time' && $orderByDirection == 'DESC');
$orderNewest->setUrl($this->getUrlDashboardOrderBy('time', 'DESC'));
$orderNewest->addAttribute('data-ordering', 'time');
$orderNewest->addAttribute('data-orderdirection', 'DESC');
$orderNewest->addClass('n2_floating_menu__item-order');
$orderNewest->setUrl('#');
$blockOrderBy->addMenuItem($orderNewest);
$orderOldest = new BlockFloatingMenuItem($this);
$orderOldest->setLabel(n2_('Oldest first'));
$orderOldest->setIsActive($orderBy == 'time' && $orderByDirection == 'ASC');
$orderOldest->setUrl($this->getUrlDashboardOrderBy('time', 'ASC'));
$orderOldest->addAttribute('data-ordering', 'time');
$orderOldest->addAttribute('data-orderdirection', 'ASC');
$orderOldest->addClass('n2_floating_menu__item-order');
$orderOldest->setUrl('#');
$blockOrderBy->addMenuItem($orderOldest);
$blockOrderBy->display();
......@@ -104,8 +123,10 @@ class BlockActionBar extends AbstractBlock {
$blockButton = new BlockButtonPlain($this);
$blockButton->setLabel(n2_('Bulk actions'));
$blockButton->setIcon('ssi_16 ssi_16--selectarrow');
$blockButton->setSmall();
$blockButton->setIcon('ssi_16 ssi_16--selectarrow');
$blockButton->setIconBefore('ssi_16 ssi_16--slides', 'n2_slider_icon--blue');
$blockBulkActions->setButton($blockButton);
$duplicate = new BlockFloatingMenuItem($this);
......
......@@ -16,15 +16,18 @@ class BlockSliderManager extends AbstractBlock {
protected $orderByDirection = 'ASC';
protected $paginationIndex = 0;
protected $paginationLimit = 'all';
public function display() {
if ($this->groupID > 0) {
$this->orderBy = 'ordering';
$this->orderByDirection = 'ASC';
} else {
if ($this->groupID <= 0) {
$this->orderBy = Settings::get('slidersOrder2', 'ordering');
$this->orderByDirection = Settings::get('slidersOrder2Direction', 'ASC');
$this->paginationLimit = Settings::get('limit', 'all');
}
$this->renderTemplatePart('SliderManager');
}
......@@ -42,11 +45,57 @@ class BlockSliderManager extends AbstractBlock {
$this->groupID = $groupID;
}
/**
* @return int
*/
public function getPaginationIndex() {
return $this->paginationIndex;
}
/**
* @param int $index
*/
public function setPaginationIndex($index) {
$this->paginationIndex = $index;
}
/**
* @return int
*/
public function getPaginationLimit() {
return $this->paginationLimit;
}
/**
* @param string $status
*
*/
public function getSliders($status = '*') {
$slidersModel = new ModelSliders($this);
$sliders = $slidersModel->getAll($this->groupID, $status, $this->orderBy, $this->orderByDirection, $this->paginationIndex, $this->paginationLimit);
if ($this->groupID <= 0 && empty($sliders) && $sliderCount = $this->getSliderCount('published', true)) {
$lastPageIndex = intval(ceil(($sliderCount - $this->paginationLimit) / $this->paginationLimit));
$sliders = $slidersModel->getAll($this->groupID, $status, $this->orderBy, $this->orderByDirection, $lastPageIndex, $this->paginationLimit);
$this->paginationIndex = $lastPageIndex;
}
return $sliders;
}
/**
* @param string $status
* @param false $withGroup
*
* @return int
*/
public function getSliderCount($status = '*', $withGroup = false) {
$slidersModel = new ModelSliders($this);
return $slidersModel->getAll($this->groupID, $status, $this->orderBy, $this->orderByDirection);
return $slidersModel->getSlidersCount($status, $withGroup);
}
/**
......
<?php
namespace Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderManager\Paginator;
use Nextend\Framework\View\AbstractBlock;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\Button\BlockButtonIconCode;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\Button\BlockButtonPlain;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\Button\BlockButtonPlainIcon;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\FloatingMenu\BlockFloatingMenu;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\FloatingMenu\BlockFloatingMenuItem;
class BlockPaginator extends AbstractBlock {
protected $sliderCount;
protected $paginationLimit;
/**
* @var BlockSliderManager
*/
protected $sliderManager;
public function display() {
$this->renderTemplatePart('Paginator');
}
/**
* @param BlockSliderManager $sliderManager
*/
public function setSliderManager($sliderManager) {
$this->sliderManager = $sliderManager;
}
public function setSliderCount($sliderCount) {
$this->sliderCount = $sliderCount;
}
public function setPaginationLimit($limit) {
$this->paginationLimit = $limit;
}
private function transformedPaginationLimit() {
if ($this->paginationLimit === 'all') {
/*used in calculations*/
return $this->sliderCount;
} else {
return $this->paginationLimit;
}
}
public function displayPaginationButtons() {
$totalPages = $this->sliderCount ? ceil(($this->sliderCount / $this->transformedPaginationLimit())) : 0;
$delta = 2;
$left = intval($this->sliderManager->getPaginationIndex()) - $delta;
$right = intval($this->sliderManager->getPaginationIndex()) + $delta;
/*PageList*/
if ($totalPages > 1) {
for ($i = 0; $i < $totalPages; $i++) {
if ($i == 0 || $i == $totalPages - 1 || $i >= $left && $i <= $right) {
$blockButton = new BlockButtonPlain($this);
$blockButton->setUrl('#');
$blockButton->setLabel($i + 1);
$blockButton->addAttribute('data-page', $i);
$blockButton->setSmall();
$blockButton->setTabIndex(-1);
$class = 'n2_slider_manager__paginator_item ' . (($i === intval($this->sliderManager->getPaginationIndex())) ? 'n2_slider_manager__paginator_item--active' : '');
$blockButton->addAttribute('class', $class);
$blockButton->display();
} else if ($i === $left - 1 || $i === $right + 1) {
echo "<div class='n2_slider_manager__paginator_item n2_slider_manager__paginator_item_spacer'>...</div>";
}
}
}
}
public function displayPaginationPrevious() {
$blockButtonPrev = new BlockButtonPlainIcon($this);
$blockButtonPrev->setUrl('#');
$blockButtonPrev->setIcon('ssi_16 ssi_16--paginatiorarrow');
$blockButtonPrev->setSmall();
$blockButtonPrev->setTabIndex(-1);
$blockButtonPrev->addAttribute('data-page', 'prev');
$blockButtonPrev->addAttribute('class', 'n2_slider_manager__paginator_item n2_slider_manager__paginator_item_arrow n2_slider_manager__paginator_item_arrow--prev n2_slider_manager__paginator_item_arrow--disabled');
$blockButtonPrev->display();
}
public function displayPaginationNext() {
$blockButtonNext = new BlockButtonPlainIcon($this);
$blockButtonNext->setUrl('#');
$blockButtonNext->setIcon('ssi_16 ssi_16--paginatiorarrow');
$blockButtonNext->setSmall();
$blockButtonNext->setTabIndex(-1);
$blockButtonNext->addAttribute('data-page', 'next');
$blockButtonNext->addAttribute('class', 'n2_slider_manager__paginator_item n2_slider_manager__paginator_item_arrow n2_slider_manager__paginator_item_arrow--next n2_slider_manager__paginator_item_arrow--disabled');
$blockButtonNext->display();
}
public function displayPaginationLimiters() {
$blockLimiter = new BlockFloatingMenu($this);
$blockButton = new BlockButtonPlain($this);
$blockButton->setLabel(n2_('Show') . " <span class='limitNumber'>" . $this->paginationLimit . "</span>");
$blockButton->setIcon('ssi_16 ssi_16--selectarrow');
$blockButton->setSmall();
$blockLimiter->setButton($blockButton);
$limits = array(
10,
25,
50,
100
);
foreach ($limits as $limit) {
$limitItem = new BlockFloatingMenuItem($this);
$limitItem->setLabel($limit);
$limitItem->setUrl('#');
$limitItem->addAttribute('data-limit', $limit);
$limitItem->addClass('n2_floating_menu__item-limiter');
$limitItem->setIsActive($this->paginationLimit == $limit);
$blockLimiter->addMenuItem($limitItem);
}
$limitAll = new BlockFloatingMenuItem($this);
$limitAll->setLabel(n2_('All'));
$limitAll->setUrl('#');
$limitAll->addAttribute('data-limit', 'all');
$limitAll->addClass('n2_floating_menu__item-limiter');
$limitAll->setIsActive($this->paginationLimit == 'all');
$blockLimiter->addMenuItem($limitAll);
$blockLimiter->display();
}
public function displayPaginationLabel() {
$actualSliderStart = $this->transformedPaginationLimit() * $this->sliderManager->getPaginationIndex();
$actualSlidersEnd = $actualSliderStart + $this->transformedPaginationLimit();
$allSliders = $this->sliderCount;
echo sprintf(n2_("Showing %s to %s of %s projects"), "<span class='n2_slider_manager__paginator_label_item__from'>" . (($actualSliderStart === 0) ? 1 : $actualSliderStart) . "</span>", "<span class='n2_slider_manager__paginator_label_item__to' > " . (($actualSlidersEnd < $this->sliderCount) ? $actualSlidersEnd : $this->sliderCount) . "</span > ", "<span class='n2_slider_manager__paginator_label_item__max' > " . $allSliders . "</span > ");
}
public function displayNoSlidersLabel() {
echo n2_('No projects to show');
}
}
\ No newline at end of file
<?php
namespace Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderManager\Paginator;
/**
* @var BlockPaginator $this
*/
?>
<div class="n2_slider_manager__paginator_label <?php echo $this->sliderCount === 0 ? "n2_slider_manager__paginator_label--nosliders" : "" ?>">
<p class="n2_slider_manager__paginator_label_item n2_slider_manager__paginator_label_item--active"><?php $this->displayPaginationLabel(); ?></p>
<p class="n2_slider_manager__paginator_label_item n2_slider_manager__paginator_label_item--empty"><?php $this->displayNoSlidersLabel(); ?></p>
</div>
<div class=" n2_slider_manager__paginator_buttons">
<?php
$this->displayPaginationPrevious();
?>
<div class="n2_slider_manager__paginator_buttons--numbers">
<?php
$this->displayPaginationButtons();
?>
</div>
<?php
$this->displayPaginationNext();
?>
</div>
<div class="n2_slider_manager__paginator_limiter">
<?php $this->displayPaginationLimiters() ?>
</div>
......@@ -3,17 +3,20 @@ namespace Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderManag
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderBox\BlockSliderBox;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderManager\ActionBar\BlockActionBar;
use Nextend\SmartSlider3\Application\Admin\Layout\Block\Slider\SliderManager\Paginator\BlockPaginator;
/**
* @var BlockSliderManager $this
*/
$groupID = $this->getGroupID();
$groupID = $this->getGroupID();
$orderBy = $this->getOrderBy();
$orderByDirection = $this->getOrderByDirection();
$sliders = $this->getSliders('published');
$sliders = $this->getSliders('published');
$sliderCount = $this->getSliderCount('published', true);
$limit = $this->getPaginationLimit();
$paginationIndex = $this->getPaginationIndex();
?>
<div class="n2_slider_manager" data-groupid="<?php echo $groupID; ?>" data-orderby="<?php echo $orderBy; ?>" data-orderbydirection="<?php echo $orderByDirection; ?>">
......@@ -42,5 +45,33 @@ $sliders = $this->getSliders('published');
$blockSliderBox->display();
}
?>
<?php if ($groupID <= 0) { ?>
<div class="n2_slider_manager__content--empty">
<div class="n2_slider_manager__content--empty__logo">
<i class="ssi_48 ssi_48--bug"></i>
</div>
<div class="n2_slider_manager__content--empty__heading">
<?php n2_e('Sorry we couldn’t find any matches'); ?>
</div>
<div class="n2_slider_manager__content--empty__paragraph">
<?php n2_e('Please try searching with another term.'); ?>
</div>
</div>
<?php } ?>
</div>
</div>
\ No newline at end of file
<?php if ($groupID <= 0) { ?>
<div class="n2_slider_manager__paginator" data-countstart="<?php echo $sliderCount ?>" data-currentstart="<?php echo $paginationIndex ?>" data-limitstart="<?php echo $limit ?>">
<?php
$blockPaginator = new BlockPaginator($this);
$blockPaginator->setSliderManager($this);
$blockPaginator->setSliderCount($sliderCount);
$blockPaginator->setPaginationLimit($limit);
$blockPaginator->display();
?>
</div>
<div class="n2_slider_manager__search_label">
<p class="n2_slider_manager__search_label_item n2_slider_manager__search_label_item"><?php echo sprintf(n2_("Showing %s results for %s."), "<span class='n2_slider_manager__search_label_item__counter'>0</span>", "<span class='n2_slider_manager__search_label_item__keyword'></span>") ?></p>
</div>
<?php } ?>
</div>
......
......@@ -241,7 +241,10 @@ class ControllerAjaxSlider extends AdminAjaxController {
$view = new ViewAjaxSliderBox($this);
$view->setSlider($slider);
$this->response->respond($view->display());
$this->response->respond(array(
'html' => $view->display(),
'sliderCount' => $slidersModel->getSlidersCount('published', true)
));
}
public function actionChangeSliderType() {
......
......@@ -7,6 +7,7 @@ namespace Nextend\SmartSlider3\Application\Admin\Sliders;
use Nextend\Framework\Controller\Admin\AdminAjaxController;
use Nextend\Framework\Data\Data;
use Nextend\Framework\Filesystem\Filesystem;
use Nextend\Framework\Misc\HttpClient;
use Nextend\Framework\Model\StorageSectionManager;
use Nextend\Framework\Notification\Notification;
use Nextend\Framework\Platform\Platform;
......@@ -70,7 +71,7 @@ class ControllerAjaxSliders extends AdminAjaxController {
$this->validatePermission('smartslider_edit');
$slidersModel = new ModelSliders($this);
$result = $slidersModel->order(Request::$REQUEST->getVar('groupID', 0), Request::$REQUEST->getVar('sliderorder'), Request::$REQUEST->getInt('isReversed', 1));
$result = $slidersModel->order(Request::$REQUEST->getVar('groupID', 0), Request::$REQUEST->getVar('sliderorder'), Request::$REQUEST->getInt('isReversed', 1), Request::$REQUEST->getVar('orders', array()));
$this->validateDatabase($result);
Notification::success(n2_('Slider order saved.'));
......@@ -145,6 +146,100 @@ class ControllerAjaxSliders extends AdminAjaxController {
$this->response->respond();
}
public function actionSearch() {
$this->validateToken();
$slidersModel = new ModelSliders($this);
$keyword = Request::$REQUEST->getVar('keyword', '');
$sliders = array();
$url = parse_url($keyword);
$baseUrl =parse_url(Platform::getSiteUrl()) ;
if (isset($url['host']) && $url['host'] === $baseUrl['host']) {
$options = array(
'error' => true,
);
$content = HttpClient::get($keyword, $options);
preg_match_all('/data-ssid="(?<id>[0-9]+)/', $content, $matches);
foreach ($matches['id'] as $sliderID) {
if ($_slider = $slidersModel->getWithThumbnail($sliderID)) {
array_push($sliders, $_slider);
}
}
}
$sliders = array_merge($sliders, $slidersModel->getSearchResults($keyword));
$result = array();
if (!empty($sliders)) {
foreach ($sliders as $slider) {
$result[] = array(
'id' => $slider['id'],
'alias' => $slider['alias'],
'title' => $slider['title'],
'thumbnail' => $this->getSliderThumbnail($slider),
'isGroup' => $slider['type'] == 'group',
'childrenCount' => $slider['slides'] > 0 ? $slider['slides'] : 0,
'editUrl' => $this->getUrlSliderEdit($slider['id'], $slider['group_id']),
'order' => $slider['ordering']
);
}
}
$this->response->respond($result);
}
public function actionPagination() {
$this->validateToken();
$slidersModel = new ModelSliders($this);
$pageIndex = Request::$REQUEST->getInt('pageIndex', 0);
$limit = Request::$REQUEST->getVar('limit', 20);
$orderBy = Request::$REQUEST->getCmd('orderBy', 'ordering');
$orderDirection = Request::$REQUEST->getCmd('orderDirection', 'ASC');
Settings::set('limit', $limit);
Settings::set('slidersOrder2', $orderBy);
Settings::set('slidersOrder2Direction', $orderDirection);
if ($pageIndex < 0) {
$pageIndex = 0;
}
$sliderCount = $slidersModel->getSlidersCount('published', true);
$result = array();
$sliders = $slidersModel->getAll(0, 'published', $orderBy, $orderDirection, $pageIndex, $limit);
//if last page is empty
if (empty($sliders) && $sliderCount) {
$lastPageIndex = intval(ceil(($sliderCount - $limit) / $limit));
$sliders = $slidersModel->getAll(0, 'published', $orderBy, $orderDirection, $lastPageIndex, $limit);
$result['pageIndex'] = $lastPageIndex;
}
if (!empty($sliders)) {
foreach ($sliders as $slider) {
$result['sliders'][] = array(
'id' => $slider['id'],
'alias' => $slider['alias'],
'title' => $slider['title'],
'thumbnail' => $this->getSliderThumbnail($slider),
'isGroup' => $slider['type'] == 'group',
'childrenCount' => $slider['slides'] > 0 ? $slider['slides'] : 0,
'editUrl' => $this->getUrlSliderEdit($slider['id'], 0),
'order' => $slider['ordering']
);
}
$result['slidersPerPage'] = count($sliders);
}
$result['sliderCount'] = $sliderCount;
$this->response->respond($result);
}
protected function actionImport() {
$this->validateToken();
......
......@@ -39,10 +39,10 @@ class ControllerSliders extends AbstractControllerAdmin {
}
protected function actionIndex() {
$this->loadSliderManager();
$view = new ViewSlidersIndex($this);
$view->setPaginationIndex(max(0, intval(Request::$REQUEST->getInt('pageIndex', 0)) - 1)); /*-1 needs because beautified query string*/
$view->display();
}
......@@ -54,31 +54,10 @@ class ControllerSliders extends AbstractControllerAdmin {
$view->display();
}
protected function actionOrderBy() {
$ordering = Request::$REQUEST->getCmd('ordering', null);
if ($ordering == 'DESC' || $ordering == 'ASC') {
Settings::set('slidersOrder2', 'ordering');
Settings::set('slidersOrder2Direction', 'ASC');
}
$time = Request::$REQUEST->getCmd('time', null);
if ($time == 'DESC' || $time == 'ASC') {
Settings::set('slidersOrder2', 'time');
Settings::set('slidersOrder2Direction', $time);
}
$title = Request::$REQUEST->getCmd('title', null);
if ($title == 'DESC' || $title == 'ASC') {
Settings::set('slidersOrder2', 'title');
Settings::set('slidersOrder2Direction', $title);
}
$this->redirectToSliders();
}
protected function actionExportAll() {
$slidersModel = new ModelSliders($this);
$sliders = $slidersModel->getAll(Request::$REQUEST->getInt('currentGroupID', 0), 'published');
$groupID = (Request::$REQUEST->getVar('inSearch', false))?'*':Request::$REQUEST->getInt('currentGroupID', 0);
$sliders = $slidersModel->getAll($groupID, 'published');
$ids = Request::$REQUEST->getVar('sliders');
$files = array();
......
......@@ -16,6 +16,7 @@ class ViewSlidersIndex extends AbstractView {
* @var LayoutDefault
*/
protected $layout;
protected $paginationIndex = 0;
public function display() {
......@@ -35,12 +36,17 @@ class ViewSlidersIndex extends AbstractView {
$this->layout->render();
}
public function setPaginationIndex($index) {
$this->paginationIndex = $index;
}
protected function displayHeader() {
}
protected function displaySliderManager() {
$sliderManager = new BlockSliderManager($this);
$sliderManager->setPaginationIndex($this->paginationIndex);
$this->layout->addContentBlock($sliderManager);
}
}
\ No newline at end of file
......
......@@ -30,12 +30,20 @@ trait TraitAdminUrl {
));
}
public function getUrlDashboardOrderBy($orderBy, $direction) {
$args = array();
public function getUrlPaginator() {
$args[$orderBy] = $direction;
return $this->createAjaxUrl(array(
'sliders/pagination',
));
}
return $this->createUrl(array(
public function getUrlDashboardOrderBy($orderBy, $direction, $page = null, $limit = null) {
$args = array();
$args[$orderBy] = $direction;
$args['pageIndex'] = $page;
$args['limit'] = $limit;
return $this->createAjaxUrl(array(
'sliders/orderby',
$args
), true);
......
......@@ -48,12 +48,13 @@ class ModelSliders extends AbstractModelTable {
public function getWithThumbnail($id) {
$slidesModel = new ModelSlides($this);
return Database::queryRow("SELECT sliders.*, IF(sliders.thumbnail != '',sliders.thumbnail,(SELECT slides.thumbnail from " . $slidesModel->getTableName() . " AS slides WHERE slides.slider = sliders.id AND slides.published = 1 AND slides.generator_id = 0 AND slides.thumbnail NOT LIKE '' ORDER BY slides.first DESC, slides.ordering ASC LIMIT 1)) AS thumbnail,
return Database::queryRow("SELECT sliders.*,xref.group_id, IF(sliders.thumbnail != '',sliders.thumbnail,(SELECT slides.thumbnail from " . $slidesModel->getTableName() . " AS slides WHERE slides.slider = sliders.id AND slides.published = 1 AND slides.generator_id = 0 AND slides.thumbnail NOT LIKE '' ORDER BY slides.first DESC, slides.ordering ASC LIMIT 1)) AS thumbnail,
IF(sliders.type != 'group',
(SELECT count(*) FROM " . $slidesModel->getTableName() . " AS slides2 WHERE slides2.slider = sliders.id GROUP BY slides2.slider),
(SELECT count(*) FROM " . $this->xref->getTableName() . " AS xref2 WHERE xref2.group_id = sliders.id GROUP BY xref2.group_id)
) AS slides
FROM " . $this->getTableName() . " AS sliders
LEFT JOIN " . $this->xref->getTableName() . " AS xref ON xref.slider_id = sliders.id
WHERE sliders.id = :id", array(
":id" => $id
));
......@@ -71,8 +72,22 @@ class ModelSliders extends AbstractModelTable {
$this->markChanged($sliderid);
}
public function getSlidersCount() {
$data = Database::queryRow("SELECT COUNT(*) AS sliders FROM " . $this->getTableName());
public function getSlidersCount($status = '*', $witGroup = false) {
$wheres = array();
$join = "";
if ($status !== '*') {
$wheres[] = " WHERE _sliders.status LIKE " . Database::quote($status);
}
if ($witGroup) {
$join = "LEFT JOIN " . $this->xref->getTableName() . " AS xref ON xref.slider_id = _sliders.id ";
$wheres[] = "(xref.group_id IS NULL OR xref.group_id = 0)";
}
$data = Database::queryRow("SELECT COUNT(*) AS sliders FROM " . $this->getTableName() . " as _sliders " . $join . " " . implode(' AND ', $wheres));
if (!empty($data)) {
return intval($data['sliders']);
}
......@@ -83,7 +98,7 @@ class ModelSliders extends AbstractModelTable {
/**
* @return mixed
*/
public function getAll($groupID = '*', $status = '*', $orderBy = 'ordering', $orderByDirection = 'ASC') {
public function getAll($groupID = '*', $status = '*', $orderBy = 'ordering', $orderByDirection = 'ASC', $page = null, $limit = 'all') {
$slidesModel = new ModelSlides($this);
if (empty($orderBy)) {
......@@ -93,12 +108,17 @@ class ModelSliders extends AbstractModelTable {
$orderByDirection = 'ASC';
}
$_orderby = $orderBy . ' ' . $orderByDirection;
$_orderby = $orderBy . ' ' . $orderByDirection;
$limitQuery = "";
$wheres = array();
if ($groupID !== '*') {
if ($groupID == 0) {
$wheres[] = "(xref.group_id IS NULL OR xref.group_id = 0)";
if ($page !== null && $limit != 'all') {
$first = intval($page) * intval($limit);
$limitQuery = "LIMIT " . $first . "," . intval($limit);
}
} else {
if ($orderBy == 'ordering') {
$_orderby = 'xref.' . $orderBy . ' ' . $orderByDirection;
......@@ -112,6 +132,7 @@ class ModelSliders extends AbstractModelTable {
$wheres[] = "sliders.status LIKE " . Database::quote($status);
}
$sliders = Database::queryAll("
SELECT sliders.*,
IF(sliders.thumbnail != '',
......@@ -129,7 +150,8 @@ class ModelSliders extends AbstractModelTable {
FROM " . $this->getTableName() . " AS sliders
LEFT JOIN " . $this->xref->getTableName() . " AS xref ON xref.slider_id = sliders.id
WHERE " . implode(' AND ', $wheres) . "
ORDER BY " . $_orderby);
ORDER BY " . $_orderby . " " . $limitQuery);
return $sliders;
}
......@@ -138,6 +160,46 @@ class ModelSliders extends AbstractModelTable {
return Database::queryAll("SELECT sliders.* FROM " . $this->getTableName() . " AS sliders");
}
public function getSearchResults($keyword = "") {
$slidesModel = new ModelSlides($this);
$wheres = array();
$orderByExtra = "";
$id = intval($keyword);
if ($id > 0) {
$wheres[] = "sliders.id LIKE '%" . $id . "%'";
$orderByExtra = "(sliders.id = '" . $id . "') DESC, ";
}
$wheres[] = "sliders.alias LIKE " . Database::quote('%' . $keyword . '%') . " OR sliders.title LIKE " . Database::quote('%' . $keyword . '%');
return Database::queryAll("SELECT sliders.*,
xref.group_id,
IF(sliders.thumbnail != '',
sliders.thumbnail,
IF(sliders.type != 'group',
(SELECT slides.thumbnail FROM " . $slidesModel->getTableName() . " AS slides WHERE slides.slider = sliders.id AND slides.published = 1 AND slides.generator_id = 0 AND slides.thumbnail NOT LIKE '' ORDER BY slides.first DESC, slides.ordering ASC LIMIT 1),
''
)
) AS thumbnail,
IF(sliders.type != 'group',
(SELECT count(*) FROM " . $slidesModel->getTableName() . " AS slides2 WHERE slides2.slider = sliders.id GROUP BY slides2.slider),
(SELECT count(*) FROM " . $this->xref->getTableName() . " AS xref2 LEFT JOIN " . $this->getTableName() . " AS sliders2 ON sliders2.id = xref2.slider_id WHERE xref2.group_id = sliders.id AND sliders2.status LIKE 'published' GROUP BY xref2.group_id)
) AS slides
FROM " . $this->getTableName() . " AS sliders
LEFT JOIN " . $this->xref->getTableName() . " AS xref ON xref.slider_id = sliders.id
WHERE
(
xref.group_id IS NULL
OR xref.group_id = 0
OR (SELECT _sliders.status FROM " . $this->getTableName() . " AS _sliders WHERE _sliders.id = xref.group_id ) LIKE 'published'
)
AND sliders.status LIKE 'published'
AND (" . implode(' OR ', $wheres) . ")
GROUP BY sliders.id
ORDER BY " . $orderByExtra . "sliders.title ASC");
}
public function getGroups($status = '*') {
$wheres = array(
......@@ -167,7 +229,8 @@ class ModelSliders extends AbstractModelTable {
'type' => $slider['type'],
'thumbnail' => empty($slider['thumbnail']) ? '' : $slider['thumbnail'],
'params' => $slider['params']->toJSON(),
'time' => date('Y-m-d H:i:s', Platform::getTimestamp())
'time' => date('Y-m-d H:i:s', Platform::getTimestamp()),
'ordering' => -1
));
$sliderID = $this->table->insertId();
......@@ -177,6 +240,7 @@ class ModelSliders extends AbstractModelTable {
}
$this->xref->add($groupID, $sliderID);
$this->reindexOrdering();
SmartSlider3Info::sliderChanged();
......@@ -276,12 +340,13 @@ class ModelSliders extends AbstractModelTable {
'params' => json_encode($slider),
'thumbnail' => $thumbnail,
'time' => date('Y-m-d H:i:s', Platform::getTimestamp()),
'ordering' => $this->getMaximalOrderValue()
'ordering' => -1
));
$sliderID = $this->table->insertId();
$this->xref->add($groupID, $sliderID);
$this->reindexOrdering();
SmartSlider3Info::sliderChanged();
......@@ -575,6 +640,7 @@ class ModelSliders extends AbstractModelTable {
AbstractCache::clearGroup(AdminSlider::getCacheId($id));
$this->markChanged($id);
$this->reindexOrdering();
SmartSlider3Info::sliderChanged();
......@@ -660,6 +726,8 @@ class ModelSliders extends AbstractModelTable {
}
}
$this->reindexOrdering();
SmartSlider3Info::sliderChanged();
return $newSliderId;
......@@ -671,7 +739,8 @@ class ModelSliders extends AbstractModelTable {
$helper->setSliderChanged($sliderid, 1);
}
public function order($groupID, $ids, $isReverse = false) {
public function order($groupID, $ids, $isReverse = false, $orders = array()) {
if (is_array($ids) && count($ids) > 0) {
if ($isReverse) {
$ids = array_reverse($ids);
......@@ -680,13 +749,23 @@ class ModelSliders extends AbstractModelTable {
if ($groupID <= 0) {
$groupID = false;
}
if (!empty($orders)) {
asort($orders);
$orders = array_values($orders);
}
$i = 0;
foreach ($ids as $id) {
$id = intval($id);
if ($id > 0) {
if (!$groupID) {
if (!empty($orders)) {
$order = intval($orders[$i]);
} else {
$order = $i;
}
$this->table->update(array(
'ordering' => $i,
'ordering' => $order,
), array(
"id" => $id
));
......@@ -709,6 +788,18 @@ class ModelSliders extends AbstractModelTable {
return false;
}
public function reindexOrdering() {
$sliders = $this->getAll(0);
foreach ($sliders as $idx => $slider) {
$this->table->update(array(
'ordering' => $idx
), array(
"id" => $slider['id']
));
}
}
protected function getMaximalOrderValue() {
$query = "SELECT MAX(ordering) AS ordering FROM " . $this->getTableName() . "";
......
......@@ -128,6 +128,69 @@ class PostsPostsByIDs extends AbstractGenerator {
}
}
}
$post_meta = get_post_meta($post->ID);
$excluded_metas = array(
'hc-editor-mode',
'techline-sidebar'
);
foreach ($excluded_metas as $excluded_meta) {
if (isset($post_meta[$excluded_meta])) {
unset($post_meta[$excluded_meta]);
}
}
if (count($post_meta) && is_array($post_meta) && !empty($post_meta)) {
foreach ($post_meta as $key => $value) {
if (count($value) && is_array($value) && !empty($value)) {
foreach ($value as $v) {
if (!empty($v) && !is_array($v) && !is_object($v)) {
$key = str_replace(array(
'_',
'-'
), array(
'',
''
), $key);
if (array_key_exists($key, $record)) {
$key = 'meta' . $key;
}
if (is_serialized($v)) {
$unserialize_values = unserialize($v);
$unserialize_count = 1;
if (!empty($unserialize_values) && is_array($unserialize_values)) {
foreach ($unserialize_values as $unserialize_value) {
if (!empty($unserialize_value) && is_string($unserialize_value)) {
$record['us_' . $key . $unserialize_count] = $unserialize_value;
$unserialize_count++;
} else if (is_array($unserialize_value)) {
foreach ($unserialize_value as $u_v) {
if (is_string($u_v)) {
$record['us_' . $key . $unserialize_count] = $u_v;
$unserialize_count++;
}
}
}
}
}
} else {
$record[$key] = $v;
}
}
}
}
}
if (!empty($record['elementordata'])) {
$elementordatas = json_decode($record['elementordata']);
foreach ($elementordatas as $elementordata) {
foreach ($this->getElementorTextEditors($elementordata) as $elementorKey => $elementorVal) {
$record[$elementorKey] = $elementorVal;
}
}
}
}
if (isset($record['primarytermcategory'])) {
$primary = get_category($record['primarytermcategory']);
$record['primary_category_name'] = $primary->name;
......
......@@ -18,6 +18,11 @@ class Install {
$tables->install();
InstallWordPress::install();
preg_match('/[\d\.]+[\d]/', Settings::get('n2_ss3_version'), $oldversion);
if ($oldversion && version_compare($oldversion[0], "3.5.1.2", '<=')) {
$tables->reindexOrders();
}
Settings::set('n2_ss3_version', SmartSlider3Info::$completeVersion);
/**
......
......@@ -204,6 +204,28 @@ class Tables {
));
}
public function reindexOrders() {
$query = "SELECT
sliders.*
FROM
`#__nextend2_smartslider3_sliders` AS sliders
LEFT JOIN `#__nextend2_smartslider3_sliders_xref` AS xref
ON
xref.slider_id = sliders.id
WHERE
(
xref.group_id IS NULL OR xref.group_id = 0
)
ORDER BY ordering";
$sliders = Database::queryAll(Database::parsePrefix($query));
foreach ($sliders as $idx => $slider) {
$this->query("UPDATE `#__nextend2_smartslider3_sliders` SET `ordering` = '" . $idx . "' WHERE `id` = " . $slider['id'] . " ");
}
}
/**
* @param string $tableName
* @param array|string $colNames
......
......@@ -14,12 +14,19 @@ class WidgetHelper {
$this,
'widgets_init'
), 11);
add_action('widgets_admin_page', array(
$this,
'widgets_admin_page'
));
/**
* As fallback for the Classic Widgets
*/
if ($this->isOldEditor()) {
add_action('widgets_admin_page', array(
$this,
'widgets_admin_page'
));
}
}
public function widgets_init() {
/**
......@@ -32,10 +39,10 @@ class WidgetHelper {
$widgetAreas = intval(Settings::get('wordpress-widget-areas', 1));
if ($widgetAreas > 0) {
for ($i = 1; $i <= $widgetAreas; $i++) {
$description = (!$this->isOldEditor()) ? 'Display this widget area in your theme: <strong>&lt;?php dynamic_sidebar( \'smartslider_area_' . $i . '\' ); ?&gt; </strong>' : '';
register_sidebar(array(
'name' => 'Custom Widget Area - #' . $i,
'description' => '',
'description' => $description,
'id' => 'smartslider_area_' . $i,
'before_widget' => '',
'after_widget' => '',
......@@ -59,4 +66,10 @@ class WidgetHelper {
}
}
private function isOldEditor() {
$blockEditor = function_exists('wp_use_widgets_block_editor');
return !$blockEditor || ($blockEditor && !wp_use_widgets_block_editor());
}
}
\ No newline at end of file
......
......@@ -602,9 +602,9 @@ abstract class AbstractComponent {
$this->addLocalStyle('normal', 'background', $this->getBackgroundCSS($color, $gradient, $colorEnd, $backgroundStyle) . $backgroundStyle);
$colorHover = $this->data->get('bgcolor-hover');
$colorHover = $this->owner->fill($this->data->get('bgcolor-hover'));
$gradientHover = $this->data->get('bgcolorgradient-hover');
$colorEndHover = $this->data->get('bgcolorgradientend-hover');
$colorEndHover = $this->owner->fill($this->data->get('bgcolorgradientend-hover'));
$isHoverDifferent = false;
if (!empty($colorHover) && $colorHover != $color) {
$isHoverDifferent = true;
......
......@@ -175,10 +175,10 @@ class ItemYouTubeFrontend extends AbstractItemFrontend {
}
private function parseYoutubeUrl($youTubeUrl) {
preg_match('/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/', $youTubeUrl, $matches);
preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/\s]{11})%i', $youTubeUrl, $matches);
if ($matches && isset($matches[7]) && strlen($matches[7]) == 11) {
return $matches[7];
if ($matches && isset($matches[1]) && strlen($matches[1]) == 11) {
return $matches[1];
}
return $youTubeUrl;
......
......@@ -56,26 +56,36 @@ class SVGFlip {
$pathCommand = substr($values[$i], 0, 1);
$pathPart = substr($values[$i], 1);
$points = explode(',', $pathPart);
for ($j = 0; $j < count($points); $j = $j + 2) {
switch ($pathCommand) {
case 'l':
case 'm':
case 'h':
case 'c':
case 's':
case 'q':
case 't':
$points[$j] = -$points[$j];
break;
case 'L':
case 'M':
case 'H':
case 'C':
case 'S':
case 'Q':
case 'T':
$points[$j] = self::$viewBoxX - $points[$j];
break;
if ($pathCommand === 'A') {
$points[2] = -$points[2];
$points[4] = ($points[4]) ? 1 : 0;
$points[5] = self::$viewBoxX - $points[5];
} else if ($pathCommand == 'a') {
$points[2] = -$points[2];
$points[4] = ($points[4]) ? 1 : 0;
$points[5] = -$points[5];
} else {
for ($j = 0; $j < count($points); $j = $j + 2) {
switch ($pathCommand) {
case 'l':
case 'm':
case 'h':
case 'c':
case 's':
case 'q':
case 't':
$points[$j] = -$points[$j];
break;
case 'L':
case 'M':
case 'H':
case 'C':
case 'S':
case 'Q':
case 'T':
$points[$j] = self::$viewBoxX - $points[$j];
break;
}
}
}
$newPath .= $pathCommand . implode(',', $points);
......@@ -94,30 +104,40 @@ class SVGFlip {
$pathCommand = substr($values[$i], 0, 1);
$pathPart = substr($values[$i], 1);
$points = explode(',', $pathPart);
for ($j = 0; $j < count($points); $j = $j + 2) {
switch ($pathCommand) {
case 'v':
$points[$j] = -$points[$j];
break;
case 'V':
$points[$j] = self::$viewBoxY - $points[$j];
break;
case 'l':
case 'm':
case 'c':
case 's':
case 'q':
case 't':
$points[$j + 1] = -$points[$j + 1];
break;
case 'L':
case 'M':
case 'C':
case 'S':
case 'Q':
case 'T':
$points[$j + 1] = self::$viewBoxY - $points[$j + 1];
break;
if ($pathCommand === 'A') {
$points[2] = -$points[2];
$points[4] = ($points[4]) ? 1 : 0;
$points[6] = self::$viewBoxY - $points[6];
} else if ($pathCommand === 'a') {
$points[2] = -$points[2];
$points[4] = ($points[4]) ? 1 : 0;
$points[6] = -$points[6];
} else {
for ($j = 0; $j < count($points); $j = $j + 2) {
switch ($pathCommand) {
case 'v':
$points[$j] = -$points[$j];
break;
case 'V':
$points[$j] = self::$viewBoxY - $points[$j];
break;
case 'l':
case 'm':
case 'c':
case 's':
case 'q':
case 't':
$points[$j + 1] = -$points[$j + 1];
break;
case 'L':
case 'M':
case 'C':
case 'S':
case 'Q':
case 'T':
$points[$j + 1] = self::$viewBoxY - $points[$j + 1];
break;
}
}
}
$newPath .= $pathCommand . implode(',', $points);
......@@ -136,36 +156,44 @@ class SVGFlip {
$pathCommand = substr($values[$i], 0, 1);
$pathPart = substr($values[$i], 1);
$points = explode(',', $pathPart);
for ($j = 0; $j < count($points); $j = $j + 2) {
switch ($pathCommand) {
case 'h':
case 'v':
$points[$j] = -$points[$j];
break;
case 'H':
$points[$j] = self::$viewBoxX - $points[$j];
break;
case 'V':
$points[$j] = self::$viewBoxY - $points[$j];
break;
case 'l':
case 'm':
case 'c':
case 's':
case 'q':
case 't':
$points[$j] = -$points[$j];
$points[$j + 1] = -$points[$j + 1];
break;
case 'L':
case 'M':
case 'C':
case 'S':
case 'Q':
case 'T':
$points[$j] = self::$viewBoxX - $points[$j];
$points[$j + 1] = self::$viewBoxY - $points[$j + 1];
break;
if ($pathCommand === 'A') {
$points[5] = self::$viewBoxX - $points[5];
$points[6] = self::$viewBoxY - $points[6];
} else if ($pathCommand == 'a') {
$points[5] = -$points[5];
$points[6] = -$points[6];
} else {
for ($j = 0; $j < count($points); $j = $j + 2) {
switch ($pathCommand) {
case 'h':
case 'v':
$points[$j] = -$points[$j];
break;
case 'H':
$points[$j] = self::$viewBoxX - $points[$j];
break;
case 'V':
$points[$j] = self::$viewBoxY - $points[$j];
break;
case 'l':
case 'm':
case 'c':
case 's':
case 'q':
case 't':
$points[$j] = -$points[$j];
$points[$j + 1] = -$points[$j + 1];
break;
case 'L':
case 'M':
case 'C':
case 'S':
case 'Q':
case 'T':
$points[$j] = self::$viewBoxX - $points[$j];
$points[$j + 1] = self::$viewBoxY - $points[$j + 1];
break;
}
}
}
$newPath .= $pathCommand . implode(',', $points);
......
......@@ -14,15 +14,15 @@ use Nextend\SmartSlider3\Application\Model\ModelLicense;
class SmartSlider3Info {
public static $version = '3.5.1.2';
public static $version = '3.5.1.3';
public static $channel = 'stable';
public static $revision = 'f4759c2e729fca8cf3071d0c6356eadecf6f7308';
public static $revision = '5023544a4fcfe8dfb1226d4b8c667713df879709';
public static $revisionShort = 'f4759c2e';
public static $revisionShort = '5023544a';
public static $branch = 'release-3.5.1.2';
public static $branch = 'release-3.5.1.3';
public static $completeVersion;
......
......@@ -94,7 +94,7 @@ class OutputBuffer {
$this,
"outputCallback"
));
});
}, 11);
}
}
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s,r=t.document,o=r.documentElement,h=t.setTimeout,a=t.clearTimeout,u=i._N2,c=(t.requestAnimationFrame,r.createElement.bind(r)),f=Object.assign,l=function(t,i){return t.dataset[i]},v=function(t,i){return t.dispatchEvent(i)},d=function(t,i,n){return n=f({bubbles:!0,cancelable:!0},n),v(t,new Event(i,n))},p=function(t,i,n,s){return s=s||{},t.addEventListener(i,n,s),t.removeEventListener.bind(t,i,n,s)},m=function(t){"complete"===r.readyState||"interactive"===r.readyState?t():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==r.addEventListener?Document.prototype.addEventListener.call(r,"DOMContentLoaded",t):r.addEventListener("DOMContentLoaded",t)},g=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return h(t,1)};i.cancelIdleCallback;m((function(){n=r.body})),function(){"use strict";var t={},n={};i.n2Slow=navigator.userAgent.indexOf("Chrome-Lighthouse")>-1&&navigator.userAgent.indexOf("Android")>-1;var r=[],o=!1;function a(){var t=performance.now(),n=r;r=[];for(var s=n.length-1;s>=0&&(n.pop().call(),!(performance.now()-t>7));s--);!i.n2Slow&&n.length&&(i.n2Slow=!0),n.unshift.apply(n,r),(r=n).length?g(a,{timeout:2e3}):o=!1}function f(t){r.unshift(t),o||(o=!0,g(a,{timeout:2e3}))}var l=new Date,v=function(){if(i.jQuery){var $=i.jQuery;u.d("$",(function(){return $}))}else{if(h(v,20),(new Date).getTime()-l.getTime()>1e3)c("script").src=u._jQueryFallback}};function d(i){return!(!i||t[i]!==s)&&(t[i]=new Promise((function(t){n[i]=t})),"$"===i&&v(),!0)}function p(i,s,r){var o=[];if(d(i)||n[i]){if("function"==typeof s?(r=s,s=[]):"string"==typeof s&&(s=[s]),(s=s||[]).length)for(var h=0;h<s.length;h++)d(s[h]),o.push(t[s[h]]);Promise.all(o).then(function(t){u[i]="function"!=typeof r||r.call(u),t()}.bind(this,n[i])),delete n[i]}}function m(i,n){var r=[];if(n===s?(n=i,i=[]):"string"==typeof i&&(i=[i]),i=i||[])for(var o=0;o<i.length;o++)d(i[o]),r.push(t[i[o]]);Promise.all(r).then((function(){n.call(u)}))}i.N2DISABLESCHEDULER?(u.d=p,u.r=m):(u.d=function(t,i,n){f(p.bind(this,t,i,n))},u.r=function(t,i){f(m.bind(this,t,i))});for(var b=0;b<this._N2._d.length;b++)u.d.apply(this,this._N2._d[b]);for(var w=0;w<this._N2._r.length;w++)u.r.apply(this,this._N2._r[w])}.call(i),i.NextendThrottle=function(t,i){var n,s;return i||(i=250),function(){var r=this,o=+new Date,u=arguments;n&&o<n+i?(a(s),s=h((function(){n=o,t.apply(r,u)}),i)):(n=o,t.apply(r,u))}},i.NextendDeBounce=function(t,i,n){var s;return function(){var r=this,o=arguments,u=function(){s=null,n||t.apply(r,o)},c=n&&!s;a(s),s=h(u,i),c&&t.apply(r,o)}},u.r("nextend-frontend",(function(){if(m((function(){u.d("documentReady")})),"complete"===r.readyState)u.d("windowLoad");else{let s;const o=navigator.userAgent;o.indexOf("Safari")>0&&-1===o.indexOf("Chrome")&&(s=setInterval((function(){"interactive"!==r.readyState&&"complete"!==r.readyState||(u.d("windowLoad"),clearInterval(s))}),2e3)),t="load",n=function(){u.d("windowLoad"),clearInterval(s)},i.addEventListener(t,n,{once:!0})}var t,n})),i.ResizeObserver||(i.ResizeObserver=function(){"use strict";var t=function(){if("undefined"!=typeof Map)return Map;function t(t,i){var n=-1;return t.some((function(t,s){return t[0]===i&&(n=s,!0)})),n}return function(){function i(){this.__entries__=[]}return Object.defineProperty(i.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),i.prototype.get=function(i){var n=t(this.__entries__,i),s=this.__entries__[n];return s&&s[1]},i.prototype.set=function(i,n){var s=t(this.__entries__,i);~s?this.__entries__[s][1]=n:this.__entries__.push([i,n])},i.prototype.delete=function(i){var n=this.__entries__,s=t(n,i);~s&&n.splice(s,1)},i.prototype.has=function(i){return!!~t(this.__entries__,i)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(t,i){void 0===i&&(i=null);for(var n=0,s=this.__entries__;n<s.length;n++){var r=s[n];t.call(i,r[1],r[0])}},i}()}(),n=void 0!==i&&void 0!==r&&i.document===r,s="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:void 0!==i&&i.Math===Math?i:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(t){return h((function(){return t(Date.now())}),1e3/60)},a=2;function u(t,i){var n=!1,s=!1,r=0;function u(){n&&(n=!1,t()),s&&f()}function c(){o(u)}function f(){var t=Date.now();if(n){if(t-r<a)return;s=!0}else n=!0,s=!1,h(c,i);r=t}return f}var c=20,f=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,v=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=u(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var i=this.observers_,n=i.indexOf(t);~n&&i.splice(n,1),!i.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){n&&!this.connected_&&(r.addEventListener("transitionend",this.onTransitionEnd_),i.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(r,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(r.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(r.removeEventListener("transitionend",this.onTransitionEnd_),i.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&r.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var i=t.propertyName,n=void 0===i?"":i;f.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,i){for(var n=0,s=Object.keys(i);n<s.length;n++){var r=s[n];Object.defineProperty(t,r,{value:i[r],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||s},m=k(0,0,0,0);function g(t){return parseFloat(t)||0}function b(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return i.reduce((function(i,n){return i+g(t["border-"+n+"-width"])}),0)}function w(t){for(var i={},n=0,s=["top","right","bottom","left"];n<s.length;n++){var r=s[n],o=t["padding-"+r];i[r]=g(o)}return i}function y(t){var i=t.getBBox();return k(0,0,i.width,i.height)}function M(t){var i=t.clientWidth,n=t.clientHeight;if(!i&&!n)return m;var s=p(t).getComputedStyle(t),r=w(s),o=r.left+r.right,h=r.top+r.bottom,a=g(s.width),u=g(s.height);if("border-box"===s.boxSizing&&(Math.round(a+o)!==i&&(a-=b(s,"left","right")+o),Math.round(u+h)!==n&&(u-=b(s,"top","bottom")+h)),!_(t)){var c=Math.round(a+o)-i,f=Math.round(u+h)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(f)&&(u-=f)}return k(r.left,r.top,a,u)}var x="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"==typeof t.getBBox};function _(t){return t===p(t).document.documentElement}function P(t){return n?x(t)?y(t):M(t):m}function O(t){var i=t.x,n=t.y,s=t.width,r=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(o.prototype);return d(h,{x:i,y:n,width:s,height:r,top:n,right:i+s,bottom:r+n,left:i}),h}function k(t,i,n,s){return{x:t,y:i,width:n,height:s}}var S=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=P(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),E=function(){function t(t,i){var n=O(i);d(this,{target:t,contentRect:n})}return t}(),A=function(){function i(i,n,s){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof i)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=i,this.controller_=n,this.callbackCtx_=s}return i.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)||(i.set(t,new S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},i.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)&&(i.delete(t),i.size||this.controller_.removeObserver(this))}},i.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},i.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(i){i.isActive()&&t.activeObservations_.push(i)}))},i.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,i=this.activeObservations_.map((function(t){return new E(t.target,t.broadcastRect())}));this.callback_.call(t,i,t),this.clearActive()}},i.prototype.clearActive=function(){this.activeObservations_.splice(0)},i.prototype.hasActive=function(){return this.activeObservations_.length>0},i}(),C="undefined"!=typeof WeakMap?new WeakMap:new t,D=function(){function t(i){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=v.getInstance(),s=new A(i,n,this);C.set(this,s)}return t}();return["observe","unobserve","disconnect"].forEach((function(t){D.prototype[t]=function(){var i;return(i=C.get(this))[t].apply(i,arguments)}})),void 0!==s.ResizeObserver?s.ResizeObserver:D}()),u.StringHelper={capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(){var t=function(t){return Symbol.iterator in Object(t)},i={add:function(t){requestAnimationFrame(t)},remove:function(){}};u.t=u.t||i;var n,r=new class{constructor(){this.i=!1,this.o=new Set,this.h=this.u.bind(this)}add(t){this.o.add(t),this.i||(this.i=!0,u.t.add(this.h))}u(){for(let t of this.o)t.render?t.render():t();this.o.clear(),this.i=!1,u.t.remove(this.h)}},o={};n=/Safari/i.test(navigator.userAgent)&&!/Chrom[ei]/i.test(navigator.userAgent)?function(t,i,n,s){var r="";return s&&(t||i||n)?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":((t||i)&&(r+="translate("+(t||0)+"px, "+(i||0)+"px) "),n&&(r+="translateZ("+n+"px) "),r)}:function(t,i,n,s){return t||i||n?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":""};class h{constructor(i,n){t(i)?this.l=Array.from(i):this.l=[i],this.v=f({},n),this.p=new Set}get scale(){return this.scaleX}set scale(t){this.scaleX=t,this.scaleY=t}render(){for(let i of this.p){var t=this.v[i];switch(i){case"transform":t=this.m();break;case"filter":t=this.g();break;case"n2AutoAlpha":0===this.opacity?this.M||(this.M=!0,this._("data-force-hidden","")):this.M&&(this.M=!1,this.P("data-force-hidden"));continue;case"opacity":this.v.n2AutoAlpha&&(0===t?this.M||(this.M=!0,this._("data-force-hidden","")):this.M&&(this.M=!1,this.P("data-force-hidden")));break;case"width":case"height":case"perspective":"number"==typeof t&&(t+="px")}for(let n of this.l)n.style.setProperty(i,t)}this.p.clear()}m(){let{xP:t,yP:i,x:r,y:o,z:h,xAbs:a,yAbs:u,xPAbs:c,yPAbs:f,parallaxX:l,parallaxY:v,parallaxRotationX:d,parallaxRotationY:p,layerRotation:m,rotationZ:g,rotationY:b,rotationX:w,scaleX:y,scaleY:M,scaleZ:x,skewX:_,skewY:P,transformPerspective:O,force3D:k}=this.v,S="";return O&&(S+="perspective("+O+"px) "),(t||i)&&(S+="translate("+(t||0)+"%, "+(i||0)+"%) "),(a||u)&&(S+="translate("+(a||0)+"px, "+(u||0)+"px) "),(c||f)&&(S+="translate("+(c||0)+"%, "+(f||0)+"%) "),S+=n(r,o,h,k),_&&(S+="skewX("+_+"deg) "),P&&(S+="skewY("+P+"deg) "),m&&(S+="rotate("+m+"deg) "),g&&(S+="rotate("+g+"deg) "),b&&(S+="rotateY("+b+"deg) "),w&&(S+="rotateX("+w+"deg) "),y===s&&(y=1),M===s&&(M=1),1===y&&1===M||(S+="scale("+y+", "+M+") "),x===s&&(x=1),1!==x&&(S+="scaleZ("+x+") "),S||"translate3d(0, 0, 0)"}g(){let{n2blur:t}=this.v,i="";return t>.1&&(i="blur("+t+"px) "),i||"none"}_(t,i){for(let n of this.l)(n.relatedLayer||n).setAttribute(t,i)}P(t){for(let i of this.l)(i.relatedLayer||i).removeAttribute(t)}setValues(t){for(var i in t)this[i]=t[i]}}class a{constructor(t,i){this.O=[];for(var n=0;n<t.length;n++)t[n]&&this.O.push(b.k(t[n],i))}setValues(t){for(var i=0;i<this.O.length;i++)this.O[i].setValues(t)}}var c={},l=function(t){Object.defineProperty(a.prototype,t,{get:function(){return this.O[0][t]},set:function(i){i instanceof Function&&(i=i());for(var n=0;n<this.O.length;n++)this.O[n][t]=i}})},v=function(t,i,n){Object.getOwnPropertyDescriptor(h.prototype,t)||(i===s&&(i=""),n===s&&(n=t),c[n]===s&&(c[n]=[]),c[n].push(t),o[t]=i,Object.defineProperty(h.prototype,t,{get:function(){return this.v[t]===s&&(this.v[t]=o[t]),this.v[t]},set:function(i){i instanceof Function&&(i=i()),this.v[t]!==i&&(this.v[t]=i,this.p.add(n),r.add(this))}}),l(t))},d=function(t,i){Object.defineProperty(h.prototype,t,{get:function(){return this[i]},set:function(t){this[i]=t}}),l(t)};v("property"),v("display"),v("z-index",1),v("overflow","visible"),v("overflow-x","visible"),v("backface-visibility","visible"),v("transform-origin","50% 50% 0"),v("opacity",1),v("width",0),v("height",0),v("justify-content"),v("background"),v("color"),v("will-change",""),v("stroke-dasharray",""),v("visibility"),v("perspective",0),v("transform-style"),v("cursor",""),v("top"),v("right"),v("bottom"),v("left");var p="transform";v("force3D",0,p),v("transformPerspective",0,p),v("xP",0,p),v("yP",0,p),v("x",0,p),v("y",0,p),v("z",0,p),v("xAbs",0,p),v("yAbs",0,p),v("xPAbs",0,p),v("yPAbs",0,p),v("scaleX",1,p),v("scaleY",1,p),v("scaleZ",1,p),v("rotationZ",0,p),v("rotationX",0,p),v("rotationY",0,p),v("skewX",0,p),v("skewY",0,p),v("layerRotation",0,p),v("n2blur",0,"filter"),v("n2AutoAlpha",0),d("zIndex","z-index"),d("backfaceVisibility","backface-visibility"),d("transformOrigin","transform-origin"),d("justifyContent","justify-content"),d("transformStyle","transform-style"),d("overflowX","overflow-x"),d("clipPath","clip-path");var m={0:function(t){this.classList.add(t)},1:function(t){this.classList.remove(t)}};class g{constructor(i){t(i)?this.l=Array.from(i):this.l=[i],this.S=[]}addClass(t){this.S.push([0,t]),r.add(this)}removeClass(t){this.S.push([1,t]),r.add(this)}render(){for(var t=0;t<this.S.length;t++){var i=this.S[t];for(let t of this.l)m[i[0]].apply(t,i.splice(1))}this.S=[]}}var b=u.MW={A:v,k:function(t,i){return t.smw||(t.smw=new h(t,i)),t.smw},C:function(t,i){for(var n=[],s=0;s<t.length;s++)n.push(b.k(t[s],i));return n},D:function(t,i){return new a(t,i)},R:function(t,i){t.forEach((function(t){t.setValues(i)}))},T:function(t,i){i.forEach((function(i){c[i]&&c[i].forEach((function(i){t[i]=o[i]}))}))},j:function(t,i){r.add((function(){t.className.add(i)}))},F:function(t,i){r.add((function(){t.className.remove(i)}))},N:function(t){r.add(t)},I:function(t){return t.umw||(t.umw=new g(t)),t.umw},flush(){r.u()}}}(),customElements.define("ss3-force-full-width",class extends HTMLElement{connectedCallback(){if(this.isConnected){n=n||r.body,this.L="rtl"===o.getAttribute("dir"),this._width=0,this._offset=Number.MAX_SAFE_INTEGER,this.X=u.MW.k(this,{x:Number.MAX_SAFE_INTEGER,opacity:0});var t=l(this,"overflowX");t&&"none"!==t&&r.querySelectorAll(t).forEach((function(t){u.MW.k(t).overflowX="hidden"}));var s=n;if(i.ssForceFullHorizontalSelector)s=i.ssForceFullHorizontalSelector;else{var h=l(this,"horizontalSelector");if(h&&"body"!==h)try{s=this.closest(h)}catch(t){}}if(s===n)for(var a=[".elementor-section-stretched",'.siteorigin-panels-stretch[data-stretch-type="full-stretched"]','.siteorigin-panels-stretch[data-stretch-type="full-stretched-padded"]',".themify_builder_row.fullwidth",'.vce-row[data-vce-stretch-content="true"]'],c=0;c<a.length;c++){var f=this.closest(a[c]);if(f){s=f;break}}this.fullWidthTo=s,this.resizeObserver=new ResizeObserver(this.doResize.bind(this)),this.resizeObserver.observe(this.parentNode),i.addEventListener("resize",this.doResize.bind(this))}}doResize(){var t=0,s=0;if(this.fullWidthTo){var r=this.fullWidthTo.getBoundingClientRect();s=r.width,t=this.L?-s+r.right:r.left}var o,h,a=s>0?s:n.clientWidth,u=i.getComputedStyle(this.parentNode);o=this.L?a-this.parentNode.getBoundingClientRect().right-parseInt(u.getPropertyValue("padding-right"))-parseInt(u.getPropertyValue("border-right-width"))+t:-this.parentNode.getBoundingClientRect().left-parseInt(u.getPropertyValue("padding-left"))-parseInt(u.getPropertyValue("border-left-width"))+t,o+=h=o%1,a-=Math.floor(h),(this._width-a<=0||this._width-a>1||this._offset-o<-1||this._offset-o>=0)&&(this._offset!==o&&(this.X.x=o,this._offset=o,0!==o&&this.classList.add("n2-ss-no-bga-fixed")),this._width!==a&&(this.X.width=a,this._width=a)),this.setVisible&&this.setVisible()}setVisible(){this.X.opacity=1,delete this.setVisible}}),customElements.define("ss3-loader",class extends HTMLElement{connectedCallback(){this.B=[]}set display(t){this.V!==t&&(this.V=t,this.style.display=t)}show(){this.display="grid"}addPromise(t){this.B.push(t),this.syncStyle(),t.finally(this.removePromise.bind(this,t))}removePromise(t){var i=this.B.indexOf(t);i>-1&&(this.B.splice(i,1),this.syncStyle())}syncStyle(){this.B.length?this.Y||(this.Y=h(this.show.bind(this),100)):(this.Y&&(a(this.Y),delete this.Y),this.display="")}});var b,w="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;i.n2const={devicePixelRatio:i.devicePixelRatio||1,isFirefox:/Firefox/i.test(navigator.userAgent),isIOS:/iPad|iPhone|iPod/.test(navigator.platform)||w,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent)||w,isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isSamsungBrowser:navigator.userAgent.match(/SamsungBrowser/i),isBot:/bot|googlebot|crawler|spider|robot|crawling|Google Search Console/i.test(navigator.userAgent),isLighthouse:navigator.userAgent.indexOf("Chrome-Lighthouse")>-1,lightboxMobileNewTab:1,isVideoAutoplayAllowed:function(){var t=!!(navigator.platform.match(/(Win|Mac)/)||!/Mobi/.test(navigator.userAgent)||"playsInline"in c("video")||"webkit-playsinline"in c("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=53||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return i.n2const.isVideoAutoplayAllowed=function(){return t},t},isWaybackMachine:function(){var t=void 0!==i.__wm;return i.n2const.isWaybackMachine=function(){return t},t},setLocation:function(t){"function"==typeof i.zajax_goto?i.zajax_goto(t):i.location=t},isParentSameOrigin:function(){try{return parent.document,!0}catch(t){}return!1},activeElementBlur:function(){r.activeElement&&r.activeElement.blur()},getScrollbarSize:function(){var t=c("div");t.style.visibility="hidden",t.style.overflow="scroll",n.appendChild(t);var i=t.offsetHeight-t.clientHeight;return n.removeChild(t),n2const.getScrollbarSize=function(){return i},i},fonts:new Promise((function(t){if("fonts"in r){r.fonts.ready.then(t);const i=navigator.userAgent;i.indexOf("Safari")>0&&-1===i.indexOf("Chrome")&&u.r("windowLoad",t)}else u.r("windowLoad",t)}))},i.n2const.isTablet=!i.n2const.isPhone&&(/Android|iPad|tablet|Silk/i.test(navigator.userAgent)||w),i.n2const.rtl=(i.n2const.isRTL=function(){return i.n2const.rtl.isRtl},"rtl"===o.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft","margin-left":"margin-right","margin-right":"margin-left",left:"right",right:"left",modifier:-1}:{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight","margin-left":"margin-left","margin-right":"margin-right",left:"left",right:"right",modifier:1}),u._triggerResize=(b=null,function(){b&&a(b),b=h((function(){d(i,"resize"),b=null}),100)}),u._shouldPreventClick=!1,u._preventClick=function(){u._shouldPreventClick||(u._shouldPreventClick=!0,h((function(){u._shouldPreventClick=!1}),300))},u.d("ImagesLoaded",(function(){return function(t){var i,n=[];i="IMG"===t.tagName?[t]:t.querySelectorAll("img");for(var s=0;s<i.length;s++){var r=i[s];r.loading="eager",r.complete?r.naturalWidth||n.push(new Promise(function(t){h(t,16)}.bind(r))):n.push(new Promise(function(t,i){this.addEventListener("load",(function(){t()})),this.addEventListener("error",(function(){i()}))}.bind(r)))}return Promise.all(n)}})),u.d("UniversalPointer",(function(){var t=!!i.PointerEvent,n=!!i.TouchEvent;function r(t,i){this.el=t,this.handler=i,this.preventMouse=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function c(i,s,h){var a=this.context=new r(i,s);a.addGlobalEventListener("click",(function(e){a.preventMouse||a.click(e)})),t?a.addGlobalEventListener("pointerdown",(function(t){t.isPrimary&&(a.startComplexInteraction(t.currentTarget),a.addLocalEventListener(o,"pointerup",(function(i){i.isPrimary&&t.pointerId===i.pointerId&&(Math.abs(i.clientX-t.clientX)<10&&Math.abs(i.clientY-t.clientY)<10?a.click(i):a.clear(),a.endComplexInteraction())})))})):n&&a.addGlobalEventListener("touchstart",(function(t){a.clearTimeouts(),a.startComplexInteraction(t.currentTarget),a.addLocalEventListener(o,"touchend",(function(i){Math.abs(i.changedTouches[0].clientX-t.changedTouches[0].clientX)<10&&Math.abs(i.changedTouches[0].clientY-t.changedTouches[0].clientY)<10?a.click(i):a.clear(),a.endComplexInteraction()}),{passive:!0})}),{passive:!0})}function l(t,i,n){this.el=t,this.handler=i,this.leaveOnSecond=n,this.preventMouse=!1,this.isActive=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function d(i,s,r){r=f({leaveOnSecond:!1},r);var a=this.context=new l(i,s,r.leaveOnSecond);t?(a.addGlobalEventListener("pointerenter",(function(e){e.isPrimary&&(a.clearTimeouts(),a.enter(e)&&"mouse"!==e.pointerType&&(a.addLocalEventListener(o,"pointerdown",(function(e){e.isPrimary&&a.testLeave(e.target)})),a.addTimeout(h((function(){a.leave()}),5e3))))})),a.addGlobalEventListener("pointerleave",(function(e){e.isPrimary&&"mouse"===e.pointerType&&a.leave()}))):(a.addGlobalEventListener("mouseenter",(function(e){a.preventMouse||a.enter(e)})),a.addGlobalEventListener("mouseleave",(function(){a.preventMouse||a.leave()})),n&&a.addGlobalEventListener("touchstart",(function(e){a.preventMouse=!0,a.clearTimeouts(),a.enter(e)&&(a.addLocalEventListener(o,"touchstart",(function(e){a.testLeave(e.target)})),a.addTimeout(h((function(){a.leave(),a.preventMouse=!1}),5e3)))}),{passive:!0}))}r.prototype.addTimeout=function(t){this.timeouts.push(t)},r.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)a(this.timeouts[t]);this.timeouts=[]},r.prototype.click=function(e){this.currentTarget!==s&&(e={currentTarget:this.currentTarget,target:this.el}),this.handler.call(this.el,e),this.clear()},r.prototype.clear=function(){for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3])},r.prototype.addGlobalEventListener=function(t,i,n){this.globalListeners.push(p(this.el,t,i,n))},r.prototype.addLocalEventListener=function(t,i,n,s){this.localListeners.push([t,i,n,s]),t.addEventListener(i,n,s)},r.prototype.remove=function(){this.clear(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.globalListeners[t]();delete this.globalListeners},r.prototype.startComplexInteraction=function(t){this.clearTimeouts(),this.preventMouse=!0,this.currentTarget=t},r.prototype.endComplexInteraction=function(){delete this.currentTarget,this.addTimeout(h(function(){this.preventMouse=!1}.bind(this),1e3))},c.prototype.remove=function(){this.context.remove(),delete this.context},u.UniversalClick=c,l.prototype.enter=function(e){return this.leaveOnSecond&&this.isActive?(this.leave(),!1):(this.handler.apply(this.el,arguments),this.isActive=!0,!0)},l.prototype.leave=function(){this.clearTimeouts();for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3]);var i;this.isActive=!1,i=this.el,v(i,new Event("universalleave",{bubbles:!1,cancelable:!1}))},l.prototype.testLeave=function(t){!this.el===t&&this.el.contains(t)&&this.leave()},l.prototype.addTimeout=function(t){this.timeouts.push(t)},l.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)a(this.timeouts[t]);this.timeouts=[]},l.prototype.addGlobalEventListener=function(t,i,n){this.globalListeners.push(p(this.el,t,i,n))},l.prototype.remove=function(){this.isActive&&this.leave(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.globalListeners[t]();delete this.globalListeners},l.prototype.addLocalEventListener=function(t,i,n,s){this.localListeners.push([t,i,n,s]),t.addEventListener(i,n,s)},d.prototype.remove=function(){this.context.remove(),delete this.context},u.UniversalEnter=d})),u.d("EventBurrito",(function(){var t=function(){return!0},o=!1;return function(a,u){var c={preventDefault:!0,preventScroll:!1,mouse:!0,axis:"x",start:t,move:t,end:t,click:t};f(c,u);var l,v,m,g,b={pointerEvents:!(n2const.isIOS&&i.TouchEvent||!i.PointerEvent&&!i.PointerEventsPolyfill)},w={},y={},M=[],x=!0,_=b.pointerEvents?1:0,P=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel","pointerleave"],["mousedown","mousemove","mouseup","","mouseleave"]],O=[function(e){return e.touches&&e.touches.length>1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!c.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return e.buttons&&1!==e.buttons}],k=function(t,i){var n=t.tagName;return"INPUT"===n||"TEXTAREA"===n||"SELECT"===n||"BUTTON"===n||"VIDEO"===n||t.classList.contains("n2_container_scrollable")||t.closest(".n2_container_scrollable")};function S(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function E(t){y={x:(g?t.clientX:t.touches[0].clientX)-w.x,y:(g?t.clientY:t.touches[0].clientY)-w.y,time:Date.now()}}function A(e,t){if((e.isPrimary===s||e.isPrimary)&&!o&&(l=[],x=!0,!O[g=t](e)&&!k(e.target)))if(("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&e.target.closest(".n2-ss-text")){var i=p(e.target,"click",(function(t){i(),Math.abs(e.clientX-t.clientX)<10&&Math.abs(e.clientY-t.clientY)<10&&d(e.target,"n2click")}));h(i,2e3)}else o=!0,0!==g&&l.push(p(r,P[g][1],C,{passive:!1,capture:!0})),l.push(p(r,P[g][2],R,{passive:!1,capture:!0})),l.push(p(r,P[g][3],R,{passive:!1,capture:!0})),l.push(p(n,P[g][4],D,{passive:!1,capture:!0})),w={x:g?e.clientX:e.touches[0].clientX,y:g?e.clientY:e.touches[0].clientY,time:Date.now()},v=s,m=!1,y={x:0,y:0},c.start(e,w),C(e)}function C(t){(t.isPrimary===s||t.isPrimary)&&("x"===c.axis&&(!c.preventScroll&&v||O[g](t))||k(t.target)||(E(t),(Math.abs(y.x)>10||Math.abs(y.y)>10)&&(x=!1),v===s&&2!==g&&(v=Math.abs(y.x)<Math.abs(y.y)&&!c.preventScroll)||c.move(t,w,y,m)&&c.preventDefault&&S(t)))}function D(t){t.target===t.currentTarget&&R(t)}function R(t){if(t.isPrimary===s||t.isPrimary){g&&E(t),!x&&t.target&&t.target.blur&&t.target.blur();for(var i=l.length-1;i>=0;i--)l[i]();l=null,c.end(t,w,y,m),m=!1,o=!1}}return M.push(p(r,"scroll",(function(){i.nextendScrollFocus!==s&&i.nextendScrollFocus||(m=!0)}))),1===_&&(a.style.touchAction="y"===c.axis?"pan-x":"pan-y"),M.push(p(a,P[_][0],(function(e){A(e,_)}),{passive:!1,capture:!0})),0===_&&M.push(p(a,P[0][1],(function(e){C(e)}),{passive:!1,capture:!0})),M.push(p(a,"dragstart",S)),c.mouse&&0===_&&M.push(p(a,P[2][0],(function(e){A(e,2)}))),M.push(p(a,"click",(function(t){x?c.click(t):S(t)}))),{supportsPointerEvents:b.pointerEvents,getClicksAllowed:function(){return x},kill:function(){for(var t=M.length-1;t>=0;t--)M[t]()}}}})),function(){var t,n=!1,s=-1,r=new Set,o=new Set,a=i.requestAnimationFrame||(t=0,function(i){var n=(new Date).getTime(),s=Math.max(0,16-(n-t));return t=n+s,h((function(){i(n+s)}),s)});function c(t){s=t,n&&(s=t,a(f))}function f(t){if(n&&0===r.size&&0===o.size)s=-1,n=!1;else if(-1!==s){var i=(t-s)/1e3;0!==i&&(r.forEach((function(t){t(i)})),o.forEach((function(t){t()})))}!function(t){n&&(s=t,a(f))}(t)}u.t={addP:function(t){r.add(t),n||(n=!0,a(c))},removeP:function(t){r.delete(t)},add:function(t){o.add(t),n||(n=!0,a(c))},remove:function(t){o.delete(t)}}}(),u.d("Animation",(function(){function t(t){this._tickCallback=null,this._progress=0,this._delayTimeout=!1,this._delay=0,this._duration=4,this._timeScale=1,this._isPlaying=!1,this._startTime=0,this._eventCallbacks={},this._immediateRender=!0,this._timeline=null,this._isCompleted=!1,this._isStarted=!1,this._isReversed=!1,this.toParams=t,this.initParameters()}return t.prototype.initParameters=function(){this.parseParameters(this.toParams),"object"!=typeof this.toParams&&this.paused(!1)},t.prototype.parseParameters=function(t){t&&(t.delay&&(this.delay(t.delay),delete t.delay),t.duration!==s&&(this.duration(t.duration),delete t.duration),t.onComplete&&(this.eventCallback("onComplete",t.onComplete),delete t.onComplete),t.onStart&&(this.eventCallback("onStart",t.onStart),delete t.onStart),t.onUpdate&&(this.eventCallback("onUpdate",t.onUpdate),delete t.onUpdate),t.immediateRender&&(this._immediateRender=t.immediateRender,delete t.immediateRender),t.paused&&(this.paused(!0),delete t.paused))},t.prototype.setTimeline=function(t){this._timeline=t},t.prototype._tick=function(t){var i=this._progress;this._isReversed?(this._progress-=t/this._duration*this._timeScale,1!=i&&this._isStarted?this._progress<=0?(this._progress=0,this._isPlaying=!1,u.t.removeP(this.getTickCallback()),this._onUpdate(),this._onReverseComplete()):this._onUpdate():this._onReverseStart()):(this._progress+=t/this._duration*this._timeScale,0!=i&&this._isStarted?this._progress>=1?(this._progress=1,this._isPlaying=!1,u.t.removeP(this.getTickCallback()),this._onUpdate(),this._onComplete()):this._onUpdate():this._onStart())},t.prototype._onStart=function(){this._isStarted=!0,this._isCompleted=!1,this._dispatch("onStart"),this._onUpdate()},t.prototype._onUpdate=function(){this._dispatch("onUpdate")},t.prototype._onComplete=function(){this._isCompleted=!0,this._onUpdate(),this._dispatch("onComplete")},t.prototype._onReverseComplete=function(){this._isCompleted=!0,this._isReversed=!1,this._onUpdate(),this._dispatch("onReverseComplete")},t.prototype._onReverseStart=function(){this._isStarted=!0,this._isCompleted=!1,this._dispatch("onReverseStart"),this._onUpdate()},t.prototype.getTickCallback=function(){if(!this._tickCallback){var t=this;this._tickCallback=function(){t._tick.apply(t,arguments)}}return this._tickCallback},t.prototype._clearDelayTimeout=function(){this._delayTimeout&&(a(this._delayTimeout),this._delayTimeout=!1)},t.prototype._timeToProgress=function(t){return t/this._duration*this._timeScale},t.prototype.delay=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._delay=Math.max(0,t),this}return this._delay},t.prototype.duration=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._duration=Math.max(0,t),this}return this._duration},t.prototype.eventCallback=function(t){return arguments.length>3?this._eventCallbacks[t]=[arguments[1],arguments[2],arguments[3]]:arguments.length>2?this._eventCallbacks[t]=[arguments[1],arguments[2],this]:arguments.length>1&&(this._eventCallbacks[t]=[arguments[1],[],this]),this._eventCallbacks[t]},t.prototype.pause=function(){return this._isPlaying=!1,u.t.removeP(this.getTickCallback()),arguments.length>0&&null!=arguments[0]&&this.progress(this._timeToProgress(arguments[0])),this},t.prototype.paused=function(){return arguments.length>0?(arguments[0]?this._isPlaying&&this.pause():this._isPlaying||this.play(),this):!this._isPlaying},t.prototype.play=function(){var t=!0;arguments.length>0&&null!=arguments[0]&&(t=!1,this._progress=this._timeToProgress(arguments[0])),this._play(t)},t.prototype._play=function(t){if(this._progress<1)if(0==this._progress&&t&&this._delay>0){if(!this._delayTimeout){var i=this;this._delayTimeout=h((function(){i.__play.apply(i,arguments)}),1e3*this._delay)}}else this.__play();else this._isCompleted||(this._isReversed?this._onReverseComplete():this._onComplete())},t.prototype.__play=function(){this._clearDelayTimeout(),this._isPlaying||(u.t.addP(this.getTickCallback()),this._isPlaying=!0)},t.prototype.progress=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.min(1,Math.max(0,t)),this._progress=t,this._isPlaying||(this._isStarted||this._onStart(),this._onUpdate()),this}return this._progress},t.prototype.reverse=function(){this._isReversed=!0,0!=this.progress()&&this.play()},t.prototype.restart=function(){return arguments.length>0&&arguments[0]?(this.pause(0),this.play(),this):(this.play(0),this)},t.prototype.seek=function(t){null!=t&&(this._progress=this._timeToProgress(arguments[0]),this._isPlaying||this._onUpdate())},t.prototype.startTime=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),this._startTime=Math.max(0,t),this}return this._startTime},t.prototype.timeScale=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=1),t=Math.max(.01,t),this._timeScale!=t&&(this._timeScale=t),this}return this._timeScale},t.prototype._dispatch=function(t){"object"==typeof this._eventCallbacks[t]&&this._eventCallbacks[t][0].apply(this._eventCallbacks[t][2],this._eventCallbacks[t][1])},t.prototype.totalDuration=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.max(0,t),this.timeScale(this._duration/t),this}return this._duration*this._timeScale},t.prototype.reset=function(){this._isCompleted=!1,this._isStarted=!1,this.progress(0)},t})),u.d("Tween",(function(){var t=2,i=3,n=function(t){return Symbol.iterator in Object(t)};function r(s,r){var o,h;switch(this.ease="linear",this._tweenContainer=null,this._setContainer=null,this._roundProps={},arguments.length){case 4:o=arguments[2],h=arguments[3],this._mode=t;break;default:this._mode=i,o={},h=arguments[2]}if(n(s)||(s=[s]),this._target=s,this.fromParams=o,u.Animation.call(this,h),this.parseParameters({duration:r}),this._mode===t&&this._immediateRender){for(var a in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._tweenContainer){var c=this._tweenContainer[a];this._target.forEach((function(t){t[a]=c.unit?c.startValue+c.unit:c.startValue}))}for(var a in this._setContainer){c=this._setContainer[a];this._target.forEach((function(t){t[a]=c.unit?c.endValue+c.unit:c.endValue}))}}}function o(t){var i=[t,""];t=String(t);var n=parseFloat(t);return isNaN(n)||(i[0]=n,i[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||""),i}function h(t,i,n,r){n===s&&(n=t[0][i]),r===s&&(r=t[0][i]),n=o(n);var h=0;return""!==(r=o(r))[1]&&n[1]!==r[1]&&(n[0]=0,n[1]=r[1]),"number"==typeof n[0]&&"number"==typeof r[0]&&(h=r[0]-n[0]),{startValue:n[0],endValue:r[0],unit:r[1],range:h}}return r.prototype=Object.create(u.Animation.prototype),r.prototype.constructor=r,r.prototype.initParameters=function(){this.parseParameters(this.fromParams),u.Animation.prototype.initParameters.apply(this,arguments)},r.prototype.parseParameters=function(t){t&&(t.ease&&(this.ease=t.ease,delete t.ease),u.Animation.prototype.parseParameters.apply(this,arguments))},r.prototype._onStart=function(){for(var t in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._setContainer){var i=this._setContainer[t];this._target.forEach((function(n){n[t]=i.unit?i.endValue+i.unit:i.endValue}))}u.Animation.prototype._onStart.call(this)},r.prototype._onUpdate=function(){for(var t in this._tweenContainer){var i=this._tweenContainer[t],n=u.Easings[this.ease]?u.Easings[this.ease](this._progress):this._progress,s=i.startValue+i.range*n;this._roundProps[t]&&(s=Math.round((10*s|0)/10)),this._target.forEach((function(n){n[t]=i.unit?s+i.unit:s}))}u.Animation.prototype._onUpdate.call(this)},r.prototype.initRoundProps=function(t){for(var i=t.split(","),n=0;n<i.length;n++)this._roundProps[i[n]]=!0},r.prototype._makeTweenContainer=function(t,i){for(var n in t.snap!==s&&(this.initRoundProps(t.snap),delete t.snap),this._setContainer={},this._tweenContainer={},i.snap!==s&&(this.initRoundProps(i.snap),delete i.snap),i){var r=h(this._target,n,t[n],i[n]);0==r.range?this._setContainer[n]=r:this._tweenContainer[n]=r}},r.to=function(t,i,n){var o=new r(t,i,n);return n.paused!==s&&n.paused||o.play(),o},r.fromTo=function(t,i,n,o){var h=new r(t,i,n,o);return o.paused!==s&&o.paused||h.play(),h},u.W=r,r})),u.d("Timeline",(function(){function t(t){this.originalParams=f({},t),this._tweens=[],u.Animation.call(this,t),this._duration=0}return t.prototype=Object.create(u.Animation.prototype),t.prototype.constructor=t,t.prototype._onUpdate=function(){if(this.tweensContainer)for(var t=0;t<this.tweensContainer.length;t++){var i=this.tweensContainer[t],n=Math.min(1,(this._progress-i.startProgress)/(i.endProgress-i.startProgress));i.tween._isCompleted&&n<=i.endProgress&&i.tween.reset(),!i.tween._isStarted&&n>=0&&0==i.tween.progress()&&i.tween._onStart(),i.tween._isStarted&&(1!=n||i.tween._isCompleted?n>=0&&n<1?i.tween.progress(n):n<0&&0!=i.tween.progress()&&i.tween.progress(0):(i.tween.progress(n),i.tween._onComplete()))}u.Animation.prototype._onUpdate.call(this)},t.prototype.addTween=function(t){t.pause(),t.setTimeline(this);var i=0;i=arguments.length>1?this._parsePosition(arguments[1]):this._parsePosition();var n=t.delay();n>0&&(i+=n,t.delay(0)),t.startTime(i),this._tweens.push(t);var s=t.totalDuration()+i;s>this._duration&&(this._duration=s),this.makeCache()},t.prototype.clear=function(){this.paused()||this.pause(),t.call(this,this.originalParams)},t.prototype.add=function(t,i){this.addTween(t,i)},t.prototype.set=function(t,i,n){this.addTween(u.W.to(t,.05,i),n)},t.prototype.to=function(t,i,n,s){n.paused=!0,this.addTween(u.W.to(t,i,n),s)},t.prototype.fromTo=function(t,i,n,s,r){s.paused=!0,this.addTween(u.W.fromTo(t,i,n,s),r)},t.prototype._play=function(){if(0==this._progress)for(var t=0;t<this._tweens.length;t++)this._tweens[t].pause(0);u.Animation.prototype._play.apply(this,arguments)},t.prototype._parsePosition=function(){var t="+=0";arguments.length>0&&arguments[0]!==s&&!isNaN(arguments[0])&&(t=arguments[0]);var i=0;switch(typeof t){case"string":switch(t.substr(0,2)){case"+=":i=this.duration()+parseFloat(t.substr(2));break;case"-=":i=this.duration()-parseFloat(t.substr(2))}break;default:i=parseFloat(t)}return Math.max(0,i)},t.prototype.makeCache=function(){var t=this.totalDuration();this.tweensContainer=[];for(var i=0;i<this._tweens.length;i++){var n=this._tweens[i],s=n.startTime()/t,r=(n.startTime()+n.totalDuration())/t;this.tweensContainer.push({tween:n,startProgress:s,endProgress:r,range:r-s})}},u.q=t,t})),u.d("Easings",(function(){var t={Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var i,n=4;t<((i=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*i-2)/22-t,2)}};["Quad","Cubic","Quart","Quint","Expo"].forEach((function(i,n){t[i]=function(t){return Math.pow(t,n+2)}}));var i={};for(var n in t)!function(t,n){i["easeIn"+t]=n,i["easeOut"+t]=function(t){return 1-n(1-t)},i["easeInOut"+t]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}}(n,t[n]);return i})),u.d("nextend-frontend"),u.d("n2")}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s,r=t.document,o=r.documentElement,h=t.setTimeout,a=t.clearTimeout,u=i._N2,c=(t.requestAnimationFrame,function(t,i=null,n=null,s=null){const o=r.createElement(t);return i&&("string"==typeof i?g(o,i):b(o,i)),n&&v(o,n),s&&m(o,s),o}),f=Object.assign,l=function(t,i,n){t.setAttribute(i,n)},v=function(t,i){for(var n in i)l(t,n,i[n])},d=function(t,i){return t.dataset[i]},p=function(t,i,n){t.dataset[i]=n},m=function(t,i){for(let n in i)p(t,n,i[n])},g=function(t,i){t.classList.add(i)},b=function(t,i){i.forEach((function(i){t.classList.add(i)}))},w=function(t,i){return t.dispatchEvent(i)},y=function(t,i,n){return n=f({bubbles:!0,cancelable:!0},n),w(t,new Event(i,n))},M=function(t,i,n,s){return s=s||{},t.addEventListener(i,n,s),t.removeEventListener.bind(t,i,n,s)},x=function(t){"complete"===r.readyState||"interactive"===r.readyState?t():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==r.addEventListener?Document.prototype.addEventListener.call(r,"DOMContentLoaded",t):r.addEventListener("DOMContentLoaded",t)},_=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return h(t,1)};i.cancelIdleCallback;x((function(){n=r.body})),function(){"use strict";var t={},n={};i.n2Slow=navigator.userAgent.indexOf("Chrome-Lighthouse")>-1&&navigator.userAgent.indexOf("Android")>-1;var r=[],o=!1;function a(){var t=performance.now(),n=r;r=[];for(var s=n.length-1;s>=0&&(n.pop().call(),!(performance.now()-t>7));s--);!i.n2Slow&&n.length&&(i.n2Slow=!0),n.unshift.apply(n,r),(r=n).length?_(a,{timeout:2e3}):o=!1}function f(t){r.unshift(t),o||(o=!0,_(a,{timeout:2e3}))}var l=new Date,v=function(){if(i.jQuery){var $=i.jQuery;u.d("$",(function(){return $}))}else{if(h(v,20),(new Date).getTime()-l.getTime()>1e3)c("script").src=u._jQueryFallback}};function d(i){return!(!i||t[i]!==s)&&(t[i]=new Promise((function(t){n[i]=t})),"$"===i&&v(),!0)}function p(i,s,r){var o=[];if(d(i)||n[i]){if("function"==typeof s?(r=s,s=[]):"string"==typeof s&&(s=[s]),(s=s||[]).length)for(var h=0;h<s.length;h++)d(s[h]),o.push(t[s[h]]);Promise.all(o).then(function(t){u[i]="function"!=typeof r||r.call(u),t()}.bind(this,n[i])),delete n[i]}}function m(i,n){var r=[];if(n===s?(n=i,i=[]):"string"==typeof i&&(i=[i]),i=i||[])for(var o=0;o<i.length;o++)d(i[o]),r.push(t[i[o]]);Promise.all(r).then((function(){n.call(u)}))}i.N2DISABLESCHEDULER?(u.d=p,u.r=m):(u.d=function(t,i,n){f(p.bind(this,t,i,n))},u.r=function(t,i){f(m.bind(this,t,i))});for(var g=0;g<this._N2._d.length;g++)u.d.apply(this,this._N2._d[g]);for(var b=0;b<this._N2._r.length;b++)u.r.apply(this,this._N2._r[b])}.call(i),i.NextendThrottle=function(t,i){var n,s;return i||(i=250),function(){var r=this,o=+new Date,u=arguments;n&&o<n+i?(a(s),s=h((function(){n=o,t.apply(r,u)}),i)):(n=o,t.apply(r,u))}},i.NextendDeBounce=function(t,i,n){var s;return function(){var r=this,o=arguments,u=function(){s=null,n||t.apply(r,o)},c=n&&!s;a(s),s=h(u,i),c&&t.apply(r,o)}},u.r("nextend-frontend",(function(){if(x((function(){u.d("documentReady")})),"complete"===r.readyState)u.d("windowLoad");else{let s;const o=navigator.userAgent;o.indexOf("Safari")>0&&-1===o.indexOf("Chrome")&&(s=setInterval((function(){"interactive"!==r.readyState&&"complete"!==r.readyState||(u.d("windowLoad"),clearInterval(s))}),2e3)),t="load",n=function(){u.d("windowLoad"),clearInterval(s)},i.addEventListener(t,n,{once:!0})}var t,n})),i.ResizeObserver||(i.ResizeObserver=function(){"use strict";var t=function(){if("undefined"!=typeof Map)return Map;function t(t,i){var n=-1;return t.some((function(t,s){return t[0]===i&&(n=s,!0)})),n}return function(){function i(){this.__entries__=[]}return Object.defineProperty(i.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),i.prototype.get=function(i){var n=t(this.__entries__,i),s=this.__entries__[n];return s&&s[1]},i.prototype.set=function(i,n){var s=t(this.__entries__,i);~s?this.__entries__[s][1]=n:this.__entries__.push([i,n])},i.prototype.delete=function(i){var n=this.__entries__,s=t(n,i);~s&&n.splice(s,1)},i.prototype.has=function(i){return!!~t(this.__entries__,i)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(t,i){void 0===i&&(i=null);for(var n=0,s=this.__entries__;n<s.length;n++){var r=s[n];t.call(i,r[1],r[0])}},i}()}(),n=void 0!==i&&void 0!==r&&i.document===r,s="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:void 0!==i&&i.Math===Math?i:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(t){return h((function(){return t(Date.now())}),1e3/60)},a=2;function u(t,i){var n=!1,s=!1,r=0;function u(){n&&(n=!1,t()),s&&f()}function c(){o(u)}function f(){var t=Date.now();if(n){if(t-r<a)return;s=!0}else n=!0,s=!1,h(c,i);r=t}return f}var c=20,f=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,v=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=u(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var i=this.observers_,n=i.indexOf(t);~n&&i.splice(n,1),!i.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){n&&!this.connected_&&(r.addEventListener("transitionend",this.onTransitionEnd_),i.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(r,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(r.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(r.removeEventListener("transitionend",this.onTransitionEnd_),i.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&r.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var i=t.propertyName,n=void 0===i?"":i;f.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,i){for(var n=0,s=Object.keys(i);n<s.length;n++){var r=s[n];Object.defineProperty(t,r,{value:i[r],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||s},m=k(0,0,0,0);function g(t){return parseFloat(t)||0}function b(t){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return i.reduce((function(i,n){return i+g(t["border-"+n+"-width"])}),0)}function w(t){for(var i={},n=0,s=["top","right","bottom","left"];n<s.length;n++){var r=s[n],o=t["padding-"+r];i[r]=g(o)}return i}function y(t){var i=t.getBBox();return k(0,0,i.width,i.height)}function M(t){var i=t.clientWidth,n=t.clientHeight;if(!i&&!n)return m;var s=p(t).getComputedStyle(t),r=w(s),o=r.left+r.right,h=r.top+r.bottom,a=g(s.width),u=g(s.height);if("border-box"===s.boxSizing&&(Math.round(a+o)!==i&&(a-=b(s,"left","right")+o),Math.round(u+h)!==n&&(u-=b(s,"top","bottom")+h)),!_(t)){var c=Math.round(a+o)-i,f=Math.round(u+h)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(f)&&(u-=f)}return k(r.left,r.top,a,u)}var x="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"==typeof t.getBBox};function _(t){return t===p(t).document.documentElement}function P(t){return n?x(t)?y(t):M(t):m}function O(t){var i=t.x,n=t.y,s=t.width,r=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(o.prototype);return d(h,{x:i,y:n,width:s,height:r,top:n,right:i+s,bottom:r+n,left:i}),h}function k(t,i,n,s){return{x:t,y:i,width:n,height:s}}var S=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=P(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),E=function(){function t(t,i){var n=O(i);d(this,{target:t,contentRect:n})}return t}(),A=function(){function i(i,n,s){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof i)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=i,this.controller_=n,this.callbackCtx_=s}return i.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)||(i.set(t,new S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},i.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(t)&&(i.delete(t),i.size||this.controller_.removeObserver(this))}},i.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},i.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(i){i.isActive()&&t.activeObservations_.push(i)}))},i.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,i=this.activeObservations_.map((function(t){return new E(t.target,t.broadcastRect())}));this.callback_.call(t,i,t),this.clearActive()}},i.prototype.clearActive=function(){this.activeObservations_.splice(0)},i.prototype.hasActive=function(){return this.activeObservations_.length>0},i}(),C="undefined"!=typeof WeakMap?new WeakMap:new t,D=function(){function t(i){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=v.getInstance(),s=new A(i,n,this);C.set(this,s)}return t}();return["observe","unobserve","disconnect"].forEach((function(t){D.prototype[t]=function(){var i;return(i=C.get(this))[t].apply(i,arguments)}})),void 0!==s.ResizeObserver?s.ResizeObserver:D}()),u.StringHelper={capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(){var t=function(t){return Symbol.iterator in Object(t)},i={add:function(t){requestAnimationFrame(t)},remove:function(){}};u.t=u.t||i;var n,r=new class{constructor(){this.i=!1,this.o=new Set,this.h=this.u.bind(this)}add(t){this.o.add(t),this.i||(this.i=!0,u.t.add(this.h))}u(){for(let t of this.o)t.render?t.render():t();this.o.clear(),this.i=!1,u.t.remove(this.h)}},o={};n=/Safari/i.test(navigator.userAgent)&&!/Chrom[ei]/i.test(navigator.userAgent)?function(t,i,n,s){var r="";return s&&(t||i||n)?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":((t||i)&&(r+="translate("+(t||0)+"px, "+(i||0)+"px) "),n&&(r+="translateZ("+n+"px) "),r)}:function(t,i,n,s){return t||i||n?"translate3d("+(t||0)+"px, "+(i||0)+"px, "+(n||0)+"px) ":""};class h{constructor(i,n){t(i)?this.l=Array.from(i):this.l=[i],this.v=f({},n),this.p=new Set}get scale(){return this.scaleX}set scale(t){this.scaleX=t,this.scaleY=t}render(){for(let i of this.p){var t=this.v[i];switch(i){case"transform":t=this.m();break;case"filter":t=this.g();break;case"n2AutoAlpha":0===this.opacity?this.M||(this.M=!0,this._("data-force-hidden","")):this.M&&(this.M=!1,this.P("data-force-hidden"));continue;case"opacity":this.v.n2AutoAlpha&&(0===t?this.M||(this.M=!0,this._("data-force-hidden","")):this.M&&(this.M=!1,this.P("data-force-hidden")));break;case"width":case"height":case"perspective":"number"==typeof t&&(t+="px")}for(let n of this.l)n.style.setProperty(i,t)}this.p.clear()}m(){let{xP:t,yP:i,x:r,y:o,z:h,xAbs:a,yAbs:u,xPAbs:c,yPAbs:f,parallaxX:l,parallaxY:v,parallaxRotationX:d,parallaxRotationY:p,layerRotation:m,rotationZ:g,rotationY:b,rotationX:w,scaleX:y,scaleY:M,scaleZ:x,skewX:_,skewY:P,transformPerspective:O,force3D:k}=this.v,S="";return O&&(S+="perspective("+O+"px) "),(t||i)&&(S+="translate("+(t||0)+"%, "+(i||0)+"%) "),(a||u)&&(S+="translate("+(a||0)+"px, "+(u||0)+"px) "),(c||f)&&(S+="translate("+(c||0)+"%, "+(f||0)+"%) "),S+=n(r,o,h,k),_&&(S+="skewX("+_+"deg) "),P&&(S+="skewY("+P+"deg) "),m&&(S+="rotate("+m+"deg) "),g&&(S+="rotate("+g+"deg) "),b&&(S+="rotateY("+b+"deg) "),w&&(S+="rotateX("+w+"deg) "),y===s&&(y=1),M===s&&(M=1),1===y&&1===M||(S+="scale("+y+", "+M+") "),x===s&&(x=1),1!==x&&(S+="scaleZ("+x+") "),S||"translate3d(0, 0, 0)"}g(){let{n2blur:t}=this.v,i="";return t>.1&&(i="blur("+t+"px) "),i||"none"}_(t,i){for(let n of this.l)(n.relatedLayer||n).setAttribute(t,i)}P(t){for(let i of this.l)(i.relatedLayer||i).removeAttribute(t)}setValues(t){for(var i in t)this[i]=t[i]}}class a{constructor(t,i){this.O=[];for(var n=0;n<t.length;n++)t[n]&&this.O.push(b.k(t[n],i))}setValues(t){for(var i=0;i<this.O.length;i++)this.O[i].setValues(t)}}var c={},l=function(t){Object.defineProperty(a.prototype,t,{get:function(){return this.O[0][t]},set:function(i){i instanceof Function&&(i=i());for(var n=0;n<this.O.length;n++)this.O[n][t]=i}})},v=function(t,i,n){Object.getOwnPropertyDescriptor(h.prototype,t)||(i===s&&(i=""),n===s&&(n=t),c[n]===s&&(c[n]=[]),c[n].push(t),o[t]=i,Object.defineProperty(h.prototype,t,{get:function(){return this.v[t]===s&&(this.v[t]=o[t]),this.v[t]},set:function(i){i instanceof Function&&(i=i()),this.v[t]!==i&&(this.v[t]=i,this.p.add(n),r.add(this))}}),l(t))},d=function(t,i){Object.defineProperty(h.prototype,t,{get:function(){return this[i]},set:function(t){this[i]=t}}),l(t)};v("property"),v("display"),v("z-index",1),v("overflow","visible"),v("overflow-x","visible"),v("backface-visibility","visible"),v("transform-origin","50% 50% 0"),v("opacity",1),v("width",0),v("height",0),v("justify-content"),v("background"),v("color"),v("will-change",""),v("stroke-dasharray",""),v("visibility"),v("perspective",0),v("transform-style"),v("cursor",""),v("top"),v("right"),v("bottom"),v("left");var p="transform";v("force3D",0,p),v("transformPerspective",0,p),v("xP",0,p),v("yP",0,p),v("x",0,p),v("y",0,p),v("z",0,p),v("xAbs",0,p),v("yAbs",0,p),v("xPAbs",0,p),v("yPAbs",0,p),v("scaleX",1,p),v("scaleY",1,p),v("scaleZ",1,p),v("rotationZ",0,p),v("rotationX",0,p),v("rotationY",0,p),v("skewX",0,p),v("skewY",0,p),v("layerRotation",0,p),v("n2blur",0,"filter"),v("n2AutoAlpha",0),d("zIndex","z-index"),d("backfaceVisibility","backface-visibility"),d("transformOrigin","transform-origin"),d("justifyContent","justify-content"),d("transformStyle","transform-style"),d("overflowX","overflow-x"),d("clipPath","clip-path");var m={0:function(t){this.classList.add(t)},1:function(t){this.classList.remove(t)}};class g{constructor(i){t(i)?this.l=Array.from(i):this.l=[i],this.S=[]}addClass(t){this.S.push([0,t]),r.add(this)}removeClass(t){this.S.push([1,t]),r.add(this)}render(){for(var t=0;t<this.S.length;t++){var i=this.S[t];for(let t of this.l)m[i[0]].apply(t,i.splice(1))}this.S=[]}}var b=u.MW={A:v,k:function(t,i){return t.smw||(t.smw=new h(t,i)),t.smw},C:function(t,i){for(var n=[],s=0;s<t.length;s++)n.push(b.k(t[s],i));return n},D:function(t,i){return new a(t,i)},R:function(t,i){t.forEach((function(t){t.setValues(i)}))},T:function(t,i){i.forEach((function(i){c[i]&&c[i].forEach((function(i){t[i]=o[i]}))}))},j:function(t,i){r.add((function(){t.className.add(i)}))},F:function(t,i){r.add((function(){t.className.remove(i)}))},N:function(t){r.add(t)},I:function(t){return t.umw||(t.umw=new g(t)),t.umw},flush(){r.u()}}}(),customElements.define("ss3-force-full-width",class extends HTMLElement{connectedCallback(){if(this.isConnected){n=n||r.body,this.L="rtl"===o.getAttribute("dir"),this._width=0,this._offset=Number.MAX_SAFE_INTEGER,this.X=u.MW.k(this,{x:Number.MAX_SAFE_INTEGER,opacity:0});var t=d(this,"overflowX");t&&"none"!==t&&r.querySelectorAll(t).forEach((function(t){u.MW.k(t).overflowX="hidden"}));var s=n;if(i.ssForceFullHorizontalSelector)s=i.ssForceFullHorizontalSelector;else{var h=d(this,"horizontalSelector");if(h&&"body"!==h)try{s=this.closest(h)}catch(t){}}if(s===n)for(var a=[".elementor-section-stretched",'.siteorigin-panels-stretch[data-stretch-type="full-stretched"]','.siteorigin-panels-stretch[data-stretch-type="full-stretched-padded"]',".themify_builder_row.fullwidth",'.vce-row[data-vce-stretch-content="true"]'],c=0;c<a.length;c++){var f=this.closest(a[c]);if(f){s=f;break}}this.fullWidthTo=s,this.resizeObserver=new ResizeObserver(this.doResize.bind(this)),this.resizeObserver.observe(this.parentNode),i.addEventListener("resize",this.doResize.bind(this))}}doResize(){var t=0,s=0;if(this.fullWidthTo){var r=this.fullWidthTo.getBoundingClientRect();s=r.width,t=this.L?-s+r.right:r.left}var o,h,a=s>0?s:n.clientWidth,u=i.getComputedStyle(this.parentNode);o=this.L?a-this.parentNode.getBoundingClientRect().right-parseInt(u.getPropertyValue("padding-right"))-parseInt(u.getPropertyValue("border-right-width"))+t:-this.parentNode.getBoundingClientRect().left-parseInt(u.getPropertyValue("padding-left"))-parseInt(u.getPropertyValue("border-left-width"))+t,o+=h=o%1,a-=Math.floor(h),(this._width-a<=0||this._width-a>1||this._offset-o<-1||this._offset-o>=0)&&(this._offset!==o&&(this.X.x=o,this._offset=o,0!==o&&this.classList.add("n2-ss-no-bga-fixed")),this._width!==a&&(this.X.width=a,this._width=a)),this.setVisible&&this.setVisible()}setVisible(){this.X.opacity=1,delete this.setVisible}}),customElements.define("ss3-loader",class extends HTMLElement{connectedCallback(){this.B=[]}set display(t){this.V!==t&&(this.V=t,this.style.display=t)}show(){this.display="grid"}addPromise(t){this.B.push(t),this.syncStyle(),t.finally(this.removePromise.bind(this,t))}removePromise(t){var i=this.B.indexOf(t);i>-1&&(this.B.splice(i,1),this.syncStyle())}syncStyle(){this.B.length?this.Y||(this.Y=h(this.show.bind(this),100)):(this.Y&&(a(this.Y),delete this.Y),this.display="")}});var P,O="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;i.n2const={devicePixelRatio:i.devicePixelRatio||1,isFirefox:/Firefox/i.test(navigator.userAgent),isIOS:/iPad|iPhone|iPod/.test(navigator.platform)||O,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent)||O,isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isSamsungBrowser:navigator.userAgent.match(/SamsungBrowser/i),isBot:/bot|googlebot|crawler|spider|robot|crawling|Google Search Console/i.test(navigator.userAgent),isLighthouse:navigator.userAgent.indexOf("Chrome-Lighthouse")>-1,lightboxMobileNewTab:1,isVideoAutoplayAllowed:function(){var t=!!(navigator.platform.match(/(Win|Mac)/)||!/Mobi/.test(navigator.userAgent)||"playsInline"in c("video")||"webkit-playsinline"in c("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=53||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return i.n2const.isVideoAutoplayAllowed=function(){return t},t},isWaybackMachine:function(){var t=void 0!==i.__wm;return i.n2const.isWaybackMachine=function(){return t},t},setLocation:function(t){"function"==typeof i.zajax_goto?i.zajax_goto(t):i.location=t},isParentSameOrigin:function(){try{return parent.document,!0}catch(t){}return!1},activeElementBlur:function(){r.activeElement&&r.activeElement.blur()},getScrollbarSize:function(){var t,i,s,r=c("div",t,i,s);r.style.visibility="hidden",r.style.overflow="scroll",n.appendChild(r);var o=r.offsetHeight-r.clientHeight;return n.removeChild(r),n2const.getScrollbarSize=function(){return o},o},fonts:new Promise((function(t){if("fonts"in r){r.fonts.ready.then(t);const i=navigator.userAgent;i.indexOf("Safari")>0&&-1===i.indexOf("Chrome")&&u.r("windowLoad",t)}else u.r("windowLoad",t)}))},i.n2const.isTablet=!i.n2const.isPhone&&(/Android|iPad|tablet|Silk/i.test(navigator.userAgent)||O),i.n2const.rtl=(i.n2const.isRTL=function(){return i.n2const.rtl.isRtl},"rtl"===o.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft","margin-left":"margin-right","margin-right":"margin-left",left:"right",right:"left",modifier:-1}:{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight","margin-left":"margin-left","margin-right":"margin-right",left:"left",right:"right",modifier:1}),u._triggerResize=(P=null,function(){P&&a(P),P=h((function(){y(i,"resize"),P=null}),100)}),u._shouldPreventClick=!1,u._preventClick=function(){u._shouldPreventClick||(u._shouldPreventClick=!0,h((function(){u._shouldPreventClick=!1}),300))},u.d("ImagesLoaded",(function(){return function(t){var i,n=[];i="IMG"===t.tagName?[t]:t.querySelectorAll("img");for(var s=0;s<i.length;s++){var r=i[s];r.loading="eager",r.complete?r.naturalWidth||n.push(new Promise(function(t){h(t,16)}.bind(r))):n.push(new Promise(function(t,i){this.addEventListener("load",(function(){t()})),this.addEventListener("error",(function(){i()}))}.bind(r)))}return Promise.all(n)}})),u.d("UniversalPointer",(function(){var t=!!i.PointerEvent,n=!!i.TouchEvent;function r(t,i){this.el=t,this.handler=i,this.preventMouse=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function c(i,s,h){var a=this.context=new r(i,s);a.addGlobalEventListener("click",(function(e){a.preventMouse||a.click(e)})),t?a.addGlobalEventListener("pointerdown",(function(t){t.isPrimary&&(a.startComplexInteraction(t.currentTarget),a.addLocalEventListener(o,"pointerup",(function(i){i.isPrimary&&t.pointerId===i.pointerId&&(Math.abs(i.clientX-t.clientX)<10&&Math.abs(i.clientY-t.clientY)<10?a.click(i):a.clear(),a.endComplexInteraction())})))})):n&&a.addGlobalEventListener("touchstart",(function(t){a.clearTimeouts(),a.startComplexInteraction(t.currentTarget),a.addLocalEventListener(o,"touchend",(function(i){Math.abs(i.changedTouches[0].clientX-t.changedTouches[0].clientX)<10&&Math.abs(i.changedTouches[0].clientY-t.changedTouches[0].clientY)<10?a.click(i):a.clear(),a.endComplexInteraction()}),{passive:!0})}),{passive:!0})}function l(t,i,n){this.el=t,this.handler=i,this.leaveOnSecond=n,this.preventMouse=!1,this.isActive=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function v(i,s,r){r=f({leaveOnSecond:!1},r);var a=this.context=new l(i,s,r.leaveOnSecond);t?(a.addGlobalEventListener("pointerenter",(function(e){e.isPrimary&&(a.clearTimeouts(),a.enter(e)&&"mouse"!==e.pointerType&&(a.addLocalEventListener(o,"pointerdown",(function(e){e.isPrimary&&a.testLeave(e.target)})),a.addTimeout(h((function(){a.leave()}),5e3))))})),a.addGlobalEventListener("pointerleave",(function(e){e.isPrimary&&"mouse"===e.pointerType&&a.leave()}))):(a.addGlobalEventListener("mouseenter",(function(e){a.preventMouse||a.enter(e)})),a.addGlobalEventListener("mouseleave",(function(){a.preventMouse||a.leave()})),n&&a.addGlobalEventListener("touchstart",(function(e){a.preventMouse=!0,a.clearTimeouts(),a.enter(e)&&(a.addLocalEventListener(o,"touchstart",(function(e){a.testLeave(e.target)})),a.addTimeout(h((function(){a.leave(),a.preventMouse=!1}),5e3)))}),{passive:!0}))}r.prototype.addTimeout=function(t){this.timeouts.push(t)},r.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)a(this.timeouts[t]);this.timeouts=[]},r.prototype.click=function(e){this.currentTarget!==s&&(e={currentTarget:this.currentTarget,target:this.el}),this.handler.call(this.el,e),this.clear()},r.prototype.clear=function(){for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3])},r.prototype.addGlobalEventListener=function(t,i,n){this.globalListeners.push(M(this.el,t,i,n))},r.prototype.addLocalEventListener=function(t,i,n,s){this.localListeners.push([t,i,n,s]),t.addEventListener(i,n,s)},r.prototype.remove=function(){this.clear(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.globalListeners[t]();delete this.globalListeners},r.prototype.startComplexInteraction=function(t){this.clearTimeouts(),this.preventMouse=!0,this.currentTarget=t},r.prototype.endComplexInteraction=function(){delete this.currentTarget,this.addTimeout(h(function(){this.preventMouse=!1}.bind(this),1e3))},c.prototype.remove=function(){this.context.remove(),delete this.context},u.UniversalClick=c,l.prototype.enter=function(e){return this.leaveOnSecond&&this.isActive?(this.leave(),!1):(this.handler.apply(this.el,arguments),this.isActive=!0,!0)},l.prototype.leave=function(){this.clearTimeouts();for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3]);var i;this.isActive=!1,i=this.el,w(i,new Event("universalleave",{bubbles:!1,cancelable:!1}))},l.prototype.testLeave=function(t){!this.el===t&&this.el.contains(t)&&this.leave()},l.prototype.addTimeout=function(t){this.timeouts.push(t)},l.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)a(this.timeouts[t]);this.timeouts=[]},l.prototype.addGlobalEventListener=function(t,i,n){this.globalListeners.push(M(this.el,t,i,n))},l.prototype.remove=function(){this.isActive&&this.leave(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.globalListeners[t]();delete this.globalListeners},l.prototype.addLocalEventListener=function(t,i,n,s){this.localListeners.push([t,i,n,s]),t.addEventListener(i,n,s)},v.prototype.remove=function(){this.context.remove(),delete this.context},u.UniversalEnter=v})),u.d("EventBurrito",(function(){var t=function(){return!0},o=!1;return function(a,u){var c={preventDefault:!0,preventScroll:!1,mouse:!0,axis:"x",start:t,move:t,end:t,click:t};f(c,u);var l,v,d,p,m={pointerEvents:!(n2const.isIOS&&i.TouchEvent||!i.PointerEvent&&!i.PointerEventsPolyfill)},g={},b={},w=[],x=!0,_=m.pointerEvents?1:0,P=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel","pointerleave"],["mousedown","mousemove","mouseup","","mouseleave"]],O=[function(e){return e.touches&&e.touches.length>1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!c.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return e.buttons&&1!==e.buttons}],k=function(t,i){var n=t.tagName;return"INPUT"===n||"TEXTAREA"===n||"SELECT"===n||"BUTTON"===n||"VIDEO"===n||t.classList.contains("n2_container_scrollable")||t.closest(".n2_container_scrollable")};function S(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function E(t){b={x:(p?t.clientX:t.touches[0].clientX)-g.x,y:(p?t.clientY:t.touches[0].clientY)-g.y,time:Date.now()}}function A(e,t){if((e.isPrimary===s||e.isPrimary)&&!o&&(l=[],x=!0,!O[p=t](e)&&!k(e.target)))if(("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&e.target.closest(".n2-ss-text")){var i=M(e.target,"click",(function(t){i(),Math.abs(e.clientX-t.clientX)<10&&Math.abs(e.clientY-t.clientY)<10&&y(e.target,"n2click")}));h(i,2e3)}else o=!0,0!==p&&l.push(M(r,P[p][1],C,{passive:!1,capture:!0})),l.push(M(r,P[p][2],R,{passive:!1,capture:!0})),l.push(M(r,P[p][3],R,{passive:!1,capture:!0})),l.push(M(n,P[p][4],D,{passive:!1,capture:!0})),g={x:p?e.clientX:e.touches[0].clientX,y:p?e.clientY:e.touches[0].clientY,time:Date.now()},v=s,d=!1,b={x:0,y:0},c.start(e,g),C(e)}function C(t){(t.isPrimary===s||t.isPrimary)&&("x"===c.axis&&(!c.preventScroll&&v||O[p](t))||k(t.target)||(E(t),(Math.abs(b.x)>10||Math.abs(b.y)>10)&&(x=!1),v===s&&2!==p&&(v=Math.abs(b.x)<Math.abs(b.y)&&!c.preventScroll)||c.move(t,g,b,d)&&c.preventDefault&&S(t)))}function D(t){t.target===t.currentTarget&&R(t)}function R(t){if(t.isPrimary===s||t.isPrimary){p&&E(t),!x&&t.target&&t.target.blur&&t.target.blur();for(var i=l.length-1;i>=0;i--)l[i]();l=null,c.end(t,g,b,d),d=!1,o=!1}}return w.push(M(r,"scroll",(function(){i.nextendScrollFocus!==s&&i.nextendScrollFocus||(d=!0)}))),1===_&&(a.style.touchAction="y"===c.axis?"pan-x":"pan-y"),w.push(M(a,P[_][0],(function(e){A(e,_)}),{passive:!1,capture:!0})),0===_&&w.push(M(a,P[0][1],(function(e){C(e)}),{passive:!1,capture:!0})),w.push(M(a,"dragstart",S)),c.mouse&&0===_&&w.push(M(a,P[2][0],(function(e){A(e,2)}))),w.push(M(a,"click",(function(t){x?c.click(t):S(t)}))),{supportsPointerEvents:m.pointerEvents,getClicksAllowed:function(){return x},kill:function(){for(var t=w.length-1;t>=0;t--)w[t]()}}}})),function(){var t,n=!1,s=-1,r=new Set,o=new Set,a=i.requestAnimationFrame||(t=0,function(i){var n=(new Date).getTime(),s=Math.max(0,16-(n-t));return t=n+s,h((function(){i(n+s)}),s)});function c(t){s=t,n&&(s=t,a(f))}function f(t){if(n&&0===r.size&&0===o.size)s=-1,n=!1;else if(-1!==s){var i=(t-s)/1e3;0!==i&&(r.forEach((function(t){t(i)})),o.forEach((function(t){t()})))}!function(t){n&&(s=t,a(f))}(t)}u.t={addP:function(t){r.add(t),n||(n=!0,a(c))},removeP:function(t){r.delete(t)},add:function(t){o.add(t),n||(n=!0,a(c))},remove:function(t){o.delete(t)}}}(),u.d("Animation",(function(){function t(t){this._tickCallback=null,this._progress=0,this._delayTimeout=!1,this._delay=0,this._duration=4,this._timeScale=1,this._isPlaying=!1,this._startTime=0,this._eventCallbacks={},this._immediateRender=!0,this._timeline=null,this._isCompleted=!1,this._isStarted=!1,this._isReversed=!1,this.toParams=t,this.initParameters()}return t.prototype.initParameters=function(){this.parseParameters(this.toParams),"object"!=typeof this.toParams&&this.paused(!1)},t.prototype.parseParameters=function(t){t&&(t.delay&&(this.delay(t.delay),delete t.delay),t.duration!==s&&(this.duration(t.duration),delete t.duration),t.onComplete&&(this.eventCallback("onComplete",t.onComplete),delete t.onComplete),t.onStart&&(this.eventCallback("onStart",t.onStart),delete t.onStart),t.onUpdate&&(this.eventCallback("onUpdate",t.onUpdate),delete t.onUpdate),t.immediateRender&&(this._immediateRender=t.immediateRender,delete t.immediateRender),t.paused&&(this.paused(!0),delete t.paused))},t.prototype.setTimeline=function(t){this._timeline=t},t.prototype._tick=function(t){var i=this._progress;this._isReversed?(this._progress-=t/this._duration*this._timeScale,1!=i&&this._isStarted?this._progress<=0?(this._progress=0,this._isPlaying=!1,u.t.removeP(this.getTickCallback()),this._onUpdate(),this._onReverseComplete()):this._onUpdate():this._onReverseStart()):(this._progress+=t/this._duration*this._timeScale,0!=i&&this._isStarted?this._progress>=1?(this._progress=1,this._isPlaying=!1,u.t.removeP(this.getTickCallback()),this._onUpdate(),this._onComplete()):this._onUpdate():this._onStart())},t.prototype._onStart=function(){this._isStarted=!0,this._isCompleted=!1,this._dispatch("onStart"),this._onUpdate()},t.prototype._onUpdate=function(){this._dispatch("onUpdate")},t.prototype._onComplete=function(){this._isCompleted=!0,this._onUpdate(),this._dispatch("onComplete")},t.prototype._onReverseComplete=function(){this._isCompleted=!0,this._isReversed=!1,this._onUpdate(),this._dispatch("onReverseComplete")},t.prototype._onReverseStart=function(){this._isStarted=!0,this._isCompleted=!1,this._dispatch("onReverseStart"),this._onUpdate()},t.prototype.getTickCallback=function(){if(!this._tickCallback){var t=this;this._tickCallback=function(){t._tick.apply(t,arguments)}}return this._tickCallback},t.prototype._clearDelayTimeout=function(){this._delayTimeout&&(a(this._delayTimeout),this._delayTimeout=!1)},t.prototype._timeToProgress=function(t){return t/this._duration*this._timeScale},t.prototype.delay=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._delay=Math.max(0,t),this}return this._delay},t.prototype.duration=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._duration=Math.max(0,t),this}return this._duration},t.prototype.eventCallback=function(t){return arguments.length>3?this._eventCallbacks[t]=[arguments[1],arguments[2],arguments[3]]:arguments.length>2?this._eventCallbacks[t]=[arguments[1],arguments[2],this]:arguments.length>1&&(this._eventCallbacks[t]=[arguments[1],[],this]),this._eventCallbacks[t]},t.prototype.pause=function(){return this._isPlaying=!1,u.t.removeP(this.getTickCallback()),arguments.length>0&&null!=arguments[0]&&this.progress(this._timeToProgress(arguments[0])),this},t.prototype.paused=function(){return arguments.length>0?(arguments[0]?this._isPlaying&&this.pause():this._isPlaying||this.play(),this):!this._isPlaying},t.prototype.play=function(){var t=!0;arguments.length>0&&null!=arguments[0]&&(t=!1,this._progress=this._timeToProgress(arguments[0])),this._play(t)},t.prototype._play=function(t){if(this._progress<1)if(0==this._progress&&t&&this._delay>0){if(!this._delayTimeout){var i=this;this._delayTimeout=h((function(){i.__play.apply(i,arguments)}),1e3*this._delay)}}else this.__play();else this._isCompleted||(this._isReversed?this._onReverseComplete():this._onComplete())},t.prototype.__play=function(){this._clearDelayTimeout(),this._isPlaying||(u.t.addP(this.getTickCallback()),this._isPlaying=!0)},t.prototype.progress=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.min(1,Math.max(0,t)),this._progress=t,this._isPlaying||(this._isStarted||this._onStart(),this._onUpdate()),this}return this._progress},t.prototype.reverse=function(){this._isReversed=!0,0!=this.progress()&&this.play()},t.prototype.restart=function(){return arguments.length>0&&arguments[0]?(this.pause(0),this.play(),this):(this.play(0),this)},t.prototype.seek=function(t){null!=t&&(this._progress=this._timeToProgress(arguments[0]),this._isPlaying||this._onUpdate())},t.prototype.startTime=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),this._startTime=Math.max(0,t),this}return this._startTime},t.prototype.timeScale=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=1),t=Math.max(.01,t),this._timeScale!=t&&(this._timeScale=t),this}return this._timeScale},t.prototype._dispatch=function(t){"object"==typeof this._eventCallbacks[t]&&this._eventCallbacks[t][0].apply(this._eventCallbacks[t][2],this._eventCallbacks[t][1])},t.prototype.totalDuration=function(){if(arguments.length>0){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.max(0,t),this.timeScale(this._duration/t),this}return this._duration*this._timeScale},t.prototype.reset=function(){this._isCompleted=!1,this._isStarted=!1,this.progress(0)},t})),u.d("Tween",(function(){var t=2,i=3,n=function(t){return Symbol.iterator in Object(t)};function r(s,r){var o,h;switch(this.ease="linear",this._tweenContainer=null,this._setContainer=null,this._roundProps={},arguments.length){case 4:o=arguments[2],h=arguments[3],this._mode=t;break;default:this._mode=i,o={},h=arguments[2]}if(n(s)||(s=[s]),this._target=s,this.fromParams=o,u.Animation.call(this,h),this.parseParameters({duration:r}),this._mode===t&&this._immediateRender){for(var a in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._tweenContainer){var c=this._tweenContainer[a];this._target.forEach((function(t){t[a]=c.unit?c.startValue+c.unit:c.startValue}))}for(var a in this._setContainer){c=this._setContainer[a];this._target.forEach((function(t){t[a]=c.unit?c.endValue+c.unit:c.endValue}))}}}function o(t){var i=[t,""];t=String(t);var n=parseFloat(t);return isNaN(n)||(i[0]=n,i[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||""),i}function h(t,i,n,r){n===s&&(n=t[0][i]),r===s&&(r=t[0][i]),n=o(n);var h=0;return""!==(r=o(r))[1]&&n[1]!==r[1]&&(n[0]=0,n[1]=r[1]),"number"==typeof n[0]&&"number"==typeof r[0]&&(h=r[0]-n[0]),{startValue:n[0],endValue:r[0],unit:r[1],range:h}}return r.prototype=Object.create(u.Animation.prototype),r.prototype.constructor=r,r.prototype.initParameters=function(){this.parseParameters(this.fromParams),u.Animation.prototype.initParameters.apply(this,arguments)},r.prototype.parseParameters=function(t){t&&(t.ease&&(this.ease=t.ease,delete t.ease),u.Animation.prototype.parseParameters.apply(this,arguments))},r.prototype._onStart=function(){for(var t in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._setContainer){var i=this._setContainer[t];this._target.forEach((function(n){n[t]=i.unit?i.endValue+i.unit:i.endValue}))}u.Animation.prototype._onStart.call(this)},r.prototype._onUpdate=function(){for(var t in this._tweenContainer){var i=this._tweenContainer[t],n=u.Easings[this.ease]?u.Easings[this.ease](this._progress):this._progress,s=i.startValue+i.range*n;this._roundProps[t]&&(s=Math.round((10*s|0)/10)),this._target.forEach((function(n){n[t]=i.unit?s+i.unit:s}))}u.Animation.prototype._onUpdate.call(this)},r.prototype.initRoundProps=function(t){for(var i=t.split(","),n=0;n<i.length;n++)this._roundProps[i[n]]=!0},r.prototype._makeTweenContainer=function(t,i){for(var n in t.snap!==s&&(this.initRoundProps(t.snap),delete t.snap),this._setContainer={},this._tweenContainer={},i.snap!==s&&(this.initRoundProps(i.snap),delete i.snap),i){var r=h(this._target,n,t[n],i[n]);0==r.range?this._setContainer[n]=r:this._tweenContainer[n]=r}},r.to=function(t,i,n){var o=new r(t,i,n);return n.paused!==s&&n.paused||o.play(),o},r.fromTo=function(t,i,n,o){var h=new r(t,i,n,o);return o.paused!==s&&o.paused||h.play(),h},u.W=r,r})),u.d("Timeline",(function(){function t(t){this.originalParams=f({},t),this._tweens=[],u.Animation.call(this,t),this._duration=0}return t.prototype=Object.create(u.Animation.prototype),t.prototype.constructor=t,t.prototype._onUpdate=function(){if(this.tweensContainer)for(var t=0;t<this.tweensContainer.length;t++){var i=this.tweensContainer[t],n=Math.min(1,(this._progress-i.startProgress)/(i.endProgress-i.startProgress));i.tween._isCompleted&&n<=i.endProgress&&i.tween.reset(),!i.tween._isStarted&&n>=0&&0==i.tween.progress()&&i.tween._onStart(),i.tween._isStarted&&(1!=n||i.tween._isCompleted?n>=0&&n<1?i.tween.progress(n):n<0&&0!=i.tween.progress()&&i.tween.progress(0):(i.tween.progress(n),i.tween._onComplete()))}u.Animation.prototype._onUpdate.call(this)},t.prototype.addTween=function(t){t.pause(),t.setTimeline(this);var i=0;i=arguments.length>1?this._parsePosition(arguments[1]):this._parsePosition();var n=t.delay();n>0&&(i+=n,t.delay(0)),t.startTime(i),this._tweens.push(t);var s=t.totalDuration()+i;s>this._duration&&(this._duration=s),this.makeCache()},t.prototype.clear=function(){this.paused()||this.pause(),t.call(this,this.originalParams)},t.prototype.add=function(t,i){this.addTween(t,i)},t.prototype.set=function(t,i,n){this.addTween(u.W.to(t,.05,i),n)},t.prototype.to=function(t,i,n,s){n.paused=!0,this.addTween(u.W.to(t,i,n),s)},t.prototype.fromTo=function(t,i,n,s,r){s.paused=!0,this.addTween(u.W.fromTo(t,i,n,s),r)},t.prototype._play=function(){if(0==this._progress)for(var t=0;t<this._tweens.length;t++)this._tweens[t].pause(0);u.Animation.prototype._play.apply(this,arguments)},t.prototype._parsePosition=function(){var t="+=0";arguments.length>0&&arguments[0]!==s&&!isNaN(arguments[0])&&(t=arguments[0]);var i=0;switch(typeof t){case"string":switch(t.substr(0,2)){case"+=":i=this.duration()+parseFloat(t.substr(2));break;case"-=":i=this.duration()-parseFloat(t.substr(2))}break;default:i=parseFloat(t)}return Math.max(0,i)},t.prototype.makeCache=function(){var t=this.totalDuration();this.tweensContainer=[];for(var i=0;i<this._tweens.length;i++){var n=this._tweens[i],s=n.startTime()/t,r=(n.startTime()+n.totalDuration())/t;this.tweensContainer.push({tween:n,startProgress:s,endProgress:r,range:r-s})}},u.q=t,t})),u.d("Easings",(function(){var t={Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var i,n=4;t<((i=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*i-2)/22-t,2)}};["Quad","Cubic","Quart","Quint","Expo"].forEach((function(i,n){t[i]=function(t){return Math.pow(t,n+2)}}));var i={};for(var n in t)!function(t,n){i["easeIn"+t]=n,i["easeOut"+t]=function(t){return 1-n(1-t)},i["easeInOut"+t]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}}(n,t[n]);return i})),u.d("nextend-frontend"),u.d("n2")}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,n=t.document,h=(n.documentElement,t.setTimeout),o=t.clearTimeout,r=i._N2;t.requestAnimationFrame,n.createElement.bind(n),Object.assign,navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){n.body},"complete"===n.readyState||"interactive"===n.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==n.addEventListener?Document.prototype.addEventListener.call(n,"DOMContentLoaded",s):n.addEventListener("DOMContentLoaded",s),r.d("SmartSliderBlock",["SmartSliderAbstract"],(function(){function t(t,i){this.type="block",this.responsiveClass=r.SmartSliderResponsiveBlock,r.SmartSliderAbstract.prototype.constructor.call(this,t,i)}return t.prototype=Object.create(r.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new r.SmartSliderResponsiveBlock(this,this.parameters.responsive),this.responsive.start(),r.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){this.mainAnimation=!1,this.isAdmin||this.disabled.postBackgroundAnimations||0==this.parameters.postBackgroundAnimations||(this.postBackgroundAnimation=new r.SmartSliderPostBackgroundAnimation(this,!1))},t.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[t];delete this.parameters.postBackgroundAnimations.slides}},t.prototype.getSlideBackgroundContainer=function(){return this.sliderElement.querySelector(".n2-ss-slide").parentNode},t})),r.d("SmartSliderResponsiveBlock",["SmartSliderResponsive"],(function(){function t(){r.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.xt=this.sliderElement.classList.contains("n2-ss-full-page--constrain-ratio")}return t.prototype=Object.create(r.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.init=function(){r.SmartSliderResponsive.prototype.init.call(this),this._cacheEl={slider:this.sliderElement.querySelector(".n2-ss-slider-wrapper-inside")||this.sliderElement}},t.prototype.calculateResponsiveValues=function(){var t=this.slider.visibleRealSlides[0].element,i=t.getBoundingClientRect();this.resizeContext.slideSelfWidth=i.width,this.resizeContext.slideSelfHeight=i.height;var s=t.querySelector(".n2-ss-layers-container").getBoundingClientRect();this.resizeContext.slideWidth=s.width,this.resizeContext.slideHeight=s.height;var n=this._cacheEl.slider.getBoundingClientRect();if(this.resizeContext.sliderWidth=n.width,this.resizeContext.sliderHeight=n.height,r.SmartSliderResponsive.prototype.calculateResponsiveValues.call(this),this.xt){var h=(this.resizeContext.sliderWidth-this.resizeContext.slideWidth)/-2+"px",o=(this.resizeContext.sliderHeight-this.resizeContext.slideHeight)/-2+"px";r.MW.k(this._cacheEl.slider)["--ss-clip-path"]="inset("+o+" "+h+" "+o+" "+h+")"}},t})),r.d("ss-block",["SmartSliderBlock","SmartSliderResponsiveBlock"])}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,n=t.document,h=(n.documentElement,t.setTimeout),o=t.clearTimeout,r=i._N2;t.requestAnimationFrame,Object.assign,navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){n.body},"complete"===n.readyState||"interactive"===n.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==n.addEventListener?Document.prototype.addEventListener.call(n,"DOMContentLoaded",s):n.addEventListener("DOMContentLoaded",s),r.d("SmartSliderBlock",["SmartSliderAbstract"],(function(){function t(t,i){this.type="block",this.responsiveClass=r.SmartSliderResponsiveBlock,r.SmartSliderAbstract.prototype.constructor.call(this,t,i)}return t.prototype=Object.create(r.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new r.SmartSliderResponsiveBlock(this,this.parameters.responsive),this.responsive.start(),r.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){this.mainAnimation=!1,this.isAdmin||this.disabled.postBackgroundAnimations||0==this.parameters.postBackgroundAnimations||(this.postBackgroundAnimation=new r.SmartSliderPostBackgroundAnimation(this,!1))},t.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[t];delete this.parameters.postBackgroundAnimations.slides}},t.prototype.getSlideBackgroundContainer=function(){return this.sliderElement.querySelector(".n2-ss-slide").parentNode},t})),r.d("SmartSliderResponsiveBlock",["SmartSliderResponsive"],(function(){function t(){r.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.Dt=this.sliderElement.classList.contains("n2-ss-full-page--constrain-ratio")}return t.prototype=Object.create(r.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.init=function(){r.SmartSliderResponsive.prototype.init.call(this),this._cacheEl={slider:this.sliderElement.querySelector(".n2-ss-slider-wrapper-inside")||this.sliderElement}},t.prototype.calculateResponsiveValues=function(){var t=this.slider.visibleRealSlides[0].element,i=t.getBoundingClientRect();this.resizeContext.slideSelfWidth=i.width,this.resizeContext.slideSelfHeight=i.height;var s=t.querySelector(".n2-ss-layers-container").getBoundingClientRect();this.resizeContext.slideWidth=s.width,this.resizeContext.slideHeight=s.height;var n=this._cacheEl.slider.getBoundingClientRect();if(this.resizeContext.sliderWidth=n.width,this.resizeContext.sliderHeight=n.height,r.SmartSliderResponsive.prototype.calculateResponsiveValues.call(this),this.Dt){var h=(this.resizeContext.sliderWidth-this.resizeContext.slideWidth)/-2+"px",o=(this.resizeContext.sliderHeight-this.resizeContext.slideHeight)/-2+"px";r.MW.k(this._cacheEl.slider)["--ss-clip-path"]="inset("+o+" "+h+" "+o+" "+h+")"}},t})),r.d("ss-block",["SmartSliderBlock","SmartSliderResponsiveBlock"])}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s,o=t.document,r=(o.documentElement,t.setTimeout),h=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,o.createElement.bind(o)),c=function(){return u("div")},l=Object.assign,f=function(t,i){for(var s=Object(t),o=1;o<arguments.length;o++){var r=arguments[o];if(null!==r&&r!==n)for(var h in r)null!==r[h]&&Object.prototype.hasOwnProperty.call(r,h)&&("object"==typeof r[h]&&(r[h].constructor===Object||Array.isArray(r[h]))?(Array.isArray(r[h])?s[h]=[]:("object"!=typeof s[h]||Array.isArray(s[h]))&&(s[h]={}),s[h]=f(s[h],r[h])):s[h]=r[h])}return s},d=function(t,i){return t.dataset[i]},p=function(t,i,n){t.style.setProperty(i,n)},v=function(t,i){for(var n in i)p(t,n,i[n])};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",s):o.addEventListener("DOMContentLoaded",s),a.d("SmartSliderFrontendBackgroundAnimation",["SmartSliderMainAnimationSimple"],(function(){function t(t,i,n){this._currentBackgroundAnimation=!1,a.SmartSliderMainAnimationSimple.prototype.constructor.call(this,t,i),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.querySelector(".n2-ss-background-animation"),this.slider.parameters.perspective>0&&this.bgAnimationElement&&p(this.bgAnimationElement,"perspective",this.slider.parameters.perspective+"px"),this.backgroundAnimations=l({global:0,speed:"normal"},n),this.backgrounds=t.backgrounds.getBackgroundImages()}return t.prototype=Object.create(a.SmartSliderMainAnimationSimple.prototype),t.prototype.constructor=t,t.prototype.getBackgroundAnimation=function(t,i){if(this.slider.parameters.backgroundParallax)return!1;if(i.hasBackgroundVideo()||t.hasBackgroundVideo())return!1;var n=this.backgroundAnimations.global,s=this.backgroundAnimations.speed;if(this.Mt=!1,i.backgroundAnimation){var o=i.backgroundAnimation;n=o.animation,s=o.speed,o.color&&(this.Mt=o.color)}if(!n)return!1;const r=Math.floor(Math.random()*n.length);return!!this.canAnimateWithBackgroundMode(n[r].allowedBackgroundModes,i.background.mode,t.background.mode)&&[n[r],s]},t.prototype.canAnimateWithBackgroundMode=function(t,i,n){return!!(!t||t.includes(i)&&t.includes(n))},t.prototype._initAnimation=function(t,i,n){this._currentBackgroundAnimation=!1;var s=t.background,o=i.background;if(s&&o){const h=new a.SmartSliderBackgroundAnimationBackgroundInterfaceFrontend(s),u=new a.SmartSliderBackgroundAnimationBackgroundInterfaceFrontend(o),c=this.getBackgroundAnimation(t,i);if(!1!==c){var r=1;switch(c[1]){case"superSlow10":r=10;break;case"superSlow":r=3;break;case"slow":r=1.5;break;case"fast":r=.75;break;case"superFast":r=.5}return this._currentBackgroundAnimation=new a["SmartSliderBackgroundAnimation"+c[0].type](this,h,u,c[0],r,n),a.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set({},{onComplete:function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)}.bind(this)})}}a.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},t.prototype.onChangeToComplete=function(t,i){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),a.SmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.onReverseChangeToComplete=function(t,i,n){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),a.SmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},t.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},t.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},t})),a.d("SmartSliderBackgroundAnimationAbstract",(function(){function t(t,i,n,s,o,r){this.durationMultiplier=o,this.original={currentImage:i,currentImageElement:i.backgroundElement,currentImageSMW:a.MW.k(i.backgroundElement),nextImage:n,nextImageElement:n.backgroundElement,nextImageSMW:a.MW.k(n.backgroundElement)},this.animationProperties=s,this.reversed=r,this.sliderBackgroundAnimation=t,this.timeline=t.timeline,this.containerElement=t.bgAnimationElement,this.shiftedBackgroundAnimation=t.parameters.shiftedBackgroundAnimation,this.clonedImages={}}return t.prototype.postSetup=function(){},t.prototype.ended=function(){},t.prototype.revertEnded=function(){},t.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImageElement.cloneNode(!0),v(this.clonedImages.nextImage,{position:"absolute",top:0,left:0,transform:"translate3d(0,0,0)",opacity:1}),this.containerElement.appendChild(this.clonedImages.nextImage)},t.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImageElement.cloneNode(!0),v(this.clonedImages.currentImage,{position:"absolute",top:0,left:0,transform:"translate3d(0,0,0)",opacity:1}),this.containerElement.appendChild(this.clonedImages.currentImage)},t.prototype.hideOriginals=function(){p(this.original.currentImageElement,"opacity",0),p(this.original.nextImageElement,"opacity",0)},t.prototype.resetAll=function(){p(this.original.currentImageElement,"opacity",1),p(this.original.nextImageElement,"opacity",1),this.containerElement.innerHTML=""},t.prototype.getExtraDelay=function(){return 10/60},t})),a.d("SmartSliderBackgroundAnimationBackgroundInterface",(function(){return class{constructor(t){this.backgroundElement=t}getImage(){return this.backgroundElement.querySelector("img").currentSrc}getSize(){const t=this.backgroundElement.getBoundingClientRect();return[t.width,t.height]}hasImage(){return!0}isCover(){return!0}getOpacity(){return 1}getBlur(){return 0}isOverlay(){return!1}getOverlay(){return!1}getFocusX(){return.5}getFocusY(){return.5}getColor(){return"RGBA(0,0,0,0)"}}})),a.d("SmartSliderBackgroundAnimationBackgroundInterfaceFrontend","SmartSliderBackgroundAnimationBackgroundInterface",(function(){class t extends a.SmartSliderBackgroundAnimationBackgroundInterface{constructor(t){super(t.element),this.background=t}hasImage(){return this.background.hasImage()}getImage(){return super.getImage()}isCover(){return!this.hasImage()||"fill"===d(this.background.element,"mode")}getOpacity(){return+d(this.background.elements.image.imageElements[0],"opacity")/100}getBlur(){return+this.background.elements.image.blur}isOverlay(){return!!d(this.background.elements.color.el,"overlay")}getFocusX(){return+d(this.background.elements.image.imageElements[0],"x")/100}getFocusY(){return+d(this.background.elements.image.imageElements[0],"y")/100}getColor(t){const i=this.background.elements.color.el,n=d(i,"gradient"),s=t.canvas.width,o=t.canvas.height;let r=0;if(n){let h=0,a=0,u=0,c=0;switch(n){case"horizontal":u=s;break;case"vertical":c=o;break;case"diagonal1":r=45;break;case"diagonal2":r=135}if(0!==r){const t=(180-r)/180*Math.PI,i=Math.abs(s*Math.sin(t))+Math.abs(o*Math.cos(t)),n=Math.sin(t)*i/2,l=Math.cos(t)*i/2,f=s/2,d=o/2;h=f-n,a=d-l,u=f+n,c=d+l}let l=t.createLinearGradient(h,a,u,c);return l.addColorStop(0,d(i,"colorStart")),l.addColorStop(1,d(i,"colorEnd")),l}return d(i,"color")}}return t})),a.d("SmartSliderBackgroundAnimationCubic",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);t.fullCube=!0,this.reversed&&(t.invert!==n&&f(t.main,t.invert),t.invertTiles!==n&&l(t.tiles,t.invertTiles)),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,s,o,r){var h=s.depth;switch(h){case"width":h=i;break;case"height":h=n}switch(s.main.side){case"Top":case"Bottom":h=n;break;case"Left":case"Right":h=i}s.main.real3D&&p(t,"transform-style","preserve-3d");var u=c(),l=a.MW.k(u);v(u,{position:"absolute",left:0,top:0,width:"100%",height:"100%","transform-style":"preserve-3d"}),l.z=-h/2,t.appendChild(u);var f=0;"horizontal"===s.main.direction&&(f=180);var d=this.getSide(u,i,n,0,0,-h/2,180,0,f),m={Back:d,BackInvert:d};(s.fullCube||"vertical"===s.main.direction)&&(m.Bottom=this.getSide(u,i,h,0,n-h/2,0,-90,0,0),m.Top=this.getSide(u,i,h,0,-h/2,0,90,0,0)),m.Front=this.getSide(u,i,n,0,0,h/2,0,0,0),(s.fullCube||"horizontal"===s.main.direction)&&(m.Left=this.getSide(u,h,n,-h/2,0,0,0,-90,0),m.Right=this.getSide(u,h,n,i-h/2,0,0,0,90,0));var x=this.clonedCurrent().cloneNode(!0);v(x,{position:"absolute",top:-r+"px",left:-o+"px"}),m.Front.appendChild(x);var g=this.clonedNext().cloneNode(!0);return v(g,{position:"absolute",top:-r+"px",left:-o+"px"}),m[s.main.side].appendChild(g),a.MW.k(u)},t.prototype.getSide=function(t,i,n,s,o,r,h,u,l){var f=c();return f.className="n2-bganim-side",v(f,{width:i+"px",height:n+"px","backface-visibility":"hidden"}),t.appendChild(f),a.MW.k(f).setValues({x:s,y:o,z:r,rotationZ:l,rotationY:u,rotationX:h}),f},t.prototype.transform=function(t,i,n){var s,o,r;for(s=0;s<t.pre.length;s++)r=(o=l({},t.pre[s])).duration*this.durationMultiplier,delete o.duration,this.timeline.to(i,r,o,n),n+=r;for(this["transform"+t.main.side](t.main,i,n),n+=t.main.duration*this.durationMultiplier,s=0;s<t.post.length;s++)r=(o=l({},t.post[s])).duration*this.durationMultiplier,delete o.duration,this.timeline.to(i,r,o,n),n+=r},t.prototype.transformLeft=function(t,i,n){this._transform(t,i,n,0,90,0)},t.prototype.transformRight=function(t,i,n){this._transform(t,i,n,0,-90,0)},t.prototype.transformTop=function(t,i,n){this._transform(t,i,n,-90,0,0)},t.prototype.transformBottom=function(t,i,n){this._transform(t,i,n,90,0,0)},t.prototype.transformBack=function(t,i,n){"horizontal"===t.direction?this._transform(t,i,n,0,180,0):this._transform(t,i,n,180,0,0)},t.prototype.transformBackInvert=function(t,i,n){"horizontal"===t.direction?this._transform(t,i,n,0,-180,0):this._transform(t,i,n,-180,0,0)},t.prototype._transform=function(t,i,n,s,o,r){this.timeline.to(i,t.duration*this.durationMultiplier,{rotationX:s,rotationY:o,rotationZ:r,ease:t.ease},n)},t})),a.d("SmartSliderBackgroundAnimationExplode",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),v(this.clonedImages.nextImage,{overflow:"hidden",width:"100%",height:"100%"}),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,s,o,r){var h=c(),u=this.clonedCurrent().cloneNode(!0);return v(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":s.main.zIndex,perspective:"1000px",transformStyle:"preserve-3d"}),v(u,{position:"absolute",top:-r+"px",left:-o+"px"}),h.appendChild(u),t.appendChild(h),{current:h,tileSMW:a.MW.k(t)}},t.prototype.transform=function(t,i,n){var s=l({},t.main.current);s.rotationX=90*(3*Math.random()-1),s.rotationY=90*(3*Math.random()-1),s.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tileSMW,t.main.duration*this.durationMultiplier,s,n)},t})),a.d("SmartSliderBackgroundAnimationExplodeReversed",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),v(this.clonedImages.currentImage,{overflow:"hidden",width:"100%",height:"100%"}),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,s,o,r){var h=c(),u=this.clonedNext().cloneNode(!0);return v(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":s.main.zIndex,perspective:"1000px","transform-style":"preserve-3d"}),v(u,{position:"absolute",top:-r+"px",left:-o+"px"}),h.appendChild(u),t.appendChild(h),{next:h,tileSMW:a.MW.k(t)}},t.prototype.transform=function(t,i,n){var s=f({},t.main.current);s.rotationX=90*(3*Math.random()-1),s.rotationY=90*(3*Math.random()-1),s.rotationZ=30*(3*Math.random()-1),this.timeline.fromTo(i.tileSMW,t.main.duration*this.durationMultiplier,s,{ease:s.ease,rotationX:0,rotationY:0,rotationZ:0,opacity:1,x:0,y:0,z:0,scale:1},n)},t})),a.d("SmartSliderBackgroundAnimationFlat",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&(t.invert!==n&&f(t.main,t.invert),t.invertTiles!==n&&l(t.tiles,t.invertTiles)),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t),t.tiles.cropOuter&&p(this.container,"overflow","hidden")},t.prototype.renderTile=function(t,i,n,s,o,r){s.tiles.crop&&p(t,"overflow","hidden");var h=c(),u=this.clonedCurrent().cloneNode(!0);v(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":s.main.zIndex}),v(u,{position:"absolute",top:-r+"px",left:-o+"px"}),h.appendChild(u),t.appendChild(h);var l,f,d=c(),m=this.clonedNext().cloneNode(!0);return v(d,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":1}),v(m,{position:"absolute",top:-r+"px",left:-o+"px"}),d.appendChild(m),t.appendChild(d),s.main.real3D&&(l="transform-style",f="preserve-3d",[t,h,d].forEach((function(t){p(t,l,f)}))),{current:h,currentSMW:a.MW.k(h),next:d,nextSMW:a.MW.k(d)}},t.prototype.transform=function(t,i,n){var s=t.main;s.current.transformOrigin&&(i.currentSMW.transformOrigin=s.current.transformOrigin),"current"!=s.type&&"both"!=s.type||this.timeline.to(i.currentSMW,s.duration*this.durationMultiplier,s.current,n),"next"!=s.type&&"both"!=s.type||(s.next.transformOrigin&&(i.nextSMW.transformOrigin=s.next.transformOrigin),this.timeline.fromTo(i.nextSMW,s.duration*this.durationMultiplier,s.next,{ease:s.next.ease,rotationX:0,rotationY:0,rotationZ:0,opacity:1,x:0,y:0,z:0,xP:0,yP:0,scale:1},n))},t})),a.d("SmartSliderBackgroundAnimationSlices",["SmartSliderBackgroundAnimationFluxAbstract"],(function(){function t(){a.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationFluxAbstract.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({slices:6,direction:"horizontal",isReversed:!1,tiles:{delay:.05,sequence:"normal",duration:.6,stages:[{},{},{}]}},this.animationProperties);this.container=c(),v(this.container,{position:"absolute",left:0,top:0,width:this.w+"px",height:this.h+"px",overflow:"hidden",perspective:"1000px"});var i,s,o=[];if("horizontal"===t.direction){for(var r=Math.floor(this.h/t.slices),h=this.h-t.slices*r,u=Math.ceil(h/t.slices),l=h,d=0,m=0;m<t.slices;m++){var x=r;l>0&&(x+=s=l>=u?u:l,l-=s),(i=c()).className="tile n2-bganim-tile-overlay-colored",v(i,{position:"absolute",top:d+"px",left:0,width:"100%",height:x+"px","z-index":1e6}),this.sliderBackgroundAnimation.Mt&&p(i,"background-color",this.sliderBackgroundAnimation.Mt),this.container.appendChild(i),o.push(a.MW.k(i)),d+=x}t.tiles.stages[0].x=this.w,t.tiles.stages[1].x=0,t.tiles.stages[2].x=-this.w}else if("vertical"===t.direction){for(var g=Math.floor(this.w/t.slices),b=this.w-t.slices*g,w=Math.ceil(b/t.slices),S=0,y=0;y<t.slices;y++){var k=g;b>0&&(k+=s=b>=w?w:b,b-=s),(i=c()).className="tile n2-bganim-tile-overlay-colored",v(i,{position:"absolute",top:0,left:S+"px",width:k+"px",height:"100%","z-index":1e6}),this.sliderBackgroundAnimation.Mt&&p(i,"background-color",this.sliderBackgroundAnimation.Mt),this.container.appendChild(i),o.push(a.MW.k(i)),S+=k}t.tiles.stages[0].y=this.h,t.tiles.stages[1].y=0,t.tiles.stages[2].y=-this.h}(this.reversed&&!t.isReversed||!this.reversed&&t.isReversed)&&(t.tiles.stages=t.tiles.stages.reverse());var M=c(),A=this.clonedCurrent().cloneNode(!0);v(M,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":99999}),v(A,{position:"absolute",top:0,left:0}),M.appendChild(A),this.container.appendChild(M);var B=c(),O=a.MW.k(B),I=this.clonedNext().cloneNode(!0);v(B,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":99999}),O.opacity=0,v(I,{position:"absolute",top:0,left:0}),B.appendChild(I),this.container.appendChild(B);var z,C,j=this.timeline.totalDuration();switch(t.tiles.sequence){case"FromSide":for(z=Math.floor(t.slices/2),C=0;C<o.length;C++)this.timeline.fromTo(o[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[0],t.tiles.stages[1],j+t.tiles.delay*Math.abs(Math.abs(z-C)-z));break;case"FromCenter":for(z=Math.floor(t.slices/2),C=0;C<o.length;C++)this.timeline.fromTo(o[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[0],t.tiles.stages[1],j+t.tiles.delay*Math.abs(z-C));break;default:for(C=0;C<o.length;C++)this.timeline.fromTo(o[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[0],t.tiles.stages[1],j+t.tiles.delay*C)}this.timeline.set(O,{opacity:1});var F=this.timeline.totalDuration()+.3;switch(t.tiles.sequence){case"FromSide":for(z=Math.floor(t.slices/2),C=0;C<o.length;C++)this.timeline.to(o[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[2],F+t.tiles.delay*Math.abs(Math.abs(z-C)-z));break;case"FromCenter":for(z=Math.floor(t.slices/2),C=0;C<o.length;C++)this.timeline.to(o[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[2],F+t.tiles.delay*Math.abs(z-C));break;default:for(C=0;C<o.length;C++)this.timeline.to(o[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[2],F+t.tiles.delay*C)}t.nextImage!==n&&this.timeline.fromTo(O,this.timeline.totalDuration()-F+1,t.nextImage[0],t.nextImage[1],F),this.duration=this.timeline.totalDuration()-j,this.containerElement.appendChild(this.container),this.preSetup()},t})),a.d("SmartSliderBackgroundAnimationSlixes",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),v(this.clonedImages.nextImage,{overflow:"hidden",width:"100%",height:"100%"}),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,s,o,r){p(this.container,"overflow","hidden");var h=c(),u=this.clonedCurrent().cloneNode(!0);return v(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":s.main.zIndex}),v(u,{position:"absolute",top:-r+"px",left:-o+"px"}),h.appendChild(u),t.appendChild(h),v(t,{perspective:"1000px","transform-style":"preserve-3d"}),{current:h,tileSMW:a.MW.k(t)}},t.prototype.animate=function(t,i,n){this.timeline.to(n[0][0].tileSMW,t.main.duration*this.durationMultiplier,{xP:-100,ease:"easeInOutCubic"},0),this.timeline.to(n[0][1].tileSMW,t.main.duration*this.durationMultiplier,{xP:-100,ease:"easeInOutCubic"},.3),this.timeline.to(n[1][0].tileSMW,t.main.duration*this.durationMultiplier,{xP:100,ease:"easeInOutCubic"},.15),this.timeline.to(n[1][1].tileSMW,t.main.duration*this.durationMultiplier,{xP:100,ease:"easeInOutCubic"},.45);var s=c();v(s,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}),this.clonedImages.nextImage.parentNode.prepend(s),s.appendChild(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},t})),a.d("SmartSliderBackgroundAnimationTiled",["SmartSliderBackgroundAnimationFluxAbstract"],(function(){function t(){a.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationFluxAbstract.prototype),t.prototype.constructor=t,t.prototype.setup=function(t){var i=c();v(i,{position:"absolute",left:0,top:0,width:this.w+"px",height:this.hc+"px",perspective:"1000px",transform:"translate3d(0,0,0)"}),this.container=i;for(var n=[],s=[],o=t.columns,r=t.rows,h=Math.floor(this.w/o),a=Math.floor(this.h/r),u=this.w-o*h,l=Math.ceil(u/o),f=this.h-r*a,d=Math.ceil(f/r),p=0,m=0;m<o;m++){n[m]=[];var x=h,g=0;if(u>0)x+=S=u>=l?l:u,u-=S;for(var b=f,w=0;w<r;w++){var S,y=a;if(b>0)y+=S=b>=d?d:b,b-=S;var k=c();k.className="tile",v(k,{position:"absolute",top:g+"px",left:p+"px",width:x+"px",height:y+"px","z-index":-Math.abs(m-parseInt(o/2))+o-Math.abs(w-parseInt(r/2))}),i.appendChild(k);var M=this.renderTile(k,x,y,t,p,g);s.push(M),n[m][w]=M,g+=y}p+=x}this.containerElement.appendChild(i),this.preSetup(),this.animate(t,s,n)},t.prototype.animate=function(t,i,n){this["sequence"+t.tiles.sequence](this.transform.bind(this,t),i,n,t.tiles.delay*this.durationMultiplier)},t.prototype.sequenceParallel=function(t,i){t(i,null)},t.prototype.sequenceRandom=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=0;r<i.length;r++)t(i[r],o+Math.random()*s)},t.prototype.sequenceForwardCol=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=0;r<i.length;r++)t(i[r],o+s*r)},t.prototype.sequenceBackwardCol=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=i.length-1,h=0;h<i.length;h++)t(i[h],o+s*(r-h))},t.prototype.sequenceForwardRow=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=0,h=0;h<n[0].length;h++)for(var a=0;a<n.length;a++)t(n[a][h],o+s*r),r++},t.prototype.sequenceBackwardRow=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=i.length-1,h=0;h<n[0].length;h++)for(var a=0;a<n.length;a++)t(n[a][h],o+s*r),r--},t.prototype.sequenceForwardDiagonal=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=0;r<n[0].length;r++)for(var h=0;h<n.length;h++)t(n[h][r],o+s*(h+r))},t.prototype.sequenceBackwardDiagonal=function(t,i,n,s){for(var o=this.timeline.totalDuration(),r=n[0].length+n.length-2,h=0;h<n[0].length;h++)for(var a=0;a<n.length;a++)t(n[a][h],o+s*(r-a-h))},t})),a.d("SmartSliderBackgroundAnimationTurn",["SmartSliderBackgroundAnimationFluxAbstract"],(function(){function t(){a.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments);var t=f({perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"===t.direction?t.direction="right":t.direction="left");var i=parseInt(this.w/2);v(this.clonedCurrent(),{position:"absolute",top:0,left:("left"===t.direction?this.w/2*-1:0)+"px"}),v(this.clonedNext(),{position:"absolute",top:0,left:("left"===t.direction?0:this.w/2*-1)+"px"});var n=c();n.className="tab",v(n,{width:i+"px",height:this.h+"px",position:"absolute",top:"0",left:("left"===t.direction?i:"0")+"px","z-index":101,"transform-style":"preserve-3d","transform-origin":"left"===t.direction?"0 0":i+"px 0"});var s=c();s.className="n2-ff-3d",s.appendChild(this.clonedCurrent()),v(s,{width:i+"px",height:this.h+"px",position:"absolute",top:0,left:0,overflow:"hidden","backface-visibility":"hidden","transform-style":"preserve-3d"}),n.appendChild(s);var o=c();o.className="n2-ff-3d",o.appendChild(this.clonedNext()),v(o,{width:i+"px",height:this.h+"px",position:"absolute",top:0,left:0,overflow:"hidden",transform:"rotateZ(0deg) rotateY(180deg)","backface-visibility":"hidden","transform-style":"preserve-3d"}),n.appendChild(o);var r=c(),h=this.clonedCurrent().cloneNode(!0);p(h,"left","left"===t.direction?0:-i+"px"),v(r,{position:"absolute",top:0,left:"left"===t.direction?"0":i+"px",width:i+"px",height:this.h+"px","z-index":100,overflow:"hidden"}),r.appendChild(h);var u=c();u.className="overlay",v(u,{position:"absolute",top:0,left:"left"===t.direction?i+"px":0,width:i+"px",height:this.h+"px",background:"#000",opacity:1,overflow:"hidden"});var l=c();v(l,{width:this.w+"px",height:this.h+"px",position:"absolute",top:0,left:0,perspective:t.perspective+"px","perspective-origin":"50% 50%"}),l.appendChild(n),l.appendChild(r),l.appendChild(u),this.placeNextImage(),v(this.clonedImages.nextImage,{overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.appendChild(l),this.preSetup(),this.timeline.to(a.MW.k(n),t.duration*this.durationMultiplier,{rotationY:"left"===t.direction?-180:180},0),this.timeline.to(a.MW.k(u),t.duration*this.durationMultiplier,{opacity:0},0)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationFluxAbstract.prototype),t.prototype.constructor=t,t})),a.d("SmartSliderBackgroundAnimationFluxAbstract",["SmartSliderBackgroundAnimationAbstract"],(function(){function t(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,a.SmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments);var t=this.original.currentImageElement.getBoundingClientRect();this.w=Math.ceil(t.width),this.h=t.height,this.hc=Math.ceil(t.height)}function i(t){t.querySelectorAll("img").forEach((function(t){t.currentSrc&&t.src!==t.currentSrc&&(t.src="")}))}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.clonedCurrent=function(){return this._clonedCurrent||(n2const.isFirefox&&i(this.original.currentImageElement),this._clonedCurrent=this.original.currentImageElement.cloneNode(!0),v(this._clonedCurrent,{width:this.w+"px",height:this.h+"px",transform:"translate3d(0,0,0)",opacity:1})),this._clonedCurrent},t.prototype.clonedNext=function(){return this._clonedNext||(n2const.isFirefox&&i(this.original.nextImageElement),this._clonedNext=this.original.nextImageElement.cloneNode(!0),v(this._clonedNext,{width:this.w+"px",height:this.h+"px",transform:"translate3d(0,0,0)",opacity:1})),this._clonedNext},t.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},t.prototype._preSetup=function(t){this.timeline.set(this.original.currentImageSMW,{opacity:0},0),this.original.nextImageSMW.opacity=0},t.prototype.postSetup=function(){this.timeline.set(this.original.nextImageSMW,{opacity:1})},t.prototype.ended=function(){this.original.currentImageSMW.opacity=1,this.containerElement.innerHTML=""},t.prototype.revertEnded=function(){this.original.nextImageSMW.opacity=1,this.containerElement.innerHTML=""},t})),a.d("smartslider-backgroundanimation")}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o,s=t.document,r=(s.documentElement,t.setTimeout),h=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,function(t,i=null,n=null,o=null){const r=s.createElement(t);return i&&("string"==typeof i?w(r,i):S(r,i)),n&&p(r,n),o&&x(r,o),r}),c=function(t,i,n){return u("div",t,i,n)},l=Object.assign,f=function(t,i){for(var o=Object(t),s=1;s<arguments.length;s++){var r=arguments[s];if(null!==r&&r!==n)for(var h in r)null!==r[h]&&Object.prototype.hasOwnProperty.call(r,h)&&("object"==typeof r[h]&&(r[h].constructor===Object||Array.isArray(r[h]))?(Array.isArray(r[h])?o[h]=[]:("object"!=typeof o[h]||Array.isArray(o[h]))&&(o[h]={}),o[h]=f(o[h],r[h])):o[h]=r[h])}return o},d=function(t,i,n){t.setAttribute(i,n)},p=function(t,i){for(var n in i)d(t,n,i[n])},v=function(t,i){return t.dataset[i]},m=function(t,i,n){t.dataset[i]=n},x=function(t,i){for(let n in i)m(t,n,i[n])},g=function(t,i,n){t.style.setProperty(i,n)},b=function(t,i){for(var n in i)g(t,n,i[n])},w=function(t,i){t.classList.add(i)},S=function(t,i){i.forEach((function(i){t.classList.add(i)}))};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;o=function(){s.body},"complete"===s.readyState||"interactive"===s.readyState?o():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",o):s.addEventListener("DOMContentLoaded",o),a.d("SmartSliderFrontendBackgroundAnimation",["SmartSliderMainAnimationSimple"],(function(){function t(t,i,n){this._currentBackgroundAnimation=!1,a.SmartSliderMainAnimationSimple.prototype.constructor.call(this,t,i),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.querySelector(".n2-ss-background-animation"),this.slider.parameters.perspective>0&&this.bgAnimationElement&&g(this.bgAnimationElement,"perspective",this.slider.parameters.perspective+"px"),this.backgroundAnimations=l({global:0,speed:"normal"},n),this.backgrounds=t.backgrounds.getBackgroundImages()}return t.prototype=Object.create(a.SmartSliderMainAnimationSimple.prototype),t.prototype.constructor=t,t.prototype.getBackgroundAnimation=function(t,i){if(this.slider.parameters.backgroundParallax)return!1;if(i.hasBackgroundVideo()||t.hasBackgroundVideo())return!1;var n=this.backgroundAnimations.global,o=this.backgroundAnimations.speed;if(this.xt=!1,i.backgroundAnimation){var s=i.backgroundAnimation;n=s.animation,o=s.speed,s.color&&(this.xt=s.color)}if(!n)return!1;const r=Math.floor(Math.random()*n.length);return!!this.canAnimateWithBackgroundMode(n[r].allowedBackgroundModes,i.background.mode,t.background.mode)&&[n[r],o]},t.prototype.canAnimateWithBackgroundMode=function(t,i,n){return!!(!t||t.includes(i)&&t.includes(n))},t.prototype._initAnimation=function(t,i,n){this._currentBackgroundAnimation=!1;var o=t.background,s=i.background;if(o&&s){const h=new a.SmartSliderBackgroundAnimationBackgroundInterfaceFrontend(o),u=new a.SmartSliderBackgroundAnimationBackgroundInterfaceFrontend(s),c=this.getBackgroundAnimation(t,i);if(!1!==c){var r=1;switch(c[1]){case"superSlow10":r=10;break;case"superSlow":r=3;break;case"slow":r=1.5;break;case"fast":r=.75;break;case"superFast":r=.5}return this._currentBackgroundAnimation=new a["SmartSliderBackgroundAnimation"+c[0].type](this,h,u,c[0],r,n),a.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set({},{onComplete:function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)}.bind(this)})}}a.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},t.prototype.onChangeToComplete=function(t,i){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),a.SmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.onReverseChangeToComplete=function(t,i,n){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),a.SmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},t.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},t.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},t})),a.d("SmartSliderBackgroundAnimationAbstract",(function(){function t(t,i,n,o,s,r){this.durationMultiplier=s,this.original={currentImage:i,currentImageElement:i.backgroundElement,currentImageSMW:a.MW.k(i.backgroundElement),nextImage:n,nextImageElement:n.backgroundElement,nextImageSMW:a.MW.k(n.backgroundElement)},this.animationProperties=o,this.reversed=r,this.sliderBackgroundAnimation=t,this.timeline=t.timeline,this.containerElement=t.bgAnimationElement,this.shiftedBackgroundAnimation=t.parameters.shiftedBackgroundAnimation,this.clonedImages={}}return t.prototype.postSetup=function(){},t.prototype.ended=function(){},t.prototype.revertEnded=function(){},t.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImageElement.cloneNode(!0),b(this.clonedImages.nextImage,{position:"absolute",top:0,left:0,transform:"translate3d(0,0,0)",opacity:1}),this.containerElement.appendChild(this.clonedImages.nextImage)},t.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImageElement.cloneNode(!0),b(this.clonedImages.currentImage,{position:"absolute",top:0,left:0,transform:"translate3d(0,0,0)",opacity:1}),this.containerElement.appendChild(this.clonedImages.currentImage)},t.prototype.hideOriginals=function(){g(this.original.currentImageElement,"opacity",0),g(this.original.nextImageElement,"opacity",0)},t.prototype.resetAll=function(){g(this.original.currentImageElement,"opacity",1),g(this.original.nextImageElement,"opacity",1),this.containerElement.innerHTML=""},t.prototype.getExtraDelay=function(){return 10/60},t})),a.d("SmartSliderBackgroundAnimationBackgroundInterface",(function(){return class{constructor(t){this.backgroundElement=t}getImage(){return this.backgroundElement.querySelector("img").currentSrc}getSize(){const t=this.backgroundElement.getBoundingClientRect();return[t.width,t.height]}hasImage(){return!0}isCover(){return!0}getOpacity(){return 1}getBlur(){return 0}isOverlay(){return!1}getOverlay(){return!1}getFocusX(){return.5}getFocusY(){return.5}getColor(){return"RGBA(0,0,0,0)"}}})),a.d("SmartSliderBackgroundAnimationBackgroundInterfaceFrontend","SmartSliderBackgroundAnimationBackgroundInterface",(function(){class t extends a.SmartSliderBackgroundAnimationBackgroundInterface{constructor(t){super(t.element),this.background=t}hasImage(){return this.background.hasImage()}getImage(){return super.getImage()}isCover(){return!this.hasImage()||"fill"===v(this.background.element,"mode")}getOpacity(){return+v(this.background.elements.image.imageElements[0],"opacity")/100}getBlur(){return+this.background.elements.image.blur}isOverlay(){return!!v(this.background.elements.color.el,"overlay")}getFocusX(){return+v(this.background.elements.image.imageElements[0],"x")/100}getFocusY(){return+v(this.background.elements.image.imageElements[0],"y")/100}getColor(t){const i=this.background.elements.color.el,n=v(i,"gradient"),o=t.canvas.width,s=t.canvas.height;let r=0;if(n){let h=0,a=0,u=0,c=0;switch(n){case"horizontal":u=o;break;case"vertical":c=s;break;case"diagonal1":r=45;break;case"diagonal2":r=135}if(0!==r){const t=(180-r)/180*Math.PI,i=Math.abs(o*Math.sin(t))+Math.abs(s*Math.cos(t)),n=Math.sin(t)*i/2,l=Math.cos(t)*i/2,f=o/2,d=s/2;h=f-n,a=d-l,u=f+n,c=d+l}let l=t.createLinearGradient(h,a,u,c);return l.addColorStop(0,v(i,"colorStart")),l.addColorStop(1,v(i,"colorEnd")),l}return v(i,"color")}}return t})),a.d("SmartSliderBackgroundAnimationCubic",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);t.fullCube=!0,this.reversed&&(t.invert!==n&&f(t.main,t.invert),t.invertTiles!==n&&l(t.tiles,t.invertTiles)),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,o,s,r){var h=o.depth;switch(h){case"width":h=i;break;case"height":h=n}switch(o.main.side){case"Top":case"Bottom":h=n;break;case"Left":case"Right":h=i}o.main.real3D&&g(t,"transform-style","preserve-3d");var u=c(),l=a.MW.k(u);b(u,{position:"absolute",left:0,top:0,width:"100%",height:"100%","transform-style":"preserve-3d"}),l.z=-h/2,t.appendChild(u);var f=0;"horizontal"===o.main.direction&&(f=180);var d=this.getSide(u,i,n,0,0,-h/2,180,0,f),p={Back:d,BackInvert:d};(o.fullCube||"vertical"===o.main.direction)&&(p.Bottom=this.getSide(u,i,h,0,n-h/2,0,-90,0,0),p.Top=this.getSide(u,i,h,0,-h/2,0,90,0,0)),p.Front=this.getSide(u,i,n,0,0,h/2,0,0,0),(o.fullCube||"horizontal"===o.main.direction)&&(p.Left=this.getSide(u,h,n,-h/2,0,0,0,-90,0),p.Right=this.getSide(u,h,n,i-h/2,0,0,0,90,0));var v=this.clonedCurrent().cloneNode(!0);b(v,{position:"absolute",top:-r+"px",left:-s+"px"}),p.Front.appendChild(v);var m=this.clonedNext().cloneNode(!0);return b(m,{position:"absolute",top:-r+"px",left:-s+"px"}),p[o.main.side].appendChild(m),a.MW.k(u)},t.prototype.getSide=function(t,i,n,o,s,r,h,u,l){var f=c();return f.className="n2-bganim-side",b(f,{width:i+"px",height:n+"px","backface-visibility":"hidden"}),t.appendChild(f),a.MW.k(f).setValues({x:o,y:s,z:r,rotationZ:l,rotationY:u,rotationX:h}),f},t.prototype.transform=function(t,i,n){var o,s,r;for(o=0;o<t.pre.length;o++)r=(s=l({},t.pre[o])).duration*this.durationMultiplier,delete s.duration,this.timeline.to(i,r,s,n),n+=r;for(this["transform"+t.main.side](t.main,i,n),n+=t.main.duration*this.durationMultiplier,o=0;o<t.post.length;o++)r=(s=l({},t.post[o])).duration*this.durationMultiplier,delete s.duration,this.timeline.to(i,r,s,n),n+=r},t.prototype.transformLeft=function(t,i,n){this._transform(t,i,n,0,90,0)},t.prototype.transformRight=function(t,i,n){this._transform(t,i,n,0,-90,0)},t.prototype.transformTop=function(t,i,n){this._transform(t,i,n,-90,0,0)},t.prototype.transformBottom=function(t,i,n){this._transform(t,i,n,90,0,0)},t.prototype.transformBack=function(t,i,n){"horizontal"===t.direction?this._transform(t,i,n,0,180,0):this._transform(t,i,n,180,0,0)},t.prototype.transformBackInvert=function(t,i,n){"horizontal"===t.direction?this._transform(t,i,n,0,-180,0):this._transform(t,i,n,-180,0,0)},t.prototype._transform=function(t,i,n,o,s,r){this.timeline.to(i,t.duration*this.durationMultiplier,{rotationX:o,rotationY:s,rotationZ:r,ease:t.ease},n)},t})),a.d("SmartSliderBackgroundAnimationExplode",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),b(this.clonedImages.nextImage,{overflow:"hidden",width:"100%",height:"100%"}),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,o,s,r){var h=c(),u=this.clonedCurrent().cloneNode(!0);return b(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":o.main.zIndex,perspective:"1000px",transformStyle:"preserve-3d"}),b(u,{position:"absolute",top:-r+"px",left:-s+"px"}),h.appendChild(u),t.appendChild(h),{current:h,tileSMW:a.MW.k(t)}},t.prototype.transform=function(t,i,n){var o=l({},t.main.current);o.rotationX=90*(3*Math.random()-1),o.rotationY=90*(3*Math.random()-1),o.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tileSMW,t.main.duration*this.durationMultiplier,o,n)},t})),a.d("SmartSliderBackgroundAnimationExplodeReversed",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),b(this.clonedImages.currentImage,{overflow:"hidden",width:"100%",height:"100%"}),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,o,s,r){var h=c(),u=this.clonedNext().cloneNode(!0);return b(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":o.main.zIndex,perspective:"1000px","transform-style":"preserve-3d"}),b(u,{position:"absolute",top:-r+"px",left:-s+"px"}),h.appendChild(u),t.appendChild(h),{next:h,tileSMW:a.MW.k(t)}},t.prototype.transform=function(t,i,n){var o=f({},t.main.current);o.rotationX=90*(3*Math.random()-1),o.rotationY=90*(3*Math.random()-1),o.rotationZ=30*(3*Math.random()-1),this.timeline.fromTo(i.tileSMW,t.main.duration*this.durationMultiplier,o,{ease:o.ease,rotationX:0,rotationY:0,rotationZ:0,opacity:1,x:0,y:0,z:0,scale:1},n)},t})),a.d("SmartSliderBackgroundAnimationFlat",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&(t.invert!==n&&f(t.main,t.invert),t.invertTiles!==n&&l(t.tiles,t.invertTiles)),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t),t.tiles.cropOuter&&g(this.container,"overflow","hidden")},t.prototype.renderTile=function(t,i,n,o,s,r){o.tiles.crop&&g(t,"overflow","hidden");var h=c(),u=this.clonedCurrent().cloneNode(!0);b(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":o.main.zIndex}),b(u,{position:"absolute",top:-r+"px",left:-s+"px"}),h.appendChild(u),t.appendChild(h);var l,f,d=c(),p=this.clonedNext().cloneNode(!0);return b(d,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":1}),b(p,{position:"absolute",top:-r+"px",left:-s+"px"}),d.appendChild(p),t.appendChild(d),o.main.real3D&&(l="transform-style",f="preserve-3d",[t,h,d].forEach((function(t){g(t,l,f)}))),{current:h,currentSMW:a.MW.k(h),next:d,nextSMW:a.MW.k(d)}},t.prototype.transform=function(t,i,n){var o=t.main;o.current.transformOrigin&&(i.currentSMW.transformOrigin=o.current.transformOrigin),"current"!=o.type&&"both"!=o.type||this.timeline.to(i.currentSMW,o.duration*this.durationMultiplier,o.current,n),"next"!=o.type&&"both"!=o.type||(o.next.transformOrigin&&(i.nextSMW.transformOrigin=o.next.transformOrigin),this.timeline.fromTo(i.nextSMW,o.duration*this.durationMultiplier,o.next,{ease:o.next.ease,rotationX:0,rotationY:0,rotationZ:0,opacity:1,x:0,y:0,z:0,xP:0,yP:0,scale:1},n))},t})),a.d("SmartSliderBackgroundAnimationSlices",["SmartSliderBackgroundAnimationFluxAbstract"],(function(){function t(){a.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationFluxAbstract.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({slices:6,direction:"horizontal",isReversed:!1,tiles:{delay:.05,sequence:"normal",duration:.6,stages:[{},{},{}]}},this.animationProperties);this.container=c(),b(this.container,{position:"absolute",left:0,top:0,width:this.w+"px",height:this.h+"px",overflow:"hidden",perspective:"1000px"});var i,o,s=[];if("horizontal"===t.direction){for(var r=Math.floor(this.h/t.slices),h=this.h-t.slices*r,u=Math.ceil(h/t.slices),l=h,d=0,p=0;p<t.slices;p++){var v=r;l>0&&(v+=o=l>=u?u:l,l-=o),(i=c()).className="tile n2-bganim-tile-overlay-colored",b(i,{position:"absolute",top:d+"px",left:0,width:"100%",height:v+"px","z-index":1e6}),this.sliderBackgroundAnimation.xt&&g(i,"background-color",this.sliderBackgroundAnimation.xt),this.container.appendChild(i),s.push(a.MW.k(i)),d+=v}t.tiles.stages[0].x=this.w,t.tiles.stages[1].x=0,t.tiles.stages[2].x=-this.w}else if("vertical"===t.direction){for(var m=Math.floor(this.w/t.slices),x=this.w-t.slices*m,w=Math.ceil(x/t.slices),S=0,y=0;y<t.slices;y++){var k=m;x>0&&(k+=o=x>=w?w:x,x-=o),(i=c()).className="tile n2-bganim-tile-overlay-colored",b(i,{position:"absolute",top:0,left:S+"px",width:k+"px",height:"100%","z-index":1e6}),this.sliderBackgroundAnimation.xt&&g(i,"background-color",this.sliderBackgroundAnimation.xt),this.container.appendChild(i),s.push(a.MW.k(i)),S+=k}t.tiles.stages[0].y=this.h,t.tiles.stages[1].y=0,t.tiles.stages[2].y=-this.h}(this.reversed&&!t.isReversed||!this.reversed&&t.isReversed)&&(t.tiles.stages=t.tiles.stages.reverse());var M=c(),A=this.clonedCurrent().cloneNode(!0);b(M,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":99999}),b(A,{position:"absolute",top:0,left:0}),M.appendChild(A),this.container.appendChild(M);var B=c(),O=a.MW.k(B),I=this.clonedNext().cloneNode(!0);b(B,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden","z-index":99999}),O.opacity=0,b(I,{position:"absolute",top:0,left:0}),B.appendChild(I),this.container.appendChild(B);var z,C,j=this.timeline.totalDuration();switch(t.tiles.sequence){case"FromSide":for(z=Math.floor(t.slices/2),C=0;C<s.length;C++)this.timeline.fromTo(s[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[0],t.tiles.stages[1],j+t.tiles.delay*Math.abs(Math.abs(z-C)-z));break;case"FromCenter":for(z=Math.floor(t.slices/2),C=0;C<s.length;C++)this.timeline.fromTo(s[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[0],t.tiles.stages[1],j+t.tiles.delay*Math.abs(z-C));break;default:for(C=0;C<s.length;C++)this.timeline.fromTo(s[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[0],t.tiles.stages[1],j+t.tiles.delay*C)}this.timeline.set(O,{opacity:1});var F=this.timeline.totalDuration()+.3;switch(t.tiles.sequence){case"FromSide":for(z=Math.floor(t.slices/2),C=0;C<s.length;C++)this.timeline.to(s[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[2],F+t.tiles.delay*Math.abs(Math.abs(z-C)-z));break;case"FromCenter":for(z=Math.floor(t.slices/2),C=0;C<s.length;C++)this.timeline.to(s[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[2],F+t.tiles.delay*Math.abs(z-C));break;default:for(C=0;C<s.length;C++)this.timeline.to(s[C],t.tiles.duration*this.durationMultiplier,t.tiles.stages[2],F+t.tiles.delay*C)}t.nextImage!==n&&this.timeline.fromTo(O,this.timeline.totalDuration()-F+1,t.nextImage[0],t.nextImage[1],F),this.duration=this.timeline.totalDuration()-j,this.containerElement.appendChild(this.container),this.preSetup()},t})),a.d("SmartSliderBackgroundAnimationSlixes",["SmartSliderBackgroundAnimationTiled"],(function(){function t(){a.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationTiled.prototype),t.prototype.constructor=t,t.prototype.setup=function(){var t=f({columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),b(this.clonedImages.nextImage,{overflow:"hidden",width:"100%",height:"100%"}),a.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,t)},t.prototype.renderTile=function(t,i,n,o,s,r){g(this.container,"overflow","hidden");var h=c(),u=this.clonedCurrent().cloneNode(!0);return b(h,{position:"absolute",left:0,top:0,width:i+"px",height:n+"px",overflow:"hidden","z-index":o.main.zIndex}),b(u,{position:"absolute",top:-r+"px",left:-s+"px"}),h.appendChild(u),t.appendChild(h),b(t,{perspective:"1000px","transform-style":"preserve-3d"}),{current:h,tileSMW:a.MW.k(t)}},t.prototype.animate=function(t,i,n){this.timeline.to(n[0][0].tileSMW,t.main.duration*this.durationMultiplier,{xP:-100,ease:"easeInOutCubic"},0),this.timeline.to(n[0][1].tileSMW,t.main.duration*this.durationMultiplier,{xP:-100,ease:"easeInOutCubic"},.3),this.timeline.to(n[1][0].tileSMW,t.main.duration*this.durationMultiplier,{xP:100,ease:"easeInOutCubic"},.15),this.timeline.to(n[1][1].tileSMW,t.main.duration*this.durationMultiplier,{xP:100,ease:"easeInOutCubic"},.45);var o=c();b(o,{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}),this.clonedImages.nextImage.parentNode.prepend(o),o.appendChild(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},t})),a.d("SmartSliderBackgroundAnimationTiled",["SmartSliderBackgroundAnimationFluxAbstract"],(function(){function t(){a.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationFluxAbstract.prototype),t.prototype.constructor=t,t.prototype.setup=function(t){var i=c();b(i,{position:"absolute",left:0,top:0,width:this.w+"px",height:this.hc+"px",perspective:"1000px",transform:"translate3d(0,0,0)"}),this.container=i;for(var n=[],o=[],s=t.columns,r=t.rows,h=Math.floor(this.w/s),a=Math.floor(this.h/r),u=this.w-s*h,l=Math.ceil(u/s),f=this.h-r*a,d=Math.ceil(f/r),p=0,v=0;v<s;v++){n[v]=[];var m=h,x=0;if(u>0)m+=S=u>=l?l:u,u-=S;for(var g=f,w=0;w<r;w++){var S,y=a;if(g>0)y+=S=g>=d?d:g,g-=S;var k=c();k.className="tile",b(k,{position:"absolute",top:x+"px",left:p+"px",width:m+"px",height:y+"px","z-index":-Math.abs(v-parseInt(s/2))+s-Math.abs(w-parseInt(r/2))}),i.appendChild(k);var M=this.renderTile(k,m,y,t,p,x);o.push(M),n[v][w]=M,x+=y}p+=m}this.containerElement.appendChild(i),this.preSetup(),this.animate(t,o,n)},t.prototype.animate=function(t,i,n){this["sequence"+t.tiles.sequence](this.transform.bind(this,t),i,n,t.tiles.delay*this.durationMultiplier)},t.prototype.sequenceParallel=function(t,i){t(i,null)},t.prototype.sequenceRandom=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=0;r<i.length;r++)t(i[r],s+Math.random()*o)},t.prototype.sequenceForwardCol=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=0;r<i.length;r++)t(i[r],s+o*r)},t.prototype.sequenceBackwardCol=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=i.length-1,h=0;h<i.length;h++)t(i[h],s+o*(r-h))},t.prototype.sequenceForwardRow=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=0,h=0;h<n[0].length;h++)for(var a=0;a<n.length;a++)t(n[a][h],s+o*r),r++},t.prototype.sequenceBackwardRow=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=i.length-1,h=0;h<n[0].length;h++)for(var a=0;a<n.length;a++)t(n[a][h],s+o*r),r--},t.prototype.sequenceForwardDiagonal=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=0;r<n[0].length;r++)for(var h=0;h<n.length;h++)t(n[h][r],s+o*(h+r))},t.prototype.sequenceBackwardDiagonal=function(t,i,n,o){for(var s=this.timeline.totalDuration(),r=n[0].length+n.length-2,h=0;h<n[0].length;h++)for(var a=0;a<n.length;a++)t(n[a][h],s+o*(r-a-h))},t})),a.d("SmartSliderBackgroundAnimationTurn",["SmartSliderBackgroundAnimationFluxAbstract"],(function(){function t(){a.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments);var t=f({perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"===t.direction?t.direction="right":t.direction="left");var i=parseInt(this.w/2);b(this.clonedCurrent(),{position:"absolute",top:0,left:("left"===t.direction?this.w/2*-1:0)+"px"}),b(this.clonedNext(),{position:"absolute",top:0,left:("left"===t.direction?0:this.w/2*-1)+"px"});var n=c();n.className="tab",b(n,{width:i+"px",height:this.h+"px",position:"absolute",top:"0",left:("left"===t.direction?i:"0")+"px","z-index":101,"transform-style":"preserve-3d","transform-origin":"left"===t.direction?"0 0":i+"px 0"});var o=c();o.className="n2-ff-3d",o.appendChild(this.clonedCurrent()),b(o,{width:i+"px",height:this.h+"px",position:"absolute",top:0,left:0,overflow:"hidden","backface-visibility":"hidden","transform-style":"preserve-3d"}),n.appendChild(o);var s=c();s.className="n2-ff-3d",s.appendChild(this.clonedNext()),b(s,{width:i+"px",height:this.h+"px",position:"absolute",top:0,left:0,overflow:"hidden",transform:"rotateZ(0deg) rotateY(180deg)","backface-visibility":"hidden","transform-style":"preserve-3d"}),n.appendChild(s);var r=c(),h=this.clonedCurrent().cloneNode(!0);g(h,"left","left"===t.direction?0:-i+"px"),b(r,{position:"absolute",top:0,left:"left"===t.direction?"0":i+"px",width:i+"px",height:this.h+"px","z-index":100,overflow:"hidden"}),r.appendChild(h);var u=c();u.className="overlay",b(u,{position:"absolute",top:0,left:"left"===t.direction?i+"px":0,width:i+"px",height:this.h+"px",background:"#000",opacity:1,overflow:"hidden"});var l=c();b(l,{width:this.w+"px",height:this.h+"px",position:"absolute",top:0,left:0,perspective:t.perspective+"px","perspective-origin":"50% 50%"}),l.appendChild(n),l.appendChild(r),l.appendChild(u),this.placeNextImage(),b(this.clonedImages.nextImage,{overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.appendChild(l),this.preSetup(),this.timeline.to(a.MW.k(n),t.duration*this.durationMultiplier,{rotationY:"left"===t.direction?-180:180},0),this.timeline.to(a.MW.k(u),t.duration*this.durationMultiplier,{opacity:0},0)}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationFluxAbstract.prototype),t.prototype.constructor=t,t})),a.d("SmartSliderBackgroundAnimationFluxAbstract",["SmartSliderBackgroundAnimationAbstract"],(function(){function t(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,a.SmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments);var t=this.original.currentImageElement.getBoundingClientRect();this.w=Math.ceil(t.width),this.h=t.height,this.hc=Math.ceil(t.height)}function i(t){t.querySelectorAll("img").forEach((function(t){t.currentSrc&&t.src!==t.currentSrc&&(t.src="")}))}return t.prototype=Object.create(a.SmartSliderBackgroundAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.clonedCurrent=function(){return this._clonedCurrent||(n2const.isFirefox&&i(this.original.currentImageElement),this._clonedCurrent=this.original.currentImageElement.cloneNode(!0),b(this._clonedCurrent,{width:this.w+"px",height:this.h+"px",transform:"translate3d(0,0,0)",opacity:1})),this._clonedCurrent},t.prototype.clonedNext=function(){return this._clonedNext||(n2const.isFirefox&&i(this.original.nextImageElement),this._clonedNext=this.original.nextImageElement.cloneNode(!0),b(this._clonedNext,{width:this.w+"px",height:this.h+"px",transform:"translate3d(0,0,0)",opacity:1})),this._clonedNext},t.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},t.prototype._preSetup=function(t){this.timeline.set(this.original.currentImageSMW,{opacity:0},0),this.original.nextImageSMW.opacity=0},t.prototype.postSetup=function(){this.timeline.set(this.original.nextImageSMW,{opacity:1})},t.prototype.ended=function(){this.original.currentImageSMW.opacity=1,this.containerElement.innerHTML=""},t.prototype.revertEnded=function(){this.original.nextImageSMW.opacity=1,this.containerElement.innerHTML=""},t})),a.d("smartslider-backgroundanimation")}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,h=t.document,n=(h.documentElement,t.setTimeout),a=t.clearTimeout,r=i._N2,o=(t.requestAnimationFrame,h.createElement.bind(h),Object.assign),c=function(t,i){return t.dispatchEvent(i)},u=function(t,i){return c(t,new Event(i,{bubbles:!1,cancelable:!1}))},l=function(t,i,s){t.addEventListener(i,s,{once:!0})};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){h.body},"complete"===h.readyState||"interactive"===h.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==h.addEventListener?Document.prototype.addEventListener.call(h,"DOMContentLoaded",s):h.addEventListener("DOMContentLoaded",s),r.d("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],(function(){function t(t,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,(i=o({delay:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i)).delay/=1e3,i.duration<300&&(i.type="no"),r.SmartSliderMainAnimationAbstract.prototype.constructor.call(this,t,i),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVertical;break;case"vertical-reversed":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVerticalReversed;break;case"horizontal-reversed":this.animation=this._mainAnimationHorizontalReversed;break;default:this.animation=this._mainAnimationHorizontal}}return t.prototype=Object.create(r.SmartSliderMainAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.changeTo=function(t,i,s,h){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(t,i),r.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},t.prototype.setActiveSlide=function(t){for(var i=0;i<this.slider.slides.length;i++)this.slider.slides[i]!==t&&this.hideSlide(this.slider.slides[i])},t.prototype.hideSlide=function(t){r.MW.R(t.SMWs,{x:-1e5*n2const.rtl.modifier})},t.prototype.showSlide=function(t){r.MW.R(t.SMWs,{x:0,y:0})},t.prototype.cleanSlideIndex=function(t){this.hideSlide(this.slider.slides[t])},t.prototype.revertTo=function(t,i){r.MW.R(this.slider.slides[i].SMWs,{zIndex:""}),this.hideSlide(this.slider.slides[i]),r.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},t.prototype._initAnimation=function(t,i,s){this.animation(t,i,s)},t.prototype.onBackwardChangeToComplete=function(t,i,s){this.reverseSlideIndex=null,this.onChangeToComplete(t,i,s)},t.prototype.onChangeToComplete=function(t,i,s){null!==this.reverseSlideIndex&&(u(this.slider.slides[this.reverseSlideIndex].element,"mainAnimationStartInCancel"),this.reverseSlideIndex=null),this.hideSlide(t),r.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.onReverseChangeToComplete=function(t,i,s){this.hideSlide(t),r.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},t.prototype._mainAnimationNo=function(t,i){this.parameters.delay=0,this.parameters.duration=.1,this._mainAnimationFade(t,i)},t.prototype._mainAnimationFade=function(t,i){r.MW.R(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();if(0!==this.parameters.shiftedBackgroundAnimation){var h=!1,n=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?h=!0:n=!0:h=!0,this._currentBackgroundAnimation&&h){var a=s.outDuration-s.extraDelay;a>0&&this.timeline.shiftChildren(a),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else n&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}var o=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&o.push(t.SMWs[1]),this.timeline.fromTo(o,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=r.MW.k(i.element);this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),!this._currentBackgroundAnimation&&i.background&&(r.MW.k(i.background.element).opacity=1),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex];r.MW.R(t.SMWs,{zIndex:"",opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationCrossFade=function(t,i){r.MW.R(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var h=!1,n=!1;if("auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?h=!0:n=!0:h=!0,this._currentBackgroundAnimation&&h){var a=s.outDuration-s.extraDelay;a>0&&this.timeline.shiftChildren(a),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else n&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}var o=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&o.push(t.SMWs[1]),this.timeline.fromTo(o,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=[i.SMWs[0]];!this._currentBackgroundAnimation&&i.SMWs[1]&&c.push(i.SMWs[1]),this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];r.MW.R(t.SMWs,{zIndex:"",opacity:1}),r.MW.R(i.SMWs,{opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationHorizontal=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",s)},t.prototype._mainAnimationVertical=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",s)},t.prototype._mainAnimationHorizontalReversed=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",!s)},t.prototype._mainAnimationVerticalReversed=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",!s)},t.prototype.__mainAnimationDirection=function(t,i,s,h){var n=t.SMWs,a=i.SMWs,o=[t,i],c="",u=0;"horizontal"===s?(c="x",u=Math.floor(this.slider.responsive.resizeContext.slideOuterWidth),n2const.rtl.isRtl&&(h=!h)):"vertical"===s&&(c="y",u=Math.floor(this.slider.responsive.resizeContext.slideOuterHeight)),h&&(u*=-1);var f={},v={snap:"x,y",ease:this.getEase()},d={snap:"x,y",ease:this.getEase()};f[c]=u,d[c]=-u,r.MW.R(n,{zIndex:23});var m={zIndex:23};m[c]=u,r.MW.R(a,m),t.unsetActive(),i.setActive();var p,S=this.adjustMainAnimation();if(v[c]=0,this.timeline.fromTo(a,S.inDuration,f,v,S.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var x=!1,y=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?x=!0:y=!0:x=!0,this._currentBackgroundAnimation&&x){var b=S.outDuration-S.extraDelay;b>0&&this.timeline.shiftChildren(b),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else y&&(S.extraDelay>0&&this.timeline.shiftChildren(S.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(n,S.outDuration,d,S.outDelay),this.isTouch&&this.isReverseAllowed)if(h?this.slider.blockCarousel&&this.slider.isChangeCarousel("next")||(p=t.getNext()):this.slider.blockCarousel&&this.slider.isChangeCarousel("previous")||(p=t.getPrevious()),p&&p!==i){this.reverseSlideIndex=p.index,this.enableReverseMode(),o.push(p),"vertical"===s&&this.showSlide(p);var D=p.SMWs,z={};z[c]=u,r.MW.R(D,z);var A={},I={snap:"x,y",ease:this.getEase()},w={},k={snap:"x,y",ease:this.getEase()};I[c]=0,A[c]=-u,k[c]=u,w[c]=0,p.K("mainAnimationStartIn",{mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:p.index,isSystem:!1}),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete.bind(this),[t,p,!1]),this.reverseTimeline.fromTo(D,S.inDuration,A,I,S.inDelay),this.reverseTimeline.fromTo(n,S.inDuration,w,k,S.inDelay)}else this.reverseSlideIndex=null;l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];r.MW.R(t.SMWs,{zIndex:""}),r.MW.R(i.SMWs,{zIndex:""})}.bind(this)),this.slider.updateInsideSlides(o)},t.prototype.getExtraDelay=function(){return 0},t.prototype.adjustMainAnimation=function(){var t=this.parameters.duration,i=this.parameters.delay,s=this.timeline.totalDuration(),h=this.getExtraDelay();if(s>0){var n=t+i;if(!(n>(s-=.05)))return{inDuration:t,outDuration:t,inDelay:s-t,outDelay:h,extraDelay:h};t=t*s/n,(i=i*s/n)<h&&(t-=h-i,i=h)}else i+=h;return{inDuration:t,outDuration:t,inDelay:i,outDelay:i,extraDelay:h}},t.prototype.hasBackgroundAnimation=function(){return!1},t})),r.d("SmartSliderResponsiveSimple",["SmartSliderResponsive"],(function(){function t(){this.round=1,r.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.xt=this.sliderElement.classList.contains("n2-ss-full-page--constrain-ratio"),this.mainAnimation=this.slider.mainAnimation}return t.prototype=Object.create(r.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.init=function(){r.SmartSliderResponsive.prototype.init.call(this),this._cacheEl={slider:this.sliderElement.querySelector(".n2-ss-slider-wrapper-inside")||this.sliderElement,"n2-ss-slider-2":this.sliderElement.querySelector(".n2-ss-slider-2"),"n2-ss-slider-3":this.sliderElement.querySelector(".n2-ss-slider-3")},this._cacheEl["n2-ss-slider-3"].addEventListener("scroll",(function(e){e.currentTarget.scrollTop=0,e.currentTarget.scrollLeft=0}),{capture:!0})},t.prototype.calculateResponsiveValues=function(){var t=this.slider.visibleRealSlides[0].element,i=t.getBoundingClientRect();this.resizeContext.slideSelfWidth=i.width,this.resizeContext.slideSelfHeight=i.height;var s=t.querySelector(".n2-ss-layers-container").getBoundingClientRect();this.resizeContext.slideWidth=s.width,this.resizeContext.slideHeight=s.height;var h=this._cacheEl.slider.getBoundingClientRect();this.resizeContext.sliderWidth=h.width,this.resizeContext.sliderHeight=h.height;var n=this._cacheEl["n2-ss-slider-3"].getBoundingClientRect();if(this.resizeContext.slideOuterWidth=n.width,this.resizeContext.slideOuterHeight=n.height,r.SmartSliderResponsive.prototype.calculateResponsiveValues.call(this),this.xt){var a=(this.resizeContext.sliderWidth-this.resizeContext.slideWidth)/-2+"px",o=(this.resizeContext.sliderHeight-this.resizeContext.slideHeight)/-2+"px";r.MW.k(this._cacheEl.slider)["--ss-clip-path"]="inset("+o+" "+a+" "+o+" "+a+")"}},t.prototype.onStarterSlide=function(t){this.slider.slides.forEach((function(t){t.SMWs=[r.MW.k(t.element,{x:"-10000px"})],t.background&&t.SMWs.push(r.MW.k(t.background.element,{x:"-10000px"}))})),r.SmartSliderResponsive.prototype.onStarterSlide.apply(this,arguments),this.mainAnimation.setActiveSlide(this.slider.currentSlide)},t})),r.d("SmartSliderSimple",["SmartSliderAbstract"],(function(){function t(t,i){this.type="simple",r.SmartSliderAbstract.prototype.constructor.call(this,t,o({bgAnimations:0,carousel:1},i))}return t.prototype=Object.create(r.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new r.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),r.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){!this.disabled.backgroundAnimations&&this.parameters.bgAnimations?this.mainAnimation=new r.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new r.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},t.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[t];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var i=0;i<this.slides.length;i++)this.slides[i].backgroundAnimation=this.parameters.bgAnimations.slides[i];delete this.parameters.bgAnimations.slides}},t.prototype.forceSetActiveSlide=function(t){t.setActive(),this.mainAnimation.showSlide(t)},t.prototype.forceUnsetActiveSlide=function(t){t.unsetActive(),this.mainAnimation.hideSlide(t)},t.prototype.getAnimationAxis=function(){switch(this.mainAnimation.parameters.type){case"vertical":case"vertical-reversed":return"vertical"}return"horizontal"},t})),r.d("ss-simple",["SmartSliderSimple","SmartSliderResponsiveSimple","SmartSliderMainAnimationSimple"])}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,h=t.document,n=(h.documentElement,t.setTimeout),a=t.clearTimeout,r=i._N2,o=(t.requestAnimationFrame,Object.assign),c=function(t,i){return t.dispatchEvent(i)},u=function(t,i){return c(t,new Event(i,{bubbles:!1,cancelable:!1}))},l=function(t,i,s){t.addEventListener(i,s,{once:!0})};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){h.body},"complete"===h.readyState||"interactive"===h.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==h.addEventListener?Document.prototype.addEventListener.call(h,"DOMContentLoaded",s):h.addEventListener("DOMContentLoaded",s),r.d("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],(function(){function t(t,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,(i=o({delay:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i)).delay/=1e3,i.duration<300&&(i.type="no"),r.SmartSliderMainAnimationAbstract.prototype.constructor.call(this,t,i),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVertical;break;case"vertical-reversed":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVerticalReversed;break;case"horizontal-reversed":this.animation=this._mainAnimationHorizontalReversed;break;default:this.animation=this._mainAnimationHorizontal}}return t.prototype=Object.create(r.SmartSliderMainAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.changeTo=function(t,i,s,h){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(t,i),r.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},t.prototype.setActiveSlide=function(t){for(var i=0;i<this.slider.slides.length;i++)this.slider.slides[i]!==t&&this.hideSlide(this.slider.slides[i])},t.prototype.hideSlide=function(t){r.MW.R(t.SMWs,{x:-1e5*n2const.rtl.modifier})},t.prototype.showSlide=function(t){r.MW.R(t.SMWs,{x:0,y:0})},t.prototype.cleanSlideIndex=function(t){this.hideSlide(this.slider.slides[t])},t.prototype.revertTo=function(t,i){r.MW.R(this.slider.slides[i].SMWs,{zIndex:""}),this.hideSlide(this.slider.slides[i]),r.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},t.prototype._initAnimation=function(t,i,s){this.animation(t,i,s)},t.prototype.onBackwardChangeToComplete=function(t,i,s){this.reverseSlideIndex=null,this.onChangeToComplete(t,i,s)},t.prototype.onChangeToComplete=function(t,i,s){null!==this.reverseSlideIndex&&(u(this.slider.slides[this.reverseSlideIndex].element,"mainAnimationStartInCancel"),this.reverseSlideIndex=null),this.hideSlide(t),r.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.onReverseChangeToComplete=function(t,i,s){this.hideSlide(t),r.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},t.prototype._mainAnimationNo=function(t,i){this.parameters.delay=0,this.parameters.duration=.1,this._mainAnimationFade(t,i)},t.prototype._mainAnimationFade=function(t,i){r.MW.R(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();if(0!==this.parameters.shiftedBackgroundAnimation){var h=!1,n=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?h=!0:n=!0:h=!0,this._currentBackgroundAnimation&&h){var a=s.outDuration-s.extraDelay;a>0&&this.timeline.shiftChildren(a),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else n&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}var o=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&o.push(t.SMWs[1]),this.timeline.fromTo(o,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=r.MW.k(i.element);this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),!this._currentBackgroundAnimation&&i.background&&(r.MW.k(i.background.element).opacity=1),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex];r.MW.R(t.SMWs,{zIndex:"",opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationCrossFade=function(t,i){r.MW.R(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var h=!1,n=!1;if("auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?h=!0:n=!0:h=!0,this._currentBackgroundAnimation&&h){var a=s.outDuration-s.extraDelay;a>0&&this.timeline.shiftChildren(a),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else n&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}var o=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&o.push(t.SMWs[1]),this.timeline.fromTo(o,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=[i.SMWs[0]];!this._currentBackgroundAnimation&&i.SMWs[1]&&c.push(i.SMWs[1]),this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];r.MW.R(t.SMWs,{zIndex:"",opacity:1}),r.MW.R(i.SMWs,{opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationHorizontal=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",s)},t.prototype._mainAnimationVertical=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",s)},t.prototype._mainAnimationHorizontalReversed=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",!s)},t.prototype._mainAnimationVerticalReversed=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",!s)},t.prototype.__mainAnimationDirection=function(t,i,s,h){var n=t.SMWs,a=i.SMWs,o=[t,i],c="",u=0;"horizontal"===s?(c="x",u=Math.floor(this.slider.responsive.resizeContext.slideOuterWidth),n2const.rtl.isRtl&&(h=!h)):"vertical"===s&&(c="y",u=Math.floor(this.slider.responsive.resizeContext.slideOuterHeight)),h&&(u*=-1);var f={},v={snap:"x,y",ease:this.getEase()},d={snap:"x,y",ease:this.getEase()};f[c]=u,d[c]=-u,r.MW.R(n,{zIndex:23});var m={zIndex:23};m[c]=u,r.MW.R(a,m),t.unsetActive(),i.setActive();var p,S=this.adjustMainAnimation();if(v[c]=0,this.timeline.fromTo(a,S.inDuration,f,v,S.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var x=!1,y=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?x=!0:y=!0:x=!0,this._currentBackgroundAnimation&&x){var b=S.outDuration-S.extraDelay;b>0&&this.timeline.shiftChildren(b),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else y&&(S.extraDelay>0&&this.timeline.shiftChildren(S.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(n,S.outDuration,d,S.outDelay),this.isTouch&&this.isReverseAllowed)if(h?this.slider.blockCarousel&&this.slider.isChangeCarousel("next")||(p=t.getNext()):this.slider.blockCarousel&&this.slider.isChangeCarousel("previous")||(p=t.getPrevious()),p&&p!==i){this.reverseSlideIndex=p.index,this.enableReverseMode(),o.push(p),"vertical"===s&&this.showSlide(p);var D=p.SMWs,z={};z[c]=u,r.MW.R(D,z);var A={},I={snap:"x,y",ease:this.getEase()},w={},k={snap:"x,y",ease:this.getEase()};I[c]=0,A[c]=-u,k[c]=u,w[c]=0,p.K("mainAnimationStartIn",{mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:p.index,isSystem:!1}),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete.bind(this),[t,p,!1]),this.reverseTimeline.fromTo(D,S.inDuration,A,I,S.inDelay),this.reverseTimeline.fromTo(n,S.inDuration,w,k,S.inDelay)}else this.reverseSlideIndex=null;l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];r.MW.R(t.SMWs,{zIndex:""}),r.MW.R(i.SMWs,{zIndex:""})}.bind(this)),this.slider.updateInsideSlides(o)},t.prototype.getExtraDelay=function(){return 0},t.prototype.adjustMainAnimation=function(){var t=this.parameters.duration,i=this.parameters.delay,s=this.timeline.totalDuration(),h=this.getExtraDelay();if(s>0){var n=t+i;if(!(n>(s-=.05)))return{inDuration:t,outDuration:t,inDelay:s-t,outDelay:h,extraDelay:h};t=t*s/n,(i=i*s/n)<h&&(t-=h-i,i=h)}else i+=h;return{inDuration:t,outDuration:t,inDelay:i,outDelay:i,extraDelay:h}},t.prototype.hasBackgroundAnimation=function(){return!1},t})),r.d("SmartSliderResponsiveSimple",["SmartSliderResponsive"],(function(){function t(){this.round=1,r.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.Dt=this.sliderElement.classList.contains("n2-ss-full-page--constrain-ratio"),this.mainAnimation=this.slider.mainAnimation}return t.prototype=Object.create(r.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.init=function(){r.SmartSliderResponsive.prototype.init.call(this),this._cacheEl={slider:this.sliderElement.querySelector(".n2-ss-slider-wrapper-inside")||this.sliderElement,"n2-ss-slider-2":this.sliderElement.querySelector(".n2-ss-slider-2"),"n2-ss-slider-3":this.sliderElement.querySelector(".n2-ss-slider-3")},this._cacheEl["n2-ss-slider-3"].addEventListener("scroll",(function(e){e.currentTarget.scrollTop=0,e.currentTarget.scrollLeft=0}),{capture:!0})},t.prototype.calculateResponsiveValues=function(){var t=this.slider.visibleRealSlides[0].element,i=t.getBoundingClientRect();this.resizeContext.slideSelfWidth=i.width,this.resizeContext.slideSelfHeight=i.height;var s=t.querySelector(".n2-ss-layers-container").getBoundingClientRect();this.resizeContext.slideWidth=s.width,this.resizeContext.slideHeight=s.height;var h=this._cacheEl.slider.getBoundingClientRect();this.resizeContext.sliderWidth=h.width,this.resizeContext.sliderHeight=h.height;var n=this._cacheEl["n2-ss-slider-3"].getBoundingClientRect();if(this.resizeContext.slideOuterWidth=n.width,this.resizeContext.slideOuterHeight=n.height,r.SmartSliderResponsive.prototype.calculateResponsiveValues.call(this),this.Dt){var a=(this.resizeContext.sliderWidth-this.resizeContext.slideWidth)/-2+"px",o=(this.resizeContext.sliderHeight-this.resizeContext.slideHeight)/-2+"px";r.MW.k(this._cacheEl.slider)["--ss-clip-path"]="inset("+o+" "+a+" "+o+" "+a+")"}},t.prototype.onStarterSlide=function(t){this.slider.slides.forEach((function(t){t.SMWs=[r.MW.k(t.element,{x:"-10000px"})],t.background&&t.SMWs.push(r.MW.k(t.background.element,{x:"-10000px"}))})),r.SmartSliderResponsive.prototype.onStarterSlide.apply(this,arguments),this.mainAnimation.setActiveSlide(this.slider.currentSlide)},t})),r.d("SmartSliderSimple",["SmartSliderAbstract"],(function(){function t(t,i){this.type="simple",r.SmartSliderAbstract.prototype.constructor.call(this,t,o({bgAnimations:0,carousel:1},i))}return t.prototype=Object.create(r.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new r.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),r.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){!this.disabled.backgroundAnimations&&this.parameters.bgAnimations?this.mainAnimation=new r.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new r.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},t.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[t];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var i=0;i<this.slides.length;i++)this.slides[i].backgroundAnimation=this.parameters.bgAnimations.slides[i];delete this.parameters.bgAnimations.slides}},t.prototype.forceSetActiveSlide=function(t){t.setActive(),this.mainAnimation.showSlide(t)},t.prototype.forceUnsetActiveSlide=function(t){t.unsetActive(),this.mainAnimation.hideSlide(t)},t.prototype.getAnimationAxis=function(){switch(this.mainAnimation.parameters.type){case"vertical":case"vertical-reversed":return"vertical"}return"horizontal"},t})),r.d("ss-simple",["SmartSliderSimple","SmartSliderResponsiveSimple","SmartSliderMainAnimationSimple"])}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o=t.document,c=(o.documentElement,t.setTimeout),r=t.clearTimeout,u=i._N2;t.requestAnimationFrame,o.createElement.bind(o),Object.assign,navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",n):o.addEventListener("DOMContentLoaded",n),u.d("SmartSliderWidgetArrowImage","SmartSliderWidget",(function(){function t(t,i,n){this.Dt=n,u.SmartSliderWidget.prototype.constructor.call(this,i,t,"#"+i.elementID+"-arrow-"+t)}return t.prototype=Object.create(u.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){var t,i,n,o;t=this.widget,i="click",n=function(e){e.stopPropagation(),this.slider[this.Dt]()}.bind(this),o=o||{},t.addEventListener(i,n,o)},function(i){this.key="arrow",this.previous=new t("previous",i,"previousWithDirection"),this.next=new t("next",i,"nextWithDirection")}}))}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o=t.document,c=(o.documentElement,t.setTimeout),r=t.clearTimeout,u=i._N2;t.requestAnimationFrame,Object.assign,navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",n):o.addEventListener("DOMContentLoaded",n),u.d("SmartSliderWidgetArrowImage","SmartSliderWidget",(function(){function t(t,i,n){this.Ot=n,u.SmartSliderWidget.prototype.constructor.call(this,i,t,"#"+i.elementID+"-arrow-"+t)}return t.prototype=Object.create(u.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){var t,i,n,o;t=this.widget,i="click",n=function(e){e.stopPropagation(),this.slider[this.Ot]()}.bind(this),o=o||{},t.addEventListener(i,n,o)},function(i){this.key="arrow",this.previous=new t("previous",i,"previousWithDirection"),this.next=new t("next",i,"nextWithDirection")}}))}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o=t.document,a=(o.documentElement,t.setTimeout),s=t.clearTimeout,u=i._N2,h=(t.requestAnimationFrame,o.createElement.bind(o),Object.assign,function(t,i,n){t.setAttribute(i,n)}),c=function(t,i){return t.dataset[i]},r=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},l=function(t,i){t.classList.add(i)},d=function(t,i){t.classList.remove(i)},f=function(t,i,n,o){return o=o||{},t.addEventListener(i,n,o),t.removeEventListener.bind(t,i,n,o)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",n):o.addEventListener("DOMContentLoaded",n),u.d("SmartSliderWidgetAutoplayImage","SmartSliderWidget",(function(){"use strict";function t(t){u.SmartSliderWidget.prototype.constructor.call(this,t,"autoplay",".nextend-autoplay")}return t.prototype=Object.create(u.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){this.paused=!1,this._listeners=[f(this.slider.sliderElement,"autoplayStarted",this.setPlaying.bind(this)),f(this.slider.sliderElement,"autoplayPaused",this.setPaused.bind(this))];var t,i,n,o,a=NextendDeBounce(this.switchState.bind(this),300,!0);t=this.widget,i="n2Activate",n=a,o=o||{},t.addEventListener(i,n,o),new u.UniversalClick(this.widget,a),this.slider.stages.done("AutoplayDestroyed",this.destroy.bind(this))},t.prototype.switchState=function(e){this.slider.controls.autoplay.preventClickHandle(),this.paused?(this.setPlaying(),this.slider.K("autoplayResume",{progress:1})):(this.setPaused(),this.slider.K("autoplayPause"))},t.prototype.setPaused=function(){this.paused=!0,l(this.widget,"n2-autoplay-paused"),h(this.widget,"aria-label",c(this.widget,"playLabel"))},t.prototype.setPlaying=function(){this.paused=!1,d(this.widget,"n2-autoplay-paused"),h(this.widget,"aria-label",c(this.widget,"pauseLabel"))},t.prototype.destroy=function(){var t;r(this.widget),(t=this._listeners).forEach((function(t){t()})),t.splice(0,t.length)},t}))}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,o=t.document,a=(o.documentElement,t.setTimeout),s=t.clearTimeout,u=i._N2,h=(t.requestAnimationFrame,Object.assign,function(t,i,n){t.setAttribute(i,n)}),c=function(t,i){return t.dataset[i]},r=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},l=function(t,i){t.classList.add(i)},d=function(t,i){t.classList.remove(i)},f=function(t,i,n,o){return o=o||{},t.addEventListener(i,n,o),t.removeEventListener.bind(t,i,n,o)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",n):o.addEventListener("DOMContentLoaded",n),u.d("SmartSliderWidgetAutoplayImage","SmartSliderWidget",(function(){"use strict";function t(t){u.SmartSliderWidget.prototype.constructor.call(this,t,"autoplay",".nextend-autoplay")}return t.prototype=Object.create(u.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){this.paused=!1,this._listeners=[f(this.slider.sliderElement,"autoplayStarted",this.setPlaying.bind(this)),f(this.slider.sliderElement,"autoplayPaused",this.setPaused.bind(this))];var t,i,n,o,a=NextendDeBounce(this.switchState.bind(this),300,!0);t=this.widget,i="n2Activate",n=a,o=o||{},t.addEventListener(i,n,o),new u.UniversalClick(this.widget,a),this.slider.stages.done("AutoplayDestroyed",this.destroy.bind(this))},t.prototype.switchState=function(e){this.slider.controls.autoplay.preventClickHandle(),this.paused?(this.setPlaying(),this.slider.K("autoplayResume",{progress:1})):(this.setPaused(),this.slider.K("autoplayPause"))},t.prototype.setPaused=function(){this.paused=!0,l(this.widget,"n2-autoplay-paused"),h(this.widget,"aria-label",c(this.widget,"playLabel"))},t.prototype.setPlaying=function(){this.paused=!1,d(this.widget,"n2-autoplay-paused"),h(this.widget,"aria-label",c(this.widget,"pauseLabel"))},t.prototype.destroy=function(){var t;r(this.widget),(t=this._listeners).forEach((function(t){t()})),t.splice(0,t.length)},t}))}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,n,h=t.document,o=(h.documentElement,t.setTimeout),a=t.clearTimeout,c=i._N2,r=(t.requestAnimationFrame,h.createElement.bind(h),Object.assign),u=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},l=function(t,i){return t.dispatchEvent(i)},f=function(t,i,s,n){n=n||{},t.addEventListener(i,s,n)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){h.body},"complete"===h.readyState||"interactive"===h.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==h.addEventListener?Document.prototype.addEventListener.call(h,"DOMContentLoaded",n):h.addEventListener("DOMContentLoaded",n),c.d("SmartSliderWidgetBarHorizontal","SmartSliderWidget",(function(){"use strict";function t(t,i){this.parameters=i,c.SmartSliderWidget.prototype.constructor.call(this,t,"bar",".nextend-bar")}return t.prototype=Object.create(c.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(t){this.tween=null,this.innerBar=this.widget.querySelector("div"),this.Ct=c.MW.k(this.innerBar);var i="click";this.slider.hasTouch()&&(i="n2click"),f(this.widget,"click",function(){var t,s,n,h=this.slider.sliderElement.querySelector(".n2-ss-slide-active .n2-ss-layers-container");h&&(t=h,s=i,n=r({bubbles:!0,cancelable:!0},n),l(t,new Event(s,n)))}.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.hasContent=function(t){return!(!this.parameters.showTitle||""===t.getTitle()&&!this.parameters.slideCount)||!(!this.parameters.showDescription||""===t.getDescription()&&!this.parameters.slideCount)},t.prototype.onBeforeShow=function(){this.onSliderSwitchTo({detail:{targetSlide:this.slider.currentSlide}}),this.parameters.animate?f(this.slider.sliderElement,"mainAnimationStart",this.onSliderSwitchToAnimateStart.bind(this)):f(this.slider.sliderElement,"SlideWillChange",this.onSliderSwitchTo.bind(this))},t.prototype.renderBarContent=function(t){var i,s,n="";this.parameters.showTitle&&(""!==t.getTitle()||this.parameters.slideCount)&&(i=this.parameters.slideCount?t.index+1:t.getTitle(),n+='<span class="'+this.parameters.fontTitle+'">'+i+"</span>");this.parameters.showDescription&&(""!==t.getDescription()||this.parameters.slideCount)&&(s=this.parameters.slideCount?t.slider.slides.length:t.getDescription(),n+='<span class="'+this.parameters.fontDescription+'">'+(""===n?"":this.parameters.separator)+s+"</span>");return""===n?'<span class="'+this.parameters.fontDescription+'">&nbsp;</span>':n},t.prototype.onSliderSwitchTo=function(e){var t=e.detail.targetSlide.slides[0],i=this.hasContent(t);i&&(this.innerBar.innerHTML=this.renderBarContent(t),this.setCursor(t.hasLink())),this.slider.widgets.setState("hide.bar",!i)},t.prototype.onSliderSwitchToAnimateStart=function(){var t,n;this.Ot===s&&(this.Ot=(t=this.innerBar,n="opacity",i.getComputedStyle(t).getPropertyValue(n)),this.Ct.opacity=this.Ot);var h,o,a,r=new Promise(function(t){this.tween&&this.tween.pause(),c.W.to(this.Ct,.3,{opacity:0,onComplete:function(){t()}})}.bind(this));h=this.slider.sliderElement,o="mainAnimationComplete",a=this.onSliderSwitchToAnimateEnd.bind(this,r),h.addEventListener(o,a,{once:!0})},t.prototype.onSliderSwitchToAnimateEnd=function(t,e){var i=this.slider.slides[e.detail.currentSlideIndex];t.then(function(){var t=this.hasContent(i);if(t){var s=this.innerBar.cloneNode(!0);u(this.innerBar),this.setCursor(i.hasLink()),s.innerHTML=this.renderBarContent(i),this.widget.appendChild(s),this.innerBar=s,this.Ct=c.MW.k(this.innerBar),this.Ct.opacity=0,this.tween=c.W.to(this.Ct,.3,{opacity:this.Ot})}this.slider.widgets.setState("hide.bar",!t)}.bind(this))},t.prototype.setCursor=function(t){this.Ct.cursor=t?"pointer":"inherit"},t}))}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,n,h=t.document,o=(h.documentElement,t.setTimeout),a=t.clearTimeout,c=i._N2,r=(t.requestAnimationFrame,Object.assign),u=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},l=function(t,i){return t.dispatchEvent(i)},f=function(t,i,s,n){n=n||{},t.addEventListener(i,s,n)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){h.body},"complete"===h.readyState||"interactive"===h.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==h.addEventListener?Document.prototype.addEventListener.call(h,"DOMContentLoaded",n):h.addEventListener("DOMContentLoaded",n),c.d("SmartSliderWidgetBarHorizontal","SmartSliderWidget",(function(){"use strict";function t(t,i){this.parameters=i,c.SmartSliderWidget.prototype.constructor.call(this,t,"bar",".nextend-bar")}return t.prototype=Object.create(c.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(t){this.tween=null,this.innerBar=this.widget.querySelector("div"),this.Ct=c.MW.k(this.innerBar);var i="click";this.slider.hasTouch()&&(i="n2click"),f(this.widget,"click",function(){var t,s,n,h=this.slider.sliderElement.querySelector(".n2-ss-slide-active .n2-ss-layers-container");h&&(t=h,s=i,n=r({bubbles:!0,cancelable:!0},n),l(t,new Event(s,n)))}.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.hasContent=function(t){return!(!this.parameters.showTitle||""===t.getTitle()&&!this.parameters.slideCount)||!(!this.parameters.showDescription||""===t.getDescription()&&!this.parameters.slideCount)},t.prototype.onBeforeShow=function(){this.onSliderSwitchTo({detail:{targetSlide:this.slider.currentSlide}}),this.parameters.animate?f(this.slider.sliderElement,"mainAnimationStart",this.onSliderSwitchToAnimateStart.bind(this)):f(this.slider.sliderElement,"SlideWillChange",this.onSliderSwitchTo.bind(this))},t.prototype.renderBarContent=function(t){var i,s,n="";this.parameters.showTitle&&(""!==t.getTitle()||this.parameters.slideCount)&&(i=this.parameters.slideCount?t.index+1:t.getTitle(),n+='<span class="'+this.parameters.fontTitle+'">'+i+"</span>");this.parameters.showDescription&&(""!==t.getDescription()||this.parameters.slideCount)&&(s=this.parameters.slideCount?t.slider.slides.length:t.getDescription(),n+='<span class="'+this.parameters.fontDescription+'">'+(""===n?"":this.parameters.separator)+s+"</span>");return""===n?'<span class="'+this.parameters.fontDescription+'">&nbsp;</span>':n},t.prototype.onSliderSwitchTo=function(e){var t=e.detail.targetSlide.slides[0],i=this.hasContent(t);i&&(this.innerBar.innerHTML=this.renderBarContent(t),this.setCursor(t.hasLink())),this.slider.widgets.setState("hide.bar",!i)},t.prototype.onSliderSwitchToAnimateStart=function(){var t,n;this.Wt===s&&(this.Wt=(t=this.innerBar,n="opacity",i.getComputedStyle(t).getPropertyValue(n)),this.Ct.opacity=this.Wt);var h,o,a,r=new Promise(function(t){this.tween&&this.tween.pause(),c.W.to(this.Ct,.3,{opacity:0,onComplete:function(){t()}})}.bind(this));h=this.slider.sliderElement,o="mainAnimationComplete",a=this.onSliderSwitchToAnimateEnd.bind(this,r),h.addEventListener(o,a,{once:!0})},t.prototype.onSliderSwitchToAnimateEnd=function(t,e){var i=this.slider.slides[e.detail.currentSlideIndex];t.then(function(){var t=this.hasContent(i);if(t){var s=this.innerBar.cloneNode(!0);u(this.innerBar),this.setCursor(i.hasLink()),s.innerHTML=this.renderBarContent(i),this.widget.appendChild(s),this.innerBar=s,this.Ct=c.MW.k(this.innerBar),this.Ct.opacity=0,this.tween=c.W.to(this.Ct,.3,{opacity:this.Wt})}this.slider.widgets.setState("hide.bar",!t)}.bind(this))},t.prototype.setCursor=function(t){this.Ct.cursor=t?"pointer":"inherit"},t}))}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s,a=t.document,h=(a.documentElement,t.setTimeout),r=t.clearTimeout,o=i._N2,c=(t.requestAnimationFrame,a.createElement.bind(a)),u=function(){return c("div")},l=(Object.assign,function(t,i,n){t.setAttribute(i,n)}),f=function(t,i){for(var n in i)l(t,n,i[n])},p=function(t,i){t.removeAttribute(i)},b=function(t,i,n){t.style.setProperty(i,n)},m=function(t,i){for(var n in i)b(t,n,i[n])},d=function(t,i){t.classList.add(i)},v=function(t,i){t.classList.remove(i)},g=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){a.body},"complete"===a.readyState||"interactive"===a.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==a.addEventListener?Document.prototype.addEventListener.call(a,"DOMContentLoaded",s):a.addEventListener("DOMContentLoaded",s),o.d("SmartSliderWidgetBulletTransition","SmartSliderWidget",(function(){function t(t,i){this.parameters=i,o.SmartSliderWidget.prototype.constructor.call(this,t,"bullet",".n2-ss-control-bullet")}return t.prototype=Object.create(o.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){switch(this.hasDots=!0,this.axis="horizontal",this.bar=this.widget.querySelector(".nextend-bullet-bar"),this.parameters.area){case 5:case 8:this.axis="vertical"}this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){if(this.onVisibleSlidesChanged(),this.hasDots){var t=this.slider.currentSlide.ssdot;d(t,"n2-active"),p(t,"tabindex"),l(t,"aria-current","true")}g(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this)),g(this.slider.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},t.prototype.onSlideSwitch=function(e){if(this.hasDots){for(var t,i=0;i<this._dots.length;i++)t=this._dots[i],v(t,"n2-active"),l(t,"tabindex",0),p(t,"aria-current");t=e.detail.targetSlide.ssdot||e.detail.targetSlide.group.ssdot,d(t,"n2-active"),p(t,"tabindex"),l(t,"aria-current","true")}},t.prototype.showThumbnail=function(t,e){var i,n,s,a=this.getThumbnail(t);o.W.to(o.MW.k(a),.3,{opacity:1}),i=t.ssdot,n="universalleave",s=this.hideThumbnail.bind(this,a),i.addEventListener(n,s,{once:!0})},t.prototype.hideThumbnail=function(t,e){e.stopPropagation(),o.W.to(o.MW.k(t),.3,{opacity:0,onComplete:function(){t.remove()}})},t.prototype.getThumbnail=function(t){var n=t.ssdot,s=this.slider.sliderElement.getBoundingClientRect(),a=n.getBoundingClientRect(),h=u(),r=u();r.className="n2-ss-bullet-thumbnail",m(r,{width:this.parameters.thumbnailWidth+"px",height:this.parameters.thumbnailHeight+"px","background-image":'url("'+t.getThumbnail()+'")'}),h.appendChild(r),o.MW.k(h).opacity=0,h.className=this.parameters.thumbnailStyle+" n2-ss-bullet-thumbnail-container",this.slider.sliderElement.appendChild(h);var c=i.getComputedStyle(h),l=h.getBoundingClientRect();switch(this.parameters.thumbnailPosition){case"right":m(h,{left:a.left-s.left+a.width-parseInt(c.getPropertyValue("margin-left"))-parseInt(c.getPropertyValue("margin-right"))+"px",top:a.top-s.top+a.height/2-l.height/2+"px"});break;case"left":m(h,{left:a.left-s.left-l.width-parseInt(c.getPropertyValue("margin-left"))-parseInt(c.getPropertyValue("margin-right"))+"px",top:a.top-s.top+a.height/2-l.height/2+"px"});break;case"top":m(h,{left:a.left-s.left+a.width/2-l.width/2+"px",top:a.top-s.top-l.height-parseInt(c.getPropertyValue("margin-top"))-parseInt(c.getPropertyValue("margin-bottom"))+"px"});break;case"bottom":m(h,{left:a.left-s.left+a.width/2-l.width/2+"px",top:a.top-s.top+a.height-parseInt(c.getPropertyValue("margin-top"))-parseInt(c.getPropertyValue("margin-bottom"))+"px"})}return h},t.prototype.onVisibleSlidesChanged=function(){if(this._dotsOuter!==n&&this._dotsOuter.forEach((function(t){!function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}(t)})),this.bar.innerText="",this.slider.visibleSlides.length<=1)this.hasDots=!1;else{this.hasDots=!0,this._dots=[],this._dotsOuter=[];for(var t=0;t<this.slider.visibleSlides.length;t++){var i=this.slider.visibleSlides[t],s=u(),a=u();switch(a.className="n2-bullet "+this.parameters.dotClasses,f(a,{tabindex:0,role:"button","aria-label":i.getTitle()}),s.appendChild(a),this.bar.appendChild(s),"mouseenter"===this.parameters.action?new o.UniversalEnter(a,this.onDotClick.bind(this,i)):new o.UniversalClick(a,this.onDotClick.bind(this,i)),g(s,"n2Activate",this.onDotClick.bind(this,i)),this._dotsOuter.push(s),i.ssdot=a,this._dots.push(a),this.parameters.mode){case"numeric":a.innerText=t+1;break;case"title":a.innerText=i.getTitle()}if(1===this.parameters.thumbnail)i.getThumbnail()&&new o.UniversalEnter(a,this.showThumbnail.bind(this,i),{leaveOnSecond:!0})}this.onSlideSwitch({detail:{targetSlide:this.slider.currentRealSlide}})}this.slider.widgets.onAdvancedVariableWidgetChanged(this.key)},t.prototype.onDotClick=function(t,e){this.slider.directionalChangeTo(t.index)},t}))}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s,o=t.document,r=(o.documentElement,t.setTimeout),a=t.clearTimeout,h=i._N2,c=(t.requestAnimationFrame,function(t,i=null,n=null,s=null){const r=o.createElement(t);return i&&("string"==typeof i?v(r,i):x(r,i)),n&&f(r,n),s&&m(r,s),r}),u=function(t,i,n){return c("div",t,i,n)},l=(Object.assign,function(t,i,n){t.setAttribute(i,n)}),f=function(t,i){for(var n in i)l(t,n,i[n])},p=function(t,i){t.removeAttribute(i)},b=function(t,i,n){t.dataset[i]=n},m=function(t,i){for(let n in i)b(t,n,i[n])},d=function(t,i,n){t.style.setProperty(i,n)},g=function(t,i){for(var n in i)d(t,n,i[n])},v=function(t,i){t.classList.add(i)},x=function(t,i){i.forEach((function(i){t.classList.add(i)}))},w=function(t,i){t.classList.remove(i)},S=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){o.body},"complete"===o.readyState||"interactive"===o.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==o.addEventListener?Document.prototype.addEventListener.call(o,"DOMContentLoaded",s):o.addEventListener("DOMContentLoaded",s),h.d("SmartSliderWidgetBulletTransition","SmartSliderWidget",(function(){function t(t,i){this.parameters=i,h.SmartSliderWidget.prototype.constructor.call(this,t,"bullet",".n2-ss-control-bullet")}return t.prototype=Object.create(h.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){switch(this.hasDots=!0,this.axis="horizontal",this.bar=this.widget.querySelector(".nextend-bullet-bar"),this.parameters.area){case 5:case 8:this.axis="vertical"}this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){if(this.onVisibleSlidesChanged(),this.hasDots){var t=this.slider.currentSlide.ssdot;v(t,"n2-active"),p(t,"tabindex"),l(t,"aria-current","true")}S(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this)),S(this.slider.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},t.prototype.onSlideSwitch=function(e){if(this.hasDots){for(var t,i=0;i<this._dots.length;i++)t=this._dots[i],w(t,"n2-active"),l(t,"tabindex",0),p(t,"aria-current");t=e.detail.targetSlide.ssdot||e.detail.targetSlide.group.ssdot,v(t,"n2-active"),p(t,"tabindex"),l(t,"aria-current","true")}},t.prototype.showThumbnail=function(t,e){var i,n,s,o=this.getThumbnail(t);h.W.to(h.MW.k(o),.3,{opacity:1}),i=t.ssdot,n="universalleave",s=this.hideThumbnail.bind(this,o),i.addEventListener(n,s,{once:!0})},t.prototype.hideThumbnail=function(t,e){e.stopPropagation(),h.W.to(h.MW.k(t),.3,{opacity:0,onComplete:function(){t.remove()}})},t.prototype.getThumbnail=function(t){var n=t.ssdot,s=this.slider.sliderElement.getBoundingClientRect(),o=n.getBoundingClientRect(),r=u(),a=u();a.className="n2-ss-bullet-thumbnail",g(a,{width:this.parameters.thumbnailWidth+"px",height:this.parameters.thumbnailHeight+"px","background-image":'url("'+t.getThumbnail()+'")'}),r.appendChild(a),h.MW.k(r).opacity=0,r.className=this.parameters.thumbnailStyle+" n2-ss-bullet-thumbnail-container",this.slider.sliderElement.appendChild(r);var c=i.getComputedStyle(r),l=r.getBoundingClientRect();switch(this.parameters.thumbnailPosition){case"right":g(r,{left:o.left-s.left+o.width-parseInt(c.getPropertyValue("margin-left"))-parseInt(c.getPropertyValue("margin-right"))+"px",top:o.top-s.top+o.height/2-l.height/2+"px"});break;case"left":g(r,{left:o.left-s.left-l.width-parseInt(c.getPropertyValue("margin-left"))-parseInt(c.getPropertyValue("margin-right"))+"px",top:o.top-s.top+o.height/2-l.height/2+"px"});break;case"top":g(r,{left:o.left-s.left+o.width/2-l.width/2+"px",top:o.top-s.top-l.height-parseInt(c.getPropertyValue("margin-top"))-parseInt(c.getPropertyValue("margin-bottom"))+"px"});break;case"bottom":g(r,{left:o.left-s.left+o.width/2-l.width/2+"px",top:o.top-s.top+o.height-parseInt(c.getPropertyValue("margin-top"))-parseInt(c.getPropertyValue("margin-bottom"))+"px"})}return r},t.prototype.onVisibleSlidesChanged=function(){if(this._dotsOuter!==n&&this._dotsOuter.forEach((function(t){!function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}(t)})),this.bar.innerText="",this.slider.visibleSlides.length<=1)this.hasDots=!1;else{this.hasDots=!0,this._dots=[],this._dotsOuter=[];for(var t=0;t<this.slider.visibleSlides.length;t++){var i=this.slider.visibleSlides[t],s=u(),o=u();switch(o.className="n2-bullet "+this.parameters.dotClasses,f(o,{tabindex:0,role:"button","aria-label":i.getTitle()}),s.appendChild(o),this.bar.appendChild(s),"mouseenter"===this.parameters.action?new h.UniversalEnter(o,this.onDotClick.bind(this,i)):new h.UniversalClick(o,this.onDotClick.bind(this,i)),S(s,"n2Activate",this.onDotClick.bind(this,i)),this._dotsOuter.push(s),i.ssdot=o,this._dots.push(o),this.parameters.mode){case"numeric":o.innerText=t+1;break;case"title":o.innerText=i.getTitle()}if(1===this.parameters.thumbnail)i.getThumbnail()&&new h.UniversalEnter(o,this.showThumbnail.bind(this,i),{leaveOnSecond:!0})}this.onSlideSwitch({detail:{targetSlide:this.slider.currentRealSlide}})}this.slider.widgets.onAdvancedVariableWidgetChanged(this.key)},t.prototype.onDotClick=function(t,e){this.slider.directionalChangeTo(t.index)},t}))}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s=t.document,h=(s.documentElement,t.setTimeout),o=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,s.createElement.bind(s),Object.assign),r=function(t,i,n){t.dataset[i]=n},c=function(t,i){t.classList.add(i)},l=function(t,i){t.classList.remove(i)},d=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){s.body},"complete"===s.readyState||"interactive"===s.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",n):s.addEventListener("DOMContentLoaded",n),a.d("SmartSliderWidgetThumbnailDefaultHorizontal","SmartSliderWidget",(function(){"use strict";function t(t,i){this.parameters=u({minimumThumbnailCount:1.5},i),a.SmartSliderWidget.prototype.constructor.call(this,t,"thumbnail",".nextend-thumbnail-default")}t.prototype=Object.create(a.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){this.bar=this.widget.querySelector(".nextend-thumbnail-inner"),d(this.bar,"scroll",this.onScroll.bind(this));var t=this.widget.querySelector(".nextend-thumbnail-previous"),i=this.widget.querySelector(".nextend-thumbnail-next");t&&d(t,"click",this.previousPane.bind(this)),i&&d(i,"click",this.nextPane.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.onBeforeShow=function(){var t=this.bar.querySelector(".nextend-thumbnail-scroller");this.dots=t.querySelectorAll(".n2-thumbnail-dot");for(var i,n,s=this.slider.realSlides,h=0;h<s.length;h++){var o=t.querySelector('.n2-thumbnail-dot[data-slide-public-id="'+(i=s[h].element,n="slidePublicId",i.dataset[n]+'"]'));"mouseenter"===this.parameters.action?new a.UniversalEnter(o,this.onDotHover.bind(this,s[h])):new a.UniversalClick(o,this.onDotClick.bind(this,s[h])),s[h].thumbnailDot=o}requestAnimationFrame(this.onScroll.bind(this)),d(this.slider.sliderElement,"SliderResize",this.onScroll.bind(this)),d(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this))},t.prototype.onWidgetsReady=function(){this.onSlideSwitch({detail:{targetSlide:this.slider.currentRealSlide}})},t.prototype.onScroll=function(){var t=this.bar.scrollLeft,i=this.bar.clientWidth,n=this.bar.scrollWidth;n2const.isRTL()?(r(this.widget,"hasNext",0===t?0:1),r(this.widget,"hasPrevious",-1*t+i<n?1:0)):(r(this.widget,"hasPrevious",0===t?0:1),r(this.widget,"hasNext",t+i<n?1:0))};var n=!1;return t.prototype.onDotClick=function(t){a._shouldPreventClick||(n||(this.slider.directionalChangeToReal(t.index),n=!0),h(function(){n=!1}.bind(this),400))},t.prototype.onDotHover=function(t){this.slider.directionalChangeToReal(t.index)},t.prototype.onSlideSwitch=function(e){var t=e.detail.targetSlide.slides[0];this.activateDots(t);var n=i.getComputedStyle(t.thumbnailDot),s=t.thumbnailDot.offsetLeft-parseInt(n.getPropertyValue("margin-left")),h=t.thumbnailDot.getBoundingClientRect().width+parseInt(n.getPropertyValue("margin-left"))+parseInt(n.getPropertyValue("margin-right")),o=this.bar.scrollLeft,a=i.getComputedStyle(this.bar),u=parseInt(a.paddingLeft),r=this.bar.clientWidth,c=this.bar.scrollWidth;(s<o||s+h>o+r)&&(this.bar.scrollLeft=Math.min(c-r,-u+s))},t.prototype.activateDots=function(t){var i,n;i=this.dots,n="n2-active",i.forEach((function(t){l(t,n)}));for(var s=t.slides,h=0;s.length>h;h++)c(s[h].thumbnailDot,"n2-active")},t.prototype.previousPane=function(){this.bar.scrollLeft-=.75*this.bar.clientWidth},t.prototype.nextPane=function(){this.bar.scrollLeft+=.75*this.bar.clientWidth},t}))}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s=t.document,h=(s.documentElement,t.setTimeout),o=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,Object.assign),r=function(t,i,n){t.dataset[i]=n},c=function(t,i){t.classList.add(i)},l=function(t,i){t.classList.remove(i)},d=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){s.body},"complete"===s.readyState||"interactive"===s.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",n):s.addEventListener("DOMContentLoaded",n),a.d("SmartSliderWidgetThumbnailDefaultHorizontal","SmartSliderWidget",(function(){"use strict";function t(t,i){this.parameters=u({minimumThumbnailCount:1.5},i),a.SmartSliderWidget.prototype.constructor.call(this,t,"thumbnail",".nextend-thumbnail-default")}t.prototype=Object.create(a.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){this.bar=this.widget.querySelector(".nextend-thumbnail-inner"),d(this.bar,"scroll",this.onScroll.bind(this));var t=this.widget.querySelector(".nextend-thumbnail-previous"),i=this.widget.querySelector(".nextend-thumbnail-next");t&&d(t,"click",this.previousPane.bind(this)),i&&d(i,"click",this.nextPane.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.onBeforeShow=function(){var t=this.bar.querySelector(".nextend-thumbnail-scroller");this.dots=t.querySelectorAll(".n2-thumbnail-dot");for(var i,n,s=this.slider.realSlides,h=0;h<s.length;h++){var o=t.querySelector('.n2-thumbnail-dot[data-slide-public-id="'+(i=s[h].element,n="slidePublicId",i.dataset[n]+'"]'));"mouseenter"===this.parameters.action?new a.UniversalEnter(o,this.onDotHover.bind(this,s[h])):new a.UniversalClick(o,this.onDotClick.bind(this,s[h])),s[h].thumbnailDot=o}requestAnimationFrame(this.onScroll.bind(this)),d(this.slider.sliderElement,"SliderResize",this.onScroll.bind(this)),d(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this))},t.prototype.onWidgetsReady=function(){this.onSlideSwitch({detail:{targetSlide:this.slider.currentRealSlide}})},t.prototype.onScroll=function(){var t=this.bar.scrollLeft,i=this.bar.clientWidth,n=this.bar.scrollWidth;n2const.isRTL()?(r(this.widget,"hasNext",0===t?0:1),r(this.widget,"hasPrevious",-1*t+i<n?1:0)):(r(this.widget,"hasPrevious",0===t?0:1),r(this.widget,"hasNext",t+i<n?1:0))};var n=!1;return t.prototype.onDotClick=function(t){a._shouldPreventClick||(n||(this.slider.directionalChangeToReal(t.index),n=!0),h(function(){n=!1}.bind(this),400))},t.prototype.onDotHover=function(t){this.slider.directionalChangeToReal(t.index)},t.prototype.onSlideSwitch=function(e){var t=e.detail.targetSlide.slides[0];this.activateDots(t);var n=i.getComputedStyle(t.thumbnailDot),s=t.thumbnailDot.offsetLeft-parseInt(n.getPropertyValue("margin-left")),h=t.thumbnailDot.getBoundingClientRect().width+parseInt(n.getPropertyValue("margin-left"))+parseInt(n.getPropertyValue("margin-right")),o=this.bar.scrollLeft,a=i.getComputedStyle(this.bar),u=parseInt(a.paddingLeft),r=this.bar.clientWidth,c=this.bar.scrollWidth;(s<o||s+h>o+r)&&(this.bar.scrollLeft=Math.min(c-r,-u+s))},t.prototype.activateDots=function(t){var i,n;i=this.dots,n="n2-active",i.forEach((function(t){l(t,n)}));for(var s=t.slides,h=0;s.length>h;h++)c(s[h].thumbnailDot,"n2-active")},t.prototype.previousPane=function(){this.bar.scrollLeft-=.75*this.bar.clientWidth},t.prototype.nextPane=function(){this.bar.scrollLeft+=.75*this.bar.clientWidth},t}))}(window);
\ No newline at end of file
......
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s=t.document,h=(s.documentElement,t.setTimeout),o=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,s.createElement.bind(s),Object.assign),r=function(t,i,n){t.dataset[i]=n},c=function(t,i){t.classList.add(i)},l=function(t,i){t.classList.remove(i)},d=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){s.body},"complete"===s.readyState||"interactive"===s.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",n):s.addEventListener("DOMContentLoaded",n),a.d("SmartSliderWidgetThumbnailDefaultVertical","SmartSliderWidget",(function(){"use strict";function t(t,i){this.parameters=u({minimumThumbnailCount:1.5},i),a.SmartSliderWidget.prototype.constructor.call(this,t,"thumbnail",".nextend-thumbnail-default")}t.prototype=Object.create(a.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){this.bar=this.widget.querySelector(".nextend-thumbnail-inner"),d(this.bar,"scroll",this.onScroll.bind(this));var t=this.widget.querySelector(".nextend-thumbnail-previous"),i=this.widget.querySelector(".nextend-thumbnail-next");t&&d(t,"click",this.previousPane.bind(this)),i&&d(i,"click",this.nextPane.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.onBeforeShow=function(){var t=this.bar.querySelector(".nextend-thumbnail-scroller");this.dots=t.querySelectorAll(".n2-thumbnail-dot");for(var i,n,s=this.slider.realSlides,h=0;h<s.length;h++){var o=t.querySelector('[data-slide-public-id="'+(i=s[h].element,n="slidePublicId",i.dataset[n]+'"]'));"mouseenter"===this.parameters.action?new a.UniversalEnter(o,this.onDotHover.bind(this,s[h])):new a.UniversalClick(o,this.onDotClick.bind(this,s[h])),s[h].thumbnailDot=o}requestAnimationFrame(this.onScroll.bind(this)),d(this.slider.sliderElement,"SliderResize",this.onScroll.bind(this)),d(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this))},t.prototype.onWidgetsReady=function(){this.onSlideSwitch({detail:{targetSlide:this.slider.currentRealSlide}})},t.prototype.onScroll=function(){var t=this.bar.scrollTop,i=this.bar.clientHeight,n=this.bar.scrollHeight;r(this.widget,"hasPrevious",0===t?0:1),r(this.widget,"hasNext",t+i<n?1:0)};var n=!1;return t.prototype.onDotClick=function(t){a._shouldPreventClick||(n||(this.slider.directionalChangeToReal(t.index),n=!0),h(function(){n=!1}.bind(this),400))},t.prototype.onDotHover=function(t){this.slider.directionalChangeToReal(t.index)},t.prototype.onSlideSwitch=function(e){var t=e.detail.targetSlide.slides[0];this.activateDots(t);var n=i.getComputedStyle(t.thumbnailDot),s=t.thumbnailDot.offsetTop-parseInt(n.getPropertyValue("margin-top")),h=t.thumbnailDot.getBoundingClientRect().height+parseInt(n.getPropertyValue("margin-top"))+parseInt(n.getPropertyValue("margin-bottom")),o=this.bar.scrollTop,a=i.getComputedStyle(this.bar),u=parseInt(a.paddingTop),r=this.bar.clientHeight,c=this.bar.scrollHeight;(s<o||s+h>o+r)&&(this.bar.scrollTop=Math.min(c-r,-u+s))},t.prototype.activateDots=function(t){var i,n;i=this.dots,n="n2-active",i.forEach((function(t){l(t,n)}));for(var s=t.slides,h=0;s.length>h;h++)c(s[h].thumbnailDot,"n2-active")},t.prototype.previousPane=function(){this.bar.scrollTop-=.75*this.bar.clientHeight},t.prototype.nextPane=function(){this.bar.scrollTop+=.75*this.bar.clientHeight},t.prototype.getSize=function(){return this.getWidth()},t}))}(window);
\ No newline at end of file
!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var n,s=t.document,h=(s.documentElement,t.setTimeout),o=t.clearTimeout,a=i._N2,u=(t.requestAnimationFrame,Object.assign),r=function(t,i,n){t.dataset[i]=n},c=function(t,i){t.classList.add(i)},l=function(t,i){t.classList.remove(i)},d=function(t,i,n,s){s=s||{},t.addEventListener(i,n,s)};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;n=function(){s.body},"complete"===s.readyState||"interactive"===s.readyState?n():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",n):s.addEventListener("DOMContentLoaded",n),a.d("SmartSliderWidgetThumbnailDefaultVertical","SmartSliderWidget",(function(){"use strict";function t(t,i){this.parameters=u({minimumThumbnailCount:1.5},i),a.SmartSliderWidget.prototype.constructor.call(this,t,"thumbnail",".nextend-thumbnail-default")}t.prototype=Object.create(a.SmartSliderWidget.prototype),t.prototype.constructor=t,t.prototype.onStart=function(){this.bar=this.widget.querySelector(".nextend-thumbnail-inner"),d(this.bar,"scroll",this.onScroll.bind(this));var t=this.widget.querySelector(".nextend-thumbnail-previous"),i=this.widget.querySelector(".nextend-thumbnail-next");t&&d(t,"click",this.previousPane.bind(this)),i&&d(i,"click",this.nextPane.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.onBeforeShow=function(){var t=this.bar.querySelector(".nextend-thumbnail-scroller");this.dots=t.querySelectorAll(".n2-thumbnail-dot");for(var i,n,s=this.slider.realSlides,h=0;h<s.length;h++){var o=t.querySelector('[data-slide-public-id="'+(i=s[h].element,n="slidePublicId",i.dataset[n]+'"]'));"mouseenter"===this.parameters.action?new a.UniversalEnter(o,this.onDotHover.bind(this,s[h])):new a.UniversalClick(o,this.onDotClick.bind(this,s[h])),s[h].thumbnailDot=o}requestAnimationFrame(this.onScroll.bind(this)),d(this.slider.sliderElement,"SliderResize",this.onScroll.bind(this)),d(this.slider.sliderElement,"SlideWillChange",this.onSlideSwitch.bind(this))},t.prototype.onWidgetsReady=function(){this.onSlideSwitch({detail:{targetSlide:this.slider.currentRealSlide}})},t.prototype.onScroll=function(){var t=this.bar.scrollTop,i=this.bar.clientHeight,n=this.bar.scrollHeight;r(this.widget,"hasPrevious",0===t?0:1),r(this.widget,"hasNext",t+i<n?1:0)};var n=!1;return t.prototype.onDotClick=function(t){a._shouldPreventClick||(n||(this.slider.directionalChangeToReal(t.index),n=!0),h(function(){n=!1}.bind(this),400))},t.prototype.onDotHover=function(t){this.slider.directionalChangeToReal(t.index)},t.prototype.onSlideSwitch=function(e){var t=e.detail.targetSlide.slides[0];this.activateDots(t);var n=i.getComputedStyle(t.thumbnailDot),s=t.thumbnailDot.offsetTop-parseInt(n.getPropertyValue("margin-top")),h=t.thumbnailDot.getBoundingClientRect().height+parseInt(n.getPropertyValue("margin-top"))+parseInt(n.getPropertyValue("margin-bottom")),o=this.bar.scrollTop,a=i.getComputedStyle(this.bar),u=parseInt(a.paddingTop),r=this.bar.clientHeight,c=this.bar.scrollHeight;(s<o||s+h>o+r)&&(this.bar.scrollTop=Math.min(c-r,-u+s))},t.prototype.activateDots=function(t){var i,n;i=this.dots,n="n2-active",i.forEach((function(t){l(t,n)}));for(var s=t.slides,h=0;s.length>h;h++)c(s[h].thumbnailDot,"n2-active")},t.prototype.previousPane=function(){this.bar.scrollTop-=.75*this.bar.clientHeight},t.prototype.nextPane=function(){this.bar.scrollTop+=.75*this.bar.clientHeight},t.prototype.getSize=function(){return this.getWidth()},t}))}(window);
\ No newline at end of file
......
......@@ -49,6 +49,7 @@
.n2-thumbnail-dot {
position: relative;
cursor: pointer;
img {
object-fit: cover;
......@@ -111,6 +112,7 @@
.n2-thumbnail-dot {
display: grid;
grid-template-columns: auto 1fr;
overflow:hidden;
}
.nextend-thumbnail-button {
......
......@@ -4,7 +4,7 @@ Tags: slider, wordpress slider, image slider, layer slider, responsive slider, s
Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
Requires at least: 4.9
Tested up to: 5.8.1
Stable tag: 3.5.1.2
Stable tag: 3.5.1.3
Requires PHP: 7.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
......@@ -209,6 +209,24 @@ Of course! Smart Slider use protocol relative urls which works fine on http:// a
== Changelog ==
= 3.5.1.3 - 18. January 2022 =
* Feature: Pagination and Search options in the Dashboard.
* Feature: The variable selector is now available at the column and row background colors.
* Feature: We'll use pointer cursor at the thumbnails to indicate that they're clickable.
* Feature: Perfmatter compatibility improvements.
* Fix: Overflow hidden is added to vertical thumbnails to allow rounded borders.
* Fix: Firefox changed the default background color of the select tag, which creates less contrast between the text and background. We changed it back to white.
* Fix: The color picker allowed saving a 7 digit color code, which resulted a bad color.
* Fix: Margin and padding values are now translatable in the Slide editor UI.
* Fix: Optimize images option now works on full URLs.
* Fix: The YouTube layer didn't always recognize the youtu.be URLs properly.
* Fix: Static Overlay background options caused error when the only slide in the slider is a Static Overlay.
* Fix: Smart Slider's custom widget area will now properly display the publishing instructions.
* Fix: Background Blur could show up even if the fill mode was not set to Blur fit.
* Other: Spanish translation updated. Thanks, Rodrigo!
* Other: The es_ES.po and es_ES.mo renamed to es.po and es.mo respectively to support all Spanish languages.
= 3.5.1.2 - 18. November 2021 =
* Feature: The old background animations are allowed again when the fill mode is not fill, but anything else.
* Feature: You can now customize the Loading animation delay time.
......
......@@ -3,7 +3,7 @@
Plugin Name: Smart Slider 3
Plugin URI: https://smartslider3.com/
Description: The perfect all-in-one responsive slider solution for WordPress.
Version: 3.5.1.2
Version: 3.5.1.3
Requires PHP: 7.0
Requires at least: 4.9
Author: Nextend
......
......@@ -55,12 +55,12 @@ if ( !class_exists( 'WPSL_Frontend' ) ) {
add_action( 'init', array( $this, 'borlabs_cookie' ) );
}
add_action( 'wp_ajax_store_search', array( $this, 'store_search' ) );
add_action( 'wp_ajax_nopriv_store_search', array( $this, 'store_search' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'add_frontend_styles' ) );
add_action( 'wp_footer', array( $this, 'add_frontend_scripts' ) );
add_action( 'wp_ajax_store_search', array( $this, 'store_search' ) );
add_action( 'wp_ajax_nopriv_store_search', array( $this, 'store_search' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'add_frontend_styles' ) );
add_action( 'wp_footer', array( $this, 'add_frontend_scripts' ) );
add_filter( 'the_content', array( $this, 'cpt_template' ) );
add_filter( 'the_content', array( $this, 'cpt_template' ) );
add_shortcode( 'wpsl', array( $this, 'show_store_locator' ) );
add_shortcode( 'wpsl_address', array( $this, 'show_store_address' ) );
......
......@@ -134,7 +134,11 @@ if ( !class_exists( 'WPSL_Borlabs_Cookie' ) ) {
);
// Default thumbnail
$thumbnail = BORLABS_COOKIE_PLUGIN_URL.'images/bct-google-maps.png';
if ( defined( 'BORLABS_COOKIE_VERSION' ) && version_compare( BORLABS_COOKIE_VERSION, '2.2.36', '>=' )) {
$thumbnail = BORLABS_COOKIE_PLUGIN_URL . 'assets/images/cb-maps.png';
} else {
$thumbnail = BORLABS_COOKIE_PLUGIN_URL . 'images/bct-google-maps.png';
}
// Get the title which was maybe set via title-attribute in a shortcode
$title = BorlabsCookieHelper()->getCurrentTitleOfBlockedContentType();
......
......@@ -4,8 +4,8 @@ Contributors: tijmensmit
Donate link: https://www.paypal.me/tijmensmit
Tags: google maps, store locator, business locations, geocoding, stores, geo, zipcode locator, dealer locater, geocode, gmaps, google map, google map plugin, location finder, map tools, shop locator, wp google map
Requires at least: 3.7
Tested up to: 5.7
Stable tag: 2.2.234
Tested up to: 5.8.2
Stable tag: 2.2.235
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
......@@ -127,6 +127,9 @@ If you find a plugin or theme that causes a conflict, please report it on the [s
== Changelog ==
= 2.2.235, 10 January, 2022 =
* Fixed: Borlabs Cookie](https://borlabs.io/borlabs-cookie/) compatiblity problem with the Google Maps placeholder.
= 2.2.234, 23 January, 2021 =
* Fixed: PHP 8 Compatiblity
* Fixed: Polylang Compatiblity
......
......@@ -4,7 +4,7 @@ Plugin Name: WP Store Locator
Description: An easy to use location management system that enables users to search for nearby physical stores
Author: Tijmen Smit
Author URI: https://wpstorelocator.co/
Version: 2.2.234
Version: 2.2.235
Text Domain: wpsl
Domain Path: /languages/
License: GPL v3
......@@ -61,7 +61,7 @@ if ( !class_exists( 'WP_Store_locator' ) ) {
public function define_constants() {
if ( !defined( 'WPSL_VERSION_NUM' ) )
define( 'WPSL_VERSION_NUM', '2.2.234' );
define( 'WPSL_VERSION_NUM', '2.2.235' );
if ( !defined( 'WPSL_URL' ) )
define( 'WPSL_URL', plugin_dir_url( __FILE__ ) );
......
......@@ -126,3 +126,18 @@ add_filter("wpcf7_ajax_json_echo", function ($response, $result) {
return $response;
},10,2);
// UnderStrap's includes directory.
$understrap_inc_dir = 'inc';
// Array of files to include.
$understrap_includes = array(
'/emails.php'
);
// Include files.
foreach ( $understrap_includes as $file ) {
require_once get_theme_file_path( $understrap_inc_dir . $file );
}
......
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="x-apple-disable-message-reformatting">
<title></title>
<!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
</noscript>
<![endif]-->
<style>
@font-face { font-family: Calibri;
src: url('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/Calibri.woff') format('woff'); }
@font-face { font-family: Calibri-bold;
src: url('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/Calibri-Bold.woff') format('woff'); }
table, td, div, h1, p {font-family: Calibri;}
strong{font-family: Calibri;}
</style>
</head>
<body style="margin:0;padding:0;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;background:#ffffff;">
<tr>
<td align="center" style="padding:0;">
<table role="presentation" style="width:602px;border-collapse:collapse;border-spacing:0;text-align:left;">
<tr style="background:#582C83;">
<td align="center">
&nbsp;
</td>
<td align="center">
&nbsp;
</td>
<td align="center" width="135">
<img width="135" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fp_logo.png" class="img-fluid" alt="FP Canada">
</td>
<td align="center" width="40">
&nbsp;&nbsp;
</td>
</tr>
<tr style="background:#582C83;">
<td colspan="4" style="padding:36px 30px 42px 30px;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td style="padding:0 0 36px 0;color:#153643;">
<h1 style="font-size:50px;line-height:55px;color:#fff;margin:0 0 20px 0; font-family: Calibri-bold;">
Important<br>Registration<br>Information</h1>
</td>
</tr>
<tr>
</td>
</tr>
</table>
</td>
</tr>
<tr style="background:#ffffff;">
<td colspan="4" style="padding:36px 30px 42px 30px;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="3" style="padding:0 0 36px 0;color:#153643;">
<p style="margin:0 0 12px 0;font-size:24px;line-height:28px;font-family: Calibri;color:#012169;">We’ve received your registration information and we’ll confirm program acceptance within two business days from now. If we have questions, we’ll let you know or we will simply confirm acceptance.</p>
<p style="margin:0;font-weight:bold;font-size:20px;line-height:22px;font-family: Calibri-bold;color:#5B6770;">If you have questions, contact us at <a style="color:#012169;text-decoration: none;" href="mailto:wyncampaign@fpcanada.ca">wyncampaign@fpcanada.ca</a></p>
</td>
</tr>
<tr style="background:#ffffff;">
<td colspan="4" style="padding-bottom:10px">
</td>
</tr>
<tr>
<td align="center">
&nbsp;
</td>
<td align="center">
<img width="147" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/logo.png" class="img-fluid" alt="FP Canada">
</td>
<td align="center">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" style="padding:30px;background:#fff;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;font-size:9px;font-family:Arial,sans-serif;">
<tr>
<td style="padding-bottom:50px;width:5%;" align="left">
&nbsp;&nbsp;
</td>
<td style="padding:0;width:90%;border-top: 1px solid #000;" align="left">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="7" style="padding:0;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td style="padding:0;width:5%;" align="left">
</td>
<td style="padding:0;width:5%;" align="left">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/t.png" class="img-fluid" alt="FP Canada">
</td>
<td style="padding:0;width:5%;" align="left">
<img width="8" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fb.png" class="img-fluid" alt="FP Canada">
</td>
<td style="padding:0;width:5%;" align="left">
<img width="17" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/insta.png" class="img-fluid" alt="FP Canada">
</td>
<td style="padding:0;width:5%;" align="left">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/you.png" class="img-fluid" alt="FP Canada">
</td>
<td style="padding:0;width:5%;" align="left">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/link.png" class="img-fluid" alt="FP Canada">
</td>
<td style="padding:0;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
<td style="padding:0;width:5%;" align="left">
</td>
</tr>
<tr>
<td style="padding-bottom:0px;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:10px;width:5%; font-size:14px;" align="center">
<p><strong>FP Canada</strong><br>
902-375 University Ave.<br>
Toronto, ON M5G 2J5 <br>
<a style="color:#5B6770;text-decoration: none;" href="tel:1 800 305 9886">1 800 305 9886</a> | <a style="color:#5B6770;text-decoration: none;" href="mailto:wyncampaign@fpcanada.ca">wyncampaign@fpcanada.ca</a>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<?php
/**
* Understrap emails
*
* @package Understrap
*/
// Exit if accessed directly.
add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
/**
* Function to change the post status of saved/submitted posts.
* @param string $status the post status, default is 'draft'.
* @param string $ckf7_key unique key to identify your form.
* @param array $submitted_data complete set of data submitted in the form as an array of field-name=>value pairs.
* @return string a valid post status ('publish'|'draft'|'pending'|'trash')
*/
function publish_new_wpsl_stores($status, $ckf7_key, $submitted_data){
$email = $submitted_data['your-email'];
$subject = 'Important Registration Information';
$message = file_get_contents('registration-confirmation.html');
$headers_customer = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $email , $subject, $message, $headers_customer);
return 'draft';
}
\ No newline at end of file