import { SvelteComponent , assign , attr , compute_rest_props , create_component , destroy_component , detach , element , exclude_internal_props , init , insert , mount_component , safe_not_equal , space , transition_in , transition_out } from "svelte/internal" ; import Component from "./Component.svelte" ; function create_fragment ( ctx ) { let div ; let div_class_value ; let div_style_value ; let div_other_value ; let t ; let component ; let current ; component = new Component ( { props : { class : "\n\t\tbutton\n\t\tbutton--size--" + ctx [ 0 ] + "\n\t\tbutton--theme--" + ctx [ 1 ] + "\n  \t" + ( ctx [ 2 ] . class || '' ) , style : "\n\t\tcolor: green;\n\t\tbackground: white;\n\t\tfont-size: " + ctx [ 0 ] + ";\n  \ttransform: " + ctx [ 2 ] . scale + "  " + ctx [ 2 ] . rotate + ";\n\t\t" + ctx [ 2 ] . styles , other : "\n\t\tbutton\n\t\tbutton--size--" + ctx [ 0 ] + "\n\t\tbutton--theme--" + ctx [ 1 ] + "\n  \t" + ( ctx [ 2 ] . class || '' ) } } ) ; return { c ( ) { div = element ( "div" ) ; t = space ( ) ; create_component ( component . $$ . fragment ) ; attr ( div , "class" , div_class_value = "button button--size--" + ctx [ 0 ] + " button--theme--" + ctx [ 1 ] + " " + ( ctx [ 2 ] . class || '' ) ) ; attr ( div , "style" , div_style_value = "color: green; background: white; font-size: " + ctx [ 0 ] + "; transform: " + ctx [ 2 ] . scale + " " + ctx [ 2 ] . rotate + "; " + ctx [ 2 ] . styles ) ; attr ( div , "other" , div_other_value = "\n\t\tbutton\n\t\tbutton--size--" + ctx [ 0 ] + "\n\t\tbutton--theme--" + ctx [ 1 ] + "\n  \t" + ( ctx [ 2 ] . class || '' ) ) ; } , m ( target , anchor ) { insert ( target , div , anchor ) ; insert ( target , t , anchor ) ; mount_component ( component , target , anchor ) ; current = true ; } , p ( ctx , [ dirty ] ) { if ( ! current || dirty & 7 && div_class_value !== ( div_class_value = "button button--size--" + ctx [ 0 ] + " button--theme--" + ctx [ 1 ] + " " + ( ctx [ 2 ] . class || '' ) ) ) { attr ( div , "class" , div_class_value ) ; } if ( ! current || dirty & 5 && div_style_value !== ( div_style_value = "color: green; background: white; font-size: " + ctx [ 0 ] + "; transform: " + ctx [ 2 ] . scale + " " + ctx [ 2 ] . rotate + "; " + ctx [ 2 ] . styles ) ) { attr ( div , "style" , div_style_value ) ; } if ( ! current || dirty & 7 && div_other_value !== ( div_other_value = "\n\t\tbutton\n\t\tbutton--size--" + ctx [ 0 ] + "\n\t\tbutton--theme--" + ctx [ 1 ] + "\n  \t" + ( ctx [ 2 ] . class || '' ) ) ) { attr ( div , "other" , div_other_value ) ; } const component_changes = { } ; if ( dirty & 7 ) component_changes . class = "\n\t\tbutton\n\t\tbutton--size--" + ctx [ 0 ] + "\n\t\tbutton--theme--" + ctx [ 1 ] + "\n  \t" + ( ctx [ 2 ] . class || '' ) ; if ( dirty & 5 ) component_changes . style = "\n\t\tcolor: green;\n\t\tbackground: white;\n\t\tfont-size: " + ctx [ 0 ] + ";\n  \ttransform: " + ctx [ 2 ] . scale + "  " + ctx [ 2 ] . rotate + ";\n\t\t" + ctx [ 2 ] . styles ; if ( dirty & 7 ) component_changes . other = "\n\t\tbutton\n\t\tbutton--size--" + ctx [ 0 ] + "\n\t\tbutton--theme--" + ctx [ 1 ] + "\n  \t" + ( ctx [ 2 ] . class || '' ) ; component . $set ( component_changes ) ; } , i ( local ) { if ( current ) return ; transition_in ( component . $$ . fragment , local ) ; current = true ; } , o ( local ) { transition_out ( component . $$ . fragment , local ) ; current = false ; } , d ( detaching ) { if ( detaching ) detach ( div ) ; if ( detaching ) detach ( t ) ; destroy_component ( component , detaching ) ; } } ; } function instance ( $$self , $$props , $$invalidate ) { const omit_props_names = [ "size" , "theme" ] ; let $$restProps = compute_rest_props ( $$props , omit_props_names ) ; let { size } = $$props ; let { theme } = $$props ; $$self . $$set = $$new_props => { $$props = assign ( assign ( { } , $$props ) , exclude_internal_props ( $$new_props ) ) ; $$invalidate ( 2 , $$restProps = compute_rest_props ( $$props , omit_props_names ) ) ; if ( 'size' in $$new_props ) $$invalidate ( 0 , size = $$new_props . size ) ; if ( 'theme' in $$new_props ) $$invalidate ( 1 , theme = $$new_props . theme ) ; } ; return [ size , theme , $$restProps ] ; } class Component_1 extends SvelteComponent { constructor ( options ) { super ( ) ; init ( this , options , instance , create_fragment , safe_not_equal , { size : 0 , theme : 1 } ) ; } } export default Component_1 ;