@allakando/allakando-web-ui
Version:
Allakando's web component library
152 lines (78 loc) • 27.6 kB
JavaScript
try{
(()=>{var We=__STORYBOOK_ADDONS__,{addons:N,types:Ge,mockChannel:Qe}=__STORYBOOK_ADDONS__;var q=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();var or=__STORYBOOK_CLIENT_LOGGER__,{deprecate:ir,logger:K,once:sr,pretty:fr}=__STORYBOOK_CLIENT_LOGGER__;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},v.apply(this,arguments)}function te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,r){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},y(e,r)}function ae(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,y(e,r)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},B(e)}function Ae(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(e,r,t){return ne()?S=Reflect.construct.bind():S=function(a,A,n){var o=[null];o.push.apply(o,A);var s=Function.bind.apply(a,o),f=new s;return n&&y(f,n.prototype),f},S.apply(null,arguments)}function H(e){var r=typeof Map=="function"?new Map:void 0;return H=function(t){if(t===null||!Ae(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,a)}function a(){return S(t,arguments,B(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),y(a,t)},H(e)}var oe={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
`,9:`Please provide a number of steps to the modularScale helper.
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
`,16:`You must provide a template to this method.
`,17:`You passed an unsupported selector state to this method.
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,25:`fontFace expects localFonts to be an array.
`,26:`fontFace expects fileFormats to be an array.
`,27:`radialGradient requries at least 2 color-stops to properly render.
`,28:`Please supply a filename to retinaImage() as the first argument.
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
`,34:`borderRadius expects a radius value as a string or number as the second argument.
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,36:`Property must be a string value.
`,37:`Syntax Error at %s.
`,38:`Formula contains a function that needs parentheses at %s.
`,39:`Formula is missing closing parenthesis at %s.
`,40:`Formula has too many closing parentheses at %s.
`,41:`All values in a formula must have the same unit or be unitless.
`,42:`Please provide a number of steps to the modularScale helper.
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,53:`fontFace expects localFonts to be an array.
`,54:`fontFace expects fileFormats to be an array.
`,55:`fontFace expects a name of a font-family.
`,56:`linearGradient requries at least 2 color-stops to properly render.
`,57:`radialGradient requries at least 2 color-stops to properly render.
`,58:`Please supply a filename to retinaImage() as the first argument.
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
`,62:`borderRadius expects a radius value as a string or number as the second argument.
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
`,67:`You must provide a template to this method.
`,68:`You passed an unsupported selector state to this method.
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
`,73:`Please provide a valid CSS variable.
`,74:`CSS variable not found and no default was provided.
`,75:`important requires a valid style object, got a %s instead.
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
`,78:`base must be set in "px" or "%" but you set it in "%s".
`};function ie(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=r[0],A=[],n;for(n=1;n<r.length;n+=1)A.push(r[n]);return A.forEach(function(o){a=a.replace(/%[a-z]/,o)}),a}var l=function(e){ae(r,e);function r(t){for(var a,A=arguments.length,n=new Array(A>1?A-1:0),o=1;o<A;o++)n[o-1]=arguments[o];return a=e.call(this,ie.apply(void 0,[oe[t]].concat(n)))||this,te(a)}return r}(H(Error));function j(e){return Math.round(e*255)}function se(e,r,t){return j(e)+","+j(r)+","+j(t)}function w(e,r,t,a){if(a===void 0&&(a=se),r===0)return a(t,t,t);var A=(e%360+360)%360/60,n=(1-Math.abs(2*t-1))*r,o=n*(1-Math.abs(A%2-1)),s=0,f=0,p=0;A>=0&&A<1?(s=n,f=o):A>=1&&A<2?(s=o,f=n):A>=2&&A<3?(f=n,p=o):A>=3&&A<4?(f=o,p=n):A>=4&&A<5?(s=o,p=n):A>=5&&A<6&&(s=n,p=o);var m=t-n/2,c=s+m,d=f+m,O=p+m;return a(c,d,O)}var Y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function fe(e){if(typeof e!="string")return e;var r=e.toLowerCase();return Y[r]?"#"+Y[r]:e}var pe=/^#[a-fA-F0-9]{6}$/,le=/^#[a-fA-F0-9]{8}$/,de=/^#[a-fA-F0-9]{3}$/,ue=/^#[a-fA-F0-9]{4}$/,k=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,me=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ce=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,be=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function F(e){if(typeof e!="string")throw new l(3);var r=fe(e);if(r.match(pe))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(le)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(de))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(ue)){var a=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:a}}var A=k.exec(r);if(A)return{red:parseInt(""+A[1],10),green:parseInt(""+A[2],10),blue:parseInt(""+A[3],10)};var n=me.exec(r.substring(0,50));if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])>1?parseFloat(""+n[4])/100:parseFloat(""+n[4])};var o=ce.exec(r);if(o){var s=parseInt(""+o[1],10),f=parseInt(""+o[2],10)/100,p=parseInt(""+o[3],10)/100,m="rgb("+w(s,f,p)+")",c=k.exec(m);if(!c)throw new l(4,r,m);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var d=be.exec(r.substring(0,50));if(d){var O=parseInt(""+d[1],10),ee=parseInt(""+d[2],10)/100,re=parseInt(""+d[3],10)/100,Z="rgb("+w(O,ee,re)+")",P=k.exec(Z);if(!P)throw new l(4,r,Z);return{red:parseInt(""+P[1],10),green:parseInt(""+P[2],10),blue:parseInt(""+P[3],10),alpha:parseFloat(""+d[4])>1?parseFloat(""+d[4])/100:parseFloat(""+d[4])}}throw new l(5)}function ge(e){var r=e.red/255,t=e.green/255,a=e.blue/255,A=Math.max(r,t,a),n=Math.min(r,t,a),o=(A+n)/2;if(A===n)return e.alpha!==void 0?{hue:0,saturation:0,lightness:o,alpha:e.alpha}:{hue:0,saturation:0,lightness:o};var s,f=A-n,p=o>.5?f/(2-A-n):f/(A+n);switch(A){case r:s=(t-a)/f+(t<a?6:0);break;case t:s=(a-r)/f+2;break;default:s=(r-t)/f+4;break}return s*=60,e.alpha!==void 0?{hue:s,saturation:p,lightness:o,alpha:e.alpha}:{hue:s,saturation:p,lightness:o}}function G(e){return ge(F(e))}var he=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},I=he;function u(e){var r=e.toString(16);return r.length===1?"0"+r:r}function J(e){return u(Math.round(e*255))}function ve(e,r,t){return I("#"+J(e)+J(r)+J(t))}function z(e,r,t){return w(e,r,t,ve)}function ye(e,r,t){if(typeof e=="number"&&typeof r=="number"&&typeof t=="number")return z(e,r,t);if(typeof e=="object"&&r===void 0&&t===void 0)return z(e.hue,e.saturation,e.lightness);throw new l(1)}function we(e,r,t,a){if(typeof e=="number"&&typeof r=="number"&&typeof t=="number"&&typeof a=="number")return a>=1?z(e,r,t):"rgba("+w(e,r,t)+","+a+")";if(typeof e=="object"&&r===void 0&&t===void 0&&a===void 0)return e.alpha>=1?z(e.hue,e.saturation,e.lightness):"rgba("+w(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new l(2)}function R(e,r,t){if(typeof e=="number"&&typeof r=="number"&&typeof t=="number")return I("#"+u(e)+u(r)+u(t));if(typeof e=="object"&&r===void 0&&t===void 0)return I("#"+u(e.red)+u(e.green)+u(e.blue));throw new l(6)}function x(e,r,t,a){if(typeof e=="string"&&typeof r=="number"){var A=F(e);return"rgba("+A.red+","+A.green+","+A.blue+","+r+")"}else{if(typeof e=="number"&&typeof r=="number"&&typeof t=="number"&&typeof a=="number")return a>=1?R(e,r,t):"rgba("+e+","+r+","+t+","+a+")";if(typeof e=="object"&&r===void 0&&t===void 0&&a===void 0)return e.alpha>=1?R(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new l(7)}var xe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Pe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Se=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Me=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Q(e){if(typeof e!="object")throw new l(8);if(Pe(e))return x(e);if(xe(e))return R(e);if(Me(e))return we(e);if(Se(e))return ye(e);throw new l(8)}function $(e,r,t){return function(){var a=t.concat(Array.prototype.slice.call(arguments));return a.length>=r?e.apply(this,a):$(e,r,a)}}function E(e){return $(e,e.length,[])}function C(e,r,t){return Math.max(e,Math.min(r,t))}function ze(e,r){if(r==="transparent")return r;var t=G(r);return Q(v({},t,{lightness:C(0,1,t.lightness-parseFloat(e))}))}var De=E(ze),Fe=De;function Ee(e,r){if(r==="transparent")return r;var t=G(r);return Q(v({},t,{lightness:C(0,1,t.lightness+parseFloat(e))}))}var Ce=E(Ee),Oe=Ce;function je(e,r){if(r==="transparent")return r;var t=F(r),a=typeof t.alpha=="number"?t.alpha:1,A=v({},t,{alpha:C(0,1,(a*100+parseFloat(e)*100)/100)});return x(A)}var br=E(je);function ke(e,r){if(r==="transparent")return r;var t=F(r),a=typeof t.alpha=="number"?t.alpha:1,A=v({},t,{alpha:C(0,1,+(a*100-parseFloat(e)*100).toFixed(2)/100)});return x(A)}var Je=E(ke),Le=Je,i={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},U={app:"#F6F9FC",bar:i.lightest,content:i.lightest,preview:i.lightest,gridCellSize:10,hoverable:Le(.9,i.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},D={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Te={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:U.app,appContentBg:i.lightest,appPreviewBg:i.lightest,appBorderColor:i.border,appBorderRadius:4,fontBase:D.fonts.base,fontCode:D.fonts.mono,textColor:i.darkest,textInverseColor:i.lightest,textMutedColor:i.dark,barTextColor:i.mediumdark,barHoverColor:i.secondary,barSelectedColor:i.secondary,barBg:i.lightest,buttonBg:U.app,buttonBorder:i.medium,booleanBg:i.mediumlight,booleanSelectedBg:i.lightest,inputBg:i.lightest,inputBorder:i.border,inputTextColor:i.darkest,inputBorderRadius:4},W=Te,Be={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:i.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:D.fonts.base,fontCode:D.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:i.secondary,barSelectedColor:i.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:i.lightest,inputBorderRadius:4},He=Be,{window:L}=q;var Ie=e=>typeof e!="string"?(K.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,Re=e=>!/(gradient|var|calc)/.test(e),_e=(e,r)=>e==="darken"?x(`${Fe(1,r)}`,.95):e==="lighten"?x(`${Oe(1,r)}`,.95):r,V=e=>r=>{if(!Ie(r)||!Re(r))return r;try{return _e(e,r)}catch{return r}},gr=V("lighten"),hr=V("darken"),Xe=()=>!L||!L.matchMedia?"light":L.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",M={light:W,dark:He,normal:W},T=Xe(),_=(e={base:T},r)=>{let t={...M[T],...M[e.base]||{},...e,base:M[e.base]?e.base:T};return{...r,...t,barSelectedColor:e.barSelectedColor||t.colorSecondary}};N.setConfig({theme:_({base:"light",brandTitle:"Allakando Web Components",brandUrl:"https://www.allakando.se/",brandImage:"https://www.allakando.se/wp-content/uploads/2019/05/allakando-logo.svg"})});var X=document.createElement("link");X.setAttribute("rel","icon");X.setAttribute("href","data:image/svg+xml;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACvDlwAAAAAAKcKUERC7i15Vz6yieNi91JPgyvWj5dL7nePQ+5Thy/V42L3UVs+sohC7i14pwpQRAAAAACvDlwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADTFnAAAAAAAFbyNJUPKo7Wb487/7vr2//L7+f//////wO3g/7bq3P//////uOvc/83x5///////7fr2/6Dk0P9DyqO1FbyNJQAAAAA0xZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvw5kAYdOtBDPFm52l5dP/7fr2//////+d4s//W9Cv//////+D3ML/oeTR//////9z17r/we3h//////9j0rP/w+7i//////+o5tT/MsSbn2HTrAQvw5kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA67iR5i0rLu+f38//////9c0a/////////////K8OX///////3//v/0+/r/7Pr2//z+/f//////7vr3/3jZvf/a9O3/6/n1/4/fyP/4/fz/YtKz7g67iR4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPuoozgtvC//////9q1Lf//////9b06///////0fLo/3rZvv9ByaP/LcSZ/x6/kf8ev5H/LcSZ/0HJo/972r7/1fPr//////+R4Mr/Z9S1////////////gtvC/w+6ijMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvw5oADbuIHYTcw/71/Pr//////7/s4P/l+PL//////3TXu/8lwZX/LcOZ/zHEmv8wxJr/MMSa/zDEmv8wxJr/McSa/y3Dmf8lwZX/c9e6////////////+v38/4vex//3/fv/gtzC/g27iB0vw5oAAAAAAAAAAAAAAAAAMsSbAEfFqgRj0rPv9fz7/zbFnf/F7+P/////////////////vezf/yXBlP8wxJr/MMSa/zDEmv8wxJr/MMSa/zDEmv8wxJr/MMSa/yXBlP+97N//////////////////h9zE/+L38f//////Y9Kz70fFqgQyxJsAAAAAAAAAAAAAAAAAMsWbnvb9+////////P7+/+/79/9z17r/6Pj0///////9//7/M8Wb/zHEmv8wxJr/MMSa/zDEmv8wxJr/MMSa/zDEmv8xxJr/MsSc//z+/v//////6Pj0/3PXuv///////////+v69f/3/fv/MsWbngAAAAAAAAAAK8KYABS7jSWl5tP//////83x5v//////mOLM/yXBlf+V4cv///////////+C28H/LcOZ/zDEmv8wxJr/MMSa/zDEmv8wxJr/MMSa/y7Dmf9+2sD///////////+V4cz/JcGV/5jizP//////5fjz//////+l5dP/FLuNJSvCmAAAAAAAQ8mjtv///////////////9r17v8jwJP/McSa/z3Iof///////////+D28P8jwZT/MMSa/zDEmv8wxJr/MMSa/zDEmv8wxJr/JMCU/9/27////////////zrHn/8xxJr/I8CT/9v17v/w+/j/nuTQ/+769/9EyqO1AAAAABy/kBGi5NH/o+XT/57k0P/+/v//UM2p/zHEm/8wxJr/I8CU/8nv5f///////////0/Nqf8xxJr/MMSa/zDEmv8wxJr/MMSa/zHEmv9LzKf////////////N8ef/I8CU/zDEmv8xxJv/UM2p/+X38/+X4sz/5vjz/5zjz/8dv5AREbyLX+X38//3/fv/sOnY/9Tz6v8lwZX/MMSa/zDEmv8lwZX/p+bU////////////rOfX/yfBlf8wxJr/L8SZ/y7Emf8wxJr/JsGV/63o1////////////3HXuf8wxJr/MMSa/zDEmv8lwZX/0fLp///////n+PT/6Pj0/xG8i19Vz6yj7fr2/9Xz6///////e9m//y3Dmf8wxJr/L8Sa/0PJo/+36tz//P79///////5/fz/LcOY/y3Dmf9Tzqv/WtCv/yzDmP8rw5j/9vz6///////9//7/KcKX/zDEmv8wxJr/MMSa/y3Dmf9+2sD/nuPQ/5fhzP/n+PP/VM+so3nYvdT8/v3/yvDl/+L38f9ByaL/McSa/zDEmv8uw5n/k+DK/9Xz6/+y6dn///////////9w1rn/ftvA////////////hNzD/2nUtv///////////63n1/8qwpf/MMSa/zDEmv8wxJr/McSa/0HJov/f9u//hNzD//7//v952L3Ukd/J9f//////////+P38/y7Dmf8wxJr/MMSa/zDEmv8mwZX/U86r/1POq/////////////f9+///////////////////////9vz6////////////T82p/zHEmv8wxJr/MMSa/zDEmv8wxJr/LsOZ//j9+////////////5HfyfSi5NL7y/Dl/5bhzP/s+vf/Hr+R/zDEmv8xxJr/LMOY/yvCmP8uw5n/Pcig/+P38v////////////////+m5tP/leHL/////////////////+T48v8jwJT/MMSa/yzDmP8sw5j/MMSa/zDEmv8ev5H/6Pj0/3/bwP+x6dn/oeTR+57j0Pv//////////+369v8ev5H/MMSa/y7Dmf/R8uj/pubT/yzDmP84xp7/mOLM////////////sOjY/yTAlP8lwZX/pubU////////////i97G/y/Dmf8sw5j/k+DK/+L38f8zxZz/MMSa/x6/kf/p+fX/4vfw//L7+P+e49D7kt/J9e769/+Z4s3/+/79/y3Dmf8xxJr/Ocee//P8+f/S8+n/LMOY/y3DmP9Szqv////////////O8uj/J8GV/yfClf/B7eH///////////82xp3/MMSa/ynClv+87N//+/79/0TKpP8xxJr/LsOZ/+v59f/O8ef/5Pfy/5HfyfV62b7U3fbv/6Dj0f/6/f3/Qcmi/zHEmv8wxJr/Osef/y/Emf8xxJr/MMSa/y3Dmf/T8un///////////88yKD/LsOZ////////////xO7i/ybBlf8wxJr/MMSa/yzDmP87x5//L8Sa/zHEmv9CyaL//////+r59P/V8+v/edi91FXPrKP///////////////972b//LcOZ/zDEmv8wxJr/MMSa/zDEmv8wxJr/LcSZ/33awP///////////4vexv9y17r///////////9n1LT/L8Sa/zDEmv8wxJr/MMSa/zDEmv8wxJr/LcOZ/3vZv/////////////////9Vz6yjEbuKXeb48////////////9Ly6f8lwZX/MMSa/zDEmv8wxJr/MMSa/zDEmv8wxJr/LcOZ//z+/v//////0fLp/7vs3v//////9/37/ynClv8wxJr/MMSa/zDEmv8wxJr/MMSa/zDEmv8kwZX/1PPq////////////5vjz/xG8i18mwZUQnOPO///////K8OX/8/z6/1DNqf8xxJv/MMSa/zDEmv8wxJr/MMSa/zDEmv8qwpf/sOnY///////9/v7///////////+o5tT/LMOY/zDEmv8wxJr/MMSa/zDEmv8wxJr/McSb/1TPq//H7+T/0vLp//X8+v+c487/Hb+QEQAAAABEyaO29/37/4zfyP/Q8uj/3fXv/yPAk/8wxJr/MMSa/zDEmv8wxJr/MMSa/zDEmv9LzKj//////////////////////0fLpv8wxJr/MMSa/zDEmv8wxJr/MMSa/zDEmv8jwJP/3fXv/+r59f+V4cv/8Pr3/0TJo7UAAAAAK8KYABS7jSWm5tT/9/37///////d9e7/mOLN/yfClv8wxJr/MMSa/zDEmv8wxJr/MMSa/yXBlP/f9u/////////////c9e7/JMCU/zDEmv8wxJr/MMSa/zDEmv8wxJr/J8GW/5vizv+h5NH/x+/k//////+m5dP/FLuNJSvCmAAAAAAAAAAAADLFm5z3/fv/terb/4Dbwf/2/fr/ftrA/yjClv8wxJr/MMSa/zDEmv8wxJr/LcOZ/4jdxf///////////4Pcw/8tw5n/MMSa/zDEmv8wxJr/MMSa/yjClv992sD//////63o2P+k5dL//P79/zLFm5wAAAAAAAAAAAAAAAAyxJsASseqBGHSsu/0/Pn//v/+//X8+v/v+vf/mOLN/yPAk/8xxJr/MMSa/zDEmv8wxJr/OMae/4vex/+L3sf/Nsad/zDEmv8wxJr/MMSa/zHEmv8jwJP/muLO//////////////////j9/P9i0rPvR8WqBDLEmwAAAAAAAAAAAAAAAAAvw5oADLuHHIPcw/z/////f9vA/5Lgyv/y/Pn/2/Xt/0/Nqf8kwZX/LcOZ/zHEmv8wxJr/MMSa/zDEmv8wxJr/McSa/y3Dmf8lwZX/UM2p/9317//D7uL//f/+////////////gtzC/g27iB0vw5oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD7uKM4Lcwv3/////vezf/////////////////9Tz6v972r//Qcmj/y7Emf8ev5H/Hr+R/y7Emf9ByaP/etm+/9j07P/z/Pr/1fPq/5zizv+5693//////4Lcwv0Pu4ozAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADbuIHWDRse73/fv////////////B7eH/htzE/+T38v//////2vTt/+769//x+/j/8fv4////////////j9/I/7Dp2P//////0vLp//v+/f9i0rPuDbuIHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvw5kAY9OuBDPFnJ2l5dP//////7Dp2f+6693/0PLo/9fz7P+w6Nn//////3/bwf/c9e7////////////8/v7/kuDK//////+l5dP/M8WcnWHTrAQvw5kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0xZwAAAAAABW8jSVAyaG1oOTR/+j49P//////7Pn1/9bz6///////sunZ/+X48////////////+X48v+d48//RMqjtRW8jSUAAAAANMWcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK8OXAAAAAAAowpQRELuLXlXPrKJ42L3Uk+DK9Z3j0Pui5dL7keDJ9XjYvdRWz6yiELuLXibCkxEAAAAAK8OXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//AP//+AAf/+AAB//AAAP/gAAB/wAAAP4AAAB8AAAAPAAAADgAAAAYAAAAGAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABgAAAAYAAAAHAAAADwAAAA+AAAAfwAAAP+AAAH/wAAD/+AAB//4AB///wD/8=");document.head.appendChild(X);})();
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }