@tiddh/brave-vue 1.93.2 → 1.93.3

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.
@@ -1228,7 +1228,36 @@ size:{type:String,default:"md"}},data:function(){return{}},computed:{colorsVar:f
1228
1228
  /**
1229
1229
  * Evento disparado sempre que o valor for alterado.<br>
1230
1230
  * Retorna um objeto com target (name do campo), key ativo e value ativo.
1231
- */this.$emit("change",a)}}},"data-v-8bfa5ef8",!1,void 0,!1,x,void 0,void 0),gt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.visible?a("div",t._g(t._b({staticClass:"tooltip-group"},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"tooltip-arrow",class:t.arrowDirection}),t._v(" "),a("div",{staticClass:"tooltip-content"},[t.icon?a("div",{staticClass:"tooltip-icon"},[a("Icon",{attrs:{name:t.icon,size:"md"}})],1):t._e(),t._v(" "),a("div",{staticClass:"tooltip-text-content"},[a("div",{staticClass:"tooltip-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t._t("default")],2)])]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-d55eea38_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-d55eea38]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-d55eea38]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-d55eea38]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-d55eea38]{font-size:14px}}@media (min-width:1024px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-d55eea38]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-d55eea38]{font-size:1.56vw}}html[data-v-d55eea38]{box-sizing:border-box}*[data-v-d55eea38],[data-v-d55eea38]::after,[data-v-d55eea38]::before{box-sizing:border-box}.tooltip-group[data-v-d55eea38]{transition:all .3s;display:flex;flex-direction:row;position:relative;padding:.7619047619rem;border-radius:8px;background:#4965bc;max-width:15.4761904762rem}@media (max-width:479px){.tooltip-group[data-v-d55eea38]{padding:.7476635514rem;max-width:22.4299065421rem}}.tooltip-group .tooltip-arrow[data-v-d55eea38]{position:absolute;width:0;height:0;border:.7619047619rem solid #4965bc;border-top:.7619047619rem solid;border-right:.7619047619rem solid;color:#4965bc}.tooltip-group .tooltip-arrow.left[data-v-d55eea38]{left:-.380952381rem;top:0;bottom:0;margin:auto 0;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.right[data-v-d55eea38]{right:-.380952381rem;top:0;bottom:0;margin:auto 0;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.top-start[data-v-d55eea38]{top:-.380952381rem;left:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.top-center[data-v-d55eea38]{top:-.380952381rem;left:50%;transform:rotate(135deg) translate(50%,50%)}.tooltip-group .tooltip-arrow.top-end[data-v-d55eea38]{top:-.380952381rem;right:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.bottom-start[data-v-d55eea38]{bottom:-.380952381rem;left:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.bottom-center[data-v-d55eea38]{bottom:-.380952381rem;left:50%;transform:rotate(135deg) translate(50%,50%)}.tooltip-group .tooltip-arrow.bottom-end[data-v-d55eea38]{bottom:-.380952381rem;right:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-content[data-v-d55eea38]{display:flex;position:relative;z-index:20}.tooltip-group .tooltip-content .tooltip-icon[data-v-d55eea38]{align-items:center;justify-content:center;display:flex;margin-right:.7619047619rem}@media (max-width:479px){.tooltip-group .tooltip-content .tooltip-icon[data-v-d55eea38]{margin-right:.7476635514rem}}.tooltip-group .tooltip-content .tooltip-text-content[data-v-d55eea38]{display:flex;flex-direction:column}.tooltip-group .tooltip-content .tooltip-text-content .tooltip-title[data-v-d55eea38]{font-family:Nunito,sans-serif;color:#fff;font-weight:700;line-height:1.5;font-size:.6666666667rem;text-align:left}@media (max-width:479px){.tooltip-group .tooltip-content .tooltip-text-content .tooltip-title[data-v-d55eea38]{font-size:1.1214953271rem}}.tooltip-group .tooltip-content .tooltip-text-content .tooltip-text[data-v-d55eea38]{font-family:Nunito,sans-serif;color:#fff;line-height:1.5;font-size:.6666666667rem;text-align:left}@media (max-width:479px){.tooltip-group .tooltip-content .tooltip-text-content .tooltip-text[data-v-d55eea38]{font-size:1.1214953271rem}}',map:void 0,media:void 0})}),{name:"Tooltip",props:{
1231
+ */this.$emit("change",a)}}},"data-v-8bfa5ef8",!1,void 0,!1,x,void 0,void 0),gt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"tabs-group",style:t.colorsVar},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"tabs",attrs:{name:t.name}},t._l(t.options,(function(e,i){return a("button",{key:i+1,staticClass:"tab",class:["size-"+t.size,e.key===t.selected?"is-selected":null],on:{click:function(a){return t.onChange(e.key,e.value)}}},[t._v("\n\t\t\t"+t._s(e.value)+"\n\t\t")])})),0)])},staticRenderFns:[]},(function(t){t&&t("data-v-27321780_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-27321780]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-27321780]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-27321780]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-27321780]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-27321780]{font-size:14px}}@media (min-width:1024px){[data-v-27321780]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-27321780]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-27321780]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-27321780]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-27321780]{font-size:1.56vw}}html[data-v-27321780]{box-sizing:border-box}*[data-v-27321780],[data-v-27321780]::after,[data-v-27321780]::before{box-sizing:border-box}.tabs-group[data-v-27321780]{transition:all .3s;display:flex;flex-direction:column;width:100%}.tabs-group .tabs[data-v-27321780]{display:flex}.tabs-group .tabs .tab[data-v-27321780]{flex:1;background:#fff;border:none;font-family:Roboto,sans-serif;color:var(--text)}.tabs-group .tabs .tab.size-md[data-v-27321780]{height:3.0476190476rem;padding:1.1428571429rem 0;font-size:.7619047619rem;line-height:0}@media (max-width:479px){.tabs-group .tabs .tab.size-md[data-v-27321780]{padding:1.4953271028rem 0;height:5.9813084112rem}}@media (max-width:479px){.tabs-group .tabs .tab.size-md[data-v-27321780]{font-size:1.308411215rem}}.tabs-group .tabs .tab.size-sm[data-v-27321780]{height:2.1904761905rem;padding:.7619047619rem 0;font-size:.6666666667rem;line-height:0}@media (max-width:479px){.tabs-group .tabs .tab.size-sm[data-v-27321780]{padding:1.4953271028rem 0;height:4.2990654206rem}}@media (max-width:479px){.tabs-group .tabs .tab.size-sm[data-v-27321780]{font-size:1.308411215rem}}.tabs-group .tabs .tab[data-v-27321780]:not(:first-child){margin-left:-2px}.tabs-group .tabs .tab[data-v-27321780]:not(:last-child){border-right-color:transparent}.tabs-group .tabs .tab[data-v-27321780]:first-child{border-top-left-radius:.380952381rem;border-bottom-left-radius:.380952381rem}.tabs-group .tabs .tab[data-v-27321780]:last-child{border-top-right-radius:.380952381rem;border-bottom-right-radius:.380952381rem}.tabs-group .tabs .tab[data-v-27321780]:hover{outline:0;z-index:5;cursor:pointer;color:var(--color-active)}.tabs-group .tabs .tab.is-selected[data-v-27321780],.tabs-group .tabs .tab[data-v-27321780]:active,.tabs-group .tabs .tab[data-v-27321780]:focus{outline:0;z-index:10;position:relative;color:var(--color-active)}.tabs-group .tabs .tab.is-selected[data-v-27321780]:after,.tabs-group .tabs .tab[data-v-27321780]:active:after,.tabs-group .tabs .tab[data-v-27321780]:focus:after{content:"";position:absolute;bottom:0;height:4px;background-color:var(--color-active);width:100%;left:0;border-radius:8px 8px 0 0}',map:void 0,media:void 0})}),{name:"TabsLine",props:{
1232
+ /**
1233
+ * Nome do campo, utilizado no callback do evento<br>
1234
+ * Example: `Name`
1235
+ * */
1236
+ name:{type:String},
1237
+ /**
1238
+ * Objeto com até 4 opções<br>
1239
+ * Example: `{ value1: {key: 'v1', value: 'value 1'}, value2: {key: 'v2', value: 'value 2'} }`
1240
+ * */
1241
+ options:{type:Object},
1242
+ /**
1243
+ * Key do valor selecionado<br>
1244
+ * Example: `v1`
1245
+ * */
1246
+ selected:{type:String},
1247
+ /**
1248
+ * Objeto com as cores do Tab<br>
1249
+ * Example: `{ "text": "#AFA2BA", "textActive": "#FFFFFF", "color": "#FFFFFF", "colorHover": "#F8F6FF", "colorActive": "#923FDA" }`
1250
+ * */
1251
+ colors:{type:Object},
1252
+ /**
1253
+ * Tamanho do botão. Não interfere em botões `primary`<br>
1254
+ * Values: `md` `sm`
1255
+ */
1256
+ size:{type:String,default:"md"}},data:function(){return{}},computed:{colorsVar:function(){return{"--color-active":this.colors.colorActive,"--color-hover":this.colors.colorHover,"--color":this.colors.color,"--text-active":this.colors.textActive,"--text":this.colors.text}}},methods:{onChange:function(t,e){var a={target:this.name,key:t,value:e};
1257
+ /**
1258
+ * Evento disparado sempre que o valor for alterado.<br>
1259
+ * Retorna um objeto com target (name do campo), key ativo e value ativo.
1260
+ */this.$emit("change",a)}}},"data-v-27321780",!1,void 0,!1,x,void 0,void 0),vt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.visible?a("div",t._g(t._b({staticClass:"tooltip-group"},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"tooltip-arrow",class:t.arrowDirection}),t._v(" "),a("div",{staticClass:"tooltip-content"},[t.icon?a("div",{staticClass:"tooltip-icon"},[a("Icon",{attrs:{name:t.icon,size:"md"}})],1):t._e(),t._v(" "),a("div",{staticClass:"tooltip-text-content"},[a("div",{staticClass:"tooltip-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t._t("default")],2)])]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-d55eea38_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-d55eea38]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-d55eea38]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-d55eea38]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-d55eea38]{font-size:14px}}@media (min-width:1024px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-d55eea38]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-d55eea38]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-d55eea38]{font-size:1.56vw}}html[data-v-d55eea38]{box-sizing:border-box}*[data-v-d55eea38],[data-v-d55eea38]::after,[data-v-d55eea38]::before{box-sizing:border-box}.tooltip-group[data-v-d55eea38]{transition:all .3s;display:flex;flex-direction:row;position:relative;padding:.7619047619rem;border-radius:8px;background:#4965bc;max-width:15.4761904762rem}@media (max-width:479px){.tooltip-group[data-v-d55eea38]{padding:.7476635514rem;max-width:22.4299065421rem}}.tooltip-group .tooltip-arrow[data-v-d55eea38]{position:absolute;width:0;height:0;border:.7619047619rem solid #4965bc;border-top:.7619047619rem solid;border-right:.7619047619rem solid;color:#4965bc}.tooltip-group .tooltip-arrow.left[data-v-d55eea38]{left:-.380952381rem;top:0;bottom:0;margin:auto 0;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.right[data-v-d55eea38]{right:-.380952381rem;top:0;bottom:0;margin:auto 0;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.top-start[data-v-d55eea38]{top:-.380952381rem;left:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.top-center[data-v-d55eea38]{top:-.380952381rem;left:50%;transform:rotate(135deg) translate(50%,50%)}.tooltip-group .tooltip-arrow.top-end[data-v-d55eea38]{top:-.380952381rem;right:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.bottom-start[data-v-d55eea38]{bottom:-.380952381rem;left:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-arrow.bottom-center[data-v-d55eea38]{bottom:-.380952381rem;left:50%;transform:rotate(135deg) translate(50%,50%)}.tooltip-group .tooltip-arrow.bottom-end[data-v-d55eea38]{bottom:-.380952381rem;right:1.1428571429rem;transform:rotate(135deg)}.tooltip-group .tooltip-content[data-v-d55eea38]{display:flex;position:relative;z-index:20}.tooltip-group .tooltip-content .tooltip-icon[data-v-d55eea38]{align-items:center;justify-content:center;display:flex;margin-right:.7619047619rem}@media (max-width:479px){.tooltip-group .tooltip-content .tooltip-icon[data-v-d55eea38]{margin-right:.7476635514rem}}.tooltip-group .tooltip-content .tooltip-text-content[data-v-d55eea38]{display:flex;flex-direction:column}.tooltip-group .tooltip-content .tooltip-text-content .tooltip-title[data-v-d55eea38]{font-family:Nunito,sans-serif;color:#fff;font-weight:700;line-height:1.5;font-size:.6666666667rem;text-align:left}@media (max-width:479px){.tooltip-group .tooltip-content .tooltip-text-content .tooltip-title[data-v-d55eea38]{font-size:1.1214953271rem}}.tooltip-group .tooltip-content .tooltip-text-content .tooltip-text[data-v-d55eea38]{font-family:Nunito,sans-serif;color:#fff;line-height:1.5;font-size:.6666666667rem;text-align:left}@media (max-width:479px){.tooltip-group .tooltip-content .tooltip-text-content .tooltip-text[data-v-d55eea38]{font-size:1.1214953271rem}}',map:void 0,media:void 0})}),{name:"Tooltip",props:{
1232
1261
  /**
1233
1262
  * Se tooltip está visível<br>
1234
1263
  * Value: `true` `false`
@@ -1243,7 +1272,7 @@ arrowDirection:{type:String,default:"bottom-start"},
1243
1272
  * Ícone a ser exibido<br>
1244
1273
  * Example: `calendar`
1245
1274
  **/
1246
- icon:{type:String}},data:function(){return{}}},"data-v-d55eea38",!1,void 0,!1,x,void 0,void 0),vt=b({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.kind,t._g(t._b({tag:"component",class:["heading","size-"+t.size],style:[{color:t.color}]},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-2382c96c_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-2382c96c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2382c96c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2382c96c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2382c96c]{font-size:14px}}@media (min-width:1024px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2382c96c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2382c96c]{font-size:1.56vw}}html[data-v-2382c96c]{box-sizing:border-box}*[data-v-2382c96c],[data-v-2382c96c]::after,[data-v-2382c96c]::before{box-sizing:border-box}.heading[data-v-2382c96c]{margin:0;font-family:Nunito,sans-serif;font-weight:900;line-height:1.5}.heading.size-lg[data-v-2382c96c]{font-size:2.6666666667rem}@media (max-width:479px){.heading.size-lg[data-v-2382c96c]{font-size:2.2429906542rem}}.heading.size-md[data-v-2382c96c]{font-size:1.9047619048rem}@media (max-width:479px){.heading.size-md[data-v-2382c96c]{font-size:2.2429906542rem}}.heading.size-sm[data-v-2382c96c]{font-size:1.1428571429rem}@media (max-width:479px){.heading.size-sm[data-v-2382c96c]{font-size:2.2429906542rem}}.heading.size-xs[data-v-2382c96c]{font-size:.8571428571rem}@media (max-width:479px){.heading.size-xs[data-v-2382c96c]{font-size:1.6822429907rem}}.heading.size-xxs[data-v-2382c96c]{font-size:.6666666667rem;font-weight:700}@media (max-width:479px){.heading.size-xxs[data-v-2382c96c]{font-size:1.308411215rem}}',map:void 0,media:void 0})}),{name:"Heading",props:{
1275
+ icon:{type:String}},data:function(){return{}}},"data-v-d55eea38",!1,void 0,!1,x,void 0,void 0),ft=b({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.kind,t._g(t._b({tag:"component",class:["heading","size-"+t.size],style:[{color:t.color}]},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-2382c96c_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-2382c96c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2382c96c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2382c96c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2382c96c]{font-size:14px}}@media (min-width:1024px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2382c96c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2382c96c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2382c96c]{font-size:1.56vw}}html[data-v-2382c96c]{box-sizing:border-box}*[data-v-2382c96c],[data-v-2382c96c]::after,[data-v-2382c96c]::before{box-sizing:border-box}.heading[data-v-2382c96c]{margin:0;font-family:Nunito,sans-serif;font-weight:900;line-height:1.5}.heading.size-lg[data-v-2382c96c]{font-size:2.6666666667rem}@media (max-width:479px){.heading.size-lg[data-v-2382c96c]{font-size:2.2429906542rem}}.heading.size-md[data-v-2382c96c]{font-size:1.9047619048rem}@media (max-width:479px){.heading.size-md[data-v-2382c96c]{font-size:2.2429906542rem}}.heading.size-sm[data-v-2382c96c]{font-size:1.1428571429rem}@media (max-width:479px){.heading.size-sm[data-v-2382c96c]{font-size:2.2429906542rem}}.heading.size-xs[data-v-2382c96c]{font-size:.8571428571rem}@media (max-width:479px){.heading.size-xs[data-v-2382c96c]{font-size:1.6822429907rem}}.heading.size-xxs[data-v-2382c96c]{font-size:.6666666667rem;font-weight:700}@media (max-width:479px){.heading.size-xxs[data-v-2382c96c]{font-size:1.308411215rem}}',map:void 0,media:void 0})}),{name:"Heading",props:{
1247
1276
  /**
1248
1277
  * Tipo de elemento.<br>
1249
1278
  * Values: `h1` `h2` `h3` `h4` `h5`
@@ -1263,7 +1292,7 @@ value:{type:String},
1263
1292
  * HEX de cor<br>
1264
1293
  * Example: `#68596E`
1265
1294
  **/
1266
- color:{type:String,default:"#68596E"}},data:function(){return{}}},"data-v-2382c96c",!1,void 0,!1,x,void 0,void 0),ft=b({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("p",t._g(t._b({class:["paragraph","size-"+t.size,"type-"+t.type],style:[{color:t.color}]},"p",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-07a7ccea_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-07a7ccea]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-07a7ccea]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-07a7ccea]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-07a7ccea]{font-size:14px}}@media (min-width:1024px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-07a7ccea]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-07a7ccea]{font-size:1.56vw}}html[data-v-07a7ccea]{box-sizing:border-box}*[data-v-07a7ccea],[data-v-07a7ccea]::after,[data-v-07a7ccea]::before{box-sizing:border-box}.paragraph[data-v-07a7ccea]{margin:0;font-family:Roboto,sans-serif;font-weight:400;line-height:1.5}.paragraph.size-lg[data-v-07a7ccea]{font-size:.7619047619rem}@media (max-width:479px){.paragraph.size-lg[data-v-07a7ccea]{font-size:1.4953271028rem}}.paragraph.size-sm[data-v-07a7ccea]{font-size:.6666666667rem}@media (max-width:479px){.paragraph.size-sm[data-v-07a7ccea]{font-size:1.308411215rem}}.paragraph.size-xs[data-v-07a7ccea]{font-size:.5714285714rem}@media (max-width:479px){.paragraph.size-xs[data-v-07a7ccea]{font-size:1.1214953271rem}}.paragraph.type-bold[data-v-07a7ccea]{font-weight:700}',map:void 0,media:void 0})}),{name:"Paragraph",props:{
1295
+ color:{type:String,default:"#68596E"}},data:function(){return{}}},"data-v-2382c96c",!1,void 0,!1,x,void 0,void 0),bt=b({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("p",t._g(t._b({class:["paragraph","size-"+t.size,"type-"+t.type],style:[{color:t.color}]},"p",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-07a7ccea_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-07a7ccea]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-07a7ccea]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-07a7ccea]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-07a7ccea]{font-size:14px}}@media (min-width:1024px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-07a7ccea]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-07a7ccea]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-07a7ccea]{font-size:1.56vw}}html[data-v-07a7ccea]{box-sizing:border-box}*[data-v-07a7ccea],[data-v-07a7ccea]::after,[data-v-07a7ccea]::before{box-sizing:border-box}.paragraph[data-v-07a7ccea]{margin:0;font-family:Roboto,sans-serif;font-weight:400;line-height:1.5}.paragraph.size-lg[data-v-07a7ccea]{font-size:.7619047619rem}@media (max-width:479px){.paragraph.size-lg[data-v-07a7ccea]{font-size:1.4953271028rem}}.paragraph.size-sm[data-v-07a7ccea]{font-size:.6666666667rem}@media (max-width:479px){.paragraph.size-sm[data-v-07a7ccea]{font-size:1.308411215rem}}.paragraph.size-xs[data-v-07a7ccea]{font-size:.5714285714rem}@media (max-width:479px){.paragraph.size-xs[data-v-07a7ccea]{font-size:1.1214953271rem}}.paragraph.type-bold[data-v-07a7ccea]{font-weight:700}',map:void 0,media:void 0})}),{name:"Paragraph",props:{
1267
1296
  /**
1268
1297
  * Tamanho do texto.<br>
1269
1298
  * Values: `lg` `sm`
@@ -1283,7 +1312,7 @@ color:{type:String,default:"#68596E"},
1283
1312
  * Type of font<br>
1284
1313
  * Example: `Regular | Bold`
1285
1314
  **/
