@htmlbricks/hb-gallery-video 0.20.13 → 0.20.14

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-gallery-video",
3
3
  "displayName": "Svelte Boostrap Video Gallery WebComponent",
4
4
  "description": "Svelte Boostrap Video Gallery WebComponent",
5
- "version": "0.20.13",
5
+ "version": "0.20.14",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -76,9 +76,9 @@
76
76
  ],
77
77
  "contributors": [],
78
78
  "dependencies": {
79
- "@htmlbricks/hb-card-video": "^0.20.13",
80
- "@htmlbricks/hb-paginate": "^0.20.13",
79
+ "@htmlbricks/hb-card-video": "^0.20.14",
80
+ "@htmlbricks/hb-paginate": "^0.20.14",
81
81
  "dayjs": "^1.10.7"
82
82
  },
83
- "gitHead": "9a007bee4a6df0f4ab0c361e278bf5e4db5a8db0"
83
+ "gitHead": "c84e5b078c97ae6f095adf39897b0294da01dea3"
84
84
  }
@@ -218,5 +218,5 @@
218
218
  "size": {},
219
219
  "iifePath": "release/release.js",
220
220
  "repoName": "@htmlbricks/hb-gallery-video",
221
- "version": "0.20.13"
221
+ "version": "0.20.14"
222
222
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e){t.appendChild(e)}function s(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function u(){return c(" ")}function f(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function h(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:p(t,e,n)}function m(t,e){t.value=null==e?"":e}function g(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}let v;function y(t){v=t}function $(){if(!v)throw new Error("Function called outside component initialization");return v}function w(){const t=$();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const o=function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(e,n,{cancelable:r});return i.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}const x=[],k=[];let M=[];const D=[],S=Promise.resolve();let _=!1;function Y(t){M.push(t)}const C=new Set;let O=0;function E(){if(0!==O)return;const t=v;do{try{for(;O<x.length;){const t=x[O];O++,y(t),L(t.$$)}}catch(t){throw x.length=0,O=0,t}for(y(null),x.length=0,O=0;k.length;)k.pop()();for(let t=0;t<M.length;t+=1){const e=M[t];C.has(e)||(C.add(e),e())}M.length=0}while(x.length);for(;D.length;)D.pop()();_=!1,C.clear(),y(t)}function L(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const T=new Set;function z(t,e){t&&t.i&&(T.delete(t),t.i(e))}function A(t,e){t.d(1),e.delete(t.key)}function N(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];M.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),M=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function H(t,e){-1===t.$$.dirty[0]&&(x.push(t),_||(_=!0,S.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function j(o,a,s,d,c,u,f,p=[-1]){const h=v;y(o);const m=o.$$={fragment:null,ctx:[],props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:a.target||h.$$.root};f&&f(m.root);let g=!1;if(m.ctx=s?s(o,a.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return m.ctx&&c(m.ctx[t],m.ctx[t]=r)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](r),g&&H(o,t)),e})):[],m.update(),g=!0,r(m.before_update),m.fragment=!!d&&d(m.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);m.fragment&&m.fragment.l(t),t.forEach(l)}else m.fragment&&m.fragment.c();a.intro&&z(o.$$.fragment),function(t,n,o,a){const{fragment:s,after_update:l}=t.$$;s&&s.m(n,o),a||Y((()=>{const n=t.$$.on_mount.map(e).filter(i);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),l.forEach(Y)}(o,a.target,a.anchor,a.customElement),E()}y(h)}let I;"function"==typeof HTMLElement&&(I=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){N(this,1),this.$destroy=t}$on(e,n){if(!i(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function F(t){var e={exports:{}};return t(e,e.exports),e.exports}var P=F((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",d="month",c="quarter",u="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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 e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,d),o=n-i<0,a=e.clone().add(r+(o?-1:1),d);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:d,y:u,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=g;var w="$isDayjsObject",x=function(t){return t instanceof S||!(!t||!t[w])},k=function t(e,n,r){var i;if(!e)return y;if("string"==typeof e){var o=e.toLowerCase();$[o]&&(i=o),n&&($[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;$[s]=e,i=s}return!r&&i&&(y=i),i||!r&&y},M=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},D=v;D.l=k,D.i=x,D.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var b=g.prototype;return b.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},b.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()},b.$utils=function(){return D},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(t,e){var n=M(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return M(t)<this.startOf(e)},b.isBefore=function(t,e){return this.endOf(e)<M(t)},b.$g=function(t,e,n){return D.u(t)?this[e]:this.set(n,t)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(t,e){var n=this,r=!!D.u(e)||e,c=D.p(t),p=function(t,e){var i=D.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},h=function(t,e){return D.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case u:return r?p(1,0):p(31,11);case d:return r?p(1,g):p(0,g+1);case l:var y=this.$locale().weekStart||0,$=(m<y?m+7:m)-y;return p(r?b-$:b+(6-$),g);case s:case f:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case i:return h(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(t){return this.startOf(t,!1)},b.$set=function(t,e){var n,l=D.p(t),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=c+"Date",n[f]=c+"Date",n[d]=c+"Month",n[u]=c+"FullYear",n[a]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],h=l===s?this.$D+(e-this.$W):e;if(l===d||l===u){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},b.set=function(t,e){return this.clone().$set(t,e)},b.get=function(t){return this[D.p(t)]()},b.add=function(r,c){var f,p=this;r=Number(r);var h=D.p(c),m=function(t){var e=M(p);return D.w(e.date(e.date()+Math.round(t*r)),p)};if(h===d)return this.set(d,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[o]=e,f[a]=n,f[i]=t,f)[h]||1,b=this.$d.getTime()+r*g;return D.w(b,this)},b.subtract=function(t,e){return this.add(-1*t,e)},b.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=D.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,d=n.months,c=n.meridiem,u=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return D.s(o%12||12,t,"0")},h=c||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return D.s(e.$y,4,"0");case"M":return s+1;case"MM":return D.s(s+1,2,"0");case"MMM":return u(n.monthsShort,s,d,3);case"MMMM":return u(d,s);case"D":return e.$D;case"DD":return D.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(n.weekdaysMin,e.$W,l,2);case"ddd":return u(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return D.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return D.s(a,2,"0");case"s":return String(e.$s);case"ss":return D.s(e.$s,2,"0");case"SSS":return D.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(r,f,p){var h,m=this,g=D.p(f),b=M(r),v=(b.utcOffset()-this.utcOffset())*e,y=this-b,$=function(){return D.m(m,b)};switch(g){case u:h=$()/12;break;case d:h=$();break;case c:h=$()/3;break;case l:h=(y-v)/6048e5;break;case s:h=(y-v)/864e5;break;case a:h=y/n;break;case o:h=y/e;break;case i:h=y/t;break;default:h=y}return p?h:D.a(h)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return $[this.$L]},b.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=k(t,e,!0);return r&&(n.$L=r),n},b.clone=function(){return D.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),_=S.prototype;return M.prototype=_,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",d],["$y",u],["$D",f]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,S,M),t.$i=!0),M},M.locale=k,M.isDayjs=x,M.unix=function(t){return M(1e3*t)},M.en=$[y],M.Ls=$,M.p={},M}()})),U="0.20.13",W=F((function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,i="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var o=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},a=0,s=Object.keys(t);a<s.length;a++){o(s[a])}return i},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var r=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(r),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,i,o="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(o=null===(i=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===i?void 0:i.toLowerCase()),o},t.getDictionaryWord=function(e,n,r){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(i=n[r])||void 0===i?void 0:i[e]))return n[r][e];var o="",a=t.getDefaultLang();if(!r||a!==r){var s=null==n?void 0:n[a];(null==s?void 0:s[e])&&(o=s[e])}return o},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n})),V=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R=/\n/g,J=/^\s*/,B=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Z=/^:\s*/,K=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,Q=/^\s+|\s+$/g,G="";function X(t){return t?t.replace(Q,G):G}var tt=function(t,e){var n,r=null;if(!t||"string"!=typeof t)return r;for(var i,o,a=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function i(t){var e=t.match(R);e&&(n+=e.length);var i=t.lastIndexOf("\n");r=~i?t.length-i:r+t.length}function o(){var t={line:n,column:r};return function(e){return e.position=new a(t),d(),e}}function a(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function s(i){var o=new Error(e.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=e.source,o.line=n,o.column=r,o.source=t,!e.silent)throw o}function l(e){var n=e.exec(t);if(n){var r=n[0];return i(r),t=t.slice(r.length),n}}function d(){l(J)}function c(t){var e;for(t=t||[];e=u();)!1!==e&&t.push(e);return t}function u(){var e=o();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;G!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,G===t.charAt(n-1))return s("End of comment missing");var a=t.slice(2,n-2);return r+=2,i(a),t=t.slice(n),r+=2,e({type:"comment",comment:a})}}function f(){var t=o(),e=l(B);if(e){if(u(),!l(Z))return s("property missing ':'");var n=l(K),r=t({type:"declaration",property:X(e[0].replace(V,G)),value:n?X(n[0].replace(V,G)):G});return l(q),r}}return a.prototype.content=t,d(),function(){var t,e=[];for(c(e);t=f();)!1!==t&&(e.push(t),c(e));return e}()}(t),s="function"==typeof e,l=0,d=a.length;l<d;l++)i=(n=a[l]).property,o=n.value,s?e(i,o,n):o&&(r||(r={}),r[i]=o);return r},et={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"}],parts:[]},nt={vars:[],parts:[]};function rt(t,e,n){const r=t.slice();return r[30]=e[n],r}function it(t){let e,n,r,i,o,f,h,m,g,b,v=!t[7]&&ot(t),y=t[10]&&at(t),$=!t[7]&&st(t),w=t[10]&&lt(t),x=t[11]&&t[11].length&&dt(t);return{c(){e=d("div"),n=d("div"),v&&v.c(),r=u(),i=d("div"),y&&y.c(),o=u(),f=d("div"),h=d("div"),$&&$.c(),m=u(),w&&w.c(),g=u(),x&&x.c(),b=c(""),p(i,"class","col-8 col-xxl-10"),p(n,"class","row"),p(e,"class","d-none d-md-block"),p(h,"class","row"),p(f,"class","d-block d-md-none")},m(t,l){s(t,e,l),a(e,n),v&&v.m(n,null),a(n,r),a(n,i),y&&y.m(i,null),s(t,o,l),s(t,f,l),a(f,h),$&&$.m(h,null),a(f,m),w&&w.m(f,null),s(t,g,l),x&&x.m(t,l),s(t,b,l)},p(t,e){t[7]?v&&(v.d(1),v=null):v?v.p(t,e):(v=ot(t),v.c(),v.m(n,r)),t[10]?y?y.p(t,e):(y=at(t),y.c(),y.m(i,null)):y&&(y.d(1),y=null),t[7]?$&&($.d(1),$=null):$?$.p(t,e):($=st(t),$.c(),$.m(h,null)),t[10]?w?w.p(t,e):(w=lt(t),w.c(),w.m(f,null)):w&&(w.d(1),w=null),t[11]&&t[11].length?x?x.p(t,e):(x=dt(t),x.c(),x.m(b.parentNode,b)):x&&(x.d(1),x=null)},d(t){t&&l(e),v&&v.d(),y&&y.d(),t&&l(o),t&&l(f),$&&$.d(),w&&w.d(),t&&l(g),x&&x.d(t),t&&l(b)}}}function ot(t){let e,n,r,i,o,c,h;return{c(){e=d("div"),n=d("div"),r=d("span"),r.textContent="🔎",i=u(),o=d("input"),p(r,"class","input-group-text"),p(r,"id","search"),p(o,"type","text"),p(o,"class","form-control"),p(o,"placeholder","..."),p(o,"aria-label","Search"),p(o,"aria-describedby","search"),p(n,"class","input-group mb-3"),p(e,"class","col-4 col-xxl-2")},m(l,d){s(l,e,d),a(e,n),a(n,r),a(n,i),a(n,o),m(o,t[5]),c||(h=f(o,"input",t[24]),c=!0)},p(t,e){32&e[0]&&o.value!==t[5]&&m(o,t[5])},d(t){t&&l(e),c=!1,h()}}}function at(t){let e,n,i,o,c,h,m,b,v,y;return{c(){e=d("div"),n=d("span"),n.textContent="📅",i=u(),o=d("input"),h=u(),m=d("input"),p(n,"class","input-group-text"),p(o,"type","date"),p(o,"class","form-control"),g(o,"max-width","200px"),o.value=c=P(t[8]).format("YYYY-MM-DD"),p(m,"type","date"),p(m,"class","form-control"),g(m,"max-width","200px"),m.value=b=P(t[9]).format("YYYY-MM-DD"),p(e,"class","input-group mb-3")},m(r,l){s(r,e,l),a(e,n),a(e,i),a(e,o),a(e,h),a(e,m),v||(y=[f(o,"input",t[15]),f(m,"input",t[16])],v=!0)},p(t,e){256&e[0]&&c!==(c=P(t[8]).format("YYYY-MM-DD"))&&(o.value=c),512&e[0]&&b!==(b=P(t[9]).format("YYYY-MM-DD"))&&(m.value=b)},d(t){t&&l(e),v=!1,r(y)}}}function st(t){let e,n,r,i,o,c,h;return{c(){e=d("div"),n=d("div"),r=d("span"),r.textContent="🔎",i=u(),o=d("input"),p(r,"class","input-group-text"),p(r,"id","search"),p(o,"type","text"),p(o,"class","form-control"),p(o,"placeholder","..."),p(o,"aria-label","Search"),p(o,"aria-describedby","search"),p(n,"class","input-group mb-3"),p(e,"class","col-12")},m(l,d){s(l,e,d),a(e,n),a(n,r),a(n,i),a(n,o),m(o,t[5]),c||(h=f(o,"input",t[25]),c=!0)},p(t,e){32&e[0]&&o.value!==t[5]&&m(o,t[5])},d(t){t&&l(e),c=!1,h()}}}function lt(e){let n,i,o,c,h,m,g,b,v,y;return{c(){n=d("div"),i=d("div"),o=d("div"),c=d("span"),c.textContent="📅",h=u(),m=d("input"),g=u(),b=d("input"),p(c,"class","input-group-text"),p(m,"type","date"),p(m,"class","form-control"),p(b,"type","date"),p(b,"class","form-control"),p(o,"class","input-group mb-3"),p(i,"class","col-12"),p(n,"class","row")},m(t,r){s(t,n,r),a(n,i),a(i,o),a(o,c),a(o,h),a(o,m),a(o,g),a(o,b),v||(y=[f(m,"input",e[15]),f(b,"input",e[16])],v=!0)},p:t,d(t){t&&l(n),v=!1,r(y)}}}function dt(t){let e,n,i,o,c,m,b,v,y,$=[],w=new Map,x=t[6]?t[11]:t[11].slice(t[1]*t[0],(t[1]+1)*t[0]);const k=t=>t[30]._id;for(let e=0;e<x.length;e+=1){let n=rt(t,x,e),r=k(n);w.set(r,$[e]=ct(r,n))}return{c(){e=d("div");for(let t=0;t<$.length;t+=1)$[t].c();n=u(),i=d("nav"),o=d("hb-paginate"),p(e,"class","row"),h(o,"style",t[12]),h(o,"page",c=t[1].toString()),h(o,"pages",m=t[2].toString()),h(o,"primarycolor",b=t[4]||""),g(i,"margin-top","20px"),p(i,"aria-label","Page navigation example")},m(r,l){s(r,e,l);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(e,null);s(r,n,l),s(r,i,l),a(i,o),v||(y=f(o,"pageChange",t[14]),v=!0)},p(t,n){10315&n[0]&&(x=t[6]?t[11]:t[11].slice(t[1]*t[0],(t[1]+1)*t[0]),$=function(t,e,n,i,o,a,s,l,d,c,u,f){let p=t.length,h=a.length,m=p;const g={};for(;m--;)g[t[m].key]=m;const b=[],v=new Map,y=new Map,$=[];for(m=h;m--;){const t=f(o,a,m),r=n(t);let l=s.get(r);l?i&&$.push((()=>l.p(t,e))):(l=c(r,t),l.c()),v.set(r,b[m]=l),r in g&&y.set(r,Math.abs(m-g[r]))}const w=new Set,x=new Set;function k(t){z(t,1),t.m(l,u),s.set(t.key,t),u=t.first,h--}for(;p&&h;){const e=b[h-1],n=t[p-1],r=e.key,i=n.key;e===n?(u=e.first,p--,h--):v.has(i)?!s.has(r)||w.has(r)?k(e):x.has(i)?p--:y.get(r)>y.get(i)?(x.add(r),k(e)):(w.add(i),p--):(d(n,s),p--)}for(;p--;){const e=t[p];v.has(e.key)||d(e,s)}for(;h;)k(b[h-1]);return r($),b}($,n,k,1,t,x,w,e,A,ct,null,rt)),4096&n[0]&&h(o,"style",t[12]),2&n[0]&&c!==(c=t[1].toString())&&h(o,"page",c),4&n[0]&&m!==(m=t[2].toString())&&h(o,"pages",m),16&n[0]&&b!==(b=t[4]||"")&&h(o,"primarycolor",b)},d(t){t&&l(e);for(let t=0;t<$.length;t+=1)$[t].d();t&&l(n),t&&l(i),v=!1,y()}}}function ct(t,e){let n,r,i,o,c,f,m,b,v,y,$;return{key:t,first:null,c(){n=d("div"),r=d("hb-card-video"),$=u(),h(r,"key",i=e[30]._id),h(r,"style",e[13]),h(r,"title",o=e[30].title||""),h(r,"description",c=e[30].description||""),h(r,"time",f=e[30].time?P(e[30].time).format():void 0),h(r,"dateformat",m=e[3]||""),h(r,"pageuri",b=e[30].pageUri||""),h(r,"videosrc",v=e[30].videoSrc||""),h(r,"provider",y=e[30].provider||""),p(n,"class","col-12 col-xxl-3 col-xl-4 col-md-6"),g(n,"padding","12px"),this.first=n},m(t,e){s(t,n,e),a(n,r),a(n,$)},p(t,n){e=t,2115&n[0]&&i!==(i=e[30]._id)&&h(r,"key",i),8192&n[0]&&h(r,"style",e[13]),2115&n[0]&&o!==(o=e[30].title||"")&&h(r,"title",o),2115&n[0]&&c!==(c=e[30].description||"")&&h(r,"description",c),2115&n[0]&&f!==(f=e[30].time?P(e[30].time).format():void 0)&&h(r,"time",f),8&n[0]&&m!==(m=e[3]||"")&&h(r,"dateformat",m),2115&n[0]&&b!==(b=e[30].pageUri||"")&&h(r,"pageuri",b),2115&n[0]&&v!==(v=e[30].videoSrc||"")&&h(r,"videosrc",v),2115&n[0]&&y!==(y=e[30].provider||"")&&h(r,"provider",y)},d(t){t&&l(n)}}}function ut(e){let n,r=e[11]&&(e[11].length||0===e[11].length)&&it(e);return{c(){n=d("div"),r&&r.c(),this.c=t,p(n,"class","container-fluid"),p(n,"part","container")},m(t,e){s(t,n,e),r&&r.m(n,null)},p(t,e){t[11]&&(t[11].length||0===t[11].length)?r?r.p(t,e):(r=it(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&l(n),r&&r.d()}}}function ft(t,e,n){let r,i,o,a,{style:s}=e,{cards:l}=e,{size:d}=e,{page:c}=e,{pages:u}=e,{linkLabel:f}=e,{dateformat:p}=e,{primarycolor:h}=e,{filter:m}=e,{id:g}=e,{externalfilter:b}=e,{disabletextfilter:v}=e,{initialdate:y}=e,{lastdate:x}=e,k="",M="",D=!0;const S=$(),_=w();function Y(t,e){_(t,e),S.dispatchEvent&&S.dispatchEvent(new CustomEvent(t,{detail:e}))}return W.addComponent({repoName:"@htmlbricks/hb-paginate",version:U}),W.addComponent({repoName:"@htmlbricks/hb-card-video",version:U}),t.$$set=t=>{"style"in t&&n(19,s=t.style),"cards"in t&&n(20,l=t.cards),"size"in t&&n(0,d=t.size),"page"in t&&n(1,c=t.page),"pages"in t&&n(2,u=t.pages),"linkLabel"in t&&n(17,f=t.linkLabel),"dateformat"in t&&n(3,p=t.dateformat),"primarycolor"in t&&n(4,h=t.primarycolor),"filter"in t&&n(5,m=t.filter),"id"in t&&n(18,g=t.id),"externalfilter"in t&&n(6,b=t.externalfilter),"disabletextfilter"in t&&n(7,v=t.disabletextfilter),"initialdate"in t&&n(8,y=t.initialdate),"lastdate"in t&&n(9,x=t.lastdate)},t.$$.update=()=>{if(16650239&t.$$.dirty[0]){s&&(n(21,r=tt(s)),n(12,k=W.getChildStyleToPass(r,null==et?void 0:et.vars)),n(13,M=W.getChildStyleToPass(r,null==nt?void 0:nt.vars))),console.log(v,"disabletextfilter"),f||n(17,f=""),v&&"yes"!==v&&n(7,v=null),h||n(4,h=null),p||n(3,p="dddd DD MMMM YYYY HH:mm"),g||n(18,g=null),n(2,u=u?Number(u):1),b||n(6,b=null),n(0,d=d?parseInt(d):12),n(1,c=c?parseInt(c):0),m||n(5,m=null),a||n(11,a=[]);try{n(11,a=JSON.parse(l));let t=0;for(const e of a){if(e._id=`${t.toString()+(e.title?e.title.replace(/ /g,"-"):e.description?e.description.replace(/ /g,"-"):Date.now().toString())}`,!e.time){n(10,D=!1),console.warn("UNABLE TO ACTIVATE SEARCH FILTER!");break}e.time=P(e.time).toDate(),(!y||y.valueOf()>e.time.valueOf())&&n(8,y=e.time),(!x||x.valueOf()<e.time.valueOf())&&n(9,x=e.time),t++}D&&!b&&(n(11,a=a.sort(((t,e)=>e.time.valueOf()-t.time.valueOf()))),i||n(22,i=y),o||n(23,o=x),n(11,a=a.filter((t=>t.time.valueOf()>=i.valueOf()&&t.time.valueOf()<=o.valueOf())))),m&&!b?(console.info(m),n(11,a=a.filter((t=>{var e,n;return!(!(null===(e=t.title)||void 0===e?void 0:e.toLowerCase().includes(m.toLowerCase()))&&!(null===(n=t.description)||void 0===n?void 0:n.toLowerCase().includes(m.toLowerCase())))})))):b&&(console.info(m),Y("textFilterVideos",{filter:m||null})),!a.length||b&&u||(console.log("calcpage",a.length,!b||!u,u),n(2,u=Math.floor(a.length/d)+(a.length%d?1:0)))}catch(t){}}},[d,c,u,p,h,m,b,v,y,x,D,a,k,M,function(t){b||n(1,c=t.detail.page),Y("pageChange",{page:t.detail.page,cards:b?a:a.slice(c*d,(c+1)*d)})},function(t){const e=t.target.value;Y("dateFilterVideos",{start:P(e,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"start"}),b||n(22,i=P(e,"YYYY-MM-DD").startOf("day").toDate()),n(5,m=null)},function(t){const e=t.target.value;Y("dateFilterVideos",{end:P(e,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"end"}),b||n(23,o=P(e,"YYYY-MM-DD").endOf("day").toDate()),n(5,m=null)},f,g,s,l,r,i,o,function(){m=this.value,n(5,m),n(19,s),n(21,r),n(7,v),n(17,f),n(4,h),n(3,p),n(18,g),n(2,u),n(6,b),n(0,d),n(1,c),n(11,a),n(20,l),n(8,y),n(9,x),n(10,D),n(22,i),n(23,o)},function(){m=this.value,n(5,m),n(19,s),n(21,r),n(7,v),n(17,f),n(4,h),n(3,p),n(18,g),n(2,u),n(6,b),n(0,d),n(1,c),n(11,a),n(20,l),n(8,y),n(9,x),n(10,D),n(22,i),n(23,o)}]}class pt extends I{constructor(t){super();const e=document.createElement("style");e.textContent='@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.container-fluid{width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col-4{flex:0 0 auto;width:33.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-12{flex:0 0 auto;width:100%}@media(min-width: 576px){}@media(min-width: 768px){.col-md-6{flex:0 0 auto;width:50%}}@media(min-width: 992px){}@media(min-width: 1200px){.col-xl-4{flex:0 0 auto;width:33.33333333%}}@media(min-width: 1400px){.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus{z-index:3}.input-group-text{display:flex;align-items:center;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:0.25rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.was-validated .input-group .form-control:valid{z-index:1}.was-validated .input-group .form-control:valid:focus{z-index:3}.was-validated .input-group .form-control:invalid{z-index:2}.was-validated .input-group .form-control:invalid:focus{z-index:3}.d-block{display:block !important}.d-none{display:none !important}.mb-3{margin-bottom:1rem !important}@media(min-width: 576px){}@media(min-width: 768px){.d-md-block{display:block !important}.d-md-none{display:none !important}}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}:host{font-family:"Roboto", sans-serif}',this.shadowRoot.appendChild(e),j(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},ft,ut,o,{style:19,cards:20,size:0,page:1,pages:2,linkLabel:17,dateformat:3,primarycolor:4,filter:5,id:18,externalfilter:6,disabletextfilter:7,initialdate:8,lastdate:9},null,[-1,-1]),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),E()))}static get observedAttributes(){return["style","cards","size","page","pages","linkLabel","dateformat","primarycolor","filter","id","externalfilter","disabletextfilter","initialdate","lastdate"]}get style(){return this.$$.ctx[19]}set style(t){this.$$set({style:t}),E()}get cards(){return this.$$.ctx[20]}set cards(t){this.$$set({cards:t}),E()}get size(){return this.$$.ctx[0]}set size(t){this.$$set({size:t}),E()}get page(){return this.$$.ctx[1]}set page(t){this.$$set({page:t}),E()}get pages(){return this.$$.ctx[2]}set pages(t){this.$$set({pages:t}),E()}get linkLabel(){return this.$$.ctx[17]}set linkLabel(t){this.$$set({linkLabel:t}),E()}get dateformat(){return this.$$.ctx[3]}set dateformat(t){this.$$set({dateformat:t}),E()}get primarycolor(){return this.$$.ctx[4]}set primarycolor(t){this.$$set({primarycolor:t}),E()}get filter(){return this.$$.ctx[5]}set filter(t){this.$$set({filter:t}),E()}get id(){return this.$$.ctx[18]}set id(t){this.$$set({id:t}),E()}get externalfilter(){return this.$$.ctx[6]}set externalfilter(t){this.$$set({externalfilter:t}),E()}get disabletextfilter(){return this.$$.ctx[7]}set disabletextfilter(t){this.$$set({disabletextfilter:t}),E()}get initialdate(){return this.$$.ctx[8]}set initialdate(t){this.$$set({initialdate:t}),E()}get lastdate(){return this.$$.ctx[9]}set lastdate(t){this.$$set({lastdate:t}),E()}}return customElements.define("hb-gallery-video",pt),pt}();
1
+ var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e){t.appendChild(e)}function s(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function u(){return c(" ")}function f(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function h(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:p(t,e,n)}function m(t,e){t.value=null==e?"":e}function g(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}let v;function y(t){v=t}function $(){if(!v)throw new Error("Function called outside component initialization");return v}function w(){const t=$();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const o=function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(e,n,{cancelable:r});return i.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}const x=[],k=[];let M=[];const D=[],S=Promise.resolve();let _=!1;function Y(t){M.push(t)}const C=new Set;let O=0;function E(){if(0!==O)return;const t=v;do{try{for(;O<x.length;){const t=x[O];O++,y(t),L(t.$$)}}catch(t){throw x.length=0,O=0,t}for(y(null),x.length=0,O=0;k.length;)k.pop()();for(let t=0;t<M.length;t+=1){const e=M[t];C.has(e)||(C.add(e),e())}M.length=0}while(x.length);for(;D.length;)D.pop()();_=!1,C.clear(),y(t)}function L(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const T=new Set;function z(t,e){t&&t.i&&(T.delete(t),t.i(e))}function A(t,e){t.d(1),e.delete(t.key)}function N(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];M.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),M=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function H(t,e){-1===t.$$.dirty[0]&&(x.push(t),_||(_=!0,S.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function j(o,a,s,d,c,u,f,p=[-1]){const h=v;y(o);const m=o.$$={fragment:null,ctx:[],props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:a.target||h.$$.root};f&&f(m.root);let g=!1;if(m.ctx=s?s(o,a.props||{},((t,e,...n)=>{const r=n.length?n[0]:e;return m.ctx&&c(m.ctx[t],m.ctx[t]=r)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](r),g&&H(o,t)),e})):[],m.update(),g=!0,r(m.before_update),m.fragment=!!d&&d(m.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);m.fragment&&m.fragment.l(t),t.forEach(l)}else m.fragment&&m.fragment.c();a.intro&&z(o.$$.fragment),function(t,n,o,a){const{fragment:s,after_update:l}=t.$$;s&&s.m(n,o),a||Y((()=>{const n=t.$$.on_mount.map(e).filter(i);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),l.forEach(Y)}(o,a.target,a.anchor,a.customElement),E()}y(h)}let I;"function"==typeof HTMLElement&&(I=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){N(this,1),this.$destroy=t}$on(e,n){if(!i(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function F(t){var e={exports:{}};return t(e,e.exports),e.exports}var P=F((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",d="month",c="quarter",u="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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 e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,d),o=n-i<0,a=e.clone().add(r+(o?-1:1),d);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:d,y:u,w:l,d:s,D:f,h:a,m:o,s:i,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",$={};$[y]=g;var w="$isDayjsObject",x=function(t){return t instanceof S||!(!t||!t[w])},k=function t(e,n,r){var i;if(!e)return y;if("string"==typeof e){var o=e.toLowerCase();$[o]&&(i=o),n&&($[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;$[s]=e,i=s}return!r&&i&&(y=i),i||!r&&y},M=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},D=v;D.l=k,D.i=x,D.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=k(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var b=g.prototype;return b.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(D.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},b.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()},b.$utils=function(){return D},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(t,e){var n=M(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return M(t)<this.startOf(e)},b.isBefore=function(t,e){return this.endOf(e)<M(t)},b.$g=function(t,e,n){return D.u(t)?this[e]:this.set(n,t)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(t,e){var n=this,r=!!D.u(e)||e,c=D.p(t),p=function(t,e){var i=D.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},h=function(t,e){return D.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case u:return r?p(1,0):p(31,11);case d:return r?p(1,g):p(0,g+1);case l:var y=this.$locale().weekStart||0,$=(m<y?m+7:m)-y;return p(r?b-$:b+(6-$),g);case s:case f:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case i:return h(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(t){return this.startOf(t,!1)},b.$set=function(t,e){var n,l=D.p(t),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=c+"Date",n[f]=c+"Date",n[d]=c+"Month",n[u]=c+"FullYear",n[a]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],h=l===s?this.$D+(e-this.$W):e;if(l===d||l===u){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},b.set=function(t,e){return this.clone().$set(t,e)},b.get=function(t){return this[D.p(t)]()},b.add=function(r,c){var f,p=this;r=Number(r);var h=D.p(c),m=function(t){var e=M(p);return D.w(e.date(e.date()+Math.round(t*r)),p)};if(h===d)return this.set(d,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[o]=e,f[a]=n,f[i]=t,f)[h]||1,b=this.$d.getTime()+r*g;return D.w(b,this)},b.subtract=function(t,e){return this.add(-1*t,e)},b.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=D.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,d=n.months,c=n.meridiem,u=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return D.s(o%12||12,t,"0")},h=c||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return D.s(e.$y,4,"0");case"M":return s+1;case"MM":return D.s(s+1,2,"0");case"MMM":return u(n.monthsShort,s,d,3);case"MMMM":return u(d,s);case"D":return e.$D;case"DD":return D.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(n.weekdaysMin,e.$W,l,2);case"ddd":return u(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return D.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return D.s(a,2,"0");case"s":return String(e.$s);case"ss":return D.s(e.$s,2,"0");case"SSS":return D.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(r,f,p){var h,m=this,g=D.p(f),b=M(r),v=(b.utcOffset()-this.utcOffset())*e,y=this-b,$=function(){return D.m(m,b)};switch(g){case u:h=$()/12;break;case d:h=$();break;case c:h=$()/3;break;case l:h=(y-v)/6048e5;break;case s:h=(y-v)/864e5;break;case a:h=y/n;break;case o:h=y/e;break;case i:h=y/t;break;default:h=y}return p?h:D.a(h)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return $[this.$L]},b.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=k(t,e,!0);return r&&(n.$L=r),n},b.clone=function(){return D.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),_=S.prototype;return M.prototype=_,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",d],["$y",u],["$D",f]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,S,M),t.$i=!0),M},M.locale=k,M.isDayjs=x,M.unix=function(t){return M(1e3*t)},M.en=$[y],M.Ls=$,M.p={},M}()})),U="0.20.14",W=F((function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,r,i="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(r=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===r?void 0:r.length))for(var o=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},a=0,s=Object.keys(t);a<s.length;a++){o(s[a])}return i},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var r=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(r),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,r){return t.formatDate(e,n,r||this.lang)},t.getDefaultLang=function(){var t,e,n,r,i,o="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(o=null===(i=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===i?void 0:i.toLowerCase()),o},t.getDictionaryWord=function(e,n,r){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(i=n[r])||void 0===i?void 0:i[e]))return n[r][e];var o="",a=t.getDefaultLang();if(!r||a!==r){var s=null==n?void 0:n[a];(null==s?void 0:s[e])&&(o=s[e])}return o},t.formatDate=function(e,n,r){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n})),V=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R=/\n/g,J=/^\s*/,B=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Z=/^:\s*/,K=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,Q=/^\s+|\s+$/g,G="";function X(t){return t?t.replace(Q,G):G}var tt=function(t,e){var n,r=null;if(!t||"string"!=typeof t)return r;for(var i,o,a=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function i(t){var e=t.match(R);e&&(n+=e.length);var i=t.lastIndexOf("\n");r=~i?t.length-i:r+t.length}function o(){var t={line:n,column:r};return function(e){return e.position=new a(t),d(),e}}function a(t){this.start=t,this.end={line:n,column:r},this.source=e.source}function s(i){var o=new Error(e.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=e.source,o.line=n,o.column=r,o.source=t,!e.silent)throw o}function l(e){var n=e.exec(t);if(n){var r=n[0];return i(r),t=t.slice(r.length),n}}function d(){l(J)}function c(t){var e;for(t=t||[];e=u();)!1!==e&&t.push(e);return t}function u(){var e=o();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;G!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,G===t.charAt(n-1))return s("End of comment missing");var a=t.slice(2,n-2);return r+=2,i(a),t=t.slice(n),r+=2,e({type:"comment",comment:a})}}function f(){var t=o(),e=l(B);if(e){if(u(),!l(Z))return s("property missing ':'");var n=l(K),r=t({type:"declaration",property:X(e[0].replace(V,G)),value:n?X(n[0].replace(V,G)):G});return l(q),r}}return a.prototype.content=t,d(),function(){var t,e=[];for(c(e);t=f();)!1!==t&&(e.push(t),c(e));return e}()}(t),s="function"==typeof e,l=0,d=a.length;l<d;l++)i=(n=a[l]).property,o=n.value,s?e(i,o,n):o&&(r||(r={}),r[i]=o);return r},et={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"}],parts:[]},nt={vars:[],parts:[]};function rt(t,e,n){const r=t.slice();return r[30]=e[n],r}function it(t){let e,n,r,i,o,f,h,m,g,b,v=!t[7]&&ot(t),y=t[10]&&at(t),$=!t[7]&&st(t),w=t[10]&&lt(t),x=t[11]&&t[11].length&&dt(t);return{c(){e=d("div"),n=d("div"),v&&v.c(),r=u(),i=d("div"),y&&y.c(),o=u(),f=d("div"),h=d("div"),$&&$.c(),m=u(),w&&w.c(),g=u(),x&&x.c(),b=c(""),p(i,"class","col-8 col-xxl-10"),p(n,"class","row"),p(e,"class","d-none d-md-block"),p(h,"class","row"),p(f,"class","d-block d-md-none")},m(t,l){s(t,e,l),a(e,n),v&&v.m(n,null),a(n,r),a(n,i),y&&y.m(i,null),s(t,o,l),s(t,f,l),a(f,h),$&&$.m(h,null),a(f,m),w&&w.m(f,null),s(t,g,l),x&&x.m(t,l),s(t,b,l)},p(t,e){t[7]?v&&(v.d(1),v=null):v?v.p(t,e):(v=ot(t),v.c(),v.m(n,r)),t[10]?y?y.p(t,e):(y=at(t),y.c(),y.m(i,null)):y&&(y.d(1),y=null),t[7]?$&&($.d(1),$=null):$?$.p(t,e):($=st(t),$.c(),$.m(h,null)),t[10]?w?w.p(t,e):(w=lt(t),w.c(),w.m(f,null)):w&&(w.d(1),w=null),t[11]&&t[11].length?x?x.p(t,e):(x=dt(t),x.c(),x.m(b.parentNode,b)):x&&(x.d(1),x=null)},d(t){t&&l(e),v&&v.d(),y&&y.d(),t&&l(o),t&&l(f),$&&$.d(),w&&w.d(),t&&l(g),x&&x.d(t),t&&l(b)}}}function ot(t){let e,n,r,i,o,c,h;return{c(){e=d("div"),n=d("div"),r=d("span"),r.textContent="🔎",i=u(),o=d("input"),p(r,"class","input-group-text"),p(r,"id","search"),p(o,"type","text"),p(o,"class","form-control"),p(o,"placeholder","..."),p(o,"aria-label","Search"),p(o,"aria-describedby","search"),p(n,"class","input-group mb-3"),p(e,"class","col-4 col-xxl-2")},m(l,d){s(l,e,d),a(e,n),a(n,r),a(n,i),a(n,o),m(o,t[5]),c||(h=f(o,"input",t[24]),c=!0)},p(t,e){32&e[0]&&o.value!==t[5]&&m(o,t[5])},d(t){t&&l(e),c=!1,h()}}}function at(t){let e,n,i,o,c,h,m,b,v,y;return{c(){e=d("div"),n=d("span"),n.textContent="📅",i=u(),o=d("input"),h=u(),m=d("input"),p(n,"class","input-group-text"),p(o,"type","date"),p(o,"class","form-control"),g(o,"max-width","200px"),o.value=c=P(t[8]).format("YYYY-MM-DD"),p(m,"type","date"),p(m,"class","form-control"),g(m,"max-width","200px"),m.value=b=P(t[9]).format("YYYY-MM-DD"),p(e,"class","input-group mb-3")},m(r,l){s(r,e,l),a(e,n),a(e,i),a(e,o),a(e,h),a(e,m),v||(y=[f(o,"input",t[15]),f(m,"input",t[16])],v=!0)},p(t,e){256&e[0]&&c!==(c=P(t[8]).format("YYYY-MM-DD"))&&(o.value=c),512&e[0]&&b!==(b=P(t[9]).format("YYYY-MM-DD"))&&(m.value=b)},d(t){t&&l(e),v=!1,r(y)}}}function st(t){let e,n,r,i,o,c,h;return{c(){e=d("div"),n=d("div"),r=d("span"),r.textContent="🔎",i=u(),o=d("input"),p(r,"class","input-group-text"),p(r,"id","search"),p(o,"type","text"),p(o,"class","form-control"),p(o,"placeholder","..."),p(o,"aria-label","Search"),p(o,"aria-describedby","search"),p(n,"class","input-group mb-3"),p(e,"class","col-12")},m(l,d){s(l,e,d),a(e,n),a(n,r),a(n,i),a(n,o),m(o,t[5]),c||(h=f(o,"input",t[25]),c=!0)},p(t,e){32&e[0]&&o.value!==t[5]&&m(o,t[5])},d(t){t&&l(e),c=!1,h()}}}function lt(e){let n,i,o,c,h,m,g,b,v,y;return{c(){n=d("div"),i=d("div"),o=d("div"),c=d("span"),c.textContent="📅",h=u(),m=d("input"),g=u(),b=d("input"),p(c,"class","input-group-text"),p(m,"type","date"),p(m,"class","form-control"),p(b,"type","date"),p(b,"class","form-control"),p(o,"class","input-group mb-3"),p(i,"class","col-12"),p(n,"class","row")},m(t,r){s(t,n,r),a(n,i),a(i,o),a(o,c),a(o,h),a(o,m),a(o,g),a(o,b),v||(y=[f(m,"input",e[15]),f(b,"input",e[16])],v=!0)},p:t,d(t){t&&l(n),v=!1,r(y)}}}function dt(t){let e,n,i,o,c,m,b,v,y,$=[],w=new Map,x=t[6]?t[11]:t[11].slice(t[1]*t[0],(t[1]+1)*t[0]);const k=t=>t[30]._id;for(let e=0;e<x.length;e+=1){let n=rt(t,x,e),r=k(n);w.set(r,$[e]=ct(r,n))}return{c(){e=d("div");for(let t=0;t<$.length;t+=1)$[t].c();n=u(),i=d("nav"),o=d("hb-paginate"),p(e,"class","row"),h(o,"style",t[12]),h(o,"page",c=t[1].toString()),h(o,"pages",m=t[2].toString()),h(o,"primarycolor",b=t[4]||""),g(i,"margin-top","20px"),p(i,"aria-label","Page navigation example")},m(r,l){s(r,e,l);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(e,null);s(r,n,l),s(r,i,l),a(i,o),v||(y=f(o,"pageChange",t[14]),v=!0)},p(t,n){10315&n[0]&&(x=t[6]?t[11]:t[11].slice(t[1]*t[0],(t[1]+1)*t[0]),$=function(t,e,n,i,o,a,s,l,d,c,u,f){let p=t.length,h=a.length,m=p;const g={};for(;m--;)g[t[m].key]=m;const b=[],v=new Map,y=new Map,$=[];for(m=h;m--;){const t=f(o,a,m),r=n(t);let l=s.get(r);l?i&&$.push((()=>l.p(t,e))):(l=c(r,t),l.c()),v.set(r,b[m]=l),r in g&&y.set(r,Math.abs(m-g[r]))}const w=new Set,x=new Set;function k(t){z(t,1),t.m(l,u),s.set(t.key,t),u=t.first,h--}for(;p&&h;){const e=b[h-1],n=t[p-1],r=e.key,i=n.key;e===n?(u=e.first,p--,h--):v.has(i)?!s.has(r)||w.has(r)?k(e):x.has(i)?p--:y.get(r)>y.get(i)?(x.add(r),k(e)):(w.add(i),p--):(d(n,s),p--)}for(;p--;){const e=t[p];v.has(e.key)||d(e,s)}for(;h;)k(b[h-1]);return r($),b}($,n,k,1,t,x,w,e,A,ct,null,rt)),4096&n[0]&&h(o,"style",t[12]),2&n[0]&&c!==(c=t[1].toString())&&h(o,"page",c),4&n[0]&&m!==(m=t[2].toString())&&h(o,"pages",m),16&n[0]&&b!==(b=t[4]||"")&&h(o,"primarycolor",b)},d(t){t&&l(e);for(let t=0;t<$.length;t+=1)$[t].d();t&&l(n),t&&l(i),v=!1,y()}}}function ct(t,e){let n,r,i,o,c,f,m,b,v,y,$;return{key:t,first:null,c(){n=d("div"),r=d("hb-card-video"),$=u(),h(r,"key",i=e[30]._id),h(r,"style",e[13]),h(r,"title",o=e[30].title||""),h(r,"description",c=e[30].description||""),h(r,"time",f=e[30].time?P(e[30].time).format():void 0),h(r,"dateformat",m=e[3]||""),h(r,"pageuri",b=e[30].pageUri||""),h(r,"videosrc",v=e[30].videoSrc||""),h(r,"provider",y=e[30].provider||""),p(n,"class","col-12 col-xxl-3 col-xl-4 col-md-6"),g(n,"padding","12px"),this.first=n},m(t,e){s(t,n,e),a(n,r),a(n,$)},p(t,n){e=t,2115&n[0]&&i!==(i=e[30]._id)&&h(r,"key",i),8192&n[0]&&h(r,"style",e[13]),2115&n[0]&&o!==(o=e[30].title||"")&&h(r,"title",o),2115&n[0]&&c!==(c=e[30].description||"")&&h(r,"description",c),2115&n[0]&&f!==(f=e[30].time?P(e[30].time).format():void 0)&&h(r,"time",f),8&n[0]&&m!==(m=e[3]||"")&&h(r,"dateformat",m),2115&n[0]&&b!==(b=e[30].pageUri||"")&&h(r,"pageuri",b),2115&n[0]&&v!==(v=e[30].videoSrc||"")&&h(r,"videosrc",v),2115&n[0]&&y!==(y=e[30].provider||"")&&h(r,"provider",y)},d(t){t&&l(n)}}}function ut(e){let n,r=e[11]&&(e[11].length||0===e[11].length)&&it(e);return{c(){n=d("div"),r&&r.c(),this.c=t,p(n,"class","container-fluid"),p(n,"part","container")},m(t,e){s(t,n,e),r&&r.m(n,null)},p(t,e){t[11]&&(t[11].length||0===t[11].length)?r?r.p(t,e):(r=it(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&l(n),r&&r.d()}}}function ft(t,e,n){let r,i,o,a,{style:s}=e,{cards:l}=e,{size:d}=e,{page:c}=e,{pages:u}=e,{linkLabel:f}=e,{dateformat:p}=e,{primarycolor:h}=e,{filter:m}=e,{id:g}=e,{externalfilter:b}=e,{disabletextfilter:v}=e,{initialdate:y}=e,{lastdate:x}=e,k="",M="",D=!0;const S=$(),_=w();function Y(t,e){_(t,e),S.dispatchEvent&&S.dispatchEvent(new CustomEvent(t,{detail:e}))}return W.addComponent({repoName:"@htmlbricks/hb-paginate",version:U}),W.addComponent({repoName:"@htmlbricks/hb-card-video",version:U}),t.$$set=t=>{"style"in t&&n(19,s=t.style),"cards"in t&&n(20,l=t.cards),"size"in t&&n(0,d=t.size),"page"in t&&n(1,c=t.page),"pages"in t&&n(2,u=t.pages),"linkLabel"in t&&n(17,f=t.linkLabel),"dateformat"in t&&n(3,p=t.dateformat),"primarycolor"in t&&n(4,h=t.primarycolor),"filter"in t&&n(5,m=t.filter),"id"in t&&n(18,g=t.id),"externalfilter"in t&&n(6,b=t.externalfilter),"disabletextfilter"in t&&n(7,v=t.disabletextfilter),"initialdate"in t&&n(8,y=t.initialdate),"lastdate"in t&&n(9,x=t.lastdate)},t.$$.update=()=>{if(16650239&t.$$.dirty[0]){s&&(n(21,r=tt(s)),n(12,k=W.getChildStyleToPass(r,null==et?void 0:et.vars)),n(13,M=W.getChildStyleToPass(r,null==nt?void 0:nt.vars))),console.log(v,"disabletextfilter"),f||n(17,f=""),v&&"yes"!==v&&n(7,v=null),h||n(4,h=null),p||n(3,p="dddd DD MMMM YYYY HH:mm"),g||n(18,g=null),n(2,u=u?Number(u):1),b||n(6,b=null),n(0,d=d?parseInt(d):12),n(1,c=c?parseInt(c):0),m||n(5,m=null),a||n(11,a=[]);try{n(11,a=JSON.parse(l));let t=0;for(const e of a){if(e._id=`${t.toString()+(e.title?e.title.replace(/ /g,"-"):e.description?e.description.replace(/ /g,"-"):Date.now().toString())}`,!e.time){n(10,D=!1),console.warn("UNABLE TO ACTIVATE SEARCH FILTER!");break}e.time=P(e.time).toDate(),(!y||y.valueOf()>e.time.valueOf())&&n(8,y=e.time),(!x||x.valueOf()<e.time.valueOf())&&n(9,x=e.time),t++}D&&!b&&(n(11,a=a.sort(((t,e)=>e.time.valueOf()-t.time.valueOf()))),i||n(22,i=y),o||n(23,o=x),n(11,a=a.filter((t=>t.time.valueOf()>=i.valueOf()&&t.time.valueOf()<=o.valueOf())))),m&&!b?(console.info(m),n(11,a=a.filter((t=>{var e,n;return!(!(null===(e=t.title)||void 0===e?void 0:e.toLowerCase().includes(m.toLowerCase()))&&!(null===(n=t.description)||void 0===n?void 0:n.toLowerCase().includes(m.toLowerCase())))})))):b&&(console.info(m),Y("textFilterVideos",{filter:m||null})),!a.length||b&&u||(console.log("calcpage",a.length,!b||!u,u),n(2,u=Math.floor(a.length/d)+(a.length%d?1:0)))}catch(t){}}},[d,c,u,p,h,m,b,v,y,x,D,a,k,M,function(t){b||n(1,c=t.detail.page),Y("pageChange",{page:t.detail.page,cards:b?a:a.slice(c*d,(c+1)*d)})},function(t){const e=t.target.value;Y("dateFilterVideos",{start:P(e,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"start"}),b||n(22,i=P(e,"YYYY-MM-DD").startOf("day").toDate()),n(5,m=null)},function(t){const e=t.target.value;Y("dateFilterVideos",{end:P(e,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"end"}),b||n(23,o=P(e,"YYYY-MM-DD").endOf("day").toDate()),n(5,m=null)},f,g,s,l,r,i,o,function(){m=this.value,n(5,m),n(19,s),n(21,r),n(7,v),n(17,f),n(4,h),n(3,p),n(18,g),n(2,u),n(6,b),n(0,d),n(1,c),n(11,a),n(20,l),n(8,y),n(9,x),n(10,D),n(22,i),n(23,o)},function(){m=this.value,n(5,m),n(19,s),n(21,r),n(7,v),n(17,f),n(4,h),n(3,p),n(18,g),n(2,u),n(6,b),n(0,d),n(1,c),n(11,a),n(20,l),n(8,y),n(9,x),n(10,D),n(22,i),n(23,o)}]}class pt extends I{constructor(t){super();const e=document.createElement("style");e.textContent='@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.container-fluid{width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col-4{flex:0 0 auto;width:33.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-12{flex:0 0 auto;width:100%}@media(min-width: 576px){}@media(min-width: 768px){.col-md-6{flex:0 0 auto;width:50%}}@media(min-width: 992px){}@media(min-width: 1200px){.col-xl-4{flex:0 0 auto;width:33.33333333%}}@media(min-width: 1400px){.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus{z-index:3}.input-group-text{display:flex;align-items:center;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:0.25rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.was-validated .input-group .form-control:valid{z-index:1}.was-validated .input-group .form-control:valid:focus{z-index:3}.was-validated .input-group .form-control:invalid{z-index:2}.was-validated .input-group .form-control:invalid:focus{z-index:3}.d-block{display:block !important}.d-none{display:none !important}.mb-3{margin-bottom:1rem !important}@media(min-width: 576px){}@media(min-width: 768px){.d-md-block{display:block !important}.d-md-none{display:none !important}}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}:host{font-family:"Roboto", sans-serif}',this.shadowRoot.appendChild(e),j(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},ft,ut,o,{style:19,cards:20,size:0,page:1,pages:2,linkLabel:17,dateformat:3,primarycolor:4,filter:5,id:18,externalfilter:6,disabletextfilter:7,initialdate:8,lastdate:9},null,[-1,-1]),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),E()))}static get observedAttributes(){return["style","cards","size","page","pages","linkLabel","dateformat","primarycolor","filter","id","externalfilter","disabletextfilter","initialdate","lastdate"]}get style(){return this.$$.ctx[19]}set style(t){this.$$set({style:t}),E()}get cards(){return this.$$.ctx[20]}set cards(t){this.$$set({cards:t}),E()}get size(){return this.$$.ctx[0]}set size(t){this.$$set({size:t}),E()}get page(){return this.$$.ctx[1]}set page(t){this.$$set({page:t}),E()}get pages(){return this.$$.ctx[2]}set pages(t){this.$$set({pages:t}),E()}get linkLabel(){return this.$$.ctx[17]}set linkLabel(t){this.$$set({linkLabel:t}),E()}get dateformat(){return this.$$.ctx[3]}set dateformat(t){this.$$set({dateformat:t}),E()}get primarycolor(){return this.$$.ctx[4]}set primarycolor(t){this.$$set({primarycolor:t}),E()}get filter(){return this.$$.ctx[5]}set filter(t){this.$$set({filter:t}),E()}get id(){return this.$$.ctx[18]}set id(t){this.$$set({id:t}),E()}get externalfilter(){return this.$$.ctx[6]}set externalfilter(t){this.$$set({externalfilter:t}),E()}get disabletextfilter(){return this.$$.ctx[7]}set disabletextfilter(t){this.$$set({disabletextfilter:t}),E()}get initialdate(){return this.$$.ctx[8]}set initialdate(t){this.$$set({initialdate:t}),E()}get lastdate(){return this.$$.ctx[9]}set lastdate(t){this.$$set({lastdate:t}),E()}}return customElements.define("hb-gallery-video",pt),pt}();
2
2
  //# sourceMappingURL=release.js.map