@tiddh/brave-vue 1.9.28 → 1.91.2
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 +40 -27
- package/dist/brave-vue.min.js +2 -2
- package/dist/brave-vue.ssr.js +30 -17
- package/package.json +1 -1
- package/src/components/Avatar/elements/CustomizationPanel.vue +1 -4
- package/src/components/Avatar/elements/CustomizationPreview.vue +0 -1
- package/src/components/Preview/PreviewTools.vue +65 -7
- package/src/components/Preview/PreviewWithTools.vue +15 -0
package/dist/brave-vue.esm.js
CHANGED
|
@@ -77,11 +77,11 @@ color:{type:String,default:"#68596E"},
|
|
|
77
77
|
* Type of font<br>
|
|
78
78
|
* Example: `Regular | Bold`
|
|
79
79
|
**/
|
|
80
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-494fbeae",!1,void 0,!1,x,void 0,void 0),C=require("axios"),M=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel"},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n\t\t\t\tEditar o personagem "+t._s(t.characterIsMale?"do":"da")+"\n\t\t\t\t"),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\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],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\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],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",on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[t._v("\n\t\t\t\t\tCONTINUAR\n\t\t\t\t\t"),a("div",{staticClass:"icon icon-check"},[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:"M22.65 17.828a1.996 1.996 0 0 1-.579 1.586l-5.657 5.657a2 2 0 0 1-2.828-2.828L18 17.828l-4.414-4.414a2 2 0 0 1 2.828-2.828l5.657 5.657c.434.434.627 1.018.579 1.585z"}})])])]),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-c5b1001a_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}@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}.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}@media (max-width:992px){.btn-avatar-mobile{display:flex!important;width:150px;height:40px;box-shadow:none;font-size:12px;float:right;line-height:1;position:fixed;right:0;top:10px;z-index:200;border-radius:100px;margin-right:.7619047619rem}.btn-avatar-mobile .icon{display:none}}.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:_},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}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,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,n,d,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=20;break}return t.$emit("startedMethod"),n=null,d=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&d.push(e)})),s={properties:a.userDataProperties,type:t.characterTypeId},console.log("setou request 1"),l={custom_character:{character_id:t.characterId,product_id:t.builderProductId,type_id:t.characterTypeId,categories:d,user_data:s}},t.builderLayoutId&&(l.custom_character.layout_id=t.builderLayoutId),t.language&&(l.custom_character.language=t.language),console.log("chamou request 2"),e.next=16,C({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 16:(c=e.sent)&&(200===c.status?t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:d,success:!0}):(console.log("tentou pegar o segundo request"),c&&c.response&&c.response.reques&&(p=JSON.parse(c.response.request.responseText),n=p?p.error:"Não foi possível gerar o avatar. Tente novamente."),n&&(t.error=n,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:d,success:!1}))),e.next=24;break;case 20: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 24: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");// const transform = "scale(1) translateY(0)"
|
|
80
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-494fbeae",!1,void 0,!1,x,void 0,void 0),C=require("axios"),M=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel"},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n\t\t\t\tEditar o personagem "+t._s(t.characterIsMale?"do":"da")+"\n\t\t\t\t"),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\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],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\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],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",on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[t._v("\n\t\t\t\t\tCONTINUAR\n\t\t\t\t\t"),a("div",{staticClass:"icon icon-check"},[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:"M22.65 17.828a1.996 1.996 0 0 1-.579 1.586l-5.657 5.657a2 2 0 0 1-2.828-2.828L18 17.828l-4.414-4.414a2 2 0 0 1 2.828-2.828l5.657 5.657c.434.434.627 1.018.579 1.585z"}})])])]),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-9bed85a8_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}@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}.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}@media (max-width:992px){.btn-avatar-mobile{display:flex!important;width:150px;height:40px;box-shadow:none;font-size:12px;float:right;line-height:1;position:fixed;right:0;top:10px;z-index:200;border-radius:100px;margin-right:.7619047619rem}.btn-avatar-mobile .icon{display:none}}.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:_},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}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,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,n,d,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"),n=null,d=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&d.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:d,user_data:s}},t.builderLayoutId&&(l.custom_character.layout_id=t.builderLayoutId),t.language&&(l.custom_character.language=t.language),e.next=14,C({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:d,success:!0}):(console.log("tentou pegar o segundo request"),c&&c.response&&c.response.reques&&(p=JSON.parse(c.response.request.responseText),n=p?p.error:"Não foi possível gerar o avatar. Tente novamente."),n&&(t.error=n,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:d,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");// const transform = "scale(1) translateY(0)"
|
|
81
81
|
// Array.from(avatar).forEach(piece => {
|
|
82
82
|
// piece.style.transform = transform
|
|
83
83
|
// })
|
|
84
|
-
this.isMobile&&(this.isMobile=!1)}else this.isMobile||(this.isMobile=!0);this.categoriesAssets&&this.categoriesAssets.categories&&(this.selectedCategory=this.categoriesAssets.categories[0]),this.selectedGroup=null,this.selectedCollection=null}},updated:function(){!this.categoriesAssets||!this.categoriesAssets.categories||this.selectedCategory||this.selectedGroup||this.selectedCollection||(this.selectedCategory=this.categoriesAssets.categories[0])}},void 0,!1,void 0,!1,x,void 0,void 0),P=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-preview",class:"avatar-"+t.characterSlug,style:t.gradientColors&&t.gradientColors.bgInner?"background-image: radial-gradient(circle, "+t.gradientColors.bgInner+" 0%, "+t.gradientColors.bgCentral+" 10%, "+t.gradientColors.bgOuter+" 100%);":null},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-preview-stage"},t._l(t.customizations,(function(e){return a("img",{key:e.categoryId,staticClass:"customization-preview-asset",class:t.characterHeight?"alt":"com",style:[{transform:"scale("+t.selectedCharacter.fixers.size*t.scaleFixer+") translate("+(t.isMobile?t.selectedCharacter.fixers.x*t.scaleFixerMobile:t.selectedCharacter.fixers.x)+"px, "+(t.isMobile?t.selectedCharacter.fixers.y*t.scaleFixerMobile:t.selectedCharacter.fixers.y)+"px)",zIndex:null!=e.optionZIndex?e.optionZIndex:e.categoryZIndex}],attrs:{src:e.optionAsset}})})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-
|
|
84
|
+
this.isMobile&&(this.isMobile=!1)}else this.isMobile||(this.isMobile=!0);this.categoriesAssets&&this.categoriesAssets.categories&&(this.selectedCategory=this.categoriesAssets.categories[0]),this.selectedGroup=null,this.selectedCollection=null}},updated:function(){!this.categoriesAssets||!this.categoriesAssets.categories||this.selectedCategory||this.selectedGroup||this.selectedCollection||(this.selectedCategory=this.categoriesAssets.categories[0])}},void 0,!1,void 0,!1,x,void 0,void 0),P=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-preview",class:"avatar-"+t.characterSlug,style:t.gradientColors&&t.gradientColors.bgInner?"background-image: radial-gradient(circle, "+t.gradientColors.bgInner+" 0%, "+t.gradientColors.bgCentral+" 10%, "+t.gradientColors.bgOuter+" 100%);":null},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-preview-stage"},t._l(t.customizations,(function(e){return a("img",{key:e.categoryId,staticClass:"customization-preview-asset",class:t.characterHeight?"alt":"com",style:[{transform:"scale("+t.selectedCharacter.fixers.size*t.scaleFixer+") translate("+(t.isMobile?t.selectedCharacter.fixers.x*t.scaleFixerMobile:t.selectedCharacter.fixers.x)+"px, "+(t.isMobile?t.selectedCharacter.fixers.y*t.scaleFixerMobile:t.selectedCharacter.fixers.y)+"px)",zIndex:null!=e.optionZIndex?e.optionZIndex:e.categoryZIndex}],attrs:{src:e.optionAsset}})})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-5233c6f3_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}.customization-preview{position:relative;width:calc(100vw - 520px);height:100vh;transition:all .5s}@media (max-width:479px){.customization-preview{height:calc(var(--vh,1vh) * 100 - var(--cp));width:100%;top:0;min-width:100vw}}.customization-preview-asset{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s}.customization-preview.zoom-in{transform:scale(1.8) translate(-2%,10%)!important}@media (max-width:479px){.customization-preview.zoom-in{transform:scale(1.2) translate(0,0)!important}}',map:void 0,media:void 0})}),{name:"CustomizationPreview",props:{customizations:{type:Array,required:!0},selectedCharacter:{type:Object,required:!0},characterHeight:{type:Number,default:0},gradientColors:{type:Object,required:!1},characterSlug:{type:String,required:!1,default:"noone"}},data:function(){return{screenWidth:null,isMobile:!1,scaleFixer:1.3,scaleFixerMobile:.1}},mounted:function(){var t=this;console.log(t.isMobile);var e=document.querySelector(".customization-panel").clientHeight;console.log(document.documentElement.style),document.documentElement.style.setProperty("--cp","".concat(e,"px")),this.screenWidth=screen.width,t.detectSize(),window.addEventListener("resize",(function(e){t.detectSize();//alert(self.isMobile);
|
|
85
85
|
}))},methods:{detectSize:function(){this.isMobile=!1,this.screenWidth<990&&(this.isMobile=!0)}}},void 0,!1,void 0,!1,x,void 0,void 0),S=require("axios"),L=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("link",{attrs:{rel:"stylesheet",href:"https://use.fontawesome.com/releases/v5.8.1/css/all.css",integrity:"sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf",crossorigin:"anonymous"}}),t._v(" "),a("div",{staticClass:"mobile-tooltip",on:{click:t.removeTooltip}},[t._m(0)]),t._v(" "),a("CustomizationPreview",{attrs:{customizations:t.customizations,"selected-character":t.selectedCharacter,"character-height":t.characterHeight?t.characterHeight:null,"gradient-colors":t.gradient_colors,"character-slug":t.custom_properties.slug,characterHeight:1}}),t._v(" "),a("CustomizationPanel",{attrs:{"builder-api":t.builder_api,"selected-character":t.selectedCharacter,"character-name":t.custom_properties.user_data.properties.nome.value,"subscription-id":"1","stack-id":"1","character-slug":t.custom_properties.slug,"character-id":t.characterId,"character-type-id":t.characterTypeId,"character-is-male":t.custom_properties.is_male,"categories-assets":t.categoriesAssets,"disabled-categories":t.disabledCategories,customizations:t.customizations,"builder-product-id":t.builderProductId?t.builderProductId:this.custom_properties.product_id,userDataProperties:t.custom_properties.user_data.properties,builderLayoutId:t.builderLayoutId,language:t.language},on:{"update:customization":t.handleCustomization,startedMethod:t.startedMethod,completedMethod:t.completedMethod}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tooltip"},[this._v("\n\t\t\tLorem ipsum dolor sit amet, eum ne sale vidit epicuri, usu populo\n\t\t\tincorrupte ex. His falli intellegebat no.\n\t\t\t"),e("i",{staticClass:"fas fa-times"})])}]},(function(t){t&&t("data-v-ac084588_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}.mobile-tooltip{display:none}@media (max-width:992px){.mobile-tooltip{display:none;position:absolute;z-index:90000000;height:calc(100vh - 59px);width:100%;transition:all .3s;bottom:0}.mobile-tooltip .tooltip{border-radius:5px;color:#fff;font-size:14px;padding:10px 36px 10px 16px;width:350px;margin-left:15px;box-shadow:0 1px 2px 0 rgba(0,0,0,.31);line-height:1.5;position:relative;margin-top:auto;bottom:calc(var(--cp) + 25px)}.mobile-tooltip .tooltip:after{top:100%;left:5%;border:solid transparent;content:" ";position:absolute;border-width:10px}.mobile-tooltip .tooltip i{position:absolute;right:10px;top:10px}}',map:void 0,media:void 0})}),{name:"CustomizationView",components:{CustomizationPanel:M,CustomizationPreview:P},props:{custom_properties:{type:Object,default:null,required:!0},builder_api:{type:String,default:"https://builder.dentrodahistoria.com.br/api"},is_subscription:{type:Boolean,default:!1},gradient_colors:{type:Object,required:!1},builderLayoutId:{type:[Number,String],required:!1},language:{type:String,required:!1}},data:function(){return{categoriesAssets:{},customizations:[],
|
|
86
86
|
// Velho e bom customizations
|
|
87
87
|
requiredCategories:[],
|
|
@@ -438,7 +438,7 @@ active:{type:Boolean,default:!1}},data:function(){return{}},methods:{onActive:fu
|
|
|
438
438
|
/**
|
|
439
439
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
440
440
|
* Retorna um objeto com a prop dataObject.
|
|
441
|
-
*/this.$emit("update",t)}}},"data-v-3a044fb9",!1,void 0,!1,x,void 0,void 0),q=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},["cpf"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"###.###.###-##",expression:"'###.###.###-##'"}],ref:"cpf",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"___-___-___-__",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCpf}},"input",t.$attrs,!1),t.$listeners)):"cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##.###.###/####-##",expression:"'##.###.###/####-##'"}],ref:"cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"00-000-00/0000-00",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCnpj}},"input",t.$attrs,!1),t.$listeners)):"cpf-cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["###.###.###-##","##.###.###/####-##"],expression:"['###.###.###-##', '##.###.###/####-##']"}],ref:"cpf-cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"000-000-000-0",disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.condCpfCnpj(e)}}},"input",t.$attrs,!1),t.$listeners)):"phone"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["(##) #####-####","(##) ####-####"],expression:"['(##) #####-####', '(##) ####-####']"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"(__) ____-____",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"address"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"#####-###",expression:"'#####-###'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"____-___",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeAddress}},"input",t.$attrs,!1),t.$listeners)):"cc-number"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:t.card.mask,expression:"card.mask"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"•••• •••• •••• ••••",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardNumber}},"input",t.$attrs,!1),t.$listeners)):"cc-cvv"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"####",expression:"'####'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"CVV",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"cc-expiration"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##/##",expression:"'##/##'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"MM/AA",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardExpiration}},"input",t.$attrs,!1),t.$listeners)):a("input",t._g(t._b({staticClass:"input",attrs:{type:t.type,inputmode:t.numeric?"numeric":"text",name:t.name,placeholder:t.placeholder,disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)),t._v(" "),t.link?a("div",{staticClass:"link"},[a("div",{on:{click:t.routeToLink}},[t._v(" \n "+t._s(t.linkLabel)+"\n ")])]):t._e()]),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-3892e227_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-3892e227]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-3892e227]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-3892e227]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-3892e227]{font-size:14px}}@media (min-width:1024px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-3892e227]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-3892e227]{font-size:1.56vw}}html[data-v-3892e227]{box-sizing:border-box}*[data-v-3892e227],[data-v-3892e227]::after,[data-v-3892e227]::before{box-sizing:border-box}.hide[data-v-3892e227]{display:none}.input-group[data-v-3892e227]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-3892e227]{position:relative;width:100%}.input-group .input-area .link[data-v-3892e227]{position:absolute;top:0;bottom:0;margin-top:auto;margin-bottom:auto;display:flex;align-content:center;padding-right:.1904761905rem;right:1.1428571429rem}@media (max-width:479px){.input-group .input-area .link[data-v-3892e227]{right:1.4953271028rem}}.input-group .input-area .link[data-v-3892e227] div{color:#12d3db;font-family:Roboto,sans-serif;font-weight:700;font-size:.5714285714rem;text-align:right;display:flex;align-items:center}.input-group .input-area .link[data-v-3892e227] div:hover{text-decoration:underline;cursor:pointer}@media (max-width:479px){.input-group .input-area .link[data-v-3892e227] div{font-size:.9345794393rem}}.input-group.error-active .input[data-v-3892e227]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-3892e227]{color:#ff4641!important}.input-group .validation[data-v-3892e227]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.input-group .validation[data-v-3892e227]{top:.2803738318rem;width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-3892e227].inactive .close path{fill:#ff4641}.input-group .validation[data-v-3892e227] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.input-group .validation[data-v-3892e227] svg{width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-3892e227] svg path{fill:#dfdae4}.input-group .validation[data-v-3892e227].active svg path{fill:#00cf72}.input-group .validation[data-v-3892e227].active .close path{fill:#ff4641}.input-group.size-lg .label[data-v-3892e227]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-3892e227]{padding:0 1.1428571429rem;height:2.8571428571rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-3892e227]{padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis;padding-right:3.738317757rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-3892e227]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-3892e227]{font-size:1.1214953271rem}}.input-group.size-lg .link[data-v-3892e227]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .link[data-v-3892e227]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-3892e227]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-3892e227]{padding:0 .7619047619rem;height:2.8571428571rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-3892e227]{padding:0 1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-3892e227]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-3892e227]{font-size:1.1214953271rem}}.input-group.size-sm .link[data-v-3892e227]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .link[data-v-3892e227]{right:1.4953271028rem}}.input-group .label[data-v-3892e227]{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){.input-group .label[data-v-3892e227]{font-size:1.308411215rem}}.input-group .input[data-v-3892e227]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:0 1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:2.8571428571rem;width:100%;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-3892e227]{border-radius:.7476635514rem;padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis;padding-right:5.9813084112rem}}@media (max-width:479px){.input-group .input[data-v-3892e227]{font-size:1.4953271028rem}}.input-group .input[data-v-3892e227]:disabled{-webkit-text-fill-color:#68596e;opacity:1}.input-group .input[data-v-3892e227]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-3892e227]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-3892e227]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-3892e227]:hover{border-color:#afa2ba}.input-group .input[data-v-3892e227]:active,.input-group .input[data-v-3892e227]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-3892e227]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-3892e227]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-3892e227]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-3892e227]{background:#f8f7fc;border-color:#dfdae4!important;color:#afa2ba;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-3892e227]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-3892e227]::placeholder{color:#dfdae4;opacity:1;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-3892e227]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-3892e227]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-3892e227]{color:#dfdae4}input[data-v-3892e227]::-webkit-inner-spin-button,input[data-v-3892e227]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-3892e227]{-moz-appearance:textfield!important}',map:void 0,media:void 0})}),{name:"Input",directives:{mask:i},components:{Icon:A,Button:T},props:{
|
|
441
|
+
*/this.$emit("update",t)}}},"data-v-3a044fb9",!1,void 0,!1,x,void 0,void 0),D=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},["cpf"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"###.###.###-##",expression:"'###.###.###-##'"}],ref:"cpf",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"___-___-___-__",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCpf}},"input",t.$attrs,!1),t.$listeners)):"cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##.###.###/####-##",expression:"'##.###.###/####-##'"}],ref:"cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"00-000-00/0000-00",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCnpj}},"input",t.$attrs,!1),t.$listeners)):"cpf-cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["###.###.###-##","##.###.###/####-##"],expression:"['###.###.###-##', '##.###.###/####-##']"}],ref:"cpf-cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"000-000-000-0",disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.condCpfCnpj(e)}}},"input",t.$attrs,!1),t.$listeners)):"phone"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["(##) #####-####","(##) ####-####"],expression:"['(##) #####-####', '(##) ####-####']"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"(__) ____-____",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"address"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"#####-###",expression:"'#####-###'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"____-___",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeAddress}},"input",t.$attrs,!1),t.$listeners)):"cc-number"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:t.card.mask,expression:"card.mask"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"•••• •••• •••• ••••",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardNumber}},"input",t.$attrs,!1),t.$listeners)):"cc-cvv"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"####",expression:"'####'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"CVV",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"cc-expiration"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##/##",expression:"'##/##'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"MM/AA",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardExpiration}},"input",t.$attrs,!1),t.$listeners)):a("input",t._g(t._b({staticClass:"input",attrs:{type:t.type,inputmode:t.numeric?"numeric":"text",name:t.name,placeholder:t.placeholder,disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)),t._v(" "),t.link?a("div",{staticClass:"link"},[a("div",{on:{click:t.routeToLink}},[t._v(" \n "+t._s(t.linkLabel)+"\n ")])]):t._e()]),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-3892e227_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-3892e227]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-3892e227]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-3892e227]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-3892e227]{font-size:14px}}@media (min-width:1024px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-3892e227]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-3892e227]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-3892e227]{font-size:1.56vw}}html[data-v-3892e227]{box-sizing:border-box}*[data-v-3892e227],[data-v-3892e227]::after,[data-v-3892e227]::before{box-sizing:border-box}.hide[data-v-3892e227]{display:none}.input-group[data-v-3892e227]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-3892e227]{position:relative;width:100%}.input-group .input-area .link[data-v-3892e227]{position:absolute;top:0;bottom:0;margin-top:auto;margin-bottom:auto;display:flex;align-content:center;padding-right:.1904761905rem;right:1.1428571429rem}@media (max-width:479px){.input-group .input-area .link[data-v-3892e227]{right:1.4953271028rem}}.input-group .input-area .link[data-v-3892e227] div{color:#12d3db;font-family:Roboto,sans-serif;font-weight:700;font-size:.5714285714rem;text-align:right;display:flex;align-items:center}.input-group .input-area .link[data-v-3892e227] div:hover{text-decoration:underline;cursor:pointer}@media (max-width:479px){.input-group .input-area .link[data-v-3892e227] div{font-size:.9345794393rem}}.input-group.error-active .input[data-v-3892e227]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-3892e227]{color:#ff4641!important}.input-group .validation[data-v-3892e227]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.input-group .validation[data-v-3892e227]{top:.2803738318rem;width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-3892e227].inactive .close path{fill:#ff4641}.input-group .validation[data-v-3892e227] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.input-group .validation[data-v-3892e227] svg{width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-3892e227] svg path{fill:#dfdae4}.input-group .validation[data-v-3892e227].active svg path{fill:#00cf72}.input-group .validation[data-v-3892e227].active .close path{fill:#ff4641}.input-group.size-lg .label[data-v-3892e227]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-3892e227]{padding:0 1.1428571429rem;height:2.8571428571rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-3892e227]{padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis;padding-right:3.738317757rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-3892e227]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-3892e227]{font-size:1.1214953271rem}}.input-group.size-lg .link[data-v-3892e227]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .link[data-v-3892e227]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-3892e227]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-3892e227]{padding:0 .7619047619rem;height:2.8571428571rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-3892e227]{padding:0 1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-3892e227]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-3892e227]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-3892e227]{font-size:1.1214953271rem}}.input-group.size-sm .link[data-v-3892e227]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .link[data-v-3892e227]{right:1.4953271028rem}}.input-group .label[data-v-3892e227]{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){.input-group .label[data-v-3892e227]{font-size:1.308411215rem}}.input-group .input[data-v-3892e227]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:0 1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:2.8571428571rem;width:100%;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-3892e227]{border-radius:.7476635514rem;padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis;padding-right:5.9813084112rem}}@media (max-width:479px){.input-group .input[data-v-3892e227]{font-size:1.4953271028rem}}.input-group .input[data-v-3892e227]:disabled{-webkit-text-fill-color:#68596e;opacity:1}.input-group .input[data-v-3892e227]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-3892e227]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-3892e227]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-3892e227]:hover{border-color:#afa2ba}.input-group .input[data-v-3892e227]:active,.input-group .input[data-v-3892e227]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-3892e227]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-3892e227]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-3892e227]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-3892e227]{background:#f8f7fc;border-color:#dfdae4!important;color:#afa2ba;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-3892e227]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-3892e227]::placeholder{color:#dfdae4;opacity:1;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-3892e227]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-3892e227]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-3892e227]{color:#dfdae4}input[data-v-3892e227]::-webkit-inner-spin-button,input[data-v-3892e227]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-3892e227]{-moz-appearance:textfield!important}',map:void 0,media:void 0})}),{name:"Input",directives:{mask:i},components:{Icon:A,Button:T},props:{
|
|
442
442
|
/**
|
|
443
443
|
* Nome do campo, utilizado no callback do evento<br>
|
|
444
444
|
* Example: `Name`
|
|
@@ -535,7 +535,7 @@ e.$emit("update",n);case 10:case"end":return a.stop()}}),a)})))()},onChange:func
|
|
|
535
535
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
536
536
|
* Retorna um objeto com target (name do campo) e value.
|
|
537
537
|
*/
|
|
538
|
-
this.$emit("update",a)},routeToLink:function(){window.open(this.link,"_blank")}}},"data-v-3892e227",!1,void 0,!1,x,void 0,void 0),
|
|
538
|
+
this.$emit("update",a)},routeToLink:function(){window.open(this.link,"_blank")}}},"data-v-3892e227",!1,void 0,!1,x,void 0,void 0),q=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-edit"},[a("div",{staticClass:"form-group"},[a("Input",{attrs:{value:t.finalValue,label:t.label,type:t.type,name:t.label,disabled:t.fieldIsDisabled,error:t.error},on:{update:t.ChangeFinalValue}}),t._v(" "),t.fieldIsDisabled?a("Button",{staticClass:"btn-edit",attrs:{kind:"link",size:"md",width:"liquid",disabled:!1},on:{click:t.openBox}},[t._v(" \n EDITAR\n ")]):t._e()],1),t._v(" "),t.fieldIsDisabled?t._e():a("div",{staticClass:"edit-button"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.Submit}},[t._v("SALVAR EDIÇÃO")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.Cancel}},[t._v("CANCELAR")])],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-14d33d3c_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-14d33d3c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-14d33d3c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-14d33d3c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-14d33d3c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-14d33d3c]{font-size:14px}}@media (min-width:1024px){[data-v-14d33d3c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-14d33d3c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-14d33d3c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-14d33d3c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-14d33d3c]{font-size:1.56vw}}html[data-v-14d33d3c]{box-sizing:border-box}*[data-v-14d33d3c],[data-v-14d33d3c]::after,[data-v-14d33d3c]::before{box-sizing:border-box}.input-edit .form-group[data-v-14d33d3c]{position:relative}.input-edit .form-group .btn-edit[data-v-14d33d3c]{position:absolute;right:.4761904762rem;bottom:0;height:2.8571428571rem}@media (max-width:479px){.input-edit .form-group .btn-edit[data-v-14d33d3c]{bottom:0;height:4.2990654206rem;right:.9345794393rem}}@media (max-width:479px){.input-edit .form-group input[data-v-14d33d3c]{text-overflow:ellipsis;padding-right:3.738317757rem}}.input-edit .edit-button[data-v-14d33d3c]{display:flex;justify-content:flex-end;text-align:right;margin-top:.7619047619rem}@media (max-width:479px){.input-edit .edit-button[data-v-14d33d3c]{justify-content:space-between;margin-top:1.4953271028rem}.input-edit .edit-button button[data-v-14d33d3c]{width:50%}}.input-edit .edit-button .btn-ghost[data-v-14d33d3c]{margin-left:.380952381rem}@media (max-width:479px){.input-edit .edit-button .btn-ghost[data-v-14d33d3c]{margin-left:.7476635514rem}}',map:void 0,media:void 0})}),{name:"InputEdit",components:{Input:D,Button:T},props:{
|
|
539
539
|
/**
|
|
540
540
|
* Nome do campo, utilizado no callback do evento<br>
|
|
541
541
|
* Example: `Name`
|
|
@@ -587,7 +587,7 @@ immediate:!0,handler:function(t,e){""===this.initialValue&&(this.initialValue=t)
|
|
|
587
587
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
588
588
|
* Retorna um objeto com target (name do campo) e value.
|
|
589
589
|
*/
|
|
590
|
-
this.fieldIsDisabled=!0,this.initialValue=this.finalValue,this.$emit("submitSave",t)},ChangeFinalValue:function(t){this.finalValue=t.value;var e={value:this.finalValue};this.$emit("update",e)}}},"data-v-14d33d3c",!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:"input-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label show-desk",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"name-input-list"},[a("div",{staticClass:"name-input-group firstname-input-group"},[a("span",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("Qual seu nome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Nome",name:"name",value:t.name,maxlength:"50"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.name&&t.name.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1),t._v(" "),a("div",{staticClass:"name-input-group lastname-input-group"},[a("span",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("E o sobrenome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Sobrenome",name:"lastname",value:t.lastName,maxlength:"100"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.lastName&&t.lastName.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-2994368e_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-2994368e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2994368e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2994368e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2994368e]{font-size:14px}}@media (min-width:1024px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2994368e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2994368e]{font-size:1.56vw}}html[data-v-2994368e]{box-sizing:border-box}*[data-v-2994368e],[data-v-2994368e]::after,[data-v-2994368e]::before{box-sizing:border-box}.show-desk[data-v-2994368e]{display:block}@media (max-width:479px){.show-desk[data-v-2994368e]{display:none!important}}.show-mobile[data-v-2994368e]{display:none}@media (max-width:479px){.show-mobile[data-v-2994368e]{display:block}}.input-group[data-v-2994368e]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group.error-active .input[data-v-2994368e]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-2994368e]{color:#ff4641!important}.input-group .label[data-v-2994368e]{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){.input-group .label[data-v-2994368e]{font-size:1.308411215rem}}.input-group .helper[data-v-2994368e]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-2994368e]{font-size:1.1214953271rem}}.input-group .name-input-list[data-v-2994368e]{display:flex;width:100%;max-width:100%;justify-content:space-between}@media (max-width:479px){.input-group .name-input-list[data-v-2994368e]{flex-direction:column}}.input-group .name-input-list .name-input-group[data-v-2994368e]{flex:0 0 50%;max-width:50%;position:relative}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-2994368e]{flex:0 0 100%;max-width:100%}}.input-group .name-input-list .name-input-group[data-v-2994368e] input{width:100%}.input-group .name-input-list .name-input-group[data-v-2994368e] .validation{top:-1.0476190476rem}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-2994368e] .validation{top:.2803738318rem}}.input-group .name-input-list .firstname-input-group[data-v-2994368e]{padding-right:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .firstname-input-group[data-v-2994368e]{padding-right:0}}.input-group .name-input-list .lastname-input-group[data-v-2994368e]{padding-left:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .lastname-input-group[data-v-2994368e]{padding-left:0;margin-top:1.4953271028rem}}.validation[data-v-2994368e]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-2994368e]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-2994368e].inactive .close path{fill:#ff4641}.validation[data-v-2994368e] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-2994368e] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-2994368e] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-2994368e] svg path{fill:#dfdae4}.validation[data-v-2994368e].active svg path{fill:#00cf72}.validation[data-v-2994368e].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputName",components:{Input:
|
|
590
|
+
this.fieldIsDisabled=!0,this.initialValue=this.finalValue,this.$emit("submitSave",t)},ChangeFinalValue:function(t){this.finalValue=t.value;var e={value:this.finalValue};this.$emit("update",e)}}},"data-v-14d33d3c",!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:"input-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label show-desk",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"name-input-list"},[a("div",{staticClass:"name-input-group firstname-input-group"},[a("span",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("Qual seu nome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Nome",name:"name",value:t.name,maxlength:"50"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.name&&t.name.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1),t._v(" "),a("div",{staticClass:"name-input-group lastname-input-group"},[a("span",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("E o sobrenome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Sobrenome",name:"lastname",value:t.lastName,maxlength:"100"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.lastName&&t.lastName.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-2994368e_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-2994368e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2994368e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2994368e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2994368e]{font-size:14px}}@media (min-width:1024px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2994368e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2994368e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2994368e]{font-size:1.56vw}}html[data-v-2994368e]{box-sizing:border-box}*[data-v-2994368e],[data-v-2994368e]::after,[data-v-2994368e]::before{box-sizing:border-box}.show-desk[data-v-2994368e]{display:block}@media (max-width:479px){.show-desk[data-v-2994368e]{display:none!important}}.show-mobile[data-v-2994368e]{display:none}@media (max-width:479px){.show-mobile[data-v-2994368e]{display:block}}.input-group[data-v-2994368e]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group.error-active .input[data-v-2994368e]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-2994368e]{color:#ff4641!important}.input-group .label[data-v-2994368e]{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){.input-group .label[data-v-2994368e]{font-size:1.308411215rem}}.input-group .helper[data-v-2994368e]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-2994368e]{font-size:1.1214953271rem}}.input-group .name-input-list[data-v-2994368e]{display:flex;width:100%;max-width:100%;justify-content:space-between}@media (max-width:479px){.input-group .name-input-list[data-v-2994368e]{flex-direction:column}}.input-group .name-input-list .name-input-group[data-v-2994368e]{flex:0 0 50%;max-width:50%;position:relative}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-2994368e]{flex:0 0 100%;max-width:100%}}.input-group .name-input-list .name-input-group[data-v-2994368e] input{width:100%}.input-group .name-input-list .name-input-group[data-v-2994368e] .validation{top:-1.0476190476rem}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-2994368e] .validation{top:.2803738318rem}}.input-group .name-input-list .firstname-input-group[data-v-2994368e]{padding-right:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .firstname-input-group[data-v-2994368e]{padding-right:0}}.input-group .name-input-list .lastname-input-group[data-v-2994368e]{padding-left:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .lastname-input-group[data-v-2994368e]{padding-left:0;margin-top:1.4953271028rem}}.validation[data-v-2994368e]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-2994368e]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-2994368e].inactive .close path{fill:#ff4641}.validation[data-v-2994368e] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-2994368e] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-2994368e] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-2994368e] svg path{fill:#dfdae4}.validation[data-v-2994368e].active svg path{fill:#00cf72}.validation[data-v-2994368e].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputName",components:{Input:D,Icon:A},props:{
|
|
591
591
|
/**
|
|
592
592
|
* Label do campo, caso vazio, label não é exibida<br>
|
|
593
593
|
* Example: `Label`
|
|
@@ -637,7 +637,7 @@ validationCheck:{type:Boolean,required:!1,default:!1}},data:function(){return{}}
|
|
|
637
637
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
638
638
|
* Retorna um objeto com target (name do campo), value ativo.
|
|
639
639
|
*/
|
|
640
|
-
this.$emit("update",t)}}},"data-v-2994368e",!1,void 0,!1,x,void 0,void 0),$=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"email-input-group"},"div",t.$attrs,!1),t.$listeners),[a("Input",{attrs:{placeholder:"Digite seu email",name:"email",label:t.label,labelColor:t.labelColor,value:t.email,error:t.error,helper:t.helper,helperColor:t.helperColor,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),t.showDatalist?a("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showDatalist=!1},expression:"() => showDatalist = false"}],staticClass:"email-list"},t._l(t.domains,(function(e){return a("div",{key:e.key,on:{click:function(a){return t.setDomain(e)}}},[t._v("\n @"+t._s(e)+"\n ")])})),0):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-0f810ea4_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-0f810ea4]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0f810ea4]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0f810ea4]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0f810ea4]{font-size:14px}}@media (min-width:1024px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0f810ea4]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0f810ea4]{font-size:1.56vw}}html[data-v-0f810ea4]{box-sizing:border-box}*[data-v-0f810ea4],[data-v-0f810ea4]::after,[data-v-0f810ea4]::before{box-sizing:border-box}.email-input-group[data-v-0f810ea4]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.email-input-group.error-active .input[data-v-0f810ea4]{border-color:#ff4641!important}.email-input-group.error-active .helper[data-v-0f810ea4]{color:#ff4641!important}.email-input-group .label[data-v-0f810ea4]{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){.email-input-group .label[data-v-0f810ea4]{font-size:1.308411215rem}}.email-input-group .helper[data-v-0f810ea4]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.email-input-group .helper[data-v-0f810ea4]{font-size:1.1214953271rem}}.email-input-group input[data-v-0f810ea4]{width:100%}.email-list[data-v-0f810ea4]{display:block;position:absolute;background:#fff;z-index:90;width:100%;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);transform:translateY(-.9523809524rem);padding:.2380952381rem;top:5.2380952381rem;font-family:Roboto}@media (max-width:479px){.email-list[data-v-0f810ea4]{transform:translateY(.6542056075rem);padding:.4672897196rem;width:auto}}.email-list div[data-v-0f810ea4]{color:#68596e;padding:.4285714286rem .5714285714rem;font-size:.6666666667rem}@media (max-width:479px){.email-list div[data-v-0f810ea4]{font-size:1.4953271028rem;padding:.8411214953rem 1.1214953271rem}}.email-list div[data-v-0f810ea4]:hover{background:rgba(60,211,215,.2);cursor:pointer}',map:void 0,media:void 0})}),{name:"InputEmail",components:{Input:
|
|
640
|
+
this.$emit("update",t)}}},"data-v-2994368e",!1,void 0,!1,x,void 0,void 0),$=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"email-input-group"},"div",t.$attrs,!1),t.$listeners),[a("Input",{attrs:{placeholder:"Digite seu email",name:"email",label:t.label,labelColor:t.labelColor,value:t.email,error:t.error,helper:t.helper,helperColor:t.helperColor,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),t.showDatalist?a("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showDatalist=!1},expression:"() => showDatalist = false"}],staticClass:"email-list"},t._l(t.domains,(function(e){return a("div",{key:e.key,on:{click:function(a){return t.setDomain(e)}}},[t._v("\n @"+t._s(e)+"\n ")])})),0):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-0f810ea4_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-0f810ea4]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0f810ea4]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0f810ea4]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0f810ea4]{font-size:14px}}@media (min-width:1024px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0f810ea4]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0f810ea4]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0f810ea4]{font-size:1.56vw}}html[data-v-0f810ea4]{box-sizing:border-box}*[data-v-0f810ea4],[data-v-0f810ea4]::after,[data-v-0f810ea4]::before{box-sizing:border-box}.email-input-group[data-v-0f810ea4]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.email-input-group.error-active .input[data-v-0f810ea4]{border-color:#ff4641!important}.email-input-group.error-active .helper[data-v-0f810ea4]{color:#ff4641!important}.email-input-group .label[data-v-0f810ea4]{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){.email-input-group .label[data-v-0f810ea4]{font-size:1.308411215rem}}.email-input-group .helper[data-v-0f810ea4]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.email-input-group .helper[data-v-0f810ea4]{font-size:1.1214953271rem}}.email-input-group input[data-v-0f810ea4]{width:100%}.email-list[data-v-0f810ea4]{display:block;position:absolute;background:#fff;z-index:90;width:100%;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);transform:translateY(-.9523809524rem);padding:.2380952381rem;top:5.2380952381rem;font-family:Roboto}@media (max-width:479px){.email-list[data-v-0f810ea4]{transform:translateY(.6542056075rem);padding:.4672897196rem;width:auto}}.email-list div[data-v-0f810ea4]{color:#68596e;padding:.4285714286rem .5714285714rem;font-size:.6666666667rem}@media (max-width:479px){.email-list div[data-v-0f810ea4]{font-size:1.4953271028rem;padding:.8411214953rem 1.1214953271rem}}.email-list div[data-v-0f810ea4]:hover{background:rgba(60,211,215,.2);cursor:pointer}',map:void 0,media:void 0})}),{name:"InputEmail",components:{Input:D},directives:{clickOutside:r.directive},props:{
|
|
641
641
|
/**
|
|
642
642
|
* Label do campo, caso vazio, label não é exibida<br>
|
|
643
643
|
* Example: `Label`
|
|
@@ -742,7 +742,7 @@ validationCheckValue:{type:Boolean,required:!1,default:!1}},data:function(){retu
|
|
|
742
742
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
743
743
|
* Retorna um objeto com target (name do campo), key ativo e value ativo.
|
|
744
744
|
*/
|
|
745
|
-
this.$emit("update",a)}}},"data-v-32faa71f",!1,void 0,!1,x,void 0,void 0),H=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.haveNumber},"size-"+t.size]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},[a("Input",{attrs:{type:t.finalType,size:t.size,placeholder:t.placeholder,name:"number",value:t.finalValue,disabled:t.haveNumber,maxlength:6},on:{change:t.onChange}}),t._v(" "),"number"===t.type?a("div",{staticClass:"radius",class:t.haveNumber?"is-selected":"",on:{click:function(e){return e.preventDefault(),t.setHaveNumber()}}},[t._m(0),t._v(" "),a("label",[t._v("Sem número")])]):t._e()],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"radius-indicator-group"},[e("div",{staticClass:"radius-indicator"},[e("div",{staticClass:"radius-indicator-inner"})])])}]},(function(t){t&&t("data-v-17a5bc9c_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-17a5bc9c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-17a5bc9c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-17a5bc9c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-17a5bc9c]{font-size:14px}}@media (min-width:1024px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-17a5bc9c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-17a5bc9c]{font-size:1.56vw}}html[data-v-17a5bc9c]{box-sizing:border-box}*[data-v-17a5bc9c],[data-v-17a5bc9c]::after,[data-v-17a5bc9c]::before{box-sizing:border-box}.input-area[data-v-17a5bc9c]{position:relative}.radius[data-v-17a5bc9c]{display:flex;align-items:center;justify-content:center;position:absolute;padding-right:.1904761905rem;cursor:pointer;z-index:2;right:1.1428571429rem;height:100%;bottom:0}@media (max-width:479px){.radius[data-v-17a5bc9c]{right:1.4953271028rem}}.radius[data-v-17a5bc9c]:hover{cursor:pointer;border-color:#afa2ba}.radius:hover .radius-indicator[data-v-17a5bc9c],.radius:hover .radius-indicator-inner[data-v-17a5bc9c]{transition:all .3s;border-color:#afa2ba}.radius:hover .radius-indicator-inner[data-v-17a5bc9c]{background:#afa2ba!important}.radius.is-selected[data-v-17a5bc9c]{border-color:#12d3db}.radius.is-selected .radius-indicator[data-v-17a5bc9c],.radius.is-selected .radius-indicator-inner[data-v-17a5bc9c]{transition:all .3s;border-color:#12d3db}.radius.is-selected .radius-indicator-inner[data-v-17a5bc9c]{background:#12d3db!important}.radius.is-selected label[data-v-17a5bc9c]{color:#12d3db}.radius label[data-v-17a5bc9c]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}@media (max-width:479px){.radius label[data-v-17a5bc9c]{font-size:.9345794393rem}}.radius-indicator[data-v-17a5bc9c]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-17a5bc9c]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-17a5bc9c]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-17a5bc9c]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-17a5bc9c]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.input-group .input-area[data-v-17a5bc9c]{position:relative;width:100%}.input-group .input-area .link[data-v-17a5bc9c]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-17a5bc9c] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-17a5bc9c]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-17a5bc9c]{color:#ff4641!important}.input-group.size-lg .label[data-v-17a5bc9c]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-17a5bc9c]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-17a5bc9c]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-17a5bc9c]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-17a5bc9c]{font-size:1.1214953271rem}}.input-group.size-lg .radius[data-v-17a5bc9c]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .radius[data-v-17a5bc9c]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-17a5bc9c]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-17a5bc9c]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-17a5bc9c]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-17a5bc9c]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-17a5bc9c]{font-size:1.1214953271rem}}.input-group.size-sm .radius[data-v-17a5bc9c]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .radius[data-v-17a5bc9c]{right:1.4953271028rem}}.input-group .label[data-v-17a5bc9c]{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){.input-group .label[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group .input[data-v-17a5bc9c]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-17a5bc9c]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group .input[data-v-17a5bc9c]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-17a5bc9c]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-17a5bc9c]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-17a5bc9c]:hover{border-color:#afa2ba}.input-group .input[data-v-17a5bc9c]:active,.input-group .input[data-v-17a5bc9c]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-17a5bc9c]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-17a5bc9c]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-17a5bc9c]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-17a5bc9c]{color:#dfdae4}.validation[data-v-17a5bc9c]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-17a5bc9c]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-17a5bc9c].inactive .close path{fill:#ff4641}.validation[data-v-17a5bc9c] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-17a5bc9c] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-17a5bc9c] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-17a5bc9c] svg path{fill:#dfdae4}.validation[data-v-17a5bc9c].active svg path{fill:#00cf72}.validation[data-v-17a5bc9c].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputAddressNumber",directives:{mask:i},components:{Input:q,Select:U},props:(Z={
|
|
745
|
+
this.$emit("update",a)}}},"data-v-32faa71f",!1,void 0,!1,x,void 0,void 0),H=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.haveNumber},"size-"+t.size]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},[a("Input",{attrs:{type:t.finalType,size:t.size,placeholder:t.placeholder,name:"number",value:t.finalValue,disabled:t.haveNumber,maxlength:6},on:{change:t.onChange}}),t._v(" "),"number"===t.type?a("div",{staticClass:"radius",class:t.haveNumber?"is-selected":"",on:{click:function(e){return e.preventDefault(),t.setHaveNumber()}}},[t._m(0),t._v(" "),a("label",[t._v("Sem número")])]):t._e()],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"radius-indicator-group"},[e("div",{staticClass:"radius-indicator"},[e("div",{staticClass:"radius-indicator-inner"})])])}]},(function(t){t&&t("data-v-17a5bc9c_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-17a5bc9c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-17a5bc9c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-17a5bc9c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-17a5bc9c]{font-size:14px}}@media (min-width:1024px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-17a5bc9c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-17a5bc9c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-17a5bc9c]{font-size:1.56vw}}html[data-v-17a5bc9c]{box-sizing:border-box}*[data-v-17a5bc9c],[data-v-17a5bc9c]::after,[data-v-17a5bc9c]::before{box-sizing:border-box}.input-area[data-v-17a5bc9c]{position:relative}.radius[data-v-17a5bc9c]{display:flex;align-items:center;justify-content:center;position:absolute;padding-right:.1904761905rem;cursor:pointer;z-index:2;right:1.1428571429rem;height:100%;bottom:0}@media (max-width:479px){.radius[data-v-17a5bc9c]{right:1.4953271028rem}}.radius[data-v-17a5bc9c]:hover{cursor:pointer;border-color:#afa2ba}.radius:hover .radius-indicator[data-v-17a5bc9c],.radius:hover .radius-indicator-inner[data-v-17a5bc9c]{transition:all .3s;border-color:#afa2ba}.radius:hover .radius-indicator-inner[data-v-17a5bc9c]{background:#afa2ba!important}.radius.is-selected[data-v-17a5bc9c]{border-color:#12d3db}.radius.is-selected .radius-indicator[data-v-17a5bc9c],.radius.is-selected .radius-indicator-inner[data-v-17a5bc9c]{transition:all .3s;border-color:#12d3db}.radius.is-selected .radius-indicator-inner[data-v-17a5bc9c]{background:#12d3db!important}.radius.is-selected label[data-v-17a5bc9c]{color:#12d3db}.radius label[data-v-17a5bc9c]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}@media (max-width:479px){.radius label[data-v-17a5bc9c]{font-size:.9345794393rem}}.radius-indicator[data-v-17a5bc9c]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-17a5bc9c]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-17a5bc9c]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-17a5bc9c]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-17a5bc9c]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.input-group .input-area[data-v-17a5bc9c]{position:relative;width:100%}.input-group .input-area .link[data-v-17a5bc9c]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-17a5bc9c] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-17a5bc9c]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-17a5bc9c]{color:#ff4641!important}.input-group.size-lg .label[data-v-17a5bc9c]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-17a5bc9c]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-17a5bc9c]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-17a5bc9c]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-17a5bc9c]{font-size:1.1214953271rem}}.input-group.size-lg .radius[data-v-17a5bc9c]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .radius[data-v-17a5bc9c]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-17a5bc9c]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-17a5bc9c]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-17a5bc9c]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-17a5bc9c]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-17a5bc9c]{font-size:1.1214953271rem}}.input-group.size-sm .radius[data-v-17a5bc9c]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .radius[data-v-17a5bc9c]{right:1.4953271028rem}}.input-group .label[data-v-17a5bc9c]{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){.input-group .label[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group .input[data-v-17a5bc9c]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-17a5bc9c]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-17a5bc9c]{font-size:1.308411215rem}}.input-group .input[data-v-17a5bc9c]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-17a5bc9c]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-17a5bc9c]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-17a5bc9c]:hover{border-color:#afa2ba}.input-group .input[data-v-17a5bc9c]:active,.input-group .input[data-v-17a5bc9c]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-17a5bc9c]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-17a5bc9c]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-17a5bc9c]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-17a5bc9c]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-17a5bc9c]{color:#dfdae4}.validation[data-v-17a5bc9c]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-17a5bc9c]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-17a5bc9c].inactive .close path{fill:#ff4641}.validation[data-v-17a5bc9c] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-17a5bc9c] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-17a5bc9c] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-17a5bc9c] svg path{fill:#dfdae4}.validation[data-v-17a5bc9c].active svg path{fill:#00cf72}.validation[data-v-17a5bc9c].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputAddressNumber",directives:{mask:i},components:{Input:D,Select:U},props:(Z={
|
|
746
746
|
/**
|
|
747
747
|
* Nome do campo, utilizado no callback do evento<br>
|
|
748
748
|
* Example: `Name`
|
|
@@ -836,7 +836,7 @@ validationCheckValue:{type:Boolean,required:!1,default:!1}},data:function(){retu
|
|
|
836
836
|
/**
|
|
837
837
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
838
838
|
* Retorna um objeto com target (name do campo), key ativo e value ativo.
|
|
839
|
-
*/this.$emit("update",a)}}},"data-v-7c2a749e",!1,void 0,!1,x,void 0,void 0),Y=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[t.isNew?t._e():a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Identificação do Endereço",helper:"Ex: Meu Apartamento",name:"addressLabel",value:t.address.addressLabel,disabled:!1,error:t.errors.addressLabel,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressLabel&&t.address.addressLabel.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Options",{attrs:{selected:t.address.addressTypeName,grouped:!1,name:"addressTypeName",label:"Tipo do local",placeholder:"Selecione um tipo",options:t.optionTypes,error:t.errors.addressTypeName,disabled:!1,validationCheck:t.isNew,validationCheckValue:1===t.address.addressTypeName||2===t.address.addressTypeName||3===t.address.addressTypeName},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.address.zipPostalCode,disabled:!1,error:t.errors.zipPostalCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.address.zipPostalCode&&t.address.zipPostalCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n CONFIRMAR CEP\n ")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Complemento",name:"address2",helper:"Bloco, sala, conjunto, andar, etc.",value:t.address.address2,disabled:!1,maxlegnth:100,error:t.errors.complement},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",helper:"Nos informe lugares próximos para facilitar sua entrega",label:"Referência",name:"addressReference",value:t.address.addressReference,disabled:!1,error:t.errors.reference},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-5f169c4e_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-5f169c4e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-5f169c4e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-5f169c4e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-5f169c4e]{font-size:14px}}@media (min-width:1024px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-5f169c4e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-5f169c4e]{font-size:1.56vw}}html[data-v-5f169c4e]{box-sizing:border-box}*[data-v-5f169c4e],[data-v-5f169c4e]::after,[data-v-5f169c4e]::before{box-sizing:border-box}.form-group[data-v-5f169c4e]{margin-bottom:.7619047619rem}.action-address[data-v-5f169c4e]{text-align:right;padding-top:1.1428571429rem}.input-area[data-v-5f169c4e]{position:relative}.check[data-v-5f169c4e]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-5f169c4e]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-5f169c4e],.check:hover .radius-indicator-inner[data-v-5f169c4e]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-5f169c4e]{background:#afa2ba!important}.check.is-selected[data-v-5f169c4e]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-5f169c4e],.check.is-selected .radius-indicator-inner[data-v-5f169c4e]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-5f169c4e]{background:#12d3db!important}.check.is-selected label[data-v-5f169c4e]{color:#12d3db}.check label[data-v-5f169c4e]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-5f169c4e]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-5f169c4e]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-5f169c4e]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-5f169c4e]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-5f169c4e]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-5f169c4e]{position:relative;width:100%}.input-group .input-area .link[data-v-5f169c4e]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-5f169c4e] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-5f169c4e]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-5f169c4e]{color:#ff4641!important}.input-group.size-lg .label[data-v-5f169c4e]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-5f169c4e]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-5f169c4e]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-5f169c4e]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-5f169c4e]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-5f169c4e]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-5f169c4e]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-5f169c4e]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-5f169c4e]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-5f169c4e]{font-size:1.1214953271rem}}.input-group .label[data-v-5f169c4e]{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){.input-group .label[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group .input[data-v-5f169c4e]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-5f169c4e]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group .input[data-v-5f169c4e]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-5f169c4e]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5f169c4e]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5f169c4e]:hover{border-color:#afa2ba}.input-group .input[data-v-5f169c4e]:active,.input-group .input[data-v-5f169c4e]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-5f169c4e]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-5f169c4e]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-5f169c4e]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-5f169c4e]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5f169c4e]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5f169c4e]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-5f169c4e]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5f169c4e]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-5f169c4e]{color:#dfdae4}.state-city[data-v-5f169c4e]{display:flex}.state-city .city[data-v-5f169c4e]{width:62%;margin-right:4%}.state-city .state[data-v-5f169c4e]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:i},components:{Input:q,Select:U,Options:W,InputAddressNumber:H,Button:T},props:{
|
|
839
|
+
*/this.$emit("update",a)}}},"data-v-7c2a749e",!1,void 0,!1,x,void 0,void 0),Y=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[t.isNew?t._e():a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Identificação do Endereço",helper:"Ex: Meu Apartamento",name:"addressLabel",value:t.address.addressLabel,disabled:!1,error:t.errors.addressLabel,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressLabel&&t.address.addressLabel.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Options",{attrs:{selected:t.address.addressTypeName,grouped:!1,name:"addressTypeName",label:"Tipo do local",placeholder:"Selecione um tipo",options:t.optionTypes,error:t.errors.addressTypeName,disabled:!1,validationCheck:t.isNew,validationCheckValue:1===t.address.addressTypeName||2===t.address.addressTypeName||3===t.address.addressTypeName},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.address.zipPostalCode,disabled:!1,error:t.errors.zipPostalCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.address.zipPostalCode&&t.address.zipPostalCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n CONFIRMAR CEP\n ")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Complemento",name:"address2",helper:"Bloco, sala, conjunto, andar, etc.",value:t.address.address2,disabled:!1,maxlegnth:100,error:t.errors.complement},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",helper:"Nos informe lugares próximos para facilitar sua entrega",label:"Referência",name:"addressReference",value:t.address.addressReference,disabled:!1,error:t.errors.reference},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-5f169c4e_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-5f169c4e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-5f169c4e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-5f169c4e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-5f169c4e]{font-size:14px}}@media (min-width:1024px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-5f169c4e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-5f169c4e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-5f169c4e]{font-size:1.56vw}}html[data-v-5f169c4e]{box-sizing:border-box}*[data-v-5f169c4e],[data-v-5f169c4e]::after,[data-v-5f169c4e]::before{box-sizing:border-box}.form-group[data-v-5f169c4e]{margin-bottom:.7619047619rem}.action-address[data-v-5f169c4e]{text-align:right;padding-top:1.1428571429rem}.input-area[data-v-5f169c4e]{position:relative}.check[data-v-5f169c4e]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-5f169c4e]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-5f169c4e],.check:hover .radius-indicator-inner[data-v-5f169c4e]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-5f169c4e]{background:#afa2ba!important}.check.is-selected[data-v-5f169c4e]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-5f169c4e],.check.is-selected .radius-indicator-inner[data-v-5f169c4e]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-5f169c4e]{background:#12d3db!important}.check.is-selected label[data-v-5f169c4e]{color:#12d3db}.check label[data-v-5f169c4e]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-5f169c4e]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-5f169c4e]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-5f169c4e]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-5f169c4e]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-5f169c4e]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-5f169c4e]{position:relative;width:100%}.input-group .input-area .link[data-v-5f169c4e]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-5f169c4e] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-5f169c4e]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-5f169c4e]{color:#ff4641!important}.input-group.size-lg .label[data-v-5f169c4e]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-5f169c4e]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-5f169c4e]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-5f169c4e]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-5f169c4e]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-5f169c4e]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-5f169c4e]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-5f169c4e]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-5f169c4e]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-5f169c4e]{font-size:1.1214953271rem}}.input-group .label[data-v-5f169c4e]{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){.input-group .label[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group .input[data-v-5f169c4e]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-5f169c4e]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-5f169c4e]{font-size:1.308411215rem}}.input-group .input[data-v-5f169c4e]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-5f169c4e]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5f169c4e]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5f169c4e]:hover{border-color:#afa2ba}.input-group .input[data-v-5f169c4e]:active,.input-group .input[data-v-5f169c4e]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-5f169c4e]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-5f169c4e]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-5f169c4e]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-5f169c4e]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5f169c4e]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5f169c4e]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-5f169c4e]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5f169c4e]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-5f169c4e]{color:#dfdae4}.state-city[data-v-5f169c4e]{display:flex}.state-city .city[data-v-5f169c4e]{width:62%;margin-right:4%}.state-city .state[data-v-5f169c4e]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:i},components:{Input:D,Select:U,Options:W,InputAddressNumber:H,Button:T},props:{
|
|
840
840
|
/**
|
|
841
841
|
* Nome do campo, utilizado no callback do evento<br>
|
|
842
842
|
* Example: `Name`
|
|
@@ -864,7 +864,7 @@ this.$emit("update",t)},onChangeZipCode:function(t){9===t.value.length&&(this.op
|
|
|
864
864
|
/**
|
|
865
865
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
866
866
|
* Retorna um objeto com target (name do campo) e value.
|
|
867
|
-
*/,this.$emit("update",t)}}},"data-v-5f169c4e",!1,void 0,!1,x,void 0,void 0),G=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.address.zipPostalCode,disabled:!1,error:t.errors.zipPostalCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.address.zipPostalCode&&t.address.zipPostalCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n CONFIRMAR CEP\n ")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-8e489542_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-8e489542]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-8e489542]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-8e489542]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-8e489542]{font-size:14px}}@media (min-width:1024px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-8e489542]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-8e489542]{font-size:1.56vw}}html[data-v-8e489542]{box-sizing:border-box}*[data-v-8e489542],[data-v-8e489542]::after,[data-v-8e489542]::before{box-sizing:border-box}.form-group[data-v-8e489542]{margin-bottom:.7619047619rem}.action-address[data-v-8e489542]{text-align:right;padding-top:1.1428571429rem}.input-area[data-v-8e489542]{position:relative}.check[data-v-8e489542]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-8e489542]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-8e489542],.check:hover .radius-indicator-inner[data-v-8e489542]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-8e489542]{background:#afa2ba!important}.check.is-selected[data-v-8e489542]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-8e489542],.check.is-selected .radius-indicator-inner[data-v-8e489542]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-8e489542]{background:#12d3db!important}.check.is-selected label[data-v-8e489542]{color:#12d3db}.check label[data-v-8e489542]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-8e489542]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-8e489542]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-8e489542]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-8e489542]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-8e489542]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-8e489542]{position:relative;width:100%}.input-group .input-area .link[data-v-8e489542]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-8e489542] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-8e489542]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-8e489542]{color:#ff4641!important}.input-group.size-lg .label[data-v-8e489542]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-8e489542]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-8e489542]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-8e489542]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-8e489542]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-8e489542]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-8e489542]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-8e489542]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-8e489542]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-8e489542]{font-size:1.1214953271rem}}.input-group .label[data-v-8e489542]{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){.input-group .label[data-v-8e489542]{font-size:1.308411215rem}}.input-group .input[data-v-8e489542]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-8e489542]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-8e489542]{font-size:1.308411215rem}}.input-group .input[data-v-8e489542]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-8e489542]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-8e489542]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-8e489542]:hover{border-color:#afa2ba}.input-group .input[data-v-8e489542]:active,.input-group .input[data-v-8e489542]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-8e489542]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-8e489542]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-8e489542]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-8e489542]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-8e489542]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-8e489542]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-8e489542]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-8e489542]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-8e489542]{color:#dfdae4}.state-city[data-v-8e489542]{display:flex}.state-city .city[data-v-8e489542]{width:62%;margin-right:4%}.state-city .state[data-v-8e489542]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:i},components:{Input:
|
|
867
|
+
*/,this.$emit("update",t)}}},"data-v-5f169c4e",!1,void 0,!1,x,void 0,void 0),G=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.address.zipPostalCode,disabled:!1,error:t.errors.zipPostalCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.address.zipPostalCode&&t.address.zipPostalCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n CONFIRMAR CEP\n ")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-8e489542_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-8e489542]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-8e489542]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-8e489542]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-8e489542]{font-size:14px}}@media (min-width:1024px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-8e489542]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-8e489542]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-8e489542]{font-size:1.56vw}}html[data-v-8e489542]{box-sizing:border-box}*[data-v-8e489542],[data-v-8e489542]::after,[data-v-8e489542]::before{box-sizing:border-box}.form-group[data-v-8e489542]{margin-bottom:.7619047619rem}.action-address[data-v-8e489542]{text-align:right;padding-top:1.1428571429rem}.input-area[data-v-8e489542]{position:relative}.check[data-v-8e489542]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-8e489542]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-8e489542],.check:hover .radius-indicator-inner[data-v-8e489542]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-8e489542]{background:#afa2ba!important}.check.is-selected[data-v-8e489542]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-8e489542],.check.is-selected .radius-indicator-inner[data-v-8e489542]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-8e489542]{background:#12d3db!important}.check.is-selected label[data-v-8e489542]{color:#12d3db}.check label[data-v-8e489542]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-8e489542]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-8e489542]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-8e489542]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-8e489542]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-8e489542]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-8e489542]{position:relative;width:100%}.input-group .input-area .link[data-v-8e489542]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-8e489542] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-8e489542]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-8e489542]{color:#ff4641!important}.input-group.size-lg .label[data-v-8e489542]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-8e489542]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-8e489542]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-8e489542]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-8e489542]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-8e489542]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-8e489542]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-8e489542]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-8e489542]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-8e489542]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-8e489542]{font-size:1.1214953271rem}}.input-group .label[data-v-8e489542]{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){.input-group .label[data-v-8e489542]{font-size:1.308411215rem}}.input-group .input[data-v-8e489542]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-8e489542]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-8e489542]{font-size:1.308411215rem}}.input-group .input[data-v-8e489542]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-8e489542]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-8e489542]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-8e489542]:hover{border-color:#afa2ba}.input-group .input[data-v-8e489542]:active,.input-group .input[data-v-8e489542]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-8e489542]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-8e489542]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-8e489542]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-8e489542]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-8e489542]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-8e489542]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-8e489542]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-8e489542]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-8e489542]{color:#dfdae4}.state-city[data-v-8e489542]{display:flex}.state-city .city[data-v-8e489542]{width:62%;margin-right:4%}.state-city .state[data-v-8e489542]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:i},components:{Input:D,Select:U,Options:W,InputAddressNumber:H,Button:T},props:{
|
|
868
868
|
/**
|
|
869
869
|
* Nome do campo, utilizado no callback do evento<br>
|
|
870
870
|
* Example: `Name`
|
|
@@ -892,7 +892,7 @@ this.$emit("update",t)},onChangeZipCode:function(t){9===t.value.length&&(this.op
|
|
|
892
892
|
/**
|
|
893
893
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
894
894
|
* Retorna um objeto com target (name do campo) e value.
|
|
895
|
-
*/,this.$emit("update",t)}}},"data-v-8e489542",!1,void 0,!1,x,void 0,void 0),J=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-card-number-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{name:t.name,value:t.value,type:"cc-number",numeric:!0,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),a("div",{staticClass:"card-icon"},["agi-plan"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#C3171E",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#013158",d:"M16.442 13.107L9 20v-4.13l5.213-4.828c1.5-1.39 4.864-1.39 6.364 0L24 14.212l-2.229 2.065-3.423-3.17c-.45-.416-1.457-.416-1.906 0"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.558 21.893L28 15v4.13l-5.213 4.828c-1.5 1.39-4.864 1.39-6.364 0L13 20.788l2.229-2.065 3.423 3.17c.45.417 1.457.416 1.906 0"}})])]):t._e(),t._v(" "),"american-express"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#007ECD",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M31.624 17.474h-1.58v-.796h1.379s.503.059.503-.273c0-.312-.752-.288-.752-.288s-1.226.106-1.226-1.03c0-1.128 1.107-1.064 1.107-1.064h1.7v.808h-1.368s-.474-.095-.474.246c0 .285.646.244.646.244s1.355-.099 1.355.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.107-.005-.107-.005zm-7.885.006v-3.45h2.77v.8h-1.877v.532h1.83v.784h-1.83v.586h1.877v.748h-2.77zm4.753-.006h-1.58v-.796h1.385s.497.059.497-.273c0-.312-.752-.288-.752-.288s-1.225.106-1.225-1.03c0-1.128 1.107-1.064 1.107-1.064h1.706v.808h-1.374s-.474-.095-.474.246c0 .285.645.244.645.244s1.356-.099 1.356.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.108-.005-.108-.005zm-11.976.006h-.775l-.941-1.024-.947 1.024h-3.304v-3.462h3.232l1.019 1.1 1.024-1.094h.68v-.006h2.155s1.125-.123 1.125 1.017c0 1.018-.373 1.334-1.521 1.334h-.87v1.111h-.877zm-1.112-1.701l1.1 1.204v-2.404l-1.1 1.2zm-3.96.953h1.87l.876-.953-.876-.948h-1.87v.531h1.823v.785h-1.824v.585zm5.949-1.265h.917c.267 0 .486-.146.486-.327 0-.18-.22-.327-.486-.327h-.917v.654zm5.044 2.019v-.673s-.037-.526-.593-.526h-.864v1.199h-.888v-3.457h2.155s1.125-.134 1.125 1.012c0 .597-.498.807-.498.807s.427.199.427.783v.855h-.864zm-1.457-2.012h.918c.266 0 .485-.146.485-.328 0-.181-.219-.327-.485-.327h-.918v.655zm-.669-2.72h.893V9.288h-.893v3.468zm-6.879-.011V9.287h2.77v.806h-1.876v.533h1.83v.783h-1.83v.586h1.877v.748h-2.77zm-1.391 0v-2.386l-1.113 2.386H10.2l-1.119-2.375v2.375H7.33l-.308-.725H5.399l-.314.725h-.97l1.473-3.457h1.25l1.35 3.176V9.286H9.59l.977 2.147.97-2.147h1.404v3.457h-.9zm-6.263-1.609h.864l-.432-1.029-.432 1.03zm23.708 1.609l-1.408-2.31v2.31h-1.74l-.314-.725h-1.622l-.308.725h-1.392s-1.195-.17-1.195-1.632c0-1.918 1.356-1.842 1.403-1.854l1.095.03v.777l-.9.012s-.586 0-.657.755a2.464 2.464 0 0 0-.011.24c.003 1.168 1.026.806 1.06.795l1.1-2.58h1.243l1.332 3.135V9.286h1.255l1.391 2.276V9.286h.895v3.457h-1.227zm-4.705-1.609h.864l-.426-1.029-.438 1.03zm-5.773 1.609v-.673s-.035-.526-.591-.526h-.865v1.199h-.888V9.286h2.155s1.125-.134 1.125 1.012c0 .597-.497.807-.497.807s.432.2.432.784v.854h-.87zm-1.456-2.012h.918c.266 0 .485-.146.485-.328 0-.18-.219-.327-.485-.327h-.918v.655z"}})])]):"diners-club"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#2183CB",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M19.309 20.342h-2.635c-3.984-.065-7.196-3.384-7.196-7.419-.129-4.035 2.955-7.419 6.875-7.549h2.956c4.112-.065 7.453 3.319 7.517 7.484v.065c-.128 4.1-3.405 7.419-7.517 7.419zM16.867 6.676c-3.341 0-6.104 2.798-6.104 6.182 0 3.384 2.763 6.182 6.104 6.182s6.104-2.798 6.104-6.182c0-3.384-2.763-6.182-6.104-6.182zm.964 10.347V8.758c2.249.586 3.662 2.863 3.084 5.141-.386 1.562-1.542 2.733-3.084 3.124zm-1.928 0c-2.249-.586-3.598-2.929-3.02-5.206a4.253 4.253 0 0 1 3.02-3.059v8.265z"}})])]):"elo"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#231F20",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFCA05",d:"M8.374 9.43a3.095 3.095 0 0 1 1.003-.166c1.53 0 2.807 1.111 3.1 2.589l2.168-.453C14.148 8.89 11.978 7 9.377 7c-.596 0-1.169.1-1.705.282l.702 2.147z"}}),t._v(" "),a("path",{attrs:{fill:"#00A4DF",d:"M5.815 16.618l1.466-1.696A3.261 3.261 0 0 1 6.213 12.5c0-.964.413-1.83 1.067-2.422L5.813 8.381A5.542 5.542 0 0 0 4 12.499c0 1.64.702 3.112 1.815 4.12"}}),t._v(" "),a("path",{attrs:{fill:"#EE4123",d:"M12.476 13.148c-.294 1.477-1.57 2.586-3.1 2.586a3.08 3.08 0 0 1-1.003-.166l-.703 2.148a5.27 5.27 0 0 0 1.707.282c2.599 0 4.768-1.887 5.267-4.395l-2.168-.455z"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.875 14.325l-.001.002-.062-.043a1.754 1.754 0 0 1-.805.689c-.665.296-1.282.22-1.724-.178l-.041.064-.001-.001-.756 1.155c.188.133.39.246.6.336.835.355 1.688.339 2.53-.036a3.13 3.13 0 0 0 1.41-1.201l-1.15-.787zm-2.357-2.851c-.703.309-1.065.983-.99 1.773l2.976-1.31c-.512-.615-1.178-.82-1.986-.463zm-1.976 3.52a3.98 3.98 0 0 1-.226-.445 3.333 3.333 0 0 1-.07-2.47c.319-.888.928-1.568 1.715-1.914.99-.436 2.084-.35 3.032.226.603.353 1.03.899 1.354 1.67.041.1.078.205.113.295l-5.918 2.638zM24.529 8.463v6.424l.976.405-.554 1.324-1.078-.459a1.23 1.23 0 0 1-.532-.456 1.461 1.461 0 0 1-.208-.796V8.463h1.396zM27.059 13.25c0-.546.236-1.037.61-1.37l-1.002-1.143a3.38 3.38 0 0 0-1.108 2.512c-.001 1 .426 1.9 1.105 2.515l1-1.144a1.835 1.835 0 0 1-.605-1.37M28.839 15.074c-.198 0-.388-.034-.565-.094l-.478 1.455c.327.112.677.173 1.041.174 1.586.001 2.911-1.15 3.218-2.68l-1.47-.308c-.168.83-.886 1.454-1.746 1.453M28.843 9.896c-.364 0-.714.06-1.04.17l.474 1.457a1.76 1.76 0 0 1 .564-.093c.863 0 1.581.628 1.745 1.46l1.47-.305c-.302-1.533-1.626-2.688-3.213-2.69"}})])]):"hipercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("path",{attrs:{fill:"#C1272D",d:"M0 8.31A3.31 3.31 0 0 1 3.322 5h29.356A3.323 3.323 0 0 1 36 8.31v19.095a3.31 3.31 0 0 1-3.322 3.31H3.322A3.323 3.323 0 0 1 0 27.404V8.31zm2 14.42a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.084 94.084 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06zm12.264-10.234c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zm-1.74 10.234a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zm6.666-.704c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536zM14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068zm10.56-8.746c.143.006.34.01.589.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912zm-.142.66a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02zm5.145 3.816c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M30.157 22.73c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06zM25.012 18.914a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M25.153 18.254c.144.006.34.01.59.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M19.19 22.026c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M12.524 22.73a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zM14.264 12.496c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zM2 22.73a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.085 94.085 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06z"}})])]):"jcb"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#076BB3",rx:"3.316"}}),t._v(" "),a("rect",{attrs:{width:"26",height:"18",x:"5",y:"8.857",fill:"#FFF",rx:"2"}}),t._v(" "),a("path",{attrs:{fill:"#1162A9",d:"M7 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003H7V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#D01036",d:"M15 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#3CA537",d:"M23 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}})])]):"mastercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#353A48",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FF5E00",d:"M18.19 7.584a6.931 6.931 0 0 1 4.547-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696 6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#ED0006",d:"M18.19 7.584a7.122 7.122 0 0 0-2.464 5.404c0 2.164.956 4.101 2.463 5.404a6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#F9A000",d:"M18.19 18.392a7.122 7.122 0 0 0 2.463-5.404 7.122 7.122 0 0 0-2.464-5.404 6.931 6.931 0 0 1 4.548-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696z"}})])]):"visa"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#224DBA",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M12.266 17.15h-2.11L8.574 10.98c-.075-.284-.234-.535-.469-.653a6.763 6.763 0 0 0-1.934-.653v-.238H9.57c.469 0 .82.357.88.772l.82 4.451 2.109-5.223h2.05l-3.163 7.715zm4.336 0H14.61l1.64-7.715h1.993l-1.64 7.715zm4.218-5.578c.059-.415.41-.653.821-.653.645-.06 1.348.06 1.934.356l.352-1.66a4.946 4.946 0 0 0-1.817-.358c-1.934 0-3.34 1.069-3.34 2.552 0 1.128.996 1.72 1.7 2.078.76.356 1.054.593.995.95 0 .533-.586.77-1.171.77a4.932 4.932 0 0 1-2.051-.475l-.352 1.663a5.637 5.637 0 0 0 2.168.415c2.168.059 3.516-1.009 3.516-2.611 0-2.019-2.755-2.137-2.755-3.027zm9.728 5.578l-1.582-7.715h-1.7a.883.883 0 0 0-.82.594l-2.93 7.121h2.051l.41-1.127h2.52l.234 1.127h1.817zm-2.988-5.637l.585 2.908h-1.64l1.055-2.908z"}})])]):a("svg",{staticClass:"card-default",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"35.079",height:"24.793",x:".461",y:"5.461",fill:"#FFF",stroke:"#000","stroke-width":"2",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#000",d:"M0 13h36v4H0zM5 23h8v1H5z"}})])])])],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-a8672ab6_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-a8672ab6]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-a8672ab6]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-a8672ab6]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-a8672ab6]{font-size:14px}}@media (min-width:1024px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-a8672ab6]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-a8672ab6]{font-size:1.56vw}}html[data-v-a8672ab6]{box-sizing:border-box}*[data-v-a8672ab6],[data-v-a8672ab6]::after,[data-v-a8672ab6]::before{box-sizing:border-box}.hide[data-v-a8672ab6]{display:none}.input-card-number-group[data-v-a8672ab6]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-card-number-group[data-v-a8672ab6] .input-area{position:relative;width:100%}.input-card-number-group[data-v-a8672ab6] .input-area .link{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-card-number-group[data-v-a8672ab6] .input-area .link button{color:#12d3db;text-decoration-line:underline;font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;text-transform:none}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .input-area .link button{font-size:.9345794393rem}}.input-card-number-group[data-v-a8672ab6].error-active .input{border-color:#ff4641!important}.input-card-number-group[data-v-a8672ab6].error-active .helper{color:#ff4641!important}.input-card-number-group[data-v-a8672ab6].size-lg .label{font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .label{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-lg .input{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .input{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-lg .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-a8672ab6].size-sm .label{font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .label{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-sm .input{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .input{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-sm .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-a8672ab6] .label{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){.input-card-number-group[data-v-a8672ab6] .label{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6] .form-group{position:relative}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon{position:absolute;top:0;right:1.2380952381rem;width:1.7142857143rem;height:100%;display:flex;align-items:center}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .form-group .card-icon{top:.8411214953rem;width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon svg{width:1.7142857143rem;height:1.619047619rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .form-group .card-icon svg{width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default rect{stroke:#dfdae4}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:first-child,.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:nth-child(2){stroke:#dfdae4}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:last-child,.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:nth-child(2){fill:#dfdae4}.input-card-number-group[data-v-a8672ab6] .helper{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-a8672ab6].is-disabled .label{color:#68596e}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]:hover{border-color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]::placeholder{color:#dfdae4;opacity:1}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]:-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]::-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .helper{color:#dfdae4}input[data-v-a8672ab6]::-webkit-inner-spin-button,input[data-v-a8672ab6]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-a8672ab6]{-moz-appearance:textfield!important}.validation[data-v-a8672ab6]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-a8672ab6]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-a8672ab6].inactive .close path{fill:#ff4641}.validation[data-v-a8672ab6] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-a8672ab6] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-a8672ab6] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-a8672ab6] svg path{fill:#dfdae4}.validation[data-v-a8672ab6].active svg path{fill:#00cf72}.validation[data-v-a8672ab6].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputCardNumber",components:{Input:q},props:{
|
|
895
|
+
*/,this.$emit("update",t)}}},"data-v-8e489542",!1,void 0,!1,x,void 0,void 0),J=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-card-number-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{name:t.name,value:t.value,type:"cc-number",numeric:!0,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),a("div",{staticClass:"card-icon"},["agi-plan"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#C3171E",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#013158",d:"M16.442 13.107L9 20v-4.13l5.213-4.828c1.5-1.39 4.864-1.39 6.364 0L24 14.212l-2.229 2.065-3.423-3.17c-.45-.416-1.457-.416-1.906 0"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.558 21.893L28 15v4.13l-5.213 4.828c-1.5 1.39-4.864 1.39-6.364 0L13 20.788l2.229-2.065 3.423 3.17c.45.417 1.457.416 1.906 0"}})])]):t._e(),t._v(" "),"american-express"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#007ECD",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M31.624 17.474h-1.58v-.796h1.379s.503.059.503-.273c0-.312-.752-.288-.752-.288s-1.226.106-1.226-1.03c0-1.128 1.107-1.064 1.107-1.064h1.7v.808h-1.368s-.474-.095-.474.246c0 .285.646.244.646.244s1.355-.099 1.355.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.107-.005-.107-.005zm-7.885.006v-3.45h2.77v.8h-1.877v.532h1.83v.784h-1.83v.586h1.877v.748h-2.77zm4.753-.006h-1.58v-.796h1.385s.497.059.497-.273c0-.312-.752-.288-.752-.288s-1.225.106-1.225-1.03c0-1.128 1.107-1.064 1.107-1.064h1.706v.808h-1.374s-.474-.095-.474.246c0 .285.645.244.645.244s1.356-.099 1.356.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.108-.005-.108-.005zm-11.976.006h-.775l-.941-1.024-.947 1.024h-3.304v-3.462h3.232l1.019 1.1 1.024-1.094h.68v-.006h2.155s1.125-.123 1.125 1.017c0 1.018-.373 1.334-1.521 1.334h-.87v1.111h-.877zm-1.112-1.701l1.1 1.204v-2.404l-1.1 1.2zm-3.96.953h1.87l.876-.953-.876-.948h-1.87v.531h1.823v.785h-1.824v.585zm5.949-1.265h.917c.267 0 .486-.146.486-.327 0-.18-.22-.327-.486-.327h-.917v.654zm5.044 2.019v-.673s-.037-.526-.593-.526h-.864v1.199h-.888v-3.457h2.155s1.125-.134 1.125 1.012c0 .597-.498.807-.498.807s.427.199.427.783v.855h-.864zm-1.457-2.012h.918c.266 0 .485-.146.485-.328 0-.181-.219-.327-.485-.327h-.918v.655zm-.669-2.72h.893V9.288h-.893v3.468zm-6.879-.011V9.287h2.77v.806h-1.876v.533h1.83v.783h-1.83v.586h1.877v.748h-2.77zm-1.391 0v-2.386l-1.113 2.386H10.2l-1.119-2.375v2.375H7.33l-.308-.725H5.399l-.314.725h-.97l1.473-3.457h1.25l1.35 3.176V9.286H9.59l.977 2.147.97-2.147h1.404v3.457h-.9zm-6.263-1.609h.864l-.432-1.029-.432 1.03zm23.708 1.609l-1.408-2.31v2.31h-1.74l-.314-.725h-1.622l-.308.725h-1.392s-1.195-.17-1.195-1.632c0-1.918 1.356-1.842 1.403-1.854l1.095.03v.777l-.9.012s-.586 0-.657.755a2.464 2.464 0 0 0-.011.24c.003 1.168 1.026.806 1.06.795l1.1-2.58h1.243l1.332 3.135V9.286h1.255l1.391 2.276V9.286h.895v3.457h-1.227zm-4.705-1.609h.864l-.426-1.029-.438 1.03zm-5.773 1.609v-.673s-.035-.526-.591-.526h-.865v1.199h-.888V9.286h2.155s1.125-.134 1.125 1.012c0 .597-.497.807-.497.807s.432.2.432.784v.854h-.87zm-1.456-2.012h.918c.266 0 .485-.146.485-.328 0-.18-.219-.327-.485-.327h-.918v.655z"}})])]):"diners-club"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#2183CB",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M19.309 20.342h-2.635c-3.984-.065-7.196-3.384-7.196-7.419-.129-4.035 2.955-7.419 6.875-7.549h2.956c4.112-.065 7.453 3.319 7.517 7.484v.065c-.128 4.1-3.405 7.419-7.517 7.419zM16.867 6.676c-3.341 0-6.104 2.798-6.104 6.182 0 3.384 2.763 6.182 6.104 6.182s6.104-2.798 6.104-6.182c0-3.384-2.763-6.182-6.104-6.182zm.964 10.347V8.758c2.249.586 3.662 2.863 3.084 5.141-.386 1.562-1.542 2.733-3.084 3.124zm-1.928 0c-2.249-.586-3.598-2.929-3.02-5.206a4.253 4.253 0 0 1 3.02-3.059v8.265z"}})])]):"elo"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#231F20",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFCA05",d:"M8.374 9.43a3.095 3.095 0 0 1 1.003-.166c1.53 0 2.807 1.111 3.1 2.589l2.168-.453C14.148 8.89 11.978 7 9.377 7c-.596 0-1.169.1-1.705.282l.702 2.147z"}}),t._v(" "),a("path",{attrs:{fill:"#00A4DF",d:"M5.815 16.618l1.466-1.696A3.261 3.261 0 0 1 6.213 12.5c0-.964.413-1.83 1.067-2.422L5.813 8.381A5.542 5.542 0 0 0 4 12.499c0 1.64.702 3.112 1.815 4.12"}}),t._v(" "),a("path",{attrs:{fill:"#EE4123",d:"M12.476 13.148c-.294 1.477-1.57 2.586-3.1 2.586a3.08 3.08 0 0 1-1.003-.166l-.703 2.148a5.27 5.27 0 0 0 1.707.282c2.599 0 4.768-1.887 5.267-4.395l-2.168-.455z"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.875 14.325l-.001.002-.062-.043a1.754 1.754 0 0 1-.805.689c-.665.296-1.282.22-1.724-.178l-.041.064-.001-.001-.756 1.155c.188.133.39.246.6.336.835.355 1.688.339 2.53-.036a3.13 3.13 0 0 0 1.41-1.201l-1.15-.787zm-2.357-2.851c-.703.309-1.065.983-.99 1.773l2.976-1.31c-.512-.615-1.178-.82-1.986-.463zm-1.976 3.52a3.98 3.98 0 0 1-.226-.445 3.333 3.333 0 0 1-.07-2.47c.319-.888.928-1.568 1.715-1.914.99-.436 2.084-.35 3.032.226.603.353 1.03.899 1.354 1.67.041.1.078.205.113.295l-5.918 2.638zM24.529 8.463v6.424l.976.405-.554 1.324-1.078-.459a1.23 1.23 0 0 1-.532-.456 1.461 1.461 0 0 1-.208-.796V8.463h1.396zM27.059 13.25c0-.546.236-1.037.61-1.37l-1.002-1.143a3.38 3.38 0 0 0-1.108 2.512c-.001 1 .426 1.9 1.105 2.515l1-1.144a1.835 1.835 0 0 1-.605-1.37M28.839 15.074c-.198 0-.388-.034-.565-.094l-.478 1.455c.327.112.677.173 1.041.174 1.586.001 2.911-1.15 3.218-2.68l-1.47-.308c-.168.83-.886 1.454-1.746 1.453M28.843 9.896c-.364 0-.714.06-1.04.17l.474 1.457a1.76 1.76 0 0 1 .564-.093c.863 0 1.581.628 1.745 1.46l1.47-.305c-.302-1.533-1.626-2.688-3.213-2.69"}})])]):"hipercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("path",{attrs:{fill:"#C1272D",d:"M0 8.31A3.31 3.31 0 0 1 3.322 5h29.356A3.323 3.323 0 0 1 36 8.31v19.095a3.31 3.31 0 0 1-3.322 3.31H3.322A3.323 3.323 0 0 1 0 27.404V8.31zm2 14.42a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.084 94.084 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06zm12.264-10.234c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zm-1.74 10.234a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zm6.666-.704c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536zM14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068zm10.56-8.746c.143.006.34.01.589.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912zm-.142.66a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02zm5.145 3.816c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M30.157 22.73c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06zM25.012 18.914a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M25.153 18.254c.144.006.34.01.59.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M19.19 22.026c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M12.524 22.73a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zM14.264 12.496c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zM2 22.73a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.085 94.085 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06z"}})])]):"jcb"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#076BB3",rx:"3.316"}}),t._v(" "),a("rect",{attrs:{width:"26",height:"18",x:"5",y:"8.857",fill:"#FFF",rx:"2"}}),t._v(" "),a("path",{attrs:{fill:"#1162A9",d:"M7 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003H7V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#D01036",d:"M15 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#3CA537",d:"M23 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}})])]):"mastercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#353A48",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FF5E00",d:"M18.19 7.584a6.931 6.931 0 0 1 4.547-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696 6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#ED0006",d:"M18.19 7.584a7.122 7.122 0 0 0-2.464 5.404c0 2.164.956 4.101 2.463 5.404a6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#F9A000",d:"M18.19 18.392a7.122 7.122 0 0 0 2.463-5.404 7.122 7.122 0 0 0-2.464-5.404 6.931 6.931 0 0 1 4.548-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696z"}})])]):"visa"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#224DBA",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M12.266 17.15h-2.11L8.574 10.98c-.075-.284-.234-.535-.469-.653a6.763 6.763 0 0 0-1.934-.653v-.238H9.57c.469 0 .82.357.88.772l.82 4.451 2.109-5.223h2.05l-3.163 7.715zm4.336 0H14.61l1.64-7.715h1.993l-1.64 7.715zm4.218-5.578c.059-.415.41-.653.821-.653.645-.06 1.348.06 1.934.356l.352-1.66a4.946 4.946 0 0 0-1.817-.358c-1.934 0-3.34 1.069-3.34 2.552 0 1.128.996 1.72 1.7 2.078.76.356 1.054.593.995.95 0 .533-.586.77-1.171.77a4.932 4.932 0 0 1-2.051-.475l-.352 1.663a5.637 5.637 0 0 0 2.168.415c2.168.059 3.516-1.009 3.516-2.611 0-2.019-2.755-2.137-2.755-3.027zm9.728 5.578l-1.582-7.715h-1.7a.883.883 0 0 0-.82.594l-2.93 7.121h2.051l.41-1.127h2.52l.234 1.127h1.817zm-2.988-5.637l.585 2.908h-1.64l1.055-2.908z"}})])]):a("svg",{staticClass:"card-default",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"35.079",height:"24.793",x:".461",y:"5.461",fill:"#FFF",stroke:"#000","stroke-width":"2",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#000",d:"M0 13h36v4H0zM5 23h8v1H5z"}})])])])],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-a8672ab6_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-a8672ab6]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-a8672ab6]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-a8672ab6]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-a8672ab6]{font-size:14px}}@media (min-width:1024px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-a8672ab6]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-a8672ab6]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-a8672ab6]{font-size:1.56vw}}html[data-v-a8672ab6]{box-sizing:border-box}*[data-v-a8672ab6],[data-v-a8672ab6]::after,[data-v-a8672ab6]::before{box-sizing:border-box}.hide[data-v-a8672ab6]{display:none}.input-card-number-group[data-v-a8672ab6]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-card-number-group[data-v-a8672ab6] .input-area{position:relative;width:100%}.input-card-number-group[data-v-a8672ab6] .input-area .link{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-card-number-group[data-v-a8672ab6] .input-area .link button{color:#12d3db;text-decoration-line:underline;font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;text-transform:none}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .input-area .link button{font-size:.9345794393rem}}.input-card-number-group[data-v-a8672ab6].error-active .input{border-color:#ff4641!important}.input-card-number-group[data-v-a8672ab6].error-active .helper{color:#ff4641!important}.input-card-number-group[data-v-a8672ab6].size-lg .label{font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .label{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-lg .input{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .input{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-lg .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-lg .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-a8672ab6].size-sm .label{font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .label{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-sm .input{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .input{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6].size-sm .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6].size-sm .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-a8672ab6] .label{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){.input-card-number-group[data-v-a8672ab6] .label{font-size:1.308411215rem}}.input-card-number-group[data-v-a8672ab6] .form-group{position:relative}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon{position:absolute;top:0;right:1.2380952381rem;width:1.7142857143rem;height:100%;display:flex;align-items:center}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .form-group .card-icon{top:.8411214953rem;width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon svg{width:1.7142857143rem;height:1.619047619rem}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .form-group .card-icon svg{width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default rect{stroke:#dfdae4}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:first-child,.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:nth-child(2){stroke:#dfdae4}.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:last-child,.input-card-number-group[data-v-a8672ab6] .form-group .card-icon .card-default path:nth-child(2){fill:#dfdae4}.input-card-number-group[data-v-a8672ab6] .helper{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-card-number-group[data-v-a8672ab6] .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-a8672ab6].is-disabled .label{color:#68596e}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]:hover{border-color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]::placeholder{color:#dfdae4;opacity:1}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]:-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .input[disabled]::-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-a8672ab6].is-disabled .helper{color:#dfdae4}input[data-v-a8672ab6]::-webkit-inner-spin-button,input[data-v-a8672ab6]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-a8672ab6]{-moz-appearance:textfield!important}.validation[data-v-a8672ab6]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-a8672ab6]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-a8672ab6].inactive .close path{fill:#ff4641}.validation[data-v-a8672ab6] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-a8672ab6] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-a8672ab6] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-a8672ab6] svg path{fill:#dfdae4}.validation[data-v-a8672ab6].active svg path{fill:#00cf72}.validation[data-v-a8672ab6].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputCardNumber",components:{Input:D},props:{
|
|
896
896
|
/**
|
|
897
897
|
* Nome do campo, utilizado no callback do evento<br>
|
|
898
898
|
* Example: `Name`
|
|
@@ -977,7 +977,7 @@ dataObject:{type:[Object,String]}},data:function(){return{}},methods:{onActive:f
|
|
|
977
977
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
978
978
|
* Retorna um objeto com a prop dataObject.
|
|
979
979
|
*/
|
|
980
|
-
this.$emit("update",this.dataObject)}}},"data-v-1a43a2f0",!1,void 0,!1,x,void 0,void 0),K=[],Q=[],tt=(new Date).getFullYear(),et=1;et<=31;et++)K.push({key:et,value:et,name:et});for(var at=0;at<18;at++)Q.push({key:tt-at,value:tt-at,name:tt-at});Q.push({key:"outro",value:"Outro",name:"Outro"});for(var it=[{name:"Janeiro",value:"Janeiro",key:1},{name:"Fevereiro",value:"Fevereiro",key:2},{name:"Março",value:"Março",key:3},{name:"Abril",value:"Abril",key:4},{name:"Maio",value:"Maio",key:5},{name:"Junho",value:"Junho",key:6},{name:"Julho",value:"Julho",key:7},{name:"Agosto",value:"Agosto",key:8},{name:"Setembro",value:"Setembro",key:9},{name:"Outubro",value:"Outubro",key:10},{name:"Novembro",value:"Novembro",key:11},{name:"Dezembro",value:"Dezembro",key:12}],ot=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"birthday-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"birthday-select-list"},[a("div",{staticClass:"birthday-select-group"},[a("Select",{staticClass:"select",attrs:{selected:t.selectedDay,placeholder:"Dia",options:t.days,name:"day"},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"birthday-select-group"},[a("Select",{staticClass:"select",attrs:{selected:t.selectedMonth,placeholder:"Mês",options:t.months,name:"month"},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"birthday-select-group"},[t.yearInput?a("Input",{attrs:{name:"year",maxlength:"4",value:t.selectedYear},on:{update:t.updateYear}}):a("Select",{staticClass:"select",attrs:{selected:t.selectedYear,placeholder:"Ano",options:t.years,name:"year"},on:{update:t.onChange}})],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-e2dad0b6_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-e2dad0b6]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-e2dad0b6]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-e2dad0b6]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-e2dad0b6]{font-size:14px}}@media (min-width:1024px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-e2dad0b6]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-e2dad0b6]{font-size:1.56vw}}html[data-v-e2dad0b6]{box-sizing:border-box}*[data-v-e2dad0b6],[data-v-e2dad0b6]::after,[data-v-e2dad0b6]::before{box-sizing:border-box}.birthday-group[data-v-e2dad0b6]{transition:all .3s;display:flex;flex-direction:column;width:100%}.birthday-group.error-active .select[data-v-e2dad0b6]{border-color:#ff4641!important}.birthday-group.error-active .helper[data-v-e2dad0b6]{color:#ff4641}.birthday-group .birthday-select-list[data-v-e2dad0b6]{display:flex;width:100%;max-width:100%}.birthday-group .birthday-select-list .birthday-select-group[data-v-e2dad0b6]{flex:0 0 30%;max-width:30%}.birthday-group .birthday-select-list .birthday-select-group[data-v-e2dad0b6]:nth-child(2){flex:0 0 40%;max-width:40%;padding:0 .380952381rem}.birthday-group .birthday-select-list .birthday-select-group input[data-v-e2dad0b6],.birthday-group .birthday-select-list .birthday-select-group select[data-v-e2dad0b6]{width:100%}.birthday-group .label[data-v-e2dad0b6]{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){.birthday-group .label[data-v-e2dad0b6]{font-size:1.308411215rem}}.birthday-group .helper[data-v-e2dad0b6]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-group .helper[data-v-e2dad0b6]{font-size:1.1214953271rem}}.birthday-group.is-disabled .label[data-v-e2dad0b6]{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]{background:#f8f7fc;border-color:#dfdae4!important}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]:hover{border-color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]::placeholder{color:#dfdae4;opacity:1}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]:-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]::-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .helper[data-v-e2dad0b6]{color:#dfdae4}',map:void 0,media:void 0})}),{name:"Birthday",components:{Select:U,Input:
|
|
980
|
+
this.$emit("update",this.dataObject)}}},"data-v-1a43a2f0",!1,void 0,!1,x,void 0,void 0),K=[],Q=[],tt=(new Date).getFullYear(),et=1;et<=31;et++)K.push({key:et,value:et,name:et});for(var at=0;at<18;at++)Q.push({key:tt-at,value:tt-at,name:tt-at});Q.push({key:"outro",value:"Outro",name:"Outro"});for(var it=[{name:"Janeiro",value:"Janeiro",key:1},{name:"Fevereiro",value:"Fevereiro",key:2},{name:"Março",value:"Março",key:3},{name:"Abril",value:"Abril",key:4},{name:"Maio",value:"Maio",key:5},{name:"Junho",value:"Junho",key:6},{name:"Julho",value:"Julho",key:7},{name:"Agosto",value:"Agosto",key:8},{name:"Setembro",value:"Setembro",key:9},{name:"Outubro",value:"Outubro",key:10},{name:"Novembro",value:"Novembro",key:11},{name:"Dezembro",value:"Dezembro",key:12}],ot=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"birthday-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"birthday-select-list"},[a("div",{staticClass:"birthday-select-group"},[a("Select",{staticClass:"select",attrs:{selected:t.selectedDay,placeholder:"Dia",options:t.days,name:"day"},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"birthday-select-group"},[a("Select",{staticClass:"select",attrs:{selected:t.selectedMonth,placeholder:"Mês",options:t.months,name:"month"},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"birthday-select-group"},[t.yearInput?a("Input",{attrs:{name:"year",maxlength:"4",value:t.selectedYear},on:{update:t.updateYear}}):a("Select",{staticClass:"select",attrs:{selected:t.selectedYear,placeholder:"Ano",options:t.years,name:"year"},on:{update:t.onChange}})],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-e2dad0b6_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-e2dad0b6]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-e2dad0b6]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-e2dad0b6]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-e2dad0b6]{font-size:14px}}@media (min-width:1024px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-e2dad0b6]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-e2dad0b6]{font-size:1.56vw}}html[data-v-e2dad0b6]{box-sizing:border-box}*[data-v-e2dad0b6],[data-v-e2dad0b6]::after,[data-v-e2dad0b6]::before{box-sizing:border-box}.birthday-group[data-v-e2dad0b6]{transition:all .3s;display:flex;flex-direction:column;width:100%}.birthday-group.error-active .select[data-v-e2dad0b6]{border-color:#ff4641!important}.birthday-group.error-active .helper[data-v-e2dad0b6]{color:#ff4641}.birthday-group .birthday-select-list[data-v-e2dad0b6]{display:flex;width:100%;max-width:100%}.birthday-group .birthday-select-list .birthday-select-group[data-v-e2dad0b6]{flex:0 0 30%;max-width:30%}.birthday-group .birthday-select-list .birthday-select-group[data-v-e2dad0b6]:nth-child(2){flex:0 0 40%;max-width:40%;padding:0 .380952381rem}.birthday-group .birthday-select-list .birthday-select-group input[data-v-e2dad0b6],.birthday-group .birthday-select-list .birthday-select-group select[data-v-e2dad0b6]{width:100%}.birthday-group .label[data-v-e2dad0b6]{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){.birthday-group .label[data-v-e2dad0b6]{font-size:1.308411215rem}}.birthday-group .helper[data-v-e2dad0b6]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-group .helper[data-v-e2dad0b6]{font-size:1.1214953271rem}}.birthday-group.is-disabled .label[data-v-e2dad0b6]{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]{background:#f8f7fc;border-color:#dfdae4!important}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]:hover{border-color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]::placeholder{color:#dfdae4;opacity:1}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]:-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]::-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .helper[data-v-e2dad0b6]{color:#dfdae4}',map:void 0,media:void 0})}),{name:"Birthday",components:{Select:U,Input:D},props:{
|
|
981
981
|
/**
|
|
982
982
|
* Dia do nascimento<br>
|
|
983
983
|
* Example: 05
|
|
@@ -1056,7 +1056,7 @@ labelColor:{type:String,default:"#68596E"},
|
|
|
1056
1056
|
* Exibir mensagem de erro ou não<br>
|
|
1057
1057
|
* Example: `true`
|
|
1058
1058
|
* */
|
|
1059
|
-
error:{type:Boolean,default:!1}},components:{Input:
|
|
1059
|
+
error:{type:Boolean,default:!1}},components:{Input:D,Button:T,ScrollPicker:n,ScrollPickerGroup:d},data:function(){return{days:rt,months:ct,years:nt,maxAgeAllowed:18,currentYear:dt,pickerStatus:{show:!1},dataPicker:{day:"",month:"",year:""},placeholder:"Dia / Mês / Ano",placeholderShown:!0}},watch:{"dataPicker.day":function(t){var e={target:"day",key:t,value:t};this.$emit("update",e)},"dataPicker.month":function(t){var e={target:"month",key:this.monthToInt(t),value:t};this.validateDays(e),this.$emit("update",e)},"dataPicker.year":function(t){var e={target:"year",key:t,value:t};this.validateDays(e),this.$emit("update",e)},"pickerStatus.show":function(){this.pickerStatus.show?document.body.style.overflow="hidden":document.body.style.overflow="auto"}},mounted:function(){this.dataPicker={day:this.selectedDay,month:this.monthToName(this.selectedMonth),year:this.selectedYear},this.selectedDay&&this.selectedMonth&&this.selectedYear&&(this.placeholderShown=!1,this.placeholder="".concat(this.selectedDay," de ").concat(this.monthToName(this.selectedMonth)," de ").concat(this.selectedYear))},methods:{openPicker:function(){this.pickerStatus.show=!0,this.dataPicker={day:this.selectedDay,month:this.monthToName(this.selectedMonth),year:this.selectedYear}},confirmDatepicker:function(){this.dataPicker.day&&this.dataPicker.month&&this.dataPicker.year?(this.placeholderShown=!1,this.placeholder="".concat(this.dataPicker.day," de ").concat(this.dataPicker.month," de ").concat(this.dataPicker.year)):(this.placeholderShown=!0,this.placeholder="Dia / Mês / Ano",this.dataPicker={day:"",month:"",year:""}),this.pickerStatus.show=!1,this.$emit("close")},monthToName:function(t){switch(parseInt(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"}},monthToInt:function(t){switch(t){case"Janeiro":return 1;case"Fevereiro":return 2;case"Março":return 3;case"Abril":return 4;case"Maio":return 5;case"Junho":return 6;case"Julho":return 7;case"Agosto":return 8;case"Setembro":return 9;case"Outubro":return 10;case"Novembro":return 11;case"Dezembro":return 12}},validateDays:function(t){var e,a="month"===t.target?parseInt(t.key):parseInt(this.selectedMonth),i="year"===t.target?parseInt(t.key):parseInt(this.selectedYear);a||(a=13);var o=[];e=1===a||3===a||5===a||7===a||8===a||10===a||12===a||13===a?31:4===a||6===a||9===a||11===a?30:i%4==0&&i%100>0||i%400==0?29:28,a||i||(e=31);for(var r=1;r<=e;r++)o.push({key:r,value:r,name:r});if(this.days=o,this.selectedDay>e){this.$emit("update",{target:"days",key:"",value:""})}}}},"data-v-2135cd52",!1,void 0,!1,x,void 0,void 0),mt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"textarea-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("textarea",{staticClass:"textarea",attrs:{placeholder:t.placeholder,name:t.name,disabled:t.disabled,maxlength:t.maxlength},domProps:{value:t.value},on:{input:t.onInput}}),t._v(" "),a("div",{staticClass:"helper-group"},[t.error&&t.error.length>0?a("span",{staticClass:"helper",domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:null)}}):t._e(),t._v(" "),t.counter?a("span",{staticClass:"counter",style:{color:t.counterColor}},[t._v("Caracteres: "+t._s(t.value.length)+"/"+t._s(t.maxlength))]):t._e()])])},staticRenderFns:[]},(function(t){t&&t("data-v-f8c8bc7a_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-f8c8bc7a]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-f8c8bc7a]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-f8c8bc7a]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-f8c8bc7a]{font-size:14px}}@media (min-width:1024px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-f8c8bc7a]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-f8c8bc7a]{font-size:1.56vw}}html[data-v-f8c8bc7a]{box-sizing:border-box}*[data-v-f8c8bc7a],[data-v-f8c8bc7a]::after,[data-v-f8c8bc7a]::before{box-sizing:border-box}.textarea-group[data-v-f8c8bc7a]{transition:all .3s;display:flex;flex-direction:column;width:100%}.textarea-group.error-active .textarea[data-v-f8c8bc7a]{border-color:#ff4641!important}.textarea-group.error-active .helper[data-v-f8c8bc7a]{color:#ff4641!important}.textarea-group .label[data-v-f8c8bc7a]{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){.textarea-group .label[data-v-f8c8bc7a]{font-size:1.308411215rem}}.textarea-group .textarea[data-v-f8c8bc7a]{transition:all .3s;padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;height:6.0952380952rem;outline:0;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .textarea[data-v-f8c8bc7a]{padding:1.4953271028rem}}@media (max-width:479px){.textarea-group .textarea[data-v-f8c8bc7a]{font-size:1.308411215rem}}.textarea-group .textarea[data-v-f8c8bc7a]::placeholder{color:#afa2ba;opacity:1}.textarea-group .textarea[data-v-f8c8bc7a]:-ms-input-placeholder{color:#afa2ba}.textarea-group .textarea[data-v-f8c8bc7a]::-ms-input-placeholder{color:#afa2ba}.textarea-group .textarea[data-v-f8c8bc7a]::-ms-expand{display:none}.textarea-group .textarea[data-v-f8c8bc7a]:hover{border-color:#afa2ba}.textarea-group .textarea[data-v-f8c8bc7a]:active,.textarea-group .textarea[data-v-f8c8bc7a]:focus{border-color:#12d3db}.textarea-group .helper-group[data-v-f8c8bc7a]{display:flex;justify-content:space-between}.textarea-group .helper-group .helper[data-v-f8c8bc7a]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .helper-group .helper[data-v-f8c8bc7a]{font-size:1.1214953271rem}}.textarea-group .counter[data-v-f8c8bc7a]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-left:auto;margin-top:.1904761905rem;margin-right:.380952381rem;text-align:right;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .counter[data-v-f8c8bc7a]{margin-right:.380952381rem;font-size:1.1214953271rem}}.textarea-group.is-disabled .label[data-v-f8c8bc7a]{color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]{background:#f8f7fc;border-color:#dfdae4!important}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]:hover{border-color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]::placeholder{color:#dfdae4;opacity:1}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]:-ms-input-placeholder{color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]::-ms-input-placeholder{color:#dfdae4}',map:void 0,media:void 0})}),{name:"TextArea",props:{
|
|
1060
1060
|
/**
|
|
1061
1061
|
* Nome do campo, utilizado no callback do evento<br>
|
|
1062
1062
|
* Example: `Name`
|
|
@@ -1244,7 +1244,7 @@ color:{type:String,default:"#68596E"},
|
|
|
1244
1244
|
* Type of font<br>
|
|
1245
1245
|
* Example: `Regular | Bold`
|
|
1246
1246
|
**/
|
|
1247
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-a049d78a",!1,void 0,!1,x,void 0,void 0),bt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",t._g(t._b({attrs:{name:"modal"}},"transition",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"modal-container"},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items"},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon icon-close size-lg",on:{click:t.closeModal}},[a("svg",{attrs:{fill:"#DFDAE4",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-header-content"},[a("Heading",{attrs:{kind:"h4",size:t.headingSize,color:t.headingColor}},[t._v(t._s(t.heading))]),t._v(" "),t.paragraph?a("Paragraph",{attrs:{size:t.paragraphSize,color:"'#ccc'"},domProps:{innerHTML:t._s(t.paragraph)}}):t._e()],1),t._v(" "),t._t("header")],2),t._v(" "),a("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),a("HR",{attrs:{height:"1px",color:"#f0f0f0"}}),t._v(" "),a("div",{staticClass:"modal-footer-items"},[t._t("footer")],2)],1)])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-27a3297c_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-27a3297c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-27a3297c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-27a3297c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-27a3297c]{font-size:14px}}@media (min-width:1024px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-27a3297c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-27a3297c]{font-size:1.56vw}}html[data-v-27a3297c]{box-sizing:border-box}*[data-v-27a3297c],[data-v-27a3297c]::after,[data-v-27a3297c]::before{box-sizing:border-box}.modal[data-v-27a3297c]{display:block;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow-y:scroll;outline:0;font-family:Nunito,sans-serif;display:flex;align-items:center;justify-content:center}.modal-dialog[data-v-27a3297c]{transition:all .5s ease}.modal-backdrop[data-v-27a3297c]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-27a3297c]{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background:rgba(104,89,110,.8);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.modal-content[data-v-27a3297c]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:0;outline:0}@media (max-width:479px){.modal-content[data-v-27a3297c]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-dialog[data-v-27a3297c]{max-width:27.5238095238rem;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;width:auto;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-dialog[data-v-27a3297c]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-27a3297c]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-27a3297c]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-27a3297c] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:1.1428571429rem;max-height:1.1428571429rem;width:100%}@media (max-width:479px){.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-27a3297c]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-27a3297c]{padding:2.9906542056rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-27a3297c]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-27a3297c]{width:100%;margin:0}hr[data-v-27a3297c]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-27a3297c]{display:none}}.modal-body[data-v-27a3297c]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-27a3297c]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-27a3297c]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c]{background:#fff;padding:1.4018691589rem .9345794393rem;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64)}}.modal-footer-items[data-v-27a3297c] div{display:flex;justify-content:flex-start;flex-direction:row;width:100%}.modal-footer-items[data-v-27a3297c] div .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-ghost{width:50%;margin-left:.7476635514rem}}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-secondary{width:50%}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:T,Heading:vt,Paragraph:ft,Icon:A},props:{kind:{type:String,default:"primary"},size:{type:String,default:"xl"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0}},created:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},beforeCreate:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},mounted:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},destroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},beforeDestroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},methods:{onClick:function(){this.$emit("click")},closeModal:function(){this.$emit("closeModal"),document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")}},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}}},"data-v-27a3297c",!1,void 0,!1,x,void 0,void 0);var wt={en:{urlBuilder:"https://builder.playstories.com",justASecond:"Just a second",loadingPhrase:"We are loading your exclusive book",pages:"PAGES",pagesLowercase:"Pages",editArea:"Editing area",name:"Name",dedication:"Dedication",writeDedication:"Write a dedication",shirtNumber:"Shirt Number",bookScript:"Book Script",dateBirth:"Birthday Date",editDateBirth:"Edit birthday date",pet:"Pet",editName:"Edit child's name",kidName:"Child's name",recommendedName:"It is recommended to use only the first name",dedicationFree:"Dedication (free)",cusutomDedication:"Customize the dedication that will be printed on the book.",messageDedication:"Dedication message",dedcationPlaceholder:"May your life be full of great adventures!",editShirt:"Edit shirt number",chooseScript:"You choose the script",choosePetLabel1:"Choose the pair that will help the",choosePetLabel2:"to meet Samson on this adventure together with Turma da Mônica.",day:"Day",month:"Month",changePet:"Change the story bug",petDescription1:"This pet will accompany",petDescription2:"throughout history.",typePetname:"Type the pet's name here",selectPet:"Select the pet",update:"UPDATE",cancel:"CANCEL"},br:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Só um segundo",loadingPhrase:"Estamos carregando seu livro exclusivo",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",pet:"Bichinho de estimação",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",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",moonerTitleFirstOpen:"Adicione um Mooner na história",moonerTitleFirstOpenMobile:"Adicione um Mooner",moonerTitle:"Altere o Mooner da história",moonerTitleMobile:"Altere o Mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> durante toda a aventura.",moonerLabel:"Digite um nome para o Mooner",moonerLabelSelector:"Selecione um Mooner: ",moonerCtaFirstOpen:"Adicionar Mooner",moonerCta:"Atualizar",moonerCtaCancel:"Cancel"}};!function(t){function e(t,e,a){if(!a[0]||"object"==u(a[0]))return e.init.apply(t,a);if(e[a[0]])return e[a[0]].apply(t,Array.prototype.slice.call(a,1));throw p(a[0]+" is not a method or property")}function a(t,e,a,i){return{css:{position:"absolute",top:t,left:e,overflow:i||"hidden",zIndex:a||"auto"}}}function i(t,e,a,i,r){var n=1-r,d=n*n*n,s=r*r*r;return o(Math.round(d*t.x+3*r*n*n*e.x+3*r*r*n*a.x+s*i.x),Math.round(d*t.y+3*r*n*n*e.y+3*r*r*n*a.y+s*i.y))}function o(t,e){return{x:t,y:e}}function r(t,e,a){return h&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function n(t){return" rotate("+t+"deg) "}function d(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function s(){for(var t=["Moz","Webkit","Khtml","O","ms"],e=t.length,a="";e--;)t[e]+"Transform"in document.body.style&&(a="-"+t[e].toLowerCase()+"-");return a}function l(t,e,a,i,r){var n,d=[];if("-webkit-"==v){for(n=0;n<r;n++)d.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+d.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var s=(a={x:a.x/100*t.width(),y:a.y/100*t.height()}).x-e.x;n=a.y-e.y;var l=Math.atan2(n,s),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),s=Math.sqrt(n*n+s*s),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(n=-1/p)*(p=(n*a.x-a.y-p*e.x+e.y)/(n-p))-n*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),n=0;n<r;n++)d.push(" "+i[n][1]+" "+100*(e+s*i[n][0])/c+"%");t.css({"background-image":v+"linear-gradient("+-l+"rad,"+d.join(",")+")"})}}function c(e,a,i){return e=t.Event(e),a.trigger(e,i),e.isDefaultPrevented()?"prevented":e.isPropagationStopped()?"stopped":""}function p(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function m(t){var e={top:0,left:0};do{e.left+=t.offsetLeft,e.top+=t.offsetTop}while(t=t.offsetParent);return e}var h,g,v="",f=Math.PI,b=f/2,w="ontouchstart"in window,x=w?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},y={backward:["bl","tl"],forward:["br","tr"],all:"tl bl tr br l r".split(" ")},z=["single","double"],k=["ltr","rtl"],_={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},C={cornerSize:100},M={init:function(e){var a,i;h="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,g=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||534.3<parseFloat(a[1]),v=s(),a=0;var o=this.data(),n=this.children();e=t.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},_,e);if(o.opts=e,o.pageObjs={},o.pages={},o.pageWrap={},o.pageZoom={},o.pagePlace={},o.pageMv=[],o.zoom=1,o.totalPages=e.pages||0,o.eventHandlers={touchStart:t.proxy(M._touchStart,this),touchMove:t.proxy(M._touchMove,this),touchEnd:t.proxy(M._touchEnd,this),start:t.proxy(M._eventStart,this)},e.when)for(i in e.when)d(i,e.when)&&this.bind(i,e.when[i]);for(this.css({position:"relative",width:e.width,height:e.height}),this.turn("display",e.display),""!==e.direction&&this.turn("direction",e.direction),h&&!w&&e.acceleration&&this.transform(r(0,0,!0)),i=0;i<n.length;i++)"1"!=t(n[i]).attr("ignore")&&this.turn("addPage",n[i],++a);return t(this).bind(x.down,o.eventHandlers.touchStart).bind("end",M._eventEnd).bind("pressed",M._eventPressed).bind("released",M._eventReleased).bind("flip",M._flip),t(this).parent().bind("start",o.eventHandlers.start),t(document).bind(x.move,o.eventHandlers.touchMove).bind(x.up,o.eventHandlers.touchEnd),this.turn("page",e.page),o.done=!0,this},addPage:function(e,a){var i,o=!1,r=this.data(),n=r.totalPages+1;if(r.destroying)return!1;if((i=/\bp([0-9]+)\b/.exec(t(e).attr("class")))&&(a=parseInt(i[1],10)),a){if(a==n)o=!0;else if(a>n)throw p('Page "'+a+'" cannot be inserted')}else a=n,o=!0;return 1<=a&&a<=n&&(i="double"==r.display?a%2?" odd":" even":"",r.done&&this.turn("stop"),a in r.pageObjs&&M._movePages.call(this,a,1),o&&(r.totalPages=n),r.pageObjs[a]=t(e).css({float:"left"}).addClass("page p"+a+i),-1!=navigator.userAgent.indexOf("MSIE 9.0")&&r.pageObjs[a].hasClass("hard")&&r.pageObjs[a].removeClass("hard"),M._addPage.call(this,a),M._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(M._necessPage.call(this,e)){if(!a.pageWrap[e]){a.pageWrap[e]=t("<div/>",{class:"page-wrapper",page:e,css:{position:"absolute",overflow:"hidden"}}),this.append(a.pageWrap[e]),a.pagePlace[e]||(a.pagePlace[e]=e,a.pageObjs[e].appendTo(a.pageWrap[e]));var o=M._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&M._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return d(t,this.data().pageObjs)},center:function(e){var a=this.data(),i=t(this).turn("size"),o=0;return a.noCenter||("double"==a.display&&(e=this.turn("view",e||a.tpage||a.page),"ltr"==a.direction?e[0]?e[1]||(o+=i.width/4):o-=i.width/4:e[0]?e[1]||(o-=i.width/4):o+=i.width/4),t(this).css({marginLeft:o})),this},destroy:function(){var e=this,a=this.data(),i="end first flip last pressed released start turning turned zooming missing".split(" ");if("prevented"!=c("destroying",this)){for(a.destroying=!0,t.each(i,(function(t,a){e.unbind(a)})),this.parent().unbind("start",a.eventHandlers.start),t(document).unbind(x.move,a.eventHandlers.touchMove).unbind(x.up,a.eventHandlers.touchEnd);0!==a.totalPages;)this.turn("removePage",a.totalPages);return a.fparent&&a.fparent.remove(),a.shadow&&a.shadow.remove(),this.removeData(),a=null,this}},is:function(){return"object"==u(this.data().pages)},zoom:function(e){var a=this.data();if("number"==typeof e){if(.001>e||100<e)throw p(e+" is not a value for zoom");if("prevented"==c("zooming",this,[e,a.zoom]))return this;var i=this.turn("size"),o=this.turn("view"),r=1/a.zoom,n=Math.round(i.width*r*e);i=Math.round(i.height*r*e);for(a.zoom=e,t(this).turn("stop").turn("size",n,i),a.opts.autoCenter&&this.turn("center"),M._updateShadow.call(this),e=0;e<o.length;e++)o[e]&&a.pageZoom[o[e]]!=a.zoom&&(this.trigger("zoomed",[o[e],o,a.pageZoom[o[e]],a.zoom]),a.pageZoom[o[e]]=a.zoom);return this}return a.zoom},_pageSize:function(t,e){var a=this.data(),i={};if("single"==a.display)i.width=this.width(),i.height=this.height(),e&&(i.top=0,i.left=0,i.right="auto");else{var o=this.width()/2,r=this.height();if(a.pageObjs[t].hasClass("own-size")?(i.width=a.pageObjs[t].width(),i.height=a.pageObjs[t].height()):(i.width=o,i.height=r),e){var n=t%2;i.top=(r-i.height)/2,"ltr"==a.direction?(i[n?"right":"left"]=o-i.width,i[n?"left":"right"]="auto"):(i[n?"left":"right"]=o-i.width,i[n?"right":"left"]="auto")}}return i},_makeFlip:function(t){var e=this.data();if(!e.pages[t]&&e.pagePlace[t]==t){var a="single"==e.display,i=t%2;e.pages[t]=e.pageObjs[t].css(M._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),M._setPageLoc.call(this,t),e.pageZoom[t]=e.zoom}return e.pages[t]},_makeRange:function(){var t,e;if(!(1>this.data().totalPages))for(t=(e=this.turn("range"))[0];t<=e[1];t++)M._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=M._view.call(this,t),1>t||t>o.totalPages)throw p('"'+t+'" is not a valid page');return i[1]=i[1]||i[0],1<=i[0]&&i[1]<=o.totalPages?(t=Math.floor(2),o.totalPages-i[1]>i[0]?a=2*t-(e=Math.min(i[0]-1,t)):e=2*t-(a=Math.min(o.totalPages-i[1],t))):a=e=5,[Math.max(1,i[0]-e),Math.min(o.totalPages,i[1]+a)]},_necessPage:function(t){if(0===t)return!0;var e=this.turn("range");return this.data().pageObjs[t].hasClass("fixed")||t>=e[0]&&t<=e[1]},_removeFromDOM:function(){var t,e=this.data();for(t in e.pageWrap)d(t,e.pageWrap)&&!M._necessPage.call(this,t)&&M._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();P._moveFoldingPage.call(e.pages[t],!1),a.f&&a.f.fwrapper&&a.f.fwrapper.remove(),e.pages[t].removeData(),e.pages[t].remove(),delete e.pages[t]}e.pageObjs[t]&&e.pageObjs[t].remove(),e.pageWrap[t]&&(e.pageWrap[t].remove(),delete e.pageWrap[t]),M._removeMv.call(this,t),delete e.pagePlace[t],delete e.pageZoom[t]},removePage:function(t){var e=this.data();if("*"==t)for(;0!==e.totalPages;)this.turn("removePage",e.totalPages);else{if(1>t||t>e.totalPages)throw p("The page "+t+" doesn't exist");e.pageObjs[t]&&(this.turn("stop"),M._removePageFromDOM.call(this,t),delete e.pageObjs[t]),M._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,M._fitPage.call(this,e.totalPages)):(M._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,n=function(t){var a=t+e,n=a%2,d=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+d)),o.pagePlace[t]&&o.pageWrap[t]&&(o.pagePlace[a]=a,o.pageWrap[a]=o.pageObjs[a].hasClass("fixed")?o.pageWrap[t].attr("page",a):o.pageWrap[t].css(M._pageSize.call(i,a,!0)).attr("page",a),o.pages[t]&&(o.pages[a]=o.pages[t].flip("options",{page:a,next:r||n?a+1:a-1})),e&&(delete o.pages[t],delete o.pagePlace[t],delete o.pageZoom[t],delete o.pageObjs[t],delete o.pageWrap[t]))};if(0<e)for(a=o.totalPages;a>=t;a--)n(a);else for(a=t;a<=o.totalPages;a++)n(a)},display:function(e){var a=this.data(),i=a.display;if(void 0===e)return i;if(-1==t.inArray(e,z))throw p('"'+e+'" is not a value for display');switch(e){case"single":a.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),a.pageObjs[0]=t("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":a.pageObjs[0]&&(this.turn("stop").css({overflow:""}),a.pageObjs[0].remove(),delete a.pageObjs[0]),this.removeClass("shadow")}return a.display=e,i&&(e=this.turn("size"),M._movePages.call(this,1,0),this.turn("size",e.width,e.height).turn("update")),this},direction:function(e){var a=this.data();if(void 0===e)return a.direction;if(e=e.toLowerCase(),-1==t.inArray(e,k))throw p('"'+e+'" is not a value for direction');return"rtl"==e&&t(this).attr("dir","ltr").css({direction:"ltr"}),a.direction=e,a.done&&this.turn("size",t(this).width(),t(this).height()),this},animating:function(){return 0<this.data().pageMv.length},corner:function(){var t,e,a=this.data();for(e in a.pages)if(d(e,a.pages)&&(t=a.pages[e].flip("corner")))return t;return!1},data:function(){return this.data()},disable:function(e){var a,i=this.data(),o=this.turn("view");for(a in i.disabled=void 0===e||!0===e,i.pages)d(a,i.pages)&&i.pages[a].flip("disable",!!i.disabled||-1==t.inArray(parseInt(a,10),o));return this},disabled:function(t){return void 0===t?!0===this.data().disabled:this.turn("disable",t)},size:function(t,e){if(void 0===t||void 0===e)return{width:this.width(),height:this.height()};this.turn("stop");var a,i,o=this.data();for(a in i="double"==o.display?t/2:t,this.css({width:t,height:e}),o.pageObjs[0]&&o.pageObjs[0].css({width:i,height:e}),o.pageWrap)d(a,o.pageWrap)&&(i=M._pageSize.call(this,a,!0),o.pageObjs[a].css({width:i.width,height:i.height}),o.pageWrap[a].css(i),o.pages[a]&&o.pages[a].css({width:i.width,height:i.height}));return this.turn("resize"),this},resize:function(){var t,e=this.data();for(e.pages[0]&&(e.pageWrap[0].css({left:-this.width()}),e.pages[0].flip("resize",!0)),t=1;t<=e.totalPages;t++)e.pages[t]&&e.pages[t].flip("resize",!0);M._updateShadow.call(this),e.opts.autoCenter&&this.turn("center")},_removeMv:function(t){var e,a=this.data();for(e=0;e<a.pageMv.length;e++)if(a.pageMv[e]==t)return a.pageMv.splice(e,1),!0;return!1},_addMv:function(t){var e=this.data();M._removeMv.call(this,t),e.pageMv.push(t)},_view:function(t){var e=this.data();t=t||e.page;return"double"==e.display?t%2?[t-1,t]:[t,t+1]:[t]},view:function(t){var e=this.data();t=M._view.call(this,t);return"double"==e.display?[0<t[0]?t[0]:0,t[1]<=e.totalPages?t[1]:0]:[0<t[0]&&t[0]<=e.totalPages?t[0]:0]},stop:function(t,e){if(this.turn("animating")){var a,i,o,r=this.data();for(r.tpage&&(r.page=r.tpage,delete r.tpage),a=0;a<r.pageMv.length;a++)r.pageMv[a]&&r.pageMv[a]!==t&&(i=(o=r.pages[r.pageMv[a]]).data().f.opts,o.flip("hideFoldedPage",e),e||P._moveFoldingPage.call(o,!1),i.force&&(i.next=0==i.page%2?i.page-1:i.page+1,delete i.force))}return this.turn("update"),this},pages:function(t){var e=this.data();if(t){if(t<e.totalPages)for(var a=e.totalPages;a>t;a--)this.turn("removePage",a);return e.totalPages=t,M._fitPage.call(this,e.page),this}return e.totalPages},_missing:function(t){var e=this.data();if(!(1>e.totalPages)){var a=this.turn("range",t),i=[];for(t=a[0];t<=a[1];t++)e.pageObjs[t]||i.push(t);0<i.length&&this.trigger("missing",[i])}},_fitPage:function(t){var e=this.data(),a=this.turn("view",t);if(M._missing.call(this,t),e.pageObjs[t]){e.page=t,this.turn("stop");for(var i=0;i<a.length;i++)a[i]&&e.pageZoom[a[i]]!=e.zoom&&(this.trigger("zoomed",[a[i],a,e.pageZoom[a[i]],e.zoom]),e.pageZoom[a[i]]=e.zoom);M._removeFromDOM.call(this),M._makeRange.call(this),M._updateShadow.call(this),this.trigger("turned",[t,a]),this.turn("update"),e.opts.autoCenter&&this.turn("center")}},_turnPage:function(e){var a,i,o=this.data(),r=o.pagePlace[e],n=this.turn("view"),d=this.turn("view",e);if(o.page!=e){var s=o.page;if("prevented"==c("turning",this,[e,d]))return void(s==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,d)&&this.trigger("first"),-1!=t.inArray(o.totalPages,d)&&this.trigger("last")}"single"==o.display?(a=n[0],i=d[0]):n[1]&&e>n[1]?(a=n[1],i=d[0]):n[0]&&e<n[0]&&(a=n[0],i=d[1]),r=o.opts.turnCorners.split(","),d=(n=o.pages[a].data().f).opts,s=n.point,M._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,M._makeRange.call(this),o.tpage=i,d.next!=i&&(d.next=i,d.force=!0),this.turn("update"),n.point=s,"hard"==n.effect?"ltr"==o.direction?o.pages[a].flip("turnPage",e>a?"r":"l"):o.pages[a].flip("turnPage",e>a?"l":"r"):"ltr"==o.direction?o.pages[a].flip("turnPage",r[e>a?1:0]):o.pages[a].flip("turnPage",r[e>a?0:1]))},page:function(e){var a=this.data();if(void 0===e)return a.page;if(!a.disabled&&!a.destroying){if(0<(e=parseInt(e,10))&&e<=a.totalPages)return e!=a.page&&(a.done&&-1==t.inArray(e,this.turn("view"))?M._turnPage.call(this,e):M._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,M._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,M._view.call(this,this.data().page).shift()-1))},peel:function(t,e){var a=this.data(),i=this.turn("view");e=void 0===e||!0===e;return!1===t?this.turn("stop",null,e):"single"==a.display?a.pages[a.page].flip("peel",t,e):(i="ltr"==a.direction?-1!=t.indexOf("l")?i[0]:i[1]:-1!=t.indexOf("l")?i[1]:i[0],a.pages[i]&&a.pages[i].flip("peel",t,e)),this},_addMotionPage:function(){var e=t(this).data().f.opts,a=e.turn;a.data(),M._addMv.call(a,e.page)},_eventStart:function(t,e,a){var i=e.turn.data(),o=i.pageZoom[e.page];t.isDefaultPrevented()||(o&&o!=i.zoom&&(e.turn.trigger("zoomed",[e.page,e.turn.turn("view",e.page),o,i.zoom]),i.pageZoom[e.page]=i.zoom),"single"==i.display&&a&&("l"==a.charAt(1)&&"ltr"==i.direction||"r"==a.charAt(1)&&"rtl"==i.direction?(e.next=e.next<e.page?e.next:e.page-1,e.force=!0):e.next=e.next>e.page?e.next:e.page+1),M._addMotionPage.call(t.target)),M._updateShadow.call(e.turn)},_eventEnd:function(e,a,i){t(e.target).data();var o=(e=a.turn).data();i?((i=o.tpage||o.page)==a.next||i==a.page)&&(delete o.tpage,M._fitPage.call(e,i||a.next,!0)):(M._removeMv.call(e,a.page),M._updateShadow.call(e),e.turn("update"))},_eventPressed:function(e){var a=(e=t(e.target).data().f).opts.turn;return a.data().mouseAction=!0,a.turn("update"),e.time=(new Date).getTime()},_eventReleased:function(e,a){var i,o=(i=t(e.target)).data().f,r=o.opts.turn,n=r.data();i="single"==n.display?"br"==a.corner||"tr"==a.corner?a.x<i.width()/2:a.x>i.width()/2:0>a.x||a.x>i.width(),(200>(new Date).getTime()-o.time||i)&&(e.preventDefault(),M._turnPage.call(r,o.opts.next)),n.mouseAction=!1},_flip:function(e){e.stopPropagation(),(e=t(e.target).data().f.opts).turn.trigger("turn",[e.next]),e.turn.data().opts.autoCenter&&e.turn.turn("center",e.next)},_touchStart:function(){var t,e=this.data();for(t in e.pages)if(d(t,e.pages)&&!1===P._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),d=(e=this.turn("view"))[0]||e[1],s=t.length-1,l={pageZ:{},partZ:{},pageV:{}},c=function(t){(t=r.turn("view",t))[0]&&(l.pageV[t[0]]=!0),t[1]&&(l.pageV[t[1]]=!0)};for(e=0;e<=s;e++)a=t[e],i=n.pages[a].data().f.opts.next,o=n.pagePlace[a],c(a),c(i),a=n.pagePlace[i]==i?i:a,l.pageZ[a]=n.totalPages-Math.abs(d-a),l.partZ[o]=2*n.totalPages-s+e;return l},update:function(){var e,a=this.data();if(this.turn("animating")&&0!==a.pageMv[0]){var i,o=this.turn("calculateZ",a.pageMv),r=this.turn("corner"),n=this.turn("view"),s=this.turn("view",a.tpage);for(e in a.pageWrap)d(e,a.pageWrap)&&(i=a.pageObjs[e].hasClass("fixed"),a.pageWrap[e].css({display:o.pageV[e]||i?"":"none",zIndex:(a.pageObjs[e].hasClass("hard")?o.partZ[e]:o.pageZ[e])||(i?-1:0)}),i=a.pages[e])&&(i.flip("z",o.partZ[e]||null),o.pageV[e]&&i.flip("resize"),a.tpage?i.flip("hover",!1).flip("disable",-1==t.inArray(parseInt(e,10),a.pageMv)&&e!=s[0]&&e!=s[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)d(e,a.pageWrap)&&(o=M._setPageLoc.call(this,e),a.pages[e]&&a.pages[e].flip("disable",a.disabled||1!=o).flip("hover",!0).flip("z",null));return this},_updateShadow:function(){var e,i,o=this.data(),r=this.width(),n=this.height(),d="single"==o.display?r:r/2;e=this.turn("view"),o.shadow||(o.shadow=t("<div />",{class:"shadow",css:a(0,0,0).css}).appendTo(this));for(var s=0;s<o.pageMv.length&&e[0]&&e[1];s++)e=this.turn("view",o.pages[o.pageMv[s]].data().f.opts.next),i=this.turn("view",o.pageMv[s]),e[0]=e[0]&&i[0],e[1]=e[1]&&i[1];switch(e[0]?e[1]?3:"ltr"==o.direction?2:1:"ltr"==o.direction?1:2){case 1:o.shadow.css({width:d,height:n,top:0,left:d});break;case 2:o.shadow.css({width:d,height:n,top:0,left:0});break;case 3:o.shadow.css({width:r,height:n,top:0,left:0})}},_setPageLoc:function(t){var e=this.data(),a=this.turn("view"),i=0;if(t==a[0]||t==a[1]?i=1:("single"==e.display&&t==a[0]+1||"double"==e.display&&t==a[0]-2||t==a[1]+2)&&(i=2),!this.turn("animating"))switch(i){case 1:e.pageWrap[t].css({zIndex:e.totalPages,display:""});break;case 2:e.pageWrap[t].css({zIndex:e.totalPages-1,display:""});break;case 0:e.pageWrap[t].css({zIndex:0,display:e.pageObjs[t].hasClass("fixed")?"":"none"})}return i},options:function(e){if(void 0===e)return this.data().opts;var a=this.data();if(t.extend(a.opts,e),e.pages&&this.turn("pages",e.pages),e.page&&this.turn("page",e.page),e.display&&this.turn("display",e.display),e.direction&&this.turn("direction",e.direction),e.width&&e.height&&this.turn("size",e.width,e.height),e.when)for(var i in e.when)d(i,e.when)&&this.unbind(i).bind(i,e.when[i]);return this},version:function(){return"4.1.0"}},P={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),P._addPageWrapper.call(this),this},setData:function(e){var a=this.data();return a.f=t.extend(a.f,e),this},options:function(e){var a=this.data().f;return e?(P.setData.call(this,{opts:t.extend({},a.opts||C,e)}),this):a.opts},z:function(t){var e=this.data().f;return e.opts["z-index"]=t,e.fwrapper&&e.fwrapper.css({zIndex:t||parseInt(e.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var t=this.data().f,e=t.opts.page,a=t.opts.turn.data(),i=e%2;return"hard"==t.effect?"ltr"==a.direction?[i?"r":"l"]:[i?"l":"r"]:"single"==a.display?1==e?"ltr"==a.direction?y.forward:y.backward:e==a.totalPages?"ltr"==a.direction?y.backward:y.forward:y.all:"ltr"==a.direction?y[i?"forward":"backward"]:y[i?"backward":"forward"]},_cornerActivated:function(e){var a=this.data().f,i=this.width(),o=this.height(),r=(e={x:e.x,y:e.y,corner:""},a.opts.cornerSize);if(0>=e.x||0>=e.y||e.x>=i||e.y>=o)return!1;var n=P._cAllowed.call(this);switch(a.effect){case"hard":if(e.x>i-r)e.corner="r";else{if(!(e.x<r))return!1;e.corner="l"}break;case"sheet":if(e.y<r)e.corner+="t";else{if(!(e.y>=o-r))return!1;e.corner+="b"}if(e.x<=r)e.corner+="l";else{if(!(e.x>=i-r))return!1;e.corner+="r"}}return!(!e.corner||-1==t.inArray(e.corner,n))&&e},_isIArea:function(t){var e=this.data().f.parent.offset();t=w&&t.originalEvent?t.originalEvent.touches[0]:t;return P._cornerActivated.call(this,{x:t.pageX-e.left,y:t.pageY-e.top})},_c:function(t,e){switch(e=e||0,t){case"tl":return o(e,e);case"tr":return o(this.width()-e,e);case"bl":return o(e,this.height()-e);case"br":return o(this.width()-e,this.height()-e);case"l":return o(e,0);case"r":return o(this.width()-e,0)}},_c2:function(t){switch(t){case"tl":return o(2*this.width(),0);case"tr":return o(-this.width(),0);case"bl":return o(2*this.width(),this.height());case"br":return o(-this.width(),this.height());case"l":return o(2*this.width(),0);case"r":return o(-this.width(),0)}},_foldingPage:function(){var t=this.data().f;if(t){var e=t.opts;if(e.turn)return"single"==(t=e.turn.data()).display?1<e.next||1<e.page?t.pageObjs[0]:null:t.pageObjs[e.next]}},_backGradient:function(){var e=this.data().f,i=e.opts.turn.data();return(i=i.opts.gradients&&("single"==i.display||2!=e.opts.page&&e.opts.page!=i.totalPages-1))&&!e.bshadow&&(e.bshadow=t("<div/>",a(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(e.parent)),i},type:function(){return this.data().f.effect},resize:function(t){var e=this.data().f,a=e.opts.turn.data(),i=this.width(),o=this.height();switch(e.effect){case"hard":t&&(e.wrapper.css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&(e.ashadow.css({width:i,height:o}),e.bshadow.css({width:i,height:o})));break;case"sheet":t&&(t=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(o,2))),e.wrapper.css({width:t,height:t}),e.fwrapper.css({width:t,height:t}).children(":first-child").css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&e.ashadow.css({width:i,height:o}),P._backGradient.call(this)&&e.bshadow.css({width:i,height:o})),e.parent.is(":visible")&&(a=m(e.parent[0]),e.fwrapper.css({top:a.top,left:a.left}),a=m(e.opts.turn[0]),e.fparent.css({top:-a.top,left:-a.left})),this.flip("z",e.opts["z-index"])}},_addPageWrapper:function(){var e=this.data().f,i=e.opts.turn.data(),o=this.parent();if(e.parent=o,!e.wrapper)switch(e.effect){case"hard":(r={})[v+"transform-style"]="preserve-3d",r[v+"backface-visibility"]="hidden",e.wrapper=t("<div/>",a(0,0,2)).css(r).appendTo(o).prepend(this),e.fpage=t("<div/>",a(0,0,1)).css(r).appendTo(o),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,0)).hide().appendTo(o),e.bshadow=t("<div/>",a(0,0,0)));break;case"sheet":var r=this.width();this.height();e.fparent=e.opts.turn.data().fparent,e.fparent||((r=t("<div/>",{css:{"pointer-events":"none"}}).hide()).data().flips=0,r.css(a(0,0,"auto","visible").css).appendTo(e.opts.turn),e.opts.turn.data().fparent=r,e.fparent=r),this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),e.wrapper=t("<div/>",a(0,0,this.css("z-index"))).appendTo(o).prepend(this),e.fwrapper=t("<div/>",a(o.offset().top,o.offset().left)).hide().appendTo(e.fparent),e.fpage=t("<div/>",a(0,0,0,"visible")).css({cursor:"default"}).appendTo(e.fwrapper),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,1)).appendTo(e.fpage)),P.setData.call(this,e)}P.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=P._c.call(this,t.corner),d=this.width(),s=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*d):Math.max(Math.min(t.x,d),-d);var c,p,m,u,h,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},z=i.x?(i.x-t.x)/d:t.x/d,k=90*z,_=90>k;switch(t.corner){case"l":u="0% 50%",h="100% 50%",_?(c=0,p=0<e.opts.next-1,m=1):(c="100%",p=e.opts.page+1<w,m=0);break;case"r":u="100% 50%",h="0% 50%",k=-k,d=-d,_?(c=0,p=e.opts.next+1<w,m=0):(c="-100%",p=1!=e.opts.page,m=1)}y[v+"perspective-origin"]=h,e.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",h),e.fpage.transform("translateX("+d+"px) rotateY("+(180+k)+"deg)",u),e.parent.css(y),_?(z=1-z,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(z-=1,e.wrapper.css({zIndex:x}),e.fpage.css({zIndex:x+1})),a.opts.gradients&&(p?e.ashadow.css({display:"",left:c,backgroundColor:"rgba(0,0,0,"+.5*z+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:1-z}),_?e.bshadow.parent()[0]!=e.wrapper[0]&&e.bshadow.appendTo(e.wrapper):e.bshadow.parent()[0]!=e.fpage[0]&&e.bshadow.appendTo(e.fpage),l(e.bshadow,o(100*m,0),o(100*(1-m),0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var C,M,S,L,N,E,I,A=this,T=0,B=o(0,0),F=o(0,0),R=o(0,0),j=P._foldingPage.call(this),q=a.opts.acceleration,D=e.wrapper.height(),O="t"==t.corner.substr(0,1),$="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),n=o(0,0);r.x=i.x?i.x-t.x:t.x,r.y=g?i.y?i.y-t.y:t.y:0,n.x=$?d-r.x/2:t.x+r.x/2,n.y=r.y/2;var l=b-Math.atan2(r.y,r.x),c=l-Math.atan2(n.y,n.x);c=Math.max(0,Math.sin(c)*Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2)));return T=l/f*180,R=o(c*Math.sin(l),c*Math.cos(l)),l>b&&(R.x+=Math.abs(R.y*r.y/r.x),R.y=0,Math.round(R.x*Math.tan(f-l))<s)?(t.y=Math.sqrt(Math.pow(s,2)+2*n.x*r.x),O&&(t.y=s-t.y),e()):(l>b&&(r=f-l,n=D-s/Math.sin(r),B=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),$&&(B.x=-B.x),O&&(B.y=-B.y)),C=Math.round(R.y/Math.tan(l)+R.x),n=(r=d-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round($?r-n:C+n),Math.round(O?c:s-c)),a.opts.gradients&&(N=r*Math.sin(l),r=P._c2.call(A,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/d,I=Math.sin(b*(1<r?2-r:r)),E=Math.min(r,1),L=100<N?(N-100)/N:0,M=o(N*Math.sin(l)/d*100,N*Math.cos(l)/s*100),P._backGradient.call(A)&&(S=o(1.2*N*Math.sin(l)/d*100,1.2*N*Math.cos(l)/s*100),$||(S.x=100-S.x),O||(S.y=100-S.y))),R.x=Math.round(R.x),R.y=Math.round(R.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(d-D)*c[0]/100,h=(s-D)*c[1]/100,g=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?$?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,q),v),e.fpage.css(i).transform(n(p)+r(t.x+F.x-B.x-d*c[0]/100,t.y+F.y-B.y-s*c[1]/100,q)+n((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,q)+n(-p),v),e.fwrapper.transform(r(-t.x+B.x+u,-t.y+B.y+h,q)+n(-p),v),a.opts.gradients&&(c[0]&&(M.x=100-M.x),c[1]&&(M.y=100-M.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*I+")",j.css(m),l(e.ashadow,o($?100:0,O?0:100),o(M.x,M.y),[[L,"rgba(0,0,0,0)"],[.8*(1-L)+L,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),P._backGradient.call(A)&&l(e.bshadow,o($?0:100,O?0:100),o(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*E+")"],[1,"rgba(0,0,0,0)"]],3))},t.corner){case"tl":t.x=Math.max(t.x,1),V(),c(R,[1,0,0,1],[100,0],T);break;case"tr":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,R.y),[0,0,0,1],[0,0],-T);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(R.x,-R.y),[1,1,0,0],[100,100],-T);break;case"br":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,-R.y),[0,1,1,0],[0,100],T)}}e.point=t},_moveFoldingPage:function(t){var e=this.data().f;if(e){var a=e.opts.turn,i=a.data(),o=i.pagePlace;t?(o[i=e.opts.next]!=e.opts.page&&(e.folding&&P._moveFoldingPage.call(this,!1),P._foldingPage.call(this).appendTo(e.fpage),o[i]=e.opts.page,e.folding=i),a.turn("update")):e.folding&&(i.pages[e.folding]?(a=i.pages[e.folding].data().f,i.pageObjs[e.folding].appendTo(a.wrapper)):i.pageWrap[e.folding]&&i.pageObjs[e.folding].appendTo(i.pageWrap[e.folding]),e.folding in o&&(o[e.folding]=e.folding),delete e.folding)}},_showFoldedPage:function(t,e){var a=P._foldingPage.call(this),i=(n=this.data()).f,o=i.visible;if(a){if(!(o&&i.point&&i.point.corner==t.corner||(a="hover"==i.status||"peel"==i.status||i.opts.turn.data().mouseAction?t.corner:null,o=!1,"prevented"!=c("start",this,[i.opts,a]))))return!1;if(e){var r=this,n=i.point&&i.point.corner==t.corner?i.point:P._c.call(this,t.corner,1);this.animatef({from:[n.x,n.y],to:[t.x,t.y],duration:500,frame:function(e){t.x=Math.round(e[0]),t.y=Math.round(e[1]),P._fold.call(r,t)}})}else P._fold.call(this,t),n.effect&&!n.effect.turning&&this.animatef(!1);if(!o)switch(i.effect){case"hard":i.visible=!0,P._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,P._moveFoldingPage.call(this,!0),i.fwrapper.show(),i.bshadow&&i.bshadow.show()}return!0}return!1},hide:function(){var t=this.data().f,e=t.opts.turn.data(),a=P._foldingPage.call(this);switch(t.effect){case"hard":e.opts.gradients&&(t.bshadowLoc=0,t.bshadow.remove(),t.ashadow.hide()),t.wrapper.transform(""),t.fpage.hide();break;case"sheet":0==--t.fparent.data().flips&&t.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),t.wrapper.transform(""),t.fwrapper.hide(),t.bshadow&&t.bshadow.hide(),a.transform("")}return t.visible=!1,this},hideFoldedPage:function(t){var e=this.data().f;if(e.point){var a=this,r=e.point,n=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var d=P._c.call(this,r.corner),s=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-d.y)/2:Math.max(0,r.y-d.y)/2,o(r.x,r.y+t)),l=o(d.x,d.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,s,l,d,t),r.x=t.x,r.y=t.y,P._fold.call(a,r)},complete:n,duration:800,hiding:!0})}else this.animatef(!1),n()}},turnPage:function(t){var e=this,a=this.data().f,o=a.opts.turn.data(),r=(t={corner:a.corner?a.corner.corner:t||P._cAllowed.call(this)[0]},a.point||P._c.call(this,t.corner,a.opts.turn?o.opts.elevation:0)),n=P._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(a){a=i(r,r,n,n,a),t.x=a.x,t.y=a.y,P._showFoldedPage.call(e,t)},complete:function(){e.trigger("end",[a.opts,!0])},duration:o.opts.duration,turning:!0}),a.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(t){var e=this.data().f,a=e.opts.turn;if(!e.corner&&!e.disabled&&!this.flip("isTurning")&&e.opts.page==a.data().pagePlace[e.opts.page]){if(e.corner=P._isIArea.call(this,t),e.corner&&P._foldingPage.call(this))return this.trigger("pressed",[e.point]),P._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled)if(t=w?t.originalEvent.touches:[t],e.corner){var a=e.parent.offset();e.corner.x=t[0].pageX-a.left,e.corner.y=t[0].pageY-a.top,P._showFoldedPage.call(this,e.corner)}else e.hover&&!this.data().effect&&this.is(":visible")&&((t=P._isIArea.call(this,t[0]))?("sheet"==e.effect&&2==t.corner.length||"hard"==e.effect)&&(e.status="hover",e=P._c.call(this,t.corner,e.opts.cornerSize/2),t.x=e.x,t.y=e.y,P._showFoldedPage.call(this,t,!0)):"hover"==e.status&&(e.status="",P.hideFoldedPage.call(this,!0)))},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&"prevented"!=c("released",this,[t.point||e])&&P.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return P.setData.call(this,{disabled:t}),this},hover:function(t){return P.setData.call(this,{hover:t}),this},peel:function(e,a){var i=this.data().f;if(e){if(-1==t.inArray(e,y.all))throw p("Corner "+e+" is not permitted");if(-1!=t.inArray(e,P._cAllowed.call(this))){var o=P._c.call(this,e,i.opts.cornerSize/2);i.status="peel",P._showFoldedPage.call(this,{corner:e,x:o.x,y:o.y},a)}}else i.status="",P.hideFoldedPage.call(this,a);return this}};window.requestAnim=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},t.extend(t.fn,{flip:function(){return e(t(this[0]),P,arguments)},turn:function(){return e(t(this[0]),M,arguments)},transform:function(t,e){var a={};return e&&(a[v+"transform-origin"]=e),a[v+"transform"]=t,this.css(a)},animatef:function(e){var a=this.data();if(a.effect&&a.effect.stop(),e){e.to.length||(e.to=[e.to]),e.from.length||(e.from=[e.from]);for(var i=[],o=e.to.length,r=!0,n=this,d=(new Date).getTime(),s=0;s<o;s++)i.push(e.to[s]-e.from[s]);a.effect=t.extend({stop:function(){r=!1},easing:function(t,e,a,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+a}},e),this.data(a),function t(){if(a.effect&&r){for(var s=[],l=Math.min(e.duration,(new Date).getTime()-d),c=0;c<o;c++)s.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?s[0]:s),l==e.duration?(delete a.effect,n.data(a),e.complete&&e.complete()):window.requestAnim(t)}}()}else delete a.effect}}),t.isTouch=w,t.mouseEvents=x,t.cssPrefix=s,t.cssTransitionEnd=function(){var t,e=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(void 0!==e.style[t])return a[t]},t.findPos=m}(s),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return n&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return n&&e?" scale3d("+t+", "+t+", 1) ":" scale("+t+") "}function o(t,e){return{x:t,y:e}}function r(t,e){return function(){return t.apply(e,arguments)}}var n,d={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},s={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},d,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(n="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,"function"!=typeof a.max){var c=a.max;a.max=function(){return c}}for(var p in l.zoom={opts:a,axis:o(0,0),scrollPos:o(0,0),eventQueue:[],mouseupEvent:function(){return s._eMouseUp.apply(i,arguments)},eventTouchStart:r(s._eTouchStart,i),eventTouchMove:r(s._eTouchMove,i),eventTouchEnd:r(s._eTouchEnd,i),flipbookEvents:{zooming:r(s._eZoom,i),pressed:r(s._ePressed,i),released:r(s._eReleased,i),start:r(s._eStart,i),turning:r(s._eTurning,i),turned:r(s._eTurned,i),destroying:r(s._eDestroying,i)}},a.when)Object.prototype.hasOwnProperty.call(a.when,p)&&this.bind("zoom."+p,a.when[p]);for(p in l.zoom.flipbookEvents)Object.prototype.hasOwnProperty.call(l.zoom.flipbookEvents,p)&&a.flipbook.bind(p,l.zoom.flipbookEvents[p]);this.css({position:"relative",overflow:"hidden"}),t.isTouch?(a.flipbook.bind("touchstart",l.zoom.eventTouchStart).bind("touchmove",l.zoom.eventTouchMove).bind("touchend",l.zoom.eventTouchEnd),this.bind("touchstart",s._tap)):this.mousedown(s._mousedown).click(s._tap)},_tap:function(e){var a=t(this),i=a.data().zoom;!i.draggingCorner&&!i.dragging&&function t(e,a){return e[0]!=a[0]&&(!!e.attr("page")||!!e.parent()[0]&&t(e.parent(),a))}(t(e.target),a)&&(s._addEvent.call(a,"tap",e),(e=s._eventSeq.call(a))&&a.trigger(e))},_addEvent:function(t,e){var a=this.data().zoom,i=(new Date).getTime();a.eventQueue.push({name:t,timestamp:i,event:e}),10<a.eventQueue.length&&a.eventQueue.splice(0,1)},_eventSeq:function(){var e=this.data().zoom.eventQueue,a=e.length-1;return 0<a&&"tap"==e[a].name&&"tap"==e[a-1].name&&e[a].event.pageX==e[a-1].event.pageX&&e[a].event.pageY==e[a-1].event.pageY&&200>e[a].timestamp-e[a-1].timestamp&&50<e[a].timestamp-e[a-1].timestamp?t.extend(e[a].event,{type:"zoom.doubleTap"}):"tap"==e[a].name?t.extend(e[a].event,{type:"zoom.tap"}):void 0},_prepareZoom:function(){var e,a=0,i=this.data().zoom,r=1/this.zoom("value"),n=(e=i.opts.flipbook).turn("direction"),d=e.data(),s=e.offset(),l=this.offset(),c={height:e.height()},p=e.turn("view");if("double"==e.turn("display")&&e.data().opts.autoCenter?p[0]?p[1]?(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?s.left-l.left:s.left-l.left+c.width,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?s.left-l.left+c.width:s.left-l.left,s.top-l.top)):(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)),i.zoomer||(i.zoomer=t("<div />",{class:"zoomer",css:{overflow:"hidden",position:"absolute",zIndex:"1000000"}}).mousedown((function(){return!1})).appendTo(this)),i.zoomer.css({top:e.y,left:e.x,width:c.width,height:c.height}),(n=p.join(","))!=i.zoomerView)for(i.zoomerView=n,i.zoomer.find("*").remove(),n=0;n<p.length;n++)if(p[n]){l=d.pageObjs[p[n]].offset();var m=t(d.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-s.top)*r,left:(l.left-s.left-a)*r}).appendTo(i.zoomer)}return{pos:e,size:c}},value:function(){return this.data().zoom.opts.flipbook.turn("zoom")},zoomIn:function(e){var r=this,n=this.data().zoom,d=n.opts.flipbook,l=n.opts.max();d.offset();var c=this.offset();if(n.zoomIn)return this;d.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=s._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=d.data().opts.autoCenter;n.scale=l,d.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>f.width||e.y>f.height)&&(e.x=u.x,e.y=u.y);var v=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),f=(e=o(f.size.width*l>this.width()?e.x-v.x:0,f.size.height*l>this.height()?e.y-v.y:0),v=o(Math.abs(f.size.width*l-this.width()),Math.abs(f.size.height*l-this.height())),o(Math.min(0,f.size.width*l-this.width()),Math.min(0,f.size.height*l-this.height()))),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y);b.y>v.y?e.y=b.y-v.y+e.y:b.y<f.y&&(e.y=b.y-f.y+e.y),b.x>v.x?e.x=b.x-v.x+e.x:b.x<f.x&&(e.x=b.x-f.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+n.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),n.zoomIn=!0,n.flipPosition=o(d.css("left"),d.css("top")),d.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=d.offset();n.axis=o(e.left-c.left,e.top-c.top),g&&"double"==d.turn("display")&&("ltr"==d.turn("direction")&&!d.turn("view")[0]||"rtl"==d.turn("direction")&&!d.turn("view")[1])&&(n.axis.x+=d.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,s._eMouseDown),r.bind(t.mouseEvents.move,s._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",s._eMouseWheel),setTimeout((function(){n.zoomer.hide(),n.zoomer.remove(),n.zoomer=null,n.zoomerView=null}),50)};return n.zoomer.css(m).show(),h?n.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,n.opts.duration),n.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,n=this,d=this.data().zoom,l=d.opts.flipbook,c=1/d.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:d.opts.duration,d.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;d.zoomIn=!1,d.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,s._eMouseDown),n.unbind(t.mouseEvents.move,s._eMouseMove),t(document).unbind(t.mouseEvents.up,d.mouseupEvent),n.unbind("mousewheel",s._eMouseWheel),(u={})[p+"transition"]=p+"transform "+d.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:d.flipPosition.y,left:d.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var g=l.data().opts.autoCenter;g&&"double"==l.turn("display")&&(l.turn("view")[0]?l.turn("view")[1]||(u.x="ltr"==l.turn("direction")?u.x+h.width()/4:u.x-h.width()/4):u.x="ltr"==l.turn("direction")?u.x-h.width()/4:u.x+h.width()/4);var v=t.findPos(l[0]);r=o(-l.width()/2-v.left+h.width()/2+u.x+r.left,-l.height()/2-v.top+h.height()/2+u.y+r.top);var f=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:d.flipPosition.y,left:d.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:d.flipPosition.y,left:d.flipPosition.x,position:"relative"}),g&&l.turn("center"),n.trigger("zoom.zoomOut")};return 0===e?f():(m?l.bind(m,(function(){t(this).unbind(m),f()})):setTimeout(f,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var d=this.data().zoom,s=d.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",s.css(p),s.transform(a(-d.axis.x-e.x,-d.axis.y-e.y,!0))}else s.css({top:-d.axis.y-e.y,left:-d.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(s.height()-this.height())/2)),s=o(l>this.width()?l-this.width():(l-this.width())/2,s.height()>this.height()?s.height()-this.height():(s.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>s.y&&(e.y=s.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>s.x&&(e.x=s.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}d.scrollPos=o(e.x,e.y)},resize:function(){var t=this.data().zoom,e=t.opts.flipbook;if(1<this.zoom("value")){var a=e.offset(),i=this.offset();t.axis=o(a.left-i.left+(t.axis.x+t.scrollPos.x),a.top-i.top+(t.axis.y+t.scrollPos.y)),"double"==e.turn("display")&&"ltr"==e.turn("direction")&&!e.turn("view")[0]&&(t.axis.x+=e.width()/2),this.zoom("scroll",t.scrollPos)}},_eZoom:function(){for(var t=this.data().zoom,e=t.opts.flipbook,a=e.turn("view"),i=0;i<a.length;i++)a[i]&&this.trigger("zoom.resize",[t.scale,a[i],e.data().pageObjs[a[i]]])},_eStart:function(t){1!=this.zoom("value")&&t.preventDefault()},_eTurning:function(t,e,a){var i=this,o=(t=this.zoom("value"),this.data().zoom);e=o.opts.flipbook;if(o.page=e.turn("page"),1!=t){for(o=0;o<a.length;o++)a[o]&&this.trigger("zoom.resize",[t,a[o],e.data().pageObjs[a[o]]]);setTimeout((function(){i.zoom("resize")}),0)}},_eTurned:function(t,e){if(1!=this.zoom("value")){var a=this.data().zoom,i=a.opts.flipbook;e>a.page?this.zoom("scroll",o(0,a.scrollPos.y),!1,!0):e<a.page&&this.zoom("scroll",o(i.width(),a.scrollPos.y),!1,!0)}},_ePressed:function(){t(this).data().zoom.draggingCorner=!0},_eReleased:function(){var e=t(this).data().zoom;setTimeout((function(){e.draggingCorner=!1}),1)},_eMouseDown:function(e){return t(this).data().zoom.draggingCur=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY),!1},_eMouseMove:function(e){var a=t(this).data().zoom;if(a.draggingCur){a.dragging=!0;e=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY);var i=o(e.x-a.draggingCur.x,e.y-a.draggingCur.y);return t(this).zoom("scroll",o(a.scrollPos.x-i.x,a.scrollPos.y-i.y),!0),a.draggingCur=e,!1}},_eMouseUp:function(){var e=t(this).data().zoom;e.dragging&&t(this).zoom("scroll",e.scrollPos),e.draggingCur=null,setTimeout((function(){e.dragging=!1}),1)},_eMouseWheel:function(e,a,i,r){i=o((e=t(this).data().zoom).scrollPos.x+10*i,e.scrollPos.y-10*r),t(this).zoom("scroll",i,!1,!0)},_eTouchStart:function(e){var a=t(this).data().zoom;e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch={},a.touch.initial=e,a.touch.last=e,a.touch.timestamp=(new Date).getTime(),a.touch.speed=o(0,0)},_eTouchMove:function(e){var a=t(this).data().zoom,i=t(this).zoom("value"),r=a.opts.flipbook,n=(new Date).getTime();e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch&&1==i&&!r.data().mouseAction&&(a.touch.motion=o(e.x-a.touch.last.x,e.y-a.touch.last.y),a.touch.speed.x=0===a.touch.speed.x?a.touch.motion.x/(n-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(n-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=n)},_eTouchEnd:function(){var e=t(this).data().zoom;if(e.touch&&1==t(this).zoom("value")){var a=Math.abs(e.touch.initial.y-e.touch.last.y);50>a&&(-1>e.touch.speed.x||-100>e.touch.last.x-e.touch.initial.x)?this.trigger("zoom.swipeLeft"):50>a&&(1<e.touch.speed.x||100<e.touch.last.x-e.touch.initial.x)&&this.trigger("zoom.swipeRight")}},_eDestroying:function(){var e=this,a=this.data().zoom,i=a.opts.flipbook;for(var o in this.zoom("zoomOut",0),t.each("tap doubleTap resize zoomIn zoomOut swipeLeft swipeRight".split(" "),(function(t,a){e.unbind("zoom."+a)})),a.flipbookEvents)Object.prototype.hasOwnProperty.call(a.flipbookEvents,o)&&i.unbind(o,a.flipbookEvents[o]);i.unbind("touchstart",a.eventTouchStart).unbind("touchmove",a.eventTouchMove).unbind("touchend",a.eventTouchEnd),this.unbind("touchstart",s._tap).unbind("click",s._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==u(a[0]))return s.init.apply(t(this[0]),a);if(s[a[0]])return s[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(s);var xt,yt=s,zt=require("axios"),kt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flipbook-container"},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[a("div",{staticClass:"preview-desktop",class:t.isLoading?"invisible":"visible"},[a("div",{staticClass:"flipbook-lib",class:[t.formato],attrs:{id:"flipbook"}})])]),t._v(" "),t.controls?a("div",{staticClass:"controls"},[a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheLeft()}}},[a("span",{staticClass:"icon icon-chevron-left size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M20.0847 20.7019L15.3828 16L20.0847 11.298C20.8651 10.5177 20.8651 9.25557 20.0847 8.47522C19.3044 7.69487 18.0423 7.69487 17.2619 8.47522L11.1419 14.5952C10.3616 15.3756 10.3616 16.6377 11.1419 17.418L17.2619 23.538C18.0423 24.3184 19.3044 24.3184 20.0848 23.5381L20.0908 23.5319C20.8421 22.7608 20.8726 21.4898 20.0847 20.7019Z"}})])])]),t._v(" "),a("div",{staticClass:"info-space"},[a("div",{staticClass:"current-pages"},[a("div",{staticClass:"list",style:{left:"-"+t.numberPositions+"px"}},t._l(t.pages,(function(e,i){return a("span",{key:i},[t._v(t._s(i+1))])})),0)]),t._v(" "),a("div",{staticClass:"info-pages"},[t._v(t._s(t.pages)+" "+t._s(t.lang.pages))])]),t._v(" "),a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheRight()}}},[a("span",{staticClass:"icon icon-chevron-right size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9153 8.47532C11.135 9.25567 11.135 10.5178 11.9153 11.2981L16.6173 16.0001L11.9153 20.702C11.135 21.4823 11.135 22.7444 11.9153 23.5248C12.6957 24.3051 13.9578 24.3051 14.7381 23.5248L20.8582 17.4048C21.6385 16.6244 21.6385 15.3623 20.8582 14.582L14.7381 8.46198C13.9668 7.69064 12.6913 7.69931 11.9153 8.47532Z"}})])])])],1):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-6d506cd1_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}.flipbook-viewport{margin-top:30px;width:100%}.flipbook-viewport .container-book{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page{-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);-moz-box-shadow:0 0 20px rgba(0,0,0,.2);-ms-box-shadow:0 0 20px rgba(0,0,0,.2);-o-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}#flipbook-viewport .page img{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.flipbook-viewport .shadow{-webkit-transition:-webkit-box-shadow .5s;-moz-transition:-moz-box-shadow .5s;-o-transition:-webkit-box-shadow .5s;-ms-transition:-ms-box-shadow .5s;-webkit-box-shadow:0 0 20px #ccc;-moz-box-shadow:0 0 20px #ccc;-o-box-shadow:0 0 20px #ccc;-ms-box-shadow:0 0 20px #ccc;box-shadow:0 0 20px #ccc}.even{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.odd{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.even:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to left,#000,transparent 7%);opacity:.15}.odd:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to right,#000,transparent 7%);opacity:.15}#flipbook .page-wrapper{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img{width:100%;height:calc(75vh - 50px)}#flipbook img.loading-blur{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img{height:100%}#flipbook.square img{width:100%;height:calc(55vh - 50px)}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}',map:void 0,media:void 0}),t("data-v-6d506cd1_1",{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-6d506cd1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6d506cd1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6d506cd1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6d506cd1]{font-size:14px}}@media (min-width:1024px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6d506cd1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6d506cd1]{font-size:1.56vw}}html[data-v-6d506cd1]{box-sizing:border-box}*[data-v-6d506cd1],[data-v-6d506cd1]::after,[data-v-6d506cd1]::before{box-sizing:border-box}[data-v-6d506cd1] .arrow svg{width:100%!important;height:100%!important}.zoom-in #flipbook img[data-v-6d506cd1]{height:100%!important}.preview-desktop[data-v-6d506cd1]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-6d506cd1]{position:absolute;top:35%;left:0;right:0;bottom:0;margin-bottom:auto;margin-top:auto;z-index:9999;text-align:center;font-family:Roboto}.loading-box #loading[data-v-6d506cd1]{display:inline-block;border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-6d506cd1]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-6d506cd1]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-6d506cd1]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-6d506cd1]{transition:all .7s ease-in-out}.flipbook-container[data-v-6d506cd1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .3s;z-index:2;min-height:210px;min-height:210px}.flipbook-container.zoom-in[data-v-6d506cd1]{height:100vh}@media (max-width:479px){.flipbook-container[data-v-6d506cd1]{display:none}}.flipbook-container .flipbook-lib[data-v-6d506cd1]{z-index:50}.flipbook-container .flipbook-lib .page.odd[data-v-6d506cd1]:not(.p1)::before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:20px 0 20px -10px rgba(0,0,0,.3) inset;z-index:4}.flipbook-container .flipbook-lib .page.even[data-v-6d506cd1]::before{position:absolute;display:block;content:"";height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.5) inset}.flipbook-container .flipbook-lib img[data-v-6d506cd1]{height:100%!important}.controls[data-v-6d506cd1]{margin:0 auto;display:block;display:inline-block;margin-top:20px;position:relative;z-index:2}.controls button[data-v-6d506cd1]{display:inline-block!important;background:#fff;box-shadow:4px 8px 24px rgba(175,162,186,.24);padding:.380952381rem!important;border-radius:50%;text-align:center;color:#afa2ba;border:none;width:auto!important;height:auto!important;cursor:pointer}.controls button svg[data-v-6d506cd1]{fill:transparent!important}.controls button svg path[data-v-6d506cd1]{fill:transparent!important}.controls button .svg-color[data-v-6d506cd1]{fill:#12d3db!important}.controls button .svg-color path[data-v-6d506cd1]{fill:#12d3db!important}.controls .info-space[data-v-6d506cd1]{position:relative;top:3px;display:inline-block;margin:0 .380952381rem;font-size:10px;font-weight:900;color:#afa2ba;font-family:Nunito,sans-serif}.controls .current-pages[data-v-6d506cd1]{width:60px;white-space:nowrap;line-height:1;overflow:hidden;transition:all .5s ease}.controls .current-pages .list[data-v-6d506cd1]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-6d506cd1]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-6d506cd1]:first-child{margin:0 16px}.controls .current-pages span[data-v-6d506cd1]:last-child{margin:0 16px}.info-pages[data-v-6d506cd1]{text-align:center}@keyframes arrow-animation-data-v-6d506cd1{0%,100%,48%{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}8%{-webkit-transform:translateX(-30%);transform:translateX(-30%)}16%{-webkit-transform:translateX(15%);transform:translateX(15%)}24%{-webkit-transform:translateX(-15%);transform:translateX(-15%)}32%{-webkit-transform:translateX(9%);transform:translateX(9%)}40%{-webkit-transform:translateX(-6%);transform:translateX(-6%)}}.visible[data-v-6d506cd1]{opacity:1}.invisible[data-v-6d506cd1]{opacity:0}[data-v-6d506cd1] .loading-bg{position:absolute;display:flex;top:0;width:100%;height:100%;background-color:#fff;opacity:.64;align-items:center;justify-content:center;z-index:12}[data-v-6d506cd1] .loading-bg .loading{border:2px solid #dfdae4;border-top:2px solid #00cf72;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){[data-v-6d506cd1] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.icon[data-v-6d506cd1]{width:24px;height:24px;display:block}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:A},props:{
|
|
1247
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-a049d78a",!1,void 0,!1,x,void 0,void 0),bt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",t._g(t._b({attrs:{name:"modal"}},"transition",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"modal-container"},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items"},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon icon-close size-lg",on:{click:t.closeModal}},[a("svg",{attrs:{fill:"#DFDAE4",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-header-content"},[a("Heading",{attrs:{kind:"h4",size:t.headingSize,color:t.headingColor}},[t._v(t._s(t.heading))]),t._v(" "),t.paragraph?a("Paragraph",{attrs:{size:t.paragraphSize,color:"'#ccc'"},domProps:{innerHTML:t._s(t.paragraph)}}):t._e()],1),t._v(" "),t._t("header")],2),t._v(" "),a("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),a("HR",{attrs:{height:"1px",color:"#f0f0f0"}}),t._v(" "),a("div",{staticClass:"modal-footer-items"},[t._t("footer")],2)],1)])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-27a3297c_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-27a3297c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-27a3297c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-27a3297c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-27a3297c]{font-size:14px}}@media (min-width:1024px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-27a3297c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-27a3297c]{font-size:1.56vw}}html[data-v-27a3297c]{box-sizing:border-box}*[data-v-27a3297c],[data-v-27a3297c]::after,[data-v-27a3297c]::before{box-sizing:border-box}.modal[data-v-27a3297c]{display:block;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow-y:scroll;outline:0;font-family:Nunito,sans-serif;display:flex;align-items:center;justify-content:center}.modal-dialog[data-v-27a3297c]{transition:all .5s ease}.modal-backdrop[data-v-27a3297c]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-27a3297c]{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background:rgba(104,89,110,.8);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.modal-content[data-v-27a3297c]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:0;outline:0}@media (max-width:479px){.modal-content[data-v-27a3297c]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-dialog[data-v-27a3297c]{max-width:27.5238095238rem;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;width:auto;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-dialog[data-v-27a3297c]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-27a3297c]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-27a3297c]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-27a3297c] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:1.1428571429rem;max-height:1.1428571429rem;width:100%}@media (max-width:479px){.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-27a3297c]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-27a3297c]{padding:2.9906542056rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-27a3297c]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-27a3297c]{width:100%;margin:0}hr[data-v-27a3297c]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-27a3297c]{display:none}}.modal-body[data-v-27a3297c]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-27a3297c]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-27a3297c]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c]{background:#fff;padding:1.4018691589rem .9345794393rem;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64)}}.modal-footer-items[data-v-27a3297c] div{display:flex;justify-content:flex-start;flex-direction:row;width:100%}.modal-footer-items[data-v-27a3297c] div .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-ghost{width:50%;margin-left:.7476635514rem}}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-secondary{width:50%}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:T,Heading:vt,Paragraph:ft,Icon:A},props:{kind:{type:String,default:"primary"},size:{type:String,default:"xl"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0}},created:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},beforeCreate:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},mounted:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},destroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},beforeDestroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},methods:{onClick:function(){this.$emit("click")},closeModal:function(){this.$emit("closeModal"),document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")}},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}}},"data-v-27a3297c",!1,void 0,!1,x,void 0,void 0);var wt={en:{urlBuilder:"https://builder.playstories.com",justASecond:"Just a second",loadingPhrase:"We are loading your exclusive book",pages:"PAGES",pagesLowercase:"Pages",editArea:"Editing area",name:"Name",dedication:"Dedication",writeDedication:"Write a dedication",shirtNumber:"Shirt Number",bookScript:"Book Script",dateBirth:"Birthday Date",editDateBirth:"Edit birthday date",pet:"Pet",editName:"Edit child's name",kidName:"Child's name",recommendedName:"It is recommended to use only the first name",dedicationFree:"Dedication (free)",cusutomDedication:"Customize the dedication that will be printed on the book.",messageDedication:"Dedication message",dedcationPlaceholder:"May your life be full of great adventures!",editShirt:"Edit shirt number",chooseScript:"You choose the script",choosePetLabel1:"Choose the pair that will help the",choosePetLabel2:"to meet Samson on this adventure together with Turma da Mônica.",day:"Day",month:"Month",changePet:"Change the story bug",petDescription1:"This pet will accompany",petDescription2:"throughout history.",typePetname:"Type the pet's name here",selectPet:"Select the pet",update:"UPDATE",cancel:"CANCEL"},br:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Só um segundo",loadingPhrase:"Estamos carregando seu livro exclusivo",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",pet:"Bichinho de estimação",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",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",moonerTitleFirstOpen:"Adicione um Mooner na história",moonerTitleFirstOpenMobile:"Adicione um Mooner",moonerTitle:"Altere o Mooner da história",moonerTitleMobile:"Altere o Mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> durante toda a aventura.",moonerLabel:"Digite um nome para o Mooner",moonerLabelSelector:"Selecione um Mooner: ",moonerCtaFirstOpen:"Adicionar Mooner",moonerCta:"Atualizar",moonerCtaCancel:"Cancel"}};!function(t){function e(t,e,a){if(!a[0]||"object"==u(a[0]))return e.init.apply(t,a);if(e[a[0]])return e[a[0]].apply(t,Array.prototype.slice.call(a,1));throw p(a[0]+" is not a method or property")}function a(t,e,a,i){return{css:{position:"absolute",top:t,left:e,overflow:i||"hidden",zIndex:a||"auto"}}}function i(t,e,a,i,r){var n=1-r,d=n*n*n,s=r*r*r;return o(Math.round(d*t.x+3*r*n*n*e.x+3*r*r*n*a.x+s*i.x),Math.round(d*t.y+3*r*n*n*e.y+3*r*r*n*a.y+s*i.y))}function o(t,e){return{x:t,y:e}}function r(t,e,a){return h&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function n(t){return" rotate("+t+"deg) "}function d(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function s(){for(var t=["Moz","Webkit","Khtml","O","ms"],e=t.length,a="";e--;)t[e]+"Transform"in document.body.style&&(a="-"+t[e].toLowerCase()+"-");return a}function l(t,e,a,i,r){var n,d=[];if("-webkit-"==v){for(n=0;n<r;n++)d.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+d.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var s=(a={x:a.x/100*t.width(),y:a.y/100*t.height()}).x-e.x;n=a.y-e.y;var l=Math.atan2(n,s),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),s=Math.sqrt(n*n+s*s),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(n=-1/p)*(p=(n*a.x-a.y-p*e.x+e.y)/(n-p))-n*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),n=0;n<r;n++)d.push(" "+i[n][1]+" "+100*(e+s*i[n][0])/c+"%");t.css({"background-image":v+"linear-gradient("+-l+"rad,"+d.join(",")+")"})}}function c(e,a,i){return e=t.Event(e),a.trigger(e,i),e.isDefaultPrevented()?"prevented":e.isPropagationStopped()?"stopped":""}function p(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function m(t){var e={top:0,left:0};do{e.left+=t.offsetLeft,e.top+=t.offsetTop}while(t=t.offsetParent);return e}var h,g,v="",f=Math.PI,b=f/2,w="ontouchstart"in window,x=w?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},y={backward:["bl","tl"],forward:["br","tr"],all:"tl bl tr br l r".split(" ")},z=["single","double"],k=["ltr","rtl"],_={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},C={cornerSize:100},M={init:function(e){var a,i;h="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,g=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||534.3<parseFloat(a[1]),v=s(),a=0;var o=this.data(),n=this.children();e=t.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},_,e);if(o.opts=e,o.pageObjs={},o.pages={},o.pageWrap={},o.pageZoom={},o.pagePlace={},o.pageMv=[],o.zoom=1,o.totalPages=e.pages||0,o.eventHandlers={touchStart:t.proxy(M._touchStart,this),touchMove:t.proxy(M._touchMove,this),touchEnd:t.proxy(M._touchEnd,this),start:t.proxy(M._eventStart,this)},e.when)for(i in e.when)d(i,e.when)&&this.bind(i,e.when[i]);for(this.css({position:"relative",width:e.width,height:e.height}),this.turn("display",e.display),""!==e.direction&&this.turn("direction",e.direction),h&&!w&&e.acceleration&&this.transform(r(0,0,!0)),i=0;i<n.length;i++)"1"!=t(n[i]).attr("ignore")&&this.turn("addPage",n[i],++a);return t(this).bind(x.down,o.eventHandlers.touchStart).bind("end",M._eventEnd).bind("pressed",M._eventPressed).bind("released",M._eventReleased).bind("flip",M._flip),t(this).parent().bind("start",o.eventHandlers.start),t(document).bind(x.move,o.eventHandlers.touchMove).bind(x.up,o.eventHandlers.touchEnd),this.turn("page",e.page),o.done=!0,this},addPage:function(e,a){var i,o=!1,r=this.data(),n=r.totalPages+1;if(r.destroying)return!1;if((i=/\bp([0-9]+)\b/.exec(t(e).attr("class")))&&(a=parseInt(i[1],10)),a){if(a==n)o=!0;else if(a>n)throw p('Page "'+a+'" cannot be inserted')}else a=n,o=!0;return 1<=a&&a<=n&&(i="double"==r.display?a%2?" odd":" even":"",r.done&&this.turn("stop"),a in r.pageObjs&&M._movePages.call(this,a,1),o&&(r.totalPages=n),r.pageObjs[a]=t(e).css({float:"left"}).addClass("page p"+a+i),-1!=navigator.userAgent.indexOf("MSIE 9.0")&&r.pageObjs[a].hasClass("hard")&&r.pageObjs[a].removeClass("hard"),M._addPage.call(this,a),M._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(M._necessPage.call(this,e)){if(!a.pageWrap[e]){a.pageWrap[e]=t("<div/>",{class:"page-wrapper",page:e,css:{position:"absolute",overflow:"hidden"}}),this.append(a.pageWrap[e]),a.pagePlace[e]||(a.pagePlace[e]=e,a.pageObjs[e].appendTo(a.pageWrap[e]));var o=M._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&M._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return d(t,this.data().pageObjs)},center:function(e){var a=this.data(),i=t(this).turn("size"),o=0;return a.noCenter||("double"==a.display&&(e=this.turn("view",e||a.tpage||a.page),"ltr"==a.direction?e[0]?e[1]||(o+=i.width/4):o-=i.width/4:e[0]?e[1]||(o-=i.width/4):o+=i.width/4),t(this).css({marginLeft:o})),this},destroy:function(){var e=this,a=this.data(),i="end first flip last pressed released start turning turned zooming missing".split(" ");if("prevented"!=c("destroying",this)){for(a.destroying=!0,t.each(i,(function(t,a){e.unbind(a)})),this.parent().unbind("start",a.eventHandlers.start),t(document).unbind(x.move,a.eventHandlers.touchMove).unbind(x.up,a.eventHandlers.touchEnd);0!==a.totalPages;)this.turn("removePage",a.totalPages);return a.fparent&&a.fparent.remove(),a.shadow&&a.shadow.remove(),this.removeData(),a=null,this}},is:function(){return"object"==u(this.data().pages)},zoom:function(e){var a=this.data();if("number"==typeof e){if(.001>e||100<e)throw p(e+" is not a value for zoom");if("prevented"==c("zooming",this,[e,a.zoom]))return this;var i=this.turn("size"),o=this.turn("view"),r=1/a.zoom,n=Math.round(i.width*r*e);i=Math.round(i.height*r*e);for(a.zoom=e,t(this).turn("stop").turn("size",n,i),a.opts.autoCenter&&this.turn("center"),M._updateShadow.call(this),e=0;e<o.length;e++)o[e]&&a.pageZoom[o[e]]!=a.zoom&&(this.trigger("zoomed",[o[e],o,a.pageZoom[o[e]],a.zoom]),a.pageZoom[o[e]]=a.zoom);return this}return a.zoom},_pageSize:function(t,e){var a=this.data(),i={};if("single"==a.display)i.width=this.width(),i.height=this.height(),e&&(i.top=0,i.left=0,i.right="auto");else{var o=this.width()/2,r=this.height();if(a.pageObjs[t].hasClass("own-size")?(i.width=a.pageObjs[t].width(),i.height=a.pageObjs[t].height()):(i.width=o,i.height=r),e){var n=t%2;i.top=(r-i.height)/2,"ltr"==a.direction?(i[n?"right":"left"]=o-i.width,i[n?"left":"right"]="auto"):(i[n?"left":"right"]=o-i.width,i[n?"right":"left"]="auto")}}return i},_makeFlip:function(t){var e=this.data();if(!e.pages[t]&&e.pagePlace[t]==t){var a="single"==e.display,i=t%2;e.pages[t]=e.pageObjs[t].css(M._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),M._setPageLoc.call(this,t),e.pageZoom[t]=e.zoom}return e.pages[t]},_makeRange:function(){var t,e;if(!(1>this.data().totalPages))for(t=(e=this.turn("range"))[0];t<=e[1];t++)M._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=M._view.call(this,t),1>t||t>o.totalPages)throw p('"'+t+'" is not a valid page');return i[1]=i[1]||i[0],1<=i[0]&&i[1]<=o.totalPages?(t=Math.floor(2),o.totalPages-i[1]>i[0]?a=2*t-(e=Math.min(i[0]-1,t)):e=2*t-(a=Math.min(o.totalPages-i[1],t))):a=e=5,[Math.max(1,i[0]-e),Math.min(o.totalPages,i[1]+a)]},_necessPage:function(t){if(0===t)return!0;var e=this.turn("range");return this.data().pageObjs[t].hasClass("fixed")||t>=e[0]&&t<=e[1]},_removeFromDOM:function(){var t,e=this.data();for(t in e.pageWrap)d(t,e.pageWrap)&&!M._necessPage.call(this,t)&&M._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();P._moveFoldingPage.call(e.pages[t],!1),a.f&&a.f.fwrapper&&a.f.fwrapper.remove(),e.pages[t].removeData(),e.pages[t].remove(),delete e.pages[t]}e.pageObjs[t]&&e.pageObjs[t].remove(),e.pageWrap[t]&&(e.pageWrap[t].remove(),delete e.pageWrap[t]),M._removeMv.call(this,t),delete e.pagePlace[t],delete e.pageZoom[t]},removePage:function(t){var e=this.data();if("*"==t)for(;0!==e.totalPages;)this.turn("removePage",e.totalPages);else{if(1>t||t>e.totalPages)throw p("The page "+t+" doesn't exist");e.pageObjs[t]&&(this.turn("stop"),M._removePageFromDOM.call(this,t),delete e.pageObjs[t]),M._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,M._fitPage.call(this,e.totalPages)):(M._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,n=function(t){var a=t+e,n=a%2,d=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+d)),o.pagePlace[t]&&o.pageWrap[t]&&(o.pagePlace[a]=a,o.pageWrap[a]=o.pageObjs[a].hasClass("fixed")?o.pageWrap[t].attr("page",a):o.pageWrap[t].css(M._pageSize.call(i,a,!0)).attr("page",a),o.pages[t]&&(o.pages[a]=o.pages[t].flip("options",{page:a,next:r||n?a+1:a-1})),e&&(delete o.pages[t],delete o.pagePlace[t],delete o.pageZoom[t],delete o.pageObjs[t],delete o.pageWrap[t]))};if(0<e)for(a=o.totalPages;a>=t;a--)n(a);else for(a=t;a<=o.totalPages;a++)n(a)},display:function(e){var a=this.data(),i=a.display;if(void 0===e)return i;if(-1==t.inArray(e,z))throw p('"'+e+'" is not a value for display');switch(e){case"single":a.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),a.pageObjs[0]=t("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":a.pageObjs[0]&&(this.turn("stop").css({overflow:""}),a.pageObjs[0].remove(),delete a.pageObjs[0]),this.removeClass("shadow")}return a.display=e,i&&(e=this.turn("size"),M._movePages.call(this,1,0),this.turn("size",e.width,e.height).turn("update")),this},direction:function(e){var a=this.data();if(void 0===e)return a.direction;if(e=e.toLowerCase(),-1==t.inArray(e,k))throw p('"'+e+'" is not a value for direction');return"rtl"==e&&t(this).attr("dir","ltr").css({direction:"ltr"}),a.direction=e,a.done&&this.turn("size",t(this).width(),t(this).height()),this},animating:function(){return 0<this.data().pageMv.length},corner:function(){var t,e,a=this.data();for(e in a.pages)if(d(e,a.pages)&&(t=a.pages[e].flip("corner")))return t;return!1},data:function(){return this.data()},disable:function(e){var a,i=this.data(),o=this.turn("view");for(a in i.disabled=void 0===e||!0===e,i.pages)d(a,i.pages)&&i.pages[a].flip("disable",!!i.disabled||-1==t.inArray(parseInt(a,10),o));return this},disabled:function(t){return void 0===t?!0===this.data().disabled:this.turn("disable",t)},size:function(t,e){if(void 0===t||void 0===e)return{width:this.width(),height:this.height()};this.turn("stop");var a,i,o=this.data();for(a in i="double"==o.display?t/2:t,this.css({width:t,height:e}),o.pageObjs[0]&&o.pageObjs[0].css({width:i,height:e}),o.pageWrap)d(a,o.pageWrap)&&(i=M._pageSize.call(this,a,!0),o.pageObjs[a].css({width:i.width,height:i.height}),o.pageWrap[a].css(i),o.pages[a]&&o.pages[a].css({width:i.width,height:i.height}));return this.turn("resize"),this},resize:function(){var t,e=this.data();for(e.pages[0]&&(e.pageWrap[0].css({left:-this.width()}),e.pages[0].flip("resize",!0)),t=1;t<=e.totalPages;t++)e.pages[t]&&e.pages[t].flip("resize",!0);M._updateShadow.call(this),e.opts.autoCenter&&this.turn("center")},_removeMv:function(t){var e,a=this.data();for(e=0;e<a.pageMv.length;e++)if(a.pageMv[e]==t)return a.pageMv.splice(e,1),!0;return!1},_addMv:function(t){var e=this.data();M._removeMv.call(this,t),e.pageMv.push(t)},_view:function(t){var e=this.data();t=t||e.page;return"double"==e.display?t%2?[t-1,t]:[t,t+1]:[t]},view:function(t){var e=this.data();t=M._view.call(this,t);return"double"==e.display?[0<t[0]?t[0]:0,t[1]<=e.totalPages?t[1]:0]:[0<t[0]&&t[0]<=e.totalPages?t[0]:0]},stop:function(t,e){if(this.turn("animating")){var a,i,o,r=this.data();for(r.tpage&&(r.page=r.tpage,delete r.tpage),a=0;a<r.pageMv.length;a++)r.pageMv[a]&&r.pageMv[a]!==t&&(i=(o=r.pages[r.pageMv[a]]).data().f.opts,o.flip("hideFoldedPage",e),e||P._moveFoldingPage.call(o,!1),i.force&&(i.next=0==i.page%2?i.page-1:i.page+1,delete i.force))}return this.turn("update"),this},pages:function(t){var e=this.data();if(t){if(t<e.totalPages)for(var a=e.totalPages;a>t;a--)this.turn("removePage",a);return e.totalPages=t,M._fitPage.call(this,e.page),this}return e.totalPages},_missing:function(t){var e=this.data();if(!(1>e.totalPages)){var a=this.turn("range",t),i=[];for(t=a[0];t<=a[1];t++)e.pageObjs[t]||i.push(t);0<i.length&&this.trigger("missing",[i])}},_fitPage:function(t){var e=this.data(),a=this.turn("view",t);if(M._missing.call(this,t),e.pageObjs[t]){e.page=t,this.turn("stop");for(var i=0;i<a.length;i++)a[i]&&e.pageZoom[a[i]]!=e.zoom&&(this.trigger("zoomed",[a[i],a,e.pageZoom[a[i]],e.zoom]),e.pageZoom[a[i]]=e.zoom);M._removeFromDOM.call(this),M._makeRange.call(this),M._updateShadow.call(this),this.trigger("turned",[t,a]),this.turn("update"),e.opts.autoCenter&&this.turn("center")}},_turnPage:function(e){var a,i,o=this.data(),r=o.pagePlace[e],n=this.turn("view"),d=this.turn("view",e);if(o.page!=e){var s=o.page;if("prevented"==c("turning",this,[e,d]))return void(s==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,d)&&this.trigger("first"),-1!=t.inArray(o.totalPages,d)&&this.trigger("last")}"single"==o.display?(a=n[0],i=d[0]):n[1]&&e>n[1]?(a=n[1],i=d[0]):n[0]&&e<n[0]&&(a=n[0],i=d[1]),r=o.opts.turnCorners.split(","),d=(n=o.pages[a].data().f).opts,s=n.point,M._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,M._makeRange.call(this),o.tpage=i,d.next!=i&&(d.next=i,d.force=!0),this.turn("update"),n.point=s,"hard"==n.effect?"ltr"==o.direction?o.pages[a].flip("turnPage",e>a?"r":"l"):o.pages[a].flip("turnPage",e>a?"l":"r"):"ltr"==o.direction?o.pages[a].flip("turnPage",r[e>a?1:0]):o.pages[a].flip("turnPage",r[e>a?0:1]))},page:function(e){var a=this.data();if(void 0===e)return a.page;if(!a.disabled&&!a.destroying){if(0<(e=parseInt(e,10))&&e<=a.totalPages)return e!=a.page&&(a.done&&-1==t.inArray(e,this.turn("view"))?M._turnPage.call(this,e):M._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,M._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,M._view.call(this,this.data().page).shift()-1))},peel:function(t,e){var a=this.data(),i=this.turn("view");e=void 0===e||!0===e;return!1===t?this.turn("stop",null,e):"single"==a.display?a.pages[a.page].flip("peel",t,e):(i="ltr"==a.direction?-1!=t.indexOf("l")?i[0]:i[1]:-1!=t.indexOf("l")?i[1]:i[0],a.pages[i]&&a.pages[i].flip("peel",t,e)),this},_addMotionPage:function(){var e=t(this).data().f.opts,a=e.turn;a.data(),M._addMv.call(a,e.page)},_eventStart:function(t,e,a){var i=e.turn.data(),o=i.pageZoom[e.page];t.isDefaultPrevented()||(o&&o!=i.zoom&&(e.turn.trigger("zoomed",[e.page,e.turn.turn("view",e.page),o,i.zoom]),i.pageZoom[e.page]=i.zoom),"single"==i.display&&a&&("l"==a.charAt(1)&&"ltr"==i.direction||"r"==a.charAt(1)&&"rtl"==i.direction?(e.next=e.next<e.page?e.next:e.page-1,e.force=!0):e.next=e.next>e.page?e.next:e.page+1),M._addMotionPage.call(t.target)),M._updateShadow.call(e.turn)},_eventEnd:function(e,a,i){t(e.target).data();var o=(e=a.turn).data();i?((i=o.tpage||o.page)==a.next||i==a.page)&&(delete o.tpage,M._fitPage.call(e,i||a.next,!0)):(M._removeMv.call(e,a.page),M._updateShadow.call(e),e.turn("update"))},_eventPressed:function(e){var a=(e=t(e.target).data().f).opts.turn;return a.data().mouseAction=!0,a.turn("update"),e.time=(new Date).getTime()},_eventReleased:function(e,a){var i,o=(i=t(e.target)).data().f,r=o.opts.turn,n=r.data();i="single"==n.display?"br"==a.corner||"tr"==a.corner?a.x<i.width()/2:a.x>i.width()/2:0>a.x||a.x>i.width(),(200>(new Date).getTime()-o.time||i)&&(e.preventDefault(),M._turnPage.call(r,o.opts.next)),n.mouseAction=!1},_flip:function(e){e.stopPropagation(),(e=t(e.target).data().f.opts).turn.trigger("turn",[e.next]),e.turn.data().opts.autoCenter&&e.turn.turn("center",e.next)},_touchStart:function(){var t,e=this.data();for(t in e.pages)if(d(t,e.pages)&&!1===P._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),d=(e=this.turn("view"))[0]||e[1],s=t.length-1,l={pageZ:{},partZ:{},pageV:{}},c=function(t){(t=r.turn("view",t))[0]&&(l.pageV[t[0]]=!0),t[1]&&(l.pageV[t[1]]=!0)};for(e=0;e<=s;e++)a=t[e],i=n.pages[a].data().f.opts.next,o=n.pagePlace[a],c(a),c(i),a=n.pagePlace[i]==i?i:a,l.pageZ[a]=n.totalPages-Math.abs(d-a),l.partZ[o]=2*n.totalPages-s+e;return l},update:function(){var e,a=this.data();if(this.turn("animating")&&0!==a.pageMv[0]){var i,o=this.turn("calculateZ",a.pageMv),r=this.turn("corner"),n=this.turn("view"),s=this.turn("view",a.tpage);for(e in a.pageWrap)d(e,a.pageWrap)&&(i=a.pageObjs[e].hasClass("fixed"),a.pageWrap[e].css({display:o.pageV[e]||i?"":"none",zIndex:(a.pageObjs[e].hasClass("hard")?o.partZ[e]:o.pageZ[e])||(i?-1:0)}),i=a.pages[e])&&(i.flip("z",o.partZ[e]||null),o.pageV[e]&&i.flip("resize"),a.tpage?i.flip("hover",!1).flip("disable",-1==t.inArray(parseInt(e,10),a.pageMv)&&e!=s[0]&&e!=s[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)d(e,a.pageWrap)&&(o=M._setPageLoc.call(this,e),a.pages[e]&&a.pages[e].flip("disable",a.disabled||1!=o).flip("hover",!0).flip("z",null));return this},_updateShadow:function(){var e,i,o=this.data(),r=this.width(),n=this.height(),d="single"==o.display?r:r/2;e=this.turn("view"),o.shadow||(o.shadow=t("<div />",{class:"shadow",css:a(0,0,0).css}).appendTo(this));for(var s=0;s<o.pageMv.length&&e[0]&&e[1];s++)e=this.turn("view",o.pages[o.pageMv[s]].data().f.opts.next),i=this.turn("view",o.pageMv[s]),e[0]=e[0]&&i[0],e[1]=e[1]&&i[1];switch(e[0]?e[1]?3:"ltr"==o.direction?2:1:"ltr"==o.direction?1:2){case 1:o.shadow.css({width:d,height:n,top:0,left:d});break;case 2:o.shadow.css({width:d,height:n,top:0,left:0});break;case 3:o.shadow.css({width:r,height:n,top:0,left:0})}},_setPageLoc:function(t){var e=this.data(),a=this.turn("view"),i=0;if(t==a[0]||t==a[1]?i=1:("single"==e.display&&t==a[0]+1||"double"==e.display&&t==a[0]-2||t==a[1]+2)&&(i=2),!this.turn("animating"))switch(i){case 1:e.pageWrap[t].css({zIndex:e.totalPages,display:""});break;case 2:e.pageWrap[t].css({zIndex:e.totalPages-1,display:""});break;case 0:e.pageWrap[t].css({zIndex:0,display:e.pageObjs[t].hasClass("fixed")?"":"none"})}return i},options:function(e){if(void 0===e)return this.data().opts;var a=this.data();if(t.extend(a.opts,e),e.pages&&this.turn("pages",e.pages),e.page&&this.turn("page",e.page),e.display&&this.turn("display",e.display),e.direction&&this.turn("direction",e.direction),e.width&&e.height&&this.turn("size",e.width,e.height),e.when)for(var i in e.when)d(i,e.when)&&this.unbind(i).bind(i,e.when[i]);return this},version:function(){return"4.1.0"}},P={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),P._addPageWrapper.call(this),this},setData:function(e){var a=this.data();return a.f=t.extend(a.f,e),this},options:function(e){var a=this.data().f;return e?(P.setData.call(this,{opts:t.extend({},a.opts||C,e)}),this):a.opts},z:function(t){var e=this.data().f;return e.opts["z-index"]=t,e.fwrapper&&e.fwrapper.css({zIndex:t||parseInt(e.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var t=this.data().f,e=t.opts.page,a=t.opts.turn.data(),i=e%2;return"hard"==t.effect?"ltr"==a.direction?[i?"r":"l"]:[i?"l":"r"]:"single"==a.display?1==e?"ltr"==a.direction?y.forward:y.backward:e==a.totalPages?"ltr"==a.direction?y.backward:y.forward:y.all:"ltr"==a.direction?y[i?"forward":"backward"]:y[i?"backward":"forward"]},_cornerActivated:function(e){var a=this.data().f,i=this.width(),o=this.height(),r=(e={x:e.x,y:e.y,corner:""},a.opts.cornerSize);if(0>=e.x||0>=e.y||e.x>=i||e.y>=o)return!1;var n=P._cAllowed.call(this);switch(a.effect){case"hard":if(e.x>i-r)e.corner="r";else{if(!(e.x<r))return!1;e.corner="l"}break;case"sheet":if(e.y<r)e.corner+="t";else{if(!(e.y>=o-r))return!1;e.corner+="b"}if(e.x<=r)e.corner+="l";else{if(!(e.x>=i-r))return!1;e.corner+="r"}}return!(!e.corner||-1==t.inArray(e.corner,n))&&e},_isIArea:function(t){var e=this.data().f.parent.offset();t=w&&t.originalEvent?t.originalEvent.touches[0]:t;return P._cornerActivated.call(this,{x:t.pageX-e.left,y:t.pageY-e.top})},_c:function(t,e){switch(e=e||0,t){case"tl":return o(e,e);case"tr":return o(this.width()-e,e);case"bl":return o(e,this.height()-e);case"br":return o(this.width()-e,this.height()-e);case"l":return o(e,0);case"r":return o(this.width()-e,0)}},_c2:function(t){switch(t){case"tl":return o(2*this.width(),0);case"tr":return o(-this.width(),0);case"bl":return o(2*this.width(),this.height());case"br":return o(-this.width(),this.height());case"l":return o(2*this.width(),0);case"r":return o(-this.width(),0)}},_foldingPage:function(){var t=this.data().f;if(t){var e=t.opts;if(e.turn)return"single"==(t=e.turn.data()).display?1<e.next||1<e.page?t.pageObjs[0]:null:t.pageObjs[e.next]}},_backGradient:function(){var e=this.data().f,i=e.opts.turn.data();return(i=i.opts.gradients&&("single"==i.display||2!=e.opts.page&&e.opts.page!=i.totalPages-1))&&!e.bshadow&&(e.bshadow=t("<div/>",a(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(e.parent)),i},type:function(){return this.data().f.effect},resize:function(t){var e=this.data().f,a=e.opts.turn.data(),i=this.width(),o=this.height();switch(e.effect){case"hard":t&&(e.wrapper.css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&(e.ashadow.css({width:i,height:o}),e.bshadow.css({width:i,height:o})));break;case"sheet":t&&(t=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(o,2))),e.wrapper.css({width:t,height:t}),e.fwrapper.css({width:t,height:t}).children(":first-child").css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&e.ashadow.css({width:i,height:o}),P._backGradient.call(this)&&e.bshadow.css({width:i,height:o})),e.parent.is(":visible")&&(a=m(e.parent[0]),e.fwrapper.css({top:a.top,left:a.left}),a=m(e.opts.turn[0]),e.fparent.css({top:-a.top,left:-a.left})),this.flip("z",e.opts["z-index"])}},_addPageWrapper:function(){var e=this.data().f,i=e.opts.turn.data(),o=this.parent();if(e.parent=o,!e.wrapper)switch(e.effect){case"hard":(r={})[v+"transform-style"]="preserve-3d",r[v+"backface-visibility"]="hidden",e.wrapper=t("<div/>",a(0,0,2)).css(r).appendTo(o).prepend(this),e.fpage=t("<div/>",a(0,0,1)).css(r).appendTo(o),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,0)).hide().appendTo(o),e.bshadow=t("<div/>",a(0,0,0)));break;case"sheet":var r=this.width();this.height();e.fparent=e.opts.turn.data().fparent,e.fparent||((r=t("<div/>",{css:{"pointer-events":"none"}}).hide()).data().flips=0,r.css(a(0,0,"auto","visible").css).appendTo(e.opts.turn),e.opts.turn.data().fparent=r,e.fparent=r),this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),e.wrapper=t("<div/>",a(0,0,this.css("z-index"))).appendTo(o).prepend(this),e.fwrapper=t("<div/>",a(o.offset().top,o.offset().left)).hide().appendTo(e.fparent),e.fpage=t("<div/>",a(0,0,0,"visible")).css({cursor:"default"}).appendTo(e.fwrapper),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,1)).appendTo(e.fpage)),P.setData.call(this,e)}P.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=P._c.call(this,t.corner),d=this.width(),s=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*d):Math.max(Math.min(t.x,d),-d);var c,p,m,u,h,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},z=i.x?(i.x-t.x)/d:t.x/d,k=90*z,_=90>k;switch(t.corner){case"l":u="0% 50%",h="100% 50%",_?(c=0,p=0<e.opts.next-1,m=1):(c="100%",p=e.opts.page+1<w,m=0);break;case"r":u="100% 50%",h="0% 50%",k=-k,d=-d,_?(c=0,p=e.opts.next+1<w,m=0):(c="-100%",p=1!=e.opts.page,m=1)}y[v+"perspective-origin"]=h,e.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",h),e.fpage.transform("translateX("+d+"px) rotateY("+(180+k)+"deg)",u),e.parent.css(y),_?(z=1-z,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(z-=1,e.wrapper.css({zIndex:x}),e.fpage.css({zIndex:x+1})),a.opts.gradients&&(p?e.ashadow.css({display:"",left:c,backgroundColor:"rgba(0,0,0,"+.5*z+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:1-z}),_?e.bshadow.parent()[0]!=e.wrapper[0]&&e.bshadow.appendTo(e.wrapper):e.bshadow.parent()[0]!=e.fpage[0]&&e.bshadow.appendTo(e.fpage),l(e.bshadow,o(100*m,0),o(100*(1-m),0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var C,M,S,L,N,E,I,A=this,T=0,B=o(0,0),F=o(0,0),R=o(0,0),j=P._foldingPage.call(this),D=a.opts.acceleration,q=e.wrapper.height(),O="t"==t.corner.substr(0,1),$="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),n=o(0,0);r.x=i.x?i.x-t.x:t.x,r.y=g?i.y?i.y-t.y:t.y:0,n.x=$?d-r.x/2:t.x+r.x/2,n.y=r.y/2;var l=b-Math.atan2(r.y,r.x),c=l-Math.atan2(n.y,n.x);c=Math.max(0,Math.sin(c)*Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2)));return T=l/f*180,R=o(c*Math.sin(l),c*Math.cos(l)),l>b&&(R.x+=Math.abs(R.y*r.y/r.x),R.y=0,Math.round(R.x*Math.tan(f-l))<s)?(t.y=Math.sqrt(Math.pow(s,2)+2*n.x*r.x),O&&(t.y=s-t.y),e()):(l>b&&(r=f-l,n=q-s/Math.sin(r),B=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),$&&(B.x=-B.x),O&&(B.y=-B.y)),C=Math.round(R.y/Math.tan(l)+R.x),n=(r=d-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round($?r-n:C+n),Math.round(O?c:s-c)),a.opts.gradients&&(N=r*Math.sin(l),r=P._c2.call(A,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/d,I=Math.sin(b*(1<r?2-r:r)),E=Math.min(r,1),L=100<N?(N-100)/N:0,M=o(N*Math.sin(l)/d*100,N*Math.cos(l)/s*100),P._backGradient.call(A)&&(S=o(1.2*N*Math.sin(l)/d*100,1.2*N*Math.cos(l)/s*100),$||(S.x=100-S.x),O||(S.y=100-S.y))),R.x=Math.round(R.x),R.y=Math.round(R.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(d-q)*c[0]/100,h=(s-q)*c[1]/100,g=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?$?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,D),v),e.fpage.css(i).transform(n(p)+r(t.x+F.x-B.x-d*c[0]/100,t.y+F.y-B.y-s*c[1]/100,D)+n((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,D)+n(-p),v),e.fwrapper.transform(r(-t.x+B.x+u,-t.y+B.y+h,D)+n(-p),v),a.opts.gradients&&(c[0]&&(M.x=100-M.x),c[1]&&(M.y=100-M.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*I+")",j.css(m),l(e.ashadow,o($?100:0,O?0:100),o(M.x,M.y),[[L,"rgba(0,0,0,0)"],[.8*(1-L)+L,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),P._backGradient.call(A)&&l(e.bshadow,o($?0:100,O?0:100),o(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*E+")"],[1,"rgba(0,0,0,0)"]],3))},t.corner){case"tl":t.x=Math.max(t.x,1),V(),c(R,[1,0,0,1],[100,0],T);break;case"tr":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,R.y),[0,0,0,1],[0,0],-T);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(R.x,-R.y),[1,1,0,0],[100,100],-T);break;case"br":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,-R.y),[0,1,1,0],[0,100],T)}}e.point=t},_moveFoldingPage:function(t){var e=this.data().f;if(e){var a=e.opts.turn,i=a.data(),o=i.pagePlace;t?(o[i=e.opts.next]!=e.opts.page&&(e.folding&&P._moveFoldingPage.call(this,!1),P._foldingPage.call(this).appendTo(e.fpage),o[i]=e.opts.page,e.folding=i),a.turn("update")):e.folding&&(i.pages[e.folding]?(a=i.pages[e.folding].data().f,i.pageObjs[e.folding].appendTo(a.wrapper)):i.pageWrap[e.folding]&&i.pageObjs[e.folding].appendTo(i.pageWrap[e.folding]),e.folding in o&&(o[e.folding]=e.folding),delete e.folding)}},_showFoldedPage:function(t,e){var a=P._foldingPage.call(this),i=(n=this.data()).f,o=i.visible;if(a){if(!(o&&i.point&&i.point.corner==t.corner||(a="hover"==i.status||"peel"==i.status||i.opts.turn.data().mouseAction?t.corner:null,o=!1,"prevented"!=c("start",this,[i.opts,a]))))return!1;if(e){var r=this,n=i.point&&i.point.corner==t.corner?i.point:P._c.call(this,t.corner,1);this.animatef({from:[n.x,n.y],to:[t.x,t.y],duration:500,frame:function(e){t.x=Math.round(e[0]),t.y=Math.round(e[1]),P._fold.call(r,t)}})}else P._fold.call(this,t),n.effect&&!n.effect.turning&&this.animatef(!1);if(!o)switch(i.effect){case"hard":i.visible=!0,P._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,P._moveFoldingPage.call(this,!0),i.fwrapper.show(),i.bshadow&&i.bshadow.show()}return!0}return!1},hide:function(){var t=this.data().f,e=t.opts.turn.data(),a=P._foldingPage.call(this);switch(t.effect){case"hard":e.opts.gradients&&(t.bshadowLoc=0,t.bshadow.remove(),t.ashadow.hide()),t.wrapper.transform(""),t.fpage.hide();break;case"sheet":0==--t.fparent.data().flips&&t.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),t.wrapper.transform(""),t.fwrapper.hide(),t.bshadow&&t.bshadow.hide(),a.transform("")}return t.visible=!1,this},hideFoldedPage:function(t){var e=this.data().f;if(e.point){var a=this,r=e.point,n=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var d=P._c.call(this,r.corner),s=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-d.y)/2:Math.max(0,r.y-d.y)/2,o(r.x,r.y+t)),l=o(d.x,d.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,s,l,d,t),r.x=t.x,r.y=t.y,P._fold.call(a,r)},complete:n,duration:800,hiding:!0})}else this.animatef(!1),n()}},turnPage:function(t){var e=this,a=this.data().f,o=a.opts.turn.data(),r=(t={corner:a.corner?a.corner.corner:t||P._cAllowed.call(this)[0]},a.point||P._c.call(this,t.corner,a.opts.turn?o.opts.elevation:0)),n=P._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(a){a=i(r,r,n,n,a),t.x=a.x,t.y=a.y,P._showFoldedPage.call(e,t)},complete:function(){e.trigger("end",[a.opts,!0])},duration:o.opts.duration,turning:!0}),a.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(t){var e=this.data().f,a=e.opts.turn;if(!e.corner&&!e.disabled&&!this.flip("isTurning")&&e.opts.page==a.data().pagePlace[e.opts.page]){if(e.corner=P._isIArea.call(this,t),e.corner&&P._foldingPage.call(this))return this.trigger("pressed",[e.point]),P._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled)if(t=w?t.originalEvent.touches:[t],e.corner){var a=e.parent.offset();e.corner.x=t[0].pageX-a.left,e.corner.y=t[0].pageY-a.top,P._showFoldedPage.call(this,e.corner)}else e.hover&&!this.data().effect&&this.is(":visible")&&((t=P._isIArea.call(this,t[0]))?("sheet"==e.effect&&2==t.corner.length||"hard"==e.effect)&&(e.status="hover",e=P._c.call(this,t.corner,e.opts.cornerSize/2),t.x=e.x,t.y=e.y,P._showFoldedPage.call(this,t,!0)):"hover"==e.status&&(e.status="",P.hideFoldedPage.call(this,!0)))},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&"prevented"!=c("released",this,[t.point||e])&&P.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return P.setData.call(this,{disabled:t}),this},hover:function(t){return P.setData.call(this,{hover:t}),this},peel:function(e,a){var i=this.data().f;if(e){if(-1==t.inArray(e,y.all))throw p("Corner "+e+" is not permitted");if(-1!=t.inArray(e,P._cAllowed.call(this))){var o=P._c.call(this,e,i.opts.cornerSize/2);i.status="peel",P._showFoldedPage.call(this,{corner:e,x:o.x,y:o.y},a)}}else i.status="",P.hideFoldedPage.call(this,a);return this}};window.requestAnim=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},t.extend(t.fn,{flip:function(){return e(t(this[0]),P,arguments)},turn:function(){return e(t(this[0]),M,arguments)},transform:function(t,e){var a={};return e&&(a[v+"transform-origin"]=e),a[v+"transform"]=t,this.css(a)},animatef:function(e){var a=this.data();if(a.effect&&a.effect.stop(),e){e.to.length||(e.to=[e.to]),e.from.length||(e.from=[e.from]);for(var i=[],o=e.to.length,r=!0,n=this,d=(new Date).getTime(),s=0;s<o;s++)i.push(e.to[s]-e.from[s]);a.effect=t.extend({stop:function(){r=!1},easing:function(t,e,a,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+a}},e),this.data(a),function t(){if(a.effect&&r){for(var s=[],l=Math.min(e.duration,(new Date).getTime()-d),c=0;c<o;c++)s.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?s[0]:s),l==e.duration?(delete a.effect,n.data(a),e.complete&&e.complete()):window.requestAnim(t)}}()}else delete a.effect}}),t.isTouch=w,t.mouseEvents=x,t.cssPrefix=s,t.cssTransitionEnd=function(){var t,e=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(void 0!==e.style[t])return a[t]},t.findPos=m}(s),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return n&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return n&&e?" scale3d("+t+", "+t+", 1) ":" scale("+t+") "}function o(t,e){return{x:t,y:e}}function r(t,e){return function(){return t.apply(e,arguments)}}var n,d={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},s={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},d,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(n="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,"function"!=typeof a.max){var c=a.max;a.max=function(){return c}}for(var p in l.zoom={opts:a,axis:o(0,0),scrollPos:o(0,0),eventQueue:[],mouseupEvent:function(){return s._eMouseUp.apply(i,arguments)},eventTouchStart:r(s._eTouchStart,i),eventTouchMove:r(s._eTouchMove,i),eventTouchEnd:r(s._eTouchEnd,i),flipbookEvents:{zooming:r(s._eZoom,i),pressed:r(s._ePressed,i),released:r(s._eReleased,i),start:r(s._eStart,i),turning:r(s._eTurning,i),turned:r(s._eTurned,i),destroying:r(s._eDestroying,i)}},a.when)Object.prototype.hasOwnProperty.call(a.when,p)&&this.bind("zoom."+p,a.when[p]);for(p in l.zoom.flipbookEvents)Object.prototype.hasOwnProperty.call(l.zoom.flipbookEvents,p)&&a.flipbook.bind(p,l.zoom.flipbookEvents[p]);this.css({position:"relative",overflow:"hidden"}),t.isTouch?(a.flipbook.bind("touchstart",l.zoom.eventTouchStart).bind("touchmove",l.zoom.eventTouchMove).bind("touchend",l.zoom.eventTouchEnd),this.bind("touchstart",s._tap)):this.mousedown(s._mousedown).click(s._tap)},_tap:function(e){var a=t(this),i=a.data().zoom;!i.draggingCorner&&!i.dragging&&function t(e,a){return e[0]!=a[0]&&(!!e.attr("page")||!!e.parent()[0]&&t(e.parent(),a))}(t(e.target),a)&&(s._addEvent.call(a,"tap",e),(e=s._eventSeq.call(a))&&a.trigger(e))},_addEvent:function(t,e){var a=this.data().zoom,i=(new Date).getTime();a.eventQueue.push({name:t,timestamp:i,event:e}),10<a.eventQueue.length&&a.eventQueue.splice(0,1)},_eventSeq:function(){var e=this.data().zoom.eventQueue,a=e.length-1;return 0<a&&"tap"==e[a].name&&"tap"==e[a-1].name&&e[a].event.pageX==e[a-1].event.pageX&&e[a].event.pageY==e[a-1].event.pageY&&200>e[a].timestamp-e[a-1].timestamp&&50<e[a].timestamp-e[a-1].timestamp?t.extend(e[a].event,{type:"zoom.doubleTap"}):"tap"==e[a].name?t.extend(e[a].event,{type:"zoom.tap"}):void 0},_prepareZoom:function(){var e,a=0,i=this.data().zoom,r=1/this.zoom("value"),n=(e=i.opts.flipbook).turn("direction"),d=e.data(),s=e.offset(),l=this.offset(),c={height:e.height()},p=e.turn("view");if("double"==e.turn("display")&&e.data().opts.autoCenter?p[0]?p[1]?(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?s.left-l.left:s.left-l.left+c.width,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?s.left-l.left+c.width:s.left-l.left,s.top-l.top)):(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)),i.zoomer||(i.zoomer=t("<div />",{class:"zoomer",css:{overflow:"hidden",position:"absolute",zIndex:"1000000"}}).mousedown((function(){return!1})).appendTo(this)),i.zoomer.css({top:e.y,left:e.x,width:c.width,height:c.height}),(n=p.join(","))!=i.zoomerView)for(i.zoomerView=n,i.zoomer.find("*").remove(),n=0;n<p.length;n++)if(p[n]){l=d.pageObjs[p[n]].offset();var m=t(d.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-s.top)*r,left:(l.left-s.left-a)*r}).appendTo(i.zoomer)}return{pos:e,size:c}},value:function(){return this.data().zoom.opts.flipbook.turn("zoom")},zoomIn:function(e){var r=this,n=this.data().zoom,d=n.opts.flipbook,l=n.opts.max();d.offset();var c=this.offset();if(n.zoomIn)return this;d.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=s._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=d.data().opts.autoCenter;n.scale=l,d.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>f.width||e.y>f.height)&&(e.x=u.x,e.y=u.y);var v=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),f=(e=o(f.size.width*l>this.width()?e.x-v.x:0,f.size.height*l>this.height()?e.y-v.y:0),v=o(Math.abs(f.size.width*l-this.width()),Math.abs(f.size.height*l-this.height())),o(Math.min(0,f.size.width*l-this.width()),Math.min(0,f.size.height*l-this.height()))),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y);b.y>v.y?e.y=b.y-v.y+e.y:b.y<f.y&&(e.y=b.y-f.y+e.y),b.x>v.x?e.x=b.x-v.x+e.x:b.x<f.x&&(e.x=b.x-f.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+n.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),n.zoomIn=!0,n.flipPosition=o(d.css("left"),d.css("top")),d.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=d.offset();n.axis=o(e.left-c.left,e.top-c.top),g&&"double"==d.turn("display")&&("ltr"==d.turn("direction")&&!d.turn("view")[0]||"rtl"==d.turn("direction")&&!d.turn("view")[1])&&(n.axis.x+=d.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,s._eMouseDown),r.bind(t.mouseEvents.move,s._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",s._eMouseWheel),setTimeout((function(){n.zoomer.hide(),n.zoomer.remove(),n.zoomer=null,n.zoomerView=null}),50)};return n.zoomer.css(m).show(),h?n.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,n.opts.duration),n.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,n=this,d=this.data().zoom,l=d.opts.flipbook,c=1/d.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:d.opts.duration,d.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;d.zoomIn=!1,d.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,s._eMouseDown),n.unbind(t.mouseEvents.move,s._eMouseMove),t(document).unbind(t.mouseEvents.up,d.mouseupEvent),n.unbind("mousewheel",s._eMouseWheel),(u={})[p+"transition"]=p+"transform "+d.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:d.flipPosition.y,left:d.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var g=l.data().opts.autoCenter;g&&"double"==l.turn("display")&&(l.turn("view")[0]?l.turn("view")[1]||(u.x="ltr"==l.turn("direction")?u.x+h.width()/4:u.x-h.width()/4):u.x="ltr"==l.turn("direction")?u.x-h.width()/4:u.x+h.width()/4);var v=t.findPos(l[0]);r=o(-l.width()/2-v.left+h.width()/2+u.x+r.left,-l.height()/2-v.top+h.height()/2+u.y+r.top);var f=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:d.flipPosition.y,left:d.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:d.flipPosition.y,left:d.flipPosition.x,position:"relative"}),g&&l.turn("center"),n.trigger("zoom.zoomOut")};return 0===e?f():(m?l.bind(m,(function(){t(this).unbind(m),f()})):setTimeout(f,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var d=this.data().zoom,s=d.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",s.css(p),s.transform(a(-d.axis.x-e.x,-d.axis.y-e.y,!0))}else s.css({top:-d.axis.y-e.y,left:-d.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(s.height()-this.height())/2)),s=o(l>this.width()?l-this.width():(l-this.width())/2,s.height()>this.height()?s.height()-this.height():(s.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>s.y&&(e.y=s.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>s.x&&(e.x=s.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}d.scrollPos=o(e.x,e.y)},resize:function(){var t=this.data().zoom,e=t.opts.flipbook;if(1<this.zoom("value")){var a=e.offset(),i=this.offset();t.axis=o(a.left-i.left+(t.axis.x+t.scrollPos.x),a.top-i.top+(t.axis.y+t.scrollPos.y)),"double"==e.turn("display")&&"ltr"==e.turn("direction")&&!e.turn("view")[0]&&(t.axis.x+=e.width()/2),this.zoom("scroll",t.scrollPos)}},_eZoom:function(){for(var t=this.data().zoom,e=t.opts.flipbook,a=e.turn("view"),i=0;i<a.length;i++)a[i]&&this.trigger("zoom.resize",[t.scale,a[i],e.data().pageObjs[a[i]]])},_eStart:function(t){1!=this.zoom("value")&&t.preventDefault()},_eTurning:function(t,e,a){var i=this,o=(t=this.zoom("value"),this.data().zoom);e=o.opts.flipbook;if(o.page=e.turn("page"),1!=t){for(o=0;o<a.length;o++)a[o]&&this.trigger("zoom.resize",[t,a[o],e.data().pageObjs[a[o]]]);setTimeout((function(){i.zoom("resize")}),0)}},_eTurned:function(t,e){if(1!=this.zoom("value")){var a=this.data().zoom,i=a.opts.flipbook;e>a.page?this.zoom("scroll",o(0,a.scrollPos.y),!1,!0):e<a.page&&this.zoom("scroll",o(i.width(),a.scrollPos.y),!1,!0)}},_ePressed:function(){t(this).data().zoom.draggingCorner=!0},_eReleased:function(){var e=t(this).data().zoom;setTimeout((function(){e.draggingCorner=!1}),1)},_eMouseDown:function(e){return t(this).data().zoom.draggingCur=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY),!1},_eMouseMove:function(e){var a=t(this).data().zoom;if(a.draggingCur){a.dragging=!0;e=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY);var i=o(e.x-a.draggingCur.x,e.y-a.draggingCur.y);return t(this).zoom("scroll",o(a.scrollPos.x-i.x,a.scrollPos.y-i.y),!0),a.draggingCur=e,!1}},_eMouseUp:function(){var e=t(this).data().zoom;e.dragging&&t(this).zoom("scroll",e.scrollPos),e.draggingCur=null,setTimeout((function(){e.dragging=!1}),1)},_eMouseWheel:function(e,a,i,r){i=o((e=t(this).data().zoom).scrollPos.x+10*i,e.scrollPos.y-10*r),t(this).zoom("scroll",i,!1,!0)},_eTouchStart:function(e){var a=t(this).data().zoom;e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch={},a.touch.initial=e,a.touch.last=e,a.touch.timestamp=(new Date).getTime(),a.touch.speed=o(0,0)},_eTouchMove:function(e){var a=t(this).data().zoom,i=t(this).zoom("value"),r=a.opts.flipbook,n=(new Date).getTime();e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch&&1==i&&!r.data().mouseAction&&(a.touch.motion=o(e.x-a.touch.last.x,e.y-a.touch.last.y),a.touch.speed.x=0===a.touch.speed.x?a.touch.motion.x/(n-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(n-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=n)},_eTouchEnd:function(){var e=t(this).data().zoom;if(e.touch&&1==t(this).zoom("value")){var a=Math.abs(e.touch.initial.y-e.touch.last.y);50>a&&(-1>e.touch.speed.x||-100>e.touch.last.x-e.touch.initial.x)?this.trigger("zoom.swipeLeft"):50>a&&(1<e.touch.speed.x||100<e.touch.last.x-e.touch.initial.x)&&this.trigger("zoom.swipeRight")}},_eDestroying:function(){var e=this,a=this.data().zoom,i=a.opts.flipbook;for(var o in this.zoom("zoomOut",0),t.each("tap doubleTap resize zoomIn zoomOut swipeLeft swipeRight".split(" "),(function(t,a){e.unbind("zoom."+a)})),a.flipbookEvents)Object.prototype.hasOwnProperty.call(a.flipbookEvents,o)&&i.unbind(o,a.flipbookEvents[o]);i.unbind("touchstart",a.eventTouchStart).unbind("touchmove",a.eventTouchMove).unbind("touchend",a.eventTouchEnd),this.unbind("touchstart",s._tap).unbind("click",s._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==u(a[0]))return s.init.apply(t(this[0]),a);if(s[a[0]])return s[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(s);var xt,yt=s,zt=require("axios"),kt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flipbook-container"},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[a("div",{staticClass:"preview-desktop",class:t.isLoading?"invisible":"visible"},[a("div",{staticClass:"flipbook-lib",class:[t.formato],attrs:{id:"flipbook"}})])]),t._v(" "),t.controls?a("div",{staticClass:"controls"},[a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheLeft()}}},[a("span",{staticClass:"icon icon-chevron-left size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M20.0847 20.7019L15.3828 16L20.0847 11.298C20.8651 10.5177 20.8651 9.25557 20.0847 8.47522C19.3044 7.69487 18.0423 7.69487 17.2619 8.47522L11.1419 14.5952C10.3616 15.3756 10.3616 16.6377 11.1419 17.418L17.2619 23.538C18.0423 24.3184 19.3044 24.3184 20.0848 23.5381L20.0908 23.5319C20.8421 22.7608 20.8726 21.4898 20.0847 20.7019Z"}})])])]),t._v(" "),a("div",{staticClass:"info-space"},[a("div",{staticClass:"current-pages"},[a("div",{staticClass:"list",style:{left:"-"+t.numberPositions+"px"}},t._l(t.pages,(function(e,i){return a("span",{key:i},[t._v(t._s(i+1))])})),0)]),t._v(" "),a("div",{staticClass:"info-pages"},[t._v(t._s(t.pages)+" "+t._s(t.lang.pages))])]),t._v(" "),a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheRight()}}},[a("span",{staticClass:"icon icon-chevron-right size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9153 8.47532C11.135 9.25567 11.135 10.5178 11.9153 11.2981L16.6173 16.0001L11.9153 20.702C11.135 21.4823 11.135 22.7444 11.9153 23.5248C12.6957 24.3051 13.9578 24.3051 14.7381 23.5248L20.8582 17.4048C21.6385 16.6244 21.6385 15.3623 20.8582 14.582L14.7381 8.46198C13.9668 7.69064 12.6913 7.69931 11.9153 8.47532Z"}})])])])],1):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-6d506cd1_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}.flipbook-viewport{margin-top:30px;width:100%}.flipbook-viewport .container-book{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page{-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);-moz-box-shadow:0 0 20px rgba(0,0,0,.2);-ms-box-shadow:0 0 20px rgba(0,0,0,.2);-o-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}#flipbook-viewport .page img{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.flipbook-viewport .shadow{-webkit-transition:-webkit-box-shadow .5s;-moz-transition:-moz-box-shadow .5s;-o-transition:-webkit-box-shadow .5s;-ms-transition:-ms-box-shadow .5s;-webkit-box-shadow:0 0 20px #ccc;-moz-box-shadow:0 0 20px #ccc;-o-box-shadow:0 0 20px #ccc;-ms-box-shadow:0 0 20px #ccc;box-shadow:0 0 20px #ccc}.even{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.odd{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.even:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to left,#000,transparent 7%);opacity:.15}.odd:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to right,#000,transparent 7%);opacity:.15}#flipbook .page-wrapper{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img{width:100%;height:calc(75vh - 50px)}#flipbook img.loading-blur{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img{height:100%}#flipbook.square img{width:100%;height:calc(55vh - 50px)}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}',map:void 0,media:void 0}),t("data-v-6d506cd1_1",{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-6d506cd1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6d506cd1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6d506cd1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6d506cd1]{font-size:14px}}@media (min-width:1024px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6d506cd1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6d506cd1]{font-size:1.56vw}}html[data-v-6d506cd1]{box-sizing:border-box}*[data-v-6d506cd1],[data-v-6d506cd1]::after,[data-v-6d506cd1]::before{box-sizing:border-box}[data-v-6d506cd1] .arrow svg{width:100%!important;height:100%!important}.zoom-in #flipbook img[data-v-6d506cd1]{height:100%!important}.preview-desktop[data-v-6d506cd1]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-6d506cd1]{position:absolute;top:35%;left:0;right:0;bottom:0;margin-bottom:auto;margin-top:auto;z-index:9999;text-align:center;font-family:Roboto}.loading-box #loading[data-v-6d506cd1]{display:inline-block;border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-6d506cd1]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-6d506cd1]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-6d506cd1]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-6d506cd1]{transition:all .7s ease-in-out}.flipbook-container[data-v-6d506cd1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .3s;z-index:2;min-height:210px;min-height:210px}.flipbook-container.zoom-in[data-v-6d506cd1]{height:100vh}@media (max-width:479px){.flipbook-container[data-v-6d506cd1]{display:none}}.flipbook-container .flipbook-lib[data-v-6d506cd1]{z-index:50}.flipbook-container .flipbook-lib .page.odd[data-v-6d506cd1]:not(.p1)::before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:20px 0 20px -10px rgba(0,0,0,.3) inset;z-index:4}.flipbook-container .flipbook-lib .page.even[data-v-6d506cd1]::before{position:absolute;display:block;content:"";height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.5) inset}.flipbook-container .flipbook-lib img[data-v-6d506cd1]{height:100%!important}.controls[data-v-6d506cd1]{margin:0 auto;display:block;display:inline-block;margin-top:20px;position:relative;z-index:2}.controls button[data-v-6d506cd1]{display:inline-block!important;background:#fff;box-shadow:4px 8px 24px rgba(175,162,186,.24);padding:.380952381rem!important;border-radius:50%;text-align:center;color:#afa2ba;border:none;width:auto!important;height:auto!important;cursor:pointer}.controls button svg[data-v-6d506cd1]{fill:transparent!important}.controls button svg path[data-v-6d506cd1]{fill:transparent!important}.controls button .svg-color[data-v-6d506cd1]{fill:#12d3db!important}.controls button .svg-color path[data-v-6d506cd1]{fill:#12d3db!important}.controls .info-space[data-v-6d506cd1]{position:relative;top:3px;display:inline-block;margin:0 .380952381rem;font-size:10px;font-weight:900;color:#afa2ba;font-family:Nunito,sans-serif}.controls .current-pages[data-v-6d506cd1]{width:60px;white-space:nowrap;line-height:1;overflow:hidden;transition:all .5s ease}.controls .current-pages .list[data-v-6d506cd1]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-6d506cd1]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-6d506cd1]:first-child{margin:0 16px}.controls .current-pages span[data-v-6d506cd1]:last-child{margin:0 16px}.info-pages[data-v-6d506cd1]{text-align:center}@keyframes arrow-animation-data-v-6d506cd1{0%,100%,48%{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}8%{-webkit-transform:translateX(-30%);transform:translateX(-30%)}16%{-webkit-transform:translateX(15%);transform:translateX(15%)}24%{-webkit-transform:translateX(-15%);transform:translateX(-15%)}32%{-webkit-transform:translateX(9%);transform:translateX(9%)}40%{-webkit-transform:translateX(-6%);transform:translateX(-6%)}}.visible[data-v-6d506cd1]{opacity:1}.invisible[data-v-6d506cd1]{opacity:0}[data-v-6d506cd1] .loading-bg{position:absolute;display:flex;top:0;width:100%;height:100%;background-color:#fff;opacity:.64;align-items:center;justify-content:center;z-index:12}[data-v-6d506cd1] .loading-bg .loading{border:2px solid #dfdae4;border-top:2px solid #00cf72;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){[data-v-6d506cd1] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.icon[data-v-6d506cd1]{width:24px;height:24px;display:block}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:A},props:{
|
|
1248
1248
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1249
1249
|
uuid:{type:String,required:!0},
|
|
1250
1250
|
/** Number of pages. `32` */
|
|
@@ -1293,7 +1293,7 @@ pages:{type:Number,required:!0},
|
|
|
1293
1293
|
/** Product ID. `109` */
|
|
1294
1294
|
product_id:{type:Number,required:!0},
|
|
1295
1295
|
/** If preloaded images are base64 formated. `false` */
|
|
1296
|
-
base64:{type:Boolean,required:!1},typeLanguage:{type:String,required:!1,default:"br"},zoom:{type:Boolean,required:!1,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){var t;return V(t={mobileStopped:!0,pageNum:32,pagesToRender:[],pagesZoom:[],numberPositions:0,mobilePagePosition:0,loadedPages:3,loadedPagesZoom:1,isLoading:!1,lang:wt[this.typeLanguage],zoomActive:!1,zoomMultiPages:!1,zoomSettings:{dots:!1,focusOnSelect:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,touchThreshold:5},currentPage:0},"lang",wt[this.typeLanguage]),V(t,"marginMenu",0),t},mounted:function(){var t=this;this.pageNum=this.pages,this.initBookMobile(),this.initBookMobileZoom(),setTimeout((function(){t.isLoading=!0}),3e3);var e=document.getElementById("header-menu");e&&(t.marginMenu=e.offsetHeight+40),window.addEventListener("resize",(function(e){var a=document.getElementById("header-menu");a&&(t.marginMenu=a.offsetHeight+40)}))},updated:function(){var t=this;this.$nextTick((function(){document.getElementById("page-"+(t.loadedPages-1))&&(t.mobilePagePosition=document.getElementById("page-"+(t.loadedPages-1)).offsetLeft-50,document.getElementById("list-mobile").addEventListener("scroll",t.handleScroll))}))},methods:{changeZoom:function(t,e){this.currentPage=e,(2==this.zoomSettings.slidesToShow&&this.currentPage+1===this.loadedPagesZoom||1==this.zoomSettings.slidesToShow&&this.currentPage===this.loadedPagesZoom)&&this.getZoomList()},setFormatZoom:function(t){this.zoomSettings.slidesToShow=t,this.zoomSettings.slidesToScroll=t,this.currentPage=0},openZoom:function(){this.mobileStopped=!1,this.getZoomList(),this.zoomActive=!0},closeZoom:function(){this.zoomSettings.slidesToShow=1,this.zoomActive=!1},initBookMobile:function(){this.loadedPages=1;for(var t=1;t<this.pageNum;t++)if(t<5){var e={url:this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w=533&pw=0&noCache=true",isLoaded:!0};this.pagesToRender.push(e)}else{var a={url:this.apiUrl+"/api/builder/getplaceholder/"+this.product_id+"?page="+t+"&w=100&pw=0&noCache=true",isLoaded:!1};this.pagesToRender.push(a)}this.moreBooksMobile()},initBookMobileZoom:function(){this.loadedPages=1;for(var t=1;t<this.pageNum+1;t++)if(t<5){var e={url:this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w=533&pw=0&noCache=true",isLoaded:!0};this.pagesZoom.push(e)}else{var a={url:this.apiUrl+"/api/builder/getplaceholder/"+this.product_id+"?page="+t+"&w=100&pw=0&noCache=true",isLoaded:!1};this.pagesZoom.push(a)}},getZoomList:function(){for(var t=this,e=this,a=function(){var a=i;o=t.apiUrl+"/api/builder/getpreview/"+e.uuid+"?page="+i+"&w=533&v=0",_t.get(o,{responseType:"arraybuffer"}).then((function(t){var i={url:"data:image/png;base64,"+new Buffer.from(t.data,"binary").toString("base64"),isLoaded:!0};e.pagesZoom.splice(a-1,1,i)}))},i=e.loadedPagesZoom;i<=e.loadedPagesZoom+4&&i<=e.pageNum;i++){var o;a()}e.loadedPagesZoom=e.loadedPagesZoom+4},moreBooksMobile:function(){for(var t=this,e=this,a=function(){var a=i;o=t.apiUrl+"/api/builder/getpreview/"+e.uuid+"?page="+i+"&w=533&v=0",_t.get(o,{responseType:"arraybuffer"}).then((function(t){var i={url:"data:image/png;base64,"+new Buffer.from(t.data,"binary").toString("base64"),isLoaded:!0};e.pagesToRender.splice(a-1,1,i)}))},i=e.loadedPages;i<=e.loadedPages+4&&i<=e.pageNum;i++){var o;a()}e.loadedPages=e.loadedPages+4,document.getElementById("page-"+e.loadedPages-1)&&(e.mobilePagePosition=document.getElementById("page-"+e.loadedPages).offsetLeft-50)},handleScroll:function(t){null!==document.getElementById("list-mobile")&&document.getElementById("list-mobile").scrollLeft>=this.mobilePagePosition&&this.moreBooksMobile(),this.mobileStopped=!1},startedMethod:function(){this.$emit("start")},completedMethod:function(t){this.$emit("completed",t)}},computed:{}},"data-v-0c220ba8",!1,void 0,!1,x,void 0,void 0),Mt=require("axios"),Pt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-tool",class:[t.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"backdrop",on:{click:function(e){return t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"box-close",style:t.cssProps,on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icon-close size-lg"},[a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]),t._v(" "),a("span",{staticClass:"icon icon-edit size-lg"},[a("svg",{attrs:{fill:"#fff",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:"#fff"}})])])]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:"sm",color:"#68596E"}},[t._v(t._s(t.lang.editArea))])],1),t._v(" "),a("HR",{attrs:{height:"1px",color:t.preview_color}}),t._v(" "),t.extras?a("div",{staticClass:"itens-properties"},t._l(t.extras,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.showModal(e.code)}}},[a("div",["nome"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.dedication))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.moonerLabelSidebar))]):t._e(),t._v(" "),"number"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.shirtNumber))]):t._e(),t._v(" "),"nome"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value.name))]):t._e(),t._v(" "),"number"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:t.preview_color}})])],1)])})),0):t._e()],1)]),t._v(" "),t.modalName?a("Modal",{attrs:{heading:t.lang.kidName,headingColor:t.preview_color,paragraph:"Para deixar o livro mais legal use apenas o primeiro nome"},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"name",label:t.lang.kidName,placeholder:"",helper:t.lang.recommendName,value:t.current_character_name,disabled:!1},on:{update:t.updateName}}),t._v(" "),a("div",{staticClass:"name-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalDedication?a("Modal",{attrs:{heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.dedicationText,label:t.lang.messageDedication,placeholder:t.lang.dedcationPlaceholder,maxlength:300,counter:!0,disabled:!1},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},update:t.updateDedicationText}}),t._v(" "),a("div",{staticClass:"dedication-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalShirtNumber?a("Modal",{attrs:{heading:t.lang.editShirt},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"number",label:t.lang.shirtNumber,placeholder:"",helper:t.reccomendName,value:t.currentShirtNumber,disabled:!1},on:{change:t.updateShirtNumber}}),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalScript?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.availableLayouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==i?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:"https://doo8f8ypwd7it.cloudfront.net/brasilprevjunior/img/capitao@2x.890754be.png",alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLayout==i?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalBirthdate?a("Modal",{attrs:{heading:t.lang.editDateBirth},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[a("div",{staticClass:"day"},[a("Select",{attrs:{selected:t.selectedBirthDay,name:"day",label:"Dia",placeholder:"Dia",options:t.days},on:{change:t.onChangeDay}})],1),t._v(" "),a("div",{staticClass:"month"},[a("Select",{attrs:{selected:t.selectedBirthMonth,name:"month",label:"Mês",placeholder:"Mês",options:t.months},on:{change:t.onChangeMonth}})],1)]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalPet?a("Modal",{staticClass:"modal-pet",attrs:{heading:"Altere o bichinho da história",headingColor:t.preview_color,paragraph:"Esse bichinho acompanhará <span>"+t.searchExtraProperty("name").value+"</span> em toda a história."},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-do-mooner").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-do-mooner").value.name=e.target.value}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.selectPet))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentPet?"active":"inactive",t.petAnimation?"fade-in-image":"inactive-pet"]},[t.currentPet&&t.currentPet.assets&&t.currentPet.assets.asset?a("div",[t.currentPet.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPet.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listPet?a("div",{staticClass:"pet-list",class:t.currentPet?"active":"inactive"},t._l(t.listPet.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentPet===e?"active":"inactive",on:{click:function(a){return t.setPet(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])]),t._v(" "),t.searchExtraProperty("nome-do-mooner").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-do-mooner").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-do-mooner").value.newPet.assets.asset,alt:""}}),t._v(" "),a("br")]):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalMooner?a("Modal",{staticClass:"modal-pet",attrs:{heading:t.modalMoonerFirstOpen?t.isMobile?t.lang.moonerTitleMobile:t.lang.moonerTitle:t.isMobile?t.lang.moonerTitleFirstOpenMobile:t.lang.moonerTitleFirstOpen,headingColor:t.preview_color,paragraph:t.lang.moonerDescriptionOne+t.current_character_name+t.lang.moonerDescriptionTwo,haveClose:t.modalMoonerFirstOpen},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentMooner?"width: 100%;":""},[a("div",{},[a("Input",{attrs:{value:t.currentMoonerName,error:"",helper:"",label:t.lang.moonerLabel,name:"currentPetName"},on:{input:function(e){t.currentMoonerName=e.target.value}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",{staticClass:"clip-mooney"},[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listMooner?a("div",{staticClass:"pet-list",class:t.currentMooner?"active":"inactive"},t._l(t.listMooner.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentMooner===e?"active":"inactive",on:{click:function(a){return t.setMooner(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!t.currentMoonerName||!t.currentMooner,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.modalMoonerFirstOpen?t.lang.moonerCta:t.lang.moonerCtaFirstOpen)+"\n\t\t\t")]),t._v(" "),t.modalMoonerFirstOpen?a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")]):t._e()],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-02f8a004_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-02f8a004]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-02f8a004]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-02f8a004]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-02f8a004]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-02f8a004]{font-size:14px}}@media (min-width:1024px){[data-v-02f8a004]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-02f8a004]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-02f8a004]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-02f8a004]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-02f8a004]{font-size:1.56vw}}html[data-v-02f8a004]{box-sizing:border-box}*[data-v-02f8a004],[data-v-02f8a004]::after,[data-v-02f8a004]::before{box-sizing:border-box}[data-v-02f8a004] .modal-pet{background-color:#000}[data-v-02f8a004] .modal-pet .paragraph span{color:var(--preview-color);font-weight:700}.main-tool[data-v-02f8a004]{position:fixed;width:100%;height:100%}@media (max-width:990px){.main-tool[data-v-02f8a004]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-02f8a004]{content:"";width:100vw;height:100vh;background:rgba(104,89,110,0);backdrop-filter:blur(0);position:fixed;transition:all 1s ease;opacity:0;top:0}.main-tool.active[data-v-02f8a004]{z-index:5;max-width:100%}.main-tool.active .backdrop[data-v-02f8a004]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-02f8a004]{display:none}}.main-tool.inactive[data-v-02f8a004]{z-index:5;top:0;max-width:48px;right:0}.custom-properties[data-v-02f8a004]{right:0;text-align:left;top:0;max-width:16.1904761905rem;font-family:Roboto;width:100%;position:fixed;z-index:3;overflow:initial;height:100vh;transition:all 1s ease;transform:translateX(100%)}@media (max-width:990px){.custom-properties[data-v-02f8a004]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100vh;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-02f8a004]{opacity:0}.custom-properties.inactive .icon-edit[data-v-02f8a004]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-02f8a004]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-02f8a004]{opacity:1}.custom-properties.active .icon-edit[data-v-02f8a004]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-02f8a004]{background:#fff}.custom-properties .list-properties[data-v-02f8a004]{background-color:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);width:100%;background-color:#fff;position:relative;height:100vh;z-index:3;padding:1.1428571429rem 2.7777777778vw}@media (max-width:990px){.custom-properties .list-properties[data-v-02f8a004]{width:100%;background-color:#fff;position:relative;border-radius:0}}.custom-properties .title-custom-properties[data-v-02f8a004]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-02f8a004]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-02f8a004]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%}.custom-properties .itens-properties .item svg[data-v-02f8a004]{position:absolute;right:.380952381rem;top:1.0476190476rem;width:1.1428571429rem}@media (max-width:479px){.custom-properties .itens-properties .item svg[data-v-02f8a004]{width:2.2429906542rem}}.custom-properties .itens-properties .item[data-v-02f8a004]:last-child{border-bottom:0}.custom-properties .itens-properties .paragraph[data-v-02f8a004]{text-overflow:ellipsis;white-space:nowrap;max-width:85%;overflow:hidden}.custom-properties .itens-properties hr[data-v-02f8a004]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-02f8a004]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-02f8a004]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-02f8a004]{display:flex}.layout-option[data-v-02f8a004]{background:#fff;border-radius:.4761904762rem;border:2px solid transparent;margin-top:5px;margin-bottom:5px;cursor:pointer;position:relative;flex-basis:100%;-webkit-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);-moz-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);margin:1%;overflow:hidden}.layout-option .panel-title[data-v-02f8a004]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-02f8a004]{font-family:Roboto;color:#68596e;width:8.3333333333vw;justify-content:center;align-self:center;align-items:center;font-size:.6666666667rem;padding-left:.4761904762rem}.layout-option .panel-title .flag[data-v-02f8a004]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-02f8a004]{border-radius:5px;border:solid 2px #e9eaed;background-color:#fff;width:1.4285714286rem;height:1.4285714286rem;display:flex;justify-content:center;align-self:center;align-items:center}.layout-option .panel-title .flag .icon[data-v-02f8a004] svg{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon[data-v-02f8a004] svg path{fill:#e9eaed!important}.layout-option.active[data-v-02f8a004]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-02f8a004]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-02f8a004]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag[data-v-02f8a004] svg path{fill:#fff!important}.pet-view[data-v-02f8a004]{width:100%;display:flex}.pet-view .pet-label[data-v-02f8a004]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.pet-view .pet-label[data-v-02f8a004]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.pet-selectors[data-v-02f8a004]{width:100%}.pet-selectors p[data-v-02f8a004]{margin:0;font-size:.7619047619rem}.pet-selectors .input-text-group[data-v-02f8a004]{padding-bottom:0}.pet-list[data-v-02f8a004]{width:100%;display:flex}.pet-list div[data-v-02f8a004]{margin:.2380952381rem;cursor:pointer}.pet-list .inactive[data-v-02f8a004]{opacity:.3}.pet-list img[data-v-02f8a004]{width:100%}.color-list[data-v-02f8a004]{width:100%;display:flex}.color[data-v-02f8a004]{height:1.9047619048rem;width:1.9047619048rem;display:block;border-radius:100%;margin-left:.2857142857rem;margin-right:.2857142857rem;padding:.1428571429rem;border:.0952380952rem solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;cursor:pointer}.color.is-selected[data-v-02f8a004]{border-color:#01dfa1}.color .secondary-color[data-v-02f8a004]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-02f8a004]{width:100%;display:flex}.footer-pet .cancel[data-v-02f8a004]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.box-dates-columns[data-v-02f8a004]{display:flex}.box-dates-columns .day[data-v-02f8a004]{width:11.1111111111vw}.box-dates-columns .month[data-v-02f8a004]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-02f8a004]{width:2.4761904762rem;height:2.2857142857rem;top:.7619047619rem;background:var(--preview_color);box-shadow:4px 4px 16px rgba(175,162,186,.24);position:absolute;left:-2.2857142857rem;display:flex;justify-content:center;align-items:center;z-index:2;border-radius:50% 0 0 50%;cursor:pointer;transition:all .3s ease;animation-delay:.5s}@media (max-width:479px){.box-close[data-v-02f8a004]{display:none}}.box-close .icon[data-v-02f8a004]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s}@media (max-width:990px){[data-v-02f8a004] .mooner-footer button{width:100%!important;text-align:center}[data-v-02f8a004] .mooner-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-02f8a004] .name-footer button{width:100%!important;text-align:center}[data-v-02f8a004] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-02f8a004] .dedication-footer button{width:100%!important;text-align:center}[data-v-02f8a004] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.pet-combo-list[data-v-02f8a004]{display:flex;flex-wrap:wrap}@media (max-width:990px){.pet-combo-list[data-v-02f8a004]{flex-direction:column-reverse}}.pet-combo-list .selected-pet[data-v-02f8a004]{width:0%;transition:width .5s;max-height:9.5238095238rem}.pet-combo-list .selected-pet .clip-mooney[data-v-02f8a004]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney[data-v-02f8a004]{max-height:22.8037383178rem;overflow:hidden;display:flex}}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney img[data-v-02f8a004]{max-width:80%;margin:0 auto;margin-top:-.9523809524rem}}.pet-combo-list .selected-pet img[data-v-02f8a004]{margin-top:-.9523809524rem;opacity:0}.pet-combo-list .selected-pet.active[data-v-02f8a004]{width:40%}@media (max-width:990px){.pet-combo-list .selected-pet.active[data-v-02f8a004]{width:100%}}.pet-combo-list .pet-list[data-v-02f8a004]{transition:all .5s;width:60%;align-items:center;display:flex}@media (max-width:990px){.pet-combo-list .pet-list[data-v-02f8a004]{width:100%}}.pet-combo-list .pet-list.inactive[data-v-02f8a004]{width:100%}.fade-in-image-init[data-v-02f8a004]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-02f8a004]{animation:fadeIn-data-v-02f8a004 .5s;-webkit-animation:fadeIn-data-v-02f8a004 .5s;-moz-animation:fadeIn-data-v-02f8a004 .5s;-o-animation:fadeIn-data-v-02f8a004 .5s;-ms-animation:fadeIn-data-v-02f8a004 .5s}@keyframes fadeIn-data-v-02f8a004{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-02f8a004{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-02f8a004{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-02f8a004{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-02f8a004{0%{opacity:0}100%{opacity:1}}',map:void 0,media:void 0})}),(V(xt={name:"PreviewTools",components:{Vue:c,Heading:vt,Paragraph:ft,Icon:A,Modal:bt,Input:q,Button:T,TextArea:mt,Select:U},props:{
|
|
1296
|
+
base64:{type:Boolean,required:!1},typeLanguage:{type:String,required:!1,default:"br"},zoom:{type:Boolean,required:!1,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){var t;return V(t={mobileStopped:!0,pageNum:32,pagesToRender:[],pagesZoom:[],numberPositions:0,mobilePagePosition:0,loadedPages:3,loadedPagesZoom:1,isLoading:!1,lang:wt[this.typeLanguage],zoomActive:!1,zoomMultiPages:!1,zoomSettings:{dots:!1,focusOnSelect:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,touchThreshold:5},currentPage:0},"lang",wt[this.typeLanguage]),V(t,"marginMenu",0),t},mounted:function(){var t=this;this.pageNum=this.pages,this.initBookMobile(),this.initBookMobileZoom(),setTimeout((function(){t.isLoading=!0}),3e3);var e=document.getElementById("header-menu");e&&(t.marginMenu=e.offsetHeight+40),window.addEventListener("resize",(function(e){var a=document.getElementById("header-menu");a&&(t.marginMenu=a.offsetHeight+40)}))},updated:function(){var t=this;this.$nextTick((function(){document.getElementById("page-"+(t.loadedPages-1))&&(t.mobilePagePosition=document.getElementById("page-"+(t.loadedPages-1)).offsetLeft-50,document.getElementById("list-mobile").addEventListener("scroll",t.handleScroll))}))},methods:{changeZoom:function(t,e){this.currentPage=e,(2==this.zoomSettings.slidesToShow&&this.currentPage+1===this.loadedPagesZoom||1==this.zoomSettings.slidesToShow&&this.currentPage===this.loadedPagesZoom)&&this.getZoomList()},setFormatZoom:function(t){this.zoomSettings.slidesToShow=t,this.zoomSettings.slidesToScroll=t,this.currentPage=0},openZoom:function(){this.mobileStopped=!1,this.getZoomList(),this.zoomActive=!0},closeZoom:function(){this.zoomSettings.slidesToShow=1,this.zoomActive=!1},initBookMobile:function(){this.loadedPages=1;for(var t=1;t<this.pageNum;t++)if(t<5){var e={url:this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w=533&pw=0&noCache=true",isLoaded:!0};this.pagesToRender.push(e)}else{var a={url:this.apiUrl+"/api/builder/getplaceholder/"+this.product_id+"?page="+t+"&w=100&pw=0&noCache=true",isLoaded:!1};this.pagesToRender.push(a)}this.moreBooksMobile()},initBookMobileZoom:function(){this.loadedPages=1;for(var t=1;t<this.pageNum+1;t++)if(t<5){var e={url:this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w=533&pw=0&noCache=true",isLoaded:!0};this.pagesZoom.push(e)}else{var a={url:this.apiUrl+"/api/builder/getplaceholder/"+this.product_id+"?page="+t+"&w=100&pw=0&noCache=true",isLoaded:!1};this.pagesZoom.push(a)}},getZoomList:function(){for(var t=this,e=this,a=function(){var a=i;o=t.apiUrl+"/api/builder/getpreview/"+e.uuid+"?page="+i+"&w=533&v=0",_t.get(o,{responseType:"arraybuffer"}).then((function(t){var i={url:"data:image/png;base64,"+new Buffer.from(t.data,"binary").toString("base64"),isLoaded:!0};e.pagesZoom.splice(a-1,1,i)}))},i=e.loadedPagesZoom;i<=e.loadedPagesZoom+4&&i<=e.pageNum;i++){var o;a()}e.loadedPagesZoom=e.loadedPagesZoom+4},moreBooksMobile:function(){for(var t=this,e=this,a=function(){var a=i;o=t.apiUrl+"/api/builder/getpreview/"+e.uuid+"?page="+i+"&w=533&v=0",_t.get(o,{responseType:"arraybuffer"}).then((function(t){var i={url:"data:image/png;base64,"+new Buffer.from(t.data,"binary").toString("base64"),isLoaded:!0};e.pagesToRender.splice(a-1,1,i)}))},i=e.loadedPages;i<=e.loadedPages+4&&i<=e.pageNum;i++){var o;a()}e.loadedPages=e.loadedPages+4,document.getElementById("page-"+e.loadedPages-1)&&(e.mobilePagePosition=document.getElementById("page-"+e.loadedPages).offsetLeft-50)},handleScroll:function(t){null!==document.getElementById("list-mobile")&&document.getElementById("list-mobile").scrollLeft>=this.mobilePagePosition&&this.moreBooksMobile(),this.mobileStopped=!1},startedMethod:function(){this.$emit("start")},completedMethod:function(t){this.$emit("completed",t)}},computed:{}},"data-v-0c220ba8",!1,void 0,!1,x,void 0,void 0),Mt=require("axios"),Pt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-tool",class:[t.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"backdrop",on:{click:function(e){return t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"box-close",style:t.cssProps,on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icon-close size-lg"},[a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]),t._v(" "),a("span",{staticClass:"icon icon-edit size-lg"},[a("svg",{attrs:{fill:"#fff",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:"#fff"}})])])]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:"sm",color:"#68596E"}},[t._v(t._s(t.lang.editArea))])],1),t._v(" "),a("HR",{attrs:{height:"1px",color:t.preview_color}}),t._v(" "),t.extras?a("div",{staticClass:"itens-properties"},t._l(t.extras,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.showModal(e.code)}}},[a("div",["nome"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.dedication))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.moonerLabelSidebar))]):t._e(),t._v(" "),"number"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.shirtNumber))]):t._e(),t._v(" "),"nome"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value.name))]):t._e(),t._v(" "),"number"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:t.preview_color}})])],1)])})),0):t._e()],1)]),t._v(" "),t.modalName?a("Modal",{attrs:{heading:t.lang.kidName,headingColor:t.preview_color,paragraph:"Para deixar o livro mais legal use apenas o primeiro nome"},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"name",label:t.lang.kidName,placeholder:"",helper:t.lang.recommendName,value:t.current_character_name,disabled:!1},on:{update:t.updateName}}),t._v(" "),a("div",{staticClass:"name-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalDedication?a("Modal",{attrs:{heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.dedicationText,label:t.lang.messageDedication,placeholder:t.lang.dedcationPlaceholder,maxlength:400,counter:!0,disabled:!1},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},update:t.updateDedicationText}}),t._v(" "),a("div",{staticClass:"dedication-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalShirtNumber?a("Modal",{attrs:{heading:t.lang.editShirt},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"number",label:t.lang.shirtNumber,placeholder:"",helper:t.reccomendName,value:t.currentShirtNumber,disabled:!1},on:{change:t.updateShirtNumber}}),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalScript?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.availableLayouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==i?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:"https://doo8f8ypwd7it.cloudfront.net/brasilprevjunior/img/capitao@2x.890754be.png",alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLayout==i?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalBirthdate?a("Modal",{attrs:{heading:t.lang.editDateBirth},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[a("div",{staticClass:"day"},[a("Select",{attrs:{selected:t.selectedBirthDay,name:"day",label:"Dia",placeholder:"Dia",options:t.days},on:{change:t.onChangeDay}})],1),t._v(" "),a("div",{staticClass:"month"},[a("Select",{attrs:{selected:t.selectedBirthMonth,name:"month",label:"Mês",placeholder:"Mês",options:t.months},on:{change:t.onChangeMonth}})],1)]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalPet?a("Modal",{staticClass:"modal-pet",attrs:{heading:"Altere o bichinho da história",headingColor:t.preview_color,paragraph:"Esse bichinho acompanhará <span>"+t.searchExtraProperty("name").value+"</span> em toda a história."},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-do-mooner").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-do-mooner").value.name=e.target.value}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.selectPet))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentPet?"active":"inactive",t.petAnimation?"fade-in-image":"inactive-pet"]},[t.currentPet&&t.currentPet.assets&&t.currentPet.assets.asset?a("div",[t.currentPet.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPet.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listPet?a("div",{staticClass:"pet-list",class:t.currentPet?"active":"inactive"},t._l(t.listPet.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentPet===e?"active":"inactive",on:{click:function(a){return t.setPet(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])]),t._v(" "),t.searchExtraProperty("nome-do-mooner").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-do-mooner").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-do-mooner").value.newPet.assets.asset,alt:""}}),t._v(" "),a("br")]):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalMooner?a("Modal",{staticClass:"modal-pet",attrs:{heading:t.modalMoonerFirstOpen?t.isMobile?t.lang.moonerTitleMobile:t.lang.moonerTitle:t.isMobile?t.lang.moonerTitleFirstOpenMobile:t.lang.moonerTitleFirstOpen,headingColor:t.preview_color,paragraph:t.lang.moonerDescriptionOne+t.current_character_name+t.lang.moonerDescriptionTwo,haveClose:t.modalMoonerFirstOpen},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentMooner?"width: 100%;":""},[a("div",{},[a("Input",{attrs:{value:t.currentMoonerName,error:"",helper:"",label:t.lang.moonerLabel,name:"currentPetName",maxlength:"20"},on:{input:function(e){t.currentMoonerName=e.target.value}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",{staticClass:"clip-mooney"},[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listMooner?a("div",{staticClass:"pet-list",class:t.currentMooner?"active":"inactive"},t._l(t.listMooner.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentMooner===e?"active":"inactive",on:{click:function(a){return t.setMooner(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!t.currentMoonerName||!t.currentMooner,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.modalMoonerFirstOpen?t.lang.moonerCta:t.lang.moonerCtaFirstOpen)+"\n\t\t\t")]),t._v(" "),t.modalMoonerFirstOpen?a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")]):t._e()],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-47580c0e_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-47580c0e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-47580c0e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-47580c0e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-47580c0e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-47580c0e]{font-size:14px}}@media (min-width:1024px){[data-v-47580c0e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-47580c0e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-47580c0e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-47580c0e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-47580c0e]{font-size:1.56vw}}html[data-v-47580c0e]{box-sizing:border-box}*[data-v-47580c0e],[data-v-47580c0e]::after,[data-v-47580c0e]::before{box-sizing:border-box}[data-v-47580c0e] .modal-pet{background-color:#000}[data-v-47580c0e] .modal-pet .paragraph span{color:var(--preview-color);font-weight:700}.main-tool[data-v-47580c0e]{position:fixed;width:100%;height:100%}@media (max-width:990px){.main-tool[data-v-47580c0e]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-47580c0e]{content:"";width:100vw;height:100vh;background:rgba(104,89,110,0);backdrop-filter:blur(0);position:fixed;transition:all 1s ease;opacity:0;top:0}.main-tool.active[data-v-47580c0e]{z-index:5;max-width:100%}.main-tool.active .backdrop[data-v-47580c0e]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-47580c0e]{display:none}}.main-tool.inactive[data-v-47580c0e]{z-index:5;top:0;max-width:48px;right:0}.custom-properties[data-v-47580c0e]{right:0;text-align:left;top:0;max-width:16.1904761905rem;font-family:Roboto;width:100%;position:fixed;z-index:3;overflow:initial;height:100vh;transition:all 1s ease;transform:translateX(100%)}@media (max-width:990px){.custom-properties[data-v-47580c0e]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100vh;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-47580c0e]{opacity:0}.custom-properties.inactive .icon-edit[data-v-47580c0e]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-47580c0e]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-47580c0e]{opacity:1}.custom-properties.active .icon-edit[data-v-47580c0e]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-47580c0e]{background:#fff}.custom-properties .list-properties[data-v-47580c0e]{background-color:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);width:100%;background-color:#fff;position:relative;height:100vh;z-index:3;padding:1.1428571429rem 2.7777777778vw}@media (max-width:990px){.custom-properties .list-properties[data-v-47580c0e]{width:100%;background-color:#fff;position:relative;border-radius:0}}.custom-properties .title-custom-properties[data-v-47580c0e]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-47580c0e]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-47580c0e]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%}.custom-properties .itens-properties .item svg[data-v-47580c0e]{position:absolute;right:.380952381rem;top:1.0476190476rem;width:1.1428571429rem}@media (max-width:479px){.custom-properties .itens-properties .item svg[data-v-47580c0e]{width:2.2429906542rem}}.custom-properties .itens-properties .item[data-v-47580c0e]:last-child{border-bottom:0}.custom-properties .itens-properties .paragraph[data-v-47580c0e]{text-overflow:ellipsis;white-space:nowrap;max-width:85%;overflow:hidden}.custom-properties .itens-properties hr[data-v-47580c0e]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-47580c0e]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-47580c0e]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-47580c0e]{display:flex}.layout-option[data-v-47580c0e]{background:#fff;border-radius:.4761904762rem;border:2px solid transparent;margin-top:5px;margin-bottom:5px;cursor:pointer;position:relative;flex-basis:100%;-webkit-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);-moz-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);margin:1%;overflow:hidden}.layout-option .panel-title[data-v-47580c0e]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-47580c0e]{font-family:Roboto;color:#68596e;width:8.3333333333vw;justify-content:center;align-self:center;align-items:center;font-size:.6666666667rem;padding-left:.4761904762rem}.layout-option .panel-title .flag[data-v-47580c0e]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-47580c0e]{border-radius:5px;border:solid 2px #e9eaed;background-color:#fff;width:1.4285714286rem;height:1.4285714286rem;display:flex;justify-content:center;align-self:center;align-items:center}.layout-option .panel-title .flag .icon[data-v-47580c0e] svg{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon[data-v-47580c0e] svg path{fill:#e9eaed!important}.layout-option.active[data-v-47580c0e]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-47580c0e]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-47580c0e]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag[data-v-47580c0e] svg path{fill:#fff!important}.pet-view[data-v-47580c0e]{width:100%;display:flex}.pet-view .pet-label[data-v-47580c0e]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.pet-view .pet-label[data-v-47580c0e]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.pet-selectors[data-v-47580c0e]{width:100%}.pet-selectors p[data-v-47580c0e]{margin:0;font-size:.7619047619rem}.pet-selectors .input-text-group[data-v-47580c0e]{padding-bottom:0}.pet-list[data-v-47580c0e]{width:100%;display:flex}.pet-list div[data-v-47580c0e]{margin:.2380952381rem;cursor:pointer}.pet-list .inactive[data-v-47580c0e]{opacity:.3}.pet-list img[data-v-47580c0e]{width:100%}.color-list[data-v-47580c0e]{width:100%;display:flex}.color[data-v-47580c0e]{height:1.9047619048rem;width:1.9047619048rem;display:block;border-radius:100%;margin-left:.2857142857rem;margin-right:.2857142857rem;padding:.1428571429rem;border:.0952380952rem solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;cursor:pointer}.color.is-selected[data-v-47580c0e]{border-color:#01dfa1}.color .secondary-color[data-v-47580c0e]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-47580c0e]{width:100%;display:flex}.footer-pet .cancel[data-v-47580c0e]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.box-dates-columns[data-v-47580c0e]{display:flex}.box-dates-columns .day[data-v-47580c0e]{width:11.1111111111vw}.box-dates-columns .month[data-v-47580c0e]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-47580c0e]{width:2.4761904762rem;height:2.2857142857rem;top:.7619047619rem;background:var(--preview_color);box-shadow:4px 4px 16px rgba(175,162,186,.24);position:absolute;left:-2.2857142857rem;display:flex;justify-content:center;align-items:center;z-index:2;border-radius:50% 0 0 50%;cursor:pointer;transition:all .3s ease;animation-delay:.5s}@media (max-width:479px){.box-close[data-v-47580c0e]{display:none}}.box-close .icon[data-v-47580c0e]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s}@media (max-width:990px){[data-v-47580c0e] .mooner-footer button{width:100%!important;text-align:center}[data-v-47580c0e] .mooner-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-47580c0e] .name-footer button{width:100%!important;text-align:center}[data-v-47580c0e] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-47580c0e] .dedication-footer button{width:100%!important;text-align:center}[data-v-47580c0e] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.pet-combo-list[data-v-47580c0e]{display:flex;flex-wrap:wrap}@media (max-width:990px){.pet-combo-list[data-v-47580c0e]{flex-direction:column-reverse}}.pet-combo-list .selected-pet[data-v-47580c0e]{width:0%;transition:width .5s;max-height:9.5238095238rem}.pet-combo-list .selected-pet .clip-mooney[data-v-47580c0e]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney[data-v-47580c0e]{max-height:22.8037383178rem;overflow:hidden;display:flex}}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney img[data-v-47580c0e]{max-width:80%;margin:0 auto;margin-top:-.9523809524rem}}.pet-combo-list .selected-pet img[data-v-47580c0e]{margin-top:-.9523809524rem;opacity:0}.pet-combo-list .selected-pet.active[data-v-47580c0e]{width:40%}@media (max-width:990px){.pet-combo-list .selected-pet.active[data-v-47580c0e]{width:100%}}.pet-combo-list .pet-list[data-v-47580c0e]{transition:all .5s;width:60%;align-items:center;display:flex}@media (max-width:990px){.pet-combo-list .pet-list[data-v-47580c0e]{width:100%}}.pet-combo-list .pet-list.inactive[data-v-47580c0e]{width:100%}.fade-in-image-init[data-v-47580c0e]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-47580c0e]{animation:fadeIn-data-v-47580c0e .5s;-webkit-animation:fadeIn-data-v-47580c0e .5s;-moz-animation:fadeIn-data-v-47580c0e .5s;-o-animation:fadeIn-data-v-47580c0e .5s;-ms-animation:fadeIn-data-v-47580c0e .5s}@keyframes fadeIn-data-v-47580c0e{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-47580c0e{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-47580c0e{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-47580c0e{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-47580c0e{0%{opacity:0}100%{opacity:1}}',map:void 0,media:void 0})}),(V(xt={name:"PreviewTools",components:{Vue:c,Heading:vt,Paragraph:ft,Icon:A,Modal:bt,Input:D,Button:T,TextArea:mt,Select:U},props:{
|
|
1297
1297
|
/** Name of protagonist. `Diego` */
|
|
1298
1298
|
current_name:{type:String,required:!0},
|
|
1299
1299
|
/** Product id of Builder. `595` */
|
|
@@ -1309,7 +1309,7 @@ slug:{type:String,required:!0},
|
|
|
1309
1309
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1310
1310
|
uuid:{type:String,required:!0},
|
|
1311
1311
|
/** Preview external color. `#000` */
|
|
1312
|
-
preview_color:{type:String,default:"#16D3DB",true:!1},typeLanguage:{type:String,required:!1,default:"br"}},computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}},data:function(){for(var t=[],e=[],a=(new Date).getFullYear(),i=1;i<=31;i++)t.push({key:i,value:i});for(var o=0;o<16;o++)e.push({key:a-o,value:a-o});return e.push({key:"outro",value:"Outro"}),{lang:wt[this.typeLanguage],
|
|
1312
|
+
preview_color:{type:String,default:"#16D3DB",true:!1},typeLanguage:{type:String,required:!1,default:"br"},typeRead:{type:Boolean,required:!1,default:!1}},computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}},data:function(){for(var t=[],e=[],a=(new Date).getFullYear(),i=1;i<=31;i++)t.push({key:i,value:i});for(var o=0;o<16;o++)e.push({key:a-o,value:a-o});return e.push({key:"outro",value:"Outro"}),{lang:wt[this.typeLanguage],
|
|
1313
1313
|
// Sidebar
|
|
1314
1314
|
sidebarOpen:!1,have_shirt_number:!1,have_layout:!1,have_birth_date:!1,haveDedication:!1,
|
|
1315
1315
|
//default_value_name: "",
|
|
@@ -1325,25 +1325,29 @@ listMooner:[],moonerAnimation:!1,moonerInitAnimation:!1,currentMoonerName:null,c
|
|
|
1325
1325
|
// Pet
|
|
1326
1326
|
listPet:[],petAnimation:!1,petInitAnimation:!1,currentPetName:"",currentPet:null,currentPetColor:"",days:t,months:[{value:"Janeiro",key:1},{value:"Fevereiro",key:2},{value:"Março",key:3},{value:"Abril",key:4},{value:"Maio",key:5},{value:"Junho",key:6},{value:"Julho",key:7},{value:"Agosto",key:8},{value:"Setembro",key:9},{value:"Outubro",key:10},{value:"Novembro",key:11},{value:"Dezembro",key:12}],years:e,pages:[],counter:0,pageNum:36,isCover:0,currentPage:3,loadedPages:3,numberPositions:0,mobilePagePosition:0,isMobile:!1,isLoaded:!1,isPagesNumLoaded:!1,loadedMobile:!1,loadedDesktop:!1,mobileStopped:!0,isLoading:!0,custom_character:null,custom:null,availableLayouts:[],currentLayout:0,callingLayout:!1,callingDedication:!1,callingName:!1,currentShirtNumber:7,
|
|
1327
1327
|
// Aniversário
|
|
1328
|
-
selectedBirthDay:0,selectedBirthMonth:0,modalMoonerFirstOpen:!1,firstBookSelected:!1,type_id:""}}},"computed",{cssProps:function(){return{"--preview_color":this.preview_color}}}),V(xt,"mounted",(function(){var t=this;this.current_character_name=this.current_name,this.dedicationText=this.dedication_text?this.dedication_text:"",this.initMounted(),t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))})),V(xt,"methods",{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},toggleSidebar:function(){this.sidebarOpen=!this.sidebarOpen},modalIsOpen:function(){return!!(this.modalScript||this.modalName||this.modalDedication||this.modalShirtNumber||this.modalPet||this.modalMooner||this.modalBirthdate)},updateName:function(t){console.log(this.current_character_name),this.current_character_name=t.value,console.log(t)},updateDedicationText:function(t){this.dedicationText=t.value},updateShirtNumber:function(t){this.currentShirtNumber=t.value},onChangeDay:function(t){this.selectedBirthDay=t.value,this.validateDays({year:t.value})},onChangeMonth:function(t){console.log(t),this.selectedBirthMonth=t.key-1,this.validateDays({month:t.key-1})},updateHaveDedication:function(t){this.haveDedication=t},setMooner:function(t){var e=this,a=this;a.moonerAnimation=!1
|
|
1329
|
-
//self.currentMoonerName = selectedPet.name.toUpperCase()
|
|
1330
|
-
setTimeout((function(){a.moonerAnimation=!0,e.currentMooner=t,setTimeout((function(){a.moonerInitAnimation=!0}),"500")}),"500")},setPet:function(t){var e=this,a=this;a.petAnimation=!1,//self.currentMoonerName =
|
|
1328
|
+
selectedBirthDay:0,selectedBirthMonth:0,modalMoonerFirstOpen:!1,firstBookSelected:!1,type_id:""}}},"computed",{cssProps:function(){return{"--preview_color":this.preview_color}}}),V(xt,"mounted",(function(){var t=this;this.current_character_name=this.current_name,this.dedicationText=this.dedication_text?this.dedication_text:"",this.initMounted(),t.isMobile=t.detectSize(),t.uuid&&t.getCustomCharacter(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))})),V(xt,"methods",{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},toggleSidebar:function(){this.sidebarOpen=!this.sidebarOpen},modalIsOpen:function(){return!!(this.modalScript||this.modalName||this.modalDedication||this.modalShirtNumber||this.modalPet||this.modalMooner||this.modalBirthdate)},updateName:function(t){console.log(this.current_character_name),this.current_character_name=t.value,console.log(t)},updateDedicationText:function(t){this.dedicationText=t.value},updateShirtNumber:function(t){this.currentShirtNumber=t.value},onChangeDay:function(t){this.selectedBirthDay=t.value,this.validateDays({year:t.value})},onChangeMonth:function(t){console.log(t),this.selectedBirthMonth=t.key-1,this.validateDays({month:t.key-1})},updateHaveDedication:function(t){this.haveDedication=t},setMooner:function(t){var e=this,a=this;a.moonerAnimation=!1,a.currentMoonerName=t.name.toUpperCase(),setTimeout((function(){a.moonerAnimation=!0,e.currentMooner=t,setTimeout((function(){a.moonerInitAnimation=!0}),"500")}),"500")},setPet:function(t){var e=this,a=this;a.petAnimation=!1,//self.currentMoonerName =
|
|
1331
1329
|
setTimeout((function(){a.petAnimation=!0,e.currentPet=t,setTimeout((function(){a.petInitAnimation=!0}),"500")}),"500")},setColor:function(t){
|
|
1332
1330
|
//this.currentPetColor = selectedColor;
|
|
1333
1331
|
this.searchExtraProperty("pet").value.newPetColor=t},showModal:function(t){
|
|
1334
1332
|
//var modalName = Object.keys(key)[0];
|
|
1335
1333
|
// console.log(modalName);
|
|
1336
|
-
"nome"===t&&(this.modalName=!0),t.includes("dedicatoria")&&(this.modalDedication=!0),t.includes("nome-do-mooner")&&(this.modalMooner=!0),t.includes("pet")&&(this.modalPet=!0),t.includes("script")&&(this.modalScript=!0),t.includes("camisa")&&(this.modalShirtNumber=!0),t.includes("aniversario")&&(this.modalBirthdate=!0)},showModalName:function(){this.modalName=!0},showModalScript:function(){this.modalScript=!0},showModalDedication:function(){this.modalDedication=!0},showModalShirtNumber:function(){this.modalShirtNumber=!0},showModalBirthdate:function(){this.modalBirthdate=!0},showModalPet:function(){},searchExtraProperty:function(t){return Object.
|
|
1334
|
+
"nome"===t&&(this.modalName=!0),t.includes("dedicatoria")&&(this.modalDedication=!0),t.includes("nome-do-mooner")&&(this.modalMooner=!0),t.includes("pet")&&(this.modalPet=!0),t.includes("script")&&(this.modalScript=!0),t.includes("camisa")&&(this.modalShirtNumber=!0),t.includes("aniversario")&&(this.modalBirthdate=!0)},showModalName:function(){this.modalName=!0},showModalScript:function(){this.modalScript=!0},showModalDedication:function(){this.modalDedication=!0},showModalShirtNumber:function(){this.modalShirtNumber=!0},showModalBirthdate:function(){this.modalBirthdate=!0},showModalPet:function(){},searchExtraProperty:function(t){var e=null;return Object.entries(this.extras).forEach((function(a){a[1].code===t&&(e=a[1]);// if (self.extras[property].type.includes(propertyName)) {
|
|
1335
|
+
// returnProperty = self.extras.properties[property];
|
|
1336
|
+
// }
|
|
1337
|
+
//console.log(property + " - " + self.extras.properties[property]);
|
|
1338
|
+
})),e},searchCustomUserDataProperty:function(t){var e=null;return Object.entries(t).forEach((function(t){"nome-do-mooner"==t[0]&&(
|
|
1339
|
+
//console.log(property);
|
|
1340
|
+
e=t[1]);//if()
|
|
1337
1341
|
// if (self.extras[property].type.includes(propertyName)) {
|
|
1338
1342
|
// returnProperty = self.extras.properties[property];
|
|
1339
1343
|
// }
|
|
1340
1344
|
//console.log(property + " - " + self.extras.properties[property]);
|
|
1341
|
-
})),
|
|
1345
|
+
})),e},searchCategoryProperty:function(t,e){var a=null;return Object.keys(t).forEach((function(i){t[i].code.includes(e)&&(a=t[i]),console.log(i+" - "+t[i])})),a},getTreeList:function(){var t=this;return v(h().mark((function e(){var a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:// Todo Guto
|
|
1342
1346
|
return a=t,e.abrupt("return",Mt.get(t.lang.urlBuilder+"/api/characters/"+a.character_id+"/categories/assets/treelist?character_type_id="+a.type_id+"&product_id="+parseInt(a.product_id)+"&character_position_id="+parseInt(a.character_position_id)).then((function(t){
|
|
1343
1347
|
//console.log(response);
|
|
1344
1348
|
// self.listPet =
|
|
1345
1349
|
// response.data.character_categories_assets[0].categories[5];
|
|
1346
|
-
var e=null;t.data.character_categories_assets[0].categories.forEach((function(t){t.code.includes("mooner")&&(e=t,a.modalMooner=!0)})),a.extras.forEach((function(t){t.code.includes("nome-do-mooner")&&(a.listMooner=e),t.code.includes("pet")&&(a.listPet=e)}))})).catch((function(t){console.log(t)})));case 2:case"end":return e.stop()}}),e)})))()},closeModal:function(){this.modalScript=!1,this.modalName=!1,this.modalDedication=!1,this.modalShirtNumber=!1,this.modalPet=!1,this.modalMooner=!1,this.modalBirthdate=!1},setCurrentLayout:function(t){this.currentLayout=t,this.firstBookSelected=!0},initMounted:function(){var t=this;Mt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pageNum=e.data.product.pages,t.isPagesNumLoaded=!0,t.availableLayouts=e.data.product.layout,// Gender
|
|
1350
|
+
var e=null;t.data.character_categories_assets[0].categories.forEach((function(t){t.code.includes("mooner")&&(e=t,a.typeRead||(a.modalMooner=!0))})),a.extras.forEach((function(t){t.code.includes("nome-do-mooner")&&(a.listMooner=e),t.code.includes("pet")&&(a.listPet=e)}))})).catch((function(t){console.log(t)})));case 2:case"end":return e.stop()}}),e)})))()},closeModal:function(){this.modalScript=!1,this.modalName=!1,this.modalDedication=!1,this.modalShirtNumber=!1,this.modalPet=!1,this.modalMooner=!1,this.modalBirthdate=!1},setCurrentLayout:function(t){this.currentLayout=t,this.firstBookSelected=!0},initMounted:function(){var t=this;Mt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pageNum=e.data.product.pages,t.isPagesNumLoaded=!0,t.availableLayouts=e.data.product.layout,// Gender
|
|
1347
1351
|
t.gender&&(t.type_id=e.data.product.type.filter((function(e){return e.code===t.gender})));var a=e.data.product.properties;t.extras=[],//response.data.product.extra;
|
|
1348
1352
|
a.forEach((function(e){"nome"===e.property.code&&(e.property.value=t.current_name),"dedicatoria"===e.property.code&&(e.property.value=t.dedication_text),t.extras.push(e.property)})),t.type_id=t.type_id[0].id,t.getTreeList()})).catch((function(t){console.log(t)}))},
|
|
1349
1353
|
// changeDedication() {
|
|
@@ -1388,7 +1392,12 @@ t.extras.forEach((function(a){if(a.code.includes("nome-do-mooner")){var i={prope
|
|
|
1388
1392
|
t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},sendCustomCharacter:function(){var t=this;Mt.post(this.lang.urlBuilder+"/api/customs_characters",{custom_character:t.custom}).then((function(e){
|
|
1389
1393
|
//self.custom = JSON.parse(response.data.custom.customCharacter.data);
|
|
1390
1394
|
//alert("salvou catiolo");
|
|
1391
|
-
t.changeUuid(e.data.custom.uuid)})).catch((function(t){console.log(t)}))},
|
|
1395
|
+
t.changeUuid(e.data.custom.uuid)})).catch((function(t){console.log(t)}))},getCustomCharacter:function(){var t=this;Mt.get(this.lang.urlBuilder+"/api/customs_characters/"+t.uuid).then((function(e){
|
|
1396
|
+
//self.custom = JSON.parse(response.data.custom.customCharacter.data);
|
|
1397
|
+
//alert("salvou catiolo");
|
|
1398
|
+
//self.changeUuid(response.data.custom.uuid);
|
|
1399
|
+
//console.log(response.data.custom.user_data.property);
|
|
1400
|
+
var a=t.searchCustomUserDataProperty(e.data.custom.user_data.properties);t.currentMoonerName=a.value,t.searchExtraProperty("nome-do-mooner").value=t.currentMoonerName})).catch((function(t){console.log(t)}))},changeUuid:function(t){this.$emit("changeUuid",t)},isLoadingMethod:function(t){this.$emit("isLoadingMethod",t)},validateDays:function(t){var e,a=t.month?t.month:this.selectedBirthMonth,i=t.year?t.year:this.selectedBirthYear;a||(a=13);var o=[];e=1===a||3===a||5===a||7===a||8===a||10===a||12===a||13===a?31:4===a||6===a||9===a||11===a?30:i%4==0&&i%100>0||i%400==0?29:28,a||i||(e=31);for(var r=1;r<=e;r++)o.push({key:r,value:r});this.days=o}}),xt),"data-v-47580c0e",!1,void 0,!1,x,void 0,void 0),St=(require("axios"),b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded&&!t.isMobile?a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage,apiUrl:t.apiUrl}}):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage,apiUrl:t.apiUrl}}):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-7c5f1153_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}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewFull",components:{Preview:kt,PreviewMobile:Ct},props:{
|
|
1392
1401
|
/** Name of protagonist. `Diego` */
|
|
1393
1402
|
current_name:{type:String,required:!0},pages:{type:String,required:!0},age:{type:String,required:!0},
|
|
1394
1403
|
/** Product id of Builder. `595` */
|
|
@@ -1411,7 +1420,7 @@ have_layout:{type:Boolean,required:!1,default:!1},
|
|
|
1411
1420
|
have_birth_date:{type:Boolean,required:!1,default:!1},
|
|
1412
1421
|
/** Show Pet. */
|
|
1413
1422
|
have_pet:{type:Boolean,required:!1,default:!1},typeLanguage:{type:String,required:!1,default:"br"},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){return{isLoaded:!0,isMobile:!1,uuid:"ddh5e5fb1b09b88d",pages:32,age:6,character_id:57,product_id:595}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))},methods:{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},isLoadingMethod:function(t){this.isLoaded=t},changeUuid:function(t){this.uuid=t,//.uuid
|
|
1414
|
-
this.isLoaded=!0}}},void 0,!1,void 0,!1,x,void 0,void 0)),Lt=(require("axios"),b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded&&!t.isMobile?a("div",{staticClass:"preview-desktop-area"},[a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("div",{staticClass:"preview-mobile-area"},[a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[t.have_tools?a("PreviewTools",{attrs:{current_name:t.current_name,uuid:t.uuid,slug:t.slug,character_id:t.character_id,dedication_text:t.dedication_text,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,preview_color:t.preview_color,character_position_id:t.character_position_id},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-
|
|
1423
|
+
this.isLoaded=!0}}},void 0,!1,void 0,!1,x,void 0,void 0)),Lt=(require("axios"),b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded&&!t.isMobile?a("div",{staticClass:"preview-desktop-area"},[a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("div",{staticClass:"preview-mobile-area"},[a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[t.have_tools?a("PreviewTools",{attrs:{current_name:t.current_name,uuid:t.uuid,slug:t.slug,character_id:t.character_id,dedication_text:t.dedication_text,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,preview_color:t.preview_color,character_position_id:t.character_position_id,typeRead:t.typeRead},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-297d93ce_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}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.invisible{opacity:0}.preview-full{height:100vh}.preview-mobile-area{width:100%;position:relative}.preview-desktop-area{position:relative;z-index:4}@media (max-width:990px){.preview-mobile-tools{position:relative;z-index:20}}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewWithTools",components:{Preview:kt,PreviewMobile:Ct,PreviewTools:Pt},props:{
|
|
1415
1424
|
/** Name of protagonist. `Diego` */
|
|
1416
1425
|
current_name:{type:String,required:!0},dedication_text:{type:String,required:!1},pages:{type:Number,required:!0},age:{type:Number,required:!0},
|
|
1417
1426
|
/** Product id of Builder. `595` */
|
|
@@ -1429,7 +1438,7 @@ uuid:{type:String,required:!0},
|
|
|
1429
1438
|
/** Show edit name. */
|
|
1430
1439
|
have_tools:{type:Boolean,required:!0,default:!0},
|
|
1431
1440
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1432
|
-
preview_color:{type:String,default:"#16D3DB",required:!0},
|
|
1441
|
+
preview_color:{type:String,default:"#16D3DB",required:!0},typeRead:{type:Boolean,required:!1,default:!1},
|
|
1433
1442
|
/** Show edit name. */
|
|
1434
1443
|
// have_name: {
|
|
1435
1444
|
// type: Boolean,
|
|
@@ -1461,7 +1470,11 @@ preview_color:{type:String,default:"#16D3DB",required:!0},
|
|
|
1461
1470
|
// default: false,
|
|
1462
1471
|
// },
|
|
1463
1472
|
typeLanguage:{type:String,required:!1,default:"br"}},data:function(){return{isLoaded:!0,isMobile:!1}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))},methods:{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},isLoadingMethod:function(t){this.isLoaded=t},changeUuid:function(t){this.uuid=t,//.uuid
|
|
1464
|
-
this.isLoaded=!0
|
|
1473
|
+
this.isLoaded=!0,this.completed(t)},completed:function(t){
|
|
1474
|
+
/**
|
|
1475
|
+
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1476
|
+
*/
|
|
1477
|
+
this.$emit("completed",t)}}},void 0,!1,void 0,!1,x,void 0,void 0)),Nt=b({render:function(){var t=this.$createElement;return(this._self._c||t)("hr",this._g(this._b({staticClass:"hr-group",class:"kind-"+this.kind,style:{height:this.height,backgroundColor:this.backgroundColor}},"hr",this.$attrs,!1),this.$listeners))},staticRenderFns:[]},(function(t){t&&t("data-v-181cb712_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-181cb712]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-181cb712]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-181cb712]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-181cb712]{font-size:14px}}@media (min-width:1024px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-181cb712]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-181cb712]{font-size:1.56vw}}html[data-v-181cb712]{box-sizing:border-box}*[data-v-181cb712],[data-v-181cb712]::after,[data-v-181cb712]::before{box-sizing:border-box}.hr-group[data-v-181cb712]{width:100%;margin:0;border:0;background-color:#dfdae4}',map:void 0,media:void 0})}),{name:"HR",props:{
|
|
1465
1478
|
/**
|
|
1466
1479
|
* Tipo do HR<br>
|
|
1467
1480
|
* Values: `primary` `variable`
|
|
@@ -1483,7 +1496,7 @@ color:{type:String,default:"#DFDAE4"}},data:function(){return{colorDefault:"#DFD
|
|
|
1483
1496
|
**/
|
|
1484
1497
|
visible:{type:Boolean,default:!0,required:!0},title:{type:String,default:"default",required:!0},description:{type:String,default:"default",required:!0},type:{type:String,default:"success",required:!0}},watch:{visible:{
|
|
1485
1498
|
// the callback will be called immediately after the start of the observation
|
|
1486
|
-
immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.displayVisible=!0}),300)}}},data:function(){return{displayVisible:!1}},methods:{closeFeedBack:function(){this.$emit("closeFeedBack")}}},"data-v-ae47cb8c",!1,void 0,!1,x,void 0,void 0),At=Object.freeze({__proto__:null,Avatar:N,Button:T,Card:B,CardLink:F,CardOption:R,Checkbox:j,Icon:A,Input:
|
|
1499
|
+
immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.displayVisible=!0}),300)}}},data:function(){return{displayVisible:!1}},methods:{closeFeedBack:function(){this.$emit("closeFeedBack")}}},"data-v-ae47cb8c",!1,void 0,!1,x,void 0,void 0),At=Object.freeze({__proto__:null,Avatar:N,Button:T,Card:B,CardLink:F,CardOption:R,Checkbox:j,Icon:A,Input:D,InputEdit:q,InputName:O,InputEmail:$,InputAddressNumber:H,InputAddress:Y,InputAddressBilling:G,InputCardNumber:J,Options:W,Radius:X,Select:U,Birthday:ot,BirthdayMobile:pt,TextArea:mt,GenderSelect:ut,Tabs:ht,Tooltip:gt,Caption:_,Heading:vt,Paragraph:ft,Modal:bt,Preview:kt,PreviewMobile:Ct,PreviewTools:Pt,PreviewFull:St,PreviewWithTools:Lt,HR:Nt,Spinner:Et,FeedBack:It}),Tt=function(t){Tt.installed||(Tt.installed=!0,Object.entries(At).forEach((function(e){var a=m(e,2),i=a[0],o=a[1];t.component(i,o)})))},Bt={install:Tt},Ft=null;"undefined"!=typeof window?Ft=window.Vue:"undefined"!=typeof global&&(Ft=global.Vue),Ft&&Ft.use(Bt);// Default export is library as a whole, registered via Vue.use()
|
|
1487
1500
|
// import MyButton from './components/MyButton/MyButton.vue';
|
|
1488
1501
|
// import Heading from './components/Heading/Heading.vue';
|
|
1489
1502
|
// // Declare install function executed by Vue.use()
|
|
@@ -1509,4 +1522,4 @@ immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.d
|
|
|
1509
1522
|
// }
|
|
1510
1523
|
// // To allow use as module (npm/webpack/etc.) export component
|
|
1511
1524
|
// export default MyButton;
|
|
1512
|
-
export default Bt;export{N as Avatar,ot as Birthday,pt as BirthdayMobile,T as Button,_ as Caption,B as Card,F as CardLink,R as CardOption,j as Checkbox,It as FeedBack,ut as GenderSelect,Nt as HR,vt as Heading,A as Icon,
|
|
1525
|
+
export default Bt;export{N as Avatar,ot as Birthday,pt as BirthdayMobile,T as Button,_ as Caption,B as Card,F as CardLink,R as CardOption,j as Checkbox,It as FeedBack,ut as GenderSelect,Nt as HR,vt as Heading,A as Icon,D as Input,Y as InputAddress,G as InputAddressBilling,H as InputAddressNumber,J as InputCardNumber,q as InputEdit,$ as InputEmail,O as InputName,bt as Modal,W as Options,ft as Paragraph,kt as Preview,St as PreviewFull,Ct as PreviewMobile,Pt as PreviewTools,Lt as PreviewWithTools,X as Radius,U as Select,Et as Spinner,ht as Tabs,mt as TextArea,gt as Tooltip};
|