1286
- type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-07a7ccea",!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",class:["size-"+t.size]},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog",class:t.bottomFixed?"":"modal-with-scroll"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items",class:t.divider?"divider":""},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon close-icon 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("div",{staticClass:"modal-footer-items",class:t.bottomFixed?"":"modal-footer-relative"},[t._t("footer")],2)])])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-4bc0910a_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-4bc0910a]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-4bc0910a]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-4bc0910a]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-4bc0910a]{font-size:14px}}@media (min-width:1024px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-4bc0910a]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-4bc0910a]{font-size:1.56vw}}html[data-v-4bc0910a]{box-sizing:border-box}*[data-v-4bc0910a],[data-v-4bc0910a]::after,[data-v-4bc0910a]::before{box-sizing:border-box}.modal[data-v-4bc0910a]{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-4bc0910a]{transition:all .5s ease}.modal-backdrop[data-v-4bc0910a]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-4bc0910a]{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-4bc0910a]{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-4bc0910a]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-container.size-md .modal-dialog[data-v-4bc0910a]{max-width:27.5238095238rem}.modal-container.size-lg .modal-dialog[data-v-4bc0910a]{max-width:37.1428571429rem}.modal-container .modal-dialog[data-v-4bc0910a]{width:100%;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-container .modal-dialog.modal-with-scroll[data-v-4bc0910a]{margin-bottom:0!important;margin-top:168px!important;max-width:100%!important;overflow:auto!important;padding-bottom:80px}.modal-container .modal-dialog.modal-with-scroll .modal-content[data-v-4bc0910a]{position:relative}}@media (max-width:479px){.modal-container .modal-dialog[data-v-4bc0910a]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-4bc0910a]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items.divider[data-v-4bc0910a]{padding-bottom:1.1428571429rem;border-bottom:1px solid #dfdae4}@media (max-width:479px){.modal-header-items.divider[data-v-4bc0910a]{padding-bottom:0;border-bottom:none}}.modal-header-items .modal-header-close[data-v-4bc0910a]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-4bc0910a]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-4bc0910a]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-4bc0910a] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-4bc0910a]{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-4bc0910a]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-4bc0910a]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-4bc0910a]{padding:1.4953271028rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-4bc0910a]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-4bc0910a]{width:100%;margin:0}hr[data-v-4bc0910a]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-4bc0910a]{display:none}}.modal-body[data-v-4bc0910a]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-4bc0910a]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-4bc0910a]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem;border-top:1px solid #dfdae4}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a]{background:#fff;padding:1.4018691589rem 6.6666666667vw;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64);box-shadow:0 0 26px 0 #d7d1ef}}@media (max-width:479px){.modal-footer-items.modal-footer-relative[data-v-4bc0910a]{position:relative;box-shadow:none}}.modal-footer-items[data-v-4bc0910a] div:first-child{display:flex;justify-content:flex-start;flex-direction:row;width:100%}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a] div:first-child{flex-wrap:wrap;justify-content:center}}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a] div:first-child .btn-secondary{width:100%!important;margin-bottom:.7476635514rem}}.modal-footer-items[data-v-4bc0910a] div:first-child .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a] div:first-child .btn-ghost{width:100%!important;margin-left:0}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:A,Heading:vt,Paragraph:ft,Icon:C},props:{kind:{type:String,default:"primary"},size:{type:String,default:"lg"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},divider:{type:Boolean,required:!1},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0},bottomFixed:{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-4bc0910a",!1,void 0,!1,x,void 0,void 0);var wt={en:{urlBuilder:"https://hb.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",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",pet:"Bichinho de estimação",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",moonerTitle:"Altere o mooner na história",moonerTitleFirstOpen:"Adicione um mooner na história",moonerTitleMobile:"Altere o mooner",moonerTitleFirstOpenMobile:"Adicione um mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> em toda a história.",moonerDescriptionTwoMobile:" na história.",moonerLabel:"Nome do mooner",moonerLabelSelector:"Selecione um mooner",moonerCtaFirstOpen:"Pronto, ver história",moonerCta:"Atualizar",moonerCtaCancel:"Cancel",birthday_label:"Data do aniversário"}};!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,s=n*n*n,d=r*r*r;return o(Math.round(s*t.x+3*r*n*n*e.x+3*r*r*n*a.x+d*i.x),Math.round(s*t.y+3*r*n*n*e.y+3*r*r*n*a.y+d*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 s(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function d(){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,s=[];if("-webkit-"==v){for(n=0;n<r;n++)s.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+s.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var d=(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,d),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),d=Math.sqrt(n*n+d*d),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++)s.push(" "+i[n][1]+" "+100*(e+d*i[n][0])/c+"%");t.css({"background-image":v+"linear-gradient("+-l+"rad,"+s.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(" ")},k=["single","double"],z=["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=d(),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)s(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 s(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)s(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,s=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+s)),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,k))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,z))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(s(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)s(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)s(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"),s=this.turn("view",e);if(o.page!=e){var d=o.page;if("prevented"==c("turning",this,[e,s]))return void(d==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,s)&&this.trigger("first"),-1!=t.inArray(o.totalPages,s)&&this.trigger("last")}"single"==o.display?(a=n[0],i=s[0]):n[1]&&e>n[1]?(a=n[1],i=s[0]):n[0]&&e<n[0]&&(a=n[0],i=s[1]),r=o.opts.turnCorners.split(","),s=(n=o.pages[a].data().f).opts,d=n.point,M._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,M._makeRange.call(this),o.tpage=i,s.next!=i&&(s.next=i,s.force=!0),this.turn("update"),n.point=d,"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(s(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)s(t,e.pages)&&P._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)s(t,e.pages)&&P._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),s=(e=this.turn("view"))[0]||e[1],d=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<=d;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(s-a),l.partZ[o]=2*n.totalPages-d+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"),d=this.turn("view",a.tpage);for(e in a.pageWrap)s(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!=d[0]&&e!=d[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)s(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(),s="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 d=0;d<o.pageMv.length&&e[0]&&e[1];d++)e=this.turn("view",o.pages[o.pageMv[d]].data().f.opts.next),i=this.turn("view",o.pageMv[d]),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:s,height:n,top:0,left:s});break;case 2:o.shadow.css({width:s,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)s(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),s=this.width(),d=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*s):Math.max(Math.min(t.x,s),-s);var c,p,m,u,h,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},k=i.x?(i.x-t.x)/s:t.x/s,z=90*k,_=90>z;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%",z=-z,s=-s,_?(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("+z+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",h),e.fpage.transform("translateX("+s+"px) rotateY("+(180+z)+"deg)",u),e.parent.css(y),_?(k=1-k,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(k-=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*k+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:1-k}),_?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,N,L,E,I,A=this,B=0,T=o(0,0),F=o(0,0),q=o(0,0),R=P._foldingPage.call(this),j=a.opts.acceleration,D=e.wrapper.height(),$="t"==t.corner.substr(0,1),O="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=O?s-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 B=l/f*180,q=o(c*Math.sin(l),c*Math.cos(l)),l>b&&(q.x+=Math.abs(q.y*r.y/r.x),q.y=0,Math.round(q.x*Math.tan(f-l))<d)?(t.y=Math.sqrt(Math.pow(d,2)+2*n.x*r.x),$&&(t.y=d-t.y),e()):(l>b&&(r=f-l,n=D-d/Math.sin(r),T=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),O&&(T.x=-T.x),$&&(T.y=-T.y)),C=Math.round(q.y/Math.tan(l)+q.x),n=(r=s-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round(O?r-n:C+n),Math.round($?c:d-c)),a.opts.gradients&&(L=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))/s,I=Math.sin(b*(1<r?2-r:r)),E=Math.min(r,1),N=100<L?(L-100)/L:0,M=o(L*Math.sin(l)/s*100,L*Math.cos(l)/d*100),P._backGradient.call(A)&&(S=o(1.2*L*Math.sin(l)/s*100,1.2*L*Math.cos(l)/d*100),O||(S.x=100-S.x),$||(S.y=100-S.y))),q.x=Math.round(q.x),q.y=Math.round(q.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(s-D)*c[0]/100,h=(d-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?O?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,j),v),e.fpage.css(i).transform(n(p)+r(t.x+F.x-T.x-s*c[0]/100,t.y+F.y-T.y-d*c[1]/100,j)+n((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,j)+n(-p),v),e.fwrapper.transform(r(-t.x+T.x+u,-t.y+T.y+h,j)+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+")",R.css(m),l(e.ashadow,o(O?100:0,$?0:100),o(M.x,M.y),[[N,"rgba(0,0,0,0)"],[.8*(1-N)+N,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),P._backGradient.call(A)&&l(e.bshadow,o(O?0:100,$?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(q,[1,0,0,1],[100,0],B);break;case"tr":t.x=Math.min(t.x,s-1),V(),c(o(-q.x,q.y),[0,0,0,1],[0,0],-B);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(q.x,-q.y),[1,1,0,0],[100,100],-B);break;case"br":t.x=Math.min(t.x,s-1),V(),c(o(-q.x,-q.y),[0,1,1,0],[0,100],B)}}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 s=P._c.call(this,r.corner),d=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-s.y)/2:Math.max(0,r.y-s.y)/2,o(r.x,r.y+t)),l=o(s.x,s.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,d,l,s,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,s=(new Date).getTime(),d=0;d<o;d++)i.push(e.to[d]-e.from[d]);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 d=[],l=Math.min(e.duration,(new Date).getTime()-s),c=0;c<o;c++)d.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?d[0]:d),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=d,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}(d),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,s={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},d={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},s,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 d._eMouseUp.apply(i,arguments)},eventTouchStart:r(d._eTouchStart,i),eventTouchMove:r(d._eTouchMove,i),eventTouchEnd:r(d._eTouchEnd,i),flipbookEvents:{zooming:r(d._eZoom,i),pressed:r(d._ePressed,i),released:r(d._eReleased,i),start:r(d._eStart,i),turning:r(d._eTurning,i),turned:r(d._eTurned,i),destroying:r(d._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",d._tap)):this.mousedown(d._mousedown).click(d._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)&&(d._addEvent.call(a,"tap",e),(e=d._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"),s=e.data(),d=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(d.left-l.left,d.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?d.left-l.left:d.left-l.left+c.width,d.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?d.left-l.left+c.width:d.left-l.left,d.top-l.top)):(c.width=e.width(),e=o(d.left-l.left,d.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=s.pageObjs[p[n]].offset();var m=t(s.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-d.top)*r,left:(l.left-d.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,s=n.opts.flipbook,l=n.opts.max();s.offset();var c=this.offset();if(n.zoomIn)return this;s.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=d._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=s.data().opts.autoCenter;n.scale=l,s.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(s.css("left"),s.css("top")),s.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=s.offset();n.axis=o(e.left-c.left,e.top-c.top),g&&"double"==s.turn("display")&&("ltr"==s.turn("direction")&&!s.turn("view")[0]||"rtl"==s.turn("direction")&&!s.turn("view")[1])&&(n.axis.x+=s.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,d._eMouseDown),r.bind(t.mouseEvents.move,d._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",d._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,s=this.data().zoom,l=s.opts.flipbook,c=1/s.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:s.opts.duration,s.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;s.zoomIn=!1,s.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,d._eMouseDown),n.unbind(t.mouseEvents.move,d._eMouseMove),t(document).unbind(t.mouseEvents.up,s.mouseupEvent),n.unbind("mousewheel",d._eMouseWheel),(u={})[p+"transition"]=p+"transform "+s.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:s.flipPosition.y,left:s.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:s.flipPosition.y,left:s.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:s.flipPosition.y,left:s.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 s=this.data().zoom,d=s.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",d.css(p),d.transform(a(-s.axis.x-e.x,-s.axis.y-e.y,!0))}else d.css({top:-s.axis.y-e.y,left:-s.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(d.height()-this.height())/2)),d=o(l>this.width()?l-this.width():(l-this.width())/2,d.height()>this.height()?d.height()-this.height():(d.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>d.y&&(e.y=d.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>d.x&&(e.x=d.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}s.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",d._tap).unbind("click",d._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==u(a[0]))return d.init.apply(t(this[0]),a);if(d[a[0]])return d[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(d);var xt,yt=d,kt=require("axios"),zt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-box"},[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},[!t.isLoading&&t.loader?a("div",{staticClass:"arrow-animate"},[a("Icon",{attrs:{name:"arrow-right",size:"lg",fill:t.preview_color,stroke:"transparent"}})],1):t._e(),t._v(" "),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&&0==t.isLoading?a("div",{staticClass:"controls"},[a("div",[1!=t.currentPage?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheLeft}},[a("Icon",{attrs:{name:"chevron-left",stroke:"transparent",size:"md",fill:t.preview_color}})],1):t._e()],1),t._v(" "),a("div",[t.currentPage!=t.pages?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheRight}},[a("Icon",{attrs:{name:"chevron-right",stroke:"transparent",fill:t.preview_color,size:"md"}})],1):t._e()],1)]):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-112fcf9b_0",{source:'.storybook-6[data-v-112fcf9b]{width:columns("lg", 6)}.storybook-12[data-v-112fcf9b]{width:columns("lg", 12)}.storybook-25[data-v-112fcf9b]{width:columns("lg", 25)}',map:void 0,media:void 0}),t("data-v-112fcf9b_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-112fcf9b]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-112fcf9b]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-112fcf9b]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-112fcf9b]{font-size:14px}}@media (min-width:1024px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-112fcf9b]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-112fcf9b]{font-size:1.56vw}}html[data-v-112fcf9b]{box-sizing:border-box}*[data-v-112fcf9b],[data-v-112fcf9b]::after,[data-v-112fcf9b]::before{box-sizing:border-box}.flipbook-viewport[data-v-112fcf9b]{margin-top:30px;width:100%}.flipbook-viewport .container-book[data-v-112fcf9b]{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook[data-v-112fcf9b]{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page[data-v-112fcf9b]{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page[data-v-112fcf9b]{-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[data-v-112fcf9b]{-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[data-v-112fcf9b]{-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[data-v-112fcf9b]{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[data-v-112fcf9b]{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[data-v-112fcf9b]: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[data-v-112fcf9b]: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[data-v-112fcf9b]{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img[data-v-112fcf9b]{height:100%}#flipbook img.loading-blur[data-v-112fcf9b]{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img[data-v-112fcf9b]{height:100%}#flipbook.square img[data-v-112fcf9b]{width:100%;height:100%}.zoom-in #flipbook img[data-v-112fcf9b]{height:100%!important}.preview-desktop[data-v-112fcf9b]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-112fcf9b]{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-112fcf9b]{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-112fcf9b .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-112fcf9b]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-112fcf9b{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-112fcf9b]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-112fcf9b]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-112fcf9b]{transition:all .7s ease-in-out;position:relative}.flipbook-container[data-v-112fcf9b]{position:absolute;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;transition:all .3s;min-width:210px;min-height:210px;height:30.8571428571rem;left:0;right:0;top:0;bottom:0;margin:auto;margin-top:1.9047619048rem;z-index:3}@media (max-width:479px){.flipbook-container[data-v-112fcf9b]{display:none}}.flipbook-container.zoom-in[data-v-112fcf9b]{height:100vh}.controls[data-v-112fcf9b]{margin:0 auto;display:block;width:100%;display:flex;position:absolute;display:flex;justify-content:space-between;top:0;bottom:0;flex-wrap:wrap;height:3.0476190476rem;margin-top:auto;margin-bottom:auto;padding-left:2.7777777778vw;padding-right:2.7777777778vw}.controls div[data-v-112fcf9b]{position:relative;z-index:102}.controls .btn-primary button[data-v-112fcf9b]{background-color:var(--preview-color);position:relative}.controls .btn-primary button:hover span[data-v-112fcf9b]{color:#fff;position:relative;z-index:2}.controls .btn-primary button[data-v-112fcf9b]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.controls .info-space[data-v-112fcf9b]{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-112fcf9b]{width:60px;white-space:nowrap;line-height:1;transition:all .5s ease}.controls .current-pages .list[data-v-112fcf9b]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-112fcf9b]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-112fcf9b]:first-child{margin:0 16px}.controls .current-pages span[data-v-112fcf9b]:last-child{margin:0 16px}.info-pages[data-v-112fcf9b]{text-align:center}@keyframes arrow-animation-data-v-112fcf9b{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-112fcf9b]{opacity:1}.invisible[data-v-112fcf9b]{opacity:0}[data-v-112fcf9b] .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-112fcf9b] .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-112fcf9b .6s linear infinite}@media (max-width:479px){[data-v-112fcf9b] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-112fcf9b{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.preview-box[data-v-112fcf9b]{width:100vw;height:100%;position:relative;display:flex;justify-content:center;align-items:center}.arrow-animate[data-v-112fcf9b]{position:absolute;top:0;bottom:0;height:40px;margin-top:auto;margin-bottom:auto;left:38%;animation:arrow-animation-data-v-112fcf9b 1.8s infinite both}@keyframes arrow-animation-data-v-112fcf9b{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%)}}#flipbook .even[data-v-112fcf9b]{background:-webkit-gradient(linear,left top,right top,color-stop(.95,#fff),color-stop(1,#dadada));background-image:-webkit-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-moz-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-ms-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-o-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:linear-gradient(to left,#fff 95%,#dadada 100%)}#flipbook .odd[data-v-112fcf9b]{background:-webkit-gradient(linear,right top,left top,color-stop(.95,#fff),color-stop(1,#cacaca));background-image:-webkit-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-moz-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-ms-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-o-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:linear-gradient(to right,#fff 95%,#cacaca 100%)}[data-v-112fcf9b].flipbook-lib .page.odd: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,.2) inset;z-index:4}[data-v-112fcf9b].flipbook-lib .page.even:before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.2) inset}[data-v-112fcf9b].flipbook-lib img{height:100%!important}[data-v-112fcf9b] .page-wrapper{right:1px!important}[data-v-112fcf9b] .loading-blur{filter:blur(4px);background:rgba(104,89,110,.8)}[data-v-112fcf9b] .page{cursor:pointer!important}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:C,Button:A},props:{
1315
+ type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-07a7ccea",!1,void 0,!1,x,void 0,void 0),wt=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",class:["size-"+t.size]},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog",class:t.bottomFixed?"":"modal-with-scroll"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items",class:t.divider?"divider":""},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon close-icon 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("div",{staticClass:"modal-footer-items",class:t.bottomFixed?"":"modal-footer-relative"},[t._t("footer")],2)])])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-4bc0910a_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-4bc0910a]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-4bc0910a]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-4bc0910a]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-4bc0910a]{font-size:14px}}@media (min-width:1024px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-4bc0910a]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-4bc0910a]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-4bc0910a]{font-size:1.56vw}}html[data-v-4bc0910a]{box-sizing:border-box}*[data-v-4bc0910a],[data-v-4bc0910a]::after,[data-v-4bc0910a]::before{box-sizing:border-box}.modal[data-v-4bc0910a]{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-4bc0910a]{transition:all .5s ease}.modal-backdrop[data-v-4bc0910a]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-4bc0910a]{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-4bc0910a]{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-4bc0910a]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-container.size-md .modal-dialog[data-v-4bc0910a]{max-width:27.5238095238rem}.modal-container.size-lg .modal-dialog[data-v-4bc0910a]{max-width:37.1428571429rem}.modal-container .modal-dialog[data-v-4bc0910a]{width:100%;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-container .modal-dialog.modal-with-scroll[data-v-4bc0910a]{margin-bottom:0!important;margin-top:168px!important;max-width:100%!important;overflow:auto!important;padding-bottom:80px}.modal-container .modal-dialog.modal-with-scroll .modal-content[data-v-4bc0910a]{position:relative}}@media (max-width:479px){.modal-container .modal-dialog[data-v-4bc0910a]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-4bc0910a]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items.divider[data-v-4bc0910a]{padding-bottom:1.1428571429rem;border-bottom:1px solid #dfdae4}@media (max-width:479px){.modal-header-items.divider[data-v-4bc0910a]{padding-bottom:0;border-bottom:none}}.modal-header-items .modal-header-close[data-v-4bc0910a]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-4bc0910a]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-4bc0910a]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-4bc0910a] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-4bc0910a]{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-4bc0910a]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-4bc0910a]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-4bc0910a]{padding:1.4953271028rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-4bc0910a]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-4bc0910a]{width:100%;margin:0}hr[data-v-4bc0910a]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-4bc0910a]{display:none}}.modal-body[data-v-4bc0910a]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-4bc0910a]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-4bc0910a]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem;border-top:1px solid #dfdae4}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a]{background:#fff;padding:1.4018691589rem 6.6666666667vw;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64);box-shadow:0 0 26px 0 #d7d1ef}}@media (max-width:479px){.modal-footer-items.modal-footer-relative[data-v-4bc0910a]{position:relative;box-shadow:none}}.modal-footer-items[data-v-4bc0910a] div:first-child{display:flex;justify-content:flex-start;flex-direction:row;width:100%}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a] div:first-child{flex-wrap:wrap;justify-content:center}}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a] div:first-child .btn-secondary{width:100%!important;margin-bottom:.7476635514rem}}.modal-footer-items[data-v-4bc0910a] div:first-child .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-4bc0910a] div:first-child .btn-ghost{width:100%!important;margin-left:0}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:A,Heading:ft,Paragraph:bt,Icon:C},props:{kind:{type:String,default:"primary"},size:{type:String,default:"lg"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},divider:{type:Boolean,required:!1},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0},bottomFixed:{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-4bc0910a",!1,void 0,!1,x,void 0,void 0);var xt={en:{urlBuilder:"https://hb.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",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",pet:"Bichinho de estimação",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",moonerTitle:"Altere o mooner na história",moonerTitleFirstOpen:"Adicione um mooner na história",moonerTitleMobile:"Altere o mooner",moonerTitleFirstOpenMobile:"Adicione um mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> em toda a história.",moonerDescriptionTwoMobile:" na história.",moonerLabel:"Nome do mooner",moonerLabelSelector:"Selecione um mooner",moonerCtaFirstOpen:"Pronto, ver história",moonerCta:"Atualizar",moonerCtaCancel:"Cancel",birthday_label:"Data do aniversário"}};!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,s=n*n*n,d=r*r*r;return o(Math.round(s*t.x+3*r*n*n*e.x+3*r*r*n*a.x+d*i.x),Math.round(s*t.y+3*r*n*n*e.y+3*r*r*n*a.y+d*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 s(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function d(){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,s=[];if("-webkit-"==v){for(n=0;n<r;n++)s.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+s.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var d=(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,d),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),d=Math.sqrt(n*n+d*d),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++)s.push(" "+i[n][1]+" "+100*(e+d*i[n][0])/c+"%");t.css({"background-image":v+"linear-gradient("+-l+"rad,"+s.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(" ")},k=["single","double"],z=["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=d(),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)s(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 s(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)s(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,s=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+s)),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,k))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,z))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(s(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)s(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)s(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"),s=this.turn("view",e);if(o.page!=e){var d=o.page;if("prevented"==c("turning",this,[e,s]))return void(d==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,s)&&this.trigger("first"),-1!=t.inArray(o.totalPages,s)&&this.trigger("last")}"single"==o.display?(a=n[0],i=s[0]):n[1]&&e>n[1]?(a=n[1],i=s[0]):n[0]&&e<n[0]&&(a=n[0],i=s[1]),r=o.opts.turnCorners.split(","),s=(n=o.pages[a].data().f).opts,d=n.point,M._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,M._makeRange.call(this),o.tpage=i,s.next!=i&&(s.next=i,s.force=!0),this.turn("update"),n.point=d,"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(s(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)s(t,e.pages)&&P._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)s(t,e.pages)&&P._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),s=(e=this.turn("view"))[0]||e[1],d=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<=d;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(s-a),l.partZ[o]=2*n.totalPages-d+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"),d=this.turn("view",a.tpage);for(e in a.pageWrap)s(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!=d[0]&&e!=d[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)s(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(),s="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 d=0;d<o.pageMv.length&&e[0]&&e[1];d++)e=this.turn("view",o.pages[o.pageMv[d]].data().f.opts.next),i=this.turn("view",o.pageMv[d]),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:s,height:n,top:0,left:s});break;case 2:o.shadow.css({width:s,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)s(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),s=this.width(),d=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*s):Math.max(Math.min(t.x,s),-s);var c,p,m,u,h,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},k=i.x?(i.x-t.x)/s:t.x/s,z=90*k,_=90>z;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%",z=-z,s=-s,_?(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("+z+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",h),e.fpage.transform("translateX("+s+"px) rotateY("+(180+z)+"deg)",u),e.parent.css(y),_?(k=1-k,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(k-=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*k+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:1-k}),_?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,N,L,E,I,A=this,B=0,T=o(0,0),F=o(0,0),q=o(0,0),R=P._foldingPage.call(this),j=a.opts.acceleration,D=e.wrapper.height(),$="t"==t.corner.substr(0,1),O="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=O?s-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 B=l/f*180,q=o(c*Math.sin(l),c*Math.cos(l)),l>b&&(q.x+=Math.abs(q.y*r.y/r.x),q.y=0,Math.round(q.x*Math.tan(f-l))<d)?(t.y=Math.sqrt(Math.pow(d,2)+2*n.x*r.x),$&&(t.y=d-t.y),e()):(l>b&&(r=f-l,n=D-d/Math.sin(r),T=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),O&&(T.x=-T.x),$&&(T.y=-T.y)),C=Math.round(q.y/Math.tan(l)+q.x),n=(r=s-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round(O?r-n:C+n),Math.round($?c:d-c)),a.opts.gradients&&(L=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))/s,I=Math.sin(b*(1<r?2-r:r)),E=Math.min(r,1),N=100<L?(L-100)/L:0,M=o(L*Math.sin(l)/s*100,L*Math.cos(l)/d*100),P._backGradient.call(A)&&(S=o(1.2*L*Math.sin(l)/s*100,1.2*L*Math.cos(l)/d*100),O||(S.x=100-S.x),$||(S.y=100-S.y))),q.x=Math.round(q.x),q.y=Math.round(q.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(s-D)*c[0]/100,h=(d-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?O?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,j),v),e.fpage.css(i).transform(n(p)+r(t.x+F.x-T.x-s*c[0]/100,t.y+F.y-T.y-d*c[1]/100,j)+n((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,j)+n(-p),v),e.fwrapper.transform(r(-t.x+T.x+u,-t.y+T.y+h,j)+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+")",R.css(m),l(e.ashadow,o(O?100:0,$?0:100),o(M.x,M.y),[[N,"rgba(0,0,0,0)"],[.8*(1-N)+N,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),P._backGradient.call(A)&&l(e.bshadow,o(O?0:100,$?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(q,[1,0,0,1],[100,0],B);break;case"tr":t.x=Math.min(t.x,s-1),V(),c(o(-q.x,q.y),[0,0,0,1],[0,0],-B);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(q.x,-q.y),[1,1,0,0],[100,100],-B);break;case"br":t.x=Math.min(t.x,s-1),V(),c(o(-q.x,-q.y),[0,1,1,0],[0,100],B)}}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 s=P._c.call(this,r.corner),d=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-s.y)/2:Math.max(0,r.y-s.y)/2,o(r.x,r.y+t)),l=o(s.x,s.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,d,l,s,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,s=(new Date).getTime(),d=0;d<o;d++)i.push(e.to[d]-e.from[d]);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 d=[],l=Math.min(e.duration,(new Date).getTime()-s),c=0;c<o;c++)d.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?d[0]:d),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=d,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}(d),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,s={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},d={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},s,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 d._eMouseUp.apply(i,arguments)},eventTouchStart:r(d._eTouchStart,i),eventTouchMove:r(d._eTouchMove,i),eventTouchEnd:r(d._eTouchEnd,i),flipbookEvents:{zooming:r(d._eZoom,i),pressed:r(d._ePressed,i),released:r(d._eReleased,i),start:r(d._eStart,i),turning:r(d._eTurning,i),turned:r(d._eTurned,i),destroying:r(d._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",d._tap)):this.mousedown(d._mousedown).click(d._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)&&(d._addEvent.call(a,"tap",e),(e=d._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"),s=e.data(),d=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(d.left-l.left,d.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?d.left-l.left:d.left-l.left+c.width,d.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?d.left-l.left+c.width:d.left-l.left,d.top-l.top)):(c.width=e.width(),e=o(d.left-l.left,d.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=s.pageObjs[p[n]].offset();var m=t(s.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-d.top)*r,left:(l.left-d.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,s=n.opts.flipbook,l=n.opts.max();s.offset();var c=this.offset();if(n.zoomIn)return this;s.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=d._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=s.data().opts.autoCenter;n.scale=l,s.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(s.css("left"),s.css("top")),s.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=s.offset();n.axis=o(e.left-c.left,e.top-c.top),g&&"double"==s.turn("display")&&("ltr"==s.turn("direction")&&!s.turn("view")[0]||"rtl"==s.turn("direction")&&!s.turn("view")[1])&&(n.axis.x+=s.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,d._eMouseDown),r.bind(t.mouseEvents.move,d._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",d._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,s=this.data().zoom,l=s.opts.flipbook,c=1/s.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:s.opts.duration,s.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;s.zoomIn=!1,s.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,d._eMouseDown),n.unbind(t.mouseEvents.move,d._eMouseMove),t(document).unbind(t.mouseEvents.up,s.mouseupEvent),n.unbind("mousewheel",d._eMouseWheel),(u={})[p+"transition"]=p+"transform "+s.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:s.flipPosition.y,left:s.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:s.flipPosition.y,left:s.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:s.flipPosition.y,left:s.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 s=this.data().zoom,d=s.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",d.css(p),d.transform(a(-s.axis.x-e.x,-s.axis.y-e.y,!0))}else d.css({top:-s.axis.y-e.y,left:-s.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(d.height()-this.height())/2)),d=o(l>this.width()?l-this.width():(l-this.width())/2,d.height()>this.height()?d.height()-this.height():(d.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>d.y&&(e.y=d.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>d.x&&(e.x=d.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}s.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",d._tap).unbind("click",d._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==u(a[0]))return d.init.apply(t(this[0]),a);if(d[a[0]])return d[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(d);var yt,kt=d,zt=require("axios"),_t=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-box"},[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},[!t.isLoading&&t.loader?a("div",{staticClass:"arrow-animate"},[a("Icon",{attrs:{name:"arrow-right",size:"lg",fill:t.preview_color,stroke:"transparent"}})],1):t._e(),t._v(" "),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&&0==t.isLoading?a("div",{staticClass:"controls"},[a("div",[1!=t.currentPage?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheLeft}},[a("Icon",{attrs:{name:"chevron-left",stroke:"transparent",size:"md",fill:t.preview_color}})],1):t._e()],1),t._v(" "),a("div",[t.currentPage!=t.pages?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheRight}},[a("Icon",{attrs:{name:"chevron-right",stroke:"transparent",fill:t.preview_color,size:"md"}})],1):t._e()],1)]):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-112fcf9b_0",{source:'.storybook-6[data-v-112fcf9b]{width:columns("lg", 6)}.storybook-12[data-v-112fcf9b]{width:columns("lg", 12)}.storybook-25[data-v-112fcf9b]{width:columns("lg", 25)}',map:void 0,media:void 0}),t("data-v-112fcf9b_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-112fcf9b]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-112fcf9b]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-112fcf9b]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-112fcf9b]{font-size:14px}}@media (min-width:1024px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-112fcf9b]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-112fcf9b]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-112fcf9b]{font-size:1.56vw}}html[data-v-112fcf9b]{box-sizing:border-box}*[data-v-112fcf9b],[data-v-112fcf9b]::after,[data-v-112fcf9b]::before{box-sizing:border-box}.flipbook-viewport[data-v-112fcf9b]{margin-top:30px;width:100%}.flipbook-viewport .container-book[data-v-112fcf9b]{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook[data-v-112fcf9b]{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page[data-v-112fcf9b]{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page[data-v-112fcf9b]{-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[data-v-112fcf9b]{-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[data-v-112fcf9b]{-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[data-v-112fcf9b]{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[data-v-112fcf9b]{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[data-v-112fcf9b]: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[data-v-112fcf9b]: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[data-v-112fcf9b]{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img[data-v-112fcf9b]{height:100%}#flipbook img.loading-blur[data-v-112fcf9b]{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img[data-v-112fcf9b]{height:100%}#flipbook.square img[data-v-112fcf9b]{width:100%;height:100%}.zoom-in #flipbook img[data-v-112fcf9b]{height:100%!important}.preview-desktop[data-v-112fcf9b]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-112fcf9b]{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-112fcf9b]{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-112fcf9b .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-112fcf9b]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-112fcf9b{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-112fcf9b]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-112fcf9b]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-112fcf9b]{transition:all .7s ease-in-out;position:relative}.flipbook-container[data-v-112fcf9b]{position:absolute;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;transition:all .3s;min-width:210px;min-height:210px;height:30.8571428571rem;left:0;right:0;top:0;bottom:0;margin:auto;margin-top:1.9047619048rem;z-index:3}@media (max-width:479px){.flipbook-container[data-v-112fcf9b]{display:none}}.flipbook-container.zoom-in[data-v-112fcf9b]{height:100vh}.controls[data-v-112fcf9b]{margin:0 auto;display:block;width:100%;display:flex;position:absolute;display:flex;justify-content:space-between;top:0;bottom:0;flex-wrap:wrap;height:3.0476190476rem;margin-top:auto;margin-bottom:auto;padding-left:2.7777777778vw;padding-right:2.7777777778vw}.controls div[data-v-112fcf9b]{position:relative;z-index:102}.controls .btn-primary button[data-v-112fcf9b]{background-color:var(--preview-color);position:relative}.controls .btn-primary button:hover span[data-v-112fcf9b]{color:#fff;position:relative;z-index:2}.controls .btn-primary button[data-v-112fcf9b]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.controls .info-space[data-v-112fcf9b]{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-112fcf9b]{width:60px;white-space:nowrap;line-height:1;transition:all .5s ease}.controls .current-pages .list[data-v-112fcf9b]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-112fcf9b]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-112fcf9b]:first-child{margin:0 16px}.controls .current-pages span[data-v-112fcf9b]:last-child{margin:0 16px}.info-pages[data-v-112fcf9b]{text-align:center}@keyframes arrow-animation-data-v-112fcf9b{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-112fcf9b]{opacity:1}.invisible[data-v-112fcf9b]{opacity:0}[data-v-112fcf9b] .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-112fcf9b] .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-112fcf9b .6s linear infinite}@media (max-width:479px){[data-v-112fcf9b] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-112fcf9b{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.preview-box[data-v-112fcf9b]{width:100vw;height:100%;position:relative;display:flex;justify-content:center;align-items:center}.arrow-animate[data-v-112fcf9b]{position:absolute;top:0;bottom:0;height:40px;margin-top:auto;margin-bottom:auto;left:38%;animation:arrow-animation-data-v-112fcf9b 1.8s infinite both}@keyframes arrow-animation-data-v-112fcf9b{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%)}}#flipbook .even[data-v-112fcf9b]{background:-webkit-gradient(linear,left top,right top,color-stop(.95,#fff),color-stop(1,#dadada));background-image:-webkit-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-moz-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-ms-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-o-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:linear-gradient(to left,#fff 95%,#dadada 100%)}#flipbook .odd[data-v-112fcf9b]{background:-webkit-gradient(linear,right top,left top,color-stop(.95,#fff),color-stop(1,#cacaca));background-image:-webkit-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-moz-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-ms-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-o-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:linear-gradient(to right,#fff 95%,#cacaca 100%)}[data-v-112fcf9b].flipbook-lib .page.odd: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,.2) inset;z-index:4}[data-v-112fcf9b].flipbook-lib .page.even:before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.2) inset}[data-v-112fcf9b].flipbook-lib img{height:100%!important}[data-v-112fcf9b] .page-wrapper{right:1px!important}[data-v-112fcf9b] .loading-blur{filter:blur(4px);background:rgba(104,89,110,.8)}[data-v-112fcf9b] .page{cursor:pointer!important}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:C,Button:A},props:{
1287
1316
  /** Character uuid. `ddh5e177ff920f15` */
1288
1317
  uuid:{type:String,required:!0},
1289
1318
  /** Number of pages. `32` */
@@ -1301,44 +1330,44 @@ controls:{type:Boolean,default:!0},
1301
1330
  /** Center book on first and last page */
1302
1331
  centered:{type:Boolean,default:!0},
1303
1332
  /** Show loader */
1304
- loader:{type:Boolean,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"},goToPage:{type:Number,required:!1},dedication_page:{type:Number,required:!1},preview_color:{type:String,default:"#12d3db",required:!1}},data:function(){return{formato:"a4",bookDimensions:{widthPlaceholder:100,width:800},flipbookWidth:null,flipbookHeight:null,isCover:0,currentPage:1,loadedPages:5,numberPositions:0,isLoading:!0,lang:wt[this.typeLanguage]}},mounted:function(){var t=this;return v(h().mark((function e(){var a,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,"square"==t.book_format?t.formato="square":t.formato="a4",e.next=4,t.createInitialPages();case 4:e.sent&&(t.initBook(),yt((function(){window.addEventListener("resize",(function(t){if(yt("#flipbook").length>0){var e=a.resize();yt("#flipbook").turn("size",e.width,e.height),yt("#flipbook").turn("resize"),a.updated()}}))})),t.loader,
1333
+ loader:{type:Boolean,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"},goToPage:{type:Number,required:!1},dedication_page:{type:Number,required:!1},preview_color:{type:String,default:"#12d3db",required:!1}},data:function(){return{formato:"a4",bookDimensions:{widthPlaceholder:100,width:800},flipbookWidth:null,flipbookHeight:null,isCover:0,currentPage:1,loadedPages:5,numberPositions:0,isLoading:!0,lang:xt[this.typeLanguage]}},mounted:function(){var t=this;return v(h().mark((function e(){var a,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,"square"==t.book_format?t.formato="square":t.formato="a4",e.next=4,t.createInitialPages();case 4:e.sent&&(t.initBook(),kt((function(){window.addEventListener("resize",(function(t){if(kt("#flipbook").length>0){var e=a.resize();kt("#flipbook").turn("size",e.width,e.height),kt("#flipbook").turn("resize"),a.updated()}}))})),t.loader,
1305
1334
  //setTimeout(function () {
1306
- a.isLoading=!1,i=a.resize(),yt("#flipbook").turn("size",i.width,i.height),yt("#flipbook").turn("resize"),a.zoom&&t.activateZoom());case 6:case"end":return e.stop()}}),e)})))()},methods:{started:function(){
1335
+ a.isLoading=!1,i=a.resize(),kt("#flipbook").turn("size",i.width,i.height),kt("#flipbook").turn("resize"),a.zoom&&t.activateZoom());case 6:case"end":return e.stop()}}),e)})))()},methods:{started:function(){
1307
1336
  //this.cleanClickPages();
1308
- this.$emit("started")},updated:function(){this.$emit("updated")},completed:function(t){t.success&&this.$emit("completed")},getImagePuzzle:function(t){var e=this;return v(h().mark((function a(){var i,o,r,n;return h().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=e,o=new Date,r=o.getMilliseconds(),n=i.apiUrl+"/api/builder/getpreview/"+i.uuid+"?page="+t+"&update="+r+"&w=533&v=0&noCache=true",a.next=6,kt.get(n,{responseType:"arraybuffer"}).then((function(t){return Buffer.from(t.data,"binary").toString("base64")}));case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)})))()},createInitialPages:function(){var t=this;return v(h().mark((function e(){var a,i,o,r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i=new Date,i.getMilliseconds(),//var n = Math.floor(Math.random() * 1000);
1309
- o="",r=1;case 5:if(!(r<6)){e.next=13;break}return e.next=8,a.getImagePuzzle(r);case 8:n=e.sent,o+="<div class='hard'><img src='data:image/png;base64,"+n+"' alt='' width='100%' firstPage='true'></div>";case 10:r++,e.next=5;break;case 13:return yt("#flipbook").html(o),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})))()},initBook:function(){var t=this,e=t.resize();
1337
+ this.$emit("started")},updated:function(){this.$emit("updated")},completed:function(t){t.success&&this.$emit("completed")},getImagePuzzle:function(t){var e=this;return v(h().mark((function a(){var i,o,r,n;return h().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=e,o=new Date,r=o.getMilliseconds(),n=i.apiUrl+"/api/builder/getpreview/"+i.uuid+"?page="+t+"&update="+r+"&w=533&v=0&noCache=true",a.next=6,zt.get(n,{responseType:"arraybuffer"}).then((function(t){return Buffer.from(t.data,"binary").toString("base64")}));case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)})))()},createInitialPages:function(){var t=this;return v(h().mark((function e(){var a,i,o,r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i=new Date,i.getMilliseconds(),//var n = Math.floor(Math.random() * 1000);
1338
+ o="",r=1;case 5:if(!(r<6)){e.next=13;break}return e.next=8,a.getImagePuzzle(r);case 8:n=e.sent,o+="<div class='hard'><img src='data:image/png;base64,"+n+"' alt='' width='100%' firstPage='true'></div>";case 10:r++,e.next=5;break;case 13:return kt("#flipbook").html(o),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})))()},initBook:function(){var t=this,e=t.resize();
1310
1339
  // this.flipbookWidth = self.formato === "square" ? "100vh" : "100vh";
1311
1340
  // this.flipbookHeight =
1312
1341
  // self.formato === "square"
1313
1342
  // ? "calc(100vh - 91px)"
1314
1343
  // : "calc(100vh - 91px)";
1315
- if(this.flipbookWidth=e.width,this.flipbookHeight=e.height,yt("#flipbook").length>0){yt("#flipbook").turn({width:t.flipbookWidth,height:t.flipbookHeight,autoCenter:!1,gradients:!0,acceleration:!0,duration:800,elevation:150}),yt("#flipbook").bind("start",(function(t,e,a){console.log(t),console.log(e),console.log(a),"r"==a||"l"==a?yt(".page-wrapper").css("cursor","pointer"):yt(".page-wrapper").css("cursor","unset"),"tl"!=a&&"tr"!=a&&"bl"!=a&&"br"!=a||t.preventDefault()})),yt("#flipbook").bind("end",(function(t,e,a){
1344
+ if(this.flipbookWidth=e.width,this.flipbookHeight=e.height,kt("#flipbook").length>0){kt("#flipbook").turn({width:t.flipbookWidth,height:t.flipbookHeight,autoCenter:!1,gradients:!0,acceleration:!0,duration:800,elevation:150}),kt("#flipbook").bind("start",(function(t,e,a){console.log(t),console.log(e),console.log(a),"r"==a||"l"==a?kt(".page-wrapper").css("cursor","pointer"):kt(".page-wrapper").css("cursor","unset"),"tl"!=a&&"tr"!=a&&"bl"!=a&&"br"!=a||t.preventDefault()})),kt("#flipbook").bind("end",(function(t,e,a){
1316
1345
  //$(".page-wrapper").css("cursor", "unset");
1317
1346
  })),
1318
1347
  // Capa
1319
- t.isCover="-"+yt(".page-wrapper[page="+t.currentPage+"]").width(),
1348
+ t.isCover="-"+kt(".page-wrapper[page="+t.currentPage+"]").width(),
1320
1349
  // Virada da páginas
1321
- yt("#flipbook").bind("turning",(function(e,a,i){t.currentPage=a,t.$emit("updateCurrentPage",t.currentPage),t.currentPage>=t.loadedPages-2&&t.morePages(),1===t.currentPage?(t.numberPositions=0,t.isCover="-"+yt(".page-wrapper[page="+t.currentPage+"]").width()):t.currentPage===t.pages?(t.isCover=yt(".page-wrapper[page="+t.currentPage+"]").width(),t.currentPage%2==0?t.numberPositions=30*t.currentPage:t.numberPositions=30*(t.currentPage-1)):(t.isCover=0,t.currentPage%2==0?t.numberPositions=30*t.currentPage:t.numberPositions=30*(t.currentPage-1))})),yt("#flipbook").bind("turned",(function(e,a,i){t.cleanClickPages()}));for(var a=this.loadedPages;a<this.pages;a++){var i=yt("#flipbook").turn("pages")+1,o=yt('<div><img class="img-book" width="100%" src="'+this.apiUrl+"/api/builder/getplaceholder/"+this.product_id+"?page="+a+"&w="+this.bookDimensions.widthPlaceholder+'&pw=0&noCache=true" alt=""><div class="loading-bg"><div class="loading book-loading"></div></div> </div>');yt("#flipbook").turn("addPage",o),yt("#flipbook").turn("pages",i)}
1350
+ kt("#flipbook").bind("turning",(function(e,a,i){t.currentPage=a,t.$emit("updateCurrentPage",t.currentPage),t.currentPage>=t.loadedPages-2&&t.morePages(),1===t.currentPage?(t.numberPositions=0,t.isCover="-"+kt(".page-wrapper[page="+t.currentPage+"]").width()):t.currentPage===t.pages?(t.isCover=kt(".page-wrapper[page="+t.currentPage+"]").width(),t.currentPage%2==0?t.numberPositions=30*t.currentPage:t.numberPositions=30*(t.currentPage-1)):(t.isCover=0,t.currentPage%2==0?t.numberPositions=30*t.currentPage:t.numberPositions=30*(t.currentPage-1))})),kt("#flipbook").bind("turned",(function(e,a,i){t.cleanClickPages()}));for(var a=this.loadedPages;a<this.pages;a++){var i=kt("#flipbook").turn("pages")+1,o=kt('<div><img class="img-book" width="100%" src="'+this.apiUrl+"/api/builder/getplaceholder/"+this.product_id+"?page="+a+"&w="+this.bookDimensions.widthPlaceholder+'&pw=0&noCache=true" alt=""><div class="loading-bg"><div class="loading book-loading"></div></div> </div>');kt("#flipbook").turn("addPage",o),kt("#flipbook").turn("pages",i)}
1322
1351
  //self.cleanClickPages();
1323
1352
  }
1324
1353
  // Habilitar passagem via o dedo
1325
- yt(document).keydown((function(t){switch(t.keyCode){case 37:d("#flipbook").turn("previous");break;case 39:d("#flipbook").turn("next")}})),this.started()},cleanClickPages:function(){yt("#flipbook .even").each((function(){yt(this).parents().eq(1).off("click");// Remove the click event handler from parent element
1354
+ kt(document).keydown((function(t){switch(t.keyCode){case 37:d("#flipbook").turn("previous");break;case 39:d("#flipbook").turn("next")}})),this.started()},cleanClickPages:function(){kt("#flipbook .even").each((function(){kt(this).parents().eq(1).off("click");// Remove the click event handler from parent element
1326
1355
  })),
1327
1356
  // Resetting the click event for odd elements
1328
- yt("#flipbook .odd").each((function(){yt(this).parents().eq(1).off("click");// Remove the click event handler from parent element
1329
- })),yt("#flipbook .even").each((function(){yt(this).parents().eq(1).click((function(){yt("#flipbook").turn("previous")}))})),yt("#flipbook .odd").each((function(){yt(this).parents().eq(1).click((function(){yt("#flipbook").turn("next")}))}))},toTheLeft:function(){yt("#flipbook").turn("previous")},toTheRight:function(){yt("#flipbook").turn("next")},zoomTo:function(t){setTimeout((function(){yt(".flipbook-container").data().regionClicked?yt(".flipbook-container").data().regionClicked=!1:1==yt(".flipbook-container").zoom("value")?yt(".flipbook-container").zoom("zoomIn",t):yt(".flipbook-container").zoom("zoomOut")}),1)},activateZoom:function(){var t=this;yt(".flipbook-container").zoom({flipbook:yt("#flipbook"),max:function(){return 1452/yt("#flipbook").width()},when:{swipeLeft:function(){yt(this).zoom("flipbook").turn("next")},swipeRight:function(){yt(this).zoom("flipbook").turn("previous")},resize:function(t,e,a,i){
1357
+ kt("#flipbook .odd").each((function(){kt(this).parents().eq(1).off("click");// Remove the click event handler from parent element
1358
+ })),kt("#flipbook .even").each((function(){kt(this).parents().eq(1).click((function(){kt("#flipbook").turn("previous")}))})),kt("#flipbook .odd").each((function(){kt(this).parents().eq(1).click((function(){kt("#flipbook").turn("next")}))}))},toTheLeft:function(){kt("#flipbook").turn("previous")},toTheRight:function(){kt("#flipbook").turn("next")},zoomTo:function(t){setTimeout((function(){kt(".flipbook-container").data().regionClicked?kt(".flipbook-container").data().regionClicked=!1:1==kt(".flipbook-container").zoom("value")?kt(".flipbook-container").zoom("zoomIn",t):kt(".flipbook-container").zoom("zoomOut")}),1)},activateZoom:function(){var t=this;kt(".flipbook-container").zoom({flipbook:kt("#flipbook"),max:function(){return 1452/kt("#flipbook").width()},when:{swipeLeft:function(){kt(this).zoom("flipbook").turn("next")},swipeRight:function(){kt(this).zoom("flipbook").turn("previous")},resize:function(t,e,a,i){
1330
1359
  // if (scale==1)
1331
1360
  // loadSmallPage(page, pageElement);
1332
1361
  // else
1333
1362
  // loadLargePage(page, pageElement);
1334
- },zoomIn:function(){yt(".flipbook-container").removeClass("zoom-in"),yt(".flipbook-container").removeClass("zoom-out"),yt(".flipbook-container").addClass("zoom-in")},zoomOut:function(){yt(".flipbook-container").removeClass("zoom-in"),yt(".flipbook-container").removeClass("zoom-out"),yt(".flipbook-container").addClass("zoom-out"),
1363
+ },zoomIn:function(){kt(".flipbook-container").removeClass("zoom-in"),kt(".flipbook-container").removeClass("zoom-out"),kt(".flipbook-container").addClass("zoom-in")},zoomOut:function(){kt(".flipbook-container").removeClass("zoom-in"),kt(".flipbook-container").removeClass("zoom-out"),kt(".flipbook-container").addClass("zoom-out"),
1335
1364
  // $('.exit-message').hide();
1336
1365
  // $('.thumbnails').fadeIn();
1337
1366
  // $('.made').fadeIn();
1338
1367
  // $('.zoom-icon').removeClass('zoom-icon-out').addClass('zoom-icon-in');
1339
- setTimeout((function(){yt("#flipbook").addClass("animated").removeClass("zoom-in"),t.resizeViewport()}),0)}}}),
1368
+ setTimeout((function(){kt("#flipbook").addClass("animated").removeClass("zoom-in"),t.resizeViewport()}),0)}}}),
1340
1369
  // Zoom event
1341
- yt.isTouch?yt(".flipbook-container").bind("zoom.doubleTap",t.zoomTo):yt(".flipbook-container").bind("zoom.tap",t.zoomTo)},resizeViewport:function(){var t=self.resize(),e=t.width,a=t.height,i=yt("#flipbook").turn("options");if(yt("#flipbook").removeClass("animated"),yt(".flipbook-container").css({width:e,height:a}).zoom("resize"),1==yt("#flipbook").turn("zoom")){var o=calculateBound({width:i.width,height:i.height,boundWidth:Math.min(i.width,e),boundHeight:Math.min(i.height,a)});o.width%2!=0&&(o.width-=1),o.width==yt("#flipbook").width()&&o.height==yt("#flipbook").height()||(yt("#flipbook").turn("size",o.width,o.height),1==yt("#flipbook").turn("page")&&yt("#flipbook").turn("peel","br")),yt("#flipbook").css({top:-o.height/2,left:-o.width/2})}
1370
+ kt.isTouch?kt(".flipbook-container").bind("zoom.doubleTap",t.zoomTo):kt(".flipbook-container").bind("zoom.tap",t.zoomTo)},resizeViewport:function(){var t=self.resize(),e=t.width,a=t.height,i=kt("#flipbook").turn("options");if(kt("#flipbook").removeClass("animated"),kt(".flipbook-container").css({width:e,height:a}).zoom("resize"),1==kt("#flipbook").turn("zoom")){var o=calculateBound({width:i.width,height:i.height,boundWidth:Math.min(i.width,e),boundHeight:Math.min(i.height,a)});o.width%2!=0&&(o.width-=1),o.width==kt("#flipbook").width()&&o.height==kt("#flipbook").height()||(kt("#flipbook").turn("size",o.width,o.height),1==kt("#flipbook").turn("page")&&kt("#flipbook").turn("peel","br")),kt("#flipbook").css({top:-o.height/2,left:-o.width/2})}
1342
1371
  // var magazineOffset = $('#flipbook').offset(),
1343
1372
  // boundH = height - magazineOffset.top - $('#flipbook').height(),
1344
1373
  // marginTop = (boundH - $('.thumbnails > div').height()) / 2;
@@ -1352,7 +1381,7 @@ yt.isTouch?yt(".flipbook-container").bind("zoom.doubleTap",t.zoomTo):yt(".flipbo
1352
1381
  // $('.made').hide();
1353
1382
  // else
1354
1383
  // $('.made').show();
1355
- yt("#flipbook").addClass("animated")},morePages:function(){for(var t=this.loadedPages+1;t<=this.loadedPages+4;t++)this.addPage(t,yt("#flipbook"));this.cleanClickPages(),
1384
+ kt("#flipbook").addClass("animated")},morePages:function(){for(var t=this.loadedPages+1;t<=this.loadedPages+4;t++)this.addPage(t,kt("#flipbook"));this.cleanClickPages(),
1356
1385
  // $("#flipbook .even").each(function () {
1357
1386
  // $(this)
1358
1387
  // .parents()
@@ -1369,23 +1398,23 @@ yt("#flipbook").addClass("animated")},morePages:function(){for(var t=this.loaded
1369
1398
  // //$("#flipbook").turn("next");
1370
1399
  // });
1371
1400
  // });
1372
- this.loadedPages=this.loadedPages+4},addPage:function(t,e){if(e.turn("hasPage",t)&&t<=this.pages){var a=yt("<div />",{class:"hard"}).html('<img class="img-book loading-blur" width="100%" src="https://dka04237waacy.cloudfront.net/api/builder/getplaceholder/'+this.product_id+"?page="+t+"&w="+this.bookDimensions.widthPlaceholder+'&pw=0" alt=""><div class="loading-bg"><div class="loading book-loading"></div></div>');e.turn("addPage",a,t);var i=this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w="+this.bookDimensions.width+"&v=0";kt.get(i,{progress:!1,responseType:"arraybuffer"}).then((function(t){var e=new Buffer.from(t.data,"binary").toString("base64");a.html("<img width='100%' src='data:image/png;base64,"+e+"'>")}))}},resize:function(){var t=0;document.getElementsByClassName("bottom-bar").length>0&&(t=document.getElementsByClassName("bottom-bar")[0].offsetHeight);var e=751,a=.88*yt(window).height();"square"==this.formato&&(a=1.2*yt(window).height());var i,o=a-t,r=i=1064*(100*o/e)/100;
1401
+ this.loadedPages=this.loadedPages+4},addPage:function(t,e){if(e.turn("hasPage",t)&&t<=this.pages){var a=kt("<div />",{class:"hard"}).html('<img class="img-book loading-blur" width="100%" src="https://dka04237waacy.cloudfront.net/api/builder/getplaceholder/'+this.product_id+"?page="+t+"&w="+this.bookDimensions.widthPlaceholder+'&pw=0" alt=""><div class="loading-bg"><div class="loading book-loading"></div></div>');e.turn("addPage",a,t);var i=this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w="+this.bookDimensions.width+"&v=0";zt.get(i,{progress:!1,responseType:"arraybuffer"}).then((function(t){var e=new Buffer.from(t.data,"binary").toString("base64");a.html("<img width='100%' src='data:image/png;base64,"+e+"'>")}))}},resize:function(){var t=0;document.getElementsByClassName("bottom-bar").length>0&&(t=document.getElementsByClassName("bottom-bar")[0].offsetHeight);var e=751,a=.88*kt(window).height();"square"==this.formato&&(a=1.2*kt(window).height());var i,o=a-t,r=i=1064*(100*o/e)/100;
1373
1402
  // Contas porcentagem
1374
- "square"==this.book_format&&(t=48,document.getElementsByClassName("bottom-bar").length>0&&(t=document.getElementsByClassName("bottom-bar")[0].offsetHeight+48),o=a-t,a-=640,r=i=960*(100*o/(e=642))/100,o=i/2,this.bookDimensions.width=r);return 1===this.currentPage?this.isCover=-yt(".page-wrapper[page="+this.currentPage+"]").width():this.currentPage===this.pages?this.isCover=yt(".page-wrapper[page="+this.currentPage+"]").width():this.isCover=0,{width:r,height:o}}},beforeDestroy:function(){
1403
+ "square"==this.book_format&&(t=48,document.getElementsByClassName("bottom-bar").length>0&&(t=document.getElementsByClassName("bottom-bar")[0].offsetHeight+48),o=a-t,a-=640,r=i=960*(100*o/(e=642))/100,o=i/2,this.bookDimensions.width=r);return 1===this.currentPage?this.isCover=-kt(".page-wrapper[page="+this.currentPage+"]").width():this.currentPage===this.pages?this.isCover=kt(".page-wrapper[page="+this.currentPage+"]").width():this.isCover=0,{width:r,height:o}}},beforeDestroy:function(){
1375
1404
  // Clean up imported modules
1376
1405
  // Assuming the imported modules have global side effects, you can remove them from the window object
1377
1406
  delete window.turn,delete window.Zoom,
1378
1407
  // Clean up jQuery instance
1379
1408
  // Assuming you have assigned the jQuery instance to the global window object, you can remove it
1380
- delete window.$,this.isLoading=!0},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}},watch:{goToPage:function(t){var e=this;t==e.dedication_page&&(yt("#flipbook").turn("page",t,{animate:!0}),yt("#flipbook").bind("turned",(function(a,i,o){yt("#flipbook").length>0&&t==e.dedication_page&&yt("#flipbook .page-wrapper[page='"+t+"'] .p"+t+" img").attr("src",this.lang.urlBuilder+"/api/builder/getpreview/"+e.uuid+"?page="+t+"&w=800&noCache=true&v=0&random="+Math.random())})),yt("#flipbook .page-wrapper[page='"+t+"'] .p"+t+" img")&&yt("#flipbook .page-wrapper[page='"+t+"'] .p"+t+" img").attr("src",this.lang.urlBuilder+"/api/builder/getpreview/"+e.uuid+"?page="+t+"&w=800&noCache=true&v=0&random="+Math.random()))}}},"data-v-112fcf9b",!1,void 0,!1,x,void 0,void 0),_t=d,Ct=require("axios"),Mt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-page",class:t.isLoading?"":"preview-loading",attrs:{id:"previewMobile"}},[t.isLoading?t._e():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._v(" "),a("div",{class:t.isLoading?"":"invisible"},[a("div",{staticClass:"block-preview-mobile"},[a("div",{staticClass:"list-mobile",attrs:{id:"list-mobile"}},[a("div",{staticClass:"mobile-shelf",class:t.mobileStopped?"active":"",style:{width:251.5*t.pageNum+"px"}},t._l(t.pagesToRender,(function(e,i){return a("div",{key:i,staticClass:"mini-cover",class:e.isLoaded?"":"is-loading",attrs:{id:"page-"+i}},[a("img",{staticClass:"img-book",attrs:{width:"100%",src:e.url,alt:""}}),t._v(" "),e.isLoaded?t._e():a("div",{staticClass:"loading-bg"},[a("div",{staticClass:"loading book-loading"})]),t._v(" "),a("span",{staticClass:"scrollable-preview-page-shadow"})])})),0)])]),t._v(" "),t.zoomActive?a("div",{directives:[{name:"style",rawName:"v-style",value:"margin-top:"+t.marginMenu+"px",expression:"'margin-top:' + marginMenu + 'px'"}],staticClass:"zoom",style:{marginTop:"-"+t.marginMenu+"px"}},[a("div",{staticClass:"top-zoom"},[a("div",{staticClass:"close",on:{click:function(e){return t.closeZoom()}}},[a("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5607 8.43934C9.97487 7.85355 9.02513 7.85355 8.43934 8.43934C7.85355 9.02513 7.85355 9.97487 8.43934 10.5607L14.0962 16.2175L8.43937 21.8744C7.85358 22.4602 7.85358 23.4099 8.43937 23.9957C9.02516 24.5815 9.9749 24.5815 10.5607 23.9957L16.2175 18.3388L21.8744 23.9957C22.4602 24.5815 23.4099 24.5815 23.9957 23.9957C24.5815 23.4099 24.5815 22.4602 23.9957 21.8744L18.3388 16.2175L23.9957 10.5607C24.5815 9.97487 24.5815 9.02513 23.9957 8.43934C23.4099 7.85355 22.4602 7.85355 21.8744 8.43934L16.2175 14.0962L10.5607 8.43934Z"}})])]),t._v(" "),a("div",{staticClass:"toggle"},[a("div",{staticClass:"one-page",class:1===t.zoomSettings.slidesToShow?"active":"inactive",on:{click:function(e){return t.setFormatZoom(1)}}},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 5.58678C18 4.71042 17.2138 4 16.2439 4L7.7561 4C6.78623 4 6 4.71042 6 5.58678L6 18.4132C6 19.2896 6.78623 20 7.7561 20L16.2439 20C17.2138 20 18 19.2896 18 18.4132L18 5.58678ZM16.2439 18.4132L16.2439 5.58678L7.7561 5.58678L7.7561 18.4132L16.2439 18.4132Z"}})])]),t._v(" "),a("div",{staticClass:"many-pages",class:2===t.zoomSettings.slidesToShow?"active":"inactive",on:{click:function(e){return t.setFormatZoom(2)}}},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 5.58678C21 4.71042 20.2674 4 19.3636 4L12.9545 4C12.0508 4 11.3182 4.71042 11.3182 5.58678L11.3182 18.4132C11.3182 19.2896 12.0508 20 12.9545 20L19.3636 20C20.2674 20 21 19.2896 21 18.4132L21 5.58678ZM19.3636 18.4132L19.3636 5.58678L12.9545 5.58678L12.9545 18.4132L19.3636 18.4132Z"}}),t._v(" "),a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.6818 5.58678C12.6818 4.71042 11.9492 4 11.0455 4L4.63636 4C3.73262 4 3 4.71042 3 5.58678L3 18.4132C3 19.2896 3.73262 20 4.63636 20L11.0455 20C11.9492 20 12.6818 19.2896 12.6818 18.4132L12.6818 5.58678ZM11.0455 18.4132L11.0455 5.58678L4.63636 5.58678L4.63636 18.4132L11.0455 18.4132Z"}})])])])]),t._v(" "),t.zoomActive?a("div",{staticClass:"carousel"},[a("VueSlickCarousel",t._b({attrs:{infinite:!1,lazyLoad:"progressive"},on:{beforeChange:t.changeZoom},scopedSlots:t._u([{key:"prevArrow",fn:function(e){return[a("div",{staticClass:"custom-arrow"},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M12.136 7.52267C12.5628 7.09594 13.2546 7.09594 13.6814 7.52267C14.1081 7.94941 14.1081 8.64128 13.6814 9.06802L9.818 12.9314C9.39127 13.3581 8.69939 13.3581 8.27266 12.9314C7.84592 12.5046 7.84592 11.8128 8.27266 11.386L12.136 7.52267Z"}}),t._v(" "),a("path",{attrs:{d:"M13.6814 15.2106C14.1081 15.6373 14.1081 16.3292 13.6814 16.7559C13.2546 17.1827 12.5628 17.1827 12.136 16.7559L8.27266 12.8926C7.84592 12.4658 7.84592 11.7739 8.27266 11.3472C8.69939 10.9205 9.39127 10.9205 9.818 11.3472L13.6814 15.2106Z"}})])])]}},{key:"nextArrow",fn:function(e){return[a("div",{staticClass:"custom-arrow"},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M11.864 16.4773C11.4372 16.9041 10.7453 16.9041 10.3186 16.4773C9.89187 16.0506 9.89187 15.3587 10.3186 14.932L14.182 11.0686C14.6087 10.6419 15.3006 10.6419 15.7273 11.0686C16.154 11.4954 16.154 12.1872 15.7273 12.614L11.864 16.4773Z"}}),t._v(" "),a("path",{attrs:{d:"M10.3186 8.78943C9.8919 8.36269 9.8919 7.67082 10.3186 7.24408C10.7454 6.81735 11.4372 6.81735 11.864 7.24408L15.7273 11.1074C16.1541 11.5342 16.1541 12.2261 15.7273 12.6528C15.3006 13.0795 14.6087 13.0795 14.182 12.6528L10.3186 8.78943Z"}})])])]}}],null,!1,1487813583)},"VueSlickCarousel",t.zoomSettings,!1),[t._v(" "),t._v(" "),t._l(t.pagesZoom,(function(e,i){return a("div",{key:i,staticClass:"mini-cover-zoom",attrs:{id:"page-"+i}},[a("img",{staticClass:"img-book",class:e.isLoaded?"":"book-is-loading",attrs:{width:"100%",src:e.url,alt:""}}),t._v(" "),e.isLoaded?t._e():a("div",{staticClass:"loading-bg-mobile"},[a("div",{staticClass:"loading book-loading"})])])}))],2)],1):t._e(),t._v(" "),a("div",{staticClass:"page-count"},[a("span",[t._v(t._s(t.lang.pages)+" "+t._s(t.currentPage+1)+"\n\t\t\t\t\t"),2===t.zoomSettings.slidesToShow?a("span",[t._v("- "+t._s(t.currentPage+2))]):t._e()]),t._v("\n\t\t\t\t/ "+t._s(t.pageNum)+"\n\t\t\t")])]):t._e()])])},staticRenderFns:[]},(function(t){t&&(t("data-v-38bd5bae_0",{source:'.storybook-6{width:columns("lg", 6)}.storybook-12{width:columns("lg", 12)}.storybook-25{width:columns("lg", 25)}',map:void 0,media:void 0}),t("data-v-38bd5bae_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-38bd5bae]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-38bd5bae]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-38bd5bae]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-38bd5bae]{font-size:14px}}@media (min-width:1024px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-38bd5bae]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-38bd5bae]{font-size:1.56vw}}html[data-v-38bd5bae]{box-sizing:border-box}*[data-v-38bd5bae],[data-v-38bd5bae]::after,[data-v-38bd5bae]::before{box-sizing:border-box}.invisible[data-v-38bd5bae]{opacity:0}.block-preview-mobile #page-0[data-v-38bd5bae]{margin-left:20px}.scrollable-preview-page-shadow[data-v-38bd5bae]:nth-child(odd){height:100%;width:100%;display:block;position:absolute;top:0;left:0;-webkit-box-shadow:-5px 7px 10px -4px rgba(0,0,0,.26);box-shadow:-5px 7px 10px -4px rgba(0,0,0,.26);z-index:2}.scrollable-preview-page-shadow[data-v-38bd5bae]:nth-child(even){height:100%;width:100%;display:block;position:absolute;top:0;left:0;-webkit-box-shadow:5px 7px 10px -4px rgba(0,0,0,.26);box-shadow:5px 7px 10px -4px rgba(0,0,0,.26)}.book-is-loading[data-v-38bd5bae]{filter:blur(8px);-webkit-filter:blur(8px)}.mini-cover-zoom[data-v-38bd5bae]{width:100%;display:inline-block;position:relative}.carousel .slick-list[data-v-38bd5bae]{width:100%!important}[data-v-38bd5bae] .slick-list{width:100%!important}.slick-list[data-v-38bd5bae]{width:100%!important}.slick-list[data-v-38bd5bae]{width:100%!important}.slick-list[data-v-38bd5bae]{width:100%!important}.img-book[data-v-38bd5bae]{position:relative;z-index:2}@keyframes shake-data-v-38bd5bae{0%{-webkit-transform:translateX(0);transform:translateX(0)}10%{-webkit-transform:translateX(20px);transform:translateX(20px)}20%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes shake-data-v-38bd5bae{0%{-webkit-transform:translateX(0)}40%{-webkit-transform:translateX(20px)}50%{-webkit-transform:translateX(0)}60%{-webkit-transform:translateX(20px)}100%{-webkit-transform:translateX(0)}}.loading-box[data-v-38bd5bae]{position:relative;left:0;right:0;bottom:0;margin-bottom:auto;margin-top:auto;z-index:9999;text-align:center;font-family:Roboto;position:absolute;top:-5%;bottom:0;margin-top:auto;margin-bottom:auto;height:120px}.loading-box #loading[data-v-38bd5bae]{display:inline-block;border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:80px;height:80px;animation:spin-data-v-38bd5bae .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-38bd5bae]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:80px;height:80px;font-family:Roboto}}@keyframes spin-data-v-38bd5bae{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-38bd5bae]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-38bd5bae]{font-size:14px;margin-top:8px;font-weight:400;color:#afa2ba;font-family:Nunito}.slick-prev[data-v-38bd5bae]{left:15px;z-index:2;position:absolute;width:35px;height:35px;background-color:rgba(0,0,0,.4);border-radius:50px;text-align:center;display:flex;top:0;bottom:0;margin-top:auto;margin-bottom:auto}.slick-prev svg[data-v-38bd5bae]{position:absolute;margin:auto;top:2px;bottom:0;right:0;left:0}.slick-prev svg path[data-v-38bd5bae]{fill:#fff}.slick-prev svg rect[data-v-38bd5bae]{fill:#fff}.slick-next[data-v-38bd5bae]{right:15px;z-index:2;position:absolute;width:35px;height:35px;background-color:rgba(0,0,0,.4);border-radius:50px;text-align:center;display:flex;top:0;bottom:0;margin-top:auto;margin-bottom:auto}.slick-next svg[data-v-38bd5bae]{position:absolute;margin:auto;top:2px;bottom:0;right:0;left:0}.slick-next svg path[data-v-38bd5bae]{fill:#fff}.slick-next svg rect[data-v-38bd5bae]{fill:#fff}.page-count[data-v-38bd5bae]{color:#68596e;font-family:Nunito,sans-serif;text-align:center;font-size:1.5238095238rem;font-size:14px;font-weight:700;margin-top:5px}.page-count span[data-v-38bd5bae]{color:#fff}.zoom[data-v-38bd5bae]{background-color:rgba(0,0,0,.8);position:absolute;width:100%;min-height:100vh;top:0;left:0;z-index:25;padding-bottom:20px;z-index:25}.zoom .top-zoom[data-v-38bd5bae]{position:relative;height:4.2857142857rem}.zoom .top-zoom .close[data-v-38bd5bae]{width:13.8888888889vw;padding:8px;float:left;z-index:2;cursor:pointer}.zoom .top-zoom .close svg path[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .close svg rect[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle[data-v-38bd5bae]{padding-right:4px;display:flex;float:right}.zoom .top-zoom .toggle .one-page[data-v-38bd5bae]{cursor:pointer;display:flex;height:35px;width:35px;border-radius:4px;background-color:#505050;margin-bottom:8px;margin-top:8px;margin-left:8px;align-items:center}.zoom .top-zoom .toggle .one-page svg[data-v-38bd5bae]{display:block;margin:0 auto}.zoom .top-zoom .toggle .one-page svg path[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .one-page svg rect[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .one-page.active[data-v-38bd5bae]{background-color:#999}.zoom .top-zoom .toggle .one-page.active svg[data-v-38bd5bae]{display:block;margin:0 auto}.zoom .top-zoom .toggle .one-page.active svg path[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle .one-page.active svg rect[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle .many-pages[data-v-38bd5bae]{cursor:pointer;display:flex;height:35px;width:35px;border-radius:4px;background-color:#505050;margin-bottom:8px;margin-top:8px;margin-left:8px;align-items:center}.zoom .top-zoom .toggle .many-pages svg[data-v-38bd5bae]{display:block;margin:0 auto}.zoom .top-zoom .toggle .many-pages svg path[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .many-pages svg rect[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .many-pages.active[data-v-38bd5bae]{background-color:#999}.zoom .top-zoom .toggle .many-pages.active svg path[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle .many-pages.active svg rect[data-v-38bd5bae]{fill:#fff}.scope[data-v-38bd5bae]{background-color:#12d3db;position:absolute;padding:1.3333333333rem 1.4285714286rem;bottom:5px;right:16px;z-index:10;border-radius:500px;-webkit-box-shadow:0 10px 20px 0 #afa2ba;box-shadow:0 10px 20px 0 #afa2ba;z-index:2}.scope svg path[data-v-38bd5bae]{fill:#fff}.preview-page[data-v-38bd5bae]{position:relative;z-index:9;background-color:#f8f7fc}.block-preview-mobile[data-v-38bd5bae]{position:relative;max-width:1024px}.list-mobile[data-v-38bd5bae]{width:100%;overflow-x:scroll;text-align:left;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.list-mobile .mobile-shelf[data-v-38bd5bae]{padding-bottom:2.2429906542rem}@media (max-width:479px){.list-mobile .mobile-shelf[data-v-38bd5bae]{padding-top:2.2429906542rem;padding-bottom:2.2429906542rem;min-height:28.0373831776rem}}.list-mobile .mobile-shelf.active[data-v-38bd5bae]{-webkit-animation:shake-data-v-38bd5bae 1.6s ease-in-out infinite;animation:shake-data-v-38bd5bae 1.6s ease-in-out infinite}.mini-cover[data-v-38bd5bae]{display:inline-block;max-width:242px;position:relative;width:100%;text-align:left;margin-right:16px}.mini-cover.is-loading img[data-v-38bd5bae]{filter:blur(4px);background:rgba(104,89,110,.8)}.mini-cover[data-v-38bd5bae]:first-child{margin-right:16px}.mini-cover[data-v-38bd5bae]:nth-child(odd){margin-left:0}.mini-cover[data-v-38bd5bae]:nth-child(odd):before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(8%,transparent));background-image:linear-gradient(to right,#000,transparent 8%);opacity:.15;z-index:10}.mini-cover[data-v-38bd5bae]:nth-child(even){margin-right:0}.mini-cover[data-v-38bd5bae]:nth-child(even):before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(4%,transparent));background-image:linear-gradient(to left,#000,transparent 4%);opacity:.15;z-index:10}.mini-cover img[data-v-38bd5bae]{width:100%;filter:none!important;-webkit-filter:none!important;max-height:437px;display:block}hr[data-v-38bd5bae]{margin:10px -1.5rem}h1[data-v-38bd5bae]{font-family:Nunito;font-size:24px;font-weight:900;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#000;margin-top:0;margin-bottom:15px}h1[data-v-38bd5bae]:first-child{display:none}.ddh-sidebar[data-v-38bd5bae],.ddh-sidebar.hide-sidebar[data-v-38bd5bae]{display:none!important}html[data-v-38bd5bae]{--scale:1;--translate:0%}.loading-bg-mobile[data-v-38bd5bae]{display:block;width:100%;height:100%;position:absolute;top:0;opacity:.65;display:flex;align-items:center;justify-content:center;z-index:4;filter:blur(4px)}.loading-bg-mobile .loading[data-v-38bd5bae]{border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-38bd5bae .6s linear infinite}@media (max-width:479px){.loading-bg-mobile .loading[data-v-38bd5bae]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:3.738317757rem;height:3.738317757rem}}@keyframes spin-data-v-38bd5bae{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-bg[data-v-38bd5bae]{background-color:#fff;display:block;width:100%;height:100%;position:absolute;top:0;opacity:.65;display:flex;align-items:center;justify-content:center;z-index:999}.loading-bg .loading[data-v-38bd5bae]{border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-38bd5bae .6s linear infinite}@media (max-width:479px){.loading-bg .loading[data-v-38bd5bae]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:3.738317757rem;height:3.738317757rem}}@keyframes spin-data-v-38bd5bae{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-view[data-v-38bd5bae]{position:absolute;top:0;width:100%;height:100%;background:#fff;position:absolute;width:100%;top:0;z-index:200;display:flex;align-items:center;justify-content:center;flex-direction:column}.return[data-v-38bd5bae]{position:fixed;z-index:99}.return .icon[data-v-38bd5bae]{width:38px;height:38px;position:absolute;z-index:30;padding:.95238rem 2.77778vw}.return .icon svg[data-v-38bd5bae]{width:38px;height:38px}.return .icon svg path[data-v-38bd5bae]{fill:#afa2ba!important;stroke:#afa2ba!important;transition:all .1s cubic-bezier(.4,0,.2,1)}.return .icon[data-v-38bd5bae]:hover{cursor:pointer}.return .icon:hover path[data-v-38bd5bae],.return .icon:hover svg[data-v-38bd5bae]{fill:#1ad3d9!important;stroke:#1ad3d9!important}.return .icon:active svg[data-v-38bd5bae]{transform:scale(.9)}',map:void 0,media:void 0}))}),{name:"PreviewMobile",components:{VueSlickCarousel:l,Icon:C},props:{uuid:{type:String,required:!0},
1409
+ delete window.$,this.isLoading=!0},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}},watch:{goToPage:function(t){var e=this;t==e.dedication_page&&(kt("#flipbook").turn("page",t,{animate:!0}),kt("#flipbook").bind("turned",(function(a,i,o){kt("#flipbook").length>0&&t==e.dedication_page&&kt("#flipbook .page-wrapper[page='"+t+"'] .p"+t+" img").attr("src",this.lang.urlBuilder+"/api/builder/getpreview/"+e.uuid+"?page="+t+"&w=800&noCache=true&v=0&random="+Math.random())})),kt("#flipbook .page-wrapper[page='"+t+"'] .p"+t+" img")&&kt("#flipbook .page-wrapper[page='"+t+"'] .p"+t+" img").attr("src",this.lang.urlBuilder+"/api/builder/getpreview/"+e.uuid+"?page="+t+"&w=800&noCache=true&v=0&random="+Math.random()))}}},"data-v-112fcf9b",!1,void 0,!1,x,void 0,void 0),Ct=d,Mt=require("axios"),Pt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-page",class:t.isLoading?"":"preview-loading",attrs:{id:"previewMobile"}},[t.isLoading?t._e():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._v(" "),a("div",{class:t.isLoading?"":"invisible"},[a("div",{staticClass:"block-preview-mobile"},[a("div",{staticClass:"list-mobile",attrs:{id:"list-mobile"}},[a("div",{staticClass:"mobile-shelf",class:t.mobileStopped?"active":"",style:{width:251.5*t.pageNum+"px"}},t._l(t.pagesToRender,(function(e,i){return a("div",{key:i,staticClass:"mini-cover",class:e.isLoaded?"":"is-loading",attrs:{id:"page-"+i}},[a("img",{staticClass:"img-book",attrs:{width:"100%",src:e.url,alt:""}}),t._v(" "),e.isLoaded?t._e():a("div",{staticClass:"loading-bg"},[a("div",{staticClass:"loading book-loading"})]),t._v(" "),a("span",{staticClass:"scrollable-preview-page-shadow"})])})),0)])]),t._v(" "),t.zoomActive?a("div",{directives:[{name:"style",rawName:"v-style",value:"margin-top:"+t.marginMenu+"px",expression:"'margin-top:' + marginMenu + 'px'"}],staticClass:"zoom",style:{marginTop:"-"+t.marginMenu+"px"}},[a("div",{staticClass:"top-zoom"},[a("div",{staticClass:"close",on:{click:function(e){return t.closeZoom()}}},[a("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5607 8.43934C9.97487 7.85355 9.02513 7.85355 8.43934 8.43934C7.85355 9.02513 7.85355 9.97487 8.43934 10.5607L14.0962 16.2175L8.43937 21.8744C7.85358 22.4602 7.85358 23.4099 8.43937 23.9957C9.02516 24.5815 9.9749 24.5815 10.5607 23.9957L16.2175 18.3388L21.8744 23.9957C22.4602 24.5815 23.4099 24.5815 23.9957 23.9957C24.5815 23.4099 24.5815 22.4602 23.9957 21.8744L18.3388 16.2175L23.9957 10.5607C24.5815 9.97487 24.5815 9.02513 23.9957 8.43934C23.4099 7.85355 22.4602 7.85355 21.8744 8.43934L16.2175 14.0962L10.5607 8.43934Z"}})])]),t._v(" "),a("div",{staticClass:"toggle"},[a("div",{staticClass:"one-page",class:1===t.zoomSettings.slidesToShow?"active":"inactive",on:{click:function(e){return t.setFormatZoom(1)}}},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 5.58678C18 4.71042 17.2138 4 16.2439 4L7.7561 4C6.78623 4 6 4.71042 6 5.58678L6 18.4132C6 19.2896 6.78623 20 7.7561 20L16.2439 20C17.2138 20 18 19.2896 18 18.4132L18 5.58678ZM16.2439 18.4132L16.2439 5.58678L7.7561 5.58678L7.7561 18.4132L16.2439 18.4132Z"}})])]),t._v(" "),a("div",{staticClass:"many-pages",class:2===t.zoomSettings.slidesToShow?"active":"inactive",on:{click:function(e){return t.setFormatZoom(2)}}},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 5.58678C21 4.71042 20.2674 4 19.3636 4L12.9545 4C12.0508 4 11.3182 4.71042 11.3182 5.58678L11.3182 18.4132C11.3182 19.2896 12.0508 20 12.9545 20L19.3636 20C20.2674 20 21 19.2896 21 18.4132L21 5.58678ZM19.3636 18.4132L19.3636 5.58678L12.9545 5.58678L12.9545 18.4132L19.3636 18.4132Z"}}),t._v(" "),a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.6818 5.58678C12.6818 4.71042 11.9492 4 11.0455 4L4.63636 4C3.73262 4 3 4.71042 3 5.58678L3 18.4132C3 19.2896 3.73262 20 4.63636 20L11.0455 20C11.9492 20 12.6818 19.2896 12.6818 18.4132L12.6818 5.58678ZM11.0455 18.4132L11.0455 5.58678L4.63636 5.58678L4.63636 18.4132L11.0455 18.4132Z"}})])])])]),t._v(" "),t.zoomActive?a("div",{staticClass:"carousel"},[a("VueSlickCarousel",t._b({attrs:{infinite:!1,lazyLoad:"progressive"},on:{beforeChange:t.changeZoom},scopedSlots:t._u([{key:"prevArrow",fn:function(e){return[a("div",{staticClass:"custom-arrow"},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M12.136 7.52267C12.5628 7.09594 13.2546 7.09594 13.6814 7.52267C14.1081 7.94941 14.1081 8.64128 13.6814 9.06802L9.818 12.9314C9.39127 13.3581 8.69939 13.3581 8.27266 12.9314C7.84592 12.5046 7.84592 11.8128 8.27266 11.386L12.136 7.52267Z"}}),t._v(" "),a("path",{attrs:{d:"M13.6814 15.2106C14.1081 15.6373 14.1081 16.3292 13.6814 16.7559C13.2546 17.1827 12.5628 17.1827 12.136 16.7559L8.27266 12.8926C7.84592 12.4658 7.84592 11.7739 8.27266 11.3472C8.69939 10.9205 9.39127 10.9205 9.818 11.3472L13.6814 15.2106Z"}})])])]}},{key:"nextArrow",fn:function(e){return[a("div",{staticClass:"custom-arrow"},[a("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M11.864 16.4773C11.4372 16.9041 10.7453 16.9041 10.3186 16.4773C9.89187 16.0506 9.89187 15.3587 10.3186 14.932L14.182 11.0686C14.6087 10.6419 15.3006 10.6419 15.7273 11.0686C16.154 11.4954 16.154 12.1872 15.7273 12.614L11.864 16.4773Z"}}),t._v(" "),a("path",{attrs:{d:"M10.3186 8.78943C9.8919 8.36269 9.8919 7.67082 10.3186 7.24408C10.7454 6.81735 11.4372 6.81735 11.864 7.24408L15.7273 11.1074C16.1541 11.5342 16.1541 12.2261 15.7273 12.6528C15.3006 13.0795 14.6087 13.0795 14.182 12.6528L10.3186 8.78943Z"}})])])]}}],null,!1,1487813583)},"VueSlickCarousel",t.zoomSettings,!1),[t._v(" "),t._v(" "),t._l(t.pagesZoom,(function(e,i){return a("div",{key:i,staticClass:"mini-cover-zoom",attrs:{id:"page-"+i}},[a("img",{staticClass:"img-book",class:e.isLoaded?"":"book-is-loading",attrs:{width:"100%",src:e.url,alt:""}}),t._v(" "),e.isLoaded?t._e():a("div",{staticClass:"loading-bg-mobile"},[a("div",{staticClass:"loading book-loading"})])])}))],2)],1):t._e(),t._v(" "),a("div",{staticClass:"page-count"},[a("span",[t._v(t._s(t.lang.pages)+" "+t._s(t.currentPage+1)+"\n\t\t\t\t\t"),2===t.zoomSettings.slidesToShow?a("span",[t._v("- "+t._s(t.currentPage+2))]):t._e()]),t._v("\n\t\t\t\t/ "+t._s(t.pageNum)+"\n\t\t\t")])]):t._e()])])},staticRenderFns:[]},(function(t){t&&(t("data-v-38bd5bae_0",{source:'.storybook-6{width:columns("lg", 6)}.storybook-12{width:columns("lg", 12)}.storybook-25{width:columns("lg", 25)}',map:void 0,media:void 0}),t("data-v-38bd5bae_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-38bd5bae]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-38bd5bae]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-38bd5bae]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-38bd5bae]{font-size:14px}}@media (min-width:1024px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-38bd5bae]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-38bd5bae]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-38bd5bae]{font-size:1.56vw}}html[data-v-38bd5bae]{box-sizing:border-box}*[data-v-38bd5bae],[data-v-38bd5bae]::after,[data-v-38bd5bae]::before{box-sizing:border-box}.invisible[data-v-38bd5bae]{opacity:0}.block-preview-mobile #page-0[data-v-38bd5bae]{margin-left:20px}.scrollable-preview-page-shadow[data-v-38bd5bae]:nth-child(odd){height:100%;width:100%;display:block;position:absolute;top:0;left:0;-webkit-box-shadow:-5px 7px 10px -4px rgba(0,0,0,.26);box-shadow:-5px 7px 10px -4px rgba(0,0,0,.26);z-index:2}.scrollable-preview-page-shadow[data-v-38bd5bae]:nth-child(even){height:100%;width:100%;display:block;position:absolute;top:0;left:0;-webkit-box-shadow:5px 7px 10px -4px rgba(0,0,0,.26);box-shadow:5px 7px 10px -4px rgba(0,0,0,.26)}.book-is-loading[data-v-38bd5bae]{filter:blur(8px);-webkit-filter:blur(8px)}.mini-cover-zoom[data-v-38bd5bae]{width:100%;display:inline-block;position:relative}.carousel .slick-list[data-v-38bd5bae]{width:100%!important}[data-v-38bd5bae] .slick-list{width:100%!important}.slick-list[data-v-38bd5bae]{width:100%!important}.slick-list[data-v-38bd5bae]{width:100%!important}.slick-list[data-v-38bd5bae]{width:100%!important}.img-book[data-v-38bd5bae]{position:relative;z-index:2}@keyframes shake-data-v-38bd5bae{0%{-webkit-transform:translateX(0);transform:translateX(0)}10%{-webkit-transform:translateX(20px);transform:translateX(20px)}20%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes shake-data-v-38bd5bae{0%{-webkit-transform:translateX(0)}40%{-webkit-transform:translateX(20px)}50%{-webkit-transform:translateX(0)}60%{-webkit-transform:translateX(20px)}100%{-webkit-transform:translateX(0)}}.loading-box[data-v-38bd5bae]{position:relative;left:0;right:0;bottom:0;margin-bottom:auto;margin-top:auto;z-index:9999;text-align:center;font-family:Roboto;position:absolute;top:-5%;bottom:0;margin-top:auto;margin-bottom:auto;height:120px}.loading-box #loading[data-v-38bd5bae]{display:inline-block;border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:80px;height:80px;animation:spin-data-v-38bd5bae .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-38bd5bae]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:80px;height:80px;font-family:Roboto}}@keyframes spin-data-v-38bd5bae{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-38bd5bae]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-38bd5bae]{font-size:14px;margin-top:8px;font-weight:400;color:#afa2ba;font-family:Nunito}.slick-prev[data-v-38bd5bae]{left:15px;z-index:2;position:absolute;width:35px;height:35px;background-color:rgba(0,0,0,.4);border-radius:50px;text-align:center;display:flex;top:0;bottom:0;margin-top:auto;margin-bottom:auto}.slick-prev svg[data-v-38bd5bae]{position:absolute;margin:auto;top:2px;bottom:0;right:0;left:0}.slick-prev svg path[data-v-38bd5bae]{fill:#fff}.slick-prev svg rect[data-v-38bd5bae]{fill:#fff}.slick-next[data-v-38bd5bae]{right:15px;z-index:2;position:absolute;width:35px;height:35px;background-color:rgba(0,0,0,.4);border-radius:50px;text-align:center;display:flex;top:0;bottom:0;margin-top:auto;margin-bottom:auto}.slick-next svg[data-v-38bd5bae]{position:absolute;margin:auto;top:2px;bottom:0;right:0;left:0}.slick-next svg path[data-v-38bd5bae]{fill:#fff}.slick-next svg rect[data-v-38bd5bae]{fill:#fff}.page-count[data-v-38bd5bae]{color:#68596e;font-family:Nunito,sans-serif;text-align:center;font-size:1.5238095238rem;font-size:14px;font-weight:700;margin-top:5px}.page-count span[data-v-38bd5bae]{color:#fff}.zoom[data-v-38bd5bae]{background-color:rgba(0,0,0,.8);position:absolute;width:100%;min-height:100vh;top:0;left:0;z-index:25;padding-bottom:20px;z-index:25}.zoom .top-zoom[data-v-38bd5bae]{position:relative;height:4.2857142857rem}.zoom .top-zoom .close[data-v-38bd5bae]{width:13.8888888889vw;padding:8px;float:left;z-index:2;cursor:pointer}.zoom .top-zoom .close svg path[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .close svg rect[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle[data-v-38bd5bae]{padding-right:4px;display:flex;float:right}.zoom .top-zoom .toggle .one-page[data-v-38bd5bae]{cursor:pointer;display:flex;height:35px;width:35px;border-radius:4px;background-color:#505050;margin-bottom:8px;margin-top:8px;margin-left:8px;align-items:center}.zoom .top-zoom .toggle .one-page svg[data-v-38bd5bae]{display:block;margin:0 auto}.zoom .top-zoom .toggle .one-page svg path[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .one-page svg rect[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .one-page.active[data-v-38bd5bae]{background-color:#999}.zoom .top-zoom .toggle .one-page.active svg[data-v-38bd5bae]{display:block;margin:0 auto}.zoom .top-zoom .toggle .one-page.active svg path[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle .one-page.active svg rect[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle .many-pages[data-v-38bd5bae]{cursor:pointer;display:flex;height:35px;width:35px;border-radius:4px;background-color:#505050;margin-bottom:8px;margin-top:8px;margin-left:8px;align-items:center}.zoom .top-zoom .toggle .many-pages svg[data-v-38bd5bae]{display:block;margin:0 auto}.zoom .top-zoom .toggle .many-pages svg path[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .many-pages svg rect[data-v-38bd5bae]{fill:#000}.zoom .top-zoom .toggle .many-pages.active[data-v-38bd5bae]{background-color:#999}.zoom .top-zoom .toggle .many-pages.active svg path[data-v-38bd5bae]{fill:#fff}.zoom .top-zoom .toggle .many-pages.active svg rect[data-v-38bd5bae]{fill:#fff}.scope[data-v-38bd5bae]{background-color:#12d3db;position:absolute;padding:1.3333333333rem 1.4285714286rem;bottom:5px;right:16px;z-index:10;border-radius:500px;-webkit-box-shadow:0 10px 20px 0 #afa2ba;box-shadow:0 10px 20px 0 #afa2ba;z-index:2}.scope svg path[data-v-38bd5bae]{fill:#fff}.preview-page[data-v-38bd5bae]{position:relative;z-index:9;background-color:#f8f7fc}.block-preview-mobile[data-v-38bd5bae]{position:relative;max-width:1024px}.list-mobile[data-v-38bd5bae]{width:100%;overflow-x:scroll;text-align:left;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.list-mobile .mobile-shelf[data-v-38bd5bae]{padding-bottom:2.2429906542rem}@media (max-width:479px){.list-mobile .mobile-shelf[data-v-38bd5bae]{padding-top:2.2429906542rem;padding-bottom:2.2429906542rem;min-height:28.0373831776rem}}.list-mobile .mobile-shelf.active[data-v-38bd5bae]{-webkit-animation:shake-data-v-38bd5bae 1.6s ease-in-out infinite;animation:shake-data-v-38bd5bae 1.6s ease-in-out infinite}.mini-cover[data-v-38bd5bae]{display:inline-block;max-width:242px;position:relative;width:100%;text-align:left;margin-right:16px}.mini-cover.is-loading img[data-v-38bd5bae]{filter:blur(4px);background:rgba(104,89,110,.8)}.mini-cover[data-v-38bd5bae]:first-child{margin-right:16px}.mini-cover[data-v-38bd5bae]:nth-child(odd){margin-left:0}.mini-cover[data-v-38bd5bae]:nth-child(odd):before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(8%,transparent));background-image:linear-gradient(to right,#000,transparent 8%);opacity:.15;z-index:10}.mini-cover[data-v-38bd5bae]:nth-child(even){margin-right:0}.mini-cover[data-v-38bd5bae]:nth-child(even):before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(4%,transparent));background-image:linear-gradient(to left,#000,transparent 4%);opacity:.15;z-index:10}.mini-cover img[data-v-38bd5bae]{width:100%;filter:none!important;-webkit-filter:none!important;max-height:437px;display:block}hr[data-v-38bd5bae]{margin:10px -1.5rem}h1[data-v-38bd5bae]{font-family:Nunito;font-size:24px;font-weight:900;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#000;margin-top:0;margin-bottom:15px}h1[data-v-38bd5bae]:first-child{display:none}.ddh-sidebar[data-v-38bd5bae],.ddh-sidebar.hide-sidebar[data-v-38bd5bae]{display:none!important}html[data-v-38bd5bae]{--scale:1;--translate:0%}.loading-bg-mobile[data-v-38bd5bae]{display:block;width:100%;height:100%;position:absolute;top:0;opacity:.65;display:flex;align-items:center;justify-content:center;z-index:4;filter:blur(4px)}.loading-bg-mobile .loading[data-v-38bd5bae]{border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-38bd5bae .6s linear infinite}@media (max-width:479px){.loading-bg-mobile .loading[data-v-38bd5bae]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:3.738317757rem;height:3.738317757rem}}@keyframes spin-data-v-38bd5bae{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-bg[data-v-38bd5bae]{background-color:#fff;display:block;width:100%;height:100%;position:absolute;top:0;opacity:.65;display:flex;align-items:center;justify-content:center;z-index:999}.loading-bg .loading[data-v-38bd5bae]{border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-38bd5bae .6s linear infinite}@media (max-width:479px){.loading-bg .loading[data-v-38bd5bae]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:3.738317757rem;height:3.738317757rem}}@keyframes spin-data-v-38bd5bae{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-view[data-v-38bd5bae]{position:absolute;top:0;width:100%;height:100%;background:#fff;position:absolute;width:100%;top:0;z-index:200;display:flex;align-items:center;justify-content:center;flex-direction:column}.return[data-v-38bd5bae]{position:fixed;z-index:99}.return .icon[data-v-38bd5bae]{width:38px;height:38px;position:absolute;z-index:30;padding:.95238rem 2.77778vw}.return .icon svg[data-v-38bd5bae]{width:38px;height:38px}.return .icon svg path[data-v-38bd5bae]{fill:#afa2ba!important;stroke:#afa2ba!important;transition:all .1s cubic-bezier(.4,0,.2,1)}.return .icon[data-v-38bd5bae]:hover{cursor:pointer}.return .icon:hover path[data-v-38bd5bae],.return .icon:hover svg[data-v-38bd5bae]{fill:#1ad3d9!important;stroke:#1ad3d9!important}.return .icon:active svg[data-v-38bd5bae]{transform:scale(.9)}',map:void 0,media:void 0}))}),{name:"PreviewMobile",components:{VueSlickCarousel:l,Icon:C},props:{uuid:{type:String,required:!0},
1381
1410
  /** Number of pages. `32` */
1382
1411
  pages:{type:Number,required:!0},
1383
1412
  /** Product ID. `109` */
1384
1413
  product_id:{type:Number,required:!0},
1385
1414
  /** If preloaded images are base64 formated. `false` */
1386
- 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"},goToPage:{type:Number,required:!1},dedication_page:{type:Number,required:!1}},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",Ct.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",Ct.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:{},watch:{goToPage:function(t){if(t==this.dedication_page){
1415
+ 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"},goToPage:{type:Number,required:!1},dedication_page:{type:Number,required:!1}},data:function(){var t;return V(t={mobileStopped:!0,pageNum:32,pagesToRender:[],pagesZoom:[],numberPositions:0,mobilePagePosition:0,loadedPages:3,loadedPagesZoom:1,isLoading:!1,lang:xt[this.typeLanguage],zoomActive:!1,zoomMultiPages:!1,zoomSettings:{dots:!1,focusOnSelect:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,touchThreshold:5},currentPage:0},"lang",xt[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",Mt.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",Mt.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:{},watch:{goToPage:function(t){if(t==this.dedication_page){
1387
1416
  //alert("AFF");
1388
- _t("#page-"+(t-1)+" img").attr("src",this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w=800&noCache=true&v=0&random="+Math.random());var e=_t("#page-"+(t-1))[0].offsetLeft-40;_t("#list-mobile").animate({scrollLeft:e},1e3)}}}},"data-v-38bd5bae",!1,void 0,!1,x,void 0,void 0),Pt=require("axios"),St=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-tool",class:[t.sidebarOpen?"active":"inactive",!t.isMobile&&t.toolbarAnimate?"shake":"stop-shake"],style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"backdrop",on:{click:function(e){"active"==t.sidebarOpen&&t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.sidebarOpen?"active":"inactive"],style:t.colorsVar},[a("div",{staticClass:"box-close",on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icons-close size-lg"},[t.preview_color?a("Icon",{attrs:{name:"close",fill:t.preview_color,stroke:t.preview_color,size:"md"}}):t._e()],1),t._v(" "),a("span",{staticClass:"icon icon-edit-menu size-lg"},[a("Icon",{attrs:{name:"edit",fill:"#fff",size:"md",stroke:"transparent"}})],1)]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:t.isMobile?"xs":"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.properties?a("div",{staticClass:"itens-properties"},t._l(t.properties,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.showModal(e)}}},[a("div",{staticClass:"text-list"},["nome"==e.code||24==e.property_id?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?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(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.pet))]):t._e(),t._v(" "),"numero"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label)+" - "+t._s(e.code))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Roteiro")]):t._e(),t._v(" "),"nome"==e.code||24==e.property_id?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?a("Paragraph",{staticClass:"dedication-text tool-value",attrs:{size:"sm"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.dedicationFirstEdit?"Escreva uma dedicatória":t.current_dedication_text)+"\n\t\t\t\t\t\t\t")]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e()],1),t._v(" "),a("Icon",{attrs:{name:"edit",size:"md",fill:t.preview_color,stroke:"transparent"}})],1)})),0):t._e(),t._v(" "),t.isMobile?a("Button",{staticClass:"continue-mobile-tools",attrs:{kind:"primary",size:"md",icon:"right",width:"fluid"},on:{click:t.clickContinue}},[a("Icon",{attrs:{name:"chevron-right",size:"md",stroke:"transparent"}}),t._v(" "),a("span",[t._v("Continuar")])],1):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",size:"md",bottomFixed:!1},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,maxlength:"20"},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.saveName()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),t.isMobile?t._e():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:{size:"md",heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication,bottomFixed:!1},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.current_dedication_text,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.saveDedication()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),t.isMobile?t._e():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.modalLayout?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.layouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==e?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.image,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==e?"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.modalLanguage?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.languages,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:e==t.currentLanguage?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.Image,alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.label))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLanguage==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,size:"md"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[t.selectedBirthDay?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._e(),t._v(" "),t.selectedBirthMonth?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._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.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.current_character_name+"</span> em toda a história.",size:"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[t.currentPet?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.currentPetColor.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPetColor.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-pet").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-pet").value.name=e.target.value.toUpperCase()}}})],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:"full-list",class:[t.currentPet?"active":"inactive"]},[t.listPet?a("div",{staticClass:"pet-list"},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.currentPet?a("div",{staticClass:"colors-list"},t._l(t.currentPet.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentPetColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),t.searchExtraProperty("nome-pet").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-pet").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-pet").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-mooner",attrs:{size:"lg",heading:t.currentTitleMooney,paragraph:t.currentParagraphMooney,divider:!0,headingColor:t.preview_color,haveClose:!0,bottomFixed:!1,paragraphSize:t.isMobile?"sm":"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"mooner-view"},[a("div",{staticClass:"mooner-selectors",style:t.currentMooner?"width: 60%;":""},[a("div",{staticClass:"mooney-align-center"},[a("div",{},[a("Input",{ref:"mooneyName",attrs:{label:t.lang.moonerLabel,value:t.currentMoonerName,name:"currentPetName",placeholder:"Digite o nome do mooner",maxlength:"20",error:"",helper:""},on:{input:function(e){t.currentMoonerName=e.target.value.toUpperCase()}}})],1),t._v(" "),a("label",{staticClass:"mooner-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"mooner-combo-list"},[a("div",{staticClass:"full-list",class:t.currentMooner?"active":"inactive"},[t.listMooner?a("div",{staticClass:"mooner-list",class:t.currentComboClassList},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(" "),t.currentMooner?a("div",{staticClass:"colors-list"},t._l(t.currentMooner.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentMoonerColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])])]),t._v(" "),t.currentMooner?a("div",{staticClass:"selected-mooner",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e()]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:0==t.currentMoonerName.length,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.isCreated?t.lang.moonerCtaFirstOpen:t.lang.moonerCta)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return e.preventDefault(),t.closeModal.apply(null,arguments)}}},[t._v("\n\t\t\t\t"+t._s(t.isCreated?"Escolher depois":"Fechar")+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalFantasy?a("Modal",{staticClass:"modal-fantasy",attrs:{heading:"Fantasia",headingColor:t.preview_color,paragraph:"Descrição fantasia",haveClose:!1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"fantasy-view"},[a("div",{staticClass:"selected-fantasy",class:[t.currentFantasy?"active":"inactive",t.fantasyAnimation?"fade-in-image":"inactive-pet"]},[a("div",{staticClass:"fantasy-items"},[t.currentFantasy&&t.currentFantasy.assets&&t.currentFantasy.assets.asset?a("div",{staticClass:"clip-avatar"},[t.currentFantasy.assets.asset?a("img",{class:t.fantasyInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentFantasy.assets.asset,alt:""}}):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"avatar-fantasy"},t._l(t.avatarFantasy,(function(e,i){return a("div",{key:i,staticClass:"avatar-item"},[a("img",{attrs:{src:e.assets.asset,alt:""}}),t._v(" "),a("br")])})),0)])]),t._v(" "),a("div",[a("div",{staticClass:"pet-selectors",style:t.currentFantasy?"width: 100%;":""},[a("label",{staticClass:"pet-label"},[t._v("Fatansia")]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[t.listFantasy?a("div",{staticClass:"pet-list",class:t.currentFantasy?"active":"inactive"},t._l(t.listFantasy,(function(e,i){return a("div",{key:i,class:t.currentFantasy===e?"active":"inactive",on:{click:function(a){return t.setFantasy(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.currentFantasy,inverted:!1},on:{click:function(e){return t.changeFantasyLayout()}}},[t._v("\n\t\t\t\tProntinho salvar história\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\tEscolher depois\n\t\t\t")])],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-0917965c_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-0917965c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0917965c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0917965c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0917965c]{font-size:14px}}@media (min-width:1024px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0917965c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0917965c]{font-size:1.56vw}}html[data-v-0917965c]{box-sizing:border-box}*[data-v-0917965c],[data-v-0917965c]::after,[data-v-0917965c]::before{box-sizing:border-box}.modal-pet[data-v-0917965c]{background-color:#000}.modal-pet .paragraph span[data-v-0917965c]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-pet .modal-content[data-v-0917965c]{padding-bottom:500px;overflow-y:scroll}}.modal-pet .pet-view[data-v-0917965c]{width:100%;display:flex}.modal-pet .pet-view .selected-pet[data-v-0917965c]{max-width:10.8571428571rem;width:100%;overflow:hidden}.modal-pet .pet-view .selected-pet .clip-mooney img[data-v-0917965c]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-pet .pet-view .selected-pet img[data-v-0917965c]{margin-top:-3.8095238095rem}.modal-pet .pet-view .pet-label[data-v-0917965c]{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){.modal-pet .pet-view .pet-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-pet .pet-selectors[data-v-0917965c]{width:100%}.modal-pet .pet-selectors p[data-v-0917965c]{margin:0;font-size:.7619047619rem}.modal-pet .pet-selectors .input-text-group[data-v-0917965c]{padding-bottom:0}.modal-pet .pet-selectors .pet-combo-list[data-v-0917965c]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list[data-v-0917965c]{flex-direction:column-reverse}}.modal-pet .pet-selectors .pet-combo-list .selected-pet[data-v-0917965c]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-0917965c]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-0917965c]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney img[data-v-0917965c]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-pet .pet-selectors .pet-combo-list .selected-pet img[data-v-0917965c]{margin-top:-.9523809524rem;opacity:0}.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-0917965c]{width:40%}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-0917965c]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .full-list[data-v-0917965c]{width:100%}.modal-pet .pet-selectors .pet-combo-list .full-list.active[data-v-0917965c]{width:100%}.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-0917965c]{transition:all .5s;width:100%;align-items:center;display:flex}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-0917965c]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .pet-list.inactive[data-v-0917965c]{width:100%}.modal-pet .pet-selectors .pet-combo-list .colors-list[data-v-0917965c]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-pet .pet-selectors .pet-combo-list .color-selector[data-v-0917965c]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px 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}.modal-pet .pet-selectors .pet-combo-list .color-selector .main-color[data-v-0917965c]{width:100%;height:100%;display:block}.modal-pet .pet-selectors .pet-combo-list .color-selector .auxiliary[data-v-0917965c]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-pet .pet-list[data-v-0917965c]{width:100%;display:flex}.modal-pet .pet-list div[data-v-0917965c]{margin:.2380952381rem;cursor:pointer}.modal-pet .pet-list .inactive[data-v-0917965c]{opacity:.3}.modal-pet .pet-list img[data-v-0917965c]{width:100%}.modal-mooner[data-v-0917965c]{background-color:#000}.modal-mooner .paragraph span[data-v-0917965c]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-mooner .modal-content[data-v-0917965c]{padding-bottom:500px;overflow-y:scroll}}.modal-mooner .mooner-view[data-v-0917965c]{width:100%;display:flex}.modal-mooner .mooner-view .selected-mooner[data-v-0917965c]{max-width:40%;width:100%;overflow:hidden;padding-left:1.5238095238rem;padding-right:1.5238095238rem}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner[data-v-0917965c]{margin-top:0;padding-left:0;padding-right:0;max-width:100%;display:flex;justify-content:center}.modal-mooner .mooner-view .selected-mooner div[data-v-0917965c]{max-width:60%}}.modal-mooner .mooner-view .selected-mooner .clip-mooney img[data-v-0917965c]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-mooner .mooner-view .selected-mooner img[data-v-0917965c]{display:block}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner img[data-v-0917965c]{margin-top:.380952381rem;margin-bottom:-1.5238095238rem}}.modal-mooner .mooner-view .mooner-label[data-v-0917965c]{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){.modal-mooner .mooner-view .mooner-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-mooner[data-v-0917965c] .modal-header-content b{font-weight:700!important;color:var(--preview-color)!important}.modal-mooner .mooner-selectors[data-v-0917965c]{width:100%;display:flex;align-items:center}@media (max-width:990px){.modal-mooner .mooner-selectors[data-v-0917965c]{width:100%!important}}.modal-mooner .mooner-selectors p[data-v-0917965c]{margin:0;font-size:.7619047619rem}.modal-mooner .mooner-selectors .input-text-group[data-v-0917965c]{padding-bottom:0}.modal-mooner .mooner-selectors .mooner-combo-list[data-v-0917965c]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list[data-v-0917965c]{flex-direction:column-reverse}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner[data-v-0917965c]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-0917965c]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-0917965c]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney img[data-v-0917965c]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner img[data-v-0917965c]{margin-top:-.9523809524rem;opacity:0}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-0917965c]{width:40%}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-0917965c]{width:100%}}.modal-mooner .mooner-selectors .mooner-combo-list .full-list[data-v-0917965c]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .full-list.active[data-v-0917965c]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .colors-list[data-v-0917965c]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector[data-v-0917965c]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px 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}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .main-color[data-v-0917965c]{width:100%;height:100%;display:block}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .auxiliary[data-v-0917965c]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-mooner .mooner-list[data-v-0917965c]{width:100%;display:flex;align-items:flex-start;align-content:flex-start;gap:.380952381rem .380952381rem;align-self:stretch;flex-wrap:wrap}.modal-mooner .mooner-list div[data-v-0917965c]{cursor:pointer;width:23.572%;border-radius:.380952381rem;border:.0952380952rem solid var(--color-brand-primary-medium,#12d3db);background:#fff}@media (max-width:990px){.modal-mooner .mooner-list div[data-v-0917965c]{border-radius:.7476635514rem;border:.1869158879rem solid var(--color-brand-primary-medium,#12d3db);box-shadow:0 8px 14px 0 #dfdae4}}@media (max-width:990px){.modal-mooner .mooner-list.is-three[data-v-0917965c]{gap:.7476635514rem .7476635514rem}.modal-mooner .mooner-list.is-three div[data-v-0917965c]{width:31.6%}}.modal-mooner .mooner-list .inactive[data-v-0917965c]{border:2px solid var(--color-brand-primary-medium,#dfdae4);box-shadow:none!important}.modal-mooner .mooner-list img[data-v-0917965c]{width:100%}.main-tool[data-v-0917965c]{position:fixed;width:100%;height:100%}.main-tool.shake[data-v-0917965c]{-webkit-animation:shake-data-v-0917965c 1.6s ease-in-out infinite;animation:shake-data-v-0917965c 1.6s ease-in-out infinite}@media (max-width:990px){.main-tool[data-v-0917965c]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-0917965c]{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-0917965c]{z-index:24;max-width:100%}.main-tool.active .backdrop[data-v-0917965c]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-0917965c]{display:none}}.main-tool.inactive[data-v-0917965c]{z-index:24;top:0;max-width:48px;right:0}.custom-properties[data-v-0917965c]{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-0917965c]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100%;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-0917965c]{opacity:0}.custom-properties.inactive .icon-edit[data-v-0917965c]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-0917965c]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-0917965c]{opacity:1}.custom-properties.active .icon-edit-menu[data-v-0917965c]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-0917965c]{background:#fff}.custom-properties .list-properties[data-v-0917965c]{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}.custom-properties .list-properties hr[data-v-0917965c]{border-color:var(--preview-color)!important;margin-top:.7619047619rem;margin-bottom:0}@media (max-width:990px){.custom-properties .list-properties hr[data-v-0917965c]{margin-top:.3738317757rem;margin-bottom:0}}@media (max-width:990px){.custom-properties .list-properties[data-v-0917965c]{width:100%;height:auto;background-color:#fff;position:relative;border-radius:0;padding:2.2429906542rem 6.6666666667vw}}.custom-properties .title-custom-properties[data-v-0917965c]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-0917965c]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-0917965c]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-content:center;align-items:center}.custom-properties .itens-properties .item[data-v-0917965c]:last-child{border-bottom:0}@media (max-width:990px){.custom-properties .itens-properties .item[data-v-0917965c]:last-child{border-bottom:1px solid #dfdae4}}.custom-properties .itens-properties .item .text-list[data-v-0917965c]{width:90%}.custom-properties .itens-properties .item .text-list .tool-value[data-v-0917965c]{text-transform:uppercase}.custom-properties .itens-properties .paragraph[data-v-0917965c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.custom-properties .itens-properties hr[data-v-0917965c]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-0917965c]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-0917965c]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-0917965c]{display:flex}.layout-option[data-v-0917965c]{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-0917965c]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-0917965c]{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-0917965c]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-0917965c]{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 svg[data-v-0917965c]{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon svg path[data-v-0917965c]{fill:#e9eaed!important}.layout-option.active[data-v-0917965c]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-0917965c]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-0917965c]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag svg path[data-v-0917965c]{fill:#fff!important}.color[data-v-0917965c]{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-0917965c]{border-color:#01dfa1}.color .secondary-color[data-v-0917965c]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-0917965c]{width:100%;display:flex}.footer-pet .cancel[data-v-0917965c]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.mooner-view[data-v-0917965c]{width:100%;display:flex}@media (max-width:479px){.mooner-view[data-v-0917965c]{flex-wrap:wrap}}.mooner-view .selected-pet[data-v-0917965c]{max-width:10.8571428571rem;width:100%;overflow:hidden}.mooner-view .selected-pet .clip-mooney img[data-v-0917965c]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.mooner-view .selected-pet img[data-v-0917965c]{margin-top:-3.8095238095rem}.mooner-view .mooner-label[data-v-0917965c]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:.7619047619rem;margin-bottom:.1904761905rem;display:block}@media (max-width:479px){.mooner-view .mooner-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.box-dates-columns[data-v-0917965c]{display:flex}.box-dates-columns .day[data-v-0917965c]{width:11.1111111111vw}.box-dates-columns .month[data-v-0917965c]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-0917965c]{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-0917965c]{display:none}}.box-close .icon[data-v-0917965c]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s;display:flex;align-items:center;justify-content:center;color:#fff}.box-close .icon.icons-close[data-v-0917965c]{color:#12d3db}.box-close .icon.icons-close .icon[data-v-0917965c]{color:#12d3db}@media (max-width:990px){[data-v-0917965c] .name-footer button{width:100%!important;text-align:center}[data-v-0917965c] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-0917965c] .dedication-footer button{width:100%!important;text-align:center}[data-v-0917965c] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.fade-in-image-init[data-v-0917965c]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-0917965c]{animation:fadeIn-data-v-0917965c .5s;-webkit-animation:fadeIn-data-v-0917965c .5s;-moz-animation:fadeIn-data-v-0917965c .5s;-o-animation:fadeIn-data-v-0917965c .5s;-ms-animation:fadeIn-data-v-0917965c .5s}@keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}.bottom-bar-area[data-v-0917965c]{position:absolute;z-index:4;width:100%;bottom:0;left:0}.avatar[data-v-0917965c]{position:relative}.avatar .avatar-item[data-v-0917965c]{position:absolute;left:0;top:0}.fantasy-view[data-v-0917965c]{display:flex}.fantasy-view .pet-label[data-v-0917965c]{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){.fantasy-view .pet-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.fantasy-view .selected-fantasy[data-v-0917965c]{position:relative;width:6.0952380952rem;height:9.5238095238rem}.fantasy-view .selected-fantasy .fantasy-items[data-v-0917965c]{width:6.0952380952rem;position:relative}.fantasy-view .selected-fantasy .fantasy-items .clip-avatar[data-v-0917965c]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:3}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy[data-v-0917965c]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:2}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item[data-v-0917965c]{position:absolute;left:0;top:0;width:6.0952380952rem}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item img[data-v-0917965c]{width:100%}@keyframes shake-data-v-0917965c{0%{-webkit-transform:translateX(0)}40%{-webkit-transform:translateX(-20px)}50%{-webkit-transform:translateX(0)}60%{-webkit-transform:translateX(-20px)}100%{-webkit-transform:translateX(0)}}.continue-mobile-tools[data-v-0917965c]{background-color:var(--preview-color)!important;margin-top:1.4953271028rem;margin-bottom:4.4859813084rem}.continue-mobile-tools span[data-v-0917965c]{color:#fff;position:relative;z-index:2}.continue-mobile-tools[data-v-0917965c]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-secondary[data-v-0917965c]{background-color:var(--preview-color)!important}.modal-footer-items .btn-secondary.is-disabled[data-v-0917965c]{background-color:#dfdae4!important}.modal-footer-items .btn-secondary span[data-v-0917965c]{color:#fff;position:relative;z-index:2}.modal-footer-items .btn-secondary[data-v-0917965c]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-ghost[data-v-0917965c]{color:var(--preview-color)!important;background-color:#fff!important;border:1px solid var(--preview-color)!important}.modal-footer-items .btn-ghost span[data-v-0917965c]{position:relative;z-index:2}.modal-footer-items .btn-ghost[data-v-0917965c]:hover:before{content:"";width:100%;height:100%;background-color:var(--preview-color)!important;display:block;position:absolute;opacity:.1}',map:void 0,media:void 0})}),{name:"PreviewTools",components:{Vue:c,Heading:vt,Paragraph:ft,Icon:C,Modal:bt,Input:R,Button:A,TextArea:mt,Select:Z},props:{
1417
+ Ct("#page-"+(t-1)+" img").attr("src",this.apiUrl+"/api/builder/getpreview/"+this.uuid+"?page="+t+"&w=800&noCache=true&v=0&random="+Math.random());var e=Ct("#page-"+(t-1))[0].offsetLeft-40;Ct("#list-mobile").animate({scrollLeft:e},1e3)}}}},"data-v-38bd5bae",!1,void 0,!1,x,void 0,void 0),St=require("axios"),Nt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-tool",class:[t.sidebarOpen?"active":"inactive",!t.isMobile&&t.toolbarAnimate?"shake":"stop-shake"],style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"backdrop",on:{click:function(e){"active"==t.sidebarOpen&&t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.sidebarOpen?"active":"inactive"],style:t.colorsVar},[a("div",{staticClass:"box-close",on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icons-close size-lg"},[t.preview_color?a("Icon",{attrs:{name:"close",fill:t.preview_color,stroke:t.preview_color,size:"md"}}):t._e()],1),t._v(" "),a("span",{staticClass:"icon icon-edit-menu size-lg"},[a("Icon",{attrs:{name:"edit",fill:"#fff",size:"md",stroke:"transparent"}})],1)]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:t.isMobile?"xs":"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.properties?a("div",{staticClass:"itens-properties"},t._l(t.properties,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.showModal(e)}}},[a("div",{staticClass:"text-list"},["nome"==e.code||24==e.property_id?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?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(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.pet))]):t._e(),t._v(" "),"numero"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label)+" - "+t._s(e.code))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Roteiro")]):t._e(),t._v(" "),"nome"==e.code||24==e.property_id?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?a("Paragraph",{staticClass:"dedication-text tool-value",attrs:{size:"sm"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.dedicationFirstEdit?"Escreva uma dedicatória":t.current_dedication_text)+"\n\t\t\t\t\t\t\t")]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e()],1),t._v(" "),a("Icon",{attrs:{name:"edit",size:"md",fill:t.preview_color,stroke:"transparent"}})],1)})),0):t._e(),t._v(" "),t.isMobile?a("Button",{staticClass:"continue-mobile-tools",attrs:{kind:"primary",size:"md",icon:"right",width:"fluid"},on:{click:t.clickContinue}},[a("Icon",{attrs:{name:"chevron-right",size:"md",stroke:"transparent"}}),t._v(" "),a("span",[t._v("Continuar")])],1):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",size:"md",bottomFixed:!1},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,maxlength:"20"},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.saveName()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),t.isMobile?t._e():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:{size:"md",heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication,bottomFixed:!1},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.current_dedication_text,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.saveDedication()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),t.isMobile?t._e():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.modalLayout?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.layouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==e?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.image,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==e?"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.modalLanguage?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.languages,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:e==t.currentLanguage?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.Image,alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.label))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLanguage==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,size:"md"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[t.selectedBirthDay?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._e(),t._v(" "),t.selectedBirthMonth?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._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.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.current_character_name+"</span> em toda a história.",size:"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[t.currentPet?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.currentPetColor.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPetColor.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-pet").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-pet").value.name=e.target.value.toUpperCase()}}})],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:"full-list",class:[t.currentPet?"active":"inactive"]},[t.listPet?a("div",{staticClass:"pet-list"},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.currentPet?a("div",{staticClass:"colors-list"},t._l(t.currentPet.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentPetColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),t.searchExtraProperty("nome-pet").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-pet").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-pet").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-mooner",attrs:{size:"lg",heading:t.currentTitleMooney,paragraph:t.currentParagraphMooney,divider:!0,headingColor:t.preview_color,haveClose:!0,bottomFixed:!1,paragraphSize:t.isMobile?"sm":"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"mooner-view"},[a("div",{staticClass:"mooner-selectors",style:t.currentMooner?"width: 60%;":""},[a("div",{staticClass:"mooney-align-center"},[a("div",{},[a("Input",{ref:"mooneyName",attrs:{label:t.lang.moonerLabel,value:t.currentMoonerName,name:"currentPetName",placeholder:"Digite o nome do mooner",maxlength:"20",error:"",helper:""},on:{input:function(e){t.currentMoonerName=e.target.value.toUpperCase()}}})],1),t._v(" "),a("label",{staticClass:"mooner-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"mooner-combo-list"},[a("div",{staticClass:"full-list",class:t.currentMooner?"active":"inactive"},[t.listMooner?a("div",{staticClass:"mooner-list",class:t.currentComboClassList},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(" "),t.currentMooner?a("div",{staticClass:"colors-list"},t._l(t.currentMooner.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentMoonerColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])])]),t._v(" "),t.currentMooner?a("div",{staticClass:"selected-mooner",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e()]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:0==t.currentMoonerName.length,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.isCreated?t.lang.moonerCtaFirstOpen:t.lang.moonerCta)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return e.preventDefault(),t.closeModal.apply(null,arguments)}}},[t._v("\n\t\t\t\t"+t._s(t.isCreated?"Escolher depois":"Fechar")+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalFantasy?a("Modal",{staticClass:"modal-fantasy",attrs:{heading:"Fantasia",headingColor:t.preview_color,paragraph:"Descrição fantasia",haveClose:!1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"fantasy-view"},[a("div",{staticClass:"selected-fantasy",class:[t.currentFantasy?"active":"inactive",t.fantasyAnimation?"fade-in-image":"inactive-pet"]},[a("div",{staticClass:"fantasy-items"},[t.currentFantasy&&t.currentFantasy.assets&&t.currentFantasy.assets.asset?a("div",{staticClass:"clip-avatar"},[t.currentFantasy.assets.asset?a("img",{class:t.fantasyInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentFantasy.assets.asset,alt:""}}):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"avatar-fantasy"},t._l(t.avatarFantasy,(function(e,i){return a("div",{key:i,staticClass:"avatar-item"},[a("img",{attrs:{src:e.assets.asset,alt:""}}),t._v(" "),a("br")])})),0)])]),t._v(" "),a("div",[a("div",{staticClass:"pet-selectors",style:t.currentFantasy?"width: 100%;":""},[a("label",{staticClass:"pet-label"},[t._v("Fatansia")]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[t.listFantasy?a("div",{staticClass:"pet-list",class:t.currentFantasy?"active":"inactive"},t._l(t.listFantasy,(function(e,i){return a("div",{key:i,class:t.currentFantasy===e?"active":"inactive",on:{click:function(a){return t.setFantasy(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.currentFantasy,inverted:!1},on:{click:function(e){return t.changeFantasyLayout()}}},[t._v("\n\t\t\t\tProntinho salvar história\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\tEscolher depois\n\t\t\t")])],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-0917965c_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-0917965c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0917965c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0917965c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0917965c]{font-size:14px}}@media (min-width:1024px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0917965c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0917965c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0917965c]{font-size:1.56vw}}html[data-v-0917965c]{box-sizing:border-box}*[data-v-0917965c],[data-v-0917965c]::after,[data-v-0917965c]::before{box-sizing:border-box}.modal-pet[data-v-0917965c]{background-color:#000}.modal-pet .paragraph span[data-v-0917965c]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-pet .modal-content[data-v-0917965c]{padding-bottom:500px;overflow-y:scroll}}.modal-pet .pet-view[data-v-0917965c]{width:100%;display:flex}.modal-pet .pet-view .selected-pet[data-v-0917965c]{max-width:10.8571428571rem;width:100%;overflow:hidden}.modal-pet .pet-view .selected-pet .clip-mooney img[data-v-0917965c]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-pet .pet-view .selected-pet img[data-v-0917965c]{margin-top:-3.8095238095rem}.modal-pet .pet-view .pet-label[data-v-0917965c]{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){.modal-pet .pet-view .pet-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-pet .pet-selectors[data-v-0917965c]{width:100%}.modal-pet .pet-selectors p[data-v-0917965c]{margin:0;font-size:.7619047619rem}.modal-pet .pet-selectors .input-text-group[data-v-0917965c]{padding-bottom:0}.modal-pet .pet-selectors .pet-combo-list[data-v-0917965c]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list[data-v-0917965c]{flex-direction:column-reverse}}.modal-pet .pet-selectors .pet-combo-list .selected-pet[data-v-0917965c]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-0917965c]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-0917965c]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney img[data-v-0917965c]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-pet .pet-selectors .pet-combo-list .selected-pet img[data-v-0917965c]{margin-top:-.9523809524rem;opacity:0}.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-0917965c]{width:40%}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-0917965c]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .full-list[data-v-0917965c]{width:100%}.modal-pet .pet-selectors .pet-combo-list .full-list.active[data-v-0917965c]{width:100%}.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-0917965c]{transition:all .5s;width:100%;align-items:center;display:flex}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-0917965c]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .pet-list.inactive[data-v-0917965c]{width:100%}.modal-pet .pet-selectors .pet-combo-list .colors-list[data-v-0917965c]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-pet .pet-selectors .pet-combo-list .color-selector[data-v-0917965c]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px 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}.modal-pet .pet-selectors .pet-combo-list .color-selector .main-color[data-v-0917965c]{width:100%;height:100%;display:block}.modal-pet .pet-selectors .pet-combo-list .color-selector .auxiliary[data-v-0917965c]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-pet .pet-list[data-v-0917965c]{width:100%;display:flex}.modal-pet .pet-list div[data-v-0917965c]{margin:.2380952381rem;cursor:pointer}.modal-pet .pet-list .inactive[data-v-0917965c]{opacity:.3}.modal-pet .pet-list img[data-v-0917965c]{width:100%}.modal-mooner[data-v-0917965c]{background-color:#000}.modal-mooner .paragraph span[data-v-0917965c]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-mooner .modal-content[data-v-0917965c]{padding-bottom:500px;overflow-y:scroll}}.modal-mooner .mooner-view[data-v-0917965c]{width:100%;display:flex}.modal-mooner .mooner-view .selected-mooner[data-v-0917965c]{max-width:40%;width:100%;overflow:hidden;padding-left:1.5238095238rem;padding-right:1.5238095238rem}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner[data-v-0917965c]{margin-top:0;padding-left:0;padding-right:0;max-width:100%;display:flex;justify-content:center}.modal-mooner .mooner-view .selected-mooner div[data-v-0917965c]{max-width:60%}}.modal-mooner .mooner-view .selected-mooner .clip-mooney img[data-v-0917965c]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-mooner .mooner-view .selected-mooner img[data-v-0917965c]{display:block}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner img[data-v-0917965c]{margin-top:.380952381rem;margin-bottom:-1.5238095238rem}}.modal-mooner .mooner-view .mooner-label[data-v-0917965c]{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){.modal-mooner .mooner-view .mooner-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-mooner[data-v-0917965c] .modal-header-content b{font-weight:700!important;color:var(--preview-color)!important}.modal-mooner .mooner-selectors[data-v-0917965c]{width:100%;display:flex;align-items:center}@media (max-width:990px){.modal-mooner .mooner-selectors[data-v-0917965c]{width:100%!important}}.modal-mooner .mooner-selectors p[data-v-0917965c]{margin:0;font-size:.7619047619rem}.modal-mooner .mooner-selectors .input-text-group[data-v-0917965c]{padding-bottom:0}.modal-mooner .mooner-selectors .mooner-combo-list[data-v-0917965c]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list[data-v-0917965c]{flex-direction:column-reverse}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner[data-v-0917965c]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-0917965c]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-0917965c]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney img[data-v-0917965c]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner img[data-v-0917965c]{margin-top:-.9523809524rem;opacity:0}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-0917965c]{width:40%}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-0917965c]{width:100%}}.modal-mooner .mooner-selectors .mooner-combo-list .full-list[data-v-0917965c]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .full-list.active[data-v-0917965c]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .colors-list[data-v-0917965c]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector[data-v-0917965c]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px 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}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .main-color[data-v-0917965c]{width:100%;height:100%;display:block}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .auxiliary[data-v-0917965c]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-mooner .mooner-list[data-v-0917965c]{width:100%;display:flex;align-items:flex-start;align-content:flex-start;gap:.380952381rem .380952381rem;align-self:stretch;flex-wrap:wrap}.modal-mooner .mooner-list div[data-v-0917965c]{cursor:pointer;width:23.572%;border-radius:.380952381rem;border:.0952380952rem solid var(--color-brand-primary-medium,#12d3db);background:#fff}@media (max-width:990px){.modal-mooner .mooner-list div[data-v-0917965c]{border-radius:.7476635514rem;border:.1869158879rem solid var(--color-brand-primary-medium,#12d3db);box-shadow:0 8px 14px 0 #dfdae4}}@media (max-width:990px){.modal-mooner .mooner-list.is-three[data-v-0917965c]{gap:.7476635514rem .7476635514rem}.modal-mooner .mooner-list.is-three div[data-v-0917965c]{width:31.6%}}.modal-mooner .mooner-list .inactive[data-v-0917965c]{border:2px solid var(--color-brand-primary-medium,#dfdae4);box-shadow:none!important}.modal-mooner .mooner-list img[data-v-0917965c]{width:100%}.main-tool[data-v-0917965c]{position:fixed;width:100%;height:100%}.main-tool.shake[data-v-0917965c]{-webkit-animation:shake-data-v-0917965c 1.6s ease-in-out infinite;animation:shake-data-v-0917965c 1.6s ease-in-out infinite}@media (max-width:990px){.main-tool[data-v-0917965c]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-0917965c]{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-0917965c]{z-index:24;max-width:100%}.main-tool.active .backdrop[data-v-0917965c]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-0917965c]{display:none}}.main-tool.inactive[data-v-0917965c]{z-index:24;top:0;max-width:48px;right:0}.custom-properties[data-v-0917965c]{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-0917965c]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100%;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-0917965c]{opacity:0}.custom-properties.inactive .icon-edit[data-v-0917965c]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-0917965c]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-0917965c]{opacity:1}.custom-properties.active .icon-edit-menu[data-v-0917965c]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-0917965c]{background:#fff}.custom-properties .list-properties[data-v-0917965c]{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}.custom-properties .list-properties hr[data-v-0917965c]{border-color:var(--preview-color)!important;margin-top:.7619047619rem;margin-bottom:0}@media (max-width:990px){.custom-properties .list-properties hr[data-v-0917965c]{margin-top:.3738317757rem;margin-bottom:0}}@media (max-width:990px){.custom-properties .list-properties[data-v-0917965c]{width:100%;height:auto;background-color:#fff;position:relative;border-radius:0;padding:2.2429906542rem 6.6666666667vw}}.custom-properties .title-custom-properties[data-v-0917965c]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-0917965c]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-0917965c]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-content:center;align-items:center}.custom-properties .itens-properties .item[data-v-0917965c]:last-child{border-bottom:0}@media (max-width:990px){.custom-properties .itens-properties .item[data-v-0917965c]:last-child{border-bottom:1px solid #dfdae4}}.custom-properties .itens-properties .item .text-list[data-v-0917965c]{width:90%}.custom-properties .itens-properties .item .text-list .tool-value[data-v-0917965c]{text-transform:uppercase}.custom-properties .itens-properties .paragraph[data-v-0917965c]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.custom-properties .itens-properties hr[data-v-0917965c]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-0917965c]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-0917965c]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-0917965c]{display:flex}.layout-option[data-v-0917965c]{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-0917965c]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-0917965c]{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-0917965c]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-0917965c]{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 svg[data-v-0917965c]{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon svg path[data-v-0917965c]{fill:#e9eaed!important}.layout-option.active[data-v-0917965c]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-0917965c]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-0917965c]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag svg path[data-v-0917965c]{fill:#fff!important}.color[data-v-0917965c]{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-0917965c]{border-color:#01dfa1}.color .secondary-color[data-v-0917965c]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-0917965c]{width:100%;display:flex}.footer-pet .cancel[data-v-0917965c]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.mooner-view[data-v-0917965c]{width:100%;display:flex}@media (max-width:479px){.mooner-view[data-v-0917965c]{flex-wrap:wrap}}.mooner-view .selected-pet[data-v-0917965c]{max-width:10.8571428571rem;width:100%;overflow:hidden}.mooner-view .selected-pet .clip-mooney img[data-v-0917965c]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.mooner-view .selected-pet img[data-v-0917965c]{margin-top:-3.8095238095rem}.mooner-view .mooner-label[data-v-0917965c]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:.7619047619rem;margin-bottom:.1904761905rem;display:block}@media (max-width:479px){.mooner-view .mooner-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.box-dates-columns[data-v-0917965c]{display:flex}.box-dates-columns .day[data-v-0917965c]{width:11.1111111111vw}.box-dates-columns .month[data-v-0917965c]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-0917965c]{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-0917965c]{display:none}}.box-close .icon[data-v-0917965c]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s;display:flex;align-items:center;justify-content:center;color:#fff}.box-close .icon.icons-close[data-v-0917965c]{color:#12d3db}.box-close .icon.icons-close .icon[data-v-0917965c]{color:#12d3db}@media (max-width:990px){[data-v-0917965c] .name-footer button{width:100%!important;text-align:center}[data-v-0917965c] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-0917965c] .dedication-footer button{width:100%!important;text-align:center}[data-v-0917965c] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.fade-in-image-init[data-v-0917965c]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-0917965c]{animation:fadeIn-data-v-0917965c .5s;-webkit-animation:fadeIn-data-v-0917965c .5s;-moz-animation:fadeIn-data-v-0917965c .5s;-o-animation:fadeIn-data-v-0917965c .5s;-ms-animation:fadeIn-data-v-0917965c .5s}@keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-0917965c{0%{opacity:0}100%{opacity:1}}.bottom-bar-area[data-v-0917965c]{position:absolute;z-index:4;width:100%;bottom:0;left:0}.avatar[data-v-0917965c]{position:relative}.avatar .avatar-item[data-v-0917965c]{position:absolute;left:0;top:0}.fantasy-view[data-v-0917965c]{display:flex}.fantasy-view .pet-label[data-v-0917965c]{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){.fantasy-view .pet-label[data-v-0917965c]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.fantasy-view .selected-fantasy[data-v-0917965c]{position:relative;width:6.0952380952rem;height:9.5238095238rem}.fantasy-view .selected-fantasy .fantasy-items[data-v-0917965c]{width:6.0952380952rem;position:relative}.fantasy-view .selected-fantasy .fantasy-items .clip-avatar[data-v-0917965c]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:3}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy[data-v-0917965c]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:2}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item[data-v-0917965c]{position:absolute;left:0;top:0;width:6.0952380952rem}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item img[data-v-0917965c]{width:100%}@keyframes shake-data-v-0917965c{0%{-webkit-transform:translateX(0)}40%{-webkit-transform:translateX(-20px)}50%{-webkit-transform:translateX(0)}60%{-webkit-transform:translateX(-20px)}100%{-webkit-transform:translateX(0)}}.continue-mobile-tools[data-v-0917965c]{background-color:var(--preview-color)!important;margin-top:1.4953271028rem;margin-bottom:4.4859813084rem}.continue-mobile-tools span[data-v-0917965c]{color:#fff;position:relative;z-index:2}.continue-mobile-tools[data-v-0917965c]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-secondary[data-v-0917965c]{background-color:var(--preview-color)!important}.modal-footer-items .btn-secondary.is-disabled[data-v-0917965c]{background-color:#dfdae4!important}.modal-footer-items .btn-secondary span[data-v-0917965c]{color:#fff;position:relative;z-index:2}.modal-footer-items .btn-secondary[data-v-0917965c]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-ghost[data-v-0917965c]{color:var(--preview-color)!important;background-color:#fff!important;border:1px solid var(--preview-color)!important}.modal-footer-items .btn-ghost span[data-v-0917965c]{position:relative;z-index:2}.modal-footer-items .btn-ghost[data-v-0917965c]:hover:before{content:"";width:100%;height:100%;background-color:var(--preview-color)!important;display:block;position:absolute;opacity:.1}',map:void 0,media:void 0})}),{name:"PreviewTools",components:{Vue:c,Heading:ft,Paragraph:bt,Icon:C,Modal:wt,Input:R,Button:A,TextArea:mt,Select:Z},props:{
1389
1418
  /** Character uuid. `ddh5e177ff920f15` */
1390
1419
  uuid:{type:String,required:!0},
1391
1420
  /** Slug of product on builder `bb-a-grande-viagem` */
@@ -1409,7 +1438,7 @@ layouts:{type:Array,required:!1},typeRead:{type:Boolean,required:!1,default:!1},
1409
1438
  /** Show edit name. */
1410
1439
  custom_numero:{type:String,required:!1},
1411
1440
  /** Show edit name. */
1412
- custom_mes:{type:String,required:!1},is_created:{type:Boolean,required:!1,default:!1}},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"}),{properties:null,lang:wt[this.typeLanguage],
1441
+ custom_mes:{type:String,required:!1},is_created:{type:Boolean,required:!1,default:!1}},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"}),{properties:null,lang:xt[this.typeLanguage],
1413
1442
  // Sidebar
1414
1443
  sidebarOpen:!1,have_shirt_number:!1,have_layout:!1,have_birth_date:!1,haveDedication:!1,
1415
1444
  // Variaveis de modais
@@ -1469,7 +1498,7 @@ this.currentPetColor=t},showModal:function(t){
1469
1498
 
1470
1499
  },searchExtraProperty:function(t){var e=null;return Object.entries(this.properties).forEach((function(a){a[1].code===t&&(e=a[1])})),e},searchCustomUserDataProperty:function(t){var e=null;return Object.entries(t).forEach((function(t){"nome-do-mooner"==t[0]&&(e=t[1])})),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,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:
1471
1500
  // Todo Guto
1472
- return i="https://builder.dentrodahistoria.com.br/api/v2/characters/"+(a=t).character_id+"/categories/assets/treelist?character_type_id="+a.type_id+"&subscription="+a.is_subscription+"&product_id="+parseInt(a.product_id),a.character_position_id&&(i=i+"&character_position_id="+parseInt(a.character_position_id)),e.abrupt("return",Pt.get(i).then((function(t){var e=[];t.data.character_categories_assets&&t.data.character_categories_assets[0]&&t.data.character_categories_assets[0].characters_extra&&(
1501
+ return i="https://builder.dentrodahistoria.com.br/api/v2/characters/"+(a=t).character_id+"/categories/assets/treelist?character_type_id="+a.type_id+"&subscription="+a.is_subscription+"&product_id="+parseInt(a.product_id),a.character_position_id&&(i=i+"&character_position_id="+parseInt(a.character_position_id)),e.abrupt("return",St.get(i).then((function(t){var e=[];t.data.character_categories_assets&&t.data.character_categories_assets[0]&&t.data.character_categories_assets[0].characters_extra&&(
1473
1502
  // Get mooner from extra character customization
1474
1503
  t.data.character_categories_assets[0].characters_extra.forEach((function(t){"mooner"===t.code&&(a.typeRead||(a.listMooner=t,
1475
1504
  // Pesquisa pelo nome do mooner
@@ -1483,7 +1512,7 @@ t.assets.subcategories.forEach((function(t){(1==a.haveWheelChair&&1==t.name.incl
1483
1512
  //alert("deu load novamente");
1484
1513
  // self.getProductInfo();
1485
1514
  // self.getTreeList();
1486
- case 4:case"end":return e.stop()}}),e)})))()},setHeaderMoonner:function(){this.isMobile?(this.currentTitleMooney=this.isCreated?this.lang.moonerTitleFirstOpenMobile:this.lang.moonerTitleMobile,this.isCreated,this.currentParagraphMooney=this.lang.moonerDescriptionOne+"<b>"+this.current_character_name+"</b>"+this.lang.moonerDescriptionTwoMobile):(this.currentTitleMooney=this.isCreated?this.lang.moonerTitleFirstOpen:this.lang.moonerTitle,this.isCreated,this.currentParagraphMooney=this.lang.moonerDescriptionOne+"<b>"+this.current_character_name+"</b>"+this.lang.moonerDescriptionTwo)},getCustomCharacter:function(){var t=this;Pt.get(this.lang.urlBuilder+"/api/customs_characters/"+t.uuid).then((function(e){
1515
+ case 4:case"end":return e.stop()}}),e)})))()},setHeaderMoonner:function(){this.isMobile?(this.currentTitleMooney=this.isCreated?this.lang.moonerTitleFirstOpenMobile:this.lang.moonerTitleMobile,this.isCreated,this.currentParagraphMooney=this.lang.moonerDescriptionOne+"<b>"+this.current_character_name+"</b>"+this.lang.moonerDescriptionTwoMobile):(this.currentTitleMooney=this.isCreated?this.lang.moonerTitleFirstOpen:this.lang.moonerTitle,this.isCreated,this.currentParagraphMooney=this.lang.moonerDescriptionOne+"<b>"+this.current_character_name+"</b>"+this.lang.moonerDescriptionTwo)},getCustomCharacter:function(){var t=this;St.get(this.lang.urlBuilder+"/api/customs_characters/"+t.uuid).then((function(e){
1487
1516
  // Dedicatória
1488
1517
  if(t.custom=e.data.custom,t.properties=e.data.custom.user_data.properties,t.type_id=e.data.custom.user_data.type,
1489
1518
  // Nome
@@ -1502,20 +1531,20 @@ t.setHeaderMoonner()),t.properties.numero&&t.properties.mes){t.selectedBirthDay=
1502
1531
  // Linguagens
1503
1532
  if(e.data.assets.forEach((function(e,a){e.assets.name.includes("roupa-cadeirante")&&(t.haveWheelChair=!0)})),e.data.assets.forEach((function(a,i){if(a.assets.name.includes("fantasia")){var o={code:"fantasy",value:a.assets.name};t.properties.fantasy=o,t.avatarFantasy=e.data.assets}})),t.languages&&t.language){t.languages.forEach((function(e){e.Slug==t.language&&(t.currentLanguage=e)}));var o={code:"languages",value:t.currentLanguage.Label};t.properties.languages=o}
1504
1533
  // Layouts
1505
- if(t.layouts&&t.layout){t.layouts.forEach((function(e){e.builderProductId==t.layout&&(t.currentLayout=e)}));var r={code:"layouts",value:t.currentLayout.name};t.properties.layouts=r}t.getTreeList()})).catch((function(t){console.log(t)}))},getProductInfo: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:return a=t,e.abrupt("return",Pt.get(t.lang.urlBuilder+"/api/products/info/"+a.product_id).then((function(t){a.pageNum=t.data.product.pages,a.isPagesNumLoaded=!0,a.availableLayouts=t.data.product.layout})).catch((function(t){console.log(t)})));case 2:case"end":return e.stop()}}),e)})))()},changeMoonerLayout:function(){var t=this;if(t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1),t.defaultMooner==t.currentMooner&&t.defaultMoonerName==t.currentMoonerName)return t.closeModal(),t.sidebarOpen=!1,!1;var e=t.dedicationFirstEdit?"":t.current_dedication_text,a={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:e}}},uuid:t.uuid}};if(t.currentMooner&&t.properties["nome-do-mooner"]){var i={property_id:t.properties["nome-do-mooner"].property_id,value:t.currentMoonerName,code:t.properties["nome-do-mooner"].code};a.custom_character.user_data.properties["nome-do-mooner"]=i}
1534
+ if(t.layouts&&t.layout){t.layouts.forEach((function(e){e.builderProductId==t.layout&&(t.currentLayout=e)}));var r={code:"layouts",value:t.currentLayout.name};t.properties.layouts=r}t.getTreeList()})).catch((function(t){console.log(t)}))},getProductInfo: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:return a=t,e.abrupt("return",St.get(t.lang.urlBuilder+"/api/products/info/"+a.product_id).then((function(t){a.pageNum=t.data.product.pages,a.isPagesNumLoaded=!0,a.availableLayouts=t.data.product.layout})).catch((function(t){console.log(t)})));case 2:case"end":return e.stop()}}),e)})))()},changeMoonerLayout:function(){var t=this;if(t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1),t.defaultMooner==t.currentMooner&&t.defaultMoonerName==t.currentMoonerName)return t.closeModal(),t.sidebarOpen=!1,!1;var e=t.dedicationFirstEdit?"":t.current_dedication_text,a={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:e}}},uuid:t.uuid}};if(t.currentMooner&&t.properties["nome-do-mooner"]){var i={property_id:t.properties["nome-do-mooner"].property_id,value:t.currentMoonerName,code:t.properties["nome-do-mooner"].code};a.custom_character.user_data.properties["nome-do-mooner"]=i}
1506
1535
  // Envio da custom porperties dynamic
1507
- Pt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data);var a=!1,i=null;t.custom.categories.forEach((function(e){if(e.parent_id===t.currentMooner.parent_id){a=!0;var i=t.custom.categories.indexOf(e);t.custom.categories[i]={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id}}})),t.defaultMoonerName=t.currentMoonerName,t.defaultMooner=t.currentMooner,t.isCreated=!1,t.sidebarOpen=!1,t.properties["nome-do-mooner"].value=t.currentMoonerName,t.setHeaderMoonner(),!1===a&&(i={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id},t.custom.categories.push(i)),t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},changeFantasyLayout:function(){var t=this;t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1);var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:t.dedicationText}}},uuid:t.uuid}};t.currentFantasy&&
1536
+ St.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data);var a=!1,i=null;t.custom.categories.forEach((function(e){if(e.parent_id===t.currentMooner.parent_id){a=!0;var i=t.custom.categories.indexOf(e);t.custom.categories[i]={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id}}})),t.defaultMoonerName=t.currentMoonerName,t.defaultMooner=t.currentMooner,t.isCreated=!1,t.sidebarOpen=!1,t.properties["nome-do-mooner"].value=t.currentMoonerName,t.setHeaderMoonner(),!1===a&&(i={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id},t.custom.categories.push(i)),t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},changeFantasyLayout:function(){var t=this;t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1);var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:t.dedicationText}}},uuid:t.uuid}};t.currentFantasy&&
1508
1537
  ///var property = self.searchExtraProperty("nome-do-mooner");
