2023-04-13 22:17:56 +02:00
function G ( ) {
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
function W ( t ) {
return t ( ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function Y ( ) {
2022-05-10 15:31:29 +02:00
return /* @__PURE__ */ Object . create ( null ) ;
}
2023-04-13 22:17:56 +02:00
function U ( t ) {
2022-09-05 12:32:27 +02:00
t . forEach ( W ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function ge ( t ) {
2022-09-05 12:32:27 +02:00
return typeof t == "function" ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function _e ( t , e ) {
2022-09-05 12:32:27 +02:00
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function" ;
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
let B ;
2023-04-13 22:17:56 +02:00
function H ( t , e ) {
2022-09-05 12:32:27 +02:00
return B || ( B = document . createElement ( "a" ) ) , B . href = e , t === B . href ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function ye ( t ) {
2022-09-05 12:32:27 +02:00
return Object . keys ( t ) . length === 0 ;
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
function u ( t , e ) {
t . appendChild ( e ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function p ( t , e , i ) {
2022-09-05 12:32:27 +02:00
t . insertBefore ( e , i || null ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function k ( t ) {
2022-09-05 12:32:27 +02:00
t . parentNode . removeChild ( t ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function be ( t , e ) {
2022-09-05 12:32:27 +02:00
for ( let i = 0 ; i < t . length ; i += 1 )
t [ i ] && t [ i ] . d ( e ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function m ( t ) {
2022-09-05 12:32:27 +02:00
return document . createElement ( t ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function $ ( t ) {
2022-09-05 12:32:27 +02:00
return document . createTextNode ( t ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function M ( ) {
return $ ( " " ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function pe ( ) {
return $ ( "" ) ;
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
function a ( t , e , i ) {
i == null ? t . removeAttribute ( e ) : t . getAttribute ( e ) !== i && t . setAttribute ( e , i ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function xe ( t ) {
2022-09-05 12:32:27 +02:00
return Array . from ( t . childNodes ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function T ( t , e ) {
2022-09-05 12:32:27 +02:00
e = "" + e , t . wholeText !== e && ( t . data = e ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function L ( t , e , i ) {
2022-09-05 12:32:27 +02:00
t . classList [ i ? "add" : "remove" ] ( e ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function ve ( t ) {
2022-09-05 12:32:27 +02:00
const e = { } ;
for ( const i of t )
e [ i . name ] = i . value ;
return e ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
let O ;
function I ( t ) {
O = t ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function $e ( ) {
if ( ! O )
2022-05-10 15:31:29 +02:00
throw new Error ( "Function called outside component initialization" ) ;
2023-04-13 22:17:56 +02:00
return O ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function ke ( t ) {
$e ( ) . $$ . on _mount . push ( t ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
const R = [ ] , Z = [ ] , P = [ ] , ee = [ ] , Ee = Promise . resolve ( ) ;
2022-09-05 12:32:27 +02:00
let K = ! 1 ;
2023-04-13 22:17:56 +02:00
function je ( ) {
K || ( K = ! 0 , Ee . then ( x ) ) ;
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
function Q ( t ) {
P . push ( t ) ;
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
const J = /* @__PURE__ */ new Set ( ) ;
let D = 0 ;
2023-04-13 22:17:56 +02:00
function x ( ) {
const t = O ;
2022-05-10 15:31:29 +02:00
do {
2023-04-13 22:17:56 +02:00
for ( ; D < R . length ; ) {
const e = R [ D ] ;
D ++ , I ( e ) , Se ( e . $$ ) ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
for ( I ( null ) , R . length = 0 , D = 0 ; Z . length ; )
Z . pop ( ) ( ) ;
2022-09-05 12:32:27 +02:00
for ( let e = 0 ; e < P . length ; e += 1 ) {
const i = P [ e ] ;
J . has ( i ) || ( J . add ( i ) , i ( ) ) ;
}
P . length = 0 ;
2023-04-13 22:17:56 +02:00
} while ( R . length ) ;
for ( ; ee . length ; )
ee . pop ( ) ( ) ;
K = ! 1 , J . clear ( ) , I ( t ) ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
function Se ( t ) {
2022-09-05 12:32:27 +02:00
if ( t . fragment !== null ) {
2023-04-13 22:17:56 +02:00
t . update ( ) , U ( t . before _update ) ;
2022-09-05 12:32:27 +02:00
const e = t . dirty ;
t . dirty = [ - 1 ] , t . fragment && t . fragment . p ( t . ctx , e ) , t . after _update . forEach ( Q ) ;
}
}
2023-04-13 22:17:56 +02:00
const ze = /* @__PURE__ */ new Set ( ) ;
function Ce ( t , e ) {
t && t . i && ( ze . delete ( t ) , t . i ( e ) ) ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
function Ae ( t , e , i , l ) {
const { fragment : n , on _mount : r , on _destroy : o , after _update : f } = t . $$ ;
2023-01-13 22:17:43 +01:00
n && n . m ( e , i ) , l || Q ( ( ) => {
2023-04-13 22:17:56 +02:00
const c = r . map ( W ) . filter ( ge ) ;
o ? o . push ( ... c ) : U ( c ) , t . $$ . on _mount = [ ] ;
2022-09-05 12:32:27 +02:00
} ) , f . forEach ( Q ) ;
}
2023-04-13 22:17:56 +02:00
function Me ( t , e ) {
2022-09-05 12:32:27 +02:00
const i = t . $$ ;
2023-04-13 22:17:56 +02:00
i . fragment !== null && ( U ( i . on _destroy ) , i . fragment && i . fragment . d ( e ) , i . on _destroy = i . fragment = null , i . ctx = [ ] ) ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
function Ne ( t , e ) {
t . $$ . dirty [ 0 ] === - 1 && ( R . push ( t ) , je ( ) , t . $$ . dirty . fill ( 0 ) ) , t . $$ . dirty [ e / 31 | 0 ] |= 1 << e % 31 ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
function we ( t , e , i , l , n , r , o , f = [ - 1 ] ) {
const c = O ;
I ( t ) ;
2022-09-05 12:32:27 +02:00
const s = t . $$ = {
2022-05-10 15:31:29 +02:00
fragment : null ,
ctx : null ,
2023-04-13 22:17:56 +02:00
props : r ,
update : G ,
2023-01-13 22:17:43 +01:00
not _equal : n ,
2023-04-13 22:17:56 +02:00
bound : Y ( ) ,
2022-05-10 15:31:29 +02:00
on _mount : [ ] ,
on _destroy : [ ] ,
on _disconnect : [ ] ,
before _update : [ ] ,
after _update : [ ] ,
2022-09-05 12:32:27 +02:00
context : new Map ( e . context || ( c ? c . $$ . context : [ ] ) ) ,
2023-04-13 22:17:56 +02:00
callbacks : Y ( ) ,
2022-09-05 12:32:27 +02:00
dirty : f ,
skip _bound : ! 1 ,
root : e . target || c . $$ . root
2022-05-10 15:31:29 +02:00
} ;
2023-04-13 22:17:56 +02:00
o && o ( s . root ) ;
let w = ! 1 ;
if ( s . ctx = i ? i ( t , e . props || { } , ( g , _ , ... A ) => {
const y = A . length ? A [ 0 ] : _ ;
return s . ctx && n ( s . ctx [ g ] , s . ctx [ g ] = y ) && ( ! s . skip _bound && s . bound [ g ] && s . bound [ g ] ( y ) , w && Ne ( t , g ) ) , _ ;
} ) : [ ] , s . update ( ) , w = ! 0 , U ( s . before _update ) , s . fragment = l ? l ( s . ctx ) : ! 1 , e . target ) {
2022-09-05 12:32:27 +02:00
if ( e . hydrate ) {
2023-04-13 22:17:56 +02:00
const g = xe ( e . target ) ;
s . fragment && s . fragment . l ( g ) , g . forEach ( k ) ;
2022-09-05 12:32:27 +02:00
} else
s . fragment && s . fragment . c ( ) ;
2023-04-13 22:17:56 +02:00
e . intro && Ce ( t . $$ . fragment ) , Ae ( t , e . target , e . anchor , e . customElement ) , x ( ) ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
I ( c ) ;
2022-09-05 12:32:27 +02:00
}
let X ;
typeof HTMLElement == "function" && ( X = class extends HTMLElement {
constructor ( ) {
super ( ) , this . attachShadow ( { mode : "open" } ) ;
}
connectedCallback ( ) {
const { on _mount : t } = this . $$ ;
2023-04-13 22:17:56 +02:00
this . $$ . on _disconnect = t . map ( W ) . filter ( ge ) ;
2022-09-05 12:32:27 +02:00
for ( const e in this . $$ . slotted )
this . appendChild ( this . $$ . slotted [ e ] ) ;
}
attributeChangedCallback ( t , e , i ) {
this [ t ] = i ;
}
disconnectedCallback ( ) {
2023-04-13 22:17:56 +02:00
U ( this . $$ . on _disconnect ) ;
2022-09-05 12:32:27 +02:00
}
$destroy ( ) {
2023-04-13 22:17:56 +02:00
Me ( this , 1 ) , this . $destroy = G ;
2022-09-05 12:32:27 +02:00
}
$on ( t , e ) {
const i = this . $$ . callbacks [ t ] || ( this . $$ . callbacks [ t ] = [ ] ) ;
return i . push ( e ) , ( ) => {
2023-01-13 22:17:43 +01:00
const l = i . indexOf ( e ) ;
l !== - 1 && i . splice ( l , 1 ) ;
2022-09-05 12:32:27 +02:00
} ;
}
$set ( t ) {
2023-04-13 22:17:56 +02:00
this . $$set && ! ye ( t ) && ( this . $$ . skip _bound = ! 0 , this . $$set ( t ) , this . $$ . skip _bound = ! 1 ) ;
2022-09-05 12:32:27 +02:00
}
} ) ;
function F ( t , e = "long" ) {
const i = e === "long" ? {
weekday : "long" ,
month : "long" ,
day : "numeric" ,
hour : "2-digit" ,
minute : "2-digit"
} : { hour : "2-digit" , minute : "2-digit" } ;
return new Date ( t * 1e3 ) . toLocaleString ( void 0 , i ) ;
2022-05-10 15:31:29 +02:00
}
2022-09-05 12:32:27 +02:00
function V ( t ) {
return t . multidate ? F ( t . start _datetime ) + " - " + F ( t . end _datetime ) : F ( t . start _datetime ) + ( t . end _datetime ? "-" + F ( t . end _datetime , "short" ) : "" ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function te ( t , e , i ) {
2023-01-13 22:17:43 +01:00
const l = t . slice ( ) ;
return l [ 12 ] = e [ i ] , l ;
}
2023-04-13 22:17:56 +02:00
function ie ( t , e , i ) {
2023-01-13 22:17:43 +01:00
const l = t . slice ( ) ;
return l [ 15 ] = e [ i ] , l ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
function le ( t ) {
2022-09-05 12:32:27 +02:00
let e ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "link" ) , a ( e , "rel" , "stylesheet" ) , a ( e , "href" , t [ 4 ] ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-01-13 22:17:43 +01:00
m ( i , l ) {
2023-04-13 22:17:56 +02:00
p ( i , e , l ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-01-13 22:17:43 +01:00
p ( i , l ) {
l & 16 && a ( e , "href" , i [ 4 ] ) ;
2022-05-10 15:31:29 +02:00
} ,
2022-09-05 12:32:27 +02:00
d ( i ) {
2023-04-13 22:17:56 +02:00
i && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function ne ( t ) {
let e , i , l = t [ 1 ] && t [ 3 ] === "true" && re ( t ) , n = t [ 5 ] , r = [ ] ;
for ( let o = 0 ; o < n . length ; o += 1 )
r [ o ] = fe ( te ( t , n , o ) ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "div" ) , l && l . c ( ) , i = M ( ) ;
for ( let o = 0 ; o < r . length ; o += 1 )
r [ o ] . c ( ) ;
a ( e , "id" , "gancioEvents" ) , L ( e , "dark" , t [ 2 ] === "dark" ) , L ( e , "light" , t [ 2 ] === "light" ) , L ( e , "sidebar" , t [ 3 ] === "true" ) , L ( e , "nosidebar" , t [ 3 ] !== "true" ) ;
} ,
m ( o , f ) {
p ( o , e , f ) , l && l . m ( e , null ) , u ( e , i ) ;
for ( let c = 0 ; c < r . length ; c += 1 )
r [ c ] . m ( e , null ) ;
} ,
p ( o , f ) {
if ( o [ 1 ] && o [ 3 ] === "true" ? l ? l . p ( o , f ) : ( l = re ( o ) , l . c ( ) , l . m ( e , i ) ) : l && ( l . d ( 1 ) , l = null ) , f & 41 ) {
n = o [ 5 ] ;
2022-09-05 12:32:27 +02:00
let c ;
2023-01-13 22:17:43 +01:00
for ( c = 0 ; c < n . length ; c += 1 ) {
2023-04-13 22:17:56 +02:00
const s = te ( o , n , c ) ;
r [ c ] ? r [ c ] . p ( s , f ) : ( r [ c ] = fe ( s ) , r [ c ] . c ( ) , r [ c ] . m ( e , null ) ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
for ( ; c < r . length ; c += 1 )
r [ c ] . d ( 1 ) ;
r . length = n . length ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
f & 4 && L ( e , "dark" , o [ 2 ] === "dark" ) , f & 4 && L ( e , "light" , o [ 2 ] === "light" ) , f & 8 && L ( e , "sidebar" , o [ 3 ] === "true" ) , f & 8 && L ( e , "nosidebar" , o [ 3 ] !== "true" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( o ) {
o && k ( e ) , l && l . d ( ) , be ( r , o ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function re ( t ) {
let e , i , l , n , r , o , f ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "a" ) , i = m ( "div" ) , l = m ( "div" ) , n = $ ( t [ 1 ] ) , r = M ( ) , o = m ( "img" ) , a ( l , "class" , "title" ) , a ( o , "id" , "logo" ) , a ( o , "alt" , "logo" ) , H ( o . src , f = t [ 0 ] + "/logo.png" ) || a ( o , "src" , f ) , a ( i , "class" , "content" ) , a ( e , "href" , t [ 0 ] ) , a ( e , "target" , "_blank" ) , a ( e , "id" , "header" ) ;
2022-05-10 15:31:29 +02:00
} ,
2022-09-05 12:32:27 +02:00
m ( c , s ) {
2023-04-13 22:17:56 +02:00
p ( c , e , s ) , u ( e , i ) , u ( i , l ) , u ( l , n ) , u ( i , r ) , u ( i , o ) ;
2022-05-10 15:31:29 +02:00
} ,
2022-09-05 12:32:27 +02:00
p ( c , s ) {
2023-04-13 22:17:56 +02:00
s & 2 && T ( n , c [ 1 ] ) , s & 1 && ! H ( o . src , f = c [ 0 ] + "/logo.png" ) && a ( o , "src" , f ) , s & 1 && a ( e , "href" , c [ 0 ] ) ;
2022-05-10 15:31:29 +02:00
} ,
2022-09-05 12:32:27 +02:00
d ( c ) {
2023-04-13 22:17:56 +02:00
c && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function oe ( t ) {
2022-09-05 12:32:27 +02:00
let e ;
2023-04-13 22:17:56 +02:00
function i ( r , o ) {
return r [ 12 ] . media . length ? Le : Te ;
2022-05-10 15:31:29 +02:00
}
2023-01-13 22:17:43 +01:00
let l = i ( t ) , n = l ( t ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "div" ) , n . c ( ) , a ( e , "class" , "img" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( r , o ) {
p ( r , e , o ) , n . m ( e , null ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( r , o ) {
l === ( l = i ( r ) ) && n ? n . p ( r , o ) : ( n . d ( 1 ) , n = l ( r ) , n && ( n . c ( ) , n . m ( e , null ) ) ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( r ) {
r && k ( e ) , n . d ( ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function Te ( t ) {
2023-01-13 22:17:43 +01:00
let e , i , l ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "img" ) , a ( e , "style" , "aspect-ratio=1.7778;" ) , a ( e , "alt" , i = t [ 12 ] . title ) , H ( e . src , l = t [ 0 ] + "/fallbackimage.png" ) || a ( e , "src" , l ) , a ( e , "loading" , "lazy" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( n , r ) {
p ( n , e , r ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( n , r ) {
r & 32 && i !== ( i = n [ 12 ] . title ) && a ( e , "alt" , i ) , r & 1 && ! H ( e . src , l = n [ 0 ] + "/fallbackimage.png" ) && a ( e , "src" , l ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-01-13 22:17:43 +01:00
d ( n ) {
2023-04-13 22:17:56 +02:00
n && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function Le ( t ) {
2023-01-13 22:17:43 +01:00
let e , i , l , n ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "img" ) , a ( e , "style" , i = "object-position: " + ue ( t [ 12 ] ) + "; aspect-ratio=1.7778;" ) , a ( e , "alt" , l = t [ 12 ] . media [ 0 ] . name ) , H ( e . src , n = t [ 0 ] + "/media/thumb/" + t [ 12 ] . media [ 0 ] . url ) || a ( e , "src" , n ) , a ( e , "loading" , "lazy" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( r , o ) {
p ( r , e , o ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( r , o ) {
o & 32 && i !== ( i = "object-position: " + ue ( r [ 12 ] ) + "; aspect-ratio=1.7778;" ) && a ( e , "style" , i ) , o & 32 && l !== ( l = r [ 12 ] . media [ 0 ] . name ) && a ( e , "alt" , l ) , o & 33 && ! H ( e . src , n = r [ 0 ] + "/media/thumb/" + r [ 12 ] . media [ 0 ] . url ) && a ( e , "src" , n ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( r ) {
r && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function ae ( t ) {
let e , i = t [ 12 ] . place . address + "" , l ;
return {
c ( ) {
e = m ( "span" ) , l = $ ( i ) , a ( e , "class" , "subtitle" ) ;
} ,
m ( n , r ) {
p ( n , e , r ) , u ( e , l ) ;
} ,
p ( n , r ) {
r & 32 && i !== ( i = n [ 12 ] . place . address + "" ) && T ( l , i ) ;
} ,
d ( n ) {
n && k ( e ) ;
}
} ;
}
function se ( t ) {
2023-01-13 22:17:43 +01:00
let e , i = t [ 12 ] . tags , l = [ ] ;
for ( let n = 0 ; n < i . length ; n += 1 )
2023-04-13 22:17:56 +02:00
l [ n ] = ce ( ie ( t , i , n ) ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "div" ) ;
2023-01-13 22:17:43 +01:00
for ( let n = 0 ; n < l . length ; n += 1 )
l [ n ] . c ( ) ;
2022-09-05 12:32:27 +02:00
a ( e , "class" , "tags" ) ;
} ,
2023-04-13 22:17:56 +02:00
m ( n , r ) {
p ( n , e , r ) ;
for ( let o = 0 ; o < l . length ; o += 1 )
l [ o ] . m ( e , null ) ;
2022-09-05 12:32:27 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( n , r ) {
if ( r & 32 ) {
2023-01-13 22:17:43 +01:00
i = n [ 12 ] . tags ;
2023-04-13 22:17:56 +02:00
let o ;
for ( o = 0 ; o < i . length ; o += 1 ) {
const f = ie ( n , i , o ) ;
l [ o ] ? l [ o ] . p ( f , r ) : ( l [ o ] = ce ( f ) , l [ o ] . c ( ) , l [ o ] . m ( e , null ) ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
for ( ; o < l . length ; o += 1 )
l [ o ] . d ( 1 ) ;
2023-01-13 22:17:43 +01:00
l . length = i . length ;
2022-05-10 15:31:29 +02:00
}
} ,
2023-01-13 22:17:43 +01:00
d ( n ) {
2023-04-13 22:17:56 +02:00
n && k ( e ) , be ( l , n ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function ce ( t ) {
2023-01-13 22:17:43 +01:00
let e , i , l = t [ 15 ] + "" , n ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "span" ) , i = $ ( "#" ) , n = $ ( l ) , a ( e , "class" , "tag" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( r , o ) {
p ( r , e , o ) , u ( e , i ) , u ( e , n ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( r , o ) {
o & 32 && l !== ( l = r [ 15 ] + "" ) && T ( n , l ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( r ) {
r && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function fe ( t ) {
let e , i , l , n , r = V ( t [ 12 ] ) + "" , o , f , c , s = t [ 12 ] . title + "" , w , g , _ , A , y = t [ 12 ] . place . name + "" , d , z , h , v , C , q , E = t [ 3 ] !== "true" && oe ( t ) , j = t [ 12 ] . place . name !== "online" && ae ( t ) , S = t [ 12 ] . tags . length && se ( t ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "a" ) , E && E . c ( ) , i = M ( ) , l = m ( "div" ) , n = m ( "div" ) , o = $ ( r ) , f = M ( ) , c = m ( "div" ) , w = $ ( s ) , g = M ( ) , _ = m ( "span" ) , A = $ ( '@"' ) , d = $ ( y ) , z = $ ( ` "
` ), j && j.c(), h = M(), S && S.c(), v = M(), a(n, "class", "subtitle"), a(c, "class", "title"), a(_, "class", "place"), a(l, "class", "content"), a(e, "href", C = t[0] + "/event/" + (t[12].slug || t[12].id)), a(e, "class", "event"), a(e, "title", q = t[12].title), a(e, "target", "_blank");
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( b , N ) {
p ( b , e , N ) , E && E . m ( e , null ) , u ( e , i ) , u ( e , l ) , u ( l , n ) , u ( n , o ) , u ( l , f ) , u ( l , c ) , u ( c , w ) , u ( l , g ) , u ( l , _ ) , u ( _ , A ) , u ( _ , d ) , u ( _ , z ) , j && j . m ( _ , null ) , u ( l , h ) , S && S . m ( l , null ) , u ( e , v ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( b , N ) {
b [ 3 ] !== "true" ? E ? E . p ( b , N ) : ( E = oe ( b ) , E . c ( ) , E . m ( e , i ) ) : E && ( E . d ( 1 ) , E = null ) , N & 32 && r !== ( r = V ( b [ 12 ] ) + "" ) && T ( o , r ) , N & 32 && s !== ( s = b [ 12 ] . title + "" ) && T ( w , s ) , N & 32 && y !== ( y = b [ 12 ] . place . name + "" ) && T ( d , y ) , b [ 12 ] . place . name !== "online" ? j ? j . p ( b , N ) : ( j = ae ( b ) , j . c ( ) , j . m ( _ , null ) ) : j && ( j . d ( 1 ) , j = null ) , b [ 12 ] . tags . length ? S ? S . p ( b , N ) : ( S = se ( b ) , S . c ( ) , S . m ( l , null ) ) : S && ( S . d ( 1 ) , S = null ) , N & 33 && C !== ( C = b [ 0 ] + "/event/" + ( b [ 12 ] . slug || b [ 12 ] . id ) ) && a ( e , "href" , C ) , N & 32 && q !== ( q = b [ 12 ] . title ) && a ( e , "title" , q ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( b ) {
b && k ( e ) , E && E . d ( ) , j && j . d ( ) , S && S . d ( ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function Ge ( t ) {
let e , i , l = t [ 4 ] && le ( t ) , n = t [ 5 ] . length && ne ( t ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
l && l . c ( ) , e = M ( ) , n && n . c ( ) , i = pe ( ) , this . c = G ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( r , o ) {
l && l . m ( r , o ) , p ( r , e , o ) , n && n . m ( r , o ) , p ( r , i , o ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( r , [ o ] ) {
r [ 4 ] ? l ? l . p ( r , o ) : ( l = le ( r ) , l . c ( ) , l . m ( e . parentNode , e ) ) : l && ( l . d ( 1 ) , l = null ) , r [ 5 ] . length ? n ? n . p ( r , o ) : ( n = ne ( r ) , n . c ( ) , n . m ( i . parentNode , i ) ) : n && ( n . d ( 1 ) , n = null ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
i : G ,
o : G ,
d ( r ) {
l && l . d ( r ) , r && k ( e ) , n && n . d ( r ) , r && k ( i ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function ue ( t ) {
2022-09-05 12:32:27 +02:00
if ( t . media && t . media [ 0 ] . focalpoint ) {
const e = t . media [ 0 ] . focalpoint ;
return ` ${ ( e [ 0 ] + 1 ) * 50 } % ${ ( e [ 1 ] + 1 ) * 50 } % ` ;
2022-05-10 15:31:29 +02:00
}
return "center center" ;
}
2023-04-13 22:17:56 +02:00
function He ( t , e , i ) {
let { baseurl : l = "" } = e , { title : n = "" } = e , { maxlength : r = ! 1 } = e , { tags : o = "" } = e , { places : f = "" } = e , { theme : c = "light" } = e , { show _recurrent : s = ! 1 } = e , { sidebar : w = "true" } = e , { external _style : g = "" } = e , _ = ! 1 , A = [ ] ;
function y ( d ) {
2022-09-05 12:32:27 +02:00
if ( ! _ )
2022-05-10 15:31:29 +02:00
return ;
2023-04-13 22:17:56 +02:00
const z = [ ] ;
r && z . push ( ` max= ${ r } ` ) , o && z . push ( ` tags= ${ o } ` ) , f && z . push ( ` places= ${ f } ` ) , z . push ( ` show_recurrent= ${ s ? "true" : "false" } ` ) , fetch ( ` ${ l } /api/events? ${ z . join ( "&" ) } ` ) . then ( ( h ) => h . json ( ) ) . then ( ( h ) => {
i ( 5 , A = h ) ;
2022-09-05 12:32:27 +02:00
} ) . catch ( ( h ) => {
console . error ( "Error loading Gancio API -> " , h ) ;
2022-05-10 15:31:29 +02:00
} ) ;
}
2023-04-13 22:17:56 +02:00
return ke ( ( ) => {
_ = ! 0 , y ( ) ;
2022-09-05 12:32:27 +02:00
} ) , t . $$set = ( d ) => {
2023-04-13 22:17:56 +02:00
"baseurl" in d && i ( 0 , l = d . baseurl ) , "title" in d && i ( 1 , n = d . title ) , "maxlength" in d && i ( 6 , r = d . maxlength ) , "tags" in d && i ( 7 , o = d . tags ) , "places" in d && i ( 8 , f = d . places ) , "theme" in d && i ( 2 , c = d . theme ) , "show_recurrent" in d && i ( 9 , s = d . show _recurrent ) , "sidebar" in d && i ( 3 , w = d . sidebar ) , "external_style" in d && i ( 4 , g = d . external _style ) ;
2022-09-05 12:32:27 +02:00
} , t . $$ . update = ( ) => {
2023-04-13 22:17:56 +02:00
t . $$ . dirty & 975 && y ( ) ;
2022-09-05 12:32:27 +02:00
} , [
l ,
2023-01-13 22:17:43 +01:00
n ,
2022-09-05 12:32:27 +02:00
c ,
2023-04-13 22:17:56 +02:00
w ,
g ,
A ,
2022-09-05 12:32:27 +02:00
r ,
2023-04-13 22:17:56 +02:00
o ,
2022-09-05 12:32:27 +02:00
f ,
s
2022-05-10 15:31:29 +02:00
] ;
}
2023-04-13 22:17:56 +02:00
class Re extends X {
2022-09-05 12:32:27 +02:00
constructor ( e ) {
super ( ) , this . shadowRoot . innerHTML = ` <style>#gancioEvents{font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI' , Roboto , 'Helvetica Neue' , Arial , 'Noto Sans' , sans - serif ,
'Apple Color Emoji' , 'Segoe UI Emoji' , 'Segoe UI Symbol' ,
'Noto Color Emoji' ; overflow - x : hidden ; width : 100 % ; box - sizing : content - box ; margin : 0 auto ; font - size : 1 rem ; text - align : left } . nosidebar { max - width : 1200 px } # header { padding : 1.2 rem 1 rem ; background - color : var ( -- bg - odd - color ) } . sidebar { max - width : 500 px ; box - shadow : rgba ( 60 , 64 , 67 , 0.4 ) 0 px 1 px 2 px 0 px ,
rgba ( 60 , 64 , 67 , 0.25 ) 0 px 1 px 3 px 1 px ; border - radius : 5 px ; font - size : 1 rem } . event . img { width : 100 % ; max - width : 450 px ; max - height : 250 px ; aspect - ratio : 1.7778 ; flex : 1 0 auto } @ media screen and ( max - width : 800 px ) { . event { flex - wrap : wrap } . event . img { max - width : 100 % } } . event img { object - fit : cover ; border - radius : 15 px ; width : 100 % ; height : 100 % ; box - shadow : rgba ( 50 , 50 , 93 , 0.25 ) 0 px 6 px 12 px - 2 px ,
rgba ( 0 , 0 , 0 , 0.3 ) 0 px 3 px 7 px - 3 px } . nosidebar . event { margin - bottom : 2 rem } . nosidebar . content { margin - left : 1 rem ; margin - top : 5 px ; text - align : left } . tags { margin - top : 2 px } # logo { position : absolute ; top : 10 px ; right : 10 px ; height : 40 px } a { text - decoration : none ; color : var ( -- text - color ) ; display : flex ; padding : 8 px 20 px ; margin : 0 ; line - height : 1.275 rem ; font - weight : 400 ; font - size : 0.875 rem ; position : relative ; transition : background - color 0.3 s cubic - bezier ( 0.25 , 0.8 , 0.5 , 1 ) ,
2023-04-13 22:17:56 +02:00
padding 0.3 s ; box - sizing : content - box } a : hover . title , a : focus . title , a : active . title { text - decoration : underline } . dark { -- bg - odd - color : # 161616 ; -- bg - even - color : # 222 ; -- bg - hover - color : # 333 ; -- text - color : white ; -- title - color : white ; -- line - color : rgba ( 120 , 120 , 120 , 0.2 ) } . light { -- bg - odd - color : # f5f5f5 ; -- bg - even - color : # fafafa ; -- bg - hover - color : # eee ; -- text - color : # 222 ; -- title - color : black ; -- line - color : rgba ( 220 , 220 , 220 , 0.9 ) } . sidebar a { background - color : var ( -- bg - even - color ) ; border - bottom : 1 px solid var ( -- line - color ) } . sidebar a : hover , . sidebar a : focus , . sidebar a : active { background - color : var ( -- bg - hover - color ) ; padding - left : 15 px ; padding - right : 25 px } . place { font - weight : 400 ; font - size : 1.2 rem ; line - height : 1.4 rem ; color : orangered } . title { color : var ( -- title - color ) ; font - weight : bold ; font - size : 1.3 rem ; line - height : 1.1 em } . nosidebar . title { font - size : 1.9 em ; line - height : 1.1 em } . subtitle { font - size : 1 rem ; line - height : 1.1 em ; color : var ( -- title - color ) ; opacity : 0.9 } . tag { margin - right : 10 px ; display : inline - block } < / s t y l e > ` , w e (
2022-09-05 12:32:27 +02:00
this ,
{
target : this . shadowRoot ,
2023-04-13 22:17:56 +02:00
props : ve ( this . attributes ) ,
2022-09-05 12:32:27 +02:00
customElement : ! 0
} ,
He ,
2023-04-13 22:17:56 +02:00
Ge ,
_e ,
2022-09-05 12:32:27 +02:00
{
baseurl : 0 ,
title : 1 ,
maxlength : 6 ,
tags : 7 ,
places : 8 ,
theme : 2 ,
show _recurrent : 9 ,
sidebar : 3 ,
external _style : 4
} ,
null
2023-04-13 22:17:56 +02:00
) , e && ( e . target && p ( e . target , this , e . anchor ) , e . props && ( this . $set ( e . props ) , x ( ) ) ) ;
2022-05-10 15:31:29 +02:00
}
static get observedAttributes ( ) {
return [
"baseurl" ,
"title" ,
"maxlength" ,
"tags" ,
"places" ,
"theme" ,
"show_recurrent" ,
"sidebar" ,
"external_style"
] ;
}
get baseurl ( ) {
return this . $$ . ctx [ 0 ] ;
}
2022-09-05 12:32:27 +02:00
set baseurl ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { baseurl : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get title ( ) {
return this . $$ . ctx [ 1 ] ;
}
2022-09-05 12:32:27 +02:00
set title ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { title : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get maxlength ( ) {
return this . $$ . ctx [ 6 ] ;
}
2022-09-05 12:32:27 +02:00
set maxlength ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { maxlength : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get tags ( ) {
return this . $$ . ctx [ 7 ] ;
}
2022-09-05 12:32:27 +02:00
set tags ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { tags : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get places ( ) {
return this . $$ . ctx [ 8 ] ;
}
2022-09-05 12:32:27 +02:00
set places ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { places : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get theme ( ) {
return this . $$ . ctx [ 2 ] ;
}
2022-09-05 12:32:27 +02:00
set theme ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { theme : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get show _recurrent ( ) {
return this . $$ . ctx [ 9 ] ;
}
2022-09-05 12:32:27 +02:00
set show _recurrent ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { show _recurrent : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get sidebar ( ) {
return this . $$ . ctx [ 3 ] ;
}
2022-09-05 12:32:27 +02:00
set sidebar ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { sidebar : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get external _style ( ) {
return this . $$ . ctx [ 4 ] ;
}
2022-09-05 12:32:27 +02:00
set external _style ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { external _style : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
}
2023-04-13 22:17:56 +02:00
customElements . define ( "gancio-events" , Re ) ;
function de ( t ) {
let e , i , l , n , r = t [ 1 ] . title + "" , o , f , c , s = V ( t [ 1 ] ) + "" , w , g , _ , A , y = t [ 1 ] . place . name + "" , d , z , h = t [ 1 ] . media . length && he ( t ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "a" ) , h && h . c ( ) , i = M ( ) , l = m ( "div" ) , n = m ( "strong" ) , o = $ ( r ) , f = M ( ) , c = m ( "div" ) , w = $ ( s ) , g = M ( ) , _ = m ( "div" ) , A = $ ( "@" ) , d = $ ( y ) , a ( _ , "class" , "place" ) , a ( l , "class" , "container" ) , a ( e , "href" , z = t [ 0 ] + "/event/" + ( t [ 1 ] . slug || t [ 1 ] . id ) ) , a ( e , "class" , "card" ) , a ( e , "target" , "_blank" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( v , C ) {
p ( v , e , C ) , h && h . m ( e , null ) , u ( e , i ) , u ( e , l ) , u ( l , n ) , u ( n , o ) , u ( l , f ) , u ( l , c ) , u ( c , w ) , u ( l , g ) , u ( l , _ ) , u ( _ , A ) , u ( _ , d ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( v , C ) {
v [ 1 ] . media . length ? h ? h . p ( v , C ) : ( h = he ( v ) , h . c ( ) , h . m ( e , i ) ) : h && ( h . d ( 1 ) , h = null ) , C & 2 && r !== ( r = v [ 1 ] . title + "" ) && T ( o , r ) , C & 2 && s !== ( s = V ( v [ 1 ] ) + "" ) && T ( w , s ) , C & 2 && y !== ( y = v [ 1 ] . place . name + "" ) && T ( d , y ) , C & 3 && z !== ( z = v [ 0 ] + "/event/" + ( v [ 1 ] . slug || v [ 1 ] . id ) ) && a ( e , "href" , z ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( v ) {
v && k ( e ) , h && h . d ( ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function he ( t ) {
2023-01-13 22:17:43 +01:00
let e , i , l , n ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
e = m ( "img" ) , H ( e . src , i = t [ 2 ] ( t [ 1 ] ) ) || a ( e , "src" , i ) , a ( e , "alt" , l = t [ 1 ] . media [ 0 ] . name ) , a ( e , "style" , n = "object-position: " + me ( t [ 1 ] ) + "; aspect-ratio=1.7778;" ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
m ( r , o ) {
p ( r , e , o ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
p ( r , o ) {
o & 2 && ! H ( e . src , i = r [ 2 ] ( r [ 1 ] ) ) && a ( e , "src" , i ) , o & 2 && l !== ( l = r [ 1 ] . media [ 0 ] . name ) && a ( e , "alt" , l ) , o & 2 && n !== ( n = "object-position: " + me ( r [ 1 ] ) + "; aspect-ratio=1.7778;" ) && a ( e , "style" , n ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
d ( r ) {
r && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2023-04-13 22:17:56 +02:00
function Ie ( t ) {
let e , i = t [ 1 ] && de ( t ) ;
2022-05-10 15:31:29 +02:00
return {
c ( ) {
2023-04-13 22:17:56 +02:00
i && i . c ( ) , e = pe ( ) , this . c = G ;
2022-05-10 15:31:29 +02:00
} ,
2023-01-13 22:17:43 +01:00
m ( l , n ) {
2023-04-13 22:17:56 +02:00
i && i . m ( l , n ) , p ( l , e , n ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-01-13 22:17:43 +01:00
p ( l , [ n ] ) {
2023-04-13 22:17:56 +02:00
l [ 1 ] ? i ? i . p ( l , n ) : ( i = de ( l ) , i . c ( ) , i . m ( e . parentNode , e ) ) : i && ( i . d ( 1 ) , i = null ) ;
2022-05-10 15:31:29 +02:00
} ,
2023-04-13 22:17:56 +02:00
i : G ,
o : G ,
2023-01-13 22:17:43 +01:00
d ( l ) {
2023-04-13 22:17:56 +02:00
i && i . d ( l ) , l && k ( e ) ;
2022-05-10 15:31:29 +02:00
}
} ;
}
2022-09-05 12:32:27 +02:00
function me ( t ) {
if ( t . media [ 0 ] . focalpoint ) {
const e = t . media [ 0 ] . focalpoint ;
return ` ${ ( e [ 0 ] + 1 ) * 50 } % ${ ( e [ 1 ] + 1 ) * 50 } % ` ;
2022-05-10 15:31:29 +02:00
}
return "center center" ;
}
2023-04-13 22:17:56 +02:00
function Oe ( t , e , i ) {
let { baseurl : l = "https://demo.gancio.org" } = e , { id : n } = e , r = ! 1 , o ;
function f ( s , w ) {
r && fetch ( ` ${ w } /api/event/detail/ ${ s } ` ) . then ( ( g ) => g . json ( ) ) . then ( ( g ) => i ( 1 , o = g ) ) ;
2022-05-10 15:31:29 +02:00
}
2023-04-13 22:17:56 +02:00
ke ( ( ) => {
r = ! 0 , f ( n , l ) ;
2022-05-10 15:31:29 +02:00
} ) ;
2022-09-05 12:32:27 +02:00
function c ( s ) {
2023-01-13 22:17:43 +01:00
return ` ${ l } /media/thumb/ ${ s . media [ 0 ] . url } ` ;
2022-09-05 12:32:27 +02:00
}
return t . $$set = ( s ) => {
2023-01-13 22:17:43 +01:00
"baseurl" in s && i ( 0 , l = s . baseurl ) , "id" in s && i ( 3 , n = s . id ) ;
2022-09-05 12:32:27 +02:00
} , t . $$ . update = ( ) => {
2023-01-13 22:17:43 +01:00
t . $$ . dirty & 9 && f ( n , l ) ;
2023-04-13 22:17:56 +02:00
} , [ l , o , c , n ] ;
2022-09-05 12:32:27 +02:00
}
2023-04-13 22:17:56 +02:00
class Ue extends X {
2022-09-05 12:32:27 +02:00
constructor ( e ) {
super ( ) , this . shadowRoot . innerHTML = ` <style>.card{display:block;font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS',
2023-04-13 22:17:56 +02:00
sans - serif ; box - shadow : 0 4 px 8 px 0 rgba ( 0 , 0 , 0 , 0.2 ) ; transition : 0.3 s ; border - radius : 5 px ; max - width : 500 px ; text - decoration : none ; color : white ; background - color : # 1e1 e1e ; overflow : hidden } img { border - radius : 5 px 5 px 0 0 ; max - height : 250 px ; min - height : 160 px ; width : 100 % ; object - fit : cover ; object - position : top } . card : hover . container { padding - left : 20 px } . card : hover { box - shadow : 0 8 px 16 px 0 rgba ( 0 , 0 , 0 , 0.2 ) } . container { transition : padding - left 0.2 s ; padding : 16 px } . place { font - weight : 600 ; color : # ff6e40 } < / s t y l e > ` , w e (
2022-09-05 12:32:27 +02:00
this ,
{
target : this . shadowRoot ,
2023-04-13 22:17:56 +02:00
props : ve ( this . attributes ) ,
2022-09-05 12:32:27 +02:00
customElement : ! 0
} ,
Oe ,
2023-04-13 22:17:56 +02:00
Ie ,
_e ,
2022-09-05 12:32:27 +02:00
{ baseurl : 0 , id : 3 } ,
null
2023-04-13 22:17:56 +02:00
) , e && ( e . target && p ( e . target , this , e . anchor ) , e . props && ( this . $set ( e . props ) , x ( ) ) ) ;
2022-05-10 15:31:29 +02:00
}
static get observedAttributes ( ) {
return [ "baseurl" , "id" ] ;
}
get baseurl ( ) {
return this . $$ . ctx [ 0 ] ;
}
2022-09-05 12:32:27 +02:00
set baseurl ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { baseurl : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
get id ( ) {
return this . $$ . ctx [ 3 ] ;
}
2022-09-05 12:32:27 +02:00
set id ( e ) {
2023-04-13 22:17:56 +02:00
this . $$set ( { id : e } ) , x ( ) ;
2022-05-10 15:31:29 +02:00
}
}
2023-04-13 22:17:56 +02:00
customElements . define ( "gancio-event" , Ue ) ;