var $mdgriffith$elm_ui$Internal$Model$lengthClassName = function (x) {
switch (x.$) {
case 'Px':
var px = x.a;
return $elm$core$String$fromInt(px) + 'px';
case 'Content':
return 'auto';
case 'Fill':
var i = x.a;
return $elm$core$String$fromInt(i) + 'fr';
case 'Min':
var min = x.a;
var len = x.b;
return 'min' + ($elm$core$String$fromInt(min) + $mdgriffith$elm_ui$Internal$Model$lengthClassName(len));
default:
var max = x.a;
var len = x.b;
return 'max' + ($elm$core$String$fromInt(max) + $mdgriffith$elm_ui$Internal$Model$lengthClassName(len));
}
};
var $elm$core$Tuple$second = function (_v0) {
var y = _v0.b;
return y;
};
var $elm$core$Basics$round = _Basics_round;
var $mdgriffith$elm_ui$Internal$Model$floatClass = function (x) {
return $elm$core$String$fromInt(
$elm$core$Basics$round(x * 255));
};
var $mdgriffith$elm_ui$Internal$Model$transformClass = function (transform) {
switch (transform.$) {
case 'Untransformed':
return $elm$core$Maybe$Nothing;
case 'Moved':
var _v1 = transform.a;
var x = _v1.a;
var y = _v1.b;
var z = _v1.c;
return $elm$core$Maybe$Just(
'mv-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(x) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(y) + ('-' + $mdgriffith$elm_ui$Internal$Model$floatClass(z))))));
default:
var _v2 = transform.a;
var tx = _v2.a;
var ty = _v2.b;
var tz = _v2.c;
var _v3 = transform.b;
var sx = _v3.a;
var sy = _v3.b;
var sz = _v3.c;
var _v4 = transform.c;
var ox = _v4.a;
var oy = _v4.b;
var oz = _v4.c;
var angle = transform.d;
return $elm$core$Maybe$Just(
'tfrm-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(tx) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(ty) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(tz) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(sx) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(sy) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(sz) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(ox) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(oy) + ('-' + ($mdgriffith$elm_ui$Internal$Model$floatClass(oz) + ('-' + $mdgriffith$elm_ui$Internal$Model$floatClass(angle))))))))))))))))))));
}
};
var $elm$core$Maybe$withDefault = F2(
function (_default, maybe) {
if (maybe.$ === 'Just') {
var value = maybe.a;
return value;
} else {
return _default;
}
});
var $mdgriffith$elm_ui$Internal$Model$getStyleName = function (style) {
switch (style.$) {
case 'Shadows':
var name = style.a;
return name;
case 'Transparency':
var name = style.a;
var o = style.b;
return name;
case 'Style':
var _class = style.a;
return _class;
case 'FontFamily':
var name = style.a;
return name;
case 'FontSize':
var i = style.a;
return 'font-size-' + $elm$core$String$fromInt(i);
case 'Single':
var _class = style.a;
return _class;
case 'Colored':
var _class = style.a;
return _class;
case 'SpacingStyle':
var cls = style.a;
var x = style.b;
var y = style.c;
return cls;
case 'PaddingStyle':
var cls = style.a;
var top = style.b;
var right = style.c;
var bottom = style.d;
var left = style.e;
return cls;
case 'BorderWidth':
var cls = style.a;
var top = style.b;
var right = style.c;
var bottom = style.d;
var left = style.e;
return cls;
case 'GridTemplateStyle':
var template = style.a;
return 'grid-rows-' + (A2(
$elm$core$String$join,
'-',
A2($elm$core$List$map, $mdgriffith$elm_ui$Internal$Model$lengthClassName, template.rows)) + ('-cols-' + (A2(
$elm$core$String$join,
'-',
A2($elm$core$List$map, $mdgriffith$elm_ui$Internal$Model$lengthClassName, template.columns)) + ('-space-x-' + ($mdgriffith$elm_ui$Internal$Model$lengthClassName(template.spacing.a) + ('-space-y-' + $mdgriffith$elm_ui$Internal$Model$lengthClassName(template.spacing.b)))))));
case 'GridPosition':
var pos = style.a;
return 'gp grid-pos-' + ($elm$core$String$fromInt(pos.row) + ('-' + ($elm$core$String$fromInt(pos.col) + ('-' + ($elm$core$String$fromInt(pos.width) + ('-' + $elm$core$String$fromInt(pos.height)))))));
case 'PseudoSelector':
var selector = style.a;
var subStyle = style.b;
var name = function () {
switch (selector.$) {
case 'Focus':
return 'fs';
case 'Hover':
return 'hv';
default:
return 'act';
}
}();
return A2(
$elm$core$String$join,
' ',
A2(
$elm$core$List$map,
function (sty) {
var _v1 = $mdgriffith$elm_ui$Internal$Model$getStyleName(sty);
if (_v1 === '') {
return '';
} else {
var styleName = _v1;
return styleName + ('-' + name);
}
},
subStyle));
default:
var x = style.a;
return A2(
$elm$core$Maybe$withDefault,
'',
$mdgriffith$elm_ui$Internal$Model$transformClass(x));
}
};
var $elm$core$Dict$get = F2(
function (targetKey, dict) {
get:
while (true) {
if (dict.$ === 'RBEmpty_elm_builtin') {
return $elm$core$Maybe$Nothing;
} else {
var key = dict.b;
var value = dict.c;
var left = dict.d;
var right = dict.e;
var _v1 = A2($elm$core$Basics$compare, targetKey, key);
switch (_v1.$) {
case 'LT':
var $temp$targetKey = targetKey,
$temp$dict = left;
targetKey = $temp$targetKey;
dict = $temp$dict;
continue get;
case 'EQ':
return $elm$core$Maybe$Just(value);
default:
var $temp$targetKey = targetKey,
$temp$dict = right;
targetKey = $temp$targetKey;
dict = $temp$dict;
continue get;
}
}
}
});
var $elm$core$Dict$member = F2(
function (key, dict) {
var _v0 = A2($elm$core$Dict$get, key, dict);
if (_v0.$ === 'Just') {
return true;
} else {
return false;
}
});
var $elm$core$Set$member = F2(
function (key, _v0) {
var dict = _v0.a;
return A2($elm$core$Dict$member, key, dict);
});
var $mdgriffith$elm_ui$Internal$Model$reduceStyles = F2(
function (style, nevermind) {
var cache = nevermind.a;
var existing = nevermind.b;
var styleName = $mdgriffith$elm_ui$Internal$Model$getStyleName(style);
return A2($elm$core$Set$member, styleName, cache) ? nevermind : _Utils_Tuple2(
A2($elm$core$Set$insert, styleName, cache),
A2($elm$core$List$cons, style, existing));
});
var $mdgriffith$elm_ui$Internal$Model$Property = F2(
function (a, b) {
return {$: 'Property', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Model$Style = F2(
function (a, b) {
return {$: 'Style', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$dot = function (c) {
return '.' + c;
};
var $elm$core$List$maybeCons = F3(
function (f, mx, xs) {
var _v0 = f(mx);
if (_v0.$ === 'Just') {
var x = _v0.a;
return A2($elm$core$List$cons, x, xs);
} else {
return xs;
}
});
var $elm$core$List$filterMap = F2(
function (f, xs) {
return A3(
$elm$core$List$foldr,
$elm$core$List$maybeCons(f),
_List_Nil,
xs);
});
var $elm$core$String$fromFloat = _String_fromNumber;
var $mdgriffith$elm_ui$Internal$Model$formatColor = function (_v0) {
var red = _v0.a;
var green = _v0.b;
var blue = _v0.c;
var alpha = _v0.d;
return 'rgba(' + ($elm$core$String$fromInt(
$elm$core$Basics$round(red * 255)) + ((',' + $elm$core$String$fromInt(
$elm$core$Basics$round(green * 255))) + ((',' + $elm$core$String$fromInt(
$elm$core$Basics$round(blue * 255))) + (',' + ($elm$core$String$fromFloat(alpha) + ')')))));
};
var $mdgriffith$elm_ui$Internal$Model$formatBoxShadow = function (shadow) {
return A2(
$elm$core$String$join,
' ',
A2(
$elm$core$List$filterMap,
$elm$core$Basics$identity,
_List_fromArray(
[
shadow.inset ? $elm$core$Maybe$Just('inset') : $elm$core$Maybe$Nothing,
$elm$core$Maybe$Just(
$elm$core$String$fromFloat(shadow.offset.a) + 'px'),
$elm$core$Maybe$Just(
$elm$core$String$fromFloat(shadow.offset.b) + 'px'),
$elm$core$Maybe$Just(
$elm$core$String$fromFloat(shadow.blur) + 'px'),
$elm$core$Maybe$Just(
$elm$core$String$fromFloat(shadow.size) + 'px'),
$elm$core$Maybe$Just(
$mdgriffith$elm_ui$Internal$Model$formatColor(shadow.color))
])));
};
var $elm$core$Maybe$map = F2(
function (f, maybe) {
if (maybe.$ === 'Just') {
var value = maybe.a;
return $elm$core$Maybe$Just(
f(value));
} else {
return $elm$core$Maybe$Nothing;
}
});
var $elm$core$Tuple$mapFirst = F2(
function (func, _v0) {
var x = _v0.a;
var y = _v0.b;
return _Utils_Tuple2(
func(x),
y);
});
var $elm$core$Tuple$mapSecond = F2(
function (func, _v0) {
var x = _v0.a;
var y = _v0.b;
return _Utils_Tuple2(
x,
func(y));
});
var $mdgriffith$elm_ui$Internal$Model$renderFocusStyle = function (focus) {
return _List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Style,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.focusedWithin) + ':focus-within',
A2(
$elm$core$List$filterMap,
$elm$core$Basics$identity,
_List_fromArray(
[
A2(
$elm$core$Maybe$map,
function (color) {
return A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'border-color',
$mdgriffith$elm_ui$Internal$Model$formatColor(color));
},
focus.borderColor),
A2(
$elm$core$Maybe$map,
function (color) {
return A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'background-color',
$mdgriffith$elm_ui$Internal$Model$formatColor(color));
},
focus.backgroundColor),
A2(
$elm$core$Maybe$map,
function (shadow) {
return A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'box-shadow',
$mdgriffith$elm_ui$Internal$Model$formatBoxShadow(
{
blur: shadow.blur,
color: shadow.color,
inset: false,
offset: A2(
$elm$core$Tuple$mapSecond,
$elm$core$Basics$toFloat,
A2($elm$core$Tuple$mapFirst, $elm$core$Basics$toFloat, shadow.offset)),
size: shadow.size
}));
},
focus.shadow),
$elm$core$Maybe$Just(
A2($mdgriffith$elm_ui$Internal$Model$Property, 'outline', 'none'))
]))),
A2(
$mdgriffith$elm_ui$Internal$Model$Style,
($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + ':focus .focusable, ') + (($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + '.focusable:focus, ') + ('.ui-slide-bar:focus + ' + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + ' .focusable-thumb'))),
A2(
$elm$core$List$filterMap,
$elm$core$Basics$identity,
_List_fromArray(
[
A2(
$elm$core$Maybe$map,
function (color) {
return A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'border-color',
$mdgriffith$elm_ui$Internal$Model$formatColor(color));
},
focus.borderColor),
A2(
$elm$core$Maybe$map,
function (color) {
return A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'background-color',
$mdgriffith$elm_ui$Internal$Model$formatColor(color));
},
focus.backgroundColor),
A2(
$elm$core$Maybe$map,
function (shadow) {
return A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'box-shadow',
$mdgriffith$elm_ui$Internal$Model$formatBoxShadow(
{
blur: shadow.blur,
color: shadow.color,
inset: false,
offset: A2(
$elm$core$Tuple$mapSecond,
$elm$core$Basics$toFloat,
A2($elm$core$Tuple$mapFirst, $elm$core$Basics$toFloat, shadow.offset)),
size: shadow.size
}));
},
focus.shadow),
$elm$core$Maybe$Just(
A2($mdgriffith$elm_ui$Internal$Model$Property, 'outline', 'none'))
])))
]);
};
var $elm$virtual_dom$VirtualDom$node = function (tag) {
return _VirtualDom_node(
_VirtualDom_noScript(tag));
};
var $elm$virtual_dom$VirtualDom$property = F2(
function (key, value) {
return A2(
_VirtualDom_property,
_VirtualDom_noInnerHtmlOrFormAction(key),
_VirtualDom_noJavaScriptOrHtmlUri(value));
});
var $mdgriffith$elm_ui$Internal$Style$AllChildren = F2(
function (a, b) {
return {$: 'AllChildren', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$Batch = function (a) {
return {$: 'Batch', a: a};
};
var $mdgriffith$elm_ui$Internal$Style$Child = F2(
function (a, b) {
return {$: 'Child', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$Class = F2(
function (a, b) {
return {$: 'Class', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$Descriptor = F2(
function (a, b) {
return {$: 'Descriptor', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$Left = {$: 'Left'};
var $mdgriffith$elm_ui$Internal$Style$Prop = F2(
function (a, b) {
return {$: 'Prop', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$Right = {$: 'Right'};
var $mdgriffith$elm_ui$Internal$Style$Self = function (a) {
return {$: 'Self', a: a};
};
var $mdgriffith$elm_ui$Internal$Style$Supports = F2(
function (a, b) {
return {$: 'Supports', a: a, b: b};
});
var $mdgriffith$elm_ui$Internal$Style$Content = function (a) {
return {$: 'Content', a: a};
};
var $mdgriffith$elm_ui$Internal$Style$Bottom = {$: 'Bottom'};
var $mdgriffith$elm_ui$Internal$Style$CenterX = {$: 'CenterX'};
var $mdgriffith$elm_ui$Internal$Style$CenterY = {$: 'CenterY'};
var $mdgriffith$elm_ui$Internal$Style$Top = {$: 'Top'};
var $mdgriffith$elm_ui$Internal$Style$alignments = _List_fromArray(
[$mdgriffith$elm_ui$Internal$Style$Top, $mdgriffith$elm_ui$Internal$Style$Bottom, $mdgriffith$elm_ui$Internal$Style$Right, $mdgriffith$elm_ui$Internal$Style$Left, $mdgriffith$elm_ui$Internal$Style$CenterX, $mdgriffith$elm_ui$Internal$Style$CenterY]);
var $elm$core$List$concatMap = F2(
function (f, list) {
return $elm$core$List$concat(
A2($elm$core$List$map, f, list));
});
var $mdgriffith$elm_ui$Internal$Style$contentName = function (desc) {
switch (desc.a.$) {
case 'Top':
var _v1 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.contentTop);
case 'Bottom':
var _v2 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.contentBottom);
case 'Right':
var _v3 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.contentRight);
case 'Left':
var _v4 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.contentLeft);
case 'CenterX':
var _v5 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.contentCenterX);
default:
var _v6 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.contentCenterY);
}
};
var $mdgriffith$elm_ui$Internal$Style$selfName = function (desc) {
switch (desc.a.$) {
case 'Top':
var _v1 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignTop);
case 'Bottom':
var _v2 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignBottom);
case 'Right':
var _v3 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignRight);
case 'Left':
var _v4 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignLeft);
case 'CenterX':
var _v5 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterX);
default:
var _v6 = desc.a;
return $mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterY);
}
};
var $mdgriffith$elm_ui$Internal$Style$describeAlignment = function (values) {
var createDescription = function (alignment) {
var _v0 = values(alignment);
var content = _v0.a;
var indiv = _v0.b;
return _List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$contentName(
$mdgriffith$elm_ui$Internal$Style$Content(alignment)),
content),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$selfName(
$mdgriffith$elm_ui$Internal$Style$Self(alignment)),
indiv)
]))
]);
};
return $mdgriffith$elm_ui$Internal$Style$Batch(
A2($elm$core$List$concatMap, createDescription, $mdgriffith$elm_ui$Internal$Style$alignments));
};
var $mdgriffith$elm_ui$Internal$Style$elDescription = _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-direction', 'column'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'pre'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.hasBehind),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '0'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.behind),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '-1')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.seButton),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.text),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'auto !important')
]))
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightContent),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', 'auto')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '100000')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFillPortion),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthContent),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-start')
])),
$mdgriffith$elm_ui$Internal$Style$describeAlignment(
function (alignment) {
switch (alignment.$) {
case 'Top':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-start')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', '0 !important')
]));
case 'Bottom':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-end')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', '0 !important')
]));
case 'Right':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-end')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-end')
]));
case 'Left':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-start')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-start')
]));
case 'CenterX':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'center')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'center')
]));
default:
return _Utils_Tuple2(
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto')
]))
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto !important')
]));
}
})
]);
var $mdgriffith$elm_ui$Internal$Style$gridAlignments = function (values) {
var createDescription = function (alignment) {
return _List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$selfName(
$mdgriffith$elm_ui$Internal$Style$Self(alignment)),
values(alignment))
]))
]);
};
return $mdgriffith$elm_ui$Internal$Style$Batch(
A2($elm$core$List$concatMap, createDescription, $mdgriffith$elm_ui$Internal$Style$alignments));
};
var $mdgriffith$elm_ui$Internal$Style$Above = {$: 'Above'};
var $mdgriffith$elm_ui$Internal$Style$Behind = {$: 'Behind'};
var $mdgriffith$elm_ui$Internal$Style$Below = {$: 'Below'};
var $mdgriffith$elm_ui$Internal$Style$OnLeft = {$: 'OnLeft'};
var $mdgriffith$elm_ui$Internal$Style$OnRight = {$: 'OnRight'};
var $mdgriffith$elm_ui$Internal$Style$Within = {$: 'Within'};
var $mdgriffith$elm_ui$Internal$Style$locations = function () {
var loc = $mdgriffith$elm_ui$Internal$Style$Above;
var _v0 = function () {
switch (loc.$) {
case 'Above':
return _Utils_Tuple0;
case 'Below':
return _Utils_Tuple0;
case 'OnRight':
return _Utils_Tuple0;
case 'OnLeft':
return _Utils_Tuple0;
case 'Within':
return _Utils_Tuple0;
default:
return _Utils_Tuple0;
}
}();
return _List_fromArray(
[$mdgriffith$elm_ui$Internal$Style$Above, $mdgriffith$elm_ui$Internal$Style$Below, $mdgriffith$elm_ui$Internal$Style$OnRight, $mdgriffith$elm_ui$Internal$Style$OnLeft, $mdgriffith$elm_ui$Internal$Style$Within, $mdgriffith$elm_ui$Internal$Style$Behind]);
}();
var $mdgriffith$elm_ui$Internal$Style$baseSheet = _List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'html,body',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'padding', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
_Utils_ap(
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_Utils_ap(
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.single),
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.imageContainer))),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'block'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'img',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'max-height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'object-fit', 'cover')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFill),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'img',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'max-width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'object-fit', 'cover')
]))
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + ':focus',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'outline', 'none')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.root),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'min-height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '0'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
_Utils_ap(
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inFront),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.nearby),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'fixed'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '20')
]))
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.nearby),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'relative'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-direction', 'row'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.single),
$mdgriffith$elm_ui$Internal$Style$elDescription),
$mdgriffith$elm_ui$Internal$Style$Batch(
function (fn) {
return A2($elm$core$List$map, fn, $mdgriffith$elm_ui$Internal$Style$locations);
}(
function (loc) {
switch (loc.$) {
case 'Above':
return A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.above),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'absolute'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'bottom', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'left', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '20'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', 'auto')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%')
])),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'*',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto')
]))
]));
case 'Below':
return A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.below),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'absolute'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'bottom', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'left', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '20'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'*',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', 'auto')
]))
]));
case 'OnRight':
return A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.onRight),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'absolute'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'left', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'top', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '20'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'*',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto')
]))
]));
case 'OnLeft':
return A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.onLeft),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'absolute'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'right', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'top', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '20'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'*',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto')
]))
]));
case 'Within':
return A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inFront),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'absolute'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'left', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'top', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'*',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto')
]))
]));
default:
return A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.behind),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'absolute'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'left', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'top', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'*',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto')
]))
]));
}
}))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'relative'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-shrink', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-direction', 'row'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'resize', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-feature-settings', 'inherit'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'box-sizing', 'border-box'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'padding', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border-width', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border-style', 'solid'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-size', 'inherit'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'color', 'inherit'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-family', 'inherit'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'line-height', '1'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', 'inherit'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-style', 'inherit'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.wrapped),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-wrap', 'wrap')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.noTextSelection),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, '-moz-user-select', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, '-webkit-user-select', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, '-ms-user-select', 'none'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'user-select', 'none')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.cursorPointer),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'cursor', 'pointer')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.cursorText),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'cursor', 'text')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.passPointerEvents),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.capturePointerEvents),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'auto !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.transparent),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.opaque),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$classes.hover, $mdgriffith$elm_ui$Internal$Style$classes.transparent)) + ':hover',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$classes.hover, $mdgriffith$elm_ui$Internal$Style$classes.opaque)) + ':hover',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$classes.focus, $mdgriffith$elm_ui$Internal$Style$classes.transparent)) + ':focus',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$classes.focus, $mdgriffith$elm_ui$Internal$Style$classes.opaque)) + ':focus',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$classes.active, $mdgriffith$elm_ui$Internal$Style$classes.transparent)) + ':active',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$classes.active, $mdgriffith$elm_ui$Internal$Style$classes.opaque)) + ':active',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'opacity', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.transition),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Prop,
'transition',
A2(
$elm$core$String$join,
', ',
A2(
$elm$core$List$map,
function (x) {
return x + ' 160ms';
},
_List_fromArray(
['transform', 'opacity', 'filter', 'background-color', 'color', 'font-size']))))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.scrollbars),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-shrink', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.scrollbarsX),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow-x', 'auto'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.row),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-shrink', '1')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.scrollbarsY),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow-y', 'auto'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.column),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-shrink', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.single),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-shrink', '1')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.clip),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow', 'hidden')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.clipX),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow-x', 'hidden')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.clipY),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow-y', 'hidden')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthContent),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', 'auto')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.borderNone),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border-width', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.borderDashed),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border-style', 'dashed')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.borderDotted),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border-style', 'dotted')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.borderSolid),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'border-style', 'solid')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.text),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'pre'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline-block')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inputText),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'line-height', '1.05'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'background', 'transparent'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-align', 'inherit')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.single),
$mdgriffith$elm_ui$Internal$Style$elDescription),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.row),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-direction', 'row'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', '0%'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthExact),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.link),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'stretch !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFillPortion),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'stretch !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '100000')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.container),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'stretch')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'u:first-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerRight,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:first-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterX,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterX),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-left', 'auto !important')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:last-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterX,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterX),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-right', 'auto !important')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:only-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterX,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterY),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto !important')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:last-of-type.' + ($mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterX + ' ~ u'),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'u:first-of-type.' + ($mdgriffith$elm_ui$Internal$Style$classes.alignContainerRight + (' ~ s.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterX)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0')
])),
$mdgriffith$elm_ui$Internal$Style$describeAlignment(
function (alignment) {
switch (alignment.$) {
case 'Top':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-start')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-start')
]));
case 'Bottom':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-end')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-end')
]));
case 'Right':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-end')
]),
_List_Nil);
case 'Left':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-start')
]),
_List_Nil);
case 'CenterX':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'center')
]),
_List_Nil);
default:
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'center')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'center')
]));
}
}),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.spaceEvenly),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'space-between')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inputLabel),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'baseline')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.column),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-direction', 'column'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', '0px'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'min-height', 'min-content'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightExact),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.heightFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '100000')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFill),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthFillPortion),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthContent),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-start')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'u:first-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerBottom,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:first-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterY,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterY),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', '0 !important')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:last-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterY,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterY),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', '0 !important')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:only-of-type.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterY,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '1'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.alignCenterY),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto !important')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
's:last-of-type.' + ($mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterY + ' ~ u'),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'u:first-of-type.' + ($mdgriffith$elm_ui$Internal$Style$classes.alignContainerBottom + (' ~ s.' + $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterY)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0')
])),
$mdgriffith$elm_ui$Internal$Style$describeAlignment(
function (alignment) {
switch (alignment.$) {
case 'Top':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-start')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-bottom', 'auto')
]));
case 'Bottom':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-end')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin-top', 'auto')
]));
case 'Right':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-end')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-end')
]));
case 'Left':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-start')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'flex-start')
]));
case 'CenterX':
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'center')
]),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'center')
]));
default:
return _Utils_Tuple2(
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'center')
]),
_List_Nil);
}
}),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.container),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-grow', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-self', 'stretch !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.spaceEvenly),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'space-between')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.grid),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', '-ms-grid'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
'.gp',
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Supports,
_Utils_Tuple2('display', 'grid'),
_List_fromArray(
[
_Utils_Tuple2('display', 'grid')
])),
$mdgriffith$elm_ui$Internal$Style$gridAlignments(
function (alignment) {
switch (alignment.$) {
case 'Top':
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-start')
]);
case 'Bottom':
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'flex-end')
]);
case 'Right':
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-end')
]);
case 'Left':
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'flex-start')
]);
case 'CenterX':
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'align-items', 'center')
]);
default:
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'justify-content', 'center')
]);
}
})
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.page),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'block'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any + ':first-child'),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot(
$mdgriffith$elm_ui$Internal$Style$classes.any + ($mdgriffith$elm_ui$Internal$Style$selfName(
$mdgriffith$elm_ui$Internal$Style$Self($mdgriffith$elm_ui$Internal$Style$Left)) + (':first-child + .' + $mdgriffith$elm_ui$Internal$Style$classes.any))),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot(
$mdgriffith$elm_ui$Internal$Style$classes.any + ($mdgriffith$elm_ui$Internal$Style$selfName(
$mdgriffith$elm_ui$Internal$Style$Self($mdgriffith$elm_ui$Internal$Style$Right)) + (':first-child + .' + $mdgriffith$elm_ui$Internal$Style$classes.any))),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'margin', '0 !important')
])),
$mdgriffith$elm_ui$Internal$Style$describeAlignment(
function (alignment) {
switch (alignment.$) {
case 'Top':
return _Utils_Tuple2(_List_Nil, _List_Nil);
case 'Bottom':
return _Utils_Tuple2(_List_Nil, _List_Nil);
case 'Right':
return _Utils_Tuple2(
_List_Nil,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'float', 'right'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
'::after',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'content', '\"\"'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'table'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'clear', 'both')
]))
]));
case 'Left':
return _Utils_Tuple2(
_List_Nil,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'float', 'left'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
'::after',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'content', '\"\"'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'table'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'clear', 'both')
]))
]));
case 'CenterX':
return _Utils_Tuple2(_List_Nil, _List_Nil);
default:
return _Utils_Tuple2(_List_Nil, _List_Nil);
}
})
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inputMultiline),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'pre-wrap !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'background-color', 'transparent')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inputMultilineWrapper),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.single),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'flex-basis', 'auto')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inputMultilineParent),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'pre-wrap !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'cursor', 'text'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inputMultilineFiller),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'pre-wrap !important'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'color', 'transparent')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.paragraph),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'block'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'normal'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'overflow-wrap', 'break-word'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.hasBehind),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '0'),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.behind),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'z-index', '-1')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$AllChildren,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.text),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'normal')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$AllChildren,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.paragraph),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
'::after',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'content', 'none')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
'::before',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'content', 'none')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$AllChildren,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.single),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'normal'),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.widthExact),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline-block')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.inFront),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.behind),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.above),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.below),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.onRight),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.onLeft),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.text),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'white-space', 'normal')
]))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.row),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.column),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline-flex')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Child,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.grid),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'inline-grid')
])),
$mdgriffith$elm_ui$Internal$Style$describeAlignment(
function (alignment) {
switch (alignment.$) {
case 'Top':
return _Utils_Tuple2(_List_Nil, _List_Nil);
case 'Bottom':
return _Utils_Tuple2(_List_Nil, _List_Nil);
case 'Right':
return _Utils_Tuple2(
_List_Nil,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'float', 'right')
]));
case 'Left':
return _Utils_Tuple2(
_List_Nil,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'float', 'left')
]));
case 'CenterX':
return _Utils_Tuple2(_List_Nil, _List_Nil);
default:
return _Utils_Tuple2(_List_Nil, _List_Nil);
}
})
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
'.hidden',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'display', 'none')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textThin),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '100')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textExtraLight),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '200')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textLight),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '300')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textNormalWeight),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '400')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textMedium),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '500')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textSemiBold),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '600')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.bold),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '700')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textExtraBold),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '800')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textHeavy),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-weight', '900')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.italic),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-style', 'italic')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.strike),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration', 'line-through')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.underline),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration', 'underline'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration-skip-ink', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration-skip', 'ink')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
_Utils_ap(
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.underline),
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.strike)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration', 'line-through underline'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration-skip-ink', 'auto'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-decoration-skip', 'ink')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textUnitalicized),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-style', 'normal')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textJustify),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-align', 'justify')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textJustifyAll),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-align', 'justify-all')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textCenter),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-align', 'center')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textRight),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-align', 'right')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
$mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.textLeft),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'text-align', 'left')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Descriptor,
'.modal',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'position', 'fixed'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'left', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'top', '0'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'width', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'height', '100%'),
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'pointer-events', 'none')
]))
]))
]);
var $mdgriffith$elm_ui$Internal$Style$fontVariant = function (_var) {
return _List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.v-' + _var,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-feature-settings', '\"' + (_var + '\"'))
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.v-' + (_var + '-off'),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-feature-settings', '\"' + (_var + '\" 0'))
]))
]);
};
var $mdgriffith$elm_ui$Internal$Style$commonValues = $elm$core$List$concat(
_List_fromArray(
[
A2(
$elm$core$List$map,
function (x) {
return A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.border-' + $elm$core$String$fromInt(x),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Prop,
'border-width',
$elm$core$String$fromInt(x) + 'px')
]));
},
A2($elm$core$List$range, 0, 6)),
A2(
$elm$core$List$map,
function (i) {
return A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.font-size-' + $elm$core$String$fromInt(i),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Prop,
'font-size',
$elm$core$String$fromInt(i) + 'px')
]));
},
A2($elm$core$List$range, 8, 32)),
A2(
$elm$core$List$map,
function (i) {
return A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.p-' + $elm$core$String$fromInt(i),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Prop,
'padding',
$elm$core$String$fromInt(i) + 'px')
]));
},
A2($elm$core$List$range, 0, 24)),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.v-smcp',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-variant', 'small-caps')
])),
A2(
$mdgriffith$elm_ui$Internal$Style$Class,
'.v-smcp-off',
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Style$Prop, 'font-variant', 'normal')
]))
]),
$mdgriffith$elm_ui$Internal$Style$fontVariant('zero'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('onum'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('liga'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('dlig'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('ordn'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('tnum'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('afrc'),
$mdgriffith$elm_ui$Internal$Style$fontVariant('frac')
]));
var $mdgriffith$elm_ui$Internal$Style$explainer = '\n.explain {\n border: 6px solid rgb(174, 121, 15) !important;\n}\n.explain > .' + ($mdgriffith$elm_ui$Internal$Style$classes.any + (' {\n border: 4px dashed rgb(0, 151, 167) !important;\n}\n\n.ctr {\n border: none !important;\n}\n.explain > .ctr > .' + ($mdgriffith$elm_ui$Internal$Style$classes.any + ' {\n border: 4px dashed rgb(0, 151, 167) !important;\n}\n\n')));
var $mdgriffith$elm_ui$Internal$Style$inputTextReset = '\ninput[type="search"],\ninput[type="search"]::-webkit-search-decoration,\ninput[type="search"]::-webkit-search-cancel-button,\ninput[type="search"]::-webkit-search-results-button,\ninput[type="search"]::-webkit-search-results-decoration {\n -webkit-appearance:none;\n}\n';
var $mdgriffith$elm_ui$Internal$Style$sliderReset = '\ninput[type=range] {\n -webkit-appearance: none; \n background: transparent;\n position:absolute;\n left:0;\n top:0;\n z-index:10;\n width: 100%;\n outline: dashed 1px;\n height: 100%;\n opacity: 0;\n}\n';
var $mdgriffith$elm_ui$Internal$Style$thumbReset = '\ninput[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n opacity: 0.5;\n width: 80px;\n height: 80px;\n background-color: black;\n border:none;\n border-radius: 5px;\n}\ninput[type=range]::-moz-range-thumb {\n opacity: 0.5;\n width: 80px;\n height: 80px;\n background-color: black;\n border:none;\n border-radius: 5px;\n}\ninput[type=range]::-ms-thumb {\n opacity: 0.5;\n width: 80px;\n height: 80px;\n background-color: black;\n border:none;\n border-radius: 5px;\n}\ninput[type=range][orient=vertical]{\n writing-mode: bt-lr; /* IE */\n -webkit-appearance: slider-vertical; /* WebKit */\n}\n';
var $mdgriffith$elm_ui$Internal$Style$trackReset = '\ninput[type=range]::-moz-range-track {\n background: transparent;\n cursor: pointer;\n}\ninput[type=range]::-ms-track {\n background: transparent;\n cursor: pointer;\n}\ninput[type=range]::-webkit-slider-runnable-track {\n background: transparent;\n cursor: pointer;\n}\n';
var $mdgriffith$elm_ui$Internal$Style$overrides = '@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {' + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.row) + (' > ' + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + (' { flex-basis: auto !important; } ' + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.row) + (' > ' + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.container) + (' { flex-basis: auto !important; }}' + ($mdgriffith$elm_ui$Internal$Style$inputTextReset + ($mdgriffith$elm_ui$Internal$Style$sliderReset + ($mdgriffith$elm_ui$Internal$Style$trackReset + ($mdgriffith$elm_ui$Internal$Style$thumbReset + $mdgriffith$elm_ui$Internal$Style$explainer)))))))))))))));
var $elm$core$String$concat = function (strings) {
return A2($elm$core$String$join, '', strings);
};
var $mdgriffith$elm_ui$Internal$Style$Intermediate = function (a) {
return {$: 'Intermediate', a: a};
};
var $mdgriffith$elm_ui$Internal$Style$emptyIntermediate = F2(
function (selector, closing) {
return $mdgriffith$elm_ui$Internal$Style$Intermediate(
{closing: closing, others: _List_Nil, props: _List_Nil, selector: selector});
});
var $mdgriffith$elm_ui$Internal$Style$renderRules = F2(
function (_v0, rulesToRender) {
var parent = _v0.a;
var generateIntermediates = F2(
function (rule, rendered) {
switch (rule.$) {
case 'Prop':
var name = rule.a;
var val = rule.b;
return _Utils_update(
rendered,
{
props: A2(
$elm$core$List$cons,
_Utils_Tuple2(name, val),
rendered.props)
});
case 'Supports':
var _v2 = rule.a;
var prop = _v2.a;
var value = _v2.b;
var props = rule.b;
return _Utils_update(
rendered,
{
others: A2(
$elm$core$List$cons,
$mdgriffith$elm_ui$Internal$Style$Intermediate(
{closing: '\n}', others: _List_Nil, props: props, selector: '@supports (' + (prop + (':' + (value + (') {' + parent.selector))))}),
rendered.others)
});
case 'Adjacent':
var selector = rule.a;
var adjRules = rule.b;
return _Utils_update(
rendered,
{
others: A2(
$elm$core$List$cons,
A2(
$mdgriffith$elm_ui$Internal$Style$renderRules,
A2($mdgriffith$elm_ui$Internal$Style$emptyIntermediate, parent.selector + (' + ' + selector), ''),
adjRules),
rendered.others)
});
case 'Child':
var child = rule.a;
var childRules = rule.b;
return _Utils_update(
rendered,
{
others: A2(
$elm$core$List$cons,
A2(
$mdgriffith$elm_ui$Internal$Style$renderRules,
A2($mdgriffith$elm_ui$Internal$Style$emptyIntermediate, parent.selector + (' > ' + child), ''),
childRules),
rendered.others)
});
case 'AllChildren':
var child = rule.a;
var childRules = rule.b;
return _Utils_update(
rendered,
{
others: A2(
$elm$core$List$cons,
A2(
$mdgriffith$elm_ui$Internal$Style$renderRules,
A2($mdgriffith$elm_ui$Internal$Style$emptyIntermediate, parent.selector + (' ' + child), ''),
childRules),
rendered.others)
});
case 'Descriptor':
var descriptor = rule.a;
var descriptorRules = rule.b;
return _Utils_update(
rendered,
{
others: A2(
$elm$core$List$cons,
A2(
$mdgriffith$elm_ui$Internal$Style$renderRules,
A2(
$mdgriffith$elm_ui$Internal$Style$emptyIntermediate,
_Utils_ap(parent.selector, descriptor),
''),
descriptorRules),
rendered.others)
});
default:
var batched = rule.a;
return _Utils_update(
rendered,
{
others: A2(
$elm$core$List$cons,
A2(
$mdgriffith$elm_ui$Internal$Style$renderRules,
A2($mdgriffith$elm_ui$Internal$Style$emptyIntermediate, parent.selector, ''),
batched),
rendered.others)
});
}
});
return $mdgriffith$elm_ui$Internal$Style$Intermediate(
A3($elm$core$List$foldr, generateIntermediates, parent, rulesToRender));
});
var $mdgriffith$elm_ui$Internal$Style$renderCompact = function (styleClasses) {
var renderValues = function (values) {
return $elm$core$String$concat(
A2(
$elm$core$List$map,
function (_v3) {
var x = _v3.a;
var y = _v3.b;
return x + (':' + (y + ';'));
},
values));
};
var renderClass = function (rule) {
var _v2 = rule.props;
if (!_v2.b) {
return '';
} else {
return rule.selector + ('{' + (renderValues(rule.props) + (rule.closing + '}')));
}
};
var renderIntermediate = function (_v0) {
var rule = _v0.a;
return _Utils_ap(
renderClass(rule),
$elm$core$String$concat(
A2($elm$core$List$map, renderIntermediate, rule.others)));
};
return $elm$core$String$concat(
A2(
$elm$core$List$map,
renderIntermediate,
A3(
$elm$core$List$foldr,
F2(
function (_v1, existing) {
var name = _v1.a;
var styleRules = _v1.b;
return A2(
$elm$core$List$cons,
A2(
$mdgriffith$elm_ui$Internal$Style$renderRules,
A2($mdgriffith$elm_ui$Internal$Style$emptyIntermediate, name, ''),
styleRules),
existing);
}),
_List_Nil,
styleClasses)));
};
var $mdgriffith$elm_ui$Internal$Style$rules = _Utils_ap(
$mdgriffith$elm_ui$Internal$Style$overrides,
$mdgriffith$elm_ui$Internal$Style$renderCompact(
_Utils_ap($mdgriffith$elm_ui$Internal$Style$baseSheet, $mdgriffith$elm_ui$Internal$Style$commonValues)));
var $elm$virtual_dom$VirtualDom$text = _VirtualDom_text;
var $mdgriffith$elm_ui$Internal$Model$staticRoot = function (opts) {
var _v0 = opts.mode;
switch (_v0.$) {
case 'Layout':
return A3(
$elm$virtual_dom$VirtualDom$node,
'div',
_List_Nil,
_List_fromArray(
[
A3(
$elm$virtual_dom$VirtualDom$node,
'style',
_List_Nil,
_List_fromArray(
[
$elm$virtual_dom$VirtualDom$text($mdgriffith$elm_ui$Internal$Style$rules)
]))
]));
case 'NoStaticStyleSheet':
return $elm$virtual_dom$VirtualDom$text('');
default:
return A3(
$elm$virtual_dom$VirtualDom$node,
'elm-ui-static-rules',
_List_fromArray(
[
A2(
$elm$virtual_dom$VirtualDom$property,
'rules',
$elm$json$Json$Encode$string($mdgriffith$elm_ui$Internal$Style$rules))
]),
_List_Nil);
}
};
var $elm$json$Json$Encode$list = F2(
function (func, entries) {
return _Json_wrap(
A3(
$elm$core$List$foldl,
_Json_addEntry(func),
_Json_emptyArray(_Utils_Tuple0),
entries));
});
var $elm$json$Json$Encode$object = function (pairs) {
return _Json_wrap(
A3(
$elm$core$List$foldl,
F2(
function (_v0, obj) {
var k = _v0.a;
var v = _v0.b;
return A3(_Json_addField, k, v, obj);
}),
_Json_emptyObject(_Utils_Tuple0),
pairs));
};
var $elm$core$List$any = F2(
function (isOkay, list) {
any:
while (true) {
if (!list.b) {
return false;
} else {
var x = list.a;
var xs = list.b;
if (isOkay(x)) {
return true;
} else {
var $temp$isOkay = isOkay,
$temp$list = xs;
isOkay = $temp$isOkay;
list = $temp$list;
continue any;
}
}
}
});
var $mdgriffith$elm_ui$Internal$Model$fontName = function (font) {
switch (font.$) {
case 'Serif':
return 'serif';
case 'SansSerif':
return 'sans-serif';
case 'Monospace':
return 'monospace';
case 'Typeface':
var name = font.a;
return '\"' + (name + '\"');
case 'ImportFont':
var name = font.a;
var url = font.b;
return '\"' + (name + '\"');
default:
var name = font.a.name;
return '\"' + (name + '\"');
}
};
var $mdgriffith$elm_ui$Internal$Model$isSmallCaps = function (_var) {
switch (_var.$) {
case 'VariantActive':
var name = _var.a;
return name === 'smcp';
case 'VariantOff':
var name = _var.a;
return false;
default:
var name = _var.a;
var index = _var.b;
return (name === 'smcp') && (index === 1);
}
};
var $mdgriffith$elm_ui$Internal$Model$hasSmallCaps = function (typeface) {
if (typeface.$ === 'FontWith') {
var font = typeface.a;
return A2($elm$core$List$any, $mdgriffith$elm_ui$Internal$Model$isSmallCaps, font.variants);
} else {
return false;
}
};
var $elm$core$Basics$min = F2(
function (x, y) {
return (_Utils_cmp(x, y) < 0) ? x : y;
});
var $elm$core$Basics$negate = function (n) {
return -n;
};
var $mdgriffith$elm_ui$Internal$Model$renderProps = F3(
function (force, _v0, existing) {
var key = _v0.a;
var val = _v0.b;
return force ? (existing + ('\n ' + (key + (': ' + (val + ' !important;'))))) : (existing + ('\n ' + (key + (': ' + (val + ';')))));
});
var $mdgriffith$elm_ui$Internal$Model$renderStyle = F4(
function (options, maybePseudo, selector, props) {
if (maybePseudo.$ === 'Nothing') {
return _List_fromArray(
[
selector + ('{' + (A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$renderProps(false),
'',
props) + '\n}'))
]);
} else {
var pseudo = maybePseudo.a;
switch (pseudo.$) {
case 'Hover':
var _v2 = options.hover;
switch (_v2.$) {
case 'NoHover':
return _List_Nil;
case 'ForceHover':
return _List_fromArray(
[
selector + ('-hv {' + (A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$renderProps(true),
'',
props) + '\n}'))
]);
default:
return _List_fromArray(
[
selector + ('-hv:hover {' + (A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$renderProps(false),
'',
props) + '\n}'))
]);
}
case 'Focus':
var renderedProps = A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$renderProps(false),
'',
props);
return _List_fromArray(
[
selector + ('-fs:focus {' + (renderedProps + '\n}')),
('.' + ($mdgriffith$elm_ui$Internal$Style$classes.any + (':focus ' + (selector + '-fs {')))) + (renderedProps + '\n}'),
(selector + '-fs:focus-within {') + (renderedProps + '\n}'),
('.ui-slide-bar:focus + ' + ($mdgriffith$elm_ui$Internal$Style$dot($mdgriffith$elm_ui$Internal$Style$classes.any) + (' .focusable-thumb' + (selector + '-fs {')))) + (renderedProps + '\n}')
]);
default:
return _List_fromArray(
[
selector + ('-act:active {' + (A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$renderProps(false),
'',
props) + '\n}'))
]);
}
}
});
var $mdgriffith$elm_ui$Internal$Model$renderVariant = function (_var) {
switch (_var.$) {
case 'VariantActive':
var name = _var.a;
return '\"' + (name + '\"');
case 'VariantOff':
var name = _var.a;
return '\"' + (name + '\" 0');
default:
var name = _var.a;
var index = _var.b;
return '\"' + (name + ('\" ' + $elm$core$String$fromInt(index)));
}
};
var $mdgriffith$elm_ui$Internal$Model$renderVariants = function (typeface) {
if (typeface.$ === 'FontWith') {
var font = typeface.a;
return $elm$core$Maybe$Just(
A2(
$elm$core$String$join,
', ',
A2($elm$core$List$map, $mdgriffith$elm_ui$Internal$Model$renderVariant, font.variants)));
} else {
return $elm$core$Maybe$Nothing;
}
};
var $mdgriffith$elm_ui$Internal$Model$transformValue = function (transform) {
switch (transform.$) {
case 'Untransformed':
return $elm$core$Maybe$Nothing;
case 'Moved':
var _v1 = transform.a;
var x = _v1.a;
var y = _v1.b;
var z = _v1.c;
return $elm$core$Maybe$Just(
'translate3d(' + ($elm$core$String$fromFloat(x) + ('px, ' + ($elm$core$String$fromFloat(y) + ('px, ' + ($elm$core$String$fromFloat(z) + 'px)'))))));
default:
var _v2 = transform.a;
var tx = _v2.a;
var ty = _v2.b;
var tz = _v2.c;
var _v3 = transform.b;
var sx = _v3.a;
var sy = _v3.b;
var sz = _v3.c;
var _v4 = transform.c;
var ox = _v4.a;
var oy = _v4.b;
var oz = _v4.c;
var angle = transform.d;
var translate = 'translate3d(' + ($elm$core$String$fromFloat(tx) + ('px, ' + ($elm$core$String$fromFloat(ty) + ('px, ' + ($elm$core$String$fromFloat(tz) + 'px)')))));
var scale = 'scale3d(' + ($elm$core$String$fromFloat(sx) + (', ' + ($elm$core$String$fromFloat(sy) + (', ' + ($elm$core$String$fromFloat(sz) + ')')))));
var rotate = 'rotate3d(' + ($elm$core$String$fromFloat(ox) + (', ' + ($elm$core$String$fromFloat(oy) + (', ' + ($elm$core$String$fromFloat(oz) + (', ' + ($elm$core$String$fromFloat(angle) + 'rad)')))))));
return $elm$core$Maybe$Just(translate + (' ' + (scale + (' ' + rotate))));
}
};
var $mdgriffith$elm_ui$Internal$Model$renderStyleRule = F3(
function (options, rule, maybePseudo) {
switch (rule.$) {
case 'Style':
var selector = rule.a;
var props = rule.b;
return A4($mdgriffith$elm_ui$Internal$Model$renderStyle, options, maybePseudo, selector, props);
case 'Shadows':
var name = rule.a;
var prop = rule.b;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'.' + name,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'box-shadow', prop)
]));
case 'Transparency':
var name = rule.a;
var transparency = rule.b;
var opacity = A2(
$elm$core$Basics$max,
0,
A2($elm$core$Basics$min, 1, 1 - transparency));
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'.' + name,
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'opacity',
$elm$core$String$fromFloat(opacity))
]));
case 'FontSize':
var i = rule.a;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'.font-size-' + $elm$core$String$fromInt(i),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'font-size',
$elm$core$String$fromInt(i) + 'px')
]));
case 'FontFamily':
var name = rule.a;
var typefaces = rule.b;
var features = A2(
$elm$core$String$join,
', ',
A2($elm$core$List$filterMap, $mdgriffith$elm_ui$Internal$Model$renderVariants, typefaces));
var families = _List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'font-family',
A2(
$elm$core$String$join,
', ',
A2($elm$core$List$map, $mdgriffith$elm_ui$Internal$Model$fontName, typefaces))),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'font-feature-settings', features),
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'font-variant',
A2($elm$core$List$any, $mdgriffith$elm_ui$Internal$Model$hasSmallCaps, typefaces) ? 'small-caps' : 'normal')
]);
return A4($mdgriffith$elm_ui$Internal$Model$renderStyle, options, maybePseudo, '.' + name, families);
case 'Single':
var _class = rule.a;
var prop = rule.b;
var val = rule.c;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'.' + _class,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, prop, val)
]));
case 'Colored':
var _class = rule.a;
var prop = rule.b;
var color = rule.c;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'.' + _class,
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
prop,
$mdgriffith$elm_ui$Internal$Model$formatColor(color))
]));
case 'SpacingStyle':
var cls = rule.a;
var x = rule.b;
var y = rule.c;
var yPx = $elm$core$String$fromInt(y) + 'px';
var xPx = $elm$core$String$fromInt(x) + 'px';
var single = '.' + $mdgriffith$elm_ui$Internal$Style$classes.single;
var row = '.' + $mdgriffith$elm_ui$Internal$Style$classes.row;
var wrappedRow = '.' + ($mdgriffith$elm_ui$Internal$Style$classes.wrapped + row);
var right = '.' + $mdgriffith$elm_ui$Internal$Style$classes.alignRight;
var paragraph = '.' + $mdgriffith$elm_ui$Internal$Style$classes.paragraph;
var page = '.' + $mdgriffith$elm_ui$Internal$Style$classes.page;
var left = '.' + $mdgriffith$elm_ui$Internal$Style$classes.alignLeft;
var halfY = $elm$core$String$fromFloat(y / 2) + 'px';
var halfX = $elm$core$String$fromFloat(x / 2) + 'px';
var column = '.' + $mdgriffith$elm_ui$Internal$Style$classes.column;
var _class = '.' + cls;
var any = '.' + $mdgriffith$elm_ui$Internal$Style$classes.any;
return $elm$core$List$concat(
_List_fromArray(
[
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (row + (' > ' + (any + (' + ' + any)))),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-left', xPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (wrappedRow + (' > ' + any)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin', halfY + (' ' + halfX))
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (column + (' > ' + (any + (' + ' + any)))),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-top', yPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (page + (' > ' + (any + (' + ' + any)))),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-top', yPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (page + (' > ' + left)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-right', xPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (page + (' > ' + right)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-left', xPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_Utils_ap(_class, paragraph),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'line-height',
'calc(1em + ' + ($elm$core$String$fromInt(y) + 'px)'))
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'textarea' + (any + _class),
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'line-height',
'calc(1em + ' + ($elm$core$String$fromInt(y) + 'px)')),
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'height',
'calc(100% + ' + ($elm$core$String$fromInt(y) + 'px)'))
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (paragraph + (' > ' + left)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-right', xPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (paragraph + (' > ' + right)),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'margin-left', xPx)
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (paragraph + '::after'),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'content', '\'\''),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'display', 'block'),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'height', '0'),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'width', '0'),
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'margin-top',
$elm$core$String$fromInt((-1) * ((y / 2) | 0)) + 'px')
])),
A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class + (paragraph + '::before'),
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'content', '\'\''),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'display', 'block'),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'height', '0'),
A2($mdgriffith$elm_ui$Internal$Model$Property, 'width', '0'),
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'margin-bottom',
$elm$core$String$fromInt((-1) * ((y / 2) | 0)) + 'px')
]))
]));
case 'PaddingStyle':
var cls = rule.a;
var top = rule.b;
var right = rule.c;
var bottom = rule.d;
var left = rule.e;
var _class = '.' + cls;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class,
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'padding',
$elm$core$String$fromFloat(top) + ('px ' + ($elm$core$String$fromFloat(right) + ('px ' + ($elm$core$String$fromFloat(bottom) + ('px ' + ($elm$core$String$fromFloat(left) + 'px')))))))
]));
case 'BorderWidth':
var cls = rule.a;
var top = rule.b;
var right = rule.c;
var bottom = rule.d;
var left = rule.e;
var _class = '.' + cls;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
_class,
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$Property,
'border-width',
$elm$core$String$fromInt(top) + ('px ' + ($elm$core$String$fromInt(right) + ('px ' + ($elm$core$String$fromInt(bottom) + ('px ' + ($elm$core$String$fromInt(left) + 'px')))))))
]));
case 'GridTemplateStyle':
var template = rule.a;
var toGridLengthHelper = F3(
function (minimum, maximum, x) {
toGridLengthHelper:
while (true) {
switch (x.$) {
case 'Px':
var px = x.a;
return $elm$core$String$fromInt(px) + 'px';
case 'Content':
var _v2 = _Utils_Tuple2(minimum, maximum);
if (_v2.a.$ === 'Nothing') {
if (_v2.b.$ === 'Nothing') {
var _v3 = _v2.a;
var _v4 = _v2.b;
return 'max-content';
} else {
var _v6 = _v2.a;
var maxSize = _v2.b.a;
return 'minmax(max-content, ' + ($elm$core$String$fromInt(maxSize) + 'px)');
}
} else {
if (_v2.b.$ === 'Nothing') {
var minSize = _v2.a.a;
var _v5 = _v2.b;
return 'minmax(' + ($elm$core$String$fromInt(minSize) + ('px, ' + 'max-content)'));
} else {
var minSize = _v2.a.a;
var maxSize = _v2.b.a;
return 'minmax(' + ($elm$core$String$fromInt(minSize) + ('px, ' + ($elm$core$String$fromInt(maxSize) + 'px)')));
}
}
case 'Fill':
var i = x.a;
var _v7 = _Utils_Tuple2(minimum, maximum);
if (_v7.a.$ === 'Nothing') {
if (_v7.b.$ === 'Nothing') {
var _v8 = _v7.a;
var _v9 = _v7.b;
return $elm$core$String$fromInt(i) + 'fr';
} else {
var _v11 = _v7.a;
var maxSize = _v7.b.a;
return 'minmax(max-content, ' + ($elm$core$String$fromInt(maxSize) + 'px)');
}
} else {
if (_v7.b.$ === 'Nothing') {
var minSize = _v7.a.a;
var _v10 = _v7.b;
return 'minmax(' + ($elm$core$String$fromInt(minSize) + ('px, ' + ($elm$core$String$fromInt(i) + ('fr' + 'fr)'))));
} else {
var minSize = _v7.a.a;
var maxSize = _v7.b.a;
return 'minmax(' + ($elm$core$String$fromInt(minSize) + ('px, ' + ($elm$core$String$fromInt(maxSize) + 'px)')));
}
}
case 'Min':
var m = x.a;
var len = x.b;
var $temp$minimum = $elm$core$Maybe$Just(m),
$temp$maximum = maximum,
$temp$x = len;
minimum = $temp$minimum;
maximum = $temp$maximum;
x = $temp$x;
continue toGridLengthHelper;
default:
var m = x.a;
var len = x.b;
var $temp$minimum = minimum,
$temp$maximum = $elm$core$Maybe$Just(m),
$temp$x = len;
minimum = $temp$minimum;
maximum = $temp$maximum;
x = $temp$x;
continue toGridLengthHelper;
}
}
});
var toGridLength = function (x) {
return A3(toGridLengthHelper, $elm$core$Maybe$Nothing, $elm$core$Maybe$Nothing, x);
};
var xSpacing = toGridLength(template.spacing.a);
var ySpacing = toGridLength(template.spacing.b);
var rows = function (x) {
return 'grid-template-rows: ' + (x + ';');
}(
A2(
$elm$core$String$join,
' ',
A2($elm$core$List$map, toGridLength, template.rows)));
var msRows = function (x) {
return '-ms-grid-rows: ' + (x + ';');
}(
A2(
$elm$core$String$join,
ySpacing,
A2($elm$core$List$map, toGridLength, template.columns)));
var msColumns = function (x) {
return '-ms-grid-columns: ' + (x + ';');
}(
A2(
$elm$core$String$join,
ySpacing,
A2($elm$core$List$map, toGridLength, template.columns)));
var gapY = 'grid-row-gap:' + (toGridLength(template.spacing.b) + ';');
var gapX = 'grid-column-gap:' + (toGridLength(template.spacing.a) + ';');
var columns = function (x) {
return 'grid-template-columns: ' + (x + ';');
}(
A2(
$elm$core$String$join,
' ',
A2($elm$core$List$map, toGridLength, template.columns)));
var _class = '.grid-rows-' + (A2(
$elm$core$String$join,
'-',
A2($elm$core$List$map, $mdgriffith$elm_ui$Internal$Model$lengthClassName, template.rows)) + ('-cols-' + (A2(
$elm$core$String$join,
'-',
A2($elm$core$List$map, $mdgriffith$elm_ui$Internal$Model$lengthClassName, template.columns)) + ('-space-x-' + ($mdgriffith$elm_ui$Internal$Model$lengthClassName(template.spacing.a) + ('-space-y-' + $mdgriffith$elm_ui$Internal$Model$lengthClassName(template.spacing.b)))))));
var modernGrid = _class + ('{' + (columns + (rows + (gapX + (gapY + '}')))));
var supports = '@supports (display:grid) {' + (modernGrid + '}');
var base = _class + ('{' + (msColumns + (msRows + '}')));
return _List_fromArray(
[base, supports]);
case 'GridPosition':
var position = rule.a;
var msPosition = A2(
$elm$core$String$join,
' ',
_List_fromArray(
[
'-ms-grid-row: ' + ($elm$core$String$fromInt(position.row) + ';'),
'-ms-grid-row-span: ' + ($elm$core$String$fromInt(position.height) + ';'),
'-ms-grid-column: ' + ($elm$core$String$fromInt(position.col) + ';'),
'-ms-grid-column-span: ' + ($elm$core$String$fromInt(position.width) + ';')
]));
var modernPosition = A2(
$elm$core$String$join,
' ',
_List_fromArray(
[
'grid-row: ' + ($elm$core$String$fromInt(position.row) + (' / ' + ($elm$core$String$fromInt(position.row + position.height) + ';'))),
'grid-column: ' + ($elm$core$String$fromInt(position.col) + (' / ' + ($elm$core$String$fromInt(position.col + position.width) + ';')))
]));
var _class = '.grid-pos-' + ($elm$core$String$fromInt(position.row) + ('-' + ($elm$core$String$fromInt(position.col) + ('-' + ($elm$core$String$fromInt(position.width) + ('-' + $elm$core$String$fromInt(position.height)))))));
var modernGrid = _class + ('{' + (modernPosition + '}'));
var supports = '@supports (display:grid) {' + (modernGrid + '}');
var base = _class + ('{' + (msPosition + '}'));
return _List_fromArray(
[base, supports]);
case 'PseudoSelector':
var _class = rule.a;
var styles = rule.b;
var renderPseudoRule = function (style) {
return A3(
$mdgriffith$elm_ui$Internal$Model$renderStyleRule,
options,
style,
$elm$core$Maybe$Just(_class));
};
return A2($elm$core$List$concatMap, renderPseudoRule, styles);
default:
var transform = rule.a;
var val = $mdgriffith$elm_ui$Internal$Model$transformValue(transform);
var _class = $mdgriffith$elm_ui$Internal$Model$transformClass(transform);
var _v12 = _Utils_Tuple2(_class, val);
if ((_v12.a.$ === 'Just') && (_v12.b.$ === 'Just')) {
var cls = _v12.a.a;
var v = _v12.b.a;
return A4(
$mdgriffith$elm_ui$Internal$Model$renderStyle,
options,
maybePseudo,
'.' + cls,
_List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$Property, 'transform', v)
]));
} else {
return _List_Nil;
}
}
});
var $mdgriffith$elm_ui$Internal$Model$encodeStyles = F2(
function (options, stylesheet) {
return $elm$json$Json$Encode$object(
A2(
$elm$core$List$map,
function (style) {
var styled = A3($mdgriffith$elm_ui$Internal$Model$renderStyleRule, options, style, $elm$core$Maybe$Nothing);
return _Utils_Tuple2(
$mdgriffith$elm_ui$Internal$Model$getStyleName(style),
A2($elm$json$Json$Encode$list, $elm$json$Json$Encode$string, styled));
},
stylesheet));
});
var $mdgriffith$elm_ui$Internal$Model$bracket = F2(
function (selector, rules) {
var renderPair = function (_v0) {
var name = _v0.a;
var val = _v0.b;
return name + (': ' + (val + ';'));
};
return selector + (' {' + (A2(
$elm$core$String$join,
'',
A2($elm$core$List$map, renderPair, rules)) + '}'));
});
var $mdgriffith$elm_ui$Internal$Model$fontRule = F3(
function (name, modifier, _v0) {
var parentAdj = _v0.a;
var textAdjustment = _v0.b;
return _List_fromArray(
[
A2($mdgriffith$elm_ui$Internal$Model$bracket, '.' + (name + ('.' + (modifier + (', ' + ('.' + (name + (' .' + modifier))))))), parentAdj),
A2($mdgriffith$elm_ui$Internal$Model$bracket, '.' + (name + ('.' + (modifier + ('> .' + ($mdgriffith$elm_ui$Internal$Style$classes.text + (', .' + (name + (' .' + (modifier + (' > .' + $mdgriffith$elm_ui$Internal$Style$classes.text)))))))))), textAdjustment)
]);
});
var $mdgriffith$elm_ui$Internal$Model$renderFontAdjustmentRule = F3(
function (fontToAdjust, _v0, otherFontName) {
var full = _v0.a;
var capital = _v0.b;
var name = _Utils_eq(fontToAdjust, otherFontName) ? fontToAdjust : (otherFontName + (' .' + fontToAdjust));
return A2(
$elm$core$String$join,
' ',
_Utils_ap(
A3($mdgriffith$elm_ui$Internal$Model$fontRule, name, $mdgriffith$elm_ui$Internal$Style$classes.sizeByCapital, capital),
A3($mdgriffith$elm_ui$Internal$Model$fontRule, name, $mdgriffith$elm_ui$Internal$Style$classes.fullSize, full)));
});
var $mdgriffith$elm_ui$Internal$Model$renderNullAdjustmentRule = F2(
function (fontToAdjust, otherFontName) {
var name = _Utils_eq(fontToAdjust, otherFontName) ? fontToAdjust : (otherFontName + (' .' + fontToAdjust));
return A2(
$elm$core$String$join,
' ',
_List_fromArray(
[
A2(
$mdgriffith$elm_ui$Internal$Model$bracket,
'.' + (name + ('.' + ($mdgriffith$elm_ui$Internal$Style$classes.sizeByCapital + (', ' + ('.' + (name + (' .' + $mdgriffith$elm_ui$Internal$Style$classes.sizeByCapital))))))),
_List_fromArray(
[
_Utils_Tuple2('line-height', '1')
])),
A2(
$mdgriffith$elm_ui$Internal$Model$bracket,
'.' + (name + ('.' + ($mdgriffith$elm_ui$Internal$Style$classes.sizeByCapital + ('> .' + ($mdgriffith$elm_ui$Internal$Style$classes.text + (', .' + (name + (' .' + ($mdgriffith$elm_ui$Internal$Style$classes.sizeByCapital + (' > .' + $mdgriffith$elm_ui$Internal$Style$classes.text)))))))))),
_List_fromArray(
[
_Utils_Tuple2('vertical-align', '0'),
_Utils_Tuple2('line-height', '1')
]))
]));
});
var $mdgriffith$elm_ui$Internal$Model$adjust = F3(
function (size, height, vertical) {
return {height: height / size, size: size, vertical: vertical};
});
var $elm$core$List$filter = F2(
function (isGood, list) {
return A3(
$elm$core$List$foldr,
F2(
function (x, xs) {
return isGood(x) ? A2($elm$core$List$cons, x, xs) : xs;
}),
_List_Nil,
list);
});
var $elm$core$List$maximum = function (list) {
if (list.b) {
var x = list.a;
var xs = list.b;
return $elm$core$Maybe$Just(
A3($elm$core$List$foldl, $elm$core$Basics$max, x, xs));
} else {
return $elm$core$Maybe$Nothing;
}
};
var $elm$core$List$minimum = function (list) {
if (list.b) {
var x = list.a;
var xs = list.b;
return $elm$core$Maybe$Just(
A3($elm$core$List$foldl, $elm$core$Basics$min, x, xs));
} else {
return $elm$core$Maybe$Nothing;
}
};
var $elm$core$Basics$neq = _Utils_notEqual;
var $mdgriffith$elm_ui$Internal$Model$convertAdjustment = function (adjustment) {
var lines = _List_fromArray(
[adjustment.capital, adjustment.baseline, adjustment.descender, adjustment.lowercase]);
var lineHeight = 1.5;
var normalDescender = (lineHeight - 1) / 2;
var oldMiddle = lineHeight / 2;
var descender = A2(
$elm$core$Maybe$withDefault,
adjustment.descender,
$elm$core$List$minimum(lines));
var newBaseline = A2(
$elm$core$Maybe$withDefault,
adjustment.baseline,
$elm$core$List$minimum(
A2(
$elm$core$List$filter,
function (x) {
return !_Utils_eq(x, descender);
},
lines)));
var base = lineHeight;
var ascender = A2(
$elm$core$Maybe$withDefault,
adjustment.capital,
$elm$core$List$maximum(lines));
var capitalSize = 1 / (ascender - newBaseline);
var capitalVertical = 1 - ascender;
var fullSize = 1 / (ascender - descender);
var fullVertical = 1 - ascender;
var newCapitalMiddle = ((ascender - newBaseline) / 2) + newBaseline;
var newFullMiddle = ((ascender - descender) / 2) + descender;
return {
capital: A3($mdgriffith$elm_ui$Internal$Model$adjust, capitalSize, ascender - newBaseline, capitalVertical),
full: A3($mdgriffith$elm_ui$Internal$Model$adjust, fullSize, ascender - descender, fullVertical)
};
};
var $mdgriffith$elm_ui$Internal$Model$fontAdjustmentRules = function (converted) {
return _Utils_Tuple2(
_List_fromArray(
[
_Utils_Tuple2('display', 'block')
]),
_List_fromArray(
[
_Utils_Tuple2('display', 'inline-block'),
_Utils_Tuple2(
'line-height',
$elm$core$String$fromFloat(converted.height)),
_Utils_Tuple2(
'vertical-align',
$elm$core$String$fromFloat(converted.vertical) + 'em'),
_Utils_Tuple2(
'font-size',
$elm$core$String$fromFloat(converted.size) + 'em')
]));
};
var $mdgriffith$elm_ui$Internal$Model$typefaceAdjustment = function (typefaces) {
return A3(
$elm$core$List$foldl,
F2(
function (face, found) {
if (found.$ === 'Nothing') {
if (face.$ === 'FontWith') {
var _with = face.a;
var _v2 = _with.adjustment;
if (_v2.$ === 'Nothing') {
return found;
} else {
var adjustment = _v2.a;
return $elm$core$Maybe$Just(
_Utils_Tuple2(
$mdgriffith$elm_ui$Internal$Model$fontAdjustmentRules(
function ($) {
return $.full;
}(
$mdgriffith$elm_ui$Internal$Model$convertAdjustment(adjustment))),
$mdgriffith$elm_ui$Internal$Model$fontAdjustmentRules(
function ($) {
return $.capital;
}(
$mdgriffith$elm_ui$Internal$Model$convertAdjustment(adjustment)))));
}
} else {
return found;
}
} else {
return found;
}
}),
$elm$core$Maybe$Nothing,
typefaces);
};
var $mdgriffith$elm_ui$Internal$Model$renderTopLevelValues = function (rules) {
var withImport = function (font) {
if (font.$ === 'ImportFont') {
var url = font.b;
return $elm$core$Maybe$Just('@import url(\'' + (url + '\');'));
} else {
return $elm$core$Maybe$Nothing;
}
};
var fontImports = function (_v2) {
var name = _v2.a;
var typefaces = _v2.b;
var imports = A2(
$elm$core$String$join,
'\n',
A2($elm$core$List$filterMap, withImport, typefaces));
return imports;
};
var allNames = A2($elm$core$List$map, $elm$core$Tuple$first, rules);
var fontAdjustments = function (_v1) {
var name = _v1.a;
var typefaces = _v1.b;
var _v0 = $mdgriffith$elm_ui$Internal$Model$typefaceAdjustment(typefaces);
if (_v0.$ === 'Nothing') {
return A2(
$elm$core$String$join,
'',
A2(
$elm$core$List$map,
$mdgriffith$elm_ui$Internal$Model$renderNullAdjustmentRule(name),
allNames));
} else {
var adjustment = _v0.a;
return A2(
$elm$core$String$join,
'',
A2(
$elm$core$List$map,
A2($mdgriffith$elm_ui$Internal$Model$renderFontAdjustmentRule, name, adjustment),
allNames));
}
};
return _Utils_ap(
A2(
$elm$core$String$join,
'\n',
A2($elm$core$List$map, fontImports, rules)),
A2(
$elm$core$String$join,
'\n',
A2($elm$core$List$map, fontAdjustments, rules)));
};
var $mdgriffith$elm_ui$Internal$Model$topLevelValue = function (rule) {
if (rule.$ === 'FontFamily') {
var name = rule.a;
var typefaces = rule.b;
return $elm$core$Maybe$Just(
_Utils_Tuple2(name, typefaces));
} else {
return $elm$core$Maybe$Nothing;
}
};
var $mdgriffith$elm_ui$Internal$Model$toStyleSheetString = F2(
function (options, stylesheet) {
var combine = F2(
function (style, rendered) {
return {
rules: _Utils_ap(
rendered.rules,
A3($mdgriffith$elm_ui$Internal$Model$renderStyleRule, options, style, $elm$core$Maybe$Nothing)),
topLevel: function () {
var _v1 = $mdgriffith$elm_ui$Internal$Model$topLevelValue(style);
if (_v1.$ === 'Nothing') {
return rendered.topLevel;
} else {
var topLevel = _v1.a;
return A2($elm$core$List$cons, topLevel, rendered.topLevel);
}
}()
};
});
var _v0 = A3(
$elm$core$List$foldl,
combine,
{rules: _List_Nil, topLevel: _List_Nil},
stylesheet);
var topLevel = _v0.topLevel;
var rules = _v0.rules;
return _Utils_ap(
$mdgriffith$elm_ui$Internal$Model$renderTopLevelValues(topLevel),
$elm$core$String$concat(rules));
});
var $mdgriffith$elm_ui$Internal$Model$toStyleSheet = F2(
function (options, styleSheet) {
var _v0 = options.mode;
switch (_v0.$) {
case 'Layout':
return A3(
$elm$virtual_dom$VirtualDom$node,
'div',
_List_Nil,
_List_fromArray(
[
A3(
$elm$virtual_dom$VirtualDom$node,
'style',
_List_Nil,
_List_fromArray(
[
$elm$virtual_dom$VirtualDom$text(
A2($mdgriffith$elm_ui$Internal$Model$toStyleSheetString, options, styleSheet))
]))
]));
case 'NoStaticStyleSheet':
return A3(
$elm$virtual_dom$VirtualDom$node,
'div',
_List_Nil,
_List_fromArray(
[
A3(
$elm$virtual_dom$VirtualDom$node,
'style',
_List_Nil,
_List_fromArray(
[
$elm$virtual_dom$VirtualDom$text(
A2($mdgriffith$elm_ui$Internal$Model$toStyleSheetString, options, styleSheet))
]))
]));
default:
return A3(
$elm$virtual_dom$VirtualDom$node,
'elm-ui-rules',
_List_fromArray(
[
A2(
$elm$virtual_dom$VirtualDom$property,
'rules',
A2($mdgriffith$elm_ui$Internal$Model$encodeStyles, options, styleSheet))
]),
_List_Nil);
}
});
var $mdgriffith$elm_ui$Internal$Model$embedKeyed = F4(
function (_static, opts, styles, children) {
var dynamicStyleSheet = A2(
$mdgriffith$elm_ui$Internal$Model$toStyleSheet,
opts,
A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$reduceStyles,
_Utils_Tuple2(
$elm$core$Set$empty,
$mdgriffith$elm_ui$Internal$Model$renderFocusStyle(opts.focus)),
styles).b);
return _static ? A2(
$elm$core$List$cons,
_Utils_Tuple2(
'static-stylesheet',
$mdgriffith$elm_ui$Internal$Model$staticRoot(opts)),
A2(
$elm$core$List$cons,
_Utils_Tuple2('dynamic-stylesheet', dynamicStyleSheet),
children)) : A2(
$elm$core$List$cons,
_Utils_Tuple2('dynamic-stylesheet', dynamicStyleSheet),
children);
});
var $mdgriffith$elm_ui$Internal$Model$embedWith = F4(
function (_static, opts, styles, children) {
var dynamicStyleSheet = A2(
$mdgriffith$elm_ui$Internal$Model$toStyleSheet,
opts,
A3(
$elm$core$List$foldl,
$mdgriffith$elm_ui$Internal$Model$reduceStyles,
_Utils_Tuple2(
$elm$core$Set$empty,
$mdgriffith$elm_ui$Internal$Model$renderFocusStyle(opts.focus)),
styles).b);
return _static ? A2(
$elm$core$List$cons,
$mdgriffith$elm_ui$Internal$Model$staticRoot(opts),
A2($elm$core$List$cons, dynamicStyleSheet, children)) : A2($elm$core$List$cons, dynamicStyleSheet, children);
});
var $mdgriffith$elm_ui$Internal$Flag$heightBetween = $mdgriffith$elm_ui$Internal$Flag$flag(45);
var $mdgriffith$elm_ui$Internal$Flag$heightFill = $mdgriffith$elm_ui$Internal$Flag$flag(37);
var $elm$virtual_dom$VirtualDom$keyedNode = function (tag) {
return _VirtualDom_keyedNode(
_VirtualDom_noScript(tag));
};
var $elm$core$Basics$not = _Basics_not;
var $elm$html$Html$p = _VirtualDom_node('p');
var $elm$core$Bitwise$and = _Bitwise_and;
var $mdgriffith$elm_ui$Internal$Flag$present = F2(
function (myFlag, _v0) {
var fieldOne = _v0.a;
var fieldTwo = _v0.b;
if (myFlag.$ === 'Flag') {
var first = myFlag.a;
return _Utils_eq(first & fieldOne, first);
} else {
var second = myFlag.a;
return _Utils_eq(second & fieldTwo, second);
}
});
var $elm$html$Html$s = _VirtualDom_node('s');
var $elm$html$Html$u = _VirtualDom_node('u');
var $mdgriffith$elm_ui$Internal$Flag$widthBetween = $mdgriffith$elm_ui$Internal$Flag$flag(44);
var $mdgriffith$elm_ui$Internal$Flag$widthFill = $mdgriffith$elm_ui$Internal$Flag$flag(39);
var $mdgriffith$elm_ui$Internal$Model$finalizeNode = F6(
function (has, node, attributes, children, embedMode, parentContext) {
var createNode = F2(
function (nodeName, attrs) {
if (children.$ === 'Keyed') {
var keyed = children.a;
return A3(
$elm$virtual_dom$VirtualDom$keyedNode,
nodeName,
attrs,
function () {
switch (embedMode.$) {
case 'NoStyleSheet':
return keyed;
case 'OnlyDynamic':
var opts = embedMode.a;
var styles = embedMode.b;
return A4($mdgriffith$elm_ui$Internal$Model$embedKeyed, false, opts, styles, keyed);
default:
var opts = embedMode.a;
var styles = embedMode.b;
return A4($mdgriffith$elm_ui$Internal$Model$embedKeyed, true, opts, styles, keyed);
}
}());
} else {
var unkeyed = children.a;
return A2(
function () {
switch (nodeName) {
case 'div':
return $elm$html$Html$div;
case 'p':
return $elm$html$Html$p;
default:
return $elm$virtual_dom$VirtualDom$node(nodeName);
}
}(),
attrs,
function () {
switch (embedMode.$) {
case 'NoStyleSheet':
return unkeyed;
case 'OnlyDynamic':
var opts = embedMode.a;
var styles = embedMode.b;
return A4($mdgriffith$elm_ui$Internal$Model$embedWith, false, opts, styles, unkeyed);
default:
var opts = embedMode.a;
var styles = embedMode.b;
return A4($mdgriffith$elm_ui$Internal$Model$embedWith, true, opts, styles, unkeyed);
}
}());
}
});
var html = function () {
switch (node.$) {
case 'Generic':
return A2(createNode, 'div', attributes);
case 'NodeName':
var nodeName = node.a;
return A2(createNode, nodeName, attributes);
default:
var nodeName = node.a;
var internal = node.b;
return A3(
$elm$virtual_dom$VirtualDom$node,
nodeName,
attributes,
_List_fromArray(
[
A2(
createNode,
internal,
_List_fromArray(
[
$elm$html$Html$Attributes$class($mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.single))
]))
]));
}
}();
switch (parentContext.$) {
case 'AsRow':
return (A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$widthFill, has) && (!A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$widthBetween, has))) ? html : (A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$alignRight, has) ? A2(
$elm$html$Html$u,
_List_fromArray(
[
$elm$html$Html$Attributes$class(
A2(
$elm$core$String$join,
' ',
_List_fromArray(
[$mdgriffith$elm_ui$Internal$Style$classes.any, $mdgriffith$elm_ui$Internal$Style$classes.single, $mdgriffith$elm_ui$Internal$Style$classes.container, $mdgriffith$elm_ui$Internal$Style$classes.contentCenterY, $mdgriffith$elm_ui$Internal$Style$classes.alignContainerRight])))
]),
_List_fromArray(
[html])) : (A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$centerX, has) ? A2(
$elm$html$Html$s,
_List_fromArray(
[
$elm$html$Html$Attributes$class(
A2(
$elm$core$String$join,
' ',
_List_fromArray(
[$mdgriffith$elm_ui$Internal$Style$classes.any, $mdgriffith$elm_ui$Internal$Style$classes.single, $mdgriffith$elm_ui$Internal$Style$classes.container, $mdgriffith$elm_ui$Internal$Style$classes.contentCenterY, $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterX])))
]),
_List_fromArray(
[html])) : html));
case 'AsColumn':
return (A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$heightFill, has) && (!A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$heightBetween, has))) ? html : (A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$centerY, has) ? A2(
$elm$html$Html$s,
_List_fromArray(
[
$elm$html$Html$Attributes$class(
A2(
$elm$core$String$join,
' ',
_List_fromArray(
[$mdgriffith$elm_ui$Internal$Style$classes.any, $mdgriffith$elm_ui$Internal$Style$classes.single, $mdgriffith$elm_ui$Internal$Style$classes.container, $mdgriffith$elm_ui$Internal$Style$classes.alignContainerCenterY])))
]),
_List_fromArray(
[html])) : (A2($mdgriffith$elm_ui$Internal$Flag$present, $mdgriffith$elm_ui$Internal$Flag$alignBottom, has) ? A2(
$elm$html$Html$u,
_List_fromArray(
[
$elm$html$Html$Attributes$class(
A2(
$elm$core$String$join,
' ',
_List_fromArray(
[$mdgriffith$elm_ui$Internal$Style$classes.any, $mdgriffith$elm_ui$Internal$Style$classes.single, $mdgriffith$elm_ui$Internal$Style$classes.container, $mdgriffith$elm_ui$Internal$Style$classes.alignContainerBottom])))
]),
_List_fromArray(
[html])) : html));
default:
return html;
}
});
var $elm$core$List$isEmpty = function (xs) {
if (!xs.b) {
return true;
} else {
return false;
}
};
var $elm$html$Html$text = $elm$virtual_dom$VirtualDom$text;
var $mdgriffith$elm_ui$Internal$Model$textElementClasses = $mdgriffith$elm_ui$Internal$Style$classes.any + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.text + (' ' + ($mdgriffith$elm_ui$Internal$Style$classes.widthContent + (' ' + $mdgriffith$elm_ui$Internal$Style$classes.heightContent)))));
var $mdgriffith$elm_ui$Internal$Model$textElement = function (str) {