@tiddh/brave-vue 1.93.200 → 1.93.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brave-vue.esm.js +13 -13
- package/dist/brave-vue.min.js +1 -1
- package/dist/brave-vue.ssr.js +235 -235
- package/dist/src/Card/CardProduct.vue +1 -1
- package/dist/src/Card/CoverProduct.vue +1 -1
- package/dist/src/CardProduct.vue +1 -1
- package/dist/src/CoverProduct.vue +1 -1
- package/dist/src/Icon.vue +1 -1
- package/dist/src/Icons/Icon.vue +1 -1
- package/dist/src/components/Card/CardProduct.vue +1 -1
- package/dist/src/components/Card/CoverProduct.vue +1 -1
- package/dist/src/components/Icons/Icon.vue +1 -1
- package/dist/src/serve-dev.js +8 -0
- package/dist/src/serve-dev.vue +17 -0
- package/package.json +1 -1
package/dist/brave-vue.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.push.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.filter.js";import t from"array-sort";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.array.fill.js";import"@tiddh/brave-icons/dist/font.css";import e from"v-lazy-image/v2";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.entries.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.push.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.filter.js";import t from"array-sort";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.array.from.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.array.fill.js";import"@tiddh/brave-icons/dist/font.css";import e from"v-lazy-image/v2";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.string.link.js";import a from"card-validator";import{mask as i}from"vue-the-mask";import o from"axios";import"core-js/modules/es.regexp.test.js";import r from"v-click-outside";import{ScrollPicker as d,ScrollPickerGroup as n}from"vue-scroll-picker";import"vue-scroll-picker/dist/style.css";import"core-js/modules/web.self.js";import s from"vue";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.error.cause.js";import l from"jquery";import c from"vue-slick-carousel";import"vue-slick-carousel/dist/vue-slick-carousel.css";function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var i,o,r,d,n=[],s=!0,l=!1;try{if(r=(a=a.call(t)).next,0===e){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=r.call(a)).done)&&(n.push(i.value),n.length!==e);s=!0);}catch(t){l=!0,o=t}finally{try{if(!s&&null!=a.return&&(d=a.return(),Object(d)!==d))return}finally{if(l)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(){h=function(){return e};var t,e={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},d=r.iterator||"@@iterator",n=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,a){return t[e]=a}}function c(t,e,a,i){var r=e&&e.prototype instanceof b?e:b,d=Object.create(r.prototype),n=new T(i||[]);return o(d,"_invoke",{value:S(t,a,n)}),d}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var m="suspendedStart",g="executing",v="completed",f={};function b(){}function w(){}function x(){}var y={};l(y,d,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(E([])));k&&k!==a&&i.call(k,d)&&(y=k);var z=x.prototype=b.prototype=Object.create(y);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function a(o,r,d,n){var s=p(t[o],t,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==u(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){a("next",t,d,n)}),(function(t){a("throw",t,d,n)})):e.resolve(c).then((function(t){l.value=t,d(l)}),(function(t){return a("throw",t,d,n)}))}n(s.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,o){a(t,i,e,o)}))}return r=r?r.then(o,o):o()}})}function S(e,a,i){var o=m;return function(r,d){if(o===g)throw new Error("Generator is already running");if(o===v){if("throw"===r)throw d;return{value:t,done:!0}}for(i.method=r,i.arg=d;;){var n=i.delegate;if(n){var s=P(n,i);if(s){if(s===f)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===m)throw o=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=g;var l=p(e,a,i);if("normal"===l.type){if(o=i.done?v:"suspendedYield",l.arg===f)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=v,i.method="throw",i.arg=l.arg)}}}function P(e,a){var i=a.method,o=e.iterator[i];if(o===t)return a.delegate=null,"throw"===i&&e.iterator.return&&(a.method="return",a.arg=t,P(e,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+i+"' method")),f;var r=p(o,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,f;var d=r.arg;return d?d.done?(a[e.resultName]=d.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,f):d:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,f)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(e){if(e||""===e){var a=e[d];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function a(){for(;++o<e.length;)if(i.call(e,o))return a.value=e[o],a.done=!1,a;return a.value=t,a.done=!0,a};return r.next=r}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=x,o(z,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,s,"GeneratorFunction")),t.prototype=Object.create(z),t},e.awrap=function(t){return{__await:t}},C(M.prototype),l(M.prototype,n,(function(){return this})),e.AsyncIterator=M,e.async=function(t,a,i,o,r){void 0===r&&(r=Promise);var d=new M(c(t,a,i,o),r);return e.isGeneratorFunction(a)?d:d.next().then((function(t){return t.done?t.value:d.next()}))},C(z),l(z,s,"Generator"),l(z,d,(function(){return this})),l(z,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),a=[];for(var i in e)a.push(i);return a.reverse(),function t(){for(;a.length;){var i=a.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function o(i,o){return n.type="throw",n.arg=e,a.next=i,o&&(a.method="next",a.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var d=this.tryEntries[r],n=d.completion;if("root"===d.tryLoc)return o("end");if(d.tryLoc<=this.prev){var s=i.call(d,"catchLoc"),l=i.call(d,"finallyLoc");if(s&&l){if(this.prev<d.catchLoc)return o(d.catchLoc,!0);if(this.prev<d.finallyLoc)return o(d.finallyLoc)}else if(s){if(this.prev<d.catchLoc)return o(d.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<d.finallyLoc)return o(d.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var d=r?r.completion:{};return d.type=t,d.arg=e,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(d)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),N(a),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var i=a.completion;if("throw"===i.type){var o=i.arg;N(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,i){return this.delegate={iterator:E(e),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=t),f}},e}function g(t,e,a,i,o,r,d){try{var n=t[r](d),s=n.value}catch(t){return void a(t)}n.done?e(s):Promise.resolve(s).then(i,o)}function v(t){return function(){var e=this,a=arguments;return new Promise((function(i,o){var r=t.apply(e,a);function d(t){g(r,i,o,d,n,"next",t)}function n(t){g(r,i,o,d,n,"throw",t)}d(void 0)}))}}
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -97,7 +97,7 @@ color:{type:String,default:"#68596E"},
|
|
|
97
97
|
* Type of font<br>
|
|
98
98
|
* Example: `Regular | Bold`
|
|
99
99
|
**/
|
|
100
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-9c585934",!1,void 0,!1,x,void 0,void 0),C=b({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:["icon","icon-"+this.name,"size-"+this.size],style:this.fill?{color:this.fill}:null})},staticRenderFns:[]},(function(t){t&&t("data-v-
|
|
100
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-9c585934",!1,void 0,!1,x,void 0,void 0),C=b({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:["icon","icon-"+this.name,"size-"+this.size],style:this.fill?{color:this.fill}:null})},staticRenderFns:[]},(function(t){t&&t("data-v-342e65a4_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-342e65a4]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-342e65a4]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-342e65a4]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-342e65a4]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-342e65a4]{font-size:14px}}@media (min-width:1024px){[data-v-342e65a4]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-342e65a4]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-342e65a4]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-342e65a4]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-342e65a4]{font-size:1.56vw}}html[data-v-342e65a4]{box-sizing:border-box}*[data-v-342e65a4],[data-v-342e65a4]::after,[data-v-342e65a4]::before{box-sizing:border-box}.icon[data-v-342e65a4]{display:block;font-weight:700}.icon.size-sm[data-v-342e65a4]{font-size:.7619047619rem}@media (max-width:479px){.icon.size-sm[data-v-342e65a4]{font-size:1.4953271028rem}}.icon.size-md[data-v-342e65a4]{font-size:1.1428571429rem}@media (max-width:479px){.icon.size-md[data-v-342e65a4]{font-size:2.2429906542rem}}.icon.size-lg[data-v-342e65a4]{font-size:1.5238095238rem}@media (max-width:479px){.icon.size-lg[data-v-342e65a4]{font-size:2.9906542056rem}}',map:void 0,media:void 0})}),{name:"Icon",props:{name:{type:String},size:{type:String,default:"lg"},stroke:{type:String,default:"transparent"},fill:{type:String}}},"data-v-342e65a4",!1,void 0,!1,x,void 0,void 0);
|
|
101
101
|
/* template */var M={pt:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Só um segundo",loadingPhrase:"Estamos carregando sua personalização",pages:"PÁGINAS",pagesLowercase:"Páginas",editArea:"Área de edição",name:"Nome",dedication:"Dedicatória",writeDedication:"Escreva uma dedicatória",shirtNumber:"Número da Camisa",bookScript:"Roteiro do Livro",dateBirth:"Data do aniversário",editDateBirth:"Editar data do aniversário",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",pet:"Bichinho de estimação",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",moonerTitle:"Altere o mooner na história",moonerTitleFirstOpen:"Adicione um mooner na história",moonerTitleMobile:"Altere o mooner",moonerTitleFirstOpenMobile:"Adicione um mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> em toda a história.",moonerDescriptionTwoMobile:" na história.",moonerLabel:"Nome do mooner",moonerLabelSelector:"Selecione um mooner",moonerCtaFirstOpen:"Pronto, ver história",moonerCta:"Atualizar",moonerCtaCancel:"Cancel",birthday_label:"Data do aniversário",genderFemale:"Menina",genderMale:"Menino",or:"ou",do:"do",da:"da",editCharacter:"Editar o personagem",Pele:"Pele",Olhos:"Olhos",Cabelo:"Cabelo",Roupa:"Roupa","Tênis":"Tênis","Óculos":"Óculos",continue:"CONTINUAR"},en:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Just a second",loadingPhrase:"We are loading your exclusive book",pages:"PAGES",pagesLowercase:"pages",editArea:"Edit area",name:"Name",dedication:"Dedication",writeDedication:"Write a dedication",shirtNumber:"Shirt Number",bookScript:"Book Script",dateBirth:"Date of Birth",editDateBirth:"Edit Date of Birth",editName:"Edit the little one's name",kidName:"Edit the protagonist's name",reccomendName:"It is recommended to use only the first name",dedicationFree:"Dedication (free)",cusutomDedication:"Customize the dedication that will be printed in the book.",messageDedication:"Dedication message",dedcationPlaceholder:"May your life be filled with great adventures!",editShirt:"Edit the little one's shirt",chooseScript:"You choose the script",choosePetLabel1:"Choose the duo that will help",choosePetLabel2:"find Sansão in this adventure with the Turma da Mônica.",day:"Day",month:"Month",pet:"Pet",changePet:"Change the pet in the story",petDescription1:"This pet will accompany ",petDescription2:" throughout the story.",typePetname:"Type the pet's name here",selectPet:"Select the pet",update:"UPDATE",cancel:"CANCEL",moonerLabelSidebar:"Mooner",moonerTitle:"Change the mooner in the story",moonerTitleFirstOpen:"Add a mooner to the story",moonerTitleMobile:"Change the mooner",moonerTitleFirstOpenMobile:"Add a mooner",moonerDescriptionOne:"He will accompany <span>",moonerDescriptionTwo:"</span> throughout the story.",moonerDescriptionTwoMobile:" in the story.",moonerLabel:"Mooner's Name",moonerLabelSelector:"Select a mooner",moonerCtaFirstOpen:"Ready, see the story",moonerCta:"Update",moonerCtaCancel:"Cancel",birthday_label:"Date of Birth",genderFemale:"Girl",genderMale:"Boy",or:"or",do:"of",da:"of",editCharacter:"Edit the character",Pele:"Skin",Olhos:"Eyes",Cabelo:"Hair",Roupa:"Clothing","Tênis":"Sneakers","Óculos":"Glasses",continue:"CONTINUE"},es:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Solo un momento",loadingPhrase:"Estamos cargando tu libro exclusivo",pages:"PÁGINAS",pagesLowercase:"páginas",editArea:"Área de edición",name:"Nombre",dedication:"Dedicatoria",writeDedication:"Escribe una dedicatoria",shirtNumber:"Número de la camiseta",bookScript:"Guión del libro",dateBirth:"Fecha de nacimiento",editDateBirth:"Editar fecha de nacimiento",editName:"Editar nombre del pequeño",kidName:"Edita el nombre del protagonista",reccomendName:"Se recomienda usar solo el primer nombre",dedicationFree:"Dedicatoria (gratis)",cusutomDedication:"Personaliza la dedicatoria que se imprimirá en el libro.",messageDedication:"Mensaje de la dedicatoria",dedcationPlaceholder:"¡Que tu vida esté llena de grandes aventuras!",editShirt:"Editar la camiseta del pequeño",chooseScript:"Tú eliges el guión",choosePetLabel1:"Elige el dúo que ayudará a",choosePetLabel2:"encontrar a Sansão en esta aventura con la Turma da Mônica.",day:"Día",month:"Mes",pet:"Mascota",changePet:"Cambia la mascota en la historia",petDescription1:"Esta mascota acompañará a",petDescription2:"a lo largo de toda la historia.",typePetname:"Escribe el nombre de la mascota aquí",selectPet:"Selecciona la mascota",update:"ACTUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",moonerTitle:"Cambia el mooner en la historia",moonerTitleFirstOpen:"Agrega un mooner a la historia",moonerTitleMobile:"Cambia el mooner",moonerTitleFirstOpenMobile:"Agrega un mooner",moonerDescriptionOne:"Él acompañará a <span>",moonerDescriptionTwo:"</span> a lo largo de toda la historia.",moonerDescriptionTwoMobile:"en la historia.",moonerLabel:"Nombre del mooner",moonerLabelSelector:"Selecciona un mooner",moonerCtaFirstOpen:"Listo, ver la historia",moonerCta:"Actualizar",moonerCtaCancel:"Cancelar",birthday_label:"Fecha de nacimiento",genderFemale:"Niña",genderMale:"Niño",or:"o",do:"del",da:"de la",editCharacter:"Editar el personaje",Pele:"Piel",Olhos:"Ojos",Cabelo:"Cabello",Roupa:"Ropa","Tênis":"Zapatillas","Óculos":"Gafas",continue:"CONTINUAR"},ar:{urlBuilder:"https://builder.dentrodahistoria.com.br",loadingPhrase:"نحن نقوم بتحميل كتابك الحصري",pages:"صفحات",pagesLowercase:"صفحات",editArea:"منطقة التحرير",name:"الاسم",dedication:"اهداء",writeDedication:"اكتب اهداء",shirtNumber:"رقم القميص",bookScript:"نص الكتاب",dateBirth:"تاريخ الميلاد",editDateBirth:"تحرير تاريخ الميلاد",editName:"تحرير الاسم",kidName:"تحرير اسم الطفل",reccomendName:"يُفضل استخدام الاسم الأول فقط",dedicationFree:"اهداء (مجانًا)",cusutomDedication:"تخصيص الاهداء",messageDedication:"رسالة الاهداء",dedcationPlaceholder:"نتمنى لحياتك مغامرات رائعة!",editShirt:"تحرير قميص الصغير",chooseScript:"اختر السيناريو",choosePetLabel1:"اختر اسم الحيوان الاليف الأول",choosePetLabel2:"اختر اسم الحيوان الاليف الثاني",day:"يوم",month:"شهر",pet:"حيوان اليف",changePet:"قم بتغيير الحيوان الاليف في القصة",petDescription1:"مواصفات الحيوان الأليف الأول",petDescription2:"مواصفات الحيوان الأليف الثاني",typePetname:"اكتب اسم الحيوان الاليف هنا",selectPet:"اختر الحيوان الأليف",update:"تحديث",cancel:"إلغاء",moonerLabelSidebar:"اسم المونر في القائمة الجانبية",moonerTitle:"قم بتغيير مونر في القصة",moonerTitleFirstOpen:"أضف مونر إلى القصة",moonerTitleMobile:"قم بتغيير مونر",moonerTitleFirstOpenMobile:"أضف مونر",moonerDescriptionOne:"مواصفات المونر الأول",moonerDescriptionTwo:"مواصفات المونر الثاني",moonerDescriptionTwoMobile:"مواصفات المونر الثاني موبايل",moonerLabel:"اسم المونر",moonerLabelSelector:"اختيار اسم المونر",moonerCtaFirstOpen:"دعوة لتحريك المونر افتح أولاً",moonerCta:"دعوة لتحريك المونر",moonerCtaCancel:"دعوة لالغاء لتحريك المونر",birthday_label:"تاريخ الميلاد",genderFemale:"فتاة",genderMale:"صبي",or:"أو",do:"do",da:"da",editCharacter:"تحرير شخصية",Pele:"البشرة",Olhos:"عيون",Cabelo:"شعر",Roupa:"ملابس","Tênis":"حذاء رياضي","Óculos":"نظارات",continue:"متابعة"},tr:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Bir saniye",loadingPhrase:"Size özel kitabınız yükleniyor.",pages:"SAYFALAR",pagesLowercase:"Sayfalar",editArea:"Düzenleme Alanı",name:"Ad",dedication:"İthaf",writeDedication:"İthaf yazınız",shirtNumber:"Tişört Numarası",bookScript:"Kitabın Senaryosu",dateBirth:"Doğum Tarihi",editDateBirth:"Doğum Tarihini Düzenle",editName:"Küçüğün adını düzenle",kidName:"Ana kahramanın adını düzenle",reccomendName:"Sadece isim kullanmanız önerilir.",dedicationFree:"İthaf (ücretsiz)",cusutomDedication:"Kitapta basılacak olan ithafı özelleştirin.",messageDedication:"İthaf Metni",dedcationPlaceholder:"Maceralarla dolu bir hayat diliyorum.",editShirt:"Küçüğün tişörtünü düzenle",chooseScript:"Senaryo seç",choosePetLabel1:"Sana yardımcı olacak ikiliyi seç",choosePetLabel2:"Bu macerada Turma da Monica'yla beraber Sansao'yu bulacaklar.",day:"Gün",month:"Ay",pet:"Evcil hayvan",changePet:"Öyküde evcil hayvanı değiştir",petDescription1:"Bu evcil hayvan,",petDescription2:"tüm öykü boyunca size eşlik edecektir.",typePetname:"Evcil hayvanın adını buraya yaz",selectPet:"Evcil hayvanı seç",update:"GÜNCELLE",cancel:"İptal et",moonerLabelSidebar:"Mooner",moonerTitle:"Öyküde mooner'ı değiştir",moonerTitleFirstOpen:"Öyküye bir mooner ekle",moonerTitleMobile:"Mooner'ı değiştir",moonerTitleFirstOpenMobile:"Bir mooner ekle",moonerDescriptionOne:"O, <span>",moonerDescriptionTwo:"</span> tüm öykü boyunca eşlik edecektir.",moonerDescriptionTwoMobile:"öyküde.",moonerLabel:"Mooner'ın Adı",moonerLabelSelector:"Bir mooner seç",moonerCtaFirstOpen:"Hazır, öyküyü görüntüle",moonerCta:"Güncelle",moonerCtaCancel:"İptal et",birthday_label:"Doğum Tarihi",genderFemale:"Kız",genderMale:"Erkek",or:"veya",do:"nin",da:"nın",editCharacter:"Karakteri Düzenle",Pele:"Ten Rengi",Olhos:"Göz",Cabelo:"Saç",Roupa:"Giysi","Tênis":"Spor Ayakkabısı","Óculos":"Gözlük",continue:"DEVAM ET"}},S=require("axios"),P=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel",class:"rtl"===t.dir?"rtl":""},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n "+t._s(t.lang.editCharacter)+" "+t._s(t.characterIsMale?t.lang.do:t.lang.da)+"\n "),a("b",[t._v(t._s(t.characterName))])]),t._v(" "),a("div",{staticClass:"customization-categories"},[t._l(t.categoriesAssets.categories,(function(e){return a("a",{directives:[{name:"show",rawName:"v-show",value:"mooner"!==e.code&&"pet"!==e.code,expression:"category.code !== 'mooner' && category.code !== 'pet'"}],key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedCategory,"is-disabled":t.isCategoryDisabled(e)},"category-"+e.code],attrs:{id:e.code},on:{click:function(a){return t.handleSelectCategory(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n "+t._s(t.lang[e.name])+"\n ")])],1)})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("a",{key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedGroup},"category-"+e.code],on:{click:function(a){return t.handleSelectGroup(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n "+t._s(t.lang[e.name])+"\n ")])],1)}))],2)]),t._v(" "),a("div",{staticClass:"customization-panel-body",attrs:{id:"customization-panel-body"}},[t._l(t.visibleCategoriesCustomizations,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedCategory,expression:"selectedCategory"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.id),relatedCustomization:t.getCustomizationByCategoryId(e.depends_category),disabledCategories:t.disabledCategories,removableCategory:!e.required},on:{"update:customization":t.handleUpdateCustomization}})})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedGroup,expression:"selectedGroup"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.assets.subcategories[0].parent_id),removableCategory:!e.required,customizations:t.customizations},on:{"update:customization":t.handleUpdateCustomization}})}))],2),t._v(" "),a("div",{staticClass:"helper"},[a("div",{ref:"error",staticClass:"error",domProps:{innerHTML:t._s(t.error)}}),t._v(" "),a("div",{staticClass:"btn-avatar",class:t.dir,on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[a("span",[t._v(t._s(t.lang.continue))]),t._v(" "),a("Icon",{attrs:{name:"chevron-right",fill:"#fff",size:"md",stroke:"transparent"}})],1),t._v(" "),a("div",{staticClass:"btn-avatar-loading"},[a("span",{staticClass:"btn-avatar-loading-content",domProps:{innerHTML:t._s(t.loadingContent)}}),t._v(" "),a("span",{staticClass:"btn-avatar-loading-icon"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M26.383 12.728c-.433-.47-.986-.727-1.48-.728-.293 0-.569.092-.776.29l-2.306 2.179v-.002l-3.136 2.963c-.055.052-.093.109-.13.16l-3.008 2.841-3.545-3.855c-.217-.235-.526-.347-.858-.347-.47 0-.992.217-1.424.625-.465.44-.719 1-.72 1.5 0 .298.092.576.287.788l3.25 3.533 1.823 1.981c.214.235.52.344.85.344.147 0 .295-.021.448-.061l.085.002c.292.001.566-.087.776-.284l5.44-5.14c.054-.052.094-.11.13-.162l4.567-4.315c.234-.22.344-.532.344-.87 0-.474-.215-1.002-.617-1.442z"}})])])])])])])},staticRenderFns:[]},(function(t){t&&t("data-v-2ca543a8_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.postingCharacter{height:100vh}.customization-panel-heading b{font-weight:400;color:#923fda;text-transform:capitalize}.customization-panel{z-index:100;position:fixed;width:520px;height:100%;top:0;right:0;background:#f8f7fc;border-left:1px solid #dfdae4;transition:all .3s;overflow:hidden}.customization-panel.rtl{left:0;right:auto}.customization-panel.rtl .btn-avatar .icon{right:auto;left:0;transform:rotate(180deg)}@media (max-width:992px){.customization-panel{width:100%;bottom:0;top:unset;min-height:180px;height:auto}}.customization-panel-head{background:#fff;border-bottom:1px solid #f0ebf5;box-shadow:0 10px 26px 0 #d7d1ef;position:relative;z-index:150}@media (max-width:992px){.customization-panel-head{box-shadow:0 0 26px 0 #d7d1ef}}.customization-panel-heading{height:80px;max-width:100%;line-height:80px;text-align:center;font-family:Roboto,sans-serif;color:#afa2ba;background:#fff;border-bottom:1px solid #dfdae4;font-size:16px}@media (max-width:992px){.customization-panel-heading{display:none}}.customization-panel-body{height:70%;scroll-behavior:smooth;padding-bottom:70px;z-index:20;overflow-y:auto;position:relative}.customization-panel-body::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.customization-panel-body::-webkit-scrollbar{width:7px;background-color:transparent}.customization-panel-body::-webkit-scrollbar-thumb{border-radius:20px;background-color:#e4e4e4}@media (max-width:992px){.customization-panel-body{padding-bottom:0;z-index:0}}.customization-panel .helper{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #dfdae4;box-shadow:0 0 26px 0 #d7d1ef;padding:.7619047619rem 1.1428571429rem;display:flex;align-items:center;justify-content:center;z-index:999}@media (max-width:992px){.customization-panel .helper{display:none;z-index:0}}.customization-panel .helper .error{background:red;width:100%;color:#fff;font-family:Roboto,sans-serif;font-size:14px;padding:15px 0;text-align:center;text-transform:uppercase;position:absolute;transition:all .3s;top:-45px;opacity:0}.btn-avatar{width:100%;height:65px;font-family:Nunito;font-weight:900;padding:0!important;background:#12d3db;background-size:200%;background-position-x:99%;box-shadow:0 .2381rem .95238rem 0 #89e6e8;border-radius:1.90476rem;color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);border:0;font-size:14px;letter-spacing:.0381rem;line-height:1.2rem;position:relative;display:flex;align-items:center;justify-content:center}.btn-avatar:hover{box-shadow:0 .2381rem .95238rem 0 #89e6e8;-webkit-transform:translateY(-.09524rem);transform:translateY(-.09524rem);cursor:pointer;background-position-x:0;-webkit-transform:translateY(-.14286rem);transform:translateY(-.14286rem);color:#fff}.btn-avatar:active,.btn-avatar:focus{outline:0;box-shadow:0 0 0 #89e6e8;background-position-x:0;-webkit-transform:translateY(.14286rem) scale(.97);transform:translateY(.14286rem) scale(.97)}.btn-avatar .icon{position:absolute;display:flex;justify-content:center;align-items:center;right:0;top:0;margin:15px!important;bottom:0}.btn-avatar .icon path,.btn-avatar .icon svg{fill:#fff;stroke:#fff}@media (max-width:992px){.btn-avatar{display:none!important}}.btn-avatar-mobile{display:none!important;border:500px;background:#12d3db;border-radius:500px;position:fixed;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#fff;line-height:1;height:2rem;padding:0 .7619047619rem!important;font-size:.4761904762rem;padding:.7619047619rem 1.1428571429rem;width:fit-content;box-shadow:none}@media (max-width:479px){.btn-avatar-mobile{display:flex!important;font-size:1.1214953271rem;padding:1.4953271028rem 2.2429906542rem!important;height:3.9252336449rem;font-size:.9345794393rem;padding:0 1.4953271028rem!important;top:.7476635514rem!important;right:2.2429906542rem!important;z-index:9999}.btn-avatar-mobile .icon{display:none!important}}.btn-avatar-mobile.width-circle{line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-avatar-mobile.width-circle{width:4.1121495327rem;height:4.1121495327rem}}.btn-avatar-mobile.is-inverted{background:#fff;color:#12d3db}.btn-avatar-mobile.is-inverted path,.btn-avatar-mobile.is-inverted svg{fill:#12d3db;stroke:transparent}.btn-avatar-mobile:hover{cursor:pointer}.btn-avatar-mobile:hover:not(.is-inverted){background:#17b8bc}.btn-avatar-mobile:hover.is-inverted{opacity:.8}.btn-avatar-mobile:active,.btn-avatar-mobile:focus{outline:0}.btn-avatar-mobile:active:not(.is-inverted),.btn-avatar-mobile:focus:not(.is-inverted){background:#17b8bc}.btn-avatar-mobile:active.is-inverted,.btn-avatar-mobile:focus.is-inverted{opacity:.8}.btn-avatar-mobile.is-disabled,.btn-avatar-mobile[disabled]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-avatar-mobile.is-disabled path,.btn-avatar-mobile.is-disabled svg,.btn-avatar-mobile[disabled] path,.btn-avatar-mobile[disabled] svg{fill:#fff;stroke:transparent}.btn-avatar-mobile.rtl{right:0;margin-left:8px}.customization-categories{display:flex;align-items:center;align-content:center;padding:.7619047619rem .7619047619rem}@media (max-width:992px){.customization-categories{padding:0}}.customization-categories .category-vestuario{display:none!important}.customization-categories-item{position:relative;font-size:inherit;flex-basis:0;flex-grow:1;max-width:100%;height:100%;text-align:center}.customization-categories-item:hover{cursor:pointer}.customization-categories-item:hover .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item{height:50px;display:flex;justify-content:center;align-items:center;border:0}}.customization-categories-item-icon{height:52px;width:52px;display:block;border-radius:30px;margin:auto}.customization-categories-item-icon-placeholder{background-color:#dfdae4;border-radius:2px}@media (max-width:992px){.customization-categories-item-icon{display:none}}.customization-categories-item-label{font-weight:400;display:block;font-size:12px;color:#000;text-transform:capitalize!important;font-family:Roboto;padding-top:.380952381rem}@media (max-width:992px){.customization-categories-item-label{margin:0}}.customization-categories-item:first-child{border-left:none}.customization-categories-item.is-selected .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item.is-selected:after{content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;background:#12d3db}}@media (max-width:992px) and (max-width:992px){.customization-categories-item.is-selected:after{bottom:0}}.customization-categories-item.is-disabled{opacity:.6}.btn-avatar-reduced{background:#2dd4d9!important;width:65px!important;cursor:wait}@media (max-width:479px){.btn-avatar-reduced{width:40px!important;height:40px!important}}.btn-avatar-loading-completed{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-position:0 0;background-repeat:no-repeat;-webkit-animation:1s loadingCompleted;-moz-animation:1s loadingCompleted;animation:1s loadingCompleted;cursor:wait}@-webkit-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@-moz-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}.btn-avatar-loading-started{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-repeat:no-repeat;background-position:41% 0;-webkit-animation:4s loadingPosition;-moz-animation:4s loadingPosition;animation:4s loadingPosition;transition:.3s;cursor:wait}@-webkit-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@-moz-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}.btn-avatar-loading{font-size:1.4285714286rem;display:none;opacity:0;transition:all .3s;font-size:14px;cursor:wait}.btn-avatar-loading .btn-avatar-loading-icon{display:none;opacity:0;align-items:center;justify-content:center}.btn-avatar-loading .btn-avatar-loading-icon svg{width:2.1904761905rem;height:2.1904761905rem}@media (max-width:479px){.btn-avatar-loading .btn-avatar-loading-icon svg{width:3.5514018692rem;height:3.5514018692rem}}.btn-avatar-loading .btn-avatar-loading-icon path,.btn-avatar-loading .btn-avatar-loading-icon svg{fill:#fff;stroke:#fff}@media (max-width:479px){.btn-avatar-loading{font-size:12px}.btn-avatar-loading .btn-avatar-loading-content{font-size:12px}}',map:void 0,media:void 0})}),{name:"CustomizationPanel",components:{CategoryCustomizations:k,Caption:z,Icon:C},props:{builderApi:{type:String,default:"https://builder.dentrodahistoria.com.br/api"},selectedCharacter:{type:Object,default:{}},characterSlug:{type:String,required:!0},characterId:{type:[Number,String],required:!0},characterTypeId:{type:[Number,String],required:!0},characterName:{type:String,required:!0},characterIsMale:{type:Boolean,required:!0},categoriesAssets:{type:Object,required:!0},disabledCategories:{type:Array,required:!1,default:function(){return[]}},customizations:{type:Array,required:!0},builderProductId:{type:[String,Number],required:!1,default:null},subscriptionId:{type:[Number,String],required:!0},stackId:{type:[Number,String],required:!0},userDataProperties:{type:Object,required:!0},builderLayoutId:{type:[Number,String],required:!1},language:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"pt"},dir:{type:String,default:"ltr",required:!1}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,lang:M[this.typeLanguage],loadingContent:screen.width<1023?"ENVIANDO":"ENVIANDO PERSONAGEM"}},mounted:function(){if(!document.body.getElementsByClassName("btn-avatar-mobile")[0]){var t=document.getElementsByClassName("btn-avatar")[0].cloneNode(!0);t.classList.add("btn-avatar-mobile"),document.body.appendChild(t),document.body.getElementsByClassName("btn-avatar-mobile")[0].addEventListener("click",this.generateAvatar)}var e=document.getElementsByClassName("top-bar")[0];if(screen.width<=1023&&e&&!e.getElementsByClassName("overlay-opacity")[0]){var a=document.getElementsByClassName("overlay-opacity")[0].cloneNode(!0);e.appendChild(a)}if(!document.body.getElementsByClassName("error-mobile")[0]){var i=document.getElementsByClassName("error")[0].cloneNode(!0);i.classList.add("error-mobile"),document.body.appendChild(i)}window.addEventListener("resize",this.screenResize),screen.width>1023?this.isMobile=!1:this.isMobile=!0},beforeDestroy:function(){document.body.getElementsByClassName("btn-avatar-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("btn-avatar-mobile")[0]),document.body.getElementsByClassName("error-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("error-mobile")[0])},computed:{showColorsCustomizations:function(){return!1},showSubcategoriesCustomizations:function(){return!1},visibleCategoriesCustomizations:function(){var t=this,e=[];return this.selectedCategory?e.push(this.selectedCategory):this.selectedCollection&&this.selectedCollection.categories.forEach((function(a){var i=t.categoriesAssets.categories.find((function(t){return t.id===a}));i&&e.push(i)})),e}},methods:{monthsHelper:function(t){switch(t){case 1:return"Janeiro";case 2:return"Fevereiro";case 3:return"Março";case 4:return"Abril";case 5:return"Maio";case 6:return"Junho";case 7:return"Julho";case 8:return"Agosto";case 9:return"Setembro";case 10:return"Outubro";case 11:return"Novembro";case 12:return"Dezembro"}},generateAvatar:function(){var t=this;return v(h().mark((function e(){var a,i,o,r,d,n,s,l,c,p,m,u;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t,o=!1,t.categoriesAssets.categories.forEach((function(e){e.required?((i=t.customizations.find((function(t){return e.id===t.categoryId})))||(i=t.disabledCategories.find((function(t){return e.id===t.categoryId}))),i||(o=!0,r=e)):(e.code.includes("mooner")||e.code.includes("pet"))&&(i=t.disabledCategories.find((function(t){return e.id===t.categoryId})))})),o){e.next=18;break}return t.$emit("startedMethod"),d=null,n=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&n.push(e)})),s={properties:a.userDataProperties,type:t.characterTypeId},l={custom_character:{character_id:t.characterId,product_id:t.builderProductId,type_id:t.characterTypeId,categories:n,user_data:s}},t.builderLayoutId&&(l.custom_character.layout_id=t.builderLayoutId),t.language&&(l.custom_character.language=t.language),e.next=14,S({method:"POST",url:"".concat(t.builderApi,"/customs_characters/"),headers:{"Content-Type":"application/json"},data:l}).then((function(t){return t})).catch((function(t){return t}));case 14:(c=e.sent)&&(200===c.status?t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:n,success:!0}):(console.log("tentou pegar o segundo request"),c&&c.response&&c.response.reques&&(p=JSON.parse(c.response.request.responseText),d=p?p.error:"Não foi possível gerar o avatar. Tente novamente."),d&&(t.error=d,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)),t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:n,success:!1}))),e.next=22;break;case 18:m=r.code,u="pele"===m?"Necessário selecionar um tom de pele":"Necessário selecionar um tipo de ".concat(m),screen.width>1023&&("roupa"===m||"tenis"===m)?(t.error=u,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)):(document.getElementsByClassName("error")[0].style.opacity="1",document.getElementsByClassName("error")[0].textContent=u,setTimeout((function(){document.getElementsByClassName("error")[0].style.opacity="0",document.getElementsByClassName("error")[0].textContent=""}),5e3)),t.$refs[m][0].click();case 22:case"end":return e.stop()}}),e)})))()},getCustomizationTitle:function(t){var e=t?t.toLowerCase():"";switch(e){case"pele":return"Tons de pele";default:return"Tipos de ".concat(e)}},getCustomizationByCategoryId:function(t){return this.customizations.find((function(e){return e.categoryId===t}))},handleSelectCategory:function(t){if(!this.isCategoryDisabled(t)&&this.selectedCategory!==t){this.selectedCharacter.slug;var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];"cabelo"===t.code||"olhos"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):"roupa"===t.code||"tenis"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-out"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0})),this.selectedGroup=null,this.selectedCollection=null,this.selectedCategory=t}},handleSelectGroup:function(t){if(this.selectedGroup!==t){if(screen.width<=1023){var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];this.selectedCharacter.slug;"acessorio"===t.code||"acessorios"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0}))}this.selectedCategory=null,this.selectedCollection=null,this.selectedGroup=t}},handleSelectCollection:function(t){this.selectedCollection!==t&&(this.selectedCategory=null,this.selectedGroup=null,this.selectedCollection=t)},handleUpdateCustomization:function(t){this.$emit("update:customization",t)},isCategoryDisabled:function(t){return void 0!==this.disabledCategories.find((function(e){return e.categoryId===t.id}))},screenResize:function(){if(screen.width>1023){document.getElementsByClassName("customization-preview-asset");
|
|
102
102
|
// const transform = "scale(1) translateY(0)"
|
|
103
103
|
// Array.from(avatar).forEach(piece => {
|
|
@@ -477,7 +477,7 @@ color:{type:String,default:"#68596E"},
|
|
|
477
477
|
* Type of font<br>
|
|
478
478
|
* Example: `Regular | Bold`
|
|
479
479
|
**/
|
|
480
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-07a7ccea",!1,void 0,!1,x,void 0,void 0),j=(require("axios"),b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"panel-book",class:[t.gridView?"":"grid",t.isMobile?"card-mobile":"card-desk"],style:t.colorsVar},[a("div",{staticClass:"flex-box-column"},[a("div",{staticClass:"flex-box-row"},[a("div",{class:["flex box-book no-padding"]},[a("span",{staticClass:"box-flag",style:"background-color:"+t.productColor+";"}),t._v(" "),t.productImage&&t.productImage?a("div",{staticClass:"image-box",class:[t.productType,t.productFormat]},["livro"===t.productType?a("div",{staticClass:"placeholder"},["quadrado"!==t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e(),t._v(" "),"quadrado"===t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e()]):t._e(),t._v(" "),"poster"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-load-frame_a3-loading.jpg",alt:""}})]):t._e(),t._v(" "),"wallpaper"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-wallpaper-loading.png",alt:""}})]):t._e(),t._v(" "),a("img",{staticClass:"lazy",attrs:{src:t.productImage}})]):a("div",{staticClass:"image-box",class:t.productFormat},["livro"===t.productType?a("div",{staticClass:"placeholder"},["quadrado"!==t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e(),t._v(" "),"quadrado"===t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e()]):t._e(),t._v(" "),"poster"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-load-frame_a3-loading.jpg",alt:""}})]):t._e(),t._v(" "),"wallpaper"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-wallpaper-loading.png",alt:""}})]):t._e(),t._v(" "),a("img",{staticClass:"lazy",attrs:{src:t.productImage}})]),t._v(" "),t.isMobile?a("div",{staticClass:"text-description"},[a("div",{staticClass:"text-description-title"},[t.product.protagonist?a("Heading",{attrs:{kind:"h2",size:"xxs",color:"#68596E"}},[t._v(t._s(t.product.protagonist))]):t._e(),t._v(" "),t.product.brand&&t.product.brand.name?a("Heading",{attrs:{kind:"h2",size:"xxs",color:"#68596E"}},[t._v(t._s(t.product.brand.name))]):t._e(),t._v(" "),t.product.title&&t.productColor?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.title))]):t._e(),t._v(" "),t.product.name&&t.productColor?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.name))]):t._e(),t._v(" "),t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.productDisplayDetails.cardText))]):t.product.description?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.description))]):t._e()],1),t._v(" "),!t.gridView&&t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("div",{class:[(t.gridView,"xs12")],domProps:{innerHTML:t._s(t.product.productDisplayDetails.cardText)}}):t._e(),t._v(" "),!t.gridView&&t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("div",{class:[(t.gridView,"xs12")],domProps:{innerHTML:t._s(t.product.productDisplayDetails.cardText)}}):t._e()]):t._e()]),t._v(" "),t.isMobile?t._e():a("div",{staticClass:"text-description"},[a("div",{staticClass:"text-description-title"},[t.product.brand&&t.product.brand.name?a("Heading",{attrs:{kind:"h2",size:"xs",color:"#68596E"}},[t._v(t._s(t.product.brand.name))]):t.product.protagonist&&t.product.protagonist?a("Heading",{attrs:{kind:"h2",size:"xs",color:"#68596E"}},[t._v(t._s(t.product.protagonist))]):t._e(),t._v(" "),t.product.title?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.title))]):t.product.name?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.name))]):t._e(),t._v(" "),t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.productDisplayDetails.cardText))]):t._e(),t._v(" "),t.product.description?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.description))]):t._e()],1),t._v(" "),!t.gridView&&t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("div",{class:[(t.gridView,"xs12")],domProps:{innerHTML:t._s(t.product.productDisplayDetails.cardText)}}):t._e()])]),t._v(" "),a("div",{staticClass:"flex-box-row-footer"},[a("div",{staticClass:"payment-box"},[t._l(t.product.productHighlightTags,(function(e,i){return a("div",{key:i,staticClass:"hightlight-flag"},[e.name.includes("Exp")?a("Icon",{attrs:{name:"speaker",size:"sm",stroke:"#4965bc"}}):e.name.includes("Autor")?a("Icon",{attrs:{name:"awards",size:"sm",stroke:"#4965bc"}}):t._e(),t._v(" "),a("div",[t._v(t._s(e.name))])],1)})),t._v(" "),t.productType?a("div",{staticClass:"hightlight-flag flag-type"},["wallpaper"===t.productType?a("div",[t._v("FUNDO DE TELA")]):"poster"===t.productType?a("div",[t._v("POSTER DECORATIVO")]):"livro"===t.productType?a("div",[t._v("LIVRO")]):t._e()]):t._e(),t._v(" "),t.product.deliveredKitItem&&!t.product.nextKitItem?a("div",{staticClass:"payment-flag text-green"},[a("Caption",{staticClass:"text-center caption",attrs:{type:"bold",color:"#fff"}},[t._v("Você já recebeu este kit")])],1):t._e(),t._v(" "),t.product.deliveredKitItem&&!t.product.nextKitItem?a("div",{staticClass:"payment-flag text-green"},[a("Caption",{staticClass:"text-center caption",attrs:{type:"bold",color:"#fff"}},[t._v("Você já recebeu este kit")])],1):t._e(),t._v(" "),t.product.nextKitItem&&!t.product.deliveredKitItem?a("div",{staticClass:"payment-flag text-orange"},[a("Caption",{staticClass:"text-center caption",attrs:{type:"bold",color:"#fff"}},[t._v("Próximos envios")])],1):t._e()],2),t._v(" "),a("Button",{staticClass:"btn-want-it",style:"color:"+t.productColor+" !important;border-color:"+t.productColor+"!important;",attrs:{kind:"ghost",size:"md",width:t.isMobile?"fluid":"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeBookItem(t.product)}}},[t._v(t._s(t.textCta))])],1)])])},staticRenderFns:[]},(function(t){t&&t("data-v-b111273e_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-b111273e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-b111273e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-b111273e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-b111273e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-b111273e]{font-size:14px}}@media (min-width:1024px){[data-v-b111273e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-b111273e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-b111273e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-b111273e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-b111273e]{font-size:1.56vw}}html[data-v-b111273e]{box-sizing:border-box}*[data-v-b111273e],[data-v-b111273e]::after,[data-v-b111273e]::before{box-sizing:border-box}.panel-book[data-v-b111273e]{background-color:#fff;border-radius:.380952381rem;box-shadow:0 2px 8px rgba(104,89,110,.24);transition:all .3s;overflow:hidden}.panel-book[data-v-b111273e]:hover{box-shadow:4px 16px 32px rgba(104,89,110,.24)}@media (max-width:479px){.panel-book[data-v-b111273e]{border-radius:1.4953271028rem}}[data-v-b111273e] .swiper-pagination-bullet-active{background:#923fda!important}.flex-box-column[data-v-b111273e]{display:flex;flex-direction:column;width:100%}.flex-box-row[data-v-b111273e]{display:flex;flex-direction:row;border-bottom:1px solid #dfdae4;flex-grow:1}@media (max-width:479px){.flex-box-row[data-v-b111273e]{border-bottom:none}}.subscription-select[data-v-b111273e]{position:relative;display:inline-block}.subscription-select:hover .menu-dropdown-parent[data-v-b111273e]{display:block}.menu-selector[data-v-b111273e]{background-color:#fff;text-align:left;position:relative}.menu-selector .chevron-right[data-v-b111273e]{position:absolute;right:0;bottom:0}.menu-selector .menu-dropdown-parent[data-v-b111273e]{padding-top:50px;margin-top:-50px;display:none}.menu-selector .menu-dropdown[data-v-b111273e]{position:absolute;border-top:10px solid #907feb;border-radius:10px;-webkit-box-shadow:0 2px 4px 0 rgba(175,162,186,.4);box-shadow:0 2px 4px 0 rgba(175,162,186,.4);background:#fff;padding:20px;padding-top:0;z-index:999;padding-bottom:0;margin:0 auto;left:0;right:0}.menu-selector .menu-dropdown[data-v-b111273e]:before{content:"";border:solid #907feb;border-width:0 3px 3px 0;display:inline-block;padding:3px;position:absolute;top:-13px;transform:rotate(-135deg);-webkit-transform:rotate(-135deg);left:0;right:0;width:3px;margin:auto}.menu-selector .menu-dropdown .subscription-item[data-v-b111273e]{font-family:Nunito;font-size:14px;font-weight:600;font-style:normal;font-stretch:normal;letter-spacing:normal;color:#68596e;border-bottom:1px solid #dfdae4;height:57px;position:relative;line-height:60px;display:block;width:100%;cursor:pointer}.menu-selector .heading-boxes[data-v-b111273e]{padding-top:1.1428571429rem;padding-left:1.1428571429rem;padding-right:1.7142857143rem;padding-bottom:0}.menu-selector .menu-item[data-v-b111273e]{margin-top:10px;padding-left:1.1428571429rem;background-color:#fff}.menu-selector .menu-item a[data-v-b111273e]{border-radius:0;color:#68596e;border-bottom:5px solid #fff;cursor:pointer;padding:10px 10px;margin-right:15px;text-decoration:none;display:inline-block;font-weight:600;font-family:Roboto;font-size:.7619047619rem}.menu-selector .menu-item a.active[data-v-b111273e]{color:#2dd3d8;border-bottom:5px solid #2dd3d8}.flagBox[data-v-b111273e]{width:5.7142857143rem;height:1.2380952381rem;border-radius:.2857142857rem;box-shadow:0 2px 5px 0 rgba(0,0,0,.17);background-color:#9378f0;font-family:Nunito;font-size:.4761904762rem;font-weight:900;font-stretch:normal;font-style:normal;line-height:2.4;letter-spacing:.56px;text-align:center;color:#fff;margin:0 auto;top:-13px;position:absolute;margin:0 auto;left:0;right:0;z-index:2}.flagBox.delivered[data-v-b111273e]{background-color:#00d16d}.image-box[data-v-b111273e]{width:100%;position:relative;border-radius:.1904761905rem;display:flex;background-size:cover}@media (max-width:479px){.image-box[data-v-b111273e]{max-width:13.0841121495rem;width:13.0841121495rem!important;top:-px-size("sm", 40px);border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.image-box img.lazy[data-v-b111273e]{display:block;border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem;width:7.7142857143rem;z-index:1;position:relative}@media (max-width:479px){.image-box img.lazy[data-v-b111273e]{width:13.0841121495rem!important;border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.image-box .placeholder[data-v-b111273e]{position:absolute;left:0;top:0;z-index:1;width:7.7142857143rem}.image-box .placeholder img[data-v-b111273e]{width:7.7142857143rem;display:block;margin:0 auto}@media (max-width:479px){.image-box .placeholder img[data-v-b111273e]{width:13.0841121495rem!important}}.image-box.livro[data-v-b111273e]{box-shadow:0 5px 15px rgba(104,89,110,.4);border-radius:.1904761905rem;overflow:hidden}.image-box.livro.retangular[data-v-b111273e]{min-width:6.6666666667rem}.image-box.livro.quadrado[data-v-b111273e]{min-width:6.6666666667rem;margin-bottom:.7619047619rem;background-size:cover}@media (max-width:479px){.image-box.livro.quadrado[data-v-b111273e]{height:13.0841121495rem!important;width:13.0841121495rem!important}}.image-box.livro.quadrado img[data-v-b111273e]{height:7.7142857143rem;width:7.7142857143rem}@media (max-width:479px){.image-box.livro.quadrado img[data-v-b111273e]{height:13.0841121495rem!important;width:13.0841121495rem!important}}.image-box.wallpaper[data-v-b111273e]::before{content:"";width:6.1428571429rem;height:10.7142857143rem;box-shadow:0 2px 12px 8px rgba(104,89,110,.24);display:block;position:absolute;top:0;left:0;right:0;border-radius:.9523809524rem;z-index:1;margin:0 auto}@media (max-width:479px){.image-box.wallpaper[data-v-b111273e]::before{width:10.2803738318rem;height:17.7570093458rem;top:.1869158879rem}}.image-box.poster[data-v-b111273e]::before{content:"";box-shadow:0 2px 12px 8px rgba(104,89,110,.24);display:block;position:absolute;top:0;left:0;right:0;border-radius:.9523809524rem;z-index:1;margin:0 auto;width:100%;height:100%}.kitBox[data-v-b111273e]{position:absolute;display:flex;width:100%;height:100%;color:#fff;align-items:center}.kitBox .blur[data-v-b111273e]{display:flex;position:absolute;z-index:1;width:100%;height:100%;background-color:rgba(104,89,110,.8);border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem}@media (max-width:479px){.kitBox .blur[data-v-b111273e]{border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.kitBox .box[data-v-b111273e]{display:flex;justify-content:center;align-items:center;flex-direction:column}.kitBox .box .icon-box[data-v-b111273e]{display:flex;justify-content:center;align-items:center;width:2.5714285714rem;height:2.5714285714rem;border-radius:50%;margin-bottom:8px;z-index:2}.kitBox .box .icon-box[data-v-b111273e] svg{fill:#fff;stroke:unset;width:1.5238095238rem;height:1.5238095238rem}@media (max-width:479px){.kitBox .box .icon-box[data-v-b111273e]{width:5.046728972rem;height:5.046728972rem}.kitBox .box .icon-box[data-v-b111273e] svg{width:2.9906542056rem;height:2.9906542056rem}}.kitBox div[data-v-b111273e]{display:block;width:100%;color:#fff;font-size:.6666666667rem;font-family:Nunito!important}@media (max-width:479px){.kitBox div[data-v-b111273e]{font-size:1.308411215rem}}.kitBox div b[data-v-b111273e]{color:#fff}.kitBox div svg path[data-v-b111273e]{fill:#fff}.text-description[data-v-b111273e]{display:block;text-align:left;font-family:Nunito;font-size:.6666666667rem;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.31;letter-spacing:normal;color:#68596e;background-color:#fff;flex-wrap:wrap;align-items:center;padding:1.1428571429rem;border-radius:.380952381rem;-webkit-border-radius:.380952381rem}@media (max-width:479px){.text-description[data-v-b111273e]{font-size:1.308411215rem;width:100%;padding:0;border:none;border-radius:.7476635514rem;-webkit-border-radius:.7476635514rem;margin-top:1.4953271028rem}}.text-description .text-description-title[data-v-b111273e]{max-width:100%;margin:0 auto}.text-description b[data-v-b111273e]{width:100%}.text-description p[data-v-b111273e]{width:100%}.box-book[data-v-b111273e]{z-index:2;position:relative;padding:1.1428571429rem}@media (max-width:479px){.box-book[data-v-b111273e]{padding:2.2429906542rem;padding-bottom:0;width:100%}}.box-book .box-flag[data-v-b111273e]{width:100%;height:7.1428571429rem;background-color:#01dce0;position:absolute;left:0;top:0;border-radius:.380952381rem 0 3.3333333333rem 3.3333333333rem}@media (max-width:479px){.box-book .box-flag[data-v-b111273e]{height:11.214953271rem;border-radius:0 0 14.0186915888rem 0;width:90%}}.flex-box-row-footer[data-v-b111273e]{display:flex;align-items:center;flex-direction:row;padding:.7619047619rem 1.1428571429rem}@media (max-width:479px){.flex-box-row-footer[data-v-b111273e]{padding:1.4953271028rem 2.2429906542rem;padding-bottom:2.2429906542rem;flex-wrap:wrap}}.button-box[data-v-b111273e]{padding:.7619047619rem 1.1428571429rem;justify-content:right;text-align:right}@media (max-width:479px){.button-box[data-v-b111273e]{padding:1.4953271028rem 2.2429906542rem;padding-bottom:0!important}}.payment-box[data-v-b111273e]{display:flex;flex-grow:1}@media (max-width:479px){.payment-box[data-v-b111273e]{flex-wrap:wrap;margin-bottom:1.4953271028rem}}.text-orange[data-v-b111273e]{background-color:#feaf00}.text-green[data-v-b111273e]{background-color:#00cf72}.payment-flag[data-v-b111273e]{display:flex;border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem;text-align:center;justify-content:center;align-items:center;padding:.380952381rem}.payment-flag[data-v-b111273e] .caption{line-height:1}b[data-v-b111273e]{font-weight:700!important}.hightlight-flag[data-v-b111273e]{padding:.380952381rem;border-radius:.1904761905rem;background:#e1f3fe;font-family:Roboto,sans-serif;font-size:.5714285714rem;font-weight:900;line-height:1;text-transform:uppercase;color:#4965bc;display:flex;align-content:center;flex-wrap:wrap;align-items:center;margin-right:.380952381rem}.hightlight-flag div[data-v-b111273e]{padding-top:2px}@media (max-width:479px){.hightlight-flag[data-v-b111273e]{width:100%;margin-bottom:.7476635514rem;padding:.7476635514rem;font-size:1.1214953271rem;margin-right:0;border-radius:.3738317757rem}.hightlight-flag[data-v-b111273e]:last-child{margin-bottom:0}}.hightlight-flag i[data-v-b111273e]{margin-right:.1904761905rem}@media (max-width:479px){.hightlight-flag i[data-v-b111273e]{margin-right:.3738317757rem}}.flag-type[data-v-b111273e]{color:var(--color)!important;position:relative;overflow:hidden;background:0 0}.flag-type div[data-v-b111273e]{position:relative;z-index:2}.flag-type[data-v-b111273e]::before{content:"";display:block;width:100%;height:100%;position:absolute;left:0;top:0;background-color:var(--color)!important;opacity:.3;z-index:1}',map:void 0,media:void 0})}),{name:"CardProduct",components:{
|
|
480
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-07a7ccea",!1,void 0,!1,x,void 0,void 0),j=(require("axios"),b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"panel-book",class:[t.gridView?"":"grid",t.isMobile?"card-mobile":"card-desk"],style:t.colorsVar},[a("div",{staticClass:"flex-box-column"},[a("div",{staticClass:"flex-box-row"},[a("div",{class:["flex box-book no-padding"]},[a("span",{staticClass:"box-flag",style:"background-color:"+t.productColor+";"}),t._v(" "),t.productImage&&t.productImage?a("div",{staticClass:"image-box",class:[t.productType,t.productFormat]},["livro"===t.productType?a("div",{staticClass:"placeholder"},["quadrado"!==t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e(),t._v(" "),"quadrado"===t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e()]):t._e(),t._v(" "),"poster"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-load-frame_a3-loading.jpg",alt:""}})]):t._e(),t._v(" "),"wallpaper"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-wallpaper-loading.png",alt:""}})]):t._e(),t._v(" "),a("img",{staticClass:"lazy",attrs:{src:t.productImage}})]):a("div",{staticClass:"image-box",class:t.productFormat},["livro"===t.productType?a("div",{staticClass:"placeholder"},["quadrado"!==t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e(),t._v(" "),"quadrado"===t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e()]):t._e(),t._v(" "),"poster"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-load-frame_a3-loading.jpg",alt:""}})]):t._e(),t._v(" "),"wallpaper"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-wallpaper-loading.png",alt:""}})]):t._e(),t._v(" "),a("img",{staticClass:"lazy",attrs:{src:t.productImage}})]),t._v(" "),t.isMobile?a("div",{staticClass:"text-description"},[a("div",{staticClass:"text-description-title"},[t.product.protagonist?a("Heading",{attrs:{kind:"h2",size:"xxs",color:"#68596E"}},[t._v(t._s(t.product.protagonist))]):t._e(),t._v(" "),t.product.brand&&t.product.brand.name?a("Heading",{attrs:{kind:"h2",size:"xxs",color:"#68596E"}},[t._v(t._s(t.product.brand.name))]):t._e(),t._v(" "),t.product.title&&t.productColor?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.title))]):t._e(),t._v(" "),t.product.name&&t.productColor?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.name))]):t._e(),t._v(" "),t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.productDisplayDetails.cardText))]):t.product.description?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.description))]):t._e()],1),t._v(" "),!t.gridView&&t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("div",{class:[(t.gridView,"xs12")],domProps:{innerHTML:t._s(t.product.productDisplayDetails.cardText)}}):t._e(),t._v(" "),!t.gridView&&t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("div",{class:[(t.gridView,"xs12")],domProps:{innerHTML:t._s(t.product.productDisplayDetails.cardText)}}):t._e()]):t._e()]),t._v(" "),t.isMobile?t._e():a("div",{staticClass:"text-description"},[a("div",{staticClass:"text-description-title"},[t.product.brand&&t.product.brand.name?a("Heading",{attrs:{kind:"h2",size:"xs",color:"#68596E"}},[t._v(t._s(t.product.brand.name))]):t.product.protagonist&&t.product.protagonist?a("Heading",{attrs:{kind:"h2",size:"xs",color:"#68596E"}},[t._v(t._s(t.product.protagonist))]):t._e(),t._v(" "),t.product.title?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.title))]):t.product.name?a("Heading",{attrs:{kind:"h2",size:"xs",color:t.productColor}},[t._v(t._s(t.product.name))]):t._e(),t._v(" "),t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.productDisplayDetails.cardText))]):t._e(),t._v(" "),t.product.description?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.product.description))]):t._e()],1),t._v(" "),!t.gridView&&t.product.productDisplayDetails&&t.product.productDisplayDetails.cardText?a("div",{class:[(t.gridView,"xs12")],domProps:{innerHTML:t._s(t.product.productDisplayDetails.cardText)}}):t._e()])]),t._v(" "),a("div",{staticClass:"flex-box-row-footer"},[a("div",{staticClass:"payment-box"},[t._l(t.product.productHighlightTags,(function(e,i){return a("div",{key:i,staticClass:"hightlight-flag"},[e.name.includes("Exp")?a("Icon",{attrs:{name:"speaker",size:"sm",stroke:"#4965bc"}}):e.name.includes("Autor")?a("Icon",{attrs:{name:"awards",size:"sm",stroke:"#4965bc"}}):t._e(),t._v(" "),a("div",[t._v(t._s(e.name))])],1)})),t._v(" "),t.productType?a("div",{staticClass:"hightlight-flag flag-type"},["wallpaper"===t.productType?a("div",[t._v("FUNDO DE TELA")]):"poster"===t.productType?a("div",[t._v("POSTER DECORATIVO")]):"livro"===t.productType?a("div",[t._v("LIVRO")]):t._e()]):t._e(),t._v(" "),t.product.deliveredKitItem&&!t.product.nextKitItem?a("div",{staticClass:"payment-flag text-green"},[a("Caption",{staticClass:"text-center caption",attrs:{type:"bold",color:"#fff"}},[t._v("Você já recebeu este kit")])],1):t._e(),t._v(" "),t.product.deliveredKitItem&&!t.product.nextKitItem?a("div",{staticClass:"payment-flag text-green"},[a("Caption",{staticClass:"text-center caption",attrs:{type:"bold",color:"#fff"}},[t._v("Você já recebeu este kit")])],1):t._e(),t._v(" "),t.product.nextKitItem&&!t.product.deliveredKitItem?a("div",{staticClass:"payment-flag text-orange"},[a("Caption",{staticClass:"text-center caption",attrs:{type:"bold",color:"#fff"}},[t._v("Próximos envios")])],1):t._e()],2),t._v(" "),a("Button",{staticClass:"btn-want-it",style:"color:"+t.productColor+" !important;border-color:"+t.productColor+"!important;",attrs:{kind:"ghost",size:"md",width:t.isMobile?"fluid":"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeBookItem(t.product)}}},[t._v(t._s(t.textCta))])],1)])])},staticRenderFns:[]},(function(t){t&&t("data-v-d43ead38_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-d43ead38]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-d43ead38]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-d43ead38]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-d43ead38]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-d43ead38]{font-size:14px}}@media (min-width:1024px){[data-v-d43ead38]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-d43ead38]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-d43ead38]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-d43ead38]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-d43ead38]{font-size:1.56vw}}html[data-v-d43ead38]{box-sizing:border-box}*[data-v-d43ead38],[data-v-d43ead38]::after,[data-v-d43ead38]::before{box-sizing:border-box}.panel-book[data-v-d43ead38]{background-color:#fff;border-radius:.380952381rem;box-shadow:0 2px 8px rgba(104,89,110,.24);transition:all .3s;overflow:hidden}.panel-book[data-v-d43ead38]:hover{box-shadow:4px 16px 32px rgba(104,89,110,.24)}@media (max-width:479px){.panel-book[data-v-d43ead38]{border-radius:1.4953271028rem}}[data-v-d43ead38] .swiper-pagination-bullet-active{background:#923fda!important}.flex-box-column[data-v-d43ead38]{display:flex;flex-direction:column;width:100%}.flex-box-row[data-v-d43ead38]{display:flex;flex-direction:row;border-bottom:1px solid #dfdae4;flex-grow:1}@media (max-width:479px){.flex-box-row[data-v-d43ead38]{border-bottom:none}}.subscription-select[data-v-d43ead38]{position:relative;display:inline-block}.subscription-select:hover .menu-dropdown-parent[data-v-d43ead38]{display:block}.menu-selector[data-v-d43ead38]{background-color:#fff;text-align:left;position:relative}.menu-selector .chevron-right[data-v-d43ead38]{position:absolute;right:0;bottom:0}.menu-selector .menu-dropdown-parent[data-v-d43ead38]{padding-top:50px;margin-top:-50px;display:none}.menu-selector .menu-dropdown[data-v-d43ead38]{position:absolute;border-top:10px solid #907feb;border-radius:10px;-webkit-box-shadow:0 2px 4px 0 rgba(175,162,186,.4);box-shadow:0 2px 4px 0 rgba(175,162,186,.4);background:#fff;padding:20px;padding-top:0;z-index:999;padding-bottom:0;margin:0 auto;left:0;right:0}.menu-selector .menu-dropdown[data-v-d43ead38]:before{content:"";border:solid #907feb;border-width:0 3px 3px 0;display:inline-block;padding:3px;position:absolute;top:-13px;transform:rotate(-135deg);-webkit-transform:rotate(-135deg);left:0;right:0;width:3px;margin:auto}.menu-selector .menu-dropdown .subscription-item[data-v-d43ead38]{font-family:Nunito;font-size:14px;font-weight:600;font-style:normal;font-stretch:normal;letter-spacing:normal;color:#68596e;border-bottom:1px solid #dfdae4;height:57px;position:relative;line-height:60px;display:block;width:100%;cursor:pointer}.menu-selector .heading-boxes[data-v-d43ead38]{padding-top:1.1428571429rem;padding-left:1.1428571429rem;padding-right:1.7142857143rem;padding-bottom:0}.menu-selector .menu-item[data-v-d43ead38]{margin-top:10px;padding-left:1.1428571429rem;background-color:#fff}.menu-selector .menu-item a[data-v-d43ead38]{border-radius:0;color:#68596e;border-bottom:5px solid #fff;cursor:pointer;padding:10px 10px;margin-right:15px;text-decoration:none;display:inline-block;font-weight:600;font-family:Roboto;font-size:.7619047619rem}.menu-selector .menu-item a.active[data-v-d43ead38]{color:#2dd3d8;border-bottom:5px solid #2dd3d8}.flagBox[data-v-d43ead38]{width:5.7142857143rem;height:1.2380952381rem;border-radius:.2857142857rem;box-shadow:0 2px 5px 0 rgba(0,0,0,.17);background-color:#9378f0;font-family:Nunito;font-size:.4761904762rem;font-weight:900;font-stretch:normal;font-style:normal;line-height:2.4;letter-spacing:.56px;text-align:center;color:#fff;margin:0 auto;top:-13px;position:absolute;margin:0 auto;left:0;right:0;z-index:2}.flagBox.delivered[data-v-d43ead38]{background-color:#00d16d}.image-box[data-v-d43ead38]{width:100%;position:relative;border-radius:.1904761905rem;display:flex;background-size:cover}@media (max-width:479px){.image-box[data-v-d43ead38]{max-width:13.0841121495rem;width:13.0841121495rem!important;top:-px-size("sm", 40px);border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.image-box img.lazy[data-v-d43ead38]{display:block;border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem;width:7.7142857143rem;z-index:1;position:relative}@media (max-width:479px){.image-box img.lazy[data-v-d43ead38]{width:13.0841121495rem!important;border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.image-box .placeholder[data-v-d43ead38]{position:absolute;left:0;top:0;z-index:1;width:7.7142857143rem}.image-box .placeholder img[data-v-d43ead38]{width:7.7142857143rem;display:block;margin:0 auto}@media (max-width:479px){.image-box .placeholder img[data-v-d43ead38]{width:13.0841121495rem!important}}.image-box.livro[data-v-d43ead38]{box-shadow:0 5px 15px rgba(104,89,110,.4);border-radius:.1904761905rem;overflow:hidden}.image-box.livro.retangular[data-v-d43ead38]{min-width:6.6666666667rem}.image-box.livro.quadrado[data-v-d43ead38]{min-width:6.6666666667rem;margin-bottom:.7619047619rem;background-size:cover}@media (max-width:479px){.image-box.livro.quadrado[data-v-d43ead38]{height:13.0841121495rem!important;width:13.0841121495rem!important}}.image-box.livro.quadrado img[data-v-d43ead38]{height:7.7142857143rem;width:7.7142857143rem}@media (max-width:479px){.image-box.livro.quadrado img[data-v-d43ead38]{height:13.0841121495rem!important;width:13.0841121495rem!important}}.image-box.wallpaper[data-v-d43ead38]::before{content:"";width:6.1428571429rem;height:10.7142857143rem;box-shadow:0 2px 12px 8px rgba(104,89,110,.24);display:block;position:absolute;top:0;left:0;right:0;border-radius:.9523809524rem;z-index:1;margin:0 auto}@media (max-width:479px){.image-box.wallpaper[data-v-d43ead38]::before{width:10.2803738318rem;height:17.7570093458rem;top:.1869158879rem}}.image-box.poster[data-v-d43ead38]::before{content:"";box-shadow:0 2px 12px 8px rgba(104,89,110,.24);display:block;position:absolute;top:0;left:0;right:0;border-radius:.9523809524rem;z-index:1;margin:0 auto;width:100%;height:100%}.kitBox[data-v-d43ead38]{position:absolute;display:flex;width:100%;height:100%;color:#fff;align-items:center}.kitBox .blur[data-v-d43ead38]{display:flex;position:absolute;z-index:1;width:100%;height:100%;background-color:rgba(104,89,110,.8);border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem}@media (max-width:479px){.kitBox .blur[data-v-d43ead38]{border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.kitBox .box[data-v-d43ead38]{display:flex;justify-content:center;align-items:center;flex-direction:column}.kitBox .box .icon-box[data-v-d43ead38]{display:flex;justify-content:center;align-items:center;width:2.5714285714rem;height:2.5714285714rem;border-radius:50%;margin-bottom:8px;z-index:2}.kitBox .box .icon-box[data-v-d43ead38] svg{fill:#fff;stroke:unset;width:1.5238095238rem;height:1.5238095238rem}@media (max-width:479px){.kitBox .box .icon-box[data-v-d43ead38]{width:5.046728972rem;height:5.046728972rem}.kitBox .box .icon-box[data-v-d43ead38] svg{width:2.9906542056rem;height:2.9906542056rem}}.kitBox div[data-v-d43ead38]{display:block;width:100%;color:#fff;font-size:.6666666667rem;font-family:Nunito!important}@media (max-width:479px){.kitBox div[data-v-d43ead38]{font-size:1.308411215rem}}.kitBox div b[data-v-d43ead38]{color:#fff}.kitBox div svg path[data-v-d43ead38]{fill:#fff}.text-description[data-v-d43ead38]{display:block;text-align:left;font-family:Nunito;font-size:.6666666667rem;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.31;letter-spacing:normal;color:#68596e;background-color:#fff;flex-wrap:wrap;align-items:center;padding:1.1428571429rem;border-radius:.380952381rem;-webkit-border-radius:.380952381rem}@media (max-width:479px){.text-description[data-v-d43ead38]{font-size:1.308411215rem;width:100%;padding:0;border:none;border-radius:.7476635514rem;-webkit-border-radius:.7476635514rem;margin-top:1.4953271028rem}}.text-description .text-description-title[data-v-d43ead38]{max-width:100%;margin:0 auto}.text-description b[data-v-d43ead38]{width:100%}.text-description p[data-v-d43ead38]{width:100%}.box-book[data-v-d43ead38]{z-index:2;position:relative;padding:1.1428571429rem}@media (max-width:479px){.box-book[data-v-d43ead38]{padding:2.2429906542rem;padding-bottom:0;width:100%}}.box-book .box-flag[data-v-d43ead38]{width:100%;height:7.1428571429rem;background-color:#01dce0;position:absolute;left:0;top:0;border-radius:.380952381rem 0 3.3333333333rem 3.3333333333rem}@media (max-width:479px){.box-book .box-flag[data-v-d43ead38]{height:11.214953271rem;border-radius:0 0 14.0186915888rem 0;width:90%}}.flex-box-row-footer[data-v-d43ead38]{display:flex;align-items:center;flex-direction:row;padding:.7619047619rem 1.1428571429rem}@media (max-width:479px){.flex-box-row-footer[data-v-d43ead38]{padding:1.4953271028rem 2.2429906542rem;padding-bottom:2.2429906542rem;flex-wrap:wrap}}.button-box[data-v-d43ead38]{padding:.7619047619rem 1.1428571429rem;justify-content:right;text-align:right}@media (max-width:479px){.button-box[data-v-d43ead38]{padding:1.4953271028rem 2.2429906542rem;padding-bottom:0!important}}.payment-box[data-v-d43ead38]{display:flex;flex-grow:1}@media (max-width:479px){.payment-box[data-v-d43ead38]{flex-wrap:wrap;margin-bottom:1.4953271028rem}}.text-orange[data-v-d43ead38]{background-color:#feaf00}.text-green[data-v-d43ead38]{background-color:#00cf72}.payment-flag[data-v-d43ead38]{display:flex;border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem;text-align:center;justify-content:center;align-items:center;padding:.380952381rem}.payment-flag[data-v-d43ead38] .caption{line-height:1}b[data-v-d43ead38]{font-weight:700!important}.hightlight-flag[data-v-d43ead38]{padding:.380952381rem;border-radius:.1904761905rem;background:#e1f3fe;font-family:Roboto,sans-serif;font-size:.5714285714rem;font-weight:900;line-height:1;text-transform:uppercase;color:#4965bc;display:flex;align-content:center;flex-wrap:wrap;align-items:center;margin-right:.380952381rem}.hightlight-flag div[data-v-d43ead38]{padding-top:2px}@media (max-width:479px){.hightlight-flag[data-v-d43ead38]{width:100%;margin-bottom:.7476635514rem;padding:.7476635514rem;font-size:1.1214953271rem;margin-right:0;border-radius:.3738317757rem}.hightlight-flag[data-v-d43ead38]:last-child{margin-bottom:0}}.hightlight-flag i[data-v-d43ead38]{margin-right:.1904761905rem}@media (max-width:479px){.hightlight-flag i[data-v-d43ead38]{margin-right:.3738317757rem}}.flag-type[data-v-d43ead38]{color:var(--color)!important;position:relative;overflow:hidden;background:0 0}.flag-type div[data-v-d43ead38]{position:relative;z-index:2}.flag-type[data-v-d43ead38]::before{content:"";display:block;width:100%;height:100%;position:absolute;left:0;top:0;background-color:var(--color)!important;opacity:.3;z-index:1}',map:void 0,media:void 0})}),{name:"CardProduct",components:{
|
|
481
481
|
//Logo,
|
|
482
482
|
Heading:D,Paragraph:R,Button:A,Icon:C},computed:{
|
|
483
483
|
// ...mapGetters({
|
|
@@ -485,29 +485,29 @@ Heading:D,Paragraph:R,Button:A,Icon:C},computed:{
|
|
|
485
485
|
// })
|
|
486
486
|
//computed: {
|
|
487
487
|
colorsVar:function(){return{"--color":this.productColor}}//},
|
|
488
|
-
},directives:{},props:{product:{type:Object,required:!0},textCta:{type:String,required:!1,default:"QUERO ESTE"}},data:function(){return{gridView:!0,observer:null,isMobile:!1,productColor:"rgb(23, 184, 188)",productImage:"",productType:null,productFormat:"retangular"}},mounted:function(){
|
|
488
|
+
},directives:{},props:{product:{type:Object,required:!0},textCta:{type:String,required:!1,default:"QUERO ESTE"}},data:function(){return{gridView:!0,observer:null,isMobile:!1,productColor:"rgb(23, 184, 188)",productImage:"",productType:null,productFormat:"retangular"}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),
|
|
489
489
|
// 1 - Detectar se o produto tem cor
|
|
490
|
-
|
|
490
|
+
t.product.color&&(t.productColor=t.product.color),
|
|
491
491
|
// 2 - Detectar objeto da imagem e aplicar
|
|
492
|
-
|
|
492
|
+
t.product.coverImage2xUrl&&(t.productImage=t.product.coverImage2xUrl),t.product.productDisplayDetails&&t.product.productDisplayDetails.coverImage&&(t.productImage=t.product.productDisplayDetails.coverImage),
|
|
493
493
|
// 3 - Detectar o tipo de produto
|
|
494
|
-
|
|
494
|
+
t.product.tagSpecs&&t.product.tagSpecs.productType&&(t.productType=t.product.tagSpecs.productType),
|
|
495
495
|
//console.log("tagSpecs 1", self.product.tagSpecs);
|
|
496
|
-
|
|
496
|
+
t.product.tagSpecs&&t.product.tagSpecs.productFormat&&(
|
|
497
497
|
//console.log("tagSpecs", self.product.tagSpecs);
|
|
498
|
-
|
|
498
|
+
t.productFormat=t.product.tagSpecs.productFormat)},methods:{addAlphaToColor:function(t,e){
|
|
499
499
|
// Remove the '#' character if present
|
|
500
500
|
t=t.replace(/^#/,"");
|
|
501
501
|
// Parse the hex color components
|
|
502
|
-
var a=parseInt(t,16),i=a>>8&255,o=255&a;return"rgba(".concat(a>>16&255,", ").concat(i,", ").concat(o,", ").concat(e,")")},detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},changeBookItem:function(t){this.$emit("click",t)}}},"data-v-
|
|
502
|
+
var a=parseInt(t,16),i=a>>8&255,o=255&a;return"rgba(".concat(a>>16&255,", ").concat(i,", ").concat(o,", ").concat(e,")")},detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},changeBookItem:function(t){this.$emit("click",t)}}},"data-v-d43ead38",!1,void 0,!1,x,void 0,void 0)),$=(require("axios"),b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.productImage?a("div",{staticClass:"image-box",class:[t.productType,t.productFormat]},["livro"===t.productType||"book"===t.productType?a("div",{staticClass:"placeholder"},["quadrado"===t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e(),t._v(" "),"retangular"===t.productFormat?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",alt:""}}):t._e()]):t._e(),t._v(" "),"poster"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-load-frame_a3-loading.jpg",alt:""}})]):t._e(),t._v(" "),"wallpaper"===t.productType?a("div",{staticClass:"placeholder"},[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-wallpaper-loading.png",alt:""}})]):t._e(),t._v(" "),a("div",{staticClass:"lens"},["livro"===t.productType||"book"===t.productType?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/book-cover-overlay.png",alt:""}}):t._e(),t._v(" "),"wallpaper"===t.productType?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-wallpaper-wallpaper@2x.png",alt:""}}):t._e(),t._v(" "),"poster"===t.productType?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/product-type-a3-frame-poster@2x.png",alt:""}}):t._e()]),t._v(" "),a("img",{staticClass:"lazy",attrs:{src:t.productImage}})]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-6886d92d_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-6886d92d]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6886d92d]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6886d92d]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6886d92d]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6886d92d]{font-size:14px}}@media (min-width:1024px){[data-v-6886d92d]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6886d92d]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6886d92d]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6886d92d]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6886d92d]{font-size:1.56vw}}html[data-v-6886d92d]{box-sizing:border-box}*[data-v-6886d92d],[data-v-6886d92d]::after,[data-v-6886d92d]::before{box-sizing:border-box}.panel-book[data-v-6886d92d]{background-color:#fff;border-radius:.380952381rem;box-shadow:0 2px 8px rgba(104,89,110,.24);transition:all .3s;overflow:hidden}.panel-book[data-v-6886d92d]:hover{box-shadow:4px 16px 32px rgba(104,89,110,.24)}@media (max-width:479px){.panel-book[data-v-6886d92d]{border-radius:1.4953271028rem}}[data-v-6886d92d] .swiper-pagination-bullet-active{background:#923fda!important}.flex-box-column[data-v-6886d92d]{display:flex;flex-direction:column;width:100%}.flex-box-row[data-v-6886d92d]{display:flex;flex-direction:row;border-bottom:1px solid #dfdae4;flex-grow:1}@media (max-width:479px){.flex-box-row[data-v-6886d92d]{border-bottom:none}}.subscription-select[data-v-6886d92d]{position:relative;display:inline-block}.subscription-select:hover .menu-dropdown-parent[data-v-6886d92d]{display:block}.image-box[data-v-6886d92d]{width:100%;position:relative;border-radius:.1904761905rem;display:flex;background-size:cover}@media (max-width:479px){.image-box[data-v-6886d92d]{max-width:13.0841121495rem;top:-px-size("sm", 40px);border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.image-box img.lazy[data-v-6886d92d]{display:block;border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem;width:8.4761904762rem;z-index:1;position:relative}@media (max-width:479px){.image-box img.lazy[data-v-6886d92d]{width:100%!important;border-radius:.3738317757rem;-webkit-border-radius:.3738317757rem}}.image-box .placeholder[data-v-6886d92d]{width:100%;height:100%;position:absolute;left:0;top:0;z-index:1}.image-box .placeholder img[data-v-6886d92d]{width:100%;height:100%;display:block;margin:0 auto}.image-box .lens[data-v-6886d92d]{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%}.image-box .lens img[data-v-6886d92d]{width:100%;height:100%;display:block;margin:0 auto}.image-box.livro[data-v-6886d92d]{box-shadow:0 2px 8px rgba(104,89,110,.24);border-radius:.1904761905rem;overflow:hidden;max-width:8.4761904762rem;width:100%}.image-box.livro.retangular[data-v-6886d92d]{max-width:8.4761904762rem;width:100%}.image-box.livro.quadrado[data-v-6886d92d]{width:7.5714285714rem;margin-bottom:.7619047619rem;background-size:cover}@media (max-width:479px){.image-box.livro.quadrado[data-v-6886d92d]{width:13.0841121495rem!important}}.image-box.livro.quadrado img[data-v-6886d92d]{width:7.619047619rem}@media (max-width:479px){.image-box.livro.quadrado img[data-v-6886d92d]{width:100%!important}}.image-box.wallpaper[data-v-6886d92d]{position:relative;width:8.4761904762rem;min-height:12.3333333333rem;padding:0;padding-left:.8571428571rem;padding-right:.8571428571rem}@media (max-width:479px){.image-box.wallpaper[data-v-6886d92d]{width:16.6355140187rem;padding:0;padding-left:1.4953271028rem;padding-right:1.4953271028rem}}.image-box.wallpaper[data-v-6886d92d]::before{content:"";width:6.1428571429rem;height:10.7142857143rem;box-shadow:0 2px 8px rgba(104,89,110,.24);display:block;position:absolute;top:0;left:0;right:0;border-radius:.9523809524rem;z-index:1;margin:0 auto}.image-box.wallpaper .lazy[data-v-6886d92d]{margin:0 auto!important;width:100%!important;height:100%!important;border-radius:1.1428571429rem}.image-box.poster[data-v-6886d92d]{position:relative;width:8.4761904762rem;min-height:10.7142857143rem;padding:1.1428571429rem;border-radius:0}@media (max-width:479px){.image-box.poster[data-v-6886d92d]{width:16.6355140187rem;padding:1.4953271028rem}}.image-box.poster[data-v-6886d92d]::before{content:"";width:100%;height:100%;box-shadow:0 2px 8px rgba(104,89,110,.24);display:block;position:absolute;top:0;left:0;right:0;border-radius:0;z-index:1}.image-box.poster .lazy[data-v-6886d92d]{margin:0 auto!important;width:100%!important;height:100%!important;border-radius:0}.box-book[data-v-6886d92d]{z-index:2;position:relative;padding:1.1428571429rem}@media (max-width:479px){.box-book[data-v-6886d92d]{padding:2.2429906542rem;padding-bottom:0}}.box-book .box-flag[data-v-6886d92d]{width:100%;height:7.1428571429rem;background-color:#01dce0;position:absolute;left:0;top:0;border-radius:.380952381rem 0 3.3333333333rem 3.3333333333rem}@media (max-width:479px){.box-book .box-flag[data-v-6886d92d]{height:11.214953271rem;border-radius:0 0 14.0186915888rem 0;width:90%}}.flex-box-row-footer[data-v-6886d92d]{display:flex;align-items:center;flex-direction:row;padding:.7619047619rem 1.1428571429rem}@media (max-width:479px){.flex-box-row-footer[data-v-6886d92d]{padding:1.4953271028rem 2.2429906542rem;padding-bottom:2.2429906542rem;flex-wrap:wrap}}.button-box[data-v-6886d92d]{padding:.7619047619rem 1.1428571429rem;justify-content:right;text-align:right}@media (max-width:479px){.button-box[data-v-6886d92d]{padding:1.4953271028rem 2.2429906542rem;padding-bottom:0!important}}.payment-box[data-v-6886d92d]{display:flex;flex-grow:1}@media (max-width:479px){.payment-box[data-v-6886d92d]{flex-wrap:wrap;margin-bottom:1.4953271028rem}}.text-orange[data-v-6886d92d]{background-color:#feaf00}.text-green[data-v-6886d92d]{background-color:#00cf72}.payment-flag[data-v-6886d92d]{display:flex;border-radius:.1904761905rem;-webkit-border-radius:.1904761905rem;text-align:center;justify-content:center;align-items:center;padding:.380952381rem}.payment-flag[data-v-6886d92d] .caption{line-height:1}b[data-v-6886d92d]{font-weight:700!important}.hightlight-flag[data-v-6886d92d]{padding:.380952381rem;border-radius:.1904761905rem;background:#e1f3fe;font-family:Roboto,sans-serif;font-size:.5714285714rem;font-weight:900;line-height:1;text-transform:uppercase;color:#4965bc;display:flex;align-content:center;flex-wrap:wrap;align-items:center;margin-right:.380952381rem}.hightlight-flag div[data-v-6886d92d]{padding-top:2px}@media (max-width:479px){.hightlight-flag[data-v-6886d92d]{width:100%;margin-bottom:.7476635514rem;padding:.7476635514rem;font-size:1.1214953271rem;margin-right:0;border-radius:.3738317757rem}.hightlight-flag[data-v-6886d92d]:last-child{margin-bottom:0}}.hightlight-flag i[data-v-6886d92d]{margin-right:.1904761905rem}@media (max-width:479px){.hightlight-flag i[data-v-6886d92d]{margin-right:.3738317757rem}}',map:void 0,media:void 0})}),{name:"CoverProduct",components:{
|
|
503
503
|
//Logo,
|
|
504
|
-
Heading:D,Paragraph:R,Button:A,Icon:C},computed:{},directives:{},props:{uuid:{type:String,required:!0},type:{type:String,required:!0},format:{type:String,required:!0}},data:function(){return{gridView:!0,observer:null,isMobile:!1,productColor:"rgb(23, 184, 188)",productImage:"",productType:"livro",productFormat:"retangular"}},mounted:function(){
|
|
504
|
+
Heading:D,Paragraph:R,Button:A,Icon:C},computed:{},directives:{},props:{uuid:{type:String,required:!0},type:{type:String,required:!0},format:{type:String,required:!0}},data:function(){return{gridView:!0,observer:null,isMobile:!1,productColor:"rgb(23, 184, 188)",productImage:"",productType:"livro",productFormat:"retangular"}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),
|
|
505
505
|
// 1 - Detectar se o produto tem cor
|
|
506
506
|
// if (self.product.color) {
|
|
507
507
|
// self.productColor = self.product.color;
|
|
508
508
|
// }
|
|
509
509
|
// 2 - Detectar objeto da imagem e aplicar
|
|
510
|
-
|
|
510
|
+
t.uuid&&(t.productImage="https://builder.dentrodahistoria.com.br/api/builder/getpreview/"+t.uuid+"?page=1&w=300&v=0&noCache=true"),
|
|
511
511
|
// if (
|
|
512
512
|
// self.product.productDisplayDetails &&
|
|
513
513
|
// self.product.productDisplayDetails.coverImage
|
|
@@ -515,7 +515,7 @@ self.uuid&&(self.productImage="https://builder.dentrodahistoria.com.br/api/build
|
|
|
515
515
|
// self.productImage = self.product.productDisplayDetails.coverImage;
|
|
516
516
|
// }
|
|
517
517
|
// 3 - Detectar o tipo de produto
|
|
518
|
-
|
|
518
|
+
t.type&&(t.productType=t.type),t.format&&(t.productFormat=t.format)},methods:{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},changeBookItem:function(t){this.$emit("click",t)}}},"data-v-6886d92d",!1,void 0,!1,x,void 0,void 0)),O=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"checkbox-group",class:[{active:t.active},"size-"+t.size],on:{click:function(e){return t.onActive()}}},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"checkbox-indicator-group"},[a("div",{staticClass:"checkbox"},[a("svg",{attrs:{height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M5.3232 12.8392C4.89227 12.4147 4.89227 11.7266 5.3232 11.3021C5.75414 10.8777 6.45282 10.8777 6.88375 11.3021L10.7851 15.1447C11.2161 15.5691 11.2161 16.2572 10.7851 16.6817C10.3542 17.1061 9.65551 17.1061 9.22458 16.6817L5.3232 12.8392Z"}}),t._v(" "),a("path",{attrs:{d:"M16.1162 8.31832C16.5472 7.89389 17.2459 7.89389 17.6768 8.31833C18.1077 8.74276 18.1077 9.4309 17.6768 9.85533L10.7459 16.6817C10.315 17.1061 9.61629 17.1061 9.18535 16.6817C8.75442 16.2572 8.75442 15.5691 9.18535 15.1447L16.1162 8.31832Z"}})])])]),t._v(" "),t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-66cbe1ee_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-66cbe1ee]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-66cbe1ee]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-66cbe1ee]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-66cbe1ee]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-66cbe1ee]{font-size:14px}}@media (min-width:1024px){[data-v-66cbe1ee]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-66cbe1ee]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-66cbe1ee]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-66cbe1ee]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-66cbe1ee]{font-size:1.56vw}}html[data-v-66cbe1ee]{box-sizing:border-box}*[data-v-66cbe1ee],[data-v-66cbe1ee]::after,[data-v-66cbe1ee]::before{box-sizing:border-box}.checkbox-group[data-v-66cbe1ee]{transition:all .3s;display:inline-flex;flex-direction:row;align-items:center}.checkbox-group[data-v-66cbe1ee]:hover{cursor:pointer}.checkbox-group:hover .checkbox[data-v-66cbe1ee]{border-color:#12d3db}.checkbox-group:hover .checkbox path[data-v-66cbe1ee]{fill:#12d3db}.checkbox-group.active .checkbox[data-v-66cbe1ee]{border-color:#12d3db;background:#12d3db}.checkbox-group.active .checkbox path[data-v-66cbe1ee]{fill:#fff}.checkbox-group.size-lg .checkbox svg[data-v-66cbe1ee]{transform:scale(.9)}.checkbox-group.size-lg .label[data-v-66cbe1ee]{font-size:1.1428571429rem}@media (max-width:479px){.checkbox-group.size-lg .label[data-v-66cbe1ee]{font-size:1.308411215rem}}.checkbox-group.size-sm .checkbox svg[data-v-66cbe1ee]{transform:scale(.7)}.checkbox-group.size-sm .label[data-v-66cbe1ee]{font-size:.7619047619rem}@media (max-width:479px){.checkbox-group.size-sm .label[data-v-66cbe1ee]{font-size:1.308411215rem}}.checkbox-group .checkbox[data-v-66cbe1ee]{display:flex;align-items:center;justify-content:center;border:2px solid #dfdae4;border-radius:8px;margin-right:.1904761905rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.checkbox-group .checkbox[data-v-66cbe1ee]{margin-right:.7476635514rem}}.checkbox-group .checkbox path[data-v-66cbe1ee]{fill:#dfdae4}.checkbox-group .label[data-v-66cbe1ee]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.checkbox-group .label[data-v-66cbe1ee]{font-size:1.308411215rem}}',map:void 0,media:void 0})}),{name:"Checkbox",components:{Icon:C},props:{
|
|
519
519
|
/**
|
|
520
520
|
* Nome do campo, utilizado no callback do evento<br>
|
|
521
521
|
* Example: `Name`
|