@everymatrix/general-footer-template 1.77.31 → 1.77.32
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/dist/cjs/custom-clock.cjs.entry.js +1 -1
- package/dist/cjs/custom-content-section.cjs.entry.js +1 -1
- package/dist/cjs/footer-logo.cjs.entry.js +1 -1
- package/dist/cjs/general-footer-template.cjs.entry.js +2 -2
- package/dist/cjs/general-footer-template.cjs.js +2 -2
- package/dist/cjs/image-list.cjs.entry.js +1 -1
- package/dist/cjs/{index-13599735.js → index-e4512e24.js} +69 -2
- package/dist/cjs/link-section-list.cjs.entry.js +26 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/ui-image_2.cjs.entry.js +1 -1
- package/dist/cjs/{utils-9b9a9d42.js → utils-614b68e1.js} +10 -2
- package/dist/collection/components/link-section-list/link-section-list.js +25 -1
- package/dist/collection/utils/utils.js +10 -2
- package/dist/esm/custom-clock.entry.js +1 -1
- package/dist/esm/custom-content-section.entry.js +1 -1
- package/dist/esm/footer-logo.entry.js +1 -1
- package/dist/esm/general-footer-template.entry.js +2 -2
- package/dist/esm/general-footer-template.js +3 -3
- package/dist/esm/image-list.entry.js +1 -1
- package/dist/esm/{index-4b819858.js → index-2051e205.js} +69 -2
- package/dist/esm/link-section-list.entry.js +26 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ui-image_2.entry.js +1 -1
- package/dist/esm/{utils-904e2462.js → utils-c4781120.js} +10 -2
- package/dist/general-footer-template/custom-clock.entry.js +1 -1
- package/dist/general-footer-template/custom-content-section.entry.js +1 -1
- package/dist/general-footer-template/footer-logo.entry.js +1 -1
- package/dist/general-footer-template/general-footer-template.entry.js +1 -1
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/image-list.entry.js +1 -1
- package/dist/general-footer-template/index-2051e205.js +2 -0
- package/dist/general-footer-template/link-section-list.entry.js +1 -1
- package/dist/general-footer-template/ui-image_2.entry.js +1 -1
- package/dist/general-footer-template/utils-c4781120.js +1 -0
- package/dist/types/components/link-section-list/link-section-list.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/general-footer-template/index-4b819858.js +0 -2
- package/dist/general-footer-template/utils-904e2462.js +0 -1
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { i as isMobile } from './utils-
|
|
1
|
+
import { r as registerInstance, h } from './index-2051e205.js';
|
|
2
|
+
import { i as isMobile } from './utils-c4781120.js';
|
|
3
|
+
|
|
4
|
+
const debounce = (func, delay) => {
|
|
5
|
+
return function(...args) {
|
|
6
|
+
clearTimeout(this.debounceTimer);
|
|
7
|
+
this.debounceTimer = setTimeout(() => {
|
|
8
|
+
func.apply(this, args);
|
|
9
|
+
}, delay);
|
|
10
|
+
};
|
|
11
|
+
};
|
|
3
12
|
|
|
4
13
|
const linkSectionListCss = ":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.SkeletonWrapper {\n width: 25px;\n height: 25px;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListDropdownHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n background: var(--emw--color-primary, #184026);\n color: var(--emw--color-typography, #FFFFFF);\n text-align: left;\n padding: 10px;\n border: none;\n border-radius: var(--emw--button-border-radius, 4px);\n margin-bottom: 3px;\n cursor: pointer;\n font-size: 1rem;\n}\n.LinkSectionListDropdownHeader:hover {\n color: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader:hover svg {\n fill: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader.IsOpen {\n color: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader.IsOpen svg {\n fill: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader .TriangleActive {\n transform: rotate(90deg);\n -webkit-transform: rotate(90deg);\n}\n.LinkSectionListDropdownHeader svg {\n fill: var(--emw--color-typography, #FFFFFF);\n margin-left: 8px;\n width: 16px;\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n}\n.LinkSectionListDropdownList {\n list-style: none;\n display: none;\n}\n.LinkSectionListDropdownList.open {\n display: flex;\n margin: 5px 0;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n position: relative;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n gap: 5px;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";
|
|
5
14
|
const LinkSectionListStyle0 = linkSectionListCss;
|
|
@@ -7,7 +16,7 @@ const LinkSectionListStyle0 = linkSectionListCss;
|
|
|
7
16
|
const LinkSectionList = class {
|
|
8
17
|
constructor(hostRef) {
|
|
9
18
|
registerInstance(this, hostRef);
|
|
10
|
-
this.isMobile =
|
|
19
|
+
this.isMobile = false;
|
|
11
20
|
this.repeaterContent = undefined;
|
|
12
21
|
this.baseUrl = undefined;
|
|
13
22
|
this.language = undefined;
|
|
@@ -16,6 +25,20 @@ const LinkSectionList = class {
|
|
|
16
25
|
this.accordionLinks = false;
|
|
17
26
|
this.openCategory = null;
|
|
18
27
|
}
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
this.debouncedUpdateIsMobile = debounce(() => {
|
|
30
|
+
this.updateIsMobile();
|
|
31
|
+
}, 200);
|
|
32
|
+
this.updateIsMobile();
|
|
33
|
+
}
|
|
34
|
+
onResize() {
|
|
35
|
+
this.debouncedUpdateIsMobile();
|
|
36
|
+
}
|
|
37
|
+
updateIsMobile() {
|
|
38
|
+
const uaMobile = isMobile();
|
|
39
|
+
const widthMobile = window.innerWidth < 768;
|
|
40
|
+
this.isMobile = uaMobile && widthMobile;
|
|
41
|
+
}
|
|
19
42
|
navigateLink(link) {
|
|
20
43
|
window.postMessage({ type: this.postMessageEvent, path: link.linkUrl, url: link.linkUrl, target: link.target, externalLink: link.externalLink }, window.location.href);
|
|
21
44
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-2051e205.js';
|
|
2
|
+
export { s as setNonce } from './index-2051e205.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"accordionLinks":[516,"accordion-links"],"openCategory":[32]}]]],["custom-clock",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["footer-logo",[[2,"footer-logo",{"endpoint":[513],"language":[513],"logoContent":[32]},null,{"endpoint":["onConfigChange"],"language":["onConfigChange"]}]]],["general-footer-template",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"customCss":[513,"custom-css"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"mbSource":[513,"mb-source"],"accordionLinks":[516,"accordion-links"],"hasErrors":[32],"footerContent":[32]},null,{"language":["watchLanguage"]}]]],["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"accordionLinks":[516,"accordion-links"],"openCategory":[32]},[[9,"resize","onResize"]]]]],["custom-clock",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["footer-logo",[[2,"footer-logo",{"endpoint":[513],"language":[513],"logoContent":[32]},null,{"endpoint":["onConfigChange"],"language":["onConfigChange"]}]]],["general-footer-template",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"customCss":[513,"custom-css"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"mbSource":[513,"mb-source"],"accordionLinks":[516,"accordion-links"],"hasErrors":[32],"footerContent":[32]},null,{"language":["watchLanguage"]}]]],["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-2051e205.js';
|
|
2
2
|
|
|
3
3
|
const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";
|
|
4
4
|
const UiImageStyle0 = uiImageCss;
|
|
@@ -5,9 +5,17 @@ const isMobile = () => {
|
|
|
5
5
|
let userAgent = window.navigator.userAgent;
|
|
6
6
|
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
7
7
|
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
8
|
-
userAgent.toLowerCase().match(/iphone|
|
|
8
|
+
userAgent.toLowerCase().match(/iphone|ipod/i) ||
|
|
9
9
|
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
10
10
|
};
|
|
11
|
+
const isIpad = () => {
|
|
12
|
+
let userAgent = window.navigator.userAgent;
|
|
13
|
+
// Traditional iPad user agent
|
|
14
|
+
if (userAgent.toLowerCase().includes('ipad')) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
return navigator.platform === 'MacIntel' && navigator.maxTouchPoints && navigator.maxTouchPoints > 2;
|
|
18
|
+
};
|
|
11
19
|
const getDevice = () => {
|
|
12
20
|
let userAgent = window.navigator.userAgent;
|
|
13
21
|
if (userAgent.toLowerCase().match(/android/i)) {
|
|
@@ -16,7 +24,7 @@ const getDevice = () => {
|
|
|
16
24
|
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
17
25
|
return 'iPhone';
|
|
18
26
|
}
|
|
19
|
-
if (userAgent.toLowerCase().match(/
|
|
27
|
+
if (userAgent.toLowerCase().match(/ipod/i) || isIpad()) {
|
|
20
28
|
return 'iPad';
|
|
21
29
|
}
|
|
22
30
|
return 'PC';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as r}from"./index-4b819858.js";import{c as n}from"./_commonjsHelpers-1c8beb5f.js";const e={en:{currentTime:"Current Time"},hu:{currentTime:"Jelenlegi idő"},ro:{currentTime:"Ora curentă"},fr:{currentTime:"Heure actuelle"},ar:{currentTime:"الوقت الحالي"},hr:{currentTime:"Trenutno vrijeme"}},i=t=>new Promise((r=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((r=>{e[r]||(e[r]={});for(let n in t[r])e[r][n]=t[r][n]})),r(!0)}))}));var s={exports:{}};s.exports=function(){var t=6e4,r=36e5,n="millisecond",e="second",i="minute",s="hour",u="day",a="week",c="month",h="quarter",o="year",f="date",v="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],n=t%100;return"["+t+(r[(n-20)%10]||r[n]||r[0])+"]"}},M=function(t,r,n){var e=String(t);return!e||e.length>=r?t:""+Array(r+1-e.length).join(n)+t},D={s:M,z:function(t){var r=-t.utcOffset(),n=Math.abs(r),e=Math.floor(n/60),i=n%60;return(r<=0?"+":"-")+M(e,2,"0")+":"+M(i,2,"0")},m:function t(r,n){if(r.date()<n.date())return-t(n,r);var e=12*(n.year()-r.year())+(n.month()-r.month()),i=r.clone().add(e,c),s=n-i<0,u=r.clone().add(e+(s?-1:1),c);return+(-(e+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:o,w:a,d:u,D:f,h:s,m:i,s:e,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",S={};S[y]=m;var b="$isDayjsObject",g=function(t){return t instanceof p||!(!t||!t[b])},w=function t(r,n,e){var i;if(!r)return y;if("string"==typeof r){var s=r.toLowerCase();S[s]&&(i=s),n&&(S[s]=n,i=s);var u=r.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=r.name;S[a]=r,i=a}return!e&&i&&(y=i),i||!e&&y},Y=function(t,r){if(g(t))return t.clone();var n="object"==typeof r?r:{};return n.date=t,n.args=arguments,new p(n)},k=D;k.l=w,k.i=g,k.w=function(t,r){return Y(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var p=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var M=m.prototype;return M.parse=function(t){this.$d=function(t){var r=t.date,n=t.utc;if(null===r)return new Date(NaN);if(k.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var e=r.match(d);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return n?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(r)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return k},M.isValid=function(){return!(this.$d.toString()===v)},M.isSame=function(t,r){var n=Y(t);return this.startOf(r)<=n&&n<=this.endOf(r)},M.isAfter=function(t,r){return Y(t)<this.startOf(r)},M.isBefore=function(t,r){return this.endOf(r)<Y(t)},M.$g=function(t,r,n){return k.u(t)?this[r]:this.set(n,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,r){var n=this,h=!!k.u(r)||r,v=k.p(t),d=function(t,r){var e=k.w(n.$u?Date.UTC(n.$y,r,t):new Date(n.$y,r,t),n);return h?e:e.endOf(u)},l=function(t,r){return k.w(n.toDate()[t].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(r)),n)},m=this.$W,M=this.$M,D=this.$D,y="set"+(this.$u?"UTC":"");switch(v){case o:return h?d(1,0):d(31,11);case c:return h?d(1,M):d(0,M+1);case a:var S=this.$locale().weekStart||0,b=(m<S?m+7:m)-S;return d(h?D-b:D+(6-b),M);case u:case f:return l(y+"Hours",0);case s:return l(y+"Minutes",1);case i:return l(y+"Seconds",2);case e:return l(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,r){var a,h=k.p(t),v="set"+(this.$u?"UTC":""),d=(a={},a[u]=v+"Date",a[f]=v+"Date",a[c]=v+"Month",a[o]=v+"FullYear",a[s]=v+"Hours",a[i]=v+"Minutes",a[e]=v+"Seconds",a[n]=v+"Milliseconds",a)[h],l=h===u?this.$D+(r-this.$W):r;if(h===c||h===o){var m=this.clone().set(f,1);m.$d[d](l),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](l);return this.init(),this},M.set=function(t,r){return this.clone().$set(t,r)},M.get=function(t){return this[k.p(t)]()},M.add=function(n,h){var f,v=this;n=Number(n);var d=k.p(h),l=function(t){var r=Y(v);return k.w(r.date(r.date()+Math.round(t*n)),v)};if(d===c)return this.set(c,this.$M+n);if(d===o)return this.set(o,this.$y+n);if(d===u)return l(1);if(d===a)return l(7);var m=(f={},f[i]=t,f[s]=r,f[e]=1e3,f)[d]||1,M=this.$d.getTime()+n*m;return k.w(M,this)},M.subtract=function(t,r){return this.add(-1*t,r)},M.format=function(t){var r=this,n=this.$locale();if(!this.isValid())return n.invalidDate||v;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),s=this.$H,u=this.$m,a=this.$M,c=n.weekdays,h=n.months,o=function(t,n,i,s){return t&&(t[n]||t(r,e))||i[n].slice(0,s)},f=function(t){return k.s(s%12||12,t,"0")},d=n.meridiem||function(t,r,n){var e=t<12?"AM":"PM";return n?e.toLowerCase():e};return e.replace(l,(function(t,e){return e||function(t){switch(t){case"YY":return String(r.$y).slice(-2);case"YYYY":return k.s(r.$y,4,"0");case"M":return a+1;case"MM":return k.s(a+1,2,"0");case"MMM":return o(n.monthsShort,a,h,3);case"MMMM":return o(h,a);case"D":return r.$D;case"DD":return k.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return o(n.weekdaysMin,r.$W,c,2);case"ddd":return o(n.weekdaysShort,r.$W,c,3);case"dddd":return c[r.$W];case"H":return String(s);case"HH":return k.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(s,u,!0);case"A":return d(s,u,!1);case"m":return String(u);case"mm":return k.s(u,2,"0");case"s":return String(r.$s);case"ss":return k.s(r.$s,2,"0");case"SSS":return k.s(r.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,f,v){var d,l=this,m=k.p(f),M=Y(n),D=(M.utcOffset()-this.utcOffset())*t,y=this-M,S=function(){return k.m(l,M)};switch(m){case o:d=S()/12;break;case c:d=S();break;case h:d=S()/3;break;case a:d=(y-D)/6048e5;break;case u:d=(y-D)/864e5;break;case s:d=y/r;break;case i:d=y/t;break;case e:d=y/1e3;break;default:d=y}return v?d:k.a(d)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return S[this.$L]},M.locale=function(t,r){if(!t)return this.$L;var n=this.clone(),e=w(t,r,!0);return e&&(n.$L=e),n},M.clone=function(){return k.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},m}(),_=p.prototype;return Y.prototype=_,[["$ms",n],["$s",e],["$m",i],["$H",s],["$W",u],["$M",c],["$y",o],["$D",f]].forEach((function(t){_[t[1]]=function(r){return this.$g(r,t[0],t[1])}})),Y.extend=function(t,r){return t.$i||(t(r,p,Y),t.$i=!0),Y},Y.locale=w,Y.isDayjs=g,Y.unix=function(t){return Y(1e3*t)},Y.en=S[y],Y.Ls=S,Y.p={},Y}();const u=s.exports;var a,c,h,o={exports:{}};o.exports=(a="minute",c=/[+-]\d\d(?::?\d\d)?/g,h=/([+-]|\d\d)/g,function(t,r,n){var e=r.prototype;n.utc=function(t){return new r({date:t,utc:!0,args:arguments})},e.utc=function(t){var r=n(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),a):r},e.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=e.parse;e.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var s=e.init;e.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var u=e.utcOffset;e.utcOffset=function(t,r){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var r=t.match(c);if(!r)return null;var n=(""+r[0]).match(h)||["-",0,0],e=60*+n[1]+ +n[2];return 0===e?0:"+"===n[0]?e:-e}(t),null===t))return this;var e=Math.abs(t)<=16?60*t:t,i=this;if(r)return i.$offset=e,i.$u=0===t,i;if(0!==t){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(e+s,a)).$offset=e,i.$x.$localOffset=s}else i=this.utc();return i};var o=e.format;e.format=function(t){return o.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},e.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},e.isUTC=function(){return!!this.$u},e.toISOString=function(){return this.toDate().toISOString()},e.toString=function(){return this.toDate().toUTCString()};var f=e.toDate;e.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var v=e.diff;e.diff=function(t,r,e){if(t&&this.$u===t.$u)return v.call(this,t,r,e);var i=this.local(),s=n(t).local();return v.call(i,s,r,e)}});const f=o.exports;var v={exports:{}};v.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,e,i){var s,u=function(t,n,e){void 0===e&&(e={});var i=new Date(t),s=function(t,n){void 0===n&&(n={});var e=n.timeZoneName||"short",i=t+"|"+e,s=r[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:e}),r[i]=s),s}(n,e);return s.formatToParts(i)},a=function(r,n){for(var e=u(r,n),s=[],a=0;a<e.length;a+=1){var c=e[a],h=t[c.type];h>=0&&(s[h]=parseInt(c.value,10))}var o=s[3],f=+r;return(i.utc(s[0]+"-"+s[1]+"-"+s[2]+" "+(24===o?0:o)+":"+s[4]+":"+s[5]+":000").valueOf()-(f-=f%1e3))/6e4},c=e.prototype;c.tz=function(t,r){void 0===t&&(t=s);var n=this.utcOffset(),e=this.toDate(),u=e.toLocaleString("en-US",{timeZone:t}),a=Math.round((e-new Date(u))/1e3/60),c=i(u,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(e.getTimezoneOffset()/15)-a,!0);if(r){var h=c.utcOffset();c=c.add(n-h,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var r=this.$x.$timezone||i.tz.guess(),n=u(this.valueOf(),r,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var h=c.startOf;c.startOf=function(t,r){if(!this.$x||!this.$x.$timezone)return h.call(this,t,r);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(n,t,r).tz(this.$x.$timezone,!0)},i.tz=function(t,r,n){var e=n&&r,u=n||r||s,c=a(+i(),u);if("string"!=typeof t)return i(t).tz(u);var h=function(t,r,n){var e=t-60*r*1e3,i=a(e,n);if(r===i)return[e,r];var s=a(e-=60*(i-r)*1e3,n);return i===s?[e,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,e).valueOf(),c,u),o=h[1],f=i(h[0]).utcOffset(o);return f.$x.$timezone=u,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}();const d=v.exports,l=class{constructor(r){t(this,r),this.startClock=()=>{this.intervalId=setInterval((()=>{this.timeZone.length>0?(u.extend(f),u.extend(d),this.timeString=u().tz(this.timeZone).format(this.clockFormat)):this.timeString=u().format(this.clockFormat)}),1e3)},this.clockFormat="HH:mm:ss",this.timeZone="",this.translationUrl="",this.language="en",this.timeString=""}handleNewTranslations(){i(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await i(this.translationUrl)}componentDidLoad(){this.startClock()}disconnectedCallback(){clearInterval(this.intervalId)}render(){return r("div",{key:"a5f785406272352dfe1797105d524c042ff03b41",class:"CustomClockContainer"},r("p",{key:"8e9ebfae2f06a4297af2f39210e8687bc6c141b4"},e[void 0!==(t=this.language)&&t in e?t:"en"].currentTime,": ",this.timeString));var t}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};l.style=".CustomClockContainer.sc-custom-clock.sc-custom-clock{display:flex;justify-content:center;align-items:center}.CustomClockContainer.sc-custom-clock.sc-custom-clock p.sc-custom-clock{font-size:16px}";export{l as custom_clock}
|
|
1
|
+
import{r as t,h as r}from"./index-2051e205.js";import{c as n}from"./_commonjsHelpers-1c8beb5f.js";const e={en:{currentTime:"Current Time"},hu:{currentTime:"Jelenlegi idő"},ro:{currentTime:"Ora curentă"},fr:{currentTime:"Heure actuelle"},ar:{currentTime:"الوقت الحالي"},hr:{currentTime:"Trenutno vrijeme"}},i=t=>new Promise((r=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((r=>{e[r]||(e[r]={});for(let n in t[r])e[r][n]=t[r][n]})),r(!0)}))}));var s={exports:{}};s.exports=function(){var t=6e4,r=36e5,n="millisecond",e="second",i="minute",s="hour",u="day",a="week",c="month",h="quarter",o="year",f="date",v="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],n=t%100;return"["+t+(r[(n-20)%10]||r[n]||r[0])+"]"}},M=function(t,r,n){var e=String(t);return!e||e.length>=r?t:""+Array(r+1-e.length).join(n)+t},D={s:M,z:function(t){var r=-t.utcOffset(),n=Math.abs(r),e=Math.floor(n/60),i=n%60;return(r<=0?"+":"-")+M(e,2,"0")+":"+M(i,2,"0")},m:function t(r,n){if(r.date()<n.date())return-t(n,r);var e=12*(n.year()-r.year())+(n.month()-r.month()),i=r.clone().add(e,c),s=n-i<0,u=r.clone().add(e+(s?-1:1),c);return+(-(e+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:o,w:a,d:u,D:f,h:s,m:i,s:e,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",S={};S[y]=m;var b="$isDayjsObject",g=function(t){return t instanceof p||!(!t||!t[b])},w=function t(r,n,e){var i;if(!r)return y;if("string"==typeof r){var s=r.toLowerCase();S[s]&&(i=s),n&&(S[s]=n,i=s);var u=r.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=r.name;S[a]=r,i=a}return!e&&i&&(y=i),i||!e&&y},Y=function(t,r){if(g(t))return t.clone();var n="object"==typeof r?r:{};return n.date=t,n.args=arguments,new p(n)},k=D;k.l=w,k.i=g,k.w=function(t,r){return Y(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var p=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var M=m.prototype;return M.parse=function(t){this.$d=function(t){var r=t.date,n=t.utc;if(null===r)return new Date(NaN);if(k.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var e=r.match(d);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return n?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(r)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return k},M.isValid=function(){return!(this.$d.toString()===v)},M.isSame=function(t,r){var n=Y(t);return this.startOf(r)<=n&&n<=this.endOf(r)},M.isAfter=function(t,r){return Y(t)<this.startOf(r)},M.isBefore=function(t,r){return this.endOf(r)<Y(t)},M.$g=function(t,r,n){return k.u(t)?this[r]:this.set(n,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,r){var n=this,h=!!k.u(r)||r,v=k.p(t),d=function(t,r){var e=k.w(n.$u?Date.UTC(n.$y,r,t):new Date(n.$y,r,t),n);return h?e:e.endOf(u)},l=function(t,r){return k.w(n.toDate()[t].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(r)),n)},m=this.$W,M=this.$M,D=this.$D,y="set"+(this.$u?"UTC":"");switch(v){case o:return h?d(1,0):d(31,11);case c:return h?d(1,M):d(0,M+1);case a:var S=this.$locale().weekStart||0,b=(m<S?m+7:m)-S;return d(h?D-b:D+(6-b),M);case u:case f:return l(y+"Hours",0);case s:return l(y+"Minutes",1);case i:return l(y+"Seconds",2);case e:return l(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,r){var a,h=k.p(t),v="set"+(this.$u?"UTC":""),d=(a={},a[u]=v+"Date",a[f]=v+"Date",a[c]=v+"Month",a[o]=v+"FullYear",a[s]=v+"Hours",a[i]=v+"Minutes",a[e]=v+"Seconds",a[n]=v+"Milliseconds",a)[h],l=h===u?this.$D+(r-this.$W):r;if(h===c||h===o){var m=this.clone().set(f,1);m.$d[d](l),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](l);return this.init(),this},M.set=function(t,r){return this.clone().$set(t,r)},M.get=function(t){return this[k.p(t)]()},M.add=function(n,h){var f,v=this;n=Number(n);var d=k.p(h),l=function(t){var r=Y(v);return k.w(r.date(r.date()+Math.round(t*n)),v)};if(d===c)return this.set(c,this.$M+n);if(d===o)return this.set(o,this.$y+n);if(d===u)return l(1);if(d===a)return l(7);var m=(f={},f[i]=t,f[s]=r,f[e]=1e3,f)[d]||1,M=this.$d.getTime()+n*m;return k.w(M,this)},M.subtract=function(t,r){return this.add(-1*t,r)},M.format=function(t){var r=this,n=this.$locale();if(!this.isValid())return n.invalidDate||v;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),s=this.$H,u=this.$m,a=this.$M,c=n.weekdays,h=n.months,o=function(t,n,i,s){return t&&(t[n]||t(r,e))||i[n].slice(0,s)},f=function(t){return k.s(s%12||12,t,"0")},d=n.meridiem||function(t,r,n){var e=t<12?"AM":"PM";return n?e.toLowerCase():e};return e.replace(l,(function(t,e){return e||function(t){switch(t){case"YY":return String(r.$y).slice(-2);case"YYYY":return k.s(r.$y,4,"0");case"M":return a+1;case"MM":return k.s(a+1,2,"0");case"MMM":return o(n.monthsShort,a,h,3);case"MMMM":return o(h,a);case"D":return r.$D;case"DD":return k.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return o(n.weekdaysMin,r.$W,c,2);case"ddd":return o(n.weekdaysShort,r.$W,c,3);case"dddd":return c[r.$W];case"H":return String(s);case"HH":return k.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return d(s,u,!0);case"A":return d(s,u,!1);case"m":return String(u);case"mm":return k.s(u,2,"0");case"s":return String(r.$s);case"ss":return k.s(r.$s,2,"0");case"SSS":return k.s(r.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,f,v){var d,l=this,m=k.p(f),M=Y(n),D=(M.utcOffset()-this.utcOffset())*t,y=this-M,S=function(){return k.m(l,M)};switch(m){case o:d=S()/12;break;case c:d=S();break;case h:d=S()/3;break;case a:d=(y-D)/6048e5;break;case u:d=(y-D)/864e5;break;case s:d=y/r;break;case i:d=y/t;break;case e:d=y/1e3;break;default:d=y}return v?d:k.a(d)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return S[this.$L]},M.locale=function(t,r){if(!t)return this.$L;var n=this.clone(),e=w(t,r,!0);return e&&(n.$L=e),n},M.clone=function(){return k.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},m}(),_=p.prototype;return Y.prototype=_,[["$ms",n],["$s",e],["$m",i],["$H",s],["$W",u],["$M",c],["$y",o],["$D",f]].forEach((function(t){_[t[1]]=function(r){return this.$g(r,t[0],t[1])}})),Y.extend=function(t,r){return t.$i||(t(r,p,Y),t.$i=!0),Y},Y.locale=w,Y.isDayjs=g,Y.unix=function(t){return Y(1e3*t)},Y.en=S[y],Y.Ls=S,Y.p={},Y}();const u=s.exports;var a,c,h,o={exports:{}};o.exports=(a="minute",c=/[+-]\d\d(?::?\d\d)?/g,h=/([+-]|\d\d)/g,function(t,r,n){var e=r.prototype;n.utc=function(t){return new r({date:t,utc:!0,args:arguments})},e.utc=function(t){var r=n(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),a):r},e.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=e.parse;e.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var s=e.init;e.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var u=e.utcOffset;e.utcOffset=function(t,r){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var r=t.match(c);if(!r)return null;var n=(""+r[0]).match(h)||["-",0,0],e=60*+n[1]+ +n[2];return 0===e?0:"+"===n[0]?e:-e}(t),null===t))return this;var e=Math.abs(t)<=16?60*t:t,i=this;if(r)return i.$offset=e,i.$u=0===t,i;if(0!==t){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(e+s,a)).$offset=e,i.$x.$localOffset=s}else i=this.utc();return i};var o=e.format;e.format=function(t){return o.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},e.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},e.isUTC=function(){return!!this.$u},e.toISOString=function(){return this.toDate().toISOString()},e.toString=function(){return this.toDate().toUTCString()};var f=e.toDate;e.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var v=e.diff;e.diff=function(t,r,e){if(t&&this.$u===t.$u)return v.call(this,t,r,e);var i=this.local(),s=n(t).local();return v.call(i,s,r,e)}});const f=o.exports;var v={exports:{}};v.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(n,e,i){var s,u=function(t,n,e){void 0===e&&(e={});var i=new Date(t),s=function(t,n){void 0===n&&(n={});var e=n.timeZoneName||"short",i=t+"|"+e,s=r[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:e}),r[i]=s),s}(n,e);return s.formatToParts(i)},a=function(r,n){for(var e=u(r,n),s=[],a=0;a<e.length;a+=1){var c=e[a],h=t[c.type];h>=0&&(s[h]=parseInt(c.value,10))}var o=s[3],f=+r;return(i.utc(s[0]+"-"+s[1]+"-"+s[2]+" "+(24===o?0:o)+":"+s[4]+":"+s[5]+":000").valueOf()-(f-=f%1e3))/6e4},c=e.prototype;c.tz=function(t,r){void 0===t&&(t=s);var n=this.utcOffset(),e=this.toDate(),u=e.toLocaleString("en-US",{timeZone:t}),a=Math.round((e-new Date(u))/1e3/60),c=i(u,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(e.getTimezoneOffset()/15)-a,!0);if(r){var h=c.utcOffset();c=c.add(n-h,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var r=this.$x.$timezone||i.tz.guess(),n=u(this.valueOf(),r,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var h=c.startOf;c.startOf=function(t,r){if(!this.$x||!this.$x.$timezone)return h.call(this,t,r);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(n,t,r).tz(this.$x.$timezone,!0)},i.tz=function(t,r,n){var e=n&&r,u=n||r||s,c=a(+i(),u);if("string"!=typeof t)return i(t).tz(u);var h=function(t,r,n){var e=t-60*r*1e3,i=a(e,n);if(r===i)return[e,r];var s=a(e-=60*(i-r)*1e3,n);return i===s?[e,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,e).valueOf(),c,u),o=h[1],f=i(h[0]).utcOffset(o);return f.$x.$timezone=u,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}();const d=v.exports,l=class{constructor(r){t(this,r),this.startClock=()=>{this.intervalId=setInterval((()=>{this.timeZone.length>0?(u.extend(f),u.extend(d),this.timeString=u().tz(this.timeZone).format(this.clockFormat)):this.timeString=u().format(this.clockFormat)}),1e3)},this.clockFormat="HH:mm:ss",this.timeZone="",this.translationUrl="",this.language="en",this.timeString=""}handleNewTranslations(){i(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await i(this.translationUrl)}componentDidLoad(){this.startClock()}disconnectedCallback(){clearInterval(this.intervalId)}render(){return r("div",{key:"a5f785406272352dfe1797105d524c042ff03b41",class:"CustomClockContainer"},r("p",{key:"8e9ebfae2f06a4297af2f39210e8687bc6c141b4"},e[void 0!==(t=this.language)&&t in e?t:"en"].currentTime,": ",this.timeString));var t}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};l.style=".CustomClockContainer.sc-custom-clock.sc-custom-clock{display:flex;justify-content:center;align-items:center}.CustomClockContainer.sc-custom-clock.sc-custom-clock p.sc-custom-clock{font-size:16px}";export{l as custom_clock}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-
|
|
1
|
+
import{r as t,h as e}from"./index-2051e205.js";import{c as n}from"./_commonjsHelpers-1c8beb5f.js";var o={exports:{}};
|
|
2
2
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */o.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object;let{freeze:r,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;r||(r=function(t){return t}),a||(a=function(t){return t}),s||(s=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});const u=k(Array.prototype.forEach),f=k(Array.prototype.pop),m=k(Array.prototype.push),p=k(String.prototype.toLowerCase),d=k(String.prototype.toString),h=k(String.prototype.match),g=k(String.prototype.replace),y=k(String.prototype.indexOf),b=k(String.prototype.trim),v=k(Object.prototype.hasOwnProperty),w=k(RegExp.prototype.test),x=(T=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(T,e)});var T;function k(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s(t,e,o)}}function A(t,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let r=o.length;for(;r--;){let e=o[r];if("string"==typeof e){const t=i(e);t!==e&&(n(o)||(o[r]=t),e=t)}t[e]=!0}return t}function S(t){for(let e=0;e<t.length;e++)v(t,e)||(t[e]=null);return t}function E(e){const n=l(null);for(const[o,i]of t(e))v(e,o)&&(n[o]=Array.isArray(i)?S(i):i&&"object"==typeof i&&i.constructor===Object?E(i):i);return n}function _(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=o(t)}return function(){return null}}const R=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),O=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),C=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=r(["#text"]),I=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),N=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=a(/<%[\w\W]*|[\w\W]*%>/gm),W=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),q=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:U,TMPLIT_EXPR:W,DATA_ATTR:B,ARIA_ATTR:H,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:X,DOCTYPE_NAME:G,CUSTOM_ELEMENT:$});const V=1,J=3,Q=7,Z=8,tt=9,et=function(){return"undefined"==typeof window?null:window};var nt=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const o=t=>e(t);if(o.version="3.1.6",o.removed=[],!n||!n.document||n.document.nodeType!==tt)return o.isSupported=!1,o;let{document:i}=n;const a=i,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:T,Node:k,Element:S,NodeFilter:j,NamedNodeMap:U=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:B,trustedTypes:H}=n,Y=S.prototype,X=_(Y,"cloneNode"),$=_(Y,"remove"),nt=_(Y,"nextSibling"),ot=_(Y,"childNodes"),it=_(Y,"parentNode");if("function"==typeof T){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let rt,at="";const{implementation:lt,createNodeIterator:st,createDocumentFragment:ct,getElementsByTagName:ut}=i,{importNode:ft}=a;let mt={};o.isSupported="function"==typeof t&&"function"==typeof it&<&&void 0!==lt.createHTMLDocument;const{MUSTACHE_EXPR:pt,ERB_EXPR:dt,TMPLIT_EXPR:ht,DATA_ATTR:gt,ARIA_ATTR:yt,IS_SCRIPT_OR_DATA:bt,ATTR_WHITESPACE:vt,CUSTOM_ELEMENT:wt}=K;let{IS_ALLOWED_URI:xt}=K,Tt=null;const kt=A({},[...R,...O,...L,...C,...M]);let At=null;const St=A({},[...I,...N,...P,...F]);let Et=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_t=null,Rt=null,Ot=!0,Lt=!0,Dt=!1,Ct=!0,zt=!1,Mt=!0,It=!1,Nt=!1,Pt=!1,Ft=!1,jt=!1,Ut=!1,Wt=!0,Bt=!1,Ht=!0,qt=!1,Yt={},Xt=null;const Gt=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $t=null;const Kt=A({},["audio","video","img","source","image","track"]);let Vt=null;const Jt=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,ne=!1,oe=null;const ie=A({},[Qt,Zt,te],d);let re=null;const ae=["application/xhtml+xml","text/html"];let le=null,se=null;const ce=i.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},fe=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"==typeof t||(t={}),t=E(t),re=-1===ae.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,le="application/xhtml+xml"===re?d:p,Tt=v(t,"ALLOWED_TAGS")?A({},t.ALLOWED_TAGS,le):kt,At=v(t,"ALLOWED_ATTR")?A({},t.ALLOWED_ATTR,le):St,oe=v(t,"ALLOWED_NAMESPACES")?A({},t.ALLOWED_NAMESPACES,d):ie,Vt=v(t,"ADD_URI_SAFE_ATTR")?A(E(Jt),t.ADD_URI_SAFE_ATTR,le):Jt,$t=v(t,"ADD_DATA_URI_TAGS")?A(E(Kt),t.ADD_DATA_URI_TAGS,le):Kt,Xt=v(t,"FORBID_CONTENTS")?A({},t.FORBID_CONTENTS,le):Gt,_t=v(t,"FORBID_TAGS")?A({},t.FORBID_TAGS,le):{},Rt=v(t,"FORBID_ATTR")?A({},t.FORBID_ATTR,le):{},Yt=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,Ot=!1!==t.ALLOW_ARIA_ATTR,Lt=!1!==t.ALLOW_DATA_ATTR,Dt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,zt=t.SAFE_FOR_TEMPLATES||!1,Mt=!1!==t.SAFE_FOR_XML,It=t.WHOLE_DOCUMENT||!1,Ft=t.RETURN_DOM||!1,jt=t.RETURN_DOM_FRAGMENT||!1,Ut=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,Wt=!1!==t.SANITIZE_DOM,Bt=t.SANITIZE_NAMED_PROPS||!1,Ht=!1!==t.KEEP_CONTENT,qt=t.IN_PLACE||!1,xt=t.ALLOWED_URI_REGEXP||q,ee=t.NAMESPACE||te,Et=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zt&&(Lt=!1),jt&&(Ft=!0),Yt&&(Tt=A({},M),At=[],!0===Yt.html&&(A(Tt,R),A(At,I)),!0===Yt.svg&&(A(Tt,O),A(At,N),A(At,F)),!0===Yt.svgFilters&&(A(Tt,L),A(At,N),A(At,F)),!0===Yt.mathMl&&(A(Tt,C),A(At,P),A(At,F))),t.ADD_TAGS&&(Tt===kt&&(Tt=E(Tt)),A(Tt,t.ADD_TAGS,le)),t.ADD_ATTR&&(At===St&&(At=E(At)),A(At,t.ADD_ATTR,le)),t.ADD_URI_SAFE_ATTR&&A(Vt,t.ADD_URI_SAFE_ATTR,le),t.FORBID_CONTENTS&&(Xt===Gt&&(Xt=E(Xt)),A(Xt,t.FORBID_CONTENTS,le)),Ht&&(Tt["#text"]=!0),It&&A(Tt,["html","head","body"]),Tt.table&&(A(Tt,["tbody"]),delete _t.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');rt=t.TRUSTED_TYPES_POLICY,at=rt.createHTML("")}else void 0===rt&&(rt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(H,s)),null!==rt&&"string"==typeof at&&(at=rt.createHTML(""));r&&r(t),se=t}},me=A({},["mi","mo","mn","ms","mtext"]),pe=A({},["foreignobject","annotation-xml"]),de=A({},["title","style","font","a","script"]),he=A({},[...O,...L,...D]),ge=A({},[...C,...z]),ye=function(t){m(o.removed,{element:t});try{it(t).removeChild(t)}catch(e){$(t)}},be=function(t,e){try{m(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!At[t])if(Ft||jt)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ve=function(t){let e=null,n=null;if(Pt)t="<remove></remove>"+t;else{const e=h(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===re&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=rt?rt.createHTML(t):t;if(ee===te)try{e=(new B).parseFromString(o,re)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?at:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ee===te?ut.call(e,It?"html":"body")[0]:It?e.documentElement:r},we=function(t){return st.call(t.ownerDocument||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},xe=function(t){return t instanceof W&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof U)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Te=function(t){return"function"==typeof k&&t instanceof k},ke=function(t,e,n){mt[t]&&u(mt[t],(t=>{t.call(o,e,n,se)}))},Ae=function(t){let e=null;if(ke("beforeSanitizeElements",t,null),xe(t))return ye(t),!0;const n=le(t.nodeName);if(ke("uponSanitizeElement",t,{tagName:n,allowedTags:Tt}),t.hasChildNodes()&&!Te(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ye(t),!0;if(t.nodeType===Q)return ye(t),!0;if(Mt&&t.nodeType===Z&&w(/<[/\w]/g,t.data))return ye(t),!0;if(!Tt[n]||_t[n]){if(!_t[n]&&Ee(n)){if(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Ht&&!Xt[n]){const e=it(t)||t.parentNode,n=ot(t)||t.childNodes;if(n&&e)for(let o=n.length-1;o>=0;--o){const i=X(n[o],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,nt(t))}}return ye(t),!0}return t instanceof S&&!function(t){let e=it(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const n=p(t.tagName),o=p(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Qt?"svg"===n&&("annotation-xml"===o||me[o]):Boolean(he[n]):t.namespaceURI===Qt?e.namespaceURI===te?"math"===n:e.namespaceURI===Zt?"math"===n&&pe[o]:Boolean(ge[n]):t.namespaceURI===te?!(e.namespaceURI===Zt&&!pe[o])&&!(e.namespaceURI===Qt&&!me[o])&&!ge[n]&&(de[n]||!he[n]):!("application/xhtml+xml"!==re||!oe[t.namespaceURI]))}(t)?(ye(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,t.innerHTML)?(zt&&t.nodeType===J&&(e=t.textContent,u([pt,dt,ht],(t=>{e=g(e,t," ")})),t.textContent!==e&&(m(o.removed,{element:t.cloneNode()}),t.textContent=e)),ke("afterSanitizeElements",t,null),!1):(ye(t),!0)},Se=function(t,e,n){if(Wt&&("id"===e||"name"===e)&&(n in i||n in ce))return!1;if(Lt&&!Rt[e]&&w(gt,e));else if(Ot&&w(yt,e));else if(!At[e]||Rt[e]){if(!(Ee(t)&&(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&w(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,n)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))))return!1}else if(Vt[e]);else if(w(xt,g(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==y(n,"data:")||!$t[t])if(Dt&&!w(bt,g(n,vt,"")));else if(n)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&h(t,wt)},_e=function(t){ke("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};let i=e.length;for(;i--;){const r=e[i],{name:a,namespaceURI:l,value:s}=r,c=le(a);let m="value"===a?s:b(s);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,ke("uponSanitizeAttribute",t,n),m=n.attrValue,Mt&&w(/((--!?|])>)|<\/(style|title)/i,m)){be(a,t);continue}if(n.forceKeepAttr)continue;if(be(a,t),!n.keepAttr)continue;if(!Ct&&w(/\/>/i,m)){be(a,t);continue}zt&&u([pt,dt,ht],(t=>{m=g(m,t," ")}));const p=le(t.nodeName);if(Se(p,c,m)){if(!Bt||"id"!==c&&"name"!==c||(be(a,t),m="user-content-"+m),rt&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(l);else switch(H.getAttributeType(p,c)){case"TrustedHTML":m=rt.createHTML(m);break;case"TrustedScriptURL":m=rt.createScriptURL(m)}try{l?t.setAttributeNS(l,a,m):t.setAttribute(a,m),xe(t)?ye(t):f(o.removed)}catch(t){}}}ke("afterSanitizeAttributes",t,null)},Re=function t(e){let n=null;const o=we(e);for(ke("beforeSanitizeShadowDOM",e,null);n=o.nextNode();)ke("uponSanitizeShadowNode",n,null),Ae(n)||(n.content instanceof c&&t(n.content),_e(n));ke("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,r=null,l=null;if(ne=!t,ne&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Te(t)){if("function"!=typeof t.toString)throw x("toString is not a function");if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}if(!o.isSupported)return t;if(Nt||fe(e),o.removed=[],"string"==typeof t&&(qt=!1),qt){if(t.nodeName){const e=le(t.nodeName);if(!Tt[e]||_t[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)n=ve("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===V&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Ft&&!zt&&!It&&-1===t.indexOf("<"))return rt&&Ut?rt.createHTML(t):t;if(n=ve(t),!n)return Ft?null:Ut?at:""}n&&Pt&&ye(n.firstChild);const s=we(qt?t:n);for(;r=s.nextNode();)Ae(r)||(r.content instanceof c&&Re(r.content),_e(r));if(qt)return t;if(Ft){if(jt)for(l=ct.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(At.shadowroot||At.shadowrootmode)&&(l=ft.call(a,l,!0)),l}let f=It?n.outerHTML:n.innerHTML;return It&&Tt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(G,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),zt&&u([pt,dt,ht],(t=>{f=g(f,t," ")})),rt&&Ut?rt.createHTML(f):f},o.setConfig=function(){fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Nt=!0},o.clearConfig=function(){se=null,Nt=!1},o.isValidAttribute=function(t,e,n){se||fe({});const o=le(t),i=le(e);return Se(o,i,n)},o.addHook=function(t,e){"function"==typeof e&&(mt[t]=mt[t]||[],m(mt[t],e))},o.removeHook=function(t){if(mt[t])return f(mt[t])},o.removeHooks=function(t){mt[t]&&(mt[t]=[])},o.removeAllHooks=function(){mt={}},o}();return nt}();const i=o.exports,r=class{constructor(e){t(this,e),this.customContent=void 0,this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=i.sanitize(this.customContent,{ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]});return e("div",{key:"f57e52b273a4a0bd0f8a89a43fb115e581024ab9",class:"CustomContentSectionContainer"},e("div",{key:"b9f38e71ca3db8a09ec97b34d96d6d4541c10b7b",class:"CustomContentSectionWrapper"},e("div",{key:"f4191fdc5ded6a3d7a29bf3d268cc2060f39036c",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};r.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{r as custom_content_section}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as n}from"./index-
|
|
1
|
+
import{r as t,h as n}from"./index-2051e205.js";const o=class{constructor(n){t(this,n),this.isLogoFromCMS=!1,this.endpoint=void 0,this.language="en",this.logoContent=null}onConfigChange(t,n){t!==n&&this.endpoint&&this.language&&this.getLogo()}getLogo(){const t=new URL(`${this.endpoint}/${this.language.toLowerCase()}/op-options/style`);return fetch(t).then((t=>t.json())).then((t=>t.logoUrl.length>0&&("null"!=t.logoUrl||"false"!=t.logoUrl)?(this.isLogoFromCMS=!0,t.logoUrl):(this.isLogoFromCMS=!1,console.error("Invalid logo URL:",t),null))).catch((t=>(console.error("Error fetching logo:",t),null)))}async connectedCallback(){if(this.endpoint&&this.language){const t=await this.getLogo();this.isLogoFromCMS&&t&&(this.logoContent=t)}}render(){return this.logoContent?n("div",{class:"HeaderBranding"},n("img",{src:this.logoContent,alt:"Logo"})):null}static get watchers(){return{endpoint:["onConfigChange"],language:["onConfigChange"]}}};o.style=".HeaderBranding.sc-footer-logo{text-align:center;width:100%;display:flex;justify-content:center;align-items:center}img.sc-footer-logo{width:10rem;height:auto}";export{o as footer_logo}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,h as e,g as t}from"./index-
|
|
1
|
+
import{r as n,h as e,g as t}from"./index-2051e205.js";import{g as o,n as i,c as r}from"./utils-c4781120.js";function a(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}const s=class{constructor(e){n(this,e),this.platform=o(),this.MANDATORY_FIELDS=["endpoint","language","sections"],this.language=void 0,this.sections=void 0,this.endpoint=void 0,this.env="stage",this.userRoles="everyone",this.userid=void 0,this.session=void 0,this.baseUrl=void 0,this.navigateViaEvent="false",this.postMessageEvent="NavigateTo",this.clientStyling="",this.clientStylingUrl="",this.customCss=void 0,this.translationUrl="",this.clockFormat="HH:MM:ss",this.timeZone="",this.mbSource=void 0,this.accordionLinks=!1,this.hasErrors=!1,this.footerContent=void 0}validateMandatoryFields(){this.MANDATORY_FIELDS.forEach((n=>{this[n]||(console.error(`Mandatory parameter ${n} not received`),this.hasErrors=!0)}))}watchLanguage(n,e){n&&e&&n!=e&&this.setFooterData()}setFooterData(){this.sectionsList=this.sections.split(",").map((n=>n.trim()));const n=new URL(`${this.endpoint}/${this.language}/footer-raw-data`);return n.searchParams.append("env",this.env),n.searchParams.append("device",this.platform),n.searchParams.append("userRoles",this.userRoles),this.validateMandatoryFields(),fetch(n.href).then((n=>n.json())).then((n=>{0===Object.keys(n).length?this.hasErrors=!0:this.footerContent=i(n)}))}async componentWillLoad(){await this.setFooterData()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){null!=window.emMessageBus?function(n,e){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{t.innerHTML=e,n&&n.appendChild(t)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&function(n,e){const t=new URL(e);fetch(t.href).then((n=>n.text())).then((e=>{const t=document.createElement("style");t.innerHTML=e,n&&n.appendChild(t)})).catch((n=>{console.error("There was an error while trying to load client styling from URL",n)}))}(this.stylingContainer,this.clientStylingUrl),this.customCss=this.footerContent.wysiwyg.customCSS.content,this.customCss&&a(this.hostEl.shadowRoot,this.customCss))}render(){if(this.hasErrors)return e("div",null,"There was an error while bootstraping the widget");{const n=this.sectionsList.map(((n,t)=>{const o=r[n].component,i=this.footerContent.repeaters.hasOwnProperty(n),a=this.footerContent.wysiwyg.hasOwnProperty(n);return e(o,{class:`${n} FooterSectionContainer FooterSectionContainer${t+1}`,userid:this.userid,session:this.session,"base-url":this.baseUrl,endpoint:this.endpoint,language:this.language,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent,ruleset:r[n],repeaterContent:i?this.footerContent.repeaters[n]:null,customContent:a?this.footerContent.wysiwyg[n].content:null,"translation-url":this.translationUrl,"clock-format":this.clockFormat,"time-zone":this.timeZone,"accordion-links":this.accordionLinks})}));return e("footer",{class:"FooterContainer",ref:n=>this.stylingContainer=n},e("div",{class:"FooterGrid customStyle"},n))}}get hostEl(){return t(this)}static get watchers(){return{language:["watchLanguage"]}}};s.style=':host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.FooterSectionContainer {\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: 15px 20px 0;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.FooterContainer {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n.FooterGrid {\n background-color: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));\n display: grid;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: "one" "two" "three" "four" "five" "six" "seven";\n}\n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n}\n\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n}\n\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n}\n\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n}\n\n.FooterSectionContainer5 {\n grid-area: five;\n}\n\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div {\n padding: 0;\n}\n\n@container (max-width: 750px) {\n .FooterSectionContainer3:after,\n .FooterSectionContainer2:after {\n position: absolute;\n content: "";\n height: 1px;\n width: 90%;\n background-color: var(--emw--color-gray-100, #444);\n }\n .FooterSectionContainer5 {\n grid-area: five;\n background-color: var(--emw--color-background-secondary, #060706);\n padding: 30px 0;\n font-size: var(--emw--font-size-medium, 16px);\n min-height: var(--emw--size-medium-plus, 100px);\n justify-self: center;\n }\n}\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));\n display: grid;\n border-top: 5px solid var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 1fr 1fr 1fr 1fr;\n grid-template-areas: "one two two two" "one three three three" "one four four four" "one five five five" "one six six six" "seven seven seven seven" "eight eight eight eight" "nine nine nine nine";\n }\n .FooterSectionContainer1 {\n padding: 30px 40px;\n grid-area: one;\n background: var(--emw--color-background, #000000);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n min-height: var(--emw--size-4x-medium, 500px);\n }\n .FooterSectionContainer3 {\n grid-area: three;\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n background-color: var(--emw--color-background-secondary, #091217);\n padding: var(--emw--spacing-x-large, 30px) 0;\n font-size: var(--emw--font-size-medium, 16px);\n min-height: var(--emw--size-medium-plus, 100px);\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: left;\n align-items: center;\n padding-left: var(--emw--spacing-large, 20px);\n }\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: var(--emw--spacing-2x-small, 5px);\n text-align: center;\n }\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: var(--emw--spacing-large, 22px);\n font-size: var(--emw--font-size-small, 14px);\n }\n}';export{s as general_footer_template}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./index-
|
|
1
|
+
import{p as e,b as t}from"./index-2051e205.js";export{s as setNonce}from"./index-2051e205.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["custom-content-section",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["link-section-list",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],accordionLinks:[516,"accordion-links"],openCategory:[32]},[[9,"resize","onResize"]]]]],["custom-clock",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["footer-logo",[[2,"footer-logo",{endpoint:[513],language:[513],logoContent:[32]},null,{endpoint:["onConfigChange"],language:["onConfigChange"]}]]],["general-footer-template",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],navigateViaEvent:[513,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],customCss:[513,"custom-css"],translationUrl:[513,"translation-url"],clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],mbSource:[513,"mb-source"],accordionLinks:[516,"accordion-links"],hasErrors:[32],footerContent:[32]},null,{language:["watchLanguage"]}]]],["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]],["image-list",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,h as i}from"./index-
|
|
1
|
+
import{r as n,h as i}from"./index-2051e205.js";const e=class{constructor(i){n(this,i),this.navigateLink=(n,i,e)=>{window.postMessage({type:this.postMessageEvent,path:n,url:n,target:i,externalLink:e},window.location.href)},this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){var n,e,a,t;return(null===(n=this.repeaterContent)||void 0===n?void 0:n.content.length)>0&&i("div",{key:"e7604ed1dcace3e2bd67c74e677e5c849c9c8407",class:"ImageListContainer"},i("div",{key:"985672261fcfeac501d1182f5ab9f20e82307cc7",class:"ImageListWrapper"},i("div",{key:"29b903e7bd639b8eb782d5aa6b646098ceee1ced",class:"ImageListSectionTitle"},null===(e=this.repeaterContent)||void 0===e?void 0:e.categoryTitle),i("div",{key:"6cf6da5d3480a5f6d25c9d106e143dbb222e3b74",class:"ImageListLineup"},null===(t=null===(a=this.repeaterContent)||void 0===a?void 0:a.content)||void 0===t?void 0:t.map((n=>i("div",{class:"ImageListIcon"},!0===this.navigateViaEvent?i("div",{class:"ImageListIcon",style:{cursor:"pointer"},onClick:()=>this.navigateLink(null==n?void 0:n.url,null==n?void 0:n.target,null==n?void 0:n.isExternalLink)},i("div",{class:"ContainerImage"},i("ui-image",{src:null==n?void 0:n.image,alt:"icon"})),i("p",null,null==n?void 0:n.title)):i("a",{href:(null==n?void 0:n.url)||"javascript:void(0)",target:(null==n?void 0:n.target)||"_parent"},i("div",{class:"ContainerImage"},i("div",{class:"ImageListPositioner"},i("ui-image",{src:null==n?void 0:n.image,alt:"icon"}))),i("p",null,null==n?void 0:n.title))))))))}};e.style=".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.ContainerImage.sc-image-list {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n\n.SkeletonWrapper.sc-image-list {\n background-color: #f0f0f0;\n width: 50px;\n height: 40px;\n}\n\n.ImageListContainer.sc-image-list {\n height: 100%;\n}\n.ImageListWrapper.sc-image-list {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 90%;\n margin: auto;\n padding: var(--emw--spacing-large, 20px) 0;\n}\n.ImageListSectionTitle.sc-image-list {\n width: 100%;\n display: flex;\n justify-content: left;\n align-content: center;\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 14px) var(--emw--spacing-x-large, 30px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n text-transform: uppercase;\n font-size: 24px;\n font-weight: 100;\n}\n.ImageListLineup.sc-image-list {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n gap: var(--emw--spacing-x-large, 30px);\n justify-content: left;\n align-items: flex-start;\n padding-left: var(--emw--spacing-large, 20px);\n}\n.ImageListIcon.sc-image-list img.sc-image-list {\n max-height: var(--emw--size-medium-2x-minus, 40px);\n}\n\na.sc-image-list {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n text-decoration: none;\n}\n\na.sc-image-list p.sc-image-list {\n text-decoration: none;\n color: var(--emw--color-gray-100, #666);\n margin: 0;\n}\n\n@container (max-width: 750px) {\n .ImageListSectionTitle.sc-image-list {\n justify-content: center;\n font-size: var(--emw--font-size-medium, 16px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: var(--emw--spacing-large, 20px) 0 var(--emw--spacing-x-large, 30px);\n justify-content: center;\n }\n .ImageListLineup.sc-image-list {\n justify-content: center;\n padding: 0;\n }\n}";export{e as image_list}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],v=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b($):f.raf($))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{w(m),w(v),(d=m.length>0)&&f.raf($)},b=e=>h().then(e),g=y(v,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?R(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const a=R(e,null);return a.u=t,i.length>0&&(a.h=i),a.p=o,a},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),T={},F={forEach:(e,t)=>e.map(H).forEach(t),map:(e,t)=>e.map(H).map(t).map(N)},H=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),N=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),L(e.vtag,t,...e.vchildren||[])}const t=R(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},U=e=>n(e).$hostElement$,W=new WeakMap,D=e=>"sc-"+e.S,q=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=G(n),s=G(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},B=/\s/,G=e=>e?e.split(B):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of I(Object.keys(o)))e in s||q(l,e,o[e],void 0,n,t.l);for(const e of I(Object.keys(s)))q(l,e,o[e],s[e],n,t.l)};function I(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var J=!1,K=(e,t,n,l)=>{const o=t.h[n];let s,r,i=0;if(null!==o.i)s=o.v=u.createTextNode(o.i);else{if(J||(J="svg"===o.m),s=o.v=u.createElementNS(J?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),J&&"foreignObject"===o.m&&(J=!1),z(null,o,J),null!=M&&s["s-si"]!==M&&s.classList.add(s["s-si"]=M),le(s,l),o.h)for(i=0;i<o.h.length;++i)r=K(e,o,i,s),r&&s.appendChild(r);"svg"===o.m?J=!1:"foreignObject"===s.tagName&&(J=!0)}return s["s-hn"]=x,s},Q=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=K(null,n,o,e),r&&(l[o].v=r,te(i,r,t)))},X=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;ee(t),e&&e.remove()}}},Y=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Z=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(z(e,t,J="svg"===r||"foreignObject"!==r&&J),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,a=0,u=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],v=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--d];else if(Y(h,m,o))Z(h,m,o),h=t[++i],m=l[++c];else if(Y(p,v,o))Z(p,v,o),p=t[--f],v=l[--d];else if(Y(h,v,o))Z(h,v,o),te(e,h.v,p.v.nextSibling),h=t[++i],v=l[--d];else if(Y(p,m,o))Z(p,m,o),te(e,p.v,h.v),p=t[--f],m=l[++c];else{for(a=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){a=u;break}a>=0?(r=t[a],r.m!==m.m?s=K(t&&t[c],n,a,e):(Z(r,m,o),t[a]=void 0,s=r.v),m=l[++c]):(s=K(t&&t[c],n,c,e),m=l[++c]),s&&te(h.v.parentNode,s,h.v)}i>f?Q(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&X(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),Q(l,null,t,s,0,s.length-1)):null!==o&&X(o,0,o.length-1),J&&"svg"===r&&(J=!1)):e.i!==i&&(l.data=i)},ee=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ee)},te=(e,t,n)=>{const l=null==e?void 0:e.insertBefore(t,n);return le(t,e),l},ne=e=>{const t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ne(e.parentElement)),t},le=(e,t,n=!1)=>{var l;if(e&&t&&1===e.nodeType){const o=new Set(ne(t).filter(Boolean));if(o.size&&(null==(l=e.classList)||l.add(...e["s-scs"]=[...o]),e["s-ol"]||n))for(const t of Array.from(e.childNodes))le(t,e,!0)}},oe=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},se=(e,t)=>{if(e.l|=16,!(4&e.l))return oe(e,e.k),g((()=>re(e,t)));e.l|=512},re=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>pe(n,e,t))),e.O=void 0),l=pe(n,"componentWillLoad")),ie(l,(()=>ae(e,n,t)))},ie=(e,t)=>ce(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ce=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ae=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=D(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=W.get(e=e.head||e);if(r||W.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=f.M)?n:k(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);ue(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>fe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ue=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||R(null,null),r=(e=>e&&e.m===T)(t)?t:L(null,null,t);if(x=l.tagName,o.A&&(r.u=r.u||{},o.A.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],Z(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},fe=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,de(t),pe(n,"componentDidLoad"),e.L(t),l||he()),e.j&&(e.j(),e.j=void 0),512&e.l&&b((()=>se(e,!1))),e.l&=-517},he=()=>{de(u.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"general-footer-template"}});return e.dispatchEvent(t),t})(a)))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},de=e=>e.classList.add("hydrated"),me=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.F.get(t),a=r.l,u=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.F.set(t,l),u)){if(o.T&&128&a){const e=o.T[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&a)&&se(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},ve=e=>{pe(e,"connectedCallback")},ye=e=>{pe(e,"disconnectedCallback")},we=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=a.customElements,v=u.head,y=v.querySelector("meta[charset]"),w=u.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],R:l[2],H:l[3]};4&c.l&&(S=!0),c.R=l[2],c.H=l[3],c.A=[],c.T=null!=(o=l[4])?o:{};const a=c.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,F:new Map};l.N=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,$e(this,e,c.H)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)$e(e,t,l.H),(null==t?void 0:t.t)?ve(t.t):(null==t?void 0:t.N)&&t.N.then((()=>ve(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){oe(t,t.k=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.U;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.W}" was not found`);l.isProxied||(n.T=l.watchers,me(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),ve(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=D(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>se(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.D&&(e.D.map((e=>e())),e.D=void 0),(null==e?void 0:e.t)?ye(e.t):(null==e?void 0:e.N)&&e.N.then((()=>ye(e.t)))}})()))}componentOnReady(){return n(this).N}};c.U=e[0],d.includes(a)||m.get(a)||(h.push(a),m.define(a,me(u,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.M)?o:k(u);null!=e&&w.setAttribute("nonce",e),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(he,30)))},$e=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ge(e,n),r=be(t,o),i=Se(n);f.ael(s,l,r,i),(t.D=t.D||[]).push((()=>f.rel(s,l,r,i)))}))},be=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},ge=(e,t)=>8&t?a:e,Se=e=>({passive:!!(1&e),capture:!!(2&e)}),je=e=>f.M=e;export{T as H,we as b,U as g,L as h,h as p,l as r,je as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,h as i}from"./index-
|
|
1
|
+
import{r as n,h as i}from"./index-2051e205.js";import{i as t}from"./utils-c4781120.js";const e=(n,i)=>function(...t){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>{n.apply(this,t)}),i)},s=class{constructor(i){n(this,i),this.isMobile=!1,this.repeaterContent=void 0,this.baseUrl=void 0,this.language=void 0,this.navigateViaEvent=!1,this.postMessageEvent="",this.accordionLinks=!1,this.openCategory=null}componentWillLoad(){this.debouncedUpdateIsMobile=e((()=>{this.updateIsMobile()}),200),this.updateIsMobile()}onResize(){this.debouncedUpdateIsMobile()}updateIsMobile(){const n=t(),i=window.innerWidth<768;this.isMobile=n&&i}navigateLink(n){window.postMessage({type:this.postMessageEvent,path:n.linkUrl,url:n.linkUrl,target:n.target,externalLink:n.externalLink},window.location.href)}toggleCategory(n){this.isMobile&&(this.openCategory=this.openCategory===n?null:n)}isCategoryOpen(n){return!this.isMobile||this.openCategory===n}createHrefLink(n){return n.externalLink?n.linkUrl:`${this.baseUrl}/${this.language}${n.linkUrl}`}render(){var n,t;const e=null===(t=null===(n=this.repeaterContent)||void 0===n?void 0:n.content)||void 0===t?void 0:t.reduce(((n,i)=>{const t=i.linkCategory,e=i.image,s=n.find((n=>n.categoryTitle===t));return s?s.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}]}),n}),[]),s=n=>n.links.map((n=>i("li",{class:"LinkSectionListLink",key:n.linkName},!0===this.navigateViaEvent?i("span",null,n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})),i("span",{class:""},n.linkName," ")):i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName?i("span",null,n.linkName," "):i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})))):i("a",{class:"LinkSectionListLink",href:this.createHrefLink(n),target:n.target||"_blank"},n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText"},i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})),i("span",null,n.linkName)):i("span",{class:"LinkSectionListLinkText"},n.linkName?i("span",null,n.linkName):i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})))))));return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper "+(this.accordionLinks?this.isMobile?"is-mobile":"is-desktop":"")},this.repeaterContent.categoryTitle&&i("h2",{class:"LinkSectionListTitle"},this.repeaterContent.categoryTitle),e.map((n=>this.accordionLinks?i("div",{class:"LinkSectionListDropdown"},i("button",{type:"button",class:"LinkSectionListDropdownHeader "+(this.openCategory===n.categoryTitle?"IsOpen":""),onClick:()=>this.toggleCategory(n.categoryTitle)},n.categoryTitle,i("span",{class:this.isCategoryOpen(n.categoryTitle)?"TriangleActive":"TriangleInactive"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},i("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),i("ul",{class:{LinkSectionListDropdownList:!0,open:this.isCategoryOpen(n.categoryTitle)}},s(n))):i("ul",null,n.categoryTitle&&i("p",null,n.categoryTitle),s(n))))))}};s.style=":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.SkeletonWrapper {\n width: 25px;\n height: 25px;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListDropdownHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n background: var(--emw--color-primary, #184026);\n color: var(--emw--color-typography, #FFFFFF);\n text-align: left;\n padding: 10px;\n border: none;\n border-radius: var(--emw--button-border-radius, 4px);\n margin-bottom: 3px;\n cursor: pointer;\n font-size: 1rem;\n}\n.LinkSectionListDropdownHeader:hover {\n color: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader:hover svg {\n fill: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader.IsOpen {\n color: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader.IsOpen svg {\n fill: var(--emw--color-secondary, #52d004);\n}\n.LinkSectionListDropdownHeader .TriangleActive {\n transform: rotate(90deg);\n -webkit-transform: rotate(90deg);\n}\n.LinkSectionListDropdownHeader svg {\n fill: var(--emw--color-typography, #FFFFFF);\n margin-left: 8px;\n width: 16px;\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n}\n.LinkSectionListDropdownList {\n list-style: none;\n display: none;\n}\n.LinkSectionListDropdownList.open {\n display: flex;\n margin: 5px 0;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n position: relative;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n gap: 5px;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";export{s as link_section_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as i,g as s}from"./index-
|
|
1
|
+
import{r as e,h as t,H as i,g as s}from"./index-2051e205.js";const n=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t(i,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&t("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),t("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return s(this)}static get watchers(){return{src:["handleSrc"]}}};n.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const r=class{constructor(t){e(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,i)=>t("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(i,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{n as ui_image,r as ui_skeleton}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=()=>{let e=window.navigator.userAgent;return!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))},t=()=>{const e=(()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipod/i)||window.navigator.userAgent.toLowerCase().includes("ipad")||"MacIntel"===navigator.platform&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2?"iPad":"PC"})();if(e)return"PC"===e?"dk":"iPad"===e||"iPhone"===e?"ios":"mtWeb"},n={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"},clock:{component:"custom-clock"},logo:{component:"footer-logo"}},i=e=>{const t={repeaters:{vendors:{categoryTitle:e.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:e.helpLinksTitle,content:[]},helpLinks:{categoryTitle:e.helpLinksTitle,content:[]},licenses:{categoryTitle:e.licensesLinksTitle,content:[]},sponsors:{categoryTitle:e.sponsorsLinksTitle,content:[]},payment:{categoryTitle:e.paymentLinksTitle,content:[]},social:{categoryTitle:e.socialLinksTitle,content:[]},downloadApp:{categoryTitle:e.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},customCSS:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},n={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentMethodUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(t.repeaters).forEach((t=>{var i,o,l;n[t[0]]&&e[null===(i=n[t[0]])||void 0===i?void 0:i.repeaterName]&&(t[1].content=null===(l=e[null===(o=n[t[0]])||void 0===o?void 0:o.repeaterName])||void 0===l?void 0:l.map((e=>{var i,o,l,a,r,s;return{isExternalLink:null!==(i=e[n[t[0]].isExternalLink])&&void 0!==i?i:null,linkCategory:null!==(o=e[n[t[0]].linkCategory])&&void 0!==o?o:null,image:null!==(l=e[n[t[0]].image])&&void 0!==l?l:null,title:null!==(a=e[n[t[0]].title])&&void 0!==a?a:null,url:null!==(r=e[n[t[0]].url])&&void 0!==r?r:null,target:null!==(s=e[n[t[0]].target])&&void 0!==s?s:null}})))})),t.repeaters.downloadApp.content=e.downloadInfos.imageArea||[],t.wysiwyg.downloadApp.content=e.downloadInfos.downloadDescription||"",t.wysiwyg.copyright.content=e.copyright,t.wysiwyg.customCSS.content=e.customCSS,t.wysiwyg["license-description"].content=e.licenseDesc,t};export{n as c,t as g,e as i,i as n}
|
|
@@ -26,6 +26,10 @@ export declare class LinkSectionList {
|
|
|
26
26
|
accordionLinks: boolean;
|
|
27
27
|
openCategory: string | null;
|
|
28
28
|
private isMobile;
|
|
29
|
+
private debouncedUpdateIsMobile;
|
|
30
|
+
componentWillLoad(): void;
|
|
31
|
+
onResize(): void;
|
|
32
|
+
private updateIsMobile;
|
|
29
33
|
navigateLink(link: any): void;
|
|
30
34
|
toggleCategory(category: string): void;
|
|
31
35
|
isCategoryOpen(category: string): boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* custom rules for component types
|
|
3
3
|
*/
|
|
4
4
|
export declare const isMobile: () => boolean;
|
|
5
|
+
export declare const isIpad: () => boolean;
|
|
5
6
|
export declare const getDevice: () => "Android" | "iPhone" | "iPad" | "PC";
|
|
6
7
|
export declare const getDevicePlatform: () => "dk" | "ios" | "mtWeb";
|
|
7
8
|
export declare const componentRules: {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,r=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?b($):f.raf($))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){r(e)}e.length=0},$=()=>{w(d),w(y),(m=d.length>0)&&f.raf($)},b=e=>h().then(e),g=v(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,r=!1,s=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof e&&!j(l))&&(l+=""),r&&s?i[i.length-1].i+=l:i.push(r?R(null,l):l),s=r)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const u=R(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),T={},F={forEach:(e,t)=>e.map(H).forEach(t),map:(e,t)=>e.map(H).map(t).map(N)},H=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),N=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),L(e.vtag,t,...e.vchildren||[])}const t=R(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},U=e=>n(e).$hostElement$,W=new WeakMap,D=e=>"sc-"+e.S,q=(e,t,n,l,r,s)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=G(n),r=G(l);t.remove(...o.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!r)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||r)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},B=/\s/,G=e=>e?e.split(B):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,r=t.u||S;for(const e of I(Object.keys(o)))e in r||q(l,e,o[e],void 0,n,t.l);for(const e of I(Object.keys(r)))q(l,e,o[e],r[e],n,t.l)};function I(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var J=!1,K=(e,t,n,l)=>{const o=t.h[n];let r,s,i=0;if(null!==o.i)r=o.v=a.createTextNode(o.i);else{if(J||(J="svg"===o.m),r=o.v=a.createElementNS(J?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),J&&"foreignObject"===o.m&&(J=!1),z(null,o,J),null!=M&&r["s-si"]!==M&&r.classList.add(r["s-si"]=M),le(r,l),o.h)for(i=0;i<o.h.length;++i)s=K(e,o,i,r),s&&r.appendChild(s);"svg"===o.m?J=!1:"foreignObject"===r.tagName&&(J=!0)}return r["s-hn"]=x,r},Q=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=K(null,n,o,e),s&&(l[o].v=s,te(i,s,t)))},X=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;ee(t),e&&e.remove()}}},Y=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Z=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,r=t.h,s=t.m,i=t.i;null===i?(z(e,t,J="svg"===s||"foreignObject"!==s&&J),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--m];else if(Y(h,d,o))Z(h,d,o),h=t[++i],d=l[++c];else if(Y(p,y,o))Z(p,y,o),p=t[--f],y=l[--m];else if(Y(h,y,o))Z(h,y,o),te(e,h.v,p.v.nextSibling),h=t[++i],y=l[--m];else if(Y(p,d,o))Z(p,d,o),te(e,p.v,h.v),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(s=t[u],s.m!==d.m?r=K(t&&t[c],n,u,e):(Z(s,d,o),t[u]=void 0,r=s.v),d=l[++c]):(r=K(t&&t[c],n,c,e),d=l[++c]),r&&te(h.v.parentNode,r,h.v)}i>f?Q(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&X(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.i&&(l.textContent=""),Q(l,null,t,r,0,r.length-1)):null!==o&&X(o,0,o.length-1),J&&"svg"===s&&(J=!1)):e.i!==i&&(l.data=i)},ee=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ee)},te=(e,t,n)=>{const l=null==e?void 0:e.insertBefore(t,n);return le(t,e),l},ne=e=>{const t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ne(e.parentElement)),t},le=(e,t,n=!1)=>{var l;if(e&&t&&1===e.nodeType){const o=new Set(ne(t).filter(Boolean));if(o.size&&(null==(l=e.classList)||l.add(...e["s-scs"]=[...o]),e["s-ol"]||n))for(const t of Array.from(e.childNodes))le(t,e,!0)}},oe=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},re=(e,t)=>{if(e.l|=16,!(4&e.l))return oe(e,e.k),g((()=>se(e,t)));e.l|=512},se=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=pe(n,"componentWillLoad")),ie(l,(()=>ue(e,n,t)))},ie=(e,t)=>ce(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ce=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ue=async(e,t,n)=>{var l;const o=e.$hostElement$,r=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=D(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let r,s=W.get(e=e.head||e);if(s||W.set(e,s=new Set),!s.has(l)){{r=a.createElement("style"),r.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&r.setAttribute("nonce",t),e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);ae(e,t,o,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>fe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ae=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||R(null,null),s=(e=>e&&e.m===T)(t)?t:L(null,null,t);if(x=l.tagName,o.P&&(s.u=s.u||{},o.P.map((([e,t])=>s.u[t]=l[e]))),n&&s.u)for(const e of Object.keys(s.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=l[e]);s.m=null,s.l|=4,e.M=s,s.v=r.v=l.shadowRoot||l,M=l["s-sc"],Z(r,s,n)})(e,t,l)}catch(t){r(t,e.$hostElement$)}return null},fe=e=>{const t=e.$hostElement$,n=e.t,l=e.k;64&e.l||(e.l|=64,me(t),pe(n,"componentDidLoad"),e.A(t),l||he()),e.j&&(e.j(),e.j=void 0),512&e.l&&b((()=>re(e,!1))),e.l&=-517},he=()=>{me(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"general-footer-template"}});return e.dispatchEvent(t),t})(u)))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){r(e)}},me=e=>e.classList.add("hydrated"),de=(e,t,l)=>{var o,s;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.T.get(t),u=s.l,a=s.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){r(e,i)}}))}2==(18&u)&&re(s,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,r){f.jmp((()=>{var s;const c=l.get(e);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&r!==o){const n=l.t,i=null==(s=t.R)?void 0:s[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,r,o,e)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.R)?s:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const r=n[1]||e;return l.set(r,e),512&n[0]&&(null==(o=t.P)||o.push([e,r])),r}))]))}}return e},ye=e=>{pe(e,"connectedCallback")},ve=e=>{pe(e,"disconnectedCallback")},we=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],S:l[1],L:l[2],F:l[3]};4&c.l&&(S=!0),c.L=l[2],c.P=[],c.R=null!=(o=l[4])?o:{};const u=c.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,T:new Map};l.H=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)?ye(t.t):(null==t?void 0:t.H)&&t.H.then((()=>ye(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){oe(t,t.k=n);break}}l.L&&Object.entries(l.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.N;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),r)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.S}#${t.U}" was not found`);l.isProxied||(n.R=l.watchers,de(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){r(e)}t.l&=-9,t.l|=128,o(),ye(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=D(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>re(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?ve(e.t):(null==e?void 0:e.H)&&e.H.then((()=>ve(e.t)))}})()))}componentOnReady(){return n(this).H}};c.N=e[0],m.includes(u)||d.get(u)||(h.push(u),d.define(u,de(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(he,30)))},$e=e=>f.C=e;export{T as H,we as b,U as g,L as h,h as p,l as r,$e as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=()=>{let e=window.navigator.userAgent;return!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))},t=()=>{const e=(()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(e)return"PC"===e?"dk":"iPad"===e||"iPhone"===e?"ios":"mtWeb"},n={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"},clock:{component:"custom-clock"},logo:{component:"footer-logo"}},i=e=>{const t={repeaters:{vendors:{categoryTitle:e.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:e.helpLinksTitle,content:[]},helpLinks:{categoryTitle:e.helpLinksTitle,content:[]},licenses:{categoryTitle:e.licensesLinksTitle,content:[]},sponsors:{categoryTitle:e.sponsorsLinksTitle,content:[]},payment:{categoryTitle:e.paymentLinksTitle,content:[]},social:{categoryTitle:e.socialLinksTitle,content:[]},downloadApp:{categoryTitle:e.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},customCSS:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},n={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentMethodUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(t.repeaters).forEach((t=>{var i,o,l;n[t[0]]&&e[null===(i=n[t[0]])||void 0===i?void 0:i.repeaterName]&&(t[1].content=null===(l=e[null===(o=n[t[0]])||void 0===o?void 0:o.repeaterName])||void 0===l?void 0:l.map((e=>{var i,o,l,a,r,s;return{isExternalLink:null!==(i=e[n[t[0]].isExternalLink])&&void 0!==i?i:null,linkCategory:null!==(o=e[n[t[0]].linkCategory])&&void 0!==o?o:null,image:null!==(l=e[n[t[0]].image])&&void 0!==l?l:null,title:null!==(a=e[n[t[0]].title])&&void 0!==a?a:null,url:null!==(r=e[n[t[0]].url])&&void 0!==r?r:null,target:null!==(s=e[n[t[0]].target])&&void 0!==s?s:null}})))})),t.repeaters.downloadApp.content=e.downloadInfos.imageArea||[],t.wysiwyg.downloadApp.content=e.downloadInfos.downloadDescription||"",t.wysiwyg.copyright.content=e.copyright,t.wysiwyg.customCSS.content=e.customCSS,t.wysiwyg["license-description"].content=e.licenseDesc,t};export{n as c,t as g,e as i,i as n}
|