@tiddh/brave-vue 1.91.28 → 1.91.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/brave-vue.esm.js
CHANGED
|
@@ -371,7 +371,7 @@ title:{type:String,default:""}},data:function(){return{}},computed:{shadowVar:fu
|
|
|
371
371
|
/**
|
|
372
372
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
373
373
|
* Retorna um objeto com a prop dataObject.
|
|
374
|
-
*/this.$emit("click",t)}}},"data-v-fa61c2c0",!1,void 0,!1,x,void 0,void 0),
|
|
374
|
+
*/this.$emit("click",t)}}},"data-v-fa61c2c0",!1,void 0,!1,x,void 0,void 0),q=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"cardoption-group",class:[{active:t.active}]},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"cardoption-image",style:"background-color: "+t.background},[a("v-lazy-image",{attrs:{alt:t.alt,title:t.title,src:t.picture,"src-placeholder":t.placeholder}})],1),t._v(" "),a("div",{staticClass:"cardoption-content"},[a("div",{staticClass:"cardoption-title"},[t.label?a("span",{staticClass:"label",domProps:{innerHTML:t._s(t.label)}}):t._e()]),t._v(" "),a("div",{staticClass:"cardoption-icon"},[a("svg",{attrs:{viewbox:"0 0 32 32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.84459 16.4619L12.0001 20.6174L24.7018 7.92858C25.4821 7.14824 26.7442 7.14824 27.5246 7.92858C28.3049 8.70893 28.3049 9.97104 27.5246 10.7514L13.4179 24.8581C12.6376 25.6384 11.3755 25.6384 10.5951 24.8581L5.02179 19.2847C4.24144 18.5044 4.24144 17.2423 5.02179 16.4619C5.80214 15.6816 7.06425 15.6816 7.84459 16.4619Z"}})])])])])},staticRenderFns:[]},(function(t){t&&t("data-v-56e8846e_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-56e8846e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-56e8846e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-56e8846e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-56e8846e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-56e8846e]{font-size:14px}}@media (min-width:1024px){[data-v-56e8846e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-56e8846e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-56e8846e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-56e8846e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-56e8846e]{font-size:1.56vw}}html[data-v-56e8846e]{box-sizing:border-box}*[data-v-56e8846e],[data-v-56e8846e]::after,[data-v-56e8846e]::before{box-sizing:border-box}.cardoption-group[data-v-56e8846e]{transition:all .3s;display:flex;flex-direction:column;width:100%;box-shadow:4px 8px 24px rgba(104,89,110,.24);border-top-left-radius:.380952381rem;border-top-right-radius:.380952381rem;border-bottom-left-radius:.380952381rem;border-bottom-right-radius:.380952381rem}@media (max-width:479px){.cardoption-group[data-v-56e8846e]{border-top-left-radius:.7476635514rem;border-top-right-radius:.7476635514rem;border-bottom-left-radius:.7476635514rem;border-bottom-right-radius:.7476635514rem}}.cardoption-group[data-v-56e8846e]:hover{cursor:pointer;box-shadow:4px 16px 32px rgba(104,89,110,.24)}.cardoption-group:hover .cardoption-icon[data-v-56e8846e]{border-color:#afa2ba!important}.cardoption-group:hover .cardoption-icon svg[data-v-56e8846e]{stroke:#afa2ba!important}.cardoption-group:hover .cardoption-icon svg path[data-v-56e8846e]{fill:#afa2ba!important}.cardoption-group.active .cardoption-icon[data-v-56e8846e]{border-color:#12d3db!important;background:#12d3db!important}.cardoption-group.active .cardoption-icon svg[data-v-56e8846e]{stroke:#fff!important}.cardoption-group.active .cardoption-icon svg path[data-v-56e8846e]{fill:#fff!important}.cardoption-group .cardoption-image[data-v-56e8846e]{border-top-left-radius:.380952381rem;border-top-right-radius:.380952381rem}@media (max-width:479px){.cardoption-group .cardoption-image[data-v-56e8846e]{border-top-left-radius:.7476635514rem;border-top-right-radius:.7476635514rem}}.cardoption-group .cardoption-image img[data-v-56e8846e]{width:100%;display:block;border-top-left-radius:.380952381rem;border-top-right-radius:.380952381rem}@media (max-width:479px){.cardoption-group .cardoption-image img[data-v-56e8846e]{border-top-left-radius:.7476635514rem;border-top-right-radius:.7476635514rem}}.cardoption-group .cardoption-content[data-v-56e8846e]{display:flex;flex:1 0 auto;align-items:center;justify-content:space-between;margin:.380952381rem 0;padding:8px 8px}@media (max-width:479px){.cardoption-group .cardoption-content[data-v-56e8846e]{margin:.3738317757rem 0;padding:.7476635514rem}}.cardoption-group .cardoption-content .cardoption-title[data-v-56e8846e]{display:flex;align-items:center;padding-left:8px}.cardoption-group .cardoption-content .cardoption-title .label[data-v-56e8846e]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.6666666667rem;text-align:left}@media (max-width:479px){.cardoption-group .cardoption-content .cardoption-title .label[data-v-56e8846e]{font-size:1.1214953271rem}}.cardoption-group .cardoption-content .cardoption-icon[data-v-56e8846e]{display:flex;align-items:center;justify-content:center;border:2px solid #dfdae4;border-radius:.2380952381rem;width:1.1428571429rem;height:1.1428571429rem;flex:0 0 1.1428571429rem}@media (max-width:479px){.cardoption-group .cardoption-content .cardoption-icon[data-v-56e8846e]{border-radius:.4672897196rem;width:2.2429906542rem;height:2.2429906542rem;flex:0 0 2.2429906542rem}}.cardoption-group .cardoption-content .cardoption-icon svg[data-v-56e8846e]{width:.7619047619rem;height:.7619047619rem;fill:#dfdae4}@media (max-width:479px){.cardoption-group .cardoption-content .cardoption-icon svg[data-v-56e8846e]{width:1.4953271028rem;height:1.4953271028rem}}.cardoption-group .cardoption-content .cardoption-icon svg path[data-v-56e8846e]{stroke:transparent}',map:void 0,media:void 0})}),{name:"CardOption",components:{Icon:T,VLazyImage:e},props:{
|
|
375
375
|
/**
|
|
376
376
|
* Nome do campo, utilizado no callback do evento<br>
|
|
377
377
|
* Example: `Name`
|
|
@@ -416,7 +416,7 @@ active:{type:Boolean,default:!1}},data:function(){return{}},computed:{shadowVar:
|
|
|
416
416
|
/**
|
|
417
417
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
418
418
|
* Retorna um objeto com a prop dataObject.
|
|
419
|
-
*/this.$emit("click",t)}}},"data-v-56e8846e",!1,void 0,!1,x,void 0,void 0),
|
|
419
|
+
*/this.$emit("click",t)}}},"data-v-56e8846e",!1,void 0,!1,x,void 0,void 0),j=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"checkbox-group",class:[{active:t.active},"size-"+t.size],on:{click:function(e){return t.onActive()}}},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"checkbox-indicator-group"},[a("div",{staticClass:"checkbox"},[a("svg",{attrs:{height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M5.3232 12.8392C4.89227 12.4147 4.89227 11.7266 5.3232 11.3021C5.75414 10.8777 6.45282 10.8777 6.88375 11.3021L10.7851 15.1447C11.2161 15.5691 11.2161 16.2572 10.7851 16.6817C10.3542 17.1061 9.65551 17.1061 9.22458 16.6817L5.3232 12.8392Z"}}),t._v(" "),a("path",{attrs:{d:"M16.1162 8.31832C16.5472 7.89389 17.2459 7.89389 17.6768 8.31833C18.1077 8.74276 18.1077 9.4309 17.6768 9.85533L10.7459 16.6817C10.315 17.1061 9.61629 17.1061 9.18535 16.6817C8.75442 16.2572 8.75442 15.5691 9.18535 15.1447L16.1162 8.31832Z"}})])])]),t._v(" "),t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-3a044fb9_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-3a044fb9]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-3a044fb9]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-3a044fb9]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-3a044fb9]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-3a044fb9]{font-size:14px}}@media (min-width:1024px){[data-v-3a044fb9]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-3a044fb9]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-3a044fb9]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-3a044fb9]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-3a044fb9]{font-size:1.56vw}}html[data-v-3a044fb9]{box-sizing:border-box}*[data-v-3a044fb9],[data-v-3a044fb9]::after,[data-v-3a044fb9]::before{box-sizing:border-box}.checkbox-group[data-v-3a044fb9]{transition:all .3s;display:inline-flex;flex-direction:row;align-items:center}.checkbox-group[data-v-3a044fb9]:hover{cursor:pointer}.checkbox-group:hover .checkbox[data-v-3a044fb9]{border-color:#12d3db}.checkbox-group:hover .checkbox path[data-v-3a044fb9]{fill:#12d3db}.checkbox-group.active .checkbox[data-v-3a044fb9]{border-color:#12d3db;background:#12d3db}.checkbox-group.active .checkbox path[data-v-3a044fb9]{fill:#fff}.checkbox-group.size-lg .checkbox svg[data-v-3a044fb9]{transform:scale(.9)}.checkbox-group.size-lg .label[data-v-3a044fb9]{font-size:1.1428571429rem}@media (max-width:479px){.checkbox-group.size-lg .label[data-v-3a044fb9]{font-size:1.308411215rem}}.checkbox-group.size-sm .checkbox svg[data-v-3a044fb9]{transform:scale(.7)}.checkbox-group.size-sm .label[data-v-3a044fb9]{font-size:.7619047619rem}@media (max-width:479px){.checkbox-group.size-sm .label[data-v-3a044fb9]{font-size:1.308411215rem}}.checkbox-group .checkbox[data-v-3a044fb9]{display:flex;align-items:center;justify-content:center;border:2px solid #dfdae4;border-radius:8px;margin-right:.1904761905rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.checkbox-group .checkbox[data-v-3a044fb9]{margin-right:.7476635514rem}}.checkbox-group .checkbox path[data-v-3a044fb9]{fill:#dfdae4}.checkbox-group .label[data-v-3a044fb9]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.checkbox-group .label[data-v-3a044fb9]{font-size:1.308411215rem}}',map:void 0,media:void 0})}),{name:"Checkbox",components:{Icon:T},props:{
|
|
420
420
|
/**
|
|
421
421
|
* Nome do campo, utilizado no callback do evento<br>
|
|
422
422
|
* Example: `Name`
|
|
@@ -1256,7 +1256,7 @@ color:{type:String,default:"#68596E"},
|
|
|
1256
1256
|
* Type of font<br>
|
|
1257
1257
|
* Example: `Regular | Bold`
|
|
1258
1258
|
**/
|
|
1259
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-a049d78a",!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"},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items"},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon icon-close size-lg",on:{click:t.closeModal}},[a("svg",{attrs:{fill:"#DFDAE4",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-header-content"},[a("Heading",{attrs:{kind:"h4",size:t.headingSize,color:t.headingColor}},[t._v(t._s(t.heading))]),t._v(" "),t.paragraph?a("Paragraph",{attrs:{size:t.paragraphSize,color:"'#ccc'"},domProps:{innerHTML:t._s(t.paragraph)}}):t._e()],1),t._v(" "),t._t("header")],2),t._v(" "),a("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),a("HR",{attrs:{height:"1px",color:"#f0f0f0"}}),t._v(" "),a("div",{staticClass:"modal-footer-items"},[t._t("footer")],2)],1)])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-27a3297c_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-27a3297c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-27a3297c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-27a3297c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-27a3297c]{font-size:14px}}@media (min-width:1024px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-27a3297c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-27a3297c]{font-size:1.56vw}}html[data-v-27a3297c]{box-sizing:border-box}*[data-v-27a3297c],[data-v-27a3297c]::after,[data-v-27a3297c]::before{box-sizing:border-box}.modal[data-v-27a3297c]{display:block;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow-y:scroll;outline:0;font-family:Nunito,sans-serif;display:flex;align-items:center;justify-content:center}.modal-dialog[data-v-27a3297c]{transition:all .5s ease}.modal-backdrop[data-v-27a3297c]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-27a3297c]{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background:rgba(104,89,110,.8);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.modal-content[data-v-27a3297c]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:0;outline:0}@media (max-width:479px){.modal-content[data-v-27a3297c]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-dialog[data-v-27a3297c]{max-width:27.5238095238rem;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;width:auto;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-dialog[data-v-27a3297c]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-27a3297c]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-27a3297c]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-27a3297c] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:1.1428571429rem;max-height:1.1428571429rem;width:100%}@media (max-width:479px){.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-27a3297c]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-27a3297c]{padding:2.9906542056rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-27a3297c]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-27a3297c]{width:100%;margin:0}hr[data-v-27a3297c]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-27a3297c]{display:none}}.modal-body[data-v-27a3297c]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-27a3297c]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-27a3297c]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c]{background:#fff;padding:1.4018691589rem .9345794393rem;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64)}}.modal-footer-items[data-v-27a3297c] div{display:flex;justify-content:flex-start;flex-direction:row;width:100%}.modal-footer-items[data-v-27a3297c] div .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-ghost{width:50%;margin-left:.7476635514rem}}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-secondary{width:50%}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:B,Heading:ft,Paragraph:bt,Icon:T},props:{kind:{type:String,default:"primary"},size:{type:String,default:"xl"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0}},created:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},beforeCreate:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},mounted:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},destroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},beforeDestroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},methods:{onClick:function(){this.$emit("click")},closeModal:function(){this.$emit("closeModal"),document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")}},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}}},"data-v-27a3297c",!1,void 0,!1,x,void 0,void 0);var xt={en:{urlBuilder:"https://builder.playstories.com",justASecond:"Just a second",loadingPhrase:"We are loading your exclusive book",pages:"PAGES",pagesLowercase:"Pages",editArea:"Editing area",name:"Name",dedication:"Dedication",writeDedication:"Write a dedication",shirtNumber:"Shirt Number",bookScript:"Book Script",dateBirth:"Birthday Date",editDateBirth:"Edit birthday date",pet:"Pet",editName:"Edit child's name",kidName:"Child's name",recommendedName:"It is recommended to use only the first name",dedicationFree:"Dedication (free)",cusutomDedication:"Customize the dedication that will be printed on the book.",messageDedication:"Dedication message",dedcationPlaceholder:"May your life be full of great adventures!",editShirt:"Edit shirt number",chooseScript:"You choose the script",choosePetLabel1:"Choose the pair that will help the",choosePetLabel2:"to meet Samson on this adventure together with Turma da Mônica.",day:"Day",month:"Month",changePet:"Change the story bug",petDescription1:"This pet will accompany",petDescription2:"throughout history.",typePetname:"Type the pet's name here",selectPet:"Select the pet",update:"UPDATE",cancel:"CANCEL"},br:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Só um segundo",loadingPhrase:"Estamos carregando seu livro exclusivo",pages:"PÁGINAS",pagesLowercase:"Páginas",editArea:"Área de edição",name:"Nome",dedication:"Dedicatória",writeDedication:"Escreva uma dedicatória",shirtNumber:"Número da Camisa",bookScript:"Roteiro do Livro",dateBirth:"Data do aniversário",editDateBirth:"Editar data do aniversário",pet:"Bichinho de estimação",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",moonerTitleFirstOpen:"Adicione um Mooner na história",moonerTitleFirstOpenMobile:"Adicione um Mooner",moonerTitle:"Altere o Mooner da história",moonerTitleMobile:"Altere o Mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> durante toda a aventura.",moonerLabel:"Digite um nome para o Mooner",moonerLabelSelector:"Selecione um Mooner: ",moonerCtaFirstOpen:"Pronto, ver história",moonerCta:"Atualizar",moonerCtaCancel:"Cancel"}};!function(t){function e(t,e,a){if(!a[0]||"object"==u(a[0]))return e.init.apply(t,a);if(e[a[0]])return e[a[0]].apply(t,Array.prototype.slice.call(a,1));throw p(a[0]+" is not a method or property")}function a(t,e,a,i){return{css:{position:"absolute",top:t,left:e,overflow:i||"hidden",zIndex:a||"auto"}}}function i(t,e,a,i,r){var n=1-r,d=n*n*n,s=r*r*r;return o(Math.round(d*t.x+3*r*n*n*e.x+3*r*r*n*a.x+s*i.x),Math.round(d*t.y+3*r*n*n*e.y+3*r*r*n*a.y+s*i.y))}function o(t,e){return{x:t,y:e}}function r(t,e,a){return h&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function n(t){return" rotate("+t+"deg) "}function d(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function s(){for(var t=["Moz","Webkit","Khtml","O","ms"],e=t.length,a="";e--;)t[e]+"Transform"in document.body.style&&(a="-"+t[e].toLowerCase()+"-");return a}function l(t,e,a,i,r){var n,d=[];if("-webkit-"==v){for(n=0;n<r;n++)d.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+d.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var s=(a={x:a.x/100*t.width(),y:a.y/100*t.height()}).x-e.x;n=a.y-e.y;var l=Math.atan2(n,s),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),s=Math.sqrt(n*n+s*s),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(n=-1/p)*(p=(n*a.x-a.y-p*e.x+e.y)/(n-p))-n*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),n=0;n<r;n++)d.push(" "+i[n][1]+" "+100*(e+s*i[n][0])/c+"%");t.css({"background-image":v+"linear-gradient("+-l+"rad,"+d.join(",")+")"})}}function c(e,a,i){return e=t.Event(e),a.trigger(e,i),e.isDefaultPrevented()?"prevented":e.isPropagationStopped()?"stopped":""}function p(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function m(t){var e={top:0,left:0};do{e.left+=t.offsetLeft,e.top+=t.offsetTop}while(t=t.offsetParent);return e}var h,g,v="",f=Math.PI,b=f/2,w="ontouchstart"in window,x=w?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},y={backward:["bl","tl"],forward:["br","tr"],all:"tl bl tr br l r".split(" ")},z=["single","double"],k=["ltr","rtl"],_={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},C={cornerSize:100},M={init:function(e){var a,i;h="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,g=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||534.3<parseFloat(a[1]),v=s(),a=0;var o=this.data(),n=this.children();e=t.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},_,e);if(o.opts=e,o.pageObjs={},o.pages={},o.pageWrap={},o.pageZoom={},o.pagePlace={},o.pageMv=[],o.zoom=1,o.totalPages=e.pages||0,o.eventHandlers={touchStart:t.proxy(M._touchStart,this),touchMove:t.proxy(M._touchMove,this),touchEnd:t.proxy(M._touchEnd,this),start:t.proxy(M._eventStart,this)},e.when)for(i in e.when)d(i,e.when)&&this.bind(i,e.when[i]);for(this.css({position:"relative",width:e.width,height:e.height}),this.turn("display",e.display),""!==e.direction&&this.turn("direction",e.direction),h&&!w&&e.acceleration&&this.transform(r(0,0,!0)),i=0;i<n.length;i++)"1"!=t(n[i]).attr("ignore")&&this.turn("addPage",n[i],++a);return t(this).bind(x.down,o.eventHandlers.touchStart).bind("end",M._eventEnd).bind("pressed",M._eventPressed).bind("released",M._eventReleased).bind("flip",M._flip),t(this).parent().bind("start",o.eventHandlers.start),t(document).bind(x.move,o.eventHandlers.touchMove).bind(x.up,o.eventHandlers.touchEnd),this.turn("page",e.page),o.done=!0,this},addPage:function(e,a){var i,o=!1,r=this.data(),n=r.totalPages+1;if(r.destroying)return!1;if((i=/\bp([0-9]+)\b/.exec(t(e).attr("class")))&&(a=parseInt(i[1],10)),a){if(a==n)o=!0;else if(a>n)throw p('Page "'+a+'" cannot be inserted')}else a=n,o=!0;return 1<=a&&a<=n&&(i="double"==r.display?a%2?" odd":" even":"",r.done&&this.turn("stop"),a in r.pageObjs&&M._movePages.call(this,a,1),o&&(r.totalPages=n),r.pageObjs[a]=t(e).css({float:"left"}).addClass("page p"+a+i),-1!=navigator.userAgent.indexOf("MSIE 9.0")&&r.pageObjs[a].hasClass("hard")&&r.pageObjs[a].removeClass("hard"),M._addPage.call(this,a),M._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(M._necessPage.call(this,e)){if(!a.pageWrap[e]){a.pageWrap[e]=t("<div/>",{class:"page-wrapper",page:e,css:{position:"absolute",overflow:"hidden"}}),this.append(a.pageWrap[e]),a.pagePlace[e]||(a.pagePlace[e]=e,a.pageObjs[e].appendTo(a.pageWrap[e]));var o=M._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&M._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return d(t,this.data().pageObjs)},center:function(e){var a=this.data(),i=t(this).turn("size"),o=0;return a.noCenter||("double"==a.display&&(e=this.turn("view",e||a.tpage||a.page),"ltr"==a.direction?e[0]?e[1]||(o+=i.width/4):o-=i.width/4:e[0]?e[1]||(o-=i.width/4):o+=i.width/4),t(this).css({marginLeft:o})),this},destroy:function(){var e=this,a=this.data(),i="end first flip last pressed released start turning turned zooming missing".split(" ");if("prevented"!=c("destroying",this)){for(a.destroying=!0,t.each(i,(function(t,a){e.unbind(a)})),this.parent().unbind("start",a.eventHandlers.start),t(document).unbind(x.move,a.eventHandlers.touchMove).unbind(x.up,a.eventHandlers.touchEnd);0!==a.totalPages;)this.turn("removePage",a.totalPages);return a.fparent&&a.fparent.remove(),a.shadow&&a.shadow.remove(),this.removeData(),a=null,this}},is:function(){return"object"==u(this.data().pages)},zoom:function(e){var a=this.data();if("number"==typeof e){if(.001>e||100<e)throw p(e+" is not a value for zoom");if("prevented"==c("zooming",this,[e,a.zoom]))return this;var i=this.turn("size"),o=this.turn("view"),r=1/a.zoom,n=Math.round(i.width*r*e);i=Math.round(i.height*r*e);for(a.zoom=e,t(this).turn("stop").turn("size",n,i),a.opts.autoCenter&&this.turn("center"),M._updateShadow.call(this),e=0;e<o.length;e++)o[e]&&a.pageZoom[o[e]]!=a.zoom&&(this.trigger("zoomed",[o[e],o,a.pageZoom[o[e]],a.zoom]),a.pageZoom[o[e]]=a.zoom);return this}return a.zoom},_pageSize:function(t,e){var a=this.data(),i={};if("single"==a.display)i.width=this.width(),i.height=this.height(),e&&(i.top=0,i.left=0,i.right="auto");else{var o=this.width()/2,r=this.height();if(a.pageObjs[t].hasClass("own-size")?(i.width=a.pageObjs[t].width(),i.height=a.pageObjs[t].height()):(i.width=o,i.height=r),e){var n=t%2;i.top=(r-i.height)/2,"ltr"==a.direction?(i[n?"right":"left"]=o-i.width,i[n?"left":"right"]="auto"):(i[n?"left":"right"]=o-i.width,i[n?"right":"left"]="auto")}}return i},_makeFlip:function(t){var e=this.data();if(!e.pages[t]&&e.pagePlace[t]==t){var a="single"==e.display,i=t%2;e.pages[t]=e.pageObjs[t].css(M._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),M._setPageLoc.call(this,t),e.pageZoom[t]=e.zoom}return e.pages[t]},_makeRange:function(){var t,e;if(!(1>this.data().totalPages))for(t=(e=this.turn("range"))[0];t<=e[1];t++)M._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=M._view.call(this,t),1>t||t>o.totalPages)throw p('"'+t+'" is not a valid page');return i[1]=i[1]||i[0],1<=i[0]&&i[1]<=o.totalPages?(t=Math.floor(2),o.totalPages-i[1]>i[0]?a=2*t-(e=Math.min(i[0]-1,t)):e=2*t-(a=Math.min(o.totalPages-i[1],t))):a=e=5,[Math.max(1,i[0]-e),Math.min(o.totalPages,i[1]+a)]},_necessPage:function(t){if(0===t)return!0;var e=this.turn("range");return this.data().pageObjs[t].hasClass("fixed")||t>=e[0]&&t<=e[1]},_removeFromDOM:function(){var t,e=this.data();for(t in e.pageWrap)d(t,e.pageWrap)&&!M._necessPage.call(this,t)&&M._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();P._moveFoldingPage.call(e.pages[t],!1),a.f&&a.f.fwrapper&&a.f.fwrapper.remove(),e.pages[t].removeData(),e.pages[t].remove(),delete e.pages[t]}e.pageObjs[t]&&e.pageObjs[t].remove(),e.pageWrap[t]&&(e.pageWrap[t].remove(),delete e.pageWrap[t]),M._removeMv.call(this,t),delete e.pagePlace[t],delete e.pageZoom[t]},removePage:function(t){var e=this.data();if("*"==t)for(;0!==e.totalPages;)this.turn("removePage",e.totalPages);else{if(1>t||t>e.totalPages)throw p("The page "+t+" doesn't exist");e.pageObjs[t]&&(this.turn("stop"),M._removePageFromDOM.call(this,t),delete e.pageObjs[t]),M._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,M._fitPage.call(this,e.totalPages)):(M._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,n=function(t){var a=t+e,n=a%2,d=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+d)),o.pagePlace[t]&&o.pageWrap[t]&&(o.pagePlace[a]=a,o.pageWrap[a]=o.pageObjs[a].hasClass("fixed")?o.pageWrap[t].attr("page",a):o.pageWrap[t].css(M._pageSize.call(i,a,!0)).attr("page",a),o.pages[t]&&(o.pages[a]=o.pages[t].flip("options",{page:a,next:r||n?a+1:a-1})),e&&(delete o.pages[t],delete o.pagePlace[t],delete o.pageZoom[t],delete o.pageObjs[t],delete o.pageWrap[t]))};if(0<e)for(a=o.totalPages;a>=t;a--)n(a);else for(a=t;a<=o.totalPages;a++)n(a)},display:function(e){var a=this.data(),i=a.display;if(void 0===e)return i;if(-1==t.inArray(e,z))throw p('"'+e+'" is not a value for display');switch(e){case"single":a.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),a.pageObjs[0]=t("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":a.pageObjs[0]&&(this.turn("stop").css({overflow:""}),a.pageObjs[0].remove(),delete a.pageObjs[0]),this.removeClass("shadow")}return a.display=e,i&&(e=this.turn("size"),M._movePages.call(this,1,0),this.turn("size",e.width,e.height).turn("update")),this},direction:function(e){var a=this.data();if(void 0===e)return a.direction;if(e=e.toLowerCase(),-1==t.inArray(e,k))throw p('"'+e+'" is not a value for direction');return"rtl"==e&&t(this).attr("dir","ltr").css({direction:"ltr"}),a.direction=e,a.done&&this.turn("size",t(this).width(),t(this).height()),this},animating:function(){return 0<this.data().pageMv.length},corner:function(){var t,e,a=this.data();for(e in a.pages)if(d(e,a.pages)&&(t=a.pages[e].flip("corner")))return t;return!1},data:function(){return this.data()},disable:function(e){var a,i=this.data(),o=this.turn("view");for(a in i.disabled=void 0===e||!0===e,i.pages)d(a,i.pages)&&i.pages[a].flip("disable",!!i.disabled||-1==t.inArray(parseInt(a,10),o));return this},disabled:function(t){return void 0===t?!0===this.data().disabled:this.turn("disable",t)},size:function(t,e){if(void 0===t||void 0===e)return{width:this.width(),height:this.height()};this.turn("stop");var a,i,o=this.data();for(a in i="double"==o.display?t/2:t,this.css({width:t,height:e}),o.pageObjs[0]&&o.pageObjs[0].css({width:i,height:e}),o.pageWrap)d(a,o.pageWrap)&&(i=M._pageSize.call(this,a,!0),o.pageObjs[a].css({width:i.width,height:i.height}),o.pageWrap[a].css(i),o.pages[a]&&o.pages[a].css({width:i.width,height:i.height}));return this.turn("resize"),this},resize:function(){var t,e=this.data();for(e.pages[0]&&(e.pageWrap[0].css({left:-this.width()}),e.pages[0].flip("resize",!0)),t=1;t<=e.totalPages;t++)e.pages[t]&&e.pages[t].flip("resize",!0);M._updateShadow.call(this),e.opts.autoCenter&&this.turn("center")},_removeMv:function(t){var e,a=this.data();for(e=0;e<a.pageMv.length;e++)if(a.pageMv[e]==t)return a.pageMv.splice(e,1),!0;return!1},_addMv:function(t){var e=this.data();M._removeMv.call(this,t),e.pageMv.push(t)},_view:function(t){var e=this.data();t=t||e.page;return"double"==e.display?t%2?[t-1,t]:[t,t+1]:[t]},view:function(t){var e=this.data();t=M._view.call(this,t);return"double"==e.display?[0<t[0]?t[0]:0,t[1]<=e.totalPages?t[1]:0]:[0<t[0]&&t[0]<=e.totalPages?t[0]:0]},stop:function(t,e){if(this.turn("animating")){var a,i,o,r=this.data();for(r.tpage&&(r.page=r.tpage,delete r.tpage),a=0;a<r.pageMv.length;a++)r.pageMv[a]&&r.pageMv[a]!==t&&(i=(o=r.pages[r.pageMv[a]]).data().f.opts,o.flip("hideFoldedPage",e),e||P._moveFoldingPage.call(o,!1),i.force&&(i.next=0==i.page%2?i.page-1:i.page+1,delete i.force))}return this.turn("update"),this},pages:function(t){var e=this.data();if(t){if(t<e.totalPages)for(var a=e.totalPages;a>t;a--)this.turn("removePage",a);return e.totalPages=t,M._fitPage.call(this,e.page),this}return e.totalPages},_missing:function(t){var e=this.data();if(!(1>e.totalPages)){var a=this.turn("range",t),i=[];for(t=a[0];t<=a[1];t++)e.pageObjs[t]||i.push(t);0<i.length&&this.trigger("missing",[i])}},_fitPage:function(t){var e=this.data(),a=this.turn("view",t);if(M._missing.call(this,t),e.pageObjs[t]){e.page=t,this.turn("stop");for(var i=0;i<a.length;i++)a[i]&&e.pageZoom[a[i]]!=e.zoom&&(this.trigger("zoomed",[a[i],a,e.pageZoom[a[i]],e.zoom]),e.pageZoom[a[i]]=e.zoom);M._removeFromDOM.call(this),M._makeRange.call(this),M._updateShadow.call(this),this.trigger("turned",[t,a]),this.turn("update"),e.opts.autoCenter&&this.turn("center")}},_turnPage:function(e){var a,i,o=this.data(),r=o.pagePlace[e],n=this.turn("view"),d=this.turn("view",e);if(o.page!=e){var s=o.page;if("prevented"==c("turning",this,[e,d]))return void(s==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,d)&&this.trigger("first"),-1!=t.inArray(o.totalPages,d)&&this.trigger("last")}"single"==o.display?(a=n[0],i=d[0]):n[1]&&e>n[1]?(a=n[1],i=d[0]):n[0]&&e<n[0]&&(a=n[0],i=d[1]),r=o.opts.turnCorners.split(","),d=(n=o.pages[a].data().f).opts,s=n.point,M._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,M._makeRange.call(this),o.tpage=i,d.next!=i&&(d.next=i,d.force=!0),this.turn("update"),n.point=s,"hard"==n.effect?"ltr"==o.direction?o.pages[a].flip("turnPage",e>a?"r":"l"):o.pages[a].flip("turnPage",e>a?"l":"r"):"ltr"==o.direction?o.pages[a].flip("turnPage",r[e>a?1:0]):o.pages[a].flip("turnPage",r[e>a?0:1]))},page:function(e){var a=this.data();if(void 0===e)return a.page;if(!a.disabled&&!a.destroying){if(0<(e=parseInt(e,10))&&e<=a.totalPages)return e!=a.page&&(a.done&&-1==t.inArray(e,this.turn("view"))?M._turnPage.call(this,e):M._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,M._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,M._view.call(this,this.data().page).shift()-1))},peel:function(t,e){var a=this.data(),i=this.turn("view");e=void 0===e||!0===e;return!1===t?this.turn("stop",null,e):"single"==a.display?a.pages[a.page].flip("peel",t,e):(i="ltr"==a.direction?-1!=t.indexOf("l")?i[0]:i[1]:-1!=t.indexOf("l")?i[1]:i[0],a.pages[i]&&a.pages[i].flip("peel",t,e)),this},_addMotionPage:function(){var e=t(this).data().f.opts,a=e.turn;a.data(),M._addMv.call(a,e.page)},_eventStart:function(t,e,a){var i=e.turn.data(),o=i.pageZoom[e.page];t.isDefaultPrevented()||(o&&o!=i.zoom&&(e.turn.trigger("zoomed",[e.page,e.turn.turn("view",e.page),o,i.zoom]),i.pageZoom[e.page]=i.zoom),"single"==i.display&&a&&("l"==a.charAt(1)&&"ltr"==i.direction||"r"==a.charAt(1)&&"rtl"==i.direction?(e.next=e.next<e.page?e.next:e.page-1,e.force=!0):e.next=e.next>e.page?e.next:e.page+1),M._addMotionPage.call(t.target)),M._updateShadow.call(e.turn)},_eventEnd:function(e,a,i){t(e.target).data();var o=(e=a.turn).data();i?((i=o.tpage||o.page)==a.next||i==a.page)&&(delete o.tpage,M._fitPage.call(e,i||a.next,!0)):(M._removeMv.call(e,a.page),M._updateShadow.call(e),e.turn("update"))},_eventPressed:function(e){var a=(e=t(e.target).data().f).opts.turn;return a.data().mouseAction=!0,a.turn("update"),e.time=(new Date).getTime()},_eventReleased:function(e,a){var i,o=(i=t(e.target)).data().f,r=o.opts.turn,n=r.data();i="single"==n.display?"br"==a.corner||"tr"==a.corner?a.x<i.width()/2:a.x>i.width()/2:0>a.x||a.x>i.width(),(200>(new Date).getTime()-o.time||i)&&(e.preventDefault(),M._turnPage.call(r,o.opts.next)),n.mouseAction=!1},_flip:function(e){e.stopPropagation(),(e=t(e.target).data().f.opts).turn.trigger("turn",[e.next]),e.turn.data().opts.autoCenter&&e.turn.turn("center",e.next)},_touchStart:function(){var t,e=this.data();for(t in e.pages)if(d(t,e.pages)&&!1===P._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),d=(e=this.turn("view"))[0]||e[1],s=t.length-1,l={pageZ:{},partZ:{},pageV:{}},c=function(t){(t=r.turn("view",t))[0]&&(l.pageV[t[0]]=!0),t[1]&&(l.pageV[t[1]]=!0)};for(e=0;e<=s;e++)a=t[e],i=n.pages[a].data().f.opts.next,o=n.pagePlace[a],c(a),c(i),a=n.pagePlace[i]==i?i:a,l.pageZ[a]=n.totalPages-Math.abs(d-a),l.partZ[o]=2*n.totalPages-s+e;return l},update:function(){var e,a=this.data();if(this.turn("animating")&&0!==a.pageMv[0]){var i,o=this.turn("calculateZ",a.pageMv),r=this.turn("corner"),n=this.turn("view"),s=this.turn("view",a.tpage);for(e in a.pageWrap)d(e,a.pageWrap)&&(i=a.pageObjs[e].hasClass("fixed"),a.pageWrap[e].css({display:o.pageV[e]||i?"":"none",zIndex:(a.pageObjs[e].hasClass("hard")?o.partZ[e]:o.pageZ[e])||(i?-1:0)}),i=a.pages[e])&&(i.flip("z",o.partZ[e]||null),o.pageV[e]&&i.flip("resize"),a.tpage?i.flip("hover",!1).flip("disable",-1==t.inArray(parseInt(e,10),a.pageMv)&&e!=s[0]&&e!=s[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)d(e,a.pageWrap)&&(o=M._setPageLoc.call(this,e),a.pages[e]&&a.pages[e].flip("disable",a.disabled||1!=o).flip("hover",!0).flip("z",null));return this},_updateShadow:function(){var e,i,o=this.data(),r=this.width(),n=this.height(),d="single"==o.display?r:r/2;e=this.turn("view"),o.shadow||(o.shadow=t("<div />",{class:"shadow",css:a(0,0,0).css}).appendTo(this));for(var s=0;s<o.pageMv.length&&e[0]&&e[1];s++)e=this.turn("view",o.pages[o.pageMv[s]].data().f.opts.next),i=this.turn("view",o.pageMv[s]),e[0]=e[0]&&i[0],e[1]=e[1]&&i[1];switch(e[0]?e[1]?3:"ltr"==o.direction?2:1:"ltr"==o.direction?1:2){case 1:o.shadow.css({width:d,height:n,top:0,left:d});break;case 2:o.shadow.css({width:d,height:n,top:0,left:0});break;case 3:o.shadow.css({width:r,height:n,top:0,left:0})}},_setPageLoc:function(t){var e=this.data(),a=this.turn("view"),i=0;if(t==a[0]||t==a[1]?i=1:("single"==e.display&&t==a[0]+1||"double"==e.display&&t==a[0]-2||t==a[1]+2)&&(i=2),!this.turn("animating"))switch(i){case 1:e.pageWrap[t].css({zIndex:e.totalPages,display:""});break;case 2:e.pageWrap[t].css({zIndex:e.totalPages-1,display:""});break;case 0:e.pageWrap[t].css({zIndex:0,display:e.pageObjs[t].hasClass("fixed")?"":"none"})}return i},options:function(e){if(void 0===e)return this.data().opts;var a=this.data();if(t.extend(a.opts,e),e.pages&&this.turn("pages",e.pages),e.page&&this.turn("page",e.page),e.display&&this.turn("display",e.display),e.direction&&this.turn("direction",e.direction),e.width&&e.height&&this.turn("size",e.width,e.height),e.when)for(var i in e.when)d(i,e.when)&&this.unbind(i).bind(i,e.when[i]);return this},version:function(){return"4.1.0"}},P={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),P._addPageWrapper.call(this),this},setData:function(e){var a=this.data();return a.f=t.extend(a.f,e),this},options:function(e){var a=this.data().f;return e?(P.setData.call(this,{opts:t.extend({},a.opts||C,e)}),this):a.opts},z:function(t){var e=this.data().f;return e.opts["z-index"]=t,e.fwrapper&&e.fwrapper.css({zIndex:t||parseInt(e.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var t=this.data().f,e=t.opts.page,a=t.opts.turn.data(),i=e%2;return"hard"==t.effect?"ltr"==a.direction?[i?"r":"l"]:[i?"l":"r"]:"single"==a.display?1==e?"ltr"==a.direction?y.forward:y.backward:e==a.totalPages?"ltr"==a.direction?y.backward:y.forward:y.all:"ltr"==a.direction?y[i?"forward":"backward"]:y[i?"backward":"forward"]},_cornerActivated:function(e){var a=this.data().f,i=this.width(),o=this.height(),r=(e={x:e.x,y:e.y,corner:""},a.opts.cornerSize);if(0>=e.x||0>=e.y||e.x>=i||e.y>=o)return!1;var n=P._cAllowed.call(this);switch(a.effect){case"hard":if(e.x>i-r)e.corner="r";else{if(!(e.x<r))return!1;e.corner="l"}break;case"sheet":if(e.y<r)e.corner+="t";else{if(!(e.y>=o-r))return!1;e.corner+="b"}if(e.x<=r)e.corner+="l";else{if(!(e.x>=i-r))return!1;e.corner+="r"}}return!(!e.corner||-1==t.inArray(e.corner,n))&&e},_isIArea:function(t){var e=this.data().f.parent.offset();t=w&&t.originalEvent?t.originalEvent.touches[0]:t;return P._cornerActivated.call(this,{x:t.pageX-e.left,y:t.pageY-e.top})},_c:function(t,e){switch(e=e||0,t){case"tl":return o(e,e);case"tr":return o(this.width()-e,e);case"bl":return o(e,this.height()-e);case"br":return o(this.width()-e,this.height()-e);case"l":return o(e,0);case"r":return o(this.width()-e,0)}},_c2:function(t){switch(t){case"tl":return o(2*this.width(),0);case"tr":return o(-this.width(),0);case"bl":return o(2*this.width(),this.height());case"br":return o(-this.width(),this.height());case"l":return o(2*this.width(),0);case"r":return o(-this.width(),0)}},_foldingPage:function(){var t=this.data().f;if(t){var e=t.opts;if(e.turn)return"single"==(t=e.turn.data()).display?1<e.next||1<e.page?t.pageObjs[0]:null:t.pageObjs[e.next]}},_backGradient:function(){var e=this.data().f,i=e.opts.turn.data();return(i=i.opts.gradients&&("single"==i.display||2!=e.opts.page&&e.opts.page!=i.totalPages-1))&&!e.bshadow&&(e.bshadow=t("<div/>",a(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(e.parent)),i},type:function(){return this.data().f.effect},resize:function(t){var e=this.data().f,a=e.opts.turn.data(),i=this.width(),o=this.height();switch(e.effect){case"hard":t&&(e.wrapper.css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&(e.ashadow.css({width:i,height:o}),e.bshadow.css({width:i,height:o})));break;case"sheet":t&&(t=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(o,2))),e.wrapper.css({width:t,height:t}),e.fwrapper.css({width:t,height:t}).children(":first-child").css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&e.ashadow.css({width:i,height:o}),P._backGradient.call(this)&&e.bshadow.css({width:i,height:o})),e.parent.is(":visible")&&(a=m(e.parent[0]),e.fwrapper.css({top:a.top,left:a.left}),a=m(e.opts.turn[0]),e.fparent.css({top:-a.top,left:-a.left})),this.flip("z",e.opts["z-index"])}},_addPageWrapper:function(){var e=this.data().f,i=e.opts.turn.data(),o=this.parent();if(e.parent=o,!e.wrapper)switch(e.effect){case"hard":(r={})[v+"transform-style"]="preserve-3d",r[v+"backface-visibility"]="hidden",e.wrapper=t("<div/>",a(0,0,2)).css(r).appendTo(o).prepend(this),e.fpage=t("<div/>",a(0,0,1)).css(r).appendTo(o),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,0)).hide().appendTo(o),e.bshadow=t("<div/>",a(0,0,0)));break;case"sheet":var r=this.width();this.height();e.fparent=e.opts.turn.data().fparent,e.fparent||((r=t("<div/>",{css:{"pointer-events":"none"}}).hide()).data().flips=0,r.css(a(0,0,"auto","visible").css).appendTo(e.opts.turn),e.opts.turn.data().fparent=r,e.fparent=r),this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),e.wrapper=t("<div/>",a(0,0,this.css("z-index"))).appendTo(o).prepend(this),e.fwrapper=t("<div/>",a(o.offset().top,o.offset().left)).hide().appendTo(e.fparent),e.fpage=t("<div/>",a(0,0,0,"visible")).css({cursor:"default"}).appendTo(e.fwrapper),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,1)).appendTo(e.fpage)),P.setData.call(this,e)}P.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=P._c.call(this,t.corner),d=this.width(),s=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*d):Math.max(Math.min(t.x,d),-d);var c,p,m,u,h,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},z=i.x?(i.x-t.x)/d:t.x/d,k=90*z,_=90>k;switch(t.corner){case"l":u="0% 50%",h="100% 50%",_?(c=0,p=0<e.opts.next-1,m=1):(c="100%",p=e.opts.page+1<w,m=0);break;case"r":u="100% 50%",h="0% 50%",k=-k,d=-d,_?(c=0,p=e.opts.next+1<w,m=0):(c="-100%",p=1!=e.opts.page,m=1)}y[v+"perspective-origin"]=h,e.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",h),e.fpage.transform("translateX("+d+"px) rotateY("+(180+k)+"deg)",u),e.parent.css(y),_?(z=1-z,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(z-=1,e.wrapper.css({zIndex:x}),e.fpage.css({zIndex:x+1})),a.opts.gradients&&(p?e.ashadow.css({display:"",left:c,backgroundColor:"rgba(0,0,0,"+.5*z+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:1-z}),_?e.bshadow.parent()[0]!=e.wrapper[0]&&e.bshadow.appendTo(e.wrapper):e.bshadow.parent()[0]!=e.fpage[0]&&e.bshadow.appendTo(e.fpage),l(e.bshadow,o(100*m,0),o(100*(1-m),0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var C,M,S,L,N,E,I,A=this,T=0,B=o(0,0),F=o(0,0),R=o(0,0),j=P._foldingPage.call(this),q=a.opts.acceleration,D=e.wrapper.height(),O="t"==t.corner.substr(0,1),$="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),n=o(0,0);r.x=i.x?i.x-t.x:t.x,r.y=g?i.y?i.y-t.y:t.y:0,n.x=$?d-r.x/2:t.x+r.x/2,n.y=r.y/2;var l=b-Math.atan2(r.y,r.x),c=l-Math.atan2(n.y,n.x);c=Math.max(0,Math.sin(c)*Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2)));return T=l/f*180,R=o(c*Math.sin(l),c*Math.cos(l)),l>b&&(R.x+=Math.abs(R.y*r.y/r.x),R.y=0,Math.round(R.x*Math.tan(f-l))<s)?(t.y=Math.sqrt(Math.pow(s,2)+2*n.x*r.x),O&&(t.y=s-t.y),e()):(l>b&&(r=f-l,n=D-s/Math.sin(r),B=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),$&&(B.x=-B.x),O&&(B.y=-B.y)),C=Math.round(R.y/Math.tan(l)+R.x),n=(r=d-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round($?r-n:C+n),Math.round(O?c:s-c)),a.opts.gradients&&(N=r*Math.sin(l),r=P._c2.call(A,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/d,I=Math.sin(b*(1<r?2-r:r)),E=Math.min(r,1),L=100<N?(N-100)/N:0,M=o(N*Math.sin(l)/d*100,N*Math.cos(l)/s*100),P._backGradient.call(A)&&(S=o(1.2*N*Math.sin(l)/d*100,1.2*N*Math.cos(l)/s*100),$||(S.x=100-S.x),O||(S.y=100-S.y))),R.x=Math.round(R.x),R.y=Math.round(R.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(d-D)*c[0]/100,h=(s-D)*c[1]/100,g=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?$?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,q),v),e.fpage.css(i).transform(n(p)+r(t.x+F.x-B.x-d*c[0]/100,t.y+F.y-B.y-s*c[1]/100,q)+n((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,q)+n(-p),v),e.fwrapper.transform(r(-t.x+B.x+u,-t.y+B.y+h,q)+n(-p),v),a.opts.gradients&&(c[0]&&(M.x=100-M.x),c[1]&&(M.y=100-M.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*I+")",j.css(m),l(e.ashadow,o($?100:0,O?0:100),o(M.x,M.y),[[L,"rgba(0,0,0,0)"],[.8*(1-L)+L,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),P._backGradient.call(A)&&l(e.bshadow,o($?0:100,O?0:100),o(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*E+")"],[1,"rgba(0,0,0,0)"]],3))},t.corner){case"tl":t.x=Math.max(t.x,1),V(),c(R,[1,0,0,1],[100,0],T);break;case"tr":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,R.y),[0,0,0,1],[0,0],-T);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(R.x,-R.y),[1,1,0,0],[100,100],-T);break;case"br":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,-R.y),[0,1,1,0],[0,100],T)}}e.point=t},_moveFoldingPage:function(t){var e=this.data().f;if(e){var a=e.opts.turn,i=a.data(),o=i.pagePlace;t?(o[i=e.opts.next]!=e.opts.page&&(e.folding&&P._moveFoldingPage.call(this,!1),P._foldingPage.call(this).appendTo(e.fpage),o[i]=e.opts.page,e.folding=i),a.turn("update")):e.folding&&(i.pages[e.folding]?(a=i.pages[e.folding].data().f,i.pageObjs[e.folding].appendTo(a.wrapper)):i.pageWrap[e.folding]&&i.pageObjs[e.folding].appendTo(i.pageWrap[e.folding]),e.folding in o&&(o[e.folding]=e.folding),delete e.folding)}},_showFoldedPage:function(t,e){var a=P._foldingPage.call(this),i=(n=this.data()).f,o=i.visible;if(a){if(!(o&&i.point&&i.point.corner==t.corner||(a="hover"==i.status||"peel"==i.status||i.opts.turn.data().mouseAction?t.corner:null,o=!1,"prevented"!=c("start",this,[i.opts,a]))))return!1;if(e){var r=this,n=i.point&&i.point.corner==t.corner?i.point:P._c.call(this,t.corner,1);this.animatef({from:[n.x,n.y],to:[t.x,t.y],duration:500,frame:function(e){t.x=Math.round(e[0]),t.y=Math.round(e[1]),P._fold.call(r,t)}})}else P._fold.call(this,t),n.effect&&!n.effect.turning&&this.animatef(!1);if(!o)switch(i.effect){case"hard":i.visible=!0,P._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,P._moveFoldingPage.call(this,!0),i.fwrapper.show(),i.bshadow&&i.bshadow.show()}return!0}return!1},hide:function(){var t=this.data().f,e=t.opts.turn.data(),a=P._foldingPage.call(this);switch(t.effect){case"hard":e.opts.gradients&&(t.bshadowLoc=0,t.bshadow.remove(),t.ashadow.hide()),t.wrapper.transform(""),t.fpage.hide();break;case"sheet":0==--t.fparent.data().flips&&t.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),t.wrapper.transform(""),t.fwrapper.hide(),t.bshadow&&t.bshadow.hide(),a.transform("")}return t.visible=!1,this},hideFoldedPage:function(t){var e=this.data().f;if(e.point){var a=this,r=e.point,n=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var d=P._c.call(this,r.corner),s=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-d.y)/2:Math.max(0,r.y-d.y)/2,o(r.x,r.y+t)),l=o(d.x,d.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,s,l,d,t),r.x=t.x,r.y=t.y,P._fold.call(a,r)},complete:n,duration:800,hiding:!0})}else this.animatef(!1),n()}},turnPage:function(t){var e=this,a=this.data().f,o=a.opts.turn.data(),r=(t={corner:a.corner?a.corner.corner:t||P._cAllowed.call(this)[0]},a.point||P._c.call(this,t.corner,a.opts.turn?o.opts.elevation:0)),n=P._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(a){a=i(r,r,n,n,a),t.x=a.x,t.y=a.y,P._showFoldedPage.call(e,t)},complete:function(){e.trigger("end",[a.opts,!0])},duration:o.opts.duration,turning:!0}),a.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(t){var e=this.data().f,a=e.opts.turn;if(!e.corner&&!e.disabled&&!this.flip("isTurning")&&e.opts.page==a.data().pagePlace[e.opts.page]){if(e.corner=P._isIArea.call(this,t),e.corner&&P._foldingPage.call(this))return this.trigger("pressed",[e.point]),P._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled)if(t=w?t.originalEvent.touches:[t],e.corner){var a=e.parent.offset();e.corner.x=t[0].pageX-a.left,e.corner.y=t[0].pageY-a.top,P._showFoldedPage.call(this,e.corner)}else e.hover&&!this.data().effect&&this.is(":visible")&&((t=P._isIArea.call(this,t[0]))?("sheet"==e.effect&&2==t.corner.length||"hard"==e.effect)&&(e.status="hover",e=P._c.call(this,t.corner,e.opts.cornerSize/2),t.x=e.x,t.y=e.y,P._showFoldedPage.call(this,t,!0)):"hover"==e.status&&(e.status="",P.hideFoldedPage.call(this,!0)))},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&"prevented"!=c("released",this,[t.point||e])&&P.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return P.setData.call(this,{disabled:t}),this},hover:function(t){return P.setData.call(this,{hover:t}),this},peel:function(e,a){var i=this.data().f;if(e){if(-1==t.inArray(e,y.all))throw p("Corner "+e+" is not permitted");if(-1!=t.inArray(e,P._cAllowed.call(this))){var o=P._c.call(this,e,i.opts.cornerSize/2);i.status="peel",P._showFoldedPage.call(this,{corner:e,x:o.x,y:o.y},a)}}else i.status="",P.hideFoldedPage.call(this,a);return this}};window.requestAnim=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},t.extend(t.fn,{flip:function(){return e(t(this[0]),P,arguments)},turn:function(){return e(t(this[0]),M,arguments)},transform:function(t,e){var a={};return e&&(a[v+"transform-origin"]=e),a[v+"transform"]=t,this.css(a)},animatef:function(e){var a=this.data();if(a.effect&&a.effect.stop(),e){e.to.length||(e.to=[e.to]),e.from.length||(e.from=[e.from]);for(var i=[],o=e.to.length,r=!0,n=this,d=(new Date).getTime(),s=0;s<o;s++)i.push(e.to[s]-e.from[s]);a.effect=t.extend({stop:function(){r=!1},easing:function(t,e,a,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+a}},e),this.data(a),function t(){if(a.effect&&r){for(var s=[],l=Math.min(e.duration,(new Date).getTime()-d),c=0;c<o;c++)s.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?s[0]:s),l==e.duration?(delete a.effect,n.data(a),e.complete&&e.complete()):window.requestAnim(t)}}()}else delete a.effect}}),t.isTouch=w,t.mouseEvents=x,t.cssPrefix=s,t.cssTransitionEnd=function(){var t,e=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(void 0!==e.style[t])return a[t]},t.findPos=m}(s),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return n&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return n&&e?" scale3d("+t+", "+t+", 1) ":" scale("+t+") "}function o(t,e){return{x:t,y:e}}function r(t,e){return function(){return t.apply(e,arguments)}}var n,d={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},s={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},d,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(n="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,"function"!=typeof a.max){var c=a.max;a.max=function(){return c}}for(var p in l.zoom={opts:a,axis:o(0,0),scrollPos:o(0,0),eventQueue:[],mouseupEvent:function(){return s._eMouseUp.apply(i,arguments)},eventTouchStart:r(s._eTouchStart,i),eventTouchMove:r(s._eTouchMove,i),eventTouchEnd:r(s._eTouchEnd,i),flipbookEvents:{zooming:r(s._eZoom,i),pressed:r(s._ePressed,i),released:r(s._eReleased,i),start:r(s._eStart,i),turning:r(s._eTurning,i),turned:r(s._eTurned,i),destroying:r(s._eDestroying,i)}},a.when)Object.prototype.hasOwnProperty.call(a.when,p)&&this.bind("zoom."+p,a.when[p]);for(p in l.zoom.flipbookEvents)Object.prototype.hasOwnProperty.call(l.zoom.flipbookEvents,p)&&a.flipbook.bind(p,l.zoom.flipbookEvents[p]);this.css({position:"relative",overflow:"hidden"}),t.isTouch?(a.flipbook.bind("touchstart",l.zoom.eventTouchStart).bind("touchmove",l.zoom.eventTouchMove).bind("touchend",l.zoom.eventTouchEnd),this.bind("touchstart",s._tap)):this.mousedown(s._mousedown).click(s._tap)},_tap:function(e){var a=t(this),i=a.data().zoom;!i.draggingCorner&&!i.dragging&&function t(e,a){return e[0]!=a[0]&&(!!e.attr("page")||!!e.parent()[0]&&t(e.parent(),a))}(t(e.target),a)&&(s._addEvent.call(a,"tap",e),(e=s._eventSeq.call(a))&&a.trigger(e))},_addEvent:function(t,e){var a=this.data().zoom,i=(new Date).getTime();a.eventQueue.push({name:t,timestamp:i,event:e}),10<a.eventQueue.length&&a.eventQueue.splice(0,1)},_eventSeq:function(){var e=this.data().zoom.eventQueue,a=e.length-1;return 0<a&&"tap"==e[a].name&&"tap"==e[a-1].name&&e[a].event.pageX==e[a-1].event.pageX&&e[a].event.pageY==e[a-1].event.pageY&&200>e[a].timestamp-e[a-1].timestamp&&50<e[a].timestamp-e[a-1].timestamp?t.extend(e[a].event,{type:"zoom.doubleTap"}):"tap"==e[a].name?t.extend(e[a].event,{type:"zoom.tap"}):void 0},_prepareZoom:function(){var e,a=0,i=this.data().zoom,r=1/this.zoom("value"),n=(e=i.opts.flipbook).turn("direction"),d=e.data(),s=e.offset(),l=this.offset(),c={height:e.height()},p=e.turn("view");if("double"==e.turn("display")&&e.data().opts.autoCenter?p[0]?p[1]?(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?s.left-l.left:s.left-l.left+c.width,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?s.left-l.left+c.width:s.left-l.left,s.top-l.top)):(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)),i.zoomer||(i.zoomer=t("<div />",{class:"zoomer",css:{overflow:"hidden",position:"absolute",zIndex:"1000000"}}).mousedown((function(){return!1})).appendTo(this)),i.zoomer.css({top:e.y,left:e.x,width:c.width,height:c.height}),(n=p.join(","))!=i.zoomerView)for(i.zoomerView=n,i.zoomer.find("*").remove(),n=0;n<p.length;n++)if(p[n]){l=d.pageObjs[p[n]].offset();var m=t(d.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-s.top)*r,left:(l.left-s.left-a)*r}).appendTo(i.zoomer)}return{pos:e,size:c}},value:function(){return this.data().zoom.opts.flipbook.turn("zoom")},zoomIn:function(e){var r=this,n=this.data().zoom,d=n.opts.flipbook,l=n.opts.max();d.offset();var c=this.offset();if(n.zoomIn)return this;d.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=s._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=d.data().opts.autoCenter;n.scale=l,d.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>f.width||e.y>f.height)&&(e.x=u.x,e.y=u.y);var v=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),f=(e=o(f.size.width*l>this.width()?e.x-v.x:0,f.size.height*l>this.height()?e.y-v.y:0),v=o(Math.abs(f.size.width*l-this.width()),Math.abs(f.size.height*l-this.height())),o(Math.min(0,f.size.width*l-this.width()),Math.min(0,f.size.height*l-this.height()))),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y);b.y>v.y?e.y=b.y-v.y+e.y:b.y<f.y&&(e.y=b.y-f.y+e.y),b.x>v.x?e.x=b.x-v.x+e.x:b.x<f.x&&(e.x=b.x-f.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+n.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),n.zoomIn=!0,n.flipPosition=o(d.css("left"),d.css("top")),d.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=d.offset();n.axis=o(e.left-c.left,e.top-c.top),g&&"double"==d.turn("display")&&("ltr"==d.turn("direction")&&!d.turn("view")[0]||"rtl"==d.turn("direction")&&!d.turn("view")[1])&&(n.axis.x+=d.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,s._eMouseDown),r.bind(t.mouseEvents.move,s._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",s._eMouseWheel),setTimeout((function(){n.zoomer.hide(),n.zoomer.remove(),n.zoomer=null,n.zoomerView=null}),50)};return n.zoomer.css(m).show(),h?n.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,n.opts.duration),n.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,n=this,d=this.data().zoom,l=d.opts.flipbook,c=1/d.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:d.opts.duration,d.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;d.zoomIn=!1,d.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,s._eMouseDown),n.unbind(t.mouseEvents.move,s._eMouseMove),t(document).unbind(t.mouseEvents.up,d.mouseupEvent),n.unbind("mousewheel",s._eMouseWheel),(u={})[p+"transition"]=p+"transform "+d.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:d.flipPosition.y,left:d.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var g=l.data().opts.autoCenter;g&&"double"==l.turn("display")&&(l.turn("view")[0]?l.turn("view")[1]||(u.x="ltr"==l.turn("direction")?u.x+h.width()/4:u.x-h.width()/4):u.x="ltr"==l.turn("direction")?u.x-h.width()/4:u.x+h.width()/4);var v=t.findPos(l[0]);r=o(-l.width()/2-v.left+h.width()/2+u.x+r.left,-l.height()/2-v.top+h.height()/2+u.y+r.top);var f=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:d.flipPosition.y,left:d.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:d.flipPosition.y,left:d.flipPosition.x,position:"relative"}),g&&l.turn("center"),n.trigger("zoom.zoomOut")};return 0===e?f():(m?l.bind(m,(function(){t(this).unbind(m),f()})):setTimeout(f,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var d=this.data().zoom,s=d.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",s.css(p),s.transform(a(-d.axis.x-e.x,-d.axis.y-e.y,!0))}else s.css({top:-d.axis.y-e.y,left:-d.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(s.height()-this.height())/2)),s=o(l>this.width()?l-this.width():(l-this.width())/2,s.height()>this.height()?s.height()-this.height():(s.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>s.y&&(e.y=s.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>s.x&&(e.x=s.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}d.scrollPos=o(e.x,e.y)},resize:function(){var t=this.data().zoom,e=t.opts.flipbook;if(1<this.zoom("value")){var a=e.offset(),i=this.offset();t.axis=o(a.left-i.left+(t.axis.x+t.scrollPos.x),a.top-i.top+(t.axis.y+t.scrollPos.y)),"double"==e.turn("display")&&"ltr"==e.turn("direction")&&!e.turn("view")[0]&&(t.axis.x+=e.width()/2),this.zoom("scroll",t.scrollPos)}},_eZoom:function(){for(var t=this.data().zoom,e=t.opts.flipbook,a=e.turn("view"),i=0;i<a.length;i++)a[i]&&this.trigger("zoom.resize",[t.scale,a[i],e.data().pageObjs[a[i]]])},_eStart:function(t){1!=this.zoom("value")&&t.preventDefault()},_eTurning:function(t,e,a){var i=this,o=(t=this.zoom("value"),this.data().zoom);e=o.opts.flipbook;if(o.page=e.turn("page"),1!=t){for(o=0;o<a.length;o++)a[o]&&this.trigger("zoom.resize",[t,a[o],e.data().pageObjs[a[o]]]);setTimeout((function(){i.zoom("resize")}),0)}},_eTurned:function(t,e){if(1!=this.zoom("value")){var a=this.data().zoom,i=a.opts.flipbook;e>a.page?this.zoom("scroll",o(0,a.scrollPos.y),!1,!0):e<a.page&&this.zoom("scroll",o(i.width(),a.scrollPos.y),!1,!0)}},_ePressed:function(){t(this).data().zoom.draggingCorner=!0},_eReleased:function(){var e=t(this).data().zoom;setTimeout((function(){e.draggingCorner=!1}),1)},_eMouseDown:function(e){return t(this).data().zoom.draggingCur=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY),!1},_eMouseMove:function(e){var a=t(this).data().zoom;if(a.draggingCur){a.dragging=!0;e=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY);var i=o(e.x-a.draggingCur.x,e.y-a.draggingCur.y);return t(this).zoom("scroll",o(a.scrollPos.x-i.x,a.scrollPos.y-i.y),!0),a.draggingCur=e,!1}},_eMouseUp:function(){var e=t(this).data().zoom;e.dragging&&t(this).zoom("scroll",e.scrollPos),e.draggingCur=null,setTimeout((function(){e.dragging=!1}),1)},_eMouseWheel:function(e,a,i,r){i=o((e=t(this).data().zoom).scrollPos.x+10*i,e.scrollPos.y-10*r),t(this).zoom("scroll",i,!1,!0)},_eTouchStart:function(e){var a=t(this).data().zoom;e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch={},a.touch.initial=e,a.touch.last=e,a.touch.timestamp=(new Date).getTime(),a.touch.speed=o(0,0)},_eTouchMove:function(e){var a=t(this).data().zoom,i=t(this).zoom("value"),r=a.opts.flipbook,n=(new Date).getTime();e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch&&1==i&&!r.data().mouseAction&&(a.touch.motion=o(e.x-a.touch.last.x,e.y-a.touch.last.y),a.touch.speed.x=0===a.touch.speed.x?a.touch.motion.x/(n-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(n-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=n)},_eTouchEnd:function(){var e=t(this).data().zoom;if(e.touch&&1==t(this).zoom("value")){var a=Math.abs(e.touch.initial.y-e.touch.last.y);50>a&&(-1>e.touch.speed.x||-100>e.touch.last.x-e.touch.initial.x)?this.trigger("zoom.swipeLeft"):50>a&&(1<e.touch.speed.x||100<e.touch.last.x-e.touch.initial.x)&&this.trigger("zoom.swipeRight")}},_eDestroying:function(){var e=this,a=this.data().zoom,i=a.opts.flipbook;for(var o in this.zoom("zoomOut",0),t.each("tap doubleTap resize zoomIn zoomOut swipeLeft swipeRight".split(" "),(function(t,a){e.unbind("zoom."+a)})),a.flipbookEvents)Object.prototype.hasOwnProperty.call(a.flipbookEvents,o)&&i.unbind(o,a.flipbookEvents[o]);i.unbind("touchstart",a.eventTouchStart).unbind("touchmove",a.eventTouchMove).unbind("touchend",a.eventTouchEnd),this.unbind("touchstart",s._tap).unbind("click",s._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==u(a[0]))return s.init.apply(t(this[0]),a);if(s[a[0]])return s[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(s);var yt,zt=s,kt=require("axios"),_t=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flipbook-container"},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[a("div",{staticClass:"preview-desktop",class:t.isLoading?"invisible":"visible"},[a("div",{staticClass:"flipbook-lib",class:[t.formato],attrs:{id:"flipbook"}})])]),t._v(" "),t.controls?a("div",{staticClass:"controls"},[a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheLeft()}}},[a("span",{staticClass:"icon icon-chevron-left size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M20.0847 20.7019L15.3828 16L20.0847 11.298C20.8651 10.5177 20.8651 9.25557 20.0847 8.47522C19.3044 7.69487 18.0423 7.69487 17.2619 8.47522L11.1419 14.5952C10.3616 15.3756 10.3616 16.6377 11.1419 17.418L17.2619 23.538C18.0423 24.3184 19.3044 24.3184 20.0848 23.5381L20.0908 23.5319C20.8421 22.7608 20.8726 21.4898 20.0847 20.7019Z"}})])])]),t._v(" "),a("div",{staticClass:"info-space"},[a("div",{staticClass:"current-pages"},[a("div",{staticClass:"list",style:{left:"-"+t.numberPositions+"px"}},t._l(t.pages,(function(e,i){return a("span",{key:i},[t._v(t._s(i+1))])})),0)]),t._v(" "),a("div",{staticClass:"info-pages"},[t._v(t._s(t.pages)+" "+t._s(t.lang.pages))])]),t._v(" "),a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheRight()}}},[a("span",{staticClass:"icon icon-chevron-right size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9153 8.47532C11.135 9.25567 11.135 10.5178 11.9153 11.2981L16.6173 16.0001L11.9153 20.702C11.135 21.4823 11.135 22.7444 11.9153 23.5248C12.6957 24.3051 13.9578 24.3051 14.7381 23.5248L20.8582 17.4048C21.6385 16.6244 21.6385 15.3623 20.8582 14.582L14.7381 8.46198C13.9668 7.69064 12.6913 7.69931 11.9153 8.47532Z"}})])])])],1):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-6d506cd1_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.flipbook-viewport{margin-top:30px;width:100%}.flipbook-viewport .container-book{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page{-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);-moz-box-shadow:0 0 20px rgba(0,0,0,.2);-ms-box-shadow:0 0 20px rgba(0,0,0,.2);-o-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}#flipbook-viewport .page img{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.flipbook-viewport .shadow{-webkit-transition:-webkit-box-shadow .5s;-moz-transition:-moz-box-shadow .5s;-o-transition:-webkit-box-shadow .5s;-ms-transition:-ms-box-shadow .5s;-webkit-box-shadow:0 0 20px #ccc;-moz-box-shadow:0 0 20px #ccc;-o-box-shadow:0 0 20px #ccc;-ms-box-shadow:0 0 20px #ccc;box-shadow:0 0 20px #ccc}.even{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.odd{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.even:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to left,#000,transparent 7%);opacity:.15}.odd:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to right,#000,transparent 7%);opacity:.15}#flipbook .page-wrapper{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img{width:100%;height:calc(75vh - 50px)}#flipbook img.loading-blur{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img{height:100%}#flipbook.square img{width:100%;height:calc(55vh - 50px)}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}',map:void 0,media:void 0}),t("data-v-6d506cd1_1",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-6d506cd1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6d506cd1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6d506cd1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6d506cd1]{font-size:14px}}@media (min-width:1024px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6d506cd1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6d506cd1]{font-size:1.56vw}}html[data-v-6d506cd1]{box-sizing:border-box}*[data-v-6d506cd1],[data-v-6d506cd1]::after,[data-v-6d506cd1]::before{box-sizing:border-box}[data-v-6d506cd1] .arrow svg{width:100%!important;height:100%!important}.zoom-in #flipbook img[data-v-6d506cd1]{height:100%!important}.preview-desktop[data-v-6d506cd1]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-6d506cd1]{position:absolute;top:35%;left:0;right:0;bottom:0;margin-bottom:auto;margin-top:auto;z-index:9999;text-align:center;font-family:Roboto}.loading-box #loading[data-v-6d506cd1]{display:inline-block;border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-6d506cd1]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-6d506cd1]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-6d506cd1]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-6d506cd1]{transition:all .7s ease-in-out}.flipbook-container[data-v-6d506cd1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .3s;z-index:2;min-height:210px;min-height:210px}.flipbook-container.zoom-in[data-v-6d506cd1]{height:100vh}@media (max-width:479px){.flipbook-container[data-v-6d506cd1]{display:none}}.flipbook-container .flipbook-lib[data-v-6d506cd1]{z-index:50}.flipbook-container .flipbook-lib .page.odd[data-v-6d506cd1]:not(.p1)::before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:20px 0 20px -10px rgba(0,0,0,.3) inset;z-index:4}.flipbook-container .flipbook-lib .page.even[data-v-6d506cd1]::before{position:absolute;display:block;content:"";height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.5) inset}.flipbook-container .flipbook-lib img[data-v-6d506cd1]{height:100%!important}.controls[data-v-6d506cd1]{margin:0 auto;display:block;display:inline-block;margin-top:20px;position:relative;z-index:2}.controls button[data-v-6d506cd1]{display:inline-block!important;background:#fff;box-shadow:4px 8px 24px rgba(175,162,186,.24);padding:.380952381rem!important;border-radius:50%;text-align:center;color:#afa2ba;border:none;width:auto!important;height:auto!important;cursor:pointer}.controls button svg[data-v-6d506cd1]{fill:transparent!important}.controls button svg path[data-v-6d506cd1]{fill:transparent!important}.controls button .svg-color[data-v-6d506cd1]{fill:#12d3db!important}.controls button .svg-color path[data-v-6d506cd1]{fill:#12d3db!important}.controls .info-space[data-v-6d506cd1]{position:relative;top:3px;display:inline-block;margin:0 .380952381rem;font-size:10px;font-weight:900;color:#afa2ba;font-family:Nunito,sans-serif}.controls .current-pages[data-v-6d506cd1]{width:60px;white-space:nowrap;line-height:1;overflow:hidden;transition:all .5s ease}.controls .current-pages .list[data-v-6d506cd1]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-6d506cd1]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-6d506cd1]:first-child{margin:0 16px}.controls .current-pages span[data-v-6d506cd1]:last-child{margin:0 16px}.info-pages[data-v-6d506cd1]{text-align:center}@keyframes arrow-animation-data-v-6d506cd1{0%,100%,48%{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}8%{-webkit-transform:translateX(-30%);transform:translateX(-30%)}16%{-webkit-transform:translateX(15%);transform:translateX(15%)}24%{-webkit-transform:translateX(-15%);transform:translateX(-15%)}32%{-webkit-transform:translateX(9%);transform:translateX(9%)}40%{-webkit-transform:translateX(-6%);transform:translateX(-6%)}}.visible[data-v-6d506cd1]{opacity:1}.invisible[data-v-6d506cd1]{opacity:0}[data-v-6d506cd1] .loading-bg{position:absolute;display:flex;top:0;width:100%;height:100%;background-color:#fff;opacity:.64;align-items:center;justify-content:center;z-index:12}[data-v-6d506cd1] .loading-bg .loading{border:2px solid #dfdae4;border-top:2px solid #00cf72;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){[data-v-6d506cd1] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.icon[data-v-6d506cd1]{width:24px;height:24px;display:block}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:T},props:{
|
|
1259
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-a049d78a",!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"},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items"},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon icon-close size-lg",on:{click:t.closeModal}},[a("svg",{attrs:{fill:"#DFDAE4",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-header-content"},[a("Heading",{attrs:{kind:"h4",size:t.headingSize,color:t.headingColor}},[t._v(t._s(t.heading))]),t._v(" "),t.paragraph?a("Paragraph",{attrs:{size:t.paragraphSize,color:"'#ccc'"},domProps:{innerHTML:t._s(t.paragraph)}}):t._e()],1),t._v(" "),t._t("header")],2),t._v(" "),a("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),a("HR",{attrs:{height:"1px",color:"#f0f0f0"}}),t._v(" "),a("div",{staticClass:"modal-footer-items"},[t._t("footer")],2)],1)])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-27a3297c_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-27a3297c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-27a3297c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-27a3297c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-27a3297c]{font-size:14px}}@media (min-width:1024px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-27a3297c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-27a3297c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-27a3297c]{font-size:1.56vw}}html[data-v-27a3297c]{box-sizing:border-box}*[data-v-27a3297c],[data-v-27a3297c]::after,[data-v-27a3297c]::before{box-sizing:border-box}.modal[data-v-27a3297c]{display:block;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow-y:scroll;outline:0;font-family:Nunito,sans-serif;display:flex;align-items:center;justify-content:center}.modal-dialog[data-v-27a3297c]{transition:all .5s ease}.modal-backdrop[data-v-27a3297c]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-27a3297c]{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background:rgba(104,89,110,.8);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.modal-content[data-v-27a3297c]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:0;outline:0}@media (max-width:479px){.modal-content[data-v-27a3297c]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-dialog[data-v-27a3297c]{max-width:27.5238095238rem;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;width:auto;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-dialog[data-v-27a3297c]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-27a3297c]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-27a3297c]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-27a3297c]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-27a3297c] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:1.1428571429rem;max-height:1.1428571429rem;width:100%}@media (max-width:479px){.modal-header-items .modal-header-close .header-close span[data-v-27a3297c]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-27a3297c]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-27a3297c]{padding:2.9906542056rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-27a3297c]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-27a3297c]{width:100%;margin:0}hr[data-v-27a3297c]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-27a3297c]{display:none}}.modal-body[data-v-27a3297c]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-27a3297c]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-27a3297c]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c]{background:#fff;padding:1.4018691589rem .9345794393rem;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64)}}.modal-footer-items[data-v-27a3297c] div{display:flex;justify-content:flex-start;flex-direction:row;width:100%}.modal-footer-items[data-v-27a3297c] div .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-ghost{width:50%;margin-left:.7476635514rem}}@media (max-width:479px){.modal-footer-items[data-v-27a3297c] div .btn-secondary{width:50%}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:B,Heading:ft,Paragraph:bt,Icon:T},props:{kind:{type:String,default:"primary"},size:{type:String,default:"xl"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0}},created:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},beforeCreate:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},mounted:function(){document.getElementsByTagName("html")[0].style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&(document.getElementsByClassName("boxes")[0].style.overflow="hidden")},destroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},beforeDestroy:function(){document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")},methods:{onClick:function(){this.$emit("click")},closeModal:function(){this.$emit("closeModal"),document.getElementsByTagName("html")[0].removeAttribute("style"),document.getElementsByTagName("body")[0].removeAttribute("style"),document.getElementsByClassName("boxes")&&document.getElementsByClassName("boxes").length>0&&document.getElementsByClassName("boxes")[0].removeAttribute("style")}},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}}},"data-v-27a3297c",!1,void 0,!1,x,void 0,void 0);var xt={en:{urlBuilder:"https://builder.playstories.com",justASecond:"Just a second",loadingPhrase:"We are loading your exclusive book",pages:"PAGES",pagesLowercase:"Pages",editArea:"Editing area",name:"Name",dedication:"Dedication",writeDedication:"Write a dedication",shirtNumber:"Shirt Number",bookScript:"Book Script",dateBirth:"Birthday Date",editDateBirth:"Edit birthday date",pet:"Pet",editName:"Edit child's name",kidName:"Child's name",recommendedName:"It is recommended to use only the first name",dedicationFree:"Dedication (free)",cusutomDedication:"Customize the dedication that will be printed on the book.",messageDedication:"Dedication message",dedcationPlaceholder:"May your life be full of great adventures!",editShirt:"Edit shirt number",chooseScript:"You choose the script",choosePetLabel1:"Choose the pair that will help the",choosePetLabel2:"to meet Samson on this adventure together with Turma da Mônica.",day:"Day",month:"Month",changePet:"Change the story bug",petDescription1:"This pet will accompany",petDescription2:"throughout history.",typePetname:"Type the pet's name here",selectPet:"Select the pet",update:"UPDATE",cancel:"CANCEL"},br:{urlBuilder:"https://builder.dentrodahistoria.com.br",justASecond:"Só um segundo",loadingPhrase:"Estamos carregando seu livro exclusivo",pages:"PÁGINAS",pagesLowercase:"Páginas",editArea:"Área de edição",name:"Nome",dedication:"Dedicatória",writeDedication:"Escreva uma dedicatória",shirtNumber:"Número da Camisa",bookScript:"Roteiro do Livro",dateBirth:"Data do aniversário",editDateBirth:"Editar data do aniversário",pet:"Bichinho de estimação",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",moonerTitleFirstOpen:"Adicione um Mooner na história",moonerTitleFirstOpenMobile:"Adicione um Mooner",moonerTitle:"Altere o Mooner da história",moonerTitleMobile:"Altere o Mooner",moonerDescriptionOne:"Ele irá acompanhar <span>",moonerDescriptionTwo:"</span> durante toda a aventura.",moonerLabel:"Digite um nome para o Mooner",moonerLabelSelector:"Selecione um Mooner: ",moonerCtaFirstOpen:"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,d=n*n*n,s=r*r*r;return o(Math.round(d*t.x+3*r*n*n*e.x+3*r*r*n*a.x+s*i.x),Math.round(d*t.y+3*r*n*n*e.y+3*r*r*n*a.y+s*i.y))}function o(t,e){return{x:t,y:e}}function r(t,e,a){return h&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function n(t){return" rotate("+t+"deg) "}function d(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function s(){for(var t=["Moz","Webkit","Khtml","O","ms"],e=t.length,a="";e--;)t[e]+"Transform"in document.body.style&&(a="-"+t[e].toLowerCase()+"-");return a}function l(t,e,a,i,r){var n,d=[];if("-webkit-"==v){for(n=0;n<r;n++)d.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+d.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var s=(a={x:a.x/100*t.width(),y:a.y/100*t.height()}).x-e.x;n=a.y-e.y;var l=Math.atan2(n,s),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),s=Math.sqrt(n*n+s*s),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(n=-1/p)*(p=(n*a.x-a.y-p*e.x+e.y)/(n-p))-n*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),n=0;n<r;n++)d.push(" "+i[n][1]+" "+100*(e+s*i[n][0])/c+"%");t.css({"background-image":v+"linear-gradient("+-l+"rad,"+d.join(",")+")"})}}function c(e,a,i){return e=t.Event(e),a.trigger(e,i),e.isDefaultPrevented()?"prevented":e.isPropagationStopped()?"stopped":""}function p(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function m(t){var e={top:0,left:0};do{e.left+=t.offsetLeft,e.top+=t.offsetTop}while(t=t.offsetParent);return e}var h,g,v="",f=Math.PI,b=f/2,w="ontouchstart"in window,x=w?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},y={backward:["bl","tl"],forward:["br","tr"],all:"tl bl tr br l r".split(" ")},z=["single","double"],k=["ltr","rtl"],_={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},C={cornerSize:100},M={init:function(e){var a,i;h="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,g=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||534.3<parseFloat(a[1]),v=s(),a=0;var o=this.data(),n=this.children();e=t.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},_,e);if(o.opts=e,o.pageObjs={},o.pages={},o.pageWrap={},o.pageZoom={},o.pagePlace={},o.pageMv=[],o.zoom=1,o.totalPages=e.pages||0,o.eventHandlers={touchStart:t.proxy(M._touchStart,this),touchMove:t.proxy(M._touchMove,this),touchEnd:t.proxy(M._touchEnd,this),start:t.proxy(M._eventStart,this)},e.when)for(i in e.when)d(i,e.when)&&this.bind(i,e.when[i]);for(this.css({position:"relative",width:e.width,height:e.height}),this.turn("display",e.display),""!==e.direction&&this.turn("direction",e.direction),h&&!w&&e.acceleration&&this.transform(r(0,0,!0)),i=0;i<n.length;i++)"1"!=t(n[i]).attr("ignore")&&this.turn("addPage",n[i],++a);return t(this).bind(x.down,o.eventHandlers.touchStart).bind("end",M._eventEnd).bind("pressed",M._eventPressed).bind("released",M._eventReleased).bind("flip",M._flip),t(this).parent().bind("start",o.eventHandlers.start),t(document).bind(x.move,o.eventHandlers.touchMove).bind(x.up,o.eventHandlers.touchEnd),this.turn("page",e.page),o.done=!0,this},addPage:function(e,a){var i,o=!1,r=this.data(),n=r.totalPages+1;if(r.destroying)return!1;if((i=/\bp([0-9]+)\b/.exec(t(e).attr("class")))&&(a=parseInt(i[1],10)),a){if(a==n)o=!0;else if(a>n)throw p('Page "'+a+'" cannot be inserted')}else a=n,o=!0;return 1<=a&&a<=n&&(i="double"==r.display?a%2?" odd":" even":"",r.done&&this.turn("stop"),a in r.pageObjs&&M._movePages.call(this,a,1),o&&(r.totalPages=n),r.pageObjs[a]=t(e).css({float:"left"}).addClass("page p"+a+i),-1!=navigator.userAgent.indexOf("MSIE 9.0")&&r.pageObjs[a].hasClass("hard")&&r.pageObjs[a].removeClass("hard"),M._addPage.call(this,a),M._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(M._necessPage.call(this,e)){if(!a.pageWrap[e]){a.pageWrap[e]=t("<div/>",{class:"page-wrapper",page:e,css:{position:"absolute",overflow:"hidden"}}),this.append(a.pageWrap[e]),a.pagePlace[e]||(a.pagePlace[e]=e,a.pageObjs[e].appendTo(a.pageWrap[e]));var o=M._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&M._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return d(t,this.data().pageObjs)},center:function(e){var a=this.data(),i=t(this).turn("size"),o=0;return a.noCenter||("double"==a.display&&(e=this.turn("view",e||a.tpage||a.page),"ltr"==a.direction?e[0]?e[1]||(o+=i.width/4):o-=i.width/4:e[0]?e[1]||(o-=i.width/4):o+=i.width/4),t(this).css({marginLeft:o})),this},destroy:function(){var e=this,a=this.data(),i="end first flip last pressed released start turning turned zooming missing".split(" ");if("prevented"!=c("destroying",this)){for(a.destroying=!0,t.each(i,(function(t,a){e.unbind(a)})),this.parent().unbind("start",a.eventHandlers.start),t(document).unbind(x.move,a.eventHandlers.touchMove).unbind(x.up,a.eventHandlers.touchEnd);0!==a.totalPages;)this.turn("removePage",a.totalPages);return a.fparent&&a.fparent.remove(),a.shadow&&a.shadow.remove(),this.removeData(),a=null,this}},is:function(){return"object"==u(this.data().pages)},zoom:function(e){var a=this.data();if("number"==typeof e){if(.001>e||100<e)throw p(e+" is not a value for zoom");if("prevented"==c("zooming",this,[e,a.zoom]))return this;var i=this.turn("size"),o=this.turn("view"),r=1/a.zoom,n=Math.round(i.width*r*e);i=Math.round(i.height*r*e);for(a.zoom=e,t(this).turn("stop").turn("size",n,i),a.opts.autoCenter&&this.turn("center"),M._updateShadow.call(this),e=0;e<o.length;e++)o[e]&&a.pageZoom[o[e]]!=a.zoom&&(this.trigger("zoomed",[o[e],o,a.pageZoom[o[e]],a.zoom]),a.pageZoom[o[e]]=a.zoom);return this}return a.zoom},_pageSize:function(t,e){var a=this.data(),i={};if("single"==a.display)i.width=this.width(),i.height=this.height(),e&&(i.top=0,i.left=0,i.right="auto");else{var o=this.width()/2,r=this.height();if(a.pageObjs[t].hasClass("own-size")?(i.width=a.pageObjs[t].width(),i.height=a.pageObjs[t].height()):(i.width=o,i.height=r),e){var n=t%2;i.top=(r-i.height)/2,"ltr"==a.direction?(i[n?"right":"left"]=o-i.width,i[n?"left":"right"]="auto"):(i[n?"left":"right"]=o-i.width,i[n?"right":"left"]="auto")}}return i},_makeFlip:function(t){var e=this.data();if(!e.pages[t]&&e.pagePlace[t]==t){var a="single"==e.display,i=t%2;e.pages[t]=e.pageObjs[t].css(M._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),M._setPageLoc.call(this,t),e.pageZoom[t]=e.zoom}return e.pages[t]},_makeRange:function(){var t,e;if(!(1>this.data().totalPages))for(t=(e=this.turn("range"))[0];t<=e[1];t++)M._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=M._view.call(this,t),1>t||t>o.totalPages)throw p('"'+t+'" is not a valid page');return i[1]=i[1]||i[0],1<=i[0]&&i[1]<=o.totalPages?(t=Math.floor(2),o.totalPages-i[1]>i[0]?a=2*t-(e=Math.min(i[0]-1,t)):e=2*t-(a=Math.min(o.totalPages-i[1],t))):a=e=5,[Math.max(1,i[0]-e),Math.min(o.totalPages,i[1]+a)]},_necessPage:function(t){if(0===t)return!0;var e=this.turn("range");return this.data().pageObjs[t].hasClass("fixed")||t>=e[0]&&t<=e[1]},_removeFromDOM:function(){var t,e=this.data();for(t in e.pageWrap)d(t,e.pageWrap)&&!M._necessPage.call(this,t)&&M._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();P._moveFoldingPage.call(e.pages[t],!1),a.f&&a.f.fwrapper&&a.f.fwrapper.remove(),e.pages[t].removeData(),e.pages[t].remove(),delete e.pages[t]}e.pageObjs[t]&&e.pageObjs[t].remove(),e.pageWrap[t]&&(e.pageWrap[t].remove(),delete e.pageWrap[t]),M._removeMv.call(this,t),delete e.pagePlace[t],delete e.pageZoom[t]},removePage:function(t){var e=this.data();if("*"==t)for(;0!==e.totalPages;)this.turn("removePage",e.totalPages);else{if(1>t||t>e.totalPages)throw p("The page "+t+" doesn't exist");e.pageObjs[t]&&(this.turn("stop"),M._removePageFromDOM.call(this,t),delete e.pageObjs[t]),M._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,M._fitPage.call(this,e.totalPages)):(M._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,n=function(t){var a=t+e,n=a%2,d=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+d)),o.pagePlace[t]&&o.pageWrap[t]&&(o.pagePlace[a]=a,o.pageWrap[a]=o.pageObjs[a].hasClass("fixed")?o.pageWrap[t].attr("page",a):o.pageWrap[t].css(M._pageSize.call(i,a,!0)).attr("page",a),o.pages[t]&&(o.pages[a]=o.pages[t].flip("options",{page:a,next:r||n?a+1:a-1})),e&&(delete o.pages[t],delete o.pagePlace[t],delete o.pageZoom[t],delete o.pageObjs[t],delete o.pageWrap[t]))};if(0<e)for(a=o.totalPages;a>=t;a--)n(a);else for(a=t;a<=o.totalPages;a++)n(a)},display:function(e){var a=this.data(),i=a.display;if(void 0===e)return i;if(-1==t.inArray(e,z))throw p('"'+e+'" is not a value for display');switch(e){case"single":a.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),a.pageObjs[0]=t("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":a.pageObjs[0]&&(this.turn("stop").css({overflow:""}),a.pageObjs[0].remove(),delete a.pageObjs[0]),this.removeClass("shadow")}return a.display=e,i&&(e=this.turn("size"),M._movePages.call(this,1,0),this.turn("size",e.width,e.height).turn("update")),this},direction:function(e){var a=this.data();if(void 0===e)return a.direction;if(e=e.toLowerCase(),-1==t.inArray(e,k))throw p('"'+e+'" is not a value for direction');return"rtl"==e&&t(this).attr("dir","ltr").css({direction:"ltr"}),a.direction=e,a.done&&this.turn("size",t(this).width(),t(this).height()),this},animating:function(){return 0<this.data().pageMv.length},corner:function(){var t,e,a=this.data();for(e in a.pages)if(d(e,a.pages)&&(t=a.pages[e].flip("corner")))return t;return!1},data:function(){return this.data()},disable:function(e){var a,i=this.data(),o=this.turn("view");for(a in i.disabled=void 0===e||!0===e,i.pages)d(a,i.pages)&&i.pages[a].flip("disable",!!i.disabled||-1==t.inArray(parseInt(a,10),o));return this},disabled:function(t){return void 0===t?!0===this.data().disabled:this.turn("disable",t)},size:function(t,e){if(void 0===t||void 0===e)return{width:this.width(),height:this.height()};this.turn("stop");var a,i,o=this.data();for(a in i="double"==o.display?t/2:t,this.css({width:t,height:e}),o.pageObjs[0]&&o.pageObjs[0].css({width:i,height:e}),o.pageWrap)d(a,o.pageWrap)&&(i=M._pageSize.call(this,a,!0),o.pageObjs[a].css({width:i.width,height:i.height}),o.pageWrap[a].css(i),o.pages[a]&&o.pages[a].css({width:i.width,height:i.height}));return this.turn("resize"),this},resize:function(){var t,e=this.data();for(e.pages[0]&&(e.pageWrap[0].css({left:-this.width()}),e.pages[0].flip("resize",!0)),t=1;t<=e.totalPages;t++)e.pages[t]&&e.pages[t].flip("resize",!0);M._updateShadow.call(this),e.opts.autoCenter&&this.turn("center")},_removeMv:function(t){var e,a=this.data();for(e=0;e<a.pageMv.length;e++)if(a.pageMv[e]==t)return a.pageMv.splice(e,1),!0;return!1},_addMv:function(t){var e=this.data();M._removeMv.call(this,t),e.pageMv.push(t)},_view:function(t){var e=this.data();t=t||e.page;return"double"==e.display?t%2?[t-1,t]:[t,t+1]:[t]},view:function(t){var e=this.data();t=M._view.call(this,t);return"double"==e.display?[0<t[0]?t[0]:0,t[1]<=e.totalPages?t[1]:0]:[0<t[0]&&t[0]<=e.totalPages?t[0]:0]},stop:function(t,e){if(this.turn("animating")){var a,i,o,r=this.data();for(r.tpage&&(r.page=r.tpage,delete r.tpage),a=0;a<r.pageMv.length;a++)r.pageMv[a]&&r.pageMv[a]!==t&&(i=(o=r.pages[r.pageMv[a]]).data().f.opts,o.flip("hideFoldedPage",e),e||P._moveFoldingPage.call(o,!1),i.force&&(i.next=0==i.page%2?i.page-1:i.page+1,delete i.force))}return this.turn("update"),this},pages:function(t){var e=this.data();if(t){if(t<e.totalPages)for(var a=e.totalPages;a>t;a--)this.turn("removePage",a);return e.totalPages=t,M._fitPage.call(this,e.page),this}return e.totalPages},_missing:function(t){var e=this.data();if(!(1>e.totalPages)){var a=this.turn("range",t),i=[];for(t=a[0];t<=a[1];t++)e.pageObjs[t]||i.push(t);0<i.length&&this.trigger("missing",[i])}},_fitPage:function(t){var e=this.data(),a=this.turn("view",t);if(M._missing.call(this,t),e.pageObjs[t]){e.page=t,this.turn("stop");for(var i=0;i<a.length;i++)a[i]&&e.pageZoom[a[i]]!=e.zoom&&(this.trigger("zoomed",[a[i],a,e.pageZoom[a[i]],e.zoom]),e.pageZoom[a[i]]=e.zoom);M._removeFromDOM.call(this),M._makeRange.call(this),M._updateShadow.call(this),this.trigger("turned",[t,a]),this.turn("update"),e.opts.autoCenter&&this.turn("center")}},_turnPage:function(e){var a,i,o=this.data(),r=o.pagePlace[e],n=this.turn("view"),d=this.turn("view",e);if(o.page!=e){var s=o.page;if("prevented"==c("turning",this,[e,d]))return void(s==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,d)&&this.trigger("first"),-1!=t.inArray(o.totalPages,d)&&this.trigger("last")}"single"==o.display?(a=n[0],i=d[0]):n[1]&&e>n[1]?(a=n[1],i=d[0]):n[0]&&e<n[0]&&(a=n[0],i=d[1]),r=o.opts.turnCorners.split(","),d=(n=o.pages[a].data().f).opts,s=n.point,M._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,M._makeRange.call(this),o.tpage=i,d.next!=i&&(d.next=i,d.force=!0),this.turn("update"),n.point=s,"hard"==n.effect?"ltr"==o.direction?o.pages[a].flip("turnPage",e>a?"r":"l"):o.pages[a].flip("turnPage",e>a?"l":"r"):"ltr"==o.direction?o.pages[a].flip("turnPage",r[e>a?1:0]):o.pages[a].flip("turnPage",r[e>a?0:1]))},page:function(e){var a=this.data();if(void 0===e)return a.page;if(!a.disabled&&!a.destroying){if(0<(e=parseInt(e,10))&&e<=a.totalPages)return e!=a.page&&(a.done&&-1==t.inArray(e,this.turn("view"))?M._turnPage.call(this,e):M._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,M._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,M._view.call(this,this.data().page).shift()-1))},peel:function(t,e){var a=this.data(),i=this.turn("view");e=void 0===e||!0===e;return!1===t?this.turn("stop",null,e):"single"==a.display?a.pages[a.page].flip("peel",t,e):(i="ltr"==a.direction?-1!=t.indexOf("l")?i[0]:i[1]:-1!=t.indexOf("l")?i[1]:i[0],a.pages[i]&&a.pages[i].flip("peel",t,e)),this},_addMotionPage:function(){var e=t(this).data().f.opts,a=e.turn;a.data(),M._addMv.call(a,e.page)},_eventStart:function(t,e,a){var i=e.turn.data(),o=i.pageZoom[e.page];t.isDefaultPrevented()||(o&&o!=i.zoom&&(e.turn.trigger("zoomed",[e.page,e.turn.turn("view",e.page),o,i.zoom]),i.pageZoom[e.page]=i.zoom),"single"==i.display&&a&&("l"==a.charAt(1)&&"ltr"==i.direction||"r"==a.charAt(1)&&"rtl"==i.direction?(e.next=e.next<e.page?e.next:e.page-1,e.force=!0):e.next=e.next>e.page?e.next:e.page+1),M._addMotionPage.call(t.target)),M._updateShadow.call(e.turn)},_eventEnd:function(e,a,i){t(e.target).data();var o=(e=a.turn).data();i?((i=o.tpage||o.page)==a.next||i==a.page)&&(delete o.tpage,M._fitPage.call(e,i||a.next,!0)):(M._removeMv.call(e,a.page),M._updateShadow.call(e),e.turn("update"))},_eventPressed:function(e){var a=(e=t(e.target).data().f).opts.turn;return a.data().mouseAction=!0,a.turn("update"),e.time=(new Date).getTime()},_eventReleased:function(e,a){var i,o=(i=t(e.target)).data().f,r=o.opts.turn,n=r.data();i="single"==n.display?"br"==a.corner||"tr"==a.corner?a.x<i.width()/2:a.x>i.width()/2:0>a.x||a.x>i.width(),(200>(new Date).getTime()-o.time||i)&&(e.preventDefault(),M._turnPage.call(r,o.opts.next)),n.mouseAction=!1},_flip:function(e){e.stopPropagation(),(e=t(e.target).data().f.opts).turn.trigger("turn",[e.next]),e.turn.data().opts.autoCenter&&e.turn.turn("center",e.next)},_touchStart:function(){var t,e=this.data();for(t in e.pages)if(d(t,e.pages)&&!1===P._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&P._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),d=(e=this.turn("view"))[0]||e[1],s=t.length-1,l={pageZ:{},partZ:{},pageV:{}},c=function(t){(t=r.turn("view",t))[0]&&(l.pageV[t[0]]=!0),t[1]&&(l.pageV[t[1]]=!0)};for(e=0;e<=s;e++)a=t[e],i=n.pages[a].data().f.opts.next,o=n.pagePlace[a],c(a),c(i),a=n.pagePlace[i]==i?i:a,l.pageZ[a]=n.totalPages-Math.abs(d-a),l.partZ[o]=2*n.totalPages-s+e;return l},update:function(){var e,a=this.data();if(this.turn("animating")&&0!==a.pageMv[0]){var i,o=this.turn("calculateZ",a.pageMv),r=this.turn("corner"),n=this.turn("view"),s=this.turn("view",a.tpage);for(e in a.pageWrap)d(e,a.pageWrap)&&(i=a.pageObjs[e].hasClass("fixed"),a.pageWrap[e].css({display:o.pageV[e]||i?"":"none",zIndex:(a.pageObjs[e].hasClass("hard")?o.partZ[e]:o.pageZ[e])||(i?-1:0)}),i=a.pages[e])&&(i.flip("z",o.partZ[e]||null),o.pageV[e]&&i.flip("resize"),a.tpage?i.flip("hover",!1).flip("disable",-1==t.inArray(parseInt(e,10),a.pageMv)&&e!=s[0]&&e!=s[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)d(e,a.pageWrap)&&(o=M._setPageLoc.call(this,e),a.pages[e]&&a.pages[e].flip("disable",a.disabled||1!=o).flip("hover",!0).flip("z",null));return this},_updateShadow:function(){var e,i,o=this.data(),r=this.width(),n=this.height(),d="single"==o.display?r:r/2;e=this.turn("view"),o.shadow||(o.shadow=t("<div />",{class:"shadow",css:a(0,0,0).css}).appendTo(this));for(var s=0;s<o.pageMv.length&&e[0]&&e[1];s++)e=this.turn("view",o.pages[o.pageMv[s]].data().f.opts.next),i=this.turn("view",o.pageMv[s]),e[0]=e[0]&&i[0],e[1]=e[1]&&i[1];switch(e[0]?e[1]?3:"ltr"==o.direction?2:1:"ltr"==o.direction?1:2){case 1:o.shadow.css({width:d,height:n,top:0,left:d});break;case 2:o.shadow.css({width:d,height:n,top:0,left:0});break;case 3:o.shadow.css({width:r,height:n,top:0,left:0})}},_setPageLoc:function(t){var e=this.data(),a=this.turn("view"),i=0;if(t==a[0]||t==a[1]?i=1:("single"==e.display&&t==a[0]+1||"double"==e.display&&t==a[0]-2||t==a[1]+2)&&(i=2),!this.turn("animating"))switch(i){case 1:e.pageWrap[t].css({zIndex:e.totalPages,display:""});break;case 2:e.pageWrap[t].css({zIndex:e.totalPages-1,display:""});break;case 0:e.pageWrap[t].css({zIndex:0,display:e.pageObjs[t].hasClass("fixed")?"":"none"})}return i},options:function(e){if(void 0===e)return this.data().opts;var a=this.data();if(t.extend(a.opts,e),e.pages&&this.turn("pages",e.pages),e.page&&this.turn("page",e.page),e.display&&this.turn("display",e.display),e.direction&&this.turn("direction",e.direction),e.width&&e.height&&this.turn("size",e.width,e.height),e.when)for(var i in e.when)d(i,e.when)&&this.unbind(i).bind(i,e.when[i]);return this},version:function(){return"4.1.0"}},P={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),P._addPageWrapper.call(this),this},setData:function(e){var a=this.data();return a.f=t.extend(a.f,e),this},options:function(e){var a=this.data().f;return e?(P.setData.call(this,{opts:t.extend({},a.opts||C,e)}),this):a.opts},z:function(t){var e=this.data().f;return e.opts["z-index"]=t,e.fwrapper&&e.fwrapper.css({zIndex:t||parseInt(e.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var t=this.data().f,e=t.opts.page,a=t.opts.turn.data(),i=e%2;return"hard"==t.effect?"ltr"==a.direction?[i?"r":"l"]:[i?"l":"r"]:"single"==a.display?1==e?"ltr"==a.direction?y.forward:y.backward:e==a.totalPages?"ltr"==a.direction?y.backward:y.forward:y.all:"ltr"==a.direction?y[i?"forward":"backward"]:y[i?"backward":"forward"]},_cornerActivated:function(e){var a=this.data().f,i=this.width(),o=this.height(),r=(e={x:e.x,y:e.y,corner:""},a.opts.cornerSize);if(0>=e.x||0>=e.y||e.x>=i||e.y>=o)return!1;var n=P._cAllowed.call(this);switch(a.effect){case"hard":if(e.x>i-r)e.corner="r";else{if(!(e.x<r))return!1;e.corner="l"}break;case"sheet":if(e.y<r)e.corner+="t";else{if(!(e.y>=o-r))return!1;e.corner+="b"}if(e.x<=r)e.corner+="l";else{if(!(e.x>=i-r))return!1;e.corner+="r"}}return!(!e.corner||-1==t.inArray(e.corner,n))&&e},_isIArea:function(t){var e=this.data().f.parent.offset();t=w&&t.originalEvent?t.originalEvent.touches[0]:t;return P._cornerActivated.call(this,{x:t.pageX-e.left,y:t.pageY-e.top})},_c:function(t,e){switch(e=e||0,t){case"tl":return o(e,e);case"tr":return o(this.width()-e,e);case"bl":return o(e,this.height()-e);case"br":return o(this.width()-e,this.height()-e);case"l":return o(e,0);case"r":return o(this.width()-e,0)}},_c2:function(t){switch(t){case"tl":return o(2*this.width(),0);case"tr":return o(-this.width(),0);case"bl":return o(2*this.width(),this.height());case"br":return o(-this.width(),this.height());case"l":return o(2*this.width(),0);case"r":return o(-this.width(),0)}},_foldingPage:function(){var t=this.data().f;if(t){var e=t.opts;if(e.turn)return"single"==(t=e.turn.data()).display?1<e.next||1<e.page?t.pageObjs[0]:null:t.pageObjs[e.next]}},_backGradient:function(){var e=this.data().f,i=e.opts.turn.data();return(i=i.opts.gradients&&("single"==i.display||2!=e.opts.page&&e.opts.page!=i.totalPages-1))&&!e.bshadow&&(e.bshadow=t("<div/>",a(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(e.parent)),i},type:function(){return this.data().f.effect},resize:function(t){var e=this.data().f,a=e.opts.turn.data(),i=this.width(),o=this.height();switch(e.effect){case"hard":t&&(e.wrapper.css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&(e.ashadow.css({width:i,height:o}),e.bshadow.css({width:i,height:o})));break;case"sheet":t&&(t=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(o,2))),e.wrapper.css({width:t,height:t}),e.fwrapper.css({width:t,height:t}).children(":first-child").css({width:i,height:o}),e.fpage.css({width:i,height:o}),a.opts.gradients&&e.ashadow.css({width:i,height:o}),P._backGradient.call(this)&&e.bshadow.css({width:i,height:o})),e.parent.is(":visible")&&(a=m(e.parent[0]),e.fwrapper.css({top:a.top,left:a.left}),a=m(e.opts.turn[0]),e.fparent.css({top:-a.top,left:-a.left})),this.flip("z",e.opts["z-index"])}},_addPageWrapper:function(){var e=this.data().f,i=e.opts.turn.data(),o=this.parent();if(e.parent=o,!e.wrapper)switch(e.effect){case"hard":(r={})[v+"transform-style"]="preserve-3d",r[v+"backface-visibility"]="hidden",e.wrapper=t("<div/>",a(0,0,2)).css(r).appendTo(o).prepend(this),e.fpage=t("<div/>",a(0,0,1)).css(r).appendTo(o),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,0)).hide().appendTo(o),e.bshadow=t("<div/>",a(0,0,0)));break;case"sheet":var r=this.width();this.height();e.fparent=e.opts.turn.data().fparent,e.fparent||((r=t("<div/>",{css:{"pointer-events":"none"}}).hide()).data().flips=0,r.css(a(0,0,"auto","visible").css).appendTo(e.opts.turn),e.opts.turn.data().fparent=r,e.fparent=r),this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),e.wrapper=t("<div/>",a(0,0,this.css("z-index"))).appendTo(o).prepend(this),e.fwrapper=t("<div/>",a(o.offset().top,o.offset().left)).hide().appendTo(e.fparent),e.fpage=t("<div/>",a(0,0,0,"visible")).css({cursor:"default"}).appendTo(e.fwrapper),i.opts.gradients&&(e.ashadow=t("<div/>",a(0,0,1)).appendTo(e.fpage)),P.setData.call(this,e)}P.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=P._c.call(this,t.corner),d=this.width(),s=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*d):Math.max(Math.min(t.x,d),-d);var c,p,m,u,h,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},z=i.x?(i.x-t.x)/d:t.x/d,k=90*z,_=90>k;switch(t.corner){case"l":u="0% 50%",h="100% 50%",_?(c=0,p=0<e.opts.next-1,m=1):(c="100%",p=e.opts.page+1<w,m=0);break;case"r":u="100% 50%",h="0% 50%",k=-k,d=-d,_?(c=0,p=e.opts.next+1<w,m=0):(c="-100%",p=1!=e.opts.page,m=1)}y[v+"perspective-origin"]=h,e.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",h),e.fpage.transform("translateX("+d+"px) rotateY("+(180+k)+"deg)",u),e.parent.css(y),_?(z=1-z,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(z-=1,e.wrapper.css({zIndex:x}),e.fpage.css({zIndex:x+1})),a.opts.gradients&&(p?e.ashadow.css({display:"",left:c,backgroundColor:"rgba(0,0,0,"+.5*z+")"}).transform("rotateY(0deg)"):e.ashadow.hide(),e.bshadow.css({opacity:1-z}),_?e.bshadow.parent()[0]!=e.wrapper[0]&&e.bshadow.appendTo(e.wrapper):e.bshadow.parent()[0]!=e.fpage[0]&&e.bshadow.appendTo(e.fpage),l(e.bshadow,o(100*m,0),o(100*(1-m),0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var C,M,S,L,N,E,I,A=this,T=0,B=o(0,0),F=o(0,0),R=o(0,0),q=P._foldingPage.call(this),j=a.opts.acceleration,D=e.wrapper.height(),O="t"==t.corner.substr(0,1),$="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),n=o(0,0);r.x=i.x?i.x-t.x:t.x,r.y=g?i.y?i.y-t.y:t.y:0,n.x=$?d-r.x/2:t.x+r.x/2,n.y=r.y/2;var l=b-Math.atan2(r.y,r.x),c=l-Math.atan2(n.y,n.x);c=Math.max(0,Math.sin(c)*Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2)));return T=l/f*180,R=o(c*Math.sin(l),c*Math.cos(l)),l>b&&(R.x+=Math.abs(R.y*r.y/r.x),R.y=0,Math.round(R.x*Math.tan(f-l))<s)?(t.y=Math.sqrt(Math.pow(s,2)+2*n.x*r.x),O&&(t.y=s-t.y),e()):(l>b&&(r=f-l,n=D-s/Math.sin(r),B=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),$&&(B.x=-B.x),O&&(B.y=-B.y)),C=Math.round(R.y/Math.tan(l)+R.x),n=(r=d-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round($?r-n:C+n),Math.round(O?c:s-c)),a.opts.gradients&&(N=r*Math.sin(l),r=P._c2.call(A,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/d,I=Math.sin(b*(1<r?2-r:r)),E=Math.min(r,1),L=100<N?(N-100)/N:0,M=o(N*Math.sin(l)/d*100,N*Math.cos(l)/s*100),P._backGradient.call(A)&&(S=o(1.2*N*Math.sin(l)/d*100,1.2*N*Math.cos(l)/s*100),$||(S.x=100-S.x),O||(S.y=100-S.y))),R.x=Math.round(R.x),R.y=Math.round(R.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(d-D)*c[0]/100,h=(s-D)*c[1]/100,g=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?$?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,j),v),e.fpage.css(i).transform(n(p)+r(t.x+F.x-B.x-d*c[0]/100,t.y+F.y-B.y-s*c[1]/100,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+B.x+u,-t.y+B.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+")",q.css(m),l(e.ashadow,o($?100:0,O?0:100),o(M.x,M.y),[[L,"rgba(0,0,0,0)"],[.8*(1-L)+L,"rgba(0,0,0,"+.2*E+")"],[1,"rgba(255,255,255,"+.2*E+")"]],3),P._backGradient.call(A)&&l(e.bshadow,o($?0:100,O?0:100),o(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*E+")"],[1,"rgba(0,0,0,0)"]],3))},t.corner){case"tl":t.x=Math.max(t.x,1),V(),c(R,[1,0,0,1],[100,0],T);break;case"tr":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,R.y),[0,0,0,1],[0,0],-T);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(R.x,-R.y),[1,1,0,0],[100,100],-T);break;case"br":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,-R.y),[0,1,1,0],[0,100],T)}}e.point=t},_moveFoldingPage:function(t){var e=this.data().f;if(e){var a=e.opts.turn,i=a.data(),o=i.pagePlace;t?(o[i=e.opts.next]!=e.opts.page&&(e.folding&&P._moveFoldingPage.call(this,!1),P._foldingPage.call(this).appendTo(e.fpage),o[i]=e.opts.page,e.folding=i),a.turn("update")):e.folding&&(i.pages[e.folding]?(a=i.pages[e.folding].data().f,i.pageObjs[e.folding].appendTo(a.wrapper)):i.pageWrap[e.folding]&&i.pageObjs[e.folding].appendTo(i.pageWrap[e.folding]),e.folding in o&&(o[e.folding]=e.folding),delete e.folding)}},_showFoldedPage:function(t,e){var a=P._foldingPage.call(this),i=(n=this.data()).f,o=i.visible;if(a){if(!(o&&i.point&&i.point.corner==t.corner||(a="hover"==i.status||"peel"==i.status||i.opts.turn.data().mouseAction?t.corner:null,o=!1,"prevented"!=c("start",this,[i.opts,a]))))return!1;if(e){var r=this,n=i.point&&i.point.corner==t.corner?i.point:P._c.call(this,t.corner,1);this.animatef({from:[n.x,n.y],to:[t.x,t.y],duration:500,frame:function(e){t.x=Math.round(e[0]),t.y=Math.round(e[1]),P._fold.call(r,t)}})}else P._fold.call(this,t),n.effect&&!n.effect.turning&&this.animatef(!1);if(!o)switch(i.effect){case"hard":i.visible=!0,P._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,P._moveFoldingPage.call(this,!0),i.fwrapper.show(),i.bshadow&&i.bshadow.show()}return!0}return!1},hide:function(){var t=this.data().f,e=t.opts.turn.data(),a=P._foldingPage.call(this);switch(t.effect){case"hard":e.opts.gradients&&(t.bshadowLoc=0,t.bshadow.remove(),t.ashadow.hide()),t.wrapper.transform(""),t.fpage.hide();break;case"sheet":0==--t.fparent.data().flips&&t.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),t.wrapper.transform(""),t.fwrapper.hide(),t.bshadow&&t.bshadow.hide(),a.transform("")}return t.visible=!1,this},hideFoldedPage:function(t){var e=this.data().f;if(e.point){var a=this,r=e.point,n=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var d=P._c.call(this,r.corner),s=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-d.y)/2:Math.max(0,r.y-d.y)/2,o(r.x,r.y+t)),l=o(d.x,d.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,s,l,d,t),r.x=t.x,r.y=t.y,P._fold.call(a,r)},complete:n,duration:800,hiding:!0})}else this.animatef(!1),n()}},turnPage:function(t){var e=this,a=this.data().f,o=a.opts.turn.data(),r=(t={corner:a.corner?a.corner.corner:t||P._cAllowed.call(this)[0]},a.point||P._c.call(this,t.corner,a.opts.turn?o.opts.elevation:0)),n=P._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(a){a=i(r,r,n,n,a),t.x=a.x,t.y=a.y,P._showFoldedPage.call(e,t)},complete:function(){e.trigger("end",[a.opts,!0])},duration:o.opts.duration,turning:!0}),a.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(t){var e=this.data().f,a=e.opts.turn;if(!e.corner&&!e.disabled&&!this.flip("isTurning")&&e.opts.page==a.data().pagePlace[e.opts.page]){if(e.corner=P._isIArea.call(this,t),e.corner&&P._foldingPage.call(this))return this.trigger("pressed",[e.point]),P._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled)if(t=w?t.originalEvent.touches:[t],e.corner){var a=e.parent.offset();e.corner.x=t[0].pageX-a.left,e.corner.y=t[0].pageY-a.top,P._showFoldedPage.call(this,e.corner)}else e.hover&&!this.data().effect&&this.is(":visible")&&((t=P._isIArea.call(this,t[0]))?("sheet"==e.effect&&2==t.corner.length||"hard"==e.effect)&&(e.status="hover",e=P._c.call(this,t.corner,e.opts.cornerSize/2),t.x=e.x,t.y=e.y,P._showFoldedPage.call(this,t,!0)):"hover"==e.status&&(e.status="",P.hideFoldedPage.call(this,!0)))},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&"prevented"!=c("released",this,[t.point||e])&&P.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return P.setData.call(this,{disabled:t}),this},hover:function(t){return P.setData.call(this,{hover:t}),this},peel:function(e,a){var i=this.data().f;if(e){if(-1==t.inArray(e,y.all))throw p("Corner "+e+" is not permitted");if(-1!=t.inArray(e,P._cAllowed.call(this))){var o=P._c.call(this,e,i.opts.cornerSize/2);i.status="peel",P._showFoldedPage.call(this,{corner:e,x:o.x,y:o.y},a)}}else i.status="",P.hideFoldedPage.call(this,a);return this}};window.requestAnim=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},t.extend(t.fn,{flip:function(){return e(t(this[0]),P,arguments)},turn:function(){return e(t(this[0]),M,arguments)},transform:function(t,e){var a={};return e&&(a[v+"transform-origin"]=e),a[v+"transform"]=t,this.css(a)},animatef:function(e){var a=this.data();if(a.effect&&a.effect.stop(),e){e.to.length||(e.to=[e.to]),e.from.length||(e.from=[e.from]);for(var i=[],o=e.to.length,r=!0,n=this,d=(new Date).getTime(),s=0;s<o;s++)i.push(e.to[s]-e.from[s]);a.effect=t.extend({stop:function(){r=!1},easing:function(t,e,a,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+a}},e),this.data(a),function t(){if(a.effect&&r){for(var s=[],l=Math.min(e.duration,(new Date).getTime()-d),c=0;c<o;c++)s.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?s[0]:s),l==e.duration?(delete a.effect,n.data(a),e.complete&&e.complete()):window.requestAnim(t)}}()}else delete a.effect}}),t.isTouch=w,t.mouseEvents=x,t.cssPrefix=s,t.cssTransitionEnd=function(){var t,e=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(void 0!==e.style[t])return a[t]},t.findPos=m}(s),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return n&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return n&&e?" scale3d("+t+", "+t+", 1) ":" scale("+t+") "}function o(t,e){return{x:t,y:e}}function r(t,e){return function(){return t.apply(e,arguments)}}var n,d={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},s={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},d,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(n="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,"function"!=typeof a.max){var c=a.max;a.max=function(){return c}}for(var p in l.zoom={opts:a,axis:o(0,0),scrollPos:o(0,0),eventQueue:[],mouseupEvent:function(){return s._eMouseUp.apply(i,arguments)},eventTouchStart:r(s._eTouchStart,i),eventTouchMove:r(s._eTouchMove,i),eventTouchEnd:r(s._eTouchEnd,i),flipbookEvents:{zooming:r(s._eZoom,i),pressed:r(s._ePressed,i),released:r(s._eReleased,i),start:r(s._eStart,i),turning:r(s._eTurning,i),turned:r(s._eTurned,i),destroying:r(s._eDestroying,i)}},a.when)Object.prototype.hasOwnProperty.call(a.when,p)&&this.bind("zoom."+p,a.when[p]);for(p in l.zoom.flipbookEvents)Object.prototype.hasOwnProperty.call(l.zoom.flipbookEvents,p)&&a.flipbook.bind(p,l.zoom.flipbookEvents[p]);this.css({position:"relative",overflow:"hidden"}),t.isTouch?(a.flipbook.bind("touchstart",l.zoom.eventTouchStart).bind("touchmove",l.zoom.eventTouchMove).bind("touchend",l.zoom.eventTouchEnd),this.bind("touchstart",s._tap)):this.mousedown(s._mousedown).click(s._tap)},_tap:function(e){var a=t(this),i=a.data().zoom;!i.draggingCorner&&!i.dragging&&function t(e,a){return e[0]!=a[0]&&(!!e.attr("page")||!!e.parent()[0]&&t(e.parent(),a))}(t(e.target),a)&&(s._addEvent.call(a,"tap",e),(e=s._eventSeq.call(a))&&a.trigger(e))},_addEvent:function(t,e){var a=this.data().zoom,i=(new Date).getTime();a.eventQueue.push({name:t,timestamp:i,event:e}),10<a.eventQueue.length&&a.eventQueue.splice(0,1)},_eventSeq:function(){var e=this.data().zoom.eventQueue,a=e.length-1;return 0<a&&"tap"==e[a].name&&"tap"==e[a-1].name&&e[a].event.pageX==e[a-1].event.pageX&&e[a].event.pageY==e[a-1].event.pageY&&200>e[a].timestamp-e[a-1].timestamp&&50<e[a].timestamp-e[a-1].timestamp?t.extend(e[a].event,{type:"zoom.doubleTap"}):"tap"==e[a].name?t.extend(e[a].event,{type:"zoom.tap"}):void 0},_prepareZoom:function(){var e,a=0,i=this.data().zoom,r=1/this.zoom("value"),n=(e=i.opts.flipbook).turn("direction"),d=e.data(),s=e.offset(),l=this.offset(),c={height:e.height()},p=e.turn("view");if("double"==e.turn("display")&&e.data().opts.autoCenter?p[0]?p[1]?(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?s.left-l.left:s.left-l.left+c.width,s.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?s.left-l.left+c.width:s.left-l.left,s.top-l.top)):(c.width=e.width(),e=o(s.left-l.left,s.top-l.top)),i.zoomer||(i.zoomer=t("<div />",{class:"zoomer",css:{overflow:"hidden",position:"absolute",zIndex:"1000000"}}).mousedown((function(){return!1})).appendTo(this)),i.zoomer.css({top:e.y,left:e.x,width:c.width,height:c.height}),(n=p.join(","))!=i.zoomerView)for(i.zoomerView=n,i.zoomer.find("*").remove(),n=0;n<p.length;n++)if(p[n]){l=d.pageObjs[p[n]].offset();var m=t(d.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-s.top)*r,left:(l.left-s.left-a)*r}).appendTo(i.zoomer)}return{pos:e,size:c}},value:function(){return this.data().zoom.opts.flipbook.turn("zoom")},zoomIn:function(e){var r=this,n=this.data().zoom,d=n.opts.flipbook,l=n.opts.max();d.offset();var c=this.offset();if(n.zoomIn)return this;d.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=s._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=d.data().opts.autoCenter;n.scale=l,d.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>f.width||e.y>f.height)&&(e.x=u.x,e.y=u.y);var v=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),f=(e=o(f.size.width*l>this.width()?e.x-v.x:0,f.size.height*l>this.height()?e.y-v.y:0),v=o(Math.abs(f.size.width*l-this.width()),Math.abs(f.size.height*l-this.height())),o(Math.min(0,f.size.width*l-this.width()),Math.min(0,f.size.height*l-this.height()))),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y);b.y>v.y?e.y=b.y-v.y+e.y:b.y<f.y&&(e.y=b.y-f.y+e.y),b.x>v.x?e.x=b.x-v.x+e.x:b.x<f.x&&(e.x=b.x-f.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+n.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),n.zoomIn=!0,n.flipPosition=o(d.css("left"),d.css("top")),d.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=d.offset();n.axis=o(e.left-c.left,e.top-c.top),g&&"double"==d.turn("display")&&("ltr"==d.turn("direction")&&!d.turn("view")[0]||"rtl"==d.turn("direction")&&!d.turn("view")[1])&&(n.axis.x+=d.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,s._eMouseDown),r.bind(t.mouseEvents.move,s._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",s._eMouseWheel),setTimeout((function(){n.zoomer.hide(),n.zoomer.remove(),n.zoomer=null,n.zoomerView=null}),50)};return n.zoomer.css(m).show(),h?n.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,n.opts.duration),n.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,n=this,d=this.data().zoom,l=d.opts.flipbook,c=1/d.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:d.opts.duration,d.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;d.zoomIn=!1,d.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,s._eMouseDown),n.unbind(t.mouseEvents.move,s._eMouseMove),t(document).unbind(t.mouseEvents.up,d.mouseupEvent),n.unbind("mousewheel",s._eMouseWheel),(u={})[p+"transition"]=p+"transform "+d.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:d.flipPosition.y,left:d.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var g=l.data().opts.autoCenter;g&&"double"==l.turn("display")&&(l.turn("view")[0]?l.turn("view")[1]||(u.x="ltr"==l.turn("direction")?u.x+h.width()/4:u.x-h.width()/4):u.x="ltr"==l.turn("direction")?u.x-h.width()/4:u.x+h.width()/4);var v=t.findPos(l[0]);r=o(-l.width()/2-v.left+h.width()/2+u.x+r.left,-l.height()/2-v.top+h.height()/2+u.y+r.top);var f=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:d.flipPosition.y,left:d.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:d.flipPosition.y,left:d.flipPosition.x,position:"relative"}),g&&l.turn("center"),n.trigger("zoom.zoomOut")};return 0===e?f():(m?l.bind(m,(function(){t(this).unbind(m),f()})):setTimeout(f,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var d=this.data().zoom,s=d.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",s.css(p),s.transform(a(-d.axis.x-e.x,-d.axis.y-e.y,!0))}else s.css({top:-d.axis.y-e.y,left:-d.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(s.height()-this.height())/2)),s=o(l>this.width()?l-this.width():(l-this.width())/2,s.height()>this.height()?s.height()-this.height():(s.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>s.y&&(e.y=s.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>s.x&&(e.x=s.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}d.scrollPos=o(e.x,e.y)},resize:function(){var t=this.data().zoom,e=t.opts.flipbook;if(1<this.zoom("value")){var a=e.offset(),i=this.offset();t.axis=o(a.left-i.left+(t.axis.x+t.scrollPos.x),a.top-i.top+(t.axis.y+t.scrollPos.y)),"double"==e.turn("display")&&"ltr"==e.turn("direction")&&!e.turn("view")[0]&&(t.axis.x+=e.width()/2),this.zoom("scroll",t.scrollPos)}},_eZoom:function(){for(var t=this.data().zoom,e=t.opts.flipbook,a=e.turn("view"),i=0;i<a.length;i++)a[i]&&this.trigger("zoom.resize",[t.scale,a[i],e.data().pageObjs[a[i]]])},_eStart:function(t){1!=this.zoom("value")&&t.preventDefault()},_eTurning:function(t,e,a){var i=this,o=(t=this.zoom("value"),this.data().zoom);e=o.opts.flipbook;if(o.page=e.turn("page"),1!=t){for(o=0;o<a.length;o++)a[o]&&this.trigger("zoom.resize",[t,a[o],e.data().pageObjs[a[o]]]);setTimeout((function(){i.zoom("resize")}),0)}},_eTurned:function(t,e){if(1!=this.zoom("value")){var a=this.data().zoom,i=a.opts.flipbook;e>a.page?this.zoom("scroll",o(0,a.scrollPos.y),!1,!0):e<a.page&&this.zoom("scroll",o(i.width(),a.scrollPos.y),!1,!0)}},_ePressed:function(){t(this).data().zoom.draggingCorner=!0},_eReleased:function(){var e=t(this).data().zoom;setTimeout((function(){e.draggingCorner=!1}),1)},_eMouseDown:function(e){return t(this).data().zoom.draggingCur=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY),!1},_eMouseMove:function(e){var a=t(this).data().zoom;if(a.draggingCur){a.dragging=!0;e=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY);var i=o(e.x-a.draggingCur.x,e.y-a.draggingCur.y);return t(this).zoom("scroll",o(a.scrollPos.x-i.x,a.scrollPos.y-i.y),!0),a.draggingCur=e,!1}},_eMouseUp:function(){var e=t(this).data().zoom;e.dragging&&t(this).zoom("scroll",e.scrollPos),e.draggingCur=null,setTimeout((function(){e.dragging=!1}),1)},_eMouseWheel:function(e,a,i,r){i=o((e=t(this).data().zoom).scrollPos.x+10*i,e.scrollPos.y-10*r),t(this).zoom("scroll",i,!1,!0)},_eTouchStart:function(e){var a=t(this).data().zoom;e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch={},a.touch.initial=e,a.touch.last=e,a.touch.timestamp=(new Date).getTime(),a.touch.speed=o(0,0)},_eTouchMove:function(e){var a=t(this).data().zoom,i=t(this).zoom("value"),r=a.opts.flipbook,n=(new Date).getTime();e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch&&1==i&&!r.data().mouseAction&&(a.touch.motion=o(e.x-a.touch.last.x,e.y-a.touch.last.y),a.touch.speed.x=0===a.touch.speed.x?a.touch.motion.x/(n-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(n-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=n)},_eTouchEnd:function(){var e=t(this).data().zoom;if(e.touch&&1==t(this).zoom("value")){var a=Math.abs(e.touch.initial.y-e.touch.last.y);50>a&&(-1>e.touch.speed.x||-100>e.touch.last.x-e.touch.initial.x)?this.trigger("zoom.swipeLeft"):50>a&&(1<e.touch.speed.x||100<e.touch.last.x-e.touch.initial.x)&&this.trigger("zoom.swipeRight")}},_eDestroying:function(){var e=this,a=this.data().zoom,i=a.opts.flipbook;for(var o in this.zoom("zoomOut",0),t.each("tap doubleTap resize zoomIn zoomOut swipeLeft swipeRight".split(" "),(function(t,a){e.unbind("zoom."+a)})),a.flipbookEvents)Object.prototype.hasOwnProperty.call(a.flipbookEvents,o)&&i.unbind(o,a.flipbookEvents[o]);i.unbind("touchstart",a.eventTouchStart).unbind("touchmove",a.eventTouchMove).unbind("touchend",a.eventTouchEnd),this.unbind("touchstart",s._tap).unbind("click",s._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==u(a[0]))return s.init.apply(t(this[0]),a);if(s[a[0]])return s[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(s);var yt,zt=s,kt=require("axios"),_t=b({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flipbook-container"},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[a("div",{staticClass:"preview-desktop",class:t.isLoading?"invisible":"visible"},[a("div",{staticClass:"flipbook-lib",class:[t.formato],attrs:{id:"flipbook"}})])]),t._v(" "),t.controls?a("div",{staticClass:"controls"},[a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheLeft()}}},[a("span",{staticClass:"icon icon-chevron-left size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M20.0847 20.7019L15.3828 16L20.0847 11.298C20.8651 10.5177 20.8651 9.25557 20.0847 8.47522C19.3044 7.69487 18.0423 7.69487 17.2619 8.47522L11.1419 14.5952C10.3616 15.3756 10.3616 16.6377 11.1419 17.418L17.2619 23.538C18.0423 24.3184 19.3044 24.3184 20.0848 23.5381L20.0908 23.5319C20.8421 22.7608 20.8726 21.4898 20.0847 20.7019Z"}})])])]),t._v(" "),a("div",{staticClass:"info-space"},[a("div",{staticClass:"current-pages"},[a("div",{staticClass:"list",style:{left:"-"+t.numberPositions+"px"}},t._l(t.pages,(function(e,i){return a("span",{key:i},[t._v(t._s(i+1))])})),0)]),t._v(" "),a("div",{staticClass:"info-pages"},[t._v(t._s(t.pages)+" "+t._s(t.lang.pages))])]),t._v(" "),a("Button",{staticClass:"arrow",attrs:{kind:"ghost",size:"md",width:"circle",disabled:!1,inverted:!1},on:{click:function(e){return t.toTheRight()}}},[a("span",{staticClass:"icon icon-chevron-right size-lg svg-color",attrs:{"data-v-98f27cc4":"","data-v-c614f43e":""}},[a("svg",{attrs:{fill:"#12d3db",stroke:"transparent",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.9153 8.47532C11.135 9.25567 11.135 10.5178 11.9153 11.2981L16.6173 16.0001L11.9153 20.702C11.135 21.4823 11.135 22.7444 11.9153 23.5248C12.6957 24.3051 13.9578 24.3051 14.7381 23.5248L20.8582 17.4048C21.6385 16.6244 21.6385 15.3623 20.8582 14.582L14.7381 8.46198C13.9668 7.69064 12.6913 7.69931 11.9153 8.47532Z"}})])])])],1):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-6d506cd1_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.flipbook-viewport{margin-top:30px;width:100%}.flipbook-viewport .container-book{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page{-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);-moz-box-shadow:0 0 20px rgba(0,0,0,.2);-ms-box-shadow:0 0 20px rgba(0,0,0,.2);-o-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}#flipbook-viewport .page img{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.flipbook-viewport .shadow{-webkit-transition:-webkit-box-shadow .5s;-moz-transition:-moz-box-shadow .5s;-o-transition:-webkit-box-shadow .5s;-ms-transition:-ms-box-shadow .5s;-webkit-box-shadow:0 0 20px #ccc;-moz-box-shadow:0 0 20px #ccc;-o-box-shadow:0 0 20px #ccc;-ms-box-shadow:0 0 20px #ccc;box-shadow:0 0 20px #ccc}.even{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.odd{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.even:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to left,#000,transparent 7%);opacity:.15}.odd:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to right,#000,transparent 7%);opacity:.15}#flipbook .page-wrapper{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img{width:100%;height:calc(75vh - 50px)}#flipbook img.loading-blur{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img{height:100%}#flipbook.square img{width:100%;height:calc(55vh - 50px)}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}',map:void 0,media:void 0}),t("data-v-6d506cd1_1",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-6d506cd1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6d506cd1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6d506cd1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6d506cd1]{font-size:14px}}@media (min-width:1024px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6d506cd1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6d506cd1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6d506cd1]{font-size:1.56vw}}html[data-v-6d506cd1]{box-sizing:border-box}*[data-v-6d506cd1],[data-v-6d506cd1]::after,[data-v-6d506cd1]::before{box-sizing:border-box}[data-v-6d506cd1] .arrow svg{width:100%!important;height:100%!important}.zoom-in #flipbook img[data-v-6d506cd1]{height:100%!important}.preview-desktop[data-v-6d506cd1]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-6d506cd1]{position:absolute;top:35%;left:0;right:0;bottom:0;margin-bottom:auto;margin-top:auto;z-index:9999;text-align:center;font-family:Roboto}.loading-box #loading[data-v-6d506cd1]{display:inline-block;border:8px solid #f3f3f3;border-top:8px solid #42cda1;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-6d506cd1]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-6d506cd1]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-6d506cd1]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-6d506cd1]{transition:all .7s ease-in-out}.flipbook-container[data-v-6d506cd1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .3s;z-index:2;min-height:210px;min-height:210px}.flipbook-container.zoom-in[data-v-6d506cd1]{height:100vh}@media (max-width:479px){.flipbook-container[data-v-6d506cd1]{display:none}}.flipbook-container .flipbook-lib[data-v-6d506cd1]{z-index:50}.flipbook-container .flipbook-lib .page.odd[data-v-6d506cd1]:not(.p1)::before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:20px 0 20px -10px rgba(0,0,0,.3) inset;z-index:4}.flipbook-container .flipbook-lib .page.even[data-v-6d506cd1]::before{position:absolute;display:block;content:"";height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.5) inset}.flipbook-container .flipbook-lib img[data-v-6d506cd1]{height:100%!important}.controls[data-v-6d506cd1]{margin:0 auto;display:block;display:inline-block;margin-top:20px;position:relative;z-index:2}.controls button[data-v-6d506cd1]{display:inline-block!important;background:#fff;box-shadow:4px 8px 24px rgba(175,162,186,.24);padding:.380952381rem!important;border-radius:50%;text-align:center;color:#afa2ba;border:none;width:auto!important;height:auto!important;cursor:pointer}.controls button svg[data-v-6d506cd1]{fill:transparent!important}.controls button svg path[data-v-6d506cd1]{fill:transparent!important}.controls button .svg-color[data-v-6d506cd1]{fill:#12d3db!important}.controls button .svg-color path[data-v-6d506cd1]{fill:#12d3db!important}.controls .info-space[data-v-6d506cd1]{position:relative;top:3px;display:inline-block;margin:0 .380952381rem;font-size:10px;font-weight:900;color:#afa2ba;font-family:Nunito,sans-serif}.controls .current-pages[data-v-6d506cd1]{width:60px;white-space:nowrap;line-height:1;overflow:hidden;transition:all .5s ease}.controls .current-pages .list[data-v-6d506cd1]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-6d506cd1]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-6d506cd1]:first-child{margin:0 16px}.controls .current-pages span[data-v-6d506cd1]:last-child{margin:0 16px}.info-pages[data-v-6d506cd1]{text-align:center}@keyframes arrow-animation-data-v-6d506cd1{0%,100%,48%{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}8%{-webkit-transform:translateX(-30%);transform:translateX(-30%)}16%{-webkit-transform:translateX(15%);transform:translateX(15%)}24%{-webkit-transform:translateX(-15%);transform:translateX(-15%)}32%{-webkit-transform:translateX(9%);transform:translateX(9%)}40%{-webkit-transform:translateX(-6%);transform:translateX(-6%)}}.visible[data-v-6d506cd1]{opacity:1}.invisible[data-v-6d506cd1]{opacity:0}[data-v-6d506cd1] .loading-bg{position:absolute;display:flex;top:0;width:100%;height:100%;background-color:#fff;opacity:.64;align-items:center;justify-content:center;z-index:12}[data-v-6d506cd1] .loading-bg .loading{border:2px solid #dfdae4;border-top:2px solid #00cf72;border-radius:50%;width:2.8571428571rem;height:2.8571428571rem;animation:spin-data-v-6d506cd1 .6s linear infinite}@media (max-width:479px){[data-v-6d506cd1] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-6d506cd1{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.icon[data-v-6d506cd1]{width:24px;height:24px;display:block}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:T},props:{
|
|
1260
1260
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1261
1261
|
uuid:{type:String,required:!0},
|
|
1262
1262
|
/** Number of pages. `32` */
|
|
@@ -1305,7 +1305,7 @@ pages:{type:Number,required:!0},
|
|
|
1305
1305
|
/** Product ID. `109` */
|
|
1306
1306
|
product_id:{type:Number,required:!0},
|
|
1307
1307
|
/** If preloaded images are base64 formated. `false` */
|
|
1308
|
-
base64:{type:Boolean,required:!1},typeLanguage:{type:String,required:!1,default:"br"},zoom:{type:Boolean,required:!1,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){var t;return Z(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]),Z(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:{}},"data-v-0c220ba8",!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.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"backdrop",on:{click:function(e){return t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"box-close",style:t.cssProps,on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icon-close size-lg"},[a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]),t._v(" "),a("span",{staticClass:"icon icon-edit size-lg"},[a("svg",{attrs:{fill:"#fff",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:"#fff"}})])])]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:"sm",color:"#68596E"}},[t._v(t._s(t.lang.editArea))])],1),t._v(" "),a("HR",{attrs:{height:"1px",color:t.preview_color}}),t._v(" "),t.extras?a("div",{staticClass:"itens-properties"},t._l(t.extras,(function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:"dedicatoria"!=e.code||"dedicatoria"==e.code&&1==t.have_dedication,expression:"\n\t\t\t\t\t\tproperty.code != 'dedicatoria' ||\n\t\t\t\t\t\t\t(property.code == 'dedicatoria' && have_dedication == true)\n\t\t\t\t\t"}],key:i,staticClass:"item",on:{click:function(a){return t.showModal(e.code)}}},[a("div",["nome"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.dedication))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.moonerLabelSidebar))]):t._e(),t._v(" "),"number"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.shirtNumber))]):t._e(),t._v(" "),"nome"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code&&t.have_dedication?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value.name))]):t._e(),t._v(" "),"number"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:t.preview_color}})])],1)])})),0):t._e()],1)]),t._v(" "),t.modalName?a("Modal",{attrs:{heading:t.lang.kidName,headingColor:t.preview_color,paragraph:"Para deixar o livro mais legal use apenas o primeiro nome"},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"name",label:t.lang.kidName,placeholder:"",helper:t.lang.recommendName,value:t.current_character_name,disabled:!1,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.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalDedication?a("Modal",{attrs:{heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.dedicationText,label:t.lang.messageDedication,placeholder:t.lang.dedcationPlaceholder,maxlength:400,counter:!0,disabled:!1},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},update:t.updateDedicationText}}),t._v(" "),a("div",{staticClass:"dedication-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalShirtNumber?a("Modal",{attrs:{heading:t.lang.editShirt},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"number",label:t.lang.shirtNumber,placeholder:"",helper:t.reccomendName,value:t.currentShirtNumber,disabled:!1},on:{change:t.updateShirtNumber}}),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalScript?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.availableLayouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==i?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:"https://doo8f8ypwd7it.cloudfront.net/brasilprevjunior/img/capitao@2x.890754be.png",alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLayout==i?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalBirthdate?a("Modal",{attrs:{heading:t.lang.editDateBirth},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[a("div",{staticClass:"day"},[a("Select",{attrs:{selected:t.selectedBirthDay,name:"day",label:"Dia",placeholder:"Dia",options:t.days},on:{change:t.onChangeDay}})],1),t._v(" "),a("div",{staticClass:"month"},[a("Select",{attrs:{selected:t.selectedBirthMonth,name:"month",label:"Mês",placeholder:"Mês",options:t.months},on:{change:t.onChangeMonth}})],1)]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalPet?a("Modal",{staticClass:"modal-pet",attrs:{heading:"Altere o bichinho da história",headingColor:t.preview_color,paragraph:"Esse bichinho acompanhará <span>"+t.searchExtraProperty("name").value+"</span> em toda a história."},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-do-mooner").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-do-mooner").value.name=e.target.value}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.selectPet))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentPet?"active":"inactive",t.petAnimation?"fade-in-image":"inactive-pet"]},[t.currentPet&&t.currentPet.assets&&t.currentPet.assets.asset?a("div",[t.currentPet.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPet.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listPet?a("div",{staticClass:"pet-list",class:t.currentPet?"active":"inactive"},t._l(t.listPet.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentPet===e?"active":"inactive",on:{click:function(a){return t.setPet(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])]),t._v(" "),t.searchExtraProperty("nome-do-mooner").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-do-mooner").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-do-mooner").value.newPet.assets.asset,alt:""}}),t._v(" "),a("br")]):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalMooner?a("Modal",{staticClass:"modal-pet",attrs:{heading:t.modalMoonerFirstOpen?t.isMobile?t.lang.moonerTitleMobile:t.lang.moonerTitle:t.isMobile?t.lang.moonerTitleFirstOpenMobile:t.lang.moonerTitleFirstOpen,headingColor:t.preview_color,paragraph:t.lang.moonerDescriptionOne+t.current_character_name+t.lang.moonerDescriptionTwo,haveClose:t.modalMoonerFirstOpen},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentMooner?"width: 100%;":""},[a("div",{},[a("Input",{attrs:{value:t.currentMoonerName,error:"",helper:"",label:t.lang.moonerLabel,name:"currentPetName",maxlength:"20"},on:{input:function(e){return t.setCurrentMoonerName(e.target.value)}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",{staticClass:"clip-mooney"},[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listMooner?a("div",{staticClass:"pet-list",class:t.currentMooner?"active":"inactive"},t._l(t.listMooner.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentMooner===e?"active":"inactive",on:{click:function(a){return t.setMooner(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!t.currentMoonerName||!t.currentMooner,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.modalMoonerFirstOpen?t.lang.moonerCta:t.lang.moonerCtaFirstOpen)+"\n\t\t\t")]),t._v(" "),t.modalMoonerFirstOpen?a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")]):t._e()],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-10d2f615_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-10d2f615]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-10d2f615]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-10d2f615]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-10d2f615]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-10d2f615]{font-size:14px}}@media (min-width:1024px){[data-v-10d2f615]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-10d2f615]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-10d2f615]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-10d2f615]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-10d2f615]{font-size:1.56vw}}html[data-v-10d2f615]{box-sizing:border-box}*[data-v-10d2f615],[data-v-10d2f615]::after,[data-v-10d2f615]::before{box-sizing:border-box}[data-v-10d2f615] .modal-pet{background-color:#000}[data-v-10d2f615] .modal-pet .paragraph span{color:var(--preview-color);font-weight:700}@media (max-width:990px){[data-v-10d2f615] .modal-pet .modal-content{padding-bottom:500px;overflow-y:scroll}}.main-tool[data-v-10d2f615]{position:fixed;width:100%;height:100%}@media (max-width:990px){.main-tool[data-v-10d2f615]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-10d2f615]{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-10d2f615]{z-index:5;max-width:100%}.main-tool.active .backdrop[data-v-10d2f615]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-10d2f615]{display:none}}.main-tool.inactive[data-v-10d2f615]{z-index:5;top:0;max-width:48px;right:0}.custom-properties[data-v-10d2f615]{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-10d2f615]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100vh;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-10d2f615]{opacity:0}.custom-properties.inactive .icon-edit[data-v-10d2f615]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-10d2f615]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-10d2f615]{opacity:1}.custom-properties.active .icon-edit[data-v-10d2f615]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-10d2f615]{background:#fff}.custom-properties .list-properties[data-v-10d2f615]{background-color:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);width:100%;background-color:#fff;position:relative;height:100vh;z-index:3;padding:1.1428571429rem 2.7777777778vw}@media (max-width:990px){.custom-properties .list-properties[data-v-10d2f615]{width:100%;background-color:#fff;position:relative;border-radius:0}}.custom-properties .title-custom-properties[data-v-10d2f615]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-10d2f615]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-10d2f615]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%}.custom-properties .itens-properties .item svg[data-v-10d2f615]{position:absolute;right:.380952381rem;top:1.0476190476rem;width:1.1428571429rem}@media (max-width:479px){.custom-properties .itens-properties .item svg[data-v-10d2f615]{width:2.2429906542rem}}.custom-properties .itens-properties .item[data-v-10d2f615]:last-child{border-bottom:0}.custom-properties .itens-properties .paragraph[data-v-10d2f615]{text-overflow:ellipsis;white-space:nowrap;max-width:85%;overflow:hidden}.custom-properties .itens-properties hr[data-v-10d2f615]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-10d2f615]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-10d2f615]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-10d2f615]{display:flex}.layout-option[data-v-10d2f615]{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-10d2f615]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-10d2f615]{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-10d2f615]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-10d2f615]{border-radius:5px;border:solid 2px #e9eaed;background-color:#fff;width:1.4285714286rem;height:1.4285714286rem;display:flex;justify-content:center;align-self:center;align-items:center}.layout-option .panel-title .flag .icon[data-v-10d2f615] svg{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon[data-v-10d2f615] svg path{fill:#e9eaed!important}.layout-option.active[data-v-10d2f615]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-10d2f615]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-10d2f615]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag[data-v-10d2f615] svg path{fill:#fff!important}.pet-view[data-v-10d2f615]{width:100%;display:flex}.pet-view .pet-label[data-v-10d2f615]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.pet-view .pet-label[data-v-10d2f615]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.pet-selectors[data-v-10d2f615]{width:100%}.pet-selectors p[data-v-10d2f615]{margin:0;font-size:.7619047619rem}.pet-selectors .input-text-group[data-v-10d2f615]{padding-bottom:0}.pet-list[data-v-10d2f615]{width:100%;display:flex}.pet-list div[data-v-10d2f615]{margin:.2380952381rem;cursor:pointer}.pet-list .inactive[data-v-10d2f615]{opacity:.3}.pet-list img[data-v-10d2f615]{width:100%}.color-list[data-v-10d2f615]{width:100%;display:flex}.color[data-v-10d2f615]{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-10d2f615]{border-color:#01dfa1}.color .secondary-color[data-v-10d2f615]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-10d2f615]{width:100%;display:flex}.footer-pet .cancel[data-v-10d2f615]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.box-dates-columns[data-v-10d2f615]{display:flex}.box-dates-columns .day[data-v-10d2f615]{width:11.1111111111vw}.box-dates-columns .month[data-v-10d2f615]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-10d2f615]{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-10d2f615]{display:none}}.box-close .icon[data-v-10d2f615]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s}@media (max-width:990px){[data-v-10d2f615] .mooner-footer button{width:100%!important;text-align:center}[data-v-10d2f615] .mooner-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-10d2f615] .name-footer button{width:100%!important;text-align:center}[data-v-10d2f615] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-10d2f615] .dedication-footer button{width:100%!important;text-align:center}[data-v-10d2f615] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.pet-combo-list[data-v-10d2f615]{display:flex;flex-wrap:wrap}@media (max-width:990px){.pet-combo-list[data-v-10d2f615]{flex-direction:column-reverse}}.pet-combo-list .selected-pet[data-v-10d2f615]{width:0%;transition:width .5s;max-height:9.5238095238rem}.pet-combo-list .selected-pet .clip-mooney[data-v-10d2f615]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney[data-v-10d2f615]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney img[data-v-10d2f615]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.pet-combo-list .selected-pet img[data-v-10d2f615]{margin-top:-.9523809524rem;opacity:0}.pet-combo-list .selected-pet.active[data-v-10d2f615]{width:40%}@media (max-width:990px){.pet-combo-list .selected-pet.active[data-v-10d2f615]{width:100%}}.pet-combo-list .pet-list[data-v-10d2f615]{transition:all .5s;width:60%;align-items:center;display:flex}@media (max-width:990px){.pet-combo-list .pet-list[data-v-10d2f615]{width:100%}}.pet-combo-list .pet-list.inactive[data-v-10d2f615]{width:100%}.fade-in-image-init[data-v-10d2f615]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-10d2f615]{animation:fadeIn-data-v-10d2f615 .5s;-webkit-animation:fadeIn-data-v-10d2f615 .5s;-moz-animation:fadeIn-data-v-10d2f615 .5s;-o-animation:fadeIn-data-v-10d2f615 .5s;-ms-animation:fadeIn-data-v-10d2f615 .5s}@keyframes fadeIn-data-v-10d2f615{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-10d2f615{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-10d2f615{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-10d2f615{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-10d2f615{0%{opacity:0}100%{opacity:1}}',map:void 0,media:void 0})}),(Z(yt={name:"PreviewTools",components:{Vue:c,Heading:ft,Paragraph:bt,Icon:T,Modal:wt,Input:D,Button:B,TextArea:ut,Select:H},props:{
|
|
1308
|
+
base64:{type:Boolean,required:!1},typeLanguage:{type:String,required:!1,default:"br"},zoom:{type:Boolean,required:!1,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){var t;return Z(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]),Z(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:{}},"data-v-0c220ba8",!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.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"backdrop",on:{click:function(e){return t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.modalIsOpen()?"active":"",t.sidebarOpen?"active":"inactive"]},[a("div",{staticClass:"box-close",style:t.cssProps,on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icon-close size-lg"},[a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M24.4803 7.53262C23.7875 6.8398 22.6673 6.83968 21.9743 7.53227L16.0004 13.494L10.026 7.5197C9.33311 6.82677 8.21263 6.82677 7.5197 7.5197C6.82677 8.21263 6.82677 9.33311 7.5197 10.026L13.4937 16L7.5197 21.974C6.82677 22.6669 6.82677 23.7874 7.5197 24.4803C8.21263 25.1732 9.33311 25.1732 10.026 24.4803L16 18.5063L21.974 24.4803C22.6669 25.1732 23.7874 25.1732 24.4803 24.4803C25.1732 23.7874 25.1732 22.6669 24.4803 21.974L18.5063 16L24.4803 10.026C25.1603 9.34603 25.1603 8.21264 24.4803 7.53262Z"}})])]),t._v(" "),a("span",{staticClass:"icon icon-edit size-lg"},[a("svg",{attrs:{fill:"#fff",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:"#fff"}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:"#fff"}})])])]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:"sm",color:"#68596E"}},[t._v(t._s(t.lang.editArea))])],1),t._v(" "),a("HR",{attrs:{height:"1px",color:t.preview_color}}),t._v(" "),t.extras?a("div",{staticClass:"itens-properties"},t._l(t.extras,(function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:"dedicatoria"!=e.code||"dedicatoria"==e.code&&1==t.have_dedication,expression:"\n\t\t\t\t\t\tproperty.code != 'dedicatoria' ||\n\t\t\t\t\t\t\t(property.code == 'dedicatoria' && have_dedication == true)\n\t\t\t\t\t"}],key:i,staticClass:"item",on:{click:function(a){return t.showModal(e.code)}}},[a("div",["nome"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.dedication))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.moonerLabelSidebar))]):t._e(),t._v(" "),"birthday"==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(" "),"nome"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v("Nome "+t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code&&t.have_dedication?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value.name))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),a("svg",{attrs:{fill:t.preview_color,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"}},[a("path",{attrs:{d:"M5.80642 26.2721C5.34347 25.8039 4.72085 25.5519 4.0831 25.5336L2.75934 28.2092C2.39666 28.9423 3.16603 29.72 3.89083 29.353L6.53443 28.014C6.51807 27.38 6.27994 26.7506 5.80642 26.2721Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M28.3546 3.62343C27.0932 2.34777 24.8474 2.34777 23.586 3.62343L20.7545 6.53012L25.5232 11.3528L28.3546 8.44597C29.6731 7.1141 29.6731 4.95531 28.3546 3.62343Z",fill:t.preview_color}}),t._v(" "),a("path",{attrs:{d:"M19.5556 7.51704L6.40254 20.846L4.87571 23.9319C5.66515 24.0993 6.40962 24.4714 6.99858 25.0666C7.59597 25.6701 7.97287 26.4179 8.13401 27.2039L11.1801 25.6611L11.1883 25.6527L24.3516 12.3674L19.5556 7.51704Z",fill:t.preview_color}})])],1)])})),0):t._e()],1)]),t._v(" "),t.modalName?a("Modal",{attrs:{heading:t.lang.kidName,headingColor:t.preview_color,paragraph:"Para deixar o livro mais legal use apenas o primeiro nome"},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"name",label:t.lang.kidName,placeholder:"",helper:t.lang.recommendName,value:t.current_character_name,disabled:!1,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.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalDedication?a("Modal",{attrs:{heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.dedicationText,label:t.lang.messageDedication,placeholder:t.lang.dedcationPlaceholder,maxlength:400,counter:!0,disabled:!1},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},update:t.updateDedicationText}}),t._v(" "),a("div",{staticClass:"dedication-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.updateNameAndDedicationCustomCharacter()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalShirtNumber?a("Modal",{attrs:{heading:t.lang.editShirt},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"number",label:t.lang.shirtNumber,placeholder:"",helper:t.reccomendName,value:t.currentShirtNumber,disabled:!1},on:{change:t.updateShirtNumber}}),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)],1):t._e(),t._v(" "),t.modalScript?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.availableLayouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==i?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:"https://doo8f8ypwd7it.cloudfront.net/brasilprevjunior/img/capitao@2x.890754be.png",alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLayout==i?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalBirthdate?a("Modal",{attrs:{heading:t.lang.editDateBirth},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[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.searchExtraProperty("name").value+"</span> em toda a história."},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-do-mooner").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-do-mooner").value.name=e.target.value}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.selectPet))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentPet?"active":"inactive",t.petAnimation?"fade-in-image":"inactive-pet"]},[t.currentPet&&t.currentPet.assets&&t.currentPet.assets.asset?a("div",[t.currentPet.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPet.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listPet?a("div",{staticClass:"pet-list",class:t.currentPet?"active":"inactive"},t._l(t.listPet.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentPet===e?"active":"inactive",on:{click:function(a){return t.setPet(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])]),t._v(" "),t.searchExtraProperty("nome-do-mooner").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-do-mooner").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-do-mooner").value.newPet.assets.asset,alt:""}}),t._v(" "),a("br")]):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.lang.update)+"\n\t\t\t")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.modalMooner?a("Modal",{staticClass:"modal-pet",attrs:{heading:t.modalMoonerFirstOpen?t.isMobile?t.lang.moonerTitleMobile:t.lang.moonerTitle:t.isMobile?t.lang.moonerTitleFirstOpenMobile:t.lang.moonerTitleFirstOpen,headingColor:t.preview_color,paragraph:t.lang.moonerDescriptionOne+t.current_character_name+t.lang.moonerDescriptionTwo,haveClose:t.modalMoonerFirstOpen},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[a("div",{staticClass:"pet-selectors",style:t.currentMooner?"width: 100%;":""},[a("div",{},[a("Input",{attrs:{value:t.currentMoonerName,error:"",helper:"",label:t.lang.moonerLabel,name:"currentPetName",maxlength:"20"},on:{input:function(e){return t.setCurrentMoonerName(e.target.value)}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"selected-pet",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",{staticClass:"clip-mooney"},[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,alt:""}}):t._e()]):t._e()]),t._v(" "),t.listMooner?a("div",{staticClass:"pet-list",class:t.currentMooner?"active":"inactive"},t._l(t.listMooner.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentMooner===e?"active":"inactive",on:{click:function(a){return t.setMooner(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!t.currentMoonerName||!t.currentMooner,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n\t\t\t\t"+t._s(t.modalMoonerFirstOpen?t.lang.moonerCta:t.lang.moonerCtaFirstOpen)+"\n\t\t\t")]),t._v(" "),t.modalMoonerFirstOpen?a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n\t\t\t\t"+t._s(t.lang.cancel)+"\n\t\t\t")]):t._e()],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-f3633140_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-f3633140]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-f3633140]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-f3633140]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-f3633140]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-f3633140]{font-size:14px}}@media (min-width:1024px){[data-v-f3633140]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-f3633140]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-f3633140]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-f3633140]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-f3633140]{font-size:1.56vw}}html[data-v-f3633140]{box-sizing:border-box}*[data-v-f3633140],[data-v-f3633140]::after,[data-v-f3633140]::before{box-sizing:border-box}[data-v-f3633140] .modal-pet{background-color:#000}[data-v-f3633140] .modal-pet .paragraph span{color:var(--preview-color);font-weight:700}@media (max-width:990px){[data-v-f3633140] .modal-pet .modal-content{padding-bottom:500px;overflow-y:scroll}}.main-tool[data-v-f3633140]{position:fixed;width:100%;height:100%}@media (max-width:990px){.main-tool[data-v-f3633140]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-f3633140]{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-f3633140]{z-index:5;max-width:100%}.main-tool.active .backdrop[data-v-f3633140]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-f3633140]{display:none}}.main-tool.inactive[data-v-f3633140]{z-index:5;top:0;max-width:48px;right:0}.custom-properties[data-v-f3633140]{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-f3633140]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100vh;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-f3633140]{opacity:0}.custom-properties.inactive .icon-edit[data-v-f3633140]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-f3633140]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-f3633140]{opacity:1}.custom-properties.active .icon-edit[data-v-f3633140]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-f3633140]{background:#fff}.custom-properties .list-properties[data-v-f3633140]{background-color:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);width:100%;background-color:#fff;position:relative;height:100vh;z-index:3;padding:1.1428571429rem 2.7777777778vw}@media (max-width:990px){.custom-properties .list-properties[data-v-f3633140]{width:100%;background-color:#fff;position:relative;border-radius:0}}.custom-properties .title-custom-properties[data-v-f3633140]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-f3633140]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-f3633140]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%}.custom-properties .itens-properties .item svg[data-v-f3633140]{position:absolute;right:.380952381rem;top:1.0476190476rem;width:1.1428571429rem}@media (max-width:479px){.custom-properties .itens-properties .item svg[data-v-f3633140]{width:2.2429906542rem}}.custom-properties .itens-properties .item[data-v-f3633140]:last-child{border-bottom:0}.custom-properties .itens-properties .paragraph[data-v-f3633140]{text-overflow:ellipsis;white-space:nowrap;max-width:85%;overflow:hidden}.custom-properties .itens-properties hr[data-v-f3633140]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-f3633140]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-f3633140]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-f3633140]{display:flex}.layout-option[data-v-f3633140]{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-f3633140]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-f3633140]{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-f3633140]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-f3633140]{border-radius:5px;border:solid 2px #e9eaed;background-color:#fff;width:1.4285714286rem;height:1.4285714286rem;display:flex;justify-content:center;align-self:center;align-items:center}.layout-option .panel-title .flag .icon[data-v-f3633140] svg{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon[data-v-f3633140] svg path{fill:#e9eaed!important}.layout-option.active[data-v-f3633140]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-f3633140]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-f3633140]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag[data-v-f3633140] svg path{fill:#fff!important}.pet-view[data-v-f3633140]{width:100%;display:flex}.pet-view .pet-label[data-v-f3633140]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.pet-view .pet-label[data-v-f3633140]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.pet-selectors[data-v-f3633140]{width:100%}.pet-selectors p[data-v-f3633140]{margin:0;font-size:.7619047619rem}.pet-selectors .input-text-group[data-v-f3633140]{padding-bottom:0}.pet-list[data-v-f3633140]{width:100%;display:flex}.pet-list div[data-v-f3633140]{margin:.2380952381rem;cursor:pointer}.pet-list .inactive[data-v-f3633140]{opacity:.3}.pet-list img[data-v-f3633140]{width:100%}.color-list[data-v-f3633140]{width:100%;display:flex}.color[data-v-f3633140]{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-f3633140]{border-color:#01dfa1}.color .secondary-color[data-v-f3633140]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-f3633140]{width:100%;display:flex}.footer-pet .cancel[data-v-f3633140]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.box-dates-columns[data-v-f3633140]{display:flex}.box-dates-columns .day[data-v-f3633140]{width:11.1111111111vw}.box-dates-columns .month[data-v-f3633140]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-f3633140]{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-f3633140]{display:none}}.box-close .icon[data-v-f3633140]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s}@media (max-width:990px){[data-v-f3633140] .mooner-footer button{width:100%!important;text-align:center}[data-v-f3633140] .mooner-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-f3633140] .name-footer button{width:100%!important;text-align:center}[data-v-f3633140] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-f3633140] .dedication-footer button{width:100%!important;text-align:center}[data-v-f3633140] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.pet-combo-list[data-v-f3633140]{display:flex;flex-wrap:wrap}@media (max-width:990px){.pet-combo-list[data-v-f3633140]{flex-direction:column-reverse}}.pet-combo-list .selected-pet[data-v-f3633140]{width:0%;transition:width .5s;max-height:9.5238095238rem}.pet-combo-list .selected-pet .clip-mooney[data-v-f3633140]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney[data-v-f3633140]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.pet-combo-list .selected-pet .clip-mooney img[data-v-f3633140]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.pet-combo-list .selected-pet img[data-v-f3633140]{margin-top:-.9523809524rem;opacity:0}.pet-combo-list .selected-pet.active[data-v-f3633140]{width:40%}@media (max-width:990px){.pet-combo-list .selected-pet.active[data-v-f3633140]{width:100%}}.pet-combo-list .pet-list[data-v-f3633140]{transition:all .5s;width:60%;align-items:center;display:flex}@media (max-width:990px){.pet-combo-list .pet-list[data-v-f3633140]{width:100%}}.pet-combo-list .pet-list.inactive[data-v-f3633140]{width:100%}.fade-in-image-init[data-v-f3633140]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-f3633140]{animation:fadeIn-data-v-f3633140 .5s;-webkit-animation:fadeIn-data-v-f3633140 .5s;-moz-animation:fadeIn-data-v-f3633140 .5s;-o-animation:fadeIn-data-v-f3633140 .5s;-ms-animation:fadeIn-data-v-f3633140 .5s}@keyframes fadeIn-data-v-f3633140{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-f3633140{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-f3633140{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-f3633140{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-f3633140{0%{opacity:0}100%{opacity:1}}',map:void 0,media:void 0})}),(Z(yt={name:"PreviewTools",components:{Vue:c,Heading:ft,Paragraph:bt,Icon:T,Modal:wt,Input:D,Button:B,TextArea:ut,Select:H},props:{
|
|
1309
1309
|
/** Name of protagonist. `Diego` */
|
|
1310
1310
|
current_name:{type:String,required:!0},
|
|
1311
1311
|
/** Product id of Builder. `595` */
|
|
@@ -1321,7 +1321,11 @@ slug:{type:String,required:!0},
|
|
|
1321
1321
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1322
1322
|
uuid:{type:String,required:!0},
|
|
1323
1323
|
/** Preview external color. `#000` */
|
|
1324
|
-
preview_color:{type:String,default:"#16D3DB",
|
|
1324
|
+
preview_color:{type:String,default:"#16D3DB",required:!1},typeLanguage:{type:String,required:!1,default:"br"},typeRead:{type:Boolean,required:!1,default:!1},have_dedication:{type:Boolean,required:!1,default:!0},
|
|
1325
|
+
/** Show edit name. */
|
|
1326
|
+
custom_numero:{type:String,required:!1},
|
|
1327
|
+
/** Show edit name. */
|
|
1328
|
+
custom_mes:{type:String,required:!1}},computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}},data:function(){for(var t=[],e=[],a=(new Date).getFullYear(),i=1;i<=31;i++)t.push({key:i,value:i});for(var o=0;o<16;o++)e.push({key:a-o,value:a-o});return e.push({key:"outro",value:"Outro"}),{lang:xt[this.typeLanguage],
|
|
1325
1329
|
// Sidebar
|
|
1326
1330
|
sidebarOpen:!1,have_shirt_number:!1,have_layout:!1,have_birth_date:!1,haveDedication:!1,
|
|
1327
1331
|
//default_value_name: "",
|
|
@@ -1337,31 +1341,30 @@ listMooner:[],moonerAnimation:!1,moonerInitAnimation:!1,currentMoonerName:null,c
|
|
|
1337
1341
|
// Pet
|
|
1338
1342
|
listPet:[],petAnimation:!1,petInitAnimation:!1,currentPetName:"",currentPet:null,currentPetColor:"",days:t,months:[{value:"Janeiro",key:1},{value:"Fevereiro",key:2},{value:"Março",key:3},{value:"Abril",key:4},{value:"Maio",key:5},{value:"Junho",key:6},{value:"Julho",key:7},{value:"Agosto",key:8},{value:"Setembro",key:9},{value:"Outubro",key:10},{value:"Novembro",key:11},{value:"Dezembro",key:12}],years:e,pages:[],counter:0,pageNum:36,isCover:0,currentPage:3,loadedPages:3,numberPositions:0,mobilePagePosition:0,isMobile:!1,isLoaded:!1,isPagesNumLoaded:!1,loadedMobile:!1,loadedDesktop:!1,mobileStopped:!0,isLoading:!0,custom_character:null,custom:null,availableLayouts:[],currentLayout:0,callingLayout:!1,callingDedication:!1,callingName:!1,currentShirtNumber:7,
|
|
1339
1343
|
// Aniversário
|
|
1340
|
-
selectedBirthDay:0,selectedBirthMonth:0,modalMoonerFirstOpen:!1,firstBookSelected:!1,type_id:""}}},"computed",{cssProps:function(){return{"--preview_color":this.preview_color}}}),Z(yt,"mounted",(function(){var t=this;this.current_name&&(this.current_character_name=this.current_name),this.dedication_text&&(this.dedicationText=this.dedication_text?this.dedication_text:""),this.initMounted(),t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))})),Z(yt,"methods",{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},setCurrentMoonerName:function(t){this.currentMoonerName=t,this.haveCustomMoonerName=!0},toggleSidebar:function(){this.sidebarOpen=!this.sidebarOpen},modalIsOpen:function(){return!!(this.modalScript||this.modalName||this.modalDedication||this.modalShirtNumber||this.modalPet||this.modalMooner||this.modalBirthdate)},updateName:function(t){console.log(this.current_character_name),this.current_character_name=t.value,console.log(t)},updateDedicationText:function(t){this.dedicationText=t.value},updateShirtNumber:function(t){this.currentShirtNumber=t.value},onChangeDay:function(t){this.selectedBirthDay=t.
|
|
1344
|
+
selectedBirthDay:0,selectedBirthMonth:0,modalMoonerFirstOpen:!1,firstBookSelected:!1,type_id:""}}},"computed",{cssProps:function(){return{"--preview_color":this.preview_color}}}),Z(yt,"mounted",(function(){var t=this;this.current_name&&(this.current_character_name=this.current_name),this.dedication_text&&(this.dedicationText=this.dedication_text?this.dedication_text:""),this.initMounted(),t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))})),Z(yt,"methods",{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},setCurrentMoonerName:function(t){this.currentMoonerName=t,this.haveCustomMoonerName=!0},toggleSidebar:function(){this.sidebarOpen=!this.sidebarOpen},modalIsOpen:function(){return!!(this.modalScript||this.modalName||this.modalDedication||this.modalShirtNumber||this.modalPet||this.modalMooner||this.modalBirthdate)},updateName:function(t){console.log(this.current_character_name),this.current_character_name=t.value,console.log(t)},updateDedicationText:function(t){this.dedicationText=t.value},updateShirtNumber:function(t){this.currentShirtNumber=t.value},onChangeDay:function(t){this.selectedBirthDay=t.target.value;// this.validateDays({
|
|
1345
|
+
// year: payload.value,
|
|
1346
|
+
// });
|
|
1347
|
+
},onChangeMonth:function(t){console.log(t),this.selectedBirthMonth=t.target.value},updateHaveDedication:function(t){this.haveDedication=t},setMooner:function(t){var e=this,a=this;a.moonerAnimation=!1,a.haveCustomMoonerName||(a.currentMoonerName=t.name.toUpperCase()),setTimeout((function(){a.moonerAnimation=!0,e.currentMooner=t,setTimeout((function(){a.moonerInitAnimation=!0}),"500")}),"500")},setPet:function(t){var e=this,a=this;a.petAnimation=!1,//self.currentMoonerName =
|
|
1341
1348
|
setTimeout((function(){a.petAnimation=!0,e.currentPet=t,setTimeout((function(){a.petInitAnimation=!0}),"500")}),"500")},setColor:function(t){
|
|
1342
1349
|
//this.currentPetColor = selectedColor;
|
|
1343
1350
|
this.searchExtraProperty("pet").value.newPetColor=t},showModal:function(t){
|
|
1344
1351
|
//var modalName = Object.keys(key)[0];
|
|
1345
1352
|
// console.log(modalName);
|
|
1346
|
-
"nome"===t&&(this.modalName=!0),t.includes("dedicatoria")&&(this.modalDedication=!0),t.includes("nome-do-mooner")&&(this.modalMooner=!0),t.includes("pet")&&(this.modalPet=!0),t.includes("script")&&(this.modalScript=!0),t.includes("camisa")&&(this.modalShirtNumber=!0),t.includes("
|
|
1347
|
-
// returnProperty = self.extras.properties[property];
|
|
1348
|
-
// }
|
|
1349
|
-
//console.log(property + " - " + self.extras.properties[property]);
|
|
1350
|
-
})),e},searchCustomUserDataProperty:function(t){var e=null;return Object.entries(t).forEach((function(t){"nome-do-mooner"==t[0]&&(
|
|
1351
|
-
//console.log(property);
|
|
1352
|
-
e=t[1]);//if()
|
|
1353
|
-
// if (self.extras[property].type.includes(propertyName)) {
|
|
1354
|
-
// returnProperty = self.extras.properties[property];
|
|
1355
|
-
// }
|
|
1356
|
-
//console.log(property + " - " + self.extras.properties[property]);
|
|
1357
|
-
})),e},searchCategoryProperty:function(t,e){var a=null;return Object.keys(t).forEach((function(i){t[i].code.includes(e)&&(a=t[i]),console.log(i+" - "+t[i])})),a},getTreeList:function(){var t=this;return v(h().mark((function e(){var a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:// Todo Guto
|
|
1353
|
+
"nome"===t&&(this.modalName=!0),t.includes("dedicatoria")&&(this.modalDedication=!0),t.includes("nome-do-mooner")&&(this.modalMooner=!0),t.includes("pet")&&(this.modalPet=!0),t.includes("script")&&(this.modalScript=!0),t.includes("camisa")&&(this.modalShirtNumber=!0),t.includes("birthday")&&(this.modalBirthdate=!0)},showModalName:function(){this.modalName=!0},showModalScript:function(){this.modalScript=!0},showModalDedication:function(){this.modalDedication=!0},showModalShirtNumber:function(){this.modalShirtNumber=!0},showModalBirthdate:function(){this.modalBirthdate=!0},showModalPet:function(){},searchExtraProperty:function(t){var e=null;return Object.entries(this.extras).forEach((function(a){a[1].code===t&&(e=a[1])})),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;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:// Todo Guto
|
|
1358
1354
|
return a=t,e.abrupt("return",Pt.get(t.lang.urlBuilder+"/api/characters/"+a.character_id+"/categories/assets/treelist?character_type_id="+a.type_id+"&product_id="+parseInt(a.product_id)+"&character_position_id="+parseInt(a.character_position_id)).then((function(t){
|
|
1359
1355
|
//console.log(response);
|
|
1360
1356
|
// self.listPet =
|
|
1361
1357
|
// response.data.character_categories_assets[0].categories[5];
|
|
1362
1358
|
var e=null;t.data.character_categories_assets[0].categories.forEach((function(t){t.code.includes("mooner")&&(e=t,a.typeRead||(a.modalMooner=!0))})),a.extras.forEach((function(t){t.code.includes("nome-do-mooner")&&(a.listMooner=e),t.code.includes("pet")&&(a.listPet=e)})),a.uuid&&a.getCustomCharacter()})).catch((function(t){console.log(t)})));case 2:case"end":return e.stop()}}),e)})))()},closeModal:function(){this.modalScript=!1,this.modalName=!1,this.modalDedication=!1,this.modalShirtNumber=!1,this.modalPet=!1,this.modalMooner=!1,this.modalBirthdate=!1},setCurrentLayout:function(t){this.currentLayout=t,this.firstBookSelected=!0},initMounted:function(){var t=this;Pt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pageNum=e.data.product.pages,t.isPagesNumLoaded=!0,t.availableLayouts=e.data.product.layout,// Gender
|
|
1363
1359
|
t.gender&&(t.type_id=e.data.product.type.filter((function(e){return e.code===t.gender})));var a=e.data.product.properties;t.extras=[],//response.data.product.extra;
|
|
1364
|
-
a.forEach((function(e){"nome"===e.property.code&&(e.property.value=t.current_name),"dedicatoria"===e.property.code&&(e.property.value=t.dedication_text),t.extras.push(e.property)})),t.type_id=t.type_id[0].id,t.getTreeList()
|
|
1360
|
+
a.forEach((function(e){"nome"===e.property.code&&(e.property.value=t.current_name),"dedicatoria"===e.property.code&&(e.property.value=t.dedication_text),t.extras.push(e.property)})),t.type_id=t.type_id[0].id,t.getTreeList();// Aniversário remover daqui
|
|
1361
|
+
var i=t.searchExtraProperty("mes"),o=t.searchExtraProperty("numero");if(i&&o){t.selectedBirthMonth=t.custom_mes,t.selectedBirthDay=t.custom_numero;//self.have_birth_date = true;
|
|
1362
|
+
var r=Object.assign({},t.searchExtraProperty("mes"));//structuredClone(searchExtraProperty("mes"));
|
|
1363
|
+
r.code="birthday",r.value=t.custom_numero+" de "+t.months[t.custom_mes-1].value,//var countToRemove = 0;
|
|
1364
|
+
// Limpar nome
|
|
1365
|
+
t.extras.forEach((function(e,a){"mes"===e.code&&t.extras.splice(a,1);//self.extras.push(itemProperty.property);
|
|
1366
|
+
})),t.extras.forEach((function(e,a){"numero"===e.code&&t.extras.splice(a,1);//self.extras.push(itemProperty.property);
|
|
1367
|
+
})),t.extras.push(r)}})).catch((function(t){console.log(t)}))},
|
|
1365
1368
|
// changeDedication() {
|
|
1366
1369
|
// const self = this;
|
|
1367
1370
|
// self.callingLayout = true;
|
|
@@ -1405,8 +1408,7 @@ t.extras.forEach((function(a){if(a.code.includes("nome-do-mooner")){var i={prope
|
|
|
1405
1408
|
// itemProperty.value = self.dedicationText;
|
|
1406
1409
|
// }
|
|
1407
1410
|
// });
|
|
1408
|
-
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.searchExtraProperty("nome-do-mooner")){var i=t.searchExtraProperty("nome-do-mooner")
|
|
1409
|
-
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){
|
|
1411
|
+
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.searchExtraProperty("nome-do-mooner")){var i={property_id:(o=t.searchExtraProperty("nome-do-mooner")).id,value:o.value,code:o.code};a.custom_character.user_data.properties[o.code]=i}if(t.searchExtraProperty("birthday")){var o=t.searchExtraProperty("birthday");a.custom_character.user_data.properties.mes={property_id:38,value:t.selectedBirthMonth,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(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.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){
|
|
1410
1412
|
//self.custom = JSON.parse(response.data.custom.customCharacter.data);
|
|
1411
1413
|
//alert("salvou catiolo");
|
|
1412
1414
|
t.changeUuid(e.data.custom.uuid)})).catch((function(t){console.log(t)}))},getCustomCharacter:function(){var t=this;Pt.get(this.lang.urlBuilder+"/api/customs_characters/"+t.uuid).then((function(e){
|
|
@@ -1415,7 +1417,7 @@ t.changeUuid(e.data.custom.uuid)})).catch((function(t){console.log(t)}))},getCus
|
|
|
1415
1417
|
//self.changeUuid(response.data.custom.uuid);
|
|
1416
1418
|
//console.log(response.data.custom.user_data.property);
|
|
1417
1419
|
var a=t.searchCustomUserDataProperty(e.data.custom.user_data.properties);t.listMooner.assets.subcategories.forEach((function(a){e.data.assets.forEach((function(i){a.id==i.assets.id&&(t.setMooner(a),"ARIRANHA"!==e.data.custom.user_data.properties["nome-do-mooner"].value&&(t.haveCustomMoonerName=!0))}))})),// Setar nome do mooner antigo
|
|
1418
|
-
t.currentMoonerName=a.value,t.searchExtraProperty("nome-do-mooner").value=t.currentMoonerName})).catch((function(t){console.log(t)}))},changeUuid:function(t){this.$emit("changeUuid",t)},changeName:function(t){this.$emit("changeName",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}}),yt),"data-v-
|
|
1420
|
+
t.currentMoonerName=a.value,t.searchExtraProperty("nome-do-mooner").value=t.currentMoonerName})).catch((function(t){console.log(t)}))},changeUuid:function(t){this.$emit("changeUuid",t)},changeName:function(t){this.$emit("changeName",t)},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}}),yt),"data-v-f3633140",!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-7c5f1153_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewFull",components:{Preview:_t,PreviewMobile:Mt},props:{
|
|
1419
1421
|
/** Name of protagonist. `Diego` */
|
|
1420
1422
|
current_name:{type:String,required:!0},pages:{type:String,required:!0},age:{type:String,required:!0},
|
|
1421
1423
|
/** Product id of Builder. `595` */
|
|
@@ -1438,7 +1440,7 @@ have_layout:{type:Boolean,required:!1,default:!1},
|
|
|
1438
1440
|
have_birth_date:{type:Boolean,required:!1,default:!1},
|
|
1439
1441
|
/** Show Pet. */
|
|
1440
1442
|
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
|
|
1441
|
-
this.isLoaded=!0}}},void 0,!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("div",{staticClass:"preview-desktop-area"},[a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("div",{staticClass:"preview-mobile-area"},[a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[t.have_tools?a("PreviewTools",{attrs:{current_name:t.current_name,uuid:t.uuid,slug:t.slug,character_id:t.character_id,dedication_text:t.dedication_text,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,preview_color:t.preview_color,character_position_id:t.character_position_id,typeRead:t.typeRead},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-
|
|
1443
|
+
this.isLoaded=!0}}},void 0,!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("div",{staticClass:"preview-desktop-area"},[a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("div",{staticClass:"preview-mobile-area"},[a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[t.have_tools?a("PreviewTools",{attrs:{current_name:t.current_name,uuid:t.uuid,slug:t.slug,character_id:t.character_id,dedication_text:t.dedication_text,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,preview_color:t.preview_color,character_position_id:t.character_position_id,typeRead:t.typeRead,custom_mes:t.custom_mes,custom_numero:t.custom_numero},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName,changeBirthday:t.changeBirthday}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-287887e6_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.invisible{opacity:0}.preview-full{height:100vh}.preview-mobile-area{width:100%;position:relative}.preview-desktop-area{position:relative;z-index:4}@media (max-width:990px){.preview-mobile-tools{position:relative;z-index:20}}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewWithTools",components:{Preview:_t,PreviewMobile:Mt,PreviewTools:St},props:{
|
|
1442
1444
|
/** Name of protagonist. `Diego` */
|
|
1443
1445
|
current_name:{type:String,required:!0},dedication_text:{type:String,required:!1},pages:{type:Number,required:!0},age:{type:Number,required:!0},
|
|
1444
1446
|
/** Product id of Builder. `595` */
|
|
@@ -1456,7 +1458,11 @@ uuid:{type:String,required:!0},
|
|
|
1456
1458
|
/** Show edit name. */
|
|
1457
1459
|
have_tools:{type:Boolean,required:!0,default:!0},
|
|
1458
1460
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1459
|
-
preview_color:{type:String,default:"#16D3DB",required:!
|
|
1461
|
+
preview_color:{type:String,default:"#16D3DB",required:!1},typeRead:{type:Boolean,required:!1,default:!1},have_dedication:{type:Boolean,required:!1,default:!0},
|
|
1462
|
+
/** Show edit name. */
|
|
1463
|
+
custom_numero:{type:String,required:!1},
|
|
1464
|
+
/** Show edit name. */
|
|
1465
|
+
custom_mes:{type:String,required:!1},
|
|
1460
1466
|
/** Show edit name. */
|
|
1461
1467
|
// have_name: {
|
|
1462
1468
|
// type: Boolean,
|
|
@@ -1488,9 +1494,9 @@ preview_color:{type:String,default:"#16D3DB",required:!0},typeRead:{type:Boolean
|
|
|
1488
1494
|
// default: false,
|
|
1489
1495
|
// },
|
|
1490
1496
|
typeLanguage:{type:String,required:!1,default:"br"}},data:function(){return{isLoaded:!0,isMobile:!1}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()}))},methods:{detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},isLoadingMethod:function(t){this.isLoaded=t},changeUuid:function(t){this.uuid=t,//.uuid
|
|
1491
|
-
this.isLoaded=!0,this.completed(t)},changeName:function(t){
|
|
1492
|
-
//
|
|
1493
|
-
this.
|
|
1497
|
+
this.isLoaded=!0,this.completed(t)},changeName:function(t){this.completedName(t)},changeBirthday:function(t){
|
|
1498
|
+
// this.$emit("completedBirthday", payload);
|
|
1499
|
+
this.completedBirthday(t)},completed:function(t){
|
|
1494
1500
|
/**
|
|
1495
1501
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1496
1502
|
*/
|
|
@@ -1498,7 +1504,11 @@ this.$emit("completed",t)},completedName:function(t){
|
|
|
1498
1504
|
/**
|
|
1499
1505
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1500
1506
|
*/
|
|
1501
|
-
this.$emit("completedName",t)}
|
|
1507
|
+
this.$emit("completedName",t)},completedBirthday:function(t){
|
|
1508
|
+
/**
|
|
1509
|
+
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1510
|
+
*/
|
|
1511
|
+
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,x,void 0,void 0)),Et=b({render:function(){var t=this.$createElement;return(this._self._c||t)("hr",this._g(this._b({staticClass:"hr-group",class:"kind-"+this.kind,style:{height:this.height,backgroundColor:this.backgroundColor}},"hr",this.$attrs,!1),this.$listeners))},staticRenderFns:[]},(function(t){t&&t("data-v-181cb712_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-181cb712]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-181cb712]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-181cb712]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-181cb712]{font-size:14px}}@media (min-width:1024px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-181cb712]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-181cb712]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-181cb712]{font-size:1.56vw}}html[data-v-181cb712]{box-sizing:border-box}*[data-v-181cb712],[data-v-181cb712]::after,[data-v-181cb712]::before{box-sizing:border-box}.hr-group[data-v-181cb712]{width:100%;margin:0;border:0;background-color:#dfdae4}',map:void 0,media:void 0})}),{name:"HR",props:{
|
|
1502
1512
|
/**
|
|
1503
1513
|
* Tipo do HR<br>
|
|
1504
1514
|
* Values: `primary` `variable`
|
|
@@ -1520,7 +1530,7 @@ color:{type:String,default:"#DFDAE4"}},data:function(){return{colorDefault:"#DFD
|
|
|
1520
1530
|
**/
|
|
1521
1531
|
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:{
|
|
1522
1532
|
// the callback will be called immediately after the start of the observation
|
|
1523
|
-
immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.displayVisible=!0}),300)}}},data:function(){return{displayVisible:!1}},methods:{closeFeedBack:function(){this.$emit("closeFeedBack")}}},"data-v-ae47cb8c",!1,void 0,!1,x,void 0,void 0),Tt=Object.freeze({__proto__:null,Avatar:E,Button:B,Card:F,CardLink:R,CardOption:
|
|
1533
|
+
immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.displayVisible=!0}),300)}}},data:function(){return{displayVisible:!1}},methods:{closeFeedBack:function(){this.$emit("closeFeedBack")}}},"data-v-ae47cb8c",!1,void 0,!1,x,void 0,void 0),Tt=Object.freeze({__proto__:null,Avatar:E,Button:B,Card:F,CardLink:R,CardOption:q,Checkbox:j,Icon:T,Input:D,InputEdit:O,InputName:$,InputEmail:V,InputAddressNumber:W,InputAddress:J,InputAddressBilling:G,InputCardNumber:X,Options:Y,Radius:K,Select:H,Birthday:rt,BirthdayMobile:mt,TextArea:ut,GenderSelect:ht,Tabs:gt,Tooltip:vt,Caption:_,Heading:ft,Paragraph:bt,Modal:wt,Preview:_t,PreviewMobile:Mt,PreviewTools:St,PreviewFull:Lt,PreviewWithTools:Nt,HR:Et,Spinner:It,FeedBack:At}),Bt=function(t){Bt.installed||(Bt.installed=!0,Object.entries(Tt).forEach((function(e){var a=m(e,2),i=a[0],o=a[1];t.component(i,o)})))},Ft={install:Bt},Rt=null;"undefined"!=typeof window?Rt=window.Vue:"undefined"!=typeof global&&(Rt=global.Vue),Rt&&Rt.use(Ft);// Default export is library as a whole, registered via Vue.use()
|
|
1524
1534
|
// import MyButton from './components/MyButton/MyButton.vue';
|
|
1525
1535
|
// import Heading from './components/Heading/Heading.vue';
|
|
1526
1536
|
// // Declare install function executed by Vue.use()
|
|
@@ -1546,4 +1556,4 @@ immediate:!0,handler:function(t,e){var a=this;!0===t&&setTimeout((function(){a.d
|
|
|
1546
1556
|
// }
|
|
1547
1557
|
// // To allow use as module (npm/webpack/etc.) export component
|
|
1548
1558
|
// export default MyButton;
|
|
1549
|
-
export default Ft;export{E as Avatar,rt as Birthday,mt as BirthdayMobile,B as Button,_ as Caption,F as Card,R as CardLink,
|
|
1559
|
+
export default Ft;export{E as Avatar,rt as Birthday,mt as BirthdayMobile,B as Button,_ as Caption,F as Card,R as CardLink,q as CardOption,j as Checkbox,At as FeedBack,ht as GenderSelect,Et as HR,ft as Heading,T as Icon,D as Input,J as InputAddress,G as InputAddressBilling,W as InputAddressNumber,X as InputCardNumber,O as InputEdit,V as InputEmail,$ as InputName,wt as Modal,Y as Options,bt as Paragraph,_t as Preview,Lt as PreviewFull,Mt as PreviewMobile,St as PreviewTools,Nt as PreviewWithTools,K as Radius,H as Select,It as Spinner,gt as Tabs,ut as TextArea,vt as Tooltip};
|