@iris.interactive/handcook 7.0.8 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Welcome to HandCook 👨🍳
|
|
2
|
-

|
|
3
3
|

|
|
4
4
|
[](#)
|
|
5
5
|
[](https://twitter.com/captain\_iris)
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ import LazyLoad from "vanilla-lazyload";
|
|
|
18
18
|
|
|
19
19
|
export class HcLazyload {
|
|
20
20
|
|
|
21
|
-
static instance
|
|
21
|
+
static instance;
|
|
22
22
|
|
|
23
23
|
constructor(options = {}) {
|
|
24
24
|
options = Object.assign({
|
|
@@ -29,23 +29,28 @@ export class HcLazyload {
|
|
|
29
29
|
data_srcset: 'hc-srcset'
|
|
30
30
|
}, options);
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
this.lazyLoadInstance = new LazyLoad(options);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
static getInstance(options = {}) {
|
|
36
|
-
if (HcLazyload.instance
|
|
37
|
-
HcLazyload.instance = new HcLazyload(options)
|
|
36
|
+
if (!HcLazyload.instance) {
|
|
37
|
+
HcLazyload.instance = new HcLazyload(options);
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
return HcLazyload.instance;
|
|
39
|
+
return HcLazyload.instance.lazyLoadInstance;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
static update(options = {}) {
|
|
44
|
-
HcLazyload.getInstance(options)
|
|
43
|
+
const instance = HcLazyload.getInstance(options);
|
|
44
|
+
if (instance && typeof instance.update === 'function') {
|
|
45
|
+
instance.update();
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
static loadAll(options = {}) {
|
|
48
|
-
HcLazyload.getInstance(options)
|
|
50
|
+
const instance = HcLazyload.getInstance(options);
|
|
51
|
+
if (instance && typeof instance.loadAll === 'function') {
|
|
52
|
+
instance.loadAll();
|
|
53
|
+
}
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var t={4144:function(t){t.exports=function(){"use strict";function t(){return t=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},t.apply(this,arguments)}var n="undefined"!=typeof window,e=n&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),r=n&&"IntersectionObserver"in window,o=n&&"classList"in document.createElement("p"),a=n&&window.devicePixelRatio>1,i={elements_selector:".lazy",container:e||n?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},c=function(n){return t({},i,n)},l=function(t,n){var e,r="LazyLoad::Initialized",o=new t(n);try{e=new CustomEvent(r,{detail:{instance:o}})}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent(r,!1,!1,{instance:o})}window.dispatchEvent(e)},u="src",s="srcset",f="sizes",d="poster",v="llOriginalAttrs",_="data",g="loading",b="loaded",p="applied",m="error",h="native",y="data-",E="ll-status",I=function(t,n){return t.getAttribute(y+n)},w=function(t){return I(t,E)},k=function(t,n){return function(t,n,e){var r="data-ll-status";null!==e?t.setAttribute(r,e):t.removeAttribute(r)}(t,0,n)},O=function(t){return k(t,null)},A=function(t){return null===w(t)},x=function(t){return w(t)===h},L=[g,b,p,m],C=function(t,n,e,r){t&&"function"==typeof t&&(void 0===r?void 0===e?t(n):t(n,e):t(n,e,r))},N=function(t,n){""!==n&&(o?t.classList.add(n):t.className+=(t.className?" ":"")+n)},M=function(t,n){""!==n&&(o?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\s+)"+n+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""))},j=function(t){return t.llTempImage},P=function(t,n){if(n){var e=n._observer;e&&e.unobserve(t)}},S=function(t,n){t&&(t.loadingCount+=n)},T=function(t,n){t&&(t.toLoadCount=n)},z=function(t){for(var n,e=[],r=0;n=t.children[r];r+=1)"SOURCE"===n.tagName&&e.push(n);return e},R=function(t,n){var e=t.parentNode;e&&"PICTURE"===e.tagName&&z(e).forEach(n)},G=function(t,n){z(t).forEach(n)},D=[u],H=[u,d],V=[u,s,f],F=[_],B=function(t){return!!t[v]},J=function(t){return t[v]},U=function(t){return delete t[v]},$=function(t,n){if(!B(t)){var e={};n.forEach((function(n){e[n]=t.getAttribute(n)})),t[v]=e}},q=function(t,n){if(B(t)){var e=J(t);n.forEach((function(n){!function(t,n,e){e?t.setAttribute(n,e):t.removeAttribute(n)}(t,n,e[n])}))}},K=function(t,n,e){N(t,n.class_applied),k(t,p),e&&(n.unobserve_completed&&P(t,n),C(n.callback_applied,t,e))},Q=function(t,n,e){N(t,n.class_loading),k(t,g),e&&(S(e,1),C(n.callback_loading,t,e))},W=function(t,n,e){e&&t.setAttribute(n,e)},X=function(t,n){W(t,f,I(t,n.data_sizes)),W(t,s,I(t,n.data_srcset)),W(t,u,I(t,n.data_src))},Y={IMG:function(t,n){R(t,(function(t){$(t,V),X(t,n)})),$(t,V),X(t,n)},IFRAME:function(t,n){$(t,D),W(t,u,I(t,n.data_src))},VIDEO:function(t,n){G(t,(function(t){$(t,D),W(t,u,I(t,n.data_src))})),$(t,H),W(t,d,I(t,n.data_poster)),W(t,u,I(t,n.data_src)),t.load()},OBJECT:function(t,n){$(t,F),W(t,_,I(t,n.data_src))}},Z=["IMG","IFRAME","VIDEO","OBJECT"],tt=function(t,n){!n||function(t){return t.loadingCount>0}(n)||function(t){return t.toLoadCount>0}(n)||C(t.callback_finish,n)},nt=function(t,n,e){t.addEventListener(n,e),t.llEvLisnrs[n]=e},et=function(t,n,e){t.removeEventListener(n,e)},rt=function(t){return!!t.llEvLisnrs},ot=function(t){if(rt(t)){var n=t.llEvLisnrs;for(var e in n){var r=n[e];et(t,e,r)}delete t.llEvLisnrs}},at=function(t,n,e){!function(t){delete t.llTempImage}(t),S(e,-1),function(t){t&&(t.toLoadCount-=1)}(e),M(t,n.class_loading),n.unobserve_completed&&P(t,e)},it=function(t,n,e){var r=j(t)||t;rt(r)||function(t,n,e){rt(t)||(t.llEvLisnrs={});var r="VIDEO"===t.tagName?"loadeddata":"load";nt(t,r,n),nt(t,"error",e)}(r,(function(o){!function(t,n,e,r){var o=x(n);at(n,e,r),N(n,e.class_loaded),k(n,b),C(e.callback_loaded,n,r),o||tt(e,r)}(0,t,n,e),ot(r)}),(function(o){!function(t,n,e,r){var o=x(n);at(n,e,r),N(n,e.class_error),k(n,m),C(e.callback_error,n,r),e.restore_on_error&&q(n,V),o||tt(e,r)}(0,t,n,e),ot(r)}))},ct=function(t,n,e){!function(t){return Z.indexOf(t.tagName)>-1}(t)?function(t,n,e){!function(t){t.llTempImage=document.createElement("IMG")}(t),it(t,n,e),function(t){B(t)||(t[v]={backgroundImage:t.style.backgroundImage})}(t),function(t,n,e){var r=I(t,n.data_bg),o=I(t,n.data_bg_hidpi),i=a&&o?o:r;i&&(t.style.backgroundImage='url("'.concat(i,'")'),j(t).setAttribute(u,i),Q(t,n,e))}(t,n,e),function(t,n,e){var r=I(t,n.data_bg_multi),o=I(t,n.data_bg_multi_hidpi),i=a&&o?o:r;i&&(t.style.backgroundImage=i,K(t,n,e))}(t,n,e),function(t,n,e){var r=I(t,n.data_bg_set);if(r){var o=r.split("|"),a=o.map((function(t){return"image-set(".concat(t,")")}));t.style.backgroundImage=a.join(),""===t.style.backgroundImage&&(a=o.map((function(t){return"-webkit-image-set(".concat(t,")")})),t.style.backgroundImage=a.join()),K(t,n,e)}}(t,n,e)}(t,n,e):function(t,n,e){it(t,n,e),function(t,n,e){var r=Y[t.tagName];r&&(r(t,n),Q(t,n,e))}(t,n,e)}(t,n,e)},lt=function(t){t.removeAttribute(u),t.removeAttribute(s),t.removeAttribute(f)},ut=function(t){R(t,(function(t){q(t,V)})),q(t,V)},st={IMG:ut,IFRAME:function(t){q(t,D)},VIDEO:function(t){G(t,(function(t){q(t,D)})),q(t,H),t.load()},OBJECT:function(t){q(t,F)}},ft=function(t,n){(function(t){var n=st[t.tagName];n?n(t):function(t){if(B(t)){var n=J(t);t.style.backgroundImage=n.backgroundImage}}(t)})(t),function(t,n){A(t)||x(t)||(M(t,n.class_entered),M(t,n.class_exited),M(t,n.class_applied),M(t,n.class_loading),M(t,n.class_loaded),M(t,n.class_error))}(t,n),O(t),U(t)},dt=["IMG","IFRAME","VIDEO"],vt=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},_t=function(t,n,e){t.forEach((function(t){return function(t){return t.isIntersecting||t.intersectionRatio>0}(t)?function(t,n,e,r){var o=function(t){return L.indexOf(w(t))>=0}(t);k(t,"entered"),N(t,e.class_entered),M(t,e.class_exited),function(t,n,e){n.unobserve_entered&&P(t,e)}(t,e,r),C(e.callback_enter,t,n,r),o||ct(t,e,r)}(t.target,t,n,e):function(t,n,e,r){A(t)||(N(t,e.class_exited),function(t,n,e,r){e.cancel_on_exit&&function(t){return w(t)===g}(t)&&"IMG"===t.tagName&&(ot(t),function(t){R(t,(function(t){lt(t)})),lt(t)}(t),ut(t),M(t,e.class_loading),S(r,-1),O(t),C(e.callback_cancel,t,n,r))}(t,n,e,r),C(e.callback_exit,t,n,r))}(t.target,t,n,e)}))},gt=function(t){return Array.prototype.slice.call(t)},bt=function(t){return t.container.querySelectorAll(t.elements_selector)},pt=function(t){return function(t){return w(t)===m}(t)},mt=function(t,n){return function(t){return gt(t).filter(A)}(t||bt(n))},ht=function(t,e){var o=c(t);this._settings=o,this.loadingCount=0,function(t,n){r&&!vt(t)&&(n._observer=new IntersectionObserver((function(e){_t(e,t,n)}),function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}}(t)))}(o,this),function(t,e){n&&(e._onlineHandler=function(){!function(t,n){var e;(e=bt(t),gt(e).filter(pt)).forEach((function(n){M(n,t.class_error),O(n)})),n.update()}(t,e)},window.addEventListener("online",e._onlineHandler))}(o,this),this.update(e)};return ht.prototype={update:function(t){var n,o,a=this._settings,i=mt(t,a);T(this,i.length),!e&&r?vt(a)?function(t,n,e){t.forEach((function(t){-1!==dt.indexOf(t.tagName)&&function(t,n,e){t.setAttribute("loading","lazy"),it(t,n,e),function(t,n){var e=Y[t.tagName];e&&e(t,n)}(t,n),k(t,h)}(t,n,e)})),T(e,0)}(i,a,this):(o=i,function(t){t.disconnect()}(n=this._observer),function(t,n){n.forEach((function(n){t.observe(n)}))}(n,o)):this.loadAll(i)},destroy:function(){this._observer&&this._observer.disconnect(),n&&window.removeEventListener("online",this._onlineHandler),bt(this._settings).forEach((function(t){U(t)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var n=this,e=this._settings;mt(t,e).forEach((function(t){P(t,n),ct(t,e,n)}))},restoreAll:function(){var t=this._settings;bt(t).forEach((function(n){ft(n,t)}))}},ht.load=function(t,n){var e=c(n);ct(t,e)},ht.resetStatus=function(t){O(t)},n&&function(t,n){if(n)if(n.length)for(var e,r=0;e=n[r];r+=1)l(t,e);else l(t,n)}(ht,window.lazyLoadOptions),ht}()}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={exports:{}};return t[r].call(a.exports,a,a.exports,e),a.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),(()=>{"use strict";var t=e(4144),n=e.n(t);function r(t){return r="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},r(t)}function o(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var n=function(t,n){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==r(n)?n:n+""}var i,c,l,u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),e=Object.assign({elements_selector:"[data-hc-src], [data-hc-bg], [data-hc-bg-hidpi], [data-hc-srcset]",data_src:"hc-src",data_bg:"hc-bg",data_bg_hidpi:"hc-bg-hidpi",data_srcset:"hc-srcset"},e),new(n())(e)}return e=t,a=[{key:"getInstance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return null===t.instance&&(t.instance=new t(n)),t.instance}},{key:"update",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.getInstance(n).update()}},{key:"loadAll",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.getInstance(n).loadAll()}}],(r=null)&&o(e.prototype,r),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,a}();i=u,l=null,(c=a(c="instance"))in i?Object.defineProperty(i,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[c]=l})()})();
|
|
1
|
+
(()=>{var t={4144:function(t){t.exports=function(){"use strict";function t(){return t=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},t.apply(this,arguments)}var n="undefined"!=typeof window,e=n&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),o=n&&"IntersectionObserver"in window,r=n&&"classList"in document.createElement("p"),a=n&&window.devicePixelRatio>1,i={elements_selector:".lazy",container:e||n?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},c=function(n){return t({},i,n)},l=function(t,n){var e,o="LazyLoad::Initialized",r=new t(n);try{e=new CustomEvent(o,{detail:{instance:r}})}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent(o,!1,!1,{instance:r})}window.dispatchEvent(e)},u="src",s="srcset",f="sizes",d="poster",v="llOriginalAttrs",_="data",g="loading",b="loaded",p="applied",m="error",h="native",y="data-",E="ll-status",I=function(t,n){return t.getAttribute(y+n)},w=function(t){return I(t,E)},k=function(t,n){return function(t,n,e){var o="data-ll-status";null!==e?t.setAttribute(o,e):t.removeAttribute(o)}(t,0,n)},A=function(t){return k(t,null)},O=function(t){return null===w(t)},L=function(t){return w(t)===h},x=[g,b,p,m],C=function(t,n,e,o){t&&"function"==typeof t&&(void 0===o?void 0===e?t(n):t(n,e):t(n,e,o))},N=function(t,n){""!==n&&(r?t.classList.add(n):t.className+=(t.className?" ":"")+n)},M=function(t,n){""!==n&&(r?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\s+)"+n+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""))},j=function(t){return t.llTempImage},z=function(t,n){if(n){var e=n._observer;e&&e.unobserve(t)}},P=function(t,n){t&&(t.loadingCount+=n)},S=function(t,n){t&&(t.toLoadCount=n)},T=function(t){for(var n,e=[],o=0;n=t.children[o];o+=1)"SOURCE"===n.tagName&&e.push(n);return e},R=function(t,n){var e=t.parentNode;e&&"PICTURE"===e.tagName&&T(e).forEach(n)},G=function(t,n){T(t).forEach(n)},D=[u],H=[u,d],V=[u,s,f],F=[_],B=function(t){return!!t[v]},J=function(t){return t[v]},U=function(t){return delete t[v]},$=function(t,n){if(!B(t)){var e={};n.forEach((function(n){e[n]=t.getAttribute(n)})),t[v]=e}},q=function(t,n){if(B(t)){var e=J(t);n.forEach((function(n){!function(t,n,e){e?t.setAttribute(n,e):t.removeAttribute(n)}(t,n,e[n])}))}},K=function(t,n,e){N(t,n.class_applied),k(t,p),e&&(n.unobserve_completed&&z(t,n),C(n.callback_applied,t,e))},Q=function(t,n,e){N(t,n.class_loading),k(t,g),e&&(P(e,1),C(n.callback_loading,t,e))},W=function(t,n,e){e&&t.setAttribute(n,e)},X=function(t,n){W(t,f,I(t,n.data_sizes)),W(t,s,I(t,n.data_srcset)),W(t,u,I(t,n.data_src))},Y={IMG:function(t,n){R(t,(function(t){$(t,V),X(t,n)})),$(t,V),X(t,n)},IFRAME:function(t,n){$(t,D),W(t,u,I(t,n.data_src))},VIDEO:function(t,n){G(t,(function(t){$(t,D),W(t,u,I(t,n.data_src))})),$(t,H),W(t,d,I(t,n.data_poster)),W(t,u,I(t,n.data_src)),t.load()},OBJECT:function(t,n){$(t,F),W(t,_,I(t,n.data_src))}},Z=["IMG","IFRAME","VIDEO","OBJECT"],tt=function(t,n){!n||function(t){return t.loadingCount>0}(n)||function(t){return t.toLoadCount>0}(n)||C(t.callback_finish,n)},nt=function(t,n,e){t.addEventListener(n,e),t.llEvLisnrs[n]=e},et=function(t,n,e){t.removeEventListener(n,e)},ot=function(t){return!!t.llEvLisnrs},rt=function(t){if(ot(t)){var n=t.llEvLisnrs;for(var e in n){var o=n[e];et(t,e,o)}delete t.llEvLisnrs}},at=function(t,n,e){!function(t){delete t.llTempImage}(t),P(e,-1),function(t){t&&(t.toLoadCount-=1)}(e),M(t,n.class_loading),n.unobserve_completed&&z(t,e)},it=function(t,n,e){var o=j(t)||t;ot(o)||function(t,n,e){ot(t)||(t.llEvLisnrs={});var o="VIDEO"===t.tagName?"loadeddata":"load";nt(t,o,n),nt(t,"error",e)}(o,(function(r){!function(t,n,e,o){var r=L(n);at(n,e,o),N(n,e.class_loaded),k(n,b),C(e.callback_loaded,n,o),r||tt(e,o)}(0,t,n,e),rt(o)}),(function(r){!function(t,n,e,o){var r=L(n);at(n,e,o),N(n,e.class_error),k(n,m),C(e.callback_error,n,o),e.restore_on_error&&q(n,V),r||tt(e,o)}(0,t,n,e),rt(o)}))},ct=function(t,n,e){!function(t){return Z.indexOf(t.tagName)>-1}(t)?function(t,n,e){!function(t){t.llTempImage=document.createElement("IMG")}(t),it(t,n,e),function(t){B(t)||(t[v]={backgroundImage:t.style.backgroundImage})}(t),function(t,n,e){var o=I(t,n.data_bg),r=I(t,n.data_bg_hidpi),i=a&&r?r:o;i&&(t.style.backgroundImage='url("'.concat(i,'")'),j(t).setAttribute(u,i),Q(t,n,e))}(t,n,e),function(t,n,e){var o=I(t,n.data_bg_multi),r=I(t,n.data_bg_multi_hidpi),i=a&&r?r:o;i&&(t.style.backgroundImage=i,K(t,n,e))}(t,n,e),function(t,n,e){var o=I(t,n.data_bg_set);if(o){var r=o.split("|"),a=r.map((function(t){return"image-set(".concat(t,")")}));t.style.backgroundImage=a.join(),""===t.style.backgroundImage&&(a=r.map((function(t){return"-webkit-image-set(".concat(t,")")})),t.style.backgroundImage=a.join()),K(t,n,e)}}(t,n,e)}(t,n,e):function(t,n,e){it(t,n,e),function(t,n,e){var o=Y[t.tagName];o&&(o(t,n),Q(t,n,e))}(t,n,e)}(t,n,e)},lt=function(t){t.removeAttribute(u),t.removeAttribute(s),t.removeAttribute(f)},ut=function(t){R(t,(function(t){q(t,V)})),q(t,V)},st={IMG:ut,IFRAME:function(t){q(t,D)},VIDEO:function(t){G(t,(function(t){q(t,D)})),q(t,H),t.load()},OBJECT:function(t){q(t,F)}},ft=function(t,n){(function(t){var n=st[t.tagName];n?n(t):function(t){if(B(t)){var n=J(t);t.style.backgroundImage=n.backgroundImage}}(t)})(t),function(t,n){O(t)||L(t)||(M(t,n.class_entered),M(t,n.class_exited),M(t,n.class_applied),M(t,n.class_loading),M(t,n.class_loaded),M(t,n.class_error))}(t,n),A(t),U(t)},dt=["IMG","IFRAME","VIDEO"],vt=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},_t=function(t,n,e){t.forEach((function(t){return function(t){return t.isIntersecting||t.intersectionRatio>0}(t)?function(t,n,e,o){var r=function(t){return x.indexOf(w(t))>=0}(t);k(t,"entered"),N(t,e.class_entered),M(t,e.class_exited),function(t,n,e){n.unobserve_entered&&z(t,e)}(t,e,o),C(e.callback_enter,t,n,o),r||ct(t,e,o)}(t.target,t,n,e):function(t,n,e,o){O(t)||(N(t,e.class_exited),function(t,n,e,o){e.cancel_on_exit&&function(t){return w(t)===g}(t)&&"IMG"===t.tagName&&(rt(t),function(t){R(t,(function(t){lt(t)})),lt(t)}(t),ut(t),M(t,e.class_loading),P(o,-1),A(t),C(e.callback_cancel,t,n,o))}(t,n,e,o),C(e.callback_exit,t,n,o))}(t.target,t,n,e)}))},gt=function(t){return Array.prototype.slice.call(t)},bt=function(t){return t.container.querySelectorAll(t.elements_selector)},pt=function(t){return function(t){return w(t)===m}(t)},mt=function(t,n){return function(t){return gt(t).filter(O)}(t||bt(n))},ht=function(t,e){var r=c(t);this._settings=r,this.loadingCount=0,function(t,n){o&&!vt(t)&&(n._observer=new IntersectionObserver((function(e){_t(e,t,n)}),function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}}(t)))}(r,this),function(t,e){n&&(e._onlineHandler=function(){!function(t,n){var e;(e=bt(t),gt(e).filter(pt)).forEach((function(n){M(n,t.class_error),A(n)})),n.update()}(t,e)},window.addEventListener("online",e._onlineHandler))}(r,this),this.update(e)};return ht.prototype={update:function(t){var n,r,a=this._settings,i=mt(t,a);S(this,i.length),!e&&o?vt(a)?function(t,n,e){t.forEach((function(t){-1!==dt.indexOf(t.tagName)&&function(t,n,e){t.setAttribute("loading","lazy"),it(t,n,e),function(t,n){var e=Y[t.tagName];e&&e(t,n)}(t,n),k(t,h)}(t,n,e)})),S(e,0)}(i,a,this):(r=i,function(t){t.disconnect()}(n=this._observer),function(t,n){n.forEach((function(n){t.observe(n)}))}(n,r)):this.loadAll(i)},destroy:function(){this._observer&&this._observer.disconnect(),n&&window.removeEventListener("online",this._onlineHandler),bt(this._settings).forEach((function(t){U(t)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var n=this,e=this._settings;mt(t,e).forEach((function(t){z(t,n),ct(t,e,n)}))},restoreAll:function(){var t=this._settings;bt(t).forEach((function(n){ft(n,t)}))}},ht.load=function(t,n){var e=c(n);ct(t,e)},ht.resetStatus=function(t){A(t)},n&&function(t,n){if(n)if(n.length)for(var e,o=0;e=n[o];o+=1)l(t,e);else l(t,n)}(ht,window.lazyLoadOptions),ht}()}},n={};function e(o){var r=n[o];if(void 0!==r)return r.exports;var a=n[o]={exports:{}};return t[o].call(a.exports,a,a.exports,e),a.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),(()=>{"use strict";var t=e(4144),n=e.n(t);function o(t){return o="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},o(t)}function r(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function a(t){var n=function(t,n){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==o(n)?n:n+""}var i,c,l,u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),e=Object.assign({elements_selector:"[data-hc-src], [data-hc-bg], [data-hc-bg-hidpi], [data-hc-srcset]",data_src:"hc-src",data_bg:"hc-bg",data_bg_hidpi:"hc-bg-hidpi",data_srcset:"hc-srcset"},e),this.lazyLoadInstance=new(n())(e)}return e=t,a=[{key:"getInstance",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.instance||(t.instance=new t(n)),t.instance.lazyLoadInstance}},{key:"update",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getInstance(n);e&&"function"==typeof e.update&&e.update()}},{key:"loadAll",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getInstance(n);e&&"function"==typeof e.loadAll&&e.loadAll()}}],(o=null)&&r(e.prototype,o),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o,a}();i=u,l=void 0,(c=a(c="instance"))in i?Object.defineProperty(i,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[c]=l})()})();
|
|
@@ -186,6 +186,7 @@ $h1-font-size-small--rem: var(--iris--h1--font-size--small--rem);
|
|
|
186
186
|
$h1-color: var(--iris--h1--color);
|
|
187
187
|
$h1-text-align: var(--iris--h1--text-align);
|
|
188
188
|
$h1-text-transform: var(--iris--h1--text-transform);
|
|
189
|
+
$h1-font-style: var(--iris--h1--font-style, normal);
|
|
189
190
|
|
|
190
191
|
$h2-font-family: var(--iris--h2--font-family);
|
|
191
192
|
$h2-font-weight: var(--iris--h2--font-weight, 400);
|
|
@@ -196,6 +197,7 @@ $h2-font-size-small--rem: var(--iris--h2--font-size--small--rem);
|
|
|
196
197
|
$h2-color: var(--iris--h2--color);
|
|
197
198
|
$h2-text-align: var(--iris--h2--text-align);
|
|
198
199
|
$h2-text-transform: var(--iris--h2--text-transform);
|
|
200
|
+
$h2-font-style: var(--iris--h2--font-style, normal);
|
|
199
201
|
|
|
200
202
|
$h3-font-family: var(--iris--h3--font-family);
|
|
201
203
|
$h3-font-weight: var(--iris--h3--font-weight, 400);
|
|
@@ -208,6 +210,7 @@ $h3-font-size-small--rem: var(--iris--h3--font-size--small--rem);
|
|
|
208
210
|
$h3-color: var(--iris--h3--color);
|
|
209
211
|
$h3-text-align: var(--iris--h3--text-align);
|
|
210
212
|
$h3-text-transform: var(--iris--h3--text-transform);
|
|
213
|
+
$h3-font-style: var(--iris--h3--font-style, normal);
|
|
211
214
|
|
|
212
215
|
$h4-font-family: var(--iris--h4--font-family);
|
|
213
216
|
$h4-font-weight: var(--iris--h4--font-weight, 400);
|
|
@@ -220,6 +223,7 @@ $h4-font-size-small--rem: var(--iris--h4--font-size--small--rem);
|
|
|
220
223
|
$h4-color: var(--iris--h4--color);
|
|
221
224
|
$h4-text-align: var(--iris--h4--text-align);
|
|
222
225
|
$h4-text-transform: var(--iris--h4--text-transform);
|
|
226
|
+
$h4-font-style: var(--iris--h4--font-style, normal);
|
|
223
227
|
|
|
224
228
|
$h5-font-family: var(--iris--h5--font-family);
|
|
225
229
|
$h5-font-weight: var(--iris--h5--font-weight, 400);
|
|
@@ -232,6 +236,7 @@ $h5-font-size-small--rem: var(--iris--h5--font-size--small--rem);
|
|
|
232
236
|
$h5-color: var(--iris--h5--color);
|
|
233
237
|
$h5-text-align: var(--iris--h5--text-align);
|
|
234
238
|
$h5-text-transform: var(--iris--h5--text-transform);
|
|
239
|
+
$h5-font-style: var(--iris--h5--font-style, normal);
|
|
235
240
|
|
|
236
241
|
$h6-font-family: var(--iris--h6--font-family);
|
|
237
242
|
$h6-font-weight: var(--iris--h6--font-weight, 400);
|
|
@@ -244,6 +249,7 @@ $h6-font-size-small--rem: var(--iris--h6--font-size--small--rem);
|
|
|
244
249
|
$h6-color: var(--iris--h6--color);
|
|
245
250
|
$h6-text-align: var(--iris--h6--text-align);
|
|
246
251
|
$h6-text-transform: var(--iris--h6--text-transform);
|
|
252
|
+
$h6-font-style: var(--iris--h6--font-style, normal);
|
|
247
253
|
|
|
248
254
|
|
|
249
255
|
//Over-title
|
|
@@ -258,7 +264,7 @@ $over-title-font-size-small--rem: var(--iris--over-title--font-size--small--rem,
|
|
|
258
264
|
$over-title-color: var(--iris--over-title--color, $color);
|
|
259
265
|
$over-title-text-align: var(--iris--over-title--text-align, left);
|
|
260
266
|
$over-title-text-transform: var(--iris--over-title--text-transform, none);
|
|
261
|
-
|
|
267
|
+
$over-title-font-style: var(--iris--over-title--font-style, normal);
|
|
262
268
|
|
|
263
269
|
// Appearance
|
|
264
270
|
$appearance-color: var(--iris--appearance--color, var(--iris--global--color));
|