1509
1538
  t.extras.forEach((function(a){if(a.code.includes("nome-do-mooner")){var i={property_id:a.id,value:t.currentMoonerName,code:a.code};a.value=t.currentMoonerName,e.custom_character.user_data.properties[a.code]=i}})),
1510
1539
  //var data_custom;
1511
1540
  // Envio da custom porperties dynamic
1512
- Pt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",e).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data);var a=!1,i=null;t.custom.categories.forEach((function(e){if(e.parent_id===t.currentMooner.parent_id){a=!0;var i=t.custom.categories.indexOf(e);t.custom.categories[i]={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id}}})),!1===a&&(i={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id},t.custom.categories.push(i)),
1541
+ St.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",e).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data);var a=!1,i=null;t.custom.categories.forEach((function(e){if(e.parent_id===t.currentMooner.parent_id){a=!0;var i=t.custom.categories.indexOf(e);t.custom.categories[i]={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id}}})),!1===a&&(i={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id},t.custom.categories.push(i)),
1513
1542
  //self.modalMoonerFirstOpen = true;
1514
- t.sidebarOpen=!1,t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},saveName:function(){var t=this;if(t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1),t.default_character_name==t.current_character_name)return t.closeModal(),t.sidebarOpen=!1,!1;var e=t.dedicationFirstEdit?" ":t.current_dedication_text,a={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:e}}},uuid:t.uuid}};if(t.currentMooner&&t.extras&&t.extras.forEach((function(e){if(e.code.includes("nome-do-mooner")){var i={property_id:e.id,value:t.currentMoonerName,code:e.code};e.value=t.currentMoonerName,a.custom_character.user_data.properties[e.code]=i}})),t.searchExtraProperty("birthday")){t.searchExtraProperty("birthday");a.custom_character.user_data.properties.mes={property_id:38,value:t.months[t.selectedBirthMonth-1].value,code:"mes"},a.custom_character.user_data.properties.numero={property_id:29,value:t.selectedBirthDay,code:"numero"}}Pt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(e){if(t.custom=JSON.parse(e.data.custom.customCharacter.data),t.extras&&t.extras.forEach((function(e){"nome"===e.code&&(e.value=t.current_character_name),"dedicatoria"===e.code&&(e.value=t.dedicationText)})),
1543
+ t.sidebarOpen=!1,t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},saveName:function(){var t=this;if(t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1),t.default_character_name==t.current_character_name)return t.closeModal(),t.sidebarOpen=!1,!1;var e=t.dedicationFirstEdit?" ":t.current_dedication_text,a={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:e}}},uuid:t.uuid}};if(t.currentMooner&&t.extras&&t.extras.forEach((function(e){if(e.code.includes("nome-do-mooner")){var i={property_id:e.id,value:t.currentMoonerName,code:e.code};e.value=t.currentMoonerName,a.custom_character.user_data.properties[e.code]=i}})),t.searchExtraProperty("birthday")){t.searchExtraProperty("birthday");a.custom_character.user_data.properties.mes={property_id:38,value:t.months[t.selectedBirthMonth-1].value,code:"mes"},a.custom_character.user_data.properties.numero={property_id:29,value:t.selectedBirthDay,code:"numero"}}St.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(e){if(t.custom=JSON.parse(e.data.custom.customCharacter.data),t.extras&&t.extras.forEach((function(e){"nome"===e.code&&(e.value=t.current_character_name),"dedicatoria"===e.code&&(e.value=t.dedicationText)})),
1515
1544
  //self.changeUuid(response.data.custom.uuid);
1516
1545
  t.changeName(t.current_character_name,e.data.custom.uuid),t.getCustomCharacter(),t.have_birth_date){var a={custom_numero:t.selectedBirthDay,custom_mes:t.months[t.selectedBirthMonth-1].value};t.changeBirthday(a)}t.closeModal(),t.sidebarOpen=!1})).catch((function(t){console.log(t)}))},saveDedication:function(){var t=this;if(t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1),t.default_dedication_text==t.current_dedication_text)return t.closeModal(),t.sidebarOpen=!1,!1;
