2023-07-30 17:04:15 +07:00
( function ( l , r ) { if ( ! l || l . getElementById ( 'livereloadscript' ) ) return ; r = l . createElement ( 'script' ) ; r . async = 1 ; r . src = '//' + ( self . location . host || 'localhost' ) . split ( ':' ) [ 0 ] + ':35729/livereload.js?snipver=1' ; r . id = 'livereloadscript' ; l . getElementsByTagName ( 'head' ) [ 0 ] . appendChild ( r ) } ) ( self . document ) ;
import { S as SvelteElement , i as init , a as attribute _to _object , b as insert _dev , s as safe _not _equal , d as dispatch _dev , v as validate _slots , w as validate _store , x as component _subscribe , y as empty , n as noop , p as detach _dev , f as element , B as text , h as space , G as svg _element , j as add _location , k as attr _dev , F as set _style , l as append _dev , m as listen _dev , C as set _data _dev } from './index-998178c7.js' ;
import { w as writable } from './index-f9998ce7.js' ;
import { loadLocaleContent } from '../../../../../../../../../js/libraries/serverTools.js' ;
/* src\footer\footer-component.svelte generated by Svelte v3.52.0 */
const file = "src\\footer\\footer-component.svelte" ;
// (21:4) {#if $loaded==2}
function create _if _block ( ctx ) {
let footer ;
let div2 ;
let div1 ;
let div0 ;
let h2 ;
let t0 _value = /*$content*/ ctx [ 1 ] . contactUs + "" ;
let t0 ;
let t1 ;
let p0 ;
let t2 ;
let a0 ;
let t3 _value = /*$content*/ ctx [ 1 ] . inviteLink + "" ;
let t3 ;
let t4 ;
let p1 ;
let t5 ;
let a1 ;
let t6 _value = /*$content*/ ctx [ 1 ] . inviteLink + "" ;
let t6 ;
let t7 ;
let button ;
let svg ;
let g ;
let rect ;
let path ;
let t8 ;
let p2 ;
let t9 ;
let a2 ;
let mounted ;
let dispose ;
const block = {
c : function create ( ) {
footer = element ( "footer" ) ;
div2 = element ( "div" ) ;
div1 = element ( "div" ) ;
div0 = element ( "div" ) ;
h2 = element ( "h2" ) ;
t0 = text ( t0 _value ) ;
t1 = space ( ) ;
p0 = element ( "p" ) ;
t2 = text ( "Discord: " ) ;
a0 = element ( "a" ) ;
t3 = text ( t3 _value ) ;
t4 = space ( ) ;
p1 = element ( "p" ) ;
t5 = text ( "WhatsApp: " ) ;
a1 = element ( "a" ) ;
t6 = text ( t6 _value ) ;
t7 = space ( ) ;
button = element ( "button" ) ;
svg = svg _element ( "svg" ) ;
g = svg _element ( "g" ) ;
rect = svg _element ( "rect" ) ;
path = svg _element ( "path" ) ;
t8 = space ( ) ;
p2 = element ( "p" ) ;
t9 = text ( "Licensed under a Creative Commons " ) ;
a2 = element ( "a" ) ;
a2 . textContent = "CC BY 4.0 license" ;
add _location ( h2 , file , 25 , 24 , 692 ) ;
attr _dev ( a0 , "href" , "https://discord.gg/Qk8KUk787z" ) ;
attr _dev ( a0 , "target" , "_blank" ) ;
attr _dev ( a0 , "rel" , "noreferrer" ) ;
set _style ( a0 , "margin-left" , "1.8rem" ) ;
add _location ( a0 , file , 27 , 36 , 858 ) ;
add _location ( p0 , file , 27 , 24 , 846 ) ;
attr _dev ( a1 , "href" , "https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" ) ;
attr _dev ( a1 , "target" , "_blank" ) ;
attr _dev ( a1 , "rel" , "noreferrer" ) ;
set _style ( a1 , "margin-left" , "0.5rem" ) ;
add _location ( a1 , file , 28 , 37 , 1026 ) ;
add _location ( p1 , file , 28 , 24 , 1013 ) ;
attr _dev ( div0 , "id" , "contact-us-container" ) ;
add _location ( div0 , file , 24 , 20 , 635 ) ;
attr _dev ( div1 , "id" , "footer-grid-content-container" ) ;
attr _dev ( div1 , "class" , "logged" ) ;
add _location ( div1 , file , 23 , 16 , 558 ) ;
attr _dev ( rect , "id" , "Rectangle_146" ) ;
attr _dev ( rect , "data-name" , "Rectangle 146" ) ;
attr _dev ( rect , "width" , "11" ) ;
attr _dev ( rect , "height" , "51" ) ;
attr _dev ( rect , "rx" , "5.5" ) ;
attr _dev ( rect , "transform" , "translate(22 24)" ) ;
attr _dev ( rect , "fill" , "var(--red)" ) ;
add _location ( rect , file , 34 , 24 , 1573 ) ;
attr _dev ( path , "id" , "Path_1145" ) ;
attr _dev ( path , "data-name" , "Path 1145" ) ;
attr _dev ( path , "d" , "M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" ) ;
attr _dev ( path , "fill" , "var(--red)" ) ;
add _location ( path , file , 35 , 24 , 1730 ) ;
attr _dev ( g , "id" , "Group_268" ) ;
attr _dev ( g , "data-name" , "Group 268" ) ;
attr _dev ( g , "transform" , "translate(-6.177 -2.399)" ) ;
add _location ( g , file , 33 , 24 , 1470 ) ;
attr _dev ( svg , "xmlns" , "http://www.w3.org/2000/svg" ) ;
attr _dev ( svg , "width" , "42.545" ) ;
attr _dev ( svg , "height" , "72.601" ) ;
attr _dev ( svg , "viewBox" , "0 0 42.545 72.601" ) ;
add _location ( svg , file , 32 , 20 , 1345 ) ;
attr _dev ( button , "id" , "footer-up" ) ;
attr _dev ( button , "aria-label" , "go up" ) ;
add _location ( button , file , 31 , 16 , 1244 ) ;
attr _dev ( a2 , "href" , "https://creativecommons.org/licenses/by/4.0/legalcode " ) ;
attr _dev ( a2 , "target" , "_blank" ) ;
attr _dev ( a2 , "rel" , "noreferrer" ) ;
add _location ( a2 , file , 39 , 75 , 2143 ) ;
attr _dev ( p2 , "id" , "footer-copyright" ) ;
add _location ( p2 , file , 39 , 16 , 2084 ) ;
attr _dev ( div2 , "id" , "footer-content-container" ) ;
add _location ( div2 , file , 22 , 12 , 505 ) ;
add _location ( footer , file , 21 , 8 , 483 ) ;
} ,
m : function mount ( target , anchor ) {
insert _dev ( target , footer , anchor ) ;
append _dev ( footer , div2 ) ;
append _dev ( div2 , div1 ) ;
append _dev ( div1 , div0 ) ;
append _dev ( div0 , h2 ) ;
append _dev ( h2 , t0 ) ;
append _dev ( div0 , t1 ) ;
append _dev ( div0 , p0 ) ;
append _dev ( p0 , t2 ) ;
append _dev ( p0 , a0 ) ;
append _dev ( a0 , t3 ) ;
append _dev ( div0 , t4 ) ;
append _dev ( div0 , p1 ) ;
append _dev ( p1 , t5 ) ;
append _dev ( p1 , a1 ) ;
append _dev ( a1 , t6 ) ;
append _dev ( div2 , t7 ) ;
append _dev ( div2 , button ) ;
append _dev ( button , svg ) ;
append _dev ( svg , g ) ;
append _dev ( g , rect ) ;
append _dev ( g , path ) ;
append _dev ( div2 , t8 ) ;
append _dev ( div2 , p2 ) ;
append _dev ( p2 , t9 ) ;
append _dev ( p2 , a2 ) ;
if ( ! mounted ) {
dispose = listen _dev ( button , "click" , /*click_handler*/ ctx [ 4 ] , false , false , false ) ;
mounted = true ;
}
} ,
p : function update ( ctx , dirty ) {
if ( dirty & /*$content*/ 2 && t0 _value !== ( t0 _value = /*$content*/ ctx [ 1 ] . contactUs + "" ) ) set _data _dev ( t0 , t0 _value ) ;
if ( dirty & /*$content*/ 2 && t3 _value !== ( t3 _value = /*$content*/ ctx [ 1 ] . inviteLink + "" ) ) set _data _dev ( t3 , t3 _value ) ;
if ( dirty & /*$content*/ 2 && t6 _value !== ( t6 _value = /*$content*/ ctx [ 1 ] . inviteLink + "" ) ) set _data _dev ( t6 , t6 _value ) ;
} ,
d : function destroy ( detaching ) {
if ( detaching ) detach _dev ( footer ) ;
mounted = false ;
dispose ( ) ;
}
} ;
dispatch _dev ( "SvelteRegisterBlock" , {
block ,
id : create _if _block . name ,
type : "if" ,
source : "(21:4) {#if $loaded==2}" ,
ctx
} ) ;
return block ;
}
// (20:0) {#key $loaded}
function create _key _block ( ctx ) {
let if _block _anchor ;
let if _block = /*$loaded*/ ctx [ 0 ] == 2 && create _if _block ( ctx ) ;
const block = {
c : function create ( ) {
if ( if _block ) if _block . c ( ) ;
if _block _anchor = empty ( ) ;
} ,
m : function mount ( target , anchor ) {
if ( if _block ) if _block . m ( target , anchor ) ;
insert _dev ( target , if _block _anchor , anchor ) ;
} ,
p : function update ( ctx , dirty ) {
if ( /*$loaded*/ ctx [ 0 ] == 2 ) {
if ( if _block ) {
if _block . p ( ctx , dirty ) ;
} else {
if _block = create _if _block ( ctx ) ;
if _block . c ( ) ;
if _block . m ( if _block _anchor . parentNode , if _block _anchor ) ;
}
} else if ( if _block ) {
if _block . d ( 1 ) ;
if _block = null ;
}
} ,
d : function destroy ( detaching ) {
if ( if _block ) if _block . d ( detaching ) ;
if ( detaching ) detach _dev ( if _block _anchor ) ;
}
} ;
dispatch _dev ( "SvelteRegisterBlock" , {
block ,
id : create _key _block . name ,
type : "key" ,
source : "(20:0) {#key $loaded}" ,
ctx
} ) ;
return block ;
}
function create _fragment ( ctx ) {
let previous _key = /*$loaded*/ ctx [ 0 ] ;
let key _block _anchor ;
let key _block = create _key _block ( ctx ) ;
const block = {
c : function create ( ) {
key _block . c ( ) ;
key _block _anchor = empty ( ) ;
this . c = noop ;
} ,
l : function claim ( nodes ) {
throw new Error ( "options.hydrate only works if the component was compiled with the `hydratable: true` option" ) ;
} ,
m : function mount ( target , anchor ) {
key _block . m ( target , anchor ) ;
insert _dev ( target , key _block _anchor , anchor ) ;
} ,
p : function update ( ctx , [ dirty ] ) {
if ( dirty & /*$loaded*/ 1 && safe _not _equal ( previous _key , previous _key = /*$loaded*/ ctx [ 0 ] ) ) {
key _block . d ( 1 ) ;
key _block = create _key _block ( ctx ) ;
key _block . c ( ) ;
key _block . m ( key _block _anchor . parentNode , key _block _anchor ) ;
} else {
key _block . p ( ctx , dirty ) ;
}
} ,
i : noop ,
o : noop ,
d : function destroy ( detaching ) {
if ( detaching ) detach _dev ( key _block _anchor ) ;
key _block . d ( detaching ) ;
}
} ;
dispatch _dev ( "SvelteRegisterBlock" , {
block ,
id : create _fragment . name ,
type : "component" ,
source : "" ,
ctx
} ) ;
return block ;
}
function instance ( $$self , $$props , $$invalidate ) {
let $loaded ;
let $content ;
let { $$slots : slots = { } , $$scope } = $$props ;
validate _slots ( 'footer-component' , slots , [ ] ) ;
let loaded = writable ( 0 ) ;
validate _store ( loaded , 'loaded' ) ;
component _subscribe ( $$self , loaded , value => $$invalidate ( 0 , $loaded = value ) ) ;
let content = writable ( { } ) ;
validate _store ( content , 'content' ) ;
component _subscribe ( $$self , content , value => $$invalidate ( 1 , $content = value ) ) ;
loadLocaleContent ( content , "countries" , loaded ) ;
loadLocaleContent ( content , "footer-component" , loaded ) ;
const writable _props = [ ] ;
Object . keys ( $$props ) . forEach ( key => {
if ( ! ~ writable _props . indexOf ( key ) && key . slice ( 0 , 2 ) !== '$$' && key !== 'slot' ) console . warn ( ` <footer-component> was created with unknown prop ' ${ key } ' ` ) ;
} ) ;
const click _handler = ( ) => {
location . href = '#' ;
} ;
$$self . $capture _state = ( ) => ( {
writable ,
loadLocaleContent ,
loaded ,
content ,
$loaded ,
$content
} ) ;
$$self . $inject _state = $$props => {
if ( 'loaded' in $$props ) $$invalidate ( 2 , loaded = $$props . loaded ) ;
if ( 'content' in $$props ) $$invalidate ( 3 , content = $$props . content ) ;
} ;
if ( $$props && "$$inject" in $$props ) {
$$self . $inject _state ( $$props . $$inject ) ;
}
return [ $loaded , $content , loaded , content , click _handler ] ;
}
class Footer _component extends SvelteElement {
constructor ( options ) {
super ( ) ;
this . shadowRoot . innerHTML = ` <style>@import '/css/common.css';footer{position:relative;bottom:0;width:100%;height:auto;background:var(--gray);border-top:var(--red) solid 0.5rem}footer p,footer a{font-family:var(--sans-serif)}#footer-content-container{position:relative;margin:auto;padding-top:2rem;max-width:116rem;width:97vw}#footer-grid-content-container{display:grid;margin-left:2rem;margin-right:2rem;margin-bottom:1rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.3rem;margin-bottom:0.5rem}#footer-copyright{position:relative;margin:auto;width:100%;bottom:0rem;height:3rem;top:0rem;margin-bottom:0;font-size:1rem;text-align:center}#footer-copyright *{font-size:1rem}footer a{font-size:1.1rem;color:#ffffff}footer p{display:block;font-size:1.1rem;color:#d8d8d8;font-family:var(--sans-serif,sans-serif);margin-bottom:0.5rem}#contact-us-container{width:16rem}#footer-up{position:absolute;width:4.8rem;height:4.8rem;border-radius:3.4rem;top:4rem;right:2rem;background:#ffffff}#footer-up svg{width:40%;height:auto}@media only screen and (max-width: 1170px){.logged{grid-template-rows:auto auto auto;grid-template-columns:auto;row-gap:2rem}#footer-copyright{height:1rem;top:-2rem}}</style> ` ;
init (
this ,
{
target : this . shadowRoot ,
props : attribute _to _object ( this . attributes ) ,
customElement : true
} ,
instance ,
create _fragment ,
safe _not _equal ,
{ } ,
null
) ;
if ( options ) {
if ( options . target ) {
insert _dev ( options . target , this , options . anchor ) ;
}
}
}
}
customElements . define ( "footer-component" , Footer _component ) ;
export { Footer _component as default } ;