Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
1 line
No EOL
5.3 KiB
Text
1 line
No EOL
5.3 KiB
Text
{"version":3,"sources":["../../../../../src/build/webpack/loaders/resolve-url-loader/index.ts"],"sourcesContent":["/*\nThe MIT License (MIT)\n\nCopyright (c) 2016 Ben Holloway\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\nimport { SourceMapConsumer } from 'next/dist/compiled/source-map'\nimport valueProcessor from './lib/value-processor'\nimport { defaultJoin } from './lib/join-function'\nimport process from './lib/postcss'\n/**\n * A webpack loader that resolves absolute url() paths relative to their original source file.\n * Requires source-maps to do any meaningful work.\n */\nexport default async function resolveUrlLoader(\n this: any,\n /** Css content */\n content: string,\n /** The source-map */\n sourceMap: any\n): Promise<void> {\n const options = Object.assign(\n {\n sourceMap: this.sourceMap,\n silent: false,\n absolute: false,\n keepQuery: false,\n root: false,\n debug: false,\n join: defaultJoin,\n },\n this.getOptions()\n )\n\n let sourceMapConsumer\n if (sourceMap) {\n sourceMapConsumer = new SourceMapConsumer(sourceMap)\n }\n\n const callback = this.async()\n const { postcss } = options.postcss\n ? await options.postcss()\n : { postcss: require('postcss') as typeof import('postcss') }\n process(postcss, this.resourcePath, content, {\n outputSourceMap: Boolean(options.sourceMap),\n transformDeclaration: valueProcessor(this.resourcePath, options),\n inputSourceMap: sourceMap,\n sourceMapConsumer: sourceMapConsumer,\n })\n .catch(onFailure)\n .then(onSuccess)\n\n function onFailure(error: Error) {\n callback(encodeError('CSS error', error))\n }\n\n function onSuccess(reworked: any) {\n if (reworked) {\n // complete with source-map\n // source-map sources are relative to the file being processed\n if (options.sourceMap) {\n callback(null, reworked.content, reworked.map)\n }\n // complete without source-map\n else {\n callback(null, reworked.content)\n }\n }\n }\n\n function encodeError(label: any, exception: any) {\n return new Error(\n [\n 'resolve-url-loader',\n ': ',\n [label]\n .concat(\n (typeof exception === 'string' && exception) ||\n (exception instanceof Error && [\n exception.message,\n (exception as any).stack.split('\\n', 2)[1].trim(),\n ]) ||\n []\n )\n .filter(Boolean)\n .join('\\n '),\n ].join('')\n )\n }\n}\n"],"names":["resolveUrlLoader","content","sourceMap","options","Object","assign","silent","absolute","keepQuery","root","debug","join","defaultJoin","getOptions","sourceMapConsumer","SourceMapConsumer","callback","async","postcss","require","process","resourcePath","outputSourceMap","Boolean","transformDeclaration","valueProcessor","inputSourceMap","catch","onFailure","then","onSuccess","error","encodeError","reworked","map","label","exception","Error","concat","message","stack","split","trim","filter"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBA;;;;+BAMA;;;CAGC,GACD;;;eAA8BA;;;2BARI;uEACP;8BACC;gEACR;;;;;;AAKL,eAAeA,iBAE5B,gBAAgB,GAChBC,OAAe,EACf,mBAAmB,GACnBC,SAAc;IAEd,MAAMC,UAAUC,OAAOC,MAAM,CAC3B;QACEH,WAAW,IAAI,CAACA,SAAS;QAC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