1517
1546
  //alert("Teste preview send 1");
1518
- var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:t.current_dedication_text?t.current_dedication_text:" "}}},uuid:t.uuid}};if(t.currentMooner&&t.extras&&t.extras.forEach((function(a){if(a.code.includes("nome-do-mooner")){var i={property_id:a.id,value:t.currentMoonerName,code:a.code};a.value=t.currentMoonerName,e.custom_character.user_data.properties[a.code]=i}})),t.searchExtraProperty("birthday")){t.searchExtraProperty("birthday");e.custom_character.user_data.properties.mes={property_id:38,value:t.months[t.selectedBirthMonth-1].value,code:"mes"},e.custom_character.user_data.properties.numero={property_id:29,value:t.selectedBirthDay,code:"numero"}}Pt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",e).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data),t.properties.dedicatoria.value=t.current_dedication_text,t.dedicationFirstEdit=!1,t.changeDedication(t.current_dedication_text,e.data.custom.uuid),t.closeModal(),t.sidebarOpen=!1})).catch((function(t){console.log(t)}))},updateDedicationCustomCharacter:function(){var t=this;t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1);var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{dedicatoria:{code:"dedicatoria",property_id:26,value:t.dedicationText}}},uuid:t.uuid}};Pt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",e).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data),
1547
+ var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:t.current_dedication_text?t.current_dedication_text:" "}}},uuid:t.uuid}};if(t.currentMooner&&t.extras&&t.extras.forEach((function(a){if(a.code.includes("nome-do-mooner")){var i={property_id:a.id,value:t.currentMoonerName,code:a.code};a.value=t.currentMoonerName,e.custom_character.user_data.properties[a.code]=i}})),t.searchExtraProperty("birthday")){t.searchExtraProperty("birthday");e.custom_character.user_data.properties.mes={property_id:38,value:t.months[t.selectedBirthMonth-1].value,code:"mes"},e.custom_character.user_data.properties.numero={property_id:29,value:t.selectedBirthDay,code:"numero"}}St.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",e).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data),t.properties.dedicatoria.value=t.current_dedication_text,t.dedicationFirstEdit=!1,t.changeDedication(t.current_dedication_text,e.data.custom.uuid),t.closeModal(),t.sidebarOpen=!1})).catch((function(t){console.log(t)}))},updateDedicationCustomCharacter:function(){var t=this;t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1);var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{dedicatoria:{code:"dedicatoria",property_id:26,value:t.dedicationText}}},uuid:t.uuid}};St.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",e).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data),
1519
1548
  // self.extras.forEach((itemProperty) => {
