@everymatrix/general-footer-template 1.59.1 → 1.59.3
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 +2 -2
- 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 +29 -4
- package/dist/cjs/{index-a7f717fa.js → index-a589a1e7.js} +10 -1
- package/dist/cjs/link-section-list.cjs.entry.js +29 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/ui-skeleton.cjs.entry.js +148 -0
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/custom-content-section/custom-content-section.js +2 -1
- package/dist/collection/components/general-footer-template/demo-footer.css +31 -0
- package/dist/collection/components/general-footer-template/general-footer-template.js +1 -0
- package/dist/collection/components/general-footer-template/general-footer-template.stories.js +1 -1
- package/dist/collection/components/image-list/image-list.css +10 -0
- package/dist/collection/components/image-list/image-list.js +32 -2
- package/dist/collection/components/link-section-list/link-section-list.js +33 -3
- package/dist/esm/custom-clock.entry.js +1 -1
- package/dist/esm/custom-content-section.entry.js +2 -2
- 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 +29 -4
- package/dist/esm/{index-e6e68604.js → index-0dd7df9f.js} +10 -2
- package/dist/esm/link-section-list.entry.js +29 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ui-skeleton.entry.js +144 -0
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-13856e75.entry.js +1 -0
- package/dist/general-footer-template/p-15f41686.entry.js +1 -0
- package/dist/general-footer-template/p-2b4944f2.js +2 -0
- package/dist/general-footer-template/{p-f12f5263.entry.js → p-5816ee0c.entry.js} +1 -1
- package/dist/general-footer-template/p-8665d213.entry.js +1 -0
- package/dist/general-footer-template/{p-e9ff209c.entry.js → p-a9ca9542.entry.js} +2 -2
- package/dist/general-footer-template/p-abe53f3b.entry.js +1 -0
- package/dist/types/components/custom-content-section/custom-content-section.d.ts +1 -0
- package/dist/types/components/general-footer-template/general-footer-template.d.ts +1 -0
- package/dist/types/components/general-footer-template/general-footer-template.stories.d.ts +1 -1
- package/dist/types/components/image-list/image-list.d.ts +8 -0
- package/dist/types/components/link-section-list/link-section-list.d.ts +8 -0
- package/package.json +1 -1
- package/dist/general-footer-template/p-076550c8.entry.js +0 -1
- package/dist/general-footer-template/p-16bd4237.js +0 -2
- package/dist/general-footer-template/p-2879096a.entry.js +0 -1
- package/dist/general-footer-template/p-d7132f51.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as r}from"./p-16bd4237.js";import{c as n}from"./p-cb65c223.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 k||!(!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 k(n)},p=D;p.l=w,p.i=g,p.w=function(t,r){return Y(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var k=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(p.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 p},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 p.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=!!p.u(r)||r,v=p.p(t),d=function(t,r){var e=p.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 p.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=p.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[p.p(t)]()},M.add=function(n,h){var f,v=this;n=Number(n);var d=p.p(h),l=function(t){var r=Y(v);return p.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 p.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=p.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 p.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 p.s(r.$y,4,"0");case"M":return a+1;case"MM":return p.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 p.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 p.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 p.s(u,2,"0");case"s":return String(r.$s);case"ss":return p.s(r.$s,2,"0");case"SSS":return p.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=p.p(f),M=Y(n),D=(M.utcOffset()-this.utcOffset())*t,y=this-M,S=function(){return p.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:p.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 p.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}(),_=k.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,k,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"./p-2b4944f2.js";import{c as n}from"./p-cb65c223.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 k||!(!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 k(n)},p=D;p.l=w,p.i=g,p.w=function(t,r){return Y(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var k=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(p.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 p},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 p.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=!!p.u(r)||r,v=p.p(t),d=function(t,r){var e=p.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 p.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=p.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[p.p(t)]()},M.add=function(n,h){var f,v=this;n=Number(n);var d=p.p(h),l=function(t){var r=Y(v);return p.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 p.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=p.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 p.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 p.s(r.$y,4,"0");case"M":return a+1;case"MM":return p.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 p.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 p.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 p.s(u,2,"0");case"s":return String(r.$s);case"ss":return p.s(r.$s,2,"0");case"SSS":return p.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=p.p(f),M=Y(n),D=(M.utcOffset()-this.utcOffset())*t,y=this-M,S=function(){return p.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:p.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 p.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}(),_=k.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,k,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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-2b4944f2.js";const r=class{constructor(e){t(this,e),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}updateStyles(){this.primaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-primary-color",this.primaryColor),this.secondaryColor&&this.skeletonContainer.style.setProperty("--emw-skeleton-secondary-color",this.secondaryColor)}handleStructure(t){switch(t){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()}}renderLogo(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Image "+(this.animation?"Skeleton":"")}))}renderTitle(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){const t={width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`};return Array.from({length:this.rows>0?this.rows:1}).map(((r,i)=>e("div",{style:t,key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.width}`,height:`${this.height}`,"background-color":`${this.color}`,"border-radius":`${this.borderRadius}px`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return e("div",{ref:t=>this.skeletonContainer=t},e("div",{style:{width:`${this.size}`,height:`${this.size}`,"background-color":`${this.color}`,"margin-bottom":`${this.marginBottom}px`,"margin-top":`${this.marginTop}px`,"margin-left":`${this.marginLeft}px`,"margin-right":`${this.marginRight}px`},class:"Circle "+(this.animation?"Skeleton":"")}))}componentDidLoad(){this.updateStyles()}render(){return this.handleStructure(this.structure)}static get watchers(){return{structure:["handleStructureChange"],primaryColor:["updateStyles"],secondaryColor:["updateStyles"]}}};r.style=".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, 2px)}.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, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.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, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.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, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{r as ui_skeleton}
|