id
stringlengths
12
53
messages
listlengths
3
3
code_pleisty-integration_56b66b6c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pleisty-integration/react/Components/PleistyHistoryNavigation.tsx from the pleisty-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react';\n// @ts-ignore\nimport { useCssHandles } from 'vtex.css-handles';\nimport classNames from 'classnames';\n\nconst CSS_HANDLES = [\n 'pleisty-history-navigation-container',\n 'children-container',\n 'pleisty-product-title',\n 'pleisty-product-price',\n 'image',\n 'pleisty-history-ul',\n 'pleisty-history-li',\n 'pleisty-box-item',\n 'pleisty-anchor',\n 'pleisty-active'\n] as const;\n\nconst PleistyHistoryNavigation = (props: IPleistyHistoryNavigationProps) => {\n const handles = useCssHandles(CSS_HANDLES);\n const { pleistyHistoryProducts } = props;\n\n return (\n <React.Fragment>\n <div className={handles[\"pleisty-history-navigation-container\"]}>\n <ul className={handles[\"pleisty-history-ul\"]}>\n {pleistyHistoryProducts.map(pleistyHistoryProduct => (\n <li key={pleistyHistoryProduct.item_id}\n className={classNames(handles[\"pleisty-history-li\"], pleistyHistoryProduct.is_selected && handles[\"pleisty-active\"])}>\n <div className={classNames(\"box-item\", handles[\"pleisty-box-item\"])}>\n <div className=\"catalog-image\">\n <a className={handles[\"pleisty-anchor\"]} title={pleistyHistoryProduct.item_title}\n onClick={() => props.handleClickHistoryNavigation(pleistyHistoryProduct)}\n >\n <img className={handles[\"image\"]}\n src={pleistyHistoryProduct.item_img}\n alt={pleistyHistoryProduct.item_title}/>\n </a>\n </div>\n </div>\n </li>\n ))}\n </ul>\n </div>\n <div className={handles[\"children-container\"]}>\n {props.children}\n </div>\n </React.Fragment>\n )\n}\n\nexport default PleistyHistoryNavigation;\n\n```" } ]
code_pleisty-integration_aa46d226
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of pleisty-integration/react/Components/PleistyProduct.tsx from the pleisty-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react';\n// @ts-ignore\nimport { FormattedCurrency } from 'vtex.format-currency';\n// @ts-ignore\nimport { useCssHandles } from 'vtex.css-handles'\n\nconst CSS_HANDLES = [\n 'pleisty-product-container',\n 'pleisty-product-img',\n 'pleisty-product-title',\n 'pleisty-product-anchor',\n 'pleisty-product-price',\n 'pleisty-product-discount',\n 'pleisty-product-old-price'\n] as const;\n\nconst PleistyProduct = (props: IPleistyProductProps) => {\n const handles = useCssHandles(CSS_HANDLES);\n const { product } = props;\n\n const oldPrice = parseInt(product.item_oldpricestring, 10);\n const currentPrice = parseInt(product.item_pricestring, 10);\n const discount = currentPrice - oldPrice;\n const isPriceTheSame = currentPrice === oldPrice;\n\n return (\n <div className={handles[\"pleisty-product-container\"]}>\n <a href={product._item_url} className={handles[\"pleisty-product-anchor\"]}>\n <div>\n <img\n className={handles[\"pleisty-product-img\"]}\n src={product.item_img}\n alt={product.item_title}/>\n </div>\n <div>\n <h4 className={handles[\"pleisty-product-title\"]}>\n <span>{product.item_title}</span>\n </h4>\n </div>\n </a>\n {!isPriceTheSame ? (\n oldPrice && (\n <div className={handles[\"pleisty-product-old-price\"]}>\n <FormattedCurrency value={oldPrice}/>\n </div>\n )\n ) : null}\n {discount ? (\n discount && (\n <div className={handles[\"pleisty-product-discount\"]}>\n <FormattedCurrency\n value={discount}/>\n </div>\n )\n ) : null}\n {currentPrice && (\n <div className={handles[\"pleisty-product-price\"]}>\n <FormattedCurrency value={currentPrice}/>\n </div>\n )}\n </div>\n );\n};\n\nexport default PleistyProduct;\n\n```" } ]
code_search-segment-resolver_3b24ed87
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/docs/README.md from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# VTEX Recommendation Resolver\n\nThis app is an implementation of the VTEX recommendation protocol for recommendation shelves that is defined by the schema GraphQL [recommendation-graphql](https://github.com/vtex-apps/recommendation-graphql).\n\n```" } ]
code_search-segment-resolver_447abe27
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/node/service.json from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"stack\": \"nodejs\",\n \"memory\": 256,\n \"minReplicas\": 3,\n \"workers\": 1,\n \"ttl\": 60\n}\n\n```" } ]
code_search-segment-resolver_cbe2bfaf
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/node/package.json from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"search-segment-resolver\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"dependencies\": {\n \"graphql\": \"^14.5.8\",\n \"graphql-tools\": \"^4.0.6\",\n \"vtex.search-segment-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-segment-graphql@0.1.0/public\"\n },\n \"devDependencies\": {\n \"@types/atob\": \"^2.1.2\",\n \"@types/node\": \"^12.12.21\",\n \"@vtex/api\": \"6.44.0\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"3.9.7\",\n \"vtex.messages\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.messages@1.63.0/public/@types/vtex.messages\"\n },\n \"version\": \"0.1.4\"\n}\n\n```" } ]
code_search-segment-resolver_9fb362b3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/node/global.ts from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport {\n IOContext,\n ParamsContext,\n RecorderState,\n ServiceContext,\n SegmentData,\n} from '@vtex/api'\n\nimport { Clients } from './clients/index'\n\ndeclare global {\n type Context = ServiceContext<Clients, RecorderState, CustomContext>\n\n interface CustomContext extends ParamsContext {\n vtex: CustomIOContext\n }\n interface CustomIOContext extends IOContext {\n segment?: SegmentData\n }\n\n interface SearchSegmentInput {\n userEmail?: string\n isAuthenticated?: boolean\n selectedFacets?: SelectedFacet[]\n }\n\n interface SelectedFacet {\n key: string\n value: string\n }\n}\n\n```" } ]
code_search-segment-resolver_3972a2dc
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/node/index.ts from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { Service, RecorderState, ParamsContext } from '@vtex/api'\nimport schema from 'vtex.search-segment-graphql/graphql'\n\nimport { Clients, clients } from './clients'\nimport { queries as segmentSearchQueries } from './resolvers/segmentSearch'\n\nexport default new Service<Clients, RecorderState, ParamsContext>({\n clients,\n graphql: {\n resolvers: {\n Query: {\n ...segmentSearchQueries,\n },\n },\n schema,\n },\n})\n\n```" } ]
code_search-segment-resolver_0b8d1eb7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/node/clients/index.ts from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { ClientsConfig, IOClients } from '@vtex/api'\n\nconst MEDIUM_TIMEOUT_MS = 2 * 1000\n\nexport class Clients extends IOClients {\n // Add client example\n // public get myClient(): ClientType {\n // return this.getOrSet('myClient', ClientType)\n // }\n}\n\nexport const clients: ClientsConfig<Clients> = {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: MEDIUM_TIMEOUT_MS,\n },\n },\n}\n\n```" } ]
code_search-segment-resolver_c9e935ab
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-segment-resolver/node/resolvers/segmentSearch.ts from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport const queries = {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n searchSegment: async (_: unknown, args: SearchSegmentInput, __: Context) => {\n // This is just a dummy implementation which returs the input itself\n // const { myClient } = ctx.clients\n\n console.log({ args })\n\n return args.selectedFacets\n },\n}\n\n```" } ]
code_store-messages_805a268c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/docs/README.md from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# VTEX Store Messages\n\nA repository containing all default messages used in store\n\n\n**Upcoming documentation:**\n\n - [update vtex.store-messages@v2.ro](https://github.com/vtex-apps/store-messages/pull/7)\n```" } ]
code_store-messages_bf7591db
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/it/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Ciao\",\n \"pages.addresses\": \"Indirizzi\",\n \"pages.addressCreate\": \"Aggiungi indirizzo\",\n \"pages.addressEdit\": \"Modifica indirizzo\",\n \"pages.profile\": \"Profilo\",\n \"pages.profileEdit\": \"Modifica Profilo\",\n \"pages.myAccount\": \"Il mio account\",\n \"pages.logout\": \"Esci\",\n \"logoutModal.cancel\": \"Annulla\",\n \"logoutModal.title\": \"Vuoi davvero uscire?\",\n \"personalData.redefinePassword\": \"Cambia la password\",\n \"personalData.saveData\": \"Salva modifiche\",\n \"personalData.password\": \"Password\",\n \"personalData.currentPassword\": \"Password attuale\",\n \"personalData.newPassword\": \"Nuova password\",\n \"personalData.confirmPassword\": \"Conferma nuova password\",\n \"personalData.savePassword\": \"Salva la password\",\n \"personalData.yourPasswordMust\": \"La tua password deve avere almeno:\",\n \"personalData.8chars\": \"8 caratteri\",\n \"personalData.1number\": \"1 numero\",\n \"personalData.1upLetter\": \"1 lettera maiuscola\",\n \"personalData.1lowLetter\": \"1 lettera minuscola\",\n \"personalData.sendAccessCode.title\": \"Invia il codice di accesso alla tua email\",\n \"personalData.sendCode\": \"Invia il codice\",\n \"personalData.confirmCode\": \"Conferma il codice\",\n \"personalData.code\": \"Codice\",\n \"personalData.definePassword\": \"Imposta la password\",\n \"personalData.noPassword\": \"Non hai ancora una password definita.\",\n \"personalData.definePassword.title\": \"Imposta password\",\n \"personalData.editPassword.title\": \"Modifica password\",\n \"personalData.resendCode\": \"Invia nuovamente il codice\",\n \"personalData.newsletterOptIn\": \"Voglio ricevere la newsletter.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Vuoi ricevere la newsletter?\",\n \"upload.loading\": \"Caricamento in corso…\",\n \"upload.choosePhoto\": \"Scegli una foto\",\n \"upload.chooseAgain\": \"Scegli un'altra immagine\",\n \"upload.save\": \"Salva\",\n \"upload.dragYourPhoto\": \"Trascina qui la tua nuova immagine del profilo\",\n \"upload.photoUpdated\": \"La tua immagine del profilo è stata aggiornata con successo.\",\n \"upload.or\": \"o\",\n \"addresses.addAddress\": \"Aggiungi indirizzo\",\n \"addresses.saveAddress\": \"Salva l'indirizzo\",\n \"addresses.deleteAddress\": \"Elimina l'indirizzo\",\n \"addresses.notFound\": \"Non hai ancora nessun indirizzo!\",\n \"addresses.notApplicable\": \"N/N\",\n \"commons.edit\": \"Modifica\",\n \"alert.addressNotFound\": \"L'indirizzo selezionato non è stato trovato.\",\n \"alert.success\": \"Le tue informazioni sono state salvate correttamente.\",\n \"alert.fileTooBig\": \"Questa immagine è al di sopra del limite di 4 MB, scegli una più piccola.\",\n \"alert.passwordMismatch\": \"Le due password non corrispondono.\",\n \"alert.wrongPassword\": \"La password corrente è sbagliata.\",\n \"alert.wrongAndAboutToBlock\": \"La password corrente è sbagliata. Un altro tentativo non valido bloccherà il tuo account per un'ora.\",\n \"alert.blockedUser\": \"Sei stato bloccato, riprova più tardi.\",\n \"editor.defaultRoute.name\": \"Il mio Account - Home\",\n \"editor.defaultRoute.description\": \"Pagina di default della pagina: Il mio Account\",\n \"editor.defaultRoute.field\": \"Percorso predefinito della pagina: Il mio Account\",\n \"editor.menu.name\": \"Il mio Account - Menu\",\n \"editor.menu.description\": \"Menu laterale Il mio Account\",\n \"editor.menu.field\": \"Extension Point del Menu\"\n}\n\n```" } ]
code_store-messages_69d9e791
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/ca/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Hola\",\n \"pages.addresses\": \"Adreces\",\n \"pages.addressCreate\": \"Afegir adreça\",\n \"pages.addressEdit\": \"Edita l'adreça\",\n \"pages.profile\": \"Perfil\",\n \"pages.profileEdit\": \"Edita Perfil\",\n \"pages.myAccount\": \"El meu compte\",\n \"pages.logout\": \"Sortir\",\n \"logoutModal.cancel\": \"Cancel·la\",\n \"logoutModal.title\": \"Segur que voleu sortir?\",\n \"personalData.redefinePassword\": \"Modificar contrassenya\",\n \"personalData.saveData\": \"Desa els canvis\",\n \"personalData.password\": \"Contrassenya\",\n \"personalData.currentPassword\": \"Contrassenya actual\",\n \"personalData.newPassword\": \"Nova Contrassenya\",\n \"personalData.confirmPassword\": \"Confirmar nova contrassenya\",\n \"personalData.savePassword\": \"Guardar la contrassenya\",\n \"personalData.yourPasswordMust\": \"La seva contrassenya ha de tenir almenys:\",\n \"personalData.8chars\": \"8 caràcters\",\n \"personalData.1number\": \"1 número\",\n \"personalData.1upLetter\": \"1 lletra majúscula\",\n \"personalData.1lowLetter\": \"1 lletra minúscula\",\n \"personalData.sendAccessCode.title\": \"Envia el codi d’accés al vostre correu electrònic\",\n \"personalData.sendCode\": \"Envia el codi\",\n \"personalData.confirmCode\": \"Confirmeu el codi\",\n \"personalData.code\": \"Codi\",\n \"personalData.definePassword\": \"Estableix la contrassenya\",\n \"personalData.noPassword\": \"Encara no teniu cap contrassenya definida.\",\n \"personalData.definePassword.title\": \"Estableix la contrassenya\",\n \"personalData.editPassword.title\": \"Edita la contrasenya\",\n \"personalData.resendCode\": \"Torneu a enviar el codi\",\n \"personalData.newsletterOptIn\": \"Vull rebre la newsletter amb promocions.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Voleu rebre correus electrònics promocionals?\",\n \"upload.loading\": \"Carregant...\",\n \"upload.choosePhoto\": \"Tria una imatge\",\n \"upload.chooseAgain\": \"Tria una altra imatge\",\n \"upload.save\": \"Guardar\",\n \"upload.dragYourPhoto\": \"Arrossegueu la seva nova imatge de perfil aquí\",\n \"upload.photoUpdated\": \"La seva foto de perfil ha estat actualitzada amb èxit.\",\n \"upload.or\": \"o\",\n \"addresses.addAddress\": \"Afegir adreça\",\n \"addresses.saveAddress\": \"Guardar adreça\",\n \"addresses.deleteAddress\": \"Esborrar adreça\",\n \"addresses.notFound\": \"No tens cap adreça guardada\",\n \"addresses.notApplicable\": \"S/N\",\n \"commons.edit\": \"Editar\",\n \"alert.addressNotFound\": \"L'adreça seleccionada no s'ha trobat.\",\n \"alert.success\": \"La seva informació s'ha guardat amb èxit.\",\n \"alert.fileTooBig\": \"Aquesta imatge està per sobre del límit de 4 MB, triï una més petita.\",\n \"alert.passwordMismatch\": \"Les contrassenyes no coincideixen.\",\n \"alert.wrongPassword\": \"La contrassenya actual és incorrecta.\",\n \"alert.wrongAndAboutToBlock\": \"La contrassenya actual és incorrecta. Un intent invàlid més bloquejarà seu compte durant una hora.\",\n \"alert.blockedUser\": \"Has estat bloquejat, torna a intentar-ho més tard.\",\n \"editor.defaultRoute.name\": \"El meu compte: inici\",\n \"editor.defaultRoute.description\": \"Pàgina predeterminada del meu compte\",\n \"editor.defaultRoute.field\": \"El camí predeterminat del meu compte\",\n \"editor.menu.name\": \"El meu compte: menú\",\n \"editor.menu.description\": \"My Account's side menu\",\n \"editor.menu.field\": \"Punt d'extensió del menú\"\n}\n\n```" } ]
code_store-messages_d4fb851d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/ro/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Salut\",\n \"pages.addresses\": \"Adrese\",\n \"pages.addressCreate\": \"Adaugă adresă\",\n \"pages.addressEdit\": \"Editează adresa\",\n \"pages.profile\": \"Profil\",\n \"pages.profileEdit\": \"Editează profilul\",\n \"pages.myAccount\": \"Contul meu\",\n \"pages.logout\": \"Deconectare\",\n \"logoutModal.cancel\": \"Anulează\",\n \"logoutModal.title\": \"Ești sigur că vrei să te deconectezi?\",\n \"personalData.redefinePassword\": \"Schimbă parola\",\n \"personalData.saveData\": \"Salvează modificările\",\n \"personalData.password\": \"Parola\",\n \"personalData.currentPassword\": \"Parola actuală\",\n \"personalData.newPassword\": \"Parolă nouă\",\n \"personalData.confirmPassword\": \"Confirmă noua parolă\",\n \"personalData.savePassword\": \"Salvează parola\",\n \"personalData.yourPasswordMust\": \"Parola ar trebui să conțină cel puțin:\",\n \"personalData.8chars\": \"8 caractere\",\n \"personalData.1number\": \"1 număr\",\n \"personalData.1upLetter\": \"1 literă mare\",\n \"personalData.1lowLetter\": \"1 literă mică\",\n \"personalData.sendAccessCode.title\": \"Trimite codul de acces la adresa ta de e-mail\",\n \"personalData.sendCode\": \"Trimite cod\",\n \"personalData.confirmCode\": \"Confirmă codul\",\n \"personalData.code\": \"Cod\",\n \"personalData.definePassword\": \"Setează parola\",\n \"personalData.noPassword\": \"Nu ai încă o parolă definită.\",\n \"personalData.definePassword.title\": \"Setează parola\",\n \"personalData.editPassword.title\": \"Editează parola\",\n \"personalData.resendCode\": \"Trimite codul\",\n \"personalData.newsletterOptIn\": \"Vreau să mă abonez la newsletter.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Dorești să primești comunicări promoționale?\",\n \"upload.loading\": \"Se încarcă…\",\n \"upload.choosePhoto\": \"Alege o poză\",\n \"upload.chooseAgain\": \"Alege o altă imagine\",\n \"upload.save\": \"Salvează\",\n \"upload.dragYourPhoto\": \"Trage noua imagine de profil aici\",\n \"upload.photoUpdated\": \"Imaginea ta de profil a fost actualizată cu succes.\",\n \"upload.or\": \"sau\",\n \"addresses.addAddress\": \"Adaugă adresă\",\n \"addresses.saveAddress\": \"Salvează adresa\",\n \"addresses.deleteAddress\": \"Șterge adresa\",\n \"addresses.notFound\": \"Încă nu ai adrese definite!\",\n \"addresses.notApplicable\": \"N/A\",\n \"commons.edit\": \"Editează\",\n \"alert.addressNotFound\": \"Adresa selectată nu a fost găsită.\",\n \"alert.success\": \"Informațiile tale au fost salvate cu succes.\",\n \"alert.fileTooBig\": \"Această imagine depășește limita de 4MB, alege una mai mică.\",\n \"alert.passwordMismatch\": \"Parolele nu se potrivesc\",\n \"alert.wrongPassword\": \"Parola este greșită.\",\n \"alert.wrongAndAboutToBlock\": \"Parola este greșită. Încă o încercare greșită îți va bloca contul timp de o oră.\",\n \"alert.blockedUser\": \"Contul a fost blocat, încearcă din nou mai târziu.\",\n \"editor.defaultRoute.name\": \"Contul meu - Acasă\",\n \"editor.defaultRoute.description\": \"Pagina implicită a Contului meu\",\n \"editor.defaultRoute.field\": \"Calea implicită a Contului meu\",\n \"editor.menu.name\": \"Contul meu - Meniu\",\n \"editor.menu.description\": \"Contul meu meniu lateral\",\n \"editor.menu.field\": \"Punctul de extensie al meniului\"\n}\n\n```" } ]
code_store-messages_b6f12978
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/pt/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Olá\",\n \"pages.addresses\": \"Endereços\",\n \"pages.addressCreate\": \"Adicionar endereço\",\n \"pages.addressEdit\": \"Editar endereço\",\n \"pages.profile\": \"Dados pessoais\",\n \"pages.profileEdit\": \"Editar dados pessoais\",\n \"pages.myAccount\": \"Minha conta\",\n \"pages.logout\": \"Sair\",\n \"logoutModal.cancel\": \"Cancelar\",\n \"logoutModal.title\": \"Deseja mesmo sair?\",\n \"personalData.redefinePassword\": \"Redefinir senha\",\n \"personalData.saveData\": \"Salvar alterações\",\n \"personalData.password\": \"Senha\",\n \"personalData.currentPassword\": \"Senha atual\",\n \"personalData.newPassword\": \"Nova senha\",\n \"personalData.confirmPassword\": \"Confirmar nova senha\",\n \"personalData.savePassword\": \"Salvar senha\",\n \"personalData.yourPasswordMust\": \"Sua senha deve ter pelo menos:\",\n \"personalData.8chars\": \"8 caracteres\",\n \"personalData.1number\": \"1 número\",\n \"personalData.1upLetter\": \"1 letra maiúscula\",\n \"personalData.1lowLetter\": \"1 letra minúscula\",\n \"personalData.sendAccessCode.title\": \"Enviar código de acesso para seu e-mail\",\n \"personalData.sendCode\": \"Enviar código\",\n \"personalData.confirmCode\": \"Confirmar código\",\n \"personalData.code\": \"Código\",\n \"personalData.definePassword\": \"Definir senha\",\n \"personalData.noPassword\": \"Você ainda não possui uma senha definida.\",\n \"personalData.definePassword.title\": \"Definir Senha\",\n \"personalData.editPassword.title\": \"Editar Senha\",\n \"personalData.resendCode\": \"Reenviar código\",\n \"personalData.newsletterOptIn\": \"Quero receber e-mails com promoções.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Deseja receber e-mails com promoções?\",\n \"upload.loading\": \"Carregando…\",\n \"upload.choosePhoto\": \"Escolha uma Foto\",\n \"upload.chooseAgain\": \"Escolher outra Foto\",\n \"upload.save\": \"Salvar\",\n \"upload.dragYourPhoto\": \"Arraste para cá sua nova foto de perfil\",\n \"upload.photoUpdated\": \"Sua foto de perfil foi alterada com sucesso.\",\n \"upload.or\": \"ou\",\n \"addresses.addAddress\": \"Adicionar endereço\",\n \"addresses.saveAddress\": \"Salvar endereço\",\n \"addresses.deleteAddress\": \"Remover endereço\",\n \"addresses.notFound\": \"Você não tem nenhum endereço cadastrado!\",\n \"addresses.notApplicable\": \"S/N\",\n \"commons.edit\": \"Editar\",\n \"alert.addressNotFound\": \"O endereço especificado não foi encontrado.\",\n \"alert.success\": \"Suas informações foram salvas com sucesso.\",\n \"alert.fileTooBig\": \"Esta imagem ultrapassa o limite de 4MB, selecione uma menor.\",\n \"alert.passwordMismatch\": \"Senhas não conferem.\",\n \"alert.wrongPassword\": \"A senha atual está incorreta.\",\n \"alert.wrongAndAboutToBlock\": \"A senha atual está incorreta. Mais uma tentativa inválida bloqueará sua conta por uma hora.\",\n \"alert.blockedUser\": \"Você está bloqueado, tente novamente mais tarde.\",\n \"editor.defaultRoute.name\": \"Minha Conta - Home\",\n \"editor.defaultRoute.description\": \"Página padrão da página Minha Conta\",\n \"editor.defaultRoute.field\": \"Path padrão da página Minha Conta\",\n \"editor.menu.name\": \"Minha Conta - Menu\",\n \"editor.menu.description\": \"Menu lateral da página Minha Conta\",\n \"editor.menu.field\": \"Ponto de Extensão do Menu\"\n}\n\n```" } ]
code_store-messages_4fe30ed2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/pt/vtex.store-components@2.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/availability-subscriber.added-message\": \"E-mail cadastrado com sucesso\",\n \"store/availability-subscriber.email-placeholder\": \"E-mail\",\n \"store/availability-subscriber.error-message\": \"Falha ao se cadastrar, tente novamente\",\n \"store/availability-subscriber.invalid-email\": \"E-mail inválido\",\n \"store/availability-subscriber.name-placeholder\": \"Nome\",\n \"store/availability-subscriber.send-label\": \"Enviar\",\n \"store/availability-subscriber.subscribe-label\": \"Quero saber quando estiver disponível\",\n \"store/availability-subscriber.title\": \"Este produto não está disponível no momento\",\n \"store/buy-button.add-to-cart\": \"Adicionar ao carrinho\",\n \"store/buyButton-label-unavailable\": \"Indisponível\",\n \"store/buybutton.add-failure\": \"Algo deu errado e o item não pode ser adicionado ao seu carrinho!\",\n \"store/buybutton.buy-offline-success\": \"Item adicionado ao seu carrinho offline.\",\n \"store/buybutton.buy-success\": \"Item adicionado ao seu carrinho\",\n \"store/buybutton.buy-success-duplicate\": \"Item já no seu carrinho\",\n \"store/buybutton.see-cart\": \"Ver carrinho\",\n \"store/buybutton.select-sku-variations\": \"Por favor selecione uma opção de cada variação\",\n \"store/greeting\": \"Olá\",\n \"store/loading\": \"Carregando…\",\n \"store/newsletter.confirmationText\": \"Seu email foi registrado com sucesso.\",\n \"store/newsletter.confirmationTitle\": \"Obrigado!\",\n \"store/newsletter.error\": \"Algo deu errado, tente novamente mais tarde\",\n \"store/newsletter.invalidEmail\": \"Por favor, insira um email válido.\",\n \"store/newsletter.label\": \"Inscreva-se na nossa newsletter\",\n \"store/newsletter.placeholder\": \"Insira seu email\",\n \"store/newsletter.submit\": \"Enviar\",\n \"store/pricing.from\": \"De\",\n \"store/pricing.installment-display\": \"Ou {installments} {times} de {installmentPrice}\",\n \"store/pricing.interest-free\": \"sem juros\",\n \"store/pricing.savings\": \"Economize {savings}\",\n \"store/pricing.to\": \"Por\",\n \"store/product-description.collapse.showLess\": \"Ver menos\",\n \"store/product-description.collapse.showMore\": \"Ver mais\",\n \"store/product-description.property\": \"Propriedade\",\n \"store/product-description.specification\": \"Especificação\",\n \"store/product-description.title\": \"Descrição do Produto\",\n \"store/search.placeholder\": \"Buscar\",\n \"store/search.search-term-too-short\": \"O termo de busca é muito curto\",\n \"store/search.searchFor\": \"Buscar por {term}\",\n \"store/searchBar.button.cancel.label\": \"Cancelar\",\n \"store/share.title\": \"{product} {sku} na {store}: \",\n \"store/shipping.empty-sla\": \"Não existe um frete disponível para o CEP informado\",\n \"store/shipping.free\": \"Grátis\",\n \"store/shipping.label\": \"Calcular o frete\",\n \"store/sku-selector.select.placeholder\": \"Escolha uma opção\",\n \"store/sku-selector.variation.select-an-option\": \"Selecione uma opção\",\n \"store/skuSelector.seeMore\": \"Ver mais {quantity}\",\n \"store/store-components.share.label\": \"Compartilhe\",\n \"store/technicalspecifications.title\": \"Especificações Técnicas\",\n \"store/user-address.change\": \"Alterar\",\n \"store/user-address.order\": \"Enviar para\",\n \"store/user-address.pickup\": \"Retirar em {name}\"\n}\n\n```" } ]
code_store-messages_2967b305
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/pt-PT/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Olá\",\n \"pages.addresses\": \"Moradas\",\n \"pages.addressCreate\": \"Adicionar morada\",\n \"pages.addressEdit\": \"Editar endereço\",\n \"pages.profile\": \"Dados pessoais\",\n \"pages.profileEdit\": \"Editar dados pessoais\",\n \"pages.myAccount\": \"Minha conta\",\n \"pages.logout\": \"Sair\",\n \"logoutModal.cancel\": \"Cancelar\",\n \"logoutModal.title\": \"Deseja mesmo sair?\",\n \"personalData.redefinePassword\": \"Redefinir Password\",\n \"personalData.saveData\": \"Salvar alterações\",\n \"personalData.password\": \"Password\",\n \"personalData.currentPassword\": \"Senha atual\",\n \"personalData.newPassword\": \"Nova senha\",\n \"personalData.confirmPassword\": \"Confirmar nova senha\",\n \"personalData.savePassword\": \"Salvar senha\",\n \"personalData.yourPasswordMust\": \"Sua senha deve ter pelo menos:\",\n \"personalData.8chars\": \"8 caracteres\",\n \"personalData.1number\": \"1 número\",\n \"personalData.1upLetter\": \"1 letra maiúscula\",\n \"personalData.1lowLetter\": \"1 letra minúscula\",\n \"personalData.sendAccessCode.title\": \"Enviar código de acesso para seu e-mail\",\n \"personalData.sendCode\": \"Enviar código\",\n \"personalData.confirmCode\": \"Confirmar código\",\n \"personalData.code\": \"Código\",\n \"personalData.definePassword\": \"Definir senha\",\n \"personalData.noPassword\": \"Você ainda não possui uma senha definida.\",\n \"personalData.definePassword.title\": \"Definir Senha\",\n \"personalData.editPassword.title\": \"Editar Senha\",\n \"personalData.resendCode\": \"Reenviar código\",\n \"personalData.newsletterOptIn\": \"Quero receber e-mails com promoções.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Deseja receber e-mails com promoções?\",\n \"upload.loading\": \"Carregando…\",\n \"upload.choosePhoto\": \"Escolha uma Foto\",\n \"upload.chooseAgain\": \"Escolher outra Foto\",\n \"upload.save\": \"Salvar\",\n \"upload.dragYourPhoto\": \"Arraste para cá sua nova foto de perfil\",\n \"upload.photoUpdated\": \"Sua foto de perfil foi alterada com sucesso.\",\n \"upload.or\": \"ou\",\n \"addresses.addAddress\": \"Adicionar morada\",\n \"addresses.saveAddress\": \"Guardar Morada\",\n \"addresses.deleteAddress\": \"Remover Morada\",\n \"addresses.notFound\": \"Você não tem nenhum endereço cadastrado!\",\n \"addresses.notApplicable\": \"S/N\",\n \"commons.edit\": \"Editar\",\n \"alert.addressNotFound\": \"O endereço especificado não foi encontrado.\",\n \"alert.success\": \"Suas informações foram salvas com sucesso.\",\n \"alert.fileTooBig\": \"Esta imagem ultrapassa o limite de 4MB, selecione uma menor.\",\n \"alert.passwordMismatch\": \"Senhas não conferem.\",\n \"alert.wrongPassword\": \"A senha atual está incorreta.\",\n \"alert.wrongAndAboutToBlock\": \"A senha atual está incorreta. Mais uma tentativa inválida bloqueará sua conta por uma hora.\",\n \"alert.blockedUser\": \"Você está bloqueado, tente novamente mais tarde.\",\n \"editor.defaultRoute.name\": \"Minha Conta - Home\",\n \"editor.defaultRoute.description\": \"Página padrão da página Minha Conta\",\n \"editor.defaultRoute.field\": \"Path padrão da página Minha Conta\",\n \"editor.menu.name\": \"Minha Conta - Menu\",\n \"editor.menu.description\": \"Menu lateral da página Minha Conta\",\n \"editor.menu.field\": \"Ponto de Extensão do Menu\"\n}\n\n```" } ]
code_store-messages_ae65579c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/pt-PT/vtex.store-components@2.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/availability-subscriber.added-message\": \"E-mail cadastrado com sucesso\",\n \"store/availability-subscriber.email-placeholder\": \"E-mail\",\n \"store/availability-subscriber.error-message\": \"Falha ao se cadastrar, tente novamente\",\n \"store/availability-subscriber.invalid-email\": \"E-mail inválido\",\n \"store/availability-subscriber.name-placeholder\": \"Nome\",\n \"store/availability-subscriber.send-label\": \"Enviar\",\n \"store/availability-subscriber.subscribe-label\": \"Quero saber quando estiver disponível\",\n \"store/availability-subscriber.title\": \"Este produto não está disponível no momento\",\n \"store/buy-button.add-to-cart\": \"Adicionar ao carrinho\",\n \"store/buyButton-label-unavailable\": \"Indisponível\",\n \"store/buybutton.add-failure\": \"Algo deu errado e o item não pode ser adicionado ao seu carrinho!\",\n \"store/buybutton.buy-offline-success\": \"Item adicionado ao seu carrinho offline.\",\n \"store/buybutton.buy-success\": \"Item adicionado ao seu carrinho\",\n \"store/buybutton.buy-success-duplicate\": \"Item já no seu carrinho\",\n \"store/buybutton.see-cart\": \"Ver carrinho\",\n \"store/buybutton.select-sku-variations\": \"Por favor selecione uma opção de cada variação\",\n \"store/greeting\": \"Olá\",\n \"store/loading\": \"Carregando…\",\n \"store/newsletter.confirmationText\": \"Seu email foi registrado com sucesso.\",\n \"store/newsletter.confirmationTitle\": \"Obrigado!\",\n \"store/newsletter.error\": \"Algo deu errado, tente novamente mais tarde\",\n \"store/newsletter.invalidEmail\": \"Por favor, insira um email válido.\",\n \"store/newsletter.label\": \"Inscreva-se na nossa newsletter\",\n \"store/newsletter.placeholder\": \"Insira seu email\",\n \"store/newsletter.submit\": \"Enviar\",\n \"store/pricing.from\": \"De\",\n \"store/pricing.installment-display\": \"Ou {installments} {times} de {installmentPrice}\",\n \"store/pricing.interest-free\": \"sem juros\",\n \"store/pricing.savings\": \"Economize {savings}\",\n \"store/pricing.to\": \"Por\",\n \"store/product-description.collapse.showLess\": \"Ver menos\",\n \"store/product-description.collapse.showMore\": \"Ver mais\",\n \"store/product-description.property\": \"Propriedade\",\n \"store/product-description.specification\": \"Especificação\",\n \"store/product-description.title\": \"Descrição do Produto\",\n \"store/search.placeholder\": \"Buscar\",\n \"store/search.search-term-too-short\": \"O termo de busca é muito curto\",\n \"store/search.searchFor\": \"Buscar por {term}\",\n \"store/searchBar.button.cancel.label\": \"Cancelar\",\n \"store/share.title\": \"{product} {sku} na {store}: \",\n \"store/shipping.empty-sla\": \"Não existe um frete disponível para o CEP informado\",\n \"store/shipping.free\": \"Grátis\",\n \"store/shipping.label\": \"Calcular o frete\",\n \"store/sku-selector.select.placeholder\": \"Escolha uma opção\",\n \"store/sku-selector.variation.select-an-option\": \"Selecione uma opção\",\n \"store/skuSelector.seeMore\": \"Ver mais {quantity}\",\n \"store/store-components.share.label\": \"Compartilhe\",\n \"store/technicalspecifications.title\": \"Especificações Técnicas\",\n \"store/user-address.change\": \"Alterar\",\n \"store/user-address.order\": \"Enviar para\",\n \"store/user-address.pickup\": \"Retirar em {name}\"\n}\n\n```" } ]
code_store-messages_d6e2ac3e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/ar/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"address-form.edit\": \"تعديل\",\n \"userInfo.greeting\": \"مرحبا\",\n \"pages.addresses\": \"العناوين\",\n \"pages.addressCreate\": \"إضافة عنوان\",\n \"pages.addressEdit\": \"تعديل العنوان\",\n \"pages.profile\": \"الملف الشخصي\",\n \"pages.profileEdit\": \"تعديل الملف الشخصي\",\n \"pages.myAccount\": \"حسابي\",\n \"pages.logout\": \"تسجيل الخروج\",\n \"logoutModal.cancel\": \"إلغاء\",\n \"logoutModal.title\": \"هل تريد حقًا تسجيل الخروج؟\",\n \"personalData.redefinePassword\": \"تغيير كلمة السر\",\n \"personalData.saveData\": \"حفظ التغييرات\",\n \"personalData.password\": \"كلمة السر\",\n \"personalData.currentPassword\": \"كلمة المرور الحالية\",\n \"personalData.newPassword\": \"كلمة المرور الجديدة\",\n \"personalData.confirmPassword\": \"تأكيد كلمة المرور الجديدة\",\n \"personalData.savePassword\": \"حفظ كلمة المرور الجديدة\",\n \"personalData.yourPasswordMust\": \"يجب أن تحتوي كلمة المرور على:\",\n \"personalData.8chars\": \"8 أشكال و أحرف\",\n \"personalData.1number\": \"رقم\",\n \"personalData.1upLetter\": \"حرف كبير\",\n \"personalData.1lowLetter\": \"حرف صغير\",\n \"personalData.sendAccessCode.title\": \"إرسال رمز الوصول إلى بريدك الإلكتروني\",\n \"personalData.sendCode\": \"إرسال الرمز\",\n \"personalData.confirmCode\": \"تأكيد الرمز\",\n \"personalData.code\": \"الرمز\",\n \"personalData.definePassword\": \"تعيين كلمة المرور\",\n \"personalData.noPassword\": \"ليس لديك كلمة مرور محددة حتى الآن.\",\n \"personalData.definePassword.title\": \"تعيين كلمة المرور\",\n \"personalData.editPassword.title\": \"تحرير كلمة المرور\",\n \"personalData.resendCode\": \"إعادة إرسال الرمز\",\n \"personalData.newsletterOptIn\": \"أرغب في تلقي الرسالة الإخبارية.\",\n \"personalData.newsletter\": \"الرسالة الإخبارية\",\n \"personalData.newsletterQuestion\": \"هل ترغب في تلقي رسائل البريد الإلكتروني الترويجية؟\",\n \"upload.loading\": \"تحميل...\",\n \"upload.choosePhoto\": \"اختر صورة\",\n \"upload.chooseAgain\": \"اختر صورة أخرى\",\n \"upload.save\": \"حفظ\",\n \"upload.dragYourPhoto\": \"اسحب صورة ملفك الشخصي الجديدة هنا\",\n \"upload.photoUpdated\": \"تم تحديث بياناتك الشخصية بنجاح.\",\n \"upload.or\": \"أو\",\n \"addresses.addAddress\": \"إضافة عنوان\",\n \"addresses.saveAddress\": \"حفظ التعديلات\",\n \"addresses.deleteAddress\": \"حذف العنوان\",\n \"addresses.notFound\": \"ليس لديك أي عناوين حتى الآن!\",\n \"addresses.notApplicable\": \"غير متوفر\",\n \"commons.edit\": \"تعديل\",\n \"alert.addressNotFound\": \"لم يتم العثور على العنوان المحدد.\",\n \"alert.success\": \"تم حفظ المعلومات الخاصة بك بنجاح.\",\n \"alert.fileTooBig\": \"هذه الصورة أكبر من 4 ميغا بايت، اختر واحدة أصغر.\",\n \"alert.passwordMismatch\": \"كلمتا المرور غير متطابقتين.\",\n \"alert.wrongPassword\": \"كلمة المرور الحالية خاطئة.\",\n \"alert.wrongAndAboutToBlock\": \"كلمة المرور الحالية خاطئة. ستؤدي محاولة أخرى غير صالحة إلى حظر حسابك لمدة ساعة واحدة.\",\n \"alert.blockedUser\": \"لقد تم حظرك، حاول مرة أخرى في وقت لاحق.\",\n \"editor.defaultRoute.name\": \"حسابي - الصفحة الرئيسية\",\n \"editor.defaultRoute.description\": \"الصفحة الافتراضية لحسابي\",\n \"editor.defaultRoute.field\": \"المسار الافتراضي لحسابي\",\n \"editor.menu.name\": \"حسابي - القائمة\",\n \"editor.menu.description\": \"القائمة الجانبية لحسابي\",\n \"editor.menu.field\": \"نقطة امتداد القائمة\"\n}\n\n```" } ]
code_store-messages_8e5bef55
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/ar/vtex.store-components@2.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/availability-subscriber.added-message\": \"تم تسجيل البريد الإلكتروني بنجاح\",\n \"store/availability-subscriber.email-placeholder\": \"البريد الإلكتروني\",\n \"store/availability-subscriber.error-message\": \"محاولة فاشلة، الرجاء المحاولة مرة أخرى\",\n \"store/availability-subscriber.invalid-email\": \"بريد إلكتروني خاطئ\",\n \"store/availability-subscriber.name-placeholder\": \"الاسم\",\n \"store/availability-subscriber.send-label\": \"إرسال\",\n \"store/availability-subscriber.subscribe-label\": \"أريد أن أعرف متى يصبح هذا المنتج متاحًا\",\n \"store/availability-subscriber.title\": \"هذا المنتج غير متوفر الآن\",\n \"store/buy-button.add-to-cart\": \"إضافة إلى عربة التسوق\",\n \"store/buyButton-label-unavailable\": \"غير متوفر\",\n \"store/buybutton.add-failure\": \"حدث خطأ ولم تتم إضافة العنصر إلى عربة التسوق الخاصة بك!\",\n \"store/buybutton.buy-offline-success\": \"تمت اضافة المنتج الى عربتك دون اتصال بالإنترنت\",\n \"store/buybutton.buy-success\": \"تمت إضافة المنتج إلى السلة بنجاح\",\n \"store/buybutton.buy-success-duplicate\": \"عنصر موجود مسبقًا في عربتك\",\n \"store/buybutton.see-cart\": \"عرض عربة التسوق\",\n \"store/buybutton.select-sku-variations\": \"الرجاء تحديد خيار من كل متغير\",\n \"store/greeting\": \"مرحبًا\",\n \"store/loading\": \"تحميل...\",\n \"store/newsletter.confirmationText\": \"تم تسجيل بريدك الإلكتروني بنجاح.\",\n \"store/newsletter.confirmationTitle\": \"شكرا!\",\n \"store/newsletter.error\": \"حدث خطأ ما الرجاء المحاولة مرة أخرى في وقت لاحق\",\n \"store/newsletter.invalidEmail\": \"يرجى إدخال البريد الإلكتروني الصحيح.\",\n \"store/newsletter.label\": \"اشتراك في القائمة البريدية\",\n \"store/newsletter.placeholder\": \"أدخل عنوان بريدك الإلكتروني\",\n \"store/newsletter.submit\": \"الاشتراك\",\n \"store/pricing.from\": \"من\",\n \"store/pricing.installment-display\": \"أو {installments} {times} من {installmentPrice}\",\n \"store/pricing.interest-free\": \"بدون فوائد\",\n \"store/pricing.savings\": \"توفير {savings}\",\n \"store/pricing.to\": \"الى\",\n \"store/product-description.collapse.showLess\": \"عرض أقل\",\n \"store/product-description.collapse.showMore\": \"عرض المزيد\",\n \"store/product-description.property\": \"المؤسسة\",\n \"store/product-description.specification\": \"المواصفات\",\n \"store/product-description.title\": \"خصائص المنتج\",\n \"store/search.placeholder\": \"بحث\",\n \"store/search.search-term-too-short\": \"مصطلح البحث قصير جدًا\",\n \"store/search.searchFor\": \"بحث عن {term}\",\n \"store/searchBar.button.cancel.label\": \"إلغاء\",\n \"store/share.title\": \"{product} {sku} في {store}: \",\n \"store/shipping.empty-sla\": \"لا توجد معلومات شحن متاحة للرمز البريدي المعلن\",\n \"store/shipping.free\": \"مجانًا\",\n \"store/shipping.label\": \"حساب قيمة الشحن\",\n \"store/sku-selector.select.placeholder\": \"تحديد أحد الخيارات\",\n \"store/sku-selector.variation.select-an-option\": \"حدد خيارًا\",\n \"store/skuSelector.seeMore\": \"شاهد {quantity} أكثر\",\n \"store/store-components.share.label\": \"مشاركة\",\n \"store/technicalspecifications.title\": \"المواصفات الفنية\",\n \"store/user-address.change\": \"تغيير\",\n \"store/user-address.order\": \"طلب من\",\n \"store/user-address.pickup\": \"الاستلام في {name}\"\n}\n\n```" } ]
code_store-messages_06fc93e2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/hu/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"address-form.edit\": \"Szerkesztés\",\n \"userInfo.greeting\": \"Szia\",\n \"pages.addresses\": \"Címek\",\n \"pages.addressCreate\": \"Adj hozzá címet\",\n \"pages.addressEdit\": \"Cím szerkesztése\",\n \"pages.profile\": \"Profil\",\n \"pages.profileEdit\": \"Profil szerkesztése\",\n \"pages.myAccount\": \"Fiókom\",\n \"pages.logout\": \"Kijelentkezés\",\n \"logoutModal.cancel\": \"Megszünteti\",\n \"logoutModal.title\": \"Valóban ki akar jelentkezni?\",\n \"personalData.redefinePassword\": \"Jelszó újra meghatározása\",\n \"personalData.saveData\": \"Változtatások mentése\",\n \"personalData.password\": \"Jelszó\",\n \"personalData.currentPassword\": \"Jelenlegi jelszó\",\n \"personalData.newPassword\": \"Új jelszó\",\n \"personalData.confirmPassword\": \"Új jelszó megerősítése\",\n \"personalData.savePassword\": \"Jelszó mentése\",\n \"personalData.yourPasswordMust\": \"A jelszavának legalább tartalmaznia kell:\",\n \"personalData.8chars\": \"8 karaktert\",\n \"personalData.1number\": \"1 számot\",\n \"personalData.1upLetter\": \"1 nagybetűt\",\n \"personalData.1lowLetter\": \"1 kisbetűt\",\n \"personalData.sendAccessCode.title\": \"Küldjön hozzáférési kódot az e-mail címére\",\n \"personalData.sendCode\": \"Kód küldése\",\n \"personalData.confirmCode\": \"Kód megerősítése\",\n \"personalData.code\": \"Kód\",\n \"personalData.definePassword\": \"Jelszó beállítása\",\n \"personalData.noPassword\": \"Még nincs meghatározott jelszava.\",\n \"personalData.definePassword.title\": \"Jelszó beállítása\",\n \"personalData.editPassword.title\": \"Jelszó szerkesztése\",\n \"personalData.resendCode\": \"Kód újraküldése\",\n \"personalData.newsletterOptIn\": \"Szeretném megkapni a hírlevelet.\",\n \"personalData.newsletter\": \"Hírlevél\",\n \"personalData.newsletterQuestion\": \"Szeretne promóciós e-maileket kapni?\",\n \"upload.loading\": \"Betöltés…\",\n \"upload.choosePhoto\": \"Válasszon képet\",\n \"upload.chooseAgain\": \"Válasszon másik képet\",\n \"upload.save\": \"Mentés\",\n \"upload.dragYourPhoto\": \"Húzza ide az új profilképét\",\n \"upload.photoUpdated\": \"Profilképed sikeresen frissült.\",\n \"upload.or\": \"vagy\",\n \"addresses.addAddress\": \"Adjon hozzá címet\",\n \"addresses.saveAddress\": \"Cím mentése\",\n \"addresses.deleteAddress\": \"Cím törlése\",\n \"addresses.notFound\": \"Még nincs egyetlen címed sem!\",\n \"addresses.notApplicable\": \"N/A\",\n \"commons.edit\": \"Szerkesztés\",\n \"alert.addressNotFound\": \"A kiválasztott cím nem található.\",\n \"alert.success\": \"Adatait sikeresen elmentette.\",\n \"alert.fileTooBig\": \"Ez a kép meghaladja a 4 MB-os korlátot, válasszon kisebbet.\",\n \"alert.passwordMismatch\": \"A jelszavak nem egyeznek.\",\n \"alert.wrongPassword\": \"A jelenlegi jelszó helytelen.\",\n \"alert.wrongAndAboutToBlock\": \"A jelenlegi jelszó helytelen. Még egy érvénytelen kísérlet blokkolni fogja fiókját egy órára.\",\n \"alert.blockedUser\": \"Blokkolva lett, próbálja újra később.\",\n \"editor.defaultRoute.name\": \"Saját fiók – Főoldal\",\n \"editor.defaultRoute.description\": \"Fiókom alapértelmezett oldala\",\n \"editor.defaultRoute.field\": \"Fiókom alapértelmezett elérési útja\",\n \"editor.menu.name\": \"Saját fiók - Menü\",\n \"editor.menu.description\": \"Fiókom oldalsó menüje\",\n \"editor.menu.field\": \"A menü kiterjesztési pontjai\"\n}\n\n```" } ]
code_store-messages_d63a8e95
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/de/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Hallo\",\n \"pages.addresses\": \"Adressen\",\n \"pages.addressCreate\": \"Adresse hinzufügen\",\n \"pages.addressEdit\": \"Adresse bearbeiten\",\n \"pages.profile\": \"Profil\",\n \"pages.profileEdit\": \"Profil bearbeiten\",\n \"pages.myAccount\": \"Mein Konto\",\n \"pages.logout\": \"Logout \",\n \"logoutModal.cancel\": \"Abbrechen\",\n \"logoutModal.title\": \"Möchten Sie wirklich aufhören?\",\n \"personalData.redefinePassword\": \"Passwort neu definieren\",\n \"personalData.saveData\": \"Änderungen speichern\",\n \"personalData.password\": \"Passwort\",\n \"personalData.currentPassword\": \"Aktuelles Passwort\",\n \"personalData.newPassword\": \"Neues Passwort\",\n \"personalData.confirmPassword\": \"Bestätigen Sie neues Passwort\",\n \"personalData.savePassword\": \"Passwort speichern\",\n \"personalData.yourPasswordMust\": \"Ihr Passwort muss mindestens haben:\",\n \"personalData.8chars\": \"8 Zeichen\",\n \"personalData.1number\": \"1 Nummer\",\n \"personalData.1upLetter\": \"1 Großbuchstabe\",\n \"personalData.1lowLetter\": \"1 Kleinbuchstabe\",\n \"personalData.sendAccessCode.title\": \"Senden den Zugangscode per E-Mail\",\n \"personalData.sendCode\": \"Code senden\",\n \"personalData.confirmCode\": \"Code bestätigen\",\n \"personalData.code\": \"Code\",\n \"personalData.definePassword\": \"Passwort festlegen\",\n \"personalData.noPassword\": \"Sie haben noch kein Passwort definiert.\",\n \"personalData.definePassword.title\": \"Passwort festlegen\",\n \"personalData.editPassword.title\": \"Passwort bearbeiten\",\n \"personalData.resendCode\": \"Code erneut senden\",\n \"personalData.newsletterOptIn\": \"Ich möchte den Newsletter erhalten.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Möchten Sie Werbe-E-Mails erhalten?\",\n \"upload.loading\": \"Laden…\",\n \"upload.choosePhoto\": \"Wählen Sie ein Photo\",\n \"upload.chooseAgain\": \"Wählen Sie ein anderes Photo\",\n \"upload.save\": \"Speichern\",\n \"upload.dragYourPhoto\": \"Ziehen Sie Ihr neues Profilphoto hier\",\n \"upload.photoUpdated\": \"Ihr Profilphoto wurde erfolgreich aktualisiert.\",\n \"upload.or\": \"oder\",\n \"addresses.addAddress\": \"Adresse hinzufügen\",\n \"addresses.saveAddress\": \"Adresse speichern\",\n \"addresses.deleteAddress\": \"Adresse löschen\",\n \"addresses.notFound\": \"Sie haben noch keine Adresse!\",\n \"addresses.notApplicable\": \"N/V\",\n \"commons.edit\": \"Bearbeiten\",\n \"alert.addressNotFound\": \"Die ausgewählte Adresse wurde nicht gefunden.\",\n \"alert.success\": \"Ihre Angaben wurden erfolgreich gespeichert.\",\n \"alert.fileTooBig\": \"Dieses Photo liegt über der 4MB-Grenze. Wählen Sie ein kleineres.\",\n \"alert.passwordMismatch\": \"Passwörter stimmen nicht überein.\",\n \"alert.wrongPassword\": \"Aktuelles Passwort ist falsch.\",\n \"alert.wrongAndAboutToBlock\": \"Aktuelles Passwort ist falsch. Ein weiterer ungültiger Versuch blockiert Ihr Konto für eine Stunde.\",\n \"alert.blockedUser\": \"Ihr Konto ist blockiert, versuchen Sie es später noch einmal.\",\n \"editor.defaultRoute.name\": \"Mein Konto - Startseite\",\n \"editor.defaultRoute.description\": \"Die Standardseite meines Kontos\",\n \"editor.defaultRoute.field\": \"Der Standardpfad meines Kontos\",\n \"editor.menu.name\": \"Mein Konto - Menü\",\n \"editor.menu.description\": \"Das Seitenmenü meines Kontos\",\n \"editor.menu.field\": \"Erweiterungspunkt des Menüs\"\n}\n\n```" } ]
code_store-messages_d7839f86
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/id/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"address-form.edit\": \"Edit\",\n \"userInfo.greeting\": \"Hai\",\n \"pages.addresses\": \"Alamat\",\n \"pages.addressCreate\": \"Tambahkan alamat\",\n \"pages.addressEdit\": \"Edit alamat\",\n \"pages.profile\": \"Profil\",\n \"pages.profileEdit\": \"Edit Profil\",\n \"pages.myAccount\": \"Akun Saya\",\n \"pages.logout\": \"Keluar\",\n \"logoutModal.cancel\": \"Batalkan\",\n \"logoutModal.title\": \"Benar ingin keluar?\",\n \"personalData.redefinePassword\": \"Tentukan ulang kata sandi\",\n \"personalData.saveData\": \"Simpan perubahan\",\n \"personalData.password\": \"Kata sandi\",\n \"personalData.currentPassword\": \"Kata sandi saat ini\",\n \"personalData.newPassword\": \"Kata sandi baru\",\n \"personalData.confirmPassword\": \"Konfirmasi kata sandi baru\",\n \"personalData.savePassword\": \"Simpan kata sandi\",\n \"personalData.yourPasswordMust\": \"Kata sandi Anda harus memiliki setidaknya:\",\n \"personalData.8chars\": \"8 karakter\",\n \"personalData.1number\": \"1 angka\",\n \"personalData.1upLetter\": \"1 huruf besar\",\n \"personalData.1lowLetter\": \"1 huruf kecil\",\n \"personalData.sendAccessCode.title\": \"Kirim kode akses ke email Anda\",\n \"personalData.sendCode\": \"Kirim kode\",\n \"personalData.confirmCode\": \"Konfirmasi kode\",\n \"personalData.code\": \"Kode\",\n \"personalData.definePassword\": \"Tetapkan kata sandi\",\n \"personalData.noPassword\": \"Anda belum menentukan kata sandi.\",\n \"personalData.definePassword.title\": \"Tetapkan Kata Sandi\",\n \"personalData.editPassword.title\": \"Edit Kata Sandi\",\n \"personalData.resendCode\": \"Kirim ulang kode\",\n \"personalData.newsletterOptIn\": \"Saya ingin menerima buletin.\",\n \"personalData.newsletter\": \"Buletin\",\n \"personalData.newsletterQuestion\": \"Ingin menerima email promosi?\",\n \"upload.loading\": \"Memuat…\",\n \"upload.choosePhoto\": \"Pilih Gambar\",\n \"upload.chooseAgain\": \"Pilih Gambar lain\",\n \"upload.save\": \"Simpan\",\n \"upload.dragYourPhoto\": \"Tarik foto profil Anda ke sini\",\n \"upload.photoUpdated\": \"Foto profil Anda berhasil diperbarui.\",\n \"upload.or\": \"atau\",\n \"addresses.addAddress\": \"Tambahkan alamat\",\n \"addresses.saveAddress\": \"Simpan alamat\",\n \"addresses.deleteAddress\": \"Hapus alamat\",\n \"addresses.notFound\": \"Anda belum memiliki alamat!\",\n \"addresses.notApplicable\": \"Tidak Ada\",\n \"commons.edit\": \"Edit\",\n \"alert.addressNotFound\": \"Alamat yang dipilih tidak ditemukan.\",\n \"alert.success\": \"Informasi Anda berhasil disimpan.\",\n \"alert.fileTooBig\": \"Ukuran gambar ini lebih dari 4 MB, pilih ukuran yang lebih kecil.\",\n \"alert.passwordMismatch\": \"Kata sandi tidak cocok.\",\n \"alert.wrongPassword\": \"Kata sandi saat ini salah.\",\n \"alert.wrongAndAboutToBlock\": \"Kata sandi saat ini salah. Satu upaya tidak valid lainnya akan memblokir akun Anda selama satu jam.\",\n \"alert.blockedUser\": \"Anda telah diblokir, coba lagi nanti.\",\n \"editor.defaultRoute.name\": \"Akun Saya - Beranda\",\n \"editor.defaultRoute.description\": \"Halaman default Akun Saya\",\n \"editor.defaultRoute.field\": \"Jalur default Akun Saya\",\n \"editor.menu.name\": \"Akun Saya - Menu\",\n \"editor.menu.description\": \"Menu samping Akun Saya\",\n \"editor.menu.field\": \"Titik Ekstensi Menu\"\n}\n\n```" } ]
code_store-messages_0d8b8312
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/id/vtex.store-components@2.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/availability-subscriber.added-message\": \"Email berhasil didaftarkan\",\n \"store/availability-subscriber.email-placeholder\": \"Email\",\n \"store/availability-subscriber.error-message\": \"Gagal, silakan coba lagi\",\n \"store/availability-subscriber.invalid-email\": \"Email tidak valid\",\n \"store/availability-subscriber.name-placeholder\": \"Nama\",\n \"store/availability-subscriber.send-label\": \"Kirim\",\n \"store/availability-subscriber.subscribe-label\": \"Saya ingin tahu kapan produk ini menjadi tersedia\",\n \"store/availability-subscriber.title\": \"Produk ini tidak tersedia sekarang\",\n \"store/buy-button.add-to-cart\": \"Tambahkan ke troli\",\n \"store/buyButton-label-unavailable\": \"Tidak tersedia\",\n \"store/buybutton.add-failure\": \"Terjadi kesalahan sehingga item tidak ditambahkan ke troli Anda!\",\n \"store/buybutton.buy-offline-success\": \"Barang ditambahkan ke troli offline Anda\",\n \"store/buybutton.buy-success\": \"Item ditambahkan ke troli Anda\",\n \"store/buybutton.buy-success-duplicate\": \"Barang sudah masuk troli\",\n \"store/buybutton.see-cart\": \"Lihat troli\",\n \"store/buybutton.select-sku-variations\": \"Pilih opsi dari tiap variasi\",\n \"store/greeting\": \"Halo\",\n \"store/loading\": \"Memuat…\",\n \"store/newsletter.confirmationText\": \"Email Anda berhasil didaftarkan.\",\n \"store/newsletter.confirmationTitle\": \"Terima kasih!\",\n \"store/newsletter.error\": \"Terjadi kesalahan, silakan coba lagi nanti\",\n \"store/newsletter.invalidEmail\": \"Silakan masukkan alamat email yang valid.\",\n \"store/newsletter.label\": \"Berlangganan buletin kami\",\n \"store/newsletter.placeholder\": \"Masukkan alamat email Anda\",\n \"store/newsletter.submit\": \"Daftar\",\n \"store/pricing.from\": \"Dari\",\n \"store/pricing.installment-display\": \"Atau {installments} {times} dengan {installmentPrice}\",\n \"store/pricing.interest-free\": \"Bebas bunga\",\n \"store/pricing.savings\": \"Hemat {savings}\",\n \"store/pricing.to\": \"Ke\",\n \"store/product-description.collapse.showLess\": \"Tampilkan lebih sedikit\",\n \"store/product-description.collapse.showMore\": \"Tampilkan lebih banyak\",\n \"store/product-description.property\": \"Properti\",\n \"store/product-description.specification\": \"Spesifikasi\",\n \"store/product-description.title\": \"Deskripsi Produk\",\n \"store/search.placeholder\": \"Cari\",\n \"store/search.search-term-too-short\": \"Istilah pencarian terlalu singkat\",\n \"store/search.searchFor\": \"Cari {term}\",\n \"store/searchBar.button.cancel.label\": \"Batalkan\",\n \"store/share.title\": \"{product} {sku} di {store}:\",\n \"store/shipping.empty-sla\": \"Tidak tersedia informasi pengiriman untuk kode pos yang diinformasikan\",\n \"store/shipping.free\": \"Gratis\",\n \"store/shipping.label\": \"Hitung pengiriman\",\n \"store/sku-selector.select.placeholder\": \"Pilih opsi\",\n \"store/sku-selector.variation.select-an-option\": \"Pilih opsi\",\n \"store/skuSelector.seeMore\": \"Lihat {quantity} lainnya\",\n \"store/store-components.share.label\": \"Bagikan\",\n \"store/technicalspecifications.title\": \"Spesifikasi Teknis\",\n \"store/user-address.change\": \"Ubah\",\n \"store/user-address.order\": \"Pesan\",\n \"store/user-address.pickup\": \"Ambil di {name}\"\n}\n\n```" } ]
code_store-messages_4b97a0a2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/fr/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"address-form.edit\": \"Modifier\",\n \"userInfo.greeting\": \"Bonjour\",\n \"pages.addresses\": \"Adresses\",\n \"pages.addressCreate\": \"Ajouter adresse\",\n \"pages.addressEdit\": \"Modifier adresse\",\n \"pages.profile\": \"Profil\",\n \"pages.profileEdit\": \"Modifier Profil\",\n \"pages.myAccount\": \"Mon compte\",\n \"pages.logout\": \"Déconnexion\",\n \"logoutModal.cancel\": \"Annuler\",\n \"logoutModal.title\": \"Êtes-vous sûr de vouloir quitter cette page ?\",\n \"personalData.redefinePassword\": \"Redéfinir mot de passe\",\n \"personalData.saveData\": \"Sauvegarder les modifications\",\n \"personalData.password\": \"Mot de passe\",\n \"personalData.currentPassword\": \"Mot de passe actuel\",\n \"personalData.newPassword\": \"Nouveau mot de passe\",\n \"personalData.confirmPassword\": \"Confirmer nouveau mot de passe\",\n \"personalData.savePassword\": \"Sauvegarder mot de passe\",\n \"personalData.yourPasswordMust\": \"Votre mot de passe doit avoir au moins:\",\n \"personalData.8chars\": \"8 caractères\",\n \"personalData.1number\": \"1 numéro\",\n \"personalData.1upLetter\": \"1 lettre majuscule\",\n \"personalData.1lowLetter\": \"1 lettre minuscule\",\n \"personalData.sendAccessCode.title\": \"Envoyer le code d'accès à votre email\",\n \"personalData.sendCode\": \"Envoyer le code\",\n \"personalData.confirmCode\": \"Confirmer le code\",\n \"personalData.code\": \"Code\",\n \"personalData.definePassword\": \"Définir le mot de passe\",\n \"personalData.noPassword\": \"Vous n'avez pas encore de mot de passe défini.\",\n \"personalData.definePassword.title\": \"Définir le mot de passe\",\n \"personalData.editPassword.title\": \"Modifier le mot de passe\",\n \"personalData.resendCode\": \"Renvoyer le code\",\n \"personalData.newsletterOptIn\": \"Je souhaite recevoir la newsletter.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Voulez-vous recevoir des mails publicitaires?\",\n \"upload.loading\": \"Chargement…\",\n \"upload.choosePhoto\": \"Choisir une image\",\n \"upload.chooseAgain\": \"Choisir une autre image\",\n \"upload.save\": \"Sauvegarder\",\n \"upload.dragYourPhoto\": \"Faites glisser votre nouvelle photo de profil ici\",\n \"upload.photoUpdated\": \"Votre photo de profil a été mise à jour avec succès.\",\n \"upload.or\": \"ou\",\n \"addresses.addAddress\": \"Ajouter adresse\",\n \"addresses.saveAddress\": \"Sauvegarder adresse\",\n \"addresses.deleteAddress\": \"Supprimer adresse\",\n \"addresses.notFound\": \"Vous n'avez aucune adresse enregistrée !\",\n \"addresses.notApplicable\": \"N/A\",\n \"commons.edit\": \"Modifier\",\n \"alert.addressNotFound\": \"L'adresse sélectionnée n'a pas été trouvée.\",\n \"alert.success\": \"Vos informations ont été enregistrées avec succès.\",\n \"alert.fileTooBig\": \"Cette image est au-dessus de la limite de 4 Mo, choisissez-en une plus petite.\",\n \"alert.passwordMismatch\": \"Les mots de passe ne correspondent pas.\",\n \"alert.wrongPassword\": \"Le mot de passe actuel est incorrect.\",\n \"alert.wrongAndAboutToBlock\": \"Le mot de passe actuel est incorrect. Une autre tentative invalide bloquera votre compte pendant une heure.\",\n \"alert.blockedUser\": \"Vous avez été bloqué, réessayez plus tard.\",\n \"editor.defaultRoute.name\": \"Mon compte - Accueil\",\n \"editor.defaultRoute.description\": \"La page par défaut de mon compte\",\n \"editor.defaultRoute.field\": \"Chemin d'accès par défaut de mon compte\",\n \"editor.menu.name\": \"Mon compte - Menu\",\n \"editor.menu.description\": \"Menu latéral de mon compte\",\n \"editor.menu.field\": \"Point d'extension du menu\"\n}\n\n```" } ]
code_store-messages_dbdbc411
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/es/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"userInfo.greeting\": \"Hola\",\n \"pages.addresses\": \"Direcciones\",\n \"pages.addressCreate\": \"Añadir Dirección\",\n \"pages.addressEdit\": \"Editar dirección\",\n \"pages.profile\": \"Perfil\",\n \"pages.profileEdit\": \"Editar Perfil\",\n \"pages.myAccount\": \"Mi cuenta\",\n \"pages.logout\": \"Salir\",\n \"logoutModal.cancel\": \"Cancelar\",\n \"logoutModal.title\": \"¿Quieres salir?\",\n \"personalData.redefinePassword\": \"Modificar contraseña\",\n \"personalData.saveData\": \"Guardar cambios\",\n \"personalData.password\": \"Contraseña\",\n \"personalData.currentPassword\": \"Contraseña actual\",\n \"personalData.newPassword\": \"Nueva contraseña\",\n \"personalData.confirmPassword\": \"Confirmar nueva contraseña\",\n \"personalData.savePassword\": \"Guardar contraseña\",\n \"personalData.yourPasswordMust\": \"Su contraseña debe tener al menos:\",\n \"personalData.8chars\": \"8 caracteres\",\n \"personalData.1number\": \"1 número\",\n \"personalData.1upLetter\": \"1 letra mayúscula\",\n \"personalData.1lowLetter\": \"1 letra minúscula\",\n \"personalData.sendAccessCode.title\": \"Enviar código de acceso a su correo electrónico\",\n \"personalData.sendCode\": \"Enviar código\",\n \"personalData.confirmCode\": \"Confirmar código\",\n \"personalData.code\": \"Código\",\n \"personalData.definePassword\": \"Definir contraseña\",\n \"personalData.noPassword\": \"Usted todavía no tiene una contraseña definida.\",\n \"personalData.definePassword.title\": \"Definir contraseña\",\n \"personalData.editPassword.title\": \"Editar Contraseña\",\n \"personalData.resendCode\": \"Reenviar código\",\n \"personalData.newsletterOptIn\": \"Quiero recibir el boletín informativo con promociones.\",\n \"personalData.newsletter\": \"Boletín informativo\",\n \"personalData.newsletterQuestion\": \"¿Quiere recibir boletines informativos promocionales?\",\n \"upload.loading\": \"Cargando…\",\n \"upload.choosePhoto\": \"Elige una imagen\",\n \"upload.chooseAgain\": \"Elige otra imagen\",\n \"upload.save\": \"Guardar\",\n \"upload.dragYourPhoto\": \"Arrastre su nueva imagen de perfil aquí\",\n \"upload.photoUpdated\": \"Tu foto de perfil fue actualizada con éxito.\",\n \"upload.or\": \"o\",\n \"addresses.addAddress\": \"Añadir dirección\",\n \"addresses.saveAddress\": \"Guardar dirección\",\n \"addresses.deleteAddress\": \"Borrar dirección\",\n \"addresses.notFound\": \"No tienes ninguna dirección registrada.\",\n \"addresses.notApplicable\": \"S/N\",\n \"commons.edit\": \"Editar\",\n \"alert.addressNotFound\": \"La dirección seleccionada no fue encontrada.\",\n \"alert.success\": \"Su información se guardó con éxito.\",\n \"alert.fileTooBig\": \"Esta imagen está por encima del límite de 4 MB, elija una más pequeña.\",\n \"alert.passwordMismatch\": \"Las contraseñas no coinciden.\",\n \"alert.wrongPassword\": \"La contraseña actual es incorrecta.\",\n \"alert.wrongAndAboutToBlock\": \"La contraseña actual es incorrecta. Un intento inválido más bloqueará su cuenta durante una hora.\",\n \"alert.blockedUser\": \"Has sido bloqueado, inténtalo de nuevo más tarde.\",\n \"editor.defaultRoute.name\": \"Mi cuenta - Home\",\n \"editor.defaultRoute.description\": \"Página por defecto de la página Mi Cuenta\",\n \"editor.defaultRoute.field\": \"Path por defector de la página Mi Cuenta\",\n \"editor.menu.name\": \"Mi Cuenta - Menú\",\n \"editor.menu.description\": \"Menú lateral de la página Mi Cuenta\",\n \"editor.menu.field\": \"Punto de Extensión del Menú\"\n}\n\n```" } ]
code_store-messages_2587aab7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/es/vtex.store-components@2.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/availability-subscriber.added-message\": \"E-mail registrado con éxito\",\n \"store/availability-subscriber.email-placeholder\": \"E-mail\",\n \"store/availability-subscriber.error-message\": \"No se pudo registrar, inténtelo de nuevo\",\n \"store/availability-subscriber.invalid-email\": \"E-mail inválido\",\n \"store/availability-subscriber.name-placeholder\": \"Nombre\",\n \"store/availability-subscriber.send-label\": \"Enviar\",\n \"store/availability-subscriber.subscribe-label\": \"Quiero saber cuando este producto está disponible\",\n \"store/availability-subscriber.title\": \"Este producto no está disponible actualmente\",\n \"store/buy-button.add-to-cart\": \"Incluir items en el carrito\",\n \"store/buyButton-label-unavailable\": \"No disponible\",\n \"store/buybutton.add-failure\": \"¡Algo salió mal y el artículo no se agregó a tu carrito!\",\n \"store/buybutton.buy-offline-success\": \"Ítem agregado a su carrito offline\",\n \"store/buybutton.buy-success\": \"Ítem agregado a su carrito\",\n \"store/buybutton.buy-success-duplicate\": \"Ítem ya en tu carrito\",\n \"store/buybutton.see-cart\": \"Ver carrito\",\n \"store/buybutton.select-sku-variations\": \"Por favor seleccione una opción de cada variación\",\n \"store/greeting\": \"Hola\",\n \"store/loading\": \"Cargando…\",\n \"store/newsletter.confirmationText\": \"Su correo electrónico fue registrado con éxito.\",\n \"store/newsletter.confirmationTitle\": \"Gracias!\",\n \"store/newsletter.error\": \"Algo salió mal, vuelva a intentarlo más tarde\",\n \"store/newsletter.invalidEmail\": \"Por favor, ingrese un correo electrónico válido.\",\n \"store/newsletter.label\": \"Suscríbete a nuestro boletín\",\n \"store/newsletter.placeholder\": \"Inserte su email\",\n \"store/newsletter.submit\": \"Enviar\",\n \"store/pricing.from\": \"De\",\n \"store/pricing.installment-display\": \"O {installments} {times} de {installmentPrice}\",\n \"store/pricing.interest-free\": \"sin interés\",\n \"store/pricing.savings\": \"Ahorre {savings}\",\n \"store/pricing.to\": \"Por\",\n \"store/product-description.collapse.showLess\": \"Volver\",\n \"store/product-description.collapse.showMore\": \"Ver más\",\n \"store/product-description.property\": \"Propiedad\",\n \"store/product-description.specification\": \"Especificación\",\n \"store/product-description.title\": \"Descripción del Producto\",\n \"store/search.placeholder\": \"Buscar\",\n \"store/search.search-term-too-short\": \"El término de búsqueda es demasiado corto\",\n \"store/search.searchFor\": \"Buscar {term}\",\n \"store/searchBar.button.cancel.label\": \"Cancelar\",\n \"store/share.title\": \"{product} {sku} en la {store}: \",\n \"store/shipping.empty-sla\": \"No hay información de envío disponible para el código postal informado\",\n \"store/shipping.free\": \"Gratis\",\n \"store/shipping.label\": \"Calcular el flete\",\n \"store/sku-selector.select.placeholder\": \"Elige una opción\",\n \"store/sku-selector.variation.select-an-option\": \"Selecciona una opción\",\n \"store/skuSelector.seeMore\": \"Ver {quantity} más\",\n \"store/store-components.share.label\": \"Compartir\",\n \"store/technicalspecifications.title\": \"Especificaciones Técnicas\",\n \"store/user-address.change\": \"Cambiar\",\n \"store/user-address.order\": \"Orden a\",\n \"store/user-address.pickup\": \"Recoger en {name}\"\n}\n\n```" } ]
code_store-messages_3954f28e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/en/vtex.my-account@1.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"address-form.edit\": \"Edit\",\n \"userInfo.greeting\": \"Hi\",\n \"pages.addresses\": \"Addresses\",\n \"pages.addressCreate\": \"Add address\",\n \"pages.addressEdit\": \"Edit address\",\n \"pages.profile\": \"Profile\",\n \"pages.profileEdit\": \"Edit Profile\",\n \"pages.myAccount\": \"My account\",\n \"pages.logout\": \"Logout\",\n \"logoutModal.cancel\": \"Cancel\",\n \"logoutModal.title\": \"Do you really want to logout?\",\n \"personalData.redefinePassword\": \"Redefine password\",\n \"personalData.saveData\": \"Save changes\",\n \"personalData.password\": \"Password\",\n \"personalData.currentPassword\": \"Current password\",\n \"personalData.newPassword\": \"New password\",\n \"personalData.confirmPassword\": \"Confirm new password\",\n \"personalData.savePassword\": \"Save password\",\n \"personalData.yourPasswordMust\": \"Your password must have at least:\",\n \"personalData.8chars\": \"8 characters\",\n \"personalData.1number\": \"1 number\",\n \"personalData.1upLetter\": \"1 uppercase letter\",\n \"personalData.1lowLetter\": \"1 lowercase letter\",\n \"personalData.sendAccessCode.title\": \"Send access code to your email\",\n \"personalData.sendCode\": \"Send code\",\n \"personalData.confirmCode\": \"Confirm code\",\n \"personalData.code\": \"Code\",\n \"personalData.definePassword\": \"Set password\",\n \"personalData.noPassword\": \"You do not have a password defined yet.\",\n \"personalData.definePassword.title\": \"Set Password\",\n \"personalData.editPassword.title\": \"Edit Password\",\n \"personalData.resendCode\": \"Resend code\",\n \"personalData.newsletterOptIn\": \"I want to receive the newsletter.\",\n \"personalData.newsletter\": \"Newsletter\",\n \"personalData.newsletterQuestion\": \"Do you want to receive promotional emails?\",\n \"upload.loading\": \"Loading…\",\n \"upload.choosePhoto\": \"Choose a Picture\",\n \"upload.chooseAgain\": \"Choose another Picture\",\n \"upload.save\": \"Save\",\n \"upload.dragYourPhoto\": \"Drag your new profile picture here\",\n \"upload.photoUpdated\": \"Your profile picture was successfully updated.\",\n \"upload.or\": \"or\",\n \"addresses.addAddress\": \"Add address\",\n \"addresses.saveAddress\": \"Save address\",\n \"addresses.deleteAddress\": \"Delete address\",\n \"addresses.notFound\": \"You don't have any addresses yet!\",\n \"addresses.notApplicable\": \"N/A\",\n \"commons.edit\": \"Edit\",\n \"alert.addressNotFound\": \"The selected address was not found.\",\n \"alert.success\": \"Your information was successfully saved.\",\n \"alert.fileTooBig\": \"This image is above the 4MB limit, choose a smaller one.\",\n \"alert.passwordMismatch\": \"Passwords do not match.\",\n \"alert.wrongPassword\": \"Current password is wrong.\",\n \"alert.wrongAndAboutToBlock\": \"Current password is wrong. One more invalid attempt will block your account for one hour.\",\n \"alert.blockedUser\": \"You have been blocked, try again later.\",\n \"editor.defaultRoute.name\": \"My Account - Home\",\n \"editor.defaultRoute.description\": \"My Account's default page\",\n \"editor.defaultRoute.field\": \"My Account's default path\",\n \"editor.menu.name\": \"My Account - Menu\",\n \"editor.menu.description\": \"My Account's side menu\",\n \"editor.menu.field\": \"Menu's Extension Point\"\n}\n\n```" } ]
code_store-messages_b8cb6d78
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/messages/en/vtex.store-components@2.x.json from the store-messages VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/availability-subscriber.added-message\": \"E-mail registered successfully\",\n \"store/availability-subscriber.email-placeholder\": \"Email\",\n \"store/availability-subscriber.error-message\": \"Failed, please try again\",\n \"store/availability-subscriber.invalid-email\": \"Invalid email\",\n \"store/availability-subscriber.name-placeholder\": \"Name\",\n \"store/availability-subscriber.send-label\": \"Send\",\n \"store/availability-subscriber.subscribe-label\": \"I want to know when this product becomes available\",\n \"store/availability-subscriber.title\": \"This product isn't available right now\",\n \"store/buy-button.add-to-cart\": \"Add to cart\",\n \"store/buyButton-label-unavailable\": \"Unavailable\",\n \"store/buybutton.add-failure\": \"Something went wrong and the item wasn't added to your cart!\",\n \"store/buybutton.buy-offline-success\": \"Item added to your offline cart\",\n \"store/buybutton.buy-success\": \"Item added to your cart\",\n \"store/buybutton.buy-success-duplicate\": \"Item already in your cart\",\n \"store/buybutton.see-cart\": \"View cart\",\n \"store/buybutton.select-sku-variations\": \"Please select an option of each variation\",\n \"store/greeting\": \"Hello\",\n \"store/loading\": \"Loading…\",\n \"store/newsletter.confirmationText\": \"Your email was successfully registered.\",\n \"store/newsletter.confirmationTitle\": \"Thank you!\",\n \"store/newsletter.error\": \"Something went wrong, please try again later\",\n \"store/newsletter.invalidEmail\": \"Please, enter a valid email.\",\n \"store/newsletter.label\": \"Subscribe to our newsletter\",\n \"store/newsletter.placeholder\": \"Enter your email address\",\n \"store/newsletter.submit\": \"Sign up\",\n \"store/pricing.from\": \"From\",\n \"store/pricing.installment-display\": \"Or {installments} {times} of {installmentPrice}\",\n \"store/pricing.interest-free\": \"interest-free\",\n \"store/pricing.savings\": \"Save {savings}\",\n \"store/pricing.to\": \"To\",\n \"store/product-description.collapse.showLess\": \"Show less\",\n \"store/product-description.collapse.showMore\": \"Show more\",\n \"store/product-description.property\": \"Property\",\n \"store/product-description.specification\": \"Specification\",\n \"store/product-description.title\": \"Product Description\",\n \"store/search.placeholder\": \"Search\",\n \"store/search.search-term-too-short\": \"Search term is too short\",\n \"store/search.searchFor\": \"Search for {term}\",\n \"store/searchBar.button.cancel.label\": \"Cancel\",\n \"store/share.title\": \"{product} {sku} at {store}: \",\n \"store/shipping.empty-sla\": \"There's no shipping information available for the informed zip code\",\n \"store/shipping.free\": \"Free\",\n \"store/shipping.label\": \"Calculate shipping\",\n \"store/sku-selector.select.placeholder\": \"Choose an option\",\n \"store/sku-selector.variation.select-an-option\": \"Select an option\",\n \"store/skuSelector.seeMore\": \"See {quantity} more\",\n \"store/store-components.share.label\": \"Share\",\n \"store/technicalspecifications.title\": \"Technical Specifications\",\n \"store/user-address.change\": \"Change\",\n \"store/user-address.order\": \"Order to\",\n \"store/user-address.pickup\": \"Pick up at {name}\"\n}\n\n```" } ]
code_b2b-cnae_a269a1a0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/messages/pt.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-cnae.layout.title\": \"Validação de CNAE\",\n \"admin/b2b-cnae.layout.configuration-title\": \"Para utilizar a validação automática de CNAE na sua loja, é preciso informar seu login e senha da SERPRO\",\n \"admin/b2b-cnae.layout.configuration-submit\": \"Salvar\",\n \"admin/b2b-cnae.layout.configuration-login\": \"AppKey do serviço SEPRO\",\n \"admin/b2b-cnae.layout.configuration-password\": \"AppToken do serviço SERPRO\",\n \"admin/b2b-cnae.layout.configuration-isMandatory\": \"Obrigatório para Pessoa Juridica\",\n \"admin/b2b-cnae.layout.configuration-beginRange\": \"Inicio de CNAEs aceitos\",\n \"admin/b2b-cnae.layout.configuration-tradePolicy\": \"Id da politica comercial para CNAE aceito\",\n \"admin/b2b-cnae.layout.configuration-success\": \"Salvo com sucesso\",\n \"admin/b2b-cnae.layout.configuration-failure\": \"Falha ao enviar, AppKey ou AppToken são inválidos\"\n}\n\n```" } ]
code_b2b-cnae_128b5a00
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/messages/en.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-cnae.layout.title\": \"CNAE app validation\",\n \"admin/b2b-cnae.layout.configuration-title\": \"In order to use the automatic CNAE validation, you need to inform your account login and password on the SERPRO services\",\n \"admin/b2b-cnae.layout.configuration-submit\": \"Save\",\n \"admin/b2b-cnae.layout.configuration-login\": \"SERPRO AppKey\",\n \"admin/b2b-cnae.layout.configuration-password\": \"SERPRO AppToken\",\n \"admin/b2b-cnae.layout.configuration-isMandatory\": \"Mandatory for all companies\",\n \"admin/b2b-cnae.layout.configuration-beginRange\": \"Start of accepted CNAE range\",\n \"admin/b2b-cnae.layout.configuration-tradePolicy\": \"Id of the trade policy that will be applied to the buyer\",\n \"admin/b2b-cnae.layout.configuration-success\": \"Save successfully\",\n \"admin/b2b-cnae.layout.configuration-failure\": \"Failure to send, AppKey or AppToken is invalid\"\n}\n\n```" } ]
code_b2b-cnae_9878dfb5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/messages/context.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-cnae.layout.title\": \"CNAE app validation\",\n \"admin/b2b-cnae.layout.configuration-title\": \"In order to use the automatic CNAE validation, you need to inform your account login and password on the SERPRO services\",\n \"admin/b2b-cnae.layout.configuration-submit\": \"Save\",\n \"admin/b2b-cnae.layout.configuration-login\": \"SERPRO AppKey\",\n \"admin/b2b-cnae.layout.configuration-password\": \"SERPRO AppToken\",\n \"admin/b2b-cnae.layout.configuration-isMandatory\": \"Mandatory for all companies\",\n \"admin/b2b-cnae.layout.configuration-beginRange\": \"Start of accepted CNAE range\",\n \"admin/b2b-cnae.layout.configuration-tradePolicy\": \"Id of the trade policy that will be applied to the buyer\",\n \"admin/b2b-cnae.layout.configuration-success\": \"Save successfully\",\n \"admin/b2b-cnae.layout.configuration-failure\": \"Failure to send, AppKey or AppToken is invalid\"\n}\n\n```" } ]
code_b2b-cnae_8810b4b6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/messages/es.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/b2b-cnae.layout.title\": \"CNAE app validation\",\n \"admin/b2b-cnae.layout.configuration-title\": \"In order to use the automatic CNAE validation, you need to inform your account login and password on the SERPRO services\",\n \"admin/b2b-cnae.layout.configuration-submit\": \"Save\",\n \"admin/b2b-cnae.layout.configuration-login\": \"SERPRO AppKey\",\n \"admin/b2b-cnae.layout.configuration-password\": \"SERPRO AppToken\",\n \"admin/b2b-cnae.layout.configuration-isMandatory\": \"Mandatory for all companies\",\n \"admin/b2b-cnae.layout.configuration-beginRange\": \"Start of accepted CNAE range\",\n \"admin/b2b-cnae.layout.configuration-tradePolicy\": \"Id of the trade policy that will be applied to the buyer\",\n \"admin/b2b-cnae.layout.configuration-success\": \"Save successfully\",\n \"admin/b2b-cnae.layout.configuration-failure\": \"Failure to send, AppKey or AppToken is invalid\"\n}\n\n```" } ]
code_b2b-cnae_48b0d752
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/admin/navigation.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"section\": \"storeSetup\",\n \"titleId\": \"admin/b2b-cnae.layout.title\",\n \"path\": \"/admin/cnae\"\n}\n\n```" } ]
code_b2b-cnae_d7085d02
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/admin/routes.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin.cnae\": {\n \"component\": \"Configuration\",\n \"path\": \"/admin/app/cnae\"\n }\n}\n\n```" } ]
code_b2b-cnae_b7af0d9f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/docs/README.md from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# VTEX B2B-CNAE VALIDATION\n\nAllows integration with the SERPRO service, making it possible so the store can inform an CNPJ and receive the CNAE information about it. In addition to that, is possible to configure an allowed CNAE range and the api will inform you if at least one of the CNAES for the CNPJ is allowed.\n\n## Configuration\n\n1. Install this app to your store with:\n```sh\nvtex install vtex.b2b-adapter@0.x\n```\n2. Navigate to the configuration portion of the app in `/admin/cnae` and set the SEPRO credentials (**IMPORTANT**:**This is a paid service, contracting and mantaining is the client's responsibility**), start of the allowed CNAE range and the trade policy Id you wish to be returned along with the CNAE information in the API\n\n3. Once configured, the api can be accessed via Graphql with an query like the following\n```\nquery ValidateCNPJ($cnpj: String){\n validateCnpj(cnpj:$cnpj){\n allowed\n tradePolicyId\n acceptedCnae{\n code\n description \n }\n\t} \n} \n```\n\nVia graphql is also possible to obtain more data about the company, once you get the cnpj, with a request like this: \n\n```\nquery getCompanyInformation($cnpj: String){\n getCompanyInformation(cnpj:$cnpj) {\n ni\n oppeningDate\n companyName\n tradeName\n specialSituation\n establishmentType\n email\n socialCapital\n size\n }\n} \n```\n\n4. The CNAE information can also be accessed via http request in the following url\n```\nhttps://{{acountName}}.{{environment}}.com/v1/validateCnae/{{cnpj}}\n```\n\n\n\n```" } ]
code_b2b-cnae_f2137e16
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/graphql/schema.graphql from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ntype Query {\n getSettings: SettingsResponse @cacheControl(scope: PUBLIC, maxAge: MEDIUM)\n getConfig: GetConfigResponse @cacheControl(scope: PUBLIC, maxAge: MEDIUM)\n postSettings(settings: Settings): SaveResult\n validateCnpj(cnpj: String): ConsumerInformation\n getCompanyInformation(cnpj: String): CompanyInformation\n}\n\ninput Settings {\n login: String\n password: String\n isMandatoryForCompany: Boolean\n startOfAcceptedRange: String\n tradePolicyId: String\n token: String\n}\n\ntype SettingsResponse {\n login: String\n password: String\n isMandatoryForCompany: Boolean\n startOfAcceptedRange: String\n tradePolicyId: String\n token: String\n}\n\ntype SaveResult {\n status: Boolean\n}\n\ntype GetConfigResponse {\n storeKey: String\n apiUser: String\n}\n\ntype ConsumerInformation {\n allowed: Boolean\n tradePolicyId: String\n acceptedCnae: Cnae\n}\n\ntype Cnae {\n code: String\n description: String\n}\n\ntype LegalNature {\n code: String\n description: String\n}\n\ntype Address {\n street: String\n number: String\n complement: String\n cep: String\n district: String\n city: String\n state: String\n}\n\ntype CadastralSituation {\n code: String\n date: String\n motive: String\n}\n\ntype PhoneNumber {\n ddd: String\n number: String\n}\n\ntype CompanyInformation {\n ni: String\n oppeningDate: String\n companyName: String\n tradeName: String\n mainCnae: Cnae\n legalNature: LegalNature\n address: Address\n specialSituation: String\n cadastralSituation: CadastralSituation\n establishmentType: String\n email: String\n socialCapital: String\n size: String\n phoneNumbers: [PhoneNumber]\n secondarieCnaes: [Cnae]\n }\n\n```" } ]
code_b2b-cnae_1e5ee1e4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/service.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"memory\": 256,\n \"ttl\": 10,\n \"timeout\": 2,\n \"minReplicas\": 2,\n \"maxReplicas\": 4,\n \"routes\": {\n \"validateCnpj\": {\n \"path\": \"/v1/validateCnae/:cnpj\",\n \"public\": true\n }\n }\n}\n```" } ]
code_b2b-cnae_54620451
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/package.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {},\n \"devDependencies\": {\n \"@types/node\": \"8.x\",\n \"@vtex/api\": \"^3.0.0\",\n \"typescript\": \"3.9.7\",\n \"vtex.styleguide\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.styleguide@9.112.27/public/@types/vtex.styleguide\"\n },\n \"version\": \"1.0.0\"\n}\n\n```" } ]
code_b2b-cnae_dd73a237
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/index.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { ClientsConfig, LRUCache, Service, ServiceContext } from '@vtex/api'\n\nimport { Clients } from './clients'\nimport { queries } from './resolvers/cnae'\nimport { method } from '@vtex/api'\nimport { validate } from './middlewares/validate'\n\nconst TIMEOUT_MS = 5000\n\nconst memoryCache = new LRUCache<string, any>({ max: 100 })\nmetrics.trackCache('validateCnae', memoryCache)\n\nconst clients: ClientsConfig<Clients> = {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: TIMEOUT_MS,\n },\n validateCnae: {\n memoryCache,\n },\n },\n}\n\ndeclare global {\n type Context = ServiceContext<Clients>\n}\n\n// Export a service that defines route handlers and client options.\nexport default new Service<Clients>({\n clients,\n graphql: {\n resolvers: {\n Query: {\n ...queries,\n },\n },\n },\n routes: {\n validateCnpj: method({\n GET: validate\n })\n }\n})\n\n```" } ]
code_b2b-cnae_d2537a10
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/Configuration.tsx from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { FC, useState, useEffect } from 'react'\nimport { useQuery, useApolloClient } from 'react-apollo'\nimport { FormattedMessage } from 'react-intl'\nimport {\n Layout,\n PageHeader,\n PageBlock,\n Checkbox,\n Input,\n InputPassword,\n Button,\n ToastConsumer,\n ToastProvider,\n} from 'vtex.styleguide'\n\nimport getSettings from './queries/getSettings.gql'\nimport postSettings from './queries/postSettings.gql'\n\nimport './styles.global.css'\n\nconst Configuration: FC = () => {\n const { data } = useQuery(getSettings)\n console.log(data);\n const client = useApolloClient()\n const [settings, setSettings] = useState<Settings>({\n login: '',\n password: '',\n isMandatoryForCompany: false,\n startOfAcceptedRange: '',\n tradePolicyId: '',\n })\n\n useEffect(() => {\n if (data) {\n setSettings(data.getSettings)\n }\n }, [data])\n\n if (!data) {\n return null\n }\n\n const handleSubmit = (e: any) => {\n e.preventDefault()\n return client\n .query({\n query: postSettings,\n variables: {\n settings,\n },\n })\n .then((result: any) => {\n if (result.data.postSettings.status) {\n return {\n message: (\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-success\" />\n ),\n }\n }\n return {\n message: (\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-failure\" />\n ),\n }\n })\n }\n return (\n <ToastProvider>\n <Layout>\n <PageHeader\n title={<FormattedMessage id=\"admin/b2b-cnae.layout.title\" />}\n subtitle={\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-title\" />\n }\n />\n <PageBlock variation=\"full\">\n <ToastConsumer>\n {({ showToast }: { showToast: any }) => (\n <form\n onSubmit={e =>\n handleSubmit(e).then(result => showToast(result))\n }\n >\n <div>\n <div className=\"mb5\">\n <Input\n label={\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-login\" />\n }\n value={settings.login}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n setSettings({ ...settings, login: e.target.value })\n }}\n />\n </div>\n <div className=\"mb5\">\n <InputPassword\n label={\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-password\" />\n }\n value={settings.password}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n setSettings({ ...settings, password: e.target.value })\n }}\n />\n </div>\n <div className=\"mb5\">\n <Checkbox\n label={\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-isMandatory\" />\n }\n checked={settings.isMandatoryForCompany}\n onChange={() => {\n setSettings({\n ...settings,\n isMandatoryForCompany: !settings.isMandatoryForCompany,\n })\n }}\n value=\"false\"\n id=\"isMandatoryForCompany\"\n />\n </div>\n <div className=\"mb5\">\n <Input\n label={\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-beginRange\" />\n }\n value={settings.startOfAcceptedRange}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n setSettings({\n ...settings,\n startOfAcceptedRange: e.target.value,\n })\n }}\n />\n </div>\n <div className=\"mb5\">\n <Input\n label={\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-tradePolicy\" />\n }\n value={settings.tradePolicyId}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) => {\n setSettings({\n ...settings,\n tradePolicyId: e.target.value,\n })\n }}\n />\n </div>\n <Button type=\"submit\">\n <FormattedMessage id=\"admin/b2b-cnae.layout.configuration-submit\" />\n </Button>\n </div>\n </form>\n )}\n </ToastConsumer>\n </PageBlock>\n </Layout>\n </ToastProvider>\n )\n}\n\nexport default Configuration\n\nexport interface Settings {\n login: string\n password: string\n isMandatoryForCompany: boolean\n startOfAcceptedRange: string\n tradePolicyId: string\n}\n\n```" } ]
code_b2b-cnae_2330f1b3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/package.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.b2b-cnae\",\n \"version\": \"1.0.0\",\n \"scripts\": {\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^11.12.1\",\n \"@types/react\": \"^16.8.10\",\n \"@types/react-intl\": \"^2.3.17\",\n \"apollo-client\": \"^2.4.7\",\n \"graphql\": \"^14.0.2\",\n \"prop-types\": \"^15.7.2\",\n \"react\": \"^16.8.6\",\n \"react-dom\": \"^16.8.6\",\n \"react-intl\": \"^2.7.2\",\n \"tslint\": \"^5.14.0\",\n \"typescript\": \"3.9.7\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.98.0/public/@types/vtex.render-runtime\",\n \"vtex.styleguide\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.styleguide@9.112.27/public/@types/vtex.styleguide\"\n },\n \"dependencies\": {\n \"@types/faker\": \"^4.1.5\",\n \"faker\": \"^4.1.0\",\n \"react-apollo\": \"^3.1.3\"\n }\n}\n\n```" } ]
code_b2b-cnae_ecde8a57
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/styles.global.css from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\nhtml,\nbody,\n#render-container,\n#render-provider,\n.render-container,\n.render-provider {\n height: 100%;\n}\n\n```" } ]
code_b2b-cnae_0dbf0f6c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/clients/serpro.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { ExternalClient, InstanceOptions, IOContext } from '@vtex/api'\n\nexport class Serpro extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super('http://gateway.apiserpro.serpro.gov.br/', context, options)\n }\n\n public getToken = (appKey: string, appToken: string) =>\n this.http.post('token', `grant_type=client_credentials`, {\n headers: {\n 'Proxy-Authorization': this.context.authToken,\n 'X-Vtex-Use-Https': true,\n Authorization: `Basic ${Buffer.from(`${appKey}:${appToken}`).toString(\n 'base64'\n )}`,\n 'content-type': 'application/x-www-form-urlencoded',\n },\n })\n\n public getCnae = (bearerToken: string, cnpj: string) =>\n this.http.get(`consulta-cnpj-df/v2/empresa/${cnpj}`, {\n headers: {\n 'Proxy-Authorization': this.context.authToken,\n 'X-Vtex-Use-Https': true,\n Authorization: `Bearer ${bearerToken}`,\n 'content-type': 'application/json',\n },\n })\n}\n\n```" } ]
code_b2b-cnae_c0a8aaba
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/clients/index.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\n\nimport { Serpro } from './serpro'\n\nexport class Clients extends IOClients {\n public get serpro(): Serpro {\n return this.getOrSet('serpro', Serpro)\n }\n}\n\n\n\n```" } ]
code_b2b-cnae_ba007fde
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/middlewares/validate.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { GetOrGenerateToken } from '../utils/token'\nimport { ValidateCnae } from '../utils/cnae'\n\ndeclare let process: {\n env: {\n VTEX_APP_ID: string\n }\n}\n\nexport async function validate(ctx: Context, next: () => Promise<any>) {\n const {\n vtex: {\n route: { params },\n },\n clients: { serpro, apps },\n } = ctx\n\n const { cnpj } = params\n\n if (cnpj) {\n const appId = process.env.VTEX_APP_ID\n let settings = await apps.getAppSettings(appId)\n let response: any = null\n try {\n ctx.set('Access-Control-Allow-Origin', '*');\n ctx.status = 200\n response = await serpro.getCnae(await GetOrGenerateToken(settings.login, settings.password, ctx), cnpj?.toString())\n const { cnaePrincipal, cnaeSecundarias } = response\n console.log('Principal', cnaePrincipal)\n ctx.body = ValidateCnae(cnaePrincipal, cnaeSecundarias, parseInt(settings.startOfAcceptedRange), settings.tradePolicyId)\n }\n catch (error) {\n ctx.status = 500\n ctx.body = error\n }\n }\n await next()\n}\n```" } ]
code_b2b-cnae_ebc8f1a0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/utils/cnae.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport function ValidateCnae(mainCnae: CnaeInput, secondarieCnaes: CnaeInput[], startOfAcceptedRange: number, tradePolicyId: string) {\n var cnae: CnaeOutput = { code: '', description: '' }\n var acceptedCnae: AcceptedCnae = { allowed: false, tradePolicyId: null, acceptedCnae: cnae }\n\n if (parseInt(mainCnae.codigo) >= startOfAcceptedRange) {\n cnae.code = mainCnae.codigo\n cnae.description = mainCnae.descricao\n acceptedCnae.allowed = true;\n acceptedCnae.tradePolicyId = tradePolicyId\n }\n else if (secondarieCnaes.length > 1) {\n let sortedCnaes = secondarieCnaes.sort((a: CnaeInput, b: CnaeInput) => parseInt(a.codigo) - parseInt(b.codigo))\n let firstValidCnae = sortedCnaes.find((secondarieCnae: CnaeInput) => parseInt(secondarieCnae.codigo) >= startOfAcceptedRange)\n cnae.code = firstValidCnae ? firstValidCnae.codigo : ''\n cnae.description = firstValidCnae ? firstValidCnae.descricao : ''\n acceptedCnae.tradePolicyId = tradePolicyId\n acceptedCnae.allowed = firstValidCnae ? true : false;\n }\n\n return acceptedCnae\n}\n\nexport interface CnaeInput {\n codigo: string\n descricao: string\n}\n\nexport interface CnaeOutput {\n code: string\n description: string\n}\n\nexport interface AcceptedCnae {\n allowed: boolean\n tradePolicyId: string | null\n acceptedCnae: CnaeOutput\n}\n\n\n\n\n```" } ]
code_b2b-cnae_8e16e640
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/utils/token.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport async function GetOrGenerateToken(\n login: string,\n password: string,\n ctx: Context\n) {\n const {\n clients: { serpro },\n } = ctx\n\n let response: any = null\n\n try {\n response = await serpro.getToken(login, password)\n if (response.access_token) {\n return response.access_token\n }\n return ''\n } catch (error) {\n return ''\n }\n}\n\n```" } ]
code_b2b-cnae_cd75bc93
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/utils/companyInformation.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport {CnaeOutput} from './cnae'\n\nexport function FormatInformation(response:any)\n{\n var mainCnae: CnaeOutput = {code: response.cnaePrincipal.codigo, description: response.cnaePrincipal.descricao}\n var legalNature: LegalNature = {code: response.naturezaJuridica.codigo, description: response.naturezaJuridica.descricao}\n var address: Address = {\n street: response.endereco.logradouro,\n number: response.endereco.numero,\n complement: response.endereco.complemento,\n cep: response.endereco.cep,\n district: response.endereco.bairro,\n city: response.endereco.municipio.descricao,\n state: response.endereco.uf\n }\n var cadastralSituation: CadastralSituation = {\n code: response.situacaoCadastral.codigo,\n date: response.situacaoCadastral.data,\n motive: response.situacaoCadastral.motivo\n }\n\n var phoneNumbers: PhoneNumber[] = [{ddd: response.telefones[0].ddd, number: response.telefones[0].numero}]\n\n var secondarieCnaes: CnaeOutput[] = []\n \n response.cnaeSecundarias.forEach((secondarieCnae:any) => {\n let currentCnae: CnaeOutput = {code: secondarieCnae.codigo, description: secondarieCnae.descricao}\n secondarieCnaes.push(currentCnae) \n });\n\n var information: CompanyInformation = {\n ni: response.ni, \n oppeningDate: response.dataAbertura, \n companyName: response.nomeEmpresarial, \n tradeName: response.nomeFantasia, \n mainCnae, \n legalNature,\n address,\n specialSituation: response.situacaoEspecial,\n cadastralSituation,\n establishmentType: response.tipoEstabelecimento,\n email: response.correioEletronico,\n socialCapital: response.capitalSocial,\n size: response.porte,\n phoneNumbers,\n secondarieCnaes\n }\n \n return information\n}\n\n\n\n\nexport interface CompanyInformation{\n ni: string\n oppeningDate: string\n companyName: string\n tradeName: string\n mainCnae: CnaeOutput\n legalNature: LegalNature\n address: Address\n specialSituation: string\n cadastralSituation: CadastralSituation\n establishmentType: string\n email: string\n socialCapital: string\n size: string\n phoneNumbers: PhoneNumber[]\n secondarieCnaes: CnaeOutput[]\n}\n\ninterface LegalNature {\n code: string,\n description: string\n}\n\ninterface Address{\n street: string\n number: string\n complement: string\n cep: string\n district: string\n city: string\n state: string\n}\n\ninterface CadastralSituation {\n code: string\n date: string\n motive: string\n}\n \ninterface PhoneNumber {\n ddd: string\n number: string\n}\n```" } ]
code_b2b-cnae_6b94db02
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/node/resolvers/cnae.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { Apps } from '@vtex/api'\nimport { GetOrGenerateToken } from '../utils/token'\nimport { ValidateCnae } from '../utils/cnae'\nimport { FormatInformation } from '../utils/companyInformation'\n\ndeclare let process: {\n env: {\n VTEX_APP_ID: string\n }\n}\n\nconst getAppId = (): string => {\n return process.env.VTEX_APP_ID || ''\n}\n\nexport const queries = {\n getConfig: async (_: any, __: any, ctx: Context) => {\n const {\n clients: { apps },\n } = ctx\n const appId = process.env.VTEX_APP_ID\n const { storeKey, apiUser } = await apps.getAppSettings(appId)\n return {\n storeKey,\n apiUser,\n }\n },\n getSettings: async (_: any, __: any, ctx: Context) => {\n const {\n clients: { apps },\n } = ctx\n return apps.getAppSettings(process.env.VTEX_APP_ID)\n },\n postSettings: async (_: any, args: any, ctx: Context) => {\n const { settings } = args\n\n try {\n const apps = new Apps(ctx.vtex)\n const app: string = getAppId()\n settings.token = await GetOrGenerateToken(settings.login, settings.password, ctx);\n await apps.saveAppSettings(app, settings)\n return { status: true }\n } catch (error) {\n return { status: false }\n }\n },\n validateCnpj: async (_: any, args: any, ctx: Context) => {\n const { cnpj } = args\n const {\n clients: { serpro, apps },\n } = ctx\n\n const appId = process.env.VTEX_APP_ID\n let settings = await apps.getAppSettings(appId)\n let response: any = null\n try {\n response = await serpro.getCnae(await GetOrGenerateToken(settings.login, settings.password, ctx), cnpj)\n const { cnae_principal, cnae_secundarias } = response\n return ValidateCnae(cnae_principal, cnae_secundarias, parseInt(settings.startOfAcceptedRange), settings.tradePolicyId)\n }\n catch (error) {\n console.log('Error on validate CNPJ', error)\n return null\n }\n },\n getCompanyInformation: async(_:any, args:any, ctx:Context) =>{\n const { cnpj } = args\n const {\n clients: { serpro, apps },\n } = ctx\n const appId = process.env.VTEX_APP_ID\n let settings = await apps.getAppSettings(appId)\n let response: any = null\n try {\n response = await serpro.getCnae(await GetOrGenerateToken(settings.login, settings.password, ctx), cnpj)\n return FormatInformation(response); \n }\n catch (error) {\n console.log('Error on validate CNPJ', error)\n return null\n }\n } \n}\n\n```" } ]
code_b2b-cnae_d9276578
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/typings/vtex.api.d.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { ServiceContext } from '@vtex/api'\n\nexport interface Context extends ServiceContext {\n Clients: Clients\n}\n\n```" } ]
code_b2b-cnae_07d1ed7f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/typings/graphql.d.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.gql' {\n const graphql: any\n export default graphql\n}\n\n```" } ]
code_b2b-cnae_4ebee5e0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/typings/vtex.styleguide.d.ts from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.styleguide' {\n export const Button\n export const Layout\n export const PageHeader\n export const PageBlock\n export const Checkbox\n export const Input\n export const InputPassword\n export const ToastConsumer\n export const ToastProvider\n}\n\n```" } ]
code_b2b-cnae_2648b2a8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/queries/postSettings.gql from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery postSettings($settings: Settings){\n postSettings(settings:$settings){\n status\n }\n}\n\n```" } ]
code_b2b-cnae_af02734a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of b2b-cnae/react/queries/getSettings.gql from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery getSettings{\n getSettings{\n login\n password\n isMandatoryForCompany\n startOfAcceptedRange\n tradePolicyId\n token\n }\n}\n\n```" } ]
code_shop-review-interfaces_efbf69e7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/messages/pt.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"editor.base-store-component.title\": \"IO Base App\",\n \"editor.base-store-component.description\": \"Um componente de demonstração para apps do VTEX IO\",\n \"editor.base-store-component.title.title\": \"Título\",\n \"editor.base-store-component.title.description\": \"Especifique um título personalizado\",\n \"base.title\": \"Olá, Mundo!!\",\n \"base.change-value\": \"Troque seu valor: {value}\"\n}\n```" } ]
code_shop-review-interfaces_b26aee9a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/messages/en.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"editor.base-store-component.title\": \"IO Base App\",\n \"editor.base-store-component.description\": \"A demo component for IO apps\",\n \"editor.base-store-component.title.title\": \"Title\",\n \"editor.base-store-component.title.description\": \"Specify a custom title\",\n \"base.title\": \"Hello, World!!\",\n \"base.change-value\": \"Change your value: {value}\"\n}\n```" } ]
code_shop-review-interfaces_3403fff3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/messages/context.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"editor.base-store-component.title\": \"Title of IO Base App component\",\n \"editor.base-store-component.description\": \"Description of IO Base App component\",\n \"editor.base-store-component.title.title\": \"Title of title property\",\n \"editor.base-store-component.title.description\": \"Description of title property\",\n \"base.title\": \"Base title message to be shown when title is not provided via CMS\",\n \"base.change-value\": \"Text to be shown beside input component typed value\"\n}\n```" } ]
code_shop-review-interfaces_4fbdcbbc
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/messages/es.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"editor.base-store-component.title\": \"IO Base App\",\n \"editor.base-store-component.description\": \"Un componente de demostración para aplicaciones IO.\",\n \"editor.base-store-component.title.title\": \"Título\",\n \"editor.base-store-component.title.description\": \"Especifique un título personalizado\",\n \"base.title\": \"¡Hola Mundo!\",\n \"base.change-value\": \"Cambia tu valor: {value}\"\n}\n```" } ]
code_shop-review-interfaces_ed2e5841
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/docs/README.md from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# shop-review-interfaces\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\nabstract interfaces to support reviews of stores\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n```" } ]
code_shop-review-interfaces_3602b81f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/react/package.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"scripts\": {\n \"lint\": \"tsc --noEmit && eslint --ext ts .\"\n },\n \"dependencies\": {\n \"react\": \"^16.8.3\"\n },\n \"devDependencies\": {\n \"@types/react\": \"^16.8.3\",\n \"@types/graphql\": \"^14.5.0\",\n \"@types/jest\": \"^24.0.11\",\n \"@vtex/test-tools\": \"^3.4.3\",\n \"@vtex/tsconfig\": \"^0.6.0\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.132.4/public/@types/vtex.render-runtime\",\n \"vtex.shop-review-interfaces\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.shop-review-interfaces@0.3.0/public/@types/vtex.shop-review-interfaces\"\n },\n \"version\": \"0.3.1\"\n}\n\n```" } ]
code_shop-review-interfaces_8081bb71
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/react/Noop.tsx from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport type { FunctionComponent } from 'react'\nimport React from 'react'\n\nconst Noop: FunctionComponent = () => <></>\n\nexport default Noop\n\n```" } ]
code_shop-review-interfaces_bb042b03
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of shop-review-interfaces/store/interfaces.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"shop-review-form\": {\n \"component\": \"Noop\",\n \"extensible\": \"public\"\n },\n \"shop-review-badge\": {\n \"component\": \"Noop\",\n \"extensible\": \"public\"\n },\n \"shop-review-summary\": {\n \"component\": \"Noop\",\n \"extensible\": \"public\"\n }\n}\n```" } ]
code_carousel_95002107
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/messages/pt.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.carousel.title\": \"Carrossel\",\n \"admin/editor.carousel.description\": \"Um componente básico de carrossel que exibe uma série de banners\",\n \"admin/editor.carousel.showDots.title\": \"Mostrar pontos\",\n \"admin/editor.carousel.showArrows.title\": \"Mostrar setas de navegação\",\n \"admin/editor.carousel.height.title\": \"Altura máxima do banner (px)\",\n \"admin/editor.carousel.mobileHeight.title\": \"Altura máxima do banner no mobile (px)\",\n \"admin/editor.carousel.autoplay.title\": \"Reprodução automática\",\n \"admin/editor.carousel.autoplaySpeed.title\": \"Velocidade da reprodução automática (seg)\",\n \"admin/editor.carousel.numberOfBanners.title\": \"Número de banners\",\n \"admin/editor.carousel.bannerLink.title\": \"Link do banner (deve começar com http ou https)\",\n \"admin/editor.carousel.bannerLink.page.title\": \"Página alvo do banner (deprecada)\",\n \"admin/editor.carousel.bannerLink.params.title\": \"Parâmetros (deprecada)\",\n \"admin/editor.carousel.bannerLink.params.description\": \"Parâmetros separados por vírgula, e.g.: chave=valor,department=Accessories\",\n \"admin/editor.carousel.bannerLink.custominternalurl.title\": \"URL interna\",\n \"admin/editor.carousel.bannerLink.custominternalurl.description\": \"URL customizada de busca, e.g.: /shirt?map=ft&order=OrderByTopSaleDESC\",\n \"admin/editor.carousel.bannerLink.url.title\": \"URL (externa)\",\n \"admin/editor.carousel.banners.title\": \"Banners\",\n \"admin/editor.carousel.banner.title\": \"Banner\",\n \"admin/editor.carousel.banner.description.title\": \"Descrição do banner\",\n \"admin/editor.carousel.banner.externalRoute.title\": \"Rota externa\",\n \"admin/editor.carousel.banner.image.title\": \"Imagem do banner\",\n \"admin/editor.carousel.banner.mobileImage.title\": \"Imagem do banner no mobile\",\n \"admin/editor.carousel.banner.tabletImage.title\": \"Imagem de banner para tablet\"\n}\n\n```" } ]
code_carousel_eece9e67
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/messages/en.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.carousel.title\": \"Carousel\",\n \"admin/editor.carousel.description\": \"A simple carousel component that shows a serie of banners\",\n \"admin/editor.carousel.showDots.title\": \"Show dots\",\n \"admin/editor.carousel.showArrows.title\": \"Show arrows\",\n \"admin/editor.carousel.height.title\": \"Banner max height size (px)\",\n \"admin/editor.carousel.mobileHeight.title\": \"Banner max height size on mobile (px)\",\n \"admin/editor.carousel.autoplay.title\": \"Autoplay\",\n \"admin/editor.carousel.autoplaySpeed.title\": \"Autoplay speed (sec)\",\n \"admin/editor.carousel.numberOfBanners.title\": \"Number of banners\",\n \"admin/editor.carousel.bannerLink.title\": \"Banner link (should start with https or http)\",\n \"admin/editor.carousel.bannerLink.page.title\": \"Banner target page (deprecated)\",\n \"admin/editor.carousel.bannerLink.params.title\": \"Params (deprecated)\",\n \"admin/editor.carousel.bannerLink.params.description\": \"Comma separated params, e.g.: key=value,department=Accessories\",\n \"admin/editor.carousel.bannerLink.custominternalurl.title\": \"Internal URL\",\n \"admin/editor.carousel.bannerLink.custominternalurl.description\": \"A custom search url, e.g.: /shirt?map=ft&order=OrderByTopSaleDESC\",\n \"admin/editor.carousel.bannerLink.url.title\": \"URL (external)\",\n \"admin/editor.carousel.banners.title\": \"Banners\",\n \"admin/editor.carousel.banner.title\": \"Banner\",\n \"admin/editor.carousel.banner.description.title\": \"Banner description\",\n \"admin/editor.carousel.banner.externalRoute.title\": \"External route\",\n \"admin/editor.carousel.banner.image.title\": \"Banner image\",\n \"admin/editor.carousel.banner.mobileImage.title\": \"Banner mobile image\",\n \"admin/editor.carousel.banner.tabletImage.title\": \"Banner tablet image\"\n}\n\n```" } ]
code_carousel_86ffc12d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/messages/context.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.carousel.title\": \"admin/editor.carousel.title\",\n \"admin/editor.carousel.description\": \"admin/editor.carousel.description\",\n \"admin/editor.carousel.showDots.title\": \"admin/editor.carousel.showDots.title\",\n \"admin/editor.carousel.showArrows.title\": \"admin/editor.carousel.showArrows.title\",\n \"admin/editor.carousel.height.title\": \"admin/editor.carousel.height.title\",\n \"admin/editor.carousel.mobileHeight.title\": \"admin/editor.carousel.mobileHeight.title\",\n \"admin/editor.carousel.autoplay.title\": \"admin/editor.carousel.autoplay.title\",\n \"admin/editor.carousel.autoplaySpeed.title\": \"admin/editor.carousel.autoplaySpeed.title\",\n \"admin/editor.carousel.numberOfBanners.title\": \"admin/editor.carousel.numberOfBanners.title\",\n \"admin/editor.carousel.bannerLink.title\": \"admin/editor.carousel.bannerLink.title\",\n \"admin/editor.carousel.bannerLink.page.title\": \"admin/editor.carousel.bannerLink.page.title\",\n \"admin/editor.carousel.bannerLink.params.title\": \"admin/editor.carousel.bannerLink.params.title\",\n \"admin/editor.carousel.bannerLink.params.description\": \"admin/editor.carousel.bannerLink.params.description\",\n \"admin/editor.carousel.bannerLink.custominternalurl.title\": \"admin/editor.carousel.bannerLink.custominternalurl.title\",\n \"admin/editor.carousel.bannerLink.custominternalurl.description\": \"admin/editor.carousel.bannerLink.custominternalurl.description\",\n \"admin/editor.carousel.bannerLink.url.title\": \"admin/editor.carousel.bannerLink.url.title\",\n \"admin/editor.carousel.banners.title\": \"admin/editor.carousel.banners.title\",\n \"admin/editor.carousel.banner.title\": \"admin/editor.carousel.banner.title\",\n \"admin/editor.carousel.banner.description.title\": \"admin/editor.carousel.banner.description.title\",\n \"admin/editor.carousel.banner.externalRoute.title\": \"admin/editor.carousel.banner.externalRoute.title\",\n \"admin/editor.carousel.banner.image.title\": \"admin/editor.carousel.banner.image.title\",\n \"admin/editor.carousel.banner.mobileImage.title\": \"admin/editor.carousel.banner.mobileImage.title\",\n \"admin/editor.carousel.banner.tabletImage.title\": \"admin/editor.carousel.banner.tabletImage.title\"\n}\n\n```" } ]
code_carousel_6de6fddf
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/messages/es.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.carousel.title\": \"Carrusel\",\n \"admin/editor.carousel.description\": \"Un componente básico de carrusel que muestra una serie de banners\",\n \"admin/editor.carousel.showDots.title\": \"Mostrar puntos\",\n \"admin/editor.carousel.showArrows.title\": \"Mostrar flechas de navegación\",\n \"admin/editor.carousel.height.title\": \"Altura máxima del banner (px)\",\n \"admin/editor.carousel.mobileHeight.title\": \"Altura máxima del banner en el móvil (px)\",\n \"admin/editor.carousel.autoplay.title\": \"Reproducción automática\",\n \"admin/editor.carousel.autoplaySpeed.title\": \"Velocidad de reproducción automática (seg)\",\n \"admin/editor.carousel.numberOfBanners.title\": \"Número de banners\",\n \"admin/editor.carousel.bannerLink.title\": \"Enlace del banner (debe comenzar con http o https)\",\n \"admin/editor.carousel.bannerLink.page.title\": \"Página de destino del banner (obsoleto)\",\n \"admin/editor.carousel.bannerLink.params.title\": \"Parámetros (obsoleto)\",\n \"admin/editor.carousel.bannerLink.params.description\": \"Parámetros separados por coma, e.g.: clave=valor,department=Accessories\",\n \"admin/editor.carousel.bannerLink.custominternalurl.title\": \"URL interna\",\n \"admin/editor.carousel.bannerLink.custominternalurl.description\": \"Una URL de búsqueda personalizada, e.g.: /shirt?map=ft&order=OrderByTopSaleDESC\",\n \"admin/editor.carousel.bannerLink.url.title\": \"URL (externo)\",\n \"admin/editor.carousel.banners.title\": \"Banners\",\n \"admin/editor.carousel.banner.title\": \"Banner\",\n \"admin/editor.carousel.banner.description.title\": \"Descripción del banner\",\n \"admin/editor.carousel.banner.externalRoute.title\": \"Ruta externa\",\n \"admin/editor.carousel.banner.image.title\": \"Imagen del banner\",\n \"admin/editor.carousel.banner.mobileImage.title\": \"Imagen del banner en el móvil\",\n \"admin/editor.carousel.banner.tabletImage.title\": \"Imagen del banner en tablet\"\n}\n\n```" } ]
code_carousel_bb5fa563
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/docs/README.md from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# VTEX Carousel ![https://img.shields.io/badge/-Deprecated-red](https://img.shields.io/badge/-Deprecated-red)\n\n:warning: **The Carousel app has been deprecated**. Although support for this block is still granted, we strongly recommend you to [update your store theme's carousel using the Slider Layout](https://vtex.io/docs/recipes/layout/building-a-carousel-through-lists-and-slider-layout) in order to keep up with the component's evolution.\n\nThe VTEX Carousel app is a store component that shows a collection of banners, and this app is used by store theme.\n\n:loudspeaker: **Disclaimer:** Don't fork this project; use, contribute, or open issue with your feature request.\n\n## Release schedule\n\n| Release | Status | Initial Release | Maintenance LTS Start | End-of-life | Store Compatibility |\n| :-----: | :-----------------: | :-------------: | :-------------------: | :---------: | :-----------------: |\n| [2.x] | **Current Release** | 2018-11-28 | | | 2.x |\n| [1.x] | **Maintenance LTS** | 2018-05-02 | 2018-11-28 | March 2019 | 1.x |\n\nSee our [LTS policy](https://github.com/vtex-apps/awesome-io#lts-policy) for more information.\n\n## Table of Contents\n\n- [Usage](#usage)\n - [Blocks API](#blocks-api)\n - [Configuration](#configuration)\n - [Styles API](#styles-api)\n - [CSS namespaces](#css-namespaces)\n- [Troubleshooting](#troubleshooting)\n- [Contributing](#contributing)\n- [Tests](#tests)\n\n## Usage\n\nThis app uses our store builder with the blocks architecture. To know more about Store Builder [click here.](https://help.vtex.com/en/tutorial/understanding-storebuilder-and-stylesbuilder#structuring-and-configuring-our-store-with-object-object)\n\nWe add the carousel as a block in our [Store](https://github.com/vtex-apps/store/blob/master/store/interfaces.json).\n\nTo configure or customize this app, you need to import it in your dependencies in `manifest.json`.\n\n```json\n dependencies: {\n \"vtex.carousel\": \"2.x\"\n }\n```\n\nThen, add `carousel` block into your app theme as we do in our [Store theme app](https://github.com/vtex-apps/store-theme/blob/master/store/blocks.json).\n\nNow, you can change the behavior of the carousel block that is in the store header. See an example of how to configure:\n\n```json\n\"carousel#home\": {\n \"props\": {\n \"autoplay\": true,\n \"autoplaySpeed\": 4,\n \"banners\": [],\n \"height\": 440,\n \"showArrows\": true,\n \"showDots\": true\n }\n }\n```\n\n### Blocks API\n\nWhen implementing this app as a block, various inner blocks may be available. The following interface lists the available blocks within carousel and describes if they are required or optional.\n\n```json\n\"carousel\": {\n \"component\": \"Carousel\"\n}\n```\n\nFor now this block does not have any required or optional blocks.\n\n#### Configuration\n\nThrough the Storefront, you can change the carousel's behavior and interface. However, you also can make in your theme app, as Store theme does.\n\n| Prop name | Type | Description | Default value |\n| --------------- | --------------- | -------------------------------------------------- | ------------- |\n| `autoplay` | `Boolean` | Enable automatic banner transition | true |\n| `autoplaySpeed` | `Number` | Set the automatic banner transition interval | 5 |\n| `showDots` | `Boolean` | Shows the carousel dots | true |\n| `showArrows` | `Boolean` | Shows the carousel arrows | true |\n| `height` | `Number` | Set banners height | 420 |\n| `banners` | `Array(Banner)` | Array of banners the will be shown in the carousel | [] |\n\nBanner:\n\n| Prop name | Type | Description | Default value |\n| ------------------- | --------- | ------------------------------------------------------------------------------- | ------------- |\n| `image` | `String` | Link for the image of the banner | N/A |\n| `mobileImage` | `String` | Link for the mobile image of the banner | N/A |\n| `tabletImage` | `String` | Link for the table image of the banner | N/A |\n| `description` | `String` | The image's description | N/A |\n| `url` | `String` | The URL where the image is pointing to, in case of external route | N/A |\n| `page` | `String` | The page where the image is pointing to | N/A |\n| `params` | `String` | Parameters of the URL | N/A |\n| `externalRoute` | `Boolean` | Indicates if the route is external or not | false |\n| `customInternalURL` | `String` | The relative link to where where the image is pointing to (for internal routes) | N/A |\n\n### Styles API\n\nThis app provides some CSS classes as an API for style customization.\n\nTo use this CSS API, you must add the `styles` builder and create an app styling CSS file.\n\n1. Add the `styles` builder to your `manifest.json`:\n\n```json\n \"builders\": {\n \"styles\": \"1.x\"\n }\n```\n\n2. Create a file called `vtex.carousel.css` inside the `styles/css` folder. Add your custom styles:\n\n```css\n.container {\n margin-top: 10px;\n}\n```\n\n#### CSS namespaces\n\nBelow, we describe the namespaces that are defined in the `Carousel`.\n\n| Class name | Description | Component Source |\n| ------------------------ | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |\n| `container` | The main container of the `Carousel` | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `sliderRoot` | The main container of the `Slider` | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `sliderFrame` | The element that contains the Slides | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `slide` | The container of the `Banner` component | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `arrow` | The container of the arrow svg (this namespace is applied to both arrows) | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `arrowLeft` | The container of the left arrow svg | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `arrowRight` | The container of the right arrow svg | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `arrowsContainerWrapper` | The wrapper of the container of the arrows | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `arrowsContainer` | The container of the arrows | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `containerDots` | The main container of the dots | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `notActiveDot` | The element of the dots that are not actives | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `dot` | The element of the dot | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `activeDot` | The current active dot | [Carousel](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Carousel.tsx) |\n| `containerImg` | The container of the image | [Banner](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Banner.tsx) |\n| `imgRegular` | The wrapper of the `img` element used to center the image inside the container | [Banner](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Banner.tsx) |\n| `img` | The `img` element | [Banner](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Banner.tsx) |\n| `bannerLink` | The `a` element that wraps the whole `Banner` component | [Banner](https://github.com/vtex-apps/carousel/blob/feature/new-slider/react/Banner.tsx) |\n\n## Troubleshooting\n\nYou can check if others are passing through similar issues [here](https://github.com/vtex-apps/carousel/issues). Also feel free to [open issues](https://github.com/vtex-apps/carousel/issues/new) or contribute with pull requests.\n\n## Contributing\n\nCheck it out [how to contribute](https://github.com/vtex-apps/awesome-io#contributing) with this project.\n\n## Tests\n\nTo execute our tests go to `react/` folder and run `npm test`\n\n### Travis CI\n\n[![Build Status](https://travis-ci.org/vtex-apps/carousel.svg?branch=master)](https://travis-ci.org/vtex-apps/carousel)\n[![Coverage Status](https://coveralls.io/repos/github/vtex-apps/carousel/badge.svg?branch=master)](https://coveralls.io/github/vtex-apps/carousel?branch=master)\n\n```" } ]
code_carousel_bbac5139
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/Banner.tsx from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { Link } from 'vtex.render-runtime'\nimport { useDevice } from 'vtex.device-detector'\nimport classnames from 'classnames'\nimport { useCssHandles } from 'vtex.css-handles'\n\nimport styles from './styles.css'\n\nconst CSS_HANDLES = ['imgRegular', 'img', 'bannerLink'] as const\n\nexport interface Props {\n /** The image of the banner */\n image: string\n /** Link for the mobile image of the banner */\n mobileImage: string\n /** The description of the image */\n description: string\n /** Max height size of the banner */\n height: number\n /** The url where the image is pointing to, in case of external route */\n url: string\n /** The page where the image is pointing to */\n page: string\n /** Params of the url */\n params: string\n /** Indicates if the route is external or not */\n externalRoute: boolean\n /** The url where the image is pointing to, in case of internal route (optional) */\n customInternalURL: string\n /** Runtime injected deps */\n runtime: any\n /** Link for the tablet image of the banner */\n tabletImage: string\n}\n\nfunction getParams(params: string) {\n const json: { [s: string]: string } = {}\n if (params) {\n const array = params.split(',')\n array.forEach(item => {\n const pair = item.split('=')\n json[pair[0]] = pair[1]\n })\n return json\n }\n return null\n}\n\nconst Banner = (props: Props) => {\n const {\n url,\n page,\n image,\n params,\n mobileImage,\n tabletImage,\n height = 420,\n externalRoute,\n description = '',\n customInternalURL,\n } = props\n\n const { isMobile, device } = useDevice()\n const handles = useCssHandles(CSS_HANDLES)\n\n const content = (\n <div className={classnames(styles.containerImg, 'w-100')}>\n <div\n className={classnames(\n handles.imgRegular,\n 'flex items-center justify-center'\n )}\n style={{ maxHeight: height }}\n >\n <img\n className={classnames(handles.img, 'w-100 h-100')}\n src={\n device === 'tablet'\n ? tabletImage || image\n : isMobile && mobileImage\n ? mobileImage\n : image\n }\n alt={description}\n />\n </div>\n </div>\n )\n\n if (!externalRoute) {\n return page || customInternalURL ? (\n <Link\n className={classnames(handles.bannerLink, 'w-100')}\n page={customInternalURL ? undefined : page}\n params={getParams(params)}\n to={customInternalURL || undefined}\n >\n {content}\n </Link>\n ) : (\n content\n )\n }\n\n return (\n <a\n className={classnames(handles.bannerLink, 'w-100')}\n href={url}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n {content}\n </a>\n )\n}\n\nexport default Banner\n\n```" } ]
code_carousel_6df841c3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/styles.css from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container {\n min-height: 0.625rem;\n min-width: 0.625rem;\n}\n\n.containerImg {\n max-height: inherit;\n}\n\n.dot {\n height: 10px;\n width: 10px;\n}\n\n.arrowsContainer {\n box-sizing: content-box;\n}\n\n```" } ]
code_carousel_1cc4456c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/tests-setup.js from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```javascript\n/* eslint-disable */\nwindow.matchMedia =\n window.matchMedia ||\n function() {\n return {\n matches: false,\n addListener: function() {},\n removeListener: function() {},\n }\n }\n\n```" } ]
code_carousel_8b4f1b97
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/package.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.carousel\",\n \"version\": \"2.12.2\",\n \"description\": \"A Carousel Component.\",\n \"scripts\": {\n \"pretest\": \"yarn\",\n \"test\": \"vtex-test-tools test\",\n \"test:coverage\": \"vtex-test-tools test --collectCoverage\",\n \"gen:coveralls\": \"yarn test:coverage && cat ./coverage/lcov.info | coveralls\"\n },\n \"author\": \"VTEX\",\n \"license\": \"ISC\",\n \"dependencies\": {\n \"classnames\": \"^2.2.6\",\n \"ramda\": \"^0.26.1\",\n \"shortid\": \"2.2.8\"\n },\n \"devDependencies\": {\n \"@types/classnames\": \"^2.2.7\",\n \"@types/node\": \"^10.12.21\",\n \"@types/react\": \"^16.8.1\",\n \"@vtex/test-tools\": \"^0.2.0\",\n \"@vtex/tsconfig\": \"^0.4.3\",\n \"coveralls\": \"^3.0.3\",\n \"react\": \"^16.3.1\",\n \"react-dom\": \"^16.3.1\",\n \"typescript\": \"^3.7.5\",\n \"vtex.css-handles\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.css-handles@0.4.2/public/@types/vtex.css-handles\",\n \"vtex.device-detector\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.device-detector@0.2.4/public/@types/vtex.device-detector\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.98.0/public/@types/vtex.render-runtime\",\n \"vtex.slider\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.slider@0.8.1/public/_types/react\",\n \"vtex.store-components\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.109.0/public/_types/react\",\n \"vtex.store-icons\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.17.0/public/@types/vtex.store-icons\"\n }\n}\n\n```" } ]
code_carousel_60e32515
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/Carousel.tsx from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport classnames from 'classnames'\nimport React, { useState } from 'react'\nimport { Dots, Slide, Slider, SliderContainer } from 'vtex.slider'\nimport { Container } from 'vtex.store-components'\nimport { IconCaret } from 'vtex.store-icons'\nimport { useCssHandles } from 'vtex.css-handles'\n\nimport Banner, { Props as BannerProps } from './Banner'\nimport styles from './styles.css'\n\nconst GLOBAL_PAGES = global.__RUNTIME__ && [\n 'Internal URL',\n ...Object.keys(global.__RUNTIME__.pages),\n]\n\ninterface Props {\n /** Should change images automatically */\n autoplay?: boolean\n /** How long it should wait to change the banner in secs */\n autoplaySpeed: number | string | null\n /** Banners that will be displayed by the Carousel */\n banners: BannerProps[]\n /** Max height size of the banners */\n height?: number\n /** Set visibility of arrows */\n showArrows?: boolean\n /** Set visibility of dots */\n showDots?: boolean\n}\n\ninterface ArrowProps {\n orientation: string\n onClick: (event: React.MouseEvent<HTMLElement>) => void\n}\n\ninterface ArrowContainerProps {\n children: React.ReactNode\n}\n\nconst PER_PAGE = 1\nconst CSS_HANDLES = [\n 'arrow',\n 'arrowLeft',\n 'arrowRight',\n 'arrowsContainerWrapper',\n 'sliderRoot',\n 'sliderFrame',\n 'slide',\n 'activeDot',\n 'notActiveDot',\n 'containerDots',\n] as const\n\nconst Carousel = (props: Props) => {\n const {\n height = 420,\n autoplay = true,\n showDots = true,\n showArrows = true,\n autoplaySpeed = 5,\n banners: bannersProp,\n } = props\n const [currentSlide, setCurrentSlide] = useState(0)\n const handles = useCssHandles(CSS_HANDLES)\n\n if (!bannersProp?.length) {\n return null\n }\n\n const ArrowRender = ({ orientation, onClick }: ArrowProps) => {\n const containerClasses = classnames(handles.arrow, 'pointer z-1 flex', {\n [handles.arrowLeft]: orientation === 'left',\n [handles.arrowRight]: orientation === 'right',\n })\n return (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div\n className={containerClasses}\n onClick={onClick}\n role=\"button\"\n tabIndex={0}\n >\n <IconCaret orientation={orientation} thin size={20} />\n </div>\n )\n }\n\n const ArrowContainerRender = ({ children }: ArrowContainerProps) => {\n const wrapperClasses = classnames(\n handles.arrowsContainerWrapper,\n 'w-100 h-100 absolute left-0 top-0 flex justify-center'\n )\n const containerClasses = classnames(\n styles.arrowsContainer,\n 'w-100 h-100 mw9 flex-ns justify-between items-center dn-s'\n )\n\n return (\n <div className={wrapperClasses}>\n <Container className={containerClasses}>{children}</Container>\n </div>\n )\n }\n\n const banners: BannerProps[] = bannersProp.filter(\n banner => banner && (banner.mobileImage || banner.image)\n )\n\n const handleNextSlide = () => {\n const nextSlide =\n ((currentSlide + 1 - PER_PAGE) % banners.length) + PER_PAGE\n setCurrentSlide(nextSlide)\n }\n\n const autoplayInterval = autoplaySpeed\n ? typeof autoplaySpeed === 'string'\n ? parseFloat(autoplaySpeed)\n : autoplaySpeed\n : 0\n\n return (\n <SliderContainer\n autoplay={autoplay && autoplayInterval > 0}\n autoplayInterval={autoplayInterval * 1000}\n pauseOnHover\n onNextSlide={handleNextSlide}\n className={styles.container}\n >\n <Slider\n loop\n classes={{\n root: handles.sliderRoot,\n sliderFrame: handles.sliderFrame,\n }}\n perPage={PER_PAGE}\n arrowRender={showArrows && ArrowRender}\n currentSlide={currentSlide}\n onChangeSlide={setCurrentSlide}\n arrowsContainerComponent={showArrows && ArrowContainerRender}\n duration={500}\n >\n {banners.map((banner, i) => (\n <Slide\n className={handles.slide}\n key={i}\n style={{ maxHeight: height }}\n sliderTransitionDuration={500}\n >\n <Banner height={height} {...banner} />\n </Slide>\n ))}\n </Slider>\n {showDots && (\n <Dots\n loop\n perPage={PER_PAGE}\n currentSlide={currentSlide}\n totalSlides={banners.length}\n onChangeSlide={setCurrentSlide}\n classes={{\n activeDot: classnames(handles.activeDot, 'bg-emphasis'),\n dot: classnames(styles.dot, 'mh2 mv0 pointer br-100'),\n notActiveDot: classnames(handles.notActiveDot, 'bg-muted-3'),\n root: classnames(handles.containerDots, 'bottom-0 pb4'),\n }}\n />\n )}\n </SliderContainer>\n )\n}\n\nCarousel.getSchema = () => {\n const internalRouteSchema = {\n customInternalURL: {\n description:\n 'admin/editor.carousel.bannerLink.custominternalurl.description',\n isLayout: false,\n title: 'admin/editor.carousel.bannerLink.custominternalurl.title',\n type: 'string',\n },\n page: {\n enum: GLOBAL_PAGES,\n isLayout: false,\n title: 'admin/editor.carousel.bannerLink.page.title',\n type: 'string',\n },\n params: {\n description: 'admin/editor.carousel.bannerLink.params.description',\n isLayout: false,\n title: 'admin/editor.carousel.bannerLink.params.title',\n type: 'string',\n },\n }\n\n const externalRouteSchema = {\n url: {\n isLayout: false,\n title: 'admin/editor.carousel.bannerLink.url.title',\n type: 'string',\n },\n }\n\n return {\n description: 'admin/editor.carousel.description',\n dependencies: {\n autoplay: {\n oneOf: [\n {\n properties: {\n autoplay: {\n enum: [true],\n },\n autoplaySpeed: {\n enum: ['2', '3', '4', '5', '6', '7', '8'],\n isLayout: false,\n title: 'admin/editor.carousel.autoplaySpeed.title',\n type: 'string',\n },\n },\n },\n ],\n },\n },\n properties: {\n banners: {\n items: {\n properties: {\n image: {\n default: '',\n title: 'admin/editor.carousel.banner.image.title',\n type: 'string',\n widget: {\n 'ui:widget': 'image-uploader',\n },\n },\n mobileImage: {\n default: '',\n title: 'admin/editor.carousel.banner.mobileImage.title',\n type: 'string',\n widget: {\n 'ui:widget': 'image-uploader',\n },\n },\n tabletImage: {\n default: '',\n title: 'admin/editor.carousel.banner.tabletImage.title',\n type: 'string',\n widget: {\n 'ui:widget': 'image-uploader',\n },\n },\n description: {\n default: '',\n title: 'admin/editor.carousel.banner.description.title',\n type: 'string',\n },\n externalRoute: {\n default: false,\n isLayout: false,\n title: 'admin/editor.carousel.banner.externalRoute.title',\n type: 'boolean',\n },\n },\n dependencies: {\n externalRoute: {\n oneOf: [\n {\n properties: {\n externalRoute: {\n enum: [false],\n },\n ...internalRouteSchema,\n },\n },\n {\n properties: {\n externalRoute: {\n enum: [true],\n },\n ...externalRouteSchema,\n },\n },\n ],\n },\n },\n title: 'admin/editor.carousel.banner.title',\n type: 'object',\n },\n minItems: 1,\n title: 'admin/editor.carousel.banners.title',\n type: 'array',\n },\n height: {\n default: 420,\n enum: [420, 440],\n isLayout: true,\n title: 'admin/editor.carousel.height.title',\n type: 'number',\n },\n showArrows: {\n default: true,\n isLayout: true,\n title: 'admin/editor.carousel.showArrows.title',\n type: 'boolean',\n },\n showDots: {\n default: true,\n isLayout: true,\n title: 'admin/editor.carousel.showDots.title',\n type: 'boolean',\n },\n autoplay: {\n default: true,\n isLayout: false,\n title: 'admin/editor.carousel.autoplay.title',\n type: 'boolean',\n },\n },\n title: 'admin/editor.carousel.title',\n type: 'object',\n }\n}\n\nexport default Carousel\n\n```" } ]
code_carousel_5b74c349
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/store/interfaces.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"carousel\": {\n \"component\": \"Carousel\"\n }\n}\n```" } ]
code_carousel_98fb61ca
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/typings/vtex.css-handles.d.ts from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.css-handles' {\n export const useCssHandles: any\n}\n\n```" } ]
code_carousel_16a82913
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/typings/vtex.store-components.d.ts from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.store-components' {\n export const Container\n export const Slider\n}\n\n```" } ]
code_carousel_10e32d35
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/typings/vtex.render-runtime.d.ts from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\n/* Typings for `render-runtime` */\ndeclare module 'vtex.render-runtime' {\n import { Component, ReactElement } from 'react'\n\n export interface NavigationOptions {\n page: string\n params?: any\n }\n\n export interface RuntimeProps {\n navigate: (options: NavigationOptions) => void\n hints: {\n mobile: boolean\n desktop: boolean\n }\n }\n\n export interface RenderContextProps {\n runtime: RuntimeProps\n }\n\n export interface LinkProps {\n onClick?: (event: any) => void\n params?: object | null\n page?: string\n className?: string\n to?: string\n }\n\n export const ExtensionPoint: ReactElement\n export const Helmet: ReactElement\n export const Link: React.FunctionComponent<LinkProps>\n export const NoSSR: ReactElement\n export const RenderContextConsumer: ReactElement\n export const canUseDOM: boolean\n export const useRuntime: () => RuntimeProps\n export const withRuntimeContext: <TOriginalProps extends {}>(\n Component: ComponentType<TOriginalProps & RenderContextProps>\n ) => ComponentType<TOriginalProps>\n\n export const withSession: <TOriginalProps extends {}>(\n Component: ComponentType<TOriginalProps & RenderContextProps>\n ) => ComponentType<TOriginalProps>\n\n export const buildCacheLocator = (\n app: string,\n type: string,\n cacheId: string\n ) => string\n\n interface RenderComponent<P = {}, S = {}> extends Component<P, S> {\n getCustomMessages?: (locale: string) => any\n schema: ComponentSchema\n getSchema?: (a: any, b: ?any) => ComponentSchema\n uiSchema: UISchema\n }\n\n export interface ComponentsRegistry {\n [component: string]: RenderComponent<any, any>\n }\n\n export interface Window extends Window {\n __RENDER_7_COMPONENTS__: ComponentsRegistry\n }\n\n let global: Window\n}\n\n```" } ]
code_carousel_49c5dce4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/typings/vtex.store-icons.d.ts from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.store-icons' {\n export const IconCaret: ReactElement\n}\n\n```" } ]
code_carousel_bebcbd9b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/typings/styles.d.ts from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.css' {\n const css: any\n export default css\n}\n\n```" } ]
code_carousel_cc07216a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/typings/vtex.slider.d.ts from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.slider' {\n export const Slider: ReactElement\n export const Slide: ReactElement\n export const SliderContainer: ReactElement\n export const Dots: ReactElement\n}\n\n```" } ]
code_carousel_e7cbabd6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of carousel/react/__tests__/Carousel.test.jsx from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```jsx\n/* eslint-env jest */\nimport React from 'react'\nimport { range, map, forEach, pluck } from 'ramda'\nimport { render } from '@vtex/test-tools/react'\n\nimport Carousel from '../Carousel'\n\ndescribe('Carousel component', () => {\n const renderComponent = customProps => {\n const props = {\n height: 440,\n mobileHeight: 339,\n showArrows: true,\n showDots: true,\n autoplay: true,\n autoplaySpeed: 4,\n numberOfBanners: 3,\n banners: [\n {\n image:\n 'https://raw.githubusercontent.com/vtex-apps/carousel/master/images/banners-01.png',\n externalRoute: true,\n description: 'banner1',\n url: 'banner1-url',\n },\n {\n image:\n 'https://raw.githubusercontent.com/vtex-apps/carousel/master/images/banners-02.png',\n externalRoute: true,\n description: 'banner2',\n url: 'banner2-url',\n },\n {\n image:\n 'https://raw.githubusercontent.com/vtex-apps/carousel/master/images/banners-03.png',\n externalRoute: true,\n description: 'banner3',\n url: 'banner3-url',\n },\n ],\n ...customProps,\n }\n\n return render(<Carousel {...props} />)\n }\n\n it('should be rendered', () => {\n const { asFragment } = renderComponent()\n expect(asFragment()).toBeDefined()\n })\n\n it('should match snapshot', () => {\n const { asFragment } = renderComponent()\n expect(asFragment()).toMatchSnapshot()\n })\n\n it('should render items', () => {\n const banner = id => ({\n image: `image${id}`,\n externalRoute: true,\n description: `description${id}`,\n url: `url${id}`,\n })\n const banners = map(banner, range(0, 10))\n\n const { container, getByAltText } = renderComponent({\n numberOfBanners: banners.length,\n banners,\n })\n\n const itensContainer = container.querySelectorAll('.slider-container-mock')\n expect(itensContainer).toHaveLength(1)\n\n const items = container.querySelectorAll('.slide-mock')\n expect(items).toHaveLength(banners.length)\n\n // The URLs rendered should be the ones in the banners\n const urls = [...container.querySelectorAll('a')].map(a =>\n a.getAttribute('href')\n )\n expect(urls).toEqual(pluck('url', banners))\n\n // The Images URLs rendered should be the ones in the banners\n const images = [...container.querySelectorAll('img')].map(img =>\n img.getAttribute('src')\n )\n expect(images).toEqual(pluck('image', banners))\n\n // The alts rendered should be the ones in the banners\n const descriptions = pluck('description', banners)\n forEach(description => {\n getByAltText(description)\n }, descriptions)\n })\n})\n\n```" } ]
code_product-price_2f800dab
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/it-IT.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Prezzo pagato in un'unica soluzione: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Risparmio per il pagamento in un'unica soluzione: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Risparmia {savingsValue}\",\n \"store/installments.default\": \"Fino a {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} di interessi} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Venduto da: {sellerName}\",\n \"admin/list-price.description\": \"Valori disponibili per l'interpolazione: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Prezzo di listino\",\n \"admin/seller-name.title\": \"Nome venditore\",\n \"admin/seller-name.description\": \"Valori disponibili per l'interpolazione: '{sellerName}'\",\n \"admin/selling-price.description\": \"Valori disponibili per l'interpolazione: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}'\",\n \"admin/selling-price.title\": \"Prezzo di vendita\",\n \"admin/spot-price.description\": \"Valori disponibili per l'interpolazione: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Prezzo pagato in un'unica soluzione\",\n \"admin/spot-price-savings.description\": \"Valori disponibili per l'interpolazione: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Risparmio per il pagamento in un'unica soluzione\",\n \"admin/savings.description\": \"Valori disponibili per l'interpolazione: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Risparmio\",\n \"admin/installments.description\": \"Valori disponibili per l'interpolazione: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Rate\",\n \"admin/installments-list-item.title\": \"Rate\",\n \"admin/list-price-range.title\": \"Variazione del prezzo di listino\",\n \"admin/list-price-range-message.description\": \"Messaggio da mostrare quando c'è una differenza di prezzo tra gli SKU.\\nValori disponibili per l'interpolazione: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Prezzo di listino (Variazione)\",\n \"admin/list-price-range-no-range-message.description\": \"Messaggio da mostrare quando non c'è una differenza di prezzo tra gli SKU.\\nValori disponibili per l'interpolazione: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Prezzo di listino (Nessuna variazione)\",\n \"admin/selling-price-range.title\": \"Variazione del prezzo di vendita\",\n \"admin/selling-price-range-message.description\": \"Messaggio da mostrare quando c'è una differenza di prezzo tra gli SKU.\\nValori disponibili per l'interpolazione: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Prezzo di vendita (Variazione)\",\n \"admin/selling-price-range-no-range-message.description\": \"Messaggio da mostrare quando non c'è una differenza di prezzo tra gli SKU.\\nValori disponibili per l'interpolazione: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Prezzo di vendita (Nessuna variazione)\"\n}\n\n```" } ]
code_product-price_07262b8d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/th-TH.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"ราคาจ่ายเต็ม: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"บันทึกโดยการจ่ายเต็ม: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"ประหยัด {savingsValue}\",\n \"store/installments.default\": \"นานสูงสุด {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} ของดอกเบี้ย} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"ขายโดย: {sellerName}\",\n \"admin/list-price.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"ราคาตามบัญชีราคา\",\n \"admin/seller-name.title\": \"ชื่อผู้ขาย\",\n \"admin/seller-name.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{sellerName}'\",\n \"admin/selling-price.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"ราคาขาย\",\n \"admin/spot-price.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{spotPrice}'\",\n \"admin/spot-price.title\": \"ราคาจ่ายเต็ม\",\n \"admin/spot-price-savings.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"บันทึกโดยการจ่ายเต็ม\",\n \"admin/savings.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"ประหยัดเงิน\",\n \"admin/installments.description\": \"ค่าที่มีสำหรับการประมาณค่าในช่วง: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"การผ่อนชำระ\",\n \"admin/installments-list-item.title\": \"การผ่อนชำระ\",\n \"admin/list-price-range.title\": \"ช่วงราคาตามบัญชีราคา\",\n \"admin/list-price-range-message.description\": \"ข้อความจะแสดงเมื่อมีความแตกต่างในราคาาะหว่าง SKU ต่าง ๆ\\nค่าที่มีสำหรับการประมาณค่าในช่วง: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"ราคาตามบัญชีราคา (ช่วงราคา)\",\n \"admin/list-price-range-no-range-message.description\": \"ข้อความจะแสดงเมื่อไม่มีความแตกต่างในราคาาะหว่าง SKU ต่าง ๆ\\nค่าที่มีสำหรับการประมาณค่าในช่วง: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"ราคาตามบัญชีราคา (ไม่มีช่วงราคา)\",\n \"admin/selling-price-range.title\": \"ช่วงราคาราคาขาย\",\n \"admin/selling-price-range-message.description\": \"ข้อความจะแสดงเมื่อมีความแตกต่างในราคาาะหว่าง SKU ต่าง ๆ\\nค่าที่มีสำหรับการประมาณค่าในช่วง: ''{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"ราคาขาย (ช่วงราคา)\",\n \"admin/selling-price-range-no-range-message.description\": \"ข้อความจะแสดงเมื่อไม่มีความแตกต่างในราคาาะหว่าง SKU ต่าง ๆ\\nค่าที่มีสำหรับการประมาณค่าในช่วง: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"ราคาขาย (ไม่มีช่วงราคา)\"\n}\n\n```" } ]
code_product-price_677ab048
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/ko-KR.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"전액 결제: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"전액 결제하여 절약됨: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"{savingsValue} 저장\",\n \"store/installments.default\": \"Up to {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} of interest} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"판매자: {sellerName}\",\n \"admin/list-price.description\": \"보간에 사용할 수 있는 값: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"정가\",\n \"admin/seller-name.title\": \"판매자 이름\",\n \"admin/seller-name.description\": \"보간에 사용할 수 있는 값: '{sellerName}'\",\n \"admin/selling-price.description\": \"보간에 사용할 수 있는 값: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}'\",\n \"admin/selling-price.title\": \"판매가\",\n \"admin/spot-price.description\": \"보간에 사용할 수 있는 값: '{spotPrice}'\",\n \"admin/spot-price.title\": \"전액 결제 가격\",\n \"admin/spot-price-savings.description\": \"보간에 사용할 수 있는 값: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"전액 결제 시 절약되는 비용\",\n \"admin/savings.description\": \"보간에 사용할 수 있는 값: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"절감액\",\n \"admin/installments.description\": \"보간에 사용할 수 있는 값: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"할부\",\n \"admin/installments-list-item.title\": \"할부\",\n \"admin/list-price-range.title\": \"정가 범위\",\n \"admin/list-price-range-message.description\": \"SKU 간 가격 차이가 있을 때 표시할 메시지입니다. 보간에 사용할 수 있는 값: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"정가(범위)\",\n \"admin/list-price-range-no-range-message.description\": \"SKU 간 가격 차이가 없을 때 표시할 메시지입니다. 보간에 사용할 수 있는 값: '{listPriceValue}, {listPriceWithTax}\",\n \"admin/list-price-range-no-range-message.title\": \"정가(범위 없음)\",\n \"admin/selling-price-range.title\": \"판매가 범위\",\n \"admin/selling-price-range-message.description\": \"SKU 간 가격 차이가 있을 때 표시할 메시지입니다. 보간에 사용할 수 있는 값: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"판매 가격(범위)\",\n \"admin/selling-price-range-no-range-message.description\": \"SKU 간 가격 차이가 없을 때 표시할 메시지입니다. 보간에 사용할 수 있는 값: '{sellingPriceValue}, {sellingPriceWithTax}\",\n \"admin/selling-price-range-no-range-message.title\": \"판매 가격(범위 없음)\"\n}\n\n```" } ]
code_product-price_deeeb2fa
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/nn-NO.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Fullt betalt pris: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Spart ved å betale hele beløpet: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Spar {savingsValue}\",\n \"store/installments.default\": \"Opptil {installmentsNumber}x {installmentValue}{hasInterest, select, true {{interestRate} av rente} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Solgt av: {sellerName}\",\n \"admin/list-price.description\": \"Verdier tilgjengelig for tillegg: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Listepris\",\n \"admin/seller-name.title\": \"Selgers navn\",\n \"admin/seller-name.description\": \"Verdier tilgjengelig for tillegg: '{sellerName}'\",\n \"admin/selling-price.description\": \"Verdier tilgjengelig for tillegg: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Salgspris\",\n \"admin/spot-price.description\": \"Verdier tilgjengelig for tillegg: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Fullt betalt pris\",\n \"admin/spot-price-savings.description\": \"Verdier tilgjengelig for tillegg: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Spart ved å betale hele beløpet\",\n \"admin/savings.description\": \"Verdier tilgjengelig for tillegg: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Rabatt\",\n \"admin/installments.description\": \"Verdier tilgjengelig for tillegg: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Avdrag\",\n \"admin/installments-list-item.title\": \"Avdrag\",\n \"admin/list-price-range.title\": \"Listprisområde\",\n \"admin/list-price-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Listepris (område)\",\n \"admin/list-price-range-no-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Listepris (ikke noe område)\",\n \"admin/selling-price-range.title\": \"Salgsprisområde\",\n \"admin/selling-price-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Salgspris (område)\",\n \"admin/selling-price-range-no-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Salgspris (ikke noe område)\"\n}\n\n```" } ]
code_product-price_f70ebc8e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/ja-JP.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"一括払いの価格:{spotPriceValue}\",\n \"store/spot-price-savings.default\": \"一括払いによる割引:{spotPriceSavingsValue}\",\n \"store/savings.default\": \"保存 {savingsValue}\",\n \"store/installments.default\": \"最大 {installmentsNumber}x {installmentValue}{ hasInterest, select, true {, {interestRate} の利息} false {利息なし}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"販売者: {sellerName}\",\n \"admin/list-price.description\": \"補間に利用できる値: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"希望小売価格\",\n \"admin/seller-name.title\": \"販売者名\",\n \"admin/seller-name.description\": \"補間に利用できる値: '{sellerName}'\",\n \"admin/selling-price.description\": \"補間に利用できる値: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}'\",\n \"admin/selling-price.title\": \"販売価格\",\n \"admin/spot-price.description\": \"補間に利用できる値: '{spotPrice}'\",\n \"admin/spot-price.title\": \"一括払いの価格\",\n \"admin/spot-price-savings.description\": \"補間に利用できる値: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"一括払いによる割引\",\n \"admin/savings.description\": \"補間に利用できる値: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"保存\",\n \"admin/installments.description\": \"補間に利用できる値: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"分割払い\",\n \"admin/installments-list-item.title\": \"分割払い\",\n \"admin/list-price-range.title\": \"希望小売価格の範囲\",\n \"admin/list-price-range-message.description\": \"SKU の間の価格に相違がある時に表示されるメッセージです。\\n補間に利用できる値: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"希望小売価格 (範囲)\",\n \"admin/list-price-range-no-range-message.description\": \"SKU の間の価格に相違がない時に表示されるメッセージです。\\n補間に利用できる値: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"希望小売価格 (範囲なし)\",\n \"admin/selling-price-range.title\": \"販売価格の範囲\",\n \"admin/selling-price-range-message.description\": \"SKU の間の価格に相違がある時に表示されるメッセージです。\\n補間に利用できる値: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"販売価格 (範囲)\",\n \"admin/selling-price-range-no-range-message.description\": \"SKU の間の価格に相違がない時に表示されるメッセージです。\\n補間に利用できる値: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"販売価格 (範囲なし)\"\n}\n\n```" } ]
code_product-price_94b811a7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/bg-BG.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Цена при плащане в пълен размер: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Спестено чрез плащане в пълен размер: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Спестете {savingsValue}\",\n \"store/installments.default\": \"До {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} лихва} false { без лихва}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Продадено от: {sellerName}\",\n \"admin/list-price.description\": \"Стойности, налични за интерполиране: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Цена в инвентара\",\n \"admin/seller-name.title\": \"Име на продавача\",\n \"admin/seller-name.description\": \"Стойности, налични за интерполиране: '{sellerName}'\",\n \"admin/selling-price.description\": \"Стойности, налични за интерполиране: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Продажна цена\",\n \"admin/spot-price.description\": \"Стойности, налични за интерполиране: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Цена при плащане в пълен размер\",\n \"admin/spot-price-savings.description\": \"Стойности, налични за интерполиране: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Спестено чрез плащане в пълен размер\",\n \"admin/savings.description\": \"Стойности, налични за интерполиране: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Спестявания\",\n \"admin/installments.description\": \"Стойности, налични за интерполиране: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Вноски\",\n \"admin/installments-list-item.title\": \"Вноски\",\n \"admin/list-price-range.title\": \"Диапазон на цените в каталога\",\n \"admin/list-price-range-message.description\": \"Съобщение, което да се показва, когато има разлика в цените между различните ИЕ. Стойности, налични за интерполиране: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Цени в каталога (диапазон)\",\n \"admin/list-price-range-no-range-message.description\": \"Съобщение, което да се показва, когато няма разлика в цените между различните ИЕ. Стойности, налични за интерполиране: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Цени в каталога (без диапазон)\",\n \"admin/selling-price-range.title\": \"Диапазон на продажна цена\",\n \"admin/selling-price-range-message.description\": \"Съобщение, което да се показва, когато има разлика в цените между различните ИЕ. Стойности, налични за интерполиране: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Продажна цена (диапазон)\",\n \"admin/selling-price-range-no-range-message.description\": \"Съобщение, което да се показва, когато няма разлика в цените между различните ИЕ. Стойности, налични за интерполиране: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Продажна цена (без диапазон)\"\n}\n\n```" } ]
code_product-price_b4b599ad
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/id-ID.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Harga bayar penuh: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Hemat dengan membayar penuh: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Hemat {savingsValue}\",\n \"store/installments.default\": \"Hingga {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} bunga} false {tanpa bunga}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Dijual oleh: {sellerName}\",\n \"admin/list-price.description\": \"Nilai tersedia untuk interpolasi: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Harga Eceran\",\n \"admin/seller-name.title\": \"Nama Penjual\",\n \"admin/seller-name.description\": \"Nilai tersedia untuk interpolasi: '{sellerName}'\",\n \"admin/selling-price.description\": \"Nilai tersedia untuk interpolasi: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Harga Jual\",\n \"admin/spot-price.description\": \"Nilai tersedia untuk interpolasi: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Harga Bayar Penuh\",\n \"admin/spot-price-savings.description\": \"Nilai tersedia untuk interpolasi: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Hemat dengan Membayar Penuh\",\n \"admin/savings.description\": \"Nilai tersedia untuk interpolasi: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Penghematan\",\n \"admin/installments.description\": \"Nilai tersedia untuk interpolasi: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Cicilan\",\n \"admin/installments-list-item.title\": \"Cicilan\",\n \"admin/list-price-range.title\": \"Rentang Harga Eceran\",\n \"admin/list-price-range-message.description\": \"Pesan akan ditampilkan saat ada perbedaan harga antara SKU.\\nNilai tersedia untuk interpolasi: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Harga Eceran (Rentang)\",\n \"admin/list-price-range-no-range-message.description\": \"Pesan akan ditampilkan saat tidak ada perbedaan harga antara SKU.\\nNilai tersedia untuk interpolasi: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Harga Eceran (Tanpa Rentang)\",\n \"admin/selling-price-range.title\": \"Rentang Harga Jual\",\n \"admin/selling-price-range-message.description\": \"Pesan akan ditampilkan saat ada perbedaan harga antara SKU.\\nNilai tersedia untuk interpolasi: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Harga Jual (Rentang)\",\n \"admin/selling-price-range-no-range-message.description\": \"Pesan akan ditampilkan saat tidak ada perbedaan harga antara SKU.\\nNilai tersedia untuk interpolasi: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Harga Eceran (Tanpa Rentang)\"\n}\n\n```" } ]
code_product-price_96fb1b28
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/pt.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Preço à vista: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Economia de preço à vista: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Economize {savingsValue}\",\n \"store/installments.default\": \"Em até {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} de juros} false { sem juros}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue}–{maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue}–{maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Vendido por: {sellerName}\",\n \"admin/list-price.description\": \"Valores disponíveis para interpolação: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Preço de lista\",\n \"admin/seller-name.title\": \"Nome do seller\",\n \"admin/seller-name.description\": \"Valores disponíveis para interpolação: '{sellerName}'\",\n \"admin/selling-price.description\": \"Valores disponíveis para interpolação: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Preço de venda\",\n \"admin/spot-price.description\": \"Valores disponíveis para interpolação: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Preço à vista\",\n \"admin/spot-price-savings.description\": \"Valores disponíveis para interpolação: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Economia de preço à vista\",\n \"admin/savings.description\": \"Valores disponíveis para interpolação: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Economia\",\n \"admin/installments.description\": \"Valores disponíveis para interpolação: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Parcelamento\",\n \"admin/installments-list-item.title\": \"Parcelamento\",\n \"admin/list-price-range.title\": \"Faixa de preço de lista\",\n \"admin/list-price-range-message.description\": \"Mensagem a ser mostrada quando houver diferença de preço entre SKUs.\\nValores disponíveis para interpolação: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Preço de lista (faixa)\",\n \"admin/list-price-range-no-range-message.description\": \"Mensagem a ser mostrada quando não houver diferença de preço entre SKUs.\\nValores disponíveis para interpolação: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Preço de lista (sem faixa)\",\n \"admin/selling-price-range.title\": \"Faixa de preço de venda\",\n \"admin/selling-price-range-message.description\": \"Mensagem a ser mostrada quando houver diferença de preço entre SKUs.\\nValores disponíveis para interpolação: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Preço de venda (faixa)\",\n \"admin/selling-price-range-no-range-message.description\": \"Mensagem a ser mostrada quando não houver diferença de preço entre SKUs.\\nValores disponíveis para interpolação: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Preço de venda (sem faixa)\",\n \"store/product-price.price-savings.aria-label\": \"Preço de {previousPriceValue} por {newPriceValue}\"\n}\n```" } ]
code_product-price_99113c4f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/ar-SA.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"السعر المدفوع بالكامل: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"تم التوفير عن طريق الدفع بالكامل: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"حفظ {savingsValue}\",\n \"store/installments.default\": \"لغاية {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} من الفوائد} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"تم بيعها بواسطة: {sellerName}\",\n \"admin/list-price.description\": \"القيم المتاحة للاستيفاء: '{listPriceValue}، {listPriceWithTax}، {taxPercentage}'\",\n \"admin/list-price.title\": \"قائمة الأسعار\",\n \"admin/seller-name.title\": \"اسم البائع\",\n \"admin/seller-name.description\": \"القيم المتاحة للاستقطاب: '{sellerName}'\",\n \"admin/selling-price.description\": \"القيم المتاحة للاستكشاف: '{sellingPriceValue}، {sellingPriceWithTax}، {taxPercentage}، {hasListPrice}، {hasMeasurementUnit}، {measurementUnit}، {hasUnitMultiplier}، {unitMultiplier}'\",\n \"admin/selling-price.title\": \"سعر البيع\",\n \"admin/spot-price.description\": \"القيم المتاحة للاستقطاب: '{spotPrice}'\",\n \"admin/spot-price.title\": \"السعر المدفوع بالكامل\",\n \"admin/spot-price-savings.description\": \"القيم المتاحة للاستيفاء: '{previousPriceValue}، {newSpotPriceValue}، {spotPriceSavingsValue}، {spotPriceSavingsWithTax}، {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"تم التوفير عن طريق الدفع بالكامل\",\n \"admin/savings.description\": \"القيم المتاحة للاستيفاء: '{newPriceValue}، {previousPriceValue}، {savingsValue}، {savingsPercentage}، {savingsWithTax}'\",\n \"admin/savings.title\": \"المدخرات\",\n \"admin/installments.description\": \"القيم المتاحة للاستيفاء: '{installmentsNumber}، {installmentValue}، {installmentsTotalValue}، {interestRate}، {hasInterest}، {paymentSystemName}'\",\n \"admin/installments.title\": \"الدفعات\",\n \"admin/installments-list-item.title\": \"الدفعات\",\n \"admin/list-price-range.title\": \"قائمة نطاق السعر\",\n \"admin/list-price-range-message.description\": \"رسالة تظهر عندما يكون هناك فرق في السعر بين SKU.\\nالقيم المتاحة للاستكشاف: '{minPriceValue}، {maxPriceValue}، {minPriceWithTax}، {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"نطاق الأسعار (الصنف)\",\n \"admin/list-price-range-no-range-message.description\": \"رسالة تظهر عندما لا يكون هناك فرق في السعر بين SKU.\\nالقيم المتاحة للاستكشاف: '{listPriceValue}، {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"نطاق الأسعار (دون صنف)\",\n \"admin/selling-price-range.title\": \"نطاق سعر البيع\",\n \"admin/selling-price-range-message.description\": \"رسالة تظهر عندما يكون هناك فرق في السعر بين SKU.\\nالقيم المتاحة للاستكشاف: '{minPriceValue}، {maxPriceValue}، {minPriceWithTax}، {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"سعر البيع (النطاق)\",\n \"admin/selling-price-range-no-range-message.description\": \"رسالة تظهر عندما لا يكون هناك فرق في السعر بين SKU.\\nالقيم المتاحة للاستكشاف: '{sellingPriceValue}، {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"سعر البيع (بدون نطاق)\"\n}\n\n```" } ]
code_product-price_e1106d71
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/en.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Paid-in-full price: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Saved by paying in full: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Save {savingsValue}\",\n \"store/installments.default\": \"Up to {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} interest} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Sold by: {sellerName}\",\n \"admin/list-price.description\": \"Values available for interpolation: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"List Price\",\n \"admin/seller-name.title\": \"Seller Name\",\n \"admin/seller-name.description\": \"Values available for interpolation: '{sellerName}'\",\n \"admin/selling-price.description\": \"Values available for interpolation: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Selling Price\",\n \"admin/spot-price.description\": \"Values available for interpolation: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Paid-in-full Price\",\n \"admin/spot-price-savings.description\": \"Values available for interpolation: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Saved by Paying in Full\",\n \"admin/savings.description\": \"Values available for interpolation: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Savings\",\n \"admin/installments.description\": \"Values available for interpolation: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Installments\",\n \"admin/installments-list-item.title\": \"Installments\",\n \"admin/list-price-range.title\": \"List Price Range\",\n \"admin/list-price-range-message.description\": \"Message shown when there is a price difference between SKUs.\\nValues available for interpolation: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"List Price (Range)\",\n \"admin/list-price-range-no-range-message.description\": \"Message shown when there isn't a price difference between SKUs.\\nValues available for interpolation: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"List Price (No Range)\",\n \"admin/selling-price-range.title\": \"Selling Price Range\",\n \"admin/selling-price-range-message.description\": \"Message shown when there is a price difference between SKUs.\\nValues available for interpolation: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Selling Price (Range)\",\n \"admin/selling-price-range-no-range-message.description\": \"Message shown when there isn't a price difference between SKUs.\\nValues available for interpolation: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Selling Price (No Range)\",\n \"store/product-price.price-savings.aria-label\": \"Price changed from {previousPriceValue} to {newPriceValue}\"\n}\n\n```" } ]
code_product-price_f8662a9d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/no-NO.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Fullt betalt pris: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Spart ved å betale hele beløpet: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Spar {savingsValue}\",\n \"store/installments.default\": \"Opptil {installmentsNumber}x {installmentValue}{hasInterest, select, true {{interestRate} av rente} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Solgt av: {sellerName}\",\n \"admin/list-price.description\": \"Verdier tilgjengelig for tillegg: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Listepris\",\n \"admin/seller-name.title\": \"Selgers navn\",\n \"admin/seller-name.description\": \"Verdier tilgjengelig for tillegg: '{sellerName}'\",\n \"admin/selling-price.description\": \"Verdier tilgjengelig for tillegg: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Salgspris\",\n \"admin/spot-price.description\": \"Verdier tilgjengelig for tillegg: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Fullt betalt pris\",\n \"admin/spot-price-savings.description\": \"Verdier tilgjengelig for tillegg: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Spart ved å betale hele beløpet\",\n \"admin/savings.description\": \"Verdier tilgjengelig for tillegg: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Rabatt\",\n \"admin/installments.description\": \"Verdier tilgjengelig for tillegg: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Avdrag\",\n \"admin/installments-list-item.title\": \"Avdrag\",\n \"admin/list-price-range.title\": \"Listprisområde\",\n \"admin/list-price-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Listepris (område)\",\n \"admin/list-price-range-no-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Listepris (ikke noe område)\",\n \"admin/selling-price-range.title\": \"Salgsprisområde\",\n \"admin/selling-price-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Salgspris (område)\",\n \"admin/selling-price-range-no-range-message.description\": \"Melding som vises når det er en prisforskjell mellom SKU-ene.\\nVerdier tilgjengelige for tillegg: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Salgspris (ikke noe område)\"\n}\n\n```" } ]
code_product-price_f20e4b40
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/ro-RO.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Prețul plătit integral: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Economisit prin plata integrală: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Economisește {savingsValue}\",\n \"store/installments.default\": \"Până la {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} of interest} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Vândut de: {sellerName}\",\n \"admin/list-price.description\": \"Valori disponibile pentru interpolare: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Preț de listă\",\n \"admin/seller-name.title\": \"Denumire vânzător\",\n \"admin/seller-name.description\": \"Valori disponibile pentru interpolare: '{sellerName}'\",\n \"admin/selling-price.description\": \"Valori disponibile pentru interpolare: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}'\",\n \"admin/selling-price.title\": \"Preț de vânzare\",\n \"admin/spot-price.description\": \"Valori disponibile pentru interpolare: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Preț plătit integral\",\n \"admin/spot-price-savings.description\": \"Valori disponibile pentru interpolare: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Economisit prin plata integrală\",\n \"admin/savings.description\": \"Valori disponibile pentru interpolare: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Economii\",\n \"admin/installments.description\": \"Valori disponibile pentru interpolare: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Rate\",\n \"admin/installments-list-item.title\": \"Rate\",\n \"admin/list-price-range.title\": \"Intervalul prețului de listă\",\n \"admin/list-price-range-message.description\": \"Mesaj de afișat atunci când există o diferență de preț între SKU-uri. \\nValori disponibile pentru interpolare: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Preț de listă (Interval)\",\n \"admin/list-price-range-no-range-message.description\": \"Mesaj de afișat atunci când nu există o diferență de preț între SKU-uri. \\nValori disponibile pentru interpolare: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Preț de listă (Fără interval)\",\n \"admin/selling-price-range.title\": \"Interval preț de vânzare\",\n \"admin/selling-price-range-message.description\": \"Mesaj de afișat atunci când există o diferență de preț între SKU-uri. \\nValori disponibile pentru interpolare: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Preț de vânzare (Interval)\",\n \"admin/selling-price-range-no-range-message.description\": \"Mesaj de afișat atunci când nu există o diferență de preț între SKU-uri. \\nValori disponibile pentru interpolare: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Preț de vânzare (Fără interval)\"\n}\n\n```" } ]
code_product-price_05a823ec
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/de-DE.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Preis bei Einmalzahlung: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Ersparnis bei Einmalzahlung: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Spare {savingsValue}\",\n \"store/installments.default\": \"Bis zu {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} Zinsen} false { zinsfrei}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Verkauft von: {sellerName}\",\n \"admin/list-price.description\": \"Verfügbare Werte für Interpolation: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Listenpreis\",\n \"admin/seller-name.title\": \"Verkäufer\",\n \"admin/seller-name.description\": \"Verfügbare Werte für Interpolation: '{sellerName}'\",\n \"admin/selling-price.description\": \"Verfügbare Werte für Interpolation: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Verkaufspreis\",\n \"admin/spot-price.description\": \"Verfügbare Werte für Interpolation: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Preis bei Einmalzahlung\",\n \"admin/spot-price-savings.description\": \"Verfügbare Werte für Interpolation: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Ersparnis bei Einmalzahlung\",\n \"admin/savings.description\": \"Verfügbare Werte für Interpolation: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Ersparnis\",\n \"admin/installments.description\": \"Verfügbare Werte für Interpolation: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Ratenzahlung\",\n \"admin/installments-list-item.title\": \"Ratenzahlung\",\n \"admin/list-price-range.title\": \"Listenpreis (Bereich)\",\n \"admin/list-price-range-message.description\": \"Nachricht, die angezeigt wird, wenn es eine Preisdifferenz zwischen den SKUs gibt.\\nVerfügbare Werte für Interpolation: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Listenpreis (Spektrum)\",\n \"admin/list-price-range-no-range-message.description\": \"Nachricht, die angezeigt wird, wenn es keinen Preisunterschied zwischen den SKUs gibt.\\nWerte für Interpolation: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Listenpreis (ohne Bereich)\",\n \"admin/selling-price-range.title\": \"Verkaufspreis (Bereich)\",\n \"admin/selling-price-range-message.description\": \"Nachricht, die angezeigt wird, wenn es eine Preisdifferenz zwischen den SKUs gibt.\\nVerfügbare Werte für Interpolation: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Verkaufspreis (Spektrum)\",\n \"admin/selling-price-range-no-range-message.description\": \"Nachricht, die angezeigt wird, wenn es keinen Preisunterschied zwischen den SKUs gibt.\\nWerte für Interpolation: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Verkaufspreis (ohne Bereich)\"\n}\n```" } ]
code_product-price_03e0f201
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/fr-FR.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Prix payé en intégralité : {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Économies réalisées grâce au paiement intégral : {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Sauvegarder {savingsValue}\",\n \"store/installments.default\": \"Jusqu’à {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} of interest} false { interest-free}}\\\"\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Vendu par : {sellerName}\",\n \"admin/list-price.description\": \"Valeurs disponibles pour l’interpolation : '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Liste de prix\",\n \"admin/seller-name.title\": \"Nom du vendeur\",\n \"admin/seller-name.description\": \"Valeurs disponibles pour l'interpolation : '{sellerName}'\",\n \"admin/selling-price.description\": \"Valeurs disponibles pour l’interpolation : '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}'\",\n \"admin/selling-price.title\": \"Prix de vente\",\n \"admin/spot-price.description\": \"Valeurs disponibles pour l'interpolation : '{spotPrice}'\",\n \"admin/spot-price.title\": \"Prix payé en intégralité\",\n \"admin/spot-price-savings.description\": \"Valeurs disponibles pour l'interpolation : '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Économies réalisées grâce au paiement intégral\",\n \"admin/savings.description\": \"Valeurs disponibles pour l’interpolation : '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Économies\",\n \"admin/installments.description\": \"Valeurs disponibles pour l’interpolation : '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Versements\",\n \"admin/installments-list-item.title\": \"Versements\",\n \"admin/list-price-range.title\": \"Lister la gamme de prix\",\n \"admin/list-price-range-message.description\": \"Message à afficher lorsqu’il y a une différence de prix entre les SKU.\\nValeurs disponibles pour l’interpolation : '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Liste de prix (Gamme)\",\n \"admin/list-price-range-no-range-message.description\": \"Message à afficher lorsqu’il n’y a pas de différence de prix entre les SKU.\\nValeurs disponibles pour l’interpolation : \\\"{listPriceValue}, {listPriceWithTax}\\\"\",\n \"admin/list-price-range-no-range-message.title\": \"Lister de prix (Pas de gamme)\",\n \"admin/selling-price-range.title\": \"Gamme de prix de vente\",\n \"admin/selling-price-range-message.description\": \"Message à afficher lorsqu’il y a une différence de prix entre les SKU.\\nValeurs disponibles pour l’interpolation : '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Prix de vente (Gamme)\",\n \"admin/selling-price-range-no-range-message.description\": \"Message à afficher lorsqu’il n’y a pas de différence de prix entre les SKU.\\nValeurs disponibles pour l’interpolation : '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Prix de vente (Pas de gamme)\"\n}\n\n```" } ]
code_product-price_3deca5e5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/nl-NL.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Volledige prijs betaald: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Bespaard door volledig te betalen: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Bewaar {savingsValue}\",\n \"store/installments.default\": \"Tot {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} of interest} false { interest-free}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Verkocht door: {sellerName}\",\n \"admin/list-price.description\": \"Waarden beschikbaar voor interpolatie: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Lijstprijs\",\n \"admin/seller-name.title\": \"Naam van verkoper\",\n \"admin/seller-name.description\": \"Waarden beschikbaar voor interpolatie: '{sellerName}'\",\n \"admin/selling-price.description\": \"Waarden beschikbaar voor interpolatie: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}'\",\n \"admin/selling-price.title\": \"Verkoopprijs\",\n \"admin/spot-price.description\": \"Waarden beschikbaar voor interpolatie: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Betaald-in-volledige prijs\",\n \"admin/spot-price-savings.description\": \"Waarden beschikbaar voor interpolatie: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Bespaard door volledig te betalen\",\n \"admin/savings.description\": \"Waarden beschikbaar voor interpolatie: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Besparingen\",\n \"admin/installments.description\": \"Waarden beschikbaar voor interpolatie: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Termijnen\",\n \"admin/installments-list-item.title\": \"Termijnen\",\n \"admin/list-price-range.title\": \"Bereik prijslijst\",\n \"admin/list-price-range-message.description\": \"Bericht dat moet worden getoond wanneer er een prijsverschil is tussen de SKU's.\\nWaarden beschikbaar voor interpolatie: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Lijstprijs (bereik)\",\n \"admin/list-price-range-no-range-message.description\": \"Bericht die moet worden getoond wanneer er geen prijsverschil is tussen de SKU's.\\nWaarden beschikbaar voor interpolatie: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Lijstprijs (geen bereik)\",\n \"admin/selling-price-range.title\": \"Bereik verkoopprijs\",\n \"admin/selling-price-range-message.description\": \"Bericht dat moet worden weergegeven als er een prijsverschil is tussen de SKU's.\\nWaarden die beschikbaar zijn voor interpolatie: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Verkoopprijs (bereik)\",\n \"admin/selling-price-range-no-range-message.description\": \"Bericht dat wordt getoond wanneer er geen prijsverschil is tussen de SKU's.\\nWaarden beschikbaar voor interpolatie: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Verkoopprijs (geen bereik)\"\n}\n\n```" } ]
code_product-price_5762add0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/messages/es.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store/list-price.default\": \"{listPriceValue}\",\n \"store/selling-price.default\": \"{sellingPriceValue}\",\n \"store/spot-price.default\": \"Precio al contado: {spotPriceValue}\",\n \"store/spot-price-savings.default\": \"Ahorros por pago al contado: {spotPriceSavingsValue}\",\n \"store/savings.default\": \"Ahorra {savingsValue}\",\n \"store/installments.default\": \"Hasta {installmentsNumber}x {installmentValue}{hasInterest, select, true {, {interestRate} de interés} false { sin interés}}\",\n \"store/list-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/list-price-range-no-range-message.default\": \"{listPriceValue}\",\n \"store/selling-price-range-message.default\": \"{minPriceValue} - {maxPriceValue}\",\n \"store/selling-price-range-no-range-message.default\": \"{sellingPriceValue}\",\n \"store/seller-name.default\": \"Vendido por: {sellerName}\",\n \"admin/list-price.description\": \"Valores disponibles para interpolación: '{listPriceValue}, {listPriceWithTax}, {taxPercentage}'\",\n \"admin/list-price.title\": \"Precio de lista\",\n \"admin/seller-name.title\": \"Nombre del seller\",\n \"admin/seller-name.description\": \"Valores disponibles para interpolación: '{sellerName}'\",\n \"admin/selling-price.description\": \"Valores disponibles para interpolación: '{sellingPriceValue}, {sellingPriceWithTax}, {taxPercentage}, {hasListPrice}, {hasMeasurementUnit}, {measurementUnit}, {hasUnitMultiplier}, {unitMultiplier}'\",\n \"admin/selling-price.title\": \"Precio de venta\",\n \"admin/spot-price.description\": \"Valores disponibles para interpolación: '{spotPrice}'\",\n \"admin/spot-price.title\": \"Precio al contado\",\n \"admin/spot-price-savings.description\": \"Valores disponibles para interpolación: '{previousPriceValue}, {newSpotPriceValue}, {spotPriceSavingsValue}, {spotPriceSavingsWithTax}, {spotPriceSavingsPercentage}'\",\n \"admin/spot-price-savings.title\": \"Ahorro por pago al contado\",\n \"admin/savings.description\": \"Valores disponibles para interpolación: '{newPriceValue}, {previousPriceValue}, {savingsValue}, {savingsPercentage}, {savingsWithTax}'\",\n \"admin/savings.title\": \"Ahorros\",\n \"admin/installments.description\": \"Valores disponibles para interpolación: '{installmentsNumber}, {installmentValue}, {installmentsTotalValue}, {interestRate}, {hasInterest}, {paymentSystemName}'\",\n \"admin/installments.title\": \"Cuotas\",\n \"admin/installments-list-item.title\": \"Cuotas\",\n \"admin/list-price-range.title\": \"Rango del precio de lista\",\n \"admin/list-price-range-message.description\": \"Mensaje que se mostrará cuando haya una diferencia de precio entre los SKU.\\nValores disponibles para interpolación: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/list-price-range-message.title\": \"Precio de lista (rango)\",\n \"admin/list-price-range-no-range-message.description\": \"Mensaje que se mostrará cuando no haya una diferencia de precio entre los SKU. Valores disponibles para interpolación: '{listPriceValue}, {listPriceWithTax}'\",\n \"admin/list-price-range-no-range-message.title\": \"Precio de lista (sin rango)\",\n \"admin/selling-price-range.title\": \"Rango de precio de venta\",\n \"admin/selling-price-range-message.description\": \"Mensaje que se mostrará cuando haya una diferencia de precio entre los SKU.\\nValores disponibles para interpolación: '{minPriceValue}, {maxPriceValue}, {minPriceWithTax}, {maxPriceWithTax}'\",\n \"admin/selling-price-range-message.title\": \"Precio de venta (rango)\",\n \"admin/selling-price-range-no-range-message.description\": \"Mensaje que se mostrará cuando no haya una diferencia de precio entre los SKU.\\nValores disponibles para interpolación: '{sellingPriceValue}, {sellingPriceWithTax}'\",\n \"admin/selling-price-range-no-range-message.title\": \"Precio de venta (rango)\",\n \"store/product-price.price-savings.aria-label\": \"Precio de {previousPriceValue} por {newPriceValue}\"\n}\n```" } ]
code_product-price_a458b7d7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/docs/README.md from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n📢 Use this project, [contribute](https://github.com/vtex-apps/product-price) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# Product Price\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\nThe Product Price app exports blocks related to the product price, such as list price, selling price, and savings.\n\n![image](https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-product-price-0.png)\n\n> ℹ️ Currently, **Product Price is the only app that provides product price blocks for your theme**. The [Product Summary Price](https://developers.vtex.com/docs/guides/vtex-product-summary-productsummaryprice) block from the [Product Summary](https://developers.vtex.com/docs/guides/vtex-product-summary/) app and the [Product Price](https://developers.vtex.com/docs/guides/vtex-store-components-productprice/) block from [Store Components](https://developers.vtex.com/docs/guides/vtex-store-components/) have been deprecated.\n\n## Configuration\n\n### Step 1 - Adding the Product Price app to your theme dependencies\n\nIn the theme's `manifest.json` file, add the Product Price app as a dependency:\n\n```json\n\"dependencies\": {\n \"vtex.product-price\": \"1.x\"\n}\n```\n\nNow, you can use all the blocks exported by the `product-price` app. See the full list below:\n\n| Block name | Description |\n| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `product-list-price` | Renders the product list price. This block will not be rendered if it is equal to or less than the product selling price. |\n| `product-selling-price` | Renders the product selling price. |\n| `product-spot-price` | Renders the product spot price (if it is equal to the selling price, the block is not rendered). This block finds the spot price by looking for the lowest price of all installment options. |\n| `product-installments` | Renders the product installments. If more than one option is available, the one with the highest number of installments will be displayed by default. |\n| `product-installments-list` | Renders all the installments of the payment system with the most installment options by default. |\n| `product-installments-list-item` | Renders an installment option from the `product-installments-list-item`. |\n| `product-price-savings` | Renders the product price savings, if there are any. It can show the discount percentage or the total amount of the savings. |\n| `product-spot-price-savings` | Renders the product spot price savings, if there are any. It can show the discount percentage or the total amount of the savings. |\n| `product-list-price-range` | Renders the product list price range. It follows the same logic applied to the `ListPrice`: if its value equals the product selling price, this block is not rendered. |\n| `product-selling-price-range` | This is the product selling price range. |\n| `product-seller-name` | Renders the name of the product seller. |\n| `product-price-suspense` | Renders a fallback component when the price is loading and its children block when it is not loading. This block is handy when the store works with asynchronous prices. |\n\nAll blocks listed above use product price data fetched from the store catalog. To learn more, please read the [Pricing module overview](https://help.vtex.com/tracks/precos-101--6f8pwCns3PJHqMvQSugNfP).\n\n### Step 2 - Adding the Product Price blocks to your theme templates\n\nTo add the Product Price blocks to your theme, you just need to declare them as children of the `product-summary.shelf` exported by the [Product Summary](https://vtex.io/docs/components/content-blocks/vtex.product-summary@2.52.3) app, or declare them in the theme's Product template (`store.product`).\n\nNote that these blocks require a Product context to work correctly. Therefore, when declaring them as children of the `product-summary.shelf`, make sure they are in a store template in which this context is available.\n\nFor example:\n\n```json\n\"shelf#home\": {\n \"blocks\": [\"product-summary.shelf\"]\n},\n\n\"product-summary.shelf\": {\n \"children\": [\n \"product-list-price\",\n \"product-selling-price#summary\",\n \"product-price-savings\",\n \"product-installments\"\n ]\n},\n```\n\nExcept for `product-price-suspense`, every block in this app only has three props in common:\n\n| Prop name | Type | Description | Default value |\n| ------------ | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| `markers` | `[string]` | IDs that you define to identify the block's rendered message and customize it using the Site Editor in the Admin. Learn how to use them by reading the documentation on [Using the Markers prop to customize a block's message](https://developers.vtex.com/docs/guides/vtex-io-documentation-using-the-markers-prop-to-customize-a-blocks-message). Note that a block's message can be customized using the `message` prop in the Store Theme source code. | `[]` |\n| `blockClass` | `string` | Block ID that you define to be used in [CSS customizations](https://developers.vtex.com/docs/guides/vtex-io-documentation-using-css-handles-for-store-customization#using-the-blockclass-property). | `undefined` |\n| `message` | `string` | Defines the block's default text, i.e., the block message. If you use the Site Editor in the Admin, you can also define the text message that a block will render on the UI. | `undefined` |\n\nFor example:\n\n```json\n\"product-selling-price#summary\": {\n \"props\": {\n \"markers\": [\n \"highlight\"\n ],\n \"blockClass\": \"summary\",\n \"message\": \"Selling price: {sellingPriceValue}\"\n }\n},\n```\n\nThe `product-price-savings` block has two additional props:\n\n| Prop name | Type | Description | Default value |\n| ------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| `percentageStyle` | `locale` or `compact` | Set to `compact` to remove the white space between the number and the percent sign. It uses the pattern provided by the current locale as default. | `locale` |\n| `minimumPercentage` | `number` | Set the minimum value for the percentage value display. If not configured, it will display always. Example: `10` means savings less than or equal to 10% will not appear. | `0` |\n\nThe following blocks have an additional prop: `product-list-price`, `product-selling-price`, `product-spot-price`, `product-spot-price-savings`, `product-price-savings`, `product-list-price-range`, and `product-selling-price-range`. The prop is:\n\n| Prop name | Type | Description | Default value |\n|:------------:|:---------:|:-------------------------------------------------------:|:-------------:|\n| `alwaysShow` | `boolean` | Renders the block even when the product is unavailable. | `false` |\n\nFor example:\n\n```json\n\"product-selling-price#summary\": {\n \"props\": {\n \"alwaysShow\": true\n }\n},\n```\n\nThe `product-installments-list` block has two additional props:\n\n| Prop name | Type | Description | Default value |\n| -------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| `paymentSystemName` | `string` | Allows you to filter the listed installment options by a particular payment system. If not passed, the installments of the payment system with the most installment options will be rendered. | `undefined` |\n| `installmentsToShow` | `number[]` | Determines the installment options you want to show to the user based on the number of installments. For example, if `[1, 3]` is passed as a value for this prop, only the installments options with `NumberOfInstallments` equal to 1 and 3 will be rendered. If a value is not passed, all options will be rendered. | `undefined` |\n\nThe `product-installments` block also has two additional props:\n\n| Prop name | Type | Description | Default value |\n| -------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |\n| `installmentsCriteria` | `max-quantity` or `max-quantity-without-interest` | When set to `max-quantity`, the block renders the installment plan with the most number of installments. When set to `max-quantity-without-interest`, the block renders the installment plan with the most number of installments and **no interest**. Note that if this prop is set to `max-quantity-without-interest` and no installment plan matches the 'without interest' criterion, the component will fall back to the default behavior. | `max-quantity` |\n| `installmentOptionsFilter` | `{ paymentSystemName?: string, installmentsQuantity?: number }` | Allows you to define two filtering rules that will narrow down the possible installment plans the component may render. | `undefined` |\n\nIf you are using the asynchronous price feature, you can take advantage of `product-price-suspense` and its props:\n\n| Prop name | Type | Description | Default value |\n|:----------:|:-------:|:------------------------------------------------------------------:|:-------------------:|\n| `Fallback` | `block` | Name of the block that will be rendered when the price is loading. | `rich-text#loading` |\n\nFor example:\n\n```json\n{\n \"rich-text#loading\": {\n \"props\": {\n \"text\": \"Loading...\"\n }\n },\n \"product-price-suspense\": {\n \"props\": {\n \"Fallback\": \"rich-text#loading\"\n },\n \"children\": [\n \"product-list-price#summary\",\n \"flex-layout.row#selling-price-savings\",\n \"product-installments#summary\",\n \"add-to-cart-button\"\n ]\n },\n \"product-summary.shelf\": {\n \"children\": [\n \"stack-layout#prodsum\",\n \"product-summary-name\",\n \"product-rating-inline\",\n \"product-summary-space\",\n \"product-price-suspense\"\n ]\n }\n}\n```\n\n![9SOSUdfAVa](https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-product-price-1.gif)\n\n### Step 3 - Editing the block's messages\n\nEvery Product Price block uses the [ICU Message Format](https://format-message.github.io/icu-message-format-for-translators/), making it possible to fully edit the text message and variables displayed by each block.\n\nThe variable values are rendered based on the context wrapping the block, meaning it uses product data to render the price accordingly.\n\nYou can, however, define the message texts a block will render on the UI using the `message` prop as explained previously.\n\nThe `markers` prop, in turn, needs an extra configuration in the Admin's Site Editor to work correctly. When using it, do not forget to read the [Using the Markers prop to customize a block's message](https://developers.vtex.com/docs/guides/vtex-io-documentation-using-the-markers-prop-to-customize-a-blocks-message/) documentation.\n\n![Product-Price-Site-Editor-gif](https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-product-price-2.gif)\n\nIn addition, remember to take into account the message variables for each block, since you will need them to edit the desired messages using the Admin's Site Editor:\n\n- **`product-list-price`**\n\n| Message variable | Type | Description |\n| ----------------------------- | --------- | ------------------------------------------------------------------------------------------------ |\n| `listPriceValue` | `string` | List price value. |\n| `listPriceWithTax` | `string` | List price value with tax. |\n| `listPriceWithUnitMultiplier` | `string` | List price multiplied by a unit multiplier. |\n| `listPriceWithTaxWithoutUnitMultiplier` | `string` | List price with tax without unit multiplier. |\n| `taxPercentage` | `string` | Tax percentage. |\n| `taxValue` | `string` | Tax value. |\n| `hasMeasurementUnit` | `boolean` | Determines whether the product has a unit of measure (`true`) or not (`false`). |\n| `measurementUnit` | `string` | Unit of measure text. |\n| `hasUnitMultiplier` | `boolean` | Determines whether the product has a unit multiplier different from 1 (`true`) or not (`false`). |\n| `unitMultiplier` | `string` | Value of the unit multiplier. |\n\n- **`product-selling-price`**\n\n| Message variable | Type | Description |\n| -------------------------------- | --------- | ------------------------------------------------------------------------------------------------ |\n| `sellingPriceValue` | `string` | Selling price value. |\n| `sellingPriceWithTax` | `string` | Selling price with tax. |\n| `sellingPriceWithUnitMultiplier` | `string` | Selling price multiplied by a unit multiplier. |\n| `sellingPriceWithUnitMultiplierAndTax` | `string` | Selling price multiplied by a unit multiplier and added tax. |\n| `sellingPriceWithTaxWithoutUnitMultiplier` | `string` | Selling price with tax without unit multiplier. |\n| `taxPercentage` | `string` | Tax percentage. |\n| `hasListPrice` | `boolean` | Determines whether the product has a list price (`true`) or not (`false`). |\n| `taxValue` | `string` | Tax value. |\n| `hasMeasurementUnit` | `boolean` | Determines whether the product has a unit of measure (`true`) or not (`false`). |\n| `measurementUnit` | `string` | Unit of measure text. |\n| `hasUnitMultiplier` | `boolean` | Determines whether the product has a unit multiplier different from 1 (`true`) or not (`false`). |\n| `unitMultiplier` | `string` | Value of the unit multiplier. |\n\nYou can use the `product-selling-price` `sellingPriceWithUnitMultiplier`, `hasMeasurementUnit`, `unitMultiplier`, and `measurementUnit` variables together to render the unit of measure and unit multiplier on products that have it.\n\nFor example:\n\n```json\n{\n \"product-selling-price\": {\n \"props\": {\n \"message\": \"{sellingPriceWithUnitMultiplier}{hasMeasurementUnit, select, true { / {hasUnitMultiplier, select, true {{unitMultiplier}} false {}} {measurementUnit}} false {}}\"\n }\n }\n}\n```\n\nAccording to the example above, products with a unit of measure and a unit multiplier would be rendered as follows:\n\n`$24.00 / 2 oz`\n\n> ℹ️ _Note that the unit of measure and unit multiplier would be properly rendered alongside their price._\n\nStill, in the example, products that do not have a unit of measure and a unit multiplier will only render their price:\n\n`$24.00`\n\n- **`product-spot-price`**\n\n| Message variable | Type | Description |\n| ---------------- | -------- | ----------------- |\n| `spotPriceValue` | `string` | Spot price value. |\n\n- **`product-installments` and `product-installments-list-item`**\n\n| Message variables | Type | Description |\n| ------------------------ | --------- | ------------------------------------------------------------------------------ |\n| `spotPriceValue` | `string` | Spot price value. |\n| `installmentsNumber` | `string` | Number of installments. |\n| `installmentValue` | `string` | Amount of each installment. |\n| `installmentsTotalValue` | `string` | Total amount of installments. |\n| `interestRate` | `string` | Interest rate. |\n| `paymentSystemName` | `string` | Payment system for the installments. |\n| `hasInterest` | `boolean` | Determines whether the installments have interest (`true`) or not (`false`). |\n| `hasMoreThanOne` | `boolean` | Determines whether there is more than 1 installment (`true`) or not (`false`). |\n\n- **`product-price-savings`**\n\n| Message variables | Type | Description |\n| -------------------- | -------- | ------------------------------------------------------------------------- |\n| `previousPriceValue` | `string` | Previous price value (list price). |\n| `newPriceValue` | `string` | New price value (selling price). |\n| `savingsValue` | `string` | Difference between the previous product price and the new one. |\n| `savingsWithTax` | `string` | Difference between the previous product price and the new one with taxes. |\n| `savingsPercentage` | `string` | Percentage of savings. |\n\n- **`product-spot-price-savings`**\n\n| Message variables | Type | Description |\n| ---------------------------- | -------- | ---------------------------------------------------------------------------- |\n| `previousPriceValue` | `string` | Previous price value (list price). |\n| `newSpotPriceValue` | `string` | New price value (spot price). |\n| `spotPriceSavingsValue` | `string` | Difference between the previous product price and the spot price. |\n| `spotPriceSavingsWithTax` | `string` | Difference between the previous product price and the spot price with taxes. |\n| `spotPriceSavingsPercentage` | `string` | Percentage of savings. |\n\n- **`product-list-price-range`**\n\n| Message variables | Type | Description |\n| ------------------ | -------- | ----------------------------------------------------------- |\n| `minPriceValue` | `string` | Value of the cheapest list price SKU. |\n| `maxPriceValue` | `string` | Value of the most expensive list price SKU. |\n| `minPriceWithTax` | `string` | Value of the cheapest list price SKU with tax. |\n| `maxPriceWithTax` | `string` | Value of the most expensive list price SKU with tax. |\n| `listPriceValue` | `string` | Value of the list price of the only SKU available. |\n| `listPriceWithTax` | `string` | Value of the list price of the only SKU available with tax. |\n\n- **`product-selling-price-range`**\n\n| Message variables | Type | Description |\n| --------------------- | -------- | -------------------------------------------------------------- |\n| `minPriceValue` | `string` | Value of the cheapest selling price SKU. |\n| `maxPriceValue` | `string` | Value of the most expensive selling price SKU. |\n| `minPriceWithTax` | `string` | Value of the cheapest selling price SKU with tax. |\n| `maxPriceWithTax` | `string` | Value of the most expensive selling price SKU with tax. |\n| `sellingPriceValue` | `string` | Value of the selling price of the only SKU available. |\n| `sellingPriceWithTax` | `string` | Value of the selling price of the only SKU available with tax. |\n\n- **`product-seller-name`**\n\n| Message variable | Type | Description |\n| ---------------- | -------- | ------------------------------- |\n| `sellerName` | `string` | The name of the product seller. |\n\nIn the gif example above, the block first displayed a `Save $224.40` message. By editing the exported message, it now renders a `You are saving: $224.40 (37%)` message thanks to the changes performed through the Site Editor in the Admin:\n\n![product-price-edited-img](https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-product-price-3.png)\n\n## Customization\n\nTo apply CSS customizations in this and other blocks, follow the instructions given in the recipe on [Using CSS handles for store customizations](https://developers.vtex.com/docs/guides/vtex-io-documentation-using-css-handles-for-store-customization).\n\n| CSS handles |\n| -------------------------------------- |\n| `installmentValue` |\n| `installmentsListContainer` |\n| `installmentsNumber` |\n| `installmentsTotalValue` |\n| `installments` |\n| `interestRate` |\n| `listPrice'` |\n| `listPrice--isUnavailable` |\n| `listPriceRangeMaxValue` |\n| `listPriceRangeMaxWithTax` |\n| `listPriceRangeMinValue` |\n| `listPriceRangeMinWithTax` |\n| `listPriceRangeUniqueValue` |\n| `listPriceRangeUniqueWithTax` |\n| `listPriceRange` |\n| `listPriceRange--isUnavailable` |\n| `listPriceValue` |\n| `listPriceWithTax` |\n| `newPriceValue` |\n| `newSpotPriceValue` |\n| `paymentSystemName` |\n| `previousPriceValue` |\n| `savingsPercentage` |\n| `savingsValue` |\n| `savingsWithTax` |\n| `savings` |\n| `savings--isUnavailable` |\n| `sellerName` |\n| `sellerNameContainer` |\n| `sellerNameContainer--isDefaultSeller` |\n| `sellingPrice--hasListPrice` |\n| `sellingPrice--isUnavailable` |\n| `sellingPriceRangeMaxValue` |\n| `sellingPriceRangeMaxWithTax` |\n| `sellingPriceRangeMinValue` |\n| `sellingPriceRangeMinWithTax` |\n| `sellingPriceRangeUniqueValue` |\n| `sellingPriceRangeUniqueWithTax` |\n| `sellingPriceRange` |\n| `sellingPriceRange--isUnavailable` |\n| `sellingPriceRange--hasListPrice` |\n| `sellingPriceValue` |\n| `sellingPriceWithTax` |\n| `sellingPrice` |\n| `spotPriceSavingsPercentage` |\n| `spotPriceSavingsValue` |\n| `spotPriceSavingsWithTax` |\n| `spotPriceSavings` |\n| `spotPriceSavings--isUnavailable` |\n| `spotPriceValue` |\n| `spotPrice` |\n| `spotPrice--isUnavailable` |\n| `taxPercentage` |\n\n<!-- DOCS-IGNORE:start -->\n\n## Contributors ✨\n\nThanks goes to these wonderful people:\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n <tr>\n <td align=\"center\"><a href=\"https://razvanudrea.com\"><img src=\"https://avatars.githubusercontent.com/u/71461884?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>razvanudream</b></sub></a><br /><a href=\"https://github.com/vtex-apps/product-price/commits?author=razvanudream\" title=\"Code\">💻</a></td>\n <td align=\"center\"><a href=\"https://github.com/khrizzcristian\"><img src=\"https://avatars.githubusercontent.com/u/43498488?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>khrizzcristian</b></sub></a><br /><a href=\"https://github.com/vtex-apps/product-price/commits?author=khrizzcristian\" title=\"Code\">💻</a></td>\n <td align=\"center\"><a href=\"https://github.com/Git-the-Sanz\"><img src=\"https://avatars.githubusercontent.com/u/50715158?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Sanz</b></sub></a><br /><a href=\"https://github.com/vtex-apps/product-price/commits?author=Git-the-Sanz\" title=\"Code\">💻</a></td>\n <td align=\"center\"><a href=\"https://www.linkedin.com/in/renan-guerra-ba91aa17b/\"><img src=\"https://avatars.githubusercontent.com/u/69531548?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Renan Guerra</b></sub></a><br /><a href=\"https://github.com/vtex-apps/product-price/commits?author=renanguerraa1\" title=\"Code\">💻</a></td>\n </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!\n\n<!-- DOCS-IGNORE:end -->\n\n```" } ]
code_product-price_54187bf9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/react/InstallmentsListItem.tsx from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { defineMessages } from 'react-intl'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\n\nimport { useInstallments } from './components/InstallmentsContext'\nimport InstallmentsRenderer, {\n CSS_HANDLES,\n} from './components/InstallmentsRenderer'\n\nconst messages = defineMessages({\n title: {\n id: 'admin/installments-list-item.title',\n },\n titleMessage: {\n id: 'admin/installments.title',\n },\n description: {\n id: 'admin/installments.description',\n },\n default: {\n id: 'store/installments.default',\n },\n})\n\ninterface Props {\n message?: string\n markers?: string[]\n /** Used to override default CSS handles */\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nfunction InstallmentsListItem({\n message = messages.default.id,\n markers = [],\n classes,\n}: Props) {\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES, { classes })\n const { installment } = useInstallments() ?? {}\n\n if (!installment) {\n return null\n }\n\n return (\n <InstallmentsRenderer\n message={message}\n markers={markers}\n installment={installment}\n handles={handles}\n handlesModifierFunction={withModifiers}\n />\n )\n}\n\nInstallmentsListItem.schema = {\n title: 'admin/installments-list-item.title',\n}\n\nexport default InstallmentsListItem\n\n```" } ]
code_product-price_b7079463
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/react/ListPrice.tsx from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { defineMessages, FormattedNumber } from 'react-intl'\nimport { useProduct } from 'vtex.product-context'\nimport { FormattedCurrency } from 'vtex.format-currency'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\nimport { IOMessageWithMarkers } from 'vtex.native-types'\n\nimport { getDefaultSeller } from './modules/seller'\nimport { hideProductPrice } from './modules/hideProductPrice'\n\nconst CSS_HANDLES = [\n 'listPrice',\n 'listPriceValue',\n 'listPriceWithTax',\n 'listPriceWithUnitMultiplier',\n 'listPriceWithTaxWithoutUnitMultiplier',\n 'taxPercentage',\n 'taxValue',\n 'unitMultiplier',\n 'measurementUnit',\n] as const\n\nconst messages = defineMessages({\n title: {\n id: 'admin/list-price.title',\n },\n description: {\n id: 'admin/list-price.description',\n },\n default: {\n id: 'store/list-price.default',\n },\n})\n\ninterface Props {\n message?: string\n markers?: string[]\n /** Used to override default CSS handles */\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n alwaysShow?: boolean\n}\n\nfunction ListPrice({\n message = messages.default.id,\n markers = [],\n classes,\n alwaysShow = false,\n}: Props) {\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES, { classes })\n const productContextValue = useProduct()\n\n const seller = getDefaultSeller(productContextValue?.selectedItem?.sellers)\n\n const commercialOffer = seller?.commertialOffer\n\n if (\n !commercialOffer ||\n hideProductPrice({\n alwaysShow,\n availableQuantity: commercialOffer.AvailableQuantity,\n })\n ) {\n return null\n }\n\n const listPriceValue = commercialOffer.ListPrice\n const sellingPriceValue = commercialOffer.Price\n const { taxPercentage } = commercialOffer\n const listPriceWithTax = listPriceValue + listPriceValue * taxPercentage\n\n const measurementUnit =\n productContextValue?.selectedItem?.measurementUnit ?? ''\n\n const unitMultiplier = productContextValue?.selectedItem?.unitMultiplier ?? 1\n const listPriceWithUnitMultiplier = commercialOffer.ListPrice * unitMultiplier\n\n const taxValue = commercialOffer.Tax\n\n const hasMeasurementUnit = measurementUnit && measurementUnit !== 'un'\n const hasUnitMultiplier = unitMultiplier !== 1\n \n const listPriceWithTaxWithoutUnitMultiplier = listPriceValue + (listPriceValue * taxPercentage / unitMultiplier)\n\n if (listPriceValue <= sellingPriceValue) {\n return null\n }\n\n const containerClasses = withModifiers('listPrice', [\n alwaysShow && commercialOffer.AvailableQuantity <= 0 ? 'isUnavailable' : '',\n ])\n\n return (\n <span className={containerClasses}>\n <IOMessageWithMarkers\n message={message}\n markers={markers}\n handleBase=\"listPrice\"\n values={{\n hasMeasurementUnit,\n hasUnitMultiplier,\n listPriceValue: (\n <span\n key=\"listPriceValue\"\n className={`${handles.listPriceValue} strike`}\n >\n <FormattedCurrency value={listPriceValue} />\n </span>\n ),\n listPriceWithTax: (\n <span\n key=\"listPriceWithTax\"\n className={`${handles.listPriceWithTax} strike`}\n >\n <FormattedCurrency value={listPriceWithTax} />\n </span>\n ),\n listPriceWithTaxWithoutUnitMultiplier: (\n <span\n key=\"listPriceWithTaxWithoutUnitMultiplier\"\n className={`${handles.listPriceWithTaxWithoutUnitMultiplier} strike`}\n >\n <FormattedCurrency value={listPriceWithTaxWithoutUnitMultiplier} />\n </span>\n ),\n listPriceWithUnitMultiplier: (\n <span\n key=\"listPriceWithUnitMultiplier\"\n className={`${handles.listPriceWithUnitMultiplier} strike`}\n >\n <FormattedCurrency value={listPriceWithUnitMultiplier} />\n </span>\n ),\n taxPercentage: (\n <span key=\"taxPercentage\" className={handles.taxPercentage}>\n <FormattedNumber value={taxPercentage} style=\"percent\" />\n </span>\n ),\n taxValue: (\n <span key=\"taxValue\" className={handles.taxValue}>\n <FormattedCurrency value={taxValue} />\n </span>\n ),\n unitMultiplier: (\n <span key=\"unitMultiplier\" className={handles.unitMultiplier}>\n <FormattedNumber value={unitMultiplier} />\n </span>\n ),\n measurementUnit: (\n <span key=\"measurementUnit\" className={handles.measurementUnit}>\n {measurementUnit}\n </span>\n ),\n }}\n />\n </span>\n )\n}\n\nListPrice.schema = {\n title: messages.title.id,\n}\n\nexport default ListPrice\n\n```" } ]
code_product-price_9bac7d51
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of product-price/react/SellerName.tsx from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { defineMessages } from 'react-intl'\nimport { IOMessageWithMarkers } from 'vtex.native-types'\nimport { useProduct } from 'vtex.product-context'\nimport { useCssHandles, CssHandlesTypes } from 'vtex.css-handles'\n\nimport { getDefaultSeller } from './modules/seller'\n\nconst CSS_HANDLES = ['sellerNameContainer', 'sellerName'] as const\n\nconst messages = defineMessages({\n title: {\n id: 'admin/seller-name.title',\n },\n description: {\n id: 'admin/seller-name.description',\n },\n default: {\n id: 'store/seller-name.default',\n },\n})\n\ninterface Props {\n message?: string\n markers?: string[]\n /** Used to override default CSS handles */\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nfunction ProductSellerName({\n message = messages.default.id,\n markers = [],\n classes,\n}: Partial<Props>) {\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES, { classes })\n const productContextValue = useProduct()\n\n const seller = getDefaultSeller(productContextValue?.selectedItem?.sellers)\n\n if (!seller) {\n return null\n }\n\n const containerClasses = withModifiers(\n 'sellerNameContainer',\n seller.sellerDefault ? 'isDefaultSeller' : ''\n )\n\n return (\n <span className={containerClasses}>\n <IOMessageWithMarkers\n message={message}\n markers={markers}\n handleBase=\"sellerName\"\n values={{\n sellerName: (\n <span key=\"sellerName\" className={handles.sellerName}>\n {seller.sellerName}\n </span>\n ),\n }}\n />\n </span>\n )\n}\n\nProductSellerName.schema = {\n title: messages.title.id,\n}\n\nexport default ProductSellerName\n\n```" } ]