1520
1549
  // if (itemProperty.code === "dedicatoria") {
1521
1550
  // itemProperty.value = self.dedicationText;
@@ -1523,7 +1552,7 @@ var e={custom_character:{character_id:t.character_id,product_id:t.product_id,typ
1523
1552
  // });
1524
1553
  t.searchExtraProperty("dedicatoria").value=t.dedicationText,t.changeUuid(e.data.custom.uuid)})).catch((function(t){console.log(t)}))},changeLayout:function(){var t=this;t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1);var e,a={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:t.dedicationText}}},uuid:t.uuid}};if(t.properties["nome-do-mooner"]){var i={property_id:(o=t.properties["nome-do-mooner"]).id,value:o.value,code:o.code};a.custom_character.user_data.properties[o.code]=i}if(t.properties.birthday){var o=t.properties.birthday;a.custom_character.user_data.properties.mes={property_id:38,value:t.months[t.selectedBirthMonth-1].value,code:"mes"},a.custom_character.user_data.properties.numero={property_id:29,value:t.selectedBirthDay,code:"numero"}}
1525
1554
  // Envio da custom porperties dynamic
1526
- Pt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(a){if(t.custom=JSON.parse(a.data.custom.customCharacter.data),t.currentPet&&t.currentPet.parent_id&&(e={parent_id:t.currentPet.parent_id,id:t.currentPetColor.id},t.custom.categories.push(e)),t.custom_mes&&t.custom_numero){var i={mes:t.selectedBirthMonth,dia:t.selectedBirthDay};t.changeBirthday(i),t.properties.birthday.value=t.selectedBirthDay+" de "+t.months[t.selectedBirthMonth-1].value}t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},sendCustomCharacter:function(){var t=this;Pt.post(this.lang.urlBuilder+"/api/customs_characters",{custom_character:t.custom}).then((function(e){
1555
+ St.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(a){if(t.custom=JSON.parse(a.data.custom.customCharacter.data),t.currentPet&&t.currentPet.parent_id&&(e={parent_id:t.currentPet.parent_id,id:t.currentPetColor.id},t.custom.categories.push(e)),t.custom_mes&&t.custom_numero){var i={mes:t.selectedBirthMonth,dia:t.selectedBirthDay};t.changeBirthday(i),t.properties.birthday.value=t.selectedBirthDay+" de "+t.months[t.selectedBirthMonth-1].value}t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},sendCustomCharacter:function(){var t=this;St.post(this.lang.urlBuilder+"/api/customs_characters",{custom_character:t.custom}).then((function(e){
1527
1556
  //self.custom = JSON.parse(response.data.custom.customCharacter.data);
1528
1557
  //alert("salvou catiolo");
1529
1558
  var a={uuid:e.data.custom.uuid};t.changeUuid(a)})).catch((function(t){console.log(t)}))},changeUuid:function(t){
@@ -1535,7 +1564,7 @@ var a={name:t,uuid:e};self.sidebarOpen=!1,this.$emit("changeName",a)},changeDedi
1535
1564
  //alert("Método de change name");
1536
1565
  var a={dedication:t,uuid:e};self.sidebarOpen=!1,
1537
1566
  //console.log("Bereta", payload);
1538
- this.$emit("changeDedication",a)},changeBirthday:function(t){this.$emit("changeBirthday",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}}},"data-v-0917965c",!1,void 0,!1,x,void 0,void 0),Nt=(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-379ddc4b_0",{source:'.storybook-6{width:columns("lg", 6)}.storybook-12{width:columns("lg", 12)}.storybook-25{width:columns("lg", 25)}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewFull",components:{Preview:zt,PreviewMobile:Mt},props:{
1567
+ this.$emit("changeDedication",a)},changeBirthday:function(t){this.$emit("changeBirthday",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}}},"data-v-0917965c",!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("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-379ddc4b_0",{source:'.storybook-6{width:columns("lg", 6)}.storybook-12{width:columns("lg", 12)}.storybook-25{width:columns("lg", 25)}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewFull",components:{Preview:_t,PreviewMobile:Pt},props:{
1539
1568
  /** Name of protagonist. `Diego` */
1540
1569
  current_name:{type:String,required:!0},pages:{type:String,required:!0},age:{type:String,required:!0},
1541
1570
  /** Product id of Builder. `595` */
@@ -1558,9 +1587,9 @@ have_layout:{type:Boolean,required:!1,default:!1},
1558
1587
  have_birth_date:{type:Boolean,required:!1,default:!1},
1559
1588
  /** Show Pet. */
1560
1589
  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
1561
- this.isLoaded=!0}}},void 0,!1,void 0,!1,x,void 0,void 0)),Lt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stepper"},t._l(t.steps,(function(e,i){return a("div",{key:i,staticClass:"stepper-links"},[e?a("div",{staticClass:"stepper-links-item-area"},[a("Paragraph",{staticClass:"stepper-link-text",class:t.steps.length-1==i?"is-current":"not-current",attrs:{size:"sm",color:t.color}},[a("div",{staticClass:"preview-button",style:"color:"+t.color,on:{click:function(a){t.steps.length,t.onClick(e)}}},[0==i?a("Icon",{staticClass:"back-button",attrs:{name:"arrow-left",fill:t.color,color:t.color,size:"md",stroke:"transparent"}}):t._e()],1),t._v("\n\n\t\t\t\t"+t._s(e.stepperName))])],1):t._e(),t._v(" "),t.steps.length-1!=i?a("Paragraph",{staticClass:"stepper-link-divider",attrs:{size:"sm",color:t.color},domProps:{innerHTML:t._s("-")}}):t._e()],1)})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-434e0d2c_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-434e0d2c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-434e0d2c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-434e0d2c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-434e0d2c]{font-size:14px}}@media (min-width:1024px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-434e0d2c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-434e0d2c]{font-size:1.56vw}}html[data-v-434e0d2c]{box-sizing:border-box}*[data-v-434e0d2c],[data-v-434e0d2c]::after,[data-v-434e0d2c]::before{box-sizing:border-box}.stepper[data-v-434e0d2c]{display:flex;flex-wrap:wrap;position:relative;z-index:9}.stepper .stepper-links[data-v-434e0d2c]{display:flex;flex-wrap:wrap;align-items:center}.stepper .stepper-links .stepper-links-item-area[data-v-434e0d2c]{display:flex}.stepper .stepper-links .stepper-links-item-area:hover .icon[data-v-434e0d2c]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg[data-v-434e0d2c]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg path[data-v-434e0d2c]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper[data-v-434e0d2c]{display:block;position:absolute;top:24px;padding:1.1428571429rem;display:flex;flex-wrap:wrap;width:180px;left:40px;box-shadow:4px 4px 16px rgba(175,162,186,.24);background-color:#fff}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links[data-v-434e0d2c]{width:100%}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links p[data-v-434e0d2c]{width:100%;text-align:center}.stepper .stepper-links .stepper-links-item-area .dropdown-stepper[data-v-434e0d2c]{display:none}.stepper .stepper-links .stepper-links-item-area .stepper-link-text[data-v-434e0d2c]{display:flex;flex-wrap:wrap;align-content:center;align-items:center;cursor:default}.stepper .stepper-links .stepper-links-item-area .stepper-link-text.is-current[data-v-434e0d2c]{cursor:default;font-weight:700}.stepper .stepper-links .stepper-links-item-area .preview-button[data-v-434e0d2c]:hover{cursor:pointer;color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area .preview-button:hover .icon[data-v-434e0d2c]{color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area .icon[data-v-434e0d2c]{margin-right:.380952381rem}@media (max-width:479px){.stepper .stepper-links .stepper-links-item-area .icon[data-v-434e0d2c]{margin-right:.7619047619rem}}.stepper .stepper-links .stepper-link-divider[data-v-434e0d2c]{margin-right:.1904761905rem;margin-left:.1904761905rem;cursor:default}',map:void 0,media:void 0})}),{name:"Breadcrumb",components:{Button:A,Heading:vt,Paragraph:ft,Icon:C},props:{steps:{type:Array,required:!0},color:{type:String,required:!1,default:"#68596E"}},methods:{onClick:function(t){this.$emit("click",t)}},computed:{}},"data-v-434e0d2c",!1,void 0,!1,x,void 0,void 0),Et=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"top-bar",style:t.colorsVar},[t.steps&&t.steps.length?a("div",{staticClass:"steppers"},[a("Stepper",{attrs:{steps:t.steps,currentText:t.currentText,color:t.color},on:{click:t.onClick}})],1):t._e(),t._v(" "),t.breadcrumbs&&t.breadcrumbs.length?a("div",{staticClass:"steppers"},[a("Breadcrumb",{attrs:{routes:t.breadcrumbs,color:t.color},on:{click:t.onClick}})],1):t._e(),t._v(" "),t.have_button&&t.isMobile?a("div",{staticClass:"button-right"},[a("Button",{attrs:{kind:"secondary",size:"sm",width:"fluid"},on:{click:t.clickContinue}},[a("span",[t._v("Continuar")])])],1):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-c33325de_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-c33325de]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-c33325de]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-c33325de]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-c33325de]{font-size:14px}}@media (min-width:1024px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-c33325de]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-c33325de]{font-size:1.56vw}}html[data-v-c33325de]{box-sizing:border-box}*[data-v-c33325de],[data-v-c33325de]::after,[data-v-c33325de]::before{box-sizing:border-box}.top-bar[data-v-c33325de]{position:relative;width:100%;top:0;left:0;padding-top:1.1428571429rem;padding-bottom:1.1428571429rem;align-items:center;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding-left:2.7777777778vw;padding-right:2.7777777778vw}.preview-button[data-v-c33325de]{cursor:pointer}.button-right button[data-v-c33325de]{background-color:var(--preview-color)!important}.button-right button span[data-v-c33325de]{z-index:2;position:relative}.button-right button[data-v-c33325de]:hover{background-color:var(--preview-color)!important}.button-right button[data-v-c33325de]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.24)}',map:void 0,media:void 0})}),{name:"TopBar",components:{Button:A,Heading:vt,Paragraph:ft,Icon:C,Stepper:Lt,Breadcrumb:b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stepper"},t._l(t.routes,(function(e,i){return a("div",{key:i,staticClass:"stepper-links"},[e?a("div",{staticClass:"stepper-links-item-area"},[a("Paragraph",{staticClass:"stepper-link-text",class:t.routes.length-1==i?"is-current":"not-current",attrs:{size:"sm",color:t.color},on:{click:function(a){t.routes.length,t.onClick(e)}}},[a("div",{staticClass:"preview-button",style:"color:"+t.color,on:{click:function(a){return t.onClick(e)}}},[0==i?a("Icon",{staticClass:"back-button",attrs:{name:"arrow-left",fill:t.color,color:t.color,size:"md",stroke:"transparent"}}):t._e()],1),t._v("\n\n\t\t\t\t"+t._s(e.stepperName))])],1):t._e(),t._v(" "),t.routes.length-1!=i?a("Paragraph",{staticClass:"stepper-link-divider",attrs:{size:"sm",color:t.color},domProps:{innerHTML:t._s("/")}}):t._e()],1)})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-7e4cd3fe_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-7e4cd3fe]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-7e4cd3fe]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-7e4cd3fe]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-7e4cd3fe]{font-size:14px}}@media (min-width:1024px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-7e4cd3fe]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-7e4cd3fe]{font-size:1.56vw}}html[data-v-7e4cd3fe]{box-sizing:border-box}*[data-v-7e4cd3fe],[data-v-7e4cd3fe]::after,[data-v-7e4cd3fe]::before{box-sizing:border-box}.stepper[data-v-7e4cd3fe]{display:flex;flex-wrap:wrap;position:relative;z-index:9}.stepper .stepper-links[data-v-7e4cd3fe]{display:flex;flex-wrap:wrap;align-items:center}.stepper .stepper-links .stepper-links-item-area[data-v-7e4cd3fe]{display:flex;cursor:pointer}.stepper .stepper-links .stepper-links-item-area:hover .preview-button .icon[data-v-7e4cd3fe]{color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon[data-v-7e4cd3fe]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg[data-v-7e4cd3fe]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg path[data-v-7e4cd3fe]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper[data-v-7e4cd3fe]{display:block;position:absolute;top:24px;padding:1.1428571429rem;display:flex;flex-wrap:wrap;width:180px;left:40px;box-shadow:4px 4px 16px rgba(175,162,186,.24);background-color:#fff}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links[data-v-7e4cd3fe]{width:100%}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links p[data-v-7e4cd3fe]{width:100%;text-align:center}.stepper .stepper-links .stepper-links-item-area .dropdown-stepper[data-v-7e4cd3fe]{display:none}.stepper .stepper-links .stepper-links-item-area .stepper-link-text[data-v-7e4cd3fe]{display:flex;flex-wrap:wrap;align-content:center;align-items:center}.stepper .stepper-links .stepper-links-item-area .stepper-link-text.is-current[data-v-7e4cd3fe]{cursor:default;font-weight:700}.stepper .stepper-links .stepper-links-item-area .stepper-link-text:hover.not-current[data-v-7e4cd3fe]{color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area .icon[data-v-7e4cd3fe]{margin-right:.380952381rem}@media (max-width:479px){.stepper .stepper-links .stepper-links-item-area .icon[data-v-7e4cd3fe]{margin-right:.7619047619rem}}.stepper .stepper-links .stepper-link-divider[data-v-7e4cd3fe]{margin-right:.1904761905rem;margin-left:.1904761905rem}',map:void 0,media:void 0})}),{name:"Breadcrumb",components:{Button:A,Heading:vt,Paragraph:ft,Icon:C},props:{routes:{type:Array,required:!0},color:{type:String,required:!1,default:"#68596E"}},methods:{onClick:function(t){this.$emit("click",t)}},computed:{}},"data-v-7e4cd3fe",!1,void 0,!1,x,void 0,void 0)},props:{breadcrumbs:{type:Array,required:!1},steps:{type:Array,required:!1},color:{type:String,required:!1,default:"#AFA2BA"},have_button:{type:Boolean,required:!1},isMobile:{type:Boolean,required:!1},preview_color:{type:String,default:"#12d3db",required:!1}},computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}},methods:{onClick:function(t){this.$emit("click",t)},clickContinue:function(){this.$emit("clickContinue",null)}}},"data-v-c33325de",!1,void 0,!1,x,void 0,void 0),It=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bottom-bar",style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"book-area"},[a("div",{staticClass:"book-cover"},[t.imageAsset?a("img",{attrs:{src:t.imageAsset,width:"46",alt:""}}):a("div",{staticClass:"placeholder-loading"},[t._m(0),t._v(" "),"a4"==t.book_format?a("img",{attrs:{src:"../assets/images/placeholder-a4.jpg",width:"46",alt:""}}):a("img",{attrs:{src:"../assets/images/placeholder-square.jpg",width:"46",alt:""}})])]),t._v(" "),a("div",{staticClass:"book-info"},[a("div",[t.book_brand?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.book_brand))]):t._e(),t._v(" "),t.book_name?a("Paragraph",{attrs:{size:"sm",color:"#68596E",type:"bold"}},[t._v(t._s(t.book_name))]):t._e()],1)])]),t._v(" "),a("div",{staticClass:"btn-foward"},[a("Button",{attrs:{kind:"primary",size:"md",width:"fluid"},on:{click:t.action}},[a("span",[t._v("Continuar")])])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loading-bg"},[e("div",{staticClass:"loading book-loading"})])}]},(function(t){t&&t("data-v-0ebd7106_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-0ebd7106]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0ebd7106]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0ebd7106]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0ebd7106]{font-size:14px}}@media (min-width:1024px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0ebd7106]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0ebd7106]{font-size:1.56vw}}html[data-v-0ebd7106]{box-sizing:border-box}*[data-v-0ebd7106],[data-v-0ebd7106]::after,[data-v-0ebd7106]::before{box-sizing:border-box}.bottom-bar[data-v-0ebd7106]{position:relative;width:100%;bottom:0;left:0;box-shadow:0 10px 26px rgba(104,89,110,.24);padding-top:.7619047619rem;padding-bottom:.7619047619rem;display:flex;flex-wrap:wrap;align-items:center;width:100%;justify-content:space-between;padding-left:1.7142857143rem;z-index:4;position:absolute;z-index:23;bottom:0;background-color:#fff}@media (max-width:990px){.bottom-bar[data-v-0ebd7106]{position:relative!important}}.bottom-bar .book-area[data-v-0ebd7106]{display:flex;align-content:center;flex-wrap:wrap}.bottom-bar .book-area .book-cover[data-v-0ebd7106]{display:flex;align-content:center;flex-wrap:wrap;border-radius:4px;overflow:hidden;height:3.0476190476rem}.bottom-bar .book-area .book-cover img[data-v-0ebd7106]{height:100%;width:auto}.bottom-bar .book-area .book-info[data-v-0ebd7106]{display:flex;padding-left:.7619047619rem;flex-wrap:nowrap;align-items:center}.bottom-bar .book-area .book-info p[data-v-0ebd7106]{width:100%}.bottom-bar .btn-foward[data-v-0ebd7106]{display:flex;width:27.7777777778vw;padding-right:1.7142857143rem}@media (max-width:990px){.bottom-bar .btn-foward[data-v-0ebd7106]{width:100%}}.bottom-bar .btn-foward button[data-v-0ebd7106]{background-color:var(--preview-color)!important}.bottom-bar .btn-foward button span[data-v-0ebd7106]{z-index:2;position:relative}.bottom-bar .btn-foward button[data-v-0ebd7106]:hover{background-color:var(--preview-color)!important}.bottom-bar .btn-foward button[data-v-0ebd7106]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.24)}.loading-bg[data-v-0ebd7106]{position:absolute}.loading[data-v-0ebd7106]{border:2px solid #f3f3f3;border-top:2px solid #42cda1;border-radius:50%;width:.7142857143rem;height:.7142857143rem;animation:spin-data-v-0ebd7106 .6s linear infinite}@media (max-width:479px){.loading[data-v-0ebd7106]{border:2px solid #f3f3f3;border-top:2px solid #42cda1;width:.9345794393rem;height:.9345794393rem}}.placeholder-loading[data-v-0ebd7106]{width:100%;position:relative;height:100%}.placeholder-loading .loading-bg[data-v-0ebd7106]{position:absolute;left:0;bottom:0;top:0;margin:auto;height:15px;width:100%;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;display:flex;justify-content:center}.placeholder-loading img[data-v-0ebd7106]{width:100%;max-height:3.0476190476rem}@keyframes spin-data-v-0ebd7106{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})}),{name:"BottomBar",components:{Button:A,Heading:vt,Paragraph:ft,Icon:C,Stepper:Lt,VLazyImage:e},props:{uuid:{type:String,required:!1},book_name:{type:String,required:!1},book_brand:{type:String,required:!1},preview_color:{type:String,default:"#12d3db",required:!1},book_format:{type:String,required:!0}},data:function(){return{isMobile:null,
1590
+ this.isLoaded=!0}}},void 0,!1,void 0,!1,x,void 0,void 0)),Et=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stepper"},t._l(t.steps,(function(e,i){return a("div",{key:i,staticClass:"stepper-links"},[e?a("div",{staticClass:"stepper-links-item-area"},[a("Paragraph",{staticClass:"stepper-link-text",class:t.steps.length-1==i?"is-current":"not-current",attrs:{size:"sm",color:t.color}},[a("div",{staticClass:"preview-button",style:"color:"+t.color,on:{click:function(a){t.steps.length,t.onClick(e)}}},[0==i?a("Icon",{staticClass:"back-button",attrs:{name:"arrow-left",fill:t.color,color:t.color,size:"md",stroke:"transparent"}}):t._e()],1),t._v("\n\n\t\t\t\t"+t._s(e.stepperName))])],1):t._e(),t._v(" "),t.steps.length-1!=i?a("Paragraph",{staticClass:"stepper-link-divider",attrs:{size:"sm",color:t.color},domProps:{innerHTML:t._s("-")}}):t._e()],1)})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-434e0d2c_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-434e0d2c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-434e0d2c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-434e0d2c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-434e0d2c]{font-size:14px}}@media (min-width:1024px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-434e0d2c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-434e0d2c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-434e0d2c]{font-size:1.56vw}}html[data-v-434e0d2c]{box-sizing:border-box}*[data-v-434e0d2c],[data-v-434e0d2c]::after,[data-v-434e0d2c]::before{box-sizing:border-box}.stepper[data-v-434e0d2c]{display:flex;flex-wrap:wrap;position:relative;z-index:9}.stepper .stepper-links[data-v-434e0d2c]{display:flex;flex-wrap:wrap;align-items:center}.stepper .stepper-links .stepper-links-item-area[data-v-434e0d2c]{display:flex}.stepper .stepper-links .stepper-links-item-area:hover .icon[data-v-434e0d2c]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg[data-v-434e0d2c]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg path[data-v-434e0d2c]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper[data-v-434e0d2c]{display:block;position:absolute;top:24px;padding:1.1428571429rem;display:flex;flex-wrap:wrap;width:180px;left:40px;box-shadow:4px 4px 16px rgba(175,162,186,.24);background-color:#fff}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links[data-v-434e0d2c]{width:100%}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links p[data-v-434e0d2c]{width:100%;text-align:center}.stepper .stepper-links .stepper-links-item-area .dropdown-stepper[data-v-434e0d2c]{display:none}.stepper .stepper-links .stepper-links-item-area .stepper-link-text[data-v-434e0d2c]{display:flex;flex-wrap:wrap;align-content:center;align-items:center;cursor:default}.stepper .stepper-links .stepper-links-item-area .stepper-link-text.is-current[data-v-434e0d2c]{cursor:default;font-weight:700}.stepper .stepper-links .stepper-links-item-area .preview-button[data-v-434e0d2c]:hover{cursor:pointer;color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area .preview-button:hover .icon[data-v-434e0d2c]{color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area .icon[data-v-434e0d2c]{margin-right:.380952381rem}@media (max-width:479px){.stepper .stepper-links .stepper-links-item-area .icon[data-v-434e0d2c]{margin-right:.7619047619rem}}.stepper .stepper-links .stepper-link-divider[data-v-434e0d2c]{margin-right:.1904761905rem;margin-left:.1904761905rem;cursor:default}',map:void 0,media:void 0})}),{name:"Breadcrumb",components:{Button:A,Heading:ft,Paragraph:bt,Icon:C},props:{steps:{type:Array,required:!0},color:{type:String,required:!1,default:"#68596E"}},methods:{onClick:function(t){this.$emit("click",t)}},computed:{}},"data-v-434e0d2c",!1,void 0,!1,x,void 0,void 0),It=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"top-bar",style:t.colorsVar},[t.steps&&t.steps.length?a("div",{staticClass:"steppers"},[a("Stepper",{attrs:{steps:t.steps,currentText:t.currentText,color:t.color},on:{click:t.onClick}})],1):t._e(),t._v(" "),t.breadcrumbs&&t.breadcrumbs.length?a("div",{staticClass:"steppers"},[a("Breadcrumb",{attrs:{routes:t.breadcrumbs,color:t.color},on:{click:t.onClick}})],1):t._e(),t._v(" "),t.have_button&&t.isMobile?a("div",{staticClass:"button-right"},[a("Button",{attrs:{kind:"secondary",size:"sm",width:"fluid"},on:{click:t.clickContinue}},[a("span",[t._v("Continuar")])])],1):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-c33325de_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-c33325de]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-c33325de]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-c33325de]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-c33325de]{font-size:14px}}@media (min-width:1024px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-c33325de]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-c33325de]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-c33325de]{font-size:1.56vw}}html[data-v-c33325de]{box-sizing:border-box}*[data-v-c33325de],[data-v-c33325de]::after,[data-v-c33325de]::before{box-sizing:border-box}.top-bar[data-v-c33325de]{position:relative;width:100%;top:0;left:0;padding-top:1.1428571429rem;padding-bottom:1.1428571429rem;align-items:center;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding-left:2.7777777778vw;padding-right:2.7777777778vw}.preview-button[data-v-c33325de]{cursor:pointer}.button-right button[data-v-c33325de]{background-color:var(--preview-color)!important}.button-right button span[data-v-c33325de]{z-index:2;position:relative}.button-right button[data-v-c33325de]:hover{background-color:var(--preview-color)!important}.button-right button[data-v-c33325de]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.24)}',map:void 0,media:void 0})}),{name:"TopBar",components:{Button:A,Heading:ft,Paragraph:bt,Icon:C,Stepper:Et,Breadcrumb:b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"stepper"},t._l(t.routes,(function(e,i){return a("div",{key:i,staticClass:"stepper-links"},[e?a("div",{staticClass:"stepper-links-item-area"},[a("Paragraph",{staticClass:"stepper-link-text",class:t.routes.length-1==i?"is-current":"not-current",attrs:{size:"sm",color:t.color},on:{click:function(a){t.routes.length,t.onClick(e)}}},[a("div",{staticClass:"preview-button",style:"color:"+t.color,on:{click:function(a){return t.onClick(e)}}},[0==i?a("Icon",{staticClass:"back-button",attrs:{name:"arrow-left",fill:t.color,color:t.color,size:"md",stroke:"transparent"}}):t._e()],1),t._v("\n\n\t\t\t\t"+t._s(e.stepperName))])],1):t._e(),t._v(" "),t.routes.length-1!=i?a("Paragraph",{staticClass:"stepper-link-divider",attrs:{size:"sm",color:t.color},domProps:{innerHTML:t._s("/")}}):t._e()],1)})),0)},staticRenderFns:[]},(function(t){t&&t("data-v-7e4cd3fe_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-7e4cd3fe]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-7e4cd3fe]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-7e4cd3fe]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-7e4cd3fe]{font-size:14px}}@media (min-width:1024px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-7e4cd3fe]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-7e4cd3fe]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-7e4cd3fe]{font-size:1.56vw}}html[data-v-7e4cd3fe]{box-sizing:border-box}*[data-v-7e4cd3fe],[data-v-7e4cd3fe]::after,[data-v-7e4cd3fe]::before{box-sizing:border-box}.stepper[data-v-7e4cd3fe]{display:flex;flex-wrap:wrap;position:relative;z-index:9}.stepper .stepper-links[data-v-7e4cd3fe]{display:flex;flex-wrap:wrap;align-items:center}.stepper .stepper-links .stepper-links-item-area[data-v-7e4cd3fe]{display:flex;cursor:pointer}.stepper .stepper-links .stepper-links-item-area:hover .preview-button .icon[data-v-7e4cd3fe]{color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon[data-v-7e4cd3fe]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg[data-v-7e4cd3fe]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .icon svg path[data-v-7e4cd3fe]{fill:#12d3db!important}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper[data-v-7e4cd3fe]{display:block;position:absolute;top:24px;padding:1.1428571429rem;display:flex;flex-wrap:wrap;width:180px;left:40px;box-shadow:4px 4px 16px rgba(175,162,186,.24);background-color:#fff}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links[data-v-7e4cd3fe]{width:100%}.stepper .stepper-links .stepper-links-item-area:hover .dropdown-stepper .stepper-links p[data-v-7e4cd3fe]{width:100%;text-align:center}.stepper .stepper-links .stepper-links-item-area .dropdown-stepper[data-v-7e4cd3fe]{display:none}.stepper .stepper-links .stepper-links-item-area .stepper-link-text[data-v-7e4cd3fe]{display:flex;flex-wrap:wrap;align-content:center;align-items:center}.stepper .stepper-links .stepper-links-item-area .stepper-link-text.is-current[data-v-7e4cd3fe]{cursor:default;font-weight:700}.stepper .stepper-links .stepper-links-item-area .stepper-link-text:hover.not-current[data-v-7e4cd3fe]{color:#12d3db!important}.stepper .stepper-links .stepper-links-item-area .icon[data-v-7e4cd3fe]{margin-right:.380952381rem}@media (max-width:479px){.stepper .stepper-links .stepper-links-item-area .icon[data-v-7e4cd3fe]{margin-right:.7619047619rem}}.stepper .stepper-links .stepper-link-divider[data-v-7e4cd3fe]{margin-right:.1904761905rem;margin-left:.1904761905rem}',map:void 0,media:void 0})}),{name:"Breadcrumb",components:{Button:A,Heading:ft,Paragraph:bt,Icon:C},props:{routes:{type:Array,required:!0},color:{type:String,required:!1,default:"#68596E"}},methods:{onClick:function(t){this.$emit("click",t)}},computed:{}},"data-v-7e4cd3fe",!1,void 0,!1,x,void 0,void 0)},props:{breadcrumbs:{type:Array,required:!1},steps:{type:Array,required:!1},color:{type:String,required:!1,default:"#AFA2BA"},have_button:{type:Boolean,required:!1},isMobile:{type:Boolean,required:!1},preview_color:{type:String,default:"#12d3db",required:!1}},computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}},methods:{onClick:function(t){this.$emit("click",t)},clickContinue:function(){this.$emit("clickContinue",null)}}},"data-v-c33325de",!1,void 0,!1,x,void 0,void 0),At=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bottom-bar",style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"book-area"},[a("div",{staticClass:"book-cover"},[t.imageAsset?a("img",{attrs:{src:t.imageAsset,width:"46",alt:""}}):a("div",{staticClass:"placeholder-loading"},[t._m(0),t._v(" "),"a4"==t.book_format?a("img",{attrs:{src:"../assets/images/placeholder-a4.jpg",width:"46",alt:""}}):a("img",{attrs:{src:"../assets/images/placeholder-square.jpg",width:"46",alt:""}})])]),t._v(" "),a("div",{staticClass:"book-info"},[a("div",[t.book_brand?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.book_brand))]):t._e(),t._v(" "),t.book_name?a("Paragraph",{attrs:{size:"sm",color:"#68596E",type:"bold"}},[t._v(t._s(t.book_name))]):t._e()],1)])]),t._v(" "),a("div",{staticClass:"btn-foward"},[a("Button",{attrs:{kind:"primary",size:"md",width:"fluid"},on:{click:t.action}},[a("span",[t._v("Continuar")])])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loading-bg"},[e("div",{staticClass:"loading book-loading"})])}]},(function(t){t&&t("data-v-0ebd7106_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-0ebd7106]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0ebd7106]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0ebd7106]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0ebd7106]{font-size:14px}}@media (min-width:1024px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0ebd7106]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0ebd7106]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0ebd7106]{font-size:1.56vw}}html[data-v-0ebd7106]{box-sizing:border-box}*[data-v-0ebd7106],[data-v-0ebd7106]::after,[data-v-0ebd7106]::before{box-sizing:border-box}.bottom-bar[data-v-0ebd7106]{position:relative;width:100%;bottom:0;left:0;box-shadow:0 10px 26px rgba(104,89,110,.24);padding-top:.7619047619rem;padding-bottom:.7619047619rem;display:flex;flex-wrap:wrap;align-items:center;width:100%;justify-content:space-between;padding-left:1.7142857143rem;z-index:4;position:absolute;z-index:23;bottom:0;background-color:#fff}@media (max-width:990px){.bottom-bar[data-v-0ebd7106]{position:relative!important}}.bottom-bar .book-area[data-v-0ebd7106]{display:flex;align-content:center;flex-wrap:wrap}.bottom-bar .book-area .book-cover[data-v-0ebd7106]{display:flex;align-content:center;flex-wrap:wrap;border-radius:4px;overflow:hidden;height:3.0476190476rem}.bottom-bar .book-area .book-cover img[data-v-0ebd7106]{height:100%;width:auto}.bottom-bar .book-area .book-info[data-v-0ebd7106]{display:flex;padding-left:.7619047619rem;flex-wrap:nowrap;align-items:center}.bottom-bar .book-area .book-info p[data-v-0ebd7106]{width:100%}.bottom-bar .btn-foward[data-v-0ebd7106]{display:flex;width:27.7777777778vw;padding-right:1.7142857143rem}@media (max-width:990px){.bottom-bar .btn-foward[data-v-0ebd7106]{width:100%}}.bottom-bar .btn-foward button[data-v-0ebd7106]{background-color:var(--preview-color)!important}.bottom-bar .btn-foward button span[data-v-0ebd7106]{z-index:2;position:relative}.bottom-bar .btn-foward button[data-v-0ebd7106]:hover{background-color:var(--preview-color)!important}.bottom-bar .btn-foward button[data-v-0ebd7106]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.24)}.loading-bg[data-v-0ebd7106]{position:absolute}.loading[data-v-0ebd7106]{border:2px solid #f3f3f3;border-top:2px solid #42cda1;border-radius:50%;width:.7142857143rem;height:.7142857143rem;animation:spin-data-v-0ebd7106 .6s linear infinite}@media (max-width:479px){.loading[data-v-0ebd7106]{border:2px solid #f3f3f3;border-top:2px solid #42cda1;width:.9345794393rem;height:.9345794393rem}}.placeholder-loading[data-v-0ebd7106]{width:100%;position:relative;height:100%}.placeholder-loading .loading-bg[data-v-0ebd7106]{position:absolute;left:0;bottom:0;top:0;margin:auto;height:15px;width:100%;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;display:flex;justify-content:center}.placeholder-loading img[data-v-0ebd7106]{width:100%;max-height:3.0476190476rem}@keyframes spin-data-v-0ebd7106{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})}),{name:"BottomBar",components:{Button:A,Heading:ft,Paragraph:bt,Icon:C,Stepper:Et,VLazyImage:e},props:{uuid:{type:String,required:!1},book_name:{type:String,required:!1},book_brand:{type:String,required:!1},preview_color:{type:String,default:"#12d3db",required:!1},book_format:{type:String,required:!0}},data:function(){return{isMobile:null,
1562
1591
  //coverLoading: true,
