2023-06-24 04:39:41 +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 ) ;
2023-06-24 20:44:16 +07:00
import { S as SvelteElement , i as init , a as attribute _to _object , b as insert _dev , s as safe _not _equal , v as validate _each _argument , d as dispatch _dev , c as validate _slots , o as onMount , e as element , f as space , n as noop , g as add _location , h as set _custom _element _data , j as attr _dev , k as append _dev , l as detach _dev , m as destroy _each , t as text } from './index-3e97afc8.js' ;
import { coops , addMarkersCoops } from '../../../../../../../../../js/coops.js' ;
import '../../../../../../../../../js/components/map-component.js' ;
2023-06-24 04:39:41 +07:00
/* src\cooperatives-component.svelte generated by Svelte v3.52.0 */
2023-06-24 20:44:16 +07:00
const file = "src\\cooperatives-component.svelte" ;
function get _each _context ( ctx , list , i ) {
const child _ctx = ctx . slice ( ) ;
child _ctx [ 1 ] = list [ i ] ;
return child _ctx ;
}
// (31:8) {#each coops as coop}
function create _each _block ( ctx ) {
let div2 ;
let div1 ;
let div0 ;
let p0 ;
let b0 ;
let t1 _value = /*coop*/ ctx [ 1 ] . name + "" ;
let t1 ;
let t2 ;
let p1 ;
let b1 ;
let t4 _value = /*coop*/ ctx [ 1 ] . lcoation + "" ;
let t4 ;
let t5 ;
let p2 ;
let b2 ;
let t7 _value = /*coop*/ ctx [ 1 ] . market + "" ;
let t7 ;
let t8 ;
let p3 ;
let b3 ;
let t10 _value = /*coop*/ ctx [ 1 ] . workers + "" ;
let t10 ;
let t11 ;
let p4 ;
let b4 ;
let t13 _value = /*coop*/ ctx [ 1 ] . status + "" ;
let t13 ;
let t14 ;
let p5 ;
let b5 ;
let a0 ;
let t16 _value = /*coop*/ ctx [ 1 ] . website + "" ;
let t16 ;
let t17 ;
let p6 ;
let b6 ;
let a1 ;
let t19 _value = /*coop*/ ctx [ 1 ] . contact [ 1 ] + "" ;
let t19 ;
let t20 ;
let picture ;
let source0 ;
let t21 ;
let source1 ;
let t22 ;
let img ;
let t23 ;
let p7 ;
let b7 ;
let t25 _value = /*coop*/ ctx [ 1 ] . description + "" ;
let t25 ;
let t26 ;
const block = {
c : function create ( ) {
div2 = element ( "div" ) ;
div1 = element ( "div" ) ;
div0 = element ( "div" ) ;
p0 = element ( "p" ) ;
b0 = element ( "b" ) ;
b0 . textContent = "Name: " ;
t1 = text ( t1 _value ) ;
t2 = space ( ) ;
p1 = element ( "p" ) ;
b1 = element ( "b" ) ;
b1 . textContent = "Location: " ;
t4 = text ( t4 _value ) ;
t5 = space ( ) ;
p2 = element ( "p" ) ;
b2 = element ( "b" ) ;
b2 . textContent = "Market: " ;
t7 = text ( t7 _value ) ;
t8 = space ( ) ;
p3 = element ( "p" ) ;
b3 = element ( "b" ) ;
b3 . textContent = "Workers: " ;
t10 = text ( t10 _value ) ;
t11 = space ( ) ;
p4 = element ( "p" ) ;
b4 = element ( "b" ) ;
b4 . textContent = "Status: " ;
t13 = text ( t13 _value ) ;
t14 = space ( ) ;
p5 = element ( "p" ) ;
b5 = element ( "b" ) ;
b5 . textContent = "Website: " ;
a0 = element ( "a" ) ;
t16 = text ( t16 _value ) ;
t17 = space ( ) ;
p6 = element ( "p" ) ;
b6 = element ( "b" ) ;
b6 . textContent = "Contact: " ;
a1 = element ( "a" ) ;
t19 = text ( t19 _value ) ;
t20 = space ( ) ;
picture = element ( "picture" ) ;
source0 = element ( "source" ) ;
t21 = space ( ) ;
source1 = element ( "source" ) ;
t22 = space ( ) ;
img = element ( "img" ) ;
t23 = space ( ) ;
p7 = element ( "p" ) ;
b7 = element ( "b" ) ;
b7 . textContent = "Description: " ;
t25 = text ( t25 _value ) ;
t26 = space ( ) ;
add _location ( b0 , file , 34 , 27 , 2299 ) ;
add _location ( p0 , file , 34 , 24 , 2296 ) ;
add _location ( b1 , file , 35 , 27 , 2356 ) ;
add _location ( p1 , file , 35 , 24 , 2353 ) ;
add _location ( b2 , file , 36 , 27 , 2421 ) ;
add _location ( p2 , file , 36 , 24 , 2418 ) ;
add _location ( b3 , file , 37 , 27 , 2482 ) ;
add _location ( p3 , file , 37 , 24 , 2479 ) ;
add _location ( b4 , file , 38 , 27 , 2545 ) ;
add _location ( p4 , file , 38 , 24 , 2542 ) ;
add _location ( b5 , file , 39 , 27 , 2606 ) ;
attr _dev ( a0 , "href" , "https://www." + /*coop*/ ctx [ 1 ] . website ) ;
attr _dev ( a0 , "target" , "_blank" ) ;
attr _dev ( a0 , "rel" , "noreferrer" ) ;
add _location ( a0 , file , 39 , 43 , 2622 ) ;
add _location ( p5 , file , 39 , 24 , 2603 ) ;
add _location ( b6 , file , 40 , 27 , 2742 ) ;
attr _dev ( a1 , "href" , /*coop*/ ctx [ 1 ] . contact [ 0 ] ) ;
attr _dev ( a1 , "target" , ";_blank;" ) ;
attr _dev ( a1 , "rel" , "noreferrer" ) ;
add _location ( a1 , file , 40 , 43 , 2758 ) ;
add _location ( p6 , file , 40 , 24 , 2739 ) ;
add _location ( div0 , file , 33 , 20 , 2265 ) ;
attr _dev ( source0 , "srcset" , "/img/coops/" + /*coop*/ ctx [ 1 ] . logo + ".webp" ) ;
add _location ( source0 , file , 43 , 24 , 2925 ) ;
attr _dev ( source1 , "srcset" , "/img/coops/" + /*coop*/ ctx [ 1 ] . logo + ".png" ) ;
add _location ( source1 , file , 44 , 24 , 3000 ) ;
attr _dev ( img , "class" , "coop-logo" ) ;
attr _dev ( img , "alt" , "logo" ) ;
add _location ( img , file , 45 , 24 , 3074 ) ;
add _location ( picture , file , 42 , 20 , 2890 ) ;
add _location ( div1 , file , 32 , 16 , 2238 ) ;
add _location ( b7 , file , 48 , 19 , 3185 ) ;
add _location ( p7 , file , 48 , 16 , 3182 ) ;
attr _dev ( div2 , "class" , "location-info" ) ;
add _location ( div2 , file , 31 , 12 , 2193 ) ;
} ,
m : function mount ( target , anchor ) {
insert _dev ( target , div2 , anchor ) ;
append _dev ( div2 , div1 ) ;
append _dev ( div1 , div0 ) ;
append _dev ( div0 , p0 ) ;
append _dev ( p0 , b0 ) ;
append _dev ( p0 , t1 ) ;
append _dev ( div0 , t2 ) ;
append _dev ( div0 , p1 ) ;
append _dev ( p1 , b1 ) ;
append _dev ( p1 , t4 ) ;
append _dev ( div0 , t5 ) ;
append _dev ( div0 , p2 ) ;
append _dev ( p2 , b2 ) ;
append _dev ( p2 , t7 ) ;
append _dev ( div0 , t8 ) ;
append _dev ( div0 , p3 ) ;
append _dev ( p3 , b3 ) ;
append _dev ( p3 , t10 ) ;
append _dev ( div0 , t11 ) ;
append _dev ( div0 , p4 ) ;
append _dev ( p4 , b4 ) ;
append _dev ( p4 , t13 ) ;
append _dev ( div0 , t14 ) ;
append _dev ( div0 , p5 ) ;
append _dev ( p5 , b5 ) ;
append _dev ( p5 , a0 ) ;
append _dev ( a0 , t16 ) ;
append _dev ( div0 , t17 ) ;
append _dev ( div0 , p6 ) ;
append _dev ( p6 , b6 ) ;
append _dev ( p6 , a1 ) ;
append _dev ( a1 , t19 ) ;
append _dev ( div1 , t20 ) ;
append _dev ( div1 , picture ) ;
append _dev ( picture , source0 ) ;
append _dev ( picture , t21 ) ;
append _dev ( picture , source1 ) ;
append _dev ( picture , t22 ) ;
append _dev ( picture , img ) ;
append _dev ( div2 , t23 ) ;
append _dev ( div2 , p7 ) ;
append _dev ( p7 , b7 ) ;
append _dev ( p7 , t25 ) ;
append _dev ( div2 , t26 ) ;
} ,
p : noop ,
d : function destroy ( detaching ) {
if ( detaching ) detach _dev ( div2 ) ;
}
} ;
dispatch _dev ( "SvelteRegisterBlock" , {
block ,
id : create _each _block . name ,
type : "each" ,
source : "(31:8) {#each coops as coop}" ,
ctx
} ) ;
return block ;
}
2023-06-24 04:39:41 +07:00
function create _fragment ( ctx ) {
2023-06-24 20:44:16 +07:00
let div1 ;
let div0 ;
let h1 ;
let t1 ;
let p0 ;
let t3 ;
let p1 ;
let t5 ;
let h3 ;
let t7 ;
let map _component ;
let t8 ;
let h4 ;
let t10 ;
let each _value = coops ;
validate _each _argument ( each _value ) ;
let each _blocks = [ ] ;
for ( let i = 0 ; i < each _value . length ; i += 1 ) {
each _blocks [ i ] = create _each _block ( get _each _context ( ctx , each _value , i ) ) ;
}
2023-06-24 04:39:41 +07:00
const block = {
c : function create ( ) {
2023-06-24 20:44:16 +07:00
div1 = element ( "div" ) ;
div0 = element ( "div" ) ;
h1 = element ( "h1" ) ;
h1 . textContent = "Cooperatives" ;
t1 = space ( ) ;
p0 = element ( "p" ) ;
p0 . textContent = "We create worker cooperatives that embody a transformative business model in which the workers themselves own and democratically control the enterprise. In these cooperatives, each employee has a say in decision-making, and profits are shared based on individual contributions. This participatory structure fosters a sense of ownership, motivation, and job satisfaction among workers, resulting in a more fulfilling and empowering work experience. Moreover, worker cooperatives promote economic equity by distributing profits more equitably among all workers, challenging the concentration of wealth seen in traditional capitalist enterprises." ;
t3 = space ( ) ;
p1 = element ( "p" ) ;
p1 . textContent = "Worker cooperatives prioritize the well-being of their workers, striving for fair wages, safe working conditions, and a healthy work-life balance. By placing the needs of workers at the forefront, these cooperatives create supportive and sustainable work environments that promote social cohesion and job security. Furthermore, worker cooperatives adopt long-term perspectives and prioritize the interests of their local communities. With decision-making power vested in the workers themselves, cooperatives are less inclined to pursue short-term profit-maximization strategies that harm workers and communities. Instead, they reinvest their profits locally, contributing to the development and resilience of their communities." ;
t5 = space ( ) ;
h3 = element ( "h3" ) ;
h3 . textContent = "Our cooperatives" ;
t7 = space ( ) ;
map _component = element ( "map-component" ) ;
t8 = space ( ) ;
h4 = element ( "h4" ) ;
h4 . textContent = "Europe" ;
t10 = space ( ) ;
for ( let i = 0 ; i < each _blocks . length ; i += 1 ) {
each _blocks [ i ] . c ( ) ;
}
2023-06-24 04:39:41 +07:00
this . c = noop ;
2023-06-24 20:44:16 +07:00
add _location ( h1 , file , 24 , 8 , 585 ) ;
add _location ( p0 , file , 25 , 8 , 616 ) ;
add _location ( p1 , file , 26 , 8 , 1276 ) ;
add _location ( h3 , file , 27 , 8 , 2020 ) ;
set _custom _element _data ( map _component , "id" , "map" ) ;
set _custom _element _data ( map _component , "callback" , /*mapCallbackCoops*/ ctx [ 0 ] ) ;
add _location ( map _component , file , 28 , 8 , 2055 ) ;
add _location ( h4 , file , 29 , 8 , 2133 ) ;
attr _dev ( div0 , "id" , "text-container" ) ;
add _location ( div0 , file , 23 , 4 , 550 ) ;
attr _dev ( div1 , "id" , "container" ) ;
add _location ( div1 , file , 21 , 0 , 463 ) ;
2023-06-24 04:39:41 +07:00
} ,
l : function claim ( nodes ) {
throw new Error ( "options.hydrate only works if the component was compiled with the `hydratable: true` option" ) ;
} ,
2023-06-24 20:44:16 +07:00
m : function mount ( target , anchor ) {
insert _dev ( target , div1 , anchor ) ;
append _dev ( div1 , div0 ) ;
append _dev ( div0 , h1 ) ;
append _dev ( div0 , t1 ) ;
append _dev ( div0 , p0 ) ;
append _dev ( div0 , t3 ) ;
append _dev ( div0 , p1 ) ;
append _dev ( div0 , t5 ) ;
append _dev ( div0 , h3 ) ;
append _dev ( div0 , t7 ) ;
append _dev ( div0 , map _component ) ;
append _dev ( div0 , t8 ) ;
append _dev ( div0 , h4 ) ;
append _dev ( div0 , t10 ) ;
for ( let i = 0 ; i < each _blocks . length ; i += 1 ) {
each _blocks [ i ] . m ( div0 , null ) ;
}
} ,
p : function update ( ctx , [ dirty ] ) {
if ( dirty & /*coops*/ 0 ) {
each _value = coops ;
validate _each _argument ( each _value ) ;
let i ;
for ( i = 0 ; i < each _value . length ; i += 1 ) {
const child _ctx = get _each _context ( ctx , each _value , i ) ;
if ( each _blocks [ i ] ) {
each _blocks [ i ] . p ( child _ctx , dirty ) ;
} else {
each _blocks [ i ] = create _each _block ( child _ctx ) ;
each _blocks [ i ] . c ( ) ;
each _blocks [ i ] . m ( div0 , null ) ;
}
}
for ( ; i < each _blocks . length ; i += 1 ) {
each _blocks [ i ] . d ( 1 ) ;
}
each _blocks . length = each _value . length ;
}
} ,
2023-06-24 04:39:41 +07:00
i : noop ,
o : noop ,
2023-06-24 20:44:16 +07:00
d : function destroy ( detaching ) {
if ( detaching ) detach _dev ( div1 ) ;
destroy _each ( each _blocks , detaching ) ;
}
2023-06-24 04:39:41 +07:00
} ;
dispatch _dev ( "SvelteRegisterBlock" , {
block ,
id : create _fragment . name ,
type : "component" ,
source : "" ,
ctx
} ) ;
return block ;
}
function instance ( $$self , $$props , $$invalidate ) {
let { $$slots : slots = { } , $$scope } = $$props ;
validate _slots ( 'cooperatives-component' , slots , [ ] ) ;
2023-06-24 20:44:16 +07:00
function mapCallbackCoops ( createMap ) {
let map = createMap ( [ 51.505 , - 0.09 ] , 3 ) ;
addMarkersCoops ( map ) ;
}
2023-06-24 04:39:41 +07:00
onMount ( ( ) => {
} ) ;
const writable _props = [ ] ;
Object . keys ( $$props ) . forEach ( key => {
if ( ! ~ writable _props . indexOf ( key ) && key . slice ( 0 , 2 ) !== '$$' && key !== 'slot' ) console . warn ( ` <cooperatives-component> was created with unknown prop ' ${ key } ' ` ) ;
} ) ;
2023-06-24 20:44:16 +07:00
$$self . $capture _state = ( ) => ( {
onMount ,
coops ,
addMarkersCoops ,
mapCallbackCoops
} ) ;
return [ mapCallbackCoops ] ;
2023-06-24 04:39:41 +07:00
}
class Cooperatives _component extends SvelteElement {
constructor ( options ) {
super ( ) ;
2023-06-24 20:44:16 +07:00
this . shadowRoot . innerHTML = ` <style>@import '/css/common.css';.location-info>:first-child{display:flex;align-content:center;width:100%;justify-content:space-between;gap:3rem;align-items:center}.location-info>:first-child>:first-child{flex:none}.coop-logo{position:relative;right:0;max-height:8rem;max-width:100%}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{font-size:1.2rem;color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.5rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:1200px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{font-size:1.2rem;text-align:justify}</style> ` ;
2023-06-24 04:39:41 +07:00
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 ( "cooperatives-component" , Cooperatives _component ) ;
export { Cooperatives _component as default } ;