generateur_v3/frontend_old/node_modules/.vite/deps/solid-styled-components.js.map
2022-12-27 18:26:05 +01:00

8 lines
10 KiB
Plaintext

{
"version": 3,
"sources": ["../../.pnpm/goober@2.1.11_csstype@3.1.0/node_modules/goober/dist/goober.modern.js", "../../.pnpm/solid-styled-components@0.28.4_solid-js@1.4.7/node_modules/solid-styled-components/src/index.js"],
"sourcesContent": ["let e={data:\"\"},t=t=>\"object\"==typeof window?((t?t.querySelector(\"#_goober\"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement(\"style\")),{innerHTML:\" \",id:\"_goober\"})).firstChild:t||e,r=e=>{let r=t(e),l=r.data;return r.data=\"\",l},l=/(?:([\\u0080-\\uFFFF\\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\\s*)/g,a=/\\/\\*[^]*?\\*\\/| +/g,n=/\\n+/g,o=(e,t)=>{let r=\"\",l=\"\",a=\"\";for(let n in e){let c=e[n];\"@\"==n[0]?\"i\"==n[1]?r=n+\" \"+c+\";\":l+=\"f\"==n[1]?o(c,n):n+\"{\"+o(c,\"k\"==n[1]?\"\":t)+\"}\":\"object\"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+\" \"+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,\"-$&\").toLowerCase(),a+=o.p?o.p(n,c):n+\":\"+c+\";\")}return r+(t&&a?t+\"{\"+a+\"}\":a)+l},c={},s=e=>{if(\"object\"==typeof e){let t=\"\";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return\"go\"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,\"\"));)t[4]?o.shift():t[3]?(r=t[3].replace(n,\" \").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n,\" \").trim();return o[0]})(e);c[d]=o(p?{[\"@keyframes \"+d]:t}:t,r?\"\":\".\"+d)}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?\".\"+t:e&&\"object\"==typeof e?e.props?\"\":o(e,\"\"):!1===e?\"\":e}return e+l+(null==n?\"\":n)},\"\");function u(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g,b=u.bind({g:1}),h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l}function j(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\\d+/.test(s),c.className=u.apply(r,l)+(s?\" \"+s:\"\"),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}export{u as css,r as extractCss,b as glob,h as keyframes,m as setup,j as styled};\n", "import { css, setup as gooberSetup } from \"goober\";\r\nimport {\r\n mergeProps,\r\n splitProps,\r\n createContext,\r\n useContext,\r\n createComponent,\r\n untrack,\r\n} from \"solid-js\";\r\nimport { Dynamic, isServer, spread } from \"solid-js/web\";\r\nexport { css, glob, extractCss, keyframes } from \"goober\";\r\n\r\nlet getForwardProps = null;\r\n\r\nexport function shouldForwardProp(predicate) {\r\n return props => props.filter(predicate);\r\n}\r\n\r\nexport function setup(prefixer, shouldForwardProp = null) {\r\n gooberSetup(null, prefixer);\r\n getForwardProps = shouldForwardProp;\r\n}\r\nconst ThemeContext = createContext();\r\nexport function ThemeProvider(props) {\r\n return createComponent(ThemeContext.Provider, {\r\n value: props.theme,\r\n get children() {\r\n return props.children;\r\n }\r\n });\r\n}\r\nexport function useTheme() {\r\n return useContext(ThemeContext);\r\n}\r\n\r\nfunction makeStyled(tag) {\r\n let _ctx = this || {};\r\n return (...args) => {\r\n const Styled = props => {\r\n const theme = useContext(ThemeContext);\r\n const withTheme = mergeProps(props, { theme });\r\n const clone = mergeProps(withTheme, {\r\n get class() {\r\n const pClass = withTheme.class,\r\n append = \"class\" in withTheme && /^go[0-9]+/.test(pClass);\r\n // Call `css` with the append flag and pass the props\r\n let className = css.apply(\r\n { target: _ctx.target, o: append, p: withTheme, g: _ctx.g },\r\n args\r\n );\r\n return [pClass, className].filter(Boolean).join(\" \");\r\n }\r\n });\r\n const [local, newProps] = splitProps(clone, [\"as\", \"theme\"]);\r\n const htmlProps = getForwardProps\r\n ? splitProps(newProps, getForwardProps(Object.keys(newProps)))[0]\r\n : newProps;\r\n const createTag = local.as || tag;\r\n let el;\r\n\r\n if (typeof createTag === \"function\") {\r\n el = createTag(htmlProps);\r\n } else {\r\n if (isServer) {\r\n const [local, others] = splitProps(htmlProps, [\"children\", \"theme\"]);\r\n el = Dynamic({\r\n component: createTag,\r\n get children() {\r\n return local.children;\r\n },\r\n ...others\r\n });\r\n } else {\r\n if (_ctx.g == 1) {\r\n // When using Global Styles we don't want to hydrate the unused nodes\r\n el = document.createElement(createTag);\r\n spread(el, htmlProps);\r\n } else {\r\n el = Dynamic(mergeProps({ component: createTag }, htmlProps));\r\n }\r\n }\r\n }\r\n return el;\r\n };\r\n Styled.class = props => {\r\n return untrack(() => {\r\n return css.apply({ target: _ctx.target, p: props, g: _ctx.g }, args);\r\n });\r\n };\r\n\r\n return Styled;\r\n };\r\n}\r\n\r\nexport const styled = new Proxy(makeStyled, {\r\n get(target, tag) {\r\n return target(tag);\r\n }\r\n});\r\n\r\nexport function createGlobalStyles() {\r\n const fn = makeStyled.call({ g: 1 }, \"div\").apply(null, arguments);\r\n\r\n return function GlobalStyles(props) {\r\n fn(props);\r\n return null;\r\n };\r\n}\r\n"],
"mappings": ";;;;;;;;;;;;;;;;AAAA,IAAI,IAAE,EAAC,MAAK,GAAE;AAAd,IAAgB,IAAE,QAAG,YAAU,OAAO,SAAS,OAAE,GAAE,cAAc,UAAU,IAAE,OAAO,YAAU,OAAO,OAAQ,OAAG,SAAS,MAAM,YAAY,SAAS,cAAc,OAAO,CAAC,GAAE,EAAC,WAAU,KAAI,IAAG,UAAS,CAAC,GAAG,aAAW,MAAG;AAAzN,IAA2N,IAAE,QAAG;AAAC,MAAI,KAAE,EAAE,EAAC,GAAE,KAAE,GAAE;AAAK,SAAO,GAAE,OAAK,IAAG;AAAC;AAAvQ,IAAyQ,IAAE;AAA3Q,IAA+U,IAAE;AAAjV,IAAsW,IAAE;AAAxW,IAA+W,IAAE,CAAC,IAAE,OAAI;AAAC,MAAI,KAAE,IAAG,KAAE,IAAG,KAAE;AAAG,WAAQ,MAAK,IAAE;AAAC,QAAI,KAAE,GAAE;AAAG,WAAK,GAAE,KAAG,OAAK,GAAE,KAAG,KAAE,KAAE,MAAI,KAAE,MAAI,MAAG,OAAK,GAAE,KAAG,EAAE,IAAE,EAAC,IAAE,KAAE,MAAI,EAAE,IAAE,OAAK,GAAE,KAAG,KAAG,EAAC,IAAE,MAAI,YAAU,OAAO,KAAE,MAAG,EAAE,IAAE,KAAE,GAAE,QAAQ,YAAW,QAAG,GAAE,QAAQ,mBAAkB,QAAG,IAAI,KAAK,EAAC,IAAE,GAAE,QAAQ,MAAK,EAAC,IAAE,KAAE,KAAE,MAAI,KAAE,EAAC,CAAC,IAAE,EAAC,IAAE,QAAM,MAAI,MAAE,MAAM,KAAK,EAAC,IAAE,KAAE,GAAE,QAAQ,UAAS,KAAK,EAAE,YAAY,GAAE,MAAG,EAAE,IAAE,EAAE,EAAE,IA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