diff --git a/components/acordeon/css/index.js b/components/acordeon/css/index.js index 07d27b4..78287ad 100644 --- a/components/acordeon/css/index.js +++ b/components/acordeon/css/index.js @@ -6,6 +6,7 @@ const styles= css` h3 { color: var(--primary-color2, #004691) !important; font-size: 18px; + line-height: 22px; margin: 0; } @@ -158,7 +159,7 @@ details .linea { @media only screen and (max-width: 414px) { h3 { - font-size: 14px; + font-size: 16px; } details { padding: 15px 15px 15px 15px; @@ -181,7 +182,7 @@ details .linea { } :host([open]) .tit_pregunta { - margin-bottom: 10px !important; + margin-right: 22px; } } diff --git a/dist/components.js b/dist/components.js index 2e73fa5..92ce755 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,2 +1,2 @@ -/*! webcomponents release: 1.1.6 */ -const t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol();class i{constructor(t,i){if(i!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return t&&void 0===this.t&&(this.t=new CSSStyleSheet,this.t.replaceSync(this.cssText)),this.t}toString(){return this.cssText}}const s=new Map,r=t=>{let r=s.get(t);return void 0===r&&s.set(t,r=new i(t,e)),r},o=t=>r("string"==typeof t?t:t+""),n=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,r)=>e+(t=>{if(t instanceof i)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[r+1]),t[0]);return r(s)},l=t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return o(e)})(t):t;var a,h,d,c;const p={toAttribute(t,e){switch(e){case Boolean:t=t?"":null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},u=(t,e)=>e!==t&&(e==e||t==t),f={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:u};class g extends HTMLElement{constructor(){super(),this.Πi=new Map,this.Πo=void 0,this.Πl=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.Πh=null,this.u()}static addInitializer(t){var e;null!==(e=this.v)&&void 0!==e||(this.v=[]),this.v.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this.Πp(i,e);void 0!==s&&(this.Πm.set(s,i),t.push(s))})),t}static createProperty(t,e=f){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||f}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this.Πm=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static Πp(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this.Πg=new Promise((t=>this.enableUpdating=t)),this.L=new Map,this.Π_(),this.requestUpdate(),null===(t=this.constructor.v)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this.ΠU)&&void 0!==e?e:this.ΠU=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this.ΠU)||void 0===e||e.splice(this.ΠU.indexOf(t)>>>0,1)}Π_(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this.Πi.set(e,this[e]),delete this[e])}))}createRenderRoot(){var e;const i=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,i)=>{t?e.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((t=>{const i=document.createElement("style");i.textContent=t.cssText,e.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})),this.Πl&&(this.Πl(),this.Πo=this.Πl=void 0)}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})),this.Πo=new Promise((t=>this.Πl=t))}attributeChangedCallback(t,e,i){this.K(t,i)}Πj(t,e,i=f){var s,r;const o=this.constructor.Πp(t,i);if(void 0!==o&&!0===i.reflect){const n=(null!==(r=null===(s=i.converter)||void 0===s?void 0:s.toAttribute)&&void 0!==r?r:p.toAttribute)(e,i.type);this.Πh=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this.Πh=null}}K(t,e){var i,s,r;const o=this.constructor,n=o.Πm.get(t);if(void 0!==n&&this.Πh!==n){const t=o.getPropertyOptions(n),l=t.converter,a=null!==(r=null!==(s=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==s?s:"function"==typeof l?l:null)&&void 0!==r?r:p.fromAttribute;this.Πh=n,this[n]=a(e,t.type),this.Πh=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],e)?(this.L.has(t)||this.L.set(t,e),!0===i.reflect&&this.Πh!==t&&(void 0===this.Πk&&(this.Πk=new Map),this.Πk.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this.Πg=this.Πq())}async Πq(){this.isUpdatePending=!0;try{for(await this.Πg;this.Πo;)await this.Πo}catch(t){Promise.reject(t)}const t=this.performUpdate();return null!=t&&await t,!this.isUpdatePending}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this.Πi&&(this.Πi.forEach(((t,e)=>this[e]=t)),this.Πi=void 0);let e=!1;const i=this.L;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this.Π$()}catch(t){throw e=!1,this.Π$(),t}e&&this.E(i)}willUpdate(t){}E(t){var e;null===(e=this.ΠU)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}Π$(){this.L=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.Πg}shouldUpdate(t){return!0}update(t){void 0!==this.Πk&&(this.Πk.forEach(((t,e)=>this.Πj(e,this[e],t))),this.Πk=void 0),this.Π$()}updated(t){}firstUpdated(t){}}var m,b,y,v;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null===(h=(a=globalThis).reactiveElementPlatformSupport)||void 0===h||h.call(a,{ReactiveElement:g}),(null!==(d=(c=globalThis).reactiveElementVersions)&&void 0!==d?d:c.reactiveElementVersions=[]).push("1.0.0-rc.2");const x=globalThis.trustedTypes,w=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,k=`lit$${(Math.random()+"").slice(9)}$`,_="?"+k,$=`<${_}>`,S=document,z=(t="")=>S.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,N=/>/g,B=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,U=/'/g,M=/"/g,T=/^(?:script|style|textarea)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),R=new WeakMap,I=S.createTreeWalker(S,129,null,!1),L=(t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"":"",n=A;for(let e=0;e"===a[0]?(n=null!=r?r:A,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?B:'"'===a[3]?M:U):n===M||n===U?n=B:n===E||n===N?n=A:(n=B,r=void 0);const c=n===B&&t[e+1].startsWith("/>")?" ":"";o+=n===A?i+$:h>=0?(s.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+k+c):i+k+(-2===h?(s.push(void 0),e):c)}const l=o+(t[i]||"")+(2===e?"":"");return[void 0!==w?w.createHTML(l):l,s]};class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const n=t.length-1,l=this.parts,[a,h]=L(t,e);if(this.el=V.createElement(a,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=I.nextNode())&&l.length0){s.textContent=x?x.emptyScript:"";for(let i=0;i{var e;return j(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.M(t):this.$(t)}C(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}A(t){this._$AH!==t&&(this._$AR(),this._$AH=this.C(t))}$(t){const e=this._$AA.nextSibling;null!==e&&3===e.nodeType&&(null===this._$AB?null===e.nextSibling:e===this._$AB.previousSibling)?e.data=t:this.A(S.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new D(r,this),e=t.p(this.options);t.m(i),this.A(e),this._$AH=t}}_$AC(t){let e=R.get(t.strings);return void 0===e&&R.set(t.strings,e=new V(t)),e}M(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new H(this.C(z()),this.C(z()),this,this.options)):i=e[s],i._$AI(r),s++;s2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(P),this.strings=i):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(void 0===r)t=q(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==O,o&&(this._$AH=t);else{const s=t;let n,l;for(t=r[0],n=0;n{var s,r;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=o._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=n=new H(e.insertBefore(z(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this.Φt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.Φt)||void 0===t||t.setConnected(!1)}render(){return O}}st.finalized=!0,st._$litElement$=!0,null===(Q=(G=globalThis).litElementHydrateSupport)||void 0===Q||Q.call(G,{LitElement:st}),null===(et=(tt=globalThis).litElementPlatformSupport)||void 0===et||et.call(tt,{LitElement:st});let rt;const ot={defaultSlot:Y(rt||(rt=(t=>t)``)),defaultMaxWidth:1204,fontSize:{base:"16px",h1:"24px !important",h2:"18px !important",h3:"16px !important",h4:"15px !important",h5:"14px !important",h6:"14px !important",p:"14px"}};let nt;const lt=n(nt||(nt=(t=>t)`h3{color:var(--primary-color2,#004691)!important;font-size:18px;margin:0}details{width:100%;min-height:5px;padding:25px 15px 25px 45px;margin:0 auto 20px auto;position:relative;font-size:var(--font-base,${0});border:1px solid rgba(0,0,0,.1);border-radius:10px;box-sizing:border-box;transition:all .3s}details[open]{min-height:50px;background-color:#fff;box-shadow:2px 2px 10px rgba(0,0,0,.2)}::slotted(ul){color:var(--text-color1,#444);font-weight:300;font-size:14px;line-height:24px;margin-left:20px;padding:0}::slotted(p){color:var(--text-color1,#444);font-size:var(--font-base,${0});line-height:1.572em}::slotted(a){color:var(--link-text-color,#444)!important;text-decoration:underline}summary{align-items:center;cursor:pointer;display:flex!important;position:relative}summary:focus{outline:0!important}summary::-webkit-details-marker{display:none}.control-icon{fill:var(--main-naranja);transition:.3s ease;pointer-events:none;position:absolute;top:38px;right:10px}.collapse{display:none}details[open] .collapse{display:initial;transition:.3s ease}details[open] .expand{display:none}details[open] summary:hover::after{animation:pulse 1s ease}k-icon{font-size:20px;line-height:20px;position:absolute;right:0;top:0}details .linea{background-color:#e0e0e0;border:none;height:1px}@keyframes pulse{25%{transform:scale(1.1)}50%{transform:scale(1)}75%{transform:scale(1.1)}100%{transform:scale(1)}}.fade-in-top{-webkit-animation:fade-in-top .6s cubic-bezier(.39,.575,.565,1) both;animation:fade-in-top .6s cubic-bezier(.39,.575,.565,1) both}@-webkit-keyframes fade-in-top{0%{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes fade-in-top{0%{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@media only screen and (max-width:414px){h3{font-size:14px}details{padding:15px 15px 15px 15px;width:90%}details p,details ul{padding-right:10px}details p{margin-top:0}.control-icon{top:25px;right:5px}:host([open]) .tit_pregunta{margin-bottom:10px!important}}@media only screen and (max-width:375px){details ul{margin:0}}`),o(ot.fontSize.p),o(ot.fontSize.p));let at,ht=t=>t;let dt;const ct=n(dt||(dt=(t=>t)`:host{background-color:var(--k-banner-background-color,#fff);color:var(--text-color1,#444);display:flex;flex-wrap:wrap;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0});justify-content:center;margin-bottom:2rem;overflow:hidden}:host([type=full]) .container{flex-wrap:wrap}:host([type=full]) .content{text-align:center;align-items:stretch}:host([type=left]),:host([type=right]){background-color:var(--k-banner-background-color,#f5f5f5)}:host([type=left-cut]) .container,:host([type=right-cut]) .container{background-color:var(--k-banner-background-color,#f5f5f5)}:host([type=left]) .content,:host([type=right]) .content{align-items:flex-start}::slotted(h1),::slotted(h2),::slotted(h3){color:var(--primary-color2,#004691)!important}::slotted(h1){font-size:${0}}::slotted(h2){font-size:${0}}::slotted(h3){font-size:${0}}::slotted(h4){font-size:${0}}::slotted(h5){font-size:${0}}::slotted(p){color:var(--text-color1,#444);font-size:var(--font-base,${0});line-height:1.572em}::slotted(k-button){width:100%}.container{display:flex;flex:1;flex-direction:column;height:100%;justify-content:center;max-width:${0}}.content,section{align-items:center;display:flex}.content{flex:1;flex-direction:column;justify-content:center;padding:1rem;order:2}section picture{display:flex;overflow:hidden;width:100%}.full{flex-basis:100%}.left,.left-cut,.right,.right-cut{flex-basis:100%}.full img,.left img,.left-cut img,.right img,.right-cut img{max-width:100%;object-fit:cover;width:100%}@media screen and (min-width:420px){::slotted(k-button){width:auto}}@media screen and (min-width:768px){:host([type=full]) .content{align-items:center;flex-basis:100%}.container{flex-direction:row;justify-content:space-between}.content{align-items:flex-start;order:unset;padding:0 2rem}.left,.right{flex-basis:50%}.left-cut,.right-cut{align-items:stretch;flex-basis:40%}.left-cut{margin-left:0;filter:drop-shadow(10px 0 0 var(--primary-color2, #004691))}.left-cut img{clip-path:polygon(0 0,0 100%,90% 100%,100% 0)}.right-cut{margin-right:0;filter:drop-shadow(-10px 0 0 var(--primary-color2, #004691))}.right-cut img{clip-path:polygon(0 0,10% 100%,100% 100%,100% 0)}}`),o(ot.fontSize.base),o(ot.fontSize.h1),o(ot.fontSize.h2),o(ot.fontSize.h3),o(ot.fontSize.h4),o(ot.fontSize.h5),o(ot.fontSize.p),o(`${ot.defaultMaxWidth}px`));let pt,ut,ft,gt,mt=t=>t;class bt extends st{static get properties(){return{loaded:{type:Boolean,reflect:!0},height:{type:Number},src:{type:String},"mobile-src":{type:String},type:{type:String},width:{type:Number}}}static get styles(){return ct}constructor(){super(),this.height=0,this.width=null,this.loaded=!1,this.src="",this["mobile-src"]="",this.type="left"}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){this.loaded=!0;const t=this._getImage(this.type);return Y(pt||(pt=mt`${0}
${0}${0}
`),this._dynamicStyles(),"left"==this.type||"left-cut"==this.type||"full"==this.type?t:"","right"==this.type||"right-cut"==this.type?t:"")}_dynamicStyles(){const t=""+(null===this.width?"flex-basis: 50% !important;":`flex-basis: ${this.width}% !important;`);return Y(ut||(ut=mt``),t)}_getImage(t){if(this.src.length)return Y(ft||(ft=mt`
${0}
`),t,this["mobile-src"].length?Y(gt||(gt=mt``),this["mobile-src"]):"",this.src,this.height,this.src)}}let yt;const vt=n(yt||(yt=(t=>t)`.full iframe,.left iframe,.left-cut iframe,.right iframe,.right-cut iframe{max-width:100%;object-fit:cover;width:100%}@media screen and (min-width:768px){.left-cut iframe{clip-path:polygon(0 0,0 100%,90% 100%,100% 0)}.right-cut iframe{clip-path:polygon(0 0,10% 100%,100% 100%,100% 0)}}`));let xt,wt,kt=t=>t;let _t;const $t=n(_t||(_t=(t=>t)`:host{background-color:var(--k-card-background-color,#fff);border-radius:var(--k-card-border-radius,4px);display:inline-flex;flex-direction:column;margin:.5em;max-width:100%;padding:0;position:relative;transition:ease-in-out .3s all;width:auto}:host([href]){cursor:pointer}:host([shadow]){box-shadow:0 2px 3px 2px rgba(0,0,0,.1)}:host([shadow]:focus),:host([shadow]:hover){box-shadow:0 2px 5px 2px rgba(0,0,0,.2)}::slotted(k-button){border:4px solid #fff;min-width:180px;position:absolute;right:2em;top:164px;z-index:1}::slotted(img){border-radius:var(--button-radius,4px) var(--button-radius,4px) 0 0;height:191px;object-fit:cover;width:100%}.text{padding:.5em 1.75em 1.75em 1.75em}::slotted(span){color:var(--primary-color1,#f9c332);font-size:var(--font-base,${0});font-weight:700;line-height:1.572em}::slotted(h2){color:var(--text-color1,#010000);font-size:${0};font-weight:700;line-height:1.3em;max-width:380px}::slotted(p){color:var(--text-color1,#444);overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:var(--font-base,${0});line-height:1.572em}::slotted(.author_date){color:var(--text-color3,#959595);font-size:.857em;font-weight:medium;line-height:1.572em;margin-bottom:0;text-align:right}@media screen and (min-width:768px){::slotted(p){display:block}}`),o(ot.fontSize.p),o(ot.fontSize.h2),o(ot.fontSize.p));let St,zt=t=>t;let Ct;const jt=n(Ct||(Ct=(t=>t)`:host{align-items:center;background-color:var(--button-primary-background-color,#e63027);border:var(--button-primary-border,1px solid #e63027);border-radius:var(--button-radius,4px);box-sizing:border-box;color:var(--button-primary-text-color,#fff);cursor:pointer;display:inline-flex;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0});font-weight:400;justify-content:center;line-height:1.125rem;min-height:56px;outline:0;padding:16px 24px;text-align:center;text-decoration:none;transition:ease-in-out .3s all;width:auto}:host([variant=outline]){background-color:var(--button-outline-background-color,transparent);border:var(--button-outline-border,1px solid #e63027);color:var(--button-outline-text-color,#e63027)}:host(:focus),:host(:hover),:host([variant=outline]:focus),:host([variant=outline]:hover){background-color:var(--button-primary-background-color-hover,#ab1114);border-color:var(--button-primary-background-color-hover,#ab1114)}:host([variant=outline]:focus),:host([variant=outline]:hover){color:var(--button-primary-text-color-hover,#fff)}`),o(ot.fontSize.base));let At;const Et=n(At||(At=(t=>t)`:host{background-color:var(--k-card-background-color,#fff);border-radius:var(--k-card-border-radius,4px);display:inline-block;margin:.5em;max-width:100%;padding:1rem;transition:ease-in-out .3s all;width:auto}:host([href]){cursor:pointer}:host([shadow]){box-shadow:0 2px 3px 2px rgba(0,0,0,.1)}:host([shadow]:focus),:host([shadow]:hover){box-shadow:0 2px 5px 2px rgba(0,0,0,.2)}:host([type=category-item]){align-items:center;display:flex;flex-direction:column;justify-content:center;padding:.5rem;text-align:center}:host([type=category-product]){align-items:end;display:flex;padding:0 10px}:host([type=category-product]) ::slotted(img){order:2;width:20%}:host([type=category-product]) ::slotted(h3){font-size:16px;font-weight:400;order:1;width:80%}:host([type=icon-item]){align-items:center;display:flex;flex-wrap:wrap;justify-content:center;margin-top:4rem}:host([type=icon-item]) ::slotted(h3){margin:10px 0;text-align:center;width:100%}:host([type=icon-item]) ::slotted(p){margin:0 0 20px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([type=icon-item][variant=outline]) ::slotted(k-icon){border:solid 2px var(--primary-color1);border-radius:50px;font-size:40px;height:90px;margin-top:-30px;width:90px;align-items:center;text-align:center;display:flex;justify-content:center;background-color:#fff}:host([type=icon-item][variant=fill]) ::slotted(k-icon){border:none;border-radius:50px;color:var(--primary-color2,#959595);font-size:40px;height:90px;margin-top:-30px;width:90px;align-items:center;text-align:center;display:flex;justify-content:center;background-color:var(--card-icon-background-fill,#f5f5f5)}:host([type=product-item]){margin-top:2rem;text-align:center}:host([type=product-item]) ::slotted(img),:host([type=product-item]) ::slotted(k-img){margin-top:-3rem;max-width:100%;width:auto;will-change:transform;transition:.3s ease-in-out transform}:host([type=product-item]:hover) ::slotted(img),:host([type=product-item]:hover) ::slotted(k-img){transform:scale3d(1.05,1.05,1)}:host([type=product-item]) ::slotted(p){text-align:initial}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(strong){color:var(--primary-color2,#004691)!important}::slotted(p){color:var(--text-color1,#444);display:none;font-size:var(--font-base,14px);line-height:1.572em}:host([type=category-item]) ::slotted(k-icon){font-size:var(--font-base,24px);line-height:1.572em;margin:0}:host([type=category-item]) ::slotted(p){display:block;font-size:var(--font-base,14px);line-height:1.125em;margin:0}:host([type=full-image-width]){padding:0 0 1rem 0}:host([type=full-image-width]) ::slotted(img){border-top-left-radius:var(--k-card-border-radius,4px);border-top-right-radius:var(--k-card-border-radius,4px);width:100%}:host([type=full-image-width]) ::slotted(h3),:host([type=full-image-width]) ::slotted(p){padding:0 1rem}:host([type=full-image-width]) ::slotted(k-link){display:inline-flex;justify-content:center;width:100%}:host([type=full-image-width]) ::slotted(k-button){display:flex;margin:0 1rem;width:auto}@media screen and (min-width:768px){::slotted(p){display:block}:host([type=category-product]) ::slotted(img){width:30%}:host([type=category-product]) ::slotted(h3){width:70%}}@media only screen and (min-device-width:769px) and (max-device-width:1024px){:host([type=category-product]) ::slotted(img){width:20%}:host([type=category-product]) ::slotted(h3){width:80%}}`));let Nt;const Bt=n(Nt||(Nt=(t=>t)`.k-slider{box-sizing:border-box;position:relative;width:100%}.k-slider *{box-sizing:inherit}.k-slider__track{overflow:hidden}.k-slider__slides{align-items:stretch;backface-visibility:hidden;background-color:var(--k-slider-background-color,#fff);display:flex;flex-wrap:nowrap;list-style:none;overflow:hidden;padding:.5em 0;position:relative;touch-action:pan-Y;transform-style:preserve-3d;width:100%;will-change:transform;white-space:nowrap}.k-slider__slides--dragging{user-select:none}.k-slider__slide{align-items:stretch;display:flex;justify-content:center;width:100%;height:auto;flex-shrink:0;white-space:normal;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.k-slider__slide img{max-width:100%}.k-slider__slide k-card{max-height:100%;width:100%}.k-slider__slide a{user-select:none;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.k-slider__arrows{-webkit-touch-callout:none;user-select:none}.k-slider__bullets{-webkit-touch-callout:none;user-select:none}.k-slider--rtl{direction:rtl}`));let Ut;const Mt=n(Ut||(Ut=(t=>t)`.k-slider__arrow{align-items:center;background-color:#fff;border-radius:48px;border:none;box-shadow:0 .25em .5em 0 rgba(0,0,0,.1);cursor:pointer;display:flex;height:48px;justify-content:center;line-height:1;opacity:1;padding:12px;position:absolute;top:50%;transition:opacity 150ms ease,border .3s ease-in-out;transform:translateY(-50%);width:48px;z-index:2}.k-slider__arrow k-icon{font-size:20px}.k-slider__arrow:focus{outline:0}.k-slider__arrow:hover{border-color:#fff}.k-slider__arrow--left{left:1em}.k-slider__arrow--right{right:1em}.k-slider__arrow--disabled{opacity:.33}.k-slider__bullets{position:absolute;z-index:2;bottom:-2em;left:50%;display:inline-flex;list-style:none;transform:translateX(-50%)}.k-slider__bullet{background-color:var(--k-slider-bullet-color,#f5f5f5);width:12px;height:12px;padding:0;border-radius:50%;border:0;transition:all .3s ease-in-out;cursor:pointer;line-height:0;box-shadow:0 .25em .5em 0 rgba(0,0,0,.1);margin:0 .5em}.k-slider__bullet:focus{outline:0}.k-slider__bullet:focus,.k-slider__bullet:hover{background-color:var(--k-slider-bullet-color-hover,#004691)}.k-slider__bullet--active{background-color:var(--carousel-nav-color,#004691)}.k-slider--swipeable{cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.k-slider--dragging{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}:host([mobile-arrows=false]) .k-slider__arrow,:where(:host([arrows=false]).k-slider__arrow){display:none}:host([mobile-bullets=false]) .k-slider__bullets,:where(:host([bullets=false]).k-slider__bullets){display:none}@media screen and (min-width:768px){:host([desktop-arrows=false]) .k-slider__arrow,:where(:host([arrows=false]).k-slider__arrow){display:none}:host([desktop-bullets=false]) .k-slider__bullets,:where(:host([bullets=false]).k-slider__bullets){display:none}:host([desktop-arrows=true]) .k-slider__arrow,:where(:host([arrows=true]).k-slider__arrow){display:block}:host([desktop-bullets=true]) .k-slider__bullets,:where(:host([bullets=true]).k-slider__bullets){display:block}}`));let Tt;const Yt=n(Tt||(Tt=(t=>t)`:host{display:flex;flex:1;flex-wrap:no-wrap;justify-content:center;margin:0 auto 2rem;padding:0}:host([bullets=true]){padding-bottom:2em}`));let Ot,Pt,Rt,It,Lt,Vt=t=>t;class qt extends st{static get properties(){return{arrows:{type:Boolean},bullets:{type:Boolean},"desktop-arrows":{type:Boolean},"desktop-bullets":{type:Boolean},"desktop-items":{type:Number},"items-space":{type:Number},loaded:{type:Boolean,reflect:!0},"mobile-arrows":{type:Boolean},"mobile-bullets":{type:Boolean},"mobile-items":{type:Number},peek:{type:Number},width:{type:Number}}}static get styles(){return[Yt,Bt,Mt]}constructor(){super(),this.arrows=!1,this.bullets=!1,this.countSlides=this.childElementCount,this["desktop-arrows"]=!1,this["desktop-bullets"]=!1,this["desktop-items"]=6,this["items-space"]=16,this.loaded=!1,this["mobile-arrows"]=!1,this["mobile-bullets"]=!1,this["mobile-items"]=2,this.peek=0,this.width=ot.defaultMaxWidth}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`)),"desktop-items"===t?this.style.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:"mobile-items"===t&&(this.style.gridTemplateRows=`repeat(${this.rows}, 1fr)`)}firstUpdated(){this.arrows=Dt(this.getAttribute("arrows")),this["desktop-arrows"]=!!Dt(this.getAttribute("desktop-arrows"))||this.arrows,this["desktop-bullets"]=!!Dt(this.getAttribute("desktop-bullets"))||this.bullets,this["mobile-arrows"]=!!Dt(this.getAttribute("mobile-arrows"))||this.arrows,this["mobile-bullets"]=!!Dt(this.getAttribute("mobile-bullets"))||this.bullets,this._initSlider()}render(){return Y(Ot||(Ot=Vt`${0}
${0} ${0}
`),this._dynamicStyles(),this["desktop-arrows"]||this["mobile-arrows"]?this._getArrows():"",this["desktop-bullets"]||this["mobile-bullets"]?this._getDots():"")}_dynamicStyles(){const t=`${0===this.width||null===this.width||void 0===this.width?1204:this.width}`;return Y(Pt||(Pt=Vt``),t)}_getArrows(){return Y(Rt||(Rt=Vt`
`))}_getDots(){const t=[];for(let e=0;e`),e));return Y(Lt||(Lt=Vt`
${0}
`),t)}async _initSlider(){const t=await import("./glide.esm-bf188feb.js").then((t=>t.default));let e=this.innerHTML;return this.shadowRoot.querySelector(".k-slider__slides").innerHTML=e,this.innerHTML="",this.loaded=!0,new t(this.shadowRoot.querySelector(".k-slider"),{classes:{direction:{ltr:"k-slider--ltr",rtl:"k-slider--rtl"},slider:"k-slider--slider",carousel:"k-slider--carousel",swipeable:"k-slider--swipeable",dragging:"k-slider--dragging",cloneSlide:"k-slider__slide--clone",activeNav:"k-slider__bullet--active",activeSlide:"k-slider__slide--active",disabledArrow:"k-slider__arrow--disabled"},gap:this["items-space"],type:"carousel",peek:this.peek,perView:this["desktop-items"],breakpoints:{768:{perView:this["mobile-items"],peek:0},359:{perView:1,peek:0}}}).mount()}}function Dt(t=""){return"string"==typeof t&&("true"===t.toLowerCase()&&!0)}let Ht;const Jt=n(Ht||(Ht=(t=>t)`.k-gallery__slide,.k-slider__slide{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;align-items:stretch;display:flex;filter:grayscale(100%);flex-shrink:0;height:auto;justify-content:center;opacity:.6;user-select:none;white-space:normal;width:100%}.k-gallery__slide img,.k-slider__slide img{max-width:100%;object-fit:cover}.k-gallery__slide k-card,.k-slider__slide k-card{max-height:100%;width:100%}`));let Wt;const Zt=n(Wt||(Wt=(t=>t)`.k-gallery__slide--active,.k-slider__slide--active{filter:grayscale(0);opacity:1;transition:.5s ease}`));let Kt;const Xt=n(Kt||(Kt=(t=>t)`:host{display:flex;flex:1;flex-wrap:no-wrap;justify-content:center;margin:0 auto 2rem;padding:0 1rem}.content{display:grid;grid-gap:1rem;width:100%}@media screen and (min-width:768px){:host{padding:0}}`));let Ft,Gt,Qt=t=>t;let te;const ee=n(te||(te=(t=>t)`:host{box-sizing:border-box;color:var(--k-icon-color,#e63027);display:inline-block;font-size:1em}`));let ie,se=t=>t;let re;const oe=n(re||(re=(t=>t)`li{color:var(--text-color1);line-height:24px;list-style:none;padding:0 10px 10px 10px}li::before{content:"•";color:var(--primary-color1,#444);font-weight:700;display:inline-block;width:1em;margin-left:-1em}@media only screen and (min-width:768px){li::before{margin-left:-1em}}`));let ne,le=t=>t;let ae;const he=n(ae||(ae=(t=>t)`:host{align-items:center;cursor:pointer;display:inline-block;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0})}a{color:var(--primary-color2,#004691);text-decoration:underline}`),o(ot.fontSize.base));let de,ce,pe=t=>t;let ue;const fe=n(ue||(ue=(t=>t)`ul{color:var(--text-color1,#444);-webkit-column-count:1;column-count:1;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0});line-height:24px;list-style:none;margin:0;padding:0 20px}@media only screen and (min-width:768px){ul{-webkit-column-count:var(--k-column-list,1);column-count:var(--k-column-list,1)}}`),o(ot.fontSize.base));let ge,me=t=>t;let be;const ye=n(be||(be=(t=>t)`:host{border-bottom:1px solid var(--k-title-underline-border-color,#e0e0e0);display:flex;font-family:var(--font-family, 'Arial');margin:0 0 1rem;max-width:100%;padding:0;transition:ease-in-out .3s all;width:auto}:host([type=center]){justify-content:center}:host([type=left]){justify-content:flex-start}:host([type=right]){justify-content:flex-end}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){box-shadow:inset 0 -1px 0 0 var(--primary-color1,#e63027),0 2px 0 0 var(--primary-color1,#e63027);color:var(--primary-color2,#004691)!important;display:inline-block;margin:0!important;padding:.5em 0;position:relative}::slotted(h1){font-size:${0}}::slotted(h2){font-size:${0}}::slotted(h3){font-size:${0}}::slotted(h4){font-size:${0}}::slotted(h5){font-size:${0}}::slotted(h6){font-size:${0}}::slotted(p){font-size:${0}}`),o(ot.fontSize.h1),o(ot.fontSize.h2),o(ot.fontSize.h3),o(ot.fontSize.h4),o(ot.fontSize.h5),o(ot.fontSize.h6),o(ot.fontSize.p));window.customElements.define("k-acordeon",class extends st{constructor(){super(),this.open=!1,this.title="Escriba un título"}static get properties(){return{open:{type:String,reflect:!0},title:{type:String}}}static get styles(){return lt}firstUpdated(){this.open=function(t=""){return"string"==typeof t&&("true"===t.toLowerCase()&&!0)}(this.getAttribute("open"))}render(){return Y(at||(at=ht`

${0}


`),this.open,this.title)}}),window.customElements.define("k-banner",bt),window.customElements.define("k-banner-video",class extends bt{static get styles(){return[super.styles,vt]}constructor(){super()}render(){return this.loaded=!0,Y(xt||(xt=kt`${0}
${0}${0}
`),this._dynamicStyles(),"left"==this.type||"left-cut"==this.type||"full"==this.type?this._getIframe({height:this.height,src:this.src,type:this.type}):"","right"==this.type||"right-cut"==this.type?this._getIframe({height:this.height,src:this.src,type:this.type}):"")}_getIframe({height:t,src:e,type:i}){if(e.length)return Y(wt||(wt=kt`
`),i,t,e)}}),window.customElements.define("k-blog-article",class extends st{static get properties(){return{href:{type:String},loaded:{type:Boolean,reflect:!0},type:{type:String},target:{type:String},shadow:{type:Boolean,reflect:!0}}}static get styles(){return $t}constructor(){super(),this.href="",this.loaded=!1,this.target="_self",this.type="default",this.shadow=!0,this.addEventListener("click",this._handleClick)}render(){return this.loaded=!0,Y(St||(St=zt`
`))}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}_handleClick(){if(""!==this.href)return window.open(this.href,this.target)}}),window.customElements.define("k-button",class extends st{static get properties(){return{disabled:{type:Boolean},href:{type:String},loaded:{type:Boolean,reflect:!0},icon:{type:String},target:{type:String},variant:{type:String}}}static get styles(){return jt}constructor(){super(),this.disabled=!1,this.href="",this.loaded=!1,this.icon="",this.target="_self",this.variant="primary",this.addEventListener("click",this._handleClick)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){return this.loaded=!0,ot.defaultSlot}_handleClick(){if(""!==this.href)return window.open(this.href,this.target)}}),window.customElements.define("k-card",class extends st{static get properties(){return{href:{type:String},loaded:{type:Boolean,reflect:!0},type:{type:String},target:{type:String},shadow:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0}}}static get styles(){return Et}constructor(){super(),this.href="",this.loaded=!1,this.target="_self",this.type="default",this.shadow=!0,this.variant="outline",this.addEventListener("click",this._handleClick)}render(){return this.loaded=!0,ot.defaultSlot}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}_handleClick(){if(""!==this.href)return window.open(this.href,this.target)}}),window.customElements.define("k-gallery",class extends qt{static get styles(){return[super.styles,Jt,Zt]}constructor(){super()}}),window.customElements.define("k-grid",class extends st{static get properties(){return{"desktop-columns":{type:Number,reflect:!0},"mobile-columns":{type:Number,reflect:!0},width:{type:Number,reflect:!0}}}static get styles(){return Xt}constructor(){super(),this["desktop-columns"]=6,this["mobile-columns"]=2,this.width=ot.defaultMaxWidth}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){return Y(Ft||(Ft=Qt`${0}${0}`),this._dynamicStyles(),ot.defaultSlot)}_dynamicStyles(){const t=this["desktop-columns"],e=this["mobile-columns"],i=`${0===this.width||null===this.width?ot.defaultMaxWidth:this.width}px`;return Y(Gt||(Gt=Qt``),i,e,t)}}),window.customElements.define("k-icon",class extends st{static get properties(){return{icon:{type:String,reflect:!0},loaded:{type:Boolean,reflect:!0}}}static get styles(){return ee}constructor(){super(),this.loaded=!1,this.target=""}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){return this.loaded=!0,Y(ie||(ie=se``),this.icon)}}),window.customElements.define("k-li",class extends st{constructor(){super()}static get styles(){return oe}render(){return Y(ne||(ne=le`
  • `))}}),window.customElements.define("k-link",class extends st{static get properties(){return{href:{type:String},icon:{type:String,reflect:!0},loaded:{type:Boolean,reflect:!0},title:{type:String},target:{type:String}}}static get styles(){return he}constructor(){super(),this.href="#",this.icon="",this.loaded=!1,this.target="_self",this.title=""}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){this.loaded=!0;const t=this.hasAttribute("icon")?Y(de||(de=pe``),this.icon):"";return Y(ce||(ce=pe`${0}`),this.href,this.target,this.title,t)}}),window.customElements.define("k-list",class extends st{constructor(){super(),this.colum=1}static get properties(){return{column:{type:Number}}}static get styles(){return fe}render(){return Y(ge||(ge=me`
    `),this.column)}}),window.customElements.define("k-slider",qt),window.customElements.define("k-title-underline",class extends st{static get properties(){return{loaded:{type:Boolean,reflect:!0},type:{type:String}}}static get styles(){return ye}constructor(){super(),this.loaded=!1,this.type="left",this.shadow=!0}render(){return this.loaded=!0,ot.defaultSlot}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}}); +/*! webcomponents release: 1.1.7 */ +const t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e=Symbol();class i{constructor(t,i){if(i!==e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return t&&void 0===this.t&&(this.t=new CSSStyleSheet,this.t.replaceSync(this.cssText)),this.t}toString(){return this.cssText}}const s=new Map,r=t=>{let r=s.get(t);return void 0===r&&s.set(t,r=new i(t,e)),r},o=t=>r("string"==typeof t?t:t+""),n=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,r)=>e+(t=>{if(t instanceof i)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[r+1]),t[0]);return r(s)},l=t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return o(e)})(t):t;var a,h,d,c;const p={toAttribute(t,e){switch(e){case Boolean:t=t?"":null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},u=(t,e)=>e!==t&&(e==e||t==t),f={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:u};class g extends HTMLElement{constructor(){super(),this.Πi=new Map,this.Πo=void 0,this.Πl=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.Πh=null,this.u()}static addInitializer(t){var e;null!==(e=this.v)&&void 0!==e||(this.v=[]),this.v.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this.Πp(i,e);void 0!==s&&(this.Πm.set(s,i),t.push(s))})),t}static createProperty(t,e=f){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||f}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this.Πm=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static Πp(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this.Πg=new Promise((t=>this.enableUpdating=t)),this.L=new Map,this.Π_(),this.requestUpdate(),null===(t=this.constructor.v)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this.ΠU)&&void 0!==e?e:this.ΠU=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this.ΠU)||void 0===e||e.splice(this.ΠU.indexOf(t)>>>0,1)}Π_(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this.Πi.set(e,this[e]),delete this[e])}))}createRenderRoot(){var e;const i=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,i)=>{t?e.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((t=>{const i=document.createElement("style");i.textContent=t.cssText,e.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})),this.Πl&&(this.Πl(),this.Πo=this.Πl=void 0)}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})),this.Πo=new Promise((t=>this.Πl=t))}attributeChangedCallback(t,e,i){this.K(t,i)}Πj(t,e,i=f){var s,r;const o=this.constructor.Πp(t,i);if(void 0!==o&&!0===i.reflect){const n=(null!==(r=null===(s=i.converter)||void 0===s?void 0:s.toAttribute)&&void 0!==r?r:p.toAttribute)(e,i.type);this.Πh=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this.Πh=null}}K(t,e){var i,s,r;const o=this.constructor,n=o.Πm.get(t);if(void 0!==n&&this.Πh!==n){const t=o.getPropertyOptions(n),l=t.converter,a=null!==(r=null!==(s=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==s?s:"function"==typeof l?l:null)&&void 0!==r?r:p.fromAttribute;this.Πh=n,this[n]=a(e,t.type),this.Πh=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],e)?(this.L.has(t)||this.L.set(t,e),!0===i.reflect&&this.Πh!==t&&(void 0===this.Πk&&(this.Πk=new Map),this.Πk.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this.Πg=this.Πq())}async Πq(){this.isUpdatePending=!0;try{for(await this.Πg;this.Πo;)await this.Πo}catch(t){Promise.reject(t)}const t=this.performUpdate();return null!=t&&await t,!this.isUpdatePending}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this.Πi&&(this.Πi.forEach(((t,e)=>this[e]=t)),this.Πi=void 0);let e=!1;const i=this.L;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this.ΠU)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this.Π$()}catch(t){throw e=!1,this.Π$(),t}e&&this.E(i)}willUpdate(t){}E(t){var e;null===(e=this.ΠU)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}Π$(){this.L=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.Πg}shouldUpdate(t){return!0}update(t){void 0!==this.Πk&&(this.Πk.forEach(((t,e)=>this.Πj(e,this[e],t))),this.Πk=void 0),this.Π$()}updated(t){}firstUpdated(t){}}var m,b,y,v;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null===(h=(a=globalThis).reactiveElementPlatformSupport)||void 0===h||h.call(a,{ReactiveElement:g}),(null!==(d=(c=globalThis).reactiveElementVersions)&&void 0!==d?d:c.reactiveElementVersions=[]).push("1.0.0-rc.2");const x=globalThis.trustedTypes,w=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,k=`lit$${(Math.random()+"").slice(9)}$`,_="?"+k,$=`<${_}>`,S=document,z=(t="")=>S.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,N=/>/g,B=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,U=/'/g,M=/"/g,T=/^(?:script|style|textarea)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),R=new WeakMap,I=S.createTreeWalker(S,129,null,!1),L=(t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"":"",n=A;for(let e=0;e"===a[0]?(n=null!=r?r:A,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?B:'"'===a[3]?M:U):n===M||n===U?n=B:n===E||n===N?n=A:(n=B,r=void 0);const c=n===B&&t[e+1].startsWith("/>")?" ":"";o+=n===A?i+$:h>=0?(s.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+k+c):i+k+(-2===h?(s.push(void 0),e):c)}const l=o+(t[i]||"")+(2===e?"":"");return[void 0!==w?w.createHTML(l):l,s]};class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const n=t.length-1,l=this.parts,[a,h]=L(t,e);if(this.el=V.createElement(a,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=I.nextNode())&&l.length0){s.textContent=x?x.emptyScript:"";for(let i=0;i{var e;return j(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.M(t):this.$(t)}C(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}A(t){this._$AH!==t&&(this._$AR(),this._$AH=this.C(t))}$(t){const e=this._$AA.nextSibling;null!==e&&3===e.nodeType&&(null===this._$AB?null===e.nextSibling:e===this._$AB.previousSibling)?e.data=t:this.A(S.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new D(r,this),e=t.p(this.options);t.m(i),this.A(e),this._$AH=t}}_$AC(t){let e=R.get(t.strings);return void 0===e&&R.set(t.strings,e=new V(t)),e}M(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new H(this.C(z()),this.C(z()),this,this.options)):i=e[s],i._$AI(r),s++;s2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(P),this.strings=i):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(void 0===r)t=q(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==O,o&&(this._$AH=t);else{const s=t;let n,l;for(t=r[0],n=0;n{var s,r;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=o._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=n=new H(e.insertBefore(z(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this.Φt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.Φt)||void 0===t||t.setConnected(!1)}render(){return O}}st.finalized=!0,st._$litElement$=!0,null===(Q=(G=globalThis).litElementHydrateSupport)||void 0===Q||Q.call(G,{LitElement:st}),null===(et=(tt=globalThis).litElementPlatformSupport)||void 0===et||et.call(tt,{LitElement:st});let rt;const ot={defaultSlot:Y(rt||(rt=(t=>t)``)),defaultMaxWidth:1204,fontSize:{base:"16px",h1:"24px !important",h2:"18px !important",h3:"16px !important",h4:"15px !important",h5:"14px !important",h6:"14px !important",p:"14px"}};let nt;const lt=n(nt||(nt=(t=>t)`h3{color:var(--primary-color2,#004691)!important;font-size:18px;line-height:22px;margin:0}details{width:100%;min-height:5px;padding:25px 15px 25px 45px;margin:0 auto 20px auto;position:relative;font-size:var(--font-base,${0});border:1px solid rgba(0,0,0,.1);border-radius:10px;box-sizing:border-box;transition:all .3s}details[open]{min-height:50px;background-color:#fff;box-shadow:2px 2px 10px rgba(0,0,0,.2)}::slotted(ul){color:var(--text-color1,#444);font-weight:300;font-size:14px;line-height:24px;margin-left:20px;padding:0}::slotted(p){color:var(--text-color1,#444);font-size:var(--font-base,${0});line-height:1.572em}::slotted(a){color:var(--link-text-color,#444)!important;text-decoration:underline}summary{align-items:center;cursor:pointer;display:flex!important;position:relative}summary:focus{outline:0!important}summary::-webkit-details-marker{display:none}.control-icon{fill:var(--main-naranja);transition:.3s ease;pointer-events:none;position:absolute;top:38px;right:10px}.collapse{display:none}details[open] .collapse{display:initial;transition:.3s ease}details[open] .expand{display:none}details[open] summary:hover::after{animation:pulse 1s ease}k-icon{font-size:20px;line-height:20px;position:absolute;right:0;top:0}details .linea{background-color:#e0e0e0;border:none;height:1px}@keyframes pulse{25%{transform:scale(1.1)}50%{transform:scale(1)}75%{transform:scale(1.1)}100%{transform:scale(1)}}.fade-in-top{-webkit-animation:fade-in-top .6s cubic-bezier(.39,.575,.565,1) both;animation:fade-in-top .6s cubic-bezier(.39,.575,.565,1) both}@-webkit-keyframes fade-in-top{0%{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes fade-in-top{0%{-webkit-transform:translateY(-50px);transform:translateY(-50px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@media only screen and (max-width:414px){h3{font-size:16px}details{padding:15px 15px 15px 15px;width:90%}details p,details ul{padding-right:10px}details p{margin-top:0}.control-icon{top:25px;right:5px}:host([open]) .tit_pregunta{margin-right:22px}}@media only screen and (max-width:375px){details ul{margin:0}}`),o(ot.fontSize.p),o(ot.fontSize.p));let at,ht=t=>t;let dt;const ct=n(dt||(dt=(t=>t)`:host{background-color:var(--k-banner-background-color,#fff);color:var(--text-color1,#444);display:flex;flex-wrap:wrap;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0});justify-content:center;margin-bottom:2rem;overflow:hidden}:host([type=full]) .container{flex-wrap:wrap}:host([type=full]) .content{text-align:center;align-items:stretch}:host([type=left]),:host([type=right]){background-color:var(--k-banner-background-color,#f5f5f5)}:host([type=left-cut]) .container,:host([type=right-cut]) .container{background-color:var(--k-banner-background-color,#f5f5f5)}:host([type=left]) .content,:host([type=right]) .content{align-items:flex-start}::slotted(h1),::slotted(h2),::slotted(h3){color:var(--primary-color2,#004691)!important}::slotted(h1){font-size:${0}}::slotted(h2){font-size:${0}}::slotted(h3){font-size:${0}}::slotted(h4){font-size:${0}}::slotted(h5){font-size:${0}}::slotted(p){color:var(--text-color1,#444);font-size:var(--font-base,${0});line-height:1.572em}::slotted(k-button){width:100%}.container{display:flex;flex:1;flex-direction:column;height:100%;justify-content:center;max-width:${0}}.content,section{align-items:center;display:flex}.content{flex:1;flex-direction:column;justify-content:center;padding:1rem;order:2}section picture{display:flex;overflow:hidden;width:100%}.full{flex-basis:100%}.left,.left-cut,.right,.right-cut{flex-basis:100%}.full img,.left img,.left-cut img,.right img,.right-cut img{max-width:100%;object-fit:cover;width:100%}@media screen and (min-width:420px){::slotted(k-button){width:auto}}@media screen and (min-width:768px){:host([type=full]) .content{align-items:center;flex-basis:100%}.container{flex-direction:row;justify-content:space-between}.content{align-items:flex-start;order:unset;padding:0 2rem}.left,.right{flex-basis:50%}.left-cut,.right-cut{align-items:stretch;flex-basis:40%}.left-cut{margin-left:0;filter:drop-shadow(10px 0 0 var(--primary-color2, #004691))}.left-cut img{clip-path:polygon(0 0,0 100%,90% 100%,100% 0)}.right-cut{margin-right:0;filter:drop-shadow(-10px 0 0 var(--primary-color2, #004691))}.right-cut img{clip-path:polygon(0 0,10% 100%,100% 100%,100% 0)}}`),o(ot.fontSize.base),o(ot.fontSize.h1),o(ot.fontSize.h2),o(ot.fontSize.h3),o(ot.fontSize.h4),o(ot.fontSize.h5),o(ot.fontSize.p),o(`${ot.defaultMaxWidth}px`));let pt,ut,ft,gt,mt=t=>t;class bt extends st{static get properties(){return{loaded:{type:Boolean,reflect:!0},height:{type:Number},src:{type:String},"mobile-src":{type:String},type:{type:String},width:{type:Number}}}static get styles(){return ct}constructor(){super(),this.height=0,this.width=null,this.loaded=!1,this.src="",this["mobile-src"]="",this.type="left"}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){this.loaded=!0;const t=this._getImage(this.type);return Y(pt||(pt=mt`${0}
    ${0}${0}
    `),this._dynamicStyles(),"left"==this.type||"left-cut"==this.type||"full"==this.type?t:"","right"==this.type||"right-cut"==this.type?t:"")}_dynamicStyles(){const t=""+(null===this.width?"flex-basis: 50% !important;":`flex-basis: ${this.width}% !important;`);return Y(ut||(ut=mt``),t)}_getImage(t){if(this.src.length)return Y(ft||(ft=mt`
    ${0}
    `),t,this["mobile-src"].length?Y(gt||(gt=mt``),this["mobile-src"]):"",this.src,this.height,this.src)}}let yt;const vt=n(yt||(yt=(t=>t)`.full iframe,.left iframe,.left-cut iframe,.right iframe,.right-cut iframe{max-width:100%;object-fit:cover;width:100%}@media screen and (min-width:768px){.left-cut iframe{clip-path:polygon(0 0,0 100%,90% 100%,100% 0)}.right-cut iframe{clip-path:polygon(0 0,10% 100%,100% 100%,100% 0)}}`));let xt,wt,kt=t=>t;let _t;const $t=n(_t||(_t=(t=>t)`:host{background-color:var(--k-card-background-color,#fff);border-radius:var(--k-card-border-radius,4px);display:inline-flex;flex-direction:column;margin:.5em;max-width:100%;padding:0;position:relative;transition:ease-in-out .3s all;width:auto}:host([href]){cursor:pointer}:host([shadow]){box-shadow:0 2px 3px 2px rgba(0,0,0,.1)}:host([shadow]:focus),:host([shadow]:hover){box-shadow:0 2px 5px 2px rgba(0,0,0,.2)}::slotted(k-button){border:4px solid #fff;min-width:180px;position:absolute;right:2em;top:164px;z-index:1}::slotted(img){border-radius:var(--button-radius,4px) var(--button-radius,4px) 0 0;height:191px;object-fit:cover;width:100%}.text{padding:.5em 1.75em 1.75em 1.75em}::slotted(span){color:var(--primary-color1,#f9c332);font-size:var(--font-base,${0});font-weight:700;line-height:1.572em}::slotted(h2){color:var(--text-color1,#010000);font-size:${0};font-weight:700;line-height:1.3em;max-width:380px}::slotted(p){color:var(--text-color1,#444);overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:var(--font-base,${0});line-height:1.572em}::slotted(.author_date){color:var(--text-color3,#959595);font-size:.857em;font-weight:medium;line-height:1.572em;margin-bottom:0;text-align:right}@media screen and (min-width:768px){::slotted(p){display:block}}`),o(ot.fontSize.p),o(ot.fontSize.h2),o(ot.fontSize.p));let St,zt=t=>t;let Ct;const jt=n(Ct||(Ct=(t=>t)`:host{align-items:center;background-color:var(--button-primary-background-color,#e63027);border:var(--button-primary-border,1px solid #e63027);border-radius:var(--button-radius,4px);box-sizing:border-box;color:var(--button-primary-text-color,#fff);cursor:pointer;display:inline-flex;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0});font-weight:400;justify-content:center;line-height:1.125rem;min-height:56px;outline:0;padding:16px 24px;text-align:center;text-decoration:none;transition:ease-in-out .3s all;width:auto}:host([variant=outline]){background-color:var(--button-outline-background-color,transparent);border:var(--button-outline-border,1px solid #e63027);color:var(--button-outline-text-color,#e63027)}:host(:focus),:host(:hover),:host([variant=outline]:focus),:host([variant=outline]:hover){background-color:var(--button-primary-background-color-hover,#ab1114);border-color:var(--button-primary-background-color-hover,#ab1114)}:host([variant=outline]:focus),:host([variant=outline]:hover){color:var(--button-primary-text-color-hover,#fff)}`),o(ot.fontSize.base));let At;const Et=n(At||(At=(t=>t)`:host{background-color:var(--k-card-background-color,#fff);border-radius:var(--k-card-border-radius,4px);display:inline-block;margin:.5em;max-width:100%;padding:1rem;transition:ease-in-out .3s all;width:auto}:host([href]){cursor:pointer}:host([shadow]){box-shadow:0 2px 3px 2px rgba(0,0,0,.1)}:host([shadow]:focus),:host([shadow]:hover){box-shadow:0 2px 5px 2px rgba(0,0,0,.2)}:host([type=category-item]){align-items:center;display:flex;flex-direction:column;justify-content:center;padding:.5rem;text-align:center}:host([type=category-product]){align-items:end;display:flex;padding:0 10px}:host([type=category-product]) ::slotted(img){order:2;width:20%}:host([type=category-product]) ::slotted(h3){font-size:16px;font-weight:400;order:1;width:80%}:host([type=icon-item]){align-items:center;display:flex;flex-wrap:wrap;justify-content:center;margin-top:4rem}:host([type=icon-item]) ::slotted(h3){margin:10px 0;text-align:center;width:100%}:host([type=icon-item]) ::slotted(p){margin:0 0 20px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([type=icon-item][variant=outline]) ::slotted(k-icon){border:solid 2px var(--primary-color1);border-radius:50px;font-size:40px;height:90px;margin-top:-30px;width:90px;align-items:center;text-align:center;display:flex;justify-content:center;background-color:#fff}:host([type=icon-item][variant=fill]) ::slotted(k-icon){border:none;border-radius:50px;color:var(--primary-color2,#959595);font-size:40px;height:90px;margin-top:-30px;width:90px;align-items:center;text-align:center;display:flex;justify-content:center;background-color:var(--card-icon-background-fill,#f5f5f5)}:host([type=product-item]){margin-top:2rem;text-align:center}:host([type=product-item]) ::slotted(img),:host([type=product-item]) ::slotted(k-img){margin-top:-3rem;max-width:100%;width:auto;will-change:transform;transition:.3s ease-in-out transform}:host([type=product-item]:hover) ::slotted(img),:host([type=product-item]:hover) ::slotted(k-img){transform:scale3d(1.05,1.05,1)}:host([type=product-item]) ::slotted(p){text-align:initial}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(strong){color:var(--primary-color2,#004691)!important}::slotted(p){color:var(--text-color1,#444);display:none;font-size:var(--font-base,14px);line-height:1.572em}:host([type=category-item]) ::slotted(k-icon){font-size:var(--font-base,24px);line-height:1.572em;margin:0}:host([type=category-item]) ::slotted(p){display:block;font-size:var(--font-base,14px);line-height:1.125em;margin:0}:host([type=full-image-width]){padding:0 0 1rem 0}:host([type=full-image-width]) ::slotted(img){border-top-left-radius:var(--k-card-border-radius,4px);border-top-right-radius:var(--k-card-border-radius,4px);width:100%}:host([type=full-image-width]) ::slotted(h3),:host([type=full-image-width]) ::slotted(p){padding:0 1rem}:host([type=full-image-width]) ::slotted(k-link){display:inline-flex;justify-content:center;width:100%}:host([type=full-image-width]) ::slotted(k-button){display:flex;margin:0 1rem;width:auto}@media screen and (min-width:768px){::slotted(p){display:block}:host([type=category-product]) ::slotted(img){width:30%}:host([type=category-product]) ::slotted(h3){width:70%}}@media only screen and (min-device-width:769px) and (max-device-width:1024px){:host([type=category-product]) ::slotted(img){width:20%}:host([type=category-product]) ::slotted(h3){width:80%}}`));let Nt;const Bt=n(Nt||(Nt=(t=>t)`.k-slider{box-sizing:border-box;position:relative;width:100%}.k-slider *{box-sizing:inherit}.k-slider__track{overflow:hidden}.k-slider__slides{align-items:stretch;backface-visibility:hidden;background-color:var(--k-slider-background-color,#fff);display:flex;flex-wrap:nowrap;list-style:none;overflow:hidden;padding:.5em 0;position:relative;touch-action:pan-Y;transform-style:preserve-3d;width:100%;will-change:transform;white-space:nowrap}.k-slider__slides--dragging{user-select:none}.k-slider__slide{align-items:stretch;display:flex;justify-content:center;width:100%;height:auto;flex-shrink:0;white-space:normal;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.k-slider__slide img{max-width:100%}.k-slider__slide k-card{max-height:100%;width:100%}.k-slider__slide a{user-select:none;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.k-slider__arrows{-webkit-touch-callout:none;user-select:none}.k-slider__bullets{-webkit-touch-callout:none;user-select:none}.k-slider--rtl{direction:rtl}`));let Ut;const Mt=n(Ut||(Ut=(t=>t)`.k-slider__arrow{align-items:center;background-color:#fff;border-radius:48px;border:none;box-shadow:0 .25em .5em 0 rgba(0,0,0,.1);cursor:pointer;display:flex;height:48px;justify-content:center;line-height:1;opacity:1;padding:12px;position:absolute;top:50%;transition:opacity 150ms ease,border .3s ease-in-out;transform:translateY(-50%);width:48px;z-index:2}.k-slider__arrow k-icon{font-size:20px}.k-slider__arrow:focus{outline:0}.k-slider__arrow:hover{border-color:#fff}.k-slider__arrow--left{left:1em}.k-slider__arrow--right{right:1em}.k-slider__arrow--disabled{opacity:.33}.k-slider__bullets{position:absolute;z-index:2;bottom:-2em;left:50%;display:inline-flex;list-style:none;transform:translateX(-50%)}.k-slider__bullet{background-color:var(--k-slider-bullet-color,#f5f5f5);width:12px;height:12px;padding:0;border-radius:50%;border:0;transition:all .3s ease-in-out;cursor:pointer;line-height:0;box-shadow:0 .25em .5em 0 rgba(0,0,0,.1);margin:0 .5em}.k-slider__bullet:focus{outline:0}.k-slider__bullet:focus,.k-slider__bullet:hover{background-color:var(--k-slider-bullet-color-hover,#004691)}.k-slider__bullet--active{background-color:var(--carousel-nav-color,#004691)}.k-slider--swipeable{cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.k-slider--dragging{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}:host([mobile-arrows=false]) .k-slider__arrow,:where(:host([arrows=false]).k-slider__arrow){display:none}:host([mobile-bullets=false]) .k-slider__bullets,:where(:host([bullets=false]).k-slider__bullets){display:none}@media screen and (min-width:768px){:host([desktop-arrows=false]) .k-slider__arrow,:where(:host([arrows=false]).k-slider__arrow){display:none}:host([desktop-bullets=false]) .k-slider__bullets,:where(:host([bullets=false]).k-slider__bullets){display:none}:host([desktop-arrows=true]) .k-slider__arrow,:where(:host([arrows=true]).k-slider__arrow){display:block}:host([desktop-bullets=true]) .k-slider__bullets,:where(:host([bullets=true]).k-slider__bullets){display:block}}`));let Tt;const Yt=n(Tt||(Tt=(t=>t)`:host{display:flex;flex:1;flex-wrap:no-wrap;justify-content:center;margin:0 auto 2rem;padding:0}:host([bullets=true]){padding-bottom:2em}`));let Ot,Pt,Rt,It,Lt,Vt=t=>t;class qt extends st{static get properties(){return{arrows:{type:Boolean},bullets:{type:Boolean},"desktop-arrows":{type:Boolean},"desktop-bullets":{type:Boolean},"desktop-items":{type:Number},"items-space":{type:Number},loaded:{type:Boolean,reflect:!0},"mobile-arrows":{type:Boolean},"mobile-bullets":{type:Boolean},"mobile-items":{type:Number},peek:{type:Number},width:{type:Number}}}static get styles(){return[Yt,Bt,Mt]}constructor(){super(),this.arrows=!1,this.bullets=!1,this.countSlides=this.childElementCount,this["desktop-arrows"]=!1,this["desktop-bullets"]=!1,this["desktop-items"]=6,this["items-space"]=16,this.loaded=!1,this["mobile-arrows"]=!1,this["mobile-bullets"]=!1,this["mobile-items"]=2,this.peek=0,this.width=ot.defaultMaxWidth}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`)),"desktop-items"===t?this.style.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:"mobile-items"===t&&(this.style.gridTemplateRows=`repeat(${this.rows}, 1fr)`)}firstUpdated(){this.arrows=Dt(this.getAttribute("arrows")),this["desktop-arrows"]=!!Dt(this.getAttribute("desktop-arrows"))||this.arrows,this["desktop-bullets"]=!!Dt(this.getAttribute("desktop-bullets"))||this.bullets,this["mobile-arrows"]=!!Dt(this.getAttribute("mobile-arrows"))||this.arrows,this["mobile-bullets"]=!!Dt(this.getAttribute("mobile-bullets"))||this.bullets,this._initSlider()}render(){return Y(Ot||(Ot=Vt`${0}
    ${0} ${0}
    `),this._dynamicStyles(),this["desktop-arrows"]||this["mobile-arrows"]?this._getArrows():"",this["desktop-bullets"]||this["mobile-bullets"]?this._getDots():"")}_dynamicStyles(){const t=`${0===this.width||null===this.width||void 0===this.width?1204:this.width}`;return Y(Pt||(Pt=Vt``),t)}_getArrows(){return Y(Rt||(Rt=Vt`
    `))}_getDots(){const t=[];for(let e=0;e`),e));return Y(Lt||(Lt=Vt`
    ${0}
    `),t)}async _initSlider(){const t=await import("./glide.esm-e58a4a0d.js").then((t=>t.default));let e=this.innerHTML;return this.shadowRoot.querySelector(".k-slider__slides").innerHTML=e,this.innerHTML="",this.loaded=!0,new t(this.shadowRoot.querySelector(".k-slider"),{classes:{direction:{ltr:"k-slider--ltr",rtl:"k-slider--rtl"},slider:"k-slider--slider",carousel:"k-slider--carousel",swipeable:"k-slider--swipeable",dragging:"k-slider--dragging",cloneSlide:"k-slider__slide--clone",activeNav:"k-slider__bullet--active",activeSlide:"k-slider__slide--active",disabledArrow:"k-slider__arrow--disabled"},gap:this["items-space"],type:"carousel",peek:this.peek,perView:this["desktop-items"],breakpoints:{768:{perView:this["mobile-items"],peek:0},359:{perView:1,peek:0}}}).mount()}}function Dt(t=""){return"string"==typeof t&&("true"===t.toLowerCase()&&!0)}let Ht;const Jt=n(Ht||(Ht=(t=>t)`.k-gallery__slide,.k-slider__slide{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;align-items:stretch;display:flex;filter:grayscale(100%);flex-shrink:0;height:auto;justify-content:center;opacity:.6;user-select:none;white-space:normal;width:100%}.k-gallery__slide img,.k-slider__slide img{max-width:100%;object-fit:cover}.k-gallery__slide k-card,.k-slider__slide k-card{max-height:100%;width:100%}`));let Wt;const Zt=n(Wt||(Wt=(t=>t)`.k-gallery__slide--active,.k-slider__slide--active{filter:grayscale(0);opacity:1;transition:.5s ease}`));let Kt;const Xt=n(Kt||(Kt=(t=>t)`:host{display:flex;flex:1;flex-wrap:no-wrap;justify-content:center;margin:0 auto 2rem;padding:0 1rem}.content{display:grid;grid-gap:1rem;width:100%}@media screen and (min-width:768px){:host{padding:0}}`));let Ft,Gt,Qt=t=>t;let te;const ee=n(te||(te=(t=>t)`:host{box-sizing:border-box;color:var(--k-icon-color,#e63027);display:inline-block;font-size:1em}`));let ie,se=t=>t;let re;const oe=n(re||(re=(t=>t)`li{color:var(--text-color1);line-height:24px;list-style:none;padding:0 10px 10px 10px}li::before{content:"•";color:var(--primary-color1,#444);font-weight:700;display:inline-block;width:1em;margin-left:-1em}@media only screen and (min-width:768px){li::before{margin-left:-1em}}`));let ne,le=t=>t;let ae;const he=n(ae||(ae=(t=>t)`:host{align-items:center;cursor:pointer;display:inline-block;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0})}a{color:var(--primary-color2,#004691);text-decoration:underline}`),o(ot.fontSize.base));let de,ce,pe=t=>t;let ue;const fe=n(ue||(ue=(t=>t)`ul{color:var(--text-color1,#444);-webkit-column-count:1;column-count:1;font-family:var(--font-family, 'Arial');font-size:var(--font-base,${0});line-height:24px;list-style:none;margin:0;padding:0 20px}@media only screen and (min-width:768px){ul{-webkit-column-count:var(--k-column-list,1);column-count:var(--k-column-list,1)}}`),o(ot.fontSize.base));let ge,me=t=>t;let be;const ye=n(be||(be=(t=>t)`:host{border-bottom:1px solid var(--k-title-underline-border-color,#e0e0e0);display:flex;font-family:var(--font-family, 'Arial');margin:0 0 1rem;max-width:100%;padding:0;transition:ease-in-out .3s all;width:auto}:host([type=center]){justify-content:center}:host([type=left]){justify-content:flex-start}:host([type=right]){justify-content:flex-end}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){box-shadow:inset 0 -1px 0 0 var(--primary-color1,#e63027),0 2px 0 0 var(--primary-color1,#e63027);color:var(--primary-color2,#004691)!important;display:inline-block;margin:0!important;padding:.5em 0;position:relative}::slotted(h1){font-size:${0}}::slotted(h2){font-size:${0}}::slotted(h3){font-size:${0}}::slotted(h4){font-size:${0}}::slotted(h5){font-size:${0}}::slotted(h6){font-size:${0}}::slotted(p){font-size:${0}}`),o(ot.fontSize.h1),o(ot.fontSize.h2),o(ot.fontSize.h3),o(ot.fontSize.h4),o(ot.fontSize.h5),o(ot.fontSize.h6),o(ot.fontSize.p));window.customElements.define("k-acordeon",class extends st{constructor(){super(),this.open=!1,this.title="Escriba un título"}static get properties(){return{open:{type:String,reflect:!0},title:{type:String}}}static get styles(){return lt}firstUpdated(){this.open=function(t=""){return"string"==typeof t&&("true"===t.toLowerCase()&&!0)}(this.getAttribute("open"))}render(){return Y(at||(at=ht`

    ${0}


    `),this.open,this.title)}}),window.customElements.define("k-banner",bt),window.customElements.define("k-banner-video",class extends bt{static get styles(){return[super.styles,vt]}constructor(){super()}render(){return this.loaded=!0,Y(xt||(xt=kt`${0}
    ${0}${0}
    `),this._dynamicStyles(),"left"==this.type||"left-cut"==this.type||"full"==this.type?this._getIframe({height:this.height,src:this.src,type:this.type}):"","right"==this.type||"right-cut"==this.type?this._getIframe({height:this.height,src:this.src,type:this.type}):"")}_getIframe({height:t,src:e,type:i}){if(e.length)return Y(wt||(wt=kt`
    `),i,t,e)}}),window.customElements.define("k-blog-article",class extends st{static get properties(){return{href:{type:String},loaded:{type:Boolean,reflect:!0},type:{type:String},target:{type:String},shadow:{type:Boolean,reflect:!0}}}static get styles(){return $t}constructor(){super(),this.href="",this.loaded=!1,this.target="_self",this.type="default",this.shadow=!0,this.addEventListener("click",this._handleClick)}render(){return this.loaded=!0,Y(St||(St=zt`
    `))}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}_handleClick(){if(""!==this.href)return window.open(this.href,this.target)}}),window.customElements.define("k-button",class extends st{static get properties(){return{disabled:{type:Boolean},href:{type:String},loaded:{type:Boolean,reflect:!0},icon:{type:String},target:{type:String},variant:{type:String}}}static get styles(){return jt}constructor(){super(),this.disabled=!1,this.href="",this.loaded=!1,this.icon="",this.target="_self",this.variant="primary",this.addEventListener("click",this._handleClick)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){return this.loaded=!0,ot.defaultSlot}_handleClick(){if(""!==this.href)return window.open(this.href,this.target)}}),window.customElements.define("k-card",class extends st{static get properties(){return{href:{type:String},loaded:{type:Boolean,reflect:!0},type:{type:String},target:{type:String},shadow:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0}}}static get styles(){return Et}constructor(){super(),this.href="",this.loaded=!1,this.target="_self",this.type="default",this.shadow=!0,this.variant="outline",this.addEventListener("click",this._handleClick)}render(){return this.loaded=!0,ot.defaultSlot}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}_handleClick(){if(""!==this.href)return window.open(this.href,this.target)}}),window.customElements.define("k-gallery",class extends qt{static get styles(){return[super.styles,Jt,Zt]}constructor(){super()}}),window.customElements.define("k-grid",class extends st{static get properties(){return{"desktop-columns":{type:Number,reflect:!0},"mobile-columns":{type:Number,reflect:!0},width:{type:Number,reflect:!0}}}static get styles(){return Xt}constructor(){super(),this["desktop-columns"]=6,this["mobile-columns"]=2,this.width=ot.defaultMaxWidth}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){return Y(Ft||(Ft=Qt`${0}${0}`),this._dynamicStyles(),ot.defaultSlot)}_dynamicStyles(){const t=this["desktop-columns"],e=this["mobile-columns"],i=`${0===this.width||null===this.width?ot.defaultMaxWidth:this.width}px`;return Y(Gt||(Gt=Qt``),i,e,t)}}),window.customElements.define("k-icon",class extends st{static get properties(){return{icon:{type:String,reflect:!0},loaded:{type:Boolean,reflect:!0}}}static get styles(){return ee}constructor(){super(),this.loaded=!1,this.target=""}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){return this.loaded=!0,Y(ie||(ie=se``),this.icon)}}),window.customElements.define("k-li",class extends st{constructor(){super()}static get styles(){return oe}render(){return Y(ne||(ne=le`
  • `))}}),window.customElements.define("k-link",class extends st{static get properties(){return{href:{type:String},icon:{type:String,reflect:!0},loaded:{type:Boolean,reflect:!0},title:{type:String},target:{type:String}}}static get styles(){return he}constructor(){super(),this.href="#",this.icon="",this.loaded=!1,this.target="_self",this.title=""}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}render(){this.loaded=!0;const t=this.hasAttribute("icon")?Y(de||(de=pe``),this.icon):"";return Y(ce||(ce=pe`${0}`),this.href,this.target,this.title,t)}}),window.customElements.define("k-list",class extends st{constructor(){super(),this.colum=1}static get properties(){return{column:{type:Number}}}static get styles(){return fe}render(){return Y(ge||(ge=me`
    `),this.column)}}),window.customElements.define("k-slider",qt),window.customElements.define("k-title-underline",class extends st{static get properties(){return{loaded:{type:Boolean,reflect:!0},type:{type:String}}}static get styles(){return ye}constructor(){super(),this.loaded=!1,this.type="left",this.shadow=!0}render(){return this.loaded=!0,ot.defaultSlot}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),this.dispatchEvent(new Event(`${t}-changed`))}}); diff --git a/dist/glide.esm-bf188feb.js b/dist/glide.esm-e58a4a0d.js similarity index 99% rename from dist/glide.esm-bf188feb.js rename to dist/glide.esm-e58a4a0d.js index c4b956a..ba07554 100644 --- a/dist/glide.esm-bf188feb.js +++ b/dist/glide.esm-e58a4a0d.js @@ -1,2 +1,2 @@ -/*! webcomponents release: 1.1.6 */ +/*! webcomponents release: 1.1.7 */ var t={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perTouch:!1,touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{direction:{ltr:"glide--ltr",rtl:"glide--rtl"},slider:"glide--slider",carousel:"glide--carousel",swipeable:"glide--swipeable",dragging:"glide--dragging",cloneSlide:"glide__slide--clone",activeNav:"glide__bullet--active",activeSlide:"glide__slide--active",disabledArrow:"glide__arrow--disabled"}};function n(t){console.error("[Glide warn]: "+t)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},r=function(){function t(t,n){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.events=n,this.hop=n.hasOwnProperty}return r(t,[{key:"on",value:function(t,n){if(d(t))for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};e(this,i),this._c={},this._t=[],this._e=new b,this.disabled=!1,this.selector=n,this.settings=p(t,r),this.index=this.settings.startAt}return r(i,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),f(t)?this._c=l(this,t,this._e):n("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return d(t)?this._t=t:n("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=p(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,n){return this._e.on(t,n),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){f(t)?this._o=t:n("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=a(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),i}();function g(){return(new Date).getTime()}function w(t,n,i){var e=void 0,r=void 0,o=void 0,u=void 0,s=0;i||(i={});var a=function(){s=!1===i.leading?0:g(),e=null,u=t.apply(r,o),e||(r=o=null)},c=function(){var c=g();s||!1!==i.leading||(s=c);var f=n-(c-s);return r=this,o=arguments,f<=0||f>n?(e&&(clearTimeout(e),e=null),s=c,u=t.apply(r,o),e||(r=o=null)):e||!1===i.trailing||(e=setTimeout(a,f)),u};return c.cancel=function(){clearTimeout(e),s=0,e=r=o=null},c}var k={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function j(t){if(t&&t.parentNode){for(var n=t.parentNode.firstChild,i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}return[]}function S(t){return!!(t&&t instanceof window.HTMLElement)}var M=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.listeners=n}return r(t,[{key:"on",value:function(t,n,i){var e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];c(t)&&(t=[t]);for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];c(t)&&(t=[t]);for(var e=0;e":"<","<":">","=":"="};function T(t,n){return{modify:function(t){return n.Direction.is("rtl")?-t:t}}}function z(t,n){return{modify:function(i){return i+n.Gaps.value*t.index}}}function A(t,n){return{modify:function(t){return t+n.Clones.grow/2}}}function C(t,n){return{modify:function(i){if(t.settings.focusAt>=0){var e=n.Peek.value;return f(e)?i-e.before:i-e}return i}}}function _(t,n){return{modify:function(i){var e=n.Gaps.value,r=n.Sizes.width,o=t.settings.focusAt,u=n.Sizes.slideWidth;return"center"===o?i-(r/2-u/2):i-u*o-e*o}}}var E=!1;try{var R=Object.defineProperty({},"passive",{get:function(){E=!0}});window.addEventListener("testPassive",null,R),window.removeEventListener("testPassive",null,R)}catch(t){}var B=E,D=["touchstart","mousedown"],I=["touchmove","mousemove"],P=["touchend","touchcancel","mouseup","mouseleave"],F=["mousedown","mousemove","mouseup","mouseleave"];function G(t){return f(t)?(i=t,Object.keys(i).sort().reduce((function(t,n){return t[n]=i[n],t[n],t}),{})):(n("Breakpoints option must be an object"),{});var i}var H={Html:function(t,i){var e={mount:function(){this.root=t.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.slides=Array.prototype.slice.call(this.wrapper.children).filter((function(n){return!n.classList.contains(t.settings.classes.cloneSlide)}))}};return m(e,"root",{get:function(){return e._r},set:function(t){c(t)&&(t=document.querySelector(t)),S(t)?e._r=t:n("Root element must be a existing Html node")}}),m(e,"track",{get:function(){return e._t},set:function(t){S(t)?e._t=t:n('Could not find track element. Please use [data-glide-el="track"] attribute.')}}),m(e,"wrapper",{get:function(){return e.track.children[0]}}),e},Translate:function(t,i,e){var r={set:function(e){var r=function(t,i,e){var r=[z,A,C,_].concat(t._t,[T]);return{mutate:function(o){for(var u=0;u")?(i.Transition.after((function(){e.emit("translate.jump"),r.set(0)})),r.set(s*u+o*u)):r.set(n.movement)})),e.on("destroy",(function(){r.remove()})),r},Transition:function(t,n,i){var e=!1,r={compose:function(n){var i=t.settings;return e?n+" 0ms "+i.animationTimingFunc:n+" "+this.duration+"ms "+i.animationTimingFunc},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";n.Html.wrapper.style.transition=this.compose(t)},remove:function(){n.Html.wrapper.style.transition=""},after:function(t){setTimeout((function(){t()}),this.duration)},enable:function(){e=!1,this.set()},disable:function(){e=!0,this.set()}};return m(r,"duration",{get:function(){var i=t.settings;return t.isType("slider")&&n.Run.offset?i.rewindDuration:i.animationDuration}}),i.on("move",(function(){r.set()})),i.on(["build.before","resize","translate.jump"],(function(){r.disable()})),i.on("run",(function(){r.enable()})),i.on("destroy",(function(){r.remove()})),r},Direction:function(t,i,e){var r={mount:function(){this.value=t.settings.direction},resolve:function(t){var n=t.slice(0,1);return this.is("rtl")?t.split(n).join(O[n]):t},is:function(t){return this.value===t},addClass:function(){i.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){i.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return m(r,"value",{get:function(){return r._v},set:function(t){x.indexOf(t)>-1?r._v=t:n("Direction value must be `ltr` or `rtl`")}}),e.on(["destroy","update"],(function(){r.removeClass()})),e.on("update",(function(){r.mount()})),e.on(["build.before","update"],(function(){r.addClass()})),r},Peek:function(t,n,i){var e={mount:function(){this.value=t.settings.peek}};return m(e,"value",{get:function(){return e._v},set:function(t){f(t)?(t.before=a(t.before),t.after=a(t.after)):t=a(t),e._v=t}}),m(e,"reductor",{get:function(){var n=e.value,i=t.settings.perView;return f(n)?n.before/i+n.after/i:2*n/i}}),i.on(["resize","update"],(function(){e.mount()})),e},Sizes:function(t,n,i){var e={setupSlides:function(){for(var t=this.slideWidth+"px",i=n.Html.slides,e=0;e0&&void 0!==arguments[0]?arguments[0]:0;this.offset=e,i.emit("move",{movement:this.value}),n.Transition.after((function(){i.emit("move.after",{movement:t.value})}))}};return m(e,"offset",{get:function(){return e._o},set:function(t){e._o=v(t)?0:a(t)}}),m(e,"translate",{get:function(){return n.Sizes.slideWidth*t.index}}),m(e,"value",{get:function(){var t=this.offset,i=this.translate;return n.Direction.is("rtl")?i+t:i-t}}),i.on(["build.before","run"],(function(){e.make()})),e},Clones:function(t,n,i){var e={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){for(var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=n.Html.slides,r=t.settings,o=r.perView,u=r.classes,s=+!!t.settings.peek,a=o+s,c=e.slice(0,a),f=e.slice(-a),h=0;h"))&&(r._o=!1,e.emit("run.offset",r.move)),e.emit("run.after",r.move),t.enable()})))},calculate:function(){var i=this.move,e=this.length,r=i.steps,o=i.direction,u="number"==typeof a(r)&&0!==a(r);switch(o){case">":">"===r?t.index=e:this.isEnd()?t.isType("slider")&&!t.settings.rewind||(this._o=!0,t.index=0):u?t.index+=Math.min(e-t.index,-a(r)):t.index++;break;case"<":"<"===r?t.index=0:this.isStart()?t.isType("slider")&&!t.settings.rewind||(this._o=!0,t.index=e):u?t.index-=Math.min(t.index,a(r)):t.index--;break;case"=":t.index=r;break;default:n("Invalid direction pattern ["+o+r+"] has been used")}},isStart:function(){return 0===t.index},isEnd:function(){return t.index===this.length},isOffset:function(t){return this._o&&this.move.direction===t}};return m(r,"move",{get:function(){return this._m},set:function(t){var n=t.substr(1);this._m={direction:t.substr(0,1),steps:n?a(n)?a(n):n:0}}}),m(r,"length",{get:function(){var n=t.settings,e=i.Html.slides.length;return t.isType("slider")&&"center"!==n.focusAt&&n.bound?e-1-(a(n.perView)-1)+a(n.focusAt):e-1}}),m(r,"offset",{get:function(){return this._o}}),r},Swipe:function(t,n,i){var e=new M,r=0,o=0,u=0,s=!1,c=!!B&&{passive:!0},f={mount:function(){this.bindSwipeStart()},start:function(n){if(!s&&!t.disabled){this.disable();var e=this.touches(n);r=null,o=a(e.pageX),u=a(e.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),i.emit("swipe.start")}},move:function(e){if(!t.disabled){var s=t.settings,c=s.touchAngle,f=s.touchRatio,h=s.classes,v=this.touches(e),d=a(v.pageX)-o,l=a(v.pageY)-u,m=Math.abs(d<<2),p=Math.abs(l<<2),b=Math.sqrt(m+p),y=Math.sqrt(p);if(!(180*(r=Math.asin(y/b))/Math.PIc&&h"+v))):n.Move.make(),n.Html.root.classList.remove(u.classes.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),i.emit("swipe.end")}},bindSwipeStart:function(){var i=this,r=t.settings;r.swipeThreshold&&e.on(D[0],n.Html.wrapper,(function(t){i.start(t)}),c),r.dragThreshold&&e.on(D[1],n.Html.wrapper,(function(t){i.start(t)}),c)},unbindSwipeStart:function(){e.off(D[0],n.Html.wrapper,c),e.off(D[1],n.Html.wrapper,c)},bindSwipeMove:function(){var i=this;e.on(I,n.Html.wrapper,w((function(t){i.move(t)}),t.settings.throttle),c)},unbindSwipeMove:function(){e.off(I,n.Html.wrapper,c)},bindSwipeEnd:function(){var t=this;e.on(P,n.Html.wrapper,(function(n){t.end(n)}))},unbindSwipeEnd:function(){e.off(P,n.Html.wrapper)},touches:function(t){return F.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(n){var i=t.settings;return F.indexOf(n.type)>-1?i.dragThreshold:i.swipeThreshold},enable:function(){return s=!1,n.Transition.enable(),this},disable:function(){return s=!0,n.Transition.disable(),this}};return i.on("build.after",(function(){n.Html.root.classList.add(t.settings.classes.swipeable)})),i.on("destroy",(function(){f.unbindSwipeStart(),f.unbindSwipeMove(),f.unbindSwipeEnd(),e.destroy()})),f},Images:function(t,n,i){var e=new M,r={mount:function(){this.bind()},bind:function(){e.on("dragstart",n.Html.wrapper,this.dragstart)},unbind:function(){e.off("dragstart",n.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return i.on("destroy",(function(){r.unbind(),e.destroy()})),r},Anchors:function(t,n,i){var e=new M,r=!1,o=!1,u={mount:function(){this._a=n.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){e.on("click",n.Html.wrapper,this.click)},unbind:function(){e.off("click",n.Html.wrapper)},click:function(t){o&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(o=!0,!r){for(var t=0;t")),37===t.keyCode&&n.Run.make(n.Direction.resolve("<"))}};return i.on(["destroy","update"],(function(){r.unbind()})),i.on("update",(function(){r.mount()})),i.on("destroy",(function(){e.destroy()})),r},Autoplay:function(t,n,i){var e=new M,r={mount:function(){this.start(),t.settings.hoverpause&&this.bind()},start:function(){var i=this;t.settings.autoplay&&v(this._i)&&(this._i=setInterval((function(){i.stop(),n.Run.make(">"),i.start()}),this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;e.on("mouseover",n.Html.root,(function(){t.stop()})),e.on("mouseout",n.Html.root,(function(){t.start()}))},unbind:function(){e.off(["mouseover","mouseout"],n.Html.root)}};return m(r,"time",{get:function(){var i=n.Html.slides[t.index].getAttribute("data-glide-autoplay");return a(i||t.settings.autoplay)}}),i.on(["destroy","update"],(function(){r.unbind()})),i.on(["run.before","pause","destroy","swipe.start","update"],(function(){r.stop()})),i.on(["run.after","play","swipe.end"],(function(){r.start()})),i.on("update",(function(){r.mount()})),i.on("destroy",(function(){e.destroy()})),r},Breakpoints:function(t,n,i){var e=new M,r=t.settings,u=G(r.breakpoints),s=o({},r),a={match:function(t){if(void 0!==window.matchMedia)for(var n in t)if(t.hasOwnProperty(n)&&window.matchMedia("(max-width: "+n+"px)").matches)return t[n];return s}};return o(r,a.match(u)),e.on("resize",window,w((function(){t.settings=p(r,a.match(u))}),t.settings.throttle)),i.on("update",(function(){u=G(u),s=o({},r)})),i.on("destroy",(function(){e.off("resize",window)})),a}},L=function(t){function n(){return e(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}(n,y),r(n,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"mount",this).call(this,o({},H,t))}}]),n}();export{L as default}; diff --git a/package-lock.json b/package-lock.json index 4239255..f5180d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webcomponents", - "version": "1.1.4", + "version": "1.1.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "webcomponents", - "version": "1.1.4", + "version": "1.1.6", "license": "MIT", "dependencies": { "@glidejs/glide": "^3.4.1", @@ -131,9 +131,9 @@ } }, "node_modules/@babel/eslint-parser": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.16.0.tgz", - "integrity": "sha512-c+AsYOHjI+FgCa+ifLd8sDXp4U4mjkfFgL9NdQWhuA731kAUJs0WdJIXET4A14EJAR9Jv9FFF/MzPWJfV9Oirw==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz", + "integrity": "sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==", "dev": true, "dependencies": { "eslint-scope": "^5.1.1", @@ -2932,9 +2932,9 @@ } }, "node_modules/@types/node": { - "version": "16.11.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.6.tgz", - "integrity": "sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==", + "version": "16.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz", + "integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==", "dev": true }, "node_modules/@types/prettier": { @@ -10668,9 +10668,9 @@ } }, "node_modules/rollup": { - "version": "2.59.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.59.0.tgz", - "integrity": "sha512-l7s90JQhCQ6JyZjKgo7Lq1dKh2RxatOM+Jr6a9F7WbS9WgKbocyUSeLmZl8evAse7y96Ae98L2k1cBOwWD8nHw==", + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.60.0.tgz", + "integrity": "sha512-cHdv9GWd58v58rdseC8e8XIaPUo8a9cgZpnCMMDGZFDZKEODOiPPEQFXLriWr/TjXzhPPmG5bkAztPsOARIcGQ==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -12508,9 +12508,9 @@ } }, "@babel/eslint-parser": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.16.0.tgz", - "integrity": "sha512-c+AsYOHjI+FgCa+ifLd8sDXp4U4mjkfFgL9NdQWhuA731kAUJs0WdJIXET4A14EJAR9Jv9FFF/MzPWJfV9Oirw==", + "version": "7.16.3", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.16.3.tgz", + "integrity": "sha512-iB4ElZT0jAt7PKVaeVulOECdGe6UnmA/O0P9jlF5g5GBOwDVbna8AXhHRu4s27xQf6OkveyA8iTDv1jHdDejgQ==", "dev": true, "requires": { "eslint-scope": "^5.1.1", @@ -14567,9 +14567,9 @@ } }, "@types/node": { - "version": "16.11.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.6.tgz", - "integrity": "sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==", + "version": "16.11.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz", + "integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==", "dev": true }, "@types/prettier": { @@ -20484,9 +20484,9 @@ } }, "rollup": { - "version": "2.59.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.59.0.tgz", - "integrity": "sha512-l7s90JQhCQ6JyZjKgo7Lq1dKh2RxatOM+Jr6a9F7WbS9WgKbocyUSeLmZl8evAse7y96Ae98L2k1cBOwWD8nHw==", + "version": "2.60.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.60.0.tgz", + "integrity": "sha512-cHdv9GWd58v58rdseC8e8XIaPUo8a9cgZpnCMMDGZFDZKEODOiPPEQFXLriWr/TjXzhPPmG5bkAztPsOARIcGQ==", "dev": true, "requires": { "fsevents": "~2.3.2" diff --git a/package.json b/package.json index 188c630..c4c0301 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webcomponents", - "version": "1.1.6", + "version": "1.1.7", "description": "", "main": "index.js", "module": "dist/components.js",