1563
- imageAsset:null,routes:[{path:"index",stepperName:"Etapa 2"},{path:"second",stepperName:"5 - Próximos personagens"}]}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),t.getBase64("https://builder.dentrodahistoria.com.br/api/builder/getpreview/"+t.uuid+"?page=1&w=120&v=0&noCache=true")},methods:(xt={detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},onClick:function(){this.$emit("click")},action:function(){this.$emit("changeUrl")}},V(xt,"detectSize",(function(){var t=!1;return window.innerWidth<990&&(t=!0),t})),V(xt,"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")})),V(xt,"getBase64",(function(t){var e=this;o.get(t,{responseType:"arraybuffer"}).then((function(t){e.imageAsset="data:image/png;base64,"+Buffer.from(t.data,"binary").toString("base64")}))})),xt),computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}}},"data-v-0ebd7106",!1,void 0,!1,x,void 0,void 0),At=require("axios"),Bt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded?a("div",{staticClass:"top-bar-area"},[a("TopBar",{attrs:{breadcrumbs:t.breadcrumbs,steps:t.steps,color:(t.isMobile,"#afa2ba"),isMobile:t.isMobile,have_button:!0,preview_color:t.preview_color},on:{click:t.changeRoute,clickContinue:t.changeRouteContinue}})],1):t._e(),t._v(" "),t.isLoaded&&!t.isMobile?a("div",{staticClass:"preview-desktop-area"},[a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,book_format:t.book_format,product_id:t.product_id,preview_color:t.preview_color,typeLanguage:t.typeLanguage,goToPage:t.currentPage,dedication_page:t.dedication_page},on:{updateCurrentPage:t.updateCurrentPage}})],1):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("div",{staticClass:"preview-mobile-area"},[a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,book_format:t.book_format,product_id:t.product_id,goToPage:t.currentPage,dedication_page:t.dedication_page,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[a("PreviewTools",{directives:[{name:"show",rawName:"v-show",value:t.isLoaded&&t.have_tools,expression:"isLoaded && have_tools"}],attrs:{dedication_text:t.dedication_text,uuid:t.uuid,slug:t.slug,character_id:t.character_id,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,language:t.language,languages:t.languages,layout:t.layout,layouts:t.layouts,preview_color:t.preview_color,character_position_id:t.character_position_id,typeRead:t.typeRead,custom_mes:t.custom_mes,custom_numero:t.custom_numero,is_created:t.is_created},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName,changeDedication:t.changeDedication,changeBirthday:t.changeBirthday,clickContinue:t.changeRouteContinue}})],1),t._v(" "),t.isMobile?t._e():a("div",{staticClass:"bottom-bar-area"},[t.isLoaded?a("BottomBar",{attrs:{uuid:t.uuid,book_brand:t.book_brand,book_name:t.book_name,preview_color:t.preview_color,book_format:t.book_format},on:{changeUrl:t.changeUrl}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-a6ebf3a8_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}.top-bar-area{position:absolute}@media (max-width:990px){.top-bar-area{position:relative;background-color:#fff}}body{margin:0}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.invisible{opacity:0}.preview-full{height:100vh;background-color:rgba(223,218,228,.64);overflow-y:hidden}@media (max-width:990px){.preview-full{overflow-y:auto}}.preview-mobile-area{width:100%;position:relative}.preview-desktop-area{position:relative;z-index:4;height:calc(100vh - 4.619047619rem);display:flex;justify-content:center}@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:zt,PreviewMobile:Mt,PreviewTools:St,TopBar:Et,BottomBar:It},props:{dedication_text:{type:String,required:!1},
1592
+ imageAsset:null,routes:[{path:"index",stepperName:"Etapa 2"},{path:"second",stepperName:"5 - Próximos personagens"}]}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),t.getBase64("https://builder.dentrodahistoria.com.br/api/builder/getpreview/"+t.uuid+"?page=1&w=120&v=0&noCache=true")},methods:(yt={detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},onClick:function(){this.$emit("click")},action:function(){this.$emit("changeUrl")}},V(yt,"detectSize",(function(){var t=!1;return window.innerWidth<990&&(t=!0),t})),V(yt,"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")})),V(yt,"getBase64",(function(t){var e=this;o.get(t,{responseType:"arraybuffer"}).then((function(t){e.imageAsset="data:image/png;base64,"+Buffer.from(t.data,"binary").toString("base64")}))})),yt),computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}}},"data-v-0ebd7106",!1,void 0,!1,x,void 0,void 0),Bt=require("axios"),Tt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded?a("div",{staticClass:"top-bar-area"},[a("TopBar",{attrs:{breadcrumbs:t.breadcrumbs,steps:t.steps,color:(t.isMobile,"#afa2ba"),isMobile:t.isMobile,have_button:!0,preview_color:t.preview_color},on:{click:t.changeRoute,clickContinue:t.changeRouteContinue}})],1):t._e(),t._v(" "),t.isLoaded&&!t.isMobile?a("div",{staticClass:"preview-desktop-area"},[a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,book_format:t.book_format,product_id:t.product_id,preview_color:t.preview_color,typeLanguage:t.typeLanguage,goToPage:t.currentPage,dedication_page:t.dedication_page},on:{updateCurrentPage:t.updateCurrentPage}})],1):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("div",{staticClass:"preview-mobile-area"},[a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,book_format:t.book_format,product_id:t.product_id,goToPage:t.currentPage,dedication_page:t.dedication_page,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[a("PreviewTools",{directives:[{name:"show",rawName:"v-show",value:t.isLoaded&&t.have_tools,expression:"isLoaded && have_tools"}],attrs:{dedication_text:t.dedication_text,uuid:t.uuid,slug:t.slug,character_id:t.character_id,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,language:t.language,languages:t.languages,layout:t.layout,layouts:t.layouts,preview_color:t.preview_color,character_position_id:t.character_position_id,typeRead:t.typeRead,custom_mes:t.custom_mes,custom_numero:t.custom_numero,is_created:t.is_created},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName,changeDedication:t.changeDedication,changeBirthday:t.changeBirthday,clickContinue:t.changeRouteContinue}})],1),t._v(" "),t.isMobile?t._e():a("div",{staticClass:"bottom-bar-area"},[t.isLoaded?a("BottomBar",{attrs:{uuid:t.uuid,book_brand:t.book_brand,book_name:t.book_name,preview_color:t.preview_color,book_format:t.book_format},on:{changeUrl:t.changeUrl}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-a6ebf3a8_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}.top-bar-area{position:absolute}@media (max-width:990px){.top-bar-area{position:relative;background-color:#fff}}body{margin:0}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.invisible{opacity:0}.preview-full{height:100vh;background-color:rgba(223,218,228,.64);overflow-y:hidden}@media (max-width:990px){.preview-full{overflow-y:auto}}.preview-mobile-area{width:100%;position:relative}.preview-desktop-area{position:relative;z-index:4;height:calc(100vh - 4.619047619rem);display:flex;justify-content:center}@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:_t,PreviewMobile:Pt,PreviewTools:Nt,TopBar:It,BottomBar:At},props:{dedication_text:{type:String,required:!1},
1564
1593
  /** Product id of Builder. `595` */
1565
1594
  product_id:{type:Number,required:!0},
1566
1595
  /** Character id of Builder. `57` */
@@ -1580,7 +1609,7 @@ preview_color:{type:String,default:"#16D3DB",required:!1},typeRead:{type:Boolean
1580
1609
  /** Show edit name. */
1581
1610
  custom_numero:{type:String,required:!1},
1582
1611
  /** Show edit name. */
1583
- custom_mes:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"br"},language:{type:String,required:!1},languages:{type:Array,required:!1},layout:{type:Number,required:!1},layouts:{type:Array,required:!1},book_name:{type:String,required:!1},book_brand:{type:String,required:!1},breadcrumbs:{type:Array,required:!1},steps:{type:Array,required:!1},is_created:{type:Boolean,required:!1,default:!1}},data:function(){return{isLoaded:!1,isMobile:!1,pages:0,book_format:"a4",lang:null,currentPage:0,dedication_page:null}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),t.lang=wt[t.typeLanguage],t.getProductInfo()},methods:{updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this;At.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pages=e.data.product.pages,e.data.product.extra&&e.data.product.extra.size&&(t.book_format=e.data.product.extra.size,e.data.product.layout.forEach((function(a,i){a.id===t.layout&&a.dedication_pages&&a.dedication_pages.length>0&&(t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0]))}))),t.isLoaded=!0})).catch((function(t){console.log(t)}))},detectSize:function(){return!!/mobile|android/i.test(navigator.userAgent);
1612
+ custom_mes:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"br"},language:{type:String,required:!1},languages:{type:Array,required:!1},layout:{type:Number,required:!1},layouts:{type:Array,required:!1},book_name:{type:String,required:!1},book_brand:{type:String,required:!1},breadcrumbs:{type:Array,required:!1},steps:{type:Array,required:!1},is_created:{type:Boolean,required:!1,default:!1}},data:function(){return{isLoaded:!1,isMobile:!1,pages:0,book_format:"a4",lang:null,currentPage:0,dedication_page:null}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),t.lang=xt[t.typeLanguage],t.getProductInfo()},methods:{updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this;Bt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pages=e.data.product.pages,e.data.product.extra&&e.data.product.extra.size&&(t.book_format=e.data.product.extra.size,e.data.product.layout.forEach((function(a,i){a.id===t.layout&&a.dedication_pages&&a.dedication_pages.length>0&&(t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0]))}))),t.isLoaded=!0})).catch((function(t){console.log(t)}))},detectSize:function(){return!!/mobile|android/i.test(navigator.userAgent);
1584
1613
  // var menuStatus = false;
1585
1614
  // if (window.innerWidth < 990) {
1586
1615
  // menuStatus = true;
@@ -1617,7 +1646,7 @@ this.$emit("completedDedication",t)},completedBirthday:function(t){
1617
1646
  /**
1618
1647
  * Função disparada ao ser finalizada customização. Recebe um objeto.
1619
1648
  */
1620
- this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,x,void 0,void 0),Tt=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-c1ad1038_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-c1ad1038]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-c1ad1038]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-c1ad1038]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-c1ad1038]{font-size:14px}}@media (min-width:1024px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-c1ad1038]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-c1ad1038]{font-size:1.56vw}}html[data-v-c1ad1038]{box-sizing:border-box}*[data-v-c1ad1038],[data-v-c1ad1038]::after,[data-v-c1ad1038]::before{box-sizing:border-box}.hr-group[data-v-c1ad1038]{width:100%;margin:0;border:0;background-color:#dfdae4}',map:void 0,media:void 0})}),{name:"HR",props:{
1649
+ this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,x,void 0,void 0),Ft=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-c1ad1038_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-c1ad1038]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-c1ad1038]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-c1ad1038]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-c1ad1038]{font-size:14px}}@media (min-width:1024px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-c1ad1038]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-c1ad1038]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-c1ad1038]{font-size:1.56vw}}html[data-v-c1ad1038]{box-sizing:border-box}*[data-v-c1ad1038],[data-v-c1ad1038]::after,[data-v-c1ad1038]::before{box-sizing:border-box}.hr-group[data-v-c1ad1038]{width:100%;margin:0;border:0;background-color:#dfdae4}',map:void 0,media:void 0})}),{name:"HR",props:{
1621
1650
  /**
1622
1651
  * Tipo do HR<br>
1623
1652
  * Values: `primary` `variable`
@@ -1632,14 +1661,14 @@ height:{type:String,default:"1px"},
1632
1661
  * HEX de cor, deve ser usado junto com kind `variable`<br>
1633
1662
  * Example: `#DFDAE4`
1634
1663
  **/
1635
- color:{type:String,default:"#DFDAE4"}},data:function(){return{colorDefault:"#DFDAE4"}},computed:{backgroundColor:function(){return"primary"!==this.kind?this.color:this.colorDefault}}},"data-v-c1ad1038",!1,void 0,!1,x,void 0,void 0),Ft=b({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",this._g(this._b({staticClass:"loading"},"div",this.$attrs,!1),this.$listeners),[e("svg",{staticClass:"spinner"},[e("circle",{staticClass:"path",attrs:{stroke:this.color,cx:"16",cy:"16",r:"13",fill:"none","stroke-width":"5"}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-503aff3e_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-503aff3e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-503aff3e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-503aff3e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-503aff3e]{font-size:14px}}@media (min-width:1024px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-503aff3e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-503aff3e]{font-size:1.56vw}}html[data-v-503aff3e]{box-sizing:border-box}*[data-v-503aff3e],[data-v-503aff3e]::after,[data-v-503aff3e]::before{box-sizing:border-box}.loading[data-v-503aff3e]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:absolute}.spinner[data-v-503aff3e]{animation:rotate-data-v-503aff3e 2s linear infinite;z-index:2;width:32px;height:32px}@media (max-width:479px){.spinner[data-v-503aff3e]{width:24px;height:24px;margin:-12px 0 0 -12px}}.spinner .path[data-v-503aff3e]{stroke-linecap:round;animation:dash-data-v-503aff3e 1.5s ease-in-out infinite}@media (max-width:479px){.spinner .path[data-v-503aff3e]{width:12px;height:12px;margin:-6px 0 0 -6px;stroke-width:3}}@keyframes rotate-data-v-503aff3e{100%{transform:rotate(360deg)}}@keyframes dash-data-v-503aff3e{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}',map:void 0,media:void 0})}),{name:"Spinner",props:{color:{type:String,default:"#000"}}},"data-v-503aff3e",!1,void 0,!1,x,void 0,void 0),qt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"feedback-flag",class:t.visible?"opened":""},[a("div",{staticClass:"box-feedback",class:t.displayVisible?"view-box":"",on:{click:t.closeFeedBack}},[a("div",{staticClass:"box-body",class:t.type},[a("div",{staticClass:"icon-box"},["success"===t.type?a("Icon",{attrs:{name:"check"}}):"atention"===t.type?a("Icon",{attrs:{name:"alert"}}):a("Icon",{attrs:{name:"caution"}})],1),t._v(" "),a("div",{staticClass:"header"},[a("Paragraph",{staticClass:"title",attrs:{type:"bold",size:"sm"}},[t._v(t._s(t.title))]),t._v(" "),a("Paragraph",{staticClass:"description",attrs:{size:"sm"}},[t._v(t._s(t.description))])],1),t._v(" "),a("div",{staticClass:"close-feedback",on:{click:t.closeFeedBack}},[a("Icon",{attrs:{name:"close"}})],1)])])])},staticRenderFns:[]},(function(t){t&&t("data-v-0399859d_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-0399859d]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0399859d]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0399859d]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0399859d]{font-size:14px}}@media (min-width:1024px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0399859d]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0399859d]{font-size:1.56vw}}html[data-v-0399859d]{box-sizing:border-box}*[data-v-0399859d],[data-v-0399859d]::after,[data-v-0399859d]::before{box-sizing:border-box}.feedback-flag[data-v-0399859d]{width:100vw;height:100vh;display:none}.feedback-flag.opened[data-v-0399859d]{display:block;position:fixed;z-index:1050;left:0;top:0}.feedback-flag.opened[data-v-0399859d]:before{transition:all .3s;opacity:1}.feedback-flag[data-v-0399859d]:before{content:"";position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background:rgba(104,89,110,.24);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:all .3s;opacity:0}.box-feedback[data-v-0399859d]{position:fixed;bottom:0;margin:0 auto;right:35%;z-index:9999;background:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);transition:transform 450ms cubic-bezier(.4,0,.2,1),opacity 450ms cubic-bezier(.4,0,.2,1),-webkit-transform 450ms cubic-bezier(.4,0,.2,1);opacity:1;border-radius:.380952381rem;transform:translateY(6.1904761905rem);overflow:hidden}@media (max-width:479px){.box-feedback[data-v-0399859d]{border-radius:.7476635514rem;transform:translateY(12.1495327103rem);right:0;left:0;width:90%}}.box-feedback .box-body[data-v-0399859d]{transition:opacity .3s cubic-bezier(.4,0,.2,1);opacity:0;background-color:#fff}.box-feedback.view-box[data-v-0399859d]{transform:translateY(-1.9047619048rem);opacity:1}@media (max-width:479px){.box-feedback.view-box[data-v-0399859d]{transform:translateY(-3.738317757rem)}}.box-feedback.view-box .box-body[data-v-0399859d]{opacity:1}.box-feedback .box-body[data-v-0399859d]{position:relative;display:flex;align-items:center;padding:1.1428571429rem .7619047619rem;padding-bottom:.7619047619rem;justify-content:space-between}@media (max-width:479px){.box-feedback .box-body[data-v-0399859d]{padding:2.2429906542rem 1.4953271028rem}}.box-feedback .box-body.success .icon-box[data-v-0399859d]{background-color:#00cf72}.box-feedback .box-body.success .title[data-v-0399859d]{color:#00cf72!important}.box-feedback .box-body.success[data-v-0399859d]:before{background-color:#00cf72}.box-feedback .box-body.failed .icon-box[data-v-0399859d]{background-color:#ff4641}.box-feedback .box-body.failed .title[data-v-0399859d]{color:#ff4641!important}.box-feedback .box-body.failed[data-v-0399859d]:before{background-color:#ff4641}.box-feedback .box-body.atention .icon-box[data-v-0399859d]{background-color:#feaf00}.box-feedback .box-body.atention .title[data-v-0399859d]{color:#feaf00!important}.box-feedback .box-body.atention[data-v-0399859d]:before{background-color:#feaf00}.box-feedback .box-body[data-v-0399859d]:before{content:"";display:block;position:absolute;height:.4285714286rem;width:100%;left:0;top:-.0476190476rem;margin-top:auto;margin-bottom:auto;border-radius:.380952381rem .380952381rem 0 0}@media (max-width:479px){.box-feedback .box-body[data-v-0399859d]:before{top:-.0934579439rem;height:.7476635514rem;border-radius:.7476635514rem .7476635514rem 0 0}}.box-feedback .box-body .header[data-v-0399859d]{max-width:13.5238095238rem}@media (max-width:479px){.box-feedback .box-body .header[data-v-0399859d]{max-width:26.5420560748rem}}.box-feedback .box-body .icon-box[data-v-0399859d]{margin-right:.7619047619rem;border-radius:50%}@media (max-width:479px){.box-feedback .box-body .icon-box[data-v-0399859d]{width:3.738317757rem;height:3.738317757rem;margin-right:1.4953271028rem}}.box-feedback .box-body .icon-box .icon[data-v-0399859d]{display:flex;justify-content:center;align-items:center;width:1.9047619048rem;height:1.9047619048rem}@media (max-width:479px){.box-feedback .box-body .icon-box .icon[data-v-0399859d]{width:3.738317757rem;height:3.738317757rem}}.box-feedback .box-body .icon-box[data-v-0399859d] svg{width:1.5238095238rem;height:1.5238095238rem}@media (max-width:479px){.box-feedback .box-body .icon-box[data-v-0399859d] svg{width:2.9906542056rem;height:2.9906542056rem}}.box-feedback .box-body .icon-box[data-v-0399859d] svg path{fill:#fff}.box-feedback .box-body .close-feedback[data-v-0399859d]{width:1.1428571429rem;height:100%;display:flex;align-items:center;justify-content:center;margin-left:.7619047619rem;cursor:pointer}@media (max-width:479px){.box-feedback .box-body .close-feedback[data-v-0399859d]{width:2.9906542056rem}}.box-feedback .box-body .close-feedback .icon[data-v-0399859d]{display:flex;align-items:center}.box-feedback .box-body .close-feedback[data-v-0399859d] svg{width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.box-feedback .box-body .close-feedback[data-v-0399859d] svg{width:2.2429906542rem;height:2.2429906542rem}}.box-feedback .box-body .close-feedback[data-v-0399859d] svg path{fill:#dfdae4}',map:void 0,media:void 0})}),{name:"FeedBack",components:{Paragraph:ft,Icon:C},props:{
1664
+ color:{type:String,default:"#DFDAE4"}},data:function(){return{colorDefault:"#DFDAE4"}},computed:{backgroundColor:function(){return"primary"!==this.kind?this.color:this.colorDefault}}},"data-v-c1ad1038",!1,void 0,!1,x,void 0,void 0),qt=b({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",this._g(this._b({staticClass:"loading"},"div",this.$attrs,!1),this.$listeners),[e("svg",{staticClass:"spinner"},[e("circle",{staticClass:"path",attrs:{stroke:this.color,cx:"16",cy:"16",r:"13",fill:"none","stroke-width":"5"}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-503aff3e_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-503aff3e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-503aff3e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-503aff3e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-503aff3e]{font-size:14px}}@media (min-width:1024px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-503aff3e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-503aff3e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-503aff3e]{font-size:1.56vw}}html[data-v-503aff3e]{box-sizing:border-box}*[data-v-503aff3e],[data-v-503aff3e]::after,[data-v-503aff3e]::before{box-sizing:border-box}.loading[data-v-503aff3e]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:absolute}.spinner[data-v-503aff3e]{animation:rotate-data-v-503aff3e 2s linear infinite;z-index:2;width:32px;height:32px}@media (max-width:479px){.spinner[data-v-503aff3e]{width:24px;height:24px;margin:-12px 0 0 -12px}}.spinner .path[data-v-503aff3e]{stroke-linecap:round;animation:dash-data-v-503aff3e 1.5s ease-in-out infinite}@media (max-width:479px){.spinner .path[data-v-503aff3e]{width:12px;height:12px;margin:-6px 0 0 -6px;stroke-width:3}}@keyframes rotate-data-v-503aff3e{100%{transform:rotate(360deg)}}@keyframes dash-data-v-503aff3e{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}',map:void 0,media:void 0})}),{name:"Spinner",props:{color:{type:String,default:"#000"}}},"data-v-503aff3e",!1,void 0,!1,x,void 0,void 0),Rt=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"feedback-flag",class:t.visible?"opened":""},[a("div",{staticClass:"box-feedback",class:t.displayVisible?"view-box":"",on:{click:t.closeFeedBack}},[a("div",{staticClass:"box-body",class:t.type},[a("div",{staticClass:"icon-box"},["success"===t.type?a("Icon",{attrs:{name:"check"}}):"atention"===t.type?a("Icon",{attrs:{name:"alert"}}):a("Icon",{attrs:{name:"caution"}})],1),t._v(" "),a("div",{staticClass:"header"},[a("Paragraph",{staticClass:"title",attrs:{type:"bold",size:"sm"}},[t._v(t._s(t.title))]),t._v(" "),a("Paragraph",{staticClass:"description",attrs:{size:"sm"}},[t._v(t._s(t.description))])],1),t._v(" "),a("div",{staticClass:"close-feedback",on:{click:t.closeFeedBack}},[a("Icon",{attrs:{name:"close"}})],1)])])])},staticRenderFns:[]},(function(t){t&&t("data-v-0399859d_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-0399859d]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-0399859d]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-0399859d]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-0399859d]{font-size:14px}}@media (min-width:1024px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-0399859d]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-0399859d]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-0399859d]{font-size:1.56vw}}html[data-v-0399859d]{box-sizing:border-box}*[data-v-0399859d],[data-v-0399859d]::after,[data-v-0399859d]::before{box-sizing:border-box}.feedback-flag[data-v-0399859d]{width:100vw;height:100vh;display:none}.feedback-flag.opened[data-v-0399859d]{display:block;position:fixed;z-index:1050;left:0;top:0}.feedback-flag.opened[data-v-0399859d]:before{transition:all .3s;opacity:1}.feedback-flag[data-v-0399859d]:before{content:"";position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background:rgba(104,89,110,.24);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:all .3s;opacity:0}.box-feedback[data-v-0399859d]{position:fixed;bottom:0;margin:0 auto;right:35%;z-index:9999;background:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);transition:transform 450ms cubic-bezier(.4,0,.2,1),opacity 450ms cubic-bezier(.4,0,.2,1),-webkit-transform 450ms cubic-bezier(.4,0,.2,1);opacity:1;border-radius:.380952381rem;transform:translateY(6.1904761905rem);overflow:hidden}@media (max-width:479px){.box-feedback[data-v-0399859d]{border-radius:.7476635514rem;transform:translateY(12.1495327103rem);right:0;left:0;width:90%}}.box-feedback .box-body[data-v-0399859d]{transition:opacity .3s cubic-bezier(.4,0,.2,1);opacity:0;background-color:#fff}.box-feedback.view-box[data-v-0399859d]{transform:translateY(-1.9047619048rem);opacity:1}@media (max-width:479px){.box-feedback.view-box[data-v-0399859d]{transform:translateY(-3.738317757rem)}}.box-feedback.view-box .box-body[data-v-0399859d]{opacity:1}.box-feedback .box-body[data-v-0399859d]{position:relative;display:flex;align-items:center;padding:1.1428571429rem .7619047619rem;padding-bottom:.7619047619rem;justify-content:space-between}@media (max-width:479px){.box-feedback .box-body[data-v-0399859d]{padding:2.2429906542rem 1.4953271028rem}}.box-feedback .box-body.success .icon-box[data-v-0399859d]{background-color:#00cf72}.box-feedback .box-body.success .title[data-v-0399859d]{color:#00cf72!important}.box-feedback .box-body.success[data-v-0399859d]:before{background-color:#00cf72}.box-feedback .box-body.failed .icon-box[data-v-0399859d]{background-color:#ff4641}.box-feedback .box-body.failed .title[data-v-0399859d]{color:#ff4641!important}.box-feedback .box-body.failed[data-v-0399859d]:before{background-color:#ff4641}.box-feedback .box-body.atention .icon-box[data-v-0399859d]{background-color:#feaf00}.box-feedback .box-body.atention .title[data-v-0399859d]{color:#feaf00!important}.box-feedback .box-body.atention[data-v-0399859d]:before{background-color:#feaf00}.box-feedback .box-body[data-v-0399859d]:before{content:"";display:block;position:absolute;height:.4285714286rem;width:100%;left:0;top:-.0476190476rem;margin-top:auto;margin-bottom:auto;border-radius:.380952381rem .380952381rem 0 0}@media (max-width:479px){.box-feedback .box-body[data-v-0399859d]:before{top:-.0934579439rem;height:.7476635514rem;border-radius:.7476635514rem .7476635514rem 0 0}}.box-feedback .box-body .header[data-v-0399859d]{max-width:13.5238095238rem}@media (max-width:479px){.box-feedback .box-body .header[data-v-0399859d]{max-width:26.5420560748rem}}.box-feedback .box-body .icon-box[data-v-0399859d]{margin-right:.7619047619rem;border-radius:50%}@media (max-width:479px){.box-feedback .box-body .icon-box[data-v-0399859d]{width:3.738317757rem;height:3.738317757rem;margin-right:1.4953271028rem}}.box-feedback .box-body .icon-box .icon[data-v-0399859d]{display:flex;justify-content:center;align-items:center;width:1.9047619048rem;height:1.9047619048rem}@media (max-width:479px){.box-feedback .box-body .icon-box .icon[data-v-0399859d]{width:3.738317757rem;height:3.738317757rem}}.box-feedback .box-body .icon-box[data-v-0399859d] svg{width:1.5238095238rem;height:1.5238095238rem}@media (max-width:479px){.box-feedback .box-body .icon-box[data-v-0399859d] svg{width:2.9906542056rem;height:2.9906542056rem}}.box-feedback .box-body .icon-box[data-v-0399859d] svg path{fill:#fff}.box-feedback .box-body .close-feedback[data-v-0399859d]{width:1.1428571429rem;height:100%;display:flex;align-items:center;justify-content:center;margin-left:.7619047619rem;cursor:pointer}@media (max-width:479px){.box-feedback .box-body .close-feedback[data-v-0399859d]{width:2.9906542056rem}}.box-feedback .box-body .close-feedback .icon[data-v-0399859d]{display:flex;align-items:center}.box-feedback .box-body .close-feedback[data-v-0399859d] svg{width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.box-feedback .box-body .close-feedback[data-v-0399859d] svg{width:2.2429906542rem;height:2.2429906542rem}}.box-feedback .box-body .close-feedback[data-v-0399859d] svg path{fill:#dfdae4}',map:void 0,media:void 0})}),{name:"FeedBack",components:{Paragraph:bt,Icon:C},props:{
1636
1665
  /**
1637
1666
  * Tipo do HR<br>
1638
1667
  * Values: `primary` `variable`
1639
1668
  **/
1640
1669
  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:{
1641
1670
  // the callback will be called immediately after the start of the observation
1642
- 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-0399859d",!1,void 0,!1,x,void 0,void 0),Rt=Object.freeze({__proto__:null,Avatar:I,Button:A,Card:B,CardLink:T,CardOption:F,Checkbox:q,Icon:C,Input:R,InputEdit:j,InputName:D,InputEmail:$,InputAddressNumber:H,InputAddress:X,InputAddressBilling:J,InputCardNumber:Y,Options:W,Radius:G,Select:Z,Birthday:ot,BirthdayMobile:pt,TextArea:mt,GenderSelect:ut,Tabs:ht,Tooltip:gt,Caption:_,Heading:vt,Paragraph:ft,Modal:bt,Preview:zt,PreviewMobile:Mt,PreviewTools:St,PreviewFull:Nt,PreviewWithTools:Bt,HR:Tt,Spinner:Ft,FeedBack:qt}),jt=function(t){jt.installed||(jt.installed=!0,Object.entries(Rt).forEach((function(e){var a=m(e,2),i=a[0],o=a[1];t.component(i,o)})))},Dt={install:jt},$t=null;"undefined"!=typeof window?$t=window.Vue:"undefined"!=typeof global&&($t=global.Vue),$t&&$t.use(Dt);
1671
+ 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-0399859d",!1,void 0,!1,x,void 0,void 0),jt=Object.freeze({__proto__:null,Avatar:I,Button:A,Card:B,CardLink:T,CardOption:F,Checkbox:q,Icon:C,Input:R,InputEdit:j,InputName:D,InputEmail:$,InputAddressNumber:H,InputAddress:X,InputAddressBilling:J,InputCardNumber:Y,Options:W,Radius:G,Select:Z,Birthday:ot,BirthdayMobile:pt,TextArea:mt,GenderSelect:ut,Tabs:ht,TabsLine:gt,Tooltip:vt,Caption:_,Heading:ft,Paragraph:bt,Modal:wt,Preview:_t,PreviewMobile:Pt,PreviewTools:Nt,PreviewFull:Lt,PreviewWithTools:Tt,HR:Ft,Spinner:qt,FeedBack:Rt}),Dt=function(t){Dt.installed||(Dt.installed=!0,Object.entries(jt).forEach((function(e){var a=m(e,2),i=a[0],o=a[1];t.component(i,o)})))},$t={install:Dt},Ot=null;"undefined"!=typeof window?Ot=window.Vue:"undefined"!=typeof global&&(Ot=global.Vue),Ot&&Ot.use($t);
1643
1672
  // // Import vue component
1644
1673
  // import MyButton from './components/MyButton/MyButton.vue';
1645
1674
  // import Heading from './components/Heading/Heading.vue';
@@ -1666,4 +1695,4 @@ immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.d
1666
1695
  // }
1667
1696
  // // To allow use as module (npm/webpack/etc.) export component
1668
1697
  // export default MyButton;
1669
- export default Dt;export{I as Avatar,ot as Birthday,pt as BirthdayMobile,A as Button,_ as Caption,B as Card,T as CardLink,F as CardOption,q as Checkbox,qt as FeedBack,ut as GenderSelect,Tt as HR,vt as Heading,C as Icon,R as Input,X as InputAddress,J as InputAddressBilling,H as InputAddressNumber,Y as InputCardNumber,j as InputEdit,$ as InputEmail,D as InputName,bt as Modal,W as Options,ft as Paragraph,zt as Preview,Nt as PreviewFull,Mt as PreviewMobile,St as PreviewTools,Bt as PreviewWithTools,G as Radius,Z as Select,Ft as Spinner,ht as Tabs,mt as TextArea,gt as Tooltip};
1698
+ export default $t;export{I as Avatar,ot as Birthday,pt as BirthdayMobile,A as Button,_ as Caption,B as Card,T as CardLink,F as CardOption,q as Checkbox,Rt as FeedBack,ut as GenderSelect,Ft as HR,ft as Heading,C as Icon,R as Input,X as InputAddress,J as InputAddressBilling,H as InputAddressNumber,Y as InputCardNumber,j as InputEdit,$ as InputEmail,D as InputName,wt as Modal,W as Options,bt as Paragraph,_t as Preview,Lt as PreviewFull,Pt as PreviewMobile,Nt as PreviewTools,Tt as PreviewWithTools,G as Radius,Z as Select,qt as Spinner,ht as Tabs,gt as TabsLine,mt as TextArea,vt as Tooltip};