{
  "version": 3,
  "sources": ["/cdn/shop/t/7/assets/lp-trustoo-es.js?t=1794781104063"],
  "sourcesContent": ["/* lowPolysm: Spanish texts for the Trustoo (CWILL) review widgets.\n   Trustoo's own per-language texts need its Pro plan, so the storefront swaps the\n   English interface texts on Spanish pages. Review texts written by customers are left alone.\n   Loaded only when the page language is Spanish (see layout/theme.liquid). */\n(function () {\n  'use strict';\n\n  // Interface texts that Trustoo marks with data-tt-lang-path\n  var BY_PATH = {\n    'customer_reviews': 'Opiniones de clientes',\n    'reviews': 'opiniones',\n    'write_reviews': 'Escribir una opini\u00F3n',\n    'all_in_one_from.write_reviews': 'Escribir una opini\u00F3n',\n    'store_review.tab_name': 'Opiniones de la tienda',\n    'sort_by': 'Ordenar por',\n    'sort_by_options.0': 'Con fotos primero',\n    'sort_by_options.1': 'M\u00E1s recientes',\n    'sort_by_options.2': 'Mejor valoradas',\n    'sort_by_options.3': 'Peor valoradas',\n    'sort_by_options.4': 'Destacadas',\n    'verified_purchase': 'Cliente verificado',\n    'helpful': '\u00BF\u00DAtil?',\n    'show_full_review': 'Ver opini\u00F3n completa',\n    'more': 'Cargar m\u00E1s opiniones',\n    'you_rating': 'Valoraci\u00F3n',\n    'all_in_one_from.review': 'Opini\u00F3n',\n    'add_photo': 'A\u00F1adir foto',\n    'name': 'Tu nombre',\n    'email': 'Tu correo electr\u00F3nico',\n    'phone': 'N\u00FAmero de tel\u00E9fono',\n    'submit': 'Enviar opini\u00F3n',\n    'submitted_successfully': 'Tu opini\u00F3n se ha enviado',\n    'success_message': '\u00A1Gracias!',\n    'continue_shopping': 'Continuar',\n    'all_in_one_from.discount_setting.copy': 'Copiar',\n    'question_and_answer.publish_title': '\u00BFEs p\u00FAblica?',\n    'question_and_answer.public_options_yes': 'S\u00ED',\n    'question_and_answer.public_options_no': 'No'\n  };\n\n  // English text Trustoo prints for each path; a text is only swapped while it still reads like this\n  var EN_BY_PATH = {\n    'customer_reviews': 'Customer Reviews', 'reviews': 'reviews', 'write_reviews': 'Write a review',\n    'all_in_one_from.write_reviews': 'Write a review', 'store_review.tab_name': 'Store reviews',\n    'sort_by': 'Sort by', 'sort_by_options.0': 'Photo priority', 'sort_by_options.1': 'Newest',\n    'sort_by_options.2': 'Highest Ratings', 'sort_by_options.3': 'Lowest Ratings', 'sort_by_options.4': 'Featured',\n    'verified_purchase': 'Verified customer', 'helpful': 'Helpful?', 'show_full_review': 'Show full review',\n    'more': 'Load more reviews', 'you_rating': 'Rating', 'all_in_one_from.review': 'Review',\n    'add_photo': 'Add photo', 'name': 'Your name', 'email': 'Your email', 'phone': 'Phone number',\n    'submit': 'Submit review', 'submitted_successfully': 'Your review has been sent', 'success_message': 'Thanks!',\n    'continue_shopping': 'Continue', 'all_in_one_from.discount_setting.copy': 'Copy',\n    'question_and_answer.publish_title': 'Is it public?', 'question_and_answer.public_options_yes': 'Yes',\n    'question_and_answer.public_options_no': 'No'\n  };\n\n  // Whole text nodes without a path\n  var EXACT = {\n    'Newest': 'M\u00E1s recientes',\n    'Photo priority': 'Con fotos primero',\n    'Highest Ratings': 'Mejor valoradas',\n    'Lowest Ratings': 'Peor valoradas',\n    'Featured': 'Destacadas',\n    'ETSY customer review:': 'Opini\u00F3n de cliente de ETSY:',\n    \"By submitting this review, you agree to CWILL's\": 'Al enviar esta opini\u00F3n, aceptas los',\n    'Terms': 'T\u00E9rminos',\n    'and': 'y la',\n    'Privacy Policy': 'Pol\u00EDtica de privacidad',\n    'regarding the processing of your personal data.': 'de CWILL sobre el tratamiento de tus datos personales.'\n  };\n\n  var UNITS = {\n    minute: ['minuto', 'minutos'], hour: ['hora', 'horas'], day: ['d\u00EDa', 'd\u00EDas'],\n    week: ['semana', 'semanas'], month: ['mes', 'meses'], year: ['a\u00F1o', 'a\u00F1os']\n  };\n\n  var ATTRS = {\n    \"This review was added from the store's transaction records.\": 'Esta opini\u00F3n se a\u00F1adi\u00F3 a partir de los registros de ventas de la tienda.',\n    'Share your feedback with us now': 'Comparte tu opini\u00F3n con nosotros'\n  };\n\n  var ROOTS = '#vstar-tab, #vstar-all-reviews, #trustoo-widget-wrapper, #trustoo-mask, .window-review-mask, .trustoo-widget, #trustoo-review-detail, #trustoo-text-carousel, [data-app=\"trustoo\"], .tt-rating-text';\n  // Text written by customers or by the shop: never touched\n  var SKIP = '.reviews-text, .tt-card-review, .tt-card-author, [class*=\"reply\"], [class*=\"user-name\"], [class*=\"author\"], script, style, textarea, input';\n\n  function swapText(node) {\n    var raw = node.nodeValue;\n    var text = raw.replace(/\\s+/g, ' ').trim();\n    if (!text) return;\n    var out = null, m;\n    if (Object.prototype.hasOwnProperty.call(EXACT, text)) {\n      out = EXACT[text];\n    } else if ((m = text.match(/^(\\d+) (minute|hour|day|week|month|year)s? ago$/))) {\n      out = 'hace ' + m[1] + ' ' + UNITS[m[2]][m[1] === '1' ? 0 : 1];\n    } else if (/^see all reviews$/i.test(text.replace(/^[^A-Za-z]+/, ''))) {\n      out = text.replace(/see all reviews/i, 'VER TODAS LAS OPINIONES');\n    } else if ((m = text.match(/^Reviews \\($/))) {\n      out = 'Opiniones (';\n    } else if ((m = text.match(/^([\\d.,]+ )?\\( (\\d+) Reviews? \\)$/))) {\n      out = (m[1] || '') + '( ' + m[2] + (m[2] === '1' ? ' opini\u00F3n )' : ' opiniones )');\n    } else if ((m = text.match(/^Add a photo to get (\\d+)% off for your next purchase!$/))) {\n      out = '\u00A1A\u00F1ade una foto y consigue un ' + m[1] + '% de descuento en tu pr\u00F3xima compra!';\n    }\n    if (out !== null) node.nodeValue = raw.replace(raw.trim(), out);\n  }\n\n  function swapPath(el) {\n    var path = el.getAttribute('data-tt-lang-path');\n    var walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT), node;\n    if (path === 'star' || path === 'stars|star') {\n      while ((node = walker.nextNode())) {\n        if (node.nodeValue.trim() === 'Star' || node.nodeValue.trim() === 'Stars') {\n          var one = (el.parentElement ? el.parentElement.textContent : '').replace(/\\s+/g, ' ').trim().indexOf('1 ') === 0;\n          node.nodeValue = node.nodeValue.replace(/Stars?/, one ? 'estrella' : 'estrellas');\n        }\n      }\n      return;\n    }\n    if (!Object.prototype.hasOwnProperty.call(BY_PATH, path)) return;\n    while ((node = walker.nextNode())) {\n      if (node.nodeValue.replace(/\\s+/g, ' ').trim() === EN_BY_PATH[path]) {\n        node.nodeValue = node.nodeValue.replace(node.nodeValue.trim(), BY_PATH[path]);\n      }\n    }\n  }\n\n  function run() {\n    var roots = document.querySelectorAll(ROOTS), i, j;\n    for (i = 0; i < roots.length; i++) {\n      var root = roots[i];\n      var marked = root.querySelectorAll('[data-tt-lang-path]');\n      for (j = 0; j < marked.length; j++) swapPath(marked[j]);\n      var walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT), node;\n      while ((node = walker.nextNode())) {\n        var parent = node.parentElement;\n        if (!parent || parent.closest(SKIP) || parent.closest('[data-tt-lang-path]')) continue;\n        swapText(node);\n      }\n      var withAttr = root.querySelectorAll('[data-tooltip], [placeholder]');\n      for (j = 0; j < withAttr.length; j++) {\n        ['data-tooltip', 'placeholder'].forEach(function (name) {\n          var value = withAttr[j].getAttribute(name);\n          if (value && Object.prototype.hasOwnProperty.call(ATTRS, value)) withAttr[j].setAttribute(name, ATTRS[value]);\n        });\n      }\n    }\n  }\n\n  var queued = false;\n  function schedule() {\n    if (queued) return;\n    queued = true;\n    setTimeout(function () { queued = false; run(); }, 120);\n  }\n\n  run();\n  new MutationObserver(schedule).observe(document.body, { childList: true, subtree: true, characterData: true });\n})();\n"],
  "mappings": "CAIC,UAAY,CACX,aAGA,IAAI,QAAU,CACZ,iBAAoB,wBACpB,QAAW,YACX,cAAiB,0BACjB,gCAAiC,0BACjC,wBAAyB,yBACzB,QAAW,cACX,oBAAqB,oBACrB,oBAAqB,mBACrB,oBAAqB,kBACrB,oBAAqB,iBACrB,oBAAqB,aACrB,kBAAqB,qBACrB,QAAW,eACX,iBAAoB,0BACpB,KAAQ,0BACR,WAAc,gBACd,yBAA0B,aAC1B,UAAa,iB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